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
Get the value of a mulit fields
public Map<String, Object> hmgetObject(final String key, final String... fields) { return hmgetObject(key, 0, fields); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public String getValue(String fieldname);", "String getField();", "java.lang.String getField1015();", "java.lang.String getField4();", "java.lang.String getField1333();", "java.lang.String getField1111();", "java.lang.String getField1120();", "java.lang.String getField1032();", "java.lang.String getField1031();", "java.lang.String getField1001();", "java.lang.String getField1261();", "java.lang.String getField1331();", "java.lang.String getField1223();", "java.lang.String getField1233();", "java.lang.String getField1225();", "java.lang.String getField1112();", "java.lang.String getField1262();", "java.lang.String getField1216();", "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return localId;\n case 2: return serviceId;\n case 3: return args;\n case 4: return inputs;\n case 5: return outputs;\n case 6: return timestamp;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "java.lang.String getField1335();", "java.lang.String getField1587();", "java.lang.String getField1212();", "java.lang.String getField1231();", "java.lang.String getField1124();", "java.lang.String getField1221();", "java.lang.String getField1211();", "java.lang.String getField1533();", "java.lang.String getField1168();", "java.lang.String getField1337();", "java.lang.String getField1012();", "java.lang.String getField1564();", "java.lang.String getField1610();", "java.lang.String getField1521();", "java.lang.String getField1013();", "java.lang.String getField1287();", "java.lang.String getField1523();", "java.lang.String getField1215();", "java.lang.String getField1243();", "java.lang.String getField1512();", "java.lang.String getField1213();", "java.lang.String getField1336();", "java.lang.String getField1241();", "java.lang.String getField1202();", "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return kd_kelas;\n case 1: return hari_ke;\n case 2: return jam_mulai;\n case 3: return jam_selesai;\n case 4: return tgl_mulai_otomatis_buat_jadwal;\n case 5: return tgl_berakhir_otomatis_buat_jadwal;\n case 6: return aktif;\n case 7: return kd_mk;\n case 8: return nama_mk;\n case 9: return nama_kelas;\n case 10: return nama_hari;\n case 11: return ts_update;\n case 12: return kd_org;\n case 13: return thn;\n case 14: return term;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "java.lang.String getField1274();", "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return name;\n case 1: return lastName;\n case 2: return country;\n case 3: return state;\n case 4: return gender;\n case 5: return date;\n case 6: return height;\n case 7: return weight;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "java.lang.String getField1133();", "java.lang.String getField1259();", "java.lang.String getField1362();", "java.lang.String getField1525();", "java.lang.String getField1531();", "java.lang.String getField1255();", "java.lang.String getField1201();", "java.lang.String getField1102();", "java.lang.String getField1115();", "java.lang.String getField1125();", "java.lang.String getField1334();", "java.lang.String getField1721();", "java.lang.String getField1021();", "java.lang.String getField1103();", "java.lang.String getField1263();", "java.lang.String getField1267();", "java.lang.String getField1230();", "java.lang.String getField1266();", "java.lang.String getField1312();", "java.lang.String getField1131();", "java.lang.String getField1050();", "java.lang.String getField1210();", "java.lang.String getField1511();", "java.lang.String getField1048();", "java.lang.String getField1220();", "java.lang.String getField1561();", "java.lang.String getField1113();", "java.lang.String getField1534();", "java.lang.String getField1130();", "java.lang.String getField1273();", "java.lang.String getField1235();", "java.lang.String getField1155();", "java.lang.String getField1502();", "java.lang.String getField1005();", "java.lang.String getField1284();", "java.lang.String getField1307();", "java.lang.String getField1017();", "java.lang.String getField1246();", "java.lang.String getField1161();", "java.lang.String getField1621();", "java.lang.String getField1258();", "java.lang.String getField1222();", "java.lang.String getField1301();", "java.lang.String getField1238();", "java.lang.String getField1245();", "java.lang.String getField1700();", "java.lang.String getField1524();", "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return username;\n case 2: return email_address;\n case 3: return phone_number;\n case 4: return first_name;\n case 5: return last_name;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "java.lang.String getField1244();", "java.lang.String getField1200();", "java.lang.String getField1254();", "private Object getValue (JField jf, Object obj) throws Exception {\n Class thisClass = obj.getClass();\n Object value = null;\n Class c = thisClass;\n boolean done = false;\n while (!done) {\n try {\n value = c.getDeclaredMethod (\"get\" + jf.getGetSet(), null).invoke(obj, null);\n done = true;\n } catch (NoSuchMethodException e) {\n c = c.getSuperclass();\n if (c == null) {\n\t\t\t\t\tSystem.out.println (\"Unable to find: \" + \"get\" + jf.getGetSet() + \" in class: \" + thisClass.getName());\n throw e;\n\t\t\t\t}\n }\n }\n\n return value;\n }", "java.lang.String getField1224();", "java.lang.String getField1552();", "java.lang.String getField1535();" ]
[ "0.6807303", "0.6675708", "0.6496562", "0.6392162", "0.6374816", "0.6330768", "0.6311659", "0.6307924", "0.62837875", "0.62500995", "0.6242279", "0.62393135", "0.62387216", "0.6227319", "0.6223509", "0.6222105", "0.6221713", "0.621618", "0.6214503", "0.62117463", "0.6211014", "0.62108254", "0.6208874", "0.6206894", "0.6203258", "0.6203017", "0.6200362", "0.6192634", "0.6192221", "0.6191638", "0.6190285", "0.6189076", "0.61887956", "0.6188048", "0.618498", "0.61788505", "0.6178789", "0.61784655", "0.61761785", "0.61741906", "0.61738604", "0.6172629", "0.6169759", "0.61679775", "0.61667246", "0.6162442", "0.61584896", "0.615676", "0.6155584", "0.6155345", "0.6154518", "0.61530966", "0.6151543", "0.6149503", "0.6149397", "0.6148938", "0.6148928", "0.6147687", "0.6147203", "0.6145298", "0.6144478", "0.6140809", "0.6138465", "0.6137416", "0.6137024", "0.6136912", "0.61368215", "0.6135984", "0.61347234", "0.6131605", "0.6128856", "0.6128593", "0.6127848", "0.61265296", "0.6126499", "0.612588", "0.6118083", "0.61175877", "0.6117579", "0.6117503", "0.61172", "0.6115634", "0.61129904", "0.6111773", "0.6111569", "0.6110956", "0.6110649", "0.61091596", "0.6105942", "0.6105894", "0.6105429", "0.61052185", "0.61038244", "0.61033595", "0.61032885", "0.6102769", "0.6102317", "0.6101363", "0.6101288", "0.6100612", "0.6100145" ]
0.0
-1
Set multiple hash fields to multiple values.
public String hmset(final String key, final Map<String, String> hash) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.hmset(key, hash); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }", "void setFields(Set<F> fields);", "public static void setHashValues(List<Tuv> tuvs)\n {\n TuvImpl preTuv = null;\n TuvImpl curTuv = null;\n for (Tuv tuv : tuvs)\n {\n curTuv = (TuvImpl) tuv;\n curTuv.setPreviousHash(BaseTmTuv.FIRST_HASH);\n curTuv.setNextHash(BaseTmTuv.LAST_HASH);\n if (preTuv != null)\n {\n curTuv.setPreviousHash(getHashValue(preTuv.getGxml()));\n preTuv.setNextHash(getHashValue(curTuv.getGxml()));\n }\n preTuv = curTuv;\n }\n }", "public void setValues(List<Object> values);", "public void setAllFields(WritableComparable... values) {\n if (fields.length != values.length) {\n throw new IllegalArgumentException(\"Wrong number (\" + values.length +\n \") of fields for \" + schema);\n }\n for (int col = 0; col < fields.length && col < values.length; ++col) {\n fields[col] = values[col];\n }\n }", "public void setFields(Map<String,String> fields)\n\t{\n\t\tList<Field> localFields = new ArrayList<Field>();\n\t\tIterator<Map.Entry<String,String>> it = fields.entrySet().iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry<String,String> pairs = it.next();\n\t\t\tlocalFields.add(new Field(pairs.getKey(), pairs.getValue()));\n\t\t}\n\n\t\tsetFields(localFields);\n\t}", "public void setAll(Map<String, String> values)\r\n/* 360: */ {\r\n/* 361:532 */ for (Map.Entry<String, String> entry : values.entrySet()) {\r\n/* 362:533 */ set((String)entry.getKey(), (String)entry.getValue());\r\n/* 363: */ }\r\n/* 364: */ }", "@Override\n public void setValue(Value[] values) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "void setBits(int... values);", "@Override\n public void setValue(String[] values) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public abstract void setValues(String[] pValues);", "public void setProperties(Properties setList);", "public patchEmployeeCustomFieldValues_args(patchEmployeeCustomFieldValues_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.userId = other.userId;\n this.companyId = other.companyId;\n if (other.isSetCustomValues()) {\n java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> __this__customValues = new java.util.HashMap<java.lang.Integer,java.util.List<java.lang.String>>(other.customValues.size());\n for (java.util.Map.Entry<java.lang.Integer, java.util.List<java.lang.String>> other_element : other.customValues.entrySet()) {\n\n java.lang.Integer other_element_key = other_element.getKey();\n java.util.List<java.lang.String> other_element_value = other_element.getValue();\n\n java.lang.Integer __this__customValues_copy_key = other_element_key;\n\n java.util.List<java.lang.String> __this__customValues_copy_value = new java.util.ArrayList<java.lang.String>(other_element_value);\n\n __this__customValues.put(__this__customValues_copy_key, __this__customValues_copy_value);\n }\n this.customValues = __this__customValues;\n }\n }", "public static final HashSet set (Object ... items) {\r\n HashSet result = new HashSet();\r\n for (int i=0; i<items.length; i++) {\r\n result.add(items[i]);\r\n }\r\n return result;\r\n }", "public Builder putAllField(\n java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableField().getMutableMap()\n .putAll(values);\n return this;\n }", "public void set(String[] as);", "public void setFieldsByName(List<String> fields)\n\t{\n\t\tList<Field> localFields = new ArrayList<Field>();\n\t\tIterator<String> it = fields.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tField field = new Field((String) it.next(), null);\n\t\t\tlocalFields.add(field);\n\t\t}\n\n\t\tsetFields(localFields);\n\t}", "private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\n }", "public void set(float[] values) {\n for (int i = 0; i < values.length; i++) {\n storage[i] = values[i];\n }\n }", "private void toggleMultiple(final Set<Long> selectedSet, final MultiToggleHelper helper) {\n final Cursor c = mListAdapter.getCursor();\n if (c == null || c.isClosed()) {\n return;\n }\n\n final HashMap<Long, Boolean> setValues = Maps.newHashMap();\n boolean allWereSet = true;\n\n c.moveToPosition(-1);\n while (c.moveToNext()) {\n long id = c.getInt(MessagesAdapter.COLUMN_ID);\n if (selectedSet.contains(id)) {\n boolean value = helper.getField(c);\n setValues.put(id, value);\n allWereSet = allWereSet && value;\n }\n }\n\n if (!setValues.isEmpty()) {\n final boolean newValue = !allWereSet;\n c.moveToPosition(-1);\n // TODO: we should probably put up a dialog or some other progress indicator for this.\n EmailAsyncTask.runAsyncParallel(new Runnable() {\n @Override\n public void run() {\n for (long id : setValues.keySet()) {\n if (setValues.get(id) != newValue) {\n helper.setField(id, newValue);\n }\n }\n }});\n }\n }", "public void setFields(Map fields_p) throws Exception\r\n {\r\n m_fields = fields_p;\r\n\r\n m_clonedfields = createCloneFromFields(fields_p);\r\n }", "private void putAll(final MultivaluedMap<String, String> multi,\n final Map<String, String> normal) {\n if ((multi != null) && (normal != null)) {\n final Set<String> keySet = normal.keySet();\n final Iterator<String> iter = keySet.iterator();\n while (iter.hasNext()) {\n final String attributeName = iter.next();\n final String attributeValue = normal.get(attributeName);\n multi.add(TOKEN_PREFIX + attributeName, attributeValue);\n }\n }\n }", "public void setParamValues(Object[] values);", "public void set(VectorFloat values) {\n for (int i = 0; i < values.storage.length; i++) {\n storage[i] = values.storage[i];\n }\n }", "public void setValues(Object[] vals)\n\t{\n\t\tvalues.clear();\n\n\t\tfor (int ctr=0; ctr<vals.length; ctr++)\n\t\t{\n\t\t\tvalues.add(vals[ctr] + \"\");\n\t\t}\n\t}", "@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.IPolymorphismSite> list) {\n polymorphismSite = list;\n // Add the primary keys to the serialized key list if there are any.\n if (polymorphismSite != null) {\n for (com.poesys.db.dto.IDbDto object : polymorphismSite) {\n polymorphismSiteKeys.add(object.getPrimaryKey());\n }\n }\n }", "public void setValues(HashMap<String,String> values) {\n\t }", "public void setFieldsByName(String[] fields)\n\t{\n\t\tList<String> localFields = Arrays.asList(fields);\n\t\tsetFieldsByName(localFields);\n\t}", "@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.ILocusDetail> list) {\n loci = list;\n // Add the primary keys to the serialized key list if there are any.\n if (loci != null) {\n for (com.poesys.db.dto.IDbDto object : loci) {\n lociKeys.add(object.getPrimaryKey());\n }\n }\n }", "@Override\n public void putAll(List<KeyValue<Bytes, byte[]>> entries) {\n entries.forEach(bytesKeyValue -> {\n\n this.put(bytesKeyValue.key, bytesKeyValue.value);\n });\n }", "private void setFields(boolean[][] fields) {\n for (int y = 0; y < getHeight(); y++) {\n for (int x = 0; x < getLength(); x++) {\n if (this.fields[x][y] != fields[x][y]) {\n this.fields[x][y] = fields[x][y];\n }\n }\n }\n setChanged();\n notifyObservers();\n }", "public void setValues(){\r\n int k=0;\r\n String[] var;\r\n String evar;\r\n \r\n //Set Values \r\n for (int i=0; i<linkVector.size(); i++){\r\n var= (String[]) linkVector.elementAt(i);\r\n evar=var[1];\r\n try { \r\n varContextField= varContextFields[linkIndex[k]]; \r\n switch (linkType[k++]){\r\n case DOUBLE: setValue(evar,varContextField.getDouble(varContextObject)); break;\r\n case ARRAYDOUBLE: setValue(evar,(double[])varContextField.get(varContextObject)); break;\r\n case ARRAYDOUBLE2D: setValue(evar,(double[][])varContextField.get(varContextObject)); break;\r\n case STRING: setValue(evar,(String)varContextField.get(varContextObject)); break; \r\n }\r\n \r\n } catch (java.lang.IllegalAccessException e) {\r\n System.out.println(\"Error Step: setting a value \" + e);\r\n } \r\n } \r\n }", "void setMultiple(boolean multiple);", "public final void set(float t[]) {\n\t\tthis.x = t[0];\n\t\tthis.y = t[1];\n\t\tthis.z = t[2];\n\t}", "public void setFields(entity.APDExposureField[] value);", "public void setFields(final List<Field> fields) {\n this.fields.addAll(fields);\n }", "public static void setInternalState(Object object, Object value, Object... additionalValues) {\n setField(object, value,\n findFieldInHierarchy(object, new AssignableFromFieldTypeMatcherStrategy(getType(value))));\n if (additionalValues != null && additionalValues.length > 0) {\n for (Object additionalValue : additionalValues) {\n setField(\n object,\n additionalValue,\n findFieldInHierarchy(object, new AssignableFromFieldTypeMatcherStrategy(\n getType(additionalValue))));\n }\n }\n }", "public final void set(float m[]) {\n\tm00 = m[ 0]; m01 = m[ 1]; m02 = m[ 2];\n\tm10 = m[ 3]; m11 = m[ 4]; m12 = m[ 5];\n\tm20 = m[ 6]; m21 = m[ 7]; m22 = m[ 8];\n }", "@Override\n\tpublic void set(K key, List<V> value) {\n\t\t\n\t}", "public static void setHash_profiles() {\n\t\t\r\n\t\tProfilePojo pf1 = new ProfilePojo(1, \"Sonal\");\r\n\t\tProfilePojo pf2 = new ProfilePojo(2, \"Komal\");\r\n\t\tProfilePojo pf3 = new ProfilePojo(3, \"Sanidh\");\r\n\t\tProfilePojo pf4 = new ProfilePojo(4, \"Vanshika\");\r\n\t\thash_profiles.put((long) 1, pf1);\r\n\t\thash_profiles.put((long) 2, pf2);\r\n\t\thash_profiles.put((long) 3, pf3);\r\n\t\thash_profiles.put((long) 4, pf4);\r\n\t\t\r\n\t}", "public HashMultiSet() {\n\t\tmultiSet = new HashMap<>();\n\t}", "public abstract void set(DataType x, DataType y, DataType z);", "public void setValues(List values) {\n/* 115 */ super.setValues(values);\n/* 116 */ for (Iterator<ConfigurableEffect.Value> iter = values.iterator(); iter.hasNext(); ) {\n/* 117 */ ConfigurableEffect.Value value = iter.next();\n/* 118 */ if (value.getName().equals(\"Wavelength\")) {\n/* 119 */ this.wavelength = ((Float)value.getObject()).floatValue(); continue;\n/* 120 */ } if (value.getName().equals(\"Amplitude\")) {\n/* 121 */ this.amplitude = ((Float)value.getObject()).floatValue();\n/* */ }\n/* */ } \n/* */ }", "public abstract void setPhoneTypes(Vector vecPhoneTypes, Vector vecPhoneTypeKeys);", "protected abstract void setValues(double[] values);", "public void setValues(float x, float y, float z, int bits) {\n this.x = Utils.floatToFixedPointShort(x, bits);\n this.y = Utils.floatToFixedPointShort(y, bits);\n this.z = Utils.floatToFixedPointShort(z, bits);\n }", "void setColors(Color... colors);", "public static void setFields(DBFField[] fields) throws UnsupportedEncodingException {\r\n int i = 0;\r\n\r\n fields[i] = new DBFField();\r\n fields[i].setName(\"TIPREG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCFEC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCSER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCNUM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(6);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTIP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODMOD\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(5);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CTACON\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(12);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPTBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORNOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RECBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORREC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORTES\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORFIN\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RFDPP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESHOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESKM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TOTFAC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(14);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO1\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO1\");\r\n //fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n // Es numerico pero para insertar valor \"XXX,YY\" \r\n //hay que meterlo como string y despues cambiarlo en dbfmanager -> Structura\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO2\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO2\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO3\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO3\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DIETENT\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(3);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TIPFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n \r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEIMPCC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(0);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n //logger.log(Level.INFO, \"Total columnas en fichero .dbf = {0}\", i);\r\n }", "private static void addFieldValues(CatalogServiceRestRep service, Collection<? extends ServiceItemRestRep> items,\n Map<String, String> values, Map<String, String> locked) {\n for (ServiceItemRestRep item : items) {\n if (item instanceof ServiceFieldTableRestRep) {\n addColumnValues(service, (ServiceFieldTableRestRep) item, values, locked);\n }\n else if (item instanceof ServiceFieldGroupRestRep) {\n addFieldValues(service, ((ServiceFieldGroupRestRep) item).getItems(), values, locked);\n }\n else if (item instanceof ServiceFieldRestRep) {\n ServiceFieldRestRep field = (ServiceFieldRestRep) item;\n String value = getFieldValue(field);\n if (locked.containsKey(field.getName())) {\n value = locked.get(field.getName());\n }\n if (value != null) {\n values.put(field.getName(), value);\n }\n\n List<String> fieldValues = TextUtils.parseCSV(value);\n if (fieldValues.isEmpty() && field.isRequired()) {\n Validation.required(field.getName(), null);\n }\n for (String fieldValue : fieldValues) {\n ServiceFieldValidator.validateField(service, field, fieldValue);\n }\n }\n }\n }", "private Status batchSet(String table, String key, HashMap<String, ByteIterator> values) {\n try {\n List<SetItem> setItemList = new ArrayList<>();\n byte[] hashKey = key.getBytes();\n byte[] value = toJson(values);\n for (byte[] sortKey : sortKeys) {\n setItemList.add(new SetItem(hashKey, sortKey, value));\n }\n client.batchSet(table, setItemList);\n return Status.OK;\n } catch (Exception e) {\n logger.error(\"Error batch inserting value to table[\" + table + \"] with key: \" + key, e);\n return Status.ERROR;\n }\n }", "public void setFlags( byte[] bytes )\n {\n if ( (bytes== null ) || ( bytes.length != 4 ) )\n {\n value = -1;\n }\n \n value = ( ( bytes[0] & 0x00F ) << 24 ) | ( ( bytes[1] & 0x00FF ) << 16 ) | ( ( bytes[2] & 0x00FF ) << 8 ) | ( 0x00FF & bytes[3] ); \n setData( bytes );\n }", "public void setValues (String values)\n {\n List<Character> valueList = values.chars().mapToObj(c -> (char)c).collect(Collectors.toList());\n for (State state : this.stateMap.values()) {\n state.values(valueList);\n }\n }", "public void setValueSet(List<String> valueSet){\n mValueSet = valueSet;\n }", "public void setAttributeFields(Vector a) {\n\tattributeFields = a;\n }", "public static DaoResult setCheckpointAttrs(ICheckpointDao dao, String checkpointId,\n Map<String, Object> fieldNamesAndValues) {\n CheckpointBo cp = getCheckpoint(dao, checkpointId, new Date());\n cp.setTimestamp(new Date());\n for (Map.Entry<String, Object> entry : fieldNamesAndValues.entrySet()) {\n cp.setDataAttr(entry.getKey(), entry.getValue());\n }\n return saveCheckpoint(dao, cp);\n }", "public void setValues(Parameter[] values) {\n if (values == null || values.length < 4) {\n throw new IllegalArgumentException(\"Invalid values:\" + values);\n }\n if (this.values == null) {\n this.values = new Parameter[values.length];\n }\n int index = 0;\n for (Parameter p : values) {\n this.values[index++] = p;\n }\n validateValues();\n }", "@Override\n\tprotected void set(final int... recordIds) {\n\t\tArrays.sort(recordIds);\n\t\tbitmap = bitmap.or(EWAHCompressedBitmap.bitmapOf(recordIds));\n\t}", "private void setItems(ArrayList<NameId> values) {\n\t\tif (values == null || values.isEmpty()) {return;}\n\t\tint row = 0;\n\t\tCollections.sort(values);\n\t\tGrid.RowFormatter fmtRow = field.getRowFormatter();\n\t\tGrid.CellFormatter fmtCell = field.getCellFormatter();\n\t\tfield.resize(values.size(), 3);\n\t\tfmtCell.addStyleName(row, 1, CSS.cbtMultilistFieldNull());\n\t\tfor (NameId value : values) {\n\t\t\tfield.setText(row, 0, value.getName());\n\t\t\tfield.setText(row, 1, value.getId());\n\t\t\tCheckBox cb = new CheckBox();\n\t\t\tcb.addClickHandler(this);\n\t\t\tfield.setWidget(row, 2, cb);\n\t\t\tfmtCell.addStyleName(row, 1, CSS.cbtMultilistFieldNull());\n\t\t\tfmtRow.addStyleName(row++, CSS.cbtMultilistFieldValue());\n\t\t}\n\t}", "public setKeyValue_args(setKeyValue_args other) {\n if (other.isSetKey()) {\n this.key = other.key;\n }\n if (other.isSetValue()) {\n this.value = other.value;\n }\n }", "@Override\n\tpublic void setFields(FieldList fl) {\n\t\tlogger.debug(\"setFields :\");\n\t\tsuper.setFields(fl);\n\t}", "public void setValues(short x, short y, short z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }", "public void writeNextMultivalue(String name, String... values) throws ThingsException;", "public void setPropertyValues(String[] propertyNames, Object[] values)\n throws ModelException {\n // Precheck for valid conditions\n checkArrays(propertyNames, values);\n setMultiplePropertiesChanging(true);\n try {\n for (int i = 0; i < propertyNames.length; i++) {\n setPropertyValue(propertyNames[i], values[i]);\n }\n fireStateChanged(new ContentValueChangeEvent(this, null, null, null));\n } finally {\n setMultiplePropertiesChanging(false);\n }\n }", "@Override\n\tpublic final void setFieldLengths(int... fieldLengths) {\n\t\tArgs.notEmpty(fieldLengths, \"Field length sequence\");\n\n\t\tsuper.validateHeaders(headers, identifiers, fieldLengths);\n\n\t\tsetFieldsPerRecord(fieldLengths.length);\n\n\t\tfor (int i = 0; i < fieldLengths.length; i++) {\n\t\t\taddField(fieldLengths[i]);\n\t\t}\n\t}", "public void setBuildHashPropeties(VOBuildHashProperties[] BuildHashPropeties)\n\t{\n\t\tthis.BuildHashPropeties = BuildHashPropeties;\n\t}", "public void setValue(String... values) throws DeviceOptionException;", "default void setAll(Map<String, Object> values) {\n for (String path : values.keySet()) {\n set(path, values.get(path));\n }\n }", "public void processLargeInList(Set values);", "@Override\n public void setValues(int arg0, List<? extends Value> arg1, int arg2, int arg3) throws InvalidTypeException, ClassNotLoadedException {\n throw new UnsupportedOperationException();\n }", "public void setValues(TextureParameter source) {\n if (source.values == null) {\n throw new IllegalArgumentException(\"No texture parameters in source.\");\n }\n values = new Parameter[source.values.length];\n int index = 0;\n for (Parameter p : source.values) {\n if (p == null) {\n throw new IllegalArgumentException(\"Texture parameter value is null, invalid name in source?\");\n }\n values[index++] = p;\n }\n }", "public abstract void setList(List<T> items);", "public void set(int $param_int_1, int $param_int_2, double[] $param_arrayOf_double_3) {\n java.lang.Object $__result = null;\n try {\n if ($__directInvocation)\n super.set( $param_int_1, $param_int_2, $param_arrayOf_double_3);\n else {\n java.util.ArrayList<Object> $__params = new java.util.ArrayList<Object>();\n String $__method = \"public void boofcv.struct.image.InterleavedF64.set(int,int,double...)\";\n $__params.add($param_int_1);\n $__params.add($param_int_2);\n $__params.add($param_arrayOf_double_3);\n $__result = $__client.onRPC($__method, $__params);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void setvalues(int tsal,int twh)\n {\n salary = tsal;\n wh = twh;\n }", "@Override\n\tpublic void multiPut(List<KeyValueVersion> ops) throws RemoteException,\n\t\t\tInterruptedException {\n\t\t\n\t}", "void setHashData(java.lang.String hashData);", "public static JCardValue multi(Object... values) {\n\t\treturn multi(Arrays.asList(values));\n\t}", "public void setUsers(List<User> users)\r\n/* */ {\r\n/* 221 */ this.users = users;\r\n/* */ }", "public Builder addAllValue(\n java.lang.Iterable<? extends java.lang.Long> values) {\n ensureValueIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, value_);\n onChanged();\n return this;\n }", "public static void setInternalState(Object object, String fieldName, Object[] value) {\n setInternalState(object, fieldName, (Object) value);\n }", "@Deprecated\n public void setMemberVariables(List<Variable> vars) {\n if (isImmutable())\n throw new IllegalStateException(\"Cant modify\");\n members = new ArrayList<>();\n memberHash = new HashMap<>(2 * vars.size());\n for (Variable v : vars) {\n addMemberVariable(v);\n }\n }", "@Step(\"заполняются поля\")\n public MortgageFinishedHousingSteps enterValues(Map<String, String> fields){\n fields.forEach(this::enterValue);\n return this;\n }", "public void setExtraFields(final ZipExtraField[] fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e57536ae-1bcc-4181-a421-ac13bbd5a9a0\");\n final List<ZipExtraField> newFields = new ArrayList<ZipExtraField>();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b6219fa6-a243-4666-ac05-1dfe5f55e146\");\n for (final ZipExtraField field : fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"ff160a4e-3868-4d55-ae65-f3ec497e79e8\");\n if (field instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5ad9dbad-a4cf-4a98-bf17-e11f9d54bd2b\");\n unparseableExtra = (UnparseableExtraFieldData) field;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"78045b40-4eb7-43f0-b243-cee81dfeef37\");\n newFields.add(field);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"519ff1f6-cf34-43b1-81ca-518811f79459\");\n extraFields = newFields.toArray(new ZipExtraField[newFields.size()]);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"fae5b51d-497d-46f3-b460-cece6c3bfcd3\");\n setExtra();\n }", "public void setFields(List<MathVarDec> fields) {\n this.fields = fields;\n }", "public abstract void setAddressTypes(Vector vecAddressTypes, Vector vecAddressTypeKeys);", "public void setFieldValues(String op, List values)\n {\n if (op == null || op.trim().length() == 0)\n throw new IllegalArgumentException(\n \"operator must not be null or empty\");\n\n if (!isValidOperator(op))\n throw new IllegalArgumentException(\n \"Invalid operator specified for search field\");\n\n if (setValues(op, null, values))\n setDirty();\n }", "@Override\n\tpublic void setIds(String[] ids) {\n\t\t\n\t}", "public void setUserField(final String[] userField)\n {\n checkImmutable();\n this.userField = userField;\n }", "public static void registerFields(Multimap<String,NormalizedContentInterface> f) {\n fields = f;\n }", "public void setWeitereVerwendungszwecke(String[] list) throws RemoteException;", "private void addAllUser(\n Iterable<? extends People> values) {\n ensureUserIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, user_);\n }", "@Override\n public QuadHolder setValues(final Map<Var, Node> values) {\n this.values = values;\n return this;\n }", "@NoProxy\n @NoWrap\n @NoDump\n @Override\n public void setContactHrefs(final Set<String> val) {\n contactHrefs = val;\n }", "private void setValuesInSharedPrefernce() {\r\n\r\n\t\tmSharedPreferences_reg.edit().putString(\"ProfileImageString\", profileImageString).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"PseudoName\", psedoName).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"Pseudodescription\", profiledescription).commit();\r\n\t}", "@Test\n public void testSet() {\n Assert.assertTrue(map.set(\"key-1\", \"value-1\", 10));\n Assert.assertTrue(map.set(\"key-1\", \"value-2\", 10));\n Assert.assertTrue(map.set(\"key-2\", \"value-1\", 10));\n }", "public QueryMultiMatch setTerm(Object value, String... fields) {\n\t\tthis.value = value;\n\t\tthis.fields = fields;\n\n\t\treturn this;\n\t}", "boolean addAll(Object key, Set values);", "@Test\n public void set() {\n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n Vec4f.set(a, 2, b, 1);\n assertTrue(Vec4f.equals(a, 2, expect, 0));\n \n float[] expect2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f};\n Vec4f.set(a, b);\n assertTrue(Vec4f.equals(a, expect2));\n \n \n float[] a3 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] expect3 = new float[] {2.0f, 1.0f, 6.0f, 4.0f};\n Vec4f.set(a3,2, 2.0f, 1.0f, 6.0f, 4.0f );\n assertTrue(Vec4f.equals(a3, 2, expect3, 0));\n \n float[] a4 = new float[4]; \n float[] expect4 = new float[] {2.0f, 1.0f, 6.0f, 4.0f};\n Vec4f.set(a4, 2.0f, 1.0f, 6.0f, 4.0f );\n assertTrue(Vec4f.equals(a4, expect4));\n }", "protected void setAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.setBitAt(i);\n } \t\n }", "public setUploadType_args(setUploadType_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.employeeId = other.employeeId;\n this.positionId = other.positionId;\n this.type = other.type;\n }", "private void set(String sEmailTag, String sFirstNameTag, String sIdTag, String sLastNameTag)\r\n\t{\r\n\t\tthis.sEmailTag = sEmailTag;\r\n\t\tthis.sFirstNameTag = sFirstNameTag;\r\n\t\tthis.sIdTag = sIdTag;\r\n\t\tthis.sLastNameTag = sLastNameTag;\r\n\t\t\r\n\t}", "public void setValues(ArrayList<Double> allValues)\n {\n this.minimumValue = getMinNumber(allValues);\n this.maximumValue = getMaxNumber(allValues);\n this.allValues = allValues;\n }" ]
[ "0.65588987", "0.61592513", "0.59130365", "0.58041626", "0.57586837", "0.55615693", "0.55371755", "0.5519074", "0.55187047", "0.5427708", "0.5327971", "0.53156114", "0.5300752", "0.52866143", "0.52510697", "0.5214974", "0.51791626", "0.514779", "0.51468515", "0.5140473", "0.5110793", "0.50892633", "0.50651884", "0.50590634", "0.5057192", "0.5048816", "0.504449", "0.5011968", "0.50072545", "0.50071263", "0.5002184", "0.49995536", "0.49769235", "0.4975671", "0.49740866", "0.49737075", "0.49194995", "0.4891572", "0.4884854", "0.48810044", "0.48595774", "0.48364112", "0.48337802", "0.48272777", "0.4817286", "0.48094445", "0.47996297", "0.47911173", "0.478939", "0.478424", "0.47832075", "0.47813654", "0.4766634", "0.47618622", "0.47564372", "0.4744314", "0.47425598", "0.47388682", "0.47338226", "0.47311452", "0.472938", "0.4684874", "0.46847597", "0.46784222", "0.4663804", "0.46637785", "0.4643793", "0.46397203", "0.46377584", "0.46311387", "0.46201554", "0.46117145", "0.46065292", "0.46006605", "0.45991945", "0.45978686", "0.45976648", "0.45960966", "0.45922068", "0.45894969", "0.45803896", "0.45720652", "0.45669937", "0.45556083", "0.45512173", "0.4547048", "0.45465645", "0.45445216", "0.45422637", "0.45375028", "0.4537452", "0.45336607", "0.45310634", "0.45245406", "0.45202965", "0.45197815", "0.4517865", "0.45155358", "0.44926843", "0.44877744", "0.44857898" ]
0.0
-1
Set multiple hash fields to multiple values.
public String hmsetObject(final String key, final Map<String, Object> hash) { Jedis jedis = null; try { jedis = jedisPool.getResource(); Map<byte[], byte[]> byteMap = new HashMap<byte[], byte[]>(hash.size()); for (Entry<String, Object> e : hash.entrySet()) { byteMap.put(e.getKey().getBytes(), toJsonByteArray(e.getValue())); } return jedis.hmset(key.getBytes(), byteMap); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }", "void setFields(Set<F> fields);", "public static void setHashValues(List<Tuv> tuvs)\n {\n TuvImpl preTuv = null;\n TuvImpl curTuv = null;\n for (Tuv tuv : tuvs)\n {\n curTuv = (TuvImpl) tuv;\n curTuv.setPreviousHash(BaseTmTuv.FIRST_HASH);\n curTuv.setNextHash(BaseTmTuv.LAST_HASH);\n if (preTuv != null)\n {\n curTuv.setPreviousHash(getHashValue(preTuv.getGxml()));\n preTuv.setNextHash(getHashValue(curTuv.getGxml()));\n }\n preTuv = curTuv;\n }\n }", "public void setValues(List<Object> values);", "public void setAllFields(WritableComparable... values) {\n if (fields.length != values.length) {\n throw new IllegalArgumentException(\"Wrong number (\" + values.length +\n \") of fields for \" + schema);\n }\n for (int col = 0; col < fields.length && col < values.length; ++col) {\n fields[col] = values[col];\n }\n }", "public void setFields(Map<String,String> fields)\n\t{\n\t\tList<Field> localFields = new ArrayList<Field>();\n\t\tIterator<Map.Entry<String,String>> it = fields.entrySet().iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry<String,String> pairs = it.next();\n\t\t\tlocalFields.add(new Field(pairs.getKey(), pairs.getValue()));\n\t\t}\n\n\t\tsetFields(localFields);\n\t}", "public void setAll(Map<String, String> values)\r\n/* 360: */ {\r\n/* 361:532 */ for (Map.Entry<String, String> entry : values.entrySet()) {\r\n/* 362:533 */ set((String)entry.getKey(), (String)entry.getValue());\r\n/* 363: */ }\r\n/* 364: */ }", "void setBits(int... values);", "@Override\n public void setValue(Value[] values) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "@Override\n public void setValue(String[] values) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public abstract void setValues(String[] pValues);", "public void setProperties(Properties setList);", "public patchEmployeeCustomFieldValues_args(patchEmployeeCustomFieldValues_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.userId = other.userId;\n this.companyId = other.companyId;\n if (other.isSetCustomValues()) {\n java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> __this__customValues = new java.util.HashMap<java.lang.Integer,java.util.List<java.lang.String>>(other.customValues.size());\n for (java.util.Map.Entry<java.lang.Integer, java.util.List<java.lang.String>> other_element : other.customValues.entrySet()) {\n\n java.lang.Integer other_element_key = other_element.getKey();\n java.util.List<java.lang.String> other_element_value = other_element.getValue();\n\n java.lang.Integer __this__customValues_copy_key = other_element_key;\n\n java.util.List<java.lang.String> __this__customValues_copy_value = new java.util.ArrayList<java.lang.String>(other_element_value);\n\n __this__customValues.put(__this__customValues_copy_key, __this__customValues_copy_value);\n }\n this.customValues = __this__customValues;\n }\n }", "public static final HashSet set (Object ... items) {\r\n HashSet result = new HashSet();\r\n for (int i=0; i<items.length; i++) {\r\n result.add(items[i]);\r\n }\r\n return result;\r\n }", "public Builder putAllField(\n java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableField().getMutableMap()\n .putAll(values);\n return this;\n }", "public void set(String[] as);", "public void setFieldsByName(List<String> fields)\n\t{\n\t\tList<Field> localFields = new ArrayList<Field>();\n\t\tIterator<String> it = fields.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tField field = new Field((String) it.next(), null);\n\t\t\tlocalFields.add(field);\n\t\t}\n\n\t\tsetFields(localFields);\n\t}", "private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\n }", "public void set(float[] values) {\n for (int i = 0; i < values.length; i++) {\n storage[i] = values[i];\n }\n }", "private void toggleMultiple(final Set<Long> selectedSet, final MultiToggleHelper helper) {\n final Cursor c = mListAdapter.getCursor();\n if (c == null || c.isClosed()) {\n return;\n }\n\n final HashMap<Long, Boolean> setValues = Maps.newHashMap();\n boolean allWereSet = true;\n\n c.moveToPosition(-1);\n while (c.moveToNext()) {\n long id = c.getInt(MessagesAdapter.COLUMN_ID);\n if (selectedSet.contains(id)) {\n boolean value = helper.getField(c);\n setValues.put(id, value);\n allWereSet = allWereSet && value;\n }\n }\n\n if (!setValues.isEmpty()) {\n final boolean newValue = !allWereSet;\n c.moveToPosition(-1);\n // TODO: we should probably put up a dialog or some other progress indicator for this.\n EmailAsyncTask.runAsyncParallel(new Runnable() {\n @Override\n public void run() {\n for (long id : setValues.keySet()) {\n if (setValues.get(id) != newValue) {\n helper.setField(id, newValue);\n }\n }\n }});\n }\n }", "public void setFields(Map fields_p) throws Exception\r\n {\r\n m_fields = fields_p;\r\n\r\n m_clonedfields = createCloneFromFields(fields_p);\r\n }", "private void putAll(final MultivaluedMap<String, String> multi,\n final Map<String, String> normal) {\n if ((multi != null) && (normal != null)) {\n final Set<String> keySet = normal.keySet();\n final Iterator<String> iter = keySet.iterator();\n while (iter.hasNext()) {\n final String attributeName = iter.next();\n final String attributeValue = normal.get(attributeName);\n multi.add(TOKEN_PREFIX + attributeName, attributeValue);\n }\n }\n }", "public void setParamValues(Object[] values);", "public void set(VectorFloat values) {\n for (int i = 0; i < values.storage.length; i++) {\n storage[i] = values.storage[i];\n }\n }", "public void setValues(Object[] vals)\n\t{\n\t\tvalues.clear();\n\n\t\tfor (int ctr=0; ctr<vals.length; ctr++)\n\t\t{\n\t\t\tvalues.add(vals[ctr] + \"\");\n\t\t}\n\t}", "@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.IPolymorphismSite> list) {\n polymorphismSite = list;\n // Add the primary keys to the serialized key list if there are any.\n if (polymorphismSite != null) {\n for (com.poesys.db.dto.IDbDto object : polymorphismSite) {\n polymorphismSiteKeys.add(object.getPrimaryKey());\n }\n }\n }", "public void setValues(HashMap<String,String> values) {\n\t }", "public void setFieldsByName(String[] fields)\n\t{\n\t\tList<String> localFields = Arrays.asList(fields);\n\t\tsetFieldsByName(localFields);\n\t}", "@Override\n public void putAll(List<KeyValue<Bytes, byte[]>> entries) {\n entries.forEach(bytesKeyValue -> {\n\n this.put(bytesKeyValue.key, bytesKeyValue.value);\n });\n }", "@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.ILocusDetail> list) {\n loci = list;\n // Add the primary keys to the serialized key list if there are any.\n if (loci != null) {\n for (com.poesys.db.dto.IDbDto object : loci) {\n lociKeys.add(object.getPrimaryKey());\n }\n }\n }", "private void setFields(boolean[][] fields) {\n for (int y = 0; y < getHeight(); y++) {\n for (int x = 0; x < getLength(); x++) {\n if (this.fields[x][y] != fields[x][y]) {\n this.fields[x][y] = fields[x][y];\n }\n }\n }\n setChanged();\n notifyObservers();\n }", "public void setValues(){\r\n int k=0;\r\n String[] var;\r\n String evar;\r\n \r\n //Set Values \r\n for (int i=0; i<linkVector.size(); i++){\r\n var= (String[]) linkVector.elementAt(i);\r\n evar=var[1];\r\n try { \r\n varContextField= varContextFields[linkIndex[k]]; \r\n switch (linkType[k++]){\r\n case DOUBLE: setValue(evar,varContextField.getDouble(varContextObject)); break;\r\n case ARRAYDOUBLE: setValue(evar,(double[])varContextField.get(varContextObject)); break;\r\n case ARRAYDOUBLE2D: setValue(evar,(double[][])varContextField.get(varContextObject)); break;\r\n case STRING: setValue(evar,(String)varContextField.get(varContextObject)); break; \r\n }\r\n \r\n } catch (java.lang.IllegalAccessException e) {\r\n System.out.println(\"Error Step: setting a value \" + e);\r\n } \r\n } \r\n }", "void setMultiple(boolean multiple);", "public final void set(float t[]) {\n\t\tthis.x = t[0];\n\t\tthis.y = t[1];\n\t\tthis.z = t[2];\n\t}", "public void setFields(entity.APDExposureField[] value);", "public void setFields(final List<Field> fields) {\n this.fields.addAll(fields);\n }", "public static void setInternalState(Object object, Object value, Object... additionalValues) {\n setField(object, value,\n findFieldInHierarchy(object, new AssignableFromFieldTypeMatcherStrategy(getType(value))));\n if (additionalValues != null && additionalValues.length > 0) {\n for (Object additionalValue : additionalValues) {\n setField(\n object,\n additionalValue,\n findFieldInHierarchy(object, new AssignableFromFieldTypeMatcherStrategy(\n getType(additionalValue))));\n }\n }\n }", "public final void set(float m[]) {\n\tm00 = m[ 0]; m01 = m[ 1]; m02 = m[ 2];\n\tm10 = m[ 3]; m11 = m[ 4]; m12 = m[ 5];\n\tm20 = m[ 6]; m21 = m[ 7]; m22 = m[ 8];\n }", "@Override\n\tpublic void set(K key, List<V> value) {\n\t\t\n\t}", "public static void setHash_profiles() {\n\t\t\r\n\t\tProfilePojo pf1 = new ProfilePojo(1, \"Sonal\");\r\n\t\tProfilePojo pf2 = new ProfilePojo(2, \"Komal\");\r\n\t\tProfilePojo pf3 = new ProfilePojo(3, \"Sanidh\");\r\n\t\tProfilePojo pf4 = new ProfilePojo(4, \"Vanshika\");\r\n\t\thash_profiles.put((long) 1, pf1);\r\n\t\thash_profiles.put((long) 2, pf2);\r\n\t\thash_profiles.put((long) 3, pf3);\r\n\t\thash_profiles.put((long) 4, pf4);\r\n\t\t\r\n\t}", "public HashMultiSet() {\n\t\tmultiSet = new HashMap<>();\n\t}", "public abstract void set(DataType x, DataType y, DataType z);", "public void setValues(List values) {\n/* 115 */ super.setValues(values);\n/* 116 */ for (Iterator<ConfigurableEffect.Value> iter = values.iterator(); iter.hasNext(); ) {\n/* 117 */ ConfigurableEffect.Value value = iter.next();\n/* 118 */ if (value.getName().equals(\"Wavelength\")) {\n/* 119 */ this.wavelength = ((Float)value.getObject()).floatValue(); continue;\n/* 120 */ } if (value.getName().equals(\"Amplitude\")) {\n/* 121 */ this.amplitude = ((Float)value.getObject()).floatValue();\n/* */ }\n/* */ } \n/* */ }", "public abstract void setPhoneTypes(Vector vecPhoneTypes, Vector vecPhoneTypeKeys);", "protected abstract void setValues(double[] values);", "public void setValues(float x, float y, float z, int bits) {\n this.x = Utils.floatToFixedPointShort(x, bits);\n this.y = Utils.floatToFixedPointShort(y, bits);\n this.z = Utils.floatToFixedPointShort(z, bits);\n }", "void setColors(Color... colors);", "public static void setFields(DBFField[] fields) throws UnsupportedEncodingException {\r\n int i = 0;\r\n\r\n fields[i] = new DBFField();\r\n fields[i].setName(\"TIPREG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCFEC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCSER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCNUM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(6);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTIP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODMOD\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(5);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CTACON\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(12);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPTBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORNOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RECBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORREC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORTES\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORFIN\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RFDPP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESHOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESKM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TOTFAC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(14);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO1\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO1\");\r\n //fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n // Es numerico pero para insertar valor \"XXX,YY\" \r\n //hay que meterlo como string y despues cambiarlo en dbfmanager -> Structura\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO2\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO2\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO3\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO3\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DIETENT\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(3);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TIPFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n \r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEIMPCC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(0);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n //logger.log(Level.INFO, \"Total columnas en fichero .dbf = {0}\", i);\r\n }", "private static void addFieldValues(CatalogServiceRestRep service, Collection<? extends ServiceItemRestRep> items,\n Map<String, String> values, Map<String, String> locked) {\n for (ServiceItemRestRep item : items) {\n if (item instanceof ServiceFieldTableRestRep) {\n addColumnValues(service, (ServiceFieldTableRestRep) item, values, locked);\n }\n else if (item instanceof ServiceFieldGroupRestRep) {\n addFieldValues(service, ((ServiceFieldGroupRestRep) item).getItems(), values, locked);\n }\n else if (item instanceof ServiceFieldRestRep) {\n ServiceFieldRestRep field = (ServiceFieldRestRep) item;\n String value = getFieldValue(field);\n if (locked.containsKey(field.getName())) {\n value = locked.get(field.getName());\n }\n if (value != null) {\n values.put(field.getName(), value);\n }\n\n List<String> fieldValues = TextUtils.parseCSV(value);\n if (fieldValues.isEmpty() && field.isRequired()) {\n Validation.required(field.getName(), null);\n }\n for (String fieldValue : fieldValues) {\n ServiceFieldValidator.validateField(service, field, fieldValue);\n }\n }\n }\n }", "private Status batchSet(String table, String key, HashMap<String, ByteIterator> values) {\n try {\n List<SetItem> setItemList = new ArrayList<>();\n byte[] hashKey = key.getBytes();\n byte[] value = toJson(values);\n for (byte[] sortKey : sortKeys) {\n setItemList.add(new SetItem(hashKey, sortKey, value));\n }\n client.batchSet(table, setItemList);\n return Status.OK;\n } catch (Exception e) {\n logger.error(\"Error batch inserting value to table[\" + table + \"] with key: \" + key, e);\n return Status.ERROR;\n }\n }", "public void setFlags( byte[] bytes )\n {\n if ( (bytes== null ) || ( bytes.length != 4 ) )\n {\n value = -1;\n }\n \n value = ( ( bytes[0] & 0x00F ) << 24 ) | ( ( bytes[1] & 0x00FF ) << 16 ) | ( ( bytes[2] & 0x00FF ) << 8 ) | ( 0x00FF & bytes[3] ); \n setData( bytes );\n }", "public void setValues (String values)\n {\n List<Character> valueList = values.chars().mapToObj(c -> (char)c).collect(Collectors.toList());\n for (State state : this.stateMap.values()) {\n state.values(valueList);\n }\n }", "public void setValueSet(List<String> valueSet){\n mValueSet = valueSet;\n }", "public void setAttributeFields(Vector a) {\n\tattributeFields = a;\n }", "public static DaoResult setCheckpointAttrs(ICheckpointDao dao, String checkpointId,\n Map<String, Object> fieldNamesAndValues) {\n CheckpointBo cp = getCheckpoint(dao, checkpointId, new Date());\n cp.setTimestamp(new Date());\n for (Map.Entry<String, Object> entry : fieldNamesAndValues.entrySet()) {\n cp.setDataAttr(entry.getKey(), entry.getValue());\n }\n return saveCheckpoint(dao, cp);\n }", "public void setValues(Parameter[] values) {\n if (values == null || values.length < 4) {\n throw new IllegalArgumentException(\"Invalid values:\" + values);\n }\n if (this.values == null) {\n this.values = new Parameter[values.length];\n }\n int index = 0;\n for (Parameter p : values) {\n this.values[index++] = p;\n }\n validateValues();\n }", "@Override\n\tprotected void set(final int... recordIds) {\n\t\tArrays.sort(recordIds);\n\t\tbitmap = bitmap.or(EWAHCompressedBitmap.bitmapOf(recordIds));\n\t}", "private void setItems(ArrayList<NameId> values) {\n\t\tif (values == null || values.isEmpty()) {return;}\n\t\tint row = 0;\n\t\tCollections.sort(values);\n\t\tGrid.RowFormatter fmtRow = field.getRowFormatter();\n\t\tGrid.CellFormatter fmtCell = field.getCellFormatter();\n\t\tfield.resize(values.size(), 3);\n\t\tfmtCell.addStyleName(row, 1, CSS.cbtMultilistFieldNull());\n\t\tfor (NameId value : values) {\n\t\t\tfield.setText(row, 0, value.getName());\n\t\t\tfield.setText(row, 1, value.getId());\n\t\t\tCheckBox cb = new CheckBox();\n\t\t\tcb.addClickHandler(this);\n\t\t\tfield.setWidget(row, 2, cb);\n\t\t\tfmtCell.addStyleName(row, 1, CSS.cbtMultilistFieldNull());\n\t\t\tfmtRow.addStyleName(row++, CSS.cbtMultilistFieldValue());\n\t\t}\n\t}", "public setKeyValue_args(setKeyValue_args other) {\n if (other.isSetKey()) {\n this.key = other.key;\n }\n if (other.isSetValue()) {\n this.value = other.value;\n }\n }", "@Override\n\tpublic void setFields(FieldList fl) {\n\t\tlogger.debug(\"setFields :\");\n\t\tsuper.setFields(fl);\n\t}", "public void setValues(short x, short y, short z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }", "public void writeNextMultivalue(String name, String... values) throws ThingsException;", "public void setPropertyValues(String[] propertyNames, Object[] values)\n throws ModelException {\n // Precheck for valid conditions\n checkArrays(propertyNames, values);\n setMultiplePropertiesChanging(true);\n try {\n for (int i = 0; i < propertyNames.length; i++) {\n setPropertyValue(propertyNames[i], values[i]);\n }\n fireStateChanged(new ContentValueChangeEvent(this, null, null, null));\n } finally {\n setMultiplePropertiesChanging(false);\n }\n }", "@Override\n\tpublic final void setFieldLengths(int... fieldLengths) {\n\t\tArgs.notEmpty(fieldLengths, \"Field length sequence\");\n\n\t\tsuper.validateHeaders(headers, identifiers, fieldLengths);\n\n\t\tsetFieldsPerRecord(fieldLengths.length);\n\n\t\tfor (int i = 0; i < fieldLengths.length; i++) {\n\t\t\taddField(fieldLengths[i]);\n\t\t}\n\t}", "public void setBuildHashPropeties(VOBuildHashProperties[] BuildHashPropeties)\n\t{\n\t\tthis.BuildHashPropeties = BuildHashPropeties;\n\t}", "public void setValue(String... values) throws DeviceOptionException;", "default void setAll(Map<String, Object> values) {\n for (String path : values.keySet()) {\n set(path, values.get(path));\n }\n }", "public void processLargeInList(Set values);", "@Override\n public void setValues(int arg0, List<? extends Value> arg1, int arg2, int arg3) throws InvalidTypeException, ClassNotLoadedException {\n throw new UnsupportedOperationException();\n }", "public void setValues(TextureParameter source) {\n if (source.values == null) {\n throw new IllegalArgumentException(\"No texture parameters in source.\");\n }\n values = new Parameter[source.values.length];\n int index = 0;\n for (Parameter p : source.values) {\n if (p == null) {\n throw new IllegalArgumentException(\"Texture parameter value is null, invalid name in source?\");\n }\n values[index++] = p;\n }\n }", "public abstract void setList(List<T> items);", "public void set(int $param_int_1, int $param_int_2, double[] $param_arrayOf_double_3) {\n java.lang.Object $__result = null;\n try {\n if ($__directInvocation)\n super.set( $param_int_1, $param_int_2, $param_arrayOf_double_3);\n else {\n java.util.ArrayList<Object> $__params = new java.util.ArrayList<Object>();\n String $__method = \"public void boofcv.struct.image.InterleavedF64.set(int,int,double...)\";\n $__params.add($param_int_1);\n $__params.add($param_int_2);\n $__params.add($param_arrayOf_double_3);\n $__result = $__client.onRPC($__method, $__params);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void setvalues(int tsal,int twh)\n {\n salary = tsal;\n wh = twh;\n }", "@Override\n\tpublic void multiPut(List<KeyValueVersion> ops) throws RemoteException,\n\t\t\tInterruptedException {\n\t\t\n\t}", "void setHashData(java.lang.String hashData);", "public static JCardValue multi(Object... values) {\n\t\treturn multi(Arrays.asList(values));\n\t}", "public void setUsers(List<User> users)\r\n/* */ {\r\n/* 221 */ this.users = users;\r\n/* */ }", "public Builder addAllValue(\n java.lang.Iterable<? extends java.lang.Long> values) {\n ensureValueIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, value_);\n onChanged();\n return this;\n }", "public static void setInternalState(Object object, String fieldName, Object[] value) {\n setInternalState(object, fieldName, (Object) value);\n }", "@Deprecated\n public void setMemberVariables(List<Variable> vars) {\n if (isImmutable())\n throw new IllegalStateException(\"Cant modify\");\n members = new ArrayList<>();\n memberHash = new HashMap<>(2 * vars.size());\n for (Variable v : vars) {\n addMemberVariable(v);\n }\n }", "@Step(\"заполняются поля\")\n public MortgageFinishedHousingSteps enterValues(Map<String, String> fields){\n fields.forEach(this::enterValue);\n return this;\n }", "public void setExtraFields(final ZipExtraField[] fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e57536ae-1bcc-4181-a421-ac13bbd5a9a0\");\n final List<ZipExtraField> newFields = new ArrayList<ZipExtraField>();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b6219fa6-a243-4666-ac05-1dfe5f55e146\");\n for (final ZipExtraField field : fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"ff160a4e-3868-4d55-ae65-f3ec497e79e8\");\n if (field instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5ad9dbad-a4cf-4a98-bf17-e11f9d54bd2b\");\n unparseableExtra = (UnparseableExtraFieldData) field;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"78045b40-4eb7-43f0-b243-cee81dfeef37\");\n newFields.add(field);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"519ff1f6-cf34-43b1-81ca-518811f79459\");\n extraFields = newFields.toArray(new ZipExtraField[newFields.size()]);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"fae5b51d-497d-46f3-b460-cece6c3bfcd3\");\n setExtra();\n }", "public void setFields(List<MathVarDec> fields) {\n this.fields = fields;\n }", "public abstract void setAddressTypes(Vector vecAddressTypes, Vector vecAddressTypeKeys);", "public void setFieldValues(String op, List values)\n {\n if (op == null || op.trim().length() == 0)\n throw new IllegalArgumentException(\n \"operator must not be null or empty\");\n\n if (!isValidOperator(op))\n throw new IllegalArgumentException(\n \"Invalid operator specified for search field\");\n\n if (setValues(op, null, values))\n setDirty();\n }", "@Override\n\tpublic void setIds(String[] ids) {\n\t\t\n\t}", "public void setUserField(final String[] userField)\n {\n checkImmutable();\n this.userField = userField;\n }", "public static void registerFields(Multimap<String,NormalizedContentInterface> f) {\n fields = f;\n }", "public void setWeitereVerwendungszwecke(String[] list) throws RemoteException;", "private void addAllUser(\n Iterable<? extends People> values) {\n ensureUserIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, user_);\n }", "@Override\n public QuadHolder setValues(final Map<Var, Node> values) {\n this.values = values;\n return this;\n }", "@NoProxy\n @NoWrap\n @NoDump\n @Override\n public void setContactHrefs(final Set<String> val) {\n contactHrefs = val;\n }", "private void setValuesInSharedPrefernce() {\r\n\r\n\t\tmSharedPreferences_reg.edit().putString(\"ProfileImageString\", profileImageString).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"PseudoName\", psedoName).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"Pseudodescription\", profiledescription).commit();\r\n\t}", "@Test\n public void testSet() {\n Assert.assertTrue(map.set(\"key-1\", \"value-1\", 10));\n Assert.assertTrue(map.set(\"key-1\", \"value-2\", 10));\n Assert.assertTrue(map.set(\"key-2\", \"value-1\", 10));\n }", "boolean addAll(Object key, Set values);", "public QueryMultiMatch setTerm(Object value, String... fields) {\n\t\tthis.value = value;\n\t\tthis.fields = fields;\n\n\t\treturn this;\n\t}", "@Test\n public void set() {\n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n Vec4f.set(a, 2, b, 1);\n assertTrue(Vec4f.equals(a, 2, expect, 0));\n \n float[] expect2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f};\n Vec4f.set(a, b);\n assertTrue(Vec4f.equals(a, expect2));\n \n \n float[] a3 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] expect3 = new float[] {2.0f, 1.0f, 6.0f, 4.0f};\n Vec4f.set(a3,2, 2.0f, 1.0f, 6.0f, 4.0f );\n assertTrue(Vec4f.equals(a3, 2, expect3, 0));\n \n float[] a4 = new float[4]; \n float[] expect4 = new float[] {2.0f, 1.0f, 6.0f, 4.0f};\n Vec4f.set(a4, 2.0f, 1.0f, 6.0f, 4.0f );\n assertTrue(Vec4f.equals(a4, expect4));\n }", "protected void setAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.setBitAt(i);\n } \t\n }", "public setUploadType_args(setUploadType_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.employeeId = other.employeeId;\n this.positionId = other.positionId;\n this.type = other.type;\n }", "private void set(String sEmailTag, String sFirstNameTag, String sIdTag, String sLastNameTag)\r\n\t{\r\n\t\tthis.sEmailTag = sEmailTag;\r\n\t\tthis.sFirstNameTag = sFirstNameTag;\r\n\t\tthis.sIdTag = sIdTag;\r\n\t\tthis.sLastNameTag = sLastNameTag;\r\n\t\t\r\n\t}", "public void setValues(ArrayList<Double> allValues)\n {\n this.minimumValue = getMinNumber(allValues);\n this.maximumValue = getMaxNumber(allValues);\n this.allValues = allValues;\n }" ]
[ "0.6557323", "0.61582315", "0.5913276", "0.5803998", "0.57572776", "0.55607486", "0.55374384", "0.5518432", "0.55176073", "0.54266316", "0.5327651", "0.5314566", "0.5300964", "0.5287706", "0.52513504", "0.52148324", "0.5178125", "0.51468277", "0.5146029", "0.5141476", "0.5109049", "0.5089783", "0.50647646", "0.5057946", "0.50566006", "0.5048741", "0.50444835", "0.5011002", "0.5007669", "0.50074184", "0.5001245", "0.49987242", "0.4976594", "0.49741828", "0.49731812", "0.49725136", "0.4917996", "0.48896015", "0.48856086", "0.4881801", "0.48607346", "0.48345244", "0.48324737", "0.48273575", "0.48165667", "0.48079097", "0.47993892", "0.47902432", "0.47900826", "0.47856027", "0.47819713", "0.4781306", "0.4767036", "0.47607002", "0.4755357", "0.4743502", "0.47426468", "0.47390416", "0.47336233", "0.47292835", "0.47277382", "0.46853024", "0.46833652", "0.46767402", "0.46645337", "0.4663079", "0.46438208", "0.46413052", "0.46363327", "0.4630384", "0.46193895", "0.46099707", "0.46050352", "0.46005833", "0.45994255", "0.45990446", "0.4597527", "0.4596731", "0.45913", "0.45885321", "0.4580136", "0.45716015", "0.45654553", "0.45556647", "0.45504555", "0.4547213", "0.45462435", "0.45441216", "0.45423943", "0.45381656", "0.45371634", "0.4533742", "0.4530076", "0.45245817", "0.4522101", "0.4520011", "0.45173278", "0.45140624", "0.44912082", "0.4486102", "0.44845408" ]
0.0
-1
Increment the integer value of a hash field by the given number.
public Long hincrBy(final String key, final String field, final long value) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.hincrBy(key, field, value); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long inc(final String key) {\n String c = get(key);\n if (c == null) c = \"0\";\n final long l = Long.parseLong(c) + 1;\n put(key, Long.toString(l));\n return l;\n }", "public void add(int number) {\n hash.put(number, hash.getOrDefault(number, 0) + 1);\n }", "public void increase(int number) {\r\n this.count += number;\r\n }", "public void increase(int number) {\r\n this.count += number;\r\n }", "public int inc(Object key)\r\n {\r\n return add(key, 1);\r\n }", "private synchronized void increment() {\n count++;\n atomicInteger.incrementAndGet();\n }", "public void add(int number) {\n if (hash.containsKey(number)) {\n hash.put(number, 2);\n } else {\n hash.put(number, 1);\n }\n }", "private void hashMapPutPlusOne(Map<String, Integer> map, String key) {\n Integer value = map.get(key);\n if (value == null)\n map.put(key, 1);\n else\n map.put(key, value + 1);\n }", "public void IncrementCounter()\r\n {\r\n \tsetCurrentValue( currentValue.add(BigInteger.ONE)); \r\n \r\n log.debug(\"counter now: \" + currentValue.intValue() );\r\n \r\n }", "public void increaseNumHits() {\n\t\tthis.numHits += 1;\n\t}", "public void increasecounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, counter + 1).commit();\r\n\t}", "private static void increasePrimitive(int value) {\n value++;\n }", "public void increaseCounter(UltraSearchSessions.Session session,\n HugeType type, long increment) {\n\n\n JSONObject result = session.get(TABLE, type.name());\n if(null == result){\n putCounter(session, type, increment);\n return;\n }\n\n\n JSONObject obj = new JSONObject();\n\n JSONObject fields = new JSONObject();\n JSONObject id = new JSONObject();\n id.put(\"increment\", increment);\n fields.put(\"ID\", id);\n\n obj.put(\"fields\", fields);\n session.putDoc(TABLE, type.name(), obj.toString());\n\n\n }", "public void increment(){\n value+=1;\n }", "public void inc(String key) {\n int val = 0;\n\n if (!m.containsKey(key)) {\n m.put(key, val + 1);\n } else {\n val = m.get(key);\n m.put(key, val + 1);\n delete(key, val);\n }\n\n insert(key, val + 1);\n }", "public void increment(int bin) {\n this.increment(bin, 1);\n }", "public void inc(String key);", "public int increment( K key ) {\n Integer i = map.get( key );\n if ( i == null ) i = 0;\n map.put( key, ++i );\n return i;\n }", "public void addValue(int v) {\n ++totalCount;\n int i = calBucketIndex(v);\n ++buckets[i];\n }", "public void updatedNumber(String key, Number val) {}", "private static void increaseCountedData(CountedData counter, int i, long increaseNum) throws InstantiationException, IllegalAccessException {\n \tField f[] = counter.getClass().getDeclaredFields(); \n \tf[i].setAccessible(true); \n \tlong num = f[i].getLong(counter);\n \tnum = num + increaseNum;\n \tf[i].setLong(counter, num);\n\t\t//System.out.println(\"Here is your \" + f[i].getName() + \" = \" + num );\n }", "private void insertIntegerValue(String field, int value) {\n mapFieldsIntegers.put(field,value);\n }", "public void increment() {\n sync.increment();\n }", "public void increment(int bin, int count) {\n Integer countInBin = gramma.get(bin);\n if (null == countInBin) {\n countInBin = count;\n } else {\n countInBin += count;\n }\n gramma.put(bin, countInBin);\n }", "public void incrementCount () {\n count = count + 1; // == count++ == count += 1 \n if (count == modulus) {\n count = 0;\n }\n }", "public void inc(String name, long count) {\n counters.addTo(name, count);\n }", "public DocumentMutation increment(FieldPath path, byte inc);", "public void add(int number) {\n map.put(number, map.getOrDefault(number, 0) + 1);\n }", "public int nextHashForEqual() {\n\t/* This actually needs to roll over the UInt32 limit. */\n\tmyCount = myCount + 1;\n\treturn myCount;\n/*\nudanax-top.st:16757:FakePacker methodsFor: 'shepherds'!\n{UInt32} nextHashForEqual\n\t\"Shepherds use a sequence number for their hash. Return the next one\n\t and increment. This should actually spread the hashes.\"\n\t\"This actually needs to roll over the UInt32 limit.\"\n\tmyCount _ myCount + 1.\n\t^ myCount!\n*/\n}", "public static void increment() {\n\t\tcount.incrementAndGet();\n//\t\tcount++;\n\t}", "public void add(int number) {\n\t if (hash.containsKey(number)) hash.put(number, 2); // two is enough\n\t else {\n\t \thash.put(number, 1);\n\t \tlist.add(number);\n\t }\n\t}", "protected Number incrementWriteLockValue(Number numberValue) {\r\n return Long.valueOf(numberValue.longValue() + 1);\r\n }", "public void increment() {\n increment(1);\n }", "public int increase() {\r\n return ++value;\r\n }", "public void incrementCount() {\n\t\tcount++;\n\t}", "public void incValue(){\n\t\tif(this.value < 9){\n\t\t\tthis.value++;\n\t\t}\n\t\telse{\n\t\t\tthis.value = 0;\n\t\t}\n\t}", "public void incrementCount(){\n count+=1;\n }", "public int addValue(byte i) {\n return foldIn(i);\n }", "private static void addOrIncrement(HashMap<Pair<String, String>, Integer> m, Pair<String, String> p){\n // In python, this is a defaultdict.\n if(!m.containsKey(p)){\n m.put(p, 0);\n }\n m.put(p, m.get(p)+1);\n }", "public static synchronized void increment() {\r\n\t\tcount++;\r\n\t}", "default void inc(long value) {\n\t\tcount(Math.abs(value));\n\t}", "void incrementCount();", "public void increment() {\n this.data++;\n }", "public void setIncrement(Integer increment) {\n this.increment = increment;\n }", "public void add(int number) {\n // Write your code here\n if(map.containsKey(number)) {\n map.put(number, map.get(number) + 1);\n }else {\n map.put(number, 1);\n }\n }", "public void incrementCount() {\n count++;\n }", "long incrementAndGet();", "public int getAndIncrement( String key )\n {\n if ( !context.containsKey( key ) )\n {\n context.put( key, 0 );\n }\n int value = (int) context.get( key );\n context.put( key, value + 1 );\n return value;\n }", "public final long getAndIncrement() {\n\t\treturn value++;\n\t}", "@Override\n public synchronized void increment() {\n count++;\n }", "public void add(int number) {\n //map.put(number, map.getOrDefault(number, 0) + 1);\n if (map.containsKey(number)) {\n map.put(number, map.get(number) + 1);\n } else {\n map.put(number, 1);\n }\n }", "public native static int MFCL_Increment(long hr,long ht,byte blkAddr,int val);", "long getAndIncrement();", "@CallSuper\n public long incrementAndGet() {\n return addAndGet(1);\n }", "public void incrementScore(int val) {\n score += val;\n }", "public static synchronized void increment() {\n counter++;\n }", "private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}", "public final long incrementAndGet() {\n\t\treturn ++value;\n\t}", "public void add(int number) {\n\t map.put(number,map.containsKey(number)?map.get(number)+1:1);\n\t}", "public void add(int number) {\n numbers.put(number, numbers.getOrDefault(number, 0)+1);\n }", "public void put(int key, int value) {\n data[key % KEY] = value;\n }", "public void incrementScore(int increment) {\n score = score + increment;\n }", "public void incCounter()\n {\n counter++;\n }", "private static void putTileHash(HashMap<Integer,Integer> hashes, int hash) {\n\t\tInteger freq = hashes.remove(hash);\n\t\thashes.put(hash, (freq == null) ? 1 : freq+1);\n\t}", "public void putInt(String key, int value, boolean commit) {\r\n\t\tputInt(Global.getContext(), key, value, commit);\r\n\t}", "public void increment(long value) {\n mCount.getAndIncrement();\n mTotal.getAndAdd(value);\n }", "private void addOne(String value){\n\t\tif (numCache.containsKey(value)){\n\t\t\tnumCache.put(value, numCache.get(value) + 1);\n\t\t}else{\n\t\t\tnumCache.put(value, 1);\n\t\t}\n\t}", "public void increment(double n) {\r\n\t\tthis.value += n;\r\n\t}", "public void put(int key, int value) {\n int hash_key = key % this.key_space;\n this.hash_table.get(hash_key).update(key, value);\n }", "public void IncCount(String s) \n\t{\n if(numEntries+1 >= tableSize)\n rehashTable();\n \n HashEntry entry = contains(s);\n \n if(entry == null)\n {\n insert(s);\n numEntries++;\n }\n else\n entry.value++;\n\t}", "public void increaseCount(){\n myCount++;\n }", "public void increment(int symbol);", "public void incCounter(){\n counter++;\n }", "public void inc(String name) {\n inc(name, 1);\n }", "void put(final int hash, final int key, final int value){\r\n//System.out.println(\"put(\"+hash+\",\"+key+\",\"+value+\")\");\r\n if(key==0){\r\n hasZeroKey=true;\r\n zeroValue=value;\r\n return;\r\n }\r\n int i=(hash&hashMask)<<1;\r\n int k;\r\n while((k=data[i])!=0 && k!=key) i=(i+2)&indexMask;\r\n data[i]=key;\r\n data[i+1]=value;\r\n }", "public void increment(int index) {\n // int prevVal = registers.get(index);\n int prevVal = this.registers[index];\n if (prevVal == 255) {\n // this.registers.set(index, 0);\n this.registers[index] = 0;\n } else {\n // this.registers.set(index, prevVal + 1);\n this.registers[index]++;\n }\n }", "private synchronized void increment() {\n ++count;\n }", "public /*synchronized*/ void increment() {\n counter++;\n }", "public void inc(String namespace, String key, Number value) {\n \t\tthis.init();\n \t\tthis._inc(this.getKey(namespace, key), value);\n \t}", "public int incrementHopCount() {\n return ++this.hopCount;\n }", "@Override\r\n public void increment(String metricId, int incrementValue) {\r\n route(metricId, metricAggregator -> metricAggregator.increment(resolve(metricId), incrementValue));\r\n }", "public void incrementAmount() { amount++; }", "public void addValue(int i) {\n value = value + i;\n }", "public static synchronized void increment(){\n count++;\n }", "public void incrRefCounter() {\n\t\tthis.refCounter++;\n\t}", "public void put(String key, int value) {\r\n //creating hash code using key value given as a string\r\n int hash = new BigInteger(toAscii(key)).mod(new BigInteger(((Integer)TABLE_SIZE).toString())).intValue();\r\n while (table[hash] != null && table[hash].getKey() != key)\r\n hash = (hash + 1) % TABLE_SIZE;\r\n table[hash] = new HashEntry(key, value);\r\n }", "public static int hashFunction(int numToInsert) {\n\t\tint index;\n\t\tindex = numToInsert % (sizeHashTable);\n\t\treturn index;\n\t}", "public void put(int key, int value) {\n newkey = hashfunc(key);\n arr[newkey]= value;\n \n }", "@Override\n public int incrementFirstValue(int key) {\n return array.incrementEntry(key << 1, 1);\n }", "private static void setCounter() {++counter;}", "private void increaseDBValue(String target, int value){\n database.getReference(gameCodeRef).child(target).setValue(value+1);\n }", "public void addCount()\n {\n \tcount++;\n }", "public void incCount() { }", "public Builder setHash(int value) {\n bitField0_ |= 0x00000001;\n hash_ = value;\n onChanged();\n return this;\n }", "public void add(int number) {\n\t if(!m.containsKey(number)) {\n\t m.put(number, 0);\n\t }\n\t int pre = m.get(number);\n\t m.put(number, pre + 1);\n\t}", "private static void increaseReference(Counter counter) {\n counter.advance(1);\n }", "public void inc(String key) {\n\t\tif(map.containsKey(key)){\n\t\t\tNode n=map.get(key);\n\t\t\tn.val++;\n\t\t\tmoveToHead(n);\n\t\t}\n\t\telse{\n\t\t\tNode n=new Node(key, 1);\n\t\t\tmap.put(key, n);\n\t\t\tinsert(n, tail);\n\t\t}\n\t}", "@Override\n public void increment(String key, int amount) {\n execLocked(new Runnable() {\n @Override\n public void run() {\n LOGGER.info(\"Logging value \" + amount + \" for key \" + key);\n client.increment(key, amount);\n }\n });\n }", "private int m4018a() {\n Integer num = this.f4077a.get();\n if (num == null) {\n num = 0;\n }\n int intValue = num.intValue() + 1;\n this.f4077a.set(Integer.valueOf(intValue));\n return intValue;\n }", "public void changeCount(final int c) {\n\t\tcount += c;\n\t}" ]
[ "0.66991377", "0.667883", "0.64198035", "0.64198035", "0.64119315", "0.6325528", "0.62561166", "0.6254471", "0.619445", "0.61244553", "0.6090003", "0.6033165", "0.60292715", "0.5986378", "0.5967981", "0.59605", "0.59448206", "0.5917306", "0.59145343", "0.5908582", "0.58608353", "0.5851823", "0.5811007", "0.580987", "0.5802665", "0.57923406", "0.5785666", "0.578562", "0.57845336", "0.57832366", "0.5769481", "0.57689494", "0.57414794", "0.5719668", "0.571909", "0.57134587", "0.57118815", "0.5707395", "0.57062846", "0.5694901", "0.5690535", "0.5667113", "0.56660295", "0.56619656", "0.5657067", "0.56558985", "0.56555736", "0.5650767", "0.56471306", "0.56437284", "0.56350493", "0.5629894", "0.56277716", "0.5626521", "0.5625163", "0.56168747", "0.56141776", "0.5610213", "0.5593655", "0.5589447", "0.558493", "0.5583624", "0.55656475", "0.5560247", "0.555774", "0.55512935", "0.5550405", "0.5530427", "0.5516896", "0.55091727", "0.5505064", "0.549972", "0.54969984", "0.54942626", "0.54907566", "0.5478662", "0.5473715", "0.5469646", "0.5467763", "0.5465273", "0.54480106", "0.5446986", "0.5446526", "0.5446152", "0.54439884", "0.5441408", "0.5441293", "0.54371035", "0.5434757", "0.54276586", "0.54267436", "0.5425793", "0.5417108", "0.54000574", "0.5395225", "0.53839666", "0.5380531", "0.5377329", "0.53739494", "0.53693146" ]
0.6144906
9
Get all the fields in a hash.
public Set<String> hkeys(final String key) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.hkeys(key); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Object> allFields() {\n Map<String, Object> map = new HashMap<>();\n properties.forEach((key, value) -> map.put(key, value.value()));\n return map;\n }", "public HashMap<String, String> getFields() {\r\n \t\treturn fields;\r\n \t}", "List<Pair<String, Value>> fields();", "java.lang.String getFields();", "private Map<String,Field> getAllFields(Class clazz) {\n return this.getAllFields(clazz, false);\n }", "private static HashSet<Field> getAllFields(Class<?> cls) {\n // First, let's get all the super classes.\n HashSet<Class<?>> ancestors = getInstrumentedAncestors(cls);\n\n // Then, let's get all the fields of these classes.\n HashSet<Field> allFields = new HashSet<>();\n for (Class<?> ancestor : ancestors) {\n Collections.addAll(allFields, ancestor.getDeclaredFields());\n }\n return allFields;\n }", "public Hashtable getFields() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tif (myData.record!=null)\n\t\t{\n\t\t\tHashtable table;\n\t\t\ttry\n\t\t\t{\n\t\t\t\ttable=myData.record.getFields();\n\t\t\t\tHashtable fields=new Hashtable();\n\t\t\t\tEnumeration enumeration=table.keys();\n\t\t\t\twhile (enumeration.hasMoreElements())\n\t\t\t\t{\n\t\t\t\t\tString name=(String)enumeration.nextElement();\n\t\t\t\t\tfields.put(name,new LVObject(table.get(name)));\n\t\t\t\t}\n\t\t\t\treturn fields;\n\t\t\t}\n\t\t\tcatch (LDBException e) { setStatus(e); }\n\t\t}\n\t\telse if (myData.spec!=null)\n\t\t{\n\t\t\tHashtable table=new Hashtable();\n\t\t\tEnumeration enumeration=myData.spec.getFields().keys();\n\t\t\twhile (enumeration.hasMoreElements())\n\t\t\t\ttable.put(enumeration.nextElement(),new LVObject());\n\t\t\treturn table;\n\t\t}\n\t\treturn new Hashtable();\n\t}", "com.google.protobuf.ByteString\n getFieldsBytes();", "public Field[] getKeyFields();", "List<Field> getFields();", "public HashMap<String, String> getFields(HashMap<String, String> fields) {\n reporter.info(\"Get fields\");\n reloadPage();\n openEditForm();\n for(Map.Entry<String,String> field: fields.entrySet())\n {\n field.setValue(getTextFromField(field.getKey()));\n }\n HashMap<String,String> result = new HashMap<>();\n result.putAll(fields);\n return result;\n }", "synchronized public Set<String> getFields() {\n return Collections.unmodifiableSet(new HashSet<>(fields));\n }", "public Map<String, String> getFields() {\n return fields;\n }", "public Map<String, Object> getFields() {\n\t\treturn fields;\n\t}", "Fields fields();", "public Set<FieldInfo> getKeyFieldInfos() {\n return new LinkedHashSet<FieldInfo>(_keys);\n }", "java.util.Map<java.lang.String, java.lang.String>\n getFieldMap();", "public Set<FieldInfo> getFieldInfos() {\n return new LinkedHashSet<FieldInfo>(_atts);\n }", "com.google.protobuf.ByteString\n getField1246Bytes();", "com.google.protobuf.ByteString\n getField1046Bytes();", "private static Map<String, String> getLockedFields(CatalogServiceRestRep service) {\n Map<String, String> fields = Maps.newLinkedHashMap();\n for (CatalogServiceFieldRestRep field : service.getCatalogServiceFields()) {\n String value = getLockedValue(field);\n if (value != null) {\n fields.put(field.getName(), value);\n }\n }\n return fields;\n }", "public Map<String, String> getFields() {\n return null;\n }", "protected Vector collectFields() {\n Vector fields = new Vector(1);\n fields.addElement(this.getField());\n return fields;\n }", "public static Hashtable getAllFieldsValuesEx(Object object)\r\n\t\t\tthrows Exception {\r\n\t\tHashtable hashtable = new Hashtable();\r\n\t\tClass classType = object.getClass();\r\n\t\tField fields[] = ReflectUtil.getAllFields(classType);\r\n\t\tfor (int i = 0; i < fields.length; i++) {\r\n\t\t\tField field = fields[i];\r\n\t\t\tString fieldName = field.getName();\r\n\t\t\tMethod getMethod = ReflectUtil.getFieldGetMethod(classType, field);\r\n\t\t\tif (getMethod != null) {\r\n\t\t\t\tObject value = getMethod.invoke(object, new Object[] {});\r\n\t\t\t\thashtable.put(fieldName, value);\r\n\t\t\t} else {\r\n\t\t\t\t// System.out.println(\"Field \" + fieldName\r\n\t\t\t\t// +\"'s value is not gotten\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn hashtable;\r\n\t}", "com.google.protobuf.ByteString\n getField1946Bytes();", "com.google.protobuf.ByteString\n getField1226Bytes();", "public FieldDeclaration[] getFields() {\n return m_classBuilder.getFields();\n }", "private static Field[] retrieveAllFields(final Object object) {\r\n\t\tField[] fieldsArray = null;\r\n\r\n\t\t// - Retrieve fields array from cache if exists.\r\n\t\tif (KerAnnotation.fieldsCache.containsKey(object.getClass())) {\r\n\t\t\tfieldsArray = KerAnnotation.fieldsCache.get(object.getClass());\r\n\t\t}\r\n\t\t// - Else get fields and cache them.\r\n\t\telse {\r\n\t\t\t// - Aggregate all annotated fields (declared, inherited, etc.).\r\n\t\t\tfinal Set<Field> fields = new HashSet<Field>();\r\n\r\n\t\t\tfor (final Field field : object.getClass().getFields()) {\r\n\t\t\t\tif (field.getAnnotations().length > 0) {\r\n\t\t\t\t\tfields.add(field);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (final Field field : object.getClass().getDeclaredFields()) {\r\n\t\t\t\tif (field.getAnnotations().length > 0) {\r\n\t\t\t\t\tfields.add(field);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// - Convert set to array.\r\n\t\t\tfieldsArray = fields.toArray(new Field[0]);\r\n\r\n\t\t\t// - Cache array.\r\n\t\t\tKerAnnotation.fieldsCache.put(object.getClass(), fieldsArray);\r\n\t\t}\r\n\r\n\t\treturn fieldsArray;\r\n\t}", "com.google.protobuf.ByteString\n getField1146Bytes();", "public List<Field> iterateThroughAllFields() {\n\n List<Field> listOfFields = new ArrayList<Field>(fields.length * fields.length);\n // TODO: n**m complexity\n for (int i = 0; i < this.fields.length; i++) {\n for (int j = 0; j < this.fields.length; j++) {\n listOfFields.add(this.fields[i][j]);\n }\n }\n return listOfFields;\n }", "com.google.protobuf.ByteString\n getField1036Bytes();", "com.google.protobuf.ByteString\n getField1047Bytes();", "java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();", "com.google.protobuf.ByteString\n getField1269Bytes();", "public ArrayList<GOlrField> getFields() {\n\n ArrayList<GOlrField> collection = new ArrayList<GOlrField>();\n\n // Plonk them all in to our bookkeeping.\n for (GOlrField field : unique_fields.values()) {\n collection.add(field);\n }\n\n return collection;\n }", "public DBField[] getFields()\n {\n // Note: this method is called frequently\n if (!this.fieldArrayReady) {\n // optimize access to field array\n synchronized (this.fieldMap) {\n if (!this.fieldArrayReady) { // test again inside lock\n this.fieldArray = this.fieldMap.valueArray(DBField.class);\n this.fieldArrayReady = true;\n }\n }\n } \n return this.fieldArray;\n }", "com.google.protobuf.ByteString\n getField1848Bytes();", "com.google.protobuf.ByteString\n getField1947Bytes();", "com.google.protobuf.ByteString\n getField1546Bytes();", "com.google.protobuf.ByteString\n getField1006Bytes();", "com.google.protobuf.ByteString\n getField1346Bytes();", "com.google.protobuf.ByteString\n getField1843Bytes();", "public List<String> showFields() {\n Client client = new Client();\n Class<?> objFields = client.getClass();\n List<String> list = new ArrayList<>();\n for (Field field : objFields.getDeclaredFields()) {\n list.add(field.getName());\n }\n return list;\n }", "java.util.List<Field>\n getFieldsList();", "com.google.protobuf.ByteString\n getField1136Bytes();", "public String getFields() {\n return fields;\n }", "com.google.protobuf.ByteString\n getField1247Bytes();", "com.google.protobuf.ByteString\n getField1067Bytes();", "com.google.protobuf.ByteString\n getField1147Bytes();", "com.google.protobuf.ByteString\n getField1106Bytes();", "com.google.protobuf.ByteString\n getField1236Bytes();", "com.google.protobuf.ByteString\n getField1069Bytes();", "@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}", "public HashMap<K,V> listAll();", "com.google.protobuf.ByteString\n getField1268Bytes();", "com.google.protobuf.ByteString\n getField1969Bytes();", "com.google.protobuf.ByteString\n getField1926Bytes();", "public static Field[] getAllFields(Class forClass) {\r\n\t\tfinal List<Field> fields = new ArrayList<Field>();\r\n\t\tClass aktClass = forClass;\r\n\t\twhile (!aktClass.equals(Object.class)) {\r\n\t\t\tField[] tmp = aktClass.getDeclaredFields();\r\n\t\t\tfor (Field akt : tmp) {\r\n\t\t\t\tfields.add(akt);\r\n\t\t\t}\r\n\t\t\taktClass = aktClass.getSuperclass();\r\n\t\t}\r\n\t\treturn fields.toArray(new Field[fields.size()]);\r\n\t}", "public static Field[] getAllFields (Class c)\n\t{\n\t\tList l = new ArrayList();\n\t\taddDeclaredFields(l, c);\n\t\t\n\t\tField[] fields = new Field[l.size()];\n\t\tfields = (Field[]) l.toArray(fields);\n\t\treturn fields;\n\t}", "com.google.protobuf.ByteString\n getField1936Bytes();", "com.google.protobuf.ByteString\n getField1961Bytes();", "com.google.protobuf.ByteString\n getField1267Bytes();", "com.google.protobuf.ByteString\n getField1261Bytes();", "public Iterator<String> fieldIterator() { return flds_lu.keySet().iterator(); }", "com.google.protobuf.ByteString\n getField1963Bytes();", "com.google.protobuf.ByteString\n getField1061Bytes();", "com.google.protobuf.ByteString\n getField1066Bytes();", "@Override\n public java.util.List<Field> getFieldsList() {\n return fields_;\n }", "public List<Field<T>> getFields()\r\n/* 63: */ {\r\n/* 64:84 */ return this.fields;\r\n/* 65: */ }", "com.google.protobuf.ByteString\n getField1243Bytes();", "public Set<Field> getFields() {\r\n \t\t// We will only consider private fields in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredFields(), source.getFields());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getFields());\r\n \t}", "private List<Field> getFields() {\n try {\n List<Field> fields = ResultSetUtil.getFields(databaseName, tableName, resultSets.get(0));\n if(fields.size() != MergeFactory.MAX_QUERY_FIELD_SIZE){\n throw new SqlParserException(\"the query fields max be equals \" + MergeFactory.MAX_QUERY_FIELD_SIZE);\n }\n return fields;\n } catch (SQLException e) {\n LOG.error(\"merge resultSet error\",e);\n throw new MergeException(\"merge resultSet error\" , e);\n }\n }", "com.google.protobuf.ByteString\n getField1446Bytes();", "com.google.protobuf.ByteString\n getField1068Bytes();", "com.google.protobuf.ByteString\n getField1265Bytes();", "com.google.protobuf.ByteString\n getField1965Bytes();", "com.google.protobuf.ByteString\n getField1977Bytes();", "com.google.protobuf.ByteString\n getField1943Bytes();", "com.google.protobuf.ByteString\n getField1846Bytes();", "com.google.protobuf.ByteString\n getField1347Bytes();", "com.google.protobuf.ByteString\n getField1967Bytes();", "com.google.protobuf.ByteString\n getField1369Bytes();", "com.google.protobuf.ByteString\n getField1255Bytes();", "public abstract Set<ResolvedFieldDeclaration> getDeclaredFields();", "com.google.protobuf.ByteString\n getField1547Bytes();", "com.google.protobuf.ByteString\n getField1258Bytes();", "com.google.protobuf.ByteString\n getField1972Bytes();", "com.google.protobuf.ByteString\n getField1962Bytes();", "com.google.protobuf.ByteString\n getField1945Bytes();", "com.google.protobuf.ByteString\n getField1968Bytes();", "com.sagas.meta.model.MetaFieldData getFields(int index);", "com.google.protobuf.ByteString\n getField1027Bytes();", "com.google.protobuf.ByteString\n getField1235Bytes();", "public Iterator serializableFieldsFor(Class cls) {\n return buildMap(cls, true).values().iterator();\n }", "com.google.protobuf.ByteString\n getField1436Bytes();", "com.google.protobuf.ByteString\n getField1034Bytes();", "com.google.protobuf.ByteString\n getField1966Bytes();", "com.google.protobuf.ByteString\n getField1259Bytes();", "com.google.protobuf.ByteString\n getField1045Bytes();", "com.google.protobuf.ByteString\n getField1065Bytes();", "com.google.protobuf.ByteString\n getField1746Bytes();" ]
[ "0.6747239", "0.66124004", "0.64714915", "0.640866", "0.64064926", "0.6325985", "0.63084024", "0.6239215", "0.6178487", "0.60855615", "0.6069553", "0.6031712", "0.59958726", "0.59869814", "0.5907536", "0.5879237", "0.58385456", "0.57595617", "0.5748511", "0.57417345", "0.5722238", "0.56991273", "0.5684205", "0.56690174", "0.5666244", "0.5651968", "0.5647316", "0.5644916", "0.5643502", "0.5641654", "0.5640177", "0.56385267", "0.5623599", "0.5611398", "0.560191", "0.55978054", "0.5595337", "0.5584547", "0.55776143", "0.5575046", "0.55729586", "0.55702966", "0.5569812", "0.55662817", "0.55632615", "0.55585486", "0.5556594", "0.55521166", "0.55518574", "0.5545257", "0.5542926", "0.554214", "0.55371785", "0.5535489", "0.55310416", "0.55241114", "0.55166537", "0.55150986", "0.55112755", "0.5508207", "0.5507912", "0.5507901", "0.5507638", "0.5504066", "0.5499462", "0.54957855", "0.54909736", "0.5489335", "0.54887605", "0.5488655", "0.54846185", "0.5480207", "0.54792833", "0.5477391", "0.5475482", "0.54726416", "0.54699343", "0.5469377", "0.5467959", "0.5462192", "0.5460605", "0.5458596", "0.5456611", "0.5454345", "0.5453163", "0.54521686", "0.544576", "0.54379946", "0.54350424", "0.54349", "0.54300696", "0.5429722", "0.54251605", "0.5424079", "0.5423904", "0.54236144", "0.5423137", "0.54231066", "0.5422965", "0.54227173", "0.5422153" ]
0.0
-1
Get all the fields in a hash.
public <T> Set<T> hkeys(final String key, final Class<T> clazz) { Jedis jedis = null; try { jedis = jedisPool.getResource(); Set<byte[]> set = jedis.hkeys(key.getBytes()); Set<T> objectSet = new HashSet<T>(); if (set != null && set.size() != 0) { for (byte[] b : set) { objectSet.add(fromJsonByteArray(b, clazz)); } } return objectSet; } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Object> allFields() {\n Map<String, Object> map = new HashMap<>();\n properties.forEach((key, value) -> map.put(key, value.value()));\n return map;\n }", "public HashMap<String, String> getFields() {\r\n \t\treturn fields;\r\n \t}", "List<Pair<String, Value>> fields();", "java.lang.String getFields();", "private Map<String,Field> getAllFields(Class clazz) {\n return this.getAllFields(clazz, false);\n }", "private static HashSet<Field> getAllFields(Class<?> cls) {\n // First, let's get all the super classes.\n HashSet<Class<?>> ancestors = getInstrumentedAncestors(cls);\n\n // Then, let's get all the fields of these classes.\n HashSet<Field> allFields = new HashSet<>();\n for (Class<?> ancestor : ancestors) {\n Collections.addAll(allFields, ancestor.getDeclaredFields());\n }\n return allFields;\n }", "public Hashtable getFields() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tif (myData.record!=null)\n\t\t{\n\t\t\tHashtable table;\n\t\t\ttry\n\t\t\t{\n\t\t\t\ttable=myData.record.getFields();\n\t\t\t\tHashtable fields=new Hashtable();\n\t\t\t\tEnumeration enumeration=table.keys();\n\t\t\t\twhile (enumeration.hasMoreElements())\n\t\t\t\t{\n\t\t\t\t\tString name=(String)enumeration.nextElement();\n\t\t\t\t\tfields.put(name,new LVObject(table.get(name)));\n\t\t\t\t}\n\t\t\t\treturn fields;\n\t\t\t}\n\t\t\tcatch (LDBException e) { setStatus(e); }\n\t\t}\n\t\telse if (myData.spec!=null)\n\t\t{\n\t\t\tHashtable table=new Hashtable();\n\t\t\tEnumeration enumeration=myData.spec.getFields().keys();\n\t\t\twhile (enumeration.hasMoreElements())\n\t\t\t\ttable.put(enumeration.nextElement(),new LVObject());\n\t\t\treturn table;\n\t\t}\n\t\treturn new Hashtable();\n\t}", "com.google.protobuf.ByteString\n getFieldsBytes();", "public Field[] getKeyFields();", "List<Field> getFields();", "public HashMap<String, String> getFields(HashMap<String, String> fields) {\n reporter.info(\"Get fields\");\n reloadPage();\n openEditForm();\n for(Map.Entry<String,String> field: fields.entrySet())\n {\n field.setValue(getTextFromField(field.getKey()));\n }\n HashMap<String,String> result = new HashMap<>();\n result.putAll(fields);\n return result;\n }", "synchronized public Set<String> getFields() {\n return Collections.unmodifiableSet(new HashSet<>(fields));\n }", "public Map<String, String> getFields() {\n return fields;\n }", "public Map<String, Object> getFields() {\n\t\treturn fields;\n\t}", "Fields fields();", "public Set<FieldInfo> getKeyFieldInfos() {\n return new LinkedHashSet<FieldInfo>(_keys);\n }", "java.util.Map<java.lang.String, java.lang.String>\n getFieldMap();", "public Set<FieldInfo> getFieldInfos() {\n return new LinkedHashSet<FieldInfo>(_atts);\n }", "com.google.protobuf.ByteString\n getField1246Bytes();", "com.google.protobuf.ByteString\n getField1046Bytes();", "private static Map<String, String> getLockedFields(CatalogServiceRestRep service) {\n Map<String, String> fields = Maps.newLinkedHashMap();\n for (CatalogServiceFieldRestRep field : service.getCatalogServiceFields()) {\n String value = getLockedValue(field);\n if (value != null) {\n fields.put(field.getName(), value);\n }\n }\n return fields;\n }", "public Map<String, String> getFields() {\n return null;\n }", "protected Vector collectFields() {\n Vector fields = new Vector(1);\n fields.addElement(this.getField());\n return fields;\n }", "public static Hashtable getAllFieldsValuesEx(Object object)\r\n\t\t\tthrows Exception {\r\n\t\tHashtable hashtable = new Hashtable();\r\n\t\tClass classType = object.getClass();\r\n\t\tField fields[] = ReflectUtil.getAllFields(classType);\r\n\t\tfor (int i = 0; i < fields.length; i++) {\r\n\t\t\tField field = fields[i];\r\n\t\t\tString fieldName = field.getName();\r\n\t\t\tMethod getMethod = ReflectUtil.getFieldGetMethod(classType, field);\r\n\t\t\tif (getMethod != null) {\r\n\t\t\t\tObject value = getMethod.invoke(object, new Object[] {});\r\n\t\t\t\thashtable.put(fieldName, value);\r\n\t\t\t} else {\r\n\t\t\t\t// System.out.println(\"Field \" + fieldName\r\n\t\t\t\t// +\"'s value is not gotten\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn hashtable;\r\n\t}", "com.google.protobuf.ByteString\n getField1946Bytes();", "com.google.protobuf.ByteString\n getField1226Bytes();", "public FieldDeclaration[] getFields() {\n return m_classBuilder.getFields();\n }", "private static Field[] retrieveAllFields(final Object object) {\r\n\t\tField[] fieldsArray = null;\r\n\r\n\t\t// - Retrieve fields array from cache if exists.\r\n\t\tif (KerAnnotation.fieldsCache.containsKey(object.getClass())) {\r\n\t\t\tfieldsArray = KerAnnotation.fieldsCache.get(object.getClass());\r\n\t\t}\r\n\t\t// - Else get fields and cache them.\r\n\t\telse {\r\n\t\t\t// - Aggregate all annotated fields (declared, inherited, etc.).\r\n\t\t\tfinal Set<Field> fields = new HashSet<Field>();\r\n\r\n\t\t\tfor (final Field field : object.getClass().getFields()) {\r\n\t\t\t\tif (field.getAnnotations().length > 0) {\r\n\t\t\t\t\tfields.add(field);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (final Field field : object.getClass().getDeclaredFields()) {\r\n\t\t\t\tif (field.getAnnotations().length > 0) {\r\n\t\t\t\t\tfields.add(field);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// - Convert set to array.\r\n\t\t\tfieldsArray = fields.toArray(new Field[0]);\r\n\r\n\t\t\t// - Cache array.\r\n\t\t\tKerAnnotation.fieldsCache.put(object.getClass(), fieldsArray);\r\n\t\t}\r\n\r\n\t\treturn fieldsArray;\r\n\t}", "com.google.protobuf.ByteString\n getField1146Bytes();", "public List<Field> iterateThroughAllFields() {\n\n List<Field> listOfFields = new ArrayList<Field>(fields.length * fields.length);\n // TODO: n**m complexity\n for (int i = 0; i < this.fields.length; i++) {\n for (int j = 0; j < this.fields.length; j++) {\n listOfFields.add(this.fields[i][j]);\n }\n }\n return listOfFields;\n }", "com.google.protobuf.ByteString\n getField1036Bytes();", "com.google.protobuf.ByteString\n getField1047Bytes();", "java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();", "com.google.protobuf.ByteString\n getField1269Bytes();", "public ArrayList<GOlrField> getFields() {\n\n ArrayList<GOlrField> collection = new ArrayList<GOlrField>();\n\n // Plonk them all in to our bookkeeping.\n for (GOlrField field : unique_fields.values()) {\n collection.add(field);\n }\n\n return collection;\n }", "public DBField[] getFields()\n {\n // Note: this method is called frequently\n if (!this.fieldArrayReady) {\n // optimize access to field array\n synchronized (this.fieldMap) {\n if (!this.fieldArrayReady) { // test again inside lock\n this.fieldArray = this.fieldMap.valueArray(DBField.class);\n this.fieldArrayReady = true;\n }\n }\n } \n return this.fieldArray;\n }", "com.google.protobuf.ByteString\n getField1848Bytes();", "com.google.protobuf.ByteString\n getField1947Bytes();", "com.google.protobuf.ByteString\n getField1546Bytes();", "com.google.protobuf.ByteString\n getField1006Bytes();", "com.google.protobuf.ByteString\n getField1346Bytes();", "com.google.protobuf.ByteString\n getField1843Bytes();", "public List<String> showFields() {\n Client client = new Client();\n Class<?> objFields = client.getClass();\n List<String> list = new ArrayList<>();\n for (Field field : objFields.getDeclaredFields()) {\n list.add(field.getName());\n }\n return list;\n }", "java.util.List<Field>\n getFieldsList();", "com.google.protobuf.ByteString\n getField1136Bytes();", "public String getFields() {\n return fields;\n }", "com.google.protobuf.ByteString\n getField1247Bytes();", "com.google.protobuf.ByteString\n getField1067Bytes();", "com.google.protobuf.ByteString\n getField1147Bytes();", "com.google.protobuf.ByteString\n getField1106Bytes();", "com.google.protobuf.ByteString\n getField1236Bytes();", "com.google.protobuf.ByteString\n getField1069Bytes();", "@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}", "public HashMap<K,V> listAll();", "com.google.protobuf.ByteString\n getField1268Bytes();", "com.google.protobuf.ByteString\n getField1969Bytes();", "com.google.protobuf.ByteString\n getField1926Bytes();", "public static Field[] getAllFields(Class forClass) {\r\n\t\tfinal List<Field> fields = new ArrayList<Field>();\r\n\t\tClass aktClass = forClass;\r\n\t\twhile (!aktClass.equals(Object.class)) {\r\n\t\t\tField[] tmp = aktClass.getDeclaredFields();\r\n\t\t\tfor (Field akt : tmp) {\r\n\t\t\t\tfields.add(akt);\r\n\t\t\t}\r\n\t\t\taktClass = aktClass.getSuperclass();\r\n\t\t}\r\n\t\treturn fields.toArray(new Field[fields.size()]);\r\n\t}", "public static Field[] getAllFields (Class c)\n\t{\n\t\tList l = new ArrayList();\n\t\taddDeclaredFields(l, c);\n\t\t\n\t\tField[] fields = new Field[l.size()];\n\t\tfields = (Field[]) l.toArray(fields);\n\t\treturn fields;\n\t}", "com.google.protobuf.ByteString\n getField1936Bytes();", "com.google.protobuf.ByteString\n getField1961Bytes();", "com.google.protobuf.ByteString\n getField1267Bytes();", "com.google.protobuf.ByteString\n getField1261Bytes();", "public Iterator<String> fieldIterator() { return flds_lu.keySet().iterator(); }", "com.google.protobuf.ByteString\n getField1963Bytes();", "com.google.protobuf.ByteString\n getField1061Bytes();", "com.google.protobuf.ByteString\n getField1066Bytes();", "@Override\n public java.util.List<Field> getFieldsList() {\n return fields_;\n }", "public List<Field<T>> getFields()\r\n/* 63: */ {\r\n/* 64:84 */ return this.fields;\r\n/* 65: */ }", "com.google.protobuf.ByteString\n getField1243Bytes();", "public Set<Field> getFields() {\r\n \t\t// We will only consider private fields in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredFields(), source.getFields());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getFields());\r\n \t}", "private List<Field> getFields() {\n try {\n List<Field> fields = ResultSetUtil.getFields(databaseName, tableName, resultSets.get(0));\n if(fields.size() != MergeFactory.MAX_QUERY_FIELD_SIZE){\n throw new SqlParserException(\"the query fields max be equals \" + MergeFactory.MAX_QUERY_FIELD_SIZE);\n }\n return fields;\n } catch (SQLException e) {\n LOG.error(\"merge resultSet error\",e);\n throw new MergeException(\"merge resultSet error\" , e);\n }\n }", "com.google.protobuf.ByteString\n getField1446Bytes();", "com.google.protobuf.ByteString\n getField1068Bytes();", "com.google.protobuf.ByteString\n getField1265Bytes();", "com.google.protobuf.ByteString\n getField1965Bytes();", "com.google.protobuf.ByteString\n getField1977Bytes();", "com.google.protobuf.ByteString\n getField1943Bytes();", "com.google.protobuf.ByteString\n getField1846Bytes();", "com.google.protobuf.ByteString\n getField1347Bytes();", "com.google.protobuf.ByteString\n getField1967Bytes();", "com.google.protobuf.ByteString\n getField1369Bytes();", "com.google.protobuf.ByteString\n getField1255Bytes();", "public abstract Set<ResolvedFieldDeclaration> getDeclaredFields();", "com.google.protobuf.ByteString\n getField1547Bytes();", "com.google.protobuf.ByteString\n getField1258Bytes();", "com.google.protobuf.ByteString\n getField1972Bytes();", "com.google.protobuf.ByteString\n getField1962Bytes();", "com.google.protobuf.ByteString\n getField1945Bytes();", "com.google.protobuf.ByteString\n getField1968Bytes();", "com.sagas.meta.model.MetaFieldData getFields(int index);", "com.google.protobuf.ByteString\n getField1027Bytes();", "com.google.protobuf.ByteString\n getField1235Bytes();", "public Iterator serializableFieldsFor(Class cls) {\n return buildMap(cls, true).values().iterator();\n }", "com.google.protobuf.ByteString\n getField1436Bytes();", "com.google.protobuf.ByteString\n getField1034Bytes();", "com.google.protobuf.ByteString\n getField1966Bytes();", "com.google.protobuf.ByteString\n getField1259Bytes();", "com.google.protobuf.ByteString\n getField1045Bytes();", "com.google.protobuf.ByteString\n getField1065Bytes();", "com.google.protobuf.ByteString\n getField1746Bytes();" ]
[ "0.6747239", "0.66124004", "0.64714915", "0.640866", "0.64064926", "0.6325985", "0.63084024", "0.6239215", "0.6178487", "0.60855615", "0.6069553", "0.6031712", "0.59958726", "0.59869814", "0.5907536", "0.5879237", "0.58385456", "0.57595617", "0.5748511", "0.57417345", "0.5722238", "0.56991273", "0.5684205", "0.56690174", "0.5666244", "0.5651968", "0.5647316", "0.5644916", "0.5643502", "0.5641654", "0.5640177", "0.56385267", "0.5623599", "0.5611398", "0.560191", "0.55978054", "0.5595337", "0.5584547", "0.55776143", "0.5575046", "0.55729586", "0.55702966", "0.5569812", "0.55662817", "0.55632615", "0.55585486", "0.5556594", "0.55521166", "0.55518574", "0.5545257", "0.5542926", "0.554214", "0.55371785", "0.5535489", "0.55310416", "0.55241114", "0.55166537", "0.55150986", "0.55112755", "0.5508207", "0.5507912", "0.5507901", "0.5507638", "0.5504066", "0.5499462", "0.54957855", "0.54909736", "0.5489335", "0.54887605", "0.5488655", "0.54846185", "0.5480207", "0.54792833", "0.5477391", "0.5475482", "0.54726416", "0.54699343", "0.5469377", "0.5467959", "0.5462192", "0.5460605", "0.5458596", "0.5456611", "0.5454345", "0.5453163", "0.54521686", "0.544576", "0.54379946", "0.54350424", "0.54349", "0.54300696", "0.5429722", "0.54251605", "0.5424079", "0.5423904", "0.54236144", "0.5423137", "0.54231066", "0.5422965", "0.54227173", "0.5422153" ]
0.0
-1
Get the number of fields in a hash.
public Long hlen(final String key) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.hlen(key); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFieldsCount();", "int getFieldsCount();", "int getFieldCount();", "public int getFieldCount()\n {\n return this.fieldMap.size();\n }", "public int getFieldCount()\r\n/* 58: */ {\r\n/* 59:78 */ return this.fields.size();\r\n/* 60: */ }", "public int getNumFields()\n {\n return getFieldTypMap().size();\n }", "public int getFieldCount(String fieldName);", "public int numberOfFields() { return fld_count; }", "@Override\n public int getFieldsCount() {\n return fields_.size();\n }", "public int getFieldsCount() {\n if (fieldsBuilder_ == null) {\n return fields_.size();\n } else {\n return fieldsBuilder_.getCount();\n }\n }", "int getProbeFieldsCount();", "public int getFieldCount() {\n return entityMetaData.getFields().size();\n }", "public int getNumberFields ()\n\t{\n\t\treturn m_Fields.size();\n\t}", "public int length() {\n return fields.length;\n }", "public int numFields() { \n\t\treturn element.getContentSize(); \n\t}", "public int getSize() throws Exception {\n int size = 0;\n java.util.Vector fieldVector = getFieldVector();\n for (int i = 0; i < fieldVector.size(); i++) {\n Field field = (Field) (fieldVector.elementAt(i));\n Class type = field.getType();\n if (type == Byte.TYPE) {\n size += 1;\n }\n else if (type == Short.TYPE) {\n size += 2;\n }\n else if (type == Integer.TYPE) {\n size += 4;\n }\n else if (type == Long.TYPE) {\n size += 8;\n }\n else if (type == Double.TYPE) {\n size += 8;\n }\n else if (type.getName().equals(\"[B\")) {\n size += ( (byte[]) (field.get(this))).length;\n }\n }\n return size;\n }", "public int getFieldCount() {\n\treturn 0;\n}", "public static int getFieldsCount(Class clazz){\n\t\treturn clazz.getDeclaredFields().length;\n\t}", "public int getSize() {\n return field.length;\n }", "public int getFieldLength()\n\t{\n\t\treturn fieldLength;\n\t}", "public int getFieldsCount() {\n return TestRow._ALL_FIELDS.length;\n }", "public static int calculateRecordCount(Hashtable data) {\r\n int r = 0;\r\n Enumeration keys = data.keys();\r\n while (keys.hasMoreElements()) {\r\n Object oKey = keys.nextElement();\r\n Object v = data.get(oKey);\r\n if ((v != null) && (v instanceof Vector)) {\r\n r = ((Vector) v).size();\r\n break;\r\n }\r\n }\r\n return r;\r\n }", "public int nHeaderFields() {\n return nHeaderFields;\n }", "public int getProbeFieldsCount() {\n return probeFields_.size();\n }", "public int sizeOfMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MAPPINGFIELDS$28);\n }\n }", "public int getNumFields() {\n return columns.size();\n }", "public int getProbeFieldsCount() {\n return probeFields_.size();\n }", "public int getDataFieldCount() {\n\t\treturn this.dataFields.size();\n\t}", "public int size() {\r\n return numberOfKeys;\r\n }", "int getAttributeFieldMappingsCount();", "public int size() \n\t{\n\t\treturn numKeys;\n\t}", "int getPropertiesCount();", "@Override\n public int getG2HashTableNumberOfEntries() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.G2_HASH_TABLE_NUMBER_OF_ENTRIES_);\n return ((Integer)retnValue).intValue ();\n }", "public Integer sizeOfMap() {\n\t\tMap<String, String> simpleMap = createSimpleMap(\"Key\", \"Value\");\n numberOfEntries = 10;\n\t\treturn simpleMap.size();\n\t}", "int getPropsCount();", "public int size(){\n\t\treturn hashTableSize;\n\t}", "int getClientHashLength();", "public int size() {\n if (hasKeys) {\n return keys.size();\n } else {\n return objects.size();\n }\n }", "public int getHashLength() {\n\t\treturn hashLength;\n\t}", "public int numOfHashFunctions() {\n return config().getK();\n }", "int getNumKeys();", "@Override\r\n public int getSize()\r\n {\r\n return keyHash.size();\r\n }", "public int sizeOfTypekeyArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TYPEKEY$16);\r\n }\r\n }", "Integer countForKey(String key);", "int getPasswordHashLength();", "public int numberOfEntries();", "@Override\n public int size() {\n return numKeys;\n }", "public int size(){\n\t\tListMapEntry temp = first;\n\t\tint c=0;\n\t\twhile(temp!=null){\n\t\t\tc++;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t\treturn c;\n\t}", "public static int getSize(HashMap<Integer, String> students) {\n\t\treturn students.size();\n\t}", "public int size() {\n\t\treturn nvPairs.size() >> 1;\n\t}", "public static int getFieldSize(Field field) {\n Class<?> fieldType = field.getType();\n return getClassSize(fieldType);\n }", "@Override\n public int size() {\n return numKeys;\n }", "public int size() {\n int size = 0;\n for (Collection<V> value : map.values()) {\n size += value.size();\n }\n return size;\n }", "public int size() { return _byHashCode.size(); }", "public int getLength(){\n return keys.length;\n }", "int sizeOfKeyArray();", "public long getSize() {\n // a char is two bytes\n int size = (key.length() * 2) + 4;\n\n if (id != null) {\n size += ((id.length() * 2) + 4);\n }\n\n if (content != null) {\n if (content.getClass() == String.class) {\n size += ((content.toString().length() * 2) + 4);\n } else if (content instanceof CacheContent) {\n size += ((CacheContent) content).getSize();\n } else {\n return -1;\n }\n\n //add created, lastUpdate, and wasFlushed field sizes (1, 8, and 8)\n return size + 17;\n } else {\n return -1;\n }\n }", "public int get_count() {\n return (int)getUIntBEElement(offsetBits_count(), 16);\n }", "private int getKeyLength() {\n MongoCursor<Document> cursor = this.keystoreCollection.find(eq(\"conf\", \"homomorphic-keylength\")).iterator();\n\n int keyLength = 2048; // Default value is 2048 bits\n while (cursor.hasNext()) {\n keyLength = cursor.next().getDouble(\"keylength\").intValue();\n }\n return keyLength;\n }", "public static <T> int getFieldCount(Class<T> clazz) throws NoSuchFieldException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException {\n\n int fieldCount = 0;\n Class[] declaredClasses = clazz.getDeclaredClasses();\n Field[] declaredFields = clazz.getDeclaredFields();\n\n for (Field field : declaredFields) {\n fieldCount++;\n }\n\n for (Class innerClass : declaredClasses) {\n Field[] innerClassDeclaredFields = innerClass.getDeclaredFields();\n for (Field field : innerClassDeclaredFields) {\n fieldCount++;\n }\n }\n return fieldCount;\n }", "@Override\n\tpublic int getFieldCount() {\n\t\treturn 0;\n\t}", "public int getNumberOfOccupiedFields() {\n this.numberOfOccupiedFields = numberOfFieldsOccupiedByStoneColor(Color.WHITE) + numberOfFieldsOccupiedByStoneColor(Color.BLACK);\n return numberOfOccupiedFields;\n }", "@Override\n public int size() {\n int count = 0;\n for (Counter c : map.values())\n count += c.value();\n return count;\n }", "private int getVariablesNumberInMap() {\n\t\tSet<String> variables = KeyValue.getFirstLevelKeys();\n\t\tint count = 0;\n\t\tfor (String name : variables) {\n\t\t\tif (!name.contains(\"~\")) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "public static synchronized int size() {\n\t\treturn ClassRegistry.dictionary.size();\n\t}", "public int getNumberOfStructures() {\n\t\tSet<String> cs = this.getMainInstance().getConfig().getConfigurationSection(\"Schematics\").getKeys(false);\n\t\treturn cs.size();\n\t}", "public synchronized int size() throws IOException {\n\t\t\treadIndex();\n\t\t\treturn keys.size();\n\t\t}", "public int count( K key ) {\n Integer i = map.get( key );\n return i == null ? 0 : i;\n }", "final int lengthInBits(final K key) {\n\tif (key == null) {\n\t return 0;\n\t}\n\n\treturn keyAnalyzer.lengthInBits(key);\n }", "public int size() {\n return keys.length;\n }", "public int get_var_count()\r\n {\r\n\r\n int retVal = get_var_count_0(nativeObj);\r\n\r\n return retVal;\r\n }", "int getKeySize();", "int getFieldViolationsCount();", "public int getNumberOfEntries();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "private int sizeForHashTable()\n {\n String compare=\"\";\n int numberOfdates = 0;\n for (int i=0; i <= hourly.size();i++)\n {\n if (i==0)\n {\n numberOfdates +=1;\n compare = data.get(i).getFCTTIME().getPretty();\n }else if(compare != data.get(i).getFCTTIME().getPretty())\n {\n numberOfdates+=1;\n compare = data.get(i).getFCTTIME().getPretty();\n }\n }\n return numberOfdates;\n }", "public native int lexiconSize(int field);", "public long getNumDefinedData();", "int getValuesCount();", "public int getNumElements() {\n return theMap.size();\n }", "public int getStampFieldCount();", "@Override\n public int getFieldCount() {\n return 0;\n }", "public int getSize()\n\t{\n\t\treturn bits.size();\n\t}", "public int count () throws IOException {\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tinit();\n\t\twhile(hasNext()) {\n\t\t\tElement el = nextElement();\n\t\t\tint hash = el.GetHash();\n\t\t\tint pos = locate (list, hash);\n\t\t\tif ((pos == list.size()) || (list.get(pos) != hash)) {\n\t\t\t\tlist.add(pos, hash);\n\t\t\t}\n\t\t\t/*for (i=0; i<list.size() && list.get(i)<hash; i++) {}\n\t\t\t\tif ((i==list.size()) || (list.get(i) != el.GetHash())) {\n\t\t\t\t\tlist.add(i, hash);\n\t\t\t\t}*/\n\t\t}\n\t\treturn list.size();\n\t}", "public static int count() {\n return numEncryptForm;\n }", "public int headerLength();", "public int size() {\n\t\treturn map.size();\n\t}", "public int getNumberOfBytes() {\n\treturn this.type.getNumberOfBytes();\n }", "public final synchronized int size() {\n\t\treturn map.size();\n\t}", "public int getNumberOfEntries() ;", "@org.junit.Test\n public void size() throws Exception {\n assertEquals(3, hashTable.size());\n hashTable.put(\"math\", \"club\");\n assertEquals(3, hashTable.size());\n hashTable.put(\"input\", \"string\");\n assertEquals(4, hashTable.size());\n }", "protected int dictionarySize() {\n int count = 0;\n \n for ( WordList w : this.wordLists ) {\n count += w.size();\n }\n \n return count;\n }", "private static int \n headersCount (final Map.Entry <String, VersionedValue> entry)\n {\n return entry.getKey ().length () + 1 + 4 + entry.getValue ().getValue ().length () + 1;\n }", "private int infoCount() {\n return data.size();\n }", "public int size()\n\t{\n\t\tint size = 0;\n\t\tfor(List<Registry.Entry> li : this.reg.values())\n\t\t\tsize += li.size();\n\t\treturn size;\n\t}", "public PrimitiveVS<Integer> size() {\n return keys.size();\n }", "@Override\r\n\tpublic int size() {\n\t\treturn keys.size();\r\n\t}" ]
[ "0.75902367", "0.75902367", "0.7439004", "0.73898184", "0.73867416", "0.73533434", "0.7349956", "0.729839", "0.6911221", "0.6891158", "0.6876586", "0.6862568", "0.682372", "0.6786363", "0.67676127", "0.67606664", "0.6678022", "0.66597986", "0.6659737", "0.6595176", "0.6586481", "0.6512566", "0.64787173", "0.64703923", "0.64550364", "0.644517", "0.6423407", "0.6398011", "0.63947946", "0.6347828", "0.6334235", "0.63019407", "0.629968", "0.6275722", "0.6273186", "0.6270598", "0.62396663", "0.62165755", "0.6190872", "0.61719906", "0.61676186", "0.61379725", "0.61369765", "0.6130008", "0.6109548", "0.60386056", "0.6010554", "0.60060835", "0.60056067", "0.5991465", "0.5990852", "0.59652585", "0.5964412", "0.59363854", "0.5920905", "0.5915216", "0.5909188", "0.5908171", "0.59037554", "0.59032845", "0.5901737", "0.5890313", "0.58826166", "0.58651793", "0.5850276", "0.5835762", "0.5830737", "0.58270943", "0.58264464", "0.58132017", "0.5811879", "0.5805919", "0.58045274", "0.58043265", "0.5790222", "0.5790222", "0.5790222", "0.5790222", "0.5790222", "0.5777453", "0.5773292", "0.5754817", "0.57500315", "0.5736511", "0.57297635", "0.5720536", "0.5716091", "0.57136023", "0.57129866", "0.5712939", "0.57025677", "0.56974894", "0.56974596", "0.569396", "0.5692064", "0.56878483", "0.56864804", "0.56840694", "0.5683903", "0.56771106", "0.5671895" ]
0.0
-1
Return a range of members in a sorted set, by index. Ordered from the lowest to the highest score.
public Set<String> zrange(String key, long start, long end) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.zrange(key, start, end); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<T> getRanges();", "int getRange();", "public abstract void selectIndexRange(int min, int max);", "List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);", "public static List <Index> rangeOf(int start, int end) {\r\n FastTable <Index> list = FastTable.newInstance();\r\n for (int i=start; i < end; i++) {\r\n list.add(Index.valueOf(i));\r\n }\r\n return list;\r\n }", "java.util.List<AuditoriaUsuario> findRange(int startPosition, int maxResults, String sortFields, String sortDirections);", "public int getLowerBound ();", "Score getScores(int index);", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "public Set<Tuple> zrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "long getParticipants(int index);", "CollectionRange createCollectionRange();", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "Lista<V> valuesInRange(K init, K end);", "public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "private static void accessIndexInSet(Set<Integer> numbers) {\n int desiredIndex = 2;\n int currentIndex = 0;\n\n //iterate the HashSet\n Iterator<Integer> iterator = numbers.iterator();\n while (iterator.hasNext()) {\n\n if (currentIndex == desiredIndex)\n System.out.println(\"Element at index \" + desiredIndex + \" is: \" + iterator.next());\n iterator.next();\n currentIndex++;\n }\n\n // M2: convert it to list\n List<Integer> list = new ArrayList<Integer>(numbers);\n list.get(2);\n\n // M3: convert it to Array []\n Integer[] integers = numbers.toArray(new Integer[numbers.size()]);\n int i = integers[2];\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "Lista<K> keysInRange(K init, K end);", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "public List<com.heman.bysj.jooq.tables.pojos.Teacher> fetchRangeOfPosition(String lowerInclusive, String upperInclusive) {\n return fetchRange(Teacher.TEACHER.POSITION, lowerInclusive, upperInclusive);\n }", "private SingleRange GetRangeAt(int i)\n\t{\n\t\treturn _rangelist.get(i);\n\t}", "public List<Integer> getBySetPos() {\n\t\treturn bySetPos;\n\t}", "abstract List<V> rangeSearch(K key, String comparator);", "static List<Range<Long>> getRanges(Collection<Long> fullPulses) {\n checkNotNull(fullPulses, \"fullPulses was null\");\n\n List<Long> sortedPulses = fullPulses.stream().sorted().collect(toList());\n\n Optional<Long> first = sortedPulses.stream().findFirst();\n if (!first.isPresent()) {\n return emptyList();\n }\n\n Long bottomOfRange = first.get();\n if (sortedPulses.size() == 1) {\n return singletonList(singleton(bottomOfRange));\n }\n\n List<Range<Long>> foundRanges = new ArrayList<>();\n\n Long lastPulse = bottomOfRange;\n\n for (Long pulse : sortedPulses) {\n if (isaSignificantGapBetweenPulses(lastPulse, pulse)) {\n // We have a range\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n\n bottomOfRange = pulse;\n }\n lastPulse = pulse;\n }\n\n if (bottomOfRange.equals(lastPulse)) {\n foundRanges.add(singleton(bottomOfRange));\n } else {\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n }\n\n return ImmutableList.copyOf(foundRanges);\n }", "public int getRange()\n\t{\n\t\treturn Range;\n\t}", "protected abstract R getRange(E entry);", "public int getRange() {\n return mRange;\n }", "public static int minPartition(int[] nums, int index, int firstSet, int secondSet,\r\n Map<String, Integer> lookUp) {\r\n\r\n if (index == nums.length) {\r\n return Math.abs(firstSet - secondSet);\r\n }\r\n\r\n String key = index + \"!\" + firstSet + secondSet;\r\n if (lookUp.containsKey(key)) {\r\n return lookUp.get(key);\r\n }\r\n int include = minPartition(nums, index + 1, firstSet + nums[index], secondSet, lookUp);\r\n\r\n int exclude = minPartition(nums, index + 1, firstSet, secondSet + nums[index], lookUp);\r\n\r\n lookUp.put(key, Integer.min(include, exclude));\r\n\r\n return lookUp.get(key);\r\n }", "int getAttackRange();", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "public Iterable<Point2D> range(RectHV rect) {\n ArrayList<Point2D> returnArray = new ArrayList<Point2D>();\n if (rect == null) {\n throw new IllegalArgumentException(\"rect input is null\");\n }\n for (Point2D i : pointsSet) {\n if (rect.contains(i))\n returnArray.add(i);\n }\n return returnArray;\n }", "int[] getGivenByOrder();", "public Set<Tuple> zrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScoreWithScores(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "VocNoun getRange();", "public List<Integer> findTopGenesByRanking( Integer n ) throws DAOException;", "int getGroupIdUpperBound();", "int getBlockNums(int index);", "int getBlockNums(int index);", "public abstract int maxIndex();", "int getBlockNumbers(int index);", "public ArrayList<Individual> getSortedPopulation(){\n ArrayList<Individual> sortedIndividuals = new ArrayList<Individual>();\n\n for(Individual individual: individuals){\n int indexToadd = 0;\n\n if(sortedIndividuals.isEmpty()){\n sortedIndividuals.add(individual);\n }\n else {\n for(Individual sortedIndividual : sortedIndividuals){\n if(individual.getFitness() > sortedIndividual.getFitness()){\n indexToadd = sortedIndividuals.indexOf(sortedIndividual);\n break;\n }\n }\n if(indexToadd == 0 ){\n sortedIndividuals.add(individual);\n }\n else {\n sortedIndividuals.add(indexToadd,individual);\n }\n }\n }\n return sortedIndividuals;\n }", "private List<Integer> allIntegerInRange(int start, int end) {\n\t\tList<Integer> range = new ArrayList<Integer>();\n\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\trange.add(i);\n\t\t}\n\n\t\treturn range;\n\t}", "@Test\n public void test_range_Integer_Collection4() {\n populate_i3();\n Collection<Integer> actual = Selector.range(i3, 4, 8, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(8);\n expected.add(7);\n expected.add(6);\n expected.add(5);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "Set<E> getForwardNeighbors();", "People getFriendList(int index);", "protected IntHashSet getMemberHashSet() {\n\t\treturn memberHashSet;\n\t}", "public Genotype rouletteSelection() {\n // get a number between 0 and 1 to compare against\n double slice = rnd.nextDouble();\n // keep track of the cumulative fitness\n double cumulativeFitness = 0;\n\n // loop through the population to pick a mate\n for (Genotype g : population) {\n // increment the cumulative fitness with the member's normalized fitness\n cumulativeFitness += g.getNormalizedFitness();\n // if the cumulative fitness is greater than the random number,\n if (cumulativeFitness > slice) {\n // select the member for mating\n return g;\n }\n }\n\n // if no members are chosen, pick the one with the highest fitness score\n return population.get(0);\n }", "public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "static int m36189a(Rect rect, Set<Rect> set) {\n int i = 0;\n if (set.isEmpty()) {\n return 0;\n }\n ArrayList<Rect> arrayList = new ArrayList<>();\n arrayList.addAll(set);\n Collections.sort(arrayList, new Comparator<Rect>() {\n /* renamed from: a */\n public final int compare(Rect rect, Rect rect2) {\n return Integer.valueOf(rect.top).compareTo(Integer.valueOf(rect2.top));\n }\n });\n ArrayList arrayList2 = new ArrayList();\n for (Rect rect2 : arrayList) {\n arrayList2.add(Integer.valueOf(rect2.left));\n arrayList2.add(Integer.valueOf(rect2.right));\n }\n Collections.sort(arrayList2);\n int i2 = 0;\n while (i < arrayList2.size() - 1) {\n int i3 = i + 1;\n if (!((Integer) arrayList2.get(i)).equals(arrayList2.get(i3))) {\n Rect rect3 = new Rect(((Integer) arrayList2.get(i)).intValue(), rect.top, ((Integer) arrayList2.get(i3)).intValue(), rect.bottom);\n int i4 = rect.top;\n for (Rect rect4 : arrayList) {\n if (Rect.intersects(rect4, rect3)) {\n if (rect4.bottom > i4) {\n i2 += rect3.width() * (rect4.bottom - Math.max(i4, rect4.top));\n i4 = rect4.bottom;\n }\n if (rect4.bottom == rect3.bottom) {\n break;\n }\n }\n }\n }\n i = i3;\n }\n return i2;\n }", "public int getLowerBound() {\r\n return lowerBound;\r\n }", "Index getIndices(int index);", "public int pickIndex() {\n int len = weightPrefixSum.length;\n\n int idx = random.nextInt(weightPrefixSum[len - 1]) + 1;\n\n int start = 0;\n int end = len - 1;\n while(start <= end){\n int mid = start + (end - start) / 2;\n\n if(weightPrefixSum[mid] == idx){\n return mid;\n }else if(weightPrefixSum[mid] < idx){\n start = mid + 1;\n }else{\n end = mid - 1;\n }\n }\n\n return start;\n\n }", "public int getIndex(int start) {\n int left = 0;\r\n int right = bookings.size()-1;\r\n while (left <= right) {\r\n int mid = left + (right-left)/2;\r\n if (bookings.get(mid).start == start) {\r\n return mid;\r\n }\r\n else if (bookings.get(mid).start < start) {\r\n left = mid+1;\r\n }\r\n else {\r\n right = mid-1;\r\n }\r\n }\r\n return right;\r\n }", "public SortedSubset(RangeSet<T> constitutingSuperset, T lowerbound, T upperbound)\n\t{\n\t\tinit(constitutingSuperset, lowerbound, upperbound, true, false);\n\t}", "public Set<String> zrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScore(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScoreWithScores(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Sort Range() throws Z3Exception\n\t{\n\t\treturn Sort.Create(Context(),\n\t\t\t\tNative.getArraySortRange(Context().nCtx(), NativeObject()));\n\t}", "public V getLowerBound();", "public XnRegion keysOf(int start, int stop) {\n\t\tint offset = start;\n\t\tint left = -1;\n\t\tStepper stepper = myRegion.simpleRegions(myOrdering);\n\t\ttry {\n\t\t\tXnRegion region;\n\t\t\twhile ((region = (XnRegion) stepper.fetch()) != null) {\n\t\t\t\tif (region.count().isLE(IntegerValue.make(offset))) {\n\t\t\t\t\toffset = offset - region.count().asInt32();\n\t\t\t\t} else {\n\t\t\t\t\tif (left == -1) {\n\t\t\t\t\t\tleft = ((IntegerPos) (region.chooseOne(myOrdering))).asIntegerVar().asInt32() + offset;\n\t\t\t\t\t\toffset = stop - (start - offset);\n\t\t\t\t\t\tif (offset <= region.count().asInt32()) {\n\t\t\t\t\t\t\treturn IntegerRegion.make(\n\t\t\t\t\t\t\t\tIntegerValue.make(left),\n\t\t\t\t\t\t\t\t(((IntegerPos) (region.chooseOne(myOrdering))).asIntegerVar().plus(IntegerValue.make(offset))));\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint right = ((IntegerPos) (region.chooseOne(myOrdering))).asIntegerVar().asInt32() + offset;\n\t\t\t\t\t\treturn IntegerRegion.make(IntegerValue.make(left), IntegerValue.make(right));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstepper.step();\n\t\t\t}\n\t\t} finally {\n\t\t\tstepper.destroy();\n\t\t}\n\t\tthrow new AboraRuntimeException(AboraRuntimeException.NOT_IN_TABLE);\n\t\t/*\n\t\tudanax-top.st:12729:IntegerArrangement methodsFor: 'accessing'!\n\t\t{XnRegion} keysOf: start {Int32} with: stop {Int32}\n\t\t\t\"Return the region that corresponds to a range of indices.\"\n\t\t\t| offset {Int32} left {Int32} right {Int32} | \n\t\t\toffset _ start.\n\t\t\tleft _ -1.\n\t\t\t(myRegion simpleRegions: myOrdering) forEach: \n\t\t\t\t[:region {XnRegion} |\n\t\t\t\tregion count <= offset \n\t\t\t\t\tifTrue: [offset _ offset - region count DOTasLong]\n\t\t\t\t\tifFalse:\n\t\t\t\t\t\t[left == -1 \n\t\t\t\t\t\t\tifTrue: \n\t\t\t\t\t\t\t\t[left _ ((region chooseOne: myOrdering) cast: IntegerPos) asIntegerVar DOTasLong + offset.\n\t\t\t\t\t\t\t\toffset _ stop - (start - offset).\n\t\t\t\t\t\t\t\toffset <= region count DOTasLong ifTrue: \n\t\t\t\t\t\t\t\t\t[^IntegerRegion make: left \n\t\t\t\t\t\t\t\t\t\t\twith: (((region chooseOne: myOrdering) cast: IntegerPos) asIntegerVar + offset)]]\n\t\t\t\t\t\t\tifFalse:\n\t\t\t\t\t\t\t\t[right _ ((region chooseOne: myOrdering) cast: IntegerPos) asIntegerVar DOTasLong + offset.\n\t\t\t\t\t\t\t\t^IntegerRegion make: left with: right]]].\n\t\t\tHeaper BLAST: #NotInTable.\n\t\t\t^ NULL \"compiler fodder\"!\n\t\t*/\n\t}", "public static int pickWeighted(int start, int end, Vector data, Random rng)\r\n\t{\r\n\t\t//System.out.println(Arrays.toString(data));\r\n\t\tVector dupes = data.copy();\r\n\t\tdouble totalSum=0;\r\n\t\tfor(int a=start;a<end;a++)\r\n\t\t{\r\n\t\t\ttotalSum+=data.get(a);\r\n\t\t}\r\n\t\t//divide chances by a.\r\n\t\tdupes.scale(1.0/totalSum);\r\n\t\tdouble check = rng.nextDouble();\r\n\t\ttotalSum=0;\r\n\t\tfor(int a=start;a<end;a++)\r\n\t\t{\r\n\t\t\tif(totalSum+dupes.get(a)>check)\r\n\t\t\t\treturn a;\r\n\t\t\ttotalSum+=dupes.get(a);\r\n\t\t}\r\n\t\treturn end-1;\r\n\t}", "@Test\n public void test_range_Integer_Collection3() {\n populate_i2();\n Collection<Integer> actual = Selector.range(i2, 5, 3, new CompareIntegerDescending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(5);\n expected.add(3);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "public ImmutableSortedSet<C> subSetImpl(C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) {\n if (fromInclusive || toInclusive || Range.compareOrThrow(fromElement, toElement) != 0) {\n return subSet(Range.range(fromElement, BoundType.forBoolean(fromInclusive), toElement, BoundType.forBoolean(toInclusive)));\n }\n return ImmutableSortedSet.of();\n }", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> point_list = new SET<Point2D>();\n rangesearch(root, rect, point_list);\n return point_list;\n }", "public static Automaton.List rangeOf(Automaton automaton,\n\t\t\tAutomaton.Int _start, Automaton.Int _end) {\n\t\t// FIXME: there is a bug here for big integer values.\n\t\tint start = _start.intValue();\n\t\tint end = _end.intValue();\n\t\tint[] children = new int[end - start];\n\t\tfor (int i = 0; i < children.length; ++i, ++start) {\n\t\t\tchildren[i] = automaton.add(new Automaton.Int(start));\n\t\t}\n\t\treturn new Automaton.List(children);\n\t}", "KeyGroupRange getKeyGroupRange();", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "public interface RangeWithBeginning<A extends Comparable<? super A>> extends Range<A>\r\n{\r\n\t// ABSTRACT\t------------------\r\n\t\r\n\t/**\r\n\t * @return The first value inside this range\r\n\t */\r\n\tpublic A first();\r\n}", "public static ArrayList<Member> sortByNumber(ArrayList<Member> s) {\r\n\t\tArrayList<Member> output = new ArrayList<Member>();\r\n\t\twhile(s.size()>0) {\r\n\t\t\tint minNo=0;\r\n\t\t\tString min=s.get(0).getNumber();\r\n\t\t\tfor(int i=0;i<s.size();i++) {\r\n\t\t\t\tif(Member.numberSmaller(s.get(i).getNumber(),min)) {\r\n\t\t\t\t\tmin=s.get(i).getNumber();\r\n\t\t\t\t\tminNo=i;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\toutput.add(s.get(minNo));\r\n\t\t\ts.remove(s.get(minNo));\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "private HashSet<Position> getInRange(int p_r, Distance p_d)\n {\n HashSet<Position> s = new HashSet<Position>();\n\n for (int x = 0; x <= p_r; x++)\n {\n int y = 0;\n Position p = new Position(this.x + x, this.y + y);\n\n while (p_d.inside(this, p, p_r))\n {\n s.add(p);\n s.add(new Position(this.x - x, this.y + y));\n s.add(new Position(this.x + x, this.y - y));\n s.add(new Position(this.x - x, this.y - y));\n p = new Position(this.x + x, this.y + ++y);\n }\n }\n return s;\n }", "int getRequestedValues(int index);", "private static int findPivot(int[] nums, int start, int end)\r\n\t{\n\t\tif (end - start <= 1)\r\n\t\t\treturn nums[start] < nums[end] ? start : end;\r\n\r\n\t\t// If there are more than two elements\r\n\t\tint mid = (start + end) / 2;\r\n\t\tif (nums[mid] > nums[end])\r\n\t\t\treturn findPivot(nums, mid, end);\r\n\t\telse\r\n\t\t\treturn findPivot(nums, start, mid);\r\n\t}", "public List<StaffMember> getTeamMembers(){\n\t\tSet<StaffMember> team = teamleader.getDirectSubordinates();\n\t\tStaffMemberIterator iterator = new StaffMemberIterator(team);\n\t\tList<StaffMember> listOfMembers = iterator.listOfStaffMember;\n\t\tlistOfMembers.add(teamleader);\n\t\tCollections.sort(listOfMembers);\n\t\treturn listOfMembers;\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(findSubset(30, new int[]{2,3,7,8,10}));\n\n\t}", "public ImmutableSortedSet<C> subSet(Range<C> range) {\n return ImmutableRangeSet.this.subRangeSet((Range) range).asSet((DiscreteDomain<C>) this.domain);\n }", "@Test\n public void test_range_Integer_Collection1() {\n populate_i1();\n Collection<Integer> actual = Selector.range(i1, 1, 5, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(2);\n expected.add(3);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "Set<String> getRangeLocalNames();", "public Range findRangeBounds(CategoryDataset dataset) { return findRangeBounds(dataset, true); }", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "@Override\r\n public void getRange(ArrayList<Piece> pieces){\r\n this.range.clear();\r\n int pieceX = this.getX(); int pieceY = this.getY(); // X and Y coordinates for the king piece\r\n\r\n // getPiece: 0 = empty; 1 = same color; 2 = opposite color\r\n //Up\r\n if (this.getPiece(pieceX, pieceY+1, pieces) == 0 || this.getPiece(pieceX, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Up-right\r\n if (this.getPiece(pieceX+1, pieceY+1, pieces) == 0 || this.getPiece(pieceX+1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Right\r\n if (this.getPiece(pieceX+1, pieceY, pieces) == 0 || this.getPiece(pieceX+1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Down-right\r\n if (this.getPiece(pieceX+1, pieceY-1, pieces) == 0 || this.getPiece(pieceX+1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down\r\n if (this.getPiece(pieceX, pieceY-1, pieces) == 0 || this.getPiece(pieceX, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down-left\r\n if (this.getPiece(pieceX-1, pieceY-1, pieces) == 0 || this.getPiece(pieceX-1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Left\r\n if (this.getPiece(pieceX-1, pieceY, pieces) == 0 || this.getPiece(pieceX-1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Up-left\r\n if (this.getPiece(pieceX-1, pieceY+1, pieces) == 0 || this.getPiece(pieceX-1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Castling\r\n for (Piece piece : pieces) {\r\n if (piece instanceof Rook) {\r\n if (piece.getColor() == this.getColor()) {\r\n if (validCastling(pieces, (Rook)piece)) {\r\n int targetX = (piece.getX() < getX()) ? (this.getX() - 2) : (this.getX() + 2);\r\n this.range.add(new int[] {targetX, this.getY()});\r\n }\r\n }\r\n }\r\n }\r\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }", "Set<Art> getArtByPrice(Double upper, Double lower);", "public int[] searchRange(int[] nums, int target) {\r\n\r\n int[] res = {-1, -1};\r\n int left = lowerBound(nums, target);\r\n if (left != -1) {\r\n res[0] = left;\r\n res[1] = upperBound(nums, target);\r\n }\r\n return res;\r\n\r\n\r\n }", "public List rangeSearch(int x, int y){\n List list = new List(y-x);\n Node current = findClosest(x);\n Node end = findClosest(y);\n\n // list.append(current);\n // System.out.print(\"end 1 = \" + end.key+\" \");\n while(current.key<=end.key)\n {\n\n // System.out.print(\"current 2= \" + current.key+\" \");\n if(current.key<=y){ // ใส่ node ที่มีค่าไม่เกิน rangeSearch\n list.append(current);\n }\n\n if(current.key>=end.key){break;}\n\n current = findNext(current);\n\n\n\n // System.out.print(\"current 3= \" + current.key);\n\n }\n\n\n return list;\n }", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n return getChild(key).rangeSearch(key, comparator);\r\n }", "public abstract ucar.array.RangeIterator getRangeIterator();", "int getRanking();", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "public int getBound();", "Range controlLimits();", "public static void main(String[] args) {\n int size = 100;\n int mult = 100;\n\n ArrayList<Integer> numbers = new ArrayList<>();\n\n //generate random array to sort\n for (int i = 0; i < size; i++) {\n numbers.add((int) (Math.random() * mult));\n }\n\n System.out.println(numbers.toString());\n\n numbers = quickSortSubset(numbers,0);\n\n System.out.println(numbers.toString());\n\n }", "@SuppressWarnings({\"unchecked\"})\n List<Integer> findPrimaryIdPersonsByFirstLast(String first, String last, String indSealed);", "public static void main(String[] args) {\n\t\t\r\n\t\tTreeMap<Integer,String> map = new TreeMap<Integer,String>();\r\n\t\t\r\n map.put(2000, \"A\");\r\n map.put(5000, \"E\");\r\n map.put(6000, \"F\");\r\n map.put(7000, \"G\");\r\n map.put(3000, \"C\");\r\n map.put(4000, \"D\");\r\n map.put(2100, \"B\");\r\n System.out.println(map);\r\n System.out.println(\"max\"+map.lastKey());\r\n System.out.println(\"min\"+map.firstKey());\r\n \r\n Set<Integer> setLessThen3k = map.headMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessThen3k);\r\n \r\n Set<Integer> setLessgreater3k = map.tailMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessgreater3k);\r\n \r\n \r\n\r\n\t\tTreeMap<String,Integer> Usermap = new TreeMap<String,Integer>();\r\n\t\t\r\n\t\tUsermap.put( \"A\",2000);\r\n\t\tUsermap.put( \"F\",8000);\r\n\t\tUsermap.put( \"G\",7000);\r\n\t\tUsermap.put( \"C\",3000);\r\n\t\tUsermap.put( \"D\",3000);\r\n\t\tUsermap.put( \"E\",9000);\r\n\t\tUsermap.put( \"B\",8000);\r\n System.out.println(map);\r\n System.out.println(\"max\"+Usermap.lastKey());\r\n System.out.println(\"min\"+Usermap.firstKey());\r\n \r\n\r\n \r\n \r\n\t}", "Collection<Generalization> getPowertypeRanges();", "@Override\r\n\tpublic Score get(int i) throws IndexOutOfBoundsException {\r\n\t\t//when i is less than zero or greater than size()-1\r\n\t\tif (i < 0 || i > size() - 1)\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\treturn scoreList[i];\r\n\t}", "List<Integer> getSelectedIndexes();", "public double[] getRange();", "Collection getIndexesInGroup(Object groupID) throws Exception;" ]
[ "0.5773475", "0.5750223", "0.56621933", "0.55729127", "0.5451234", "0.538208", "0.53695667", "0.5349559", "0.52801144", "0.52161455", "0.5170137", "0.51440907", "0.51386", "0.51326954", "0.51225567", "0.5065345", "0.50183254", "0.5008307", "0.5002181", "0.4999076", "0.49684125", "0.4948719", "0.4920657", "0.49141628", "0.4907326", "0.49054003", "0.49010372", "0.48985225", "0.48820427", "0.48594335", "0.4853306", "0.4851377", "0.4849534", "0.48378694", "0.48313862", "0.48267984", "0.48043767", "0.47970694", "0.47944948", "0.47775403", "0.47775403", "0.47763285", "0.47733957", "0.47732875", "0.47715357", "0.47687533", "0.47673526", "0.47529602", "0.47444347", "0.47431383", "0.47320336", "0.47311738", "0.47272468", "0.47167474", "0.47078627", "0.4703987", "0.4697925", "0.46968782", "0.46930662", "0.46873444", "0.4668648", "0.46649045", "0.46553764", "0.46525174", "0.4650664", "0.46504596", "0.4648223", "0.4641223", "0.46375507", "0.46355623", "0.46353608", "0.46316224", "0.46276444", "0.46260464", "0.46249434", "0.46224663", "0.4616616", "0.46159014", "0.46145236", "0.46086738", "0.46047246", "0.46000993", "0.45994082", "0.45987248", "0.45929313", "0.45926687", "0.45918107", "0.45855245", "0.45850986", "0.45843777", "0.45680055", "0.45645574", "0.45641413", "0.45638785", "0.45624337", "0.45582104", "0.4554149", "0.45475867", "0.4541271", "0.4540801", "0.45278716" ]
0.0
-1
For Object, Return a range of members in a sorted set, by index.Ordered from the lowest to the highest score.
public <T> List<T> zrange(String key, long start, long end, Class<T> clazz) { List<T> result = new ArrayList<T>(); Jedis jedis = null; try { jedis = jedisPool.getResource(); Set<byte[]> tempSet = jedis.zrange(key.getBytes(), start, end); if (tempSet != null && tempSet.size() > 0) { for (byte[] value : tempSet) { // result.add((T) HessianSerializer.deserialize(value)); result.add(fromJsonByteArray(value, clazz)); } return result; } return null; } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);", "public Set<T> getRanges();", "java.util.List<AuditoriaUsuario> findRange(int startPosition, int maxResults, String sortFields, String sortDirections);", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "public Sort Range() throws Z3Exception\n\t{\n\t\treturn Sort.Create(Context(),\n\t\t\t\tNative.getArraySortRange(Context().nCtx(), NativeObject()));\n\t}", "@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn this.start - ((liveRange) arg0).start;\n\t}", "public static void main(String[] args) {\n SortedSet<CompareObject> objects = new TreeSet<>(new ComparatorTest());\n\n objects.add(new CompareObject(1));\n objects.add(new CompareObject(3));\n objects.add(new CompareObject(5));\n objects.add(new CompareObject(-13));\n objects.add(new CompareObject(12));\n objects.add(new CompareObject(1100));\n objects.add(new CompareObject(1));\n\n for (CompareObject x : objects){\n System.out.println(x);\n }\n\n }", "public int getLowerBound ();", "public static ArrayList<Member> sortByNumber(ArrayList<Member> s) {\r\n\t\tArrayList<Member> output = new ArrayList<Member>();\r\n\t\twhile(s.size()>0) {\r\n\t\t\tint minNo=0;\r\n\t\t\tString min=s.get(0).getNumber();\r\n\t\t\tfor(int i=0;i<s.size();i++) {\r\n\t\t\t\tif(Member.numberSmaller(s.get(i).getNumber(),min)) {\r\n\t\t\t\t\tmin=s.get(i).getNumber();\r\n\t\t\t\t\tminNo=i;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\toutput.add(s.get(minNo));\r\n\t\t\ts.remove(s.get(minNo));\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "@Override\r\n\tpublic int compareTo(StudentCollection o) {\n\t\treturn this.marks>o.marks?-1:(this.marks<o.marks?1:0);\r\n\t}", "public Set<Tuple> zrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "int getRange();", "CollectionRange createCollectionRange();", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "private int[] findMinMax(ArrayList<ArrayList<Integer>> objects, int featureNo) {\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\t\n\t\t\tfor(int b = 0; b < objects.size(); b++){\n\t\t\t\t\n\t\t\t\tmax = Math.max(objects.get(b).get(featureNo) , max);\n\t\t\t\tmin = Math.min(objects.get(b).get(featureNo) , min);\n\t\t\t}\n\t\t\t\n\t\t\treturn new int[]{max,min};\n\t\t}", "public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "@Override\n public int compareTo(ObjectScore arg0) {\n if (this.getScore() > arg0.getScore()) {\n return 1;\n } else if (this.getScore() < arg0.getScore()) {\n return -1;\n } else {\n return 0;\n }\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "public List<T> findByKey(String key, Object object, int start, int max);", "@Override\r\n\tpublic int compareTo(Member o) {\n\t\treturn 0;\r\n\t}", "public interface OrderedSet<T> {\r\n\r\n\tpublic void put(T key);\r\n\t\r\n\tpublic int rank(T key);\r\n\t\r\n\tpublic boolean contains(T key);\r\n\t\r\n\tpublic T select(int rank);\r\n\t\r\n\tpublic T[] keys();\r\n\t\r\n\tpublic T[] keys(int lo,int hi);\r\n\r\n\tpublic T[] keys(T lo, T hi);\r\n\t\r\n\t//(key-1)find the predecessor\r\n\tpublic T floor(T key);\r\n\t\r\n\t//(key+1)find the successor\r\n\tpublic T ceiling(T key);\r\n}", "VocNoun getRange();", "public V getLowerBound();", "Score getScores(int index);", "public HashMap<String, float[]> getAllInRange(float range, float [] obj_pos){\n HashMap<String, float[]> objs = new HashMap<>();\n float [] pos = new float [3];\n String name;\n float distance;\n for (int i = 0; i < field.length; i++){\n //euclidean distance and only add those in range\n //NOTE: could replace with (x<range && y<range && z<range)\n distance = (float)Math.sqrt(((obj_pos[0]-field[i].x)*(obj_pos[0]-field[i].x)) + ((obj_pos[1]-field[i].y)\n *(obj_pos[1]-field[i].y)) + ((obj_pos[2]-field[i].z)*(obj_pos[2]-field[i].z)));\n if (distance <= range) {\n name = \"Asteroid\" + i;\n pos[0] = field[i].x;\n pos[1] = field[i].y;\n pos[2] = field[i].z;\n objs.put(name, pos);\n }\n }\n return objs;\n }", "int[] getGivenByOrder();", "public ImmutableSortedSet<C> subSetImpl(C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) {\n if (fromInclusive || toInclusive || Range.compareOrThrow(fromElement, toElement) != 0) {\n return subSet(Range.range(fromElement, BoundType.forBoolean(fromInclusive), toElement, BoundType.forBoolean(toInclusive)));\n }\n return ImmutableSortedSet.of();\n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "public static List <Index> rangeOf(int start, int end) {\r\n FastTable <Index> list = FastTable.newInstance();\r\n for (int i=start; i < end; i++) {\r\n list.add(Index.valueOf(i));\r\n }\r\n return list;\r\n }", "public List<Integer> getBySetPos() {\n\t\treturn bySetPos;\n\t}", "public interface Ordinal {\r\n\t\r\n\tpublic Integer getOrdinal();\r\n\tpublic void setOrdinal(Integer ordinal);\r\n\t\r\n\tpublic Integer getId();\r\n\t\r\n\r\n\t/**\r\n\t * Compares two objects by their ordinal value, smaller values are first in order.\r\n\t * If the ordinal value is equal and objects are of different classes,\r\n\t * compares by lexicographic order of simple class name.\r\n\t * @param <T> a class that implements Ordinal interface.\r\n\t * @return comparator with a method for comparing by ordinal value. \r\n\t */\r\n\tpublic static <T extends Ordinal> Comparator<T> ordinalComparator() {\r\n\t\treturn new Comparator<T>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(T o1, T o2) {\r\n\t\t\t\tint result = o1.getOrdinal()-o2.getOrdinal();\r\n\t\t\t\tif(result == 0) {\r\n\t\t\t\t\tresult = o1.getClass().getSimpleName().compareTo(o2.getClass().getSimpleName());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn result;\r\n\t\t\t}};\r\n\t\t\r\n\t}\r\n\t\r\n\t/**\r\n\t * Helper function for setting default ordinal values, when not set.\r\n\t * If one all the ordinal values are null, will set according to received order.\r\n\t * @param array of objects with ordinal field to set.\r\n\t */\r\n\tpublic static void setOrdinals(Ordinal[] array) {\r\n\t\tif(Arrays.stream(array).allMatch(o -> o.getOrdinal() == null)) {\r\n\t\t\tfor(int i=0; i<array.length; i++) {\r\n\t\t\t\tarray[i].setOrdinal(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t/**\r\n\t * Helper function for setting default ordinal values, when not set.\r\n\t * If one all the ordinal values are null, will set according to received order.\r\n\t * @param list of objects with ordinal field to set.\r\n\t */\r\n\tpublic static <E extends Ordinal> void setOrdinals(List<E> list) {\r\n\t\tif(list != null && list.stream().allMatch(o -> o.getOrdinal() == null)) {\r\n\t\t\tfor(int i=0; i<list.size(); i++) {\r\n\t\t\t\tlist.get(i).setOrdinal(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}", "public Set<Tuple> zrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScoreWithScores(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public static void main(String[] args) {\n\n// SortedSet<Integer> set=new TreeSet<>();\n// set.add(45);\n// set.add(3);\n// set.add(12);\n// System.out.println(set);\n\n SortedSet<User> set=new TreeSet<>();\n set.add(new User(34,\"r\"));\n set.add(new User(4,\"j\"));\n set.add(new User(14,\"x\"));\n System.out.println(set);\n }", "@Override\n public int compareTo(final DistributionMember o) {\n // This is the most important bit.\n if (!getValue().equals(o.getValue())) return (int) Math.signum(o.getValue() - getValue());\n // The rest is arbitrary and just designed to keep non-identical DistributionMembers from being equal\n final List<Double> fitVals = getFitnessValues();\n final List<Double> otherVals = o.getFitnessValues();\n for (int i = 0; i < fitVals.size(); ++i) {\n if (!fitVals.get(i).equals(otherVals.get(i))) return (int) Math.signum(otherVals.get(i) - fitVals.get(i));\n }\n final Genotype g = getGenotype();\n final Genotype og = o.getGenotype();\n return g.compareTo(og);\n }", "public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScoreWithScores(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public SortedSubset(RangeSet<T> constitutingSuperset, T lowerbound, T upperbound)\n\t{\n\t\tinit(constitutingSuperset, lowerbound, upperbound, true, false);\n\t}", "List<Athlete> getAllOrderByScore(OrderBy orderBy);", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public interface RangeWithBeginning<A extends Comparable<? super A>> extends Range<A>\r\n{\r\n\t// ABSTRACT\t------------------\r\n\t\r\n\t/**\r\n\t * @return The first value inside this range\r\n\t */\r\n\tpublic A first();\r\n}", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "default YList<T> sorted() {\n return YCollections.sortedCollection(this);\n }", "public Collection<Item> getSortedItems() {\n\t\tint i, j, first;\n\t int numLength = items.size();\n\t for (i= numLength - 1; i > 0; i--)\n\t {\n\t first = 0; // initialize to subscript of first element\n\t for (j=1; j<=i; j++) // locate smallest between positions 1 and i.\n\t {\n\t if (getQuantityOfItem(items.get(j).getItem()) < \n\t \t\t getQuantityOfItem(items.get(first).getItem()) )\n\t first = j;\n\t }\n\t //temp = items.get(first); // Swap smallest found with element in position i.\n\t //items.get(first)=items.get(i);\n\t ItemPair itemI = items.get(i);\n\t ItemPair firstitem = items.get(first);\n\t ItemPair temp = itemI;\n\t itemI = firstitem;\n\t firstitem = temp;\n\t \n\t // items.get(i)=temp;\n\t //num[first] = num[i];\n\t // num[i] = temp;\n\t }\n\t \n\t}", "public ArrayList<Individual> getSortedPopulation(){\n ArrayList<Individual> sortedIndividuals = new ArrayList<Individual>();\n\n for(Individual individual: individuals){\n int indexToadd = 0;\n\n if(sortedIndividuals.isEmpty()){\n sortedIndividuals.add(individual);\n }\n else {\n for(Individual sortedIndividual : sortedIndividuals){\n if(individual.getFitness() > sortedIndividual.getFitness()){\n indexToadd = sortedIndividuals.indexOf(sortedIndividual);\n break;\n }\n }\n if(indexToadd == 0 ){\n sortedIndividuals.add(individual);\n }\n else {\n sortedIndividuals.add(indexToadd,individual);\n }\n }\n }\n return sortedIndividuals;\n }", "public ImmutableSortedSet<C> headSetImpl(C toElement, boolean inclusive) {\n return subSet(Range.upTo(toElement, BoundType.forBoolean(inclusive)));\n }", "public Set<String> zrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScore(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "@Override\r\n public int compareTo(Object o) {\r\n Pokemon p = (Pokemon) o; // like o2\r\n return (this.getNumber() - p.getNumber()); // smallest to biggest\r\n }", "@Override\r\n\tpublic int compareTo(CandidateDoc o) {\n\t\tif((score-o.score)>0)\r\n\t\t{\r\n\t\t\treturn 1;\r\n\t\t}else if((score-o.score)<0)\r\n\t\t{\r\n\t\t\treturn -1;\r\n\t\t}else\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t}", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "public static ArrayList<Member> sortByName(ArrayList<Member> s){\r\n\t\tArrayList<Member> output = new ArrayList<Member>();\r\n\t\twhile(s.size()>0) {\r\n\t\t\tint minNo=0;\r\n\t\t\tString min=s.get(0).getName();\r\n\t\t\tfor(int i=0;i<s.size();i++) {\r\n\t\t\t\tif(Member.nameSmaller(s.get(i).getName(), min)) {\t\t\t\t\t\r\n\t\t\t\t\tmin=s.get(i).getName();\r\n\t\t\t\t\tminNo=i;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\toutput.add(s.get(minNo));\r\n\t\t\ts.remove(s.get(minNo));\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "public List<Integer> findTopGenesByRanking( Integer n ) throws DAOException;", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "private void sort(Metric metr, DoubleData dObj, DoubleData[] dObjects, int left, int right)\n {\n int p = left + RANDOM_GENERATOR.nextInt(right-left+1);\n DoubleData tmpObj = dObjects[right];\n dObjects[right] = dObjects[p];\n dObjects[p] = tmpObj;\n int l = left, r = right - 1;\n double dist = metr.dist(dObjects[right], dObj);\n while (l < r)\n if (dist >= metr.dist(dObjects[l], dObj)) l++;\n else if (dist < metr.dist(dObjects[r], dObj)) r--;\n else\n {\n tmpObj = dObjects[l];\n dObjects[l] = dObjects[r];\n dObjects[r] = tmpObj;\n l++;\n if (l < r) r--;\n }\n if (dist < metr.dist(dObjects[l], dObj))\n {\n tmpObj = dObjects[l];\n dObjects[l] = dObjects[right];\n dObjects[right] = tmpObj;\n }\n if (left < l) sort(metr, dObj, dObjects, left, l);\n if (l + 1 < right) sort(metr, dObj, dObjects, l + 1, right);\n }", "Set<Art> getArtByPrice(Double upper, Double lower);", "List<User> getNaturalSortedUsersByAge(List<User> users);", "public static void sort(Object[] object) {\n // Set the variables for the current min, minIndex, and compare value\n Object currentMin;\n int currentMinIndex;\n int compareInt;\n\n // Begin loop to work through the list.\n for (int i = 0; i < object.length; i++) {\n // Find the minimum in the list.\n currentMin = object[i];\n currentMinIndex = i;\n for (int k = i + 1; k < object.length; k++) {\n compareInt = ((Comparable) currentMin).compareTo(object[k]);\n if(compareInt > 0) {\n currentMin = object[k];\n currentMinIndex = k;\n }\n }\n\n // Swap list[i] with list[currentMaxIndex] if needed.\n if (currentMinIndex != i) {\n object[currentMinIndex] = object[i];\n object[i] = currentMin;\n }\n }\n }", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "public RadixSorting()\n\t{\n\t\tbuckets.add(zero);\n\t\tbuckets.add(one);\n\t\tbuckets.add(two);\n\t\tbuckets.add(three);\n\t\tbuckets.add(four);\n\t\tbuckets.add(five);\n\t\tbuckets.add(six);\n\t\tbuckets.add(seven);\n\t\tbuckets.add(eight);\n\t\tbuckets.add(nine);\n\t\tbuckets.add(ten);\n\t\tbuckets.add(eleven);\n\t\tbuckets.add(twelve);\n\t\tbuckets.add(thirteen);\n\t\tbuckets.add(fourteen);\n\t\tbuckets.add(fifteen);\n\t\tbuckets.add(sixteen);\n\t\tbuckets.add(seventeen);\n\t\tbuckets.add(eighteen);\n\t\tbuckets.add(nineteen);\n\t}", "@Override\r\n\tpublic int compareTo(Object ob) {\n\t\tStudent s=(Student)ob;\r\n\t\treturn (int)((this.marks-s.marks )*(1000));\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t//按权重大小排序\r\n\tpublic int compareTo(Domain o) {\n\t\treturn (o.weight-this.weight);\r\n\t}", "List<Object> greaterThanOrEqualsTo(Object value);", "public static void main(String[] args) {\n\n Set<Student> set = Sets.newTreeSet();\n Student s3 = new Student(3);\n Student s4 = new Student(4);\n Student s5 = new Student(5);\n Student s1 = new Student(1);\n Student s2 = new Student(2);\n List<Student> list = Lists.newArrayList();\n list.add(s4);\n list.add(s3);\n list.add(s5);\n list.add(s1);\n list.add(s2);\n\n list.sort(new Comparator<Student>() {\n @Override\n public int compare(Student o1, Student o2) {\n return o1.getAge() - o2.getAge() < 0 ? 1 : -1;\n }\n });\n System.out.println(list);\n\n// s1.toString();\n// set.add(s3);\n// set.add(s4);\n// set.add(s5);\n// set.add(s1);\n// set.add(s2);\n// System.out.println(set);\n// for (Student s : set) {\n// System.out.println(s);\n// }\n\n\n }", "public abstract void selectIndexRange(int min, int max);", "public Set<String> zrevrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScore(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "@Override\n public int compareTo(Participant o) {\n if (this.score != o.score) {\n return this.score - o.score;\n }\n return this.name.compareTo(o.name);\n }", "public abstract int compareMembers(T m1, T m2);", "public <T> List<T> zrangeByScore(final String key, final double min, final double max, Class<T> clazz) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max);\n if (tempSet != null && tempSet.size() > 0) {\n List<T> result = new ArrayList<T>();\n for (byte[] value : tempSet) {\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public List<com.heman.bysj.jooq.tables.pojos.Teacher> fetchRangeOfPosition(String lowerInclusive, String upperInclusive) {\n return fetchRange(Teacher.TEACHER.POSITION, lowerInclusive, upperInclusive);\n }", "protected abstract R getRange(E entry);", "@Override\n public int compareTo(Object o) { \n if(this.getGrade()==((BoardCandidate)o).getGrade()){\n return (int)(Math.random()*10-Math.random()*10);\n }\n return this.getGrade()-((BoardCandidate)o).getGrade();\n }", "List<User> getUsersSortedByNameAndAge(List<User> users);", "int getGroupIdUpperBound();", "int[] minAndMax() {\n\n // **** declare and populate array of Integers with the values of the parents O(n) ****\n Integer[] arr = new Integer[this.parents.length];\n int i = 0;\n for (int val : this.parents)\n arr[i++] = val;\n\n // **** create a list with the values in the parents ****\n List<Integer> al = Arrays.asList(arr);\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse the array arr: O(n^2) ****\n for (int item : arr) {\n if (item != 0) {\n\n // **** get the frequency of item in the list: O(n) ****\n int freq = Collections.frequency(al, item);\n\n // ???? ????\n System.out.println(\"minAndMax <<< item: \" + item + \" freq: \" + freq);\n\n // **** update the min and max values ****\n min = Math.min(min, freq);\n max = Math.max(max, freq);\n }\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "public Object readResolve() {\n return new ImmutableRangeSet(this.ranges).asSet(this.domain);\n }", "public int getRange()\n\t{\n\t\treturn Range;\n\t}", "public int compareTo(Object o)\r\n {\r\n GeometryFacetBoundablePair nd = (GeometryFacetBoundablePair) o;\r\n if (minDistance < nd.minDistance) return -1;\r\n if (minDistance > nd.minDistance) return 1;\r\n return 0;\r\n }", "@Test\n public void test_range_Integer_Collection3() {\n populate_i2();\n Collection<Integer> actual = Selector.range(i2, 5, 3, new CompareIntegerDescending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(5);\n expected.add(3);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "public void sortObjectList(){\n\t\tint counter = gameObjectsList.size() - 1;\n\t\tif (gameObjectsList == null || gameObjectsList.size() == 0){\n\t\t\treturn;\n\t\t}\n\t\tquicksort(0, counter);\n\t}", "public DataSet<T> sortByScoreDesc() {\n return toDS(this.getDataStream().sorted());\n }", "@Override\r\n\tpublic int compareTo(Gene o) {\n\t\treturn (this.getGeneStart() - o.getGeneStart());\r\n\t}", "public SummaryRanges() {\n tree = new TreeMap<>();\n }", "public int getLowerBound() {\r\n return lowerBound;\r\n }", "public void sortGivenArray_popularity() { \n int i, j, k; \n for(i = movieList.size()/2; i > 0; i /= 2) {\n for(j = i; j < movieList.size(); j++) {\n Movie key = movieList.get(j);\n for(k = j; k >= i; k -= i) {\n if(key.rents > movieList.get(k-i).rents) {\n movieList.set(k, movieList.get(k-i));\n } else {\n break; \n }\n }\n movieList.set(k, key);\n }\n } \n }", "@Test\n public void test_range_Integer_Collection4() {\n populate_i3();\n Collection<Integer> actual = Selector.range(i3, 4, 8, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(8);\n expected.add(7);\n expected.add(6);\n expected.add(5);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "public static ArrayList<String> getTopTen() throws Exception{\n\t\n\tint start, end;\n\tFile xmlFile = getFile();\n\tif(!xmlFile.exists()){\n\t\tJOptionPane.showMessageDialog(null, \"Record Does nor exist\");\n\t}\n\tScore root = new Score();\n\tMap<String, Integer> standings = new TreeMap<String, Integer>();\n root = readObjectAsXmlFrom(new FileReader(xmlFile.getAbsolutePath()), root.getClass());\n standings = root.standings;\n Map<String, Integer> sortedStandings = sortByValue(standings);\n Set<Entry<String, Integer>> keys = sortedStandings.entrySet();\n Object[] sortedArr = keys.toArray();\n end = sortedArr.length;\n if(end<=10) start = 0;\n else start = end -10;\n ArrayList<String> result = new ArrayList<String>();\n for(int x = start; x<end;x++){\n \tresult.add(sortedArr[x].toString());\n }\n\treturn result;\n }", "@Test\n public void test_range_Integer_Collection1() {\n populate_i1();\n Collection<Integer> actual = Selector.range(i1, 1, 5, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(2);\n expected.add(3);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "public int getRange() {\n return mRange;\n }", "@Override\n\t\t\tpublic int compare(Set<HitVertex> arg0, Set<HitVertex> arg1) {\n\t\t\t\treturn arg1.size() - arg0.size();\n\t\t\t}", "Lista<V> valuesInRange(K init, K end);", "public List<OWLObject> search(OWLObject queryObj) {\n\t\tList<OWLObject> hits = new ArrayList<OWLObject>(maxHits);\n\t\tSystem.out.println(\"gettings atts for \"+queryObj+\" -- \"+simEngine.comparisonProperty);\n\t\tSet<OWLObject> atts = simEngine.getAttributeClosureFor(queryObj);\n\t\tSystem.out.println(\"all atts: \"+atts.size());\n\t\tif (atts.size() == 0)\n\t\t\treturn hits;\n\t\t\n\t\t// only compare using significant atts;\n\t\t// we don't do the same test on candidates as these will be removed by the\n\t\t// intersection operation. they will have a small effect on the score, as\n\t\t// we don't divide by the union, but instead the sum of sizes\n\t\tatts = filterNonSignificantAttributes(atts);\n\t\tSystem.out.println(\"filtered atts: \"+atts.size());\n\n\t\t//bloomFilter = new BloomFilter<OWLObject>(0.05, atts.size());\n\t\t//bloomFilter.addAll(atts);\n\t\t\t\t\n\t\tSortedMap<Integer,Set<OWLObject>> scoreCandidateMap = new TreeMap<Integer,Set<OWLObject>>();\n\t\t\n\t\tfor (OWLObject candidate : getCandidates()) {\n\t\t\tif (candidate.equals(queryObj))\n\t\t\t\tcontinue;\n\t\t\tSet<OWLObject> iAtts = simEngine.getAttributeClosureFor(candidate);\n\t\t\t//Set<OWLObject> iAtts = simEngine.getGraph().getAncestors(candidate);\n\n\t\t\tif (iAtts.size() == 0)\n\t\t\t\tcontinue;\n\t\t\tint cAttsSize = iAtts.size();\n\t\n\t\t\tiAtts.retainAll(atts);\n\t\t\t//Collection<OWLObject> iAtts = bloomFilter.intersection(cAtts);\n\t\t\t\n\t\t\t// simJ, one-sided, scaled by 1000\n\t\t\t// negate to ensure largest first\n\t\t\t//Integer score = - (iAtts.size() * 1000 / cAttsSize);\n\t\t\t\n\t\t\t// this biases us towards genes with large numbers of annotations,\n\t\t\t// but it is better at finding the models that share all features\n\t\t\tInteger score = - iAtts.size();\n\t\t\tif (!scoreCandidateMap.containsKey(score)) \n\t\t\t\tscoreCandidateMap.put(score, new HashSet<OWLObject>());\n\t\t\tscoreCandidateMap.get(score).add(candidate);\n\t\t\treporter.report(this,\"query_candidate_overlap_total\",queryObj,candidate,iAtts.size(),cAttsSize);\n\t\t}\n\t\t\n\t\tint n = 0;\n\t\tfor (Set<OWLObject> cs : scoreCandidateMap.values()) {\n\t\t\tn += cs.size();\n\t\t\thits.addAll(cs);\n\t\t}\n\t\t\n\t\tn = 0;\n\t\tfor (OWLObject hit : hits) {\n\t\t\tn++;\n\t\t\treporter.report(this,\"query_hit_rank_threshold\",queryObj,hit,n,maxHits);\n\t\t}\n\t\tif (hits.size() > maxHits)\n\t\t\thits = hits.subList(0, maxHits);\n\t\t\n\n\n\t\treturn hits;\n\t}", "public interface GeneralRange<T extends Comparable<T>> {\n\t/**\n\t * Return whether a given comparable element is in a bound according to some field in that object.\n\t * @param a The value to be compared to the range.\n\t * @return Integer < 0 if it is less than the range, = 0 if it is in the range and > 0 if it is bigger than the range.\n\t */\n\tpublic int isInBounds(T a);\n}", "default List<Source> representativeTypicalityQuery(int topk, Set<Source> resultSet, Set<String> domain) {\n final Map<Source, List<Source>> region = interestingRegion(topk, resultSet, domain);\n\n final Comparator<Map.Entry<Source, List<Source>>> byValue =\n (entry1, entry2) ->\n Ints.compare(entry1.getValue().size(), entry2.getValue().size());\n\n return region.entrySet().stream()\n .sorted(byValue.reversed())\n .map(Map.Entry::getKey)\n .collect(Collectors.toList());\n }", "public ImmutableSortedSet<C> subSet(Range<C> range) {\n return ImmutableRangeSet.this.subRangeSet((Range) range).asSet((DiscreteDomain<C>) this.domain);\n }", "private static void quicksort(Object a[], int lo0, int hi0) {\n int lo = lo0;\n int hi = hi0;\n int mid;\n\n if (hi0 > lo0) {\n swapReferences(a, lo0, (lo0 + hi0)/2);\n Object[] midObject = (Object[]) a[(lo0 + hi0) / 2];\n mid = (int)midObject[2];\n while (lo <= hi) {\n Object[] loObject = (Object[])a[lo];\n int loWeight = (int)loObject[2];\n while((lo < hi0) && (loWeight < mid)) {\n loObject = (Object[])a[lo];\n loWeight = (int)loObject[2];\n if (loWeight < mid) {\n lo++;\n }\n }\n\n Object[] hiObject = (Object[])a[hi];\n int hiWeight = (int)hiObject[2];\n while((hi > lo0) && (hiWeight > mid)) {\n hiObject = (Object[])a[hi];\n hiWeight = (int)hiObject[2];\n if (hiWeight > mid) {\n hi--;\n }\n }\n\n if (lo <= hi) {\n swapReferences(a, lo, hi);\n lo++;\n hi--;\n }\n }\n\n if (lo0 < hi) {\n quicksort(a, lo0, hi);\n }\n\n if (lo < hi0) {\n quicksort(a, lo, hi0);\n }\n }\n }", "static List<Range<Long>> getRanges(Collection<Long> fullPulses) {\n checkNotNull(fullPulses, \"fullPulses was null\");\n\n List<Long> sortedPulses = fullPulses.stream().sorted().collect(toList());\n\n Optional<Long> first = sortedPulses.stream().findFirst();\n if (!first.isPresent()) {\n return emptyList();\n }\n\n Long bottomOfRange = first.get();\n if (sortedPulses.size() == 1) {\n return singletonList(singleton(bottomOfRange));\n }\n\n List<Range<Long>> foundRanges = new ArrayList<>();\n\n Long lastPulse = bottomOfRange;\n\n for (Long pulse : sortedPulses) {\n if (isaSignificantGapBetweenPulses(lastPulse, pulse)) {\n // We have a range\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n\n bottomOfRange = pulse;\n }\n lastPulse = pulse;\n }\n\n if (bottomOfRange.equals(lastPulse)) {\n foundRanges.add(singleton(bottomOfRange));\n } else {\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n }\n\n return ImmutableList.copyOf(foundRanges);\n }", "public SummaryRanges() {\n S.add(new MyPair(-INF, -INF)); S.add(new MyPair(INF, INF));\n }", "@Override\n\tpublic int compare(Family o1, Family o2) {\n\t\treturn o2.getMembers().size() - o1.getMembers().size();\n\t}", "public static OntClass getUsefulRange(OntProperty p)\n\t{\n\t\tif (p.getRange() == null)\n\t\t\treturn getDefaultRange(p);\n\t\t\n\t\tSet<OntClass> ancestors = new HashSet<OntClass>();\n\t\tList<OntClass> range = new ArrayList<OntClass>();\n\t\tfor (Iterator<? extends OntResource> i = p.listRange(); i.hasNext(); ) {\n\t\t\tOntResource r = (OntResource)i.next();\n\t\t\tif (r.isClass()) {\n\t\t\t\tOntClass c = r.asClass();\n\t\t\t\trange.add(c);\n\t\t\t\t\n\t\t\t\t/* TODO does listSuperClasses() return all ancestors in all reasoners,\n\t\t\t\t * or just in Jena? also, do any reasoners return the class itself?\n\t\t\t\t * Either of those will be a problem...\n\t\t\t\t */\n\t\t\t\tfor (Iterator<? extends OntClass> j = c.listSuperClasses(); j.hasNext(); ) {\n\t\t\t\t\tancestors.add(j.next());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tlog.debug(\"range before pruning is \" + range);\n\t\tlog.debug(\"ancestors to prune are \" + ancestors);\n\t\tfor (Iterator<OntClass> i = range.iterator(); i.hasNext(); ) {\n\t\t\tOntClass c = i.next();\n\t\t\tif (ancestors.contains(c))\n\t\t\t\ti.remove();\n\t\t}\n\t\t\n\t\tif (range.size() > 1) {\n\t\t\tString unionUri = p.getURI().concat(\"-range\");\n\t\t\tlog.debug(String.format(\"creating union class %s from %s\", unionUri, range));\n\t\t\tOntModel model = p.getOntModel();\n\t\t\tRDFList unionList = model.createList();\n\t\t\tfor (OntClass c: range) {\n\t\t\t\tunionList = unionList.with(c);\n\t\t\t}\n\t\t\treturn model.createUnionClass(unionUri, unionList);\n\t\t} else if (range.size() == 1) {\n\t\t\tlog.debug(\"pruned range to single class \" + range);\n\t\t\treturn range.get(0);\n\t\t} else {\n\t\t\treturn getDefaultRange(p);\n\t\t}\n\t}" ]
[ "0.5328906", "0.52988905", "0.51671976", "0.5132314", "0.50873244", "0.5075613", "0.5047353", "0.5031711", "0.5002419", "0.49674088", "0.49474654", "0.49073634", "0.49056527", "0.4867786", "0.4858163", "0.4857917", "0.48471785", "0.4834217", "0.48083255", "0.4797908", "0.47974405", "0.47881615", "0.4783613", "0.47801286", "0.47796926", "0.47675693", "0.4761689", "0.473485", "0.47292614", "0.47162187", "0.47027507", "0.4699502", "0.46947306", "0.46818763", "0.46817356", "0.46810484", "0.46658665", "0.4657477", "0.46531397", "0.46462935", "0.46435785", "0.4640931", "0.46321642", "0.4624666", "0.46136427", "0.4600644", "0.45882124", "0.4587293", "0.4573735", "0.45730284", "0.45715427", "0.45550954", "0.45526585", "0.45500058", "0.4540929", "0.45397574", "0.4524479", "0.45157385", "0.44958767", "0.44936404", "0.44818985", "0.44790965", "0.44782883", "0.44777673", "0.44682604", "0.44649503", "0.4453332", "0.44487143", "0.44396564", "0.44372392", "0.4436547", "0.44284314", "0.44283727", "0.44272727", "0.4412363", "0.44120705", "0.44066983", "0.4404678", "0.44045532", "0.43995783", "0.43983448", "0.4396197", "0.43954957", "0.43936658", "0.43926325", "0.43916604", "0.43897802", "0.43895698", "0.43845978", "0.4383052", "0.43824765", "0.43816903", "0.43794373", "0.43762138", "0.43739888", "0.43736237", "0.43729487", "0.43689653", "0.43689543", "0.43666124", "0.43665436" ]
0.0
-1
Return a range of members in a sorted set, by index. Ordered from the highest to the lowest score.
public Set<String> zrevrange(String key, long start, long end) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.zrevrange(key, start, end); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<T> getRanges();", "int getRange();", "public abstract void selectIndexRange(int min, int max);", "List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);", "public static List <Index> rangeOf(int start, int end) {\r\n FastTable <Index> list = FastTable.newInstance();\r\n for (int i=start; i < end; i++) {\r\n list.add(Index.valueOf(i));\r\n }\r\n return list;\r\n }", "Score getScores(int index);", "public int getLowerBound ();", "java.util.List<AuditoriaUsuario> findRange(int startPosition, int maxResults, String sortFields, String sortDirections);", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "public Set<Tuple> zrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "long getParticipants(int index);", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "CollectionRange createCollectionRange();", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "Lista<V> valuesInRange(K init, K end);", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "private static void accessIndexInSet(Set<Integer> numbers) {\n int desiredIndex = 2;\n int currentIndex = 0;\n\n //iterate the HashSet\n Iterator<Integer> iterator = numbers.iterator();\n while (iterator.hasNext()) {\n\n if (currentIndex == desiredIndex)\n System.out.println(\"Element at index \" + desiredIndex + \" is: \" + iterator.next());\n iterator.next();\n currentIndex++;\n }\n\n // M2: convert it to list\n List<Integer> list = new ArrayList<Integer>(numbers);\n list.get(2);\n\n // M3: convert it to Array []\n Integer[] integers = numbers.toArray(new Integer[numbers.size()]);\n int i = integers[2];\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "abstract List<V> rangeSearch(K key, String comparator);", "Lista<K> keysInRange(K init, K end);", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "public List<com.heman.bysj.jooq.tables.pojos.Teacher> fetchRangeOfPosition(String lowerInclusive, String upperInclusive) {\n return fetchRange(Teacher.TEACHER.POSITION, lowerInclusive, upperInclusive);\n }", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "public List<Integer> getBySetPos() {\n\t\treturn bySetPos;\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n ArrayList<Point2D> returnArray = new ArrayList<Point2D>();\n if (rect == null) {\n throw new IllegalArgumentException(\"rect input is null\");\n }\n for (Point2D i : pointsSet) {\n if (rect.contains(i))\n returnArray.add(i);\n }\n return returnArray;\n }", "private SingleRange GetRangeAt(int i)\n\t{\n\t\treturn _rangelist.get(i);\n\t}", "public static int minPartition(int[] nums, int index, int firstSet, int secondSet,\r\n Map<String, Integer> lookUp) {\r\n\r\n if (index == nums.length) {\r\n return Math.abs(firstSet - secondSet);\r\n }\r\n\r\n String key = index + \"!\" + firstSet + secondSet;\r\n if (lookUp.containsKey(key)) {\r\n return lookUp.get(key);\r\n }\r\n int include = minPartition(nums, index + 1, firstSet + nums[index], secondSet, lookUp);\r\n\r\n int exclude = minPartition(nums, index + 1, firstSet, secondSet + nums[index], lookUp);\r\n\r\n lookUp.put(key, Integer.min(include, exclude));\r\n\r\n return lookUp.get(key);\r\n }", "protected abstract R getRange(E entry);", "static List<Range<Long>> getRanges(Collection<Long> fullPulses) {\n checkNotNull(fullPulses, \"fullPulses was null\");\n\n List<Long> sortedPulses = fullPulses.stream().sorted().collect(toList());\n\n Optional<Long> first = sortedPulses.stream().findFirst();\n if (!first.isPresent()) {\n return emptyList();\n }\n\n Long bottomOfRange = first.get();\n if (sortedPulses.size() == 1) {\n return singletonList(singleton(bottomOfRange));\n }\n\n List<Range<Long>> foundRanges = new ArrayList<>();\n\n Long lastPulse = bottomOfRange;\n\n for (Long pulse : sortedPulses) {\n if (isaSignificantGapBetweenPulses(lastPulse, pulse)) {\n // We have a range\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n\n bottomOfRange = pulse;\n }\n lastPulse = pulse;\n }\n\n if (bottomOfRange.equals(lastPulse)) {\n foundRanges.add(singleton(bottomOfRange));\n } else {\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n }\n\n return ImmutableList.copyOf(foundRanges);\n }", "public int getRange()\n\t{\n\t\treturn Range;\n\t}", "int getAttackRange();", "public Set<Tuple> zrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScoreWithScores(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "int[] getGivenByOrder();", "public int getRange() {\n return mRange;\n }", "VocNoun getRange();", "private List<Integer> allIntegerInRange(int start, int end) {\n\t\tList<Integer> range = new ArrayList<Integer>();\n\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\trange.add(i);\n\t\t}\n\n\t\treturn range;\n\t}", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "public List<Integer> findTopGenesByRanking( Integer n ) throws DAOException;", "int getBlockNums(int index);", "int getBlockNums(int index);", "@Test\n public void test_range_Integer_Collection4() {\n populate_i3();\n Collection<Integer> actual = Selector.range(i3, 4, 8, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(8);\n expected.add(7);\n expected.add(6);\n expected.add(5);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "int getBlockNumbers(int index);", "static int m36189a(Rect rect, Set<Rect> set) {\n int i = 0;\n if (set.isEmpty()) {\n return 0;\n }\n ArrayList<Rect> arrayList = new ArrayList<>();\n arrayList.addAll(set);\n Collections.sort(arrayList, new Comparator<Rect>() {\n /* renamed from: a */\n public final int compare(Rect rect, Rect rect2) {\n return Integer.valueOf(rect.top).compareTo(Integer.valueOf(rect2.top));\n }\n });\n ArrayList arrayList2 = new ArrayList();\n for (Rect rect2 : arrayList) {\n arrayList2.add(Integer.valueOf(rect2.left));\n arrayList2.add(Integer.valueOf(rect2.right));\n }\n Collections.sort(arrayList2);\n int i2 = 0;\n while (i < arrayList2.size() - 1) {\n int i3 = i + 1;\n if (!((Integer) arrayList2.get(i)).equals(arrayList2.get(i3))) {\n Rect rect3 = new Rect(((Integer) arrayList2.get(i)).intValue(), rect.top, ((Integer) arrayList2.get(i3)).intValue(), rect.bottom);\n int i4 = rect.top;\n for (Rect rect4 : arrayList) {\n if (Rect.intersects(rect4, rect3)) {\n if (rect4.bottom > i4) {\n i2 += rect3.width() * (rect4.bottom - Math.max(i4, rect4.top));\n i4 = rect4.bottom;\n }\n if (rect4.bottom == rect3.bottom) {\n break;\n }\n }\n }\n }\n i = i3;\n }\n return i2;\n }", "Set<E> getForwardNeighbors();", "public int getLowerBound() {\r\n return lowerBound;\r\n }", "public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}", "public int pickIndex() {\n int len = weightPrefixSum.length;\n\n int idx = random.nextInt(weightPrefixSum[len - 1]) + 1;\n\n int start = 0;\n int end = len - 1;\n while(start <= end){\n int mid = start + (end - start) / 2;\n\n if(weightPrefixSum[mid] == idx){\n return mid;\n }else if(weightPrefixSum[mid] < idx){\n start = mid + 1;\n }else{\n end = mid - 1;\n }\n }\n\n return start;\n\n }", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> point_list = new SET<Point2D>();\n rangesearch(root, rect, point_list);\n return point_list;\n }", "public ArrayList<Individual> getSortedPopulation(){\n ArrayList<Individual> sortedIndividuals = new ArrayList<Individual>();\n\n for(Individual individual: individuals){\n int indexToadd = 0;\n\n if(sortedIndividuals.isEmpty()){\n sortedIndividuals.add(individual);\n }\n else {\n for(Individual sortedIndividual : sortedIndividuals){\n if(individual.getFitness() > sortedIndividual.getFitness()){\n indexToadd = sortedIndividuals.indexOf(sortedIndividual);\n break;\n }\n }\n if(indexToadd == 0 ){\n sortedIndividuals.add(individual);\n }\n else {\n sortedIndividuals.add(indexToadd,individual);\n }\n }\n }\n return sortedIndividuals;\n }", "People getFriendList(int index);", "public Genotype rouletteSelection() {\n // get a number between 0 and 1 to compare against\n double slice = rnd.nextDouble();\n // keep track of the cumulative fitness\n double cumulativeFitness = 0;\n\n // loop through the population to pick a mate\n for (Genotype g : population) {\n // increment the cumulative fitness with the member's normalized fitness\n cumulativeFitness += g.getNormalizedFitness();\n // if the cumulative fitness is greater than the random number,\n if (cumulativeFitness > slice) {\n // select the member for mating\n return g;\n }\n }\n\n // if no members are chosen, pick the one with the highest fitness score\n return population.get(0);\n }", "public SortedSubset(RangeSet<T> constitutingSuperset, T lowerbound, T upperbound)\n\t{\n\t\tinit(constitutingSuperset, lowerbound, upperbound, true, false);\n\t}", "public int getIndex(int start) {\n int left = 0;\r\n int right = bookings.size()-1;\r\n while (left <= right) {\r\n int mid = left + (right-left)/2;\r\n if (bookings.get(mid).start == start) {\r\n return mid;\r\n }\r\n else if (bookings.get(mid).start < start) {\r\n left = mid+1;\r\n }\r\n else {\r\n right = mid-1;\r\n }\r\n }\r\n return right;\r\n }", "public Set<String> zrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScore(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public static int pickWeighted(int start, int end, Vector data, Random rng)\r\n\t{\r\n\t\t//System.out.println(Arrays.toString(data));\r\n\t\tVector dupes = data.copy();\r\n\t\tdouble totalSum=0;\r\n\t\tfor(int a=start;a<end;a++)\r\n\t\t{\r\n\t\t\ttotalSum+=data.get(a);\r\n\t\t}\r\n\t\t//divide chances by a.\r\n\t\tdupes.scale(1.0/totalSum);\r\n\t\tdouble check = rng.nextDouble();\r\n\t\ttotalSum=0;\r\n\t\tfor(int a=start;a<end;a++)\r\n\t\t{\r\n\t\t\tif(totalSum+dupes.get(a)>check)\r\n\t\t\t\treturn a;\r\n\t\t\ttotalSum+=dupes.get(a);\r\n\t\t}\r\n\t\treturn end-1;\r\n\t}", "public V getLowerBound();", "protected IntHashSet getMemberHashSet() {\n\t\treturn memberHashSet;\n\t}", "private HashSet<Position> getInRange(int p_r, Distance p_d)\n {\n HashSet<Position> s = new HashSet<Position>();\n\n for (int x = 0; x <= p_r; x++)\n {\n int y = 0;\n Position p = new Position(this.x + x, this.y + y);\n\n while (p_d.inside(this, p, p_r))\n {\n s.add(p);\n s.add(new Position(this.x - x, this.y + y));\n s.add(new Position(this.x + x, this.y - y));\n s.add(new Position(this.x - x, this.y - y));\n p = new Position(this.x + x, this.y + ++y);\n }\n }\n return s;\n }", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }", "Index getIndices(int index);", "public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScoreWithScores(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public XnRegion keysOf(int start, int stop) {\n\t\tint offset = start;\n\t\tint left = -1;\n\t\tStepper stepper = myRegion.simpleRegions(myOrdering);\n\t\ttry {\n\t\t\tXnRegion region;\n\t\t\twhile ((region = (XnRegion) stepper.fetch()) != null) {\n\t\t\t\tif (region.count().isLE(IntegerValue.make(offset))) {\n\t\t\t\t\toffset = offset - region.count().asInt32();\n\t\t\t\t} else {\n\t\t\t\t\tif (left == -1) {\n\t\t\t\t\t\tleft = ((IntegerPos) (region.chooseOne(myOrdering))).asIntegerVar().asInt32() + offset;\n\t\t\t\t\t\toffset = stop - (start - offset);\n\t\t\t\t\t\tif (offset <= region.count().asInt32()) {\n\t\t\t\t\t\t\treturn IntegerRegion.make(\n\t\t\t\t\t\t\t\tIntegerValue.make(left),\n\t\t\t\t\t\t\t\t(((IntegerPos) (region.chooseOne(myOrdering))).asIntegerVar().plus(IntegerValue.make(offset))));\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint right = ((IntegerPos) (region.chooseOne(myOrdering))).asIntegerVar().asInt32() + offset;\n\t\t\t\t\t\treturn IntegerRegion.make(IntegerValue.make(left), IntegerValue.make(right));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstepper.step();\n\t\t\t}\n\t\t} finally {\n\t\t\tstepper.destroy();\n\t\t}\n\t\tthrow new AboraRuntimeException(AboraRuntimeException.NOT_IN_TABLE);\n\t\t/*\n\t\tudanax-top.st:12729:IntegerArrangement methodsFor: 'accessing'!\n\t\t{XnRegion} keysOf: start {Int32} with: stop {Int32}\n\t\t\t\"Return the region that corresponds to a range of indices.\"\n\t\t\t| offset {Int32} left {Int32} right {Int32} | \n\t\t\toffset _ start.\n\t\t\tleft _ -1.\n\t\t\t(myRegion simpleRegions: myOrdering) forEach: \n\t\t\t\t[:region {XnRegion} |\n\t\t\t\tregion count <= offset \n\t\t\t\t\tifTrue: [offset _ offset - region count DOTasLong]\n\t\t\t\t\tifFalse:\n\t\t\t\t\t\t[left == -1 \n\t\t\t\t\t\t\tifTrue: \n\t\t\t\t\t\t\t\t[left _ ((region chooseOne: myOrdering) cast: IntegerPos) asIntegerVar DOTasLong + offset.\n\t\t\t\t\t\t\t\toffset _ stop - (start - offset).\n\t\t\t\t\t\t\t\toffset <= region count DOTasLong ifTrue: \n\t\t\t\t\t\t\t\t\t[^IntegerRegion make: left \n\t\t\t\t\t\t\t\t\t\t\twith: (((region chooseOne: myOrdering) cast: IntegerPos) asIntegerVar + offset)]]\n\t\t\t\t\t\t\tifFalse:\n\t\t\t\t\t\t\t\t[right _ ((region chooseOne: myOrdering) cast: IntegerPos) asIntegerVar DOTasLong + offset.\n\t\t\t\t\t\t\t\t^IntegerRegion make: left with: right]]].\n\t\t\tHeaper BLAST: #NotInTable.\n\t\t\t^ NULL \"compiler fodder\"!\n\t\t*/\n\t}", "int getGroupIdUpperBound();", "public ImmutableSortedSet<C> subSetImpl(C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) {\n if (fromInclusive || toInclusive || Range.compareOrThrow(fromElement, toElement) != 0) {\n return subSet(Range.range(fromElement, BoundType.forBoolean(fromInclusive), toElement, BoundType.forBoolean(toInclusive)));\n }\n return ImmutableSortedSet.of();\n }", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "Set<Art> getArtByPrice(Double upper, Double lower);", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n return getChild(key).rangeSearch(key, comparator);\r\n }", "public static Automaton.List rangeOf(Automaton automaton,\n\t\t\tAutomaton.Int _start, Automaton.Int _end) {\n\t\t// FIXME: there is a bug here for big integer values.\n\t\tint start = _start.intValue();\n\t\tint end = _end.intValue();\n\t\tint[] children = new int[end - start];\n\t\tfor (int i = 0; i < children.length; ++i, ++start) {\n\t\t\tchildren[i] = automaton.add(new Automaton.Int(start));\n\t\t}\n\t\treturn new Automaton.List(children);\n\t}", "@Override\r\n public void getRange(ArrayList<Piece> pieces){\r\n this.range.clear();\r\n int pieceX = this.getX(); int pieceY = this.getY(); // X and Y coordinates for the king piece\r\n\r\n // getPiece: 0 = empty; 1 = same color; 2 = opposite color\r\n //Up\r\n if (this.getPiece(pieceX, pieceY+1, pieces) == 0 || this.getPiece(pieceX, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Up-right\r\n if (this.getPiece(pieceX+1, pieceY+1, pieces) == 0 || this.getPiece(pieceX+1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Right\r\n if (this.getPiece(pieceX+1, pieceY, pieces) == 0 || this.getPiece(pieceX+1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Down-right\r\n if (this.getPiece(pieceX+1, pieceY-1, pieces) == 0 || this.getPiece(pieceX+1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down\r\n if (this.getPiece(pieceX, pieceY-1, pieces) == 0 || this.getPiece(pieceX, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down-left\r\n if (this.getPiece(pieceX-1, pieceY-1, pieces) == 0 || this.getPiece(pieceX-1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Left\r\n if (this.getPiece(pieceX-1, pieceY, pieces) == 0 || this.getPiece(pieceX-1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Up-left\r\n if (this.getPiece(pieceX-1, pieceY+1, pieces) == 0 || this.getPiece(pieceX-1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Castling\r\n for (Piece piece : pieces) {\r\n if (piece instanceof Rook) {\r\n if (piece.getColor() == this.getColor()) {\r\n if (validCastling(pieces, (Rook)piece)) {\r\n int targetX = (piece.getX() < getX()) ? (this.getX() - 2) : (this.getX() + 2);\r\n this.range.add(new int[] {targetX, this.getY()});\r\n }\r\n }\r\n }\r\n }\r\n }", "public interface RangeWithBeginning<A extends Comparable<? super A>> extends Range<A>\r\n{\r\n\t// ABSTRACT\t------------------\r\n\t\r\n\t/**\r\n\t * @return The first value inside this range\r\n\t */\r\n\tpublic A first();\r\n}", "public Sort Range() throws Z3Exception\n\t{\n\t\treturn Sort.Create(Context(),\n\t\t\t\tNative.getArraySortRange(Context().nCtx(), NativeObject()));\n\t}", "KeyGroupRange getKeyGroupRange();", "private static int findPivot(int[] nums, int start, int end)\r\n\t{\n\t\tif (end - start <= 1)\r\n\t\t\treturn nums[start] < nums[end] ? start : end;\r\n\r\n\t\t// If there are more than two elements\r\n\t\tint mid = (start + end) / 2;\r\n\t\tif (nums[mid] > nums[end])\r\n\t\t\treturn findPivot(nums, mid, end);\r\n\t\telse\r\n\t\t\treturn findPivot(nums, start, mid);\r\n\t}", "public static ArrayList<Member> sortByNumber(ArrayList<Member> s) {\r\n\t\tArrayList<Member> output = new ArrayList<Member>();\r\n\t\twhile(s.size()>0) {\r\n\t\t\tint minNo=0;\r\n\t\t\tString min=s.get(0).getNumber();\r\n\t\t\tfor(int i=0;i<s.size();i++) {\r\n\t\t\t\tif(Member.numberSmaller(s.get(i).getNumber(),min)) {\r\n\t\t\t\t\tmin=s.get(i).getNumber();\r\n\t\t\t\t\tminNo=i;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\toutput.add(s.get(minNo));\r\n\t\t\ts.remove(s.get(minNo));\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "public List<StaffMember> getTeamMembers(){\n\t\tSet<StaffMember> team = teamleader.getDirectSubordinates();\n\t\tStaffMemberIterator iterator = new StaffMemberIterator(team);\n\t\tList<StaffMember> listOfMembers = iterator.listOfStaffMember;\n\t\tlistOfMembers.add(teamleader);\n\t\tCollections.sort(listOfMembers);\n\t\treturn listOfMembers;\n\t}", "int getRanking();", "@Test\n public void test_range_Integer_Collection1() {\n populate_i1();\n Collection<Integer> actual = Selector.range(i1, 1, 5, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(2);\n expected.add(3);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "int getRequestedValues(int index);", "public int[] searchRange(int[] nums, int target) {\r\n\r\n int[] res = {-1, -1};\r\n int left = lowerBound(nums, target);\r\n if (left != -1) {\r\n res[0] = left;\r\n res[1] = upperBound(nums, target);\r\n }\r\n return res;\r\n\r\n\r\n }", "@Test\n public void test_range_Integer_Collection3() {\n populate_i2();\n Collection<Integer> actual = Selector.range(i2, 5, 3, new CompareIntegerDescending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(5);\n expected.add(3);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "public Range findRangeBounds(CategoryDataset dataset) { return findRangeBounds(dataset, true); }", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "public abstract int maxIndex();", "public List rangeSearch(int x, int y){\n List list = new List(y-x);\n Node current = findClosest(x);\n Node end = findClosest(y);\n\n // list.append(current);\n // System.out.print(\"end 1 = \" + end.key+\" \");\n while(current.key<=end.key)\n {\n\n // System.out.print(\"current 2= \" + current.key+\" \");\n if(current.key<=y){ // ใส่ node ที่มีค่าไม่เกิน rangeSearch\n list.append(current);\n }\n\n if(current.key>=end.key){break;}\n\n current = findNext(current);\n\n\n\n // System.out.print(\"current 3= \" + current.key);\n\n }\n\n\n return list;\n }", "Set<String> getRangeLocalNames();", "public ImmutableSortedSet<C> subSet(Range<C> range) {\n return ImmutableRangeSet.this.subRangeSet((Range) range).asSet((DiscreteDomain<C>) this.domain);\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(findSubset(30, new int[]{2,3,7,8,10}));\n\n\t}", "public double[] getRange();", "Collection<Generalization> getPowertypeRanges();", "public abstract ucar.array.RangeIterator getRangeIterator();", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n\t\tint[] ranks = new int[scores.length];\n\t\tint[] aliceRanks = new int[alice.length];\n\n\t\tint endIndex = -1;\n\t\tint currentElement = Integer.MIN_VALUE;\n\n\t\tfor (int i = 0; i < ranks.length; i++) {\n\t\t\tif (currentElement != scores[i]) {\n\t\t\t\tranks[++endIndex] = scores[i];\n\t\t\t\tcurrentElement = scores[i];\n\t\t\t}\n\t\t}\n\n\t\tint aliceEndIndex = -1;\n\t\tfor (int i = 0; i < aliceRanks.length; i++) {\n\t\t\tint currScore = alice[i];\n\t\t\t\n\t\t\tint globalRankApprox = binarySearch(ranks, alice[i], 0, endIndex);\n\t\t\t\n\t\t\tif (currScore >= ranks[globalRankApprox]) {\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1;\n\t\t\t}else{\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1+1;\n\t\t\t}\n\t\t}\n\n\t\treturn aliceRanks;\n\t}", "public HashSet<Position> getInRangeL1(int p_r)\n {\n\n return this.getInRange(p_r, Distance.MANHATTAN);\n }", "Range controlLimits();", "@Override\r\n\tpublic Score get(int i) throws IndexOutOfBoundsException {\r\n\t\t//when i is less than zero or greater than size()-1\r\n\t\tif (i < 0 || i > size() - 1)\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\treturn scoreList[i];\r\n\t}", "public static void main(String[] args) {\n int size = 100;\n int mult = 100;\n\n ArrayList<Integer> numbers = new ArrayList<>();\n\n //generate random array to sort\n for (int i = 0; i < size; i++) {\n numbers.add((int) (Math.random() * mult));\n }\n\n System.out.println(numbers.toString());\n\n numbers = quickSortSubset(numbers,0);\n\n System.out.println(numbers.toString());\n\n }", "List<Integer> getSelectedIndexes();", "public int getBound();", "@SuppressWarnings({\"unchecked\"})\n List<Integer> findPrimaryIdPersonsByFirstLast(String first, String last, String indSealed);" ]
[ "0.5777842", "0.5737886", "0.56213886", "0.55521494", "0.5443851", "0.54261756", "0.5398366", "0.53697944", "0.5286881", "0.5268311", "0.5159337", "0.51311046", "0.51288146", "0.50986797", "0.5094422", "0.50909626", "0.5080194", "0.5019436", "0.5010861", "0.49820977", "0.49662384", "0.4963557", "0.4937053", "0.49266618", "0.49231032", "0.49174833", "0.49140903", "0.4912364", "0.48959467", "0.48914808", "0.48828363", "0.4882135", "0.48751372", "0.48661897", "0.4848869", "0.48419115", "0.48205203", "0.47898817", "0.47822243", "0.47817388", "0.47766793", "0.47766793", "0.47727838", "0.47474304", "0.47471988", "0.47469738", "0.47444212", "0.4741613", "0.47377482", "0.47368228", "0.47318086", "0.47265854", "0.4722039", "0.47182196", "0.4718132", "0.47135696", "0.47105283", "0.4706142", "0.470418", "0.47020894", "0.46988353", "0.4683921", "0.46838984", "0.46784133", "0.4677912", "0.46771094", "0.46650326", "0.46627215", "0.46616352", "0.46562493", "0.4653996", "0.46489123", "0.46441785", "0.4641486", "0.4637489", "0.46371844", "0.46327546", "0.46324885", "0.46282238", "0.46273616", "0.46260476", "0.4622202", "0.46207938", "0.46190923", "0.46138567", "0.4609682", "0.46092921", "0.46083555", "0.45931685", "0.45830488", "0.4575598", "0.45752764", "0.45729715", "0.45664242", "0.45649356", "0.45621246", "0.45580593", "0.45579737", "0.45485905", "0.45460942", "0.4543465" ]
0.0
-1
For Object, Return a range of members in a sorted set, by index. Ordered from the highest to the lowest score.
public <T> List<T> zrevrange(String key, long start, long end, Class<T> clazz) { Jedis jedis = null; try { jedis = jedisPool.getResource(); Set<byte[]> tempSet = jedis.zrevrange(key.getBytes(), start, end); if (tempSet != null && tempSet.size() > 0) { List<T> result = new ArrayList<T>(); for (byte[] value : tempSet) { // result.add((T) HessianSerializer.deserialize(value)); result.add(fromJsonByteArray(value, clazz)); } return result; } return null; } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<T> getRanges();", "List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);", "Score getScores(int index);", "java.util.List<AuditoriaUsuario> findRange(int startPosition, int maxResults, String sortFields, String sortDirections);", "public static List <Index> rangeOf(int start, int end) {\r\n FastTable <Index> list = FastTable.newInstance();\r\n for (int i=start; i < end; i++) {\r\n list.add(Index.valueOf(i));\r\n }\r\n return list;\r\n }", "int getRange();", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public List<T> findByKey(String key, Object object, int start, int max);", "public int getLowerBound ();", "public List<Integer> getBySetPos() {\n\t\treturn bySetPos;\n\t}", "public abstract void selectIndexRange(int min, int max);", "public Set<Tuple> zrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "CollectionRange createCollectionRange();", "public HashMap<String, float[]> getAllInRange(float range, float [] obj_pos){\n HashMap<String, float[]> objs = new HashMap<>();\n float [] pos = new float [3];\n String name;\n float distance;\n for (int i = 0; i < field.length; i++){\n //euclidean distance and only add those in range\n //NOTE: could replace with (x<range && y<range && z<range)\n distance = (float)Math.sqrt(((obj_pos[0]-field[i].x)*(obj_pos[0]-field[i].x)) + ((obj_pos[1]-field[i].y)\n *(obj_pos[1]-field[i].y)) + ((obj_pos[2]-field[i].z)*(obj_pos[2]-field[i].z)));\n if (distance <= range) {\n name = \"Asteroid\" + i;\n pos[0] = field[i].x;\n pos[1] = field[i].y;\n pos[2] = field[i].z;\n objs.put(name, pos);\n }\n }\n return objs;\n }", "Collection getIndexesInGroup(Object groupID) throws Exception;", "@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn this.start - ((liveRange) arg0).start;\n\t}", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "private int[] findMinMax(ArrayList<ArrayList<Integer>> objects, int featureNo) {\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\t\n\t\t\tfor(int b = 0; b < objects.size(); b++){\n\t\t\t\t\n\t\t\t\tmax = Math.max(objects.get(b).get(featureNo) , max);\n\t\t\t\tmin = Math.min(objects.get(b).get(featureNo) , min);\n\t\t\t}\n\t\t\t\n\t\t\treturn new int[]{max,min};\n\t\t}", "public Sort Range() throws Z3Exception\n\t{\n\t\treturn Sort.Create(Context(),\n\t\t\t\tNative.getArraySortRange(Context().nCtx(), NativeObject()));\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "public abstract int indexFor(Object obj);", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "VocNoun getRange();", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "public static ArrayList<Member> sortByNumber(ArrayList<Member> s) {\r\n\t\tArrayList<Member> output = new ArrayList<Member>();\r\n\t\twhile(s.size()>0) {\r\n\t\t\tint minNo=0;\r\n\t\t\tString min=s.get(0).getNumber();\r\n\t\t\tfor(int i=0;i<s.size();i++) {\r\n\t\t\t\tif(Member.numberSmaller(s.get(i).getNumber(),min)) {\r\n\t\t\t\t\tmin=s.get(i).getNumber();\r\n\t\t\t\t\tminNo=i;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\toutput.add(s.get(minNo));\r\n\t\t\ts.remove(s.get(minNo));\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "public static void main(String[] args) {\n SortedSet<CompareObject> objects = new TreeSet<>(new ComparatorTest());\n\n objects.add(new CompareObject(1));\n objects.add(new CompareObject(3));\n objects.add(new CompareObject(5));\n objects.add(new CompareObject(-13));\n objects.add(new CompareObject(12));\n objects.add(new CompareObject(1100));\n objects.add(new CompareObject(1));\n\n for (CompareObject x : objects){\n System.out.println(x);\n }\n\n }", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "long getParticipants(int index);", "protected abstract R getRange(E entry);", "@Override\r\n\tpublic Score get(int i) throws IndexOutOfBoundsException {\r\n\t\t//when i is less than zero or greater than size()-1\r\n\t\tif (i < 0 || i > size() - 1)\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\treturn scoreList[i];\r\n\t}", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "public V getLowerBound();", "public ArrayList<Individual> getSortedPopulation(){\n ArrayList<Individual> sortedIndividuals = new ArrayList<Individual>();\n\n for(Individual individual: individuals){\n int indexToadd = 0;\n\n if(sortedIndividuals.isEmpty()){\n sortedIndividuals.add(individual);\n }\n else {\n for(Individual sortedIndividual : sortedIndividuals){\n if(individual.getFitness() > sortedIndividual.getFitness()){\n indexToadd = sortedIndividuals.indexOf(sortedIndividual);\n break;\n }\n }\n if(indexToadd == 0 ){\n sortedIndividuals.add(individual);\n }\n else {\n sortedIndividuals.add(indexToadd,individual);\n }\n }\n }\n return sortedIndividuals;\n }", "Lista<V> valuesInRange(K init, K end);", "public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "protected IntHashSet getMemberHashSet() {\n\t\treturn memberHashSet;\n\t}", "public List<Integer> findTopGenesByRanking( Integer n ) throws DAOException;", "@Override\r\n\tpublic int compareTo(Member o) {\n\t\treturn 0;\r\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> point_list = new SET<Point2D>();\n rangesearch(root, rect, point_list);\n return point_list;\n }", "private SingleRange GetRangeAt(int i)\n\t{\n\t\treturn _rangelist.get(i);\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n ArrayList<Point2D> returnArray = new ArrayList<Point2D>();\n if (rect == null) {\n throw new IllegalArgumentException(\"rect input is null\");\n }\n for (Point2D i : pointsSet) {\n if (rect.contains(i))\n returnArray.add(i);\n }\n return returnArray;\n }", "public Set<Tuple> zrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScoreWithScores(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "public int getRange() {\n return mRange;\n }", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "public int getRange()\n\t{\n\t\treturn Range;\n\t}", "public interface RangeWithBeginning<A extends Comparable<? super A>> extends Range<A>\r\n{\r\n\t// ABSTRACT\t------------------\r\n\t\r\n\t/**\r\n\t * @return The first value inside this range\r\n\t */\r\n\tpublic A first();\r\n}", "public ImmutableSortedSet<C> subSetImpl(C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) {\n if (fromInclusive || toInclusive || Range.compareOrThrow(fromElement, toElement) != 0) {\n return subSet(Range.range(fromElement, BoundType.forBoolean(fromInclusive), toElement, BoundType.forBoolean(toInclusive)));\n }\n return ImmutableSortedSet.of();\n }", "@Override // com.google.common.collect.ImmutableSortedSet\n public int indexOf(Object target) {\n if (!contains(target)) {\n return -1;\n }\n Comparable comparable = (Comparable) target;\n long total = 0;\n UnmodifiableIterator it = ImmutableRangeSet.this.ranges.iterator();\n while (it.hasNext()) {\n Range range = (Range) it.next();\n if (range.contains(comparable)) {\n return Ints.saturatedCast(((long) ContiguousSet.create(range, this.domain).indexOf(comparable)) + total);\n }\n total += (long) ContiguousSet.create(range, this.domain).size();\n }\n throw new AssertionError(\"impossible\");\n }", "int[] getGivenByOrder();", "public interface OrderedSet<T> {\r\n\r\n\tpublic void put(T key);\r\n\t\r\n\tpublic int rank(T key);\r\n\t\r\n\tpublic boolean contains(T key);\r\n\t\r\n\tpublic T select(int rank);\r\n\t\r\n\tpublic T[] keys();\r\n\t\r\n\tpublic T[] keys(int lo,int hi);\r\n\r\n\tpublic T[] keys(T lo, T hi);\r\n\t\r\n\t//(key-1)find the predecessor\r\n\tpublic T floor(T key);\r\n\t\r\n\t//(key+1)find the successor\r\n\tpublic T ceiling(T key);\r\n}", "People getFriendList(int index);", "@Override\r\n\tpublic int compareTo(StudentCollection o) {\n\t\treturn this.marks>o.marks?-1:(this.marks<o.marks?1:0);\r\n\t}", "public List<com.heman.bysj.jooq.tables.pojos.Teacher> fetchRangeOfPosition(String lowerInclusive, String upperInclusive) {\n return fetchRange(Teacher.TEACHER.POSITION, lowerInclusive, upperInclusive);\n }", "public Iterable<Point2D> range(RectHV rect) {\n\n if (rect == null)\n throw new IllegalArgumentException(\"Got null object in range()\");\n \n Queue<Point2D> pointsInside = new Queue<>();\n \n for (Point2D p : point2DSET) {\n \n double x = p.x();\n double y = p.y();\n if (x >= rect.xmin() && x <= rect.xmax() &&\n y >= rect.ymin() && y <= rect.ymax())\n pointsInside.enqueue(p);\n \n }\n \n return pointsInside;\n }", "abstract List<V> rangeSearch(K key, String comparator);", "public List<StaffMember> getTeamMembers(){\n\t\tSet<StaffMember> team = teamleader.getDirectSubordinates();\n\t\tStaffMemberIterator iterator = new StaffMemberIterator(team);\n\t\tList<StaffMember> listOfMembers = iterator.listOfStaffMember;\n\t\tlistOfMembers.add(teamleader);\n\t\tCollections.sort(listOfMembers);\n\t\treturn listOfMembers;\n\t}", "Set<E> getForwardNeighbors();", "public Set<String> zrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScore(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public List<OWLObject> search(OWLObject queryObj) {\n\t\tList<OWLObject> hits = new ArrayList<OWLObject>(maxHits);\n\t\tSystem.out.println(\"gettings atts for \"+queryObj+\" -- \"+simEngine.comparisonProperty);\n\t\tSet<OWLObject> atts = simEngine.getAttributeClosureFor(queryObj);\n\t\tSystem.out.println(\"all atts: \"+atts.size());\n\t\tif (atts.size() == 0)\n\t\t\treturn hits;\n\t\t\n\t\t// only compare using significant atts;\n\t\t// we don't do the same test on candidates as these will be removed by the\n\t\t// intersection operation. they will have a small effect on the score, as\n\t\t// we don't divide by the union, but instead the sum of sizes\n\t\tatts = filterNonSignificantAttributes(atts);\n\t\tSystem.out.println(\"filtered atts: \"+atts.size());\n\n\t\t//bloomFilter = new BloomFilter<OWLObject>(0.05, atts.size());\n\t\t//bloomFilter.addAll(atts);\n\t\t\t\t\n\t\tSortedMap<Integer,Set<OWLObject>> scoreCandidateMap = new TreeMap<Integer,Set<OWLObject>>();\n\t\t\n\t\tfor (OWLObject candidate : getCandidates()) {\n\t\t\tif (candidate.equals(queryObj))\n\t\t\t\tcontinue;\n\t\t\tSet<OWLObject> iAtts = simEngine.getAttributeClosureFor(candidate);\n\t\t\t//Set<OWLObject> iAtts = simEngine.getGraph().getAncestors(candidate);\n\n\t\t\tif (iAtts.size() == 0)\n\t\t\t\tcontinue;\n\t\t\tint cAttsSize = iAtts.size();\n\t\n\t\t\tiAtts.retainAll(atts);\n\t\t\t//Collection<OWLObject> iAtts = bloomFilter.intersection(cAtts);\n\t\t\t\n\t\t\t// simJ, one-sided, scaled by 1000\n\t\t\t// negate to ensure largest first\n\t\t\t//Integer score = - (iAtts.size() * 1000 / cAttsSize);\n\t\t\t\n\t\t\t// this biases us towards genes with large numbers of annotations,\n\t\t\t// but it is better at finding the models that share all features\n\t\t\tInteger score = - iAtts.size();\n\t\t\tif (!scoreCandidateMap.containsKey(score)) \n\t\t\t\tscoreCandidateMap.put(score, new HashSet<OWLObject>());\n\t\t\tscoreCandidateMap.get(score).add(candidate);\n\t\t\treporter.report(this,\"query_candidate_overlap_total\",queryObj,candidate,iAtts.size(),cAttsSize);\n\t\t}\n\t\t\n\t\tint n = 0;\n\t\tfor (Set<OWLObject> cs : scoreCandidateMap.values()) {\n\t\t\tn += cs.size();\n\t\t\thits.addAll(cs);\n\t\t}\n\t\t\n\t\tn = 0;\n\t\tfor (OWLObject hit : hits) {\n\t\t\tn++;\n\t\t\treporter.report(this,\"query_hit_rank_threshold\",queryObj,hit,n,maxHits);\n\t\t}\n\t\tif (hits.size() > maxHits)\n\t\t\thits = hits.subList(0, maxHits);\n\t\t\n\n\n\t\treturn hits;\n\t}", "int[] minAndMax() {\n\n // **** declare and populate array of Integers with the values of the parents O(n) ****\n Integer[] arr = new Integer[this.parents.length];\n int i = 0;\n for (int val : this.parents)\n arr[i++] = val;\n\n // **** create a list with the values in the parents ****\n List<Integer> al = Arrays.asList(arr);\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse the array arr: O(n^2) ****\n for (int item : arr) {\n if (item != 0) {\n\n // **** get the frequency of item in the list: O(n) ****\n int freq = Collections.frequency(al, item);\n\n // ???? ????\n System.out.println(\"minAndMax <<< item: \" + item + \" freq: \" + freq);\n\n // **** update the min and max values ****\n min = Math.min(min, freq);\n max = Math.max(max, freq);\n }\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "@Override\n public int compareTo(final DistributionMember o) {\n // This is the most important bit.\n if (!getValue().equals(o.getValue())) return (int) Math.signum(o.getValue() - getValue());\n // The rest is arbitrary and just designed to keep non-identical DistributionMembers from being equal\n final List<Double> fitVals = getFitnessValues();\n final List<Double> otherVals = o.getFitnessValues();\n for (int i = 0; i < fitVals.size(); ++i) {\n if (!fitVals.get(i).equals(otherVals.get(i))) return (int) Math.signum(otherVals.get(i) - fitVals.get(i));\n }\n final Genotype g = getGenotype();\n final Genotype og = o.getGenotype();\n return g.compareTo(og);\n }", "public abstract int compareMembers(T m1, T m2);", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }", "public SortedSubset(RangeSet<T> constitutingSuperset, T lowerbound, T upperbound)\n\t{\n\t\tinit(constitutingSuperset, lowerbound, upperbound, true, false);\n\t}", "public static Automaton.List rangeOf(Automaton automaton,\n\t\t\tAutomaton.Int _start, Automaton.Int _end) {\n\t\t// FIXME: there is a bug here for big integer values.\n\t\tint start = _start.intValue();\n\t\tint end = _end.intValue();\n\t\tint[] children = new int[end - start];\n\t\tfor (int i = 0; i < children.length; ++i, ++start) {\n\t\t\tchildren[i] = automaton.add(new Automaton.Int(start));\n\t\t}\n\t\treturn new Automaton.List(children);\n\t}", "public static void main(String[] args) {\n\n// SortedSet<Integer> set=new TreeSet<>();\n// set.add(45);\n// set.add(3);\n// set.add(12);\n// System.out.println(set);\n\n SortedSet<User> set=new TreeSet<>();\n set.add(new User(34,\"r\"));\n set.add(new User(4,\"j\"));\n set.add(new User(14,\"x\"));\n System.out.println(set);\n }", "public ImmutableSortedSet<C> headSetImpl(C toElement, boolean inclusive) {\n return subSet(Range.upTo(toElement, BoundType.forBoolean(inclusive)));\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\"range: RectHV is null\");\n Queue<Point2D> q = new Queue<>();\n rangeSearch(root, rect, q);\n return q;\n }", "@Override\n\t\tpublic List<Community> subList(int fromIndex, int toIndex) {\n\t\t\treturn null;\n\t\t}", "public Genotype rouletteSelection() {\n // get a number between 0 and 1 to compare against\n double slice = rnd.nextDouble();\n // keep track of the cumulative fitness\n double cumulativeFitness = 0;\n\n // loop through the population to pick a mate\n for (Genotype g : population) {\n // increment the cumulative fitness with the member's normalized fitness\n cumulativeFitness += g.getNormalizedFitness();\n // if the cumulative fitness is greater than the random number,\n if (cumulativeFitness > slice) {\n // select the member for mating\n return g;\n }\n }\n\n // if no members are chosen, pick the one with the highest fitness score\n return population.get(0);\n }", "public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScoreWithScores(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public interface MatchSet {\n\n\t/**\n\t * @return query that produced the match set\n\t */\n\tpublic ProfileQuery getQuery();\n\t\n\t/**\n\t * @return all matches\n\t */\n\tpublic List<Match> getMatches();\n\n\t/**\n\t * @return all matches with rank\n\t */\n\tpublic List<Match> getMatchesWithRank(int rank);\n\t\n\t/**\n\t * @param rank\n\t * @return all matches <= rank\n\t */\n\tpublic List<Match> getMatchesWithOrBelowRank(int rank);\n\t\n\t/**\n\t * @param matchId\n\t * @return Match with identical matchId\n\t */\n\tpublic Match getMatchesWithId(String matchId);\n\t\n\t/**\n\t * @param createMatch\n\t */\n\tpublic void add(Match match);\n\n\t/**\n\t * sort all matches, best match first\n\t */\n\tpublic void sortMatches();\n\t\n\t/**\n\t * rank sorted matches, best has rank=1, \n\t * identical scores share ranks\n\t */\n\tpublic void rankMatches();\n\t\n\t// TODO - record kb metadata\n\tpublic ExecutionMetadata getExecutionMetadata();\n\tpublic void setExecutionMetadata(ExecutionMetadata executionMetadata);\n\n\tpublic MethodMetadata getMethodMetadata();\n\tpublic void setMethodMetadata(MethodMetadata methodMetadata);\n\n\t/**\n\t * Truncate the match set to the top n hits\n\t * \n\t * @param limit\n\t */\n\tpublic void truncate(int limit);\n\t\n\t/**\n\t * Matches for all reference individuals\n\t * \n\t * This is preserved even after truncation\n\t * \n\t * @return map between match id and match\n\t */\n\tpublic Map<String, Match> getReferenceMatches();\n\t\t\n\tpublic DescriptiveStatistics getScores();\n\n\t/**\n\t * @param background - distribution of scores to compare for significance\n\t */\n\tpublic void calculateMatchSignificance(DescriptiveStatistics background);\n\n\t// TODO - filters\n\t\n}", "public abstract ucar.array.RangeIterator getRangeIterator();", "@Test\n public void test_range_Integer_Collection1() {\n populate_i1();\n Collection<Integer> actual = Selector.range(i1, 1, 5, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(2);\n expected.add(3);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "@Override\n public int compareTo(ObjectScore arg0) {\n if (this.getScore() > arg0.getScore()) {\n return 1;\n } else if (this.getScore() < arg0.getScore()) {\n return -1;\n } else {\n return 0;\n }\n }", "public Score getScores(int index) {\n return scores_.get(index);\n }", "abstract public double getMembership(int x);", "public interface Ordinal {\r\n\t\r\n\tpublic Integer getOrdinal();\r\n\tpublic void setOrdinal(Integer ordinal);\r\n\t\r\n\tpublic Integer getId();\r\n\t\r\n\r\n\t/**\r\n\t * Compares two objects by their ordinal value, smaller values are first in order.\r\n\t * If the ordinal value is equal and objects are of different classes,\r\n\t * compares by lexicographic order of simple class name.\r\n\t * @param <T> a class that implements Ordinal interface.\r\n\t * @return comparator with a method for comparing by ordinal value. \r\n\t */\r\n\tpublic static <T extends Ordinal> Comparator<T> ordinalComparator() {\r\n\t\treturn new Comparator<T>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(T o1, T o2) {\r\n\t\t\t\tint result = o1.getOrdinal()-o2.getOrdinal();\r\n\t\t\t\tif(result == 0) {\r\n\t\t\t\t\tresult = o1.getClass().getSimpleName().compareTo(o2.getClass().getSimpleName());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn result;\r\n\t\t\t}};\r\n\t\t\r\n\t}\r\n\t\r\n\t/**\r\n\t * Helper function for setting default ordinal values, when not set.\r\n\t * If one all the ordinal values are null, will set according to received order.\r\n\t * @param array of objects with ordinal field to set.\r\n\t */\r\n\tpublic static void setOrdinals(Ordinal[] array) {\r\n\t\tif(Arrays.stream(array).allMatch(o -> o.getOrdinal() == null)) {\r\n\t\t\tfor(int i=0; i<array.length; i++) {\r\n\t\t\t\tarray[i].setOrdinal(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t/**\r\n\t * Helper function for setting default ordinal values, when not set.\r\n\t * If one all the ordinal values are null, will set according to received order.\r\n\t * @param list of objects with ordinal field to set.\r\n\t */\r\n\tpublic static <E extends Ordinal> void setOrdinals(List<E> list) {\r\n\t\tif(list != null && list.stream().allMatch(o -> o.getOrdinal() == null)) {\r\n\t\t\tfor(int i=0; i<list.size(); i++) {\r\n\t\t\t\tlist.get(i).setOrdinal(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}", "private HashSet<Position> getInRange(int p_r, Distance p_d)\n {\n HashSet<Position> s = new HashSet<Position>();\n\n for (int x = 0; x <= p_r; x++)\n {\n int y = 0;\n Position p = new Position(this.x + x, this.y + y);\n\n while (p_d.inside(this, p, p_r))\n {\n s.add(p);\n s.add(new Position(this.x - x, this.y + y));\n s.add(new Position(this.x + x, this.y - y));\n s.add(new Position(this.x - x, this.y - y));\n p = new Position(this.x + x, this.y + ++y);\n }\n }\n return s;\n }", "public Collection<Item> getSortedItems() {\n\t\tint i, j, first;\n\t int numLength = items.size();\n\t for (i= numLength - 1; i > 0; i--)\n\t {\n\t first = 0; // initialize to subscript of first element\n\t for (j=1; j<=i; j++) // locate smallest between positions 1 and i.\n\t {\n\t if (getQuantityOfItem(items.get(j).getItem()) < \n\t \t\t getQuantityOfItem(items.get(first).getItem()) )\n\t first = j;\n\t }\n\t //temp = items.get(first); // Swap smallest found with element in position i.\n\t //items.get(first)=items.get(i);\n\t ItemPair itemI = items.get(i);\n\t ItemPair firstitem = items.get(first);\n\t ItemPair temp = itemI;\n\t itemI = firstitem;\n\t firstitem = temp;\n\t \n\t // items.get(i)=temp;\n\t //num[first] = num[i];\n\t // num[i] = temp;\n\t }\n\t \n\t}", "java.util.List<Score>\n getScoresList();", "Lista<K> keysInRange(K init, K end);", "int getGroupIdUpperBound();", "private static void accessIndexInSet(Set<Integer> numbers) {\n int desiredIndex = 2;\n int currentIndex = 0;\n\n //iterate the HashSet\n Iterator<Integer> iterator = numbers.iterator();\n while (iterator.hasNext()) {\n\n if (currentIndex == desiredIndex)\n System.out.println(\"Element at index \" + desiredIndex + \" is: \" + iterator.next());\n iterator.next();\n currentIndex++;\n }\n\n // M2: convert it to list\n List<Integer> list = new ArrayList<Integer>(numbers);\n list.get(2);\n\n // M3: convert it to Array []\n Integer[] integers = numbers.toArray(new Integer[numbers.size()]);\n int i = integers[2];\n }", "private List<Integer> allIntegerInRange(int start, int end) {\n\t\tList<Integer> range = new ArrayList<Integer>();\n\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\trange.add(i);\n\t\t}\n\n\t\treturn range;\n\t}", "public List rangeSearch(int x, int y){\n List list = new List(y-x);\n Node current = findClosest(x);\n Node end = findClosest(y);\n\n // list.append(current);\n // System.out.print(\"end 1 = \" + end.key+\" \");\n while(current.key<=end.key)\n {\n\n // System.out.print(\"current 2= \" + current.key+\" \");\n if(current.key<=y){ // ใส่ node ที่มีค่าไม่เกิน rangeSearch\n list.append(current);\n }\n\n if(current.key>=end.key){break;}\n\n current = findNext(current);\n\n\n\n // System.out.print(\"current 3= \" + current.key);\n\n }\n\n\n return list;\n }", "@Test\n public void test_range_Integer_Collection4() {\n populate_i3();\n Collection<Integer> actual = Selector.range(i3, 4, 8, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(8);\n expected.add(7);\n expected.add(6);\n expected.add(5);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> result = new SET<Point2D>();\n if (root == null) {\n return result;\n }\n\n range(root, rect, result);\n return result;\n }", "public interface GeneralRange<T extends Comparable<T>> {\n\t/**\n\t * Return whether a given comparable element is in a bound according to some field in that object.\n\t * @param a The value to be compared to the range.\n\t * @return Integer < 0 if it is less than the range, = 0 if it is in the range and > 0 if it is bigger than the range.\n\t */\n\tpublic int isInBounds(T a);\n}", "public GameObject get(int n) { \n\t\treturn (GameObject) collection.get(n);\n\t}", "public SummaryRanges() {\n S.add(new MyPair(-INF, -INF)); S.add(new MyPair(INF, INF));\n }", "public int getBound();", "public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}", "public ImmutableSortedSet<C> subSet(Range<C> range) {\n return ImmutableRangeSet.this.subRangeSet((Range) range).asSet((DiscreteDomain<C>) this.domain);\n }", "public List<Point> getPoints() {\n return pointRepository.findAll()//\n .stream() //\n .sorted((p1, p2) -> Integer.compare(p1.getPosition(), p2.getPosition()))//\n .collect(Collectors.toList());\n }", "@Override\r\n public void getRange(ArrayList<Piece> pieces){\r\n this.range.clear();\r\n int pieceX = this.getX(); int pieceY = this.getY(); // X and Y coordinates for the king piece\r\n\r\n // getPiece: 0 = empty; 1 = same color; 2 = opposite color\r\n //Up\r\n if (this.getPiece(pieceX, pieceY+1, pieces) == 0 || this.getPiece(pieceX, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Up-right\r\n if (this.getPiece(pieceX+1, pieceY+1, pieces) == 0 || this.getPiece(pieceX+1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Right\r\n if (this.getPiece(pieceX+1, pieceY, pieces) == 0 || this.getPiece(pieceX+1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Down-right\r\n if (this.getPiece(pieceX+1, pieceY-1, pieces) == 0 || this.getPiece(pieceX+1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down\r\n if (this.getPiece(pieceX, pieceY-1, pieces) == 0 || this.getPiece(pieceX, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down-left\r\n if (this.getPiece(pieceX-1, pieceY-1, pieces) == 0 || this.getPiece(pieceX-1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Left\r\n if (this.getPiece(pieceX-1, pieceY, pieces) == 0 || this.getPiece(pieceX-1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Up-left\r\n if (this.getPiece(pieceX-1, pieceY+1, pieces) == 0 || this.getPiece(pieceX-1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Castling\r\n for (Piece piece : pieces) {\r\n if (piece instanceof Rook) {\r\n if (piece.getColor() == this.getColor()) {\r\n if (validCastling(pieces, (Rook)piece)) {\r\n int targetX = (piece.getX() < getX()) ? (this.getX() - 2) : (this.getX() + 2);\r\n this.range.add(new int[] {targetX, this.getY()});\r\n }\r\n }\r\n }\r\n }\r\n }", "@Override\n public int hashCode() {\n return Objects.hash(rangeIndex);\n }", "public int getLowerBound() {\r\n return lowerBound;\r\n }" ]
[ "0.54030997", "0.5297579", "0.5245986", "0.51369196", "0.51046014", "0.5047285", "0.4958471", "0.49551943", "0.4937556", "0.49357834", "0.4879934", "0.487112", "0.4847749", "0.48197022", "0.48148704", "0.4806831", "0.47965416", "0.47929034", "0.47769684", "0.47761056", "0.47658488", "0.47554773", "0.4749482", "0.47396335", "0.4724106", "0.47236434", "0.47174326", "0.47120067", "0.46937567", "0.46844336", "0.46797138", "0.46724245", "0.46404204", "0.46352637", "0.46333984", "0.46304435", "0.46288893", "0.46222422", "0.46169364", "0.46164834", "0.4611964", "0.45992512", "0.45909476", "0.45896515", "0.45760491", "0.45726442", "0.456657", "0.45638573", "0.4557521", "0.4554856", "0.4543953", "0.45299318", "0.45018184", "0.44919893", "0.44848973", "0.4473985", "0.4469321", "0.4462211", "0.44591993", "0.44559506", "0.44552848", "0.44450116", "0.44424105", "0.44384682", "0.44371518", "0.44364354", "0.44354925", "0.4432918", "0.44254243", "0.44254196", "0.4424761", "0.44206604", "0.4416348", "0.4409828", "0.44079858", "0.44062746", "0.4405902", "0.44048083", "0.43888217", "0.43841457", "0.43831617", "0.43822435", "0.43771356", "0.43760562", "0.43757528", "0.43708745", "0.43708247", "0.43697542", "0.4364681", "0.4363825", "0.43584853", "0.43572143", "0.4346901", "0.43434876", "0.43430585", "0.43425423", "0.43422592", "0.4340581", "0.43388817", "0.43376127", "0.43361324" ]
0.0
-1
Return the all the elements in the sorted set at key with a score between min and max (including elements with score equal to min or max).
public Set<String> zrangeByScore(final String key, final double min, final double max) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.zrangeByScore(key, min, max); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<Tuple> zrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScoreWithScores(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScoreWithScores(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<String> zrevrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScore(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public <T> Set<T> zrangeHashSetByScore(final String key, final double min, final double max, Class<T> clazz) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max);\n if (tempSet != null && tempSet.size() > 0) {\n HashSet<T> result = new HashSet<T>();\n for (byte[] value : tempSet) {\n // result.add((T) HessianSerializer.deserialize(value));\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public <T> List<T> zrangeByScore(final String key, final double min, final double max, Class<T> clazz) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max);\n if (tempSet != null && tempSet.size() > 0) {\n List<T> result = new ArrayList<T>();\n for (byte[] value : tempSet) {\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<Tuple> zrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "private ArrayList<Integer> binarySearch(ArrayList<Integer> arraylist, int key, int min, int max)\n\t{\n\t\tArrayList<Integer> mids = new ArrayList<Integer>(); \n\t \n\t\twhile (max >= min)\n\t\t{\n\t\t\tint mid = (min + max) / 2;\n\t \n\t\t\tmids.add(mid); \n\t \n\t\t\tif (arraylist.get(mid) < key)\n\t\t\t{\n\t\t\t\tmax = mid - 1;\n\t\t\t}\n\t \n\t\t\telse if (arraylist.get(mid) > key )\n\t\t\t{\n\t\t\t\tmin = mid + 1;\n\t\t\t}\n\t \n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak; \n\t\t\t}\n\t\t}\n\t \n\t\treturn mids; \n\t}", "abstract List<V> rangeSearch(K key, String comparator);", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n return getChild(key).rangeSearch(key, comparator);\r\n }", "void collect(Object key, float score);", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "int[] maxAndMin() {\n\n // **** ****\n HashMap<Integer, Integer> hm = new HashMap<Integer, Integer>();\n\n // **** traverse parrents array inserting into hashmap: O(n) ****\n for (int val : this.parents) {\n hm.put(val, hm.getOrDefault(val, 0) + 1);\n }\n\n // ???? ????\n // System.out.println(\"maxAndMin <<< hm: \" + hm.toString());\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse hashmap looking for min and max: O(n) ****\n Iterator<Entry<Integer, Integer>> it = hm.entrySet().iterator();\n while (it.hasNext()) {\n Entry<Integer, Integer> e = it.next();\n\n // **** skip this key ****\n if (e.getKey() == 0)\n continue;\n\n // **** update min and max ****\n min = Math.min(e.getValue(), min);\n max = Math.max(e.getValue(), max);\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "Set<Art> getArtByPrice(Double upper, Double lower);", "public static void main(String[] args) {\n\t\tHashSet<Double> hash = new HashSet<>();\n\t\thash.add(1.5);\n\t\thash.add(8.25);\n\t\thash.add(-7.32);\n\t\thash.add(13.3);\n\t\thash.add(-12.45);\n\t\thash.add(48.5);\n\t\thash.add(0.01);\n\t\tdouble max = 0;\n\t\tdouble min = 0;\n\t\t\n\t\tfor (Double double1 : hash) {\n\t\t\tSystem.out.println(double1);\n\t\t\tif (double1 > max) {\n\t\t\t\tmax = double1;\n\t\t\t}\n\t\t\tif (double1 < min) {\n\t\t\t\tmin = double1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Max : \" + max);\n\t\tSystem.out.println(\"Min : \" + min);\n\t\thash.remove(min);\n\t\tfor (Double double1 : hash)\n\t\t\tSystem.out.println(double1);\n\t}", "Collection<T> getMinElements();", "Lista<V> valuesInRange(K init, K end);", "public abstract Collection<T> getMatchesAboveThreshold(T first,\n double similarityThreshold);", "public static void main(String[] args) {\n\t\t\r\n\t\tTreeMap<Integer,String> map = new TreeMap<Integer,String>();\r\n\t\t\r\n map.put(2000, \"A\");\r\n map.put(5000, \"E\");\r\n map.put(6000, \"F\");\r\n map.put(7000, \"G\");\r\n map.put(3000, \"C\");\r\n map.put(4000, \"D\");\r\n map.put(2100, \"B\");\r\n System.out.println(map);\r\n System.out.println(\"max\"+map.lastKey());\r\n System.out.println(\"min\"+map.firstKey());\r\n \r\n Set<Integer> setLessThen3k = map.headMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessThen3k);\r\n \r\n Set<Integer> setLessgreater3k = map.tailMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessgreater3k);\r\n \r\n \r\n\r\n\t\tTreeMap<String,Integer> Usermap = new TreeMap<String,Integer>();\r\n\t\t\r\n\t\tUsermap.put( \"A\",2000);\r\n\t\tUsermap.put( \"F\",8000);\r\n\t\tUsermap.put( \"G\",7000);\r\n\t\tUsermap.put( \"C\",3000);\r\n\t\tUsermap.put( \"D\",3000);\r\n\t\tUsermap.put( \"E\",9000);\r\n\t\tUsermap.put( \"B\",8000);\r\n System.out.println(map);\r\n System.out.println(\"max\"+Usermap.lastKey());\r\n System.out.println(\"min\"+Usermap.firstKey());\r\n \r\n\r\n \r\n \r\n\t}", "public void queryRange(int lowKey, int highKey, IntPushOperator results) {\n\t\tIntBTreeNode next = entries.get(lowKey);\n\t\tnext.queryRange(lowKey, highKey, results);\n\t}", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "@Override\r\n public List<V> rangeSearch(K key, String comparator) {\r\n if (!comparator.contentEquals(\">=\") &&\r\n !comparator.contentEquals(\"==\") &&\r\n !comparator.contentEquals(\"<=\"))\r\n return new ArrayList<V>();\r\n\r\n // if key is null, it returns a empty list\r\n if ( key == null){\r\n return new ArrayList<V>();\r\n }\r\n return root.rangeSearch(key, comparator);\r\n }", "static int[] jobOffers(int[] scores, int[] lowerLimits, int[] upperLimits) {\n int[] res = new int[lowerLimits.length];\n\n TreeMap<Integer, Integer> map = new TreeMap<>();\n\n for (int s : scores)\n map.put(s, map.getOrDefault(s, 0) + 1);\n\n for (int i = 0; i < lowerLimits.length; i++) {\n NavigableMap<Integer, Integer> submap = map.subMap(lowerLimits[i], true, upperLimits[i], true);\n int count = 0;\n for (Integer j : submap.values()) count += j;\n res[i] = count;\n }\n\n // If this solution works, please give a star to my repo (:\n return res;\n }", "Lista<K> keysInRange(K init, K end);", "public void set(int min, int max, double score){\r\n\t\tchart[min][max] = score;\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint k = 3;\n\t\t\n\t\tint max = Integer.MIN_VALUE, min = Integer.MAX_VALUE;\n\t\t\n\t\tint arr[] = new int[k];\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tif(max < arr[i])\n\t\t\t\tmax = arr[i];\n\t\t\tif(min > arr[i])\n\t\t\t\tmin = arr[i];\n\t\t}\n\t\t\n\t\t\n\t\tint [][] arr1 = {{3,8},{10,11},{1,3},{2,4}};\n\t\t\n\t\tSystem.out.println(selection(arr1));\n\t}", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "private static void findKClosestNumbers(int[] arr, int key, int k) {\n\n\t\tPriorityQueue<Integer> pq;\n\t\tint max = findMaxInArr(arr);\n\t\tint min = findMinInArr(arr);\n\n\t\tint maxDiff = Math.abs(key - max);\n\t\tint minDiff = Math.abs(key - min);\n\n\t\tif (maxDiff <= minDiff) {\n\t\t\tpq = new PriorityQueue<>(Collections.reverseOrder());\n\t\t} else {\n\t\t\tpq = new PriorityQueue<>();\n\t\t}\n\n\t\tfor (int e : arr) {\n\t\t\tpq.add(e);\n\t\t}\n\n\t\tint c = 0;\n\n\t\twhile (c < k) {\n\t\t\tSystem.out.println(pq.remove());\n\t\t\tc++;\n\t\t}\n\n\t}", "private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> scores = new TreeSet<Integer>();\n\t\tscores.add(new Integer(87));\n\t\tscores.add(new Integer(98));\n\t\tscores.add(new Integer(75));\n\t\tscores.add(new Integer(95));\n\t\tscores.add(new Integer(80));\n\t\t\n\t\tInteger score =null;\n\t\t\n\t\tscore = scores.first();\n\t\tSystem.out.println(\"가장 낮은 점수 : \" + score);\n\t\t\n\t\tscore = scores.last();\n\t\tSystem.out.println(\"가장 높은 점수 : \" + score);\n\t\t\n\t\tscore = scores.lower(new Integer(95));\n\t\tSystem.out.println(\"95점 아래의 점수 : \" + score);\n\t\t\n\t\tscore = scores.higher(new Integer(95));\n\t\tSystem.out.println(\"95점 위의 점수 : \" + score);\n\t\t\n\t\tscore = scores.ceiling(new Integer(95));\n\t\tSystem.out.println(\"95점 이상의 점수 : \" + score);\n\t\t\n\t\tscore = scores.floor(new Integer(95));\n\t\tSystem.out.println(\"95점 이하의 점수 : \" + score);\n\t\t\n\t\twhile(!scores.isEmpty()) {\n\t\t\tSystem.out.println(scores.pollFirst());\n\t\t}\n\t}", "KeyGroupRange getKeyGroupRange();", "public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}", "int[] minAndMax() {\n\n // **** declare and populate array of Integers with the values of the parents O(n) ****\n Integer[] arr = new Integer[this.parents.length];\n int i = 0;\n for (int val : this.parents)\n arr[i++] = val;\n\n // **** create a list with the values in the parents ****\n List<Integer> al = Arrays.asList(arr);\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse the array arr: O(n^2) ****\n for (int item : arr) {\n if (item != 0) {\n\n // **** get the frequency of item in the list: O(n) ****\n int freq = Collections.frequency(al, item);\n\n // ???? ????\n System.out.println(\"minAndMax <<< item: \" + item + \" freq: \" + freq);\n\n // **** update the min and max values ****\n min = Math.min(min, freq);\n max = Math.max(max, freq);\n }\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "Score getScores(int index);", "ArrayList <Integer> nearlySorted(int arr[], int num, int k)\n {\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n ArrayList<Integer> res = new ArrayList<>();\n for(int i=0;i<k+1;i++){\n pq.add(arr[i]);\n }\n \n for(int i=k+1;i<num;i++){\n res.add(pq.remove());\n pq.add(arr[i]);\n }\n \n while(pq.size()>0){\n res.add(pq.remove());\n }\n \n return res;\n }", "public static <T> Pair<ArrayList<T>, Double> relativeHabitFilter(Map<T, Double> habitStrength){\n\t\t//System.out.print(\"rHabitFilter is called on size:\" + habitStrength.size());\n\t\tMap<T, Double> sorted= Helper.sortByValue(habitStrength);\n\t\tArrayList<T> keys =new ArrayList<T>(sorted.keySet());\n\t\t\n\t\t//System.out.println(habitStrength);\n\t\t//System.out.println(sorted);\n\t\t\n\t\tdouble bestDifference = 0;\n\t\tdouble bestSplit = 0;\n\t\tfor(int i = 0; i < keys.size()-1; i++){\n\t\t\tMap<T, Double> left = new HashMap<T, Double>();\n\t\t\tMap<T, Double> right =new HashMap<T, Double>(habitStrength);\n\t\t\tfor(int j =0; j <= i; j++){ //Fill maps left and right\n\t\t\t\tT key = keys.get(j);\n\t\t\t\tleft.put(key, sorted.get(key));\n\t\t\t\tright.remove(key);\n\t\t\t\t//System.out.print(\"loopmakemaps\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tdouble difference = Helper.avarageDouble(right.values()) - Helper.avarageDouble(left.values());\n\t\t\tif(difference > bestDifference){\n\t\t\t\tbestDifference = difference;\n\t\t\t\tbestSplit = i;\n\t\t\t}\n\t\t\t//System.out.print(\"loopfindbest\");\n\t\t}\n\t\t\n\t\tArrayList<T> newCandidates =new ArrayList<T>();\n\t\tfor(int j = keys.size()-1; j > bestSplit; j--){\n\t\t\tnewCandidates.add(keys.get(j));\n\t\t\t//System.out.print(\"loophere\");\n\t\t}\n\t\t\n\t\t//System.out.println(\"I made it! Difference:\" + bestDifference + \"newCandidates\" + newCandidates);\n\t\t\n\t\treturn new ImmutablePair<ArrayList<T>, Double>(newCandidates, bestDifference);\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public List<T> findByKey(String key, Object object, int start, int max);", "public MatcherScores(SortedMap<Double, SortedSet<String>> scores)\n {\n this.scores = Objects.requireNonNull(scores);\n }", "public SortedSubset(RangeSet<T> constitutingSuperset, T lowerbound, T upperbound)\n\t{\n\t\tinit(constitutingSuperset, lowerbound, upperbound, true, false);\n\t}", "@Test\n public void test_kmin_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmin(i5, 2, new CompareIntegerAscending());\n int expected = 3;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "@Test\n public void test_kmax_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmax(i5, 5, new CompareIntegerAscending());\n int expected = 1;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "protected abstract List<Double> calcScores();", "public ArrayList<Integer> pointsInRange( int min, int max )\n {\n ArrayList<Integer> points = new ArrayList<Integer>();\n _root.findPoints( min, max, points );\n return points;\n }", "private static int partition(Comparable[] data, int min, int max) {\n\n\t\t// Use first element as the partition value\n\n\t\tComparable partitionValue = data[min];\n\n\t\tint left = min;\n\t\tint right = max;\n\n\t\twhile (left < right) {\n\t\t\t// Search for an element that is > the partition element\n\t\t\twhile (data[left].compareTo(partitionValue) <= 0 && left < right)\n\t\t\t\tleft++;\n\t\t\t// Search for an element that is < the partitionelement\n\t\t\twhile (data[right].compareTo(partitionValue) > 0)\n\t\t\t\tright--;\n\t\t\tif (left < right)\n\t\t\t\tswap(data, left, right);\n\t\t}\n\t\t// Move the partition element to its final position\n\t\tswap(data, min, right);\n\n\t\treturn right;\n\t}", "int minKey(float key[], Boolean mstSet[]){\n float min = Float.MAX_VALUE;\n int min_index = -1;\n \n for (int v = 0; v < V; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n \n return min_index;\n }", "public double getBestScore();", "@Nonnull\r\n\tpublic static <T, Key> Observable<List<T>> minMax(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func1<? super T, ? extends Key> keyExtractor,\r\n\t\t\t@Nonnull final Comparator<? super Key> keyComparator,\r\n\t\t\tfinal boolean max\r\n\t) {\r\n\t\treturn new Observable<List<T>>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super List<T>> observer) {\r\n\t\t\t\treturn source.register(new Observer<T>() {\r\n\t\t\t\t\t/** The current collection for the minimum of Ts. */\r\n\t\t\t\t\tList<T> collect;\r\n\t\t\t\t\t/** The current minimum value. */\r\n\t\t\t\t\tKey maxKey;\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void finish() {\r\n\t\t\t\t\t\tif (collect != null) {\r\n\t\t\t\t\t\t\tobserver.next(collect);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void next(T value) {\r\n\t\t\t\t\t\tKey key = keyExtractor.invoke(value);\r\n\t\t\t\t\t\tif (collect == null) {\r\n\t\t\t\t\t\t\tmaxKey = key;\r\n\t\t\t\t\t\t\tcollect = new ArrayList<T>();\r\n\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tint order = keyComparator.compare(maxKey, key);\r\n\t\t\t\t\t\t\tif (order == 0) {\r\n\t\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\tif (max ^ (order > 0)) {\r\n\t\t\t\t\t\t\t\tmaxKey = key;\r\n\t\t\t\t\t\t\t\tcollect = new ArrayList<T>();\r\n\t\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}", "java.util.List<Score>\n getScoresList();", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public abstract double[] getLowerBound();", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n // linked list for return\r\n List<V> val = new LinkedList<>();\r\n LeafNode node_next = this;\r\n LeafNode node_prev = this.previous;\r\n\r\n // to check the current node's next nodes first\r\n while (node_next != null) {\r\n if (comparator.equals(\"<=\")) {\r\n if (node_next.getFirstLeafKey().compareTo(key) > 0) {\r\n node_next = node_next.next;\r\n continue;\r\n }else{\r\n compare((K) key, comparator, (List<V>) val, node_next);\r\n node_next = node_next.next;\r\n }\r\n } else if (comparator.equals(\">=\")){\r\n if (node_next.getFirstLeafKey().compareTo(key) < 0) {\r\n node_next = node_next.next;\r\n continue;\r\n }\r\n else{\r\n compare((K) key, comparator, (List<V>) val, node_next);\r\n node_next = node_next.next;\r\n }\r\n } else if ( comparator.equals(\"==\")){\r\n if (node_next.getFirstLeafKey().compareTo(key) > 0){\r\n node_next = node_next.next;\r\n continue;\r\n } else {\r\n compare((K) key, comparator, (List<V>) val, node_next);\r\n node_next = node_next.next;\r\n }\r\n }\r\n }\r\n\r\n // to check the previous nodes\r\n while (node_prev != null) {\r\n if (comparator.equals(\"<=\")) {\r\n if (node_prev.getFirstLeafKey().compareTo(key) > 0) {\r\n node_prev = node_prev.previous;\r\n continue;\r\n }else{\r\n compare((K) key, comparator, (List<V>) val, node_prev);\r\n node_prev = node_prev.previous;\r\n }\r\n } else if (comparator.equals(\">=\")){\r\n if (node_prev.getFirstLeafKey().compareTo(key) < 0) {\r\n node_prev = node_prev.previous;\r\n continue;\r\n }\r\n else{\r\n compare((K) key, comparator, (List<V>) val, node_prev);\r\n node_prev = node_prev.previous;\r\n }\r\n } else if ( comparator.equals(\"==\")){\r\n if (node_prev.getFirstLeafKey().compareTo(key) > 0){\r\n node_prev = node_prev.previous;\r\n continue;\r\n } else {\r\n compare((K) key, comparator, (List<V>) val, node_prev);\r\n node_prev = node_prev.previous;\r\n }\r\n }\r\n\r\n\r\n }\r\n\r\n return val;\r\n }", "public int minXValue (Map <String,ArrayList<Point>> map){\r\n \tint min = 0 , i = 0;\r\n \t\tfor (String key : map.keySet()) {\r\n \t\t\tif ( min < map.get(key).get(i).getX())\r\n \t\t\t\tmin = (int) map.get(key).get(i).getX();\r\n \t\t\ti++;\r\n \t\t}\r\n \treturn min;\t\r\n }", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "@Test\r\n public void lowerHigherDoNotContains() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n check.remove(3);\r\n assertEquals(2, (int) check.lower(3));\r\n assertEquals(4, (int) check.higher(3));\r\n assertEquals(4, (int) check.ceiling(3));\r\n assertEquals(2, (int) check.floor(3));\r\n }", "private static Map<String, Double> extractBestSuppliers (Map<Supplier, Double> supplierScores, int numResults) {\n\t\tMap<Supplier, Double> rankedResults = sortDescending(supplierScores);\n\t\tIterable<Entry<Supplier, Double>> firstEntries =\n\t\t\t\tIterables.limit(rankedResults.entrySet(), numResults);\n\t\t\n\t\t//return the [numResults] best suppliers according to highest scores\n\t\tMap<String, Double> finalSupplierMap = new LinkedHashMap<String, Double>();\t\t\n\t\tfor (Entry<Supplier, Double> e : firstEntries) {\n\t\t\tfinalSupplierMap.put(e.getKey().getId(), e.getValue());\n\t\t}\n\t\t\n\t\treturn finalSupplierMap;\n\n\t}", "public List<Integer> majorityElementHashMap(int[] nums) {\n int n=nums.length;\n List<Integer> result=new ArrayList<Integer>();\n Map<Integer,Integer> map=new HashMap<Integer,Integer>();\n \n for(int i=0;i<n;i++){\n if(map.containsKey(nums[i])){\n map.put(nums[i],map.get(nums[i])+1);\n }\n else{\n map.put(nums[i],1);\n }\n }\n \n for(Map.Entry<Integer,Integer> m:map.entrySet()){\n if(m.getValue()>n/3)result.add(m.getKey());\n }\n return result;\n \n }", "public int getLowerBound ();", "@Test\n public void when70To100ThenA() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(100);\n Student e = new Student(86);\n Predicate<Student> predicate = s -> s.getScore() >= 70 && s.getScore() <= 100;\n List<Student> expected = List.of(b, d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "private List<HashMap<TimeSelector, Long>> updateLeq(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLeq,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> leq = relationToTuples(rLeq);\n for (ArrayList<ComparableExpression> tuple : leq) {\n TimeSelector selector = null;\n Long literalValue = null;\n // only comparisons between a selector and a literal are interesting here\n // selector <= literal => upper(selector) = min(upper(selector), literal)\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literalValue = ((TimeLiteral) tuple.get(1)).getMilliseconds();\n upperBounds.put(selector, Math.min(upperBounds.get(selector), literalValue));\n } else if (tuple.get(1) instanceof TimeSelector &&\n tuple.get(0) instanceof TimeLiteral) {\n // selector >= literal => lower(selector) = max(lower(selector), literal)\n selector = (TimeSelector) tuple.get(1);\n literalValue = ((TimeLiteral) tuple.get(0)).getMilliseconds();\n lowerBounds.put(selector, Math.max(lowerBounds.get(selector), literalValue));\n } else {\n continue;\n }\n\n if (lowerBounds.get(selector) > upperBounds.get(selector)) {\n throw new QueryContradictoryException();\n }\n }\n\n return Arrays.asList(lowerBounds, upperBounds);\n }", "public Set<T> getRanges();", "public static void main(String[] args) {\n\t\t\n\t\tList<Integer> a = new ArrayList<>();\n\t\ta.add(1);\n\t\ta.add(1);\n\t\ta.add(2);\n\t\ta.add(2);\n\t\ta.add(4);\n\t\ta.add(3);\n\t\tList<Integer> b = new ArrayList<>();\n\t\tb.add(2);\n\t\tb.add(3);\n\t\tb.add(3);\n\t\tb.add(4);\n\t\tb.add(4);\n\t\tb.add(5);\n\t\tgetMinScore(6, a, b);\n\t}", "default DiscreteSet2D subLevelSet(double value) {\r\n\t\treturn pointsSatisfying(d -> d <= value);\r\n\t}", "@Override\n public Set<K> keySet() {\n if (isEmpty()) return new HashSet<K>();\n return keys(min(), max());\n }", "IntervalTupleList evaluate(double low, double high);", "static Predicate<Beer> priceRangeQuery(Float priceLowest, Float priceHighest) {\n return b -> b.getPrice() >= priceLowest && b.getPrice() <= priceHighest;\n }", "private static Map<Double, List<Integer>> bucketizeListForTF(List<Integer> input, double bucketRange, int queryId)\r\n\t\t\tthrows ClassNotFoundException, SQLException, IOException {\r\n\t\tMap<Integer, Double> tfMap = new LinkedHashMap<Integer, Double>();\r\n\t\tList<Integer> resultsToIgnore = PersistenceController2.fetchAllResultsToIgnore(queryId, true);\r\n\t\tRankUtils.fillResultTFMap(queryId, tfMap, input, resultsToIgnore);\r\n\t\tboolean isRatioAccepted = RankUtils.foundNotFoundRatioAccepted(queryId, ACCEPTANCE_THRESHOLD);\r\n\t\tMap<Double, List<Integer>> sortedMap = RankUtils.bucketizeAndSortForTF2(isRatioAccepted, input, tfMap,\r\n\t\t\t\tbucketRange, resultsToIgnore);\r\n\t\treturn sortedMap;\r\n\t}", "@Test\n public void when1To49ThenB() {\n Student a = new Student(49);\n Student b = new Student(50);\n Student c = new Student(102);\n Student d = new Student(0);\n Student e = new Student(140);\n Predicate<Student> predicate = s -> s.getScore() > 0 && s.getScore() < 50;\n List<Student> expected = List.of(a, c, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "public abstract Key getLargest();", "private SearchNode findFirstNode(HashSet<SearchNode> set){\n\t\t\tSearchNode min = null;\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (min == null || cur.fScore < min.fScore)\n\t\t\t\t\tmin = cur;\n\t\t\t}\n\t\t\treturn min;\n\t\t}", "public List<Integer> topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map=new HashMap<Integer, Integer>();\n for(int num:nums)\n {\n if(map.containsKey(num))\n map.put(num, map.get(num)+1);\n else\n map.put(num,1);\n }\n\t\t//make min heap\n PriorityQueue<Node> pq=new PriorityQueue<Node>(new Comparator<Node>(){\n public int compare(Node a, Node b)\n {\n return a.count-b.count;\n }\n });\n for(int key:map.keySet())\n {\n Node n=new Node(key, map.get(key));\n pq.offer(n);\n if(pq.size()>k)\n pq.poll();\n }\n List<Integer> list=new ArrayList<Integer>();\n while(!pq.isEmpty())\n {\n list.add(pq.poll().n);\n }\n \n return list;\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> set = new TreeSet<Integer>();\n\t\tset.add(218);\n\t\tset.add(56);\n\t\tset.add(18);\n\t\tset.add(91);\n\t\tset.add(100);\n\t\tset.add(40);\n\t\tset.add(60);\n\t\tset.add(12);\n\n\t\tSystem.out.println(\"Elements of the treeset are: \" + set);\n\t\tSystem.out.println(\"Lowest value Stored in Java TreeSet is : \" + set.first());\n\t\tSystem.out.println(\"Highest value Stored in Java TreeSet is : \" + set.last());\n\n\t}", "int minKey(int[] key, Boolean[] mstSet) {\n // Initialize min value\n int min = Integer.MAX_VALUE, min_index = -1;\n\n for (int v = 0; v < VERTICES; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n\n return min_index;\n }", "private static int minKey(int[] key, Boolean[] mstSet, int V)\r\n {\r\n // Initialize min value\r\n int min = Integer.MAX_VALUE, min_index=-1;\r\n\r\n for (int v = 0; v < V; v++)\r\n if (!mstSet[v] && key[v] < min)\r\n {\r\n min = key[v];\r\n min_index = v;\r\n }\r\n\r\n return min_index;\r\n }", "private List<HashMap<TimeSelector, Long>> updateLt(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLt,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> lt = relationToTuples(rLt);\n for (ArrayList<ComparableExpression> tuple : lt) {\n TimeSelector selector = null;\n Long literalValue = null;\n // only comparisons between a selector and a literal are interesting here\n // selector < literal => upper(selector) = min(upper(selector), literal-1)\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literalValue = ((TimeLiteral) tuple.get(1)).getMilliseconds() - 1;\n upperBounds.put(selector, Math.min(upperBounds.get(selector), literalValue));\n } else if (tuple.get(1) instanceof TimeSelector &&\n tuple.get(0) instanceof TimeLiteral) {\n // selector > literal => lower(selector) = max(lower(selector), literal+1)\n selector = (TimeSelector) tuple.get(1);\n literalValue = ((TimeLiteral) tuple.get(0)).getMilliseconds() + 1;\n lowerBounds.put(selector, Math.max(lowerBounds.get(selector), literalValue));\n } else {\n continue;\n }\n\n if (lowerBounds.get(selector) > upperBounds.get(selector)) {\n throw new QueryContradictoryException();\n }\n }\n\n return Arrays.asList(lowerBounds, upperBounds);\n }", "public static int maximumScore_rev2(int[] nums, int k) {\n int[] mins = new int[nums.length];\n mins[k] = nums[k];\n for (int i = k + 1; i < nums.length; ++i) {\n mins[i] = Math.min(mins[i - 1], nums[i]);\n }\n for (int i = k - 1; i >= 0; --i) {\n mins[i] = Math.min(mins[i + 1], nums[i]);\n }\n int score = mins[k], left = 0, right = nums.length - 1;\n// Then starting from both ends as the first good subarray, move the end corresponds to smaller value of the mins, and update the score accordingly.\n while (left < right) {\n score = Math.max(score, (right - left + 1) * Math.min(mins[left], mins[right]));\n if (right == k || mins[left] < mins[right]) {\n// right has reached k, The only option you have to increase left\n// left have lowest min, so by increasing the left side, the minimum value will be increased.\n ++left;\n } else {\n --right;\n }\n }\n return score;\n }", "public List<Integer> findClosestElements(int[] arr, int k, int x) {\n int low = 0;\n int high = arr.length - 1;\n while (high - low >= k) {\n if (Math.abs(arr[low] - x) > Math.abs(arr[high] - x)) {\n low++;\n } else {\n high--;\n }\n }\n List<Integer> res = new ArrayList<>();\n for (int i = low; i <= high; i++) {\n res.add(arr[i]);\n }\n return res;\n }", "@Test\n public void when50To69ThenB() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(58);\n Student e = new Student(69);\n Predicate<Student> predicate = s -> s.getScore() >= 50 && s.getScore() < 70;\n List<Student> expected = List.of(d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "static int paintersPartition(int a[], int n, int k)\r\n\t {\r\n\t int start = a[0], end = a[0], minOfMax = -1;\r\n\t \r\n\t //this is to initialise start as max of all array elements and end as sum of all array elements\r\n\t for(int i = 1; i < n; i++)\r\n\t {\r\n\t end += a[i];\r\n\t \r\n\t if(a[i] > start)\r\n\t start = a[i];\r\n\t }\r\n\t \r\n\t while(start <= end)\r\n\t {\r\n\t int mid = start + ((end - start) / 2);\r\n\t \r\n\t if(isValid(a, n, k, mid))\r\n\t {\r\n\t minOfMax = mid; //this will hold one of the valid solution but then to get the most optimal one, we need check further on left side of search space\r\n\t end = mid - 1;\r\n\t }\r\n\t else\r\n\t start = mid + 1;\r\n\t }\r\n\t \r\n\t return minOfMax;\r\n\t }", "public static Set<Integer> rndSet(int size, int min, int max){\n\n\t\tif (max < size)\n\t\t{\n\t\t throw new IllegalArgumentException(\"Can't ask for more numbers than are available\");\n\t\t}\n\n\t\tSet<Integer> generated = new LinkedHashSet<Integer>();\n\t\twhile (generated.size() < size)\n\t\t{\n\t\t Integer next = rng.nextInt(max - min + 1) + min;\n\t\t // As we're adding to a set, this will automatically do a containment check\n\t\t generated.add(next);\n\t\t}\n\t\tSystem.out.println(\"line sampled: \"+generated.toString());\n\t\treturn generated;\n\t}", "@Test\n\tpublic void testExtractMin() {\n\t\tHeap heap = new Heap(testArrayList.length);\n\t\tdouble[] expected = new double[] { 5, 7, 24, 36, 15, 48, 32, 47, 93, 27, 38, 70, 53, 33, 93 };\n\t\theap.build(testArrayList);\n\t\tassertEquals(3, heap.extractMin().key);\n\t\tassertArrayEquals(expected, heap.getKeyArray());\n\t\tassertEquals(14, heap.getSize());\n\t}", "@Override\n public CloseableIterator<KVPair> getRange(byte[] minKey, byte[] maxKey, boolean reverse) {\n Preconditions.checkState(!this.closed.get(), \"transaction closed\");\n return new XodusIter(this.store.openCursor(this.tx), minKey, maxKey, reverse);\n }", "public List<ScheduledInterview> getInRange(Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n scheduledInterviewsInRange.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n return scheduledInterviewsInRange;\n }", "public int score() {\n ArrayList<Integer> scores = possibleScores();\n int maxUnder = Integer.MIN_VALUE;\n int minOver = Integer.MAX_VALUE;\n for (int score : scores) {\n if (score > 21 && score < minOver) {\n minOver = score;\n } else if (score <= 21 && score > maxUnder) {\n maxUnder = score;\n }\n }\n return maxUnder == Integer.MIN_VALUE ? minOver : maxUnder;\n }", "List<Source> process(int topK, Set<Source> sources);", "public int[] getMaxSub(int[] array, int k) {\r\n int out[] = new int[k];\r\n int idx = 0;\r\n for (int i = 0; i < array.length; i++) {\r\n // move the pointer back only when both condition happens\r\n // 1. current element is larger than last one in candidate\r\n // 2. there are enough elements in rest of array\r\n while (idx > 0 && array.length - i + idx > k && out[idx-1] < array[i]) {\r\n idx--;\r\n }\r\n if (idx < k)\r\n out[idx++] = array[i];\r\n }\r\n return out;\r\n }", "public static int[] findMinMax(int[] nums){\n int[] minMax = new int[2];\n\n if(nums == null || nums.length == 0) return minMax;\n\n minMax[0] = nums[0];\n minMax[1] = nums[1];\n\n int bound = nums.length;\n\n if(nums.length % 2 == 1){\n bound = bound-1; \n }\n\n int min = 0; int max = 0;\n for(int i =0;i<bound;i =i+2){\n if(nums[i]<nums[i+1]){\n min = nums[i];\n max = nums[i+1]; \n }\n else{\n min = nums[i+1];\n max = nums[i];\n }\n if(min<minMax[0]){\n minMax[0] = min;\n }\n if(max>minMax[1]){\n minMax[1] = max;\n }\n }\n\n if(bound != nums.length){\n if(nums[bound] < minMax[0] ){\n minMax[0] = nums[bound];\n }\n if(nums[bound] > minMax[1] ){\n minMax[1] = nums[bound];\n }\n }\n return minMax;\n }", "@Test\n public void test_kmin_Integer_Collection2() {\n populate_i2();\n int actual = Selector.kmin(i2, 2, new CompareIntegerDescending());\n int expected = 7;\n Assert.assertEquals(\"2nd minimum in descending comparator not found\", expected, actual);\n }", "private Node lowestCostThrough(List<Node> openSet, Map<Node, Double> costThrough){\n Node lowest = openSet.get(0);\n\n for(Node n: openSet){\n if(costThrough.get(n) < costThrough.get(lowest)){\n lowest = n;\n }\n }\n return lowest;\n }", "@Override\n public Map<Long, Map<Long, Number>> getFilteredRatings(Map<Long, Map<Long, Number>> originalSet) {\n Map<Long, Map<Long, Number>> ret = new TreeMap<Long, Map<Long, Number>>();\n\n for (Map.Entry<Long, Map<Long, Number>> userRatings : originalSet.entrySet()) {\n Long idUser = userRatings.getKey();\n Map<Long, Number> userRatingsMap = userRatings.getValue();\n\n ret.put(idUser, new TreeMap<Long, Number>());\n for (Map.Entry<Long, Number> entry : userRatingsMap.entrySet()) {\n Long idItem = entry.getKey();\n Number rating = entry.getValue();\n ret.get(idUser).put(idItem, rating.doubleValue());\n }\n }\n return ret;\n }", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n\t\tint[] ranks = new int[scores.length];\n\t\tint[] aliceRanks = new int[alice.length];\n\n\t\tint endIndex = -1;\n\t\tint currentElement = Integer.MIN_VALUE;\n\n\t\tfor (int i = 0; i < ranks.length; i++) {\n\t\t\tif (currentElement != scores[i]) {\n\t\t\t\tranks[++endIndex] = scores[i];\n\t\t\t\tcurrentElement = scores[i];\n\t\t\t}\n\t\t}\n\n\t\tint aliceEndIndex = -1;\n\t\tfor (int i = 0; i < aliceRanks.length; i++) {\n\t\t\tint currScore = alice[i];\n\t\t\t\n\t\t\tint globalRankApprox = binarySearch(ranks, alice[i], 0, endIndex);\n\t\t\t\n\t\t\tif (currScore >= ranks[globalRankApprox]) {\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1;\n\t\t\t}else{\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1+1;\n\t\t\t}\n\t\t}\n\n\t\treturn aliceRanks;\n\t}", "private ArrayList<Integer> possibleScores() {\n return new ArrayList<Integer>();\n }", "public int [] smallestRange(int [][] nums){\n\t\tint minx = 0, miny = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n\t\t\n\t\tint [] next = new int [nums.length];\n\t\tboolean flag = true;\n\t\t\n\t\tPriorityQueue<Integer> minQ = new PriorityQueue<Integer>((i, j)->nums[i][next[i]]-nums[j][next[j]]);\n\t\tfor(int i = 0 ; i < nums.length; i ++){\n\t\t\tminQ.offer(i);\n\t\t\tmax = Math.max(max, nums[i][0]);\n\t\t}\n\t\t\n\t\tfor(int i = 0 ; i < nums.length && flag; i++){\n\t\t\tfor(int j = 0 ; j < nums[i].length&& flag; j++){\n\t\t\t\tint minI = minQ.poll();\n\t\t\t\tif(miny-minx > max-nums[minI][next[minI]]){\n\t\t\t\t\tminx = nums[minI][next[minI]];\n\t\t\t\t\tminy = max;\n\t\t\t\t}\n\t\t\t\tnext[minI]++;\n\t\t\t\tif(next[minI] == nums[minI].length){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tminQ.offer(minI);\n\t\t\t\tmax = Math.max(max, nums[minI][next[minI]]);\n\t\t\t}\n\t\t}\n\t\treturn new int [] {minx, miny};\n\t}", "public V getLowerBound();", "public Map<K, Set<V>> coreGetAllSupersetsOf(Collection<?> set, int mode) {\n // Skip elements in the collection having an incorrect type, as we are looking for subsets which simply\n // cannot contain the conflicting items\n Set<V> navSet = createNavigableSet(set, true);\n Iterator<V> it = navSet.iterator();\n\n List<SetTrieNode> frontier = new ArrayList<>();\n frontier.add(superRootNode);\n\n // For every value, extend the frontier with the successor nodes for that value.\n V from = null;\n V upto = null;\n\n // Use a flag for null safety so we do not rely on the comparator to treat null as the least element\n boolean isLeastFrom = true;\n while(it.hasNext()) {\n from = upto;\n upto = it.next();\n\n List<SetTrieNode> nextNodes = new ArrayList<>();\n\n // Based on the frontier, we need to keep scanning nodes whose values is in the range [from, upto]\n // until we find the nodes whose values equals upto\n // Only these nodes then constitute the next frontier\n Collection<SetTrieNode> currentScanNodes = frontier;\n do {\n Collection<SetTrieNode> nextScanNodes = new ArrayList<>();\n for(SetTrieNode currentNode : currentScanNodes) {\n if(currentNode.nextValueToChild != null) {\n NavigableMap<V, SetTrieNode> candidateNodes = isLeastFrom\n ? currentNode.nextValueToChild.headMap(upto, true)\n : currentNode.nextValueToChild.subMap(from, true, upto, true);\n\n for(SetTrieNode candidateNode : candidateNodes.values()) {\n if(Objects.equals(candidateNode.value, upto)) {\n nextNodes.add(candidateNode);\n } else {\n nextScanNodes.add(candidateNode);\n }\n }\n }\n }\n currentScanNodes = nextScanNodes;\n } while(!currentScanNodes.isEmpty());\n\n frontier = nextNodes;\n\n isLeastFrom = false;\n }\n\n Map<K, Set<V>> result = new HashMap<>();\n\n // Copy all data entries associated with the frontier to the result\n Stream<SetTrie<K, V>.SetTrieNode> stream = frontier.stream();\n\n if(mode != 0) {\n stream = stream.flatMap(node -> reachableNodesAcyclic(\n node,\n x -> (x.nextValueToChild != null ? x.nextValueToChild.values() : Collections.<SetTrieNode>emptySet()).stream()));\n }\n\n stream.forEach(currentNode -> {\n if(currentNode.keyToSet != null) {\n for(Entry<K, NavigableSet<V>> e : currentNode.keyToSet.entrySet()) {\n result.put(e.getKey(), e.getValue());\n }\n }\n });\n\n return result;\n }", "public static int maxSum(int[] a, int k) \n {\n PriorityQueue<Integer> pq = new PriorityQueue<>(); \n for (int x : a) \n pq.add(x); \n \n // Do k negations by removing a minimum element k times \n while (k-- > 0) \n { \n // Retrieve and remove min element \n int temp = pq.poll(); \n \n // Modify the minimum element and add back \n // to priority queue \n temp *= -1; \n pq.add(temp); \n } \n \n // Compute sum of all elements in priority queue. \n int sum = 0; \n for (int x : pq) \n sum += x; \n return sum; \n }" ]
[ "0.69014233", "0.6511089", "0.61811626", "0.61085457", "0.5905264", "0.57994163", "0.578103", "0.57571334", "0.56174254", "0.54577804", "0.5380154", "0.53644437", "0.53615606", "0.53435373", "0.53081477", "0.530748", "0.5195034", "0.5183865", "0.5150648", "0.50785583", "0.50692654", "0.50453883", "0.49854454", "0.49751258", "0.4972475", "0.4947609", "0.49248508", "0.49125257", "0.48864987", "0.48836082", "0.488188", "0.485383", "0.4848819", "0.48311886", "0.48238015", "0.4792038", "0.4785656", "0.47847146", "0.47793144", "0.47747052", "0.47546455", "0.47498477", "0.47468632", "0.47301924", "0.47292554", "0.4727764", "0.4704256", "0.47027498", "0.4694446", "0.46821114", "0.4676988", "0.4674969", "0.46615615", "0.46585017", "0.46487448", "0.46413288", "0.4630975", "0.46260273", "0.46209434", "0.46134016", "0.4601292", "0.45996377", "0.4595685", "0.45913038", "0.4591298", "0.45888308", "0.45777473", "0.4572583", "0.45615757", "0.45531812", "0.4551833", "0.45497596", "0.45373836", "0.4534126", "0.45312", "0.45212123", "0.45180288", "0.45127988", "0.4511382", "0.44920054", "0.44863984", "0.44851124", "0.447576", "0.4475319", "0.4471953", "0.44713932", "0.44685277", "0.44578415", "0.44573426", "0.44552195", "0.44534838", "0.44478765", "0.44463095", "0.44455177", "0.44404018", "0.4434146", "0.44289306", "0.44254735", "0.44211861", "0.44211614" ]
0.6661439
1
For Object, Return the all the elements in the sorted set at key with a score between min and max (including elements with score equal to min or max).
public <T> Set<T> zrangeHashSetByScore(final String key, final double min, final double max, Class<T> clazz) { Jedis jedis = null; try { jedis = jedisPool.getResource(); Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max); if (tempSet != null && tempSet.size() > 0) { HashSet<T> result = new HashSet<T>(); for (byte[] value : tempSet) { // result.add((T) HessianSerializer.deserialize(value)); result.add(fromJsonByteArray(value, clazz)); } return result; } return null; } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<Tuple> zrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScoreWithScores(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<String> zrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScore(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public <T> List<T> zrangeByScore(final String key, final double min, final double max, Class<T> clazz) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max);\n if (tempSet != null && tempSet.size() > 0) {\n List<T> result = new ArrayList<T>();\n for (byte[] value : tempSet) {\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScoreWithScores(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public List<T> findByKey(String key, Object object, int start, int max);", "public Set<String> zrevrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScore(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "void collect(Object key, float score);", "abstract List<V> rangeSearch(K key, String comparator);", "public Set<Tuple> zrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public abstract Collection<T> getMatchesAboveThreshold(T first,\n double similarityThreshold);", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "Set<Art> getArtByPrice(Double upper, Double lower);", "Collection<T> getMinElements();", "private ArrayList<Integer> binarySearch(ArrayList<Integer> arraylist, int key, int min, int max)\n\t{\n\t\tArrayList<Integer> mids = new ArrayList<Integer>(); \n\t \n\t\twhile (max >= min)\n\t\t{\n\t\t\tint mid = (min + max) / 2;\n\t \n\t\t\tmids.add(mid); \n\t \n\t\t\tif (arraylist.get(mid) < key)\n\t\t\t{\n\t\t\t\tmax = mid - 1;\n\t\t\t}\n\t \n\t\t\telse if (arraylist.get(mid) > key )\n\t\t\t{\n\t\t\t\tmin = mid + 1;\n\t\t\t}\n\t \n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak; \n\t\t\t}\n\t\t}\n\t \n\t\treturn mids; \n\t}", "private int[] findMinMax(ArrayList<ArrayList<Integer>> objects, int featureNo) {\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\t\n\t\t\tfor(int b = 0; b < objects.size(); b++){\n\t\t\t\t\n\t\t\t\tmax = Math.max(objects.get(b).get(featureNo) , max);\n\t\t\t\tmin = Math.min(objects.get(b).get(featureNo) , min);\n\t\t\t}\n\t\t\t\n\t\t\treturn new int[]{max,min};\n\t\t}", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n return getChild(key).rangeSearch(key, comparator);\r\n }", "public static void main(String[] args) {\n\t\tHashSet<Double> hash = new HashSet<>();\n\t\thash.add(1.5);\n\t\thash.add(8.25);\n\t\thash.add(-7.32);\n\t\thash.add(13.3);\n\t\thash.add(-12.45);\n\t\thash.add(48.5);\n\t\thash.add(0.01);\n\t\tdouble max = 0;\n\t\tdouble min = 0;\n\t\t\n\t\tfor (Double double1 : hash) {\n\t\t\tSystem.out.println(double1);\n\t\t\tif (double1 > max) {\n\t\t\t\tmax = double1;\n\t\t\t}\n\t\t\tif (double1 < min) {\n\t\t\t\tmin = double1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Max : \" + max);\n\t\tSystem.out.println(\"Min : \" + min);\n\t\thash.remove(min);\n\t\tfor (Double double1 : hash)\n\t\t\tSystem.out.println(double1);\n\t}", "List<Object> greaterThanOrEqualsTo(Object value);", "int[] maxAndMin() {\n\n // **** ****\n HashMap<Integer, Integer> hm = new HashMap<Integer, Integer>();\n\n // **** traverse parrents array inserting into hashmap: O(n) ****\n for (int val : this.parents) {\n hm.put(val, hm.getOrDefault(val, 0) + 1);\n }\n\n // ???? ????\n // System.out.println(\"maxAndMin <<< hm: \" + hm.toString());\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse hashmap looking for min and max: O(n) ****\n Iterator<Entry<Integer, Integer>> it = hm.entrySet().iterator();\n while (it.hasNext()) {\n Entry<Integer, Integer> e = it.next();\n\n // **** skip this key ****\n if (e.getKey() == 0)\n continue;\n\n // **** update min and max ****\n min = Math.min(e.getValue(), min);\n max = Math.max(e.getValue(), max);\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public static void main(String[] args) {\n SortedSet<CompareObject> objects = new TreeSet<>(new ComparatorTest());\n\n objects.add(new CompareObject(1));\n objects.add(new CompareObject(3));\n objects.add(new CompareObject(5));\n objects.add(new CompareObject(-13));\n objects.add(new CompareObject(12));\n objects.add(new CompareObject(1100));\n objects.add(new CompareObject(1));\n\n for (CompareObject x : objects){\n System.out.println(x);\n }\n\n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "Score getScores(int index);", "Lista<V> valuesInRange(K init, K end);", "public List<OWLObject> search(OWLObject queryObj) {\n\t\tList<OWLObject> hits = new ArrayList<OWLObject>(maxHits);\n\t\tSystem.out.println(\"gettings atts for \"+queryObj+\" -- \"+simEngine.comparisonProperty);\n\t\tSet<OWLObject> atts = simEngine.getAttributeClosureFor(queryObj);\n\t\tSystem.out.println(\"all atts: \"+atts.size());\n\t\tif (atts.size() == 0)\n\t\t\treturn hits;\n\t\t\n\t\t// only compare using significant atts;\n\t\t// we don't do the same test on candidates as these will be removed by the\n\t\t// intersection operation. they will have a small effect on the score, as\n\t\t// we don't divide by the union, but instead the sum of sizes\n\t\tatts = filterNonSignificantAttributes(atts);\n\t\tSystem.out.println(\"filtered atts: \"+atts.size());\n\n\t\t//bloomFilter = new BloomFilter<OWLObject>(0.05, atts.size());\n\t\t//bloomFilter.addAll(atts);\n\t\t\t\t\n\t\tSortedMap<Integer,Set<OWLObject>> scoreCandidateMap = new TreeMap<Integer,Set<OWLObject>>();\n\t\t\n\t\tfor (OWLObject candidate : getCandidates()) {\n\t\t\tif (candidate.equals(queryObj))\n\t\t\t\tcontinue;\n\t\t\tSet<OWLObject> iAtts = simEngine.getAttributeClosureFor(candidate);\n\t\t\t//Set<OWLObject> iAtts = simEngine.getGraph().getAncestors(candidate);\n\n\t\t\tif (iAtts.size() == 0)\n\t\t\t\tcontinue;\n\t\t\tint cAttsSize = iAtts.size();\n\t\n\t\t\tiAtts.retainAll(atts);\n\t\t\t//Collection<OWLObject> iAtts = bloomFilter.intersection(cAtts);\n\t\t\t\n\t\t\t// simJ, one-sided, scaled by 1000\n\t\t\t// negate to ensure largest first\n\t\t\t//Integer score = - (iAtts.size() * 1000 / cAttsSize);\n\t\t\t\n\t\t\t// this biases us towards genes with large numbers of annotations,\n\t\t\t// but it is better at finding the models that share all features\n\t\t\tInteger score = - iAtts.size();\n\t\t\tif (!scoreCandidateMap.containsKey(score)) \n\t\t\t\tscoreCandidateMap.put(score, new HashSet<OWLObject>());\n\t\t\tscoreCandidateMap.get(score).add(candidate);\n\t\t\treporter.report(this,\"query_candidate_overlap_total\",queryObj,candidate,iAtts.size(),cAttsSize);\n\t\t}\n\t\t\n\t\tint n = 0;\n\t\tfor (Set<OWLObject> cs : scoreCandidateMap.values()) {\n\t\t\tn += cs.size();\n\t\t\thits.addAll(cs);\n\t\t}\n\t\t\n\t\tn = 0;\n\t\tfor (OWLObject hit : hits) {\n\t\t\tn++;\n\t\t\treporter.report(this,\"query_hit_rank_threshold\",queryObj,hit,n,maxHits);\n\t\t}\n\t\tif (hits.size() > maxHits)\n\t\t\thits = hits.subList(0, maxHits);\n\t\t\n\n\n\t\treturn hits;\n\t}", "java.util.List<Score>\n getScoresList();", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public HashMap<String, float[]> getAllInRange(float range, float [] obj_pos){\n HashMap<String, float[]> objs = new HashMap<>();\n float [] pos = new float [3];\n String name;\n float distance;\n for (int i = 0; i < field.length; i++){\n //euclidean distance and only add those in range\n //NOTE: could replace with (x<range && y<range && z<range)\n distance = (float)Math.sqrt(((obj_pos[0]-field[i].x)*(obj_pos[0]-field[i].x)) + ((obj_pos[1]-field[i].y)\n *(obj_pos[1]-field[i].y)) + ((obj_pos[2]-field[i].z)*(obj_pos[2]-field[i].z)));\n if (distance <= range) {\n name = \"Asteroid\" + i;\n pos[0] = field[i].x;\n pos[1] = field[i].y;\n pos[2] = field[i].z;\n objs.put(name, pos);\n }\n }\n return objs;\n }", "public abstract double[] getMinimumValues(List<AbstractObjective> objectives, List<? extends Solution<?>> solutions) ;", "@Test\n public void test_kmin_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmin(i5, 2, new CompareIntegerAscending());\n int expected = 3;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tTreeMap<Integer,String> map = new TreeMap<Integer,String>();\r\n\t\t\r\n map.put(2000, \"A\");\r\n map.put(5000, \"E\");\r\n map.put(6000, \"F\");\r\n map.put(7000, \"G\");\r\n map.put(3000, \"C\");\r\n map.put(4000, \"D\");\r\n map.put(2100, \"B\");\r\n System.out.println(map);\r\n System.out.println(\"max\"+map.lastKey());\r\n System.out.println(\"min\"+map.firstKey());\r\n \r\n Set<Integer> setLessThen3k = map.headMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessThen3k);\r\n \r\n Set<Integer> setLessgreater3k = map.tailMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessgreater3k);\r\n \r\n \r\n\r\n\t\tTreeMap<String,Integer> Usermap = new TreeMap<String,Integer>();\r\n\t\t\r\n\t\tUsermap.put( \"A\",2000);\r\n\t\tUsermap.put( \"F\",8000);\r\n\t\tUsermap.put( \"G\",7000);\r\n\t\tUsermap.put( \"C\",3000);\r\n\t\tUsermap.put( \"D\",3000);\r\n\t\tUsermap.put( \"E\",9000);\r\n\t\tUsermap.put( \"B\",8000);\r\n System.out.println(map);\r\n System.out.println(\"max\"+Usermap.lastKey());\r\n System.out.println(\"min\"+Usermap.firstKey());\r\n \r\n\r\n \r\n \r\n\t}", "List<Object> lessThanOrEqualsTo(Object value);", "@Override\n public int compareTo(ObjectScore arg0) {\n if (this.getScore() > arg0.getScore()) {\n return 1;\n } else if (this.getScore() < arg0.getScore()) {\n return -1;\n } else {\n return 0;\n }\n }", "protected abstract List<Double> calcScores();", "int[] minAndMax() {\n\n // **** declare and populate array of Integers with the values of the parents O(n) ****\n Integer[] arr = new Integer[this.parents.length];\n int i = 0;\n for (int val : this.parents)\n arr[i++] = val;\n\n // **** create a list with the values in the parents ****\n List<Integer> al = Arrays.asList(arr);\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse the array arr: O(n^2) ****\n for (int item : arr) {\n if (item != 0) {\n\n // **** get the frequency of item in the list: O(n) ****\n int freq = Collections.frequency(al, item);\n\n // ???? ????\n System.out.println(\"minAndMax <<< item: \" + item + \" freq: \" + freq);\n\n // **** update the min and max values ****\n min = Math.min(min, freq);\n max = Math.max(max, freq);\n }\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "public MatcherScores(SortedMap<Double, SortedSet<String>> scores)\n {\n this.scores = Objects.requireNonNull(scores);\n }", "@Nonnull\r\n\tpublic static <T, Key> Observable<List<T>> minMax(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func1<? super T, ? extends Key> keyExtractor,\r\n\t\t\t@Nonnull final Comparator<? super Key> keyComparator,\r\n\t\t\tfinal boolean max\r\n\t) {\r\n\t\treturn new Observable<List<T>>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super List<T>> observer) {\r\n\t\t\t\treturn source.register(new Observer<T>() {\r\n\t\t\t\t\t/** The current collection for the minimum of Ts. */\r\n\t\t\t\t\tList<T> collect;\r\n\t\t\t\t\t/** The current minimum value. */\r\n\t\t\t\t\tKey maxKey;\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void finish() {\r\n\t\t\t\t\t\tif (collect != null) {\r\n\t\t\t\t\t\t\tobserver.next(collect);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void next(T value) {\r\n\t\t\t\t\t\tKey key = keyExtractor.invoke(value);\r\n\t\t\t\t\t\tif (collect == null) {\r\n\t\t\t\t\t\t\tmaxKey = key;\r\n\t\t\t\t\t\t\tcollect = new ArrayList<T>();\r\n\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tint order = keyComparator.compare(maxKey, key);\r\n\t\t\t\t\t\t\tif (order == 0) {\r\n\t\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\tif (max ^ (order > 0)) {\r\n\t\t\t\t\t\t\t\tmaxKey = key;\r\n\t\t\t\t\t\t\t\tcollect = new ArrayList<T>();\r\n\t\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public double getBestScore();", "@Test\n public void test_kmax_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmax(i5, 5, new CompareIntegerAscending());\n int expected = 1;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "public void set(int min, int max, double score){\r\n\t\tchart[min][max] = score;\r\n\t}", "@Override\n\tpublic int compareTo(Score s) {\n\t\treturn Double.compare(this.score, s.score);\n\t}", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "private static Map<Double, List<Integer>> bucketizeListForTF(List<Integer> input, double bucketRange, int queryId)\r\n\t\t\tthrows ClassNotFoundException, SQLException, IOException {\r\n\t\tMap<Integer, Double> tfMap = new LinkedHashMap<Integer, Double>();\r\n\t\tList<Integer> resultsToIgnore = PersistenceController2.fetchAllResultsToIgnore(queryId, true);\r\n\t\tRankUtils.fillResultTFMap(queryId, tfMap, input, resultsToIgnore);\r\n\t\tboolean isRatioAccepted = RankUtils.foundNotFoundRatioAccepted(queryId, ACCEPTANCE_THRESHOLD);\r\n\t\tMap<Double, List<Integer>> sortedMap = RankUtils.bucketizeAndSortForTF2(isRatioAccepted, input, tfMap,\r\n\t\t\t\tbucketRange, resultsToIgnore);\r\n\t\treturn sortedMap;\r\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "public static ArrayList<String> getTopTen() throws Exception{\n\t\n\tint start, end;\n\tFile xmlFile = getFile();\n\tif(!xmlFile.exists()){\n\t\tJOptionPane.showMessageDialog(null, \"Record Does nor exist\");\n\t}\n\tScore root = new Score();\n\tMap<String, Integer> standings = new TreeMap<String, Integer>();\n root = readObjectAsXmlFrom(new FileReader(xmlFile.getAbsolutePath()), root.getClass());\n standings = root.standings;\n Map<String, Integer> sortedStandings = sortByValue(standings);\n Set<Entry<String, Integer>> keys = sortedStandings.entrySet();\n Object[] sortedArr = keys.toArray();\n end = sortedArr.length;\n if(end<=10) start = 0;\n else start = end -10;\n ArrayList<String> result = new ArrayList<String>();\n for(int x = start; x<end;x++){\n \tresult.add(sortedArr[x].toString());\n }\n\treturn result;\n }", "@Test\n public void when70To100ThenA() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(100);\n Student e = new Student(86);\n Predicate<Student> predicate = s -> s.getScore() >= 70 && s.getScore() <= 100;\n List<Student> expected = List.of(b, d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> scores = new TreeSet<Integer>();\n\t\tscores.add(new Integer(87));\n\t\tscores.add(new Integer(98));\n\t\tscores.add(new Integer(75));\n\t\tscores.add(new Integer(95));\n\t\tscores.add(new Integer(80));\n\t\t\n\t\tInteger score =null;\n\t\t\n\t\tscore = scores.first();\n\t\tSystem.out.println(\"가장 낮은 점수 : \" + score);\n\t\t\n\t\tscore = scores.last();\n\t\tSystem.out.println(\"가장 높은 점수 : \" + score);\n\t\t\n\t\tscore = scores.lower(new Integer(95));\n\t\tSystem.out.println(\"95점 아래의 점수 : \" + score);\n\t\t\n\t\tscore = scores.higher(new Integer(95));\n\t\tSystem.out.println(\"95점 위의 점수 : \" + score);\n\t\t\n\t\tscore = scores.ceiling(new Integer(95));\n\t\tSystem.out.println(\"95점 이상의 점수 : \" + score);\n\t\t\n\t\tscore = scores.floor(new Integer(95));\n\t\tSystem.out.println(\"95점 이하의 점수 : \" + score);\n\t\t\n\t\twhile(!scores.isEmpty()) {\n\t\t\tSystem.out.println(scores.pollFirst());\n\t\t}\n\t}", "private TopDocs combine(TopDocs in, HashMap<Integer, Float> resorted, QueryRescoreContext ctx) {\n for(int i=0;i<in.scoreDocs.length;i++) {\n if (resorted.size() != 0 && resorted.containsKey(in.scoreDocs[i].doc))\n {\n float score = (!ctx.normalize) ? resorted.get(in.scoreDocs[i].doc) :\n ((resorted.get(in.scoreDocs[i].doc) - bottomScore) / getDenominator());\n in.scoreDocs[i].score = ctx.scoreMode.combine(in.scoreDocs[i].score * ctx.queryWeight(), score * ctx.rescoreQueryWeight());\n }\n else\n {\n in.scoreDocs[i].score *= ctx.queryWeight();\n }\n }\n\n Arrays.sort(in.scoreDocs, SCORE_DOC_COMPARATOR);\n\n return in;\n }", "private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }", "@Test\n public void when1To49ThenB() {\n Student a = new Student(49);\n Student b = new Student(50);\n Student c = new Student(102);\n Student d = new Student(0);\n Student e = new Student(140);\n Predicate<Student> predicate = s -> s.getScore() > 0 && s.getScore() < 50;\n List<Student> expected = List.of(a, c, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "@Override\n public Map<Long, Map<Long, Number>> getFilteredRatings(Map<Long, Map<Long, Number>> originalSet) {\n Map<Long, Map<Long, Number>> ret = new TreeMap<Long, Map<Long, Number>>();\n\n for (Map.Entry<Long, Map<Long, Number>> userRatings : originalSet.entrySet()) {\n Long idUser = userRatings.getKey();\n Map<Long, Number> userRatingsMap = userRatings.getValue();\n\n ret.put(idUser, new TreeMap<Long, Number>());\n for (Map.Entry<Long, Number> entry : userRatingsMap.entrySet()) {\n Long idItem = entry.getKey();\n Number rating = entry.getValue();\n ret.get(idUser).put(idItem, rating.doubleValue());\n }\n }\n return ret;\n }", "@Override\r\n public List<V> rangeSearch(K key, String comparator) {\r\n if (!comparator.contentEquals(\">=\") &&\r\n !comparator.contentEquals(\"==\") &&\r\n !comparator.contentEquals(\"<=\"))\r\n return new ArrayList<V>();\r\n\r\n // if key is null, it returns a empty list\r\n if ( key == null){\r\n return new ArrayList<V>();\r\n }\r\n return root.rangeSearch(key, comparator);\r\n }", "Lista<K> keysInRange(K init, K end);", "public MaxAndMin(){\n this.list=new ListOfData().getData();\n }", "public V getLowerBound();", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "public static Student[] sortScore( Student s[]){\n\t\tStudent temp ;\r\n\t\tfor(int i=0; i<s.length; i++){\r\n\t\t\tfor(int j=i+1; j<s.length;j++)\r\n\t\t\t\tif(s[i].score > s[j].score){\r\n\t\t\t\t\ttemp = s[i];\r\n\t\t\t\t\ts[i] = s[j];\r\n\t\t\t\t\ts[j]= temp;\r\n\t\t\t\t} \t\t\t\r\n\t\t\t}\r\n\t\t\r\n\r\n\r\n\r\n\t\tSystem.out.println(\"Students with score<50 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score<50){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Students with score>=50 and <65 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=50 && s[i].score<65){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Students with score>=65 and <80 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=65 && s[i].score<80){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Students with score>=80 and <100 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=80 && s[i].score<=100){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn s;\r\n\r\n\r\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "public int minXValue (Map <String,ArrayList<Point>> map){\r\n \tint min = 0 , i = 0;\r\n \t\tfor (String key : map.keySet()) {\r\n \t\t\tif ( min < map.get(key).get(i).getX())\r\n \t\t\t\tmin = (int) map.get(key).get(i).getX();\r\n \t\t\ti++;\r\n \t\t}\r\n \treturn min;\t\r\n }", "private AttributeDetails minDequeIterator(AttributeDetails valObject) {\n if (valueRemoved != null) {\n for (Iterator<AttributeDetails> iterator = minDeque.descendingIterator(); iterator.hasNext();) {\n AttributeDetails possibleMinValue = iterator.next();\n if (possibleMinValue.getValue() > valObject.getValue()\n || possibleMinValue.getValue() >= valueRemoved.getValue()) {\n if (possibleMinValue.getValue() > valObject.getValue()) {\n iterator.remove();\n } else if (valueRemoved.equals(possibleMinValue)) {\n // If removed value is in minDeque, it must be removed\n iterator.remove();\n }\n } else {\n break;\n }\n }\n } else {\n for (Iterator<AttributeDetails> iterator = minDeque.descendingIterator(); iterator.hasNext();) {\n if (iterator.next().getValue() > valObject.getValue()) {\n iterator.remove();\n } else {\n break;\n }\n }\n }\n valObject.setMinThreshold();\n minDeque.addLast(valObject);\n return minDeque.peek();\n }", "@Test\n public void test() {\n List<Integer> list = Arrays.asList(48, 12, 24, 7, 8, -5, 24, 391, 24, 56, 2, 6, 8, 41);\n Heap minHeap = new Heap(Heap.MIN_HEAP, list);\n List<Integer> expected = Arrays.asList(-5, 2, 6, 7, 8, 8, 24, 391, 24, 56, 12, 24, 48, 41);\n Assert.assertArrayEquals(expected.toArray(), minHeap.heap.toArray());\n Heap maxHeap = new Heap(Heap.MAX_HEAP, list);\n Assert.assertArrayEquals(expected.toArray(), maxHeap.heap.toArray());\n }", "private List<Object> prevBestSubset(List<Integer> cornerSubset,\n\t\t\tStroke stroke, IObjectiveFunction objFunction) {\n\n\t\tList<Double> errorValues = new ArrayList<Double>();\n\t\tCollections.sort(cornerSubset);\n\n\t\tfor (int i = 0; i < cornerSubset.size(); i++) {\n\t\t\tInteger currCorner = cornerSubset.get(i);\n\n\t\t\tif (currCorner != 0 && currCorner != stroke.getNumPoints() - 1) {\n\n\t\t\t\tList<Integer> tempSubset = new ArrayList<Integer>(cornerSubset);\n\t\t\t\ttempSubset.remove(currCorner);\n\n\t\t\t\tdouble value = objFunction.solve(tempSubset, stroke);\n\t\t\t\terrorValues.add(value);\n\t\t\t} else {\n\t\t\t\terrorValues.add(Double.MAX_VALUE);\n\t\t\t}\n\t\t}\n\n\t\tdouble minError = Collections.min(errorValues);\n\t\tint index = errorValues.indexOf(minError);\n\t\tint worstCorner = cornerSubset.get(index);\n\n\t\tList<Integer> bestSubset = new ArrayList<Integer>(cornerSubset);\n\t\tbestSubset.remove(new Integer(worstCorner));\n\n\t\tList<Object> returnList = new ArrayList<Object>();\n\t\treturnList.add(bestSubset);\n\t\treturnList.add(minError);\n\n\t\treturn returnList;\n\t}", "@Test\n public void when50To69ThenB() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(58);\n Student e = new Student(69);\n Predicate<Student> predicate = s -> s.getScore() >= 50 && s.getScore() < 70;\n List<Student> expected = List.of(d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "public SortedSubset(RangeSet<T> constitutingSuperset, T lowerbound, T upperbound)\n\t{\n\t\tinit(constitutingSuperset, lowerbound, upperbound, true, false);\n\t}", "List<Item> findByPriceBetween(double minPrice, double maxPrice);", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "@Test\n public void test_kmin_Integer_Collection4() {\n List<Integer> i4 = new ArrayList<Integer>();\n i4.add(2);\n i4.add(2);\n int actual = Selector.kmin(i4, 1, new CompareIntegerAscending());\n int expected = 2;\n Assert.assertEquals(\"Failed in duplicate, size 2 list\", expected, actual);\n }", "public List<ScheduledInterview> getInRange(Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n scheduledInterviewsInRange.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n return scheduledInterviewsInRange;\n }", "public ArrayList<Integer> pointsInRange( int min, int max )\n {\n ArrayList<Integer> points = new ArrayList<Integer>();\n _root.findPoints( min, max, points );\n return points;\n }", "public static void sort(Object[] object) {\n // Set the variables for the current min, minIndex, and compare value\n Object currentMin;\n int currentMinIndex;\n int compareInt;\n\n // Begin loop to work through the list.\n for (int i = 0; i < object.length; i++) {\n // Find the minimum in the list.\n currentMin = object[i];\n currentMinIndex = i;\n for (int k = i + 1; k < object.length; k++) {\n compareInt = ((Comparable) currentMin).compareTo(object[k]);\n if(compareInt > 0) {\n currentMin = object[k];\n currentMinIndex = k;\n }\n }\n\n // Swap list[i] with list[currentMaxIndex] if needed.\n if (currentMinIndex != i) {\n object[currentMinIndex] = object[i];\n object[i] = currentMin;\n }\n }\n }", "default DiscreteSet2D subLevelSet(double value) {\r\n\t\treturn pointsSatisfying(d -> d <= value);\r\n\t}", "private static Map<String, Double> extractBestSuppliers (Map<Supplier, Double> supplierScores, int numResults) {\n\t\tMap<Supplier, Double> rankedResults = sortDescending(supplierScores);\n\t\tIterable<Entry<Supplier, Double>> firstEntries =\n\t\t\t\tIterables.limit(rankedResults.entrySet(), numResults);\n\t\t\n\t\t//return the [numResults] best suppliers according to highest scores\n\t\tMap<String, Double> finalSupplierMap = new LinkedHashMap<String, Double>();\t\t\n\t\tfor (Entry<Supplier, Double> e : firstEntries) {\n\t\t\tfinalSupplierMap.put(e.getKey().getId(), e.getValue());\n\t\t}\n\t\t\n\t\treturn finalSupplierMap;\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tList<Integer> a = new ArrayList<>();\n\t\ta.add(1);\n\t\ta.add(1);\n\t\ta.add(2);\n\t\ta.add(2);\n\t\ta.add(4);\n\t\ta.add(3);\n\t\tList<Integer> b = new ArrayList<>();\n\t\tb.add(2);\n\t\tb.add(3);\n\t\tb.add(3);\n\t\tb.add(4);\n\t\tb.add(4);\n\t\tb.add(5);\n\t\tgetMinScore(6, a, b);\n\t}", "public Set<T> getRanges();", "static <K,V extends Comparable<? super V>> SortedSet<Map.Entry<K,V>> entriesSortedByValues(Map<K,V> map) {\n\t\t SortedSet<Map.Entry<K,V>> sortedEntries = new TreeSet<Map.Entry<K,V>>(\n\t\t new Comparator<Map.Entry<K,V>>() {\n\t\t @Override public int compare(Map.Entry<K,V> e1, Map.Entry<K,V> e2) {\n\t\t int res = e1.getValue().compareTo(e2.getValue());\n\t\t return res != 0 ? res : 1;\n\t\t }\n\t\t }\n\t\t );\n\t\t sortedEntries.addAll(map.entrySet());\n\t\t return sortedEntries;\n\t\t}", "List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);", "public K min();", "@Override\n public List<Score> getAll() {\n Session session = FACTORY.openSession();\n\n try {\n List<Score> scores = session.createQuery(\"FROM Score s ORDER BY s.value DESC\", Score.class)\n .setMaxResults(MAX_RESULTS)\n .list();\n\n session.close();\n\n return scores;\n } catch (ClassCastException e) {\n LOG.error(\"Error happened during casting query results.\");\n return ImmutableList.of();\n }\n }", "public abstract double[] getLowerBound();", "private static int partition(Comparable[] data, int min, int max) {\n\n\t\t// Use first element as the partition value\n\n\t\tComparable partitionValue = data[min];\n\n\t\tint left = min;\n\t\tint right = max;\n\n\t\twhile (left < right) {\n\t\t\t// Search for an element that is > the partition element\n\t\t\twhile (data[left].compareTo(partitionValue) <= 0 && left < right)\n\t\t\t\tleft++;\n\t\t\t// Search for an element that is < the partitionelement\n\t\t\twhile (data[right].compareTo(partitionValue) > 0)\n\t\t\t\tright--;\n\t\t\tif (left < right)\n\t\t\t\tswap(data, left, right);\n\t\t}\n\t\t// Move the partition element to its final position\n\t\tswap(data, min, right);\n\n\t\treturn right;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint k = 3;\n\t\t\n\t\tint max = Integer.MIN_VALUE, min = Integer.MAX_VALUE;\n\t\t\n\t\tint arr[] = new int[k];\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tif(max < arr[i])\n\t\t\t\tmax = arr[i];\n\t\t\tif(min > arr[i])\n\t\t\t\tmin = arr[i];\n\t\t}\n\t\t\n\t\t\n\t\tint [][] arr1 = {{3,8},{10,11},{1,3},{2,4}};\n\t\t\n\t\tSystem.out.println(selection(arr1));\n\t}", "@Test\r\n public void lowerHigherDoNotContains() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n check.remove(3);\r\n assertEquals(2, (int) check.lower(3));\r\n assertEquals(4, (int) check.higher(3));\r\n assertEquals(4, (int) check.ceiling(3));\r\n assertEquals(2, (int) check.floor(3));\r\n }", "Collection<KeywordHit> getOneHitPerObject(QueryResults queryResults) {\n HashMap<Long, KeywordHit> hits = new HashMap<>();\n for (Keyword keyWord : queryResults.getKeywords()) {\n for (KeywordHit hit : queryResults.getResults(keyWord)) {\n // add hit with lowest SolrObjectID-Chunk-ID combination.\n if (!hits.containsKey(hit.getSolrObjectId())) {\n hits.put(hit.getSolrObjectId(), hit);\n } else {\n if (hit.getChunkId() < hits.get(hit.getSolrObjectId()).getChunkId()) {\n hits.put(hit.getSolrObjectId(), hit);\n }\n }\n }\n }\n return hits.values();\n }", "static int[] jobOffers(int[] scores, int[] lowerLimits, int[] upperLimits) {\n int[] res = new int[lowerLimits.length];\n\n TreeMap<Integer, Integer> map = new TreeMap<>();\n\n for (int s : scores)\n map.put(s, map.getOrDefault(s, 0) + 1);\n\n for (int i = 0; i < lowerLimits.length; i++) {\n NavigableMap<Integer, Integer> submap = map.subMap(lowerLimits[i], true, upperLimits[i], true);\n int count = 0;\n for (Integer j : submap.values()) count += j;\n res[i] = count;\n }\n\n // If this solution works, please give a star to my repo (:\n return res;\n }", "private List<HashMap<TimeSelector, Long>> updateLeq(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLeq,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> leq = relationToTuples(rLeq);\n for (ArrayList<ComparableExpression> tuple : leq) {\n TimeSelector selector = null;\n Long literalValue = null;\n // only comparisons between a selector and a literal are interesting here\n // selector <= literal => upper(selector) = min(upper(selector), literal)\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literalValue = ((TimeLiteral) tuple.get(1)).getMilliseconds();\n upperBounds.put(selector, Math.min(upperBounds.get(selector), literalValue));\n } else if (tuple.get(1) instanceof TimeSelector &&\n tuple.get(0) instanceof TimeLiteral) {\n // selector >= literal => lower(selector) = max(lower(selector), literal)\n selector = (TimeSelector) tuple.get(1);\n literalValue = ((TimeLiteral) tuple.get(0)).getMilliseconds();\n lowerBounds.put(selector, Math.max(lowerBounds.get(selector), literalValue));\n } else {\n continue;\n }\n\n if (lowerBounds.get(selector) > upperBounds.get(selector)) {\n throw new QueryContradictoryException();\n }\n }\n\n return Arrays.asList(lowerBounds, upperBounds);\n }", "@Test\n\tpublic void testExtractMin() {\n\t\tHeap heap = new Heap(testArrayList.length);\n\t\tdouble[] expected = new double[] { 5, 7, 24, 36, 15, 48, 32, 47, 93, 27, 38, 70, 53, 33, 93 };\n\t\theap.build(testArrayList);\n\t\tassertEquals(3, heap.extractMin().key);\n\t\tassertArrayEquals(expected, heap.getKeyArray());\n\t\tassertEquals(14, heap.getSize());\n\t}", "@Test\n public void test_kmin_Integer_Collection2() {\n populate_i2();\n int actual = Selector.kmin(i2, 2, new CompareIntegerDescending());\n int expected = 7;\n Assert.assertEquals(\"2nd minimum in descending comparator not found\", expected, actual);\n }", "public abstract Key getLargest();", "public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}", "public interface GeneralRange<T extends Comparable<T>> {\n\t/**\n\t * Return whether a given comparable element is in a bound according to some field in that object.\n\t * @param a The value to be compared to the range.\n\t * @return Integer < 0 if it is less than the range, = 0 if it is in the range and > 0 if it is bigger than the range.\n\t */\n\tpublic int isInBounds(T a);\n}", "public Iterable<Point2D> range(RectHV rect) {\n\n if (rect == null)\n throw new IllegalArgumentException(\"Got null object in range()\");\n \n Queue<Point2D> pointsInside = new Queue<>();\n \n for (Point2D p : point2DSET) {\n \n double x = p.x();\n double y = p.y();\n if (x >= rect.xmin() && x <= rect.xmax() &&\n y >= rect.ymin() && y <= rect.ymax())\n pointsInside.enqueue(p);\n \n }\n \n return pointsInside;\n }", "@Test\n public void test_kmin_Integer_Collection1() {\n populate_i1();\n int actual = Selector.kmin(i1, 1, new CompareIntegerAscending());\n int expected = 2;\n Assert.assertEquals(\"1st minimum not found\", expected, actual);\n }", "public static void checkMinMax() {\r\n\t\tSystem.out.println(\"Beginning min/max test (should be -6 and 17)\");\r\n\t\tSortedIntList list = new SortedIntList();\r\n\t\tlist.add(5);\r\n\t\tlist.add(-6);\r\n\t\tlist.add(17);\r\n\t\tlist.add(2);\r\n\t\tSystem.out.println(\" min = \" + list.min());\r\n\t\tSystem.out.println(\" max = \" + list.max());\r\n\t\tSystem.out.println();\r\n\t}", "public interface MinTracker<T> {\n /** Compares an element x of a set to the current list of minimal elements\n * and modifies the set of minimal elements accordingly.\n * \n * @param x */\n void digest(T x);\n\n /** Retrieves the current set of minimal elements.\n * \n * @return Collection<T> of minimal elements */\n Collection<T> getMinElements();\n}", "private Node lowestCostThrough(List<Node> openSet, Map<Node, Double> costThrough){\n Node lowest = openSet.get(0);\n\n for(Node n: openSet){\n if(costThrough.get(n) < costThrough.get(lowest)){\n lowest = n;\n }\n }\n return lowest;\n }", "List<Athlete> getAllOrderByScore(OrderBy orderBy);", "@Override\r\n\tpublic int compareTo(ListElements arg0) {\n\t\tint compareQuantity = ((ListElements) arg0).getScore(); \r\n\t\t \r\n\t\t//ascending order\r\n\t\treturn this.score - compareQuantity;\r\n\t}", "@Nonnull\r\n\tpublic static <T, Key extends Comparable<? super Key>> Observable<List<T>> minBy(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func1<? super T, ? extends Key> keyExtractor) {\r\n\t\treturn minMax(source, keyExtractor, Functions.<Key>comparator(), false);\r\n\t}" ]
[ "0.6443576", "0.6240605", "0.61476696", "0.609402", "0.58068854", "0.57886434", "0.55041075", "0.53332967", "0.529534", "0.5220627", "0.5208585", "0.5047222", "0.5033712", "0.50252974", "0.5012871", "0.5010068", "0.49976718", "0.49375707", "0.49208152", "0.49138397", "0.4909362", "0.48578578", "0.48231933", "0.48208895", "0.4762705", "0.47620514", "0.4747512", "0.4706744", "0.4698908", "0.46879575", "0.4672957", "0.466714", "0.4663382", "0.46508464", "0.46485385", "0.4636701", "0.4606603", "0.4602878", "0.46025485", "0.45993155", "0.4595992", "0.45695218", "0.4566547", "0.4563358", "0.4541195", "0.45240515", "0.4521896", "0.4489436", "0.4488496", "0.4488439", "0.44774544", "0.44415888", "0.44328618", "0.44326484", "0.44256762", "0.44122106", "0.4408486", "0.44071642", "0.4398324", "0.43968114", "0.4383554", "0.43799463", "0.43747732", "0.43677983", "0.43645367", "0.43624946", "0.43536505", "0.4350283", "0.4346959", "0.43434083", "0.434057", "0.43373322", "0.4333435", "0.43234476", "0.43224406", "0.4318248", "0.43175825", "0.4317576", "0.4310632", "0.4307587", "0.43069294", "0.43061155", "0.4302588", "0.43018663", "0.4301057", "0.43001255", "0.42961568", "0.42904395", "0.42902762", "0.42868397", "0.4281237", "0.4280362", "0.4278295", "0.42770177", "0.42652687", "0.42580998", "0.42573383", "0.4251373", "0.42504406", "0.4249962" ]
0.6029001
4
Return the all the elements in the sorted set at key with a score between min and max (including elements with score equal to min or max).
public Set<String> zrevrangeByScore(final String key, final double min, final double max) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.zrevrangeByScore(key, max, min); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<Tuple> zrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScoreWithScores(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<String> zrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScore(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScoreWithScores(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public <T> Set<T> zrangeHashSetByScore(final String key, final double min, final double max, Class<T> clazz) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max);\n if (tempSet != null && tempSet.size() > 0) {\n HashSet<T> result = new HashSet<T>();\n for (byte[] value : tempSet) {\n // result.add((T) HessianSerializer.deserialize(value));\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public <T> List<T> zrangeByScore(final String key, final double min, final double max, Class<T> clazz) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max);\n if (tempSet != null && tempSet.size() > 0) {\n List<T> result = new ArrayList<T>();\n for (byte[] value : tempSet) {\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<Tuple> zrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "private ArrayList<Integer> binarySearch(ArrayList<Integer> arraylist, int key, int min, int max)\n\t{\n\t\tArrayList<Integer> mids = new ArrayList<Integer>(); \n\t \n\t\twhile (max >= min)\n\t\t{\n\t\t\tint mid = (min + max) / 2;\n\t \n\t\t\tmids.add(mid); \n\t \n\t\t\tif (arraylist.get(mid) < key)\n\t\t\t{\n\t\t\t\tmax = mid - 1;\n\t\t\t}\n\t \n\t\t\telse if (arraylist.get(mid) > key )\n\t\t\t{\n\t\t\t\tmin = mid + 1;\n\t\t\t}\n\t \n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak; \n\t\t\t}\n\t\t}\n\t \n\t\treturn mids; \n\t}", "abstract List<V> rangeSearch(K key, String comparator);", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n return getChild(key).rangeSearch(key, comparator);\r\n }", "void collect(Object key, float score);", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "int[] maxAndMin() {\n\n // **** ****\n HashMap<Integer, Integer> hm = new HashMap<Integer, Integer>();\n\n // **** traverse parrents array inserting into hashmap: O(n) ****\n for (int val : this.parents) {\n hm.put(val, hm.getOrDefault(val, 0) + 1);\n }\n\n // ???? ????\n // System.out.println(\"maxAndMin <<< hm: \" + hm.toString());\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse hashmap looking for min and max: O(n) ****\n Iterator<Entry<Integer, Integer>> it = hm.entrySet().iterator();\n while (it.hasNext()) {\n Entry<Integer, Integer> e = it.next();\n\n // **** skip this key ****\n if (e.getKey() == 0)\n continue;\n\n // **** update min and max ****\n min = Math.min(e.getValue(), min);\n max = Math.max(e.getValue(), max);\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "Set<Art> getArtByPrice(Double upper, Double lower);", "Collection<T> getMinElements();", "public static void main(String[] args) {\n\t\tHashSet<Double> hash = new HashSet<>();\n\t\thash.add(1.5);\n\t\thash.add(8.25);\n\t\thash.add(-7.32);\n\t\thash.add(13.3);\n\t\thash.add(-12.45);\n\t\thash.add(48.5);\n\t\thash.add(0.01);\n\t\tdouble max = 0;\n\t\tdouble min = 0;\n\t\t\n\t\tfor (Double double1 : hash) {\n\t\t\tSystem.out.println(double1);\n\t\t\tif (double1 > max) {\n\t\t\t\tmax = double1;\n\t\t\t}\n\t\t\tif (double1 < min) {\n\t\t\t\tmin = double1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Max : \" + max);\n\t\tSystem.out.println(\"Min : \" + min);\n\t\thash.remove(min);\n\t\tfor (Double double1 : hash)\n\t\t\tSystem.out.println(double1);\n\t}", "Lista<V> valuesInRange(K init, K end);", "public abstract Collection<T> getMatchesAboveThreshold(T first,\n double similarityThreshold);", "public static void main(String[] args) {\n\t\t\r\n\t\tTreeMap<Integer,String> map = new TreeMap<Integer,String>();\r\n\t\t\r\n map.put(2000, \"A\");\r\n map.put(5000, \"E\");\r\n map.put(6000, \"F\");\r\n map.put(7000, \"G\");\r\n map.put(3000, \"C\");\r\n map.put(4000, \"D\");\r\n map.put(2100, \"B\");\r\n System.out.println(map);\r\n System.out.println(\"max\"+map.lastKey());\r\n System.out.println(\"min\"+map.firstKey());\r\n \r\n Set<Integer> setLessThen3k = map.headMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessThen3k);\r\n \r\n Set<Integer> setLessgreater3k = map.tailMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessgreater3k);\r\n \r\n \r\n\r\n\t\tTreeMap<String,Integer> Usermap = new TreeMap<String,Integer>();\r\n\t\t\r\n\t\tUsermap.put( \"A\",2000);\r\n\t\tUsermap.put( \"F\",8000);\r\n\t\tUsermap.put( \"G\",7000);\r\n\t\tUsermap.put( \"C\",3000);\r\n\t\tUsermap.put( \"D\",3000);\r\n\t\tUsermap.put( \"E\",9000);\r\n\t\tUsermap.put( \"B\",8000);\r\n System.out.println(map);\r\n System.out.println(\"max\"+Usermap.lastKey());\r\n System.out.println(\"min\"+Usermap.firstKey());\r\n \r\n\r\n \r\n \r\n\t}", "public void queryRange(int lowKey, int highKey, IntPushOperator results) {\n\t\tIntBTreeNode next = entries.get(lowKey);\n\t\tnext.queryRange(lowKey, highKey, results);\n\t}", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "@Override\r\n public List<V> rangeSearch(K key, String comparator) {\r\n if (!comparator.contentEquals(\">=\") &&\r\n !comparator.contentEquals(\"==\") &&\r\n !comparator.contentEquals(\"<=\"))\r\n return new ArrayList<V>();\r\n\r\n // if key is null, it returns a empty list\r\n if ( key == null){\r\n return new ArrayList<V>();\r\n }\r\n return root.rangeSearch(key, comparator);\r\n }", "static int[] jobOffers(int[] scores, int[] lowerLimits, int[] upperLimits) {\n int[] res = new int[lowerLimits.length];\n\n TreeMap<Integer, Integer> map = new TreeMap<>();\n\n for (int s : scores)\n map.put(s, map.getOrDefault(s, 0) + 1);\n\n for (int i = 0; i < lowerLimits.length; i++) {\n NavigableMap<Integer, Integer> submap = map.subMap(lowerLimits[i], true, upperLimits[i], true);\n int count = 0;\n for (Integer j : submap.values()) count += j;\n res[i] = count;\n }\n\n // If this solution works, please give a star to my repo (:\n return res;\n }", "Lista<K> keysInRange(K init, K end);", "public void set(int min, int max, double score){\r\n\t\tchart[min][max] = score;\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint k = 3;\n\t\t\n\t\tint max = Integer.MIN_VALUE, min = Integer.MAX_VALUE;\n\t\t\n\t\tint arr[] = new int[k];\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tif(max < arr[i])\n\t\t\t\tmax = arr[i];\n\t\t\tif(min > arr[i])\n\t\t\t\tmin = arr[i];\n\t\t}\n\t\t\n\t\t\n\t\tint [][] arr1 = {{3,8},{10,11},{1,3},{2,4}};\n\t\t\n\t\tSystem.out.println(selection(arr1));\n\t}", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "private static void findKClosestNumbers(int[] arr, int key, int k) {\n\n\t\tPriorityQueue<Integer> pq;\n\t\tint max = findMaxInArr(arr);\n\t\tint min = findMinInArr(arr);\n\n\t\tint maxDiff = Math.abs(key - max);\n\t\tint minDiff = Math.abs(key - min);\n\n\t\tif (maxDiff <= minDiff) {\n\t\t\tpq = new PriorityQueue<>(Collections.reverseOrder());\n\t\t} else {\n\t\t\tpq = new PriorityQueue<>();\n\t\t}\n\n\t\tfor (int e : arr) {\n\t\t\tpq.add(e);\n\t\t}\n\n\t\tint c = 0;\n\n\t\twhile (c < k) {\n\t\t\tSystem.out.println(pq.remove());\n\t\t\tc++;\n\t\t}\n\n\t}", "private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> scores = new TreeSet<Integer>();\n\t\tscores.add(new Integer(87));\n\t\tscores.add(new Integer(98));\n\t\tscores.add(new Integer(75));\n\t\tscores.add(new Integer(95));\n\t\tscores.add(new Integer(80));\n\t\t\n\t\tInteger score =null;\n\t\t\n\t\tscore = scores.first();\n\t\tSystem.out.println(\"가장 낮은 점수 : \" + score);\n\t\t\n\t\tscore = scores.last();\n\t\tSystem.out.println(\"가장 높은 점수 : \" + score);\n\t\t\n\t\tscore = scores.lower(new Integer(95));\n\t\tSystem.out.println(\"95점 아래의 점수 : \" + score);\n\t\t\n\t\tscore = scores.higher(new Integer(95));\n\t\tSystem.out.println(\"95점 위의 점수 : \" + score);\n\t\t\n\t\tscore = scores.ceiling(new Integer(95));\n\t\tSystem.out.println(\"95점 이상의 점수 : \" + score);\n\t\t\n\t\tscore = scores.floor(new Integer(95));\n\t\tSystem.out.println(\"95점 이하의 점수 : \" + score);\n\t\t\n\t\twhile(!scores.isEmpty()) {\n\t\t\tSystem.out.println(scores.pollFirst());\n\t\t}\n\t}", "KeyGroupRange getKeyGroupRange();", "public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}", "int[] minAndMax() {\n\n // **** declare and populate array of Integers with the values of the parents O(n) ****\n Integer[] arr = new Integer[this.parents.length];\n int i = 0;\n for (int val : this.parents)\n arr[i++] = val;\n\n // **** create a list with the values in the parents ****\n List<Integer> al = Arrays.asList(arr);\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse the array arr: O(n^2) ****\n for (int item : arr) {\n if (item != 0) {\n\n // **** get the frequency of item in the list: O(n) ****\n int freq = Collections.frequency(al, item);\n\n // ???? ????\n System.out.println(\"minAndMax <<< item: \" + item + \" freq: \" + freq);\n\n // **** update the min and max values ****\n min = Math.min(min, freq);\n max = Math.max(max, freq);\n }\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "Score getScores(int index);", "ArrayList <Integer> nearlySorted(int arr[], int num, int k)\n {\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n ArrayList<Integer> res = new ArrayList<>();\n for(int i=0;i<k+1;i++){\n pq.add(arr[i]);\n }\n \n for(int i=k+1;i<num;i++){\n res.add(pq.remove());\n pq.add(arr[i]);\n }\n \n while(pq.size()>0){\n res.add(pq.remove());\n }\n \n return res;\n }", "public static <T> Pair<ArrayList<T>, Double> relativeHabitFilter(Map<T, Double> habitStrength){\n\t\t//System.out.print(\"rHabitFilter is called on size:\" + habitStrength.size());\n\t\tMap<T, Double> sorted= Helper.sortByValue(habitStrength);\n\t\tArrayList<T> keys =new ArrayList<T>(sorted.keySet());\n\t\t\n\t\t//System.out.println(habitStrength);\n\t\t//System.out.println(sorted);\n\t\t\n\t\tdouble bestDifference = 0;\n\t\tdouble bestSplit = 0;\n\t\tfor(int i = 0; i < keys.size()-1; i++){\n\t\t\tMap<T, Double> left = new HashMap<T, Double>();\n\t\t\tMap<T, Double> right =new HashMap<T, Double>(habitStrength);\n\t\t\tfor(int j =0; j <= i; j++){ //Fill maps left and right\n\t\t\t\tT key = keys.get(j);\n\t\t\t\tleft.put(key, sorted.get(key));\n\t\t\t\tright.remove(key);\n\t\t\t\t//System.out.print(\"loopmakemaps\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tdouble difference = Helper.avarageDouble(right.values()) - Helper.avarageDouble(left.values());\n\t\t\tif(difference > bestDifference){\n\t\t\t\tbestDifference = difference;\n\t\t\t\tbestSplit = i;\n\t\t\t}\n\t\t\t//System.out.print(\"loopfindbest\");\n\t\t}\n\t\t\n\t\tArrayList<T> newCandidates =new ArrayList<T>();\n\t\tfor(int j = keys.size()-1; j > bestSplit; j--){\n\t\t\tnewCandidates.add(keys.get(j));\n\t\t\t//System.out.print(\"loophere\");\n\t\t}\n\t\t\n\t\t//System.out.println(\"I made it! Difference:\" + bestDifference + \"newCandidates\" + newCandidates);\n\t\t\n\t\treturn new ImmutablePair<ArrayList<T>, Double>(newCandidates, bestDifference);\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public List<T> findByKey(String key, Object object, int start, int max);", "public MatcherScores(SortedMap<Double, SortedSet<String>> scores)\n {\n this.scores = Objects.requireNonNull(scores);\n }", "public SortedSubset(RangeSet<T> constitutingSuperset, T lowerbound, T upperbound)\n\t{\n\t\tinit(constitutingSuperset, lowerbound, upperbound, true, false);\n\t}", "@Test\n public void test_kmin_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmin(i5, 2, new CompareIntegerAscending());\n int expected = 3;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "@Test\n public void test_kmax_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmax(i5, 5, new CompareIntegerAscending());\n int expected = 1;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "protected abstract List<Double> calcScores();", "public ArrayList<Integer> pointsInRange( int min, int max )\n {\n ArrayList<Integer> points = new ArrayList<Integer>();\n _root.findPoints( min, max, points );\n return points;\n }", "private static int partition(Comparable[] data, int min, int max) {\n\n\t\t// Use first element as the partition value\n\n\t\tComparable partitionValue = data[min];\n\n\t\tint left = min;\n\t\tint right = max;\n\n\t\twhile (left < right) {\n\t\t\t// Search for an element that is > the partition element\n\t\t\twhile (data[left].compareTo(partitionValue) <= 0 && left < right)\n\t\t\t\tleft++;\n\t\t\t// Search for an element that is < the partitionelement\n\t\t\twhile (data[right].compareTo(partitionValue) > 0)\n\t\t\t\tright--;\n\t\t\tif (left < right)\n\t\t\t\tswap(data, left, right);\n\t\t}\n\t\t// Move the partition element to its final position\n\t\tswap(data, min, right);\n\n\t\treturn right;\n\t}", "int minKey(float key[], Boolean mstSet[]){\n float min = Float.MAX_VALUE;\n int min_index = -1;\n \n for (int v = 0; v < V; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n \n return min_index;\n }", "public double getBestScore();", "@Nonnull\r\n\tpublic static <T, Key> Observable<List<T>> minMax(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func1<? super T, ? extends Key> keyExtractor,\r\n\t\t\t@Nonnull final Comparator<? super Key> keyComparator,\r\n\t\t\tfinal boolean max\r\n\t) {\r\n\t\treturn new Observable<List<T>>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super List<T>> observer) {\r\n\t\t\t\treturn source.register(new Observer<T>() {\r\n\t\t\t\t\t/** The current collection for the minimum of Ts. */\r\n\t\t\t\t\tList<T> collect;\r\n\t\t\t\t\t/** The current minimum value. */\r\n\t\t\t\t\tKey maxKey;\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void finish() {\r\n\t\t\t\t\t\tif (collect != null) {\r\n\t\t\t\t\t\t\tobserver.next(collect);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void next(T value) {\r\n\t\t\t\t\t\tKey key = keyExtractor.invoke(value);\r\n\t\t\t\t\t\tif (collect == null) {\r\n\t\t\t\t\t\t\tmaxKey = key;\r\n\t\t\t\t\t\t\tcollect = new ArrayList<T>();\r\n\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tint order = keyComparator.compare(maxKey, key);\r\n\t\t\t\t\t\t\tif (order == 0) {\r\n\t\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\tif (max ^ (order > 0)) {\r\n\t\t\t\t\t\t\t\tmaxKey = key;\r\n\t\t\t\t\t\t\t\tcollect = new ArrayList<T>();\r\n\t\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}", "java.util.List<Score>\n getScoresList();", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public abstract double[] getLowerBound();", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n // linked list for return\r\n List<V> val = new LinkedList<>();\r\n LeafNode node_next = this;\r\n LeafNode node_prev = this.previous;\r\n\r\n // to check the current node's next nodes first\r\n while (node_next != null) {\r\n if (comparator.equals(\"<=\")) {\r\n if (node_next.getFirstLeafKey().compareTo(key) > 0) {\r\n node_next = node_next.next;\r\n continue;\r\n }else{\r\n compare((K) key, comparator, (List<V>) val, node_next);\r\n node_next = node_next.next;\r\n }\r\n } else if (comparator.equals(\">=\")){\r\n if (node_next.getFirstLeafKey().compareTo(key) < 0) {\r\n node_next = node_next.next;\r\n continue;\r\n }\r\n else{\r\n compare((K) key, comparator, (List<V>) val, node_next);\r\n node_next = node_next.next;\r\n }\r\n } else if ( comparator.equals(\"==\")){\r\n if (node_next.getFirstLeafKey().compareTo(key) > 0){\r\n node_next = node_next.next;\r\n continue;\r\n } else {\r\n compare((K) key, comparator, (List<V>) val, node_next);\r\n node_next = node_next.next;\r\n }\r\n }\r\n }\r\n\r\n // to check the previous nodes\r\n while (node_prev != null) {\r\n if (comparator.equals(\"<=\")) {\r\n if (node_prev.getFirstLeafKey().compareTo(key) > 0) {\r\n node_prev = node_prev.previous;\r\n continue;\r\n }else{\r\n compare((K) key, comparator, (List<V>) val, node_prev);\r\n node_prev = node_prev.previous;\r\n }\r\n } else if (comparator.equals(\">=\")){\r\n if (node_prev.getFirstLeafKey().compareTo(key) < 0) {\r\n node_prev = node_prev.previous;\r\n continue;\r\n }\r\n else{\r\n compare((K) key, comparator, (List<V>) val, node_prev);\r\n node_prev = node_prev.previous;\r\n }\r\n } else if ( comparator.equals(\"==\")){\r\n if (node_prev.getFirstLeafKey().compareTo(key) > 0){\r\n node_prev = node_prev.previous;\r\n continue;\r\n } else {\r\n compare((K) key, comparator, (List<V>) val, node_prev);\r\n node_prev = node_prev.previous;\r\n }\r\n }\r\n\r\n\r\n }\r\n\r\n return val;\r\n }", "public int minXValue (Map <String,ArrayList<Point>> map){\r\n \tint min = 0 , i = 0;\r\n \t\tfor (String key : map.keySet()) {\r\n \t\t\tif ( min < map.get(key).get(i).getX())\r\n \t\t\t\tmin = (int) map.get(key).get(i).getX();\r\n \t\t\ti++;\r\n \t\t}\r\n \treturn min;\t\r\n }", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "@Test\r\n public void lowerHigherDoNotContains() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n check.remove(3);\r\n assertEquals(2, (int) check.lower(3));\r\n assertEquals(4, (int) check.higher(3));\r\n assertEquals(4, (int) check.ceiling(3));\r\n assertEquals(2, (int) check.floor(3));\r\n }", "private static Map<String, Double> extractBestSuppliers (Map<Supplier, Double> supplierScores, int numResults) {\n\t\tMap<Supplier, Double> rankedResults = sortDescending(supplierScores);\n\t\tIterable<Entry<Supplier, Double>> firstEntries =\n\t\t\t\tIterables.limit(rankedResults.entrySet(), numResults);\n\t\t\n\t\t//return the [numResults] best suppliers according to highest scores\n\t\tMap<String, Double> finalSupplierMap = new LinkedHashMap<String, Double>();\t\t\n\t\tfor (Entry<Supplier, Double> e : firstEntries) {\n\t\t\tfinalSupplierMap.put(e.getKey().getId(), e.getValue());\n\t\t}\n\t\t\n\t\treturn finalSupplierMap;\n\n\t}", "public List<Integer> majorityElementHashMap(int[] nums) {\n int n=nums.length;\n List<Integer> result=new ArrayList<Integer>();\n Map<Integer,Integer> map=new HashMap<Integer,Integer>();\n \n for(int i=0;i<n;i++){\n if(map.containsKey(nums[i])){\n map.put(nums[i],map.get(nums[i])+1);\n }\n else{\n map.put(nums[i],1);\n }\n }\n \n for(Map.Entry<Integer,Integer> m:map.entrySet()){\n if(m.getValue()>n/3)result.add(m.getKey());\n }\n return result;\n \n }", "public int getLowerBound ();", "@Test\n public void when70To100ThenA() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(100);\n Student e = new Student(86);\n Predicate<Student> predicate = s -> s.getScore() >= 70 && s.getScore() <= 100;\n List<Student> expected = List.of(b, d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "private List<HashMap<TimeSelector, Long>> updateLeq(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLeq,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> leq = relationToTuples(rLeq);\n for (ArrayList<ComparableExpression> tuple : leq) {\n TimeSelector selector = null;\n Long literalValue = null;\n // only comparisons between a selector and a literal are interesting here\n // selector <= literal => upper(selector) = min(upper(selector), literal)\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literalValue = ((TimeLiteral) tuple.get(1)).getMilliseconds();\n upperBounds.put(selector, Math.min(upperBounds.get(selector), literalValue));\n } else if (tuple.get(1) instanceof TimeSelector &&\n tuple.get(0) instanceof TimeLiteral) {\n // selector >= literal => lower(selector) = max(lower(selector), literal)\n selector = (TimeSelector) tuple.get(1);\n literalValue = ((TimeLiteral) tuple.get(0)).getMilliseconds();\n lowerBounds.put(selector, Math.max(lowerBounds.get(selector), literalValue));\n } else {\n continue;\n }\n\n if (lowerBounds.get(selector) > upperBounds.get(selector)) {\n throw new QueryContradictoryException();\n }\n }\n\n return Arrays.asList(lowerBounds, upperBounds);\n }", "public static void main(String[] args) {\n\t\t\n\t\tList<Integer> a = new ArrayList<>();\n\t\ta.add(1);\n\t\ta.add(1);\n\t\ta.add(2);\n\t\ta.add(2);\n\t\ta.add(4);\n\t\ta.add(3);\n\t\tList<Integer> b = new ArrayList<>();\n\t\tb.add(2);\n\t\tb.add(3);\n\t\tb.add(3);\n\t\tb.add(4);\n\t\tb.add(4);\n\t\tb.add(5);\n\t\tgetMinScore(6, a, b);\n\t}", "public Set<T> getRanges();", "default DiscreteSet2D subLevelSet(double value) {\r\n\t\treturn pointsSatisfying(d -> d <= value);\r\n\t}", "@Override\n public Set<K> keySet() {\n if (isEmpty()) return new HashSet<K>();\n return keys(min(), max());\n }", "IntervalTupleList evaluate(double low, double high);", "static Predicate<Beer> priceRangeQuery(Float priceLowest, Float priceHighest) {\n return b -> b.getPrice() >= priceLowest && b.getPrice() <= priceHighest;\n }", "private static Map<Double, List<Integer>> bucketizeListForTF(List<Integer> input, double bucketRange, int queryId)\r\n\t\t\tthrows ClassNotFoundException, SQLException, IOException {\r\n\t\tMap<Integer, Double> tfMap = new LinkedHashMap<Integer, Double>();\r\n\t\tList<Integer> resultsToIgnore = PersistenceController2.fetchAllResultsToIgnore(queryId, true);\r\n\t\tRankUtils.fillResultTFMap(queryId, tfMap, input, resultsToIgnore);\r\n\t\tboolean isRatioAccepted = RankUtils.foundNotFoundRatioAccepted(queryId, ACCEPTANCE_THRESHOLD);\r\n\t\tMap<Double, List<Integer>> sortedMap = RankUtils.bucketizeAndSortForTF2(isRatioAccepted, input, tfMap,\r\n\t\t\t\tbucketRange, resultsToIgnore);\r\n\t\treturn sortedMap;\r\n\t}", "@Test\n public void when1To49ThenB() {\n Student a = new Student(49);\n Student b = new Student(50);\n Student c = new Student(102);\n Student d = new Student(0);\n Student e = new Student(140);\n Predicate<Student> predicate = s -> s.getScore() > 0 && s.getScore() < 50;\n List<Student> expected = List.of(a, c, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "public abstract Key getLargest();", "private SearchNode findFirstNode(HashSet<SearchNode> set){\n\t\t\tSearchNode min = null;\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (min == null || cur.fScore < min.fScore)\n\t\t\t\t\tmin = cur;\n\t\t\t}\n\t\t\treturn min;\n\t\t}", "public List<Integer> topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map=new HashMap<Integer, Integer>();\n for(int num:nums)\n {\n if(map.containsKey(num))\n map.put(num, map.get(num)+1);\n else\n map.put(num,1);\n }\n\t\t//make min heap\n PriorityQueue<Node> pq=new PriorityQueue<Node>(new Comparator<Node>(){\n public int compare(Node a, Node b)\n {\n return a.count-b.count;\n }\n });\n for(int key:map.keySet())\n {\n Node n=new Node(key, map.get(key));\n pq.offer(n);\n if(pq.size()>k)\n pq.poll();\n }\n List<Integer> list=new ArrayList<Integer>();\n while(!pq.isEmpty())\n {\n list.add(pq.poll().n);\n }\n \n return list;\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> set = new TreeSet<Integer>();\n\t\tset.add(218);\n\t\tset.add(56);\n\t\tset.add(18);\n\t\tset.add(91);\n\t\tset.add(100);\n\t\tset.add(40);\n\t\tset.add(60);\n\t\tset.add(12);\n\n\t\tSystem.out.println(\"Elements of the treeset are: \" + set);\n\t\tSystem.out.println(\"Lowest value Stored in Java TreeSet is : \" + set.first());\n\t\tSystem.out.println(\"Highest value Stored in Java TreeSet is : \" + set.last());\n\n\t}", "int minKey(int[] key, Boolean[] mstSet) {\n // Initialize min value\n int min = Integer.MAX_VALUE, min_index = -1;\n\n for (int v = 0; v < VERTICES; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n\n return min_index;\n }", "private static int minKey(int[] key, Boolean[] mstSet, int V)\r\n {\r\n // Initialize min value\r\n int min = Integer.MAX_VALUE, min_index=-1;\r\n\r\n for (int v = 0; v < V; v++)\r\n if (!mstSet[v] && key[v] < min)\r\n {\r\n min = key[v];\r\n min_index = v;\r\n }\r\n\r\n return min_index;\r\n }", "private List<HashMap<TimeSelector, Long>> updateLt(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLt,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> lt = relationToTuples(rLt);\n for (ArrayList<ComparableExpression> tuple : lt) {\n TimeSelector selector = null;\n Long literalValue = null;\n // only comparisons between a selector and a literal are interesting here\n // selector < literal => upper(selector) = min(upper(selector), literal-1)\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literalValue = ((TimeLiteral) tuple.get(1)).getMilliseconds() - 1;\n upperBounds.put(selector, Math.min(upperBounds.get(selector), literalValue));\n } else if (tuple.get(1) instanceof TimeSelector &&\n tuple.get(0) instanceof TimeLiteral) {\n // selector > literal => lower(selector) = max(lower(selector), literal+1)\n selector = (TimeSelector) tuple.get(1);\n literalValue = ((TimeLiteral) tuple.get(0)).getMilliseconds() + 1;\n lowerBounds.put(selector, Math.max(lowerBounds.get(selector), literalValue));\n } else {\n continue;\n }\n\n if (lowerBounds.get(selector) > upperBounds.get(selector)) {\n throw new QueryContradictoryException();\n }\n }\n\n return Arrays.asList(lowerBounds, upperBounds);\n }", "public static int maximumScore_rev2(int[] nums, int k) {\n int[] mins = new int[nums.length];\n mins[k] = nums[k];\n for (int i = k + 1; i < nums.length; ++i) {\n mins[i] = Math.min(mins[i - 1], nums[i]);\n }\n for (int i = k - 1; i >= 0; --i) {\n mins[i] = Math.min(mins[i + 1], nums[i]);\n }\n int score = mins[k], left = 0, right = nums.length - 1;\n// Then starting from both ends as the first good subarray, move the end corresponds to smaller value of the mins, and update the score accordingly.\n while (left < right) {\n score = Math.max(score, (right - left + 1) * Math.min(mins[left], mins[right]));\n if (right == k || mins[left] < mins[right]) {\n// right has reached k, The only option you have to increase left\n// left have lowest min, so by increasing the left side, the minimum value will be increased.\n ++left;\n } else {\n --right;\n }\n }\n return score;\n }", "public List<Integer> findClosestElements(int[] arr, int k, int x) {\n int low = 0;\n int high = arr.length - 1;\n while (high - low >= k) {\n if (Math.abs(arr[low] - x) > Math.abs(arr[high] - x)) {\n low++;\n } else {\n high--;\n }\n }\n List<Integer> res = new ArrayList<>();\n for (int i = low; i <= high; i++) {\n res.add(arr[i]);\n }\n return res;\n }", "@Test\n public void when50To69ThenB() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(58);\n Student e = new Student(69);\n Predicate<Student> predicate = s -> s.getScore() >= 50 && s.getScore() < 70;\n List<Student> expected = List.of(d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "static int paintersPartition(int a[], int n, int k)\r\n\t {\r\n\t int start = a[0], end = a[0], minOfMax = -1;\r\n\t \r\n\t //this is to initialise start as max of all array elements and end as sum of all array elements\r\n\t for(int i = 1; i < n; i++)\r\n\t {\r\n\t end += a[i];\r\n\t \r\n\t if(a[i] > start)\r\n\t start = a[i];\r\n\t }\r\n\t \r\n\t while(start <= end)\r\n\t {\r\n\t int mid = start + ((end - start) / 2);\r\n\t \r\n\t if(isValid(a, n, k, mid))\r\n\t {\r\n\t minOfMax = mid; //this will hold one of the valid solution but then to get the most optimal one, we need check further on left side of search space\r\n\t end = mid - 1;\r\n\t }\r\n\t else\r\n\t start = mid + 1;\r\n\t }\r\n\t \r\n\t return minOfMax;\r\n\t }", "public static Set<Integer> rndSet(int size, int min, int max){\n\n\t\tif (max < size)\n\t\t{\n\t\t throw new IllegalArgumentException(\"Can't ask for more numbers than are available\");\n\t\t}\n\n\t\tSet<Integer> generated = new LinkedHashSet<Integer>();\n\t\twhile (generated.size() < size)\n\t\t{\n\t\t Integer next = rng.nextInt(max - min + 1) + min;\n\t\t // As we're adding to a set, this will automatically do a containment check\n\t\t generated.add(next);\n\t\t}\n\t\tSystem.out.println(\"line sampled: \"+generated.toString());\n\t\treturn generated;\n\t}", "@Test\n\tpublic void testExtractMin() {\n\t\tHeap heap = new Heap(testArrayList.length);\n\t\tdouble[] expected = new double[] { 5, 7, 24, 36, 15, 48, 32, 47, 93, 27, 38, 70, 53, 33, 93 };\n\t\theap.build(testArrayList);\n\t\tassertEquals(3, heap.extractMin().key);\n\t\tassertArrayEquals(expected, heap.getKeyArray());\n\t\tassertEquals(14, heap.getSize());\n\t}", "@Override\n public CloseableIterator<KVPair> getRange(byte[] minKey, byte[] maxKey, boolean reverse) {\n Preconditions.checkState(!this.closed.get(), \"transaction closed\");\n return new XodusIter(this.store.openCursor(this.tx), minKey, maxKey, reverse);\n }", "public List<ScheduledInterview> getInRange(Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n scheduledInterviewsInRange.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n return scheduledInterviewsInRange;\n }", "public int score() {\n ArrayList<Integer> scores = possibleScores();\n int maxUnder = Integer.MIN_VALUE;\n int minOver = Integer.MAX_VALUE;\n for (int score : scores) {\n if (score > 21 && score < minOver) {\n minOver = score;\n } else if (score <= 21 && score > maxUnder) {\n maxUnder = score;\n }\n }\n return maxUnder == Integer.MIN_VALUE ? minOver : maxUnder;\n }", "List<Source> process(int topK, Set<Source> sources);", "public int[] getMaxSub(int[] array, int k) {\r\n int out[] = new int[k];\r\n int idx = 0;\r\n for (int i = 0; i < array.length; i++) {\r\n // move the pointer back only when both condition happens\r\n // 1. current element is larger than last one in candidate\r\n // 2. there are enough elements in rest of array\r\n while (idx > 0 && array.length - i + idx > k && out[idx-1] < array[i]) {\r\n idx--;\r\n }\r\n if (idx < k)\r\n out[idx++] = array[i];\r\n }\r\n return out;\r\n }", "public static int[] findMinMax(int[] nums){\n int[] minMax = new int[2];\n\n if(nums == null || nums.length == 0) return minMax;\n\n minMax[0] = nums[0];\n minMax[1] = nums[1];\n\n int bound = nums.length;\n\n if(nums.length % 2 == 1){\n bound = bound-1; \n }\n\n int min = 0; int max = 0;\n for(int i =0;i<bound;i =i+2){\n if(nums[i]<nums[i+1]){\n min = nums[i];\n max = nums[i+1]; \n }\n else{\n min = nums[i+1];\n max = nums[i];\n }\n if(min<minMax[0]){\n minMax[0] = min;\n }\n if(max>minMax[1]){\n minMax[1] = max;\n }\n }\n\n if(bound != nums.length){\n if(nums[bound] < minMax[0] ){\n minMax[0] = nums[bound];\n }\n if(nums[bound] > minMax[1] ){\n minMax[1] = nums[bound];\n }\n }\n return minMax;\n }", "@Test\n public void test_kmin_Integer_Collection2() {\n populate_i2();\n int actual = Selector.kmin(i2, 2, new CompareIntegerDescending());\n int expected = 7;\n Assert.assertEquals(\"2nd minimum in descending comparator not found\", expected, actual);\n }", "private Node lowestCostThrough(List<Node> openSet, Map<Node, Double> costThrough){\n Node lowest = openSet.get(0);\n\n for(Node n: openSet){\n if(costThrough.get(n) < costThrough.get(lowest)){\n lowest = n;\n }\n }\n return lowest;\n }", "@Override\n public Map<Long, Map<Long, Number>> getFilteredRatings(Map<Long, Map<Long, Number>> originalSet) {\n Map<Long, Map<Long, Number>> ret = new TreeMap<Long, Map<Long, Number>>();\n\n for (Map.Entry<Long, Map<Long, Number>> userRatings : originalSet.entrySet()) {\n Long idUser = userRatings.getKey();\n Map<Long, Number> userRatingsMap = userRatings.getValue();\n\n ret.put(idUser, new TreeMap<Long, Number>());\n for (Map.Entry<Long, Number> entry : userRatingsMap.entrySet()) {\n Long idItem = entry.getKey();\n Number rating = entry.getValue();\n ret.get(idUser).put(idItem, rating.doubleValue());\n }\n }\n return ret;\n }", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n\t\tint[] ranks = new int[scores.length];\n\t\tint[] aliceRanks = new int[alice.length];\n\n\t\tint endIndex = -1;\n\t\tint currentElement = Integer.MIN_VALUE;\n\n\t\tfor (int i = 0; i < ranks.length; i++) {\n\t\t\tif (currentElement != scores[i]) {\n\t\t\t\tranks[++endIndex] = scores[i];\n\t\t\t\tcurrentElement = scores[i];\n\t\t\t}\n\t\t}\n\n\t\tint aliceEndIndex = -1;\n\t\tfor (int i = 0; i < aliceRanks.length; i++) {\n\t\t\tint currScore = alice[i];\n\t\t\t\n\t\t\tint globalRankApprox = binarySearch(ranks, alice[i], 0, endIndex);\n\t\t\t\n\t\t\tif (currScore >= ranks[globalRankApprox]) {\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1;\n\t\t\t}else{\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1+1;\n\t\t\t}\n\t\t}\n\n\t\treturn aliceRanks;\n\t}", "private ArrayList<Integer> possibleScores() {\n return new ArrayList<Integer>();\n }", "public int [] smallestRange(int [][] nums){\n\t\tint minx = 0, miny = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n\t\t\n\t\tint [] next = new int [nums.length];\n\t\tboolean flag = true;\n\t\t\n\t\tPriorityQueue<Integer> minQ = new PriorityQueue<Integer>((i, j)->nums[i][next[i]]-nums[j][next[j]]);\n\t\tfor(int i = 0 ; i < nums.length; i ++){\n\t\t\tminQ.offer(i);\n\t\t\tmax = Math.max(max, nums[i][0]);\n\t\t}\n\t\t\n\t\tfor(int i = 0 ; i < nums.length && flag; i++){\n\t\t\tfor(int j = 0 ; j < nums[i].length&& flag; j++){\n\t\t\t\tint minI = minQ.poll();\n\t\t\t\tif(miny-minx > max-nums[minI][next[minI]]){\n\t\t\t\t\tminx = nums[minI][next[minI]];\n\t\t\t\t\tminy = max;\n\t\t\t\t}\n\t\t\t\tnext[minI]++;\n\t\t\t\tif(next[minI] == nums[minI].length){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tminQ.offer(minI);\n\t\t\t\tmax = Math.max(max, nums[minI][next[minI]]);\n\t\t\t}\n\t\t}\n\t\treturn new int [] {minx, miny};\n\t}", "public V getLowerBound();", "public static int maxSum(int[] a, int k) \n {\n PriorityQueue<Integer> pq = new PriorityQueue<>(); \n for (int x : a) \n pq.add(x); \n \n // Do k negations by removing a minimum element k times \n while (k-- > 0) \n { \n // Retrieve and remove min element \n int temp = pq.poll(); \n \n // Modify the minimum element and add back \n // to priority queue \n temp *= -1; \n pq.add(temp); \n } \n \n // Compute sum of all elements in priority queue. \n int sum = 0; \n for (int x : pq) \n sum += x; \n return sum; \n }", "public Map<K, Set<V>> coreGetAllSupersetsOf(Collection<?> set, int mode) {\n // Skip elements in the collection having an incorrect type, as we are looking for subsets which simply\n // cannot contain the conflicting items\n Set<V> navSet = createNavigableSet(set, true);\n Iterator<V> it = navSet.iterator();\n\n List<SetTrieNode> frontier = new ArrayList<>();\n frontier.add(superRootNode);\n\n // For every value, extend the frontier with the successor nodes for that value.\n V from = null;\n V upto = null;\n\n // Use a flag for null safety so we do not rely on the comparator to treat null as the least element\n boolean isLeastFrom = true;\n while(it.hasNext()) {\n from = upto;\n upto = it.next();\n\n List<SetTrieNode> nextNodes = new ArrayList<>();\n\n // Based on the frontier, we need to keep scanning nodes whose values is in the range [from, upto]\n // until we find the nodes whose values equals upto\n // Only these nodes then constitute the next frontier\n Collection<SetTrieNode> currentScanNodes = frontier;\n do {\n Collection<SetTrieNode> nextScanNodes = new ArrayList<>();\n for(SetTrieNode currentNode : currentScanNodes) {\n if(currentNode.nextValueToChild != null) {\n NavigableMap<V, SetTrieNode> candidateNodes = isLeastFrom\n ? currentNode.nextValueToChild.headMap(upto, true)\n : currentNode.nextValueToChild.subMap(from, true, upto, true);\n\n for(SetTrieNode candidateNode : candidateNodes.values()) {\n if(Objects.equals(candidateNode.value, upto)) {\n nextNodes.add(candidateNode);\n } else {\n nextScanNodes.add(candidateNode);\n }\n }\n }\n }\n currentScanNodes = nextScanNodes;\n } while(!currentScanNodes.isEmpty());\n\n frontier = nextNodes;\n\n isLeastFrom = false;\n }\n\n Map<K, Set<V>> result = new HashMap<>();\n\n // Copy all data entries associated with the frontier to the result\n Stream<SetTrie<K, V>.SetTrieNode> stream = frontier.stream();\n\n if(mode != 0) {\n stream = stream.flatMap(node -> reachableNodesAcyclic(\n node,\n x -> (x.nextValueToChild != null ? x.nextValueToChild.values() : Collections.<SetTrieNode>emptySet()).stream()));\n }\n\n stream.forEach(currentNode -> {\n if(currentNode.keyToSet != null) {\n for(Entry<K, NavigableSet<V>> e : currentNode.keyToSet.entrySet()) {\n result.put(e.getKey(), e.getValue());\n }\n }\n });\n\n return result;\n }" ]
[ "0.69010454", "0.66609347", "0.6510533", "0.6107527", "0.5904372", "0.5799362", "0.5781782", "0.5757567", "0.56167066", "0.5459495", "0.5380904", "0.5364139", "0.5362202", "0.53433496", "0.53076774", "0.53074855", "0.51951885", "0.5184649", "0.5150828", "0.5077415", "0.5068845", "0.50443155", "0.49870723", "0.49756813", "0.497321", "0.49477544", "0.49238372", "0.4911365", "0.48867732", "0.4883579", "0.48815656", "0.48538902", "0.48480695", "0.48321527", "0.48235568", "0.4793948", "0.47862393", "0.4785004", "0.47780058", "0.47759458", "0.4755331", "0.47486848", "0.47479653", "0.4731827", "0.47298807", "0.47271666", "0.47043997", "0.47014102", "0.46957728", "0.4681773", "0.46777532", "0.46741372", "0.46613553", "0.46584502", "0.4648038", "0.46407086", "0.46319327", "0.46254596", "0.4622568", "0.46153542", "0.46015447", "0.46011156", "0.4595798", "0.4592114", "0.4590555", "0.45884326", "0.45775658", "0.45731077", "0.45610547", "0.45543092", "0.45530453", "0.45486873", "0.4537703", "0.45337868", "0.45326293", "0.45199603", "0.4516274", "0.45115098", "0.4510809", "0.44931358", "0.44865632", "0.44863734", "0.44769076", "0.44751537", "0.44727597", "0.44704556", "0.44688278", "0.4457976", "0.44571248", "0.44566438", "0.44547", "0.444886", "0.4445239", "0.4444846", "0.44424132", "0.44349128", "0.4429217", "0.44255447", "0.44230863", "0.442166" ]
0.6180488
3
For Object, Return the all the elements in the sorted set at key with a score between min and max (including elements with score equal to min or max).
public <T> List<T> zrangeByScore(final String key, final double min, final double max, Class<T> clazz) { Jedis jedis = null; try { jedis = jedisPool.getResource(); Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max); if (tempSet != null && tempSet.size() > 0) { List<T> result = new ArrayList<T>(); for (byte[] value : tempSet) { result.add(fromJsonByteArray(value, clazz)); } return result; } return null; } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<Tuple> zrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScoreWithScores(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<String> zrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScore(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScoreWithScores(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public <T> Set<T> zrangeHashSetByScore(final String key, final double min, final double max, Class<T> clazz) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max);\n if (tempSet != null && tempSet.size() > 0) {\n HashSet<T> result = new HashSet<T>();\n for (byte[] value : tempSet) {\n // result.add((T) HessianSerializer.deserialize(value));\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public List<T> findByKey(String key, Object object, int start, int max);", "public Set<String> zrevrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScore(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "void collect(Object key, float score);", "abstract List<V> rangeSearch(K key, String comparator);", "public Set<Tuple> zrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public abstract Collection<T> getMatchesAboveThreshold(T first,\n double similarityThreshold);", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "Set<Art> getArtByPrice(Double upper, Double lower);", "Collection<T> getMinElements();", "private ArrayList<Integer> binarySearch(ArrayList<Integer> arraylist, int key, int min, int max)\n\t{\n\t\tArrayList<Integer> mids = new ArrayList<Integer>(); \n\t \n\t\twhile (max >= min)\n\t\t{\n\t\t\tint mid = (min + max) / 2;\n\t \n\t\t\tmids.add(mid); \n\t \n\t\t\tif (arraylist.get(mid) < key)\n\t\t\t{\n\t\t\t\tmax = mid - 1;\n\t\t\t}\n\t \n\t\t\telse if (arraylist.get(mid) > key )\n\t\t\t{\n\t\t\t\tmin = mid + 1;\n\t\t\t}\n\t \n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak; \n\t\t\t}\n\t\t}\n\t \n\t\treturn mids; \n\t}", "private int[] findMinMax(ArrayList<ArrayList<Integer>> objects, int featureNo) {\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\t\n\t\t\tfor(int b = 0; b < objects.size(); b++){\n\t\t\t\t\n\t\t\t\tmax = Math.max(objects.get(b).get(featureNo) , max);\n\t\t\t\tmin = Math.min(objects.get(b).get(featureNo) , min);\n\t\t\t}\n\t\t\t\n\t\t\treturn new int[]{max,min};\n\t\t}", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n return getChild(key).rangeSearch(key, comparator);\r\n }", "public static void main(String[] args) {\n\t\tHashSet<Double> hash = new HashSet<>();\n\t\thash.add(1.5);\n\t\thash.add(8.25);\n\t\thash.add(-7.32);\n\t\thash.add(13.3);\n\t\thash.add(-12.45);\n\t\thash.add(48.5);\n\t\thash.add(0.01);\n\t\tdouble max = 0;\n\t\tdouble min = 0;\n\t\t\n\t\tfor (Double double1 : hash) {\n\t\t\tSystem.out.println(double1);\n\t\t\tif (double1 > max) {\n\t\t\t\tmax = double1;\n\t\t\t}\n\t\t\tif (double1 < min) {\n\t\t\t\tmin = double1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Max : \" + max);\n\t\tSystem.out.println(\"Min : \" + min);\n\t\thash.remove(min);\n\t\tfor (Double double1 : hash)\n\t\t\tSystem.out.println(double1);\n\t}", "List<Object> greaterThanOrEqualsTo(Object value);", "int[] maxAndMin() {\n\n // **** ****\n HashMap<Integer, Integer> hm = new HashMap<Integer, Integer>();\n\n // **** traverse parrents array inserting into hashmap: O(n) ****\n for (int val : this.parents) {\n hm.put(val, hm.getOrDefault(val, 0) + 1);\n }\n\n // ???? ????\n // System.out.println(\"maxAndMin <<< hm: \" + hm.toString());\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse hashmap looking for min and max: O(n) ****\n Iterator<Entry<Integer, Integer>> it = hm.entrySet().iterator();\n while (it.hasNext()) {\n Entry<Integer, Integer> e = it.next();\n\n // **** skip this key ****\n if (e.getKey() == 0)\n continue;\n\n // **** update min and max ****\n min = Math.min(e.getValue(), min);\n max = Math.max(e.getValue(), max);\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public static void main(String[] args) {\n SortedSet<CompareObject> objects = new TreeSet<>(new ComparatorTest());\n\n objects.add(new CompareObject(1));\n objects.add(new CompareObject(3));\n objects.add(new CompareObject(5));\n objects.add(new CompareObject(-13));\n objects.add(new CompareObject(12));\n objects.add(new CompareObject(1100));\n objects.add(new CompareObject(1));\n\n for (CompareObject x : objects){\n System.out.println(x);\n }\n\n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "Score getScores(int index);", "Lista<V> valuesInRange(K init, K end);", "public List<OWLObject> search(OWLObject queryObj) {\n\t\tList<OWLObject> hits = new ArrayList<OWLObject>(maxHits);\n\t\tSystem.out.println(\"gettings atts for \"+queryObj+\" -- \"+simEngine.comparisonProperty);\n\t\tSet<OWLObject> atts = simEngine.getAttributeClosureFor(queryObj);\n\t\tSystem.out.println(\"all atts: \"+atts.size());\n\t\tif (atts.size() == 0)\n\t\t\treturn hits;\n\t\t\n\t\t// only compare using significant atts;\n\t\t// we don't do the same test on candidates as these will be removed by the\n\t\t// intersection operation. they will have a small effect on the score, as\n\t\t// we don't divide by the union, but instead the sum of sizes\n\t\tatts = filterNonSignificantAttributes(atts);\n\t\tSystem.out.println(\"filtered atts: \"+atts.size());\n\n\t\t//bloomFilter = new BloomFilter<OWLObject>(0.05, atts.size());\n\t\t//bloomFilter.addAll(atts);\n\t\t\t\t\n\t\tSortedMap<Integer,Set<OWLObject>> scoreCandidateMap = new TreeMap<Integer,Set<OWLObject>>();\n\t\t\n\t\tfor (OWLObject candidate : getCandidates()) {\n\t\t\tif (candidate.equals(queryObj))\n\t\t\t\tcontinue;\n\t\t\tSet<OWLObject> iAtts = simEngine.getAttributeClosureFor(candidate);\n\t\t\t//Set<OWLObject> iAtts = simEngine.getGraph().getAncestors(candidate);\n\n\t\t\tif (iAtts.size() == 0)\n\t\t\t\tcontinue;\n\t\t\tint cAttsSize = iAtts.size();\n\t\n\t\t\tiAtts.retainAll(atts);\n\t\t\t//Collection<OWLObject> iAtts = bloomFilter.intersection(cAtts);\n\t\t\t\n\t\t\t// simJ, one-sided, scaled by 1000\n\t\t\t// negate to ensure largest first\n\t\t\t//Integer score = - (iAtts.size() * 1000 / cAttsSize);\n\t\t\t\n\t\t\t// this biases us towards genes with large numbers of annotations,\n\t\t\t// but it is better at finding the models that share all features\n\t\t\tInteger score = - iAtts.size();\n\t\t\tif (!scoreCandidateMap.containsKey(score)) \n\t\t\t\tscoreCandidateMap.put(score, new HashSet<OWLObject>());\n\t\t\tscoreCandidateMap.get(score).add(candidate);\n\t\t\treporter.report(this,\"query_candidate_overlap_total\",queryObj,candidate,iAtts.size(),cAttsSize);\n\t\t}\n\t\t\n\t\tint n = 0;\n\t\tfor (Set<OWLObject> cs : scoreCandidateMap.values()) {\n\t\t\tn += cs.size();\n\t\t\thits.addAll(cs);\n\t\t}\n\t\t\n\t\tn = 0;\n\t\tfor (OWLObject hit : hits) {\n\t\t\tn++;\n\t\t\treporter.report(this,\"query_hit_rank_threshold\",queryObj,hit,n,maxHits);\n\t\t}\n\t\tif (hits.size() > maxHits)\n\t\t\thits = hits.subList(0, maxHits);\n\t\t\n\n\n\t\treturn hits;\n\t}", "java.util.List<Score>\n getScoresList();", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public HashMap<String, float[]> getAllInRange(float range, float [] obj_pos){\n HashMap<String, float[]> objs = new HashMap<>();\n float [] pos = new float [3];\n String name;\n float distance;\n for (int i = 0; i < field.length; i++){\n //euclidean distance and only add those in range\n //NOTE: could replace with (x<range && y<range && z<range)\n distance = (float)Math.sqrt(((obj_pos[0]-field[i].x)*(obj_pos[0]-field[i].x)) + ((obj_pos[1]-field[i].y)\n *(obj_pos[1]-field[i].y)) + ((obj_pos[2]-field[i].z)*(obj_pos[2]-field[i].z)));\n if (distance <= range) {\n name = \"Asteroid\" + i;\n pos[0] = field[i].x;\n pos[1] = field[i].y;\n pos[2] = field[i].z;\n objs.put(name, pos);\n }\n }\n return objs;\n }", "public abstract double[] getMinimumValues(List<AbstractObjective> objectives, List<? extends Solution<?>> solutions) ;", "@Test\n public void test_kmin_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmin(i5, 2, new CompareIntegerAscending());\n int expected = 3;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tTreeMap<Integer,String> map = new TreeMap<Integer,String>();\r\n\t\t\r\n map.put(2000, \"A\");\r\n map.put(5000, \"E\");\r\n map.put(6000, \"F\");\r\n map.put(7000, \"G\");\r\n map.put(3000, \"C\");\r\n map.put(4000, \"D\");\r\n map.put(2100, \"B\");\r\n System.out.println(map);\r\n System.out.println(\"max\"+map.lastKey());\r\n System.out.println(\"min\"+map.firstKey());\r\n \r\n Set<Integer> setLessThen3k = map.headMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessThen3k);\r\n \r\n Set<Integer> setLessgreater3k = map.tailMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessgreater3k);\r\n \r\n \r\n\r\n\t\tTreeMap<String,Integer> Usermap = new TreeMap<String,Integer>();\r\n\t\t\r\n\t\tUsermap.put( \"A\",2000);\r\n\t\tUsermap.put( \"F\",8000);\r\n\t\tUsermap.put( \"G\",7000);\r\n\t\tUsermap.put( \"C\",3000);\r\n\t\tUsermap.put( \"D\",3000);\r\n\t\tUsermap.put( \"E\",9000);\r\n\t\tUsermap.put( \"B\",8000);\r\n System.out.println(map);\r\n System.out.println(\"max\"+Usermap.lastKey());\r\n System.out.println(\"min\"+Usermap.firstKey());\r\n \r\n\r\n \r\n \r\n\t}", "List<Object> lessThanOrEqualsTo(Object value);", "@Override\n public int compareTo(ObjectScore arg0) {\n if (this.getScore() > arg0.getScore()) {\n return 1;\n } else if (this.getScore() < arg0.getScore()) {\n return -1;\n } else {\n return 0;\n }\n }", "protected abstract List<Double> calcScores();", "int[] minAndMax() {\n\n // **** declare and populate array of Integers with the values of the parents O(n) ****\n Integer[] arr = new Integer[this.parents.length];\n int i = 0;\n for (int val : this.parents)\n arr[i++] = val;\n\n // **** create a list with the values in the parents ****\n List<Integer> al = Arrays.asList(arr);\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse the array arr: O(n^2) ****\n for (int item : arr) {\n if (item != 0) {\n\n // **** get the frequency of item in the list: O(n) ****\n int freq = Collections.frequency(al, item);\n\n // ???? ????\n System.out.println(\"minAndMax <<< item: \" + item + \" freq: \" + freq);\n\n // **** update the min and max values ****\n min = Math.min(min, freq);\n max = Math.max(max, freq);\n }\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "public MatcherScores(SortedMap<Double, SortedSet<String>> scores)\n {\n this.scores = Objects.requireNonNull(scores);\n }", "@Nonnull\r\n\tpublic static <T, Key> Observable<List<T>> minMax(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func1<? super T, ? extends Key> keyExtractor,\r\n\t\t\t@Nonnull final Comparator<? super Key> keyComparator,\r\n\t\t\tfinal boolean max\r\n\t) {\r\n\t\treturn new Observable<List<T>>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super List<T>> observer) {\r\n\t\t\t\treturn source.register(new Observer<T>() {\r\n\t\t\t\t\t/** The current collection for the minimum of Ts. */\r\n\t\t\t\t\tList<T> collect;\r\n\t\t\t\t\t/** The current minimum value. */\r\n\t\t\t\t\tKey maxKey;\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void finish() {\r\n\t\t\t\t\t\tif (collect != null) {\r\n\t\t\t\t\t\t\tobserver.next(collect);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void next(T value) {\r\n\t\t\t\t\t\tKey key = keyExtractor.invoke(value);\r\n\t\t\t\t\t\tif (collect == null) {\r\n\t\t\t\t\t\t\tmaxKey = key;\r\n\t\t\t\t\t\t\tcollect = new ArrayList<T>();\r\n\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tint order = keyComparator.compare(maxKey, key);\r\n\t\t\t\t\t\t\tif (order == 0) {\r\n\t\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\tif (max ^ (order > 0)) {\r\n\t\t\t\t\t\t\t\tmaxKey = key;\r\n\t\t\t\t\t\t\t\tcollect = new ArrayList<T>();\r\n\t\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public double getBestScore();", "@Test\n public void test_kmax_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmax(i5, 5, new CompareIntegerAscending());\n int expected = 1;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "public void set(int min, int max, double score){\r\n\t\tchart[min][max] = score;\r\n\t}", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "@Override\n\tpublic int compareTo(Score s) {\n\t\treturn Double.compare(this.score, s.score);\n\t}", "private static Map<Double, List<Integer>> bucketizeListForTF(List<Integer> input, double bucketRange, int queryId)\r\n\t\t\tthrows ClassNotFoundException, SQLException, IOException {\r\n\t\tMap<Integer, Double> tfMap = new LinkedHashMap<Integer, Double>();\r\n\t\tList<Integer> resultsToIgnore = PersistenceController2.fetchAllResultsToIgnore(queryId, true);\r\n\t\tRankUtils.fillResultTFMap(queryId, tfMap, input, resultsToIgnore);\r\n\t\tboolean isRatioAccepted = RankUtils.foundNotFoundRatioAccepted(queryId, ACCEPTANCE_THRESHOLD);\r\n\t\tMap<Double, List<Integer>> sortedMap = RankUtils.bucketizeAndSortForTF2(isRatioAccepted, input, tfMap,\r\n\t\t\t\tbucketRange, resultsToIgnore);\r\n\t\treturn sortedMap;\r\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "public static ArrayList<String> getTopTen() throws Exception{\n\t\n\tint start, end;\n\tFile xmlFile = getFile();\n\tif(!xmlFile.exists()){\n\t\tJOptionPane.showMessageDialog(null, \"Record Does nor exist\");\n\t}\n\tScore root = new Score();\n\tMap<String, Integer> standings = new TreeMap<String, Integer>();\n root = readObjectAsXmlFrom(new FileReader(xmlFile.getAbsolutePath()), root.getClass());\n standings = root.standings;\n Map<String, Integer> sortedStandings = sortByValue(standings);\n Set<Entry<String, Integer>> keys = sortedStandings.entrySet();\n Object[] sortedArr = keys.toArray();\n end = sortedArr.length;\n if(end<=10) start = 0;\n else start = end -10;\n ArrayList<String> result = new ArrayList<String>();\n for(int x = start; x<end;x++){\n \tresult.add(sortedArr[x].toString());\n }\n\treturn result;\n }", "@Test\n public void when70To100ThenA() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(100);\n Student e = new Student(86);\n Predicate<Student> predicate = s -> s.getScore() >= 70 && s.getScore() <= 100;\n List<Student> expected = List.of(b, d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> scores = new TreeSet<Integer>();\n\t\tscores.add(new Integer(87));\n\t\tscores.add(new Integer(98));\n\t\tscores.add(new Integer(75));\n\t\tscores.add(new Integer(95));\n\t\tscores.add(new Integer(80));\n\t\t\n\t\tInteger score =null;\n\t\t\n\t\tscore = scores.first();\n\t\tSystem.out.println(\"가장 낮은 점수 : \" + score);\n\t\t\n\t\tscore = scores.last();\n\t\tSystem.out.println(\"가장 높은 점수 : \" + score);\n\t\t\n\t\tscore = scores.lower(new Integer(95));\n\t\tSystem.out.println(\"95점 아래의 점수 : \" + score);\n\t\t\n\t\tscore = scores.higher(new Integer(95));\n\t\tSystem.out.println(\"95점 위의 점수 : \" + score);\n\t\t\n\t\tscore = scores.ceiling(new Integer(95));\n\t\tSystem.out.println(\"95점 이상의 점수 : \" + score);\n\t\t\n\t\tscore = scores.floor(new Integer(95));\n\t\tSystem.out.println(\"95점 이하의 점수 : \" + score);\n\t\t\n\t\twhile(!scores.isEmpty()) {\n\t\t\tSystem.out.println(scores.pollFirst());\n\t\t}\n\t}", "private TopDocs combine(TopDocs in, HashMap<Integer, Float> resorted, QueryRescoreContext ctx) {\n for(int i=0;i<in.scoreDocs.length;i++) {\n if (resorted.size() != 0 && resorted.containsKey(in.scoreDocs[i].doc))\n {\n float score = (!ctx.normalize) ? resorted.get(in.scoreDocs[i].doc) :\n ((resorted.get(in.scoreDocs[i].doc) - bottomScore) / getDenominator());\n in.scoreDocs[i].score = ctx.scoreMode.combine(in.scoreDocs[i].score * ctx.queryWeight(), score * ctx.rescoreQueryWeight());\n }\n else\n {\n in.scoreDocs[i].score *= ctx.queryWeight();\n }\n }\n\n Arrays.sort(in.scoreDocs, SCORE_DOC_COMPARATOR);\n\n return in;\n }", "private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }", "@Test\n public void when1To49ThenB() {\n Student a = new Student(49);\n Student b = new Student(50);\n Student c = new Student(102);\n Student d = new Student(0);\n Student e = new Student(140);\n Predicate<Student> predicate = s -> s.getScore() > 0 && s.getScore() < 50;\n List<Student> expected = List.of(a, c, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "@Override\n public Map<Long, Map<Long, Number>> getFilteredRatings(Map<Long, Map<Long, Number>> originalSet) {\n Map<Long, Map<Long, Number>> ret = new TreeMap<Long, Map<Long, Number>>();\n\n for (Map.Entry<Long, Map<Long, Number>> userRatings : originalSet.entrySet()) {\n Long idUser = userRatings.getKey();\n Map<Long, Number> userRatingsMap = userRatings.getValue();\n\n ret.put(idUser, new TreeMap<Long, Number>());\n for (Map.Entry<Long, Number> entry : userRatingsMap.entrySet()) {\n Long idItem = entry.getKey();\n Number rating = entry.getValue();\n ret.get(idUser).put(idItem, rating.doubleValue());\n }\n }\n return ret;\n }", "@Override\r\n public List<V> rangeSearch(K key, String comparator) {\r\n if (!comparator.contentEquals(\">=\") &&\r\n !comparator.contentEquals(\"==\") &&\r\n !comparator.contentEquals(\"<=\"))\r\n return new ArrayList<V>();\r\n\r\n // if key is null, it returns a empty list\r\n if ( key == null){\r\n return new ArrayList<V>();\r\n }\r\n return root.rangeSearch(key, comparator);\r\n }", "Lista<K> keysInRange(K init, K end);", "public MaxAndMin(){\n this.list=new ListOfData().getData();\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "public V getLowerBound();", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "public static Student[] sortScore( Student s[]){\n\t\tStudent temp ;\r\n\t\tfor(int i=0; i<s.length; i++){\r\n\t\t\tfor(int j=i+1; j<s.length;j++)\r\n\t\t\t\tif(s[i].score > s[j].score){\r\n\t\t\t\t\ttemp = s[i];\r\n\t\t\t\t\ts[i] = s[j];\r\n\t\t\t\t\ts[j]= temp;\r\n\t\t\t\t} \t\t\t\r\n\t\t\t}\r\n\t\t\r\n\r\n\r\n\r\n\t\tSystem.out.println(\"Students with score<50 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score<50){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Students with score>=50 and <65 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=50 && s[i].score<65){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Students with score>=65 and <80 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=65 && s[i].score<80){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Students with score>=80 and <100 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=80 && s[i].score<=100){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn s;\r\n\r\n\r\n\t}", "public int minXValue (Map <String,ArrayList<Point>> map){\r\n \tint min = 0 , i = 0;\r\n \t\tfor (String key : map.keySet()) {\r\n \t\t\tif ( min < map.get(key).get(i).getX())\r\n \t\t\t\tmin = (int) map.get(key).get(i).getX();\r\n \t\t\ti++;\r\n \t\t}\r\n \treturn min;\t\r\n }", "private AttributeDetails minDequeIterator(AttributeDetails valObject) {\n if (valueRemoved != null) {\n for (Iterator<AttributeDetails> iterator = minDeque.descendingIterator(); iterator.hasNext();) {\n AttributeDetails possibleMinValue = iterator.next();\n if (possibleMinValue.getValue() > valObject.getValue()\n || possibleMinValue.getValue() >= valueRemoved.getValue()) {\n if (possibleMinValue.getValue() > valObject.getValue()) {\n iterator.remove();\n } else if (valueRemoved.equals(possibleMinValue)) {\n // If removed value is in minDeque, it must be removed\n iterator.remove();\n }\n } else {\n break;\n }\n }\n } else {\n for (Iterator<AttributeDetails> iterator = minDeque.descendingIterator(); iterator.hasNext();) {\n if (iterator.next().getValue() > valObject.getValue()) {\n iterator.remove();\n } else {\n break;\n }\n }\n }\n valObject.setMinThreshold();\n minDeque.addLast(valObject);\n return minDeque.peek();\n }", "@Test\n public void test() {\n List<Integer> list = Arrays.asList(48, 12, 24, 7, 8, -5, 24, 391, 24, 56, 2, 6, 8, 41);\n Heap minHeap = new Heap(Heap.MIN_HEAP, list);\n List<Integer> expected = Arrays.asList(-5, 2, 6, 7, 8, 8, 24, 391, 24, 56, 12, 24, 48, 41);\n Assert.assertArrayEquals(expected.toArray(), minHeap.heap.toArray());\n Heap maxHeap = new Heap(Heap.MAX_HEAP, list);\n Assert.assertArrayEquals(expected.toArray(), maxHeap.heap.toArray());\n }", "private List<Object> prevBestSubset(List<Integer> cornerSubset,\n\t\t\tStroke stroke, IObjectiveFunction objFunction) {\n\n\t\tList<Double> errorValues = new ArrayList<Double>();\n\t\tCollections.sort(cornerSubset);\n\n\t\tfor (int i = 0; i < cornerSubset.size(); i++) {\n\t\t\tInteger currCorner = cornerSubset.get(i);\n\n\t\t\tif (currCorner != 0 && currCorner != stroke.getNumPoints() - 1) {\n\n\t\t\t\tList<Integer> tempSubset = new ArrayList<Integer>(cornerSubset);\n\t\t\t\ttempSubset.remove(currCorner);\n\n\t\t\t\tdouble value = objFunction.solve(tempSubset, stroke);\n\t\t\t\terrorValues.add(value);\n\t\t\t} else {\n\t\t\t\terrorValues.add(Double.MAX_VALUE);\n\t\t\t}\n\t\t}\n\n\t\tdouble minError = Collections.min(errorValues);\n\t\tint index = errorValues.indexOf(minError);\n\t\tint worstCorner = cornerSubset.get(index);\n\n\t\tList<Integer> bestSubset = new ArrayList<Integer>(cornerSubset);\n\t\tbestSubset.remove(new Integer(worstCorner));\n\n\t\tList<Object> returnList = new ArrayList<Object>();\n\t\treturnList.add(bestSubset);\n\t\treturnList.add(minError);\n\n\t\treturn returnList;\n\t}", "@Test\n public void when50To69ThenB() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(58);\n Student e = new Student(69);\n Predicate<Student> predicate = s -> s.getScore() >= 50 && s.getScore() < 70;\n List<Student> expected = List.of(d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "public SortedSubset(RangeSet<T> constitutingSuperset, T lowerbound, T upperbound)\n\t{\n\t\tinit(constitutingSuperset, lowerbound, upperbound, true, false);\n\t}", "List<Item> findByPriceBetween(double minPrice, double maxPrice);", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "@Test\n public void test_kmin_Integer_Collection4() {\n List<Integer> i4 = new ArrayList<Integer>();\n i4.add(2);\n i4.add(2);\n int actual = Selector.kmin(i4, 1, new CompareIntegerAscending());\n int expected = 2;\n Assert.assertEquals(\"Failed in duplicate, size 2 list\", expected, actual);\n }", "public List<ScheduledInterview> getInRange(Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n scheduledInterviewsInRange.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n return scheduledInterviewsInRange;\n }", "public ArrayList<Integer> pointsInRange( int min, int max )\n {\n ArrayList<Integer> points = new ArrayList<Integer>();\n _root.findPoints( min, max, points );\n return points;\n }", "public static void sort(Object[] object) {\n // Set the variables for the current min, minIndex, and compare value\n Object currentMin;\n int currentMinIndex;\n int compareInt;\n\n // Begin loop to work through the list.\n for (int i = 0; i < object.length; i++) {\n // Find the minimum in the list.\n currentMin = object[i];\n currentMinIndex = i;\n for (int k = i + 1; k < object.length; k++) {\n compareInt = ((Comparable) currentMin).compareTo(object[k]);\n if(compareInt > 0) {\n currentMin = object[k];\n currentMinIndex = k;\n }\n }\n\n // Swap list[i] with list[currentMaxIndex] if needed.\n if (currentMinIndex != i) {\n object[currentMinIndex] = object[i];\n object[i] = currentMin;\n }\n }\n }", "default DiscreteSet2D subLevelSet(double value) {\r\n\t\treturn pointsSatisfying(d -> d <= value);\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tList<Integer> a = new ArrayList<>();\n\t\ta.add(1);\n\t\ta.add(1);\n\t\ta.add(2);\n\t\ta.add(2);\n\t\ta.add(4);\n\t\ta.add(3);\n\t\tList<Integer> b = new ArrayList<>();\n\t\tb.add(2);\n\t\tb.add(3);\n\t\tb.add(3);\n\t\tb.add(4);\n\t\tb.add(4);\n\t\tb.add(5);\n\t\tgetMinScore(6, a, b);\n\t}", "private static Map<String, Double> extractBestSuppliers (Map<Supplier, Double> supplierScores, int numResults) {\n\t\tMap<Supplier, Double> rankedResults = sortDescending(supplierScores);\n\t\tIterable<Entry<Supplier, Double>> firstEntries =\n\t\t\t\tIterables.limit(rankedResults.entrySet(), numResults);\n\t\t\n\t\t//return the [numResults] best suppliers according to highest scores\n\t\tMap<String, Double> finalSupplierMap = new LinkedHashMap<String, Double>();\t\t\n\t\tfor (Entry<Supplier, Double> e : firstEntries) {\n\t\t\tfinalSupplierMap.put(e.getKey().getId(), e.getValue());\n\t\t}\n\t\t\n\t\treturn finalSupplierMap;\n\n\t}", "public Set<T> getRanges();", "List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);", "static <K,V extends Comparable<? super V>> SortedSet<Map.Entry<K,V>> entriesSortedByValues(Map<K,V> map) {\n\t\t SortedSet<Map.Entry<K,V>> sortedEntries = new TreeSet<Map.Entry<K,V>>(\n\t\t new Comparator<Map.Entry<K,V>>() {\n\t\t @Override public int compare(Map.Entry<K,V> e1, Map.Entry<K,V> e2) {\n\t\t int res = e1.getValue().compareTo(e2.getValue());\n\t\t return res != 0 ? res : 1;\n\t\t }\n\t\t }\n\t\t );\n\t\t sortedEntries.addAll(map.entrySet());\n\t\t return sortedEntries;\n\t\t}", "public K min();", "private static int partition(Comparable[] data, int min, int max) {\n\n\t\t// Use first element as the partition value\n\n\t\tComparable partitionValue = data[min];\n\n\t\tint left = min;\n\t\tint right = max;\n\n\t\twhile (left < right) {\n\t\t\t// Search for an element that is > the partition element\n\t\t\twhile (data[left].compareTo(partitionValue) <= 0 && left < right)\n\t\t\t\tleft++;\n\t\t\t// Search for an element that is < the partitionelement\n\t\t\twhile (data[right].compareTo(partitionValue) > 0)\n\t\t\t\tright--;\n\t\t\tif (left < right)\n\t\t\t\tswap(data, left, right);\n\t\t}\n\t\t// Move the partition element to its final position\n\t\tswap(data, min, right);\n\n\t\treturn right;\n\t}", "public abstract double[] getLowerBound();", "@Override\n public List<Score> getAll() {\n Session session = FACTORY.openSession();\n\n try {\n List<Score> scores = session.createQuery(\"FROM Score s ORDER BY s.value DESC\", Score.class)\n .setMaxResults(MAX_RESULTS)\n .list();\n\n session.close();\n\n return scores;\n } catch (ClassCastException e) {\n LOG.error(\"Error happened during casting query results.\");\n return ImmutableList.of();\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tint k = 3;\n\t\t\n\t\tint max = Integer.MIN_VALUE, min = Integer.MAX_VALUE;\n\t\t\n\t\tint arr[] = new int[k];\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tif(max < arr[i])\n\t\t\t\tmax = arr[i];\n\t\t\tif(min > arr[i])\n\t\t\t\tmin = arr[i];\n\t\t}\n\t\t\n\t\t\n\t\tint [][] arr1 = {{3,8},{10,11},{1,3},{2,4}};\n\t\t\n\t\tSystem.out.println(selection(arr1));\n\t}", "@Test\r\n public void lowerHigherDoNotContains() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n check.remove(3);\r\n assertEquals(2, (int) check.lower(3));\r\n assertEquals(4, (int) check.higher(3));\r\n assertEquals(4, (int) check.ceiling(3));\r\n assertEquals(2, (int) check.floor(3));\r\n }", "static int[] jobOffers(int[] scores, int[] lowerLimits, int[] upperLimits) {\n int[] res = new int[lowerLimits.length];\n\n TreeMap<Integer, Integer> map = new TreeMap<>();\n\n for (int s : scores)\n map.put(s, map.getOrDefault(s, 0) + 1);\n\n for (int i = 0; i < lowerLimits.length; i++) {\n NavigableMap<Integer, Integer> submap = map.subMap(lowerLimits[i], true, upperLimits[i], true);\n int count = 0;\n for (Integer j : submap.values()) count += j;\n res[i] = count;\n }\n\n // If this solution works, please give a star to my repo (:\n return res;\n }", "Collection<KeywordHit> getOneHitPerObject(QueryResults queryResults) {\n HashMap<Long, KeywordHit> hits = new HashMap<>();\n for (Keyword keyWord : queryResults.getKeywords()) {\n for (KeywordHit hit : queryResults.getResults(keyWord)) {\n // add hit with lowest SolrObjectID-Chunk-ID combination.\n if (!hits.containsKey(hit.getSolrObjectId())) {\n hits.put(hit.getSolrObjectId(), hit);\n } else {\n if (hit.getChunkId() < hits.get(hit.getSolrObjectId()).getChunkId()) {\n hits.put(hit.getSolrObjectId(), hit);\n }\n }\n }\n }\n return hits.values();\n }", "private List<HashMap<TimeSelector, Long>> updateLeq(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLeq,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> leq = relationToTuples(rLeq);\n for (ArrayList<ComparableExpression> tuple : leq) {\n TimeSelector selector = null;\n Long literalValue = null;\n // only comparisons between a selector and a literal are interesting here\n // selector <= literal => upper(selector) = min(upper(selector), literal)\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literalValue = ((TimeLiteral) tuple.get(1)).getMilliseconds();\n upperBounds.put(selector, Math.min(upperBounds.get(selector), literalValue));\n } else if (tuple.get(1) instanceof TimeSelector &&\n tuple.get(0) instanceof TimeLiteral) {\n // selector >= literal => lower(selector) = max(lower(selector), literal)\n selector = (TimeSelector) tuple.get(1);\n literalValue = ((TimeLiteral) tuple.get(0)).getMilliseconds();\n lowerBounds.put(selector, Math.max(lowerBounds.get(selector), literalValue));\n } else {\n continue;\n }\n\n if (lowerBounds.get(selector) > upperBounds.get(selector)) {\n throw new QueryContradictoryException();\n }\n }\n\n return Arrays.asList(lowerBounds, upperBounds);\n }", "@Test\n\tpublic void testExtractMin() {\n\t\tHeap heap = new Heap(testArrayList.length);\n\t\tdouble[] expected = new double[] { 5, 7, 24, 36, 15, 48, 32, 47, 93, 27, 38, 70, 53, 33, 93 };\n\t\theap.build(testArrayList);\n\t\tassertEquals(3, heap.extractMin().key);\n\t\tassertArrayEquals(expected, heap.getKeyArray());\n\t\tassertEquals(14, heap.getSize());\n\t}", "@Test\n public void test_kmin_Integer_Collection2() {\n populate_i2();\n int actual = Selector.kmin(i2, 2, new CompareIntegerDescending());\n int expected = 7;\n Assert.assertEquals(\"2nd minimum in descending comparator not found\", expected, actual);\n }", "public abstract Key getLargest();", "public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}", "public interface GeneralRange<T extends Comparable<T>> {\n\t/**\n\t * Return whether a given comparable element is in a bound according to some field in that object.\n\t * @param a The value to be compared to the range.\n\t * @return Integer < 0 if it is less than the range, = 0 if it is in the range and > 0 if it is bigger than the range.\n\t */\n\tpublic int isInBounds(T a);\n}", "public Iterable<Point2D> range(RectHV rect) {\n\n if (rect == null)\n throw new IllegalArgumentException(\"Got null object in range()\");\n \n Queue<Point2D> pointsInside = new Queue<>();\n \n for (Point2D p : point2DSET) {\n \n double x = p.x();\n double y = p.y();\n if (x >= rect.xmin() && x <= rect.xmax() &&\n y >= rect.ymin() && y <= rect.ymax())\n pointsInside.enqueue(p);\n \n }\n \n return pointsInside;\n }", "@Test\n public void test_kmin_Integer_Collection1() {\n populate_i1();\n int actual = Selector.kmin(i1, 1, new CompareIntegerAscending());\n int expected = 2;\n Assert.assertEquals(\"1st minimum not found\", expected, actual);\n }", "public static void checkMinMax() {\r\n\t\tSystem.out.println(\"Beginning min/max test (should be -6 and 17)\");\r\n\t\tSortedIntList list = new SortedIntList();\r\n\t\tlist.add(5);\r\n\t\tlist.add(-6);\r\n\t\tlist.add(17);\r\n\t\tlist.add(2);\r\n\t\tSystem.out.println(\" min = \" + list.min());\r\n\t\tSystem.out.println(\" max = \" + list.max());\r\n\t\tSystem.out.println();\r\n\t}", "public interface MinTracker<T> {\n /** Compares an element x of a set to the current list of minimal elements\n * and modifies the set of minimal elements accordingly.\n * \n * @param x */\n void digest(T x);\n\n /** Retrieves the current set of minimal elements.\n * \n * @return Collection<T> of minimal elements */\n Collection<T> getMinElements();\n}", "private Node lowestCostThrough(List<Node> openSet, Map<Node, Double> costThrough){\n Node lowest = openSet.get(0);\n\n for(Node n: openSet){\n if(costThrough.get(n) < costThrough.get(lowest)){\n lowest = n;\n }\n }\n return lowest;\n }", "List<Athlete> getAllOrderByScore(OrderBy orderBy);", "@Override\r\n\tpublic int compareTo(ListElements arg0) {\n\t\tint compareQuantity = ((ListElements) arg0).getScore(); \r\n\t\t \r\n\t\t//ascending order\r\n\t\treturn this.score - compareQuantity;\r\n\t}", "@Nonnull\r\n\tpublic static <T, Key extends Comparable<? super Key>> Observable<List<T>> minBy(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func1<? super T, ? extends Key> keyExtractor) {\r\n\t\treturn minMax(source, keyExtractor, Functions.<Key>comparator(), false);\r\n\t}" ]
[ "0.6444513", "0.6241431", "0.6095876", "0.6029615", "0.5805711", "0.5790366", "0.55018336", "0.5333455", "0.5296234", "0.52202016", "0.5208709", "0.50498915", "0.50359553", "0.5025367", "0.5011891", "0.5010913", "0.4997607", "0.4939715", "0.4921398", "0.49148175", "0.49111667", "0.4859118", "0.48233265", "0.48193073", "0.4763983", "0.476105", "0.47466797", "0.47099268", "0.46985918", "0.4686829", "0.46732545", "0.4668164", "0.4664145", "0.46498173", "0.46481773", "0.46381104", "0.46057713", "0.460294", "0.4601602", "0.45995882", "0.45961943", "0.45690367", "0.4568537", "0.45638123", "0.45442528", "0.45261583", "0.45221406", "0.44906625", "0.4489441", "0.44893733", "0.44777146", "0.44427538", "0.4434297", "0.44324628", "0.4427377", "0.4412454", "0.4409702", "0.44088", "0.4399542", "0.43986887", "0.43825153", "0.4380652", "0.4375764", "0.4368404", "0.43656936", "0.43655413", "0.4354966", "0.43512595", "0.43469322", "0.4345503", "0.43415523", "0.4336307", "0.43339732", "0.43230295", "0.4322999", "0.4321163", "0.43201706", "0.4319296", "0.43101022", "0.43082786", "0.4308209", "0.43076527", "0.43041772", "0.43040353", "0.43015337", "0.43003646", "0.42986634", "0.42901957", "0.42894205", "0.42874375", "0.4283049", "0.42815977", "0.428058", "0.42761543", "0.42658222", "0.42589504", "0.4257838", "0.42526203", "0.42508277", "0.4248751" ]
0.6147966
2
Return a range of members with scores in a sorted set, by index. Ordered from the lowest to the highest score.
public Set<Tuple> zrangeWithScores(final String key, final long start, final long end) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.zrangeWithScores(key, start, end); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Score getScores(int index);", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "public Set<T> getRanges();", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n\t\tint[] ranks = new int[scores.length];\n\t\tint[] aliceRanks = new int[alice.length];\n\n\t\tint endIndex = -1;\n\t\tint currentElement = Integer.MIN_VALUE;\n\n\t\tfor (int i = 0; i < ranks.length; i++) {\n\t\t\tif (currentElement != scores[i]) {\n\t\t\t\tranks[++endIndex] = scores[i];\n\t\t\t\tcurrentElement = scores[i];\n\t\t\t}\n\t\t}\n\n\t\tint aliceEndIndex = -1;\n\t\tfor (int i = 0; i < aliceRanks.length; i++) {\n\t\t\tint currScore = alice[i];\n\t\t\t\n\t\t\tint globalRankApprox = binarySearch(ranks, alice[i], 0, endIndex);\n\t\t\t\n\t\t\tif (currScore >= ranks[globalRankApprox]) {\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1;\n\t\t\t}else{\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1+1;\n\t\t\t}\n\t\t}\n\n\t\treturn aliceRanks;\n\t}", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "public Score getScores(int index) {\n return scores_.get(index);\n }", "java.util.List<Score>\n getScoresList();", "List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);", "private ArrayList<Integer> possibleScores() {\n return new ArrayList<Integer>();\n }", "public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "int getRange();", "ScoreOrBuilder getScoresOrBuilder(\n int index);", "public int getLowerBound ();", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n /*\n * Write your code here.\n */\n List<Integer> ranks = new ArrayList<>();\n int i=0;\n while(i<scores.length-1) {\n ranks.add(scores[i]);\n int j=i+1;\n while(j<scores.length && scores[i]==scores[j]) {\n j+=1;\n }\n i=j;\n }\n ranks.add(scores[scores.length-1]);\n int[] aliceRank = new int[alice.length];\n for (int j=0; j< alice.length; j++) {\n int index = Collections.binarySearch(ranks, alice[j],Comparator.reverseOrder());\n aliceRank[j] = index > 0 ? index + 1 : index == 0 ? 1 : Math.abs(index);\n }\n return aliceRank;\n }", "public Set<Tuple> zrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScoreWithScores(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "java.util.List<AuditoriaUsuario> findRange(int startPosition, int maxResults, String sortFields, String sortDirections);", "public List<Integer> findTopGenesByRanking( Integer n ) throws DAOException;", "public ArrayList<Individual> getSortedPopulation(){\n ArrayList<Individual> sortedIndividuals = new ArrayList<Individual>();\n\n for(Individual individual: individuals){\n int indexToadd = 0;\n\n if(sortedIndividuals.isEmpty()){\n sortedIndividuals.add(individual);\n }\n else {\n for(Individual sortedIndividual : sortedIndividuals){\n if(individual.getFitness() > sortedIndividual.getFitness()){\n indexToadd = sortedIndividuals.indexOf(sortedIndividual);\n break;\n }\n }\n if(indexToadd == 0 ){\n sortedIndividuals.add(individual);\n }\n else {\n sortedIndividuals.add(indexToadd,individual);\n }\n }\n }\n return sortedIndividuals;\n }", "int getRanking();", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "static int[] jobOffers(int[] scores, int[] lowerLimits, int[] upperLimits) {\n int[] res = new int[lowerLimits.length];\n\n TreeMap<Integer, Integer> map = new TreeMap<>();\n\n for (int s : scores)\n map.put(s, map.getOrDefault(s, 0) + 1);\n\n for (int i = 0; i < lowerLimits.length; i++) {\n NavigableMap<Integer, Integer> submap = map.subMap(lowerLimits[i], true, upperLimits[i], true);\n int count = 0;\n for (Integer j : submap.values()) count += j;\n res[i] = count;\n }\n\n // If this solution works, please give a star to my repo (:\n return res;\n }", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public abstract void selectIndexRange(int min, int max);", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n \tal = new ArrayList<Integer>();\n \tint len = scores.length;\n \tranks = new int[len];\n \tal.add(scores[0]);\n \tranks[0]=1;\n \tfor(int i=1;i<len;++i)\n \t{\n \t\tal.add(scores[i]);\n \t\tif(scores[i]==scores[i-1])\n \t\t\tranks[i]=ranks[i-1];\n \t\telse\n \t\t\tranks[i]=ranks[i-1]+1;\n \t}\n \tint len2=alice.length;\n \tint[] ranksArr= new int[len2];\n \tfor(int i=0;i<len2;++i)\n \t{\n \t\tint binarySearch = Collections.binarySearch(al,alice[i],Collections.reverseOrder());\n \t\tif(binarySearch>=0)\n \t\t\tranksArr[i]=ranks[binarySearch];\n \t\telse\n \t\t{\n \t\t\tbinarySearch+=1;\n \t\tbinarySearch=-binarySearch;\n \t\t\tif(binarySearch==len)\n \t\t\t{\n \t\t\t\tbinarySearch-=1;\n \t\t\t\tranksArr[i]=ranks[binarySearch]+1;\n \t\t\t}\n \t\t\telse\n \t\t\t\tranksArr[i]=ranks[binarySearch];\n \t\t\t\n \t\t}\n \t\t\t\n \t}\n \treturn ranksArr;\n }", "public List<Pair<String, Integer>> getScores() {\n if (!this.list.isPresent()) {\n this.readScores();\n }\n return new ArrayList<>(this.list.get());\n }", "public void rankMatches();", "static int m36189a(Rect rect, Set<Rect> set) {\n int i = 0;\n if (set.isEmpty()) {\n return 0;\n }\n ArrayList<Rect> arrayList = new ArrayList<>();\n arrayList.addAll(set);\n Collections.sort(arrayList, new Comparator<Rect>() {\n /* renamed from: a */\n public final int compare(Rect rect, Rect rect2) {\n return Integer.valueOf(rect.top).compareTo(Integer.valueOf(rect2.top));\n }\n });\n ArrayList arrayList2 = new ArrayList();\n for (Rect rect2 : arrayList) {\n arrayList2.add(Integer.valueOf(rect2.left));\n arrayList2.add(Integer.valueOf(rect2.right));\n }\n Collections.sort(arrayList2);\n int i2 = 0;\n while (i < arrayList2.size() - 1) {\n int i3 = i + 1;\n if (!((Integer) arrayList2.get(i)).equals(arrayList2.get(i3))) {\n Rect rect3 = new Rect(((Integer) arrayList2.get(i)).intValue(), rect.top, ((Integer) arrayList2.get(i3)).intValue(), rect.bottom);\n int i4 = rect.top;\n for (Rect rect4 : arrayList) {\n if (Rect.intersects(rect4, rect3)) {\n if (rect4.bottom > i4) {\n i2 += rect3.width() * (rect4.bottom - Math.max(i4, rect4.top));\n i4 = rect4.bottom;\n }\n if (rect4.bottom == rect3.bottom) {\n break;\n }\n }\n }\n }\n i = i3;\n }\n return i2;\n }", "public int[] getScores() {\n return this.scores;\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> scores = new TreeSet<Integer>();\n\t\tscores.add(new Integer(87));\n\t\tscores.add(new Integer(98));\n\t\tscores.add(new Integer(75));\n\t\tscores.add(new Integer(95));\n\t\tscores.add(new Integer(80));\n\t\t\n\t\tInteger score =null;\n\t\t\n\t\tscore = scores.first();\n\t\tSystem.out.println(\"가장 낮은 점수 : \" + score);\n\t\t\n\t\tscore = scores.last();\n\t\tSystem.out.println(\"가장 높은 점수 : \" + score);\n\t\t\n\t\tscore = scores.lower(new Integer(95));\n\t\tSystem.out.println(\"95점 아래의 점수 : \" + score);\n\t\t\n\t\tscore = scores.higher(new Integer(95));\n\t\tSystem.out.println(\"95점 위의 점수 : \" + score);\n\t\t\n\t\tscore = scores.ceiling(new Integer(95));\n\t\tSystem.out.println(\"95점 이상의 점수 : \" + score);\n\t\t\n\t\tscore = scores.floor(new Integer(95));\n\t\tSystem.out.println(\"95점 이하의 점수 : \" + score);\n\t\t\n\t\twhile(!scores.isEmpty()) {\n\t\t\tSystem.out.println(scores.pollFirst());\n\t\t}\n\t}", "protected abstract List<Double> calcScores();", "public ArrayList<CollegeFootballTeam> rankTeams();", "public static List <Index> rangeOf(int start, int end) {\r\n FastTable <Index> list = FastTable.newInstance();\r\n for (int i=start; i < end; i++) {\r\n list.add(Index.valueOf(i));\r\n }\r\n return list;\r\n }", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "static List<Range<Long>> getRanges(Collection<Long> fullPulses) {\n checkNotNull(fullPulses, \"fullPulses was null\");\n\n List<Long> sortedPulses = fullPulses.stream().sorted().collect(toList());\n\n Optional<Long> first = sortedPulses.stream().findFirst();\n if (!first.isPresent()) {\n return emptyList();\n }\n\n Long bottomOfRange = first.get();\n if (sortedPulses.size() == 1) {\n return singletonList(singleton(bottomOfRange));\n }\n\n List<Range<Long>> foundRanges = new ArrayList<>();\n\n Long lastPulse = bottomOfRange;\n\n for (Long pulse : sortedPulses) {\n if (isaSignificantGapBetweenPulses(lastPulse, pulse)) {\n // We have a range\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n\n bottomOfRange = pulse;\n }\n lastPulse = pulse;\n }\n\n if (bottomOfRange.equals(lastPulse)) {\n foundRanges.add(singleton(bottomOfRange));\n } else {\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n }\n\n return ImmutableList.copyOf(foundRanges);\n }", "public void sortScores(){\r\n // TODO: Use a single round of bubble sort to bubble the last entry\r\n // TODO: in the high scores up to the correct location.\r\n \tcount=0;\r\n \tfor(int i=Settings.numScores-1; i>0;i--){\r\n \t\tif(scores[i]>scores[i-1]){\r\n \t\t\tint tempS;\r\n \t\t\ttempS=scores[i];\r\n \t\t\tscores[i]=scores[i-1];\r\n \t\t\tscores[i-1]=tempS;\r\n \t\t\t\r\n \t\t\tString tempN;\r\n \t\t\ttempN=names[i];\r\n \t\t\tnames[i]=names[i-1];\r\n \t\t\tnames[i-1]=tempN;\r\n \t\t\tcount++;\r\n \t\t}\r\n \t}\r\n }", "public static int minPartition(int[] nums, int index, int firstSet, int secondSet,\r\n Map<String, Integer> lookUp) {\r\n\r\n if (index == nums.length) {\r\n return Math.abs(firstSet - secondSet);\r\n }\r\n\r\n String key = index + \"!\" + firstSet + secondSet;\r\n if (lookUp.containsKey(key)) {\r\n return lookUp.get(key);\r\n }\r\n int include = minPartition(nums, index + 1, firstSet + nums[index], secondSet, lookUp);\r\n\r\n int exclude = minPartition(nums, index + 1, firstSet, secondSet + nums[index], lookUp);\r\n\r\n lookUp.put(key, Integer.min(include, exclude));\r\n\r\n return lookUp.get(key);\r\n }", "long getParticipants(int index);", "public static Student[] sortScore( Student s[]){\n\t\tStudent temp ;\r\n\t\tfor(int i=0; i<s.length; i++){\r\n\t\t\tfor(int j=i+1; j<s.length;j++)\r\n\t\t\t\tif(s[i].score > s[j].score){\r\n\t\t\t\t\ttemp = s[i];\r\n\t\t\t\t\ts[i] = s[j];\r\n\t\t\t\t\ts[j]= temp;\r\n\t\t\t\t} \t\t\t\r\n\t\t\t}\r\n\t\t\r\n\r\n\r\n\r\n\t\tSystem.out.println(\"Students with score<50 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score<50){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Students with score>=50 and <65 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=50 && s[i].score<65){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Students with score>=65 and <80 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=65 && s[i].score<80){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Students with score>=80 and <100 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=80 && s[i].score<=100){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn s;\r\n\r\n\r\n\t}", "public static ArrayList<Member> sortByNumber(ArrayList<Member> s) {\r\n\t\tArrayList<Member> output = new ArrayList<Member>();\r\n\t\twhile(s.size()>0) {\r\n\t\t\tint minNo=0;\r\n\t\t\tString min=s.get(0).getNumber();\r\n\t\t\tfor(int i=0;i<s.size();i++) {\r\n\t\t\t\tif(Member.numberSmaller(s.get(i).getNumber(),min)) {\r\n\t\t\t\t\tmin=s.get(i).getNumber();\r\n\t\t\t\t\tminNo=i;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\toutput.add(s.get(minNo));\r\n\t\t\ts.remove(s.get(minNo));\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScoreWithScores(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Iterable<Point2D> range(RectHV rect) {\n ArrayList<Point2D> returnArray = new ArrayList<Point2D>();\n if (rect == null) {\n throw new IllegalArgumentException(\"rect input is null\");\n }\n for (Point2D i : pointsSet) {\n if (rect.contains(i))\n returnArray.add(i);\n }\n return returnArray;\n }", "public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> highScoreList = new ArrayList<>();\n if (scoreInfoList.size() <= size) {\n highScoreList = scoreInfoList;\n } else {\n for (int i = 0; i < size; i++) {\n highScoreList.add(scoreInfoList.get(i));\n }\n }\n return highScoreList;\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "abstract List<V> rangeSearch(K key, String comparator);", "int[] getGivenByOrder();", "public TreeSet<Integer> rankSet() {\n TreeSet<Integer> rankSet = new TreeSet<Integer>();\n for (Card c : cards) {\n \tint org = rankSet.size();\n \trankSet.add(c.getRank());\n \tif (org == rankSet.size()) {\n \tthis.sameSet.add(c.getRank());\n }\n } \n return rankSet;\n }", "@Override\r\n\tpublic Score get(int i) throws IndexOutOfBoundsException {\r\n\t\t//when i is less than zero or greater than size()-1\r\n\t\tif (i < 0 || i > size() - 1)\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\treturn scoreList[i];\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tList<Integer> a = new ArrayList<>();\n\t\ta.add(1);\n\t\ta.add(1);\n\t\ta.add(2);\n\t\ta.add(2);\n\t\ta.add(4);\n\t\ta.add(3);\n\t\tList<Integer> b = new ArrayList<>();\n\t\tb.add(2);\n\t\tb.add(3);\n\t\tb.add(3);\n\t\tb.add(4);\n\t\tb.add(4);\n\t\tb.add(5);\n\t\tgetMinScore(6, a, b);\n\t}", "public static void main(String[] args) {\n\n Set<Student> set = Sets.newTreeSet();\n Student s3 = new Student(3);\n Student s4 = new Student(4);\n Student s5 = new Student(5);\n Student s1 = new Student(1);\n Student s2 = new Student(2);\n List<Student> list = Lists.newArrayList();\n list.add(s4);\n list.add(s3);\n list.add(s5);\n list.add(s1);\n list.add(s2);\n\n list.sort(new Comparator<Student>() {\n @Override\n public int compare(Student o1, Student o2) {\n return o1.getAge() - o2.getAge() < 0 ? 1 : -1;\n }\n });\n System.out.println(list);\n\n// s1.toString();\n// set.add(s3);\n// set.add(s4);\n// set.add(s5);\n// set.add(s1);\n// set.add(s2);\n// System.out.println(set);\n// for (Student s : set) {\n// System.out.println(s);\n// }\n\n\n }", "Lista<V> valuesInRange(K init, K end);", "CollectionRange createCollectionRange();", "@Test\n public void when1To49ThenB() {\n Student a = new Student(49);\n Student b = new Student(50);\n Student c = new Student(102);\n Student d = new Student(0);\n Student e = new Student(140);\n Predicate<Student> predicate = s -> s.getScore() > 0 && s.getScore() < 50;\n List<Student> expected = List.of(a, c, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "public Set<String> zrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScore(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "private ArrayList<int[]> selectionRank(int[][] chromosomes, float percentToSelect) {\n\n\t\tArrayList<int[]> selectedChromosomes = new ArrayList<int[]>();\n\n\t\t//get fitnesses and ranks of chromosomes, save in array to avoid recalculating\n\t\tint[] fitnesses = new int[chromosomes.length];\n\t\tArrayList<Integer> ranks = new ArrayList<Integer>(); //holds indices of chromosomes, position in arraylist indicates rank\n\n\t\tfor (int i = 0; i < chromosomes.length; i++) { //set up list of fitnesses and ranks\n\t\t\tfitnesses[i] = getFitness(chromosomes[i]);\n\n\n\t\t\tboolean added = false;\n\t\t\tfor (int keyIndex = 0; keyIndex < ranks.size(); keyIndex++) { //only search the second half\n\t\t\t\tif (fitnesses[ranks.get(keyIndex)] > fitnesses[i]) { //if this one is worse\n\t\t\t\t\tranks.add(keyIndex, i); //inverted rank\n\t\t\t\t\tadded = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!added) {\n\t\t\t\tranks.add(i);\n\t\t\t}\n\n\t\t}// end fitness ranking (low fitness is best, last index is worst)\n\n\n\t\t//spin the roulette wheel\n\t\tfor (int i = 0; i < chromosomes.length * percentToSelect; i++) {\n\t\t\tint currentFitnessTotal = 0;\n\t\t\tint fitSelector = rand.nextInt(chromosomes.length); //where the wheel stops\n\t\t\tint fitnessCutoff = (fitSelector * (fitSelector + 1)) / 2;\n\n\t\t\tfor (int j = 0; j < ranks.size(); j++) { //go through all ranks to see who is selected this spin\n\t\t\t\tif (currentFitnessTotal < fitnessCutoff)\n\t\t\t\t\tcurrentFitnessTotal += chromosomes.length - ranks.get(j); //reorder fitness properly\n\n\t\t\t\tif (currentFitnessTotal >= fitnessCutoff) { //if this rank pushed us over the edge, save it\n\t\t\t\t\tselectedChromosomes.add(chromosomes[ranks.get(j)]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}//end roulette spinning\n\n\t\treturn selectedChromosomes;\n\t}", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "public List<StaffMember> getTeamMembers(){\n\t\tSet<StaffMember> team = teamleader.getDirectSubordinates();\n\t\tStaffMemberIterator iterator = new StaffMemberIterator(team);\n\t\tList<StaffMember> listOfMembers = iterator.listOfStaffMember;\n\t\tlistOfMembers.add(teamleader);\n\t\tCollections.sort(listOfMembers);\n\t\treturn listOfMembers;\n\t}", "public int getScorePoints() {\n/* 75 */ return this.scorePoints;\n/* */ }", "@Test\n public void when70To100ThenA() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(100);\n Student e = new Student(86);\n Predicate<Student> predicate = s -> s.getScore() >= 70 && s.getScore() <= 100;\n List<Student> expected = List.of(b, d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "public void setScores(ArrayList<Integer> scores) { this.scores = scores; }", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "private static void accessIndexInSet(Set<Integer> numbers) {\n int desiredIndex = 2;\n int currentIndex = 0;\n\n //iterate the HashSet\n Iterator<Integer> iterator = numbers.iterator();\n while (iterator.hasNext()) {\n\n if (currentIndex == desiredIndex)\n System.out.println(\"Element at index \" + desiredIndex + \" is: \" + iterator.next());\n iterator.next();\n currentIndex++;\n }\n\n // M2: convert it to list\n List<Integer> list = new ArrayList<Integer>(numbers);\n list.get(2);\n\n // M3: convert it to Array []\n Integer[] integers = numbers.toArray(new Integer[numbers.size()]);\n int i = integers[2];\n }", "@Override\n\tpublic List<Score> getRandomScoreList() {\n\t\treturn scoreDao.getRandomScoreList();\n\t}", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "ArrayList<Integer> getLeaderboardScores() {\r\n return leaderboardScores;\r\n }", "public List<Question> getQuestionsByPoints() {\n List<Membership> memberships = (ArrayList<Membership>) this.getMemberships();\n List<Question> questions = new ArrayList<Question>();\n\n for (Membership m : memberships) \n \tfor(Question q: m.getQuestions())\n \t\tquestions.add(q);\n // We want the most recent questions first so reverse the array with\n // Collections.reverse\n // PostPointsComparator returns questions in asc we want desc\n Collections.sort(questions, new PostPointsComparator());\n Collections.reverse(questions);\n\n return questions;\n }", "public ArrayList<CollegeFootballTeam> rankTeams()\r\n\t{\r\n\t\tArrayList<CollegeFootballTeam> rankedTeams = new ArrayList<>();\r\n\t\t\r\n\t\t// Calls the selection sort method, which ranks the teams from lower to higher scores based on the sum of their votes.\r\n\t\t// The teams are placed into a new ArrayList. \r\n\t\trankedTeams = selectionSort(teams);\r\n\t\t\r\n\t\treturn rankedTeams;\r\n\t}", "@Test\n public void when50To69ThenB() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(58);\n Student e = new Student(69);\n Predicate<Student> predicate = s -> s.getScore() >= 50 && s.getScore() < 70;\n List<Student> expected = List.of(d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "int[] minAndMax() {\n\n // **** declare and populate array of Integers with the values of the parents O(n) ****\n Integer[] arr = new Integer[this.parents.length];\n int i = 0;\n for (int val : this.parents)\n arr[i++] = val;\n\n // **** create a list with the values in the parents ****\n List<Integer> al = Arrays.asList(arr);\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse the array arr: O(n^2) ****\n for (int item : arr) {\n if (item != 0) {\n\n // **** get the frequency of item in the list: O(n) ****\n int freq = Collections.frequency(al, item);\n\n // ???? ????\n System.out.println(\"minAndMax <<< item: \" + item + \" freq: \" + freq);\n\n // **** update the min and max values ****\n min = Math.min(min, freq);\n max = Math.max(max, freq);\n }\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "private static ArrayList getStocksSpan(int[] a) {\n Stack<ValueIndex> stack = new Stack<>();\n ArrayList<Integer> list = new ArrayList();\n for(int i =0 ; i<a.length;i++){\n if(stack.isEmpty())list.add(-1);\n else if(stack.peek().value>a[i])list.add(i-1);\n else if(stack.peek().value<= a[i]){\n while(!stack.isEmpty() && stack.peek().value<=a[i])stack.pop();\n if(stack.isEmpty())list.add(-1);\n else list.add(stack.peek().index);\n }\n stack.push(new ValueIndex(a[i],i));\n }\n for(int i=0;i<list.size();i++){\n// System.out.print(list.get(i)+\"\\t\"); //[-1, 1, 2, -1, 4, -1, 6]\n if(list.get(i)!= -1)list.set(i,i-list.get(i));\n }\n return list;\n }", "public SummaryRanges() {\n S.add(new MyPair(-INF, -INF)); S.add(new MyPair(INF, INF));\n }", "Set<Art> getArtByPrice(Double upper, Double lower);", "public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> l = new ArrayList<ScoreInfo>();\n l.addAll(this.highScores); //make a copy;\n return l;\n }", "public static int pickWeighted(int start, int end, Vector data, Random rng)\r\n\t{\r\n\t\t//System.out.println(Arrays.toString(data));\r\n\t\tVector dupes = data.copy();\r\n\t\tdouble totalSum=0;\r\n\t\tfor(int a=start;a<end;a++)\r\n\t\t{\r\n\t\t\ttotalSum+=data.get(a);\r\n\t\t}\r\n\t\t//divide chances by a.\r\n\t\tdupes.scale(1.0/totalSum);\r\n\t\tdouble check = rng.nextDouble();\r\n\t\ttotalSum=0;\r\n\t\tfor(int a=start;a<end;a++)\r\n\t\t{\r\n\t\t\tif(totalSum+dupes.get(a)>check)\r\n\t\t\t\treturn a;\r\n\t\t\ttotalSum+=dupes.get(a);\r\n\t\t}\r\n\t\treturn end-1;\r\n\t}", "private static void merge(ArrayList<Score> items, int start, int mid, int end) {\r\n Object[] temp = new Object[items.size()];\r\n int pos1 = start;\r\n int pos2 = mid + 1;\r\n int spot = start;\r\n\r\n while (!(pos1 > mid && pos2 > end)) {\r\n if ((pos1 > mid) || ((pos2 <= end) && (items.get(pos2).compareTo(items.get(pos1)) < 0))) {\r\n temp[spot] = items.get(pos2);\r\n pos2 += 1;\r\n } else {\r\n temp[spot] = items.get(pos1);\r\n pos1 += 1;\r\n }\r\n spot += 1;\r\n }\r\n for (int i = start; i <= end; i++) {\r\n items.set(i, (Score) temp[i]);\r\n }\r\n }", "public List<Integer> getBySetPos() {\n\t\treturn bySetPos;\n\t}", "public void scoreSorting(SortingQuiz scoringMethod, SortingSample s) {\r\n for(int i=1; i<=s.answers.size(); i++) {\r\n HourGlass scores = new HourGlass();\r\n scores.weightAnswer(scoringMethod.answers.get(s.getAnswerNum(i)));\r\n System.out.println(scores);\r\n// this.scores.weightAnswer(scoringMethod.answers.get(s.getAnswerNum(i)));\r\n }\r\n }", "public abstract Collection<T> getMatchesAboveThreshold(T first,\n double similarityThreshold);", "public int[] sortedSquares(int[] nums) {\n int start = 0;\n int end = nums.length - 1;\n int lastIndex = nums.length - 1;\n int result[] = new int[nums.length];\n while (start <= end) {\n int startSqr = nums[start] * nums[start];\n int endSqr = nums[end] * nums[end];\n if (startSqr < endSqr) {\n result[lastIndex--] = endSqr;\n end--;\n } else {\n result[lastIndex--] = startSqr;\n start++;\n }\n }\n return result;\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }", "public double getBestScore();", "public static void main(String[] args) {\n int size = 100;\n int mult = 100;\n\n ArrayList<Integer> numbers = new ArrayList<>();\n\n //generate random array to sort\n for (int i = 0; i < size; i++) {\n numbers.add((int) (Math.random() * mult));\n }\n\n System.out.println(numbers.toString());\n\n numbers = quickSortSubset(numbers,0);\n\n System.out.println(numbers.toString());\n\n }", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "private int getMostShares(int start){\n int mostShares = 0;\n int index = 0;\n for (int i = 0; i < player.getShares().size(); i++) {\n if(mostShares < playerList.get(start).getShares().get(i)){\n mostShares = playerList.get(start).getShares().get(i);\n index = i;\n }\n }\n return index;\n }", "private HashSet<Position> getInRange(int p_r, Distance p_d)\n {\n HashSet<Position> s = new HashSet<Position>();\n\n for (int x = 0; x <= p_r; x++)\n {\n int y = 0;\n Position p = new Position(this.x + x, this.y + y);\n\n while (p_d.inside(this, p, p_r))\n {\n s.add(p);\n s.add(new Position(this.x - x, this.y + y));\n s.add(new Position(this.x + x, this.y - y));\n s.add(new Position(this.x - x, this.y - y));\n p = new Position(this.x + x, this.y + ++y);\n }\n }\n return s;\n }", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n int[] alicePos = new int[alice.length];\n System.out.println(\"Alice length\" + alice.length);\n\n scores = of(scores).sorted().distinct().toArray();\n\n int[] newScores = new int[scores.length];\n\n for (int i = 0; i < newScores.length; i++) {\n if (i < scores.length) {\n newScores[i] = scores[i];\n\n System.out.println(\"res \" + newScores[i]);\n }\n }\n\n List<Integer> newList = Arrays.stream(newScores).boxed().collect(Collectors.toList());\n System.out.println(newList.size());\n\n\n for (int i = 0; i < alice.length; i ++) {\n System.out.println(\"Alices is \"+ alice[i]);\n newList.add(alice[i]);\n newList = newList.stream().distinct().sorted().collect(Collectors.toList());\n int pos = newList.indexOf(alice[i]);\n alicePos [i]= newList.size() - pos;\n newList.remove(pos);\n }\n\n return alicePos;\n }", "@Test\n public void test_range_Integer_Collection4() {\n populate_i3();\n Collection<Integer> actual = Selector.range(i3, 4, 8, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(8);\n expected.add(7);\n expected.add(6);\n expected.add(5);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "public java.util.List<Score> getScoresList() {\n return scores_;\n }", "private int randomizeScore(int score, List<Integer> scores, List<Integer> rowIndices, List<Integer> columnIndices) {\n List<Integer> equalScoreIndices = new ArrayList<>();\n\n for (int i = 0; i < scores.size(); i++) {\n if (scores.get(i) == score) {\n equalScoreIndices.add(i);\n }\n }\n\n Random rand = new Random();\n int randomIndex = equalScoreIndices.get(rand.nextInt(equalScoreIndices.size()));\n\n rowOfResult = rowIndices.get(randomIndex);\n columnOfResult = columnIndices.get(randomIndex);\n\n return score;\n }", "public void sortGivenArray_popularity() { \n int i, j, k; \n for(i = movieList.size()/2; i > 0; i /= 2) {\n for(j = i; j < movieList.size(); j++) {\n Movie key = movieList.get(j);\n for(k = j; k >= i; k -= i) {\n if(key.rents > movieList.get(k-i).rents) {\n movieList.set(k, movieList.get(k-i));\n } else {\n break; \n }\n }\n movieList.set(k, key);\n }\n } \n }", "private List<Integer> gradeExams() {\r\n\t\tlog(mName + \": grading exams\");\r\n\t\tRandom rand = new Random();\r\n\t\tList<Integer> scores = new ArrayList<Integer>();\r\n\r\n\t\tfor (Contestant c : mContestants) {\r\n\t\t\tint score = rand.nextInt(101);\r\n\t\t\tlog(mName + \": \" + c.getName() + \" has scored \" + score);\r\n\t\t\tc.setExamScore(score);\r\n\t\t\tscores.add(score);\r\n\t\t}\r\n\r\n\t\treturn scores;\r\n\t}", "List<Integer> getSortedList() {\n Set<Map.Entry<Integer, Integer>> setOfMovieIDPopularityPairs = mostPopularMoviesByID.entrySet();\n // Then, it is converted into a list (for sorting)\n List<Map.Entry<Integer, Integer>> listOfMovieIDPopularityPairs = new ArrayList<>(setOfMovieIDPopularityPairs);\n // A comparator is created that can be used to \"instruct\" sorting by values (popularity)\n Comparator<Map.Entry<Integer, Integer>> popularityComparator = Map.Entry.comparingByValue();\n // Last step - sort in descending order by popularity\n listOfMovieIDPopularityPairs.sort(popularityComparator.reversed());\n\n // Eventually, movieIDs are extracted from the sorted list movieID-Popularity pairs\n List<Integer> listOfMostPopularMoviesByID = new ArrayList<>(listOfMovieIDPopularityPairs.size());\n for (Map.Entry<Integer, Integer> movieIDPopularityPair : listOfMovieIDPopularityPairs) {\n listOfMostPopularMoviesByID.add(movieIDPopularityPair.getKey());\n }\n return listOfMostPopularMoviesByID;\n }", "int getScoreValue();", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> point_list = new SET<Point2D>();\n rangesearch(root, rect, point_list);\n return point_list;\n }", "public void assignPointsToTeams(){\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalRuns() < two.getTotalRuns()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsRuns(setvalue);\n }\n \n //SORTS FOR TOTALHOMERUNS THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalHomeRuns() < two.getTotalHomeRuns()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsHomeRuns(setvalue);\n }\n \n //SORTS FOR RunsBattedIn THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalRunsBattedIn() < two.getTotalRunsBattedIn()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsRunsBattedIn(setvalue);\n }\n \n //SORTS FOR STOLENBASES THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalStolenBases() < two.getTotalStolenBases()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsStolenBases(setvalue);\n }\n \n //SORTS FOR BATTINGAVERAGE THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getBattingAverage() < two.getBattingAverage()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsBattingAverage(setvalue);\n }\n \n //SORTS FOR Wins THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getWins() < two.getWins()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsWins(setvalue);\n }\n \n //SORTS FOR Strikeouts THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getStrikeouts() < two.getStrikeouts()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsStrikeouts(setvalue);\n }\n \n //SORTS FOR Saves THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getSaves() < two.getSaves()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsSaves(setvalue);\n }\n \n //SORTS FOR ERA THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getEarnedRunAverage() < two.getEarnedRunAverage()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsERA(setvalue);\n }\n \n //SORTS FOR WHIP THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getWhip() < two.getWhip()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsWHIP(setvalue);\n } \n }", "Lista<K> keysInRange(K init, K end);", "public int getScore(int index) {\n return ranking.get(index).getvalue();\n }" ]
[ "0.6206421", "0.5655876", "0.53487784", "0.527851", "0.5250623", "0.52452075", "0.5213378", "0.52009326", "0.5116471", "0.5091675", "0.5085063", "0.50831497", "0.50667274", "0.5055654", "0.504448", "0.5015159", "0.4998089", "0.49774575", "0.4974202", "0.49685654", "0.49673703", "0.4963066", "0.49578843", "0.49571276", "0.4951436", "0.49459553", "0.49408147", "0.49291784", "0.49250534", "0.49240556", "0.49219537", "0.49219355", "0.4912634", "0.49098575", "0.4891789", "0.48733678", "0.485763", "0.4847147", "0.48441112", "0.48369893", "0.48359513", "0.48285875", "0.48153287", "0.4813799", "0.48137888", "0.4802093", "0.48013344", "0.4800051", "0.47851887", "0.47733238", "0.47651294", "0.47611758", "0.47606912", "0.47501546", "0.4749508", "0.4729997", "0.47171643", "0.47132358", "0.47017175", "0.46951368", "0.46933252", "0.4692452", "0.46915692", "0.46908382", "0.46868145", "0.4685931", "0.46761975", "0.4674622", "0.46609706", "0.46586344", "0.46482113", "0.46479228", "0.4636784", "0.46282905", "0.4620451", "0.4617909", "0.46170962", "0.46104932", "0.46033487", "0.4600366", "0.4597577", "0.45944512", "0.45939344", "0.4586963", "0.45861128", "0.45858783", "0.45829427", "0.45799923", "0.45765868", "0.45760298", "0.4570139", "0.4569423", "0.45681462", "0.45655152", "0.45628402", "0.45622313", "0.4559804", "0.4558724", "0.4554425", "0.4552157" ]
0.5394859
2
Return a range of members with scores in a sorted set, by index. Ordered from the highest to the lowest score.
public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long end) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.zrevrangeWithScores(key, start, end); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Score getScores(int index);", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "public Set<Tuple> zrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<T> getRanges();", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n\t\tint[] ranks = new int[scores.length];\n\t\tint[] aliceRanks = new int[alice.length];\n\n\t\tint endIndex = -1;\n\t\tint currentElement = Integer.MIN_VALUE;\n\n\t\tfor (int i = 0; i < ranks.length; i++) {\n\t\t\tif (currentElement != scores[i]) {\n\t\t\t\tranks[++endIndex] = scores[i];\n\t\t\t\tcurrentElement = scores[i];\n\t\t\t}\n\t\t}\n\n\t\tint aliceEndIndex = -1;\n\t\tfor (int i = 0; i < aliceRanks.length; i++) {\n\t\t\tint currScore = alice[i];\n\t\t\t\n\t\t\tint globalRankApprox = binarySearch(ranks, alice[i], 0, endIndex);\n\t\t\t\n\t\t\tif (currScore >= ranks[globalRankApprox]) {\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1;\n\t\t\t}else{\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1+1;\n\t\t\t}\n\t\t}\n\n\t\treturn aliceRanks;\n\t}", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "public Score getScores(int index) {\n return scores_.get(index);\n }", "java.util.List<Score>\n getScoresList();", "List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);", "private ArrayList<Integer> possibleScores() {\n return new ArrayList<Integer>();\n }", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n /*\n * Write your code here.\n */\n List<Integer> ranks = new ArrayList<>();\n int i=0;\n while(i<scores.length-1) {\n ranks.add(scores[i]);\n int j=i+1;\n while(j<scores.length && scores[i]==scores[j]) {\n j+=1;\n }\n i=j;\n }\n ranks.add(scores[scores.length-1]);\n int[] aliceRank = new int[alice.length];\n for (int j=0; j< alice.length; j++) {\n int index = Collections.binarySearch(ranks, alice[j],Comparator.reverseOrder());\n aliceRank[j] = index > 0 ? index + 1 : index == 0 ? 1 : Math.abs(index);\n }\n return aliceRank;\n }", "int getRange();", "public int getLowerBound ();", "ScoreOrBuilder getScoresOrBuilder(\n int index);", "public Set<Tuple> zrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScoreWithScores(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "java.util.List<AuditoriaUsuario> findRange(int startPosition, int maxResults, String sortFields, String sortDirections);", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "static int[] jobOffers(int[] scores, int[] lowerLimits, int[] upperLimits) {\n int[] res = new int[lowerLimits.length];\n\n TreeMap<Integer, Integer> map = new TreeMap<>();\n\n for (int s : scores)\n map.put(s, map.getOrDefault(s, 0) + 1);\n\n for (int i = 0; i < lowerLimits.length; i++) {\n NavigableMap<Integer, Integer> submap = map.subMap(lowerLimits[i], true, upperLimits[i], true);\n int count = 0;\n for (Integer j : submap.values()) count += j;\n res[i] = count;\n }\n\n // If this solution works, please give a star to my repo (:\n return res;\n }", "int getRanking();", "public List<Integer> findTopGenesByRanking( Integer n ) throws DAOException;", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n \tal = new ArrayList<Integer>();\n \tint len = scores.length;\n \tranks = new int[len];\n \tal.add(scores[0]);\n \tranks[0]=1;\n \tfor(int i=1;i<len;++i)\n \t{\n \t\tal.add(scores[i]);\n \t\tif(scores[i]==scores[i-1])\n \t\t\tranks[i]=ranks[i-1];\n \t\telse\n \t\t\tranks[i]=ranks[i-1]+1;\n \t}\n \tint len2=alice.length;\n \tint[] ranksArr= new int[len2];\n \tfor(int i=0;i<len2;++i)\n \t{\n \t\tint binarySearch = Collections.binarySearch(al,alice[i],Collections.reverseOrder());\n \t\tif(binarySearch>=0)\n \t\t\tranksArr[i]=ranks[binarySearch];\n \t\telse\n \t\t{\n \t\t\tbinarySearch+=1;\n \t\tbinarySearch=-binarySearch;\n \t\t\tif(binarySearch==len)\n \t\t\t{\n \t\t\t\tbinarySearch-=1;\n \t\t\t\tranksArr[i]=ranks[binarySearch]+1;\n \t\t\t}\n \t\t\telse\n \t\t\t\tranksArr[i]=ranks[binarySearch];\n \t\t\t\n \t\t}\n \t\t\t\n \t}\n \treturn ranksArr;\n }", "public List<Pair<String, Integer>> getScores() {\n if (!this.list.isPresent()) {\n this.readScores();\n }\n return new ArrayList<>(this.list.get());\n }", "public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}", "public void rankMatches();", "protected abstract List<Double> calcScores();", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "public int[] getScores() {\n return this.scores;\n }", "public ArrayList<Individual> getSortedPopulation(){\n ArrayList<Individual> sortedIndividuals = new ArrayList<Individual>();\n\n for(Individual individual: individuals){\n int indexToadd = 0;\n\n if(sortedIndividuals.isEmpty()){\n sortedIndividuals.add(individual);\n }\n else {\n for(Individual sortedIndividual : sortedIndividuals){\n if(individual.getFitness() > sortedIndividual.getFitness()){\n indexToadd = sortedIndividuals.indexOf(sortedIndividual);\n break;\n }\n }\n if(indexToadd == 0 ){\n sortedIndividuals.add(individual);\n }\n else {\n sortedIndividuals.add(indexToadd,individual);\n }\n }\n }\n return sortedIndividuals;\n }", "public static List <Index> rangeOf(int start, int end) {\r\n FastTable <Index> list = FastTable.newInstance();\r\n for (int i=start; i < end; i++) {\r\n list.add(Index.valueOf(i));\r\n }\r\n return list;\r\n }", "static int m36189a(Rect rect, Set<Rect> set) {\n int i = 0;\n if (set.isEmpty()) {\n return 0;\n }\n ArrayList<Rect> arrayList = new ArrayList<>();\n arrayList.addAll(set);\n Collections.sort(arrayList, new Comparator<Rect>() {\n /* renamed from: a */\n public final int compare(Rect rect, Rect rect2) {\n return Integer.valueOf(rect.top).compareTo(Integer.valueOf(rect2.top));\n }\n });\n ArrayList arrayList2 = new ArrayList();\n for (Rect rect2 : arrayList) {\n arrayList2.add(Integer.valueOf(rect2.left));\n arrayList2.add(Integer.valueOf(rect2.right));\n }\n Collections.sort(arrayList2);\n int i2 = 0;\n while (i < arrayList2.size() - 1) {\n int i3 = i + 1;\n if (!((Integer) arrayList2.get(i)).equals(arrayList2.get(i3))) {\n Rect rect3 = new Rect(((Integer) arrayList2.get(i)).intValue(), rect.top, ((Integer) arrayList2.get(i3)).intValue(), rect.bottom);\n int i4 = rect.top;\n for (Rect rect4 : arrayList) {\n if (Rect.intersects(rect4, rect3)) {\n if (rect4.bottom > i4) {\n i2 += rect3.width() * (rect4.bottom - Math.max(i4, rect4.top));\n i4 = rect4.bottom;\n }\n if (rect4.bottom == rect3.bottom) {\n break;\n }\n }\n }\n }\n i = i3;\n }\n return i2;\n }", "public abstract void selectIndexRange(int min, int max);", "public static void main(String[] args) {\n\t\tTreeSet<Integer> scores = new TreeSet<Integer>();\n\t\tscores.add(new Integer(87));\n\t\tscores.add(new Integer(98));\n\t\tscores.add(new Integer(75));\n\t\tscores.add(new Integer(95));\n\t\tscores.add(new Integer(80));\n\t\t\n\t\tInteger score =null;\n\t\t\n\t\tscore = scores.first();\n\t\tSystem.out.println(\"가장 낮은 점수 : \" + score);\n\t\t\n\t\tscore = scores.last();\n\t\tSystem.out.println(\"가장 높은 점수 : \" + score);\n\t\t\n\t\tscore = scores.lower(new Integer(95));\n\t\tSystem.out.println(\"95점 아래의 점수 : \" + score);\n\t\t\n\t\tscore = scores.higher(new Integer(95));\n\t\tSystem.out.println(\"95점 위의 점수 : \" + score);\n\t\t\n\t\tscore = scores.ceiling(new Integer(95));\n\t\tSystem.out.println(\"95점 이상의 점수 : \" + score);\n\t\t\n\t\tscore = scores.floor(new Integer(95));\n\t\tSystem.out.println(\"95점 이하의 점수 : \" + score);\n\t\t\n\t\twhile(!scores.isEmpty()) {\n\t\t\tSystem.out.println(scores.pollFirst());\n\t\t}\n\t}", "public ArrayList<CollegeFootballTeam> rankTeams();", "public Iterable<Point2D> range(RectHV rect) {\n ArrayList<Point2D> returnArray = new ArrayList<Point2D>();\n if (rect == null) {\n throw new IllegalArgumentException(\"rect input is null\");\n }\n for (Point2D i : pointsSet) {\n if (rect.contains(i))\n returnArray.add(i);\n }\n return returnArray;\n }", "public static int minPartition(int[] nums, int index, int firstSet, int secondSet,\r\n Map<String, Integer> lookUp) {\r\n\r\n if (index == nums.length) {\r\n return Math.abs(firstSet - secondSet);\r\n }\r\n\r\n String key = index + \"!\" + firstSet + secondSet;\r\n if (lookUp.containsKey(key)) {\r\n return lookUp.get(key);\r\n }\r\n int include = minPartition(nums, index + 1, firstSet + nums[index], secondSet, lookUp);\r\n\r\n int exclude = minPartition(nums, index + 1, firstSet, secondSet + nums[index], lookUp);\r\n\r\n lookUp.put(key, Integer.min(include, exclude));\r\n\r\n return lookUp.get(key);\r\n }", "static List<Range<Long>> getRanges(Collection<Long> fullPulses) {\n checkNotNull(fullPulses, \"fullPulses was null\");\n\n List<Long> sortedPulses = fullPulses.stream().sorted().collect(toList());\n\n Optional<Long> first = sortedPulses.stream().findFirst();\n if (!first.isPresent()) {\n return emptyList();\n }\n\n Long bottomOfRange = first.get();\n if (sortedPulses.size() == 1) {\n return singletonList(singleton(bottomOfRange));\n }\n\n List<Range<Long>> foundRanges = new ArrayList<>();\n\n Long lastPulse = bottomOfRange;\n\n for (Long pulse : sortedPulses) {\n if (isaSignificantGapBetweenPulses(lastPulse, pulse)) {\n // We have a range\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n\n bottomOfRange = pulse;\n }\n lastPulse = pulse;\n }\n\n if (bottomOfRange.equals(lastPulse)) {\n foundRanges.add(singleton(bottomOfRange));\n } else {\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n }\n\n return ImmutableList.copyOf(foundRanges);\n }", "abstract List<V> rangeSearch(K key, String comparator);", "long getParticipants(int index);", "public static Student[] sortScore( Student s[]){\n\t\tStudent temp ;\r\n\t\tfor(int i=0; i<s.length; i++){\r\n\t\t\tfor(int j=i+1; j<s.length;j++)\r\n\t\t\t\tif(s[i].score > s[j].score){\r\n\t\t\t\t\ttemp = s[i];\r\n\t\t\t\t\ts[i] = s[j];\r\n\t\t\t\t\ts[j]= temp;\r\n\t\t\t\t} \t\t\t\r\n\t\t\t}\r\n\t\t\r\n\r\n\r\n\r\n\t\tSystem.out.println(\"Students with score<50 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score<50){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Students with score>=50 and <65 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=50 && s[i].score<65){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Students with score>=65 and <80 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=65 && s[i].score<80){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Students with score>=80 and <100 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=80 && s[i].score<=100){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn s;\r\n\r\n\r\n\t}", "public void sortScores(){\r\n // TODO: Use a single round of bubble sort to bubble the last entry\r\n // TODO: in the high scores up to the correct location.\r\n \tcount=0;\r\n \tfor(int i=Settings.numScores-1; i>0;i--){\r\n \t\tif(scores[i]>scores[i-1]){\r\n \t\t\tint tempS;\r\n \t\t\ttempS=scores[i];\r\n \t\t\tscores[i]=scores[i-1];\r\n \t\t\tscores[i-1]=tempS;\r\n \t\t\t\r\n \t\t\tString tempN;\r\n \t\t\ttempN=names[i];\r\n \t\t\tnames[i]=names[i-1];\r\n \t\t\tnames[i-1]=tempN;\r\n \t\t\tcount++;\r\n \t\t}\r\n \t}\r\n }", "public static ArrayList<Member> sortByNumber(ArrayList<Member> s) {\r\n\t\tArrayList<Member> output = new ArrayList<Member>();\r\n\t\twhile(s.size()>0) {\r\n\t\t\tint minNo=0;\r\n\t\t\tString min=s.get(0).getNumber();\r\n\t\t\tfor(int i=0;i<s.size();i++) {\r\n\t\t\t\tif(Member.numberSmaller(s.get(i).getNumber(),min)) {\r\n\t\t\t\t\tmin=s.get(i).getNumber();\r\n\t\t\t\t\tminNo=i;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\toutput.add(s.get(minNo));\r\n\t\t\ts.remove(s.get(minNo));\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "int[] getGivenByOrder();", "public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScoreWithScores(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public TreeSet<Integer> rankSet() {\n TreeSet<Integer> rankSet = new TreeSet<Integer>();\n for (Card c : cards) {\n \tint org = rankSet.size();\n \trankSet.add(c.getRank());\n \tif (org == rankSet.size()) {\n \tthis.sameSet.add(c.getRank());\n }\n } \n return rankSet;\n }", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "Lista<V> valuesInRange(K init, K end);", "@Override\r\n\tpublic Score get(int i) throws IndexOutOfBoundsException {\r\n\t\t//when i is less than zero or greater than size()-1\r\n\t\tif (i < 0 || i > size() - 1)\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\treturn scoreList[i];\r\n\t}", "public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> highScoreList = new ArrayList<>();\n if (scoreInfoList.size() <= size) {\n highScoreList = scoreInfoList;\n } else {\n for (int i = 0; i < size; i++) {\n highScoreList.add(scoreInfoList.get(i));\n }\n }\n return highScoreList;\n }", "public static void main(String[] args) {\n\n Set<Student> set = Sets.newTreeSet();\n Student s3 = new Student(3);\n Student s4 = new Student(4);\n Student s5 = new Student(5);\n Student s1 = new Student(1);\n Student s2 = new Student(2);\n List<Student> list = Lists.newArrayList();\n list.add(s4);\n list.add(s3);\n list.add(s5);\n list.add(s1);\n list.add(s2);\n\n list.sort(new Comparator<Student>() {\n @Override\n public int compare(Student o1, Student o2) {\n return o1.getAge() - o2.getAge() < 0 ? 1 : -1;\n }\n });\n System.out.println(list);\n\n// s1.toString();\n// set.add(s3);\n// set.add(s4);\n// set.add(s5);\n// set.add(s1);\n// set.add(s2);\n// System.out.println(set);\n// for (Student s : set) {\n// System.out.println(s);\n// }\n\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tList<Integer> a = new ArrayList<>();\n\t\ta.add(1);\n\t\ta.add(1);\n\t\ta.add(2);\n\t\ta.add(2);\n\t\ta.add(4);\n\t\ta.add(3);\n\t\tList<Integer> b = new ArrayList<>();\n\t\tb.add(2);\n\t\tb.add(3);\n\t\tb.add(3);\n\t\tb.add(4);\n\t\tb.add(4);\n\t\tb.add(5);\n\t\tgetMinScore(6, a, b);\n\t}", "CollectionRange createCollectionRange();", "public Set<String> zrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScore(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "private ArrayList<int[]> selectionRank(int[][] chromosomes, float percentToSelect) {\n\n\t\tArrayList<int[]> selectedChromosomes = new ArrayList<int[]>();\n\n\t\t//get fitnesses and ranks of chromosomes, save in array to avoid recalculating\n\t\tint[] fitnesses = new int[chromosomes.length];\n\t\tArrayList<Integer> ranks = new ArrayList<Integer>(); //holds indices of chromosomes, position in arraylist indicates rank\n\n\t\tfor (int i = 0; i < chromosomes.length; i++) { //set up list of fitnesses and ranks\n\t\t\tfitnesses[i] = getFitness(chromosomes[i]);\n\n\n\t\t\tboolean added = false;\n\t\t\tfor (int keyIndex = 0; keyIndex < ranks.size(); keyIndex++) { //only search the second half\n\t\t\t\tif (fitnesses[ranks.get(keyIndex)] > fitnesses[i]) { //if this one is worse\n\t\t\t\t\tranks.add(keyIndex, i); //inverted rank\n\t\t\t\t\tadded = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!added) {\n\t\t\t\tranks.add(i);\n\t\t\t}\n\n\t\t}// end fitness ranking (low fitness is best, last index is worst)\n\n\n\t\t//spin the roulette wheel\n\t\tfor (int i = 0; i < chromosomes.length * percentToSelect; i++) {\n\t\t\tint currentFitnessTotal = 0;\n\t\t\tint fitSelector = rand.nextInt(chromosomes.length); //where the wheel stops\n\t\t\tint fitnessCutoff = (fitSelector * (fitSelector + 1)) / 2;\n\n\t\t\tfor (int j = 0; j < ranks.size(); j++) { //go through all ranks to see who is selected this spin\n\t\t\t\tif (currentFitnessTotal < fitnessCutoff)\n\t\t\t\t\tcurrentFitnessTotal += chromosomes.length - ranks.get(j); //reorder fitness properly\n\n\t\t\t\tif (currentFitnessTotal >= fitnessCutoff) { //if this rank pushed us over the edge, save it\n\t\t\t\t\tselectedChromosomes.add(chromosomes[ranks.get(j)]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}//end roulette spinning\n\n\t\treturn selectedChromosomes;\n\t}", "@Test\n public void when1To49ThenB() {\n Student a = new Student(49);\n Student b = new Student(50);\n Student c = new Student(102);\n Student d = new Student(0);\n Student e = new Student(140);\n Predicate<Student> predicate = s -> s.getScore() > 0 && s.getScore() < 50;\n List<Student> expected = List.of(a, c, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "public int getScorePoints() {\n/* 75 */ return this.scorePoints;\n/* */ }", "public void setScores(ArrayList<Integer> scores) { this.scores = scores; }", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "public List<StaffMember> getTeamMembers(){\n\t\tSet<StaffMember> team = teamleader.getDirectSubordinates();\n\t\tStaffMemberIterator iterator = new StaffMemberIterator(team);\n\t\tList<StaffMember> listOfMembers = iterator.listOfStaffMember;\n\t\tlistOfMembers.add(teamleader);\n\t\tCollections.sort(listOfMembers);\n\t\treturn listOfMembers;\n\t}", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "@Override\n\tpublic List<Score> getRandomScoreList() {\n\t\treturn scoreDao.getRandomScoreList();\n\t}", "ArrayList<Integer> getLeaderboardScores() {\r\n return leaderboardScores;\r\n }", "private static void accessIndexInSet(Set<Integer> numbers) {\n int desiredIndex = 2;\n int currentIndex = 0;\n\n //iterate the HashSet\n Iterator<Integer> iterator = numbers.iterator();\n while (iterator.hasNext()) {\n\n if (currentIndex == desiredIndex)\n System.out.println(\"Element at index \" + desiredIndex + \" is: \" + iterator.next());\n iterator.next();\n currentIndex++;\n }\n\n // M2: convert it to list\n List<Integer> list = new ArrayList<Integer>(numbers);\n list.get(2);\n\n // M3: convert it to Array []\n Integer[] integers = numbers.toArray(new Integer[numbers.size()]);\n int i = integers[2];\n }", "@Test\n public void when70To100ThenA() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(100);\n Student e = new Student(86);\n Predicate<Student> predicate = s -> s.getScore() >= 70 && s.getScore() <= 100;\n List<Student> expected = List.of(b, d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "public List<Question> getQuestionsByPoints() {\n List<Membership> memberships = (ArrayList<Membership>) this.getMemberships();\n List<Question> questions = new ArrayList<Question>();\n\n for (Membership m : memberships) \n \tfor(Question q: m.getQuestions())\n \t\tquestions.add(q);\n // We want the most recent questions first so reverse the array with\n // Collections.reverse\n // PostPointsComparator returns questions in asc we want desc\n Collections.sort(questions, new PostPointsComparator());\n Collections.reverse(questions);\n\n return questions;\n }", "Set<Art> getArtByPrice(Double upper, Double lower);", "public ArrayList<CollegeFootballTeam> rankTeams()\r\n\t{\r\n\t\tArrayList<CollegeFootballTeam> rankedTeams = new ArrayList<>();\r\n\t\t\r\n\t\t// Calls the selection sort method, which ranks the teams from lower to higher scores based on the sum of their votes.\r\n\t\t// The teams are placed into a new ArrayList. \r\n\t\trankedTeams = selectionSort(teams);\r\n\t\t\r\n\t\treturn rankedTeams;\r\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public static int pickWeighted(int start, int end, Vector data, Random rng)\r\n\t{\r\n\t\t//System.out.println(Arrays.toString(data));\r\n\t\tVector dupes = data.copy();\r\n\t\tdouble totalSum=0;\r\n\t\tfor(int a=start;a<end;a++)\r\n\t\t{\r\n\t\t\ttotalSum+=data.get(a);\r\n\t\t}\r\n\t\t//divide chances by a.\r\n\t\tdupes.scale(1.0/totalSum);\r\n\t\tdouble check = rng.nextDouble();\r\n\t\ttotalSum=0;\r\n\t\tfor(int a=start;a<end;a++)\r\n\t\t{\r\n\t\t\tif(totalSum+dupes.get(a)>check)\r\n\t\t\t\treturn a;\r\n\t\t\ttotalSum+=dupes.get(a);\r\n\t\t}\r\n\t\treturn end-1;\r\n\t}", "public abstract Collection<T> getMatchesAboveThreshold(T first,\n double similarityThreshold);", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> point_list = new SET<Point2D>();\n rangesearch(root, rect, point_list);\n return point_list;\n }", "private static void merge(ArrayList<Score> items, int start, int mid, int end) {\r\n Object[] temp = new Object[items.size()];\r\n int pos1 = start;\r\n int pos2 = mid + 1;\r\n int spot = start;\r\n\r\n while (!(pos1 > mid && pos2 > end)) {\r\n if ((pos1 > mid) || ((pos2 <= end) && (items.get(pos2).compareTo(items.get(pos1)) < 0))) {\r\n temp[spot] = items.get(pos2);\r\n pos2 += 1;\r\n } else {\r\n temp[spot] = items.get(pos1);\r\n pos1 += 1;\r\n }\r\n spot += 1;\r\n }\r\n for (int i = start; i <= end; i++) {\r\n items.set(i, (Score) temp[i]);\r\n }\r\n }", "@Test\n public void when50To69ThenB() {\n Student a = new Student(40);\n Student b = new Student(70);\n Student c = new Student(101);\n Student d = new Student(58);\n Student e = new Student(69);\n Predicate<Student> predicate = s -> s.getScore() >= 50 && s.getScore() < 70;\n List<Student> expected = List.of(d, e);\n List<Student> students = List.of(a, b, c, d, e);\n List<Student> result = new School().collect(students, predicate);\n assertThat(result, equalTo(expected));\n }", "public void scoreSorting(SortingQuiz scoringMethod, SortingSample s) {\r\n for(int i=1; i<=s.answers.size(); i++) {\r\n HourGlass scores = new HourGlass();\r\n scores.weightAnswer(scoringMethod.answers.get(s.getAnswerNum(i)));\r\n System.out.println(scores);\r\n// this.scores.weightAnswer(scoringMethod.answers.get(s.getAnswerNum(i)));\r\n }\r\n }", "public List<Integer> getBySetPos() {\n\t\treturn bySetPos;\n\t}", "private HashSet<Position> getInRange(int p_r, Distance p_d)\n {\n HashSet<Position> s = new HashSet<Position>();\n\n for (int x = 0; x <= p_r; x++)\n {\n int y = 0;\n Position p = new Position(this.x + x, this.y + y);\n\n while (p_d.inside(this, p, p_r))\n {\n s.add(p);\n s.add(new Position(this.x - x, this.y + y));\n s.add(new Position(this.x + x, this.y - y));\n s.add(new Position(this.x - x, this.y - y));\n p = new Position(this.x + x, this.y + ++y);\n }\n }\n return s;\n }", "public int[] sortedSquares(int[] nums) {\n int start = 0;\n int end = nums.length - 1;\n int lastIndex = nums.length - 1;\n int result[] = new int[nums.length];\n while (start <= end) {\n int startSqr = nums[start] * nums[start];\n int endSqr = nums[end] * nums[end];\n if (startSqr < endSqr) {\n result[lastIndex--] = endSqr;\n end--;\n } else {\n result[lastIndex--] = startSqr;\n start++;\n }\n }\n return result;\n }", "public void assignPointsToTeams(){\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalRuns() < two.getTotalRuns()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsRuns(setvalue);\n }\n \n //SORTS FOR TOTALHOMERUNS THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalHomeRuns() < two.getTotalHomeRuns()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsHomeRuns(setvalue);\n }\n \n //SORTS FOR RunsBattedIn THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalRunsBattedIn() < two.getTotalRunsBattedIn()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsRunsBattedIn(setvalue);\n }\n \n //SORTS FOR STOLENBASES THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalStolenBases() < two.getTotalStolenBases()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsStolenBases(setvalue);\n }\n \n //SORTS FOR BATTINGAVERAGE THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getBattingAverage() < two.getBattingAverage()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsBattingAverage(setvalue);\n }\n \n //SORTS FOR Wins THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getWins() < two.getWins()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsWins(setvalue);\n }\n \n //SORTS FOR Strikeouts THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getStrikeouts() < two.getStrikeouts()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsStrikeouts(setvalue);\n }\n \n //SORTS FOR Saves THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getSaves() < two.getSaves()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsSaves(setvalue);\n }\n \n //SORTS FOR ERA THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getEarnedRunAverage() < two.getEarnedRunAverage()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsERA(setvalue);\n }\n \n //SORTS FOR WHIP THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getWhip() < two.getWhip()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsWHIP(setvalue);\n } \n }", "private static ArrayList getStocksSpan(int[] a) {\n Stack<ValueIndex> stack = new Stack<>();\n ArrayList<Integer> list = new ArrayList();\n for(int i =0 ; i<a.length;i++){\n if(stack.isEmpty())list.add(-1);\n else if(stack.peek().value>a[i])list.add(i-1);\n else if(stack.peek().value<= a[i]){\n while(!stack.isEmpty() && stack.peek().value<=a[i])stack.pop();\n if(stack.isEmpty())list.add(-1);\n else list.add(stack.peek().index);\n }\n stack.push(new ValueIndex(a[i],i));\n }\n for(int i=0;i<list.size();i++){\n// System.out.print(list.get(i)+\"\\t\"); //[-1, 1, 2, -1, 4, -1, 6]\n if(list.get(i)!= -1)list.set(i,i-list.get(i));\n }\n return list;\n }", "int[] minAndMax() {\n\n // **** declare and populate array of Integers with the values of the parents O(n) ****\n Integer[] arr = new Integer[this.parents.length];\n int i = 0;\n for (int val : this.parents)\n arr[i++] = val;\n\n // **** create a list with the values in the parents ****\n List<Integer> al = Arrays.asList(arr);\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse the array arr: O(n^2) ****\n for (int item : arr) {\n if (item != 0) {\n\n // **** get the frequency of item in the list: O(n) ****\n int freq = Collections.frequency(al, item);\n\n // ???? ????\n System.out.println(\"minAndMax <<< item: \" + item + \" freq: \" + freq);\n\n // **** update the min and max values ****\n min = Math.min(min, freq);\n max = Math.max(max, freq);\n }\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "public SummaryRanges() {\n S.add(new MyPair(-INF, -INF)); S.add(new MyPair(INF, INF));\n }", "private int randomizeScore(int score, List<Integer> scores, List<Integer> rowIndices, List<Integer> columnIndices) {\n List<Integer> equalScoreIndices = new ArrayList<>();\n\n for (int i = 0; i < scores.size(); i++) {\n if (scores.get(i) == score) {\n equalScoreIndices.add(i);\n }\n }\n\n Random rand = new Random();\n int randomIndex = equalScoreIndices.get(rand.nextInt(equalScoreIndices.size()));\n\n rowOfResult = rowIndices.get(randomIndex);\n columnOfResult = columnIndices.get(randomIndex);\n\n return score;\n }", "public java.util.List<Score> getScoresList() {\n return scores_;\n }", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n return getChild(key).rangeSearch(key, comparator);\r\n }", "public double getBestScore();", "@Test\n public void test_range_Integer_Collection4() {\n populate_i3();\n Collection<Integer> actual = Selector.range(i3, 4, 8, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(8);\n expected.add(7);\n expected.add(6);\n expected.add(5);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n int[] alicePos = new int[alice.length];\n System.out.println(\"Alice length\" + alice.length);\n\n scores = of(scores).sorted().distinct().toArray();\n\n int[] newScores = new int[scores.length];\n\n for (int i = 0; i < newScores.length; i++) {\n if (i < scores.length) {\n newScores[i] = scores[i];\n\n System.out.println(\"res \" + newScores[i]);\n }\n }\n\n List<Integer> newList = Arrays.stream(newScores).boxed().collect(Collectors.toList());\n System.out.println(newList.size());\n\n\n for (int i = 0; i < alice.length; i ++) {\n System.out.println(\"Alices is \"+ alice[i]);\n newList.add(alice[i]);\n newList = newList.stream().distinct().sorted().collect(Collectors.toList());\n int pos = newList.indexOf(alice[i]);\n alicePos [i]= newList.size() - pos;\n newList.remove(pos);\n }\n\n return alicePos;\n }", "int getScoreValue();", "public static void main(String[] args) {\n int size = 100;\n int mult = 100;\n\n ArrayList<Integer> numbers = new ArrayList<>();\n\n //generate random array to sort\n for (int i = 0; i < size; i++) {\n numbers.add((int) (Math.random() * mult));\n }\n\n System.out.println(numbers.toString());\n\n numbers = quickSortSubset(numbers,0);\n\n System.out.println(numbers.toString());\n\n }", "public int getScore(int index) {\n return ranking.get(index).getvalue();\n }", "public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> l = new ArrayList<ScoreInfo>();\n l.addAll(this.highScores); //make a copy;\n return l;\n }", "public static List<Double> sortScores(List<Double> results) {\n\t\t\n\t\t\n\t\tfor (int i = 0; i < results.size()-1; i++) {\n\t\t\tif (results.get(i)>results.get(i+1)) {\n\t\t\t\t//highScore = results.get(i);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tDouble temp = results.get(i);\n\t\t\t\t\n\t\t\t\tresults.set(i, results.get(i+1));\n\t\t\t\t\n\t\t\tresults.set(i+1, temp);\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\n\t\t\n\t\treturn results;\n\t\t//return null;\n\t}", "Lista<K> keysInRange(K init, K end);", "@Override\r\n public void getRange(ArrayList<Piece> pieces){\r\n this.range.clear();\r\n int pieceX = this.getX(); int pieceY = this.getY(); // X and Y coordinates for the king piece\r\n\r\n // getPiece: 0 = empty; 1 = same color; 2 = opposite color\r\n //Up\r\n if (this.getPiece(pieceX, pieceY+1, pieces) == 0 || this.getPiece(pieceX, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Up-right\r\n if (this.getPiece(pieceX+1, pieceY+1, pieces) == 0 || this.getPiece(pieceX+1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Right\r\n if (this.getPiece(pieceX+1, pieceY, pieces) == 0 || this.getPiece(pieceX+1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Down-right\r\n if (this.getPiece(pieceX+1, pieceY-1, pieces) == 0 || this.getPiece(pieceX+1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down\r\n if (this.getPiece(pieceX, pieceY-1, pieces) == 0 || this.getPiece(pieceX, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down-left\r\n if (this.getPiece(pieceX-1, pieceY-1, pieces) == 0 || this.getPiece(pieceX-1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Left\r\n if (this.getPiece(pieceX-1, pieceY, pieces) == 0 || this.getPiece(pieceX-1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Up-left\r\n if (this.getPiece(pieceX-1, pieceY+1, pieces) == 0 || this.getPiece(pieceX-1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Castling\r\n for (Piece piece : pieces) {\r\n if (piece instanceof Rook) {\r\n if (piece.getColor() == this.getColor()) {\r\n if (validCastling(pieces, (Rook)piece)) {\r\n int targetX = (piece.getX() < getX()) ? (this.getX() - 2) : (this.getX() + 2);\r\n this.range.add(new int[] {targetX, this.getY()});\r\n }\r\n }\r\n }\r\n }\r\n }", "private int getMostShares(int start){\n int mostShares = 0;\n int index = 0;\n for (int i = 0; i < player.getShares().size(); i++) {\n if(mostShares < playerList.get(start).getShares().get(i)){\n mostShares = playerList.get(start).getShares().get(i);\n index = i;\n }\n }\n return index;\n }" ]
[ "0.62159336", "0.5680185", "0.54346085", "0.5361597", "0.52877665", "0.5271847", "0.525881", "0.5244105", "0.5198504", "0.51202613", "0.5070799", "0.5068964", "0.5067613", "0.50655156", "0.50609255", "0.50197923", "0.50145835", "0.500338", "0.49804708", "0.49697727", "0.496556", "0.4961003", "0.4958825", "0.49569854", "0.49559012", "0.49556592", "0.49438524", "0.49436572", "0.49433205", "0.49235973", "0.49181148", "0.49175048", "0.49151945", "0.49103236", "0.49051356", "0.48675594", "0.48584223", "0.4850743", "0.48484215", "0.484429", "0.48404464", "0.48335713", "0.48207197", "0.4816907", "0.48110497", "0.48047036", "0.48036173", "0.4794692", "0.47796425", "0.47458372", "0.47406626", "0.47384772", "0.47346866", "0.47337806", "0.47326335", "0.47252154", "0.47251293", "0.4720137", "0.47192907", "0.47184318", "0.47099286", "0.47066805", "0.47023696", "0.46931773", "0.46872067", "0.4684819", "0.467642", "0.46690023", "0.4658661", "0.46571845", "0.4656072", "0.46484134", "0.46328261", "0.46327543", "0.46307194", "0.46306193", "0.46254092", "0.46242863", "0.46234334", "0.46211493", "0.46191674", "0.46168703", "0.4616384", "0.4616017", "0.46136132", "0.46076825", "0.46052712", "0.45939305", "0.4593029", "0.45784324", "0.45771512", "0.4576553", "0.45749527", "0.45692006", "0.45683038", "0.45658064", "0.45657453", "0.45594272", "0.45527533", "0.45482823" ]
0.50963604
10
Return the all the elements in the sorted set at key with a score between min and max (including elements with score equal to min or max). Ordered from the lowest to the highest score.
public Set<Tuple> zrangeByScoreWithScores(final String key, final double min, final double max) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.zrangeByScoreWithScores(key, min, max); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<String> zrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScore(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScoreWithScores(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<String> zrevrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScore(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public <T> Set<T> zrangeHashSetByScore(final String key, final double min, final double max, Class<T> clazz) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max);\n if (tempSet != null && tempSet.size() > 0) {\n HashSet<T> result = new HashSet<T>();\n for (byte[] value : tempSet) {\n // result.add((T) HessianSerializer.deserialize(value));\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public <T> List<T> zrangeByScore(final String key, final double min, final double max, Class<T> clazz) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max);\n if (tempSet != null && tempSet.size() > 0) {\n List<T> result = new ArrayList<T>();\n for (byte[] value : tempSet) {\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<Tuple> zrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "private ArrayList<Integer> binarySearch(ArrayList<Integer> arraylist, int key, int min, int max)\n\t{\n\t\tArrayList<Integer> mids = new ArrayList<Integer>(); \n\t \n\t\twhile (max >= min)\n\t\t{\n\t\t\tint mid = (min + max) / 2;\n\t \n\t\t\tmids.add(mid); \n\t \n\t\t\tif (arraylist.get(mid) < key)\n\t\t\t{\n\t\t\t\tmax = mid - 1;\n\t\t\t}\n\t \n\t\t\telse if (arraylist.get(mid) > key )\n\t\t\t{\n\t\t\t\tmin = mid + 1;\n\t\t\t}\n\t \n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak; \n\t\t\t}\n\t\t}\n\t \n\t\treturn mids; \n\t}", "abstract List<V> rangeSearch(K key, String comparator);", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n return getChild(key).rangeSearch(key, comparator);\r\n }", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "void collect(Object key, float score);", "int[] maxAndMin() {\n\n // **** ****\n HashMap<Integer, Integer> hm = new HashMap<Integer, Integer>();\n\n // **** traverse parrents array inserting into hashmap: O(n) ****\n for (int val : this.parents) {\n hm.put(val, hm.getOrDefault(val, 0) + 1);\n }\n\n // ???? ????\n // System.out.println(\"maxAndMin <<< hm: \" + hm.toString());\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse hashmap looking for min and max: O(n) ****\n Iterator<Entry<Integer, Integer>> it = hm.entrySet().iterator();\n while (it.hasNext()) {\n Entry<Integer, Integer> e = it.next();\n\n // **** skip this key ****\n if (e.getKey() == 0)\n continue;\n\n // **** update min and max ****\n min = Math.min(e.getValue(), min);\n max = Math.max(e.getValue(), max);\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "Collection<T> getMinElements();", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "public static void main(String[] args) {\n\t\tHashSet<Double> hash = new HashSet<>();\n\t\thash.add(1.5);\n\t\thash.add(8.25);\n\t\thash.add(-7.32);\n\t\thash.add(13.3);\n\t\thash.add(-12.45);\n\t\thash.add(48.5);\n\t\thash.add(0.01);\n\t\tdouble max = 0;\n\t\tdouble min = 0;\n\t\t\n\t\tfor (Double double1 : hash) {\n\t\t\tSystem.out.println(double1);\n\t\t\tif (double1 > max) {\n\t\t\t\tmax = double1;\n\t\t\t}\n\t\t\tif (double1 < min) {\n\t\t\t\tmin = double1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Max : \" + max);\n\t\tSystem.out.println(\"Min : \" + min);\n\t\thash.remove(min);\n\t\tfor (Double double1 : hash)\n\t\t\tSystem.out.println(double1);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tTreeMap<Integer,String> map = new TreeMap<Integer,String>();\r\n\t\t\r\n map.put(2000, \"A\");\r\n map.put(5000, \"E\");\r\n map.put(6000, \"F\");\r\n map.put(7000, \"G\");\r\n map.put(3000, \"C\");\r\n map.put(4000, \"D\");\r\n map.put(2100, \"B\");\r\n System.out.println(map);\r\n System.out.println(\"max\"+map.lastKey());\r\n System.out.println(\"min\"+map.firstKey());\r\n \r\n Set<Integer> setLessThen3k = map.headMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessThen3k);\r\n \r\n Set<Integer> setLessgreater3k = map.tailMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessgreater3k);\r\n \r\n \r\n\r\n\t\tTreeMap<String,Integer> Usermap = new TreeMap<String,Integer>();\r\n\t\t\r\n\t\tUsermap.put( \"A\",2000);\r\n\t\tUsermap.put( \"F\",8000);\r\n\t\tUsermap.put( \"G\",7000);\r\n\t\tUsermap.put( \"C\",3000);\r\n\t\tUsermap.put( \"D\",3000);\r\n\t\tUsermap.put( \"E\",9000);\r\n\t\tUsermap.put( \"B\",8000);\r\n System.out.println(map);\r\n System.out.println(\"max\"+Usermap.lastKey());\r\n System.out.println(\"min\"+Usermap.firstKey());\r\n \r\n\r\n \r\n \r\n\t}", "public void queryRange(int lowKey, int highKey, IntPushOperator results) {\n\t\tIntBTreeNode next = entries.get(lowKey);\n\t\tnext.queryRange(lowKey, highKey, results);\n\t}", "Set<Art> getArtByPrice(Double upper, Double lower);", "@Override\r\n public List<V> rangeSearch(K key, String comparator) {\r\n if (!comparator.contentEquals(\">=\") &&\r\n !comparator.contentEquals(\"==\") &&\r\n !comparator.contentEquals(\"<=\"))\r\n return new ArrayList<V>();\r\n\r\n // if key is null, it returns a empty list\r\n if ( key == null){\r\n return new ArrayList<V>();\r\n }\r\n return root.rangeSearch(key, comparator);\r\n }", "Lista<V> valuesInRange(K init, K end);", "public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}", "public abstract Collection<T> getMatchesAboveThreshold(T first,\n double similarityThreshold);", "public void set(int min, int max, double score){\r\n\t\tchart[min][max] = score;\r\n\t}", "static int[] jobOffers(int[] scores, int[] lowerLimits, int[] upperLimits) {\n int[] res = new int[lowerLimits.length];\n\n TreeMap<Integer, Integer> map = new TreeMap<>();\n\n for (int s : scores)\n map.put(s, map.getOrDefault(s, 0) + 1);\n\n for (int i = 0; i < lowerLimits.length; i++) {\n NavigableMap<Integer, Integer> submap = map.subMap(lowerLimits[i], true, upperLimits[i], true);\n int count = 0;\n for (Integer j : submap.values()) count += j;\n res[i] = count;\n }\n\n // If this solution works, please give a star to my repo (:\n return res;\n }", "Lista<K> keysInRange(K init, K end);", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "private static void findKClosestNumbers(int[] arr, int key, int k) {\n\n\t\tPriorityQueue<Integer> pq;\n\t\tint max = findMaxInArr(arr);\n\t\tint min = findMinInArr(arr);\n\n\t\tint maxDiff = Math.abs(key - max);\n\t\tint minDiff = Math.abs(key - min);\n\n\t\tif (maxDiff <= minDiff) {\n\t\t\tpq = new PriorityQueue<>(Collections.reverseOrder());\n\t\t} else {\n\t\t\tpq = new PriorityQueue<>();\n\t\t}\n\n\t\tfor (int e : arr) {\n\t\t\tpq.add(e);\n\t\t}\n\n\t\tint c = 0;\n\n\t\twhile (c < k) {\n\t\t\tSystem.out.println(pq.remove());\n\t\t\tc++;\n\t\t}\n\n\t}", "KeyGroupRange getKeyGroupRange();", "public static void main(String[] args) {\n\t\t\n\t\tint k = 3;\n\t\t\n\t\tint max = Integer.MIN_VALUE, min = Integer.MAX_VALUE;\n\t\t\n\t\tint arr[] = new int[k];\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tif(max < arr[i])\n\t\t\t\tmax = arr[i];\n\t\t\tif(min > arr[i])\n\t\t\t\tmin = arr[i];\n\t\t}\n\t\t\n\t\t\n\t\tint [][] arr1 = {{3,8},{10,11},{1,3},{2,4}};\n\t\t\n\t\tSystem.out.println(selection(arr1));\n\t}", "public static void main(String[] args) {\n\t\tTreeSet<Integer> scores = new TreeSet<Integer>();\n\t\tscores.add(new Integer(87));\n\t\tscores.add(new Integer(98));\n\t\tscores.add(new Integer(75));\n\t\tscores.add(new Integer(95));\n\t\tscores.add(new Integer(80));\n\t\t\n\t\tInteger score =null;\n\t\t\n\t\tscore = scores.first();\n\t\tSystem.out.println(\"가장 낮은 점수 : \" + score);\n\t\t\n\t\tscore = scores.last();\n\t\tSystem.out.println(\"가장 높은 점수 : \" + score);\n\t\t\n\t\tscore = scores.lower(new Integer(95));\n\t\tSystem.out.println(\"95점 아래의 점수 : \" + score);\n\t\t\n\t\tscore = scores.higher(new Integer(95));\n\t\tSystem.out.println(\"95점 위의 점수 : \" + score);\n\t\t\n\t\tscore = scores.ceiling(new Integer(95));\n\t\tSystem.out.println(\"95점 이상의 점수 : \" + score);\n\t\t\n\t\tscore = scores.floor(new Integer(95));\n\t\tSystem.out.println(\"95점 이하의 점수 : \" + score);\n\t\t\n\t\twhile(!scores.isEmpty()) {\n\t\t\tSystem.out.println(scores.pollFirst());\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "public MatcherScores(SortedMap<Double, SortedSet<String>> scores)\n {\n this.scores = Objects.requireNonNull(scores);\n }", "ArrayList <Integer> nearlySorted(int arr[], int num, int k)\n {\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n ArrayList<Integer> res = new ArrayList<>();\n for(int i=0;i<k+1;i++){\n pq.add(arr[i]);\n }\n \n for(int i=k+1;i<num;i++){\n res.add(pq.remove());\n pq.add(arr[i]);\n }\n \n while(pq.size()>0){\n res.add(pq.remove());\n }\n \n return res;\n }", "Score getScores(int index);", "public static <T> Pair<ArrayList<T>, Double> relativeHabitFilter(Map<T, Double> habitStrength){\n\t\t//System.out.print(\"rHabitFilter is called on size:\" + habitStrength.size());\n\t\tMap<T, Double> sorted= Helper.sortByValue(habitStrength);\n\t\tArrayList<T> keys =new ArrayList<T>(sorted.keySet());\n\t\t\n\t\t//System.out.println(habitStrength);\n\t\t//System.out.println(sorted);\n\t\t\n\t\tdouble bestDifference = 0;\n\t\tdouble bestSplit = 0;\n\t\tfor(int i = 0; i < keys.size()-1; i++){\n\t\t\tMap<T, Double> left = new HashMap<T, Double>();\n\t\t\tMap<T, Double> right =new HashMap<T, Double>(habitStrength);\n\t\t\tfor(int j =0; j <= i; j++){ //Fill maps left and right\n\t\t\t\tT key = keys.get(j);\n\t\t\t\tleft.put(key, sorted.get(key));\n\t\t\t\tright.remove(key);\n\t\t\t\t//System.out.print(\"loopmakemaps\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tdouble difference = Helper.avarageDouble(right.values()) - Helper.avarageDouble(left.values());\n\t\t\tif(difference > bestDifference){\n\t\t\t\tbestDifference = difference;\n\t\t\t\tbestSplit = i;\n\t\t\t}\n\t\t\t//System.out.print(\"loopfindbest\");\n\t\t}\n\t\t\n\t\tArrayList<T> newCandidates =new ArrayList<T>();\n\t\tfor(int j = keys.size()-1; j > bestSplit; j--){\n\t\t\tnewCandidates.add(keys.get(j));\n\t\t\t//System.out.print(\"loophere\");\n\t\t}\n\t\t\n\t\t//System.out.println(\"I made it! Difference:\" + bestDifference + \"newCandidates\" + newCandidates);\n\t\t\n\t\treturn new ImmutablePair<ArrayList<T>, Double>(newCandidates, bestDifference);\n\t}", "@Nonnull\r\n\tpublic static <T, Key> Observable<List<T>> minMax(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func1<? super T, ? extends Key> keyExtractor,\r\n\t\t\t@Nonnull final Comparator<? super Key> keyComparator,\r\n\t\t\tfinal boolean max\r\n\t) {\r\n\t\treturn new Observable<List<T>>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super List<T>> observer) {\r\n\t\t\t\treturn source.register(new Observer<T>() {\r\n\t\t\t\t\t/** The current collection for the minimum of Ts. */\r\n\t\t\t\t\tList<T> collect;\r\n\t\t\t\t\t/** The current minimum value. */\r\n\t\t\t\t\tKey maxKey;\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void finish() {\r\n\t\t\t\t\t\tif (collect != null) {\r\n\t\t\t\t\t\t\tobserver.next(collect);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void next(T value) {\r\n\t\t\t\t\t\tKey key = keyExtractor.invoke(value);\r\n\t\t\t\t\t\tif (collect == null) {\r\n\t\t\t\t\t\t\tmaxKey = key;\r\n\t\t\t\t\t\t\tcollect = new ArrayList<T>();\r\n\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tint order = keyComparator.compare(maxKey, key);\r\n\t\t\t\t\t\t\tif (order == 0) {\r\n\t\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\tif (max ^ (order > 0)) {\r\n\t\t\t\t\t\t\t\tmaxKey = key;\r\n\t\t\t\t\t\t\t\tcollect = new ArrayList<T>();\r\n\t\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}", "java.util.List<Score>\n getScoresList();", "@Override\n public Set<K> keySet() {\n if (isEmpty()) return new HashSet<K>();\n return keys(min(), max());\n }", "int[] minAndMax() {\n\n // **** declare and populate array of Integers with the values of the parents O(n) ****\n Integer[] arr = new Integer[this.parents.length];\n int i = 0;\n for (int val : this.parents)\n arr[i++] = val;\n\n // **** create a list with the values in the parents ****\n List<Integer> al = Arrays.asList(arr);\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse the array arr: O(n^2) ****\n for (int item : arr) {\n if (item != 0) {\n\n // **** get the frequency of item in the list: O(n) ****\n int freq = Collections.frequency(al, item);\n\n // ???? ????\n System.out.println(\"minAndMax <<< item: \" + item + \" freq: \" + freq);\n\n // **** update the min and max values ****\n min = Math.min(min, freq);\n max = Math.max(max, freq);\n }\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "public SortedSubset(RangeSet<T> constitutingSuperset, T lowerbound, T upperbound)\n\t{\n\t\tinit(constitutingSuperset, lowerbound, upperbound, true, false);\n\t}", "public List<T> findByKey(String key, Object object, int start, int max);", "public abstract Key getLargest();", "@Test\n public void test_kmax_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmax(i5, 5, new CompareIntegerAscending());\n int expected = 1;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public double getBestScore();", "int minKey(float key[], Boolean mstSet[]){\n float min = Float.MAX_VALUE;\n int min_index = -1;\n \n for (int v = 0; v < V; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n \n return min_index;\n }", "@Override\n public CloseableIterator<KVPair> getRange(byte[] minKey, byte[] maxKey, boolean reverse) {\n Preconditions.checkState(!this.closed.get(), \"transaction closed\");\n return new XodusIter(this.store.openCursor(this.tx), minKey, maxKey, reverse);\n }", "private static int partition(Comparable[] data, int min, int max) {\n\n\t\t// Use first element as the partition value\n\n\t\tComparable partitionValue = data[min];\n\n\t\tint left = min;\n\t\tint right = max;\n\n\t\twhile (left < right) {\n\t\t\t// Search for an element that is > the partition element\n\t\t\twhile (data[left].compareTo(partitionValue) <= 0 && left < right)\n\t\t\t\tleft++;\n\t\t\t// Search for an element that is < the partitionelement\n\t\t\twhile (data[right].compareTo(partitionValue) > 0)\n\t\t\t\tright--;\n\t\t\tif (left < right)\n\t\t\t\tswap(data, left, right);\n\t\t}\n\t\t// Move the partition element to its final position\n\t\tswap(data, min, right);\n\n\t\treturn right;\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "public static ArrayList<String> getTopTen() throws Exception{\n\t\n\tint start, end;\n\tFile xmlFile = getFile();\n\tif(!xmlFile.exists()){\n\t\tJOptionPane.showMessageDialog(null, \"Record Does nor exist\");\n\t}\n\tScore root = new Score();\n\tMap<String, Integer> standings = new TreeMap<String, Integer>();\n root = readObjectAsXmlFrom(new FileReader(xmlFile.getAbsolutePath()), root.getClass());\n standings = root.standings;\n Map<String, Integer> sortedStandings = sortByValue(standings);\n Set<Entry<String, Integer>> keys = sortedStandings.entrySet();\n Object[] sortedArr = keys.toArray();\n end = sortedArr.length;\n if(end<=10) start = 0;\n else start = end -10;\n ArrayList<String> result = new ArrayList<String>();\n for(int x = start; x<end;x++){\n \tresult.add(sortedArr[x].toString());\n }\n\treturn result;\n }", "private static Map<String, Double> extractBestSuppliers (Map<Supplier, Double> supplierScores, int numResults) {\n\t\tMap<Supplier, Double> rankedResults = sortDescending(supplierScores);\n\t\tIterable<Entry<Supplier, Double>> firstEntries =\n\t\t\t\tIterables.limit(rankedResults.entrySet(), numResults);\n\t\t\n\t\t//return the [numResults] best suppliers according to highest scores\n\t\tMap<String, Double> finalSupplierMap = new LinkedHashMap<String, Double>();\t\t\n\t\tfor (Entry<Supplier, Double> e : firstEntries) {\n\t\t\tfinalSupplierMap.put(e.getKey().getId(), e.getValue());\n\t\t}\n\t\t\n\t\treturn finalSupplierMap;\n\n\t}", "protected abstract List<Double> calcScores();", "@Test\n public void test_kmin_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmin(i5, 2, new CompareIntegerAscending());\n int expected = 3;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "public Set<T> getRanges();", "public int minXValue (Map <String,ArrayList<Point>> map){\r\n \tint min = 0 , i = 0;\r\n \t\tfor (String key : map.keySet()) {\r\n \t\t\tif ( min < map.get(key).get(i).getX())\r\n \t\t\t\tmin = (int) map.get(key).get(i).getX();\r\n \t\t\ti++;\r\n \t\t}\r\n \treturn min;\t\r\n }", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n // linked list for return\r\n List<V> val = new LinkedList<>();\r\n LeafNode node_next = this;\r\n LeafNode node_prev = this.previous;\r\n\r\n // to check the current node's next nodes first\r\n while (node_next != null) {\r\n if (comparator.equals(\"<=\")) {\r\n if (node_next.getFirstLeafKey().compareTo(key) > 0) {\r\n node_next = node_next.next;\r\n continue;\r\n }else{\r\n compare((K) key, comparator, (List<V>) val, node_next);\r\n node_next = node_next.next;\r\n }\r\n } else if (comparator.equals(\">=\")){\r\n if (node_next.getFirstLeafKey().compareTo(key) < 0) {\r\n node_next = node_next.next;\r\n continue;\r\n }\r\n else{\r\n compare((K) key, comparator, (List<V>) val, node_next);\r\n node_next = node_next.next;\r\n }\r\n } else if ( comparator.equals(\"==\")){\r\n if (node_next.getFirstLeafKey().compareTo(key) > 0){\r\n node_next = node_next.next;\r\n continue;\r\n } else {\r\n compare((K) key, comparator, (List<V>) val, node_next);\r\n node_next = node_next.next;\r\n }\r\n }\r\n }\r\n\r\n // to check the previous nodes\r\n while (node_prev != null) {\r\n if (comparator.equals(\"<=\")) {\r\n if (node_prev.getFirstLeafKey().compareTo(key) > 0) {\r\n node_prev = node_prev.previous;\r\n continue;\r\n }else{\r\n compare((K) key, comparator, (List<V>) val, node_prev);\r\n node_prev = node_prev.previous;\r\n }\r\n } else if (comparator.equals(\">=\")){\r\n if (node_prev.getFirstLeafKey().compareTo(key) < 0) {\r\n node_prev = node_prev.previous;\r\n continue;\r\n }\r\n else{\r\n compare((K) key, comparator, (List<V>) val, node_prev);\r\n node_prev = node_prev.previous;\r\n }\r\n } else if ( comparator.equals(\"==\")){\r\n if (node_prev.getFirstLeafKey().compareTo(key) > 0){\r\n node_prev = node_prev.previous;\r\n continue;\r\n } else {\r\n compare((K) key, comparator, (List<V>) val, node_prev);\r\n node_prev = node_prev.previous;\r\n }\r\n }\r\n\r\n\r\n }\r\n\r\n return val;\r\n }", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public int getLowerBound ();", "public abstract double[] getLowerBound();", "public ArrayList<Integer> pointsInRange( int min, int max )\n {\n ArrayList<Integer> points = new ArrayList<Integer>();\n _root.findPoints( min, max, points );\n return points;\n }", "public ArrayList<Question> getQuestionsSortedByScore() {\n \t\tArrayList<Question> sortedQuestions = questions;\n \n \t\tCollections.sort(sortedQuestions, Collections.reverseOrder(new ScoreComparator()));\n \t\t\n \t\treturn sortedQuestions;\n \t}", "int minKey(int[] key, Boolean[] mstSet) {\n // Initialize min value\n int min = Integer.MAX_VALUE, min_index = -1;\n\n for (int v = 0; v < VERTICES; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n\n return min_index;\n }", "private static Map<Double, List<Integer>> bucketizeListForTF(List<Integer> input, double bucketRange, int queryId)\r\n\t\t\tthrows ClassNotFoundException, SQLException, IOException {\r\n\t\tMap<Integer, Double> tfMap = new LinkedHashMap<Integer, Double>();\r\n\t\tList<Integer> resultsToIgnore = PersistenceController2.fetchAllResultsToIgnore(queryId, true);\r\n\t\tRankUtils.fillResultTFMap(queryId, tfMap, input, resultsToIgnore);\r\n\t\tboolean isRatioAccepted = RankUtils.foundNotFoundRatioAccepted(queryId, ACCEPTANCE_THRESHOLD);\r\n\t\tMap<Double, List<Integer>> sortedMap = RankUtils.bucketizeAndSortForTF2(isRatioAccepted, input, tfMap,\r\n\t\t\t\tbucketRange, resultsToIgnore);\r\n\t\treturn sortedMap;\r\n\t}", "@Test\r\n public void lowerHigherDoNotContains() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n check.remove(3);\r\n assertEquals(2, (int) check.lower(3));\r\n assertEquals(4, (int) check.higher(3));\r\n assertEquals(4, (int) check.ceiling(3));\r\n assertEquals(2, (int) check.floor(3));\r\n }", "public List<Integer> topk() {\n Iterator it = minheap.iterator();\r\n List<Integer> result = new ArrayList<Integer>();\r\n while (it.hasNext()) {\r\n result.add((Integer) it.next());\r\n }\r\n Collections.sort(result, Collections.reverseOrder());\r\n return result;\r\n }", "public void dec(String key) {\n if (map.containsKey(key)) {\n if (map.get(key) == 1) {\n map.remove(key);\n vals.get(1).remove(key);\n if (vals.get(1).size() > 0) {\n min = 1;\n minKey = vals.get(1).iterator().next();\n if (max == 1)\n maxKey = minKey;\n } else {\n vals.remove(1);\n if (map.size() > 0) {\n int tempMin = Integer.MAX_VALUE;\n for (Map.Entry<Integer, Set<String>> e : vals.entrySet()) {\n if (e.getValue().size() > 0)\n tempMin = Math.min(tempMin, e.getKey());\n }\n min = tempMin;\n minKey = vals.get(tempMin).iterator().next();\n } else {\n min = 0;\n max = 0;\n }\n }\n } else {\n map.put(key, map.get(key) - 1);\n int val = map.get(key);\n vals.get(val + 1).remove(key);\n if (vals.get(val + 1).size() == 0)\n vals.remove(val + 1);\n vals.putIfAbsent(val, new HashSet<>());\n vals.get(val).add(key);\n if (val + 1 == max) {\n if (vals.get(max) == null || vals.get(max).size() == 0)\n max--;\n else\n maxKey = vals.get(max).iterator().next();\n }\n if (val + 1 == min) {\n min--;\n minKey = key;\n }\n }\n }\n }", "private List<HashMap<TimeSelector, Long>> updateLeq(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLeq,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> leq = relationToTuples(rLeq);\n for (ArrayList<ComparableExpression> tuple : leq) {\n TimeSelector selector = null;\n Long literalValue = null;\n // only comparisons between a selector and a literal are interesting here\n // selector <= literal => upper(selector) = min(upper(selector), literal)\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literalValue = ((TimeLiteral) tuple.get(1)).getMilliseconds();\n upperBounds.put(selector, Math.min(upperBounds.get(selector), literalValue));\n } else if (tuple.get(1) instanceof TimeSelector &&\n tuple.get(0) instanceof TimeLiteral) {\n // selector >= literal => lower(selector) = max(lower(selector), literal)\n selector = (TimeSelector) tuple.get(1);\n literalValue = ((TimeLiteral) tuple.get(0)).getMilliseconds();\n lowerBounds.put(selector, Math.max(lowerBounds.get(selector), literalValue));\n } else {\n continue;\n }\n\n if (lowerBounds.get(selector) > upperBounds.get(selector)) {\n throw new QueryContradictoryException();\n }\n }\n\n return Arrays.asList(lowerBounds, upperBounds);\n }", "@Override\n protected void partialQuickSort(Integer[] map, int left, int right, int minIdx, int maxIdx) {\n do {\n int i = left;\n int j = right;\n int x = map[i + ((j - i) >> 1)];\n do {\n while (i < map.length && this.compareKeys(x, map[i]) > 0)\n i++;\n\n while (j >= 0 && this.compareKeys(x, map[j]) < 0)\n j--;\n\n if (i > j)\n break;\n\n if (i < j) {\n int temp = map[i];\n map[i] = map[j];\n map[j] = temp;\n }\n\n i++;\n j--;\n } while (i <= j);\n\n if (minIdx >= i)\n left = i + 1;\n else if (maxIdx <= j)\n right = j - 1;\n\n if (j - left <= right - i) {\n if (left < j)\n this.partialQuickSort(map, left, j, minIdx, maxIdx);\n\n left = i;\n } else {\n if (i < right)\n this.partialQuickSort(map, i, right, minIdx, maxIdx);\n\n right = j;\n }\n } while (left < right);\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> set = new TreeSet<Integer>();\n\t\tset.add(218);\n\t\tset.add(56);\n\t\tset.add(18);\n\t\tset.add(91);\n\t\tset.add(100);\n\t\tset.add(40);\n\t\tset.add(60);\n\t\tset.add(12);\n\n\t\tSystem.out.println(\"Elements of the treeset are: \" + set);\n\t\tSystem.out.println(\"Lowest value Stored in Java TreeSet is : \" + set.first());\n\t\tSystem.out.println(\"Highest value Stored in Java TreeSet is : \" + set.last());\n\n\t}", "private static int minKey(int[] key, Boolean[] mstSet, int V)\r\n {\r\n // Initialize min value\r\n int min = Integer.MAX_VALUE, min_index=-1;\r\n\r\n for (int v = 0; v < V; v++)\r\n if (!mstSet[v] && key[v] < min)\r\n {\r\n min = key[v];\r\n min_index = v;\r\n }\r\n\r\n return min_index;\r\n }", "List<Source> process(int topK, Set<Source> sources);", "public List<Integer> majorityElementHashMap(int[] nums) {\n int n=nums.length;\n List<Integer> result=new ArrayList<Integer>();\n Map<Integer,Integer> map=new HashMap<Integer,Integer>();\n \n for(int i=0;i<n;i++){\n if(map.containsKey(nums[i])){\n map.put(nums[i],map.get(nums[i])+1);\n }\n else{\n map.put(nums[i],1);\n }\n }\n \n for(Map.Entry<Integer,Integer> m:map.entrySet()){\n if(m.getValue()>n/3)result.add(m.getKey());\n }\n return result;\n \n }", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "private ArrayList<Integer> possibleScores() {\n return new ArrayList<Integer>();\n }", "public static Set<Integer> rndSet(int size, int min, int max){\n\n\t\tif (max < size)\n\t\t{\n\t\t throw new IllegalArgumentException(\"Can't ask for more numbers than are available\");\n\t\t}\n\n\t\tSet<Integer> generated = new LinkedHashSet<Integer>();\n\t\twhile (generated.size() < size)\n\t\t{\n\t\t Integer next = rng.nextInt(max - min + 1) + min;\n\t\t // As we're adding to a set, this will automatically do a containment check\n\t\t generated.add(next);\n\t\t}\n\t\tSystem.out.println(\"line sampled: \"+generated.toString());\n\t\treturn generated;\n\t}", "private void sortPlayerScores(){\n text=\"<html>\";\n for (int i = 1; i <= Options.getNumberOfPlayers(); i++){\n if(Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey() != null){\n Integer pl = Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey();\n if(pl != null && playerScores.containsKey(pl)){\n text += \"<p>Player \" + pl + \" Scored : \" + playerScores.get(pl) + \" points </p></br>\";\n playerScores.remove(pl);\n }\n }\n }\n text += \"</html>\";\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tMap<Integer, Integer> map =new HashMap<>();\r\n\t\tmap.put(1, 8);\r\n\t\tmap.put(2, 2);\r\n\t\tmap.put(3, 9);\r\n\t\tmap.put(4, 2);\r\n\t\t\r\n\t\t\r\n\t\tSet<Entry<Integer, Integer>> ss = new HashSet<>(map.entrySet());\r\n\t\tList<Entry<Integer, Integer>> ll = new ArrayList<>(map.entrySet());\r\n\t\t\r\n\t\tfor(Map.Entry<Integer, Integer> map1: ll)\r\n\t\t{\r\n\t\t\tSystem.out.println(map1.getKey()+\" :: \"+map1.getValue());\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(ll,new SortByValue());\r\n\t\tSystem.out.println(\"-------------------------------\");\r\n\t\t\r\n\t\tfor(Map.Entry<Integer, Integer> map1: ll)\r\n\t\t{\r\n\t\t\tSystem.out.println(map1.getKey()+\" :: \"+map1.getValue());\r\n\t\t}\r\n\r\n\t}", "public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> highScoreList = new ArrayList<>();\n if (scoreInfoList.size() <= size) {\n highScoreList = scoreInfoList;\n } else {\n for (int i = 0; i < size; i++) {\n highScoreList.add(scoreInfoList.get(i));\n }\n }\n return highScoreList;\n }", "public List<Integer> topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map=new HashMap<Integer, Integer>();\n for(int num:nums)\n {\n if(map.containsKey(num))\n map.put(num, map.get(num)+1);\n else\n map.put(num,1);\n }\n\t\t//make min heap\n PriorityQueue<Node> pq=new PriorityQueue<Node>(new Comparator<Node>(){\n public int compare(Node a, Node b)\n {\n return a.count-b.count;\n }\n });\n for(int key:map.keySet())\n {\n Node n=new Node(key, map.get(key));\n pq.offer(n);\n if(pq.size()>k)\n pq.poll();\n }\n List<Integer> list=new ArrayList<Integer>();\n while(!pq.isEmpty())\n {\n list.add(pq.poll().n);\n }\n \n return list;\n }", "private List<HashMap<TimeSelector, Long>> updateLt(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLt,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> lt = relationToTuples(rLt);\n for (ArrayList<ComparableExpression> tuple : lt) {\n TimeSelector selector = null;\n Long literalValue = null;\n // only comparisons between a selector and a literal are interesting here\n // selector < literal => upper(selector) = min(upper(selector), literal-1)\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literalValue = ((TimeLiteral) tuple.get(1)).getMilliseconds() - 1;\n upperBounds.put(selector, Math.min(upperBounds.get(selector), literalValue));\n } else if (tuple.get(1) instanceof TimeSelector &&\n tuple.get(0) instanceof TimeLiteral) {\n // selector > literal => lower(selector) = max(lower(selector), literal+1)\n selector = (TimeSelector) tuple.get(1);\n literalValue = ((TimeLiteral) tuple.get(0)).getMilliseconds() + 1;\n lowerBounds.put(selector, Math.max(lowerBounds.get(selector), literalValue));\n } else {\n continue;\n }\n\n if (lowerBounds.get(selector) > upperBounds.get(selector)) {\n throw new QueryContradictoryException();\n }\n }\n\n return Arrays.asList(lowerBounds, upperBounds);\n }", "public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> l = new ArrayList<ScoreInfo>();\n l.addAll(this.highScores); //make a copy;\n return l;\n }", "public static int maximumScore_rev2(int[] nums, int k) {\n int[] mins = new int[nums.length];\n mins[k] = nums[k];\n for (int i = k + 1; i < nums.length; ++i) {\n mins[i] = Math.min(mins[i - 1], nums[i]);\n }\n for (int i = k - 1; i >= 0; --i) {\n mins[i] = Math.min(mins[i + 1], nums[i]);\n }\n int score = mins[k], left = 0, right = nums.length - 1;\n// Then starting from both ends as the first good subarray, move the end corresponds to smaller value of the mins, and update the score accordingly.\n while (left < right) {\n score = Math.max(score, (right - left + 1) * Math.min(mins[left], mins[right]));\n if (right == k || mins[left] < mins[right]) {\n// right has reached k, The only option you have to increase left\n// left have lowest min, so by increasing the left side, the minimum value will be increased.\n ++left;\n } else {\n --right;\n }\n }\n return score;\n }", "public int score() {\n ArrayList<Integer> scores = possibleScores();\n int maxUnder = Integer.MIN_VALUE;\n int minOver = Integer.MAX_VALUE;\n for (int score : scores) {\n if (score > 21 && score < minOver) {\n minOver = score;\n } else if (score <= 21 && score > maxUnder) {\n maxUnder = score;\n }\n }\n return maxUnder == Integer.MIN_VALUE ? minOver : maxUnder;\n }", "public void getWinner() {\n\n Iterator<Integer> it = players.values().iterator();\n Integer max = it.next();\n for (Integer value : players.values()) {\n if (value > max)\n max = value;\n }\n\n\n String[] nameArr = new String[players.size()];\n nameArr = players.keySet().toArray(nameArr);\n\n int ageLimit = max;\n\n for (String emp : nameArr) {\n if (players.get(emp) < ageLimit) {\n players.remove(emp);\n }\n }\n Iterator<String> ot = players.keySet().iterator();\n String next = ot.next();\n\n System.out.println(next);\n\n }", "private SearchNode findFirstNode(HashSet<SearchNode> set){\n\t\t\tSearchNode min = null;\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (min == null || cur.fScore < min.fScore)\n\t\t\t\t\tmin = cur;\n\t\t\t}\n\t\t\treturn min;\n\t\t}", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n\t\tint[] ranks = new int[scores.length];\n\t\tint[] aliceRanks = new int[alice.length];\n\n\t\tint endIndex = -1;\n\t\tint currentElement = Integer.MIN_VALUE;\n\n\t\tfor (int i = 0; i < ranks.length; i++) {\n\t\t\tif (currentElement != scores[i]) {\n\t\t\t\tranks[++endIndex] = scores[i];\n\t\t\t\tcurrentElement = scores[i];\n\t\t\t}\n\t\t}\n\n\t\tint aliceEndIndex = -1;\n\t\tfor (int i = 0; i < aliceRanks.length; i++) {\n\t\t\tint currScore = alice[i];\n\t\t\t\n\t\t\tint globalRankApprox = binarySearch(ranks, alice[i], 0, endIndex);\n\t\t\t\n\t\t\tif (currScore >= ranks[globalRankApprox]) {\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1;\n\t\t\t}else{\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1+1;\n\t\t\t}\n\t\t}\n\n\t\treturn aliceRanks;\n\t}", "public V getLowerBound();", "private Node lowestCostThrough(List<Node> openSet, Map<Node, Double> costThrough){\n Node lowest = openSet.get(0);\n\n for(Node n: openSet){\n if(costThrough.get(n) < costThrough.get(lowest)){\n lowest = n;\n }\n }\n return lowest;\n }", "public static void main(String[] args) {\n\t\t\n\t\tList<Integer> a = new ArrayList<>();\n\t\ta.add(1);\n\t\ta.add(1);\n\t\ta.add(2);\n\t\ta.add(2);\n\t\ta.add(4);\n\t\ta.add(3);\n\t\tList<Integer> b = new ArrayList<>();\n\t\tb.add(2);\n\t\tb.add(3);\n\t\tb.add(3);\n\t\tb.add(4);\n\t\tb.add(4);\n\t\tb.add(5);\n\t\tgetMinScore(6, a, b);\n\t}", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "public List<Pair<String, Integer>> getScores() {\n if (!this.list.isPresent()) {\n this.readScores();\n }\n return new ArrayList<>(this.list.get());\n }", "public List<Integer> findClosestElements(int[] arr, int k, int x) {\n int low = 0;\n int high = arr.length - 1;\n while (high - low >= k) {\n if (Math.abs(arr[low] - x) > Math.abs(arr[high] - x)) {\n low++;\n } else {\n high--;\n }\n }\n List<Integer> res = new ArrayList<>();\n for (int i = low; i <= high; i++) {\n res.add(arr[i]);\n }\n return res;\n }", "public void updateMinMax( ) {\r\n if( (data == null) || (data.size() < 1) ) {\r\n min = 0.0;\r\n max = 0.0;\r\n return;\r\n }\r\n\r\n min = data.get( 0 );\r\n max = data.get( 0 );\r\n\r\n for( int i = 1; i < data.size(); i++ ) {\r\n if( min > data.get( i ) )\r\n min = data.get( i );\r\n if( max < data.get( i ) )\r\n max = data.get( i );\r\n }\r\n\r\n }", "Lista<K> keySet();", "private void heapify() {\n\t\tint currIndex = 0;\n\t\twhile (currIndex < heapSize) {\n\t\t\tT val = lstEle.get(currIndex);\n\t\t\tint leftSubtreeIndex = getLeftSubtree(currIndex);\n\t\t\tint rightSubtreeIndex = getRightSubtree(currIndex);\n\t\t\tT leftChildVal = leftSubtreeIndex < heapSize ? lstEle.get(leftSubtreeIndex) : null;\n\t\t\tT rightChildVal = rightSubtreeIndex < heapSize ? lstEle.get(rightSubtreeIndex) : null;\n\t\t\t\n\t\t\tT minVal = null;\n\t\t\tint minValIndex = -1;\n\t\t\tif(leftChildVal != null && rightChildVal != null){\n\t\t\t\tint compVal = leftChildVal.compareTo(rightChildVal); \n\t\t\t\tif(compVal < 0){\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t}else {\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(leftChildVal != null && leftChildVal.compareTo(val) < 0){\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t}else if (rightChildVal != null && rightChildVal.compareTo(val) < 0 ){\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\tMin Val : \" +minVal +\" --> \" +minValIndex);\n\t\t\t\n\t\t\tlstEle.set(currIndex, minVal);\n\t\t\tcurrIndex = minValIndex;\n\t\t\tlstEle.set(minValIndex, val);\n\t\t\t\n\t\t}\n\n\t}", "@Test\n\tpublic void testExtractMin() {\n\t\tHeap heap = new Heap(testArrayList.length);\n\t\tdouble[] expected = new double[] { 5, 7, 24, 36, 15, 48, 32, 47, 93, 27, 38, 70, 53, 33, 93 };\n\t\theap.build(testArrayList);\n\t\tassertEquals(3, heap.extractMin().key);\n\t\tassertArrayEquals(expected, heap.getKeyArray());\n\t\tassertEquals(14, heap.getSize());\n\t}" ]
[ "0.6719158", "0.65932786", "0.6304401", "0.6070699", "0.59481555", "0.58306134", "0.5655246", "0.5580039", "0.5535214", "0.54717606", "0.5466607", "0.53808606", "0.5274243", "0.52416444", "0.5184524", "0.5129351", "0.51235527", "0.51099735", "0.5102726", "0.49982896", "0.4970655", "0.4927691", "0.49215373", "0.49100304", "0.48719567", "0.48347238", "0.48263073", "0.48261997", "0.480292", "0.47997266", "0.47953635", "0.47810686", "0.47778454", "0.47142756", "0.47069612", "0.46979985", "0.46873125", "0.4683062", "0.4671155", "0.46623614", "0.46578133", "0.46563968", "0.46553913", "0.46518266", "0.46486905", "0.46343562", "0.46206832", "0.4619993", "0.46088094", "0.46019512", "0.4575855", "0.45634425", "0.45576432", "0.45574233", "0.4556799", "0.4553835", "0.4553003", "0.4551479", "0.4545829", "0.45425776", "0.45318323", "0.45242658", "0.45229945", "0.4521997", "0.45198038", "0.45079708", "0.4503221", "0.44923097", "0.4471281", "0.4466003", "0.44593778", "0.44531518", "0.44494247", "0.4447433", "0.44317776", "0.4425947", "0.44209263", "0.44096255", "0.4408277", "0.44046435", "0.4402345", "0.43962544", "0.43935516", "0.43908933", "0.4385894", "0.43857226", "0.43850955", "0.43794167", "0.4373563", "0.43699095", "0.4361286", "0.43571365", "0.4354198", "0.4349619", "0.43476474", "0.43469754", "0.43464798", "0.434487", "0.43434137", "0.43382958" ]
0.6909095
0
Return the all the elements in the sorted set at key with a score between min and max (including elements with score equal to min or max). Ordered from the highest to the lowest score.
public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double min, final double max) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.zrevrangeByScoreWithScores(key, max, min); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<Tuple> zrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScoreWithScores(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<String> zrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeByScore(key, min, max);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<String> zrevrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScore(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public <T> Set<T> zrangeHashSetByScore(final String key, final double min, final double max, Class<T> clazz) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max);\n if (tempSet != null && tempSet.size() > 0) {\n HashSet<T> result = new HashSet<T>();\n for (byte[] value : tempSet) {\n // result.add((T) HessianSerializer.deserialize(value));\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public <T> List<T> zrangeByScore(final String key, final double min, final double max, Class<T> clazz) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrangeByScore(key.getBytes(), min, max);\n if (tempSet != null && tempSet.size() > 0) {\n List<T> result = new ArrayList<T>();\n for (byte[] value : tempSet) {\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Set<Tuple> zrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "private ArrayList<Integer> binarySearch(ArrayList<Integer> arraylist, int key, int min, int max)\n\t{\n\t\tArrayList<Integer> mids = new ArrayList<Integer>(); \n\t \n\t\twhile (max >= min)\n\t\t{\n\t\t\tint mid = (min + max) / 2;\n\t \n\t\t\tmids.add(mid); \n\t \n\t\t\tif (arraylist.get(mid) < key)\n\t\t\t{\n\t\t\t\tmax = mid - 1;\n\t\t\t}\n\t \n\t\t\telse if (arraylist.get(mid) > key )\n\t\t\t{\n\t\t\t\tmin = mid + 1;\n\t\t\t}\n\t \n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak; \n\t\t\t}\n\t\t}\n\t \n\t\treturn mids; \n\t}", "abstract List<V> rangeSearch(K key, String comparator);", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n return getChild(key).rangeSearch(key, comparator);\r\n }", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "void collect(Object key, float score);", "int[] maxAndMin() {\n\n // **** ****\n HashMap<Integer, Integer> hm = new HashMap<Integer, Integer>();\n\n // **** traverse parrents array inserting into hashmap: O(n) ****\n for (int val : this.parents) {\n hm.put(val, hm.getOrDefault(val, 0) + 1);\n }\n\n // ???? ????\n // System.out.println(\"maxAndMin <<< hm: \" + hm.toString());\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse hashmap looking for min and max: O(n) ****\n Iterator<Entry<Integer, Integer>> it = hm.entrySet().iterator();\n while (it.hasNext()) {\n Entry<Integer, Integer> e = it.next();\n\n // **** skip this key ****\n if (e.getKey() == 0)\n continue;\n\n // **** update min and max ****\n min = Math.min(e.getValue(), min);\n max = Math.max(e.getValue(), max);\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "Collection<T> getMinElements();", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "public void queryRange(int lowKey, int highKey, IntPushOperator results) {\n\t\tIntBTreeNode next = entries.get(lowKey);\n\t\tnext.queryRange(lowKey, highKey, results);\n\t}", "Set<Art> getArtByPrice(Double upper, Double lower);", "public static void main(String[] args) {\n\t\t\r\n\t\tTreeMap<Integer,String> map = new TreeMap<Integer,String>();\r\n\t\t\r\n map.put(2000, \"A\");\r\n map.put(5000, \"E\");\r\n map.put(6000, \"F\");\r\n map.put(7000, \"G\");\r\n map.put(3000, \"C\");\r\n map.put(4000, \"D\");\r\n map.put(2100, \"B\");\r\n System.out.println(map);\r\n System.out.println(\"max\"+map.lastKey());\r\n System.out.println(\"min\"+map.firstKey());\r\n \r\n Set<Integer> setLessThen3k = map.headMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessThen3k);\r\n \r\n Set<Integer> setLessgreater3k = map.tailMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessgreater3k);\r\n \r\n \r\n\r\n\t\tTreeMap<String,Integer> Usermap = new TreeMap<String,Integer>();\r\n\t\t\r\n\t\tUsermap.put( \"A\",2000);\r\n\t\tUsermap.put( \"F\",8000);\r\n\t\tUsermap.put( \"G\",7000);\r\n\t\tUsermap.put( \"C\",3000);\r\n\t\tUsermap.put( \"D\",3000);\r\n\t\tUsermap.put( \"E\",9000);\r\n\t\tUsermap.put( \"B\",8000);\r\n System.out.println(map);\r\n System.out.println(\"max\"+Usermap.lastKey());\r\n System.out.println(\"min\"+Usermap.firstKey());\r\n \r\n\r\n \r\n \r\n\t}", "public static void main(String[] args) {\n\t\tHashSet<Double> hash = new HashSet<>();\n\t\thash.add(1.5);\n\t\thash.add(8.25);\n\t\thash.add(-7.32);\n\t\thash.add(13.3);\n\t\thash.add(-12.45);\n\t\thash.add(48.5);\n\t\thash.add(0.01);\n\t\tdouble max = 0;\n\t\tdouble min = 0;\n\t\t\n\t\tfor (Double double1 : hash) {\n\t\t\tSystem.out.println(double1);\n\t\t\tif (double1 > max) {\n\t\t\t\tmax = double1;\n\t\t\t}\n\t\t\tif (double1 < min) {\n\t\t\t\tmin = double1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Max : \" + max);\n\t\tSystem.out.println(\"Min : \" + min);\n\t\thash.remove(min);\n\t\tfor (Double double1 : hash)\n\t\t\tSystem.out.println(double1);\n\t}", "@Override\r\n public List<V> rangeSearch(K key, String comparator) {\r\n if (!comparator.contentEquals(\">=\") &&\r\n !comparator.contentEquals(\"==\") &&\r\n !comparator.contentEquals(\"<=\"))\r\n return new ArrayList<V>();\r\n\r\n // if key is null, it returns a empty list\r\n if ( key == null){\r\n return new ArrayList<V>();\r\n }\r\n return root.rangeSearch(key, comparator);\r\n }", "Lista<V> valuesInRange(K init, K end);", "public abstract Collection<T> getMatchesAboveThreshold(T first,\n double similarityThreshold);", "public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}", "public void set(int min, int max, double score){\r\n\t\tchart[min][max] = score;\r\n\t}", "static int[] jobOffers(int[] scores, int[] lowerLimits, int[] upperLimits) {\n int[] res = new int[lowerLimits.length];\n\n TreeMap<Integer, Integer> map = new TreeMap<>();\n\n for (int s : scores)\n map.put(s, map.getOrDefault(s, 0) + 1);\n\n for (int i = 0; i < lowerLimits.length; i++) {\n NavigableMap<Integer, Integer> submap = map.subMap(lowerLimits[i], true, upperLimits[i], true);\n int count = 0;\n for (Integer j : submap.values()) count += j;\n res[i] = count;\n }\n\n // If this solution works, please give a star to my repo (:\n return res;\n }", "private static void findKClosestNumbers(int[] arr, int key, int k) {\n\n\t\tPriorityQueue<Integer> pq;\n\t\tint max = findMaxInArr(arr);\n\t\tint min = findMinInArr(arr);\n\n\t\tint maxDiff = Math.abs(key - max);\n\t\tint minDiff = Math.abs(key - min);\n\n\t\tif (maxDiff <= minDiff) {\n\t\t\tpq = new PriorityQueue<>(Collections.reverseOrder());\n\t\t} else {\n\t\t\tpq = new PriorityQueue<>();\n\t\t}\n\n\t\tfor (int e : arr) {\n\t\t\tpq.add(e);\n\t\t}\n\n\t\tint c = 0;\n\n\t\twhile (c < k) {\n\t\t\tSystem.out.println(pq.remove());\n\t\t\tc++;\n\t\t}\n\n\t}", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "Lista<K> keysInRange(K init, K end);", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "public static void main(String[] args) {\n\t\tTreeSet<Integer> scores = new TreeSet<Integer>();\n\t\tscores.add(new Integer(87));\n\t\tscores.add(new Integer(98));\n\t\tscores.add(new Integer(75));\n\t\tscores.add(new Integer(95));\n\t\tscores.add(new Integer(80));\n\t\t\n\t\tInteger score =null;\n\t\t\n\t\tscore = scores.first();\n\t\tSystem.out.println(\"가장 낮은 점수 : \" + score);\n\t\t\n\t\tscore = scores.last();\n\t\tSystem.out.println(\"가장 높은 점수 : \" + score);\n\t\t\n\t\tscore = scores.lower(new Integer(95));\n\t\tSystem.out.println(\"95점 아래의 점수 : \" + score);\n\t\t\n\t\tscore = scores.higher(new Integer(95));\n\t\tSystem.out.println(\"95점 위의 점수 : \" + score);\n\t\t\n\t\tscore = scores.ceiling(new Integer(95));\n\t\tSystem.out.println(\"95점 이상의 점수 : \" + score);\n\t\t\n\t\tscore = scores.floor(new Integer(95));\n\t\tSystem.out.println(\"95점 이하의 점수 : \" + score);\n\t\t\n\t\twhile(!scores.isEmpty()) {\n\t\t\tSystem.out.println(scores.pollFirst());\n\t\t}\n\t}", "KeyGroupRange getKeyGroupRange();", "public static void main(String[] args) {\n\t\t\n\t\tint k = 3;\n\t\t\n\t\tint max = Integer.MIN_VALUE, min = Integer.MAX_VALUE;\n\t\t\n\t\tint arr[] = new int[k];\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tif(max < arr[i])\n\t\t\t\tmax = arr[i];\n\t\t\tif(min > arr[i])\n\t\t\t\tmin = arr[i];\n\t\t}\n\t\t\n\t\t\n\t\tint [][] arr1 = {{3,8},{10,11},{1,3},{2,4}};\n\t\t\n\t\tSystem.out.println(selection(arr1));\n\t}", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "public MatcherScores(SortedMap<Double, SortedSet<String>> scores)\n {\n this.scores = Objects.requireNonNull(scores);\n }", "private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }", "Score getScores(int index);", "public static <T> Pair<ArrayList<T>, Double> relativeHabitFilter(Map<T, Double> habitStrength){\n\t\t//System.out.print(\"rHabitFilter is called on size:\" + habitStrength.size());\n\t\tMap<T, Double> sorted= Helper.sortByValue(habitStrength);\n\t\tArrayList<T> keys =new ArrayList<T>(sorted.keySet());\n\t\t\n\t\t//System.out.println(habitStrength);\n\t\t//System.out.println(sorted);\n\t\t\n\t\tdouble bestDifference = 0;\n\t\tdouble bestSplit = 0;\n\t\tfor(int i = 0; i < keys.size()-1; i++){\n\t\t\tMap<T, Double> left = new HashMap<T, Double>();\n\t\t\tMap<T, Double> right =new HashMap<T, Double>(habitStrength);\n\t\t\tfor(int j =0; j <= i; j++){ //Fill maps left and right\n\t\t\t\tT key = keys.get(j);\n\t\t\t\tleft.put(key, sorted.get(key));\n\t\t\t\tright.remove(key);\n\t\t\t\t//System.out.print(\"loopmakemaps\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tdouble difference = Helper.avarageDouble(right.values()) - Helper.avarageDouble(left.values());\n\t\t\tif(difference > bestDifference){\n\t\t\t\tbestDifference = difference;\n\t\t\t\tbestSplit = i;\n\t\t\t}\n\t\t\t//System.out.print(\"loopfindbest\");\n\t\t}\n\t\t\n\t\tArrayList<T> newCandidates =new ArrayList<T>();\n\t\tfor(int j = keys.size()-1; j > bestSplit; j--){\n\t\t\tnewCandidates.add(keys.get(j));\n\t\t\t//System.out.print(\"loophere\");\n\t\t}\n\t\t\n\t\t//System.out.println(\"I made it! Difference:\" + bestDifference + \"newCandidates\" + newCandidates);\n\t\t\n\t\treturn new ImmutablePair<ArrayList<T>, Double>(newCandidates, bestDifference);\n\t}", "ArrayList <Integer> nearlySorted(int arr[], int num, int k)\n {\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n ArrayList<Integer> res = new ArrayList<>();\n for(int i=0;i<k+1;i++){\n pq.add(arr[i]);\n }\n \n for(int i=k+1;i<num;i++){\n res.add(pq.remove());\n pq.add(arr[i]);\n }\n \n while(pq.size()>0){\n res.add(pq.remove());\n }\n \n return res;\n }", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "java.util.List<Score>\n getScoresList();", "public SortedSubset(RangeSet<T> constitutingSuperset, T lowerbound, T upperbound)\n\t{\n\t\tinit(constitutingSuperset, lowerbound, upperbound, true, false);\n\t}", "int[] minAndMax() {\n\n // **** declare and populate array of Integers with the values of the parents O(n) ****\n Integer[] arr = new Integer[this.parents.length];\n int i = 0;\n for (int val : this.parents)\n arr[i++] = val;\n\n // **** create a list with the values in the parents ****\n List<Integer> al = Arrays.asList(arr);\n\n // **** initialize the min and max values ****\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n // **** traverse the array arr: O(n^2) ****\n for (int item : arr) {\n if (item != 0) {\n\n // **** get the frequency of item in the list: O(n) ****\n int freq = Collections.frequency(al, item);\n\n // ???? ????\n System.out.println(\"minAndMax <<< item: \" + item + \" freq: \" + freq);\n\n // **** update the min and max values ****\n min = Math.min(min, freq);\n max = Math.max(max, freq);\n }\n }\n\n // **** package results ****\n int[] result = { min, max };\n\n // **** return results ****\n return result;\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public List<T> findByKey(String key, Object object, int start, int max);", "@Override\n public Set<K> keySet() {\n if (isEmpty()) return new HashSet<K>();\n return keys(min(), max());\n }", "public double getBestScore();", "@Nonnull\r\n\tpublic static <T, Key> Observable<List<T>> minMax(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func1<? super T, ? extends Key> keyExtractor,\r\n\t\t\t@Nonnull final Comparator<? super Key> keyComparator,\r\n\t\t\tfinal boolean max\r\n\t) {\r\n\t\treturn new Observable<List<T>>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super List<T>> observer) {\r\n\t\t\t\treturn source.register(new Observer<T>() {\r\n\t\t\t\t\t/** The current collection for the minimum of Ts. */\r\n\t\t\t\t\tList<T> collect;\r\n\t\t\t\t\t/** The current minimum value. */\r\n\t\t\t\t\tKey maxKey;\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void finish() {\r\n\t\t\t\t\t\tif (collect != null) {\r\n\t\t\t\t\t\t\tobserver.next(collect);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void next(T value) {\r\n\t\t\t\t\t\tKey key = keyExtractor.invoke(value);\r\n\t\t\t\t\t\tif (collect == null) {\r\n\t\t\t\t\t\t\tmaxKey = key;\r\n\t\t\t\t\t\t\tcollect = new ArrayList<T>();\r\n\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tint order = keyComparator.compare(maxKey, key);\r\n\t\t\t\t\t\t\tif (order == 0) {\r\n\t\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\tif (max ^ (order > 0)) {\r\n\t\t\t\t\t\t\t\tmaxKey = key;\r\n\t\t\t\t\t\t\t\tcollect = new ArrayList<T>();\r\n\t\t\t\t\t\t\t\tcollect.add(value);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}", "int minKey(float key[], Boolean mstSet[]){\n float min = Float.MAX_VALUE;\n int min_index = -1;\n \n for (int v = 0; v < V; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n \n return min_index;\n }", "public abstract Key getLargest();", "protected abstract List<Double> calcScores();", "public int minXValue (Map <String,ArrayList<Point>> map){\r\n \tint min = 0 , i = 0;\r\n \t\tfor (String key : map.keySet()) {\r\n \t\t\tif ( min < map.get(key).get(i).getX())\r\n \t\t\t\tmin = (int) map.get(key).get(i).getX();\r\n \t\t\ti++;\r\n \t\t}\r\n \treturn min;\t\r\n }", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "List<V> rangeSearch(K key, String comparator) {\r\n\r\n // linked list for return\r\n List<V> val = new LinkedList<>();\r\n LeafNode node_next = this;\r\n LeafNode node_prev = this.previous;\r\n\r\n // to check the current node's next nodes first\r\n while (node_next != null) {\r\n if (comparator.equals(\"<=\")) {\r\n if (node_next.getFirstLeafKey().compareTo(key) > 0) {\r\n node_next = node_next.next;\r\n continue;\r\n }else{\r\n compare((K) key, comparator, (List<V>) val, node_next);\r\n node_next = node_next.next;\r\n }\r\n } else if (comparator.equals(\">=\")){\r\n if (node_next.getFirstLeafKey().compareTo(key) < 0) {\r\n node_next = node_next.next;\r\n continue;\r\n }\r\n else{\r\n compare((K) key, comparator, (List<V>) val, node_next);\r\n node_next = node_next.next;\r\n }\r\n } else if ( comparator.equals(\"==\")){\r\n if (node_next.getFirstLeafKey().compareTo(key) > 0){\r\n node_next = node_next.next;\r\n continue;\r\n } else {\r\n compare((K) key, comparator, (List<V>) val, node_next);\r\n node_next = node_next.next;\r\n }\r\n }\r\n }\r\n\r\n // to check the previous nodes\r\n while (node_prev != null) {\r\n if (comparator.equals(\"<=\")) {\r\n if (node_prev.getFirstLeafKey().compareTo(key) > 0) {\r\n node_prev = node_prev.previous;\r\n continue;\r\n }else{\r\n compare((K) key, comparator, (List<V>) val, node_prev);\r\n node_prev = node_prev.previous;\r\n }\r\n } else if (comparator.equals(\">=\")){\r\n if (node_prev.getFirstLeafKey().compareTo(key) < 0) {\r\n node_prev = node_prev.previous;\r\n continue;\r\n }\r\n else{\r\n compare((K) key, comparator, (List<V>) val, node_prev);\r\n node_prev = node_prev.previous;\r\n }\r\n } else if ( comparator.equals(\"==\")){\r\n if (node_prev.getFirstLeafKey().compareTo(key) > 0){\r\n node_prev = node_prev.previous;\r\n continue;\r\n } else {\r\n compare((K) key, comparator, (List<V>) val, node_prev);\r\n node_prev = node_prev.previous;\r\n }\r\n }\r\n\r\n\r\n }\r\n\r\n return val;\r\n }", "private static int partition(Comparable[] data, int min, int max) {\n\n\t\t// Use first element as the partition value\n\n\t\tComparable partitionValue = data[min];\n\n\t\tint left = min;\n\t\tint right = max;\n\n\t\twhile (left < right) {\n\t\t\t// Search for an element that is > the partition element\n\t\t\twhile (data[left].compareTo(partitionValue) <= 0 && left < right)\n\t\t\t\tleft++;\n\t\t\t// Search for an element that is < the partitionelement\n\t\t\twhile (data[right].compareTo(partitionValue) > 0)\n\t\t\t\tright--;\n\t\t\tif (left < right)\n\t\t\t\tswap(data, left, right);\n\t\t}\n\t\t// Move the partition element to its final position\n\t\tswap(data, min, right);\n\n\t\treturn right;\n\t}", "@Test\n public void test_kmax_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmax(i5, 5, new CompareIntegerAscending());\n int expected = 1;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "@Override\n public CloseableIterator<KVPair> getRange(byte[] minKey, byte[] maxKey, boolean reverse) {\n Preconditions.checkState(!this.closed.get(), \"transaction closed\");\n return new XodusIter(this.store.openCursor(this.tx), minKey, maxKey, reverse);\n }", "public static ArrayList<String> getTopTen() throws Exception{\n\t\n\tint start, end;\n\tFile xmlFile = getFile();\n\tif(!xmlFile.exists()){\n\t\tJOptionPane.showMessageDialog(null, \"Record Does nor exist\");\n\t}\n\tScore root = new Score();\n\tMap<String, Integer> standings = new TreeMap<String, Integer>();\n root = readObjectAsXmlFrom(new FileReader(xmlFile.getAbsolutePath()), root.getClass());\n standings = root.standings;\n Map<String, Integer> sortedStandings = sortByValue(standings);\n Set<Entry<String, Integer>> keys = sortedStandings.entrySet();\n Object[] sortedArr = keys.toArray();\n end = sortedArr.length;\n if(end<=10) start = 0;\n else start = end -10;\n ArrayList<String> result = new ArrayList<String>();\n for(int x = start; x<end;x++){\n \tresult.add(sortedArr[x].toString());\n }\n\treturn result;\n }", "@Test\n public void test_kmin_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmin(i5, 2, new CompareIntegerAscending());\n int expected = 3;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "public ArrayList<Question> getQuestionsSortedByScore() {\n \t\tArrayList<Question> sortedQuestions = questions;\n \n \t\tCollections.sort(sortedQuestions, Collections.reverseOrder(new ScoreComparator()));\n \t\t\n \t\treturn sortedQuestions;\n \t}", "public int getLowerBound ();", "private static Map<String, Double> extractBestSuppliers (Map<Supplier, Double> supplierScores, int numResults) {\n\t\tMap<Supplier, Double> rankedResults = sortDescending(supplierScores);\n\t\tIterable<Entry<Supplier, Double>> firstEntries =\n\t\t\t\tIterables.limit(rankedResults.entrySet(), numResults);\n\t\t\n\t\t//return the [numResults] best suppliers according to highest scores\n\t\tMap<String, Double> finalSupplierMap = new LinkedHashMap<String, Double>();\t\t\n\t\tfor (Entry<Supplier, Double> e : firstEntries) {\n\t\t\tfinalSupplierMap.put(e.getKey().getId(), e.getValue());\n\t\t}\n\t\t\n\t\treturn finalSupplierMap;\n\n\t}", "public abstract double[] getLowerBound();", "public Set<T> getRanges();", "int minKey(int[] key, Boolean[] mstSet) {\n // Initialize min value\n int min = Integer.MAX_VALUE, min_index = -1;\n\n for (int v = 0; v < VERTICES; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n\n return min_index;\n }", "public ArrayList<Integer> pointsInRange( int min, int max )\n {\n ArrayList<Integer> points = new ArrayList<Integer>();\n _root.findPoints( min, max, points );\n return points;\n }", "private static Map<Double, List<Integer>> bucketizeListForTF(List<Integer> input, double bucketRange, int queryId)\r\n\t\t\tthrows ClassNotFoundException, SQLException, IOException {\r\n\t\tMap<Integer, Double> tfMap = new LinkedHashMap<Integer, Double>();\r\n\t\tList<Integer> resultsToIgnore = PersistenceController2.fetchAllResultsToIgnore(queryId, true);\r\n\t\tRankUtils.fillResultTFMap(queryId, tfMap, input, resultsToIgnore);\r\n\t\tboolean isRatioAccepted = RankUtils.foundNotFoundRatioAccepted(queryId, ACCEPTANCE_THRESHOLD);\r\n\t\tMap<Double, List<Integer>> sortedMap = RankUtils.bucketizeAndSortForTF2(isRatioAccepted, input, tfMap,\r\n\t\t\t\tbucketRange, resultsToIgnore);\r\n\t\treturn sortedMap;\r\n\t}", "@Override\n protected void partialQuickSort(Integer[] map, int left, int right, int minIdx, int maxIdx) {\n do {\n int i = left;\n int j = right;\n int x = map[i + ((j - i) >> 1)];\n do {\n while (i < map.length && this.compareKeys(x, map[i]) > 0)\n i++;\n\n while (j >= 0 && this.compareKeys(x, map[j]) < 0)\n j--;\n\n if (i > j)\n break;\n\n if (i < j) {\n int temp = map[i];\n map[i] = map[j];\n map[j] = temp;\n }\n\n i++;\n j--;\n } while (i <= j);\n\n if (minIdx >= i)\n left = i + 1;\n else if (maxIdx <= j)\n right = j - 1;\n\n if (j - left <= right - i) {\n if (left < j)\n this.partialQuickSort(map, left, j, minIdx, maxIdx);\n\n left = i;\n } else {\n if (i < right)\n this.partialQuickSort(map, i, right, minIdx, maxIdx);\n\n right = j;\n }\n } while (left < right);\n }", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public List<Integer> topk() {\n Iterator it = minheap.iterator();\r\n List<Integer> result = new ArrayList<Integer>();\r\n while (it.hasNext()) {\r\n result.add((Integer) it.next());\r\n }\r\n Collections.sort(result, Collections.reverseOrder());\r\n return result;\r\n }", "private List<HashMap<TimeSelector, Long>> updateLeq(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLeq,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> leq = relationToTuples(rLeq);\n for (ArrayList<ComparableExpression> tuple : leq) {\n TimeSelector selector = null;\n Long literalValue = null;\n // only comparisons between a selector and a literal are interesting here\n // selector <= literal => upper(selector) = min(upper(selector), literal)\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literalValue = ((TimeLiteral) tuple.get(1)).getMilliseconds();\n upperBounds.put(selector, Math.min(upperBounds.get(selector), literalValue));\n } else if (tuple.get(1) instanceof TimeSelector &&\n tuple.get(0) instanceof TimeLiteral) {\n // selector >= literal => lower(selector) = max(lower(selector), literal)\n selector = (TimeSelector) tuple.get(1);\n literalValue = ((TimeLiteral) tuple.get(0)).getMilliseconds();\n lowerBounds.put(selector, Math.max(lowerBounds.get(selector), literalValue));\n } else {\n continue;\n }\n\n if (lowerBounds.get(selector) > upperBounds.get(selector)) {\n throw new QueryContradictoryException();\n }\n }\n\n return Arrays.asList(lowerBounds, upperBounds);\n }", "@Test\r\n public void lowerHigherDoNotContains() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n check.remove(3);\r\n assertEquals(2, (int) check.lower(3));\r\n assertEquals(4, (int) check.higher(3));\r\n assertEquals(4, (int) check.ceiling(3));\r\n assertEquals(2, (int) check.floor(3));\r\n }", "private static int minKey(int[] key, Boolean[] mstSet, int V)\r\n {\r\n // Initialize min value\r\n int min = Integer.MAX_VALUE, min_index=-1;\r\n\r\n for (int v = 0; v < V; v++)\r\n if (!mstSet[v] && key[v] < min)\r\n {\r\n min = key[v];\r\n min_index = v;\r\n }\r\n\r\n return min_index;\r\n }", "public void dec(String key) {\n if (map.containsKey(key)) {\n if (map.get(key) == 1) {\n map.remove(key);\n vals.get(1).remove(key);\n if (vals.get(1).size() > 0) {\n min = 1;\n minKey = vals.get(1).iterator().next();\n if (max == 1)\n maxKey = minKey;\n } else {\n vals.remove(1);\n if (map.size() > 0) {\n int tempMin = Integer.MAX_VALUE;\n for (Map.Entry<Integer, Set<String>> e : vals.entrySet()) {\n if (e.getValue().size() > 0)\n tempMin = Math.min(tempMin, e.getKey());\n }\n min = tempMin;\n minKey = vals.get(tempMin).iterator().next();\n } else {\n min = 0;\n max = 0;\n }\n }\n } else {\n map.put(key, map.get(key) - 1);\n int val = map.get(key);\n vals.get(val + 1).remove(key);\n if (vals.get(val + 1).size() == 0)\n vals.remove(val + 1);\n vals.putIfAbsent(val, new HashSet<>());\n vals.get(val).add(key);\n if (val + 1 == max) {\n if (vals.get(max) == null || vals.get(max).size() == 0)\n max--;\n else\n maxKey = vals.get(max).iterator().next();\n }\n if (val + 1 == min) {\n min--;\n minKey = key;\n }\n }\n }\n }", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> set = new TreeSet<Integer>();\n\t\tset.add(218);\n\t\tset.add(56);\n\t\tset.add(18);\n\t\tset.add(91);\n\t\tset.add(100);\n\t\tset.add(40);\n\t\tset.add(60);\n\t\tset.add(12);\n\n\t\tSystem.out.println(\"Elements of the treeset are: \" + set);\n\t\tSystem.out.println(\"Lowest value Stored in Java TreeSet is : \" + set.first());\n\t\tSystem.out.println(\"Highest value Stored in Java TreeSet is : \" + set.last());\n\n\t}", "private ArrayList<Integer> possibleScores() {\n return new ArrayList<Integer>();\n }", "List<Source> process(int topK, Set<Source> sources);", "private void sortPlayerScores(){\n text=\"<html>\";\n for (int i = 1; i <= Options.getNumberOfPlayers(); i++){\n if(Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey() != null){\n Integer pl = Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey();\n if(pl != null && playerScores.containsKey(pl)){\n text += \"<p>Player \" + pl + \" Scored : \" + playerScores.get(pl) + \" points </p></br>\";\n playerScores.remove(pl);\n }\n }\n }\n text += \"</html>\";\n }", "private List<HashMap<TimeSelector, Long>> updateLt(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLt,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> lt = relationToTuples(rLt);\n for (ArrayList<ComparableExpression> tuple : lt) {\n TimeSelector selector = null;\n Long literalValue = null;\n // only comparisons between a selector and a literal are interesting here\n // selector < literal => upper(selector) = min(upper(selector), literal-1)\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literalValue = ((TimeLiteral) tuple.get(1)).getMilliseconds() - 1;\n upperBounds.put(selector, Math.min(upperBounds.get(selector), literalValue));\n } else if (tuple.get(1) instanceof TimeSelector &&\n tuple.get(0) instanceof TimeLiteral) {\n // selector > literal => lower(selector) = max(lower(selector), literal+1)\n selector = (TimeSelector) tuple.get(1);\n literalValue = ((TimeLiteral) tuple.get(0)).getMilliseconds() + 1;\n lowerBounds.put(selector, Math.max(lowerBounds.get(selector), literalValue));\n } else {\n continue;\n }\n\n if (lowerBounds.get(selector) > upperBounds.get(selector)) {\n throw new QueryContradictoryException();\n }\n }\n\n return Arrays.asList(lowerBounds, upperBounds);\n }", "public List<Integer> majorityElementHashMap(int[] nums) {\n int n=nums.length;\n List<Integer> result=new ArrayList<Integer>();\n Map<Integer,Integer> map=new HashMap<Integer,Integer>();\n \n for(int i=0;i<n;i++){\n if(map.containsKey(nums[i])){\n map.put(nums[i],map.get(nums[i])+1);\n }\n else{\n map.put(nums[i],1);\n }\n }\n \n for(Map.Entry<Integer,Integer> m:map.entrySet()){\n if(m.getValue()>n/3)result.add(m.getKey());\n }\n return result;\n \n }", "private SearchNode findFirstNode(HashSet<SearchNode> set){\n\t\t\tSearchNode min = null;\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (min == null || cur.fScore < min.fScore)\n\t\t\t\t\tmin = cur;\n\t\t\t}\n\t\t\treturn min;\n\t\t}", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n\t\tint[] ranks = new int[scores.length];\n\t\tint[] aliceRanks = new int[alice.length];\n\n\t\tint endIndex = -1;\n\t\tint currentElement = Integer.MIN_VALUE;\n\n\t\tfor (int i = 0; i < ranks.length; i++) {\n\t\t\tif (currentElement != scores[i]) {\n\t\t\t\tranks[++endIndex] = scores[i];\n\t\t\t\tcurrentElement = scores[i];\n\t\t\t}\n\t\t}\n\n\t\tint aliceEndIndex = -1;\n\t\tfor (int i = 0; i < aliceRanks.length; i++) {\n\t\t\tint currScore = alice[i];\n\t\t\t\n\t\t\tint globalRankApprox = binarySearch(ranks, alice[i], 0, endIndex);\n\t\t\t\n\t\t\tif (currScore >= ranks[globalRankApprox]) {\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1;\n\t\t\t}else{\n\t\t\t\taliceRanks[++aliceEndIndex] = globalRankApprox+1+1;\n\t\t\t}\n\t\t}\n\n\t\treturn aliceRanks;\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tMap<Integer, Integer> map =new HashMap<>();\r\n\t\tmap.put(1, 8);\r\n\t\tmap.put(2, 2);\r\n\t\tmap.put(3, 9);\r\n\t\tmap.put(4, 2);\r\n\t\t\r\n\t\t\r\n\t\tSet<Entry<Integer, Integer>> ss = new HashSet<>(map.entrySet());\r\n\t\tList<Entry<Integer, Integer>> ll = new ArrayList<>(map.entrySet());\r\n\t\t\r\n\t\tfor(Map.Entry<Integer, Integer> map1: ll)\r\n\t\t{\r\n\t\t\tSystem.out.println(map1.getKey()+\" :: \"+map1.getValue());\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(ll,new SortByValue());\r\n\t\tSystem.out.println(\"-------------------------------\");\r\n\t\t\r\n\t\tfor(Map.Entry<Integer, Integer> map1: ll)\r\n\t\t{\r\n\t\t\tSystem.out.println(map1.getKey()+\" :: \"+map1.getValue());\r\n\t\t}\r\n\r\n\t}", "public int score() {\n ArrayList<Integer> scores = possibleScores();\n int maxUnder = Integer.MIN_VALUE;\n int minOver = Integer.MAX_VALUE;\n for (int score : scores) {\n if (score > 21 && score < minOver) {\n minOver = score;\n } else if (score <= 21 && score > maxUnder) {\n maxUnder = score;\n }\n }\n return maxUnder == Integer.MIN_VALUE ? minOver : maxUnder;\n }", "public List<Integer> topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map=new HashMap<Integer, Integer>();\n for(int num:nums)\n {\n if(map.containsKey(num))\n map.put(num, map.get(num)+1);\n else\n map.put(num,1);\n }\n\t\t//make min heap\n PriorityQueue<Node> pq=new PriorityQueue<Node>(new Comparator<Node>(){\n public int compare(Node a, Node b)\n {\n return a.count-b.count;\n }\n });\n for(int key:map.keySet())\n {\n Node n=new Node(key, map.get(key));\n pq.offer(n);\n if(pq.size()>k)\n pq.poll();\n }\n List<Integer> list=new ArrayList<Integer>();\n while(!pq.isEmpty())\n {\n list.add(pq.poll().n);\n }\n \n return list;\n }", "private Node lowestCostThrough(List<Node> openSet, Map<Node, Double> costThrough){\n Node lowest = openSet.get(0);\n\n for(Node n: openSet){\n if(costThrough.get(n) < costThrough.get(lowest)){\n lowest = n;\n }\n }\n return lowest;\n }", "public static int maximumScore_rev2(int[] nums, int k) {\n int[] mins = new int[nums.length];\n mins[k] = nums[k];\n for (int i = k + 1; i < nums.length; ++i) {\n mins[i] = Math.min(mins[i - 1], nums[i]);\n }\n for (int i = k - 1; i >= 0; --i) {\n mins[i] = Math.min(mins[i + 1], nums[i]);\n }\n int score = mins[k], left = 0, right = nums.length - 1;\n// Then starting from both ends as the first good subarray, move the end corresponds to smaller value of the mins, and update the score accordingly.\n while (left < right) {\n score = Math.max(score, (right - left + 1) * Math.min(mins[left], mins[right]));\n if (right == k || mins[left] < mins[right]) {\n// right has reached k, The only option you have to increase left\n// left have lowest min, so by increasing the left side, the minimum value will be increased.\n ++left;\n } else {\n --right;\n }\n }\n return score;\n }", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "public V getLowerBound();", "public List<Integer> findClosestElements(int[] arr, int k, int x) {\n int low = 0;\n int high = arr.length - 1;\n while (high - low >= k) {\n if (Math.abs(arr[low] - x) > Math.abs(arr[high] - x)) {\n low++;\n } else {\n high--;\n }\n }\n List<Integer> res = new ArrayList<>();\n for (int i = low; i <= high; i++) {\n res.add(arr[i]);\n }\n return res;\n }", "public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> highScoreList = new ArrayList<>();\n if (scoreInfoList.size() <= size) {\n highScoreList = scoreInfoList;\n } else {\n for (int i = 0; i < size; i++) {\n highScoreList.add(scoreInfoList.get(i));\n }\n }\n return highScoreList;\n }", "public int getMinimumScore(){\n\n /*\n * creating variable of type int name it lowestScore go in to index 0 and sub 0\n * and lowestScore is refering to instance variable scores\n */\n int lowestScore = scores[0][0]; // assume this value is the smallest score value\n\n /* enhanced for loop with array of type int named gameScores and it will go trough scores array*/\n for (int[] gameScores : scores){\n\n /*\n * and another enhanced for loop inside first for loop\n * int variable, name score and it will iterate(go/repeat) through array gameScores\n *\n */\n for (int score : gameScores){\n if (score < lowestScore){\n lowestScore = score;\n }\n }\n }\n return lowestScore;\n }", "private void heapify() {\n\t\tint currIndex = 0;\n\t\twhile (currIndex < heapSize) {\n\t\t\tT val = lstEle.get(currIndex);\n\t\t\tint leftSubtreeIndex = getLeftSubtree(currIndex);\n\t\t\tint rightSubtreeIndex = getRightSubtree(currIndex);\n\t\t\tT leftChildVal = leftSubtreeIndex < heapSize ? lstEle.get(leftSubtreeIndex) : null;\n\t\t\tT rightChildVal = rightSubtreeIndex < heapSize ? lstEle.get(rightSubtreeIndex) : null;\n\t\t\t\n\t\t\tT minVal = null;\n\t\t\tint minValIndex = -1;\n\t\t\tif(leftChildVal != null && rightChildVal != null){\n\t\t\t\tint compVal = leftChildVal.compareTo(rightChildVal); \n\t\t\t\tif(compVal < 0){\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t}else {\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(leftChildVal != null && leftChildVal.compareTo(val) < 0){\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t}else if (rightChildVal != null && rightChildVal.compareTo(val) < 0 ){\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\tMin Val : \" +minVal +\" --> \" +minValIndex);\n\t\t\t\n\t\t\tlstEle.set(currIndex, minVal);\n\t\t\tcurrIndex = minValIndex;\n\t\t\tlstEle.set(minValIndex, val);\n\t\t\t\n\t\t}\n\n\t}", "public List<ScoreInfo> getHighScores() {\n List<ScoreInfo> l = new ArrayList<ScoreInfo>();\n l.addAll(this.highScores); //make a copy;\n return l;\n }", "public static void main(String[] args) {\n\t\t\n\t\tList<Integer> a = new ArrayList<>();\n\t\ta.add(1);\n\t\ta.add(1);\n\t\ta.add(2);\n\t\ta.add(2);\n\t\ta.add(4);\n\t\ta.add(3);\n\t\tList<Integer> b = new ArrayList<>();\n\t\tb.add(2);\n\t\tb.add(3);\n\t\tb.add(3);\n\t\tb.add(4);\n\t\tb.add(4);\n\t\tb.add(5);\n\t\tgetMinScore(6, a, b);\n\t}", "public List<Pair<String, Integer>> getScores() {\n if (!this.list.isPresent()) {\n this.readScores();\n }\n return new ArrayList<>(this.list.get());\n }", "public static Set<Integer> rndSet(int size, int min, int max){\n\n\t\tif (max < size)\n\t\t{\n\t\t throw new IllegalArgumentException(\"Can't ask for more numbers than are available\");\n\t\t}\n\n\t\tSet<Integer> generated = new LinkedHashSet<Integer>();\n\t\twhile (generated.size() < size)\n\t\t{\n\t\t Integer next = rng.nextInt(max - min + 1) + min;\n\t\t // As we're adding to a set, this will automatically do a containment check\n\t\t generated.add(next);\n\t\t}\n\t\tSystem.out.println(\"line sampled: \"+generated.toString());\n\t\treturn generated;\n\t}", "public int [] smallestRange(int [][] nums){\n\t\tint minx = 0, miny = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n\t\t\n\t\tint [] next = new int [nums.length];\n\t\tboolean flag = true;\n\t\t\n\t\tPriorityQueue<Integer> minQ = new PriorityQueue<Integer>((i, j)->nums[i][next[i]]-nums[j][next[j]]);\n\t\tfor(int i = 0 ; i < nums.length; i ++){\n\t\t\tminQ.offer(i);\n\t\t\tmax = Math.max(max, nums[i][0]);\n\t\t}\n\t\t\n\t\tfor(int i = 0 ; i < nums.length && flag; i++){\n\t\t\tfor(int j = 0 ; j < nums[i].length&& flag; j++){\n\t\t\t\tint minI = minQ.poll();\n\t\t\t\tif(miny-minx > max-nums[minI][next[minI]]){\n\t\t\t\t\tminx = nums[minI][next[minI]];\n\t\t\t\t\tminy = max;\n\t\t\t\t}\n\t\t\t\tnext[minI]++;\n\t\t\t\tif(next[minI] == nums[minI].length){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tminQ.offer(minI);\n\t\t\t\tmax = Math.max(max, nums[minI][next[minI]]);\n\t\t\t}\n\t\t}\n\t\treturn new int [] {minx, miny};\n\t}", "Lista<K> keySet();", "IntervalTupleList evaluate(double low, double high);" ]
[ "0.68913746", "0.6687456", "0.6256225", "0.60242665", "0.59165835", "0.58390397", "0.56673026", "0.5601898", "0.55578905", "0.549351", "0.5457414", "0.5392123", "0.52628285", "0.52373034", "0.5199682", "0.51179767", "0.51083106", "0.5103334", "0.50989825", "0.5024098", "0.4960501", "0.49409923", "0.49210608", "0.4911465", "0.48800057", "0.48509163", "0.48350477", "0.48295814", "0.48129708", "0.4805257", "0.4792388", "0.47804615", "0.47646794", "0.47316247", "0.47257343", "0.47096503", "0.47060424", "0.46987537", "0.46961722", "0.46827427", "0.4648132", "0.4643347", "0.4638639", "0.46377152", "0.46376604", "0.46343046", "0.46231985", "0.46134788", "0.460105", "0.45905587", "0.4575062", "0.45744047", "0.45723134", "0.45675394", "0.45659354", "0.45654127", "0.45592993", "0.4554509", "0.45539805", "0.45492402", "0.45465592", "0.4544952", "0.45359084", "0.45267195", "0.4521608", "0.45167363", "0.4497137", "0.44940916", "0.44734824", "0.44710028", "0.44691515", "0.44557598", "0.44424346", "0.44399232", "0.44346017", "0.44336063", "0.44248396", "0.4414199", "0.4411413", "0.4410912", "0.44049695", "0.44039428", "0.4402907", "0.4401356", "0.44010913", "0.43954334", "0.43931592", "0.43898225", "0.43855456", "0.43795708", "0.4379536", "0.4377098", "0.43764797", "0.43756232", "0.43697837", "0.4368542", "0.4364286", "0.4356498", "0.4353282", "0.43471155" ]
0.6558582
2
Remove one or more members from a sorted set
public Boolean zrem(final String key, final String... members) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.zrem(key, members) == 1 ? true : false; } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<Card> remove();", "@Test\n\tpublic void testRemoveAll() {\n\t\tSet<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t\tSet<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t\tsetA.removeAll(setB);\n\t\tSet<Integer> union = new HashSet<>(Arrays.asList(1, 2));\n\t\tassertEquals(setA, union);\n\t}", "public void remove(int rem){\n if(elementOf(rem)){\n Set removed = new Set();\n for(int element = 0; element < set.length; element++){\n if(set[element] != rem)\n removed.add(set[element]);\n }\n setSet(removed.getSet());\n removed = null;\n }\n }", "protected abstract Set<String> _removeFromSet(String key, Collection<String> str);", "void unsetUnordered();", "public void removeAllPartOfSet() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PARTOFSET);\r\n\t}", "interface RemovableSet extends Set\n{\n void remove(String s);\n}", "@Override\n\tpublic void clear() {\n\t\t\n\t\tsuperset.removeRange(lower, upper, fromInclusive, toInclusive);\n\t\t\n\t\t//Alternative direct implementation:\n\t\t//while (pollFirst() != null) {\n\t\t//}\n\t\t\n\t}", "public void test5() {\n\t\tSet<String> keySet = member.keySet();\n\t\tfor(String key : keySet) {\n\t\t\tif(key ==\"leess\") {\n\t\t\t\tmember.remove(key);\n\t\t\t}\n\t\t}\n\t}", "public void remove(int i)\n/* 39: */ {\n/* 40:34 */ this.members.remove(i);\n/* 41: */ }", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "public static SortedSet unmodifiableSortedSet(SortedSet set) {\n/* 276 */ return UnmodifiableSortedSet.decorate(set);\n/* */ }", "public synchronized void removeAllTeamMembers() {\n teamSelection = new HashSet<>();\n }", "public void makeEmpty(){\n for(int element = set.length - 1; element >= 0; element--){\n remove(set[element]);\n }\n }", "private static Set<ARGState> removeSet(Set<ARGState> elements) {\n Set<ARGState> toWaitlist = new LinkedHashSet<ARGState>();\n int i=0;\n for (ARGState ae : elements) {\n if(ae.getParents()!=null){\n for (ARGState parent : ae.getParents()) {\n if (!elements.contains(parent)) {\n toWaitlist.add(parent);\n }\n }\n if(ae.getChildren()!=null)\n ae.removeFromARG();\n else\n ae.setDestroyed(true);\n }\n\n // ae.setNull();\n }\n return toWaitlist;\n }", "public static void removeAllNumbersGreaterThan10(Set<Integer> set) {\n SortedSet<Integer> sortedSet = new TreeSet<>();\n sortedSet.addAll(set);\n set.clear();\n set.addAll(sortedSet.headSet(11));\n }", "boolean removeAll(Object key, Set values);", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public static void main(String[] args) {\n ArrayList<Integer> nums = new ArrayList<>();\n nums.addAll( Arrays.asList(100, 2000, 50, 50, 100, 200, 300, 50));\n nums=new ArrayList<>(new TreeSet<>(nums));\n System.out.println(nums);\n\n String str1 = \"babababC\";\n str1 = new TreeSet<>( Arrays.asList(str1.split(\"\")) ).toString();\n System.out.println(str1);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - 2. Write a program that can REMOVE THE DUPLICATES from an ArrayList. DO NOT change the ORDER\n * -> LinkedHashSet -> Remove Duplicates and Keeps the Insertion Order\n */\n ArrayList<Integer> list = new ArrayList<>(Arrays.asList(6,6,6,6,5,5,5,4,4,4,4));\n list=new ArrayList<>(new LinkedHashSet<>(list));\n System.out.println(list);\n\n\n /**\n * - 1. Write a program that can remove the duplicated characters from String and store them into variable\n */\n String str = \"ABABABCDEF\";\n String[] arr = str.split(\"\");\n str = new LinkedHashSet<>(Arrays.asList(arr)).toString().replace(\", \", \"\");\n System.out.println(str);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * -> Does not accept duplicates, and sort the objects\n * -> HashSet accepts null\n * -> HashSet is faster than TreeSet\n */\n HashSet<Integer> numbers = new HashSet<>(Arrays.asList(10,9,10, 9, 8, 7, 8, 7, 6, 5, 6, 1));\n System.out.println(numbers ); // -> [1, 5, 6, 7, 8, 9, 10]\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - ITERATOR: -> is the only way to remove duplicates from collection\n * - removeIf -> removes numbers because it is uses the iterator interface internally. Iterator implicitly\n *\n * - hasNext() method only can go forward cant go backward. it stars from next index\n * - when we use it our loop hasNext() iterates from the next index\n * - iterator(); - hasNext(); - next(); - remove();\n */\n ArrayList<Integer> list2 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n list2.removeIf( p -> p < 4 );\n System.out.println(list2);\n\n\n ArrayList<Integer> list3 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n Iterator<Integer> it =list3.iterator(); // - this method will return iterator\n while( it.hasNext() ){ // - iterator explicitly. While loop only accept boolean\n if( it.next() < 4 ){\n it.remove();\n }\n }\n System.out.println(list3);\n\n\n ArrayList<Integer> list4 = new ArrayList<>(Arrays.asList(1,1,2,3,3,4,4,5,5));\n // - hasNext(); will iterate all the indexes. We do not need extra iterator in the loop\n for(Iterator<Integer> I = list4.iterator(); I.hasNext(); ){\n if( I.next() < 4) {\n I.remove();\n }\n }\n System.out.println(list4);\n\n\n\n LinkedHashSet<String> names = new LinkedHashSet<>();\n names.addAll(Arrays.asList( \"Mehmet\",\"Mohammed\",\"Yucel\",\"Sha\",\"Ozgur\", \"Ahmet\",\"Osmanj\",\"Ozgur\",\"Ozgur\",\"Irina\"));\n System.out.println(names);\n Iterator<String> it3 = names.iterator();\n while( it3.hasNext() ){\n String s = it3.next();\n if(s.contains(\"m\") || s.contains(\"M\")){ // - s.toLowerCase.contains(\"m\")\n it3.remove();\n }\n }\n System.out.println(names);\n\n /*\n ===============================================================\n for(Iterator<String> it3 = names.iterator(); it3.hasNext() ; ){\n String s = it3.next();\n if(s.toLowerCase().contains(\"m\")){\n it3.remove();\n }\n }\n ================================================================\n names.removeIf( s -> s.contains(\"m\") || s.contains(\"M\") );\n ================================================================\n names.removeAll( Arrays.asList( \"Mehmet\", \"Ozgur\", \"Mohammed\" ));\n ================================================================\n names.retainAll( Arrays.asList( \"Yucel\", \"Sha\", \"Ahmet\" ) );\n ================================================================\n boolean result = list.containsAll( Arrays.asList(5, 6, 9, 8, 11 ));\n */\n\n\n\n\n\n\n\n System.out.println(\"=========================================================================================\");\n\n\n\n\n\n }", "public void remove(String ids);", "public final Set<String> findRemoved(Set<String> set, List<Control> list) {\n ArrayList arrayList = new ArrayList(CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10));\n for (Control control : list) {\n arrayList.add(control.getControlId());\n }\n return SetsKt___SetsKt.minus(set, arrayList);\n }", "@Override\r\n\tpublic void remove(List<GroupMember> list) {\n\t\tfor(int i = 0;i<list.size();i++)\r\n\t\t\tremove(list.get(i));\r\n\t}", "@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tSet list = new HashSet();\n\t\tlist.add(\"1\");\n\t\tlist.add(\"2\");\n\t\tlist.add(\"3\");\n\t\tlist.add(\"1\");\n\t\tlist.forEach(System.out::print); // 123\n\t\t\n\t\tSystem.out.println(\"---------------------------\");\n\t\t\n//\t\tStream<String> stream = Arrays.stream(new String[] {\"a\",\"b\",\"c\"});\n//\t\tString output = stream.filter(s->{ \n//\t\t\tif(s.compareTo(\"abc\") > 0)\n//\t\t\t\treturn true;\n//\t\t})\n//\t\t.peek(System.out::print)\n//\t\t.collect(Collectorsjoining()); //Compilation Fail Here\n//\t\tSystem.out.println(output);\n\t\t\n\t\t\n\t\tVector obj = new Vector(4,2);\n\t\tobj.addElement(new Integer(3));\n\t\tobj.addElement(new Integer(2));\n\t\tobj.addElement(new Integer(5));\n\t\tSystem.out.println(obj.capacity());\n\t\t\n\t\tSystem.out.println(\"---------------------------\");\n\t\t\n//\t\tSet _set = new HashSet();\n\t\tSet _set = new TreeSet();\n\t\t_set.add(new Integer(2));\n\t\t_set.add(new Integer(1));\n\t\tSystem.out.println(_set); // [1,2] TreeSet will Guaranteed Sorting\n\t\t\n\t\tSystem.out.println(\"---------------------------\");\n\t\t\n\t\tSet<Integer> ss = new HashSet<Integer>();\n\t\tInteger i1 = 45;\n\t\tInteger i2 = 46;\n\t\tss.add(i1);\n\t\tss.add(i1);\n\t\tss.add(i2);\n\t\tSystem.out.print(ss.size() + \" \");\n\t\tss.remove(i1);\n\t\tSystem.out.print(ss.size() + \" \");\n\t\ti2=47;\n\t\tss.remove(i2);\n\t\tSystem.out.print(ss.size() + \" \");\n\t\t\n\t\tSystem.out.println(\"---------------------------\");\n\t}", "@Override\r\n\tpublic boolean removeAll(Collection<?> c) {\n\t\treturn set.removeAll(c);\r\n\t}", "@Test\r\n public void removeAndContains() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n assertFalse(s.contains(2));\r\n }", "public void\t\tremoveAll();", "public /*@ non_null @*/ JMLObjectSet<E> remove(E elem) {\n if (!has(elem)) {\n return this;\n } else {\n //@ assume the_list != null;\n JMLListObjectNode<E> new_list = the_list.remove(elem);\n //@ assume (new_list == null) == (size == 1);\n return new JMLObjectSet<E>(new_list, size - 1);\n }\n }", "public Collection<V> removeVertices(Collection<V> vs);", "void removeAll();", "void removeAll();", "void remove (int offset, int size);", "private static void test1() {\n HashSet<Contact> contacts = new HashSet<>();\n\n Contact contact1 = new Contact(123, \"Vasiliy\", \"+380681234136\");\n\n contacts.add(contact1);\n\n\n //------------------------------------------\n\n\n Contact contact2 = new Contact(123, \"Vasiliy\", \"+380689876543\");\n\n contacts.remove(contact2);\n contacts.add(contact2);\n\n printCollection(contacts);\n }", "protected void removeDuplicates() {\n log.trace(\"Removing duplicated\");\n long startTime = System.currentTimeMillis();\n int initial = size();\n E last = null;\n int index = 0;\n while (index < size()) {\n E current = get(index);\n if (last != null && last.equals(current)) {\n if (log.isTraceEnabled()) {\n log.trace(\"Removing duplicate '\" + current + \"'\");\n }\n remove(index);\n } else {\n index++;\n }\n last = current;\n }\n log.debug(String.format(\"Removed %d duplicates from a total of %d values in %dms\",\n initial - size(), initial, System.currentTimeMillis() - startTime));\n }", "@Test\n public void testRemoveUser_User04() {\n System.out.println(\"removeUser\");\n User user = new User(\"nick10\", \"mail_10_@sapo.pt\");\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick0\", \"mail_0_@sapo.pt\"));\n expResult.add(new User(\"nick1\", \"mail_1_@sapo.pt\"));\n expResult.add(new User(\"nick2\", \"mail_2_@sapo.pt\"));\n expResult.add(new User(\"nick3\", \"mail_3_@sapo.pt\"));\n expResult.add(new User(\"nick4\", \"mail_4_@sapo.pt\"));\n expResult.add(new User(\"nick5\", \"mail_5_@sapo.pt\"));\n expResult.add(new User(\"nick6\", \"mail_6_@sapo.pt\"));\n expResult.add(new User(\"nick7\", \"mail_7_@sapo.pt\"));\n expResult.add(new User(\"nick8\", \"mail_8_@sapo.pt\"));\n expResult.add(new User(\"nick9\", \"mail_9_@sapo.pt\"));\n\n sn10.removeUser(user);\n Set<User> result = sn10.getUsersList();\n assertEquals(expResult, result);\n }", "@Test\r\n public void removeAndSize() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n assertTrue(s.remove(2));\r\n assertEquals(4, s.size());\r\n assertFalse(s.remove(2));\r\n assertEquals(4, s.size());\r\n }", "abstract public void removeAll();", "@Test\r\n public void removeAll() throws Exception {\r\n\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(4);\r\n l.add(2);\r\n check.removeAll(l);\r\n assertFalse(check.containsAll(l));\r\n assertFalse(check.contains(2));\r\n assertFalse(check.contains(4));\r\n assertTrue(check.contains(1));\r\n assertTrue(check.contains(3));\r\n assertTrue(check.contains(5));\r\n }", "public ZYSet<ElementType> difference(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n if(!otherSet.contains(e)){\n result.add(e);\n }\n }\n return result;\n }", "private Set<String> cleanSet(Set<String> s){\n\t\t\tLog.i(TAG, \"cleanSet(msg)\");\n\n\t\t\tif (s.contains(\"\")) {\n\t\t\t\ts.remove(\"\");\t\n\t\t\t}if (s.contains(\"etc\")) { // Developers prerogative\n\t\t\t\ts.remove(\"etc\");\n\t\t\t}\n\t\t\treturn s;\n\t\t}", "@Test\n public void testRemoveAll() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "@Override\n public SetI subtract(SetI other) {\n int[] newArr = new int[count];\n int i = 0;\n\n // For each element I have,\n for (Integer e : this) {\n // If you do not...\n if (!other.contains(e)) {\n newArr[i++] = e;\n }\n }\n\n return new Set(newArr, i);\n }", "@Test\n public void testRemoveAll_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "@Test\r\n public void removeAndForEach() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n int[] expected1 = {1, 3, 4, 5};\r\n int i = 0;\r\n for (int el : s) {\r\n assertEquals(expected1[i], el);\r\n i++;\r\n }\r\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tTreeSet<String> ts = new TreeSet<String>();\n\t\tts.add(\"D\");\n\t\tts.add(\"B\");\n\t\tts.add(\"E\");\n\t\tts.add(\"A\");\n\t\tts.add(\"C\");\n\t\tts.add(\"B\");\t\t//duplicates are not stored\n\t\tts.add(null);\n\t\tSystem.out.println(\"Elements of TreeSet:\\n\" + ts);\n\t\t\n\t\tSortedSet<String> ts2 = new TreeSet<String>();\t//SortedSet is an interface\n\t\tts2 = ts.subSet(\"B\", \"D\");\n\t\tSystem.out.println(ts2);\n\t\t\n\t\tts2 = ts.subSet(\"B\", false, \"E\", true);\n\t\tSystem.out.println(ts2);\n\t}", "public static void main(String[] args) {\n\n// SortedSet<Integer> set=new TreeSet<>();\n// set.add(45);\n// set.add(3);\n// set.add(12);\n// System.out.println(set);\n\n SortedSet<User> set=new TreeSet<>();\n set.add(new User(34,\"r\"));\n set.add(new User(4,\"j\"));\n set.add(new User(14,\"x\"));\n System.out.println(set);\n }", "@Test\n public void testRemove_int_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public void deleteAllMember()\n\t{\n\t\tmembers.clear();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tTreeSet<String> set = new TreeSet<String>(); // Sorted Version\n\t\tset.add(\"John\");\n\t\tset.add(\"Jennie\");\n\t\tset.add(\"Sia\");\n\t\tset.add(\"Fionna\");\n\t\tset.add(\"Jim\");\n\t\tset.add(\"John\");\n\t\tset.add(\"Mike\");\n\t\tset.add(\"Sia\");\n\t\t\n\t\tSystem.out.println(\"set is: \"+set);\n\t\t\n\t\tset.remove(\"Mike\");\n\t\t\n\t\t//set.clear(); // remove all\n\t\t\n\t\tif(set.contains(\"Sia\")){\n\t\t\tSystem.out.println(\"Sia is in the set\");\n\t\t}\n\t\t\n\t\t// Retrieve : Iterate\n\t\tIterator<String> itr = set.iterator();\n\t\twhile(itr.hasNext()){\n\t\t\tString name = itr.next();\n\t\t\tSystem.out.println(name);\n\t\t\t//System.out.println(name+\" | \"+name.hashCode());\n\t\t}\n\t\t\n\n\t}", "@Test\n\tpublic void testRemove1() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\n\t\tint notremove = 10;\n\n\t\t// test remove\n\n\t\tlistObj2.remove(notremove);\n\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t}", "private static void prune(ArrayList<Morphism> candidates,\n\t\t\tAutomaton automaton) {\n\t\t// this is really inefficient!\n\t\t// at a minimum, we could avoid recomputing lessThan twice for each\n\t\t// candidate.\n\t\tMorphism least = candidates.get(0);\n\t\tfor (Morphism candidate : candidates) {\n\t\t\tif (lessThan(candidate, least, automaton)) {\n\t\t\t\tleast = candidate;\n\t\t\t}\n\t\t}\n\n\t\tint diff = 0;\n\t\tfor (int i = 0; i != candidates.size(); ++i) {\n\t\t\tMorphism candidate = candidates.get(i);\n\t\t\tif (lessThan(least, candidate, automaton)) {\n\t\t\t\tdiff = diff + 1;\n\t\t\t} else {\n\t\t\t\tcandidates.set(i - diff, candidate);\n\t\t\t}\n\t\t}\n\n\t\t// now actually remove those bypassed.\n\t\tint last = candidates.size();\n\t\twhile (diff > 0) {\n\t\t\tcandidates.remove(--last);\n\t\t\tdiff = diff - 1;\n\t\t}\n\t}", "public static void removeAllNumbersGreaterThan10(Set<Integer> set) {\n Iterator<Integer> iterator = set.iterator();\n while (iterator.hasNext()) {\n Integer integer = iterator.next();\n if (integer.intValue() > 10) {\n iterator.remove();\n }\n }\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void removeAllElements();", "public void removeDuplicates()\n\t{\n\t\tComparator<Point> comp = new Comparator<Point>() \n\t\t{\n @Override\n public int compare(Point p, Point q) \n {\n \t return p.compareTo(q);\n }\n };\n\t\tquicksorter.quickSort(comp);\n\t\tquicksorter.getSortedPoints(points);\n\t\t\n\t\tArrayList<Point> pts = new ArrayList<Point>();\n\t\tfor(int a = 0; a < points.length; a++) //copy points into temp array\n\t\t{\n\t\t\tif(!pts.contains(points[a]))\n\t\t\t{\n\t\t\t\tpts.add(points[a]);\n\t\t\t}\n\t\t}\n\t\tpointsNoDuplicate = new Point[pts.size()]; //insert into pointsNoDuplicate\n\t\tfor(int i = 0; i < pts.size(); i++)\n\t\t{\n\t\t\tpointsNoDuplicate[i] = pts.get(i);\n\t\t}\n\t}", "public void removeAll(Object element);", "public static void main(String[] args) {\n\t\tHashSet<String> words = new HashSet<String>();\n\t\t\n\t\twords.add(\"Drink\");\n\t\twords.add(\"Java\");\n\t\twords.add(\"Coffee\");\n\t\twords.add(\"Bean\");\n\t\twords.add(\"Java\");\n\t\t\n\t\tSystem.out.println(words.size());\n\t\tSystem.out.println(words);\n\t\t\n\t\tSystem.out.println(words.contains(\"Java\"));\n\t\tSystem.out.println(words.contains(\"Tea\"));\n\t\t//words.remove(1);\n\t\t//System.out.println(words);\n\t\t\n\t\tboolean removed1 = words.remove(\"Java\");\n\t\tSystem.out.println(removed1);\n\t\tSystem.out.println(words.size());\n\t\tSystem.out.println(words);\n//\t\t\n\t\tboolean removed2 = words.remove(\"Dawg\");\n\t\tSystem.out.println(removed2);\n\t\tSystem.out.println(words.size());\n\t\tSystem.out.println(words);\n\t\t\n\t\t//sorting the words\n\t\tString[] sortedWords = new String[words.size()];\n\t\tint i = 0;\n\t\tfor(String w : words)\n\t\t\tsortedWords[i++] = w;\n\t\tArrays.sort(sortedWords);\n\t\tfor(String w : sortedWords)\n\t\t\tSystem.out.print(w + \" \");\n\n\t}", "public static void main(String[] args){\n\t\tTreeSet hs=new TreeSet();\n\t\t\n\t\ths.add(\"d\");\n\t\ths.add(\"c\");\n\t\ths.add(\"b\");\n\t\ths.add(\"a\");\n\t\ths.add(\"c\");\n\t\ths.add(\"i\");\n\t\ths.add(\"l\");\n\t\ths.add(new Integer(2));\n\t\ths.add(new Float(2));\n\t\t\n\t\t\t\t\n\t\tSystem.out.println(\"Hashset is \"+hs);\n\t\tSystem.out.println(\"Size of Hashset is \"+ hs.size());\n\t\t\n\t\tSystem.out.println(\"Does hashset contains this 'u' element \" + hs.contains(\"u\"));\t\t\n\t\tSystem.out.println(\"is hashset empty \" + hs.isEmpty());\n\t\tSystem.out.println(\"remove the element \"+hs.remove(\"i\"));\n\t\t\n\t\t\n\t hs.clear();\n\t System.out.println(\"get class \" +hs.getClass());\n\t\t\n\t System.out.println(\"is hashset empty \" +hs.isEmpty());\n\t \n\t \n\t\t\n\t}", "public static void main(String[] args) {\n\t\tSet<String> set=new HashSet<>();\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t\r\nSystem.out.println(set.size());\r\n\t\t/*for(Object o: set){\r\n\t\t\t\r\n\t\t\tSystem.out.println((String)o);\r\n\t\t\tset.add(\"test\");\r\n\t\t}*/\r\n\tIterator it=set.iterator();\r\n\t while(it.hasNext()){\r\n\t\t System.out.println(it.next());\r\n\t\t it.remove();\r\n\t }\r\n\t}", "@Test\r\n\t\tpublic void testDeleteElement() {\n\t\t\ttestingSet= new IntegerSet(list1);\r\n\t\t\tInteger array[] = testingSet.toArray(); \r\n\t\t\ttestingSet.deleteElement(0);\r\n\t\t\t// check to see if the first element in the set still exists\r\n\t\t\t// should result to false \r\n\t\t\tassertEquals(testingSet.exists(array[0]), false); \r\n\t\t}", "@Test\n public void getHeapCriticalMembersFrom_WithEmptyCriticalMembersReturnsEmptySet() {\n getHeapCriticalMembersFrom_returnsEmptySet(Collections.emptySet(), memberSet);\n }", "public static void main(String[] args) {\n\n ArrayList<String> strArray = new ArrayList<>();\n strArray.add(\"man\");\n strArray.add(\"hi\");\n strArray.add(\"yo\");\n strArray.add(\"hi\");\n String strToBeRemoved =\"hi\";\n\n removeAll(strArray, strToBeRemoved);\n\n\n }", "Object removeFirst();", "@Test\n public void testRemoveAll_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "protected void removeFromAllSubsets()\r\n {\n if (!m_subsets.isEmpty()) {\r\n List<SubsetImpl> tmp = new ArrayList<SubsetImpl>(m_subsets);\r\n m_subsets.clear();\r\n tmp.forEach(r -> {if (r != null) r.remove(this);});\r\n }\r\n }", "private static void removeValue(ISet set, Scanner in)\n {\n if (set.getSize() == 0)\n System.out.println(\"Can't remove from an empty set!\");\n else {\n int pos;\n boolean valid;\n do {\n System.out.println(\"What position should be removed from the set?\");\n pos = Integer.parseInt(in.nextLine());\n valid = (pos >= 0 && pos < set.getSize());\n if (!valid)\n System.out.println(\"That's not a valid position\");\n } while (!valid);\n set.removePos(pos);\n }\n }", "Object remove();", "public static Set<Doc> not(Set<Doc> set1,Set<Doc> corpus) {\r\n \t\tif(set1 == null)\r\n \t\t\tset1 = new TreeSet<Doc>();\r\n \t\tTreeSet<Doc> result = new TreeSet<Doc>(corpus);\r\n \t\tresult.removeAll(set1);\r\n \t\treturn result;\r\n \t}", "void remove(Order order);", "public Set<Room> removeRooms(Set<Room> rooms){\n Set<Room> result=new HashSet<>();\n for(Room r: rooms){\n try{\n removeRoom(r);\n }\n catch(RemoveRoomException ex){\n result.add(r);\n }\n }\n return result;\n }", "private Collection<Node> keepOnlySetElement(Collection<Node> nodes) {\n Set<Node> elements = new HashSet<>();\n for (Node node : nodes) {\n Edge originalEdge = synchronizer().getOriginalEdge(node);\n if ((originalEdge != null && !boundaries.edges.contains(originalEdge))\n || !boundaries.nodes.contains(node)) {\n elements.add(node);\n }\n }\n return elements;\n }", "public static void main(String args[]) {\n HashSet<String> set = new HashSet<String>();\n\n // Use add() method to add elements into the Set\n set.add(\"Welcome\");\n set.add(\"To\");\n set.add(\"Geeks\");\n set.add(\"4\");\n set.add(\"Geeks\");\n\n\n // Displaying the HashSet\n System.out.println(\"HashSet: \" + set);\n\n // Creating an iterator\n Iterator value = set.iterator();\n\n while (value.hasNext()) {\n System.out.println(\"Next value is: \" + value.next());\n }\n\n\n // Displaying the values after iterating through the set\n System.out.println(\"The iterator values are: \");\n while (value.hasNext()) {\n\n //Remove element during iteration\n if (value.next().equals(\"4\")) {\n value.remove();\n System.out.println(\"After element removal\" + set);\n }\n\n\n\n }\n\n }", "static void testRemove1(BTMap<Integer, Integer> m) {\n var keys = Arrays.asList(3, 8, 1, 0);\n\n System.out.println(keys);\n\n for (int i = 0; i < keys.size(); i++) {\n m.insert(keys.get(i), i);\n }\n\n System.out.println(m);\n\n m.remove(0);\n\n System.out.println(m);\n \n m.remove(1);\n\n System.out.println(m);\n }", "public void removeFromFollowedUsers(List<String> followedUsers);", "public boolean remove(int val) {\n if (!realSet.contains(val)) return false;\n if (realSet.size() > 10 && realSet.size() == allSet.length / 4) {\n Integer[] tmpSet = new Integer[size * 2];\n int not = 0;\n for (int i = 0; i < size; i ++) {\n if (allSet[i] == null) {\n not ++;\n continue;\n }\n tmpSet[i - not] = allSet[i];\n }\n size -= not;\n allSet = tmpSet;\n }\n realSet.remove(val);\n return true;\n }", "@Test\n public void testRemoveAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "@Override\npublic void removeAll(Collection<Integer> collection) {\n\t\n}", "static void testRemove2(BTMap<Integer, Integer> m) {\n var keys = Arrays.asList(3, 8, 1, 0);\n\n System.out.println(keys);\n\n for (int i = 0; i < keys.size(); i++) {\n m.insert(keys.get(i), i);\n }\n\n System.out.println(m);\n\n m.remove(8);\n\n System.out.println(m);\n\n\n }", "@Test\n public void remove1() {\n RBTree<Integer> tree = new RBTree<>();\n List<Integer> add = new ArrayList<>(List.of(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10));\n List<Integer> rem = new ArrayList<>(List.of(4, 7, 9, 5));\n for (int i : add) {\n tree.add(i);\n }\n int err = 0;\n Set<Integer> remSet = new HashSet<>();\n for (int i : rem) {\n remSet.add(i);\n boolean removed = tree.remove(i);\n if (!removed && add.contains(i)) {\n System.err.println(\"Could not remove element \" + i + \"!\");\n err++;\n }\n if (removed && !add.contains(i)) {\n System.err.println(\"Removed the non-existing element \" + i + \"!\");\n err++;\n }\n for (int a : add) {\n if (!tree.contains(a) && !remSet.contains(a)) {\n System.err.println(\"Removed element \" + a + \" after removing \" + i + \"!\");\n err++;\n }\n }\n }\n for (int i : rem) {\n if (tree.remove(i)) {\n System.err.println(\"Removed a already remove element \" + i + \"!\");\n err++;\n }\n }\n for (int i : rem) {\n if (tree.contains(i)) {\n System.out.println(\"The element \" + i + \" was not removed!\");\n err++;\n }\n }\n \n assertEquals(\"There were \" + err + \" errors!\", 0, err);\n rem.retainAll(add);\n assertEquals(\"Incorrect tree size!\", add.size() - rem.size(), tree.size());\n }", "void unsetMultiple();", "@Override\r\n\tpublic boolean remove(Object o) {\n\t\treturn set.remove(o);\r\n\t}", "public void removeItems(Set items) throws SetException {\n\t\tfor (Object element : items.list) {\n\t\t\tif (member(element))\n\t\t\t\tremoveItem(element);\n\t\t\telse\n\t\t\t\tthrow new SetException(\"Item not already in set.\");\n\t\t}\n\n\t}", "@Override\n\tprotected void removeAction(HashSet<String> rmvSet){ \t\n\t\t// remove the 'deploymetSet'\n\t\tHashSet<File> delSet = new HashSet<File>();\n\t\tfor (File f: deploymentSet){\n\t\t\tif (rmvSet.contains(f.getName())){\n\t\t\t\tdelSet.add(f);\n\t\t\t}\n\t\t}\n\t\tdeploymentSet.removeAll(delSet);\n\t\n\t\t// delete mainMap\n\t\tfor (String rmvStr: rmvSet){\n\t\t\txmlMainClassInfoMap.remove(rmvStr);\n\t\t}\n\t\t\n\t\t// remove the relation and repository\n\t\t((AdaptDependencyManager)MiddleWareConfig.getInstance().getDepManager()).removeDeploymentNodeBySet(rmvSet);\n\t\t\n\t}", "public Set union(Set in_set) throws SetException {\n\t\tSet union = new Set(this);\n\t\tfor (Object element : in_set.list) {\n\t\t\tif (!member(element))\n\t\t\t\tunion.addItem(element);\n\t\t}\n\t\treturn union;\n\t}", "@Override\r\n\tpublic boolean doRemove(Set<String> ids) throws SQLException {\n\t\treturn false;\r\n\t}", "public static Set<AT> getRemoveAts() {\n return getAts(removeAts);\n }" ]
[ "0.6678973", "0.66416705", "0.65015626", "0.6469256", "0.6456386", "0.62153053", "0.6189869", "0.61556673", "0.6090586", "0.60558784", "0.6055496", "0.6029648", "0.5996134", "0.599292", "0.5952133", "0.594215", "0.59225994", "0.59041876", "0.59041876", "0.59041876", "0.59041876", "0.59041876", "0.59041876", "0.59041876", "0.59041876", "0.59041876", "0.59041876", "0.59041876", "0.59041876", "0.5883341", "0.58821857", "0.57762104", "0.5769886", "0.5763174", "0.5760339", "0.5755889", "0.5751941", "0.5749827", "0.57443696", "0.57376736", "0.5731049", "0.5731049", "0.57180357", "0.57130885", "0.56697965", "0.5663911", "0.5657734", "0.5640133", "0.5632965", "0.5607608", "0.55990344", "0.55773383", "0.55629027", "0.5559914", "0.5557122", "0.5552124", "0.55516857", "0.5540914", "0.5538505", "0.55186194", "0.55136514", "0.5499547", "0.5498593", "0.54831487", "0.54831487", "0.54831487", "0.54831487", "0.54831487", "0.5482084", "0.5479428", "0.5479241", "0.5476994", "0.5475193", "0.5457883", "0.5457821", "0.54576814", "0.54566413", "0.54552186", "0.5453821", "0.54362655", "0.54348516", "0.54335994", "0.5426944", "0.5424767", "0.5421039", "0.54184854", "0.5417521", "0.5413981", "0.5411049", "0.5410242", "0.5410121", "0.54081035", "0.54077476", "0.54060435", "0.5404949", "0.5397699", "0.5391363", "0.53820205", "0.537929", "0.53769624", "0.5375903" ]
0.0
-1
For Object, Remove one or more members from a sorted set
public Boolean zrem(final String key, final Object... members) { Jedis jedis = null; try { jedis = jedisPool.getResource(); byte[][] strings = new byte[members.length][]; for (int j = 0; j < members.length; j++) { // strings[j] = HessianSerializer.serialize(members[j]); strings[j] = toJsonByteArray(members[j]); } return jedis.zrem(key.getBytes(), strings) == 1 ? true : false; } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<Card> remove();", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "public void removeByObject()\r\n\t{\n\t}", "void unsetUnordered();", "public Collection<V> remove(Object obj) {\n Collection collection = (Collection) this.Pu.remove(obj);\n if (collection == null) {\n return null;\n }\n Collection<V> ry = AbstractMapBasedMultimap.this.ry();\n ry.addAll(collection);\n AbstractMapBasedMultimap.this.Ps = AbstractMapBasedMultimap.this.Ps - collection.size();\n collection.clear();\n return ry;\n }", "void remover(Object o);", "Object remove();", "Object removeFirst();", "private static void test1() {\n HashSet<Contact> contacts = new HashSet<>();\n\n Contact contact1 = new Contact(123, \"Vasiliy\", \"+380681234136\");\n\n contacts.add(contact1);\n\n\n //------------------------------------------\n\n\n Contact contact2 = new Contact(123, \"Vasiliy\", \"+380689876543\");\n\n contacts.remove(contact2);\n contacts.add(contact2);\n\n printCollection(contacts);\n }", "@Override\r\n\tpublic boolean remove(Object o) {\n\t\treturn set.remove(o);\r\n\t}", "interface RemovableSet extends Set\n{\n void remove(String s);\n}", "protected abstract Set<String> _removeFromSet(String key, Collection<String> str);", "@Test\n\tpublic void testRemoveAll() {\n\t\tSet<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t\tSet<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t\tsetA.removeAll(setB);\n\t\tSet<Integer> union = new HashSet<>(Arrays.asList(1, 2));\n\t\tassertEquals(setA, union);\n\t}", "public void remove(int i)\n/* 39: */ {\n/* 40:34 */ this.members.remove(i);\n/* 41: */ }", "public Object remove();", "public void removeAllPartOfSet() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PARTOFSET);\r\n\t}", "public void removeAll(Object element);", "public void test5() {\n\t\tSet<String> keySet = member.keySet();\n\t\tfor(String key : keySet) {\n\t\t\tif(key ==\"leess\") {\n\t\t\t\tmember.remove(key);\n\t\t\t}\n\t\t}\n\t}", "void removeFullHadith(Object oldFullHadith);", "@Test\n public void testRemoveUser_User04() {\n System.out.println(\"removeUser\");\n User user = new User(\"nick10\", \"mail_10_@sapo.pt\");\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick0\", \"mail_0_@sapo.pt\"));\n expResult.add(new User(\"nick1\", \"mail_1_@sapo.pt\"));\n expResult.add(new User(\"nick2\", \"mail_2_@sapo.pt\"));\n expResult.add(new User(\"nick3\", \"mail_3_@sapo.pt\"));\n expResult.add(new User(\"nick4\", \"mail_4_@sapo.pt\"));\n expResult.add(new User(\"nick5\", \"mail_5_@sapo.pt\"));\n expResult.add(new User(\"nick6\", \"mail_6_@sapo.pt\"));\n expResult.add(new User(\"nick7\", \"mail_7_@sapo.pt\"));\n expResult.add(new User(\"nick8\", \"mail_8_@sapo.pt\"));\n expResult.add(new User(\"nick9\", \"mail_9_@sapo.pt\"));\n\n sn10.removeUser(user);\n Set<User> result = sn10.getUsersList();\n assertEquals(expResult, result);\n }", "@Test\n\tpublic void testRemove1() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\n\t\tint notremove = 10;\n\n\t\t// test remove\n\n\t\tlistObj2.remove(notremove);\n\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t}", "public /*@ non_null @*/ JMLObjectSet<E> remove(E elem) {\n if (!has(elem)) {\n return this;\n } else {\n //@ assume the_list != null;\n JMLListObjectNode<E> new_list = the_list.remove(elem);\n //@ assume (new_list == null) == (size == 1);\n return new JMLObjectSet<E>(new_list, size - 1);\n }\n }", "public static SortedSet unmodifiableSortedSet(SortedSet set) {\n/* 276 */ return UnmodifiableSortedSet.decorate(set);\n/* */ }", "@Override\n\tpublic void clear() {\n\t\t\n\t\tsuperset.removeRange(lower, upper, fromInclusive, toInclusive);\n\t\t\n\t\t//Alternative direct implementation:\n\t\t//while (pollFirst() != null) {\n\t\t//}\n\t\t\n\t}", "public Value removeObjects(Set<ObjectLabel> objs) {\n checkNotPolymorphicOrUnknown();\n checkNoGettersSetters();\n if (object_labels == null)\n return this;\n Value r = new Value(this);\n r.object_labels = newSet(r.object_labels);\n r.object_labels.removeAll(objs);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }", "public static void main(String[] args) {\n\n// SortedSet<Integer> set=new TreeSet<>();\n// set.add(45);\n// set.add(3);\n// set.add(12);\n// System.out.println(set);\n\n SortedSet<User> set=new TreeSet<>();\n set.add(new User(34,\"r\"));\n set.add(new User(4,\"j\"));\n set.add(new User(14,\"x\"));\n System.out.println(set);\n }", "public boolean remove(objectType obj);", "@Test\n public void testRemove_int_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public Set method_55(Object var1) {\n return class_321.method_768((Set)this.method_1552().remove(var1));\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tSet list = new HashSet();\n\t\tlist.add(\"1\");\n\t\tlist.add(\"2\");\n\t\tlist.add(\"3\");\n\t\tlist.add(\"1\");\n\t\tlist.forEach(System.out::print); // 123\n\t\t\n\t\tSystem.out.println(\"---------------------------\");\n\t\t\n//\t\tStream<String> stream = Arrays.stream(new String[] {\"a\",\"b\",\"c\"});\n//\t\tString output = stream.filter(s->{ \n//\t\t\tif(s.compareTo(\"abc\") > 0)\n//\t\t\t\treturn true;\n//\t\t})\n//\t\t.peek(System.out::print)\n//\t\t.collect(Collectorsjoining()); //Compilation Fail Here\n//\t\tSystem.out.println(output);\n\t\t\n\t\t\n\t\tVector obj = new Vector(4,2);\n\t\tobj.addElement(new Integer(3));\n\t\tobj.addElement(new Integer(2));\n\t\tobj.addElement(new Integer(5));\n\t\tSystem.out.println(obj.capacity());\n\t\t\n\t\tSystem.out.println(\"---------------------------\");\n\t\t\n//\t\tSet _set = new HashSet();\n\t\tSet _set = new TreeSet();\n\t\t_set.add(new Integer(2));\n\t\t_set.add(new Integer(1));\n\t\tSystem.out.println(_set); // [1,2] TreeSet will Guaranteed Sorting\n\t\t\n\t\tSystem.out.println(\"---------------------------\");\n\t\t\n\t\tSet<Integer> ss = new HashSet<Integer>();\n\t\tInteger i1 = 45;\n\t\tInteger i2 = 46;\n\t\tss.add(i1);\n\t\tss.add(i1);\n\t\tss.add(i2);\n\t\tSystem.out.print(ss.size() + \" \");\n\t\tss.remove(i1);\n\t\tSystem.out.print(ss.size() + \" \");\n\t\ti2=47;\n\t\tss.remove(i2);\n\t\tSystem.out.print(ss.size() + \" \");\n\t\t\n\t\tSystem.out.println(\"---------------------------\");\n\t}", "@Test\r\n\tpublic void testRemoveObject() {\r\n\t\tAssert.assertFalse(list.remove(null));\r\n\t\tAssert.assertTrue(list.remove(new Munitions(2, 3, \"iron\")));\r\n\t\tAssert.assertEquals(14, list.size());\r\n\t}", "boolean removeAll(Object key, Set values);", "void remove(GeometricalObject object);", "public void remove(GeometricalObject object);", "@Test\r\n public void removeAndSize() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n assertTrue(s.remove(2));\r\n assertEquals(4, s.size());\r\n assertFalse(s.remove(2));\r\n assertEquals(4, s.size());\r\n }", "void remove(Order o);", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "private static Set<ARGState> removeSet(Set<ARGState> elements) {\n Set<ARGState> toWaitlist = new LinkedHashSet<ARGState>();\n int i=0;\n for (ARGState ae : elements) {\n if(ae.getParents()!=null){\n for (ARGState parent : ae.getParents()) {\n if (!elements.contains(parent)) {\n toWaitlist.add(parent);\n }\n }\n if(ae.getChildren()!=null)\n ae.removeFromARG();\n else\n ae.setDestroyed(true);\n }\n\n // ae.setNull();\n }\n return toWaitlist;\n }", "public void remove(int rem){\n if(elementOf(rem)){\n Set removed = new Set();\n for(int element = 0; element < set.length; element++){\n if(set[element] != rem)\n removed.add(set[element]);\n }\n setSet(removed.getSet());\n removed = null;\n }\n }", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public static void main(String[] args) {\n\t\tSet<String> set=new HashSet<>();\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t\r\nSystem.out.println(set.size());\r\n\t\t/*for(Object o: set){\r\n\t\t\t\r\n\t\t\tSystem.out.println((String)o);\r\n\t\t\tset.add(\"test\");\r\n\t\t}*/\r\n\tIterator it=set.iterator();\r\n\t while(it.hasNext()){\r\n\t\t System.out.println(it.next());\r\n\t\t it.remove();\r\n\t }\r\n\t}", "public synchronized void removeAllTeamMembers() {\n teamSelection = new HashSet<>();\n }", "@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}", "@Test\r\n public void removeAndContains() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n assertFalse(s.contains(2));\r\n }", "public static void main(String[] args) {\n ArrayList<Integer> nums = new ArrayList<>();\n nums.addAll( Arrays.asList(100, 2000, 50, 50, 100, 200, 300, 50));\n nums=new ArrayList<>(new TreeSet<>(nums));\n System.out.println(nums);\n\n String str1 = \"babababC\";\n str1 = new TreeSet<>( Arrays.asList(str1.split(\"\")) ).toString();\n System.out.println(str1);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - 2. Write a program that can REMOVE THE DUPLICATES from an ArrayList. DO NOT change the ORDER\n * -> LinkedHashSet -> Remove Duplicates and Keeps the Insertion Order\n */\n ArrayList<Integer> list = new ArrayList<>(Arrays.asList(6,6,6,6,5,5,5,4,4,4,4));\n list=new ArrayList<>(new LinkedHashSet<>(list));\n System.out.println(list);\n\n\n /**\n * - 1. Write a program that can remove the duplicated characters from String and store them into variable\n */\n String str = \"ABABABCDEF\";\n String[] arr = str.split(\"\");\n str = new LinkedHashSet<>(Arrays.asList(arr)).toString().replace(\", \", \"\");\n System.out.println(str);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * -> Does not accept duplicates, and sort the objects\n * -> HashSet accepts null\n * -> HashSet is faster than TreeSet\n */\n HashSet<Integer> numbers = new HashSet<>(Arrays.asList(10,9,10, 9, 8, 7, 8, 7, 6, 5, 6, 1));\n System.out.println(numbers ); // -> [1, 5, 6, 7, 8, 9, 10]\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - ITERATOR: -> is the only way to remove duplicates from collection\n * - removeIf -> removes numbers because it is uses the iterator interface internally. Iterator implicitly\n *\n * - hasNext() method only can go forward cant go backward. it stars from next index\n * - when we use it our loop hasNext() iterates from the next index\n * - iterator(); - hasNext(); - next(); - remove();\n */\n ArrayList<Integer> list2 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n list2.removeIf( p -> p < 4 );\n System.out.println(list2);\n\n\n ArrayList<Integer> list3 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n Iterator<Integer> it =list3.iterator(); // - this method will return iterator\n while( it.hasNext() ){ // - iterator explicitly. While loop only accept boolean\n if( it.next() < 4 ){\n it.remove();\n }\n }\n System.out.println(list3);\n\n\n ArrayList<Integer> list4 = new ArrayList<>(Arrays.asList(1,1,2,3,3,4,4,5,5));\n // - hasNext(); will iterate all the indexes. We do not need extra iterator in the loop\n for(Iterator<Integer> I = list4.iterator(); I.hasNext(); ){\n if( I.next() < 4) {\n I.remove();\n }\n }\n System.out.println(list4);\n\n\n\n LinkedHashSet<String> names = new LinkedHashSet<>();\n names.addAll(Arrays.asList( \"Mehmet\",\"Mohammed\",\"Yucel\",\"Sha\",\"Ozgur\", \"Ahmet\",\"Osmanj\",\"Ozgur\",\"Ozgur\",\"Irina\"));\n System.out.println(names);\n Iterator<String> it3 = names.iterator();\n while( it3.hasNext() ){\n String s = it3.next();\n if(s.contains(\"m\") || s.contains(\"M\")){ // - s.toLowerCase.contains(\"m\")\n it3.remove();\n }\n }\n System.out.println(names);\n\n /*\n ===============================================================\n for(Iterator<String> it3 = names.iterator(); it3.hasNext() ; ){\n String s = it3.next();\n if(s.toLowerCase().contains(\"m\")){\n it3.remove();\n }\n }\n ================================================================\n names.removeIf( s -> s.contains(\"m\") || s.contains(\"M\") );\n ================================================================\n names.removeAll( Arrays.asList( \"Mehmet\", \"Ozgur\", \"Mohammed\" ));\n ================================================================\n names.retainAll( Arrays.asList( \"Yucel\", \"Sha\", \"Ahmet\" ) );\n ================================================================\n boolean result = list.containsAll( Arrays.asList(5, 6, 9, 8, 11 ));\n */\n\n\n\n\n\n\n\n System.out.println(\"=========================================================================================\");\n\n\n\n\n\n }", "protected void removeDuplicates() {\n log.trace(\"Removing duplicated\");\n long startTime = System.currentTimeMillis();\n int initial = size();\n E last = null;\n int index = 0;\n while (index < size()) {\n E current = get(index);\n if (last != null && last.equals(current)) {\n if (log.isTraceEnabled()) {\n log.trace(\"Removing duplicate '\" + current + \"'\");\n }\n remove(index);\n } else {\n index++;\n }\n last = current;\n }\n log.debug(String.format(\"Removed %d duplicates from a total of %d values in %dms\",\n initial - size(), initial, System.currentTimeMillis() - startTime));\n }", "public void remove(Comparable obj)\n {\n \t fixup(root, deleteNode(root, obj));\n }", "public void testRemoveObj() {\r\n list.add(\"A\");\r\n list.add(\"B\");\r\n assertTrue(list.remove(\"A\"));\r\n assertEquals( \"B\", list.get(0));\r\n assertEquals( 1, list.size());\r\n list.add(\"C\");\r\n assertTrue(list.remove(\"C\"));\r\n assertEquals(\"B\", list.get(0));\r\n }", "abstract public void removeAll();", "@Override\n public T remove(Object object) {\n T removed = null;\n for (int i = 0; i < array.length; i++) {\n while (!array[i].equals(object)) {\n\n }\n removed = array[i];\n array[i] = array[i + 1];\n }\n this.size = size - 1;\n return removed;\n }", "public static void removeAllNumbersGreaterThan10(Set<Integer> set) {\n SortedSet<Integer> sortedSet = new TreeSet<>();\n sortedSet.addAll(set);\n set.clear();\n set.addAll(sortedSet.headSet(11));\n }", "void removeAll();", "void removeAll();", "public void removeAll() {\n _hash = new Hashtable();\n _first = null;\n _last = null;\n }", "public boolean remove(Object obj);", "@Override\r\n\tpublic void remove(List<GroupMember> list) {\n\t\tfor(int i = 0;i<list.size();i++)\r\n\t\t\tremove(list.get(i));\r\n\t}", "boolean remove(Object obj);", "boolean remove(Object obj);", "public void wipeZeros() {\n Set<T> objToBeRemoved = new HashSet<T>();\n for (T obj : objToSums.keySet()) {\n if (shouldBeRemoved(obj)) {\n objToBeRemoved.add(obj);\n }\n }\n for (T obj : objToBeRemoved) {\n objToSums.remove(obj);\n }\n }", "void remove(Order order);", "@Test\n public void testRemove_int_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public boolean removeElement(Object obj);", "public static void main(String[] args){\n\t\tTreeSet hs=new TreeSet();\n\t\t\n\t\ths.add(\"d\");\n\t\ths.add(\"c\");\n\t\ths.add(\"b\");\n\t\ths.add(\"a\");\n\t\ths.add(\"c\");\n\t\ths.add(\"i\");\n\t\ths.add(\"l\");\n\t\ths.add(new Integer(2));\n\t\ths.add(new Float(2));\n\t\t\n\t\t\t\t\n\t\tSystem.out.println(\"Hashset is \"+hs);\n\t\tSystem.out.println(\"Size of Hashset is \"+ hs.size());\n\t\t\n\t\tSystem.out.println(\"Does hashset contains this 'u' element \" + hs.contains(\"u\"));\t\t\n\t\tSystem.out.println(\"is hashset empty \" + hs.isEmpty());\n\t\tSystem.out.println(\"remove the element \"+hs.remove(\"i\"));\n\t\t\n\t\t\n\t hs.clear();\n\t System.out.println(\"get class \" +hs.getClass());\n\t\t\n\t System.out.println(\"is hashset empty \" +hs.isEmpty());\n\t \n\t \n\t\t\n\t}", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public static boolean removeFromCollection(final Object dataObject, final String fieldName, final FormDataObjIFace ref)\n {\n DataObjectGettable getter = DataObjectGettableFactory.get(dataObject.getClass().getName(), FormHelper.DATA_OBJ_GETTER);\n Object dataMember = getter.getFieldValue(dataObject, fieldName);\n try\n {\n Method method = dataMember.getClass().getMethod(\"remove\", Object.class);\n if (method != null)\n {\n method.invoke(dataMember, ref);\n return true;\n \n }\n log.error(\"Missing method remove(Object) for this type of set [\"+dataMember.getClass()+\"]\");\n\n } catch (Exception ex)\n {\n edu.ku.brc.af.core.UsageTracker.incrHandledUsageCount();\n edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(DataModelObjBase.class, ex);\n ex.printStackTrace();\n }\n\n return false;\n }", "@Test\r\n public void removeAndForEach() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n int[] expected1 = {1, 3, 4, 5};\r\n int i = 0;\r\n for (int el : s) {\r\n assertEquals(expected1[i], el);\r\n i++;\r\n }\r\n }", "void removeHas(WrappedIndividual oldHas);", "boolean remove(Object o);", "public void eliminar(Object o) {\n\t\t\n\t}", "@Test\n public void testRemoveAll() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "public void removeAll(Object o) {\r\n\t\t//so lange das Objekt entfernen bis es nicht mehr drin ist\r\n\t\twhile(contains(o)) {\r\n\t\t\tremove(o);\r\n\t\t}\r\n\t}", "public void deleteAllMember()\n\t{\n\t\tmembers.clear();\n\t}", "private Set<Attribute> removeCurrentAttrFromSet(Set<Attribute> attrs,\n\t\t\tObjectClass objClass) {\n\t\tSet<Attribute> attributes = new HashSet<Attribute>(attrs);\n\t\tattributes.remove(AttributeBuilder.buildCurrentAttributes(objClass,\n\t\t\t\tAttributeUtil.getCurrentAttributes(attrs)));\n\t\treturn attributes;\n\t}", "public void\t\tremoveAll();", "@Override\r\n\tpublic void deleteSort() {\n\t\t\r\n\t}", "public boolean remove(Object o);", "@Override\n protected void removeMember() {\n }", "@Override\r\n\tpublic void clear() {\n\t\tset.clear();\r\n\t}", "@Override\n public boolean remove(Object o) {\n if (elements.remove(o)) {\n ordered.remove(o);\n return true;\n } else {\n return false;\n }\n\n }", "public static void main(String[] args) {\n SortedSet<CompareObject> objects = new TreeSet<>(new ComparatorTest());\n\n objects.add(new CompareObject(1));\n objects.add(new CompareObject(3));\n objects.add(new CompareObject(5));\n objects.add(new CompareObject(-13));\n objects.add(new CompareObject(12));\n objects.add(new CompareObject(1100));\n objects.add(new CompareObject(1));\n\n for (CompareObject x : objects){\n System.out.println(x);\n }\n\n }", "@Override\r\n\tpublic boolean removeAll(Collection<?> c) {\n\t\treturn set.removeAll(c);\r\n\t}", "@Test\n public void getHeapCriticalMembersFrom_WithEmptyCriticalMembersReturnsEmptySet() {\n getHeapCriticalMembersFrom_returnsEmptySet(Collections.emptySet(), memberSet);\n }", "public boolean remove(RealObject o);", "public Collection<V> removeVertices(Collection<V> vs);", "@Test\n public void testRemoveAll_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "@Test\n public void removePermission() {\n Collection<BPermission> auxP = new HashSet<>();\n auxP.add(sampleP);\n\n cleanEntity0();\n ReflectionTestUtils.setField(entity0, \"permissions\", auxP);\n Collection<?> permissions = (HashSet<?>) ReflectionTestUtils.getField(entity0, \"permissions\");\n assertTrue(permissions != null && permissions.contains(sampleP));\n\n entity0.removePermission(sampleP);\n permissions = (HashSet<?>) ReflectionTestUtils.getField(entity0, \"permissions\");\n assertTrue(permissions != null && !permissions.contains(sampleP));\n }" ]
[ "0.6461053", "0.6274361", "0.6195922", "0.6101098", "0.60696256", "0.6051769", "0.5939671", "0.59146744", "0.59093", "0.58672726", "0.58636653", "0.5842328", "0.5814507", "0.57851666", "0.5775345", "0.57711405", "0.5756465", "0.5755148", "0.57448447", "0.57244176", "0.5708078", "0.5700346", "0.56997126", "0.56769186", "0.5648338", "0.56385756", "0.5616275", "0.56019646", "0.5597874", "0.55955696", "0.55842376", "0.5555181", "0.555299", "0.55411106", "0.5534011", "0.5530915", "0.5527969", "0.5497839", "0.5497379", "0.54943955", "0.54943955", "0.54943955", "0.54943955", "0.54943955", "0.54943955", "0.54943955", "0.54943955", "0.54943955", "0.54943955", "0.54943955", "0.54943955", "0.5467053", "0.54612064", "0.5434815", "0.54346716", "0.5433508", "0.54219043", "0.54212123", "0.541653", "0.5408083", "0.54005843", "0.53935564", "0.5376543", "0.5376543", "0.5375254", "0.5371937", "0.5370022", "0.5358226", "0.5358226", "0.5356725", "0.5353342", "0.53425467", "0.53329235", "0.53246456", "0.5324552", "0.5324552", "0.5324552", "0.5324552", "0.5324552", "0.53189003", "0.5310212", "0.5292775", "0.52904594", "0.52770704", "0.52752537", "0.5274217", "0.5269778", "0.5267126", "0.5264021", "0.52634394", "0.52477366", "0.5244148", "0.5241577", "0.5220552", "0.5208234", "0.5201895", "0.51999456", "0.51932573", "0.5188872", "0.51822597", "0.51809645" ]
0.0
-1
Get the score associated with the given member in a sorted set
public Double zscore(final String key, final String member) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.zscore(key, member); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double zscore(final String key, final Object member) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n // return jedis.zscore(key.getBytes(),\n // HessianSerializer.serialize(member));\n return jedis.zscore(key.getBytes(), toJsonByteArray(member));\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "int getRanking();", "public Double zscore(String key,String member){\n Jedis jedis = null;\n try{\n jedis = getJedis();\n return jedis.zscore(key,member);\n }catch (Exception e){\n logger.error(\"发生异常:\"+e.getMessage());\n }finally {\n if(jedis!=null)\n jedis.close();\n }\n return null;\n }", "public void rankMatches();", "public double getBestScore();", "Float getScore();", "int getScore();", "float getScore();", "float getScore();", "int getScoreValue();", "public long getScore(int x)\n {\n return score[x];\n }", "long getScore();", "long getScore();", "long getScore();", "long getScore();", "public int getScore() {\n return getStat(score);\n }", "@Override\r\n\tpublic int calcRankByID(String id) {\n\t\tint rank = 0;\r\n\r\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"select * from member order by score desc\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\trank++;\r\n\t\t\t\tif(rs.getString(\"id\").equals(id))\r\n\t\t\t\t\treturn rank;\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn rank;\r\n\t\t}\r\n\r\n\t\treturn rank;\r\n\t}", "public int getPoints(String nom){\n\treturn scores.get(idToIndice(nom));\n }", "Score getScores(int index);", "public int scoreOf(String word) {\n\t\tString noU = stripU(word);\n\t\treturn tst.contains(noU) ? tst.get(noU) : 0;\n\t}", "public int score() {\n int sum = 0;\n for (Candidate c : chosen) {\n sum += c.score(compatibilityScoreSet);\n }\n return sum;\n }", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "public PracticeResult getHighestGradingByMember(Member member, String practiceType);", "public int getScore() { return score; }", "void collect(Object key, float score);", "public int getPlayerScoreFromHighscoreList(String name) {\n\t\t//if the name isn't found in the list\n\t\tif(highscore.containsKey(name))\n\t\t\treturn 0;\n\t\t\n\t\treturn highscore.get(name);\n\t}", "public static int[] mucScore(LeanDocument key, LeanDocument response)\n{\n // System.out.println(\"==========================================================\");\n // System.out.println(\"Key:\\n\"+key.toStringNoSing()+\"\\n*************************\\nResponse:\\n\"+response.toStringNoSing());\n\n Iterator<TreeMap<Integer, Integer>> goldChains = key.chainIterator();\n // double mucRecall = 0.0;\n int mucRecallNom = 0;\n int mucRecallDenom = 0;\n while (goldChains.hasNext()) {\n TreeMap<Integer, Integer> keyChain = goldChains.next();\n if (keyChain.size() > 1) {\n int numInt = numIntersect(key, keyChain, response);\n\n // int numMatched = getNumMatched(key, keyChain);\n // if(numMatched>0){\n // mucRecallNom += numMatched-numInt;\n mucRecallNom += (keyChain.size() - numInt);\n // mucRecallDenom += numMatched-1;\n mucRecallDenom += keyChain.size() - 1;\n\n // System.out.println(keyChain+\"\\n\"+(keyChain.size() - numInt)+\"/\"+(keyChain.size()-1));\n // }\n }\n }\n int[] result = { mucRecallNom, mucRecallDenom };\n\n return result;\n}", "abstract public double getMembership(int x);", "public int getScore() {return score;}", "double calculateScore(String documentId);", "int score();", "int score();", "private static int getLeader(int [] A) {\n int leader = 0;\n Map<Integer, Integer> occurrencesCounter = new HashMap<>();\n int N = A.length;\n\n if(N == 0)\n return -1;\n else if (N == 1)\n return 0;\n\n\n for(int i =0; i< A.length; i++) {\n if(!occurrencesCounter.containsKey(A[i])) {\n occurrencesCounter.put(A[i], 1);\n }else {\n occurrencesCounter.replace(A[i], occurrencesCounter.get(A[i])+1);\n if(occurrencesCounter.get(A[i]) > (N/2.0))\n leader = i;\n else leader = -1;\n }\n }\n\n return leader;\n }", "public int getScore ()\r\n {\r\n\treturn score;\r\n }", "protected abstract List<Double> calcScores();", "long getRank();", "protected abstract double computeColumnScore(Column column);", "@Override\n public int getScore() {\n return totalScore;\n }", "public int getScore(int index) {\n return ranking.get(index).getvalue();\n }", "public abstract float getScore();", "@Override\n public int getScore() {\n return score;\n }", "@Test\n public void testGetMyBestRank() {\n int result1 = this.scoreBoard.getMyBestRank(new Record(4, 5, \"@u1\", \"ST\"));\n assertEquals(1, result1);\n int result2 = this.scoreBoard.getMyBestRank(new Record(3, 15, \"@u3\", \"ST\"));\n assertEquals(3, result2);\n\n }", "@Override\r\n\tpublic double getScore() {\n\t\treturn score;\r\n\t}", "public int getScore()\n {\n return score;\n }", "public int getScore(){ return this.score; }", "public int returnPoints()\n {\n return score ;\n }", "private static double intraClusterScore(List<String> arg1, List<String> arg2) {\n\t\t// compare each elements from argList1 vs argList2\n\n\t\tPair<String, String> pair = null;\n\t\tdouble tempScore = 0;\n\t\tdouble maxScore = 0;\n\n\t\tfor (int list1Id = 0; list1Id < arg1.size(); list1Id++) {\n\t\t\tfor (int list2Id = 0; list2Id < arg2.size(); list2Id++) {\n\n\t\t\t\t// create a pair\n\t\t\t\tpair = new ImmutablePair<String, String>(arg1.get(list1Id)\n\t\t\t\t\t\t.trim(), arg2.get(list2Id).trim());\n\n\t\t\t\ttry {\n\t\t\t\t\t// retrieve the key from the collection\n\t\t\t\t\ttempScore = SCORE_MAP.get(pair);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpair = new ImmutablePair<String, String>(arg2.get(\n\t\t\t\t\t\t\t\tlist2Id).trim(), arg1.get(list1Id).trim());\n\t\t\t\t\t\ttempScore = SCORE_MAP.get(pair);\n\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\ttempScore = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// System.out.println(\" temp score = \" + tempScore);\n\t\t\t\tmaxScore = (tempScore > maxScore) ? tempScore : maxScore;\n\t\t\t}\n\t\t}\n\n\t\t// System.out.println(\"max = \" + maxScore);\n\t\treturn maxScore;\n\t}", "public int generateScore(List<Integer> line){\r\n\t\tif (line.get(0)+line.get(1)+line.get(2)==2 ) {\r\n\t\t\treturn 10;\r\n\t\t}\r\n\t\telse if (line.get(0)==line.get(1)&&line.get(1)==line.get(2) && line.get(0)==line.get(2)) {\r\n\t\t\treturn 5;\r\n\t\t}\r\n\t\telse if (line.get(0)!=line.get(1)&&line.get(0)!=line.get(2)) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\t\r\n\t\r\n\t}", "private SearchNode findFirstNode(HashSet<SearchNode> set){\n\t\t\tSearchNode min = null;\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (min == null || cur.fScore < min.fScore)\n\t\t\t\t\tmin = cur;\n\t\t\t}\n\t\t\treturn min;\n\t\t}", "public Score getScore(String checker)\n {\n int i = -1;\n if(findScore(checker) == -1)\n {\n return null;\n }\n else\n {\n i = findScore(checker);\n return scores[i];\n }\n }", "public double getScore() {\n int as = this.attributes.size(); // # of attributes that were matched\n\n // we use thresholding ranking approach for numInstances to influence the matching score\n int instances = this.train.numInstances();\n int inst_rank = 0;\n if (instances > 100) {\n inst_rank = 1;\n }\n if (instances > 500) {\n inst_rank = 2;\n }\n\n return this.p_sum + as + inst_rank;\n }", "public int getScore()\n {\n return score; \n }", "public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public int getTotalScore(){\r\n return totalScore;\r\n }", "public int getScore(){return score;}", "public int getScore(){return score;}", "public int score(String name) {\n return name.indexOf(this.name + \"_\");\n }", "public int score() {\n return score;\n }", "public int getScore() {\r\n return score;\r\n }", "public int getScore() {\r\n return score;\r\n }", "public int getScore() {\r\n return score;\r\n }", "@Override\r\n\tpublic int compareTo(Member o) {\n\t\treturn 0;\r\n\t}", "Float getAutoScore();", "protected abstract double relevantScore(Tweet tweet);", "public int getScore()\n {\n return points + extras;\n }", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore() {\n return score;\n }", "public int getScore() {\n return score;\n }", "public double getScore() {\r\n return score;\r\n }", "public int getScore() {\r\n \treturn score;\r\n }", "@Override\n\tpublic double getTotalScore() {\n\t\treturn score;\n\t}", "@Override\r\n\tpublic double getScore() \r\n\t{\r\n\t\treturn this._totalScore;\r\n\t}", "public int getTotalScore(){\n return totalScore;\n }", "public int getScore(){\n\t\treturn score;\n\t}", "public int getScore(){\n\t\treturn score;\n\t}", "public int getPlayerScore();", "public ScoreValues getScore(int player) {\n switch (player) {\n case PLAYER_A:\n return scoreA;\n case PLAYER_B:\n return scoreB;\n }\n return -1;\n }", "public int getScore(){\n\t\treturn this.score;\n\t}", "public int getScore(){\n\t\treturn this.score;\n\t}", "public int getScore () {\n return mScore;\n }", "float score(Marker marker) {\n\t\tint pos = marker.getEnd();\n\t\tif ((score == null) || (pos >= score.length)) return Float.MIN_VALUE;\n\n\t\t// Is this a SNP? i.e. only one base\n\t\tif (marker.size() == 1) return score[marker.getStart()] / 1000.0f;\n\n\t\t// More then one base length?\n\t\t// Return the average score of all those bases\n\t\tint sum = 0;\n\t\tfor (int p = marker.getStart(); p <= marker.getEnd(); p++)\n\t\t\tsum += score[p];\n\n\t\treturn sum / (1000.0f * marker.size());\n\t}", "public int getScore() {\n return score;\n }", "public int getRank();", "public int getRank();", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "public int getScore(){\n return this.score;\n }", "public int getScore()\n {\n // put your code here\n return score;\n }", "protected abstract void calcScores();", "public int getScore(){\n \treturn 100;\n }", "@Override\r\n\tpublic int totalScore(GradeBean param) {\n\t\treturn 0;\r\n\t}", "long getFromRank();", "public int score() {\n\t\tint result = 0;\n\t\tArrayList<Tile> a = g.getQueue();\n\t\tCollections.reverse(a);\n\t\tint index = 0;\n\t\twhile (a.get(index) == null)\n\t\t\tindex++;\n\t\tfor (int i = index; i < a.size() - 1; i++) {\n\t\t\tif (a.get(i) == null)\n\t\t\t\tcontinue;\n\t\t\tint cmp = a.get(i).compareTo(a.get(i + 1));\n\t\t\tresult -= cmp;\n\t\t}\n\t\treturn result;\n\t}", "public int getScore() {\n return this.score;\n }", "public Integer getScore() {\r\n return score;\r\n }", "public int getPointsJuggernaut(){\n\treturn scores.get(juggernaut);\n }", "public int scoreLeafNode();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getScore();", "public int getScore() {\n\t\treturn (score);\n\t}" ]
[ "0.5963968", "0.55968493", "0.55453897", "0.549291", "0.5491632", "0.54148084", "0.541034", "0.5391455", "0.5391455", "0.53606534", "0.5341445", "0.5331468", "0.5331468", "0.5331468", "0.5331468", "0.5310169", "0.5296118", "0.5285319", "0.5281759", "0.5259009", "0.52551425", "0.523256", "0.5212934", "0.5190008", "0.5188929", "0.5179796", "0.5155183", "0.51214206", "0.5116997", "0.51166433", "0.51149803", "0.51149803", "0.5102772", "0.5094848", "0.507998", "0.50705147", "0.5069309", "0.5061097", "0.5060182", "0.5056815", "0.502416", "0.50188816", "0.50147724", "0.50053215", "0.50010073", "0.49858373", "0.49817595", "0.4981188", "0.49794382", "0.4974055", "0.4971987", "0.49715507", "0.49644476", "0.49644476", "0.4957956", "0.4957084", "0.4957084", "0.4953483", "0.4951794", "0.4939036", "0.4939036", "0.4939036", "0.4938253", "0.49328426", "0.4929886", "0.4919453", "0.4915638", "0.4915638", "0.49149406", "0.49149406", "0.49146187", "0.49144924", "0.49109703", "0.49094012", "0.49076596", "0.4905589", "0.4905589", "0.49031854", "0.48985174", "0.48963544", "0.48963544", "0.4895213", "0.48928168", "0.48899835", "0.48897603", "0.48897603", "0.48850408", "0.48849192", "0.4878594", "0.4863497", "0.48619723", "0.48588043", "0.4854883", "0.48454574", "0.48276785", "0.4819668", "0.48098692", "0.48088804", "0.480205", "0.48011678" ]
0.58798057
1
For ObjecGet the score associated with the given member in a sorted set
public Double zscore(final String key, final Object member) { Jedis jedis = null; try { jedis = jedisPool.getResource(); // return jedis.zscore(key.getBytes(), // HessianSerializer.serialize(member)); return jedis.zscore(key.getBytes(), toJsonByteArray(member)); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "public Double zscore(final String key, final String member) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zscore(key, member);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "void collect(Object key, float score);", "public Double zscore(String key,String member){\n Jedis jedis = null;\n try{\n jedis = getJedis();\n return jedis.zscore(key,member);\n }catch (Exception e){\n logger.error(\"发生异常:\"+e.getMessage());\n }finally {\n if(jedis!=null)\n jedis.close();\n }\n return null;\n }", "Score getScores(int index);", "public void rankMatches();", "@Override\r\n\tpublic int compareTo(Member o) {\n\t\treturn 0;\r\n\t}", "public int getScore() { return score; }", "public int getScore(){ return this.score; }", "public int getScore() {return score;}", "int getScore();", "float getScore();", "float getScore();", "long getScore();", "long getScore();", "long getScore();", "long getScore();", "Float getScore();", "public double getBestScore();", "public static int[] mucScore(LeanDocument key, LeanDocument response)\n{\n // System.out.println(\"==========================================================\");\n // System.out.println(\"Key:\\n\"+key.toStringNoSing()+\"\\n*************************\\nResponse:\\n\"+response.toStringNoSing());\n\n Iterator<TreeMap<Integer, Integer>> goldChains = key.chainIterator();\n // double mucRecall = 0.0;\n int mucRecallNom = 0;\n int mucRecallDenom = 0;\n while (goldChains.hasNext()) {\n TreeMap<Integer, Integer> keyChain = goldChains.next();\n if (keyChain.size() > 1) {\n int numInt = numIntersect(key, keyChain, response);\n\n // int numMatched = getNumMatched(key, keyChain);\n // if(numMatched>0){\n // mucRecallNom += numMatched-numInt;\n mucRecallNom += (keyChain.size() - numInt);\n // mucRecallDenom += numMatched-1;\n mucRecallDenom += keyChain.size() - 1;\n\n // System.out.println(keyChain+\"\\n\"+(keyChain.size() - numInt)+\"/\"+(keyChain.size()-1));\n // }\n }\n }\n int[] result = { mucRecallNom, mucRecallDenom };\n\n return result;\n}", "int getRanking();", "public int getScore ()\r\n {\r\n\treturn score;\r\n }", "public int getScore(){return score;}", "public int getScore(){return score;}", "@Override\n public int getScore() {\n return score;\n }", "int getScoreValue();", "public int getScore()\n {\n return score; \n }", "@Override\r\n\tpublic int compareTo(CandidateDoc o) {\n\t\tif((score-o.score)>0)\r\n\t\t{\r\n\t\t\treturn 1;\r\n\t\t}else if((score-o.score)<0)\r\n\t\t{\r\n\t\t\treturn -1;\r\n\t\t}else\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic double getScore() {\n\t\treturn score;\r\n\t}", "protected abstract List<Double> calcScores();", "public int getScore(){\n return this.score;\n }", "List<Athlete> getAllOrderByScore(OrderBy orderBy);", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "public int getPoints(String nom){\n\treturn scores.get(idToIndice(nom));\n }", "public SortedMap<Double, SortedSet<String>> getScores()\n {\n return Collections.unmodifiableSortedMap(scores);\n }", "public int getScore()\n {\n return score;\n }", "@Override\n public int getScore() {\n return totalScore;\n }", "@Override\n\tpublic int compareTo(Student o) {\n\t\treturn this.score - o.score;\n\t\t\n\t}", "public abstract float getScore();", "public int getScore () {\n return mScore;\n }", "public int getScore() {\n return getStat(score);\n }", "@Override\r\n public int compareTo(final QueryResultEntry comparative) {\r\n return (mScore > comparative.mScore ? -1 : (mScore == comparative.mScore ? 0 : 1));\r\n }", "public double getScore() {\r\n return score;\r\n }", "public int returnPoints()\n {\n return score ;\n }", "public float getScore(){return score;}", "public Score getScore()\r\n { \r\n return theScore;\r\n }", "public long getScore(int x)\n {\n return score[x];\n }", "public int getScore(){\n \treturn 100;\n }", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore() {\r\n return score;\r\n }", "public int getScore() {\r\n return score;\r\n }", "public int getScore() {\r\n return score;\r\n }", "@Test\n public void testGetMyBestRank() {\n int result1 = this.scoreBoard.getMyBestRank(new Record(4, 5, \"@u1\", \"ST\"));\n assertEquals(1, result1);\n int result2 = this.scoreBoard.getMyBestRank(new Record(3, 15, \"@u3\", \"ST\"));\n assertEquals(3, result2);\n\n }", "public int getScore(){\n\t\treturn score;\n\t}", "public int getScore(){\n\t\treturn score;\n\t}", "double calculateScore(String documentId);", "@Override\r\n\tpublic int compareTo(Object ob) {\n\t\tStudent s=(Student)ob;\r\n\t\treturn (int)((this.marks-s.marks )*(1000));\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic int compareTo(Record record) {\n\t\t// If we reverse this, the order will be descending\n\t\treturn record.score - this.score;\n\t}", "public int getScore() {\r\n \treturn score;\r\n }", "public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "@Override\r\n\tpublic int calcRankByID(String id) {\n\t\tint rank = 0;\r\n\r\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"select * from member order by score desc\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\trank++;\r\n\t\t\t\tif(rs.getString(\"id\").equals(id))\r\n\t\t\t\t\treturn rank;\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn rank;\r\n\t\t}\r\n\r\n\t\treturn rank;\r\n\t}", "public int getScore()\n {\n return points + extras;\n }", "public int getScore(){\n\t\treturn this.score;\n\t}", "public int getScore(){\n\t\treturn this.score;\n\t}", "public int getScore() {\n return score;\n }", "public int getScore() {\n return score;\n }", "abstract public double getMembership(int x);", "public long zadd(String key, double score, String member){\n Jedis jedis = null;\n try{\n jedis = getJedis();\n return jedis.zadd(key,score,member);\n }catch (Exception e){\n logger.error(\"发生异常:\"+e.getMessage());\n }finally {\n if(jedis!=null)\n jedis.close();\n }\n return 0;\n }", "protected abstract void calcScores();", "@Override\r\n\tpublic double getScore() \r\n\t{\r\n\t\treturn this._totalScore;\r\n\t}", "public int getScore() {\n return score;\n }", "public double getScore() {\r\n return mScore;\r\n }", "long getHits();", "public interface MatchSet {\n\n\t/**\n\t * @return query that produced the match set\n\t */\n\tpublic ProfileQuery getQuery();\n\t\n\t/**\n\t * @return all matches\n\t */\n\tpublic List<Match> getMatches();\n\n\t/**\n\t * @return all matches with rank\n\t */\n\tpublic List<Match> getMatchesWithRank(int rank);\n\t\n\t/**\n\t * @param rank\n\t * @return all matches <= rank\n\t */\n\tpublic List<Match> getMatchesWithOrBelowRank(int rank);\n\t\n\t/**\n\t * @param matchId\n\t * @return Match with identical matchId\n\t */\n\tpublic Match getMatchesWithId(String matchId);\n\t\n\t/**\n\t * @param createMatch\n\t */\n\tpublic void add(Match match);\n\n\t/**\n\t * sort all matches, best match first\n\t */\n\tpublic void sortMatches();\n\t\n\t/**\n\t * rank sorted matches, best has rank=1, \n\t * identical scores share ranks\n\t */\n\tpublic void rankMatches();\n\t\n\t// TODO - record kb metadata\n\tpublic ExecutionMetadata getExecutionMetadata();\n\tpublic void setExecutionMetadata(ExecutionMetadata executionMetadata);\n\n\tpublic MethodMetadata getMethodMetadata();\n\tpublic void setMethodMetadata(MethodMetadata methodMetadata);\n\n\t/**\n\t * Truncate the match set to the top n hits\n\t * \n\t * @param limit\n\t */\n\tpublic void truncate(int limit);\n\t\n\t/**\n\t * Matches for all reference individuals\n\t * \n\t * This is preserved even after truncation\n\t * \n\t * @return map between match id and match\n\t */\n\tpublic Map<String, Match> getReferenceMatches();\n\t\t\n\tpublic DescriptiveStatistics getScores();\n\n\t/**\n\t * @param background - distribution of scores to compare for significance\n\t */\n\tpublic void calculateMatchSignificance(DescriptiveStatistics background);\n\n\t// TODO - filters\n\t\n}", "@Override\r\n\tpublic int totalScore(GradeBean param) {\n\t\treturn 0;\r\n\t}", "@Override\n public int compareTo(final DistributionMember o) {\n // This is the most important bit.\n if (!getValue().equals(o.getValue())) return (int) Math.signum(o.getValue() - getValue());\n // The rest is arbitrary and just designed to keep non-identical DistributionMembers from being equal\n final List<Double> fitVals = getFitnessValues();\n final List<Double> otherVals = o.getFitnessValues();\n for (int i = 0; i < fitVals.size(); ++i) {\n if (!fitVals.get(i).equals(otherVals.get(i))) return (int) Math.signum(otherVals.get(i) - fitVals.get(i));\n }\n final Genotype g = getGenotype();\n final Genotype og = o.getGenotype();\n return g.compareTo(og);\n }", "public PracticeResult getHighestGradingByMember(Member member, String practiceType);", "@Override\n\tpublic double getTotalScore() {\n\t\treturn score;\n\t}", "public int getScorePoints() {\n/* 75 */ return this.scorePoints;\n/* */ }", "int score();", "int score();", "public void sortMatches();", "public int getRank ()\n {\n return this.ranks; \n }", "public int getTotalScore(){\r\n return totalScore;\r\n }", "public static void main(String[] args) {\n\n Set<Student> set = Sets.newTreeSet();\n Student s3 = new Student(3);\n Student s4 = new Student(4);\n Student s5 = new Student(5);\n Student s1 = new Student(1);\n Student s2 = new Student(2);\n List<Student> list = Lists.newArrayList();\n list.add(s4);\n list.add(s3);\n list.add(s5);\n list.add(s1);\n list.add(s2);\n\n list.sort(new Comparator<Student>() {\n @Override\n public int compare(Student o1, Student o2) {\n return o1.getAge() - o2.getAge() < 0 ? 1 : -1;\n }\n });\n System.out.println(list);\n\n// s1.toString();\n// set.add(s3);\n// set.add(s4);\n// set.add(s5);\n// set.add(s1);\n// set.add(s2);\n// System.out.println(set);\n// for (Student s : set) {\n// System.out.println(s);\n// }\n\n\n }", "public Integer getScore() {\r\n return score;\r\n }", "public int getScore()\n {\n // put your code here\n return score;\n }", "public int getScore() {\n return this.score;\n }", "public ArrayList<CollegeFootballTeam> rankTeams();", "@Override\n\tpublic int compareTo(Score s) {\n\t\treturn Double.compare(this.score, s.score);\n\t}", "@Override\n\tpublic String getScore(int mid) {\n\t\tString scoreCard=null;\n\t\t//use Extenal Service \n\t\tscoreCard=extService.fetchScore(mid);\n\t\treturn scoreCard;\n\t}", "int getScore() {\n return score;\n }", "public void winner() {\n\t\tList<String> authors = new ArrayList<String>(scores_authors.keySet());\n\t\tCollections.sort(authors, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_authors.get(o1).compareTo(scores_authors.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des auteurs :\");\n\t\tfor(String a :authors) {\n\t\t\tSystem.out.println(a.substring(0,5)+\" : \"+scores_authors.get(a));\n\t\t}\n\t\t\n\t\tList<String> politicians = new ArrayList<String>(scores_politicians.keySet());\n\t\tCollections.sort(politicians, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_politicians.get(o1).compareTo(scores_politicians.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des politiciens :\");\n\t\tfor(String p :politicians) {\n\t\t\tSystem.out.println(p.substring(0,5)+\" : \"+scores_politicians.get(p));\n\t\t}\n\t}", "@Override\n public int compareTo(Participant o) {\n if (this.score != o.score) {\n return this.score - o.score;\n }\n return this.name.compareTo(o.name);\n }", "public int score() {\n return score;\n }", "public Integer getScore() {\n return score;\n }", "public int getTotalScore(){\n return totalScore;\n }", "public ScoreDTO getScore(String u) throws RemoteException {\n\t\tArrayList<Record> arrRecord=dao.getRecords(u);\n\t\treturn as.assemble(arrRecord);\n\t}" ]
[ "0.5847757", "0.5755191", "0.56259644", "0.5617937", "0.551147", "0.5467588", "0.5466913", "0.5450988", "0.5423486", "0.54132843", "0.54075", "0.5403085", "0.5403085", "0.5375462", "0.5375462", "0.5375462", "0.5375462", "0.5358264", "0.53539866", "0.5348611", "0.5345393", "0.529724", "0.52950287", "0.52950287", "0.5274864", "0.5274151", "0.5272555", "0.52356046", "0.52287304", "0.5205498", "0.5198134", "0.51965296", "0.51801825", "0.5168688", "0.51671875", "0.5161831", "0.5160442", "0.5143709", "0.5140103", "0.51351637", "0.51109356", "0.508961", "0.5089076", "0.50866187", "0.50786334", "0.5074172", "0.506868", "0.5067493", "0.50668764", "0.50668764", "0.50642353", "0.50642353", "0.50642353", "0.5058848", "0.50507027", "0.50507027", "0.5049072", "0.50440204", "0.5041857", "0.50403786", "0.50362414", "0.50362414", "0.5034839", "0.5032302", "0.50310177", "0.50310177", "0.5028159", "0.5028159", "0.5020844", "0.501989", "0.50189096", "0.5014637", "0.5010054", "0.500975", "0.50090605", "0.500752", "0.5002099", "0.49923065", "0.49920803", "0.49864736", "0.49860504", "0.49853358", "0.49853358", "0.49777293", "0.4974683", "0.4960626", "0.4957176", "0.4946233", "0.49453843", "0.4941365", "0.49347493", "0.4934739", "0.4924762", "0.4918915", "0.49174947", "0.49111804", "0.49109367", "0.49095458", "0.49093878", "0.4900437" ]
0.59933335
0
Remove all elements in the sorted set at key with rank between start and end. Start and end are 0based with rank 0 being the element with the lowest score. Both start and end can be negative numbers, where they indicate offsets starting at the element with the highest rank. For example: 1 is the element with the highest score, 2 the element with the second highest score and so forth. Time complexity: O(log(N))+O(M) with N being the number of elements in the sorted set and M the number of elements removed by the operation
public Long zremrangeByRank(String key, long start, long end) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.zremrangeByRank(key, start, end); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long zremrangeByRank(String key, long start, long stop) {\n Jedis jedis = pool.getResource();\n try {\n return jedis.zremrangeByRank(key, start, stop);\n } finally {\n jedis.close();\n }\n }", "public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "static void testRemove2(BTMap<Integer, Integer> m) {\n var keys = Arrays.asList(3, 8, 1, 0);\n\n System.out.println(keys);\n\n for (int i = 0; i < keys.size(); i++) {\n m.insert(keys.get(i), i);\n }\n\n System.out.println(m);\n\n m.remove(8);\n\n System.out.println(m);\n\n\n }", "static void testRemove3(BTMap<Integer, Integer> m) {\n var keys = Arrays.asList(3, 8, 1, 0, -1, 10, 5);\n\n System.out.println(keys);\n\n for (int i = 0; i < keys.size(); i++) {\n m.insert(keys.get(i), i);\n }\n\n System.out.println(m);\n\n m.remove(0);\n\n System.out.println(m);\n\n m.remove(8);\n\n System.out.println(m);\n\n m.remove(3);\n System.out.println(m);\n }", "public void remove(int key) {\n\t\t// Make sure that the key is present.\n\t\tassert (find(key));\n\t\t\n\t\tif (key == head.key) {\n\t\t\thead = head.next;\n\t\t\treturn;\n\t\t}\n\t\tIntNode curr;\n\t\tfor (curr = head; curr.next != null && curr.next.key < key; curr = curr.next);\n\t\tcurr.next = curr.next.next;\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t\tsuperset.removeRange(lower, upper, fromInclusive, toInclusive);\n\t\t\n\t\t//Alternative direct implementation:\n\t\t//while (pollFirst() != null) {\n\t\t//}\n\t\t\n\t}", "public void removeNotIn(int[] keys) {\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 int meKey = me.getKey();\n for (int k = 0; k < keys.length; k++) {\n if (keys[k] == meKey) {\n keys[k] = -1;\n }\n }\n me = me.getNext();\n }\n }\n }\n for (int k = 0; k < keys.length; k++) {\n if (keys[k] > 0) {\n removeElement(keys[k]);\n }\n }\n }", "public void remove(int key) {\n int index = key % n;\n MapNode node = keys[index];\n for (int i =0; i < node.list.size(); ++i) {\n if (node.list.get(i) == key) {\n node.list.remove(i);\n vals[index].list.remove(i);\n }\n }\n }", "public Set<Tuple> zrangeWithScores(final String key, final long start, final long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrangeWithScores(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "static void testRemove1(BTMap<Integer, Integer> m) {\n var keys = Arrays.asList(3, 8, 1, 0);\n\n System.out.println(keys);\n\n for (int i = 0; i < keys.size(); i++) {\n m.insert(keys.get(i), i);\n }\n\n System.out.println(m);\n\n m.remove(0);\n\n System.out.println(m);\n \n m.remove(1);\n\n System.out.println(m);\n }", "public void remove(int rem){\n if(elementOf(rem)){\n Set removed = new Set();\n for(int element = 0; element < set.length; element++){\n if(set[element] != rem)\n removed.add(set[element]);\n }\n setSet(removed.getSet());\n removed = null;\n }\n }", "public void removeRange(int lowKey, int highKey) {\n\t\tint pos = entries.getIntervalPosition(lowKey);\n\t\tIntBTreeNode next = entries.nodes[pos];\n\n\t\tif (next != null) {\n\t\t\t// calculate key interval for next node\n\t\t\tnext.removeRange(lowKey, highKey);\n\t\t}\n\t}", "public void dec(String key) {\n if (map.containsKey(key)) {\n if (map.get(key) == 1) {\n map.remove(key);\n vals.get(1).remove(key);\n if (vals.get(1).size() > 0) {\n min = 1;\n minKey = vals.get(1).iterator().next();\n if (max == 1)\n maxKey = minKey;\n } else {\n vals.remove(1);\n if (map.size() > 0) {\n int tempMin = Integer.MAX_VALUE;\n for (Map.Entry<Integer, Set<String>> e : vals.entrySet()) {\n if (e.getValue().size() > 0)\n tempMin = Math.min(tempMin, e.getKey());\n }\n min = tempMin;\n minKey = vals.get(tempMin).iterator().next();\n } else {\n min = 0;\n max = 0;\n }\n }\n } else {\n map.put(key, map.get(key) - 1);\n int val = map.get(key);\n vals.get(val + 1).remove(key);\n if (vals.get(val + 1).size() == 0)\n vals.remove(val + 1);\n vals.putIfAbsent(val, new HashSet<>());\n vals.get(val).add(key);\n if (val + 1 == max) {\n if (vals.get(max) == null || vals.get(max).size() == 0)\n max--;\n else\n maxKey = vals.get(max).iterator().next();\n }\n if (val + 1 == min) {\n min--;\n minKey = key;\n }\n }\n }\n }", "public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScoreWithScores(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "@Override\n\t@TimeComplexity(\"O(n)\")\n\tpublic V remove(K key) {\n\t/* TCJ\n\t * Binary search operation: log n\n\t * Iterate through new collection: n\n\t */\n\t\tint j = findIndex(key);\n\t\tif ( j == size() || key.compareTo(map.get(j).getKey()) != 0 ) return null;\n\t\treturn map.remove(j).getValue();\n\t}", "public void removeLowerPositions(List<List<Integer>> positions, int start) {\n for (final List<Integer> values : positions) {\n while (values.get(0).floatValue() < start) {\n values.remove(0);\n }\n }\n }", "public V remove(K key) {\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\t//for(int i=0;i<table[bucket].size()-1;i++){\n\tfor(MyEntry i:table[bucket]) { \n\t if(i.key==key) {\n\t\t//location.remove(key\n\t\tV previousvalue=i.value;\n\t\ttable[bucket].remove(i);\n\t\tsize--;\n\t\t/*if(table[bucket].size()==0) {\n\t\t utilizedbuckets.remove(bucket);\n\t\t}*/\n\t\treturn previousvalue;\n\t }\t\n\t}\n\treturn null;\n }", "public static void removeAllNumbersGreaterThan10(Set<Integer> set) {\n SortedSet<Integer> sortedSet = new TreeSet<>();\n sortedSet.addAll(set);\n set.clear();\n set.addAll(sortedSet.headSet(11));\n }", "public Set<String> zrevrange(String key, int start, int end){\n Jedis jedis = null;\n try{\n jedis = getJedis();\n return jedis.zrevrange(key,start,end);\n }catch (Exception e){\n logger.error(\"发生异常:\"+e.getMessage());\n }finally {\n if(jedis!=null)\n jedis.close();\n }\n return null;\n }", "@Test\r\n public void lowerHigherDoNotContains() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n check.remove(3);\r\n assertEquals(2, (int) check.lower(3));\r\n assertEquals(4, (int) check.higher(3));\r\n assertEquals(4, (int) check.ceiling(3));\r\n assertEquals(2, (int) check.floor(3));\r\n }", "public void remove(int key) {\n\n }", "public void remove(int key) {\n int hashCode = key%nodes.length;\n if (nodes[hashCode]==null) return;\n ListNode pre = findPrev(key);\n pre.next = pre.next.next;\n size--;\n }", "public Set<String> zrevrangeByScore(final String key, final double min, final double max) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrangeByScore(key, max, min);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public void remove(int key, int value, int lowKey, int highKey) {\n\t\tint pos = entries.getIntervalPosition(key);\n\t\tIntBTreeNode next = entries.nodes[pos];\n\n\t\tif (next != null) {\n\t\t\t// calculate key interval for next node\n\t\t\tint newLowKey = pos == 0 ? lowKey : entries.keys[pos - 1];\n\t\t\tint newHighKey = pos == entries.size() ? highKey\n\t\t\t\t\t: entries.keys[pos];\n\t\t\tnext.remove(key, value, newLowKey, newHighKey);\n\n\t\t}\n\t}", "@Override\n public Object remove(int k) {\n long startTime = System.currentTimeMillis();\n Object value = super.remove(k);\n long endTime = System.currentTimeMillis();\n if (value == null) {\n elements--;\n startTime = System.currentTimeMillis();\n for (int i = 1; i < super.size() && value == null; i++) {\n int hash = (k + i) % size();\n MapElement me = hashTable[hash];\n if (me == null) {\n value = null;\n } else if (me.getKey() != k) {\n value = null;\n } else {\n hashTable[hash] = null;\n value = me.getValue();\n }\n }\n endTime = System.currentTimeMillis();\n }\n System.out.println(\"------REMOVE------\");\n System.out.println(\"TIME: \" + (endTime - startTime));\n return value;\n }", "public void remove(int key) {\n int pos = key % this.size;\n Bucket bucket = this.buckets[pos];\n bucket.delete(key);\n }", "public boolean remove(int val) {\n boolean contains = map.containsKey(val);\n if(!contains) return false;\n int pos = map.get(val);\n if (pos < nums.size() - 1) { // if not the last one, then swap the last one with this val\n int last = nums.get(nums.size() - 1); // arraylist get() O(1), basically a value in an array\n nums.set(pos, last); // set the element at \"pos\" position to be last element in the list , set like assign value in an array element\n map.put(last, pos); // put the last element in the list with the pos position\n }\n map.remove(val); // hashmap remove() It is O(1) only when removing the last element by index.\n // O(1); map remove(obj)\n //O(1+k/n) where k is the no. of collision elements\n // added to the same LinkedList (k elements had same hashCode)\n nums.remove(nums.size() - 1);\n return true;\n }", "@Override\n public V remove(Object key) {\n \t\n \tLinkedList<Entry> tempBucket = chooseBucket(key);\n \t\n \tfor(int i=0;i<tempBucket.size();i++) {\n\t \tEntry tempEntry = tempBucket.get(i);\n\t \t\t\n\t \tif(tempEntry.getKey() == key) {\n\t \t\tV returnValue = tempEntry.getValue();\n\t \t\ttempBucket.remove(i);\n\t \t\tsize --;\n\t \t\treturn returnValue;\n\t \t}\n\t }\n \t\n \tif(size < buckets.length*BETA) {\n \t\trehash(SHRINK_FACTOR);\n \t}\n \t\n \treturn null;\n }", "public T removeBest();", "V remove(K key);", "V remove(K key);", "V remove(K key);", "public void remove(int key) {\n int index = getIndex(key);\n int index2 = getIndex2(key);\n if(buckets[index] != null){\n buckets[index][index2] = false;\n }\n }", "public boolean remove(int val) {\n if (!realSet.contains(val)) return false;\n if (realSet.size() > 10 && realSet.size() == allSet.length / 4) {\n Integer[] tmpSet = new Integer[size * 2];\n int not = 0;\n for (int i = 0; i < size; i ++) {\n if (allSet[i] == null) {\n not ++;\n continue;\n }\n tmpSet[i - not] = allSet[i];\n }\n size -= not;\n allSet = tmpSet;\n }\n realSet.remove(val);\n return true;\n }", "public void removeEdge(int start, int end);", "List<Source> process(int topK, Set<Source> sources);", "void removeKey(int i);", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "public Set<String> zrevrange(String key, long start, long end) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n return jedis.zrevrange(key, start, end);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "void delete(final Key key) {\n int r = rank(key);\n if (r == size || keys[r].compareTo(key) != 0) {\n return;\n }\n for (int i = r; i < size - 1; i++) {\n keys[i] = keys[i + 1];\n values[i] = values[i + 1];\n }\n size--;\n keys[size] = null;\n values[size] = null;\n }", "Lista<K> keysInRange(K init, K end);", "public Entry remove(Object key) {\n int i = compFunction(key.hashCode());\n SList chain = buckets[i];\n try {\n for (SListNode n = (SListNode) chain.front(); n.isValidNode(); n = (SListNode) n.next()) {\n Entry e = (Entry) n.item();\n if (e.key.equals(key)) {\n n.remove();\n size--;\n return e;\n }\n }\n } catch(InvalidNodeException e) {\n System.out.println(e);\n }\n return null; \n }", "ArrayList <Integer> nearlySorted(int arr[], int num, int k)\n {\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n ArrayList<Integer> res = new ArrayList<>();\n for(int i=0;i<k+1;i++){\n pq.add(arr[i]);\n }\n \n for(int i=k+1;i<num;i++){\n res.add(pq.remove());\n pq.add(arr[i]);\n }\n \n while(pq.size()>0){\n res.add(pq.remove());\n }\n \n return res;\n }", "private static void findKClosestNumbers(int[] arr, int key, int k) {\n\n\t\tPriorityQueue<Integer> pq;\n\t\tint max = findMaxInArr(arr);\n\t\tint min = findMinInArr(arr);\n\n\t\tint maxDiff = Math.abs(key - max);\n\t\tint minDiff = Math.abs(key - min);\n\n\t\tif (maxDiff <= minDiff) {\n\t\t\tpq = new PriorityQueue<>(Collections.reverseOrder());\n\t\t} else {\n\t\t\tpq = new PriorityQueue<>();\n\t\t}\n\n\t\tfor (int e : arr) {\n\t\t\tpq.add(e);\n\t\t}\n\n\t\tint c = 0;\n\n\t\twhile (c < k) {\n\t\t\tSystem.out.println(pq.remove());\n\t\t\tc++;\n\t\t}\n\n\t}", "public void dec(String key) {\n \t int val=\tmap.getOrDefault(key, 0)-1;\n \t if(val==0)map.remove(key);\n if(val==max||val>max) {\n \t maxkey=key;\n }\n if(val<min) {\n \t min=val;\n \t minkey=key;\n }\n \t map.put(key,val);\n }", "public void remove (k key, v val) {\n\t\t\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\tNode<k,v> previous = null;\n\t\t\n\t\twhile (curr != null) {\n\t\t\t\n\t\t\t\n\t\t\tif (curr.getKey().equals(key) && curr.getValue().equals(val)) { // if pairs match\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tif (previous == null) {\t\t// if it's the first one , make the following SLL entry first in the bucket\n\t\t\t\t\t\tbuckets[b] = curr.getNext();\n\t\t\t\t\t\treturn;\n\t\t\t\t}\t\n\t\t\t\telse {\t\t\t\t\t\t// if it's not the first one then make previous's next point to curr's next\n\t\t\t\t\tprevious.setNext(curr.getNext()); \n\t\t\t\t\treturn;\n\t\t\t\t}\t\t\n\t\t\t} else {\t\t\t\t\t\t// there is not match, keep going through the SLL\n\t\t\t\tprevious = curr;\n\t\t\t\tcurr = curr.getNext();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Pair not found\");\n\t}", "private void sortedSetExample() {\n\n Jedis jedis = JedisClient.getJedis();\n jedis.zadd(studentRankKey, 1137, \"Shanmuga Priya\");\n jedis.zadd(studentRankKey, 1118, \"Gomathi Jaya\");\n jedis.zadd(studentRankKey, 1134, \"Ramasubramani N\");\n\n // You can add items in one go using a map.\n Map<String, Double> scoresMap = new HashMap<>();\n scoresMap.put(\"Vivek\", 1159d);\n scoresMap.put(\"Vinoth\", 1157d);\n scoresMap.put(\"Mohammed Shafi\", 1163d);\n\n jedis.zadd(studentRankKey, scoresMap);\n\n Double ramScore = jedis.zscore(studentRankKey, \"Ramasubramani N\");\n\n System.out.println(\"Ram score : \" + ramScore);\n long count = jedis.zcard(studentRankKey);\n System.out.println(\"Number of elements : \" + count);\n\n Set<String> ascendingSet = jedis.zrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in ascending order. \" + ascendingSet);\n\n Set<String> descendingSet = jedis.zrevrange(studentRankKey, 0, -1);\n System.out.println(\"Marks in decending order. \" + descendingSet);\n\n System.out.println(\"********** Scores in ascending order **********\");\n Set<Tuple> tupleSetAsc = jedis.zrangeWithScores(studentRankKey, 0, -1);\n tupleSetAsc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n\n System.out.println(\"********** Scores in descending order **********\");\n Set<Tuple> tupleSetDesc = jedis.zrevrangeWithScores(studentRankKey, 0, -1);\n tupleSetDesc.forEach(tuple -> {\n System.out.println(tuple.getElement() + \" - \" + tuple.getScore());\n });\n \n jedis.close();\n }", "Set<Card> remove();", "public boolean remove(int val) {\n if(!map.containsKey(val))\n return false;\n HashSet<Integer> st=map.get(val);\n if(st.size()==1)\n map.remove(val);\n Integer ind=0;\n for(Integer a:st){\n ind=a;\n break;\n }\n st.remove(ind);\n li.set(ind,li.get(li.size()-1));\n st=map.get(li.get(li.size()-1));\n if(st!=null){\n st.remove(new Integer(li.size()-1));\n st.add(ind);\n }\n li.remove(li.size()-1);\n \n return true;\n \n }", "public boolean remove(int val) {\n if(!map.containsKey(val)){\n return false;\n }\n //swap val to the last position\n int lastIndex = nums.size()-1;\n if(map.get(val).contains(lastIndex)){\n nums.remove(lastIndex);\n if(map.get(val).size()==1){\n map.remove(val);\n }else{\n int index = map.get(val).indexOf(lastIndex);\n map.get(val).remove(index);\n }\n }else{\n //swap last element into valid position\n int index = map.get(val).size()-1;\n nums.set(map.get(val).get(index),nums.get(lastIndex));\n map.get(nums.get(lastIndex)).add(map.get(val).get(index));\n if(map.get(val).size()==1){\n map.remove(val);\n }else{\n map.get(val).remove(index);\n }\n\n //delete the last element;\n index = map.get(nums.get(lastIndex)).indexOf(lastIndex);\n map.get(nums.get(lastIndex)).remove(index);\n nums.remove(lastIndex);\n\n }\n return true;\n }", "public void delete(final Key key) {\n if (isEmpty()) return;\n int r = rank(key);\n if (r == size || (keys[r].compareTo(key) != 0)) {\n return;\n }\n for (int j = r; j < size - 1; j++) {\n keys[j] = keys[j + 1];\n values[j] = values[j + 1];\n }\n size--;\n keys[size] = null;\n values[size] = null;\n }", "public void remove(int key) {\n newkey = hashfunc(key);\n arr[newkey]= -1;\n \n }", "int rank(int[] array, int k, int start, int end) {\n\t\t// Partition array around an arbitrary pivot.\n\t\tint pivot = array[randomIntInRange(start, end)];\n\t\tPartitionResult partition = partition(array, start, end, pivot);\n\t\tint leftSize = partition.leftSize;\n\t\tint middleSize = partition.middleSize;\n\n\t\t// Search position of array\n\t\tif (k < leftSize) { // Rank k is on the left half\n\t\t\treturn rank(array, k, start, start + leftSize - 1);\n\t\t} else if (k < leftSize + middleSize) { // Rank k is in middle\n\t\t\treturn pivot; // middle is all pivot values\n\t\t} else { // Rank k is on right\n\t\t\treturn rank(array, k - leftSize - middleSize, start + leftSize\n\t\t\t\t\t+ middleSize, end);\n\t\t}\n\t}", "public void removeEdge(N startNode, N endNode)\r\n/* 80: */ {\r\n/* 81:151 */ assert (checkRep());\r\n/* 82:152 */ if ((contains(startNode)) && (((Map)this.map.get(startNode)).containsKey(endNode)))\r\n/* 83: */ {\r\n/* 84:153 */ ((Map)this.map.get(startNode)).remove(endNode);\r\n/* 85:154 */ ((Map)this.map.get(endNode)).remove(startNode);\r\n/* 86: */ }\r\n/* 87: */ }", "public T removeMin ();", "void remove (int offset, int size);", "public void remove(int key) {\n int hashedKey = hash(key);\n Entry entry = map.get(hashedKey);\n if (entry.key == -1) {\n return;\n } else if (entry.key == key) {\n if (entry.next != null) map.set(hashedKey, entry.next);\n else entry.key = -1;\n } else if (entry.next != null) {\n Entry pre = entry, cur = entry.next;\n while (cur.next != null && cur.key != key) {\n pre = cur;\n cur = cur.next;\n }\n if (cur.key == key) {\n pre.next = cur.next;\n }\n }\n }", "public void removeCutVertices() {\n boolean found;\n LinkedList<Integer> isolated = new LinkedList<>();\n do {\n found = false;\n for (Map.Entry<Integer, Set<Integer>> entry : adjacencyMap.entrySet()) {\n// System.out.println(\"adjacency print key: \" + entry.getKey() + \"value: \" +\n// entry.getValue() + \"set size: \" + entry.getValue().size());\n if (entry.getValue().size() == 1) {\n// System.out.println(\"found cut vertex\");\n found = true; // loop yielded a cut vertex\n // get the only vertex in the set\n for (Integer integer : entry.getValue()) {\n// System.out.println(\"started set iterator\" + integer);\n int removalSet = integer; // take the value of the set element\n // create a temp set\n Set<Integer> tempSet = adjacencyMap.get(removalSet);\n tempSet.remove(entry.getKey()); // remove the cut vertex from this set\n adjacencyMap.replace(removalSet, tempSet); // put the smaller set in place\n }\n isolated.add(entry.getKey());\n\n\n }\n\n }\n // remove isolated vertices\n for (Integer vert : isolated) {\n adjacencyMap.remove(vert);\n }\n isolated.clear();\n } while (found);\n }", "@Test(timeout=1000)\n\tpublic void testRemoveOverEnd(){\n\t\t//System.out.println(hashmap.hashFunction(s6));\n\t\tStudent[] array = new Student[7];\n\t\tarray[5] = s2; // This is the correct hash position of this student\n\t\tarray[6] = s4;\n\t\tarray[0] = s6;\n\t\tarray[1] = s5;\n\t\tarray[3] = s1;\n\t\tarray[4] = s3;\n\t\thashmap.setArray(array);\n\t\thashmap.remove(s2);\n\t\t\n\t\tassertFalse(\"Student 4 was not removed\", hashmap.contains(s2));\n\t\tassertEquals(\"Linear probing does not work correctly\", s5, hashmap.getArray()[6]);\n\t\tassertEquals(\"Linear probing does not work correctly\", null, hashmap.getArray()[1]);\n\t}", "public void deleteMin();", "public V removeKey( K key ) {\r\n\t\tint bucketIndex = getBucketIndex( key );\r\n\t\tMapNode<K, V> head = buckets.get(bucketIndex);\r\n\t\tMapNode<K, V> prev = null;\r\n\t\twhile( head != null ) {\r\n\t\t\tif( head.key.equals(key)) {\r\n\t\t\t\tsize--;\r\n\t\t\t\tif( prev == null ) {\r\n\t\t\t\t\t//sbse first key hi h thn second key\r\n\t\t\t\t\t//ko point kra dege arraylist m \r\n\t\t\t\t\tbuckets.set(bucketIndex, head.next );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tprev.next = head.next;\r\n\t\t\t\t}\r\n\t\t\t\treturn head.value;\r\n\t\t\t}\r\n\t\t\tprev = head;\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void remove(int key) {\n int index = keys.indexOf(key);\n if(index > 0) {\n keys.remove(index);\n values.remove(index);\n }\n }", "private int partition(int[] arr, int start, int end) {\n\t\tint bounary = arr[start];\r\n\t\twhile(start<end) {\r\n\t\t\twhile(start<end&&arr[end]>=bounary) {\r\n\t\t\t\tend--;\r\n\t\t\t}\r\n\t\t\tarr[start] = arr[end];\r\n\t\t\twhile(start<end&&arr[start]<=bounary) {\r\n\t\t\t\tstart++;\r\n\t\t\t}\r\n\t\t\tarr[end] = arr[start];\r\n\t\t}\r\n\t\tarr[start] = bounary;\r\n\t\treturn start;\r\n\t}", "@Override\n\tpublic V remove(K key) {\n\t\tint h = Math.abs(key.hashCode()) % nrb;// calculam hash-ul asociat cheii\n\n\t\tfor (int i = 0; i < b.get(h).getEntries().size(); i++) {\n\t\t\t// parcurgerea listei de elemente pentru a gasi cheia ceruta si\n\t\t\t// stergerea acesteiu din lista\n\t\t\tif (b.get(h).getEntries().get(i).getKey().equals(key)) {\n\t\t\t\tV x = b.get(h).getEntries().get(i).getValue();\n\t\t\t\tb.get(h).e.remove(i);\n\t\t\t\treturn x;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public void remove(K key);", "public abstract int deleteMin();", "public int[] maxSlidingWindow(int[] nums, int k) {\n if (nums == null || k <= 0) {\n return new int[0];\n }\n int len = nums.length;\n int []res=new int[len-k+1];\n int ri = 0;\n Deque<Integer> map= new ArrayDeque();\n for(int i=0;i<len;i++){\n // remove numbers out of range k\n if (map.size()>0 && map.peek() < i - k + 1) {\n map.poll();\n }\n // remove smaller numbers in k range as they are useless\n while(map.size()>0 && nums[map.peekLast()]<nums[i]){\n map.pollLast();\n }\n map.offerLast(i);\n if(i+1>=k){\n res[ri++]=nums[map.peek()];\n }\n }\n return res;\n }", "public boolean remove(int val) {\n if(!hm.containsKey(val)){\n return false;\n }\n else{//换位置,再删\n int val_index=hm.get(val);\n if(val_index<sub.size()-1){\n int lastElement=sub.get(sub.size()-1);\n sub.set(val_index,lastElement);\n hm.put(lastElement,val_index);\n }\n hm.remove(val);\n sub.remove(sub.size()-1);\n return true;\n }\n\n }", "public boolean remove(int val) {\n if (!set.containsKey(val)) return false;\n int lastElement = list.get(list.size() - 1);\n int idx = set.get(val);\n list.set(idx, lastElement);\n set.put(lastElement, idx);\n list.remove(list.size() - 1);\n set.remove(val);\n return true;\n }", "public void removeAllWithKey(k key) {\n\t\t\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\tNode<k,v> previous = null;\n\t\t\n\t\twhile (curr != null) {\n\t\t\tif (key.equals(curr.getKey())) { // check if keys match\n\t\t\t\n\t\t\t\tif (previous == null) {\n\t\t\t\t\tbuckets[b] = curr.getNext(); // if removing first item, set the next as first\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tprevious.setNext(curr.getNext()); // else set the previous' next to curr's next\n\t\t\t\t}\t\t\n\t\t\t} else {\n\t\t\t\tprevious = curr; // if match wasn't found, set previous to current before moving on\n\t\t\t}\n\t\t\tcurr = curr.getNext(); // move in SLL\n\t\t}\n\t}", "public abstract void removeFromMap();", "void remove(K key);", "void remove(K key);", "void remove(K key);", "public abstract boolean remove(int mediaID, Range range);", "public static void removeAllNumbersGreaterThan10(Set<Integer> set) {\n Iterator<Integer> iterator = set.iterator();\n while (iterator.hasNext()) {\n Integer integer = iterator.next();\n if (integer.intValue() > 10) {\n iterator.remove();\n }\n }\n }", "private void removeFromEnd(){\n ListNode tailItem = tail.prev;\n removeFromList(tailItem);\n \n //remove the entry from hashtable\n hashtable.remove(tailItem.key);\n --totalCacheItems;\n }", "public boolean remove(int val) {\n if(map.containsKey(val)){\n \tif(map.get(val).size() == 1){\n \t\tint last = list.get(list.size()-1);\n \t\tint mvindex = map.get(val).iterator().next();\n \t\tmap.get(last).remove(list.size()-1);\n \t\tmap.get(last).add(mvindex);\n \t\tlist.set(mvindex,list.get(list.size()-1));\n \t\tlist.remove(list.size()-1);\n \t\tmap.remove(val);\n \t}else {\n \t\tint last = list.get(list.size()-1);\n \t\tint mvindex = map.get(val).iterator().next();\n \t\tmap.get(last).remove(list.size()-1);\n \t\tmap.get(last).add(mvindex);\n \t\tlist.set(mvindex, list.get(list.size()-1));\n \t\tlist.remove(list.size()-1);\n \t\tif(last != val)\n \t\t\tmap.get(val).remove(mvindex);\n\t\t\t} \t\n \treturn true;\n }else {\n\t\t\treturn false;\n\t\t}\n }", "private void checkBound(int lowerBound, int upperBound) {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\n\t\twhile (i.hasNext()) {\n\t\t\tString s = (String) i.next();\n\t\t\tInteger df = (Integer) Utility.vocabHM.get(s);\n\n\t\t\tif ((df.intValue() <= lowerBound) || (df.intValue() >= upperBound))\n\t\t\t\ti.remove();\n\t\t}\n\t}", "void remove(int v){\n if(isEmpty()!=1){\n for(int i=0;i<size;i++){\n if(values[i]==v){\n int j = i;\n while((j+1)!=size){\n values[j] = values[j+1];\n j++;\n\n }\n values[j] = (-1);\n break;\n }\n }\n }\n }", "public boolean remove(int val) {\n if(map.containsKey(val)){\n int idx = map.get(val);\n if(idx == (validLength - 1)){\n validLength--;\n }\n else{\n int lastValue = set.get(--validLength);\n set.set(idx, lastValue);\n map.put(lastValue, idx);\n }\n map.remove(val);\n return true;\n }\n else{\n return false;\n }\n }", "void removeScans(int i);", "public abstract V remove(K key);", "public static int minPartition(int[] nums, int index, int firstSet, int secondSet,\r\n Map<String, Integer> lookUp) {\r\n\r\n if (index == nums.length) {\r\n return Math.abs(firstSet - secondSet);\r\n }\r\n\r\n String key = index + \"!\" + firstSet + secondSet;\r\n if (lookUp.containsKey(key)) {\r\n return lookUp.get(key);\r\n }\r\n int include = minPartition(nums, index + 1, firstSet + nums[index], secondSet, lookUp);\r\n\r\n int exclude = minPartition(nums, index + 1, firstSet, secondSet + nums[index], lookUp);\r\n\r\n lookUp.put(key, Integer.min(include, exclude));\r\n\r\n return lookUp.get(key);\r\n }", "private List<MyPair> sortAndTrim(int k, List<MyPair> neighbours) {\n\n for (int i = 0; i <= neighbours.size() - 2; i++) {\n for (int j = 0; j <= neighbours.size() - 2 - i; j++) {\n if (neighbours.get(j + 1).getValue() > neighbours.get(j).getValue()) {\n Collections.swap(neighbours, j, j + 1);\n }\n }\n }\n if (k != -1) {\n try {\n neighbours = neighbours.subList(0, k);\n } catch (IndexOutOfBoundsException e) {\n return neighbours;\n }\n }\n return neighbours;\n }", "@Override\n public V remove(K key) {\n// int index = h.apply(key, this.array.length);\n// LinkedList<Entry<K,V>> chain = this.array[index];\n// for (Entry<K,V> item : chain) {\n// if (item.key == key) {\n// chain.remove(item);\n// itemCount--;\n// return item.value;\n// }\n// }\n// return null; // Throw exception\n for (int i = 0; i < this.array.length; i++) {\n if (this.array[i] != null) {\n for (Entry<K,V> item : this.array[i]) {\n if (item.key == key) {\n this.array[i].remove(item);\n itemCount--;\n return item.value;\n }\n }\n }\n }\n return null;\n }", "protected abstract Set<String> _removeFromSet(String key, Collection<String> str);", "interface RemovableSet extends Set\n{\n void remove(String s);\n}", "public boolean remove(int val) {\n if (!map.containsKey(val) || map.get(val).size() == 0) {\n return false;\n }\n Integer next = map.get(val).iterator().next();\n map.get(val).remove(next);\n int last = list.get(list.size()-1);\n list.set(next, last);\n map.get(last).add(next);\n map.get(last).remove(list.size()-1);\n\n list.remove(list.size()-1);\n size--;\n return true;\n }", "public boolean remove(int val) {\n if(!map.containsKey(val)) return false;\n int index = map.get(val);\n int size = list.size();\n int tmp = list.get(size-1);\n list.set(size-1, list.get(index));\n list.set(index, tmp);\n list.remove(size-1);\n map.put(tmp, index);\n map.remove(val);\n return true;\n }", "int remove(int idx);", "V remove(final K key);", "public boolean remove(int val) {\n \n if (!numToIdx.containsKey(val) || numToIdx.get(val).size() == 0) return false;\n \n int removeIdx = this.numToIdx.get(val).iterator().next();\n \n this.numToIdx.get(val).remove(removeIdx);\n \n int last = this.nums.get(this.nums.size() - 1);\n this.nums.set(removeIdx, last);\n this.numToIdx.get(last).add(removeIdx);\n this.numToIdx.get(last).remove(this.nums.size() - 1);\n \n this.nums.remove(this.nums.size() - 1);\n \n return true;\n \n }", "public static int partition(int[] data, int start, int end) {\n int pivotIndex = (int) (Math.random()*(end - start) + start);\n int pivot = data[pivotIndex];\n int low = start + 1;\n int high = end;\n data[pivotIndex] = data[0];//swap pivot and index\n data[0] = pivot;//swap pivot and index\n while(low <= high){//while still within bounds\n if(data[low] > pivot){//if less than the pivot\n swap(data, low, high);\n high--;\n }else{\n low++;//start moves over by one\n }\n }\n swap(data, start, high);\n return high;\n }", "public void remove(int key) {\n store[key] = -1; // If the key is removed, the value of that key is replaced with -1, \n \t\t\t\t// that the item doesn't exist because hashmap requires removal of keys.\n }", "private static void removeValue(ISet set, Scanner in)\n {\n if (set.getSize() == 0)\n System.out.println(\"Can't remove from an empty set!\");\n else {\n int pos;\n boolean valid;\n do {\n System.out.println(\"What position should be removed from the set?\");\n pos = Integer.parseInt(in.nextLine());\n valid = (pos >= 0 && pos < set.getSize());\n if (!valid)\n System.out.println(\"That's not a valid position\");\n } while (!valid);\n set.removePos(pos);\n }\n }", "public void remove(String key) {\n \ttmp = getNode(key);\n \tif (tmp == null) {\n \t\treturn;\n \t} else {\n \t\tif (first.getKey() == key) {\n \t\t\tfirst = first.getNext();\n \t\t\tif (first == null) {\n \t\t\t\tlen--;\n \t\t\t\treturn;\n \t\t\t}\n \t\t\tfirst.setPrev(null);\n \t\t} else if (last.getKey() == key) {\n \t\t\tlast = last.getPrev();\n \t\t\tlast.setNext(null);\n \t\t\tif (last.getKey() == first.getKey()) {\n \t\t\t\tlast = null;\n \t\t\t}\n \t\t} else {\n \t\t\tNode tmp1 = tmp.getNext();\n \t\t\tNode tmp2 = tmp.getPrev();\n \t\t\ttmp1.setPrev(tmp2);\n \t\t\ttmp2.setNext(tmp1);\n \t\t}\n \tlen--;\n \t}\n }", "public void removeArc(T start, T end) {\n\t\tSet<T> adjacents=arcs.get(start);\n\t\tadjacents.remove(end);\n\t}", "public boolean remove(int val) {\n if (map.containsKey(val)) {\n ArrayList<Integer> l = map.get(val);\n int idx = l.get(l.size()-1);\n l.remove(l.size()-1);\n if (l.isEmpty()) {\n map.remove(val);\n }\n if (idx < arr.size()-1) {\n arr.get(idx)[0] = arr.get(arr.size()-1)[0];\n arr.get(idx)[1] = arr.get(arr.size()-1)[1];\n map.get(arr.get(idx)[0]).set(arr.get(idx)[1], idx);\n }\n arr.remove(arr.size()-1);\n return true;\n } else {\n return false;\n }\n }", "public void delete(String key){\r\n\t\tint hash = hash(key);\r\n for(int i = 0; i < M; i++){\r\n if(hash + i < M){\r\n if(keys[hash + i] != null && keys[hash + i].equals(key)){\r\n remove(hash + i);\r\n N--;\r\n break;\r\n }\r\n }else{\r\n if(keys[hash + i - M] != null && keys[hash + i - M].equals(key)){\r\n remove(hash + i - M);\r\n N--;\r\n break;\r\n }\r\n }\r\n\t\t}\r\n }" ]
[ "0.6148629", "0.5900942", "0.5371412", "0.5350326", "0.5267349", "0.51950985", "0.5187792", "0.51486397", "0.5142088", "0.5089478", "0.50857335", "0.50838256", "0.50747436", "0.50498295", "0.5036641", "0.5016582", "0.50037205", "0.49988455", "0.4982868", "0.4973253", "0.49433932", "0.4941954", "0.49409723", "0.48911914", "0.4873917", "0.4854888", "0.48449817", "0.48428407", "0.4833722", "0.48288763", "0.48288763", "0.48288763", "0.4821938", "0.4820242", "0.4813489", "0.48098364", "0.48032272", "0.4796805", "0.47912905", "0.47911158", "0.47717446", "0.47709918", "0.475614", "0.47548825", "0.47386578", "0.47315133", "0.47253668", "0.4712047", "0.47114983", "0.47056466", "0.47040683", "0.46952838", "0.46943444", "0.4689621", "0.46893078", "0.4685693", "0.46853468", "0.46744496", "0.4668929", "0.4650564", "0.4643355", "0.46410462", "0.4636942", "0.4634067", "0.46234182", "0.46232054", "0.46194008", "0.46172068", "0.4614343", "0.46125874", "0.4606355", "0.46061218", "0.46061218", "0.46061218", "0.45954663", "0.45944795", "0.45892873", "0.45876887", "0.45869994", "0.4580535", "0.45760363", "0.45739496", "0.4572525", "0.45707226", "0.4569558", "0.45674983", "0.45645913", "0.4560129", "0.45505795", "0.45439512", "0.4543707", "0.4542618", "0.45393452", "0.45379388", "0.453037", "0.4528123", "0.45222652", "0.4521258", "0.4514355", "0.4511642" ]
0.63224405
0
Get the length of a sorted set
public Long zcount(final String key, final double min, final double max) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.zcount(key, min, max); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size() {\n return set.size();\n }", "public int size(){\n return set.length;\n }", "public int size() {\r\n\t\treturn set.size();\r\n\t}", "public int size() {\n\t\treturn set.size();\n\t}", "public int size() {\n \tint currentSize = 0;\n \t\n \tIterator<E> iterateSet = this.iterator();\n \t\n \t// calculates number of elements in this set\n \twhile(iterateSet.hasNext()) {\n \t\titerateSet.next();\n \t\tcurrentSize++;\t\t\n \t}\n \t\n \treturn currentSize;\n \t\n }", "@Override\n public int size() {\n return theSet.size();\n }", "@Override\r\n\tpublic int size() {\n\t\treturn set.size();\r\n\t}", "@Override\r\n\tpublic int size() {\r\n\t\treturn keySet().size();\r\n\t}", "public static long size(UIDSet[] uidset) {\n\tlong count = 0;\n\n\tif (uidset != null)\n\t for (UIDSet u : uidset)\n\t\tcount += u.size();\n\t\n\treturn count;\n }", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "public int size(){\n\t\tListMapEntry temp = first;\n\t\tint c=0;\n\t\twhile(temp!=null){\n\t\t\tc++;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t\treturn c;\n\t}", "private static long size(UIDSet[] uidset, long uidmax) {\n\tlong count = 0;\n\n\tif (uidset != null)\n\t for (UIDSet u : uidset) {\n\t\tif (uidmax < 0)\n\t\t count += u.size();\n\t\telse if (u.start <= uidmax) {\n\t\t if (u.end < uidmax)\n\t\t\tcount += u.end - u.start + 1;\n\t\t else\n\t\t\tcount += uidmax - u.start + 1;\n\t\t}\n\t }\n\t\n\treturn count;\n }", "public int size(K lo, K hi);", "public int size() {\n return pointsSet.size();\n }", "public int getSize()\n\t{\n\t\t// returns n, the number of strings in the list: O(n).\n\t\tint count = 0;\n \t\tnode p = head; \n\t\twhile (p != null)\n \t\t{\n \t\tcount ++;\n \t\tp = p.next;\n \t\t}\n \t\treturn count;\n\t}", "public int sizeOfSet( T obj )\n {\n \tNode temp = nodes.get(obj);\n \tif(temp!=null){\n \t\treturn getRoot(temp).size;\n \t}\n \t\n // If here, no such such data object; throw exception.\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj );\n }", "long size();", "long size();", "long size();", "long size();", "public int size() {\n\t\treturn nvPairs.size() >> 1;\n\t}", "public int sizeOf();", "public int size() {\n\t\tint result = 0;\n\t\tfor (E val: this)\n\t\t\tresult++;\n\t\treturn result;\n\t}", "@Override\n\tpublic int size() {\n\t\tint tamano = 0;\n\t\tint i = 0;\n\t\tIterator it = tabla.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t\ttamano += tabla.get(i).keySet().size();\n\t\t\ti++;\n\t\t}\n\t\treturn tamano;\n\t}", "@Override\n\tpublic int size() {\n\t\treturn util.iterator.IteratorUtilities.size(iterator());\n\t}", "Integer size();", "Integer size();", "public int size()\r\n/* 106: */ {\r\n/* 107:194 */ assert (checkRep());\r\n/* 108:195 */ return this.map.keySet().size();\r\n/* 109: */ }", "public final int size() {\n int size = 0;\n final Iterator iterator = this.iterator();\n while (iterator.hasNext()) {\n size++;\n iterator.next();\n }\n return size;\n }", "public int size() {\n return pointSet.size();\n }", "public int size() {\n if (first.p == null) return 0;\n int counter = 1;\n Node n = first;\n while (!n.next.equals(first) && counter != 0) {\n counter++;\n n = n.next;\n }\n return counter;\n }", "public PrimitiveVS<Integer> size() {\n return keys.size();\n }", "public int getNumberOfSets();", "public int getLength() {\n return collection.size();\n }", "public int size()\n {\n \tDNode<E> temp=first;\n \tint count=0;\n \twhile(temp!=null)\t\t//Iterating till the end of the list\n \t{\n \t\tcount++;\n \t\ttemp=temp.next;\n \t}\n \treturn count;\n }", "public int getLength()\n\t{\n\t\tDNode tem=first;\n\t\tint length=0;\n\t\twhile(tem.nextDNode!=null)\n\t\t{\n\t\t\tlength=length+1;\n\t\t\ttem=tem.nextDNode;\n\t\t}\n\t\tif(first!=null)\n\t\t\tlength=length+1;\n\t\treturn length;\n\t}", "public int getNumBitsSet()\n \t{\n \t\tint count = 0;\n \n \t\tfor (int index = getLength() - 1; index >= 0; index--)\n \t\t{\n \t\t\tif (isSet(index))\n \t\t\t{\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}\n \n \t\treturn count;\n \t}", "public int size() {\n\t\tTree<K, V> t = this;\n\t\tint size = 1;\n\t\treturn size(t, size);\n\t}", "public int numberOfEntries();", "public int count () throws IOException {\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tinit();\n\t\twhile(hasNext()) {\n\t\t\tElement el = nextElement();\n\t\t\tint hash = el.GetHash();\n\t\t\tint pos = locate (list, hash);\n\t\t\tif ((pos == list.size()) || (list.get(pos) != hash)) {\n\t\t\t\tlist.add(pos, hash);\n\t\t\t}\n\t\t\t/*for (i=0; i<list.size() && list.get(i)<hash; i++) {}\n\t\t\t\tif ((i==list.size()) || (list.get(i) != el.GetHash())) {\n\t\t\t\t\tlist.add(i, hash);\n\t\t\t\t}*/\n\t\t}\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "public long size();", "public int getLength(){\n return keys.length;\n }", "public long size() {\n\treturn end - start + 1;\n }", "public int size() {\n return keys.length;\n }", "public int size() \r\n\t{\r\n\t\treturn getCounter();\r\n\t}", "public int length(){\n\t\tint length = 0;\n\t\tListNode temp = firstNode;\n\t\twhile(temp!=null){\n\t\t\tlength++;\n\t\t\ttemp = temp.getNextNode();\n\t\t}\n\n\t\treturn length;\n\t}", "Long getNumberOfElement();", "public static int getNumberOfStrings(){\n\t\treturn setOfStrings.length;\n\t}", "public int getLength() {\r\n int length = 0;\r\n \r\n Iterator it = collection.iterator();\r\n \r\n while(it.hasNext()) {\r\n length += ((Chunk)it.next()).getSize();\r\n }\r\n \r\n return length;\r\n }", "public int size()\n {\n Node n = head.getNext();\n int count = 0;\n while(n != null)\n {\n count++; \n n = n.getNext();\n }\n return count;\n }", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();" ]
[ "0.7076491", "0.70443326", "0.697208", "0.6948037", "0.6850934", "0.6719386", "0.66714764", "0.6484127", "0.64429575", "0.6382298", "0.6268446", "0.6263668", "0.61446875", "0.60310435", "0.6029307", "0.6028359", "0.60275143", "0.60275143", "0.60275143", "0.60275143", "0.6010184", "0.6006924", "0.6004825", "0.5999154", "0.5964795", "0.59501505", "0.59501505", "0.59448105", "0.5940291", "0.5933799", "0.5932502", "0.59228414", "0.59171426", "0.59029293", "0.5900543", "0.5894492", "0.5892867", "0.5884036", "0.58802986", "0.58607036", "0.58536774", "0.584811", "0.58465034", "0.5839589", "0.58370906", "0.58122385", "0.57937866", "0.57933336", "0.5786625", "0.5782185", "0.5776642", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803", "0.57737803" ]
0.0
-1
Get the number of members in a sorted set
public Long zcard(final String key) { Jedis jedis = null; try { jedis = jedisPool.getResource(); return jedis.zcard(key); } finally { if (jedis != null) { jedis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size() {\n return set.size();\n }", "public int size() {\r\n\t\treturn set.size();\r\n\t}", "public int size() {\n\t\treturn set.size();\n\t}", "public int size() {\n \tint currentSize = 0;\n \t\n \tIterator<E> iterateSet = this.iterator();\n \t\n \t// calculates number of elements in this set\n \twhile(iterateSet.hasNext()) {\n \t\titerateSet.next();\n \t\tcurrentSize++;\t\t\n \t}\n \t\n \treturn currentSize;\n \t\n }", "int getUniqueNumbersCount();", "@Override\n public int size() {\n return theSet.size();\n }", "public int size(){\n return set.length;\n }", "@Override\r\n\tpublic int size() {\n\t\treturn set.size();\r\n\t}", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "public int size(){\n\t\tListMapEntry temp = first;\n\t\tint c=0;\n\t\twhile(temp!=null){\n\t\t\tc++;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t\treturn c;\n\t}", "int getGroupCount();", "public static long size(UIDSet[] uidset) {\n\tlong count = 0;\n\n\tif (uidset != null)\n\t for (UIDSet u : uidset)\n\t\tcount += u.size();\n\t\n\treturn count;\n }", "public int countGroups()\n/* 25: */ {\n/* 26:22 */ return this.members.size();\n/* 27: */ }", "public int count () {\n return member_id_list.length;\r\n }", "private static long size(UIDSet[] uidset, long uidmax) {\n\tlong count = 0;\n\n\tif (uidset != null)\n\t for (UIDSet u : uidset) {\n\t\tif (uidmax < 0)\n\t\t count += u.size();\n\t\telse if (u.start <= uidmax) {\n\t\t if (u.end < uidmax)\n\t\t\tcount += u.end - u.start + 1;\n\t\t else\n\t\t\tcount += uidmax - u.start + 1;\n\t\t}\n\t }\n\t\n\treturn count;\n }", "int getIdsCount();", "public int count () throws IOException {\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tinit();\n\t\twhile(hasNext()) {\n\t\t\tElement el = nextElement();\n\t\t\tint hash = el.GetHash();\n\t\t\tint pos = locate (list, hash);\n\t\t\tif ((pos == list.size()) || (list.get(pos) != hash)) {\n\t\t\t\tlist.add(pos, hash);\n\t\t\t}\n\t\t\t/*for (i=0; i<list.size() && list.get(i)<hash; i++) {}\n\t\t\t\tif ((i==list.size()) || (list.get(i) != el.GetHash())) {\n\t\t\t\t\tlist.add(i, hash);\n\t\t\t\t}*/\n\t\t}\n\t\treturn list.size();\n\t}", "public int getNumberOfSets();", "int getInCount();", "public int numberOfEntries();", "int getListCount();", "public int sizeOfSet( T obj )\n {\n \tNode temp = nodes.get(obj);\n \tif(temp!=null){\n \t\treturn getRoot(temp).size;\n \t}\n \t\n // If here, no such such data object; throw exception.\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj );\n }", "int getTotalElements();", "public int size() {\n if (first.p == null) return 0;\n int counter = 1;\n Node n = first;\n while (!n.next.equals(first) && counter != 0) {\n counter++;\n n = n.next;\n }\n return counter;\n }", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "public long numCandidates();", "int getEntryCount();", "int getParticipantsCount();", "int getParticipantsCount();", "public int sizeOfMemberArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MEMBER$14);\n }\n }", "Long getNumberOfElement();", "@Override\r\n\tpublic int size() {\r\n\t\treturn keySet().size();\r\n\t}", "public int getNumberOfEntries();", "public static void main(String[] args) {\n\n HashSet <Integer> numbers = new HashSet <>();\n numbers.add(1);\n numbers.add(2);\n numbers.add(1);\n System.out.println(numbers.size());\n\n }", "int getBlockNumbersCount();", "public int count() {\n\t\t\tassert wellFormed() : \"invariant false on entry to count()\";\n\n\t\t\tint count = 0;\n\t\t\tfor(Card p = this.first; p != null; p = p.next) {\n\t\t\t\t++count;\n\t\t\t}\n\n\t\t\treturn count; // TODO\n\t\t}", "@Override\n\tpublic int size() {\n\t\treturn util.iterator.IteratorUtilities.size(iterator());\n\t}", "int numberOfCandidates();", "public int size() {\n return pointsSet.size();\n }", "@Override\n\tpublic int size() {\n\t\tint tamano = 0;\n\t\tint i = 0;\n\t\tIterator it = tabla.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t\ttamano += tabla.get(i).keySet().size();\n\t\t\ti++;\n\t\t}\n\t\treturn tamano;\n\t}", "int getAndSequenceGroupsCount();", "public int size() {\n\t\tint result = 0;\n\t\tfor (E val: this)\n\t\t\tresult++;\n\t\treturn result;\n\t}", "public int getBookCount() {\n \treturn set.size();\n }", "@Override\n public int size() {\n int count = 0;\n for (Counter c : map.values())\n count += c.value();\n return count;\n }", "public int size() {\n\t\treturn nvPairs.size() >> 1;\n\t}", "public int getNumBitsSet()\n \t{\n \t\tint count = 0;\n \n \t\tfor (int index = getLength() - 1; index >= 0; index--)\n \t\t{\n \t\t\tif (isSet(index))\n \t\t\t{\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}\n \n \t\treturn count;\n \t}", "int getBlockNumsCount();", "int getBlockNumsCount();", "Object getNumberMatched();", "public int getNumberOfEntries() ;", "public static int getNrAtoms(Structure s){\n \n int nrAtoms = 0;\n \n Iterator<Group> iter = new GroupIterator(s);\n \n while ( iter.hasNext()){\n Group g = (Group) iter.next();\n nrAtoms += g.size();\n }\n \n return nrAtoms;\n }", "public int numRanked() {\n\t\tint count = 0;\n\t\tfor(int index = 0; index < NUM_DECADES; index++) {\n\t\t\tif(rank.get(index) != UNRANKED) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "public int size() {\n\t\tint count = 0;\n\t\tfor (int i = 0;i < contains.length;i++) {\n\t\t\tif (contains[i]) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "Integer countAll();", "public static int hashCodeForSet(Collection set) {\n/* 122 */ if (set == null) {\n/* 123 */ return 0;\n/* */ }\n/* 125 */ int hashCode = 0;\n/* 126 */ Iterator it = set.iterator();\n/* 127 */ Object obj = null;\n/* */ \n/* 129 */ while (it.hasNext()) {\n/* 130 */ obj = it.next();\n/* 131 */ if (obj != null) {\n/* 132 */ hashCode += obj.hashCode();\n/* */ }\n/* */ } \n/* 135 */ return hashCode;\n/* */ }", "public int size()\r\n/* 106: */ {\r\n/* 107:194 */ assert (checkRep());\r\n/* 108:195 */ return this.map.keySet().size();\r\n/* 109: */ }", "int getNumItems();", "int getFriendListCount();", "int getFriendListCount();", "int getValuesCount();", "int findCount();", "long count(Collection<? extends Object> values);", "static public int numberOfPersons() {\n return personMap.size();\n }", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "public static int getMembers() {\n\t\treturn members; \n\t}", "public int getNumberOfElements();", "public int size()\n {\n \tDNode<E> temp=first;\n \tint count=0;\n \twhile(temp!=null)\t\t//Iterating till the end of the list\n \t{\n \t\tcount++;\n \t\ttemp=temp.next;\n \t}\n \treturn count;\n }", "int getIndexesCount();", "public int sizeOf();", "public int size() {\n return pointSet.size();\n }", "public int getSize()\n\t{\n\t\t// returns n, the number of strings in the list: O(n).\n\t\tint count = 0;\n \t\tnode p = head; \n\t\twhile (p != null)\n \t\t{\n \t\tcount ++;\n \t\tp = p.next;\n \t\t}\n \t\treturn count;\n\t}", "default int getMemberCount() {\r\n return Range.UNINITALIZED;\r\n }", "public int size() { return mMembers!=null?mMembers.size():0; }", "@Override\r\n\tpublic int memberCount() {\n\t\treturn sqlSession.selectOne(NAMESPACE + \".member_count_user\");\r\n\t}", "public int getSetCount() {\r\n\r\n\t\tString sql = \"SELECT count(*) from GAME_SET\";\r\n\r\n\t\tCursor cursor = getDatabase().rawQuery(sql, null);\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\treturn cursor.getInt(0);\r\n\t\t} else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public int sizeOf() {\n BookList target = this;\n int count = 0;\n if (isEmpty()){\n count= 0;\n }\n else if (!isEmpty()){\n count = 1;\n while (target.next != null){\n target = target.next;\n if(target.next == null){\n }\n \n ++count;\n }\n \n }\n\t\treturn count;\n\t}", "int getNodesCount();", "int getNodesCount();", "public static int count_non_empty(List nodeset) {\n if ((nodeset == null) || (nodeset.size() == 0)) {\n return 0;\n }\n\n int count = 0;\n Iterator iterator = nodeset.iterator();\n\n while (iterator.hasNext()) {\n String value = iterator.next().toString();\n\n if (value.length() > 0) {\n count++;\n }\n }\n\n return count;\n }", "public int numberOfOccorrence();", "public int size() {\r\n\t\t\tint size = 0;\r\n\t\t\tListNode counter = header;\r\n\t\t\twhile (counter != null) {\r\n\t\t\t\tsize++;\r\n\t\t\t\tcounter = counter.next;\r\n\t\t\t}\r\n\t\t\treturn size;\r\n\t\t}", "int getMissingCount();", "int getPartsCount();", "int getPartsCount();", "public int numSets()\n {\n return numSets;\n }", "public int size() { return _byHashCode.size(); }", "public int numPlayers(){\n return this.members.size();\n }", "public int count() {\n\t\tint q = 0;\n\t\tfor(int i = 0; i < list.length; i++) if (list[i] != null) q++;\n\t\treturn q;\n\t\t\n\t}", "public int size() \r\n\t{\r\n\t\treturn getCounter();\r\n\t}", "public abstract Integer getNumberOfElements();", "public int getMembers() {\n\t\treturn members;\n\t}", "int getOtherIdsCount();", "int findAllCount() ;", "int getFriendCount();", "int getFriendCount();", "public int size(K lo, K hi);", "public int getNumPersons() {\r\n\t\treturn this.persons.size();\r\n\t}", "public int size() {\n\t\tTree<K, V> t = this;\n\t\tint size = 1;\n\t\treturn size(t, size);\n\t}", "public final int size() {\n int size = 0;\n final Iterator iterator = this.iterator();\n while (iterator.hasNext()) {\n size++;\n iterator.next();\n }\n return size;\n }", "Integer size();", "Integer size();" ]
[ "0.6872212", "0.6775652", "0.67554027", "0.6689856", "0.6677726", "0.6602232", "0.65995175", "0.6565193", "0.65193105", "0.6505947", "0.6491354", "0.6478799", "0.64679533", "0.6439076", "0.63814884", "0.63759327", "0.6361379", "0.6346692", "0.63347775", "0.63326824", "0.6269598", "0.6248875", "0.6246725", "0.62419194", "0.62261987", "0.62058765", "0.61905", "0.6186592", "0.6186592", "0.6183925", "0.6169832", "0.6138355", "0.61349916", "0.6099208", "0.6089917", "0.6087886", "0.60713387", "0.6068287", "0.6038848", "0.6035754", "0.6034665", "0.6032697", "0.60282755", "0.60232186", "0.6008088", "0.60004824", "0.5999081", "0.5999081", "0.5995817", "0.59945214", "0.599398", "0.59862924", "0.59810466", "0.5970509", "0.5968803", "0.59663755", "0.5962653", "0.5951116", "0.5951116", "0.5948058", "0.5947532", "0.59470725", "0.59452885", "0.59440273", "0.59426427", "0.5932674", "0.59326524", "0.59268105", "0.5921777", "0.5916987", "0.59117186", "0.5910913", "0.5908191", "0.5902947", "0.5902533", "0.5895917", "0.58951133", "0.58951133", "0.5894343", "0.58940643", "0.5892418", "0.58872294", "0.58863467", "0.58863467", "0.5883457", "0.58813363", "0.58775514", "0.58752346", "0.58716017", "0.5868236", "0.5857875", "0.58564055", "0.58545434", "0.5851673", "0.5851673", "0.58480203", "0.58452356", "0.5842459", "0.58391714", "0.5834723", "0.5834723" ]
0.0
-1
This method takes in the file name and outputs an arraylist containing all the raw data as Ice objects
public static ArrayList<Ice> dataFromFile(String fileName) throws IOException { FileReader fr = new FileReader(fileName); BufferedReader br = new BufferedReader(fr); String line = ""; ArrayList<Ice> iceData = new ArrayList<>(); while ((line=br.readLine()) != null){ if (Character.isDigit(line.charAt(0))) {//this is to exclude the first line containing headings Ice datapoint = Ice.parseData(line);//creates an ice object containing all the data required iceData.add(datapoint);//appends the ice object to the arraylist } } return iceData;//returns the arraylist containing raw data of ice objects }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<?> getItems(String filename){\n \n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream ois = new ObjectInputStream(fis);\n items = (ArrayList<?>) ois.readObject();\n ois.close();\n \n \n }catch(IOException e){\n System.out.println(e);\n }catch(ClassNotFoundException e){\n System.out.println(e);\n }\n \n return items;\n }", "public ArrayList<Event> readSerFile() {\n\n ArrayList<Event> events = new ArrayList<>();\n try {\n FileInputStream file = new FileInputStream(filename);\n ObjectInputStream storedEvents = new ObjectInputStream(file);\n\n events = (ArrayList<Event>) storedEvents.readObject();\n\n storedEvents.close();\n file.close();\n\n return events;\n\n } catch (FileNotFoundException e) {\n System.out.println(filename + \" is missing\");\n } catch (IOException | ClassNotFoundException e) {\n return events;\n }\n\n return events;\n }", "public static void main(String[] args) throws IOException, ClassNotFoundException {\n FileInputStream fis =new FileInputStream(\"test.txt\");\n BufferedInputStream bis=new BufferedInputStream(fis);\n ObjectInputStream ois=new ObjectInputStream(bis);\n ArrayList<Goods> list = (ArrayList<Goods>)ois.readObject();\n for (int i = 0; i < list.size(); i++) {\n Goods goods = list.get(i);\n System.out.println(goods);\n }\n\n // Goods goods= (Goods)ois.readObject();\n // System.out.println(goods);\n ois.close();\n\n }", "@Override\r\n\tpublic List<IceCreamBean> viewIceCreamDetails() {\n\t\ttry {\r\n\t\t\tois = new ObjectInputStream(new FileInputStream(\"iceCream.txt\"));\r\n\t\t\ticeCream = (List<IceCreamBean>) ois.readObject();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn iceCream;\r\n\t}", "public ArrayList<String> readFile() {\n data = new ArrayList<>();\n String line = \"\";\n boolean EOF = false;\n\n try {\n do {\n line = input.readLine();\n if(line == null) {\n EOF = true;\n } else {\n data.add(line);\n }\n } while(!EOF);\n } catch(IOException io) {\n System.out.println(\"Error encountered.\");\n }\n return data;\n }", "public List<Stock> readFile() throws IOException\n {\n \t //System.out.println(\"hhh\");\n \t //List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>() {});\n \t \n \t List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>(){});\n \t\n\t\treturn listStock;\n }", "public static < E > ArrayList<E> readArrayList () throws IOException, ClassNotFoundException{\n ArrayList<E> outputArrayList = new ArrayList<E>();\n // åbn inputstreams på al.ser\n FileInputStream fi = new FileInputStream(\"al.ser\");\n ObjectInputStream oi = new ObjectInputStream(fi);\n // cast til arraylist af generisk type\n outputArrayList = (ArrayList<E>) oi.readObject();\n // luk inputstreams og returner\n oi.close();\n fi.close();\n return outputArrayList;\n }", "public static ArrayList<Object> deserialize() throws IOException, ClassNotFoundException {\n FileInputStream fileIn = new FileInputStream(\"tmp/data.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n ArrayList<Object> items = new ArrayList<>();\n try {\n while (true){\n items.add(in.readObject());\n }\n }\n catch (OptionalDataException e){\n if(!e.eof){\n throw e;\n }\n }\n catch (EOFException e){\n in.close();\n fileIn.close();\n }\n System.out.println(\"okunan dosya: \" + items);\n return items;\n }", "public abstract List<EXIFContent> parse();", "public ArrayList<String> read_file() {\n prog = new ArrayList<>();\n //Read file\n try {\n\n File myObj = new File(\"in3.txt\");\n Scanner myReader = new Scanner(myObj);\n while (myReader.hasNextLine()) {\n String data = myReader.nextLine();\n if (data.charAt(0) != '.') {\n// System.out.println(data);\n prog.add(data);\n } else {\n continue;\n// data = data.substring(1);\n// System.out.println(\"{{ \" + data + \" }}\");\n }\n\n }\n myReader.close();\n\n } catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n\n return prog;\n }", "public static ArrayList<Player> readPlayersFromFile() \r\n {\r\n //Inisialize Arraylist \r\n ArrayList<Player> players = new ArrayList<Player>();\r\n //Inisialize FileInputStream\r\n FileInputStream fileIn = null;\r\n\r\n try \r\n {\r\n //Establish connection to file \r\n fileIn = new FileInputStream(\"players.txt\");\r\n while (true) \r\n {\r\n //Create an ObjectOutputStream \r\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\r\n //Read a Player object from the file and add it to the ArrayList\r\n players.add((Player)objectIn.readObject());\r\n }//end while\r\n\r\n }\r\n catch (Exception e)\r\n {\r\n //System.out.println(e);\r\n }\r\n finally \r\n {\r\n usernamesTaken.clear();\r\n\r\n for(int i = 0; i < players.size(); i++)\r\n {\r\n usernamesTaken.add(players.get(i).getUsername());\r\n }//end for\r\n\r\n //Try to close the file and return the ArrayList\r\n try\r\n {\r\n //Check if the end of the file is reached\r\n if (fileIn != null)\r\n { \r\n //Close the file \r\n fileIn.close();\r\n //Return the ArrayList of players\r\n return players;\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n //System.out.println(e)\r\n }//end try \r\n\r\n //Return null if there is an excetion \r\n return null;\r\n }//end try \r\n }", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "private ObservableList<Saucer> loadSaucers(){\r\n try {\r\n File file = new File(\"src/data/saucers.txt\");\r\n FileInputStream fis = new FileInputStream(file);\r\n ObjectInputStream input = new ObjectInputStream(fis);\r\n List<Saucer> list = (List<Saucer>) input.readObject();\r\n ObservableList<Saucer> saucers = FXCollections.observableArrayList(list);\r\n\r\n return saucers;\r\n } catch (Exception ex){\r\n ex.printStackTrace();\r\n\r\n return null;\r\n }\r\n }", "List<T> read();", "protected List<String> readFile()\n {\n // Base size 620 for Google KML icons. This might be slow for larger\n // sets.\n List<String> lines = New.list(620);\n try (BufferedReader reader = new BufferedReader(\n new InputStreamReader(getClass().getResourceAsStream(myImageList), StringUtilities.DEFAULT_CHARSET)))\n {\n for (String line = reader.readLine(); line != null; line = reader.readLine())\n {\n lines.add(line);\n }\n }\n catch (IOException e)\n {\n LOGGER.warn(e.getMessage());\n }\n return lines;\n }", "private static Wine[] read() {\r\n\t\t// We can add files we would like to parse in the following array. We use an array list\r\n\t\t// because it allows us to add dynamically.\r\n\t\tString[] file_adr = { \"data/winemag-data_first150k.txt\", \"data/winemag-data-130k-v2.csv\" };\r\n\t\tArrayList<Wine> arr_list = new ArrayList<Wine>();\r\n\t\t\r\n\t\tint k = 0;\r\n\t\twhile (k < file_adr.length) {\r\n\t\t\tboolean flag = false;\r\n\t\t\tif (file_adr[k].endsWith(\".csv\")) {\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t\tFile f = new File(file_adr[k]);\r\n\t\t\tScanner sc = null;\r\n\t\t\ttry {\r\n\t\t\t\tsc = new Scanner(f, \"UTF-8\");\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tsc.nextLine();\r\n\t\t\tInteger id_count = 0;\r\n\t\t\tif(!flag) {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 10) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString variety = st[count+8];\r\n\t\t\t\t\tString winery = st[count+9];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\t\"\",\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t//System.out.println(arr_list.size());\r\n\t\t\t\t\tid_count = arr_list.size();\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\t//System.out.println(st[0]);\r\n\t\t\t\t\t/*if(Integer.parseInt(st[0]) == 30350) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 12) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString taster_name = st[count+8];\r\n\t\t\t\t\tString taster_handle = st[count+9];\r\n\t\t\t\t\tString variety = st[count+10];\r\n\t\t\t\t\tString winery = st[count+11];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\ttaster_name,\r\n\t\t\t\t\t\t\ttaster_handle\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// We no longer need an array list. we have our size required. Put into an array.\r\n\t\tWine[] array_wines = new Wine[arr_list.size()];\r\n\t\tarray_wines = arr_list.toArray(array_wines);\r\n\t\t\r\n\t\treturn array_wines;\r\n\t\r\n\t}", "public static List<Contract> readFromFile(String filename) {\n List<Contract> contracts = new ArrayList<>();\n\n InputStreamReader inputStreamReader = null;\n try {\n inputStreamReader = new InputStreamReader(new FileInputStream(new File(filename)),\"cp1251\");\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String [] lines = null;\n String line = null;\n try{\n while ((line = bufferedReader.readLine()) != null) {\n\n lines= line.split(\",\");\n\n\n LocalDate conc = LocalDate.parse(lines[1], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n LocalDate start = LocalDate.parse(lines[2], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n LocalDate end = LocalDate.parse(lines[3], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n\n Client client=new Client(ClientType.valueOf(lines[4]),lines[5],lines[6]);\n\n ArrayList<InsuredPerson>insuredPeople=new ArrayList<>();\n for(int i=7; i<lines.length; i+=4 ){\n LocalDate d=LocalDate.parse(lines[i+2],DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n InsuredPerson person = new InsuredPerson(Integer.valueOf(lines[i]),lines[i+1],d,Double.valueOf(lines[i+3]));\n insuredPeople.add(person);\n\n\n }\n Contract contract=new Contract(Integer.valueOf(lines[0]),conc,start,end,client,insuredPeople);\n contracts.add(contract);\n }\n bufferedReader.close();}\n catch (IOException e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return contracts;\n\n }", "public ArrayList<String> loadToRead() {\n\n\t\tSAVE_FILE = TO_READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "public static List read(String fileName) throws IOException {\n\tList data = new ArrayList() ;\n Scanner scanner = new Scanner(new FileInputStream(fileName));\n try {\n while (scanner.hasNextLine()){\n data.add(scanner.nextLine());\n }\n }\n finally{\n scanner.close();\n }\n return data;\n }", "public ArrayList<String> readItem();", "private ArrayList<ImageItem> getData() {\n final ArrayList<ImageItem> imageItems = new ArrayList<>();\n // TypedArray imgs = getResources().obtainTypedArray(R.array.image_ids);\n for (int i = 0; i < f.size(); i++) {\n Bitmap bitmap = imageLoader.loadImageSync(\"file://\" + f.get(i));;\n imageItems.add(new ImageItem(bitmap, \"Image#\" + i));\n }\n return imageItems;\n }", "private void loadInventory(String fileName){\t\t\r\n\t\tList<String> list = new ArrayList<String>();\r\n\r\n\t\ttry (Stream<String> stream = Files.lines(Paths.get(fileName))) {\r\n\t\t\t//Convert it into a List\r\n\t\t\tlist = stream.collect(Collectors.toList());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tfor(String itemList : list){\r\n\t\t\tString[] elements = itemList.split(\"--\");\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tswitch(elements[0].toUpperCase()){\r\n\t\t\t\t\tcase \"BURGER\":\r\n\t\t\t\t\t\t\tinventory.add(createBurger(elements));;\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"SALAD\":\r\n\t\t\t\t\t\t\tinventory.add(createSalad(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"BEVERAGE\":\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createBeverage(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"SIDE\":\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createSide(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"DESSERT\":\r\n\t\t\t\t\t\t\tinventory.add(createDessert(elements));;\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "private static ArrayList<String> readFile() throws ApplicationException {\r\n\r\n ArrayList<String> bookList = new ArrayList<>();\r\n\r\n File sourceFile = new File(FILE_TO_READ);\r\n try (BufferedReader input = new BufferedReader(new FileReader(sourceFile))) {\r\n\r\n if (sourceFile.exists()) {\r\n LOG.debug(\"Reading book data\");\r\n String oneLine = input.readLine();\r\n\r\n while ((oneLine = input.readLine()) != null) {\r\n\r\n bookList.add(oneLine);\r\n\r\n }\r\n input.close();\r\n } else {\r\n throw new ApplicationException(\"File \" + FILE_TO_READ + \" does not exsit\");\r\n }\r\n } catch (IOException e) {\r\n LOG.error(e.getStackTrace());\r\n }\r\n\r\n return bookList;\r\n\r\n }", "static List<String> fileToList(){\n List<String> contacts = null;\n try {\n Path contactsListPath = Paths.get(\"contacts\",\"contacts.txt\");\n contacts = Files.readAllLines(contactsListPath);\n } catch (IOException ioe){\n ioe.printStackTrace();\n }\n return contacts;\n }", "private static ArrayList read() throws IOException, ClassNotFoundException {\n FileInputStream file = new FileInputStream(\"scores.ser\"); \n ObjectInputStream in = new ObjectInputStream(file); \n \n // Method for deserialization of object \n ArrayList scores = (ArrayList)in.readObject(); \n \n in.close(); \n file.close(); \n \n\t\treturn scores;\n\t}", "public List<T> extract(String filename)\n {\n if (StringUtils.isBlank(filename))\n {\n throw new IllegalStateException(\"Name of the file must be specified!\");\n }\n else\n {\n data = new ArrayList<T>();\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(filename);\n\n Scanner scanner = new Scanner(inputStream);\n while (scanner.hasNextLine())\n {\n parse(scanner.nextLine());\n }\n scanner.close();\n\n return data;\n }\n }", "@SuppressWarnings(\"unchecked\")\n public ArrayList readVector() throws IOException {\n int length = readVectorHeader();\n ArrayList result = new ArrayList(length);\n for (int i = 0; i < length; i++) {\n result.add(read());\n }\n return result;\n }", "@Override\n\tpublic ProductCollection getList(String filename) throws CartServiceDaoException{\n\t\tMap<Product, Integer> list = new LinkedHashMap<>();\n\t\ttry (BufferedReader reader = new BufferedReader(new FileReader(filename))){\n\t\t\tint productNo = 1;\n\t\t\twhile(reader.ready()){\n\t\t\t\tString temp[] = reader.readLine().split(\"\\\\s+\");\n\t\t\t\tProduct newProduct = new Product(temp[0], new BigDecimal(temp[2]), productNo++);\n\t\t\t\tlist.put(newProduct, Integer.parseInt(temp[1]));\n\t\t\t}\n\t\t} catch(IOException e){\n\t\t\tthrow new CartServiceDaoException(\"ERROR: Reading file failed\");\n\t\t}\n\t\treturn new ProductCollection(list);\n\t}", "List readFile(String pathToFile);", "private ArrayList<String> parseFile(String file_name){ // extract each line from file AS string (stopList)\r\n ArrayList<String> list = new ArrayList<>();\r\n Scanner scanner = null;\r\n try{\r\n scanner = new Scanner(new BufferedReader(new FileReader(file_name)));\r\n while (scanner.hasNextLine())\r\n {\r\n list.add(scanner.nextLine());\r\n }\r\n }\r\n catch (Exception e ){ System.out.println(\"Error reading file -> \"+e.getMessage()); }\r\n finally {\r\n if(scanner != null ){scanner.close();} // close the file\r\n }\r\n return list;\r\n }", "public ArrayList<Item> loadItems(String filename) {\n ArrayList<Item> itemsList = new ArrayList<>();\n try {\n File file = new File(filename);\n BufferedReader reader= new BufferedReader(new InputStreamReader(new FileInputStream(file), \"UTF-8\"));\n String line= reader.readLine();\n while (line != null){\n String[] splitedLine = line.split(\"=\");\n String name = splitedLine[0];\n int weight = Integer.parseInt(splitedLine[1]) / 1000; // on convertit en tonnes\n itemsList.add(new Item(name,weight));\n line = reader.readLine();\n }\n reader.close(); //pour arreter la memoire tampon\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n\n return itemsList;\n }", "static void read()\n\t\t{\n\n\n\t\t\tString content=new String();\n\t\t\ttry {\n\t\t\t\tFile file=new File(\"Dic.txt\");\n\t\t\t\tScanner scan=new Scanner(file);\n\t\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\t\tcontent=scan.nextLine();\n\t\t\t\t//\tSystem.out.println(content);\n\n\t\t\t\t//\tString [] array=content.split(\" \");\n\t\t\t\t\tlist.add(content.trim());\n\n\t\t\t\t}\n\t\t\t\tscan.close(); \n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\n\t\t}", "public ArrayList<T> cargar(String ruta) {\n// ArrayList<T> productos = ArrayList();\n try {\n fis = new FileInputStream(ManejoDato.rutaArchivo);\n ois = new ObjectInputStream(fis);\n ArrayList<T> lista = (ArrayList<T>) ois.readObject();\n// productos = FXCollections.observableList(lista);\n ois.close();\n fis.close();\n } catch (FileNotFoundException e) {\n System.err.println(\"ERROR: \" + e.getLocalizedMessage());\n } catch (IOException | ClassNotFoundException e) {\n System.err.println(\"ERROR: \" + e.getLocalizedMessage());\n }\n return lista;\n }", "public List<String> readFileIntoList(String filepath) throws IOException;", "public void readFromFile() {\n\n\t}", "public ClickerCounterModel[] readObjectFromFile() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\t\t\tFileInputStream inputStream = openFileInput(filename);\n\t\t\tInputStreamReader isr = new InputStreamReader(inputStream);\n\t\t\tBufferedReader bufferedReader = new BufferedReader(isr);\n\t\t\tString line;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tsb.append(line);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\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\t// use Gson to convert it into and object\n\t\tString json = sb.toString();\n\t\tGson gson = new Gson();\n\t\tClickerCounterModel[] object = gson.fromJson(json,\n\t\t\t\tClickerCounterModel[].class);\n\t\treturn object;\n\t}", "public List<Cuenta> leerArchivoToList(InputStream archivo);", "protected void readCharacters() {\n try {\r\n File f = new File(filePath);\r\n FileInputStream fis = new FileInputStream(f);\r\n ObjectInputStream in = new ObjectInputStream(fis);\r\n characters = (List<character>) in.readObject();\r\n in.close();\r\n }\r\n catch(Exception e){}\r\n adapter.addAll(characters);\r\n }", "public ArrayList<String> parseFile(String fileName) throws IOException {\n\t\tthis.parrsedArray = new ArrayList<String>();\n\t\tFileInputStream inFile = null;\n\n\t\tinFile = new FileInputStream(mngr.getPath() + fileName);\n\t\tDataInputStream in = new DataInputStream(inFile);\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n\t\tString strLine;\n\n\t\twhile ((strLine = reader.readLine()) != null && strLine.length() > 0) {\n\t\t\t// Print the content on the console\n\t\t\tparrsedArray.add(strLine);\n\t\t}\n\n\t\tinFile.close();\n\n\t\treturn parrsedArray;\n\n\t}", "public static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get(\"Activities.txt\"))) {\n lines = stream\n .flatMap((line->Stream.of(line.split(\"\\t\\t\"))))\n .collect(Collectors.toList());\n for(int i=0; i<lines.size()-2; i+=3){\n MonitoredData md = new MonitoredData(lines.get(i), lines.get(i+1), lines.get(i+2));\n data.add(md);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //data.forEach(System.out::println);\n return data;\n }", "private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public List<String> readFileContents(String filePath) throws APIException;", "public List<Event> fillArrayList()\r\n {\r\n List<Event> list1=new ArrayList<>();\r\n FileReader fr=null;\r\n \r\n try{\r\n \r\n fr=new FileReader(\"./event.txt\");\r\n BufferedReader bf=new BufferedReader(fr);\r\n String s;\r\n \r\n while((s=bf.readLine())!=null)\r\n {\r\n Event event=new Event();\r\n String s1[]=new String[7];\r\n for(int i=0;i<s1.length;i++)\r\n {\r\n s1=s.split(\",\");\r\n \r\n event.setId(Integer.parseInt(s1[0]));\r\n \r\n event.setName(s1[1]);\r\n \r\n event.setOrganizer(s1[2]);\r\n \r\n Date date=Date.valueOf(s1[3]);\r\n \r\n event.setDate(date);\r\n \r\n event.setFees(Double.parseDouble(s1[4]));\r\n \r\n } \r\n list1.add(event);\r\n }\r\n \r\n bf.close();\r\n \r\n }catch(Exception e){e.printStackTrace();}\r\n return list1;\r\n\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static List<Transaction> readObject(String filename){\n\n\t\tlogger.finer(\" Reading object (Deserializtion) used\");\n\t\tList<Transaction> transactionList = null;\n\n\t\ttry(ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename))){\n\t\t\ttransactionList = (List<Transaction>)ois.readObject();\n\t\t}\n\t\tcatch(IOException | ClassNotFoundException ioe){\n\n\t\t\tSystem.out.println(\"Exception occurred during deserialization\");\n\t\t} \n\n\t\t//\t\tpresentFileContents(transactionList);\n\n\t\treturn (List<Transaction>) transactionList;\n\t}", "public abstract List<T> readObj(String path);", "@SuppressWarnings(\"unchecked\")\n public ArrBag( String infileName ) throws Exception\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n BufferedReader infile = new BufferedReader( new FileReader( infileName ) );\n while ( infile.ready() )\n this.add( (T) infile.readLine() );\n infile.close();\n }", "public ArrayList<Usuario> buscarTodos()throws Exception{\r\n File f=new File(\"archivaldo.raton\");\r\n \r\n FileInputStream fis=new FileInputStream(f);\r\n ObjectInputStream ois=new ObjectInputStream(fis);\r\n usuarios= (ArrayList<Usuario>)ois.readObject();\r\n return usuarios;\r\n }", "public void cargarProductosVendidos() {\n try {\n //Lectura de los objetos de tipo productosVendidos\n FileInputStream archivo= new FileInputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosVendidos = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "public static ArrayList readData(){\n ArrayList alr = new ArrayList();\n try{\n ArrayList stringArray = (ArrayList)read(filename);\n for (int i = 0; i < stringArray.size(); i++){\n String st = (String)stringArray.get(i);\n StringTokenizer star = new StringTokenizer(st, SEPARATOR);\n int movieID = Integer.parseInt(star.nextToken().trim());\n String email = star.nextToken().trim();\n String comment = star.nextToken().trim();\n Review review = new Review(movieID, email, comment);\n alr.add(review);\n }\n }\n catch (IOException e){\n System.out.println(\"Exception > \" + e.getMessage());\n }\n return alr;\n }", "List<E> read();", "public ArrayList<String> loadRead() {\n\n\t\tSAVE_FILE = READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "private List<String> getDataFromApi() throws IOException {\n // Get a list of up to 10 files.\n List<String> fileInfo = new ArrayList<String>();\n FileList result = mService.files().list()\n .setMaxResults(10)\n .execute();\n List<File> files = result.getItems();\n if (files != null) {\n for (File file : files) {\n fileInfo.add(String.format(\"%s (%s)\\n\",\n file.getTitle(), file.getId()));\n }\n }\n return fileInfo;\n }", "public String[] read()\n {\n ArrayList<String> input = new ArrayList<String>();\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n if (dir.exists())\n {\n Scanner contacts = new Scanner(dir);\n while (contacts.hasNextLine())\n {\n input.add(contacts.nextLine());\n }\n contacts.close();\n }\n }catch (Exception ex)\n {\n //debug(\"read file contents failure\");\n debug = \"test read failure\";\n }\n return input.toArray(new String[1]);\n }", "public ArrayList<Product> getCartContents() throws IOException, ClassNotFoundException {\n try {\n String fileName=userid+\"cart.txt\";\n File file=new File(fileName);\n if(file.exists()) {\n FileInputStream fis = new FileInputStream(fileName);//fileName);\n ObjectInputStream ois = new ObjectInputStream(fis);\n this.cartContents = (ArrayList<Product>) ois.readObject();\n }\n return cartContents;\n }\n catch(EOFException e)\n {\n System.out.println(\"Cart is empty.\");\n }\n return null;\n }", "private List<Organizations.Organization> readProtobuf(String filename) throws IOException {\n ServletContext sc = this.getServletContext();\n InputStream is = sc.getResourceAsStream(\"/WEB-INF/\" + filename);\n Organizations orgs = Organizations.parseFrom(is);\n return orgs.getOrgsList();\n }", "FormattedSmartPlaylist readFromFile(File file) throws JAXBException, FileNotFoundException;", "static List<String> fileReader(String fileName){\n \n \n //Read a file and store the content in a string array.\n File f = new File(fileName);\n BufferedReader reader = null;\n String tempString = null;\n List<String> fileContent = new ArrayList<String>();\n //String[] fileContent = null;\n //int i = 0;\n \n try {\n reader = new BufferedReader(new FileReader(f));\n while ((tempString = reader.readLine()) != null){\n //while ((fileContent[i] = reader.readLine()) != null){\n fileContent.add(tempString);\n //i++;\n }\n reader.close();\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n finally{\n if (reader != null){\n try{\n reader.close();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }\n }\n \n return fileContent;\n \n }", "public static List<Polyomino> openFile() {\n \tString basePath = new File(\"\").getAbsolutePath();\n Path path = Paths.get(basePath, \"polyominoesINF421.txt\");\n Charset charset = Charset.forName(\"UTF-8\");\n List<Polyomino> polyominos = new LinkedList<Polyomino>();\n\t\ttry {\n\t\t\tList<String> lines = Files.readAllLines(path, charset);\n\t\t\tfor (String line : lines) {\n\t\t\t\tpolyominos.add(new Polyomino(line));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n return polyominos;\n }", "public static ArrayList<Medicine> readMedicine()\n {\n ArrayList<Medicine> newMedicine = new ArrayList<>();\n \n \n try\n {\n FileReader fread = new FileReader(\"Medicine.txt\");\n BufferedReader bread = new BufferedReader(fread);\n \n String Med = \"1\";\n\n while ((Med = bread.readLine()) != null) {\n \n Medicine user = new Medicine(Med);\n newMedicine.add(user); \n }\n bread.close();\n fread.close(); \n } \n catch(Exception error)\n {\n System.out.println(\"Error\" + error);\n }\n \n return (newMedicine);\n }", "protected String[] readInFile(String filename) {\n Vector<String> fileContents = new Vector<String>();\n try {\n InputStream gtestResultStream1 = getClass().getResourceAsStream(File.separator +\n TEST_TYPE_DIR + File.separator + filename);\n BufferedReader reader = new BufferedReader(new InputStreamReader(gtestResultStream1));\n String line = null;\n while ((line = reader.readLine()) != null) {\n fileContents.add(line);\n }\n }\n catch (NullPointerException e) {\n CLog.e(\"Gest output file does not exist: \" + filename);\n }\n catch (IOException e) {\n CLog.e(\"Unable to read contents of gtest output file: \" + filename);\n }\n return fileContents.toArray(new String[fileContents.size()]);\n }", "List<T> readList();", "public ArrayList<User> loadUserCatalogue() \r\n\t{ \r\n\t\t\r\n\t\tfile = new File(\"resources/mediaproject.properties\");\r\n\t\tProperties prop = new Properties();\r\n\t\tFileInputStream input = null;\r\n\t\t\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t \r\n\t\t input = new FileInputStream(file);\r\n\t\t prop.load(input); //loads the stream to the property class\r\n\t\t}\r\n\t\tcatch (FileNotFoundException fnf)\r\n\t\t{\r\n\t\t\tfnf.printStackTrace();\r\n\t\t}\r\n\t\tcatch (IOException ioe)\r\n\t\t{\r\n\t\t\tioe.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tinput.close();\r\n\t\t} catch (IOException io) {\r\n\t\t\tio.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tthis.userTable = prop.getProperty(\"userCatalogueTable\");\r\n\t\tthis.file = new File(this.userTable);\r\n\t\t\r\n\t\tif(!(this.file.exists()))\r\n\t\t{\r\n\t\t\tthis.uList = new ArrayList<User>();\r\n\t\t\tObjectOutputStream oos;\r\n\t\t\ttry{\r\n\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(this.file));\r\n\t\t\t\toos.writeObject(this.uList);\r\n\t\t\t\toos.flush();\r\n\t\t\t\toos.close();\r\n\t\t\t}\r\n\t\t\tcatch (FileNotFoundException fnf)\r\n\t\t\t{\r\n\t\t\t\tfnf.printStackTrace();\r\n\t\t\t}\r\n\t\t\tcatch(IOException ioe)\r\n\t\t\t{\r\n\t\t\t\tioe.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(this.file));\r\n\t\t\tthis.uList = (ArrayList<User>) ois.readObject();\r\n\t\t\tois.close();\r\n\t\t}\r\n\t\tcatch (ClassNotFoundException cnf)\r\n\t\t{\r\n\t\t\tcnf.printStackTrace();\r\n\t\t}\r\n\t\tcatch (FileNotFoundException fnf)\r\n\t\t{\r\n\t\t\tfnf.printStackTrace();\r\n\t\t}\r\n\t\tcatch (IOException io)\r\n\t\t{\r\n\t\t\tio.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn this.uList;\r\n\t\t\r\n\t}", "public List<byte[]> getByteReader(Integer version) {\n\n\t\t// Switch statement used for different file configurations\n\t\tswitch (version) {\n\n\t\t\tcase 113:\n\t\t\tcase 114:\n\t\t\tcase 115: {\n\n\t\t\t\t// Initialize object for files from Stata 8, 10, and 12\n\t\t\t\tList<byte[]> oldfmt = new ArrayList<byte[]>();\n\n\t\t\t\t// Release version\n\t\t\t\toldfmt.add(new byte[1]);\n\n\t\t\t\t// Byte order a value of 1 is MSF 2 is LSF\n\t\t\t\toldfmt.add(new byte[1]);\n\n\t\t\t\t// File type 0x01\n\t\t\t\toldfmt.add(new byte[1]);\n\n\t\t\t\t// Unused 0x00\n\t\t\t\toldfmt.add(new byte[1]);\n\n\t\t\t\t// Short valued number of variables\n\t\t\t\toldfmt.add(new byte[2]);\n\n\t\t\t\t// Integer valued number of observations\n\t\t\t\toldfmt.add(new byte[4]);\n\n\t\t\t\t// \\0 Terminated dataset label\n\t\t\t\toldfmt.add(new byte[81]);\n\n\t\t\t\t// Dataset time stamp\n\t\t\t\toldfmt.add(new byte[18]);\n\n\t\t\t\t// Returns the object\n\t\t\t\treturn oldfmt;\n\n\t\t\t} // End case for Stata 8, 10, and 12 files\n\n\t\t\t// For Stata 13 files\n\t\t\tcase 117:\n\n\t\t\t\t// Initialize the list object to store the data\n\t\t\t\tList<byte[]> stata13 = new ArrayList<byte[]>();\n\n\t\t\t\t// Release version\n\t\t\t\tstata13.add(new byte[3]);\n\n\t\t\t\t// Byte order of the file\n\t\t\t\tstata13.add(new byte[2]);\n\n\t\t\t\t// Short value number of variables\n\t\t\t\tstata13.add(new byte[2]);\n\n\t\t\t\t// Integer number of observations\n\t\t\t\tstata13.add(new byte[4]);\n\n\t\t\t\t// For the length of the dataset label\n\t\t\t\tstata13.add(new byte[1]);\n\n\t\t\t\t// For the dataset timestamp\n\t\t\t\tstata13.add(new byte[1]);\n\n\t\t\t\t// Return the object\n\t\t\t\treturn stata13;\n\n\t\t\t// For Stata Files >= Version 14\n\t\t\tdefault:\n\n\t\t\t\t// Initialize the list object for Stata 14 > files\n\t\t\t\tList<byte[]> stata14 = new ArrayList<byte[]>();\n\n\t\t\t\t// Release version\n\t\t\t\tstata14.add(new byte[3]);\n\n\t\t\t\t// Byte order of the file\n\t\t\t\tstata14.add(new byte[2]);\n\n\t\t\t\t// Short value number of variables\n\t\t\t\tstata14.add(new byte[2]);\n\n\t\t\t\t// Integer number of observations\n\t\t\t\tstata14.add(new byte[8]);\n\n\t\t\t\t// For the length of the dataset label\n\t\t\t\tstata14.add(new byte[2]);\n\n\t\t\t\t// For the dataset timestamp\n\t\t\t\tstata14.add(new byte[1]);\n\n\t\t\t\t// Return the object\n\t\t\t\treturn stata14;\n\n\t\t} // End of switch statement\n\n\t}", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }", "@PostConstruct\n private List<String> loadFortunesFile() {\n System.out.println(\">> FileFortuneService: inside method 'loadFortunesFile'.\");\n\n try {\n String fileName = \"src/com/luv2code/springdemo/fortune_data.txt\";\n BufferedReader reader = new BufferedReader(new FileReader(fileName));\n String line = null;\n while ( (line = reader.readLine()) != null) {\n fortunes.add(line);\n }\n } catch (IOException e) {\n System.out.println(\"An error occurred during file-stream: \");\n e.printStackTrace();\n }\n return fortunes;\n\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static ArrayList<Item> loadItems(String filename)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(new File(filename)));\r\n\t\t\tArrayList<Item> items = (ArrayList<Item>)ois.readObject();\r\n\t\t\tois.close();\r\n\t\t\tSystem.out.println(\"Loaded items from disk: \" + items.size());\r\n\t\t\treturn items;\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"No locally saved \" + filename + \" - creating a new one: \" + e2.getMessage());\r\n\t\t}\r\n\t\tcatch (IOException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"IO Error: \" + e2.getMessage());\r\n\t\t} \r\n\t\tcatch (ClassNotFoundException e1) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"This copy of the program is missing some files: \" + e1.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public ArrayList<String> readFromFile(){\n ArrayList<String> results = new ArrayList<>();\n //Wrap code in a try/ catch to help with exception handling.\n try{\n //Create a object of Scanner class\n Scanner s = new Scanner(new FileReader(path));\n //While loop for iterating thru the file.\n // Reads the data and adds it to the ArrayList.\n while(s.hasNext()) {\n String c1 = s.next();\n String c2 = s.next();\n String w = s.next();\n results.add(c1);\n results.add(c2);\n results.add(w);\n }return results;\n\n }//File not found exception block.\n catch(FileNotFoundException e){\n System.out.println(e);\n }\n return results;//default return.\n }", "@Override\n public List<Actor> getAll() {\n if (actors != null) {\n return actors;\n }\n actors = new ArrayList<>();\n if (Files.exists(actorsPath)) {\n try (BufferedReader in = new BufferedReader(\n new FileReader(actorsFile))) {\n\n // read products from file into array list\n String line = in.readLine();\n while (line != null) {\n// String[] fields = line.split(FIELD_SEP);\n// int id = int parse.fields[0];\n// String description = fields[1];\n// String price = fields[2];\n\n Actor a = new Actor();\n actors.add(a);\n\n line = in.readLine();\n }\n } catch (IOException e) {\n System.out.println(e);\n return null;\n }\n } else {\n System.out.println(\n \t\tactorsPath.toAbsolutePath() + \" doesn't exist.\");\n return null; \n }\n return actors;\n }", "@SuppressWarnings(\"unchecked\")\n public List readList() throws IOException {\n List list = new ArrayList();\n Object obj = read();\n while (obj != null) {\n list.add(obj);\n obj = read();\n }\n return list;\n }", "public static ArrayList<Chip> ImportarChips() {\n ArrayList<Chip> ArrayChips = new ArrayList<Chip>();\n File f = new File(\"Archivos/chips.txt\");\n ManCliente objManCliente = new ManCliente();\n ImportarCliente objImpCli = new ImportarCliente();\n ArrayList<Cliente> ArrayClientes = new ArrayList<Cliente>();\n String aNumero;\n int aActivo;\n int aSaldo;\n int aMegas;\n String aCedula;\n StringTokenizer st;\n Scanner entrada = null;\n String sCadena;\n try {\n ArrayClientes = objImpCli.ImportarClientes();\n entrada = new Scanner(f);\n while (entrada.hasNext()) {\n sCadena = entrada.nextLine();\n st = new StringTokenizer(sCadena, \",\");\n while (st.hasMoreTokens()) {\n aNumero = st.nextToken();\n aActivo = Integer.parseInt(st.nextToken());\n aSaldo = Integer.parseInt(st.nextToken());\n aMegas = Integer.parseInt(st.nextToken());\n aCedula = st.nextToken();\n\n Chip objTmpChip = new Chip(aNumero, aActivo, aSaldo, aMegas, objManCliente.BuscarCliente(ArrayClientes, aCedula));\n ArrayChips.add(objTmpChip);\n\n }\n }\n } catch (FileNotFoundException e) {\n System.out.println(e.getMessage());\n } finally {\n entrada.close();\n }\n return ArrayChips;\n }", "public static Vector<FondiSviluppoPuglia> ReadingData(File file){\n\t\tVector<FondiSviluppoPuglia> v = new Vector<FondiSviluppoPuglia>();\n\t\ttry {\n\t\t\tObjectInputStream input = new ObjectInputStream(new BufferedInputStream(new FileInputStream(file)));\n\t\t\tv = (Vector<FondiSviluppoPuglia>)input.readObject();\n\t\t\tinput.close();\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"List Not Found\");\n\t\t\te.printStackTrace();\n\t\t} catch(IOException e) {\n\t\t\tSystem.out.println(\"Error of I/O\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn v;\n\t}", "private void readFromInternalStorage() {\n ArrayList<GeofenceObjects> returnlist = new ArrayList<>();\n if (!isExternalStorageReadable()) {\n System.out.println(\"not readable\");\n } else {\n returnlist = new ArrayList<>();\n try {\n FileInputStream fis = openFileInput(\"GeoFences\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n returnlist = (ArrayList<GeofenceObjects>) ois.readObject();\n ois.close();\n System.out.println(returnlist);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n currentList = returnlist;\n }", "static public ArrayList<ChineseCharacter> readFromFile()\r\n\t {\n \t \r\n\t\t InputStream stream = LoadCharactersFromFile.class.getClassLoader().getResourceAsStream(\"files/charactersSet1.txt\");\r\n\t\t\t\t \r\n\t\t\t\r\n\t System.out.println(\"==========> \"+stream != null);\r\n\t // stream = LoadCharactersFromFile.class.getClassLoader().getResourceAsStream(\"SomeTextFile.txt\");\r\n\t // System.out.println(stream != null);\r\n\t \t// getResourceAsStream(\"file.txt\")\r\n\t \t \r\n\t // Resource resource = new ClassPathResource(\"com/example/Foo.class\");\r\n\t \r\n\t String filePath = stream.toString();\r\n\t\t \r\n\t System.out.println(\"filePath: \"+filePath);\r\n\t BufferedReader br = new BufferedReader(new InputStreamReader(stream));\r\n\t String line = \"\";\r\n\t String cvsSplitBy = \",\";\r\n\r\n\t \r\n\t \r\n\t ArrayList<ChineseCharacter> chineseCharacterArraylist = new ArrayList<ChineseCharacter>() ;\r\n\t int charactercount =0;\r\n\t try {\r\n\r\n\t // br = new BufferedReader(new FileReader(filePath));\r\n\t int count = 1;\r\n\t int listLength = 0;\r\n\t \r\n\t // ChineseCharacter character;\r\n\t String listtitle = \"\";\r\n\t ArrayList<String> pinyinlistArray = new ArrayList<String>();\r\n\t \r\n\t ArrayList<Character> hanzilistArray = new ArrayList<Character>() ;\r\n\t int linecount = 0;\r\n\t \r\n\t while ((line = br.readLine()) != null) \r\n\t {\r\n\t \t linecount++;\r\n\t\t\t \r\n\t \t \r\n\t\t\t //listtitle: characters: pinyin: \r\n\t\t\t // use comma as separator\r\n\t\t\t \r\n\t\t\t if(count ==1)\r\n\t\t\t {\r\n\t\t\t \t \r\n\t\t\t \t String[] listtitleLine = line.split(cvsSplitBy);\r\n\t\t\t\t if(listtitleLine[0].equals(\"listtitle:\"))\r\n\t\t\t\t {\t\r\n\t\t\t\t \t \r\n\t\t\t\t \t listtitle = listtitleLine[1];\r\n\t\t\t\t \t \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t if(linecount==1)\r\n\t\t\t\t {\r\n\t\t\t\t \t listtitle = listtitleLine[1];\r\n\t\t\t\t \t \r\n\t\t\t\t\t System.out.println(\"linecount==1, Linetype: \" + listtitleLine[0] + \" value: \" + listtitle);\r\n\t\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t }//if(count ==1)\r\n\t\t\t \r\n\t\t\t if(count ==2)\r\n\t\t\t {\r\n\t\t\t \t String[] charactersLine = line.split(cvsSplitBy);\r\n\t\t\t\t if(charactersLine[0].equals(\"characters:\"))\r\n\t\t\t\t {\t\r\n\t\t\t\t \t listLength = charactersLine.length;\r\n\t\t\t\t \r\n\t\t\t\t \t for(int i =0; i<listLength-1; i++)\r\n\t\t\t \t\t\t {\r\n\t\t\t\t \t\t charactersLine[i+1] = charactersLine[i+1].replace(\" \", \"\");\r\n\t\t\t\t \t\t// charactersLine[i+1] = charactersLine[i+1].replace(\",\", \"\");//remove all comma\r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\t hanzilistArray.add(charactersLine[i+1].charAt(0));\r\n\t\t\t \t\t\t\t \r\n\t\t\t \t\t\t\t \r\n\t\t\t \t\t\t }\r\n\t\t\t\t \t System.out.print(\"\\n\"); \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t }//if(count ==2)\r\n\t\t\t \r\n\t\t\t if(count ==3)\r\n\t\t\t {\r\n\t\t\t \t String[] pinyinLine = line.split(cvsSplitBy);\r\n\t\t\t\t if(pinyinLine[0].equals(\"pinyin:\"))\r\n\t\t\t\t {\t\r\n\t\t\t\t \t //check pinyin and characters have same no. of elements\r\n\t\t\t\t \t if (listLength == pinyinLine.length)\r\n\t\t\t\t \t {\r\n\t\t\t\t \t\t \r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t for(int i =0; i<listLength-1; i++)\r\n\t\t\t\t\t \t\t\t {\r\n\t\t\t\t\t\t\t \t \r\n\t\t\t\t\t\t\t \t pinyinlistArray.add(pinyinLine[i+1]);\r\n\t\t\t\t\t \t\t\t\t\r\n\t\t\t\t\t \t\t\t\t \r\n\t\t\t\t\t \t\t\t\t ChineseCharacter character = new ChineseCharacter(listtitle,hanzilistArray.get(i),pinyinlistArray.get(i)); \r\n\t\t\t\t\t \t\t\t\t \r\n\t\t\t\t\t \t\t\t\t chineseCharacterArraylist.add(charactercount, character);;\r\n\t\t\t\t\t \t\t\t\t// chineseCharacters[charactercount] = character;\r\n\t\t\t\t\t \t\t\t\t \r\n\t\t\t\t\t \t\t\t\t charactercount++; \r\n\t\t\t\t\t \t\t\t }\r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t \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.println(\"listLength != pinyinLine.length!!..unable to add list: \"+ listtitle);\r\n\t\t\t\t \t }\r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t hanzilistArray.clear();\r\n\t \t\t\t\t pinyinlistArray.clear(); \r\n\t\t\t }//if(count ==3)\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t if(count == 3) { count = 1;}\r\n\t\t\t else{ count++;}\r\n\t\t\t \r\n\t\t\t \r\n\t }//while\r\n\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t }\r\n\t catch (FileNotFoundException e) \r\n\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t catch (IOException e) \r\n\t {\r\n\t e.printStackTrace();\r\n\t } finally \r\n\t {\r\n\t if (br != null) \r\n\t {\r\n\t try \r\n\t {\r\n\t br.close();\r\n\t } catch (IOException e) \r\n\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\t }\r\n\t }\r\n\t\t \r\n\t \r\n\t return chineseCharacterArraylist;\r\n\t }", "public List<List<String>> read () {\n List<List<String>> information = new ArrayList<>();\n try (BufferedReader br = new BufferedReader(new FileReader(path))) {\n int aux = 0;\n while ((line = br.readLine()) != null) {\n String[] data = line.split(split_on);\n List<String> helper = new ArrayList<>();\n helper.add(data[0]);\n helper.add(data[1]);\n information.add(helper);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return information;\n }", "public ArrayList<ForMngJrArticleModel> getJrArtArrayList(){\n\t\tArrayList<ForMngJrArticleModel> jrArticles = null;\n\t\tString nameOfFile = \"documents/journalDetails\".concat(\".dat\");\n\t\ttry {\n\t\t\tFileInputStream fisOfJrArt = new FileInputStream(nameOfFile);\n\t\t\tObjectInputStream oisOfJrArt = new ObjectInputStream(fisOfJrArt);\n\t\t\tObject ojct = oisOfJrArt.readObject();\n\t\t\tjrArticles = (ArrayList<ForMngJrArticleModel>) ojct;\n\t\t\toisOfJrArt.close();\n\t\t}\n\t\tcatch(FileNotFoundException fnfe) {\n\t\t\tfnfe.printStackTrace();\n\t\t}\n\t\tcatch(IOException ioet) {}\n\t\tcatch(ClassNotFoundException cnfe) {\n\t\t\tcnfe.printStackTrace();\n\t\t}\n\t\treturn jrArticles;\n\t}", "@Override\n public ArrayList parseFile(String pathToFile) {\n\n Scanner scanner = null;\n try {\n scanner = new Scanner(new File(pathToFile));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n ArrayList<String> data = new ArrayList<>();\n while (scanner.hasNext()) {\n data.add(scanner.next());\n }\n scanner.close();\n\n return data;\n }", "public void cargarProductosEnVenta() {\n try {\n //Lectura de los objetos de tipo producto Vendido\n FileInputStream archivo= new FileInputStream(\"productosVentaCliente\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n this.productosEnVenta = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"ERROR: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }", "public ArrayList<String> readFromFile(String fileName) throws IOException {\n\t\tBufferedReader reader = new BufferedReader(new FileReader(fileName));\n\t ArrayList<String> retour = new ArrayList<String>();\n\t String line = null;\n\t while((line = reader.readLine()) != null) \n\t \tretour.add(line);\n\t \n\t reader.close();\n\t return retour; \n\t}", "public static ObservableList<User> readApp() throws IOException, ClassNotFoundException{\n \t//create the file if it doesn't exist\n \tFile temp = new File(\"photoData/users.dat\");\n \ttemp.createNewFile();\n \t\n \tObservableList<User> gapp = FXCollections.observableArrayList();\n \tObjectInputStream ois = null;\n \ttry{\n \t\tois = new ObjectInputStream(new FileInputStream(storeFile));\n \t} catch(EOFException e) {\n\t\t\treturn gapp;\n\t\t}\n \t\n \t//read the .dat file and populate the obsList (list of users)\n \twhile(true) {\n \t\ttry {\n \t\t\tgapp.add(new User((String)ois.readObject()));\n \t\t} catch (EOFException e) {\n \t\t\treturn gapp;\n \t\t}\n \t}\n }", "public List getAll() throws FileNotFoundException, IOException;", "public List<T> getData(String filePath) {\n\n\t\tif (filePath.isEmpty())\n\t\t\tthrow new IllegalArgumentException(\"No file name specified\");\n\t\tList<T> retVal = new ArrayList<T>();\n\t\tBufferedReader bufferedReader = null;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tbufferedReader = new BufferedReader(new FileReader(filePath));\n\t\t\tString inputLine = \"\";\n\t\t\twhile (true) {\n\t\t\t\tinputLine = bufferedReader.readLine();\n\t\t\t\tif (inputLine == null)\n\t\t\t\t\tbreak;\n\t\t\t\tif (inputLine.isEmpty())\n\t\t\t\t\tcontinue;\n\t\t\t\tinputLine = inputLine.toLowerCase();\n\t\t\t\tinputLine = inputLine.replace(\"\\\\,\", \"\");\n\t\t\t\tT t = (T) parseLine(inputLine);\n\t\t\t\tif (t != null) {\n\t\t\t\t\tretVal.add(t);\n\t\t\t\t}\n\n\t\t\t\tcount++;\n\t\t\t\tif (count > Program.getCount())\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} catch (FileNotFoundException ex) {\n\t\t\tSystem.err.println(ex.getMessage());\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"Unable to read the file : \" + ex.toString());\n\t\t} catch (Exception ex) {\n\n\t\t} finally {\n\t\t\tif (bufferedReader != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbufferedReader.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.err.println(e.getStackTrace().toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn retVal;\n\t}", "public static Vector<Metadata> ReadingMetadata(File file){\n\t\tVector<Metadata> v = new Vector<Metadata>(); \n\t\ttry {\n\t\t\tObjectInputStream input = new ObjectInputStream(new BufferedInputStream(new FileInputStream(file)));\n\t\t\tv = (Vector<Metadata>)input.readObject();\n\t\t\tinput.close();\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"List Not Found\");\n\t\t\te.printStackTrace();\n\t\t} catch(IOException e) {\n\t\t\tSystem.out.println(\"Error of I/O\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn v;\n\t}", "public static void read(String fname){\r\n\t\t\t\r\n\t\t\tString line = \"\";\r\n\t\t\ttry {\r\n\t // FileReader reads text files in the default encoding.\r\n\t FileReader fileReader = new FileReader(fname);\r\n\t \r\n\t // Always wrap FileReader in BufferedReader.\r\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\r\n\t header=bufferedReader.readLine();\r\n\t \r\n\t data = new ArrayList<alldata>();\r\n\r\n\t while((line = bufferedReader.readLine()) != null) {\r\n\t \t\r\n\t //parse line and divide data by comma\r\n\t \r\n\t \t\r\n\t \tString[] lineStr = line.split(\",\");\r\n\t \t\r\n\t //create object row into which data from each line is stored and then added to array list\t\r\n\t \t\r\n\t if(lineStr.length >0) {\r\n\t \talldata row = new alldata();\r\n\t \trow.Name = lineStr[0]+ \",\" + lineStr[1];\r\n\t \trow.Num = lineStr[2];\r\n\t \trow.State = lineStr[3];\r\n\t \trow.Zip = lineStr[4];\r\n\t \trow.Age = Integer.parseInt(lineStr[6]);\r\n\t \trow.Sex = lineStr[7];\r\n\t \t\r\n\t \tdata.add(row);\r\n\t }\r\n\t \r\n\t \r\n\t } \r\n\t bufferedReader.close(); // Always close files. \r\n\t }catch(FileNotFoundException ex) {\r\n\t System.out.println(\"Unable to open file '\" + fname + \"'\"); \r\n\t }catch(IOException ex) {\r\n\t System.out.println(\"Error reading file '\" + fname + \"'\"); \r\n\t }\r\n\t\t\tSystem.out.println(\"Finish reading data from file \"+ fname);\r\n\t\t}", "private ArrayList<String> getPackagesFromFile() {\n\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tString path = Environment.getExternalStorageDirectory().getCanonicalPath() + \"/data/levelup/\";\r\n\r\n\r\n\t\t\t//view2_.setText(\"\");\r\n\t\t\tFile root = new File(path);\r\n\r\n\r\n\t\t\troot.mkdirs();\r\n\r\n\r\n\t\t\tFile f = new File(root, \"custom.txt\");\r\n\t\t\tif(!f.exists())\r\n\t\t\t{\r\n\t\t\t\t//view2_.setText(\"now I am here\");\r\n\t\t\t\tFileOutputStream fos = new FileOutputStream(f);\r\n\t\t\t\tfos.close();\r\n\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t\tFileReader r = new FileReader(f);\r\n\t\t\tBufferedReader br = new BufferedReader(r);\r\n\r\n\r\n\r\n\t\t\t// Open the file that is the first\r\n\t\t\t// command line parameter\r\n\r\n\r\n\t\t\tString strLine;\r\n\t\t\t// Read File Line By Line\r\n\r\n\r\n\r\n\t\t\twhile ((strLine = br.readLine()) != null) {\r\n\t\t\t\t// Print the content on the console\r\n\t\t\t\t//String[] allWords;\r\n\t\t\t\tif(!strLine.equals(null)) temp.add(strLine);\r\n\t\t\t\tLog.i(\"packages from file\", strLine);\r\n\t\t\t}\r\n\r\n\t\t\tr.close();\r\n\r\n\r\n\t\t} catch (Exception e) {// Catch exception if any\r\n\t\t\t//System.err.println(\"Error: \" + e.getMessage());\r\n\t\t}\r\n\t\treturn temp;\r\n\t}", "public static List<Server> readFile() {\n String fileName = \"servers.txt\";\n\n List<Server> result = new LinkedList<>();\n try (Scanner sc = new Scanner(createFile(fileName))) {\n\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n result.add(lineProcessing(line));\n\n }\n\n } catch (FileNotFoundException e) {\n System.out.println(\"File is not found\");\n } catch (MyException e) {\n System.out.println(\"File is corrupted\");\n }\n return result;\n }", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "ArrayList<WordListItem> addDataFromFile(){\n BufferedReader br;\n InputStream inputStream = context.getResources().openRawResource(R.raw.animal_list);\n br = new BufferedReader(\n new InputStreamReader(inputStream, Charset.forName(\"UTF-8\"))\n );\n String currentLine;\n ArrayList<WordListItem> wordListItems = new ArrayList<WordListItem>();\n try {\n while ((currentLine = br.readLine()) != null) {\n String[] tokens = currentLine.split(\";\");\n\n String word = tokens[0];\n String pronunciation = tokens[1];\n String description = tokens[2];\n\n WordListItem wordItem = new WordListItem(word, pronunciation, description);\n wordItem.setImgResNbr(setImgResFromWord(wordItem.getWord().toLowerCase()));\n wordListItems.add(wordItem);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null) br.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n\n return wordListItems;\n }", "public ArrayList<Auction> readAuctions()\n {\n String dataLines[]; /* Data read from line */\n int countAuction = 0; /* No. of auction */\n boolean bNotNull = true; /* Indicate line null error */ \n \n ArrayList<Auction> auctionList = new ArrayList<Auction>();\n \n /* Open file. If cannot open, return null; */\n TextFileReader reader = new TextFileReader(auctionFileName);\n if (reader.open() == false)\n return null;\n \n /* Read number of data */\n String line;\n line = reader.readLine();\n try\n {\n countAuction = Integer.parseInt(line);\n }\n catch (Exception e)\n {\n return null;\n }\n \n /* Loop get auction, loop get bid, and add to list */\n int numTag = tagAuction.length;\n for (int i = 0; i < countAuction && bNotNull; i++)\n {\n /* Get Auction */\n dataLines = new String[numTag];\n for (int j = 0; j < numTag && bNotNull; j++)\n {\n dataLines[j] = reader.readLine();\n if (dataLines[j] == null)\n bNotNull = false;\n }\n Auction auction = parseAuction(dataLines);\n if (auction != null) /* If data is correct, add to auction list */\n {\n auctionList.add(auction);\n readBids(reader, auction);\n }\n }\n reader.close();\n return auctionList;\n }", "private static ArrayList<String> read(String fileName, boolean next) {\n\t\t\n\n\t\tFile input = new File(fileName);\n\t\tArrayList<String> information = new ArrayList<String>();\n\t\t\n\t\t\n\t\t//uses a simple try catch to read the file\n\t\ttry {\n\t\t\t\n\t\t\tScanner fileReader = new Scanner(input);\n\t\t\t\n\t\t\tif(next) //if reading by word, the ArrayList will contain info by word\n\t\t\t\twhile(fileReader.hasNext()) \n\t\t\t\t\tinformation.add(fileReader.next());\n\t\t\t\t\n\t\t\telse //otherwise the ArrayList will contain info by lines\n\t\t\t\twhile(fileReader.hasNextLine())\n\t\t\t\t\tinformation.add(fileReader.nextLine());\n\t\t\t\n\t\t\tfileReader.close();\n\t\t} catch(FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn information;\n\t}", "TraceList read(File file) throws IOException;", "private static ArrayList<CIty> duxushuji(File file) throws IOException {\n\t\tArrayList<CIty>city=new ArrayList<>();\r\n\t\tInputStreamReader isr = new InputStreamReader(new FileInputStream(file), \"GBK\");\r\n\t\tBufferedReader br=new BufferedReader(isr);\r\n\tString str;\r\n\t\twhile((str=br.readLine())!=null){\r\n\t\tString[] strings=str.split(\"[|]\");\r\n\t\tcity.add(new CIty(Integer.parseInt(strings[0]), strings[1],strings[2]));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tisr.close();\r\n\t\treturn city;\r\n\t}", "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 static ArrayList readScifinder( String filename)\n {\n \t\tArrayList bibitems=new ArrayList();\n \t\tFile f = new File(filename);\n \n \t\tif(!f.exists() && !f.canRead() && !f.isFile()){\n \t\t\tSystem.err.println(\"Error \" + filename + \" is not a valid file and|or is not readable.\");\n \t\t\treturn null;\n \t\t}\n \t\tStringBuffer sb=new StringBuffer();\n \t\ttry{\n \t\t\tBufferedReader in = new BufferedReader(new FileReader( filename));\n \n \t\t\tString str;\n \t\t\twhile ((str = in.readLine()) != null) {\n \t\t\t\tsb.append(str);\n \t\t\t}\n \t\t\tin.close();\n \n \t\t}\n \t\tcatch(IOException e){return null;}\n \t\tString [] entries=sb.toString().split(\"START_RECORD\");\n \t\tHashMap hm=new HashMap();\n \t\tfor(int i=1; i<entries.length; i++){\n \t\t\tString[] fields = entries[i].split(\"FIELD \");\n \t\t\tString Type=\"\";\n \t\t\thm.clear(); // reset\n \t\t\tfor(int j=0; j<fields.length; j++) if (fields[j].indexOf(\":\") >= 0) {\n \t\t\t\tString tmp[]= new String[2];\n tmp[0] = fields[j].substring(0, fields[j].indexOf(\":\"));\n tmp[1] = fields[j].substring(fields[j].indexOf(\":\")+1);\n \t\t\t\tif(tmp.length > 1){//==2\n \t\t\t\t\tif(tmp[0].equals(\"Author\"))\n \t\t\t\t\t\thm.put( \"author\", tmp[1].replaceAll(\";\",\" and \") );\n \t\t\t\t\telse if(tmp[0].equals(\"Title\"))\n \t\t\t\t\t\thm.put(\"title\",tmp[1]);\n \n \t\t\t\t\telse if(tmp[0].equals(\"Journal Title\"))\n \t\t\t\t\t\thm.put(\"journal\",tmp[1]);\n \n \t\t\t\t\telse if(tmp[0].equals(\"Volume\"))\n \t\t\t\t\thm.put(\"volume\",tmp[1]);\n \t\t\t\telse if(tmp[0].equals(\"Page\"))\n \t\t\t\t\thm.put(\"pages\",tmp[1]);\n \t\t\t\telse if(tmp[0].equals(\"Publication Year\"))\n \t\t\t\t\thm.put(\"year\",tmp[1]);\n \t\t\t\telse if(tmp[0].equals(\"Abstract\"))\n \t\t\t\t\thm.put(\"abstract\",tmp[1]);\n \t\t\t\telse if(tmp[0].equals(\"Supplementary Terms\"))\n \t\t\t\t\thm.put(\"keywords\",tmp[1]);\n \t\t\t\telse if(tmp[0].equals(\"Document Type\"))\n \t\t\t\t\tType=tmp[1].replaceAll(\"Journal\",\"article\");\n \t\t\t}\n \t }\n \n \t BibtexEntry b=new BibtexEntry(Globals.DEFAULT_BIBTEXENTRY_ID,\n \t\t\t\t\t\t\t\t\t Globals.getEntryType(Type)); // id assumes an existing database so don't create one here\n \t b.setField( hm);\n \t bibitems.add( b );\n \n \t}\n \treturn bibitems;\n }", "public ArrayList<Instance> read() throws IOException{\n ArrayList<Instance> instances;\n instances = new ArrayList<>();\n String s;\n String[] c;\n Instance i;\n while(reader.ready()){\n s = getInstanceFromFile();\n i = new Instance();\n c = s.split(\",\");\n for(int j = 0; j < c.length - 1; j++)\n i.addFeature(Double.parseDouble(c[j]));\n // The last part of a line is the class label\n // See dataset that is used\n i.setClassification(c[c.length - 1]);\n instances.add(i);\n }\n return instances;\n }", "private static ArrayList<String> readInventory(Scanner source) {\n\n\t\tArrayList<String> contents = new ArrayList<String>();\n\n\t\twhile (source.hasNext()) {\n\t\t\tString line = source.nextLine();\n\t\t\tcontents.add(line);\n\t\t}\n\n\t\treturn contents;\n\t}", "private ArrayList<Alimento> initLista() {\n try {\n File file = new File(\"C:\\\\Users\\\\Gabri\\\\OneDrive\\\\Ambiente de Trabalho\\\\Calorie\\\\src\\\\Assets\\\\alimentos.txt\");\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n\n ArrayList<Alimento> lista = new ArrayList<>();\n\n int noLines = Integer.parseInt(br.readLine());\n for(int l=0; l<noLines; l++) {\n String[] alimTks = (br.readLine()).split(\",\");\n\n Alimento alimento = new Alimento(idAlimCounter++,alimTks[0],100,Integer.parseInt(alimTks[1]),Float.parseFloat(alimTks[2]),Float.parseFloat(alimTks[3]),Float.parseFloat(alimTks[4]));\n lista.add(alimento);\n }\n\n return lista;\n }catch (Exception e) {\n System.out.println(\"Sistema - getLista() : \"+e.toString());\n }\n return null;\n }", "public List<Tailor> read();", "public ArrayList<String> fileRead(String fileName) {\n String line = null;\n ArrayList<String> list = new ArrayList<>();\n try {\n // FileReader reads text files in the default encoding.\n FileReader fileReader = new FileReader(fileName);\n\n // Always wrap FileReader in BufferedReader.\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n list.add(line);\n }\n\n // Always close files.\n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n return list;\n }", "private void loadDataFromMemory(String filename){\n shoppingList.clear();\n new ReadFromMemoryAsync(filename, getCurrentContext(), new ReadFromMemoryAsync.AsyncResponse(){\n\n @Override\n public void processFinish(List<ShoppingItem> output) {\n shoppingList.addAll(output);\n sortItems();\n }\n }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n// for (ShoppingItem item: items) {\n// shoppingList.add(item);\n// }\n// sortItems();\n }", "private ArrayList<Book> readBookCollection() {\n File file = new File(\"books.txt\");\n ArrayList<Book> collection = new ArrayList<Book>();\n try {\n FileReader fileReader = new FileReader(file);\n BufferedReader reader = new BufferedReader(fileReader);\n while (true) {\n String line = reader.readLine();\n if (line == null) break;\n line = line.trim();\n if (line.equals(\"\")) continue; // ignore possible blank lines\n String[] bookInfo = line.split(\" :: \");\n collection.add(new Book(bookInfo[0], bookInfo[1]));\n }\n }\n catch (IOException e) {\n System.out.println(e.getMessage());\n }\n return collection;\n }" ]
[ "0.66027737", "0.63378656", "0.63163686", "0.6264121", "0.62103945", "0.6195446", "0.61592144", "0.6102662", "0.6088538", "0.6084509", "0.60683805", "0.60268325", "0.5984382", "0.5944517", "0.5923039", "0.5896714", "0.58665156", "0.5860488", "0.5827931", "0.58185834", "0.5808178", "0.58061844", "0.579829", "0.5771313", "0.5759508", "0.5752486", "0.5749197", "0.5745136", "0.5742053", "0.5742005", "0.5715729", "0.5708503", "0.5701076", "0.5692431", "0.56663406", "0.56596637", "0.5657125", "0.5654293", "0.5653488", "0.56384623", "0.5634109", "0.5630983", "0.5629791", "0.5627359", "0.56259584", "0.5618105", "0.5612527", "0.56099236", "0.5606314", "0.5603905", "0.5603527", "0.5601327", "0.56007606", "0.5597437", "0.5594323", "0.55880356", "0.55813247", "0.55734164", "0.5559533", "0.55585706", "0.55547917", "0.5553889", "0.55435", "0.5536575", "0.55339956", "0.55338216", "0.5529333", "0.552777", "0.55261815", "0.5523285", "0.55222106", "0.55217016", "0.5521261", "0.5510985", "0.550429", "0.5501793", "0.54903066", "0.5488659", "0.548299", "0.54809374", "0.5479281", "0.54791355", "0.5475896", "0.54710203", "0.5465106", "0.5461564", "0.54597026", "0.54596865", "0.5435409", "0.543538", "0.5430934", "0.5416707", "0.5414857", "0.5410877", "0.54083127", "0.5407282", "0.54039884", "0.54034936", "0.5400344", "0.5397941" ]
0.7233023
0
This method takes an arraylist of ice objects and converts it to a hashmap, with month as the key and Ice objects as values
public static HashMap<Integer, ArrayList<Ice>> sortedDataMap(ArrayList<Ice> iceData) throws IOException{ HashMap<Integer,ArrayList<Ice>> iceMap = new HashMap<>();//creates new empty hashmap //loops over the entire arraylist for (Ice iceDatapoint : iceData) { int month = iceDatapoint.getMonth();//extracts the month from the Ice object datapoint ArrayList<Ice> thisIceList = iceMap.get(month); //gets all the values of a specific month in the hashmap if(thisIceList == null) {//checks if this arraylist is null iceMap.put(month,new ArrayList<Ice>());//creates a new entry in the hashmap } iceMap.get(month).add(iceDatapoint);//adds the Ice datapoint to its corresponding month } return iceMap;//returns a hashmap containing the sorted data }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Map<String, Object> analysisMap(ArrayList<String> data) {\n Map<String, Object> map = new HashMap<>();\n map.put(DAILY, data);\n return map;\n }", "public static LinkedHashMap <Integer, ArrayList<WeatherObject>> getWeatherMap(ArrayList<WeatherObject> weatherList) {\n LinkedHashMap<Integer, ArrayList<WeatherObject>> weatherMap = new LinkedHashMap<>();\n\n int tempDayOfWeek = 0;\n\n ArrayList<WeatherObject> weatherArrayList = new ArrayList<>();\n\n // temporary\n Calendar calendarTemp = Calendar.getInstance();\n // now\n Calendar calendarNow = Calendar.getInstance();\n\n for (WeatherObject weatherObject : weatherList) {\n long millisecondsCorrect = weatherObject.getDateTime()*1000l;\n calendarTemp.setTimeInMillis(millisecondsCorrect);\n\n if (calendarTemp.get(Calendar.DAY_OF_MONTH) != calendarNow.get(Calendar.DAY_OF_MONTH)) {\n if (tempDayOfWeek == 0) {\n tempDayOfWeek = calendarTemp.get(Calendar.DAY_OF_WEEK);\n }\n\n if (tempDayOfWeek == calendarTemp.get(Calendar.DAY_OF_WEEK)) {\n weatherArrayList.add(weatherObject);\n } else {\n weatherMap.put(tempDayOfWeek,weatherArrayList);\n tempDayOfWeek = calendarTemp.get(Calendar.DAY_OF_WEEK);\n weatherArrayList = new ArrayList<>();\n }\n }\n }\n return weatherMap;\n }", "public Map<String, MonthDay> dataFeriadosNacionais(int ano);", "public static Map<String,List<CustomItemDto>> createMap(List<CustomItemDto> items){\n\t\t\n\t\tMap<String,List<CustomItemDto>> map=new HashMap<>();\n\n\t\tfor(CustomItemDto item:items){\n\t\t\n\t \tif(!map.containsKey(item.getCardType())){\t\n\t \t\tList<CustomItemDto> c = new ArrayList<>();\n\t\t\tc.add(item);\n\t\t map.put(item.getCardType(),c);\n\t\t }else{\t\n\t\t\tList<CustomItemDto> c=map.get(item.getCardType());\n\t\t c.add(item);\t\t\n\t\t\t\t}//else\n\t\t\t}\n\t\treturn map;\n\t\t}", "public Map<String, Date> addToMap(List<String> names) {\r\n\t\tMap<String, Date> nameBirthdayMap = new HashMap<String, Date>();\r\n\t\tfor (String name : names) {\r\n\t\t\tnameBirthdayMap.put(toMixedCase(name), calculateBirthday(name));\r\n\t\t}\r\n\t\treturn nameBirthdayMap;\r\n\t}", "private static Map<String, Integer> mapMonths(final String[] months) {\n final Map<String, Integer> mapping = new LinkedHashMap<String, Integer>();\n\n for (final String month : months) {\n if (!month.isEmpty()) { // 13th month may or may not be empty,\n // depending on default calendar.\n mapping.put(month, mapping.size() + 1);\n }\n }\n\n return mapping;\n }", "private Map<Integer, NewsItem> toMap(List<NewsItem> articles) {\n Map<Integer, NewsItem> result = new HashMap<>();\n\n for (NewsItem newsItem : articles) {\n result.put(newsItem.getItemId(), newsItem);\n }\n\n return result;\n }", "public void fillMap() {\n this.months.put(\"янв\", Month.JANUARY);\n this.months.put(\"фев\", Month.FEBRUARY);\n this.months.put(\"мар\", Month.MARCH);\n this.months.put(\"апр\", Month.APRIL);\n this.months.put(\"май\", Month.MAY);\n this.months.put(\"июн\", Month.JUNE);\n this.months.put(\"июл\", Month.JULY);\n this.months.put(\"авг\", Month.AUGUST);\n this.months.put(\"сен\", Month.SEPTEMBER);\n this.months.put(\"окт\", Month.OCTOBER);\n this.months.put(\"ноя\", Month.NOVEMBER);\n this.months.put(\"дек\", Month.DECEMBER);\n }", "@Override\n public Map<String, Object> getMemberReport() {\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.MONTH,-12);\n List<String> monthList = new ArrayList<>();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM\");\n for (int i = 0; i < 12; i++) {\n calendar.add(Calendar.MONTH,1);\n monthList.add(sdf.format(calendar.getTime()));\n }\n Map<String,Object> map = new HashMap<>();\n map.put(\"months\",monthList);\n List<Integer> memberCntList = findMemberCntByMonthList(monthList);\n map.put(\"memberCntList\",memberCntList);\n return map;\n }", "protected ListMap<Integer, CD4Details> makeResultsMap(List<Object> data) {\n\t\tListMap<Integer, CD4Details> dateListMap = new ListMap<Integer, CD4Details>();\n\t\tfor (Object o : data) {\n\t\t\tObject[] parts = (Object[]) o;\n\t\t\tif (parts.length == 3) {\n\t\t\t\tInteger pId = (Integer) parts[0];\n\t\t\t\tDate date = (Date) parts[1];\n\t\t\t\tDouble val = (Double) parts[2];\n\t\t\t\tif (pId != null && date != null) {\n\t\t\t\t\tCD4Details details = new CD4Details(val, date);\n\t\t\t\t\tdateListMap.putInList(pId, details);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn dateListMap;\n\t}", "private HashMap<String, ArrayList<Integer>> createTonyParkerTestMap() {\n HashMap<String, ArrayList<Integer>> knownYearSeasonActivityMap = new HashMap<>();\n knownYearSeasonActivityMap.put(\"2001-02\", new ArrayList<>(Arrays.asList(1, -1, 1)));\n knownYearSeasonActivityMap.put(\"2002-03\", new ArrayList<>(Arrays.asList(1, -1, 1)));\n knownYearSeasonActivityMap.put(\"2003-04\", new ArrayList<>(Arrays.asList(1, -1, 1)));\n knownYearSeasonActivityMap.put(\"2004-05\", new ArrayList<>(Arrays.asList(1, -1, 1)));\n knownYearSeasonActivityMap.put(\"2005-06\", new ArrayList<>(Arrays.asList(1, 1, 1)));\n knownYearSeasonActivityMap.put(\"2006-07\", new ArrayList<>(Arrays.asList(1, 1, 1)));\n knownYearSeasonActivityMap.put(\"2007-08\", new ArrayList<>(Arrays.asList(1, 1, 1)));\n knownYearSeasonActivityMap.put(\"2008-09\", new ArrayList<>(Arrays.asList(1, 1, 1)));\n knownYearSeasonActivityMap.put(\"2009-10\", new ArrayList<>(Arrays.asList(1, 1, 1)));\n knownYearSeasonActivityMap.put(\"2010-11\", new ArrayList<>(Arrays.asList(1, 1, 1)));\n knownYearSeasonActivityMap.put(\"2011-12\", new ArrayList<>(Arrays.asList(1, 1, 1)));\n knownYearSeasonActivityMap.put(\"2012-13\", new ArrayList<>(Arrays.asList(1, 1, 1)));\n knownYearSeasonActivityMap.put(\"2013-14\", new ArrayList<>(Arrays.asList(1, 1, 1)));\n knownYearSeasonActivityMap.put(\"2014-15\", new ArrayList<>(Arrays.asList(1, 1, 1)));\n knownYearSeasonActivityMap.put(\"2015-16\", new ArrayList<>(Arrays.asList(1, 1, 1)));\n knownYearSeasonActivityMap.put(\"2016-17\", new ArrayList<>(Arrays.asList(1, 1, 1)));\n knownYearSeasonActivityMap.put(\"2017-18\", new ArrayList<>(Arrays.asList(1, -1, 1)));\n knownYearSeasonActivityMap.put(\"2018-19\", new ArrayList<>(Arrays.asList(1, 1, -1)));\n return knownYearSeasonActivityMap;\n }", "private static Map<String, String> m19376a(List<ajr> list) {\n if (list == null) {\n return null;\n }\n if (list.isEmpty()) {\n return Collections.emptyMap();\n }\n Map<String, String> treeMap = new TreeMap(String.CASE_INSENSITIVE_ORDER);\n for (ajr ajr : list) {\n treeMap.put(ajr.m19223a(), ajr.m19224b());\n }\n return treeMap;\n }", "private static Map<VOTableVersion,VersionDetail>\n createMap( VersionDetail[] vds ) {\n Map<VOTableVersion,VersionDetail> map =\n new LinkedHashMap<VOTableVersion,VersionDetail>();\n for ( int i = 0; i < vds.length; i++ ) {\n map.put( vds[ i ].version_, vds[ i ] );\n }\n return map;\n }", "private LinkedHashMap<String, List<String[]>> generateResultMap(List<FinanceDocument> financeDocumentList) {\n\n LinkedHashMap<String, List<String[]>> resultMap = new LinkedHashMap<>();\n for (FinanceDocument doc : financeDocumentList) {\n\n String date = DateUtils.getNormalDate(DateUtils.DATE_FORMAT_LONG, doc.getDate());\n HashMap<String, Float> valuesMap = doc.getConvertedValuesMap().get(dataType);\n\n String sign = \"+\";\n if (dataType == FinanceDocument.CUSTOM_EXPENSE) {\n sign = \"-\";\n }\n for (Map.Entry<String, Float> entry : valuesMap.entrySet()) {\n String valueString = sign + String.format(Locale.getDefault(), \"%1$,.2f\", entry.getValue()) + \" \" + MainActivity.defaultCurrency;\n if (resultMap.containsKey(date)) {\n resultMap.get(date).add(new String[]{\n Utils.keyToString(getContext(), entry.getKey()),\n valueString});\n\n\n } else {\n List<String[]> resultList = new ArrayList<>();\n resultList.add(new String[]{\n Utils.keyToString(getContext(), entry.getKey()),\n valueString});\n resultMap.put(date, resultList);\n\n }\n\n }\n }\n\n return resultMap;\n }", "private HashMap<String, Integer> findNumberOfEventsPerMonth(int year, int month) {\n return new HashMap<String, Integer>();\n }", "public static Map<Integer,String> getCurrencyMap(){\n Map<Integer,String> currencyMap = new HashMap<>();\n int temp = 1; // number of first currency\n for (Object s : getCurrencySet()){\n currencyMap.put(temp,s.toString());\n temp++;\n }\n return Collections.synchronizedMap(currencyMap);\n }", "public static Map<Integer, List> prepareHotelsListToView(List<Hotel> filteredHotelsToView) {\r\n\t\tMap<Integer, List> map = new HashMap<Integer, List>();\r\n\r\n\t\tfor (Hotel hotel : filteredHotelsToView) {\r\n\t\t\tList hotelData = new ArrayList();\r\n\t\t\t\r\n\t\t\thotelData.add(hotel.getDestination().getCountry());\r\n\t\t\thotelData.add(hotel.getDestination().getCity());\r\n\t\t\thotelData.add(hotel.getDestination().getRegionID());\r\n\t\t\thotelData.add(hotel.getHotelInfo().getHotelName());\r\n\t\t\thotelData.add(convertDateListToString(hotel.getOfferDateRange().getTravelStartDate()));\r\n\t\t\thotelData.add(convertDateListToString(hotel.getOfferDateRange().getTravelEndDate()));\r\n\t\t\thotelData.add(hotel.getHotelInfo().getHotelStarRating());\r\n\t\t\thotelData.add(hotel.getHotelInfo().getHotelGuestReviewRating());\r\n\t\t\thotelData.add(hotel.getHotelInfo().getHotelReviewTotal());\r\n\t\t\thotelData.add(hotel.getHotelInfo().getHotelImageUrl());\r\n\t\t\t\r\n\t\t\tmap.put(map.size() + 1, hotelData);\r\n\t\t}\r\n\r\n\t\treturn map;\r\n\t}", "@Override\r\n\tpublic Map<String, double[]> getHallAttendance() {\n\t\tMap<String, double[]> result = new HashMap<String, double[]>();\r\n\t\tdouble[] hall1 = new double[7];\r\n\t\tdouble[] hall2 = new double[7];\r\n\t\tdouble[] hall3 = new double[7];\r\n\t\tDate date = DateUtil.getCurrentDate();\r\n\t\tCinemaCondition cinemaCondition = cinemaConditionDao.getByDate(date);\r\n\t\tif (cinemaCondition!=null) {\r\n\t\t\thall1[0] = (double)cinemaCondition.getHall1UsedCount()/cinemaCondition.getHall1()*100;\r\n\t\t\thall2[0] = (double)cinemaCondition.getHall2UsedCount()/cinemaCondition.getHall2()*100;\r\n\t\t\thall3[0] = (double)cinemaCondition.getHall3UsedCount()/cinemaCondition.getHall3()*100;\t\t\r\n\t\t}\r\n\r\n\t\tfor(int i=0;i<6;i++){\r\n\t\t\tdate = DateUtil.getDayBefore(date);\r\n\t\t\tcinemaCondition = cinemaConditionDao.getByDate(date);\r\n\t\t\tif (cinemaCondition!=null) {\r\n\t\t\t\thall1[i+1] = (double)cinemaCondition.getHall1UsedCount()/cinemaCondition.getHall1()*100;\r\n\t\t\t\thall2[i+1] = (double)cinemaCondition.getHall2UsedCount()/cinemaCondition.getHall2()*100;\r\n\t\t\t\thall3[i+1] = (double)cinemaCondition.getHall3UsedCount()/cinemaCondition.getHall3()*100;\r\n\t\t\t}\r\n\t\t}\r\n\t\tresult.put(\"一号影厅\", hall1);\r\n\t\tresult.put(\"二号影厅\", hall2);\r\n\t\tresult.put(\"三号影厅\", hall3);\r\n\t\t\r\n\t\treturn result;\r\n\t}", "private void setUpHashMap(int number)\n {\n switch (number)\n {\n case 1:\n {\n this.hourly.put(\"Today\",new ArrayList<HourlyForecast>());\n break;\n }\n case 2:\n {\n this.hourly.put(\"Today\",new ArrayList<HourlyForecast>());\n this.hourly.put(\"Tomorrow\", new ArrayList<HourlyForecast>());\n break;\n }\n case 3:\n {\n this.hourly.put(\"Today\", new ArrayList<HourlyForecast>());\n this.hourly.put(\"Tomorrow\", new ArrayList<HourlyForecast>());\n this.hourly.put(\"Day After Tomorrow\", new ArrayList<HourlyForecast>());\n break;\n }default:\n break;\n }\n }", "private HashMap<String, Integer> findNumberOfEventsPerMonth(int year,\n\t\t\t\t int month) {\n\t\t\t HashMap<String, Integer> map = new HashMap<String, Integer>();\n\n\t\t\t return map;\n\t\t }", "public final List<TimeKey> mo13029a(Map<String, ? extends Map<String, String>> map) {\n ArrayList arrayList = new ArrayList(map.size());\n for (Map.Entry next : map.entrySet()) {\n Map map2 = (Map) next.getValue();\n Object obj = map2.get(\"encrypted_mobile_id\");\n if (obj != null) {\n String str = (String) obj;\n Object obj2 = map2.get(\"fromDate\");\n if (obj2 != null) {\n long roundToLong = MathKt.roundToLong(((Double) obj2).doubleValue());\n Object obj3 = map2.get(\"tillDate\");\n if (obj3 != null) {\n arrayList.add(new TimeKey((String) next.getKey(), str, TimeKey.DEFAULT_NAME, roundToLong, MathKt.roundToLong(((Double) obj3).doubleValue()), 0, 32, (DefaultConstructorMarker) null));\n } else {\n throw new NullPointerException(\"null cannot be cast to non-null type kotlin.Double\");\n }\n } else {\n throw new NullPointerException(\"null cannot be cast to non-null type kotlin.Double\");\n }\n } else {\n throw new NullPointerException(\"null cannot be cast to non-null type kotlin.String\");\n }\n }\n return arrayList;\n }", "private Map<String, Double> getMarketPriceMap() {\n String marketData = Utils.readFile(marketFile);\n MarketResponse[] marketDetails = gson.fromJson(marketData, MarketResponse[].class);\n return Arrays.stream(marketDetails)\n .collect(Collectors.toMap(MarketResponse::getIsin, MarketResponse::getPrice));\n }", "private static Map<String, String> createMapFromList(final List<String> all) {\n\t\tfinal Map<String, String> map = new ConcurrentHashMap<>();\n\n\t\tfor (final String documentElement : all) {\n\t\t\tif (documentElement != null) {\n\t\t\t\tmap.put(documentElement, documentElement);\n\t\t\t}\n\t\t}\n\t\treturn map;\n\t}", "public Map<Integer, Map<String, Integer>> activityPerDay(List<MonitoredData> timeline) {\n return timeline\n .stream()\n .collect(\n Collectors\n .groupingBy(\n m -> m.getStart_time().getDayOfYear(),\n Collectors\n .groupingBy(\n m -> m.getActivity_label(),\n Collectors\n .collectingAndThen(Collectors.counting(), Long::intValue))));\n }", "public List<Map<Integer, String>> listList2Map(List<List<String>> list)\n\t{\n\t\tList<Map<Integer, String>> result = new ArrayList<Map<Integer, String>>();\t\t\n\t\tfor (int i = 0; i < list.size(); i++)\n\t\t{\n\t\t\tMap<Integer, String> temp = new HashMap<Integer, String>();\n\t\t\tfor (int j = 0; j < list.get(i).size(); j++)\n\t\t\t{\n\t\t\t\t temp.put(j+1, list.get(i).get(j));\n\t\t\t}\n\t\t\tresult.add(temp);\n\t\t}\n\t\treturn result;\n\t}", "private Map<String, String> convertArrayToMap(PairDTO[] pairDTOs) {\n Map<String, String> map = new HashMap<>();\n for (PairDTO pairDTO : pairDTOs) {\n map.put(pairDTO.getKey(), pairDTO.getValue());\n }\n return map;\n }", "@Override\r\n public Map<Integer, Map<Integer, Map<Integer, List<Schedule>>>> calendarOrderTasks() {\r\n List<Schedule> tasks = scheduleRepository.getAllScheduledTasks();\r\n Map<Integer, Map<Integer, Map<Integer, List<Schedule>>>> dateMap = new HashMap<>();\r\n \r\n for (Schedule task : tasks) {\r\n List<Schedule> daySchedule = new ArrayList<>();\r\n String[] timestamp = task.getTimestamp().split(\" \");\r\n String date = timestamp[0];\r\n String[] dateArr = date.split(\"-\");\r\n Integer year = Integer.valueOf(dateArr[0]);\r\n Integer month = Integer.valueOf(dateArr[1]);\r\n Integer day = Integer.valueOf(dateArr[2]);\r\n System.out.println(\"Date arr -> Year: \" + year + \" Month: \" + month + \" Day: \" + day);\r\n \r\n if(dateMap.get(year) == null){\r\n Map<Integer, Map<Integer, List<Schedule>>> monthMap = new HashMap<>();\r\n dateMap.put(year, monthMap);\r\n } \r\n if(dateMap.get(year).get(month) == null){\r\n Map<Integer, List<Schedule>> dayMap = new HashMap<>();\r\n dateMap.get(year).put(month, dayMap);\r\n } \r\n if(dateMap.get(year).get(month).get(day) == null){\r\n List<Schedule> dayTasks = new ArrayList<>();\r\n dateMap.get(year).get(month).put(day, dayTasks);\r\n }\r\n \r\n dateMap.get(year).get(month).get(day).add(task);\r\n }\r\n return dateMap;\r\n }", "public static List<InvoiceDto> createRevenueFinancialSummary(List<InvoiceDto> dtos)\n {\n HashMap<String, InvoiceDto> map = new HashMap<String, InvoiceDto>();\n List<InvoiceDto> retList = new ArrayList<InvoiceDto>();\n\n for (InvoiceDto dto : dtos) {\n\n String key = String.valueOf(dto.getMonthYear().getYear()) + \"01\";\n\n InvoiceDto entry = null;\n if (map.containsKey(key)) {\n entry = map.get(key);\n } else {\n entry = new InvoiceDto();\n entry.setMonthYear(new MonthYear(key));\n\n entry.setHours(0.0);\n entry.setTotalGross(0.0);\n entry.setTotalRecvGross(0.0);\n map.put(key, entry);\n }\n\n entry.setHours(entry.getHours() + dto.getHours());\n\n entry.setTotalGross(entry.getTotalGross() + dto.getTotalGross());\n if (!DateTimeUtils.isNullDate(dto.getReceivedDate()))\n {\n entry.setTotalRecvGross(entry.getTotalRecvGross() + dto.getTotalGross());\n }\n }\n\n for (String key : map.keySet())\n {\n retList.add(map.get(key));\n }\n\n SortUtils.sortFinancialDto(retList, false);\n\n return retList;\n }", "public Frequency(ArrayList<LottoDay> list) {\n\n\t\tfill(list);//fill the maps\n\t}", "public HashMap getEPubDate(){\r\n\t\tHashMap ePubDate=new HashMap();\r\n\t\tList docSumList=eSummaryResult.getDocSum();\r\n\t\t\r\n\t\tfor(Object eachDocSum:docSumList){\r\n\t\t\tArrayList ePubDateList=new ArrayList();\r\n\t\t\tArrayList pubDateList=new ArrayList();\r\n\t\t\tString pmid=((DocSum)eachDocSum).getId().toString();\r\n\t\t\tList itemList=((DocSum)eachDocSum).getItem();\r\n\t\t\tfor(Object eachItem:itemList){\r\n\t\t\t\tString itemName=((Item)eachItem).getName();\r\n\t\t\t\tif(itemName.equalsIgnoreCase(\"EPubDate\")){\r\n\t\t\t\t\tePubDateList=(ArrayList)((Item)eachItem).getContent();\r\n\t\t\t\t}\r\n\t\t\t\tif(itemName.equalsIgnoreCase(\"PubDate\")){\r\n\t\t\t\t\tpubDateList=(ArrayList)((Item)eachItem).getContent();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif(!ePubDateList.isEmpty()){\r\n\t\t\t\tePubDate.put(pmid, ePubDateList.get(0));\r\n\t\t\t}else if(!pubDateList.isEmpty()){\r\n\t\t\t\tePubDate.put(pmid, pubDateList.get(0));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn ePubDate;\r\n\t}", "public HashMap<String, Integer> getMapForVehicleCount(List<PeriodicalParking> vehicleCountList) {\n\t\tHashMap<String, Integer> vehicleCountMap = new HashMap<String, Integer>();\n\t\tvehicleCountMap.put(\"car\", 0);\n\t\tvehicleCountMap.put(\"bike\", 0);\n\t\tfor (PeriodicalParking data : vehicleCountList) {\n\t\t\tif (data.get_id().equalsIgnoreCase(\"car\")) {\n\t\t\t\tvehicleCountMap.put(\"car\", data.getCount());\n\t\t\t} else if (data.get_id().equalsIgnoreCase(\"bike\")) {\n\t\t\t\tvehicleCountMap.put(\"bike\", data.getCount());\n\t\t\t}\n\t\t}\n\t\treturn vehicleCountMap;\n\t}", "public static Map<String, IpAddress> convert(List<IpAddress> ipAddressList) {\n Map<String, IpAddress> ipAddressMap = new HashMap<String, IpAddress>();\n\n for (IpAddress ipAddress : ipAddressList) {\n ipAddressMap.put(ipAddress.getUuid(), ipAddress);\n }\n\n return ipAddressMap;\n }", "public static Map getStudentMap() {\r\n\t\tMap<Integer,Student> stds = new HashMap();\r\n\t\tList<Student> list= new ArrayList<>();\r\n\t\tStudent akash =new Student(\"Akash\",123);\r\n\t\tStudent kalpana =new Student(\"kalpana\",345);\r\n\t\tStudent sasha =new Student(\"sasha\",876);\r\n\t\tStudent prakash =new Student(\"prakasg\",567);\r\n\t\t\r\n\t\tlist.add(prakash);\r\n\t\tlist.add(akash);\r\n\t\tlist.add(sasha);\r\n\t\tlist.add(kalpana);\r\n\t\tIterator<Student> its =list.iterator();\r\n\t\twhile (its.hasNext()) {\r\n\t\t\tStudent st = its.next();// student object from the \"list\" is passed in to st. \r\n\t\t\tstds.put(st.getRoll(),st);// st.getRoll() sends the roll number and st sends the object of the student.\r\n\t\t}\r\n\t\t\r\n\t\treturn stds;\r\n\t}", "@Override\n public HashMap<String, Object> toMap() {\n\n HashMap<String,Object> hashMap=new HashMap<>();\n hashMap.put(ApodClientAPI.APOD_START_DATE,APOD_START_DATE);\n hashMap.put(ApodClientAPI.APOD_END_DATE,APOD_END_DATE);\n hashMap.put(ApodClientAPI.APOD_API_KEY,ApodClientAPI.APOD_API_KEY_VALUE);\n\n\n return hashMap;\n }", "public static ArrayList<HashMap<String, String>> getCurrentMonthlDates() {\r\n\t\tArrayList<HashMap<String, String>> list = new ArrayList<>();\r\n\t\tCallableStatement call = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\t\t\tcall = con\r\n\t\t\t\t\t.prepareCall(\"{CALL get_monthly_dates_for_salesman_recovery()}\");\r\n\t\t\trs = call.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tHashMap<String, String> map = new HashMap<>();\r\n\t\t\t\tmap.put(\"date\", rs.getString(\"get_date\"));\r\n\t\t\t\tlist.add(map);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}", "private static HashMap<CardRank, Integer>\n getCardMap(ArrayList<CardRank> ranks){\n HashMap<CardRank, Integer> CardMap = new HashMap<>();\n //for every rank in ranks, put this rank into the key\n // and put its frequency into the value\n for(CardRank r :ranks) {\n if (CardMap.containsKey(r)){\n CardMap.put(r, CardMap.get(r) + 1);\n }else{\n CardMap.put(r,1);\n }\n }\n return CardMap;\n }", "@Override\r\n\tpublic Map<String, double[]> getMonthHallStatistic(int year, int month) {\n\t\tMap<String, double[]> result = new HashMap<String, double[]>();\r\n\t\tdouble[] hall1 = new double[31];\r\n\t\tdouble[] hall2 = new double[31];\r\n\t\tdouble[] hall3 = new double[31];\r\n\t\tDate date = DateUtil.getDateByYearAndMonth(year, month);\r\n\t\tdate = DateUtil.getFirstDay(date);\r\n\t\tfor(int i=0;i<31;i++){\r\n\t\t\tCinemaCondition cinemaCondition = cinemaConditionDao.getByDate(date);\r\n\t\t\tif(cinemaCondition!=null){\r\n\t\t\t\thall1[i] = (double)cinemaCondition.getHall1UsedCount()/cinemaCondition.getHall1()*100;\r\n\t\t\t\thall2[i] = (double)cinemaCondition.getHall2UsedCount()/cinemaCondition.getHall2()*100;\r\n\t\t\t\thall3[i] = (double)cinemaCondition.getHall3UsedCount()/cinemaCondition.getHall3()*100;\r\n\t\t\t}\r\n\t\t\tdate=DateUtil.getDayLater(date);\r\n\t\t}\r\n\t\tresult.put(\"一号影厅\", hall1);\r\n\t\tresult.put(\"二号影厅\", hall2);\r\n\t\tresult.put(\"三号影厅\", hall3);\r\n\t\treturn result;\r\n\t}", "public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }", "public HashMap<String, String> selectMap(String date, String route) throws ParseException {\n\n String dt = String.valueOf((java.time.LocalDate.now())); //dt is the current date value\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n Calendar c = Calendar.getInstance();\n c.setTime(sdf.parse(dt)); //c is the formatted date value\n String dates[] = new String[5]; //Array which holds 5 consecutive future dates\n\n for(int i=0;i<5;i++) {\n c.add(Calendar.DATE, 1);\n dt = sdf.format(c.getTime());\n dates[i]=dt;\n\n }\n\n HashMap x = new HashMap<>();\n try {\n if (route.equals(\"Colombo to Badulla\")) {\n if (date.equals(String.valueOf(dates[0]))) {\n x = (HashMap) reservedseats1;\n } else if (date.equals(String.valueOf(dates[1]))) {\n x = (HashMap) reservedseats2;\n } else if (date.equals(String.valueOf(dates[2]))) {\n x = (HashMap) reservedseats3;\n } else if (date.equals(String.valueOf(dates[3]))) {\n x = (HashMap) reservedseats4;\n }else {\n x = (HashMap) reservedseats5;\n }\n\n } else if (route.equals(\"Badulla to Colombo\")) {\n if (date.equals(String.valueOf(dates[0]))) {\n x = (HashMap) reservedseats6;\n } else if (date.equals(String.valueOf(dates[1]))) {\n x = (HashMap) reservedseats7;\n } else if (date.equals(String.valueOf(dates[2]))){\n x = (HashMap) reservedseats8;\n } else if (date.equals(String.valueOf(dates[3]))) {\n x = (HashMap) reservedseats9;\n } else {\n x = (HashMap) reservedseats10;\n }\n } else System.out.println();\n\n } catch (Exception e) {\n }\n return x; //Returns hashmap to SeatReservation Class\n }", "private Map devCardToMap() {\n\t\tMap<String, Integer> devCardMap = new HashMap<String, Integer>();\n\t\tint yearOfPlenty = 0, soldier = 0, monopoly = 0, monument = 0; \n\t\tint roadBuilding = 0;\n\t\tfor(DevCard devCard : this.devCards) {\n\t\t\tswitch(devCard.getClass().getSimpleName()) {\n\t\t\tcase \"YearOfPlenty\":\n\t\t\t\tyearOfPlenty++;\n\t\t\t\tbreak;\n\t\t\tcase \"Knight\":\n\t\t\t\tsoldier++;\n\t\t\t\tbreak;\n\t\t\tcase \"Monopoly\":\n\t\t\t\tmonopoly++;\n\t\t\t\tbreak;\n\t\t\tcase \"Monument\":\n\t\t\t\tmonument++;\n\t\t\t\tbreak;\n\t\t\tcase \"RoadBuilding\":\n\t\t\t\troadBuilding++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tdevCardMap.put(\"yearOfPlenty\", yearOfPlenty);\n\t\tdevCardMap.put(\"soldier\", soldier);\n\t\tdevCardMap.put(\"monopoly\", monopoly);\n\t\tdevCardMap.put(\"monument\", monument);\n\t\tdevCardMap.put(\"roadBuilding\", roadBuilding);\n\t\treturn devCardMap;\n\t}", "private List<EventInfo> map(List<EventLog> entries) {\n List<EventInfo> events = new ArrayList<>();\n for (EventLog entry : entries) {\n events.add(map(entry));\n }\n return events;\n }", "public final /* synthetic */ Map mo34041c(List list) {\n HashMap hashMap = new HashMap();\n for (C1844cm next : this.f589f.values()) {\n String str = next.f577c.f570a;\n if (list.contains(str)) {\n C1844cm cmVar = (C1844cm) hashMap.get(str);\n if ((cmVar == null ? -1 : cmVar.f575a) < next.f575a) {\n hashMap.put(str, next);\n }\n }\n }\n return hashMap;\n }", "public Map<Integer, ArrayList<Crop>> convertRecordsToMap(List<QueryDocumentSnapshot> documents) {\n Map<Integer, ArrayList<Crop>> yields = new HashMap<>();\n Crop crop = null;\n for (QueryDocumentSnapshot doc : documents) {\n //if we have a \"producer\" field, we're dealing with a Farm object.\n if (doc.getData().keySet().contains(\"producer\")) {\n crop = doc.toObject(Farm.class);\n } else {\n crop = doc.toObject(Crop.class);\n }\n\n if (!yields.containsKey(crop.getYear())) {\n Crop finalCrop = crop; //IDEK - weird errors\n yields.put(crop.getYear(), new ArrayList<>() {{ add(finalCrop); }});\n } else {\n yields.get(crop.getYear()).add(crop);\n }\n }\n\n return yields;\n }", "abstract protected Map<DataDate, ArrayList<String>> ListDatesFilesHTTP();", "@Test\n void BasicTestCase_largeNoOfEntries() {\n Solution solObj = new Solution();\n\n\n //Input Dictionary has year as 2100 and more entries\n Map<String, Integer> input1 = Stream.of(new Object[][]{\n {\"2100-02-01\", 1}, {\"2100-02-02\", 2}, {\"2100-02-03\", 3}, {\"2100-02-04\", 10}, {\"2100-02-05\", 11}, {\"2100-02-06\", 12}, {\"2100-02-07\", 13}, {\"2100-02-08\", 7}, {\"2100-02-09\", 8}, {\"2100-02-10\", 9}, {\"2100-02-11\", 10}, {\"2100-02-12\", 11}, {\"2100-02-13\", 12}, {\"2100-02-14\", 13},\n {\"2100-02-15\", 7}, {\"2100-02-16\", 8}, {\"2100-02-17\", 9}, {\"2100-02-18\", 10}, {\"2100-02-19\", 11}, {\"2100-02-20\", 12}, {\"2100-02-21\", 13}, {\"2100-02-22\", 7}, {\"2100-02-23\", 8}, {\"2100-02-24\", 9}, {\"2100-02-25\", 10}, {\"2100-02-26\", 11}, {\"2100-02-27\", 12}, {\"2100-02-28\", 13}\n }).collect(Collectors.toMap(data -> (String) data[0], data -> (Integer) data[1]));\n //output\n Map<String, Integer> expected1 = Stream.of(new Object[][]{\n {\"Mon\", 22}, {\"Tue\", 26}, {\"Wed\", 30}, {\"Thu\", 40}, {\"Fri\", 44}, {\"Sat\", 48}, {\"Sun\", 52}\n }).collect(Collectors.toMap(data -> (String) data[0], data -> (Integer) data[1]));\n\n\n LinkedHashMap<String, Integer> result = solObj.dateToDay(input1);\n assertEquals(expected1, result);\n\n }", "public final /* synthetic */ Map mo33710j(List list) {\n HashMap hashMap = new HashMap();\n for (C2168bw next : this.f1705f.values()) {\n String str = next.f1693c.f1686a;\n if (list.contains(str)) {\n C2168bw bwVar = (C2168bw) hashMap.get(str);\n if ((bwVar == null ? -1 : bwVar.f1691a) < next.f1691a) {\n hashMap.put(str, next);\n }\n }\n }\n return hashMap;\n }", "public static Map<Integer,Employee1> getEmployeeList(){\r\n\t return employees;\r\n\t \r\n }", "public final Map<String, Integer> mo33708h(List<String> list) {\n return (Map) m968r(new C2164bs(this, list));\n }", "void constructMap(JsonArray array)\n {\n JsonObject obj = array.get(0).getAsJsonObject();\n\n // Loop on them\n for(Map.Entry<String, JsonElement> entry : obj.entrySet())\n {\n String key = entry.getKey(); // ID:TYPE\n if(!(key.matches(\"(\\\\d+):([A-Z_]+)\")))\n continue;\n\n String[] split = key.split(\":\");\n long id = Long.parseLong(split[0]);\n CodeType type = remapLegacyCodeType(split[1]);\n\n Map<CodeType, Map<String, String>> userMap = map.getOrDefault(id, new HashMap<>());\n Map<String, String> codesForTypeMap = userMap.getOrDefault(type, new HashMap<>());\n\n for(Map.Entry<String, JsonElement> code : entry.getValue().getAsJsonObject().entrySet())\n codesForTypeMap.put(code.getKey(), code.getValue().getAsString());\n\n userMap.put(type, codesForTypeMap);\n map.put(id, userMap);\n }\n\n array.remove(obj); // Remove the codes object\n }", "@Test\n void BasicTestCase_inValidMonth() {\n Solution reso = new Solution();\n // Input Dictionary has invalid month\n Map<String, Integer> input1 = Stream.of(new Object[][]{\n {\"2020-71-01\", 6}, {\"2020-01-04\", 12}, {\"2020-01-05\", 14}, {\"2020-01-06\", 2}, {\"2020-01-07\", 4}\n }).collect(Collectors.toMap(data -> (String) data[0], data -> (Integer) data[1]));\n LinkedHashMap<String, Integer> result = reso.dateToDay(input1);\n assertNull(result);\n }", "private Map<String, List<EpisodeACLTransition>> groupByEpisodeId(List<EpisodeACLTransition> ts) {\n return mlist(ts)\n .foldl(MultiMap.<String, EpisodeACLTransition> multiHashMapWithArrayList(),\n new Function2<MultiMap<String, EpisodeACLTransition>, EpisodeACLTransition, MultiMap<String, EpisodeACLTransition>>() {\n @Override\n public MultiMap<String, EpisodeACLTransition> apply(MultiMap<String, EpisodeACLTransition> mmap,\n EpisodeACLTransition t) {\n return mmap.put(t.getEpisodeId(), t);\n }\n }).value();\n }", "public static HashMap<String,Integer> counter(ArrayList<String> arr){\n\t\tHashMap<String,Integer> map = new HashMap<String,Integer>();\n\t\t\tfor(String s : arr){\n\t\t\t\tif (map.keySet().contains(s)){\n\t\t\t\t\tmap.put(s, map.get(s)+1);\n\t\t\t\t}else{\n\t\t\t\t\tmap.put(s, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn map;\t\n\t}", "private static void totalItemsPerMonth(List<Inventory> inventoryList) {\n System.out.println(\"\\nTotal items per month\\n\");\n inventoryList.stream()\n .collect(Collectors.groupingBy(Inventory::getDateUploadMonth, TreeMap::new,Collectors.summingInt(Inventory::getQuantity)))\n .entrySet()\n .stream()\n .forEach(System.out::println);\n }", "private HashMap<String,String> listToMap(List<List<String>> nestedList){\n HashMap<String,String> map=new HashMap<>();\n map.put(\"eventType\",nestedList.get(0).get(0));\n map.put(\"eventCapacity\",nestedList.get(1).get(0));\n map.put(\"eventID\",nestedList.get(2).get(0));\n map.put(\"startTime\",nestedList.get(3).get(0));\n map.put(\"endTime\",nestedList.get(4).get(0));\n map.put(\"roomID\",nestedList.get(5).get(0));\n map.put(\"speakerIDs\",toString(nestedList.get(6)));\n map.put(\"attendeeIDs\",toString(nestedList.get(7)));\n return map;\n }", "HashMap<String, Double> getPortfolioData(String date);", "public final Map<String, Integer> mo34029a(List<String> list) {\n return (Map) m446a(new C1840ci(this, list));\n }", "public static Map<Long, Book> readToMap() throws ApplicationException {\r\n ArrayList<String> bookList = readFile();\r\n Map<Long, Book> books = new HashMap<>();\r\n\r\n for (int i = 0; i < bookList.size(); i++) {\r\n String[] rows = bookList.get(i).split(COMMA_DELIMITER, -1);\r\n Book book = readBookString(rows);\r\n books.put(book.getId(), book);\r\n LOG.debug(String.format(\"%s has been added to the Map\", book.getAuthor()));\r\n\r\n }\r\n\r\n return books;\r\n\r\n }", "Map<DimensionalItemId, DimensionalItemObject> getIndicatorDimensionalItemMap(\n Collection<Indicator> indicators);", "private Map getServiceHistory(String csStatChng) {\r\n\t\t\r\n\t\tMap serviceHistoryMap = new HashMap();\t\t\r\n\t\tchar serviceStatus;\r\n\t\tString serviceStatusDate;\t\r\n\r\n\t\tif (csStatChng != null) {\r\n\t\t\tString[] serviceHistoryArray = csStatChng.split(\"[|]\");\t\t\r\n\t\t\tfor (int i = 0; i < serviceHistoryArray.length; i++) {\r\n\t\t\t\tserviceStatusDate = serviceHistoryArray[i];\r\n\t\t\t\tserviceStatus = serviceStatusDate.charAt(serviceStatusDate.length()-1);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (serviceStatus == ACTIVATE_STATE){\r\n\t\t\t\t\t\tserviceHistoryMap.put(\"Ativado\", DateFormat.format(serviceStatusDate.substring(0, serviceStatusDate.length()-1), \"yymmdd\", \"dd/mm/yyyy\"));\r\n\t\t\t\t\t} else if (serviceStatus == SUSPENSE_STATE) {\r\n\t\t\t\t\t\tserviceHistoryMap.put(\"Suspenso\", DateFormat.format(serviceStatusDate.substring(0, serviceStatusDate.length()-1), \"yymmdd\", \"dd/mm/yyyy\"));\r\n\t\t\t\t\t} else if (serviceStatus == DEACTIVATE_STATE) {\r\n\t\t\t\t\t\tserviceHistoryMap.put(\"Desativado\", DateFormat.format(serviceStatusDate.substring(0, serviceStatusDate.length()-1), \"yymmdd\", \"dd/mm/yyyy\"));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tserviceHistoryMap.put(\"\", DateFormat.format(serviceStatusDate.substring(0, serviceStatusDate.length()-1), \"yymmdd\", \"dd/mm/yyyy\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch(ParseException e) {\r\n\t\t\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\r\n\r\n\t\treturn serviceHistoryMap;\r\n\t\t\r\n\t}", "public Map<DataDate, ArrayList<String>> CloneListDatesFiles()\r\n {\r\n Map<DataDate, ArrayList<String>> filesMap = new HashMap<DataDate, ArrayList<String>>();\r\n ArrayList<String> files;\r\n\r\n if(!mapDatesFilesSet)\r\n {\r\n synchronized(mapDatesFilesSet)\r\n {\r\n if(!mapDatesFilesSet)\r\n {\r\n System.out.println(\"Creating ListDatesFiles map for '\" + mData.Title + \"':'\" + mData.name + \"'.\");\r\n if ((mData.mode).equalsIgnoreCase(\"FTP\"))\r\n {\r\n mapDatesFiles = ListDatesFilesFTP();\r\n };\r\n\r\n if ((mData.mode).equalsIgnoreCase(\"HTTP\"))\r\n {\r\n mapDatesFiles = ListDatesFilesHTTP();\r\n };\r\n System.out.println(\"Finished creating ListDatesFiles map for '\" + mData.Title + \"':'\" + mData.name + \"'.\");\r\n }\r\n mapDatesFilesSet = new Boolean(true);\r\n }\r\n }\r\n\r\n for(DataDate dd : mapDatesFiles.keySet())\r\n {\r\n files = new ArrayList<String>();\r\n for(String file : mapDatesFiles.get(dd))\r\n {\r\n files.add(new String(file));\r\n }\r\n filesMap.put(dd, files);\r\n }\r\n return filesMap;\r\n }", "public static Map<String, Long> countActivitiesWholePeriod(List<MonitoredData> data){\n ArrayList<String> activities = new ArrayList<>();\n for(int i=0; i<data.size(); i++){\n activities.add(data.get(i).getActivity());\n }\n Map<String, Long> counts =\n activities.stream().collect(Collectors.groupingBy(e -> e, Collectors.counting()));\n return counts;\n }", "private static Map<Integer, List<StudentRecord>> razvrstajStudentePoOcjenama(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t.collect(Collectors.groupingBy(o -> o.getOcjena()));\n\t}", "@Override\n public List<Map<Object, Object>> parseHourlyForecastInformationToList(Page<HourlyForecast> hourlyForecasts) {\n log.debug(\"attempting to convert the necessary information to display hourly forecasts\");\n List<Map<Object, Object>> parsedHourlyForecasts = new ArrayList<>();\n String xAxisLabel = \"label\";\n String yAxisLabel = \"y\";\n for (HourlyForecast hourlyForecast : hourlyForecasts) {\n hourlyForecast.convertTime();\n Map<Object, Object> map = new HashMap<>();\n map.put(xAxisLabel, hourlyForecast.getFormattedTime());\n map.put(yAxisLabel, hourlyForecast.getTemperature());\n parsedHourlyForecasts.add(map);\n }\n return parsedHourlyForecasts;\n }", "abstract protected Map<DataDate, ArrayList<String>> ListDatesFilesFTP();", "private void extractDataFromOrders(List<Order> orders) {\n ArrayList<LocalDate> orderedListOfMapDays = new ArrayList<LocalDate>();\n HashMap<LocalDate, Integer> dateToCoffeeCaffeineMap = new HashMap<LocalDate, Integer>(), dateToTeaCaffeineMap = new HashMap<LocalDate, Integer>();\n HashMap<LocalDate, Double> dateToCoffeeExpenditureMap = new HashMap<LocalDate, Double>(), dateToTeaExpenditureMap = new HashMap<LocalDate, Double>();\n for (int i = 0; i < 8; i++) {\n LocalDate date = ONE_WEEK_AGO.plusDays(i);\n dateToCoffeeCaffeineMap.put(date, 0);\n dateToTeaCaffeineMap.put(date, 0);\n dateToCoffeeExpenditureMap.put(date, 0.0);\n dateToTeaExpenditureMap.put(date, 0.0);\n orderedListOfMapDays.add(date);\n }\n\n // loop through orders, comparing their days and adding values accordingly\n for (Order order : orders) {\n if (order == null) continue;\n // dates (in milliseconds) from orders are clocked to start of day and converted to dates\n LocalDateTime tempDateResetTime = order.getDate().toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDate().atStartOfDay();\n LocalDate tempDate = tempDateResetTime.toLocalDate();\n Log.d(TAG, \"ORDER ON DAY: \" + tempDate);\n\n if (ONE_WEEK_AGO.isBefore(tempDate) || ONE_WEEK_AGO.isEqual(tempDate)) {\n // CAFFEINE\n // coffee caffeine\n int dailyCaffeineFromCoffee = 0;\n dailyCaffeineFromCoffee += (order.getTotalCaffeineFromCoffee(true) > 0 ? order.getTotalCaffeineFromCoffee(true) :\n order.getTotalCaffeineFromCoffee(false) > 0 ? order.getTotalCaffeineFromCoffee(false) : 0);\n dateToCoffeeCaffeineMap.put(tempDate, dateToCoffeeCaffeineMap.get(tempDate) + dailyCaffeineFromCoffee);\n // tea caffeine\n int dailyCaffeineFromTea = 0;\n dailyCaffeineFromTea += (order.getTotalCaffeineFromTea(true) > 0 ? order.getTotalCaffeineFromTea(true) :\n order.getTotalCaffeineFromTea(false) > 0 ? order.getTotalCaffeineFromTea(false) : 0);\n dateToTeaCaffeineMap.put(tempDate, dateToTeaCaffeineMap.get(tempDate) + dailyCaffeineFromTea);\n\n // EXPENDITURES\n // coffee cost\n double dailyExpenditureFromCoffee = 0.0;\n dailyExpenditureFromCoffee += (order.getTotalCostFromCoffee(true) > 0 ? order.getTotalCostFromCoffee(true) :\n order.getTotalCostFromCoffee(false) > 0 ? order.getTotalCostFromCoffee(false) : 0.0);\n dateToCoffeeExpenditureMap.put(tempDate, dateToCoffeeExpenditureMap.get(tempDate) + dailyExpenditureFromCoffee);\n // tea cost\n double dailyExpenditureFromTea = 0.0;\n dailyExpenditureFromTea += (order.getTotalCostFromTea(true) > 0 ? order.getTotalCostFromTea(true) :\n order.getTotalCostFromTea(false) > 0 ? order.getTotalCostFromTea(false) : 0.0);\n dateToTeaExpenditureMap.put(tempDate, dateToTeaExpenditureMap.get(tempDate) + dailyExpenditureFromTea);\n }\n }\n\n // CAFFEINE SERIES\n coffeeCaffeineSeries = new DateIntegerSeries(\"Coffee\");\n teaCaffeineSeries = new DateIntegerSeries(\"Tea\");\n // for formatting, add an empty value at FRONT of series\n coffeeCaffeineSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n teaCaffeineSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n for (int i = 0; i < orderedListOfMapDays.size(); i++) {\n LocalDate localDate = orderedListOfMapDays.get(i);\n Integer coffeeCaffeine = dateToCoffeeCaffeineMap.get(localDate);\n Integer teaCaffeine = dateToTeaCaffeineMap.get(localDate);\n\n Long date = Date.from(localDate.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime();\n\n coffeeCaffeineSeries.add(date, coffeeCaffeine);\n teaCaffeineSeries.add(date, teaCaffeine);\n }\n // for formatting, add an empty value to BACK of series\n coffeeCaffeineSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n teaCaffeineSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n\n // EXPENDITURE SERIES\n coffeeExpenditureSeries = new DateDoubleSeries(\"Coffee\");\n teaExpenditureSeries = new DateDoubleSeries(\"Tea\");\n // for formatting, add an empty value at FRONT of series\n coffeeExpenditureSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n teaExpenditureSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n for (int i = 0; i < orderedListOfMapDays.size(); i++) {\n LocalDate localDate = orderedListOfMapDays.get(i);\n Double coffeeExpenditure = dateToCoffeeExpenditureMap.get(localDate);\n Double teaExpenditure = dateToTeaExpenditureMap.get(localDate);\n\n Long date = Date.from(localDate.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime();\n\n coffeeExpenditureSeries.add(date, coffeeExpenditure);\n teaExpenditureSeries.add(date, teaExpenditure);\n }\n // for formatting, add an empty value to BACK of series\n coffeeExpenditureSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n teaExpenditureSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n }", "private static synchronized void initializeMeasureMaps() {\n\t\tintensityMeasuresList=ExerciseIntensityMeasure.getAll();\n\t\tquantityMeasuresList=ExerciseQuantityMeasure.getAll();\n\t\tintensityCodesToNamesMap=new HashMap(intensityMeasuresList.size());\n\t\tquantityCodesToNamesMap=new HashMap(quantityMeasuresList.size());\n\n\t\t// these (and the lists above) come from the db, but they can be static \n\t\t// because they change so infrequently (haven't changed in five years and\n\t\t// counting), and only manually via the db.\n\t\tfor (int i=0; i<intensityMeasuresList.size(); i++) {\n\t\t\tfinal ExerciseIntensityMeasure m=(ExerciseIntensityMeasure)intensityMeasuresList.get(i);\n\t\t\tintensityCodesToNamesMap.put(m.getCode(),m.getName());\n\t\t}\n\t\tfor (int i=0; i<quantityMeasuresList.size(); i++) {\n\t\t\tfinal ExerciseQuantityMeasure m=(ExerciseQuantityMeasure)quantityMeasuresList.get(i);\n\t\t\tquantityCodesToNamesMap.put(m.getCode(),m.getName());\n\t\t}\n\t\tmeasureMapsInitialized=true;\n\t\t\n\t}", "public static Map<String, String> getSeasonInfoList(){\n\t\tMap<String, String> rs = new LinkedHashMap<String, String>();\n\t\trs.put(\"-1\", \"---please select---\");\n\t\trs.put(\"SP\", \"Spring\");\n\t\trs.put(\"SU\", \"Summer\");\n\t\trs.put(\"AU\", \"Autumn\");\n\t\trs.put(\"WI\", \"Winter\");\n\t\t\n\t\treturn rs;\n\t}", "private Map<String, ReportRow> convertCountryIndicatorsToReports(final Map<Integer, List<Object[]>> listOfIndicators) {\n\t\tfinal Map<String, ReportRow> reportRows = new HashMap<String, ReportRow>();\n\n\t\tfor (final Integer key : listOfIndicators.keySet()) {\n\t\t\tfor (final Object[] record : listOfIndicators.get(key)) {\n\t\t\t\tfinal String indicatorTypeCode = record[0].toString();\n\t\t\t\t// records with only 1 value are just placeholders, but don't contain actual data\n\t\t\t\tif (record.length > 1) {\n\t\t\t\t\tif (reportRows.containsKey(indicatorTypeCode)) {\n\t\t\t\t\t\treportRows.get(indicatorTypeCode).addValue(key, record[3].toString());\n\t\t\t\t\t\t// add a value\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfinal String sourceCode = record[6].toString();\n\t\t\t\t\t\tfinal ReportRow row = new ReportRow(indicatorTypeCode, record[1].toString(), sourceCode, record[2].toString());\n\n\t\t\t\t\t\tfinal List<DataSerieMetadata> results = getMetadataForDataSerie(new DataSerie(indicatorTypeCode, sourceCode));\n\n\t\t\t\t\t\tDataSerieMetadata methodologyMetadata = null;\n\t\t\t\t\t\tDataSerieMetadata moreInfoMetadata = null;\n\t\t\t\t\t\tDataSerieMetadata datasetSummaryMetadata = null;\n\t\t\t\t\t\tDataSerieMetadata termOfUseMetadata = null;\n\t\t\t\t\t\tfor (final DataSerieMetadata dataSerieMetadata : results) {\n\t\t\t\t\t\t\tswitch (dataSerieMetadata.getEntryKey()) {\n\t\t\t\t\t\t\tcase METHODOLOGY:\n\t\t\t\t\t\t\t\tmethodologyMetadata = dataSerieMetadata;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase MORE_INFO:\n\t\t\t\t\t\t\t\tmoreInfoMetadata = dataSerieMetadata;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DATASET_SUMMARY:\n\t\t\t\t\t\t\t\tdatasetSummaryMetadata = dataSerieMetadata;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase TERMS_OF_USE:\n\t\t\t\t\t\t\t\ttermOfUseMetadata = dataSerieMetadata;\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfinal String methodologyMetadataAsString = methodologyMetadata != null ? methodologyMetadata.getEntryValue().getDefaultValue() : \"\";\n\t\t\t\t\t\t\trow.addMetadata(MetadataName.METHODOLOGY, methodologyMetadataAsString);\n\n\t\t\t\t\t\t\tfinal String moreInfoMetadataAsString = moreInfoMetadata != null ? moreInfoMetadata.getEntryValue().getDefaultValue() : \"\";\n\t\t\t\t\t\t\trow.addMetadata(MetadataName.MORE_INFO, moreInfoMetadataAsString);\n\n\t\t\t\t\t\t\tfinal String datasetSummaryMetadataAsString = datasetSummaryMetadata != null ? datasetSummaryMetadata.getEntryValue().getDefaultValue() : \"\";\n\t\t\t\t\t\t\trow.addMetadata(MetadataName.DATASET_SUMMARY, datasetSummaryMetadataAsString);\n\n\t\t\t\t\t\t\tfinal String termOfUseMetadataAsString = termOfUseMetadata != null ? termOfUseMetadata.getEntryValue().getDefaultValue() : \"\";\n\t\t\t\t\t\t\trow.addMetadata(MetadataName.TERMS_OF_USE, termOfUseMetadataAsString);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\trow.addValue(key, record[3].toString());\n\t\t\t\t\t\treportRows.put(indicatorTypeCode, row);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn reportRows;\n\t}", "public Map<String, List<String>> getMafMap(List<MafRecord> mafRecords) {\n\t\tMap<String, List<String>> mafDictionary = new HashMap<String, List<String>>();\n\t\tfor (MafRecord mafRecord : mafRecords) {\n\t\t\tString originalRead = mafRecord.getMafRecord().get(0).getSeqValue();\n\t\t\tString artificialRead = mafRecord.getMafRecord().get(1).getSeqValue();\n\t\t\tString mafSeqName = mafRecord.getMafRecord().get(1).getSeqName();\n\t\t\tString sign = String.valueOf(mafRecord.getMafRecord().get(1).getSign());\n\t\t\tList<String> seqInf = Arrays.asList(artificialRead, originalRead, sign);\n\t\t\tmafDictionary.put(mafSeqName, seqInf);\n\t\t}\n\t\treturn mafDictionary;\n\t}", "private ArrayList<ArrayList<String>> getMonthEvents(ArrayList<Event> yearList)\n throws PacException {\n\n ArrayList<ArrayList<String>> monthList = initializeMonthList();\n for (Event event : yearList) {\n int month = event.getMonth();\n String description = getEventDescription(event);\n switch (month) {\n case 1:\n case 7:\n monthList.get(0).add(description);\n break;\n case 2:\n case 8:\n monthList.get(1).add(description);\n break;\n case 3:\n case 9:\n monthList.get(2).add(description);\n break;\n case 4:\n case 10:\n monthList.get(3).add(description);\n break;\n case 5:\n case 11:\n monthList.get(4).add(description);\n break;\n case 6:\n case 12:\n monthList.get(5).add(description);\n break;\n default:\n throw new PacException(MONTH_NOT_FOUND_ERROR_MESSAGE);\n }\n }\n return monthList;\n }", "private static Map<Long, Set<XliffAlt>> getXliffAltMap(List<XliffAlt> alts)\n {\n // tuvId : Set<XliffAlt>\n Map<Long, Set<XliffAlt>> xlfAltMap = new HashMap<Long, Set<XliffAlt>>();\n\n for (XliffAlt alt : alts)\n {\n Set<XliffAlt> myAlts = xlfAltMap.get(alt.getTuvId());\n if (myAlts == null)\n {\n myAlts = new HashSet<XliffAlt>();\n myAlts.add(alt);\n xlfAltMap.put(alt.getTuvId(), myAlts);\n }\n else\n {\n myAlts.add(alt);\n xlfAltMap.put(alt.getTuvId(), myAlts);\n }\n }\n\n return xlfAltMap;\n }", "@Test\n public void testDetecterAnomalieNbrMinimalItem() {\n\n POJOCompteItem instance = genererInstanceTest();\n instance.setDate1(new DateTime(2013, 1, 1, 0, 1).toDate());\n instance.setDate2(new DateTime(2013, 1, 6, 0, 1).toDate());\n\n\n System.out.println(\"detecterAnomalieNbrMinimalItem-----\");\n \n try {\n instance.compte();\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n Map<Date, Integer> result = instance.detecterAnomalieNbrMinimalItem(0, 50);\n if (!result.isEmpty()) {\n fail(\"On ne devait pas avoir de résultats\");\n }\n\n\n result = instance.detecterAnomalieNbrMinimalItem(1, 3);\n if (!result.isEmpty()) {\n fail(\"On ne devait pas avoir de résultat il y en a \" + result.size());\n }\n\n\n result = instance.detecterAnomalieNbrMinimalItem(1, 1);\n if (result.isEmpty()) {\n for (Map.Entry<Date, Integer> entry : result.entrySet()) {\n Date date = entry.getKey();\n Integer integer = entry.getValue();\n System.out.println(\"Date \" + date + \" nbr : \" + integer);\n\n }\n fail(\"il devait y avoir des résultats. On en a \" + result.size());\n }\n\n Item it2 = new Item();\n it2.setDateRecup(new DateTime(2013, 1, 16, 0, 1).toDate());\n\n instance.getItems().add(it2);\n instance.setDate2(new DateTime(2013, 1, 16, 0, 1).toDate());\n try {\n instance.compte();\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n result = instance.detecterAnomalieNbrMinimalItem(1, 4);\n \n System.out.println(\"NBR : \" + result.size());\n if(result.size() != 9){\n fail(\"On revait avoir 12 résultats. on en a \" + result.size());\n }\n\n }", "public Map<String, Object> getMapData(int iusid, int timeperiodid);", "public static List<Map<String,Object>> getData(){\n\t\tList<Map<String,Object>> coupons = new ArrayList<Map<String,Object>>();\n\t\t\n\t\tMap<String,Object> ChoclateCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> MeatCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> ChkCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> FruitCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> FishCpnSalmon = new HashMap<String,Object>();\n\t\tMap<String,Object> FishCpnCatish = new HashMap<String,Object>();\n\t\t\n\t\tChoclateCpn.put(\"sku\" , \"SKU001\");\n\t\tChoclateCpn.put(\"id\",\"100\");\n\t\tChoclateCpn.put(\"type\",\"GROC\");\n\t\tChoclateCpn.put(\"price\",12);\n\t\tChoclateCpn.put(\"amount\",2);\n\t\t\n\t\tMeatCpn.put(\"sku\" , \"SKU002\");\n\t\tMeatCpn.put(\"id\",\"101\");\n\t\tMeatCpn.put(\"type\",\"MT\");\n\t\tMeatCpn.put(\"price\",10);\n\t\tMeatCpn.put(\"amount\",2);\n\t\t\n\t\tChkCpn.put(\"sku\" , \"SKU003\");\n\t\tChkCpn.put(\"id\",\"103\");\n\t\tChkCpn.put(\"type\",\"MT\");\n\t\tChkCpn.put(\"price\",6);\n\t\tChkCpn.put(\"amount\",1);\n\t\t\n\t\tFruitCpn.put(\"sku\" , \"SKU004\");\n\t\tFruitCpn.put(\"id\",\"104\");\n\t\tFruitCpn.put(\"type\",\"FRUT\");\n\t\tFruitCpn.put(\"price\", 20);\n\t\tFruitCpn.put(\"amount\", 4);\n\t\t\n\t\tFishCpnSalmon.put(\"sku\" , \"SKU005\");\n\t\tFishCpnSalmon.put(\"id\",\"105\");\n\t\tFishCpnSalmon.put(\"type\",\"MT\");\n\t\tFishCpnSalmon.put(\"price\", 12);\n\t\tFishCpnSalmon.put(\"amount\", 2);\n\t\t\n\t\tFishCpnCatish.put(\"sku\" , \"SKU006\");\n\t\tFishCpnCatish.put(\"id\",\"106\");\n\t\tFishCpnCatish.put(\"type\",\"MT\");\n\t\tFishCpnCatish.put(\"price\", 5 );\n\t\tFishCpnCatish.put(\"amount\", 1.5 );\n\t\t\n\t\tcoupons.add( ChoclateCpn);\n\t\tcoupons.add( MeatCpn );\n\t\t\n\t\tcoupons.add( ChkCpn );\n\t\tcoupons.add( FruitCpn );\n\t\t\n\t\tcoupons.add( FishCpnSalmon );\n\t\tcoupons.add( FishCpnCatish );\n\t\t\n\t\treturn coupons;\n\t}", "private Map<Integer, Mdr5Record> makeCityMap(MapReader mr) {\n \t\tList<City> cities = mr.getCities();\n \n \t\tMap<Integer, Mdr5Record> cityMap = new LinkedHashMap<Integer, Mdr5Record>();\n \t\tfor (City c : cities) {\n \t\t\tint key = (c.getSubdivNumber() << 8) + (c.getPointIndex() & 0xff);\n \t\t\tassert key < 0xffffff;\n \t\t\tcityMap.put(key, new Mdr5Record(c));\n \t\t}\n \n \t\treturn cityMap;\n \t}", "private Map<String, Object> createDefaultMap() {\n Map<String, Object> result = new LinkedHashMap<>();\n result.put(\"stream_speed0\", 1);\n result.put(\"stream_start0\", 0);\n result.put(\"stream_end0\", 7);\n result.put(\"stream_speed1\", -2);\n result.put(\"stream_start1\", 15);\n result.put(\"stream_end1\", 19);\n\n result.put(\"fish_quantity\", numFishes);\n result.put(\"fish_reproduction\", 3);\n result.put(\"fish_live\", 10);\n result.put(\"fish_speed\", 2);\n result.put(\"fish_radius\", 4);\n\n result.put(\"shark_quantity\", numSharks);\n result.put(\"shark_live\", 20);\n result.put(\"shark_hungry\", 7);\n result.put(\"shark_speed\", 2);\n result.put(\"shark_radius\", 5);\n\n return result;\n }", "public static HashMap<String, Integer> convertArrayListToHashMap(\n ArrayList<String> arr)\n {\n HashMap<String, Integer> hm = new HashMap<String, Integer>();\n\n for (int i = 0; i < arr.size(); i++)\n hm.put(arr.get(i), i);\n\n return hm;\n\n }", "public final Map<String, Object> buildMap(Object... objs) {\n Map<String, Object> out = new LinkedHashMap<>();\n for (int i = 0; i < objs.length; i += 2) {\n out.put(objs[i].toString(), objs[i + 1]);\n }\n return out;\n }", "public HashMap<Integer, User> process(List<User> list) {\n HashMap<Integer, User> listMap = new HashMap<>();\n Iterator<User> iterator = list.iterator();\n while (iterator.hasNext()) {\n User temp = iterator.next();\n if (temp != null) {\n listMap.put(temp.getId(), temp);\n }\n }\n return listMap;\n }", "public static List<StockTradeData> convertToStockTradeData(Map<String, Object> map) {\n List<StockTradeData> stockTradeDataList = new ArrayList<>();\n\n Map<String, Object> dataMap = (Map<String, Object>) map.get(\"data\");\n\n for (Map.Entry<String, Object> entry : dataMap.entrySet()) {\n String stockCode = entry.getKey();\n Map<String, Object> qfqDayMap = (Map<String, Object>) entry.getValue();\n\n Object obj = qfqDayMap.get(\"day\");\n\n if (obj == null) {\n obj = qfqDayMap.get(\"qfqday\");\n }\n\n List<List<String>> stockDailyList = (List<List<String>>) obj;\n\n for (List<String> stockDaily: stockDailyList) {\n StockTradeData stockTradeData = new StockTradeData();\n stockTradeData.setCode(stockCode);\n stockTradeData.setDate(LocalDate.parse(stockDaily.get(0)));\n stockTradeData.setOpenPrice(convertToBigDecimal(stockDaily.get(1)));\n stockTradeData.setClosePrice(convertToBigDecimal(stockDaily.get(2)));\n stockTradeData.setHighPrice(convertToBigDecimal(stockDaily.get(3)));\n stockTradeData.setLowPrice(convertToBigDecimal(stockDaily.get(4)));\n stockTradeData.setVolume(convertToBigDecimal(stockDaily.get(5)));\n stockTradeDataList.add(stockTradeData);\n }\n }\n\n return stockTradeDataList;\n }", "@Test\n void BasicTestCase_PositiveExtremeYear() {\n Solution solObj = new Solution();\n\n //Input Dictionary has year as 2100\n Map<String, Integer> input1 = Stream.of(new Object[][]{\n {\"2100-01-14\", 7}, {\"2100-01-15\", 8}, {\"2100-01-16\", 9}, {\"2100-01-17\", 10}, {\"2100-01-18\", 11}, {\"2100-01-19\", 12}, {\"2100-01-20\", 13}\n }).collect(Collectors.toMap(data -> (String) data[0], data -> (Integer) data[1]));\n //output\n Map<String, Integer> expected1 = Stream.of(new Object[][]{\n {\"Mon\", 11}, {\"Tue\", 12}, {\"Wed\", 13}, {\"Thu\", 7}, {\"Fri\", 8}, {\"Sat\", 9}, {\"Sun\", 10}\n }).collect(Collectors.toMap(data -> (String) data[0], data -> (Integer) data[1]));\n\n\n LinkedHashMap<String, Integer> result = solObj.dateToDay(input1);\n assertEquals(expected1, result);\n\n }", "public Map<ERest,Object> invoiceList(String stId){\n Map<ERest,Object> hm = new LinkedHashMap<>();\n List<Sales> salesList = new ArrayList<>();\n try {\n int id = Integer.parseInt(stId);\n salesList = salesRepo.findByCustomer_CuIdEquals(id);\n hm.put(ERest.status,true);\n hm.put(ERest.message,\"Müşteri fatura listeleme işlemi başarılı!\");\n hm.put(ERest.result,salesList);\n } catch (Exception e) {\n String error = \"Listeleme sırasında bir hata oluştu!\" + e;\n hm.put(ERest.status,false);\n hm.put(ERest.message,error);\n Util.logger(error, Sales.class);\n }\n return hm;\n }", "void transform(Map<String, List<Map<String,String>>> data, long startTime, long endTime);", "@Override\n public List<Integer> findMemberCntByMonthList(List<String> monthList) {\n List<Integer> list = new ArrayList<>();\n /*monthList.forEach(month->{\n month = month.replaceAll(\".\",\"-\")+\"-31\";\n Integer cnt = memberDao.findMemberCountBeforeDate(month);\n list.add(cnt);\n });*/\n for (String month : monthList) {\n month = month.replace(\".\",\"-\")+\"-31\";\n Integer cnt = memberDao.findMemberCountBeforeDate(month);\n list.add(cnt);\n }\n return list;\n }", "private static Map<Integer, Integer> vratiBrojStudenataPoOcjenama(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t\t\t.collect(Collectors.toMap(StudentRecord::getGrade, s -> 1, (o, n) -> o + 1));\n\t}", "public static Map<String, List<String>> convertToMap (List<Book> books) {\n\n if(books == null) {\n return null;\n } else {\n return books.stream()\n .collect(Collectors.groupingBy(book -> capitalize(book.getAuthor()),\n Collectors.mapping(book -> capitalize(book.getTitle()), Collectors.toList())));\n }\n }", "private static <T extends AbstractApiIdentifiableDTO> Map<Long, List<T>> generateIdMapList(List<T> idList) {\n Map<Long, List<T>> results = new HashMap<>();\n\n for (T idSingle : idList) {\n Long sourceId = idSingle.getId();\n if (results.containsKey(sourceId)) {\n results.get(sourceId).add(idSingle);\n } else {\n // ID didn't exist so add a new list\n List<T> list = new ArrayList<>(1);\n list.add(idSingle);\n results.put(sourceId, list);\n }\n }\n\n return results;\n }", "public static Map appointments(String _response) throws JSONException {\r\n JSONObject obj = new JSONObject(_response);\r\n JSONArray info = obj.getJSONArray(\"appointments\");\r\n /*String apptData = null;\r\n for (int i = 0; i < info.length(); i++) {\r\n JSONObject appointment = info.getJSONObject(i);\r\n apptData = appointment.getString(\"id\");\r\n System.out.println(\"Appointment Id: \" + apptData);\r\n apptData = appointment.getString(\"title\");\r\n System.out.println(\"title: \" + apptData);\r\n apptData = appointment.getString(\"created\");\r\n System.out.println(\"created: \" + apptData);\r\n apptData = appointment.getString(\"start\");\r\n System.out.println(\"start: \" + apptData);\r\n apptData = appointment.getString(\"end\");\r\n System.out.println(\"end: \" + apptData);\r\n apptData = appointment.getString(\"note\");\r\n System.out.println(\"note: \" + apptData);\r\n System.out.println(\" \");\r\n\r\n }*/\r\n\r\n Map<String, String> apptData = new HashMap<>();\r\n for (int i = 0; i < info.length(); i++) {\r\n JSONObject appointment = info.getJSONObject(i);\r\n String id = appointment.getString(\"id\");\r\n apptData.put(\"AppointmetnId\", id);\r\n String title = appointment.getString(\"title\");\r\n apptData.put(\"title\", title);\r\n String created = appointment.getString(\"created\");\r\n apptData.put(\"created\", created);\r\n String start = appointment.getString(\"start\");\r\n apptData.put(\"start\", start);\r\n String end = appointment.getString(\"end\");\r\n apptData.put(\"end\", end);\r\n String note = appointment.getString(\"note\");\r\n apptData.put(\"note\", note);\r\n\r\n }\r\n return apptData;\r\n\r\n }", "public static void main(String[] args) {\n\t\tMap<BigDecimal, String> result3 = items.stream()\r\n\t\t\t\t.collect(Collectors.toMap(Item::getPrice, Item::getName, (s, a) -> s + \", \" + a));\r\n\t\tresult3.forEach((k, v) -> System.out.println(k + \" \" + v));\r\n\r\n\t\tMap<Integer, String> map = items.stream()\r\n\t\t\t\t.collect(Collectors.toMap(Item::getQuantity, Item::getName, (x, y) -> x + \", \" + y));\r\n\t\tmap.forEach((x, y) -> System.out.println(\"Key: \" + x + \", value: \" + y));\r\n\t\tMap<Integer, String> map1 = items.stream().collect(\r\n\t\t\t\tCollectors.toMap(Item::getQuantity, Item::getName, (x, y) -> x + \", \" + y, LinkedHashMap::new));\r\n\t\tmap.forEach((x, y) -> System.out.println(\"Key: \" + x + \", value: \" + y));\r\n\r\n\t\t/*\r\n\t\t * Map<BigDecimal, List<Item>> result1 =\r\n\t\t * items.stream().collect(Collectors.groupingBy(Item::getPrice));\r\n\t\t * Map<BigDecimal, List<Item>> result2 = items.stream()\r\n\t\t * .collect(Collectors.groupingBy(Item::getPrice, Collectors.toList()));\r\n\t\t * Map<BigDecimal, Item> result4 =\r\n\t\t * items.stream().collect(Collectors.toMap(Item::getPrice, Item -> Item));\r\n\t\t * Map<BigDecimal, String> toMapuse = items.stream()\r\n\t\t * .collect(Collectors.toMap(Item::getPrice, Item::getName, (s, a) -> s + \", \" +\r\n\t\t * a)); ///toMapuse.forEach((k, v) -> System.out.print(k + \" \" + v));\r\n\t\t */\r\n\t}", "@Test\n void BasicTestCase_MidRangeYear() {\n Solution solObj = new Solution();\n // Input Dictionary only consists of Monday and Sunday in year 2035\n Map<String, Integer> input2 = Stream.of(new Object[][]{\n {\"2035-12-30\", 30}, {\"2035-12-24\", 24}\n }).collect(Collectors.toMap(data -> (String) data[0], data -> (Integer) data[1]));\n\n //output\n Map<String, Integer> expected2 = Stream.of(new Object[][]{\n {\"Mon\", 24}, {\"Tue\", 25}, {\"Wed\", 26}, {\"Thu\", 27}, {\"Fri\", 28}, {\"Sat\", 29}, {\"Sun\", 30}\n }).collect(Collectors.toMap(data -> (String) data[0], data -> (Integer) data[1]));\n\n LinkedHashMap<String, Integer> result = solObj.dateToDay(input2);\n assertEquals(expected2, result);\n }", "public HashMap toHash() {\n HashMap x = new HashMap();\n\n x.put(\"type\",\"media\");\n x.put(\"mediaid\",mediaid);\n x.put(\"title\",mediatitle);\n x.put(\"episodetitle\",episodetitle);\n x.put(\"mediapath\",mediapath);\n x.put(\"description\",Description);\n x.put(\"mediaencoding\",mediaencoding);\n x.put(\"mediatype\",mediatype);\n x.put(\"mediagroup\", mediagroup);\n x.put(\"mediasize\", getMediasize());\n x.put(\"mediaduration\", getMediaduration());\n// x.put(\"lastwatched\",lastwatched);\n x.put(\"airingstarttime\",airingstarttime);\n x.put(\"userrating\",userrating);\n x.put(\"mpaarated\",mpaarated);\n x.put(\"releasedate\",releasedate);\n x.put(\"genre\",genre);\n x.put(\"trailer\", getTrailer());\n x.put(\"mediaimporttime\", getMediaimporttime());\n\n if ( MediaFileAPI.IsTVFile(MediaFileAPI.GetMediaFileForID(mediaid))) {\n// ortus.api.DebugLogTrace(\"toHash() loading TV\");\n Object mf = MediaFileAPI.GetMediaFileForID(mediaid);\n x.put(\"channelname\",AiringAPI.GetAiringChannelName(mf));\n x.put(\"channelnumber\",AiringAPI.GetAiringChannelNumber(mf));\n x.put(\"airingduration\",AiringAPI.GetAiringDuration(mf));\n x.put(\"airingstarttime\",AiringAPI.GetAiringStartTime(mf));\n x.put(\"airingendtime\",AiringAPI.GetAiringEndTime(mf));\n }\n\n if ( seriesid > 0)\n x.put(\"seriesid\",seriesid);\n if ( seasonno > 0)\n x.put(\"seasonno\",seasonno);\n if ( episodeid > 0)\n x.put(\"episodeid\",episodeid);\n if ( episodeno > 0)\n x.put(\"episodeno\",episodeno);\n// List castlist = new ArrayList();\n// for ( Cast ic : cast) {\n// HashMap y = new HashMap();\n// y.put(\"name\",ic.getName());\n// y.put(\"job\",ic.getJob());\n// y.put(\"character\",ic.getCharacter());\n// castlist.add(y);\n// }\n// x.put(\"cast\",castlist);\n// ortus.api.DebugLogTrace(\"toHash() loading fanart\");\n if ( fanart.get(\"Backgrounds\") != null) {\n // x.put(\"background_high\", ortus.api.GetFanartFolder() + java.io.File.separator + ((Fanart)fanart.get(\"Backgrounds\").get(\"high\").get(0)).getFile());\n x.put(\"background_id\",((Fanart)fanart.get(\"Backgrounds\").get(\"high\").get(0)).getId());\n }\n if ( fanart.get(\"Posters\") != null) {\n // x.put(\"posters_high\", ortus.api.GetFanartFolder() + java.io.File.separator + ((Fanart)fanart.get(\"Posters\").get(\"high\").get(0)).getFile());\n x.put(\"posters_id\",((Fanart)fanart.get(\"Posters\").get(\"high\").get(0)).getId());\n }\n if ( fanart.get(\"Banners\") != null) {\n // x.put(\"banners_high\", ortus.api.GetFanartFolder() + java.io.File.separator + ((Fanart)fanart.get(\"Banners\").get(\"high\").get(0)).getFile());\n x.put(\"banners_id\",((Fanart)fanart.get(\"Banners\").get(\"high\").get(0)).getId());\n }\n// ortus.api.DebugLogTrace(\"GetMetadata: Returning: \" + x);\n \n return x;\n }", "private Map<String, List<SeriesACLTransition>> groupBySeriesId(List<SeriesACLTransition> ts) {\n return mlist(ts)\n .foldl(MultiMap.<String, SeriesACLTransition> multiHashMapWithArrayList(),\n new Function2<MultiMap<String, SeriesACLTransition>, SeriesACLTransition, MultiMap<String, SeriesACLTransition>>() {\n @Override\n public MultiMap<String, SeriesACLTransition> apply(MultiMap<String, SeriesACLTransition> mmap,\n SeriesACLTransition t) {\n return mmap.put(t.getSeriesId(), t);\n }\n }).value();\n }", "public static List<Map<String, BigDecimal>> getHashMaps(Portfolio portfolio) {\n //List of maps to store dates along with their adj. closing prices on those dates\n List<Map<String, BigDecimal>> portfolioPriceMap = new ArrayList<Map<String, BigDecimal>>();\n\n for (int i = 0; i < portfolio.getSize(); i++) {\n Map<String, BigDecimal> positionPriceMap = new HashMap<String, BigDecimal>();\n List<HistoricalQuote> currentPositionData = portfolio.getPosition(i).getHistoricalData();\n\n for (int j = 0; j < currentPositionData.size(); j++) {\n String currentDate = dateFormat.format(currentPositionData.get(j).getDate().getTime());\n\n positionPriceMap.put(currentDate, currentPositionData.get(j).getAdjClose());\n }\n\n portfolioPriceMap.add(positionPriceMap); //Add this price map to the portfolio's price map\n }\n\n return portfolioPriceMap;\n }", "private Map<String,MyTargetsBean> getALMyTargetList(ArrayList<MyTargetsBean> alMyTargets){\n Map<String,MyTargetsBean> mapMyTargetBean=new HashMap<>();\n if(alMyTargets!=null && alMyTargets.size()>0){\n\n for(MyTargetsBean bean:alMyTargets)\n if(mapMonthTarget.containsKey(bean.getOrderMaterialGroupID())) {\n double mDoubMonthTarget = Double.parseDouble(bean.getMonthTarget()) + mapMonthTarget.get(bean.getOrderMaterialGroupID());\n\n double mDoubMonthAchived = Double.parseDouble(bean.getMTDA()) + mapMonthAchived.get(bean.getOrderMaterialGroupID()) ;\n\n mapMonthTarget.put(bean.getOrderMaterialGroupID(), mDoubMonthTarget);\n mapMonthAchived.put(bean.getOrderMaterialGroupID(), mDoubMonthAchived);\n mapMyTargetBean.put(bean.getOrderMaterialGroupID(),bean);\n }else {\n\n\n double mDoubMonthTarget = Double.parseDouble(bean.getMonthTarget()) ;\n double mDoubMonthAchived = Double.parseDouble(bean.getMTDA()) /*+ mDouOrderVal*/ ;\n\n mapMonthTarget.put(bean.getOrderMaterialGroupID(), mDoubMonthTarget);\n mapMonthAchived.put(bean.getOrderMaterialGroupID(), mDoubMonthAchived);\n mapMyTargetBean.put(bean.getOrderMaterialGroupID(),bean);\n }\n }\n\n\n return mapMyTargetBean;\n }", "private void init() {\n\t\tmap = new LinkedHashMap<String, HeaderData>();\r\n\t\tList<HeaderData> list = config.getColumns();\r\n\t\tfor(HeaderData info: list){\r\n\t\t\tString id = info.getId();\r\n\t\t\tif(id == null) throw new IllegalArgumentException(\"Null id found for \"+info.getClass().getName());\r\n\t\t\t// Map the id to info\r\n\t\t\tmap.put(info.getId(), info);\r\n\t\t}\r\n\t}", "public static Map<String, Object> mapDatas(int total, List<?> datas) {\n\t\tMap<String, Object> modelMap = new HashMap<String, Object>(3);\n\t\tmodelMap.put(\"total\", total);\n\t\tmodelMap.put(\"data\", datas);\n\t\tmodelMap.put(\"success\", true);\n\t\t\n\t\treturn modelMap;\n\t}", "private VisitTimesCellData getVisitTimesForCells(final List<Object[]> listVisitTimes) {\n VisitTimesCellData visitTimesCellData = new VisitTimesCellData();\n Map<Short, Long> mapValues = new HashMap<>();\n for (Map.Entry<Short, String> entry : SummaryReportConstants.MonthlyReport.getMapVisitTimeCellCoordinates()\n .entrySet()) {\n final List<Object[]> object = listVisitTimes.stream()\n .filter(p -> p[1] != null ? entry.getKey() == (short) p[1] : false).collect(Collectors.toList());\n final long cellValue = CollectionUtils.isNotEmpty(object) ? (long) object.get(0)[0] : 0;\n mapValues.put(entry.getKey(), cellValue);\n }\n visitTimesCellData.setSoftware(mapValues.get(Constants.BusinessTypeConstant.SOFTWARE));\n visitTimesCellData.setNetwork(mapValues.get(Constants.BusinessTypeConstant.NETWORK));\n visitTimesCellData.setArchitect(mapValues.get(Constants.BusinessTypeConstant.ARCHITECT));\n visitTimesCellData.setBuilding(mapValues.get(Constants.BusinessTypeConstant.BUILDING));\n visitTimesCellData.setEquipment(mapValues.get(Constants.BusinessTypeConstant.EQUIPMENT));\n visitTimesCellData.setFactory(mapValues.get(Constants.BusinessTypeConstant.FACTORY));\n visitTimesCellData.setElectric(mapValues.get(Constants.BusinessTypeConstant.ELECTRIC));\n visitTimesCellData.setCommon(mapValues.get(Constants.BusinessTypeConstant.COMMON));\n visitTimesCellData\n .setWirelessCommunication(mapValues.get(Constants.BusinessTypeConstant.WIRELESS_COMMUNICATION));\n visitTimesCellData.setWiredCommunication(mapValues.get(Constants.BusinessTypeConstant.WIRED_COMMUNICATION));\n visitTimesCellData.setHardware(mapValues.get(Constants.BusinessTypeConstant.HARDWARE));\n visitTimesCellData.setOffice(mapValues.get(Constants.BusinessTypeConstant.OFFICE));\n visitTimesCellData.setCallCenter(mapValues.get(Constants.BusinessTypeConstant.CALL_CENTER));\n return visitTimesCellData;\n }", "private IMapData<Integer, String> getLinkedHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"c\"),\n KeyValueNode.make(1, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "private Map<String, Object> slouchMap(ArrayList<Date> times, ArrayList<Double> slouches) {\n Map<String, Object> map = new HashMap<>();\n map.put(USER_SLOUCHES, slouches);\n map.put(TIMES, slouches);\n return map;\n }", "public final /* synthetic */ Map mo34034b(List list) {\n int i;\n Map<String, C1844cm> d = m447d((List<String>) list);\n HashMap hashMap = new HashMap();\n Iterator it = list.iterator();\n while (it.hasNext()) {\n String str = (String) it.next();\n C1844cm cmVar = d.get(str);\n if (cmVar == null) {\n i = 8;\n } else {\n if (C1860db.m497a(cmVar.f577c.f572c)) {\n try {\n cmVar.f577c.f572c = 6;\n this.f588e.mo34195a().execute(new C1841cj(this, cmVar));\n this.f587d.mo34025a(str);\n } catch (C1826bv unused) {\n f584a.mo34142c(\"Session %d with pack %s does not exist, no need to cancel.\", Integer.valueOf(cmVar.f575a), str);\n }\n }\n i = cmVar.f577c.f572c;\n }\n hashMap.put(str, Integer.valueOf(i));\n }\n return hashMap;\n }" ]
[ "0.61924344", "0.6018441", "0.5724972", "0.5720473", "0.56741524", "0.56291705", "0.5515066", "0.5506233", "0.55000097", "0.54747534", "0.54591256", "0.53442603", "0.53442025", "0.53407925", "0.5339164", "0.53276014", "0.52973247", "0.52901596", "0.52635455", "0.5253857", "0.52335054", "0.5196072", "0.5184456", "0.5176929", "0.51767915", "0.517024", "0.516498", "0.5156077", "0.5146634", "0.5121375", "0.5120332", "0.51084965", "0.51075107", "0.50965583", "0.5086945", "0.5080521", "0.5068608", "0.50383985", "0.5033979", "0.5015728", "0.50086325", "0.49960455", "0.49955255", "0.4994729", "0.49932018", "0.49763897", "0.49672633", "0.49671784", "0.4965024", "0.49634868", "0.4959202", "0.49569157", "0.49503532", "0.49497387", "0.49467948", "0.49460635", "0.49221852", "0.489164", "0.4876184", "0.48688307", "0.48672253", "0.48563078", "0.48495948", "0.48482123", "0.484686", "0.48459253", "0.4837708", "0.48346704", "0.48340216", "0.48258752", "0.4824935", "0.4824904", "0.48238102", "0.48091465", "0.47993773", "0.47972202", "0.47812104", "0.4780429", "0.4779432", "0.4776115", "0.476771", "0.47618958", "0.47475272", "0.4740299", "0.4740241", "0.47341818", "0.47303244", "0.4723417", "0.47216943", "0.47176564", "0.4711971", "0.46982494", "0.46920988", "0.46903658", "0.46857208", "0.4685625", "0.4677055", "0.46765983", "0.4675945", "0.46724367" ]
0.7317636
0
Legacy logic to convert an arbitrary java object to an Ast Literal. Only provided here to preserve backwards compatibility.
@VisibleForTesting static Value<?> valueToLiteralLegacy(Object value, GraphQLType type, GraphQLContext graphqlContext, Locale locale) { assertTrue(!(value instanceof Value), () -> "Unexpected literal " + value); if (value == null) { return null; } if (isNonNull(type)) { return handleNonNullLegacy(value, (GraphQLNonNull) type, graphqlContext, locale); } // Convert JavaScript array to GraphQL list. If the GraphQLType is a list, but // the value is not an array, convert the value using the list's item type. if (isList(type)) { return handleListLegacy(value, (GraphQLList) type, graphqlContext, locale); } // Populate the fields of the input object by creating ASTs from each value // in the JavaScript object according to the fields in the input type. if (type instanceof GraphQLInputObjectType) { return handleInputObjectLegacy(value, (GraphQLInputObjectType) type, graphqlContext, locale); } if (!(type instanceof GraphQLScalarType || type instanceof GraphQLEnumType)) { throw new AssertException("Must provide Input Type, cannot use: " + type.getClass()); } // Since value is an internally represented value, it must be serialized // to an externally represented value before converting into an AST. final Object serialized = serializeLegacy(type, value, graphqlContext, locale); // Others serialize based on their corresponding JavaScript scalar types. if (serialized instanceof Boolean) { return BooleanValue.newBooleanValue().value((Boolean) serialized).build(); } String stringValue = serialized.toString(); // numbers can be Int or Float values. if (serialized instanceof Number) { return handleNumberLegacy(stringValue); } if (serialized instanceof String) { // Enum types use Enum literals. if (type instanceof GraphQLEnumType) { return EnumValue.newEnumValue().name(stringValue).build(); } // ID types can use Int literals. if (type == Scalars.GraphQLID && stringValue.matches("^[0-9]+$")) { return IntValue.newIntValue().value(new BigInteger(stringValue)).build(); } return StringValue.newStringValue().value(stringValue).build(); } throw new AssertException("'Cannot convert value to AST: " + serialized); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ObjectLiteral createObjectLiteral();", "public static Literal of(Source source, Object value) {\n if (value instanceof Literal) {\n return (Literal) value;\n }\n return new Literal(source, value, DataTypes.fromJava(value));\n }", "Literal createLiteral();", "Literal createLiteral();", "public Literal setLiteral(Object literalData);", "public Literal getLiteral(Object literalData);", "SimpleLiteral createSimpleLiteral();", "public T caseLiteral(Literal object)\n {\n return null;\n }", "private String literal(Object obj) {\n if (obj == null) {\n return \"NULL\";\n } else if (obj instanceof String) {\n return literal((String) obj);\n } else if (obj instanceof Number) {\n return literal((Number) obj);\n } else {\n return literal(obj.toString());\n }\n }", "Object convert(Object source, TypeToken<?> targetTypeToken);", "private ParseTree parseObjectLiteral() {\n SourcePosition start = getTreeStartLocation();\n ImmutableList.Builder<ParseTree> result = ImmutableList.builder();\n\n eat(TokenType.OPEN_CURLY);\n Token commaToken = null;\n while (peek(TokenType.ELLIPSIS) || peekPropertyNameOrComputedProp(0) || peek(TokenType.STAR)) {\n result.add(parsePropertyAssignment());\n commaToken = eatOpt(TokenType.COMMA);\n if (commaToken == null) {\n break;\n }\n }\n eat(TokenType.CLOSE_CURLY);\n\n maybeReportTrailingComma(commaToken);\n\n return new ObjectLiteralExpressionTree(\n getTreeLocation(start), result.build(), commaToken != null);\n }", "JavaExpression createJavaExpression();", "public T caseLiteralExpCS(LiteralExpCS object) {\r\n return null;\r\n }", "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 convertToScala (Object a, org.apache.spark.sql.catalyst.types.DataType dataType) ;", "public T casePrimitiveLiteralExpCS(PrimitiveLiteralExpCS object) {\r\n return null;\r\n }", "public abstract TypeLiteral<?> toTypeLiteral(Type type);", "public void visit(Literal literal) {}", "JavaStatement createJavaStatement();", "TypeLiteralExp createTypeLiteralExp();", "RealLiteralExp createRealLiteralExp();", "@Override\r\n public Literal newLiteral(PObj[] data) {\r\n String symbol = ((Constant) data[0]).getObject().toString();\r\n PObj[] fixed = new PObj[data.length - 1];\r\n System.arraycopy(data, 1, fixed, 0, fixed.length);\r\n PList terms = ProvaListImpl.create(fixed);\r\n return newLiteral(symbol, terms);\r\n }", "public Literal getLiteral();", "public Literal getLiteral();", "public Literal createLiteral(byte b) throws ModelException {\n\n return createLiteral(String.valueOf(b));\n }", "public T caseStringLiteralExpCS(StringLiteralExpCS object) {\r\n return null;\r\n }", "protected abstract NativeSQLStatement createNativeAsTextStatement();", "public Object toJava(final Object object) {\n if ((object == null) || (_convertTo == null)) {\n return object;\n }\n return _convertTo.convert(object);\n }", "<C> RealLiteralExp<C> createRealLiteralExp();", "public LiteralExpression (String str){\n _value = str;\n }", "public Object convertToCatalyst (Object a, org.apache.spark.sql.catalyst.types.DataType dataType) ;", "TO fromObject(CONTEXT context, final FROM obj);", "public T caseBooleanLiteral(BooleanLiteral object)\n {\n return null;\n }", "public T caseBooleanLiteral(BooleanLiteral object)\n {\n return null;\n }", "public T caseStringLiteral(StringLiteral object)\n {\n return null;\n }", "public T caseStringLiteral(StringLiteral object)\n {\n return null;\n }", "ObjectValue createObjectValue();", "public T caseRealLiteralExpCS(RealLiteralExpCS object) {\r\n return null;\r\n }", "protected abstract Object convertNonNull(Object o);", "public LiteralOPToken(LiteralBaseToken bt)\n {\n this(bt.getValue(), bt.getType());\n }", "protected void sequence_Literal(ISerializationContext context, Literal semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "@Override\r\n\tpublic Object visitStringLiteralExpression(\r\n\t\t\tStringLiteralExpression stringLiteralExpression, Object arg)\r\n\t\t\tthrows Exception {\n\t mv.visitLdcInsn(stringLiteralExpression.stringLiteral.getText());\r\n\t\treturn \"Ljava/lang/String;\";\r\n\t}", "public Literal createLiteral(boolean b) throws ModelException {\n\n return createLiteral(String.valueOf(b));\n }", "protected void sequence_Literal(ISerializationContext context, Literal semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public final static Literal createLiteralFromJSON(final JSONObject literalJson) throws JSONException {\n\t\treturn LazyLiteral.getLiteral(literalJson.getString(\"value\"), true);\n\t}", "public T caseNamedLiteralExpCS(NamedLiteralExpCS object) {\r\n return null;\r\n }", "public Literal createLiteral(long b) throws ModelException{\n\n return createLiteral(String.valueOf(b));\n }", "public T caseNullLiteral(NullLiteral object)\n {\n return null;\n }", "protected void sequence_LiteralType(ISerializationContext context, LiteralType semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "void m21805a(Object obj);", "public abstract JType unboxify();", "static public JSObject asJSObject(JSEnvironment env, Object a) {\r\n\t\t// js types\r\n\t\tif (a instanceof JSObject)\r\n\t\t\treturn (JSObject) a;\r\n\t\tif (a == null)\r\n\t\t\treturn null;\r\n\t\tif (a instanceof String)\r\n\t\t\treturn new JSString(env, (String) a);\r\n\t\tif (a instanceof Double)\r\n\t\t\treturn new JSNumber(env, (Double) a);\r\n\t\tif (a instanceof Boolean)\r\n\t\t\treturn new JSBoolean(env, (Boolean) a);\r\n\t\tthrow new ClassCastException(\"Could not convert \\\"\" + a + \"\\\" to JSObject.\");\r\n\t}", "public Object convertArgs2Java(final PyObject... args) {\n\t\tObject ret = null;\n\n\t\tif (args.length == 1) {\n\t\t\tret = args[0].__tojava__(Object.class);\n\t\t} else {\n\t\t\tfinal Object[] convertedArgs = new Object[args.length];\n\n\t\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\t\tconvertedArgs[i] = args[i].__tojava__(Object.class);\n\t\t\t}\n\n\t\t\tret = convertedArgs;\n\t\t}\n\n\t\treturn ret;\n\t}", "Object convertDBValueToJavaValue(Object value, Class<?> javaType);", "public String convertStatement (String oraStatement);", "public String convertStatement (String oraStatement);", "public T caseTupleLiteralExpCS(TupleLiteralExpCS object) {\r\n return null;\r\n }", "public V cast(Object object) {\n return valueClass.cast(object);\n }", "public abstract Statement createSimpleStatement(int type, CodeLocation codeLoc, List<Annotation> annotations, Variable assign, Value ... v);", "@Override\n\tpublic Object visitLiteral(Literal literal) {\n\t\treturn null;\n\t}", "private static Object ecmascript6(Object object) {\n return object;\n }", "PrimitiveTypeSourceReference createPrimitiveTypeSourceReference();", "private ObjectNode ProcessObject(RDFNode node){\n if(node.isLiteral()){\n //handle literal\n return TransformUtils.GenerateLiteralJsonObject(mapper, node.asLiteral(), null);\n }\n else {\n //else handle resource\n return ProcessResource(node.asResource());\n }\n }", "public T casePrimitiveAnonymousDefinition(PrimitiveAnonymousDefinition object)\n {\n return null;\n }", "StringLiteralExp createStringLiteralExp();", "Object convertJavaValueToDBValue(Object value, Class<?> javaType);", "public final /* synthetic */ void mo14896a(Object obj) {\n mo14896a((String) obj);\n }", "void mo3207a(Object obj);", "<C> StringLiteralExp<C> createStringLiteralExp();", "public Object toSQL(final Object object) {\n if ((object == null) || (_convertFrom == null)) {\n return object;\n }\n return _convertFrom.convert(object);\n }", "public static Node buildLiteral(final String label) {\n\t\treturn NodeFactory.createLiteral(label);\n\t}", "void marshal(Object obj);", "public T caseTupleTypeLiteralExpCS(TupleTypeLiteralExpCS object) {\r\n return null;\r\n }", "public T caseIntegerLiteral(IntegerLiteral object)\n {\n return null;\n }", "public Literal createLiteral(int b) throws ModelException {\n\n return createLiteral(String.valueOf(b));\n }", "void m21806b(Object obj);", "public T caseInvalidLiteralExpCS(InvalidLiteralExpCS object) {\r\n return null;\r\n }", "@Test\n\tpublic void testJRefToObject() {\n\t\tObject o = new Object();\n\t\tJRef jref = jRef(o);\n\t\tassertEquals(o, jpc.fromTerm(jref));\n\t}", "public Node encode(Object obj) {\n Node node = null;\n\n if (obj != null) {\n String name = mxCodecRegistry.getName(obj);\n mxObjectCodec enc = mxCodecRegistry.getCodec(name);\n\n if (enc != null) {\n node = enc.encode(this, obj);\n }\n else {\n if (obj instanceof Node) {\n node = ((Node)obj).cloneNode(true);\n }\n else {\n System.err.println(\"No codec for \" + name);\n }\n }\n }\n\n return node;\n }", "public void lambaAsObjectExample() {\n }", "public Literal createLiteral(short b) throws ModelException {\n\n return createLiteral(String.valueOf(b));\n }", "public final EncodedValue literal() throws RecognitionException {\n EncodedValue encodedValue = null;\n\n\n int integer_literal24 = 0;\n long long_literal25 = 0;\n short short_literal26 = 0;\n byte byte_literal27 = 0;\n float float_literal28 = 0.0f;\n double double_literal29 = 0.0;\n char char_literal30 = 0;\n String string_literal31 = null;\n boolean bool_literal32 = false;\n String type_descriptor33 = null;\n List<EncodedValue> array_literal34 = null;\n TreeRuleReturnScope subannotation35 = null;\n FieldReference field_literal36 = null;\n MethodReference method_literal37 = null;\n FieldReference enum_literal38 = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:272:3: ( integer_literal | long_literal | short_literal | byte_literal | float_literal | double_literal | char_literal | string_literal | bool_literal | NULL_LITERAL | type_descriptor | array_literal | subannotation | field_literal | method_literal | enum_literal )\n int alt9 = 16;\n switch (input.LA(1)) {\n case INTEGER_LITERAL: {\n alt9 = 1;\n }\n break;\n case LONG_LITERAL: {\n alt9 = 2;\n }\n break;\n case SHORT_LITERAL: {\n alt9 = 3;\n }\n break;\n case BYTE_LITERAL: {\n alt9 = 4;\n }\n break;\n case FLOAT_LITERAL: {\n alt9 = 5;\n }\n break;\n case DOUBLE_LITERAL: {\n alt9 = 6;\n }\n break;\n case CHAR_LITERAL: {\n alt9 = 7;\n }\n break;\n case STRING_LITERAL: {\n alt9 = 8;\n }\n break;\n case BOOL_LITERAL: {\n alt9 = 9;\n }\n break;\n case NULL_LITERAL: {\n alt9 = 10;\n }\n break;\n case ARRAY_DESCRIPTOR:\n case CLASS_DESCRIPTOR:\n case PRIMITIVE_TYPE:\n case VOID_TYPE: {\n alt9 = 11;\n }\n break;\n case I_ENCODED_ARRAY: {\n alt9 = 12;\n }\n break;\n case I_SUBANNOTATION: {\n alt9 = 13;\n }\n break;\n case I_ENCODED_FIELD: {\n alt9 = 14;\n }\n break;\n case I_ENCODED_METHOD: {\n alt9 = 15;\n }\n break;\n case I_ENCODED_ENUM: {\n alt9 = 16;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 9, 0, input);\n throw nvae;\n }\n switch (alt9) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:272:5: integer_literal\n {\n pushFollow(FOLLOW_integer_literal_in_literal442);\n integer_literal24 = integer_literal();\n state._fsp--;\n\n encodedValue = new ImmutableIntEncodedValue(integer_literal24);\n }\n break;\n case 2:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:273:5: long_literal\n {\n pushFollow(FOLLOW_long_literal_in_literal450);\n long_literal25 = long_literal();\n state._fsp--;\n\n encodedValue = new ImmutableLongEncodedValue(long_literal25);\n }\n break;\n case 3:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:274:5: short_literal\n {\n pushFollow(FOLLOW_short_literal_in_literal458);\n short_literal26 = short_literal();\n state._fsp--;\n\n encodedValue = new ImmutableShortEncodedValue(short_literal26);\n }\n break;\n case 4:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:275:5: byte_literal\n {\n pushFollow(FOLLOW_byte_literal_in_literal466);\n byte_literal27 = byte_literal();\n state._fsp--;\n\n encodedValue = new ImmutableByteEncodedValue(byte_literal27);\n }\n break;\n case 5:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:276:5: float_literal\n {\n pushFollow(FOLLOW_float_literal_in_literal474);\n float_literal28 = float_literal();\n state._fsp--;\n\n encodedValue = new ImmutableFloatEncodedValue(float_literal28);\n }\n break;\n case 6:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:277:5: double_literal\n {\n pushFollow(FOLLOW_double_literal_in_literal482);\n double_literal29 = double_literal();\n state._fsp--;\n\n encodedValue = new ImmutableDoubleEncodedValue(double_literal29);\n }\n break;\n case 7:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:278:5: char_literal\n {\n pushFollow(FOLLOW_char_literal_in_literal490);\n char_literal30 = char_literal();\n state._fsp--;\n\n encodedValue = new ImmutableCharEncodedValue(char_literal30);\n }\n break;\n case 8:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:279:5: string_literal\n {\n pushFollow(FOLLOW_string_literal_in_literal498);\n string_literal31 = string_literal();\n state._fsp--;\n\n encodedValue = new ImmutableStringEncodedValue(string_literal31);\n }\n break;\n case 9:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:280:5: bool_literal\n {\n pushFollow(FOLLOW_bool_literal_in_literal506);\n bool_literal32 = bool_literal();\n state._fsp--;\n\n encodedValue = ImmutableBooleanEncodedValue.forBoolean(bool_literal32);\n }\n break;\n case 10:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:281:5: NULL_LITERAL\n {\n match(input, NULL_LITERAL, FOLLOW_NULL_LITERAL_in_literal514);\n encodedValue = ImmutableNullEncodedValue.INSTANCE;\n }\n break;\n case 11:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:282:5: type_descriptor\n {\n pushFollow(FOLLOW_type_descriptor_in_literal522);\n type_descriptor33 = type_descriptor();\n state._fsp--;\n\n encodedValue = new ImmutableTypeEncodedValue(type_descriptor33);\n }\n break;\n case 12:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:283:5: array_literal\n {\n pushFollow(FOLLOW_array_literal_in_literal530);\n array_literal34 = array_literal();\n state._fsp--;\n\n encodedValue = new ImmutableArrayEncodedValue(array_literal34);\n }\n break;\n case 13:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:284:5: subannotation\n {\n pushFollow(FOLLOW_subannotation_in_literal538);\n subannotation35 = subannotation();\n state._fsp--;\n\n encodedValue = new ImmutableAnnotationEncodedValue((subannotation35 != null ? ((smaliTreeWalker.subannotation_return) subannotation35).annotationType : null), (subannotation35 != null ? ((smaliTreeWalker.subannotation_return) subannotation35).elements : null));\n }\n break;\n case 14:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:285:5: field_literal\n {\n pushFollow(FOLLOW_field_literal_in_literal546);\n field_literal36 = field_literal();\n state._fsp--;\n\n encodedValue = new ImmutableFieldEncodedValue(field_literal36);\n }\n break;\n case 15:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:286:5: method_literal\n {\n pushFollow(FOLLOW_method_literal_in_literal554);\n method_literal37 = method_literal();\n state._fsp--;\n\n encodedValue = new ImmutableMethodEncodedValue(method_literal37);\n }\n break;\n case 16:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:287:5: enum_literal\n {\n pushFollow(FOLLOW_enum_literal_in_literal562);\n enum_literal38 = enum_literal();\n state._fsp--;\n\n encodedValue = new ImmutableEnumEncodedValue(enum_literal38);\n }\n break;\n\n }\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return encodedValue;\n }", "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 }", "Object encodeObject(Object value);", "NewAnonymousClassExpression(AST ast) {\r\n\t\tsuper(ast);\r\n\t}", "public T caseLikeEscape(LikeEscape object)\n {\n return null;\n }", "JavaEvaluator createJavaEvaluator();", "void mo67921a(Object obj);", "public T caseIntLiteral(IntLiteral object)\n {\n return null;\n }", "public CSAnnotLabel(Object object) {\r\n this.object = object;\r\n }", "public Literal createLiteral(char b) throws ModelException {\n\n return createLiteral(String.valueOf(b));\n }", "void genAst();", "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}", "public T caseLetExpCS(LetExpCS object) {\r\n return null;\r\n }", "public Literal setDeepLiteral(XDI3Segment contextNodeXri, Object literalData);", "public Literal setLiteralString(String literalData);", "FROM toObject(CONTEXT context, final TO value);", "void m21807c(Object obj);", "public static TypeAdapterFactory m28807a(C11261a<?> aVar, Object obj) {\n return new C11210c(obj, aVar, aVar.getType() == aVar.getRawType(), null);\n }", "public T caseBinaryExpr(BinaryExpr object) {\n\t\treturn null;\n\t}" ]
[ "0.69546306", "0.6561315", "0.6272927", "0.6272927", "0.6034126", "0.5973016", "0.5919268", "0.5733633", "0.57322603", "0.5717143", "0.5577607", "0.55454314", "0.548072", "0.5444667", "0.5377518", "0.5358863", "0.5346941", "0.5324907", "0.52509886", "0.52223134", "0.5187062", "0.51833457", "0.5148522", "0.5148522", "0.5137865", "0.513768", "0.5114809", "0.51103187", "0.50777143", "0.5074753", "0.5073527", "0.5049675", "0.5023182", "0.5023182", "0.50066483", "0.50066483", "0.500571", "0.49748588", "0.49624714", "0.4962199", "0.4958189", "0.49478167", "0.49454865", "0.4937905", "0.49249578", "0.491448", "0.49057055", "0.4903459", "0.4894936", "0.48907182", "0.48906502", "0.48882326", "0.48858663", "0.4872593", "0.48687905", "0.48687905", "0.48650423", "0.4859353", "0.48556924", "0.4854701", "0.48534012", "0.48456174", "0.48431242", "0.48320442", "0.4828516", "0.4826123", "0.48245817", "0.48234814", "0.48227608", "0.48146686", "0.4809772", "0.48081192", "0.48047227", "0.48037478", "0.47959915", "0.47951537", "0.47904503", "0.4775063", "0.47727397", "0.4764056", "0.47629482", "0.47593635", "0.47590044", "0.4750119", "0.4743947", "0.47409862", "0.4736363", "0.4735605", "0.4731069", "0.4729119", "0.4722664", "0.47206742", "0.47161517", "0.47035685", "0.47022623", "0.46983138", "0.46923476", "0.4689586", "0.46890664", "0.46822488" ]
0.58817697
7
Created by walke.Z on 2018/8/10.
public interface MainIView<D extends Object> extends BaseIView { void getDataSuccess(D data); void getDataFail(Exception exc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\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 comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void nadar() {\n\t\t\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\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n void init() {\n }", "@Override\n public void init() {\n }", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "private void init() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "@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\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\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\tpublic void init() {}", "public void mo4359a() {\n }", "@Override\n protected void init() {\n }", "private void kk12() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "private void m50366E() {\n }", "@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\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "private void strin() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo6081a() {\n }", "@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 public void initialize() { \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 }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@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}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void init() {\n\t}", "@Override\n protected void getExras() {\n }", "Consumable() {\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "Petunia() {\r\n\t\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}" ]
[ "0.5998345", "0.5930355", "0.56540537", "0.56341195", "0.5619359", "0.5619359", "0.5597735", "0.5591267", "0.55701816", "0.55221874", "0.55189085", "0.54753625", "0.5466434", "0.54602313", "0.5455326", "0.5452038", "0.54327786", "0.54296273", "0.54296273", "0.54296273", "0.54296273", "0.54296273", "0.54296273", "0.5411721", "0.54112995", "0.54102564", "0.54063785", "0.53997695", "0.53927004", "0.53773105", "0.5368127", "0.53552055", "0.5347507", "0.5347507", "0.5347507", "0.5347507", "0.5347507", "0.53437895", "0.5336755", "0.53320503", "0.53296846", "0.5323624", "0.53234154", "0.53106725", "0.53106725", "0.53071016", "0.5305518", "0.5299668", "0.5299668", "0.5290371", "0.5286274", "0.5285706", "0.52847934", "0.52817774", "0.5259872", "0.52549696", "0.52549696", "0.52549696", "0.52541995", "0.5254016", "0.525011", "0.525011", "0.5245422", "0.52451575", "0.52438164", "0.5242878", "0.52403754", "0.5225057", "0.52221453", "0.52221453", "0.52221453", "0.52177167", "0.52161", "0.52161", "0.52161", "0.52161", "0.52161", "0.52161", "0.52161", "0.5209595", "0.5209595", "0.5209595", "0.5193489", "0.5192886", "0.5192492", "0.51870143", "0.51870143", "0.51870143", "0.51867473", "0.5183918", "0.51766", "0.5175052", "0.51554984", "0.5154605", "0.51517963", "0.514887", "0.51444894", "0.51444894", "0.5143875", "0.51392454", "0.5139192" ]
0.0
-1
Created by mikkoville on 7.9.2016.
public interface CommitsListView { void addCommitsToRecyclerView(List<Commit> commits); void showNetworkError(); void startCommitDetailsActivity(Commit commit); void showToastWithText(String text); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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 void init() {\n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void anular() {\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 protected void initialize() \n {\n \n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public int describeContents() { return 0; }", "private void init() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \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}", "public void mo38117a() {\n }", "@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 public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void init() {}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@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 public void initialize() { \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private Rekenhulp()\n\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}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void gored() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "private void strin() {\n\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "private void kk12() {\n\n\t}", "@Override\n public void initialize() {\n \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 }", "Petunia() {\r\n\t\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}" ]
[ "0.5975932", "0.586526", "0.57291985", "0.56726336", "0.5650622", "0.5650622", "0.55602443", "0.55416554", "0.5536755", "0.55255646", "0.5518916", "0.5514479", "0.550122", "0.5479374", "0.5478822", "0.5478292", "0.54627013", "0.54528785", "0.54528785", "0.54528785", "0.54528785", "0.54528785", "0.54528785", "0.54487437", "0.5447434", "0.54409856", "0.54404014", "0.5438641", "0.5420741", "0.5420741", "0.5420741", "0.5420741", "0.5420741", "0.54053336", "0.54048663", "0.5400733", "0.53931504", "0.53863823", "0.5377867", "0.53771275", "0.5362335", "0.5362335", "0.5356665", "0.53538024", "0.53356963", "0.5329713", "0.5329713", "0.53274006", "0.5324981", "0.5324981", "0.5324981", "0.532187", "0.532187", "0.5320603", "0.5310589", "0.53105664", "0.5299612", "0.529032", "0.5290298", "0.527953", "0.527953", "0.527953", "0.52738684", "0.5273693", "0.5269518", "0.52654266", "0.5261231", "0.5261231", "0.5261231", "0.525583", "0.5255597", "0.52549434", "0.52522624", "0.52519995", "0.5247181", "0.52426773", "0.523337", "0.52313185", "0.52257574", "0.5222564", "0.5219136", "0.5219136", "0.5219136", "0.52184176", "0.5203917", "0.5203081", "0.5203081", "0.5203081", "0.5203081", "0.5203081", "0.5203081", "0.5203081", "0.5182757", "0.51775837", "0.51775837", "0.51770645", "0.5173075", "0.51653326", "0.5164849", "0.5158759", "0.5150195" ]
0.0
-1
Initialize the MIDI sequencer and data storage
public MidiLoader ( ) throws MidiUnavailableException { this.midisMap = new HashMap<String, MidiSoundHolder> ( ); this.sequencer = MidiSystem.getSequencer ( ); if ( this.sequencer == null ) throw new MidiUnavailableException ( "No MIDI sequencer found" ); this.sequencer.open ( ); /** * Link system synthesizer and sequencer if they are not already linked */ if ( !( this.sequencer instanceof Synthesizer ) ) { System.out.println ( "Linking the MIDI sequencer and synthesizer" ); Synthesizer synthesizer = MidiSystem.getSynthesizer ( ); Receiver synthReceiver = synthesizer.getReceiver ( ); Transmitter seqTransmitter = this.sequencer.getTransmitter ( ); seqTransmitter.setReceiver ( synthReceiver ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MusicManager() {\n\t\ttry {\n\t\t\t// init sequencer\n\t\t\tsequencer = MidiSystem.getSequencer();\n\t\t\tsequencer.open();\n\n\t\t\t// init synthesizer\n\t\t\tsynth = MidiSystem.getSynthesizer();\n\t\t\tsynth.open();\n\t\t\t\n\t\t\t// DEBUG\n\t\t\t//System.out.print(\"latency = \" + synth.getLatency());\n\t\t\t//System.out.print(\"max polyphony = \" + synth.getMaxPolyphony());\n\n\t\t\t// get channel for synthesizing: the highest numbered channel. sets it up\n\t\t\tMidiChannel[] channels = synth.getChannels();\n\t\t\tsynthChannel = channels[channels.length - 1];\n\t\t\tsetSynthInstrument(MusicManager.SYNTH_INSTRUMENT);\n\t\t\t\n\t\t} catch (MidiUnavailableException e) {\n\t\t\tErrorHandler.display(\"Cannot play MIDI music\");\n\t\t\tsequencer = null; // remember this! sequencer can be null.\n\t\t\treturn;\n\t\t}\n\t\t\n\t}", "public void playTempMIDI() {\r\n\t\tSequence sequence = null;\r\n\t\ttry {\r\n\t\t\tsequence = MidiSystem.getSequence(new File(\"temp.mid\"));\r\n\t\t} catch (InvalidMidiDataException e) {\r\n\t\t\t/*\r\n\t\t\t * In case of an exception, we dump the exception including the\r\n\t\t\t * stack trace to the console. Then, we exit the program.\r\n\t\t\t */\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn;\r\n\t\t} catch (IOException e) {\r\n\t\t\t/*\r\n\t\t\t * In case of an exception, we dump the exception including the\r\n\t\t\t * stack trace to the console. Then, we exit the program.\r\n\t\t\t */\r\n\t\t\tJOptionPane.showMessageDialog(null, \"No Music Composed!\", \"File Not Found\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Now, we need a Sequencer to play the sequence. Here, we simply\r\n\t\t * request the default sequencer.\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tsm_sequencer = MidiSystem.getSequencer();\r\n\t\t} catch (MidiUnavailableException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (sm_sequencer == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * There is a bug in the Sun jdk1.3/1.4. It prevents correct termination\r\n\t\t * of the VM. So we have to exit ourselves. To accomplish this, we\r\n\t\t * register a Listener to the Sequencer. It is called when there are\r\n\t\t * \"meta\" events. Meta event 47 is end of track.\r\n\t\t * \r\n\t\t * Thanks to Espen Riskedal for finding this trick.\r\n\t\t */\r\n\t\tsm_sequencer.addMetaEventListener(new MetaEventListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void meta(MetaMessage event) {\r\n\t\t\t\tif (event.getType() == 47) {\r\n\t\t\t\t\tsm_sequencer.close();\r\n\t\t\t\t\tif (sm_synthesizer != null) {\r\n\t\t\t\t\t\tsm_synthesizer.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t/*\r\n\t\t * The Sequencer is still a dead object. We have to open() it to become\r\n\t\t * live. This is necessary to allocate some ressources in the native\r\n\t\t * part.\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tsm_sequencer.open();\r\n\t\t} catch (MidiUnavailableException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Next step is to tell the Sequencer which Sequence it has to play. In\r\n\t\t * this case, we set it as the Sequence object created above.\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tsm_sequencer.setSequence(sequence);\r\n\t\t} catch (InvalidMidiDataException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Now, we set up the destinations the Sequence should be played on.\r\n\t\t * Here, we try to use the default synthesizer. With some Java Sound\r\n\t\t * implementations (Sun jdk1.3/1.4 and others derived from this\r\n\t\t * codebase), the default sequencer and the default synthesizer are\r\n\t\t * combined in one object. We test for this condition, and if it's true,\r\n\t\t * nothing more has to be done. With other implementations (namely\r\n\t\t * Tritonus), sequencers and synthesizers are always seperate objects.\r\n\t\t * In this case, we have to set up a link between the two objects\r\n\t\t * manually.\r\n\t\t * \r\n\t\t * By the way, you should never rely on sequencers being synthesizers,\r\n\t\t * too; this is a highly non- portable programming style. You should be\r\n\t\t * able to rely on the other case working. Alas, it is only partly true\r\n\t\t * for the Sun jdk1.3/1.4.\r\n\t\t */\r\n\t\tif (!(sm_sequencer instanceof Synthesizer)) {\r\n\t\t\t/*\r\n\t\t\t * We try to get the default synthesizer, open() it and chain it to\r\n\t\t\t * the sequencer with a Transmitter-Receiver pair.\r\n\t\t\t */\r\n\t\t\ttry {\r\n\t\t\t\tsm_synthesizer = MidiSystem.getSynthesizer();\r\n\t\t\t\tsm_synthesizer.open();\r\n\t\t\t\tReceiver synthReceiver = sm_synthesizer.getReceiver();\r\n\t\t\t\tTransmitter seqTransmitter = sm_sequencer.getTransmitter();\r\n\t\t\t\tseqTransmitter.setReceiver(synthReceiver);\r\n\t\t\t} catch (MidiUnavailableException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Now, we can start over.\r\n\t\t */\r\n\t\tsm_sequencer.start();\r\n\t}", "public static void init() {\n\t\tmusicManager = new MusicManager();\n\t}", "public void initData() {\n\t\tnotes = new ArrayList<>();\n\t\t//place to read notes e.g from file\n\t}", "@Override\r\n\tpublic void setup(){\n\t\tmidiIO = CCMidiIO.getInstance();\r\n\t\tmidiIO.printDevices();\r\n\r\n\t\t// print a list with all available devices\r\n\t\tmidiIO.printDevices();\r\n\r\n\t\t// open an midiout using the first device and the first channel\r\n\t\tmidiOut = midiIO.midiOut(0, 1);\r\n\r\n\t\tbowl = new Bowl[10];\r\n\t\tfor (int i = 0; i < bowl.length; i++){\r\n\t\t\tbowl[i] = new Bowl(i);\r\n\t\t}\r\n\t}", "protected void initialize() {\r\n motorWithEncoder.encoder.reset();\r\n motorWithEncoder.encoder.start();\r\n motorWithEncoder.enable();\r\n MessageLogger.LogMessage(\"PID Loop Enabled\");\r\n }", "public void init() {\n LOG.info(\"Initializing side input stores.\");\n\n initializeStoreDirectories();\n }", "public void initializeMixer() {\n\t\tinitializeSlidersAndTextFields();\n\t\tinitializeTooltips();\n\t\tinitializeRecorderListener();\n\t}", "SequencerStorage getSequencerStorage();", "private void initData() {\n\n MyLog.log(\"调用录音上传接口\");\n MosHelper.startCheck(new MosHelper.mosSourceListener() {\n\n @Override\n public void getMosSource(String testTest, ArrayList<String> source) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void getMosIMEIAndId(String IMEI,\n String sourceId) {\n // TODO Auto-generated method stub\n MyLog.log(\"IMEI::\" + IMEI);\n Message message = handler.obtainMessage();\n message.obj = \"IMEI::\" + IMEI + \"\\n\" + \"sourceID:\\n\" + sourceId;\n message.what = 8;\n handler.sendMessage(message);\n\n }\n });\n }", "private void initAudioRecorder() throws IOException {\n mRecBufferSize = AudioRecord.getMinBufferSize(DEFAULT_SAMPLING_RATE,\n DEFAULT_RECORD_CHANNEL_CONFIG, DEFAULT_AUDIO_FORMAT.getAudioFormat());\n\n //Get minimum size of buffer that plays sound data\n mPlayBufferSize = AudioTrack.getMinBufferSize(DEFAULT_SAMPLING_RATE,\n DEFAULT_PLAY_CHANNEL_CONFIG, DEFAULT_AUDIO_FORMAT.getAudioFormat());\n\n int bytesPerFrame = DEFAULT_AUDIO_FORMAT.getBytePerFrame();\n\n // Get number of samples. Calculate the buffer size\n // (Round up to the factor of given frame size)\n int frameSize = mRecBufferSize / bytesPerFrame;\n if (frameSize % FRAME_COUNT != 0) {\n frameSize += (FRAME_COUNT - frameSize % FRAME_COUNT);\n mRecBufferSize = frameSize * bytesPerFrame;\n }\n\n mAudioRecord = new AudioRecord(DEFAULT_AUDIO_SOURCE, DEFAULT_SAMPLING_RATE,\n DEFAULT_RECORD_CHANNEL_CONFIG, DEFAULT_AUDIO_FORMAT.getAudioFormat(), mRecBufferSize);\n\n audioSessionId = mAudioRecord.getAudioSessionId();\n initAEC();\n initNS();\n initAudioTrack();\n\n mPCMBuffer = new short[mRecBufferSize];\n\n //Initialize lame buffer\n //Mp3 sampling rate is the same as the recorded pam sampling rate\n //The bit rate is 32kbps\n LameUtil.init(DEFAULT_SAMPLING_RATE, DEFAULT_LAME_IN_CHANNEL, DEFAULT_SAMPLING_RATE, DEFAULT_LAME_MP3_BIT_RATE, DEFAULT_LAME_MP3_QUALITY);\n\n mEncodeThread = new DataEncodeThread(mRecordFile, mRecBufferSize);\n mEncodeThread.start();\n mAudioRecord.setRecordPositionUpdateListener(mEncodeThread, mEncodeThread.getHandler());\n mAudioRecord.setPositionNotificationPeriod(FRAME_COUNT);\n }", "protected ImgProcessor() {\n\t\talbert = new Midi();\n\t\tharmon1 = new Midi();\n\t\tharmon2 = new Midi();\n\t\tharmon3 = new Midi();\n\t}", "public AudioController(){\n\t sounds = new LinkedList<>();\n\t removables = new LinkedList<>();\n\t availableIds = new HashSet<>();\n\t populateIds();\n\t}", "private void init() {\n if (!isInitiated) {\n //Voices use by freeTTS, we define where they are, currently in the java en_us.jar\n //add the package\n addToSystemesPropetites(this.configurator.getLocation());\n\n // The VoiceManager manages all the voices for FreeTTS.\n voiceManager = VoiceManager.getInstance();\n\n this.defaultVoice = voiceManager.getVoice(this.configurator.getName());\n\n configureVoice(this.defaultVoice);\n\n // Allocates the resources for the voice.\n this.defaultVoice.allocate();\n isInitiated = true;\n }\n }", "private void initDLManager() {\n //TODO poner estos datos en configuraciones\n final String botName = \"DL-MS+A\";\n final String directlinePrimaryKey =\n //\"5Cx8OLT2X98.cwA.1j4.FGE7LsMoVuBtww9vQYNuC6lwoVBWYrb-5DHGzBbOeO0\"; // J\n //\"sccvRjdQVbw.cwA.8tQ.3tw3MFQtgG9bcqYf5xxHgW-lUYKymaoSFNCoIzI-SJY\"; //MS+A\n //\"IWixc2S5WaU.cwA.DEw.DV8nbC-BijSw5TbtNimDJuvrp45GpsKCRW4wPTtqYeY\"; //MP-AURA DEV\n \"QyKjl6KL-XQ.cwA.UTM.puyqrjpLvO1Briz7TjM7q_VqqAOflJ3jN0ryBGvkEiU\";\n mDLManager =\n DLManager.getInstance(this, directlinePrimaryKey);\n }", "@BeforeEach\n public void RunBefore() throws InvalidMidiDataException, IOException {\n file = new File(\"./data/saveFile.mid\");\n sequence = MidiSystem.getSequence(file);\n }", "public void setUpSound() {\n try {\n generateTone();\n setFrequencyLabel();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "void Init(int sfxVolume, int musicVolume);", "@Override\r\n\tpublic void initialize() {\n\t\tDNP3Master dnp3Master = new DNP3Master();\r\n\t\ttry {\r\n\t\t\tdnp3Master.initSerial(configuration.getSourceAddress(),\r\n\t\t\t\t\tconfiguration.getSlaveAddress(), configuration\r\n\t\t\t\t\t\t\t.getCommPortId(), configuration.getBaudRate(),\r\n\t\t\t\t\tconfiguration.getStaticPollPeriods());\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\traiseEvent(DATA_SOURCE_EXCEPTION_EVENT, new Date().getTime(), true,\r\n\t\t\t\t\tnew LocalizableMessage(\"event.exception2\", configuration\r\n\t\t\t\t\t\t\t.getName(), e.getMessage()));\r\n\t\t}\r\n\r\n\t\tsuper.initialize(dnp3Master);\r\n\t}", "private void initSpeechManager() {\n mSpeechManager = SpeechManager.getInstance(this);\n }", "private void setupRecord() {\n\t\tint bufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\n\t\t\t\tSAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, bufferSize);\n\n\t\t// Create AudioTrack object to playback the audio.\n\t\tint iMinBufSize = AudioTrack.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_STEREO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioTracker = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, iMinBufSize * 10,\n\t\t\t\tAudioTrack.MODE_STREAM);\n\n\t\taudioTracker.play();\n\t}", "protected void initialize() {\n translator = new PIDOutputTranslator();\n controller = new PIDController(0.0001, 0, 0, pitch.pitchEncoder, translator);\n \n //controller.setSetpoint(pitch.getEncoder() + angle);\n //controller.setPercentTolerance(1);\n \n //THIS IS NOT THE RIGHT RANGE\n //I made it this way so that we would not break the robot\n //we need to test the range of the encoder\n //we need to find where zero is\n //then we can update this input range!\n //controller.setInputRange(0, 1);\n //controller.enable();\n }", "public void init() {\n \tpidControllers.add(leftMotorPID);\n\t\tpidControllers.add(rightMotorPID);\n\t\tpidControllers.add(leftMiniCIMMotorPID);\n\t\tpidControllers.add(rightMiniCIMMotorPID);\n\t\t\n \tgyro.initGyro();\n \tgyro.setSensitivity(RobotMap.gyroGain);\n \tgyro.calibrate();\n }", "protected void initialize() {\n \tif(todo.equals(\"saveFile\")){\n \t\ttry {\n\t\t\t\tRecordMotorMovement.getInstance().saveFile(fileLoc);\n\t\t\t} catch (IOException e) {\n\t\t\t}\n \t\tisFinished = true;\n \t}else if(todo.equals(\"readFile\")){\n \t\ttry {\n\t\t\t\tRecordMotorMovement.getInstance().readFile(fileLoc);\n\t\t\t} catch (IOException e) {\n\t\t\t}\n \t\tisFinished = true;\n \t}else if(todo.equals(\"record\")){\n \t\t\n \t}\n }", "public void setup() {\n\n // Initialize the serial port for communicating to a PC\n uartInit(UART6,9600);\n\n // Initialize the Analog-to-Digital converter on the HAT\n analogInit(); //need to call this first before calling analogRead()\n\n // Initialize the MMQ8451 Accelerometer\n try {\n accelerometer = new Mma8451Q(\"I2C1\");\n accelerometer.setMode(Mma8451Q.MODE_ACTIVE);\n } catch (IOException e) {\n Log.e(\"HW3Template\",\"setup\",e);\n }\n }", "public Communicator() {\n\t\tcommlock = new Lock ();\n\t\tspeaker = new Condition(commlock);\n\t\tlistener = new Condition(commlock);\n\n }", "public void init() {\n\n if (Gdx.app.getPreferences(\"properties\").contains(\"MasterVolume\")) {\n MasterVolume = Gdx.app.getPreferences(\"properties\").getFloat(\"MasterVolume\");\n } else {\n Gdx.app.getPreferences(\"properties\").putFloat(\"MasterVolume\", MasterVolume);\n }\n\n if (Gdx.app.getPreferences(\"properties\").contains(\"MusicVolume\")) {\n MusicVolume = Gdx.app.getPreferences(\"properties\").getFloat(\"MusicVolume\");\n } else {\n Gdx.app.getPreferences(\"properties\").putFloat(\"MusicVolume\", MusicVolume);\n }\n\n if (Gdx.app.getPreferences(\"properties\").contains(\"SoundVolume\")) {\n SoundVolume = Gdx.app.getPreferences(\"properties\").getFloat(\"SoundVolume\");\n } else {\n Gdx.app.getPreferences(\"properties\").putFloat(\"SoundVolume\", SoundVolume);\n }\n\n Gdx.app.getPreferences(\"properties\").flush();\n\n Click = Gdx.audio.newSound(Gdx.files.internal(\"Music/Sound/menu-clik.wav\"));\n\n }", "public static void initialize()\n\t{\n\t\t// USB\n\t\tdriveJoystick = new EJoystick(getConstantAsInt(USB_DRIVE_STICK));\n\t\tcontrolGamepad = new EGamepad(getConstantAsInt(USB_CONTROL_GAMEPAD));\n\n\t\t// Power Panel\n\t\tpowerPanel = new PowerDistributionPanel();\n\n\t\t//Compressor\n\t\tcompressor = new Compressor(Constants.getConstantAsInt(Constants.PCM_CAN));\n\t\tcompressor.start();\n\t}", "@Override\n\tpublic void teleopInit() {\n\t\tservoCIMCommand.start();\n\t\tmonitorCommand.start();\n\t\twindowCommand.start();\n\t\t\n\t}", "private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}", "@Override\n public void init() {\n imu = new IMU(hardwareMap, \"imu\");\n left = hardwareMap.get(DcMotor.class, \"left\");\n right = hardwareMap.get(DcMotor.class, \"right\");\n\n left.setDirection(DcMotorSimple.Direction.FORWARD);\n right.setDirection(DcMotorSimple.Direction.REVERSE);\n }", "public DisplayReceiver(Sequencer sequencer) {\n\tthis.sequencer = sequencer;\n\tgui = new MidiGUI(sequencer);\n }", "public void initDevice() {\r\n\t\t\r\n\t}", "public void openImpl() throws SoundbusException {\n final SbMidiOutputImpl midiOut = (SbMidiOutputImpl) getOutputs()[0];\n final SbMidiInput midiIn = midiOut.connectedInput;\n if (midiIn != null) {\n midiOutputReceiver = new Receiver() {\n public void close() {\n }\n public void send( MidiMessage message, long timeStamp ) {\n midiIn.receive( message, midiOut );\n }\n };\n if (midiDescriptor != null) {\n midiDescriptor.getMidiRecorder().addMidiOutputReceiver( midiOutputReceiver );\n }\n }\n if (midiDescriptor != null) {\n System.out.print( \"preparePlayback...\" );\n midiDescriptor.getMidiRecorder().preparePlayback();\n System.out.println( \"done\" );\n }\n open = true;\n }", "void PegaMIDI(){\r\n // ler os dispositivos MIDIS instalados na máquina, hardware e softwares\r\n MidiDevice device;\r\n MidiDevice.Info[] infos = MidiSystem.getMidiDeviceInfo();\r\n for (int i=0; i<infos.length ;i++){\r\n try {\r\n device=MidiSystem.getMidiDevice(infos[i]);\r\n MDevices.add(device);\r\n cbMidi.addItem(device.getDeviceInfo().getName()+\" \"+device.getDeviceInfo().getVersion());\r\n \r\n } catch (MidiUnavailableException e){}\r\n \r\n }\r\n }", "private synchronized void initAtomStore() {\n if (atomStore != null) {\n return;\n }\n\n atomStore = new PersistedAtomStore(this);\n }", "public void initMusic() {\r\n mSoundPool = new SoundPool(3, AudioManager.STREAM_MUSIC, 0);\r\n mSoundClick = mSoundPool.load(getActivity(), R.raw.click, 1);\r\n mSoundCorrect = mSoundPool.load(getActivity(), R.raw.correct, 1);\r\n mSoundIncorrect = mSoundPool.load(getActivity(), R.raw.wrong, 1);\r\n }", "public int init() {\n audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, SAMPLE_RATE,\n AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_FLOAT, BUFFER_SIZE);\n return audioRecord.getState();\n }", "protected void initialize() {\n \t//instantiate PIDs with motor groups\n \t\n \tPIDOutputGroup leftSide = new PIDOutputGroup(new PIDOutput[] {Robot.drive.frontLeftMotor, Robot.drive.backLeftMotor}, new Boolean[] {false, false}, 1.0);\n \t\n \tPIDOutputGroup rightSide = new PIDOutputGroup(new PIDOutput[] {Robot.drive.frontRightMotor, Robot.drive.backRightMotor}, new Boolean[] {true, true}, 1.0);\n\n \t//reset PIDs\n \tRobot.drive.leftEncoder.reset();\n \tRobot.drive.rightEncoder.reset();\n \t\n \t//set PID type\n \tRobot.drive.leftEncoder.setPIDSourceType(PIDSourceType.kRate);\n \tRobot.drive.rightEncoder.setPIDSourceType(PIDSourceType.kRate);\n \t\n \tleftEncoderPID = new PIDController(lEncoderP, lEncoderI, lEncoderD, Robot.drive.leftEncoder, leftSide);\n \t\n \trightEncoderPID = new PIDController(rEncoderP, rEncoderI, rEncoderD, Robot.drive.rightEncoder, rightSide);\n \t\n \tleftEncoderPID.setContinuous();\n \trightEncoderPID.setContinuous();\n \t\n \t\n \tleftEncoderPID.enable();\n \trightEncoderPID.enable();\n \t\n \t\n \t//timer things\n \ttimer = new Timer();\n \ttimer.start();\n \t\n \t//set timer times\n \ttAccelerating = maxVelocity / acceleration;\n \ttCruising = (distance - (Math.pow(maxVelocity, 2) / acceleration)) / maxVelocity;\n \ttTotal = 2 * tAccelerating + tCruising;\n \t\n \t//reset gyro\n \tRobot.gyroscope.reset();\n \t\n \t//set starting state\n \tcurrentState = DriveState.accelerating;\n }", "private void initializeBuffers(){\n if(isDiskBufferEnabled){\n this.persistenceService = PersistenceService.getService();\n this.synonymyBuffer = persistenceService.getMapDatabase(WIKIDATA_SYNONYMY_BUFFER);\n this.hypernymyBuffer = persistenceService.getMapDatabase(WIKIDATA_HYPERNYMY_BUFFER);\n this.askBuffer = persistenceService.getMapDatabase(WIKIDATA_ASK_BUFFER);\n } else {\n this.synonymyBuffer = new ConcurrentHashMap<>();\n this.hypernymyBuffer = new ConcurrentHashMap<>();\n this.askBuffer = new ConcurrentHashMap<>();\n }\n }", "private void initialisation()\n\t{\n\t\tdaoFactory = new DaoFactory();\n\n\t\ttry\n\t\t{\n\t\t\tequationStandardSessions = EquationCommonContext.getContext().getGlobalProcessingEquationStandardSessions(\n\t\t\t\t\t\t\tsession.getSessionIdentifier());\n\t\t}\n\t\tcatch (Exception eQException)\n\t\t{\n\t\t\tif (LOG.isErrorEnabled())\n\t\t\t{\n\t\t\t\tStringBuilder message = new StringBuilder(\"There is a problem creating Global processing the sessions\");\n\t\t\t\tLOG.error(message.toString(), eQException);\n\t\t\t}\n\t\t}\n\t}", "private void initData() {\n }", "public void initPersistence (){\n\t\tif (!this._onAppInit){\n\t\t\t/*\n\t\t\t * Evita stackoverflow\n\t\t\t */\n\t\t\tcloseActiveStoreData ();\n\t\t}\n\t\tsetDatastoreProperties ();\n\t\tfinal Properties properties = this._dataStoreEnvironment.getDataStoreProperties ();\n\t\tfinal PersistenceManagerFactory pmf =\n\t\t\t\t\t JDOHelper.getPersistenceManagerFactory(properties);\n\t\t\n//\t\tSystem.out.println (\"Setting persistent manager from \"+properties);\n\t\t\n\t\tthis.pm = pmf.getPersistenceManager();\n\t\t\n\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\tthis.pm.currentTransaction().commit();\n\t\t}\n\t\tthis.pm.currentTransaction().setOptimistic (false);\n//\t\tthis.pm.currentTransaction().begin();\n\t}", "private void initialize() {\n this.pm10Sensors = new ArrayList<>();\n this.tempSensors = new ArrayList<>();\n this.humidSensors = new ArrayList<>();\n }", "public void initialise_new_game() {\n\n data.read_from_file(\"maxus2.txt\");\n\n mySound.initialise();\n\n pacman.init();\n ghost.init();\n\n score.initialise();\n }", "@BeforeClass\n\tpublic static void chordInit() {\n\t\trand_root = new Random().nextInt(7) + 1;\n\n\t\tswitch(new Random().nextInt(4)){\n\t\tcase 0: rand_tone = Chord.Tonality.maj; break;\n\t\tcase 1: rand_tone = Chord.Tonality.min; break;\n\t\tcase 2: rand_tone = Chord.Tonality.dim; break;\n\t\tcase 3: rand_tone = Chord.Tonality.aug; break;\n\t\tdefault: rand_tone = Chord.Tonality.maj;\n\t\t}\n\n\t\trand_octave = new Random().nextInt(10);\n\n\t\t//necessary for tests requiring an established chord\n\t\ttry{\n\t\t\tSystem.out.println(\"Creating \" + rand_tone + \" chord: \" + rand_root + \" in octave \" + rand_octave);\n\t\t\tchord = new Chord(rand_root, rand_tone, rand_octave, 0, \"\", 4);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(e.getMessage());\n\t\t}\n\t}", "public void setup() {\n fill(0);\n stroke(0);\n StringManager.setInstance(this);\n for (int i = 0; i < NUM_STRINGS; i++) {\n double factor = Math.pow(2, i / 12.0);\n StringManager.getInstance().addString(BASE_FREQ * factor);\n }\n\n KeyMap keyMap = KeyMap.getInstance();\n keyMap.addRunnable('a', new AllStringsRunner());\n //keyMap.addRunnable('q', new SingleStringRunner(0));\n char[] keys = new char[] {'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\\\\'};\n for (int i = 0; i < keys.length; ++i) {\n keyMap.addRunnable(keys[i], new StringRunner(i));\n }\n\n keyMap.addRunnable('z', new StringRunner(0, 4, 7));\n\n Menu.setInstance(this);\n Menu myMenu = Menu.getInstance();\n myMenu.addController(\n \"PlayPauseEvents\",\n new RunnableButtonController(this, \"Play/Pause\", new PlayPauseRunnable()));\n myMenu.addController(\n \"LoadSong0\", new RunnableButtonController(this, \"Load Song\", new LoadSongRunnable(this)));\n //myMenu.addController(\"Button0\", new ButtonController(this, \"Button0\"));\n\n //EventQueue.getInstance().addEvent(2, new StringRunner(chordA));\n //EventQueue.getInstance().beginEvents();\n\n lastActive = System.currentTimeMillis();\n noLoop();\n redraw();\n }", "public static void setSequence(Sequence m){\n\t\tcurMIDI = m;\n\t}", "public void beginInitialization() {\n SQLiteDatabase db = this.helper.getWritableDatabase();\n db.beginTransaction();\n populateMeasurementVersionsCache(db);\n }", "public static void init() {\n startTime = System.currentTimeMillis();\n if (clientExecutorEngine == null) {\n clientExecutorEngine = new ClientExecutorEngine();\n HzClient.initClient();\n }\n }", "private void initData() {\n\t}", "private void initializeStoreFromPersistedData() throws IOException\r\n {\r\n loadKeys();\r\n\r\n if (keyHash.isEmpty())\r\n {\r\n dataFile.reset();\r\n }\r\n else\r\n {\r\n final boolean isOk = checkKeyDataConsistency(false);\r\n if (!isOk)\r\n {\r\n keyHash.clear();\r\n keyFile.reset();\r\n dataFile.reset();\r\n log.warn(\"{0}: Corruption detected. Resetting data and keys files.\", logCacheName);\r\n }\r\n else\r\n {\r\n synchronized (this)\r\n {\r\n startupSize = keyHash.size();\r\n }\r\n }\r\n }\r\n }", "public static void init() {\r\n load();\r\n registerEventListener();\r\n }", "public void init() {\n // These data structures are initialized here because other\n // module's startUp() might be called before ours\n this.systemStartTime = System.currentTimeMillis();\n }", "public void init() {\n\t\t\n\t\tdebugPrintln(\"Doing init.\");\n\t\t\n\t\t// can sanity check some things by requesting notification when nodes\n\t\t// are created/deleted/etc.\n\t\t// It does not notify when playBufs reach the end of a buffer, though.\n\t\t// Too bad, that. Would have to poll.\n\t\tsendMessage(\"/notify\", new Object[] { 1 });\n\n\t\t//start by cleaning up any detritus from previous runs on the same server:\n\t\tcleanup();\n\n\t\t//sclang creates the default group, not supercollider, so let's follow that convention.\n\t\tcreateGroup(1, 0);\n\n\t\t// create a mother group, under the default group (1),\n\t\t// which will contain all of the SCSoundControl objects.\n\t\t//this is where we would query if another node == _motherGroupID already exists.\n\t\t//if so, would need to choose an alternate groupID (e.g. += 10000)\n\t\tcreateGroup(_motherGroupID, 1);\n\t\t\n\t}", "void initializeEqualizer(int priority, int audioSessionId);", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n prepareConfDir();\n loadAnimationList();\n loadPatternList();\n loadPadTabPane();\n ControllerManager controllerManager = DIContainer.get(ControllerManager.class);\n controllerManager.register(this);\n StepSequencerPattern defaultPattern = stepSequencerManager.getPattern();\n for (int i = 0; i < 3; i++) {\n defaultPattern.add(new StepSequencer(\n this,\n i,\n defaultPattern.getCalcClock(),\n defaultPattern.getBeats(),\n colWidth\n ));\n }\n currentStepSequencer = defaultPattern.getStepSequencerList().get(0);\n clockFader.valueProperty().addListener(event -> {\n StepSequencerPattern pattern = stepSequencerManager.getPattern();\n pattern.setClock((int) clockFader.getValue());\n updateStepSequencer(pattern);\n int clock = pattern.getCalcClock();\n int beats = pattern.getBeats();\n clockLabel.setText(String.valueOf(clock));\n });\n rateFader.valueProperty().addListener(event -> {\n StepSequencerPattern pattern = stepSequencerManager.getPattern();\n pattern.setRate((int) rateFader.getValue());\n rateLabel.setText(String.valueOf(pattern.getCalcRate()));\n });\n addSequence.setOnAction(event -> {\n StepSequencerPattern pattern = stepSequencerManager.getPattern();\n pattern.add(new StepSequencer(\n this,\n pattern.getSize(),\n pattern.getCalcClock(),\n pattern.getBeats(),\n colWidth));\n });\n removeSequence.setOnAction(event -> {\n stepSequencerManager.getPattern().remove();\n });\n sequencerGrid.widthProperty().addListener((observableValue, oldValue, newValue) -> {\n StepSequencerPattern pattern = stepSequencerManager.getPattern();\n double labelWidth = sequencerGrid.getColumnConstraints().get(0).getPrefWidth();\n int clock = pattern.getCalcClock();\n colWidth = (newValue.doubleValue() - labelWidth) / clock + 1;\n pattern.setButtonWidth(colWidth);\n });\n patternNameField.setOnKeyTyped(event -> {\n if (Objects.equals(event.getCharacter(), \"\\r\")) {\n patternSave.fire();\n }\n });\n patternSave.setOnAction(event -> {\n StepSequencerPattern pattern = stepSequencerManager.getPattern();\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n objectMapper.writeValue(new File(PATTERN_DIR_PATH + \"/\" + patternNameField.getText() + \".json\"), pattern);\n loadPatternList();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n stepSequencerManager.getPattern().setClock(0);\n updateStepSequencer(stepSequencerManager.getPattern());\n paramsField.setOnKeyTyped(event -> {\n if (Objects.equals(event.getCharacter(), \"\\r\")) {\n currentStepSequencer.setParams(paramsField.getText());\n }\n });\n }", "public void initData() {\n }", "public void initData() {\n }", "public void setMidiDevice( MidiDeviceDescriptor midiDevice ) throws IllegalStateException;", "public void start() {\n\t\tpcmList = Collections.synchronizedList(new LinkedList<PCMData>());\n\t\tencodedlist = Collections\n\t\t\t\t.synchronizedList(new LinkedList<EncodedData>());\n\t\taudioRecordThread = new AudioRecordThread(this);\n\t\taudioSpeexEncoderThread = new AudioSpeexEncoderThread(this);\n\t\tflvWriterThread = new AudioFlvWriterThread(this);\n\t\taudioRecordThread.start();\n\t\taudioSpeexEncoderThread.start();\n\t\tflvWriterThread.start();\n\t}", "public void init() {\n log.info(\"initialization\");\n }", "public SequenceImpl() {\n super();\n initSequence();\n }", "public void init() {\n\t\ttry {\n\t\t\tthis.is = new ObjectInputStream(clientSocket.getInputStream());\n\t\t\tthis.os = new ObjectOutputStream(clientSocket.getOutputStream());\n\t\t\twhile (this.readCommand()) {}\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\tSystem.out.println(\"XX. There was a problem with the Input/Output Communication:\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override public void init() {\n drive = MecanumDrive.standard(hardwareMap); // Comment this line if you, for some reason, don't need to use the drive motors\n\n // Uncomment the next three lines if you need to use the gyroscope\n // gyro = IMUGyro.standard(hardwareMap);\n // gyro.initialize();\n // gyro.calibrate();\n\n // Uncomment the next two lines if you need to use the vision system\n // vision = new Vision(hardwareMap);\n // vision.init();\n\n // Uncomment the next line if you have a servo\n // myServo = hardwareMap.get(Servo.class, \"myServo\");\n\n /** Place any code that should run when INIT is pressed here. **/\n }", "@Override\n public void init() {\n // Get references to dc motors and set initial mode and direction\n // It appears all encoders are reset upon robot startup, but just in case, set all motor\n // modes to Stop-And-Reset-Encoders during initialization.\n motorLeftA = hardwareMap.dcMotor.get(MOTOR_DRIVE_LEFT_A);\n motorLeftA.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorLeftA.setDirection(DcMotor.Direction.FORWARD);\n\n motorLeftB = hardwareMap.dcMotor.get(MOTOR_DRIVE_LEFT_B);\n motorLeftB.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorLeftB.setDirection(DcMotor.Direction.FORWARD);\n\n motorRightA = hardwareMap.dcMotor.get(MOTOR_DRIVE_RIGHT_A);\n motorRightA.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorRightA.setDirection(DcMotor.Direction.REVERSE);\n\n motorRightB = hardwareMap.dcMotor.get(MOTOR_DRIVE_RIGHT_B);\n motorRightB.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorRightB.setDirection(DcMotor.Direction.REVERSE);\n\n //motorGlyphLift = hardwareMap.dcMotor.get(GLYPH_LIFT);\n //motorGlyphLift.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n //motorGlyphLift.setDirection(DcMotor.Direction.FORWARD);\n\n sGlyphL = hardwareMap.servo.get(GLYPH_LEFT);\n //sGlyphL.scaleRange(0,180);\n\n sGlyphR = hardwareMap.servo.get(GLYPH_RIGHT);\n sGem = hardwareMap.servo.get(Gem);\n\n //Initialize vex motor\n sGLift = hardwareMap.crservo.get(Servo_GlyphLift);\n\n //sGLift.setPower(0);\n\n //sGLift2 = hardwareMap.servo.get(Servo_GlyphLift);\n\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters);\n\n imu = hardwareMap.get(BNO055IMU.class,\"imu\");\n imu.initialize(parameters);\n\n //servoGlyph1.setPosition(180);\n //servoGlyph2.setPosition(180);\n\n bDirection = true;\n }", "protected void initialize() {\n\t\televator.zeroEncoder();\n\t}", "@Override\n public void init() {\n touchSensor1 = hardwareMap.touchSensor.get(\"touchSensor1\");\n lightSensor1 = hardwareMap.lightSensor.get(\"lightSensor1\");\n motorLeft1 = hardwareMap.dcMotor.get(\"motorLeft1\");\n motorLeft2 = hardwareMap.dcMotor.get(\"motorLeft2\");\n motorRight1 = hardwareMap.dcMotor.get(\"motorRight1\");\n motorRight2 = hardwareMap.dcMotor.get(\"motorRight2\");\n\n //Setup Hardware\n motorLeft1.setDirection(DcMotor.Direction.REVERSE);\n motorLeft2.setDirection(DcMotor.Direction.REVERSE);\n\n // Set up the parameters with which we will use our IMU. Note that integration\n // algorithm here just reports accelerations to the logcat log; it doesn't actually\n // provide positional information.\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"AdafruitIMUCalibration.json\"; // see the calibration sample opmode\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n // parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n\n // Retrieve and initialize the IMU. We expect the IMU to be attached to an I2C port\n // on a Core Device Interface Module, configured to be a sensor of type \"AdaFruit IMU\",\n // and named \"imu\".\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters);\n\n currentState = MotorState.WAIT_TO_START;\n nextState = MotorState.WAIT_TO_START;\n count = 0;\n composeTelemetry();\n }", "public Communicator() {\n\n\t\tthis.isReady = false;\n\t\tthis.hold = 0;\n\t\tthis.speaker = 0;\n\t\tthis.listener = 0;\n\t\t//init values\n\n\t\tthis.newLock = new Lock();\n\t\t//new lock\n\t\tthis.speakerR = new Condition2(newLock);\n\t\t//condition variable for speakers\n\t\tthis.listenerR = new Condition2(newLock);\n\t\t//condition variable for listener\n\t\tthis.inProg = new Condition2(newLock);\n\t\t//condition variable for inprog message\n\n\t}", "public MidiView(MidiDevice midiDevice) {\n this.started = false;\n try {\n midiDevice.open();\n this.receiver = midiDevice.getReceiver();\n this.receiver = midiDevice.getReceiver();\n } catch (MidiUnavailableException e) {\n e.printStackTrace();\n }\n }", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "private void init() {\n myNodeDetails = new NodeDetails();\n try {\n //port will store value of port used for connection\n //eg: port = 5554*2 = 11108\n String port = String.valueOf(Integer.parseInt(getMyNodeId()) * 2);\n //nodeIdHash will store hash of nodeId =>\n // eg: nodeIdHash = hashgen(5554)\n String nodeIdHash = genHash(getMyNodeId());\n myNodeDetails.setPort(port);\n myNodeDetails.setNodeIdHash(nodeIdHash);\n myNodeDetails.setPredecessorPort(port);\n myNodeDetails.setSuccessorPort(port);\n myNodeDetails.setSuccessorNodeIdHash(nodeIdHash);\n myNodeDetails.setPredecessorNodeIdHash(nodeIdHash);\n myNodeDetails.setFirstNode(true);\n\n if (getMyNodeId().equalsIgnoreCase(masterPort)) {\n chordNodeList = new ArrayList<NodeDetails>();\n chordNodeList.add(myNodeDetails);\n }\n\n } catch (Exception e) {\n Log.e(TAG,\"**************************Exception in init()**********************\");\n e.printStackTrace();\n }\n }", "public interface MidiDevice\n{\n}", "public void init() {\n cupDataChangeListener = new CupDataChangeListener(dataBroker);\n }", "private void initData() {\n\n }", "private void initSounds() {\n\n\n\t}", "private void initDataLoader() {\n\t}", "@Before\n public void setup()\n {\n assumeFalse(\"No audio devices are available. Skipping...\",\n AudioDetector.getInstance().isNoAudio());\n MusicPlayer.init();\n }", "public void init(BinaryDataReader dataReader) throws IOException\n\t{\n\t}", "public void init()\r\n {\r\n m_active = false;\r\n m_entryTimes = new HashMap<String, Long>();\r\n m_tsm = BotAction.getBotAction().getTSM();\r\n m_tsm.setOperatorLevel(ER_LEVEL);\r\n registerSettings();\r\n m_tsm.addTSChangeListener(this);\r\n m_botAction.setPlayerPositionUpdating(500);\r\n }", "@Override\n public void init() {\n\n try {\n\n // Get wheel motors\n wheelMotor1 = hardwareMap.dcMotor.get(\"Wheel 1\");\n wheelMotor2 = hardwareMap.dcMotor.get(\"Wheel 2\");\n\n // Initialize wheel motors\n wheelMotor1.setMode(DcMotorController.RunMode.RUN_WITHOUT_ENCODERS);\n wheelMotor2.setMode(DcMotorController.RunMode.RUN_WITHOUT_ENCODERS);\n wheelMotor1.setDirection(DcMotor.Direction.FORWARD);\n wheelMotor2.setDirection(DcMotor.Direction.REVERSE);\n robotDirection = DriveMoveDirection.Forward;\n motion = new Motion(wheelMotor1, wheelMotor2);\n\n // Get hook motor\n motorHook = hardwareMap.dcMotor.get(\"Hook\");\n motorHook.setDirection(DcMotor.Direction.REVERSE);\n\n // Get servos\n servoTapeMeasureUpDown = hardwareMap.servo.get(\"Hook Control\");\n servoClimberDumperArm = hardwareMap.servo.get(\"Climber Dumper Arm\");\n servoDebrisPusher = hardwareMap.servo.get(\"Debris Pusher\");\n servoZipLineLeft = hardwareMap.servo.get(\"Zip Line Left\");\n servoZipLineRight = hardwareMap.servo.get(\"Zip Line Right\");\n servoAllClearRight = hardwareMap.servo.get (\"All Clear Right\");\n servoAllClearLeft = hardwareMap.servo.get (\"All Clear Left\");\n\n setServoPositions();\n }\n catch (Exception ex)\n {\n telemetry.addData(\"error\", ex.getMessage());\n }\n }", "@Override\n public void init() {\n \n \n rightFront = hardwareMap.dcMotor.get(\"frontR\");\n rightBack = hardwareMap.dcMotor.get(\"backR\");\n \n \n \n rightFront.setDirection(DcMotor.Direction.FORWARD); \n rightBack.setDirection(DcMotor.Direction.FORWARD);\n \n \n \n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Say\", \"Hello Driver\"); //\n }", "private void init() {\n mEventBus = new AsyncEventBus(new HandlerExecutor());\n mEventBus.register(this);\n }", "public void initialize()\r\n\t{\r\n\t\tdatabaseHandler = DatabaseHandler.getInstance();\r\n\t\tfillPatientsTable();\r\n\t}", "public AudioSettings() {\n this.emulator = NEmuSUnified.getInstance().getEmulator();\n }", "public void teleopInit() {\n\t\tauto.cancel();\r\n\t\t// Create the teleop command and start it.\r\n\t\tteleop.start();\r\n\t\t// Reset the drivetrain encoders\r\n\t\tDriveTrain.getInstance().resetEncoders();\r\n\t\t// Start pushing sensor readings to the SD.\r\n\t\treadings.start();\r\n\t}", "public void init() {\n \t\tif (initLock.start()) {\n \t\t\ttry {\n \t\t\t\tthis._init(this.config);\n \t\t\t} finally {\n \t\t\t\tinitLock.end();\n \t\t\t}\n \t\t}\n \t}", "private void initDevice() {\n device = new Device();\n device.setManufacture(new Manufacture());\n device.setInput(new Input());\n device.setPrice(new Price());\n device.getPrice().setCurrency(\"usd\");\n device.setCritical(DeviceCritical.FALSE);\n }", "protected void initGSM() {\n gsm = new GameStateManager();}", "@Override\n public void init() {\n /* Initialize the hardware variables.\n * The init() method of the hardware class does all the work here\n */\n robot.init(hardwareMap);\n\n robot.leftDriveMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.rightDriveMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n // Possibly add a delay\n robot.leftDriveMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n robot.rightDriveMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Say\", \"Hello Driver\"); //\n }", "protected void aInit()\n {\n \ta_available=WindowSize;\n \tLimitSeqNo=WindowSize*2;\n \ta_base=1;\n \ta_nextseq=1;\n }", "public SoundManager() {\n mCurrentSoundID = -1;\n //mNames = new String[16];//new Vector();\n// mPlayers = new Player[16];//new Vector();\n int numSound = getNumberOfSounds();\n mSoundData = new byte[numSound][];\n mPlayers = new Player[numSound];\n for (int i = 0; i < numSound; i++) {\n //mNames[i] = null;\n// mPlayers[i] = null;\n mSoundData[i] = null;\n mPlayers[i] = null;\n }\n //mCurrentSound = \"\";\n mIsActive = false;\n mIsIdle = true;\n mCurPlayer = null;\n }", "public void init(String[] args, RefDataSession refDataSession, SnapshotSession snapshotSession)\n {\n EDFConsumer.addCommandLineArgs();\n try\n {\n CommandLine.parseArgs(args);\n }\n catch (IllegalArgumentException ile)\n {\n System.err.println(\"Error loading command line arguments:\\t\");\n System.err.println(ile.getMessage());\n System.err.println();\n System.err.println(CommandLine.optionHelpString());\n System.exit(CodecReturnCodes.FAILURE);\n }\n\n try\n {\n runtime = System.currentTimeMillis() + CommandLine.intValue(\"runtime\") * 1000;\n }\n catch (NumberFormatException ile)\n {\n System.err.println(\"Invalid argument, number expected.\\t\");\n System.err.println(ile.getMessage());\n System.exit(CodecReturnCodes.FAILURE);\n }\n\n // load dictionary\n dictionaryHandler = refDataSession.dictionary();\n\n seqMcastInfo = refDataSession.seqMcastInfo();\n symbolListHandler = snapshotSession.symbolListHandler();\n \n PingHandler pingHandler = new PingHandler();\n InProgInfo inProg = TransportFactory.createInProgInfo();\n \n List<String> addresses;\n List<String> ports;\n List<String> interfaces;\n \n if (state != RealTimeSessionState.REALTIME_STATE_READY)\n {\n if ((addresses = CommandLine.values(\"rtda\")) != null &&\n (ports = CommandLine.values(\"rtdp\")) != null &&\n (interfaces = CommandLine.values(\"rtif\")) != null)\n {\n for (int i = 0; i < addresses.size(); ++i)\n {\n try\n {\n connect(inProg, addresses.get(i), ports.get(i), interfaces.get(i));\n }\n catch (InterruptedException e)\n {\n System.out.println(\"Thread: \" + Thread.currentThread() + \" interrupted. Error:\"\n + e.getLocalizedMessage());\n return;\n }\n }\n }\n else\n try\n {\n if (CommandLine.values(\"mbo\") != null)\n for (int i = 0; i < CommandLine.values(\"mbo\").size(); ++i)\n {\n if ((itemEntry = symbolListHandler.symbolList().get(CommandLine.values(\"mbo\").get(i))) != null)\n {\n if(!checkIfConnected(itemEntry.getRealTimeChannelId(DomainTypes.MARKET_BY_ORDER)))\n {\n connect(inProg, itemEntry.getRealTimeChannelId(DomainTypes.MARKET_BY_ORDER));\n }\n\n }\n\n }\n if (CommandLine.values(\"mbp\") != null)\n for (int i = 0; i < CommandLine.values(\"mbp\").size(); ++i)\n {\n if ((itemEntry = symbolListHandler.symbolList().get(CommandLine.values(\"mbp\").get(i))) != null)\n {\n if(!checkIfConnected(itemEntry.getRealTimeChannelId(DomainTypes.MARKET_BY_PRICE)))\n {\n connect(inProg, itemEntry.getRealTimeChannelId(DomainTypes.MARKET_BY_PRICE));\n }\n }\n\n }\n if (CommandLine.values(\"mp\") != null)\n for (int i = 0; i < CommandLine.values(\"mp\").size(); ++i)\n {\n if ((itemEntry = symbolListHandler.symbolList().get(CommandLine.values(\"mp\").get(i))) != null)\n {\n if(!checkIfConnected(itemEntry.getRealTimeChannelId(DomainTypes.MARKET_PRICE)))\n {\n connect(inProg, itemEntry.getRealTimeChannelId(DomainTypes.MARKET_PRICE));\n }\n }\n }\n }\n catch (InterruptedException intExp)\n {\n System.out.println(\"Thread: \" + Thread.currentThread() + \" interrupted. Error:\"\n + intExp.getLocalizedMessage());\n return;\n }\n }\n // Handle run-time\n if (System.currentTimeMillis() >= runtime)\n {\n System.out.println(\"RealTimeSession run-time expired...\");\n return;\n }\n\n state = RealTimeSessionState.REALTIME_STATE_READY;\n\n \n \n // Initialize ping handlers\n for (ChannelSession channelSession : channelSessions)\n pingHandler.initPingHandler(channelSession.channel().pingTimeout());\n }", "public void init() {\n\t\tinit(\"1,0 3,0 5,0 7,0 9,0 0,1 2,1 4,1 6,1 8,1 1,2 3,2 5,2 7,2 9,2 0,3 2,3 4,3 6,3 8,3\", \n\t\t\t \"1,6 3,6 5,6 7,6 9,6 0,7 2,7 4,7 6,7 8,7 1,8 3,8 5,8 7,8 9,8 0,9 2,9 4,9 6,9 8,9\"); \n }", "public MidiTrack(int instrumentId) {\n\t\tnotes = new ArrayList<MidiNote>();\n\t\tthis.instrumentId = instrumentId;\n\t\tthis.initPitchDictionary();\n\t}", "private static void initializeDatabase() {\n\t\tArrayList<String> data = DatabaseHandler.readDatabase(DATABASE_NAME);\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\trecords = serializer.deserialize(data);\n\t}", "public void initEncoderTxData()\n\t{\n\t\tfor(counter_i=0;counter_i<sampleBit;counter_i++)\n\t\t{\n\t\t\thighLevel[counter_i] = (short) (audioAM * (-Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t\tlowLevel[counter_i] = (short) (audioAM * (Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t}\n\t}", "@Override\n public void init() {\n telemetry.addData(\">\", \"Initializing...\");\n telemetry.update();\n\n // Sensors\n gyro = new Gyro(hardwareMap, \"gyro\");\n if (!gyro.isAvailable()) {\n telemetry.log().add(\"ERROR: Unable to initalize gyro\");\n }\n\n // Drive motors\n tank = new WheelMotorConfigs().init(hardwareMap, telemetry);\n tank.stop();\n\n // Vuforia\n vuforia = new VuforiaFTC(VuforiaConfigs.AssetName, VuforiaConfigs.TargetCount,\n VuforiaConfigs.Field(), VuforiaConfigs.Bot());\n vuforia.init();\n\n // Wait for the game to begin\n telemetry.addData(\">\", \"Ready for game start\");\n telemetry.update();\n }", "public ToMidi() throws FileNotFoundException {\n this.modes = createModes(\"data\\\\modes.txt\");\n this.rootNotes = createRootNotes(\"data\\\\notes.txt\");\n this.chordChanges = createChordChanges(\"data\\\\chordchanges.txt\");\n this.chordRules = new HashMap<String, int[]>();\n chordRules.put(\"maj\", new int[]{0, 4, 7});\n chordRules.put(\"min\", new int[]{0, 3, 7}); \n chordRules.put(\"dim\", new int[]{0, 3, 6});\n }" ]
[ "0.65041035", "0.6015961", "0.5888122", "0.5754152", "0.5748487", "0.57083774", "0.55812603", "0.5574806", "0.5556172", "0.5545269", "0.5537342", "0.55097413", "0.5460366", "0.5444616", "0.5439001", "0.5422814", "0.5388817", "0.53657335", "0.5341977", "0.53383243", "0.53219527", "0.5318847", "0.52799916", "0.5272379", "0.5251863", "0.5251288", "0.52407366", "0.52326703", "0.5227973", "0.5218886", "0.5208108", "0.5207778", "0.5199299", "0.51931626", "0.5188748", "0.51882917", "0.5181887", "0.5180948", "0.51668406", "0.51664597", "0.516484", "0.5164357", "0.5164253", "0.5161247", "0.51591283", "0.51539254", "0.5151877", "0.5148137", "0.5146872", "0.51457083", "0.51450384", "0.51428056", "0.513774", "0.5133904", "0.5127338", "0.5123184", "0.5119482", "0.5114592", "0.51091516", "0.51091516", "0.5094852", "0.50927615", "0.5091782", "0.50893533", "0.5079666", "0.50767267", "0.507262", "0.5068022", "0.5057049", "0.5052396", "0.50462264", "0.50457096", "0.5043486", "0.5039344", "0.50348014", "0.50239927", "0.50234926", "0.50217015", "0.5017789", "0.50093216", "0.500906", "0.50030607", "0.50022286", "0.49977833", "0.49968705", "0.49932373", "0.49914327", "0.49902937", "0.49865112", "0.49848703", "0.4983335", "0.49791136", "0.49753723", "0.49610174", "0.49609953", "0.49607882", "0.49530157", "0.49466413", "0.4937329", "0.49313048" ]
0.66150886
0
Returns a new SoundHolder linked to this loader
public SoundHolder getMidiHolder ( String name ) throws KeyAlreadyExistsException { if ( this.midisMap.containsKey ( name ) ) throw new KeyAlreadyExistsException ( "Sound name " + name + " already exists!" ); this.midisMap.put ( name, new MidiSoundHolder ( this ) ); return this.midisMap.get ( name ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private FunctionSoundD getFunctionSound() {\n\t\tif (functionSound == null) {\n\t\t\ttry {\n\t\t\t\tfunctionSound = new FunctionSoundD();\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.error(\"Problem in getFunctionSound(): \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn functionSound;\n\t}", "public abstract SoundContainer loadSound( InputStream in ) throws IOException;", "public static SoundController getInstance() {\n\t\tif (controller == null) {\n\t\t\tcontroller = new SoundController();\n\t\t}\n\t\treturn controller;\n\t}", "public abstract SoundContainer loadSound( String filename ) throws IOException;", "public Sound getSound() {\n return _sound;\n }", "void InitSound() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n //Use the newer SoundPool.Builder\n //Set the audio attributes, SONIFICATION is for interaction events\n //uses builder pattern\n AudioAttributes aa = new AudioAttributes.Builder()\n .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION)\n .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)\n .build();\n\n //default max streams is 1\n //also uses builder pattern\n dice_sound= new SoundPool.Builder().setAudioAttributes(aa).build();\n\n } else {\n // Running on device earlier than Lollipop\n //Use the older SoundPool constructor\n dice_sound=PreLollipopSoundPool.NewSoundPool();\n }\n //Load the dice sound\n sound_id=dice_sound.load(this,R.raw.shake_dice,1);\n alarm_sound_id=dice_sound.load(this,R.raw.on_time,1);\n }", "public abstract SoundContainer loadSound( URL url ) throws IOException;", "public Sound load(String path)\n\t{\n\t//\tSystem.out.println(\"Loading sound: \" + path);\n\t\t\t\n\t\tSound newSound;\n\t\t\n\t\tif(sounds.containsKey(path))\n\t\t{\n\t\t\tnewSound = sounds.get(path);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewSound = new Sound(path);\n\t\t\tsounds.put(path,newSound);\n\t\t}\n\t\treturn newSound;\n\t}", "private SoundUtils() {}", "public SoundLoader(String path)\n {\n //inputStream = SoundLoader.class.getResourceAsStream(\"/resources/\"+path);\n inputStream = getClass().getResourceAsStream(\"/resources/\" + path);\n// inputStream =\n// ClassLoader.getSystemResourceAsStream(\"/resources/\" + path);\n\n try\n {\n BufferedInputStream buffered = new BufferedInputStream(inputStream);\n AudioInputStream audioStream =\n AudioSystem.getAudioInputStream(buffered);\n AudioFormat format = audioStream.getFormat();\n DataLine.Info info = new DataLine.Info(Clip.class, format);\n audioClip = (Clip) AudioSystem.getLine(info);\n\n audioClip.addLineListener(SoundLoader.this);\n\n audioClip.open(audioStream);\n\n }\n catch (UnsupportedAudioFileException e)\n {\n e.printStackTrace();\n }\n catch (LineUnavailableException e)\n {\n e.printStackTrace();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "PlaySound getSound();", "private SoundClip createStream(String audioFilename){\n SoundClip audio = null;\n try {\n // IDE\n //AudioInputStream ais = AudioSystem.getAudioInputStream(new File(audioFilename).getAbsoluteFile());\n // JAR\n AudioInputStream ais = AudioSystem.getAudioInputStream(ClassLoader.getSystemResource(audioFilename));\n DataLine.Info info = new DataLine.Info(Clip.class, ais.getFormat());\n Clip c = (Clip) AudioSystem.getLine(info);\n audio = new SoundClip(null,c,ais);\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return audio;\n }", "public SoundDescriptor clone();", "public SoundClip getSound() {\n return socSound;\n }", "public Sound loadSound(String file);", "public static InternalTextureLoader get() {\n/* 40 */ return loader;\n/* */ }", "protected String getLivingSound()\n {\n return null;\n }", "protected String getLivingSound()\n {\n return null;\n }", "public static MusicPlayer getInstance()\n {\n return INSTANCE;\n }", "public final static SoundHandler getSoundHandler() {\r\n\t\treturn soundHandler;\r\n\t}", "public final String getSound( ) {\n\t\treturn sound;\n\t}", "@Override\r\n\t\tpublic void run()\r\n\t\t{\r\n\t\t\tLayeredSound.getInstance().add( sound );\r\n\t\t}", "public Sound createSound(String file);", "@Override\n\tpublic Loader onCreateLoader(int id, Bundle args) {\n\t\treturn new MusicMediaLibaryLoader(getActivity());\n\t}", "public CoreJavaSound() throws Exception{\n\t\tInputStream wav = CoreJavaSound.class.getResourceAsStream(\"res/dun_dun_1.wav\");\n\t\tInputStream bufferedIn = new BufferedInputStream(wav);\n\t\t\n\t\tLine.Info linfo = new Line.Info(Clip.class);\n\t\tLine line = AudioSystem.getLine(linfo);\n\t\tclip = (Clip)line;\n\t\tclip.addLineListener(this);\n\t\tAudioInputStream ais = AudioSystem.getAudioInputStream(bufferedIn);\n\t\tclip.open(ais);\n\t\t\t\t\n\t}", "private SoundController() {\n\t\tsoundbank = new HashMap<String, Sound>();\n\t\tmusicbank = new HashMap<String, Music>();\n\t\tactives = new IdentityMap<String,ActiveSound>();\n\t\tcollection = new Array<String>();\n\t\tcooldown = DEFAULT_COOL;\n\t\ttimeLimit = DEFAULT_LIMIT;\n\t\tframeLimit = DEFAULT_FRAME;\n\t\tcurrent = 0;\n\t}", "public String getSound();", "public void initMusic() {\r\n mSoundPool = new SoundPool(3, AudioManager.STREAM_MUSIC, 0);\r\n mSoundClick = mSoundPool.load(getActivity(), R.raw.click, 1);\r\n mSoundCorrect = mSoundPool.load(getActivity(), R.raw.correct, 1);\r\n mSoundIncorrect = mSoundPool.load(getActivity(), R.raw.wrong, 1);\r\n }", "public Sound(Context context) {\r\n\t\tthis.mp = MediaPlayer.create(context, R.raw.baby);\r\n\t\r\n\t}", "public SoundController() {\r\n // initialize the module libraries\r\n this.initModuleLibraries();\r\n\r\n // in this moment no sonification map is defined\r\n this.sonificationMap = new HashMap<String, SonificationMap>();\r\n\r\n // in this moment we have an empty soundMap\r\n this.soundsMap = new HashMap<String, Sound>();\r\n\r\n // in this moment no type names are defined\r\n this.soundEventsTypeNameMap = new HashMap<String, String>();\r\n\r\n // create the GUI component\r\n this.tabSound = new TabSound(this);\r\n\r\n // create the sounds-events active state empty map\r\n this.soundEventActiveStateMap = new HashMap<String, Boolean>();\r\n\r\n // enable sound\r\n this.setEnabled(true);\r\n\r\n // the sound is active by default\r\n soundOn = true;\r\n\r\n // empty events queue\r\n eventQ = new ConcurrentLinkedQueue<EnvironmentEvent>();\r\n\r\n // the module thread is not running yet\r\n running = false;\r\n\r\n this.soundThread = new Thread(this);\r\n }", "@NonNull\n @Override\n public Loader<Cursor> onCreateLoader(int id, @Nullable Bundle args) {\n return new CursorLoader(getActivity().getApplicationContext()\n ,MediaStore.Audio.Media.getContentUri(\"external\")\n ,null\n ,null\n ,null\n ,null);\n }", "public Sound(String theSong)\n\t{\n\t\tminim = new Minim(new PApplet());\n\t\tthis.theSong = theSong;\n\t\tcanPlay = true;\n\t\tswitch (theSong)\n\t\t{\n\t\tcase \"SG1\":\n\t\t\tsong = minim.loadFile(\"assets/shotgunCock1.wav\");\n\t\t\tbreak;\n\t\tcase \"SG2\":\n\t\t\tsong = minim.loadFile(\"assets/shotgunCock2.wav\");\n\t\t\tbreak;\n\t\tcase \"ARFire\":\n\t\t\tsong = minim.loadFile(\"assets/M4Fire.mp3\");\n\t\t\tbreak;\n\t\tcase \"click\":\n\t\t\tsong = minim.loadFile(\"assets/gunClick.mp3\");\n\t\t\tbreak;\n\t\tcase \"clipIn\":\n\t\t\tsong = minim.loadFile(\"assets/clipIn.mp3\");\n\t\t\tbreak;\n\t\tcase \"clipOut\":\n\t\t\tsong = minim.loadFile(\"assets/clipOut.mp3\");\n\t\t\tbreak;\n\t\tcase \"chamberOut\":\n\t\t\tsong = minim.loadFile(\"assets/ARChamberOut.mp3\");\n\t\t\tbreak;\n\t\tcase \"chamberIn\":\n\t\t\tsong = minim.loadFile(\"assets/ARChamberIn.mp3\");\n\t\t\tbreak;\t\t\n\t\tcase \"shell\":\n\t\t\tsong = minim.loadFile(\"assets/shellFall.mp3\");\n\t\t\tbreak;\n\t\tcase \"SGFire\":\n\t\t\tsong = minim.loadFile(\"assets/SGBlast.mp3\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tsong = null;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "public void allocate(AssetManager manager, String filename) {\n\t\tSound sound = manager.get(filename, Sound.class);\n\t}", "public static ID3Audio getInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getInstance(model, instanceResource, ID3Audio.class);\r\n\t}", "public static BufferedSound getSound(String path, int type) {\n\t\tif (sounds.containsKey(path)) {\n\t\t\treturn sounds.get(path);\n\t\t}\n\t\ttry (InputStream is = Assets.class.getResourceAsStream(path)) {\n\t\t\tif (is != null) {\n\t\t\t\tBufferedSound sound = new BufferedSound(is, type);\n\t\t\t\tsounds.putIfAbsent(path, sound);\n\t\t\t\treturn sound;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public static ResourcesHolder getInstance() {\n\t\tif (instance==null)\n\t\t{\n\t\t\tinstance=new ResourcesHolder();\n\t\t}\n\t\treturn instance;\n\n\n\t}", "public int createSound(final String path)\n\t{\n\t\tint id=Fs_AudioPlayer.ERR_SOUND_ID;\n\t\n\t\t/* load from absolute path */\n\t\tif(path.startsWith(\"/\"))\n\t\t{\n\t\t\tLog.v(Fs_AudioPlayer.TAG,\"Loading: load sound from Absoulte Path: \"+path);\n\t\t\ttry\n\t\t\t{\n\t\t\t\tFile file=new File(path);\n\t\t\t\tif(file.exists())\n\t\t\t\t{\n\t\t\t\t\tid=this.m_soundPool.load(path,1);\n\t\t\t\t\treturn id;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.v(Fs_AudioPlayer.TAG,\"Exception:can't load sound from Absoulte Path: \"+path);\n\t\t\t\t/* do nothing */\n\t\t\t}\n\t\t}\n\t\t/* load from external path */\n\t\tdo\n\t\t{\n\t\t\tLog.v(Fs_AudioPlayer.TAG,\"Loading: load sound from External Path: \"+path);\n\t\t\ttry\n\t\t\t{\n\t\t\t\tFile file=new File(Fs_Application.getExternalDir()+path);\n\t\t\t\tif(file.exists())\n\t\t\t\t{\n\t\t\t\t\tid=this.m_soundPool.load(Fs_Application.getExternalDir()+path,1);\n\t\t\t\t\treturn id;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.v(Fs_AudioPlayer.TAG,\"Exception:can't load sound from External Path: \"+path);\n\t\t\t\t/* do nothing */\n\t\t\t}\n\t\t\t\n\t\t}while(false);\n\t\t\n\t\tdo \n\t\t{\n\t\t\tLog.v(Fs_AudioPlayer.TAG,\"Loading: load sound from Assets Path: \"+path);\n\t\t\ttry\n\t\t\t{\n\t\t\t\tAssetFileDescriptor fd=this.m_context.getAssets().openFd(path);\n\t\t\t\tid=this.m_soundPool.load(fd,1);\n\t\t\t\treturn id;\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.v(Fs_AudioPlayer.TAG,\"Exception:can't load sound from Assets Path: \"+path);\n\t\t\t\t/* do nothing */\n\t\t\t}\n\t\t}while(false);\n\t\t\n\t\tLog.v(Fs_AudioPlayer.TAG,\"Can't Load Sound From Path:\"+path);\n\t\t\n\t\treturn Fs_AudioPlayer.ERR_SOUND_ID;\n\n\t}", "public void load(int soundID) {\n System.out.println(\"LoadSound: \" + soundID);\n String aFilename = getSoundName(soundID);\n if (aFilename == null) \n {\n return;\n }\n \n Player player = null;\n try {\n // Create the player.\n if (mSoundData[soundID] == null) {\n InputStream is = getClass().getResourceAsStream(\"/sounds/\" + aFilename);\n\n if (is == null) {\n int kk = 0;\n }\n mSoundData[soundID] = new byte[is.available()];\n\n\n is.read(mSoundData[soundID]);\n is.close();\n }\n } catch (Throwable e) {\n e.printStackTrace();\n }\n }", "private synchronized void loadSoundSystem() {\n/* 118 */ if (!this.loaded) {\n/* */ \n/* */ try {\n/* */ \n/* 122 */ (new Thread(new Runnable()\n/* */ {\n/* */ public void run()\n/* */ {\n/* 126 */ SoundSystemConfig.setLogger(new SoundSystemLogger()\n/* */ {\n/* */ public void message(String p_message_1_, int p_message_2_)\n/* */ {\n/* 130 */ if (!p_message_1_.isEmpty())\n/* */ {\n/* 132 */ SoundManager.LOGGER.info(p_message_1_);\n/* */ }\n/* */ }\n/* */ \n/* */ public void importantMessage(String p_importantMessage_1_, int p_importantMessage_2_) {\n/* 137 */ if (!p_importantMessage_1_.isEmpty())\n/* */ {\n/* 139 */ SoundManager.LOGGER.warn(p_importantMessage_1_);\n/* */ }\n/* */ }\n/* */ \n/* */ public void errorMessage(String p_errorMessage_1_, String p_errorMessage_2_, int p_errorMessage_3_) {\n/* 144 */ if (!p_errorMessage_2_.isEmpty()) {\n/* */ \n/* 146 */ SoundManager.LOGGER.error(\"Error in class '{}'\", p_errorMessage_1_);\n/* 147 */ SoundManager.LOGGER.error(p_errorMessage_2_);\n/* */ } \n/* */ }\n/* */ });\n/* 151 */ SoundManager.this.getClass(); SoundManager.this.sndSystem = new SoundManager.SoundSystemStarterThread(null);\n/* 152 */ SoundManager.this.loaded = true;\n/* 153 */ SoundManager.this.sndSystem.setMasterVolume(SoundManager.this.options.getSoundLevel(SoundCategory.MASTER));\n/* 154 */ SoundManager.LOGGER.info(SoundManager.LOG_MARKER, \"Sound engine started\");\n/* */ }\n/* 156 */ }\"Sound Library Loader\")).start();\n/* */ }\n/* 158 */ catch (RuntimeException runtimeexception) {\n/* */ \n/* 160 */ LOGGER.error(LOG_MARKER, \"Error starting SoundSystem. Turning off sounds & music\", runtimeexception);\n/* 161 */ this.options.setSoundLevel(SoundCategory.MASTER, 0.0F);\n/* 162 */ this.options.saveOptions();\n/* */ } \n/* */ }\n/* */ }", "private MultiPlayer getPlayer() {\n try {\n\n java.net.URL.setURLStreamHandlerFactory(new java.net.URLStreamHandlerFactory() {\n\n public java.net.URLStreamHandler createURLStreamHandler(String protocol) {\n Log.d(\"LOG\", \"Asking for stream handler for protocol: '\" + protocol + \"'\");\n if (\"icy\".equals(protocol))\n return new com.spoledge.aacdecoder.IcyURLStreamHandler();\n return null;\n }\n });\n } catch (Throwable t) {\n Log.w(\"LOG\", \"Cannot set the ICY URLStreamHandler - maybe already set ? - \" + t);\n }\n\n if (mRadioPlayer == null) {\n mRadioPlayer = new MultiPlayer(this, AUDIO_BUFFER_CAPACITY_MS, AUDIO_DECODE_CAPACITY_MS);\n mRadioPlayer.setResponseCodeCheckEnabled(false);\n mRadioPlayer.setPlayerCallback(this);\n }\n return mRadioPlayer;\n }", "private void loadShutterSound(Context context) {\n // get system stream type using reflection\n int streamType;\n try {\n Class<?> audioSystemClass = Class.forName(\"android.media.AudioSystem\");\n Field sseField = audioSystemClass.getDeclaredField(\"STREAM_SYSTEM_ENFORCED\");\n streamType = sseField.getInt(null);\n } catch (Exception e) {\n streamType = AudioManager.STREAM_SYSTEM; // set appropriate according to your app policy\n }\n if (mSoundPool != null) {\n try {\n mSoundPool.release();\n } catch (Exception ignored) {\n }\n mSoundPool = null;\n }\n // load shutter sound from resource\n mSoundPool = new SoundPool(2, streamType, 0);\n mSoundId = mSoundPool.load(context, R.raw.camera_click, 1);\n }", "public DefineSound defineSound(final int identifier, final float duration)\r\n throws IOException, DataFormatException {\r\n return decoder.defineSound(identifier, duration);\r\n }", "public SoundInfo getSound(int keyCode) {\n\t\tSoundInfo sound = null;\n\t\tif (soundList.containsKey(keyCode)) {\n\t\t\tsound = soundList.get(keyCode);\n\t\t}\n\t\treturn sound;\n\t}", "public static Streamer getInstance() {\r\n if (streamer == null) streamer = new Streamer();\r\n return streamer;\r\n }", "public static synchronized StylesheetsLoader getInstance() {\r\n\t\t\r\n\t\tif (ref==null)\r\n\t\t\tref = new StylesheetsLoader();\r\n\t\treturn ref;\r\n\t\t\r\n\t}", "@Override\r\n\tpublic SoundsApi getSoundsApi() {\r\n\t\treturn this;\r\n\t}", "abstract String getSound();", "@Override\n public void makeSound() {\n\n }", "@Override\n public void makeSound() {\n\n }", "public AudioInputStream getSample() {\n\t\t\ttry {\n\t\t\t\tif (file != null) {\n\t\t\t\t\tfile.close();\n\t\t\t\t}\n\t\t\t\tfile = AudioFileHandler.OpenFile(filepath);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn file;\n\t\t}", "@Override\n\tpublic String sing() {\n\t\treturn this.sound;\n\t}", "public SoundManager() {\n mCurrentSoundID = -1;\n //mNames = new String[16];//new Vector();\n// mPlayers = new Player[16];//new Vector();\n int numSound = getNumberOfSounds();\n mSoundData = new byte[numSound][];\n mPlayers = new Player[numSound];\n for (int i = 0; i < numSound; i++) {\n //mNames[i] = null;\n// mPlayers[i] = null;\n mSoundData[i] = null;\n mPlayers[i] = null;\n }\n //mCurrentSound = \"\";\n mIsActive = false;\n mIsIdle = true;\n mCurPlayer = null;\n }", "protected static KShingler getInstance() {\n return ShinglerSingleton.INSTANCE;\n }", "public Sound play(String path)\n\t{\n\t//\tSystem.out.println(\"Playing sound: \" + path);\n\t\t\t\n\t\tSound newSound;\n\t\t\n\t\tif(volume == 0)\n\t\t\treturn null;\n\t\t\n\t\tif(sounds.containsKey(path))\n\t\t{\n\t\t//\tSystem.out.println(\"\\tSound loaded from sound cache\");\n\t\t\tnewSound = sounds.get(path);\n\t\t}\n\t\telse\n\t\t{\n\t\t//\tSystem.out.println(\"\\tloading sound into sound cache\");\n\t\t\tnewSound = new Sound(path);\n\t\t\tsounds.put(path,newSound);\n\t\t}\n\n\t\tnewSound.play(volume);\n\t\t\n\t\treturn newSound;\n\t}", "public static SlavesHolder getInstance() {\n if (instance == null) {\n instance = new SlavesHolder();\n }\n return instance;\n }", "public static Clip loadSoundFromResourceFile(String filename) {\n try {\n ClassLoader classloader = Thread.currentThread().getContextClassLoader();\n InputStream is = classloader.getResourceAsStream(filename);\n AudioInputStream sound = AudioSystem.getAudioInputStream(new BufferedInputStream(is));\n Clip audioclip = AudioSystem.getClip();\n audioclip.open(sound);\n return audioclip;\n\n } catch (Exception e) {\n // Do nothing\n return null;\n }\n }", "private SoundPlayer(URI uri) {\n\t\tfile = new File(uri.getPath());\n\t}", "public static MyPlayerAdapter getInstance() {\n if (playerAdapter == null) {\n synchronized (MyPlayerAdapter.class) {\n if (playerAdapter == null) playerAdapter = new MyPlayerAdapter();\n }\n }\n return playerAdapter;\n }", "public static ImageLoader getInStance(){\r\n if (mInStance==null){\r\n synchronized (ImageLoader.class){\r\n if (mInStance==null){\r\n mInStance=new ImageLoader(DEAFULT_THREAD_COUNT, Type.LIFO);\r\n }\r\n }\r\n }\r\n return mInStance;\r\n }", "public DefineSound defineSound(final int identifier)\r\n throws IOException, DataFormatException {\r\n return decoder.defineSound(identifier);\r\n }", "public void getMedia() {\n\tif (sound != null && soundData == null) {\n\t soundData = parent.getAudioClip(sound);\n\t}\n\tif (soundData == null) {\n\t System.out.println(\"SoundArea: Unable to load data \"+sound);\n\t}\n\tisReady = true;\n }", "public DataSource getAudioSource();", "public AudioPlayer getAudioPlayer() {\n if (audioPlayer == null) {\n try {\n audioPlayer = getDefaultAudioPlayer();\n } catch (InstantiationException e) {\n e.printStackTrace();\n }\n }\n\treturn audioPlayer;\n }", "public AudioPlayer() {\n\t\tselectMixer(0);\n\n\t\tcreateListenerOnCondition(onFinishRunnables, (event) -> \n\t\t\tevent.getType() == LineEvent.Type.STOP && getRemainingTime() <= 0.0 && !isRepeating\n\t\t);\n\t\tcreateListenerOnCondition(onEndRunnables, (event) -> \n\t\t\tevent.getType() == LineEvent.Type.STOP && getRemainingTime() <= 0.0\n\t\t);\n\t\tcreateListenerOnCondition(onLoadRunnables, (event) -> \n\t\t\tevent.getType() == LineEvent.Type.OPEN\n\t\t);\n\t\tcreateListenerOnCondition(onPlayRunnables, (event) -> \n\t\t\tevent.getType() == LineEvent.Type.START\n\t\t);\n\t}", "public String getSound()\r\n\t{\r\n\t\treturn \"Squeak Squeak Squeak\";\r\n\t}", "public interface Sounds {\n// void add();\n void setBackgroundSound(String filepath, LoadMode loadMode);\n void setSound(String key, String filepath, LoadMode loadMode);\n void play();\n void play(String key);\n void pause();\n void resume();\n void clearAll();\n}", "public Loader getLoader() {\n\t\treturn loader;\n\t}", "public static final AudioClip newAudioClip(URL paramURL) {\n/* 313 */ return (AudioClip)new AppletAudioClip(paramURL);\n/* */ }", "public static XML.ObjectLoader getLoader() {\n return new Loader();\n }", "public static void loadAudio()\n\t{\n\t\ttry\n\t\t{\n\t\t\tmusic = Applet.newAudioClip(new URL(\"file:\" + System.getProperty(\"user.dir\") + \"/sound/Pamgaea.wav\"));\n\t\t\tlaser = Applet.newAudioClip(new URL(\"file:\" + System.getProperty(\"user.dir\") + \"/sound/laser.wav\"));\n\t\t\tlaserContinuous = Applet.newAudioClip(new URL(\"file:\" + System.getProperty(\"user.dir\") + \"/sound/laser_continuous.wav\"));\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tprotected SoundEvent getAmbientSound() {\n\t\treturn getSoundManager().getLivingSound();\n\t}", "public static Resource getInstance() {\n if (singleInstance == null) {\n // lazy initialization of Resource class\n singleInstance = Resource.loadFromFile();\n }\n return singleInstance;\n }", "public MovieTag streamSound() throws IOException, DataFormatException {\r\n return decoder.streamSound();\r\n\r\n }", "@Override\n public SoundClip getGameMusic(){\n return gameMusic;\n }", "@Override\n public void init() {\n GetSprite(\"/images/bullet.png\");\n MusicUtils.StopASounds(\"/music/Laser_Shoot.wav\");\n Level().play(\"/music/Laser_Shoot.wav\");\n }", "public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}", "public static void load() {\n\n\t\ttry {\n\t\t\t// Insert audio load ex:\n\t\t\tmusicMap.put(\"music\", new Music(\"res/menuMusic.wav\"));\n\t\t} catch (SlickException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public interface IHasSound\n{\n\t/**\n\t * Gets the sound path of this block's sound.\n\t * @return sound path\n\t */\n\tpublic String getSoundPath();\n\n\t/**\n\t * Gets the multiplier to play this sound by.\n\t * @return sound multiplier\n\t */\n\tpublic float getVolumeMultiplier();\n}", "private ArrayList<MediaPlayer> loadSoundClips(ArrayList<MediaPlayer> mediaPlayerList) {\n Field[] fields = R.raw.class.getFields();\n\n for (Field field : fields) {\n try {\n int rawResourceId = field.getInt(null);\n mediaPlayerList.add(MediaPlayer.create(MainActivity.this, rawResourceId));\n Log.d(\"DEBUG\", String.format(\"%s is %d\", field.getName(), rawResourceId));\n } catch(IllegalAccessException e) {\n Log.e(\"ERROR\", String.format(\"%s threw IllegalAccessException\", field.getName()));\n } catch(IllegalArgumentException e) {\n Log.e(\"ERROR\", String.format(\"%s threw IllegalArgumentException\", field.getName()));\n }\n }\n\n return mediaPlayerList;\n }", "public static void loadSounds()\n {\n combust = new SoundLoader(\"explosion.wav\");\n zWalk = new SoundLoader(\"zWalk.wav\");\n bite = new SoundLoader(\"zBite.wav\");\n hitObst = new SoundLoader(\"zHitObst.wav\");\n runSound = new SoundLoader(\"pRunSound.wav\");\n walkSound = new SoundLoader(\"pWalkSound.wav\");\n scream = new SoundLoader(\"pScream.wav\");\n\n zWalk.makeBalanceControlled();\n hitObst.makeBalanceControlled();\n\n }", "public abstract void makeSound();", "public Sound getSoundDying() {\n return soundDying;\n }", "public String getSoundPath();", "public void StartSound(ISoundOrigin origin, int sound_id);", "public void playSound() {\n if (this.mIsSupportVibrator) {\n this.mVibratorEx.setHwVibrator(\"haptic.control.time_scroll\");\n }\n if (this.mSoundPool == null || this.mSoundId == 0 || !this.mSoundLoadFinished) {\n Log.w(TAG, \"SoundPool is not initialized properly!\");\n } else {\n this.mSoundPool.play(this.mSoundId, 1.0f, 1.0f, 0, 0, 1.0f);\n }\n }", "public GameSoundPlayer() {\r\n mainThemeSoundPlayer = new SoundPlayer(\"src/main/resources/sounds/menu.mp3\", 0.7, -1);\r\n newGameThemeSoundPlayer = new SoundPlayer(\"src/main/resources/sounds/newMenu.mp3\", 1, 1);\r\n\r\n playBack1 = new SoundPlayer(\"src/main/resources/sounds/play1.mp3\", 1, -1);\r\n playBack2 = new SoundPlayer(\"src/main/resources/sounds/play2.mp3\", 1, -1);\r\n playBack3 = new SoundPlayer(\"src/main/resources/sounds/play3.mp3\", 1, -1);\r\n playBack4 = new SoundPlayer(\"src/main/resources/sounds/play4.mp3\", 1, -1);\r\n playBack5 = new SoundPlayer(\"src/main/resources/sounds/play5.mp3\", 1, -1);\r\n endGame = new SoundPlayer(\"src/main/resources/sounds/endGame.mp3\", 1, 1);\r\n\r\n for (BONUSES_SOUNDS sound : BONUSES_SOUNDS.values()) {\r\n switch (sound) {\r\n case ALLDIE:\r\n allDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case EXTRASPEED:\r\n extraSpeedPlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case MAKESLOWER:\r\n makeSlowerPlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BONUSFIRE:\r\n bonusFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BONUSJUMP:\r\n bonusJumpPlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BONUSJUMPSTART:\r\n jumpStartPlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n }\r\n }\r\n for (FIRE_SOUNDS sound : FIRE_SOUNDS.values()) {\r\n switch (sound) {\r\n case DARK:\r\n darkFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case FENIX:\r\n fenixFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BONE:\r\n boneFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case GHOST:\r\n ghostFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case ARCHANGEL:\r\n archFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BEHEMOTH:\r\n begemFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case CHAMPION:\r\n champFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case PEGASUS:\r\n pegasFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case THUNDERBIRD:\r\n thunderFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case TROGLODYTE:\r\n troglFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n }\r\n }\r\n for (DIE_SOUNDS sound : DIE_SOUNDS.values()) {\r\n switch (sound) {\r\n case DARK:\r\n darkDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case FENIX:\r\n fenixDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BONE:\r\n boneDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case GHOST:\r\n ghostDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case ARCHANGEL:\r\n archDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BEHEMOTH:\r\n begemDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case CHAMPION:\r\n champDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case PEGASUS:\r\n pegasDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case THUNDERBIRD:\r\n thunderDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case TROGLODYTE:\r\n troglDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n }\r\n }\r\n }", "private MyPlayerAdapter(){\n if (playerAdapter != null){\n throw new RuntimeException(\n \"Use getInstance() method to get the single instance of this class.\"\n );\n }\n if (mContext == null) {\n mContext = MyApplication.context();\n }\n if( mSession == null ) {\n initMediaSession();\n }\n\n\n mPlayer = getMediaPlayer();\n }", "public static PulseDataReader getInstance() {\n return instance;\n }", "public static Singleton instance() {\n return Holder.instance;\n }", "public static synchronized Player getInstance(){\n if(Player.player == null){\n Player.player = new Player();\n }\n return Player.player;\n }", "MidiSoundD getMidiSound() {\n\t\tif (midiSound == null) {\n\t\t\ttry {\n\t\t\t\tmidiSound = new MidiSoundD(app);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn midiSound;\n\t}", "abstract public String getSoundResourcesDir();", "public static AudioPlayer getDEFAULTSHOOTSOUND() {\r\n\t\treturn DEFAULTSHOOTSOUND;\r\n\t}", "private void setUpSound() {\n\t\tAssetManager am = getActivity().getAssets();\n\t\t// activity only stuff\n\t\tgetActivity().setVolumeControlStream(AudioManager.STREAM_MUSIC);\n\n\t\tAudioManager audioManager = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE);\n\t\tsp = new SPPlayer(am, audioManager);\n\t}", "public static NativeLibraryLoader getInstance() {\n return instance;\n }", "private SoundPlayer(String mp3) {\n\t\tfile = new File(mp3);\n\t}", "public AudioController(){\n\t sounds = new LinkedList<>();\n\t removables = new LinkedList<>();\n\t availableIds = new HashSet<>();\n\t populateIds();\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic static void load_sound() throws NoPlayerException, CannotRealizeException, IOException {\n\n\t\tFile clicFile = new File(\"sons/click.wav\");\n\t\tURL clicUrl = clicFile.toURL();\n\n\t\tFile portailFile = new File(\"sons/portail_low.wav\");\n\t\tURL portailUrl = portailFile.toURL();\n\n\t\tFile hitFile = new File(\"sons/hit_low.wav\");\n\t\tURL hitUrl = hitFile.toURL();\n\n\t\tFile chargeFile = new File(\"sons/charge.wav\");\n\t\tURL chargeUrl = chargeFile.toURL();\n\n\t\tFile popFile = new File(\"sons/pop.wav\");\n\t\tURL popUrl = popFile.toURL();\n\n\t\tFile gameFile = new File(\"sons/game_all.wav\");\n\t\tURL gameUrl = gameFile.toURL();\n\n\t\t// creation of the players\n\t\tm_player_game = Manager.createRealizedPlayer(gameUrl);\n\t\tm_player_pop = Manager.createRealizedPlayer(popUrl);\n\t\tm_player_charge = Manager.createRealizedPlayer(chargeUrl);\n\t\tm_player_hit = Manager.createRealizedPlayer(hitUrl);\n\t\tm_player_hit2 = Manager.createRealizedPlayer(hitUrl);\n\t\tm_player_hit3 = Manager.createRealizedPlayer(hitUrl);\n\t\tm_player_hit4 = Manager.createRealizedPlayer(hitUrl);\n\t\tm_player_hit5 = Manager.createRealizedPlayer(hitUrl);\n\t\tm_player_hit6 = Manager.createRealizedPlayer(hitUrl);\n\t\tm_player_clic = Manager.createRealizedPlayer(clicUrl);\n\t\tm_player_portail = Manager.createRealizedPlayer(portailUrl);\n\t}", "public ImageLoader getImageLoader() {\n return new ImageLoader(getRequestQueue(),\n new LruBitmapCache());\n }", "@SideOnly(Side.CLIENT)\n protected ResourceLocation getActivitySound() {\n return activitySound;\n }" ]
[ "0.61281896", "0.6068422", "0.60520697", "0.6023091", "0.60081553", "0.6005793", "0.6003125", "0.59464145", "0.5881886", "0.5857624", "0.5769929", "0.57553613", "0.57148576", "0.5712399", "0.565173", "0.5588354", "0.55656934", "0.55656934", "0.556539", "0.5539016", "0.54800147", "0.54798347", "0.5473317", "0.5418198", "0.54167545", "0.54096806", "0.54082525", "0.5363464", "0.5354426", "0.53506994", "0.5345186", "0.5331494", "0.53312767", "0.5320331", "0.530591", "0.52962446", "0.5294696", "0.52875775", "0.5283245", "0.52826154", "0.5277901", "0.52596986", "0.52473", "0.5247242", "0.5242075", "0.5228766", "0.52272415", "0.52259505", "0.52259505", "0.5218461", "0.5199384", "0.519931", "0.5195038", "0.51873755", "0.51872724", "0.5180484", "0.515553", "0.5153451", "0.51423997", "0.5139976", "0.51391786", "0.5138607", "0.5123958", "0.5114244", "0.5110266", "0.5105075", "0.5089597", "0.5088374", "0.5070493", "0.5060003", "0.50572026", "0.5054862", "0.50485396", "0.5047617", "0.50449055", "0.504427", "0.5037806", "0.50334513", "0.50325996", "0.50281024", "0.5026122", "0.50250965", "0.5018916", "0.5014764", "0.50125146", "0.50010484", "0.50009763", "0.5000791", "0.49938145", "0.49936354", "0.49831787", "0.4979278", "0.49775082", "0.4971419", "0.49625295", "0.4960753", "0.4958949", "0.4950078", "0.4944598", "0.49432245" ]
0.60041773
6
Returns the SoundHolder by the given name
public MidiSoundHolder getMidi ( String name ) { return this.midisMap.get ( name ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SoundHolder getMidiHolder ( String name ) throws KeyAlreadyExistsException {\n if ( this.midisMap.containsKey ( name ) )\n throw new KeyAlreadyExistsException ( \"Sound name \" + name + \" already exists!\" );\n\n this.midisMap.put ( name, new MidiSoundHolder ( this ) );\n return this.midisMap.get ( name );\n }", "public SoundInfo getSound(int keyCode) {\n\t\tSoundInfo sound = null;\n\t\tif (soundList.containsKey(keyCode)) {\n\t\t\tsound = soundList.get(keyCode);\n\t\t}\n\t\treturn sound;\n\t}", "public void playSoundPoolSound(String name) {\r\n\t\tfor ( int i = 0 ; i < soundPoolSoundNames.size() ; i++ ) {\r\n\t\t\tif ( soundPoolSoundNames.get(i).equals( name ) ) {\r\n\t\t\t\tsoundPool.play( soundPoolSoundIds.get( i ), 1.0f, 1.0f, 1, 0, 1 );\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tLog.d(TAG, \"playSoundPoolSound: loading \"+name);\r\n\t\t\r\n\t\t// check first if this is a raw resource\r\n\t\tint soundId = 0;\r\n\t\tif ( name.indexOf( \"res/raw/\" ) == 0 ) {\r\n\t\t\tString resourceName = name.substring( 4, name.length() - 4 );\r\n\t\t\tint id = getResources().getIdentifier( resourceName, \"raw\", getPackageName() );\r\n\t\t\tif ( id == 0 ) {\r\n\t\t\t\tLog.e( TAG, \"No resource named \" + resourceName );\r\n\t\t\t} else {\r\n\t\t\t\tAssetFileDescriptor afd = getResources().openRawResourceFd( id );\r\n\t\t\t\tsoundId = soundPool.load( afd, 1 );\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tAssetFileDescriptor afd = getAssets().openFd( name );\r\n\t\t\t\tsoundId = soundPool.load( afd, 1 );\r\n\t\t\t} catch ( IOException t ) {\r\n\t\t\t\tLog.e( TAG, \"Couldn't open \" + name + \" because \" + t.getMessage() );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ( soundId == 0 )\r\n\t\t{\r\n\t\t\t// Try to load the sound directly - works for absolute path - for wav files for sdcard for ex.\r\n\t\t\tsoundId = soundPool.load( name, 1 );\r\n\t\t}\r\n\r\n\t\tsoundPoolSoundNames.add( name );\r\n\t\tsoundPoolSoundIds.add( soundId );\r\n\t\t\r\n\t\tsoundPool.play( soundPoolSoundIds.get( soundPoolSoundNames.size() - 1 ), 1.0f, 1.0f, 1, 0, 1 );\r\n\t}", "PlaySound getSound();", "public abstract SoundContainer loadSound( String filename ) throws IOException;", "private Song findSong(String songName){\n for(Song checkedSong : this.songAlbum){\n if(checkedSong.getSongTitle().equals(songName))\n return checkedSong;\n }\n return null;\n }", "public Song GetSong(String songName) {\n\t\tfor (Song curSong : songList) {\n\t\t\tif (curSong.GetName().equalsIgnoreCase(songName))\n\t\t\t\treturn curSong;\n\t\t}\n\n\t\t// No song matches.\n\t\treturn null;\n\t}", "public static Texture get(String name){\n for(TextureHandler t : textures){\n if(t.getName().toLowerCase().equals(name.toLowerCase())){\n return t.getTexture();\n }\n }\n return error;\n }", "public String getSound();", "public Sound loadSound(String file);", "@Override\n\tpublic List<Music> findByName(String name) {\n\t\treturn store.readByName(name);\n\t}", "abstract String getSound();", "public Album getAlbumByName(String name){\n\t\tAlbum album = null;\n\t\ttry {\n\t\t\tString sql = \"SELECT * FROM Album WHERE Name = ?;\";\n\t\t\tPreparedStatement statement = connection.prepareStatement(sql);\n\t\t\tstatement.setString(1, name);\n\t\t\tResultSet set = statement.executeQuery();\n\t\t\tif (set.next()){\n\t\t\t\talbum = readAlbum(set);\n\t\t\t}\n\t\t\tstatement.close();\n\t\t\t//connection.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn album;\n\t}", "public static BufferedSound getSound(String path, int type) {\n\t\tif (sounds.containsKey(path)) {\n\t\t\treturn sounds.get(path);\n\t\t}\n\t\ttry (InputStream is = Assets.class.getResourceAsStream(path)) {\n\t\t\tif (is != null) {\n\t\t\t\tBufferedSound sound = new BufferedSound(is, type);\n\t\t\t\tsounds.putIfAbsent(path, sound);\n\t\t\t\treturn sound;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public abstract SoundContainer loadSound( URL url ) throws IOException;", "public Sound createSound(String file);", "private static SoundEvent registerSound(String soundName)\r\n\t{\n\t\tResourceLocation location = new ResourceLocation(Reference.MODID, soundName);\r\n\t\tSoundEvent e = new SoundEvent(location);\r\n\t\tSoundEvent.REGISTRY.register(size, location, e);\r\n\t\tsize++;\r\n\t\treturn e;\r\n\t\t//return GameRegistry.register(new SoundEvent(soundID).setRegistryName(soundID));\r\n\t\t\t\t\t\t\r\n\t}", "public final String getSound( ) {\n\t\treturn sound;\n\t}", "public Artist getByName(String name);", "public static synchronized StockGrabber getInstance(String stockName) {\r\n StockGrabber instance = singletonMap.getOrDefault(stockName, null);\r\n if (instance == null) {\r\n instance = new StockGrabber(stockName);\r\n singletonMap.put(stockName, instance);\r\n }\r\n\r\n return instance;\r\n\r\n }", "public SoundClip chooseSound(Sound sound){\n SoundClip audio = null;\n\n switch(sound){\n case CREDIT:\n audio = createStream(CREDIT_URL);\n break;\n case DEATH:\n audio = createStream(DEATH_URL);\n break;\n case EAT_FRUIT:\n audio = createStream(EAT_FRUIT_URL);\n break;\n case EAT_GHOST:\n audio = createStream(EAT_GHOST_URL);\n break;\n case PAUSE_SOUND:\n audio = createStream(PAUSE_SOUND_URL);\n break;\n case GAME_START:\n audio = createStream(GAME_START_URL);\n break;\n case MUNCH_1:\n audio = createStream(MUNCH_1_URL);\n break;\n case MUNCH_2:\n audio = createStream(MUNCH_2_URL);\n break;\n case FRIGHT_SOUND:\n audio = createStream(FRIGHT_SOUND_URL);\n break;\n case EATEN_SOUND:\n audio = createStream(EATEN_SOUND_URL);\n break;\n case SIREN_1:\n audio = createStream(SIREN_1_URL);\n break;\n case SIREN_2:\n audio = createStream(SIREN_2_URL);\n break;\n case SIREN_3:\n audio = createStream(SIREN_3_URL);\n break;\n case SIREN_4:\n audio = createStream(SIREN_4_URL);\n break;\n case SIREN_5:\n audio = createStream(SIREN_5_URL);\n break;\n case STARTUP:\n audio = createStream(STARTUP_URL);\n break;\n case BLUE_PORTAL_SOUND:\n audio = createStream(BLUE_PORTAL_SOUND_URL);\n break;\n case RED_PORTAL_SOUND:\n audio = createStream(RED_PORTAL_SOUND_URL);\n break;\n }\n audio.setName(sound);\n return audio;\n }", "RiceCooker getByName(String name);", "public String getSound()\r\n\t{\r\n\t\treturn \"Squeak Squeak Squeak\";\r\n\t}", "private Track searchTrack(String name) {\n for(Track e: listTracks) {\n if(e.sDataPath.equals(name)) return e;\n }\n return null;\n }", "public abstract SoundContainer loadSound( InputStream in ) throws IOException;", "private static void playSound(String s) {\n try {\n Media hit = new Media(new File(s).toURI().toString());\n MediaPlayer mediaPlayer = new MediaPlayer(hit);\n mediaPlayer.play();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public static Object getThingByName (String name) {\n \n Object thing = Item.getByNameOrId(name);\n \n if (thing != null)\n return thing;\n \n thing = Block.getBlockFromName(name);\n \n if (thing != null)\n return thing;\n \n return null;\n }", "@Override\n\tpublic String sing() {\n\t\treturn this.sound;\n\t}", "public static Object get(String name) {\r\n\t\treturn getInstance().addResource(name);\r\n\t}", "public Sound getSound() {\n return _sound;\n }", "public Sound load(String path)\n\t{\n\t//\tSystem.out.println(\"Loading sound: \" + path);\n\t\t\t\n\t\tSound newSound;\n\t\t\n\t\tif(sounds.containsKey(path))\n\t\t{\n\t\t\tnewSound = sounds.get(path);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewSound = new Sound(path);\n\t\t\tsounds.put(path,newSound);\n\t\t}\n\t\treturn newSound;\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic static Object getAsset(String name) {\t\t\r\n\t\treturn assetManager.loadAsset(name);\r\n\t}", "public Booking getBooking(String name) {\n\t\t\tint i = 0;\r\n\t\t\tBooking buffer;\r\n\t\t\t\r\n\t\t\twhile(i < Bookings.size()) {\r\n\t\t\t\tbuffer = Bookings.get(i);\r\n\t\t\t\tString Name = buffer.getBooker();\r\n\t\t\t\tif (name.contentEquals(Name)) {\r\n\t\t\t\t\treturn buffer;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}", "public Story findByName(String name) {\n EntityManager entityManager = getEntityManager();\n\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Story> criteria = criteriaBuilder.createQuery(Story.class);\n Root<Story> root = criteria.from(Story.class);\n\n criteria.select(root);\n criteria.where(criteriaBuilder.equal(root.get(Story_.name), name));\n \n return getSingleResult(entityManager.createQuery(criteria));\n }", "private boolean findSound(boolean stream){\r\n try{\r\n \tString type = name.substring(name.length() - 3).toUpperCase();\r\n \tString path = Data.DIR_PATH + \"res\" + Data.SEP + \"sfx\" + Data.SEP + name;\r\n \tif(stream){\r\n \t\tsound = AudioLoader.getStreamingAudio(type, ResourceLoader.getResource(path));\r\n \t}else{\r\n \t\tsound = AudioLoader.getAudio(type, ResourceLoader.getResourceAsStream(path));\r\n \t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public Sound(String ref) throws SlickException {\n\t\tSoundStore.get().init();\n\n\t\ttry {\n\t\t\tif (ref.toLowerCase().endsWith(\".ogg\")) {\n\t\t\t\tsound = SoundStore.get().getOgg(ref);\n\t\t\t} else if (ref.toLowerCase().endsWith(\".wav\")) {\n\t\t\t\tsound = SoundStore.get().getWAV(ref);\n\t\t\t} else if (ref.toLowerCase().endsWith(\".aif\")) {\n\t\t\t\tsound = SoundStore.get().getAIF(ref);\n\t\t\t} else if (ref.toLowerCase().endsWith(\".xm\") || ref.toLowerCase().endsWith(\".mod\")) {\n\t\t\t\tsound = SoundStore.get().getMOD(ref);\n\t\t\t} else {\n\t\t\t\tthrow new SlickException(\"Only .xm, .mod, .aif, .wav and .ogg are currently supported.\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.error(e);\n\t\t\tthrow new SlickException(\"Failed to load sound: \"+ref);\n\t\t}\n\t}", "public static Item getItemByName(String name)\n\t{\n\t\tfor(Item i : itemCollections)\n\t\t{\n\t\t\tif(i.getName() == name)\n\t\t\t\treturn i;\n\t\t}\n\t\tfor(Equipment equ : equipmentCollections)\n\t\t{\n\t\t\tif(equ.getName() == name)\n\t\t\t\treturn equ;\n\t\t}\n\t\treturn null;\n\t}", "public static ByteArrayInputStream getSoundsJson(String name) {\n JsonObject file = new JsonObject();\n for (SoundEvent sound : getSoundMap().get(name)) {\n JsonObject soundInfo = new JsonObject();\n soundInfo.addProperty(\"category\", \"records\");\n JsonObject trackInfo = new JsonObject();\n trackInfo.addProperty(\"name\", sound.getId().getNamespace() + \":music/\" + Objects.requireNonNull(sound.getId()).getPath());\n trackInfo.addProperty(\"stream\", true);\n JsonArray array = new JsonArray();\n array.add(trackInfo);\n soundInfo.add(\"sounds\", array);\n file.add(sound.getId().getPath(), soundInfo);\n }\n return new ByteArrayInputStream(file.toString().getBytes());\n }", "public Item getItem(String name) {\r\n \t\treturn persistenceManager.getItem(name);\r\n \t}", "private FunctionSoundD getFunctionSound() {\n\t\tif (functionSound == null) {\n\t\t\ttry {\n\t\t\t\tfunctionSound = new FunctionSoundD();\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.error(\"Problem in getFunctionSound(): \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn functionSound;\n\t}", "public Player getPlayerByName(String name){\n for (Player player : players){\n if (name.equals(player.getName())){\n return player;\n }\n }\n return null;\n }", "public static SoundPlayer playerFromResource(String filename) {\n\t\tif (currentlyPlaying >= maxSounds)\n\t\t\treturn null;\n\t\t\n\t\ttry {\n\t\t\tURL resource = SoundPlayer.class.getResource(filename);\n\t\t\tif (resource == null || resource.toURI() == null || resource.toURI().getPath() == null)\n\t\t\t\treturn null;\n\t\t\t\n\t\t\tSoundPlayer player = new SoundPlayer(resource.toURI());\n\t\t\t++currentlyPlaying;\n\t\t\treturn player;\n\t\t} catch (URISyntaxException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public SoundClip getSound() {\n return socSound;\n }", "public Media findMediaByTitle(String nameText )\r\n {\r\n \r\n for (Media media : this.mediaCatalogueList)\r\n {\r\n if (media.getMediaName().equalsIgnoreCase(nameText))\r\n {\r\n return media;\r\n }\r\n }\r\n \r\n return null;\r\n \r\n }", "Heaver findByName(String name);", "public Player getPlayer(String name){ \n\t\tif (players.containsKey(name)) return players.get(name);\n\t\tPlayer player = getModPlayer(name);\n\t\tif (player != null) {\n\t\t\tplayers.put(name, player);\n\t\t\treturn player;\n\t\t}\n\t\treturn player;\n\t}", "public Player getPlayerFromList(String name){\n for (Player player : players){\n if (player.getName().equals(name)){\n return player;\n }\n }\n return null; //This will never happen. Will always be found. Only called from the takeoverTerritory method\n }", "public static void playSound(final String name, final float volume, final float pitch)\n {\n if (FMLCommonHandler.instance().getSide().isServer())\n {\n return;\n }\n final Minecraft mc = Minecraft.getMinecraft();\n final float d4 = (float) mc.renderViewEntity.posX;\n final float d5 = (float) mc.renderViewEntity.posY;\n final float d6 = (float) mc.renderViewEntity.posZ;\n mc.sndManager.playSound(name, d4, d5, d6, volume, pitch);\n }", "public Shield getShield(String name) {\r\n\t\tfor (Shield s : shieldList) {\r\n\t\t\tif (s.getName().equals(name)) {\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Sound play(String path)\n\t{\n\t//\tSystem.out.println(\"Playing sound: \" + path);\n\t\t\t\n\t\tSound newSound;\n\t\t\n\t\tif(volume == 0)\n\t\t\treturn null;\n\t\t\n\t\tif(sounds.containsKey(path))\n\t\t{\n\t\t//\tSystem.out.println(\"\\tSound loaded from sound cache\");\n\t\t\tnewSound = sounds.get(path);\n\t\t}\n\t\telse\n\t\t{\n\t\t//\tSystem.out.println(\"\\tloading sound into sound cache\");\n\t\t\tnewSound = new Sound(path);\n\t\t\tsounds.put(path,newSound);\n\t\t}\n\n\t\tnewSound.play(volume);\n\t\t\n\t\treturn newSound;\n\t}", "Object find(String name);", "public Measure getMeasureInstanceByName(String name) {\n\t\tBasicStoredCube last_cube = BasicCubes.get(BasicCubes.size() - 1);\n\t\tfor (int i = 0; i < last_cube.Msr.size(); i++) {\n\t\t\tMeasure msr = last_cube.Msr.get(i);\n\t\t\tif (msr.getName().equals(name))\n\t\t\t\treturn msr;\n\t\t}\n\t\treturn null;\n\t}", "public Book getBookByName(final String name) {\n final TypedQuery<Book> query = entityManager.createQuery(\"select b from Book b where b.name like :name\",\n Book.class).setParameter(\"name\", name);\n try {\n return query.getSingleResult();\n } catch (final PersistenceException ex) {\n return null;\n }\n }", "@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)\r\n\tpublic Music queryByName(String name) {\n\t\tMusic music = musicdao.selectByName(name);\r\n\t\treturn music;\r\n\t}", "String sound();", "@Override\n\tpublic Album findAlbumByName(String name) {\n\t\treturn _albumDao.findAlbumByName(name);\n\t}", "public void registerSound(String soundName, String filename) {\r\n\r\n URL soundURL = getClass().getResource(mediaRoot + filename);\r\n MediaPlayer player = new MediaPlayer(new Media(soundURL.toExternalForm()));\r\n\r\n sounds.put(soundName, player);\r\n }", "public void preloadSound(String name) throws ResourceNotFound {\n\t\tif (!m_samples.containsKey(name)) {\n\n\t\t\tint ident = m_context.getResources().getIdentifier(name, \"raw\",\n\t\t\t\t\tm_context.getPackageName());\n\t\t\tif (ident == 0) {\n\t\t\t\tthrow new ResourceNotFound(\"sound \" + name);\n\t\t\t}\n\n\t\t\tint sndId = m_soundPool.load(m_context, ident, 1);\n\t\t\tSample sp = new Sample(sndId);\n\n\t\t\tm_samples.put(name, sp);\n\n\t\t\tJavaLog.info(TAG, \"Sample with name \" + name\n\t\t\t\t\t+ \" has been preloaded\");\n\t\t}\n\t}", "public static Animal getByName(String name) {\n for(var animal : animals){\n if(animal.getName().equalsIgnoreCase(name))\n return animal;\n }\n return null;\n\n //Diffrent way of finding the animal\n /*return animals.stream()\n .filter(a -> a.getName().equalsIgnoreCase(name))\n .findAny()\n .orElse(null);*/\n }", "private Album getAlbumByName(String albumName) {\r\n for (Album a : this.albums) {\r\n if (a.getName() == albumName) {\r\n return a;\r\n }\r\n }\r\n return null;\r\n }", "public static Spell get(String spellName) {\n\t\treturn switch(spellName) {\n\t\tcase \"teleport self\" -> TeleportSelf.getInstance();\t\n\t\tcase \"dig\" -> Dig.getInstance();\n\t\tcase \"Summon lesser creature\" -> SummonLesserCreature.getInstance();\n\t\tdefault -> null; \n\t\t};\n\t}", "protected abstract Player getModPlayer(String name);", "public BufferedImage getLocal(final String name) {\r\n\t\tfinal int index=names.indexOf(name);\r\n\t\tif (index<0) return null;\r\n\t\treturn images.get(index);\r\n\t}", "public Stock getFromMap(String name){\n\tif(table.containsKey(name)){\n\tStock rval = table.get(name);\n\treturn rval;\n\t}\n\telse{\n\t\t//call pull from URL and return newStock \n\t\taddToMap(String name, Stock newStock);\n\t\tgetFromMap(name);\n\t}\n}", "public String getSoundPath();", "private Album getAlbumByName(String albumName) {\n for (Album a : this.albums) {\n if (a.getName().equals(albumName)) {\n return a;\n }\n }\n return null;\n }", "public void allocate(AssetManager manager, String filename) {\n\t\tSound sound = manager.get(filename, Sound.class);\n\t}", "@Override\r\n\tpublic SoundsApi getSoundsApi() {\r\n\t\treturn this;\r\n\t}", "public SpreadSheet getSpreadSheet(String name){\n\t\tfor (SpreadSheet s : getBubbleSpreadsheetSet()) {\n\t\t\tif (s.getName().equals(name))\n\t\t\t\treturn s;\n\t\t}\n\t\treturn null;\n\t}", "public Player getPlayerFromList(String name){\n for (BrPlayer p : playerList){\n if (p.getBukkitPlayer().getDisplayName().equalsIgnoreCase(name)){\n return p.getBukkitPlayer();\n }\n }\n return null;\n }", "public Currency findByName(String name) {\n openNewManager();\n Query query = manager.createNamedQuery(Currency.FIND_BY_NAME_QUERY)\n .setParameter(\"name\", name);\n Currency currency = (Currency)query.getSingleResult();\n closeManager();\n return currency;\n }", "@Override\n\tpublic Note findByName(Serializable name) {\n\t\t\n\t\treturn null;\n\t}", "public void playSound(String soundName) {\r\n try {\r\n audioInputStream = AudioSystem.getAudioInputStream(new File(soundName).getAbsoluteFile());\r\n Clip clip = AudioSystem.getClip();\r\n clip.open(audioInputStream);\r\n clip.start();\r\n } catch (Exception ex) {\r\n System.out.println(\"Error with playing sound.\");\r\n ex.printStackTrace();\r\n }\r\n }", "@Override\r\n\tpublic Subject getSubjectByName(String name) {\r\n\t\tList<Subject> result = runOwnQuery(\"FROM Subject WHERE name = ?1\", name);\r\n\t\tif (result.isEmpty()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn result.get(0);\r\n\t}", "public void play(String soundName)\n {\n try{\n Clip clip = AudioSystem.getClip();\n AudioInputStream inputStream = AudioSystem.getAudioInputStream(new File(soundName));\n clip.open(inputStream);\n clip.start();\n }\n catch (Exception e){\n System.out.println(\"Play sound error: \" + e.getMessage() + \" for \" + soundName);\n }\n }", "public User getPlayer(String name) {\n\t\tUser ret = null;\n\t\tList<User> searchResult = this.players.stream().filter(x->x.name.equals(name)).collect(Collectors.toList());\n\t\tif (!searchResult.isEmpty()) {\n\t\t\tret = searchResult.get(0);\n\t\t}\n\t\treturn ret;\n\t}", "@Override\n public void playSound(int soundId) {\n\n }", "@Override\r\n\tpublic ArrayList<PlayerPO> findPlayerByName(String name) {\n\t\treturn playerController.findPlayerByName(name);\r\n\t}", "SoundEffect(String n) {\n\t\ttry{\n\t\t\tURL url = this.getClass().getClassLoader().getResource(n); //Create url with filename\n\t\t\tAudioInputStream audioInputStream = AudioSystem.getAudioInputStream(url); //Create AudioInputStream with url\n\t\t\tclip = AudioSystem.getClip(); //Assign the wav to clip\n\t\t\tclip.open(audioInputStream); //Open the clip\n\t\t}\n\t\tcatch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace(); //Print stack trace for debugging\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace(); //Print stack trace for debugging\n\t\t}\n\t\tcatch (LineUnavailableException e) {\n\t\t\te.printStackTrace(); //Print stack trace for debugging\n\t\t}\n\t}", "public static Item getItem(String itemName)\n {\n Item temp = null;\n for (Item inventory1 : inventory) {\n if (inventory1.getName().equals(itemName)) {\n temp = inventory1;\n }\n }\n return temp;\n }", "public interface IHasSound\n{\n\t/**\n\t * Gets the sound path of this block's sound.\n\t * @return sound path\n\t */\n\tpublic String getSoundPath();\n\n\t/**\n\t * Gets the multiplier to play this sound by.\n\t * @return sound multiplier\n\t */\n\tpublic float getVolumeMultiplier();\n}", "public static Sensor getSensor(String name) {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mName.equals(name)) {\n\t\t\t\treturn mSensors.get(x);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String myGetPlayerName(String name) { \n Player caddPlayer = getServer().getPlayerExact(name);\n String pName;\n if(caddPlayer == null) {\n caddPlayer = getServer().getPlayer(name);\n if(caddPlayer == null) {\n pName = name;\n } else {\n pName = caddPlayer.getName();\n }\n } else {\n pName = caddPlayer.getName();\n }\n return pName;\n }", "@Override\n public List<Clip> findByName(String name) {\n return fillList(logsCollection.find(eq(\"name\", name)));\n }", "public static Item getItemByName(String name) {\n HttpRequest request = HttpRequest.newBuilder().GET().uri(URI.create(String.format(\"http://localhost:8080/item/name/%s\", name))).setHeader(\"Cookie\", Authenticator.SESSION_COOKIE).build();\n HttpResponse<String> response = null;\n try {\n response = client.send(request, HttpResponse.BodyHandlers.ofString());\n } catch (Exception e) {\n e.printStackTrace();\n //return \"Communication with server failed\";\n }\n if (response.statusCode() != 200) {\n System.out.println(\"Status: \" + response.statusCode());\n }\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.registerModule(new JavaTimeModule());\n Item item = null;\n // TODO handle exception\n try {\n item = mapper.readValue(response.body(), new TypeReference<Item>() {\n });\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return item;\n }", "public AssetClass findAssetClassByName(String name_);", "public Item getItemByName(String itemName) {\n\t\t\n\t\tfor (Item item : itemsInStock) {\n\t\t\tif (item.name.equals(itemName)) {\n\t\t\t\treturn item;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "@Override\n\tpublic RenWutable findByName(String name) {\n\t\treturn null;\n\t}", "public static ImageIcon get(String name) {\n return get(\"\", name);\n }", "public static Clip loadSoundFromResourceFile(String filename) {\n try {\n ClassLoader classloader = Thread.currentThread().getContextClassLoader();\n InputStream is = classloader.getResourceAsStream(filename);\n AudioInputStream sound = AudioSystem.getAudioInputStream(new BufferedInputStream(is));\n Clip audioclip = AudioSystem.getClip();\n audioclip.open(sound);\n return audioclip;\n\n } catch (Exception e) {\n // Do nothing\n return null;\n }\n }", "public Items getItem(String name)\n {\n return Inventory.get(name);\n }", "@GetMapping(\n path = \"/song/name/{name}\",\n produces = MediaType.APPLICATION_JSON_VALUE\n )\n public Iterable<Song> getBySongName(@PathVariable(\"name\") String songName) {\n return songService.getBySongName(songName);\n }", "public interface Sounds {\n// void add();\n void setBackgroundSound(String filepath, LoadMode loadMode);\n void setSound(String key, String filepath, LoadMode loadMode);\n void play();\n void play(String key);\n void pause();\n void resume();\n void clearAll();\n}", "public OfflinePlayer getPlayerByName(String name) {\n\t\ttry {\n\t\t\treturn mStore.getPlayerByName(name);\n\t\t} catch (UserNotFoundException e) {\n\t\t\treturn null;\n\t\t} catch (DataStoreException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n\tpublic EchoSound getEchoSoundById(Integer soundId) {\n\t\treturn echoSoundMapper.getEchoSoundById(soundId);\r\n\t}", "protected String getLivingSound()\n {\n return null;\n }", "protected String getLivingSound()\n {\n return null;\n }", "public Player getPlayerinTable(String name) {\r\n for (Player player : this.players) {\r\n if (player.getName().equals(name)) {\r\n return player;\r\n }\r\n }\r\n return null;\r\n }", "private Song findSong(String title){\n for (Song checkedSong : this.songArrayList){\n if (checkedSong.getTitle().equals(title)){\n return checkedSong;\n }\n }\n return null;\n }", "protected String getLivingSound() {\r\n\t\treturn \"mob.chicken.say\";\r\n\t}" ]
[ "0.7027253", "0.62704575", "0.62327915", "0.62083656", "0.6137115", "0.6136613", "0.6077789", "0.6050787", "0.60381925", "0.5959782", "0.5895278", "0.5891789", "0.5874328", "0.576209", "0.5752605", "0.5747635", "0.57236236", "0.5710319", "0.56856", "0.56766385", "0.56648535", "0.5658309", "0.56532425", "0.5641434", "0.56014186", "0.55700415", "0.5561854", "0.55326", "0.54826295", "0.5482152", "0.54812175", "0.54756635", "0.5463428", "0.54614455", "0.5459052", "0.5438433", "0.54128414", "0.5406924", "0.53940004", "0.53933734", "0.53921217", "0.53856075", "0.5383008", "0.53719276", "0.53586084", "0.53533536", "0.5345966", "0.5327058", "0.53257763", "0.5314105", "0.5303686", "0.5303129", "0.5294569", "0.529382", "0.5282346", "0.528134", "0.5276429", "0.5259763", "0.525872", "0.52526736", "0.52262634", "0.5219951", "0.521173", "0.52050364", "0.52029794", "0.5187372", "0.51866674", "0.5174241", "0.5173412", "0.51688707", "0.51678413", "0.5144209", "0.51415455", "0.51409787", "0.51384777", "0.51370716", "0.51282907", "0.5126142", "0.5121231", "0.511184", "0.5109742", "0.51070935", "0.51023567", "0.51016617", "0.50954664", "0.50911164", "0.50836104", "0.5082999", "0.5078253", "0.5067476", "0.50615174", "0.50583816", "0.50544673", "0.5052755", "0.5051978", "0.50504935", "0.50504935", "0.5049002", "0.50484496", "0.5042418" ]
0.642661
1
Called by SoundHolder objects when they stop playing Useful so that the MidiLoader can allow another clip to play
public void notifyStoppedPlaying ( MidiSoundHolder sound ) { if ( this.currentMidi == sound ) { this.currentMidi = null; this.sequencer.removeMetaEventListener ( sound ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() { \r\n timer.stop(); \r\n if (midi) \r\n sequencer.stop(); \r\n else \r\n clip.stop(); \r\n play.setText(\"Play\"); \r\n playing = false; \r\n }", "public void stop()\n {\n audioClip.stop();\n }", "protected void stopTheSound(){\n mp.stop();\n }", "@Override\n public void playStop() {\n }", "public void stop() {\n if (playingClip != null)\n playingClip.stop();\n }", "public void stopPlaying() {\n seq.stop();\n }", "public void stopSound(){\n p.stop(as);\n }", "public void stop() {\n\t\tsound.stop();\n\t}", "@Override\n public void stopSound(){\n gameMusic.stop();\n }", "public void stop() {\n\t\tstop(!playing);\n\t}", "public synchronized void stopSound() {\r\n running = false;\r\n }", "public void stopPlaying(){\r\n\t\tsongsToPlay.clear();\r\n\t\tselectedPreset = -1;\r\n\t\tselectedSource = \"\";\r\n\t\ttry{\r\n\t\t\tplayer.stop();\r\n\t\t}catch(Exception e){\r\n\t\t\tSystem.err.println(\"ERROR: BASICPLAYER STOP CODE HAS FAULTED.\");\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void stop() {\n AudioPlayer.player.stop(cas);\n playing = false;\n }", "private void stopAudio() {\r\n // stop playback if possible here!\r\n }", "public void stopSound() {\n metaObject.stopSound();\n }", "public void stop() {\n if (clip == null) return;\n clip.stop();\n }", "private void stop(){ player.stop();}", "private void stopSounds(){\n\t\tsoundPool.autoPause();\n\t\tsoundPool.release();\n\t}", "@Override\n\tpublic void stop() {\n\t\tif (player != null) {\n\t\t\tplayer.close();\n\n\t\t\tpauseLocation = 0;\n\t\t\tsetSongTotalLenght(0);\n\t\t}\n\t}", "public static void stop() {\r\n\r\n if (soundLoop!=null)\r\n {\r\n soundLoop.stop();\r\n }\r\n }", "public void StopSound(ISoundOrigin origin);", "public void stopPlaying() {\n \t\tisPlaying = false;\n \t}", "public void stop() {\n\t\tplaybin.stop();\n\t}", "public void pauseSound() {\n\t\tclip.stop();\n\t}", "public void stopSound(ISound sound) {\n/* 354 */ if (this.loaded) {\n/* */ \n/* 356 */ String s = this.invPlayingSounds.get(sound);\n/* */ \n/* 358 */ if (s != null)\n/* */ {\n/* 360 */ this.sndSystem.stop(s);\n/* */ }\n/* */ } \n/* */ }", "public static void stopCurrentSoundtrack() {\n\t\tif (soundtrack[GameBoardModel.getLevel()-1] != null)\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].stop();\n\t}", "private void stop() {\n Log.i(\"TTS\", \"Stopping\");\n mSpeechQueue.clear();\n \n nativeSynth.stop();\n mIsSpeaking = false;\n if (mPlayer != null) {\n try {\n mPlayer.stop();\n } catch (IllegalStateException e) {\n // Do nothing, the player is already stopped.\n }\n }\n Log.i(\"TTS\", \"Stopped\");\n }", "@Override\r\n\tpublic void stopped(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "public void StopClip() {\n clip.stop();\n }", "public void stopPlaying()\n {\n player.stop();\n }", "@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tif(!gameOverBool){\n\t\t\ttry{\n\t\t\t\tsoundHandler.getSoundPool().autoPause();\n\t\t\t\tsoundHandler.getSoundPool().release();\n\t\t\t\tgarbagegame.stopGame();\n\t\t\t\tLog.d(\"On Stop\", \"Called cancel timers\");\n\t\t\t} catch(Exception e) {\n\t\t\t\tLog.d(\"On Stop\", \"exception caught\");\n\t\t\t}\n\t\t}else{\n\t\t\toverDialog.dismiss();\n\t\t}\n\t\tfinish();\n\t\t\n\t\t\n\t}", "private void stop()\r\n {\r\n player.stop();\r\n }", "public void stopSounds() {\n\t\tCollection<SoundInfo> sounds = soundList.values();\n for(SoundInfo sound: sounds){\n \tif (sound.isStoppable())\n \t\tsound.stop();\n }\n\t}", "private void stopPlaying() {\n Log.e(TAG, \"Stop playing file: \" + curRecordingFileName);\n if (null != mPlayer) {\n if (mPlayer.isPlaying())\n mPlayer.stop();\n mPlayer.release();\n mPlayer = null;\n }\n\n }", "public void stop()\n {\n if(AudioDetector.getInstance().isNoAudio() || musicPlayer == null)\n {\n return;\n }\n\n\n musicPlayer.stop();\n }", "public void stop() {\n\t\tmusic.stop();\n\t}", "public void StopSound() {\r\n\t\tif (this.mp.isPlaying()) {\r\n\t\t\tmp.pause();\r\n\t\t}\r\n\t}", "public static void stopSong()\n {\n JSoundsMainWindowViewController.iAmPlaying = true;\n JSoundsMainWindowViewController.iAmPausing = false;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n MusicPlayerControl.stopSong();\n }", "public void endSound()\n {\n if(!mute)\n {\n try {\n if(lastpowerUp.equals(\"RAINBOW\"))\n {\n sclip.stop();\n bclip.start();\n bclip.loop(Clip.LOOP_CONTINUOUSLY);\n }\n // Open an audio input stream.\n URL url = this.getClass().getClassLoader().getResource(\"Silence.wav\"); \n \n if(lastpowerUp.equals(\"BLUE\"))\n url = this.getClass().getClassLoader().getResource(\"Out Of Bounds Stop.wav\");\n else if(lastpowerUp.equals(\"YELLOW\")||lastpowerUp.equals(\"DOUBLE\") || lastpowerUp.equals(\"WHITE\") || (lastpowerUp.equals(\"TROLL\") && modeT))\n url = this.getClass().getClassLoader().getResource(\"Mushroom Down.wav\") ;\n else if(lastpowerUp.equals(\"BLACK\") || lastpowerUp.equals(\"TROLL\"))\n url = this.getClass().getClassLoader().getResource(\"Invisible Off.wav\");\n \n \n \n \n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n Clip clip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n clip.open(audioIn); \n \n clip.start();\n \n \n \n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n \n } \n }\n }", "public void stopPlayThread() {\n ms.stop();\n }", "public void stop() {\r\n endGif();\r\n final StringBuilder s = new StringBuilder();\r\n for(String event : replay.notableEvents) {\r\n s.append(\";\");\r\n s.append(event);\r\n }\r\n settings.setProperty(\"events\", s.substring(1));\r\n }", "public void stop()\n {\n mediaPlayer.stop();\n }", "public void onChunkUnload()\n {\n //RadioMod.logger.info(\"Unload\");\n RadioMod.instance.musicManager.radioSources.get(this.uuid).stopMusic();\n }", "public void stopAllSounds() {\n/* 218 */ if (this.loaded) {\n/* */ \n/* 220 */ for (String s : this.playingSounds.keySet())\n/* */ {\n/* 222 */ this.sndSystem.stop(s);\n/* */ }\n/* */ \n/* 225 */ this.playingSounds.clear();\n/* 226 */ this.delayedSounds.clear();\n/* 227 */ this.tickableSounds.clear();\n/* 228 */ this.categorySounds.clear();\n/* 229 */ this.playingSoundsStopTime.clear();\n/* */ } \n/* */ }", "void stopMusic();", "public synchronized void stopBackgroundAbruptly(){\r\n if(currentLoop0) backgroundMusicLoop0.stopClip();\r\n else backgroundMusicLoop1.stopClip();\r\n }", "public void StopMusic();", "public void killMusic() {\n\t\t// Stop the sources\n\t\talSourceStop(musicSourceIndex);\n\t\talSourceStop(reverseSourceIndex);\n\t\talSourceStop(flangeSourceIndex);\n\t\talSourceStop(revFlangeSourceIndex);\n\t\talSourceStop(wahSourceIndex);\n\t\talSourceStop(revWahSourceIndex);\n\t\talSourceStop(wahFlangeSourceIndex);\n\t\talSourceStop(revWahFlangeSourceIndex);\n\t\talSourceStop(distortSourceIndex);\n\t\talSourceStop(revDistortSourceIndex);\n\t\talSourceStop(distortFlangeSourceIndex);\n\t\talSourceStop(revDistortFlangeSourceIndex);\n\t\talSourceStop(wahDistortSourceIndex);\n\t\talSourceStop(revWahDistortSourceIndex);\n\t\talSourceStop(wahDistortFlangeSourceIndex);\n\t\talSourceStop(revWahDistortFlangeSourceIndex);\n\t\t// Delete the sources\n\t\talDeleteSources(musicSourceIndex);\n\t\talDeleteSources(reverseSourceIndex);\n\t\talDeleteSources(flangeSourceIndex);\n\t\talDeleteSources(revFlangeSourceIndex);\n\t\talDeleteSources(wahSourceIndex);\n\t\talDeleteSources(revWahSourceIndex);\n\t\talDeleteSources(wahFlangeSourceIndex);\n\t\talDeleteSources(revWahFlangeSourceIndex);\n\t\talDeleteSources(distortSourceIndex);\n\t\talDeleteSources(revDistortSourceIndex);\n\t\talDeleteSources(distortFlangeSourceIndex);\n\t\talDeleteSources(revDistortFlangeSourceIndex);\n\t\talDeleteSources(wahDistortSourceIndex);\n\t\talDeleteSources(revWahDistortSourceIndex);\n\t\talDeleteSources(wahDistortFlangeSourceIndex);\n\t\talDeleteSources(revWahDistortFlangeSourceIndex);\n\t\t// Delete the buffers\n\t\talDeleteBuffers(musicBufferIndex);\n\t\talDeleteBuffers(reverseBufferIndex);\n\t\talDeleteBuffers(wahBufferIndex);\n\t\talDeleteBuffers(revWahBufferIndex);\n\t\talDeleteBuffers(distortBufferIndex);\n\t\talDeleteBuffers(revDistortBufferIndex);\n\t\talDeleteBuffers(wahDistortBufferIndex);\n\t\talDeleteBuffers(revWahDistortBufferIndex);\n\t}", "@Override\n protected void onStop() {\n super.onStop();\n stopMusic();\n }", "public void stopCurrentSound() {\n\t\tif (midiSound != null) {\n\t\t\tmidiSound.stop();\n\t\t}\n\t\tif (functionSound != null) {\n\t\t\tfunctionSound.pause(true);\n\t\t}\n\t}", "public void unloadSoundSystem() {\n/* 205 */ if (this.loaded) {\n/* */ \n/* 207 */ stopAllSounds();\n/* 208 */ this.sndSystem.cleanup();\n/* 209 */ this.loaded = false;\n/* */ } \n/* */ }", "public void keepLooping() {\n\t\tif(!clip.isActive()) {\n\t\t\tstartSound();\n\t\t}\n\t}", "private void stop()\n {\n mPlayer.stop();\n mPlayer = MediaPlayer.create(this, audioUri);\n }", "@Override\n protected void onStop() {\n mediaPlayer.release();\n super.onStop();\n }", "public void stopped()\n {\n super.stopped();\n muteControl.stop();\n }", "public void close() {\n\t\tcurrentClip.stop();\n\t\tcurrentClip.close();\n\t\tisPlaying = false;\n\t}", "public void stop() {\n\t\tif (player == null)\n\t\t\treturn;\n\t\t\n\t\tif (listener != null)\n\t\t\tlistener.setLooping(false);\n\t\t\n\t\t// This will invoke playbackFinished, which will decrement currentlyPlaying\n\t\t// and set player to null.\n\t\tplayer.stop();\n\t}", "@Override\n public void stop()\n {\n final String funcName = \"stop\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (playing)\n {\n analogOut.setAnalogOutputMode((byte) 0);\n analogOut.setAnalogOutputFrequency(0);\n analogOut.setAnalogOutputVoltage(0);\n playing = false;\n expiredTime = 0.0;\n setTaskEnabled(false);\n }\n }", "public synchronized void stop() {\n if(running) {\n this.running = false;\n try {\n this.soundThread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "@Override\n public void playEnd() {\n }", "public void silence() {\r\n\t\tif (debugLevel > 1)\r\n\t\t\tSystem.out.println(\" ... silence\");\r\n\t\tif (clip != null && clip.isRunning()) {\r\n\t\t\tclip.stop();\r\n\t\t\tclip = null;\r\n\t\t}\r\n\t}", "public static void playerStop() {\n\t\tif(playing){\n\t\t\tPlayer.stop();\n\t\t\tmicroseconds = 0;\n\t\t\tplaying = false;\n\t\t\tif (sim!=null) sim.stop();\n\t\t}\n\t}", "public void onStop() {\n LOG.mo8825d(\"[onStop]\");\n if (this.mMediaPlayer != null) {\n if (this.mMediaPlayer.isPlaying()) {\n this.mMediaPlayer.stop();\n }\n this.mMediaPlayer.release();\n this.mMediaPlayer = null;\n }\n super.onStop();\n }", "protected void muteSounds()\n {\n if(confused.isPlaying())\n confused.stop();\n }", "private void detener() {\n player.stop();\n player.release();\n player = null;\n }", "protected void foo()\n\t\t{\n\t\t\tplayer.stop();\n\t\t}", "@Override\n\tpublic void onStopRun(PlatformPlayer player) {\n\t\t\n\t}", "@Override\n protected void onStop() {\n super.onStop();\n releaseMediaPlayer();\n }", "private void stopStopHolder() {\n Log.d(TAG, \"Stop the stop holder!\");\n try {\n if (mStopHandler != null) {\n mStopHandler.removeCallbacksAndMessages(null);\n }\n } catch (NullPointerException e) {\n CordovaPluginLog.e(TAG, \"Error: \", e);\n }\n }", "public void stoppedPlaying(int timecode) {\n if ((file != null) && (duration > -1)) {\n\n // Only want to monkey with the file if it WAS playing, but isn't\n // any more.\n if (wasPlaying) {\n\n // Now just degrade from starting point to stopping point...\n degrade(startPoint, timecode, duration);\n }\n }\n\n wasPlaying = false;\n }", "private void stop()\n\t\t{\n\t\t\tif (mMediaPlayer != null)\n\t\t\t{\n\t\t\t\tmMediaPlayer.stop();\n\t\t\t\tmMediaPlayer.reset();\n\t\t\t}\n\t\t}", "@Override\n protected void onStop() {\n super.onStop();\n // when the activity is stopped, release the media player resources because we won't\n // be playing any more sounds.\n releaseMediaPlayer();\n }", "private void stopButtonActionPerformed(java.awt.event.ActionEvent evt) {\n for(AudioVisualMaterial currentAudio : audio){ //iterates through audio array\n currentAudio.setupSoundClip(); //sets up sound clip\n //currentAudio.stopSoundClip(); //stops audio sound clip\n }\n\n //enhanced for loop stops any video soundClip playing\n for(AudioVisualMaterial currentVideo : video){ //iterates through video array\n currentVideo.setupSoundClip(); //sets up sound clip\n //currentVideo.stopSoundClip(); //stops video sound clip\n }\n }", "public void stop() {\n mMediaPlayer.stop();\n setPlayerState(State.STOPPED);\n notifyPlaying();\n }", "private void m1002d() {\n AudioRecord audioRecord = this.f1956h;\n if (audioRecord != null) {\n if (audioRecord.getState() == 1) {\n this.f1956h.stop();\n }\n this.f1956h.release();\n this.f1956h = null;\n }\n this.f1950b.position(0);\n this.f1957i = false;\n }", "public void stop() {\n SystemClock.sleep(500);\n\n releaseAudioTrack();\n }", "public void stop()\n\t{\n\t\ttry\n\t\t{\n\t\t\tstopPlayer();\n\t\t}\n\t\tcatch (JavaLayerException ex)\n\t\t{\n\t\t\tSystem.err.println(ex);\n\t\t}\n\t}", "public void stopBackgroundMusic()\n {\n background.stop();\n }", "public void stop() {\n mCurrentPlayer.reset();\n mIsInitialized = false;\n }", "void stopPumpingEvents();", "public static void stopSounds()\n {\n zWalk.stop();\n hitObst.stop();\n combust.stop();\n walkSound.stop();\n runSound.stop();\n }", "public void stop() {\n\tanimator = null;\n\toffImage = null;\n\toffGraphics = null;\n }", "public static void stopMoving()\n {\n //System.out.println(\"player stopped moving\");\n runSound.stop();\n walkSound.stop();\n }", "public void stopPlaying() {\n\t\tpbrLoading.setVisibility(View.GONE);\n\t\tisPlaying = false;\n\t\tupdateView();\n\t}", "public void stop() {\n try {\n mIsIdle = true;\n mIsLooping = false;\n if (mCurPlayer != null) \n {\n mCurPlayer.stop(); \n Thread.sleep(100);\n// mCurPlayer.setMediaTime(0);\n mIsPlaying = false;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void stopBackground(){\n\t if(loopingSound != null){\n\t loopingSound.terminate();\n\t }\n\t\tloopingSound = null;\n\t\tactiveSounds--;\n\t}", "public static void stopMidi()\r\n {\r\n if (sequencer!=null)\r\n {\r\n sequencer.stop();\r\n }\r\n }", "protected void stop() {\r\n\t\tif (active) {\r\n\t\t\tsource.stop();\r\n\t\t}\r\n\t}", "private void pararCancion() {\n clip.stop();\n clip.close();\n clip = null;\n }", "public void openAlienDestroyedSound() {\r\n\t\tif (clipAlienDestroyed.isOpen()) {\r\n\t\t\tclipAlienDestroyed.start();\r\n\t\t}\r\n\r\n\t\tif (!(clipAlienDestroyed.isActive())) {\r\n\t\t\t/*\r\n\t\t\t * clip.stop(); clip.flush();\r\n\t\t\t */\r\n\t\t\tclipAlienDestroyed.setFramePosition(0);\r\n\t\t}\r\n\r\n\t}", "public static void shutDownPlayer()\n {\n MusicPlayerControl.shutdown();\n JSoundsMainWindowViewController.listSongs=null;\n JSoundsMainWindowViewController.listSongs=new JMusicPlayerList();\n JSoundsMainWindowViewController.alreadyPlaying=false;\n JSoundsMainWindowViewController.dontInitPlayer=false;\n JSoundsMainWindowViewController.shutDown=true;\n }", "public void stop() {\n stop = true;\n //index--;\n line.flush();\n line.close();\n try {\n decodedInput.close();\n } catch (IOException ex) {\n Logger.getLogger(MP3Player.class.getName()).log(Level.SEVERE, null, ex);\n }\n Runtime.getRuntime().gc();\n }", "@Override\n\tpublic void onStopStandDown(PlatformPlayer player) {\n\t\t\n\t}", "public void stop() {\n cancelCallback();\n mStartTimeMillis = 0;\n mCurrentLoopNumber = -1;\n mListener.get().onStop();\n }", "public void stop(String key) {\n\t\t// Get the active sound for the key\n\t\tif (!actives.containsKey(key)) {\n\t\t\t//System.out.println(\"Returned\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tActiveSound snd = actives.get(key);\n\t\t\n\t\t// This is a workaround for the OS X sound bug\n\t\t//snd.sound.stop(snd.id);\n\t\tsnd.sound.setLooping(snd.id,false); // Will eventually garbage collect\n\t\tsnd.sound.setVolume(snd.id, 0.0f); \n\t\tactives.remove(key);\n\t}", "public void playerStopped ( int perf ) {\n LOG.d(LOG_TAG, \"stopPlaying is calling stopped\");\n this.setState(STATE.MEDIA_STOPPED);\n\n // Send status notification to JavaScript\n sendStatusChange(MEDIA_DURATION, null, null);\n }", "public void sendAllSoundsOff()\n {\n super.sendAllSoundsOff();\n }", "public void stopAudio() {\n\t\tif(audioStream != null ) {\n\t\t\tAudioPlayer.player.stop(audioStream);\n\t\t}\n\t}", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n stopMusic();\n }", "public synchronized void stop(){\n\t\tif (tickHandle != null){\n\t\t\ttickHandle.cancel(false);\n\t\t\ttickHandle = null;\n\t\t}\n\t}" ]
[ "0.7586524", "0.75583935", "0.75118494", "0.74961376", "0.7487188", "0.74138224", "0.7343564", "0.733971", "0.7322187", "0.73072255", "0.7306268", "0.7270765", "0.72359455", "0.7232245", "0.7195359", "0.7194447", "0.7174937", "0.70970833", "0.70940787", "0.70664835", "0.7064149", "0.70442533", "0.7042743", "0.7034198", "0.69750154", "0.6969571", "0.6964655", "0.69590783", "0.69573313", "0.6944262", "0.6938049", "0.69086516", "0.68832064", "0.6874089", "0.6851044", "0.68234974", "0.68216866", "0.6818097", "0.6796051", "0.6790295", "0.6769969", "0.6766285", "0.6765792", "0.6764782", "0.67619634", "0.67445064", "0.6743808", "0.6725212", "0.67099595", "0.6695029", "0.66675013", "0.6656169", "0.6655879", "0.66544926", "0.66307014", "0.6614072", "0.6600277", "0.65908194", "0.6576394", "0.6555918", "0.6550929", "0.6536171", "0.652871", "0.65285337", "0.6526718", "0.65175366", "0.6510475", "0.6510296", "0.650578", "0.6490599", "0.6484393", "0.64829475", "0.6479186", "0.64734626", "0.64559925", "0.64531845", "0.6440308", "0.64319724", "0.64290285", "0.641709", "0.6413097", "0.6412184", "0.639927", "0.6399103", "0.63847905", "0.63821465", "0.6374981", "0.63694865", "0.63608074", "0.6359493", "0.63512176", "0.635052", "0.6349025", "0.6344242", "0.6339955", "0.63391733", "0.633823", "0.63306916", "0.6327192", "0.6326379" ]
0.6919796
31
Returns the current sequencer if no other sound is playing
public Sequencer requestPlay ( MidiSoundHolder sound ) { if ( this.currentMidi != null && this.currentMidi != sound ) return null; this.currentMidi = sound; this.sequencer.addMetaEventListener ( sound ); return this.sequencer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Sequencer requestSequencer ( MidiSoundHolder sound ) {\n if ( this.currentMidi != sound )\n return null;\n return this.sequencer;\n }", "IPatternSequencer getSequencer();", "public static Sequence getSequence(){\n\t\treturn curMIDI;\n\t}", "SequencerStorage getSequencerStorage();", "public Question getCurrentQuestion() {\n Question question = null;\n for (Question q : questions) {\n if (q.getSequence() == sequence) {\n question = q;\n break;\n }\n }\n return question;\n }", "private static Synthesizer getSynthesizer(){\n\t\ttry{\n\t\t\treturn MidiSystem.getSynthesizer();\n\t\t}catch(Exception e){}\n\t\treturn null;\n\t}", "public static Mixer getPrimaryCaptureDriver() {\r\n\t\t//final String searchName = \"Microphone (Realtek High Defini\";\r\n\t\t//final String searchName = \"Primary Sound Capture Driver\";\r\n\t\tfinal String searchName = \"Stereo Mix (Realtek High Defini\";// this one for loopback\r\n\t\tMixer.Info infos[] = AudioSystem.getMixerInfo();\r\n\t\t\r\n\t\tfor(Mixer.Info i : infos) {\r\n\t\t\tif(i.getName().equals(searchName)) {\r\n\t\t\t\tif(DEBUG) {\r\n\t\t\t\t\tSystem.out.println(\"Found primary sound capture driver: \" + i);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn AudioSystem.getMixer(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(DEBUG) {\r\n\t\t\tSystem.out.println(\"Failed to find sound capture driver, name=\\\"\" + searchName + \"\\\".\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void playTempMIDI() {\r\n\t\tSequence sequence = null;\r\n\t\ttry {\r\n\t\t\tsequence = MidiSystem.getSequence(new File(\"temp.mid\"));\r\n\t\t} catch (InvalidMidiDataException e) {\r\n\t\t\t/*\r\n\t\t\t * In case of an exception, we dump the exception including the\r\n\t\t\t * stack trace to the console. Then, we exit the program.\r\n\t\t\t */\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn;\r\n\t\t} catch (IOException e) {\r\n\t\t\t/*\r\n\t\t\t * In case of an exception, we dump the exception including the\r\n\t\t\t * stack trace to the console. Then, we exit the program.\r\n\t\t\t */\r\n\t\t\tJOptionPane.showMessageDialog(null, \"No Music Composed!\", \"File Not Found\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Now, we need a Sequencer to play the sequence. Here, we simply\r\n\t\t * request the default sequencer.\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tsm_sequencer = MidiSystem.getSequencer();\r\n\t\t} catch (MidiUnavailableException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (sm_sequencer == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * There is a bug in the Sun jdk1.3/1.4. It prevents correct termination\r\n\t\t * of the VM. So we have to exit ourselves. To accomplish this, we\r\n\t\t * register a Listener to the Sequencer. It is called when there are\r\n\t\t * \"meta\" events. Meta event 47 is end of track.\r\n\t\t * \r\n\t\t * Thanks to Espen Riskedal for finding this trick.\r\n\t\t */\r\n\t\tsm_sequencer.addMetaEventListener(new MetaEventListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void meta(MetaMessage event) {\r\n\t\t\t\tif (event.getType() == 47) {\r\n\t\t\t\t\tsm_sequencer.close();\r\n\t\t\t\t\tif (sm_synthesizer != null) {\r\n\t\t\t\t\t\tsm_synthesizer.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t/*\r\n\t\t * The Sequencer is still a dead object. We have to open() it to become\r\n\t\t * live. This is necessary to allocate some ressources in the native\r\n\t\t * part.\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tsm_sequencer.open();\r\n\t\t} catch (MidiUnavailableException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Next step is to tell the Sequencer which Sequence it has to play. In\r\n\t\t * this case, we set it as the Sequence object created above.\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tsm_sequencer.setSequence(sequence);\r\n\t\t} catch (InvalidMidiDataException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Now, we set up the destinations the Sequence should be played on.\r\n\t\t * Here, we try to use the default synthesizer. With some Java Sound\r\n\t\t * implementations (Sun jdk1.3/1.4 and others derived from this\r\n\t\t * codebase), the default sequencer and the default synthesizer are\r\n\t\t * combined in one object. We test for this condition, and if it's true,\r\n\t\t * nothing more has to be done. With other implementations (namely\r\n\t\t * Tritonus), sequencers and synthesizers are always seperate objects.\r\n\t\t * In this case, we have to set up a link between the two objects\r\n\t\t * manually.\r\n\t\t * \r\n\t\t * By the way, you should never rely on sequencers being synthesizers,\r\n\t\t * too; this is a highly non- portable programming style. You should be\r\n\t\t * able to rely on the other case working. Alas, it is only partly true\r\n\t\t * for the Sun jdk1.3/1.4.\r\n\t\t */\r\n\t\tif (!(sm_sequencer instanceof Synthesizer)) {\r\n\t\t\t/*\r\n\t\t\t * We try to get the default synthesizer, open() it and chain it to\r\n\t\t\t * the sequencer with a Transmitter-Receiver pair.\r\n\t\t\t */\r\n\t\t\ttry {\r\n\t\t\t\tsm_synthesizer = MidiSystem.getSynthesizer();\r\n\t\t\t\tsm_synthesizer.open();\r\n\t\t\t\tReceiver synthReceiver = sm_synthesizer.getReceiver();\r\n\t\t\t\tTransmitter seqTransmitter = sm_sequencer.getTransmitter();\r\n\t\t\t\tseqTransmitter.setReceiver(synthReceiver);\r\n\t\t\t} catch (MidiUnavailableException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Now, we can start over.\r\n\t\t */\r\n\t\tsm_sequencer.start();\r\n\t}", "public static boolean isSound() {\n return sound;\n }", "public boolean isAudio() {\n\t\t\treturn this == AUDIO;\n\t\t}", "public static void beginCurrentSoundtrack() {\n\t\t\n\t\tif (GameFrame.settingsPanel.musicOn() && soundtrack[GameBoardModel.getLevel()-1] != null) {\n\t\t\t\n\t\t\t// In case a new game is started before the victory jingle is finished\n\t\t\t// from a previous game (rare occurrence, but possible)\n\t\t\tif (victoryFanfare.isRunning()) victoryFanfare.stop();\t\t\t\n\t\t\t\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].setFramePosition(0);\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].loop(Clip.LOOP_CONTINUOUSLY);\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n\tprotected SoundEvent getAmbientSound() {\n\t\treturn getSoundManager().getLivingSound();\n\t}", "private ArchiveSongObj getCurrentSong() {\n\t\tif(nowPlayingPosition==-1){\n\t\t\treturn null;\n\t\t}\n\t\treturn songArray.get(nowPlayingPosition);\n\t}", "public String interact() {\n return sound;\n }", "public boolean getSoundAmbience() { return soundAmbience; }", "public String getAudioId() {\n\t\tif (mPlayPos >= 0) {\n\t\t\treturn mPlayList[mPlayPos].getId();\n\t\t}\n\t\treturn null;\n\t}", "public Tone getPrimaryTone() {\n return getTones().get(0);\n }", "public static AudioPlayer getDEFAULTSHOOTSOUND() {\r\n\t\treturn DEFAULTSHOOTSOUND;\r\n\t}", "public boolean isSound() {\n\t\treturn true;\n\t}", "public DataSource getAudioSource();", "public AudioPlayer getAudioPlayer() {\n if (audioPlayer == null) {\n try {\n audioPlayer = getDefaultAudioPlayer();\n } catch (InstantiationException e) {\n e.printStackTrace();\n }\n }\n\treturn audioPlayer;\n }", "@Override\n\tpublic int getAudioSessionId() {\n\t\treturn 0;\n\t}", "public final String getSound( ) {\n\t\treturn sound;\n\t}", "public boolean playing() {\n\t\treturn sound.isPlaying();\n\t}", "protected String getLivingSound()\n {\n return null;\n }", "protected String getLivingSound()\n {\n return null;\n }", "public Sequence getActiveSequence() {\n\t\treturn activeSequence;\n\t}", "public Mixer.Info getMixer() {\n return mixer;\n }", "@Override\n\tpublic String sing() {\n\t\treturn this.sound;\n\t}", "public String getCurrentWaveID() {\n\t\treturn null;\r\n\t}", "public int getAudioSessionId() {\n\t\treturn mPlayer.getAudioSessionId();\n\t}", "public boolean isSpeaking() {\n return (mSelf.mIsSpeaking && (mSpeechQueue.size() < 1));\n }", "public static void resumeCurrentSoundtrack() {\n\t\tif (GameFrame.settingsPanel.musicOn() && soundtrack[GameBoardModel.getLevel()-1] != null)\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].loop(Clip.LOOP_CONTINUOUSLY);\n\t}", "MidiSoundD getMidiSound() {\n\t\tif (midiSound == null) {\n\t\t\ttry {\n\t\t\t\tmidiSound = new MidiSoundD(app);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn midiSound;\n\t}", "public Speakers getSpeaker(){\n int speaker_id = getIntent().getExtras().getInt(AppController.SPEAKER_ID);\n DatabaseHandler dh = new DatabaseHandler(this);\n return dh.getSpeaker(speaker_id);\n }", "@DISPID(3) //= 0x3. The runtime will prefer the VTID if present\r\n @VTID(9)\r\n speech.types.SpeechAudioState state();", "public boolean isSoundEnabled() {\n return soundToggle;\n }", "public void playSequence() {\n sequence.play(seq);\n }", "public boolean isAudio()\n {return false ;\n }", "private FunctionSoundD getFunctionSound() {\n\t\tif (functionSound == null) {\n\t\t\ttry {\n\t\t\t\tfunctionSound = new FunctionSoundD();\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.error(\"Problem in getFunctionSound(): \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn functionSound;\n\t}", "@Override\r\n\tpublic String doSound() {\n\t\treturn null;\r\n\t}", "protected SoundEvent getAmbientSound()\n {\n if (timetopee > 0 || bumgave )\n {\n return MCSoundEvents.ENTITY_BUM;\n }\n else\n {\n return MCSoundEvents.ENTITY_BUM_LIVINGPEE;\n }\n }", "String sound();", "public SoundClip getSound() {\n return socSound;\n }", "PlaySound getSound();", "public boolean getSoundDuck() { return soundDuck; }", "String getOscTarget();", "public boolean musicOn ()\n\t{\n\t\tif (musicInt == 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean getSoundEnabled() { return soundEnabled; }", "public boolean isSoundPCSpeakerEnabled()\r\n {\r\n return isSoundPCSpeakerEnabled;\r\n }", "public SoundInfo getSound(int keyCode) {\n\t\tSoundInfo sound = null;\n\t\tif (soundList.containsKey(keyCode)) {\n\t\t\tsound = soundList.get(keyCode);\n\t\t}\n\t\treturn sound;\n\t}", "public AudioManager getAudioManager() {\r\n return audioManager;\r\n }", "public Sound getSound() {\n return _sound;\n }", "public AudioInputStream getSample() {\n\t\t\ttry {\n\t\t\t\tif (file != null) {\n\t\t\t\t\tfile.close();\n\t\t\t\t}\n\t\t\t\tfile = AudioFileHandler.OpenFile(filepath);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn file;\n\t\t}", "AudioGenerator() {\n minim = new Minim(this);\n // use the getLineOut method of the Minim object to get an AudioOutput object\n out = minim.getLineOut();\n }", "private MusicManager() {\n\t\ttry {\n\t\t\t// init sequencer\n\t\t\tsequencer = MidiSystem.getSequencer();\n\t\t\tsequencer.open();\n\n\t\t\t// init synthesizer\n\t\t\tsynth = MidiSystem.getSynthesizer();\n\t\t\tsynth.open();\n\t\t\t\n\t\t\t// DEBUG\n\t\t\t//System.out.print(\"latency = \" + synth.getLatency());\n\t\t\t//System.out.print(\"max polyphony = \" + synth.getMaxPolyphony());\n\n\t\t\t// get channel for synthesizing: the highest numbered channel. sets it up\n\t\t\tMidiChannel[] channels = synth.getChannels();\n\t\t\tsynthChannel = channels[channels.length - 1];\n\t\t\tsetSynthInstrument(MusicManager.SYNTH_INSTRUMENT);\n\t\t\t\n\t\t} catch (MidiUnavailableException e) {\n\t\t\tErrorHandler.display(\"Cannot play MIDI music\");\n\t\t\tsequencer = null; // remember this! sequencer can be null.\n\t\t\treturn;\n\t\t}\n\t\t\n\t}", "public String getSound();", "public int getSoundState() {\n return preferences.getInt(\"sound_state\",0);\n }", "public double getCurrentTime() {\n if (music == null) {\n return -1;\n }\n \n double currentTime = music.getCurrentTime();\n \n // Returns the next start time so that even if music isn't playing, the line still renders\n if (currentTime == -1) {\n return nextStartTime;\n }\n \n return currentTime;\n }", "public boolean getAudioEnabled() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n return prefs.getBoolean(\"audio_output_switch\", true);\n }", "public Sound getSoundDying() {\n return soundDying;\n }", "public int getSoundIndex() \n\t{\n\treturn fSoundIndex;\n\t}", "public String getSound()\r\n\t{\r\n\t\treturn \"Squeak Squeak Squeak\";\r\n\t}", "public boolean convertAudioTypeToDefault();", "@JRubyMethod(name= \"silencer\", meta = true)\n public static IRubyObject get_silencer(final ThreadContext context, final IRubyObject self) {\n return context.runtime.newBoolean(silencer);\n }", "public PlayableItem getCurrentPlayingItem() {\n\t\treturn currentPlayingItem;\n\t}", "public int init() {\n audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, SAMPLE_RATE,\n AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_FLOAT, BUFFER_SIZE);\n return audioRecord.getState();\n }", "public String getAudioCode() {\n return audioCode;\n }", "public native boolean isCrossSequencingEnabled() throws IOException,IllegalArgumentException;", "private int getCurrentSong() {\n return currentSong;\n }", "@Override\n\tpublic String speak() {\n\t\treturn null;\n\t}", "boolean isSoundPlaying() {\n return (audioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING);\n }", "@Override\r\n\tpublic float soundLevel() {\n\t\treturn 1f;\r\n\t}", "public boolean isSoundPlaybackEnabled()\r\n {\r\n return isSoundPlaybackEnabled;\r\n }", "public com.google.protobuf.ByteString getAudioIn() {\n if (converseRequestCase_ == 2) {\n return (com.google.protobuf.ByteString) converseRequest_;\n }\n return com.google.protobuf.ByteString.EMPTY;\n }", "@Override\n public double getEngineSound() {\n return decoratedEngine.getEngineSound() * .6;\n }", "public Question getCurrentQuestion() {\n\t\treturn currentQuestion;\n\t}", "public AudioDescriptor getAudioDescriptor();", "public com.google.protobuf.ByteString getAudioIn() {\n if (converseRequestCase_ == 2) {\n return (com.google.protobuf.ByteString) converseRequest_;\n }\n return com.google.protobuf.ByteString.EMPTY;\n }", "protected static void play() {\n\t\tif (curMIDI != null && !playing){\n\t\t\tPlayer.play(curMIDI,microseconds,cleaned);\n\t\t\tplaying = true;\n\t\t}\n\t\tif (sim != null) {\n\t\t\tif(microseconds == 0){\n\t\t\t\tsim.stop();\n\t\t\t}\n\t\t\t\tsim.play();\n\t\t}\n\t}", "public String getPlaybackDevice();", "public int getAudioDscp();", "public boolean isPlaying() {\n\t\treturn AL10.alGetSourcei(id, AL10.AL_SOURCE_STATE) == AL10.AL_PLAYING;\n\t}", "public boolean playsSound() {\r\n\t\treturn playsSound;\r\n\t}", "public void stop() {\n\t\tif (sequencer == null) return;\n\n\t\tsequencer.stop();\n\t}", "protected InputStream getAudioStream()\n\t{\n\t\tInputStream in = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tURL url = getAudioURL();\n\t\t\tif (url!=null)\t\t\t\n\t\t\t\tin = url.openStream();\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tSystem.err.println(ex);\n\t\t}\n\t\treturn in;\n\t}", "public Player getCurrentPlayer()\n\t{\n\t\treturn current;\n\t}", "public String getCurrentPlayer() {\r\n return this.playerIds[this.currentPlayer];\r\n }", "public synchronized boolean getEnabled() {\r\n return this.soundOn;\r\n }", "public SoundEvent getFallSound() {\n/* 103 */ return this.fallSound;\n/* */ }", "@Override\n public boolean isPlaying()\n {\n final String funcName = \"isPlaying\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", Boolean.toString(playing));\n }\n\n return playing;\n }", "public SoundEvent getStepSound() {\n/* 91 */ return this.stepSound;\n/* */ }", "abstract String getSound();", "public Player currentPlayer() {\n\t\treturn (currentPlayer);\n\t}", "public int getAudioJittcomp();", "public boolean getSoundShot() { return soundShot; }", "public void getMedia() {\n\tif (sound != null && soundData == null) {\n\t soundData = parent.getAudioClip(sound);\n\t}\n\tif (soundData == null) {\n\t System.out.println(\"SoundArea: Unable to load data \"+sound);\n\t}\n\tisReady = true;\n }", "public AudioFormat getAudioFormat() {\n return currentFormat;\n }", "public String playFromBeginning() {\n currentIndex = 1;\n return \"Playing song 1:\" + songs.get(currentIndex-1);\n }", "public void stopCurrentSound() {\n\t\tif (midiSound != null) {\n\t\t\tmidiSound.stop();\n\t\t}\n\t\tif (functionSound != null) {\n\t\t\tfunctionSound.pause(true);\n\t\t}\n\t}" ]
[ "0.722724", "0.6374356", "0.63439554", "0.63141865", "0.5912525", "0.5909505", "0.5870652", "0.5700535", "0.56970954", "0.5688013", "0.56638575", "0.562216", "0.5552214", "0.5524862", "0.55168444", "0.54939497", "0.5488268", "0.5432762", "0.54305494", "0.54144806", "0.5407556", "0.54036754", "0.5396413", "0.53947955", "0.53820103", "0.53820103", "0.5355853", "0.5353855", "0.5338797", "0.5324821", "0.5322761", "0.5301596", "0.5286022", "0.52778673", "0.52762586", "0.52630574", "0.5245777", "0.52295566", "0.5219844", "0.5217904", "0.52138567", "0.51985455", "0.5191308", "0.5183217", "0.51824063", "0.51650226", "0.51610535", "0.51514256", "0.51485056", "0.5146628", "0.5143195", "0.51395315", "0.5131786", "0.5124177", "0.5096942", "0.5095093", "0.5087303", "0.5080699", "0.50752115", "0.50741005", "0.50509214", "0.5034648", "0.5025954", "0.5025663", "0.5019106", "0.5018957", "0.5016194", "0.5005495", "0.5003483", "0.50015384", "0.49899366", "0.4986412", "0.49861988", "0.4982873", "0.49703586", "0.49688435", "0.4965812", "0.4965249", "0.4963875", "0.49577448", "0.49573627", "0.49522054", "0.4951646", "0.49502796", "0.49460688", "0.4943042", "0.4942004", "0.4939177", "0.49360505", "0.49348903", "0.49218208", "0.49209973", "0.488944", "0.48821503", "0.48816225", "0.48758322", "0.48743042", "0.4874204", "0.4874155", "0.48708355" ]
0.6258102
4
Returns the current sequencer if the given sound is the playing sound
public Sequencer requestSequencer ( MidiSoundHolder sound ) { if ( this.currentMidi != sound ) return null; return this.sequencer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isSound() {\n return sound;\n }", "public boolean isSound() {\n\t\treturn true;\n\t}", "public boolean playing() {\n\t\treturn sound.isPlaying();\n\t}", "public boolean isAudio() {\n\t\t\treturn this == AUDIO;\n\t\t}", "boolean isSoundPlaying() {\n return (audioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING);\n }", "public boolean isSoundPlaying(ISound sound) {\n/* 333 */ if (!this.loaded)\n/* */ {\n/* 335 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 339 */ String s = this.invPlayingSounds.get(sound);\n/* */ \n/* 341 */ if (s == null)\n/* */ {\n/* 343 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 347 */ return !(!this.sndSystem.playing(s) && (!this.playingSoundsStopTime.containsKey(s) || ((Integer)this.playingSoundsStopTime.get(s)).intValue() > this.playTime));\n/* */ }", "public boolean playsSound() {\r\n\t\treturn playsSound;\r\n\t}", "public boolean isPlaying(int sample) {\n\t\t\treturn m_soundManager.isPlaying(sample);\n\t\t}", "public Sequencer requestPlay ( MidiSoundHolder sound ) {\n if ( this.currentMidi != null && this.currentMidi != sound )\n return null;\n this.currentMidi = sound;\n this.sequencer.addMetaEventListener ( sound );\n return this.sequencer;\n }", "public boolean soundDeviceCanPlayback(String device);", "PlaySound getSound();", "public boolean isPlaying() {\n\t\treturn AL10.alGetSourcei(id, AL10.AL_SOURCE_STATE) == AL10.AL_PLAYING;\n\t}", "@Override\n public boolean isPlaying()\n {\n final String funcName = \"isPlaying\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", Boolean.toString(playing));\n }\n\n return playing;\n }", "private boolean findSound(boolean stream){\r\n try{\r\n \tString type = name.substring(name.length() - 3).toUpperCase();\r\n \tString path = Data.DIR_PATH + \"res\" + Data.SEP + \"sfx\" + Data.SEP + name;\r\n \tif(stream){\r\n \t\tsound = AudioLoader.getStreamingAudio(type, ResourceLoader.getResource(path));\r\n \t}else{\r\n \t\tsound = AudioLoader.getAudio(type, ResourceLoader.getResourceAsStream(path));\r\n \t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isSoundEnabled() {\n return soundToggle;\n }", "public boolean isAudioPlaying() {\n\t\tif (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) {\n\t\t\treturn mPlayer.isPlaying();\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean musicPlaying()\r\n\t{\r\n\t\tif ( musicPlayer == null )\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn musicPlayer.isPlaying();\r\n\t}", "public boolean isPlaying() {\n return params.isPlay();\n }", "public static boolean toggleSound()\r\n\t{\r\n\t\tSettings.setSoundOn( !Settings.isSoundOn() );\r\n\t\treturn Settings.isSoundOn();\r\n\t}", "public boolean musicOn ()\n\t{\n\t\tif (musicInt == 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean playSound(String sound) {\r\n\r\n MediaPlayer player = sounds.get(sound);\r\n if (player == null) {\r\n return false;\r\n }\r\n\r\n player.stop();\r\n player.play();\r\n\r\n return true;\r\n }", "public boolean getSoundEnabled() { return soundEnabled; }", "public boolean isAudio()\n {return false ;\n }", "public final String getSound( ) {\n\t\treturn sound;\n\t}", "public boolean getSoundAmbience() { return soundAmbience; }", "public boolean isPlaying() {\n\t\treturn state == State.INGAME;\n\t}", "public boolean isSoundPlaybackEnabled()\r\n {\r\n return isSoundPlaybackEnabled;\r\n }", "public boolean getAudioEnabled() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n return prefs.getBoolean(\"audio_output_switch\", true);\n }", "@SuppressWarnings(\"static-access\")\n\tpublic boolean isPlay(){\n\t\treturn this.isPlay;\n\t}", "public boolean convertAudioTypeToDefault();", "@Override\r\n\tpublic boolean isPlaying() {\n\t\treturn mediaPlayer.isPlaying();\r\n\t}", "public boolean isPlaying() {\n return isPlaying(mController);\n }", "public boolean isPlaying() {\n return state.isActive();\n }", "public boolean isPlaying(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn false;\r\n \t\treturn mediaplayer.isPlaying();\r\n \t}", "public boolean isPlaying() {\n \t\treturn isPlaying;\n \t}", "public boolean isPlaying() {\n return mPlaying || mStateManager.isPlaying();\n\t}", "boolean isPlaying() { return playing; }", "public boolean isPlaying() {\n\t\treturn isPlaying;\n\t}", "public boolean getPlaying() {\n\t\treturn this.isPlaying;\n\t}", "public boolean hasAudio() {\n\t\treturn this.recordingProperties.hasAudio();\n\t}", "public String getSound();", "boolean getShutterSoundPref();", "public int getSoundState() {\n return preferences.getInt(\"sound_state\",0);\n }", "public boolean isPlayByPlayMenuSelected() {\n return playByPlayMenuSelected;\n }", "public boolean getSoundShot() { return soundShot; }", "boolean getRecordAudioPref();", "public boolean getIsPlaying() {\n\t\treturn this.isPlaying;\n\t}", "public boolean isPlayerPlaying() {\n return this.player.getMasterMediaPlayer().isPlaying();\n }", "public static AudioPlayer getDEFAULTSHOOTSOUND() {\r\n\t\treturn DEFAULTSHOOTSOUND;\r\n\t}", "public SoundClip getSound() {\n return socSound;\n }", "public boolean isPlaying() {\n\t\tif(currentPlayingItem==null) return false;\n\t\treturn mediaPlayer.isPlaying();\n\t}", "public String interact() {\n return sound;\n }", "public DataSource getAudioSource();", "public boolean isSoundPCSpeakerEnabled()\r\n {\r\n return isSoundPCSpeakerEnabled;\r\n }", "String sound();", "public static void beginCurrentSoundtrack() {\n\t\t\n\t\tif (GameFrame.settingsPanel.musicOn() && soundtrack[GameBoardModel.getLevel()-1] != null) {\n\t\t\t\n\t\t\t// In case a new game is started before the victory jingle is finished\n\t\t\t// from a previous game (rare occurrence, but possible)\n\t\t\tif (victoryFanfare.isRunning()) victoryFanfare.stop();\t\t\t\n\t\t\t\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].setFramePosition(0);\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].loop(Clip.LOOP_CONTINUOUSLY);\n\t\t\t\n\t\t}\n\t\t\n\t}", "public boolean isSpeaking() {\n return (mSelf.mIsSpeaking && (mSpeechQueue.size() < 1));\n }", "public boolean getSoundDuck() { return soundDuck; }", "Boolean isPlaying() {\n return execute(\"player.playing\");\n }", "public boolean isPlaying() {\n\t\treturn mIsSupposedToBePlaying;\n\t}", "public boolean getAcceptsAudio() {\n\n return m_acceptsAudio;\n }", "public boolean soundDeviceCanCapture(String device);", "@Override\n\tpublic String sing() {\n\t\treturn this.sound;\n\t}", "boolean play();", "public void StartSound(ISoundOrigin origin, int sound_id);", "public boolean getPlaying() {\n return this.playing;\n }", "public boolean isMusicActive() {\n return mAudioManager.isMusicActive();\n }", "boolean isPlayable();", "public boolean hasSoundFont() {\n\t\treturn soundFont != null;\n\t}", "public Sound getSound() {\n return _sound;\n }", "public boolean isPlaying(MediaController mediaController) {\n boolean z = false;\n if (mediaController == null) {\n return false;\n }\n PlaybackState playbackState = mediaController.getPlaybackState();\n if (playbackState == null) {\n return false;\n }\n if (playbackState.getState() == 3) {\n z = true;\n }\n return z;\n }", "private void playSound() {\n\t\tif (controllerVars.isLoaded() && !controllerVars.isPlays()) {\n\t\t\tcontrollerVars.getSoundPool().play(controllerVars.getSoundID(), controllerVars.getVolume(), controllerVars.getVolume(), 1, 0, 1f);\n\t\t\tcontrollerVars.COUNTER++;\n\t\t\t//Toast.makeText(act, \"Played sound\", Toast.LENGTH_SHORT).show();optional Playing message \n\t\t\tcontrollerVars.setPlays(true);\n\t\t\tonComplete(controllerVars.getMediaPlayer().getDuration());\n\t\t}\n\t\t//controllerVars.getMediaPlayer().start();\n\t\t//controllerVars.setPlays(true);\n\t}", "public String getSound()\r\n\t{\r\n\t\treturn \"Squeak Squeak Squeak\";\r\n\t}", "abstract String getSound();", "@Override\n\tprotected SoundEvent getAmbientSound() {\n\t\treturn getSoundManager().getLivingSound();\n\t}", "public SoundInfo getSound(int keyCode) {\n\t\tSoundInfo sound = null;\n\t\tif (soundList.containsKey(keyCode)) {\n\t\t\tsound = soundList.get(keyCode);\n\t\t}\n\t\treturn sound;\n\t}", "public String play(String sound) {\r\n return play(SoundLibrarian.getInstance(), sound);\r\n }", "@DISPID(3) //= 0x3. The runtime will prefer the VTID if present\r\n @VTID(9)\r\n speech.types.SpeechAudioState state();", "public void playSound(int sound) {\n \t currentstreamID=soundPool.play(soundPoolMap.get(sound), 0.5f, 0.5f, 1, -1, 1f);\n Log.e(\"MYT\",currentstreamID+\" play output\"); \n }", "public SoundClip chooseSound(Sound sound){\n SoundClip audio = null;\n\n switch(sound){\n case CREDIT:\n audio = createStream(CREDIT_URL);\n break;\n case DEATH:\n audio = createStream(DEATH_URL);\n break;\n case EAT_FRUIT:\n audio = createStream(EAT_FRUIT_URL);\n break;\n case EAT_GHOST:\n audio = createStream(EAT_GHOST_URL);\n break;\n case PAUSE_SOUND:\n audio = createStream(PAUSE_SOUND_URL);\n break;\n case GAME_START:\n audio = createStream(GAME_START_URL);\n break;\n case MUNCH_1:\n audio = createStream(MUNCH_1_URL);\n break;\n case MUNCH_2:\n audio = createStream(MUNCH_2_URL);\n break;\n case FRIGHT_SOUND:\n audio = createStream(FRIGHT_SOUND_URL);\n break;\n case EATEN_SOUND:\n audio = createStream(EATEN_SOUND_URL);\n break;\n case SIREN_1:\n audio = createStream(SIREN_1_URL);\n break;\n case SIREN_2:\n audio = createStream(SIREN_2_URL);\n break;\n case SIREN_3:\n audio = createStream(SIREN_3_URL);\n break;\n case SIREN_4:\n audio = createStream(SIREN_4_URL);\n break;\n case SIREN_5:\n audio = createStream(SIREN_5_URL);\n break;\n case STARTUP:\n audio = createStream(STARTUP_URL);\n break;\n case BLUE_PORTAL_SOUND:\n audio = createStream(BLUE_PORTAL_SOUND_URL);\n break;\n case RED_PORTAL_SOUND:\n audio = createStream(RED_PORTAL_SOUND_URL);\n break;\n }\n audio.setName(sound);\n return audio;\n }", "public void StartSound(ISoundOrigin origin, sfxenum_t sound_id);", "public synchronized boolean getEnabled() {\r\n return this.soundOn;\r\n }", "public static Mixer getPrimaryCaptureDriver() {\r\n\t\t//final String searchName = \"Microphone (Realtek High Defini\";\r\n\t\t//final String searchName = \"Primary Sound Capture Driver\";\r\n\t\tfinal String searchName = \"Stereo Mix (Realtek High Defini\";// this one for loopback\r\n\t\tMixer.Info infos[] = AudioSystem.getMixerInfo();\r\n\t\t\r\n\t\tfor(Mixer.Info i : infos) {\r\n\t\t\tif(i.getName().equals(searchName)) {\r\n\t\t\t\tif(DEBUG) {\r\n\t\t\t\t\tSystem.out.println(\"Found primary sound capture driver: \" + i);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn AudioSystem.getMixer(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(DEBUG) {\r\n\t\t\tSystem.out.println(\"Failed to find sound capture driver, name=\\\"\" + searchName + \"\\\".\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "boolean playing() {\n return _playing;\n }", "public String getAudioId() {\n\t\tif (mPlayPos >= 0) {\n\t\t\treturn mPlayList[mPlayPos].getId();\n\t\t}\n\t\treturn null;\n\t}", "public boolean tick() {\n\t\tfloat volume = am.getStreamVolume(AudioManager.STREAM_MUSIC);\n\t\tfloat max = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC);\n\t\tvolume = volume/max;\n\t\t\n\t\tif(loaded) {\n\t\t\ttickSound.play(soundId, volume, volume, 1, 0, 1f);\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "protected boolean isPlaying(MediaController controller) {\n if (controller == null) {\n return false;\n }\n\n PlaybackState state = controller.getPlaybackState();\n if (state == null) {\n return false;\n }\n\n return (state.getState() == PlaybackState.STATE_PLAYING);\n }", "public void foodSound(){\n if (enableSound){\r\n\t clip.play();\r\n }\r\n\t\t\r\n\t}", "private FunctionSoundD getFunctionSound() {\n\t\tif (functionSound == null) {\n\t\t\ttry {\n\t\t\t\tfunctionSound = new FunctionSoundD();\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.error(\"Problem in getFunctionSound(): \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn functionSound;\n\t}", "private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}", "public Sound getSoundDying() {\n return soundDying;\n }", "void play(final Context context, final int soundId, final OnCompletionPlayNextListener playNextListener);", "Shape whoIsPlaying();", "public static boolean processSounds() {\r\n\t\t//Save the sounds selected.\r\n\t\tsaveSoundSelections();\r\n\t\t\r\n\t\t//Create the sounds array list.\r\n\t\tcreateSoundsArrList();\r\n\r\n\t\treturn true;\r\n\t}", "public AudioDescriptor getAudioDescriptor();", "public AudioPlayer getAudioPlayer() {\n if (audioPlayer == null) {\n try {\n audioPlayer = getDefaultAudioPlayer();\n } catch (InstantiationException e) {\n e.printStackTrace();\n }\n }\n\treturn audioPlayer;\n }", "@Override\n public void playSound(int soundId) {\n\n }", "public boolean isDeDuplicateAudio() {\n String deDuplicateAudio = getDbProperties().getProperty(Constants.DE_DUPLICATE_AUDIO);\n return deDuplicateAudio != null && deDuplicateAudio.equalsIgnoreCase(\"true\");\n }", "private void playHintAudio() {\n AudioManager audioManager = (AudioManager)getContext().getSystemService(Context.AUDIO_SERVICE);\n int mode = audioManager.getRingerMode();\n Log.d(TAG,\"mode = \" + mode);\n\n if(mode != AudioManager.RINGER_MODE_SILENT && mode != AudioManager.RINGER_MODE_VIBRATE) {\n // prize modify for bug 44603 by zhaojian 20171205 start\n mMediaPlayer = MediaPlayer.create(getContext(),R.raw.hb_sound2);\n Log.d(\"debug\",\"isNotifySound = \" + getConfig().isNotifySound());\n if(getConfig().isNotifySound()) {\n mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\n @Override\n public void onPrepared(MediaPlayer mp) {\n mp.start();\n }\n });\n mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mp) {\n mp.release();\n }\n });\n mMediaPlayer.start();\n }\n // prize modify for bug 44603 by zhaojian 20171205 end\n }\n }", "public MovieTag streamSound() throws IOException, DataFormatException {\r\n return decoder.streamSound();\r\n\r\n }" ]
[ "0.7130124", "0.68660384", "0.6765177", "0.6748345", "0.6720754", "0.66812646", "0.6475881", "0.6446057", "0.6433252", "0.6399853", "0.63906795", "0.6333736", "0.6205986", "0.6161118", "0.61141104", "0.6111696", "0.610141", "0.608712", "0.6017474", "0.6012562", "0.60104537", "0.59992975", "0.59879565", "0.59609556", "0.59381044", "0.59258133", "0.5897066", "0.5889142", "0.58823496", "0.58613986", "0.5858117", "0.58547586", "0.58325624", "0.5830899", "0.58170545", "0.5815393", "0.5783345", "0.5764529", "0.57445604", "0.5728571", "0.57274574", "0.57170457", "0.5716408", "0.5697241", "0.5687202", "0.5681516", "0.56653583", "0.56652105", "0.56579983", "0.56566733", "0.56477225", "0.56461865", "0.5644068", "0.56297475", "0.5620415", "0.56119436", "0.5608773", "0.56061655", "0.5604616", "0.5578523", "0.5567426", "0.55631757", "0.5552668", "0.55510503", "0.55426383", "0.5536439", "0.5531048", "0.5525367", "0.55221623", "0.5494936", "0.5494567", "0.5482568", "0.54716235", "0.54617906", "0.54575723", "0.5455617", "0.5437228", "0.5436919", "0.5425616", "0.5413322", "0.540576", "0.53974384", "0.5396895", "0.53964007", "0.5388112", "0.5372162", "0.53668207", "0.53496224", "0.5343241", "0.5342348", "0.533768", "0.5330931", "0.53177994", "0.5310867", "0.5287152", "0.52646345", "0.5253135", "0.5242397", "0.52373725", "0.52331984" ]
0.6518895
6
Closes down the sequencer (and any playing sequence).
public void close ( ) { if ( this.currentMidi != null ) { this.currentMidi.stop ( ); this.sequencer.removeMetaEventListener ( this.currentMidi ); } if ( this.sequencer.isRunning ( ) ) this.sequencer.stop ( ); this.sequencer.close ( ); this.sequencer = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n\t\tif (sequencer == null) return;\n\n\t\tsequencer.stop();\n\t}", "public void close() {\n\ttry {\n\t midi.getTransmitter().close();\n\t midi.close();\n\t} catch ( MidiUnavailableException e ) {\n\t // Nothing.\n\t}\n }", "public void closeMidi() {\n\t\tjDevice.close();\n\t}", "public void close() {\n/* 325 */ synchronized (this.mixer) {\n/* 326 */ if (isOpen()) {\n/* */ \n/* */ \n/* */ \n/* 330 */ setOpen(false);\n/* */ \n/* */ \n/* 333 */ implClose();\n/* */ \n/* */ \n/* 336 */ this.mixer.close(this);\n/* */ } \n/* */ } \n/* */ }", "public void close() {\n\t\tthis.isLoop = false;\n\t\tplayer.close();\n\t\tthis.interrupt();\n\t}", "public static void stopMidi()\r\n {\r\n if (sequencer!=null)\r\n {\r\n sequencer.stop();\r\n }\r\n }", "public void stopPlaying() {\n seq.stop();\n }", "public void close()\n {\n done = true;\n wakeup();\n // TODO: if needed, use a CountdownLatch to sync...\n }", "public void close() {\n\t\tcurrentClip.stop();\n\t\tcurrentClip.close();\n\t\tisPlaying = false;\n\t}", "public void closeDown() {\n\t\tdispose();\n\n\t}", "public void shutDown(){\n sequence128db.shutDown();\n }", "public void close() {\n this.consoleListenerAndSender.shutdownNow();\n this.serverListenerAndConsoleWriter.shutdownNow();\n try {\n this.getter.close();\n this.sender.close();\n this.socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override public void close() {\n\t\tthis.timer.cancel();\n\t\tthis.motionStream.removeListener(this);\n\t}", "public synchronized void close() {\n try {\n audioInputStream.close();\n } catch (IOException ioe) {\n System.err.println(\"Problem while closing the audioInputSteam\");\n }\n\n }", "private void close(){\n try {\n socket.close();\n objOut.close();\n line.close();\n audioInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void close(){\n this.println(\"Library has been closed! See you tomorrow morning!!\");\n this.openOrNot = false;\n this.searchOrNot = false;\n this.serveOrNot = false;\n }", "private void close() {\r\n this.dispose();\r\n MainClass.gamesPlayed++;\r\n Examples2018.menu();\r\n }", "public void close() {\n socket.close();\n game.close();\n this.running = false;\n }", "public void close(){\n if(this.alreadyPlayingService != null){\n try{\n this.alreadyPlayingService.close();\n }\n catch(Exception ex){\n Log.e(DictationModel.class.getSimpleName(), \"Failed to close\", ex);\n }\n }\n this.closed.set(true);\n }", "public void close()\n {\n try\n {\n stop();\n }\n catch (IOException ioex)\n {\n logger.error(\"Failed to stop \" + getClass().getSimpleName(), ioex);\n }\n }", "public void close() {\r\n\t\tflush();\r\n\t\ttry {\r\n\t\t\tdos.close();\r\n\t\t\ts.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void close() {\n\t\ttry {\n\t\t\texecutorService.shutdownNow();\n\t\t\toutput.close();\n\t\t\tinput.close();\n\t\t\tconnection.close();\n\t\t} catch (IOException ioe) {\n\t\t\tMain.LOGGER.log(Level.SEVERE, \"Error closing GameHandler\", ioe);\n\t\t} \n\t}", "public void dispose() {\n\t\tmusic.dispose();\n\t}", "void close() throws ToyPadException;", "public void close()\n\t{\n\t\ttext = null;\n\t}", "private void close() {\n\t\ttry {\n\t\t\tsendCommand(\"end\\n\");\n\t\t\tout.close();\n\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (MossException e) {\n\t\t} catch (IOException e2) {\n\t\t} finally {\n\t\t\tcurrentStage = Stage.DISCONNECTED;\n\t\t}\n\n\t}", "public void close() {\n this.output = null;\n }", "public static void close(){\r\n\t\ttry {\r\n\t\t\tserialPort.close();\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\tcatch (Exception e){\r\n\t\t\tSystem.out.println(\" error in close = \" + e.getMessage());\r\n\t\t}\r\n\t}", "public void close() {\n System.exit(0);\n }", "public void close() {\n\t\tif (this.luaState != 0) {\n\t\t\tLuaStateManager.removeState(stateId);\n\t\t\t_close(luaState);\n\t\t\tthis.luaState = 0;\n\t\t}\n\t}", "public void close(){\n \tisClosed = true;\n \tClawAct.set(true);\n\t\tRobot.oi.armRumble(RUMBLE_DURATION);\n }", "public void stop() {\n\t\tthis.close(this.btcomm);\n\t}", "public void stop() {\n\t\tplaybin.stop();\n\t}", "void close(){\r\n // check precondition: device must be opened\r\n if (!checkOpen()){\r\n return;\r\n }\r\n // turn off antenna and LED\r\n cardReader.power(handle, (byte)0);\r\n cardReader.close(handle);\r\n handle = -1;\r\n message = \"Device closed\";\r\n }", "public void close() {\n this.sipStack = null;\n }", "public void close() {\n helperAngkot.close();\n }", "public void close() {\r\n\t}", "public void close() {\t\t\n\t}", "public void closeTestGenerator() {\n\t\ttry {\n\t\t\ttutorControlFrame.dispose();\n\t\t\tTutorControlGui tutorControl = new TutorControlGui();\n\t\t\ttutorControl.showDatabase();\n\t\t} catch(Exception e) {\n\t\t\tshowMessage(\"Could not update Databases.\");\n\t\t}\n\t}", "private void close() {\r\n closeListener.run();\r\n }", "public void close() {\n if (cleanup != null) {\n cleanup.disable();\n }\n if (isOpen()) {\n forceClose();\n }\n }", "public void close() {\n\t}", "public void stop() {\n\t\tmusic.stop();\n\t}", "public void close() {\n\t\t}", "public void Close() { // in {FF} Arduino\r\n if (SpeakEasy) System.out.println(\"F%%F/Close..\"); // SpeakEasy=true\r\n if (GoodOpen) try {\r\n surrealPort.closePort();\r\n DoMore = null;\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n GoodOpen = false;\r\n }", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "public void exit() {\r\n\t\tdispose();\r\n\t}", "public void close() {\n\t\t\r\n\t}", "public void close()\n\t\t{\n\t\t}", "public synchronized void close()\n {\n if (open) {\n open = false;\n reset();\n line.close();\n }\n }", "public void deallocate() {\n\tsetLoaded(false);\n\n if (!externalAudioPlayer) {\n if (audioPlayer != null) {\n audioPlayer.close();\n audioPlayer = null;\n }\n }\n \n\tif (!externalOutputQueue) {\n\t outputQueue.close();\n\t}\n }", "public void close()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.deactivateParticipant(ourKey);\r\n }", "public void close() {\n\n\t}", "public void close() {\n\n\t}", "public synchronized void close() {\n if (serialPort != null) {\n try {\n output.close();\n input.close();\n serialPort.removeEventListener();\n serialPort.close();\n connected = false;\n if (log != null) {\n log.close();\n log = null;\n }\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n\n DisconnectedRS232Event event = new DisconnectedRS232Event();\n RS232ConnectionAPI.getInstance().notifyObservers(event);\n\n }\n }", "public void Exit(){\n\t\t\t\tclose();\n\t\t\t}", "protected void end() {\n \t//claw.close();\n }", "public void stop() {\n\t\tsound.stop();\n\t}", "@Override\n\tpublic void stop() {\n\t\tif (player != null) {\n\t\t\tplayer.close();\n\n\t\t\tpauseLocation = 0;\n\t\t\tsetSongTotalLenght(0);\n\t\t}\n\t}", "public void close() {\n this.octaveExec.close();\n }", "public void close() {\n trap.run();\n }", "public void close() {\n close = true;\n }", "public void close() {\n btClose().push();\n }", "private void close() {\n\t\t\n//\t\tif (handlingEvent) { return; } // hopefully this is never used\n\t\t\n\t\tif (serialPort != null) {\n\t\t\tUtil.debug(\"close port: \" + serialPort.getName() + \" baud: \" + serialPort.getBaudRate(), this);\n\t\t\t// serialPort.removeEventListener();\n\t\t\tserialPort.close();\n\t\t\tserialPort = null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tif (inputStream != null) inputStream.close();\n\t\t} catch (Exception e) {\n\t\t\tUtil.log(\"input stream close():\" + e.getMessage(), this);\n\t\t}\n\t\ttry {\n\t\t\tif (outputStream != null) outputStream.close();\n\t\t} catch (Exception e) {\n\t\t\tUtil.log(\"output stream close():\" + e.getMessage(), this);\n\t\t}\n\t\t\n\t\tbuffer = null;\n\t\t// Util.delay(TIMEOUT);\n\n\t}", "public void release() {\n stop();\n\n Intent i = new Intent(AudioEffect.ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION);\n i.putExtra(AudioEffect.EXTRA_AUDIO_SESSION, getAudioSessionId());\n i.putExtra(AudioEffect.EXTRA_PACKAGE_NAME, mContext.getPackageName());\n mContext.sendBroadcast(i);\n\n mPlayer.release();\n mWakeLock.release();\n }", "void close(){\n try{\n debugWriter.write(\"quit\\n\");\n debugWriter.flush();\n Thread.sleep(100);\n debugWriter.write(\"yes\\n\");\n debugWriter.flush();\n Thread.sleep(100);\n debugWriter.close();\n debugReader.kill();\n debugReader.interrupt();\n debugReader.kill();\n debugger.destroy();\n }catch(Exception e){\n System.out.println(\"Close exception\");\n //Eat it\n }\n }" ]
[ "0.7060098", "0.67504877", "0.65011764", "0.64326924", "0.64293396", "0.6407728", "0.6221913", "0.61174875", "0.60403544", "0.60277575", "0.59954756", "0.59854066", "0.59161025", "0.5915604", "0.5892547", "0.58898896", "0.58796793", "0.5832564", "0.57668483", "0.57635754", "0.57625324", "0.5761069", "0.5743254", "0.57172894", "0.5708351", "0.5707644", "0.5690309", "0.568994", "0.5689066", "0.56850433", "0.5669325", "0.56440395", "0.56110364", "0.560633", "0.559986", "0.55906606", "0.5577309", "0.5575549", "0.5572403", "0.55723554", "0.5561106", "0.5546597", "0.5546007", "0.55448294", "0.55414045", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.5538119", "0.55302036", "0.5516508", "0.55160946", "0.5513297", "0.55111766", "0.550087", "0.54992884", "0.54992884", "0.5497679", "0.5493715", "0.54907066", "0.548929", "0.5484396", "0.54790187", "0.5473755", "0.5472345", "0.54670644", "0.54620904", "0.5458917", "0.5458743" ]
0.77964073
0
/ The text input field Constructors Constructor
public DialogPrompt(String title) { value = new PromptValueString("",""); initUI(title,10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TextInput() {\n // initialise instansvariables\n }", "public TextFieldFuncion(){}", "public TextField(String text){\n super(text);\n this.defaultText = text;\n }", "public RTextField() {\r\n }", "public TextInput(WebElement element) {\n super(element);\n }", "public TextField(){\n super();\n }", "public UserInputField() {\n }", "public JTextField(String text) {\n this(null, text, 0);\n }", "public TextFieldExt() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "public TextField(String paramString) throws HeadlessException {\n/* 167 */ this(paramString, (paramString != null) ? paramString.length() : 0);\n/* */ }", "public TextInputList() {\n\n\t}", "public TextBox() {\n\t\tsuper();\n\t\ttyping = false;\n\t\ttext = \"\";\n\t\tsize = new Vector();\n\t\tmaxLength = -1;\n\t\tfont = null;\n\t\tcursorTimer = System.currentTimeMillis();\n\t\tcursorShow = true;\n\t\teditable = true;\n\t}", "public ATextField(String value) {\n super();\n if (textField != null) {\n textField.setValue(value);\n }// end of if cycle\n }", "public AbstractEntry(String text)\n {\n this(new JTextField(text), false, false);\n }", "public JTextField() {\n this(null, null, 0);\n }", "protected AbstractEntry(JTextField textField)\n {\n this(textField, false, false);\n }", "public TextField() throws HeadlessException {\n/* 154 */ this(\"\", 0);\n/* */ }", "private TextField initHBoxTextField(HBox container, String initText, boolean editable) {\n TextField tf = new TextField();\n tf.setText(initText);\n tf.setEditable(editable);\n container.getChildren().add(tf);\n return tf;\n }", "public Text()\n {\n super();\n initialize();\n }", "public TextBox getTextTB () {\nif (textTB == null) {//GEN-END:|38-getter|0|38-preInit\n // write pre-init user code here\ntextTB = new TextBox (\"Lyric\", \"None\", 500, TextField.ANY | TextField.UNEDITABLE);//GEN-BEGIN:|38-getter|1|38-postInit\ntextTB.addCommand (getBackCommand1 ());\ntextTB.addCommand (getStartC ());\ntextTB.setCommandListener (this);\ntextTB.setInitialInputMode (\"UTF8\");//GEN-END:|38-getter|1|38-postInit\n // write post-init user code here\n}//GEN-BEGIN:|38-getter|2|\nreturn textTB;\n}", "private Input()\n {\n }", "public Text(String text)\n {\n super(text);\n initialize();\n }", "public TextBox() {\n font = new Font(fontname, fontstyle, fontsize);\n }", "private void createTextField(){\n Font font = new Font(\"Verdana\", Font.BOLD,3*getGameContainer().getWidth()/100);\n TrueTypeFont ttf = new TrueTypeFont(font,true);\n int fieldWidth = getGameContainer().getWidth()/3;\n int fieldHeight = getGameContainer().getHeight()/18;\n nameField = new TextField(getGameContainer(), ttf,43*getGameContainer().getWidth()/100,24*getGameContainer().getHeight()/100, fieldWidth, fieldHeight);\n nameField.setBackgroundColor(Color.white);\n nameField.setTextColor(Color.black);\n passwordField= new TextField(getGameContainer(), ttf,43*getGameContainer().getWidth()/100,32*getGameContainer().getHeight()/100, fieldWidth, fieldHeight);\n passwordField.setBackgroundColor(Color.white);\n passwordField.setTextColor(Color.black);\n }", "INPUT createINPUT();", "private TextField initTextField(Pane container, String initText, boolean editable) {\n TextField tf = new TextField();\n tf.setText(initText);\n tf.setEditable(editable);\n container.getChildren().add(tf);\n return tf;\n }", "public EditorTxt() {\n initComponents();\n }", "protected JTextField makeTextField() {\n JTextField textField = new JTextField(textFieldWidth);\n textField.setFont(new Font(QuizAppUtilities.UI_FONT, Font.PLAIN, 24));\n\n return textField;\n }", "Input createInput();", "public TextBoxCommentary(final GraphicView parent, String text)\n\t{\n\t\tsuper(parent);\n\n\t\tinit(text);\n\t}", "public HintTextField(String hint) {\n\t\t\thint_ = hint;\n\t\t}", "public AmountTextField() {\n initComponents();\n setFormatterFactory(formatterFactory);\n setInputVerifier(verifier);\n }", "public Textbox(SelectorType selectorType, String selectorValue) {\n\t\tsuper(selectorType, selectorValue);\n\t}", "public AbstractRestrictiveTextField()\n {\n addFocusListener(this);\n }", "private void createTextField() {\n textField = new TextField(getString());\n textField.setAlignment(Pos.CENTER);\n textField.focusedProperty().addListener(\n (observable, oldValue, newValue) -> {\n if (!newValue) {\n Integer priority = null;\n if (!(textField.getText() == null || textField.getText().trim().isEmpty())) {\n try {\n priority = Integer.parseInt(textField.getText());\n commitEdit(priority);\n }\n catch (NumberFormatException e) {\n if (Objects.equals(textField.getText(), \"-\") && !popUpIsActive) {\n commitEdit(null);\n }\n else {\n addFormError(textField, \"{NanError}\");\n }\n }\n }\n }\n });\n\n textField.setOnKeyReleased(t -> {\n if (t.getCode() == KeyCode.ENTER) {\n Integer priority = null;\n if (!(textField.getText() == null || textField.getText().trim().isEmpty())) {\n try {\n priority = Integer.parseInt(textField.getText());\n commitEdit(priority);\n }\n catch (NumberFormatException e) {\n if (Objects.equals(textField.getText(), \"-\")) {\n commitEdit(null);\n }\n else {\n addFormError(textField, \"{NanError}\");\n }\n }\n }\n else {\n commitEdit(null);\n }\n }\n if (t.getCode() == KeyCode.ESCAPE) {\n cancelEdit();\n }\n });\n }", "public Text getTextControl(Composite parent) {\n if (textField == null) {\n textField = new Text(parent, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\n textField.setFont(parent.getFont());\n switch (validateStrategy) {\n case VALIDATE_ON_KEY_STROKE:\n textField.addKeyListener(new KeyAdapter() {\n\n /* (non-Javadoc)\n * @see org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent)\n */\n public void keyReleased(KeyEvent e) {\n valueChanged();\n }\n });\n\n break;\n case VALIDATE_ON_FOCUS_LOST:\n textField.addKeyListener(new KeyAdapter() {\n public void keyPressed(KeyEvent e) {\n clearErrorMessage();\n }\n });\n textField.addFocusListener(new FocusAdapter() {\n public void focusGained(FocusEvent e) {\n refreshValidState();\n }\n\n public void focusLost(FocusEvent e) {\n valueChanged();\n clearErrorMessage();\n }\n });\n break;\n default:\n Assert.isTrue(false, \"Unknown validate strategy\");//$NON-NLS-1$\n }\n textField.addDisposeListener(new DisposeListener() {\n public void widgetDisposed(DisposeEvent event) {\n textField = null;\n }\n });\n if (textLimit > 0) {//Only set limits above 0 - see SWT spec\n textField.setTextLimit(textLimit);\n }\n } else {\n checkParent(textField, parent);\n }\n return textField;\n }", "public TextConstruct(String name)\n\t{\n super(name);\n this.type = ContentType.TEXT;\n\t}", "public TextField getTextField() {\n if (textField == null) {//GEN-END:|27-getter|0|27-preInit\n // write pre-init user code here\n textField = new TextField(\"Num\\u00E9ro de carte\", null, 32, TextField.ANY);//GEN-LINE:|27-getter|1|27-postInit\n // write post-init user code here\n }//GEN-BEGIN:|27-getter|2|\n return textField;\n }", "static Source newTextSource(String text) {\n return newStringSource(text, \"<input>\");\n }", "public static JTextField createTextField() {\n return createTextField(20);\n }", "public TextTester(){}", "public CustomTextInputLayout(Context context, AttributeSet attrs) {\n super(context, attrs);\n }", "private TextField initHBoxTextField(GridPane container, int size, String initText, boolean editable, int col, int row, int colSpan, int rowSpan) {\n TextField tf = new TextField();\n tf.setPrefColumnCount(size);\n tf.setText(initText);\n tf.setEditable(editable);\n container.add(tf, col, row, colSpan, rowSpan);\n return tf;\n }", "private void getTextFromInput() {\n firstName = firstNameField.getText();\n lastName = lastNameField.getText();\n age = ageField.getText();\n email = emailField.getText().toLowerCase();\n }", "public TextArea()\n {\n super(AreaId.TEXT, new AsciiByteFormatter());\n }", "public InputBox(Context context, String title, String message, String errorMessage) {\n super(context, title, message);\n input = new EditText(context);\n //Defaults positive button to \"Enter\"\n this.positiveLabel = \"Enter\";\n this.errorMessage = errorMessage;\n }", "public TextButton (String text)\n { \n this(text, 20); \n }", "public static TextField createTextField() {\t\t\n\t\tTextField text = new TextField();\n\t\ttext.setPrefWidth(200);\n\t\ttext.setPrefHeight(30);\n\t\treturn text;\n\t}", "public TextFieldPage() {\n initView();\n }", "public DatosTextFieldPanel() {\n initComponents();\n }", "public StringEditor() {\n\t\tsuper();\n\t\tmEditor = new JTextField();\n\t\t\n\t}", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public JHistoryTextField()\n {\n this(true);\n }", "public TextFlow() {\n this(new String());\n }", "public TextBoxCommentary(final GraphicView parent, String text, GraphicComponent component)\n\t{\n\t\tsuper(parent);\n\n\t\tif (component == null)\n\t\t\tthrow new IllegalArgumentException(\"component is null\");\n\n\t\tfinal Point middleTextBox = new Point(bounds.x + bounds.width / 2, bounds.y + bounds.height / 2);\n\n\t\tfinal Point middleComponent = new Point(bounds.x + bounds.width / 2, bounds.y + bounds.height / 2);\n\n\t\tif (LineCommentary.checkCreate(this, component, true))\n\t\t\tparent.addLineView(new LineCommentary(parent, this, component, middleTextBox, middleComponent, true));\n\n\t\tinit(text);\n\t}", "public PromptTextUI(TextUI delegate)\n/* */ {\n/* 145 */ this.delegate = delegate;\n/* */ }", "public CustomTextInputLayout(Context context, AttributeSet attrs, int defStyleAttr) {\n super(context, attrs, defStyleAttr);\n }", "protected AbstractEntry(JTextField textField, boolean isMandatory, boolean isReadonly)\n {\n this.field = textField;\n\n mandatory = isMandatory;\n readonly = isReadonly;\n\n initialize();\n }", "public static void main(String[] args) {\n\t\t TextInput input = new NumericInput();\n\t\t input.add('1');\n\t\t input.add('a');\n\t\t input.add('0');\n\t\t System.out.println(input.getValue());\n\n}", "public TextFieldSkin(final TextField textField) {\n this(textField, /*(textField instanceof PasswordField)\n ? new PasswordFieldBehavior((PasswordField)textField)\n :*/ new TextFieldBehavior(textField));\n }", "public void init() {\n super.init();\n\n setDefaultInputNodes(1);\n setMinimumInputNodes(1);\n setMaximumInputNodes(1);\n\n setDefaultOutputNodes(1);\n setMinimumOutputNodes(1);\n setMaximumOutputNodes(Integer.MAX_VALUE);\n\n String guilines = \"\";\n guilines += \"Input your text string in the following box $title value TextField\\n\";\n setGUIBuilderV2Info(guilines);\n\n }", "public TextField getSongTF () {\nif (songTF == null) {//GEN-END:|29-getter|0|29-preInit\n // write pre-init user code here\nsongTF = new TextField (\"L\\u00E5tnamn\", null, 32, TextField.ANY);//GEN-LINE:|29-getter|1|29-postInit\n // write post-init user code here\n}//GEN-BEGIN:|29-getter|2|\nreturn songTF;\n}", "public String getTextInput(){\r\n\t\treturn textInput.getText();\r\n\t}", "public GitTextInputHandler(GitOperation operation, String argument) {\n super(operation, argument);\n }", "public CustomTextInputLayout(Context context) {\n super(context);\n }", "public Entry(String text) {\n this(GtkEntry.createEntry());\n setText(text);\n }", "public void testCtorIfTextFieldNull() {\n try {\n new EditBoxTrigger(null);\n fail(\"IllegalArgumentException is excpected because textField cannot be null.\");\n } catch (IllegalArgumentException e) {\n //success\n }\n }", "public JTextField(String text, int columns) {\n this(null, text, columns);\n }", "public DMXUserInput() {\n }", "@Override\n\tpublic void input(String text) {\n\t\t\n\t\tname = text;\n\t}", "public PanelInput() {\n initComponents();\n judul_1.setText(\"\");\n judul_2.setText(\"\");\n clear();\n }", "public TextBox(String id, String text, Vector position, Vector size, Font font, boolean editable, int maxLength) {\n\t\tsuper(id, -5, position);\n\t\t\n\t\tthis.text = text;\n\t\tthis.size = new Vector(size);\n\t\tthis.font = font;\n\t\tthis.editable = editable;\n\t\tthis.typing = false;\n\t\tthis.maxLength = maxLength;\n\t\tthis.cursorTimer = System.currentTimeMillis();\n\t\tthis.cursorShow = true;\n\t}", "private TextUtil()\r\n {\r\n }", "private NameBuilderString(String text) {\r\n\t\t\tthis.text = Objects.requireNonNull(text);\r\n\t\t}", "public PhoneTextField()\r\n {\r\n super();\r\n setText(\"000-000-0000\");\r\n\r\n phoneNumber = Pattern.compile(\"^\\\\d{3}-\\\\d{3}-\\\\d{4}$\");\r\n\r\n //Adds listener to check when focus lost\r\n focusedProperty().addListener((o, oldV, newV) -> OnChanged(newV));\r\n }", "public void textBoxAction( TextBoxWidgetExt tbwe ){}", "public TextFieldFuncion(String texto,Color color){\n\t\tsuper(texto);\n\t\tthis.texto = texto;\n\t\tsetForeground(Color.GRAY);\n\t\tsetBorder(BorderFactory.createLineBorder(color,1));\n\t\taddFocusListener(this);\n\t\taddKeyListener(new KeyEventText());\n\t}", "public TextAreaEntropy(String text) {\r\n super(text);\r\n initComponents();\r\n }", "public TextBoxWithAttributes() {\r\n\t\tswmErrorStyleHelper = new SwmErrorStyleHelper(this);\r\n\t}", "public void setInput(String input) { this.input = input; }", "void createTextField(){\n TextField.TextFieldStyle textFieldStyle = skin.get(TextField.TextFieldStyle.class);\n textFieldStyle.font.getData().scale(2*FONT_SCALE);\n\n field = new TextField(\"\", btnSkin);\n field.setPosition(100, 400);\n field.setSize(500,100);\n field.setStyle(textFieldStyle);\n\n stageC.addActor(field);\n }", "public FormField(String variable) {\n this.variable = variable;\n }", "public TextField getArtistTf () {\nif (artistTf == null) {//GEN-END:|28-getter|0|28-preInit\n // write pre-init user code here\nartistTf = new TextField (\"Artist/gruppnamn\", null, 32, TextField.ANY);//GEN-LINE:|28-getter|1|28-postInit\n // write post-init user code here\n}//GEN-BEGIN:|28-getter|2|\nreturn artistTf;\n}", "private JTextField initializeMessageField() {\r\n\t\t// create the message field.\r\n\t\tmessageField = new JTextField();\r\n\t\treturn messageField;\r\n\t}", "public InsertTcFieldHandler(String text, String switches) {\n mFieldText = text;\n mFieldSwitches = switches;\n }", "private JTextField getJTextField1() {\r\n\t\tif (jTextField1 == null) {\r\n\t\t\tjTextField1 = new JTextField();\r\n\t\t\tjTextField1.setBounds(new Rectangle(243, 84, 143, 19));\r\n\t\t\tjTextField1.addKeyListener(new KeyAdapter()\r\n\t\t\t{\r\n\t\t\t\t public void keyTyped(KeyEvent e)\r\n\t\t\t\t {\r\n\t\t\t\t\t // Verificar si la tecla pulsada no es un digito\r\n\t\t\t\t\t char caracter = e.getKeyChar();\r\n\t\t\t\t\t if(((caracter < '0') ||\r\n\t\t\t\t\t\t\t (caracter > '9')) &&\r\n\t\t\t\t\t\t\t (caracter != KeyEvent.VK_BACK_SPACE))\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t e.consume(); // ignorar el evento de teclado\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t //Controlar el largo del text\r\n\t\t\t\t String s = jTextField1.getText();\r\n\t\t\t\t int n=s.length();\r\n\t\t\t\t if(n >= 10){\r\n\t\t\t\t \t e.consume(); // ignorar el evento de teclado\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\t});\r\n\t\t}\r\n\t\treturn jTextField1;\r\n\t}", "protected SelectionText input() {\n return inputter;\n }", "public void setInputText(String text) {\n if (mTxtContent != null) {\n mTxtContent.setText(text);\n }\n }", "public DQLEditorInput()\n\t{\n\n\t\tsuper();\n\t\tsetStorage(new DQLStorage(this));\n\t}", "public SrtEditorPanel_txtFieldOut()\n {\n initComponents();\n }", "private void addNameInput()\n {\n username = new JTextField();\n username.setName(\"username\");\n username.setSize(200, 30);\n username.setAction(new CreateUserAction());\n add(username);\n }", "private JTextField getJTextField3() {\r\n\t\tif (jTextField3 == null) {\r\n\t\t\tjTextField3 = new JTextField();\r\n\t\t\tjTextField3.setBounds(new Rectangle(243, 166, 143, 19));\r\n\t\t\tjTextField3.addKeyListener(new KeyAdapter()\r\n\t\t\t{\r\n\t\t\t\t public void keyTyped(KeyEvent e)\r\n\t\t\t\t {\r\n\t\t\t\t\t // Verificar si la tecla pulsada no es un digito\r\n\t\t\t\t\t char caracter = e.getKeyChar();\r\n\t\t\t\t\t if(((caracter < '0') ||\r\n\t\t\t\t\t\t\t (caracter > '9')) &&\r\n\t\t\t\t\t\t\t (caracter != KeyEvent.VK_BACK_SPACE))\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t e.consume(); // ignorar el evento de teclado\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t //Controlar el largo del text\r\n\t\t\t\t String s = jTextField3.getText();\r\n\t\t\t\t int n=s.length();\r\n\t\t\t\t if(n >= 8){\r\n\t\t\t\t \t e.consume(); // ignorar el evento de teclado\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\t});\r\n\t\t}\r\n\t\treturn jTextField3;\r\n\t}", "public TextUI() {\n rand = new Random(System.nanoTime());\n scan = new Scanner(System.in);\n }", "@Override\n public void onClick(View v) {\n String inputFieldText = ((TextView) findViewById(R.id.inputField)).getText().toString();\n\n // Set text to custom text, or if custom text is empty set to default hint\n if (inputFieldText.isEmpty()) {\n ((TextView) findViewById(R.id.text)).setText(\"Enter your OWN text!\");\n } else {\n ((TextView) findViewById(R.id.text)).setText(inputFieldText);\n }\n }", "public TextDisplay(){\n // Default values for all TextDisplays \n fontSize = 20.0f;\n fontColor = new Color(0, 0, 0);\n fieldWidth = 100;\n fieldHeight = 30;\n drawStringX = 0;\n drawStringY = 15;\n input = \"\";\n hasBackground = false;\n \n // TextDisplays' TextArea specifics\n borderWidth = 5;\n borderHeight = 5;\n borderColor = new Color(0, 0, 0, 128);\n backgroundColor = new Color (255, 255, 255, 128);\n }", "public InputView()\n\t{\n\t\tthis.layoutView();\n\t\tthis.registerButtons();\n\t}", "public MonitoringEditText(Context context)\n\t{\n\t\tsuper(context);\n\t}", "public Text(double x, double y, String text)\n {\n super(x, y, text);\n initialize();\n }", "public final void addTextField() {\n\t\taddDecoratorForBuiltInFormComponent(new TextField<>(\"textField\"), \"textFieldFragment\");\n\t}", "private MulticastInputUI()\n\t{\n\t}", "public TextProperties(final String inputText) throws IOException {\n this.inputText = inputText;\n setWordsAndEmoticons();\n setHasYellWords(hasCapDifferential(getWordsAndEmoticons()));\n }" ]
[ "0.819357", "0.77093893", "0.76183385", "0.75199777", "0.74370444", "0.73546284", "0.7252962", "0.70524627", "0.7024438", "0.7005606", "0.6916283", "0.69145554", "0.6888054", "0.6864273", "0.6809262", "0.67871493", "0.6751684", "0.6414852", "0.63965774", "0.63940746", "0.6389694", "0.637888", "0.62857604", "0.62704957", "0.62595814", "0.6258248", "0.6254125", "0.62077403", "0.61913097", "0.6188401", "0.618443", "0.61831", "0.61800146", "0.6152714", "0.6146558", "0.61452466", "0.6143275", "0.6131224", "0.6125856", "0.6111058", "0.608489", "0.60675585", "0.60638076", "0.60365283", "0.60028243", "0.5998617", "0.59922844", "0.59876746", "0.5987495", "0.5982764", "0.59735024", "0.59734094", "0.59697497", "0.5934354", "0.5917263", "0.5888096", "0.588333", "0.58742696", "0.58715624", "0.5871521", "0.5867863", "0.58613694", "0.5860415", "0.5849653", "0.5847935", "0.5841523", "0.58400786", "0.58217293", "0.5820363", "0.5798496", "0.579477", "0.5788244", "0.57796454", "0.57771343", "0.5756328", "0.5743802", "0.57291377", "0.57131666", "0.57104975", "0.5709193", "0.57018536", "0.5691271", "0.5688748", "0.56774557", "0.56766725", "0.5671909", "0.5668864", "0.56680566", "0.5663699", "0.56545687", "0.56444085", "0.5639291", "0.56292945", "0.5628028", "0.56215507", "0.56078875", "0.56053054", "0.55914474", "0.5587672", "0.5581841", "0.5577156" ]
0.0
-1
Data access & UI Get the prompt text input value
public PromptValue getValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPrompt(){ return _prompt ; }", "public String getInput() {\r\n return getText();\r\n }", "private String getAndClrInput(){\n\t\tString theReturn = userInput.getText();\n\t\tuserInput.setText(\"\");\n\t\treturn theReturn;\n\t}", "private void getTextFromInput() {\n firstName = firstNameField.getText();\n lastName = lastNameField.getText();\n age = ageField.getText();\n email = emailField.getText().toLowerCase();\n }", "public String readCommand() {\n sc = new Scanner(System.in);\n userInput = new TextField();\n return userInput.getText();\n }", "String askForData();", "String getUserInput();", "private static String getUserText()\n {\n\t// Reads the users input.\n\tBufferedReader optionReader = new BufferedReader(new InputStreamReader(System.in));\n\n\ttry\n\t {\n\t\treturn(optionReader.readLine());\n\t }\n\tcatch(Exception ex)\n\t {\n\t\treturn(null);\n\t }\n }", "protected void saveInput() {\r\n value = valueText.getText();\r\n }", "InputPromptTransmitter getInputPromptTransmitter();", "public String getString(String pPrompt) {\r\n\t\tSystem.out.println(pPrompt + \"\");\r\n\t\treturn input.nextLine();\r\n\t}", "public String getInput()\t\n\t{\t//start of getInput method\n\t\treturn inputMsg;\n\t}", "public String getTextInput(){\r\n\t\treturn textInput.getText();\r\n\t}", "public void userNameInput()\n {\n if(forgotPasswordModel.userExists(textBox1.getText())) {\n\n user = forgotPasswordModel.getUser(textBox1.getText());\n userName = false;\n secQuestion = true;\n String txt = \"Your secret question is: \" + user.getSecretQ();\n labelHeader.setText(txt);\n textBox1Label.setText(\"Answer\");\n textBox1.promptTextProperty().set(\"Security Question Answer\");\n textBox1.setText(\"\");\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setContentText(\"Username does not exist!\");\n alert.show();\n }\n }", "public String getPrompt(){\n\t\treturn getString(KEY_PROMPT);\n\t}", "String userInputFromTextArea();", "public String getPrompt() { return prompt; }", "String getTextValue();", "public static String getInputText(){\n\t\treturn textArea.getText();\n\t}", "public static String inputBox(String promptMsg) {\n return JOptionPane.showInputDialog(promptMsg);\n }", "String promptString();", "String getValueText();", "String getVariableInput() {\n return (variableInput.getText());\n }", "public String getUserInput() {\n\t\tString input;\n\t\tinput = this.console.next();\n\t\treturn input;\n\t}", "protected abstract void fillPromptText();", "private void promptForSomething() {\n userInputValue = prompt(\"Please enter something: \", true);\n System.out.println(\"Thank you. You can see your input by choosing the Display Something menu\");\n }", "String getInput();", "private static String getUserInput(String prompt){ \r\n Scanner in = new Scanner(System.in);\r\n System.out.print(prompt);\r\n return in.nextLine();\r\n }", "String getUserInput(String prompt) {\r\n System.out.print(prompt);\r\n try {\r\n return rdr.readLine();\r\n }\r\n catch (IOException ex) {\r\n return null;\r\n }\r\n }", "private void getUserInput() {\n getUserTextInput();\n getUserPhotoChoice();\n getUserRoomChoice();\n getUserBedroomsChoice();\n getUserBathroomsChoice();\n getUserCoownerChoice();\n getUserIsSoldChoice();\n getUserTypeChoice();\n mAmenitiesInput = Utils.getUserAmenitiesChoice(mBinding.chipGroupAmenities.chipSchool,\n mBinding.chipGroupAmenities.chipShop, mBinding.chipGroupAmenities.chipTransport,\n mBinding.chipGroupAmenities.chipGarden);\n }", "public String GetInput(JTextField textField, String text)\r\n {\r\n textField.selectAll();\r\n text = textField.getText();\r\n JOptionPane.showMessageDialog(this,\"<html><font size = 5>You enter: \\\"\"+ text+\"\\\"! \"\r\n +\"Please press \\\"OK\\\" to continue or press \\\"x\\\"\"\r\n + \" to exit</font></html>\");\r\n textField.setText(\"\");\r\n return text;\r\n }", "private String getInput(String prompt) throws IOException {\n System.out.print(prompt);\n BufferedReader in = new BufferedReader(\n new InputStreamReader(System.in));\n return in.readLine();\n }", "public String getUserInput(String prompt) {\n Scanner scanner = new Scanner(System.in);\n\n // prompt for the user's name\n System.out.print(prompt);\n\n // get their input as a String\n String userInput = scanner.next();\n\n return userInput;\n }", "public String getValue_txt_Pick_Up_Text(){\r\n\t\treturn txt_Pick_Up_Text.getAttribute(\"value\");\r\n\t}", "public String getPrompt() {\n return prompt;\n }", "public String getPromptText(){\n\t\tString textPrev = text.substring(0, pointerPos);\n\t\tString textAfter =\"\";\n\t\tif(pointerPos < text.length() -1)\n\t\t\ttextAfter = text.substring(pointerPos+1,text.length());\n\t\tString str = textPrev.concat(textAfter);\n\t\tstr = str.trim().replaceAll(\" +\", \" \");\n\t\treturn (str);\n\t}", "protected SelectionText input() {\n return inputter;\n }", "private static String inputString() {\n Scanner userInput = new Scanner(System.in);\n System.out.print(\"Insert text: \");\n String inputText = userInput.nextLine();\n return inputText;\n }", "public String getPrompt() {\r\n\t\treturn \"oui/non\";\r\n\t}", "public void getGamerInput() {\n\t\ttry {\n\t\t\tsCurrentCharInput = String.format(\"%s\", (consoleInput.readLine())).toUpperCase(Locale.getDefault());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/* ************************************* */\n\t\tconsoleLog.println(\" \");\n\t\t// System.out.println(\" Quit readline \");\n\t\t/* ************************************* */\n\t\t// if (sCurrentCharInput.length() == 0)\n\t\t// continue;\n\n\t\t// if (sCurrentCharInput.contains(sAskedWord))\n\t\t// continue;\n\n\t}", "public String getText_txt_Pick_Up_Text(){\r\n\t\treturn txt_Pick_Up_Text.getText();\r\n\t}", "public String getText(){\n return input.getText().toString();\n }", "private String selectString(String prompt) {\n System.out.println(\"\\n\" + prompt);\n return input.next();\n }", "public void onClick(DialogInterface dialog, int id) {\n promptName = (userInput.getText()).toString();\n if(promptName==null || promptName.equals(\"\"))\n {\n starterPrompt();\n }\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "public String getInputUser() {\n return inputUser;\n }", "public Prompt getPrompt() {\n return prompt;\n }", "private static int getIntFromUser(String prompt)\n\t {\n\t System.out.print(prompt); // Prompt user to enter input value\n\t return input.nextInt(); // Read and return user's response\n\t }", "private void aplicarTextPrompt() {\n TextPrompt textPrompt = new TextPrompt(\"jdbc:mysql://localhost:3306/mydb\", urlJTF);\n TextPrompt textPrompt1 = new TextPrompt(\"root\", usernameJTF);\n TextPrompt textPrompt2 = new TextPrompt(\"*********\", passwordJPF);\n }", "private void getUserTextInput() {\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n mZipcodeInput = Integer.parseInt(mBinding.fragmentSearchZipcodeTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n mCityInput = mBinding.fragmentSearchCityTxt.getText().toString().trim();\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n mMinSurfaceInput = Utils.convertAreaAccordingToPreferences(mActivity, mBinding.fragmentSearchMinSurfaceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n mMaxSurfaceInput = Utils.convertAreaAccordingToPreferences(mActivity, mBinding.fragmentSearchMaxSurfaceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n mMinPriceInput = Utils.convertPriceAccordingToPreferences(mActivity, mBinding.fragmentSearchMinPriceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n mMaxPriceInput = Utils.convertPriceAccordingToPreferences(mActivity, mBinding.fragmentSearchMaxPriceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n mFloorsInput = Integer.parseInt(mBinding.fragmentSearchMinFloorsTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchForSaleTxt.getText()))\n mForSaleDate = Converters.dateToTimestamp(Utils.convertStringToDate(mBinding.fragmentSearchForSaleTxt.getText().toString().trim()));\n if (!TextUtils.isEmpty(mBinding.fragmentSearchSoldTxt.getText()))\n mSoldDate = Converters.dateToTimestamp(Utils.convertStringToDate(mBinding.fragmentSearchSoldTxt.getText().toString().trim()));\n }", "public String getAnswer(String input)\n\t{\n\t\tString answer = \"\";\n\t\t\n\t\tanswer = JOptionPane.showInputDialog(null, input);\n\t\t\n\t\treturn answer;\n\t}", "public String getCurrrentInput(){\n\t\treturn this.currentInput;\n\t}", "public static String getString (String ask)\r\n {\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.print(ask + \" -> \");\r\n String input = keyboard.nextLine();\r\n return input;\r\n }", "String consoleInput();", "private String getText() {\r\n\t\treturn getJTextField().getText();\r\n\t}", "public String getValue()\r\n\t{\r\n\t\tString value = textField.getText();\r\n\t\treturn value==null || value.length()==0 ? null : value;\r\n\t}", "public static String readString(String prompt){ \n\t\tSystem.out.print(prompt+\": \");\n\t\tstringInput = readInput();\n\t\treturn stringInput; \n\t}", "public static String getString(String prompt)\n {\n System.out.print(prompt + \" \");\n return in.nextLine();\n }", "public String userInputString() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }", "private String getChoice() {\n return searchChoiceBox.getValue();\n }", "private String getClientInput() {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = null;\n try {\n input = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return input;\n }", "public static String getInput() {\n\t\tScanner inputReader = new Scanner(System.in);\n\t\tString userInput;\n\t\tuserInput = inputReader.nextLine();\n\t\treturn userInput;\n\t}", "public String getText() {\r\n\t\treturn this.textfield.getText();\r\n\r\n\t}", "public String getPrompt() {\n\t\treturn prompt;\n\t}", "private long inputAlert(String title, String input) {\n\t\tflag = false;\n\n\t\tStage window = new Stage();\n\t\twindow.initModality(Modality.APPLICATION_MODAL);\n\t\twindow.setTitle(title);\n\t\twindow.setHeight(100);\n\n\t\tLabel errorMessage = new Label(input);\n\t\terrorMessage.setPrefWidth(150 + input.length() * 5);\n\t\terrorMessage.setAlignment(Pos.CENTER);\n\t\twindow.setWidth(errorMessage.getPrefWidth());\n\n\t\tTextField alert = new TextField();\n\t\tButton submit = new Button(\"Submit\");\n\n\t\tsubmit.setOnAction(event -> {\n\t\t\tint[] inputs = alert.getCharacters().chars().toArray();\n\t\t\tint total = condense(inputs);\n\t\t\tif(!flag) {\n\t\t\t\talertInput = total;\n\t\t\t} else {\n\t\t\t\talertInput = 100000000; \t//sets to be flagged later on\n\t\t\t}\n\t\t\twindow.close();\n\t\t});\n\n\t\tHBox submission = new HBox(alert, submit);\n\t\tsubmission.setSpacing(15);\n\t\tsubmission.setAlignment(Pos.CENTER);\n\t\tVBox layout = new VBox();\n\t\tlayout.getChildren().addAll(errorMessage, submission);\n\t\tlayout.setAlignment(Pos.CENTER);\n\t\tlayout.setSpacing(15);\n\n\t\tScene scene = new Scene(layout);\n\t\twindow.setScene(scene);\n\t\twindow.showAndWait();\n\t\treturn alertInput;\n\t}", "public String getInput() {\n return input;\n }", "public String inputName() {\n String name = editTextName.getText().toString();\n return name;\n }", "String getInputName() {\n return (nameInput.getText());\n }", "public void getData() {\n if (action.getName() != null) {\n wName.setText(action.getName());\n }\n wServerName.setText(Const.NVL(action.getServerName(), \"\"));\n wUserName.setText(Const.NVL(action.getUserName(), \"\"));\n wPassword.setText(Const.NVL(action.getPassword(), \"\"));\n wCommand.setText(Const.NVL(action.getCommand(), \"\"));\n wProxyHost.setText(Const.NVL(action.getProxyHost(), \"\"));\n wProxyPort.setText(Const.NVL(action.getProxyPort(), \"\"));\n\n wName.selectAll();\n wName.setFocus();\n }", "public static Optional<String> showTextInputAndGetResult(String header, String content) {\n TextInputDialog dialog = new TextInputDialog(content);\n dialog.setHeaderText(header);\n return dialog.showAndWait();\n }", "private void handleTextInputCallback(TextInputCallback tic)\n throws IOException {\n System.out.print(tic.getPrompt());\n System.out.flush();\n tic.setText((new BufferedReader\n (new InputStreamReader(System.in))).readLine());\n }", "public String getInput() throws IOException {\n\t\tSystem.out.print(\">> \");\n\t\treturn consoleIn.readLine();\n\t}", "public static String getText()\n\t{\n\t\treturn enterURL.getText().toString();\n\t}", "@FXML\n private void handleUserInput() {\n String input = inputTextField.getText();\n storeUserInputHistory(input);\n try {\n Command command = ParserFactory.parse(input);\n command.execute(tasks, storage, history);\n } catch (ChronologerException e) {\n e.printStackTrace();\n }\n printUserMessage(\" \" + input);\n printChronologerMessage(UiMessageHandler.getOutputForGui());\n inputTextField.clear();\n }", "public String getAnswerText()\r\n\t {\r\n\t return spinner.getValue().toString();\r\n\t }", "public void takeUserInput() {\n\t\t\r\n\t}", "public void displayPrompt(String text){\n promptWindow.getContentTable().clearChildren();\n Label infoLabel = new Label(text, infoWindow.getSkin(), \"dialog\");\n infoLabel.setWrap(true);\n infoLabel.setAlignment(Align.center);\n promptWindow.getContentTable().add(infoLabel).width(500);\n promptWindow.show(guiStage);\n }", "private void getInput() {\n\t\tSystem.out.println(\"****Welcome to TNEB online Payment*****\");\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter your current unit\");\r\n\t\tunit = scan.nextInt();\r\n\t}", "public static String getString(String inputDialog) {\n return(JOptionPane.showInputDialog(inputDialog));\n }", "public static String getStringInput() {\n Scanner in = new Scanner(System.in);\n return in.next();\n }", "public static int getUserChoice(){\r\n return Input.getInt(\"Enter 1 to add a song, 2 to display all songs, or 3 to quit the program: \");\r\n }", "@Test\n public void theUserIsPromptedForAnInput() {\n //arrange\n //act\n String returnedValue = Localization.fromPrompter(Prompter.readOnly(expectedValue));\n //assess\n assertEquals(expectedValue, returnedValue);\n }", "private void requestUserName() {\n // Show an alert to ask for the name\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Enter name:\");\n\n final EditText input_field = new EditText(this);\n\n builder.setView(input_field);\n\n // If a name is provided, let the user pass after pressing Ok\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n name = input_field.getText().toString();\n }\n });\n // If a no name is provided, prompt again\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n requestUserName();\n }\n });\n\n builder.show();\n }", "private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "public String getpasswordinput() {\n return tf2.getText();\n }", "static String readEntry(String prompt) {\n try {\n StringBuffer buffer = new StringBuffer();\n System.out.print(prompt);\n System.out.flush();\n int c = System.in.read();\n while(c != '\\n' && c != -1) {\n buffer.append((char)c);\n c = System.in.read();\n }\n return buffer.toString().trim();\n } catch (IOException e) {\n return \"\";\n }\n }", "protected abstract JTextComponent createPromptComponent();", "public Scene deliverPrompt()\n {\n System.out.println(prompt);\n deliverOptions();\n return takeResponse();\n }", "public String getTextFromTextField() {\r\n\t\treturn textField.getText();\r\n\t}", "private String displayUsername() {\n // Get username entered from the previous page and display in the current page\n Intent myIntent = getIntent();\n String nameEntered = myIntent.getStringExtra(\"EditTextValue\");\n String userName = \"Welcome, \" + nameEntered;\n return userName;\n }", "protected String getInputFromConsole() throws IOException\n {\n BufferedReader consoleInput = new BufferedReader(new InputStreamReader(System.in));\n return consoleInput.readLine();\n }", "public TextField getQuestion() {\r\n\t\tquestion.setPromptText(\"question\");\r\n\t\treturn question;\r\n\t}", "@Override\n\tpublic String getString(String prompt, String value1, String value2) {\n\t\tString s;\n\t\tdo {\n\t\t\tSystem.out.print(prompt);\n\t\t\ts = sc.nextLine(); // read user entry\n\n\t\t\t// Provides error message if response is empty or not 'y' or 'n'\n\t\t\tif (s.trim().isEmpty()) {\n\t\t\t\tSystem.out.println(\"Error! This entry is required. Try again.\");\n\t\t\t} else if (!s.equalsIgnoreCase(value1) && !s.equalsIgnoreCase(value2)) {\n\t\t\t\tSystem.out.println(\"Error! Entry must be 'y' or 'n'. Try agian.\");\n\t\t\t}\n\t\t} while (!s.equalsIgnoreCase(value1) && !s.equalsIgnoreCase(value2));\n\t\treturn s;\n\t}", "String userInput(String question);", "public static String GetInput() {\r\n\t\t// Scanner is created and a value is set for input\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tString input = in.nextLine();\r\n\t\treturn input;\r\n\r\n\t}", "private static int getUserChoice() {\n System.out.println(\"Please choose your operation: \");\n return intScanner.nextInt();\n }", "private String getUserInput(Scanner sc) {\n\t\t\n\t\tif (sc == null) {\n\t\t\treturn null;\n\t\t}\n\n\t System.out.print(\"\\nctransfer > \");\n\t return sc.nextLine();\n\t}", "public static String input (Resources loader,\r\n\t\tComponent frame, String name, Object args[], Object defaultVal) {\r\n\r\n\t\tString retVal = (String)JOptionPane.showInputDialog(frame,\r\n\t\t\tloader.getResourceMessage(name.concat(\".message\"), args),\r\n\t\t\tloader.getResourceMessage(name.concat(\".title\"), args),\r\n\t\t\tJOptionPane.QUESTION_MESSAGE, null, null, defaultVal);\r\n\r\n\t\treturn (retVal);\r\n\t}", "public static String receberSelecaoDoConsoleString() {\n\t\tScanner entrada = new Scanner(System.in);\n\t\t\n\t\t//pega o input que decide se a entrada será no terminal ou em arquivo\n\t\tString valor = entrada.nextLine();\n\t\t\n\t\treturn valor;\n\t}", "public static String readUserInput() {\n return in.nextLine();\n }" ]
[ "0.6891069", "0.6859866", "0.67204756", "0.6705766", "0.66967064", "0.66947377", "0.66783744", "0.662858", "0.659469", "0.6590958", "0.6579562", "0.6567486", "0.6549524", "0.65428174", "0.653691", "0.6511845", "0.651067", "0.6502626", "0.6461121", "0.6414142", "0.63976234", "0.63974464", "0.6396762", "0.63831526", "0.6374222", "0.6373699", "0.6359339", "0.6339409", "0.63228595", "0.6322162", "0.6304004", "0.6299843", "0.62526506", "0.62252617", "0.6200123", "0.61832094", "0.61736006", "0.6172934", "0.6171291", "0.61708146", "0.6162919", "0.61485213", "0.6142497", "0.6129696", "0.6129056", "0.6111032", "0.6088149", "0.60860896", "0.6078469", "0.60674", "0.6060567", "0.6059519", "0.60500526", "0.6040382", "0.6031603", "0.60215575", "0.6011171", "0.59984684", "0.5990876", "0.59813356", "0.59791005", "0.59590155", "0.5957225", "0.5948685", "0.5947071", "0.59465915", "0.59351134", "0.59331423", "0.59325165", "0.5928296", "0.59270453", "0.5926639", "0.59117115", "0.5911632", "0.5910638", "0.5906561", "0.5898836", "0.5887314", "0.5885197", "0.58695465", "0.5865579", "0.586084", "0.58545107", "0.58533615", "0.5833083", "0.58325577", "0.58225787", "0.5821331", "0.581371", "0.58094364", "0.5808121", "0.5793646", "0.5790257", "0.57837695", "0.5783672", "0.5780578", "0.5777104", "0.5771591", "0.57670254", "0.5751583" ]
0.66030896
8
Return true if user selected OK
public boolean getAccepted() { return accepted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getOK() {\n return userAction.equals(OK);\n }", "protected abstract boolean onOkClicked();", "public boolean isOkClicked(){\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\r\n\t\treturn okClicked;\r\n\t}", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "@Override\n\tpublic boolean performOk() {\n\t\t// Get the preference store\n\t\tfinal IPreferenceStore preferenceStore = getPreferenceStore();\n\n\t\t// Set the values from the fields\n\t\tpreferenceStore.setValue(DEFAULT_PASSWORD_LENGTH, spiLength.getSelection());\n\t\tpreferenceStore.setValue(USE_LOWERCASE_LETTERS, btnUseLowercase.getSelection());\n\t\tpreferenceStore.setValue(USE_UPPERCASE_LETTERS, btnUserUppercase.getSelection());\n\t\tpreferenceStore.setValue(USE_DIGITS, btnUseDigits.getSelection());\n\t\tpreferenceStore.setValue(USE_SYMBOLS, btnUseSymbols.getSelection());\n\t\tpreferenceStore.setValue(USE_EASY_TO_READ, btnUseEaseToRead.getSelection());\n\t\tpreferenceStore.setValue(USE_HEX_ONLY, btnUseHexOnly.getSelection());\n\n\t\t// Return true to allow dialog to close\n\t\treturn true;\n\t}", "public boolean isOkClicked() {\n return okClicked;\n }", "public boolean isOkClicked() {\n return okClicked;\n }", "public void cmdOk() {\n\n\t\tif (!m_actionscombo.isValueInModel()) {\n\t\t\tString msg = I18N.getLocalizedMessage(\"Invalid Action Name\");\n\t\t\tString title = I18N.getLocalizedMessage(\"Error\");\n\t\t\tJOptionPane.showMessageDialog(null, msg, title, JOptionPane.ERROR_MESSAGE);\n\t\t} else\n\t\t\tsuper.cmdOk();\n\t}", "public boolean performOk() {\r\n\t\treturn super.performOk();\r\n\t}", "void setOk();", "public boolean onOkClicked() {\n try {\n if (form.isValid()) {\n String userName = form.getFieldValue(SysUser.USER_NAME_PROPERTY);\n String userAccount = form.getFieldValue(SysUser.USER_ACCOUNT_PROPERTY);\n String passWord = form.getFieldValue(SysUser.USER_PASSWORD_PROPERTY);\n String cPassWord = form.getFieldValue(\"cPassWord\");\n if (!passWord.equals(cPassWord)) {\n form.getField(SysUser.USER_PASSWORD_PROPERTY).setValue(\"\");\n form.getField(\"cPassWord\").setValue(\"\");\n form.getField(SysUser.USER_PASSWORD_PROPERTY).setFocus(true);\n addModel(\"msg\", \"密码不一致\");\n } else if (SysUserDao.getInstance().canCreate(getSysUser().getObjectContext(), userAccount)) {\n if (SysUserDao.getInstance().createSysUser(getSysUser().getObjectContext(), userName, userAccount, passWord)) {\n setRedirect(UserListPage.class);\n } else {\n addModel(\"msg\", \"失败\");\n }\n } else {\n form.getField(SysUser.USER_ACCOUNT_PROPERTY).setFocus(true);\n addModel(\"msg\", \"账号已存在\");\n }\n }\n } catch (Exception e) {\n logger.error(e.getLocalizedMessage(), e);\n }\n return true;\n }", "public boolean wasOkay();", "boolean getIsOk();", "public boolean isOkay() {\n return okay;\n }", "void okButtonClicked();", "public boolean isOk() {\n\t\treturn ok;\n\t}", "protected boolean okData() {\n \t\tString name2 = name.getText().trim();\n \t\tString phone2 = phone.getText().trim();\n \t\tString adress2 = adress.getText().trim();\n \t\tboolean enterpriseButton = enterpriseCustomer.isSelected();\n \t\tboolean privateButton = privateCustomer.isSelected();\n \t if (name2.equals(\"\") || phone2.equals(\"\") || adress2.equals(\"\") || (!enterpriseButton && !privateButton)) {\n \t \tif (name2.equals(\"\")) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to input a customer name!\");\n \t \t\tname.requestFocusInWindow();\n \t \t} else if(phone2.equals(\"\")) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to input a phone number!\");\n \t \t\tphone.requestFocusInWindow();\n \t \t} else if(adress2.equals(\"\")) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to input an adress!\");\n \t \t\tadress.requestFocusInWindow();\n \t \t} else if(!enterpriseButton && !privateButton) {\n \t \t\tshowMessageDialog(CustomerRegistration.this, \"You have to choose a customer type!\");\n \t \t\tprivateCustomer.requestFocusInWindow();\n \t \t}\n \t \treturn false;\n \t } else {\n \t \treturn true;\n \t }\n \t}", "public static boolean isOK() {return isOK;}", "public final boolean isOk() {\n return ok;\n }", "private boolean promptToSave() throws IOException {\n applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION).show(\"Save work?\", \n \"Would you like to save your current work?\");\n return ((ConfirmationDialog)applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION)).getSelectedOption().equals(Option.YES) \n || ((ConfirmationDialog)applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION)).getSelectedOption().equals(Option.NO);\n }", "@FXML public void handleOk() {\n\t\tSystem.out.println(\"OK clicked!\");\n\t\t\n\t\tif (checkParameters().equals(ErrorCode.BatchSize)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Batch Size]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.ConfidenceFactor)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Confidence Factor]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.MinNumObj)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Min Num Obj]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumDecimalPlaces)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Decimal Places]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumFolds)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Folds]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Seed)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Seed]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Fine)) {\n\t\t\tsaveParameters();\n\t\t\tClassifiersWindowsManager.stage.close();\n\t\t}\n\t}", "@Action\n public void acOk() {\n if (checkFormattedTextFieldNullNoSupposed(jftfCoord1, -1e5, 1e5)) {\n return;\n }\n if (checkFormattedTextFieldNullNoSupposed(jftfCoord2, -1e5, 1e5)) {\n return;\n }\n if (checkTextField(jtfName)) {\n return;\n }\n getTempObj().setType(jcbType.getSelectedIndex());\n getTempObj().setCoord1(getDoubleFromFormattedTextField(jftfCoord1));\n getTempObj().setCoord2(getDoubleFromFormattedTextField(jftfCoord2));\n getTempObj().setName(jtfName.getText());\n setChangeObj(true);\n }", "public abstract boolean confirm();", "private boolean askSave() {\n if (isNeedSaving()) {\n int option = JOptionPane.showConfirmDialog(form,\n \"Do you want to save the change?\", \"Save\", JOptionPane.YES_NO_CANCEL_OPTION);\n //direct code base on user choice\n switch (option) {\n case JOptionPane.YES_OPTION:\n //check if file is null\n if (file == null) {\n //check if user cancel save option\n if (!saveAs()) {\n return false;\n }\n } else {\n //check if user cancel save option\n if (!save()) {\n return false;\n }\n }\n break;\n case JOptionPane.CANCEL_OPTION:\n return false;\n }\n }\n return true;\n }", "public boolean isOk() {\n return _type == Type.OK;\n }", "protected boolean promptToSave() {\n if (!boxChanged) {\n return true;\n }\n switch (JOptionPane.showConfirmDialog(this,\n bundle.getString(\"Do_you_want_to_save_the_changes_to_\")\n + (boxFile == null ? bundle.getString(\"Untitled\") : boxFile.getName()) + \"?\",\n APP_NAME, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE)) {\n case JOptionPane.YES_OPTION:\n return saveAction();\n case JOptionPane.NO_OPTION:\n return true;\n default:\n return false;\n }\n }", "public boolean promptToSave()\r\n {\r\n // PROMPT THE USER TO SAVE UNSAVED WORK\r\n AnimatedSpriteEditorGUI gui = AnimatedSpriteEditor.getEditor().getGUI();\r\n int selection =JOptionPane.showOptionDialog(gui, \r\n PROMPT_TO_SAVE_TEXT, PROMPT_TO_SAVE_TITLE_TEXT, \r\n JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, \r\n null, null, null);\r\n \r\n // IF THE USER SAID YES, THEN SAVE BEFORE MOVING ON\r\n if (selection == JOptionPane.YES_OPTION)\r\n {\r\n poseIO.savePose(currentFile, false);\r\n poseIO.savePoseImage(currentPoseName, poseID);\r\n saved = true;\r\n }\r\n \r\n // IF THE USER SAID CANCEL, THEN WE'LL TELL WHOEVER\r\n // CALLED THIS THAT THE USER IS NOT INTERESTED ANYMORE\r\n else if (selection == JOptionPane.CANCEL_OPTION)\r\n {\r\n return false;\r\n }\r\n\r\n // IF THE USER SAID NO, WE JUST GO ON WITHOUT SAVING\r\n // BUT FOR BOTH YES AND NO WE DO WHATEVER THE USER\r\n // HAD IN MIND IN THE FIRST PLACE\r\n return true;\r\n }", "public boolean pregunta(){\n int d = JOptionPane.showConfirmDialog(null, \"¿Desea escribir otra palabra?\", \"¿Escribir?\", JOptionPane.YES_NO_OPTION);\n if (d == 0) {\n return true;\n }else if (d == 1) {\n return false;\n }\n return false;\n }", "private boolean askSaveGame()\n {\n \tObject options[] = {\"Save\", \"Discard\", \"Cancel\"};\n \tint n = JOptionPane.showOptionDialog(this,\n \t\t\t\t\t \"Game has changed. Save changes?\",\n \t\t\t\t\t \"Save Game?\",\n \t\t\t\t\t JOptionPane.YES_NO_CANCEL_OPTION,\n \t\t\t\t\t JOptionPane.QUESTION_MESSAGE,\n \t\t\t\t\t null,\n \t\t\t\t\t options,\n \t\t\t\t\t options[0]);\n \tif (n == 0) {\n \t if (cmdSaveGame()) \n \t\treturn true;\n \t return false;\n \t} else if (n == 1) {\n \t return true;\n \t}\n \treturn false;\n }", "public boolean saidYes(boolean onQuit) {\r\n\r\n System.out.print(\" (Y/N) \");\r\n \r\n\t\tchar responce = Keyboard.readChar();\r\n responce = Character.toLowerCase(responce);\r\n\r\n\t\tswitch (responce) {\r\n case 'y':\r\n return true;\r\n\r\n case 'q':\r\n case 'e':\r\n\r\n // Is the user is being asked to quit?\r\n if (onQuit) {\r\n return true;\r\n\t\t\t\t}\r\n\r\n endGameSwitch = true;\r\n return false;\r\n\r\n default:\r\n return false;\r\n }\r\n\t}", "public boolean promptUserWantsShutdown() {\r\n boolean result = true;\r\n\r\n if (isGUI()) {\r\n String msg = Messages.MainModel_4.toString();\r\n String title = Messages.MainModel_5.toString();\r\n int ans = JOptionPane.showConfirmDialog(null, msg, title,\r\n JOptionPane.OK_CANCEL_OPTION);\r\n\r\n if (ans == JOptionPane.CANCEL_OPTION) {\r\n result = false;\r\n }\r\n }\r\n\r\n return result;\r\n\r\n }", "@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n actualizarEntidad(this.entidad);\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }", "private int askUserForSaveFile()\n {\n final JOptionPane optionPane = new JOptionPane(this.dialogExitMessage,\n JOptionPane.CLOSED_OPTION, JOptionPane.YES_NO_CANCEL_OPTION, this.dialogExitIcon);\n dialogFactory.showDialog(optionPane, this.dialogExitTitle, true);\n final int decision = getOptionFromPane(optionPane);\n return decision;\n }", "@Override\r\n\t\tpublic boolean promptYesNo(String message) {\n\t\t\treturn true;\r\n\t\t}", "private boolean areYouSure(String text) {\n return JOptionPane.showConfirmDialog(null, text, \"Are you sure?\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;\n }", "private boolean OK() {\r\n return in == saves[save-1];\r\n }", "public boolean isOK() {\n\t\treturn adaptee.isOK();\n\t}", "protected void okPressed() {\n\t\tconfig.setExportThreadCount(txtThreadCount.getSelection());\n\t\tconfig.setImportThreadCount(txtMaxImportThreadCountPerTable.getSelection());\n\t\tconfig.setCommitCount(txtCommitCount.getSelection());\n\t\tif (txtPageCount != null) {\n\t\t\tconfig.setPageFetchCount(txtPageCount.getSelection());\n\t\t}\n\t\tif (txtFileMaxSize != null) {\n\t\t\tconfig.setMaxCountPerFile(txtFileMaxSize.getSelection());\n\t\t}\n\t\tconfig.setImplicitEstimate(btnImplicitEstimate.getSelection());\n\t\tsuper.okPressed();\n\t}", "public synchronized void sendOk() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_YES);\r\n\t\tendMessage();\r\n\t}", "public abstract boolean repOk();", "public boolean isUserChoice() {\n return ACTION_UserChoice.equals(getAction());\n }", "void onOkButtonPressed();", "public boolean repOk();", "@Override\r\n\tprotected void onOkSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Ok button implementation\");\r\n\t}", "private boolean promptCommand() {}", "public String getOk() {\r\n\t\treturn \"\";\r\n\t}", "protected abstract void pressedOKButton( );", "public boolean isOk() {\n return this.state == null || this.state.code == 0;\n }", "boolean getAccepted();", "private void mIesireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mIesireActionPerformed\n int response = JOptionPane.showConfirmDialog(this, \"Doriti sa parasiti aplicatia?\", \"Confirmare\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (response == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }", "boolean remoteOfficeOk() throws UnavailableMethodException, IOException {\r\n\r\n\t\tif (isChanged) {\r\n\t\t\tlogTrace(this.getClass().getName(), \"loadremoteOfficecomponents()\", \"Ok button action is going to start\");\r\n\t\t\tif (objRemoteOfficeEnableJCheckBox.isSelected()) {\r\n\t\t\t\tString phoneNumber = objRemoteOfficeJTextField.getText();\r\n\t\t\t\tif ((phoneNumber.equalsIgnoreCase(\"\"))) {\r\n\r\n\t\t\t\t\tshowInfoDialog(getremoteOfficeNumberError());\r\n\r\n\t\t\t\t\tsuccess = false;\r\n\t\t\t\t\treturn success;\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tApplication.UNITY_CLIENT_APPLICATION.getreRemoteOffice().setActive(true);\r\n\t\t\t\t\tApplication.UNITY_CLIENT_APPLICATION.getreRemoteOffice().setPhoneNumber(phoneNumber);\r\n\r\n\t\t\t\t\tisChanged = false;\r\n\t\t\t\t\tApplication.UNITY_CLIENT_APPLICATION.getObjBWXSIAction().setRemoteoffice(true, phoneNumber);\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tString phoneNumber = objRemoteOfficeJTextField.getText();\r\n\r\n\t\t\t\tApplication.UNITY_CLIENT_APPLICATION.getreRemoteOffice().setActive(false);\r\n\t\t\t\tApplication.UNITY_CLIENT_APPLICATION.getreRemoteOffice().setPhoneNumber(phoneNumber);\r\n\t\t\t\tisChanged = false;\r\n\t\t\t\tApplication.UNITY_CLIENT_APPLICATION.getObjBWXSIAction().setRemoteoffice(false, phoneNumber);\r\n\t\t\t}\r\n\t\t\tlogTrace(this.getClass().getName(), \"remoteOfficeOk()\", \"Ok button action completed successfully\");\r\n\t\t}\r\n\r\n\t\treturn success;\r\n\r\n\t}", "public void OnOkClick()\r\n {\r\n\r\n }", "private void onOkButtonPressed() {\n\t\tconfirm = true;\n\t\tif (template.getAskDimension()) {\n\t\t\ttry {\n\t\t\t\twidth = Integer.parseInt(widthInputField.getFieldString());\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\theight = Integer.parseInt(heightInputField.getFieldString());\n\t\t\t\theightInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\theightInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\tif(!confirm)\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (template.getAskLoading()) {\n\t\t\tint result = savefileChooser.showOpenDialog(this);\n\t\t\tif (result != JFileChooser.APPROVE_OPTION) {\n\t\t\t\tconfirm = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tdispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\n\t}", "@FXML\n\tprivate void handleOk() {\n\t\tif (isValidInput()) {\n\t\t\tsaveCurrentAcknowledgment();\n\t\t\t\n\t\t\tif (isNew) {\n\t\t\t\tmain.getDbHelper().insertAcknowledgment(acknowledgment);\n\t\t\t\tmain.getAcknowledgmentData().clear();\n\t\t\t\tmain.getAcknowledgmentData().addAll(main.getDbHelper().retrieveAcknowledgmentList());\n\t\t\t} else {\n\t\t\t\tmain.getDbHelper().updateAcknowledgment(acknowledgment);\n\t\t\t\tmain.getAcknowledgmentData().clear();\n\t\t\t\tmain.getAcknowledgmentData().addAll(main.getDbHelper().retrieveAcknowledgmentList());\t\n\t\t\t}\n\t\t\t\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\n\t\t}\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}", "public boolean onConfirmClicked(DialogActivity dialog)\n {\n return mApplyButton.performClick();\n }", "public boolean getUserConfirmation() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation Box\");\n alert.setHeaderText(\"Are you sure you want to delete?\");\n alert.setResizable(false);\n Optional<ButtonType> result = alert.showAndWait();\n ButtonType button = result.orElse(ButtonType.CANCEL);\n\n if (button == ButtonType.OK) {\n return true;\n } else {\n return false;\n }\n }", "private void okAction()\r\n\t{\r\n\t\tString navn = txfInput[0].getText().trim();\r\n\r\n\t\tint telefonNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttelefonNr = Integer.parseInt(txfInput[1].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString vej = txfInput[2].getText().trim();\r\n\r\n\t\tint nr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tnr = Integer.parseInt(txfInput[3].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString etage = txfInput[4].getText().trim();\r\n\r\n\t\tint postNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tpostNr = Integer.parseInt(txfInput[5].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString by = txfInput[6].getText().trim();\r\n\t\tString land = txfInput[7].getText().trim();\r\n\r\n\t\tif (navn.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Navn er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (telefonNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Telefon nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\telse if (vej.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Vej er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (nr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (postNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Post Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (by.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"By er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (land.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Land er tom\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tFirma firma = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfirma = lvwFirmaer.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\r\n\t\tLedsager ledsager = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tledsager = lvwLedsagere.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif (deltager != null)\r\n\t\t{\r\n\t\t\tService.updateDeltager(deltager, firma, ledsager, navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t} else\r\n\t\t{\r\n\t\t\tService.createDeltager(navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t}\r\n\r\n\t\tthis.hide();\r\n\t}", "public boolean promptYesNo(String str)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}", "public void clickedOk(View view) {\n \t\n \t// validate the data set\n \tif (!getData()) return;\n \t\n \t// confirm values that are in range, but possibly wrong\n \tif (!confirmData(0)) return;\n \t\n \t// success\n \t\treturnResult(Activity.RESULT_OK);\n }", "@FXML\n private void handleOk() {\n if (isInputValid()) {\n gem.setGemName(gemNameField.getText());\n gem.setGemValue(Integer.parseInt(gemValueField.getText()));\n gem.setDescription(gemDescripField.getText());\n\n okClicked = true;\n dialogStage.close();\n }\n }", "void ok();", "public void ok() {\n btOK().push();\n }", "public void setOk() {\n underline.setSelected(false);\n bold.setSelected(false);\n italics.setSelected(false);\n Ok.setSelected(true); /*FAULT:: Ok.setSelected(false); */\n }", "private void okEvent() {\n\t\tYAETMMainView.PRIVILEGE = (String)loginBox.getSelectedItem();\n\t\tshowMain();\n\t\tcloseDialog();\n\t}", "@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n environment.setName(nameField.getText());\r\n environment.setIP(hostField.getText());\r\n environment.setPort(Integer.parseInt(portField.getText()));\r\n environment.setLogin(loginField.getText());\r\n environment.setPassword(passwordField.getText());\r\n environment.setPathMOM(MOMPathField.getText());\r\n environment.setServer(serverField.getValue());\r\n environment.setService(serviceField.getValue());\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }", "public void actionPerformed(ActionEvent e) {\n\t\toptionPane.setValue(okString);\n\t}", "@Override\n\tpublic boolean repOk() {\n\t\treturn true;\n\t}", "protected Button getOkButton()\r\n\t{\r\n\t\treturn okButton;\r\n\t}", "public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}", "void isOK()\r\n\t{\n\t\tboolean[] array = new boolean[table.getRowCount()];\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tarray[i] = (Boolean) table.getValueAt(i, 2);\r\n\r\n\t\tint active = 0;\r\n\t\tfor (boolean b: array)\r\n\t\t\tif (b) active++;\r\n\r\n\t\t// Copy ONLY the selected traits into a new array\r\n\t\tint[] traits = new int[active];\r\n\t\tfor (int i = 0, j = 0; i < array.length; i++)\r\n\t\t\tif (array[i])\r\n\t\t\t\ttraits[j++] = i;\r\n\r\n\t\tPrefs.guiTruncateTraits = checkTruncate.isSelected();\r\n\r\n\t\t// Assign the selected traits back to the view\r\n\t\tif (mode == SelectTraitsDialog.HEATMAP_TRAITS)\r\n\t\t\tviewSet.setTraits(traits);\r\n\t\telse\r\n\t\t\tviewSet.setTxtTraits(traits);\r\n\t}", "private boolean confirmAlert(String title, String message) {\n\t\tStage window = new Stage();\n\t\twindow.initModality(Modality.APPLICATION_MODAL);\n\t\twindow.setTitle(title);\n\t\twindow.setHeight(100);\n\n\t\tLabel errorMessage = new Label(message);\n\t\terrorMessage.setPrefWidth(150 + message.length() * 5);\n\t\terrorMessage.setAlignment(Pos.CENTER);\n\t\twindow.setWidth(errorMessage.getPrefWidth());\n\n\t\tButton yes = new Button(\"yes\");\n\t\tButton no = new Button(\"no\");\n\n\t\tyes.setOnAction(event -> {\n\t\t\twindow.close();\n\t\t\tanswer = true;\n\t\t});\n\t\tno.setOnAction(event -> {\n\t\t\twindow.close();\n\t\t\tanswer = false;\n\t\t});\n\n\n\t\tHBox answers = new HBox(yes, no);\n\t\tanswers.setSpacing(15);\n\t\tanswers.setAlignment(Pos.CENTER);\n\t\tVBox layout = new VBox();\n\t\tlayout.getChildren().addAll(errorMessage, answers);\n\t\tlayout.setAlignment(Pos.CENTER);\n\t\tlayout.setSpacing(15);\n\n\t\tScene scene = new Scene(layout);\n\t\twindow.setScene(scene);\n\t\twindow.showAndWait();\n\n\t\treturn answer;\n\t}", "private boolean askToLeave(){\n\t\tint ask_leave_prompt = JOptionPane.YES_NO_OPTION;\n\t\tint ask_leave_result = JOptionPane.showConfirmDialog(this, \"Would you like to return to main menu?\\nYou will lose all progress\", \"Return To Main Menu\", ask_leave_prompt);\n\t\tif (ask_leave_result == JOptionPane.YES_OPTION){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@FXML\n\tprivate void handleOk() {\n\t\tif (isInputValid()) {\n\t\t\titem.setDate(DateUtil.parse(dateField.getText()));\n\t\t\titem.setCategory(categoryField.getSelectionModel().getSelectedItem());\n\t\t\titem.setUse(useField.getText());\n\t\t\t\n\t\t\tString textBefore = amountField.getText();\n\t\t\tString textAfter = null;\n\t\t\tif(textBefore.contains(\",\")) {\n\t\t\t\ttextAfter = textBefore.replace(\",\", \".\");\n\t\t\t} else {\n\t\t\t\ttextAfter = textBefore;\n\t\t\t}\n\t\t\titem.setAmount(Double.parseDouble(textAfter));\n\t\t\titem.setDistributionKind(distributionKindField.getText());\n\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\n\t\t}\n\t}", "private boolean validationIsOK()\n {\n if (!enableAutosaveCheckbox.isSelected())\n {\n return true;\n }\n\n String seconds = saveIntervalTextField.getText();\n\n try\n {\n Integer.parseInt(seconds);\n } catch (NumberFormatException e) {\n JOptionPane.showMessageDialog(this, invalidValueText);\n saveIntervalTextField.requestFocus();\n return false;\n }\n\n if (pathAutosaveTextField.getText().trim().isEmpty())\n {\n JOptionPane.showMessageDialog(this, invalidValueText);\n pathAutosaveTextField.requestFocus();\n return false;\n }\n\n File directory = new File(pathAutosaveTextField.getText());\n\n return true;\n }", "boolean checkYesNo (String choice){\r\n if (choice.equalsIgnoreCase(\"N\") || choice.equalsIgnoreCase(\"Y\")){\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }", "@Override\n\tpublic boolean verificarCancelar() {\n\t\treturn true;\n\t}", "private void okButtonActionPerformed() {\n\n saveConsoleText(consoleTextArea);\n\n setVisible(false);\n\n if (mainFrame == null && !isBasicUI) {\n System.exit(0);\n }\n }", "public static boolean showConfirmDialog(String action) {\n\tint reply = JOptionPane.showConfirmDialog(null, \"Are you sure you wish to \" + action + \"?\", \"Confirmation\",\n\t\tJOptionPane.YES_NO_OPTION);\n\t\n\treturn reply == JOptionPane.YES_OPTION;\n }", "public boolean isOK() {\r\n return getPayload().getString(\"status\").equals(\"ok\");\r\n }", "@Override\n public boolean canBeTerminatedNow() {\n logger.debug(\"OifitsExplorerGui.finish() handler called.\");\n\n // Can't exit if a job is running\n if (IRModelManager.getInstance().getIRModel().isRunning()) {\n MessagePane.showMessage(\"A job is running... Please wait for its completion or cancel it before quitting.\");\n return false;\n }\n\n // Ask the user if he wants to save modifications\n //@TODO replace by code when save will be available.\n MessagePane.ConfirmSaveChanges result = MessagePane.ConfirmSaveChanges.Ignore;\n //MessagePane.ConfirmSaveChanges result = MessagePane.showConfirmSaveChangesBeforeClosing();\n\n // Handle user choice\n switch (result) {\n // If the user clicked the \"Save\" button, save and exit\n case Save:\n /*\n if (this.saveAction != null) {\n return this.saveAction.save();\n }\n */\n break;\n\n // If the user clicked the \"Don't Save\" button, exit\n case Ignore:\n break;\n\n // If the user clicked the \"Cancel\" button or pressed 'esc' key, don't exit\n case Cancel:\n default: // Any other case\n return false;\n }\n\n return true;\n }", "@Test\n\tpublic void testClickOnOkayButton() {\n\n\t\tvar prompt = openPrompt();\n\t\tprompt.getOkayButton().click();\n\t\tassertNoDisplayedModalDialog();\n\t\tassertPromptInputApplied();\n\t}", "@FXML\n\tprivate void handleOk() {\n\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\n\t}", "public boolean okReveiced () {\n\t\t\treturn resultDetected[RESULT_INDEX_OK];\n\t\t}", "protected boolean confirm (String title, String message)\n {\n return JOptionPane.OK_OPTION == JOptionPane.showConfirmDialog(\n this, message, title, JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);\n }", "boolean isAccepting();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttext.setText(ok.getText());\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n if (askUserYesNo(\"Do you really want to quit?\")) {\n if(askUserYesNo(\"Do you want to save game?\")){\n game.saveGame();\n }\n System.exit(0);\n }\n }", "public void actionPerformed(ActionEvent arg0)\n {\n userAlert = chkAlert.getState();\n }", "private boolean exit(Stage primaryStage) {\n Alert closeConfirmation =\n new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to exit?\");\n Button saveButton = (Button) closeConfirmation.getDialogPane().lookupButton(ButtonType.OK);\n saveButton.setText(\"Save & Exit\");\n closeConfirmation.setHeaderText(\"Confirm Exit\");\n closeConfirmation.initModality(Modality.APPLICATION_MODAL);\n closeConfirmation.initOwner(primaryStage);\n closeConfirmation.getButtonTypes().setAll(ButtonType.YES, ButtonType.OK, ButtonType.CANCEL);\n\n Optional<ButtonType> closeResponse = closeConfirmation.showAndWait();\n if (ButtonType.OK.equals(closeResponse.get())) {\n Stage saveStage = new Stage();\n FileChooser chooser = new FileChooser();\n chooser.getExtensionFilters().add(new ExtensionFilter(\"Text File\", \"*.txt\"));\n File saveFile = chooser.showSaveDialog(saveStage);\n if (saveFile != null) {\n socialNetwork.saveToFile(saveFile);\n ((Labeled) ((VBox) statsBox.getChildren().get(0)).getChildren().get(1))\n .setText(\"Save file written succesfully\");\n }\n Platform.exit();\n }\n if (ButtonType.YES.equals(closeResponse.get())) {\n Platform.exit();\n } else {\n return false;\n }\n return true;\n }", "protected boolean hasPositiveButton() {\n return false;\n }", "public boolean isOkForAgent() {\r\n return okForAgent;\r\n }" ]
[ "0.803152", "0.75311637", "0.7521929", "0.74441475", "0.74441475", "0.74441475", "0.74441475", "0.74441475", "0.74423766", "0.74324715", "0.74324715", "0.74324715", "0.74324715", "0.7420548", "0.7395506", "0.7395506", "0.7371089", "0.7199361", "0.71762407", "0.71198285", "0.70520717", "0.7009352", "0.6910161", "0.6868411", "0.68053776", "0.6765265", "0.67364854", "0.6715503", "0.67017037", "0.6701576", "0.6644102", "0.66428953", "0.6640446", "0.66389364", "0.6618569", "0.6595557", "0.65858334", "0.6575208", "0.6567718", "0.65509146", "0.6550616", "0.6549893", "0.65476334", "0.65396553", "0.6537176", "0.65088505", "0.65056103", "0.6492907", "0.6474489", "0.64680094", "0.6454119", "0.64425635", "0.64369047", "0.639706", "0.6397034", "0.63814014", "0.6379451", "0.6375643", "0.63741624", "0.6372808", "0.63673997", "0.63597614", "0.6356152", "0.63461876", "0.6343888", "0.63423246", "0.6341899", "0.63370174", "0.6314232", "0.63117063", "0.6301942", "0.62961054", "0.62923247", "0.62835145", "0.6270953", "0.62538964", "0.6253707", "0.62414384", "0.624001", "0.62328506", "0.6231999", "0.6229874", "0.62295717", "0.62293965", "0.62267756", "0.61994666", "0.6196819", "0.6195002", "0.6185001", "0.6162538", "0.6146018", "0.613493", "0.61344624", "0.61260074", "0.612293", "0.6121413", "0.6117447", "0.611419", "0.611046", "0.60993516", "0.60950756" ]
0.0
-1
Handle closing actions for the dialog
private void close() { value.setValueString( input.getText() ); // check to see if the value is valid: if( value.isValid() ) { // if so, then set accepted and get rid of window: accepted = true; dispose(); } else { // otherwise, throw an error to the user: DialogError emsg = new DialogError(this," Invalid value, try again. "); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }", "protected void closeDialogCancel() {\n dispose();\n }", "@Override\r\n \t\t\tpublic void closeDialog() {\n \t\t\t\tunbind();\r\n \t\t\t\tsuper.closeDialog();\r\n \t\t\t}", "@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}", "public void handleCancel() {\n\t\tdialogStage.close();\n\t}", "private void quitDialog() {\r\n\t\tdispose();\r\n\t}", "public void handleActionClose() {\n\t\tsuper.handleActionClose();\n\t\tthis.getDocumentView().close();\n\t}", "private void dataReservationTypeCancelHandle() {\n reservationController.dialogStage.close();\r\n }", "private void close() {\n\t\t\t\t// name.getScene().getWindow().hide();\n\t\t\t\tdialogStage.fireEvent(new WindowEvent(dialogStage,WindowEvent.WINDOW_CLOSE_REQUEST));\n\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t}", "void dialogClosed(PDialog dialog);", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t}", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\r\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t}", "public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogExit();\r\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "public void handleCancelButton(ActionEvent e) {\n\t\tclose();\n\t}", "protected void closeDialog() { setVisible(false); dispose(); }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n\n }", "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t{\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}", "public void onCancelButtonClick() {\n close();\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n\tpublic void onCloseAction() {\n\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\n }", "protected void closeDialogOk() {\n dispose();\n }", "@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}", "@Override\n public void onDismiss(DialogInterface dialog) {\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n finish();\n }", "@Override\n public void onDismiss(DialogInterface dialog) {\n\n }", "@Override\n public void onDismiss(DialogInterface dialog) {\n\n }", "@Override\n public void onDismiss(DialogInterface dialog)\n {\n }", "@FXML\r\n private void handleCancel() {\r\n dialogStage.close();\r\n }", "@FXML\r\n private void handleCancel() {\r\n dialogStage.close();\r\n }", "@FXML\r\n private void handleCancel() {\r\n dialogStage.close();\r\n }", "@FXML\r\n private void handleCancel() {\r\n dialogStage.close();\r\n }", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}", "@Override\n public void onDismiss(DialogInterface dialog) {\n\n }", "@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}", "@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}", "@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}", "@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@FXML\r\n\tprivate void handleCancel() {\r\n\t\tdialogStage.close();\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t dialog.dismiss();\n\t\t }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\r\n }", "void onClose();", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "@FXML\n private void handleCancel() {\n dialogStage.close();\n }", "@FXML\n private void handleCancel() {\n dialogStage.close();\n }", "@FXML\n private void handleCancel() {\n dialogStage.close();\n }", "@Override\n\t\t\t\t\t\tpublic void doCancel() {\n\t\t\t\t\t\t\tcommonDialog.dismiss();\n\t\t\t\t\t\t}", "@Override\r\n public void onCancel(DialogInterface dialogInterface) {\n finish();\r\n }", "@Override\n public void onClick(DialogInterface dialog,int id) {\n dialog.dismiss();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(DialogConst.CANCEL);\n }", "public void onClose() {\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_OK);\n }", "public void onCancelClicked() {\n close();\n }", "@Override\n \t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\t\tdialog.dismiss();\n \t\t\t\t\t\tdialog = null;\n \t\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\r\n\tpublic void onClose() {\n\t}", "void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }", "@FXML\n public void handleCloseDialog(final MouseEvent event) {\n if (event.getSource() == closeDialog || event.getSource() == dialogCancelButton) {\n ConnectionManager.getInstance().setConnected(false);\n Node node = (Node) event.getSource();\n Stage stage = (Stage) node.getScene().getWindow();\n stage.hide();\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int i) {\n dialog.dismiss();\n }", "@Override\r\n\t public void onClick(DialogInterface dialog, int id) {\n\t \tdialog.dismiss();\r\n\t }", "@Override\r\n\t public void onClick(DialogInterface dialog, int id) {\n\t \tdialog.dismiss();\r\n\t }", "@Override\n public void onBtnClick() {\n dialog.dismiss();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false); \n actionCommand = false;\n dispose();\n }", "@Override\r\n\t\t\t\t\tpublic void onClose() {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "void close() {\n boolean closeable = true;\n if (progressPanel.getStatus() != ReportStatus.CANCELED && progressPanel.getStatus() != ReportStatus.COMPLETE && progressPanel.getStatus() != ReportStatus.ERROR) {\n closeable = false;\n }\n if (closeable) {\n actionListener.actionPerformed(null);\n } else {\n int result = JOptionPane.showConfirmDialog(this,\n NbBundle.getMessage(this.getClass(),\n \"ReportGenerationPanel.confDlg.sureToClose.msg\"),\n NbBundle.getMessage(this.getClass(),\n \"ReportGenerationPanel.confDlg.title.closing\"),\n JOptionPane.YES_NO_OPTION);\n if (result == 0) {\n progressPanel.cancel();\n actionListener.actionPerformed(null);\n }\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }", "void CloseOkDialog();" ]
[ "0.78097063", "0.7539111", "0.74763083", "0.7344882", "0.73074174", "0.72851896", "0.7279433", "0.7260623", "0.7209958", "0.72089386", "0.72089386", "0.7191622", "0.71908563", "0.7158162", "0.7153442", "0.7151794", "0.7144761", "0.7143414", "0.7139001", "0.7133022", "0.713262", "0.7116257", "0.71162343", "0.7116042", "0.7116042", "0.7106271", "0.7106271", "0.7106271", "0.7105264", "0.7105072", "0.7099713", "0.7094364", "0.7094364", "0.7094364", "0.7094364", "0.70853126", "0.7076685", "0.7071447", "0.7068889", "0.70645696", "0.70634466", "0.7062826", "0.7062826", "0.7057508", "0.7054918", "0.7054918", "0.7054918", "0.7054918", "0.7048859", "0.7048859", "0.7045722", "0.70429224", "0.70429224", "0.70429224", "0.70429224", "0.70426464", "0.70426464", "0.70426464", "0.7042544", "0.70336914", "0.70336914", "0.70336914", "0.70336914", "0.703307", "0.7029617", "0.7029617", "0.7029617", "0.7029617", "0.7029617", "0.7029617", "0.70232666", "0.7022166", "0.7017313", "0.7015758", "0.7015758", "0.7004421", "0.7004421", "0.7004421", "0.69978654", "0.69968146", "0.69899905", "0.69865096", "0.6986378", "0.69699", "0.69685155", "0.6966236", "0.69637245", "0.6955547", "0.6948062", "0.6940493", "0.6936818", "0.6934397", "0.6934397", "0.69256896", "0.692141", "0.6915627", "0.69151986", "0.6913675", "0.6909716", "0.6898033", "0.68970984" ]
0.0
-1
To get Project count
public int getProjectCount(){ return projectRepository.getProjectCount(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getProjectCount( String key ){\n return developer.projects.size();\n }", "@Override\r\n\tpublic int countListProject(Map<String, Object> map) throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int countCopProject(Map<String, Object> map) throws Exception {\n\t\treturn 0;\r\n\t}", "int getNumberOfImportedProject() {\n return allProjects().size();\n }", "@Override\n\tpublic int countProjectTeam() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int selectProjectCount(String id) {\n\t\treturn dao.selectProjectCount(session,id);\r\n\t}", "@Override\r\n\tpublic int countApplyProject(Map<String, Object> map) throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int getCount() {\n\t\tString sql=\"SELECT count(*) FROM `tc_student` where project=\"+project;\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO 自动生成的 catch 块\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t}", "@ApiModelProperty(value = \"Count of public projects.\")\n\t@JsonProperty(\"publicProjectCount\")\n\tpublic Integer getPublicProjectCount() {\n\t\treturn publicProjectCount;\n\t}", "public static int getCount()\n\t{\n\t\treturn projectileCount;\n\t}", "public String countProjects(Map<String, Object> parameter) {\n return new SQL() {{\n SELECT(\"count(0)\");\n\n FROM(TABLE_NAME + \" p\");\n WHERE(\"p.id in \" +\n \"(select project_id from \"+ RELEATION_TABLE_NAME+\" where user_id=#{userId} \" +\n \"union select id as project_id from \"+ TABLE_NAME+\" where user_id=#{userId})\");\n\n Object searchVal = parameter.get(\"searchVal\");\n if(searchVal != null && StringUtils.isNotEmpty(searchVal.toString())){\n WHERE( \" p.name like concat('%', #{searchVal}, '%') \");\n }\n WHERE(\"p.flag = 1\");\n }}.toString();\n }", "int getGroupCount();", "public int findByCount(Map<String, Object> map) {\n\treturn projectmapper.findByCount(map);\n}", "public long count() {\n return getDevStudioRepository().count();\n }", "public Vector<String> getAIRelatedProjectCounts(Context context, String[] args) throws Exception {\n logger.debug(\"pss.slc.ui.SLCUIUtil:getAIRelatedProjectCounts:START\");\n Vector vProjectCountList = new Vector();\n try {\n\n HashMap programMap = (HashMap) JPO.unpackArgs(args);\n MapList mlCRObjectIdList = (MapList) programMap.get(\"objectList\");\n String strMode = \"CRSLCView\";\n\n int nCRCount = 0;\n Iterator itrCRObjectList = mlCRObjectIdList.iterator();\n while (itrCRObjectList.hasNext()) {\n\n Map mpCRObject = (Map) itrCRObjectList.next();\n String strCRObjectId = (String) mpCRObject.get(DomainConstants.SELECT_ID);\n\n DomainObject domCRObject = DomainObject.newInstance(context, strCRObjectId);\n StringList slAffectedItemList = domCRObject.getInfoList(context, \"from[\" + TigerConstants.RELATIONSHIP_PSS_AFFECTEDITEM + \"].to.id\");\n\n StringBuffer sbProjectIDList = new StringBuffer();\n StringBuffer sbProjectRelIDList = new StringBuffer();\n int nProjectCountPerCR = 0;\n\n Iterator itrAffectedItemList = slAffectedItemList.iterator();\n while (itrAffectedItemList.hasNext()) {\n String strAffectedItemObjectId = (String) itrAffectedItemList.next();\n DomainObject domAffectedItemObject = DomainObject.newInstance(context, strAffectedItemObjectId);\n\n pss.ecm.MultiProgramChange_mxJPO multiProjramObj = new pss.ecm.MultiProgramChange_mxJPO();\n MapList mlConnectedProgramProjects = multiProjramObj.getConnectedProjectFromAffectedItem(context, domAffectedItemObject, DomainObject.EMPTY_STRING, 0);\n // PCM2.0 TIGTK-10418: 9/10/2017:START\n if (mlConnectedProgramProjects != null) {\n // PCM2.0 TIGTK-10418: 9/10/2017:END\n int intProgramProjectCount = mlConnectedProgramProjects.size();\n for (int cntProg = 0; cntProg < intProgramProjectCount; cntProg++) {\n Map mProgProj = (Map) mlConnectedProgramProjects.get(cntProg);\n String strProgramProjectId = (String) mProgProj.get(\"id\");\n // RE:TIGTK-6897:19/9/2017:Start\n String strRelId = (String) mProgProj.get(DomainConstants.SELECT_RELATIONSHIP_ID);\n sbProjectRelIDList.append(strRelId);\n sbProjectRelIDList.append(\",\");\n // RE:TIGTK-6897:19/9/2017:End\n sbProjectIDList.append(strProgramProjectId);\n sbProjectIDList.append(\",\");\n nProjectCountPerCR++;\n }\n }\n }\n\n StringBuffer sbFormAction = new StringBuffer();\n // TIGTK-16067:16-07-2018:STARTS\n if (nProjectCountPerCR == 0) {\n sbFormAction.append(nProjectCountPerCR);\n } else {\n // TIGTK-16067:16-07-2018:ENDS\n sbFormAction.append(\"<input id='projectInput\");\n sbFormAction.append(nCRCount);\n sbFormAction.append(\"' type='hidden' value='\");\n sbFormAction.append(sbProjectIDList.toString());\n // RE:TIGTK-6897:19/9/2017:Start\n sbFormAction.append(\"'/><input id='projectRelInput\");\n sbFormAction.append(nCRCount);\n sbFormAction.append(\"' type='hidden' value='\");\n sbFormAction.append(sbProjectRelIDList.toString());\n // RE:TIGTK-6897:19/9/2017:End\n sbFormAction.append(\"'/><a onclick=\\\"showModalDialog('../enterprisechangemgt/PSS_ECMAffectedProjectSummary.jsp?selectedRowNo=\");\n sbFormAction.append(nCRCount);\n sbFormAction.append(\"&amp;mode=\");\n sbFormAction.append(strMode);\n // RE:TIGTK-6897:19/9/2017:Start\n sbFormAction.append(\"&amp;objectId=\");\n sbFormAction.append(strCRObjectId);\n // RE:TIGTK-6897:19/9/2017:End\n\n sbFormAction.append(\"&amp;program=PSS_enoECMChangeUtil:getProjectList', 800, 600, true)\\\">\");\n sbFormAction.append(nProjectCountPerCR);\n sbFormAction.append(\"</a>\");\n }\n vProjectCountList.add(sbFormAction.toString());\n nCRCount++;\n }\n\n } catch (Exception ex) {\n logger.error(\"Error in pss.slc.ui.SLCUIUtil:getAIRelatedProjectCounts:ERROR \", ex);\n throw ex;\n }\n return vProjectCountList;\n }", "int countByExample(ProjGroupExample example);", "int getTaskDetailsCount();", "int getFundsCount();", "int getFundsCount();", "int getPackagesCount();", "@ApiModelProperty(value = \"Count of private projects.\")\n\t@JsonProperty(\"privateProjectCount\")\n\tpublic Integer getPrivateProjectCount() {\n\t\treturn privateProjectCount;\n\t}", "int getStagesCount();", "int getTaskIdCount();", "int countByExample(UserOperateProjectExample example);", "int getUserQuestJobsCount();", "int getJobsCount();", "int getJobsCount();", "int getJobsCount();", "@Override @Basic\r\n\tpublic int getNbProjectiles() {\r\n\t\treturn this.nbProjectiles;\r\n\t}", "@Override\n public int getItemCount() {\n return projects.size();\n }", "long countByExample(CliStaffProjectExample example);", "int getExperiencesCount();", "int getTotalCount();", "int getQuestCount();", "@Override\n\tpublic int QueryProductProjectWithSuiteCount(int productProjectId, int testSuiteId, String testSuiteName) {\n\t\treturn productProjectWithSuiteDAO.QueryProductProjectWithSuiteCount(productProjectId, testSuiteId, testSuiteName);\n\t}", "int findAllCount() ;", "int getVersionsCount();", "private void displayAllProjects() {\n for(Project projects: Project.totalProjects){\n projects.displayProject();\n System.out.println(\"Popularity\\t\\t: \" + projects.getPopularityCounter());\n }\n }", "@Transactional\n\tpublic Integer countLabConstructUsers() {\n\t\treturn ((Long) labConstructUserDAO.createQuerySingleResult(\"select count(o) from LabConstructUser o\").getSingleResult()).intValue();\n\t}", "long countWorkflows();", "int getCazuriCount();", "public int get_count();", "@Override\n public int getCount() {\n return dataProjectList.size();\n }", "int getPickupsCount();", "int getExperimentsCount();", "public int getProblemCount();", "int getPersonInfoCount();", "private static void updateCounters() {\n\t\tongoingProjectsLabel.setText(\"Ongoing Projects (\" + portfolio.getOngoingCount() + \")\");\n\t\tfinishedProjectsLabel.setText(\"Finished Projects (\" + portfolio.getFinishedCount() + \")\");\n\t}", "public int getProjectileCount() {\n\t\treturn projectileCount;\n\t}", "Long getAllCount();", "public int getNumGruppoPacchetti();", "long getTotalProductsCount();", "int getJarCount();", "@Query(value = \"select count(termLang) from TermLang termLang where termLang.value is not null and termLang.projectLangId in \" +\n \"(select projectLang.id from ProjectLang projectLang where projectLang.projectId = :projectId and projectLang.isDeleted = false \" +\n \"and termLang.term.id in (select term.id from Term term where termLang.term.id = term.id and term.isDeleted = false) )\")\n long countAllTranslation(long projectId);", "public int getTravelGroupListCount(Map conditions);", "int getSeasonShareCount();", "int postsCount();", "int getInfoCount();", "int getInfoCount();", "int getInfoCount();", "int getVulnerabilityReportsCount();", "public int getPublishedModulesCounts(String buildName, String date) {\n ResultSet rs = null;\n String buildQuery = \"SELECT count(*) as cnt FROM build_modules\\n\" +\n \"left join builds on builds.build_id=build_modules.build_id \\n\" +\n \"where builds.build_number=? and builds.build_date=?\";\n try {\n rs = jdbcHelper.executeSelect(buildQuery,buildName,date);\n if (rs.next()) {\n return rs.getInt(1);\n }\n } catch (SQLException e) {\n log.error(e.toString());\n } finally {\n DbUtils.close(rs);\n }\n return 0;\n }", "public int getProjectsFinishedToday() {\n\t\treturn Today;\n\t}", "int getFHPackagesCount();", "int getEducationsCount();", "int getProfilesCount();", "public int getProductCount();", "@Override\n\tpublic int countTeam() {\n\t\treturn 0;\n\t}", "int getDetailsCount();", "int getDetailsCount();", "@Override\n\tpublic int selectCount() {\n\n\t\tint res = session.selectOne(\"play.play_count\");\n\n\t\treturn res;\n\t}", "long countNumberOfProductsInDatabase();", "@Override\n\tpublic int countPro() {\n\t\treturn productSubMapper.selectCountPro();\n\t}", "public int countEntityActiveAndProjectIDAndIsCurrentVersion(Project project, Boolean entityActive, boolean isCurrentVersion){\n TypedQuery<Artefact> query = em.createNamedQuery(\"Artefact.findByEntityActiveAndProjectIDAndIsCurrentVersion\", Artefact.class);\n query.setParameter(\"projectID\", project);\n query.setParameter(\"entityActive\", entityActive);\n query.setParameter(\"isCurrentVersion\", isCurrentVersion);\n List<Artefact> results = query.getResultList();\n return results.size();\n }", "int getDeliveriesCount();", "public int getReportCount ()\n {\n return reportCount;\n }", "@Override\n\tpublic List<ProjectInfo> findAllProject() {\n\t\treturn sqlSession.selectList(\"cn.sep.samp2.project.findAllProject\");\n\t}", "int getStatusCount();", "public int count()\r\n {\r\n return this.classNameToJavaSourceFileMap.size();\r\n }", "int getDocumentCount();", "int getEntryCount();", "public int getProjectCommitCount(int pgId) {\n int commitNumber = 0;\n String sql = \"SELECT commitNumber from Project_Commit_Record a where (a.commitNumber = \"\n + \"(SELECT max(commitNumber) FROM Project_Commit_Record WHERE auId = ?));\";\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n commitNumber = rs.getInt(\"commitNumber\");\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return commitNumber;\n }", "int getInCount();", "int getResultsCount();", "int getResultsCount();", "int getApplicationsCount();", "public Integer getProjlimit() {\n return projlimit;\n }", "int getSystemCount();", "public int countByG_UT(long groupId, String urlTitle);", "int getServicesCount();", "int getServicesCount();", "@Override\n\tpublic Integer findCount() {\n\t\tInteger total;\n\t\tString hql=\"from Commodity\";\n\t\tList<Commodity> commoditylist=(List<Commodity>) this.getHibernateTemplate().find(hql, null);\n\t\ttotal=commoditylist.size();\n\t\treturn total;\n\t}", "int getListCount();", "int getReservePokemonCount();", "long getNumberOfComparisons();", "public int getPackageCount() {\r\n return myPackages.size();\r\n }", "@Override\n public int countAll() {\n\n Query qry = this.em.createQuery(\n \"select count(assoc) \" +\n \"from WorkToSubjectEntity assoc\");\n\n return ((Long) qry.getSingleResult()).intValue();\n }", "public int count() {\n\t\treturn sm.selectOne(\"com.lanzhou.entity.Longpay.count\");\n\t}", "public int countList() {\n return tasks.size();\n }", "int getEnvCount();" ]
[ "0.8218887", "0.78305507", "0.76767486", "0.7544561", "0.7425583", "0.73999214", "0.7284852", "0.6999945", "0.6863818", "0.68174356", "0.6733762", "0.67061657", "0.66487795", "0.6632777", "0.6597387", "0.65935206", "0.6588647", "0.65824056", "0.65824056", "0.6532173", "0.65112054", "0.6458022", "0.64455485", "0.6431341", "0.64096415", "0.6392715", "0.6392715", "0.6392715", "0.6357281", "0.63475996", "0.6307104", "0.63016635", "0.6282234", "0.62813294", "0.62768567", "0.62514216", "0.62284476", "0.62205505", "0.62095135", "0.62004274", "0.6160892", "0.6138296", "0.61339885", "0.6102324", "0.609658", "0.6082219", "0.6068998", "0.6062797", "0.60537666", "0.6042439", "0.6029973", "0.60277754", "0.6022484", "0.6020317", "0.6018219", "0.601613", "0.6008678", "0.6007675", "0.6007675", "0.6007675", "0.59959745", "0.59955025", "0.59816515", "0.5980504", "0.5977136", "0.59581083", "0.5934951", "0.59282106", "0.5918766", "0.5918766", "0.5918732", "0.591443", "0.58867383", "0.58845115", "0.58834714", "0.5882528", "0.5865179", "0.5862658", "0.5855176", "0.58515316", "0.584654", "0.58443487", "0.58404374", "0.58344537", "0.58344537", "0.58271754", "0.58184606", "0.581476", "0.5806409", "0.5800808", "0.5800808", "0.57947075", "0.5781667", "0.57808197", "0.5765398", "0.5757639", "0.5756163", "0.5756081", "0.575458", "0.5746091" ]
0.8366669
0
get the project based on the state
public List<Project> findByStates(States states){ if(states != null){ return projectRepository.findByStates(states); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Project getProject() {\n if (ProjectList.size() == 0) {\n System.out.print(\"No Projects were found.\");\n return null;\n }\n\n System.out.print(\"\\nPlease enter the project number: \");\n int projNum = input.nextInt();\n input.nextLine();\n\n for (Project proj : ProjectList) {\n if (proj.projNum == projNum) {\n return proj;\n }\n }\n\n System.out.print(\"\\nProject was not found. Please try again.\");\n return getProject();\n }", "private Project getProject(ActivityDTO dto) {\n\t\treturn projectDAO.findById(dto.getProjectId()).get();\n//\t\treturn projectDAO.getOne(dto.getProjectId());\n\t}", "public Project getProject(Long projectId);", "HibProject getProject(InternalActionContext ac);", "public IProject getProject();", "public Project getProjectByName(String name);", "Project getProject();", "public FlexoProject getProject() {\n \t\treturn findCurrentProject();\n \t}", "public Project getProject()\n {\n \treturn project;\n }", "Project findProjectById(String projectId);", "public ProjectState getState() {\n return state;\n }", "public Project getProject() {\r\n return project;\r\n }", "private Project getProject(ModelInfo<Project> info) {\n return data.get(info);\n }", "public Project getProject()\n {\n return project;\n }", "public ProjectModel getCurrentProject() {\n if (projects.size() > 0) {\n return projects.get(0);\n }\n else return null;\n }", "public Project getTasks(String projectId) {\n try {\n\n String selectProject = \"select * from PROJECTS where PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(selectProject);\n ps.setString(1, projectId);\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n String startdate = rs.getString(\"STARTDATE\");\n String invoicesent = rs.getString(\"INVOICESENT\");\n String hours = rs.getString(\"HOURS\");\n String client = \"\";\n String duedate = rs.getString(\"DUEDATE\");\n String description = rs.getString(\"DESCRIPTION\");\n Project p = new Project(client, description, projectId,\n duedate, startdate, hours, duedate, duedate,\n invoicesent, invoicesent);\n rs.close();\n ps.close();\n return p;\n } else {\n return null;\n }\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }", "public Project getProject(String name){\n\t\tfor ( Project p : m_Projects){\n\t\t\tif(p.getName().equals(name)) return p;\n\t\t}\n\t\treturn null;\n\t}", "public abstract ProjectBean getSystemProject();", "public jkt.hrms.masters.business.MstrProject getProject () {\n\t\treturn project;\n\t}", "public Project getProject() {\n return project;\n }", "public Project getProject() {\n return project;\n }", "public static final String getProject() { return project; }", "public static final String getProject() { return project; }", "Project getById(Long id);", "com.appscode.api.auth.v1beta1.Project getProject();", "private Project compileProject() {\n\t\t\tProject p = null;\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new OngoingProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pDeadline.getText()), Double.parseDouble(pBudget.getText()), Integer.parseInt(pCompletion.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new FinishedProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pEndDate.getText()), Double.parseDouble(pTotalCost.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\n\t\t\treturn p;\n\t\t}", "public boolean getProjectState(final Project project) {\n\t\tboolean active;\n\t\tif (project == null) {\n\t\t\tmainController.getNotificationAUI().showNotification(\"Es wurde kein projekt übergeben!\", true);\n\t\t\tnotificationAUI.showNotification(\"\", true);\n\t\t\tactive = false;\n\t\t} else {\n\t\t\tactive = project.isActive();\n\t\t}\n\t\treturn active;\n\t}", "public Project getProject(){\n\t\treturn this.project;\n\t}", "Project findProjectById(Long projectId);", "@Override\n\tpublic Project getProjectByName(String name) {\n\t\treturn projectDao.getProjectByName(name);\n\t}", "@Override\r\n\tpublic List<Project> findProject() {\n\t\treturn iSearchSaleRecordDao.findProject();\r\n\t}", "public IProject getProject() {\n\treturn this.project;\n }", "public Project getProject(int projectId) throws EmployeeManagementException;", "ProjectRepresentation getWorkingProject();", "@Override\n\tpublic IProject getProject() {\n\t\treturn fProject;\n\t}", "@Override\n\tpublic List<ProjectInfo> findAllProject() {\n\t\treturn sqlSession.selectList(\"cn.sep.samp2.project.findAllProject\");\n\t}", "public Project getProject() {\n\t\treturn project;\n\t}", "public IProject getProject() {\n return mProject;\n }", "Project createProject();", "Project createProject();", "Project createProject();", "public Subproject drawProject() {\n\t\tSubproject result=projectsAvailable.get(0);\n\t\tprojectsAvailable.remove(result);\n\t\tprojectsActive.add(result);\n\t\treturn result;\n\t}", "private ProjectMgr getPmNameTrueLoadActualProject() {\n ProjectMgr pm = null;\n try {\n pm = new ProjectMgr(\"Example\", true);\n\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n }\n\n IOException e;\n return pm;\n }", "Project getByPrjNumber(Integer num);", "java.lang.String getProjectId();", "public Project getProject()\n\t{\n\t\treturn this.project;\n\t}", "@Override\n\tpublic List<ProjectInfo> findProject(ProjectInfo project) {\n\t\treturn sqlSession.selectList(\"cn.sep.samp2.project.findProject\",project);\n\t}", "public static Object getActiveGISProject() {\r\n Project project = ProjectPlugin.getPlugin().getProjectRegistry().getCurrentProject();\r\n \r\n if (project != null)\r\n return project;\r\n \r\n return ProjectPlugin.getPlugin().getProjectRegistry().getDefaultProject();\r\n }", "public IProject getNewProject() {\r\n\t\treturn newProject;\r\n\t}", "private ModelInfo<Project> getProjectInfo(String projectName) {\n return name2Info.get(projectName);\n }", "public ProjectFile getProject()\r\n {\r\n return m_project;\r\n }", "@GetMapping(\"/byName\")\r\n\tpublic List<Project> getProject(Principal principal) {\r\n\t\treturn persistenceService.getProject(AppBuilderUtil.getLoggedInUserId());\r\n\t}", "public void querySubProjects() {\r\n\t\t// Create a task\r\n\t\tProject master = new Project();\r\n\t\tmaster.setName(\"INFRASTRUCTURE\");\r\n\t\tmaster.setDisplayName(\"Infrastructure\");\r\n\t\tmaster.setDescription(\"Project to setup the new infrastructure\");\r\n\t\tmaster = (Project) aggregateService.create(master, new Settings());\t\r\n\r\n\t\t// Create 2 dependents\r\n\t\tProject A = new Project();\r\n\t\tA.setName(\"SETUP_NETWORK\");\r\n\t\tA.setDisplayName(\"Setup network\");\r\n\t\tA.setDescription(\"Project to lay the network cables and connect to routers\");\r\n\t\tA = (Project) aggregateService.create(A, new Settings());\r\n\r\n\t\tProject B = new Project();\r\n\t\tB.setName(\"SETUP_TELEPHONE\");\r\n\t\tB.setDisplayName(\"Setup telephone\");\r\n\t\tB.setDescription(\"Setup the telephone at each employee desk\");\r\n\t\tB = (Project) aggregateService.create(B, new Settings());\r\n\r\n\t\tMap<String, Project> subProjects = new HashMap<String, Project>();\r\n\t\tsubProjects.put(A.getName(), A);\r\n\t\tsubProjects.put(B.getName(), B);\r\n\t\tmaster.setSubProjects(subProjects);\r\n\t\tmaster = (Project) aggregateService.read(master, getSettings());\t\t\r\n\r\n\t\t// query the task object\r\n\t\tSettings settings = new Settings();\r\n\t\tsettings.setView(aggregateService.getView(\"SUBPROJECTS\"));\t\t\r\n\t\tList<?> toList = aggregateService.query(master, settings);\r\n\r\n\t\tassert(toList.size() == 1);\t\t\r\n\r\n\t\tObject obj = toList.get(0);\r\n\t\tassert(Project.class.isAssignableFrom(obj.getClass()));\r\n\r\n\t\tProject root = (Project) obj;\r\n\t\tassert(root.getSubProjects() != null && root.getSubProjects().size() == 2);\r\n\t\tassert(root.getSubProjects().get(\"SETUP_NETWORK\").getName().equals(\"SETUP_NETWORK\"));\r\n\t\tassert(root.getSubProjects().get(\"SETUP_TELEPHONE\").getName().equals(\"SETUP_TELEPHONE\"));\t\t\r\n\t}", "public String getProjectName(){\n return projectModel.getProjectName();\n }", "private static Project findProject(String name) {\r\n \t\tfor (Project project : ProjectPlugin.getPlugin().getProjectRegistry().getProjects()) {\r\n \t\t\tif (project.getName().equals(name)) {\r\n \t\t\t\treturn project;\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\r\n \t}", "public abstract KenaiProject[] getDashboardProjects(boolean onlyOpened);", "public ProjectInfo getProjectInfo()\n {\n\treturn c_projectInfo;\n }", "@Override\n\tpublic Project getProjectById(int id) {\n\t\treturn projectDao.getProjectById(id);\n\t}", "String getProjectName();", "public Tbl_Projects getProjectInforFromPMS(String projectName) throws AncestryException\n\t{\n\t\tTbl_Projects project = new Tbl_Projects();\n\t\tConnection con = null;\n\t\tResultSet rs = null;\n\t\tString sql = \"\";\n\t\ttry {\n\t\t\tsql = \"SELECT proj_serverip ,proj_schema , proj_dbname , proj_uid , proj_pwd FROM tbl_projects p WHERE proj_name='\"+projectName+\"'\";\n\t\t\tcon = db.getConPMSByHost(db.host);\n\t\t\trs = JdbcHelper.queryToResultset(con, sql);\n\t\t\tif(rs.next()) {\n\t\t\t\tproject.setProj_serverip(rs.getString(\"proj_serverip\"));\n\t\t\t\tproject.setProj_dbname(rs.getString(\"proj_dbname\"));\n\t\t\t\tproject.setProj_uid(rs.getString(\"proj_uid\"));\n\t\t\t\tproject.setProj_pwd(rs.getString(\"proj_pwd\"));\n\t\t\t\tproject.setProj_schema(rs.getString(\"proj_schema\"));\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new AncestryException(\"getProjectInforFromPMS : \" + e.toString() ,e);\n\t\t}\n\t\tfinally {\n\t\t\tJdbcHelper.closeRS(rs);\n\t\t\tJdbcHelper.close(con);\n\t\t}\n\t\treturn project;\n\t}", "public static IProject getSelectedProject() {\n\t\tIProject activeProject = null;\n\t\tIWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tISelectionService selectionService = window.getSelectionService();\n\t\tISelection selection = selectionService.getSelection(IPageLayout.ID_PROJECT_EXPLORER);\n\t\tif (selection instanceof StructuredSelection) {\n\t\t\tIResource resource = (IResource) ((StructuredSelection) selection).getFirstElement();\n\t\t\tactiveProject = resource.getProject();\n\t\t}\n\t\t\n\t\treturn activeProject;\n\t}", "public void getProject(){\n\t\n\t String getList[] = clientFacade.GetProjects().split(\"\\n\");\n\t DefaultComboBoxModel addPro = new DefaultComboBoxModel();\n\t\tfor(int i=1; i<getList.length; i+=2) \n\t\t\t addPro.addElement(getList[i]);\n\t\t\t \n\t\tcPro.setModel(addPro);\t\n\t}", "public abstract KenaiProject getKenaiProject(String url, String projectName) throws IOException;", "LectureProject createLectureProject();", "public Project createProjectFromPRJ() {\n\n\t\tSystem.out.println(\"Trying to load prj file with : \" + data_path + \" \" + projectName + \" \" + conceptName + \" \");\n\n\t\tProject project = null;\n\n\t\ttry {\n\n\t\t\tproject = new Project(data_path + projectName);\n\n\t\t\t// Sehr wichtig hier das Warten einzubauen, sonst gibts leere\n\t\t\t// Retrieval Results, weil die Faelle noch nicht geladen sind wenn\n\t\t\t// das\n\t\t\t// Erste Retrieval laueft\n\t\t\twhile (project.isImporting()) {\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\"); // console pretty print\n\t\t} catch (Exception ex) {\n\n\t\t\tSystem.out.println(\"Error when loading the project\");\n\t\t}\n\t\treturn project;\n\t}", "public String getProjectName() { return DBCurrent.getInstance().projectName(); }", "public String getProjectName() { return DBCurrent.getInstance().projectName(); }", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/projects/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Project> readProject(\n @Path(\"name\") String name);", "public abstract KenaiProject getKenaiProjectForRepository(String repositoryUrl) throws IOException;", "public static Project get(String name, Output<String> id, @Nullable ProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {\n return new Project(name, id, state, options);\n }", "public ProjectBean getProject2(String projectIdentifier) {\n List<Experiment> experiments =\n this.getOpenBisClient().getExperimentsForProject3(projectIdentifier);// TODO changed this\n // from\n // getExperimentsForProject2\n\n float projectStatus = this.getOpenBisClient().computeProjectStatus(experiments);\n\n Project project = getOpenbisDtoProject(projectIdentifier);\n if (project == null) {\n project = getOpenBisClient().getProjectByIdentifier(projectIdentifier);\n addOpenbisDtoProject(project);\n }\n ProjectBean newProjectBean = new ProjectBean();\n\n ProgressBar progressBar = new ProgressBar();\n progressBar.setValue(projectStatus);\n\n Date registrationDate = project.getRegistrationDetails().getRegistrationDate();\n\n String pi = getDatabaseManager().getPersonDetailsForProject(project.getIdentifier(), \"PI\");\n String cp = getDatabaseManager().getPersonDetailsForProject(project.getIdentifier(), \"Contact\");\n String manager =\n getDatabaseManager().getPersonDetailsForProject(project.getIdentifier(), \"Manager\");\n\n String longDesc = getDatabaseManager().getLongProjectDescription(project.getIdentifier());\n\n if (pi.equals(\"\")) {\n newProjectBean.setPrincipalInvestigator(\"n/a\");\n } else {\n newProjectBean.setPrincipalInvestigator(pi);\n }\n\n if (cp.equals(\"\")) {\n newProjectBean.setContactPerson(\"n/a\");\n } else {\n newProjectBean.setContactPerson(cp);\n }\n\n if (manager.equals(\"\")) {\n newProjectBean.setProjectManager(\"n/a\");\n } else {\n newProjectBean.setProjectManager(manager);\n }\n\n if (longDesc == null)\n longDesc = \"\";\n\n newProjectBean.setLongDescription(longDesc);\n\n newProjectBean.setId(project.getIdentifier());\n newProjectBean.setCode(project.getCode());\n String desc = project.getDescription();\n if (desc == null)\n desc = \"\";\n newProjectBean.setDescription(desc);\n newProjectBean.setRegistrationDate(registrationDate);\n newProjectBean.setProgress(progressBar);\n newProjectBean.setRegistrator(project.getRegistrationDetails().getUserId());\n newProjectBean.setContact(project.getRegistrationDetails().getUserEmail());\n\n // Create sample Beans (or fetch them) for samples of experiments\n List<Sample> allSamples = this.getOpenBisClient()\n .getSamplesWithParentsAndChildrenOfProjectBySearchService(projectIdentifier);\n\n BeanItemContainer<ExperimentBean> experimentBeans =\n new BeanItemContainer<ExperimentBean>(ExperimentBean.class);\n\n AlternativeSecondaryNameCreator altNameCreator = new AlternativeSecondaryNameCreator(\n openBisClient.getVocabCodesAndLabelsForVocab(\"Q_NCBI_TAXONOMY\"));\n for (Experiment experiment : experiments) {\n ExperimentBean newExperimentBean = new ExperimentBean();\n\n // TODO doesn't work with getExperimentsForProject2\n Map<String, String> assignedProperties = experiment.getProperties();\n\n String status = \"\";\n\n if (assignedProperties.keySet().contains(\"Q_CURRENT_STATUS\")) {\n status = assignedProperties.get(\"Q_CURRENT_STATUS\");\n }\n\n else if (assignedProperties.keySet().contains(\"Q_WF_STATUS\")) {\n status = assignedProperties.get(\"Q_WF_STATUS\");\n }\n\n List<Sample> samples = new ArrayList<Sample>();\n for (Sample s : allSamples) {\n if (s.getExperimentIdentifierOrNull().equals(experiment.getIdentifier()))\n samples.add(s);\n }\n BeanItemContainer<SampleBean> sampleBeans =\n new BeanItemContainer<SampleBean>(SampleBean.class);\n for (Sample sample : samples) {\n SampleBean sbean = new SampleBean();\n sbean.setId(sample.getIdentifier());\n sbean.setCode(sample.getCode());\n sbean.setType(sample.getSampleTypeCode());\n sbean.setProperties(sample.getProperties());\n sbean.setParents(this.getOpenBisClient().getParentsBySearchService(sample.getCode())); //changed by cfh \n sampleBeans.addBean(sbean);\n }\n newExperimentBean.setSamples(sampleBeans);\n\n newExperimentBean.setAltNameCreator(altNameCreator);\n newExperimentBean.setProperties(assignedProperties);\n newExperimentBean.setSecondaryName(assignedProperties.get(\"Q_SECONDARY_NAME\"));\n newExperimentBean.setId(experiment.getIdentifier());\n newExperimentBean.setCode(experiment.getCode());\n newExperimentBean.setType(experiment.getExperimentTypeCode());\n newExperimentBean.setRegistrator(experiment.getRegistrationDetails().getUserId());\n newExperimentBean\n .setRegistrationDate(experiment.getRegistrationDetails().getRegistrationDate());\n newExperimentBean.setStatus(status);\n experimentBeans.addBean(newExperimentBean);\n }\n\n List<ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.DataSet> projectData = this\n .getOpenBisClient().getDataSetsOfProjectByIdentifierWithSearchCriteria(projectIdentifier);\n\n Boolean containsData = false;\n Boolean containsResults = false;\n Boolean attachmentResult = false;\n // Boolean containsAttachments = false;\n\n for (ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.DataSet ds : projectData) {\n attachmentResult = false;\n if (ds.getDataSetTypeCode().equals(\"Q_PROJECT_DATA\")) {\n attachmentResult = ds.getProperties().get(\"Q_ATTACHMENT_TYPE\").equals(\"RESULT\");\n }\n\n if (!(ds.getDataSetTypeCode().equals(\"Q_PROJECT_DATA\"))\n && !(ds.getDataSetTypeCode().contains(\"RESULTS\"))) {\n containsData = true;\n } else if (ds.getDataSetTypeCode().contains(\"RESULTS\") || attachmentResult) {\n containsResults = true;\n } // else if (ds.getDataSetTypeCode() == \"Q_PROJECT_DATA\") {\n // containsAttachments = true;\n // }\n }\n\n newProjectBean.setContainsData(containsData);\n newProjectBean.setContainsResults(containsResults);\n // newProjectBean.setContainsAttachments(containsAttachments);\n\n newProjectBean.setExperiments(experimentBeans);\n newProjectBean.setMembers(new HashSet<String>());\n\n String secondaryName = getDatabaseManager().getProjectName(projectIdentifier);\n if (secondaryName == null || secondaryName.isEmpty())\n secondaryName = \"n/a\";\n\n newProjectBean.setSecondaryName(secondaryName);\n return newProjectBean;\n }", "java.lang.String getProjectName();", "public Project getProjectDetails(String id) {\n\t\tProject pro;\n\t\tObject name = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet res = null;\n\t\tpro = null;\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tcon = DBUtility.getConnection();\n\t\t\t\tString sql = \"select * from project_master where project_id='\"\n\t\t\t\t\t\t+ id + \"'\";\n\t\t\t\tst = con.prepareStatement(sql);\n\t\t\t\tres = st.executeQuery(sql);\n\t\t\t\tif (res.next()) {\n\t\t\t\t\tpro = new Project();\n\t\t\t\t\tpro.setPro_name(res.getString(\"project_name\"));\n\t\t\t\t\tpro.setSite_addr(res.getString(\"project_location\"));\n\t\t\t\t\tpro.setC_name(res.getString(\"client_name\"));\n\t\t\t\t\tpro.setDate(res.getString(\"project_date\"));\n\t\t\t\t\tpro.setSite_details(res.getString(\"project_details\"));\n\t\t\t\t\tpro.setSite_no_floors(res.getString(\"project_no_floor\"));\n\t\t\t\t\tpro.setSite_no_units(res.getString(\"project_no_unit\"));\n\t\t\t\t\tpro.setGar_name(res.getString(\"gar_name\"));\n\t\t\t\t\tpro.setGar_rel(res.getString(\"gar_rel\"));\n\t\t\t\t\tpro.setMunicipality(res.getString(\"municipality\"));\n\t\t\t\t\tpro.setWord_no(res.getString(\"word_no\"));\n\t\t\t\t\tpro.setPro_typ(res.getString(\"project_type\"));\n\t\t\t\t\tpro.setContact1(res.getString(\"Contact1\"));\n\t\t\t\t\tpro.setContact2(res.getString(\"Contact2\"));\n\t\t\t\t\tpro.setEmail1(res.getString(\"Email1\"));\n\t\t\t\t\tpro.setEmail2(res.getString(\"Email2\"));\n\t\t\t\t}\n\t\t\t} catch (SQLException s) {\n\t\t\t\ts.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t\treturn null;\n\t\t\t} catch (NamingException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t}\n\t\t} finally {\n\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t}\n\t\treturn pro;\n\t}", "public List<ProjectEntity> getProjectByName() {\n\t\treturn null;\n\t}", "public Project getProject() {\n\t\treturn bnd.getProject();\n\t}", "@Override\n public Project getProject() {\n return super.getProject();\n }", "public Project findProjectById(String projectId) {\n\t\tProject project = null;\r\n\t\tString query = \"SELECT FROM TA_PROJECTS WHERE PROJECT_ID='\" + projectId + \"'\";\r\n\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(query);\r\n\t\twhile(srs.next()){\r\n\t\t\tproject = new Project();\r\n\t\t\tproject.setProjectID(srs.getString(1));\r\n\t\t\tproject.setProjectName(srs.getString(2));\r\n\t\t\tproject.setManagerID(srs.getString(3));\r\n\t\t}\r\n\t\treturn project;\r\n\t}", "public abstract List<ProjectBean> getProjectList();", "@Override\n\tpublic Project getProjectById(int id) {\n\t\treturn null;\n\t}", "@Override\r\n\tString getProjectName();", "public ArrayList<Project> getProjectName() {\n\t\tArrayList<Project> projectDaoList;\n\t\tprojectDaoList = new ArrayList<Project>();\n\t\tConnection con = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet res = null;\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tcon = DBUtility.getConnection();\n\t\t\t\tString sql = \"select * from project_master\";\n\t\t\t\tst = con.prepareStatement(sql);\n\t\t\t\tres = st.executeQuery(sql);\n\t\t\t\twhile (res.next()) {\n\t\t\t\t\tProject pdao = new Project();\n\t\t\t\t\tpdao.setId(res.getString(\"project_id\"));\n\t\t\t\t\tpdao.setPro_name(res.getString(\"project_name\"));\n\t\t\t\t\tpdao.setSite_addr(res.getString(\"project_location\"));\n\t\t\t\t\tpdao.setC_name(res.getString(\"client_name\"));\n\t\t\t\t\tpdao.setMunicipality(res.getString(\"municipality\"));\n\t\t\t\t\tpdao.setWord_no(res.getString(\"word_no\"));\n\t\t\t\t\tpdao.setGar_name(res.getString(\"gar_name\"));\n\t\t\t\t\tpdao.setGar_rel(res.getString(\"gar_rel\"));\n\t\t\t\t\tprojectDaoList.add(pdao);\n\t\t\t\t}\n\t\t\t} catch (SQLException s) {\n\t\t\t\ts.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t\treturn null;\n\t\t\t} catch (NamingException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t}\n\t\t} finally {\n\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t}\n\t\treturn projectDaoList;\n\t}", "protected Project getProject() {\n return getConfiguration().getProject();\n }", "void projectFound( String key ){\n projectInProgress = new Project();\n }", "public ProjectBean getProjectFromDB(String projectIdentifier) {\n List<Experiment> experiments =\n this.getOpenBisClient().getExperimentsForProject2(projectIdentifier);\n\n float projectStatus = this.getOpenBisClient().computeProjectStatus(experiments);\n\n Project project = getOpenBisClient().getProjectByIdentifier(projectIdentifier);\n dtoProjects.put(projectIdentifier, project);\n\n ProjectBean newProjectBean = new ProjectBean();\n\n ProgressBar progressBar = new ProgressBar();\n progressBar.setValue(projectStatus);\n\n Date registrationDate = project.getRegistrationDetails().getRegistrationDate();\n\n String pi = getDatabaseManager().getPersonDetailsForProject(project.getIdentifier(), \"PI\");\n String cp = getDatabaseManager().getPersonDetailsForProject(project.getIdentifier(), \"Contact\");\n String manager = getDatabaseManager().getPersonDetailsForProject(project.getIdentifier(), \"Manager\"); \n String longDesc = getDatabaseManager().getLongProjectDescription(project.getIdentifier());\n\n if (pi.equals(\"\")) {\n newProjectBean.setPrincipalInvestigator(\"n/a\");\n } else {\n newProjectBean.setPrincipalInvestigator(pi);\n }\n\n if (cp.equals(\"\")) {\n newProjectBean.setContactPerson(\"n/a\");\n } else {\n newProjectBean.setContactPerson(cp);\n }\n\n if (manager.equals(\"\")) {\n newProjectBean.setProjectManager(\"n/a\");\n } else {\n newProjectBean.setProjectManager(manager);\n }\n\n String secondaryName = getDatabaseManager().getProjectName(projectIdentifier);\n if (secondaryName == null || secondaryName.isEmpty())\n secondaryName = \"n/a\";\n newProjectBean.setSecondaryName(secondaryName);\n\n if (longDesc == null)\n longDesc = \"\";\n\n newProjectBean.setId(project.getIdentifier());\n newProjectBean.setCode(project.getCode());\n String desc = project.getDescription();\n if (desc == null)\n desc = \"\";\n newProjectBean.setDescription(desc);\n newProjectBean.setRegistrationDate(registrationDate);\n newProjectBean.setProgress(progressBar);\n newProjectBean.setRegistrator(project.getRegistrationDetails().getUserId());\n newProjectBean.setContact(project.getRegistrationDetails().getUserEmail());\n\n BeanItemContainer<ExperimentBean> experimentBeans =\n new BeanItemContainer<ExperimentBean>(ExperimentBean.class);\n\n for (Experiment experiment : experiments) {\n ExperimentBean newExperimentBean = new ExperimentBean();\n String status = \"\";\n\n Map<String, String> assignedProperties = experiment.getProperties();\n\n if (assignedProperties.keySet().contains(\"Q_CURRENT_STATUS\")) {\n status = assignedProperties.get(\"Q_CURRENT_STATUS\");\n }\n\n else if (assignedProperties.keySet().contains(\"Q_WF_STATUS\")) {\n status = assignedProperties.get(\"Q_WF_STATUS\");\n }\n\n // Image statusColor = new Image(status, this.setExperimentStatusColor(status));\n // statusColor.setWidth(\"15px\");\n // statusColor.setHeight(\"15px\");\n // statusColor.setCaption(status);\n\n newExperimentBean.setId(experiment.getIdentifier());\n newExperimentBean.setCode(experiment.getCode());\n newExperimentBean.setType(experiment.getExperimentTypeCode());\n newExperimentBean.setStatus(status);\n newExperimentBean.setRegistrator(experiment.getRegistrationDetails().getUserId());\n newExperimentBean\n .setRegistrationDate(experiment.getRegistrationDetails().getRegistrationDate());\n experimentBeans.addBean(newExperimentBean);\n }\n\n newProjectBean.setLongDescription(longDesc);\n\n List<ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.DataSet> projectData = this\n .getOpenBisClient().getDataSetsOfProjectByIdentifierWithSearchCriteria(projectIdentifier);\n\n Boolean containsData = false;\n Boolean containsResults = false;\n Boolean attachmentResult = false;\n // Boolean containsAttachments = false;\n\n for (ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.DataSet ds : projectData) {\n attachmentResult = false;\n if (ds.getDataSetTypeCode().equals(\"Q_PROJECT_DATA\")) {\n attachmentResult = ds.getProperties().get(\"Q_ATTACHMENT_TYPE\").equals(\"RESULT\");\n }\n\n if (!(ds.getDataSetTypeCode().equals(\"Q_PROJECT_DATA\"))\n && !(ds.getDataSetTypeCode().contains(\"RESULTS\"))) {\n containsData = true;\n } else if (ds.getDataSetTypeCode().contains(\"RESULTS\") || attachmentResult) {\n containsResults = true;\n } // else if (ds.getDataSetTypeCode() == \"Q_PROJECT_DATA\") {\n // containsAttachments = true;\n // }\n }\n\n newProjectBean.setContainsData(containsData);\n newProjectBean.setContainsResults(containsResults);\n\n newProjectBean.setExperiments(experimentBeans);\n newProjectBean.setMembers(new HashSet<String>());\n return newProjectBean;\n }", "public static MapList getCurrentUserProjects(Context context, String[] args) throws MatrixException {\n MapList projectList = new MapList();\n try {\n // rp3 : This needs to be tested to make sure the result creates no issue and returns the same set\n projectList = (MapList) JPO.invoke(context, \"emxProjectSpace\", null, \"getAllProjects\", args, MapList.class);\n\n // rp3 : Replace this code with the JPO invoke from the program central API.\n /*\n * com.matrixone.apps.common.Person person = (com.matrixone.apps.common.Person) DomainObject.newInstance(context, DomainConstants.TYPE_PERSON); com.matrixone.apps.program.ProjectSpace\n * project = (com.matrixone.apps.program.ProjectSpace) DomainObject.newInstance(context, DomainConstants.TYPE_PROJECT_SPACE,DomainConstants.PROGRAM);\n * \n * String ctxPersonId = person.getPerson(context).getId(); person.setId(ctxPersonId);\n * \n * //System.out.println(\"the project id is \" + ctxPersonId);\n * \n * StringList busSelects = new StringList(11); busSelects.add(project.SELECT_ID); busSelects.add(project.SELECT_TYPE); busSelects.add(project.SELECT_NAME);\n * busSelects.add(project.SELECT_CURRENT);\n * \n * //projectList = project.getUserProjects(context,person,null,null,null,null); // expand to get project members Pattern typePattern = new Pattern(DomainConstants.TYPE_PROJECT_SPACE);\n * typePattern.addPattern(DomainConstants.TYPE_PROJECT_CONCEPT);\n * \n * projectList = (person.getRelatedObjects( context, // context DomainConstants.RELATIONSHIP_MEMBER, // relationship pattern typePattern.getPattern(), // type filter. busSelects, //\n * business selectables null, // relationship selectables true, // expand to direction false, // expand from direction (short) 1, // level null, // object where clause null)); //\n * relationship where clause\n */\n\n // System.out.println(\"the project list is \" + projectList);\n } catch (Exception ex) {\n throw (new MatrixException(\"emxMsoiPMCUtil:getCurrentUserProjects : \" + ex.toString()));\n }\n return projectList;\n }", "public Model invoke(Model result) {\n if (result instanceof Project) {\n final Project project = (Project) result;\n YamlModelLoader.loadModels(\"project-data.yml\", new YamlModelLoader.Callback<Model>() {\n public Model invoke(Model result) {\n ProjectModel projectModel = (ProjectModel) result;\n projectModel.project = project;\n projectModel.account = project.account;\n return projectModel;\n }\n }, new YamlModelLoader.Callback<Model>() {\n public Model invoke(Model result) {\n // put template DefectStatus entities in the cache so we can use them later on\n if (result instanceof DefectStatus) {\n addCacheEntry(result.getClass().getName(), ((ProjectModel) result).project, result, templateDataCache);\n }\n return result;\n }\n }\n );\n \n return project;\n }\n return result;\n }", "public ProjectIdea getProjectIdea(int id){\n //String sql = \"SELECT * FROM project_idea WHERE idea_id = ?\";\n try{\n ProjectIdea result = super.queryForId(id);\n return result;\n } catch(SQLException e){\n System.out.println(e.getMessage());\n }\n return null;\n }", "public int getProjectID() {\n return projectID;\n }", "public Project getProjectById(String id) {\n\t\tSQLiteQueryBuilder q = new SQLiteQueryBuilder();\n\t\tq.setTables(Constants.TABLE_PROJECTS);\n\n\t\tCursor cursor = q.query(database, null, Constants.COLUMN_ID + \" = ?\", new String[] { id }, null, null, null);\n\t\tcursor.moveToFirst();\n\n\t\tif (cursor.getCount() > 0)\n\t\t\treturn new Project(cursor);\n\t\telse\n\t\t\treturn null;\n\t}", "public List<Project> getAllProjects();", "public MavenProject getCurrentProject()\n {\n return currentProject;\n }", "public ArrayList<Project> selectProject(String projectId) {\n\n try {\n ArrayList<Project> tasks = new ArrayList<Project>();\n\n String query = \"SELECT * FROM TASKS where PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(query);\n ps.setString(1, projectId);\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n String hours = rs.getString(\"HOURS\");\n String hoursadded = rs.getString(\"HOURS_ADDED\");\n String description = rs.getString(\"DESCRIPTION\");\n Project p = new Project(description, hours, hoursadded,\n projectId);\n tasks.add(p);\n }\n rs.close();\n ps.close();\n return tasks;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }", "PrgState getCurrentState() throws RepoException;", "public void Found_project_from_DATABASE(int id){\n print_pro();\n// return project;\n }", "public ProjectViewController(){\n InputStream request = appController.httpRequest(\"http://localhost:8080/project/getProject\", \"GET\");\n try {\n String result = IOUtils.toString(request, StandardCharsets.UTF_8);\n Gson gson = new Gson();\n this.projectModel = gson.fromJson(result, ProjectModel.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Integer getProjectID() { return projectID; }", "@GetMapping(\"/api/getLatest\")\n\tpublic List<Project> findlatestProject()\n\t{\n\t\treturn this.integrationClient.findlatestProject();\n\t}", "@Deprecated\n public ProjectBean getProject(Object proj) {\n Project project;\n ProjectBean newProjectBean;\n // System.out.println(proj);\n // System.out.println(this.projectMap);\n\n if (proj instanceof Project) {\n project = (Project) proj;\n newProjectBean = this.createProjectBean(project);\n this.projectMap.put(newProjectBean.getId(), newProjectBean);\n } else {\n if (this.projectMap.get((String) proj) != null) {\n\n newProjectBean = this.projectMap.get(proj);\n } else {\n project = this.getOpenBisClient().getProjectByIdentifier((String) proj);\n newProjectBean = this.createProjectBean(project);\n this.projectMap.put(newProjectBean.getId(), newProjectBean);\n }\n }\n return newProjectBean;\n }", "public String getProjectName() {\n\t\treturn project;\n\t}", "Project selectByPrimaryKey(Long id);" ]
[ "0.7021407", "0.69363654", "0.693235", "0.69019186", "0.6820316", "0.67782044", "0.67206186", "0.668742", "0.66786957", "0.6665728", "0.6618368", "0.6570355", "0.6560002", "0.65316623", "0.6492273", "0.6476969", "0.6466565", "0.64641035", "0.6459149", "0.6420423", "0.6420423", "0.6414021", "0.6414021", "0.64073074", "0.6405668", "0.6381516", "0.6329049", "0.63046694", "0.62945735", "0.62909615", "0.62896967", "0.628422", "0.6254925", "0.6241577", "0.6238583", "0.6231638", "0.6230633", "0.62152207", "0.62080544", "0.62080544", "0.62080544", "0.61925936", "0.6190259", "0.6187494", "0.61869144", "0.6157724", "0.6144957", "0.6110039", "0.61049765", "0.60923177", "0.60576415", "0.6046343", "0.60312724", "0.6031182", "0.60026926", "0.599238", "0.59809816", "0.59696305", "0.59655464", "0.5964119", "0.5963497", "0.59503657", "0.593749", "0.59321743", "0.5930546", "0.59274244", "0.59274244", "0.5926831", "0.5920812", "0.59186184", "0.5904282", "0.5902185", "0.5890764", "0.5882716", "0.58814794", "0.58789915", "0.5877705", "0.5869809", "0.58631426", "0.5860037", "0.5853526", "0.5849241", "0.5847541", "0.5840793", "0.5831665", "0.5820535", "0.5811566", "0.58051735", "0.5801045", "0.5796893", "0.5795465", "0.5793296", "0.57858545", "0.57835203", "0.5773949", "0.57720906", "0.57645583", "0.5761852", "0.57592255", "0.57404506" ]
0.58729565
77
Duration in seconds. The .9 should prevent flickering.
private static float getDefaultDuration(ResourceLocation effectId) { return new ResourceLocation("night_vision").equals(effectId) ? 15.9f : 1.9f; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void increaseSpeed() {\r\n\tupdateTimer.setDelay((int)Math.floor(updateTimer.getDelay()*0.95));\r\n\t\t}", "public float getFrameRate() { return 1000f/_interval; }", "public int delta()\r\n\t{\r\n\t\treturn smooth ? (resolution / fps) : duration;\r\n\t}", "public void setHighlightDuration(double value) {\n JsoHelper.setAttribute(jsObj, \"highlightDuration\", value);\n }", "public static void updateDisplaySpeed()\n {\n double oneSecond = 1000;\n //speed.setText( Double.toString(((main.Game.worldTime.getDelay())/oneSecond)) + \" (sec./Day)\" );\n }", "public void doubleSpeed()\r\n {\r\n \tthis.speed= speed-125;\r\n \tgrafico.setVelocidad(speed);\r\n }", "protected void setDuraction(int seconds) {\n duration = seconds * 1000L;\n }", "@Override\n protected float duration(final float distance) {\n if (distance < 100) {\n return 0.15f;\n } else if (distance < 200) {\n return 0.3f;\n } else if (distance < 300) {\n return 0.45f;\n } else if (distance < 400) {\n return 0.6f;\n } else if (distance < 500) {\n return 0.75f;\n } else if (distance < 600) {\n return 0.9f;\n }\n return 1.1f;\n }", "public void setFrameRate(float aValue) { setInterval(Math.round(1000/aValue)); }", "@Override\n protected float calculateSpeedPerPixel\n (DisplayMetrics displayMetrics) {\n return MILLISECONDS_PER_INCH/displayMetrics.densityDpi;\n }", "void delayForDesiredFPS(){\n delayMs=(int)Math.round(desiredPeriodMs-(float)getLastDtNs()/1000000);\n if(delayMs<0) delayMs=1;\n try {Thread.currentThread().sleep(delayMs);} catch (java.lang.InterruptedException e) {}\n }", "public void mo5969f() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{0.0f, -((float) C1413m.f5711i.getHeight())}).setDuration(350);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.55f, 0.35f, 0.2f, 0.1f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}).setDuration(350);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5386F, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5384D, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5385E, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n this.f5384D.getTexView().setText(getResources().getString(R.string.pause));\n duration.addListener(new C1298Va(this));\n }", "int getDuration();", "int getDuration();", "public void setDuration(float duration) {\n\t\tthis.duration = duration;\n\t}", "public void setTimeSeconds(float aTime) { setTime(Math.round(aTime*1000)); }", "void setDuration(int duration);", "public void setDuration( Long duration );", "Double getActualDuration();", "Duration subsystemFreezeDuration();", "private int get_delay() {\n double exp = slider1.getValue() / 100.0 - 9; // Range -9, 1\n exp = Math.min(0, exp); // Range -9, 0\n return (int) (Math.pow(10.0, exp) * 100000000.0);\n }", "long getDuration();", "void changeUpdateSpeed();", "public void setDuration(int duration){\n this.duration = duration;\n }", "@Override\n void slowDown() {\n if (this.speed>0){\n this.speed=this.speed-1;\n }\n }", "private int getFadeDuration() {\n int integer = this.preferences.getBoolean(\"FadeSplashScreen\", true) ? this.preferences.getInteger(\"FadeSplashScreenDuration\", DEFAULT_FADE_DURATION) : 0;\n return integer < 30 ? integer * 1000 : integer;\n }", "public void setDuration(int val){this.duration = val;}", "public int getDuration() {return this.duration;}", "void setTime(){\n gTime += ((float)millis()/1000 - millisOld)*(gSpeed/4);\n if(gTime >= 4) gTime = 0;\n millisOld = (float)millis()/1000;\n }", "void OnSpeedChanges(float speed);", "public abstract float getSecondsPerUpdate();", "public double getAnimationSeconds()\n\t{\n\t\treturn seconds_passed;\n\t}", "public int getDuration();", "private void changeSpeed() {\n\t\tint t = ((JSlider)components.get(\"speedSlider\")).getValue();\n\t\tsim.setRunSpeed(t);\n\t}", "public int getDuration() { return duration; }", "public abstract void setSecondsPerUpdate(float secs);", "public default int getDuration(int casterLevel){ return Reference.Values.TICKS_PER_SECOND; }", "public void Update(double elapsedTime){\n }", "public static void increaseDifficaulty() {\r\n\t\tif (Enemy._timerTicker > 5)\r\n\t\t\tEnemy._timerTicker -= 2;\r\n\t\tif (Player._timerTicker < 100)\r\n\t\t\tPlayer._timerTicker += 2;\r\n\t}", "public float getDuration()\n\t{\n\t\treturn duration;\n\t}", "public void setSpeed(float val) {speed = val;}", "public int getDuration() {\n return animationDuration;\n }", "public double getDuration () {\n return duration;\n }", "public void setProgressDuration(int duration){\n this.mProgressDuration = duration;\n }", "@Override\r\n\tpublic void paint(float deltaTime) {\n\t\t\r\n\t}", "public float getMovementAnimationDuration() {\r\n\t\treturn (TILESIZE / getMovementSpeed()) * TARGET_FRAME_DELTA;\r\n\t}", "public void updateTimerDisplay(){\n int seconds = timeCounter / 60;\n setImage(new GreenfootImage(\"Time: \"+timeElapsed + \": \" + seconds, 24, Color.BLACK, Color.WHITE));\n }", "public float getDuration() {\n\t\treturn duration;\n\t}", "final public int getAnimationDuration()\n {\n return ComponentUtils.resolveInteger(getProperty(ANIMATION_DURATION_KEY), 1000);\n }", "@Override\r\n\tpublic double getSlowness() {\n\t\treturn 10;\r\n\t}", "private int animationDuration(Vector origin, Vector target) {\n\t\tVector distance = new Vector(origin.getX() - target.getX(), origin.getY() - target.getY());\n\t\tdouble euclidianDistance = Math.sqrt(Math.pow(distance.getX(), 2) + Math.pow(distance.getY(), 2));\n\t\treturn (int) (euclidianDistance * ANIM_MOVEMENT_MS_PER_CELL);\n\t}", "public void mo5968e() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{-((float) C1413m.f5711i.getHeight()), 0.0f}).setDuration(240);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{0.0f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f}).setDuration(240);\n duration.start();\n duration2.start();\n long j = (long) 160;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.6f, 0.5f, 0.4f, 0.3f, 0.2f, 0.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5438qa, \"alpha\", new float[]{1.0f, 0.0f}).setDuration(j).start();\n duration.addListener(new C1302Xa(this));\n }", "public void SpeedControl(long iDasherX, long iDasherY, double dFrameRate) {}", "public static void decreaseDifficaulty() {\r\n\t\tif (Enemy._timerTicker < 70)\r\n\t\t\tEnemy._timerTicker += 3;\r\n\t\tif (Player._timerTicker > 4)\r\n\t\t\tPlayer._timerTicker -= 2;\r\n\t}", "public void setDuration(Integer duration) {\n this.duration = duration;\n }", "@Override\n\t\t\tpublic int durationToWait() {\n\t\t\t\treturn getCarType() == 2 ? 60000 : 15000;\n\t\t\t}", "Duration getDuration();", "public void setMaxTimeSeconds(float aTime) { setMaxTime(Math.round(aTime*1000)); }", "Posn getDuration();", "private double timeFractionBasedOnLevel(){\n // assume AnimationTimer speed to be relevant to 60 fps\n switch (board.getLevel()){\n case 0 -> {\n return 60.0 / 48.0;\n }\n case 1 -> {\n return 60.0 / 43.0;\n }\n case 2 -> {\n return 60.0 / 38.0;\n }\n case 3 -> {\n return 60.0 / 33.0;\n }\n case 4 -> {\n return 60.0 / 28.0;\n }\n case 5 -> {\n return 60.0 / 23.0;\n }\n case 6 -> {\n return 60.0 / 18.0;\n }\n case 7 -> {\n return 60.0 / 13.0;\n }\n case 8 -> {\n return 60.0 / 8.0;\n }\n case 9 -> {\n return 60.0 / 6.0;\n }\n case 10, 11, 12 -> {\n return 60.0 / 5.0;\n }\n case 13, 14, 15 -> {\n return 60.0 / 4.0;\n }\n case 16, 17, 18 -> {\n return 60.0 / 3.0;\n }\n case 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 -> {\n return 60.0 / 2.0;\n }\n default -> {\n return 60.0 / 1.01;\n }\n }\n }", "public void update(float f) {\n Timer.this.clipGroup.setClipArea( -(Timer.this.TimeBar.getWidth() * f),0, Timer.this.TimeBar.getWidth(), Timer.this.TimeBar.getHeight());\n ef.setPosition(clipGroup.getX()+(TimeBar.getWidth()*0.99f)-TimeBar.getWidth()*f,frmTime.getY()+frmTime.getHeight()*0.5f);\n resDura = duration-(int)(duration*f);\n checkStar(ef.getX());\n// System.out.println(\"resTime: \"+((int)(duration*f)));\n if (f == 1.0f) {\n Timer.this.onComplete.run();\n ef.free();\n }\n }", "public double getDelay();", "private void m23259e() {\n boolean z;\n if (this.f19138f != null) {\n ValueAnimator valueAnimator = this.f19137e;\n if (valueAnimator != null) {\n z = valueAnimator.isStarted();\n this.f19137e.cancel();\n this.f19137e.removeAllUpdateListeners();\n } else {\n z = false;\n }\n this.f19137e = ValueAnimator.ofFloat(0.0f, ((float) (this.f19138f.f19131u / this.f19138f.f19130t)) + 1.0f);\n this.f19137e.setRepeatMode(this.f19138f.f19129s);\n this.f19137e.setRepeatCount(this.f19138f.f19128r);\n this.f19137e.setDuration(this.f19138f.f19130t + this.f19138f.f19131u);\n this.f19137e.addUpdateListener(this.f19133a);\n if (z) {\n this.f19137e.start();\n }\n }\n }", "public void setDuration(int duration) {\n this.duration = duration;\n }", "public void setDuration(int duration) {\n this.duration = duration;\n }", "public void faster() {\n myTimer.setDelay((int) (myTimer.getDelay() * SPEED_FACTOR));\n }", "public double getFrameDuration();", "public double getDuration() {\n\t\treturn duration;\n\t}", "public abstract void animation(double seconds);", "public float getFixedDuration() {\n return fixedDuration;\n }", "void update(){\n\t\topacity -= (float)(1.0/(wakeStrength + 1));\n\t\twakeLife--;\n\t}", "public void setDuration(Number duration) {\n this.duration = duration;\n }", "public float getTimeSeconds() { return getTime()/1000f; }", "public void setDuration(int duration) {\n mDuration = duration;\n }", "private void waitConstant() {\r\n \t\tlong\tlwait = CL_FRMPRDAC;\r\n \t\t// drawing is active?\r\n \t\tif(m_fHorzShift == 0 && m_lTimeZoomStart == 0\r\n \t\t\t\t&& GloneApp.getDoc().isOnAnimation() == false)\r\n \t\t\tlwait = CL_FRMPRDST;\t\t// stalled\r\n \r\n \t\t// make constant fps\r\n \t\t// http://stackoverflow.com/questions/4772693/\r\n \t\tlong\tldt = System.currentTimeMillis() - m_lLastRendered;\r\n \t\ttry {\r\n \t\t\tif(ldt < lwait)\r\n \t\t\t\tThread.sleep(lwait - ldt);\r\n \t\t} catch (InterruptedException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \t}", "public void durationUpdate(AudioHandler handler, long duration) {\r\n slrTime.setMaximum((int) duration);\r\n lblTime.setText(Utility.formatTime(handler.getTime(), false) + \" / \" + Utility.formatTime(duration, false));\r\n if (panGlassPane.isVisible()) panGlassPane.repaint();\r\n }", "public void setDuration(DeltaSeconds d) {\n duration = d ;\n }", "@Override\r\n public void stateChanged(ChangeEvent e) {\n gameWindow.getTickDelayLabel().setText(\"Delay: \" + gameWindow.getSlider().getValue()*10 + \" ms\");\r\n }", "@Override\n\tpublic void update(float deltaTime) {\n\t\t\n\t}", "public void setDuration(long duration) {\n this.duration = duration;\n }", "public void setDuration(long duration) {\n this.duration = duration;\n }", "@Override\n\tpublic void update(float deltaTime) {\n\t}", "public void setDuration(Long duration)\r\n {\r\n this.duration = duration;\r\n }", "void update(int seconds);", "private float getRefreshRate() {\n return 1;\n }", "private void changeDelay() {\n delay = ((int) (Math.random() * 10000) + 1000) / MAX_FRAMES;\n }", "public void setDuration(Integer duration) {\n this.duration = duration;\n }", "public int getEffectDuration() {\n\t\treturn effectDuration;\n\t}", "private void updateTimer(float eTime) {\n seconds = (float) round((eTime / 1000), 2);\n timeOutput.setText(String.valueOf(seconds));\n }", "public void setDuration (int sec) {\n String hoursText = \"\", minutesText = \"\", synthez = \"\";\n\n if (sec < 60) {\n synthez = \"less than one minute\";\n synthez = String.format(TEMPLATE, synthez);\n setText(Html.fromHtml(synthez)+\".\", BufferType.SPANNABLE);\n return;\n }\n\n if (sec >= 3600) {\n hoursText += sec/3600+\" Hour\";\n if (sec/3600 > 1) {\n hoursText+=\"s\";\n }\n hoursText+=\" \";\n }\n if (((sec%3600)/ 60) > 0) {\n minutesText+= ((sec%3600)/ 60)+ \" minute\";\n if (((sec%3600)/ 60 ) > 1) {\n minutesText+=\"s\";\n }\n minutesText+=\" \";\n }\n synthez = hoursText+minutesText;\n synthez = String.format(TEMPLATE, synthez);\n setText(Html.fromHtml(synthez)+\".\", BufferType.SPANNABLE);\n }", "public double getTime() { return duration; }", "public void speedUp(){\r\n\t\tmoveSpeed+=1;\r\n\t\tmoveTimer.setDelay(1000/moveSpeed);\r\n\t}", "@Override\r\n public void timePassed(double dt) {\r\n return;\r\n }", "public void faster()\n {\n if(speed < 9){\n speed += 1;\n }\n }", "public long getAnimDuration() {\n return (long) (Settings.Global.getFloat(this.mContext.getContentResolver(), \"transition_animation_scale\", this.mContext.getResources().getFloat(17105053)) * 336.0f);\n }", "protected abstract float getFrameTimeNormalAnimation();", "public void setSpeed() {\r\n\t\tint delay = 0;\r\n\t\tint value = h.getS(\"speed\").getValue();\r\n\t\t\r\n\t\tif(value == 0) {\r\n\t\t\ttimer.stop();\r\n\t\t} else if(value >= 1 && value < 50) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (1) == delay (5000). value (50) == delay (25)\r\n\t\t\tdelay = (int)(a1 * (Math.pow(25/5000.0000, value / 49.0000)));\r\n\t\t} else if(value >= 50 && value <= 100) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (50) == delay(25). value (100) == delay (1)\r\n\t\t\tdelay = (int)(a2 * (Math.pow(1/25.0000, value/50.0000)));\r\n\t\t}\r\n\t\ttimer.setDelay(delay);\r\n\t}", "public void timer()\n {\n timer += .1; \n }", "private Sleep(Duration duration) {\n this.duration = duration;\n }", "@Override\r\n public void timePassed(double dt) {\r\n\r\n }", "@Override\r\n public void timePassed(double dt) {\r\n\r\n }" ]
[ "0.64094156", "0.63542503", "0.61746657", "0.61545503", "0.6137466", "0.6113428", "0.6108278", "0.5983247", "0.5940249", "0.5847561", "0.5827362", "0.58163846", "0.5813044", "0.5813044", "0.5805866", "0.5801772", "0.57981855", "0.5794278", "0.5785028", "0.5766386", "0.5765852", "0.5740036", "0.57250446", "0.57198477", "0.57175183", "0.5717083", "0.5701511", "0.56881785", "0.5685781", "0.5658247", "0.56512094", "0.5646455", "0.56391335", "0.5628286", "0.5623209", "0.56030136", "0.5602115", "0.55947125", "0.55908334", "0.55902505", "0.5586548", "0.5582892", "0.55820006", "0.5580912", "0.5574015", "0.55606055", "0.5555325", "0.5550428", "0.5546111", "0.5542499", "0.55393076", "0.5538834", "0.5532882", "0.5531826", "0.5522519", "0.5517861", "0.5517598", "0.55093867", "0.5501778", "0.55009913", "0.5500817", "0.5495244", "0.54924685", "0.5480572", "0.5480572", "0.5466693", "0.5463344", "0.5448108", "0.54479575", "0.54438555", "0.54414666", "0.5431159", "0.5424762", "0.542124", "0.54183435", "0.5418147", "0.54112256", "0.5409831", "0.5403347", "0.53998864", "0.53998864", "0.53988314", "0.5395162", "0.53903514", "0.5390245", "0.53890395", "0.53770655", "0.5369626", "0.5360276", "0.5357496", "0.53557605", "0.5354535", "0.53536963", "0.5352109", "0.5347445", "0.53448254", "0.53439295", "0.53394586", "0.5334061", "0.5318562", "0.5318562" ]
0.0
-1
Set the source specific subclass of DirectoryConverter to run
public void setClsName(String clsName) { this.clsName = clsName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CustomDirectoryFactory(){\n\t\tsuper();\n\t}", "@Override\r\n\t\tpublic void setDir(String dir)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "@Override\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\n if (!this.sourceDirectory.equals(dir)) {\n this.currentTargetDirectory = this.currentTargetDirectory.getParent();\n }\n return FileVisitResult.CONTINUE;\n }", "public DirectoryFileFilter() {\n\t\tthis(true);\n\t}", "public void directoryChange( int type, Set fileSet );", "public Directory(String nm){\r\n\t\tsuper();\r\n\t}", "public void setDir(File dir) {\n _sourceDir = dir;\n }", "abstract File getTargetDirectory();", "public LdapImportSource() {\n\t}", "private CanonizeSource() {}", "@Override\n public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n if (!this.sourceDirectory.equals(dir)) {\n // Create this directory in the target and make it our current target.\n Path newDirectory = this.currentTargetDirectory.resolve(dir.getFileName());\n boolean didCreate = newDirectory.toFile().mkdir();\n Assert.assertTrue(didCreate);\n logger.output(\"Created directory: \" + newDirectory);\n this.currentTargetDirectory = newDirectory;\n }\n return FileVisitResult.CONTINUE;\n }", "public ArchillectSource() {\n super(SOURCE_NAME);\n }", "void setConverter(Converter converter);", "@Raw @Model\r\n\tvoid setDir(Directory dir) {\r\n\t\tthis.dir = dir;\r\n\t\tthis.move(dir);\r\n\t\t\r\n\t}", "@Override\r\n\tprotected void processDirectorySelectionChange(String paramString) {\n\r\n\t}", "@Test\n\tpublic void test_Directory_typeFinder_wildcardImport() {\n\t\tString directory = _TestSuite.TYPE_FINDER_TEST_DIR.concat(\"wildcardImport/\");\n\t\ttestOutput(directory);\n\t}", "abstract void addNewSourceDirectory(final File targetDirectory);", "public void setSource(String sourceDir)\n {\n this.sourceDir = new File(sourceDir);\n }", "private Converter()\n\t{\n\t\tsuper();\n\t}", "void setDirectory(File dir);", "@Override\r\n\tprotected void directorySelectionChangedDirectly() {\n\r\n\t}", "@DataBoundSetter\n public void setDir(String dir) {\n this.dir = dir;\n }", "@Override\n public boolean startVisit(Directory dir)\n {\n return true;\n }", "@Bean\n\t\tpublic MessageSource<File> sourceDirectory() {\n\t\t\tFileReadingMessageSource messageSource = new FileReadingMessageSource();\n\t\t\tmessageSource.setDirectory(new File(\"Source\"));\n\t\t\treturn messageSource;\n\t\t}", "private Directories() {\n\n\t}", "public SourceLister() {\n this(defaultSrcDirs);\n }", "@Override\n\t\t\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n\t\t\t\tPath resolve = target.resolve(source.relativize(dir));\n\t\t\t\tFile resolve_file = resolve.toFile();\n\n\t\t\t\tif (resolve_file.exists() == false) {\n\t\t\t\t\tFiles.createDirectory(resolve);\n\t\t\t\t} else {\n\t\t\t\t\t// delete old data in sub-directories\n\t\t\t\t\t// without deleting the directory\n\t\t\t\t\tArrays.asList(resolve_file.listFiles()).forEach(File::delete);\n\t\t\t\t}\n\t\t\t\treturn FileVisitResult.CONTINUE;\n\t\t\t}", "public ResourceSite( Class<?> baseClass, String baseDir) {\n super( toResourceURI( baseClass, baseDir));\n }", "Target convert(Source source);", "@Override\n \t\t\t\tpublic File getTransformerDirectory() {\n \t\t\t\t\treturn null;\n \t\t\t\t}", "public DirectoryAgentEvent(Object source, DirectoryAgentInfo directoryAgent)\n {\n super(source);\n this.directoryAgent = directoryAgent;\n }", "Source updateDatasourceFolder(Source ds) throws RepoxException;", "@attribute(value = \"\", required = true)\t\r\n\tpublic void setDir(String dir) {\r\n\t\tthis.dir = new File(dir);\r\n\t}", "public Directory(String dirName) {\n setDirName(dirName);\n }", "public static void main(String[] args) {\n if (args.length < 3) {\n System.err.println(\"Insufficient command line arguments.\");\n }\n final String srcDir = args[0];\n final String assetDir = args[1];\n final String resourceDir = args[2];\n\n for (String dir : args) {\n if (!isDirectory(dir)) {\n System.err.println(\"\\\"\" + dir + \"\\\" does not exists or is not a directory.\");\n }\n }\n\n final CsvConverter converter = new CsvConverter(srcDir, assetDir, resourceDir);\n if (converter.generateAssets()) {\n System.out.println(\"Ranges processed:\");\n System.out.println(converter.getRecordCount());\n converter.generateResources();\n }\n }", "public SourceFieldMapper() {\n\t\tthis(Defaults.NAME, Defaults.ENABLED, Defaults.FORMAT, null, -1, Defaults.INCLUDES, Defaults.EXCLUDES);\n\t}", "public void setToDir(File dir) {\n _destDir = dir;\n }", "public void setDir(File dir) {\n this.dir = dir;\n }", "public void addSourceChanger(Component component, Class sourceClass)\n {\n component.addAttribute(GlobalAttributes.Value, sourceClass.getCanonicalName().replace(\".\", \"/\"));\n component.setID(sourceClass.getSimpleName() + \"_source\");\n getSourceChanges().put(component, sourceClass);\n }", "public interface DirectoryChangeListener\n{\n /** Addition of files */\n public static final int ADDITION = 1;\n\n /** Removal of files */\n public static final int REMOVAL = 2;\n\n /** Modification of files */\n public static final int MODIFICATION = 3;\n\n /**\n * Indication that some file or files have been changed.\n *\n * @param type Type of change to the directory\n * @param fileSet a Set of files\n */\n public void directoryChange( int type, Set fileSet );\n\n /**\n * Indication that the scanner was unable to view the contents of the directory\n */\n void unableToListContents();\n}", "public GlobFileSet setStartDir(String startDir)\n\t\t{\n\t\tm_startDir = startDir;\n\t\t\n\t\treturn (this);\n\t\t}", "@Override\r\n public void dirToPath(String[] arr) {\n\r\n }", "public void setSrc(File source) {\r\n if (!(source.exists())) {\r\n throw new BuildException(\"the presentation \" + source.getName()+ \" doesn't exist\");\r\n }\r\n if (source.isDirectory()) {\r\n throw new BuildException(\"the presentation \" + source.getName() + \" can't be a directory\");\r\n }\r\n this._source = source;\r\n }", "@Override\n protected void internalTransform(String arg0, Map arg1) {\n for (SootClass c : Scene.v().getApplicationClasses()) {\n //if (c.getName().startsWith(\"com\"))//TODO\n // if(c.getName().start)\n try {\n transform(c);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n }\n }", "public void converterSelected() {\n\t}", "public void addConverter(String clazz) {\n if (clazz == null) {\n return;\n }\n Class clz = ClassLoaderUtils.getClass(clazz);\n if (clz == null) {\n if (log.isWarnEnabled()) {\n log.warn(clz + \" does not exists or could not be loaded\");\n }\n } else {\n addConverter(clz);\n }\n\n addConverter(ClassLoaderUtils.getClass(clazz));\n }", "@SuppressWarnings(\"rawtypes\")\n @Override public void setDataConverter(final DataConverter dataConverter) {\n report(\"setDataConverter: ignored arg \" + dataConverter);\n }", "public void setISdirectory(File directory)\n {\n is_directory = directory;\n }", "protected DirectoryFilter(String description) {\r\n super(description);\r\n }", "private MouseAdapter getDirectoryListener(Renderer renderer) {\n return new MouseAdapter() {\n public void mouseClicked(MouseEvent inputEvent) {\n if (inputEvent.getClickCount() == 2) {\n JList<Directory> source = (JList<Directory>) inputEvent.getSource();\n // обновляем содержимое панели с файлами\n renderer.updateFilesScrollPane(source.getSelectedValue());\n //схлопываем директорию до нажатой\n renderer.squeezeDirectories(source.getSelectedIndex());\n }\n }\n };\n }", "public SourceTypeConfiguration() {\n\n\t}", "@Override\r\n\tpublic void addRuleInstances(Digester digester) {\n\t\t digester.addRule(prefix+\"/data-source\",new ObjectCreateRule(\"com.cup.sample.digester.bean.DataSource\", \"className\"));\r\n\t\t digester.addSetProperties(prefix+\"/data-source\");\r\n\t\t\r\n\t}", "static void bulkConvert(File folder, File destination)\n {\n if (folder == null)\n throw new IllegalArgumentException(\"folder cannot be null\");\n if (!folder.isDirectory())\n throw new IllegalArgumentException(\"folder is not a directory\");\n\n for (File f : folder.listFiles()) {\n if (f.isDirectory()) {\n bulkConvert(f, destination);\n continue;\n }\n\n String extension = f.getName().split(\"\\\\.\")[1];\n\n if (extension.toUpperCase().equals(\"DLIS\"))\n readFromDLIS(f, destination.getPath());\n else if (extension.toUpperCase().equals(\"LIS\"))\n readFromLIS(f, destination.getPath());\n else if (extension.toUpperCase().equals(\"LAS\"))\n readFromLAS(f, destination.getPath());\n }\n }", "public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException {\r\n if (src == null) {\r\n throw new ProcessingException(\"No src attribute pointing to a directory to be XMLized specified.\");\r\n }\r\n if (!src.startsWith(JARFILE))\r\n throw new ProcessingException(src + \" does not denote a zip-file (use the jar:file: protocol)\");\r\n src = src.substring(4); // remove \"jar:\"\r\n super.setup(resolver, objectModel, src, par);\r\n }", "private void initializeTargetDirectory()\n {\n if ( isFtpEnabled() )\n initializeRemoteTargetDirectory();\n else\n initializeLocalTargetDirectory(); \n }", "public Source source(Class<? extends JsonConvertible> clazz) {\n Key key = Key.from(clazz);\n return new Source(this, key);\n }", "abstract File getResourceDirectory();", "public void setDir(File dir)\n {\n this.dir = dir;\n }", "public DirectoryModel(File path) {\r\n\tsetCurrentDirectory(path);\r\n\tif (isWindowsFileSystem()) {\r\n\t overrideTypes = new FileType[2];\r\n\t overrideTypes[0] = FileType.SharedFloppyDrive;\r\n\t overrideTypes[1] = FileType.SharedHardDrive;\r\n\t}\r\n }", "@Test\n public void testGeneratorWithCustomResolverDirectory() throws Exception\n {\n File jarFile = new File(_tempDir, \"testWithResolverDirectory.jar\");\n Map<String, String> jarEntries = new HashMap<>();\n jarEntries.put(\"custom/CustomResolverFoo.pdl\", \"record CustomResolverFoo {}\");\n createJarFile(jarFile, jarEntries);\n\n // Define the expected output\n Map<String, String> expectedTypeNamesToSourceFileMap = new HashMap<>();\n expectedTypeNamesToSourceFileMap.put(\"NeedsCustomResolver\", PEGASUS_DIR + FS + \"NeedsCustomResolver.pdl\");\n expectedTypeNamesToSourceFileMap.put(\"CustomResolverFoo\", jarFile + \":custom/CustomResolverFoo.pdl\");\n\n testRunGenerator(\"NeedsCustomResolver.pdl\", expectedTypeNamesToSourceFileMap, jarFile.getCanonicalPath(),\n Collections.singletonList(\"custom\"), null);\n }", "public void setDir(int dir) {\n this.dir = dir;\n }", "public DirectoryFileLocator(File dir) {\r\n directory = dir;\r\n }", "public void setConverter(Converter converter) {\n this.converter = converter;\n }", "@Override\n \tprotected File deriveLocalFileCodeBase(Class<?> baseClass)\n \t{\n \t\t// setup codeBase\n \t\tif (baseClass == null)\n \t\t\tbaseClass = this.getClass();\n \n \t\tPackage basePackage = baseClass.getPackage();\n \t\tString packageName = basePackage.getName();\n \t\tString packageNameAsPath = packageName.replace('.', Files.sep);\n \n \t\tString pathName = System.getProperty(\"user.dir\") + Files.sep;\n \t\tFile path = new File(pathName);\n \t\tString pathString = path.getAbsolutePath();\n \n \t\t// println(\"looking for \" + packageNameAsPath +\" in \" + pathString);\n \n \t\tint packageIndex = pathString.lastIndexOf(packageNameAsPath);\n \t\tif (packageIndex != -1)\n \t\t{\n \t\t\tpathString = pathString.substring(0, packageIndex);\n \t\t\tpath = new File(pathString + Files.sep);\n \t\t}\n \n \t\tcodeBase = new ParsedURL(path);\n \t\tprintln(\"codeBase=\" + codeBase);\n \t\treturn path;\n \t}", "public void setSource(String source);", "@SuppressWarnings(\"unchecked\")\n\tpublic Converter() {\n\t\tClass<?>[] generics = ClassUtil.getGenericArguments(Converter.class, getClass());\n\t\t\n\t\ttargetClass = (Class<T>) generics[0];\n\t\tformatType = (Class<F>) generics[1];\n\t}", "@Override\r\n\tprotected void setSavedDirectoriesIntoControls() {\n\r\n\t}", "public void setTargetType(Class<?> targetType)\n/* */ {\n/* 257 */ this.targetType = (targetType != null ? ResolvableType.forClass(targetType) : null);\n/* */ }", "public void setSource (String source);", "@Override\n\tpublic void setSuccessor(Converter converter) {\n\t\tthis.converter = converter;\n\t}", "public CollectingFileToucher(String[] args)\n {\n super(args);\n mFiles = new ArrayList<File>();\n mFileFilter = new JavaSoftFileToucher(args);\n/*\n {\n public boolean accept(File inFile)\n {\n return true;\n }\n };\n*/\n }", "Target convert(Source source, Target target);", "abstract protected void execute(String dir);", "SoundType (String dir)\n\t{\n\t\tmDirectory = mRootURL + dir;\n\t}", "public void setDirectory(final String directory) {\n\t\tthis.directory = directory;\n\t}", "@Test\n\tpublic void test_Directory_typeFinder_SENG300W18Iter1() {\n\t\tString directory = _TestSuite.TYPE_FINDER_TEST_DIR.concat(\"SENG300W18Iter1/\");\n\t\ttestOutput(directory);\n\t}", "@Override\n\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\tSystem.out.println(dir.toAbsolutePath());\n\t\tPath RelativizedPath = SourceRoot.relativize(dir);\n\t\tSystem.out.println(RelativizedPath.toAbsolutePath());\n\t\tPath ResolvedPath = TargetRoot.resolve(RelativizedPath);\n\t\tSystem.out.println(ResolvedPath.toAbsolutePath());\n\t\t\n\t\ttry {\n\t\t\tFiles.copy(dir,ResolvedPath,StandardCopyOption.REPLACE_EXISTING);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\treturn FileVisitResult.SKIP_SUBTREE;\n\t\t}\n\t\t\n\t\t\n\t\t\ttry {\n\t\t\t\tFiles.deleteIfExists(dir);\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}\n\t\t\n\t\t\n\t\treturn FileVisitResult.CONTINUE;\n\t}", "void setConverter(IConverter conv);", "public static <D> Set<D> convert(Set<?> source, Class<D> type) {\n return modelMapper.map(source, new SetOfType<D>(type));\n }", "@Override\n\t\tpublic Container convert(ChildData source) {\n\t\t\treturn new Container(Paths.stripPath(source.getPath()), mapBytesUtility.toMap(source.getData()));\n\t\t}", "public JteModule(@NonNull Path sourceDirectory, @NonNull Path classDirectory) {\n this.sourceDirectory = requireNonNull(sourceDirectory, \"Source directory is required.\");\n this.classDirectory = requireNonNull(classDirectory, \"Class directory is required.\");\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\t\tprivate Source(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "public static void processDirectory(File directory) {\n FlatFileProcessor processor = new FlatFileProcessor(directory);\n processor.processDirectory();\n }", "@Override\n public void prepareRun(BatchSourceContext context) throws IOException {\n Map<String, String> arguments = new HashMap<>();\n FileSetArguments.setInputPaths(arguments, config.files);\n context.setInput(Input.ofDataset(config.fileSetName, arguments));\n }", "Source createDatasourceFolder(Source ds, Provider prov) throws RepoxException;", "public Directory(String name) {\n super(name);\n this.parent = null;\n }", "public DirectoryService() {\n\n }", "public folderize() {\n }", "public void onScanClasses(Set<Class<?>> parentClasses, Class<?> clazz, Object instance);", "@InputFiles\n @Incremental\n @PathSensitive(PathSensitivity.RELATIVE)\n public abstract ConfigurableFileCollection getDexFolders();", "protected void gatherSources(Collection<String> templateNames,\n File sourceDir, boolean recurse)\n throws IOException {\n gatherSources(templateNames, sourceDir, null, recurse);\n }", "public void setBasedir( File basedir )\n {\n this.basedir = basedir;\n }", "@Override\r\n\tpublic void atacar(int dir) {\n\t\t\r\n\t}", "public void setDirectory(final String directory) {\n directoryProperty().set(directory);\n }", "@Override\r\n public boolean begin(List<File> sources, File outputDir, DataStore args) {\r\n this.args = args;\r\n classPath = new ArrayList<>();\r\n this.outputDir = outputDir;\r\n clearOutputFolder = false;\r\n reset();\r\n parseOptions(args);\r\n\r\n // if (prettyPrint) {\r\n // tempOutFolder = new File(IoUtils.getCanonicalPath(outputDir) + \"_temp\");\r\n // outputDir = tempOutFolder;\r\n // }\r\n\r\n if (prettyPrint) {\r\n\r\n this.outputDir.mkdirs();\r\n temp = getTemporaryWeaverFolder();// new File(\"_jw_temp\");\r\n outputDir = temp;\r\n // this.setOutputProcessor(temp, spoon, spoon.getEnvironment());\r\n //\r\n // this.setInputSources(Arrays.asList(temp), spoon);\r\n }\r\n\r\n // Pass only Java files to spoon\r\n // Method can do some processing, such as filtering duplicate classes\r\n var javaSources = getJavaSources(sources);\r\n spoon = newSpoon(javaSources, outputDir);\r\n\r\n // spoon = newSpoon(sources, outputDir);\r\n this.currentOutputDir = outputDir;\r\n buildAndProcess();\r\n /* turning off path verifier as it is giving errors for new classes and code */\r\n // spoon.getEnvironment().setNoClasspath(true);\r\n // spoon.getEnvironment().setNoClasspath(false);\r\n jApp = JApp.newInstance(spoon, sources);\r\n // spoon.getEnvironment().setAutoImports(false);\r\n\r\n return true;\r\n }", "public Sources()\n {\n super(NAMESPACE, ELEMENT);\n }", "public DirectoryChanger(FileSystem<Directory> fileSystem) {\r\n super(false);\r\n this.fileSystem = fileSystem;\r\n this.path = new Path(fileSystem);\r\n }", "@Override\n public Object convert(Object dest, Object source, Class<?> aClass, Class<?> aClass1) {\n return null;\n\n }", "public void setTargetType(ResolvableType targetType)\n/* */ {\n/* 249 */ this.targetType = targetType;\n/* */ }", "protected FileExtensionFilter()\n\t{\n\t}", "public InvolvedFilesReporter(String outputDir) {\n super(outputDir + File.separator,\n SIMPLE_FILE_NAME, ReportingConstants.REPORT_FILE_EXTENSION);\n this.outputDirectory = outputDir;\n }" ]
[ "0.55427", "0.54324675", "0.5355531", "0.5339551", "0.52986705", "0.5290652", "0.52712375", "0.5223241", "0.5149181", "0.5139459", "0.51197386", "0.51107216", "0.5107839", "0.5102383", "0.5083202", "0.5057325", "0.50313616", "0.5023868", "0.4988652", "0.4972641", "0.49648958", "0.4932004", "0.49263635", "0.49205327", "0.4878811", "0.48763877", "0.48748702", "0.4873652", "0.48702183", "0.4859062", "0.48510027", "0.4849437", "0.48278138", "0.48103982", "0.47958302", "0.47936952", "0.4791366", "0.47888112", "0.47810692", "0.47581407", "0.47530466", "0.47499478", "0.47291973", "0.47213677", "0.47185102", "0.47079542", "0.47065395", "0.46991187", "0.4698116", "0.46963778", "0.46936086", "0.46910673", "0.4685131", "0.4680957", "0.46807143", "0.4675725", "0.4675506", "0.46735486", "0.46657893", "0.46638963", "0.46575657", "0.46564895", "0.46525025", "0.46439326", "0.4637424", "0.46364874", "0.46361127", "0.46340284", "0.46290737", "0.4608733", "0.4603243", "0.46014136", "0.4601301", "0.45870015", "0.45866758", "0.45760208", "0.45679176", "0.45621252", "0.4558688", "0.45514813", "0.45450252", "0.4544167", "0.45424226", "0.45333198", "0.45264617", "0.45242473", "0.45227218", "0.45213404", "0.45168284", "0.45163015", "0.45152116", "0.4514676", "0.4511268", "0.45083797", "0.45041978", "0.4504055", "0.45037326", "0.4503549", "0.45020437", "0.44992158", "0.44861844" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table cargo
long countByExample(CargoExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Cargo selectByPrimaryKey(Integer idCargo);", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n List<Purchase> selectAll();", "public Vector obtenerListaCagoBuscarIdCargo(int idCargo) throws SQLException {\n Vector listaCargo = new Vector();\n String sql = \"Select idCargo, idDocumento, numeroDocumento, Documento, \"\n + \"Fecha FechaCargo, Hora HoraCargo, Area AreaCargo, Asunto, Institucion, Recepcionista, estadoCargo From vCargoDocumento Where idCargo = \"+ idCargo;\n st = con.createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n Vector ovCargo = new Vector();\n ovCargo.add(rs.getInt(1));\n ovCargo.add(rs.getInt(2));\n ovCargo.add(rs.getString(3));\n ovCargo.add(rs.getString(4));\n ovCargo.add(rs.getString(5));\n ovCargo.add(rs.getString(6));\n ovCargo.add(rs.getString(7));\n ovCargo.add(rs.getString(8));\n ovCargo.add(rs.getString(9));\n ovCargo.add(rs.getString(10));\n ovCargo.add(rs.getInt(11));\n// System.out.println(rs.getInt(1));\n// System.out.println(rs.getInt(2));\n// System.out.println(rs.getInt(3));\n// System.out.println(rs.getInt(4));\n// System.out.println(rs.getInt(5));\n// System.out.println(rs.getInt(6));\n// System.out.println(rs.getInt(7));\n// System.out.println(rs.getInt(8));\n// System.out.println(rs.getInt(9));\n// System.out.println(rs.getInt(10));\n// System.out.println(rs.getInt(11));\n listaCargo.add(ovCargo);\n }\n return listaCargo;\n }", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "County selectByPrimaryKey(Long id);", "public List<Courtyard> findCourtyardAll() {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tList<Courtyard> courtyards = courtyardMapper.findCourtyardAll();\n\t\tSystem.out.println(\"--Into Dao Method of findCourtyardAll!!!--\");\n\t\treturn courtyards;\n\t}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "@Override\r\n\tpublic Cargo get(String matricula) throws SQLException {\n\t\treturn null;\r\n\t}", "TbCities selectByPrimaryKey(Long id);", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "List<Cargo> getCargoesForOrder(OrderDTO orderDTO);", "public List<CustomerPurchase> getAll() throws SQLException;", "@Override\n public List<Cours> afficherTousLesCours() {\n return coursRepo.findAll();\n }", "@GetMapping(\"/cargos\")\n @Timed\n public List<Cargo> getAllCargos() {\n log.debug(\"REST request to get all Cargos\");\n return cargoRepository.findAll();\n }", "public Cargo buscaCargo(String strCargo) {\r\n\t\tCargo cargo = null;\r\n\t\tcargo = (Cargo) em.createNamedQuery(\"buscaCargoPorNome\")\r\n\t\t\t\t.setParameter(1, strCargo).getSingleResult();\r\n\t\treturn cargo;\r\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "CityDO selectByPrimaryKey(Integer id);", "List<OcCustContract> selectAll();", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "List<Cargo> selectByExample(CargoExample example);", "@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "Tablero consultarTablero();", "VentaJPA obtenerVenta(int comprobante);", "@Override\n\tpublic List<Cours> allCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours\");\n\t\treturn q.getResultList();\n\t}", "@Dao\npublic interface CarrierDao {\n\n @Query(\"SELECT * FROM geo_carrier\")\n Cursor selectAll();\n\n @Query(\"SELECT * FROM geo_carrier WHERE number_prefix_3 = :numberPrefix3\")\n Cursor selectByNumberPrefix3(String numberPrefix3);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(CarrierEntity carrier);\n\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "@Mapper\npublic interface CompanyUserInfoDAO {\n\n @Select(\"SELECT * FROM company_user_info WHERE sales_id=#{sales_id} ORDER BY add_time DESC\")\n List<CompanyUserInfoDTO> findCompanyUserInfoBySalesId(@Param(\"sales_id\") Long sales_id);\n\n}", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "@Bean\n public TypeMap<Cargo, Cargo> getCargoCargoTypeMap() {\n return getModelMapper().createTypeMap(Cargo.class, Cargo.class)\n .addMappings(mapper -> mapper.skip(Cargo::setId))\n .addMappings(mapper -> mapper.skip(Cargo::setNumber))\n .addMappings(mapper -> mapper.skip(Cargo::setCreateDate))\n .addMappings(mapper -> mapper.skip(Cargo::setUpdateDate))\n\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getName, Cargo::setName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getState, Cargo::setState))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getWeight, Cargo::setWeight))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getDescription, Cargo::setDescription))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDepartureWaypoint, Cargo::setDepartureWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDestinationWaypoint, Cargo::setDestinationWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getCarriage, Cargo::setCarriage));\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic Curso findCrusoByAlumnoId(Long id) {\n\t\treturn repository.findCrusoByAlumnoId(id);\n\t}", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "T buidEntity(ResultSet rs) throws SQLException;", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "@Override\n\tpublic Curso mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t/* Se declara e instancia el objeto Persona.*/\n\t\tCurso curso = new Curso();\n\t\t/* Se recoje el identificador de curso del result.*/\n\t\tcurso.setId(rs.getInt(\"id\"));\n\t\t/* Se recoje el codigo de curso del result.*/\n\t\tcurso.setCodigo(rs.getString(\"codigo\"));\n\t\t/* Se recoje el nombre de la curso del result.*/\n\t\tcurso.setNombre(rs.getString(\"nombre\"));\n\t\t\n\t\t\n\t\t/* Se devuelve el objeto Persona.*/\n\t\treturn curso;\n\t}", "CGcontractCredit selectByPrimaryKey(Integer id);", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n }", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "List<Corretor> findAll();", "private static Carta mapper(ResultSet rs) throws SQLException {\n\t\tCarta c = new Carta();\r\n\r\n\t\t// cogemos los valres de las columnas\r\n\t\tint colId = rs.getInt(\"id\");\r\n\t\tString colNombre = rs.getString(\"nombre\");\r\n\t\tString colNumero_id = rs.getString(\"numero_id\");\r\n\t\tString colColeccion = rs.getString(\"coleccion\");\r\n\t\tint colColeccionId = rs.getInt(\"id_coleccion\");\r\n\r\n\t\tString colTipo = rs.getString(\"tipo\");\r\n\t\tint colTipoId = rs.getInt(\"id_tipo\");\r\n\t\tString colGrado = rs.getString(\"grado\");\r\n\t\tint colGradoId = rs.getInt(\"id_grado\");\r\n\r\n\t\tint colCopias = rs.getInt(\"copias\");\r\n\r\n\t\tc.setId(colId);\r\n\t\tc.setNumero_id(colNumero_id);\r\n\t\tc.setNombre(colNombre);\r\n\t\tc.setCopias(colCopias);\r\n\r\n\t\tColeccion coleccion = new Coleccion();\r\n\t\tcoleccion.setId(colColeccionId);\r\n\t\tcoleccion.setNombre(colColeccion);\r\n\t\tc.setColeccion(coleccion);\r\n\r\n\t\tTipo tipo = new Tipo();\r\n\t\ttipo.setId(colTipoId);\r\n\t\ttipo.setNombre(colTipo);\r\n\t\tc.setTipo(tipo);\r\n\r\n\t\tGrado grado = new Grado();\r\n\t\tgrado.setId(colGradoId);\r\n\t\tgrado.setNombre(colGrado);\r\n\t\tc.setGrado(grado);\r\n\r\n\t\treturn c;\r\n\t}", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Dao\npublic interface CarDao {\n\n @Query(\"SELECT * FROM car\")\n List<Car> getAll();\n\n @Insert\n void insertAll(Car... cars);\n\n @Delete\n void delete(Car car);\n\n @Update\n void update(Car... cars);\n\n @Query(\"SELECT * FROM car WHERE chassisCode = :chassisCode\")\n Car findByChassisCode(String chassisCode);\n}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public List<Carro> getCarros(){\n\t\t\n\t\ttry {\t\t\t\n\t\t\tList<Carro> carros = db.getCarros();\n\t\t\treturn carros;\n\t\t\t\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn new ArrayList<>();\n\t\t}\n\t\t\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "public void formDatabaseTable() {\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "public void populateCustomerTable() throws SQLException {\n\n try {\n\n PreparedStatement populateCustomerTableview = DBConnection.getConnection().prepareStatement(\"SELECT * from customers\");\n ResultSet resultSet = populateCustomerTableview.executeQuery();\n allCustomers.removeAll();\n\n while (resultSet.next()) {\n\n int customerID = resultSet.getInt(\"Customer_ID\");\n String name = resultSet.getString(\"Customer_Name\");\n String address = resultSet.getString(\"Address\");\n String postal = resultSet.getString(\"Postal_Code\");\n String phone = resultSet.getString(\"Phone\");\n String created = resultSet.getString(\"Create_Date\");\n String createdBy = resultSet.getString(\"Created_By\");\n String lastUpdate = resultSet.getString(\"Last_Update\");\n String updatedBy = resultSet.getString(\"Last_Updated_By\");\n String divisionID = resultSet.getString(\"Division_ID\");\n\n Customer newCustomer = new Customer(customerID, name, address, postal, phone, created, createdBy, lastUpdate,\n updatedBy, divisionID);\n\n allCustomers.add(newCustomer);\n }\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "@Override\n public Circle mapRow(ResultSet rs, int rowNum) throws SQLException {\n Circle circle = new Circle();\n circle.setId(rs.getInt(\"ID\"));\n circle.setName(rs.getString(\"NAME\"));\n return circle;\n }", "@Component\n@Mapper\npublic interface CreativeDao {\n String TABLE_NAME=\" ad_user \";\n String INSERT_FIELDS=\" name,type,material_type,height,width,size,duration,audit_status,\" +\n \"user_id,url,create_time,update_time \";\n String SELECT_FIELDS=\" id,\"+INSERT_FIELDS;\n @Insert({\"insert\",TABLE_NAME,\"(\",INSERT_FIELDS,\") values (name=#{name},type=#{type},material_type=#{materialType}\" +\n \",height=#{height},width=#{width),size=#{size},duration=#{duration},audit_status=#{audit_status},\" +\n \"user_id=#{user_id},url=#{url},create_time=#{create_time},update_time=#{update_time}\"})\n int insertCreative(Creative creative);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where user_id=#{userId}\"})\n Creative selectCreativeByUserId(Long userId);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where id=#{id}\"})\n Creative selectById(@Param(\"id\")Long id);\n default List<Creative> selectAllById(List<Long> ids){\n List<Creative> creatives=new ArrayList<>();\n for (Long id:ids) {\n creatives.add(selectById(id));\n }\n return creatives;\n }\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME})\n List<Creative> selectAll();\n}", "TdxCompanyTaxArrears selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "public CursosTable() {\n \n \n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public interface CProductoMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" productos.id as recid,\"\r\n + \" productos.codigo,\"\r\n + \" productos.descripcion,\"\r\n + \" productos.unidad_produccion as unidadProductiva, \"\r\n + \" unidades_productivas.codigo AS codigoUnidadProduccion \"\r\n + \"FROM productos \"\r\n + \"LEFT JOIN unidades_productivas ON \"\r\n + \"unidades_productivas.id = productos.unidad_produccion\";\r\n \r\n static final String FIND_BY_CODE = \"SELECT \"\r\n + \" productos.id \"\r\n + \"FROM productos WHERE productos.codigo = #{code}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los productos existentes\r\n * @return lista de productos\r\n */\r\n @Select(FIND_ALL)\r\n public List<CProducto> findAll(); \r\n \r\n /**\r\n * Query que me permite ubicar un registro de la tabla de productos a partir de\r\n * un código. \r\n * @param code el código bajo el cual se busca\r\n * @return el id del registro.\r\n */\r\n @Select(FIND_BY_CODE)\r\n public Long findByCode(String code);\r\n}", "public interface RoleMapper extends RoleDao {\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE id = #{id}\")\n Role getRole(int id);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE name = #{name}\")\n Role getRoleByName(String name);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role ORDER BY name\")\n List<Role> getAllRoles();\n\n @Override\n @Insert(\"INSERT INTO role (name) VALUES(#{name})\")\n @Options(useGeneratedKeys = true)\n void addRole(Role role);\n\n @Override\n @Delete(\"DELETE FROM role WHERE id =#{id}\")\n void removeRole(Role role);\n}", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "List<Bill> all() throws SQLException;", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "private ObservableList<CarComponent> cartTable() {\n ObservableList<CarComponent> carComps = FXCollections.observableArrayList();\n\n for (CarComponent carComponent : componentsCart) {\n compTypeColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compType\"));\n compNameColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compName\"));\n compPriceColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Double>(\"compPrice\"));\n compQuantityColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Integer>(\"compQuantity\"));\n carComps.add(carComponent);\n }\n return carComps;\n }", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "@Override\r\n\tpublic LinkedList<Customer> findAll() throws SQLException {\r\n\t\tLinkedList<Customer> listCustomer = new LinkedList<Customer>();\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \";\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCustomer customer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t\tlistCustomer.add(customer);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn listCustomer;\r\n\t}", "public interface ResultSetColumn extends OptionContainer, RelationalObject {\n\n /**\n * Identifier of this object\n */\n KomodoType IDENTIFIER = KomodoType.RESULT_SET_COLUMN;\n\n /**\n * An empty array of columns.\n */\n ResultSetColumn[] NO_COLUMNS = new ResultSetColumn[0];\n\n /**\n * The type identifier.\n */\n int TYPE_ID = ResultSetColumn.class.hashCode();\n\n /**\n * The resolver of a {@link ResultSetColumn}.\n */\n TypeResolver< ResultSetColumn > RESOLVER = new TypeResolver< ResultSetColumn >() {\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#identifier()\n */\n @Override\n public KomodoType identifier() {\n return IDENTIFIER;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#owningClass()\n */\n @Override\n public Class< ResultSetColumnImpl > owningClass() {\n return ResultSetColumnImpl.class;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolvable(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public boolean resolvable( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n return ObjectImpl.validateType( transaction, kobject.getRepository(), kobject, CreateProcedure.RESULT_COLUMN );\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolve(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public ResultSetColumn resolve( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n if ( kobject.getTypeId() == ResultSetColumn.TYPE_ID ) {\n return ( ResultSetColumn )kobject;\n }\n\n return new ResultSetColumnImpl( transaction, kobject.getRepository(), kobject.getAbsolutePath() );\n }\n\n };\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n String getDatatypeName( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDefaultValue( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>description</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDescription( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n long getLength( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>name in source</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getNameInSource( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>nullable</code> property (never <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n Nullable getNullable( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n long getPrecision( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n long getScale( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>UUID</code> option (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getUuid( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newTypeName\n * the new value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n void setDatatypeName( final UnitOfWork transaction,\n final String newTypeName ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDefaultValue\n * the new value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n void setDefaultValue( final UnitOfWork transaction,\n final String newDefaultValue ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDescription\n * the new value of the <code>description</code> property (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setDescription( final UnitOfWork transaction,\n final String newDescription ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newLength\n * the new value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n void setLength( final UnitOfWork transaction,\n final long newLength ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNameInSource\n * the new name in source (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setNameInSource( final UnitOfWork transaction,\n final String newNameInSource ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNullable\n * the new value of the <code>nullable</code> property (can be <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n void setNullable( final UnitOfWork transaction,\n final Nullable newNullable ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newPrecision\n * the new value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n void setPrecision( final UnitOfWork transaction,\n final long newPrecision ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newScale\n * the new value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n void setScale( final UnitOfWork transaction,\n final long newScale ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newUuid\n * the new value of the <code>UUID</code> option (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setUuid( final UnitOfWork transaction,\n final String newUuid ) throws KException;\n\n}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public interface TermsOfReferenceDao extends AbstractDao<TermsOfReference, Integer> {\n Collection<TermsOfReference> getTermsOfReferenceWithNoProject()\n throws DataAccessException;\n\n Collection<TermsOfReference> getTermsOfReferenceByCustomer(Integer customerId)\n throws DataAccessException;\n}", "@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}", "public Courses getCourseTable();", "Movimiento selectByPrimaryKey(Integer idMovCta);", "List selectByExample(CTipoComprobanteExample example) throws SQLException;", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Transactional\r\n\tpublic List<Car> getAllCars() {\n\t\treturn (List<Car>)cr.findAll();\r\n\t}", "@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}", "public interface CityRepository extends JpaRepository<CityEntity, Long>{\n}", "public interface CanteensDao extends JpaRepository<CanteensEntity,Integer>{\n CanteensEntity queryByCanteenId(int id);\n}", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public final TradeGoods[] getCargo() {\n return cargo;\n }", "@Query(\"SELECT c FROM Customer c\")\n\tList<Customer> findAll();", "public String toString()\n {\n\tString returnString = \"\";\n\treturnString += \"[ \" + cargo + \" ][ * ]--> \";\n\treturn returnString;\n }", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n //esse passo ensina como as colunas devem receber os atributos do objeto cargo\n //A propriedade nome deve coincidir com o nome do atributo da classe cargo\n// colNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n// colDescricao.setCellValueFactory(new PropertyValueFactory<>(\"descricao\"));\n// \n// colStatus.setVisible(false);\n Field[] f = Cargo.class.getDeclaredFields();\n\n for (int i = 0; i < f.length; i++) {\n if (f[i].getName().contains(\"pk_Cargo\")) {\n continue;\n }\n TableColumn<Cargo, String> t = new TableColumn<>(f[i].getName());\n t.setCellValueFactory(new PropertyValueFactory<>(f[i].getName()));\n tvCargo.getColumns().add(t);\n }\n\n tvCargo.setItems(FXCollections.observableArrayList(CargosDAO.retreaveAll()));\n }", "@Override\n\tpublic void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {\n\t}", "public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }" ]
[ "0.590364", "0.55739254", "0.53776205", "0.5373786", "0.52583104", "0.52556455", "0.5216209", "0.51924235", "0.5175056", "0.5110947", "0.5104078", "0.5090616", "0.50754863", "0.5065929", "0.50608784", "0.49937865", "0.4977886", "0.49768093", "0.497114", "0.49614286", "0.49595168", "0.49561185", "0.49519888", "0.49374756", "0.49364713", "0.49315482", "0.49259844", "0.49140793", "0.48895037", "0.48854274", "0.4880918", "0.486885", "0.48539835", "0.48471615", "0.48382914", "0.4831915", "0.4829747", "0.4808019", "0.48029092", "0.4766288", "0.47652835", "0.4765252", "0.47617036", "0.47603372", "0.47573742", "0.47506014", "0.47475302", "0.47427472", "0.47284797", "0.47278488", "0.47275177", "0.47270715", "0.47177058", "0.47146448", "0.47130898", "0.4712335", "0.47058612", "0.4702448", "0.46962467", "0.4695612", "0.46948892", "0.46904087", "0.46896034", "0.46879107", "0.4685585", "0.4679595", "0.46737334", "0.4671113", "0.4670923", "0.46700528", "0.46644506", "0.46605763", "0.46585208", "0.46522883", "0.46515867", "0.4647441", "0.46445435", "0.46436575", "0.46420726", "0.4641905", "0.46345633", "0.46264535", "0.4625338", "0.462491", "0.46235323", "0.46231076", "0.46224254", "0.46171913", "0.46165177", "0.46160832", "0.46085212", "0.46031567", "0.4600297", "0.45983863", "0.45972088", "0.45927852", "0.45927182", "0.45893356", "0.4588853", "0.45887864", "0.45883018" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table cargo
int deleteByExample(CargoExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Cargo selectByPrimaryKey(Integer idCargo);", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n List<Purchase> selectAll();", "public Vector obtenerListaCagoBuscarIdCargo(int idCargo) throws SQLException {\n Vector listaCargo = new Vector();\n String sql = \"Select idCargo, idDocumento, numeroDocumento, Documento, \"\n + \"Fecha FechaCargo, Hora HoraCargo, Area AreaCargo, Asunto, Institucion, Recepcionista, estadoCargo From vCargoDocumento Where idCargo = \"+ idCargo;\n st = con.createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n Vector ovCargo = new Vector();\n ovCargo.add(rs.getInt(1));\n ovCargo.add(rs.getInt(2));\n ovCargo.add(rs.getString(3));\n ovCargo.add(rs.getString(4));\n ovCargo.add(rs.getString(5));\n ovCargo.add(rs.getString(6));\n ovCargo.add(rs.getString(7));\n ovCargo.add(rs.getString(8));\n ovCargo.add(rs.getString(9));\n ovCargo.add(rs.getString(10));\n ovCargo.add(rs.getInt(11));\n// System.out.println(rs.getInt(1));\n// System.out.println(rs.getInt(2));\n// System.out.println(rs.getInt(3));\n// System.out.println(rs.getInt(4));\n// System.out.println(rs.getInt(5));\n// System.out.println(rs.getInt(6));\n// System.out.println(rs.getInt(7));\n// System.out.println(rs.getInt(8));\n// System.out.println(rs.getInt(9));\n// System.out.println(rs.getInt(10));\n// System.out.println(rs.getInt(11));\n listaCargo.add(ovCargo);\n }\n return listaCargo;\n }", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "County selectByPrimaryKey(Long id);", "public List<Courtyard> findCourtyardAll() {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tList<Courtyard> courtyards = courtyardMapper.findCourtyardAll();\n\t\tSystem.out.println(\"--Into Dao Method of findCourtyardAll!!!--\");\n\t\treturn courtyards;\n\t}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "@Override\r\n\tpublic Cargo get(String matricula) throws SQLException {\n\t\treturn null;\r\n\t}", "TbCities selectByPrimaryKey(Long id);", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "List<Cargo> getCargoesForOrder(OrderDTO orderDTO);", "@Override\n public List<Cours> afficherTousLesCours() {\n return coursRepo.findAll();\n }", "public List<CustomerPurchase> getAll() throws SQLException;", "@GetMapping(\"/cargos\")\n @Timed\n public List<Cargo> getAllCargos() {\n log.debug(\"REST request to get all Cargos\");\n return cargoRepository.findAll();\n }", "public Cargo buscaCargo(String strCargo) {\r\n\t\tCargo cargo = null;\r\n\t\tcargo = (Cargo) em.createNamedQuery(\"buscaCargoPorNome\")\r\n\t\t\t\t.setParameter(1, strCargo).getSingleResult();\r\n\t\treturn cargo;\r\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "CityDO selectByPrimaryKey(Integer id);", "List<OcCustContract> selectAll();", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "List<Cargo> selectByExample(CargoExample example);", "@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "Tablero consultarTablero();", "VentaJPA obtenerVenta(int comprobante);", "@Override\n\tpublic List<Cours> allCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours\");\n\t\treturn q.getResultList();\n\t}", "@Dao\npublic interface CarrierDao {\n\n @Query(\"SELECT * FROM geo_carrier\")\n Cursor selectAll();\n\n @Query(\"SELECT * FROM geo_carrier WHERE number_prefix_3 = :numberPrefix3\")\n Cursor selectByNumberPrefix3(String numberPrefix3);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(CarrierEntity carrier);\n\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "@Mapper\npublic interface CompanyUserInfoDAO {\n\n @Select(\"SELECT * FROM company_user_info WHERE sales_id=#{sales_id} ORDER BY add_time DESC\")\n List<CompanyUserInfoDTO> findCompanyUserInfoBySalesId(@Param(\"sales_id\") Long sales_id);\n\n}", "@Bean\n public TypeMap<Cargo, Cargo> getCargoCargoTypeMap() {\n return getModelMapper().createTypeMap(Cargo.class, Cargo.class)\n .addMappings(mapper -> mapper.skip(Cargo::setId))\n .addMappings(mapper -> mapper.skip(Cargo::setNumber))\n .addMappings(mapper -> mapper.skip(Cargo::setCreateDate))\n .addMappings(mapper -> mapper.skip(Cargo::setUpdateDate))\n\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getName, Cargo::setName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getState, Cargo::setState))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getWeight, Cargo::setWeight))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getDescription, Cargo::setDescription))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDepartureWaypoint, Cargo::setDepartureWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDestinationWaypoint, Cargo::setDestinationWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getCarriage, Cargo::setCarriage));\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic Curso findCrusoByAlumnoId(Long id) {\n\t\treturn repository.findCrusoByAlumnoId(id);\n\t}", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "T buidEntity(ResultSet rs) throws SQLException;", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "@Override\n\tpublic Curso mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t/* Se declara e instancia el objeto Persona.*/\n\t\tCurso curso = new Curso();\n\t\t/* Se recoje el identificador de curso del result.*/\n\t\tcurso.setId(rs.getInt(\"id\"));\n\t\t/* Se recoje el codigo de curso del result.*/\n\t\tcurso.setCodigo(rs.getString(\"codigo\"));\n\t\t/* Se recoje el nombre de la curso del result.*/\n\t\tcurso.setNombre(rs.getString(\"nombre\"));\n\t\t\n\t\t\n\t\t/* Se devuelve el objeto Persona.*/\n\t\treturn curso;\n\t}", "@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n }", "CGcontractCredit selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "List<Corretor> findAll();", "private static Carta mapper(ResultSet rs) throws SQLException {\n\t\tCarta c = new Carta();\r\n\r\n\t\t// cogemos los valres de las columnas\r\n\t\tint colId = rs.getInt(\"id\");\r\n\t\tString colNombre = rs.getString(\"nombre\");\r\n\t\tString colNumero_id = rs.getString(\"numero_id\");\r\n\t\tString colColeccion = rs.getString(\"coleccion\");\r\n\t\tint colColeccionId = rs.getInt(\"id_coleccion\");\r\n\r\n\t\tString colTipo = rs.getString(\"tipo\");\r\n\t\tint colTipoId = rs.getInt(\"id_tipo\");\r\n\t\tString colGrado = rs.getString(\"grado\");\r\n\t\tint colGradoId = rs.getInt(\"id_grado\");\r\n\r\n\t\tint colCopias = rs.getInt(\"copias\");\r\n\r\n\t\tc.setId(colId);\r\n\t\tc.setNumero_id(colNumero_id);\r\n\t\tc.setNombre(colNombre);\r\n\t\tc.setCopias(colCopias);\r\n\r\n\t\tColeccion coleccion = new Coleccion();\r\n\t\tcoleccion.setId(colColeccionId);\r\n\t\tcoleccion.setNombre(colColeccion);\r\n\t\tc.setColeccion(coleccion);\r\n\r\n\t\tTipo tipo = new Tipo();\r\n\t\ttipo.setId(colTipoId);\r\n\t\ttipo.setNombre(colTipo);\r\n\t\tc.setTipo(tipo);\r\n\r\n\t\tGrado grado = new Grado();\r\n\t\tgrado.setId(colGradoId);\r\n\t\tgrado.setNombre(colGrado);\r\n\t\tc.setGrado(grado);\r\n\r\n\t\treturn c;\r\n\t}", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Dao\npublic interface CarDao {\n\n @Query(\"SELECT * FROM car\")\n List<Car> getAll();\n\n @Insert\n void insertAll(Car... cars);\n\n @Delete\n void delete(Car car);\n\n @Update\n void update(Car... cars);\n\n @Query(\"SELECT * FROM car WHERE chassisCode = :chassisCode\")\n Car findByChassisCode(String chassisCode);\n}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public List<Carro> getCarros(){\n\t\t\n\t\ttry {\t\t\t\n\t\t\tList<Carro> carros = db.getCarros();\n\t\t\treturn carros;\n\t\t\t\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn new ArrayList<>();\n\t\t}\n\t\t\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "public void formDatabaseTable() {\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public Circle mapRow(ResultSet rs, int rowNum) throws SQLException {\n Circle circle = new Circle();\n circle.setId(rs.getInt(\"ID\"));\n circle.setName(rs.getString(\"NAME\"));\n return circle;\n }", "public void populateCustomerTable() throws SQLException {\n\n try {\n\n PreparedStatement populateCustomerTableview = DBConnection.getConnection().prepareStatement(\"SELECT * from customers\");\n ResultSet resultSet = populateCustomerTableview.executeQuery();\n allCustomers.removeAll();\n\n while (resultSet.next()) {\n\n int customerID = resultSet.getInt(\"Customer_ID\");\n String name = resultSet.getString(\"Customer_Name\");\n String address = resultSet.getString(\"Address\");\n String postal = resultSet.getString(\"Postal_Code\");\n String phone = resultSet.getString(\"Phone\");\n String created = resultSet.getString(\"Create_Date\");\n String createdBy = resultSet.getString(\"Created_By\");\n String lastUpdate = resultSet.getString(\"Last_Update\");\n String updatedBy = resultSet.getString(\"Last_Updated_By\");\n String divisionID = resultSet.getString(\"Division_ID\");\n\n Customer newCustomer = new Customer(customerID, name, address, postal, phone, created, createdBy, lastUpdate,\n updatedBy, divisionID);\n\n allCustomers.add(newCustomer);\n }\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "TdxCompanyTaxArrears selectByPrimaryKey(Integer id);", "@Component\n@Mapper\npublic interface CreativeDao {\n String TABLE_NAME=\" ad_user \";\n String INSERT_FIELDS=\" name,type,material_type,height,width,size,duration,audit_status,\" +\n \"user_id,url,create_time,update_time \";\n String SELECT_FIELDS=\" id,\"+INSERT_FIELDS;\n @Insert({\"insert\",TABLE_NAME,\"(\",INSERT_FIELDS,\") values (name=#{name},type=#{type},material_type=#{materialType}\" +\n \",height=#{height},width=#{width),size=#{size},duration=#{duration},audit_status=#{audit_status},\" +\n \"user_id=#{user_id},url=#{url},create_time=#{create_time},update_time=#{update_time}\"})\n int insertCreative(Creative creative);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where user_id=#{userId}\"})\n Creative selectCreativeByUserId(Long userId);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where id=#{id}\"})\n Creative selectById(@Param(\"id\")Long id);\n default List<Creative> selectAllById(List<Long> ids){\n List<Creative> creatives=new ArrayList<>();\n for (Long id:ids) {\n creatives.add(selectById(id));\n }\n return creatives;\n }\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME})\n List<Creative> selectAll();\n}", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "public CursosTable() {\n \n \n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public interface CProductoMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" productos.id as recid,\"\r\n + \" productos.codigo,\"\r\n + \" productos.descripcion,\"\r\n + \" productos.unidad_produccion as unidadProductiva, \"\r\n + \" unidades_productivas.codigo AS codigoUnidadProduccion \"\r\n + \"FROM productos \"\r\n + \"LEFT JOIN unidades_productivas ON \"\r\n + \"unidades_productivas.id = productos.unidad_produccion\";\r\n \r\n static final String FIND_BY_CODE = \"SELECT \"\r\n + \" productos.id \"\r\n + \"FROM productos WHERE productos.codigo = #{code}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los productos existentes\r\n * @return lista de productos\r\n */\r\n @Select(FIND_ALL)\r\n public List<CProducto> findAll(); \r\n \r\n /**\r\n * Query que me permite ubicar un registro de la tabla de productos a partir de\r\n * un código. \r\n * @param code el código bajo el cual se busca\r\n * @return el id del registro.\r\n */\r\n @Select(FIND_BY_CODE)\r\n public Long findByCode(String code);\r\n}", "public interface RoleMapper extends RoleDao {\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE id = #{id}\")\n Role getRole(int id);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE name = #{name}\")\n Role getRoleByName(String name);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role ORDER BY name\")\n List<Role> getAllRoles();\n\n @Override\n @Insert(\"INSERT INTO role (name) VALUES(#{name})\")\n @Options(useGeneratedKeys = true)\n void addRole(Role role);\n\n @Override\n @Delete(\"DELETE FROM role WHERE id =#{id}\")\n void removeRole(Role role);\n}", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "List<Bill> all() throws SQLException;", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "private ObservableList<CarComponent> cartTable() {\n ObservableList<CarComponent> carComps = FXCollections.observableArrayList();\n\n for (CarComponent carComponent : componentsCart) {\n compTypeColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compType\"));\n compNameColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compName\"));\n compPriceColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Double>(\"compPrice\"));\n compQuantityColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Integer>(\"compQuantity\"));\n carComps.add(carComponent);\n }\n return carComps;\n }", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "public interface ResultSetColumn extends OptionContainer, RelationalObject {\n\n /**\n * Identifier of this object\n */\n KomodoType IDENTIFIER = KomodoType.RESULT_SET_COLUMN;\n\n /**\n * An empty array of columns.\n */\n ResultSetColumn[] NO_COLUMNS = new ResultSetColumn[0];\n\n /**\n * The type identifier.\n */\n int TYPE_ID = ResultSetColumn.class.hashCode();\n\n /**\n * The resolver of a {@link ResultSetColumn}.\n */\n TypeResolver< ResultSetColumn > RESOLVER = new TypeResolver< ResultSetColumn >() {\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#identifier()\n */\n @Override\n public KomodoType identifier() {\n return IDENTIFIER;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#owningClass()\n */\n @Override\n public Class< ResultSetColumnImpl > owningClass() {\n return ResultSetColumnImpl.class;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolvable(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public boolean resolvable( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n return ObjectImpl.validateType( transaction, kobject.getRepository(), kobject, CreateProcedure.RESULT_COLUMN );\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolve(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public ResultSetColumn resolve( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n if ( kobject.getTypeId() == ResultSetColumn.TYPE_ID ) {\n return ( ResultSetColumn )kobject;\n }\n\n return new ResultSetColumnImpl( transaction, kobject.getRepository(), kobject.getAbsolutePath() );\n }\n\n };\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n String getDatatypeName( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDefaultValue( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>description</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDescription( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n long getLength( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>name in source</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getNameInSource( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>nullable</code> property (never <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n Nullable getNullable( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n long getPrecision( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n long getScale( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>UUID</code> option (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getUuid( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newTypeName\n * the new value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n void setDatatypeName( final UnitOfWork transaction,\n final String newTypeName ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDefaultValue\n * the new value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n void setDefaultValue( final UnitOfWork transaction,\n final String newDefaultValue ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDescription\n * the new value of the <code>description</code> property (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setDescription( final UnitOfWork transaction,\n final String newDescription ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newLength\n * the new value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n void setLength( final UnitOfWork transaction,\n final long newLength ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNameInSource\n * the new name in source (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setNameInSource( final UnitOfWork transaction,\n final String newNameInSource ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNullable\n * the new value of the <code>nullable</code> property (can be <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n void setNullable( final UnitOfWork transaction,\n final Nullable newNullable ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newPrecision\n * the new value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n void setPrecision( final UnitOfWork transaction,\n final long newPrecision ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newScale\n * the new value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n void setScale( final UnitOfWork transaction,\n final long newScale ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newUuid\n * the new value of the <code>UUID</code> option (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setUuid( final UnitOfWork transaction,\n final String newUuid ) throws KException;\n\n}", "@Override\r\n\tpublic LinkedList<Customer> findAll() throws SQLException {\r\n\t\tLinkedList<Customer> listCustomer = new LinkedList<Customer>();\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \";\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCustomer customer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t\tlistCustomer.add(customer);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn listCustomer;\r\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public interface TermsOfReferenceDao extends AbstractDao<TermsOfReference, Integer> {\n Collection<TermsOfReference> getTermsOfReferenceWithNoProject()\n throws DataAccessException;\n\n Collection<TermsOfReference> getTermsOfReferenceByCustomer(Integer customerId)\n throws DataAccessException;\n}", "@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}", "public Courses getCourseTable();", "Movimiento selectByPrimaryKey(Integer idMovCta);", "List selectByExample(CTipoComprobanteExample example) throws SQLException;", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Transactional\r\n\tpublic List<Car> getAllCars() {\n\t\treturn (List<Car>)cr.findAll();\r\n\t}", "public interface CityRepository extends JpaRepository<CityEntity, Long>{\n}", "@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}", "public interface CanteensDao extends JpaRepository<CanteensEntity,Integer>{\n CanteensEntity queryByCanteenId(int id);\n}", "public final TradeGoods[] getCargo() {\n return cargo;\n }", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public String toString()\n {\n\tString returnString = \"\";\n\treturnString += \"[ \" + cargo + \" ][ * ]--> \";\n\treturn returnString;\n }", "@Query(\"SELECT c FROM Customer c\")\n\tList<Customer> findAll();", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n //esse passo ensina como as colunas devem receber os atributos do objeto cargo\n //A propriedade nome deve coincidir com o nome do atributo da classe cargo\n// colNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n// colDescricao.setCellValueFactory(new PropertyValueFactory<>(\"descricao\"));\n// \n// colStatus.setVisible(false);\n Field[] f = Cargo.class.getDeclaredFields();\n\n for (int i = 0; i < f.length; i++) {\n if (f[i].getName().contains(\"pk_Cargo\")) {\n continue;\n }\n TableColumn<Cargo, String> t = new TableColumn<>(f[i].getName());\n t.setCellValueFactory(new PropertyValueFactory<>(f[i].getName()));\n tvCargo.getColumns().add(t);\n }\n\n tvCargo.setItems(FXCollections.observableArrayList(CargosDAO.retreaveAll()));\n }", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "@Override\n\tpublic void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {\n\t}", "public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}", "@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();" ]
[ "0.5904964", "0.55730635", "0.5375608", "0.53753227", "0.52559406", "0.5254475", "0.52168435", "0.51928604", "0.5173352", "0.511047", "0.5106857", "0.5090345", "0.5074903", "0.50664216", "0.506069", "0.49963862", "0.4977458", "0.49768466", "0.4973573", "0.49645814", "0.49603578", "0.4956259", "0.49524438", "0.4936299", "0.4934582", "0.49317497", "0.49255753", "0.49114132", "0.48907062", "0.48857546", "0.48794466", "0.48694265", "0.485182", "0.4847842", "0.48387367", "0.4833526", "0.48293802", "0.48079246", "0.4801289", "0.47664365", "0.47645435", "0.47638264", "0.47624344", "0.47623473", "0.47577107", "0.47487745", "0.47472754", "0.47428632", "0.47282246", "0.4728197", "0.47278786", "0.47272304", "0.47184858", "0.4715073", "0.47130895", "0.47123125", "0.47087428", "0.47037748", "0.46960062", "0.46949273", "0.4692577", "0.46894038", "0.4687547", "0.4686436", "0.46861377", "0.46811563", "0.46741325", "0.4671066", "0.46707636", "0.4668658", "0.46654427", "0.46576595", "0.4657325", "0.4652792", "0.46527866", "0.46480337", "0.46471488", "0.46434116", "0.46417394", "0.4640865", "0.46335116", "0.46270806", "0.46251416", "0.46250442", "0.46246672", "0.46223348", "0.46211523", "0.46174088", "0.46164462", "0.46147633", "0.46091762", "0.46035168", "0.46014968", "0.45998177", "0.4597627", "0.45933628", "0.45921108", "0.45898396", "0.45884752", "0.45875204", "0.45871207" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table cargo
int deleteByPrimaryKey(Integer idCargo);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Cargo selectByPrimaryKey(Integer idCargo);", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "public Vector obtenerListaCagoBuscarIdCargo(int idCargo) throws SQLException {\n Vector listaCargo = new Vector();\n String sql = \"Select idCargo, idDocumento, numeroDocumento, Documento, \"\n + \"Fecha FechaCargo, Hora HoraCargo, Area AreaCargo, Asunto, Institucion, Recepcionista, estadoCargo From vCargoDocumento Where idCargo = \"+ idCargo;\n st = con.createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n Vector ovCargo = new Vector();\n ovCargo.add(rs.getInt(1));\n ovCargo.add(rs.getInt(2));\n ovCargo.add(rs.getString(3));\n ovCargo.add(rs.getString(4));\n ovCargo.add(rs.getString(5));\n ovCargo.add(rs.getString(6));\n ovCargo.add(rs.getString(7));\n ovCargo.add(rs.getString(8));\n ovCargo.add(rs.getString(9));\n ovCargo.add(rs.getString(10));\n ovCargo.add(rs.getInt(11));\n// System.out.println(rs.getInt(1));\n// System.out.println(rs.getInt(2));\n// System.out.println(rs.getInt(3));\n// System.out.println(rs.getInt(4));\n// System.out.println(rs.getInt(5));\n// System.out.println(rs.getInt(6));\n// System.out.println(rs.getInt(7));\n// System.out.println(rs.getInt(8));\n// System.out.println(rs.getInt(9));\n// System.out.println(rs.getInt(10));\n// System.out.println(rs.getInt(11));\n listaCargo.add(ovCargo);\n }\n return listaCargo;\n }", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n List<Purchase> selectAll();", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "County selectByPrimaryKey(Long id);", "public List<Courtyard> findCourtyardAll() {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tList<Courtyard> courtyards = courtyardMapper.findCourtyardAll();\n\t\tSystem.out.println(\"--Into Dao Method of findCourtyardAll!!!--\");\n\t\treturn courtyards;\n\t}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "@Override\r\n\tpublic Cargo get(String matricula) throws SQLException {\n\t\treturn null;\r\n\t}", "TbCities selectByPrimaryKey(Long id);", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "List<Cargo> getCargoesForOrder(OrderDTO orderDTO);", "@Override\n public List<Cours> afficherTousLesCours() {\n return coursRepo.findAll();\n }", "public List<CustomerPurchase> getAll() throws SQLException;", "@GetMapping(\"/cargos\")\n @Timed\n public List<Cargo> getAllCargos() {\n log.debug(\"REST request to get all Cargos\");\n return cargoRepository.findAll();\n }", "public Cargo buscaCargo(String strCargo) {\r\n\t\tCargo cargo = null;\r\n\t\tcargo = (Cargo) em.createNamedQuery(\"buscaCargoPorNome\")\r\n\t\t\t\t.setParameter(1, strCargo).getSingleResult();\r\n\t\treturn cargo;\r\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "CityDO selectByPrimaryKey(Integer id);", "List<OcCustContract> selectAll();", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "List<Cargo> selectByExample(CargoExample example);", "@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "Tablero consultarTablero();", "VentaJPA obtenerVenta(int comprobante);", "@Override\n\tpublic List<Cours> allCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours\");\n\t\treturn q.getResultList();\n\t}", "@Dao\npublic interface CarrierDao {\n\n @Query(\"SELECT * FROM geo_carrier\")\n Cursor selectAll();\n\n @Query(\"SELECT * FROM geo_carrier WHERE number_prefix_3 = :numberPrefix3\")\n Cursor selectByNumberPrefix3(String numberPrefix3);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(CarrierEntity carrier);\n\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic Curso findCrusoByAlumnoId(Long id) {\n\t\treturn repository.findCrusoByAlumnoId(id);\n\t}", "@Bean\n public TypeMap<Cargo, Cargo> getCargoCargoTypeMap() {\n return getModelMapper().createTypeMap(Cargo.class, Cargo.class)\n .addMappings(mapper -> mapper.skip(Cargo::setId))\n .addMappings(mapper -> mapper.skip(Cargo::setNumber))\n .addMappings(mapper -> mapper.skip(Cargo::setCreateDate))\n .addMappings(mapper -> mapper.skip(Cargo::setUpdateDate))\n\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getName, Cargo::setName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getState, Cargo::setState))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getWeight, Cargo::setWeight))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getDescription, Cargo::setDescription))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDepartureWaypoint, Cargo::setDepartureWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDestinationWaypoint, Cargo::setDestinationWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getCarriage, Cargo::setCarriage));\n }", "@Mapper\npublic interface CompanyUserInfoDAO {\n\n @Select(\"SELECT * FROM company_user_info WHERE sales_id=#{sales_id} ORDER BY add_time DESC\")\n List<CompanyUserInfoDTO> findCompanyUserInfoBySalesId(@Param(\"sales_id\") Long sales_id);\n\n}", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "T buidEntity(ResultSet rs) throws SQLException;", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "@Override\n\tpublic Curso mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t/* Se declara e instancia el objeto Persona.*/\n\t\tCurso curso = new Curso();\n\t\t/* Se recoje el identificador de curso del result.*/\n\t\tcurso.setId(rs.getInt(\"id\"));\n\t\t/* Se recoje el codigo de curso del result.*/\n\t\tcurso.setCodigo(rs.getString(\"codigo\"));\n\t\t/* Se recoje el nombre de la curso del result.*/\n\t\tcurso.setNombre(rs.getString(\"nombre\"));\n\t\t\n\t\t\n\t\t/* Se devuelve el objeto Persona.*/\n\t\treturn curso;\n\t}", "CGcontractCredit selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "List<Corretor> findAll();", "private static Carta mapper(ResultSet rs) throws SQLException {\n\t\tCarta c = new Carta();\r\n\r\n\t\t// cogemos los valres de las columnas\r\n\t\tint colId = rs.getInt(\"id\");\r\n\t\tString colNombre = rs.getString(\"nombre\");\r\n\t\tString colNumero_id = rs.getString(\"numero_id\");\r\n\t\tString colColeccion = rs.getString(\"coleccion\");\r\n\t\tint colColeccionId = rs.getInt(\"id_coleccion\");\r\n\r\n\t\tString colTipo = rs.getString(\"tipo\");\r\n\t\tint colTipoId = rs.getInt(\"id_tipo\");\r\n\t\tString colGrado = rs.getString(\"grado\");\r\n\t\tint colGradoId = rs.getInt(\"id_grado\");\r\n\r\n\t\tint colCopias = rs.getInt(\"copias\");\r\n\r\n\t\tc.setId(colId);\r\n\t\tc.setNumero_id(colNumero_id);\r\n\t\tc.setNombre(colNombre);\r\n\t\tc.setCopias(colCopias);\r\n\r\n\t\tColeccion coleccion = new Coleccion();\r\n\t\tcoleccion.setId(colColeccionId);\r\n\t\tcoleccion.setNombre(colColeccion);\r\n\t\tc.setColeccion(coleccion);\r\n\r\n\t\tTipo tipo = new Tipo();\r\n\t\ttipo.setId(colTipoId);\r\n\t\ttipo.setNombre(colTipo);\r\n\t\tc.setTipo(tipo);\r\n\r\n\t\tGrado grado = new Grado();\r\n\t\tgrado.setId(colGradoId);\r\n\t\tgrado.setNombre(colGrado);\r\n\t\tc.setGrado(grado);\r\n\r\n\t\treturn c;\r\n\t}", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Dao\npublic interface CarDao {\n\n @Query(\"SELECT * FROM car\")\n List<Car> getAll();\n\n @Insert\n void insertAll(Car... cars);\n\n @Delete\n void delete(Car car);\n\n @Update\n void update(Car... cars);\n\n @Query(\"SELECT * FROM car WHERE chassisCode = :chassisCode\")\n Car findByChassisCode(String chassisCode);\n}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public List<Carro> getCarros(){\n\t\t\n\t\ttry {\t\t\t\n\t\t\tList<Carro> carros = db.getCarros();\n\t\t\treturn carros;\n\t\t\t\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn new ArrayList<>();\n\t\t}\n\t\t\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "public void formDatabaseTable() {\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public Circle mapRow(ResultSet rs, int rowNum) throws SQLException {\n Circle circle = new Circle();\n circle.setId(rs.getInt(\"ID\"));\n circle.setName(rs.getString(\"NAME\"));\n return circle;\n }", "TdxCompanyTaxArrears selectByPrimaryKey(Integer id);", "public void populateCustomerTable() throws SQLException {\n\n try {\n\n PreparedStatement populateCustomerTableview = DBConnection.getConnection().prepareStatement(\"SELECT * from customers\");\n ResultSet resultSet = populateCustomerTableview.executeQuery();\n allCustomers.removeAll();\n\n while (resultSet.next()) {\n\n int customerID = resultSet.getInt(\"Customer_ID\");\n String name = resultSet.getString(\"Customer_Name\");\n String address = resultSet.getString(\"Address\");\n String postal = resultSet.getString(\"Postal_Code\");\n String phone = resultSet.getString(\"Phone\");\n String created = resultSet.getString(\"Create_Date\");\n String createdBy = resultSet.getString(\"Created_By\");\n String lastUpdate = resultSet.getString(\"Last_Update\");\n String updatedBy = resultSet.getString(\"Last_Updated_By\");\n String divisionID = resultSet.getString(\"Division_ID\");\n\n Customer newCustomer = new Customer(customerID, name, address, postal, phone, created, createdBy, lastUpdate,\n updatedBy, divisionID);\n\n allCustomers.add(newCustomer);\n }\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "@Component\n@Mapper\npublic interface CreativeDao {\n String TABLE_NAME=\" ad_user \";\n String INSERT_FIELDS=\" name,type,material_type,height,width,size,duration,audit_status,\" +\n \"user_id,url,create_time,update_time \";\n String SELECT_FIELDS=\" id,\"+INSERT_FIELDS;\n @Insert({\"insert\",TABLE_NAME,\"(\",INSERT_FIELDS,\") values (name=#{name},type=#{type},material_type=#{materialType}\" +\n \",height=#{height},width=#{width),size=#{size},duration=#{duration},audit_status=#{audit_status},\" +\n \"user_id=#{user_id},url=#{url},create_time=#{create_time},update_time=#{update_time}\"})\n int insertCreative(Creative creative);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where user_id=#{userId}\"})\n Creative selectCreativeByUserId(Long userId);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where id=#{id}\"})\n Creative selectById(@Param(\"id\")Long id);\n default List<Creative> selectAllById(List<Long> ids){\n List<Creative> creatives=new ArrayList<>();\n for (Long id:ids) {\n creatives.add(selectById(id));\n }\n return creatives;\n }\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME})\n List<Creative> selectAll();\n}", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "public CursosTable() {\n \n \n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public interface CProductoMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" productos.id as recid,\"\r\n + \" productos.codigo,\"\r\n + \" productos.descripcion,\"\r\n + \" productos.unidad_produccion as unidadProductiva, \"\r\n + \" unidades_productivas.codigo AS codigoUnidadProduccion \"\r\n + \"FROM productos \"\r\n + \"LEFT JOIN unidades_productivas ON \"\r\n + \"unidades_productivas.id = productos.unidad_produccion\";\r\n \r\n static final String FIND_BY_CODE = \"SELECT \"\r\n + \" productos.id \"\r\n + \"FROM productos WHERE productos.codigo = #{code}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los productos existentes\r\n * @return lista de productos\r\n */\r\n @Select(FIND_ALL)\r\n public List<CProducto> findAll(); \r\n \r\n /**\r\n * Query que me permite ubicar un registro de la tabla de productos a partir de\r\n * un código. \r\n * @param code el código bajo el cual se busca\r\n * @return el id del registro.\r\n */\r\n @Select(FIND_BY_CODE)\r\n public Long findByCode(String code);\r\n}", "public interface RoleMapper extends RoleDao {\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE id = #{id}\")\n Role getRole(int id);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE name = #{name}\")\n Role getRoleByName(String name);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role ORDER BY name\")\n List<Role> getAllRoles();\n\n @Override\n @Insert(\"INSERT INTO role (name) VALUES(#{name})\")\n @Options(useGeneratedKeys = true)\n void addRole(Role role);\n\n @Override\n @Delete(\"DELETE FROM role WHERE id =#{id}\")\n void removeRole(Role role);\n}", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "List<Bill> all() throws SQLException;", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "private ObservableList<CarComponent> cartTable() {\n ObservableList<CarComponent> carComps = FXCollections.observableArrayList();\n\n for (CarComponent carComponent : componentsCart) {\n compTypeColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compType\"));\n compNameColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compName\"));\n compPriceColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Double>(\"compPrice\"));\n compQuantityColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Integer>(\"compQuantity\"));\n carComps.add(carComponent);\n }\n return carComps;\n }", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "public interface ResultSetColumn extends OptionContainer, RelationalObject {\n\n /**\n * Identifier of this object\n */\n KomodoType IDENTIFIER = KomodoType.RESULT_SET_COLUMN;\n\n /**\n * An empty array of columns.\n */\n ResultSetColumn[] NO_COLUMNS = new ResultSetColumn[0];\n\n /**\n * The type identifier.\n */\n int TYPE_ID = ResultSetColumn.class.hashCode();\n\n /**\n * The resolver of a {@link ResultSetColumn}.\n */\n TypeResolver< ResultSetColumn > RESOLVER = new TypeResolver< ResultSetColumn >() {\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#identifier()\n */\n @Override\n public KomodoType identifier() {\n return IDENTIFIER;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#owningClass()\n */\n @Override\n public Class< ResultSetColumnImpl > owningClass() {\n return ResultSetColumnImpl.class;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolvable(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public boolean resolvable( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n return ObjectImpl.validateType( transaction, kobject.getRepository(), kobject, CreateProcedure.RESULT_COLUMN );\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolve(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public ResultSetColumn resolve( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n if ( kobject.getTypeId() == ResultSetColumn.TYPE_ID ) {\n return ( ResultSetColumn )kobject;\n }\n\n return new ResultSetColumnImpl( transaction, kobject.getRepository(), kobject.getAbsolutePath() );\n }\n\n };\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n String getDatatypeName( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDefaultValue( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>description</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDescription( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n long getLength( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>name in source</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getNameInSource( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>nullable</code> property (never <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n Nullable getNullable( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n long getPrecision( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n long getScale( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>UUID</code> option (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getUuid( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newTypeName\n * the new value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n void setDatatypeName( final UnitOfWork transaction,\n final String newTypeName ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDefaultValue\n * the new value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n void setDefaultValue( final UnitOfWork transaction,\n final String newDefaultValue ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDescription\n * the new value of the <code>description</code> property (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setDescription( final UnitOfWork transaction,\n final String newDescription ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newLength\n * the new value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n void setLength( final UnitOfWork transaction,\n final long newLength ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNameInSource\n * the new name in source (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setNameInSource( final UnitOfWork transaction,\n final String newNameInSource ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNullable\n * the new value of the <code>nullable</code> property (can be <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n void setNullable( final UnitOfWork transaction,\n final Nullable newNullable ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newPrecision\n * the new value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n void setPrecision( final UnitOfWork transaction,\n final long newPrecision ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newScale\n * the new value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n void setScale( final UnitOfWork transaction,\n final long newScale ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newUuid\n * the new value of the <code>UUID</code> option (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setUuid( final UnitOfWork transaction,\n final String newUuid ) throws KException;\n\n}", "@Override\r\n\tpublic LinkedList<Customer> findAll() throws SQLException {\r\n\t\tLinkedList<Customer> listCustomer = new LinkedList<Customer>();\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \";\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCustomer customer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t\tlistCustomer.add(customer);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn listCustomer;\r\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public interface TermsOfReferenceDao extends AbstractDao<TermsOfReference, Integer> {\n Collection<TermsOfReference> getTermsOfReferenceWithNoProject()\n throws DataAccessException;\n\n Collection<TermsOfReference> getTermsOfReferenceByCustomer(Integer customerId)\n throws DataAccessException;\n}", "Movimiento selectByPrimaryKey(Integer idMovCta);", "public Courses getCourseTable();", "@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}", "List selectByExample(CTipoComprobanteExample example) throws SQLException;", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Transactional\r\n\tpublic List<Car> getAllCars() {\n\t\treturn (List<Car>)cr.findAll();\r\n\t}", "public interface CityRepository extends JpaRepository<CityEntity, Long>{\n}", "@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}", "public interface CanteensDao extends JpaRepository<CanteensEntity,Integer>{\n CanteensEntity queryByCanteenId(int id);\n}", "public final TradeGoods[] getCargo() {\n return cargo;\n }", "public String toString()\n {\n\tString returnString = \"\";\n\treturnString += \"[ \" + cargo + \" ][ * ]--> \";\n\treturn returnString;\n }", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "@Query(\"SELECT c FROM Customer c\")\n\tList<Customer> findAll();", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n //esse passo ensina como as colunas devem receber os atributos do objeto cargo\n //A propriedade nome deve coincidir com o nome do atributo da classe cargo\n// colNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n// colDescricao.setCellValueFactory(new PropertyValueFactory<>(\"descricao\"));\n// \n// colStatus.setVisible(false);\n Field[] f = Cargo.class.getDeclaredFields();\n\n for (int i = 0; i < f.length; i++) {\n if (f[i].getName().contains(\"pk_Cargo\")) {\n continue;\n }\n TableColumn<Cargo, String> t = new TableColumn<>(f[i].getName());\n t.setCellValueFactory(new PropertyValueFactory<>(f[i].getName()));\n tvCargo.getColumns().add(t);\n }\n\n tvCargo.setItems(FXCollections.observableArrayList(CargosDAO.retreaveAll()));\n }", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "@Override\n\tpublic void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {\n\t}", "public List<Good> getCargo() {\n return cargo;\n }", "public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();" ]
[ "0.5905415", "0.5572017", "0.53757757", "0.53755826", "0.52548414", "0.52535844", "0.5216436", "0.51930636", "0.51731247", "0.5110516", "0.51073325", "0.5089412", "0.5074294", "0.5065202", "0.5059454", "0.4996471", "0.49776092", "0.4976169", "0.497482", "0.4964934", "0.49602285", "0.49560887", "0.49518162", "0.4936161", "0.49332425", "0.4931437", "0.4925473", "0.49108458", "0.4891333", "0.48855186", "0.48790336", "0.4869521", "0.48503548", "0.4846791", "0.48362994", "0.48338488", "0.4830089", "0.48075992", "0.48008752", "0.47664928", "0.47649902", "0.4763299", "0.47630817", "0.47620496", "0.4756696", "0.47482252", "0.47453442", "0.474162", "0.47283223", "0.4727951", "0.47278157", "0.47266", "0.47197336", "0.47141606", "0.47131082", "0.47118804", "0.47092706", "0.47042626", "0.4695176", "0.46935153", "0.46922913", "0.46890002", "0.4686203", "0.4685662", "0.46852612", "0.4680848", "0.46734196", "0.46706828", "0.46692726", "0.46682063", "0.46640706", "0.465771", "0.4656814", "0.4653627", "0.4653331", "0.46490005", "0.4645754", "0.4642756", "0.46427438", "0.46403542", "0.46326742", "0.46269944", "0.4624304", "0.46239933", "0.4623847", "0.46216908", "0.462097", "0.461793", "0.4616371", "0.46152684", "0.46102986", "0.46055242", "0.46018335", "0.46008047", "0.45979476", "0.4593827", "0.45910513", "0.45891622", "0.45887622", "0.4588344", "0.45873848" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table cargo
int insert(Cargo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Cargo selectByPrimaryKey(Integer idCargo);", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n List<Purchase> selectAll();", "public Vector obtenerListaCagoBuscarIdCargo(int idCargo) throws SQLException {\n Vector listaCargo = new Vector();\n String sql = \"Select idCargo, idDocumento, numeroDocumento, Documento, \"\n + \"Fecha FechaCargo, Hora HoraCargo, Area AreaCargo, Asunto, Institucion, Recepcionista, estadoCargo From vCargoDocumento Where idCargo = \"+ idCargo;\n st = con.createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n Vector ovCargo = new Vector();\n ovCargo.add(rs.getInt(1));\n ovCargo.add(rs.getInt(2));\n ovCargo.add(rs.getString(3));\n ovCargo.add(rs.getString(4));\n ovCargo.add(rs.getString(5));\n ovCargo.add(rs.getString(6));\n ovCargo.add(rs.getString(7));\n ovCargo.add(rs.getString(8));\n ovCargo.add(rs.getString(9));\n ovCargo.add(rs.getString(10));\n ovCargo.add(rs.getInt(11));\n// System.out.println(rs.getInt(1));\n// System.out.println(rs.getInt(2));\n// System.out.println(rs.getInt(3));\n// System.out.println(rs.getInt(4));\n// System.out.println(rs.getInt(5));\n// System.out.println(rs.getInt(6));\n// System.out.println(rs.getInt(7));\n// System.out.println(rs.getInt(8));\n// System.out.println(rs.getInt(9));\n// System.out.println(rs.getInt(10));\n// System.out.println(rs.getInt(11));\n listaCargo.add(ovCargo);\n }\n return listaCargo;\n }", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "County selectByPrimaryKey(Long id);", "public List<Courtyard> findCourtyardAll() {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tList<Courtyard> courtyards = courtyardMapper.findCourtyardAll();\n\t\tSystem.out.println(\"--Into Dao Method of findCourtyardAll!!!--\");\n\t\treturn courtyards;\n\t}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "@Override\r\n\tpublic Cargo get(String matricula) throws SQLException {\n\t\treturn null;\r\n\t}", "TbCities selectByPrimaryKey(Long id);", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "List<Cargo> getCargoesForOrder(OrderDTO orderDTO);", "public List<CustomerPurchase> getAll() throws SQLException;", "@Override\n public List<Cours> afficherTousLesCours() {\n return coursRepo.findAll();\n }", "@GetMapping(\"/cargos\")\n @Timed\n public List<Cargo> getAllCargos() {\n log.debug(\"REST request to get all Cargos\");\n return cargoRepository.findAll();\n }", "public Cargo buscaCargo(String strCargo) {\r\n\t\tCargo cargo = null;\r\n\t\tcargo = (Cargo) em.createNamedQuery(\"buscaCargoPorNome\")\r\n\t\t\t\t.setParameter(1, strCargo).getSingleResult();\r\n\t\treturn cargo;\r\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "CityDO selectByPrimaryKey(Integer id);", "List<OcCustContract> selectAll();", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "List<Cargo> selectByExample(CargoExample example);", "@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "Tablero consultarTablero();", "VentaJPA obtenerVenta(int comprobante);", "@Override\n\tpublic List<Cours> allCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours\");\n\t\treturn q.getResultList();\n\t}", "@Dao\npublic interface CarrierDao {\n\n @Query(\"SELECT * FROM geo_carrier\")\n Cursor selectAll();\n\n @Query(\"SELECT * FROM geo_carrier WHERE number_prefix_3 = :numberPrefix3\")\n Cursor selectByNumberPrefix3(String numberPrefix3);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(CarrierEntity carrier);\n\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "@Mapper\npublic interface CompanyUserInfoDAO {\n\n @Select(\"SELECT * FROM company_user_info WHERE sales_id=#{sales_id} ORDER BY add_time DESC\")\n List<CompanyUserInfoDTO> findCompanyUserInfoBySalesId(@Param(\"sales_id\") Long sales_id);\n\n}", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "@Bean\n public TypeMap<Cargo, Cargo> getCargoCargoTypeMap() {\n return getModelMapper().createTypeMap(Cargo.class, Cargo.class)\n .addMappings(mapper -> mapper.skip(Cargo::setId))\n .addMappings(mapper -> mapper.skip(Cargo::setNumber))\n .addMappings(mapper -> mapper.skip(Cargo::setCreateDate))\n .addMappings(mapper -> mapper.skip(Cargo::setUpdateDate))\n\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getName, Cargo::setName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getState, Cargo::setState))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getWeight, Cargo::setWeight))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getDescription, Cargo::setDescription))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDepartureWaypoint, Cargo::setDepartureWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDestinationWaypoint, Cargo::setDestinationWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getCarriage, Cargo::setCarriage));\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic Curso findCrusoByAlumnoId(Long id) {\n\t\treturn repository.findCrusoByAlumnoId(id);\n\t}", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "T buidEntity(ResultSet rs) throws SQLException;", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "@Override\n\tpublic Curso mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t/* Se declara e instancia el objeto Persona.*/\n\t\tCurso curso = new Curso();\n\t\t/* Se recoje el identificador de curso del result.*/\n\t\tcurso.setId(rs.getInt(\"id\"));\n\t\t/* Se recoje el codigo de curso del result.*/\n\t\tcurso.setCodigo(rs.getString(\"codigo\"));\n\t\t/* Se recoje el nombre de la curso del result.*/\n\t\tcurso.setNombre(rs.getString(\"nombre\"));\n\t\t\n\t\t\n\t\t/* Se devuelve el objeto Persona.*/\n\t\treturn curso;\n\t}", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "CGcontractCredit selectByPrimaryKey(Integer id);", "@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n }", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "List<Corretor> findAll();", "private static Carta mapper(ResultSet rs) throws SQLException {\n\t\tCarta c = new Carta();\r\n\r\n\t\t// cogemos los valres de las columnas\r\n\t\tint colId = rs.getInt(\"id\");\r\n\t\tString colNombre = rs.getString(\"nombre\");\r\n\t\tString colNumero_id = rs.getString(\"numero_id\");\r\n\t\tString colColeccion = rs.getString(\"coleccion\");\r\n\t\tint colColeccionId = rs.getInt(\"id_coleccion\");\r\n\r\n\t\tString colTipo = rs.getString(\"tipo\");\r\n\t\tint colTipoId = rs.getInt(\"id_tipo\");\r\n\t\tString colGrado = rs.getString(\"grado\");\r\n\t\tint colGradoId = rs.getInt(\"id_grado\");\r\n\r\n\t\tint colCopias = rs.getInt(\"copias\");\r\n\r\n\t\tc.setId(colId);\r\n\t\tc.setNumero_id(colNumero_id);\r\n\t\tc.setNombre(colNombre);\r\n\t\tc.setCopias(colCopias);\r\n\r\n\t\tColeccion coleccion = new Coleccion();\r\n\t\tcoleccion.setId(colColeccionId);\r\n\t\tcoleccion.setNombre(colColeccion);\r\n\t\tc.setColeccion(coleccion);\r\n\r\n\t\tTipo tipo = new Tipo();\r\n\t\ttipo.setId(colTipoId);\r\n\t\ttipo.setNombre(colTipo);\r\n\t\tc.setTipo(tipo);\r\n\r\n\t\tGrado grado = new Grado();\r\n\t\tgrado.setId(colGradoId);\r\n\t\tgrado.setNombre(colGrado);\r\n\t\tc.setGrado(grado);\r\n\r\n\t\treturn c;\r\n\t}", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Dao\npublic interface CarDao {\n\n @Query(\"SELECT * FROM car\")\n List<Car> getAll();\n\n @Insert\n void insertAll(Car... cars);\n\n @Delete\n void delete(Car car);\n\n @Update\n void update(Car... cars);\n\n @Query(\"SELECT * FROM car WHERE chassisCode = :chassisCode\")\n Car findByChassisCode(String chassisCode);\n}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public List<Carro> getCarros(){\n\t\t\n\t\ttry {\t\t\t\n\t\t\tList<Carro> carros = db.getCarros();\n\t\t\treturn carros;\n\t\t\t\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn new ArrayList<>();\n\t\t}\n\t\t\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "public void formDatabaseTable() {\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public Circle mapRow(ResultSet rs, int rowNum) throws SQLException {\n Circle circle = new Circle();\n circle.setId(rs.getInt(\"ID\"));\n circle.setName(rs.getString(\"NAME\"));\n return circle;\n }", "public void populateCustomerTable() throws SQLException {\n\n try {\n\n PreparedStatement populateCustomerTableview = DBConnection.getConnection().prepareStatement(\"SELECT * from customers\");\n ResultSet resultSet = populateCustomerTableview.executeQuery();\n allCustomers.removeAll();\n\n while (resultSet.next()) {\n\n int customerID = resultSet.getInt(\"Customer_ID\");\n String name = resultSet.getString(\"Customer_Name\");\n String address = resultSet.getString(\"Address\");\n String postal = resultSet.getString(\"Postal_Code\");\n String phone = resultSet.getString(\"Phone\");\n String created = resultSet.getString(\"Create_Date\");\n String createdBy = resultSet.getString(\"Created_By\");\n String lastUpdate = resultSet.getString(\"Last_Update\");\n String updatedBy = resultSet.getString(\"Last_Updated_By\");\n String divisionID = resultSet.getString(\"Division_ID\");\n\n Customer newCustomer = new Customer(customerID, name, address, postal, phone, created, createdBy, lastUpdate,\n updatedBy, divisionID);\n\n allCustomers.add(newCustomer);\n }\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "@Component\n@Mapper\npublic interface CreativeDao {\n String TABLE_NAME=\" ad_user \";\n String INSERT_FIELDS=\" name,type,material_type,height,width,size,duration,audit_status,\" +\n \"user_id,url,create_time,update_time \";\n String SELECT_FIELDS=\" id,\"+INSERT_FIELDS;\n @Insert({\"insert\",TABLE_NAME,\"(\",INSERT_FIELDS,\") values (name=#{name},type=#{type},material_type=#{materialType}\" +\n \",height=#{height},width=#{width),size=#{size},duration=#{duration},audit_status=#{audit_status},\" +\n \"user_id=#{user_id},url=#{url},create_time=#{create_time},update_time=#{update_time}\"})\n int insertCreative(Creative creative);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where user_id=#{userId}\"})\n Creative selectCreativeByUserId(Long userId);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where id=#{id}\"})\n Creative selectById(@Param(\"id\")Long id);\n default List<Creative> selectAllById(List<Long> ids){\n List<Creative> creatives=new ArrayList<>();\n for (Long id:ids) {\n creatives.add(selectById(id));\n }\n return creatives;\n }\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME})\n List<Creative> selectAll();\n}", "TdxCompanyTaxArrears selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "public CursosTable() {\n \n \n }", "public interface CProductoMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" productos.id as recid,\"\r\n + \" productos.codigo,\"\r\n + \" productos.descripcion,\"\r\n + \" productos.unidad_produccion as unidadProductiva, \"\r\n + \" unidades_productivas.codigo AS codigoUnidadProduccion \"\r\n + \"FROM productos \"\r\n + \"LEFT JOIN unidades_productivas ON \"\r\n + \"unidades_productivas.id = productos.unidad_produccion\";\r\n \r\n static final String FIND_BY_CODE = \"SELECT \"\r\n + \" productos.id \"\r\n + \"FROM productos WHERE productos.codigo = #{code}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los productos existentes\r\n * @return lista de productos\r\n */\r\n @Select(FIND_ALL)\r\n public List<CProducto> findAll(); \r\n \r\n /**\r\n * Query que me permite ubicar un registro de la tabla de productos a partir de\r\n * un código. \r\n * @param code el código bajo el cual se busca\r\n * @return el id del registro.\r\n */\r\n @Select(FIND_BY_CODE)\r\n public Long findByCode(String code);\r\n}", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public interface RoleMapper extends RoleDao {\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE id = #{id}\")\n Role getRole(int id);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE name = #{name}\")\n Role getRoleByName(String name);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role ORDER BY name\")\n List<Role> getAllRoles();\n\n @Override\n @Insert(\"INSERT INTO role (name) VALUES(#{name})\")\n @Options(useGeneratedKeys = true)\n void addRole(Role role);\n\n @Override\n @Delete(\"DELETE FROM role WHERE id =#{id}\")\n void removeRole(Role role);\n}", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "List<Bill> all() throws SQLException;", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "private ObservableList<CarComponent> cartTable() {\n ObservableList<CarComponent> carComps = FXCollections.observableArrayList();\n\n for (CarComponent carComponent : componentsCart) {\n compTypeColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compType\"));\n compNameColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compName\"));\n compPriceColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Double>(\"compPrice\"));\n compQuantityColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Integer>(\"compQuantity\"));\n carComps.add(carComponent);\n }\n return carComps;\n }", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "public interface ResultSetColumn extends OptionContainer, RelationalObject {\n\n /**\n * Identifier of this object\n */\n KomodoType IDENTIFIER = KomodoType.RESULT_SET_COLUMN;\n\n /**\n * An empty array of columns.\n */\n ResultSetColumn[] NO_COLUMNS = new ResultSetColumn[0];\n\n /**\n * The type identifier.\n */\n int TYPE_ID = ResultSetColumn.class.hashCode();\n\n /**\n * The resolver of a {@link ResultSetColumn}.\n */\n TypeResolver< ResultSetColumn > RESOLVER = new TypeResolver< ResultSetColumn >() {\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#identifier()\n */\n @Override\n public KomodoType identifier() {\n return IDENTIFIER;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#owningClass()\n */\n @Override\n public Class< ResultSetColumnImpl > owningClass() {\n return ResultSetColumnImpl.class;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolvable(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public boolean resolvable( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n return ObjectImpl.validateType( transaction, kobject.getRepository(), kobject, CreateProcedure.RESULT_COLUMN );\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolve(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public ResultSetColumn resolve( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n if ( kobject.getTypeId() == ResultSetColumn.TYPE_ID ) {\n return ( ResultSetColumn )kobject;\n }\n\n return new ResultSetColumnImpl( transaction, kobject.getRepository(), kobject.getAbsolutePath() );\n }\n\n };\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n String getDatatypeName( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDefaultValue( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>description</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDescription( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n long getLength( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>name in source</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getNameInSource( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>nullable</code> property (never <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n Nullable getNullable( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n long getPrecision( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n long getScale( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>UUID</code> option (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getUuid( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newTypeName\n * the new value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n void setDatatypeName( final UnitOfWork transaction,\n final String newTypeName ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDefaultValue\n * the new value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n void setDefaultValue( final UnitOfWork transaction,\n final String newDefaultValue ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDescription\n * the new value of the <code>description</code> property (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setDescription( final UnitOfWork transaction,\n final String newDescription ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newLength\n * the new value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n void setLength( final UnitOfWork transaction,\n final long newLength ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNameInSource\n * the new name in source (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setNameInSource( final UnitOfWork transaction,\n final String newNameInSource ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNullable\n * the new value of the <code>nullable</code> property (can be <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n void setNullable( final UnitOfWork transaction,\n final Nullable newNullable ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newPrecision\n * the new value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n void setPrecision( final UnitOfWork transaction,\n final long newPrecision ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newScale\n * the new value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n void setScale( final UnitOfWork transaction,\n final long newScale ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newUuid\n * the new value of the <code>UUID</code> option (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setUuid( final UnitOfWork transaction,\n final String newUuid ) throws KException;\n\n}", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "@Override\r\n\tpublic LinkedList<Customer> findAll() throws SQLException {\r\n\t\tLinkedList<Customer> listCustomer = new LinkedList<Customer>();\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \";\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCustomer customer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t\tlistCustomer.add(customer);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn listCustomer;\r\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public interface TermsOfReferenceDao extends AbstractDao<TermsOfReference, Integer> {\n Collection<TermsOfReference> getTermsOfReferenceWithNoProject()\n throws DataAccessException;\n\n Collection<TermsOfReference> getTermsOfReferenceByCustomer(Integer customerId)\n throws DataAccessException;\n}", "public Courses getCourseTable();", "Movimiento selectByPrimaryKey(Integer idMovCta);", "@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "List selectByExample(CTipoComprobanteExample example) throws SQLException;", "@Transactional\r\n\tpublic List<Car> getAllCars() {\n\t\treturn (List<Car>)cr.findAll();\r\n\t}", "@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}", "public interface CityRepository extends JpaRepository<CityEntity, Long>{\n}", "public interface CanteensDao extends JpaRepository<CanteensEntity,Integer>{\n CanteensEntity queryByCanteenId(int id);\n}", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public final TradeGoods[] getCargo() {\n return cargo;\n }", "@Query(\"SELECT c FROM Customer c\")\n\tList<Customer> findAll();", "public String toString()\n {\n\tString returnString = \"\";\n\treturnString += \"[ \" + cargo + \" ][ * ]--> \";\n\treturn returnString;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n //esse passo ensina como as colunas devem receber os atributos do objeto cargo\n //A propriedade nome deve coincidir com o nome do atributo da classe cargo\n// colNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n// colDescricao.setCellValueFactory(new PropertyValueFactory<>(\"descricao\"));\n// \n// colStatus.setVisible(false);\n Field[] f = Cargo.class.getDeclaredFields();\n\n for (int i = 0; i < f.length; i++) {\n if (f[i].getName().contains(\"pk_Cargo\")) {\n continue;\n }\n TableColumn<Cargo, String> t = new TableColumn<>(f[i].getName());\n t.setCellValueFactory(new PropertyValueFactory<>(f[i].getName()));\n tvCargo.getColumns().add(t);\n }\n\n tvCargo.setItems(FXCollections.observableArrayList(CargosDAO.retreaveAll()));\n }", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}", "@Override\n\tpublic void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }" ]
[ "0.59035504", "0.557313", "0.53774446", "0.53731", "0.52572745", "0.5255507", "0.5215776", "0.5191732", "0.51750356", "0.5110728", "0.5103905", "0.5089586", "0.50746727", "0.50643545", "0.50596315", "0.49927184", "0.49769726", "0.49760795", "0.49713275", "0.49617887", "0.49597105", "0.4955269", "0.49520934", "0.49370614", "0.49355856", "0.49302575", "0.49260187", "0.49128345", "0.4890144", "0.48841435", "0.4880642", "0.48681012", "0.4852993", "0.4847635", "0.48385048", "0.48313868", "0.4829095", "0.48067617", "0.48025084", "0.4767036", "0.47648603", "0.47644332", "0.47618338", "0.4761697", "0.47589538", "0.4749273", "0.47485343", "0.4743347", "0.47282547", "0.4727752", "0.4727597", "0.47272462", "0.47175953", "0.4714178", "0.47114292", "0.47113332", "0.47068983", "0.47024307", "0.4695979", "0.46959016", "0.46943116", "0.46894756", "0.468892", "0.4687031", "0.46863732", "0.468045", "0.4674526", "0.46713316", "0.46708158", "0.46700248", "0.46650362", "0.46596965", "0.4658817", "0.46525183", "0.46519706", "0.46453407", "0.46449307", "0.46426567", "0.46423203", "0.46419322", "0.46349964", "0.46258637", "0.46242964", "0.46235576", "0.462348", "0.4623128", "0.46222556", "0.4617522", "0.46168512", "0.4616257", "0.4608337", "0.46025634", "0.46007457", "0.45980254", "0.45973048", "0.45931783", "0.4592094", "0.45900992", "0.45899385", "0.45887426", "0.458779" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table cargo
int insertSelective(Cargo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Cargo selectByPrimaryKey(Integer idCargo);", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n List<Purchase> selectAll();", "public Vector obtenerListaCagoBuscarIdCargo(int idCargo) throws SQLException {\n Vector listaCargo = new Vector();\n String sql = \"Select idCargo, idDocumento, numeroDocumento, Documento, \"\n + \"Fecha FechaCargo, Hora HoraCargo, Area AreaCargo, Asunto, Institucion, Recepcionista, estadoCargo From vCargoDocumento Where idCargo = \"+ idCargo;\n st = con.createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n Vector ovCargo = new Vector();\n ovCargo.add(rs.getInt(1));\n ovCargo.add(rs.getInt(2));\n ovCargo.add(rs.getString(3));\n ovCargo.add(rs.getString(4));\n ovCargo.add(rs.getString(5));\n ovCargo.add(rs.getString(6));\n ovCargo.add(rs.getString(7));\n ovCargo.add(rs.getString(8));\n ovCargo.add(rs.getString(9));\n ovCargo.add(rs.getString(10));\n ovCargo.add(rs.getInt(11));\n// System.out.println(rs.getInt(1));\n// System.out.println(rs.getInt(2));\n// System.out.println(rs.getInt(3));\n// System.out.println(rs.getInt(4));\n// System.out.println(rs.getInt(5));\n// System.out.println(rs.getInt(6));\n// System.out.println(rs.getInt(7));\n// System.out.println(rs.getInt(8));\n// System.out.println(rs.getInt(9));\n// System.out.println(rs.getInt(10));\n// System.out.println(rs.getInt(11));\n listaCargo.add(ovCargo);\n }\n return listaCargo;\n }", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "County selectByPrimaryKey(Long id);", "public List<Courtyard> findCourtyardAll() {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tList<Courtyard> courtyards = courtyardMapper.findCourtyardAll();\n\t\tSystem.out.println(\"--Into Dao Method of findCourtyardAll!!!--\");\n\t\treturn courtyards;\n\t}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "@Override\r\n\tpublic Cargo get(String matricula) throws SQLException {\n\t\treturn null;\r\n\t}", "TbCities selectByPrimaryKey(Long id);", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "List<Cargo> getCargoesForOrder(OrderDTO orderDTO);", "public List<CustomerPurchase> getAll() throws SQLException;", "@Override\n public List<Cours> afficherTousLesCours() {\n return coursRepo.findAll();\n }", "@GetMapping(\"/cargos\")\n @Timed\n public List<Cargo> getAllCargos() {\n log.debug(\"REST request to get all Cargos\");\n return cargoRepository.findAll();\n }", "public Cargo buscaCargo(String strCargo) {\r\n\t\tCargo cargo = null;\r\n\t\tcargo = (Cargo) em.createNamedQuery(\"buscaCargoPorNome\")\r\n\t\t\t\t.setParameter(1, strCargo).getSingleResult();\r\n\t\treturn cargo;\r\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "CityDO selectByPrimaryKey(Integer id);", "List<OcCustContract> selectAll();", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "List<Cargo> selectByExample(CargoExample example);", "@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "Tablero consultarTablero();", "VentaJPA obtenerVenta(int comprobante);", "@Override\n\tpublic List<Cours> allCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours\");\n\t\treturn q.getResultList();\n\t}", "@Dao\npublic interface CarrierDao {\n\n @Query(\"SELECT * FROM geo_carrier\")\n Cursor selectAll();\n\n @Query(\"SELECT * FROM geo_carrier WHERE number_prefix_3 = :numberPrefix3\")\n Cursor selectByNumberPrefix3(String numberPrefix3);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(CarrierEntity carrier);\n\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "@Mapper\npublic interface CompanyUserInfoDAO {\n\n @Select(\"SELECT * FROM company_user_info WHERE sales_id=#{sales_id} ORDER BY add_time DESC\")\n List<CompanyUserInfoDTO> findCompanyUserInfoBySalesId(@Param(\"sales_id\") Long sales_id);\n\n}", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "@Bean\n public TypeMap<Cargo, Cargo> getCargoCargoTypeMap() {\n return getModelMapper().createTypeMap(Cargo.class, Cargo.class)\n .addMappings(mapper -> mapper.skip(Cargo::setId))\n .addMappings(mapper -> mapper.skip(Cargo::setNumber))\n .addMappings(mapper -> mapper.skip(Cargo::setCreateDate))\n .addMappings(mapper -> mapper.skip(Cargo::setUpdateDate))\n\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getName, Cargo::setName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getState, Cargo::setState))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getWeight, Cargo::setWeight))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getDescription, Cargo::setDescription))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDepartureWaypoint, Cargo::setDepartureWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDestinationWaypoint, Cargo::setDestinationWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getCarriage, Cargo::setCarriage));\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic Curso findCrusoByAlumnoId(Long id) {\n\t\treturn repository.findCrusoByAlumnoId(id);\n\t}", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "T buidEntity(ResultSet rs) throws SQLException;", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "@Override\n\tpublic Curso mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t/* Se declara e instancia el objeto Persona.*/\n\t\tCurso curso = new Curso();\n\t\t/* Se recoje el identificador de curso del result.*/\n\t\tcurso.setId(rs.getInt(\"id\"));\n\t\t/* Se recoje el codigo de curso del result.*/\n\t\tcurso.setCodigo(rs.getString(\"codigo\"));\n\t\t/* Se recoje el nombre de la curso del result.*/\n\t\tcurso.setNombre(rs.getString(\"nombre\"));\n\t\t\n\t\t\n\t\t/* Se devuelve el objeto Persona.*/\n\t\treturn curso;\n\t}", "CGcontractCredit selectByPrimaryKey(Integer id);", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n }", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "List<Corretor> findAll();", "private static Carta mapper(ResultSet rs) throws SQLException {\n\t\tCarta c = new Carta();\r\n\r\n\t\t// cogemos los valres de las columnas\r\n\t\tint colId = rs.getInt(\"id\");\r\n\t\tString colNombre = rs.getString(\"nombre\");\r\n\t\tString colNumero_id = rs.getString(\"numero_id\");\r\n\t\tString colColeccion = rs.getString(\"coleccion\");\r\n\t\tint colColeccionId = rs.getInt(\"id_coleccion\");\r\n\r\n\t\tString colTipo = rs.getString(\"tipo\");\r\n\t\tint colTipoId = rs.getInt(\"id_tipo\");\r\n\t\tString colGrado = rs.getString(\"grado\");\r\n\t\tint colGradoId = rs.getInt(\"id_grado\");\r\n\r\n\t\tint colCopias = rs.getInt(\"copias\");\r\n\r\n\t\tc.setId(colId);\r\n\t\tc.setNumero_id(colNumero_id);\r\n\t\tc.setNombre(colNombre);\r\n\t\tc.setCopias(colCopias);\r\n\r\n\t\tColeccion coleccion = new Coleccion();\r\n\t\tcoleccion.setId(colColeccionId);\r\n\t\tcoleccion.setNombre(colColeccion);\r\n\t\tc.setColeccion(coleccion);\r\n\r\n\t\tTipo tipo = new Tipo();\r\n\t\ttipo.setId(colTipoId);\r\n\t\ttipo.setNombre(colTipo);\r\n\t\tc.setTipo(tipo);\r\n\r\n\t\tGrado grado = new Grado();\r\n\t\tgrado.setId(colGradoId);\r\n\t\tgrado.setNombre(colGrado);\r\n\t\tc.setGrado(grado);\r\n\r\n\t\treturn c;\r\n\t}", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Dao\npublic interface CarDao {\n\n @Query(\"SELECT * FROM car\")\n List<Car> getAll();\n\n @Insert\n void insertAll(Car... cars);\n\n @Delete\n void delete(Car car);\n\n @Update\n void update(Car... cars);\n\n @Query(\"SELECT * FROM car WHERE chassisCode = :chassisCode\")\n Car findByChassisCode(String chassisCode);\n}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public List<Carro> getCarros(){\n\t\t\n\t\ttry {\t\t\t\n\t\t\tList<Carro> carros = db.getCarros();\n\t\t\treturn carros;\n\t\t\t\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn new ArrayList<>();\n\t\t}\n\t\t\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "public void formDatabaseTable() {\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "public void populateCustomerTable() throws SQLException {\n\n try {\n\n PreparedStatement populateCustomerTableview = DBConnection.getConnection().prepareStatement(\"SELECT * from customers\");\n ResultSet resultSet = populateCustomerTableview.executeQuery();\n allCustomers.removeAll();\n\n while (resultSet.next()) {\n\n int customerID = resultSet.getInt(\"Customer_ID\");\n String name = resultSet.getString(\"Customer_Name\");\n String address = resultSet.getString(\"Address\");\n String postal = resultSet.getString(\"Postal_Code\");\n String phone = resultSet.getString(\"Phone\");\n String created = resultSet.getString(\"Create_Date\");\n String createdBy = resultSet.getString(\"Created_By\");\n String lastUpdate = resultSet.getString(\"Last_Update\");\n String updatedBy = resultSet.getString(\"Last_Updated_By\");\n String divisionID = resultSet.getString(\"Division_ID\");\n\n Customer newCustomer = new Customer(customerID, name, address, postal, phone, created, createdBy, lastUpdate,\n updatedBy, divisionID);\n\n allCustomers.add(newCustomer);\n }\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "@Override\n public Circle mapRow(ResultSet rs, int rowNum) throws SQLException {\n Circle circle = new Circle();\n circle.setId(rs.getInt(\"ID\"));\n circle.setName(rs.getString(\"NAME\"));\n return circle;\n }", "@Component\n@Mapper\npublic interface CreativeDao {\n String TABLE_NAME=\" ad_user \";\n String INSERT_FIELDS=\" name,type,material_type,height,width,size,duration,audit_status,\" +\n \"user_id,url,create_time,update_time \";\n String SELECT_FIELDS=\" id,\"+INSERT_FIELDS;\n @Insert({\"insert\",TABLE_NAME,\"(\",INSERT_FIELDS,\") values (name=#{name},type=#{type},material_type=#{materialType}\" +\n \",height=#{height},width=#{width),size=#{size},duration=#{duration},audit_status=#{audit_status},\" +\n \"user_id=#{user_id},url=#{url},create_time=#{create_time},update_time=#{update_time}\"})\n int insertCreative(Creative creative);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where user_id=#{userId}\"})\n Creative selectCreativeByUserId(Long userId);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where id=#{id}\"})\n Creative selectById(@Param(\"id\")Long id);\n default List<Creative> selectAllById(List<Long> ids){\n List<Creative> creatives=new ArrayList<>();\n for (Long id:ids) {\n creatives.add(selectById(id));\n }\n return creatives;\n }\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME})\n List<Creative> selectAll();\n}", "TdxCompanyTaxArrears selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "public CursosTable() {\n \n \n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public interface CProductoMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" productos.id as recid,\"\r\n + \" productos.codigo,\"\r\n + \" productos.descripcion,\"\r\n + \" productos.unidad_produccion as unidadProductiva, \"\r\n + \" unidades_productivas.codigo AS codigoUnidadProduccion \"\r\n + \"FROM productos \"\r\n + \"LEFT JOIN unidades_productivas ON \"\r\n + \"unidades_productivas.id = productos.unidad_produccion\";\r\n \r\n static final String FIND_BY_CODE = \"SELECT \"\r\n + \" productos.id \"\r\n + \"FROM productos WHERE productos.codigo = #{code}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los productos existentes\r\n * @return lista de productos\r\n */\r\n @Select(FIND_ALL)\r\n public List<CProducto> findAll(); \r\n \r\n /**\r\n * Query que me permite ubicar un registro de la tabla de productos a partir de\r\n * un código. \r\n * @param code el código bajo el cual se busca\r\n * @return el id del registro.\r\n */\r\n @Select(FIND_BY_CODE)\r\n public Long findByCode(String code);\r\n}", "public interface RoleMapper extends RoleDao {\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE id = #{id}\")\n Role getRole(int id);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE name = #{name}\")\n Role getRoleByName(String name);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role ORDER BY name\")\n List<Role> getAllRoles();\n\n @Override\n @Insert(\"INSERT INTO role (name) VALUES(#{name})\")\n @Options(useGeneratedKeys = true)\n void addRole(Role role);\n\n @Override\n @Delete(\"DELETE FROM role WHERE id =#{id}\")\n void removeRole(Role role);\n}", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "List<Bill> all() throws SQLException;", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "private ObservableList<CarComponent> cartTable() {\n ObservableList<CarComponent> carComps = FXCollections.observableArrayList();\n\n for (CarComponent carComponent : componentsCart) {\n compTypeColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compType\"));\n compNameColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compName\"));\n compPriceColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Double>(\"compPrice\"));\n compQuantityColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Integer>(\"compQuantity\"));\n carComps.add(carComponent);\n }\n return carComps;\n }", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "@Override\r\n\tpublic LinkedList<Customer> findAll() throws SQLException {\r\n\t\tLinkedList<Customer> listCustomer = new LinkedList<Customer>();\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \";\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCustomer customer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t\tlistCustomer.add(customer);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn listCustomer;\r\n\t}", "public interface ResultSetColumn extends OptionContainer, RelationalObject {\n\n /**\n * Identifier of this object\n */\n KomodoType IDENTIFIER = KomodoType.RESULT_SET_COLUMN;\n\n /**\n * An empty array of columns.\n */\n ResultSetColumn[] NO_COLUMNS = new ResultSetColumn[0];\n\n /**\n * The type identifier.\n */\n int TYPE_ID = ResultSetColumn.class.hashCode();\n\n /**\n * The resolver of a {@link ResultSetColumn}.\n */\n TypeResolver< ResultSetColumn > RESOLVER = new TypeResolver< ResultSetColumn >() {\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#identifier()\n */\n @Override\n public KomodoType identifier() {\n return IDENTIFIER;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#owningClass()\n */\n @Override\n public Class< ResultSetColumnImpl > owningClass() {\n return ResultSetColumnImpl.class;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolvable(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public boolean resolvable( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n return ObjectImpl.validateType( transaction, kobject.getRepository(), kobject, CreateProcedure.RESULT_COLUMN );\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolve(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public ResultSetColumn resolve( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n if ( kobject.getTypeId() == ResultSetColumn.TYPE_ID ) {\n return ( ResultSetColumn )kobject;\n }\n\n return new ResultSetColumnImpl( transaction, kobject.getRepository(), kobject.getAbsolutePath() );\n }\n\n };\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n String getDatatypeName( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDefaultValue( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>description</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDescription( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n long getLength( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>name in source</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getNameInSource( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>nullable</code> property (never <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n Nullable getNullable( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n long getPrecision( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n long getScale( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>UUID</code> option (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getUuid( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newTypeName\n * the new value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n void setDatatypeName( final UnitOfWork transaction,\n final String newTypeName ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDefaultValue\n * the new value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n void setDefaultValue( final UnitOfWork transaction,\n final String newDefaultValue ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDescription\n * the new value of the <code>description</code> property (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setDescription( final UnitOfWork transaction,\n final String newDescription ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newLength\n * the new value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n void setLength( final UnitOfWork transaction,\n final long newLength ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNameInSource\n * the new name in source (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setNameInSource( final UnitOfWork transaction,\n final String newNameInSource ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNullable\n * the new value of the <code>nullable</code> property (can be <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n void setNullable( final UnitOfWork transaction,\n final Nullable newNullable ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newPrecision\n * the new value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n void setPrecision( final UnitOfWork transaction,\n final long newPrecision ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newScale\n * the new value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n void setScale( final UnitOfWork transaction,\n final long newScale ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newUuid\n * the new value of the <code>UUID</code> option (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setUuid( final UnitOfWork transaction,\n final String newUuid ) throws KException;\n\n}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public interface TermsOfReferenceDao extends AbstractDao<TermsOfReference, Integer> {\n Collection<TermsOfReference> getTermsOfReferenceWithNoProject()\n throws DataAccessException;\n\n Collection<TermsOfReference> getTermsOfReferenceByCustomer(Integer customerId)\n throws DataAccessException;\n}", "@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}", "public Courses getCourseTable();", "Movimiento selectByPrimaryKey(Integer idMovCta);", "List selectByExample(CTipoComprobanteExample example) throws SQLException;", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Transactional\r\n\tpublic List<Car> getAllCars() {\n\t\treturn (List<Car>)cr.findAll();\r\n\t}", "@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}", "public interface CityRepository extends JpaRepository<CityEntity, Long>{\n}", "public interface CanteensDao extends JpaRepository<CanteensEntity,Integer>{\n CanteensEntity queryByCanteenId(int id);\n}", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public final TradeGoods[] getCargo() {\n return cargo;\n }", "@Query(\"SELECT c FROM Customer c\")\n\tList<Customer> findAll();", "public String toString()\n {\n\tString returnString = \"\";\n\treturnString += \"[ \" + cargo + \" ][ * ]--> \";\n\treturn returnString;\n }", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n //esse passo ensina como as colunas devem receber os atributos do objeto cargo\n //A propriedade nome deve coincidir com o nome do atributo da classe cargo\n// colNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n// colDescricao.setCellValueFactory(new PropertyValueFactory<>(\"descricao\"));\n// \n// colStatus.setVisible(false);\n Field[] f = Cargo.class.getDeclaredFields();\n\n for (int i = 0; i < f.length; i++) {\n if (f[i].getName().contains(\"pk_Cargo\")) {\n continue;\n }\n TableColumn<Cargo, String> t = new TableColumn<>(f[i].getName());\n t.setCellValueFactory(new PropertyValueFactory<>(f[i].getName()));\n tvCargo.getColumns().add(t);\n }\n\n tvCargo.setItems(FXCollections.observableArrayList(CargosDAO.retreaveAll()));\n }", "@Override\n\tpublic void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {\n\t}", "public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }" ]
[ "0.590364", "0.55739254", "0.53776205", "0.5373786", "0.52583104", "0.52556455", "0.5216209", "0.51924235", "0.5175056", "0.5110947", "0.5104078", "0.5090616", "0.50754863", "0.5065929", "0.50608784", "0.49937865", "0.4977886", "0.49768093", "0.497114", "0.49614286", "0.49595168", "0.49561185", "0.49519888", "0.49374756", "0.49364713", "0.49315482", "0.49259844", "0.49140793", "0.48895037", "0.48854274", "0.4880918", "0.486885", "0.48539835", "0.48471615", "0.48382914", "0.4831915", "0.4829747", "0.4808019", "0.48029092", "0.4766288", "0.47652835", "0.4765252", "0.47617036", "0.47603372", "0.47573742", "0.47506014", "0.47475302", "0.47427472", "0.47284797", "0.47278488", "0.47275177", "0.47270715", "0.47177058", "0.47146448", "0.47130898", "0.4712335", "0.47058612", "0.4702448", "0.46962467", "0.4695612", "0.46948892", "0.46904087", "0.46896034", "0.46879107", "0.4685585", "0.4679595", "0.46737334", "0.4671113", "0.4670923", "0.46700528", "0.46644506", "0.46605763", "0.46585208", "0.46522883", "0.46515867", "0.4647441", "0.46445435", "0.46436575", "0.46420726", "0.4641905", "0.46345633", "0.46264535", "0.4625338", "0.462491", "0.46235323", "0.46231076", "0.46224254", "0.46171913", "0.46165177", "0.46160832", "0.46085212", "0.46031567", "0.4600297", "0.45983863", "0.45972088", "0.45927852", "0.45927182", "0.45893356", "0.4588853", "0.45887864", "0.45883018" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table cargo
List<Cargo> selectByExample(CargoExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Cargo selectByPrimaryKey(Integer idCargo);", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n List<Purchase> selectAll();", "public Vector obtenerListaCagoBuscarIdCargo(int idCargo) throws SQLException {\n Vector listaCargo = new Vector();\n String sql = \"Select idCargo, idDocumento, numeroDocumento, Documento, \"\n + \"Fecha FechaCargo, Hora HoraCargo, Area AreaCargo, Asunto, Institucion, Recepcionista, estadoCargo From vCargoDocumento Where idCargo = \"+ idCargo;\n st = con.createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n Vector ovCargo = new Vector();\n ovCargo.add(rs.getInt(1));\n ovCargo.add(rs.getInt(2));\n ovCargo.add(rs.getString(3));\n ovCargo.add(rs.getString(4));\n ovCargo.add(rs.getString(5));\n ovCargo.add(rs.getString(6));\n ovCargo.add(rs.getString(7));\n ovCargo.add(rs.getString(8));\n ovCargo.add(rs.getString(9));\n ovCargo.add(rs.getString(10));\n ovCargo.add(rs.getInt(11));\n// System.out.println(rs.getInt(1));\n// System.out.println(rs.getInt(2));\n// System.out.println(rs.getInt(3));\n// System.out.println(rs.getInt(4));\n// System.out.println(rs.getInt(5));\n// System.out.println(rs.getInt(6));\n// System.out.println(rs.getInt(7));\n// System.out.println(rs.getInt(8));\n// System.out.println(rs.getInt(9));\n// System.out.println(rs.getInt(10));\n// System.out.println(rs.getInt(11));\n listaCargo.add(ovCargo);\n }\n return listaCargo;\n }", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "County selectByPrimaryKey(Long id);", "public List<Courtyard> findCourtyardAll() {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tList<Courtyard> courtyards = courtyardMapper.findCourtyardAll();\n\t\tSystem.out.println(\"--Into Dao Method of findCourtyardAll!!!--\");\n\t\treturn courtyards;\n\t}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "@Override\r\n\tpublic Cargo get(String matricula) throws SQLException {\n\t\treturn null;\r\n\t}", "TbCities selectByPrimaryKey(Long id);", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "List<Cargo> getCargoesForOrder(OrderDTO orderDTO);", "@Override\n public List<Cours> afficherTousLesCours() {\n return coursRepo.findAll();\n }", "public List<CustomerPurchase> getAll() throws SQLException;", "@GetMapping(\"/cargos\")\n @Timed\n public List<Cargo> getAllCargos() {\n log.debug(\"REST request to get all Cargos\");\n return cargoRepository.findAll();\n }", "public Cargo buscaCargo(String strCargo) {\r\n\t\tCargo cargo = null;\r\n\t\tcargo = (Cargo) em.createNamedQuery(\"buscaCargoPorNome\")\r\n\t\t\t\t.setParameter(1, strCargo).getSingleResult();\r\n\t\treturn cargo;\r\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "CityDO selectByPrimaryKey(Integer id);", "List<OcCustContract> selectAll();", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "Tablero consultarTablero();", "VentaJPA obtenerVenta(int comprobante);", "@Override\n\tpublic List<Cours> allCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours\");\n\t\treturn q.getResultList();\n\t}", "@Dao\npublic interface CarrierDao {\n\n @Query(\"SELECT * FROM geo_carrier\")\n Cursor selectAll();\n\n @Query(\"SELECT * FROM geo_carrier WHERE number_prefix_3 = :numberPrefix3\")\n Cursor selectByNumberPrefix3(String numberPrefix3);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(CarrierEntity carrier);\n\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "@Mapper\npublic interface CompanyUserInfoDAO {\n\n @Select(\"SELECT * FROM company_user_info WHERE sales_id=#{sales_id} ORDER BY add_time DESC\")\n List<CompanyUserInfoDTO> findCompanyUserInfoBySalesId(@Param(\"sales_id\") Long sales_id);\n\n}", "@Bean\n public TypeMap<Cargo, Cargo> getCargoCargoTypeMap() {\n return getModelMapper().createTypeMap(Cargo.class, Cargo.class)\n .addMappings(mapper -> mapper.skip(Cargo::setId))\n .addMappings(mapper -> mapper.skip(Cargo::setNumber))\n .addMappings(mapper -> mapper.skip(Cargo::setCreateDate))\n .addMappings(mapper -> mapper.skip(Cargo::setUpdateDate))\n\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getName, Cargo::setName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getState, Cargo::setState))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getWeight, Cargo::setWeight))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getDescription, Cargo::setDescription))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDepartureWaypoint, Cargo::setDepartureWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDestinationWaypoint, Cargo::setDestinationWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getCarriage, Cargo::setCarriage));\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic Curso findCrusoByAlumnoId(Long id) {\n\t\treturn repository.findCrusoByAlumnoId(id);\n\t}", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "T buidEntity(ResultSet rs) throws SQLException;", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "@Override\n\tpublic Curso mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t/* Se declara e instancia el objeto Persona.*/\n\t\tCurso curso = new Curso();\n\t\t/* Se recoje el identificador de curso del result.*/\n\t\tcurso.setId(rs.getInt(\"id\"));\n\t\t/* Se recoje el codigo de curso del result.*/\n\t\tcurso.setCodigo(rs.getString(\"codigo\"));\n\t\t/* Se recoje el nombre de la curso del result.*/\n\t\tcurso.setNombre(rs.getString(\"nombre\"));\n\t\t\n\t\t\n\t\t/* Se devuelve el objeto Persona.*/\n\t\treturn curso;\n\t}", "@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n }", "CGcontractCredit selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "List<Corretor> findAll();", "private static Carta mapper(ResultSet rs) throws SQLException {\n\t\tCarta c = new Carta();\r\n\r\n\t\t// cogemos los valres de las columnas\r\n\t\tint colId = rs.getInt(\"id\");\r\n\t\tString colNombre = rs.getString(\"nombre\");\r\n\t\tString colNumero_id = rs.getString(\"numero_id\");\r\n\t\tString colColeccion = rs.getString(\"coleccion\");\r\n\t\tint colColeccionId = rs.getInt(\"id_coleccion\");\r\n\r\n\t\tString colTipo = rs.getString(\"tipo\");\r\n\t\tint colTipoId = rs.getInt(\"id_tipo\");\r\n\t\tString colGrado = rs.getString(\"grado\");\r\n\t\tint colGradoId = rs.getInt(\"id_grado\");\r\n\r\n\t\tint colCopias = rs.getInt(\"copias\");\r\n\r\n\t\tc.setId(colId);\r\n\t\tc.setNumero_id(colNumero_id);\r\n\t\tc.setNombre(colNombre);\r\n\t\tc.setCopias(colCopias);\r\n\r\n\t\tColeccion coleccion = new Coleccion();\r\n\t\tcoleccion.setId(colColeccionId);\r\n\t\tcoleccion.setNombre(colColeccion);\r\n\t\tc.setColeccion(coleccion);\r\n\r\n\t\tTipo tipo = new Tipo();\r\n\t\ttipo.setId(colTipoId);\r\n\t\ttipo.setNombre(colTipo);\r\n\t\tc.setTipo(tipo);\r\n\r\n\t\tGrado grado = new Grado();\r\n\t\tgrado.setId(colGradoId);\r\n\t\tgrado.setNombre(colGrado);\r\n\t\tc.setGrado(grado);\r\n\r\n\t\treturn c;\r\n\t}", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Dao\npublic interface CarDao {\n\n @Query(\"SELECT * FROM car\")\n List<Car> getAll();\n\n @Insert\n void insertAll(Car... cars);\n\n @Delete\n void delete(Car car);\n\n @Update\n void update(Car... cars);\n\n @Query(\"SELECT * FROM car WHERE chassisCode = :chassisCode\")\n Car findByChassisCode(String chassisCode);\n}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public List<Carro> getCarros(){\n\t\t\n\t\ttry {\t\t\t\n\t\t\tList<Carro> carros = db.getCarros();\n\t\t\treturn carros;\n\t\t\t\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn new ArrayList<>();\n\t\t}\n\t\t\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "public void formDatabaseTable() {\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public Circle mapRow(ResultSet rs, int rowNum) throws SQLException {\n Circle circle = new Circle();\n circle.setId(rs.getInt(\"ID\"));\n circle.setName(rs.getString(\"NAME\"));\n return circle;\n }", "public void populateCustomerTable() throws SQLException {\n\n try {\n\n PreparedStatement populateCustomerTableview = DBConnection.getConnection().prepareStatement(\"SELECT * from customers\");\n ResultSet resultSet = populateCustomerTableview.executeQuery();\n allCustomers.removeAll();\n\n while (resultSet.next()) {\n\n int customerID = resultSet.getInt(\"Customer_ID\");\n String name = resultSet.getString(\"Customer_Name\");\n String address = resultSet.getString(\"Address\");\n String postal = resultSet.getString(\"Postal_Code\");\n String phone = resultSet.getString(\"Phone\");\n String created = resultSet.getString(\"Create_Date\");\n String createdBy = resultSet.getString(\"Created_By\");\n String lastUpdate = resultSet.getString(\"Last_Update\");\n String updatedBy = resultSet.getString(\"Last_Updated_By\");\n String divisionID = resultSet.getString(\"Division_ID\");\n\n Customer newCustomer = new Customer(customerID, name, address, postal, phone, created, createdBy, lastUpdate,\n updatedBy, divisionID);\n\n allCustomers.add(newCustomer);\n }\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "TdxCompanyTaxArrears selectByPrimaryKey(Integer id);", "@Component\n@Mapper\npublic interface CreativeDao {\n String TABLE_NAME=\" ad_user \";\n String INSERT_FIELDS=\" name,type,material_type,height,width,size,duration,audit_status,\" +\n \"user_id,url,create_time,update_time \";\n String SELECT_FIELDS=\" id,\"+INSERT_FIELDS;\n @Insert({\"insert\",TABLE_NAME,\"(\",INSERT_FIELDS,\") values (name=#{name},type=#{type},material_type=#{materialType}\" +\n \",height=#{height},width=#{width),size=#{size},duration=#{duration},audit_status=#{audit_status},\" +\n \"user_id=#{user_id},url=#{url},create_time=#{create_time},update_time=#{update_time}\"})\n int insertCreative(Creative creative);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where user_id=#{userId}\"})\n Creative selectCreativeByUserId(Long userId);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where id=#{id}\"})\n Creative selectById(@Param(\"id\")Long id);\n default List<Creative> selectAllById(List<Long> ids){\n List<Creative> creatives=new ArrayList<>();\n for (Long id:ids) {\n creatives.add(selectById(id));\n }\n return creatives;\n }\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME})\n List<Creative> selectAll();\n}", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "public CursosTable() {\n \n \n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public interface CProductoMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" productos.id as recid,\"\r\n + \" productos.codigo,\"\r\n + \" productos.descripcion,\"\r\n + \" productos.unidad_produccion as unidadProductiva, \"\r\n + \" unidades_productivas.codigo AS codigoUnidadProduccion \"\r\n + \"FROM productos \"\r\n + \"LEFT JOIN unidades_productivas ON \"\r\n + \"unidades_productivas.id = productos.unidad_produccion\";\r\n \r\n static final String FIND_BY_CODE = \"SELECT \"\r\n + \" productos.id \"\r\n + \"FROM productos WHERE productos.codigo = #{code}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los productos existentes\r\n * @return lista de productos\r\n */\r\n @Select(FIND_ALL)\r\n public List<CProducto> findAll(); \r\n \r\n /**\r\n * Query que me permite ubicar un registro de la tabla de productos a partir de\r\n * un código. \r\n * @param code el código bajo el cual se busca\r\n * @return el id del registro.\r\n */\r\n @Select(FIND_BY_CODE)\r\n public Long findByCode(String code);\r\n}", "public interface RoleMapper extends RoleDao {\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE id = #{id}\")\n Role getRole(int id);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE name = #{name}\")\n Role getRoleByName(String name);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role ORDER BY name\")\n List<Role> getAllRoles();\n\n @Override\n @Insert(\"INSERT INTO role (name) VALUES(#{name})\")\n @Options(useGeneratedKeys = true)\n void addRole(Role role);\n\n @Override\n @Delete(\"DELETE FROM role WHERE id =#{id}\")\n void removeRole(Role role);\n}", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "List<Bill> all() throws SQLException;", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "private ObservableList<CarComponent> cartTable() {\n ObservableList<CarComponent> carComps = FXCollections.observableArrayList();\n\n for (CarComponent carComponent : componentsCart) {\n compTypeColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compType\"));\n compNameColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compName\"));\n compPriceColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Double>(\"compPrice\"));\n compQuantityColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Integer>(\"compQuantity\"));\n carComps.add(carComponent);\n }\n return carComps;\n }", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "public interface ResultSetColumn extends OptionContainer, RelationalObject {\n\n /**\n * Identifier of this object\n */\n KomodoType IDENTIFIER = KomodoType.RESULT_SET_COLUMN;\n\n /**\n * An empty array of columns.\n */\n ResultSetColumn[] NO_COLUMNS = new ResultSetColumn[0];\n\n /**\n * The type identifier.\n */\n int TYPE_ID = ResultSetColumn.class.hashCode();\n\n /**\n * The resolver of a {@link ResultSetColumn}.\n */\n TypeResolver< ResultSetColumn > RESOLVER = new TypeResolver< ResultSetColumn >() {\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#identifier()\n */\n @Override\n public KomodoType identifier() {\n return IDENTIFIER;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#owningClass()\n */\n @Override\n public Class< ResultSetColumnImpl > owningClass() {\n return ResultSetColumnImpl.class;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolvable(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public boolean resolvable( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n return ObjectImpl.validateType( transaction, kobject.getRepository(), kobject, CreateProcedure.RESULT_COLUMN );\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolve(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public ResultSetColumn resolve( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n if ( kobject.getTypeId() == ResultSetColumn.TYPE_ID ) {\n return ( ResultSetColumn )kobject;\n }\n\n return new ResultSetColumnImpl( transaction, kobject.getRepository(), kobject.getAbsolutePath() );\n }\n\n };\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n String getDatatypeName( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDefaultValue( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>description</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDescription( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n long getLength( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>name in source</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getNameInSource( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>nullable</code> property (never <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n Nullable getNullable( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n long getPrecision( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n long getScale( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>UUID</code> option (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getUuid( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newTypeName\n * the new value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n void setDatatypeName( final UnitOfWork transaction,\n final String newTypeName ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDefaultValue\n * the new value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n void setDefaultValue( final UnitOfWork transaction,\n final String newDefaultValue ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDescription\n * the new value of the <code>description</code> property (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setDescription( final UnitOfWork transaction,\n final String newDescription ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newLength\n * the new value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n void setLength( final UnitOfWork transaction,\n final long newLength ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNameInSource\n * the new name in source (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setNameInSource( final UnitOfWork transaction,\n final String newNameInSource ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNullable\n * the new value of the <code>nullable</code> property (can be <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n void setNullable( final UnitOfWork transaction,\n final Nullable newNullable ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newPrecision\n * the new value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n void setPrecision( final UnitOfWork transaction,\n final long newPrecision ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newScale\n * the new value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n void setScale( final UnitOfWork transaction,\n final long newScale ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newUuid\n * the new value of the <code>UUID</code> option (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setUuid( final UnitOfWork transaction,\n final String newUuid ) throws KException;\n\n}", "@Override\r\n\tpublic LinkedList<Customer> findAll() throws SQLException {\r\n\t\tLinkedList<Customer> listCustomer = new LinkedList<Customer>();\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \";\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCustomer customer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t\tlistCustomer.add(customer);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn listCustomer;\r\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public interface TermsOfReferenceDao extends AbstractDao<TermsOfReference, Integer> {\n Collection<TermsOfReference> getTermsOfReferenceWithNoProject()\n throws DataAccessException;\n\n Collection<TermsOfReference> getTermsOfReferenceByCustomer(Integer customerId)\n throws DataAccessException;\n}", "@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}", "public Courses getCourseTable();", "Movimiento selectByPrimaryKey(Integer idMovCta);", "List selectByExample(CTipoComprobanteExample example) throws SQLException;", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Transactional\r\n\tpublic List<Car> getAllCars() {\n\t\treturn (List<Car>)cr.findAll();\r\n\t}", "public interface CityRepository extends JpaRepository<CityEntity, Long>{\n}", "@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}", "public interface CanteensDao extends JpaRepository<CanteensEntity,Integer>{\n CanteensEntity queryByCanteenId(int id);\n}", "public final TradeGoods[] getCargo() {\n return cargo;\n }", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public String toString()\n {\n\tString returnString = \"\";\n\treturnString += \"[ \" + cargo + \" ][ * ]--> \";\n\treturn returnString;\n }", "@Query(\"SELECT c FROM Customer c\")\n\tList<Customer> findAll();", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n //esse passo ensina como as colunas devem receber os atributos do objeto cargo\n //A propriedade nome deve coincidir com o nome do atributo da classe cargo\n// colNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n// colDescricao.setCellValueFactory(new PropertyValueFactory<>(\"descricao\"));\n// \n// colStatus.setVisible(false);\n Field[] f = Cargo.class.getDeclaredFields();\n\n for (int i = 0; i < f.length; i++) {\n if (f[i].getName().contains(\"pk_Cargo\")) {\n continue;\n }\n TableColumn<Cargo, String> t = new TableColumn<>(f[i].getName());\n t.setCellValueFactory(new PropertyValueFactory<>(f[i].getName()));\n tvCargo.getColumns().add(t);\n }\n\n tvCargo.setItems(FXCollections.observableArrayList(CargosDAO.retreaveAll()));\n }", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "@Override\n\tpublic void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {\n\t}", "public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}", "@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();" ]
[ "0.5904964", "0.55730635", "0.5375608", "0.53753227", "0.52559406", "0.5254475", "0.52168435", "0.51928604", "0.5173352", "0.511047", "0.5106857", "0.5090345", "0.5074903", "0.50664216", "0.506069", "0.49963862", "0.4977458", "0.49768466", "0.4973573", "0.49645814", "0.49603578", "0.4956259", "0.49524438", "0.4936299", "0.4934582", "0.49317497", "0.49255753", "0.49114132", "0.48907062", "0.48857546", "0.48794466", "0.485182", "0.4847842", "0.48387367", "0.4833526", "0.48293802", "0.48079246", "0.4801289", "0.47664365", "0.47645435", "0.47638264", "0.47624344", "0.47623473", "0.47577107", "0.47487745", "0.47472754", "0.47428632", "0.47282246", "0.4728197", "0.47278786", "0.47272304", "0.47184858", "0.4715073", "0.47130895", "0.47123125", "0.47087428", "0.47037748", "0.46960062", "0.46949273", "0.4692577", "0.46894038", "0.4687547", "0.4686436", "0.46861377", "0.46811563", "0.46741325", "0.4671066", "0.46707636", "0.4668658", "0.46654427", "0.46576595", "0.4657325", "0.4652792", "0.46527866", "0.46480337", "0.46471488", "0.46434116", "0.46417394", "0.4640865", "0.46335116", "0.46270806", "0.46251416", "0.46250442", "0.46246672", "0.46223348", "0.46211523", "0.46174088", "0.46164462", "0.46147633", "0.46091762", "0.46035168", "0.46014968", "0.45998177", "0.4597627", "0.45933628", "0.45921108", "0.45898396", "0.45884752", "0.45875204", "0.45871207" ]
0.48694265
31
This method was generated by MyBatis Generator. This method corresponds to the database table cargo
Cargo selectByPrimaryKey(Integer idCargo);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "public Vector obtenerListaCagoBuscarIdCargo(int idCargo) throws SQLException {\n Vector listaCargo = new Vector();\n String sql = \"Select idCargo, idDocumento, numeroDocumento, Documento, \"\n + \"Fecha FechaCargo, Hora HoraCargo, Area AreaCargo, Asunto, Institucion, Recepcionista, estadoCargo From vCargoDocumento Where idCargo = \"+ idCargo;\n st = con.createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n Vector ovCargo = new Vector();\n ovCargo.add(rs.getInt(1));\n ovCargo.add(rs.getInt(2));\n ovCargo.add(rs.getString(3));\n ovCargo.add(rs.getString(4));\n ovCargo.add(rs.getString(5));\n ovCargo.add(rs.getString(6));\n ovCargo.add(rs.getString(7));\n ovCargo.add(rs.getString(8));\n ovCargo.add(rs.getString(9));\n ovCargo.add(rs.getString(10));\n ovCargo.add(rs.getInt(11));\n// System.out.println(rs.getInt(1));\n// System.out.println(rs.getInt(2));\n// System.out.println(rs.getInt(3));\n// System.out.println(rs.getInt(4));\n// System.out.println(rs.getInt(5));\n// System.out.println(rs.getInt(6));\n// System.out.println(rs.getInt(7));\n// System.out.println(rs.getInt(8));\n// System.out.println(rs.getInt(9));\n// System.out.println(rs.getInt(10));\n// System.out.println(rs.getInt(11));\n listaCargo.add(ovCargo);\n }\n return listaCargo;\n }", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n List<Purchase> selectAll();", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "County selectByPrimaryKey(Long id);", "public List<Courtyard> findCourtyardAll() {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tList<Courtyard> courtyards = courtyardMapper.findCourtyardAll();\n\t\tSystem.out.println(\"--Into Dao Method of findCourtyardAll!!!--\");\n\t\treturn courtyards;\n\t}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "@Override\r\n\tpublic Cargo get(String matricula) throws SQLException {\n\t\treturn null;\r\n\t}", "TbCities selectByPrimaryKey(Long id);", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "List<Cargo> getCargoesForOrder(OrderDTO orderDTO);", "@Override\n public List<Cours> afficherTousLesCours() {\n return coursRepo.findAll();\n }", "public List<CustomerPurchase> getAll() throws SQLException;", "@GetMapping(\"/cargos\")\n @Timed\n public List<Cargo> getAllCargos() {\n log.debug(\"REST request to get all Cargos\");\n return cargoRepository.findAll();\n }", "public Cargo buscaCargo(String strCargo) {\r\n\t\tCargo cargo = null;\r\n\t\tcargo = (Cargo) em.createNamedQuery(\"buscaCargoPorNome\")\r\n\t\t\t\t.setParameter(1, strCargo).getSingleResult();\r\n\t\treturn cargo;\r\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "CityDO selectByPrimaryKey(Integer id);", "List<OcCustContract> selectAll();", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "List<Cargo> selectByExample(CargoExample example);", "@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "Tablero consultarTablero();", "VentaJPA obtenerVenta(int comprobante);", "@Override\n\tpublic List<Cours> allCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours\");\n\t\treturn q.getResultList();\n\t}", "@Dao\npublic interface CarrierDao {\n\n @Query(\"SELECT * FROM geo_carrier\")\n Cursor selectAll();\n\n @Query(\"SELECT * FROM geo_carrier WHERE number_prefix_3 = :numberPrefix3\")\n Cursor selectByNumberPrefix3(String numberPrefix3);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(CarrierEntity carrier);\n\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic Curso findCrusoByAlumnoId(Long id) {\n\t\treturn repository.findCrusoByAlumnoId(id);\n\t}", "@Bean\n public TypeMap<Cargo, Cargo> getCargoCargoTypeMap() {\n return getModelMapper().createTypeMap(Cargo.class, Cargo.class)\n .addMappings(mapper -> mapper.skip(Cargo::setId))\n .addMappings(mapper -> mapper.skip(Cargo::setNumber))\n .addMappings(mapper -> mapper.skip(Cargo::setCreateDate))\n .addMappings(mapper -> mapper.skip(Cargo::setUpdateDate))\n\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getName, Cargo::setName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getState, Cargo::setState))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getWeight, Cargo::setWeight))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getDescription, Cargo::setDescription))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDepartureWaypoint, Cargo::setDepartureWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDestinationWaypoint, Cargo::setDestinationWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getCarriage, Cargo::setCarriage));\n }", "@Mapper\npublic interface CompanyUserInfoDAO {\n\n @Select(\"SELECT * FROM company_user_info WHERE sales_id=#{sales_id} ORDER BY add_time DESC\")\n List<CompanyUserInfoDTO> findCompanyUserInfoBySalesId(@Param(\"sales_id\") Long sales_id);\n\n}", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "T buidEntity(ResultSet rs) throws SQLException;", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "@Override\n\tpublic Curso mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t/* Se declara e instancia el objeto Persona.*/\n\t\tCurso curso = new Curso();\n\t\t/* Se recoje el identificador de curso del result.*/\n\t\tcurso.setId(rs.getInt(\"id\"));\n\t\t/* Se recoje el codigo de curso del result.*/\n\t\tcurso.setCodigo(rs.getString(\"codigo\"));\n\t\t/* Se recoje el nombre de la curso del result.*/\n\t\tcurso.setNombre(rs.getString(\"nombre\"));\n\t\t\n\t\t\n\t\t/* Se devuelve el objeto Persona.*/\n\t\treturn curso;\n\t}", "CGcontractCredit selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "List<Corretor> findAll();", "private static Carta mapper(ResultSet rs) throws SQLException {\n\t\tCarta c = new Carta();\r\n\r\n\t\t// cogemos los valres de las columnas\r\n\t\tint colId = rs.getInt(\"id\");\r\n\t\tString colNombre = rs.getString(\"nombre\");\r\n\t\tString colNumero_id = rs.getString(\"numero_id\");\r\n\t\tString colColeccion = rs.getString(\"coleccion\");\r\n\t\tint colColeccionId = rs.getInt(\"id_coleccion\");\r\n\r\n\t\tString colTipo = rs.getString(\"tipo\");\r\n\t\tint colTipoId = rs.getInt(\"id_tipo\");\r\n\t\tString colGrado = rs.getString(\"grado\");\r\n\t\tint colGradoId = rs.getInt(\"id_grado\");\r\n\r\n\t\tint colCopias = rs.getInt(\"copias\");\r\n\r\n\t\tc.setId(colId);\r\n\t\tc.setNumero_id(colNumero_id);\r\n\t\tc.setNombre(colNombre);\r\n\t\tc.setCopias(colCopias);\r\n\r\n\t\tColeccion coleccion = new Coleccion();\r\n\t\tcoleccion.setId(colColeccionId);\r\n\t\tcoleccion.setNombre(colColeccion);\r\n\t\tc.setColeccion(coleccion);\r\n\r\n\t\tTipo tipo = new Tipo();\r\n\t\ttipo.setId(colTipoId);\r\n\t\ttipo.setNombre(colTipo);\r\n\t\tc.setTipo(tipo);\r\n\r\n\t\tGrado grado = new Grado();\r\n\t\tgrado.setId(colGradoId);\r\n\t\tgrado.setNombre(colGrado);\r\n\t\tc.setGrado(grado);\r\n\r\n\t\treturn c;\r\n\t}", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Dao\npublic interface CarDao {\n\n @Query(\"SELECT * FROM car\")\n List<Car> getAll();\n\n @Insert\n void insertAll(Car... cars);\n\n @Delete\n void delete(Car car);\n\n @Update\n void update(Car... cars);\n\n @Query(\"SELECT * FROM car WHERE chassisCode = :chassisCode\")\n Car findByChassisCode(String chassisCode);\n}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public List<Carro> getCarros(){\n\t\t\n\t\ttry {\t\t\t\n\t\t\tList<Carro> carros = db.getCarros();\n\t\t\treturn carros;\n\t\t\t\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn new ArrayList<>();\n\t\t}\n\t\t\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "public void formDatabaseTable() {\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public Circle mapRow(ResultSet rs, int rowNum) throws SQLException {\n Circle circle = new Circle();\n circle.setId(rs.getInt(\"ID\"));\n circle.setName(rs.getString(\"NAME\"));\n return circle;\n }", "TdxCompanyTaxArrears selectByPrimaryKey(Integer id);", "public void populateCustomerTable() throws SQLException {\n\n try {\n\n PreparedStatement populateCustomerTableview = DBConnection.getConnection().prepareStatement(\"SELECT * from customers\");\n ResultSet resultSet = populateCustomerTableview.executeQuery();\n allCustomers.removeAll();\n\n while (resultSet.next()) {\n\n int customerID = resultSet.getInt(\"Customer_ID\");\n String name = resultSet.getString(\"Customer_Name\");\n String address = resultSet.getString(\"Address\");\n String postal = resultSet.getString(\"Postal_Code\");\n String phone = resultSet.getString(\"Phone\");\n String created = resultSet.getString(\"Create_Date\");\n String createdBy = resultSet.getString(\"Created_By\");\n String lastUpdate = resultSet.getString(\"Last_Update\");\n String updatedBy = resultSet.getString(\"Last_Updated_By\");\n String divisionID = resultSet.getString(\"Division_ID\");\n\n Customer newCustomer = new Customer(customerID, name, address, postal, phone, created, createdBy, lastUpdate,\n updatedBy, divisionID);\n\n allCustomers.add(newCustomer);\n }\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "@Component\n@Mapper\npublic interface CreativeDao {\n String TABLE_NAME=\" ad_user \";\n String INSERT_FIELDS=\" name,type,material_type,height,width,size,duration,audit_status,\" +\n \"user_id,url,create_time,update_time \";\n String SELECT_FIELDS=\" id,\"+INSERT_FIELDS;\n @Insert({\"insert\",TABLE_NAME,\"(\",INSERT_FIELDS,\") values (name=#{name},type=#{type},material_type=#{materialType}\" +\n \",height=#{height},width=#{width),size=#{size},duration=#{duration},audit_status=#{audit_status},\" +\n \"user_id=#{user_id},url=#{url},create_time=#{create_time},update_time=#{update_time}\"})\n int insertCreative(Creative creative);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where user_id=#{userId}\"})\n Creative selectCreativeByUserId(Long userId);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where id=#{id}\"})\n Creative selectById(@Param(\"id\")Long id);\n default List<Creative> selectAllById(List<Long> ids){\n List<Creative> creatives=new ArrayList<>();\n for (Long id:ids) {\n creatives.add(selectById(id));\n }\n return creatives;\n }\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME})\n List<Creative> selectAll();\n}", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "public CursosTable() {\n \n \n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public interface CProductoMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" productos.id as recid,\"\r\n + \" productos.codigo,\"\r\n + \" productos.descripcion,\"\r\n + \" productos.unidad_produccion as unidadProductiva, \"\r\n + \" unidades_productivas.codigo AS codigoUnidadProduccion \"\r\n + \"FROM productos \"\r\n + \"LEFT JOIN unidades_productivas ON \"\r\n + \"unidades_productivas.id = productos.unidad_produccion\";\r\n \r\n static final String FIND_BY_CODE = \"SELECT \"\r\n + \" productos.id \"\r\n + \"FROM productos WHERE productos.codigo = #{code}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los productos existentes\r\n * @return lista de productos\r\n */\r\n @Select(FIND_ALL)\r\n public List<CProducto> findAll(); \r\n \r\n /**\r\n * Query que me permite ubicar un registro de la tabla de productos a partir de\r\n * un código. \r\n * @param code el código bajo el cual se busca\r\n * @return el id del registro.\r\n */\r\n @Select(FIND_BY_CODE)\r\n public Long findByCode(String code);\r\n}", "public interface RoleMapper extends RoleDao {\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE id = #{id}\")\n Role getRole(int id);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE name = #{name}\")\n Role getRoleByName(String name);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role ORDER BY name\")\n List<Role> getAllRoles();\n\n @Override\n @Insert(\"INSERT INTO role (name) VALUES(#{name})\")\n @Options(useGeneratedKeys = true)\n void addRole(Role role);\n\n @Override\n @Delete(\"DELETE FROM role WHERE id =#{id}\")\n void removeRole(Role role);\n}", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "List<Bill> all() throws SQLException;", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "private ObservableList<CarComponent> cartTable() {\n ObservableList<CarComponent> carComps = FXCollections.observableArrayList();\n\n for (CarComponent carComponent : componentsCart) {\n compTypeColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compType\"));\n compNameColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compName\"));\n compPriceColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Double>(\"compPrice\"));\n compQuantityColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Integer>(\"compQuantity\"));\n carComps.add(carComponent);\n }\n return carComps;\n }", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "public interface ResultSetColumn extends OptionContainer, RelationalObject {\n\n /**\n * Identifier of this object\n */\n KomodoType IDENTIFIER = KomodoType.RESULT_SET_COLUMN;\n\n /**\n * An empty array of columns.\n */\n ResultSetColumn[] NO_COLUMNS = new ResultSetColumn[0];\n\n /**\n * The type identifier.\n */\n int TYPE_ID = ResultSetColumn.class.hashCode();\n\n /**\n * The resolver of a {@link ResultSetColumn}.\n */\n TypeResolver< ResultSetColumn > RESOLVER = new TypeResolver< ResultSetColumn >() {\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#identifier()\n */\n @Override\n public KomodoType identifier() {\n return IDENTIFIER;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#owningClass()\n */\n @Override\n public Class< ResultSetColumnImpl > owningClass() {\n return ResultSetColumnImpl.class;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolvable(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public boolean resolvable( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n return ObjectImpl.validateType( transaction, kobject.getRepository(), kobject, CreateProcedure.RESULT_COLUMN );\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolve(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public ResultSetColumn resolve( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n if ( kobject.getTypeId() == ResultSetColumn.TYPE_ID ) {\n return ( ResultSetColumn )kobject;\n }\n\n return new ResultSetColumnImpl( transaction, kobject.getRepository(), kobject.getAbsolutePath() );\n }\n\n };\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n String getDatatypeName( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDefaultValue( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>description</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDescription( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n long getLength( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>name in source</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getNameInSource( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>nullable</code> property (never <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n Nullable getNullable( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n long getPrecision( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n long getScale( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>UUID</code> option (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getUuid( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newTypeName\n * the new value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n void setDatatypeName( final UnitOfWork transaction,\n final String newTypeName ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDefaultValue\n * the new value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n void setDefaultValue( final UnitOfWork transaction,\n final String newDefaultValue ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDescription\n * the new value of the <code>description</code> property (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setDescription( final UnitOfWork transaction,\n final String newDescription ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newLength\n * the new value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n void setLength( final UnitOfWork transaction,\n final long newLength ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNameInSource\n * the new name in source (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setNameInSource( final UnitOfWork transaction,\n final String newNameInSource ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNullable\n * the new value of the <code>nullable</code> property (can be <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n void setNullable( final UnitOfWork transaction,\n final Nullable newNullable ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newPrecision\n * the new value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n void setPrecision( final UnitOfWork transaction,\n final long newPrecision ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newScale\n * the new value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n void setScale( final UnitOfWork transaction,\n final long newScale ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newUuid\n * the new value of the <code>UUID</code> option (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setUuid( final UnitOfWork transaction,\n final String newUuid ) throws KException;\n\n}", "@Override\r\n\tpublic LinkedList<Customer> findAll() throws SQLException {\r\n\t\tLinkedList<Customer> listCustomer = new LinkedList<Customer>();\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \";\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCustomer customer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t\tlistCustomer.add(customer);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn listCustomer;\r\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public interface TermsOfReferenceDao extends AbstractDao<TermsOfReference, Integer> {\n Collection<TermsOfReference> getTermsOfReferenceWithNoProject()\n throws DataAccessException;\n\n Collection<TermsOfReference> getTermsOfReferenceByCustomer(Integer customerId)\n throws DataAccessException;\n}", "Movimiento selectByPrimaryKey(Integer idMovCta);", "public Courses getCourseTable();", "@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}", "List selectByExample(CTipoComprobanteExample example) throws SQLException;", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Transactional\r\n\tpublic List<Car> getAllCars() {\n\t\treturn (List<Car>)cr.findAll();\r\n\t}", "public interface CityRepository extends JpaRepository<CityEntity, Long>{\n}", "@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}", "public interface CanteensDao extends JpaRepository<CanteensEntity,Integer>{\n CanteensEntity queryByCanteenId(int id);\n}", "public final TradeGoods[] getCargo() {\n return cargo;\n }", "public String toString()\n {\n\tString returnString = \"\";\n\treturnString += \"[ \" + cargo + \" ][ * ]--> \";\n\treturn returnString;\n }", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "@Query(\"SELECT c FROM Customer c\")\n\tList<Customer> findAll();", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n //esse passo ensina como as colunas devem receber os atributos do objeto cargo\n //A propriedade nome deve coincidir com o nome do atributo da classe cargo\n// colNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n// colDescricao.setCellValueFactory(new PropertyValueFactory<>(\"descricao\"));\n// \n// colStatus.setVisible(false);\n Field[] f = Cargo.class.getDeclaredFields();\n\n for (int i = 0; i < f.length; i++) {\n if (f[i].getName().contains(\"pk_Cargo\")) {\n continue;\n }\n TableColumn<Cargo, String> t = new TableColumn<>(f[i].getName());\n t.setCellValueFactory(new PropertyValueFactory<>(f[i].getName()));\n tvCargo.getColumns().add(t);\n }\n\n tvCargo.setItems(FXCollections.observableArrayList(CargosDAO.retreaveAll()));\n }", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "@Override\n\tpublic void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {\n\t}", "public List<Good> getCargo() {\n return cargo;\n }", "public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();" ]
[ "0.5572017", "0.53757757", "0.53755826", "0.52548414", "0.52535844", "0.5216436", "0.51930636", "0.51731247", "0.5110516", "0.51073325", "0.5089412", "0.5074294", "0.5065202", "0.5059454", "0.4996471", "0.49776092", "0.4976169", "0.497482", "0.4964934", "0.49602285", "0.49560887", "0.49518162", "0.4936161", "0.49332425", "0.4931437", "0.4925473", "0.49108458", "0.4891333", "0.48855186", "0.48790336", "0.4869521", "0.48503548", "0.4846791", "0.48362994", "0.48338488", "0.4830089", "0.48075992", "0.48008752", "0.47664928", "0.47649902", "0.4763299", "0.47630817", "0.47620496", "0.4756696", "0.47482252", "0.47453442", "0.474162", "0.47283223", "0.4727951", "0.47278157", "0.47266", "0.47197336", "0.47141606", "0.47131082", "0.47118804", "0.47092706", "0.47042626", "0.4695176", "0.46935153", "0.46922913", "0.46890002", "0.4686203", "0.4685662", "0.46852612", "0.4680848", "0.46734196", "0.46706828", "0.46692726", "0.46682063", "0.46640706", "0.465771", "0.4656814", "0.4653627", "0.4653331", "0.46490005", "0.4645754", "0.4642756", "0.46427438", "0.46403542", "0.46326742", "0.46269944", "0.4624304", "0.46239933", "0.4623847", "0.46216908", "0.462097", "0.461793", "0.4616371", "0.46152684", "0.46102986", "0.46055242", "0.46018335", "0.46008047", "0.45979476", "0.4593827", "0.45910513", "0.45891622", "0.45887622", "0.4588344", "0.45873848" ]
0.5905415
0
This method was generated by MyBatis Generator. This method corresponds to the database table cargo
int updateByExampleSelective(@Param("record") Cargo record, @Param("example") CargoExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Cargo selectByPrimaryKey(Integer idCargo);", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n List<Purchase> selectAll();", "public Vector obtenerListaCagoBuscarIdCargo(int idCargo) throws SQLException {\n Vector listaCargo = new Vector();\n String sql = \"Select idCargo, idDocumento, numeroDocumento, Documento, \"\n + \"Fecha FechaCargo, Hora HoraCargo, Area AreaCargo, Asunto, Institucion, Recepcionista, estadoCargo From vCargoDocumento Where idCargo = \"+ idCargo;\n st = con.createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n Vector ovCargo = new Vector();\n ovCargo.add(rs.getInt(1));\n ovCargo.add(rs.getInt(2));\n ovCargo.add(rs.getString(3));\n ovCargo.add(rs.getString(4));\n ovCargo.add(rs.getString(5));\n ovCargo.add(rs.getString(6));\n ovCargo.add(rs.getString(7));\n ovCargo.add(rs.getString(8));\n ovCargo.add(rs.getString(9));\n ovCargo.add(rs.getString(10));\n ovCargo.add(rs.getInt(11));\n// System.out.println(rs.getInt(1));\n// System.out.println(rs.getInt(2));\n// System.out.println(rs.getInt(3));\n// System.out.println(rs.getInt(4));\n// System.out.println(rs.getInt(5));\n// System.out.println(rs.getInt(6));\n// System.out.println(rs.getInt(7));\n// System.out.println(rs.getInt(8));\n// System.out.println(rs.getInt(9));\n// System.out.println(rs.getInt(10));\n// System.out.println(rs.getInt(11));\n listaCargo.add(ovCargo);\n }\n return listaCargo;\n }", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "County selectByPrimaryKey(Long id);", "public List<Courtyard> findCourtyardAll() {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tList<Courtyard> courtyards = courtyardMapper.findCourtyardAll();\n\t\tSystem.out.println(\"--Into Dao Method of findCourtyardAll!!!--\");\n\t\treturn courtyards;\n\t}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "@Override\r\n\tpublic Cargo get(String matricula) throws SQLException {\n\t\treturn null;\r\n\t}", "TbCities selectByPrimaryKey(Long id);", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "List<Cargo> getCargoesForOrder(OrderDTO orderDTO);", "public List<CustomerPurchase> getAll() throws SQLException;", "@Override\n public List<Cours> afficherTousLesCours() {\n return coursRepo.findAll();\n }", "@GetMapping(\"/cargos\")\n @Timed\n public List<Cargo> getAllCargos() {\n log.debug(\"REST request to get all Cargos\");\n return cargoRepository.findAll();\n }", "public Cargo buscaCargo(String strCargo) {\r\n\t\tCargo cargo = null;\r\n\t\tcargo = (Cargo) em.createNamedQuery(\"buscaCargoPorNome\")\r\n\t\t\t\t.setParameter(1, strCargo).getSingleResult();\r\n\t\treturn cargo;\r\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "CityDO selectByPrimaryKey(Integer id);", "List<OcCustContract> selectAll();", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "List<Cargo> selectByExample(CargoExample example);", "@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "Tablero consultarTablero();", "VentaJPA obtenerVenta(int comprobante);", "@Override\n\tpublic List<Cours> allCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours\");\n\t\treturn q.getResultList();\n\t}", "@Dao\npublic interface CarrierDao {\n\n @Query(\"SELECT * FROM geo_carrier\")\n Cursor selectAll();\n\n @Query(\"SELECT * FROM geo_carrier WHERE number_prefix_3 = :numberPrefix3\")\n Cursor selectByNumberPrefix3(String numberPrefix3);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(CarrierEntity carrier);\n\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "@Mapper\npublic interface CompanyUserInfoDAO {\n\n @Select(\"SELECT * FROM company_user_info WHERE sales_id=#{sales_id} ORDER BY add_time DESC\")\n List<CompanyUserInfoDTO> findCompanyUserInfoBySalesId(@Param(\"sales_id\") Long sales_id);\n\n}", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "@Bean\n public TypeMap<Cargo, Cargo> getCargoCargoTypeMap() {\n return getModelMapper().createTypeMap(Cargo.class, Cargo.class)\n .addMappings(mapper -> mapper.skip(Cargo::setId))\n .addMappings(mapper -> mapper.skip(Cargo::setNumber))\n .addMappings(mapper -> mapper.skip(Cargo::setCreateDate))\n .addMappings(mapper -> mapper.skip(Cargo::setUpdateDate))\n\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getName, Cargo::setName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getState, Cargo::setState))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getWeight, Cargo::setWeight))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getDescription, Cargo::setDescription))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDepartureWaypoint, Cargo::setDepartureWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDestinationWaypoint, Cargo::setDestinationWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getCarriage, Cargo::setCarriage));\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic Curso findCrusoByAlumnoId(Long id) {\n\t\treturn repository.findCrusoByAlumnoId(id);\n\t}", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "T buidEntity(ResultSet rs) throws SQLException;", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "@Override\n\tpublic Curso mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t/* Se declara e instancia el objeto Persona.*/\n\t\tCurso curso = new Curso();\n\t\t/* Se recoje el identificador de curso del result.*/\n\t\tcurso.setId(rs.getInt(\"id\"));\n\t\t/* Se recoje el codigo de curso del result.*/\n\t\tcurso.setCodigo(rs.getString(\"codigo\"));\n\t\t/* Se recoje el nombre de la curso del result.*/\n\t\tcurso.setNombre(rs.getString(\"nombre\"));\n\t\t\n\t\t\n\t\t/* Se devuelve el objeto Persona.*/\n\t\treturn curso;\n\t}", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "CGcontractCredit selectByPrimaryKey(Integer id);", "@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n }", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "List<Corretor> findAll();", "private static Carta mapper(ResultSet rs) throws SQLException {\n\t\tCarta c = new Carta();\r\n\r\n\t\t// cogemos los valres de las columnas\r\n\t\tint colId = rs.getInt(\"id\");\r\n\t\tString colNombre = rs.getString(\"nombre\");\r\n\t\tString colNumero_id = rs.getString(\"numero_id\");\r\n\t\tString colColeccion = rs.getString(\"coleccion\");\r\n\t\tint colColeccionId = rs.getInt(\"id_coleccion\");\r\n\r\n\t\tString colTipo = rs.getString(\"tipo\");\r\n\t\tint colTipoId = rs.getInt(\"id_tipo\");\r\n\t\tString colGrado = rs.getString(\"grado\");\r\n\t\tint colGradoId = rs.getInt(\"id_grado\");\r\n\r\n\t\tint colCopias = rs.getInt(\"copias\");\r\n\r\n\t\tc.setId(colId);\r\n\t\tc.setNumero_id(colNumero_id);\r\n\t\tc.setNombre(colNombre);\r\n\t\tc.setCopias(colCopias);\r\n\r\n\t\tColeccion coleccion = new Coleccion();\r\n\t\tcoleccion.setId(colColeccionId);\r\n\t\tcoleccion.setNombre(colColeccion);\r\n\t\tc.setColeccion(coleccion);\r\n\r\n\t\tTipo tipo = new Tipo();\r\n\t\ttipo.setId(colTipoId);\r\n\t\ttipo.setNombre(colTipo);\r\n\t\tc.setTipo(tipo);\r\n\r\n\t\tGrado grado = new Grado();\r\n\t\tgrado.setId(colGradoId);\r\n\t\tgrado.setNombre(colGrado);\r\n\t\tc.setGrado(grado);\r\n\r\n\t\treturn c;\r\n\t}", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Dao\npublic interface CarDao {\n\n @Query(\"SELECT * FROM car\")\n List<Car> getAll();\n\n @Insert\n void insertAll(Car... cars);\n\n @Delete\n void delete(Car car);\n\n @Update\n void update(Car... cars);\n\n @Query(\"SELECT * FROM car WHERE chassisCode = :chassisCode\")\n Car findByChassisCode(String chassisCode);\n}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public List<Carro> getCarros(){\n\t\t\n\t\ttry {\t\t\t\n\t\t\tList<Carro> carros = db.getCarros();\n\t\t\treturn carros;\n\t\t\t\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn new ArrayList<>();\n\t\t}\n\t\t\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "public void formDatabaseTable() {\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public Circle mapRow(ResultSet rs, int rowNum) throws SQLException {\n Circle circle = new Circle();\n circle.setId(rs.getInt(\"ID\"));\n circle.setName(rs.getString(\"NAME\"));\n return circle;\n }", "public void populateCustomerTable() throws SQLException {\n\n try {\n\n PreparedStatement populateCustomerTableview = DBConnection.getConnection().prepareStatement(\"SELECT * from customers\");\n ResultSet resultSet = populateCustomerTableview.executeQuery();\n allCustomers.removeAll();\n\n while (resultSet.next()) {\n\n int customerID = resultSet.getInt(\"Customer_ID\");\n String name = resultSet.getString(\"Customer_Name\");\n String address = resultSet.getString(\"Address\");\n String postal = resultSet.getString(\"Postal_Code\");\n String phone = resultSet.getString(\"Phone\");\n String created = resultSet.getString(\"Create_Date\");\n String createdBy = resultSet.getString(\"Created_By\");\n String lastUpdate = resultSet.getString(\"Last_Update\");\n String updatedBy = resultSet.getString(\"Last_Updated_By\");\n String divisionID = resultSet.getString(\"Division_ID\");\n\n Customer newCustomer = new Customer(customerID, name, address, postal, phone, created, createdBy, lastUpdate,\n updatedBy, divisionID);\n\n allCustomers.add(newCustomer);\n }\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "@Component\n@Mapper\npublic interface CreativeDao {\n String TABLE_NAME=\" ad_user \";\n String INSERT_FIELDS=\" name,type,material_type,height,width,size,duration,audit_status,\" +\n \"user_id,url,create_time,update_time \";\n String SELECT_FIELDS=\" id,\"+INSERT_FIELDS;\n @Insert({\"insert\",TABLE_NAME,\"(\",INSERT_FIELDS,\") values (name=#{name},type=#{type},material_type=#{materialType}\" +\n \",height=#{height},width=#{width),size=#{size},duration=#{duration},audit_status=#{audit_status},\" +\n \"user_id=#{user_id},url=#{url},create_time=#{create_time},update_time=#{update_time}\"})\n int insertCreative(Creative creative);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where user_id=#{userId}\"})\n Creative selectCreativeByUserId(Long userId);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where id=#{id}\"})\n Creative selectById(@Param(\"id\")Long id);\n default List<Creative> selectAllById(List<Long> ids){\n List<Creative> creatives=new ArrayList<>();\n for (Long id:ids) {\n creatives.add(selectById(id));\n }\n return creatives;\n }\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME})\n List<Creative> selectAll();\n}", "TdxCompanyTaxArrears selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "public CursosTable() {\n \n \n }", "public interface CProductoMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" productos.id as recid,\"\r\n + \" productos.codigo,\"\r\n + \" productos.descripcion,\"\r\n + \" productos.unidad_produccion as unidadProductiva, \"\r\n + \" unidades_productivas.codigo AS codigoUnidadProduccion \"\r\n + \"FROM productos \"\r\n + \"LEFT JOIN unidades_productivas ON \"\r\n + \"unidades_productivas.id = productos.unidad_produccion\";\r\n \r\n static final String FIND_BY_CODE = \"SELECT \"\r\n + \" productos.id \"\r\n + \"FROM productos WHERE productos.codigo = #{code}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los productos existentes\r\n * @return lista de productos\r\n */\r\n @Select(FIND_ALL)\r\n public List<CProducto> findAll(); \r\n \r\n /**\r\n * Query que me permite ubicar un registro de la tabla de productos a partir de\r\n * un código. \r\n * @param code el código bajo el cual se busca\r\n * @return el id del registro.\r\n */\r\n @Select(FIND_BY_CODE)\r\n public Long findByCode(String code);\r\n}", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public interface RoleMapper extends RoleDao {\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE id = #{id}\")\n Role getRole(int id);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE name = #{name}\")\n Role getRoleByName(String name);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role ORDER BY name\")\n List<Role> getAllRoles();\n\n @Override\n @Insert(\"INSERT INTO role (name) VALUES(#{name})\")\n @Options(useGeneratedKeys = true)\n void addRole(Role role);\n\n @Override\n @Delete(\"DELETE FROM role WHERE id =#{id}\")\n void removeRole(Role role);\n}", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "List<Bill> all() throws SQLException;", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "private ObservableList<CarComponent> cartTable() {\n ObservableList<CarComponent> carComps = FXCollections.observableArrayList();\n\n for (CarComponent carComponent : componentsCart) {\n compTypeColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compType\"));\n compNameColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compName\"));\n compPriceColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Double>(\"compPrice\"));\n compQuantityColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Integer>(\"compQuantity\"));\n carComps.add(carComponent);\n }\n return carComps;\n }", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "public interface ResultSetColumn extends OptionContainer, RelationalObject {\n\n /**\n * Identifier of this object\n */\n KomodoType IDENTIFIER = KomodoType.RESULT_SET_COLUMN;\n\n /**\n * An empty array of columns.\n */\n ResultSetColumn[] NO_COLUMNS = new ResultSetColumn[0];\n\n /**\n * The type identifier.\n */\n int TYPE_ID = ResultSetColumn.class.hashCode();\n\n /**\n * The resolver of a {@link ResultSetColumn}.\n */\n TypeResolver< ResultSetColumn > RESOLVER = new TypeResolver< ResultSetColumn >() {\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#identifier()\n */\n @Override\n public KomodoType identifier() {\n return IDENTIFIER;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#owningClass()\n */\n @Override\n public Class< ResultSetColumnImpl > owningClass() {\n return ResultSetColumnImpl.class;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolvable(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public boolean resolvable( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n return ObjectImpl.validateType( transaction, kobject.getRepository(), kobject, CreateProcedure.RESULT_COLUMN );\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolve(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public ResultSetColumn resolve( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n if ( kobject.getTypeId() == ResultSetColumn.TYPE_ID ) {\n return ( ResultSetColumn )kobject;\n }\n\n return new ResultSetColumnImpl( transaction, kobject.getRepository(), kobject.getAbsolutePath() );\n }\n\n };\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n String getDatatypeName( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDefaultValue( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>description</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDescription( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n long getLength( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>name in source</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getNameInSource( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>nullable</code> property (never <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n Nullable getNullable( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n long getPrecision( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n long getScale( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>UUID</code> option (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getUuid( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newTypeName\n * the new value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n void setDatatypeName( final UnitOfWork transaction,\n final String newTypeName ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDefaultValue\n * the new value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n void setDefaultValue( final UnitOfWork transaction,\n final String newDefaultValue ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDescription\n * the new value of the <code>description</code> property (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setDescription( final UnitOfWork transaction,\n final String newDescription ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newLength\n * the new value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n void setLength( final UnitOfWork transaction,\n final long newLength ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNameInSource\n * the new name in source (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setNameInSource( final UnitOfWork transaction,\n final String newNameInSource ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNullable\n * the new value of the <code>nullable</code> property (can be <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n void setNullable( final UnitOfWork transaction,\n final Nullable newNullable ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newPrecision\n * the new value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n void setPrecision( final UnitOfWork transaction,\n final long newPrecision ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newScale\n * the new value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n void setScale( final UnitOfWork transaction,\n final long newScale ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newUuid\n * the new value of the <code>UUID</code> option (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setUuid( final UnitOfWork transaction,\n final String newUuid ) throws KException;\n\n}", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "@Override\r\n\tpublic LinkedList<Customer> findAll() throws SQLException {\r\n\t\tLinkedList<Customer> listCustomer = new LinkedList<Customer>();\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \";\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCustomer customer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t\tlistCustomer.add(customer);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn listCustomer;\r\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public interface TermsOfReferenceDao extends AbstractDao<TermsOfReference, Integer> {\n Collection<TermsOfReference> getTermsOfReferenceWithNoProject()\n throws DataAccessException;\n\n Collection<TermsOfReference> getTermsOfReferenceByCustomer(Integer customerId)\n throws DataAccessException;\n}", "public Courses getCourseTable();", "Movimiento selectByPrimaryKey(Integer idMovCta);", "@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "List selectByExample(CTipoComprobanteExample example) throws SQLException;", "@Transactional\r\n\tpublic List<Car> getAllCars() {\n\t\treturn (List<Car>)cr.findAll();\r\n\t}", "@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}", "public interface CityRepository extends JpaRepository<CityEntity, Long>{\n}", "public interface CanteensDao extends JpaRepository<CanteensEntity,Integer>{\n CanteensEntity queryByCanteenId(int id);\n}", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public final TradeGoods[] getCargo() {\n return cargo;\n }", "@Query(\"SELECT c FROM Customer c\")\n\tList<Customer> findAll();", "public String toString()\n {\n\tString returnString = \"\";\n\treturnString += \"[ \" + cargo + \" ][ * ]--> \";\n\treturn returnString;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n //esse passo ensina como as colunas devem receber os atributos do objeto cargo\n //A propriedade nome deve coincidir com o nome do atributo da classe cargo\n// colNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n// colDescricao.setCellValueFactory(new PropertyValueFactory<>(\"descricao\"));\n// \n// colStatus.setVisible(false);\n Field[] f = Cargo.class.getDeclaredFields();\n\n for (int i = 0; i < f.length; i++) {\n if (f[i].getName().contains(\"pk_Cargo\")) {\n continue;\n }\n TableColumn<Cargo, String> t = new TableColumn<>(f[i].getName());\n t.setCellValueFactory(new PropertyValueFactory<>(f[i].getName()));\n tvCargo.getColumns().add(t);\n }\n\n tvCargo.setItems(FXCollections.observableArrayList(CargosDAO.retreaveAll()));\n }", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}", "@Override\n\tpublic void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }" ]
[ "0.59035504", "0.557313", "0.53774446", "0.53731", "0.52572745", "0.5255507", "0.5215776", "0.5191732", "0.51750356", "0.5110728", "0.5103905", "0.5089586", "0.50746727", "0.50643545", "0.50596315", "0.49927184", "0.49769726", "0.49760795", "0.49713275", "0.49617887", "0.49597105", "0.4955269", "0.49520934", "0.49370614", "0.49355856", "0.49302575", "0.49260187", "0.49128345", "0.4890144", "0.48841435", "0.4880642", "0.48681012", "0.4852993", "0.4847635", "0.48385048", "0.48313868", "0.4829095", "0.48067617", "0.48025084", "0.4767036", "0.47648603", "0.47644332", "0.47618338", "0.4761697", "0.47589538", "0.4749273", "0.47485343", "0.4743347", "0.47282547", "0.4727752", "0.4727597", "0.47272462", "0.47175953", "0.4714178", "0.47114292", "0.47113332", "0.47068983", "0.47024307", "0.4695979", "0.46959016", "0.46943116", "0.46894756", "0.468892", "0.4687031", "0.46863732", "0.468045", "0.4674526", "0.46713316", "0.46708158", "0.46700248", "0.46650362", "0.46596965", "0.4658817", "0.46525183", "0.46519706", "0.46453407", "0.46449307", "0.46426567", "0.46423203", "0.46419322", "0.46349964", "0.46258637", "0.46242964", "0.46235576", "0.462348", "0.4623128", "0.46222556", "0.4617522", "0.46168512", "0.4616257", "0.4608337", "0.46025634", "0.46007457", "0.45980254", "0.45973048", "0.45931783", "0.4592094", "0.45900992", "0.45899385", "0.45887426", "0.458779" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table cargo
int updateByExample(@Param("record") Cargo record, @Param("example") CargoExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Cargo selectByPrimaryKey(Integer idCargo);", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n List<Purchase> selectAll();", "public Vector obtenerListaCagoBuscarIdCargo(int idCargo) throws SQLException {\n Vector listaCargo = new Vector();\n String sql = \"Select idCargo, idDocumento, numeroDocumento, Documento, \"\n + \"Fecha FechaCargo, Hora HoraCargo, Area AreaCargo, Asunto, Institucion, Recepcionista, estadoCargo From vCargoDocumento Where idCargo = \"+ idCargo;\n st = con.createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n Vector ovCargo = new Vector();\n ovCargo.add(rs.getInt(1));\n ovCargo.add(rs.getInt(2));\n ovCargo.add(rs.getString(3));\n ovCargo.add(rs.getString(4));\n ovCargo.add(rs.getString(5));\n ovCargo.add(rs.getString(6));\n ovCargo.add(rs.getString(7));\n ovCargo.add(rs.getString(8));\n ovCargo.add(rs.getString(9));\n ovCargo.add(rs.getString(10));\n ovCargo.add(rs.getInt(11));\n// System.out.println(rs.getInt(1));\n// System.out.println(rs.getInt(2));\n// System.out.println(rs.getInt(3));\n// System.out.println(rs.getInt(4));\n// System.out.println(rs.getInt(5));\n// System.out.println(rs.getInt(6));\n// System.out.println(rs.getInt(7));\n// System.out.println(rs.getInt(8));\n// System.out.println(rs.getInt(9));\n// System.out.println(rs.getInt(10));\n// System.out.println(rs.getInt(11));\n listaCargo.add(ovCargo);\n }\n return listaCargo;\n }", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "County selectByPrimaryKey(Long id);", "public List<Courtyard> findCourtyardAll() {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tList<Courtyard> courtyards = courtyardMapper.findCourtyardAll();\n\t\tSystem.out.println(\"--Into Dao Method of findCourtyardAll!!!--\");\n\t\treturn courtyards;\n\t}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "@Override\r\n\tpublic Cargo get(String matricula) throws SQLException {\n\t\treturn null;\r\n\t}", "TbCities selectByPrimaryKey(Long id);", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "List<Cargo> getCargoesForOrder(OrderDTO orderDTO);", "public List<CustomerPurchase> getAll() throws SQLException;", "@Override\n public List<Cours> afficherTousLesCours() {\n return coursRepo.findAll();\n }", "@GetMapping(\"/cargos\")\n @Timed\n public List<Cargo> getAllCargos() {\n log.debug(\"REST request to get all Cargos\");\n return cargoRepository.findAll();\n }", "public Cargo buscaCargo(String strCargo) {\r\n\t\tCargo cargo = null;\r\n\t\tcargo = (Cargo) em.createNamedQuery(\"buscaCargoPorNome\")\r\n\t\t\t\t.setParameter(1, strCargo).getSingleResult();\r\n\t\treturn cargo;\r\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "CityDO selectByPrimaryKey(Integer id);", "List<OcCustContract> selectAll();", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "List<Cargo> selectByExample(CargoExample example);", "@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "Tablero consultarTablero();", "VentaJPA obtenerVenta(int comprobante);", "@Override\n\tpublic List<Cours> allCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours\");\n\t\treturn q.getResultList();\n\t}", "@Dao\npublic interface CarrierDao {\n\n @Query(\"SELECT * FROM geo_carrier\")\n Cursor selectAll();\n\n @Query(\"SELECT * FROM geo_carrier WHERE number_prefix_3 = :numberPrefix3\")\n Cursor selectByNumberPrefix3(String numberPrefix3);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(CarrierEntity carrier);\n\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "@Mapper\npublic interface CompanyUserInfoDAO {\n\n @Select(\"SELECT * FROM company_user_info WHERE sales_id=#{sales_id} ORDER BY add_time DESC\")\n List<CompanyUserInfoDTO> findCompanyUserInfoBySalesId(@Param(\"sales_id\") Long sales_id);\n\n}", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "@Bean\n public TypeMap<Cargo, Cargo> getCargoCargoTypeMap() {\n return getModelMapper().createTypeMap(Cargo.class, Cargo.class)\n .addMappings(mapper -> mapper.skip(Cargo::setId))\n .addMappings(mapper -> mapper.skip(Cargo::setNumber))\n .addMappings(mapper -> mapper.skip(Cargo::setCreateDate))\n .addMappings(mapper -> mapper.skip(Cargo::setUpdateDate))\n\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getName, Cargo::setName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getState, Cargo::setState))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getWeight, Cargo::setWeight))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getDescription, Cargo::setDescription))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDepartureWaypoint, Cargo::setDepartureWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDestinationWaypoint, Cargo::setDestinationWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getCarriage, Cargo::setCarriage));\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic Curso findCrusoByAlumnoId(Long id) {\n\t\treturn repository.findCrusoByAlumnoId(id);\n\t}", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "T buidEntity(ResultSet rs) throws SQLException;", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "@Override\n\tpublic Curso mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t/* Se declara e instancia el objeto Persona.*/\n\t\tCurso curso = new Curso();\n\t\t/* Se recoje el identificador de curso del result.*/\n\t\tcurso.setId(rs.getInt(\"id\"));\n\t\t/* Se recoje el codigo de curso del result.*/\n\t\tcurso.setCodigo(rs.getString(\"codigo\"));\n\t\t/* Se recoje el nombre de la curso del result.*/\n\t\tcurso.setNombre(rs.getString(\"nombre\"));\n\t\t\n\t\t\n\t\t/* Se devuelve el objeto Persona.*/\n\t\treturn curso;\n\t}", "CGcontractCredit selectByPrimaryKey(Integer id);", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n }", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "List<Corretor> findAll();", "private static Carta mapper(ResultSet rs) throws SQLException {\n\t\tCarta c = new Carta();\r\n\r\n\t\t// cogemos los valres de las columnas\r\n\t\tint colId = rs.getInt(\"id\");\r\n\t\tString colNombre = rs.getString(\"nombre\");\r\n\t\tString colNumero_id = rs.getString(\"numero_id\");\r\n\t\tString colColeccion = rs.getString(\"coleccion\");\r\n\t\tint colColeccionId = rs.getInt(\"id_coleccion\");\r\n\r\n\t\tString colTipo = rs.getString(\"tipo\");\r\n\t\tint colTipoId = rs.getInt(\"id_tipo\");\r\n\t\tString colGrado = rs.getString(\"grado\");\r\n\t\tint colGradoId = rs.getInt(\"id_grado\");\r\n\r\n\t\tint colCopias = rs.getInt(\"copias\");\r\n\r\n\t\tc.setId(colId);\r\n\t\tc.setNumero_id(colNumero_id);\r\n\t\tc.setNombre(colNombre);\r\n\t\tc.setCopias(colCopias);\r\n\r\n\t\tColeccion coleccion = new Coleccion();\r\n\t\tcoleccion.setId(colColeccionId);\r\n\t\tcoleccion.setNombre(colColeccion);\r\n\t\tc.setColeccion(coleccion);\r\n\r\n\t\tTipo tipo = new Tipo();\r\n\t\ttipo.setId(colTipoId);\r\n\t\ttipo.setNombre(colTipo);\r\n\t\tc.setTipo(tipo);\r\n\r\n\t\tGrado grado = new Grado();\r\n\t\tgrado.setId(colGradoId);\r\n\t\tgrado.setNombre(colGrado);\r\n\t\tc.setGrado(grado);\r\n\r\n\t\treturn c;\r\n\t}", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Dao\npublic interface CarDao {\n\n @Query(\"SELECT * FROM car\")\n List<Car> getAll();\n\n @Insert\n void insertAll(Car... cars);\n\n @Delete\n void delete(Car car);\n\n @Update\n void update(Car... cars);\n\n @Query(\"SELECT * FROM car WHERE chassisCode = :chassisCode\")\n Car findByChassisCode(String chassisCode);\n}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public List<Carro> getCarros(){\n\t\t\n\t\ttry {\t\t\t\n\t\t\tList<Carro> carros = db.getCarros();\n\t\t\treturn carros;\n\t\t\t\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn new ArrayList<>();\n\t\t}\n\t\t\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "public void formDatabaseTable() {\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "public void populateCustomerTable() throws SQLException {\n\n try {\n\n PreparedStatement populateCustomerTableview = DBConnection.getConnection().prepareStatement(\"SELECT * from customers\");\n ResultSet resultSet = populateCustomerTableview.executeQuery();\n allCustomers.removeAll();\n\n while (resultSet.next()) {\n\n int customerID = resultSet.getInt(\"Customer_ID\");\n String name = resultSet.getString(\"Customer_Name\");\n String address = resultSet.getString(\"Address\");\n String postal = resultSet.getString(\"Postal_Code\");\n String phone = resultSet.getString(\"Phone\");\n String created = resultSet.getString(\"Create_Date\");\n String createdBy = resultSet.getString(\"Created_By\");\n String lastUpdate = resultSet.getString(\"Last_Update\");\n String updatedBy = resultSet.getString(\"Last_Updated_By\");\n String divisionID = resultSet.getString(\"Division_ID\");\n\n Customer newCustomer = new Customer(customerID, name, address, postal, phone, created, createdBy, lastUpdate,\n updatedBy, divisionID);\n\n allCustomers.add(newCustomer);\n }\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "@Override\n public Circle mapRow(ResultSet rs, int rowNum) throws SQLException {\n Circle circle = new Circle();\n circle.setId(rs.getInt(\"ID\"));\n circle.setName(rs.getString(\"NAME\"));\n return circle;\n }", "@Component\n@Mapper\npublic interface CreativeDao {\n String TABLE_NAME=\" ad_user \";\n String INSERT_FIELDS=\" name,type,material_type,height,width,size,duration,audit_status,\" +\n \"user_id,url,create_time,update_time \";\n String SELECT_FIELDS=\" id,\"+INSERT_FIELDS;\n @Insert({\"insert\",TABLE_NAME,\"(\",INSERT_FIELDS,\") values (name=#{name},type=#{type},material_type=#{materialType}\" +\n \",height=#{height},width=#{width),size=#{size},duration=#{duration},audit_status=#{audit_status},\" +\n \"user_id=#{user_id},url=#{url},create_time=#{create_time},update_time=#{update_time}\"})\n int insertCreative(Creative creative);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where user_id=#{userId}\"})\n Creative selectCreativeByUserId(Long userId);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where id=#{id}\"})\n Creative selectById(@Param(\"id\")Long id);\n default List<Creative> selectAllById(List<Long> ids){\n List<Creative> creatives=new ArrayList<>();\n for (Long id:ids) {\n creatives.add(selectById(id));\n }\n return creatives;\n }\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME})\n List<Creative> selectAll();\n}", "TdxCompanyTaxArrears selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "public CursosTable() {\n \n \n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public interface CProductoMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" productos.id as recid,\"\r\n + \" productos.codigo,\"\r\n + \" productos.descripcion,\"\r\n + \" productos.unidad_produccion as unidadProductiva, \"\r\n + \" unidades_productivas.codigo AS codigoUnidadProduccion \"\r\n + \"FROM productos \"\r\n + \"LEFT JOIN unidades_productivas ON \"\r\n + \"unidades_productivas.id = productos.unidad_produccion\";\r\n \r\n static final String FIND_BY_CODE = \"SELECT \"\r\n + \" productos.id \"\r\n + \"FROM productos WHERE productos.codigo = #{code}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los productos existentes\r\n * @return lista de productos\r\n */\r\n @Select(FIND_ALL)\r\n public List<CProducto> findAll(); \r\n \r\n /**\r\n * Query que me permite ubicar un registro de la tabla de productos a partir de\r\n * un código. \r\n * @param code el código bajo el cual se busca\r\n * @return el id del registro.\r\n */\r\n @Select(FIND_BY_CODE)\r\n public Long findByCode(String code);\r\n}", "public interface RoleMapper extends RoleDao {\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE id = #{id}\")\n Role getRole(int id);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE name = #{name}\")\n Role getRoleByName(String name);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role ORDER BY name\")\n List<Role> getAllRoles();\n\n @Override\n @Insert(\"INSERT INTO role (name) VALUES(#{name})\")\n @Options(useGeneratedKeys = true)\n void addRole(Role role);\n\n @Override\n @Delete(\"DELETE FROM role WHERE id =#{id}\")\n void removeRole(Role role);\n}", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "List<Bill> all() throws SQLException;", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "private ObservableList<CarComponent> cartTable() {\n ObservableList<CarComponent> carComps = FXCollections.observableArrayList();\n\n for (CarComponent carComponent : componentsCart) {\n compTypeColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compType\"));\n compNameColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compName\"));\n compPriceColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Double>(\"compPrice\"));\n compQuantityColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Integer>(\"compQuantity\"));\n carComps.add(carComponent);\n }\n return carComps;\n }", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "@Override\r\n\tpublic LinkedList<Customer> findAll() throws SQLException {\r\n\t\tLinkedList<Customer> listCustomer = new LinkedList<Customer>();\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \";\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCustomer customer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t\tlistCustomer.add(customer);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn listCustomer;\r\n\t}", "public interface ResultSetColumn extends OptionContainer, RelationalObject {\n\n /**\n * Identifier of this object\n */\n KomodoType IDENTIFIER = KomodoType.RESULT_SET_COLUMN;\n\n /**\n * An empty array of columns.\n */\n ResultSetColumn[] NO_COLUMNS = new ResultSetColumn[0];\n\n /**\n * The type identifier.\n */\n int TYPE_ID = ResultSetColumn.class.hashCode();\n\n /**\n * The resolver of a {@link ResultSetColumn}.\n */\n TypeResolver< ResultSetColumn > RESOLVER = new TypeResolver< ResultSetColumn >() {\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#identifier()\n */\n @Override\n public KomodoType identifier() {\n return IDENTIFIER;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#owningClass()\n */\n @Override\n public Class< ResultSetColumnImpl > owningClass() {\n return ResultSetColumnImpl.class;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolvable(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public boolean resolvable( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n return ObjectImpl.validateType( transaction, kobject.getRepository(), kobject, CreateProcedure.RESULT_COLUMN );\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolve(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public ResultSetColumn resolve( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n if ( kobject.getTypeId() == ResultSetColumn.TYPE_ID ) {\n return ( ResultSetColumn )kobject;\n }\n\n return new ResultSetColumnImpl( transaction, kobject.getRepository(), kobject.getAbsolutePath() );\n }\n\n };\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n String getDatatypeName( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDefaultValue( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>description</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDescription( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n long getLength( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>name in source</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getNameInSource( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>nullable</code> property (never <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n Nullable getNullable( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n long getPrecision( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n long getScale( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>UUID</code> option (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getUuid( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newTypeName\n * the new value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n void setDatatypeName( final UnitOfWork transaction,\n final String newTypeName ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDefaultValue\n * the new value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n void setDefaultValue( final UnitOfWork transaction,\n final String newDefaultValue ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDescription\n * the new value of the <code>description</code> property (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setDescription( final UnitOfWork transaction,\n final String newDescription ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newLength\n * the new value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n void setLength( final UnitOfWork transaction,\n final long newLength ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNameInSource\n * the new name in source (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setNameInSource( final UnitOfWork transaction,\n final String newNameInSource ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNullable\n * the new value of the <code>nullable</code> property (can be <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n void setNullable( final UnitOfWork transaction,\n final Nullable newNullable ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newPrecision\n * the new value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n void setPrecision( final UnitOfWork transaction,\n final long newPrecision ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newScale\n * the new value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n void setScale( final UnitOfWork transaction,\n final long newScale ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newUuid\n * the new value of the <code>UUID</code> option (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setUuid( final UnitOfWork transaction,\n final String newUuid ) throws KException;\n\n}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public interface TermsOfReferenceDao extends AbstractDao<TermsOfReference, Integer> {\n Collection<TermsOfReference> getTermsOfReferenceWithNoProject()\n throws DataAccessException;\n\n Collection<TermsOfReference> getTermsOfReferenceByCustomer(Integer customerId)\n throws DataAccessException;\n}", "@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}", "public Courses getCourseTable();", "Movimiento selectByPrimaryKey(Integer idMovCta);", "List selectByExample(CTipoComprobanteExample example) throws SQLException;", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Transactional\r\n\tpublic List<Car> getAllCars() {\n\t\treturn (List<Car>)cr.findAll();\r\n\t}", "@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}", "public interface CityRepository extends JpaRepository<CityEntity, Long>{\n}", "public interface CanteensDao extends JpaRepository<CanteensEntity,Integer>{\n CanteensEntity queryByCanteenId(int id);\n}", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public final TradeGoods[] getCargo() {\n return cargo;\n }", "@Query(\"SELECT c FROM Customer c\")\n\tList<Customer> findAll();", "public String toString()\n {\n\tString returnString = \"\";\n\treturnString += \"[ \" + cargo + \" ][ * ]--> \";\n\treturn returnString;\n }", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n //esse passo ensina como as colunas devem receber os atributos do objeto cargo\n //A propriedade nome deve coincidir com o nome do atributo da classe cargo\n// colNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n// colDescricao.setCellValueFactory(new PropertyValueFactory<>(\"descricao\"));\n// \n// colStatus.setVisible(false);\n Field[] f = Cargo.class.getDeclaredFields();\n\n for (int i = 0; i < f.length; i++) {\n if (f[i].getName().contains(\"pk_Cargo\")) {\n continue;\n }\n TableColumn<Cargo, String> t = new TableColumn<>(f[i].getName());\n t.setCellValueFactory(new PropertyValueFactory<>(f[i].getName()));\n tvCargo.getColumns().add(t);\n }\n\n tvCargo.setItems(FXCollections.observableArrayList(CargosDAO.retreaveAll()));\n }", "@Override\n\tpublic void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {\n\t}", "public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }" ]
[ "0.590364", "0.55739254", "0.53776205", "0.5373786", "0.52583104", "0.52556455", "0.5216209", "0.51924235", "0.5175056", "0.5110947", "0.5104078", "0.5090616", "0.50754863", "0.5065929", "0.50608784", "0.49937865", "0.4977886", "0.49768093", "0.497114", "0.49614286", "0.49595168", "0.49561185", "0.49519888", "0.49374756", "0.49364713", "0.49315482", "0.49259844", "0.49140793", "0.48895037", "0.48854274", "0.4880918", "0.486885", "0.48539835", "0.48471615", "0.48382914", "0.4831915", "0.4829747", "0.4808019", "0.48029092", "0.4766288", "0.47652835", "0.4765252", "0.47617036", "0.47603372", "0.47573742", "0.47506014", "0.47475302", "0.47427472", "0.47284797", "0.47278488", "0.47275177", "0.47270715", "0.47177058", "0.47146448", "0.47130898", "0.4712335", "0.47058612", "0.4702448", "0.46962467", "0.4695612", "0.46948892", "0.46904087", "0.46896034", "0.46879107", "0.4685585", "0.4679595", "0.46737334", "0.4671113", "0.4670923", "0.46700528", "0.46644506", "0.46605763", "0.46585208", "0.46522883", "0.46515867", "0.4647441", "0.46445435", "0.46436575", "0.46420726", "0.4641905", "0.46345633", "0.46264535", "0.4625338", "0.462491", "0.46235323", "0.46231076", "0.46224254", "0.46171913", "0.46165177", "0.46160832", "0.46085212", "0.46031567", "0.4600297", "0.45983863", "0.45972088", "0.45927852", "0.45927182", "0.45893356", "0.4588853", "0.45887864", "0.45883018" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table cargo
int updateByPrimaryKeySelective(Cargo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Cargo selectByPrimaryKey(Integer idCargo);", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n List<Purchase> selectAll();", "public Vector obtenerListaCagoBuscarIdCargo(int idCargo) throws SQLException {\n Vector listaCargo = new Vector();\n String sql = \"Select idCargo, idDocumento, numeroDocumento, Documento, \"\n + \"Fecha FechaCargo, Hora HoraCargo, Area AreaCargo, Asunto, Institucion, Recepcionista, estadoCargo From vCargoDocumento Where idCargo = \"+ idCargo;\n st = con.createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n Vector ovCargo = new Vector();\n ovCargo.add(rs.getInt(1));\n ovCargo.add(rs.getInt(2));\n ovCargo.add(rs.getString(3));\n ovCargo.add(rs.getString(4));\n ovCargo.add(rs.getString(5));\n ovCargo.add(rs.getString(6));\n ovCargo.add(rs.getString(7));\n ovCargo.add(rs.getString(8));\n ovCargo.add(rs.getString(9));\n ovCargo.add(rs.getString(10));\n ovCargo.add(rs.getInt(11));\n// System.out.println(rs.getInt(1));\n// System.out.println(rs.getInt(2));\n// System.out.println(rs.getInt(3));\n// System.out.println(rs.getInt(4));\n// System.out.println(rs.getInt(5));\n// System.out.println(rs.getInt(6));\n// System.out.println(rs.getInt(7));\n// System.out.println(rs.getInt(8));\n// System.out.println(rs.getInt(9));\n// System.out.println(rs.getInt(10));\n// System.out.println(rs.getInt(11));\n listaCargo.add(ovCargo);\n }\n return listaCargo;\n }", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "County selectByPrimaryKey(Long id);", "public List<Courtyard> findCourtyardAll() {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tList<Courtyard> courtyards = courtyardMapper.findCourtyardAll();\n\t\tSystem.out.println(\"--Into Dao Method of findCourtyardAll!!!--\");\n\t\treturn courtyards;\n\t}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "@Override\r\n\tpublic Cargo get(String matricula) throws SQLException {\n\t\treturn null;\r\n\t}", "TbCities selectByPrimaryKey(Long id);", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "List<Cargo> getCargoesForOrder(OrderDTO orderDTO);", "@Override\n public List<Cours> afficherTousLesCours() {\n return coursRepo.findAll();\n }", "public List<CustomerPurchase> getAll() throws SQLException;", "@GetMapping(\"/cargos\")\n @Timed\n public List<Cargo> getAllCargos() {\n log.debug(\"REST request to get all Cargos\");\n return cargoRepository.findAll();\n }", "public Cargo buscaCargo(String strCargo) {\r\n\t\tCargo cargo = null;\r\n\t\tcargo = (Cargo) em.createNamedQuery(\"buscaCargoPorNome\")\r\n\t\t\t\t.setParameter(1, strCargo).getSingleResult();\r\n\t\treturn cargo;\r\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "CityDO selectByPrimaryKey(Integer id);", "List<OcCustContract> selectAll();", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "List<Cargo> selectByExample(CargoExample example);", "@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "Tablero consultarTablero();", "VentaJPA obtenerVenta(int comprobante);", "@Override\n\tpublic List<Cours> allCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours\");\n\t\treturn q.getResultList();\n\t}", "@Dao\npublic interface CarrierDao {\n\n @Query(\"SELECT * FROM geo_carrier\")\n Cursor selectAll();\n\n @Query(\"SELECT * FROM geo_carrier WHERE number_prefix_3 = :numberPrefix3\")\n Cursor selectByNumberPrefix3(String numberPrefix3);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(CarrierEntity carrier);\n\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "@Mapper\npublic interface CompanyUserInfoDAO {\n\n @Select(\"SELECT * FROM company_user_info WHERE sales_id=#{sales_id} ORDER BY add_time DESC\")\n List<CompanyUserInfoDTO> findCompanyUserInfoBySalesId(@Param(\"sales_id\") Long sales_id);\n\n}", "@Bean\n public TypeMap<Cargo, Cargo> getCargoCargoTypeMap() {\n return getModelMapper().createTypeMap(Cargo.class, Cargo.class)\n .addMappings(mapper -> mapper.skip(Cargo::setId))\n .addMappings(mapper -> mapper.skip(Cargo::setNumber))\n .addMappings(mapper -> mapper.skip(Cargo::setCreateDate))\n .addMappings(mapper -> mapper.skip(Cargo::setUpdateDate))\n\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getName, Cargo::setName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getState, Cargo::setState))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getWeight, Cargo::setWeight))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getDescription, Cargo::setDescription))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDepartureWaypoint, Cargo::setDepartureWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDestinationWaypoint, Cargo::setDestinationWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getCarriage, Cargo::setCarriage));\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic Curso findCrusoByAlumnoId(Long id) {\n\t\treturn repository.findCrusoByAlumnoId(id);\n\t}", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "T buidEntity(ResultSet rs) throws SQLException;", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "@Override\n\tpublic Curso mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t/* Se declara e instancia el objeto Persona.*/\n\t\tCurso curso = new Curso();\n\t\t/* Se recoje el identificador de curso del result.*/\n\t\tcurso.setId(rs.getInt(\"id\"));\n\t\t/* Se recoje el codigo de curso del result.*/\n\t\tcurso.setCodigo(rs.getString(\"codigo\"));\n\t\t/* Se recoje el nombre de la curso del result.*/\n\t\tcurso.setNombre(rs.getString(\"nombre\"));\n\t\t\n\t\t\n\t\t/* Se devuelve el objeto Persona.*/\n\t\treturn curso;\n\t}", "@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n }", "CGcontractCredit selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "List<Corretor> findAll();", "private static Carta mapper(ResultSet rs) throws SQLException {\n\t\tCarta c = new Carta();\r\n\r\n\t\t// cogemos los valres de las columnas\r\n\t\tint colId = rs.getInt(\"id\");\r\n\t\tString colNombre = rs.getString(\"nombre\");\r\n\t\tString colNumero_id = rs.getString(\"numero_id\");\r\n\t\tString colColeccion = rs.getString(\"coleccion\");\r\n\t\tint colColeccionId = rs.getInt(\"id_coleccion\");\r\n\r\n\t\tString colTipo = rs.getString(\"tipo\");\r\n\t\tint colTipoId = rs.getInt(\"id_tipo\");\r\n\t\tString colGrado = rs.getString(\"grado\");\r\n\t\tint colGradoId = rs.getInt(\"id_grado\");\r\n\r\n\t\tint colCopias = rs.getInt(\"copias\");\r\n\r\n\t\tc.setId(colId);\r\n\t\tc.setNumero_id(colNumero_id);\r\n\t\tc.setNombre(colNombre);\r\n\t\tc.setCopias(colCopias);\r\n\r\n\t\tColeccion coleccion = new Coleccion();\r\n\t\tcoleccion.setId(colColeccionId);\r\n\t\tcoleccion.setNombre(colColeccion);\r\n\t\tc.setColeccion(coleccion);\r\n\r\n\t\tTipo tipo = new Tipo();\r\n\t\ttipo.setId(colTipoId);\r\n\t\ttipo.setNombre(colTipo);\r\n\t\tc.setTipo(tipo);\r\n\r\n\t\tGrado grado = new Grado();\r\n\t\tgrado.setId(colGradoId);\r\n\t\tgrado.setNombre(colGrado);\r\n\t\tc.setGrado(grado);\r\n\r\n\t\treturn c;\r\n\t}", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Dao\npublic interface CarDao {\n\n @Query(\"SELECT * FROM car\")\n List<Car> getAll();\n\n @Insert\n void insertAll(Car... cars);\n\n @Delete\n void delete(Car car);\n\n @Update\n void update(Car... cars);\n\n @Query(\"SELECT * FROM car WHERE chassisCode = :chassisCode\")\n Car findByChassisCode(String chassisCode);\n}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public List<Carro> getCarros(){\n\t\t\n\t\ttry {\t\t\t\n\t\t\tList<Carro> carros = db.getCarros();\n\t\t\treturn carros;\n\t\t\t\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn new ArrayList<>();\n\t\t}\n\t\t\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "public void formDatabaseTable() {\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public Circle mapRow(ResultSet rs, int rowNum) throws SQLException {\n Circle circle = new Circle();\n circle.setId(rs.getInt(\"ID\"));\n circle.setName(rs.getString(\"NAME\"));\n return circle;\n }", "public void populateCustomerTable() throws SQLException {\n\n try {\n\n PreparedStatement populateCustomerTableview = DBConnection.getConnection().prepareStatement(\"SELECT * from customers\");\n ResultSet resultSet = populateCustomerTableview.executeQuery();\n allCustomers.removeAll();\n\n while (resultSet.next()) {\n\n int customerID = resultSet.getInt(\"Customer_ID\");\n String name = resultSet.getString(\"Customer_Name\");\n String address = resultSet.getString(\"Address\");\n String postal = resultSet.getString(\"Postal_Code\");\n String phone = resultSet.getString(\"Phone\");\n String created = resultSet.getString(\"Create_Date\");\n String createdBy = resultSet.getString(\"Created_By\");\n String lastUpdate = resultSet.getString(\"Last_Update\");\n String updatedBy = resultSet.getString(\"Last_Updated_By\");\n String divisionID = resultSet.getString(\"Division_ID\");\n\n Customer newCustomer = new Customer(customerID, name, address, postal, phone, created, createdBy, lastUpdate,\n updatedBy, divisionID);\n\n allCustomers.add(newCustomer);\n }\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "TdxCompanyTaxArrears selectByPrimaryKey(Integer id);", "@Component\n@Mapper\npublic interface CreativeDao {\n String TABLE_NAME=\" ad_user \";\n String INSERT_FIELDS=\" name,type,material_type,height,width,size,duration,audit_status,\" +\n \"user_id,url,create_time,update_time \";\n String SELECT_FIELDS=\" id,\"+INSERT_FIELDS;\n @Insert({\"insert\",TABLE_NAME,\"(\",INSERT_FIELDS,\") values (name=#{name},type=#{type},material_type=#{materialType}\" +\n \",height=#{height},width=#{width),size=#{size},duration=#{duration},audit_status=#{audit_status},\" +\n \"user_id=#{user_id},url=#{url},create_time=#{create_time},update_time=#{update_time}\"})\n int insertCreative(Creative creative);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where user_id=#{userId}\"})\n Creative selectCreativeByUserId(Long userId);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where id=#{id}\"})\n Creative selectById(@Param(\"id\")Long id);\n default List<Creative> selectAllById(List<Long> ids){\n List<Creative> creatives=new ArrayList<>();\n for (Long id:ids) {\n creatives.add(selectById(id));\n }\n return creatives;\n }\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME})\n List<Creative> selectAll();\n}", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "public CursosTable() {\n \n \n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public interface CProductoMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" productos.id as recid,\"\r\n + \" productos.codigo,\"\r\n + \" productos.descripcion,\"\r\n + \" productos.unidad_produccion as unidadProductiva, \"\r\n + \" unidades_productivas.codigo AS codigoUnidadProduccion \"\r\n + \"FROM productos \"\r\n + \"LEFT JOIN unidades_productivas ON \"\r\n + \"unidades_productivas.id = productos.unidad_produccion\";\r\n \r\n static final String FIND_BY_CODE = \"SELECT \"\r\n + \" productos.id \"\r\n + \"FROM productos WHERE productos.codigo = #{code}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los productos existentes\r\n * @return lista de productos\r\n */\r\n @Select(FIND_ALL)\r\n public List<CProducto> findAll(); \r\n \r\n /**\r\n * Query que me permite ubicar un registro de la tabla de productos a partir de\r\n * un código. \r\n * @param code el código bajo el cual se busca\r\n * @return el id del registro.\r\n */\r\n @Select(FIND_BY_CODE)\r\n public Long findByCode(String code);\r\n}", "public interface RoleMapper extends RoleDao {\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE id = #{id}\")\n Role getRole(int id);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE name = #{name}\")\n Role getRoleByName(String name);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role ORDER BY name\")\n List<Role> getAllRoles();\n\n @Override\n @Insert(\"INSERT INTO role (name) VALUES(#{name})\")\n @Options(useGeneratedKeys = true)\n void addRole(Role role);\n\n @Override\n @Delete(\"DELETE FROM role WHERE id =#{id}\")\n void removeRole(Role role);\n}", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "List<Bill> all() throws SQLException;", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "private ObservableList<CarComponent> cartTable() {\n ObservableList<CarComponent> carComps = FXCollections.observableArrayList();\n\n for (CarComponent carComponent : componentsCart) {\n compTypeColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compType\"));\n compNameColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compName\"));\n compPriceColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Double>(\"compPrice\"));\n compQuantityColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Integer>(\"compQuantity\"));\n carComps.add(carComponent);\n }\n return carComps;\n }", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "public interface ResultSetColumn extends OptionContainer, RelationalObject {\n\n /**\n * Identifier of this object\n */\n KomodoType IDENTIFIER = KomodoType.RESULT_SET_COLUMN;\n\n /**\n * An empty array of columns.\n */\n ResultSetColumn[] NO_COLUMNS = new ResultSetColumn[0];\n\n /**\n * The type identifier.\n */\n int TYPE_ID = ResultSetColumn.class.hashCode();\n\n /**\n * The resolver of a {@link ResultSetColumn}.\n */\n TypeResolver< ResultSetColumn > RESOLVER = new TypeResolver< ResultSetColumn >() {\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#identifier()\n */\n @Override\n public KomodoType identifier() {\n return IDENTIFIER;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#owningClass()\n */\n @Override\n public Class< ResultSetColumnImpl > owningClass() {\n return ResultSetColumnImpl.class;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolvable(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public boolean resolvable( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n return ObjectImpl.validateType( transaction, kobject.getRepository(), kobject, CreateProcedure.RESULT_COLUMN );\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolve(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public ResultSetColumn resolve( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n if ( kobject.getTypeId() == ResultSetColumn.TYPE_ID ) {\n return ( ResultSetColumn )kobject;\n }\n\n return new ResultSetColumnImpl( transaction, kobject.getRepository(), kobject.getAbsolutePath() );\n }\n\n };\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n String getDatatypeName( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDefaultValue( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>description</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDescription( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n long getLength( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>name in source</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getNameInSource( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>nullable</code> property (never <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n Nullable getNullable( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n long getPrecision( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n long getScale( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>UUID</code> option (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getUuid( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newTypeName\n * the new value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n void setDatatypeName( final UnitOfWork transaction,\n final String newTypeName ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDefaultValue\n * the new value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n void setDefaultValue( final UnitOfWork transaction,\n final String newDefaultValue ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDescription\n * the new value of the <code>description</code> property (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setDescription( final UnitOfWork transaction,\n final String newDescription ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newLength\n * the new value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n void setLength( final UnitOfWork transaction,\n final long newLength ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNameInSource\n * the new name in source (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setNameInSource( final UnitOfWork transaction,\n final String newNameInSource ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNullable\n * the new value of the <code>nullable</code> property (can be <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n void setNullable( final UnitOfWork transaction,\n final Nullable newNullable ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newPrecision\n * the new value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n void setPrecision( final UnitOfWork transaction,\n final long newPrecision ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newScale\n * the new value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n void setScale( final UnitOfWork transaction,\n final long newScale ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newUuid\n * the new value of the <code>UUID</code> option (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setUuid( final UnitOfWork transaction,\n final String newUuid ) throws KException;\n\n}", "@Override\r\n\tpublic LinkedList<Customer> findAll() throws SQLException {\r\n\t\tLinkedList<Customer> listCustomer = new LinkedList<Customer>();\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \";\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCustomer customer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t\tlistCustomer.add(customer);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn listCustomer;\r\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public interface TermsOfReferenceDao extends AbstractDao<TermsOfReference, Integer> {\n Collection<TermsOfReference> getTermsOfReferenceWithNoProject()\n throws DataAccessException;\n\n Collection<TermsOfReference> getTermsOfReferenceByCustomer(Integer customerId)\n throws DataAccessException;\n}", "@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}", "public Courses getCourseTable();", "Movimiento selectByPrimaryKey(Integer idMovCta);", "List selectByExample(CTipoComprobanteExample example) throws SQLException;", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Transactional\r\n\tpublic List<Car> getAllCars() {\n\t\treturn (List<Car>)cr.findAll();\r\n\t}", "public interface CityRepository extends JpaRepository<CityEntity, Long>{\n}", "@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}", "public interface CanteensDao extends JpaRepository<CanteensEntity,Integer>{\n CanteensEntity queryByCanteenId(int id);\n}", "public final TradeGoods[] getCargo() {\n return cargo;\n }", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public String toString()\n {\n\tString returnString = \"\";\n\treturnString += \"[ \" + cargo + \" ][ * ]--> \";\n\treturn returnString;\n }", "@Query(\"SELECT c FROM Customer c\")\n\tList<Customer> findAll();", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n //esse passo ensina como as colunas devem receber os atributos do objeto cargo\n //A propriedade nome deve coincidir com o nome do atributo da classe cargo\n// colNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n// colDescricao.setCellValueFactory(new PropertyValueFactory<>(\"descricao\"));\n// \n// colStatus.setVisible(false);\n Field[] f = Cargo.class.getDeclaredFields();\n\n for (int i = 0; i < f.length; i++) {\n if (f[i].getName().contains(\"pk_Cargo\")) {\n continue;\n }\n TableColumn<Cargo, String> t = new TableColumn<>(f[i].getName());\n t.setCellValueFactory(new PropertyValueFactory<>(f[i].getName()));\n tvCargo.getColumns().add(t);\n }\n\n tvCargo.setItems(FXCollections.observableArrayList(CargosDAO.retreaveAll()));\n }", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "@Override\n\tpublic void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {\n\t}", "public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}", "@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();" ]
[ "0.5904964", "0.55730635", "0.5375608", "0.53753227", "0.52559406", "0.5254475", "0.52168435", "0.51928604", "0.5173352", "0.511047", "0.5106857", "0.5090345", "0.5074903", "0.50664216", "0.506069", "0.49963862", "0.4977458", "0.49768466", "0.4973573", "0.49645814", "0.49603578", "0.4956259", "0.49524438", "0.4936299", "0.4934582", "0.49317497", "0.49255753", "0.49114132", "0.48907062", "0.48857546", "0.48794466", "0.48694265", "0.485182", "0.4847842", "0.48387367", "0.4833526", "0.48293802", "0.48079246", "0.4801289", "0.47664365", "0.47645435", "0.47638264", "0.47624344", "0.47623473", "0.47577107", "0.47487745", "0.47472754", "0.47428632", "0.47282246", "0.4728197", "0.47278786", "0.47272304", "0.47184858", "0.4715073", "0.47130895", "0.47123125", "0.47087428", "0.47037748", "0.46960062", "0.46949273", "0.4692577", "0.46894038", "0.4687547", "0.4686436", "0.46861377", "0.46811563", "0.46741325", "0.4671066", "0.46707636", "0.4668658", "0.46654427", "0.46576595", "0.4657325", "0.4652792", "0.46527866", "0.46480337", "0.46471488", "0.46434116", "0.46417394", "0.4640865", "0.46335116", "0.46270806", "0.46251416", "0.46250442", "0.46246672", "0.46223348", "0.46211523", "0.46174088", "0.46164462", "0.46147633", "0.46091762", "0.46035168", "0.46014968", "0.45998177", "0.4597627", "0.45933628", "0.45921108", "0.45898396", "0.45884752", "0.45875204", "0.45871207" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table cargo
int updateByPrimaryKey(Cargo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Cargo selectByPrimaryKey(Integer idCargo);", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "public Vector obtenerListaCagoBuscarIdCargo(int idCargo) throws SQLException {\n Vector listaCargo = new Vector();\n String sql = \"Select idCargo, idDocumento, numeroDocumento, Documento, \"\n + \"Fecha FechaCargo, Hora HoraCargo, Area AreaCargo, Asunto, Institucion, Recepcionista, estadoCargo From vCargoDocumento Where idCargo = \"+ idCargo;\n st = con.createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n Vector ovCargo = new Vector();\n ovCargo.add(rs.getInt(1));\n ovCargo.add(rs.getInt(2));\n ovCargo.add(rs.getString(3));\n ovCargo.add(rs.getString(4));\n ovCargo.add(rs.getString(5));\n ovCargo.add(rs.getString(6));\n ovCargo.add(rs.getString(7));\n ovCargo.add(rs.getString(8));\n ovCargo.add(rs.getString(9));\n ovCargo.add(rs.getString(10));\n ovCargo.add(rs.getInt(11));\n// System.out.println(rs.getInt(1));\n// System.out.println(rs.getInt(2));\n// System.out.println(rs.getInt(3));\n// System.out.println(rs.getInt(4));\n// System.out.println(rs.getInt(5));\n// System.out.println(rs.getInt(6));\n// System.out.println(rs.getInt(7));\n// System.out.println(rs.getInt(8));\n// System.out.println(rs.getInt(9));\n// System.out.println(rs.getInt(10));\n// System.out.println(rs.getInt(11));\n listaCargo.add(ovCargo);\n }\n return listaCargo;\n }", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n List<Purchase> selectAll();", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}", "County selectByPrimaryKey(Long id);", "public List<Courtyard> findCourtyardAll() {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tList<Courtyard> courtyards = courtyardMapper.findCourtyardAll();\n\t\tSystem.out.println(\"--Into Dao Method of findCourtyardAll!!!--\");\n\t\treturn courtyards;\n\t}", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "@Override\r\n\tpublic Cargo get(String matricula) throws SQLException {\n\t\treturn null;\r\n\t}", "TbCities selectByPrimaryKey(Long id);", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "List<Cargo> getCargoesForOrder(OrderDTO orderDTO);", "@Override\n public List<Cours> afficherTousLesCours() {\n return coursRepo.findAll();\n }", "public List<CustomerPurchase> getAll() throws SQLException;", "@GetMapping(\"/cargos\")\n @Timed\n public List<Cargo> getAllCargos() {\n log.debug(\"REST request to get all Cargos\");\n return cargoRepository.findAll();\n }", "public Cargo buscaCargo(String strCargo) {\r\n\t\tCargo cargo = null;\r\n\t\tcargo = (Cargo) em.createNamedQuery(\"buscaCargoPorNome\")\r\n\t\t\t\t.setParameter(1, strCargo).getSingleResult();\r\n\t\treturn cargo;\r\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "CityDO selectByPrimaryKey(Integer id);", "List<OcCustContract> selectAll();", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "List<Cargo> selectByExample(CargoExample example);", "@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "Tablero consultarTablero();", "VentaJPA obtenerVenta(int comprobante);", "@Override\n\tpublic List<Cours> allCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours\");\n\t\treturn q.getResultList();\n\t}", "@Dao\npublic interface CarrierDao {\n\n @Query(\"SELECT * FROM geo_carrier\")\n Cursor selectAll();\n\n @Query(\"SELECT * FROM geo_carrier WHERE number_prefix_3 = :numberPrefix3\")\n Cursor selectByNumberPrefix3(String numberPrefix3);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(CarrierEntity carrier);\n\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic Curso findCrusoByAlumnoId(Long id) {\n\t\treturn repository.findCrusoByAlumnoId(id);\n\t}", "@Bean\n public TypeMap<Cargo, Cargo> getCargoCargoTypeMap() {\n return getModelMapper().createTypeMap(Cargo.class, Cargo.class)\n .addMappings(mapper -> mapper.skip(Cargo::setId))\n .addMappings(mapper -> mapper.skip(Cargo::setNumber))\n .addMappings(mapper -> mapper.skip(Cargo::setCreateDate))\n .addMappings(mapper -> mapper.skip(Cargo::setUpdateDate))\n\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getName, Cargo::setName))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getState, Cargo::setState))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getWeight, Cargo::setWeight))\n .addMappings(mapper -> mapper.when(isNotNull()).map(Cargo::getDescription, Cargo::setDescription))\n\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDepartureWaypoint, Cargo::setDepartureWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getDestinationWaypoint, Cargo::setDestinationWaypoint))\n .addMappings(mapper -> mapper.using(MappingContext::getDestination).map(Cargo::getCarriage, Cargo::setCarriage));\n }", "@Mapper\npublic interface CompanyUserInfoDAO {\n\n @Select(\"SELECT * FROM company_user_info WHERE sales_id=#{sales_id} ORDER BY add_time DESC\")\n List<CompanyUserInfoDTO> findCompanyUserInfoBySalesId(@Param(\"sales_id\") Long sales_id);\n\n}", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "T buidEntity(ResultSet rs) throws SQLException;", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "@Override\n\tpublic Curso mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t/* Se declara e instancia el objeto Persona.*/\n\t\tCurso curso = new Curso();\n\t\t/* Se recoje el identificador de curso del result.*/\n\t\tcurso.setId(rs.getInt(\"id\"));\n\t\t/* Se recoje el codigo de curso del result.*/\n\t\tcurso.setCodigo(rs.getString(\"codigo\"));\n\t\t/* Se recoje el nombre de la curso del result.*/\n\t\tcurso.setNombre(rs.getString(\"nombre\"));\n\t\t\n\t\t\n\t\t/* Se devuelve el objeto Persona.*/\n\t\treturn curso;\n\t}", "CGcontractCredit selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "List<Corretor> findAll();", "private static Carta mapper(ResultSet rs) throws SQLException {\n\t\tCarta c = new Carta();\r\n\r\n\t\t// cogemos los valres de las columnas\r\n\t\tint colId = rs.getInt(\"id\");\r\n\t\tString colNombre = rs.getString(\"nombre\");\r\n\t\tString colNumero_id = rs.getString(\"numero_id\");\r\n\t\tString colColeccion = rs.getString(\"coleccion\");\r\n\t\tint colColeccionId = rs.getInt(\"id_coleccion\");\r\n\r\n\t\tString colTipo = rs.getString(\"tipo\");\r\n\t\tint colTipoId = rs.getInt(\"id_tipo\");\r\n\t\tString colGrado = rs.getString(\"grado\");\r\n\t\tint colGradoId = rs.getInt(\"id_grado\");\r\n\r\n\t\tint colCopias = rs.getInt(\"copias\");\r\n\r\n\t\tc.setId(colId);\r\n\t\tc.setNumero_id(colNumero_id);\r\n\t\tc.setNombre(colNombre);\r\n\t\tc.setCopias(colCopias);\r\n\r\n\t\tColeccion coleccion = new Coleccion();\r\n\t\tcoleccion.setId(colColeccionId);\r\n\t\tcoleccion.setNombre(colColeccion);\r\n\t\tc.setColeccion(coleccion);\r\n\r\n\t\tTipo tipo = new Tipo();\r\n\t\ttipo.setId(colTipoId);\r\n\t\ttipo.setNombre(colTipo);\r\n\t\tc.setTipo(tipo);\r\n\r\n\t\tGrado grado = new Grado();\r\n\t\tgrado.setId(colGradoId);\r\n\t\tgrado.setNombre(colGrado);\r\n\t\tc.setGrado(grado);\r\n\r\n\t\treturn c;\r\n\t}", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Dao\npublic interface CarDao {\n\n @Query(\"SELECT * FROM car\")\n List<Car> getAll();\n\n @Insert\n void insertAll(Car... cars);\n\n @Delete\n void delete(Car car);\n\n @Update\n void update(Car... cars);\n\n @Query(\"SELECT * FROM car WHERE chassisCode = :chassisCode\")\n Car findByChassisCode(String chassisCode);\n}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public List<Carro> getCarros(){\n\t\t\n\t\ttry {\t\t\t\n\t\t\tList<Carro> carros = db.getCarros();\n\t\t\treturn carros;\n\t\t\t\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn new ArrayList<>();\n\t\t}\n\t\t\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "public void formDatabaseTable() {\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public Circle mapRow(ResultSet rs, int rowNum) throws SQLException {\n Circle circle = new Circle();\n circle.setId(rs.getInt(\"ID\"));\n circle.setName(rs.getString(\"NAME\"));\n return circle;\n }", "TdxCompanyTaxArrears selectByPrimaryKey(Integer id);", "public void populateCustomerTable() throws SQLException {\n\n try {\n\n PreparedStatement populateCustomerTableview = DBConnection.getConnection().prepareStatement(\"SELECT * from customers\");\n ResultSet resultSet = populateCustomerTableview.executeQuery();\n allCustomers.removeAll();\n\n while (resultSet.next()) {\n\n int customerID = resultSet.getInt(\"Customer_ID\");\n String name = resultSet.getString(\"Customer_Name\");\n String address = resultSet.getString(\"Address\");\n String postal = resultSet.getString(\"Postal_Code\");\n String phone = resultSet.getString(\"Phone\");\n String created = resultSet.getString(\"Create_Date\");\n String createdBy = resultSet.getString(\"Created_By\");\n String lastUpdate = resultSet.getString(\"Last_Update\");\n String updatedBy = resultSet.getString(\"Last_Updated_By\");\n String divisionID = resultSet.getString(\"Division_ID\");\n\n Customer newCustomer = new Customer(customerID, name, address, postal, phone, created, createdBy, lastUpdate,\n updatedBy, divisionID);\n\n allCustomers.add(newCustomer);\n }\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "@Component\n@Mapper\npublic interface CreativeDao {\n String TABLE_NAME=\" ad_user \";\n String INSERT_FIELDS=\" name,type,material_type,height,width,size,duration,audit_status,\" +\n \"user_id,url,create_time,update_time \";\n String SELECT_FIELDS=\" id,\"+INSERT_FIELDS;\n @Insert({\"insert\",TABLE_NAME,\"(\",INSERT_FIELDS,\") values (name=#{name},type=#{type},material_type=#{materialType}\" +\n \",height=#{height},width=#{width),size=#{size},duration=#{duration},audit_status=#{audit_status},\" +\n \"user_id=#{user_id},url=#{url},create_time=#{create_time},update_time=#{update_time}\"})\n int insertCreative(Creative creative);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where user_id=#{userId}\"})\n Creative selectCreativeByUserId(Long userId);\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME,\"where id=#{id}\"})\n Creative selectById(@Param(\"id\")Long id);\n default List<Creative> selectAllById(List<Long> ids){\n List<Creative> creatives=new ArrayList<>();\n for (Long id:ids) {\n creatives.add(selectById(id));\n }\n return creatives;\n }\n @Select({\"select\",SELECT_FIELDS,\"from\",TABLE_NAME})\n List<Creative> selectAll();\n}", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "public CursosTable() {\n \n \n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public interface CProductoMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" productos.id as recid,\"\r\n + \" productos.codigo,\"\r\n + \" productos.descripcion,\"\r\n + \" productos.unidad_produccion as unidadProductiva, \"\r\n + \" unidades_productivas.codigo AS codigoUnidadProduccion \"\r\n + \"FROM productos \"\r\n + \"LEFT JOIN unidades_productivas ON \"\r\n + \"unidades_productivas.id = productos.unidad_produccion\";\r\n \r\n static final String FIND_BY_CODE = \"SELECT \"\r\n + \" productos.id \"\r\n + \"FROM productos WHERE productos.codigo = #{code}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los productos existentes\r\n * @return lista de productos\r\n */\r\n @Select(FIND_ALL)\r\n public List<CProducto> findAll(); \r\n \r\n /**\r\n * Query que me permite ubicar un registro de la tabla de productos a partir de\r\n * un código. \r\n * @param code el código bajo el cual se busca\r\n * @return el id del registro.\r\n */\r\n @Select(FIND_BY_CODE)\r\n public Long findByCode(String code);\r\n}", "public interface RoleMapper extends RoleDao {\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE id = #{id}\")\n Role getRole(int id);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE name = #{name}\")\n Role getRoleByName(String name);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role ORDER BY name\")\n List<Role> getAllRoles();\n\n @Override\n @Insert(\"INSERT INTO role (name) VALUES(#{name})\")\n @Options(useGeneratedKeys = true)\n void addRole(Role role);\n\n @Override\n @Delete(\"DELETE FROM role WHERE id =#{id}\")\n void removeRole(Role role);\n}", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "List<Bill> all() throws SQLException;", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "private ObservableList<CarComponent> cartTable() {\n ObservableList<CarComponent> carComps = FXCollections.observableArrayList();\n\n for (CarComponent carComponent : componentsCart) {\n compTypeColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compType\"));\n compNameColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, String>(\"compName\"));\n compPriceColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Double>(\"compPrice\"));\n compQuantityColumn.setCellValueFactory(new PropertyValueFactory<CarComponent, Integer>(\"compQuantity\"));\n carComps.add(carComponent);\n }\n return carComps;\n }", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "public interface ResultSetColumn extends OptionContainer, RelationalObject {\n\n /**\n * Identifier of this object\n */\n KomodoType IDENTIFIER = KomodoType.RESULT_SET_COLUMN;\n\n /**\n * An empty array of columns.\n */\n ResultSetColumn[] NO_COLUMNS = new ResultSetColumn[0];\n\n /**\n * The type identifier.\n */\n int TYPE_ID = ResultSetColumn.class.hashCode();\n\n /**\n * The resolver of a {@link ResultSetColumn}.\n */\n TypeResolver< ResultSetColumn > RESOLVER = new TypeResolver< ResultSetColumn >() {\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#identifier()\n */\n @Override\n public KomodoType identifier() {\n return IDENTIFIER;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#owningClass()\n */\n @Override\n public Class< ResultSetColumnImpl > owningClass() {\n return ResultSetColumnImpl.class;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolvable(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public boolean resolvable( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n return ObjectImpl.validateType( transaction, kobject.getRepository(), kobject, CreateProcedure.RESULT_COLUMN );\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolve(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public ResultSetColumn resolve( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n if ( kobject.getTypeId() == ResultSetColumn.TYPE_ID ) {\n return ( ResultSetColumn )kobject;\n }\n\n return new ResultSetColumnImpl( transaction, kobject.getRepository(), kobject.getAbsolutePath() );\n }\n\n };\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n String getDatatypeName( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDefaultValue( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>description</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDescription( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n long getLength( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>name in source</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getNameInSource( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>nullable</code> property (never <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n Nullable getNullable( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n long getPrecision( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n long getScale( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>UUID</code> option (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getUuid( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newTypeName\n * the new value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n void setDatatypeName( final UnitOfWork transaction,\n final String newTypeName ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDefaultValue\n * the new value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n void setDefaultValue( final UnitOfWork transaction,\n final String newDefaultValue ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDescription\n * the new value of the <code>description</code> property (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setDescription( final UnitOfWork transaction,\n final String newDescription ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newLength\n * the new value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n void setLength( final UnitOfWork transaction,\n final long newLength ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNameInSource\n * the new name in source (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setNameInSource( final UnitOfWork transaction,\n final String newNameInSource ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNullable\n * the new value of the <code>nullable</code> property (can be <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n void setNullable( final UnitOfWork transaction,\n final Nullable newNullable ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newPrecision\n * the new value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n void setPrecision( final UnitOfWork transaction,\n final long newPrecision ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newScale\n * the new value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n void setScale( final UnitOfWork transaction,\n final long newScale ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newUuid\n * the new value of the <code>UUID</code> option (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setUuid( final UnitOfWork transaction,\n final String newUuid ) throws KException;\n\n}", "@Override\r\n\tpublic LinkedList<Customer> findAll() throws SQLException {\r\n\t\tLinkedList<Customer> listCustomer = new LinkedList<Customer>();\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \";\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCustomer customer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t\tlistCustomer.add(customer);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn listCustomer;\r\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public interface TermsOfReferenceDao extends AbstractDao<TermsOfReference, Integer> {\n Collection<TermsOfReference> getTermsOfReferenceWithNoProject()\n throws DataAccessException;\n\n Collection<TermsOfReference> getTermsOfReferenceByCustomer(Integer customerId)\n throws DataAccessException;\n}", "Movimiento selectByPrimaryKey(Integer idMovCta);", "public Courses getCourseTable();", "@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}", "List selectByExample(CTipoComprobanteExample example) throws SQLException;", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Transactional\r\n\tpublic List<Car> getAllCars() {\n\t\treturn (List<Car>)cr.findAll();\r\n\t}", "public interface CityRepository extends JpaRepository<CityEntity, Long>{\n}", "@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}", "public interface CanteensDao extends JpaRepository<CanteensEntity,Integer>{\n CanteensEntity queryByCanteenId(int id);\n}", "public final TradeGoods[] getCargo() {\n return cargo;\n }", "public String toString()\n {\n\tString returnString = \"\";\n\treturnString += \"[ \" + cargo + \" ][ * ]--> \";\n\treturn returnString;\n }", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "@Query(\"SELECT c FROM Customer c\")\n\tList<Customer> findAll();", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n //esse passo ensina como as colunas devem receber os atributos do objeto cargo\n //A propriedade nome deve coincidir com o nome do atributo da classe cargo\n// colNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n// colDescricao.setCellValueFactory(new PropertyValueFactory<>(\"descricao\"));\n// \n// colStatus.setVisible(false);\n Field[] f = Cargo.class.getDeclaredFields();\n\n for (int i = 0; i < f.length; i++) {\n if (f[i].getName().contains(\"pk_Cargo\")) {\n continue;\n }\n TableColumn<Cargo, String> t = new TableColumn<>(f[i].getName());\n t.setCellValueFactory(new PropertyValueFactory<>(f[i].getName()));\n tvCargo.getColumns().add(t);\n }\n\n tvCargo.setItems(FXCollections.observableArrayList(CargosDAO.retreaveAll()));\n }", "public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }", "@Override\n\tpublic void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {\n\t}", "public List<Good> getCargo() {\n return cargo;\n }", "public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();" ]
[ "0.5905415", "0.5572017", "0.53757757", "0.53755826", "0.52548414", "0.52535844", "0.5216436", "0.51930636", "0.51731247", "0.5110516", "0.51073325", "0.5089412", "0.5074294", "0.5065202", "0.5059454", "0.4996471", "0.49776092", "0.4976169", "0.497482", "0.4964934", "0.49602285", "0.49560887", "0.49518162", "0.4936161", "0.49332425", "0.4931437", "0.4925473", "0.49108458", "0.4891333", "0.48855186", "0.48790336", "0.4869521", "0.48503548", "0.4846791", "0.48362994", "0.48338488", "0.4830089", "0.48075992", "0.48008752", "0.47664928", "0.47649902", "0.4763299", "0.47630817", "0.47620496", "0.4756696", "0.47482252", "0.47453442", "0.474162", "0.47283223", "0.4727951", "0.47278157", "0.47266", "0.47197336", "0.47141606", "0.47131082", "0.47118804", "0.47092706", "0.47042626", "0.4695176", "0.46935153", "0.46922913", "0.46890002", "0.4686203", "0.4685662", "0.46852612", "0.4680848", "0.46734196", "0.46706828", "0.46692726", "0.46682063", "0.46640706", "0.465771", "0.4656814", "0.4653627", "0.4653331", "0.46490005", "0.4645754", "0.4642756", "0.46427438", "0.46403542", "0.46326742", "0.46269944", "0.4624304", "0.46239933", "0.4623847", "0.46216908", "0.462097", "0.461793", "0.4616371", "0.46152684", "0.46102986", "0.46055242", "0.46018335", "0.46008047", "0.45979476", "0.4593827", "0.45910513", "0.45891622", "0.45887622", "0.4588344", "0.45873848" ]
0.0
-1
Use instead of null checking next(kit).
public static boolean hasNext(Kit kit) { if(queue.get(kit) == null) return false; if(queue.get(kit).size() < 2) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic T next() {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic Object next() {\n\t\treturn null;\n\t}", "boolean usesNext() {\n return next != null;\n }", "public T next()\n {\n // TODO: implement this method\n return null;\n }", "protected Sampler nextIsNull() throws NextIsNullException {\n reInitialize();\n return null;\n }", "@Override\n\tpublic Coffee next() {\n\t\treturn null;\n\t}", "void next();", "@Override\r\n\tpublic void next() {\n\n\t}", "@Override\n\tpublic void next() {\n\t\t\n\t}", "public void next();", "public void next();", "@Override\n\tpublic void next()\n\t{\n\n\t}", "public void next() {\n\t\t}", "public boolean next () throws Exception;", "public abstract void next();", "IEmpleado next();", "public abstract void next ();", "@Test\n public void nextTest() {\n this.it.next();\n this.it.next();\n assertThat(\"work3\", is(this.it.next()));\n }", "public K next();", "@Override\n public T next() {\n T n = null;\n if (hasNext()) {\n // Give it to them.\n n = next;\n next = null;\n // Step forward.\n it = it.next;\n stop -= 1;\n } else {\n // Not there!!\n throw new NoSuchElementException();\n }\n return n;\n }", "public abstract boolean next();", "public abstract boolean next();", "T next();", "@Override\n\tpublic Entry<K,V> next() throws NoSuchElementException {\n\t\treturn null;\n\t}", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "public void nextHard() {\n\t\titerator.next();\n\t}", "public abstract T next() throws NoSuchElementException;", "public void Next();", "@Override\n\tpublic Integer nextCandidate() {\n\t\treturn null;\n\t}", "public abstract T next();", "@Override\n E next();", "public Object next();", "public Object next();", "@Override\n\t\t\t\t\tpublic void onNext(Object p1) {\n\t\t\t\t\t}", "private boolean checkCurrentIterator(Iterator<Integer> iter) {\n return iter != null;\n }", "@Override\n public String next() {\n return bikes[currentIndex++];\n }", "@Override\r\n\t\t\tpublic T next() {\n\t\t\t\treturn sentinel.getValue();\r\n\t\t\t}", "@Override\n public NestedData next() {\n NestedQuest node = queue.remove();\n queue.addAll(node.children);\n\n return\n node.data;\n }", "@Override\r\n\t\tpublic Package next() {\r\n\t\t\tif (first.next == null)\r\n\t\t\t\treturn null;\r\n\t\t\telse\r\n\t\t\t\treturn first.next;\r\n\r\n\t\t}", "void next(T value);", "private void prepareNext() {\n this.hasNext = false;\n while (!this.hasNext && this.nodesIterator.hasNext()) {\n this.next = this.nodesIterator.next();\n this.hasNext = this.computeHasNext();\n }\n }", "protected TestElement getCurrentElement() throws NextIsNullException {\n if (current < subControllersAndSamplers.size()) {\n return subControllersAndSamplers.get(current);\n }\n if (subControllersAndSamplers.size() == 0) {\n setDone(true);\n throw new NextIsNullException();\n }\n return null;\n }", "public abstract Map<String, Node> next() throws TrippiException;", "private void findNext() {\n \tthis.find(true);\n }", "public Pageable next() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public SkipListIterator(SkipListNode<K> head) {\n\ttargetHead = head;\n\tcurrent = targetHead.next(0);\n }", "@Override\n public MessageProcessor next() {\n return null;\n }", "private static void iterator() {\n\t\t\r\n\t}", "public static void initNext() { //ініціалізація лічильника нульовим значенням\n next = 0;\n }", "public K next()\n {\n\tif (hasNext()) {\n\t K element = current.data();\n\t current = current.next(0);\n\t return element; \n\t} else {\n\t return null; \n\t}\n }", "@Override\n\tpublic Iterator<K> iterator() {\n\t\treturn null;\n\t}", "@Override\npublic Tuple get_next() throws IOException, JoinsException, IndexException, InvalidTupleSizeException,\n\t\tInvalidTypeException, PageNotReadException, TupleUtilsException, PredEvalException, SortException,\n\t\tLowMemException, UnknowAttrType, UnknownKeyTypeException, Exception {\n\treturn null;\n}", "public boolean next() throws StandardException;", "private boolean hasNext(){\n return current !=null;\n\n }", "public final T next()\n {\n return skip(1);\n }", "public T next();", "public T next();", "K first();", "private void kk12() {\n\n\t}", "boolean nextItem();", "public ListNode findK(ListNode head,int k) {\n\t\tListNode fast,slow;\n\t\tfast=slow=head;\n\t\t//Move Kth first\n\t\twhile (k-->0) {\n\t\t\tfast=fast.next();\n\t\t}\n\t\twhile(fast!=null & fast.next()!=null) {\n\t\t\tfast=fast.next();\n\t\t\tslow=slow.next();\t\t\n\t\t}\n\t\treturn slow;\n\t}", "static Node reserveIterativeTraversal(MyLinkedList l, int k) {\n\t\tNode p1 = l.getHead();\n\t\tNode p2 = l.getHead();\n\t\t\n\t\tfor(int i = 0; i < k; i++) \n\t\t\tp1 = p1.getNext();\n\t\t\t\n\t\twhile(p1.getNext() != null) {\n\t\t\tp1 = p1.getNext();\n\t\t\tp2 = p2.getNext();\n\t\t}\n\t\t\n\t\treturn p2;\n\t}", "int next();", "public void _next() {\n Object o;\n try {\n o = iter.next();\n } catch (NoSuchElementException e) {\n has_next = 0;\n return;\n }\n // resolve object\n if (o == null) {\n has_next = 1;\n next = null;\n } else if (o instanceof IdentityIF) {\n try {\n o = txn.getObject((IdentityIF)o, true);\n if (o == null) {\n _next();\n } else {\n has_next = 1;\n next = (F) o;\n }\n } catch (Throwable t) {\n has_next = -1;\n next = null;\n }\n } else {\n has_next = 1;\n next = (F) o;\n }\n }", "@Override \r\n\tpublic LLNode<T> next() throws NoSuchElementException{\r\n\t\tLLNode<T> node = nodeptr;\r\n\t\tif (nodeptr == null)\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\tnodeptr = nodeptr.getNext();\r\n\t\treturn node;\r\n\t}", "public ReturnKthToLast() {\n\t\thead = null;\n\t}", "@Override\n\t\tpublic T1 next() {\n\t\t\treturn (T1)_items[getindex(++_current)];\n\t\t}", "@Override\n\t\tpublic String next() {\n\t\t\tString ret=null;\n\t\t\twhile(!this.stack.isEmpty() && localRoot!=null){\n\t\t\t\n\t\t\t}\n\t\t\treturn null ;\n\t\t}", "private boolean checkNext(){\n boolean ret = this.hasNext;\n if ((this.allStatesIterator.hasNext()) || (this.allSubsetsIterator.hasNext()) || (this.allTransitionsIterator.hasNext())){\n hasNext = true;\n return hasNext;\n }\n hasNext = false;\n return ret;\n }", "@Override\npublic Iterator<Key> iterator() {\n\treturn null;\n}", "@Override\n public boolean hasNext() {\n return next != null;\n }", "void loadNext();", "private ListNode haveLoop(ListNode head4) {\n if (head4 == null || head4.next == null) {\n return null;\n }\n\n ListNode fast = head4;\n ListNode slow = head4;\n\n while (fast.next != null && fast.next.next !=null) {\n fast = fast.next.next;\n\n slow = slow.next;\n\n if (fast == slow) {\n return fast;\n }\n }\n\n return null;\n }", "private void getNextReady() {\n if (!iter.hasNext())\n nextItem = null;\n else {\n Map.Entry<T, Counter> entry = iter.next();\n nextItem = entry.getKey();\n remainingItemCount = entry.getValue();\n }\n }", "@Override\n public void onNext(Void aVoid) {\n }", "@Test\n public void test20() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1341,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test20\");\n IIOMetadataNode iIOMetadataNode0 = new IIOMetadataNode(\"\");\n iIOMetadataNode0.getParentNode();\n // Undeclared exception!\n try {\n IteratorUtils.nodeListIterator((Node) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Node must not be null\n //\n }\n }", "public abstract void goNext();", "public Object next()\n/* */ {\n/* 93 */ if (this.m_offset < this.m_array.length) {\n/* 94 */ Object localObject = this.m_array[this.m_offset];\n/* 95 */ advance();\n/* 96 */ return localObject;\n/* */ }\n/* 98 */ throw new NoSuchElementException();\n/* */ }", "public IR\n next();", "public void testHasNext() {\r\n System.out.println(\"hasNext\");\r\n // tested in testNext()\r\n }", "T nextBlock() throws IOException, NoSuchElementException;", "@Override\n public Integer next() {\n Integer result = null;\n if (checkCurrentIterator(this.currentIterator) && this.currentIterator.hasNext()) {\n while (this.currentIterator.hasNext()) {\n return this.currentIterator.next();\n }\n } else if (it.hasNext()) {\n this.currentIterator = getIterator(it);\n return this.next();\n }\n return result;\n }", "private E next() {\n\t\tif (hasNext()) {\n\t\t\tE temp = iterator.data;\n\t\t\titerator = iterator.next;\n\t\t\treturn temp;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public void traverseExcludeSelf(INext<T> next){\n if(next==null){\n return;\n }\n traverse(this,next,false);\n }", "@Override public T next() {\n T elem = null;\n if (hasNext()) {\n Nodo<T> nodo = pila.pop();\n elem = nodo.elemento;\n nodo = nodo.derecho;\n while(nodo != null){\n pila.push(nodo);\n nodo = nodo.izquierdo;\n }\n return elem;\n }\n return elem;\n }", "private BasicBlock getUniqueNext(ControlFlowGraph graph, HashSet<BasicBlock[]> setNext) {\n\t\t\n\t\tBasicBlock next = null;\n\t\tboolean multiple = false;\n\t\t\n\t\tfor(BasicBlock[] arr : setNext) {\n\t\t\t\n\t\t\tif(arr[2] != null) {\n\t\t\t\tnext = arr[1];\n\t\t\t\tmultiple = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif(next == null) {\n\t\t\t\t\tnext = arr[1];\n\t\t\t\t} else if(next != arr[1]) {\n\t\t\t\t\tmultiple = true;\n\t\t\t\t}\n\n\t\t\t\tif(arr[1].getPreds().size() == 1) {\n\t\t\t\t\tnext = arr[1];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(multiple) { // TODO: generic solution\n\t\t\tfor(BasicBlock[] arr : setNext) {\n\t\t\t\tBasicBlock block = arr[1];\n\t\t\t\t\n\t\t\t\tif(block != next) {\n\t\t\t\t\tif(InterpreterUtil.equalSets(next.getSuccs(), block.getSuccs())) {\n\t\t\t\t\t\tInstructionSequence seqNext = next.getSeq();\n\t\t\t\t\t\tInstructionSequence seqBlock = block.getSeq();\n\n\t\t\t\t\t\tif(seqNext.length() == seqBlock.length()) {\n\t\t\t\t\t\t\tfor(int i=0;i<seqNext.length();i++) {\n\t\t\t\t\t\t\t\tInstruction instrNext = seqNext.getInstr(i);\n\t\t\t\t\t\t\t\tInstruction instrBlock = seqBlock.getInstr(i);\n\n\t\t\t\t\t\t\t\tif(instrNext.opcode != instrBlock.opcode || instrNext.wide != instrBlock.wide\n\t\t\t\t\t\t\t\t\t\t|| instrNext.operandsCount() != instrBlock.operandsCount()) {\n\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tfor(int j=0;i<instrNext.getOperands().length;j++) {\n\t\t\t\t\t\t\t\t\tif(instrNext.getOperand(j) != instrBlock.getOperand(j)) {\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n//\t\t\ttry {\n//\t\t\t\tDotExporter.toDotFile(graph, new File(\"c:\\\\Temp\\\\fern5.dot\"), true);\n//\t\t\t} catch(IOException ex) {\n//\t\t\t\tex.printStackTrace();\n//\t\t\t}\n\t\t\t\n\t\t\tfor(BasicBlock[] arr : setNext) {\n\t\t\t\tif(arr[1] != next) {\n\t\t\t\t\t// FIXME: exception edge possible?\n\t\t\t\t\tarr[0].removeSuccessor(arr[1]);\n\t\t\t\t\tarr[0].addSuccessor(next);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tDeadCodeHelper.removeDeadBlocks(graph);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn next;\n\t}", "public T next(){\n return (T)data[ci++];\n }", "void tryToFindNextKing()\n {\n if (nodeIds.size() != 0)\n {\n int nextKingId = Collections.max(nodeIds);\n CommunicationLink nextKing = allNodes.get(nextKingId);\n nextKing.sendMessage(new Message(\n Integer.toString(nextKingId), nextKing.getInfo(), myInfo, KING_IS_DEAD));\n }\n }", "void nextVoteBlock() {\n try {\n\tif (iter.hasNext()) {\n\t voteBlock = iter.next();\n\t} else {\n\t voteBlock = null;\n\t}\n } catch (IOException e) {\n\t// Even if the error is transient, we are trying to keep in\n\t// synch. If we later tried to catch up, we could have a\n\t// bunch of URLs we'd already counted for other voters. So\n\t// call this Entry finished.\n\tinstallErrorIterator(e);\n }\n }", "protected Sampler nextIsAController(Controller controller) throws NextIsNullException {\n- Sampler sampler = null;\n- try {\n- sampler = controller.next();\n- }", "@Override\n\tpublic Item next() {\n\t\tindex = findNextElement();\n\n\t\tif (index == -1)\n\t\t\treturn null;\n\t\treturn items.get(index);\n\t}", "public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }", "@Override\n public T next() {\n current = current.next;\n return current.data;\n }", "@Override\r\n\t\tpublic E next() {\n\t\t\tcaret = caret.next();\r\n\t\t\tif (caret == null)\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\tnextIndex++;\r\n\t\t\treturn caret.n.data[caret.idx];\r\n\t\t}", "@Override public T next(){\n Vertice v = pila.saca();\n T e = v.elemento;\n v = v.derecho;\n while (v != null) {\n pila.mete(v);\n v = v.izquierdo;\n }\n\t\treturn e;\n }", "@Override\r\n public TreePath getNextMatch(String prefix, int startIndex, Position.Bias bias) {\r\n return null;\r\n }", "@Override\n public Object next()\n {\n if (current != null && current.next != null)\n {\n current = current.next; // Move to the next element in bucket\n }\n else // Move to next bucket\n {\n do\n {\n bucketIndex++;\n if (bucketIndex == buckets.length)\n {\n throw new NoSuchElementException();\n }\n current = buckets[bucketIndex];\n }\n while (current == null);\n }\n return current.data;\n }", "public Object next()\n/* */ {\n/* 84 */ if (this.m_offset < this.m_limit) {\n/* 85 */ return this.m_array[(this.m_offset++)];\n/* */ }\n/* 87 */ throw new NoSuchElementException();\n/* */ }", "@Override\r\n\t\tpublic Key next() {\n\t\t\tKey i=current.item;\r\n\t\t\tcurrent=current.next;\r\n\t\t\treturn i;\r\n\t\t}", "public ListNode loopDetection1(ListNode head) {\r\n\r\n if (head == null || head.next == null) return null;\r\n\r\n ListNode curr = head;\r\n HashSet<ListNode> list = new HashSet<ListNode>();\r\n\r\n while (curr.next != null) {\r\n if (list.contains(curr)) return curr;\r\n\r\n list.add(curr);\r\n curr = curr.next;\r\n }\r\n\r\n return null;\r\n\r\n }" ]
[ "0.6500344", "0.6457844", "0.6363415", "0.62345934", "0.62122333", "0.6089083", "0.6036653", "0.60344553", "0.60294086", "0.6023146", "0.6023146", "0.59800935", "0.59467053", "0.59432447", "0.5937151", "0.5910683", "0.58956385", "0.57850635", "0.57843906", "0.5731176", "0.5706994", "0.5706994", "0.5661055", "0.5647848", "0.5640604", "0.56272846", "0.56182784", "0.5576544", "0.55111784", "0.5507294", "0.549774", "0.54959935", "0.54959935", "0.5474611", "0.54680395", "0.5457715", "0.54317784", "0.54188657", "0.5417967", "0.54080296", "0.539808", "0.5396073", "0.53958905", "0.5388361", "0.5386745", "0.53657645", "0.5348721", "0.5336581", "0.53350234", "0.53313726", "0.53225017", "0.53153324", "0.53145576", "0.5300123", "0.52823794", "0.5280811", "0.5280811", "0.52644724", "0.5261776", "0.52581334", "0.5253458", "0.52513194", "0.525125", "0.5247028", "0.52082574", "0.5205836", "0.52003527", "0.5194484", "0.5190092", "0.51872295", "0.5176357", "0.51759297", "0.5168179", "0.51667553", "0.5165847", "0.5161044", "0.5147884", "0.514246", "0.5141383", "0.5137152", "0.5129798", "0.51256806", "0.5125621", "0.5121834", "0.5118514", "0.511435", "0.51099163", "0.5104803", "0.5097013", "0.5096685", "0.509019", "0.5089223", "0.5088623", "0.50853556", "0.50832605", "0.5078203", "0.50779307", "0.50708693", "0.50459254", "0.5045208" ]
0.5631104
25
do summarization in this example the keys are Text, but this is just an example
public void reduce(Text key, Iterable<IntWritable> values, Context context) throws IOException, InterruptedException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logAllPossibleKeysWithType() {\n log.info(\"Log all possible keys with type:\");\n Map<String, Class> keysWithType = context.entrySet().stream()\n .collect(toMap(Entry::getKey, entry -> entry.getValue().getClass()));\n log.info(mapToString(keysWithType));\n }", "protected abstract String[] summarize();", "@Override\n\tpublic String toString() {\n\t\tStringBuilder buf = new StringBuilder();\n\t\t\n\t\tCIntMap termsFrequencies = null;\n\t\tfor( String tag : keySet()) {\n\t\t\tbuf.append(tag);\n\t\t\tbuf.append(\"\\n\");\n\t\t\ttermsFrequencies = get(tag);\n\t\t\tbuf.append(termsFrequencies);\n\t\t}\n\t\t\n\t\treturn buf.toString();\n\t}", "public String toString() {\n return \"{...(\" + this.size() + \" key(s) mapped to value(s))...}\";\n }", "public void logAllPossibleKeysWithValue() {\n log.info(\"Log all possible keys with value:\");\n log.info(mapToString(context));\n }", "public String toString() {\n\treturn \"Key: \" + key.toString() + \"\\tData: \" + data;\n }", "String getDescriptionKey();", "@Override\r\n\t\t//Reducer method\r\n\t\tpublic void reduce(Text key, Iterable<Text>values, Context c) throws IOException,InterruptedException{\n\t\t\tint count = 0;\r\n\t\t\t//for each time the particular key value pair occurs \r\n\t\t\t//Increase the count by 1\r\n\t\t\tfor(Text val:values){\r\n\t\t\t\tcount += 1;\r\n\t\t\t}\r\n\t\t\tString info = key.toString();\r\n String [] info_part = info.split(\"\\\\_\");\r\n\t\t\t\t\t\t//Create a list key value pairs \r\n\t\t\tc.write(new Text(info_part[0]+\",\"+info_part[1]+\",\"), new Text(\"\"+count));\t\r\n\r\n\t\t}", "@Override\n public String toString(){\n return key;\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn key + \"\";\r\n\t}", "@Override\n\tpublic String toString(){\n\t\tString result = \"\";\n\t\tfor (int i = 0; i < numObjects && key[i] != null; i++){\n\t\t\tresult += key[i].toString() + \" \";\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tpublic String toString() {\n\t\t\n\t\tSet<KeyValueData> keyvalueset = key_value_treemap.keySet();\n\t\tIterator<KeyValueData> iterator = keyvalueset.iterator();\n\t\tStringBuilder builder = new StringBuilder(\"*\");\n\t\twhile(iterator.hasNext()){\n\t\t\tKeyValueData data = iterator.next();\n\t\t\tbuilder.append(data.key);\n\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(data.value);\n\t\t\tbuilder.append(\" \");\n\t\t}\n\t\treturn builder.toString();\n\t}", "@Override\n public String toString() {\n return String.valueOf(key);\n }", "void keys() {\n for (int i = 0; i < size; i++) {\n System.out.println(keys[i] + \" \" + values[i]);\n }\n }", "@Override\n\t\tpublic void reduce(Text key, Iterator<Text> value,\n\t\t\t\tOutputCollector<Text, Text> output, Reporter reporter)\n\t\t\t\tthrows IOException {\n\t\t\tint i = 0;\n\t\t\tStringBuffer outval = new StringBuffer();\n\t\t\twhile (value.hasNext()) {\n\t\t\t\toutval.append(\"\\n\\t\" + value.next().toString());\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (i == words.length) {\n\t\t\t\toutput.collect(key, new Text(outval.toString()));\n\t\t\t}\n\t\t}", "@Override\n public String toString() {\n return key;\n }", "@Override\n public String toString() {\n return \"MultiKey\" + Arrays.toString(keys);\n }", "@Override\r\n public String toString() {\n \r\n StringBuilder sb = new StringBuilder(\"{\");\r\n for (int i = 0, size = size(); i < size; ++i) {\r\n if (i > 0) {\r\n sb.append(\", \");\r\n }\r\n \r\n sb.append(getNthKey(i)).append(\"=\").append(getNthValue(i)); \r\n }\r\n sb.append(\"}\");\r\n \r\n return sb.toString();\r\n }", "public interface Summarizer\n{\n public void startColumn(CharSequence label) throws Exception;\n public void endColumn() throws Exception;\n public void start(CharSequence label) throws Exception;\n public void description(CharSequence desc) throws Exception;\n public void setNorms(double f, double f2);\n public void item(Object key, int h) throws Exception;\n public void item(Object key, Stats1D h) throws Exception;\n public void finish(int sum) throws Exception;\n public void value(CharSequence label, double value) throws Exception;\n public void value(CharSequence label, CharSequence value) throws Exception;\n public void value(CharSequence label, long value) throws Exception;\n public void close() throws Exception;\n\n public final static Summarizer NO_SUMMARIZER = new Summarizer() {\n\t public void startColumn(CharSequence label) { }\n\t public void endColumn() { }\n\t public void start(CharSequence label) { }\n\t public void description(CharSequence desc) { }\n\t public void setNorms(double f, double f2) { }\n\t public void item(Object key, int h) { }\n\t public void item(Object key, Stats1D h) { }\n\t public void finish(int sum) { }\n\t public void value(CharSequence label, double value) { }\n\t public void value(CharSequence label, CharSequence value) { }\n\t public void value(CharSequence label, long value) { }\n\t public void close() { }\n };\n}", "public String toString()\r\n\t\t{\r\n\t\t\treturn \"|Key: \" + key + \", Value: \" + value + \"|\";\r\n\t\t}", "public void printAllSummaries()\n {\n String sum = \"\";\n for(KantoDex entry : entries)\n {\n sum = entry.getDexNum() + \": \" + entry.getName() + \" Types: \" + entry.getType1();\n if(!entry.getType2().equals(\"\"))\n {\n sum += \"/\" + entry.getType2();\n }\n System.out.println(sum);\n }\n }", "@Override\n public String toString() {\n return getKey().toString() + \" scale\";\n }", "public static void print(TreeMap tm) {\n\t Set<Entry<String, Integer>> set = tm.entrySet();\n\t Iterator iterator = set.iterator();\n\t while(iterator.hasNext()) {\n\t Map.Entry mentry = (Map.Entry)iterator.next();\n\t System.out.println(mentry.getKey().getClass());\n\t if (mentry.getKey() instanceof sampleObject) {\n\t \t System.out.print(\"key is: \"+ ((sampleObject)mentry.getKey()).id + \"--\" +\n\t \t\t\t ((sampleObject)mentry.getKey()).username + \" & Value is: \");\n\t }else{\n\t \t System.out.print(\"key is: \"+ mentry.getKey() + \" & Value is: \");\n\t }\n\t System.out.println(mentry.getValue());\n\t }\n\t}", "@Override\n\t\tpublic void reduce(Text key,Iterable<Text> values,Context context)throws IOException,InterruptedException\n\t\t{\n\t\t\tfor(Text val:values)\n\t\t\t{\n\t\t\t\tString line = val.toString();\n\t\t\t\tString word = line.split(\",\")[0];\n\t\t\t\t//System.out.println(\"Word is:\"+word);\n\t\t\t\tString article = key.toString();\n\t\t\t\tdouble tf = Double.parseDouble(line.split(\",\")[1]);\n\t\t\t\t//System.out.println(\"TF is:\"+tf);\n\t\t\t\tdouble idf = Double.parseDouble(line.split(\",\")[2]);\n\t\t\t\tdouble tfidf = Double.parseDouble(line.split(\",\")[3]);\n\t\t\t\t//System.out.println(\"IDF is:\"+idf);\n\t\t\t\tString new_key = article+\",\"+word+\",\"+tf+\",\"+idf;\n\t\t\t\tmap.put(new_key, tfidf);\n\t\t\t}\n\t\t\tComparator<String> comparator1 = new StringValueComparator(map);\n\t\t\tTreeMap<String,Double> TopFive = new TreeMap<String,Double>(comparator1);\n\t\t\tTopFive.putAll(map);\n\t\t\t\n\t\t\tIterator<Entry<String,Double>> iter = TopFive.entrySet().iterator();\n\t\t\tEntry<String,Double> entry = null;\n\t\t\twhile(TopFive.size()>10)\n\t\t\t{\n\t\t\t\tentry = iter.next();\n\t\t\t\titer.remove();\n\t\t\t}\n\t\t\t//System.out.println(\"Size of HashMap:\"+map.size()+\"Size after deletion:\"+TopFive.size());\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tEntry<String,Double> temp = iter.next();\n\t\t\t\tString val = temp.getKey();\n\t\t\t\tdouble tfidf = temp.getValue();\n\t\t\t\tString word = val.split(\",\")[1];\n\t\t\t\tString article = val.split(\",\")[0];\n\t\t\t\tdouble tf = Double.parseDouble(val.split(\",\")[2]);\n\t\t\t\tdouble idf = Double.parseDouble(val.split(\",\")[3]);\n\t\t\t\tString new_val = \"Word--->\"+word+\",Term Frequency--->\"+tf+\",IDF--->\"+idf+\",TFIDF--->\"+tfidf;\n\t\t\t\tcontext.write(new Text(article), new Text(new_val));\n\t\t\t}\n\t\t}", "@Override\n\tpublic String toString() {\n\t\tStringBuffer buf = new StringBuffer(\"Dictionary contents:\\n\");\n\t\tfor (Iterator iter = entrySet().iterator(); iter.hasNext();) {\n\t\t\tMap.Entry entry = (Map.Entry) iter.next();\n\t\t\tbuf.append(\" \").append(entry.getKey()).append(\" = \").append(\n\t\t\t\t\tentry.getValue()).append(\"\\n\");\n\t\t}\n\t\treturn buf.toString();\n\t}", "@Override\n\tpublic void printFilteredMap() {\n\t\tthis.result.forEach((k, v )-> v.forEach((ke,ve) -> ve.forEach((s) -> System.out.println(k + \" : \"+ ke + \" : \"+ s))));\n\n\t}", "@Override\n public String toString() {\n String output;\n if (hasKeyIndex()) {\n output = key + \"(\" + index + \")\";\n } else if (hasArrayIndex()) {\n output = key + \"[\" + index + \"]\";\n } else {\n output = key;\n }\n return output;\n }", "HashMap<String, String> getAdditionalDescriptions();", "@Override\n\t\tprotected void map(Object key, Text value,\n\t\t\t\tMapper<Object, Text, MyKey, Text>.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString line[] = value.toString().split(\"\\t\");\n\t\t\tif(line.length<2)return;\n\t\t\tk.setK(new Text(line[0]));\n\t\t\tk.setV(new Text(line[1]));\n\t\t\tcontext.write(k,new Text(line[1]));\n\t\t}", "@Override\n\tprotected void reduce(CompKey key, Iterable<Text> values, Reducer<CompKey, Text, Text, NullWritable>.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\n\t\tIterator<Text> it = values.iterator();\n\t\tString cinfo = it.next().toString();\n\t\t\n\t\twhile(it.hasNext()){\n\t\t\tString oinfo = it.next().toString();\n\t\t\tString[] arr = oinfo.split(\"\\t\");\n\t\t\tString ono = arr[1];\n\t\t\tString price = arr[2];\n\t\t\tString info = cinfo + \"\\t\" + ono + \"\\t\" + price;\n\t\t\tSystem.out.println(info);\n\t\t\tcontext.write(new Text(info), NullWritable.get());\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "java.lang.String getSummary();", "@Override\n public String info() {\n return String.format(\"%s. %s\", this.key, this.name);\n }", "private String createCustomInfoString() {\r\n String CustomInfo = \"\";\r\n Iterator<String> iterator = mCustomParameters.keySet().iterator();\r\n while (iterator.hasNext()) {\r\n String CurrentKey = iterator.next();\r\n String CurrentVal = mCustomParameters.get(CurrentKey);\r\n CustomInfo += CurrentKey + \" = \" + CurrentVal + \"\\n\";\r\n }\r\n return CustomInfo;\r\n }", "String getMyNoteTextByKey(Key verse);", "public String toString() { return kind() + \":\"+ text() ; }", "public void display(){\n int n = nb_instructions;\n System.out.println(\"There are \" + n + \" key_words\");\n for(int i = 0; i<n;i++){\n System.out.println(\"\\tKey_word \" + (i+1) + \": \" + key_words.get(i));\n }\n }", "@Override\r\n\t\tpublic String toString() {\r\n\t\t\t\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\r\n\t\t\tint langCount = 0;\r\n\t\t\tint kmerCount = 0;\r\n\t\t\tSet<Language> keys = getDb().keySet();\r\n\t\t\tfor (Language lang : keys) {\r\n\t\t\t\tlangCount++;\r\n\t\t\t\tsb.append(lang.name() + \"->\\n\");\r\n\t\t\t\t \r\n\t\t\t\t Collection<LanguageEntry> m = new TreeSet<>(getDb().get(lang).values());\r\n\t\t\t\t kmerCount += m.size();\r\n\t\t\t\t for (LanguageEntry le : m) {\r\n\t\t\t\t\t sb.append(\"\\t\" + le + \"\\n\");\r\n\t\t\t\t }\r\n\t\t\t}\r\n\t\t\tsb.append(kmerCount + \" total k-mers in \" + langCount + \" languages\"); \r\n\t\t\treturn sb.toString();\r\n\t\t\t}", "ImmutableSetMultimap<String, String> describe();", "private static <Key extends Comparable<Key>> void show(Key[] a) {\n for (int i = 0; i < a.length; i++) {\n System.out.printf(a[i] + \" \");\n }\n }", "@Override\n public String toString() {\n return allRecords.stream()\n .flatMap(m -> m.entrySet().stream())\n .sorted(Comparator.comparing(Map.Entry::getKey))\n .map(Map.Entry::getValue)\n .collect(Collectors.joining());\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn this.key;\r\n\t}", "private void display(int key, String value)\n {\n System.out.println(\"Value for id \" + key + \": \" + value);\n }", "public String getSummary();", "public String toString() {\n\t\t\tif (this.getKey() == null) {\n\t\t\t\treturn \"\";\n\t\t\t} else {\n\t\t\t\treturn \"Key:\" + this.getKey() + \" Value:\" + this.getValue();\n\t\t\t}\n\t\t}", "@Override\n public String toString() {\n return new StringBuilder().append(\"key = \\\"\").append(key).append(\"\\\", values[] = \").append(valuesToStringBuilder()).append(\", message = \\\"\").append(message).append(\"\\\"\").toString();\n }", "@Override\r\n public String toString() {\r\n return key.toString() + \"=\" + value.toString();\r\n }", "public static <T extends DescriptiveData, A extends WithAdmin> Map<String, Object> basicTransformation(WithResource<T, A> rr) {\n\n\t\tJsonNode rr_json = Json.toJson(rr);\n\t\tObjectNode idx_doc = Json.newObject();\n\n\t\tMap<String, List<String>>lang_accumulators = new HashMap<String, List<String>>();\n\n\t\t/*\n\t\t * Label\n\t\t */\n\t\tJsonNode label = rr_json.get(\"descriptiveData\").get(\"label\");\n\t\tidx_doc.put(\"label\", label);\n\n\t\tif(label != null) {\n\t\t\tIterator<Entry<String, JsonNode>> labels_it = label.fields();\n\t\t\tArrayNode all_labels = Json.newObject().arrayNode();\n\t\t\twhile(labels_it.hasNext()) {\n\t\t\t\tEntry<String, JsonNode> e = labels_it.next();\n\t\t\t\tfor(String v: (List<String>)Json.fromJson(e.getValue(), List.class)) {\n\t\t\t\t\tall_labels.add(v);\n\t\t\t\t}\n\t\t\t\tfor(String v: (List<String>)Json.fromJson(e.getValue(), List.class)) {\n\t\t\t\t\taddToLangAll(lang_accumulators, e.getKey(), v);\n\t\t\t\t}\n\t\t\t}\n\t\t\tidx_doc.put(\"label_all\", all_labels);\n\n\n\t\t}\n\n\t\t/*\n\t\t * Description\n\t\t */\n\t\tJsonNode description = rr_json.get(\"descriptiveData\").get(\"description\");\n\t\tidx_doc.put(\"description\", description);\n\t\tif(description != null) {\n\t\t\tIterator<Entry<String, JsonNode>> descs_it = description.fields();\n\t\t\tArrayNode all_descs = Json.newObject().arrayNode();\n\t\t\twhile(descs_it.hasNext()) {\n\t\t\t\tEntry<String, JsonNode> e = descs_it.next();\n\t\t\t\t// ignore \"def\" and \"unknown\" language\n\t\t\t\tfor(String v: (List<String>)Json.fromJson(e.getValue(), List.class)) {\n\t\t\t\t\tall_descs.add(v);\n\t\t\t\t}\n\t\t\t\tfor(String v: (List<String>)Json.fromJson(e.getValue(), List.class)) {\n\t\t\t\t\taddToLangAll(lang_accumulators, e.getKey(), v);\n\t\t\t\t}\n\t\t\t}\n\t\t\tidx_doc.put(\"description_all\", all_descs);\n\t\t}\n\n\t\t/*\n\t\t * Keywords\n\t\t */\n\t\tJsonNode keywords = rr_json.get(\"descriptiveData\").get(\"keywords\");\n\t\tidx_doc.put(\"keywords\", keywords);\n\t\tif(keywords != null) {\n\t\t\tIterator<Entry<String, JsonNode>> keywords_it = keywords.fields();\n\t\t\tArrayNode all_keywords = Json.newObject().arrayNode();\n\t\t\twhile(keywords_it.hasNext()) {\n\t\t\t\tEntry<String, JsonNode> e = keywords_it.next();\n\t\t\t\t// ignore \"def\" and \"unknown\" language\n\t\t\t\tfor(String v: (List<String>)Json.fromJson(e.getValue(), List.class)) {\n\t\t\t\t\tall_keywords.add(v);\n\t\t\t\t}\n\t\t\t\tfor(String v: (List<String>)Json.fromJson(e.getValue(), List.class)) {\n\t\t\t\t\taddToLangAll(lang_accumulators, e.getKey(), v);\n\t\t\t\t}\n\t\t\t}\n\t\t\tidx_doc.put(\"keywords_all\", all_keywords);\n\t\t}\n\n\t\t/*\n\t\t * AltLabels\n\t\t */\n\t\tJsonNode altLabels = rr_json.get(\"descriptiveData\").get(\"altLabels\");\n\t\tidx_doc.put(\"altLabels\", altLabels);\n\t\tif(altLabels != null) {\n\t\t\tIterator<Entry<String, JsonNode>> altLabels_it = altLabels.fields();\n\t\t\tArrayNode all_altLabels = Json.newObject().arrayNode();\n\t\t\twhile(altLabels_it.hasNext()) {\n\t\t\t\tEntry<String, JsonNode> e = altLabels_it.next();\n\t\t\t\t// ignore \"def\" and \"unknown\" language\n\t\t\t\tfor(String v: (List<String>)Json.fromJson(e.getValue(), List.class)) {\n\t\t\t\t\tall_altLabels.add(v);\n\t\t\t\t}\n\t\t\t\tfor(String v: (List<String>)Json.fromJson(e.getValue(), List.class)) {\n\t\t\t\t\taddToLangAll(lang_accumulators, e.getKey(), v);\n\t\t\t\t}\n\t\t\t}\n\t\t\tidx_doc.put(\"altLabels_all\", all_altLabels);\n\t\t}\n\n\t\tList<String> unknownValues = null;\n\t\tfor(Entry<String, List<String>> e: lang_accumulators.entrySet()) {\n\t\t\tif(e.getKey().toLowerCase().matches(\"un(.*)\")) {\n\t\t\t\tunknownValues = e.getValue();\n\t\t\t}\n\t\t}\n\t\tfor(Entry<String, List<String>> e: lang_accumulators.entrySet()) {\n\t\t\tif(e.getKey().toLowerCase().matches(\"un(.*)\"))\n\t\t\t\tcontinue;\n\n\t\t\tif(unknownValues != null)\n\t\t\t\te.getValue().addAll(unknownValues);\n\t\t\tJsonNode langs = Json.toJson(e.getValue());\n\t\t\tidx_doc.put(\"_all_\" + e.getKey(), langs);\n\t\t}\n\n\t\tArrayNode dates = Json.newObject().arrayNode();\n\t\tif(rr.getDescriptiveData().getDates() != null) {\n\t\t\tfor(WithDate d: rr.getDescriptiveData().getDates()) {\n\t\t\t\tdates.add(d.getYear());\n\t\t\t}\n\t\t\tidx_doc.put(\"dates\", dates);\n\t\t}\n\n\t\t/*\n\t\t * User Rights structure in the document\n\t\t */\n\t\tidx_doc.put(\"isPublic\", rr.getAdministrative().getAccess().getIsPublic());\n\t\tObjectMapper aclMapper = new ObjectMapper();\n\t\tSimpleModule module = new SimpleModule();\n\t\tmodule.addSerializer(AccessEntry.class, new Serializer.AccessEntrySerializer());\n\t\taclMapper.registerModule(module);\n\t\tString aclString;\n\t\ttry {\n\t\t\taclString = aclMapper.writeValueAsString(rr.getAdministrative().getAccess().getAcl());\n\t\t\tidx_doc.put(\"access\", aclMapper.readTree(aclString));\n\t\t} catch (JsonProcessingException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlog.error(\"\",e1);\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlog.error(\"\",e1);\n\t\t}\n\n\n\n\t\t/*\n\t\t * CollectedIn field\n\t\t */\n\t\t//idx_doc.put(\"collectedIn\", Json.toJson(rr.getCollectedIn()));\n\n\t\t/*\n\t\t * Add the username and email of the creator\n\t\t * NOT the dbId\n\t\t */\n\t\tif(rr.getWithCreator() != null ) {\n\t\t\tidx_doc.put(\"creatorUsername\", rr.getWithCreator().getUsername());\n\t\t\tidx_doc.put(\"creatorEmail\", rr.getWithCreator().getEmail());\n\t\t}\n\n\n\t\t/*\n\t\t * Add more fields to the Json\n\t\t */\n\t\tidx_doc.put(\"metadataRights\", Json.toJson(rr.getDescriptiveData().getMetadataRights()));\n\t\t//idx_doc.put(\"isExhibition\", Json.toJson(rr.getAdministrative().));\n\t\tidx_doc.put(\"tags\", Json.toJson(rr.getUsage().getTags()));\n\t\tidx_doc.put(\"isShownAt\", Json.toJson(rr.getDescriptiveData().getIsShownAt()));\n\t\tif((rr.getProvenance() != null) && (rr.getProvenance().size() == 1)) {\n\t\t\tidx_doc.put(\"dataProvider\", Json.toJson(rr.getProvenance().get(0).getProvider()));\n\t\t}\n\t\tif((rr.getProvenance() != null) && (rr.getProvenance().size() > 1)) {\n\t\t\tidx_doc.put(\"dataProvider\", Json.toJson(rr.getProvenance().get(0).getProvider()));\n\t\t\tidx_doc.put(\"provider\", Json.toJson(rr.getProvenance().get(1).getProvider()));\n\t\t}\n\t\tidx_doc.put(\"resourceType\", rr_json.get(\"resourceType\"));\n\n\n\n\t\t/*\n\t\t * Format and add Media structure\n\t\t * TODO Add all Media Objects!!\n\t\t */\n\t\tArrayNode media_objects = Json.newObject().arrayNode();\n\t\tif( (rr.getMedia() != null) && !rr.getMedia().isEmpty()\n\t\t\t\t&& (rr.getMedia().get(0)!=null) && (!rr.getMedia().get(0).isEmpty()) ) {\n\t\t\t// take care about all EmbeddedMediaObjects\n\t\t\tObjectNode media = Json.newObject();\n\t\t\tfor(HashMap<MediaVersion, EmbeddedMediaObject> mediaobj: rr.getMedia()) {\n\t\t\t\tfor(EmbeddedMediaObject emo: mediaobj.values()) {\n\t\t\t\t\tmedia.put(\"withRights\", Json.toJson(emo.getWithRights()));\n\t\t\t\t\t//TODO: why withMediaType and not type, like in EmbeddedMedia? media.type\n\t\t\t\t\tmedia.put(\"type\", Json.toJson(emo.getType()));\n\t\t\t\t\tmedia.put(\"originalRights\", Json.toJson(emo.getOriginalRights()));\n\t\t\t\t\t//media.put(\"mimeType\", Json.toJson(emo.getMimeType()));\n\t\t\t\t\tmedia.put(\"url\", Json.toJson(emo.getUrl()));\n\t\t\t\t\tmedia.put(\"quality\", Json.toJson(emo.getQuality()));\n\t\t\t\t\tmedia.put(\"width\", emo.getWidth());\n\t\t\t\t\tmedia.put(\"height\", emo.getHeight());\n\t\t\t\t\t/*\n\t\t\t\t\t * Eliminate null values from Media json structures\n\t\t\t\t\t */\n\t\t\t\t\tObjectNode media_copy = media.deepCopy();\n\t\t\t\t\tIterator<String> fieldNames = media_copy.fieldNames();\n\t\t\t\t\twhile(fieldNames.hasNext()) {\n\t\t\t\t\t\tString fName = fieldNames.next();\n\t\t\t\t\t\tif(media_copy.get(fName).isNull() ) {\n\t\t\t\t\t\t\tmedia.remove(fName);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tmedia_objects.add(media);\n\t\t\t\t}\n\t\t\t}\n\t\t\tidx_doc.put(\"media\", media_objects);\n\t\t}\n\n\t\t/*\n\t\t * Eliminate null values from the root document\n\t\t */\n\t\tObjectNode idx_copy = idx_doc.deepCopy();\n\t\tIterator<String> fieldNames = idx_copy.fieldNames();\n\t\twhile(fieldNames.hasNext()) {\n\t\t\tString fName = fieldNames.next();\n\t\t\tif(idx_copy.get(fName).isNull() ) {\n\t\t\t\tidx_doc.remove(fName);\n\t\t\t}\n\t\t}\n\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.setSerializationInclusion(Include.NON_NULL);\n\t\tMap<String, Object> idx_map = mapper.convertValue(idx_doc, Map.class);\n\n\t\treturn idx_map;\n\t}", "@Override\n public String toString() {\n return key + \"=\" + value;\n }", "@Override\n public String toString() {\n StringJoiner sj = new StringJoiner(\", \", \"{\", \"}\\n\");\n wordMap.forEach((k, v) -> sj.add(String.format(\"%s -> %s\", k, v)));\n return sj.toString();\n }", "public abstract void addToDisplay(String key, Object...values);", "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}", "private static void printMap(HashMap<String, Integer> hashMap) {\n\t\tfor (String key : hashMap.keySet()) {\r\n\t\t System.out.println(\"Key: \" + key + \" Value: \" + hashMap.get(key));\r\n }\r\n System.out.println(\"Total features in Hashmap: \"+ hashMap.size());\r\n\t}", "public String toString() {\r\n \treturn key;\r\n }", "public abstract CharSequence getSummary();", "KeyMetadata metadata();", "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"<\"+key.toString()+\",\"+value.toString()+\">\";\n\t\t}", "public static void main(String[] args) {\n HashMap<Integer, String> Hm = new HashMap<Integer, String>();\n Hm.put(0, \"USA\");\n Hm.put(1, \"UK\");\n Hm.put(2, \"India\");\n Hm.put(3, \"Maldives\");\n \n Set sn=Hm.entrySet();\n Iterator i= sn.iterator(); \n while(i.hasNext()) {\n Map.Entry mp=(Map.Entry)i.next();\n System.out.println(mp.getKey());\n System.out.println(mp.getValue());\n }\n \n\t}", "@Override\n\t\tprotected void map(Text key, Text value, Context context)throws IOException, InterruptedException {\n\t\t\tString val = value.toString();\n\t\t\t//String word = line.split(\",\")[0];\n\t\t\t//String docname = line.split(\",\")[1];\n\t\t\tdouble n = Double.parseDouble(val.split(\",\")[0]);\n\t\t\tdouble max = Double.parseDouble(val.split(\",\")[1]);\n\t\t\tdouble N = Double.parseDouble(val.split(\",\")[2]);\n\t\t\tdouble m = Double.parseDouble(val.split(\",\")[3]);\n\t\t\t//System.out.println(\"n is:\"+n+\"max is:\"+max+\" N is:\"+N+\" m is:\"+m+\" D is:\"+D);\n\t\t\tdouble tf = n/max;\n\t\t\t//System.out.println(\"TF is:\"+tf);\n\t\t\t//String TF = \"tf: \"+tf;\n\t\t\tdouble idf = (Math.log(D/m)/Math.log(2));\n\t\t\tdouble tfidf = tf*idf;\n\t\t\t//System.out.println(\"IDF is:\"+idf);\n\t\t\t//String IDF = \"idf: \"+idf;\n\t\t\tString word = key.toString().split(\",\")[0];\n\t\t\tString article = key.toString().split(\",\")[1];\n\t\t\tString new_val = word+\",\"+tf+\",\"+idf+\",\"+tfidf;\n\t\t\tcontext.write(new Text(article),new Text(new_val));\n\t\t}", "public void printValues(){\r\n\r\n for(String key : values.keySet()){\r\n String value = values.get(key).toString();\r\n System.out.println(key + \" = \" + value);\r\n }\r\n\r\n }", "@Override\r\n protected Text generateGroupKey(IntermediateData tmo)\r\n {\n String line = ((Text) tmo.getData()).toString();\r\n String[] tokens = line.split(Main.INPUT_SPLIT);\r\n String groupkey = tokens[0];\r\n return new Text(groupkey);\r\n }", "public String toString()\n {\n return key.toString() + \" => \" + item.toString();\n }", "@Override\n public String toString() {\n StringBuilder buf = new StringBuilder();\n for (int x = 0; x < numTopics; x++) {\n String v = dictionary != null\n ? vectorToSortedString(topicTermCounts.viewRow(x).normalize(1), dictionary)\n : topicTermCounts.viewRow(x).asFormatString();\n buf.append(v).append('\\n');\n }\n return buf.toString();\n }", "public static void main(String[] args)throws Exception {\n\t\t\n\t\tHashMap<String, Integer> hm = new HashMap<>(20);\n\t\t\n\t\thm.put(\"India\", 20);\n\t\thm.put(\"China\",\t 55);\n\t\thm.put(\"ini\", 78);\n\t\thm.display();\n\t\tArrayList<String> yo = hm.keyset() ;\n\t\tSystem.out.println(yo);\n\t}", "@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn keyConverter.apply(key) + KEY_VALUE_SEPARATOR_CHAR + ' ' + value;\n\t\t}", "public String toString(){\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < key; i++) {\n sb.append(getArtikel(i));\n }\n return sb.toString();\n }", "public String getAllResults() {\n StringBuilder sb = new StringBuilder();\n for (Map.Entry<String, String> results : resultMap.entrySet()) {\n sb.append(results.getKey().toString() + \" : \" + results.getValue().toString() + \"\\n\");\n }\n return sb.toString();\n }", "public void display() {\n\tString tm = \"{ \";\n\tIterator it = entrySet().iterator();\n\twhile(it.hasNext()) {\n\t\ttm += it.next() + \" ,\";\n\t}\n\ttm = tm.substring(0, tm.length() - 2) + \" }\";\n\tSystem.out.println(tm);\n }", "@Override\n\tpublic void report() {\n\t\tfor (String s : wordC.keySet()) {\n\t\t\tSystem.out.println(s + \": \" + wordC.get(s));\n\t\t}\n\t\t\n\t}", "@Override\n protected FilterResults performFiltering(CharSequence arg0) {\n String[] tmp = API.it().getKeywords(arg0.toString());\n FilterResults results = new FilterResults();\n results.values = tmp;\n results.count = tmp.length;\n return results;\n }", "private static void printTable(int numberOfDocs) {\n \n Gson gs = new Gson();\n String json = gs.toJson(wor);\n // System.out.println(json);\n \n List<String> queryWords = new ArrayList();\n //to test it for other query word you can change the following two words\n //queryWords.add(\"carpet\");\n //queryWords.add(\"hous\");\n queryWords.add(\"the\");\n queryWords.add(\"crystallin\");\n queryWords.add(\"len\");\n queryWords.add(\"vertebr\");\n queryWords.add(\"includ\");\n \n \n FrequencySummary frequencySummary = new FrequencySummary();\n frequencySummary.getSummary(json,docName, queryWords);\n \n System.exit(0);\n \n Hashtable<Integer,Integer> g = new Hashtable<>();\n \n /* wor.entrySet().forEach((wordToDocument) -> {\n String currentWord = wordToDocument.getKey();\n Map<String, Integer> documentToWordCount = wordToDocument.getValue();\n freq.set(0);\n df.set(0);\n documentToWordCount.entrySet().forEach((documentToFrequency) -> {\n String document = documentToFrequency.getKey();\n Integer wordCount = documentToFrequency.getValue();\n freq.addAndGet(wordCount);\n System.out.println(\"Word \" + currentWord + \" found \" + wordCount +\n \" times in document \" + document);\n \n if(g.getOrDefault(currentWord.hashCode(), null)==null){\n g.put(currentWord.hashCode(),1);\n \n }else {\n System.out.println(\"Hello\");\n \n int i = g.get(currentWord.hashCode());\n System.out.println(\"i \"+i);\n g.put(currentWord.hashCode(), i++);\n }\n // System.out.println(currentWord+\" \"+ g.get(currentWord.hashCode()));\n // g.put(currentWord.hashCode(), g.getOrDefault(currentWord.hashCode(), 0)+wordCount);\n \n });\n // System.out.println(freq.doubleValue());\n \n // System.out.println(\"IDF for this word: \"+Math.log10( (double)(counter/freq.doubleValue())));\n });\n // System.out.println(g.get(\"plai\".hashCode()));\n //System.out.println(\"IDF for this word: \"+Math.log10( (double)(counter/(double)g.get(\"plai\".hashCode()))));\n */\n }", "public void printInfo() {\n String s = \"\";\n if (map.isEmpty()) {\n s += \"not keeping any entries\\n\";\n } else {\n s += \"This Node stores a range of \" + map.size() + \" keys :\\n from:\" + map.firstKey() + \" up to: \" + map.lastKey() + \"\\n\";\n }\n s += \"node key:\\t\" + nodeKey + \"\\n\";\n s += \"previous key:\\t\" + predKey + \"\\n\";\n\n window.getKeysInfoText().setText(s);\n }", "public static <K,V> void showMap(Map<K,V> map)\n {\n System.out.println(\"...........................................\");\n\n int index = 0;\n\n for (Entry<?, ?> e : map.entrySet())\n System.out.format(\"#%5d K = [%-15s] V = %s%n\",\n index++, e.getKey(), e.getValue());\n\n }", "public void dump(){\r\n\t\tString str = \"\";\r\n\t\tfor(int i = 0; i < M; i++){\r\n\t\t\tstr = str + i + \". \" + vals[i];\r\n\t\t\tif(keys[i] != null){\r\n\t\t\t\tstr = str + \" \" + keys[i] + \" (\";\r\n\t\t\t\tstr = str + hash(keys[i]) + \")\";\r\n\t\t\t}else\r\n\t\t\t\tstr = str + \" -\";\r\n\t\t\tSystem.out.println(str);\r\n\t\t\tstr = \"\";\r\n\t\t}\r\n\t\tSystem.out.println(\"Size: \" + N + \"\\n\"); //La till denna för enkelhetens skull\r\n\t}", "public static void printKeys2(Map<Object,Object> map) \n\t{\n\t\tprintnb(\"Size = \" + map.size() + \", \");\n\t\tprintnb(\"Keys: \");\n\t\tprint(map.keySet()); // Produce a set of the keys\n\t}", "@Test\n public void Test_Entry() throws Exception {\n String[] expected_value = {\"/ProcSet\", \"/Font\"};\n\n PdfResource resrc = new PdfResource();\n //execute test\n HashMap<String, String> entry = resrc.getEntry();\n //confirm\n assertThat(entry.keySet(), hasItems(expected_value)); \n }", "private String metadata() {\n\t\tStringBuilder s = new StringBuilder();\n\t\ts.append(\"#######################################\");\n\t\ts.append(\"\\n# Metadata of query set\");\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Queries\");\n\t\ts.append(\"\\n# \\tTotal: \" + this.num_queries);\n\t\ts.append(\"\\n# \\tPoint: \" + this.num_pt_queries + \" (\" + 100 * ((double) this.num_pt_queries/this.num_queries) +\"%)\");\n\t\ts.append(\"\\n# \\tRange: \" + this.num_range_queries + \" (\" + 100 * ((double) this.num_range_queries/this.num_queries) +\"%)\");\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Operators\");\n\t\ts.append(\"\\n# \\tTotal: \" + (this.num_and_ops + this.num_or_ops) + \" (\" + ((double) (this.num_and_ops + this.num_or_ops)/this.num_queries) +\" per query)\");\n\t\ts.append(\"\\n# \\tAND: \" + this.num_and_ops);\n\t\ts.append(\"\\n# \\tOR: \" + this.num_or_ops);\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Attributes\");\n\t\ts.append(\"\\n# \\tTotal queried: \" + this.num_attributes);\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Bins\");\n\t\ts.append(\"\\n# \\tTotal queried: \" + this.num_bins);\n\t\ts.append(\"\\n# \\tPer query: \" + ((double) this.num_bins/this.num_queries));\n\t\ts.append(\"\\n#######################################\\n\");\n\t\treturn s.toString();\n\t}", "@Override\n protected void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n String[] pageRank = value.toString().trim().split(\"\\t\");\n context.write(new Text(pageRank[0]), new Text(pageRank[1]));\n }", "private String toStringMap( Map<String, String[]> m ) {\n StringBuilder builder = new StringBuilder();\n m.keySet().forEach( ( k ) -> {\n builder.append( \"Key=\" ).append( k )\n .append( \", \" )\n .append( \"Value/s=\" ).append( Arrays.toString( m.get( k ) ) )\n .append( System.lineSeparator() );\n } );\n return builder.toString();\n }", "protected abstract SingleKeyVersionDataExtractor<DATA> generateDataKeyAsString () ;", "@Override\n\tprotected void reduce(Text key, Iterable<Text> values,\n\t\t\tReducer<Text, Text, Text, Text>.Context context) throws IOException, InterruptedException {\n\t\tStringBuilder friends=new StringBuilder();\n\t\t\n\t\tfor (Text value:values){\n\t\t\tfriends.append(value.toString());\n\t\t\t\n\t\t}\n\t\tcontext.write(key, new Text(friends.toString()));\n//\t\tsuper.reduce(arg0, arg1, arg2);\n\t}", "public String print() {\n\n String returnString = \"\";\n\n if (kv1 != null) {\n returnString += kv1.toString();\n }\n\n if (kv2 != null) {\n returnString += \" \" + kv2.toString();\n }\n\n return returnString;\n }", "@Override\n public String toString() {\n return type.key + \". \" + description + \" at \" +\n (sourceName != null && sourceName.length() > 0 ?\n sourceName : \"(unknown source)\") + \" line \" +\n (lineNumber != -1 ? String.valueOf(lineNumber) : \"(unknown line)\") +\n \" : \" + (charno != -1 ? String.valueOf(charno) : \"(unknown column)\");\n }", "public void map(Object key, Text value, Context context\n\t\t ) throws IOException, InterruptedException {\n\n\t\t\t\n\t\t\t\n\t\t\t \n\t\t\t String curr_string=value.toString();\n\t\t\t /// splitting based on \"*\" as a delimiter...\n\t\t\t String [] parts=curr_string.split(\"\\\\*\");\n\t\t\t String curr_key=parts[0];\n\t\t\t // Removing spaces from both left and right part of the string..\n\t\t\t String curr_value=parts[1].trim();\n\t\t\t String [] small_parts=curr_value.split(\",\");\n\t\t\t // Taking the count of unique files which are present in the input given to tfidf\n\t\t\t int no_of_unique_files=Integer.parseInt(small_parts[small_parts.length-1]);\n\t\t\t /// The formula to compute idf is log((1+no_of_files)/no_of_unique_files))....\n\t\t\t Configuration conf=context.getConfiguration();\n\t\t\t String value_count=conf.get(\"test\");\n\t\t\t if(!value_count.isEmpty())\n\t\t\t {\n\t\t\t int total_no_files=Integer.parseInt(value_count);\n\t\t\t double x=(total_no_files/no_of_unique_files);\n\t\t\t // Formula fo rcomputing the idf value....\n\t\t\t double idf_value=Math.log10(1+x);\n\t\t\t for(int i=0;i<small_parts.length-1;i++)\n\t\t\t {\n\t\t\t\t String [] waste=small_parts[i].split(\"=\");\n\t\t\t\t String file_name=waste[0];\n\t\t\t\t // Computing the tfidf on the fly...\n\t\t\t\t double tf_idf=idf_value*Double.parseDouble(waste[1]);\n\t\t\t\t Text word3 = new Text();\n\t\t\t\t Text word4 = new Text();\n\t\t\t\t word3.set(curr_key+\"#####\"+file_name+\",\");\n\t\t\t\t word4.set(tf_idf+\"\");\n\t\t\t\t context.write(word3,word4);\n\t\t\t\t \n\t\t\t }\n\t\t\t //word1.set(curr_key);\n\t\t\t //word2.set(idf_value+\"\");\n\t\t\t //context.write(word1,word2); \n\t\t\t} \n\t\t}", "private void displayAll()\n {\n for (int i = 0; i < cache.size(); ++i)\n {\n Record r = cache.get(i); \n System.out.println(r.key() + \" \" + r.value());\n }\n }", "public void dictionaryBasic() {\n dictionaryManagement.insertFromCommandline();\n showAllWords();\n }", "public static void main(String[] args) {\n\n\t\tHashMap<String,String> hm = new HashMap<String, String>();\n\t\t\n\t\thm.put(\"e\",\"a1\");\n\t\thm.put(\"b\",\"a1\");\n\t\thm.put(\"a\",\"a2\");\n\t\t \n\t\thm.put(\"a\",\"a5\");\n\t\t\n\t\tSet s = hm.entrySet();\n\t\tIterator it = s.iterator();\n\t\t\n\t\tfor(Map.Entry me : hm.entrySet())\n\t\t\tSystem.out.println(me.getKey()+\" \"+me.getValue());\n\t\t\n\t\t\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry mentry = (Map.Entry) it.next();\n\t\t\tSystem.out.println(mentry.getKey() +\" \"+mentry.getValue());\n\t\t\t\n\t\t}\n\t\t\n\tMap<String,String> thmp = \tnew TreeMap<String,String> (hm);\n\tSystem.out.println();\n\tfor(Map.Entry g : thmp.entrySet())\n\t\tSystem.out.println(g.getKey()+\" \"+g.getValue());\n\t\n\t\n\tSystem.out.println(hm.containsKey(\"a\")+\" \"+hm.containsValue(\"a5\"));\n\t\n\t\t\n\t\t\n\t\t\n\t}", "private String getStringKey(int rawKey) {\n // Specialize single group-by column case\n if (_numGroupByExpressions == 1) {\n return _dictionaries[0].getStringValue(rawKey);\n } else {\n int cardinality = _cardinalities[0];\n StringBuilder groupKeyBuilder = new StringBuilder(_dictionaries[0].getStringValue(rawKey % cardinality));\n rawKey /= cardinality;\n for (int i = 1; i < _numGroupByExpressions; i++) {\n groupKeyBuilder.append(GroupKeyGenerator.DELIMITER);\n cardinality = _cardinalities[i];\n groupKeyBuilder.append(_dictionaries[i].getStringValue(rawKey % cardinality));\n rawKey /= cardinality;\n }\n return groupKeyBuilder.toString();\n }\n }", "public String toString() { return this.myText + \" \" + this.myCount;}", "@Override\n\t\tprotected void map(Object key, Text value, Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tStringTokenizer str=new StringTokenizer(value.toString());\n//\t\t\tString[]str=new String(value.toString()).split(\"a\");\n\t\t\twhile(str.hasMoreTokens()){\n\t\t\t\tword.set(str.nextToken());\n\t\t\t\tcontext.write(word, one);\n\t\t\t\t}\n//\t\t\tfor(String b:str){\n//\t\t\t\tword.set(b);\n//\t\t\t\tcontext.write(word, one);\n//\t\t\t\t\n//\t\t\t}\n\t\t\t\n\t\t}", "public static void main(String[] args) {\n\tMap <String, Integer>phones=new HashMap<>();\r\n\tphones.put(\"Mila\", 98232433);\r\n\tphones.put(\"Jenia\", 2834732);\r\n\tphones.put(\"Yerlan\", 77398274);\r\n\tphones.put(\"Mila\",1263584);\r\n\t//last one will override the first one\r\n\t\r\n\tIterator <String> iterator=phones.keySet().iterator();\r\n\twhile (iterator.hasNext()){\r\n\t\tString key=iterator.next();\r\n\t\tInteger value=phones.get(key);\r\n\t\tSystem.out.println(key+\" \"+value);\r\n\t}\r\n\t\r\n\t//store keys in Set\r\n\tSet<String> keys=phones.keySet();\r\n\tfor (String key : keys) {\r\n\t\tSystem.out.println(key);\r\n\t}\r\n\t//store values in Collection\r\n Collection <Integer> val=phones.values();\r\n for (Integer values : val) {\r\n \tSystem.out.println(values);\r\n\t\t\r\n\t}\r\n \r\n Set<Entry<String,Integer>> entry=phones.entrySet();\r\n for (Entry<String, Integer> entry2 : entry) {\r\n\t\t//System.out.println(entry2);\r\n\t\tSystem.out.println(entry2.getKey()+\" \"+entry2.getValue());\r\n\t}\r\n}", "public static void main(String[] args) {\n\t\tMap<String, Integer> priceMap = new HashMap<>(); \n\t\tpriceMap.put(\"TV\", 500); priceMap.put(\"Phone\", 200); \n\t\tpriceMap.put(\"Car\", 20000); priceMap.put(\"Bike\", 6000); \n\t\tpriceMap.put(\"Furniture\", 700); \n\t\n\t\tSystem.out.println(\"price map: \" + priceMap); \n\t\t\n\t\tSet<String> keys = priceMap.keySet(); \n\t\tCollection<Integer> values = priceMap.values();\n\t\t\n\t\tSet<Entry<String, Integer>> entries = priceMap.entrySet(); \n\t\tSystem.out.println(\"keys of Map : \" + keys); \n\t\tSystem.out.println(\"values from Map :\" + values); \n\t\tSystem.out.println(\"entries from Map :\" + entries);\n\n\t\t//Output: price map: {Car=20000, Phone=200, Bike=6000, Furniture=700, TV=500} keys of Map : [Car, Phone, Bike, Furniture, TV] values from Map :[20000, 200, 6000, 700, 500] entries from Map :[Car=20000, Phone=200, Bike=6000, Furniture=700, TV=500]\n\n\t\t\t\t\n\t}", "@Override\r\n protected void reduce(Text key, Iterable<Text> values, Context context)\r\n throws IOException, InterruptedException {\n for (Text value : values) {\r\n\r\n context.write(key, value);\r\n }\r\n }", "String getKeyFormat();", "public void displayWithKeyword()\r\n {\r\n System.out.print(\"[Key]: \" + keyword + \"\\n[Events]: \");\r\n displayWithKeyword(head);\r\n System.out.println(\"\\n-----------------------\");\r\n }", "public void map(Object key, Text value, Context context)\n throws IOException, InterruptedException {\n Scanner line = new Scanner(value.toString());\n line.useDelimiter(\"\\t\");\n author.set(line.next());\n context.write(author, one);\n }", "public static void main(String[] args) {\n Map<String,Float> map =new HashMap<String,Float>();\n map.put(\"sweet\", 12.5f);\n map.put(\"bitter\", 13.9f);\n map.put(\"spicy\", 18.5f);\n \n for (Map.Entry<String, Float>entry\t : map.entrySet()) \n {\n\t // returns value and keys\n \t System.out.println(entry.getKey()+\" \"+entry.getValue());\n\t}\n\t}", "public String toString() {\r\n\t\treturn \"(\" + key + \",\" + value + \")\";\r\n\t}", "@Override\n public int hashCode() {\n int result = 42;\n int prime = 37;\n for (char ch : key.toCharArray()) {\n result = prime * result + (int) ch;\n }\n result = prime * result + summary.length();\n result = prime * result + value;\n return result;\n }", "public void print(){\n\t\tfor (int i=0; i<_size; i++){\n\t\t\tSystem.out.print(_a[i].getKey()+\"; \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "@Override\n public Collection<MetadatumDTO> contributeMetadata(PlainMetadataSourceDto t) {\n List<MetadatumDTO> values = new LinkedList<>();\n for (PlainMetadataKeyValueItem metadatum : t.getMetadata()) {\n if (key.equals(metadatum.getKey())) {\n MetadatumDTO dcValue = new MetadatumDTO();\n dcValue.setValue(metadatum.getValue());\n dcValue.setElement(field.getElement());\n dcValue.setQualifier(field.getQualifier());\n dcValue.setSchema(field.getSchema());\n values.add(dcValue);\n }\n }\n return values;\n }", "@Test public void testToString() {\r\n new LinkedHashMap<String, Word>() {\r\n private static final long serialVersionUID = -284033589685053024L; {\r\n put(\"Test\", w2);\r\n put(\"test'ing\", w4);\r\n }}.forEach((k, v) -> {\r\n assertTrue(\"Should be equal.\", v.toString().equals(k));\r\n });\r\n }" ]
[ "0.5903406", "0.5836053", "0.5799989", "0.5737197", "0.56611043", "0.5647757", "0.5637171", "0.5593293", "0.55859834", "0.5568387", "0.54905325", "0.547796", "0.54532874", "0.54527783", "0.5431625", "0.53595793", "0.5323355", "0.53061754", "0.5302706", "0.5282396", "0.5276865", "0.5273653", "0.52729446", "0.5258622", "0.52463025", "0.5223476", "0.5189497", "0.5185354", "0.51800925", "0.5175999", "0.51728046", "0.5171942", "0.5148613", "0.5147157", "0.51410216", "0.5125909", "0.51244247", "0.51152766", "0.51121724", "0.510829", "0.5108067", "0.5105301", "0.50997686", "0.5097743", "0.509567", "0.50904524", "0.5086037", "0.50816643", "0.5074967", "0.50727296", "0.50694776", "0.506407", "0.50600946", "0.50591403", "0.5054496", "0.5052248", "0.50457", "0.5042847", "0.50410324", "0.5037821", "0.5029584", "0.5028841", "0.50179744", "0.5015102", "0.50150234", "0.4994955", "0.4991141", "0.49823132", "0.4977825", "0.49760997", "0.4972771", "0.4966961", "0.49545404", "0.49472752", "0.49418405", "0.49320024", "0.49314287", "0.49290034", "0.49283144", "0.49271786", "0.4926595", "0.49260926", "0.49259302", "0.4920304", "0.49161774", "0.49157813", "0.49110332", "0.49088943", "0.4906959", "0.4906069", "0.49057853", "0.49024966", "0.49001744", "0.48968795", "0.4895759", "0.4895076", "0.48863918", "0.488623", "0.48857132", "0.48833498", "0.48826662" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<?> forFilterList(Class<?> clazz) { return 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 close() throws SQLException { 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 void cancelQuery() { }
{ "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
test1 to test4: basic test. test5 to test7: more than 15 sequence test. test8 to test10: throw exception test.
@Test public void test1(){ I_Stack<String> is = new I_Stack<String>(); is.push("string1"); is.push("string2"); is.show(System.out); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_7() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_6() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_2() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_1() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_9() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_5() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_4() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "private static void test4() {\n int[] numbers = {4, 5, 1, 6, 2, 7, 2, 8};\n int[] expected = {1, 2};\n\n test(\"Test4\", numbers, expected);\n }", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_10() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\ttest4();\n//\t\ttest7();\n//\t\ttest8();\n//\t\ttest9();\n//\t\ttest10();\n//\t\ttest11();\n//\t\t test13() ;\n\t}", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\t\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void testCaseProcessor3()\n {\n final int START = 3;\n final int STOP = 3;\n try\n {\n testCases(START, STOP);\n }\n catch (FileNotFoundException e)\n {\n fail(\"testCases.txt not found.\");\n }\n catch (IOException e)\n {\n String error = \"Failed to read testCases.txt: \\n\"\n + e.getStackTrace();\n fail(error);\n }\n }", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_6() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(4, LENGTH, MIN, MAX);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, int[][].class);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void testProcessNextStep() {\n for (int i = 0; i < 100; i++) {\n try {\n dataHandler.processNextStep();\n } catch (Exception ex) {\n assertTrue(false);\n }\n assertTrue(true);\n }\n }", "@Test\n\tpublic void test04() throws Throwable {\n\t}", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_7() {\n\t\tint[] decimalBase = {10, 10, 10, 10};\r\n\t\tint i = 1;\r\n\t\t\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, decimalBase, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, int[][].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test08() throws Throwable {\n NucleotideSequence nucleotideSequence0 = mock(NucleotideSequence.class, new ViolatedAssumptionAnswer());\n doReturn(0L, 0L).when(nucleotideSequence0).getLength();\n QualitySequence qualitySequence0 = mock(QualitySequence.class, new ViolatedAssumptionAnswer());\n doReturn(0L).when(qualitySequence0).getLength();\n PhdBuilder phdBuilder0 = new PhdBuilder(\"positions can not be null\", nucleotideSequence0, qualitySequence0);\n PhdBuilder phdBuilder1 = phdBuilder0.fakePeaks();\n phdBuilder1.build();\n PhdBuilder phdBuilder2 = phdBuilder0.copy();\n LinkedList<PhdReadTag> linkedList0 = new LinkedList<PhdReadTag>();\n phdBuilder2.readTags(linkedList0);\n phdBuilder0.fakePeaks();\n phdBuilder1.fakePeaks(19, 19);\n // Undeclared exception!\n try { \n phdBuilder0.fakePeaks(19, 0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // peak spacing must be >0\n //\n verifyException(\"org.jcvi.jillion.assembly.consed.phd.PhdBuilder\", e);\n }\n }", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_2() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 10, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, int[][].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_4_nondecimal() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString ticketId = roc.createTickets(1, true)[0].get(\"ticketId\").getAsString();\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, \r\n\t\t\t\t\t\tuserData, ticketId);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true, ticketId);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void subSequencesTest3() {\n String text = \"wnylazlzeqntfpwtsmabjqinaweaocfewgpsrmyluadlybfgaltgljrlzaaxvjehhygggdsrygvnjmpyklvyilykdrphepbfgdspjtaap\"\n + \"sxrpayholutqfxstptffbcrkxvvjhorawfwaejxlgafilmzrywpfxjgaltdhjvjgtyguretajegpyirpxfpagodmzrhstrxjrpirlbfgkhhce\"\n + \"wgpsrvtuvlvepmwkpaeqlstaqolmsvjwnegmzafoslaaohalvwfkttfxdrphepqobqzdqnytagtrhspnmprtfnhmsrmznplrcijrosnrlwgds\"\n + \"bylapqgemyxeaeucgulwbajrkvowsrhxvngtahmaphhcyjrmielvqbbqinawepsxrewgpsrqtfqpveltkfkqiymwtqssqxvchoilmwkpzermw\"\n + \"eokiraluaammkwkownrawpedhcklrthtftfnjmtfbftazsclmtcssrlluwhxahjeagpmgvfpceggluadlybfgaltznlgdwsglfbpqepmsvjha\"\n + \"lwsnnsajlgiafyahezkbilxfthwsflgkiwgfmtrawtfxjbbhhcfsyocirbkhjziixdlpcbcthywwnrxpgvcropzvyvapxdrogcmfebjhhsllu\"\n + \"aqrwilnjolwllzwmncxvgkhrwlwiafajvgzxwnymabjgodfsclwneltrpkecguvlvepmwkponbidnebtcqlyahtckk\";\n\n String[] expected = new String[6];\n expected[0] = \"wlfaafrdarvgypipgaputcjflmftgepfmrrhpvwllnfofdqqtmhnjlyeewvxhceqpgftysopelkrhhjtmlapcagllpasazflfthohdtrrvobliwnhazafeevpnlk\";\n expected[1] = \"nzpbwemllljggylhdaatprhwgzxdttypzxlhslksmeohkronrpmprwlmubovmylispqkmqizouwactmatlhmedagfmlafktgmfhcjlhxoagjullcrfxbslceoeyk\";\n expected[2] = \"yewjewyytzegvkyespyqtkoaarjhyaiarjbcrvptsgsatpbyhrslogaycawnajvnxspfwxlekakwkftzcujgglldbswjybhktxcizpypppchanlxwawjctgpnba\";\n expected[3] = \"lqtqaglbgahdnlkppshffxrefygjgjrghrfeveaavmllthqtstrrsdpxgjsgprqarrvktvmriaopltfsswevgytwpvslaiwirjfricwgzxmhqjzvljnglrumbth\";\n expected[4] = \"ansiopuflahsjvdbjxoxfvajiwavuepospgwtpeqjzavfezapfmcnsqeurrthmbweqeqqcwmrmwerfbcshaflbzsqjnghlswabsbibwvvdfsrowgwvyowpvwict\";\n expected[5] = \"ztmncsagjxyrmyrftrlsbvwxlpljrgxdtikgumqowaawxpdgnnzirbgalkhahibewtlishkwamndtnflrxgpufngehniexfgwbykxcncyrelwlmkigmdnklkdqc\";\n int keyLen = 6;\n String[] owns = this.ic.subSequences(text, keyLen);\n for (int i = 0; i < expected.length; i++) {\n assertEquals(expected[i], owns[i]);\n }\n }", "@Test\r\n\tpublic void testPositiveGenerateInteger_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegers(10, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void testCaseProcessor1()\n {\n final int START = 1;\n final int STOP = 1;\n try\n {\n testCases(START, STOP);\n }\n catch (FileNotFoundException e)\n {\n fail(\"testCases.txt not found.\");\n }\n catch (IOException e)\n {\n String error = \"Failed to read testCases.txt: \\n\"\n + e.getStackTrace();\n fail(error);\n }\n }", "public static void main(String[] args) {\r\n \tScanner scan = new Scanner(System.in);\r\n \tint testCases = scan.nextInt();\r\n \tString[] str = new String[testCases];\r\n \tscan.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\r\n \t// first constraint\r\n \tif ((testCases >= 1) && (testCases <= 10)) {\r\n \t\tfor (int j = 0; j < testCases; j++) {\r\n \t\t\tstr[j] = scan.next();\r\n \t\t}\r\n \t\tfor (int k = 0; k < str.length; k++) {\r\n \t\t\ttest(str[k]);\r\n \t\t}\r\n \t} else {\r\n \t\tSystem.out.println(\"The number of test cases must be between 1 and 10.\");\r\n \t}\r\n \tscan.close();\r\n \t\r\n }", "public void soaktest() {\n\t\ttry {\n\t\t\tint errCount = 0;\n\n\t\t\tfor (int i = 1; i <= 100; i++) {\n\t\t\t\tRegression test = new Regression();\n\t\t\t\ttest0();\n\t\t\t\ttest.test1(m1);\n\t\t\t\ttest.test2(m1);\n\t\t\t\ttest.test3(m1);\n\t\t\t\ttest.test4(m1);\n\t\t\t\ttest.test5(m1);\n\t\t\t\ttest.test6(m1);\n\t\t\t\ttest.test7(m1, m2);\n\t\t\t\ttest.test8(m1);\n\t\t\t\ttest.test9(m2);\n\t\t\t\ttest.test10(m3);\n\t\t\t\ttest.test11(m1, m2);\n\t\t\t\ttest.test12(m1);\n\t\t\t\ttest.test13(m1);\n\t\t\t\ttest.test14(m1);\n\t\t\t\ttest.test15(m1);\n\t\t\t\ttest.test16(m1);\n\t\t\t\ttest.test17(m1);\n\t\t\t\ttest.test18(m4);\n\t\t\t\ttest.test19(m2, m3);\n\t\t\t\ttest.test97(m1);\n\t\t\t\tif (test.getErrors())\n\t\t\t\t\terrCount++;\n\t\t\t\tif ((i % 10) == 0) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"error count = \" + errCount + \" rounds = \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\tassertTrue(false);\n\t\t}\n\t}", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_9_nondecimal() {\n\t\tint i = 1;\r\n\t\t\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString ticketId = roc.createTickets(1, true)[0].get(\"ticketId\").getAsString();\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, \r\n\t\t\t\t\t\tBASE, userData, ticketId);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true, ticketId);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n\tvoid test() {\n\t\tassertEquals(0, solution1.solution(2147483647));\n\t\tassertEquals(1, solution1.solution(5));\n\t}", "@Test\r\n\tpublic void testPositiveGenerateStrings_2() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateStrings(10, 5, \"abcd\", false), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test(timeout = 500)\n\tpublic void testGetModuloOne() {\n\t\tAssert.fail();\n\t}", "@Test\n public void subSequencesTest1() {\n String text = \"crypt\"\n + \"ograp\"\n + \"hyand\"\n + \"crypt\"\n + \"analy\"\n + \"sis\";\n\n String[] expected = new String[5];\n expected[0] = \"cohcas\";\n expected[1] = \"rgyrni\";\n expected[2] = \"yrayas\";\n expected[3] = \"panpl\";\n expected[4] = \"tpdty\";\n String[] owns = this.ic.subSequences(text, 5);\n for (int i = 0; i < expected.length; i++) {\n assertEquals(expected[i], owns[i]);\n }\n }", "@Test\n public void testCaseProcessor2()\n {\n final int START = 2;\n final int STOP = 2;\n try\n {\n testCases(START, STOP);\n }\n catch (FileNotFoundException e)\n {\n fail(\"testCases.txt not found.\");\n }\n catch (IOException e)\n {\n String error = \"Failed to read testCases.txt: \\n\"\n + e.getStackTrace();\n fail(error);\n }\n }", "@Test\n void no_fall_through() {\n System.out.println(\"Result = \" + no_fall_through(\"TEST_1\"));\n System.out.println(\"Result = \" + no_fall_through(\"TEST_2\"));\n System.out.println(\"Result = \" + no_fall_through(\"TEST\"));\n }", "@Test\n\tpublic void testGive20Back() {\n\t\n\t}", "private void runTest(){\t\t\n\t\t// begin by urueda\n\t\tLogSerialiser.finish(); LogSerialiser.exit();\n\t\tsequenceCount = 1;\n\t\tlastStamp = System.currentTimeMillis();\n\t\tescAttempts = 0; nopAttempts = 0;\n\t\t// end by urueda\t\t\n\t\tboolean problems;\n\t\twhile(mode() != Modes.Quit && moreSequences()){\n\n\t\t\tString generatedSequence = Util.generateUniqueFile(settings.get(ConfigTags.OutputDir) + File.separator + \"sequences\", \"sequence\").getName(); // by urueda\n\t\t\tgeneratedSequenceNumber = new Integer(generatedSequence.replace(\"sequence\", \"\")).intValue();\n\t\t\t// begin by urueda\n\n\t\t\tsutRAMbase = Double.MAX_VALUE; sutRAMpeak = 0.0; sutCPUpeak = 0.0; testRAMpeak = 0.0; testCPUpeak = 0.0;\n\n\t\t\ttry {\n\t\t\t\tLogSerialiser.start(new PrintStream(new BufferedOutputStream(new FileOutputStream(new File(\n\t\t\t\t\tsettings.get(OutputDir) + File.separator + \"logs\" + File.separator + generatedSequence + \".log\")))),\n\t\t\t\t\tsettings.get(LogLevel));\n\t\t\t} catch (NoSuchTagException e3) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te3.printStackTrace();\n\t\t\t} catch (FileNotFoundException e3) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te3.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif (mode() == Modes.GenerateManual)\n\t\t\t\tsetMode(Modes.Spy);\n\t\t\tjipWrapper = new JIPrologWrapper();\n\t\t\t\n\t\t\tGrapher.grapher(generatedSequence,\n\t\t\t\t\t\t\tsettings.get(ConfigTags.SequenceLength).intValue(),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.AlgorithmFormsFilling).booleanValue(),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.TypingTextsForExecutedAction).intValue(),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.TestGenerator),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.MaxReward),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.Discount),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.ExplorationSampleInterval),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.GraphsActivated),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.PrologActivated),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.ForceToSequenceLength) && this.forceToSequenceLengthAfterFail ?\n\t\t\t\t\t\t\t\t\ttrue :\n\t\t\t\t\t\t\t\t\tsettings.get(ConfigTags.GraphResuming),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.OfflineGraphConversion),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.Strategy),\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tjipWrapper);\n\t\t\tGrapher.waitEnvironment();\n\t\t\tScreenshotSerialiser.start(generatedSequence);\n\t\t\t// end by urueda\n\t\t\t\n\t\t\tproblems = false;\n\t\t\tif (!forceToSequenceLengthAfterFail) passSeverity = Verdict.SEVERITY_OK; // by urueda\n\t\t\t//actionCount = 0;\n\t\t\t// begin by urueda\n\t\t\tif (this.forceToSequenceLengthAfterFail){\n\t\t\t\tthis.forceToSequenceLengthAfterFail = false;\n\t\t\t\tthis.testFailTimes++;\n\t\t\t} else{\n\t\t\t\tactionCount = 1;\n\t\t\t\tthis.testFailTimes = 0;\n\t\t\t}\n\t\t\t// end by urueda\n\n\t\t\tLogSerialiser.log(\"Creating new sequence file...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\tfinal File currentSeq = new File(settings.get(ConfigTags.TempDir) + File.separator + \"tmpsequence\");\n\t\t\ttry {\n\t\t\t\tUtil.delete(currentSeq);\n\t\t\t} catch (IOException e2) {\n\t\t\t\tLogSerialiser.log(\"I/O exception deleting <\" + currentSeq + \">\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t}\n\t\t\t//oos = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(currentSeq), 50000000));\n\t\t\t//raf = new RandomAccessFile(currentSeq, \"rw\");\n\t\t\t//oos = new ObjectOutputStream(new FileOutputStream(raf.getFD()));\n\t\t\t// begin by urueda\n\t\t\ttry {\n\t\t\t\t//TestSerialiser.start(new RandomAccessFile(currentSeq, \"rw\"));\n\t\t\t\tTestSerialiser.start(new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(currentSeq))));\n\t\t\t\tLogSerialiser.log(\"Created new sequence file!\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t} catch (IOException e) {\n\t\t\t\tLogSerialiser.log(\"I/O exception creating new sequence file\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t}\n\t\t\t//} catch (FileNotFoundException e1) {\n\t\t\t//\tLogSerialiser.log(\"File not found exception creating random test file\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t//}\n\t\t\t// end by urueda\n\n\t\t\tLogSerialiser.log(\"Building canvas...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t//Canvas cv = buildCanvas();\n\t\t\tthis.cv = buildCanvas(); // by urueda\n\t\t\t//logln(Util.dateString(\"dd.MMMMM.yyyy HH:mm:ss\") + \" Starting system...\", LogLevel.Info);\n\t\t\t// begin by urueda\n\t\t\tString startDateString = Util.dateString(DATE_FORMAT);\n\t\t\tLogSerialiser.log(startDateString + \" Starting SUT ...\\n\", LogSerialiser.LogLevel.Info);\n\t\t\t// end by urueda\n\t\t\t\n\t\t\tSUT system = null;\n\t\t\t\n\t\t\ttry{ // by urueda\n\n\t\t\t\tsystem = startSystem();\n\n\t\t\t\tlastCPU = NativeLinker.getCPUsage(system); // by urueda\n\t\t\t\t\n\t\t\t\t//SUT system = WinProcess.fromProcName(\"firefox.exe\");\n\t\t\t\t//logln(\"System is running!\", LogLevel.Debug);\n\t\t\t\tLogSerialiser.log(\"SUT is running!\\n\", LogSerialiser.LogLevel.Debug); // by urueda\n\t\t\t\t//logln(\"Starting sequence \" + sequenceCount, LogLevel.Info);\n\t\t\t\tLogSerialiser.log(\"Starting sequence \" + sequenceCount + \" (output as: \" + generatedSequence + \")\\n\\n\", LogSerialiser.LogLevel.Info); // by urueda\n\t\t\t\tbeginSequence();\n\t\t\t\tLogSerialiser.log(\"Obtaining system state...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\tState state = getState(system);\n\t\t\t\tLogSerialiser.log(\"Successfully obtained system state!\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\tsaveStateSnapshot(state);\n\t\n\t\t\t\tTaggable fragment = new TaggableBase();\n\t\t\t\tfragment.set(SystemState, state);\n\t\t\t\t\t\t\t\n\t\t\t\tVerdict verdict = state.get(OracleVerdict, Verdict.OK);\n\t\t\t\tif (faultySequence) problems = true;\n\t\t\t\tfragment.set(OracleVerdict, verdict); // by urueda\t\t\t\t\t\n\t\t\t\tint waitCycleIdx = 0;\n\t\t\t\tlong[] waitCycles = new long[]{1, 10, 25, 50}; // ms\n\t\t\t\tlong spyCycle = -1;\n\t\t\t\tString stateID, lastStateID = state.get(Tags.ConcreteID);\n\t\t\t\t// end by urueda\n\t\t\t\twhile(mode() != Modes.Quit && moreActions(state)){\n\t\t\t\t\tif (problems)\n\t\t\t\t\t\tfaultySequence = true; // by urueda\n\t\t\t\t\telse{\n\t\t\t\t\t\tproblems = runAction(cv,system,state,fragment);\n\t\t\t\t\t\t// begin by urueda\n\t\t\t\t\t\tif (mode() == Modes.Spy){\n\t\t\t\t\t\t\tstateID = state.get(Tags.ConcreteID);\n\t\t\t\t\t\t\tif (stateID.equals(lastStateID)){\n\t\t\t\t\t\t\t\tif (System.currentTimeMillis() - spyCycle > waitCycles[waitCycleIdx]){\n\t\t\t\t\t\t\t\t\tspyCycle = System.currentTimeMillis();\n\t\t\t\t\t\t\t\t\tif (waitCycleIdx < waitCycles.length - 1)\n\t\t\t\t\t\t\t\t\t\twaitCycleIdx++;\n\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\t\tlastStateID = stateID;\n\t\t\t\t\t\t\t\twaitCycleIdx = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// end by urueda\n\t\t\t\t\t\tLogSerialiser.log(\"Obtaining system state...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\t\t\tstate = getState(system);\n\t\t\t\t\t\tif (faultySequence) problems = true; // by urueda\n\t\t\t\t\t\tLogSerialiser.log(\"Successfully obtained system state!\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\t\t\tif (mode() != Modes.Spy){ // by urueda\n\t\t\t\t\t\t\tsaveStateSnapshot(state);\n\t\t\t\t\t\t\tverdict = state.get(OracleVerdict, Verdict.OK);\n\t\t\t\t\t\t\tfragment.set(OracleVerdict, verdict); // by urueda\t\t\t\t\t\t\n\t\t\t\t\t\t\tfragment = new TaggableBase();\n\t\t\t\t\t\t\tfragment.set(SystemState, state);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t//logln(\"Shutting down system...\", LogLevel.Info);\n\t\t\t\tLogSerialiser.log(\"Shutting down the SUT...\\n\", LogSerialiser.LogLevel.Info); // by urueda\n\t\t\t\tstopSystem(system); // by urueda\n\t\t\t\tif (system != null && system.isRunning()) // by urueda\n\t\t\t\t\tsystem.stop();\n\t\t\t\t//logln(\"System has been shut down!\", LogLevel.Debug);\n\t\t\t\t// begin by urueda\n\t\t\t\tLogSerialiser.log(\"... SUT has been shut down!\\n\", LogSerialiser.LogLevel.Debug);\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tScreenshotSerialiser.finish();\n\t\t\t\tLogSerialiser.log(\"Writing fragment to sequence file...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\t//oos.writeObject(fragment);\n\t\t\t\tTestSerialiser.write(fragment);\n\t\t\t\tTestSerialiser.finish();\n\t\t\t\tLogSerialiser.log(\"Wrote fragment to sequence file!\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\t\n\t\t\t\tGrapher.walkFinished(!problems,\n\t\t\t\t\t\t \t\t\t mode() == Modes.Spy ? null : state,\n\t\t\t\t\t\t \t\t\t protocolUtil.getStateshot(state));\n\t\t\t\t\n\t\t\t\tLogSerialiser.log(\"Sequence \" + sequenceCount + \" finished.\\n\", LogSerialiser.LogLevel.Info);\n\t\t\t\tif(problems)\n\t\t\t\t\tLogSerialiser.log(\"Sequence contained problems!\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\t\t\t\t\t\n\t\t\t\tfinishSequence(currentSeq);\n\t\n\t\t\t\tSystem.out.println(\"currentseq: \" + currentSeq);\n\t\t\t\t\n\t\t\t\tVerdict finalVerdict = verdict.join(new Verdict(passSeverity,\"\",Util.NullVisualizer));\n\t\t\t\t\n\t\t\t\tif (!settings().get(ConfigTags.OnlySaveFaultySequences) ||\n\t\t\t\t\tfinalVerdict.severity() >= settings().get(ConfigTags.FaultThreshold)){ // by urueda{\n\t\t\t\t\t//String generatedSequence = Util.generateUniqueFile(settings.get(ConfigTags.OutputDir) + File.separator + \"sequences\", \"sequence\").getName();\n\t\t\t\t\tLogSerialiser.log(\"Copying generated sequence (\\\"\" + generatedSequence + \"\\\") to output directory...\\n\", LogSerialiser.LogLevel.Info);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tUtil.copyToDirectory(currentSeq.getAbsolutePath(),\n\t\t\t\t\t\t\t\tsettings.get(ConfigTags.OutputDir) + File.separator + \"sequences\", \n\t\t\t\t\t\t\t\tgeneratedSequence,\n\t\t\t\t\t\t\t\ttrue); // by urueda\n\t\t\t\t\t\tLogSerialiser.log(\"Copied generated sequence to output directory!\\n\", LogSerialiser.LogLevel.Debug);\t\t\t\t\t\n\t\t\t\t\t} catch (NoSuchTagException e) {\n\t\t\t\t\t\tLogSerialiser.log(\"No such tag exception copying test sequence\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tLogSerialiser.log(\"I/O exception copying test sequence\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\t\t}\n\t\t\t\t\tcopyClassifiedSequence(generatedSequence, currentSeq, finalVerdict);\n\t\t\t\t}\n\t\t\t\tif(!problems)\n\t\t\t\t\tthis.forceToSequenceLengthAfterFail = false;\n\t\n\t\t\t\tLogSerialiser.log(\"Releasing canvas...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\tcv.release();\n\t\t\t\t\n\t\t\t\tsaveSequenceMetrics(generatedSequence,problems);\n\t\t\t\t\n\t\t\t\tif (ConfigTags.Strategy != null && !ConfigTags.Strategy.equals(\"\")){\n\t\t\t\t\tSystem.out.println(\"It's a strategy test generator\");\n\t\t\t\t\tsaveStrategyMetrics(generatedSequence,problems);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tScreenshotSerialiser.exit(); final String[] report = Grapher.getReport(); // screenshots must be serialised\n\t\t\t\tTestSerialiser.exit();\n\t\t\t\tString stopDateString = Util.dateString(DATE_FORMAT),\n\t\t\t\t\t durationDateString = Util.diffDateString(DATE_FORMAT, startDateString, stopDateString);\n\t\t\t\tLogSerialiser.log(\"TESTAR stopped execution at \" + stopDateString + \"\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\tLogSerialiser.log(\"Test duration was \" + durationDateString + \"\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\tLogSerialiser.flush(); LogSerialiser.finish(); LogSerialiser.exit();\n\n\t\t\t\t// save report\n\t\t\t\tthis.saveReportPage(generatedSequence, \"clusters\", report[0]);\n\t\t\t\tthis.saveReportPage(generatedSequence, \"testable\", report[1]);\n\t\t\t\tthis.saveReportPage(generatedSequence, \"curve\", report[2]);\n\t\t\t\tthis.saveReportPage(generatedSequence, \"stats\", report[3]);\n\t\t\t\t// end by urueda\n\t\t\t\t\n\t\t\t\tsequenceCount++;\n\t\t\t\t\n\t\t\t// begin by urueda\n\t\t\t} catch(Exception e){\n\t\t\t\tthis.killTestLaunchedProcesses();\n\t\t\t\tScreenshotSerialiser.finish();\n\t\t\t\tTestSerialiser.finish();\t\t\t\t\n\t\t\t\tGrapher.walkFinished(false, null, null);\n\t\t\t\tScreenshotSerialiser.exit(); LogSerialiser.log(Grapher.getReport() + \"\\n\", LogSerialiser.LogLevel.Info); // screenshots must be serialised\n\t\t\t\tLogSerialiser.log(\"Exception <\" + e.getMessage() + \"> has been caught\\n\", LogSerialiser.LogLevel.Critical); // screenshots must be serialised\n\t\t\t\tint i=1; StringBuffer trace = new StringBuffer();\n\t\t\t\tfor(StackTraceElement t : e.getStackTrace())\n\t\t\t\t trace.append(\"\\n\\t[\" + i++ + \"] \" + t.toString());\n\t\t\t\tSystem.out.println(\"Exception <\" + e.getMessage() + \"> has been caught; Stack trace:\" + trace.toString());\n\t\t\t\tif (system != null)\n\t\t\t\t\tsystem.stop();\n\t\t\t\tTestSerialiser.exit();\n\t\t\t\tLogSerialiser.flush(); LogSerialiser.finish(); LogSerialiser.exit();\n\t\t\t\tthis.mode = Modes.Quit; // System.exit(1);\n\t\t\t}\n\t\t}\n\t\tif (settings().get(ConfigTags.ForceToSequenceLength).booleanValue() && // force a test sequence length in presence of FAIL\n\t\t\t\tthis.actionCount <= settings().get(ConfigTags.SequenceLength) && mode() != Modes.Quit){\n\t\t\tthis.forceToSequenceLengthAfterFail = true;\n\t\t\tSystem.out.println(\"Resuming test after FAIL at action number <\" + this.actionCount + \">\");\n \t\t\trunTest(); // continue testing\n\t\t} else\n\t\t\tthis.forceToSequenceLengthAfterFail = false;\t\t\t\n\t\t// end by urueda\n\t}", "@Test(timeout = 500)\n\tpublic void testGetNthPrime() {\n\t\tAssert.fail();\n\t}", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_1() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, int[][].class);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n String string0 = \"confidences must all have the same length\";\n NucleotideSequence nucleotideSequence0 = mock(NucleotideSequence.class, new ViolatedAssumptionAnswer());\n doReturn(0L).when(nucleotideSequence0).getLength();\n QualitySequence qualitySequence0 = mock(QualitySequence.class, new ViolatedAssumptionAnswer());\n doReturn(0L).when(qualitySequence0).getLength();\n PhdBuilder phdBuilder0 = new PhdBuilder(\"confidences must all have the same length\", nucleotideSequence0, qualitySequence0);\n PhdBuilder phdBuilder1 = phdBuilder0.copy();\n phdBuilder0.build();\n PhdBuilder phdBuilder2 = phdBuilder0.copy();\n LinkedList<PhdReadTag> linkedList0 = new LinkedList<PhdReadTag>();\n PhdBuilder phdBuilder3 = phdBuilder1.readTags(linkedList0);\n phdBuilder3.readTags(linkedList0);\n PhdBuilder phdBuilder4 = phdBuilder0.readTags(linkedList0);\n phdBuilder0.build();\n phdBuilder1.build();\n phdBuilder4.copy();\n phdBuilder0.build();\n phdBuilder2.fakePeaks(908, 908);\n NucleotideSequence nucleotideSequence1 = mock(NucleotideSequence.class, new ViolatedAssumptionAnswer());\n doReturn(0L).when(nucleotideSequence1).getLength();\n QualitySequence qualitySequence1 = mock(QualitySequence.class, new ViolatedAssumptionAnswer());\n ArtificialPhd artificialPhd0 = new ArtificialPhd(\"nil20l,4'/-(tXQZ&X\", nucleotideSequence1, qualitySequence1, 908);\n // Undeclared exception!\n try { \n artificialPhd0.getPositionSequence();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // initial capacity should be > 0 :0\n //\n verifyException(\"org.jcvi.jillion.internal.core.util.GrowableShortArray\", e);\n }\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n NucleotideSequence nucleotideSequence0 = mock(NucleotideSequence.class, new ViolatedAssumptionAnswer());\n doReturn(0L, 0L).when(nucleotideSequence0).getLength();\n QualitySequence qualitySequence0 = mock(QualitySequence.class, new ViolatedAssumptionAnswer());\n doReturn(0L).when(qualitySequence0).getLength();\n PhdBuilder phdBuilder0 = new PhdBuilder(\"positions can not be null\", nucleotideSequence0, qualitySequence0);\n PhdBuilder phdBuilder1 = phdBuilder0.fakePeaks();\n phdBuilder1.build();\n LinkedList<PhdReadTag> linkedList0 = new LinkedList<PhdReadTag>();\n PhdBuilder phdBuilder2 = phdBuilder0.readTags(linkedList0);\n phdBuilder1.copy();\n LinkedList<PhdWholeReadItem> linkedList1 = new LinkedList<PhdWholeReadItem>();\n phdBuilder2.wholeReadItems(linkedList1);\n phdBuilder2.fakePeaks();\n phdBuilder2.readTags(linkedList0);\n // Undeclared exception!\n try { \n phdBuilder2.fakePeaks(0, 0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // first peak position must be >0\n //\n verifyException(\"org.jcvi.jillion.assembly.consed.phd.PhdBuilder\", e);\n }\n }", "@Test\n\tpublic void test61() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//bug 10\n\t\tfor(int i =0;i<200;i++) {\n\t\t\tboolean dummy = RegExpMatcher.matches(String.valueOf(i), \"([0-9])+\");\n\t\t\tif(!dummy) {\n\t\t\t\t//System.err.print(i);\n \t\t\t\tassertTrue(dummy);\t\n\t\t\t\t}\n\t\t\telse {\n\t\t\t\t//System.out.println(\"no bug on index \"+i);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//System.out.println(\"hello\");\n\t\t//assertTrue(RegExpMatcher.matches(\"\", \"([0-9])+\"));\n\t}", "@Test\n public void testGetNext() throws Exception {\n//TODO: Test goes here... \n }", "public void test_subSequence() {\n assertTrue(\"Incorrect substring returned\", hw1.subSequence(0, 5).equals(\n \"Hello\") && (hw1.subSequence(5, 10).equals(\"World\")));\n assertTrue(\"not identical\", hw1.subSequence(0, hw1.length()) == hw1);\n\n try {\n hw1.subSequence(0, Integer.MAX_VALUE);\n fail(\"IndexOutOfBoundsException was not thrown.\");\n } catch(IndexOutOfBoundsException ioobe) {\n //expected\n }\n\n try {\n hw1.subSequence(Integer.MAX_VALUE, hw1.length());\n fail(\"IndexOutOfBoundsException was not thrown.\");\n } catch(IndexOutOfBoundsException ioobe) {\n //expected\n }\n\n try {\n hw1.subSequence(-1, hw1.length());\n fail(\"IndexOutOfBoundsException was not thrown.\");\n } catch(IndexOutOfBoundsException ioobe) {\n //expected\n }\n }", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_4_decimal() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString ticketId = roc.createTickets(1, true)[0].get(\"ticketId\").getAsString();\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 10, \r\n\t\t\t\t\t\tuserData, ticketId);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, int[][].class, true, ticketId);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateInteger_5() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[] response = roc.generateIntegers(10, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[] response2 = roc.generateIntegers(10, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegers(10, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegers(10, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public static void main (String args[]) {\n\t\tteste01();\n\t\tteste02();\n\t\tteste03();\n\t\t//teste04();\n\t}", "@Test\n public void testNextWaiting() {\n }", "@Test\n public void z_topDown_TC02() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n }", "@Test\r\n\tpublic void testPositiveGenerateStrings_1() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateStrings(10, 5, \"abcd\"), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test10() throws Exception {\n try {\n tester.testOnNestedClasses(Story10, testClass);\n Assert.fail();\n } catch (StoryTestException e) {\n Assert.assertEquals(\"Then C's y is 2\", e.getSentence());\n Assert.assertEquals(1, e.getNumFail()); // If this fails, it means your back-up is wrong.\n List<String> expected = new LinkedList<>();\n expected.add(\"2\");\n Assert.assertEquals(expected, e.getStoryExpected());\n List<String> actual = new LinkedList<>();\n actual.add(\"3\");\n Assert.assertEquals(actual, e.getTestResult());\n }\n }", "@Test\n public void test9() {\n try {\n cashRegister.addPennies(-2);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addDimes(-1);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addDimes(-1);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addFives(-3);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addNickels(-100);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addNickels(-1);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addOnes(-1);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addQuarters(-5);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addTens(-5);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n }", "@Test\n public void test5() throws Exception {\n class mini_tests {\n public void test5_1() {\n try {\n tester.testOnInheritanceTree(Story5_1, testClass);\n Assert.fail();\n }\n catch (WhenNotFoundException e) {\n Assert.assertTrue(true);\n }\n catch (Throwable e) {\n Assert.fail();\n }\n }\n public void test5_2() {\n try {\n tester.testOnInheritanceTree(Story5_2, testClass);\n Assert.fail();\n }\n catch (GivenNotFoundException e) {\n Assert.assertTrue(true);\n }\n catch (Throwable e) {\n Assert.fail();\n }\n }\n public void test5_3() {\n try {\n tester.testOnInheritanceTree(Story5_3, testClass);\n Assert.fail();\n } catch (ThenNotFoundException e) {\n Assert.assertTrue(true);\n } catch (Throwable e) {\n Assert.fail();\n }\n }\n }\n mini_tests t = new mini_tests();\n t.test5_1();\n t.test5_2();\n t.test5_3();\n }", "public void test5() {\n\t\t\n\t}", "@Test\n\tpublic void testSequence(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement decl = f.createDeclNode(x);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tStatement seq = f.createSequenceNode(decl, assign);\n\t\tassertEquals(seq.textRepresentation(), \"var x; x = 1 + 2;\");\n\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tseq.accept(v);\n\t\tassertEquals(\"sequence test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"sequence test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"sequence test3 fail\", v.decCount, 1);\n\t\tassertEquals(\"sequence test4 fail\", v.seqCount, 1);\n\t\tassertEquals(\"sequence test5 fail\", v.assignCount, 1);\n\t\tassertEquals(\"sequence test6 fail\", v.varCount, 0);\n\t\tassertEquals(\"sequence test7 fail\", v.strCount, 0);\n\t\tassertEquals(\"sequence test8 fail\", v.prefixCount, 0);\n\t}", "@Test(expected = IllegalStateException.class)\n\tpublic void testException() {\n\t\tsubGen.subset(11);\n\t}", "@Test\n public void test15() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1335,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test15\");\n String[] stringArray0 = new String[12];\n // Undeclared exception!\n try {\n IteratorUtils.arrayIterator(stringArray0, 13);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // Start index must not be greater than the array length\n //\n }\n }", "public static void runRandom() throws Exception {\r\n\t\ti = (int) (Math.random()*10)+1;\r\n\t\tfor (int a = 1;a <= i;a++) {\r\n\t\t\ttestRun(a);\r\n\t\t\tSystem.out.println(\"\\n\\n\");\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_5_nondecimal() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, \r\n\t\t\t\t\t\tidentifier, null, userData, null);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true);\r\n\t\t\t\t\r\n\t\t\t\tHashMap<String,Object> o2 = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, \r\n\t\t\t\t\t\tidentifier, null, userData, null);\r\n\t\t\t\tcollector.checkThat(o.get(\"data\"), equalTo(o2.get(\"data\")));\r\n\t\t\t\t\r\n\t\t\t\to = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, date, null, userData, null);\r\n\t\t\t\to2 = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, date, null, userData, null);\r\n\t\t\t\tcollector.checkThat(o.get(\"data\"), equalTo(o2.get(\"data\")));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateStrings_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[] response = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[] response2 = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\r\n\t\t\t\tresponse = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[6];\n byteArray0[1] = (byte)78;\n Range range0 = Range.ofLength(0L);\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec1.iterator(byteArray0, range0);\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.INSTANCE;\n // Undeclared exception!\n try { \n defaultNucleotideCodec2.getNumberOfGapsUntil(byteArray0, (byte)78);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n public void test7() throws Exception {\n try {\n tester.testOnInheritanceTree(Story7, testClass);\n Assert.fail();\n } catch (StoryTestException e) {\n Assert.assertEquals(\"Then A's z is Word or A's z is WORd or A's z is word or A's z is WOrd\", e.getSentence());\n Assert.assertEquals(2, e.getNumFail());\n List<String> expected = new LinkedList<>();\n expected.add(\"Word\");\n expected.add(\"WORd\");\n expected.add(\"word\");\n expected.add(\"WOrd\");\n Assert.assertEquals(expected, e.getStoryExpected());\n List<String> actual = new LinkedList<>();\n actual.add(\"WORD\");\n actual.add(\"WORD\");\n actual.add(\"WORD\");\n actual.add(\"WORD\");\n Assert.assertEquals(actual, e.getTestResult());\n }\n catch (ThenNotFoundException e) {\n Assert.fail();\n }\n }", "@Test\n public void testRangeMultipleIterations() {\n final int start = 1;\n final int max = 7;\n final int step = 2;\n\n final List<Integer> seq = new ArrayList<>();\n final IntegerSequence.Range r = IntegerSequence.range(start, max, step);\n\n final int numTimes = 3;\n for (int n = 0; n < numTimes; n++) {\n seq.clear();\n for (Integer i : r) {\n seq.add(i);\n }\n Assert.assertEquals(4, seq.size());\n Assert.assertEquals(seq.size(), r.size());\n }\n }", "@Test public void testAllSimple10() { testAll(1234, \"1234\", 10); }", "@Test\n public void test8(){\n\n }", "public void testSequenceNumWrapAround() {\n\t\tByteStreamNALUnit[] stream = new ByteStreamNALUnit[70000];\n\t\tfor (int i = 0; i < stream.length; i++) {\n\t\t\tstream[i] = new ByteStreamNALUnit(START_CODE_4, SAMPLE_STREAM[3].nalUnit, i);\n\t\t}\n\n\t\tStreamVerifier verifier = new StreamVerifier(stream);\n\t\tSdlSession session = createTestSession();\n\t\tRTPH264Packetizer packetizer = null;\n\t\ttry {\n\t\t\tpacketizer = new RTPH264Packetizer(verifier, SessionType.NAV, SESSION_ID, session);\n\t\t} catch (IOException e) {\n\t\t\tfail();\n\t\t}\n\t\tMockVideoApp encoder = new MockVideoApp(packetizer);\n\n\t\ttry {\n\t\t\tpacketizer.start();\n\t\t} catch (IOException e) {\n\t\t\tfail();\n\t\t}\n\n\t\tencoder.inputByteStreamWithArray(stream);\n\t\ttry {\n\t\t\tThread.sleep(2000, 0);\n\t\t} catch (InterruptedException e) {}\n\n\t\tpacketizer.stop();\n\t\tassertEquals(stream.length, verifier.getPacketCount());\n\t}", "@Test\r\n\tpublic void testPositiveGenerateInteger_2() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegers(10, 0, 10, false), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "private boolean doTestsPass()\r\n {\r\n return minimalSteps(\"ABCDABCE\") == 8 && minimalSteps(\"ABCABCE\") == 5;\r\n }", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_9_decimal() {\n\t\tint[] decimalBase = {10, 10, 10, 10};\r\n\t\tint i = 1;\r\n\t\t\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString ticketId = roc.createTickets(1, true)[0].get(\"ticketId\").getAsString();\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(4, LENGTH, MIN, \r\n\t\t\t\t\t\tMAX, REPLACEMENT, decimalBase, userData, ticketId);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, int[][].class, true, ticketId);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_5_decimal() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 10, \r\n\t\t\t\t\t\tidentifier, null, userData, null);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, int[][].class, true);\r\n\t\t\t\t\r\n\t\t\t\tHashMap<String,Object> o2 = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 10, \r\n\t\t\t\t\t\tidentifier, null, userData, null);\r\n\t\t\t\tcollector.checkThat(o.get(\"data\"), equalTo(o2.get(\"data\")));\r\n\t\t\t\t\r\n\t\t\t\to = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 10, date, null, userData, null);\r\n\t\t\t\to2 = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 10, date, null, userData, null);\r\n\t\t\t\tcollector.checkThat(o.get(\"data\"), equalTo(o2.get(\"data\")));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void testDAM30601001() {\n testDAM30102001();\n }", "static void executeTest() {\n int[] param1 = { // Checkpoint 1\n 12, 11, 10, -1, -15,};\n boolean[] expect = { // Checkpoint 2\n true, false,true, false, true,}; \n System.out.printf(\"課題番号:%s, 学籍番号:%s, 氏名:%s\\n\",\n question, gakuban, yourname);\n int passed = 0;\n for (int i = 0; i < param1.length; i++) {\n String info1 = \"\", info2 = \"\";\n Exception ex = null;\n boolean returned = false; //3\n try {\n returned = isDivable(param1[i]); //4\n if (expect[i] == (returned)) { //5\n info1 = \"OK\";\n passed++;\n } else {\n info1 = \"NG\";\n info2 = String.format(\" <= SHOULD BE %s\", expect[i]);\n }\n } catch (Exception e) {\n info1 = \"NG\";\n info2 = \"EXCEPTION!!\";\n ex = e;\n } finally {\n String line = String.format(\"*** Test#%d %s %s(%s) => \",\n i + 1, info1, method, param1[i]);\n if (ex == null) {\n System.out.println(line + returned + info2);\n } else {\n System.out.println(line + info2);\n ex.printStackTrace();\n return;\n }\n }\n }\n System.out.printf(\"Summary: %s,%s,%s,%d/%d\\n\",\n question, gakuban, yourname, passed, param1.length);\n }", "@Test\r\n\tpublic void testPositiveGenerateInteger_4() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[] response = roc.generateIntegers(10, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[] response2 = roc.generateIntegers(10, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegers(10, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegers(10, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "@Test\n public void test1And2And6() {\n int[] numbers = {1, 2, 6};\n assertTrue(obj.firstLast6(numbers));\n }", "public static void main(String[] args) {\n int val = determineSequence(7);\n System.out.println(val);\n }", "@Test\n public void subSequencesTest2() {\n String text = \"hashco\"\n + \"llisio\"\n + \"nsarep\"\n + \"ractic\"\n + \"allyun\"\n + \"avoida\"\n + \"blewhe\"\n + \"nhashi\"\n + \"ngaran\"\n + \"domsub\"\n + \"setofa\"\n + \"larges\"\n + \"etofpo\"\n + \"ssible\"\n + \"keys\";\n\n String[] expected = new String[6];\n expected[0] = \"hlnraabnndslesk\";\n expected[1] = \"alsalvlhgoeatse\";\n expected[2] = \"siacloeaamtroiy\";\n expected[3] = \"hsrtyiwsrsogfbs\";\n expected[4] = \"cieiudhhaufepl\";\n expected[5] = \"oopcnaeinbasoe\";\n String[] owns = this.ic.subSequences(text, 6);\n for (int i = 0; i < expected.length; i++) {\n assertEquals(expected[i], owns[i]);\n }\n }", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "@Test\n\tpublic void test4() {\n\t}", "@Test\r\n\tpublic void testEvery15thElement() {\r\n\t\tfor (int i = 14; i < fb.fizzBuzzed().length; i+=15) {\r\n\t\t\t\tAssert.assertEquals(\"FizzBuzz\", fb.fizzBuzzed()[i]);\r\n\t\t}\r\n\t}", "@Test\n public void testingTheSixFlatbed2017Order() {\n }", "public static void main(String[] args) {\n\n\n for (int i = 0; i < 3; i++) {\n System.out.println(\"\\n********* TEST \" + (i+1) + \" *********\");\n experimentOne(false);\n experimentOne(true);\n\n experimentTwo(false);\n experimentTwo(true);\n\n experimentThree(false);\n experimentThree(true);\n }\n }", "@Test(priority = 0)\n\t public void testSurahLists_From_Surah_0_10_OnAlQuranPage() throws\n\t Exception {\n\t System.out.println(\"<------Testing Surah Lists From_Surah_1_10 On Al-Quran Page------->\\n\");\n\t testSurahs_chunk_wise(0, 10);\n\t }", "@Test\n\tpublic void testThrowOn11thFrame() {\n\t\tScoresheet s = new Scoresheet();\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\ts.addThrow(4);\n\t\tassertEquals(s.addThrow(9), -1);\n\t}", "@Test\n public void hailstoneSequenceEven() {\n List<Integer> expected = new ArrayList<>();\n expected.add(12);\n expected.add(6);\n expected.add(3);\n expected.add(10);\n expected.add(5);\n expected.add(16);\n expected.add(8);\n expected.add(4);\n expected.add(2);\n expected.add(1);\n assertThat(ComputeStuff.hailstoneSequence(12), is(expected));\n }", "@Test\n public void z_topDown_TC03() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n\n Statistica statistica = appService.getStatistica();\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"Literatura\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"Literatura\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"M\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"M\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"A\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"A\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"B\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"B\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"C\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"C\")==1);\n\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n } catch (NotAbleToCreateStatisticsException e) {\n assertTrue(false);\n }\n }", "@Test(timeout = 4000)\n public void test08() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[5];\n byte byte0 = (byte)0;\n byte byte1 = (byte)83;\n byte byte2 = (byte)3;\n byte byte3 = (byte)0;\n byte byte4 = (byte)0;\n Range range0 = Range.ofLength(3149L);\n // Undeclared exception!\n try { \n defaultNucleotideCodec0.iterator(byteArray0, range0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // range [ 0 .. 3148 ]/0B is out of range of sequence which is only [ 0 .. -1 ]/0B\n //\n verifyException(\"org.jcvi.jillion.core.residue.nt.DefaultNucleotideCodec$IteratorImpl\", e);\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tboolean flag = false;\n\t\tString str = null;\n\t\tint retry = 8;\n\t\tint b=0;\n\t\t\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"b=\"+b); \n\t\t\t\tint a = 10/b;\n\t\t\t\t\n\t\t\t}catch(Exception e) {\n\t\t\t\tflag = true;\n\t\t\t\tb=1;\n\t\t\t\tretry--;\n\t\t\t\t\n\t\t\t\tif (retry == 0) {\n throw e;\n }\n\t\t\t}\n\t\t\t\n\t\t}while(flag && retry >0);\n\t\t\n\t}", "@Test\n public void proximaSequencia(){\n\n }", "@org.junit.Test\n public void everyNthChar() {\n }", "@Test\n public void test() {\n\n testBookExample();\n // testK5();\n // testK3_3();\n }", "@Test(priority = 11)\n\t public void testJuzLists_From_Juz_0_10_OnAlQuranPage() throws Exception {\n\t System.out.println(\"<------Testing Juz Lists From_Juz_1_10 On Al-Quran Page------->\\n\");\n\t testJuz_chunk_wise(0, 10);\n\t }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.q();\n Component component1 = component0.span();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Block_2\", component1.getComponentId());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testQAP15() {\n CuteNetlibCase.doTest(\"QAP15.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tmyExceptionTest(90);\n\t\t\t//myExceptionTest(190);\n\t\t\tSystem.out.println(\"after exeption\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally{\n\t\t\tSystem.out.println(\"I will be executed always\");\n\t\t}\n\t\n\n\t}", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n String[] stringArray0 = new String[7];\n Discretize.main(stringArray0);\n assertEquals(7, stringArray0.length);\n }", "@Test(expectedExceptions = IOException.class, invocationCount = 3)\n public void testCase1() throws IOException {\n System.out.println(\"run testcase1\");\n throw new IOException(\"in test case 1\");\n }", "public void testGame1EmulateIncorrectAnswers() {\n int[] indicators;\n MainPage mainPage = getMainPage();\n GameObjectImpl game1 = mainPage.gameOpen(1);\n game1.waitIndicatorsLoad();\n indicators = game1.getIndicators();\n int qtyTasksBeforeCycle = indicators[3];\n int tasksFailedBeforeCycle = indicators[1];\n for(int iter = 0; iter < qtyTasksBeforeCycle - 1; iter++) {\n game1.waitTaskBegin();\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n indicators = game1.getIndicators();\n int varTasksPassedBegin = indicators[0];\n int varTasksFailedBegin = indicators[1];\n int varTasksRemainBegin = indicators[2];\n int qtyTasksInLoopBegin = indicators[3];\n\n String[] partsOfTask = game1.getPartsOfTask();\n String firstNumberVar = partsOfTask[0];\n String secondNumberVar = partsOfTask[1];\n String operationVar = partsOfTask[2];\n int actualResult = game1.getResultWithKeys(firstNumberVar, secondNumberVar, operationVar);\n // press wrong button\n String strActualResult = Integer.toString(actualResult + 1);\n for (int i = 0; i < strActualResult.length(); i++) {\n String subStr = strActualResult.substring(i, i + 1);\n game1.pressButton((subStr));\n }\n //press correct button\n strActualResult = Integer.toString(actualResult);\n for (int i = 0; i < strActualResult.length(); i++) {\n String subStr = strActualResult.substring(i, i + 1);\n game1.pressButton((subStr));\n }\n indicators = game1.getIndicators();\n int varTasksPassedEnd = indicators[0];\n int varTasksFailedEnd = indicators[1];\n int varTasksRemainEnd = indicators[2];\n int qtyTasksInLoopEnd = indicators[3];\n\n assert varTasksRemainEnd == varTasksRemainBegin : \"positiveTestCorrectAnswers: tasks remain\";//\n assert varTasksFailedEnd == (varTasksFailedBegin + 1) : \"positiveTestCorrectAnswers: tasks failed\";\n assert varTasksPassedEnd == varTasksPassedBegin : \"positiveTestCorrectAnswers: tasks passed\";\n assert qtyTasksInLoopEnd == qtyTasksInLoopBegin + 1 : \"negativeTestWrongAnswers: tasks all\";\n }\n indicators = game1.getIndicators();\n int varTasksFailedAfterCycle = indicators[1];\n int qtyTasksAfterCycle = indicators[3];\n assert varTasksFailedAfterCycle - tasksFailedBeforeCycle == qtyTasksAfterCycle - qtyTasksBeforeCycle\n : \"positiveTestCorrectAnswers: tasks summ\" ;//\n game1.clickCloseGame();\n\n }", "@Test\n\tpublic void testCase1()\n\t{\n\t\tint numberOfCases=3;\n\t\t\n\t\t//checking number of case is positive or not\n\t\tboolean valid=BillEstimation.numberOfCaseValidation(numberOfCases);\n\t\tassertTrue(valid);\n\t}", "public static void main(String[] args) {\n\tint cnt = 4;\n\t\tfor (int i = 4; i <= 30;i++) {\n\t\t\tfor (int k = 0; k < 5; k++) {\n\t\t\t\tif(cnt <= 30) {\n\t\t\t\tfor (int j = 10 * (i - 4) + 11; j < 10 * (i - 3) + 11; j++) {\n\t\t\t\t\tSystem.out.println(String.format(\n\t\t\t\t\t\t\t\"insert into tblTestPercent (seqTestPercent, seqRegCourse, seqBasicTest, writtenPercent, practicalPercent, attendancePercent) \"\n\t\t\t\t\t\t\t\t\t+ \"values (seqTestPercent.nextVal, %d, %d, 40, 40, 20);\",\n\t\t\t\t\t\t\tj,cnt ));\n\t\t\t\t}\n\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\n//\tRandom rand = new Random();\n//\n//\tfor (int i = 31; i < 300; i++) {\n//\t\tint writ = 0;\n//\t\tint prac = 0;\n//\t\tint attend = 0;\n//\t\twhile (writ + prac + attend != 100) {\n//\t\t\twrit = rand.nextInt(70)+31;\n//\t\t\tprac = rand.nextInt(60)+41;\n//\t\t\tattend = rand.nextInt(80)+21;\n//\t\t}\n//\t\tSystem.out.println(String.format(\n//\t\t\t\t\"insert into tblTestScore (seqTestScore, seqTestPercent, writtenScore, practicalScore, attendanceScore) values (seqTestScore.nextVal, %d, %d, %d, %d);\",i,writ,prac,attend));\n//\t}\n\t\n\t\n//\tint writ = 0;\n//\tint prac = 0;\n//\tint attend = 0;\n//\twhile (writ + prac + attend != 100) {\n//\t\t\n//\t\twrit = rand.nextInt(70)+31;\n//\t\tprac = rand.nextInt(60)+41;\n//\t\tattend = rand.nextInt(80)+21;\n//\t\tSystem.out.println(\"필기: \" + writ);\n//\t\tSystem.out.println(\"실기: \" + prac);\n//\t\tSystem.out.println(\"출결: \" +attend);\n//\t}\n//\tSystem.out.println(writ);\n//\tSystem.out.println(prac);\n//\tSystem.out.println(attend);\n//\t\n\t\n}", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_10_nondecimal() {\n\t\tint i = 1;\r\n\t\t\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, \r\n\t\t\t\t\t\tBASE, identifier, null, userData, null);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true);\r\n\t\t\t\t\r\n\t\t\t\tHashMap<String,Object> o2 = roc.generateSignedIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, \r\n\t\t\t\t\t\tBASE, identifier, null, userData, null);\r\n\t\t\t\tcollector.checkThat(o.get(\"data\"), equalTo(o2.get(\"data\")));\r\n\t\t\t\t\r\n\t\t\t\to = roc.generateSignedIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE, \r\n\t\t\t\t\t\tdate, null, userData, null);\r\n\t\t\t\to2 = roc.generateSignedIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE, \r\n\t\t\t\t\t\tdate, null, userData, null);\r\n\t\t\t\tcollector.checkThat(o.get(\"data\"), equalTo(o2.get(\"data\")));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test4() {\n class mini_tests {\n public void test4_1() {\n try {\n tester.testOnInheritanceTree(null, testClass);\n Assert.fail();\n }\n catch (IllegalArgumentException e) {\n Assert.assertTrue(true);\n }\n catch (Throwable e) {\n Assert.fail();\n }\n }\n public void test4_2() {\n try {\n tester.testOnInheritanceTree(Story3, null);\n Assert.fail();\n }\n catch (IllegalArgumentException e) {\n Assert.assertTrue(true);\n }\n catch (Throwable e) {\n Assert.fail();\n }\n }\n public void test4_3() {\n try {\n tester.testOnInheritanceTree(null, null);\n Assert.fail();\n } catch (IllegalArgumentException e) {\n Assert.assertTrue(true);\n } catch (Throwable e) {\n Assert.fail();\n }\n }\n }\n mini_tests t = new mini_tests();\n t.test4_1();\n t.test4_2();\n t.test4_3();\n }" ]
[ "0.72333205", "0.7227339", "0.7110085", "0.70404565", "0.7014119", "0.68639547", "0.6766095", "0.6644326", "0.6606988", "0.6580781", "0.65769756", "0.64810646", "0.6391568", "0.6353938", "0.633342", "0.6263228", "0.6250306", "0.6236006", "0.614071", "0.6112956", "0.611049", "0.61021405", "0.60912275", "0.6090627", "0.60893655", "0.60866004", "0.60510397", "0.60406405", "0.6027972", "0.601079", "0.5994882", "0.5989351", "0.5983056", "0.59730566", "0.597255", "0.59690034", "0.59683317", "0.596241", "0.5961837", "0.5960737", "0.59534794", "0.59533006", "0.594144", "0.5919037", "0.5913562", "0.5910454", "0.58994085", "0.5886947", "0.5879255", "0.5858454", "0.58571", "0.5856079", "0.584996", "0.5845877", "0.5845086", "0.5834995", "0.58344936", "0.5826483", "0.5819346", "0.5816959", "0.58066016", "0.5805977", "0.5803671", "0.5803231", "0.5800398", "0.578891", "0.5788498", "0.5775825", "0.5769166", "0.57631975", "0.5756739", "0.57466143", "0.5746069", "0.57458955", "0.5738419", "0.5737291", "0.57307047", "0.5726284", "0.5725811", "0.5714135", "0.5712125", "0.57102734", "0.5707045", "0.5703895", "0.5701211", "0.56968385", "0.56929576", "0.56784016", "0.56764513", "0.56755763", "0.56468165", "0.5645882", "0.5640552", "0.5633476", "0.5624807", "0.5615348", "0.56149536", "0.5614889", "0.56132776", "0.5604708", "0.55993426" ]
0.0
-1
armazena coordenadas de arrastar e repinta
public void mouseDragged(MouseEvent event) { if (pointCount < points.length) { points[pointCount] = event.getPoint(); // localiza o ponto pointCount++; repaint(); // repinta JFrame } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main (String[] args)\r\n {\n Coordenada utm = new Coordenada(new Datum(6378388D, 6356911.94612795),\r\n\t\t\t 481742, 4770800, 700, (byte)29, true);\r\n //System.out.println(\"lon=\"+utm.getLon()+\" lat=\"+utm.getLat());\r\n //System.out.println(utm.getGrados(utm.getLon())+\"¦ \"+utm.getMinutos(utm.getLon())+\"' \"+utm.getSegundos(utm.getLon())+\"\\\" \"+utm.getGrados(utm.getLat())+\"¦ \"+utm.getMinutos(utm.getLat())+\"' \"+utm.getSegundos(utm.getLat())+\"\\\"\");\r\n @SuppressWarnings(\"unused\")\r\n Coordenada res;\r\n res = utm.CambioDeDatum(new Datum(6378137D, 6356752.31424518));\r\n\r\n //System.out.println(\"Coordenadas en Datum destino: X=\"+res.X+\" Y=\"+res.Y);\r\n //System.out.println(\"lon=\"+res.getLon()+\" lat=\"+res.getLat());\r\n //System.out.println(res.getGrados(res.getLon())+\"¦ \"+res.getMinutos(res.getLon())+\"' \"+res.getSegundos(res.getLon())+\"\\\" \"+res.getGrados(res.getLat())+\"¦ \"+res.getMinutos(res.getLat())+\"' \"+res.getSegundos(res.getLat())+\"\\\"\");\r\n\t\t\t\t \r\n }", "public Coordinate getCoordenadasActuales() ;", "public CoordenadasDTO asignarCoordenadas(){\n logger.debug(\"MensajeService::asignarCoordenadas()\");\n CoordenadasDTO coordenadas = new CoordenadasDTO();\n try {\n if(listaNave != null && !listaNave.isEmpty()){\n double posicion [][] = new double [listaNave.size()][];\n double distances[] = obtenerDistancias(listaNave);\n for(int i = 0; i<listaNave.size(); i++){\n switch (listaNave.get(i).getName()){\n case \"kenobi\":\n posicion[i] = posiciones[0];\n break;\n\n case \"skywalker\":\n posicion[i] = posiciones[1];\n break;\n\n case \"solo\":\n posicion[i] = posiciones[2];\n break;\n }\n }\n NonLinearLeastSquaresSolver trilateracion = new NonLinearLeastSquaresSolver(new TrilaterationFunction(posicion, distances), new LevenbergMarquardtOptimizer());\n LeastSquaresOptimizer.Optimum optimum = trilateracion.solve();\n double centroid[] = optimum.getPoint().toArray();\n coordenadas.setY(centroid[1]);\n coordenadas.setX(centroid[0]);\n }\n } catch (Exception e){\n\n }\n return coordenadas;\n }", "public void darCoordenadasIniciales() \r\n\t{\t\r\n\t\tint coordenadasX = 0;\r\n\t\tint coordenadasY = 1;\r\n\t\tint orientacion = 2;\r\n\t\t\r\n\t\tfor (int x = 0; x<palabras.size();x++) \r\n\t\t{\r\n\t\t\tpalabras.get(x).get(0).setX(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasX)));\r\n\t\t\tpalabras.get(x).get(0).setY(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasY)));\r\n\t\t\tpalabras.get(x).get(0).setOrientacion(manejadorArchivos.getPalabras().get(orientacion));\r\n\t\t\t\r\n\t\t\t coordenadasX = coordenadasX +4;\r\n\t\t\t coordenadasY = coordenadasY + 4;\r\n\t\t\t orientacion = orientacion + 4;\r\n\t\t}\r\n\t}", "double[] destination(double lata, double lona, double dist, double brng) { \r\n double latb = Math.asin(Math.sin(lata)*Math.cos(dist/6371) + Math.cos(lata)*Math.sin(dist/6371)*Math.cos(brng));\r\n double lonb = lona+Math.atan2(Math.sin(brng)*Math.sin(dist/6371)*Math.cos(lata), Math.cos(dist/6371)-Math.sin(lata)*Math.sin(latb));\r\n return new double[]{180*latb/Math.PI, 180*lonb/Math.PI};\r\n }", "long getCoordinates();", "long getCoordinates();", "void mo5802a(LatLng latLng);", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "public Coordenada() {\n }", "public int getLat();", "void getReverInfo(int longitude,int latitude);", "public Coordenada (Datum _d, double x, double y, double z,\r\n\t\t byte _zona, boolean _hemisferio_N)\r\n {\r\n d = _d;\r\n X = x;\r\n Y = y;\r\n Z = z; // Altura ortometrica, sobre NMMA\r\n zona = _zona;\r\n zona_ori = _zona;\r\n hemisferio_N = _hemisferio_N;\r\n GenerarCoordenadasGeograficas();\r\n }", "@Override\n public List<Map<String, Object>> tareasOrdenadasPorDistancia(long id_emergencia){\n try(Connection conn = sql2o.open()){\n List<Emergencia> emergencia = conn.createQuery(\"SELECT ST_X(ST_AsText(ubicacion)) AS longitud, ST_Y(ST_AsText(ubicacion)) AS latitud FROM emergencia WHERE id = :id_eme\")\n .addParameter(\"id_eme\", id_emergencia)\n .executeAndFetch(Emergencia.class);\n String punto = \"POINT(\" + emergencia.get(0).getLongitud() + \" \" + emergencia.get(0).getLatitud() + \")\";\n return conn.createQuery(\"SELECT id, nombre, ST_X(ST_AsText(ubicacion)) AS longitud, ST_Y(ST_AsText(ubicacion)) AS latitud, ST_Distance(ST_GeomFromText(:tar_punto, 4326), ubicacion::geography) AS distancia FROM tarea WHERE id_emergencia = :id_eme ORDER BY distancia ASC\")\n .addParameter(\"tar_punto\", punto)\n .addParameter(\"id_eme\", id_emergencia)\n .executeAndFetchTable()\n .asList();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return null;\n }\n }", "public Coord addressToCoord(String localisation);", "@Override\n public CoordenadasDTO asignarCoordenadasNave(List<NaveDTO> naveDTOS){\n logger.debug(\"MensajeService::asignarCoordenadasNave()\");\n CoordenadasDTO posiciones = new CoordenadasDTO();\n double posicion [][] = new double [][] {{-500.00 , 200.00}, {100.00, -100.00}, {500.00, 100.00}};\n double distances[] = obtenerDistancias(naveDTOS);\n try {\n NonLinearLeastSquaresSolver trilateracion = new NonLinearLeastSquaresSolver(new TrilaterationFunction(posicion, distances), new LevenbergMarquardtOptimizer());\n LeastSquaresOptimizer.Optimum optimum = trilateracion.solve();\n double centroid[] = optimum.getPoint().toArray();\n posiciones.setY(centroid[1]);\n posiciones.setX(centroid[0]);\n\n } catch (Exception e){\n }\n return posiciones;\n }", "@Test\n void calculateRoute() {\n GPSObject n2 = new GPSObject(\"Centenary 2\");\n Location n1 = new Location(\"Centenary 2\",\"0\",n2);\n GPSObject n3 = new GPSObject(\"Thuto 1-5\");\n Location n4 = new Location(\"Thuto 1-5\",\"1\",n3);\n Locations loc = new Locations();\n assertNotNull(roo.calculateRoute(loc));\n }", "public Coordenadas_Ruta(Integer id, Context context)\n {\n this.id = id;\n this.context = context;\n this.coordenadasList = new ArrayList<Coordenada>();\n this.jsonParser = new JSONParser();\n List<Coordenada> aux = CoordenadaRepo.coordenadas_ruta(context, id.longValue());\n if(RutaRepo.isValid(context, id.longValue()) != -1 && aux.size() > 0)\n {\n for(Coordenada coordenada : aux)\n {\n this.coordenadasList.add(coordenada);\n }\n internet = false;\n Log.i(\"coordenadas: \", \"obtenidas de manera local\");\n }\n else\n {\n hasInternet conexion = new hasInternet(this.context);\n try {\n internet = conexion.execute().get();\n }\n catch(Exception e)\n {\n internet = false;\n }\n }\n }", "public int getLon();", "public void makeLatLong(String address){\n try {\n JSONObject jsonObject = new JSONObject(address);\n JSONObject result = jsonObject.getJSONObject(\"result\");\n JSONArray addressMatches = result.getJSONArray(\"addressMatches\");\n JSONObject firstResult = addressMatches.getJSONObject(0);\n JSONObject coordinates = firstResult.getJSONObject(\"coordinates\");\n latitude = coordinates.getDouble(\"y\");\n longitude = coordinates.getDouble(\"x\");\n\n Log.i(\"CoY \", Double.toString(latitude));\n Log.i(\"CoX\", Double.toString(longitude));\n } catch (JSONException e) {\n Log.i(\"Error\", e.getMessage());\n e.printStackTrace();\n latitude = 39.7392;\n longitude = -104.9903;\n mainActivity.apiFailed(alarmName);\n }\n }", "private static ArrayList<Coordinates> geoPath1() {\n return new ArrayList<Coordinates>() {\n {\n add(new Coordinates(\"-122.19170793,47.77509422,5.156\"));\n add(new Coordinates(\"-122.19171484,47.77509255,5.476\"));\n add(new Coordinates(\"-122.19172476,47.77509815,5.583\"));\n add(new Coordinates(\"-122.19172741,47.77510382,6.077\"));\n add(new Coordinates(\"-122.19172688,47.77510897,6.424\"));\n add(new Coordinates(\"-122.19172704,47.77511101,6.121\"));\n add(new Coordinates(\"-122.19172543,47.77511046,6.235\"));\n add(new Coordinates(\"-122.19172222,47.77511072,6.225\"));\n add(new Coordinates(\"-122.19172067,47.77510953,5.974\"));\n add(new Coordinates(\"-122.19171935,47.77511130,6.508\"));\n add(new Coordinates(\"-122.19171873,47.77511341,6.090\"));\n add(new Coordinates(\"-122.19171924,47.77511293,5.968\"));\n add(new Coordinates(\"-122.19171637,47.77511664,5.461\"));\n add(new Coordinates(\"-122.19171588,47.77511801,5.518\"));\n add(new Coordinates(\"-122.19171639,47.77511835,5.652\"));\n add(new Coordinates(\"-122.19171667,47.77511857,5.647\"));\n add(new Coordinates(\"-122.19171678,47.77511865,5.648\"));\n add(new Coordinates(\"-122.19172518,47.77511628,6.074\"));\n add(new Coordinates(\"-122.19173954,47.77511533,5.472\"));\n add(new Coordinates(\"-122.19175207,47.77511346,5.836\"));\n add(new Coordinates(\"-122.19176251,47.77510782,5.669\"));\n add(new Coordinates(\"-122.19177163,47.77510015,2.049\"));\n add(new Coordinates(\"-122.19177831,47.77509499,2.910\"));\n add(new Coordinates(\"-122.19178524,47.77509168,2.794\"));\n add(new Coordinates(\"-122.19179816,47.77509009,3.440\"));\n add(new Coordinates(\"-122.19181022,47.77508805,3.016\"));\n add(new Coordinates(\"-122.19182115,47.77508458,5.258\"));\n add(new Coordinates(\"-122.19182976,47.77508305,5.820\"));\n add(new Coordinates(\"-122.19183812,47.77508189,5.615\"));\n add(new Coordinates(\"-122.19184640,47.77507857,3.568\"));\n add(new Coordinates(\"-122.19185497,47.77506742,2.922\"));\n add(new Coordinates(\"-122.19186602,47.77506459,3.923\"));\n add(new Coordinates(\"-122.19187867,47.77506429,3.785\"));\n add(new Coordinates(\"-122.19188979,47.77506426,5.388\"));\n add(new Coordinates(\"-122.19190159,47.77506575,4.811\"));\n add(new Coordinates(\"-122.19191428,47.77506995,3.867\"));\n add(new Coordinates(\"-122.19192458,47.77507421,3.806\"));\n add(new Coordinates(\"-122.19193359,47.77507565,5.697\"));\n add(new Coordinates(\"-122.19194828,47.77507599,6.091\"));\n add(new Coordinates(\"-122.19196187,47.77507556,6.160\"));\n add(new Coordinates(\"-122.19197799,47.77507586,5.827\"));\n add(new Coordinates(\"-122.19199669,47.77507708,6.263\"));\n add(new Coordinates(\"-122.19201547,47.77507900,5.519\"));\n add(new Coordinates(\"-122.19203652,47.77508125,5.318\"));\n add(new Coordinates(\"-122.19205394,47.77508798,4.972\"));\n add(new Coordinates(\"-122.19206817,47.77509514,5.112\"));\n add(new Coordinates(\"-122.19208170,47.77510678,5.183\"));\n add(new Coordinates(\"-122.19209617,47.77511995,6.227\"));\n add(new Coordinates(\"-122.19211126,47.77512566,6.331\"));\n add(new Coordinates(\"-122.19212836,47.77513235,6.249\"));\n add(new Coordinates(\"-122.19214476,47.77513787,7.192\"));\n add(new Coordinates(\"-122.19215712,47.77514375,6.008\"));\n add(new Coordinates(\"-122.19216472,47.77514855,5.879\"));\n add(new Coordinates(\"-122.19217137,47.77514377,6.426\"));\n add(new Coordinates(\"-122.19217457,47.77513335,7.248\"));\n add(new Coordinates(\"-122.19217502,47.77511706,7.483\"));\n add(new Coordinates(\"-122.19218040,47.77510219,10.228\"));\n add(new Coordinates(\"-122.19218656,47.77509117,10.560\"));\n add(new Coordinates(\"-122.19219800,47.77508689,10.466\"));\n add(new Coordinates(\"-122.19221646,47.77507476,11.119\"));\n add(new Coordinates(\"-122.19223178,47.77505389,12.674\"));\n add(new Coordinates(\"-122.19223875,47.77504801,14.667\"));\n add(new Coordinates(\"-122.19224629,47.77504536,13.339\"));\n add(new Coordinates(\"-122.19224798,47.77504041,13.908\"));\n add(new Coordinates(\"-122.19224916,47.77503913,14.065\"));\n add(new Coordinates(\"-122.19225069,47.77503675,14.247\"));\n add(new Coordinates(\"-122.19224858,47.77502843,14.488\"));\n add(new Coordinates(\"-122.19224608,47.77502116,15.172\"));\n add(new Coordinates(\"-122.19224071,47.77501315,15.223\"));\n add(new Coordinates(\"-122.19223317,47.77500694,14.840\"));\n add(new Coordinates(\"-122.19222227,47.77500383,13.775\"));\n add(new Coordinates(\"-122.19221226,47.77499910,12.827\"));\n add(new Coordinates(\"-122.19220317,47.77499372,13.307\"));\n add(new Coordinates(\"-122.19219567,47.77498511,13.107\"));\n add(new Coordinates(\"-122.19219183,47.77497813,13.144\"));\n add(new Coordinates(\"-122.19218998,47.77497165,14.620\"));\n add(new Coordinates(\"-122.19219011,47.77496235,9.166\"));\n add(new Coordinates(\"-122.19218887,47.77495353,8.299\"));\n add(new Coordinates(\"-122.19218520,47.77494321,9.052\"));\n add(new Coordinates(\"-122.19218124,47.77493245,9.915\"));\n add(new Coordinates(\"-122.19218070,47.77492023,9.391\"));\n add(new Coordinates(\"-122.19217970,47.77490970,10.372\"));\n add(new Coordinates(\"-122.19217945,47.77490501,7.722\"));\n add(new Coordinates(\"-122.19217823,47.77489981,8.715\"));\n add(new Coordinates(\"-122.19218090,47.77489589,8.714\"));\n add(new Coordinates(\"-122.19218635,47.77488849,11.030\"));\n add(new Coordinates(\"-122.19219339,47.77487849,13.062\"));\n add(new Coordinates(\"-122.19219717,47.77486996,13.102\"));\n add(new Coordinates(\"-122.19219654,47.77486340,13.562\"));\n add(new Coordinates(\"-122.19219260,47.77485669,14.090\"));\n add(new Coordinates(\"-122.19218765,47.77484862,12.973\"));\n add(new Coordinates(\"-122.19218777,47.77484328,13.137\"));\n add(new Coordinates(\"-122.19218893,47.77483642,13.518\"));\n add(new Coordinates(\"-122.19218715,47.77483230,13.557\"));\n add(new Coordinates(\"-122.19218676,47.77482973,13.560\"));\n add(new Coordinates(\"-122.19218203,47.77482544,12.554\"));\n add(new Coordinates(\"-122.19217214,47.77482073,12.209\"));\n add(new Coordinates(\"-122.19216229,47.77481373,12.975\"));\n add(new Coordinates(\"-122.19215766,47.77481203,10.715\"));\n add(new Coordinates(\"-122.19214837,47.77480695,10.188\"));\n add(new Coordinates(\"-122.19213505,47.77480208,9.988\"));\n add(new Coordinates(\"-122.19212451,47.77479761,10.080\"));\n add(new Coordinates(\"-122.19211571,47.77479427,11.799\"));\n add(new Coordinates(\"-122.19210976,47.77478996,12.827\"));\n add(new Coordinates(\"-122.19211063,47.77478275,12.455\"));\n add(new Coordinates(\"-122.19210867,47.77477966,11.972\"));\n add(new Coordinates(\"-122.19209880,47.77477701,11.224\"));\n add(new Coordinates(\"-122.19208860,47.77477571,11.174\"));\n add(new Coordinates(\"-122.19208772,47.77477829,10.066\"));\n add(new Coordinates(\"-122.19208174,47.77477082,9.116\"));\n add(new Coordinates(\"-122.19207288,47.77476146,6.540\"));\n add(new Coordinates(\"-122.19206631,47.77474937,5.343\"));\n add(new Coordinates(\"-122.19206107,47.77474020,7.509\"));\n add(new Coordinates(\"-122.19205903,47.77473648,7.923\"));\n add(new Coordinates(\"-122.19206261,47.77474166,6.203\"));\n add(new Coordinates(\"-122.19206450,47.77474194,5.918\"));\n add(new Coordinates(\"-122.19205951,47.77473670,4.994\"));\n add(new Coordinates(\"-122.19204892,47.77472567,2.787\"));\n }\n };\n }", "void imprimeValores(){\n System.out.println(\"coordenada del raton:(\"+pratonl[0][0]+\",\"+pratonl[0][1]+\")\");\n System.out.println(\"coordenada del queso:(\"+pquesol[0][0]+\",\"+pquesol[0][1]+\")\");\n imprimeCalculos();//imprime la diferencia entre las X y las Y de las coordenadas\n movimiento();\n }", "private void geolocate() throws IOException {\n\n\n List<Address> addresses = geocoder.getFromLocationName(bundle.getString(\"starting\"), 1);\n List<Address> addresses1 = geocoder.getFromLocationName(bundle.getString(\"destiny\"), 1);\n\n if (addresses!=null||addresses.size()>0||addresses1!=null||addresses1.size()>0)\n {\n try {\n\n\n Address address=addresses.get(0);\n Address address1=addresses1.get(0);\n\n Double orglat = address.getLatitude();\n Double orglng = address.getLongitude();\n Double dstlat = address1.getLatitude();\n Double dstlng = address1.getLongitude();\n\n origin = new LatLng(orglat, orglng);\n destiny = new LatLng(dstlat, dstlng);\n\n /* Constants.AddrouteOrigin=new LatLng(orglat,orglng);\n Constants.AddrouteDestiny=new LatLng(dstlat,dstlng);*/\n\n\n Log.d(\"origindest\",Constants.AddrouteOrigin+\" \"+Constants.AddrouteDestiny+\"\");\n\n Log.d(\"origindest\",origin+\" \"+destiny+\"\");\n\n }catch (IndexOutOfBoundsException e){\n Toast.makeText(getContext(),e.getMessage(),Toast.LENGTH_LONG).show();\n }\n\n }\n else {\n Toast.makeText(getContext(),\"no address found\",Toast.LENGTH_LONG).show();\n }\n }", "private DPoint m2833m() {\r\n IPoint iPoint = new IPoint();\r\n this.f1769m.mo353a(this.f1761e.latitude, this.f1761e.longitude, iPoint);\r\n IPoint iPoint2 = new IPoint();\r\n this.f1769m.mo353a(this.f1762f.latitude, this.f1762f.longitude, iPoint2);\r\n IPoint iPoint3 = new IPoint();\r\n this.f1769m.mo353a(this.f1763g.latitude, this.f1763g.longitude, iPoint3);\r\n double d = (double) iPoint.f3639x;\r\n double d2 = (double) iPoint.f3640y;\r\n double d3 = (double) iPoint2.f3639x;\r\n double d4 = (double) iPoint2.f3640y;\r\n double d5 = (double) iPoint3.f3639x;\r\n double d6 = (double) iPoint3.f3640y;\r\n double d7 = (((d6 - d2) * ((((d4 * d4) - (d2 * d2)) + (d3 * d3)) - (d * d))) + ((d4 - d2) * ((((d2 * d2) - (d6 * d6)) + (d * d)) - (d5 * d5)))) / (((2.0d * (d3 - d)) * (d6 - d2)) - ((2.0d * (d5 - d)) * (d4 - d2)));\r\n double d8 = (((d5 - d) * ((((d3 * d3) - (d * d)) + (d4 * d4)) - (d2 * d2))) + ((d3 - d) * ((((d * d) - (d5 * d5)) + (d2 * d2)) - (d6 * d6)))) / (((2.0d * (d4 - d2)) * (d5 - d)) - ((2.0d * (d6 - d2)) * (d3 - d)));\r\n this.f1773q = Math.sqrt(((d - d7) * (d - d7)) + ((d2 - d8) * (d2 - d8)));\r\n this.f1774r = m2830a(d7, d8, d, d2);\r\n d = m2830a(d7, d8, d3, d4);\r\n this.f1775s = m2830a(d7, d8, d5, d6);\r\n if (this.f1774r < this.f1775s) {\r\n if (d <= this.f1774r || d >= this.f1775s) {\r\n this.f1775s -= 6.283185307179586d;\r\n }\r\n } else if (d <= this.f1775s || d >= this.f1774r) {\r\n this.f1775s += 6.283185307179586d;\r\n }\r\n return new DPoint(d7, d8);\r\n }", "public void darCoordenadas() {\r\n\t\t\r\n\t\tfor(int x = 0; x<palabras.size(); x++) {\r\n\t\t\t\r\n\t\t\tif (palabras.get(x).get(0).getOrientacion().equals(\"V\")) {\r\n\t\t\t\tint coordenadaX = palabras.get(x).get(0).getX();\r\n\t\t\t\tint coordenadaY = palabras.get(x).get(0).getY();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 1; y < palabras.get(x).size(); y++) \r\n\t\t\t\t{\r\n\t\t\t\t\tcoordenadaY++;\r\n\t\t\t\t\tpalabras.get(x).get(y).setX(coordenadaX);\r\n\t\t\t\t\tpalabras.get(x).get(y).setY(coordenadaY);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (palabras.get(x).get(0).getOrientacion().equals(\"H\") ) {\r\n\t\t\t\t\r\n\t\t\t\tint coordenadaX = palabras.get(x).get(0).getX();\r\n\t\t\t\tint coordenadaY = palabras.get(x).get(0).getY();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 1; y < palabras.get(x).size(); y++) \r\n\t\t\t\t{\r\n\t\t\t\t\tcoordenadaX++;\r\n\t\t\t\t\tpalabras.get(x).get(y).setX(coordenadaX);\r\n\t\t\t\t\tpalabras.get(x).get(y).setY(coordenadaY);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean setBothCoordinates(){\r\n\r\n double[] results;\r\n\r\n if((results = getCoordinates(locationA)) == null){\r\n Toast.makeText(this, \"Try another location for A!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latA = results[0];\r\n lonA = results[1];\r\n }\r\n\r\n if((results = getCoordinates(locationB)) == null){\r\n Toast.makeText(this, \"Try another location for B!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latB = results[0];\r\n lonB = results[1];\r\n }\r\n\r\n getMidPoint();\r\n\r\n return true;\r\n }", "int getLongitude();", "@Override\n\tpublic void definePosicaoArma(double ang,double startX,double startY) {\n\t\tangulo=(ang);\n\t\tX=(startX);\n\t\tY=(startY);\n\n\t}", "String getArrivalLocation();", "public void verificaCoordenada() {\r\n\t\tif (X < 0) {\r\n\t\t\tX = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tX = X % Const.TAMANHO;\r\n\t\t}\r\n\r\n\t\tif (Y < 0) {\r\n\t\t\tY = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tY = Y % Const.TAMANHO;\r\n\t\t}\r\n\t}", "public static void alturaArbol() {\n int angulo = 35;\n\n double anguloConvert = Math.toRadians(angulo);\n int x = 20;\n int y;\n y = (int) Math.round(x * Math.tan(anguloConvert));\n System.out.println(\"Altura del arbol: \" + y);\n }", "public int[] annaKoordinaatit()\n\t{\n\t\tint[] koordinaatit = {this.x, this.y};\n\t\treturn koordinaatit;\n\t}", "@Override\n\t\t\t\tpublic List<KinderGarten> chercherParZone(Double longi, Double lat,Double rayon) {\n\t\t\t\t\tList<KinderGarten> list = new ArrayList<>();\n\t\t\t\t\tList<KinderGarten> list2 =(List<KinderGarten>) kindergartenRepo.findAll();\n\t\t\t\t\tfor(int i=0;i<list2.size();i++)\n\t\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(calculDis(longi,lat,list2.get(i).getLongi(),list2.get(i).getLatitude()));\n\t\t\t\t\t\tif(calculDis(longi,lat,list2.get(i).getLongi(),list2.get(i).getLatitude()) <= rayon)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlist.add(list2.get(i));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// long/lat/r\n\t\t\t\t\t//coord bd Ariana long:10.182733 lat: 36.900635 // long:10.804493 lat2 :36.460875\n\t\t\t\t\t\n\t\t\t\t\t//test 1 Ariana 10.1852049/36.8989212/1 \n\t\t\t\t\t\n\t\t\t\t\t//test 2 A GHANA 10.181863/36.806459/1 // long2:10.182039 lat2: 36.806021 \n\t\t\t\t\t//\n\t\t\t\t\treturn list;\n\t\t\t\t}", "public void revisaColisionMapa() {\n\t\tactualCol = (int)x / tamTile;\n\t\tactualRen = (int)y / tamTile;\n\t\t\n\t\txdest = x + dx;\n\t\tydest = y + dy;\n\t\t\n\t\txtemp = x;\n\t\tytemp = y;\n\t\t\n\t\tcalcularEsquinas(x, ydest);\n\t\tif(dy < 0) {\n\t\t\tif(arribaIzq || arribaDer) {\n\t\t\t\tdy = 0;\n\t\t\t\tytemp = actualRen * tamTile + claltura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\t\tif(dy > 0) {\n\t\t\tif(abajoIzq || abajoDer) {\n\t\t\t\tdy = 0;\n\t\t\t\tcayendo = false;\n\t\t\t\tytemp = (actualRen + 1) * tamTile - claltura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcalcularEsquinas(xdest, y);\n\t\tif(dx < 0) {\n\t\t\tif(arribaIzq || abajoIzq) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = actualCol * tamTile + clanchura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\tif(dx > 0) {\n\t\t\tif(arribaDer || abajoDer) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = (actualCol + 1) * tamTile - clanchura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!cayendo) {\n\t\t\tcalcularEsquinas(x, ydest + 1);\n\t\t\tif(!abajoIzq && !abajoDer) {\n\t\t\t\tcayendo = true;\n\t\t\t}\n\t\t}\n\t}", "@Test public void fillMapIdAndCoordinateWithSameId() {\n // Given\n \n String pathnameXml = \"./ressources/fichiersTestXml/fillMapIdSameId.xml\";\n Reseau resIdIncorrect = parser.parseCityPlan(pathnameXml);\n assertNotNull(resIdIncorrect);\n assertEquals(\"2129259178\", resIdIncorrect.getNoeud()[0].getId());\n assertEquals(\"2129259178\", resIdIncorrect.getNoeud()[1].getId());\n \n Map map = new Map();\n \n // When\n \n map.fillMapIdAndCoordinate(resIdIncorrect);\n \n // Then\n \n Long lastId = Long.valueOf(\"2129259178\");\n int lastIndex = map.getMapId().get(lastId);\n // We compare the longitude to be sure\n // that it is the last noeud which is \n // registered in the mapId for the same key\n double longitude = map.getCoordinate(lastIndex).getLongitude();\n assertEquals(4.8, longitude, 0.1);\n }", "public void attrito(){\n yCord[0]+=4;\n yCord[1]+=4;\n yCord[2]+=4;\n //e riaggiorna i propulsori (che siano attivati o no) ricalcolandoli sulla base delle coordinate dell'astronave, cambiate\n aggiornaPropulsori();\n \n }", "public static void main(String[] args) {\n \r\n double lat1=19.071895;\r\n double lng1=-98.193415;\r\n \r\n double lat2=18.8771729;\r\n double lng2=-98.2954198;\r\n \r\n \r\n Cuatro c = new Cuatro();\r\n \r\n double distancia = c.calcularDistanciaEntreDosPuntos(lat1, lng1, lat2, lng2);\r\n \r\n System.out.println(\"Distancia en Km\" + \" \" + distancia);\r\n \r\n //Dejando el radio para saber si esta fuera de ruta \r\n double rango = 1000;\r\n \r\n if(distancia >=rango){\r\n System.out.println(\"La distancia es mayor a la establecida, Fuera de ruta\");\r\n }else{\r\n System.out.println(\"Se Matiene dentro de la ruta\");\r\n }\r\n \r\n \r\n }", "private double[] getSatelliteViewXY(double lat, double lng) {\n double latitude = Math.toRadians(satLat);\r\n double longitude = Math.toRadians(-thetaP);\r\n\r\n double _lng = lng - thetaP;\r\n\r\n double _x = Math.cos(Math.toRadians(lat)) * Math.sin(Math.toRadians(_lng));\r\n double _y = Math.sin(Math.toRadians(lat));\r\n double _z = Math.cos(Math.toRadians(lat)) * Math.cos(Math.toRadians(_lng));\r\n /*\r\n * | 1 0 0 | b > 0 : towards user\r\n * Rotation plan y, z: | 0 cos b -sin b |\r\n * | 0 sin b cos b |\r\n *\r\n * | cos t 0 -sin t | t > 0 : counterclockwise\r\n * Rotation plan x, z: | 0 1 0 |\r\n * | sin t 0 cos t |\r\n *\r\n */\r\n double[] rotated = null;\r\n double newX = _x;\r\n double newY = _y;\r\n double newZ = _z;\r\n\r\n // rotation yz (for stellite latitude)\r\n if (true) {\r\n rotated = rotation(new double[]{newX, newY, newZ},\r\n new double[][]{{1D, 0D, 0D},\r\n {0D, Math.cos(latitude), -Math.sin(latitude)},\r\n {0D, Math.sin(latitude), Math.cos(latitude)}});\r\n newX = rotated[0];\r\n newY = rotated[1];\r\n newZ = rotated[2];\r\n }\r\n // rotation xz (for satellite longitude)\r\n if (false) {\r\n rotated = rotation(new double[]{newX, newY, newZ},\r\n new double[][]{{Math.cos(longitude), 0D, -Math.sin(longitude)},\r\n {0D, 1D, 0D},\r\n {Math.sin(longitude), 0D, Math.cos(longitude)}});\r\n newX = rotated[0];\r\n newY = rotated[1];\r\n newZ = rotated[2];\r\n }\r\n\r\n double newL = Math.toDegrees(Math.asin(newY));\r\n double newG = 0D;\r\n if (newZ == 0D)\r\n newG = 0D;\r\n else\r\n newG = Math.toDegrees(Math.atan(newX / newZ));\r\n\r\n if ((newZ < 0D)) // && newX > 0D) || (newZ > 0D && newX < 0D))\r\n {\r\n while (_lng < -180D) _lng += 360D;\r\n while (_lng > 180D) _lng -= 360D;\r\n if (_lng < 0D) {\r\n if (newG > 0D) newG -= 180D;\r\n else newG = -180D - newG;\r\n }\r\n if (_lng > 0D) {\r\n if (newG > 0D) newG = 180D - newG;\r\n else newG += 180D;\r\n }\r\n }\r\n newG += thetaP;\r\n// newL = lat;\r\n// newG = lng;\r\n\r\n // Begin here\r\n double alfa = (newL);\r\n double f = Math.cos(Math.toRadians(alfa)) * Math.cos(Math.toRadians(newG - thetaP));\r\n// double r = rhoE / rhoS; // Unused\r\n double c = rhoS - (rhoE * f);\r\n double x = rhoS * rhoE * Math.sin(Math.toRadians(newG - thetaP)) * Math.cos(Math.toRadians(alfa)) / c;\r\n double y = rhoS * rhoE * Math.sin(Math.toRadians(alfa)) / c;\r\n\r\n return new double[]{x, y};\r\n }", "public void testOctaedre() {\n\t\t\t\n\t\t\tSolide i = Octaedre.octaedre();\n\t\t\t\n\t\t\t/* creation de points qui ont les memes coordonnees que ceux qui \n\t\t\t * constituent notre solide (car octaedre() n'a pas de parametres)\n\t\t\t */\n\t\t\t\n\t\t\tPoint p1 = new Point(-25, 0,-25);\n\t\t\tPoint p2 = new Point(-25, 0,25);\n\t\t\tPoint p3 = new Point(25, 0,-25);\n\t\t\tPoint p4 = new Point(25,0,25);\n\t\t\tfloat hauteur = (float) (50/Math.sqrt(2));\n\t\t\t// on se sert de la hauteur pour donnee les coordonees des sommets manquant\n\t\t\tPoint p5 = new Point(0, hauteur,0);\n\t\t\tPoint p6 = new Point(0,-hauteur,0);\n\t\t\t\n\t\t\t//On teste si les points de l'octaedre i sont bien les memes que ceux créés\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getAbscisse()==(p1.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(1).getAbscisse()==(p2.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(5).getAbscisse()==(p3.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(3).getAbscisse()==(p4.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(2).getAbscisse()==(p5.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(0).getAbscisse()==(p6.getAbscisse()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getOrdonnee()==(p1.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(1).getOrdonnee()==(p2.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(5).getOrdonnee()==(p3.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(3).getOrdonnee()==(p4.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(2).getOrdonnee()==(p5.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(0).getOrdonnee()==(p6.getOrdonnee()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getProfondeur()==(p1.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(1).getProfondeur()==(p2.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(5).getProfondeur()==(p3.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(3).getProfondeur()==(p4.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(2).getProfondeur()==(p5.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(0).getProfondeur()==(p6.getProfondeur()));\n\t\t\t\n\t\t\t//On teste si les faces de l'octaedre contiennent bien les points créés\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(0).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(1).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(2).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(3).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p6));\n\t\t\n\t\t\tassertTrue(i.getFaces().get(4).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(5).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(6).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(7).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p6));\n\t\t\t\n\t\t\t\n\t\t\t\n\t}", "private void setMyLatLong() {\n }", "double getLongitude();", "private void calcularDistanciaRecorrer(){\r\n\t\tfloat diferenciax = siguientePunto.x - posicion.x;\r\n\t\tfloat diferenciay = siguientePunto.y - posicion.y;\r\n\t\tdistanciaRecorrer = (float) Math.sqrt(diferenciax*diferenciax+diferenciay*diferenciay);\r\n\t}", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "long getLongitude();", "private double distance (double lata, double lona, double latb, double lonb) { \r\n return Math.acos(Math.sin(lata)*Math.sin(latb)+Math.cos(lata)*Math.cos(latb)*Math.cos(lonb-lona))*6371;\r\n }", "public Coordonnees(double _latitude, double _longitude) {\r\n\t\tsuper();\r\n\t\tthis._latitude = _latitude;\r\n\t\tthis._longitude = _longitude;\r\n\t}", "public void aggiornaPropulsori(){\n xPropulsore1=new int[]{xCord[0],xCord[0]};\n yPropulsore1=new int[]{yCord[0],yCord[0]+15}; \n xPropulsore2=new int[]{xCord[2],xCord[2]}; \n yPropulsore2=new int[]{yCord[2],yCord[2]+15};\n \n }", "public interface Map {\n /**\n * Return the distance between two coordinates.\n * \n * @param coord1 valid coordinates\n * @param coord2 valid coordinates\n * @return return distance between coord1 and coord2.\n * Returns Integer.MAX_VALUE if there is no path\n * between coordinates.\n */\n public int distance(Coord coord1, Coord coord2);\n\n /**\n * Return coordinates of a localisation.\n * \n * @param address a known localisation\n * @param return coordinates of the localisation, null\n * if the location doesn't exist.\n */\n public Coord addressToCoord(String localisation);\n /**\n * Returns the address closest to the localisation\n *\n * @param loc : the concerned localisation \n * @post returns one of the closest addresses to loc, null if\n * there isn't any.\n */\n public String coordToAddress(Coord loc);\n\n /**\n * Add an obstacle at coordinate obstacleCoord\n * \n * @param obstacleCoord coordinates of the new obstacle. Must be valid\n * \n */\n\n public void addObstacle(Coord obstacleCoord);\n\n /**\n * Remove an obstacle at coordinates\n * \n * @param obstacleCoord must be coordinates of a recorded obstacle\n */\n public void removeObstacle(Coord obstacleCoord);\n /**\n * Adds a list of addresses->localisations in the map.\n *\n * @param address must be a list of lines with one address and one coordinate\n * on each, separated by an @. the coordinate must be on a street.\n * @return returns the list of invalid address.\n */\n public String addAddressList(BufferedReader address);\n /**\n * Adds an address in the Map. \n * @param Address a string representing the address, can be anything.\n * @param coord the coord of the address, can be anywhere.\n */\n public void addAddress(String Address, Coord coord);\n /**\n * Sets the street on the map\n * \n * the distance between roads is 10. the roads start at coordinate 0.\n * so numx = 5 -> roads at x = [0,10,20,30,40]\n * \n * @param: numx : > 0 :the amount of North-South streets.\n * @param: numy : > 0 :the amount of West-East streets.\n * \n */\n public void setStreets(int numx, int numy);\n}", "int getLatE6();", "int getLatE6();", "long getLatitude();", "public static void main(String[] args) {\n\t\tQuadrilateral qu = new Quadrilateral(\"122:10:22.15761,30:33:53.48025-122:10:18.39148,30:33:33.11945-122:17:18.08089,30:32:55.71872-122:17:14.29433,30:32:35.36090\");\n//\t\tPoint po = new Point(\"31:16:32,121:45:39\");\n\t\tPoint po = new Point(\"122:10:22.15761,30:33:53.48025\");\n\t\tSystem.out.println(po.lon);\n\t\tLatLng point = new LatLng(30.56486,122.17282);\n\t\tSystem.out.println(qu.isContainsPoint(point));\n\t}", "public void set_point ( String id,String longitud,String latitud, String id_cliente){\n this.id = id;\n this.longitud=longitud;\n this.latitud=latitud;\n this.id_cliente = id_cliente;\n Calendar c = Calendar.getInstance();\n SimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd HH:mm\");\n fecha= df.format(c.getTime()).toString();\n new define_ubicacion_cliente().execute();\n }", "public void compute() {\n\n this.jddPtsInflexion.clear();\n ILineString lsInitialee = this.geom;\n\n ILineString lsInitiale = Operateurs.resampling(lsInitialee, 1);\n ILineString lsLisse = GaussianFilter.gaussianFilter(lsInitiale, 5, 1);\n\n double sumOfDistances = 0;\n double length = 70;// 200 m max\n double sumOfAngels = 0;\n // ArrayList<Double> angels=new ArrayList<Double>();\n ArrayList<Double> differences = new ArrayList<Double>();\n\n ArrayList<Double> distances = new ArrayList<Double>();\n\n IDirectPosition p1 = lsInitiale.coord().get(0);\n IDirectPosition p2 = lsInitiale.coord().get(1);\n\n distances.add(p1.distance2D(p2));\n sumOfDistances += distances.get(distances.size() - 1);\n\n double angel = Math.atan2(p1.getY() - p2.getY(), p1.getX() - p2.getX());\n\n angel = (angel + Math.PI) * 180 / Math.PI;\n\n // angels.add(angel);\n\n for (int i = 1; i < lsInitiale.coord().size() - 1; i++) {\n\n p1 = lsInitiale.coord().get(i);\n p2 = lsInitiale.coord().get(i + 1);\n\n distances.add(p1.distance2D(p2));\n sumOfDistances += distances.get(distances.size() - 1);\n\n double newAngel = Math\n .atan2(p1.getY() - p2.getY(), p1.getX() - p2.getX());\n\n // give the value that varie from 0 to 360-epsilon\n newAngel = (newAngel + Math.PI) * 180 / Math.PI;\n\n // angels.add(newAngel);\n\n while (sumOfDistances > length && differences.size() > 0) {\n sumOfDistances -= distances.get(0);\n\n sumOfAngels -= differences.get(0);\n\n distances.remove(0);\n // System.out.println(\"olddiff=\" + differences.get(0));\n differences.remove(0);\n\n }\n\n double diff = newAngel - angel;\n\n if (diff > 180)\n diff = -360 + diff;// for the case of angel=10 and newAngel=350;\n else if (diff < -180)\n diff = 360 + diff;\n\n differences.add(diff);\n sumOfAngels += diff;\n angel = newAngel;\n // System.out.println(\"sumOfAngels=\" + sumOfAngels);\n // System.out.println(\"angel=\" + newAngel);\n // System.out.println(\"diff=\" + diff);\n\n /*\n * for(int k=0;k<angels.size();k++){ double diff2=newAngel-angels.get(k));\n * if(diff2>180)diff2=360-diff2;// for the case of angel=10 and\n * newAngel=350; else if(diff2<-180)diff2=-360-diff2;\n * if(Math.abs(newAngel->200) {\n * \n * }\n * \n * \n * }\n */\n\n if (Math.abs(sumOfAngels) > 100) {\n\n double maxOfDiff = 0;\n int indexOfMaxOfDiff = -1;\n for (int k = 0; k < differences.size(); k++) {\n if (differences.get(k) > maxOfDiff) {\n maxOfDiff = differences.get(k);\n indexOfMaxOfDiff = k;\n\n }\n\n }\n double maxDistance = -1;\n int maxDistancePointIndex = -1;\n // if(i+differences.size()-indexOfMaxOfDiff-1>=jddPtsInflexion.size())\n for (int jj = 0; jj < differences.size(); jj++) {\n // jddPtsInflexion.add(lsInitiale.coord().get(i+differences.size()-indexOfMaxOfDiff-2));\n if (i + jj - indexOfMaxOfDiff >= 0\n && i + jj - indexOfMaxOfDiff < lsInitiale.coord().size()) {\n int currIndex = i + jj - indexOfMaxOfDiff;\n double distance = lsInitiale.coord().get(currIndex).distance2D(\n lsLisse.coord().get(currIndex));\n if (distance > maxDistance) {\n maxDistance = distance;\n maxDistancePointIndex = currIndex;\n }\n\n }\n\n }\n\n if (maxDistancePointIndex >= 0)\n this.jddPtsInflexion.add(lsInitiale.coord()\n .get(maxDistancePointIndex));\n\n differences.clear();\n sumOfDistances = distances.get(distances.size() - 1);\n distances.clear();\n sumOfAngels = 0;\n i++;\n\n }\n\n }\n\n }", "int getAptitudeId();", "void updateStepCoordiantes(){\n if(xIncreasing) {\n lat = lat + STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat + STEP_LENGTH*yCompMotion*degToMRatio;\n }\n else{\n lat = lat - STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat - STEP_LENGTH*yCompMotion*degToMRatio;\n }\n if(yIncreasing) {\n lon = lon + STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon + STEP_LENGTH*xCompMotion*degToMRatio;\n }\n else{\n lon = lon - STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon - STEP_LENGTH*xCompMotion*degToMRatio;\n }\n }", "public AOI() \n {\n westLongitude = -180;\n eastLongitude = 180;\n southLatitude = -90;\n northLatitude = 90;\n }", "protected abstract void calcOrigin();", "public Coordinate getLocation();", "@Test\n public void testTrouverCoord() throws Exception {\n System.out.println(\"TrouverCoord\");\n Coordonnee p1 = null;\n Coordonnee p2 = null;\n double ratioDistSurDistTotale = 0.0;\n Coordonnee expResult = null;\n Coordonnee result = Utils.TrouverCoord(p1, p2, ratioDistSurDistTotale);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void coord_to_horizon( Calendar utc, String ra_in, String dec_in, double lat_in, double lon_in )\r\n {\n\r\n \tCoordConverter myConverter = new CoordConverter();\r\n \t\r\n \tdouble ra = myConverter.RAString2Double(ra_in);\r\n \tdouble dec = myConverter.DecString2Double(dec_in);\r\n \t\r\n \tdouble lat = lat_in;//dms2real( Integer.parseInt(lat_str[0]), Double.parseDouble(lat_str[1]) );\r\n double lon = lon_in;//dms2real( Integer.parseInt(lon_str[0]), Double.parseDouble(lon_str[1]) );\r\n\r\n // compute hour angle in degrees\r\n double ha = GetSiderealTime( utc, lon ) - ra;\r\n if (ha < 0) ha = ha + 360;\r\n\r\n // convert degrees to radians\r\n ha = ha*Math.PI/180;\r\n dec = dec*Math.PI/180;\r\n lat = lat*Math.PI/180;\r\n\r\n // compute altitude in radians\r\n double sin_alt = Math.sin(dec)*Math.sin(lat) + Math.cos(dec)*Math.cos(lat)*Math.cos(ha);\r\n double alt = Math.asin(sin_alt);\r\n \r\n // compute azimuth in radians\r\n // divide by zero error at poles or if alt = 90 deg\r\n double cos_az = (Math.sin(dec) - Math.sin(alt)*Math.sin(lat))/(Math.cos(alt)*Math.cos(lat));\r\n double az = Math.acos(cos_az);\r\n\r\n // convert radians to degrees\r\n hrz_altitude = alt*180/Math.PI;\r\n hrz_azimuth = az*180/Math.PI;\r\n\r\n // choose hemisphere\r\n if (Math.sin(ha) > 0)\r\n hrz_azimuth = 360 - hrz_azimuth;\r\n }", "@Test\n public void testConvertCoordToPixel() throws Exception {\n System.out.println(\"convertCoordToPixel\");\n double x = 800;\n double y = 500;\n double lat = -71.320920;\n double lon = 46.759400;\n Utils instance = new Utils();\n Coordonnee coord = new Coordonnee(-71.320920,46.759400);\n assertEquals(\"test latitude\",x,instance.convertCoordToPixel(coord).getLat(),0);\n assertEquals(\"test longitude\",y,instance.convertCoordToPixel(coord).getLon(),0);\n }", "public VisuCoordinateTranslator() {\r\n limitedDirections = new HashMap<String, Integer>();\r\n limitedCoordinates = new HashMap<String, Shape>();\r\n limitedGroundCoordinates = new HashMap<String, Float[]>();\r\n Float c[] = {22f, 2f, 8.5f, -1.7f, 0f};\r\n limitedDirections.put(\"Status_GWP01\", 0);\r\n ArrayList a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n StraightShape ss = new StraightShape(a);\r\n limitedCoordinates.put(\"0.1.0\", ss);\r\n\r\n\r\n c = new Float[]{-0.97f, 0.88f, 0f, -0.1f, 1f};\r\n limitedDirections.put(\"Status_ETKa1\", 1);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n limitedCoordinates.put(\"1.1.0\", ss);\r\n\r\n limitedDirections.put(\"Status_ETKa2\", 1);\r\n\r\n c = new Float[]{0.07f, -0.74f, 0f, 0f, 1f};\r\n limitedDirections.put(\"LAM_ETKa1\", 2);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n limitedCoordinates.put(\"2.1.0\", ss);\r\n\r\n c = new Float[]{0.07f, -0.74f, 0f, 0f, 1f};\r\n limitedDirections.put(\"LAM_ETKa2\", 2);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n\r\n\r\n limitedCoordinates.put(\"2.1.0\", ss);\r\n\r\n ArrayList<ArrayList<Float>> arrayOval = new ArrayList<ArrayList<Float>>();\r\n c = new Float[]{6.3f, -2f, 7.3f, -14.38f, 0f};//straight_1\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-2f, -4.8f, 7.3f, -14.38f, 0f};//straight_2\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.072f, 0.0695f, 2.826f, -5.424f, -17.2f, 7.3f, 1f};//circular_3\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-4.8f, -2f, 7.3f, -19.715f, 0f};//straight_4\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-2f, 6.3f, 7.3f, -19.715f, 0f};//straight_5\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.038f, 0.1032f, 2.833f, 6.567f, -17.2f, 7.3f, 1f};//circular_6\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.1302f, 0.0114f, 2.8202f, -2.0298f, -17.2f, 7.3f, 1f};//circular_7\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n \r\n c = new Float[]{0.41f, 0.48f, 0.6f, 0.67f, 0.78f, 0.92f};//partitions\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n\r\n OvalShape os = new OvalShape(arrayOval);\r\n\r\n for (int i = 2; i < 11; i++) {\r\n for (int j = 0; j < 3; j++) {\r\n limitedCoordinates.put(\"1.\" + i + \".\" + j, os);\r\n limitedCoordinates.put(\"2.\" + i + \".\" + j, ss);\r\n }\r\n }\r\n\r\n \r\n \r\n c = new Float[]{2.0785f, -1.8972f};\r\n limitedGroundCoordinates.put(\"0.1.0\", c);\r\n c = new Float[]{-6.3859f,-0.4682f};\r\n limitedGroundCoordinates.put(\"1.1.0\", c);\r\n }", "public void testConvertCoordiatesToRadians() {\n\n City city = new City(\"Boston\", 180, -98, 1);\n assertEquals(\"Boston\", city.getName());\n assertEquals(3.141592653589793, city.getLatitude());\n assertEquals(-1.7104226669544427, city.getLongitude());\n }", "@Test\n\tvoid testToPixel() {\n\t\t\n\t\t// read the image map of ariel \n\t\tBufferedImage map = null;\n\t\ttry {\n\t\t\tmap = ImageIO.read(new File(\"Ariel1.png\"));\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\tMap m= new Map(map,Width,Height,start,end);\n\n\n\t\tPoint3D ans1 =m.toPixel(start);\n\t\tassertTrue(ans1.equals(pixelStart));\n\n\t\tPoint3D ans2 =m.toPixel(end);\n\t\tassertTrue(ans2.equals(pixelEnd));\n\n\n\t\tPoint3D ans3 = m.toPixel(p);\n\t\tassertTrue(ans3.equals(p1));\n\n\t}", "int getLngE6();", "int getLngE6();", "public void PerspektivischeProjektion(){\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /*\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /*Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2]) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n //Entfernung vom 'Center of projection' zur 'Projectoin plane'\n double d=5;\n\n /*\n * Transformiert x|y|z Koordinaten in x|y Koordinaten\n * mithilfer der perspektivischen Projektion\n */\n\n A[0]=A[0]/((A[2]+d)/d);\n A[1]=A[1]/((A[2]+d)/d);\n B[0]=B[0]/((B[2]+d)/d);\n B[1]=B[1]/((B[2]+d)/d);\n C[0]=C[0]/((C[2]+d)/d);\n C[1]=C[1]/((C[2]+d)/d);\n D[0]=D[0]/((D[2]+d)/d);\n D[1]=D[1]/((D[2]+d)/d);\n\n\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax=A[0];\n ay=A[1];\n bx=B[0];\n by=B[1];\n cx=C[0];\n cy=C[1];\n dx=D[0];\n dy=D[1];\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }", "@Test\n public void testMesurerDistanceCoordonnees() {\n System.out.println(\"MesurerDistanceCoordonnees\");\n double lat1 = 0.0;\n double lon1 = 0.0;\n double lat2 = 0.0;\n double lon2 = 0.0;\n double expResult = 0.0;\n double result = Utils.MesurerDistanceCoordonnees(lat1, lon1, lat2, lon2);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testPulkovo19953DegreeGKZone59() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone59());\n }", "double getLatitude();", "Coordinate createCoordinate();", "int getLatitude();", "@Test\n public void testPulkovo19953DegreeGKZone22() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone22());\n }", "public void actualiza(){\r\n //pregunto si se presiono una tecla de dirección\r\n if(bTecla) {\r\n int iX = basPrincipal.getX();\r\n int iY = basPrincipal.getY();\r\n if(iDir == 1) {\r\n iY -= getHeight() / iMAXALTO;\r\n }\r\n if(iDir == 2) {\r\n iX += getWidth() / iMAXANCHO;\r\n }\r\n if(iDir == 3) {\r\n iY += getHeight() / iMAXALTO;\r\n }\r\n if(iDir == 4) {\r\n iX -= getWidth() / iMAXANCHO;\r\n }\r\n //limpio la bandera\r\n bTecla = false;\r\n \r\n //asigno posiciones en caso de no salirme\r\n if(iX >= 0 && iY >= 0 && iX + basPrincipal.getAncho() <= getWidth()\r\n && iY + basPrincipal.getAlto() <= getHeight()) {\r\n basPrincipal.setX(iX);\r\n basPrincipal.setY(iY);\r\n } \r\n }\r\n \r\n //Muevo los chimpys\r\n for(Base basChimpy : lklChimpys) {\r\n basChimpy.setX(basChimpy.getX() - iAceleracion);\r\n }\r\n \r\n //Muevo los diddys\r\n for(Base basDiddy : lklDiddys) {\r\n basDiddy.setX(basDiddy.getX() + iAceleracion);\r\n }\r\n\r\n }", "public String coordToAddress(Coord loc);", "@Test\n public void testPulkovo1995GKZone12() {\n testToWGS84AndBack(PROJ.getPulkovo1995GKZone12());\n }", "@Test\n public void testPulkovo1995GKZone18N() {\n testToWGS84AndBack(PROJ.getPulkovo1995GKZone18N());\n }", "@Test\n public void testPulkovo19953DegreeGKZone18() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone18());\n }", "@Test\n public void testPulkovo1995GKZone22() {\n testToWGS84AndBack(PROJ.getPulkovo1995GKZone22());\n }", "@Test\n public void testPulkovo19953DegreeGKZone12() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone12());\n }", "@Test\n public void testPulkovo1995GKZone18() {\n testToWGS84AndBack(PROJ.getPulkovo1995GKZone18());\n }", "protected void calculerAire() {\r\n\t\taire = Math.PI * rayonV * rayonH;\r\n\t\t\r\n\t}", "@Test\n public void testFind_South() {\n\n double lat1 = 0.0;\n double lon1 = 0.0;\n double lat2 = -10.0;\n double lon2 = 0.0;\n double expResult = Math.toRadians(180);\n double result = Azimuth.find(lat1, lon1, lat2, lon2);\n assertEquals(expResult, result, 0.0);\n }", "boolean hasHasLongitude();", "@Test\n public void testPulkovo19953DegreeGKZone61() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone61());\n }", "public GeoOrigin getGeoOrigin();", "@Test\n public void testPulkovo1995GKZone31() {\n testToWGS84AndBack(PROJ.getPulkovo1995GKZone31());\n }", "public double[] getLocation() {\n return new double[]{longitude,latitude};\n }", "@Test\n public void testPulkovo19953DegreeGKZone62() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone62());\n }", "@Test\n public void testPulkovo19953DegreeGKZone64() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone64());\n }", "public double Baricentro() {\n if (puntos.size() <= 2) {\n return 0;\n } else {\n // Inicializacion de las areas\n double areaPonderada = 0;\n double areaTotal = 0;\n double areaLocal;\n // Recorrer la lista conservando 2 puntos\n Punto2D antiguoPt = null;\n for (Punto2D pt : puntos) {\n if (antiguoPt != null) {\n // Cálculo deñ baricentro local\n if (antiguoPt.y == pt.y) {\n // Es un rectángulo, el baricentro esta en\n // centro\n areaLocal = pt.y * (pt.x - antiguoPt.x);\n areaTotal += areaLocal;\n areaPonderada += areaLocal * ((pt.x - antiguoPt.x) / 2.0 + antiguoPt.x);\n } else {\n // Es un trapecio, que podemos descomponer en\n // un reactangulo con un triangulo\n // rectangulo adicional\n // Separamos ambas formas\n // Primer tiempo: rectangulo\n areaLocal = Math.min(pt.y, antiguoPt.y) + (pt.x - antiguoPt.x);\n areaTotal += areaLocal;\n areaPonderada += areaLocal * ((pt.x - antiguoPt.x) / 2.0 + antiguoPt.x);\n //Segundo tiempo: triangulo rectangulo\n areaLocal = (pt.x - antiguoPt.x) * Math.abs(pt.y - antiguoPt.y) / 2.0;\n areaTotal += areaLocal;\n if (pt.y > antiguoPt.y) {\n // Baricentro a 1/3 del lado pt\n areaPonderada += areaLocal * (2.0 / 3.0 * (pt.x - antiguoPt.x) + antiguoPt.x);\n } else {\n // Baricentro a 1/3 dek lado antiguoPt\n areaPonderada += areaLocal * (1.0 / 3.0 * (pt.x - antiguoPt.x) + antiguoPt.x);\n }\n }\n }\n antiguoPt = pt;\n }\n // Devolvemos las coordenadas del baricentro\n return areaPonderada / areaTotal;\n }\n }", "public PontoAlimentacao(int id, String nome, GeoPt localizacao) {\n \tsetId(id);\n \tsetNome(nome);\n \tsetLocalizacao(localizacao);\n this.situacao = SituacaoDoPA.getDefault();\n this.ultimaActualizacao = MyTimer.getCurrentTime();\n this.votos = new ArrayList<Voto>(); \n }", "@Test\n public void testPulkovo1995GKZone12N() {\n testToWGS84AndBack(PROJ.getPulkovo1995GKZone12N());\n }", "@Test\n public void testPulkovo1995GKZone23() {\n testToWGS84AndBack(PROJ.getPulkovo1995GKZone23());\n }", "@Test\n public void testPulkovo19953DegreeGKZone29() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone29());\n }", "@Test\n public void testPulkovo19953DegreeGKZone34() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone34());\n }", "@Test\n public void testPulkovo19953DegreeGKZone49() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone49());\n }", "@Test\n public void testPulkovo1995GKZone31N() {\n testToWGS84AndBack(PROJ.getPulkovo1995GKZone31N());\n }", "@Override\n\tpublic Map getPointsForHotArea(String terminalId) {\n\t\tMap map = new HashMap();\n\t\tString lngs = \"\";\n\t\tString lats = \"\";\n\t\ttry {\n\t\t\tList<PositionData> info_list = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' order by date desc limit 2000\");\n\t\t\tfor(int i=0;i<info_list.size();i++){\n\t\t\t\tif(info_list.get(i).getInfo().contains(\"GPS状态:GPS不定位;\")){\n\t\t\t\t\tinfo_list.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tList<PositionData> position_list = new ArrayList<PositionData>();\n\t\t\tfor(int i=0;i<(info_list.size()>2000?2000:info_list.size());i++){\n\t\t\t\tposition_list.add(info_list.get(i));\n\t\t\t}\n\t\t\tfor(int i=0;i<position_list.size();i++){\n\t\t\t\tString point_latitude = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"纬度:\"));\n\t\t\t\tpoint_latitude = point_latitude.substring(0,point_latitude.indexOf(\";\"));\n\t\t\t\tpoint_latitude = point_latitude.split(\":\")[1];\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart1 = point_latitude.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart1 = \"0.\" + tempStrPart1;\n\t\t\t\tdouble tempD1 = Double.parseDouble(tempStrPart1)/60*100;\n\t\t\t\tpoint_latitude = Integer.parseInt(point_latitude.split(\"\\\\.\")[0]) + tempD1 + \"\";\n\t\t\t\tlats += point_latitude + \",\";\n\t\t\t\t\n\t\t\t\tString point_longitute = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"经度:\"));\n\t\t\t\tpoint_longitute = point_longitute.substring(0,point_longitute.indexOf(\";\"));\n\t\t\t\tpoint_longitute = point_longitute.split(\":\")[1];\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart2 = point_longitute.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart2 = \"0.\" + tempStrPart2;\n\t\t\t\tdouble tempD2 = Double.parseDouble(tempStrPart2)/60*100;\n\t\t\t\tpoint_longitute = Integer.parseInt(point_longitute.split(\"\\\\.\")[0]) + tempD2 + \"\";\n\t\t\t\tlngs += point_longitute + \",\";\n\t\t\t}\n\t\t\tmap.put(\"lngs\",lngs.subSequence(0, lngs.lastIndexOf(\",\")));\n\t\t\tmap.put(\"lats\",lats.subSequence(0, lats.lastIndexOf(\",\")));\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn map;\n\t}", "private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }" ]
[ "0.7013702", "0.6360585", "0.6246279", "0.60822946", "0.59831", "0.598055", "0.598055", "0.5910593", "0.58545667", "0.5816201", "0.5794032", "0.57441694", "0.5727651", "0.5700374", "0.5678541", "0.5646201", "0.56454736", "0.5641132", "0.56269443", "0.55828893", "0.5564042", "0.55135685", "0.54557586", "0.5451632", "0.54506147", "0.5446427", "0.54359806", "0.5424917", "0.54103553", "0.54098433", "0.54053247", "0.54036945", "0.5383094", "0.5372204", "0.5369608", "0.5368167", "0.536727", "0.53596467", "0.5358477", "0.53581715", "0.5355024", "0.53448313", "0.5339666", "0.5339475", "0.5339442", "0.53323376", "0.5331235", "0.5331112", "0.53107977", "0.53107977", "0.53084004", "0.5298914", "0.52884036", "0.5279245", "0.5277316", "0.5276928", "0.52737063", "0.5260974", "0.5250055", "0.524517", "0.52339953", "0.5231722", "0.52205163", "0.5218318", "0.5216996", "0.5215518", "0.5215518", "0.52016455", "0.520147", "0.5200055", "0.51869655", "0.5185983", "0.518572", "0.5185139", "0.51816666", "0.518124", "0.51804394", "0.51767313", "0.51670665", "0.5166525", "0.51629955", "0.5161407", "0.51604", "0.51597327", "0.5159599", "0.5159123", "0.51551396", "0.5155124", "0.5150227", "0.51469433", "0.5146832", "0.51466024", "0.5143606", "0.514076", "0.5139775", "0.51372874", "0.5136519", "0.51362646", "0.51354146", "0.51342404", "0.5133161" ]
0.0
-1
pintar tudo menos o fundo da area de desenhar
@Override public void actionPerformed(ActionEvent arg0) { setBackground(color); vazioSouth.setBackground(color); vazioEast.setBackground(color); btsPaintJPanel.setBackground(color); botaoJPanel.setBackground(color); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "@Override\r\n\tpublic void getarea(int a) {\n\t\t\r\n\t}", "public void setNombreArea(String p) { this.nombreArea = p; }", "public void actualiza(){\r\n //pregunto si se presiono una tecla de dirección\r\n if(bTecla) {\r\n int iX = basPrincipal.getX();\r\n int iY = basPrincipal.getY();\r\n if(iDir == 1) {\r\n iY -= getHeight() / iMAXALTO;\r\n }\r\n if(iDir == 2) {\r\n iX += getWidth() / iMAXANCHO;\r\n }\r\n if(iDir == 3) {\r\n iY += getHeight() / iMAXALTO;\r\n }\r\n if(iDir == 4) {\r\n iX -= getWidth() / iMAXANCHO;\r\n }\r\n //limpio la bandera\r\n bTecla = false;\r\n \r\n //asigno posiciones en caso de no salirme\r\n if(iX >= 0 && iY >= 0 && iX + basPrincipal.getAncho() <= getWidth()\r\n && iY + basPrincipal.getAlto() <= getHeight()) {\r\n basPrincipal.setX(iX);\r\n basPrincipal.setY(iY);\r\n } \r\n }\r\n \r\n //Muevo los chimpys\r\n for(Base basChimpy : lklChimpys) {\r\n basChimpy.setX(basChimpy.getX() - iAceleracion);\r\n }\r\n \r\n //Muevo los diddys\r\n for(Base basDiddy : lklDiddys) {\r\n basDiddy.setX(basDiddy.getX() + iAceleracion);\r\n }\r\n\r\n }", "@Override\r\n public void moverAyuda() {\n System.out.println(\"La reina puede mover hacia cualquier dirección en linea recta / diagonal\");\r\n }", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }", "public void darCoordenadasIniciales() \r\n\t{\t\r\n\t\tint coordenadasX = 0;\r\n\t\tint coordenadasY = 1;\r\n\t\tint orientacion = 2;\r\n\t\t\r\n\t\tfor (int x = 0; x<palabras.size();x++) \r\n\t\t{\r\n\t\t\tpalabras.get(x).get(0).setX(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasX)));\r\n\t\t\tpalabras.get(x).get(0).setY(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasY)));\r\n\t\t\tpalabras.get(x).get(0).setOrientacion(manejadorArchivos.getPalabras().get(orientacion));\r\n\t\t\t\r\n\t\t\t coordenadasX = coordenadasX +4;\r\n\t\t\t coordenadasY = coordenadasY + 4;\r\n\t\t\t orientacion = orientacion + 4;\r\n\t\t}\r\n\t}", "private void dibujarFondo() {\n\t\t\n\t\tgrilla.setBackground(new Background(new BackgroundFill(Color.LIGHTGREEN, null, null)));\n\t\tgrilla.setBorder(crearBorde());\n\t\tgrilla.setPadding(new Insets(10));\n\t\tgrilla.setCenterShape(true);\n\t\t\n\t\tpanel.setCenter(grilla);\n\t}", "public void descolaPosicao();", "@Override\n\tpublic void area() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(this.name+\"的面积:\"+land1high*land1);\n\t}", "private void disparo()\n {\n switch(this.posicion){\n case 0:\n setLocation(getX(),getY()-this.velocidadDisparo);\n break;\n case 1:\n setLocation(getX(),getY()+this.velocidadDisparo);\n break;\n case 2:\n setLocation(getX()+this.velocidadDisparo,getY());\n break;\n case 3:\n setLocation(getX()-this.velocidadDisparo,getY());\n break;\n }\n }", "public void setPosicion(){\n ejeX = 0;\n ejeY = 0;\n }", "private void ActualizaPosicionesFondos() {\n xFondo-=10; //Es el cursor de la posición\n xFondoBase-=10; //Aqui se puede implementar metodo de modificacion de velocidad de fondo.\n xFondoApoyo-=10;\n if (xFondo == -texturaFondoBase.getWidth()){\n xFondoBase = xFondoApoyo+texturaFondoApoyo.getWidth();\n cambiosFondo++;\n }\n if (xFondo == -(texturaFondoApoyo.getWidth()+texturaFondoBase.getWidth())) {\n xFondoApoyo = xFondoBase+texturaFondoBase.getWidth();\n cambiosFondo++;\n }\n }", "private void posicionInicial(int ancho){\r\n posicionX = ancho;\r\n Random aleatroio = new Random();\r\n int desplazamiento = aleatroio.nextInt(150)+100;\r\n \r\n \r\n cazaTie = new Rectangle2D.Double(posicionX, desplazamiento, anchoEnemigo, alturaEnemigo);\r\n }", "public void Ordenamiento() {\n\n\t}", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "public void imprimir() {\n\t\r\n\tSystem.out.println(\"El circulo tiene un perimetro de \"+ this.perimetro + \" y un area de \"+ this.area);\r\n\t\r\n\t}", "public void verificaCoordenada() {\r\n\t\tif (X < 0) {\r\n\t\t\tX = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tX = X % Const.TAMANHO;\r\n\t\t}\r\n\r\n\t\tif (Y < 0) {\r\n\t\t\tY = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tY = Y % Const.TAMANHO;\r\n\t\t}\r\n\t}", "public void leerPlanesDietas();", "public void fjernAlle() {\n listehode.neste = null;\n antall = 0;\n }", "@Override\n public double obtenrArea() {\n return lado*lado;\n }", "public void revisaColisionMapa() {\n\t\tactualCol = (int)x / tamTile;\n\t\tactualRen = (int)y / tamTile;\n\t\t\n\t\txdest = x + dx;\n\t\tydest = y + dy;\n\t\t\n\t\txtemp = x;\n\t\tytemp = y;\n\t\t\n\t\tcalcularEsquinas(x, ydest);\n\t\tif(dy < 0) {\n\t\t\tif(arribaIzq || arribaDer) {\n\t\t\t\tdy = 0;\n\t\t\t\tytemp = actualRen * tamTile + claltura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\t\tif(dy > 0) {\n\t\t\tif(abajoIzq || abajoDer) {\n\t\t\t\tdy = 0;\n\t\t\t\tcayendo = false;\n\t\t\t\tytemp = (actualRen + 1) * tamTile - claltura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcalcularEsquinas(xdest, y);\n\t\tif(dx < 0) {\n\t\t\tif(arribaIzq || abajoIzq) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = actualCol * tamTile + clanchura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\tif(dx > 0) {\n\t\t\tif(arribaDer || abajoDer) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = (actualCol + 1) * tamTile - clanchura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!cayendo) {\n\t\t\tcalcularEsquinas(x, ydest + 1);\n\t\t\tif(!abajoIzq && !abajoDer) {\n\t\t\t\tcayendo = true;\n\t\t\t}\n\t\t}\n\t}", "public void deplacements () {\n\t\t//Efface de la fenetre le mineur\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getLabyrinthe()[this.laby.getMineur().getY()][this.laby.getMineur().getX()].imageCase(themeJeu));\n\t\t//Deplace et affiche le mineur suivant la touche pressee\n\t\tpartie.laby.deplacerMineur(Partie.touche);\n\t\tPartie.touche = ' ';\n\n\t\t//Operations effectuees si la case ou se trouve le mineur est une sortie\n\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Sortie) {\n\t\t\t//On verifie en premier lieu que tous les filons ont ete extraits\n\t\t\tboolean tousExtraits = true;\t\t\t\t\t\t\t\n\t\t\tfor (int i = 0 ; i < partie.laby.getHauteur() && tousExtraits == true ; i++) {\n\t\t\t\tfor (int j = 0 ; j < partie.laby.getLargeur() && tousExtraits == true ; j++) {\n\t\t\t\t\tif (partie.laby.getLabyrinthe()[i][j] instanceof Filon) {\n\t\t\t\t\t\ttousExtraits = ((Filon)partie.laby.getLabyrinthe()[i][j]).getExtrait();\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Si c'est le cas alors la partie est terminee et le joueur peut recommencer ou quitter, sinon le joueur est averti qu'il n'a pas recupere tous les filons\n\t\t\tif (tousExtraits == true) {\n\t\t\t\tpartie.affichageLabyrinthe ();\n\t\t\t\tSystem.out.println(\"\\nFelicitations, vous avez trouvé la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire à present : [r]ecommencer ou [q]uitter ?\");\n\t\t\t\tString[] choixPossiblesFin = {\"Quitter\", \"Recommencer\"};\n\t\t\t\tint choixFin = JOptionPane.showOptionDialog(null, \"Felicitations, vous avez trouve la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire a present :\", \"Fin de la partie\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, choixPossiblesFin, choixPossiblesFin[0]);\n\t\t\t\tif ( choixFin == 1) {\n\t\t\t\t\tPartie.touche = 'r';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tPartie.touche = 'q';\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpartie.enTete.setText(\"Tous les filons n'ont pas ete extraits !\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Si la case ou se trouve le mineur est un filon qui n'est pas extrait, alors ce dernier est extrait.\n\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Filon && ((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getExtrait() == false) {\n\t\t\t\t((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setExtrait();\n\t\t\t\tSystem.out.println(\"\\nFilon extrait !\");\n\t\t\t}\n\t\t\t//Sinon si la case ou se trouve le mineur est une clef, alors on indique que la clef est ramassee, puis on cherche la porte et on l'efface de la fenetre, avant de rendre la case quelle occupe vide\n\t\t\telse {\n\t\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Clef && ((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getRamassee() == false) {\n\t\t\t\t\t((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setRamassee();\n\t\t\t\t\tint[] coordsPorte = {-1,-1};\n\t\t\t\t\tfor (int i = 0 ; i < this.laby.getHauteur() && coordsPorte[1] == -1 ; i++) {\n\t\t\t\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() && coordsPorte[1] == -1 ; j++) {\n\t\t\t\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Porte) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcoordsPorte[0] = j;\n\t\t\t\t\t\t\t\tcoordsPorte[1] = i;\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\tpartie.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].setEtat(true);\n\t\t\t\t\t((JLabel)grille.getComponents()[coordsPorte[1]*this.laby.getLargeur()+coordsPorte[0]]).setIcon(this.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].imageCase(themeJeu));\n\t\t\t\t\tSystem.out.println(\"\\nClef ramassee !\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int getCodigoArea() { return this.codigoArea; }", "public int getCodigoArea() { return this.codigoArea; }", "public void zeraEmpates() {\r\n contaEmpates = 0;\r\n }", "public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }", "private void moverFondo() {\n ActualizaPosicionesFondos();\n noAleatorio = MathUtils.random(1, 5); // crea los numeros para cambiar los mapas de manera aleatoria\n if (xFondo == -texturaFondoBase.getWidth()){\n //Cambio de fondo base\n texturaFondoBase= mapaAleatorio(noAleatorio);\n modificacionFondoBase= true; //Avisa que ya se modifico los fondos de inicio.\n }\n if (xFondo == -(texturaFondoApoyo.getWidth()+texturaFondoBase.getWidth())){\n //Cambio fondo de apoyo\n texturaFondoApoyo= mapaAleatorio(noAleatorio);\n xFondo= 0; //al pasar el segundo fondo regresa el puntero al primer fondo.\n modificacionFondoBase= true; //Avisa que ya se modifico los fondos de inicio.\n }\n }", "@Override\n public double obtenerArea(){\n return c.obtenerArea() * 4;\n }", "AREA createAREA();", "public void anuncio() {\n\n\t\tapp.image(pantallaEncontrado, 197, 115, 300, 150);\n\n\t\tapp.image(botonContinuar, 253, 285);\n\n\t}", "private void dibujarReina(Graphics g) {\n\t\tint x = (fila - 1) * 50 + 10;\r\n\t\tint y = (columna - 1) * 50 + 40;\r\n\t\tg.drawLine(x + 5, y + 45, x + 45, y + 45);\r\n\t\tg.drawLine(x + 5, y + 45, x + 5, y + 5);\r\n\t\tg.drawLine(x + 45, y + 45, x + 45, y + 5);\r\n\t\tg.drawLine(x + 5, y + 35, x + 45, y + 35);\r\n\t\tg.drawLine(x + 5, y + 5, x + 15, y + 20);\r\n\t\tg.drawLine(x + 15, y + 20, x + 25, y + 5);\r\n\t\tg.drawLine(x + 25, y + 5, x + 35, y + 20);\r\n\t\tg.drawLine(x + 35, y + 20, x + 45, y + 5);\r\n\t\tg.drawOval(x + 20, y + 20, 10, 10);\r\n\t}", "public void moverIzquierda() {\n estado = EstadosPersonaje.IZQUIERDA;\n mover(new Vector2(-1, 0));\n }", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "public void statoIniziale()\n {\n int r, c;\n for (r=0; r<DIM_LATO; r++)\n for (c=0; c<DIM_LATO; c++)\n {\n if (eNera(r,c))\n {\n if (r<3) // le tre righe in alto\n contenutoCaselle[r][c] = PEDINA_NERA;\n else if (r>4) // le tre righe in basso\n contenutoCaselle[r][c] = PEDINA_BIANCA;\n else contenutoCaselle[r][c] = VUOTA; // le 2 righe centrali\n }\n else contenutoCaselle[r][c] = VUOTA; // caselle bianche\n }\n }", "public void gerak() \n {\n setLocation(getX(),getY()-5);\n if(getY()<20){\n getWorld().removeObject(this);\n }else\n cek_kena();\n \n }", "public abstract int getArea();", "public void despegar(){\n if(this.posicion == 1){\n this.setPosicion(2);\n this.indicarEstado(\"Volando\");\n } else{\n System.out.println(\"No estoy preparado para el despegue\");\n }\n }", "public Exo2_Editeurpolylignes() {\n valeur_maximum = 5;\n initComponents();\n Tools.windowsInit(this);\n Tools.setIcone(\"./src/Icones/Icone_Lines.bmp\", this);\n this.setTitle(\"Editeur de poly-Lignes\");\n etat = Etat.Init;\n //rien\n initNombrePoints();\n\n }", "@Override\n\tpublic String getTareas() {\n\t\treturn \"TAREA COMERCIAL 3: VENDE MUCHO TODOS LOS DÍAS\";\n\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\tmouseMoved(e);\n\t\t\tint moveX= (int) e.getPoint().getX();//abscisse actuelle de ma souris \n\t\t\tint moveY= (int) e.getPoint().getY();//ordonnee actuelle de ma souris \n\t\t\tif (avantX>moveX){//l'abscisse est plus grand qu'avant ca veut dire qu'on est allr vers la droite avec la souris.\n\t\t\t\tmX++;\n\t\t\t}\n\t\t\telse if (avantX<moveX){//l'abscisse est plus petit qu'avant ca veut dire qu'on est alle vers la gauche avec la souris.\n\t\t\t\tmX--;\n\t\t\t}\n\t\t\tif (avantY>moveY){//l'ordonnee est plus petit qu'avant ca veut dire qu'on est alle vers le haut avec la souris.\n\t\t\t\tmY++;\n\t\t\t}\n\t\t\telse if (avantY<moveY ){//l'ordonnee est plus grand qu'avant ca veut dire qu'on est alle vers le bas avec la souris.\n\t\t\t\tmY--;\n\t\t\t}\n\t\t\t//j'enregistre les positions actuelles.\n\t\t\tavantX=moveX;\n\t\t\tavantY=moveY;\n\t\t\tdeplacementMinimap();\n\t\t}", "private void resetaPadraoEFundo() {\r\n\t\tdiferencaDeFundoATopo = new BigDecimal(0);\r\n\t\t\r\n\t\tif (!isNovoFundo) {\r\n\t\t\tvalorDoFundoAnterior = new BigDecimal(0);\r\n\t\t}\r\n\r\n\t\tvalorDoTopo = new BigDecimal(0);\r\n\t\tultimoFoiTopo = false;\r\n\t\t\r\n\t\tvalorDoFundo = valorCorrente;\r\n\t\tultimoFoiFundo = true;\r\n\t\t\r\n\t\tcorrecaoCorrente = new BigDecimal(0);\r\n\t\tformouPivoDeCompra = false;\r\n\t\tentrouNoRangeDeInicio = false;\r\n\t\testaNoRangeDeLimite = false;\r\n\t\tformadoSegundoTopo = false;\r\n\t\tformadoTopoRelevante = false;\r\n\t\tformouSegundoFundo = false;\r\n\t}", "public void mueveBala() {\n switch (direccion) {\n case NORTE:\n posY -= velocidadBala;\n break;\n case SUR:\n posY += velocidadBala;\n break;\n case ESTE:\n posX += velocidadBala;\n break;\n case OESTE:\n posX -= velocidadBala;\n break;\n }\n actualizaHitbox();\n }", "public void movimiento(Point inicio,Point llegada, String color, int nomFicha){\n \n /*if(this.tablero[inicio.x][inicio.y]==0){\n JOptionPane.showMessageDialog(null, \"no hay nada en esa posición\");\n }*/\n \n this.tablero[inicio.x][inicio.y]=0;\n this.tablero[llegada.x][llegada.y]=nomFicha;\n if (color==\"blanco\"){\n this.posiBlancas[inicio.x][inicio.y]=0;\n this.posiBlancas[llegada.x][llegada.y]=nomFicha;\n this.posiNegras[llegada.x][llegada.y]=0;\n }else{\n this.posiNegras[inicio.x][inicio.y]=0;\n this.posiNegras[llegada.x][llegada.y]=nomFicha;\n this.posiBlancas[llegada.x][llegada.y]=0;\n }\n\n }", "public void Exterior() {\n\t\t\r\n\t}", "private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n } else if (modificacionFondoBase == false && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE ){\n texturaFondoBase= texturaFondo1_1;\n texturaFondoApoyo= texturaFondo1_2;\n moverFondo();\n }\n }", "private void positionMinimap(){\n\t\tif(debutX<0)//si mon debutX est negatif(ca veut dire que je suis sorti de mon terrain (ter))\n\t\t\tdebutX=0;\n\t\tif(debutX>ter.length)//si debutX est plus grand que la taille de mon terrain(ter).\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY<0)\n\t\t\tdebutY=0;\n\t\tif(debutY>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\tif(debutX+100>ter.length)\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY+100>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\t//cette fonction est appelee uniquement si le terrain est strictement Superieur a 100\n\t\t// Donc je sais que ma fin se situe 100 cases apres.\n\t\tfinX=debutX+100;\n\t\tfinY=debutY+100;\n\t}", "public void afficher()\n\t{\n\t\tSystem.out.println(\"Centre du cercle en \" + getPosX() + \", \" + getPosY());\n\t\tSystem.out.println(\"Rayon : \" + getRayon());\n\t}", "public void cambiarABarreraTotal() {\n mRect = new Rect(0, y, centroPantallaX * 2, y + ALTO_PALA);\n }", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "int getAreaSize();", "public void deplacementMinimap(){\n\t\t\tboolean changement=false;//ce boolean me sert a savoir si les coordonnees ont change.\n\t\t\tif(mX>=3 || mX<=-3){//si l'utilisateur est alle a droite ou a gauche avec la souris (3 fois d'affiler)\n\t\t\t\tdebutX+=mX*5; //on bouge la minimap de 15 cases vers la droite ou la gauche.\n\t\t\t\tchangement=true;//on dit qu'on a change les coordonnees\n\t\t\t}\n\t\t\tif(mY>=3 || mY<=-3){//si l'utilisateur est alle en haut ou en bas avec la souris (3 fois d'affiler)\n\t\t\t\tdebutY+=mY*5; //on bouge la minimap de 15 cases vers en haut ou en bas.\n\t\t\t\tchangement=true;//on dit qu'on a change les coordonnees\n\t\t\t}\n\t\t\tif (changement){//s'il y a eu des changements.\n\t\t\t\tmY=0;//Je reInitialise mY,mX.\n\t\t\t\tmX=0;\n\t\t\t\tpositionMinimap();//je repositionne ma minimap\n\t\t\t\tposition();//je repositionne mon rectangle qui indique l'endroit que je zone.\n\t\t\t\tfenetreterrain.zoneZoom(zoom, positionX/widthCase+debutX, positionY/heightCase+debutY);//et je met a jour ma FenetreTerrain.\n\t\t\t}\n\t\t}", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "@Override public int conocerMonto(){\n\treturn 120;\n }", "void determinarEdad(int index) {\r\n\t\t\tcantEdad = index+15;\r\n\t\t}", "@Override\n\tpublic boolean ligaDesliga() {\n\t\treturn false;\n\t}", "public void resta(){\r\n\t\tSystem.out.println(\"Esta es la :\");\r\n\t\tSystem.out.println(this.getX() - this.getY());\r\n\t}", "private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }", "public void morir()\r\n\t{\r\n\t\tif(this.grafico != null)\t\r\n\t\t\tthis.mover(4);\r\n\t}", "@Override\n\tpublic void frenar() {\n\t\tvelocidadActual = 0;\n\t}", "public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }", "public void Dios()\r\n {\r\n \tif(!dios)\r\n \t\tgrafico.cambiarA(0);\r\n \telse\r\n \t\tgrafico.cambiarA(1);\r\n dios=!dios;\r\n }", "public UNIDADES_DE_LONGITUD() {\n \n //this.setContentPane(Fondo);\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public double Baricentro() {\n if (puntos.size() <= 2) {\n return 0;\n } else {\n // Inicializacion de las areas\n double areaPonderada = 0;\n double areaTotal = 0;\n double areaLocal;\n // Recorrer la lista conservando 2 puntos\n Punto2D antiguoPt = null;\n for (Punto2D pt : puntos) {\n if (antiguoPt != null) {\n // Cálculo deñ baricentro local\n if (antiguoPt.y == pt.y) {\n // Es un rectángulo, el baricentro esta en\n // centro\n areaLocal = pt.y * (pt.x - antiguoPt.x);\n areaTotal += areaLocal;\n areaPonderada += areaLocal * ((pt.x - antiguoPt.x) / 2.0 + antiguoPt.x);\n } else {\n // Es un trapecio, que podemos descomponer en\n // un reactangulo con un triangulo\n // rectangulo adicional\n // Separamos ambas formas\n // Primer tiempo: rectangulo\n areaLocal = Math.min(pt.y, antiguoPt.y) + (pt.x - antiguoPt.x);\n areaTotal += areaLocal;\n areaPonderada += areaLocal * ((pt.x - antiguoPt.x) / 2.0 + antiguoPt.x);\n //Segundo tiempo: triangulo rectangulo\n areaLocal = (pt.x - antiguoPt.x) * Math.abs(pt.y - antiguoPt.y) / 2.0;\n areaTotal += areaLocal;\n if (pt.y > antiguoPt.y) {\n // Baricentro a 1/3 del lado pt\n areaPonderada += areaLocal * (2.0 / 3.0 * (pt.x - antiguoPt.x) + antiguoPt.x);\n } else {\n // Baricentro a 1/3 dek lado antiguoPt\n areaPonderada += areaLocal * (1.0 / 3.0 * (pt.x - antiguoPt.x) + antiguoPt.x);\n }\n }\n }\n antiguoPt = pt;\n }\n // Devolvemos las coordenadas del baricentro\n return areaPonderada / areaTotal;\n }\n }", "public void claShapeArea(){\r\n\t\tshape.calArea();\r\n\t}", "private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }", "public void darCoordenadas() {\r\n\t\t\r\n\t\tfor(int x = 0; x<palabras.size(); x++) {\r\n\t\t\t\r\n\t\t\tif (palabras.get(x).get(0).getOrientacion().equals(\"V\")) {\r\n\t\t\t\tint coordenadaX = palabras.get(x).get(0).getX();\r\n\t\t\t\tint coordenadaY = palabras.get(x).get(0).getY();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 1; y < palabras.get(x).size(); y++) \r\n\t\t\t\t{\r\n\t\t\t\t\tcoordenadaY++;\r\n\t\t\t\t\tpalabras.get(x).get(y).setX(coordenadaX);\r\n\t\t\t\t\tpalabras.get(x).get(y).setY(coordenadaY);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (palabras.get(x).get(0).getOrientacion().equals(\"H\") ) {\r\n\t\t\t\t\r\n\t\t\t\tint coordenadaX = palabras.get(x).get(0).getX();\r\n\t\t\t\tint coordenadaY = palabras.get(x).get(0).getY();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 1; y < palabras.get(x).size(); y++) \r\n\t\t\t\t{\r\n\t\t\t\t\tcoordenadaX++;\r\n\t\t\t\t\tpalabras.get(x).get(y).setX(coordenadaX);\r\n\t\t\t\t\tpalabras.get(x).get(y).setY(coordenadaY);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void donnerArtefact() {\r\n\t\tZone z = j.getZone();\r\n\t\tif (z.getElement() == modele.Element.Neutre) {\r\n\t\t\tSystem.out.println(\"Cette zone ne contient pas d'artefact !\");\r\n\t\t}\r\n\t\tif (this.clefsMinimum <= j.combienCles(z.getElement())) {\r\n\t\t\tj.recupereObjet(new Artefact(z.getElement()));\r\n\t\t\tj.enleveCles(new Clef(z.getElement()), clefsMinimum);\r\n\t\t\t\r\n\t\t\tthis.incrNbAction();\r\n\t\t\tthis.notifyObservers();\r\n\t\t\tj.getIle().notifyObservers(); // Pour l'affichage d'inventaire.\r\n\t\t}\r\n\t}", "public void decida(){\r\n int f=this.getFila();\r\n int c=this.getColumna();\r\n int cont=alRededor(f,c);\r\n if(this.isVivo()){\r\n if(cont==2 || cont==3){\r\n estadoSiguiente=VIVA;\r\n }else/* if(cont==1 || cont>3)*/{\r\n estadoSiguiente=MUERTA;\r\n }\r\n }else{\r\n if(cont==3){\r\n estadoSiguiente=VIVA;\r\n }else if(cont==1 || cont>3){\r\n estadoSiguiente=MUERTA;\r\n }\r\n }\r\n }", "private void BajarPieza1posicion() {\n for (int i = 0; i < 4; ++i) {\r\n int x = posicionX + piezaActual.x(i);\r\n int y = posicionY - piezaActual.y(i);\r\n piezas[(y * anchoTablero) + x] = piezaActual.getPieza();\r\n }\r\n\r\n BorrarLineas();\r\n\r\n if (!finalizoQuitarFilas) {\r\n nuevaPieza();\r\n }\r\n }", "public int elimiarAlInicio(){\n int edad = inicio.edad;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n }\n return edad;\n }", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "private static void menuno(int menuno2) {\n\t\t\r\n\t}", "public double getArea() {\n /*\n * area = base (1o lado ou 3o lado) x altura (2o lado ou 4o lado)\n */\n\n return this.getLado(1) * this.getLado(2);\n }", "private void pintar_cuadrantes() {\tfor (int f = 0; f < 3; f++)\n//\t\t\tfor (int c = 0; c < 3; c++)\n//\t\t\t\ttablero[f][c].setBorder(new LineBorder(Color.DARK_GRAY, 2));\n//\n//\t\tfor (int f = 0; f < 3; f++)\n//\t\t\tfor (int c = 6; c < 9; c++)\n//\t\t\t\ttablero[f][c].setBorder(new LineBorder(Color.DARK_GRAY, 2));\n//\n//\t\tfor (int f = 3; f < 6; f++)\n//\t\t\tfor (int c = 3; c < 6; c++)\n//\t\t\t\ttablero[f][c].setBorder(new LineBorder(Color.DARK_GRAY, 2));\n//\n//\t\tfor (int f = 6; f < 9; f++)\n//\t\t\tfor (int c = 0; c < 3; c++)\n//\t\t\t\ttablero[f][c].setBorder(new LineBorder(Color.DARK_GRAY, 2));\n//\n//\t\tfor (int f = 6; f < 9; f++)\n//\t\t\tfor (int c = 6; c < 9; c++)\n//\t\t\t\ttablero[f][c].setBorder(new LineBorder(Color.DARK_GRAY, 2));\n//\t\n\t\t\n\t\t}", "@Override\n\tpublic double area() {\n\t\treturn getBase()*getAltura();\n\t}", "public boolean NoEnPantalla() {\n\t\treturn x + xmapa + anchura < 0 ||\n\t\t\t\tx + xmapa - anchura > PanelJuego.ANCHURA ||\n\t\t\t\ty + ymapa + altura < 0 ||\n\t\t\t\ty + ymapa - altura > PanelJuego.ALTURA;\n\t}", "public void destroyArea(Entity[][] map, int x, int y){\r\n map[y][x] = null;\r\n //check if the area to destroy is within the map\r\n if ((x > 0) && (y > 0)){\r\n checkIfOtherType(map, y-1, x-1);\r\n map[y-1][x-1] = null;\r\n map[y-1][x-1] = new ExplodedArea(3, x-1, y-1);\r\n }\r\n if ((x + 1 < map.length) && (y + 1< map.length)){\r\n checkIfOtherType(map, y+1, x+1);\r\n map[y+1][x+1] = null;\r\n map[y+1][x+1] = new ExplodedArea(3, x+1, y+1);\r\n }\r\n if ((y > 0)){\r\n checkIfOtherType(map, y-1, x);\r\n map[y-1][x] = null;\r\n map[y-1][x] = new ExplodedArea(3, x, y-1);\r\n }\r\n if ((x +1 < map.length) && (y > 0)){\r\n checkIfOtherType(map, y-1, x+1);\r\n map[y-1][x+1] = null;\r\n map[y-1][x+1] = new ExplodedArea(3, x+1, y-1);\r\n }\r\n if ( x < map.length -1){\r\n checkIfOtherType(map, y, x+1);\r\n map[y][x+1] = null;\r\n map[y][x+1] = new ExplodedArea(3, x+1, y);\r\n }\r\n if(x > 0){\r\n checkIfOtherType(map, y, x-1);\r\n map[y][x-1] = null;\r\n map[y][x-1] = new ExplodedArea(3, x-1, y);\r\n }\r\n if (y < map.length-1){\r\n checkIfOtherType(map, y+1, x);\r\n map[y+1][x] = null;\r\n map[y+1][x] = new ExplodedArea(3, x, y+1);\r\n }\r\n if((x > 0) && (y < map.length -1)){\r\n checkIfOtherType(map, y+1, x-1);\r\n map[y+1][x-1] = null;\r\n map[y+1][x-1] = new ExplodedArea(3, x-1, y+1);\r\n }\r\n }", "@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }", "public Espacio() {\n dib=new Dibujo(\"Simulacion de satelites\", 800,800);\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta();\n }", "void effacer() {\r\n Graphics g = this.zoneDessin.getGraphics();\r\n g.setColor(Color.gray);\r\n g.fillRect(0, 0, this.getWidth(), this.getHeight());\r\n }", "double getArea(){\n return 3.14 * raggio * raggio;\n }", "void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }", "private void actualizarEnConsola() {\n\t\tfor(int i=0; i<elementos.size();i++){\n\t\t\tElemento e = elementos.get(i);\n\t\t\tSystem.out.println(e.getClass().getName()+\"- Posicion: , X: \"+e.getPosicion().getX()+\", Y: \"+ e.getPosicion().getY());\n\t\t}\n\t\t\n\t}", "@Override\n\tvoid geraDados() {\n\n\t}", "public void normaliza() {\n switch (o) {\n case SurEste:\n setPos(getX()+1, getY());\n o = OrientacionArista.NorOeste;\n break;\n case SurOeste: \n setPos(getX(), getY()+1);\n o = OrientacionArista.NorEste;\n break;\n case Oeste: \n setPos(getX()-1, getY()+1);\n o = OrientacionArista.Este;\n break;\n }\n }", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f, p, false);\n\t}", "public Rectangulo()\n\t{\n\t\tthis.alto = 0;\n\t\tthis.ancho = 0;\n\t\tthis.area = 0;\n\t}", "@Override\n\tprotected void trazOutroATona() {\n\t\t\n\t}", "public void decidiOrdine() {\n\r\n }", "public int getArea()\n {\n return area;\n }", "public int eliminardelFinal(){\n int elemento = fin.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n fin = fin.ant;\n fin.sig = null;\n }\n return elemento;\n \n \n }", "public void cleanUp(){\n\t\t//offset(-1*bounds.left, -1*bounds.top);\n\t}", "public void afegirPosicio() {\n\t\tfor(int i=0; i<cal.length; ++i){\n\t\t\tcal[i] = new Dia(false);\n\t\t\tfor(int j=0; j<3; ++j) cal[i].getTorns()[j].setPosicio(i);\n\t\t}\n\t}", "public void dibujar() {\n if(fondoJuego1 != null) {\n fondoJuego1.dibujar(g);\n fondoJuego2.dibujar(g);\n if(fondoJuego2.getX()<=5) {\n juegoNuevo.dibujar(g);\n if(highLight.getPrioridad() == juegoNuevo.getPrioridad()) {\n tituloJuegoNuevo.dibujar(g);\n }\n continuar.dibujar(g);\n if(highLight.getPrioridad() == continuar.getPrioridad()) {\n tituloContinuar.dibujar(g);\n }\n regresar.dibujar(g);\n if(continuar.getY() <= 20) {\n if(highLight.getPrioridad() == regresar.getPrioridad()) {\n tituloRegresar.dibujar(g);\n }\n }\n highLight.dibujar(g);\n }\n }\n if(seleccion != null) {\n seleccion.g = this.g;\n seleccion.dibujar();\n }\n\tflushGraphics();\n }", "private void disparaUfo()\n {\n // Solo dispara si no hay disparo activo\n if (!disparoUfo.getVisible()) {\n // Generamos un número aleatorio para obtener el Ufo que va a disparar\n Random aleatorio = new Random();\n int ufoAleatorio;\n ufoAleatorio = aleatorio.nextInt(NUMEROUFOS);\n\n // Si el Ufo aleatorio NO está muerto dispara\n if (ufos.get(ufoAleatorio).getVisible()) {\n disparoUfo.setPosicion(ufos.get(ufoAleatorio).getPosicionX() + ((ufos.get(ufoAleatorio).getAncho() - disparoUfo.getAncho()) / 2), ufos.get(ufoAleatorio).getPosicionY() + ufos.get(ufoAleatorio).getAlto());\n disparoUfo.setVisible(true);\n }\n }\n }" ]
[ "0.62868035", "0.62565523", "0.62565523", "0.6233209", "0.6175112", "0.61626524", "0.6138371", "0.60722095", "0.6071443", "0.6023997", "0.5981659", "0.5976334", "0.5961056", "0.5958282", "0.5948063", "0.5931341", "0.5917367", "0.58862984", "0.5876692", "0.58640194", "0.5857908", "0.5829623", "0.5825153", "0.58205175", "0.58106697", "0.5797039", "0.5797039", "0.57935894", "0.5791907", "0.57779974", "0.57503635", "0.5735372", "0.5730397", "0.56982607", "0.5696571", "0.56960607", "0.56845444", "0.5677917", "0.5674308", "0.5672069", "0.56713754", "0.56658214", "0.5664183", "0.56635565", "0.56611437", "0.5654428", "0.5653497", "0.5649095", "0.56397384", "0.5639563", "0.5633509", "0.5629614", "0.5628516", "0.56235266", "0.5619905", "0.5613755", "0.5608835", "0.56088305", "0.56082845", "0.560015", "0.5597047", "0.55890316", "0.55839044", "0.5582928", "0.5582425", "0.558192", "0.55709565", "0.5570944", "0.556892", "0.5556756", "0.55561846", "0.5554906", "0.5553991", "0.5548243", "0.55427396", "0.5538115", "0.5530396", "0.55209935", "0.55197394", "0.5517956", "0.5516724", "0.5508784", "0.5505465", "0.55043346", "0.5503634", "0.5501137", "0.5492517", "0.54916817", "0.5488498", "0.5487039", "0.5485825", "0.5484155", "0.5481371", "0.54752123", "0.546883", "0.5468205", "0.5467104", "0.5462829", "0.5462755", "0.5462207", "0.54583925" ]
0.0
-1
Main method used to import dataset from CVS files: the file must contain: feature name;commitId; The program then takes each commit and extract the feature oriented changes from it and stores everything into the Neo4J database.
static public void extractFromCSVRefFile(String file_path) throws Exception { DataExtractor de = new DataExtractor(); File commitFile = new File(file_path); BufferedReader reader = new BufferedReader(new FileReader(commitFile)); String line = ""; List<String> commit_ids = new ArrayList<String>(); while(line != null) { line = reader.readLine(); if(line!= null && !line.isEmpty() && line.contains(";")) { String id = line.split(";")[1]; commit_ids.add(id); } } reader.close(); de.extractCommitInfo(commit_ids); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException, SQLException {\n\n // boilerplate\n sourceDB = AndroidDBManager.getProductionInstance();\n analysisDB = AndroidDBManager.getAnalysisInstance();\n\n BufferedWriter resFile = new BufferedWriter(new FileWriter(new File(\"commits.csv\")));\n\n // get the list of committers first\n List<AnalysisPeople> committers = analysisDB.getPeopleForTheTag(\"change\");\n System.out.println(\"will process \" + committers.size() + \" people records\");\n\n for (AnalysisPeople p : committers) {\n System.out.println(p.getEmail() + \" start: \" + p.getActivity_begin() + \", end: \"\n + p.getActivity_end());\n\n List<Change> changes = sourceDB.getAuthorChanges(p.getId(), p.getActivity_begin(),\n p.getActivity_end());\n System.out.println(\" .. \" + changes.size() + \" change(s) found.\");\n\n for (Change c : changes) {\n StringBuilder csvLine = new StringBuilder();\n StringBuilder sbTemp = new StringBuilder();\n\n // date/author/project/target/commits\n sbTemp.append(c.getAuthor_date()).append(COMMA);\n sbTemp.append(\"\\\"\").append(p.getEmail()).append(\"\\\"\").append(COMMA);\n sbTemp.append(sourceDB.getProject(c.getProject_id()).getName()).append(COMMA);\n for (ChangeTarget target : sourceDB.getTargets(c.getId())) {\n csvLine.append(sbTemp.toString()).append(\"\\\"\").append(target.getTarget()).append(\"\\\"\")\n .append(COMMA);\n csvLine.append(target.isAdded()).append(COMMA);\n csvLine.append(target.isEdited()).append(COMMA);\n csvLine.append(target.isDeleted()).append(COMMA).append(CR);\n resFile.write(csvLine.toString());\n }\n }\n resFile.close();\n }\n }", "@SuppressWarnings(\"unused\") \n\tprivate void extractChanges(Node commit_node, RevCommit m) throws Exception\n\t{\n\n\t\tList<String> commitIds = new ArrayList<String>(); \n\n\t\tcommitIds.add(m.toObjectId().getName());\n\t\t\n\t\tCommitInfoExtractor cie = new CommitInfoExtractor();\n\t\tcie.extractFeatureChanges(commitIds);\n\t\tList<EvolutionStep>steps = cie.getSteps();\n\t\t\n\t\ttry(Transaction tx = DBConnection.getService().beginTx())\n\t\t{\n\t\t\tfor(EvolutionStep step : steps)\n\t\t\t{\n\t\t\t\tFileChangeExtractor file_changes = new FileChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> file_nodes = file_changes.addFileChangesToCommit(step.files, commit_node);\n\t\t\t\t\n\t\t\t\tVMChangeExtractor vm_changes = new VMChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> vm_nodes = vm_changes.addVMChangesToCommit(step.fm_changes, commit_node);\n\t\t\t\t\n\t\t\t\tBuildChangeExtractor build_changes = new BuildChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> build_nodes = build_changes.addBuildChangesToCommit(step.build_changes, commit_node);\n\t\t\t\t\n\t\t\t\tCodeChangeExtractor code_changes = new CodeChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> code_nodes = code_changes.addCodeChangesToCommit(step.impl_changes, commit_node);\n\n//\t\t\t\tList<EvolutionStep> local = new ArrayList<EvolutionStep>(); local.add(step);\n//\t\t\t\tFeatureOrientedChangeExtractor dataextractor = new FeatureOrientedChangeExtractor(local);\n//\t\t\t\tdataextractor.buildFeatureChanges();\n//\t\t\t\t\n//\t\t\t\tList<FeatureOrientedChange> changes = dataextractor.getFeatureChanges();\n//\t\n//\t\t\t\tList<Node> focs = new ArrayList<Node>();\n//\t\t\t\tfor(FeatureOrientedChange c : changes)\n//\t\t\t\t{\n//\t\t\t\t\tNode foc_node = createFeatureOrientedChangeForCommit(c);\n//\t\t\t\t\tfocs.add(foc_node);\n//\t\t\t\t\tlink_file_and_vm_changes(c,foc_node,file_nodes, vm_nodes,build_nodes,code_nodes); \n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t\tMap<String,Node> known_focs = buildFOCMap(focs);\n//\t\t\t\tlink_mapping_artefacts(known_focs,build_nodes);\n//\t\t\t\tlink_code_artefacts(known_focs,code_nodes);\n\t\t\t}\n\t\t\ttx.success();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tthrow new Exception(\"Failed to create Neo4j nodes - \", e);\n\t\t}\n\t}", "public static void main(String[] args){\n String importPath = \"import.CSV\";\n String exportQuery = \"SELECT * FROM PAIS\";\n SQLUtils t = new SQLUtilsImpl();\n File export = t.importCSV(exportQuery);\n //t.runFile(file);\n //t.importCSV(importF);\n //System.out.println(t.executeQuery(\"SELECT * FROM CIDADE WHERE ID = 3000\")); \n \n System.out.println(\"termino\");\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\t\t\tdata = null;\t\t //clear the memory\r\n\t\t\t\tread(\"core_dataset.csv\");\t\t//read back the data\r\n\t\t\t\twrite(\"young_employee.csv\"); //write the data to another file\r\n\t\t\t}", "public static void main(String[] args) {\n Scanner scan = null;\n try {\n scan = new Scanner(new File(\"src/input.txt\"));\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found.\");\n }\n\n /** Read the minimum degree of B+Tree first */\n\n int degree = scan.nextInt();\n\n BTree bTree = new BTree(degree);\n\n /** Reading the database student.csv into B+Tree Node*/\n List<Student> studentsDB = getStudents();\n\n for (Student s : studentsDB) {\n bTree.insert(s);\n }\n \n long size = (long) studentsDB.size();\n /** Start reading the operations now from input file*/\n try {\n while (scan.hasNextLine()) {\n Scanner s2 = new Scanner(scan.nextLine());\n\n while (s2.hasNext()) {\n\n String operation = s2.next();\n //System.out.println(operation);\n switch (operation) {\n case \"insert\": {\n\n long studentId = Long.parseLong(s2.next());\n String studentName = s2.next() + \" \" + s2.next();\n String major = s2.next();\n String level = s2.next();\n int age = Integer.parseInt(s2.next());\n /** TODO: Write a logic to generate recordID*/\n\n long recordID = ++size;\n\n Student s = new Student(studentId, age, studentName, major, level, recordID);\n bTree.insert(s);\n\n break;\n }\n case \"delete\": {\n long studentId = Long.parseLong(s2.next());\n boolean result = bTree.delete(studentId);\n if (result)\n System.out.println(\"Student deleted successfully.\");\n else\n System.out.println(\"Student deletion failed.\");\n\n break;\n }\n case \"search\": {\n long studentId = Long.parseLong(s2.next());\n long recordID = bTree.search(studentId);\n if (recordID != -1)\n System.out.println(\"Student exists in the database at \" + recordID);\n else\n System.out.println(\"Student does not exist.\");\n break;\n }\n case \"print\": {\n List<Long> listOfRecordID = new ArrayList<>();\n listOfRecordID = bTree.print();\n System.out.println(\"List of recordIDs in B+Tree \" + listOfRecordID.toString());\n break;\n }\n default:\n System.out.println(\"Wrong Operation\");\n break;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tString filePath = \"C:/Users/urban/OneDrive/OD-Documents/DEV/Diginamic/Java/workspaceSTS/recensement-jdbc/resources/recensement.csv\";\n//\t\tRecensement recens = new Recensement(filePath);\n\t\tPath pathFile = Paths.get(filePath);\n\t\t// Récupération des lignes du fichier CSV dans une liste de String\n\t\tList<String> infosBrutesVilles = Files.readAllLines(pathFile);\n\t\tinfosBrutesVilles.remove(0); // Je retire la ligne d'entête\n\n\t\tConnection connection = DbManager.connection();\n\n\t\t// Insertion des lignes du fichier recensement (les villes) dans la table ville\n\t\t// de la DB\n\t\tStatement statement = null;\n\t\ttry {\n\t\t\tstatement = connection.createStatement();\n\t\t\tfor (String line : infosBrutesVilles) {\n\n\t\t\t\t// Conversion de chaque ligne CSV en tableau de String\n\t\t\t\tString[] tabInfosVilles = line.split(\";\");\n\n\t\t\t\t// Récupération des colonnes du CSV qui nous intéressent\n\t\t\t\tString codeRegion = tabInfosVilles[0];\n\t\t\t\tString codeDep = tabInfosVilles[2];\n\t\t\t\tString nomCommune = tabInfosVilles[6];\n\t\t\t\tint populationTotale = Integer.parseInt(tabInfosVilles[9].replaceAll(\" \", \"\"));\n\n\t\t\t\tPreparedStatement prepStatement = connection\n\t\t\t\t\t\t.prepareStatement(\"INSERT INTO \" + \"ville(nom, population) \" + \"VALUES (?, ?)\");\n\n\t\t\t\tprepStatement.setString(1, nomCommune);\n\t\t\t\tprepStatement.setInt(2, populationTotale);\n\n\t\t\t\tprepStatement.executeUpdate();\n\t\t\t}\n\n\t\t\tstatement.close();\n\t\t\tconnection.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Echec de la requête SQL : \" + e.getMessage());\n\t\t}\n\n\t}", "public static void main(String[] args) throws Exception {\n int numLinesToSkip = 0;\n String delimiter = \",\"; //这是csv文件中的分隔符\n RecordReader recordReader = new CSVRecordReader(numLinesToSkip,delimiter);\n recordReader.initialize(new FileSplit(new ClassPathResource(\"dataSet20170119.csv\").getFile()));\n\n //Second: the RecordReaderDataSetIterator handles conversion to DataSet objects, ready for use in neural network\n\n /**\n * 这是标签(类别)所在列的序号\n */\n int labelIndex = 0; //5 values in each row of the iris.txt CSV: 4 input features followed by an integer label (class) index. Labels are the 5th value (index 4) in each row\n //类别的总数\n int numClasses = 2; //3 classes (types of iris flowers) in the iris data set. Classes have integer values 0, 1 or 2\n\n //一次读取多少条数据。当数据量较大时可以分几次读取,每次读取后就训练。这就是随机梯度下降\n int batchSize = 2000; //Iris data set: 150 examples total. We are loading all of them into one DataSet (not recommended for large data sets)\n\n DataSetIterator iterator = new RecordReaderDataSetIterator(recordReader,batchSize,labelIndex,numClasses);\n //因为我在这里写的2000是总的数据量大小,一次读完,所以一次next就完了。如果分批的话要几次next\n DataSet allData = iterator.next();\n// allData.\n allData.shuffle();\n SplitTestAndTrain testAndTrain = allData.splitTestAndTrain(0.8); //Use 65% of data for training\n\n DataSet trainingData = testAndTrain.getTrain();\n DataSet testData = testAndTrain.getTest();\n //We need to normalize our data. We'll use NormalizeStandardize (which gives us mean 0, unit variance):\n //数据归一化的步骤,非常重要,不做可能会导致梯度中的几个无法收敛\n DataNormalization normalizer = new NormalizerStandardize();\n normalizer.fit(trainingData); //Collect the statistics (mean/stdev) from the training data. This does not modify the input data\n normalizer.transform(trainingData); //Apply normalization to the training data\n normalizer.transform(testData); //Apply normalization to the test data. This is using statistics calculated from the *training* set\n\n\n final int numInputs = 9202;\n int outputNum = 2;\n int iterations = 1000;\n long seed = 142;\n int numEpochs = 50; // number of epochs to perform\n\n log.info(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(seed)\n .optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT)\n .iterations(iterations)\n .activation(Activation.SIGMOID)\n .weightInit(WeightInit.ZERO) //参数初始化的方法,全部置零\n .learningRate(1e-3) //经过测试,这里的学习率在1e-3比较合适\n .regularization(true).l2(5e-5) //正则化项,防止参数过多导致过拟合。2阶范数乘一个比率\n .list()\n\n .layer(0, new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\n .activation(Activation.SIGMOID)\n .nIn(numInputs).nOut(outputNum).build())\n .backprop(true).pretrain(false)\n .build();\n\n //run the model\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n model.setListeners(new ScoreIterationListener(100));\n\n\n log.info(\"Train model....\");\n for( int i=0; i<numEpochs; i++ ){\n log.info(\"Epoch \" + i);\n model.fit(trainingData);\n\n //每个epoch结束后立马观察模型估计的效果,方便及早停止\n Evaluation eval = new Evaluation(numClasses);\n INDArray output = model.output(testData.getFeatureMatrix());\n eval.eval(testData.getLabels(), output);\n log.info(eval.stats());\n }\n\n }", "public static void main(String[] args) throws ParserConfigurationException, IOException, TransformerException, OWLOntologyCreationException, OWLOntologyStorageException, SAXException {\n\t\tFile dis = new File(args[0]);\n\t\tFile csv = new File(args[1]);\n\t\tString dir = args[2];\n\t\tFile justDir = new File(args[3]);\n\t\tFile equvCSV = new File(args[4]);\n\t\t/**\n\t\tListManager lm = new ListManager();\n\t\tList<Case> caseList = lm.constructCaseListFromCSV(csv);\n\t\tXMLCaseWriter xcw = new XMLCaseWriter();\n\t\tFile xml = new File(dir + \"/cases.xml\");\n\t\txml.canWrite();\n\t\txcw.createXMLCaseFileFromList(csv, xml, caseList, \"iswc-2014\");\n\t\t/**\n\t\tint i = 0;\n\t\tList<Map<String,String>> records = CSVUtilities.getRecords(csv);\n\t\tfor(Map<String,String> r:records)\n\t\t{\n\t\t\t\n\t\t\tSystem.out.println(\"Map \" + i);\n\t\t\tfor(String k:r.keySet())\n\t\t\t{\n\t\t\t\tSystem.out.println(k);\n\t\t\t\tSystem.out.println(r.get(k));\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\ti++;\n\t\t}\n\t\t**/\n\t\t\n\t\tListManager lm = new ListManager();\n\t\tList<Case> caseList = lm.constructCaseListFromCSV(csv);\n\t\tMap<String,List<Case>> splitMap = new HashMap<String,List<Case>>();\n\t\tMap<String,List<String>> equvMap = lm.getIDMapForEQClasses(equvCSV);\n\t\tXMLCaseWriter xcw = new XMLCaseWriter();\n\t\txcw.createOntologySortedXMLCaseFilesFromList(csv, new File(dir), justDir, equvMap, caseList, \"iswc-2014\");\n\t\t/**\n\t\tfor(Case c:caseList)\n\t\t{\n\t\t\tif(!splitMap.keySet().contains(c.getOntology()))\n\t\t\t{\n\t\t\t\tList<Case> list = new ArrayList<Case>();\n\t\t\t\tlist.add(c);\n\t\t\t\tsplitMap.put(c.getOntology().toString(), list);\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tList<Case> list = splitMap.get(c.getOntology().toString());\n\t\t\t\tlist.add(c);\n\t\t\t\tsplitMap.replace(c.getOntology().toString(), list);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor(String key:splitMap.keySet())\n\t\t{\n\t\t\tList<Case> clist = splitMap.get(key);\n\t\t\tXMLCaseWriter xcw = new XMLCaseWriter();\n\t\t\tFile xml = new File(dir + key + \".cases.xml\");\n\t\t\txml.canWrite();\n\t\t\txcw.createXMLCaseFileFromList(csv, xml, justDir, equvCSV, clist, \"iswc-2014\");\n\t\t\t\n\t\t}\n\t\t//List<Case> list = lm.constructCaseListFromDisFile(dis);\n\t\t//Map<Case,ArrayList<String>> m =lm.getCaseListMetaData(list, csv);\n\t\t\n\t\t/**\n\t\tfor(Case c:m.keySet())\n\t\t{\n\t\t\tSystem.out.println(c.getOntology().toString());\n\t\t\tSystem.out.println(c.getEntailment().toString());\n\t\t\tfor(String s: m.get(c))\n\t\t\t{\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t}\n\t\t**/\n\t\t/**\n\t\tArrayList<CaseData> cd = lm.constructCaseDataFromCSV(list, csv);\n\t\tfor(CaseData data:cd)\n\t\t{\n\t\t\tSystem.out.println(data.getCase().getOntology());\n\t\t\tSystem.out.println(data.getCase().getEntailment().toString());\n\t\t\tSystem.out.println(\"METADATA: \" + data.getMetaData().getMetaData());\n\t\t\tSystem.out.println(\"EVIDENCE \" + data.getEvidence().getMetaData());\n\t\t\tSystem.out.println(\"RV:\");\n\t\t\tfor(ReasonerVerdict rv:data.getReasonerVerdicts())\n\t\t\t{\n\t\t\t\tSystem.out.println(rv.getReasoner());\n\t\t\t\tSystem.out.println(rv.getValue());\n\t\t\t}\n\t\t\tSystem.out.println(\"SUBCASES:\");\n\t\t\tfor(Subcase s:data.getSubcases())\n\t\t\t{\n\t\t\t\tSystem.out.println(s.getJustification());\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tList<Subcase> sc = lm.extractSubcasesFromCaseData(cd);\n\t\tArrayList<SubcaseData> scd = lm.constructSubCaseDataFromCSV(sc, csv);\n\t\tfor(SubcaseData data:scd)\n\t\t{\n\t\t\tSystem.out.println(data.getCase().getOntology());\n\t\t\tSystem.out.println(data.getCase().getEntailment().toString());\n\t\t\tSystem.out.println(data.getCase().getJustification());\n\t\t\tSystem.out.println(\"GEN REASONER: \" + data.getGeneratingReasoner());\n\t\t\tSystem.out.println(\"METADATA: \" + data.getMetaData().getMetaData());\n\t\t\tSystem.out.println(\"EVIDENCE \" + data.getEvidence().getMetaData());\n\t\t\tSystem.out.println(\"RV:\");\n\t\t\tfor(ReasonerVerdict rv:data.getReasonerVerdicts())\n\t\t\t{\n\t\t\t\tSystem.out.println(rv.getReasoner());\n\t\t\t\tSystem.out.println(rv.getValue());\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t\tXMLCaseWriter xcw = new XMLCaseWriter();\n\t\txcw.createXMLCaseFileFromDisAndCSV(dis, csv, xml, \"iswc-2014\");\n\t\t//xcw.createXMLCaseFileFromDis(csv, xml, \"iswc\");\n\t\t * \n\t\t */\n\t\t}", "public static void main(String[] args) {\n if (args.length < 3){\n System.out.println(\"please run the program using params as \\\"filename fromCity toCity\\\"\");\n return;\n }\n\n CityGraph<City> graph = CityGraph.newInstance();\n\n String fileName = args[0];\n String line = null;\n try {\n FileReader fileReader = new FileReader(\"./\" + fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n String[] arr = line.split(\",\");\n graph.addEdge(new City(arr[0].trim()), new City(arr[1].trim()));\n }\n\n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n if (graph.isConnected(new City(args[1]), new City(args[2]))){\n System.out.println(\"yes\");\n }else {\n System.out.println(\"no\");\n }\n\n\n }", "public static void main(String[] args)\n throws CmdLineExceptions, FileNotFoundException {\n CommandLineProcessor clp = new CommandLineProcessor(args);\n HashMap<String, ArrayList<String>> allTasks = clp.argumentSeparator(); // package neatly all flags and args into a list of HashMap\n\n Model digitalEntryDatabase = new Model(allTasks.get(CSV_ARG).get(INPUT_FILE_INDEX)); // create data model\n Controller program = new Controller(digitalEntryDatabase, allTasks); // ingest package\n\n program.executeTask(); // execute all tasks, modify data model, write to backup CSV\n Map<Integer, DigitalEntry> toDisplay = program.display(); // output final TreeMap, primary key is ID\n\n View finalView = new View(toDisplay); // Front end focus, still render on errors\n finalView.printAllEntries();\n }", "public static void main(String[] args) throws Exception {\n DataSet houseVotes = DataParser.parseData(HouseVotes.filename, HouseVotes.columnNames, HouseVotes.dataTypes, HouseVotes.ignoreColumns, HouseVotes.classColumn, HouseVotes.discretizeColumns);\n DataSet breastCancer = DataParser.parseData(BreastCancer.filename, BreastCancer.columnNames, BreastCancer.dataTypes, BreastCancer.ignoreColumns, BreastCancer.classColumn, HouseVotes.discretizeColumns);\n DataSet glass = DataParser.parseData(Glass.filename, Glass.columnNames, Glass.dataTypes, Glass.ignoreColumns, Glass.classColumn, Glass.discretizeColumns);\n DataSet iris = DataParser.parseData(Iris.filename, Iris.columnNames, Iris.dataTypes, Iris.ignoreColumns, Iris.classColumn, Iris.discretizeColumns);\n DataSet soybean = DataParser.parseData(Soybean.filename, Soybean.columnNames, Soybean.dataTypes, Soybean.ignoreColumns, Soybean.classColumn, Soybean.discretizeColumns);\n \n /*\n * The contents of the DataSet are not always random.\n * You can shuffle them using Collections.shuffle()\n */\n \n Collections.shuffle(houseVotes);\n Collections.shuffle(breastCancer);\n Collections.shuffle(glass);\n Collections.shuffle(iris);\n Collections.shuffle(soybean);\n /*\n * Lastly, you want to split the data into a regular dataset and a testing set.\n * DataSet has a function for this, since it gets a little weird.\n * This grabs 10% of the data in the dataset and sets pulls it out to make the testing set.\n * This also means that the remaining 90% in DataSet can serve as our training set.\n */\n\n DataSet houseVotesTestingSet = houseVotes.getTestingSet(.1);\n DataSet breastCancerTestingSet = breastCancer.getTestingSet(.1);\n DataSet glassTestingSet = glass.getTestingSet(.1);\n DataSet irisTestingSet = iris.getTestingSet(.1);\n DataSet soybeanTestingSet = soybean.getTestingSet(.1);\n \n //KNN\n //House Votes\n System.out.println(HouseVotes.class.getSimpleName());\n KNN knn = new KNN(houseVotes, houseVotesTestingSet, HouseVotes.classColumn, 3);\n String[] knnHouseVotes = new String[houseVotesTestingSet.size()];\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n knnHouseVotes[i] = knn.classify(houseVotesTestingSet.get(i));\n }\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n if(knnHouseVotes[i].equals(houseVotesTestingSet.get(i)[HouseVotes.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnHouseVotes[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnHouseVotes[i] + \", actually \" + houseVotesTestingSet.get(i)[HouseVotes.classColumn].value() + \")\");\n }\n }\n \n //Breast Cancer\n System.out.println(BreastCancer.class.getSimpleName());\n knn = new KNN(breastCancer, breastCancerTestingSet, BreastCancer.classColumn, 3);\n String[] knnBreastCancer = new String[breastCancerTestingSet.size()];\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n knnBreastCancer[i] = knn.classify(breastCancerTestingSet.get(i));\n }\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n if(knnBreastCancer[i].equals(breastCancerTestingSet.get(i)[BreastCancer.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnBreastCancer[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnBreastCancer[i] + \", actually \" + breastCancerTestingSet.get(i)[BreastCancer.classColumn].value() + \")\");\n }\n }\n \n //Glass\n System.out.println(Glass.class.getSimpleName());\n knn = new KNN(glass, glassTestingSet, Glass.classColumn, 3);\n String[] knnGlass = new String[glassTestingSet.size()];\n for(int i = 0; i < glassTestingSet.size(); i++) {\n knnGlass[i] = knn.classify(glassTestingSet.get(i));\n }\n for(int i = 0; i < glassTestingSet.size(); i++) {\n if(knnGlass[i].equals(glassTestingSet.get(i)[Glass.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnGlass[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnGlass[i] + \", actually \" + glassTestingSet.get(i)[Glass.classColumn].value() + \")\");\n }\n }\n \n //Iris\n System.out.println(Iris.class.getSimpleName());\n knn = new KNN(iris, irisTestingSet, Iris.classColumn, 3);\n String[] knnIris = new String[irisTestingSet.size()];\n for(int i = 0; i < irisTestingSet.size(); i++) {\n knnIris[i] = knn.classify(irisTestingSet.get(i));\n }\n for(int i = 0; i < irisTestingSet.size(); i++) {\n if(knnIris[i].equals(irisTestingSet.get(i)[Iris.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnIris[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnIris[i] + \", actually \" + irisTestingSet.get(i)[Iris.classColumn].value() + \")\");\n }\n }\n \n //Soybean\n System.out.println(Soybean.class.getSimpleName());\n knn = new KNN(soybean, soybeanTestingSet, Soybean.classColumn, 3);\n String[] knnSoybean = new String[soybeanTestingSet.size()];\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n knnSoybean[i] = knn.classify(soybeanTestingSet.get(i));\n }\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n if(knnSoybean[i].equals(soybeanTestingSet.get(i)[Soybean.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnSoybean[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnSoybean[i] + \", actually \" + soybeanTestingSet.get(i)[Soybean.classColumn].value() + \")\");\n }\n }\n \n \n /*\n * Lets setup ID3:\n * DataSet, TestSet, column with the class categorization. (republican, democrat in this case)\n */\n\n System.out.println(HouseVotes.class.getSimpleName());\n ID3 id3 = new ID3(houseVotes, houseVotesTestingSet, HouseVotes.classColumn);\n String[] id3HouseVotes = new String[houseVotesTestingSet.size()];\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n id3HouseVotes[i] = id3.classify(houseVotesTestingSet.get(i));\n }\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n if(id3HouseVotes[i].equals(houseVotesTestingSet.get(i)[HouseVotes.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3HouseVotes[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3HouseVotes[i] + \", actually \" + houseVotesTestingSet.get(i)[HouseVotes.classColumn].value() + \")\");\n }\n }\n\n System.out.println(BreastCancer.class.getSimpleName());\n id3 = new ID3(breastCancer, breastCancerTestingSet, BreastCancer.classColumn);\n String[] id3BreastCancer = new String[breastCancerTestingSet.size()];\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n id3BreastCancer[i] = id3.classify(breastCancerTestingSet.get(i));\n }\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n if(id3BreastCancer[i].equals(breastCancerTestingSet.get(i)[BreastCancer.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3BreastCancer[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3BreastCancer[i] + \", actually \" + breastCancerTestingSet.get(i)[BreastCancer.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Glass.class.getSimpleName());\n id3 = new ID3(glass, glassTestingSet, Glass.classColumn);\n String[] id3Glass = new String[glassTestingSet.size()];\n for(int i = 0; i < glassTestingSet.size(); i++) {\n id3Glass[i] = id3.classify(glassTestingSet.get(i));\n }\n for(int i = 0; i < glassTestingSet.size(); i++) {\n if(id3Glass[i].equals(glassTestingSet.get(i)[Glass.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Glass[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Glass[i] + \", actually \" + glassTestingSet.get(i)[Glass.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Iris.class.getSimpleName());\n id3 = new ID3(iris, irisTestingSet, Iris.classColumn);\n String[] id3Iris = new String[irisTestingSet.size()];\n for(int i = 0; i < irisTestingSet.size(); i++) {\n id3Iris[i] = id3.classify(irisTestingSet.get(i));\n }\n for(int i = 0; i < irisTestingSet.size(); i++) {\n if(id3Iris[i].equals(irisTestingSet.get(i)[Iris.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Iris[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Iris[i] + \", actually \" + irisTestingSet.get(i)[Iris.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Soybean.class.getSimpleName());\n id3 = new ID3(soybean, soybeanTestingSet, Soybean.classColumn);\n String[] id3Soybean = new String[soybeanTestingSet.size()];\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n id3Soybean[i] = id3.classify(soybeanTestingSet.get(i));\n }\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n if(id3Soybean[i].equals(soybeanTestingSet.get(i)[Soybean.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Soybean[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Soybean[i] + \", actually \" + soybeanTestingSet.get(i)[Soybean.classColumn].value() + \")\");\n }\n }\n }", "public static void main(String[] args) throws IOException, SQLException, ClassNotFoundException {\n Properties prop = new Properties();\n prop.load(new FileInputStream(PROPERTIES));\n String server = prop.getProperty(\"server\");\n String schema = prop.getProperty(\"database\");\n String username = prop.getProperty(\"user\");\n String password = prop.getProperty(\"password\");\n\n // TODOd: connect to the database\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n String url = \"jdbc:mysql://\" + server + \":3306/\" + schema ;\n conn = DriverManager.getConnection(url,username, password);\n\n // Only for testing purposes\n // jdbcInit();\n\n // TODOd: complete the data load\n splitCsv(System.getProperty(\"user.dir\") + \"/\", DATASET);\n }", "public static void main(String[] args) {\n\t\tif (args.length == 0) {\n\t\t\t System.err.println(\"Usage Error: the program expects a file name as an argument\");\n\t\t\t System.exit(-1);\n\t\t}\n\t\t\n\t\t// create a file with the entered file name\n\t\tFile file= new File(args[0]);\n\t\t\n\t\t// if the file does not exist inform the user and terminate the program\n\t\tif(file.exists()!=true){\n\t\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" cannot be opened.\");\n\t\t\t\tSystem.exit(-1);\n\t\t}\n\t\t// if the file cannot be read inform the user and terminate the program\n\t\telse if(file.canRead()!=true){\n\t\t\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" cannot be opened.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t}\n\t\t// if the file is not a file inform the user and terminate the program\n\t\telse if(file.isFile()!=true){\n\t\t\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" cannot be opened.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\t\n\t\t// create a list of type TreeList that will contain all the tree objects \n\t\tTreeList list= new TreeList();\n\t\t\t\n\t\ttry{\n\t\t\t// send the file to the scanner\n\t\t\tScanner inputFile = new Scanner(file);\n\t\t\t\n\t\t\t// create a boolean variable that is initially equal to true. \n\t\t\t// Since the first line does not contain info that can be parsed use the \n\t\t\t// variable to ensure the first line is skipped\n\t\t\tboolean firstLine=true;\n\t\t\t\n\t\t\t// while there is another line in the file continue the loop\n\t\t\twhile (inputFile.hasNextLine())\t{\n\t\t\t\t\n\t\t\t\t// create a string that represents a single line from the file\n\t\t\t\tString line= inputFile.nextLine();\n\t\t\t\t\n\t\t\t\t// send the line to have its information separated and entered into an\n\t\t\t\t// arrayList of strings\n\t\t\t\tArrayList<String> splitLine= splitCSVLine(line);\n\t\t\t\t\n\t\t\t\t\t// ensure the splitLine contains 41 elements, if not, skip it\n\t\t\t\t\tif (splitLine.size()==41){\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t// parse the information according to the needed information\n\t\t\t\t\t\t\t// about a tree that is sent to the tree class\n\t\t\t\t\t\t\tint id= Integer.parseInt(splitLine.get(0));\n\t\t\t\t\t\t\tint diam= Integer.parseInt(splitLine.get(3));\n\t\t\t\t\t\t\tString status= splitLine.get(6);\n\t\t\t\t\t\t\tString health= splitLine.get(7);\n\t\t\t\t\t\t\tString spc= splitLine.get(9);\n\t\t\t\t\t\t\tint zip= Integer.parseInt(splitLine.get(25));\n\t\t\t\t\t\t\tString boro= splitLine.get(29);\n\t\t\t\t\t\t\tdouble x= Double.parseDouble(splitLine.get(39));\n\t\t\t\t\t\t\tdouble y= Double.parseDouble(splitLine.get(40));\n\t\t\t\t\t\t\t// once information is parsed, use its information to create a \n\t\t\t\t\t\t\t// new tree\n\t\t\t\t\t\t\tTree tree= new Tree(id,diam,status,health,spc,zip,boro,x,y);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// ensure that the new tree does not have the same\n\t\t\t\t\t\t\t// ID, but a different species name from the other trees\n\t\t\t\t\t\t\t// in treeList\n\t\t\t\t\t\t\tfor (int i=0; i<list.size();i++){\n\t\t\t\t\t\t\t\ttree.equals(list.get(i));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// if the tree object is valid, add it to treeList list\n\t\t\t\t\t\t\tlist.add(tree);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// catch any invalid values sent to the constructor of the tree class\n\t\t\t\t\t\tcatch (IllegalArgumentException e){\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// throw a general exception in the case there is a parsing error\n\t\t\t\t\t\t// therefore the line will be ignored\n\t\t\t\t\t\tcatch (Exception e){\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t//}\n\t\t\t\t// after the first line passes through the loop set it equal\n\t\t\t\t// to false so the following information can be parsed and \n\t\t\t\t// sent to the tree class\n\t\t\t\tfirstLine=false;\n\t\t\t\n\t\t\t}\n\t\t\t// close the scanner\n\t\t\tinputFile.close();\n\t\t }\n\t\t\n\t\t// catch if the file cannot be found and send a message describing what happened\n\t\t// to the user. Exit the program.\n\t\tcatch (FileNotFoundException e){\n\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" does not exist.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\t// create an if statement to terminate the program if the file is empty or contains\n\t\t// no usable information\n\t\tif (list.size()==0){\n\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" contains no usable information.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\t// this portion of the program will handle user input and print the correct\n\t\t// tree information according to the tree species the user enters \n\t\t\n\t \t// create an exit word that will terminate the loop\n\t\tString exitWord=\"quit\";\n\t\t\n\t\t// create a string variable that represents the user's answer\n\t\tString answer;\n\t\t \n\t\t// open the scanner \n\t\tScanner input= new Scanner(System.in);\n\t\t// print a statement informing the user what to do\n\t\tSystem.out.println(\"Enter the tree species to learn more about it ('quit' to stop):\");\n\t\t// set the answer equal to the user's response\n answer= input.nextLine();\n \n // while the answer is not quit, keep prompting the user for a tree species\n\t\twhile (!(answer.equalsIgnoreCase(exitWord))){\n\t\t\t// if the tree species exists within the list of trees, print its matching species\n\t\t\t// and how many of that species exists within NYC and its boroughs\n\t\t\tif ((list.getCountByTreeSpecies(answer))>0){\n\t\t\t\tSystem.out.println(getMatchingSpecies(list,answer)+\"\\n\");\n\t\t\t\tSystem.out.println(getSpeciesInfo(list,answer));\n\t\t\t}\n\t\t\t\n\t\t\t// if the tree species is not within the list of trees, print a statement to \n\t\t\t// the user explaining it does not exist in NYC\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tSystem.out.println(\"There are no records of \"+answer+\" on NYC streets\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\n\t\t// re-prompt the user to enter a tree species\n\t\t System.out.println(\"Enter the tree species to learn more about it ('quit' to stop):\");\n\t\t answer= input.nextLine();\n\t\t}\n\t\t\n\t\t//close the scanner\n\t\t input.close();\n\t\t \n\t\t \n\t}", "public static void main(String[] args) {\n if (args.length < 1) \n fail(\"Missing db name, table name, table description, & data file\", 1);\n if (args.length < 2) \n fail(\"Missing table name, table description, & data file\", 1);\n if (args.length < 3) \n fail(\"Missing table description, & data file\", 1);\n if (args.length < 4) \n fail(\"Missing data file\", 1);\n\n String user = null, pass = null, host = null;\n if (args.length > 4) user = args[4];\n if (args.length > 5) pass = args[5];\n if (args.length > 6) host = args[6];\n\n MySQLIngestTable ingester = new MySQLIngestTable(args[0], args[1],\n user, pass, host);\n File coldesc = new File(args[2]);\n if (! coldesc.exists()) \n fail(\"File not found: \" + args[2], 2);\n File datacsv = new File(args[3]);\n if (! datacsv.exists()) \n fail(\"File not found: \" + args[3], 2);\n\n int exval = 0;\n try {\n /*\n KeywordFactory kwf = new XMLConfiguredKeywordFactory(coldesc);\n exval = ingester.createTable(kwf);\n */\n exval = ingester.initDb(coldesc, datacsv);\n }\n catch (IOException ex) {\n fail(ex.getMessage(), 3);\n }\n catch (Exception ex) {\n ex.printStackTrace();\n System.exit(4);\n }\n if (exval > 0) exval += 10;\n System.exit(exval);\n }", "private static void parseEdges(File fileNameWithPath) throws Exception{\n\n\t\ttry {\n\n BufferedReader in = new BufferedReader(new FileReader(fileNameWithPath));\n\n\t\t /*\n\t\t * Read the first five lines from file as follows\n\t\t *\n\t\t * NAME: berlin52\n\t\t * COMMENT: 52 locations in Berlin (Groetschel)\n\t\t * DIMENSION: 52\n\t\t * EDGE_WEIGHT_TYPE: EUC_2D\n\t\t * OPTIMAL_COST: 7542\n\t\t * NODE_COORD_SECTION\n\t\t */ \n\t\t for (int i=0;i<6;i++){\n \tString str = in.readLine().trim();\n\t\t\tString[] strArray = str.split(\":\\\\s+\");\n\t\t\tif (strArray[0].equals(\"NAME\")) {\n\t\t\t\tProject.name = strArray[1]; \n\t\t\t} else if (strArray[0].equals(\"DIMENSION\")) {\n\t\t\t\tProject.dimension = new Integer(Integer.parseInt(strArray[1]));\n\t\t\t} else if (strArray[0].equals(\"OPTIMAL_COST\")) {\n\t\t\t\tProject.optimalCost = new Double(Double.parseDouble(strArray[1])); \n\t\t\t} else if (strArray[0].equals(\"EDGE_WEIGHT_TYPE\")) {\n\t\t\t\tProject.edgeWeightType = strArray[1]; }\n\t\t }\n\n\t\t if ( dimension == -1 ){\n\t\t\t throw new Exception(\"ERROR:Failed to read the file contents correctly from \"+fileNameWithPath.getPath());\n\t\t }\n\n\t\t /* read each vertex and its coordinates */\n\t\t Integer[] vertices = new Integer[Project.dimension];\n\t\t Double[] xCord = new Double[Project.dimension];\n\t\t Double[] yCord = new Double[Project.dimension];\n\t\t int vertexCount = 0;\n\n\t\t String str;\n while ((str = in.readLine().trim()) != null) {\n\t\t\tif (str.equals(\"EOF\"))\n\t\t\t\tbreak;\n\n\t\t \tString[] ar=str.split(\"\\\\s+\");\n\n\t\t\tvertices[vertexCount] =new Integer(Integer.parseInt(ar[0]));\n\t\t\txCord[vertexCount] =new Double(Double.parseDouble(ar[1]));\n\t\t\tyCord[vertexCount] =new Double(Double.parseDouble(ar[2]));\n\n\t\t\tvertexCount++;\n\t\t}\n\n in.close();\n\n\t\t/* \n\t\t * Generate the cost matrix between each pair of vertices\n\t\t * as a java HashMap<Integer,HashMap<Integer,Double>>\n\t\t*/\n\t\tfor (int i=0;i<Project.dimension;i++) {\n\t\t\tint vi = vertices[i].intValue();\n\t\t\tfor (int j=i+1;j<Project.dimension;j++) {\n\n\t\t\t\tint vj = vertices[j].intValue();\n\t\t\t\tdouble cost_ij = 0;\n\t\t\t\tif ( vi != vj)\n\t\t\t\t{\n\n\t\t\t\t\tif (Project.edgeWeightType.equals(\"GEO\")){\n\t\t\t\t\t\tint deg;\n\t\t\t\t\t\tdouble min;\n\t\n\t \t\t\t\t\tdeg = (int)(xCord[i].doubleValue());\n\t \t\t\t\t\tmin = xCord[i]- deg; \n\t \t\t\t\t\tdouble latitude_i = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdeg = (int)(yCord[i].doubleValue());\n\t \t\t\t\t\tmin = yCord[i]- deg; \n\t \t\t\t\t\tdouble longitude_i = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdeg = (int)(xCord[j].doubleValue());\n\t \t\t\t\t\tmin = xCord[j]- deg; \n\t \t\t\t\t\tdouble latitude_j = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdeg = (int)(yCord[j].doubleValue());\n\t \t\t\t\t\tmin = yCord[j]- deg; \n\t \t\t\t\t\tdouble longitude_j = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdouble q1 = Math.cos( longitude_i - longitude_j ); \n\t \t\t\t\t\tdouble q2 = Math.cos( latitude_i - latitude_j ); \n\t \t\t\t\t\tdouble q3 = Math.cos( latitude_i + latitude_j ); \n\n\t \t\t\t\t\tcost_ij = Math.floor( earthRadius * Math.acos( 0.5*((1.0+q1)*q2 - (1.0-q1)*q3) ) + 1.0);\n\n\t\t\t\t\t} else if (Project.edgeWeightType.equals(\"EUC_2D\")){\n\t\t\t\t\t\tdouble xd = xCord[i]-xCord[j];\n\t\t\t\t\t\tdouble yd = yCord[i]-yCord[j];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//cost_ij = new Double(Math.sqrt( (xd*xd) + (yd*yd))).intValue();\n\t\t\t\t\t\tcost_ij = Math.round(Math.sqrt( (xd*xd) + (yd*yd)));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"ERROR:EDGE_WEIGHT_TYPE of GEO and EUC_WD are implemented , not implemented \"+Project.edgeWeightType);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\n\t\t \t\tif (!sourceGTree.containsKey(vi)){\n\t\t \t\t\tsourceGTree.put(vi,new HashMap<Integer,Double>());\n\t\t \t\t}\n\n\t\t \t\tif (!sourceGTree.containsKey(vj)){\n\t\t \t\t\tsourceGTree.put(vj,new HashMap<Integer,Double>());\n\t\t \t\t}\n\n\t\t \t\tsourceGTree.get(vi).put(vj,cost_ij);\n\t\t \t\tsourceGTree.get(vj).put(vi,cost_ij);\n\n\t\t\t}\n\t\t}\n\n } catch (IOException e) {\n System.out.println(\"ERROR: Failed reading file \" + fileNameWithPath.getPath());\n\t\t throw e;\n }\n\n\t}", "public static void main(String[] args) {\n\t\tString dataFileName = DATA_PATH + \"data1.csv\";\n\t\t//supply path and name of file where created data is going to be saved\n\t\tString newFileName = DATA_PATH + \"data1_subsetTest.csv\"; \n\n\t\tArrayList<String> subsetConditions= new ArrayList<String>();\n\t\tsubsetConditions.add(\"Gen:==:7,8:Numeric\");\n\t\tsubsetConditions.add(\"Site:!=:Env1:Factor\");\n\t\tsubsetConditions.add(\"Blk:!=:4:Numeric\");\n\t\t\n\t\tRJavaManager rJavaManager= new RJavaManager();\n\t\trJavaManager.initStar();\n\t\trJavaManager.getRJavaDataManipulationManager().subSet(dataFileName, newFileName, subsetConditions);\n\n\t}", "public static void main(String args[]) {\r\n\r\n// A driver is used to connect to a Neo4j server. It provides sessions that are used to execute statements and retrieve results.\r\n// If no port is provided in the URL, the default port 7687 is used\r\n\r\n Driver driver = GraphDatabase.driver(\"bolt://localhost\", AuthTokens.basic(\"neo4j\", \"saneo4j\"));\r\n// Driver driver = GraphDatabase.driver(\"bolt://50.16.185.228\", AuthTokens.basic(\"neo4j\", \"saneo4j\"));\r\n Session session = driver.session();\r\n\r\n// Cleanup all existing nodes and their relationship entries\r\n cleanupDB(session);\r\n\r\n// read from the input files and add connection\r\n readFilesFromInputDir(session);\r\n\r\n// Specific relationship in MATCH\r\n String search_for1 = \"Cloud computing\";\r\n String search_in1 = \"Experience\";\r\n// searchByRelationship1(session, search_for1, search_in1);\r\n\r\n// Generic relationship\r\n String search_for2 = \"CEO\";\r\n// searchByAll(session, search_for2);\r\n\r\n// Specific relationship in WHERE\r\n String search_for3 = \"san francisco, london washington; Chicago Manchester, cambridge\";\r\n String search_in3 = \"Location\";\r\n searchByRelationship2(session, search_for3, search_in3);\r\n\r\n session.close();\r\n driver.close();\r\n }", "public static void main(String[] args) throws IOException \n { \n StationDefinitionList tempStation = new StationDefinitionList(\n \"data/geoinfo.csv\");\n DataDefinitionList tempData = new DataDefinitionList(\n \"data/DataTranslation.csv\");\n DataDay.setDataDefinitionList(tempData);\n // tempStation.loadData(\"data/alldata_2011.csv\");\n // tempStation.loadData(\"data/alldata_2012.csv\");\n // tempStation.loadData(\"data/alldata_2013.csv\");\n // tempStation.loadData(\"data/alldata_2014.csv\");\n tempStation.loadData(\"data/alldata_2015.csv\");\n // tempStation.loadData(\"data/alldata_2016.csv\");\n reportStation(tempStation, tempData, \"TISH\");\n //System.out.println(\"done\");\n\n\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tFileManager csv=new FileManager();\n\t\t\n\t\tcsv.readListOfFiles();\n\t\tcsv.readFile();\n\t\t\n\t\t//csv.tk.displayTokens();\n\t\t//csv.it.displayHashMap();\n\t\tcsv.writeTokensToFile(csv.tk.tokensMap);\n\t\tcsv.matcher.longestSequence(csv.it);\t//csv.it.intTokenList was supposed to be passed but since I need csv.it object in caller so im passing it\n\t\tcsv.matcher.displaySubsequences(csv.it);\n\t\tcsv.writeMatchesToFile(csv.matcher.resultMap,csv.it);\n\t System.out.println(\"\\nProgram Ends \");\n\t \t \n\t}", "public static void main(String[] args) throws IOException {\n // enables dynamic data-loading for file-based sorting\n GlobalConfig.getInstance().setInMemoryObjectThreshold(1000000);\n\n\t\t// instantiates the CSV data source for reading records\n // \"cddb\" is the source identifier\n CSVSource dataSource = new CSVSource(\"febrl\", new File(\"febrl.csv\"));\n System.err.println(\" Entrada:\" + dataSource.getExtractedRecordCount());\n\n dataSource.enableHeader();\n\n // uses the id attribute for the object id - this call is optional, if no id attribute is set, DuDe will generate its own object ids\n dataSource.addIdAttributes(\"id\");\n\n\t\t//instantiates the CSV data source for reading the goldstandard\n // \"goldstandard\" is the goldstandard identifier\n CSVSource goldstandardSource = new CSVSource(\"goldstandard\", new File(\"gold_febrl.csv\"));\n goldstandardSource.enableHeader();\n\n\t\t// instantiate the gold standard\n // \"cddb\" is the source identifier\n GoldStandard goldStandard = new GoldStandard(goldstandardSource);\n goldStandard.setFirstElementsObjectIdAttributes(\"febrl1_id\");\n goldStandard.setSecondElementsObjectIdAttributes(\"febrl2_id\");\n goldStandard.setSourceIdLiteral(\"febrl\");\n \n\n \nAlgorithm algorithm = new NaiveDuplicateDetection();\n //Algorithm algorithm = new SortedNeighborhoodMethod(sortingKey, 20);\n \n\n\t\t// instantiates the naive duplicate detection algorithm\n //Algorithm algorithm = new NaiveDuplicateDetection();\n //algorithm.enableInMemoryProcessing();\n // adds the \"data\" to the algorithm\n algorithm.addDataSource(dataSource);\n\n\t\t// instantiates the similarity function\n // checks the Levenshtein distance of the CD titles\n SimilarityFunction similarityFunction = new LevenshteinDistanceFunction(\"rec2_id\");\n //LevenshteinDistanceFunction similarityFunction = new LevenshteinDistanceFunction(\"artist\");\n\n\t\t// writes the duplicate pairs onto the console by using the Json syntax\n //DuDeOutput output = new JsonOutput(System.out);\n\t\t// instantiate statistic component to calculate key figures\n // like runtime, number of comparisons, precision and recall\n StatisticComponent statistic = new StatisticComponent(goldStandard, algorithm);\n\n\t\t// the actual computation starts\n // the algorithm returns each generated pair step-by-step\n statistic.setStartTime();\n long start = System.currentTimeMillis();\n\n for (DuDeObjectPair pair : algorithm) {\n final double similarity = similarityFunction.getSimilarity(pair);\n if (similarity ==1) {\n\t\t\t\t// if it is a duplicate - print it and add it to the\n // statistic component as duplicate\n //output.write(pair);\n //System.out.println();\n System.err.println(\" SAida ++++++++++++++++++++++++++++++=\" + pair.getFirstElementObjectData().toString());\n statistic.addDuplicate(pair);\n } else {\n\t\t\t\t// if it is not a duplicate, add it to the statistic\n // component as non-duplicate\n // System.out.println(\" &&&&&&\");\n\n statistic.addNonDuplicate(pair);\n }\n }\n statistic.setEndTime();\n \n\n // Write statistics\n StatisticOutput statisticOutput = new SimpleStatisticOutput(System.out, statistic);\n statisticOutput.writeStatistics();\n System.out.println(\"Experiment finished.\" + (System.currentTimeMillis() - start) + \" ms\");\n \n\n // clean up\n dataSource.cleanUp();\n //goldStandard.close();\n }", "public static void main(String[] args) {\n System.out.println(\"-- Batch Example Songs. Data rows from CSV --\");\n System.out.println(\"----> PreparedStatement !!\");\n MysqlConnect my = MysqlConnect.getDbCon();\n\n System.out.println(\"\\nUsing executeUpdate\");\n batchInsertRecordsIntoTable(my, false);\n\n System.out.println(\"\\nUsing addBatch - executeBatch\");\n batchInsertRecordsIntoTable(my, true);\n\n try {\n my.conn.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\r\n\t\tConvertTSVToSQLiteOperation conversion = extractArguments(args);\r\n\t\tif (conversion == null)\r\n\t\t\tdie(USAGE);\r\n\t\t// first, parse the input TSV file into an SQL commands file\r\n\t\tBufferedReader reader = null;\r\n\t\tPrintWriter writer = null;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(conversion.tsvFile));\r\n\t\t\twriter = new PrintWriter(conversion.sqlCommandsFile);\r\n\t\t\t// read the header line to extract the column names\r\n\t\t\tint chunk = 0;\r\n\t\t\tString line = reader.readLine();\r\n\t\t\tif (line == null)\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\r\n\t\t\t\t\t\"File [%s] does not contain a valid header line.\",\r\n\t\t\t\t\tconversion.tsvFile.getAbsolutePath()));\r\n\t\t\tString[] columns = line.split(\"\\\\t\");\r\n\t\t\tif (columns == null || columns.length < 1)\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\r\n\t\t\t\t\t\"Header line [%s] from file [%s] could not be parsed \" +\r\n\t\t\t\t\t\"to properly extract the file's column names.\", line,\r\n\t\t\t\t\tconversion.tsvFile.getAbsolutePath()));\r\n\t\t\t// read the first row to to determine column types from the values\r\n\t\t\tline = reader.readLine();\r\n\t\t\tif (line == null)\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\r\n\t\t\t\t\t\"File [%s] contains no valid data rows.\",\r\n\t\t\t\t\tconversion.tsvFile.getAbsolutePath()));\r\n\t\t\tString[] values = line.split(\"\\\\t\");\r\n\t\t\tif (values == null || values.length != columns.length)\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\r\n\t\t\t\t\t\"First data row [%s] from file [%s] could not be parsed \" +\r\n\t\t\t\t\t\"into a valid array of values, whose length matches that \" +\r\n\t\t\t\t\t\"of the parsed header line (%d).\", line,\r\n\t\t\t\t\tconversion.tsvFile.getAbsolutePath(), columns.length));\r\n\t\t\t// start with static table creation statement\r\n\t\t\tStringBuffer tableCreation =\r\n\t\t\t\tnew StringBuffer(\"CREATE TABLE Result\\n(\");\r\n\t\t\t// add columns found in the header line\r\n\t\t\tfor (int i=0; i<columns.length; i++)\r\n\t\t\t\ttableCreation.append(String.format(\"%s %s,\\n\",\r\n\t\t\t\t\tcleanColumnName(columns[i]), getColumnType(values[i])));\r\n\t\t\t// chomp trailing comma and newline\r\n\t\t\tif (tableCreation.toString().endsWith(\",\\n\"))\r\n\t\t\t\ttableCreation.setLength(tableCreation.length() - 2);\r\n\t\t\t// close the table creation statement\r\n\t\t\ttableCreation.append(\");\");\r\n\t\t\twriter.println(tableCreation.toString());\r\n\t\t\t// write static insert statement before the first chunk of rows\r\n\t\t\twriter.println(\"INSERT INTO Result SELECT\");\r\n\t\t\t// write the first row\r\n\t\t\twriter.print(getRowInsertion(values));\r\n\t\t\tchunk++;\r\n\t\t\t// write the rest of the rows\r\n\t\t\tint row = 2;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\t// parse the row into values\r\n\t\t\t\tvalues = line.split(\"\\\\t\");\r\n\t\t\t\tif (values == null || values.length != columns.length)\r\n\t\t\t\t\tthrow new IllegalArgumentException(String.format(\r\n\t\t\t\t\t\t\"Data row %d [%s] from file [%s] could not be \" +\r\n\t\t\t\t\t\t\"parsed into a valid array of values, whose length \" +\r\n\t\t\t\t\t\t\"matches that of the parsed header line (%d).\",\r\n\t\t\t\t\t\trow, line, conversion.tsvFile.getAbsolutePath(),\r\n\t\t\t\t\t\tcolumns.length));\r\n\t\t\t\t// SQLite will only tolerate insert statements with a\r\n\t\t\t\t// maximum of 500 rows each, so if we've reached the\r\n\t\t\t\t// end of this chunk, close it out and start a new one\r\n\t\t\t\tif (chunk >= 500) {\r\n\t\t\t\t\twriter.println(\";\");\r\n\t\t\t\t\twriter.println(\"INSERT INTO Result SELECT\");\r\n\t\t\t\t\tchunk = 0;\r\n\t\t\t\t} else writer.println(\" UNION ALL SELECT\");\r\n\t\t\t\t// write this row\r\n\t\t\t\twriter.print(getRowInsertion(values));\r\n\t\t\t\trow++;\r\n\t\t\t\tchunk++;\r\n\t\t\t}\r\n\t\t\t// close the full insert statement\r\n\t\t\twriter.println(\";\");\r\n\t\t} catch (Throwable error) {\r\n\t\t\tdie(\"Could not write parsed TSV file to \" +\r\n\t\t\t\t\"SQL database creation commands file.\", error);\r\n\t\t} finally {\r\n\t\t\ttry { reader.close(); } catch (Throwable error) {}\r\n\t\t\ttry { writer.close(); } catch (Throwable error) {}\r\n\t\t}\r\n\t\t// then, create the SQLite database and\r\n\t\t// populate it with the SQL commands file\r\n\t\tProcess process = null;\r\n\t\tInteger exitValue = null;\r\n\t\tString output = null;\r\n\t\ttry {\r\n\t\t\tProcessBuilder builder = new ProcessBuilder();\r\n\t\t\tbuilder.command(\r\n\t\t\t\t\"sqlite3\", \"-batch\", \"-init\",\r\n\t\t\t\tconversion.sqlCommandsFile.getAbsolutePath(),\r\n\t\t\t\tconversion.sqliteDBFile.getAbsolutePath(), \".exit\"\r\n\t\t\t);\r\n\t\t\tbuilder.redirectErrorStream(true);\r\n\t\t\tprocess = builder.start();\r\n\t\t\texitValue = process.waitFor();\r\n\t\t\toutput = getConsoleOutput(process);\r\n\t\t} catch (Throwable error) {\r\n\t\t\tdie(\"Could not run SQL database creation commands \" +\r\n\t\t\t\t\"file to generate SQLite result database.\", error);\r\n\t\t} finally {\r\n\t\t\ttry { process.getInputStream().close(); } catch (Throwable error) {}\r\n\t\t\ttry { process.getOutputStream().close(); } catch (Throwable error) {}\r\n\t\t\ttry { process.getErrorStream().close(); } catch (Throwable error) {}\r\n\t\t\ttry { process.destroy(); } catch (Throwable error) {}\r\n\t\t}\r\n\t\t// verify that the SQLite database was successfully created\r\n\t\tif (conversion.sqliteDBFile.canRead() &&\r\n\t\t\tdatabaseCreationSucceeded(exitValue, output) == false)\r\n\t\t\tdie(String.format(\"Failed to generate SQLite result database [%s].\",\r\n\t\t\t\tconversion.sqliteDBFile.getAbsolutePath()));\r\n\t}", "public static void main(String[] args) {\n\t\tinitializeDBMS();\n\t\t// read the input from file\n\t\tString input = readInput(\"input2.txt\");\n\t\tif (input != null) {\n\t\t\t// get the operations from input\n\t\t\tString[] operations = getOperations(input);\n\t\t\t// process operations\n\t\t\tprocessOperations(operations);\n\n\t\t\twriteToOutput(\"Success.\");\n\t\t} else {\n\t\t\twriteToOutput(\"Input error\");\n\t\t}\n\t\twriteToOutput(\"Final values on disk: \" + diskBlockInMemory);\n\t\twriteOutputFile(\"output2.txt\", output.toString());\n\t\tSystem.out.println(\"Done\");\n\n\t}", "public static void main(String[] args) {\r\n // Check number of arguments, prompt user if necessary\r\n // if enough arguments are provided, open file stream\r\n processArguments(args);\r\n\r\n try {\r\n // Open SQL connection\r\n SQL.startMySQL();\r\n\r\n // clear MySQL database\r\n DeleteSQL.deleteInstitution(\"QNS01\");\r\n\r\n // Add every course inside input file\r\n HashMap<Integer, Course> courses = getCourses();\r\n for (Course course : courses.values()) {\r\n InsertSQL.addCourse(course);\r\n }\r\n\r\n // Open GUI\r\n new PhaseOneGUI();\r\n\r\n } catch (SQLException e) {\r\n // display readable error to user\r\n IO.displayGUI(e.getLocalizedMessage());\r\n }\r\n }", "public static void main(String[] args) throws IOException, ParseException {\n\n\t\tTShirtsDB4O TSM = new TShirtsDB4O();\n\t\tFileAccessor fa = new FileAccessor();\n\n\t\tfa.readArticlesFile(\"articles.csv\");\n\t\tfa.readCreditCardsFile(\"creditCards.csv\");\n\t\tfa.readCustomersFile(\"customers.csv\");\n\t\tfa.readOrdersFile(\"orders.csv\");\n\t\tfa.readOrderDetailsFile(\"orderDetails.csv\");\n\t\torders = fa.orders;\n\t\ttry {\n\n\t\t\tFile file = new File(\"orders.db\");\n\t\t\tString fullPath = file.getAbsolutePath();\n\t\t\tdb = Db4o.openFile(fullPath);\n\n\t\t\tTSM.clearDatabase();\n\t\t\tTSM.addOrders();\n\t\t\tTSM.listOrders();\n\t\t\tTSM.listArticles();\n\t\t\tTSM.addArticle(7, \"CALCETINES EJECUTIVOS 'JACKSON 3PK'\", \"gris\", \"45\", 18.00f);\n\t\t\tTSM.showCreditCardByCustomerName(\"Jordi\");\n\t\t\tTSM.updatePriceArticle(7, 12.00f);\n\t\t\tTSM.llistaArticlesByName(\"CALCETINES EJECUTIVOS 'JACKSON 3PK'\");\n\t\t\tTSM.deletingArticlesByName(\"POLO BÁSICO 'MANIA'\");\n\t\t\tTSM.deleteArticleById(7);\n\t\t\tTSM.listArticles();\n\t\t\tTSM.listCustomers();\n\t\t\tTSM.changeCreditCardToCustomer(1);\n\t\t\tTSM.listCustomers();\n\t\t\tTSM.llistaCustomerByName(\"Laura\");\n\t\t\tTSM.showOrdersByCustomerName(\"Hernán\");\n\t\t\tTSM.showCreditCardByCustomerName(\"Laura\");\n\n\t\t\t// Per alguna raó no vol esborrar el Customer 2\n\t\t\tTSM.deleteCustomerbyId(22);\n\t\t\tTSM.deleteCustomerbyId(4);\n\t\t\tTSM.retrieveOrderContentById_Order(2);\n\t\t\tTSM.deleteOrderContentById_Order(2);\n\t\t\tTSM.retrieveOrderContentById_Order(2);\n\t\t\tTSM.listCustomers();\n\t\t\tTSM.clearDatabase();\n\t\t\tTSM.listOrders();\n\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tString line;\n\t\tFileReader fr = new FileReader(\"D:\\\\thgl\\\\original_db_T.txt\");\n\t\tBufferedReader br=new BufferedReader(fr);\n\t while ((line=br.readLine()) != null) {\n\t cutting = line.split(\" \");\n\t cut_data.add(cutting);\n\t }\n\t br.close();\n\t fr.close();\n\t \n\t System.out.println(\"Original dataset T\");\n\t for(int i=0; i<cut_data.size();i++){\n\t \tx = cut_data.get(i);\n\t \tfor(int j=0; j<x.length; j++){\n\t \t\tSystem.out.print(\" \"+ (cut_data.get(i)[j]));\n\t \t}\n\t \tSystem.out.println(\" \");\n\t }\n\t System.out.println(\" \");\n\t \n\t \n\t System.out.println(\"dataset adversary A\");\n\t adversary_A();\n\t \n\t System.out.println(\"dataset adversary B\");\n\t adversary_B();\n\t \n\t \n\t}", "@Override\n public void importCSV(File file) {\n System.out.println(\"oi\");\n System.out.println(file.isFile()+\" \"+file.getAbsolutePath());\n if(file.isFile() && file.getPath().toLowerCase().contains(\".csv\")){\n System.out.println(\"Entro\");\n try {\n final Reader reader = new FileReader(file);\n final BufferedReader bufferReader = new BufferedReader(reader);\n String[] cabecalho = bufferReader.readLine().split(\",\");\n int tipo;\n if(cabecalho.length == 3){\n if(cabecalho[2].equalsIgnoreCase(\"SIGLA\")){\n tipo = 1;\n System.out.println(\"TIPO PAIS\");\n }\n else {\n tipo = 2;\n System.out.println(\"TIPO CIDADE\");\n }\n }else {\n tipo = 3;\n System.out.println(\"TIPO ESTADO\");\n }\n \n while(true){\n String linha = bufferReader.readLine();\n if(linha == null){\n break;\n }\n String[] row = linha.split(\",\");\n switch (tipo) {\n case 1:\n Pais pais = new Pais();\n pais.setId(Long.parseLong(row[0]));\n pais.setNome(row[1]);\n pais.setSigla(row[2]);\n new PaisDaoImpl().insert(pais);\n break;\n case 2:\n Cidade cidade = new Cidade();\n cidade.setId(Long.parseLong(row[0]));\n cidade.setNome(row[1]);\n cidade.setEstado(Long.parseLong(row[2]));\n new CidadeDaoImpl().insert(cidade);\n break;\n default:\n Estado estado = new Estado();\n estado.setId(Long.parseLong(row[0]));\n estado.setNome(row[1]);\n estado.setUf(row[2]);\n estado.setPais(Long.parseLong(row[3]));\n new EstadoDaoImpl().insert(estado);\n break;\n }\n }\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public static void main(String[] args) throws InterruptedException, FileNotFoundException, IOException {\n for (int i = 0; i < args.length; i++) {\n //System.out.println(args[i]);\n }\n RunSQL2 r = new RunSQL2();\n r.ReadCatalog(args[0]);\n String lines;\n String mainQuery = \"\";\n List<String> tokens = new ArrayList<String>();\n List<String> select = new ArrayList<String>();\n List<String> from = new ArrayList<String>();\n List<String> where = new ArrayList<String>();\n StringBuilder line = new StringBuilder();\n List<String> colName = new ArrayList<String>();\n List<String> ttable = new ArrayList<String>();\n String path = args[1];\n tt1 = new ArrayList<String>();\n tt2 = new ArrayList<String>();\n tt3 = new ArrayList<String>();\n tt4 = new ArrayList<String>();\n tt5 = new ArrayList<String>();\n String tname;\n int tCount = 0;\n int ttCount = 0;\n BufferedReader br = new BufferedReader(new FileReader(path));\n while ((lines = br.readLine()) != null) {\n line.append(lines + \" \");\n }\n if (line.lastIndexOf(\";\") > -1) {\n line.deleteCharAt(line.lastIndexOf(\";\"));\n }\n mainQuery = line.toString();\n StringTokenizer st = new StringTokenizer(line.toString(), \" \");\n while (st.hasMoreTokens()) {\n tokens.add(st.nextToken());\n }\n for (int i = 0; i < tokens.size(); i++) { // SELECTED ATTRIBUTES\n if (tokens.get(i).equalsIgnoreCase(\"select\")) {\n if (tokens.get(i + 1) != null) {\n int j = i;\n while (!tokens.get(j + 1).equalsIgnoreCase(\"from\")) {\n if (tokens.get(j + 1).substring(tokens.get(j + 1).length() - 1).equals(\",\")) {\n StringBuilder sb = new StringBuilder(tokens.get(j + 1));\n sb.deleteCharAt(tokens.get(j + 1).length() - 1);\n select.add(sb.toString());\n } else {\n select.add(tokens.get(j + 1));\n }\n j++;\n }\n }\n }\n if (tokens.get(i).equalsIgnoreCase(\"from\")) {\n // TODO: SQL TABLE FROM CLAUSE FORMAT [TABLE S], OR [TABLE]\n if (tokens.get(i + 2) != null) {\n int j = i;\n while (!tokens.get(j + 2).equalsIgnoreCase(\"where\")) {\n //TODO QUERY ERROR IF NO WHERE CLAUSE\n //System.out.println(j);\n //System.out.println(tokens.get(j).toString());\n if (tokens.get(j + 1).substring(tokens.get(j + 1).length() - 1).equals(\",\")) {\n StringBuilder sb = new StringBuilder(tokens.get(j + 1));\n sb.deleteCharAt(tokens.get(j + 1).length() - 1);\n from.add(sb.toString());\n } else {\n from.add(tokens.get(j + 1));\n }\n if (j > tokens.size() - 1) {\n break;\n }\n j++;\n }\n }\n }\n }\n\n try {\n String query = \"\";\n List<String> columnNames = new ArrayList<String>();\n Class.forName(driver).newInstance();\n Connection conn;\n Statement stmt = null;\n conn = DriverManager.getConnection(connUrl + \"?verifyServerCertificate=false&useSSL=true\", connUser, connPwd);\n br = new BufferedReader(new FileReader(path));\n query = \"SELECT * FROM DTABLES\";\n PreparedStatement statement = conn\n .prepareStatement(query);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n if (rs.getString(\"TNAME\") != null) {\n tname = rs.getString(\"TNAME\").replaceAll(\"\\\\s+\", \"\");\n if (tname.equalsIgnoreCase(from.get(0))) {\n // TODO: MIGHT NEED TO CHANGE IT FOR DYNAMIC LOAD\n t1.add(tname);\n t2.add(rs.getString(\"NODEDRIVER\").replaceAll(\"\\\\s+\", \"\"));\n t3.add(rs.getString(\"NODEURL\").replaceAll(\"\\\\s+\", \"\"));\n t4.add(rs.getString(\"NODEUSER\").replaceAll(\"\\\\s+\", \"\"));\n t5.add(rs.getString(\"NODEPASSWD\").replaceAll(\"\\\\s+\", \"\"));\n tCount++;\n }\n if (tname.equalsIgnoreCase(from.get(2))) {\n // TODO: MIGHT NEED TO CHANGE IT FOR DYNAMIC LOAD\n tt1.add(tname);\n tt2.add(rs.getString(\"NODEDRIVER\").replaceAll(\"\\\\s+\", \"\"));\n tt3.add(rs.getString(\"NODEURL\").replaceAll(\"\\\\s+\", \"\"));\n tt4.add(rs.getString(\"NODEUSER\").replaceAll(\"\\\\s+\", \"\"));\n tt5.add(rs.getString(\"NODEPASSWD\").replaceAll(\"\\\\s+\", \"\"));\n ttCount++;\n }\n }\n }\n conn.close();\n\n // GET ATTRIBUTES FROM THE FIRST TABLE IN ORDER TO CREATE TEMP TABLE\n Class.forName(t2.get(0)).newInstance();\n conn = DriverManager.getConnection(t3.get(0) + \"?verifyServerCertificate=false&useSSL=true\", t4.get(0), t5.get(0));\n query = \"SELECT * FROM \" + t1.get(0);\n //System.out.println(query);\n statement = conn\n .prepareStatement(query);\n rs = statement.executeQuery();\n ResultSetMetaData rsmd = rs.getMetaData();\n int columnCount = rsmd.getColumnCount();\n StringBuilder sb = new StringBuilder();\n StringBuilder sb1 = new StringBuilder();\n String name;\n String export;\n String tempQuery = \"\";\n // if it is the first node, create temp table\n for (int i = 1; i <= columnCount; i++) {\n colName.add(rsmd.getColumnName(i));\n name = rsmd.getColumnName(i);\n sb1.append(name + \", \");\n if (rsmd.getColumnType(i) == Types.INTEGER) {\n sb.append(name + \" INT, \");\n } else if (rsmd.getColumnType(i) == Types.VARCHAR) {\n sb.append(name + \" VARCHAR(128), \");\n } else if (rsmd.getColumnType(i) == Types.CHAR) {\n sb.append(name + \" CHAR(128), \");\n } else if (rsmd.getColumnType(i) == Types.VARCHAR) {\n sb.append(name + \" VARCHAR(128), \");\n } else if (rsmd.getColumnType(i) == Types.DATE) {\n sb.append(name + \" DATE, \");\n } else if (rsmd.getColumnType(i) == Types.DECIMAL) {\n sb.append(name + \" DECIMAL (15, 2), \");\n }\n }\n sb1.setLength(sb1.length() - 2);\n sb.setLength(sb.length() - 2);\n tempQuery = sb.toString();\n export = sb1.toString();\n\n //System.out.println(sb.toString());\n conn.close();\n\n Class.forName(tt2.get(0)).newInstance();\n conn = DriverManager.getConnection(tt3.get(0) + \"?verifyServerCertificate=false&useSSL=true\", tt4.get(0), tt5.get(0));\n query = \"SELECT * FROM \" + tt1.get(0);\n //System.out.println(query);\n statement = conn\n .prepareStatement(query);\n rs = statement.executeQuery();\n rsmd = rs.getMetaData();\n columnCount = rsmd.getColumnCount();\n StringBuilder sb2 = new StringBuilder();\n StringBuilder sb3 = new StringBuilder();\n String name1;\n String export1;\n String tempQuery1 = \"\";\n // if it is the first node, create temp table\n for (int i = 1; i <= columnCount; i++) {\n colName.add(rsmd.getColumnName(i));\n name1 = rsmd.getColumnName(i);\n sb3.append(name1 + \", \");\n if (rsmd.getColumnType(i) == Types.INTEGER) {\n sb2.append(name1 + \" INT, \");\n } else if (rsmd.getColumnType(i) == Types.VARCHAR) {\n sb2.append(name1 + \" VARCHAR(128), \");\n } else if (rsmd.getColumnType(i) == Types.CHAR) {\n sb2.append(name1 + \" CHAR(128), \");\n } else if (rsmd.getColumnType(i) == Types.VARCHAR) {\n sb2.append(name1 + \" VARCHAR(128), \");\n } else if (rsmd.getColumnType(i) == Types.DATE) {\n sb2.append(name1 + \" DATE, \");\n } else if (rsmd.getColumnType(i) == Types.DECIMAL) {\n sb2.append(name1 + \" DECIMAL (15, 2), \");\n }\n }\n sb3.setLength(sb3.length() - 2);\n sb2.setLength(sb2.length() - 2);\n tempQuery1 = sb2.toString();\n export1 = sb3.toString();\n //System.out.println(tempQuery1);\n\n //System.out.println(sb.toString());\n conn.close();\n\n // FOR TESTING\n for (int x = 0; x < tt1.size(); x++) {\n //System.out.println(tt1.get(x));\n }\n\n // MAIN\n // CREATE TEMP TABLE FIRST AND JOIN TABLES\n // NOTE: CLOSING CONNECTION WILL DELETE TEMP TABLE\n Class.forName(localdriver).newInstance();\n // NEW CONNECTION (DO NOT USE CONN OR ELSE TEMP TABLE MIGHT DROP)\n final Connection iconn = DriverManager.getConnection(localconnUrl + \"?verifyServerCertificate=false&useSSL=true\", localconnUser, localconnPwd);\n query = \"CREATE TEMPORARY TABLE \" + t1.get(0) + \" (\" + tempQuery + \")\"; // TEMP TABLE FOR TABLE 1\n //System.out.println(query);\n stmt = iconn.createStatement();\n stmt.executeUpdate(query);\n\n query = \"CREATE TEMPORARY TABLE \" + tt1.get(0) + \" (\" + tempQuery1 + \")\"; // TEMP TABLE FOR TABLE 2\n //System.out.println(query);\n stmt = iconn.createStatement();\n stmt.executeUpdate(query);\n\n Thread thread1[] = new Thread[tCount];\n Thread thread2[] = new Thread[ttCount];\n\n for (int z = 0; z < tCount; z++) {\n final int c = z;\n final String d = export;\n // EXPORT ALL DATA TO TEMP TABLE\n thread1[z] = new Thread(new Runnable() {\n @Override\n public void run() {\n //System.out.println(\"Working on \" + Thread.currentThread());\n try {\n // EXPORT CONNECTION \n //System.out.println(t3.get(c));\n Class.forName(t2.get(c)).newInstance();\n Connection conn1 = DriverManager.getConnection(t3.get(c) + \"?verifyServerCertificate=false&useSSL=true\", t4.get(c), t5.get(c));\n //System.out.println(t1.get(c));\n // GETTING DATA FROM TABLE 1\n String exportQuery = \"SELECT * FROM \" + t1.get(c);\n PreparedStatement statement1 = conn1.prepareStatement(exportQuery);\n ResultSet rs = statement1.executeQuery();\n ResultSetMetaData rsmd = rs.getMetaData();\n List<String> columnNames = new ArrayList<String>();\n Object temp = null;\n int columnCount = rsmd.getColumnCount();\n for (int i = 1; i <= columnCount; i++) {\n columnNames.add(rsmd.getColumnName(i));\n }\n //System.out.println(sb.toString());\n while (rs.next()) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"INSERT INTO \" + t1.get(0) + \" (\" + d + \") VALUES (\");\n for (int k = 0; k < columnCount; k++) {\n if (rsmd.getColumnType(k + 1) == Types.INTEGER) {\n temp = rs.getInt(k + 1);\n sb.append(temp + \", \");\n } else if (rsmd.getColumnType(k + 1) == Types.VARCHAR || rsmd.getColumnType(k + 1) == Types.CHAR) {\n temp = rs.getString(k + 1);\n sb.append(\"'\" + temp + \"', \");\n } else if (rsmd.getColumnType(k + 1) == Types.DECIMAL) {\n temp = rs.getFloat(k + 1);\n //System.out.println(\"temp \" + temp);\n sb.append(temp + \", \");\n } else if (rsmd.getColumnType(k + 1) == Types.BOOLEAN) {\n temp = rs.getBoolean(k + 1);\n sb.append(temp + \", \");\n } else if (rsmd.getColumnType(k + 1) == Types.DATE) {\n temp = rs.getDate(k + 1);\n sb.append(\"'\" + temp + \"', \");\n }\n //sb.append(temp + \", \");\n }\n sb.setLength(sb.length() - 2);\n sb.append(\");\");\n //System.out.println(sb.toString());\n String query2 = sb.toString();\n //System.out.println(query2);\n // NEED TO PERFORM A QUERY FOR EACH ROW\n PreparedStatement pstmt;\n pstmt = iconn.prepareStatement(query2);\n pstmt.executeUpdate();\n\n }\n \n } catch (ClassNotFoundException | IllegalAccessException | InstantiationException | SQLException e) {\n System.err.println(e);\n } finally {\n //System.out.println();\n }\n\n }\n });\n thread1[z].start();\n }\n\n // CREATE TEMP TABLE FOR SECOND TABLE\n for (int i = 0; i < ttCount; i++) {\n final int c = i;\n thread2[i] = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n //System.out.println(\"Working on \" + Thread.currentThread());\n // THIS PART WILL INSERT TABLE 2 DATA TO A NODE\n //if (tt3.get(c).compareToIgnoreCase(localconnUrl) != 0) {\n //System.out.println(tt3.get(c));\n //System.out.println(localconnUrl);\n Class.forName(tt2.get(c)).newInstance();\n Connection conn1 = DriverManager.getConnection(tt3.get(c) + \"?verifyServerCertificate=false&useSSL=true\", tt4.get(c), tt5.get(c));\n String exportQuery = \"SELECT * FROM \" + tt1.get(c);\n PreparedStatement statement1 = conn1.prepareStatement(exportQuery);\n ResultSet rs = statement1.executeQuery();\n ResultSetMetaData rsmd = rs.getMetaData();\n List<String> columnNames = new ArrayList<String>();\n Object temp = null;\n String name = null;\n int columnCount = rsmd.getColumnCount();\n StringBuilder sb1 = new StringBuilder();\n for (int i = 1; i <= columnCount; i++) {\n //System.out.println(rsmd.getColumnName(i));\n columnNames.add(rsmd.getColumnName(i));\n sb1.append(rsmd.getColumnName(i) + \", \");\n }\n sb1.setLength(sb1.length() - 2);\n name = sb1.toString();\n while (rs.next()) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"INSERT INTO \" + tt1.get(0) + \" (\" + name + \") VALUES (\");\n for (int k = 0; k < columnCount; k++) {\n if (rsmd.getColumnType(k + 1) == Types.INTEGER) {\n temp = rs.getInt(k + 1);\n sb.append(temp + \", \");\n } else if (rsmd.getColumnType(k + 1) == Types.VARCHAR || rsmd.getColumnType(k + 1) == Types.CHAR) {\n temp = rs.getString(k + 1);\n sb.append(\"'\" + temp + \"', \");\n } else if (rsmd.getColumnType(k + 1) == Types.DECIMAL) {\n temp = rs.getDouble(k + 1);\n sb.append(\"'\" + temp + \"', \");\n } else if (rsmd.getColumnType(k + 1) == Types.BOOLEAN) {\n temp = rs.getBoolean(k + 1);\n sb.append(temp + \", \");\n } else if (rsmd.getColumnType(k + 1) == Types.DATE) {\n temp = rs.getDate(k + 1);\n sb.append(\"'\" + temp + \"', \");\n }\n //sb.append(temp + \", \");\n }\n sb.setLength(sb.length() - 2);\n sb.append(\");\");\n String query2 = sb.toString();\n //System.out.println(query2);\n\n // NEED TO PERFORM A QUERY FOR EACH ROW\n PreparedStatement pstmt;\n pstmt = iconn.prepareStatement(query2);\n pstmt.executeUpdate();\n }\n //}\n\n } catch (Exception e) {\n System.err.println(e);\n } finally {\n //System.out.println(\"Done with \" + Thread.currentThread());\n }\n }\n });\n thread2[i].start();\n }\n\n //System.out.println(mainQuery);\n for (int z = 0; z < tCount; z++) {\n thread1[z].join();\n }\n\n for (int z = 0; z < ttCount; z++) {\n thread2[z].join();\n }\n\n // JOIN SQL PERFORMS HERE\n //System.out.println(mainQuery);\n statement = iconn\n .prepareStatement(mainQuery);\n rs = statement.executeQuery();\n rsmd = rs.getMetaData();\n Object temp;\n String output;\n columnCount = rsmd.getColumnCount();\n double temp1;\n while (rs.next()) {\n StringBuilder sbb = new StringBuilder();\n for (int k = 0; k < columnCount; k++) {\n if (rsmd.getColumnType(k + 1) == Types.INTEGER || rsmd.getColumnType(k + 1) == Types.BIGINT) {\n temp = rs.getInt(k + 1);\n sbb.append(temp + \" | \");\n } else if (rsmd.getColumnType(k + 1) == Types.VARCHAR || rsmd.getColumnType(k + 1) == Types.CHAR) {\n temp = rs.getString(k + 1);\n sbb.append(temp + \" | \");\n } else if (rsmd.getColumnType(k + 1) == Types.FLOAT || rsmd.getColumnType(k + 1) == Types.DECIMAL) {\n temp1 = rs.getDouble(k + 1);\n sbb.append(temp1 + \" | \");\n } else if (rsmd.getColumnType(k + 1) == Types.BOOLEAN) {\n temp = rs.getBoolean(k + 1);\n sbb.append(temp + \" | \");\n } else if (rsmd.getColumnType(k + 1) == Types.DATE) {\n temp = rs.getDate(k + 1);\n sbb.append(temp + \" | \");\n } else {\n temp = rs.getString(k + 1);\n sbb.append(temp + \" | \");\n }\n }\n sbb.setLength(sbb.length() - 1);\n output = sbb.toString();\n System.out.println(output);\n }\n\n conn.close();\n iconn.close();\n } catch (IOException | ClassNotFoundException | IllegalAccessException | InstantiationException | SQLException e) {\n System.err.println(e);\n }\n }", "public static void main(String[] args) {\n addAllFacesFromPredefinedCsv();\n // Simple usage:\n //\n // final int labelId = 100;\n // DatabaseConnectionManager m =\n // DatabaseConnectionManager.getInstance();\n //\n // // Load face from database by label ID\n //\n // FaceEntity fe = m.getSingleFaceFromDatabaseByLabelId(labelId);\n // if (fe == null) {\n // System.out.println(\"Face with labelID = \" + labelId + \" wasn't\n // found\");\n // }\n //\n // // Load face from database by primary key ID\n //\n // final int primaryKeyId = 169;\n // m.saveFaceFromDatabaseToFileByPrimaryKeyId(primaryKeyId,\n // \"face_with_ID_\" + primaryKeyId + \".gif\");\n //\n // // Close connection and log handlers\n //\n // log.closeHandlers();\n // m.closeConnection();\n }", "public static void main(String[] args) {\n \tString file = \"ensembl_genes.txt\";\r\n \tString dbname = \"ensembl_homo_sapiens_38_36\";\r\n \tEnsembl2Visio ensj = new Ensembl2Visio();\r\n // \tensj.fetchFromEnsembl(nrGenes, organism, file); // Do this with perl\r\n \tensj.createGdbFromTxt(file, dbname);\r\n }", "public static void main(String[] args) throws IOException, ParseException {\n\n BookRepository bookRepository = new BookRepository();\n bookRepository.load(path + \"Livres.csv\", \";\");\n bookRepository.fill();\n System.out.println(bookRepository.getByPublisher(\"Vita\"));\n bookRepository.remove(bookRepository.getById(1));\n System.out.println(bookRepository);\n\n Mesures mesures = new Mesures();\n mesures.load(path + \"Mesures.csv\", \";\");\n System.out.println(Arrays.toString(mesures.getDifference(2, 3, 2)));\n System.out.println(mesures.getIndexDifference(2, 3, 2, 0.001));\n }", "public static void main(String[] args) throws IOException{\n\t\tintersections = new HashMap<Integer,LatLong>();\n\t\t/*nodeIDs = new ArrayList<Integer>();\n\t\tnodeCoordinates = new ArrayList<LatLong>();*/\n\t\t\n\t\tString intersectionsFileName = \"data/CENTRELINE_INTERSECTION_WGS84.csv\";\n\t\tScanner input = new Scanner(new File(intersectionsFileName));\n\t\t//System.out.println(\"intersection\");\n\t\t//System.out.println(input.hasNextLine());\n\t\tString[] throwout = input.nextLine().split(\",\");\n\t\twhile (input.hasNextLine()){\n\t\t\tString[] line = input.nextLine().split(\",\");\n\t\t\tLatLong l = new LatLong(Double.parseDouble(line[16]), Double.parseDouble(line[15]));\n\t\t\t\n\t\t\tInteger data = Integer.parseInt(line[0]);\n\t\t\t\n\t\t\tintersections.put(data,l);\n\t\t\t\n\t\t\t/*nodeIDs.add(data);\n\t\t\tnodeCoordinates.add(l);*/\n\t\t\t\n\t\t}\n\t\tinput.close();\n\t\t\n\t\t\n\t\t//Create graph based on centreline data, which tells us which nodes/intersections are connected\n\t\tG = new Graph();\n\t\tString centrelineFileName = \"data/CENTRELINE_WGS84.csv\";\n\t\tinput = new Scanner(new File(centrelineFileName));\n\n\t\tthrowout = input.nextLine().split(\",\");\n\t\twhile (input.hasNextLine()){\n\t\t\tString[] line = input.nextLine().split(\",\");\n\t\t\tInteger fnode = Integer.parseInt(line[11]);\n\t\t\tInteger tnode = Integer.parseInt(line[12]);\n\t\t\t\n\t\t\t//Look up corresponding lat/long points\n\t\t\tdouble fnodeLat = intersections.get(fnode).getLatitude();\n\t\t\tdouble fnodeLon = intersections.get(fnode).getLongitude();\n\t\t\tdouble tnodeLat = intersections.get(tnode).getLatitude();\n\t\t\tdouble tnodeLon = intersections.get(tnode).getLongitude();\n\t\t\t\n\t\t\tG.addEdge(fnode, fnodeLat, fnodeLon, tnode, tnodeLat, tnodeLon);\n\t\t}\n\t\tinput.close();\n\t\t\n\t\t\n\t\t//Import bike parking on street\n\t\tbikeParkingCoordinates = new ArrayList<LatLong>();\n\t\tbikeParkingNodeIDs = new ArrayList<Integer>();\n\t\tbikeNodes = new HashMap<Integer, LatLong>();\n\t\tString bikeParkingOnStreetFileName = \"data/BICYCLE_PARKING_ON_STREET_WGS84.csv\";\n\t\tinput = new Scanner(new File(bikeParkingOnStreetFileName));\n\t\tSystem.out.println(\"hello\" + \"\\n\" + \"Testing Client.java\" +\"\\n\");\n\t\t//System.out.println(input.hasNextLine());\n\t\tthrowout = input.nextLine().split(\",\");\n\t\t\n\t\twhile (input.hasNextLine()){\n\t\t\tString[] line = input.nextLine().split(\",\");\n\t\t\tLatLong l = new LatLong(Double.parseDouble(line[6]), Double.parseDouble(line[5]));\n\t\t\t\n\t\t\t//Find intersection closest to bike parking\n\t\t\tInteger bpNodeID = PathCalculation.closestIntersection(l, intersections);\n\t\t\tbikeParkingNodeIDs.add(bpNodeID);\n\t\t\tbikeParkingCoordinates.add(intersections.get(bpNodeID));\n\t\t\t\n\t\t\t//System.out.println(l + \" \" + intersections.get(bpNodeID));\n\t\t\t\n\t\t\tbikeNodes.put(bpNodeID, intersections.get(bpNodeID));\n\t\t\t\n\t\t\t\n\t\t}\n\t\tinput.close();\n\t\t\n\t\t\n\t\t\n\t\t/*for (Integer e : bikeNodes.keySet()){\n\t\t\tSystem.out.println(e);\n\t\t}*/\n\t\t\n\t\t\n\t\t//Ask user for beginning and end address\n\t\tString userString = null; //for storage of user's desired input\n\t\t\n\t\tScanner s = new Scanner(new File(\"data/testData.txt\")); //Data file with addresses, source and destination\n\t\tint n = 1; // Test case number\n\t\twhile(s.hasNextLine()){\n\t\t\tBoolean INvalidinput = true; // used for while loop, loop while the input is not good\n\t\t\t\n\t\t\tLatLong StartCoords = new LatLong(0,0);\n\t\t\tLatLong EndCoords = new LatLong(0,0);\n\t\t\tAddresses.init();\n\t\t\twhile(INvalidinput){\n\t\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Testing case: \" + n);\n\t\t\t\tuserString = s.nextLine();\n\t\t\t\tStartCoords = Addresses.getLatLong(userString);\n\t\t\t\tINvalidinput = false; // essentially if it GETS one it's valid. OTHERWISE it will throw an exception\n\t\t\t\t}\n\t\t\t\tcatch(InvalidStreetException | NumberFormatException e){\n\t\t\t\t\tSystem.out.println(\"INVALID STREET: \" + userString + \"\\n\");\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t\tcatch(ArrayIndexOutOfBoundsException e){\n\t\t\t\t\tSystem.out.println(\"PLEASE ENTER: StreetNumber,StreetName\" + \"\\n\");\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t\tcatch(StringIndexOutOfBoundsException e){\n\t\t\t\t\tSystem.out.println(\"PLEASE ENTER: StreetNumber,StreetName\" + \"\\n\");\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tINvalidinput = true;\n\t\t\twhile(INvalidinput){\n\t\t\t\ttry{\n\t\t\t\tuserString = s.nextLine();\n\t\t\t\tEndCoords = Addresses.getLatLong(userString);\n\t\t\t\tINvalidinput = false; // essentially if it GETS one it's valid. OTHERWISE it will throw an exception\n\t\t\t\t}\n\t\t\t\tcatch(InvalidStreetException | NumberFormatException e){\n\t\t\t\t\tSystem.out.println(\"INVALID STREET\" + \"\\n\");\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t\tcatch(ArrayIndexOutOfBoundsException e){\n\t\t\t\t\tSystem.out.println(\"PLEASE ENTER: StreetNumber,StreetName\" + \"\\n\");\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t\tcatch(StringIndexOutOfBoundsException e){\n\t\t\t\t\tSystem.out.println(\"PLEASE ENTER: StreetNumber,StreetName\" + \"\\n\");\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t//Call path calculation --> should return list of lat/long points given two lat/long points and a graph\n\t\t\t\n\t\t/*\tInteger source = 30075902;\n\t\t\tInteger destination = 13469577;\n\t\t*/\n\t\t\tInteger source = PathCalculation.closestIntersection(StartCoords, intersections);\n\t\t\tInteger destination = PathCalculation.closestIntersection(EndCoords, intersections);\n\t\t\t\n\t\t\t/*Integer source = nodeIDs.get(nodeCoordinates.indexOf(StartCoords));\n\t\t\tInteger destination = nodeIDs.get(nodeCoordinates.indexOf(EndCoords));*/\n\t\t\t\n\t\t\t//Determine bike parking location by finding shortest path\n\t\t\t\t\t//Integer chosenBikeParkingNodeID = PathCalculation.closestBikeParking(destination, bikeParkingLocations);\n\t\t\t\n\t\t\tBreadthFirstSearch bfsDestinationToBikeParking = new BreadthFirstSearch(G, destination);\n\t\t\tInteger closestDistance = Integer.MAX_VALUE;\n\t\t\tInteger closestBPNodeID = 0;\n\t\t\t\n\t\t\tfor (Integer bpNodeID : bikeNodes.keySet()){\n\t\t\t\tInteger distance = bfsDestinationToBikeParking.distTo(bpNodeID);\n\t\t\t\tif (distance < closestDistance){\n\t\t\t\t\tclosestDistance = distance;\n\t\t\t\t\tclosestBPNodeID = bpNodeID;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/*for (Integer e : bfsDestinationToBikeParking.getDistTo().keySet()){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t\t*/\n\t\t\t//Get path from bpNodeID to destination in array list\n\t\t\tArrayList<Integer> destToBP = bfsDestinationToBikeParking.pathToArray(closestBPNodeID); //path from dest --> BP\n\t\t\t\n\t\t\t//Get path from source to bpNodeID in array list\n\t\t\tBreadthFirstSearch bfsSourceToBikeParking = new BreadthFirstSearch(G, source);\n\t\t\tArrayList<Integer> sourceToBP = bfsSourceToBikeParking.pathToArray(closestBPNodeID);\n\t\t\t//create final path in nodeId's\n\t\t\tArrayList<Integer> finalPath = new ArrayList<Integer>();\n\t\t\t\n\t\t\tfor (int i = 0; i < sourceToBP.size(); i++){\n\t\t\t\tfinalPath.add(sourceToBP.get(i));\n\t\t\t}\n\t\t\t//want path from BP to dest, so reverse array list:\n\t\t\tfor (int i = destToBP.size() - 1; i < 0; i++){\n\t\t\t\tfinalPath.add(destToBP.get(i));\n\t\t\t}\t\t\n\t\t\t\n\t\t\t//create array list of lat/long points:\n\t\t\tArrayList<LatLong> finalLatLongPath = new ArrayList<LatLong>();\n\t\t\tfor (int i = 0; i < finalPath.size(); i++){\n\t\t\t\tfinalLatLongPath.add(intersections.get(finalPath.get(i)));\n\t\t\t}\n\t\t\t\n\t\t\tfor (LatLong e : finalLatLongPath){\n\t\t\t\t//System.out.print(e + \", \");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Test case \" +n + \" passed.\" + \"\\n\");\n\t\t\tn++;\n\t\t}\n\t\t\n//\t\tDesktop d = Desktop.getDesktop();\n//\t\ttry {\n//\t\t\td.browse(new URI(\"https://jsfiddle.net/rmLtu9t7/6/\"));\n//\t\t} catch (URISyntaxException e1) {\n//\t\t\tSystem.out.println(\"Invalid Website URL\");\n//\t\t}\n\t}", "public static void main(String args[]) throws Exception {\n\t\t createFile();\n\n\t\t // retrieve an instance of H4File\n\t\t FileFormat fileFormat = FileFormat.getFileFormat(FileFormat.FILE_TYPE_HDF4);\n\n\t\t if (fileFormat == null) {\n\t\t System.err.println(\"Cannot find HDF4 FileFormat. (Sandbox)\");\n\t\t return;\n\t\t }\n\n\t\t // open the file with read and write access\n\t\t ///FileFormat testFile = fileFormat.open(fname, FileFormat.WRITE);\n\t\t @SuppressWarnings(\"deprecation\")\n\t\t\t\tFileFormat testFile = fileFormat.open(fname, FileFormat.WRITE);\n\n\t\t if (testFile == null) {\n\t\t System.err.println(\"Failed to open file: \" + fname);\n\t\t return; \n\t\t }\n\n\t\t // open the file and retrieve the file structure\n\t\t testFile.open();\n\t\t Group root = (Group) ((javax.swing.tree.DefaultMutableTreeNode) testFile.getRootNode()).getUserObject();\n\n\t\t // retrieve athe dataset \"2D 32-bit integer 20x10\"\n\t\t Dataset dataset = (Dataset) root.getMemberList().get(0);\n\t\t dataset.hasAttribute();\n\t\t int[] dataRead = (int[]) dataset.read();\n\n\t\t // print out the data values\n\t\t System.out.println(\"\\n\\nOriginal Data Values\");\n\t\t for (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"\\n\" + dataRead[i * 10]);\n\t\t for (int j = 1; j < 10; j++) {\n\t\t System.out.print(\", \" + dataRead[i * 10 + j]);\n\t\t }\n\t\t }\n\n\t\t // change data value and write it to file.\n\t\t for (int i = 0; i < 20; i++) {\n\t\t for (int j = 0; j < 10; j++) {\n\t\t dataRead[i * 10 + j]++;\n\t\t }\n\t\t }\n\t\t dataset.write(dataRead);\n\n\t\t // clearn and reload the data value\n\t\t int[] dataModified = (int[]) dataset.read();\n\n\t\t // print out the modified data values\n\t\t System.out.println(\"\\n\\nModified Data Values\");\n\t\t for (int i = 0; i < 20; i++) {\n\t\t System.out.print(\"\\n\" + dataModified[i * 10]);\n\t\t for (int j = 1; j < 10; j++) {\n\t\t System.out.print(\", \" + dataModified[i * 10 + j]);\n\t\t }\n\t\t }\n\n\t\t // close file resource\n\t\t testFile.close();\n\t\t }", "public static void main(String[] args) {\n\t\tString[] fileNames = {\r\n\t\t\t\t\"transByZipMonthYear\", \"transCountAndValByType\", \"transCountAndValByState\",\r\n\t\t\t\t\"customerBySsn\", \"updatedCustomer\", \"monthInvoice\",\"monthInvoiceTransactions\",\"custTransBetweenDates\"\r\n\t\t\t\t};\r\n\t\tString[] columnNames = {\r\n\t\t\t\t\"t_id,d,m,y,ccn,branch,transaction_type,transaction_value,c_ssn\",\r\n\t\t\t\t\"type, val, count\",\r\n\t\t\t\t\"state, val, count\",\r\n\t\t\t\t\"fName, mName,lName,ssn,ccn,aptN,streetN,custCity,custState,custCountry,custZip,custPhone,custEmail\",\r\n\t\t\t\t\"fName, mName,lName,ssn,ccn,aptN,streetN,custCity,custState,custCountry,custZip,custPhone,custEmail\",\r\n\t\t\t\t\"balance, fName, lName, id\",\r\n\t\t\t\t\"t_id,d,m,y,ccn,branch,transaction_type,transaction_value,c_ssn\",\r\n\t\t\t\t\"fName, mName, lName,t_id,d,m,y,ccn,branch,transaction_type,transaction_value\"\r\n\t\t\t\t\r\n\t\t};\r\n\t\tfor(int i = 0;i<fileNames.length;i++) {\r\n\t\t\tWriteToFile.overWrite(fileNames[i]);\r\n\t\t\tWriteToFile.writeToLoc(fileNames[i], columnNames[i]);\r\n\t\t}\r\n\t\t//might be easier to just non-append-write the files here to blank them out\r\n\t\t\t//narrator: it was.\t\r\n\t\tScanner scanner = new Scanner (System.in);\r\n\t\tselect(scanner);\r\n\t\tscanner.close();\r\n\t\treturn;\t\r\n\t}", "public static void main(String[] args) {\n if (args.length < 1) {\n usage();\n }\n parseArgs(args);\n debug(debug, \"Initializing file: \" + filename);\n BasicGraphService bgs = new BasicGraphService();\n int status = bgs.bulkload(filename);\n debug(debug, \"Loading done on file: \" + filename);\n switch (status) {\n\t\tcase -42:\n\t\t\tSystem.out.println(\"File not found on server\");\n\t\t\tbreak;\n\t\tcase -43:\n\t\t\tSystem.out.println(\"Error while parsing file\");\n\t\t\tbreak;\n\t\tcase -44:\n\t\t\tSystem.out.println(\"Not enough memory to build mapping\");\n\t\t\tbreak;\n\t\tcase -45:\n\t\t\tSystem.out.println(\"Function called more than once\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tdebug(debug, \"Loading succesful\");\n\t\t\tRandom random = new Random();\n\t\t\tlong before = System.currentTimeMillis();\n\t for (int i = 0; i < iterations; i++) {\n\t\t\t\tint key = random.nextInt(maxRandInt);\n\t\t\t\tdebug(debug,\"Key: \" + key + \"\\t\" +bgs.getConnections(key).toString());\n\t\t\t}\n\t long after = System.currentTimeMillis();\n\t debug(debug, \"time: \" + (after - before) + \" milliseconds\");\n\t \n\t // throughput test, run 10 test per 1 second \n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tthroughput(bgs);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n \n }", "public void run(File sqlLiteFile, List<String> colNames) {\n String status = \"\\nConverting Data Format ...\";\n processController.appendStatus(status + \"<br>\");\n\n Connection connection = new Connection(sqlLiteFile);\n String mappingFilepath = getMapping(connection, colNames);\n getTriples(mappingFilepath);\n }", "public static void main(String[] args) throws IOException {\n\t\tint id_telefone = 4;\n\t\t\n\t\tFileInputStream fis = new FileInputStream(SAMPLE_CSV_FILE_PATH);\n\t\tInputStreamReader isr = new InputStreamReader(fis, \"UTF-8\");\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tCSVReader reader = new CSVReader(isr, ';' , '\"' , 0);\n \tString[] nextLine;\n \t\n// \tWriter writer = Files.newBufferedWriter(Paths.get(\"saida.csv\"));\n// \tCSVWriter csvWriter = new CSVWriter(writer,\n// CSVWriter.DEFAULT_SEPARATOR,\n// CSVWriter.NO_QUOTE_CHARACTER,\n// CSVWriter.DEFAULT_ESCAPE_CHARACTER,\n// CSVWriter.DEFAULT_LINE_END);\n \t\n \tFile file = new File(\"Clientes.sql\");\n \n BufferedWriter fr = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file),\"UTF-8\"));\n \t\n \twhile ((nextLine = reader.readNext()) != null) {\n \t\t\n if (nextLine != null) {\n \t\n// \tSystem.out.println(nextLine.length);\n \t\n \tString id = nextLine[0];\n \tif(!id.isEmpty()) {\n \t\n \t\tid = id.substring(5);\n \t\tid = id.replace(\".\", \"\");\n \t\t\n \t\tboolean temCEP = false;\n \t\t\n \t\tif(nextLine.length > 12) temCEP = true;\n \t\t\n \t\tString CEP = \"\";\n \t\tif(temCEP) {\n \t\t CEP = nextLine[12];\n CEP = CEP.replace(\".\", \"\");\n CEP = CEP.replaceAll(\"-\",\"\");\n CEP = CEP.replaceAll(\" \",\"\");\n \t\t};\n \n \t\n \n \tfr.write(\"INSERT INTO hmprojetos.cliente values (\" \n + id \n + \",'\" + nextLine[1]\n \t\t+ \"','\" + nextLine[2]\n \t\t\t\t+ \"','\" + nextLine[3]\n \t\t\t\t\t\t+ \"','\" + nextLine[4]\n \t\t\t\t\t\t\t\t+ \"','\" + nextLine[5]\n \t\t\t\t\t\t\t\t\t\t+ \"','\" + CEP\n \t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[10]\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[11]\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[6]\n + \"');\\n\");\n \t\n \t//Criação dos INSERTS dos telefones\n \tif(!nextLine[7].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[7]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \tif(!nextLine[8].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[8]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \tif(!nextLine[9].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[9]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \t\n \t}\n }\n \t}\n \t\n \tfr.close();\n \tSystem.out.println(\"Done\");\n\t}", "private void importData(Connection conn,String filename)\n {\n\t\t\n Statement stmt;\n String query;\n try {\n\t\t\t\t// Step 1: Allocate a database \"Connection\" object\n\t\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost:\" + PORT_NUMBER + \"/Experiences?user=root&password=root\"); // MySQL\n\t\t\t\t// Step 2: Allocate a \"Statement\" object in the Connection\n\t\t\t\t stmt = conn.createStatement();\n\t\t\t\t {\n\t\t\t\n\n\t\t} }catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\t\n\t\t}\n \n \n try\n {\n stmt = conn.createStatement(\n ResultSet.TYPE_SCROLL_SENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n \n \n query = \"LOAD DATA LOCAL INFILE '\"+filename+\"' INTO TABLE t1 FIELDS TERMINATED BY ',' (question1,question2,question3,question4,question5,question6,question7,question8,question9)\";\n \n stmt.executeUpdate(query);\n \n }\n catch(Exception e)\n {\n e.printStackTrace();\n stmt = null;\n }\n }", "public void run() {\n CsvParser parser = this.initializeParser();\n\n // Initialize data structures\n String[] firstLine = parser.parseNext();\n List<MutableRoaringBitmap> dataset = new ArrayList<>(firstLine.length);\n for (int i = 0; i < firstLine.length; i++) {\n dataset.add(new MutableRoaringBitmap());\n this.columnPlisMutable = ImmutableList.copyOf(dataset);\n }\n\n // Start parsing the file\n if (this.configuration.isNoHeader()) {\n this.addRow(firstLine);\n } else {\n this.columnIndexToNameMapping = firstLine;\n }\n\n String[] nextRow;\n while ((nextRow = parser.parseNext()) != null) {\n this.addRow(nextRow);\n this.nRows++;\n }\n\n this.transformRows();\n this.transformColumns();\n log.info(\"Deduplicated {} rows to {}, {} columns to {}\", this.nRows, this.nRowsDistinct,\n this.columnPlisMutable.size(), this.columnPlis.size());\n }", "public void testRead_Insert() throws Exception {\n\n\t\tfinal boolean DEBUG = true;\n\n\t\t//DataGenerator dg = new DataGenerator();\n\t\t\n\t\tif (DEBUG) System.out.println(\"Inside testReadFile()...\");\n\n\t\t//ER\n \t\tdg.buildDataFile(maxrecs,inFile1,newFile1);\n \t\tdataarr1=dg.ReadFile(maxrecs,newFile1);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr1.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tER: \" + dataarr1[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//PR\n \t\tdg.buildDataFile(maxrecs,inFile2,newFile2);\n \t\tdataarr2=dg.ReadFile(maxrecs,newFile2);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr2.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tPR: \" + dataarr2[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//HER2status\n \t\tdg.buildDataFile(maxrecs,inFile3,newFile3);\n \t\tdataarr3=dg.ReadFile(maxrecs,newFile3);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr3.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tHER2status: \" + dataarr3[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//HER2testtype\n \t\tdg.buildDataFile(maxrecs,inFile4,newFile4);\n \t\tdataarr4=dg.ReadFile(maxrecs,newFile4);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr4.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tHER2testtype: \" + dataarr4[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//EGFRstatus\n \t\tdg.buildDataFile(maxrecs,inFile5,newFile5);\n \t\tdataarr5=dg.ReadFile(maxrecs,newFile5);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr5.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tEGFRstatus: \" + dataarr5[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tdg.buildBreastCancerBiomarkers(maxrecs,dataarr1,dataarr2,dataarr3,dataarr4,dataarr5);\n\t\t\n\t\tif (DEBUG) System.out.println(\"\\tEnd Of testReadFile...\");\n\t\t\n\t}", "public static void main(String[] args) {\n\n\tMiningOptions options = new MiningOptions();\n\tCmdLineParser parser = new CmdLineParser(options);\n\n\ttry {\n\t parser.parseArgument(args);\n\t} catch (CmdLineException e) {\n\t Main.printUsage(e.getMessage(), parser);\n\t return;\n\t}\n\n\t/* Print the help page. */\n\tif (options.getHelp()) {\n\t Main.printHelp(parser);\n\t return;\n\t}\n\n\t/* Parse the file into a list of file pairs. */\n\tSet<Candidate> candidates = new HashSet<Candidate>();\n\n\ttry (BufferedReader br = new BufferedReader(new FileReader(options.getCandidatesFile()))) {\n\t for (String line; (line = br.readLine()) != null;) {\n\n\t\tSystem.out.println(line);\n\t\t;\n\n\t\t/* Parse the line into a Candidate object. */\n\t\tString[] values = line.split(\",\");\n\t\tCandidate candidate = new Candidate(values[0], Integer.parseInt(values[1]),\n\t\t\tvalues[2], new File(options.getSourceDir(), values[3]),\n\t\t\tnew File(options.getSourceDir(), values[4]));\n\n\t\t/*\n\t\t * Add the candidate if it is is not already in the candidate set (we will\n\t\t * re-generate labels for each interesting change).\n\t\t */\n\t\tcandidates.add(candidate);\n\n\t }\n\t} catch (FileNotFoundException e) {\n\t System.err.println(\n\t\t \"FileNotFoundException while reading candidate file: \" + e.getMessage());\n\t e.printStackTrace();\n\t} catch (IOException e) {\n\t System.err.println(\"IOException while reading candidate file: \" + e.getMessage());\n\t e.printStackTrace();\n\t}\n\n\t/*\n\t * Create a pool of threads and use a CountDownLatch to check when all threads\n\t * are done.\n\t */\n\tExecutorService executor = Executors.newFixedThreadPool(options.getNThreads());\n\tCountDownLatch latch = new CountDownLatch(candidates.size());\n\n\t/* Analyze all projects. */\n\tfor (Candidate candidate : candidates) {\n\n\t try {\n\t\t/* Perform the analysis (this may take some time) */\n\t\tCandidateAnalysis candidateAnalysis = new CandidateAnalysis(candidate,\n\t\t\toptions.getOutFile());\n\t\texecutor.submit(new CandidateAnalysisTask(candidateAnalysis, latch));\n\t } catch (Exception e) {\n\t\te.printStackTrace(System.err);\n\t\tlogger.error(\"[IMPORTANT] Project \" + candidate.getURI() + \"/\" + candidate.getFile()\n\t\t\t+ \" threw an exception\");\n\t\tlogger.error(e);\n\t\tcontinue;\n\t }\n\n\t}\n\n\t/* Wait for all threads to finish their work */\n\ttry {\n\t latch.await();\n\t executor.shutdown();\n\t System.out.println(\"All threads finished!\");\n\t} catch (InterruptedException e) {\n\t e.printStackTrace();\n\t return;\n\t}\n\n }", "public void insertData() throws SQLException, URISyntaxException, FileNotFoundException {\n\t \t\t//On vide la base en premier\n\t \t\tdropDB();\n\t \t\t\n\t \t\t//Fichier contenant les jeux de test\n\t \t\tBufferedReader br = new BufferedReader(new FileReader(\"./data.txt\"));\n\t \t \n\t \t PreparedStatement pstmt = null;\n\t \t Connection conn = null;\n\t \t int id;\n\t \t String lastname, firstname, cardNumber, expirationMonth, expirationYear, cvv, query;\n\t \t try {\n\t \t conn = this.connectToBDD();\n\t \t \n\t \t String line = null;\n\t \t \n\t \t //On lit le fichier data.txt pour inserer en base\n\t \t while((line=br.readLine()) != null) {\n\t \t \t String tmp[]=line.split(\",\");\n\t \t \t id=Integer.parseInt(tmp[0]);\n\t\t\t \t lastname=tmp[1];\n\t\t\t \t firstname=tmp[2];\n\t\t\t \t cardNumber=tmp[3];\n\t\t\t \t expirationMonth=tmp[4];\n\t\t\t \t expirationYear=tmp[5];\n\t\t\t \t cvv=tmp[6];\n\t\t\t \t \n\t\t\t \t //Insertion des clients\n\t\t\t \t query = \"INSERT INTO consumer VALUES(\"+ id + \",'\" +firstname+\"','\"+lastname+\"')\";\n\t\t\t \t \n\t\t\t \t pstmt = conn.prepareStatement(query);\n\t\t\t \t pstmt.executeUpdate();\n\t\t\t \t \n\t\t\t \t \n\t\t\t \t //Insertion des comptes\n\t\t\t \t query = \"INSERT INTO account (card_number, expiration_month, expiration_year, cvv, remain_balance, consumer_id) \"\n\t\t \t\t\t\t+ \"VALUES ('\"+cardNumber+\"','\"+expirationMonth+\"','\"+expirationYear+\"','\"+cvv+\"',300,\"+id+\")\";\n\t\t\t \t\n\t\t\t \t pstmt = conn.prepareStatement(query);\n\t\t\t \t pstmt.executeUpdate();\n\t \t }\n\t \t \n\t \t \n\t \t } catch (Exception e) {\n\t \t System.err.println(\"Error: \" + e.getMessage());\n\t \t e.printStackTrace();\n\t \t }\n\t \t }", "public static void main( String [ ] args )\n {\n Graph g = new Graph( );\n try\n {\n \t//String filePath = System.getProperty(\"user.dir\") + \"/\"+ args[0];\n \t\t\t\t\n FileReader fin = new FileReader( args[0]);\n Scanner graphFile = new Scanner( fin );\n\n // Read the edges and insert\n String line;\n while( graphFile.hasNextLine( ) )\n {\n line = graphFile.nextLine( );\n StringTokenizer st = new StringTokenizer( line );\n\n try\n {\n if( st.countTokens( ) != 3 )\n {\n System.err.println( \"Skipping ill-formatted line \" + line );\n continue;\n }\n String source = st.nextToken( );\n String dest = st.nextToken( );\n double\tdistance = Double.parseDouble(st.nextToken());\n g.addEdge( source, dest,distance );\n g.addEdge( dest, source,distance );\n }\n catch( NumberFormatException e )\n { System.err.println( \"Skipping ill-formatted line \" + line ); }\n }\n }\n catch( IOException e )\n { System.err.println( e ); }\n\n // System.out.println( \"File read...\" );\n // System.out.println( g.vertexMap.size( ) + \" vertices\" );\n\n Scanner in = new Scanner( System.in );\n while( processRequest( in, g ) )\n ;\n }", "public static void main(String[] args) throws IOException {\n FileInputStream fis = new FileInputStream(\"out/cities.txt\");\r\n \r\n // Create DataInputStream object wrap 'fis'.\r\n DataInputStream dis = new DataInputStream(fis);\r\n \r\n //\r\n // Read data.\r\n //\r\n int cityId1 = dis.readInt();\r\n System.out.println(\"Id: \" + cityId1);\r\n String cityName1 = dis.readUTF();\r\n System.out.println(\"Name: \" + cityName1);\r\n int cityPopulation1 = dis.readInt();\r\n System.out.println(\"Population: \" + cityPopulation1);\r\n float cityTemperature1 = dis.readFloat();\r\n System.out.println(\"Temperature: \" + cityTemperature1);\r\n \r\n //\r\n // Read data.\r\n //\r\n int cityId2 = dis.readInt();\r\n System.out.println(\"Id: \" + cityId2);\r\n String cityName2 = dis.readUTF();\r\n System.out.println(\"Name: \" + cityName2);\r\n int cityPopulation2 = dis.readInt();\r\n System.out.println(\"Population: \" + cityPopulation2);\r\n float cityTemperature2 = dis.readFloat();\r\n System.out.println(\"Temperature: \" + cityTemperature2);\r\n \r\n dis.close();\r\n }", "public static void main(String[] args) {\n // Change some of the standard settings defined in the Globals class\n Globals g = new Globals();\n g.showMap();\n sql_epiII = new SQL_Episode_II( g );\n// General.verbosity = General.verbosityDebug;\n \n General.showOutput(\"Opened an sql connection:\" + sql_epiII );\n \n // Read in the classifications possible for annotation.\n classi = new Classification();\n if (!classi.readFromCsvFile(\"Data/classification.csv\")){\n General.showError(\"in MRAnnotate.main found:\");\n General.showError(\"reading classification file.\");\n System.exit(1);\n }\n /** Very simple loop as a menu.\n *Start over every time a sequence of entries has been done.\n *Very fast though to get the info again so not a performance issue.\n */\n \n in = new BufferedReader(new InputStreamReader(System.in));\n \n do {\n \n // Work on temporary tables.\n // This is the way to indicate on which set of tables to operate on.\n // The string below indicates it will be the temporary tables.\n sql_epiII.SQL_table_prefix = \"temp_\";\n // Perhaps something left over so empty it. This will also check\n // to see if tables exist.\n boolean status = emptyTempTables();\n if ( ! status ) {\n General.showError(\"trying to empty the temporary db tables.\");\n System.exit(1);\n }\n \n int star_version = NmrStar.STAR_VERSION_DEFAULT;\n General.showOutput(\"Using NMR-STAR version: \" + NmrStar.STAR_VERSION_NAMES[star_version]);\n ArrayList entries_done = doLoop(g, classi, star_version);\n if ( entries_done == null ) {\n General.showError(\"in doLoop.\");\n continue;\n }\n \n if ( entries_done.size() == 0 ) {\n General.showWarning(\"no entries done.\");\n continue;\n }\n \n General.showOutput(\"Done entries: \" + entries_done.size());\n \n \n // In 1 transaction with a try/catch construct for safety\n sql_epiII.setAutoCommit(false);\n boolean transaction_status;\n try {\n // -1- delete the old converted MR files if any\n sql_epiII.SQL_table_prefix = \"\";\n transaction_status = sql_epiII.deleteFilesNotClassified( entries_done );\n sql_epiII.SQL_table_prefix = \"temp_\";\n if ( transaction_status ) {\n General.showDebug(\"-2- Copy temporary content to regular tables.\");\n transaction_status = sql_epiII.copyFromSpecialToRegularTables();\n if ( ! transaction_status ) {\n General.showError(\"trying to copy data from temporary to regular db tables.\");\n }\n } else {\n General.showError(\"trying to delete old converted files from the regular db tables.\");\n } \n \n if ( ! transaction_status ) {\n throw new Exception();\n }\n } catch ( Exception e ) //every possible exception\n {\n General.showThrowable(e);\n // Rollback the transaction if previous steps where not successful.\n General.showError(\"Will try to roll back the transaction.\");\n transaction_status = sql_epiII.rollbackTransaction();\n if ( ! transaction_status ) {\n General.showError(\"rolling back the transaction. Aborting program.\");\n break;\n }\n }\n \n // Reset commit so the doLoop can be quick.\n sql_epiII.setAutoCommit(true);\n General.showDebug(\"-3- Delete temporary content.\");\n status = emptyTempTables();\n if ( ! status ) {\n General.showError(\"trying to empty the temporary db tables.\");\n break;\n }\n } while ( Strings.getInputBoolean(in, \"Start again?\") );\n }", "static public void main(String[] args) throws IOException{\n\t\tString sample = \"h19x24\";\n\t\tString parentFolder = \"/media/kyowon/Data1/Dropbox/fCLIP/new24/\";\t\t\n\t\tString bedFileName = \"/media/kyowon/Data1/fCLIP/samples/sample3/bed/\" + sample + \".sorted.bed\";\n\t\tString dbFasta = \"/media/kyowon/Data1/RPF_Project/genomes/hg19.fa\";\n\t\tString parameterFileName = \"/media/kyowon/Data1/fCLIP/samples/sample3/bed/\" + sample + \".sorted.param\";\n\t\t\n\t\tString trainOutFileName = parentFolder + sample + \".train.csv\";\n\t\tString arffTrainOutFileName = parentFolder + sample + \".train.arff\";\n\t\t\n\t\tString cisOutFileName = parentFolder + sample + \".csv\";\n\t\tString transOutFileNameM = parentFolder + sample + \".pair.M.csv\";\n\t\tString transOutFileNameU = parentFolder + sample + \".pair.U.csv\";\n\t\tString transControlOutFileNameM = parentFolder + sample + \".pair.M.AntiSense.csv\";\n\t\tString transControlOutFileNameU = parentFolder + sample + \".pair.U.AntiSense.csv\";\n\t\tString rmskBed = \"/media/kyowon/Data1/fCLIP/Data/cat.rmsk.bed\";\n\t\tString siControlBed = \"/media/kyowon/Data1/fCLIP/RNAseq/siControl_R1_Aligned_Sorted.bed\";\n\t\tString siKDDroshaBed = \"/media/kyowon/Data1/fCLIP/RNAseq/siDrosha_R1_Aligned_Sorted.bed\";\n\t\tString siKDDicerBed = \"/media/kyowon/Data1/fCLIP/RNAseq/siDicer_R1_Aligned_Sorted.bed\";\n\t\t\n\t\tString cisBed5pFileName = cisOutFileName + \".5p.bed\";\n\t\tString cisBed3pFileName = cisOutFileName + \".3p.bed\";\n\t\t\n\t\tdouble unpairedScoreThreshold = 0.25; \n\t\tdouble pairedScoreThreshold = unpairedScoreThreshold/5;\n\t//\tdouble motifScoreThreshold = 0.15;\n\t\t\n\t\tint num3pPaired = 10;\n\t\tint num5pPaired = 20;\n\t\t\n\t\tString filteredTransOutFileName = transOutFileNameM + \".filtered.csv\";\n\t\t\n\t\tint blatHitThreshold = 100000000;\n\t\tint transPairSeqLength = FCLIP_Scorer.getFlankingNTNumber() *2 + 80;\n\t\t\n\t\tZeroBasedFastaParser fastaParser = new ZeroBasedFastaParser(dbFasta);\n\t\tMirGff3FileParser mirParser = new MirGff3FileParser(\"/media/kyowon/Data1/fCLIP/genomes/hsa_hg19.gff3\");\n\t\tAnnotationFileParser annotationParser = new AnnotationFileParser(\"/media/kyowon/Data1/fCLIP/genomes/hg19.refFlat.txt\");\n\t\tFCLIP_ScorerTrainer.train(parameterFileName, bedFileName, mirParser, annotationParser);\n\t\t\n\t\ttrain(trainOutFileName, arffTrainOutFileName, bedFileName, fastaParser, annotationParser, mirParser, parameterFileName, unpairedScoreThreshold, pairedScoreThreshold);\n\t\trunCis(cisOutFileName, arffTrainOutFileName, bedFileName, fastaParser, annotationParser, mirParser, parameterFileName, unpairedScoreThreshold, pairedScoreThreshold);\n\n\t\tScoredPositionOutputParser.generateBedFromCsv(cisOutFileName, cisBed5pFileName, cisBed3pFileName, false); // for fold change..\n\t//\tScoredPositionOutputParser.generateFastaForMotif(cisOutFileName, cisOutFileName + \".5p.motif.fa\", cisOutFileName + \".3p.motif.fa\",cisOutFileName + \".motif.m\", \"M\");\n\t\t\n\t\trunTrans(transOutFileNameM, transOutFileNameU, cisOutFileName, arffTrainOutFileName, blatHitThreshold, transPairSeqLength, false);\n\t\tCheckRepeat.generate(cisOutFileName, transOutFileNameM, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tCheckRepeat.generate(cisOutFileName, transOutFileNameU, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tScoredPairOutputParser.generateFastaForMotif(transOutFileNameM, transOutFileNameM + \".5p.motif.fa\", transOutFileNameM + \".3p.motif.fa\");\n\t\t//GenerateCircosLinkFiles.run(transOutFileNameM + \".rmsk.csv\", transOutFileNameM + \".link.txt\");\n\t//\tCheckCoverage.generate(cisOutFileName, transOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDroshaBed, siControlBed);\n\t///\tCheckCoverage.generate(cisOutFileName, transOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDicerBed, siControlBed);\n\t\t\n\t\trunTrans(transControlOutFileNameM, transControlOutFileNameU, cisOutFileName, arffTrainOutFileName, blatHitThreshold, transPairSeqLength, true);\t\t\n\t\tCheckRepeat.generate(cisOutFileName, transControlOutFileNameM, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tCheckRepeat.generate(cisOutFileName, transControlOutFileNameU, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tScoredPairOutputParser.generateFastaForMotif(transControlOutFileNameM, transControlOutFileNameM + \".5p.motif.fa\", transControlOutFileNameM + \".3p.motif.fa\");\n\t//\tGenerateCircosLinkFiles.run(transControlOutFileNameM + \".rmsk.csv\", transControlOutFileNameM + \".link.txt\");\n\t\t//CheckCoverage.generate(cisOutFileName, transControlOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDroshaBed, siControlBed);\n\t//\tCheckCoverage.generate(cisOutFileName, transControlOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDicerBed, siControlBed);\n\t\t\n\t\tfilterTransPairs(transOutFileNameM, filteredTransOutFileName, num3pPaired, num5pPaired);\n\t\tCheckRepeat.generate(cisOutFileName, filteredTransOutFileName, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tScoredPairOutputParser.generateFastaForMotif(filteredTransOutFileName, filteredTransOutFileName + \".5p.motif.fa\", filteredTransOutFileName + \".3p.motif.fa\");\n\t\t//GenerateCircosLinkFiles.run(filteredTransOutFileName + \".rmsk.csv\", filteredTransOutFileName + \".link.txt\");\n\t///\tCheckCoverage.generate(cisOutFileName, filteredTransOutFileName, cisBed5pFileName, cisBed3pFileName, siKDDroshaBed, siControlBed);\n\t//\tCheckCoverage.generate(cisOutFileName, filteredTransOutFileName, cisBed5pFileName, cisBed3pFileName, siKDDicerBed, siControlBed);\n\t\t\n\t\t\n\t\t// generate background for drosha and dicer..\n\t\t\n\t\t\n\t\t// motif different conditioin?? \n\t\t\n\t\t\t\t\n\t\t//GenerateDepthsForEncodeDataSets.generate(outFileName, outFileName + \".encode.csv\", annotationParser);\n\t\t\n\t\t\n\t}", "public void importFile(String filename) throws IOException, BadEntryException, ImportFileException{\n try{\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n line = reader.readLine();\n\n while(line != null){\n String[] fields = line.split(\"\\\\|\");\n int id = Integer.parseInt(fields[1]);\n if(_persons.get(id) != null){\n throw new BadEntryException(fields[0]);\n }\n\n if(fields[0].equals(\"FUNCIONÁRIO\")){\n registerAdministrative(fields);\n line = reader.readLine();\n }else if(fields[0].equals(\"DOCENTE\")){\n Professor _professor = new Professor(id, fields[2], fields[3]);\n _professors.put(id, _professor);\n _persons.put(id, (Person) _professor);\n\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n \n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n\n if(_professor.getDisciplineCourses().get(course) == null){\n _professor.getDisciplineCourses().put(course, new HashMap<String, Discipline>());\n }\n\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline,_course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_professor, id);\n _disciplineCourse.get(course).put(discipline, _discipline);\n\n if(_professor.getDisciplines() != null){\n _professor.getDisciplines().put(discipline, _discipline);\n _professor.getDisciplineCourses().get(course).put(discipline, _discipline); \n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n\n }\n }\n }\n }else if(fields[0].equals(\"DELEGADO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course,_course);\n }\n if(_course.getRepresentatives().size() == 8){\n System.out.println(id);\n throw new BadEntryException(course);\n }else{\n _course.getRepresentatives().put(id,_student);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline,_discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n }else if(fields[0].equals(\"ALUNO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_student, id);\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n\n }else{\n throw new BadEntryException(fields[0]);\n }\n }\n for(Course course: _courses.values()){\n HashMap<Integer,Student> representatives = course.getRepresentatives();\n HashMap<String, Discipline> disciplines = course.getDisciplines();\n for(Discipline discipline: disciplines.values()){\n for(Student representative: representatives.values()){\n discipline.registerObserver(representative, representative.getId());\n }\n }\n \n } \n reader.close();\n }catch(BadEntryException e){\n throw new ImportFileException(e);\n }catch(IOException e){\n throw new ImportFileException(e);\n }\n }", "public static void main(String[] args) {\n\n String fileEdgeList = \"../DataSource/PANCANsigEdgeList.csv\";\n String fileGtTrainingMatrix = \"../DataSource/CrossMatrixDriver/PANCAN.Drivercallpertumor.4468tumors.training.10.csv\";\n// String fileGtTestingMatrix = \"../DataSource/CrossMatrixDriver/PANCAN.Drivercallpertumor.4468tumors.testing.10.csv\";\n String fileGeTrainingMatrix = \"../DataSource/CrossMatrixDriver/PANCAN.GeM.4468tumors.training.10.csv\";\n String fileGeTestingMatrix = \"../DataSource/CrossMatrixDriver/PANCAN.GeM.4468tumors.testing.10.csv\";\n String fileInferDriver = \"../DataSource/CrossMatrixDriver/PANCAN.Drivercallpertumor.4468tumors.InferDriver.10.withTumorID.csv\";\n// String fileDriverSGATable = \"../DataSource/CrossMatrixDriver/PANCAN.Drivercallpertumor.4468tumors.DriverSGATable.10.csv\";\n \n \n DataReader dataObj = new DataReader(fileEdgeList, fileGtTrainingMatrix, fileGeTrainingMatrix);\n\n int reRun = 0;\n double T = 0.5;\n do {\n reRun += 1;\n\n EstimateParams paramObj = new EstimateParams(dataObj.edgeList, dataObj.driverSGAs, dataObj.targetDEGs, dataObj.driverSGATable, dataObj.targetDEGTable);\n InferDriverActivation actObj = new InferDriverActivation(paramObj.mapEdgeParam, paramObj.mapSGAParam,\n dataObj.targetDEGTable, dataObj.driverSGAs, dataObj.targetDEGs, dataObj.mapSgaDegs);\n\n\n actObj.thresholding(T);\n \n actObj.updateInferDriverTable( dataObj.driverSGATable);\n \n double change = actObj.compareMatrix(dataObj.driverSGATable);\n\n System.out.println(\"Current T is \" + T);\n System.out.println(\"Change is \" + change);\n System.out.println(\"This is the \" + reRun + \"th run\");\n if (change < 0.001 || T > 1) {\n System.out.println(\"Total times of run is \" + reRun + \". Final cut shreshold is \" + T);\n \n// dataObj.readInGtMatrix(fileGtTestingMatrix);\n dataObj.readInGeMatrix(fileGeTestingMatrix);\n InferDriverActivation actObjTesting = new InferDriverActivation(paramObj.mapEdgeParam, paramObj.mapSGAParam,\n dataObj.targetDEGTable, dataObj.driverSGAs, dataObj.targetDEGs, dataObj.mapSgaDegs);\n \n actObjTesting.outputInferActivation(fileInferDriver, dataObj.tumorNames);\n// dataObj.outputDriverSGATable(fileDriverSGATable); //output contains tumorName, since tumor name is defined in dataObj, so no need to pass in\n\n break; \n \n } else {\n dataObj.updateDriverSGATable(actObj.inferDriverTable);\n T += 0.05;\n \n }\n\n } while (true);\n }", "public static void main(String[] args) throws SQLException, IOException, EncryptedDocumentException,\n\t\t\tInvalidFormatException, ClassNotFoundException {\n\n\t\tString id_config = args[0];\n\t\tSystem.out.println(id_config);\n\n\t\t////\n\t\tExtractData ex = new ExtractData();\n\t\tDBControl db = new DBControl();\n\t\tMyLog myLog = new MyLog();\n\t\tDBControl.getConfig(id_config);\n\t\tSystem.out.println(\"READ data\");\n//\t\tSystem.out.println(\"tới phần gây cấn nhất insert \");\n//\t\tFile file = new File(\"F:\\\\NAM3_KY2\\\\DT Warhouse\\\\SCP\");\n\n//\t\tex.readValuesXLSX(file);\n\t\tSystem.out.println(\"........\");\n//\t\tex.insertValues(db.dataPath);\n//\t\tex.insertData();\n//\t\tex.extractData();\n\t\tDowloadFile dowFile = new DowloadFile();\n\t\tSystem.out.println(dowFile.dowloadFile());\n//\t\tSystem.out.println(\"tải hết file môn học ; và sinh viên :: \");\n//\t\tSystem.out.println(\"dow thành công \");\n//\t\tmyLog.wiriteLog(DBControl.dirLog);\n//\t\tSystem.out.println(\"Check send mail\");\n//\t\tdowFile.checkSendMail();\n\t\tString id_confi = args[1];\n\t\tSystem.out.println(\"OK xong cái Sinh viên :::\");\n\t\tDBControl.getConfig(id_confi);// 2: Môn học\n//\n\t\tSystem.out.println(dowFile.dowloadFile());\n//\t\tSystem.out.println(\"h tới môn học:::\");\n////\t\tdowFile.dowloadFile_MonHoc();\n//\t\tSystem.out.println(\"ok xong môn học::::\");\n//\n//\t\t//\n//\t\tDBControl.getConfig(3);// 3: Đăng ký\n//\n//\t\tSystem.out.println(dowFile.dowloadFile());\n//\t\tSystem.out.println(\"h tới đăng ký:::\");\n////\t\tdowFile.dowloadFile_MonHoc();\n//\t\tSystem.out.println(\"ok xong đăng ký::::\");\n//\n//\t\t//\n//\t\tDBControl.getConfig(4);// 4: Lớp Học\n//\n//\t\tSystem.out.println(dowFile.dowloadFile());\n//\t\tSystem.out.println(\"h tới lớp học:::\");\n////\t\tdowFile.dowloadFile_MonHoc();\n//\t\tSystem.out.println(\"ok xong lớp học::::\");\n//\n//\t\tSystem.out.println(\"h tới môn học:::\");\n////\t\tdowFile.dowloadFile_MonHoc();\n//\t\tSystem.out.println(\"ok xong môn học::::\");\n\t\t/////////////\n//\t\tDBControl.getConfig(5);\n//\t\tDate_Dim dd = new Date_Dim();\n//\t\tdd.sqlCreatTable();\n\t\tSystem.out.println(\"ok\");\n\n\t}", "public static void main(String[] args) {\n\t\tCreateClassificationData test = new CreateClassificationData(\"originalData/Data.txt\");\n\t}", "public static void main(String[] args) {\r\n\r\n\r\n\tCsvPipeDecoder csvdeco = new CsvPipeDecoder();\r\n\r\n//\tSystem.out.println(cvsde.getHasHeader());\r\n\r\n\tList<String> inputRecordLines = new ArrayList<String>();\r\n\r\n\tinputRecordLines.add(\"FIRST NAME|LAST NAME|STREET ADDRESS|CITY|STATE|ZIP\");\r\n\tinputRecordLines.add(\"Machi|Gulinski|5367 Eastway|Greendale|WI|53129\");\r\n\tinputRecordLines.add(\"Ola|Druzny|5467 Blue St.|Milwaukee|WI|53209\");\r\n\tinputRecordLines.add(\"Les|Klimek|919 St. Paul St.|Wauwatosa|WI|53217\");\r\n\r\n\tcsvdeco.setHasHeader(true);\r\n\r\n\tList< LinkedHashMap<String, String>> decodedData;\r\n\r\n\tdecodedData = csvdeco.decodeData(inputRecordLines);\r\n\r\n\r\n\tfor (LinkedHashMap r : decodedData) {\r\n\r\n\t Set<String> keys = r.keySet();\r\n\r\n\t for (String key : keys) {\r\n\r\n//\t String record = r.get(key).toString();\r\n\t\tSystem.out.println(key + \": \" + r.get(key).toString());\r\n\t }\r\n\r\n//\t System.out.println(r.keySet() + \": \" + r.entrySet());\r\n\t}\r\n\r\n }", "public static void main(String[] args) {\n try {\n convert(\"d:\\\\MLDATA\\\\adult.data\", \"d:\\\\MLDATA\\\\adult_standard.csv\", \"[ \\t]*,[ \\t]*\");\n convert(\"d:\\\\MLDATA\\\\adult.test\", \"d:\\\\MLDATA\\\\adult_standard_test.csv\", \"[ \\t]*,[ \\t]*\");\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n try{\n Properties props = new Properties();\n props.load(new FileInputStream(\"transform.properties\"));\n String outputFileName = props.getProperty(\"harpurOutput\");\n String inputFileName = props.getProperty(\"harpurInput\");\n projectId = props.getProperty(\"harpurProjectId\");\n CSVReader reader = new CSVReader(new FileReader(inputFileName));\n String [] nextLine;\n //Work no.,Work title,Version no.,Date,First line of version,Title of version,Source,Bib. details\n //0 Work no., 1 Work title,2 Version no.,3 Year, 4 Date,5 First line of version,6 Blank, 7 Title of version,8 Source,9 Page no, 10 Notes, 11 Series, 12 lines, 13 ms, 14 url\n String versTitle, workTitle=\"\";\n HashMap<String,String> currentWork = null;\n ArrayList<String> currentVersions = new ArrayList<String>();\n boolean firstLine = true;\n int rowNumber = 0;\n while ((nextLine = reader.readNext()) != null) {\n if (!firstLine){\n rowNumber++;\n // If this line represents a new work, create a work record\n if (!nextLine[0].equals(\"\")){\n // add list of versions accumulated so far to previous work and then reset\n if (currentVersions.size() != 0 && currentWork != null){\n StringBuffer cVers = new StringBuffer();\n cVers.append(\"[\");\n Iterator<String> it = currentVersions.iterator();\n while(it.hasNext()){\n cVers.append(\"\\\"\" + it.next() + \"\\\"\");\n if (it.hasNext()){\n cVers.append(\", \");\n }\n }\n cVers.append(\"]\");\n // for each in currentVersions add new ObjectId(currentVersions[i]) to cVers array\n currentWork.put(\"versions\", cVers.toString());\n currentVersions.clear();\n }\n currentWork = new HashMap<String,String>();\n currentWork.put(\"name\",nextLine[0]);\n workTitle = nextLine[1];\n currentWork.put(\"workTitle\", replaceStupidCharacters(workTitle));\n workList.add(currentWork);\n }\n //if (!nextLine[2].equals(\"\")){\n // Create a version (don't worry about issues, Harpur project only has to deal with one issue per version)\n HashMap<String,String> v = new HashMap<String,String>();\n String versionId = new ObjectId().toString();\n v.put(\"importRowNumber\", rowNumber + \"\");\n v.put(\"_id\", \"{ \\\"$oid\\\" : \\\"\" + versionId + \"\\\"}\");\n // push version id to currentVersions for later linking from work\n currentVersions.add(versionId);\n String hnum = nextLine[2];\n v.put(\"name\",hnum);\n v.put(\"date\", (!nextLine[4].equals(\"\")? nextLine[4] + \" \": \"\") + nextLine[3]);\n v.put(\"lines\", nextLine[11]);\n v.put(\"firstLine\", replaceStupidCharacters(nextLine[5]));\n versTitle = nextLine[6];\n if (versTitle.startsWith(\"^\")){\n versTitle = workTitle;\n } else if (versTitle.trim().equals(\"-\")){\n versTitle = \"Untitled\";\n }\n v.put(\"versionTitle\", replaceStupidCharacters(versTitle));\n versionList.add(v);\n \n //if (nextLine[2] == null || !nextLine[9].equals(\"\")){\n // Create an Artefact (part) for each version\n //8 Source,9 Page no, 10 Notes, 11 Series, 12 Version no, 13 lines, 14 ms, 15 url\n HashMap<String,String> a = new HashMap<String,String>();\n String artefactId = new ObjectId().toString();\n String source = nextLine[7].trim();\n String pageNumbers = nextLine[8].trim();\n a.put(\"importRowNumber\", rowNumber + \"\");\n a.put(\"_id\",\"{ \\\"$oid\\\" : \\\"\" + artefactId + \"\\\"}\");\n a.put(\"source\", source + (!pageNumbers.equals(\"\") ? \" p\" + pageNumbers: \"\"));\n a.put(\"pageNumbers\", pageNumbers);\n a.put(\"description\", nextLine[9]); // actually notes field\n a.put(\"series\", nextLine[10]);\n a.put(\"date\", (!nextLine[4].equals(\"\")? nextLine[4] + \" \": \"\") + nextLine[3]);\n artefactList.add(a);\n \n // add source,artefact id to artefact parts map\n if (!source.equals(\"\")){\n if (artefactParts.containsKey(source)){\n artefactParts.get(source).add(artefactId);\n } else {\n ArrayList<String> parts = new ArrayList<String>();\n parts.add(artefactId);\n artefactParts.put(source, parts);\n }\n }\n // Create temporary mappings that will be used later to match uploaded images with artefacts\n HashMap<String,String> t = new HashMap<String,String>();\n t.put(\"hnum\", hnum);\n t.put(\"artefact\",artefactId);\n t.put(\"version\", versionId);\n t.put(\"ms\", nextLine[12]);\n t.put(\"imageUrl\", nextLine[13]);\n mappingList.add(t);\n \n // generate link from version to artefact\n v.put(\"artefacts\", \"[\\\"\" + artefactId + \"\\\"]\");\n if (!nextLine[0].equals(\"\")){\n // composition event for each work\n HashMap<String,String> e = new HashMap<String,String>();\n e.put(\"artefacts\", \"[\\\"\" + artefactId + \"\\\"]\");\n e.put(\"startDate\", nextLine[3]);\n \n e.put(\"eventType\", \"composition\");\n e.put(\"eventtags\", \"[\\\"composition\\\"]\");\n \n e.put(\"name\", \"\\\\\\\"\" + replaceStupidCharacters(workTitle) + \"\\\\\\\"\");\n eventList.add(e);\n }\n //}\n //}\n } else {\n firstLine = false;\n }\n }\n // versions for last work\n if (currentVersions.size() != 0 && currentWork != null){\n StringBuffer cVers = new StringBuffer();\n cVers.append(\"[\");\n Iterator<String> it = currentVersions.iterator();\n while(it.hasNext()){\n cVers.append(\"\\\"\" + it.next() + \"\\\"\");\n if (it.hasNext()){\n cVers.append(\", \");\n }\n }\n cVers.append(\"]\");\n // for each in currentVersions add new ObjectId(currentVersions[i]) to cVers array\n currentWork.put(\"versions\", cVers.toString());\n }\n \n // iterate over artefact parts, if number of parts is more than 1, add an artefact to represent the source\n for (String k : artefactParts.keySet()) {\n ArrayList<String> parts = artefactParts.get(k);\n if (parts.size() > 1){\n String artefactsString = \"[\";\n for (int j=0; j<parts.size();j++){\n artefactsString += \"\\\"\" + parts.get(j) + \"\\\"\";\n if (j < (parts.size() -1)) {\n artefactsString += \",\";\n }\n }\n artefactsString += \"]\";\n HashMap<String,String> a = new HashMap<String,String>();\n String artefactId = new ObjectId().toString();\n a.put(\"_id\",\"{ \\\"$oid\\\" : \\\"\" + artefactId + \"\\\"}\");\n a.put(\"source\",k);\n a.put(\"artefacts\", artefactsString);\n artefactList.add(a);\n }\n }\n // write works to file\n File outputFile = new File(outputFileName + WORK_COLLECTION + \".json\");\n outputFile.delete();\n outputFile = new File(outputFileName + ARTEFACT_COLLECTION + \".json\");\n outputFile.delete();\n outputFile = new File(outputFileName + VERSION_COLLECTION + \".json\");\n outputFile.delete();\n outputFile = new File(outputFileName + MAPPING_COLLECTION + \".json\");\n outputFile.delete();\n outputFile = new File(outputFileName + EVENT_COLLECTION + \".json\");\n outputFile.delete();\n \n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(outputFileName + WORK_COLLECTION + \".json\"), \"UTF-8\"));\n for (HashMap<String,String> w : workList) {\n bw.write(mapToString(w) + \"\\n\");\n }\n bw.close();\n \n bw = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(outputFileName + VERSION_COLLECTION + \".json\"), \"UTF-8\"));\n for (HashMap<String,String> v : versionList) {\n bw.write(mapToString(v) + \"\\n\");\n }\n bw.close();\n \n bw = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(outputFileName + ARTEFACT_COLLECTION + \".json\"), \"UTF-8\"));\n for (HashMap<String,String> a : artefactList) {\n bw.write(mapToString(a) + \"\\n\");\n }\n bw.close();\n \n bw = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(outputFileName + MAPPING_COLLECTION + \".json\"), \"UTF-8\"));\n for (HashMap<String,String> t : mappingList) {\n bw.write(mapToString(t) + \"\\n\");\n }\n bw.close();\n \n bw = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(outputFileName + EVENT_COLLECTION + \".json\"), \"UTF-8\"));\n for (HashMap<String,String> e : eventList) {\n bw.write(mapToString(e) + \"\\n\");\n }\n bw.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t\tString filename = \"/home/niran/eclipse-workspace/DataMining/AggregateDiscretizeAndSample/src/Input.csv\";\n\t\tString outFilename = \"/home/niran/eclipse-workspace/DataMining/AggregateDiscretizeAndSample/Output.csv\";\n\t\tString delimiter = \",\";\n\t\tCSV csv = new CSV(filename, delimiter);\n\t\tcsv.readCSV();\n\t\tcsv.printCSV();\n\t\tAggregate a = new Aggregate(csv);\n\t\tcsv = a.doAggregate(1);\n\t\tcsv.printCSV();\n\t\tDiscretize d = new Discretize(csv);\n\t\tcsv = d.doDiscretize(1);\n\t\tcsv.printCSV();\n\t\tStratifiedSampling ss = new StratifiedSampling(csv);\n\t\tcsv = ss.doSample();\n\t\tcsv.printCSV();\n\t\tcsv.writeCSV(outFilename);\n\t}", "public static void main(String[] args) throws IOException, SQLException {\n\t\treadFile rf = new readFile();\n\t\trf.create();\n\t\trf.readData();\n\t\t//String sql = \"select * from examSelect\";\n\t\t//rf.select(sql);\n//\t\trf.test();\n\t\t//rf.readItem();\n\t}", "private void downloadUCIData() throws Exception {\r\n\r\n String query = \"\";\r\n String strTableHeading = \"\";\r\n int numTableColumns = 89;\r\n //boolean overwrite = false; // Flag to avoid SQL calls if we are okay with using existing files\r\n sqlConnector.outSqlToCSV(query, strTableHeading, numTableColumns, false);\r\n\r\n /*\r\n if (baseDir.exists()) return; //Data already exists, don't download it again\r\n\r\n String url = \"https://archive.ics.uci.edu/ml/machine-learning-databases/synthetic_control-mld/synthetic_control.data\";\r\n String data = IOUtils.toString(new URL(url));\r\n\r\n String[] lines = data.split(\"\\n\");\r\n\r\n //Create directories\r\n baseDir.mkdir();\r\n baseTrainDir.mkdir();\r\n featuresDirTrain.mkdir();\r\n labelsDirTrain.mkdir();\r\n baseTestDir.mkdir();\r\n featuresDirTest.mkdir();\r\n labelsDirTest.mkdir();\r\n\r\n int lineCount = 0;\r\n List<Pair<String, Integer>> contentAndLabels = new ArrayList<>();\r\n for (String line : lines) {\r\n String transposed = line.replaceAll(\" +\", \"\\n\");\r\n\r\n //Labels: first 100 examples (lines) are label 0, second 100 examples are label 1, and so on\r\n contentAndLabels.add(new Pair<>(transposed, lineCount++ / 100));\r\n }\r\n\r\n //Randomize and do a train/test split:\r\n Collections.shuffle(contentAndLabels, new Random(12345));\r\n\r\n int nTrain = 450; //75% train, 25% test\r\n int trainCount = 0;\r\n int testCount = 0;\r\n for (Pair<String, Integer> p : contentAndLabels) {\r\n //Write output in a format we can read, in the appropriate locations\r\n File outPathFeatures;\r\n File outPathLabels;\r\n if (trainCount < nTrain) {\r\n outPathFeatures = new File(featuresDirTrain, trainCount + \".csv\");\r\n outPathLabels = new File(labelsDirTrain, trainCount + \".csv\");\r\n trainCount++;\r\n } else {\r\n outPathFeatures = new File(featuresDirTest, testCount + \".csv\");\r\n outPathLabels = new File(labelsDirTest, testCount + \".csv\");\r\n testCount++;\r\n }\r\n\r\n FileUtils.writeStringToFile(outPathFeatures, p.getFirst());\r\n FileUtils.writeStringToFile(outPathLabels, p.getSecond().toString());\r\n }\r\n */\r\n }", "public static void main(String[] args) {\n\t\trelation city= new relation(\"city.db\");\n\t\trelation country =new relation(\"country.db\");\n\t\t//Join city and country\n\t\tjoin newjoin= new join(city, country);\n\t\tnewjoin.addObserver(new select()); \n\t\tnewjoin.Open();\n\t\tSystem.out.print(\"Cities:\"+\"\\n\");\n\t\t//Select the required tuples\n\t\t while (true) {\n\t\t\t tuple record = newjoin.GetNext(); \n\t\t\t if (record==null) {\n\t\t\t break;\n\t\t\t }\n\t\t\t newjoin.GotoSelect();\n\t\t}\n\t\tnewjoin.Close();\n\t}", "public static void main(String[] args) {\r\n // NeoLoaderPlugin.debug = true;\r\n if (args.length < 1)\r\n args = new String[] {\"amanzi/network.txt\"};\r\n EmbeddedGraphDatabase neo = new EmbeddedGraphDatabase(\"../../testing/neo\");\r\n try {\r\n for (String filename : args) {\r\n long startTime = System.currentTimeMillis();\r\n NetworkLoader networkLoader = new NetworkLoader(neo, filename);\r\n networkLoader.setup();\r\n networkLoader.setLimit(1000);\r\n networkLoader.setCommitSize(1000);\r\n networkLoader.run(null);\r\n networkLoader.printStats(true);\r\n networkLoader.info(\"Ran test in \" + (System.currentTimeMillis() - startTime) / 1000.0 + \"s\");\r\n }\r\n } catch (IOException e) {\r\n System.err.println(\"Failed to load network: \" + e);\r\n e.printStackTrace(System.err);\r\n } finally {\r\n neo.shutdown();\r\n }\r\n }", "private void readFile() {\r\n\t\tcsvEntrys = new ArrayList<>();\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(filepath)))) {\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tif (!line.contains(\"id\")) {\r\n\t\t\t\t\tcsvEntrys.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws Exception {\r\n \r\n \t\tCDCollection collection = new CDCollection();\r\n\t\r\n \t\tBufferedReader br = new BufferedReader(new FileReader(\"E:\\\\Reading Writing Labs\\\\bin\\\\textfile.txt\"));\r\n \tString line = null;\r\n \twhile ((line = br.readLine()) != null) {\r\n\t // you can use \" \" to split where white space is\r\n\t String[] values = line.split(\"-\");\r\n\t // for (String str : values) {\r\n\t // System.out.println(str);\r\n\t //}\r\n\t collection.addCD(values[0], values[1], Double.parseDouble(values[2]) , Integer.parseInt(values[3]));\r\n\t }\r\n\t br.close();\r\n\r\n System.out.println (collection);\r\n \r\n }", "public void splitColsDataFiles() throws IOException, InterruptedException{\n String mkdir_command = \"mkdir models/temp\";\n Process mkdir_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", mkdir_command});\n mkdir_process.waitFor();\n \n String countColsCommand = \"head -n1 \" + dataPathTrain + \" | tr -cd \\\",\\\" | wc -c\";\n Process countCols_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", countColsCommand});\n countCols_process.waitFor();\n BufferedReader br = new BufferedReader(new InputStreamReader(countCols_process.getInputStream()));\n String numFeaturesS = br.readLine();\n int numFeatures = Integer.parseInt(numFeaturesS);\n \n for(int i=1;i<=numFeatures;i++){\n String cutColTr_command = \"cut -d',' -f\" + i + \" \" + dataPathTrain + \" > models/temp/tr_\" + i + \".csv\";\n Process cutColTr_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", cutColTr_command});\n cutColTr_process.waitFor();\n String cutColTe_command = \"cut -d',' -f\" + i + \" \" + dataPathTest + \" > models/temp/te_\" + i + \".csv\";\n Process cutColTe_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", cutColTe_command});\n cutColTe_process.waitFor();\n }\n int targetsIndex = numFeatures + 1;\n String cutColTr_command = \"cut -d',' -f\" + targetsIndex + \" \" + dataPathTrain + \" > models/temp/tr_targets.csv\";\n Process cutColTr_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", cutColTr_command});\n cutColTr_process.waitFor();\n String cutColTe_command = \"cut -d',' -f\" + targetsIndex + \" \" + dataPathTest + \" > models/temp/te_targets.csv\";\n Process cutColTe_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", cutColTe_command});\n cutColTe_process.waitFor();\n }", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "public static void main(String args[]) {\n CsvGrader mycg = new CsvGrader();\n //\tmycg.generateGradeDistCutTime(\"answers.csv\",\"answers.properties\",\"questionLocations.txt\",\"Event1Data\",60);\n //mycg.generateTrajectoryDistances(\"Event1Data60.csv\", \"questionLocations.txt\", \"distanceArea\", 60);\n //mycg.generateTrajectoryDistancesAndTime(\"Event1Data60.csv\", \"questionLocations.txt\", \"SURFACE\", 60);\n //int dbin = 20;\n //int tbin = 1800;\n //mycg.generateSurfacePercentages(\"SURFACE.csv\",\"s\"+dbin+\"x\"+tbin+\"\",dbin,tbin);\n //mycg.generateTrajectorySpeeds(\"Event1Data60.csv\", \"trajspeeds\");\n\n //mycg.generateAverageSpeeds(\"trajectory_points.csv\",\"averageSpeeds\");\n //mycg.generateTimeOfFirstQuestion(\"Event1Data60.csv\",\"firstQuestionTimes\");\n //mycg.generateRadarData(\"Event1Data60.csv\",\"trajectory_points.csv\",\"questionLocations.txt\",\"radarData\",60,1.92,2500);\n //mycg.generateAverageDistanceTraveledPerQuestion(\"Event1Data60.csv\",\"trajectory_points.csv\",\"AverageDistanceTraveledPerQuestion3\",1377334800000l);\n //mycg.printNumberOfTeamTypes(\"Event1Data60.csv\", \"trajectory_points.csv\", 1.92, 2500);\n //mycg.printNumberOfAnswerTypes(\"Event1Data60.csv\", \"trajectory_points.csv\",\"questionLocations.txt\",60, 1.92, 2500);\n /*for(int i= 1; i < 5; i++) {\n mycg.generateTrajectoryDistancesAndTimeForAnswerType(\"Event1Data60.csv\", \"questionLocations.txt\", \"scatter\", 60, i);\n }*/\n }", "public static void main(String[] args) {\r\n try {\r\n DatabaseController databaseController = new DatabaseControllerSQLiteImpl(\"C:\\\\TEMP\\\\TimeCloud2\");\r\n EpisodeDAO episodeDao = new EpisodeDaoImpl(databaseController);\r\n TransferDAO transferDao = new TransferDaoImpl(databaseController);\r\n RequestDAO requestDao = new RequestDaoImpl(databaseController);\r\n EpisodeController episodeController = new EpisodeControllerImpl(episodeDao);\r\n TransferController transferController = new TransferControllerImpl(transferDao);\r\n RequestController requestController = new RequestControllerImpl(requestDao);\r\n EmergencyDataFileController emergencyDataFileController = new EmergencyDataFileControllerImpl(episodeDao, transferDao);\r\n CodDataFileController codDataFileController = new CodDataFileControllerImpl(requestDao);\r\n emergencyDataFileController.addObserver(episodeController);\r\n emergencyDataFileController.addObserver(transferController);\r\n codDataFileController.addObserver(requestController);\r\n \r\n String path = \"D:\\\\Pieter Van Eechout\\\\Dropbox\\\\Database voor data masterproef\\\\Kwantitatief onderzoek masterproef\\\\Data spoed\\\\\";\r\n String emergencyFiles[] = {\"Opnames op periode 03.03-10.03.xls\",\"Opnames op periode 10.03 -17.03.xls\",\"Opnames op periode 17.02 -03.04.xls\",\"Opnames op periode 17.03 tot 02.04.xls\",\"Opnames op periode 07.03 -22.04.xls\"};\r\n String codFiles[] = {\"Spoed wachten op COD versie ACMM_2014jantotapril.xls\"};\r\n \r\n emergencyDataFileController.readEmergencyDataFile(path, emergencyFiles);\r\n codDataFileController.readCodDataFile(path, codFiles);\r\n \r\n \r\n \r\n } catch (Exception ex) {//here we do want to catch the all\r\n Logger.getLogger(TimeCloud.class.getName()).log(Level.SEVERE, null, ex);\r\n System.err.println(ex.getMessage());\r\n }\r\n }", "public static void main(String[] args) throws Exception {\n String inputLine = \"\";\n try {\n Scanner sc = new Scanner(new File(args[0]));\n while (sc.hasNextLine()) {\n inputLine = sc.nextLine();\n if (inputLine.toLowerCase().equals(\"report client\")) {\n List<Client> clients = clientBLL.findAllClients();\n } else if (inputLine.toLowerCase().equals(\"report product\")) {\n List<Product> products = productBLL.findAllProducts();\n } else if (inputLine.toLowerCase().equals(\"report order\")) {\n List<Order> orders = orderBLL.findAllOrders();\n List<OrderItem> orderItems = orderItemBll.findAllOrders();\n } else {\n String[] command = inputLine.split(\":\");\n if (command.length != 2) {\n throw new IOException(\"Wrong input format!\");\n }\n if (command[0].toLowerCase().equals(\"insert client\")) {\n String[] clientDetails = command[1].split(\",\");\n if (clientDetails.length != 2) {\n throw new IOException(\"Too many client details! Only the name and address please!\");\n }\n Client c = new Client(clientDetails[0], clientDetails[1]);\n clientBLL.insertClient(c);\n } else if (command[0].toLowerCase().equals(\"delete client\")) {\n String[] clientDetails = command[1].split(\",\");\n if (clientDetails.length < 1 || clientDetails.length > 2) {\n throw new IOException(\"Wrong client format!\");\n }\n if (clientDetails.length == 2) {\n Client c = new Client(clientDetails[0], clientDetails[1]);\n clientBLL.deleteClient(c);\n } else {\n Client c = new Client(clientDetails[0]);\n clientBLL.deleteClientAfterName(c);\n }\n } else if (command[0].toLowerCase().equals(\"delete product\")) {\n String productDetails = command[1];\n Product p = new Product(productDetails);\n productBLL.deleteProduct(p);\n\n } else if (command[0].toLowerCase().equals(\"insert product\")) {\n String[] productDetails = command[1].split(\",\");\n if (productDetails.length != 3) {\n throw new IOException(\"Too many/few product details! Only the name and address please!\");\n }\n for (int i = 0; i < productDetails[1].length(); i++) {\n if (productDetails[1].charAt(i) == ' ')\n productDetails[1] = new StringBuilder(productDetails[1]).deleteCharAt(i).toString();\n }\n int quantity = Integer.parseInt(productDetails[1]);\n double price = Double.parseDouble(productDetails[2]);\n Product p = new Product(productDetails[0], price, quantity);\n productBLL.insertProduct(p);\n\n } else if (command[0].toLowerCase().equals(\"order\")) {\n String[] orderDetails = command[1].split(\",\");\n if (orderDetails.length != 3) {\n throw new IOException(\"Insufficient arguments!\");\n }\n for (int i = 0; i < orderDetails[2].length(); i++) {\n if (orderDetails[2].charAt(i) == ' ')\n orderDetails[2] = new StringBuilder(orderDetails[2]).deleteCharAt(i).toString();\n }\n int quantity = Integer.parseInt(orderDetails[2]);\n Product p = productBLL.findProductByName(orderDetails[1]);\n OrderItem oi = new OrderItem(p.getIdProduct(), quantity);\n Client c = clientBLL.findClientByName(orderDetails[0]);\n Order o = new Order();\n double price;\n int idOrderItem;\n if (p.getQuantity() < quantity) {\n orderBLL.insufficientQuantity(c.getName(), p.getName(), p.getQuantity(), quantity);\n } else {\n oi = orderItemBll.insertOrderItem(oi);\n idOrderItem = orderItemBll.findID(oi);\n o.setIdClient(c.getIdClient());\n o.setOrderItem(idOrderItem);\n o = orderBLL.insertOrder(o);\n price = p.getPrice() * quantity;\n orderBLL.generateBill(o, c.getName(), p.getName(), price, quantity);\n p.setQuantity(- quantity);\n if (p.getQuantity() == 0) {\n productBLL.deleteProduct(p);\n }\n productBLL.updateProduct(p);\n }\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static void main(String[] args) {\n String dictionaryPath = \"/Users/johtani/tmp/dictionary/unidic-mecab-2.1.2_src\";\n // UniDic 2.3.0\n //String dictionaryPath = \"/Users/johtani/tmp/dictionary/unidic-cwj-2.3.0\";\n CsvParserSettings settings = new CsvParserSettings();\n CsvFormat format = new CsvFormat();\n format.setComment('\\0');\n settings.setFormat(format);\n CsvParser parser = new CsvParser(settings);\n\n try (DirectoryStream<Path> ds = Files.newDirectoryStream(Paths.get(dictionaryPath), \"*.csv\")){\n for (Path file : ds) {\n checkFile(parser, file);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n System.out.println(\"Finished!\");\n }", "@Test\n\tpublic void testPopulateCustomerDataset1() throws CustomerException, LogHandlerException{\n\t\tcustomers = LogHandler.populateCustomerDataset(correctFile1);\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello\");\n\t\t//ADDing comment 1 in testRebase branch\n\t\t//Adding commit2 in testRebase branch\n\t\t\n\t\t\n\t\t//Add commit 1.1 in master branch\n\n\t}", "public static void main(String[] args) {\n\t\tinitializeRe_DB initialer = new initializeRe_DB();\n\t\tinitialer.insertTOproject();\n\t\tinitialer.insertToresearcher();\n\t\tinitialer.insertTotask();\n\t}", "public static void main(String[] args) {\n DbUtil.INSTANCE.getDb();\n DbUtil.INSTANCE.recreateSchema();\n DbUtil.INSTANCE.insertDummyData();\n }", "public static void main(String args[]){\n\t\t//parameters that can be modified\n\t\tint topicNum=100;\n\t\tString sourceID=\"1864252027/\";\n\t\tint subnetworkSize=1100;\n\t\tString dir=\"sampleTest/\"+sourceID+subnetworkSize+\"/\";\n\t\tString fileName=\"ldaInput.txt\";\n\t\tint iterationNum=1000;\n\t\t\n\t\t//read training data from file\n\t\tSystem.out.println(\"loading files\");\n\t\tGraph network=GraphOperator.getFromFile(dir+\"sample.network\");\n\t\tHashMap<String,Message>trainingStatusMap=MessageListOperator.readMessageFromFile(dir+\"trainingSet.status\");\n\t\tHashMap<String,Message>commentMap=MessageListOperator.readMessageFromFile(dir+\"samplePreDoc.comment\");\n\t\t\n\t\tDocumentAssign.relateMessageToNetwork(network,trainingStatusMap,commentMap);\n\t\tDocumentAssign.optimizedAssign(network,dir,fileName);\n\t\t\n\t\tSystem.out.println(\"Training\");\t\n\t\t//training with Optimized assignment\n\t\tLDA_InfluMax.estimationFromScratch(50/((double)topicNum),0.01,topicNum,\n\t\t\t\titerationNum,iterationNum/2,dir,fileName,50);\n\t}", "private void arrangeData() {\r\n\t\ttry {\r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\"), literalSdf = new SimpleDateFormat(\"EEE MMM dd HH:mm:ss zzz yyyy\", Locale.ENGLISH);\r\n\t\t\tList<Csv> list = HibernateUtil.readAllCsv();\r\n\t\t\tfor (Csv csv : list) {\r\n\t\t\t\t// Se non esiste il progetto lo creo\r\n\t\t\t\tProject pForName = HibernateUtil.readProjectForName(csv.getProgettoPolarion());\r\n\t\t\t\tif (pForName == null) {\r\n\t\t\t\t\tpForName = new Project();\r\n\t\t\t\t\tpForName.setNome(csv.getProgettoPolarion());\r\n\t\t\t\t\tHibernateUtil.save(pForName);\r\n\t\t\t\t}\r\n\t\t\t\tRelease releaseDiProgetto = null;\r\n\t\t\t\tif (csv.getColonnaB() != null && csv.getColonnaB().length() > 0) {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaB\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * idReleaseDiProgetto; titleReleaseDiProgetto;\r\n\t\t\t\t\t * priorityReleaseDiProgetto; severityReleaseDiProgetto;\r\n\t\t\t\t\t * progettoPolarion; versione; link; release;\r\n\t\t\t\t\t * dataCreazioneReleaseDiProgetto;\r\n\t\t\t\t\t * dataUltimoAggiornamentoReleaseDP\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString[] bElements = csv.getColonnaB().split(Pattern.quote(\";\"));\r\n\t\t\t\t\treleaseDiProgetto = HibernateUtil.readRelease(bElements[0].trim());\r\n\t\t\t\t\tboolean toUpdate = false, toSave = false;\r\n\r\n\t\t\t\t\tif (releaseDiProgetto == null) {\r\n\t\t\t\t\t\treleaseDiProgetto = new Release();\r\n\t\t\t\t\t\treleaseDiProgetto.setIdPolarion(bElements[0].trim());\r\n\t\t\t\t\t\ttoSave = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (releaseDiProgetto.getTitolo() == null\r\n\t\t\t\t\t\t\t|| !releaseDiProgetto.getTitolo().equals(bElements[1].trim())) {\r\n\t\t\t\t\t\treleaseDiProgetto.setTitolo(bElements[1].trim());\r\n\t\t\t\t\t\tif (!toSave)\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[2] != null && bElements[2].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getPriority() != null\r\n\t\t\t\t\t\t\t\t&& releaseDiProgetto.getPriority().getValore() != Float.parseFloat(bElements[2].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\tif (toSave || toUpdate)\r\n\t\t\t\t\t\t\treleaseDiProgetto\r\n\t\t\t\t\t\t\t\t\t.setPriority(HibernateUtil.readPriority(Float.parseFloat(bElements[2].trim())));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[3] != null && bElements[3].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getSeverity() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getSeverity().getNome().equals(bElements[3].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\tif (toSave || toUpdate)\r\n\t\t\t\t\t\t\treleaseDiProgetto.setSeverity(HibernateUtil.readSeverity(bElements[3].trim()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\treleaseDiProgetto.setProject(pForName);\r\n\t\t\t\t\tif (bElements[5] != null && bElements[5].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getVersione() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getVersione().equals(bElements[5].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setVersione(bElements[5].trim());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[6] != null && bElements[6].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getLink() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getLink().equals(bElements[6].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setLink(bElements[6].trim());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[7] != null && bElements[7].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getType() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getType().equals(bElements[6].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setType(bElements[7].trim());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[8] != null && bElements[8].trim().length() > 0) {\r\n\t\t\t\t\t\tDate dataCreazione = sdf.parse(bElements[8].trim());\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getDataCreazione() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getDataCreazione().equals(dataCreazione))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setDataCreazione(dataCreazione);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[9] != null && bElements[9].trim().length() > 0) {\r\n\t\t\t\t\t\tDate dataUltimoAggiornamento = sdf.parse(bElements[9].trim());\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getDataUpdate() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getDataUpdate().equals(dataUltimoAggiornamento))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setDataUpdate(dataUltimoAggiornamento);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (toSave)\r\n\t\t\t\t\t\tHibernateUtil.save(releaseDiProgetto);\r\n\t\t\t\t\telse if (toUpdate)\r\n\t\t\t\t\t\tHibernateUtil.update(Release.class, releaseDiProgetto);\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaC() != null && csv.getColonnaC().length() > 0) {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaC\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoRelease\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString regex = Pattern.quote(\"(\") + \"(.*?)\" + Pattern.quote(\")\");\r\n\t\t\t\t\tPattern pattern = Pattern.compile(regex);\r\n\t\t\t\t\tMatcher matcher = pattern.matcher(csv.getColonnaC());\r\n\t\t\t\t\twhile (matcher.find()) {\r\n\t\t\t\t\t\tString[] history = matcher.group(1).split(Pattern.quote(\"^\"));\r\n\r\n\t\t\t\t\t\tStatus status = null;\r\n\t\t\t\t\t\tif (history.length > 0)\r\n\t\t\t\t\t\t\tstatus = HibernateUtil.readStatus(history[0].trim());\r\n\t\t\t\t\t\tDate dataUpdate = null;\r\n\t\t\t\t\t\tif (history.length > 1)\r\n\t\t\t\t\t\t\tdataUpdate = sdf.parse(history[1]);\r\n\t\t\t\t\t\tUser user = null;\r\n\t\t\t\t\t\tif (history.length > 2)\r\n\t\t\t\t\t\t\tuser = HibernateUtil.readUser(history[2].trim());\r\n\r\n\t\t\t\t\t\tReleaseHistory rHistory = HibernateUtil.readReleaseHistory(releaseDiProgetto, status,\r\n\t\t\t\t\t\t\t\tdataUpdate, user);\r\n\t\t\t\t\t\tif (rHistory == null) {\r\n\t\t\t\t\t\t\trHistory = new ReleaseHistory();\r\n\t\t\t\t\t\t\trHistory.setRelease(releaseDiProgetto);\r\n\t\t\t\t\t\t\trHistory.setStatus(status);\r\n\t\t\t\t\t\t\trHistory.setDataUpdate(dataUpdate);\r\n\t\t\t\t\t\t\trHistory.setUser(user);\r\n\t\t\t\t\t\t\tHibernateUtil.save(rHistory);\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 (csv.getColonnaD() != null && csv.getColonnaD().length() > 0) {\r\n\t\t\t\t\t// TODO D\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaD\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoSviluppo\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaE() != null && csv.getColonnaE().length() > 0) {\r\n\t\t\t\t\t// TODO E\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaE\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoMev\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaF() != null && csv.getColonnaF().length() > 0) {\r\n\t\t\t\t\t// TODO F\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaF\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoDocumento\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaG() != null && csv.getColonnaG().length() > 0) {\r\n\t\t\t\t\t// TODO G\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaG\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoRds\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaH() != null && csv.getColonnaH().length() > 0) {\r\n\t\t\t\t\t// TODO H\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaH\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoDefect\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaI() != null && csv.getColonnaI().length() > 0) {\r\n\t\t\t\t\t// TODO I\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaI\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoAnomalia\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tReleaseIt releaseIT = null;\r\n\t\t\t\tif (csv.getColonnaJ() != null && csv.getColonnaJ().length() > 0) {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaJ\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoReleaseIt\r\n\t\t\t\t\t */\r\n\t\t\t\t\tboolean hasLinkedItem = false;\r\n\t\t\t\t\tif (csv.getColonnaJ().startsWith(\"<\") && csv.getColonnaJ().endsWith(\">\")) {\r\n\t\t\t\t\t\tcsv.setColonnaJ(csv.getColonnaJ().substring(1, csv.getColonnaJ().length() - 1));\r\n\t\t\t\t\t\thasLinkedItem = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString[] elements = csv.getColonnaJ().split(Pattern.quote(\"|\"));\r\n\t\t\t\t\tif (hasLinkedItem) {\r\n\t\t\t\t\t\tLinkedItemId lIId = new LinkedItemId();\r\n\t\t\t\t\t\tlIId.setIdPolarionPadre(releaseDiProgetto.getIdPolarion());\r\n\t\t\t\t\t\tlIId.setIdPolarionFiglio(elements[1]);\r\n\t\t\t\t\t\tLinkedItem li = HibernateUtil.readLinkedItem(lIId);\r\n\t\t\t\t\t\tif (li == null) {\r\n\t\t\t\t\t\t\tli = new LinkedItem();\r\n\t\t\t\t\t\t\tli.setId(lIId);\r\n\t\t\t\t\t\t\tHibernateUtil.save(li);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treleaseIT = HibernateUtil.readReleaseIT(elements[1].trim());\r\n\t\t\t\t\tboolean toSave = false;\r\n\t\t\t\t\tif (releaseIT == null || !releaseIT.getTitolo().equals(elements[2].trim())) {\r\n\t\t\t\t\t\tif (releaseIT == null) {\r\n\t\t\t\t\t\t\treleaseIT = new ReleaseIt();\r\n\t\t\t\t\t\t\treleaseIT.setIdPolarion(elements[1].trim());\r\n\t\t\t\t\t\t\ttoSave = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treleaseIT.setTitolo(elements[2].trim());\r\n\t\t\t\t\t\tif (elements[3] != null && elements[3].trim().length() > 0){\r\n\t\t\t\t\t\t\tDate d = null;\r\n\t\t\t\t\t\t\ttry{ \r\n\t\t\t\t\t\t\t\td = sdf.parse(elements[3].trim());\r\n\t\t\t\t\t\t\t}catch(ParseException pe){\r\n\t\t\t\t\t\t\t\td = literalSdf.parse(elements[3].trim());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treleaseIT.setDataInizio(d);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (elements[4] != null && elements[4].trim().length() > 0){\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\treleaseIT.setDataFine(sdf.parse(elements[4].trim()));\r\n\t\t\t\t\t\t\t}catch(ParseException pe){\r\n\t\t\t\t\t\t\t\treleaseIT.setDataFine(literalSdf.parse(elements[4].trim()));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (toSave)\r\n\t\t\t\t\t\t\tHibernateUtil.save(releaseIT);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tHibernateUtil.update(ReleaseIt.class, releaseIT);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (elements.length > 5 && elements[5] != null && elements[5].trim().length() > 0) {\r\n\t\t\t\t\t\tString regex = Pattern.quote(\"(\") + \"(.*?)\" + Pattern.quote(\")\");\r\n\t\t\t\t\t\tPattern pattern = Pattern.compile(regex);\r\n\t\t\t\t\t\tMatcher matcher = pattern.matcher(elements[5].trim());\r\n\t\t\t\t\t\tboolean isFirstRow = true;\r\n\t\t\t\t\t\t// formato sdf per Thu Feb 18 00:00:00 CET 2016\r\n\t\t\t\t\t\twhile (matcher.find()) {\r\n\t\t\t\t\t\t\tString[] history = matcher.group(1).split(Pattern.quote(\"^\"));\r\n\t\t\t\t\t\t\tStatus status = HibernateUtil.readStatus(history[0].trim());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tDate dataUpdate = null;\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\tdataUpdate = sdf.parse(history[1]);\r\n\t\t\t\t\t\t\t}catch(ParseException pe){\r\n\t\t\t\t\t\t\t\tdataUpdate = literalSdf.parse(history[1]);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (isFirstRow && releaseIT.getDataCreazione() == null) {\r\n\t\t\t\t\t\t\t\treleaseIT.setDataCreazione(dataUpdate);\r\n\t\t\t\t\t\t\t\tHibernateUtil.update(ReleaseIt.class, releaseIT);\r\n\t\t\t\t\t\t\t\tisFirstRow = false;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tReleaseitHistory rItHistory = null;\r\n\t\t\t\t\t\t\tif (history.length > 2) {\r\n\t\t\t\t\t\t\t\tUser user = HibernateUtil.readUser(history[2].trim());\r\n\t\t\t\t\t\t\t\trItHistory = HibernateUtil.readReleaseItHistory(releaseIT, status, dataUpdate,\r\n\t\t\t\t\t\t\t\t\t\tuser);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (rItHistory == null) {\r\n\t\t\t\t\t\t\t\trItHistory = new ReleaseitHistory();\r\n\t\t\t\t\t\t\t\trItHistory.setReleaseIt(releaseIT);\r\n\t\t\t\t\t\t\t\trItHistory.setStatus(status);\r\n\t\t\t\t\t\t\t\trItHistory.setDataUpdate(dataUpdate);\r\n\t\t\t\t\t\t\t\tHibernateUtil.save(rItHistory);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaK() != null && csv.getColonnaK().length() > 0) {\r\n\t\t\t\t\t// TODO K\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaK\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * taskInfo\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaL() != null && csv.getColonnaL().length() > 0) {\r\n\t\t\t\t\t// TODO L\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaL\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * workRecordInfo\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaM() != null && csv.getColonnaM().length() > 0) {\r\n\t\t\t\t\t// TODO M\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaM\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * infoTestcase\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaN() != null && csv.getColonnaN().length() > 0) {\r\n\t\t\t\t\t// TODO N\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaN\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * infoChecklist\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.SEVERE, null, e);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tTestDBOperations ob=new TestDBOperations();\n\t\tob.insertRecord();\n\t\tob.fetchRecords();\n\t}", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\t\n\t\tCategoria cat1 = new Categoria(null, \"informatica\");\n\t\tCategoria cat2 = new Categoria(null, \"escritorio\");\n\t\t\n\t\tProduto p1 = new Produto(null, \"Computador\", 2000.00);\n\t\tProduto p2 = new Produto(null, \"Impressora\", 800.00);\n\t\tProduto p3 = new Produto(null, \"Mouse\", 80.00);\n\t\t\n\t\tcat1.getProdutos().addAll(java.util.Arrays.asList( p1,p2,p3 )); \n\t\tcat2.getProdutos().addAll(java.util.Arrays.asList(p2));\n\t\t\n\t\tp1.getCategorias().addAll(Arrays.asList(cat1));\n\t\tp2.getCategorias().addAll(Arrays.asList(cat1,cat2));\n\t\tp3.getCategorias().addAll(Arrays.asList(cat1));\n\t\t\n\t\tEstado est1 = new Estado(\"Minas Gerais\");\n\t\tEstado est2 = new Estado(\"São Paulo\");\n\t\t\n\t\tCidade c1 = new Cidade(\"Uberlandia\",est1);\n\t\tCidade c2 = new Cidade(\"São Paulo\",est2);\n\t\tCidade c3 = new Cidade(\"Campinas\",est2);\n\t\t\n\t\test1.getCidades().addAll(Arrays.asList(c1));\n\t\test2.getCidades().addAll(Arrays.asList(c2,c3));\n\t\t\n\t\trepoCat.saveAll(Arrays.asList(cat1,cat2));\n\t\trepoProd.saveAll(Arrays.asList(p1,p2,p3));\n\t\t\n\t\trepoEst.saveAll(Arrays.asList(est1,est2));\n\t\trepoCid.saveAll(Arrays.asList(c1,c2,c3));\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tfileName = args[0];\n\t\t//set up file name for the data:\n\t\ttry {\n\t\t\treader = new Scanner(new File(args[1]));\n\t\t\t\n\t\t\t//create a new program, then parse, print, and execute:\n\t\t\tProgram p = new Program();\n\t\t\tp.parse();\n\t\t\tp.print();\n\t\t\tSystem.out.println(\"---PROGRAM OUTPUT---\");\n\t\t\tp.execute();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"ERROR reading data file \" + args[1]);\n\t\t\te.printStackTrace();\n\t\t} finally{\n\t\t\treader.close();\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tJavaSparkContext context = new JavaSparkContext(\"local[*]\", \"hello\");\n\t\tSparkSession session = SparkSession.builder().getOrCreate();\n\t\tjava.util.List<StructField> fields = new ArrayList<StructField>();\n\t\n\t\tStructType schema = DataTypes.createStructType(fields);\n\t\tDataset<Row> customer = session.read().option(\"delimiter\", \"|\").option(\"header\", true).csv(\"/home/student/DBDA_CHEATS/Hadoop/import-northwind-master/customers.csv\");\n\t\t\n\t\tlong cnt = customer.filter(new Column(\"Country\").equalTo(\"Brazil\")).count();\n\t\tSystem.out.println(\"Total\" +cnt);\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 }", "@Override\n\tpublic void executeParser() {\n\t\tString filepath = (!filePath.isEmpty() && !filePath.equals(null)) ? filePath : \"faculty.csv\";\n\n\t\tList<String> linesFromFile = loadLinesFromFile(filepath);\n\t\t// Convert the list to an Array of Strings.\n\t\tString[] lines = linesFromFile.toArray(new String[0]);\n\t\tList<AuthorAffiliation> authorAffiliationList = new ArrayList<AuthorAffiliation>();\n\n\t\tfor (int i = 1; i < lines.length; i++) {\n\t\t\tString[] nameAffiliation = lines[i].split(\",\");\n\n\t\t\tif (nameAffiliation.length == 2) {\n\t\t\t\tAuthorAffiliation authorAffiliation = new AuthorAffiliation();\n\t\t\t\tauthorAffiliation.setName(nameAffiliation[0]);\n\t\t\t\tauthorAffiliation.setAffiliation(nameAffiliation[1]);\n\t\t\t\tauthorAffiliationList.add(authorAffiliation);\n\t\t\t}\n\t\t}\n\n\t\tHandleFacultyAffiliation facultyAffiliation;\n\t\ttry {\n\t\t\tfacultyAffiliation = new HandleFacultyAffiliation();\n\t\t\tfacultyAffiliation.insertRecords(authorAffiliationList);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Error while processing faculty affilications.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException, InterruptedException {\n ArrayList<Metric> metrics = new ArrayList<Metric>();\n metrics.add(new ELOC());\n metrics.add(new NOPA());\n metrics.add(new NMNOPARAM());\n MyClassifier c1 = new MyClassifier(\"Logistic Regression\");\n c1.setClassifier(new Logistic());\n String type = \"CodeSmellDetection\";\n String smell = \"Large Class\";\n Model model = new Model(\"antModel1\", \"ant\", \"https://github.com/apache/ant.git\", metrics, c1, \"\", type, smell);\n Process process = new Process();\n String periodLength = \"All\";\n String version = \"rel/1.8.3\";\n \n String projectName = model.getProjName();\n process.initGitRepositoryFromFile(scatteringFolderPath + \"/\" + projectName\n + \"/gitRepository.data\");\n try {\n DeveloperTreeManager.calculateDeveloperTrees(process.getGitRepository()\n .getCommits(), periodLength);\n DeveloperFITreeManager.calculateDeveloperTrees(process.getGitRepository()\n .getCommits(), periodLength);\n } catch (Exception ex) {\n Logger.getLogger(TestFile.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n List<Commit> commits = process.getGitRepository().getCommits();\n PeriodManager.calculatePeriods(commits, periodLength);\n List<Period> periods = PeriodManager.getList();\n \n String dirPath = Config.baseDir + projectName + \"/models/\" + model.getName();\n Files.createDirectories(Paths.get(dirPath));\n \n for (Period p : periods) {\n File periodData = new File(dirPath + \"/predictors.csv\");\n PrintWriter pw1 = new PrintWriter(periodData);\n \n String message1 = \"nome,\";\n for(Metric m : metrics) {\n message1 += m.getNome() + \",\";\n }\n message1 += \"isSmell\\n\";\n pw1.write(message1);\n \n //String baseSmellPatch = \"C:/ProgettoTirocinio/dataset/apache-ant-data/apache_1.8.3/Validated\";\n CalculateSmellFiles cs = new CalculateSmellFiles(model.getProjName(), \"Large Class\", \"1.8.1\");\n \n List<FileBean> smellClasses = cs.getSmellClasses();\n \n String projectPath = baseFolderPath + projectName;\n \n Git.gitReset(new File(projectPath));\n Git.clean(new File(projectPath));\n \n List<FileBean> repoFiles = Git.gitList(new File(projectPath), version);\n System.out.println(\"Repo size: \"+repoFiles.size());\n \n \n for (FileBean file : repoFiles) {\n \n if (file.getPath().contains(\".java\")) {\n File workTreeFile = new File(projectPath + \"/\" + file.getPath());\n\n ClassBean classBean = null;\n \n if (workTreeFile.exists()) {\n ArrayList<ClassBean> code = new ArrayList<>();\n ArrayList<ClassBean> classes = ReadSourceCode.readSourceCode(workTreeFile, code);\n \n String body = file.getPath() + \",\";\n if (classes.size() > 0) {\n classBean = classes.get(0);\n\n }\n for(Metric m : metrics) {\n try{\n body += m.getValue(classBean, classes, null, null, null, null) + \",\";\n } catch(NullPointerException e) {\n body += \"0.0,\";\n }\n }\n \n //isSmell\n boolean isSmell = false;\n for(FileBean sm : smellClasses) {\n if(file.getPath().contains(sm.getPath())) {\n System.out.println(\"ok\");\n isSmell = true;\n break;\n }\n }\n \n body = body + isSmell + \"\\n\";\n pw1.write(body); \n }\n }\n }\n Git.gitReset(new File(projectPath));\n pw1.flush();\n }\n \n WekaEvaluator we1 = new WekaEvaluator(baseFolderPath, projectName, new Logistic(), \"Logistic Regression\", model.getName());\n \n ArrayList<Model> models = new ArrayList<Model>();\n \n models.add(model);\n System.out.println(models);\n //create a project\n Project p1 = new Project(\"https://github.com/apache/ant.git\");\n p1.setModels(models);\n p1.setName(\"ant\");\n p1.setVersion(version);\n \n ArrayList<Project> projects;\n //projects.add(p1);\n \n //create a file\n// try {\n// File f = new File(Config.baseDir + \"projects.txt\");\n// FileOutputStream fileOut;\n// if(f.exists()){\n// projects = ProjectHandler.getAllProjects(); \n// Files.delete(Paths.get(Config.baseDir + \"projects.txt\"));\n// //fileOut = new FileOutputStream(f, true);\n// } else {\n// projects = new ArrayList<Project>();\n// Files.createFile(Paths.get(Config.baseDir + \"projects.txt\"));\n// }\n// fileOut = new FileOutputStream(f);\n// projects.add(p1);\n// ObjectOutputStream out = new ObjectOutputStream(fileOut);\n// out.writeObject(projects);\n// out.close();\n// fileOut.close();\n//\n// } catch (FileNotFoundException e) {\n// e.printStackTrace();\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// ProjectHandler.setCurrentProject(p1);\n// Project curr = ProjectHandler.getCurrentProject();\n// System.out.println(curr.getGitURL()+\" --- \"+curr.getModels());\n// ArrayList<Project> projectest = ProjectHandler.getAllProjects();\n// for(Project testp : projectest){\n// System.out.println(testp.getModels());\n// }\n }", "public static void main(String[] args) throws SQLException {\n\t\tConnection con = getCon();\r\n\t\tStatement stmt = con.createStatement();\r\n\t\tMap<String, String> maps = new HashMap<String, String>();\r\n\t\tmaps.put(\"word\", \"String\");\r\n\t\tmaps.put(\"user\", \"String\");\r\n\t\tmaps.put(\"tfidf\", \"String\");\r\n//\t\tdropTable(con, \"hivetest324\");\r\n//\t\tSystem.out.println(createTable(con, \"hivetest324\", maps));\r\n\t\tString sql = \"select num from mytest\";\r\n\t\tselectTable(con, sql);\r\n\t\t\r\n//\t\tsql = \"load data local inpath 'E:/work/tfidf' overwrite into table tfidf\";\r\n//\t\tSystem.out.println(loadData(con, sql));\r\n\t\t\r\n//\t\tsql = \"show tables\";\r\n//\t\tResultSet res = stmt.executeQuery(sql);\r\n//\t\twhile(res.next()){\r\n//\t\t\tSystem.out.println(res.getString(1));\r\n//\t\t}\r\n\t}", "public static void main(String[] args) throws InterruptedException {\r\n\r\n\t\tString clustercfg = \"\";\r\n\t\tString ddlfile = \"\";\r\n\t\tString line = null;\r\n\t\tString wordLeft = \"\"; // left side of catalog eqs\r\n\t\tString wordRight = \"\"; // right side of catalog eqs\r\n\r\n\t\t// ArrayList to store the node information\r\n\t\t// ArrayList<DBNode> nodeAL = new ArrayList<DBNode>();\r\n\t\tint nodeCount = 1; // for use in getting values for nodes\r\n\t\tint temp = 0;\r\n\r\n\t\tString nodeDriver = \"\";\r\n\t\tString nodeHostName = \"\";\r\n\t\tString nodeUserName = \"\";\r\n\t\tString nodePassword = \"\";\r\n\r\n\t\t/*\r\n\t\t * switch for scanning catalogs. -1 = nothing 0 = driver, 1=hostname,\r\n\t\t * 2=username, 3=passwd\r\n\t\t *\r\n\t\t */\r\n\r\n\t\tFileReader fr;\r\n\t\tBufferedReader br;\r\n\r\n\t\t// int numnodes = 0;\r\n\r\n\t\tif (args.length > 1) {\r\n\t\t\tclustercfg = args[0];\r\n\t\t\tddlfile = args[1];\r\n\r\n\t\t\ttry {\r\n\t\t\t\tfr = new FileReader(clustercfg);\r\n\t\t\t\tbr = new BufferedReader(fr);\r\n\r\n\t\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\t\t// System.out.println(line);\r\n\r\n\t\t\t\t\tif (numnodes == -1) {\r\n\t\t\t\t\t\tprocessCatalogLine(line);\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t// System.out.println(line);\r\n\r\n\t\t\t\t\t\tfor (int x = 0; x < line.length(); x++) {\r\n\t\t\t\t\t\t\t// System.out.println(wordLeft);\r\n\t\t\t\t\t\t\t// System.out.println(temp);\r\n\t\t\t\t\t\t\t// System.out.println(\"node\" + nodeCount +\r\n\t\t\t\t\t\t\t// \"driver=\");\r\n\r\n\t\t\t\t\t\t\tif (wordLeft.equals(\"node\" + nodeCount + \".driver=\")) {\r\n\t\t\t\t\t\t\t\tnodeDriver = nodeDriver + line.charAt(x);\r\n\r\n\t\t\t\t\t\t\t\tif (x == (line.length() - 1)) {\r\n\t\t\t\t\t\t\t\t\ttemp++;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} else if (wordLeft.equals(\"node\" + nodeCount + \".hostname=\")) {\r\n\t\t\t\t\t\t\t\tnodeHostName = nodeHostName + line.charAt(x);\r\n\r\n\t\t\t\t\t\t\t\tif (x == (line.length() - 1)) {\r\n\t\t\t\t\t\t\t\t\ttemp++;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} else if (wordLeft.equals(\"node\" + nodeCount + \".username=\")) {\r\n\t\t\t\t\t\t\t\tnodeUserName = nodeUserName + line.charAt(x);\r\n\r\n\t\t\t\t\t\t\t\tif (x == (line.length() - 1)) {\r\n\t\t\t\t\t\t\t\t\ttemp++;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} else if (wordLeft.equals(\"node\" + nodeCount + \".passwd=\")) {\r\n\t\t\t\t\t\t\t\tnodePassword = nodePassword + line.charAt(x);\r\n\r\n\t\t\t\t\t\t\t\tif (x == (line.length() - 1)) {\r\n\t\t\t\t\t\t\t\t\ttemp++;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\twordLeft = wordLeft + line.charAt(x);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (temp == 4) {\r\n\r\n\t\t\t\t\t\tDBNode newNode = new DBNode(nodeDriver, nodeHostName, nodeUserName, nodePassword);\r\n\r\n\t\t\t\t\t\tnodeAL.add(newNode);\r\n\r\n\t\t\t\t\t\tnodeDriver = \"\";\r\n\t\t\t\t\t\tnodeHostName = \"\";\r\n\t\t\t\t\t\tnodeUserName = \"\";\r\n\t\t\t\t\t\tnodePassword = \"\";\r\n\t\t\t\t\t\tnodeCount++;\r\n\t\t\t\t\t\ttemp = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// System.out.println(wordLeft);\r\n\t\t\t\t\twordLeft = \"\";\r\n\t\t\t\t\t// catalog = -1;\r\n\t\t\t\t} // end of while\r\n\r\n\t\t\t\t// String tname = \"\";\r\n\r\n\t\t\t\treadDDL(ddlfile);\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * String derp =\r\n\t\t\t\t * \"CREATE TABLE BOOKS(isbn char(14), title char(80), price decimal)\"\r\n\t\t\t\t * ;\r\n\t\t\t\t * \r\n\t\t\t\t * System.out.println(derp); System.out.print(\"herr drr: \");\r\n\t\t\t\t * System.out.println(parseTname(derp));\r\n\t\t\t\t */\r\n\r\n\t\t\t\tdoThread();\r\n\r\n\t\t\t\tif (successful) {\r\n\t\t\t\t\trunCatalog();\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"File not found\");\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Argument insufficient\");\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tFile f = new File(\"C:\\\\DBFile.txt\");\r\n\t\tint i = 0;\r\n\t\tFileReader fr;\r\n\t\ttry {\r\n\t\t\tfr = new FileReader(f);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tBufferedReader reader = new\tBufferedReader(fr);\r\n\t\t String line = null;\r\n\t\t try {\r\n\t\t\twhile((line = reader.readLine()) != null) {\r\n\t\t\t\t i++;\r\n\t\t\t \tSystem.out.printf(\"Line %d: %s\\n\",i,line);\r\n\t\t\t }\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"No more lines\");\r\n\t\t} finally {\r\n\t\t \ttry {\r\n\t\t\t\treader.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws Exception {\n\t\tSystem.out.print(\"Enter a file name: \");\n\t\tScanner fileName = new Scanner(System.in);\n\t\tjava.io.File file = new java.io.File(fileName.nextLine());\n\n\t\t// Test if file exists\n\t\tif (!file.exists()) {\n\t\t\tSystem.out.println(\"The file \\\"\" + file + \"\\\" does not exist.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t// Crate a Scanner for the file\n\t\tScanner input = new Scanner(file);\n\t\tint NUMBER_OF_VERTICES = input.nextInt();\n\n\t\t// Create a list of AbstractGraph.Edge objects\n\t\tArrayList<AbstractGraph.Edge> edgeList = new ArrayList<>();\n\n\t\t// Create an array of vertices\n\t\tString[] vertices = new String[NUMBER_OF_VERTICES];\n\n\t\t// Read data from file\n\t\tinput.nextLine();\n\t\tfor (int j = 0; j < NUMBER_OF_VERTICES; j++) {\n\t\t\tString s = input.nextLine();\n\t\t\tString[] line = s.split(\"[\\\\s+]\");\n\t\t\tString u = line[0];\n\t\t\tvertices[j] = u; // Add vertex\n\n\t\t\t// Add edges for vertex u\n\t\t\tfor (int i = 1; i < line.length; i++) {\n\t\t\t\tedgeList.add(new AbstractGraph.Edge(Integer.parseInt(u), \n\t\t\t\t\tInteger.parseInt(line[i])));\n\t\t\t}\t\n\t\t}\n\n\t\t// Crate a graph\n\t\tGraph<String> graph = new UnweightedGraph<>(\n\t\t\tArrays.asList(vertices), edgeList);\n\n\t\t// Display the number of vertices\n\t\tSystem.out.println(\"The number of vertices is \" + graph.getSize());\n\n\t\t// Display edges\n\t\tfor (int u = 0; u < NUMBER_OF_VERTICES; u++) {\n\t\t\tSystem.out.print(\"Vertex \" + graph.getVertex(u) + \":\");\n\t\t\tfor (Integer e : graph.getNeighbors(u))\n\t\t\t\tSystem.out.print(\" (\" + u + \", \" + e + \")\");\n\t\t\tSystem.out.println();\n\t\t}\t\t\n\n\t\t// Obtain an instance tree of AbstractGraph.Tree\n\t\tAbstractGraph.Tree tree = graph.dfs(0);\n\n\t\t// Test if graph is connected and print results\n\t\tSystem.out.println(\"The graph is \" +\n\t\t(tree.getNumberOfVerticesFound() != graph.getSize() ? \n\t\t\t\"not \" : \"\") + \"connected\");\n\n\t\t// Close the file\n\t\tinput.close();\n\t}", "public static void main(String[] args) {\n\t\tUtility utility = new Utility();\n\t\t\n\t\t// build trainingset\n\t\tSystem.out.println(\"Training System....\");\n\t\tArrayList<Student> trainingSet = utility.readStudentfile(\"porto_math_train.csv\");\n\t\tArrayList<Variable> variableSets = Student.getAllVar();\n\n\t\tTree tree = new Tree();\n\t\tNode decisionTree = tree.buildTree2(trainingSet, variableSets);\n\n\t\tutility .printNode(decisionTree);\n\n\t\t// testing DT\n\t\tSystem.out.println(\"\\tTesting System (trainingSet)....\");\n\t\tutility.testTree2(trainingSet, decisionTree);\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\tTesting System (testSet)....\");\n\t\tArrayList<Student> testSet = utility.readStudentfile(\"porto_math_test.csv\");\n\t\tutility.testTree2(testSet, decisionTree);\t\t\n\t}", "public static void main(String[] args) {\n new FileIOService().csvTest();\n }", "public static void main(String[] args) {\n String timestamp;\n TrafficSnapshotHolder counter = new TrafficSnapshotHolder();\n try (FileReader fr = new FileReader(\"data/traffic1.txt\");\n BufferedReader br = new BufferedReader(fr)) {\n while ((timestamp = br.readLine()) != null) {\n counter.add(extractInfo(timestamp));\n }\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n if(counter.isEmpty()){\n System.out.println(\"File at location is empty, please check file\");\n System.exit(0);\n }\n counter.processSnapshots();\n }", "@Insert({ \"insert into csv_file (id, pid, \", \"filename, start_time, \", \"end_time, length, \", \"density, machine, \",\n\t\t\t\"ar, path, size, \", \"uuid, header_time, \", \"last_update, conflict_resolved, \", \"status, comment, \",\n\t\t\t\"width, start_version, \", \"end_version)\", \"values (#{id,jdbcType=INTEGER}, #{pid,jdbcType=VARCHAR}, \",\n\t\t\t\"#{filename,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{endTime,jdbcType=TIMESTAMP}, #{length,jdbcType=INTEGER}, \",\n\t\t\t\"#{density,jdbcType=DOUBLE}, #{machine,jdbcType=VARCHAR}, \",\n\t\t\t\"#{ar,jdbcType=BIT}, #{path,jdbcType=VARCHAR}, #{size,jdbcType=BIGINT}, \",\n\t\t\t\"#{uuid,jdbcType=CHAR}, #{headerTime,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{lastUpdate,jdbcType=TIMESTAMP}, #{conflictResolved,jdbcType=BIT}, \",\n\t\t\t\"#{status,jdbcType=INTEGER}, #{comment,jdbcType=VARCHAR}, \",\n\t\t\t\"#{width,jdbcType=INTEGER}, #{startVersion,jdbcType=INTEGER}, \", \"#{endVersion,jdbcType=INTEGER})\" })\n\tint insert(CsvFile record);", "public static void main(String[] args) throws Exception{\n System.out.println(\"prueba conexion\");\n Conexion conexion = new Conexion();\n System.out.println(\"conecto\");\n String csvFile = \"./temporal.txt\";\n BufferedReader br = null;\n String line = \"\";\n boolean bandera = true;\n ArrayList<Administradora> guardado = new ArrayList<>();\n String cvsSplitBy = \";\";\n List<String> errores = new ArrayList<>();\n int seq = 0;\n try {\n System.out.println(\"leyendo\");\n br = new BufferedReader(new FileReader(csvFile));\n System.out.println(\"empezando lineas\");\n while ((line = br.readLine()) != null) {\n System.out.println(\"line: \" + line.toString());\n String[] datos = line.split(cvsSplitBy);\n if(revisionLetras(datos[0])){\n if(revisionLetras(datos[1])){\n if(revisionTipoIdentificacion(datos[2])){\n if(revisionNumeros(datos[3])){\n if(revisionNatural(datos[4])){\n java.util.Date fecha = new Date();\n Administradora elemento = new Administradora(seq,datos[0],datos[1],datos[2],datos[3],datos[4],revisionX(datos[5]),revisionX(datos[6]),revisionX(datos[7]),fecha);\n guardado.add(elemento);\n }\n else{\n errores.add(\"Se ha encontrado problemas en: \" + datos.toString() + \" en la naturaleza\");\n bandera = false;\n }\n }\n else{\n errores.add(\"Se ha encontrado problemas en: \" + datos.toString() + \" en la identificacion\");\n bandera = false;\n }\n }\n else{\n errores.add(\"Se ha encontrado problemas en: \" + datos.toString() + \" en el tipo de identificacion\");\n bandera = false;\n }\n }\n else{\n errores.add(\"Se ha encontrado problemas en: \" + datos.toString() + \" en el nombre\");\n bandera = false;\n }\n }\n else{\n errores.add(\"Se ha encontrado problemas en: \" + datos.toString() + \" en el codigo\");\n bandera = false;\n }\n }\n if(bandera==true){\n //guardado\n errores.add(\"guardados satisfactoriamente\");\n }else{\n errores.add(\"Motivos por lo que no se guardo\");\n }\n System.out.println(\"errores: \" + errores);\n errores(errores);\n guardar(conexion.connectDatabase(\"localhost\", \"3306\", \"practica\", \"root\", \"\"), guardado);\n System.out.println(\"guardado\");\n } catch (Exception e) {\n System.out.println(\"catch\");\n } finally {\n if (null != br) {\n br.close();\n System.out.println(\"finally\");\n } \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) throws FileNotFoundException {\n RowStore fileDataStore = new FileDataStore();\n if (!fileDataStore.isInitialized()) {\n System.out.println(\"file data store init isn't working\");\n System.exit(1);\n }\n }", "@Override\n\tpublic void importData(String filePath) {\n\t\tString[] allLines = readFile(filePath);\n\n\t\t//Obtains the date to give to all sales from the cell in the first line and first column of the csv\n\t\t//And formats it into the expected format.\n\t\tString[] firstLine = allLines[0].split(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\", -1);\n\t\tString[] title = firstLine[0].split(\"\\\\(\");\n\t\tSimpleDateFormat oldFormat = new SimpleDateFormat(\"MMMMM, yyyy\");\n\t\tSimpleDateFormat newFormat = new SimpleDateFormat(\"MMM yyyy\");\n\t\tDate date = null;\n\t\ttry {\n\t\t\tdate = oldFormat.parse(title[1].replaceAll(\"[()]\", \"\"));\n\t\t} catch (ParseException e) {\n\t\t\tSystem.out.println(\"There was parsing the date in the first cell of the first line of the csv.\\n\" \n\t\t\t\t\t+ \" A date of the format 'October, 2017' was expected.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.monthAndYear = newFormat.format(date);\n\n\t\t//Parses data for each currency and places it in class variable listForex by calling importForex() on each currency line of csv\n\t\t//Considers that the first line of currencies is the fourth line of csv.\n\t\t//Stops if counter reaches the total number of lines of csv, or if the line is shorter than 15 characters,\n\t\t//so that it doesn't try to parse the summary lines below the last currency line.\n\t\tint counter = 3;\n\t\twhile (counter< allLines.length && allLines[counter].length() > 15) {\n\t\t\timportForex(allLines[counter]);\n\t\t\tcounter++;\n\t\t}\n\n\t\tChannel apple = obtainChannel(\"Apple\", new AppleFileFormat(), false);\n\n\t\t//Places the imported data in the app,\n\t\t//making sure not to replace the existing list of FX rates for this month and year if there is one.\n\t\t//It does however update the FX rate value for currencies that are already in the data for this month.\n\t\tif (apple.getHistoricalForex().containsKey(monthAndYear)) {\n\t\t\tHashMap<String, Double> existingList = apple.getHistoricalForex().get(monthAndYear);\n\t\t\tfor (String s : existingList.keySet()) {\n\t\t\t\tlistForex.put(s, existingList.get(s));\n\t\t\t}\t\n\t\t}\n\t\tapple.addHistoricalForex(monthAndYear, listForex);\n\t}", "public void executeSteps() {\n\t\tLogger.getLogger(\"org\").setLevel(Level.OFF);\r\n\t\tLogger.getLogger(\"akka\").setLevel(Level.OFF);\r\n\t\tSystem.setProperty(\"hadoop.home.dir\", \"C:\\\\spark\\\\bin\");\r\n\t\tSparkSession sparkSession = SparkSession\r\n\t\t\t\t.builder().master(\"local[2]\")\r\n\t\t\t\t.getOrCreate();\r\n\t\t\r\n\t\tString path = \"data/gender-classifier.csv\";\r\n\t\t\r\n\t\t// Read the file as a training dataset\r\n\t\tDataset<Row> csv = sparkSession.read().\r\n\t\t\t\tformat(\"csv\").\r\n\t\t\t\toption(\"header\",\"true\").\r\n\t\t\t\toption(\"ignoreLeadingWhiteSpace\",false). // you need this\r\n\t\t\t\toption(\"ignoreTrailingWhiteSpace\",false).load(path);\r\n\t\t\r\n\r\n\t\tSystem.out.println(\"Dataset<Row> csv: \"+csv.columns().length+\" : \"+csv.count());\r\n\t\tcsv.show(10);\r\n\t\t\r\n\t\t// drop the columns which are mostly empty\r\n\t\tString[] dropCol = {\"id\",\"member_id\",\"url\",\"desc\",\"zip_code\",\"addr_state\",\"earliest_cr_line\",\"issue_d\",\"last_pymnt_d\",\r\n\t\t\t\t\"next_pymnt_d\",\"last_credit_pull_d\",\"application_type\",\r\n\t\t\t\t\"annual_inc_joint\",\"dti_joint\",\"verification_status_joint\",\"open_acc_6m\",\r\n\t\t\t\t\"open_act_il\",\"open_il_12m\",\"open_il_24m\",\"mths_since_rcnt_il\",\"total_bal_il\",\"il_util\",\"open_rv_12m\",\r\n\t\t\t\t\"open_rv_24m\",\"max_bal_bc\",\"all_util\",\"inq_fi\",\"total_cu_tl\",\"inq_last_12m\",\r\n\t\t\t\t\"revol_bal_joint\",\"sec_app_earliest_cr_line\",\"sec_app_inq_last_6mths\",\"sec_app_mort_acc\",\r\n\t\t\t\t\"sec_app_open_acc\",\"sec_app_revol_util\",\"sec_app_open_act_il\",\"sec_app_num_rev_accts\",\r\n\t\t\t\t\"sec_app_chargeoff_within_12_mths\",\"sec_app_collections_12_mths_ex_med\",\r\n\t\t\t\t\"sec_app_mths_since_last_major_derog\",\"hardship_flag\",\"hardship_type\",\"hardship_reason\",\"hardship_status\",\r\n\t\t\t\t\"deferral_term\",\"hardship_amount\",\"hardship_start_date\",\r\n\t\t\t\t\"hardship_end_date\",\"payment_plan_start_date\",\"hardship_length\",\"hardship_dpd\",\"hardship_loan_status\",\r\n\t\t\t\t\"orig_projected_additional_accrued_interest\",\"hardship_payoff_balance_amount\",\"hardship_last_payment_amount\",\r\n\t\t\t\t\"disbursement_method\",\"debt_settlement_flag\",\"debt_settlement_flag_date\",\r\n\t\t\t\t\"settlement_status\",\"settlement_date\",\"settlement_amount\",\"settlement_percentage\",\"settlement_term\",\"pymnt_plan\",\r\n\t\t\t\t\"mths_since_last_record\",\"mths_since_last_major_derog\",\"mths_since_recent_bc_dlq\",\r\n\t\t\t\t\"mths_since_recent_inq\",\"mths_since_recent_revol_delinq\",\"mths_since_last_delinq\"};\r\n\t\tfor(String column: dropCol) {\r\n\t\t\tcsv = csv.drop(column);\r\n\t\t}\r\n\t\tSystem.out.println(\"Droping columns csv: \"+csv.columns().length+\" : \"+csv.count());\r\n\t\tcsv.show(10);\r\n\r\n\t\t// drop the rows containing any null or NaN values\r\n\t\tcsv = csv.na().drop();\r\n\t\tSystem.out.println(\"Droping Rows containing null csv: \"+csv.columns().length+\" : \"+csv.count());\r\n\t\tcsv.show(10);\r\n\t\t\r\n\t\t//TO SELECT ONLY A SAMPLE OF DATA TO WORK WITH\r\n\t\tcsv = csv.sample(true, 0.03).limit(10000);\r\n\t\tSystem.out.println(csv.count());\r\n\t\t\r\n\t\t// transform the String data into categorical variables\r\n\t\tStringIndexer indexer1 = new StringIndexer()\r\n\t\t\t\t.setInputCol(\"grade\")\r\n\t\t\t\t.setOutputCol(\"grade1\");\r\n\t\tStringIndexer indexer2 = new StringIndexer()\r\n\t\t\t\t.setInputCol(\"sub_grade\")\r\n\t\t\t\t.setOutputCol(\"sub_grade1\");\r\n\t\tStringIndexer indexer3 = new StringIndexer()\r\n\t\t\t\t.setInputCol(\"emp_title\")\r\n\t\t\t\t.setOutputCol(\"emp_title1\");\r\n\t\tStringIndexer indexer4 = new StringIndexer()\r\n\t\t\t\t.setInputCol(\"emp_length\")\r\n\t\t\t\t.setOutputCol(\"emp_length1\");\r\n\t\tStringIndexer indexer5 = new StringIndexer()\r\n\t\t\t\t.setInputCol(\"home_ownership\")\r\n\t\t\t\t.setOutputCol(\"home_ownership1\");\r\n\t\tStringIndexer indexer6 = new StringIndexer()\r\n\t\t\t\t.setInputCol(\"verification_status\")\r\n\t\t\t\t.setOutputCol(\"verification_status1\");\r\n\t\tStringIndexer indexer7 = new StringIndexer()\r\n\t\t\t\t.setInputCol(\"loan_status\")\r\n\t\t\t\t.setOutputCol(\"loan_status1\");\r\n\t\tStringIndexer indexer8 = new StringIndexer()\r\n\t\t\t\t.setInputCol(\"purpose\")\r\n\t\t\t\t.setOutputCol(\"purpose1\");\r\n\t\tStringIndexer indexer9 = new StringIndexer()\r\n\t\t\t\t.setInputCol(\"title\")\r\n\t\t\t\t.setOutputCol(\"title1\");\r\n\t\tStringIndexer indexer10 = new StringIndexer()\r\n\t\t\t\t.setInputCol(\"initial_list_status\")\r\n\t\t\t\t.setOutputCol(\"initial_list_status1\");\r\n\t\tStringIndexer indexer11 = new StringIndexer()\r\n\t\t\t\t.setInputCol(\"term\")\r\n\t\t\t\t.setOutputCol(\"term1\");\r\n\t\tList<StringIndexer> stringIndexer = Arrays.asList(indexer1, indexer2, indexer3, \r\n\t\t\t\tindexer4, indexer5, indexer6, indexer7, indexer8, indexer9, indexer10, indexer11);\r\n\t\tfor(StringIndexer indexer:stringIndexer) {\r\n\t\t\tcsv = indexer.fit(csv).transform(csv);\r\n\t\t}\r\n\t\tSystem.out.println(\"Before Transforming csv: \"+csv.columns().length+\" : \"+csv.count());\r\n\t\tcsv.show(10);\r\n\t\t\r\n\t\tString[] dropCol1 = {\"grade\",\"initial_list_status\",\"title\",\"purpose\",\"loan_status\",\"verification_status\",\r\n\t\t\t\t\"home_ownership\",\"emp_length\",\"emp_title\",\"sub_grade\",\"term\"};\r\n\t\tfor(String col: dropCol1) {\r\n\t\t\tcsv = csv.drop(col);\r\n\t\t}\r\n\t\tSystem.out.println(\"After Transforming csv: \"+csv.columns().length+\" : \"+csv.count());\r\n\t\tcsv.show(10);\r\n\r\n\t\t\r\n\t\t//Label - int_rate_final - process to convert it to a double variable\r\n\t\tsparkSession.udf().register(\"toPerSplit\", percentageSplitTest, DataTypes.StringType);\r\n\t\tcsv = csv.withColumn(\"int_rate_split\", callUDF(\"toPerSplit\", csv.col(\"int_rate\"))).drop(\"int_rate\");\r\n\t\tcsv = csv.withColumn(\"revol_util_split\", callUDF(\"toPerSplit\", csv.col(\"revol_util\"))).drop(\"revol_util\");\r\n\t\tSystem.out.println(\"After splitting csv: \"+csv.columns().length+\" : \"+csv.count());\r\n\t\tcsv.show(10);\r\n\r\n\t\t// Converting String to double values\r\n\t\tString[] columns = csv.columns();\r\n\t\tfor(String column:columns) {\r\n\t\t\tcsv = csv.withColumn(column+\"_final\", csv.col(column).cast(DataTypes.DoubleType)).drop(column);\r\n\t\t}\r\n\t\tSystem.out.println(\"After Converting to double csv: \"+csv.columns().length+\" : \"+csv.count());\r\n\t\tcsv.show(10);\r\n\t\t\r\n\t\t// Modeling \r\n\t\t// Create the feature vector using VectorAssembler\r\n\t\tDataset<Row> featureCsv = csv.drop(\"int_rate_split_final\");\r\n\t\tSystem.out.println(\"featureCsv: \");\r\n\t\tfeatureCsv.show(10);\r\n\r\n\t\tString[] inputCols = featureCsv.columns();\r\n\t\tVectorAssembler assembler = new\r\n\t\t\t\tVectorAssembler().setInputCols(inputCols).setOutputCol(\"features\");\r\n\r\n\t\tDataset<Row> featureVector = assembler.transform(csv);\r\n\t\tSystem.out.println(\"featureVector: \");\r\n\t\tfeatureVector.show(10);\r\n\r\n\t\t// Create the final dataset with \"features\" and \"label\"\r\n\t\tDataset<Row> target = featureVector.select(featureVector.col(\"features\"), \r\n\t\t\t\tfeatureVector.col(\"int_rate_split_final\")).withColumnRenamed(\"int_rate_split_final\", \"label\");\r\n\t\tSystem.out.println(\"target: \");\r\n\t\ttarget.show(10);\r\n\r\n\t\t// Summary Statistics and Correlation Analysis \r\n\t\t// Correlation Analysis\r\n\t\tRow r1 = Correlation.corr(target, \"features\").head();\r\n\t\tSystem.out.println(\"Pearson correlation matrix:\\n\" + r1.get(0).toString());\r\n\t\t\r\n\t\t// Split data into Training and testing\r\n\t\tDataset<Row>[] dataSplit = target.randomSplit(new double[] { 0.7, 0.3 });\r\n\t\tDataset<Row> trainingData = dataSplit[0];\r\n\t\tDataset<Row> testData = dataSplit[1];\r\n\r\n\t\tSystem.out.println(\"trainingData: \");\r\n\t\ttrainingData.show(10);\r\n\t\tSystem.out.println(\"testData: \");\r\n\t\ttestData.show(10);\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// Run the Grid Search to find the best parameters\r\n\t\tdouble[] regParam = new double[] {0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,0.11,0.12,0.13,0.14,0.15};\r\n\t\tdouble[] elasticParam = new double[] {0.3,0.4,0.5,0.6,0.7,0.8};\r\n\r\n// Commented out this part as it takes lot of computation power and time. Might be difficult to run.\r\n\t\t// for(double reg:regParam) {\r\n\t\t// \tfor(double elastic:elasticParam) {\r\n\t\t// \t\t//Define the model\r\n\t\t// \t\tLinearRegression lr = new LinearRegression()\r\n\t\t// \t\t\t\t.setMaxIter(10)\r\n\t\t// \t\t\t\t.setRegParam(reg)\r\n\t\t// \t\t\t\t.setElasticNetParam(elastic);\r\n\t\t// \t\t// Fit the model\r\n\t\t// \t\tLinearRegressionModel lrModel = lr.fit(trainingData);\r\n\t\t// \t\t// See the summary\r\n\t\t// \t\tLinearRegressionTrainingSummary trainingSummary = lrModel.summary();\r\n\t\t// \t\t//Print the model characteristics\r\n\t\t// \t\tSystem.out.println(\"Linear Model => regParam: \"+reg+\" elasticParam: \"+elastic);\r\n\t\t// \t\tSystem.out.println(\"RMSE: \" + trainingSummary.rootMeanSquaredError());\r\n\t\t// \t\tSystem.out.println(\"r2: \" + trainingSummary.r2());\t\t\t\r\n\t\t// \t}\r\n\t\t// }\r\n\r\n\t\tSystem.out.println(\"==============================================>\");\r\n\t\t\r\n\t\t// Testing models using Best Parameters as per R2 and RMSE\r\n\t\tLinearRegression lr = new LinearRegression()\r\n\t\t\t\t.setMaxIter(10)\r\n\t\t\t\t.setRegParam(0.02)\r\n\t\t\t\t.setElasticNetParam(0.5);\r\n\r\n\t\tLinearRegressionModel lrModel = lr.fit(trainingData);\r\n\r\n\t\tDataset<Row> results = lrModel.transform(testData);\r\n\r\n\t\t// Print the coefficients and intercept for logistic regression\r\n\t\tSystem.out.println(\"Coefficients: \"\r\n\t\t\t\t+ lrModel.coefficients() + \" Intercept: \" + lrModel.intercept());\r\n\r\n\t\tRegressionEvaluator evaluator = new RegressionEvaluator()\r\n\t\t\t\t.setMetricName(\"rmse\")\r\n\t\t\t\t.setLabelCol(\"label\")\r\n\t\t\t\t.setPredictionCol(\"prediction\");\r\n\t\tDouble rmse = evaluator.evaluate(results);\r\n\t\tSystem.out.println(\"Root-mean-square error for the Best Fit Model using RegParam(0.02) and ElasticNetParam(0.5) => \" + rmse);\r\n\r\n\t\tSystem.out.println(\"==============================================>\");\r\n\r\n\t\t// Testing the normal Regression with out any regularisation parameters\r\n\t\tLinearRegression lr2 = new LinearRegression()\r\n\t\t\t\t.setMaxIter(10);\r\n\r\n\t\tLinearRegressionModel lrModel2 = lr2.fit(trainingData);\r\n\r\n\t\tLinearRegressionTrainingSummary trainingSummary2 = lrModel2.summary();\r\n\r\n\t\tSystem.out.println(\"Linear Model => default params ===> \");\r\n\r\n\t\t// Print the coefficients and intercept for linear regression\r\n\t\tSystem.out.println(\"Coefficients: \"\r\n\t\t\t\t+ lrModel2.coefficients() + \" Intercept: \" + lrModel2.intercept());\r\n\r\n\t\tSystem.out.println(\"RMSE: \" + trainingSummary2.rootMeanSquaredError());\r\n\t\tSystem.out.println(\"r2: \" + trainingSummary2.r2());\r\n\r\n\t\tDataset<Row> results2 = lrModel2.transform(testData);\r\n\r\n\t\tRegressionEvaluator evaluator2 = new RegressionEvaluator()\r\n\t\t\t\t.setMetricName(\"rmse\")\r\n\t\t\t\t.setLabelCol(\"label\")\r\n\t\t\t\t.setPredictionCol(\"prediction\");\r\n\t\tDouble rmse2 = evaluator2.evaluate(results2);\r\n\t\tSystem.out.println(\"Root-mean-square error for the Model with default values\" + rmse2);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public Load(String[] args) {\n\n\t\ttry {\n\t\t\tRandomAccessFile raf = new RandomAccessFile(new File(args[0]), \"rw\");\n\t\t\tthis.sfMap = raf.getChannel();\n\t\t\tthis.stataFile = sfMap.map(FileChannel.MapMode.READ_WRITE, 0, sfMap.size());\n\t\t\tthis.fileHeader = checkVersion(this.stataFile);\n\t\t\tif (this.release >= 113 && this.release <= 115) {\n\t\t\t\tthis.headerData = OldFormats.readHeader(stataFile, fileHeader);\n\t\t\t} else {\n\t\t\t\tthis.headerData = NewFormats.readHeader(stataFile, fileHeader);\n\t\t\t}\n\t\t\tparseHeader();\n\t\t\tif (this.release == 118) {\n\t\t\t\tthis.versionedFile = FileFormats.getVersion(this.sfMap, this.release,\n\t\t\t\t\t\tthis.endian, this.K, (Long) this.headerData.get(3),\n\t\t\t\t\t\tthis.datasetLabel, this.datasetTimeStamp, this.mapOffset);\n\t\t\t} else {\n\t\t\t\tthis.versionedFile = FileFormats.getVersion(this.sfMap, this.release,\n\t\t\t\t\t\tthis.endian, this.K, (Integer) this.headerData.get(3),\n\t\t\t\t\t\tthis.datasetLabel, this.datasetTimeStamp, this.mapOffset);\n\t\t\t}\n\t\t} catch (IOException | DtaCorrupt e) {\n\t\t\tSystem.out.println(String.valueOf(e));\n\t\t}\n\n\t}", "private void processGeneFile(String inputFilename, String taxonID) throws IOException {\n BufferedReader reader = createInputFileReader(inputFilename);\n String line;\n String[] columns;\n \n \t// Skip the first line\n line = reader.readLine();\n while (reader.ready()) {\n line = reader.readLine();\n \t\t//writeToDebugFile(line);\n \t\tif (line.substring(0,1).equals(\"#\")) {\n \t\twriteToErrorFile(line, \"Comment\");\n \t\t\tcontinue;\n \t\t}\n columns = line.split(INPUT_COLUMN_DELIM);\n \n String rgdID = columns[0].trim();\n \n // If line contains column names (usually first line), skip it\n if (rgdID.equals(\"GENE_RGD_ID\")) continue;\n \n String geneSymbol = columns[1].trim();\n String chromosome = columns[6].trim(); \n \n \t\t// columns[14] == start base pair\n \t\t// columns[15] == end base pair\n \t\t// columns[16] == strand (- or +)\n \n String mapLocation = getMapLocation(columns[14], columns[15], columns[16].trim());\n \n // The following columns may contain multiple items\n String[] entrezGeneIDs = splitListColumn(columns[20]);\n String[] swissProtIDs = splitListColumn(columns[21]);\n String[] genBankRNAIDs = splitListColumn(columns[23]);\n String[] genBankProteinIDs = splitListColumn(columns[25]);\n String[] unigeneIDs = splitListColumn(columns[26]);\n String[] ensemblIDs;\n \n // if columns.length < 38, the last column (Ensembl ID) is missing\n // from the input file\n if (columns.length < 38) {\n // since there are no EnsemblIDs, set the variable to an empty array,\n // which is what splitListColumn() would do\n ensemblIDs = EMPTY_STRING_ARRAY;\n } else {\n //ensemblIDs = columns[37].split(INPUT_LIST_DELIM);\n ensemblIDs = splitListColumn(columns[37]);\n }\n \n // Write RGD Info\n writeToInfoFile(taxonID, RGD_ID_TYPE, rgdID, chromosome, mapLocation);\n \n // Write Gene Symbol and Ensembl ID Info and Links\n if (!geneSymbol.equals(\"\")) {\n writeToInfoFile(taxonID, \"Gene Symbol\", geneSymbol, chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Gene Symbol\",geneSymbol);\n }\n for (int i = 0; i < ensemblIDs.length; i++) {\n writeToInfoFile(taxonID, \"Ensembl ID\", ensemblIDs[i], chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Ensembl ID\",ensemblIDs[i]);\n }\n \n // Handle NCBI RefSeq and non-RefSeq IDs (both RNA and Protein)\n for (int i = 0; i < genBankRNAIDs.length; i++) {\n String genBankRNAID = genBankRNAIDs[i];\n if (isRefSeq(genBankRNAID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq RNA ID\",genBankRNAIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI RNA ID\",genBankRNAIDs[i]);\n }\n }\n for (int i = 0; i < genBankProteinIDs.length; i++) {\n String genBankProteinID = genBankProteinIDs[i];\n if (isRefSeq(genBankProteinID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq Protein ID\",genBankProteinIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI Protein ID\",genBankProteinIDs[i]);\n }\n } \n \n // create Links entries for the rest\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"Entrez Gene ID\",Arrays.asList(entrezGeneIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"SwissProt ID\",Arrays.asList(swissProtIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"UniGene ID\",Arrays.asList(unigeneIDs));\n } \n reader.close();\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\r\n \r\n Directory d = new Directory();\r\n \r\n if (args.length != 1) {\r\n System.out.println(\"Usage: java CSVReaderTest <filename>\");\r\n }\r\n else {\r\n FileReader fr = new FileReader(args[0]);\r\n BufferedReader c = new BufferedReader(fr);\r\n\r\n int lineNum = 0;\r\n boolean eof = false;\r\n \r\n while (!eof) {\r\n String line = c.readLine();\r\n \r\n if (line == null) {\r\n eof = true;\r\n }\r\n else{\r\n // Allocate an array of the necessary size to return the strings\r\n String[] values = new String[4];\r\n // Start beginIndex at the beginning of the String, position 0\r\n int beginIndex = 0;\r\n\r\n for (int i = 0; i < 3; i++) {\r\n int endIndex;\r\n endIndex = line.indexOf(',', beginIndex);\r\n\r\n // if the argument begins and ends with quotes, remove them\r\n if (line.charAt(beginIndex) == '\"' && line.charAt(endIndex - 1) == '\"') {\r\n values[i] = line.substring(beginIndex + 1, endIndex - 1);\r\n\r\n } else {\r\n values[i] = line.substring(beginIndex, endIndex);\r\n }\r\n\r\n beginIndex = endIndex + 1;\r\n }\r\n\r\n if (line.charAt(beginIndex) == '\"' && line.charAt(line.length() - 1) == '\"') {\r\n values[3] = line.substring(beginIndex + 1, line.length() - 1);\r\n } else {\r\n values[3] = line.substring(beginIndex, line.length());\r\n }\r\n \r\n if (lineNum > 1) {\r\n lineNum = lineNum + 1;\r\n Student s = new Student(values[0]);\r\n s.setFirstName(values[1]);\r\n s.setLastName(values[2]);\r\n s.setPhoneNumber(values[3]);\r\n d.addStudent(s);\r\n System.out.println(s);\r\n }\r\n\r\n }\r\n }\r\n c.close();\r\n }\r\n \r\n Student c = new Student(\"mengl1\");\r\n c.setFirstName(\"Meng\");\r\n c.setLastName(\"Li\");\r\n c.setPhoneNumber(\"412-807-0153\");\r\n \r\n Student a = new Student(\"mengl2\");\r\n a.setFirstName(\"Mengl\");\r\n a.setLastName(\"Li\");\r\n a.setPhoneNumber(\"412-807-0154\");\r\n \r\n Student b = new Student(\"terryhong\");\r\n b.setFirstName(\"terry\");\r\n b.setLastName(\"hong\");\r\n b.setPhoneNumber(\"412-464-475\");\r\n\r\n d.addStudent(c);\r\n d.addStudent(a);\r\n d.addStudent(b);\r\n \r\n //System.out.println(d.searchByAndrewId(\"mengl2\"));\r\n //d.deleteStudent(\"terryhong\");\r\n System.out.println(d.size());\r\n // System.out.println(d.searchByLastName(\"Li\"));\r\n\r\n }", "public static void main(String[] args) {\n\r\n\t\ttry{\r\n\t\t\tString tac2008Path = \"C:/Users/jipeng/Desktop/Qiang/updateSum/TAC2008_Update_Summarization_Documents/UpdateSumm08_test_docs_files\";\r\n\t\t\tExtractPrag ep = new ExtractPrag();\r\n\t\t\t\r\n\t\t\t//String wordPath = \"\";\r\n\t\t\t//ep.extractWords(wordPath)\r\n\t\t\tep.allDataset(tac2008Path);\r\n\t\t\t\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\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 }", "public static void main(String[] args) {\n\t\tCollection testCol = new Collection();\n\t\t\n\t\t// Basic Test #2: Creating a song & adding to empty collection\n\t\tSong testSong = new Song();\n\t\tSong testSong2 = new Song(\"000035\", \"FakeArtist\", \"Pop\", \"Track1\", \"Album1\", 2020, 0.0);\n\t\ttestCol.addSong(testSong);\n\t\ttestCol.addSong(testSong2);\n\t\tSystem.out.println(\"Test Song Collection:\\n\" + testCol);\n\t\t\n\t\t\n\t\t// Main Test: Get collection from the .csv\n\t\tCollection SongCol = new Collection(\"./projectBackEnd/finalTracks.csv\");\n\t\t\n\t\t\n\t\t/* Note: Main functionalities tested on a TEST COLLECTION in\n\t\t * order to show case methods without having to print a giant text\n\t\t * file every time. */\n\t\t// Remove Test: Remove a song based on ID\n\t\ttestCol.removeSong(\"000000\");\n\t\tSystem.out.println(\"Song Removed:\\n\" + testCol);\n\t\tSongCol.removeSong(\"000002\"); // Removes from actual SongCol! \n\t\t\n\t\t\n\t\t// Edit Tests: Getters & Setters using SongCol.\n\t\tSong editTest = SongCol.getSong(\"000005\");\n\t\t\n\t\t// Before Edits\n\t\tSystem.out.println(\"Before Edits:\\n\" + editTest + \"\\n\");\n\t\t\n\t\teditTest.setAlbum(\"NewAlb\");\t\t\t\t\t\t\t\t\t// SetAlbum\n\t\tSystem.out.print(\"Changes: \" + editTest.getAlbum() + \" \"); \t\t// GetAlbum\n\t\t\n\t\teditTest.setId(\"000005\");\t\t\t\t\t\t\t\t\t\t// SetId\n\t\tSystem.out.print(editTest.getId() + \" \");\t\t\t\t\t\t// GetId\n\n\t\teditTest.setGenre(\"Indie\");\t\t\t\t\t\t\t\t\t\t// SetGenre\n\t\tSystem.out.print(editTest.getGenre() + \" \");\t\t\t\t\t// GetGenre\n\t\t\n\t\teditTest.setArtist(\"NEW Artist\");\t\t\t\t\t\t\t\t// SetArtist\n\t\tSystem.out.print(editTest.getArtist() + \" \");\t\t\t\t\t// GetArtist\n\t\t\n\t\teditTest.setLong(-73.2);\t\t\t\t\t\t\t\t\t\t// SetLong\n\t\tSystem.out.print(editTest.getLong() + \" \"); \t\t\t\t\t// GetLong\n\t\t\n\t\teditTest.setTrack(\"TRACK NAME\");\t\t\t\t\t\t\t\t// SetTrack\n\t\tSystem.out.print(editTest.getTrack() + \" \");\t\t\t\t\t// GetTrack\n\t\t\n\t\teditTest.setYear(2004);\t\t\t\t\t\t\t\t\t\t\t// SetYear\n\t\tSystem.out.println(editTest.getYear() + \"\\n\");\t\t\t\t\t// GetYear\n\t\t\n\t\t// After Edits\n\t\tSystem.out.println(\"After Edits:\\n\" + SongCol.getSong(\"000005\") + \"\\n\");\n\n\t\t\n\t\t// Iterator Test: Checks that the iterator works\n\t\tIterator<Song> itr = testCol.getIterator();\n\t\tSystem.out.println(\"Iterator Test:\");\n\t\twhile (itr.hasNext()) {\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t// Query Tests using the actual SongCol\n\t\t// Query Test #1: Get a song based on artist \n\t\tSystem.out.println(\"Query Test #1:\\n\" + SongCol.InputOneToOne(\"AWOL\") + \"\\n\");\n\t\t\n\t\t// Query Test #2: Get a song based on artist and album\n\t\tSystem.out.println(\"Query Test #2:\\n\" + SongCol.InputManyToOne(\"Fósforo\", \"Macondo\") + \"\\n\");\n\t\t\n\t\t// Query Test #3: Get a variety of songs based on genre\n\t\tSystem.out.println(\"Query Test #3:\\n\" + SongCol.InputOneToMany(\"Latin America\") + \"\\n\");\n\t\t\n\t\t// Query Test #4: Get a variety of songs based on genre and year\n\t\tSystem.out.println(\"Query Test #4:\\n\" + SongCol.InputManyToMany(\"Psych-Folk\", 2008) + \"\\n\");\n\t\t\n\t\t\n\t\t// End Test: Write to same file\n\t\tSongCol.writeFile(\"./projectBackEnd/finalTracks.csv\");\n\t}", "public static void main(String[] args) {\n HoodieHiveConfiguration apiConfig =\n HoodieHiveConfiguration.newBuilder().hadoopConfiguration(new Configuration())\n .hivedb(\"tmp\").hiveJdbcUrl(\"jdbc:hive2://localhost:10010/\").jdbcUsername(\"hive\")\n .jdbcPassword(\"hive\").build();\n\n HoodieDatasetReference datasetReference =\n new HoodieDatasetReference(\"clickstream\", \"hdfs:///data/tables/user.clickstream\",\n \"raw\");\n\n // initialize the strategies\n PartitionStrategy partitionStrategy = new DayBasedPartitionStrategy();\n SchemaStrategy schemaStrategy = new ParseSchemaFromDataStrategy();\n\n // Creates a new dataset which reflects the state at the time of creation\n HoodieHiveDatasetSyncTask datasetSyncTask =\n HoodieHiveDatasetSyncTask.newBuilder().withReference(datasetReference)\n .withConfiguration(apiConfig).partitionStrategy(partitionStrategy)\n .schemaStrategy(schemaStrategy).build();\n\n // Sync dataset\n datasetSyncTask.sync();\n }", "public static void main(String[] args) {\n ReadFile trainingFile = new ReadFile(\"input/treino.txt\");\n ReadFile testFile = new ReadFile(\"input/teste.txt\");\n\n // Guarda as series temporais do arquivo de treino em uma lista\n ArrayList<TimeSerie> training = new ArrayList<>();\n while(trainingFile.hasNextLine()) {\n training.add(trainingFile.nextSerie());\n }\n\n // Processa cada linha do arquivo de teste e contabiliza um acerto ou erro\n while(testFile.hasNextLine()) {\n\n }\n }" ]
[ "0.62986183", "0.5979444", "0.58140165", "0.5740566", "0.57072484", "0.5688557", "0.5664408", "0.5626385", "0.5600257", "0.5598025", "0.5580021", "0.5573883", "0.5552776", "0.5549052", "0.55482817", "0.5535444", "0.5532904", "0.552848", "0.5528255", "0.5527114", "0.5507942", "0.54247826", "0.54192346", "0.5416427", "0.54160404", "0.5404364", "0.53933513", "0.5373142", "0.53717434", "0.5362834", "0.53584725", "0.535517", "0.53459984", "0.5338503", "0.5337891", "0.53183436", "0.53133565", "0.530554", "0.530231", "0.5297852", "0.5294327", "0.52782774", "0.52777255", "0.527628", "0.5264957", "0.5245804", "0.5233672", "0.5233083", "0.52203035", "0.52155906", "0.52155554", "0.52019215", "0.5201188", "0.519532", "0.51829237", "0.5181793", "0.51667506", "0.5155975", "0.51452947", "0.5138718", "0.51358193", "0.51219124", "0.5120621", "0.5118137", "0.51157975", "0.5114623", "0.5114352", "0.5109039", "0.510826", "0.5103889", "0.5103667", "0.51018584", "0.50993556", "0.5095843", "0.5093423", "0.5088008", "0.50818056", "0.50795746", "0.50774425", "0.50758624", "0.50754565", "0.50746584", "0.50738466", "0.50712305", "0.5062056", "0.50571066", "0.5055984", "0.50535613", "0.50523347", "0.50510746", "0.50488186", "0.5048657", "0.50464267", "0.50454015", "0.5042374", "0.5042043", "0.50413716", "0.50378156", "0.5035856", "0.5035215" ]
0.5741329
3
Extract feature oriented changes from all commits contained within the commit range defined by the Start and End commit id (included). Each commit is analyzed and all the commits are then related to one another based on the commit sequence. Note: the set of analyzed commits is created based on all the commits that can be reached starting from "Start" and ``walking'' until the "End" commit this depends on the topological organization of the commits.
static public void extractCommitRange(String start, String end) throws Exception { DataExtractor de = new DataExtractor(); de.extractCommitInfo(start, end); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\") \n\tprivate void extractChanges(Node commit_node, RevCommit m) throws Exception\n\t{\n\n\t\tList<String> commitIds = new ArrayList<String>(); \n\n\t\tcommitIds.add(m.toObjectId().getName());\n\t\t\n\t\tCommitInfoExtractor cie = new CommitInfoExtractor();\n\t\tcie.extractFeatureChanges(commitIds);\n\t\tList<EvolutionStep>steps = cie.getSteps();\n\t\t\n\t\ttry(Transaction tx = DBConnection.getService().beginTx())\n\t\t{\n\t\t\tfor(EvolutionStep step : steps)\n\t\t\t{\n\t\t\t\tFileChangeExtractor file_changes = new FileChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> file_nodes = file_changes.addFileChangesToCommit(step.files, commit_node);\n\t\t\t\t\n\t\t\t\tVMChangeExtractor vm_changes = new VMChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> vm_nodes = vm_changes.addVMChangesToCommit(step.fm_changes, commit_node);\n\t\t\t\t\n\t\t\t\tBuildChangeExtractor build_changes = new BuildChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> build_nodes = build_changes.addBuildChangesToCommit(step.build_changes, commit_node);\n\t\t\t\t\n\t\t\t\tCodeChangeExtractor code_changes = new CodeChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> code_nodes = code_changes.addCodeChangesToCommit(step.impl_changes, commit_node);\n\n//\t\t\t\tList<EvolutionStep> local = new ArrayList<EvolutionStep>(); local.add(step);\n//\t\t\t\tFeatureOrientedChangeExtractor dataextractor = new FeatureOrientedChangeExtractor(local);\n//\t\t\t\tdataextractor.buildFeatureChanges();\n//\t\t\t\t\n//\t\t\t\tList<FeatureOrientedChange> changes = dataextractor.getFeatureChanges();\n//\t\n//\t\t\t\tList<Node> focs = new ArrayList<Node>();\n//\t\t\t\tfor(FeatureOrientedChange c : changes)\n//\t\t\t\t{\n//\t\t\t\t\tNode foc_node = createFeatureOrientedChangeForCommit(c);\n//\t\t\t\t\tfocs.add(foc_node);\n//\t\t\t\t\tlink_file_and_vm_changes(c,foc_node,file_nodes, vm_nodes,build_nodes,code_nodes); \n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t\tMap<String,Node> known_focs = buildFOCMap(focs);\n//\t\t\t\tlink_mapping_artefacts(known_focs,build_nodes);\n//\t\t\t\tlink_code_artefacts(known_focs,code_nodes);\n\t\t\t}\n\t\t\ttx.success();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tthrow new Exception(\"Failed to create Neo4j nodes - \", e);\n\t\t}\n\t}", "public static List<RevCommit> getRevLog(Repository repository, String startRangeId, String endRangeId) throws Exception\n\t{\n\t\tList<RevCommit> list = new ArrayList<RevCommit>();\n\t\ttry\n\t\t{\n\t\t\tObjectId endRange = repository.resolve(endRangeId);\n\t\t\tObjectId startRange = repository.resolve(startRangeId);\n\t\t\tRevWalk rw = new RevWalk(repository);\n\n\t\t\trw.markStart(rw.parseCommit(endRange));\n\t\t\tif (!startRange.equals(ObjectId.zeroId()))\n\t\t\t{\n\t\t\t\trw.markUninteresting(rw.parseCommit(startRange));\n\t\t\t}\n\t\t\t\n\t\t\tIterable<RevCommit> revlog = rw;\n\t\t\tfor (RevCommit rev : revlog)\n\t\t\t{\n\t\t\t\tlist.add(rev);\n\t\t\t}\n\t\t\trw.dispose();\n\t\t\trw.release();\n\t\t} \n\t\tcatch (Throwable t)\n\t\t{\n\t\t\tSystem.err.println(\"Failure.\" + t.getMessage());\n\t\t\tthrow new Exception(t);\n\t\t}\n\t\treturn list;\n\t}", "@Test\n public void t2() {\n List<StableCommit> stableCommitList = getStableCommits().stream().filter(commit ->\n commit.getFilePath().equals(\"src/java/org/apache/commons/lang/builder/HashCodeBuilder.java\") && commit.getLevel() == 1).collect(Collectors.toList());\n // it has been through 9 different refactorings\n List<RefactoringCommit> refactoringCommitList = getRefactoringCommits().stream().filter(commit ->\n commit.getFilePath().equals(\"src/java/org/apache/commons/lang/builder/HashCodeBuilder.java\")).collect(Collectors.toList());\n\n Assert.assertEquals(4, stableCommitList.size());\n Assert.assertEquals(8, refactoringCommitList.size());\n\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", stableCommitList.get(0).getCommit());\n\n // then, it was refactored two times (in commit 5c40090fecdacd9366bba7e3e29d94f213cf2633)\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", refactoringCommitList.get(0).getCommit());\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", refactoringCommitList.get(1).getCommit());\n\n // It appears 3 times\n Assert.assertEquals(\"379d1bcac32d75e6c7f32661b2203f930f9989df\", stableCommitList.get(1).getCommit());\n Assert.assertEquals(\"d3c425d6f1281d9387f5b80836ce855bc168453d\", stableCommitList.get(2).getCommit());\n Assert.assertEquals(\"3ed99652c84339375f1e6b99bd9c7f71d565e023\", stableCommitList.get(3).getCommit());\n }", "@Test\n\tpublic void diffCommits() throws Exception {\n\t\tRepository repo = new FileRepository(testRepo);\n\t\tRevCommit commit1 = add(\"test.txt\", \"content\");\n\t\tRevCommit commit2 = add(\"test.txt\", \"content2\");\n\t\tTreeWalk walk = TreeUtils.diffWithCommits(repo, commit1, commit2);\n\t\tassertNotNull(walk);\n\t\tassertEquals(2, walk.getTreeCount());\n\t\tassertTrue(walk.next());\n\t\tassertEquals(\"test.txt\", walk.getPathString());\n\t\tassertEquals(BlobUtils.getId(repo, commit1, \"test.txt\"),\n\t\t\t\twalk.getObjectId(0));\n\t\tassertEquals(BlobUtils.getId(repo, commit2, \"test.txt\"),\n\t\t\t\twalk.getObjectId(1));\n\t\tassertFalse(walk.next());\n\t}", "public static void main(String[] args) {\n\n\t\tGitService gitService = new GitServiceImpl();\n\t\tGitHistoryRefactoringMiner miner = new GitHistoryRefactoringMinerImpl();\n\n\t\tRepository repo;\n\t\ttry {\n\t\t\trepo = gitService.cloneIfNotExists(\n\t\t\t\t\t\"/home/steve/Steve/git/commons-rng\",\n\t\t\t\t\t\"https://github.com/apache/commons-rng.git\");\n\t\t\t//\t\t\trepo = gitService.cloneIfNotExists(\n\t\t\t//\t\t\t\t\t\"tmp/refactoring-toy-example\",\n\t\t\t//\t\t\t\t\t\"https://github.com/danilofes/refactoring-toy-example.git\");\n\t\t\t// For all with sample\n\t\t\t//\t\t\tminer.detectAll(repo, \"master\", new RefactoringHandler() {\n\t\t\t//\t\t\t\t @Override\n\t\t\t//\t\t\t\t public void handle(String commitId, List<Refactoring> refactorings) {\n\t\t\t//\t\t\t\t System.out.println(\"Refactorings at \" + commitId);\n\t\t\t//\t\t\t\t for (Refactoring ref : refactorings) {\n\t\t\t//\t\t\t\t System.out.println(ref.toString());\n\t\t\t////\t\t\t\t System.out.println(ref.toJSON());\n\t\t\t//\t\t\t\t }\n\t\t\t//\t\t\t\t }\n\t\t\t//\t\t\t\t});\n\t\t\t// For between 2 commits with sample\n\t\t\t//\t\t\t// start commit: 819b202bfb09d4142dece04d4039f1708735019b\n\t\t\t//\t\t\t// end commit: d4bce13a443cf12da40a77c16c1e591f4f985b47\n\t\t\t//\t\t\tminer.detectBetweenCommits(repo, \n\t\t\t//\t\t\t\t\t\"819b202bfb09d4142dece04d4039f1708735019b\", \"d4bce13a443cf12da40a77c16c1e591f4f985b47\",\n\t\t\t//\t\t\t\t\tnew RefactoringHandler() {\n\t\t\t//\t\t\t\t@Override\n\t\t\t//\t\t\t\tpublic void handle(String commitId, List<Refactoring> refactorings) {\n\t\t\t//\t\t\t\t\tSystem.out.println(\"Refactorings at \" + commitId);\n\t\t\t//\t\t\t\t\tfor (Refactoring ref : refactorings) {\n\t\t\t//\t\t\t\t\t\t//\t\t\t System.out.println(ref.toString());\n\t\t\t//\t\t\t\t\t\tSystem.out.println(ref.toJSON());\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// start commit: 40fd7ad244b350d657ca4f1a9efe667c52697327\n\t\t\t// end commit: 3ca48892811538e911eb3c5bafd60b4d9ca92483\n\t\t\tminer.detectBetweenCommits(repo, \n\t\t\t\t\t\"40fd7ad244b350d657ca4f1a9efe667c52697327\", \"3ca48892811538e911eb3c5bafd60b4d9ca92483\",\n\t\t\t\t\tnew RefactoringHandler() {\n\t\t\t\t@Override\n\t\t\t\tpublic void handle(String commitId, List<Refactoring> refactorings) {\n\t\t\t\t\tSystem.out.println(\"***********************************************************************************\");\n\t\t\t\t\tSystem.out.println(\"Refactorings at \" + commitId);\n\t\t\t\t\tfor (Refactoring ref : refactorings) {\n\t\t\t\t\t\t// System.out.println(ref.toString());\n\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(ref.toJSON());\n\t\t\t\t\t\tif (ref instanceof ExtractOperationRefactoring) {\n\t\t\t\t\t\t\tExtractOperationRefactoring refactoring = (ExtractOperationRefactoring)ref;\n\t\t\t\t\t\t\tUMLOperationBodyMapper mapper = refactoring.getBodyMapper();\n\t\t\t\t\t\t\tList<StatementObject> newLeaves = mapper.getNonMappedLeavesT2(); //newly added leaf statements\n\t\t\t\t\t\t\tList<CompositeStatementObject> newComposites = mapper.getNonMappedInnerNodesT2(); //newly added composite statements\n\t\t\t\t\t\t\tList<StatementObject> deletedLeaves = mapper.getNonMappedLeavesT1(); //deleted leaf statements\n\t\t\t\t\t\t\tList<CompositeStatementObject> deletedComposites = mapper.getNonMappedInnerNodesT1(); //deleted composite statements\n\t\t\t\t\t\t\tSystem.out.println(\"newLeaves: \\n\" + newLeaves);\n\t\t\t\t\t\t\tSystem.out.println(\"newComposites: \\n\" + newComposites);\n\t\t\t\t\t\t\tSystem.out.println(\"deletedLeaves: \\n\" + deletedLeaves);\n\t\t\t\t\t\t\tSystem.out.println(\"deletedComposites: \\n\" + deletedComposites);\n\n\t\t\t\t\t\t\tfor(AbstractCodeMapping mapping : mapper.getMappings()) {\n\t\t\t\t\t\t\t\tAbstractCodeFragment fragment1 = mapping.getFragment1();\n\t\t\t\t\t\t\t\tAbstractCodeFragment fragment2 = mapping.getFragment2();\n\t\t\t\t\t\t\t\tSet<Replacement> replacements = mapping.getReplacements();\n\t\t\t\t\t\t\t\tSystem.out.println(\"**************** Replacements: ***********\\n\");\n\t\t\t\t\t\t\t\tfor(Replacement replacement : replacements) {\n\t\t\t\t\t\t\t\t\tString valueBefore = replacement.getBefore();\n\t\t\t\t\t\t\t\t\tString valueAfter = replacement.getAfter();\n\t\t\t\t\t\t\t\t\tReplacementType type = replacement.getType();\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"valueBefore: \" + valueBefore);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"valueAfter: \" + valueAfter);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"type: \" + type);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"***********************************************************************************\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} catch (Exception e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n}", "public List<Commit> getAllCommits(Repository repo) throws Exception {\n List<Commit> commits = new ArrayList<>();\n RevWalk walk = this.createAllRevsWalk(repo, null);\n walk.markStart(walk.parseCommit(repo.resolve(\"HEAD\")));\n for (RevCommit r: walk){\n if(r.getParents().length>0){\n Commit c = getCommit(repo, r, r.getParent(0));\n commits.add(c);\n }else{\n Commit c = new Commit(r);\n commits.add(c);\n }\n\n }\n return commits;\n }", "void extractBed(Variant seqChange) {\n\t\tfor (int start = seqChange.getStart(); start <= (seqChange.getEnd() - minBases); start++) {\n\t\t\t// Find best interval starting at 'start'\n\t\t\tVariant sc = extractBed(seqChange, start);\n\t\t\tif (sc == null) continue; // Nothing found\n\n\t\t\t// Show interval\n\t\t\tprintBed(sc, score(sc));\n\n\t\t\tstart = sc.getEnd() + 1; // Move after interval's end\n\t\t}\n\t}", "public List<OntologyChange> createChanges() {\n\n var to = frameUpdate.getToFrame();\n var toSubject = to.getSubject();\n Frame serverFrame = getFrameForSubject(toSubject);\n if(serverFrame.equals(to)) {\n // Nothing to do\n return Collections.emptyList();\n }\n\n\n // Get the axioms that were consumed in the translation\n var fromAxioms = getAxiomsForFrame(frameUpdate.getFromFrame(), Mode.MAXIMAL);\n\n var ontologyIds = projectOntologiesIndex.getOntologyIds()\n .collect(toList());\n\n var toAxioms = getAxiomsForFrame(frameUpdate.getToFrame(), Mode.MINIMAL);\n\n\n var axiom2OntologyMap = LinkedHashMultimap.<OWLAxiom, OWLOntologyID>create();\n\n // Generate a map of existing axioms so we can ensure they stay in the correct place\n for(OWLOntologyID ontologyId : ontologyIds) {\n for(OWLAxiom fromAxiom : fromAxioms) {\n if(isContainedInOntology(fromAxiom, ontologyId)) {\n axiom2OntologyMap.put(fromAxiom, ontologyId);\n }\n }\n }\n\n\n var mutatedOntologies = Sets.<OWLOntologyID>newLinkedHashSet();\n List<OntologyChange> changes = Lists.newArrayList();\n for(OWLAxiom fromAxiom : fromAxioms) {\n for(OWLOntologyID ontologyId : ontologyIds) {\n if(isContainedInOntology(fromAxiom, ontologyId) && !toAxioms.contains(fromAxiom)) {\n mutatedOntologies.add(ontologyId);\n }\n // We need to add this here in case an axiom containing fresh entities has been added and then\n // removed (caused by a re-edit). The fresh entities will get \"grounded\" and then the axiom added\n // hence, ontology.contains() won't work.\n changes.add(of(ontologyId, fromAxiom));\n }\n }\n\n\n for(OWLAxiom toAxiom : toAxioms) {\n Collection<OWLOntologyID> existingLocations = axiom2OntologyMap.get(toAxiom);\n if(existingLocations.isEmpty()) {\n // Fresh axiom to be placed somewhere\n if(mutatedOntologies.size() == 1) {\n // Assume edit i.e. replacement of axiom in the same ontology.\n changes.add(AddAxiomChange.of(mutatedOntologies.iterator()\n .next(), toAxiom));\n }\n else {\n // Multiple ontologies were affected. We now need to place the fresh axiom in the appropriate\n // ontology\n OWLOntologyID freshAxiomOntology = getFreshAxiomOntology(fromAxioms, ontologyIds);\n changes.add(AddAxiomChange.of(freshAxiomOntology, toAxiom));\n }\n }\n else {\n // Ensure it is still in there\n for(OWLOntologyID ontId : existingLocations) {\n changes.add(AddAxiomChange.of(ontId, toAxiom));\n }\n }\n }\n return changes;\n }", "@Test\n\tpublic void testForwardStartLoss() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640669, PositionType.ZERO_BASED),\n\t\t\t\t\"ACG\", \"CGTT\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(1, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.1_3delinsCGTT\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation1.effects);\n\n\t\t// Delete chunk out of first exon, spanning start codon from the left.\n\t\tGenomeChange change2 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640660, PositionType.ZERO_BASED),\n\t\t\t\t\"CCCTCCAGACC\", \"GTTG\");\n\t\tAnnotation annotation2 = new BlockSubstitutionAnnotationBuilder(infoForward, change2).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation2.transcript.accession);\n\t\tAssert.assertEquals(1, annotation2.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.-9_2delinsGTTG\", annotation2.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation2.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation2.effects);\n\n\t\t// Delete chunk out of first exon, spanning start codon from the right.\n\t\tGenomeChange change3 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640671, PositionType.ZERO_BASED),\n\t\t\t\t\"GGACGGCTCCT\", \"CTTG\");\n\t\tAnnotation annotation3 = new BlockSubstitutionAnnotationBuilder(infoForward, change3).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation3.transcript.accession);\n\t\tAssert.assertEquals(1, annotation3.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.3_13delinsCTTG\", annotation3.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation3.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation3.effects);\n\n\t\t// Deletion from before transcript, reaching into the start codon.\n\t\tGenomeChange change4 = new GenomeChange(\n\t\t\t\tnew GenomePosition(refDict, '+', 1, 6640399, PositionType.ZERO_BASED),\n\t\t\t\t\"TCTCACCAGGCCCTTCTTCACGACCCTGGCCCCCCATCCAGCATCCCCCCTGGCCAATCCAATATGGCCCCCGGCCCCCGGGAGGCTGTCAGTGTGTTCCAGCCCTCCGCGTGCACCCCTCACCCTGACCCAAGCCCTCGTGCTGATAAATATGATTATTTGAGTAGAGGCCAACTTCCCGTTTCTCTCTCTTGACTCCAGGAGCTTTCTCTTGCATACCCTCGCTTAGGCTGGCCGGGGTGTCACTTCTGCCTCCCTGCCCTCCAGACCA\",\n\t\t\t\t\"ACCT\");\n\t\tAnnotation annotation4 = new BlockSubstitutionAnnotationBuilder(infoForward, change4).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation4.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation4.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.-69-201_1delinsACCT\", annotation4.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation4.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation4.effects);\n\t}", "private static Map<RevCommit, Set<Ref>> parseCommits(final Repository repo,\n final RevWalk rw, final Set<Ref> refs) throws IOException {\n Map<RevCommit, Set<Ref>> result = new HashMap<RevCommit, Set<Ref>>();\n for (Ref ref : refs) {\n final RevCommit commit;\n try {\n commit = rw.parseCommit(ref.getObjectId());\n } catch (IncorrectObjectTypeException notCommit) {\n // Its OK for a tag reference to point to a blob or a tree, this\n // is common in the Linux kernel or git.git repository.\n //\n continue;\n } catch (MissingObjectException notHere) {\n // Log the problem with this branch, but keep processing.\n //\n log.warn(\"Reference \" + ref.getName() + \" in \" + repo.getDirectory()\n + \" points to dangling object \" + ref.getObjectId());\n continue;\n }\n Set<Ref> relatedRefs = result.get(commit);\n if (relatedRefs == null) {\n relatedRefs = new HashSet<Ref>();\n result.put(commit, relatedRefs);\n }\n relatedRefs.add(ref);\n }\n return result;\n }", "public Map<String, Map<String, Integer>> compareCommit(RepositoryDTO repository, CommitDTO oldCommit,\r\n\t\t\tCommitDTO newCommit) {\r\n\r\n\t\tlogger.info(\"Compare commit : \" + oldCommit.getCommitDate().toString() + \" & commit : \"\r\n\t\t\t\t+ newCommit.getCommitDate().toString());\r\n\t\tif (oldCommit.getCommitDate().after(newCommit.getCommitDate())) {\r\n\t\t\t// exchange commit\r\n\t\t}\r\n\t\t;\r\n\r\n\t\tMap<String, Map<String, Integer>> statistics = new HashMap<String, Map<String, Integer>>();\r\n\r\n\t\tfor (FileDTO oldFile : oldCommit.getFiles()) {\r\n\t\t\tfor (FileDTO newFile : newCommit.getFiles()) {\r\n\t\t\t\tif (newFile.getStatus().equalsIgnoreCase(\"modified\")) {\r\n\t\t\t\t\tif (newFile.getFileName().equals(oldFile.getFileName())) {\r\n\t\t\t\t\t\tif (newFile.getFileExtension().toLowerCase().contains(\"java\")) {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tMap<String, Map<String, Integer>> compareStats = compareToStats(repository.getName(),\r\n\t\t\t\t\t\t\t\t\t\toldFile, newFile);\r\n\r\n\t\t\t\t\t\t\t\tlogger.info(\"Before -I (current) : \" + statistics.toString());\r\n\t\t\t\t\t\t\t\tlogger.info(\"Before -I (new) : \" + compareStats.toString());\r\n\r\n\t\t\t\t\t\t\t\t// Node type (Method, Field, etc.)\r\n\t\t\t\t\t\t\t\tfor (String type : compareStats.keySet()) {\r\n\r\n\t\t\t\t\t\t\t\t\tMap<String, Integer> tmpTypeToAdd = compareStats.get(type);\r\n\t\t\t\t\t\t\t\t\tMap<String, Integer> currentGlobalType = statistics.get(type);\r\n\r\n\t\t\t\t\t\t\t\t\tif (currentGlobalType == null) {\r\n\t\t\t\t\t\t\t\t\t\tstatistics.put(type, tmpTypeToAdd);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t// Action (Add, Delete, Insert, Move,\r\n\t\t\t\t\t\t\t\t\t\t// Update)\r\n\t\t\t\t\t\t\t\t\t\tfor (String action : tmpTypeToAdd.keySet()) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tint hitNumber = currentGlobalType.getOrDefault(action, 0);\r\n\t\t\t\t\t\t\t\t\t\t\tint hitToAdd = tmpTypeToAdd.getOrDefault(action, 0);\r\n\t\t\t\t\t\t\t\t\t\t\tcurrentGlobalType.put(action, hitNumber + hitToAdd);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tstatistics.put(type, currentGlobalType);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tlogger.info(\"After -I (current) : \" + statistics.toString());\r\n\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn statistics;\r\n\t}", "private TreeTableNode parseSingleCommit(Description commit) throws OWLException {\r\n\r\n\t\t// make the main annotation the top header\r\n\t\tSwoopChange main = new SwoopChange();\r\n\t\tmain.setAuthor(commit.getAuthor());\r\n\t\tmain.setCommitted(true); // not needed really\r\n\t\tmain.isTopNode = true; /* this is key */\r\n\t\tmain.setTimeStamp(commit.getCreated());\r\n\t\tmain.setDescription(commit.getAnnotatedEntityDefinition());\r\n\t\tTreeTableNode mainNode = new TreeTableNode(main);\r\n\t\t\r\n\t\t// parse change set associated with single commit\r\n\t\tString changeSetString = commit.getBody();\r\n\t\tif (changeSetString!=null) {\r\n\t\t\t// decode CDATA stuff\r\n\t\t\tchangeSetString = changeSetString.replaceAll(\"ENCODED-CDATA\", \"CDATA\");\r\n\t\t\tchangeSetString = changeSetString.replaceAll(\"]ENCODED]>\", \"]]>\"); \r\n\t\t\t\t\r\n\t\t\t// now split based on separator\r\n\t\t\tString[] changeStr = changeSetString.split(separator);\r\n\t\t\t\r\n\t\t\t// each split component is a separate change\r\n\t\t\tList repDesc = new ArrayList(); // list of Description (changes)\r\n\t\t\tfor (int i=0; i<changeStr.length; i++) {\r\n\t\t\t\tString swcDesc = changeStr[i]; // SwoopChange mapped to a Description serialized in RDF/XML\r\n\t\t\t\tDescription desc = new Description();\r\n\t\t\t\tdesc.deserializeFromString(swcDesc, swoopModel);\r\n\t\t\t\trepDesc.add(desc);\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// transform Description list to SwoopChange list\r\n\t\t\tList swcChangeList = this.transformChangeList(repDesc);\r\n\t\t\t\r\n\t\t\t// add each swoopChange as a child of mainNode\r\n\t\t\tthis.sortChanges(swcChangeList);\r\n\t\t\tfor (Iterator iter2 = swcChangeList.iterator(); iter2.hasNext();) {\r\n\t\t\t\tSwoopChange swc = (SwoopChange) iter2.next();\r\n\t\t\t\tTreeTableNode swcNode = new TreeTableNode(swc);\r\n\t\t\t\tswcNode.swoopChange.isOnRepository = true;\r\n\t\t\t\tmainNode.addChild(swcNode);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn mainNode;\r\n\t}", "private void updateHighlightRanges(int highlightAnnotationRangeStart, int highlightAnnotationRangeEnd, boolean isWorldChange) {\n \t\tif (highlightAnnotationRangeStart != Integer.MAX_VALUE) {\n \n \t\t\tint maxRangeStart= highlightAnnotationRangeStart;\n \t\t\tint maxRangeEnd= highlightAnnotationRangeEnd;\n \n \t\t\tif (fTotalHighlightAnnotationRange != null) {\n \t\t\t\tmaxRangeStart= Math.min(maxRangeStart, fTotalHighlightAnnotationRange.offset);\n \t\t\t\tmaxRangeEnd= Math.max(maxRangeEnd, fTotalHighlightAnnotationRange.offset + fTotalHighlightAnnotationRange.length);\n \t\t\t}\n \n \t\t\tif (fTotalHighlightAnnotationRange == null)\n \t\t\t\tfTotalHighlightAnnotationRange= new Position(0);\n \t\t\tif (fCurrentHighlightAnnotationRange == null)\n \t\t\t\tfCurrentHighlightAnnotationRange= new Position(0);\n \n \t\t\tif (isWorldChange) {\n \t\t\t\tfTotalHighlightAnnotationRange.offset= highlightAnnotationRangeStart;\n \t\t\t\tfTotalHighlightAnnotationRange.length= highlightAnnotationRangeEnd - highlightAnnotationRangeStart;\n \t\t\t\tfCurrentHighlightAnnotationRange.offset= maxRangeStart;\n \t\t\t\tfCurrentHighlightAnnotationRange.length= maxRangeEnd - maxRangeStart;\n \t\t\t} else {\n \t\t\t\tfTotalHighlightAnnotationRange.offset= maxRangeStart;\n \t\t\t\tfTotalHighlightAnnotationRange.length= maxRangeEnd - maxRangeStart;\n \t\t\t\tfCurrentHighlightAnnotationRange.offset=highlightAnnotationRangeStart;\n \t\t\t\tfCurrentHighlightAnnotationRange.length= highlightAnnotationRangeEnd - highlightAnnotationRangeStart;\n \t\t\t}\n \t\t} else {\n \t\t\tif (isWorldChange) {\n \t\t\t\tfCurrentHighlightAnnotationRange= fTotalHighlightAnnotationRange;\n \t\t\t\tfTotalHighlightAnnotationRange= null;\n \t\t\t} else {\n \t\t\t\tfCurrentHighlightAnnotationRange= null;\n \t\t\t}\n \t\t}\n \n \t\tadaptToDocumentLength(fCurrentHighlightAnnotationRange);\n \t\tadaptToDocumentLength(fTotalHighlightAnnotationRange);\n \t}", "public static void main(String[] args) throws IOException, SQLException {\n\n // boilerplate\n sourceDB = AndroidDBManager.getProductionInstance();\n analysisDB = AndroidDBManager.getAnalysisInstance();\n\n BufferedWriter resFile = new BufferedWriter(new FileWriter(new File(\"commits.csv\")));\n\n // get the list of committers first\n List<AnalysisPeople> committers = analysisDB.getPeopleForTheTag(\"change\");\n System.out.println(\"will process \" + committers.size() + \" people records\");\n\n for (AnalysisPeople p : committers) {\n System.out.println(p.getEmail() + \" start: \" + p.getActivity_begin() + \", end: \"\n + p.getActivity_end());\n\n List<Change> changes = sourceDB.getAuthorChanges(p.getId(), p.getActivity_begin(),\n p.getActivity_end());\n System.out.println(\" .. \" + changes.size() + \" change(s) found.\");\n\n for (Change c : changes) {\n StringBuilder csvLine = new StringBuilder();\n StringBuilder sbTemp = new StringBuilder();\n\n // date/author/project/target/commits\n sbTemp.append(c.getAuthor_date()).append(COMMA);\n sbTemp.append(\"\\\"\").append(p.getEmail()).append(\"\\\"\").append(COMMA);\n sbTemp.append(sourceDB.getProject(c.getProject_id()).getName()).append(COMMA);\n for (ChangeTarget target : sourceDB.getTargets(c.getId())) {\n csvLine.append(sbTemp.toString()).append(\"\\\"\").append(target.getTarget()).append(\"\\\"\")\n .append(COMMA);\n csvLine.append(target.isAdded()).append(COMMA);\n csvLine.append(target.isEdited()).append(COMMA);\n csvLine.append(target.isDeleted()).append(COMMA).append(CR);\n resFile.write(csvLine.toString());\n }\n }\n resFile.close();\n }\n }", "public void solve(int startX, int startY, int endX, int endY) {\r\n // re-inicializar células para encontrar o caminho\r\n for (Cell[] cellrow : this.cells) {\r\n for (Cell cell : cellrow) {\r\n cell.parent = null;\r\n cell.visited = false;\r\n cell.inPath = false;\r\n cell.travelled = 0;\r\n cell.projectedDist = -1;\r\n }\r\n }\r\n // células ainda estão sendo consideradas\r\n ArrayList<Cell> openCells = new ArrayList<>();\r\n // célula sendo considerada\r\n Cell endCell = getCell(endX, endY);\r\n if (endCell == null) return; // saia se terminar fora dos limites\r\n { // bloco anônimo para excluir o início, porque não usado posteriormente\r\n Cell start = getCell(startX, startY);\r\n if (start == null) return; // saia se começar fora dos limites\r\n start.projectedDist = getProjectedDistance(start, 0, endCell);\r\n start.visited = true;\r\n openCells.add(start);\r\n }\r\n boolean solving = true;\r\n while (solving) {\r\n if (openCells.isEmpty()) return; // sair, nenhum caminho\r\n // classifique openCells de acordo com a menor distância projetada\r\n Collections.sort(openCells, new Comparator<Cell>() {\r\n @Override\r\n public int compare(Cell cell1, Cell cell2) {\r\n double diff = cell1.projectedDist - cell2.projectedDist;\r\n if (diff > 0) return 1;\r\n else if (diff < 0) return -1;\r\n else return 0;\r\n }\r\n });\r\n Cell current = openCells.remove(0); // célula pop menos projetada\r\n if (current == endCell) break; // no final\r\n for (Cell neighbor : current.neighbors) {\r\n double projDist = getProjectedDistance(neighbor,\r\n current.travelled + 1, endCell);\r\n if (!neighbor.visited || // ainda não visitado\r\n projDist < neighbor.projectedDist) { // melhor caminho\r\n neighbor.parent = current;\r\n neighbor.visited = true;\r\n neighbor.projectedDist = projDist;\r\n neighbor.travelled = current.travelled + 1;\r\n if (!openCells.contains(neighbor))\r\n openCells.add(neighbor);\r\n }\r\n }\r\n }\r\n // criar caminho do fim ao começo\r\n Cell backtracking = endCell;\r\n backtracking.inPath = true;\r\n while (backtracking.parent != null) {\r\n backtracking = backtracking.parent;\r\n backtracking.inPath = true;\r\n }\r\n }", "public I getChangeInfo(int startSeqNum);", "public List<Commit> getAllCommits(Project project, String branchName);", "private static List<HomologousRange> processAndSaveBed(String inputBed, String inputVcf,\n Fasta queryFasta,\n Fasta targetFasta, Set<String> queryChromosomesToRetain, boolean allowOverlappingBed) {\n // Open necessary readers\n BufferedReader bedReader = null;\n boolean simplifiedPreprocessing = ARGS.simplifiedRegionsPreprocessing;\n try {\n logger.log(Level.INFO, \"Reading BED\");\n bedReader = Files.newBufferedReader(Paths.get(inputBed), UTF_8);\n } catch (IOException ex) {\n GenomeWarpUtils.fail(logger, \"failed to parse input BED/FASTA/VCF file(s): \"\n + ex.getMessage());\n }\n\n // Loads the input BED, ensures it is non-overlapping, and splits it at non-DNA\n // characters.\n logger.log(Level.INFO, \"Load BED from file.\");\n SortedMap<String, List<GenomeRange>> rawInputBed = null;\n try {\n rawInputBed = GenomeRangeUtils.getBedRanges(bedReader, queryChromosomesToRetain);\n } catch (IOException ex) {\n GenomeWarpUtils.fail(logger, \"Failed to read from input bed: \" + ex.getMessage());\n } catch (IllegalArgumentException iae) {\n GenomeWarpUtils.fail(logger, \"Input bed error: \" + iae.getMessage());\n }\n\n if (allowOverlappingBed) {\n logger.log(Level.INFO, \"Performing any required merging of BED records.\");\n GenomeRangeUtils.createSortedMergedRanges(rawInputBed);\n } else {\n if (!GenomeRangeUtils.ensureSortedMergedRanges(rawInputBed)) {\n GenomeWarpUtils.fail(logger,\n \"Input BED error: regions are not all sorted and non-overlapping. This is likely an \" +\n \"input error. However, GenomeWarp can sort and de-duplicate regions by including the \" +\n \"--allow_overlapping_bed flag and re-running.\");\n }\n }\n\n // Takes the input BED and splits at non-DNA characters\n logger.log(Level.INFO, \"Split DNA at non-DNA characters\");\n SortedMap<String, List<GenomeRange>> dnaOnlyInputBEDPerChromosome = null;\n try {\n dnaOnlyInputBEDPerChromosome = GenomeRangeUtils.splitAtNonDNA(rawInputBed, queryFasta);\n } catch (IOException ex) {\n GenomeWarpUtils.fail(logger, \"Failed to read from input FASTA: \" + ex.getMessage());\n }\n\n /**\n * PRE PROCESSING\n */\n List<GenomeRange> queryBED = (simplifiedPreprocessing) ?\n GenomeRangeUtils.generateQueryBEDWithSimplifiedPreprocessing(dnaOnlyInputBEDPerChromosome):\n GenomeRangeUtils\n .generateQueryBEDWithImprovedPreprocessing(dnaOnlyInputBEDPerChromosome, inputVcf,\n ARGS.bedWindowSize);\n\n /**\n * LIFTOVER\n **/\n logger.log(Level.INFO, String.format(\"Performing liftover on %d ranges\", queryBED.size()));\n SortedMap<String, List<GenomeRange>> liftedBEDPerChromosome = performLiftOver(queryBED);\n List<GenomeRange> targetBED = new ArrayList<>();\n\n /**\n * POST LIFTOVER\n **/\n for (List<GenomeRange> liftedBEDChr: liftedBEDPerChromosome.values()) {\n Collections.sort(liftedBEDChr);\n\n logger.log(Level.INFO, \"Removing overlap\");\n\n // Remove overlap in processed BED file\n targetBED.addAll(GenomeRangeUtils.omitOverlap(liftedBEDChr));\n }\n\n logger.log(Level.INFO, \"Starting join regions and analysis\");\n\n // Create joined structure for query/target BED files\n List<HomologousRange> joinedRegions = GenomeRangeUtils.joinRegions(queryBED, targetBED);\n List<HomologousRange> namedRegions = analyzeRegions(queryFasta, targetFasta, joinedRegions);\n\n if (ARGS.intermediateFiles) {\n try {\n PrintWriter out = new PrintWriter(Files.newBufferedWriter(Paths.get(ARGS.workDir\n + \"/out.bed.annotated\"), UTF_8));\n for (HomologousRange currRegion : namedRegions) {\n out.println(GenomeWarpUtils.homologousToString(currRegion));\n }\n out.close();\n } catch (IOException ex) {\n GenomeWarpUtils.fail(logger, \"failed to write out annotated regions: \"\n + ex.getMessage());\n }\n }\n\n try {\n bedReader.close();\n } catch (IOException ex) {\n GenomeWarpUtils.fail(logger, \"failed to close opened buffers: \" + ex.getMessage());\n }\n\n return namedRegions;\n }", "public Set<Vertex> pre(Vertex start){\n\t\tSet<Vertex> reach = new HashSet<Vertex>();\n\t\tif(this.edgesByEnd.get(start) == null)\n\t\t\treturn reach;\n\t\tfor(LabeledEdge trans : this.edgesByEnd.get(start)){\n\t\t\treach.add(trans.getStart());\n\t\t}\n\t\treturn reach;\n\t}", "@SuppressWarnings(\"unchecked\")\n private Map<AttributeFamilyDescriptor, Set<AttributeFamilyDescriptor>>\n indexFamilyToCommitLogs() {\n\n // each attribute and its associated primary family\n final Map<AttributeDescriptor, AttributeFamilyDescriptor> attrToCommitLog;\n attrToCommitLog = repo.getAllFamilies()\n .filter(af -> af.getType() == StorageType.PRIMARY)\n // take pair of attribute to associated commit log\n .flatMap(af -> af.getAttributes()\n .stream()\n .map(attr -> Pair.of(attr, af)))\n .collect(Collectors.toMap(Pair::getFirst, Pair::getSecond));\n\n return (Map) repo.getAllFamilies()\n .filter(af -> af.getType() == StorageType.REPLICA)\n // map to pair of attribute family and associated commit log(s) via attributes\n .map(af -> {\n if (af.getSource().isPresent()) {\n String source = af.getSource().get();\n return Pair.of(af, Collections.singleton(repo\n .getAllFamilies()\n .filter(af2 -> af2.getName().equals(source))\n .findAny()\n .orElseThrow(() -> new IllegalArgumentException(\n \"Unknown family \" + source))));\n }\n return Pair.of(af,\n af.getAttributes()\n .stream()\n .map(attr -> {\n AttributeFamilyDescriptor commitFamily = attrToCommitLog.get(attr);\n Optional<OnlineAttributeWriter> writer = repo.getWriter(attr);\n if (commitFamily == null && writer.isPresent()) {\n throw new IllegalStateException(\n \"Missing source commit log family for \" + attr);\n }\n return commitFamily;\n })\n .filter(Objects::nonNull)\n .collect(Collectors.toSet()));\n })\n .collect(Collectors.toMap(Pair::getFirst, Pair::getSecond));\n }", "private static void rebase(Gitlet currCommit, String[] args) {\n if (!isSure()) {\n return;\n } else if (!rebaseCheck(currCommit, args)) {\n return;\n } else if (sameHist(currCommit, args[1])) {\n Commit toChange = currCommit.tree.getHeadCommit(args[1]);\n currCommit.tree.setHeadCommit(toChange);\n currCommit.tree.setCommit(Integer.parseInt(toChange.getId()));\n } else {\n Commit split = findSplitBranch(currCommit, args);\n HashMap<String, String> splitMap = split.getFileLoc();\n TreeSet<Commit> tempCurr = currCommit.tree.getCommits();\n TreeSet<Commit> tempBranch = currCommit.tree.getCommits(args[1]);\n TreeSet<Commit> currCommits = (TreeSet<Commit>) tempCurr.subSet(\n currCommit.tree.getHeadCommit(), true, split, true);\n TreeSet<Commit> branchCommits = (TreeSet<Commit>) tempBranch\n .subSet(currCommit.tree.getHeadCommit(args[1]), true,\n split, true);\n for (Commit x : currCommits) {\n currCommit.tree.removeCommit(x);\n currCommit.tree.addSize();\n String newId = currCommit.tree.getSize().toString();\n Commit commitToAdd = x.commitCopy(x, newId);\n\n HashMap<String, String> newMap = propogate(x.getFileLoc(),\n currCommit.tree.getHeadCommit(args[1]).getFileLoc(),\n splitMap);\n commitToAdd.setFileLoc(newMap);\n\n currCommit.tree.addData(commitToAdd);\n if (currCommit.tree.getHeadCommit().same(x)) {\n currCommit.tree.setHeadCommit(commitToAdd);\n }\n }\n for (Commit x : branchCommits) {\n currCommit.tree.addCommit(x);\n }\n updateFiles(currCommit);\n }\n addSerializeFile(currCommit);\n }", "private static Commit findSplitBranch(Gitlet currCommit, String[] args) {\n TreeSet<Commit> currCommits = currCommit.tree.getCommits();\n TreeSet<Commit> mergeCommits = currCommit.tree.getCommits(args[1]);\n Commit splitCommit = null;\n for (Commit x : currCommits) {\n if (mergeCommits.contains(x)) {\n splitCommit = x;\n break;\n }\n }\n return splitCommit;\n }", "@Test\n\tpublic void diffRevisions() throws Exception {\n\t\tRepository repo = new FileRepository(testRepo);\n\t\tRevCommit commit1 = add(\"test.txt\", \"content\");\n\t\tRevCommit commit2 = add(\"test.txt\", \"content2\");\n\t\tTreeWalk walk = TreeUtils.diffWithCommits(repo,\n\t\t\t\tConstants.MASTER + \"~1\", Constants.MASTER);\n\t\tassertNotNull(walk);\n\t\tassertEquals(2, walk.getTreeCount());\n\t\tassertTrue(walk.next());\n\t\tassertEquals(\"test.txt\", walk.getPathString());\n\t\tassertEquals(BlobUtils.getId(repo, commit1, \"test.txt\"),\n\t\t\t\twalk.getObjectId(0));\n\t\tassertEquals(BlobUtils.getId(repo, commit2, \"test.txt\"),\n\t\t\t\twalk.getObjectId(1));\n\t\tassertFalse(walk.next());\n\t}", "@Override\r\n public void extractEventsBetween(Destination<LogEvent> visitor, long start, long end) {\n historicalBuffersLock.lock();\r\n try {\r\n for (Block block : historicalBlocks) {\r\n\r\n if (TimeUtils.overlaps(block.startTime, block.endTime, start, end)) {\r\n\r\n byte[] data = block.buffer.array();\r\n ByteBuffer compressed = ByteBuffer.wrap(data);\r\n compressed.limit(block.watermark);\r\n\r\n logger.fine(\"Visiting block with data from '{}' to '{}' : search criteria from '{}' to '{}' : block is '{}'\",\r\n Logger.toDateString(block.startTime),\r\n Logger.toDateString(block.endTime),\r\n Logger.toDateString(start),\r\n Logger.toDateString(end),\r\n compressed);\r\n\r\n ByteBuffer decompress = compressionStrategy.decompress(compressed);\r\n extractEventsBetween(visitor, decompress, start, end);\r\n }\r\n }\r\n } finally {\r\n historicalBuffersLock.unlock();\r\n }\r\n\r\n if (currentBlock != null) {\r\n ByteBuffer readBuffer;\r\n // currentBufferLock.writeLock().lock();\r\n try {\r\n // Now have a look in the current buffer\r\n // int position = currentBlock.buffer.position();\r\n readBuffer = ByteBuffer.wrap(currentBlock.buffer.array());\r\n readBuffer.limit(currentBufferPosition);\r\n } finally {\r\n // currentBufferLock.writeLock().unlock();\r\n }\r\n\r\n try {\r\n extractEventsBetween(visitor, readBuffer, start, end);\r\n } catch (BufferUnderflowException e) {\r\n logger.warn(\"Failed to read current buffer, buffer is '{}'\", readBuffer);\r\n throw e;\r\n }\r\n }\r\n }", "private void startFromLastCommit() throws Exception {\n eventQueue = new ArrayBlockingQueue<>(eventQueueSize);\n deltaContext.clearMetrics();\n\n OffsetAndSequence offsetAndSequence = deltaContext.loadOffset();\n offset = offsetAndSequence.getOffset();\n QueueingEventEmitter emitter = new QueueingEventEmitter(readerDefinition, offsetAndSequence.getSequenceNumber(),\n eventQueue);\n\n LOG.info(\"Starting from last committed offset {}\", offset.get());\n\n eventReader = source.createReader(readerDefinition, deltaContext, emitter);\n eventConsumer = target.createConsumer(deltaContext);\n\n LOG.info(\"Starting Event Reader...\");\n eventReader.start(offset);\n LOG.info(\"Started Event Reader.\");\n LOG.info(\"Starting Event Consumer...\");\n eventConsumer.start();\n LOG.info(\"Started Event Consumer.\");\n }", "public Map<String, Map<String, Integer>> compareRecursively(RepositoryDTO repository, List<CommitDTO> commits) {\r\n\t\tMap<String, Map<String, Integer>> statistics = new HashMap<String, Map<String, Integer>>();\r\n\r\n\t\tif (commits.size() >= 2) {\r\n\r\n\t\t\tboolean ascSorted = commits.get(0).getCommitDate().before(commits.get(1).getCommitDate());\r\n\r\n\t\t\tfor (int i = 0; i < commits.size() - 1; i++) {\r\n\t\t\t\tint indexOld = ascSorted ? i : commits.size() - 1 - i;\r\n\t\t\t\tint indexNewer = indexOld + (ascSorted ? 1 : -1);\r\n\r\n\t\t\t\tMap<String, Map<String, Integer>> compareStats = compareCommit(repository, commits.get(indexOld),\r\n\t\t\t\t\t\tcommits.get(indexNewer));\r\n\r\n\t\t\t\tlogger.info(\"Before -G (current) : \" + statistics.toString());\r\n\t\t\t\tlogger.info(\"Before -G (new) : \" + compareStats.toString());\r\n\r\n\t\t\t\t// Node type (Method, Field, etc.)\r\n\t\t\t\tfor (String type : compareStats.keySet()) {\r\n\r\n\t\t\t\t\tMap<String, Integer> tmpTypeToAdd = compareStats.get(type);\r\n\t\t\t\t\tMap<String, Integer> currentGlobalType = statistics.get(type);\r\n\r\n\t\t\t\t\tif (currentGlobalType == null) {\r\n\t\t\t\t\t\tstatistics.put(type, tmpTypeToAdd);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Action (Add, Delete, Insert, Move, Update)\r\n\t\t\t\t\t\tfor (String action : tmpTypeToAdd.keySet()) {\r\n\r\n\t\t\t\t\t\t\tInteger hitNumber = currentGlobalType.getOrDefault(action, 0);\r\n\t\t\t\t\t\t\tInteger hitToAdd = tmpTypeToAdd.getOrDefault(action, 0);\r\n\t\t\t\t\t\t\tcurrentGlobalType.put(action, hitNumber + hitToAdd);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tstatistics.put(type, currentGlobalType);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlogger.info(\"After (new) : \" + statistics.toString());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn statistics;\r\n\t}", "@Test\n public void testCommitsApiWithSpecificCommit() throws Exception\n {\n \n \n RequestBuilder builder = new RequestBuilder(\"GET\");\n Request request = builder.setUrl(\n UriTemplate.fromTemplate(BASE)\n .append(PATH_EXPRESSION)\n .set(\"user\", \"damnhandy\")\n .set(\"repo\", \"Handy-URI-Templates\")\n .set(\"function\",\"commits\")\n .set(\"id\",\"7cdf7ff75f8ede138228ceff7f5a1c18a5835b94\")\n .expand()).build();\n Assert.assertEquals(\"https://api.github.com/repos/damnhandy/Handy-URI-Templates/commits/7cdf7ff75f8ede138228ceff7f5a1c18a5835b94\", request.getUrl());\n executeRequest(createClient(), request);\n }", "public List<Commit> getAllCommits() {\r\n return datastore.createQuery(Commit.class)\r\n .field(\"vcs_system_id\").equal(vcSystem.getId())\r\n .asList();\r\n }", "@Test\n public void testClassFieldModifierChange() {\n String fileBeforePath = FILE_DIR_FIX + \"0_CompilerConfiguration.java\";\n String fileAfterPath = FILE_DIR_FIX + \"1_CompilerConfiguration.java\";\n Commit testCommit = new Commit(fileBeforePath, fileAfterPath);\n\n // for this file only one change should be detected, in specific LOC\n assertEquals(Range.between(59, 59), testCommit.getChanges().get(0).getSrcNodeFineLOCs());\n assertEquals(Range.between(60, 60), testCommit.getChanges().get(0).getDstNodeFineLOCs());\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello\");\n\t\t//ADDing comment 1 in testRebase branch\n\t\t//Adding commit2 in testRebase branch\n\t\t\n\t\t\n\t\t//Add commit 1.1 in master branch\n\n\t}", "public GetMovieChangesResponse getMovieChanges(int movieId, LocalDate endDate, Integer page, LocalDate startDate) {\n // /movie/{movie_id}/changes\n String path = String.format(\"/movie/%s/changes\", movieId);\n Map<String, Object> requestParams = new HashMap<>();\n requestParams.put(\"end_date\", endDate);\n requestParams.put(\"page\", page);\n requestParams.put(\"start_date\", startDate);\n return restClient.get(path, requestParams, new TypeReference<>() {\n\n\n }\n );\n }", "public static void status() {\n Set branchSet = commitPointers.readBranches().keySet();\n ArrayList<String> sortedBranches = (ArrayList) branchSet.stream().sorted().collect(Collectors.toList());\n String currBranch = commitPointers.readHeadCommit()[0];\n System.out.println(\"=== Branches ===\");\n for (String branch: sortedBranches) {\n if (currBranch.equals(branch)) {\n System.out.println(\"*\" + currBranch);\n } else {\n System.out.println(branch);\n }\n }\n stagingArea = Utils.readObject(STAGING_FILE, HashMap.class);\n\n ArrayList<String> sortedStaged = (ArrayList) stagingArea.keySet().stream().sorted().collect(Collectors.toList());\n System.out.println();\n System.out.println(\"=== Staged Files ===\");\n for (String staged : sortedStaged) {\n System.out.println(staged);\n }\n\n System.out.println();\n System.out.println(\"=== Removed Files ===\");\n stagingRemoveArea = Utils.readObject(STAGING_REMOVE_FILE, HashMap.class);\n ArrayList<String> sortedRemoved = (ArrayList) stagingRemoveArea.keySet().stream().sorted().collect(Collectors.toList());\n for (String removed : sortedRemoved) {\n System.out.println(removed);\n }\n System.out.println();\n\n System.out.println(\"=== Modifications Not Staged For Commit ===\");\n\n Commit Head = Utils.readObject(Utils.join(Commit.COMMIT_FOLDER, commitPointers.readHeadCommit()[1] + \".txt\"), Commit.class);\n //File blobs contains a SHAID + file name\n\n HashMap<String, String> modUntracked = new HashMap<>();\n\n //iterates through head Blobs\n for (HashMap.Entry<String, String> headfileBlob : Head.fileBlobs.entrySet()) {\n\n File cwdBFile = Utils.join(CWD, headfileBlob.getKey());\n\n if (!cwdBFile.exists() && !stagingRemoveArea.containsKey(headfileBlob.getKey())) {\n modUntracked.put(headfileBlob.getKey(), \"(deleted)\");\n }\n else if (cwdBFile.exists()){\n\n Blob tempBlob = new Blob(headfileBlob.getKey(), cwdBFile);\n String tempBlobId = Utils.sha1(Utils.serialize(tempBlob));\n\n\n if(!tempBlobId.equals(headfileBlob.getValue())) {\n //if not in staging area\n if (!stagingArea.containsKey(headfileBlob.getKey())) {\n modUntracked.put(headfileBlob.getKey(), \"(modified)\");\n }\n //TODO: IS THIS PART NECCESARY?\n else if (stagingArea.containsKey(headfileBlob.getKey()) && !stagingArea.get(headfileBlob.getKey()).equals(headfileBlob.getValue())) {\n modUntracked.put(headfileBlob.getKey(), \"(modified)\");\n }\n }\n }\n }\n\n ArrayList<String> sortedModNames = (ArrayList) modUntracked.keySet().stream().sorted().collect(Collectors.toList());\n for (String modFileName : sortedModNames){\n System.out.println(modFileName + \" \" + modUntracked.get(modFileName));\n }\n System.out.println();\n\n\n\n ArrayList<String> untracked = new ArrayList<>();\n System.out.println(\"=== Untracked Files ===\");\n for (String cwdfile : CWD.list()) {\n if(!cwdfile.equals(\".gitlet\")) {\n File currfile = Utils.join(CWD, cwdfile);\n if (currfile.exists() && !Head.fileBlobs.containsKey(cwdfile)) {\n untracked.add(cwdfile);\n }\n }\n }\n\n untracked = (ArrayList) untracked.stream().sorted().collect(Collectors.toList());\n\n for (String untrackedName : untracked){\n System.out.println(untrackedName);\n }\n }", "List<Bug> getOpenedBugsByProject(int projectId, int start, int limit);", "public void analyzeLifetimeClass(){\n currentClassCommitData = new ArrayList<>();\n String classPath = currentExtractMethod.getRefactoringData().getFileLoc();\n Iterable<RevCommit> commits = null;\n try {\n commits = git.log().addPath(classPath).call();\n } catch (GitAPIException e) {\n e.printStackTrace();\n }\n\n List<RevCommit> orderedList = Utils.reverseIterable(commits);\n for(int i = 0; i < orderedList.size(); i++){\n RevCommit commit = orderedList.get(i);\n Date commitDate = commit.getAuthorIdent().getWhen();\n currentClassCommitData.add(new ClassCommitData(\n commitDate,\n i==0,\n currentExtractMethod.getRefactoringData().getCommitDate().equals(commitDate)));\n }\n }", "public Set<Vertex> post(Vertex start){\n\t\tSet<Vertex> reach = new HashSet<Vertex>();\n\t\tif(this.edgesByStart.get(start) == null)\n\t\t\treturn reach;\n\t\tfor(LabeledEdge trans : this.edgesByStart.get(start)){\n\t\t\treach.add(trans.getEnd());\n\t\t}\n\t\treturn reach;\n\t\t\n\t}", "Map<String, List<BuildDetails>> getProjectExecutions(String startDate,\n\t String endDate);", "private static Set<Ref> includedIn(final Repository repo, final RevWalk rw,\n final RevCommit target, final Set<Ref> tipRefs) throws IOException,\n MissingObjectException, IncorrectObjectTypeException {\n\n Set<Ref> result = new HashSet<Ref>();\n\n Map<RevCommit, Set<Ref>> tipsAndCommits = parseCommits(repo, rw, tipRefs);\n\n List<RevCommit> tips = new ArrayList<RevCommit>(tipsAndCommits.keySet());\n Collections.sort(tips, new Comparator<RevCommit>() {\n @Override\n public int compare(RevCommit c1, RevCommit c2) {\n return c1.getCommitTime() - c2.getCommitTime();\n }\n });\n\n Set<RevCommit> targetReachableFrom = new HashSet<RevCommit>();\n targetReachableFrom.add(target);\n\n for (RevCommit tip : tips) {\n boolean commitFound = false;\n rw.resetRetain(RevFlag.UNINTERESTING);\n rw.markStart(tip);\n for (RevCommit commit : rw) {\n if (targetReachableFrom.contains(commit)) {\n commitFound = true;\n targetReachableFrom.add(tip);\n result.addAll(tipsAndCommits.get(tip));\n break;\n }\n }\n if (!commitFound) {\n rw.markUninteresting(tip);\n }\n }\n\n return result;\n }", "public void findCommits(String logMsg) {\n List<String> allCommitID = getAllCommits();\n int countTotal = 0;\n for (String cmt: allCommitID) {\n File commitFile = new File(Main.ALL_COMMITS, cmt);\n Commit associatedCommit =\n Utils.readObject(commitFile, Commit.class);\n if (associatedCommit.getLogMsg().equals(logMsg)) {\n System.out.println(cmt);\n countTotal = countTotal + 1;\n }\n }\n if (countTotal == 0) {\n System.out.println(\"Found no commit with that message.\");\n }\n }", "public GitCommit[] getCommits()\n {\n List <GitCommit> list = new ArrayList(); for(GitCommit c=getCommit(); c!=null; c = c.getParent()) list.add(c);\n return list.toArray(new GitCommit[list.size()]);\n }", "public Vector<Commitment> setCommitmentCandidates(Vector<Commitment> commitments)\n {\n int index;\n Commitment aCommitment;\n //-------------------------\n\n commitmentCandidates = new Vector<Commitment>();\n index = 0;\n while(index < commitments.size())\n {\n aCommitment = commitments.get(index);\n if(shouldIncludeCommitment(aCommitment))\n commitmentCandidates.add(aCommitment);\n //end if\n index = index + 1;\n }//end while\n return commitmentCandidates;\n }", "protected void commit() {\n \t\t\tif (fStart < 0) {\n \t\t\t\tif (fDocumentUndoManager.fFoldingIntoCompoundChange) {\n \t\t\t\t\tfDocumentUndoManager.fCurrent= createCurrent();\n \t\t\t\t} else {\n \t\t\t\t\treinitialize();\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tupdateTextChange();\n \t\t\t\tfDocumentUndoManager.fCurrent= createCurrent();\n \t\t\t}\n \t\t\tfDocumentUndoManager.resetProcessChangeState();\n \t\t}", "@Test\r\n\tpublic void testCheck_featureBeginEndPositionEqual2() {\r\n\t\tint beginN = 40;\r\n\t\tboolean removeall = false;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ADFSGDFHGHJK\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 45,\r\n\t\t\t\t(long) 45));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tentry.addFeature(feature1);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN, removeall).size() == 1);\r\n\t}", "@Test(dataProvider = \"doFetchInSeparateProcess\", dataProviderClass = FetchOptionsDataProvider.class)\n public void testCollectBuildChanges(boolean fetchInSeparateProcess) throws Exception {\n System.setProperty(\"teamcity.git.fetch.separate.process\", String.valueOf(fetchInSeparateProcess));\n GitVcsSupport support = getSupport();\n VcsRoot root = getRoot(\"master\");\n // ensure that all revisions reachable from master are fetched\n final List<ModificationData> ms = support.collectChanges(root, VERSION_TEST_HEAD, CUD1_VERSION, new CheckoutRules(\"\"));\n assertEquals(2, ms.size());\n ModificationData m2 = ms.get(1);\n assertEquals(\"The second commit\\n\", m2.getDescription());\n assertEquals(3, m2.getChanges().size());\n for (VcsChange ch : m2.getChanges()) {\n assertEquals(VcsChange.Type.ADDED, ch.getType());\n assertEquals(\"dir/\", ch.getFileName().substring(0, 4));\n }\n ModificationData m1 = ms.get(0);\n assertEquals(\"more changes\\n\", m1.getDescription());\n assertEquals(CUD1_VERSION, m1.getVersion());\n assertEquals(3, m1.getChanges().size());\n VcsChange ch10 = m1.getChanges().get(0);\n assertEquals(\"dir/a.txt\", ch10.getFileName());\n assertEquals(CUD1_VERSION, ch10.getAfterChangeRevisionNumber());\n assertEquals(m2.getVersion(), ch10.getBeforeChangeRevisionNumber());\n assertEquals(VcsChange.Type.CHANGED, ch10.getType());\n VcsChange ch11 = m1.getChanges().get(1);\n assertEquals(\"dir/c.txt\", ch11.getFileName());\n assertEquals(VcsChange.Type.ADDED, ch11.getType());\n VcsChange ch12 = m1.getChanges().get(2);\n assertEquals(\"dir/tr.txt\", ch12.getFileName());\n assertEquals(VcsChange.Type.REMOVED, ch12.getType());\n // now check merge commit relatively to the branch\n final List<ModificationData> mms0 = support.collectChanges(root, MERGE_BRANCH_VERSION, MERGE_VERSION, new CheckoutRules(\"\"));\n assertEquals(2, mms0.size());\n // no check the merge commit relatively to the fork\n final List<ModificationData> mms1 = support.collectChanges(root, CUD1_VERSION, MERGE_VERSION, new CheckoutRules(\"\"));\n assertEquals(3, mms1.size());\n ModificationData md1 = mms1.get(0);\n assertFalse(md1.isCanBeIgnored());\n assertEquals(\"merge commit\\n\", md1.getDescription());\n assertEquals(MERGE_VERSION, md1.getVersion());\n assertEquals(3, md1.getChanges().size());\n VcsChange ch20 = md1.getChanges().get(0);\n assertEquals(\"dir/a.txt\", ch20.getFileName());\n assertEquals(VcsChange.Type.REMOVED, ch20.getType());\n VcsChange ch21 = md1.getChanges().get(1);\n assertEquals(\"dir/b.txt\", ch21.getFileName());\n assertEquals(VcsChange.Type.CHANGED, ch21.getType());\n VcsChange ch22 = md1.getChanges().get(2);\n assertEquals(\"dir/q.txt\", ch22.getFileName());\n assertEquals(VcsChange.Type.ADDED, ch22.getType());\n ModificationData md2 = mms1.get(1);\n assertTrue(md2.isCanBeIgnored());\n assertEquals(\"b-mod, d-add\\n\", md2.getDescription());\n assertEquals(MERGE_BRANCH_VERSION, md2.getVersion());\n assertEquals(2, md2.getChanges().size());\n ModificationData md3 = mms1.get(2);\n assertEquals(\"a-mod, c-rm\\n\", md3.getDescription());\n assertEquals(2, md3.getChanges().size());\n // check the case with broken commit\n String missing = GitUtils.makeVersion(GitUtils.versionRevision(CUD1_VERSION).replace('0', 'f'), GitUtils.versionTime(CUD1_VERSION));\n final List<ModificationData> mms2 = support.collectChanges(root, missing, MERGE_VERSION, new CheckoutRules(\"\"));\n assertEquals(4, mms2.size());\n ModificationData mb3 = mms2.get(3);\n assertEquals(GitServerUtil.SYSTEM_USER, mb3.getUserName());\n assertEquals(0, mb3.getChanges().size());\n }", "@Test\n public void t1() {\n // manually verified\n RefactoringCommit instance1 = getRefactoringCommits().stream().filter(commit ->\n commit.getCommit().equals(\"5e7d64d6b2719afb1e5f4785d80d24ac5a19a782\") &&\n commit.getRefactoring().equals(\"Extract Method\") &&\n commit.getMethodMetrics().getFullMethodName().equals(\"isSameDay/2[Date,Date]\")\n ).collect(Collectors.toList()).get(0);\n\n Assert.assertNotNull(instance1);\n\n Assert.assertEquals(\"isSameDay/2[Date,Date]\", instance1.getMethodMetrics().getFullMethodName());\n Assert.assertEquals(2, instance1.getMethodMetrics().getMethodVariablesQty());\n Assert.assertEquals(1, instance1.getMethodMetrics().getMethodMaxNestedBlocks());\n Assert.assertEquals(1, instance1.getMethodMetrics().getMethodReturnQty());\n Assert.assertEquals(0, instance1.getMethodMetrics().getMethodTryCatchQty());\n }", "List<Bug> getFinishedBugsByProject(int projectId, int start, int limit);", "public void renderChangeSet() {\n\t\t\n\t\tint saveScope = changeLog.scope; //IMPORTANT\n\t\t\n\t\tchangeLog.scope = attachScope;\t\t\n//\t\tif (attachType==MY_ATTACHMENT) changeHTML += \"<u>Current Committed Changes:</u><br><br>\";\n//\t\telse changeHTML += \"<u>Changes in Annotation Message:</u><br><br>\";\n\t\tJEditorPane[] changePanes = new JEditorPane[changeSet.size()];\n\t\trenderedChangeSet = new ArrayList();\n\t\t\n\t\tint ctr = 0;\n\t\tfor (Iterator iter = changeSet.iterator(); iter.hasNext();) {\n\t\t\t\n\t\t\t// create dynamic jeditorpane\n\t\t\tchangePanes[ctr] = new JEditorPane();\n\t\t\tchangePanes[ctr].setContentType(\"text/html\");\n\t\t\tchangePanes[ctr].setEditable(false);\n\t\t\tchangePanes[ctr].addHyperlinkListener(this);\n\t\t\t\n\t\t\tString changeHTML = \"<FONT FACE=\\\"\"+changeLog.swoopModel.getFontFace()+\"\\\" SIZE=\"+changeLog.swoopModel.getFontSize()+\">\";\n\t\t\tOntologyChange change = (OntologyChange) iter.next();\n\t\t\t\n\t\t\t// skip SaveCheckpointChange(s)\n\t\t\tif (change instanceof SaveCheckpointChange || change instanceof RevertCheckpointChange) continue;\n\t\t\t\n\t\t\tString html = changeLog.getChangeInformation(change, ChangeLog.CHANGE_DESCRIPTION, null, new ArrayList(), null).toString();\n\t\t\tif (!html.trim().equals(\"\")) {\n\t\t\t\trenderedChangeSet.add(ctr, change);\n\t\t\t\tchangeHTML += html;\n\t\t\t\tchangeHTML = changeHTML.replaceAll(\"Undo\", String.valueOf(ctr+1));\n\t\t\t\tchangePanes[ctr].setText(changeHTML);\n\t\t\t\tchangePanes[ctr].setCaretPosition(0);\n\t\t\t\tctr++;\n\t\t\t}\t\t\t\n\t\t}\n\t\tContainer content = this.getContentPane();\n\t\tcontent.removeAll();\n\t\tJPanel centerPane = new JPanel();\n\t\tcenterPane.setLayout(new GridLayout(ctr,1));\n\t\tchecks = new JCheckBox[ctr];\n\t\t\n\t\tfor (int i=0; i<ctr; i++) {\n\t\t\tJPanel singleChangePane = new JPanel();\n\t\t\tsingleChangePane.setLayout(new BorderLayout());\n\t\t\tsingleChangePane.add(new JScrollPane(changePanes[i]), \"Center\");\n\t\t\tchecks[i] = new JCheckBox();\n\t\t\tif (alreadyAttached.contains((OntologyChange) renderedChangeSet.get(i))) checks[i].setSelected(true);\n\t\t\tsingleChangePane.add(checks[i], \"West\");\n\t\t\tcenterPane.add(singleChangePane);\n\t\t}\n\t\tcontent.setLayout(new BorderLayout());\n\t\tcontent.add(scopePanel, \"North\");\n\t\tcontent.add(new JScrollPane(centerPane), \"Center\");\n\t\tcontent.add(toolbar, \"South\");\n\t\tcontent.repaint();\t\t\n\t\tshow();\n\t\t\n\t\tchangeLog.scope = saveScope; //IMPORTANT\n\t}", "@Test\n public void testExecute() {\n for (int i = 0; i < 10; i++) {\n // create test objects\n List<TranslationFile> c = TestObjectBuilder.getCommittedTestCorpus();\n TranslationFile mainFile = c.get(0);\n Dispatcher d = TestObjectBuilder.getDispatcher(mainFile, c);\n mainFile = d.getState().getMainFile();\n\n // makes 5 segments\n Segment seg1 = mainFile.getActiveSegs().get(0);\n Segment seg2 = mainFile.getActiveSegs().get(1);\n Segment seg3 = mainFile.getActiveSegs().get(2);\n Segment seg4 = mainFile.getActiveSegs().get(3);\n Segment seg5 = mainFile.getActiveSegs().get(4);\n\n ArrayList<Segment> selectedSegs = new ArrayList();\n switch (i) {\n case 0: {\n // if i=0 --> 'merge' first seg (no change)\n\n selectedSegs.add(seg1);\n d.acceptAction(new Merge(selectedSegs));\n assertEquals(5, mainFile.getActiveSegs().size());\n assertEquals(0, mainFile.getHiddenSegs().size());\n assertEquals(mainFile.getActiveSegs().get(0).equals(seg1), true);\n assertEquals(mainFile.getActiveSegs().get(1).equals(seg2), true);\n assertEquals(mainFile.getActiveSegs().get(2).equals(seg3), true);\n assertEquals(mainFile.getActiveSegs().get(3).equals(seg4), true);\n assertEquals(mainFile.getActiveSegs().get(4).equals(seg5), true);\n\n assertEquals(mainFile, DatabaseOperations.getFile(mainFile.getFileID()));\n break;\n }\n case 1: {\n // if i=1 --> merge first two\n StringBuilder sb = new StringBuilder(seg1.getThai());\n sb.append(seg2.getThai()); // combine the Thai from both segs\n\n selectedSegs.add(seg1);\n selectedSegs.add(seg2);\n\n d.acceptAction(new Merge(selectedSegs));\n assertEquals(4, mainFile.getActiveSegs().size());\n assertEquals(2, mainFile.getHiddenSegs().size());\n assertEquals(sb.toString(), d.getUIState().getMainFileSegs().get(0).getThai());\n assertEquals(mainFile.getActiveSegs().get(1).equals(seg3), true);\n assertEquals(mainFile.getActiveSegs().get(2).equals(seg4), true);\n assertEquals(mainFile.getActiveSegs().get(3).equals(seg5), true);\n assertEquals(mainFile.getHiddenSegs().get(0).equals(seg1), true);\n assertEquals(mainFile.getHiddenSegs().get(1).equals(seg2), true);\n\n assertEquals(mainFile, DatabaseOperations.getFile(mainFile.getFileID()));\n break;\n }\n case 2: {\n // if i=2 --> merge first three\n StringBuilder sb = new StringBuilder(seg1.getThai());\n sb.append(seg2.getThai());\n sb.append(seg3.getThai());// combine the Thai from the three segs\n\n selectedSegs.add(seg1);\n selectedSegs.add(seg2);\n selectedSegs.add(seg3);\n d.acceptAction(new Merge(selectedSegs));\n assertEquals(3, mainFile.getActiveSegs().size());\n assertEquals(3, mainFile.getHiddenSegs().size());\n assertEquals(sb.toString(), d.getUIState().getMainFileSegs().get(0).getThai());\n assertEquals(seg4.getThai(), d.getUIState().getMainFileSegs().get(1).getThai());\n assertEquals(mainFile.getActiveSegs().get(1).equals(seg4), true);\n assertEquals(mainFile.getActiveSegs().get(2).equals(seg5), true);\n assertEquals(mainFile.getHiddenSegs().get(0).equals(seg1), true);\n assertEquals(mainFile.getHiddenSegs().get(1).equals(seg2), true);\n assertEquals(mainFile.getHiddenSegs().get(2).equals(seg3), true);\n\n assertEquals(mainFile, DatabaseOperations.getFile(mainFile.getFileID()));\n break;\n }\n case 3: {\n // if i=3 --> merge tu2-tu3\n StringBuilder sb = new StringBuilder(seg2.getThai());\n sb.append(seg3.getThai());\n\n selectedSegs.add(seg2);\n selectedSegs.add(seg3);\n d.acceptAction(new Merge(selectedSegs));\n assertEquals(4, mainFile.getActiveSegs().size());\n assertEquals(2, mainFile.getHiddenSegs().size());\n assertEquals(sb.toString(), d.getUIState().getMainFileSegs().get(1).getThai());\n assertEquals(seg1.getThai(), d.getUIState().getMainFileSegs().get(0).getThai());\n assertEquals(seg4.getThai(), d.getUIState().getMainFileSegs().get(2).getThai());\n assertEquals(mainFile.getActiveSegs().get(0).equals(seg1), true);\n assertEquals(mainFile.getActiveSegs().get(2).equals(seg4), true);\n assertEquals(mainFile.getActiveSegs().get(3).equals(seg5), true);\n assertEquals(mainFile.getHiddenSegs().get(0).equals(seg2), true);\n assertEquals(mainFile.getHiddenSegs().get(1).equals(seg3), true);\n\n assertEquals(mainFile, DatabaseOperations.getFile(mainFile.getFileID()));\n break;\n }\n // if i=4 --> merge 1-3\n case 4: {\n\n selectedSegs.add(seg2);\n selectedSegs.add(seg3);\n d.acceptAction(new Merge(selectedSegs));\n assertEquals(4, mainFile.getActiveSegs().size());\n assertEquals(2, mainFile.getHiddenSegs().size());\n assertEquals(mainFile.getActiveSegs().get(0).equals(seg1), true);\n assertEquals(mainFile.getActiveSegs().get(2).equals(seg4), true);\n assertEquals(mainFile.getActiveSegs().get(3).equals(seg5), true);\n assertEquals(mainFile.getHiddenSegs().get(0).equals(seg2), true);\n assertEquals(mainFile.getHiddenSegs().get(1).equals(seg3), true);\n\n assertEquals(mainFile, DatabaseOperations.getFile(mainFile.getFileID()));\n break;\n }\n // if i=5 --> merge 3-end\n case 5: {\n selectedSegs.add(seg1);\n selectedSegs.add(seg2);\n selectedSegs.add(seg3);\n d.acceptAction(new Merge(selectedSegs));\n assertEquals(3, d.getState().getMainFile().getActiveSegs().size());\n assertEquals(3, d.getState().getMainFile().getHiddenSegs().size());\n assertEquals(\"th1th2th3\", mainFile.getActiveSegs().get(0).getThai());\n assertEquals(mainFile.getActiveSegs().get(1).equals(seg4), true);\n assertEquals(mainFile.getActiveSegs().get(2).equals(seg5), true);\n assertEquals(mainFile.getHiddenSegs().get(0).equals(seg1), true);\n assertEquals(mainFile.getHiddenSegs().get(1).equals(seg2), true);\n assertEquals(mainFile.getHiddenSegs().get(2).equals(seg3), true);\n\n assertEquals(mainFile, DatabaseOperations.getFile(mainFile.getFileID()));\n break;\n }\n // if i=6 --> merge only end (no difference)\n case 6: {\n selectedSegs.add(seg5);\n d.acceptAction(new Merge(selectedSegs));\n assertEquals(5, mainFile.getActiveSegs().size());\n assertEquals(0, mainFile.getHiddenSegs().size());\n assertEquals(mainFile.getActiveSegs().get(0).equals(seg1), true);\n assertEquals(mainFile.getActiveSegs().get(1).equals(seg2), true);\n assertEquals(mainFile.getActiveSegs().get(2).equals(seg3), true);\n assertEquals(mainFile.getActiveSegs().get(3).equals(seg4), true);\n assertEquals(mainFile.getActiveSegs().get(4).equals(seg5), true);\n\n assertEquals(mainFile, DatabaseOperations.getFile(mainFile.getFileID()));\n break;\n }\n // if i=7 --> merge all segs\n case 7: {\n selectedSegs.add(seg1);\n selectedSegs.add(seg2);\n selectedSegs.add(seg3);\n selectedSegs.add(seg4);\n selectedSegs.add(seg5);\n d.acceptAction(new Merge(selectedSegs));\n assertEquals(1, mainFile.getActiveSegs().size());\n assertEquals(5, mainFile.getHiddenSegs().size());\n assertEquals(mainFile.getHiddenSegs().get(0).equals(seg1), true);\n assertEquals(mainFile.getHiddenSegs().get(1).equals(seg2), true);\n assertEquals(mainFile.getHiddenSegs().get(2).equals(seg3), true);\n assertEquals(mainFile.getHiddenSegs().get(3).equals(seg4), true);\n assertEquals(mainFile.getHiddenSegs().get(4).equals(seg5), true);\n\n assertEquals(mainFile, DatabaseOperations.getFile(mainFile.getFileID()));\n break;\n }\n // if i=8 --> selectedItems is empty (but not null)\n case 8: {\n d.acceptAction(new Merge(selectedSegs));\n assertEquals(5, mainFile.getActiveSegs().size());\n assertEquals(0, mainFile.getHiddenSegs().size());\n assertEquals(mainFile.getActiveSegs().get(0).equals(seg1), true);\n assertEquals(mainFile.getActiveSegs().get(1).equals(seg2), true);\n assertEquals(mainFile.getActiveSegs().get(2).equals(seg3), true);\n assertEquals(mainFile.getActiveSegs().get(3).equals(seg4), true);\n assertEquals(mainFile.getActiveSegs().get(4).equals(seg5), true);\n\n assertEquals(mainFile, DatabaseOperations.getFile(mainFile.getFileID()));\n break;\n }\n // if i=9 --> merge repeatedly\n case 9: {\n // merges seg1 and seg2\n selectedSegs.add(seg1);\n selectedSegs.add(seg2);\n d.acceptAction(new Merge(selectedSegs));\n\n //merges seg3 and seg4\n selectedSegs = new ArrayList();\n selectedSegs.add(seg3);\n selectedSegs.add(seg4);\n d.acceptAction(new Merge(selectedSegs));\n\n // at this point the file should have three segments in activeSegs\n // the first two segs are the result of the prior merges\n // the last seg is seg5\n // now we merge the second merged seg with seg5\n selectedSegs = new ArrayList();\n selectedSegs.add(mainFile.getActiveSegs().get(1));\n selectedSegs.add(seg5);\n d.acceptAction(new Merge(selectedSegs));\n\n // this should result in the file now only having two active segs\n assertEquals(2, mainFile.getActiveSegs().size());\n assertEquals(6, mainFile.getHiddenSegs().size());\n assertEquals(mainFile.getHiddenSegs().get(0).equals(seg1), true);\n assertEquals(mainFile.getHiddenSegs().get(1).equals(seg2), true);\n assertEquals(mainFile.getHiddenSegs().get(2).equals(seg3), true);\n assertEquals(mainFile.getHiddenSegs().get(3).equals(seg4), true);\n assertEquals(mainFile.getHiddenSegs().get(5).equals(seg5), true);\n\n assertEquals(mainFile, DatabaseOperations.getFile(mainFile.getFileID()));\n break;\n }\n // if i=10 --> merge invalid argument (segs not contiguous)\n case 10: {\n selectedSegs.add(seg1);\n selectedSegs.add(seg2);\n selectedSegs.add(seg3);\n selectedSegs.add(seg4);\n selectedSegs.add(seg2); // this seg is repeated and out of order\n d.acceptAction(new Merge(selectedSegs));\n\n assertEquals(5, mainFile.getActiveSegs().size());\n assertEquals(0, mainFile.getHiddenSegs().size());\n assertEquals(mainFile.getActiveSegs().get(0).equals(seg1), true);\n assertEquals(mainFile.getActiveSegs().get(1).equals(seg2), true);\n assertEquals(mainFile.getActiveSegs().get(2).equals(seg3), true);\n assertEquals(mainFile.getActiveSegs().get(3).equals(seg4), true);\n assertEquals(mainFile.getActiveSegs().get(4).equals(seg5), true);\n\n assertEquals(mainFile, DatabaseOperations.getFile(mainFile.getFileID()));\n break;\n }\n default:\n break;\n }\n\n }\n }", "@Override\r\n public Set<List<String>> findAllPaths(int sourceId, int targetId, int reachability) {\r\n //all paths found\r\n Set<List<String>> allPaths = new HashSet<List<String>>();\r\n //collects path in one iteration\r\n Set<List<String>> newPathsCollector = new HashSet<List<String>>();\r\n //same as the solution but with inverted edges\r\n Set<List<String>> tmpPathsToTarget = new HashSet<List<String>>();\r\n //final solution\r\n Set<List<String>> pathsToTarget = new HashSet<List<String>>();\r\n \r\n String[] statementTokens = null; \r\n Set<Integer> allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n List<String> statementsFound = new ArrayList<String>();\r\n \r\n for (int i = 0; i < reachability; i++) {\r\n if (i == 0) { \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(sourceId);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n //allProcessedNodes.add(inNodeId); \r\n //Incoming nodes are reversed\r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n allPaths.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(sourceId);\r\n \r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n statementsFound.add(outEdge);\r\n allPaths.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n } else {\r\n newPathsCollector = new HashSet<List<String>>();\r\n\r\n for (List<String> statements: allPaths) {\r\n allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n int lastNodeInPath = 0;\r\n \r\n for (String predicate: statements) {\r\n if (predicate.contains(\">-\")) {\r\n statementTokens = predicate.split(\">-\");\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[0]).reverse().toString()));\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString()));\r\n lastNodeInPath = Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString());\r\n } else {\r\n statementTokens = predicate.split(\"->\"); \r\n allProcessedNodes.add(Integer.parseInt(statementTokens[0]));\r\n allProcessedNodes.add(Integer.parseInt(statementTokens[2]));\r\n lastNodeInPath = Integer.parseInt(statementTokens[2]);\r\n }\r\n }\r\n \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(lastNodeInPath);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n if (allProcessedNodes.contains(inNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n newPathsCollector.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(lastNodeInPath);\r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n if (allProcessedNodes.contains(outNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(outEdge);\r\n newPathsCollector.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n }\r\n allPaths.addAll(newPathsCollector);\r\n }\r\n \r\n //System.out.println(\"*****End of iteration \" + i);\r\n //System.out.println(\"#SIZE OF allPaths: \" + allPaths.size());\r\n int numItems = 0;\r\n for (List<String> currList: allPaths) {\r\n numItems = numItems + currList.size();\r\n }\r\n //System.out.println(\"#NUMBER OF ELEMS OF ALL LISTS: \" + numItems);\r\n //System.out.println(\"#SIZE OF tmpPathsToTarget : \" + tmpPathsToTarget.size());\r\n }\r\n \r\n //We need to reverse back all the predicates\r\n for (List<String> statements: tmpPathsToTarget) { \r\n List<String> fixedStatements = new ArrayList<String>(); \r\n for (int i = 0; i < statements.size(); i++) { \r\n String statement = statements.get(i); \r\n if (statement.contains(\">-\")) {\r\n fixedStatements.add(new StringBuilder(statement).reverse().toString());\r\n } else {\r\n fixedStatements.add(statement);\r\n } \r\n }\r\n pathsToTarget.add(fixedStatements);\r\n }\r\n return pathsToTarget;\r\n }", "@Test\r\n\tpublic void testCheck_featureBeginEndPositionEqual1() {\r\n\t\tint beginN = 40;\r\n\t\tboolean removeall = true;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ADFSGDFHGHJK\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 45,\r\n\t\t\t\t(long) 45));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tentry.addFeature(feature1);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN, removeall).size() == 0);\r\n\t}", "public static void log() {\n String branch = commitPointers.readHeadCommit()[0];\n String currName = commitPointers.readHeadCommit()[1];\n File cFile = Utils.join(Commit.COMMIT_FOLDER, currName + \".txt\");\n Commit curr = Utils.readObject(cFile, Commit.class);\n\n while (currName != null) {\n System.out.println(\"===\");\n System.out.println(\"commit \" + curr.commitID);\n if (curr.parentID.size() == 2) {\n System.out.println(\"Merge: \" + curr.parentID.get(0).substring(0, 7) + \" \" + curr.parentID.get(1).substring(0, 7));\n }\n System.out.println(\"Date: \" + curr.timeStamp.format(myFormatObj) + \" -0800\");\n System.out.println(curr.message);\n System.out.println();\n\n currName = curr.parentID.get(0);\n\n if (currName != null) {\n File newcFile = Utils.join(Commit.COMMIT_FOLDER, currName + \".txt\");\n curr = Utils.readObject(newcFile, Commit.class);\n }\n }\n }", "private Set<Edge> reachableDAG(Vertex start, Vertex obstacle) {\n \tHashSet<Edge> result = new HashSet<Edge>();\n \tVector<Vertex> currentVertexes = new Vector<Vertex>();\n \tint lastResultNumber = 0;\n \tcurrentVertexes.add(start);\n \t\n \tdo {\n \t\t//System.out.println(\"size of currentVertexes:\" + currentVertexes.size());\n \t\t\n \t\tVector<Vertex> newVertexes = new Vector<Vertex>();\n \t\tlastResultNumber = result.size();\n \t\t\n \t\tfor (Vertex v : currentVertexes) {\n \t\t\t//System.out.println(\"layerID:\" + v.layerID + \"\\tlabel:\" + v.label);\n \t\t\taddIncomingEdges(v, obstacle, result, newVertexes);\n \t\t\taddOutgoingEdges(v, obstacle, result, newVertexes);\n \t\t}\n \t\t\n \t\t//System.out.println(\"size of newVertexes:\" + newVertexes.size());\n \t\t\n \t\tcurrentVertexes = newVertexes;\t\n \t\t//System.out.println(\"lastResultNumber:\" + lastResultNumber);\n \t\t//System.out.println(\"result.size():\" + result.size());\n \t} while (lastResultNumber != result.size());\n \t\n\t\treturn result;\n }", "RetrieveCommitsStatisticsResultResponse retrieveCommits(final RetrieveCommitsStatisticsRequest request);", "public final void addStartAndEnd(int sx, int sy, int ex, int ey) {\n // START:\n if (nodeIndex[sy*sizeXPlusOne + sx] == -1) {\n startIndex = nNodes;\n nOutgoingEdgess[startIndex] = 0;\n xPositions[startIndex] = sx;\n yPositions[startIndex] = sy;\n //nodeIndex[sy*sizeXPlusOne + sx] = startIndex;\n ++nNodes;\n } else {\n startIndex = nodeIndex[sy*sizeXPlusOne + sx];\n }\n startOriginalSize = nOutgoingEdgess[startIndex];\n addTempEdgesToVisibleNeighbours(startIndex, sx, sy);\n\n // END:\n if (nodeIndex[ey*sizeXPlusOne + ex] == -1) {\n endIndex = nNodes;\n nOutgoingEdgess[endIndex] = 0;\n xPositions[endIndex] = ex;\n yPositions[endIndex] = ey;\n //nodeIndex[ey*sizeXPlusOne + ex] = endIndex;\n ++nNodes;\n } else {\n endIndex = nodeIndex[ey*sizeXPlusOne + ex];\n }\n endOriginalSize = nOutgoingEdgess[endIndex];\n addTempEdgesToVisibleNeighbours(endIndex, ex, ey);\n \n markHasEdgeToGoal(true);\n \n markEdgesFrom(startIndex, true);\n markEdgesFrom(endIndex, true);\n }", "private void advanceCommitIndex() {\n // 获取quorum matchIndex\n int peerNum = configuration.getServersList().size();\n long[] matchIndexes = new long[peerNum];\n int i = 0;\n for (RaftProto.Server server : configuration.getServersList()) {\n if (server.getServerId() != localServer.getServerId()) {\n Peer peer = peerMap.get(server.getServerId());\n matchIndexes[i++] = peer.getMatchIndex();\n }\n }\n matchIndexes[i] = raftLog.getLastLogIndex();\n Arrays.sort(matchIndexes);\n long newCommitIndex = matchIndexes[peerNum / 2];\n LOG.debug(\"newCommitIndex={}, oldCommitIndex={}\", newCommitIndex, commitIndex);\n if (raftLog.getEntryTerm(newCommitIndex) != currentTerm) {\n LOG.debug(\"newCommitIndexTerm={}, currentTerm={}\",\n raftLog.getEntryTerm(newCommitIndex), currentTerm);\n return;\n }\n\n if (commitIndex >= newCommitIndex) {\n return;\n }\n long oldCommitIndex = commitIndex;\n commitIndex = newCommitIndex;\n raftLog.updateMetaData(currentTerm, null, raftLog.getFirstLogIndex(), commitIndex);\n // 同步到状态机\n for (long index = oldCommitIndex + 1; index <= newCommitIndex; index++) {\n RaftProto.LogEntry entry = raftLog.getEntry(index);\n if (entry.getType() == RaftProto.EntryType.ENTRY_TYPE_DATA) {\n stateMachine.apply(entry.getData().toByteArray());\n } else if (entry.getType() == RaftProto.EntryType.ENTRY_TYPE_CONFIGURATION) {\n applyConfiguration(entry);\n }\n }\n lastAppliedIndex = commitIndex;\n LOG.debug(\"commitIndex={} lastAppliedIndex={}\", commitIndex, lastAppliedIndex);\n commitIndexCondition.signalAll();\n }", "protected void index(long from, long to, IndexationListener indexationListener) {\n // Ordering\n if (from > to) {\n long t = from;\n from = to;\n to = t;\n }\n\n // Opens a transaction\n Transaction transaction = transactionService.start();\n try {\n // SVN URL\n SVNURL url = SVNUtils.toURL(subversionConfigurationExtension.getUrl());\n // Filters the revision range using the repository configuration\n long startRevision = indexationConfigurationExtension.getStartRevision();\n from = Math.max(startRevision, from);\n // Filters the revision range using the SVN repository\n long repositoryRevision = subversionService.getRepositoryRevision(url);\n to = Math.min(to, repositoryRevision);\n // Final check of range\n if (from > to) {\n throw new IllegalArgumentException(String.format(\"Cannot index range from %d to %d\", from, to));\n }\n // Log\n logger.info(String.format(\"[indexation] Indexing revisions from %d to %d\", from, to));\n // SVN range\n SVNRevision fromRevision = SVNRevision.create(from);\n SVNRevision toRevision = SVNRevision.create(to);\n // Calls the indexer, including merge revisions\n IndexationHandler handler = new IndexationHandler(indexationListener);\n subversionService.log(url, SVNRevision.HEAD, fromRevision, toRevision, true, true, 0, false, handler);\n } finally {\n transaction.close();\n }\n }", "@Override\n public List<IncEvalState> evaluateBeam(Expression2 lf, Object initialDiagram,\n IncEvalCost cost, Environment startEnv,\n LogFunction log, int beamSize) {\n KbestQueue<IncEvalState> heap = new KbestQueue<IncEvalState>(beamSize,\n new IncEvalState[0]);\n \n // Heap for finished parses.\n KbestQueue<IncEvalState> finishedHeap = new KbestQueue<IncEvalState>(beamSize,\n new IncEvalState[0]);\n\n // Array of elements in the current beam.\n IncEvalState[] currentBeam = new IncEvalState[beamSize + 1];\n int currentBeamSize = 0;\n\n // Accumulator for storing future continuations.\n List<IncEvalState> resultQueue = Lists.newArrayList();\n\n // Construct and queue the start state. \n // Note that continuation may be null, meaning that lf cannot\n // be evaluated by this class. If this is the case, this method\n // will return the initialState as the only result.\n Object continuation = lfToContinuation(lf, startEnv);\n IncEvalState initialState = new IncEvalState(continuation, startEnv, null,\n initialDiagram, 1.0, null);\n offer(heap, initialState, cost);\n\n while (heap.size() > 0) {\n // Copy the heap to the current beam.\n IncEvalState[] keys = heap.getItems();\n for (int i = 0; i < heap.size(); i++) {\n currentBeam[i] = keys[i];\n }\n\n // Empty the heap.\n currentBeamSize = heap.size();\n heap.clear();\n\n for (int i = 0; i < currentBeamSize; i++) {\n IncEvalState state = currentBeam[i];\n \n if (state.getContinuation() != null) {\n resultQueue.clear();\n log.startTimer(\"evaluate_continuation\");\n evaluateContinuation(state, resultQueue, log);\n log.stopTimer(\"evaluate_continuation\");\n \n for (IncEvalState next : resultQueue) {\n offer(heap, next, cost);\n }\n } else {\n // Evaluation is finished.\n offer(finishedHeap, state, cost);\n }\n }\n }\n \n List<IncEvalState> finalStates = Lists.newArrayList();\n while (finishedHeap.size() > 0) {\n finalStates.add(finishedHeap.removeMin());\n }\n Collections.reverse(finalStates);\n return finalStates;\n }", "public void execute() throws IOException, ParseException, GitAPIException {\n \t\tfinal int[][] pix = readPixels();\n \t\treadContributions();\n \t\tcomputeTargetContrib(pix);\n \n \t\tif (debug) {\n \t\t\tdebug(asciiImage(true));\n \t\t\tprintContrib();\n \t\t}\n \n \t\tinitGitRepository();\n \n \t\tif (showGUI) showProgressWindow();\n \n \t\tint i = 0;\n \t\tfor (int x = 0; x < CAL_WIDTH; x++) {\n \t\t\tfor (int y = 0; y < CAL_HEIGHT; y++) {\n \t\t\t\tif (contrib[y][x] == null) continue;\n \t\t\t\twhile (contrib[y][x].current < contrib[y][x].target) {\n \t\t\t\t\tcontrib[y][x].current++;\n \t\t\t\t\tif (git != null) doCommit(y, x);\n \t\t\t\t\ti++;\n \t\t\t\t\tif (showGUI) updateProgress(i);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\tprogressFrame.dispose();\n \n \t\tif (debug) System.out.println(\"Complete!\");\n \t}", "private static void iRebase(Gitlet currCommit, String[] args) {\n if (!isSure()) {\n return;\n } else if (rebaseCheck(currCommit, args)) {\n return;\n } else if (sameHist(currCommit, args[1])) {\n Commit toChange = currCommit.tree.getHeadCommit(args[1]);\n currCommit.tree.setHeadCommit(toChange);\n currCommit.tree.setCommit(Integer.parseInt(toChange.getId()));\n } else {\n Commit split = findSplitBranch(currCommit, args);\n HashMap<String, String> splitMap = split.getFileLoc();\n TreeSet<Commit> tempCurr = currCommit.tree.getCommits();\n TreeSet<Commit> tempBranch = currCommit.tree.getCommits(args[1]);\n TreeSet<Commit> currCommits = (TreeSet<Commit>) tempCurr.subSet(\n currCommit.tree.getHeadCommit(), true, split, true);\n TreeSet<Commit> branchCommits = (TreeSet<Commit>) tempBranch\n .subSet(currCommit.tree.getHeadCommit(args[1]), true,\n split, true);\n int count = 1;\n int size = currCommits.size();\n for (Commit x : currCommits) {\n System.out.println(\"Currently replaying:\");\n System.out.println(x.generateMessage());\n String question = \"Would you like to (c)ontinue, (s)kip this commit, \";\n question += \"or change this commit's (m)essage?\";\n System.out.println(question);\n Scanner in = new Scanner(System.in);\n in = new Scanner(System.in);\n String answer = in.nextLine();\n if (answer.equals(\"s\")) {\n while (true) {\n if (count == 1 || count == size) {\n String error = \"You can not skip, please enter (c)ontinue\";\n error += \" or (m)essage\";\n System.out.println(error);\n answer = in.nextLine();\n }\n if (!answer.equals(\"s\")) {\n break;\n }\n }\n } else if (answer.equals(\"s\") && count != 1 && count != size) {\n continue;\n } else if (answer.equals(\"c\") || answer.equals(\"m\")) {\n currCommit.tree.removeCommit(x);\n currCommit.tree.addSize();\n String newId = currCommit.tree.getSize().toString();\n Commit commitToAdd = x.commitCopy(x, newId);\n\n HashMap<String, String> newMap = propogate(\n x.getFileLoc(),\n currCommit.tree.getHeadCommit(args[1]).getFileLoc(),\n splitMap);\n commitToAdd.setFileLoc(newMap);\n\n currCommit.tree.addData(commitToAdd);\n if (currCommit.tree.getHeadCommit().same(x)) {\n currCommit.tree.setHeadCommit(commitToAdd);\n\n }\n currCommit.tree.addCommit(commitToAdd);\n }\n }\n for (Commit x : branchCommits) {\n currCommit.tree.addCommit(x);\n }\n updateFiles(currCommit);\n }\n addSerializeFile(currCommit);\n }", "public static SortedMap<Date, Set<Task>> calendar(Iterable<Task> tasks, Date start, Date end) throws Exception {\n TreeMap<Date, Set<Task>> calendar = new TreeMap<Date, Set<Task>>();\n for (Task task : Tasks.incoming(tasks, start, end))\n for (Date date : Tasks.events(task, start, end))\n if (!calendar.keySet().contains(date)) {\n Set<Task> tasksSet = new HashSet<>();\n tasksSet.add(task);\n calendar.put(date, tasksSet);\n } else {\n Set<Task> tasksSetNew = calendar.get(date);\n tasksSetNew.add(task);\n calendar.put(date, tasksSetNew);\n }\n return calendar;\n }", "private void processModify(int fileId, int commitId) throws SQLException,\n \t\t\tIOException {\n \t\tint previousCommitId = commitGraph.findPreviousCommitId(fileId,\n \t\t\t\tcommitId);\n \t\tString newContent = FileUtils.getContent(fileId, commitId);\n \t\tString oldContent = getPreviousContent(fileId, previousCommitId);\n \t\tList<SourceCodeChange> changes = extractDiff(new FileRevision(\n \t\t\t\tpreviousCommitId, fileId, oldContent), new FileRevision(\n \t\t\t\tcommitId, fileId, newContent));\n \t\tif (changes == null || changes.size() == 0) {\n \t\t\tlogger.warning(\"No changes distilled for file \" + fileId\n \t\t\t\t\t+ \" at commit_id \" + commitId + \" from previous commit id \"\n \t\t\t\t\t+ previousCommitId);\n \t\t} else {\n \t\t\tthis.reducer.add(changes, fileId, commitId);\n \t\t}\n \t\tif (changes != null) { // can't check newcontent alone, as it can have\n \t\t\t\t\t\t\t\t// invalid syntax\n \t\t\tassert (newContent != null);\n \t\t\tfileContentCache.put(fileId, new FileRevision(commitId, fileId,\n \t\t\t\t\tnewContent));\n \t\t}\n \t}", "public List<GeographicPoint> bfs(GeographicPoint start, GeographicPoint goal) {\n\t\t// Dummy variable for calling the search algorithms\n Consumer<GeographicPoint> temp = (x) -> {};\n return bfs(start, goal, temp);\n\t}", "public List<IdRange> calculateRangesForType(MigrationType migrationType, long minimumId, long maximumId, long optimalNumberOfRows);", "@RequestMapping(value = \"/{start}/{end}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic @ResponseBody String viewBranchManagersRange(@PathVariable(\"start\") int start, @PathVariable(\"end\") int end) throws JsonProcessingException {\r\n\r\n\t\treturn branchManagerService.viewBranchManagersRange(start, end);\r\n\t}", "public LinkedList<EventType> bfsEvent2Event(EventType start, EventType goal) {\r\n\t\tLinkedList<EventType> retPath = null;\r\n\t\tEventType found = null;\r\n\r\n\t\tHashMap<EventType, EventType> visitedBy = new HashMap<EventType, EventType>();\r\n\t\tLinkedList<EventType> queue = new LinkedList<EventType>();\r\n\t\tqueue.add(start);\r\n\r\n\t\twhile (found == null && !queue.isEmpty()) {\r\n\t\t\tEventType e = queue.remove();\r\n\t\t\tfor (EventType succ : succs.get(e)) {\r\n\t\t\t\tif (!visitedBy.containsKey(succ)) {\r\n\t\t\t\t\tvisitedBy.put(succ, e);\r\n\t\t\t\t\tif (succ == goal) {\r\n\t\t\t\t\t\tfound = succ;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tqueue.add(succ);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (found != null) {\r\n\t\t\tretPath = new LinkedList<EventType>();\r\n\t\t\tEventType cursor = visitedBy.get(found);\r\n\t\t\twhile (cursor != start) {\r\n\t\t\t\tretPath.addFirst(cursor);\r\n\t\t\t\tcursor = visitedBy.get(cursor);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn retPath;\r\n\t}", "public void assignSorting(final CFANode start) {\n\n final Set<CFANode> finished = new HashSet<>();\n\n final Deque<CFANode> nodeStack = new ArrayDeque<>();\n @SuppressWarnings(\"JdkObsolete\") // ArrayDeque doesn't work here because we store nulls\n final Deque<Iterator<CFANode>> iteratorStack = new LinkedList<>();\n\n nodeStack.push(start);\n iteratorStack.push(null);\n\n while (!nodeStack.isEmpty()) {\n assert nodeStack.size() == iteratorStack.size();\n\n final CFANode node = nodeStack.peek();\n Iterator<CFANode> successors = iteratorStack.peek();\n\n if (successors == null) {\n // Entering this stack frame.\n // This part of the code corresponds to the code in checkIds()\n // before the for loop.\n\n if (!finished.add(node)) {\n // already handled, do nothing\n\n // Do a simulated \"return\".\n nodeStack.pop();\n iteratorStack.pop();\n continue;\n }\n\n // enter the for loop\n successors = CFAUtils.successorsOf(node).iterator();\n iteratorStack.pop();\n iteratorStack.push(successors);\n }\n\n if (successors.hasNext()) {\n // \"recursive call\"\n // This part of the code corresponds to the code in checkIds()\n // during the loop.\n CFANode successor = successors.next();\n\n // Do a simulated \"function call\" by pushing something on the stacks,\n // creating a new stack frame.\n nodeStack.push(successor);\n iteratorStack.push(null);\n\n } else {\n // All children handled.\n // This part of the code corresponds to the code in checkIds()\n // after the loop.\n node.setReversePostorderId(reversePostorderId++);\n\n // Do a simulated \"return\".\n nodeStack.pop();\n iteratorStack.pop();\n }\n }\n\n // Disabled because the recursive algorithm throws StackOverflowError\n // for large files.\n //assert checkIds(start);\n }", "public void run() {\n System.out.println(StartCodonFinder.StartCodon.header() + \"\\texpect\\troles\");\n // Loop through the contigs.\n for (Contig contig : this.genome.getContigs()) {\n String contigId = contig.getId();\n if (debug) System.err.println(\"Processing contig \" + contigId);\n ContigStarts roleMapper = this.startRoleMap.get(contigId);\n ContigOrfTracker orfTracker = this.orfTrackerMap.get(contigId);\n String contigSeq = contig.getSequence();\n StartCodonFinder startFinder = new StartCodonFinder(contigId, contigSeq, orfTracker);\n // Loop through the starts in the contig.\n for (StartCodonFinder.StartCodon start : startFinder) {\n String expect;\n String roles = roleMapper.getRoles(start.getLoc());\n if (roles == null) {\n expect = \"other\";\n roles = \"\";\n } else {\n expect = \"start\";\n }\n System.out.println(start.toString() + \"\\t\" + expect + \"\\t\" + roles);\n }\n }\n }", "List<Project> getProjectsWithChanges(List<Project> projects);", "Node findBaseCases(Dfg dfg, ProcessTree tree, DfgMinerState minerState);", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsEmptyCommits() throws IOException {\n\t\tTreeUtils.withCommits(new FileRepository(testRepo), new ObjectId[0]);\n\t}", "private static List<DateRange> transformeAdvancedCase(\n final ZonedDateTime startRange,\n final ZonedDateTime endRange,\n final List<DateRange> reservedRanges) {\n\n final List<DateRange> availabilityRanges = new ArrayList<>();\n final List<DateRange> reservedRangesExtended = new ArrayList<>(reservedRanges);\n\n // if first DateRange starts after startRange\n if (reservedRanges.get(0).getStartDate().isAfter(startRange)) {\n // add a synthetic range that ends at startRange. Its startDate is not important\n final DateRange firstSyntheticDateRange = new DateRange(startRange.minusDays(1), startRange);\n reservedRangesExtended.add(0, firstSyntheticDateRange);\n }\n\n // if last DateRange ends before endRange\n if (reservedRanges.get(reservedRanges.size() - 1).getEndDate().isBefore(endRange)) {\n // add a synthetic range that starts at endRange. Its endDate is not important\n final DateRange lastSyntheticDateRange = new DateRange(endRange, endRange.plusDays(1));\n reservedRangesExtended.add(lastSyntheticDateRange);\n }\n\n Iterator<DateRange> iterator = reservedRangesExtended.iterator();\n DateRange current = null;\n DateRange next = null;\n\n while (iterator.hasNext()) {\n\n // On the first run, take the value from iterator.next(), on consecutive runs,\n // take the value from 'next' variable\n current = (current == null) ? iterator.next() : next;\n\n final ZonedDateTime startDate = current.getEndDate();\n\n if (iterator.hasNext()) {\n next = iterator.next();\n final ZonedDateTime endDate = next.getStartDate();\n DateRange availabilityDate = new DateRange(startDate, endDate);\n availabilityRanges.add(availabilityDate);\n }\n }\n\n return availabilityRanges;\n }", "<R> Map<TopicPartition, OffsetAndMetadata> findCompletedEligibleOffsetsAndRemove(boolean remove) {\n\n //\n if (!isDirty()) {\n // nothing to commit\n return UniMaps.of();\n }\n\n //\n Map<TopicPartition, OffsetAndMetadata> offsetsToSend = new HashMap<>();\n int count = 0;\n int removed = 0;\n log.trace(\"Scanning for in order in-flight work that has completed...\");\n\n //\n Set<Map.Entry<TopicPartition, PartitionState<K, V>>> set = pm.getPartitionStates().entrySet();\n for (final Map.Entry<TopicPartition, PartitionState<K, V>> partitionStateEntry : set) {\n var partitionState = partitionStateEntry.getValue();\n Map<Long, WorkContainer<K, V>> partitionQueue = partitionState.getCommitQueues();\n TopicPartition topicPartitionKey = partitionStateEntry.getKey();\n log.trace(\"Starting scan of partition: {}\", topicPartitionKey);\n\n count += partitionQueue.size();\n var workToRemove = new LinkedList<WorkContainer<K, V>>();\n var incompleteOffsets = new LinkedHashSet<Long>();\n long lowWaterMark = -1;\n var highestSucceeded = partitionState.getOffsetHighestSucceeded();\n // can't commit this offset or beyond, as this is the latest offset that is incomplete\n // i.e. only commit offsets that come before the current one, and stop looking for more\n boolean beyondSuccessiveSucceededOffsets = false;\n for (final var offsetAndItsWorkContainer : partitionQueue.entrySet()) {\n // ordered iteration via offset keys thanks to the tree-map\n WorkContainer<K, V> container = offsetAndItsWorkContainer.getValue();\n\n //\n long offset = container.getCr().offset();\n if (offset > highestSucceeded) {\n break; // no more to encode\n }\n\n //\n boolean complete = container.isUserFunctionComplete();\n if (complete) {\n if (container.getUserFunctionSucceeded().get() && !beyondSuccessiveSucceededOffsets) {\n log.trace(\"Found offset candidate ({}) to add to offset commit map\", container);\n workToRemove.add(container);\n // as in flights are processed in order, this will keep getting overwritten with the highest offset available\n // current offset is the highest successful offset, so commit +1 - offset to be committed is defined as the offset of the next expected message to be read\n long offsetOfNextExpectedMessageToBeCommitted = offset + 1;\n OffsetAndMetadata offsetData = new OffsetAndMetadata(offsetOfNextExpectedMessageToBeCommitted);\n offsetsToSend.put(topicPartitionKey, offsetData);\n } else if (container.getUserFunctionSucceeded().get() && beyondSuccessiveSucceededOffsets) {\n // todo lookup the low water mark and include here\n log.trace(\"Offset {} is complete and succeeded, but we've iterated past the lowest committable offset ({}). Will mark as complete in the offset map.\",\n container.getCr().offset(), lowWaterMark);\n // no-op - offset map is only for not succeeded or completed offsets\n } else {\n log.trace(\"Offset {} is complete, but failed processing. Will track in offset map as failed. Can't do normal offset commit past this point.\", container.getCr().offset());\n beyondSuccessiveSucceededOffsets = true;\n incompleteOffsets.add(offset);\n }\n } else {\n lowWaterMark = container.offset();\n beyondSuccessiveSucceededOffsets = true;\n log.trace(\"Offset ({}) is incomplete, holding up the queue ({}) of size {}.\",\n container.getCr().offset(),\n topicPartitionKey,\n partitionQueue.size());\n incompleteOffsets.add(offset);\n }\n }\n\n pm.addEncodedOffsets(offsetsToSend, topicPartitionKey, incompleteOffsets);\n\n if (remove) {\n removed += workToRemove.size();\n for (var workContainer : workToRemove) {\n var offset = workContainer.getCr().offset();\n partitionQueue.remove(offset);\n }\n }\n }\n\n log.debug(\"Scan finished, {} were in flight, {} completed offsets removed, coalesced to {} offset(s) ({}) to be committed\",\n count, removed, offsetsToSend.size(), offsetsToSend);\n return offsetsToSend;\n }", "public java.util.List<Todo> findByTodoId(long todoId, int start, int end);", "@Test\n public void testCommitsApi() throws Exception\n {\n \n \n RequestBuilder builder = new RequestBuilder(\"GET\");\n Request request = builder.setUrl(\n UriTemplate.fromTemplate(BASE)\n .append(PATH_EXPRESSION)\n .set(\"user\", \"damnhandy\")\n .set(\"repo\", \"Handy-URI-Templates\")\n .set(\"function\",\"commits\")\n .expand()).build();\n Assert.assertEquals(\"https://api.github.com/repos/damnhandy/Handy-URI-Templates/commits\", request.getUrl());\n executeRequest(createClient(), request);\n }", "protected void startConsumerThreads() {\n\n // index the repository\n Map<AttributeFamilyDescriptor, Set<AttributeFamilyDescriptor>> familyToCommitLog;\n familyToCommitLog = indexFamilyToCommitLogs();\n\n log.info(\"Starting consumer threads for familyToCommitLog {}\", familyToCommitLog);\n // execute threads to consume the commit log\n familyToCommitLog.forEach((family, logs) -> {\n for (AttributeFamilyDescriptor commitLogFamily : logs) {\n if (!family.getAccess().isReadonly()) {\n CommitLogReader commitLog = commitLogFamily.getCommitLogReader()\n .orElseThrow(() -> new IllegalStateException(\n \"Failed to find commit-log reader in family \" + commitLogFamily));\n AttributeWriterBase writer = family.getWriter()\n .orElseThrow(() ->\n new IllegalStateException(\n \"Unable to get writer for family \" + family.getName() + \".\"));\n StorageFilter filter = family.getFilter();\n Set<AttributeDescriptor<?>> allowedAttributes =\n new HashSet<>(family.getAttributes());\n final String name = \"consumer-\" + family.getName();\n registerWriterTo(name, commitLog, allowedAttributes, filter,\n writer, retryPolicy);\n log.info(\n \"Started consumer {} consuming from log {} with URI {} into {} \"\n + \"attributes {}\",\n name, commitLog, commitLog.getUri(), writer.getUri(), allowedAttributes);\n } else {\n log.debug(\"Not starting thread for read-only family {}\", family);\n }\n }\n });\n\n // execute transformer threads\n repo.getTransformations().forEach(this::runTransformer);\n }", "private void addStartAndEndSteps(Problem problem){\n\t\t\n\t\tExpression startEffects = problem.initial.toExpression();\n\t\tExpression goal = problem.goal;\n\t\t\n\t\t/* connect end step to the preconditions (goals) */\n\t\tList<PlanGraphLiteral> endParents = new ArrayList<PlanGraphLiteral>();\n\t\tfor (Literal literal : ConversionUtil.expressionToLiterals(problem.goal)) {\n\t\t\tPlanGraphLiteral pgLiteral = graph.getPlanGraphLiteral(literal);\n\t\t\tendParents.add(pgLiteral);\n\t\t}\n\t\t\n\t\t/* connect start step with effects (initial conditions) */\n\t\tList<PlanGraphLiteral> startChildren = new ArrayList<PlanGraphLiteral>();\n\t\tfor (Literal literal : ConversionUtil.expressionToLiterals(problem.initial.toExpression())) {\n\t\t\tPlanGraphLiteral pgLiteral = graph.getPlanGraphLiteral(literal);\n\t\t\tstartChildren.add(pgLiteral);\n\t\t}\n\t\tPlanGraphStep start = new PlanGraphStep(\n\t\t\t\tnew Step(\"start\", Expression.TRUE, startEffects), new ArrayList<PlanGraphLiteral>(), startChildren);\n\t\t\n\t\tPlanGraphStep end = new PlanGraphStep(\n\t\t\t\tnew Step(\"end\", goal, Expression.TRUE), endParents, new ArrayList<PlanGraphLiteral>());\n\t\t\n\t\tsteps.get(maxLevel + 1 ).add(end);\n\t\tif(maxLevel <= 1)\n\t\t\taddStep(start, 0);\n\t\tfacts.get(0).addAll(startChildren);\n\t\t\n\t\tfor (PlanGraphLiteral pgLiteral : startChildren) {\n\t\t\taddStep(persistentSteps.get(pgLiteral), 1, false);\n\t\t}\n\t\t\n\t}", "public OperationHighlight(Coloring coloring, int start, int end) {\n this.coloring = coloring;\n this.start = start;\n this.end = end;\n }", "static public void extractSingleCommit(String commitId) throws Exception\n\t{\n\t\tDataExtractor de = new DataExtractor();\n\t\tList<String> commit_ids = new ArrayList<String>();\n\t\tcommit_ids.add(commitId);\n\t\tde.extractCommitInfo(commit_ids);\n\t}", "public Collection<Solution> start() {\n //Configure DSE\n configureDSE();\n\n //Create strategy\n DSEMergeStrategy strategy = new DSEMergeStrategy();\n \n //Start Exploration\n dse.startExploration(strategy);\n\n return buildSolutions(dse.getSolutions());\n }", "private boolean shouldIncludeCommitment(Commitment aCommitment)\n {\n int i;\n int j;\n String direction;\n StringTokenizer tokenizer;\n String commitmentType;\n boolean shouldInclude;\n int token;\n //----------------\n\n shouldInclude = true;\n tokenizer = new StringTokenizer(aCommitment.predicate,\"(, )\");\n commitmentType = tokenizer.nextToken();\n i = Integer.valueOf(tokenizer.nextToken());\n j = Integer.valueOf(tokenizer.nextToken());\n direction = tokenizer.nextToken();\n token = beliefs.puzzle[i][j];\n\n // Reglas de ESTRATEGIA\n // donde no se consideran compromisos que no convienen\n ///////////////////////////////////////////////////////\n\n\n // si el token 1 ya est? en posici?n, no moverlo\n if(\n (token == 1) && (beliefs.puzzle[0][0] == 1)\n )\n shouldInclude = false;\n //end if\n\n\n // si el token es 2 y ya est?n 1 y 2 en posici?n, no moverlo\n if(\n ((token == 2) && (beliefs.puzzle[0][1] == 2)) &&\n (beliefs.puzzle[0][0] == 1)\n )\n shouldInclude = false;\n //end if\n\n // si la primera l?nea est? colocada,\n // no mover ninguno de sus tokens\n if(\n (firstMilestoneAccomplished()) &&\n ((token == 1) || (token == 2) || (token == 3) || (token == 4))\n )\n shouldInclude = false;\n //end if\n\n\n // si el 5 y la primera l?nea est?n colocados,\n // no mover el 5\n if(\n (firstMilestoneAccomplished()) &&\n (token == 5) && (beliefs.puzzle[1][0] == 5)\n )\n shouldInclude = false;\n //end if\n\n\n // el token es 6, y la primera linea, el 5 y el 6\n // ya est?n en su posici?n, no moverlo\n if(\n (firstMilestoneAccomplished()) &&\n ((token == 6) && (beliefs.puzzle[1][1] == 6)) &&\n (beliefs.puzzle[1][0] == 5)\n )\n shouldInclude = false;\n //end if\n\n // si la primera y segunda l?neas est?n colocadas,\n // no mover ninguno de los tokens de la segunda l?nea\n if(\n (firstMilestoneAccomplished()) &&\n (secondMilestoneAccomplished()) &&\n ((token == 5) || (token == 6) || (token == 7) || (token == 8))\n )\n shouldInclude = false;\n //end if\n\n // si la primera y segunda l?neas est?n colocadas,\n // y tambien 9 y 13, no mover los tokens de segunda linea ni 9 ni 13\n if(\n (firstMilestoneAccomplished()) &&\n (secondMilestoneAccomplished()) &&\n (thirdMilestoneAccomplished()) &&\n ((token == 5) || (token == 6) || (token == 7) || (token == 8)|| (token == 9) || (token == 13))\n )\n shouldInclude = false;\n //end if\n\n return shouldInclude;\n }", "private void createCommitTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index VCS_COMMIT_ID_INDEX_VCS_COMMIT on VCS_COMMIT(VCS_COMMIT_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index BEFORE_REVISION_ID_INDEX_VCS_COMMIT on VCS_COMMIT(BEFORE_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index AFTER_REVISION_ID_INDEX_VCS_COMMIT on VCS_COMMIT(AFTER_REVISION_ID)\");\n \t}", "@Test(dataProvider = \"doFetchInSeparateProcess\", dataProviderClass = FetchOptionsDataProvider.class)\n public void testConcurrentCollectBuildChanges(boolean fetchInSeparateProcess) throws Exception {\n System.setProperty(\"teamcity.git.fetch.separate.process\", String.valueOf(fetchInSeparateProcess));\n \n final GitVcsSupport support = getSupport();\n final List<Exception> errors = Collections.synchronizedList(new ArrayList<Exception>());\n \n Runnable r1 = new Runnable() {\n public void run() {\n try {\n // ensure that all revisions reachable from master are fetched\n final VcsRoot root = getRoot(\"master\");\n final List<ModificationData> ms = support.collectChanges(root, VERSION_TEST_HEAD, CUD1_VERSION, new CheckoutRules(\"\"));\n assertEquals(2, ms.size());\n ModificationData m2 = ms.get(1);\n assertEquals(\"The second commit\\n\", m2.getDescription());\n assertEquals(3, m2.getChanges().size());\n for (VcsChange ch : m2.getChanges()) {\n assertEquals(VcsChange.Type.ADDED, ch.getType());\n assertEquals(\"dir/\", ch.getFileName().substring(0, 4));\n }\n ModificationData m1 = ms.get(0);\n assertEquals(\"more changes\\n\", m1.getDescription());\n assertEquals(CUD1_VERSION, m1.getVersion());\n assertEquals(3, m1.getChanges().size());\n VcsChange ch10 = m1.getChanges().get(0);\n assertEquals(\"dir/a.txt\", ch10.getFileName());\n assertEquals(CUD1_VERSION, ch10.getAfterChangeRevisionNumber());\n assertEquals(m2.getVersion(), ch10.getBeforeChangeRevisionNumber());\n assertEquals(VcsChange.Type.CHANGED, ch10.getType());\n VcsChange ch11 = m1.getChanges().get(1);\n assertEquals(\"dir/c.txt\", ch11.getFileName());\n assertEquals(VcsChange.Type.ADDED, ch11.getType());\n VcsChange ch12 = m1.getChanges().get(2);\n assertEquals(\"dir/tr.txt\", ch12.getFileName());\n assertEquals(VcsChange.Type.REMOVED, ch12.getType());\n } catch (Exception e) {\n errors.add(e);\n }\n }\n };\n \n Runnable r2 = new Runnable() {\n public void run() {\n try {\n // now check merge commit relatively to the branch\n final VcsRoot root = getRoot(\"master\");\n final List<ModificationData> mms0 = support.collectChanges(root, MERGE_BRANCH_VERSION, MERGE_VERSION, new CheckoutRules(\"\"));\n assertEquals(2, mms0.size());\n } catch (Exception e) {\n errors.add(e);\n }\n }\n };\n \n Runnable r3 = new Runnable() {\n public void run() {\n try {\n // no check the merge commit relatively to the fork\n final VcsRoot root = getRoot(\"master\");\n final List<ModificationData> mms1 = support.collectChanges(root, CUD1_VERSION, MERGE_VERSION, new CheckoutRules(\"\"));\n assertEquals(3, mms1.size());\n ModificationData md1 = mms1.get(0);\n assertFalse(md1.isCanBeIgnored());\n assertEquals(\"merge commit\\n\", md1.getDescription());\n assertEquals(MERGE_VERSION, md1.getVersion());\n assertEquals(3, md1.getChanges().size());\n VcsChange ch20 = md1.getChanges().get(0);\n assertEquals(\"dir/a.txt\", ch20.getFileName());\n assertEquals(VcsChange.Type.REMOVED, ch20.getType());\n VcsChange ch21 = md1.getChanges().get(1);\n assertEquals(\"dir/b.txt\", ch21.getFileName());\n assertEquals(VcsChange.Type.CHANGED, ch21.getType());\n VcsChange ch22 = md1.getChanges().get(2);\n assertEquals(\"dir/q.txt\", ch22.getFileName());\n assertEquals(VcsChange.Type.ADDED, ch22.getType());\n ModificationData md2 = mms1.get(1);\n assertTrue(md2.isCanBeIgnored());\n assertEquals(\"b-mod, d-add\\n\", md2.getDescription());\n assertEquals(MERGE_BRANCH_VERSION, md2.getVersion());\n assertEquals(2, md2.getChanges().size());\n ModificationData md3 = mms1.get(2);\n assertEquals(\"a-mod, c-rm\\n\", md3.getDescription());\n assertEquals(2, md3.getChanges().size());\n } catch (Exception e) {\n errors.add(e);\n }\n }\n };\n \n Runnable r4 = new Runnable() {\n public void run() {\n try {\n // check the case with broken commit\n final VcsRoot root = getRoot(\"master\");\n String missing = GitUtils.makeVersion(GitUtils.versionRevision(CUD1_VERSION).replace('0', 'f'), GitUtils.versionTime(CUD1_VERSION));\n final List<ModificationData> mms2 = support.collectChanges(root, missing, MERGE_VERSION, new CheckoutRules(\"\"));\n assertEquals(4, mms2.size());\n ModificationData mb3 = mms2.get(3);\n assertEquals(GitServerUtil.SYSTEM_USER, mb3.getUserName());\n assertEquals(0, mb3.getChanges().size());\n } catch (Exception e) {\n errors.add(e);\n }\n }\n };\n \n for (int i = 0; i < 50; i++) {\n BaseTestCase.runAsync(4, r1, r2, r3, r4);\n }\n \n if (!errors.isEmpty()) {\n throw errors.get(0);\n }\n }", "AggregateOperation(CoreStartModifyingSegment startModifyingSegment) {\n segmentsToRemove = Collections.emptyList();\n segmentsToAdd = Collections.emptyList();\n segmentsToEndModifying = Collections.emptyList();\n segmentsToStartModifying = Collections.singletonList(startModifyingSegment.getSegmentId());\n participantsToRemove = Collections.emptyList();\n participantsToAdd = Collections.emptyList();\n docOps = Collections.emptyList();\n }", "public static void main(String[] args) {\n\n Map<Integer, Character> cows = new HashMap<Integer, Character>();\n List<Edge> tree = new ArrayList<Edge>();\n\n Scanner in = new Scanner(System.in);\n int n = in.nextInt(), m = in.nextInt();\n String cowsStr = in.next();\n for (int i = 1; i <= cowsStr.length(); i++)\n cows.put(i, cowsStr.charAt(i - 1));\n for (int i = 0; i < n - 1; i++)\n tree.add(new Edge(in.nextInt(), in.nextInt()));\n Collections.sort(tree);\n\n System.out.println(cows);\n System.out.println(tree);\n\n for (int i = 0; i < m; i++) {\n int start = in.nextInt(), end = in.nextInt();\n char cow = in.next().charAt(0);\n in.nextLine();\n System.out.println(start + \", \" + end + \", \" + cow);\n\n boolean allGood = false;\n\n if (start == end) {\n allGood = cows.get(start) == cow;\n System.out.println(allGood);\n continue;\n }\n\n int index = indexOfEnd(tree, end);\n while (tree.get(index).a != start) {\n if (cows.get(tree.get(index).a) == cow || cows.get(tree.get(index).b) == cow) {\n allGood = allGood || true;\n break;\n }\n\n index = indexOfEnd(tree, tree.get(index).a);\n if (index == -1)\n break;\n System.out.println(\"current edge: \" + tree.get(index));\n }\n System.out.println(allGood);\n }\n }", "@TestFor(issues = \"TW-48463\")\n public void concurrent_commit() throws Exception {\n RepositoryStateData s1 = RepositoryStateData.createVersionState(\"refs/heads/master\", map(\n \"refs/heads/master\", \"f727882267df4f8fe0bc58c18559591918aefc54\"));\n RepositoryStateData s2 = RepositoryStateData.createVersionState(\"refs/heads/master\", map(\n \"refs/heads/master\", \"f727882267df4f8fe0bc58c18559591918aefc54\",\n \"refs/heads/topic2\", \"cc69c22bd5d25779e58ad91008e685cbbe7f700a\"));\n myGit.getCollectChangesPolicy().collectChanges(myRoot, s1, s2, CheckoutRules.DEFAULT);\n\n RepositoryStateData state1 = myGit.getCurrentState(myRoot);\n\n CountDownLatch latch = new CountDownLatch(1);\n CountDownLatch t1Ready = new CountDownLatch(1);\n CountDownLatch t2Ready = new CountDownLatch(1);\n AtomicReference<VcsException> error1 = new AtomicReference<>();\n AtomicReference<VcsException> error2 = new AtomicReference<>();\n Thread t1 = new Thread(() -> {\n CommitPatchBuilder patchBuilder = null;\n try {\n patchBuilder = myCommitSupport.getCommitPatchBuilder(myRoot);\n patchBuilder.createFile(\"file-to-commit\", new ByteArrayInputStream(\"content1\".getBytes()));\n t1Ready.countDown();\n latch.await();\n patchBuilder.commit(new CommitSettingsImpl(\"user\", \"Commit1\"));\n } catch (VcsException e) {\n error1.set(e);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (patchBuilder != null)\n patchBuilder.dispose();\n }\n });\n t1.start();\n Thread t2 = new Thread(() -> {\n CommitPatchBuilder patchBuilder = null;\n try {\n patchBuilder = myCommitSupport.getCommitPatchBuilder(myRoot);\n patchBuilder.createFile(\"file-to-commit\", new ByteArrayInputStream(\"content2\".getBytes()));\n t2Ready.countDown();\n latch.await();\n patchBuilder.commit(new CommitSettingsImpl(\"user\", \"Commit2\"));\n } catch (VcsException e) {\n error2.set(e);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (patchBuilder != null)\n patchBuilder.dispose();\n }\n });\n t2.start();\n t1Ready.await();\n t2Ready.await();\n latch.countDown();\n t1.join();\n t2.join();\n\n RepositoryStateData state2 = myGit.getCurrentState(myRoot);\n\n List<ModificationData> changes = myGit.getCollectChangesPolicy().collectChanges(myRoot, state1, state2, CheckoutRules.DEFAULT);\n\n then(changes.size() == 2 || (error1.get() != null || error2.get() != null)) //either both commits succeeds, or one finishes with an error\n .overridingErrorMessage(\"Non-fast-forward push succeeds\")\n .isTrue();\n }", "@Override\r\n public void extractIndexBetween(List<HistoricalIndexElement> index, long start, long end) {\n historicalBuffersLock.lock();\r\n try {\r\n for (Block block : historicalBlocks) {\r\n HistoricalIndexElement[] elements = block.index.toSortedElements();\r\n for (HistoricalIndexElement historicalIndexElement : elements) {\r\n long time = historicalIndexElement.getTime();\r\n if (time >= start && time < end) {\r\n index.add(historicalIndexElement);\r\n }\r\n }\r\n }\r\n } finally {\r\n historicalBuffersLock.unlock();\r\n }\r\n\r\n if (currentBlock != null) {\r\n // Now the current block\r\n HistoricalIndexElement[] elements = currentBlock.index.toSortedElements();\r\n for (HistoricalIndexElement historicalIndexElement : elements) {\r\n long time = historicalIndexElement.getTime();\r\n if (time >= start && time < end) {\r\n index.add(historicalIndexElement);\r\n }\r\n }\r\n }\r\n\r\n }", "public EngineTransition(CodeFragment c, String start, String end){\n\t\tthis.start = start;\n\t\tthis.end = end;\n\t\tthis.code = c;\n\t\tthis.priority = 50;\n\t}", "@Test\n public void testStartAndEndDateChange() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n Calendar date = Calendar.getInstance();\n date.setTimeInMillis(date.getTimeInMillis() + TimeUnit.HOURS.toMillis(2));\n deltaEvent.setStartDate(DateTimeUtil.getDateTime(date));\n date.setTimeInMillis(date.getTimeInMillis() + TimeUnit.HOURS.toMillis(2));\n deltaEvent.setEndDate(DateTimeUtil.getDateTime(date));\n\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Check that dates has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.NEEDS_ACTION, CustomConsumers.ACTIONS);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"The appointment was rescheduled.\");\n }", "public interface Change\n{\n String getDate();\n\n int getRevision();\n\n String getCommitLog();\n\n String getCommitter();\n}", "public List<InflectionPoint> getInflectionPoints(long start, long end) {\n List<InflectionPoint> results = new ArrayList<InflectionPoint>();\n for (InflectionPoint inflectionPoint : inflectionPoints) {\n if (inflectionPoint.utcDateTime <= start) {\n results.add(new InflectionPoint(start, inflectionPoint.offset));\n break;\n } else if (inflectionPoint.utcDateTime < end) {\n results.add(new InflectionPoint(inflectionPoint.utcDateTime,\n inflectionPoint.offset));\n }\n }\n return results;\n }", "@Test\r\n\tpublic void testCheck_featureLocationBeginandEndwithNs() {\r\n\t\tint beginN = 10;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 1, (long) 8));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tFeature feature2 = featureFactory.createFeature(\"feature2\");\r\n\t\tOrder<Location> order2 = new Order<Location>();\r\n\t\torder2.addLocation(locationFactory.createLocalRange((long) 40,\r\n\t\t\t\t(long) 46));\r\n\t\tfeature2.setLocations(order2);\r\n\t\tentry.addFeature(feature1);\r\n\t\tentry.addFeature(feature2);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN,false).size() ==2);\r\n\t\t}", "public void resolveRevisionStates() {\r\n\t\tboolean first = true;\r\n\t\tfor (Iterator i = getRevisions().iterator(); i.hasNext();) {\r\n\t\t\tPvcsRevision revision = (PvcsRevision) i.next();\r\n\t\t\tif (first) {\r\n\t\t\t\trevision.setState(PvcsRevisionState.ADD);\r\n\t\t\t\tfirst = false;\r\n\t\t\t} else {\r\n\t\t\t\trevision.setState(PvcsRevisionState.CHANGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public SortedSet<ActivityProcessor> getActivityProcessors();", "List<Defect> analyze(StructuredScenario mainScenario, HashMap<String, List<StructuredScenario>> sequentiallyRelatedScenariosHashMap, HashMap<String, List<StructuredScenario>> nonSeqRelatedScenarioHashMap);", "public void changeHighlight(final Position start,\n final Position end) {\n startPosition = start;\n endPosition = end;\n }", "@Override\n\tpublic java.util.List<eu.strasbourg.service.project.model.Participation>\n\t\tgetParticipations(int start, int end) {\n\n\t\treturn _participationLocalService.getParticipations(start, end);\n\t}", "public java.util.List<Todo> findAll(int start, int end);", "protected List<Candidate> getSlopeCandidates() {\r\n\t\t//method parameter declaration\r\n\t\tString de_name, xml_gid_in = null, xml_gid_out = null;\r\n\t\t\r\n\t\t//metaData logging\r\n\t\tLogger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.INFO, \"Features_in size is: \" + this.getFeatures_in().length);\r\n\t\tSystem.out.println(\"max allowed end-point distance is: \" + this.slopeThreshold);\r\n\t\tSystem.out.println(\"max allowed mid-point distance is: \" + midPointThreshold);\r\n\t\tSystem.out.println(\"max allowed height difference for slope Links is: \" + (StartConfiguration.getInstance().getSlope_heights()[5] + 0.5));\r\n\t\tList<SimpleFeature> slopes_out = new ArrayList<SimpleFeature>(Arrays.asList(this.getFeatures_in()));\r\n\t\tList<Candidate> candidates = new ArrayList<Candidate>();\r\n\t\tCandidate cand = null;\r\n\t\t\t\t\r\n\t\tfor (SimpleFeature slope_in: this.getFeatures_in()) {\r\n\t\t\t//remove first item of the out_feature list, to avoid checking a feature over itself\r\n\t\t\tslopes_out.remove(0);\r\n\t\t\t\r\n//if (!slope_in.getAttribute(\"DE_GR_L_1\").equals(\"Sportgastein\")) continue;\r\n\r\n\t\t\t//fetch geometry, coordinate sequence and create start and end point\r\n\t\t\tGeometry geom_in = (Geometry) slope_in.getDefaultGeometry();\r\n\t\t\tCoordinate [] slope_in_endPoints = GeometryOperations.getOrderedEndPoints(slope_in);\r\n\t\t\t\r\n\t\t\t//iterate over the out set of features\r\n\t\t\tfor (SimpleFeature slope_out: slopes_out) {\t\t\r\n\t\t\t\t//fetch semantic info\r\n\t\t\t\tde_name = slope_in.getAttribute(\"DE_GR_L_0\") + \" - \" + slope_in.getAttribute(\"DE_GR_L_1\");\r\n\t\t\t\txml_gid_in = slope_in.getAttribute(\"XML_GID\").toString();\r\n\t\t\t\txml_gid_out = slope_out.getAttribute(\"XML_GID\").toString();\r\n\t\t\t\t\r\n\t\t\t\tString[] attributes = new String [] {xml_gid_in, xml_gid_out, de_name};\r\n\t\t\t\t\r\n\t\t\t\t//fetch geometry and slope_out end-points\r\n\t\t\t\tCoordinate [] slope_out_endPoints = GeometryOperations.getOrderedEndPoints(slope_out);\r\n\t\t\t\tGeometry geom_out = (Geometry) slope_out.getDefaultGeometry();\r\n\t\t\t\t\r\n\t\t\t\t/* fetch intersection points of two geometries. size null -> means no intersection. size >=1 -> means slope intersect at one or more points */\r\n\t\t\t\tList<Coordinate> intersectionPoints = geomOps.getIntersectionVertices(geom_in, geom_out);\r\n\r\n\t\t\t\t//Remove common upper or lower point, if there is one, from intersection list\r\n\t\t\t\tcleanIntersectionsFromCommonEndPoints(slope_in_endPoints, slope_out_endPoints, intersectionPoints);\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t/* 1 - search slope_in upper for connection with slope_out lower or mid-point (distance < 20m) (traverse direction from slope_out to slope_in) */\r\n\t\t\t\tCoordinate midPointNeighbor = getMidPointCandidate(slope_in_endPoints[1], geom_out, midPointThreshold); //fetch midPoint neighbor if one exists, for upper endPoint\r\n\t\t\t\tcand = fetchEndpointCandidate(slope_in_endPoints[1], slope_out_endPoints[0], intersectionPoints, midPointNeighbor, attributes, true);\r\n\t\t\t\tif (cand!=null) { candidates.add(cand); }\r\n\t\t\t\t\r\n\t\t\t\t/* 2 - search slope_in lower for connection with slope_out upper or mid-point (distance < 20m) (traverse direction from slope_in to slope_out) */\r\n\t\t\t\tmidPointNeighbor = getMidPointCandidate(slope_in_endPoints[0], geom_out, this.midPointThreshold);\t//fetch midPoint neighbor if one exists, for lower endPoint\r\n\t\t\t\tcand = fetchEndpointCandidate(slope_in_endPoints[0], slope_out_endPoints[1], intersectionPoints, midPointNeighbor, attributes, false);\r\n\t\t\t\tif (cand!=null) { candidates.add(cand); }\r\n\t\t\t\t\r\n\t\t\t\t/* 3 - search slope_out upper for connection with slope_in lower or mid-point (distance < 20m) (traverse direction from slope_in to slope_out)*/\r\n\t\t\t\tmidPointNeighbor = getMidPointCandidate(slope_out_endPoints[1], geom_in, midPointThreshold); //fetch midPoint neighbor if one exists, for upper slope_out endPoint\r\n\t\t\t\tcand = fetchEndpointCandidate(slope_out_endPoints[1], slope_in_endPoints[0], intersectionPoints, midPointNeighbor, new String [] { xml_gid_out, xml_gid_in, de_name}, true);\r\n\t\t\t\tif (cand!=null) { candidates.add(cand); }\r\n\t\t\t\t\r\n\t\t\t\t/* 4 - search slope_out lower for connection with slope_in upper or mid-point (distance < 20m) (traverse direction from slope_out to slope_in) */\r\n\t\t\t\tmidPointNeighbor = getMidPointCandidate(slope_out_endPoints[0], geom_in, this.midPointThreshold);\t//fetch midPoint neighbor if one exists, for lower endPoint\r\n\t\t\t\tcand = fetchEndpointCandidate(slope_out_endPoints[0], slope_in_endPoints[1], intersectionPoints, midPointNeighbor, new String [] { xml_gid_out, xml_gid_in, de_name}, false);\r\n\t\t\t\tif (cand!=null) { candidates.add(cand);\t}\r\n\t\t\t\t\r\n\t\t\t\t/* 5 - No candidate links are found and slopes DO NOT INTERSECT, search for mid-point links*/\r\n\t\t\t\tif (candidates.size() == 0 && intersectionPoints == null) {\r\n\t\t\t\t\t//Fetch closest point between two geometries, that is within allowed threshold (10.50)\r\n\t\t\t\t\tif (DistanceOp.isWithinDistance(geom_in, geom_out, midPointThreshold)) {\r\n\t\t\t\t\t\t//fetch nearest points\r\n\t\t\t\t\t\tCoordinate[] nearestPoints = DistanceOp.nearestPoints(geom_in, geom_out);\r\n\t\t\t\t\t\tCoordinate nearestGeom_in = nearestPoints[0];\r\n\t\t\t\t\t\tCoordinate nearestGeom_out = nearestPoints[1];\r\n\t\t\t\t\t\t//fetch interpolated Z ordinate in case it is NaN\r\n\t\t\t\t\t\tnearestGeom_in = GeometryOperations.get3DLinePoint(nearestGeom_in, geom_in);\r\n\t\t\t\t\t\tnearestGeom_out = GeometryOperations.get3DLinePoint(nearestGeom_out, geom_out);\r\n\t\t\t\t\t\t//create and add mid-point candidate. Traverse direction has to be from highest to lowest point\r\n\t\t\t\t\t\tif (nearestGeom_in.z > nearestGeom_out.z) {\r\n\t\t\t\t\t\t\tcand = new Candidate(nearestGeom_in, nearestGeom_out, \"Slope2Slope\", xml_gid_in, xml_gid_out, de_name);\r\n\t\t\t\t\t\t\tcandidates.add(cand);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcand = new Candidate(nearestGeom_out, nearestGeom_in, \"Slope2Slope\", xml_gid_out, xml_gid_in, de_name);\r\n\t\t\t\t\t\t\tcandidates.add(cand);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//FINALLY add intersection points\r\n\t\t\t\tif (intersectionPoints != null && intersectionPoints.size() > 0) {\r\n\t\t\t\t\t//System.err.println(\"Still \" + intersectionPoints.size() + \" to add\");\r\n\t\t\t\t\tfor (Coordinate intersection: intersectionPoints) {\r\n\t\t\t\t\t\tcand = new Candidate(intersection, intersection, \"Intersection\", xml_gid_in, xml_gid_out, de_name);\r\n\t\t\t\t\t\tcandidates.add(cand);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcand = null; //reset candidate\r\n\t\t\t} \r\n\t\t}\r\n\r\n\t\t//Clean duplicate candidates in case some exist, candidates with different start and end features are needed for the final slope nodding\r\n\t\tcleanDuplicates(candidates);\r\n\t\t\t\r\n\t\t//********* METHOD END ****************\r\n\t\treturn candidates;\r\n\t}", "AggregateOperation(CoreEndModifyingSegment endModifyingSegment) {\n segmentsToRemove = Collections.emptyList();\n segmentsToAdd = Collections.emptyList();\n segmentsToEndModifying = Collections.singletonList(endModifyingSegment.getSegmentId());\n segmentsToStartModifying = Collections.emptyList();\n participantsToRemove = Collections.emptyList();\n participantsToAdd = Collections.emptyList();\n docOps = Collections.emptyList();\n }", "public void includeCommitmentsFromRule(Rule aRule)\n {\n int j;\n int x;\n int y;\n String commitmentType;\n String direccion;\n StringTokenizer tokenizer;\n Commitment aCommitment;\n int prioridad;\n //-------------\n\n j = 0;\n while(j < aRule.commitments.size())\n {\n tokenizer = new StringTokenizer(aRule.commitments.get(j).predicate,\"(), \");\n commitmentType = tokenizer.nextToken();\n if((commitmentType.equals(\"secuencia\")) && (!commitmentsWithPriority()))\n {\n prioridad = 1;\n while( tokenizer.hasMoreElements())\n {\n x = Integer.valueOf(tokenizer.nextToken());\n y = Integer.valueOf(tokenizer.nextToken());\n direccion = tokenizer.nextToken();\n aCommitment = new Commitment(\"mover(\"+ x + \",\"+ y+\",\"+direccion+\")\");\n\n aCommitment.setPriority(prioridad);\n commitments.add(aCommitment);\n prioridad = prioridad + 1;\n }//end while\n\n\n }//end if\n else\n {\n commitments.add(aRule.commitments.get(j));\n }//end else\n j = j + 1;\n }//end while\n\n }", "private static void find(Gitlet currCommit, String[] args) {\n if (args.length != 2) {\n System.out.println(\"Specify which message you are looking for.\");\n return;\n }\n HashMap<String, HashSet<Commit>> messageToCommit = currCommit.tree\n .getMessageToCommits();\n if (!messageToCommit.containsKey(args[1])) {\n System.out.println(\"Found no commit with that message.\");\n\n } else {\n for (Commit x : messageToCommit.get(args[1])) {\n System.out.println(x.getId());\n }\n }\n }" ]
[ "0.61127454", "0.5429142", "0.51474375", "0.49622136", "0.48306105", "0.4729928", "0.4712825", "0.4667634", "0.46585867", "0.46469212", "0.46280682", "0.4616553", "0.46025085", "0.45825708", "0.4557346", "0.45565537", "0.45477724", "0.44918078", "0.44788292", "0.4464968", "0.4463715", "0.44501388", "0.4443129", "0.44422504", "0.44380584", "0.43793947", "0.4365685", "0.43654385", "0.43584952", "0.43271032", "0.4318707", "0.4304838", "0.42939138", "0.42920983", "0.42840037", "0.42722297", "0.42634436", "0.42089015", "0.42087814", "0.41999963", "0.41940868", "0.4180528", "0.41606188", "0.4149535", "0.41462195", "0.41421872", "0.41392446", "0.41342467", "0.41288558", "0.41279572", "0.41164258", "0.41088125", "0.4103924", "0.4088097", "0.40847617", "0.40805075", "0.40598667", "0.40585437", "0.40584344", "0.4057479", "0.4053965", "0.40504593", "0.40478316", "0.4046341", "0.4025172", "0.40231636", "0.40118736", "0.40101376", "0.40055108", "0.40013885", "0.39958674", "0.39869177", "0.39845216", "0.39811426", "0.39798674", "0.39689434", "0.39659798", "0.3961135", "0.39584678", "0.39539793", "0.3946753", "0.39393055", "0.39297077", "0.39282578", "0.3927674", "0.39208955", "0.3910019", "0.38974977", "0.38974017", "0.3892401", "0.38852346", "0.3881402", "0.38690045", "0.38614395", "0.38555863", "0.38515285", "0.38474834", "0.384218", "0.384056", "0.3836994" ]
0.63318485
0
Extract information from a single commit
static public void extractSingleCommit(String commitId) throws Exception { DataExtractor de = new DataExtractor(); List<String> commit_ids = new ArrayList<String>(); commit_ids.add(commitId); de.extractCommitInfo(commit_ids); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Commit commitFullInfo(ArrayList<Commit> commitList) {\n\t\tCommit previousCommitID = null;\n\t\tfor (int i = 0; i < commitList.size(); i++) {\n\t\t\tif (commitList.get(i).commitID.contains(this.commitID)) {\n\t\t\t\treturn commitList.get(i);\n\t\t\t}\n\t\t}\n\n\t\treturn previousCommitID;\n\n\t}", "Commit getLastCommitDetails(Object requestBody) throws VersionControlException;", "long getCommitID() {\r\n return commit_id;\r\n }", "public void printCommitLog(Commit commit) {\n System.out.println(\"===\");\n System.out.println(\"commit \" + commit.getShaCode());\n if (commit.parents().size() == NUMPARENTS) {\n String mom = commit.getParent();\n mom = mom.substring(0, 7);\n String dad = commit.getSecondParent();\n dad = dad.substring(0, 7);\n System.out.println(\"Merge: \" + mom + \" \" + dad);\n }\n System.out.println(\"Date: \" + commit.getTimeStamp());\n System.out.println(commit.getLogMsg() + \"\\n\");\n }", "Commit getCommit(String hash) {\n Commit newCommit = null;\n File gettin = new File(\".gitlet/commits/\" + hash);\n if (gettin.exists()) {\n return deserializeCommit(\".gitlet/commits/\" + hash);\n } else {\n return deserializeCommit(\".gitlet/commits/\" + hash + \".ser\");\n }\n }", "public static void log() {\n String branch = commitPointers.readHeadCommit()[0];\n String currName = commitPointers.readHeadCommit()[1];\n File cFile = Utils.join(Commit.COMMIT_FOLDER, currName + \".txt\");\n Commit curr = Utils.readObject(cFile, Commit.class);\n\n while (currName != null) {\n System.out.println(\"===\");\n System.out.println(\"commit \" + curr.commitID);\n if (curr.parentID.size() == 2) {\n System.out.println(\"Merge: \" + curr.parentID.get(0).substring(0, 7) + \" \" + curr.parentID.get(1).substring(0, 7));\n }\n System.out.println(\"Date: \" + curr.timeStamp.format(myFormatObj) + \" -0800\");\n System.out.println(curr.message);\n System.out.println();\n\n currName = curr.parentID.get(0);\n\n if (currName != null) {\n File newcFile = Utils.join(Commit.COMMIT_FOLDER, currName + \".txt\");\n curr = Utils.readObject(newcFile, Commit.class);\n }\n }\n }", "private TreeTableNode parseSingleCommit(Description commit) throws OWLException {\r\n\r\n\t\t// make the main annotation the top header\r\n\t\tSwoopChange main = new SwoopChange();\r\n\t\tmain.setAuthor(commit.getAuthor());\r\n\t\tmain.setCommitted(true); // not needed really\r\n\t\tmain.isTopNode = true; /* this is key */\r\n\t\tmain.setTimeStamp(commit.getCreated());\r\n\t\tmain.setDescription(commit.getAnnotatedEntityDefinition());\r\n\t\tTreeTableNode mainNode = new TreeTableNode(main);\r\n\t\t\r\n\t\t// parse change set associated with single commit\r\n\t\tString changeSetString = commit.getBody();\r\n\t\tif (changeSetString!=null) {\r\n\t\t\t// decode CDATA stuff\r\n\t\t\tchangeSetString = changeSetString.replaceAll(\"ENCODED-CDATA\", \"CDATA\");\r\n\t\t\tchangeSetString = changeSetString.replaceAll(\"]ENCODED]>\", \"]]>\"); \r\n\t\t\t\t\r\n\t\t\t// now split based on separator\r\n\t\t\tString[] changeStr = changeSetString.split(separator);\r\n\t\t\t\r\n\t\t\t// each split component is a separate change\r\n\t\t\tList repDesc = new ArrayList(); // list of Description (changes)\r\n\t\t\tfor (int i=0; i<changeStr.length; i++) {\r\n\t\t\t\tString swcDesc = changeStr[i]; // SwoopChange mapped to a Description serialized in RDF/XML\r\n\t\t\t\tDescription desc = new Description();\r\n\t\t\t\tdesc.deserializeFromString(swcDesc, swoopModel);\r\n\t\t\t\trepDesc.add(desc);\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// transform Description list to SwoopChange list\r\n\t\t\tList swcChangeList = this.transformChangeList(repDesc);\r\n\t\t\t\r\n\t\t\t// add each swoopChange as a child of mainNode\r\n\t\t\tthis.sortChanges(swcChangeList);\r\n\t\t\tfor (Iterator iter2 = swcChangeList.iterator(); iter2.hasNext();) {\r\n\t\t\t\tSwoopChange swc = (SwoopChange) iter2.next();\r\n\t\t\t\tTreeTableNode swcNode = new TreeTableNode(swc);\r\n\t\t\t\tswcNode.swoopChange.isOnRepository = true;\r\n\t\t\t\tmainNode.addChild(swcNode);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn mainNode;\r\n\t}", "@NonNull\n public String getCommitId() {\n return this.commitId;\n }", "public String getCurrentCommitHash() throws IOException {\n String baseCommit = git.launchCommand(\"rev-parse\", \"--verify\", \"HEAD\").trim();\n debuggingLogger.fine(String.format(\"Base commit hash%s\", baseCommit));\n return baseCommit;\n }", "private static void find(Gitlet currCommit, String[] args) {\n if (args.length != 2) {\n System.out.println(\"Specify which message you are looking for.\");\n return;\n }\n HashMap<String, HashSet<Commit>> messageToCommit = currCommit.tree\n .getMessageToCommits();\n if (!messageToCommit.containsKey(args[1])) {\n System.out.println(\"Found no commit with that message.\");\n\n } else {\n for (Commit x : messageToCommit.get(args[1])) {\n System.out.println(x.getId());\n }\n }\n }", "String getCommitMessageForLine(IPath filePath, int line);", "@SuppressWarnings(\"unused\") \n\tprivate void extractChanges(Node commit_node, RevCommit m) throws Exception\n\t{\n\n\t\tList<String> commitIds = new ArrayList<String>(); \n\n\t\tcommitIds.add(m.toObjectId().getName());\n\t\t\n\t\tCommitInfoExtractor cie = new CommitInfoExtractor();\n\t\tcie.extractFeatureChanges(commitIds);\n\t\tList<EvolutionStep>steps = cie.getSteps();\n\t\t\n\t\ttry(Transaction tx = DBConnection.getService().beginTx())\n\t\t{\n\t\t\tfor(EvolutionStep step : steps)\n\t\t\t{\n\t\t\t\tFileChangeExtractor file_changes = new FileChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> file_nodes = file_changes.addFileChangesToCommit(step.files, commit_node);\n\t\t\t\t\n\t\t\t\tVMChangeExtractor vm_changes = new VMChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> vm_nodes = vm_changes.addVMChangesToCommit(step.fm_changes, commit_node);\n\t\t\t\t\n\t\t\t\tBuildChangeExtractor build_changes = new BuildChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> build_nodes = build_changes.addBuildChangesToCommit(step.build_changes, commit_node);\n\t\t\t\t\n\t\t\t\tCodeChangeExtractor code_changes = new CodeChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> code_nodes = code_changes.addCodeChangesToCommit(step.impl_changes, commit_node);\n\n//\t\t\t\tList<EvolutionStep> local = new ArrayList<EvolutionStep>(); local.add(step);\n//\t\t\t\tFeatureOrientedChangeExtractor dataextractor = new FeatureOrientedChangeExtractor(local);\n//\t\t\t\tdataextractor.buildFeatureChanges();\n//\t\t\t\t\n//\t\t\t\tList<FeatureOrientedChange> changes = dataextractor.getFeatureChanges();\n//\t\n//\t\t\t\tList<Node> focs = new ArrayList<Node>();\n//\t\t\t\tfor(FeatureOrientedChange c : changes)\n//\t\t\t\t{\n//\t\t\t\t\tNode foc_node = createFeatureOrientedChangeForCommit(c);\n//\t\t\t\t\tfocs.add(foc_node);\n//\t\t\t\t\tlink_file_and_vm_changes(c,foc_node,file_nodes, vm_nodes,build_nodes,code_nodes); \n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t\tMap<String,Node> known_focs = buildFOCMap(focs);\n//\t\t\t\tlink_mapping_artefacts(known_focs,build_nodes);\n//\t\t\t\tlink_code_artefacts(known_focs,code_nodes);\n\t\t\t}\n\t\t\ttx.success();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tthrow new Exception(\"Failed to create Neo4j nodes - \", e);\n\t\t}\n\t}", "Commit getCurrentCommit() {\n String branchh = null;\n Commit prev = null;\n File currentB = new File(\".gitlet/current\");\n for (File file: currentB.listFiles()) {\n branchh = file.getName();\n }\n return deserializeCommit(\".gitlet/heads/\" + branchh);\n }", "public void log() {\n String headID = head.getCommitID();\n while (headID != null) {\n File curr = new File(\".gitlet/commits/\" + headID);\n Comm currcomm = Utils.readObject(curr, Comm.class);\n System.out.println(\"===\");\n System.out.println(\"commit \" + currcomm.getCommitID());\n if (currcomm.getMergepointer() != null) {\n System.out.println(\"Merge: \"\n + currcomm.getParent().getCommitID()\n .substring(0, 7) + \" \"\n + currcomm.getMergepointer().getCommitID()\n .substring(0, 7));\n }\n System.out.println(\"Date: \" + currcomm.getDate());\n System.out.println(currcomm.getMessage());\n System.out.println();\n if (currcomm.getParent() == null) {\n break;\n } else {\n headID = currcomm.getParent().getCommitID();\n }\n }\n }", "static public void extractCommitRange(String start, String end) throws Exception\n\t{\n\t\tDataExtractor de = new DataExtractor();\n\t\tde.extractCommitInfo(start, end);\n\t}", "@Override\n public GetCommitResult getCommit(GetCommitRequest request) {\n request = beforeClientExecution(request);\n return executeGetCommit(request);\n }", "public Commit findCommit(String hash) {\r\n Query<Commit> commitQuery = datastore.find(Commit.class);\r\n commitQuery.and(\r\n commitQuery.criteria(\"revision_hash\").equal(hash),\r\n commitQuery.criteria(\"vcs_system_id\").equal(getVcSystem().getId())\r\n );\r\n final List<Commit> commits = commitQuery.asList();\r\n\r\n if (commits.size() == 1) {\r\n return commits.get(0);\r\n } else {\r\n logger.debug(\"Could not find commit: \" + hash);\r\n return null;\r\n }\r\n }", "private static String getCommitId(RevCommit m )\n\t{\n\t\treturn m.getId().abbreviate(10).name();\n\t}", "public Commit getHeadCommit() {\n Commit result = null;\n File headFile = new File(Main.DOTFILE, HEADNAME.getName());\n if (headFile.exists()) {\n String id = Utils.readObject(HEADNAME, String.class);\n File associatedFile = new File(Main.ALL_BRANCHES, id);\n if (associatedFile.exists()) {\n String headID = Utils.readObject(associatedFile, String.class);\n File cmt = new File(Main.ALL_COMMITS, headID);\n result = Utils.readObject(cmt, Commit.class);\n }\n }\n return result;\n }", "private Commit getCommitFromID(String shaCode) {\n File f = new File(Main.ALL_COMMITS, shaCode);\n if (f.exists()) {\n return Utils.readObject(f, Commit.class);\n } else {\n return null;\n }\n }", "private Commit findCommit(String branchName) {\n File givenBranch = new File(Main.ALL_BRANCHES, branchName);\n if (givenBranch.exists()) {\n String commitID = Utils.readObject(givenBranch, String.class);\n File theCommit = new File(Main.ALL_COMMITS, commitID);\n Commit cmt = Utils.readObject(theCommit, Commit.class);\n return cmt;\n } else {\n return null;\n }\n }", "public String getCommitSpecifier() {\n return this.commitSpecifier;\n }", "TCommit getCommitForTag(TRepo repo, String tagName);", "@Test\n\tpublic void getIdWithCommit() throws Exception {\n\t\tRepository repo = new FileRepository(testRepo);\n\t\tRevCommit commit = add(\"d1/f1.txt\", \"content\");\n\t\tassertNull(TreeUtils.getId(repo, commit, \"d2/f1.txt\"));\n\t\tassertNull(TreeUtils.getId(repo, commit, \"d1/f1.txt\"));\n\t\tObjectId treeId = TreeUtils.getId(repo, commit, \"d1\");\n\t\tassertNotNull(treeId);\n\t\tassertFalse(treeId.equals(commit.getTree()));\n\t\tassertNull(BlobUtils.getId(repo, commit, \"d1\"));\n\t\tassertFalse(treeId.equals(BlobUtils.getId(repo, commit, \"d1/f1.txt\")));\n\t}", "GitCommit(RevCommit anRC) { _rev = anRC; }", "public String getHeadCommitID() {\n return Utils.readObject(HEADFILE, String.class);\n }", "public long getCommitTime() { return _rev.getCommitTime()*1000L; }", "public String getProjectCommitRecordStatus(int pgId, int commitNumber) {\n String status = \"\";\n String query = \"SELECT status FROM Project_Commit_Record where pgId = ? and limit ?,1\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(query)) {\n preStmt.setInt(1, pgId);\n preStmt.setInt(2, commitNumber - 1);\n\n try (ResultSet rs = preStmt.executeQuery();) {\n if (rs.next()) {\n status = rs.getString(\"status\");\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return status;\n\n }", "public static String getHeadCommitId(@NotNull JSONObject jsonObject) {\n return jsonObject.getJSONObject(\"head_commit\").get(\"id\").toString();\n }", "public void handle(PBFTCommit c){\n Object lpid = getLocalServerID();\n long now = getClockValue();\n\n JDSUtility.debug(\"[handle(commit)] s\" + lpid + \", at time \" + now + \", received \" + c);\n\n /* If I received a invalid prepare then I'll discard it. */\n if(!(c != null && c.getSequenceNumber() != null && c.getViewNumber() != null && c.getReplicaID() != null)){\n JDSUtility.debug(\"[handle(commit)] s\" + lpid + \", at time \" + now + \", discarded \" + c + \" because it's a malformed commit.\");\n return;\n }\n\n /* If the received commit wasn't sent by a group member then I'll discard it. */\n if(!wasSentByAGroupMember(c)){\n JDSUtility.debug(\"[handle(commit)] s\" + lpid + \", at time \" + now + \", discarded \" + c + \" because it wasn't sent by group member.\");\n return;\n }\n\n long lcwm = getLCWM();\n long hcwm = getHCWM();\n long seqn = c.getSequenceNumber();\n\n /*If seqn(c) not in (lcwm, hcwm] then c will be discarded. */\n if(!(lcwm < seqn && seqn <= hcwm)){\n JDSUtility.debug(\"[handle(commit)] s\" + lpid + \", at time \" + now + \", discarded \" + c + \" because its SEQN{\" + seqn +\"} not in (\" + lcwm + \"; \" + hcwm + \"].\");\n return;\n }\n\n int itView = c.getViewNumber();\n int myView = getCurrentViewNumber();\n\n /* If the prepare was sent in my current view then I'll check and process it.*/\n if(itView > myView){\n JDSUtility.debug(\"[handle(commit)] s\" + lpid + \", at time \" + now + \", discarded \" + c + \" because it wasn't sent in CURR-VIEW{\" + myView + \"}\");\n return;\n }\n \n if(!getCommitInfo().put(c)){\n JDSUtility.debug(\"[handle(commit)] s\" + lpid + \", at time \" + now + \", discarded \" + c + \" because it is a duplicaded commit SEQN{\" + seqn + \"}\");\n return;\n }\n\n if(itView != myView){\n JDSUtility.debug(\"[handle(commit)] s\" + lpid + \", at time \" + now + \", cann't proceed because \" + c + \" in CURR-VIEW{\" + myView + \"}\");\n return;\n }\n\n int f = getServiceBFTResilience();\n\n if(getCommitInfo().count(myView, seqn) < (2 * f + 1)){\n return;\n }\n \n PBFTPrepare p = getPrepareInfo().get(myView, seqn, lpid);\n\n if(p != null && getCommitInfo().get(myView, seqn, lpid) == null){\n getRequestInfo().assign(seqn, RequestState.COMMITTED);\n emitCommit(myView, seqn);\n return;\n }\n\n tryExecuteRequests();\n \n }", "void setCommitID(long commit_id) {\r\n this.commit_id = commit_id;\r\n }", "public interface Change\n{\n String getDate();\n\n int getRevision();\n\n String getCommitLog();\n\n String getCommitter();\n}", "public Commit getCommitById(int id) {\r\n for (Commit c : this.commmit) {\r\n if (c.getId() == id) {\r\n return c;\r\n }\r\n }\r\n return null;\r\n }", "private void processCommitEntry(SensorShell shell, String author, long timestamp, \r\n Date commitTime, int revision, PerforceChangeListData.PerforceFileData fileData)\r\n throws Exception {\r\n if (shell != null) {\r\n String file = this.fileNamePrefix == null ? \"\" : this.fileNamePrefix;\r\n file += fileData.getFileName();\r\n\r\n Map<String, String> pMap = new HashMap<String, String>();\r\n String timestampString = Tstamp.makeTimestamp(timestamp).toString();\r\n pMap.put(\"SensorDataType\", \"Commit\");\r\n pMap.put(\"Resource\", file);\r\n pMap.put(\"Tool\", \"Perforce\");\r\n pMap.put(\"Timestamp\", timestampString);\r\n pMap.put(\"Runtime\", Tstamp.makeTimestamp(commitTime.getTime()).toString());\r\n pMap.put(\"totalLines\", String.valueOf(fileData.getTotalLines()));\r\n pMap.put(\"linesAdded\", String.valueOf(fileData.getLinesAdded()));\r\n pMap.put(\"linesDeleted\", String.valueOf(fileData.getLinesDeleted()));\r\n pMap.put(\"linesModified\", String.valueOf(fileData.getLinesModified()));\r\n shell.add(pMap);\r\n if (this.isVerbose) {\r\n System.out.printf(\"Sending Perforce Commit: Timestamp: %s Resource: %s User: %s%n\", \r\n timestampString, file, shell.getProperties().getSensorBaseUser());\r\n }\r\n }\r\n }", "Git getGit();", "private Commit getCommit(Repository repository, RevCommit currentCommit, RevCommit parent){\n ObjectId newTree = currentCommit.getTree();\n ObjectId oldTree = parent.getTree();\n TreeWalk tw = new TreeWalk(repository);\n tw.setRecursive(true);\n try {\n tw.addTree(oldTree);\n tw.addTree(newTree);\n List<DiffEntry> diffs = DiffEntry.scan(tw);\n Commit commit = new Commit(currentCommit);\n commit.changedFileList = this.getChangedFiles(repository, diffs);\n commit.setLines();\n return commit;\n } catch (Exception e) {\n System.out.println(e);\n logger.error(e);\n throw new AssertionError();\n }\n }", "public void find(String commitmsg) {\n\t\tif (!messageMap.containsKey(commitmsg)) {\n\t\t\tSystem.out.println(\"Found no commit with that message.\");\n\t\t}\n\t\tArrayList<Integer> commitID = messageMap.get(commitmsg);\n\t\tfor (int ID : commitID) {\n\t\t\tSystem.out.println(ID);\n\t\t}\n\t}", "public Commit commitFromFile(String sha1) {\n File commitFile = Utils.join(_objects, sha1);\n if (!commitFile.exists()) {\n throw new IllegalArgumentException(\n \"No commit file with that name found.\");\n }\n return Utils.readObject(commitFile, Commit.class);\n }", "public abstract String getRevision();", "private static void checkout(Gitlet currCommit, String[] args) {\n if (args.length < 2 && args.length > 3) {\n System.out\n .println(\"Please input one of the following combinations: \"\n + \"\\n File Name \\n Commit Id and File Name \\n Branch Name\");\n return;\n }\n if (!isSure()) {\n return;\n }\n if (args.length == 2) {\n if (currCommit.tree.getBranches().contains(args[1])) {\n if (currCommit.tree.getCurrentBranch().equals(args[1])) {\n System.out\n .println(\"No need to checkout the current branch.\");\n return;\n }\n Commit headCommit = currCommit.tree.getHeadCommit(args[1]);\n HashMap<String, String> locations = headCommit.getFileLoc();\n HashMap<String, String> currentFiles = currCommit.tree\n .getHeadCommit().getFileLoc();\n for (String x : currentFiles.keySet()) {\n if (locations.containsKey(x)) {\n FileManip temp = new FileManip(locations.get(x));\n temp.copyFile(x);\n }\n }\n currCommit.tree.setCurrentBranch(args[1]);\n currCommit.status.replaceMainBranch(args[1]);\n addSerializeFile(currCommit);\n return;\n }\n Commit headCommit = currCommit.tree.getHeadCommit();\n if (currCommit.tree.containsFile(args[1])) {\n FileManip dest = new FileManip(headCommit.getLocation(args[1]));\n dest.copyFile(args[1]);\n return;\n }\n String error = \"File does not exist in the most recent commit,\";\n error += \" or no such branch exists.\";\n System.out.println(error);\n return;\n } else {\n if (!currCommit.tree.hasId(args[1])) {\n System.out.println(\"No commit with that id exists.\");\n return;\n\n }\n Commit commit = currCommit.tree.getCommitFromId(args[1]);\n\n if (!commit.containsFile(args[2])) {\n System.out.println(\"No such file exists in this commit.\");\n\n } else {\n System.out.println(commit.getLocation(args[2]));\n FileManip dest = new FileManip(commit.getLocation(args[2]));\n dest.copyFile(args[2]);\n }\n }\n }", "public static void main(String[] args) {\nSystem.out.println(\"nagarjuna is .................\");\r\n//second commit\r\nSystem.out.println(\"vinay is ..............................\");\r\n//third commit\r\nSystem.out.println(\"vinay is a ?\");\r\n\t}", "public Commit getCommit(Repository repository, RevCommit currentCommit) {\n if (currentCommit.getParentCount() <= 0) {\n return new Commit(currentCommit);\n }\n RevCommit parent = currentCommit.getParent(0);\n return getCommit(repository, currentCommit, parent);\n }", "public JSONObject getProjectCommitRecord(int pgId) {\n String sql = \"SELECT * FROM Project_Commit_Record WHERE pgId=?\";\n JSONObject ob = new JSONObject();\n JSONArray array = new JSONArray();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n int statusId = rs.getInt(\"status\");\n StatusEnum statusEnum = csDb.getStatusNameById(statusId);\n int commitNumber = rs.getInt(\"commitNumber\");\n Date commitTime = rs.getTimestamp(\"time\");\n String commitStudent = rs.getString(\"commitStudent\");\n JSONObject eachHw = new JSONObject();\n eachHw.put(\"status\", statusEnum.getType());\n eachHw.put(\"commitNumber\", commitNumber);\n eachHw.put(\"commitTime\", commitTime);\n eachHw.put(\"commitStudent\", commitStudent);\n array.put(eachHw);\n }\n }\n ob.put(\"commits\", array);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return ob;\n }", "public String getLastCommit() {\n return getCellContent(LAST_COMMIT);\n }", "public Commit getLeaf(){\n\t\treturn myLeaf;\n\t}", "RetrieveCommitsStatisticsResultResponse retrieveCommits(final RetrieveCommitsStatisticsRequest request);", "public static void main(String[] args) throws IOException, SQLException {\n\n // boilerplate\n sourceDB = AndroidDBManager.getProductionInstance();\n analysisDB = AndroidDBManager.getAnalysisInstance();\n\n BufferedWriter resFile = new BufferedWriter(new FileWriter(new File(\"commits.csv\")));\n\n // get the list of committers first\n List<AnalysisPeople> committers = analysisDB.getPeopleForTheTag(\"change\");\n System.out.println(\"will process \" + committers.size() + \" people records\");\n\n for (AnalysisPeople p : committers) {\n System.out.println(p.getEmail() + \" start: \" + p.getActivity_begin() + \", end: \"\n + p.getActivity_end());\n\n List<Change> changes = sourceDB.getAuthorChanges(p.getId(), p.getActivity_begin(),\n p.getActivity_end());\n System.out.println(\" .. \" + changes.size() + \" change(s) found.\");\n\n for (Change c : changes) {\n StringBuilder csvLine = new StringBuilder();\n StringBuilder sbTemp = new StringBuilder();\n\n // date/author/project/target/commits\n sbTemp.append(c.getAuthor_date()).append(COMMA);\n sbTemp.append(\"\\\"\").append(p.getEmail()).append(\"\\\"\").append(COMMA);\n sbTemp.append(sourceDB.getProject(c.getProject_id()).getName()).append(COMMA);\n for (ChangeTarget target : sourceDB.getTargets(c.getId())) {\n csvLine.append(sbTemp.toString()).append(\"\\\"\").append(target.getTarget()).append(\"\\\"\")\n .append(COMMA);\n csvLine.append(target.isAdded()).append(COMMA);\n csvLine.append(target.isEdited()).append(COMMA);\n csvLine.append(target.isDeleted()).append(COMMA).append(CR);\n resFile.write(csvLine.toString());\n }\n }\n resFile.close();\n }\n }", "String getWorkfileRevisionString();", "TCommit getLatestCommitForBranch(String branchName, TRepo repo);", "public Git.Entry getObject() { return ent; }", "private String getCommitTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table VCS_COMMIT(\");\n \t\tbuilder.append(\"VCS_COMMIT_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_IDENTIFIER TEXT,\");\n \t\tbuilder.append(\"AFTER_REVISION_IDENTIFIER TEXT\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "@Override\n\tprotected int getCommitUnit() {\n\t\treturn ImportConstants.COMMIT_UNIT;\n\t}", "public synchronized int getCommitNumber()\n\t{\n\t\treturn m_dbCommitNum;\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Primer commit\");\r\n\t\tSystem.out.println(\"18/05/2020 - segundo commit\");\r\n\t\tSystem.out.println(\"Rosana - tercer commit\");\r\n\t\tSystem.out.println(\"prueba - sexto commit\");\r\n\t}", "public static void main(String[] args){\n System.out.println(getLastGoodCommit(new char[]{}));\n System.out.println(getLastGoodCommit(new char[]{'G'}));\n System.out.println(getLastGoodCommit(new char[]{'B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','G'}));\n System.out.println(getLastGoodCommit(new char[]{'B','B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','G', 'G'}));\n System.out.println(getLastGoodCommit(new char[]{'B','B', 'B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','B', 'B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','G', 'B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','G', 'B', 'B', 'B'}));\n }", "@Test\n\tpublic void diffCommits() throws Exception {\n\t\tRepository repo = new FileRepository(testRepo);\n\t\tRevCommit commit1 = add(\"test.txt\", \"content\");\n\t\tRevCommit commit2 = add(\"test.txt\", \"content2\");\n\t\tTreeWalk walk = TreeUtils.diffWithCommits(repo, commit1, commit2);\n\t\tassertNotNull(walk);\n\t\tassertEquals(2, walk.getTreeCount());\n\t\tassertTrue(walk.next());\n\t\tassertEquals(\"test.txt\", walk.getPathString());\n\t\tassertEquals(BlobUtils.getId(repo, commit1, \"test.txt\"),\n\t\t\t\twalk.getObjectId(0));\n\t\tassertEquals(BlobUtils.getId(repo, commit2, \"test.txt\"),\n\t\t\t\twalk.getObjectId(1));\n\t\tassertFalse(walk.next());\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate static JSONObject convertCommitList(CommitInfo commitInfo) {\n JSONObject commitInfoJSON = new JSONObject();\n\n commitInfoJSON.put(\"authorLogin\", commitInfo.getAuthorLogin());\n commitInfoJSON.put(\"authoredDate\", commitInfo.getAuthoredDate().toString());\n commitInfoJSON.put(\"committedDate\", commitInfo.getCommittedDate().toString());\n commitInfoJSON.put(\"additions\", commitInfo.getAdditions());\n commitInfoJSON.put(\"deletions\", commitInfo.getDeletions());\n commitInfoJSON.put(\"committedDateInSeconds\", commitInfo.getCommittedDateInSeconds());\n\n DirectoryDistribution dirDistribution = commitInfo.getDirectoryDistribution();\n \n commitInfoJSON.put(\"modelLines\", dirDistribution.getModelLines());\n commitInfoJSON.put(\"controllerLines\", dirDistribution.getControllerLines());\n commitInfoJSON.put(\"viewLines\", dirDistribution.getViewLines());\n commitInfoJSON.put(\"libLines\", dirDistribution.getLibraryLines());\n commitInfoJSON.put(\"otherLines\", dirDistribution.getOtherLines());\n\n return commitInfoJSON;\n }", "public JGitCommit(RevCommit commit) {\n this.author = commit.getAuthorIdent();\n this.commit = commit;\n this.committer = commit.getCommitterIdent();\n }", "public static GitInfo readURL(BufferedReader url){\n\t\treturn (new Gson()).fromJson(url, GitInfo.class);\n\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\" commit\");\n\t\tSystem.out.println(\"3rd commit\");\n\t\tSystem.out.println(\"final commit\");\n\t\tSystem.out.println(\"pull\");\n\t}", "TCommit createCommit();", "@Test\n public void testCorrectUsage() throws\n IOException, AuthorCommitsFailedException {\n EasyMock.expect(mockManager.openRepository(new Project.NameKey(\"trial\")))\n .andReturn(\n RepositoryCache.open(FileKey.lenient(new File(\n \"../../review_site/git\", \"trial.git\"), FS.DETECTED)));\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true);\n replay(mockUser, mockCapability, mockManager);\n List<CommitInfo> expected = new LinkedList<CommitInfo>();\n CommitInfo ex = new CommitInfo();\n ex.setId(\"ede945e22cba9203ce8a0aae1409e50d36b3db72\");\n ex.setAuth(\"Keerath Jaggi <keerath.jaggi@gmail.com> 1401771779 +0530\");\n ex.setMsg(\"init commit\\n\");\n ex.setDate(\"Tue Jun 03 10:32:59 IST 2014\");\n expected.add(ex);\n cmd_test.setCommits(new Project.NameKey(\"trial\"), \"kee\");\n assertEquals(expected, cmd_test.getCommits());\n }", "@Test\n public void testCommitsApiWithSpecificCommit() throws Exception\n {\n \n \n RequestBuilder builder = new RequestBuilder(\"GET\");\n Request request = builder.setUrl(\n UriTemplate.fromTemplate(BASE)\n .append(PATH_EXPRESSION)\n .set(\"user\", \"damnhandy\")\n .set(\"repo\", \"Handy-URI-Templates\")\n .set(\"function\",\"commits\")\n .set(\"id\",\"7cdf7ff75f8ede138228ceff7f5a1c18a5835b94\")\n .expand()).build();\n Assert.assertEquals(\"https://api.github.com/repos/damnhandy/Handy-URI-Templates/commits/7cdf7ff75f8ede138228ceff7f5a1c18a5835b94\", request.getUrl());\n executeRequest(createClient(), request);\n }", "ChangeData getChangeData(Project.NameKey projectName, Change.Id changeId);", "public static void status() {\n Set branchSet = commitPointers.readBranches().keySet();\n ArrayList<String> sortedBranches = (ArrayList) branchSet.stream().sorted().collect(Collectors.toList());\n String currBranch = commitPointers.readHeadCommit()[0];\n System.out.println(\"=== Branches ===\");\n for (String branch: sortedBranches) {\n if (currBranch.equals(branch)) {\n System.out.println(\"*\" + currBranch);\n } else {\n System.out.println(branch);\n }\n }\n stagingArea = Utils.readObject(STAGING_FILE, HashMap.class);\n\n ArrayList<String> sortedStaged = (ArrayList) stagingArea.keySet().stream().sorted().collect(Collectors.toList());\n System.out.println();\n System.out.println(\"=== Staged Files ===\");\n for (String staged : sortedStaged) {\n System.out.println(staged);\n }\n\n System.out.println();\n System.out.println(\"=== Removed Files ===\");\n stagingRemoveArea = Utils.readObject(STAGING_REMOVE_FILE, HashMap.class);\n ArrayList<String> sortedRemoved = (ArrayList) stagingRemoveArea.keySet().stream().sorted().collect(Collectors.toList());\n for (String removed : sortedRemoved) {\n System.out.println(removed);\n }\n System.out.println();\n\n System.out.println(\"=== Modifications Not Staged For Commit ===\");\n\n Commit Head = Utils.readObject(Utils.join(Commit.COMMIT_FOLDER, commitPointers.readHeadCommit()[1] + \".txt\"), Commit.class);\n //File blobs contains a SHAID + file name\n\n HashMap<String, String> modUntracked = new HashMap<>();\n\n //iterates through head Blobs\n for (HashMap.Entry<String, String> headfileBlob : Head.fileBlobs.entrySet()) {\n\n File cwdBFile = Utils.join(CWD, headfileBlob.getKey());\n\n if (!cwdBFile.exists() && !stagingRemoveArea.containsKey(headfileBlob.getKey())) {\n modUntracked.put(headfileBlob.getKey(), \"(deleted)\");\n }\n else if (cwdBFile.exists()){\n\n Blob tempBlob = new Blob(headfileBlob.getKey(), cwdBFile);\n String tempBlobId = Utils.sha1(Utils.serialize(tempBlob));\n\n\n if(!tempBlobId.equals(headfileBlob.getValue())) {\n //if not in staging area\n if (!stagingArea.containsKey(headfileBlob.getKey())) {\n modUntracked.put(headfileBlob.getKey(), \"(modified)\");\n }\n //TODO: IS THIS PART NECCESARY?\n else if (stagingArea.containsKey(headfileBlob.getKey()) && !stagingArea.get(headfileBlob.getKey()).equals(headfileBlob.getValue())) {\n modUntracked.put(headfileBlob.getKey(), \"(modified)\");\n }\n }\n }\n }\n\n ArrayList<String> sortedModNames = (ArrayList) modUntracked.keySet().stream().sorted().collect(Collectors.toList());\n for (String modFileName : sortedModNames){\n System.out.println(modFileName + \" \" + modUntracked.get(modFileName));\n }\n System.out.println();\n\n\n\n ArrayList<String> untracked = new ArrayList<>();\n System.out.println(\"=== Untracked Files ===\");\n for (String cwdfile : CWD.list()) {\n if(!cwdfile.equals(\".gitlet\")) {\n File currfile = Utils.join(CWD, cwdfile);\n if (currfile.exists() && !Head.fileBlobs.containsKey(cwdfile)) {\n untracked.add(cwdfile);\n }\n }\n }\n\n untracked = (ArrayList) untracked.stream().sorted().collect(Collectors.toList());\n\n for (String untrackedName : untracked){\n System.out.println(untrackedName);\n }\n }", "public int getProjectCommitRecordId(int pgId, int commitNumber) {\n String query = \"SELECT id FROM Project_Commit_Record where pgId = ? and commitNumber = ?\";\n int id = 0;\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(query)) {\n preStmt.setInt(1, pgId);\n preStmt.setInt(2, commitNumber);\n\n try (ResultSet rs = preStmt.executeQuery();) {\n if (rs.next()) {\n id = rs.getInt(\"id\");\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return id;\n }", "long getCurrentRevision();", "static public void extractFromCSVRefFile(String file_path) throws Exception\n\t{\n\t\tDataExtractor de = new DataExtractor();\n\t\t\n\t\tFile commitFile = new File(file_path);\n\t\tBufferedReader reader = new BufferedReader(new FileReader(commitFile));\n\t\t\n\t\tString line = \"\";\n\t\tList<String> commit_ids = new ArrayList<String>();\n\n\t\twhile(line != null)\n\t\t{\n\t\t\tline = reader.readLine();\n\t\t\tif(line!= null && !line.isEmpty() && line.contains(\";\"))\n\t\t\t{\n\t\t\t\tString id = line.split(\";\")[1];\n\t\t\t\tcommit_ids.add(id);\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t\tde.extractCommitInfo(commit_ids);\t\t\n\t}", "@Test\n public void testProjectNameWithGitExtension()\n throws AuthorCommitsFailedException, IOException{\n EasyMock.expect(mockManager.openRepository(new Project.NameKey(\"trial\")))\n .andReturn(\n RepositoryCache.open(FileKey.lenient(new File(\n \"../../review_site/git\", \"trial.git\"), FS.DETECTED)));\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true);\n replay(mockUser, mockCapability, mockManager);\n List<CommitInfo> expected = new LinkedList<CommitInfo>();\n CommitInfo ex = new CommitInfo();\n ex.setId(\"ede945e22cba9203ce8a0aae1409e50d36b3db72\");\n ex.setAuth(\"Keerath Jaggi <keerath.jaggi@gmail.com> 1401771779 +0530\");\n ex.setMsg(\"init commit\\n\");\n ex.setDate(\"Tue Jun 03 10:32:59 IST 2014\");\n expected.add(ex);\n cmd_test.setCommits(new Project.NameKey(\"trial.git\"), \"kee\");\n assertEquals(expected, cmd_test.getCommits());\n }", "public String getCommitter() {\n return committer;\n }", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"This is commited by GitData\");\n\n\t}", "public long getCommitTransId() {\n return commitList.getCommitTransId();\n }", "public abstract long getRevision(int lineNumber);", "private void writeCommitNumAndAuthor(CommitAnalyzerInfo commitMetaData) {\n // Writes commit ID\n writer.println(\"commit_\" + commitMetaData.getCommitNumber() + \":\");\n\n /* Writes author */\n String commitAuthor = \"\";\n if(commitMetaData.getAuthorName() != null) {\n commitAuthor = commitMetaData.getAuthorName();\n }\n writeSpacesCorrespondingToNestedLevel(COMMIT_METADATA_NEST_LEVEL);\n writer.println(\"author: \" + commitAuthor);\n }", "Commit deserializeCommit(String path) {\n Commit newCommit = null;\n File pathy = new File(path);\n try {\n FileInputStream f = new FileInputStream(pathy);\n ObjectInputStream objn = new ObjectInputStream(f);\n newCommit = (Commit) objn.readObject();\n } catch (IOException e) {\n String msg = \"IOException while loading.\";\n System.out.println(msg);\n } catch (ClassNotFoundException e) {\n String msg = \"ClassNotFoundException while loading myCat.\";\n System.out.println(msg);\n }\n return newCommit;\n }", "public I getChangeInfo(int startSeqNum);", "public void addCommit(Commit commit) throws IOException {\n String fileName = commit.getShaCode();\n File actualFile = new File(Main.ALL_COMMITS, fileName);\n if (!actualFile.exists()) {\n actualFile.createNewFile();\n }\n Utils.writeObject(actualFile, commit);\n }", "void tagCommit(TRepo repo, TCommit commit, String tagName);", "@Test\n public void testSelectSpecificRow() throws SQLException {\n // Arrange\n CommitStructure commit = getSampleCommit();\n String commitID = commit.getCommitID();\n // Act\n mysqlDatabase.insertCommitToDatabase(commit);\n CommitStructure commits = mysqlDatabase.selectSpecificRow(commitID);\n // Assert\n assertEquals(commits.getCommitID() , commitID);\n }", "private GitCommit getParentImpl()\n {\n RevCommit r = _rev.getParentCount()>0? _rev.getParent(0) : null;\n if(r!=null) r = (RevCommit)getRevObject(r); // They return a rev commit, but it isn't loaded!\n return r!=null? new GitCommit(r) : null;\n }", "private String getBranchForRevision(SVNLogEntry logEntry) {\n @SuppressWarnings(\"unchecked\")\n Set<String> paths = logEntry.getChangedPaths().keySet();\n // Finds the common path among all those paths\n String commonPath = null;\n for (String path : paths) {\n if (commonPath == null) {\n commonPath = path;\n } else {\n int diff = StringUtils.indexOfDifference(commonPath, path);\n commonPath = StringUtils.left(commonPath, diff);\n }\n }\n // Gets the branch for this path\n if (commonPath != null) {\n return extractBranch(commonPath);\n } else {\n // No path in the revision: no branch!\n return null;\n }\n }", "public void print(){\t\t\r\n\t\tSystem.out.println(\"===\\nCommit \" + id +\"\\n\"+ Time + \"\\n\" + message + \"\\n\");\r\n\t}", "public void analyzeLifetimeClass(){\n currentClassCommitData = new ArrayList<>();\n String classPath = currentExtractMethod.getRefactoringData().getFileLoc();\n Iterable<RevCommit> commits = null;\n try {\n commits = git.log().addPath(classPath).call();\n } catch (GitAPIException e) {\n e.printStackTrace();\n }\n\n List<RevCommit> orderedList = Utils.reverseIterable(commits);\n for(int i = 0; i < orderedList.size(); i++){\n RevCommit commit = orderedList.get(i);\n Date commitDate = commit.getAuthorIdent().getWhen();\n currentClassCommitData.add(new ClassCommitData(\n commitDate,\n i==0,\n currentExtractMethod.getRefactoringData().getCommitDate().equals(commitDate)));\n }\n }", "public GitTree getTree() { return _cmt.getTree(); }", "public String getRevision() {\n return RevisionUtils.extract(\"$Revision: 8034 $\");\n }", "public String getCommitResult(String userName, String proName) {\n int id = userDb.getUser(userName).getId();\n return db.getCommitResultByStudentAndHw(id, proName).getStatus();\n }", "public void registerCommit(Commit commit) {\n Optional<Modification> modification = commit.getModification(filename);\n\n modification.ifPresent(mod -> {\n metrics.forEach(metric -> metric.registerCommit(commit));\n authors.add(commit.getAuthor());\n\n registerModification(mod);\n });\n }", "public static String getGitCommitId() {\n return StringUtils.defaultIfEmpty(gitProperties.getProperty(GIT_PROPERTIES_COMMIT_ID_KEY),\n StringUtils.EMPTY);\n }", "public OutputStream textDeltaChunk(String commitPath, SVNDiffWindow diffWindow) throws SVNException {\n return myDeltaProcessor.textDeltaChunk(diffWindow);\n }", "public JSONObject getLastProjectCommitRecord(int pgId) {\n String sql = \"SELECT * from Project_Commit_Record a where (a.commitNumber = \"\n + \"(SELECT max(commitNumber) FROM Project_Commit_Record WHERE pgId = ?));\";\n JSONObject ob = new JSONObject();\n JSONArray array = new JSONArray();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n try (ResultSet rs = preStmt.executeQuery()) {\n\n int statusId = rs.getInt(\"status\");\n StatusEnum statusEnum = csDb.getStatusNameById(statusId);\n int commitNumber = rs.getInt(\"commitNumber\");\n Date commitTime = rs.getTimestamp(\"time\");\n String commitStudent = rs.getString(\"commitStudent\");\n JSONObject eachHw = new JSONObject();\n eachHw.put(\"status\", statusEnum.getType());\n eachHw.put(\"commitNumber\", commitNumber);\n eachHw.put(\"commitTime\", commitTime);\n eachHw.put(\"commitStudent\", commitStudent);\n array.put(eachHw);\n }\n ob.put(\"commits\", array);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return ob;\n }", "@Test\n public void authorDateWithSubsecondsCorrectlyPopulated() throws Exception {\n fetch = primaryBranch;\n push = primaryBranch;\n\n Files.write(workdir.resolve(\"test.txt\"), \"some content\".getBytes(UTF_8));\n\n ZonedDateTime zonedDateTime = ZonedDateTime.ofInstant(\n Instant.ofEpochMilli(1496333940012L), ZoneId.of(\"-04:00\"));\n DummyRevision firstCommit = new DummyRevision(\"first_commit\")\n .withAuthor(new Author(\"Foo Bar\", \"foo@bar.com\"))\n .withTimestamp(zonedDateTime);\n process(firstCommitWriter(), firstCommit);\n\n String authorDate = git(\"log\", \"-1\", \"--pretty=%aI\");\n\n assertThat(authorDate).isEqualTo(\"2017-06-01T12:19:00-04:00\\n\");\n }", "public void addCommit(RevCommit commit) {\n\t\tObjectId id = commit.getId();\n\t\tString dev = commit.getCommitterIdent().getName();\n\t\tcommits.add(new ModelCommit(dev, ObjectId.toString(id)));\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getCommit() != null)\n sb.append(\"Commit: \").append(getCommit()).append(\",\");\n if (getBlobId() != null)\n sb.append(\"BlobId: \").append(getBlobId()).append(\",\");\n if (getPath() != null)\n sb.append(\"Path: \").append(getPath()).append(\",\");\n if (getRevisionChildren() != null)\n sb.append(\"RevisionChildren: \").append(getRevisionChildren());\n sb.append(\"}\");\n return sb.toString();\n }", "long currentRevision();", "private static Commit findSplitBranch(Gitlet currCommit, String[] args) {\n TreeSet<Commit> currCommits = currCommit.tree.getCommits();\n TreeSet<Commit> mergeCommits = currCommit.tree.getCommits(args[1]);\n Commit splitCommit = null;\n for (Commit x : currCommits) {\n if (mergeCommits.contains(x)) {\n splitCommit = x;\n break;\n }\n }\n return splitCommit;\n }", "private static Map<RevCommit, Set<Ref>> parseCommits(final Repository repo,\n final RevWalk rw, final Set<Ref> refs) throws IOException {\n Map<RevCommit, Set<Ref>> result = new HashMap<RevCommit, Set<Ref>>();\n for (Ref ref : refs) {\n final RevCommit commit;\n try {\n commit = rw.parseCommit(ref.getObjectId());\n } catch (IncorrectObjectTypeException notCommit) {\n // Its OK for a tag reference to point to a blob or a tree, this\n // is common in the Linux kernel or git.git repository.\n //\n continue;\n } catch (MissingObjectException notHere) {\n // Log the problem with this branch, but keep processing.\n //\n log.warn(\"Reference \" + ref.getName() + \" in \" + repo.getDirectory()\n + \" points to dangling object \" + ref.getObjectId());\n continue;\n }\n Set<Ref> relatedRefs = result.get(commit);\n if (relatedRefs == null) {\n relatedRefs = new HashSet<Ref>();\n result.put(commit, relatedRefs);\n }\n relatedRefs.add(ref);\n }\n return result;\n }", "public GitRef getHead() { return getRef(Constants.HEAD); }", "public void findCommits(String logMsg) {\n List<String> allCommitID = getAllCommits();\n int countTotal = 0;\n for (String cmt: allCommitID) {\n File commitFile = new File(Main.ALL_COMMITS, cmt);\n Commit associatedCommit =\n Utils.readObject(commitFile, Commit.class);\n if (associatedCommit.getLogMsg().equals(logMsg)) {\n System.out.println(cmt);\n countTotal = countTotal + 1;\n }\n }\n if (countTotal == 0) {\n System.out.println(\"Found no commit with that message.\");\n }\n }", "private String getPreviousRevision(final Project project) {\n List<Measure> measures = getPreviousMeasures(project, CoreMetrics.SCM_REVISION, CoreMetrics.SCM_LAST_COMMIT_DATE);\n if (measures.size()==2) {\n for (Measure measure : measures) {\n if (measure.getMetric().equals(CoreMetrics.SCM_REVISION)) {\n return measure.getData();\n }\n }\n }\n return null;\n }", "public List<Commit> getAllCommits(Project project, String branchName);" ]
[ "0.661598", "0.65625244", "0.63519186", "0.63178074", "0.6307734", "0.6247403", "0.62382734", "0.62052464", "0.61828923", "0.6098232", "0.60558486", "0.60538113", "0.6040348", "0.59354514", "0.5874256", "0.5857784", "0.5844467", "0.58331907", "0.5826574", "0.58074504", "0.57643825", "0.57497805", "0.5734703", "0.5716534", "0.570378", "0.57000697", "0.5623457", "0.56200564", "0.561824", "0.5556537", "0.55324346", "0.55234593", "0.5504547", "0.5494537", "0.5489523", "0.54728514", "0.5452477", "0.5410154", "0.54021883", "0.53885084", "0.5376872", "0.5347918", "0.5338824", "0.5338231", "0.53379273", "0.53378266", "0.53300977", "0.5327896", "0.53272617", "0.53028524", "0.52872026", "0.5277483", "0.527209", "0.5268074", "0.52434015", "0.52416676", "0.5214967", "0.5212285", "0.5210828", "0.52097636", "0.5209576", "0.519518", "0.5194583", "0.51910007", "0.5172332", "0.5157827", "0.5155858", "0.5141359", "0.5138633", "0.5129474", "0.5123848", "0.51229197", "0.51178664", "0.51083297", "0.5099013", "0.5090734", "0.5059483", "0.5056145", "0.50485903", "0.50464255", "0.50463635", "0.5042886", "0.50295085", "0.5027175", "0.5018118", "0.49986592", "0.49774787", "0.49752378", "0.49693713", "0.496654", "0.4965597", "0.49643666", "0.49619484", "0.49613073", "0.49560678", "0.4933883", "0.49294657", "0.4922388", "0.49106345", "0.4903004" ]
0.7273658
0
sets debug levels for different debug values.
public static void setDebugValue(int inputLevel) { if (inputLevel == 0) DEBUG_VALUE = DebugLevel.NOOUTPUT; else if (inputLevel == 1) DEBUG_VALUE = DebugLevel.CONTENTSATEACHENTRY; else if (inputLevel == 2) DEBUG_VALUE = DebugLevel.RESULT; else if (inputLevel == 3) DEBUG_VALUE = DebugLevel.RUN; else if (inputLevel == 4) DEBUG_VALUE = DebugLevel.CONSTRUCTOR; else DEBUG_VALUE = DebugLevel.NOOUTPUT; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public void setLevel( byte level ) {\n Debug.level=level;\n }", "public static void setDebug(boolean debug) {\n IsDebug = debug;\n if (debug)\n setLevel(VERBOSE);\n else\n setLevel(INFO);\n }", "protected static void setDebugLevel(int debugLevel) {\n Program.debugLevel = debugLevel;\n }", "public static void setLevelDebug(Level filtreLev) {\n logger.setLevel(filtreLev);\n }", "public void debug( int level ) {\r\n\t\tdebugLevel = level;\r\n\t\ts.debug(debugLevel);\r\n\t}", "void libusb_set_debug(Context ctx, int level);", "private void configureLogLevels()\r\n { \r\n String level = properties.getProperty(\"LogLevel\");\r\n \r\n switch(level)\r\n {\r\n case \"INFO\": INFO = Level.INFO; \r\n DEBUG = Level.FINE; \r\n WARNING = Level.FINE;\r\n break;\r\n case \"DEBUG\": INFO = Level.INFO;\r\n DEBUG = Level.INFO; \r\n WARNING = Level.INFO;\r\n break;\r\n case \"WARNING\": INFO = Level.FINE; \r\n DEBUG = Level.FINE; \r\n WARNING = Level.INFO; \r\n break;\r\n default: INFO = Level.INFO; \r\n DEBUG = Level.FINE; \r\n WARNING = Level.WARNING;\r\n break;\r\n }\r\n }", "public final void setDebug() {\r\n setLevel(org.apache.log4j.Level.DEBUG);\r\n }", "public void Setlevels(int lvl)\r\n {\r\n level = lvl;\r\n }", "void k2h_bump_debug_level();", "@FXML\n\tpublic void enableDebugLevel() {\n\t\tcheckFieldEditOrNot = true;\n\t\tif (enableDebugLevel.isSelected()) {\n\t\t\tdebugValue.setDisable(false);\n\t\t\tdebugValue.setValue(\"0\");\n\t\t\tSX3Manager.getInstance().addLog(\"Debug Level : Enable.<br>\");\n\t\t} else {\n\t\t\tdebugValue.setDisable(true);\n\t\t\tdebugValue.setValue(\"\");\n\t\t\tSX3Manager.getInstance().addLog(\"Debug Level : Disable.<br>\");\n\t\t}\n\t}", "void k2h_set_debug_level_message();", "void k2h_set_debug_level_silent();", "public static void setLevel(int level){\n\tlogLevel = level;\n }", "private static void verbose(List<Logger> loggers)\n {\n for ( Logger logger : loggers ) {\n logger.setLevel(Level.DEBUG);\n }\n }", "void k2h_set_debug_level_error();", "protected void setLevel(int level){\r\n this.level = level;\r\n }", "private void changeLogLevel(String level){\n\n }", "public static void setDebug(int b) {\n debug = b;\n }", "protected void setLevel(int level)\n {\n this.level = level;\n }", "public static void setLogLevel(int level) {\n mLogLevel = level;\n }", "@Test\n public void testCustomLoggingLevels() {\n LogTestLogger customLogger = new LogTestLogger();\n Database.log.setCustom(customLogger);\n\n for(int i = 5; i >= 1; i--) {\n customLogger.getLines().clear();\n customLogger.setLevel(LogLevel.values()[i]);\n Log.v(LogDomain.DATABASE, \"TEST VERBOSE\");\n Log.i(LogDomain.DATABASE, \"TEST INFO\");\n Log.w(LogDomain.DATABASE, \"TEST WARNING\");\n Log.e(LogDomain.DATABASE, \"TEST ERROR\");\n assertEquals(5 - i, customLogger.getLines().size());\n }\n }", "public static void setDebug(boolean d) {\n\t\tdebug = d;\n\t}", "public void setDebug(boolean b) { debug = b; }", "public void disabled_og4j_testSetLogLevel() throws Exception {\n assertEquals(\"Default Level is ERROR\", LOGGER.getLevel(), Level.ERROR);\n Helper.setLog4JLogLevel(Level.DEBUG);\n assertEquals(\"Default Level is DEBUG\", LOGGER.getLevel(), Level.DEBUG);\n }", "public static void setLogLevel(int level){\n\t\tswitch(level){\n\t\t\tcase ONE: \n\t\t\t\tLogger.getRootLogger().setLevel(Level.ALL); \n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.ALL\"); \n\t\t\t\tbreak;\n\t\t\tcase TWO: \n\t\t\t\tLogger.getRootLogger().setLevel(Level.DEBUG); \n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.DEBUG\"); \n\t\t\t\tbreak;\n\t\t\tcase THREE:\n\t\t\t\tLogger.getRootLogger().setLevel(Level.ERROR);\n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.ERROR\");\n\t\t\t\tbreak;\n\t\t\tcase FOUR:\n\t\t\t\tLogger.getRootLogger().setLevel(Level.FATAL);\n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.FATAL\");\n\t\t\t\tbreak;\n\t\t\tcase FIVE:\n\t\t\t\tLogger.getRootLogger().setLevel(Level.INFO);\n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.INFO\");\n\t\t\t\tbreak;\n\t\t\tcase SIX:\n\t\t\t\tLogger.getRootLogger().setLevel(Level.OFF); \n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.OFF\");\n\t\t\t\tbreak;\n\t\t\tcase SEVEN:\n\t\t\t\tLogger.getRootLogger().setLevel(Level.WARN);\n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.WARN\");\n\t\t\t\tbreak;\n\t\t\tcase EIGHT:\n\t\t\t\tLogger.getRootLogger().setLevel(Level.TRACE);\n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.WARN\");\n\t\t\t\tbreak;\n\t\t\tdefault: \n\t\t\t\tLogger.getRootLogger().setLevel(Level.ALL);\n\t\t\t\tLOGGER.info(\"Logging Level defaulted to LEVEL.ALL Please add parameter to properties file for custom logging.\");\n\t\t\t\tbreak;\n\t\t}\n\t}", "@FXML\n\tpublic void logDebugLevel() {\n\t\tcheckFieldEditOrNot = true;\n\t\tSX3Manager.getInstance().addLog(\"Debug Level : \" + debugValue.getValue() + \".<br>\");\n\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\tlogDetails1.getEngine().executeScript(\"window.scrollTo(0, document.body.scrollHeight);\");\n\t}", "public void setLogLevel(int level) {\n\t\t// only change if a valid level\n\t\tif (isValidLogLevel(level)) this.logLevel = level;\n\t}", "private void setLevel(final org.apache.log4j.Level level) {\r\n if (log.isWarnEnabled()) {\r\n log.warn(\"LogUtil : level changed to : \" + level.toString());\r\n }\r\n\r\n for (final Log l : this.logs.values()) {\r\n setLevel(l, level);\r\n }\r\n }", "public void setLevel(int level) {\n if(level > Constant.MAX_LEVEL){\n this.level = Constant.MAX_LEVEL;\n }else {\n this.level = level;\n }\n this.expToLevelUp = this.expValues[this.level];\n }", "public void setLoggerLevel(TraceLevel level) {\n\t\t//Topology.STREAMS_LOGGER.setLevel(level);\t\t\n\t\t//Topology.TOPOLOGY_LOGGER.setLevel(level); \n\t\tgetConfig().put(ContextProperties.TRACING_LEVEL, java.util.logging.Level.FINE);\t\t\n\t\tSystem.out.println(\"Streams topology logger level: \" + Topology.TOPOLOGY_LOGGER.getLevel());\n\t\t\n\t}", "void setDebug(boolean mode) {\n\t\tdebug = mode;\n\t}", "public void setLevels(String levels) {\r\n\t\tthis.levels = levels;\r\n\t}", "@Override\n\tpublic void setDebugMode(int debugMode) {\n\n\t}", "public void setDebug(boolean value) {\n\t\tdebug = value;\n\t}", "public void setDebug(boolean debug) {\n this.debug=debug;\n }", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "public void setLogLevel(int level) {\n logLevel = level;\n }", "void setDebugEnabled(boolean value) {\r\n debug_enabled = value;\r\n }", "public void setLevel(String level);", "private void setLevel(){\n\t\tif(getD(y) <= T)\n\t\t\tlevel = \"lower\";\n\t\telse\n\t\t\tlevel = \"higher\";\n\t}", "@Override\n\tpublic void setDebugMode(boolean debug) {\n\n\t}", "public void setDebug(boolean f) {\n debug = f;\n }", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }", "public void setDebug(final boolean debug)\n {\n this.debug = debug;\n }", "public void setDebug( boolean debugF ) {\n\t\tthis.debug = debugF;\n\t\t}", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "public void setLevel(int v)\n {\n m_level = v;\n }", "public void setDebug(boolean debug) {\n this.debug = debug;\n }", "public void setDebug(boolean debug) {\n this.debug = debug;\n }", "public void setLevel(int value) {\n this.level = value;\n }", "public void setLevel(int level) {\n \t\tthis.level = level;\n \t}", "void k2h_set_debug_level_warning();", "@Test\n\t/**\n\t * This is in effect:\n\t * \n\t * log4j.rootLogger=DEBUG\n\t */\n\tpublic void testDebugAbove(){\n\t\tlogger.trace(\"Trace\");\n\t\t//Above Debug are all logged\n\t\tlogger.debug(\"Debug\");\n\t\tlogger.info(\"Info\");\n\t\tlogger.warn(\"Warning\");\n\t\tlogger.error(\"Error\");\n\t}", "private void setLevel(int level) {\n setStat(level, currentLevel);\n }", "public void setDebug(boolean debug) {\n\t\tthis._debug = debug;\n\t}", "public void setDebugOn(boolean flag)\n {\n this.setProperty(GUILoggerSeverityProperty.DEBUG, flag);\n }", "public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}", "public void setLevelSet(double[][] ls) {\r\n\t\t_levelSet = ls;\r\n\t}", "void setDebugPort(Integer debugPort);", "public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}", "public void setDebug(boolean debug, PrintStream out)\n {\n session.setDebug(debug);\n if (debug)\n session.setDebugOut(out);\n }", "protected void setLogLevel(int logLevel) \n\t{\n\t\tthis.logLevel = logLevel;\n\t}", "public void setLevel(int level){\n\t\tthis.level = level;\n\t}", "private native void Df1_Set_Log_Filter_Level(int level);", "public void setLogLevel(int logLevel) {\n\t\tif(logLevel > 5 || logLevel < 0) \n\t\t\tthrow new IllegalArgumentException(\"invalid parameter logLevel, please use Logger's static level constant.\");\n\t\tmLogLevel = logLevel;\n\t}", "public static void setVerbose(int b) {\n debug = b;\n }", "private void initLoggers()\n {\n Logger.getSharedInstance();\n\n for (Logger logger : Logger.getAllLoggers())\n {\n String key = \"Loggers/\" + logger.getNamespace();\n Level desired;\n\n if (!SmartDashboard.containsKey(key))\n {\n // First time this logger has been sent to SmartDashboard\n SmartDashboard.putString(key, logger.getLogLevel().name());\n desired = Level.DEBUG;\n }\n else\n {\n String choice = SmartDashboard.getString(key, \"DEBUG\");\n Level parsed = Level.valueOf(choice);\n if (parsed == null)\n {\n m_logger.error(\"The choice '\" + choice + \"' for logger \" + logger.getNamespace() + \" isn't a valid value.\");\n desired = Level.DEBUG;\n }\n else\n {\n desired = parsed;\n }\n }\n logger.setLogLevel(desired);\n }\n }", "public void setDepth(double[] depthValues) {\n depth = depthValues;\n }", "private void setLevel(int level){\r\n\t\tswitch(level){\r\n\t\t\tcase Game.LEVEL_ONE:\r\n\t\t\tcase Game.LEVEL_TWO:\r\n\t\t\tcase Game.LEVEL_THREE:\r\n\t\t\t\tthis.level = level;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.err.println(\"Improper level input, use 'Game.LEVEL_#' to accurately input a level into this method\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "protected static void updateLevel(LogLevel lvl){\n //System.out.println(\"updateLevel: \"+lvl);\n Level level;\n \n EZLoggerManager.lvl = lvl;\n //adapted from http://blog.cag.se/?p=835\n Logger logger = Logger.getLogger(\"\");\n \n switch(lvl){\n case error:\n level = Level.SEVERE;\n break;\n case warn:\n level = Level.WARNING;\n break;\n case info:\n level = Level.INFO;\n break;\n case debug:\n default:\n level = Level.CONFIG;\n break;\n }\n logger.setLevel(level);\n Handler[] handlers = logger.getHandlers();\n for(Handler h : handlers){\n h.setLevel(level);\n }\n }", "public void enableDebug() {\n this.debug = true;\n }", "public static void setDebug(boolean flag)\n\t{\n\t\tm_debugFlag = flag;\n\t}", "public static void enableDebugging(){\n DEBUG = true;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "@Deprecated\n public void setLogLevelMask(int mask);", "public void setDebugMode(final boolean dMode) { debugMode = dMode; }", "public void setDebugging(boolean on)\n\t{\n\t\t_options.setDebugging(on);\n\t}", "@Override\n\tpublic void setDebug(boolean isDebug) {\n\t\t\n\t}", "public void logDebug()\n\t{\n\t\tLogHandler handlerList[];\n\t\tLogHandler handler = null;\n\n\t\tSystem.out.println(\"Logger = \"+logger);\n\t\tSystem.out.println(\"Logger log level is: \"+logger.getLogLevel());\n\t\tSystem.out.println(\"Logger log filter is: \"+logger.getFilter());\n\t\thandlerList = logger.getHandlers();\n\t\tfor(int i = 0; i < handlerList.length; i++)\n\t\t{\n\t\t\thandler = handlerList[i];\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" is:\"+handler+\" and called \"+handler.getName());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has filter:\"+handler.getFilter());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has log level:\"+handler.getLogLevel());\n\t\t}\n\t}", "public static void setLevel(LogLevel lvl){\n updateLevel(lvl);\n if (txtAreaHandler!=null){\n txtAreaHandler.changeLevel(lvl);\n }\n }", "public void setLevel(int level)\n {\n _level = level;\n if(_level < 0)\n _level = 0;\n\n calculateIndentationString();\n }", "private static void normal(List<Logger> loggers)\n {\n for ( Logger logger : loggers ) {\n logger.setLevel(Level.INFO);\n }\n }", "public static void setDebug(boolean db) {\n\n\t\tdebug = db;\n\n\t}", "public static void setDebugMode(boolean debugMode) {\n mDebug = debugMode;\n }", "@Override\n public void setRunLevel(int level) {\n\n }", "public void toggleDebug() {\n\t\tdebug = debug ? false : true;\n\t}", "public void setDebug(IRubyObject debug) {\n this.debug = debug.isTrue();\n }", "public void setDebug(IRubyObject debug) {\n this.debug = debug.isTrue();\n }", "public static void setTraceLevel(int level) {\n outLevel = level;\n }", "@Before\n public void setUp() throws Exception {\n logger.setLevel(Level.DEBUG);\n }", "private synchronized static void setLevelSync(final Logger.LEVEL desiredLevel) {\n if (null == desiredLevel) {\n return;\n }\n level = desiredLevel;\n if (null != context) {\n SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);\n prefs.edit ().putString (SHARED_PREF_KEY_level, level.toString ()).commit();\n // we still processed the setCapture call, but when SHARED_PREF_KEY_level_from_server is present, it is used for the level field value (it's an override)\n level = Logger.LEVEL.fromString(prefs.getString(SHARED_PREF_KEY_level_from_server, level.toString()));\n }\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Level level) { this.currentLevel = level; }", "public void setDebugMode(boolean debugMode)\r\n {\r\n this.debugMode = debugMode;\r\n }" ]
[ "0.7400778", "0.71167403", "0.7078622", "0.67320853", "0.66567516", "0.6652798", "0.66082394", "0.6574133", "0.6567488", "0.6435099", "0.6352467", "0.63507855", "0.6326131", "0.6202156", "0.6193142", "0.61916685", "0.61905307", "0.61640495", "0.61588365", "0.61448985", "0.6117605", "0.61060864", "0.60875195", "0.6080232", "0.60430825", "0.60268223", "0.6023891", "0.6023241", "0.6011706", "0.60101813", "0.59961647", "0.59823745", "0.59764224", "0.596418", "0.59540653", "0.59468204", "0.59462786", "0.59361446", "0.59321344", "0.5930376", "0.58828163", "0.588169", "0.5877062", "0.58756256", "0.58696634", "0.58695024", "0.5860973", "0.58263916", "0.58206064", "0.58206064", "0.58123994", "0.5808329", "0.5800504", "0.5794591", "0.57816", "0.57679045", "0.57597387", "0.57543796", "0.57456523", "0.57415307", "0.5739804", "0.57250684", "0.56999254", "0.56836355", "0.5667006", "0.56616175", "0.56534797", "0.5646454", "0.5638702", "0.56257415", "0.562496", "0.56232643", "0.56182903", "0.5618235", "0.5605404", "0.5605404", "0.55909824", "0.5585841", "0.5568908", "0.5545849", "0.55369776", "0.5524375", "0.55222636", "0.55180216", "0.55064195", "0.54906225", "0.548038", "0.54795074", "0.5474351", "0.5474351", "0.5468471", "0.5467096", "0.546441", "0.54607034", "0.54607034", "0.54607034", "0.54607034", "0.54607034", "0.5453332", "0.54363734" ]
0.6414826
10
writes message to screen according to the debug value.
public static void writeMessage(String message, DebugLevel levelIn) { if (levelIn == DEBUG_VALUE)//&& DEBUG_VALUE != DebugLevel.NOOUTPUT) System.out.println(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void debug(final String msg) {\n \t\tif (debug) System.out.println(msg);\n \t}", "public void writeToControllerGameLog(String message) {\n controller.getUIController().writeToLogBox(message);\n }", "public void debug(String msg);", "private static void print(Object msg){\n if (WAMClient.Debug){\n System.out.println(msg);\n }\n\n }", "final void out (String msg) { if (m_debugMode) { Logger.println (msg); } }", "public void debug(String message);", "private void debugPrint(String msg) {\n if (debug) {\n System.out.println(toString() + \": \" + msg);\n }\n }", "private void debugMessage(String result)\n\t{\n\t\tmain.addDebugMessage(result);\n\t}", "@Override\n public void debug(String message) {\n if (Level.DEBUG.getPriority() <= level.getPriority()) {\n print(\"DEBUG: \" + message);\n }\n\n }", "private void print(String msg)\n {\n m_log.log(msg);\n m_vbox.write(\" \" + msg);\n }", "void displayDebug(String message) {\n if (this.server.isVerboseDebugEnabled())\n System.out.printf(\"**\\t[%s]\\t\" + name + \":\\t\" + message + \"\\n\", dateFormat.format(new Date()));\n }", "protected abstract void debug(String msg);", "public static void debug(String message) {\n if (mDebug)\n print(message);\n }", "public void debug(String message) {\n Bukkit.broadcast(ChatColor.YELLOW + \"[EasyRider] \" + message, \"easyrider.debug\");\n }", "public static void printDebug(String message) {\n\t\tif (debugMode) {\r\n\t\t\tprintMessage(\"DEBUG: \" + message);\r\n\t\t}\r\n\t}", "private void write(String msg)\r\n {\r\n System.out.println(msg);\r\n if (report_ != null) {\r\n report_.write(msg);\r\n }\r\n }", "private void debugOutput(String msg) {\n if (debugMode) {\n System.out.println(\"Thread \" + this.getId() + \": \" + msg);\n }\n }", "@Override\n\tpublic void debug(Object message) {\n\n\t}", "@Override\n\tpublic void debug(CharSequence message) {\n\n\t}", "@Override\n\tpublic void debug(Message msg) {\n\n\t}", "final void out (String msg1, String msg2) { if (m_debugMode) { Logger.print (msg1); Logger.println (msg2); } }", "public void logDebugData() {\n SmartDashboard.putNumber(\"Ele Pos\", getPosition());\n SmartDashboard.putBoolean(\"Ele Switch\", bottomSwitchValue());\n SmartDashboard.putNumber(\"Ele Current\", getCurrent());\n SmartDashboard.putNumber(\"Ele Out %\", elevatorSpark.getAppliedOutput());\n }", "@FXML\n\tpublic void logDebugLevel() {\n\t\tcheckFieldEditOrNot = true;\n\t\tSX3Manager.getInstance().addLog(\"Debug Level : \" + debugValue.getValue() + \".<br>\");\n\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\tlogDetails1.getEngine().executeScript(\"window.scrollTo(0, document.body.scrollHeight);\");\n\t}", "public void writeInfo(String message){\n final String output = getTimeString() + \" INFO: \" + message+ ENTER;\n switch (PreferencesHelper.getConsolePopupLevel()) {\n case ALL:\n case ONLY_INFO:\n popConsoleView();\n break;\n default:\n break;\n }\n UIBundlingThread.getInstance().addRunnable(new Runnable(){\n public void run() {\n if(infoStream == null){\n infoStream = console.newOutputStream();\n infoStream.setColor(CustomMediaFactory.getInstance().getColor(\n CustomMediaFactory.COLOR_BLACK));\n }\n writeToConsole(infoStream, output);\n }\n });\n\n }", "public void debug(Object message)\n/* */ {\n/* 118 */ if (message != null) {\n/* 119 */ getLogger().debug(String.valueOf(message));\n/* */ }\n/* */ }", "public static void print(Object message) {\r\n if (!isDisabled()) {\r\n print(String.valueOf(message));\r\n }\r\n }", "public static void print(String message) {\n\t\t// if not in production, then print log on console\n\t\tif (!isProductionMode) Log.d(\"AppDebug : \", \" Debug :\" + message);\n\n\n\t\t// log in file for testing mode debug\n\t\tif (isFileLogMode) { }\n\t}", "public static void debug(boolean d, String message) {\n \tif(d) {\n \t\tSystem.out.println(message);\n \t}\n }", "public void addScreenMessage(String msg);", "public static void debug( String msg ) {\n\t\tif( DEBUG_SHOW == 1 )\n\t\t{\n\t\t\tLog.i( DEBUG, DEBUG + \" : \" + msg );\n\t\t}\n\t}", "public static void debug(String message) {\n if (_debugMode) {\n System.out.println(\"[DEBUG] \" + message);\n }\n }", "@SuppressWarnings(\"static-method\")\n\tpublic void logDebugMessage(String message) {\n\t\tDebug.println(message);\n\t}", "@Override\n\tpublic void messageToDebug(MessageEventObject o) {\n\t\ttxtDebug.append(o.getMessage());\n\t\tif (!o.getMessage().endsWith(\"\\n\")) {\n\t\t\ttxtDebug.append(\"\\n\");\n\t\t}\n\t\ttxtDebug.setCaretPosition(txtDebug.getDocument().getLength());\n\t}", "private void println(final String msg) {\n if (!mTestStop) {\n CUIOutputStream.println(msg);\n }\n }", "protected void logToScreen() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tsynchronized (processors) {\r\n\t\t\t\tdisplayInfo = !displayInfo;\r\n\t\t\t\tint procCount = processors.count();\r\n\t\t\t\tSimulatorPDUProcessor proc;\r\n\t\t\t\tfor (int i = 0; i < procCount; i++) {\r\n\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(i);\r\n\t\t\t\t\tproc.setDisplayInfo(displayInfo);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfactory.setDisplayInfo(displayInfo);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void debug(Marker marker, Message msg) {\n\n\t}", "public void outputMessage(String gameMessage){\n System.out.println(gameMessage);\n }", "public void printForDebug() {\n\t\tif(Globalconstantable.DEBUG)\n\t\t{\n\t\t\tSystem.out.println(this.getSID());\n\t\t\tSystem.out.println(this.getScores());\n\t\t}\n\t}", "private void display(String msg) {\n cg.append(msg + \"\\n\");\n }", "@Override\n\tpublic void debug(Marker marker, CharSequence message) {\n\n\t}", "private void print(String message) {\n\n //System.out.println(LocalDateTime.now() + \" \" + message);\n System.out.println(message);\n }", "public void print(Object msg, int modelevel)\n {\n int debug = 0;\n Properties prop = new Properties();\n InputStream input = null;\n\n /*Liest aus Datei den ModeLevel\n * Level: \n * 0) None\n * 1) Information (Default)\n * 2) Warning\n * 3) Error\n */\n try\n {\n\n try\n {\n // load a properties file\n prop.load(new FileReader(substructure.PathHelper.getFile(\"debug.properties\")));\n } catch (fileSystemException ex)\n {\n Logger.getLogger(Output.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n // get the property value and print it out\n try\n {\n debug = Integer.parseInt(prop.getProperty(\"MODE\"));\n } catch (Exception e)\n {\n new GuiPromptHelper(GuiPromptHelper.showWarning, \"Output: Modelevel konnte nicht gelesen werden \" + e);\n }\n\n } catch (FileNotFoundException e)\n {\n new GuiPromptHelper(GuiPromptHelper.showWarning, \"Output: Debug File konnte nicht geladen werden \" + e);\n } catch (IOException ex)\n {\n ex.printStackTrace();\n }\n\n out(msg, modelevel, debug);\n\n }", "@Override\n public void updateDebugText(MiniGame game) {\n }", "@Override\n public void updateDebugText(MiniGame game)\n {\n }", "public static void write(String message) {\n System.out.println(message);\n }", "@Override\n\tpublic void debug(Marker marker, Object message) {\n\n\t}", "void k2h_set_debug_level_message();", "public void logToConsole(String message) {\n Bukkit.getServer().getConsoleSender().sendMessage(color(message));\n }", "@Override\n public void printDebug(String string) {\n if(allActive && active)\n System.out.println(SC + string + R);\n }", "@Override\n\tpublic void debug(MessageSupplier msgSupplier) {\n\n\t}", "@Override\n public void debug(final Object message) {\n this.logger.debug(this.prepareDefaultMessage(message));\n }", "private static void println(String message, SimpleAttributeSet settings) {print(message + \"\\n\", settings);}", "private void debug(String post) {\n if (GameLauncher.isDebugging()) {\n System.out.println(post);\n }\n }", "public void writeMessage(String s) {\n isActive = true;\n start = System.currentTimeMillis();\n message = s;\n\n //attempt at typing effect for text\n final Animation animation = new Transition() {\n {\n setCycleDuration(Duration.millis(duration / 2 * 1000));\n }\n\n @Override\n protected void interpolate(double frac) {\n final int lenght = message.length();\n final int n = Math.round(lenght * (float) frac);\n printMessage = message.substring(0, n);\n }\n };\n animation.play();\n }", "private void debug(String s) {\r\n\t\tif (debug)\r\n\t\t\tSystem.out.println(s);\r\n\t}", "private void printConsole(String text) {\n\t\tMessage msg = getHandler().obtainMessage(MESSAGE_CONSOLE_CHANGED);\n\t\tmsg.obj = \"\\n\" + text ;\n\t\tmsg.sendToTarget();\t\t\n\t}", "public void writeMessage( String message ) {\n\t\tui.writeMessage(message);\n\t}", "public static void Log(String message){\r\n if(isDebugBuild == false){\r\n return;\r\n }\r\n System.out.println(message);\r\n }", "private void debug(String msg) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(msg);\r\n }\r\n }", "public void printMsg(String msg)\n\t{\n\t\tmsgArea.append(msg);\n\t}", "@Override\n public void printMessage(String msg) {\n if (msg.contains(\"Turno di :\")) {\n inTurno = false;\n for (boolean b : pawnEnabled) {\n b = true;\n }\n }\n final String msgapp = editString(msg);\n Platform.runLater(() -> {\n if (textArea != null) {\n textArea.appendText(msgapp + \"\\n\");\n }\n });\n\n }", "private static void debugger(int d, int l, String msg){\n if(d >= l){\n System.out.println(msg);\n }\n }", "public static void debug(String... messages) {\n\t\tString finalmessage = \"\";\n\t\tfor (String message : messages) {\n\t\t\tfinalmessage += message;\n\t\t}\n\t\tSystem.out.println(\"[DEBUG] \" + finalmessage);\n\t}", "public static void log(String color, String message) {\r\n message = \"<font color=\\\"\" + color + \"\\\">\" + message + \"</font><br>\";\r\n chatText.append(message);\r\n jEditorPane1.setText(chatText.toString());\r\n }", "private static void debug(String message, Object... args)\n {\n StatusLogger.getLogger().debug(String.format(message, args));\n }", "@Override\n\tpublic void debug(Marker marker, String message) {\n\n\t}", "public void print()\n {\n chatarea.append(\"Sender:(\"+port.getText()+\")\"+System.lineSeparator()+msgarea.getText()+System.lineSeparator());\n }", "public static void debug(String msg) {\n\t\tif(DEBUG_ENABLED) {\n\t\t\tinfo(\"[DEBUG] \" + msg);\n\t\t}\n\t}", "private static void displayMessage(String message) {\n\t\toutput.append(message);\n\t}", "private void println(String message) {\n Log.println(level, tag, message);\n }", "protected void dbgOut(String text_out)\n {\n if (debugOn)\n System.out.println(text_out);\n }", "public void printMessage(final String message) {\n\t\tthis.viewFrame.printMessage(message);\n\t}", "public static void debug(String msg) {\n\t\tif (Config.Debug)\n\t\t\tUtil.debug(DebugLevel.LOW, msg);\n\t}", "@Override\n\tpublic void debug(Marker marker, MessageSupplier msgSupplier) {\n\n\t}", "public void printMessage() {\n printMessage(System.out::print);\n }", "public void debug(final String s) {\n if (!configManager.isDebug()) { return; }\n this.getLogger().info(ChatColor.YELLOW + \"[Debug] \" + s);\n }", "public void writeWarning(String message){\n final String output = getTimeString() + \" WARNING: \" + message+ ENTER;\n switch (PreferencesHelper.getConsolePopupLevel()) {\n case ALL:\n popConsoleView();\n break;\n default:\n break;\n }\n UIBundlingThread.getInstance().addRunnable(new Runnable() {\n\n public void run() {\n if(warningStream == null){\n warningStream = console.newOutputStream();\n warningStream.setColor(CustomMediaFactory.getInstance().getColor(\n CustomMediaFactory.COLOR_ORANGE));\n }\n writeToConsole(warningStream, output);\n }\n });\n\n }", "@Override\n\tpublic void debug(Supplier<?> msgSupplier) {\n\n\t}", "void debug(String msg)\n {\n if (yydebug)\n System.out.println(msg);\n }", "void debug(String messageKey, Object... args);", "public final void debug(Component reporter, String message)\n\t{\n\t\tadd(new FeedbackMessage(reporter, message, FeedbackMessage.DEBUG));\n\t}", "@Override\r\n\tvoid updateMessage(String msg) {\n\t\tSystem.out.println(msg);\r\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate static void printDebug(String p) {\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(PREFIX + p);\n\t\t}\n\t}", "private void log(String message) {\n System.out.println( message );\n sb.append( message ).append( \"\\n\" );\n }", "public void debug(String word)\n\t{\n\t\tif(debug)\n\t\tSystem.out.println(word);\n\t}", "public static void printDebug(String msg) {\n if (debugEnabled) {\n out.println(\"debug [k8s plugin]: \" + msg);\n }\n }", "protected void println(String function, String msg) {\r\n if (this.logger != null) {\r\n this.logger.printDebug(msg);\r\n } else {\r\n println(this.getClass(), function, msg);\r\n }\r\n }", "@Override\n\tpublic void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}", "public void println(String message){\n if (this.okToPrint){\n System.out.println(message);\n }\n }", "private void log(String message) {\n System.out.println(message);\n }", "@Override\n\tpublic void debug(Marker marker, Supplier<?> msgSupplier) {\n\n\t}", "public void debug(String msg) {\n LOGGER_BASE.debug(msg);\n }", "public void println(String message) {\r\n chatFrame.println(message);\r\n }", "public void printMessage(String message) {\n\r\n\t}", "public void trace(Object message)\n/* */ {\n/* 95 */ debug(message);\n/* */ }", "private void log(String message) {\r\n\t\tif (ChartFrameSelectParametersMenuActionListener.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}", "private void debugPrint(String msg)\n {\n System.out.print(\";; [RedirectorPoolThread:\" + _id + \"] \" + msg);\n }", "void debug (String channel, String msg) throws RootException;", "@SuppressWarnings(\"unused\")\n protected void debug(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isDebugEnabled()) {\n this.getContainer().getLogger().debug(msg);\n }\n }", "private void PrintMessageOnTextChat(MessageWithTime message)\n\t{\n\t\tApplicationManager.textChat.write(message);\n\n\t}" ]
[ "0.67794293", "0.6747176", "0.6576673", "0.65545666", "0.65470695", "0.6522576", "0.6506599", "0.64596534", "0.6434451", "0.63790786", "0.63635105", "0.6327302", "0.6313916", "0.6312232", "0.63031274", "0.6298172", "0.62973017", "0.6287521", "0.628518", "0.62689644", "0.6255294", "0.6248203", "0.6242322", "0.6208815", "0.61951625", "0.6174314", "0.617048", "0.6163021", "0.61231476", "0.6122654", "0.6097691", "0.6087896", "0.60805374", "0.60650724", "0.60581905", "0.60560185", "0.6031024", "0.60274285", "0.6023817", "0.6023067", "0.602143", "0.59940654", "0.5985926", "0.5984279", "0.59812593", "0.5968493", "0.596027", "0.594582", "0.5935491", "0.5934934", "0.59338516", "0.5916944", "0.5894973", "0.5894775", "0.5891878", "0.5886018", "0.5880073", "0.5875954", "0.5870663", "0.587058", "0.5859576", "0.5828527", "0.5828073", "0.5823271", "0.5818917", "0.58144355", "0.58075553", "0.58041525", "0.5803679", "0.5801598", "0.5797885", "0.57968414", "0.5792416", "0.57878304", "0.5781429", "0.5777881", "0.57732797", "0.57713675", "0.5764387", "0.57423544", "0.57291204", "0.5727132", "0.5725959", "0.5721138", "0.5717", "0.5716201", "0.5715585", "0.5714406", "0.5709888", "0.57053995", "0.5701012", "0.5699451", "0.5698113", "0.5693839", "0.5683131", "0.56792444", "0.56784946", "0.56742823", "0.56729674", "0.5672193" ]
0.6027699
37
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
void reportPrimaryClipChanged() { synchronized (this.mPrimaryClipChangedListeners) { if (this.mPrimaryClipChangedListeners.size() <= 0) { return; } Object[] listeners = this.mPrimaryClipChangedListeners.toArray(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_1148() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2113() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2139() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_6338() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }", "static void method_2226() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "public void method_2046() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2197() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_7086() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2250() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_28() {\r\n // $FF: Couldn't be decompiled\r\n }", "private boolean method_2253(class_1033 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }", "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }", "private void method_7082(class_1293 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }", "private static void m13385d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = java.lang.System.currentTimeMillis();\t Catch:{ Exception -> 0x0024 }\n r2 = java.util.concurrent.TimeUnit.DAYS;\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r2 = r2.toMillis(r3);\t Catch:{ Exception -> 0x0024 }\n r4 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = r0 - r2;\t Catch:{ Exception -> 0x0024 }\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x0024 }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x0024 }\n r2 = \"timestamp < ?\";\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r3 = new java.lang.String[r3];\t Catch:{ Exception -> 0x0024 }\n r6 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = java.lang.String.valueOf(r4);\t Catch:{ Exception -> 0x0024 }\n r3[r6] = r4;\t Catch:{ Exception -> 0x0024 }\n r0.delete(r1, r2, r3);\t Catch:{ Exception -> 0x0024 }\n L_0x0024:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.d():void\");\n }", "private boolean m2248a(java.lang.String r3, com.onesignal.La.C0596a r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = 0;\n r1 = 1;\n java.lang.Float.parseFloat(r3);\t Catch:{ Throwable -> 0x0007 }\n r3 = 1;\n goto L_0x0008;\n L_0x0007:\n r3 = 0;\n L_0x0008:\n if (r3 != 0) goto L_0x0017;\n L_0x000a:\n r3 = com.onesignal.sa.C0650i.ERROR;\n r1 = \"Missing Google Project number!\\nPlease enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard.\";\n com.onesignal.sa.m1656a(r3, r1);\n r3 = 0;\n r1 = -6;\n r4.mo1392a(r3, r1);\n return r0;\n L_0x0017:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.Pa.a(java.lang.String, com.onesignal.La$a):boolean\");\n }", "public static boolean m19464a(java.lang.String r3, int[] r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r3);\n r1 = 0;\n if (r0 == 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r0 = r4.length;\n r2 = 2;\n if (r0 == r2) goto L_0x000d;\n L_0x000c:\n return r1;\n L_0x000d:\n r0 = \"x\";\n r3 = r3.split(r0);\n r0 = r3.length;\n if (r0 == r2) goto L_0x0017;\n L_0x0016:\n return r1;\n L_0x0017:\n r0 = r3[r1];\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = java.lang.Integer.parseInt(r0);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r1] = r0;\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = 1;\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = r3[r0];\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r0] = r3;\t Catch:{ NumberFormatException -> 0x0029 }\n return r0;\n L_0x0029:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.arp.a(java.lang.String, int[]):boolean\");\n }", "public boolean mo3969a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f19005h;\n if (r0 != 0) goto L_0x0011;\n L_0x0004:\n r0 = r4.f19004g;\n if (r0 == 0) goto L_0x000f;\n L_0x0008:\n r0 = r4.f19004g;\n r1 = com.facebook.ads.C1700b.f5123e;\n r0.mo1313a(r4, r1);\n L_0x000f:\n r0 = 0;\n return r0;\n L_0x0011:\n r0 = new android.content.Intent;\n r1 = r4.f19002e;\n r2 = com.facebook.ads.AudienceNetworkActivity.class;\n r0.<init>(r1, r2);\n r1 = \"predefinedOrientationKey\";\n r2 = r4.m25306b();\n r0.putExtra(r1, r2);\n r1 = \"uniqueId\";\n r2 = r4.f18999b;\n r0.putExtra(r1, r2);\n r1 = \"placementId\";\n r2 = r4.f19000c;\n r0.putExtra(r1, r2);\n r1 = \"requestTime\";\n r2 = r4.f19001d;\n r0.putExtra(r1, r2);\n r1 = \"viewType\";\n r2 = r4.f19009l;\n r0.putExtra(r1, r2);\n r1 = \"useCache\";\n r2 = r4.f19010m;\n r0.putExtra(r1, r2);\n r1 = r4.f19008k;\n if (r1 == 0) goto L_0x0052;\n L_0x004a:\n r1 = \"ad_data_bundle\";\n r2 = r4.f19008k;\n r0.putExtra(r1, r2);\n goto L_0x005b;\n L_0x0052:\n r1 = r4.f19006i;\n if (r1 == 0) goto L_0x005b;\n L_0x0056:\n r1 = r4.f19006i;\n r1.m18953a(r0);\n L_0x005b:\n r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r0.addFlags(r1);\n r1 = r4.f19002e;\t Catch:{ ActivityNotFoundException -> 0x0066 }\n r1.startActivity(r0);\t Catch:{ ActivityNotFoundException -> 0x0066 }\n goto L_0x0072;\n L_0x0066:\n r1 = r4.f19002e;\n r2 = com.facebook.ads.InterstitialAdActivity.class;\n r0.setClass(r1, r2);\n r1 = r4.f19002e;\n r1.startActivity(r0);\n L_0x0072:\n r0 = 1;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.k.a():boolean\");\n }", "protected void method_2045(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2246(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "private final java.util.Map<java.lang.String, java.lang.String> m11967c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r7 = this;\n r0 = new java.util.HashMap;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r0.<init>();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r7.f10169c;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r2 = r7.f10170d;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r3 = f10168i;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r4 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r5 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r6 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r1.query(r2, r3, r4, r5, r6);\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n if (r1 == 0) goto L_0x0031;\n L_0x0014:\n r2 = r1.moveToNext();\t Catch:{ all -> 0x002c }\n if (r2 == 0) goto L_0x0028;\t Catch:{ all -> 0x002c }\n L_0x001a:\n r2 = 0;\t Catch:{ all -> 0x002c }\n r2 = r1.getString(r2);\t Catch:{ all -> 0x002c }\n r3 = 1;\t Catch:{ all -> 0x002c }\n r3 = r1.getString(r3);\t Catch:{ all -> 0x002c }\n r0.put(r2, r3);\t Catch:{ all -> 0x002c }\n goto L_0x0014;\n L_0x0028:\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n goto L_0x0031;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x002c:\n r0 = move-exception;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n throw r0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x0031:\n return r0;\n L_0x0032:\n r0 = \"ConfigurationContentLoader\";\n r1 = \"PhenotypeFlag unable to load ContentProvider, using default values\";\n android.util.Log.e(r0, r1);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzsi.c():java.util.Map<java.lang.String, java.lang.String>\");\n }", "private void m50366E() {\n }", "public int method_7084(String param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "private p000a.p001a.p002a.p003a.C0916s m1655b(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m321a();\n r7 = r7.m322b();\n r1 = 0;\n r2 = r1;\n L_0x000a:\n r3 = r6.f1533u;\n r3 = r3 + 1;\n r6.f1533u = r3;\n r0.m2803e();\n r3 = r0.mo2010a();\n if (r3 != 0) goto L_0x0032;\n L_0x0019:\n r7 = r6.f1513a;\n r8 = \"Cannot retry non-repeatable request\";\n r7.m260a(r8);\n if (r2 == 0) goto L_0x002a;\n L_0x0022:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.\";\n r7.<init>(r8, r2);\n throw r7;\n L_0x002a:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity.\";\n r7.<init>(r8);\n throw r7;\n L_0x0032:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x003a:\n r2 = r7.mo15e();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x004f;\t Catch:{ IOException -> 0x0086 }\n L_0x0040:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Reopening the direct connection.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x0086 }\n r2.mo2023a(r7, r8, r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x004f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Proxied connection. Need to start over.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0085;\t Catch:{ IOException -> 0x0086 }\n L_0x0057:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m262a();\t Catch:{ IOException -> 0x0086 }\n if (r2 == 0) goto L_0x007c;\t Catch:{ IOException -> 0x0086 }\n L_0x005f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0086 }\n r3.<init>();\t Catch:{ IOException -> 0x0086 }\n r4 = \"Attempt \";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = r6.f1533u;\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = \" to execute request\";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r3 = r3.toString();\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n L_0x007c:\n r2 = r6.f1518f;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m464a(r0, r3, r8);\t Catch:{ IOException -> 0x0086 }\n r1 = r2;\n L_0x0085:\n return r1;\n L_0x0086:\n r2 = move-exception;\n r3 = r6.f1513a;\n r4 = \"Closing the connection.\";\n r3.m260a(r4);\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0093 }\n r3.close();\t Catch:{ IOException -> 0x0093 }\n L_0x0093:\n r3 = r6.f1520h;\n r4 = r0.m2802d();\n r3 = r3.retryRequest(r2, r4, r8);\n if (r3 == 0) goto L_0x010a;\n L_0x009f:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x00d9;\n L_0x00a7:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when processing request to \";\n r4.append(r5);\n r4.append(r7);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n L_0x00d9:\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x00ea;\n L_0x00e1:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x00ea:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x000a;\n L_0x00f2:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"Retrying request to \";\n r4.append(r5);\n r4.append(r7);\n r4 = r4.toString();\n r3.m269d(r4);\n goto L_0x000a;\n L_0x010a:\n r8 = r2 instanceof p000a.p001a.p002a.p003a.C0176z;\n if (r8 == 0) goto L_0x0134;\n L_0x010e:\n r8 = new a.a.a.a.z;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r7 = r7.mo10a();\n r7 = r7.m474e();\n r0.append(r7);\n r7 = \" failed to respond\";\n r0.append(r7);\n r7 = r0.toString();\n r8.<init>(r7);\n r7 = r2.getStackTrace();\n r8.setStackTrace(r7);\n throw r8;\n L_0x0134:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.b(a.a.a.a.i.b.x, a.a.a.a.n.e):a.a.a.a.s\");\n }", "void m1864a() {\r\n }", "void m5768b() throws C0841b;", "public boolean method_2088(class_689 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "void m5770d() throws C0841b;", "public static void m5820b(java.lang.String r3, java.lang.String r4, java.lang.String r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.StartCheckoutEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r1 = 1;\n r0.putItemCount(r1);\n r1 = java.lang.Long.parseLong(r3);\t Catch:{ Exception -> 0x001f }\n r3 = java.math.BigDecimal.valueOf(r1);\t Catch:{ Exception -> 0x001f }\n r0.putTotalPrice(r3);\t Catch:{ Exception -> 0x001f }\n L_0x001f:\n r3 = \"type\";\n r0.putCustomAttribute(r3, r4);\n r3 = \"cta\";\n r0.putCustomAttribute(r3, r5);\n r3 = com.crashlytics.android.answers.Answers.getInstance();\n r3.logStartCheckout(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.b(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "public final void mo91715d() {\n }", "public void method_4270() {}", "public static void m5812a(java.lang.String r0, java.lang.String r1, java.lang.String r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r2 = new com.crashlytics.android.answers.AddToCartEvent;\n r2.<init>();\n r2.putItemType(r0);\n r0 = java.lang.Long.parseLong(r1);\t Catch:{ Exception -> 0x0013 }\n r0 = java.math.BigDecimal.valueOf(r0);\t Catch:{ Exception -> 0x0013 }\n r2.putItemPrice(r0);\t Catch:{ Exception -> 0x0013 }\n L_0x0013:\n r0 = java.util.Locale.getDefault();\n r0 = java.util.Currency.getInstance(r0);\n r2.putCurrency(r0);\n r0 = com.crashlytics.android.answers.Answers.getInstance();\n r0.logAddToCart(r2);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "private static void m13381a(long r3, float r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\n r0.beginTransaction();\t Catch:{ Exception -> 0x001f }\n r1 = \"INSERT INTO battery_watcher (timestamp, level) VALUES (?, ?)\";\t Catch:{ Exception -> 0x001f }\n r1 = r0.compileStatement(r1);\t Catch:{ Exception -> 0x001f }\n r2 = 1;\t Catch:{ Exception -> 0x001f }\n r1.bindLong(r2, r3);\t Catch:{ Exception -> 0x001f }\n r3 = 2;\t Catch:{ Exception -> 0x001f }\n r4 = (double) r5;\t Catch:{ Exception -> 0x001f }\n r1.bindDouble(r3, r4);\t Catch:{ Exception -> 0x001f }\n r1.execute();\t Catch:{ Exception -> 0x001f }\n r0.setTransactionSuccessful();\t Catch:{ Exception -> 0x001f }\n goto L_0x0026;\n L_0x001d:\n r3 = move-exception;\n goto L_0x002a;\n L_0x001f:\n r3 = f10646a;\t Catch:{ all -> 0x001d }\n r4 = \"Issue adding location to battery history\";\t Catch:{ all -> 0x001d }\n com.foursquare.internal.util.FsLog.m6807d(r3, r4);\t Catch:{ all -> 0x001d }\n L_0x0026:\n r0.endTransaction();\n return;\n L_0x002a:\n r0.endTransaction();\n throw r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.a(long, float):void\");\n }", "static void method_461() {\r\n // $FF: Couldn't be decompiled\r\n }", "private static class_1205 method_6442(String param0, int param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2112(int param1, int param2, int param3, aji param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }", "void m5769c() throws C0841b;", "void m5771e() throws C0841b;", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "public static void m5813a(java.lang.String r2, java.lang.String r3, java.lang.String r4, boolean r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.PurchaseEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r0.putItemId(r2);\n r0.putItemType(r3);\n r2 = java.lang.Long.parseLong(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = java.math.BigDecimal.valueOf(r2);\t Catch:{ Exception -> 0x0021 }\n r0.putItemPrice(r2);\t Catch:{ Exception -> 0x0021 }\n L_0x0021:\n r0.putSuccess(r5);\n r2 = com.crashlytics.android.answers.Answers.getInstance();\n r2.logPurchase(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String, boolean):void\");\n }", "public void method_2111(int param1, int param2, int param3, aji param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }", "@androidx.annotation.Nullable\n /* renamed from: j */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final p005b.p096l.p097a.p151d.p152a.p154b.C3474b mo14822j(java.lang.String r9) {\n /*\n r8 = this;\n java.io.File r0 = new java.io.File\n java.io.File r1 = r8.mo14820g()\n r0.<init>(r1, r9)\n boolean r1 = r0.exists()\n r2 = 3\n r3 = 6\n r4 = 1\n r5 = 0\n r6 = 0\n if (r1 != 0) goto L_0x0022\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s\"\n r0.mo14884b(r2, r9, r1)\n L_0x001f:\n r9 = r6\n goto L_0x0093\n L_0x0022:\n java.io.File r1 = new java.io.File\n b.l.a.d.a.b.o1 r7 = r8.f6567b\n int r7 = r7.mo14797a()\n java.lang.String r7 = java.lang.String.valueOf(r7)\n r1.<init>(r0, r7)\n boolean r0 = r1.exists()\n r7 = 2\n if (r0 != 0) goto L_0x0050\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0050:\n java.io.File[] r0 = r1.listFiles()\n if (r0 == 0) goto L_0x007b\n int r1 = r0.length\n if (r1 != 0) goto L_0x005a\n goto L_0x007b\n L_0x005a:\n if (r1 <= r4) goto L_0x0074\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Multiple pack versions found for pack name: %s app version: %s\"\n r0.mo14884b(r3, r9, r1)\n goto L_0x001f\n L_0x0074:\n r9 = r0[r5]\n java.lang.String r9 = r9.getCanonicalPath()\n goto L_0x0093\n L_0x007b:\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"No pack version found for pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0093:\n if (r9 != 0) goto L_0x0096\n return r6\n L_0x0096:\n java.io.File r0 = new java.io.File\n java.lang.String r1 = \"assets\"\n r0.<init>(r9, r1)\n boolean r1 = r0.isDirectory()\n if (r1 != 0) goto L_0x00af\n b.l.a.d.a.e.f r9 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r0\n java.lang.String r0 = \"Failed to find assets directory: %s\"\n r9.mo14884b(r3, r0, r1)\n return r6\n L_0x00af:\n java.lang.String r0 = r0.getCanonicalPath()\n b.l.a.d.a.b.w r1 = new b.l.a.d.a.b.w\n r1.<init>(r5, r9, r0)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p005b.p096l.p097a.p151d.p152a.p154b.C3544t.mo14822j(java.lang.String):b.l.a.d.a.b.b\");\n }", "public boolean method_2243() {\r\n // $FF: Couldn't be decompiled\r\n }", "private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }", "private void m1654a(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m322b();\n r7 = r7.m321a();\n r1 = 0;\n L_0x0009:\n r2 = \"http.request\";\n r8.mo160a(r2, r7);\n r1 = r1 + 1;\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x002f }\n if (r2 != 0) goto L_0x0020;\t Catch:{ IOException -> 0x002f }\n L_0x0018:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r2.mo2023a(r0, r8, r3);\t Catch:{ IOException -> 0x002f }\n goto L_0x002b;\t Catch:{ IOException -> 0x002f }\n L_0x0020:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r3 = p000a.p001a.p002a.p003a.p032l.C0150c.m428a(r3);\t Catch:{ IOException -> 0x002f }\n r2.mo1931b(r3);\t Catch:{ IOException -> 0x002f }\n L_0x002b:\n r6.m1660a(r0, r8);\t Catch:{ IOException -> 0x002f }\n return;\n L_0x002f:\n r2 = move-exception;\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0035 }\n r3.close();\t Catch:{ IOException -> 0x0035 }\n L_0x0035:\n r3 = r6.f1520h;\n r3 = r3.retryRequest(r2, r1, r8);\n if (r3 == 0) goto L_0x00a0;\n L_0x003d:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x0009;\n L_0x0045:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when connecting to \";\n r4.append(r5);\n r4.append(r0);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x0088;\n L_0x007f:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x0088:\n r2 = r6.f1513a;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"Retrying connect to \";\n r3.append(r4);\n r3.append(r0);\n r3 = r3.toString();\n r2.m269d(r3);\n goto L_0x0009;\n L_0x00a0:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.a(a.a.a.a.i.b.x, a.a.a.a.n.e):void\");\n }", "public void method_2116(class_689 param1, boolean param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t Catch:{ Exception -> 0x0018 }\n r0 = r0.getField(r1);\t Catch:{ Exception -> 0x0018 }\n r1 = 0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.get(r1);\t Catch:{ Exception -> 0x0018 }\n r0 = (java.lang.Integer) r0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.intValue();\t Catch:{ Exception -> 0x0018 }\n return r0;\n L_0x0018:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.f.c():int\");\n }", "static void m7753b() {\n f8029a = false;\n }", "public final synchronized com.google.android.m4b.maps.bu.C4910a m21843a(java.lang.String r10) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r9.f17909e;\t Catch:{ all -> 0x0056 }\n r1 = 0;\n if (r0 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r9);\n return r1;\n L_0x0008:\n r0 = r9.f17907c;\t Catch:{ all -> 0x0056 }\n r2 = com.google.android.m4b.maps.az.C4733b.m21060a(r10);\t Catch:{ all -> 0x0056 }\n r0 = r0.m21933a(r2, r1);\t Catch:{ all -> 0x0056 }\n if (r0 == 0) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0014:\n r2 = r0.length;\t Catch:{ all -> 0x0056 }\n r3 = 9;\t Catch:{ all -> 0x0056 }\n if (r2 <= r3) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0019:\n r2 = 0;\t Catch:{ all -> 0x0056 }\n r2 = r0[r2];\t Catch:{ all -> 0x0056 }\n r4 = 1;\t Catch:{ all -> 0x0056 }\n if (r2 == r4) goto L_0x0020;\t Catch:{ all -> 0x0056 }\n L_0x001f:\n goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0020:\n r5 = com.google.android.m4b.maps.bs.C4891e.m21914c(r0, r4);\t Catch:{ all -> 0x0056 }\n r2 = new com.google.android.m4b.maps.ar.a;\t Catch:{ all -> 0x0056 }\n r7 = com.google.android.m4b.maps.de.C5350x.f20104b;\t Catch:{ all -> 0x0056 }\n r2.<init>(r7);\t Catch:{ all -> 0x0056 }\n r7 = new java.io.ByteArrayInputStream;\t Catch:{ IOException -> 0x0052 }\n r8 = r0.length;\t Catch:{ IOException -> 0x0052 }\n r8 = r8 - r3;\t Catch:{ IOException -> 0x0052 }\n r7.<init>(r0, r3, r8);\t Catch:{ IOException -> 0x0052 }\n r2.m20818a(r7);\t Catch:{ IOException -> 0x0052 }\n r0 = 2;\n r0 = r2.m20843h(r0);\t Catch:{ all -> 0x0056 }\n r10 = r10.equals(r0);\t Catch:{ all -> 0x0056 }\n if (r10 != 0) goto L_0x0042;\n L_0x0040:\n monitor-exit(r9);\n return r1;\n L_0x0042:\n r10 = new com.google.android.m4b.maps.bu.a;\t Catch:{ all -> 0x0056 }\n r10.<init>();\t Catch:{ all -> 0x0056 }\n r10.m22018a(r4);\t Catch:{ all -> 0x0056 }\n r10.m22020a(r2);\t Catch:{ all -> 0x0056 }\n r10.m22016a(r5);\t Catch:{ all -> 0x0056 }\n monitor-exit(r9);\n return r10;\n L_0x0052:\n monitor-exit(r9);\n return r1;\n L_0x0054:\n monitor-exit(r9);\n return r1;\n L_0x0056:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bs.b.a(java.lang.String):com.google.android.m4b.maps.bu.a\");\n }", "public static int m22557b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }", "public void method_7080(String param1, class_1293 param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void m9741j() throws cf {\r\n }", "private static void check(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.check(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.check(java.lang.String):void\");\n }", "public boolean method_2153(boolean param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2259(String param1, double param2, double param4, double param6, int param8, double param9, double param11, double param13, double param15) {\r\n // $FF: Couldn't be decompiled\r\n }", "private void m50367F() {\n }", "public void mo21779D() {\n }", "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }", "private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }", "public void method_2249(boolean param1, class_81 param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void mo115190b() {\n }", "public final void mo1285b() {\n }", "public void mo23813b() {\n }", "public boolean method_208() {\r\n return false;\r\n }", "public final void mo11687c() {\n }", "public final void mo51373a() {\n }", "public static com.facebook.ads.internal.p081a.C1714d m6464a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r1);\n if (r0 == 0) goto L_0x0009;\n L_0x0006:\n r1 = NONE;\n return r1;\n L_0x0009:\n r0 = java.util.Locale.US;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = r1.toUpperCase(r0);\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = com.facebook.ads.internal.p081a.C1714d.valueOf(r1);\t Catch:{ IllegalArgumentException -> 0x0014 }\n return r1;\n L_0x0014:\n r1 = NONE;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.a.d.a(java.lang.String):com.facebook.ads.internal.a.d\");\n }", "void mo72113b();", "public boolean method_2434() {\r\n return false;\r\n }", "public void mo21787L() {\n }", "boolean m25333a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = this;\n java.lang.Class.forName(r1);\t Catch:{ ClassNotFoundException -> 0x0005 }\n r1 = 1;\n return r1;\n L_0x0005:\n r1 = 0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mapbox.android.core.location.c.a(java.lang.String):boolean\");\n }", "private void kk12() {\n\n\t}", "void mo80457c();", "@org.jetbrains.annotations.NotNull\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static /* synthetic */ com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection copy$default(com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection r4, com.bitcoin.mwallet.core.models.slp.Slp r5, java.util.List<kotlin.ULong> r6, com.bitcoin.bitcoink.p008tx.Satoshis r7, com.bitcoin.bitcoink.p008tx.Satoshis r8, java.util.List<com.bitcoin.mwallet.core.models.p009tx.utxo.Utxo> r9, com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.Error r10, int r11, java.lang.Object r12) {\n /*\n r12 = r11 & 1\n if (r12 == 0) goto L_0x0006\n com.bitcoin.mwallet.core.models.slp.Slp r5 = r4.token\n L_0x0006:\n r12 = r11 & 2\n if (r12 == 0) goto L_0x000c\n java.util.List<kotlin.ULong> r6 = r4.quantities\n L_0x000c:\n r12 = r6\n r6 = r11 & 4\n if (r6 == 0) goto L_0x0013\n com.bitcoin.bitcoink.tx.Satoshis r7 = r4.fee\n L_0x0013:\n r0 = r7\n r6 = r11 & 8\n if (r6 == 0) goto L_0x001a\n com.bitcoin.bitcoink.tx.Satoshis r8 = r4.change\n L_0x001a:\n r1 = r8\n r6 = r11 & 16\n if (r6 == 0) goto L_0x0021\n java.util.List<com.bitcoin.mwallet.core.models.tx.utxo.Utxo> r9 = r4.utxos\n L_0x0021:\n r2 = r9\n r6 = r11 & 32\n if (r6 == 0) goto L_0x0028\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error r10 = r4.error\n L_0x0028:\n r3 = r10\n r6 = r4\n r7 = r5\n r8 = r12\n r9 = r0\n r10 = r1\n r11 = r2\n r12 = r3\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection r4 = r6.copy(r7, r8, r9, r10, r11, r12)\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.copy$default(com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection, com.bitcoin.mwallet.core.models.slp.Slp, java.util.List, com.bitcoin.bitcoink.tx.Satoshis, com.bitcoin.bitcoink.tx.Satoshis, java.util.List, com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error, int, java.lang.Object):com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection\");\n }", "public boolean A_()\r\n/* 21: */ {\r\n/* 22:138 */ return true;\r\n/* 23: */ }", "private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }", "public void m23075a() {\n }", "void mo80452a();", "public final int mo11683a(com.google.android.gms.internal.ads.bci r11, com.google.android.gms.internal.ads.bcn r12) {\n /*\n r10 = this;\n L_0x0000:\n int r12 = r10.f3925e\n r0 = -1\n r1 = 1\n r2 = 0\n switch(r12) {\n case 0: goto L_0x00b2;\n case 1: goto L_0x0044;\n case 2: goto L_0x000e;\n default: goto L_0x0008;\n }\n L_0x0008:\n java.lang.IllegalStateException r11 = new java.lang.IllegalStateException\n r11.<init>()\n throw r11\n L_0x000e:\n int r12 = r10.f3928h\n if (r12 <= 0) goto L_0x0031\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r0 = 3\n r11.mo11675b(r12, r2, r0)\n com.google.android.gms.internal.ads.bcq r12 = r10.f3924d\n com.google.android.gms.internal.ads.bkh r3 = r10.f3923c\n r12.mo11681a(r3, r0)\n int r12 = r10.f3929i\n int r12 = r12 + r0\n r10.f3929i = r12\n int r12 = r10.f3928h\n int r12 = r12 - r1\n r10.f3928h = r12\n goto L_0x000e\n L_0x0031:\n int r11 = r10.f3929i\n if (r11 <= 0) goto L_0x0041\n com.google.android.gms.internal.ads.bcq r3 = r10.f3924d\n long r4 = r10.f3927g\n r6 = 1\n int r7 = r10.f3929i\n r8 = 0\n r9 = 0\n r3.mo11680a(r4, r6, r7, r8, r9)\n L_0x0041:\n r10.f3925e = r1\n return r2\n L_0x0044:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n int r12 = r10.f3926f\n if (r12 != 0) goto L_0x006a\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 5\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x005a\n L_0x0058:\n r1 = 0\n goto L_0x008d\n L_0x005a:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12063j()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r3 = r3 * r5\n r5 = 45\n long r3 = r3 / r5\n r10.f3927g = r3\n goto L_0x0083\n L_0x006a:\n int r12 = r10.f3926f\n if (r12 != r1) goto L_0x0097\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 9\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x007b\n goto L_0x0058\n L_0x007b:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12066m()\n r10.f3927g = r3\n L_0x0083:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3928h = r12\n r10.f3929i = r2\n L_0x008d:\n if (r1 == 0) goto L_0x0094\n r12 = 2\n r10.f3925e = r12\n goto L_0x0000\n L_0x0094:\n r10.f3925e = r2\n return r0\n L_0x0097:\n com.google.android.gms.internal.ads.bad r11 = new com.google.android.gms.internal.ads.bad\n int r12 = r10.f3926f\n r0 = 39\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>(r0)\n java.lang.String r0 = \"Unsupported version number: \"\n r1.append(r0)\n r1.append(r12)\n java.lang.String r12 = r1.toString()\n r11.<init>((java.lang.String) r12)\n throw r11\n L_0x00b2:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 8\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 == 0) goto L_0x00df\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12065l()\n int r2 = f3921a\n if (r12 != r2) goto L_0x00d7\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3926f = r12\n r2 = 1\n goto L_0x00df\n L_0x00d7:\n java.io.IOException r11 = new java.io.IOException\n java.lang.String r12 = \"Input not RawCC\"\n r11.<init>(r12)\n throw r11\n L_0x00df:\n if (r2 == 0) goto L_0x00e5\n r10.f3925e = r1\n goto L_0x0000\n L_0x00e5:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.bef.mo11683a(com.google.android.gms.internal.ads.bci, com.google.android.gms.internal.ads.bcn):int\");\n }", "public void mo12628c() {\n }", "public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }", "void mo41086b();", "private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }", "private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }", "public void mo21785J() {\n }", "public final com.google.android.gms.internal.ads.zzafx mo4170d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19705f;\n monitor-enter(r0);\n r1 = r2.f19706g;\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n r1 = r1.m26175a();\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x000b:\n r1 = move-exception;\t Catch:{ all -> 0x000b }\n goto L_0x0010;\t Catch:{ all -> 0x000b }\n L_0x000d:\n r1 = 0;\t Catch:{ all -> 0x000b }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x0010:\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzafn.d():com.google.android.gms.internal.ads.zzafx\");\n }", "protected boolean func_70041_e_() { return false; }", "static /* synthetic */ void m204-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }" ]
[ "0.7616838", "0.7573048", "0.7525757", "0.74508786", "0.7450473", "0.7437555", "0.7381664", "0.7381664", "0.7366731", "0.735352", "0.7341992", "0.7314967", "0.73080236", "0.73053473", "0.7273281", "0.72523504", "0.722139", "0.719779", "0.7177453", "0.7136381", "0.7105981", "0.7040835", "0.70237154", "0.70186365", "0.69916016", "0.6960345", "0.69401664", "0.69072855", "0.6888791", "0.6851495", "0.6828259", "0.67950964", "0.6783922", "0.67778486", "0.67729396", "0.6771093", "0.6767952", "0.6767891", "0.6742762", "0.67067826", "0.67010987", "0.66994643", "0.6698351", "0.66983265", "0.6669684", "0.6667753", "0.66552746", "0.6612992", "0.6611936", "0.66088414", "0.6593323", "0.65687865", "0.656545", "0.6539634", "0.65135396", "0.65097314", "0.65093327", "0.6489766", "0.6436787", "0.6431981", "0.6430648", "0.6404067", "0.6401186", "0.6371352", "0.6369688", "0.63681245", "0.63573414", "0.63297135", "0.6327071", "0.6324539", "0.63169736", "0.6304591", "0.63035244", "0.62983245", "0.62819105", "0.6280212", "0.62414116", "0.62279886", "0.6227547", "0.62274706", "0.6224533", "0.6219261", "0.6219083", "0.6205477", "0.6198607", "0.6194666", "0.61806285", "0.61702055", "0.6168226", "0.61650664", "0.61628413", "0.61616725", "0.61566406", "0.61554694", "0.6151414", "0.61403525", "0.6126472", "0.61151254", "0.6112036", "0.61024994", "0.6095945" ]
0.0
-1
Popup Dialog in Options Menu
private void showHelp(){ AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this,R.style.MyDialogTheme); alertDialogBuilder.setMessage("Welcome to NBA Manager 2019\n\n" + "The purpose of the application is to simulate a basketball manager game and draft a team.\n\n" + "You can view your current roster by pressing the right arrow in the top right corner.\n\n" + "*Not all players will have a height or a weight."); alertDialogBuilder.setPositiveButton("Ok", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface arg0, int arg1) { } }); AlertDialog alertDialog = alertDialogBuilder.create(); alertDialog.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void popupWindowOfOptions(View v) {\n \t \n \t\tOrderManager.clearOption();\n \t\t\n \t\tint nOrderBoardTextId = v.getId();\n \tOrder _Order = (Order) ResourceManager.get(nOrderBoardTextId);\n \tint nMenuDbId = _Order.MENU_ID;\n \tint nMenuResourceId = MenuManager.getResourceIdByDbId(nMenuDbId);\n \tMenu mMenu = MenuManager.getMenuByResourceId(nMenuResourceId);\n \t\n \tint nTempIdForCurrentOrder = IdManager.getRandomId();\n \tIdManager.setTemporaryId(nTempIdForCurrentOrder);\n \tResourceManager.put(nTempIdForCurrentOrder, _Order);\n \t\n try {\n \t\n \tint nPopupHeight = 760;\n \t\tint nPopupWith = 520;\n \t\n \tint nSubTitleHeight = 40;\n \tint nOptionListLayoutHeight = 210;\n \t\n \tString strMenuNameEng = mMenu.NAME_ENG;\n \tString strMenuNameOth = mMenu.NAME_OTH;\n \t\n \t// Popup layout\n LinearLayout popLayout = new LinearLayout(this);\n popLayout.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));\n popLayout.setGravity(Gravity.CENTER);\n popLayout.setBackgroundColor(0x22000000);\n \n \t // Inner layout\n \t LinearLayout innerLayout = new LinearLayout(this);\n \t innerLayout.setLayoutParams(new LayoutParams(nPopupWith-20,nPopupHeight-20));\n \t innerLayout.setPadding(10,10,10,10);\n \t innerLayout.setOrientation(LinearLayout.VERTICAL);\n \t innerLayout.setGravity(Gravity.CENTER);\n \t innerLayout.setBackgroundColor(0xddffffff);\n \t\t \n \t\t // title eng\n \t\t TextView tvTitleEng = new TextView(this);\n \t\t tvTitleEng.setGravity(Gravity.CENTER);\n \t\t tvTitleEng.setText(strMenuNameEng);\n \t\t tvTitleEng.setTextColor(0xff000000);\n \t\t tvTitleEng.setTextSize(23);\n \t\t tvTitleEng.setHeight(50);\n \t\t tvTitleEng.setWidth(470);\n \t\t \n \t\t // title oth\n \t\t TextView tvTitleOth = new TextView(this);\n \t\t tvTitleOth.setGravity(Gravity.TOP|Gravity.CENTER);\n \t\t tvTitleOth.setText(strMenuNameOth);\n \t\t tvTitleOth.setTextColor(0xff000000);\n \t\t tvTitleOth.setTextSize(13);\n \t\t tvTitleOth.setHeight(55);\n \t\t tvTitleOth.setWidth(470);\n \t\t \n \t\t // common option title\n \t\t TextView tvCO = new TextView(this);\n \t\t tvCO.setText(\"* Common Option\");\n \t\t tvCO.setPadding(10,0,0,0);\n \t\t tvCO.setTextSize(15);\n \t\t tvCO.setTextColor(0xff5f2d09);\n \t\t tvCO.setHeight(nSubTitleHeight);\n \t\t tvCO.setWidth(470);\n \t\t \n \t\t // common option layout\n \t\t ScrollView svCO = new ScrollView(this);\n \t\t svCO.setLayoutParams(new LayoutParams(470,nOptionListLayoutHeight));\n \t\t \n \t\t LinearLayout llCO = new LinearLayout(this);\n \t\t llCO.setLayoutParams(new LayoutParams(470,LayoutParams.WRAP_CONTENT));\n \t\t llCO.setPadding(15,10,10,10);\n \t\t llCO.setOrientation(LinearLayout.VERTICAL);\n \t\t llCO.setGravity(Gravity.TOP);\n \t\t \n \t\t showCommonOptions (mMenu, llCO);\n \t\t \t\n \t\t \tsvCO.addView(llCO);\n \t\t \t\n \t\t\t // specific option title\n \t\t\t \n \t\t TextView tvSO = new TextView(this);\n \t\t tvSO.setPadding(10,0,0,0);\n \t\t tvSO.setText(\"* Specific Option\");\n \t\t tvSO.setTextSize(15);\n \t\t tvSO.setTextColor(0xff5f2d09);\n \t\t tvSO.setHeight(nSubTitleHeight);\n \t\t tvSO.setWidth(470);\n \t \n \t\t ScrollView svSO = new ScrollView(this);\n \t\t svSO.setLayoutParams(new LayoutParams(470,nOptionListLayoutHeight));\n \t\t \n \t\t LinearLayout llSO = new LinearLayout(this);\n \t\t llSO.setLayoutParams(new LayoutParams(470,nOptionListLayoutHeight));\n \t\t llSO.setPadding(15,10,10,10);\n \t\t llSO.setOrientation(LinearLayout.VERTICAL);\n \t\t llSO.setGravity(Gravity.TOP);\n \t\n \t\t showSpecificOptions (mMenu, llSO);\n \t\t \n \t\t svSO.addView(llSO);\n \t\t \n \t\t // button group\n \t\t \n \t\t int nButtonHeight = 50;\n \t\t int nButtonWidth = 100;\n \t\t \n \t\t LinearLayout llButtonGroup = new LinearLayout(this);\n \t\t llButtonGroup.setLayoutParams(new LayoutParams(470,80));\n \t\t llButtonGroup.setPadding(10, 0, 10, 4);\n \t\t llButtonGroup.setOrientation(LinearLayout.HORIZONTAL);\n \t\t llButtonGroup.setGravity(Gravity.CENTER|Gravity.BOTTOM);\n \t\t \n \t\t // confirm button\n \t \n \t \tint nConfirmId = IdManager.getRandomId();\n \t\t Button btnConfirm = new Button(this);\n \t\t btnConfirm.setId(nConfirmId);\n \t\t btnConfirm.setBackgroundResource(R.drawable.color_button_basic);\n \t\t btnConfirm.setLayoutParams(new LayoutParams(nButtonWidth,nButtonHeight));\n \t\t btnConfirm.setText(CaptionManager.getCaption().CONFIRM);\n \t\t btnConfirm.setTextSize(13);\n \t\t \n \t\t // add options to an order\n \t\t btnConfirm.setOnClickListener(new OnClickListener() {\n \t\t\t public void onClick(View v) {\n \t\t\t \t\n \t\t\t \tOrder currentOrder = (Order)ResourceManager.get(IdManager.getTemporaryId());\n \t\t\t \t\n \t\t\t \tArrayList<Order> orderList = addOptionsToOrder(currentOrder);\n \t\t\t \tOrderManager.requestUpdateOptions(currentOrder,orderList);\n \t \t\t\t\tloadOrderBoard();\n \t \t\t\t\tOrderManager.clearOption();\n \t \t\t\t\t_PopupWindowOfOptions.dismiss();\n \t\t\t }\n \t\t });\n \t\t \n \t\t // cancel button\n \t\t Button btnCancel = new Button(this);\n \t\t btnCancel.setBackgroundResource(R.drawable.color_button_basic);\n \t\t btnCancel.setLayoutParams(new LayoutParams(nButtonWidth,nButtonHeight));\n \t\t btnCancel.setText(CaptionManager.getCaption().CANCEL);\n \t\t btnCancel.setTextSize(13);\n \t\t btnCancel.setOnClickListener(new OnClickListener() {\n \t\t\t public void onClick(View v) {\n \t\t\t \tOrderManager.clearOption();\n \t\t\t \t_PopupWindowOfOptions.dismiss();\n \t\t\t }\n \t\t });\n \t\t \n \t\t // detail button\n \t\t final int nTempId = 808080;\n \t\t Mapper.put(Integer.valueOf(nTempId), mMenu);\n \t\t \n \t\t Button btnDetail = new Button(this);\n \t\t btnDetail.setBackgroundResource(R.drawable.color_button_basic);\n \t\t btnDetail.setLayoutParams(new LayoutParams(nButtonWidth,nButtonHeight));\n \t\t btnDetail.setText(CaptionManager.getCaption().DETAIL);\n \t\t btnDetail.setTextSize(13);\n \t\t btnDetail.setOnClickListener(new OnClickListener() {\n \t\t\t public void onClick(View v) {\n \t\t\t \n \t\t\t \tMenu menu = (Menu)Mapper.get(Integer.valueOf(808080));\n \t\t\t \tint nMenuRscId = menu.RESOURCE_ID;\n \t\t\t \tpopupWindowDetail(nMenuRscId);\n \t\t\t }\n \t\t });\n \t\t\t \n \t llButtonGroup.addView(btnConfirm);\n \t llButtonGroup.addView(btnCancel);\n \t llButtonGroup.addView(btnDetail);\n \t \n \t\t innerLayout.addView(tvTitleEng);\n \t innerLayout.addView(tvTitleOth);\n \t innerLayout.addView(tvCO);\n \t innerLayout.addView(svCO);\n \t innerLayout.addView(tvSO);\n \t innerLayout.addView(svSO);\n \t innerLayout.addView(llButtonGroup);\n \t \n popLayout.addView(innerLayout);\n\n // show popup\n _PopupWindowOfOptions = new PopupWindow(popLayout, nPopupWith, nPopupHeight, true);\n _PopupWindowOfOptions.showAtLocation(popLayout, Gravity.CENTER, 0, 0);\n \t\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void showOptions() {\n this.popupWindow.showAtLocation(this.layout, 17, 0, 0);\n this.customview.findViewById(R.id.dialog).setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.pdf.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = \"pdf\";\n discussionActivity.showPdfChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.img.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = ContentTypes.EXTENSION_JPG_1;\n discussionActivity.showImageChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.cancel.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n }", "private void popupModify() {\n\t\tboolean doNotShow = false;\n\t\tif (this instanceof Umlenkrolle && ((Umlenkrolle) this).isFree()) {\n\t\t\tdoNotShow = true;\n\t\t} else if (this instanceof DoppelUmlenkrolle) {\n\t\t\tdoNotShow = true;\n\t\t}\n\t\taufzugschacht.mainFrameShowOptionsFrame(this, doNotShow);\n\t}", "private void popupMenuAbout() {\n\t\t//\n\t\t// Display the dialog\n\t\t//\n\t\tAboutDialog aboutDialog = new AboutDialog(parent.getShell(), SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);\n\t\taboutDialog.open();\n\t}", "void optionsDialog(){\r\n\t\tString title = getString(R.string.select_option);\r\n\t\tString[] options = getResources().getStringArray(R.array.options);\r\n\t\t\r\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\t \r\n\t\t// set the dialog title\r\n\t builder.setTitle(title);\r\n\t \r\n\t // specify the list array\r\n\t builder.setItems(options, new DialogInterface.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tswitch(which){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\t// open update dialog\r\n\t\t\t\t\tupdateDialog();\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\t// open delete dialog\r\n\t\t\t\t\tdeleteDialog();\r\n\t\t\t\t\tdialog.dismiss();\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 \r\n\r\n\t // show dialog\r\n\t\tAlertDialog alert = builder.create();\r\n\t\talert.show();\r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptionsDialog();\r\n\t\t\t}", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public void showPopupOption(View v) {\n PopupMenu popup = new PopupMenu(ListMusicActivity.this, v);\n //Inflating the Popup using xml file\n popup.getMenuInflater().inflate(R.menu.popup_menu, popup.getMenu());\n\n //registering popup with OnMenuItemClickListener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n public boolean onMenuItemClick(MenuItem item) {\n Toast.makeText(ListMusicActivity.this,\"You Clicked : \" + item.getTitle(),Toast.LENGTH_SHORT).show();\n return true;\n }\n });\n\n popup.show();//showing popup menu\n }", "public void showOptions()\n {\n //make the options window visible\n optionsScreen.setVisible(true);\n }", "public void showPopup(View v) {\n\t\t\tPopupMenu popup = new PopupMenu(DatosAuto.this, v);\n\t\t\tMenuInflater inflater = popup.getMenuInflater();\n\t\t\tinflater.inflate(R.menu.popup, popup.getMenu());\n\t\t\tint positionOfMenuItem = 0; \n\t\t\tMenuItem item = popup.getMenu().getItem(positionOfMenuItem);\n\t\t\tSpannableString s = new SpannableString(getResources().getString(R.string.action_historial));\n\t\t\ts.setSpan(new ForegroundColorSpan(getResources().getColor(R.color.color_vivos)), 0, s.length(), 0);\n\t\t\titem.setTitle(s);\n\t\t\t positionOfMenuItem = 1; \n\t\t\t item = popup.getMenu().getItem(positionOfMenuItem);\n\t\t\t s = new SpannableString(getResources().getString(R.string.action_settings));\n\t\t\ts.setSpan(new ForegroundColorSpan(getResources().getColor(R.color.color_vivos)), 0, s.length(), 0);\n\t\t\titem.setTitle(s);\n\t\t\t\n\n\t\t\tpopup.setOnMenuItemClickListener(new OnMenuItemClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onMenuItemClick(MenuItem item) {\n\t\t\t\t\tswitch (item.getItemId()) {\n\n\t\t\t\t\tcase R.id.configuracion_historial:\n\t\t\t\t\t\tstartActivity(new Intent(DatosAuto.this,Historico_viajes.class));\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t\n\n\t\t\t\t\tcase R.id.configuracion_pref:\n\n\t\t\t\t\t\t\tIntent i = new Intent(DatosAuto.this,UserSettingActivity.class);\n\t\t\t\t\t\t\tstartActivityForResult(i, RESULT_SETTINGS);\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\n\t\t\t\t\tcase R.id.configuracion_acerca_de:\n\t\t\t\t\t\tnew Dialogos().mostrarAercaDe(DatosAuto.this).show();\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tpopup.show();\n\t\t}", "public void showOptions() {\n frame.showOptions();\n }", "public void openOptionsWindow() {\n\t\tthis.dispose();\t//built-in method to destroy this GUI.\n\t\tnew SARMain().setVisible(true);\n\t}", "public void options() {\n\n audio.playSound(LDSound.SMALL_CLICK);\n if (canViewOptions()) {\n Logger.info(\"HUD Presenter: options\");\n uiStateManager.setState(GameUIState.OPTIONS);\n }\n }", "public void closeOptions() {\n PopupManager.closePopup(n, optionsPopup);\n }", "public void showPopup(View v) {\n\t\tPopupMenu popup = new PopupMenu(RegistroContactosEmergenciaActivity.this, v);\n\t\tMenuInflater inflater = popup.getMenuInflater();\n\t\tinflater.inflate(R.menu.popup, popup.getMenu());\n\t\tint positionOfMenuItem = 0; \n\t\tMenuItem item = popup.getMenu().getItem(positionOfMenuItem);\n\t\tSpannableString s = new SpannableString(getResources().getString(R.string.action_settings));\n\t\ts.setSpan(new ForegroundColorSpan(getResources().getColor(R.color.color_vivos)), 0, s.length(), 0);\n\t\titem.setTitle(s);\n\n\t\tpopup.setOnMenuItemClickListener(new OnMenuItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic boolean onMenuItemClick(MenuItem item) {\n\t\t\t\tswitch (item.getItemId()) {\n\n\t\t\t\tcase R.id.configuracion_pref:\n\n\t\t\t\t\t\tIntent i = new Intent(RegistroContactosEmergenciaActivity.this,UserSettingActivity.class);\n\t\t\t\t\t\tstartActivityForResult(i, RESULT_SETTINGS);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\n\t\t\t\tcase R.id.configuracion_acerca_de:\n\t\t\t\t\tnew Dialogos().mostrarAercaDe(RegistroContactosEmergenciaActivity.this).show();\n\t\t\t\t\treturn true;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\n\t\tpopup.show();\n\t}", "@SuppressLint(\"RestrictedApi\")\n private void onGameSettingClicked() {\n PopupMenu popup = new PopupMenu(this, this.mGameSetting);\n popup.getMenuInflater().inflate(R.menu.game_setting_menu, popup.getMenu());\n\n popup.setOnMenuItemClickListener(item -> {\n switch (item.getItemId()){\n case R.id.game_setting_sync:\n Toast.makeText(this, \"Game sync successfully \", Toast.LENGTH_SHORT).show();\n break;\n case R.id.game_setting_add_players:\n Intent intent = new Intent(this, Players.class);\n startActivity(intent);\n break;\n case R.id.game_signIn:\n Toast.makeText(this, \"Sign in successfully ! \", Toast.LENGTH_SHORT).show();\n break;\n }\n\n return true;\n });\n\n MenuPopupHelper menuHelper = new MenuPopupHelper(this, (MenuBuilder) popup.getMenu(), this.mGameSetting);\n menuHelper.setForceShowIcon(true);\n menuHelper.show();\n }", "public void actionPerformed(ActionEvent e)\n {\n new AutoAnswerOptionsDialog(providerService, parentMenu)\n .setVisible(true);\n }", "@Override\n public boolean onMenuItemClick(MenuItem item) {\n Block_Dialog();\n return false;\n }", "private void setPopUpOptions(Context context, View view, boolean showEdit, int position ) {\n PopupMenu popupMenu = new PopupMenu(context, view);\n popupMenu.getMenuInflater().inflate(R.menu.menu_item_popup, popupMenu.getMenu());\n popupMenu.getMenu().findItem(R.id.menu_edit).setVisible(showEdit);\n\n popupMenu.setOnMenuItemClickListener(item -> {\n switch (item.getItemId()) {\n case R.id.menu_edit:\n new SectionMenuOptionAction( position ).showEditTitleDialog();\n break;\n case R.id.menu_delete:\n// Log.e(\"CLICKED\", \"Delete Clicked\");\n new SectionMenuOptionAction( position ).onDeleteSectionQuery();\n break;\n }\n return true;\n });\n popupMenu.show();\n }", "private void showHelpDialog() {\n\n view.helpDialog();\n }", "private Object displayOptionsPanel(String message, Object[] possibleValues) {\n return JOptionPane.showInputDialog(\n mainPanel, // parentComponent\n message, // message\n \"\", // title\n JOptionPane.QUESTION_MESSAGE, // messageType\n null, // icon\n possibleValues, // selectionValues\n possibleValues[0] // initialSelectionValue\n );\n }", "private void popupModify2te() {\n\t\tRolle rolle = (Rolle) this;\n\t\taufzugschacht.mainFrameShowOptionsFrame(rolle.getRolle2teUmschlingung(), true);\n\t}", "@Override\r\n\t\t\t\tpublic void onDialogMenuPressed() {\n\r\n\t\t\t\t}", "public void onOptionClick(View v){\r\n\t\tif (v.getId() == R.id.tvChannels) {\r\n\t\t\tif (typeDialog != null)\r\n\t\t\t\ttypeDialog.show();\r\n\t\t\telse {\r\n\t\t\t\tcreateTypeDialog(MyChannelsTabletActivity.this);\r\n\t\t\t\tif (typeDialog != null)\r\n\t\t\t\t\ttypeDialog.show();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public OptionsMenu() {\n\t\tsuper(OPTIONS_WINDOW_TITLE);\n\t\tQ = new Quoridor();\n\t\tinitialize();\n\t\tsetVisible(true);\n\t}", "private DialogJoinOptions showOptionsDialog() {\n DialogJoinOptions optionsDialog = new DialogJoinOptions();\n\n // Load and init dialog options from preferences\n optionsDialog.setGlue(Preferences.getJoinGlue());\n\n optionsDialog.addComponentListener(new ComponentListenerDialog(Preferences.ID_DIALOG_JOIN));\n UtilsEnvironment.setDialogVisible(editor, Preferences.ID_DIALOG_JOIN, optionsDialog, StaticTexts.MESSAGE_TITLE_JOIN);\n\n return optionsDialog;\n }", "public static void openOptionMenu() {\r\n\t\tif(!STATUS.equals(Gamestatus.STOPPED)) return;\r\n\t\tgui.setMenu(new OptionMenu(), true);\r\n\t}", "public void triggerPopup();", "@Override\n public void actionPerformed(ActionEvent e) {\n helpPopUp();\n }", "private void showPopup(View view) {\n PopupMenu popupMenu = new PopupMenu(context, view);\n final DataResult dataResult = (DataResult) view.getTag();\n MenuInflater menuInflater = popupMenu.getMenuInflater();\n menuInflater.inflate(R.menu.popup_data_result, popupMenu.getMenu());\n if (dataResult.isIs_clouded()) {\n popupMenu.getMenu().getItem(1).setEnabled(false);\n }\n popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.open_csv_data_result:\n openCSVDataResult(dataResult);\n break;\n case R.id.cloud_saved_data_result:\n cloudSavedDataResult(dataResult);\n break;\n case R.id.delete_data_result:\n deleteDataResult(dataResult);\n break;\n }\n return true;\n }\n });\n popupMenu.show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setItems(items, new DialogInterface.OnClickListener(){\n @Override\n public void onClick(DialogInterface dialog, int which) {\n mListener.onPinOptionsItemSelected(PinOptionsDialogFragment.this, items[which].toString());\n }\n });\n return builder.create();\n }", "private void popupCalibratingDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.motion_calibrating);\n builder.setCancelable(false);\n builder.setMessage(R.string.motion_calibrating_message);\n\n calibratingDialog = builder.create();\n calibratingDialog.show();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n // Diaglog implementation\n final Dialog dialog = new Dialog(this);\n dialog.setTitle(getResources().getString(R.string.dialogText));\n dialog.setContentView(R.layout.dialog_layout);\n\n // Treating the Button that goes to the MoMa website\n dialog.findViewById(R.id.buttonVisitMoMA).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.moma.org\"));\n startActivity(intent);\n }\n });\n\n // Dismissing the Dialog\n dialog.findViewById(R.id.buttonNotNow).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n if (item.getItemId() == R.id.menuOverFlowArea){\n dialog.show();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void createPopupWindow() {\r\n \t//\r\n }", "private void showDialog() {\n// String select[] = new String[]{\"MEMO\", \"BAIDU\", \"TAOBAO\"};\n String select[] = getResources().getStringArray(R.array.dialog_items);\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Select a Website\")\n .setSingleChoiceItems(select, mSelectionRes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n mSelectionRes = which; // redefine chosen item, and loging\n Intent intent = new Intent();\n if (which == 3) {\n /**\n * for general android devices using\n */\n// intent.setAction(\"android.settings.SETTINGS\");\n// startActivity(intent);\n\n //for leanback only\n Utils.startAPP(getApplicationContext(), \"com.android.tv.settings\");\n//\n Toast.makeText(MainActivity.this, \"haha\", Toast.LENGTH_SHORT).show();\n }\n dialog.dismiss();\n }\n });\n builder.create().show();\n }", "private void openAddRoutePopupMenu() {\r\n PopupMenu menu = new PopupMenu(this, findViewById(R.id.route_list));\r\n for (Sight s : this.manager.getAllSights()){\r\n menu.getMenu().add(Menu.NONE, s.getId(), Menu.NONE, s.toString());\r\n }\r\n menu.getMenu().add(Menu.NONE, R.id.configure_sight_list_cancel_context_menu, Menu.NONE, getApplicationContext().getString(R.string.cancel));\r\n menu.setOnMenuItemClickListener(this);\r\n menu.show();\r\n }", "private void openHelpDialog() {\r\n\t\t// Get view and put relevant information into the view.\r\n\t\tLayoutInflater li = LayoutInflater.from(this);\r\n\t\tView view = li.inflate(R.layout.archive_help_dialog, null);\r\n\r\n\t\tnew AlertDialog.Builder(this)\r\n\t\t\t\t.setTitle(\r\n\t\t\t\t\t\tgetResources().getString(R.string.action_archive)\r\n\t\t\t\t\t\t\t\t+ \" \"\r\n\t\t\t\t\t\t\t\t+ getResources()\r\n\t\t\t\t\t\t\t\t\t\t.getString(R.string.action_help))\r\n\t\t\t\t.setIcon(R.drawable.icon)\r\n\t\t\t\t.setView(view)\r\n\t\t\t\t.setNegativeButton(R.string.dialog_general_button_close,\r\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\tint whichButton) {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}).show();\r\n\t}", "private void showPopUpMenu() {\n\t\tPopupMenu popup = new PopupMenu(getActivity(), moreButton);\n\t\tpopup.getMenuInflater().inflate(R.menu.popup_menu, popup.getMenu());\n\n\t\tpopup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n\t\t\tpublic boolean onMenuItemClick(MenuItem item) {\n\n\t\t\t\tif (item.getTitle().equals(\"About\")) {\n\t\t\t\t\tUtils.startActivity(\n\t\t\t\t\t\t\tgetActivity(),\n\t\t\t\t\t\t\tcom.allpoint.activities.tablet.AboutActivity_.class,\n\t\t\t\t\t\t\tfalse, false, false);\n\t\t\t\t} else {\n\t\t\t\t\tshowSettingFrag();\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\tpopup.show();// showing popup menu\n\t}", "private static void showSingleOptionDialog(Context c, int titleID, int messageID, int buttonID, OnClickListener listener){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(c);\n\t\tbuilder.setTitle(titleID)\n\t\t.setNegativeButton(buttonID, listener);\n\t\tif(messageID > -1){\n\t\t\tbuilder.setMessage(messageID);\n\t\t}\n\n\t\tbuilder.create().show();\n\t}", "public void actionPerformed(ActionEvent e) {\r\n\t\t\t\tpopup.show(mainpanel , 660, 40);\r\n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item){\n if (item.getItemId() == R.id.menu1) {\n AlertDialog.Builder alertCovidHelp = new AlertDialog.Builder(this);\n\n alertCovidHelp.setTitle(getString(R.string.chelpButtonTitle))\n .setMessage(getString(R.string.chelpButton1))\n .setNegativeButton((getString(R.string.calertBtnClose)), (click, arg) -> {})\n .create().show();\n }\n return true;\n }", "public void show_help_pop( View view ) {\n //create and set up dialog box object\n AlertDialog.Builder pop_up = new AlertDialog.Builder( this );\n pop_up.setTitle( \"Alarm/Reminder Help\" );\n pop_up.setIcon( R.drawable.logo );\n final String help_message = \"This alarm is mainly designed for daily reminders, such as\" +\n \" meetings and timed activities, it is not particularly meant to be used as a wake\" +\n \"-up alarm in the morning.\\n\\nThe interface provides simplicity. To set the alarm\" +\n \", pick the hour and minute using the hands of the clock (make sure to pick AM/PM\" +\n \" correctly) and set it by clicking the toggle button in the center. The button \" +\n \"text will now read \\\"ON\\\". You may also wish to provide your own reminder text in\" +\n \" the area just below time picker. Use the same toggle button to disable the \" +\n \"alarm. Once the alarm sounds, a notification will appear on your screen. Click \" +\n \"the notification (may have to unlock screen first) to open up the alarm screen\" +\n \" and then click the toggle button to disable the alarm and turn off the sound.\";\n pop_up.setMessage( help_message );\n\n //set up buttons for dialog box\n pop_up.setPositiveButton( \"OK\", null );\n\n //show pop-up\n pop_up.show( );\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\tMenuItem item = menu.findItem(R.id.show_dialog);\n\t\titem.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {\n\n\n\t\t\t@Override\n\t\t\tpublic boolean onMenuItemClick(MenuItem item) {\n\t\t\t\tCountryPicker picker = CountryPicker.newInstance(\"Select Country\");\n\t\t\t\tpicker.setListener(new CountryPickerListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSelectCountry(String name, String code) {\n\t\t\t\t\t/*\tToast.makeText(\n\t\t\t\t\t\t\t\tcontry.this,\n\t\t\t\t\t\t\t\t\"Country Name: \" + name + \" - Code: \" + code\n\t\t\t\t\t\t\t\t\t\t+ \" - Currency: \"\n\t\t\t\t\t\t\t\t\t\t+ CountryPicker.getCurrencyCode(code),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tIntent intent = new Intent(contry.this, SignUpActivity.class);\n\t\t\t\t\t\t intent.putExtra(\"pays_iso\",code); \n\t\t\t\t\t\t intent.putExtra(\"pays_name\",name); \n\t\t\t\t\t\t intent.putExtra(\"device_key\",registrationId); \n\t\t\t\t\t\tstartActivityForResult(intent, 0);\n\t\t\t\t\t\toverridePendingTransition(R.anim.slidein, R.anim.slideout);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\tpicker.show(getSupportFragmentManager(), \"COUNTRY_PICKER\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\treturn true;\n\t}", "@Override\n public void onShow(DialogInterface arg0) {\n\n }", "public void option() {\n ReusableActionsPageObjects.clickOnElement(driver, options, logger, \"user options.\");\n }", "void openMenuOptions(Gadget gadget, final Element referenceElement);", "private void editArguments() {\n\t\tDialog d = new EditArgumentsDialog(creator.modpack.minecraft.arguments, frame, true);\n\t\td.setVisible(true);\n\t}", "private void basicInfoDialogPrompt() {\n if(!prefBool){\n BasicInfoDialog dialog = new BasicInfoDialog();\n dialog.show(getFragmentManager(), \"info_dialog_prompt\");\n }\n }", "void aboutMenuItem_actionPerformed(ActionEvent e) {\n AboutDialog dlg = new AboutDialog(this, \"About InfoFilter Application\", true);\n Point loc = this.getLocation();\n\n dlg.setLocation(loc.x + 50, loc.y + 50);\n dlg.show();\n }", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "private static void showDoubleOptionDialog(Context c, int titleID, int messageID, int posButtonID, int negButtonID, OnClickListener posListener, OnClickListener negListener){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(c);\n\t\tbuilder.setTitle(titleID)\n\t\t.setPositiveButton(posButtonID, posListener)\n\t\t.setNegativeButton(negButtonID, negListener);\n\t\tif(messageID > -1){\n\t\t\tbuilder.setMessage(messageID);\n\t\t}\n\n\t\tbuilder.create().show();\n\t}", "private void gotoOptions() {\n Intent launchOptions = new Intent(this, Preferences.class);\n startActivity(launchOptions);\n }", "public void confirmacionVolverMenu(){\n AlertDialog.Builder builder = new AlertDialog.Builder(Postre.this);\n builder.setCancelable(false);\n builder.setMessage(\"¿Desea salir?\")\n .setPositiveButton(\"Aceptar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\tIntent intent = new Intent(Postre.this, HomeAdmin.class);\n\t\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_FORWARD_RESULT);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\toverridePendingTransition(R.anim.left_in, R.anim.left_out);\t\n }\n })\n .setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n \n builder.show();\n }", "private void showActionDialog(final int position) {\n CharSequence colors[] = new CharSequence[]{\"Edit\", \"Delete\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setTitle(\"Choose Option\");\n builder.setItems(colors, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (which == 0){\n showNoteDialog(true, noteList.get(position), position);\n }\n else if (which == 1){\n deleteNote(noteList.get(position),position);\n }\n }\n });\n builder.show();\n }", "private void initEdgePopup() {\r\n edgeMenuItem = new MenuItem[4];\r\n edgeMenuItem[0] = new MenuItem(\"Select All\");\r\n edgeMenuItem[1] = new MenuItem(\"Create Split Point\");\r\n edgeMenuItem[2] = new MenuItem(\"Edit Label\");\r\n edgeMenuItem[3] = new MenuItem(\"Properties\");\r\n\r\n edgePopupMenu = new PopupMenu();\r\n\r\n edgePopupMenu.add(edgeMenuItem[0]);\r\n edgePopupMenu.addSeparator();\r\n edgePopupMenu.add(edgeMenuItem[1]);\r\n edgePopupMenu.add(edgeMenuItem[2]);\r\n edgePopupMenu.add(edgeMenuItem[3]);\r\n\r\n edgePopupMenu.addActionListener(this);\r\n\r\n this.add(edgePopupMenu);\r\n }", "@Override\n public void onClick(View view) {\n PopupMenu popup = new PopupMenu(mContext, holder.tv_option_menu);\n //inflating menu from xml resource\n popup.inflate(R.menu.menu_options);\n //adding click listener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.menu1:\n shareStories(headlinesList.get(position).getUrl());\n return true;\n case R.id.menu2:\n //handle menu2 click\n db.insertNote(headlinesList.get(position));\n return true;\n default:\n return false;\n }\n }\n });\n //displaying the popup\n popup.show();\n\n }", "private void resourceActionWindow (ButtonImage button){\n JPopupMenu depositList = new JPopupMenu(\"Deposits\");\n DepositMenu subMenu = new DepositMenu(gui, \"Send to\", selectedResource, Command.SEND_DEPOSIT_ID, 0);\n depositList.add(subMenu);\n button.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent e) {\n depositList.show(button , e.getX(), e.getY());\n }\n });\n }", "protected void showOptions(){\n mOptionList.setClickable(true);\n mOptionList.setVisibility(View.VISIBLE);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n return true;\n }else if(id==R.id.action_help){\n AlertDialog.Builder dialog = new AlertDialog.Builder(this);\n dialog.setTitle(\"Help\");\n dialog.setMessage(Html.fromHtml(\"<b>How to add an event? </b>\"+\"<br/>\" + \"1) Tap on a location on the map <br/>\" + \"2) Click the Add button on the bottom right of the screen <br/>\" + \"3) Enter all the required information in the next screen <br/>\" + \"4) Click the Add button again <br/>\"\n +\"<br/><b>How to join an Event?</b> <br/>\"+\"1) Click on an Event on the Map <br/> 2) In the dialog that pops up above the event click the join button <br/><br/>\"\n +\"<b>How to Leave an Event?</b> <br/>\"+\"1) Click on an Event on the Map <br/> 2) In the dialog that pops up above the event click the leave button\"));\n dialog.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n dialog.setCancelable(false);\n dialog.create().show();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.permission));\n builder.setMessage(getString(R.string.setting_permission));\n builder.setPositiveButton(getString(R.string.go_setting), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "private void jMenuItemTemasAyudaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTemasAyudaActionPerformed\n JOptionPane.showMessageDialog(this, \"Leer informe\",\n this.getTitle(), JOptionPane.INFORMATION_MESSAGE);\n}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == R.id.option_get_place) {\n showCurrentPlace();\n }\n else if (item.getItemId() == R.id.option_author) {\n showAuthorDialog();\n }\n return true;\n }", "public void Skills(View v) {\n TextView txtclose;\n Button btn;\n myDialog.setContentView(R.layout.skills);\n txtclose = (TextView) myDialog.findViewById(R.id.txtclose);//exit the dialog\n txtclose.setText(\"X\");//edit the text in close textbox\n txtclose.setOnClickListener(new View.OnClickListener() {//listener\n @Override\n public void onClick(View v) {\n myDialog.dismiss();//call the popup message\n }\n });\n myDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));//editable in xml\n myDialog.show();//to show\n\n }", "@Override\n public void onClick(View view) {\n PopupMenu popup = new PopupMenu(mCtx, holder.buttonViewOption);\n //inflating menu from xml resource\n popup.inflate(R.menu.option_menu_for_blood_post_notification);\n //adding click listener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.menu1:\n //handle menu1 click\n break;\n case R.id.menu2:\n //handle menu2 click\n break;\n }\n return false;\n }\n });\n //displaying the popup\n popup.show();\n\n }", "public void showLifeCycleDialog() {\n\t\t\tlifeCycleDialogBox = new DialogBox(true);\n\t\t\tlifeCycleDialogBox.setGlassEnabled(true);\n\t\t\tlifeCycleDialogBox.setText(\"Seguimiento del Documento\");\n\n\t\t\t// Vertical Panel\n\t\t\tVerticalPanel vp = new VerticalPanel();\n\t\t\tvp.setSize(\"100%\", \"100%\");\n\t\t\tvp.add(lifeCycleCellTree);\n\t\t\tvp.add(new HTML(\"&nbsp;\"));\n\t\t\tvp.add(lifeCycleCloseButton);\n\n\t\t\t// Scroll Panel\n\t\t\tScrollPanel scrollPanel = new ScrollPanel();\n\t\t\tif (getUiParams().isMobile())\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() + \"px\", Window.getClientHeight() + \"px\");\n\t\t\telse\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() * .4 + \"px\", Window.getClientHeight() * .3 + \"px\");\n\t\t\tscrollPanel.setWidget(vp);\n\t\t\tlifeCycleDialogBox.setWidget(scrollPanel);\n\n\t\t\tDouble d = Window.getClientWidth() * .3;\n\t\t\tif (!getUiParams().isMobile()) \n\t\t\t\tlifeCycleDialogBox.setPopupPosition(d.intValue(), UiTemplate.NORTHSIZE * 3);\n\n\t\t\tlifeCycleDialogBox.show();\n\t\t}", "private void mDialogShow() {\n alertDialog = new AlertDialog.Builder(this).create();\n alertDialog.setTitle(\"CyanMobile Warning!\");\n alertDialog.setMessage(\"Enable Pie Menu App Toggle to use this!\");\n alertDialog.setButton(DialogInterface.BUTTON_POSITIVE,\n getResources().getString(com.android.internal.R.string.ok),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n updateValues();\n return;\n }\n });\n \n alertDialog.show();\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_pop_up, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n super.onCreateOptionsMenu(menu);\n MenuItem helpButton = menu.findItem(R.id.menu1);\n helpButton.setVisible(true);\n return true;\n }", "@Override\n public void onClick(View view) {\n PopupMenu popup = new PopupMenu(context, holder.threeDots);\n popup.inflate(R.menu.popup_menu_options_edit_flashcard);\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.popupDelete:\n\n flashcardActivity.handleDeleteClick(p);\n break;\n\n case R.id.popupEdit:\n\n flashcardActivity.handleRenameClick(p);\n break;\n\n }\n return false;\n }\n });\n popup.show();\n }", "private void createPopupMenu()\r\n\t{\r\n\t\tfinal Camera camera = SrvHal.getCamera();\r\n\t\tfinal PopupMenu menu = new PopupMenu();\r\n\t\tfinal MenuItem setColour = new MenuItem(\"Set colour to selected bin\");\r\n\r\n\t\tsetColour.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tcamera.getDetector().updateColourBinFromCoords();\r\n\t\t\t\tcamera.getDetector().setSampleLock(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenu.add(setColour);\r\n\r\n\t\tfinal Component canvas = this;\r\n\t\tadd(menu);\r\n\t\taddMouseListener(new MouseAdapter()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e)\r\n\t\t\t{\r\n\t\t\t\t// show the context menu when right-click detected within image bounds\r\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON3)\r\n\t\t\t\t{\r\n\t\t\t\t\tint x = e.getX();\r\n\t\t\t\t\tint y = e.getY();\r\n\t\t\t\t\tRectangle bounds = getOffsetBounds();\r\n\t\t\t\t\tif (bounds.contains(x, y))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcamera.getDetector().setSampleLock(true);\r\n\t\t\t\t\t\tmenu.show(canvas, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void showPopup(View v){\n PopupMenu popup = new PopupMenu(this, v);\n popup.setOnMenuItemClickListener(this);\n popup.inflate(R.menu.daftar_penggunaan);\n popup.show();\n }", "@FXML\r\n\tvoid help_btn_clicked(MouseEvent event) {\r\n\t\tDialog<String> dia = new Dialog<>();\r\n\t\tStage stage = (Stage) dia.getDialogPane().getScene().getWindow();\r\n\t\tDialogPane dialogPane = dia.getDialogPane();\r\n\t\tdialogPane.getStylesheets().add(getClass().getResource(\"/client/boundry/dialog.css\").toExternalForm());\r\n\t\tdialogPane.getStyleClass().add(\"dialog\");\r\n\t\tdia.setTitle(\"Help Dialog\");\r\n\t\tdia.setHeaderText(\"Guide:\");\r\n\t\tdia.setGraphic(new ImageView(this.getClass().getResource(\"/icons8-info-48.png\").toString()));\r\n\t\t// Add a custom icon.\r\n\t\tstage.getIcons().add(new Image(this.getClass().getResource(\"/icons8-help-24.png\").toString()));\r\n\t\tdia.getDialogPane().getButtonTypes().addAll(ButtonType.OK);\r\n\t\tdia.setContentText(\r\n\t\t\t\t\"Main Sale Pattern Screen\\nIn this screen you can choose sale from table,add sale, delete and open\\n\"\r\n\t\t\t\t\t\t+ \"for full information, click on specific sale and choose an action, in addition you can click\"\r\n\t\t\t\t\t\t+ \"on \\\"Statistics\\\" for statistic inforamtion\");\r\n\t\tdia.show();\r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (!isEdit) {\r\n\t\t\t\t\txb_popup.showAsDropDown(xbet, 0, 1, xbet.getWidth(),\r\n\t\t\t\t\t\t\tLayoutParams.WRAP_CONTENT);\r\n\t\t\t\t}\r\n\t\t\t}", "private void showPriorityPopUp() {\n PopupMenu popup = new PopupMenu(rootView.getContext(), rootView.findViewById(R.id.img_overflow));\n //Inflating the Popup using xml file\n popup.getMenuInflater().inflate(R.menu.post_priority_menu, popup.getMenu());\n\n //registering popup with OnMenuItemClickListener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n public boolean onMenuItemClick(MenuItem item) {\n Toast.makeText(rootView.getContext(), \"You Clicked : \" + item.getTitle(), Toast.LENGTH_SHORT).show();\n return true;\n }\n });\n\n popup.show();//showing popup menu\n }", "private void jMenuItemControlAsistenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemControlAsistenciaActionPerformed\n JDialogControlAsistencia vca = new JDialogControlAsistencia(this, modal, listaDeportes);\n LOG.info(\"Launching JDialogControlAsistencia...\");\n vca.setLocationRelativeTo(this);\n vca.setVisible(true);\n}", "protected void showPopup() {\r\n if (_component != null) {\r\n JPopupMenu popupMenu = new JPopupMenu();\r\n popupMenu.add(_component);\r\n popupMenu.pack(); \r\n popupMenu.show(this, 0, getHeight());\r\n }\r\n }", "public void show()\n {\n setListSelection(comboBox.getSelectedIndex());\n Point location = getPopupLocation();\n show(comboBox\n //以下x、y坐标修正代码由Jack Jiang增加\n ,\n location.x + popupOffsetX //*~ popupOffsetX是自定属性,用于修改弹出窗的X坐标\n ,\n location.y + popupOffsetY //*~ popupOffsetY是自定属性,用于修改弹出窗的Y坐标\n );\n }", "protected Popup() {}", "private static void showTripleOptionDialog(Context c, int titleID, int messageID, int posButtonID, int neutralButtonID, int negButtonID, OnClickListener posListener, OnClickListener neutralListener, OnClickListener negListener){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(c);\n\t\tbuilder.setTitle(titleID)\n\t\t.setPositiveButton(posButtonID, posListener)\n\t\t.setNeutralButton(neutralButtonID, neutralListener)\n\t\t.setNegativeButton(negButtonID, negListener);\n\t\tif(messageID > -1){\n\t\t\tbuilder.setMessage(messageID);\n\t\t}\n\n\t\tbuilder.create().show();\n\t}", "private void initWayPopup() {\r\n wayMenuItem = new MenuItem[5];\r\n wayMenuItem[0] = new MenuItem(\"Minim path\");\r\n wayMenuItem[1] = new MenuItem(\"Maxim path\");\r\n wayMenuItem[2] = new MenuItem(\"Next path\");\r\n wayMenuItem[3] = new MenuItem(\"Prev path\");\r\n wayMenuItem[4] = new MenuItem(\"Select all\");\r\n\r\n /* Init the popup */\r\n wayPopupMenu = new PopupMenu();\r\n\r\n wayPopupMenu.add(wayMenuItem[0]);\r\n wayPopupMenu.add(wayMenuItem[1]);\r\n wayPopupMenu.addSeparator();\r\n wayPopupMenu.add(wayMenuItem[2]);\r\n wayPopupMenu.add(wayMenuItem[3]);\r\n wayPopupMenu.addSeparator();\r\n wayPopupMenu.add(wayMenuItem[4]);\r\n\r\n wayPopupMenu.addActionListener(this);\r\n\r\n this.add(wayPopupMenu);\r\n }", "public DialogViewListener(JPopupMenu initMenu, JMenuItem initItem) {\r\n super(initMenu, initItem);\r\n }", "private void initOptionsMenu() {\n final Function<Float, Void> changeAlpha = new Function<Float, Void>() {\n @Override\n public Void apply(Float input) {\n skyAlpha = Math.round(input);\n return null;\n }\n };\n\n final Function<Float, Void> changeMaxConfidence = new Function<Float, Void>() {\n @Override\n public Void apply(Float input) {\n options.confidenceThreshold = input;\n return null;\n }\n };\n\n bottomSheet = findViewById(R.id.option_menu);\n bottomSheet.setVisibility(View.VISIBLE);\n bottomSheet\n .withSlider(\"Alpha\", ALPHA_MAX, skyAlpha, changeAlpha, 1f)\n .withSlider(\"Confidence Threshold\", 1, options.confidenceThreshold, changeMaxConfidence);\n }", "public OptionsButtonPanel(JPopupMenu menu)\n\t{\n\t\tsuper();\n\t\tthePanel = this;\n\t\t//this.setBackground(Color.WHITE);\n\t\t\n\t\t//Add a label saying \"options\"\n\t\t//this.add(new JLabel(\"options\"), BorderLayout.CENTER);\n\n\t\tmen = menu;\n\n\t\t\n\t\tif (FACE_RIGHT)\n\t\t{\n\t\t\t//button = new BasicArrowButton(SwingConstants.EAST);\n\t\t\tbutton = new IconButton(\"/icons/advanced_21.png\", \"options\", null, \"options\");\n\t\t\tbutton.setContentAreaFilled(false);\n\t\t\tbutton.setMinimumSize(new Dimension(21, 21));\n\t\t\tbutton.setPreferredSize(new Dimension(21, 21));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbutton = new IconButton(\"/icons/advanced_21.png\", \"options\", null, \"options\");\n\t\t\t//button = new BasicArrowButton(SwingConstants.SOUTH);\n\t\t\tbutton.setContentAreaFilled(false);\n\t\t\tbutton.setMinimumSize(new Dimension(21, 21));\n\t\t\tbutton.setPreferredSize(new Dimension(21, 21));\n\t\t}\n\t\t\n\t\tthis.add(button, BorderLayout.NORTH);\n\t\tActionListener al = new ActionListener()\n\t\t{\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\n\t\t\t\tPoint p = button.getLocationOnScreen();\n\t\t\t\t\n\t\t\t\tif (FACE_RIGHT)\n\t\t\t\t{\n\t\t\t\t\tmen.setLocation((int) p.getX() + button.getWidth(), (int) p.getY());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmen.setLocation((int) p.getX(), (int) p.getY() + + button.getHeight());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmen.setInvoker(thePanel);\n\t\t\t\tmen.setVisible(true);\n\t\t\t}\n\t\t};\n\t\tbutton.addActionListener(al);\n\t}", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(LoginActivity.this);\n builder.setTitle(getString(R.string.dialog_permission_title));\n builder.setMessage(getString(R.string.dialog_permission_message));\n builder.setPositiveButton(getString(R.string.go_to_settings), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(android.R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "@Override\n public void onClick(final View view) {\n PopupMenu popupMenu = new PopupMenu(getBaseContext(), view);\n popupMenu.getMenuInflater().inflate(R.menu.popup_menu,popupMenu.getMenu());\n popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem menuItem) {\n Snackbar.make(view, menuItem.getTitle()+\" is selected\",Snackbar.LENGTH_SHORT).show();\n return true;\n }\n });\n popupMenu.show();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tPopupMenu popup = new PopupMenu(context, v);\n\t\t\t\tMenuInflater inflater = popup.getMenuInflater();\n\t\t\t\tMenu menu = popup.getMenu();\n\n\t\t\t\tinflater.inflate(R.menu.popupmenu, menu);\n\t\t\t\t// popup.inflate(R.menu.popupmenutestmenu);\n\t\t\t\tpopup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean onMenuItemClick(MenuItem item) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tswitch (item.getItemId()) {\n\t\t\t\t\t\tcase R.id.popup_reInfo:\n\t\t\t\t\t\t\tmainAct.ResetInfo(position);\n\t\t\t\t\t\t\tmainAct.UpdateList();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase R.id.popup_upload:\n\t\t\t\t\t\t\tmainAct.addImage(position);\n\t\t\t\t\t\t\tmainAct.UpdateList();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase R.id.popup_del:\n\t\t\t\t\t\t\tmainAct.delete(position);\n\t\t\t\t\t\t\tmainAct.UpdateList();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tpopup.show();\n\t\t\t}", "public void popup(String a){\n pop.setLayout(null);\n ControlAction c = new ControlAction();\n pop.setBounds(420, 320, 460, 160);\n pop.setBorder(new LineBorder(Color.BLACK, 2));\n //condition for showing popup message\n if(a.startsWith(\"1\")){\n mas.setText(\"Selamat Anda Telah Melakukan Peminjaman\");\n nolocker.setText(\"No. Locker Anda Yaitu 17\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(true);\n }else if(a.equals(WARN1)){\n mas.setText(\"Maaf Anda Telah Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.equals(WARN2)){\n mas.setText(\"Maaf Anda Belum Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.contains(\"BUKA\")){\n mas.setText(\"Anda Ingin Mengakhiri Peminjaman ?\");\n yes.setVisible(true);\n String key = a.substring(4);\n yes.setActionCommand(\"YES\"+key);\n no.setVisible(true);\n nolocker.setVisible(false);\n }else if(a.equals(NO)){\n mas.setText(\"Loker Anda Telah Terbuka\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n } \n mas.setFont(new Font(\"arial\", Font.BOLD, 20));\n mas.setOpaque(false);\n mas.setForeground(Color.BLACK);\n Dimension si1 = mas.getPreferredSize();\n mas.setBounds(10, 40, si1.width, si1.height);\n nolocker.setFont(new Font(\"arial\", Font.BOLD, 20));\n nolocker.setOpaque(false);\n nolocker.setForeground(Color.BLACK);\n Dimension si3 = nolocker.getPreferredSize();\n nolocker.setBounds(10, 70, si3.width, si3.height);\n //close button handling\n close.addActionListener(c);\n close.setActionCommand(EXIT);\n Dimension si2 = close.getPreferredSize();\n close.setBounds(420, 10, si2.width, si2.height);\n close.setBorder(BorderFactory.createEmptyBorder());\n close.setContentAreaFilled(false);\n //yes button handling\n yes.addActionListener(c);\n Dimension si4 = yes.getPreferredSize();\n yes.setBounds(100, 100, si4.width, si4.height);\n yes.setBorder(BorderFactory.createEmptyBorder());\n yes.setContentAreaFilled(false);\n //no button handling\n no.addActionListener(c);\n no.setActionCommand(NO);\n Dimension si5 = no.getPreferredSize();\n no.setBounds(250, 100, si5.width, si5.height);\n no.setBorder(BorderFactory.createEmptyBorder());\n no.setContentAreaFilled(false);\n //add to card3 top most layer\n card3.add(pop,6,0);\n }", "protected abstract PopupMenuHelper createActionMenuHelper();", "@Override\n public void onClick(View v) {\n OverflowPopupMenu popupMenu = new OverflowPopupMenu(mContext, v);\n //Inflating the Popup using xml file\n popupMenu.getMenuInflater().inflate(R.menu.overflow_menu_noprint, popupMenu.getMenu());\n //Creating class that extends OnMenuItemClickListener\n PopupListenerBuilder listenerBuilder = null;\n try {\n listenerBuilder = new PopupListenerBuilder(mContext, v, mElement)\n .setClassesForIntent(\n \"com.mcteam.gestapp.Moduli.Amministrazione.PrimaNotaCassa.VisualElimCassaActivity\",\n \"com.mcteam.gestapp.Moduli.Amministrazione.PrimaNotaCassa.NuovoModifCassaActivity\",\n null)\n .setConstForIntent(Constants.NOTA_CASSA)\n .setExtraParamIntent(Constants.VISUAL_ELIMINA, false)\n .setConstActivityResult(Constants.NOTA_DELETE, Constants.NOTA_EDIT, null);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n //registering popup with OnMenuItemClickListener\n popupMenu.setOnMenuItemClickListener(listenerBuilder);\n //Forza le icone a mostrarsi\n popupMenu.forceIconToShow();\n //Mostra il Popup\n popupMenu.show();\n\n /*PopupMenu popupMenu = new PopupMenu(mContext, v){\n\n @Override\n public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item){\n switch (item.getItemId()){\n case R.id.menu_action_elimina:\n Intent eliminaIntent = new Intent(mContext, VisualElimCassaActivity.class);\n eliminaIntent.putExtra(Constants.NOTA_CASSA, mElement);\n eliminaIntent.putExtra(Constants.VISUAL_ELIMINA, false);\n //eliminaIntent.putExtra(\"actualUser\", mUser);\n ((Activity)mContext).startActivityForResult(eliminaIntent, Constants.NOTA_DELETE);\n return true;\n case R.id.menu_action_modifica:\n Intent modificaIntent = new Intent(mContext, NuovoModifCassaActivity.class);\n modificaIntent.putExtra(Constants.NOTA_CASSA, mElement);\n //modificaIntent.putExtra(\"actualUser\", mUser);\n ((Activity)mContext).startActivityForResult(modificaIntent, Constants.NOTA_EDIT);\n return true;\n default:\n return super.onMenuItemSelected(menu, item);\n }\n\n }\n };\n popupMenu.inflate(R.menu.overflow_menu_noprint);\n\n //Force icons to show\n Object menuHelper;\n Class[] argTypes;\n try {\n Field fMenuHelper = PopupMenu.class.getDeclaredField(\"mPopup\");\n fMenuHelper.setAccessible(true);\n menuHelper = fMenuHelper.get(popupMenu);\n argTypes = new Class[] {boolean.class};\n menuHelper.getClass().getDeclaredMethod(\"setForceShowIcon\", argTypes).invoke(menuHelper, true);\n\n } catch (Exception e) {\n e.printStackTrace();\n popupMenu.show();\n return;\n }\n popupMenu.show();*/\n }", "@Override\n public Dialog onCreateDialog(int id) {\n switch (id) {\n\n case QUALIFICATION_ALERTDIALOG:\n\n AlertDialog.Builder builder1 = new AlertDialog.Builder(UpdateProfileActivity.this)\n .setTitle(\"Job Type\")\n .setSingleChoiceItems(qualificationList, -1, new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n // Toast.makeText(getApplicationContext(),\"The selected\" + experienceList[which], Toast.LENGTH_LONG).show();\n etQualification.setText(qualificationList[which]);\n //dismissing the dialog when the user makes a selection.\n dialog.dismiss();\n }\n });\n AlertDialog alertdialog1 = builder1.create();\n return alertdialog1;\n\n\n }\n return null;\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_detail_dialog, menu);\n return true;\n }", "public void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n Add_Event.this.openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n }", "public void showNoticeDialog() {\n DialogFragment dialog = new OptionDialog();\n dialog.show(getSupportFragmentManager(), \"NoticeDialogFragment\");\n }", "public static int showInformationDialog(Object[] options, String title, String message) {\n\t\treturn 0;\n\t}", "private void showAccessChooserDialog(){\n if (getFragmentManager().findFragmentByTag(ACCESS_RADIAL_FRAGMENT_TAG) != null){\n return;\n }\n AccessRadialDialogFragment fragment = AccessRadialDialogFragment.createFragment(getMainItem());\n fragment.show(getFragmentManager(), ACCESS_RADIAL_FRAGMENT_TAG);\n }", "protected void alertBuilder(){\n SettingsDialogFragment settingsDialogFragment = new SettingsDialogFragment();\n settingsDialogFragment.show(getSupportFragmentManager(), \"Settings\");\n }", "private void showMapTypeSelectorDialog() {\n final String fDialogTitle = getActivity().getString(R.string.select_map);\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setTitle(fDialogTitle);\n\n // Find the current map type to pre-check the item representing the current state.\n int checkItem = map.getMapType() - 1;\n\n // Add an OnClickListener to the dialog, so that the selection will be handled.\n builder.setSingleChoiceItems(\n MAP_TYPE_ITEMS,\n checkItem,\n new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int item) {\n // Locally create a finalised object.\n Log.d(\"DIALOG\", String.valueOf(item));\n // Perform an action depending on which item was selected.\n switch (item) {\n case 0:\n map.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n break;\n case 1:\n map.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n break;\n case 2:\n map.setMapType(GoogleMap.MAP_TYPE_TERRAIN);\n break;\n case 3:\n map.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n break;\n default:\n break;\n }\n dialog.dismiss();\n }\n }\n );\n\n // Build the dialog and show it.\n AlertDialog fMapTypeDialog = builder.create();\n fMapTypeDialog.setCanceledOnTouchOutside(true);\n fMapTypeDialog.show();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(\n\t\t\t\t\t\tSettingActivity.this);\n\t\t\t\tbuilder.setTitle(\"归属地查询风格\");\n\t\t\t\tbuilder.setSingleChoiceItems(MGApplication.bgNames,\n\t\t\t\t\t\tsharedPreferences.getInt(\n\t\t\t\t\t\t\t\tMobileGuard.SHOW_LOCATION_WHICHSTYLE, 0),\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tEditor editor = sharedPreferences.edit();\n\t\t\t\t\t\t\t\teditor.putInt(\n\t\t\t\t\t\t\t\t\t\tMobileGuard.SHOW_LOCATION_WHICHSTYLE,\n\t\t\t\t\t\t\t\t\t\twhich);\n\t\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\tbuilder.show();\n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n ActivityOptionsService activityOptionsService = new ActivityOptionsService();\n activityOptionsService.openActivity(this ,id);\n return super.onOptionsItemSelected(item);\n }", "private Dialog recreateDialog() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(OptionActivity.this);\n builder.setMessage(\"Do you want to change your profile?\")\n .setPositiveButton(\"Yah!\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent intent = new Intent(OptionActivity.this, amountscreen.class);\n startActivity(intent);\n }\n })\n .setNegativeButton(\"Nope\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }" ]
[ "0.74622524", "0.7432319", "0.7313316", "0.7174563", "0.71740425", "0.7022121", "0.6731902", "0.6729418", "0.6726078", "0.6678582", "0.6667474", "0.6666419", "0.6625947", "0.6621639", "0.6606392", "0.66018164", "0.6596677", "0.6577927", "0.6568748", "0.6556683", "0.6537763", "0.6529771", "0.64747953", "0.645139", "0.6437453", "0.64228374", "0.64174443", "0.6413392", "0.6403086", "0.6394501", "0.6366733", "0.63618165", "0.6356911", "0.63558453", "0.6339728", "0.6319471", "0.6310671", "0.6307003", "0.63038164", "0.63000345", "0.6278956", "0.627233", "0.62642884", "0.62357193", "0.6235641", "0.6230872", "0.6219937", "0.62083435", "0.6203734", "0.62019527", "0.61908877", "0.6188803", "0.61872035", "0.61824447", "0.61737084", "0.6157666", "0.6155625", "0.6153875", "0.61467564", "0.61426896", "0.61413306", "0.6133447", "0.6133177", "0.6124576", "0.61244226", "0.61190176", "0.6111085", "0.61109287", "0.6110222", "0.61042696", "0.609876", "0.60935915", "0.60889506", "0.6086853", "0.6084262", "0.60815847", "0.60801214", "0.6071724", "0.6064132", "0.60612935", "0.60544556", "0.6051092", "0.60488397", "0.6047909", "0.604778", "0.60469127", "0.60457027", "0.6043094", "0.60359555", "0.60354424", "0.6035094", "0.60266787", "0.6023938", "0.6020833", "0.6012535", "0.6012043", "0.60090345", "0.6004688", "0.6002072", "0.60017425" ]
0.60597664
80
Method to change activity in Options Menu Delete all fragments after changing activity.
private void changeActivity(){ FragmentManager fm = getSupportFragmentManager(); for(int i = 0; i < fm.getBackStackEntryCount(); ++i) { fm.popBackStack(); } Intent i = new Intent(this, SecondActivity.class); i.putExtra("team", teamname); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void onPageSelected(int position) {\n invalidateOptionsMenu();\r\n }", "@Override\n public void onPageSelected(int position) {\n invalidateOptionsMenu();\n }", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tgetActivity().getActionBar().removeAllTabs();\n\t\tmyContext.getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n Fragment fragment = null;\n switch (id) {\n case R.id.action_resultados:\n //replaceFragment(fragment);\n break;\n case R.id.action_creditos:\n if(session.isLoggedIn()){\n fragment = new CreditosFragment();\n callPagoDialog();\n }else{\n fragment = new AuthFragment();\n }\n\n break;\n case R.id.action_ganadores:\n //replaceFragment(fragment);\n break;\n\n }\n replaceFragment(fragment);\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.buttonListView:\n showActivityEntries();\n return true;\n case R.id.buttonManualAdd:\n showActivityAdd();\n return true;\n case R.id.action_settings:\n \tgetFragmentManager().beginTransaction()\n .replace(android.R.id.content, new SettingsFragment())\n .addToBackStack(null)\n .commit();\n \treturn true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n\n switch (item.getItemId()) {\n// case android.R.id.home:\n// this.finish();\n// return true;\n case R.id.action_add_cancel:\n this.finish();\n return true;\n// case R.id.action_add_previous_transit:\n// SelectAgencyFragment prevTransit = new SelectAgencyFragment();\n// ft.replace(R.id.fragment_add, prevTransit);\n// ft.addToBackStack(null);\n// ft.commit();\n// return true;\n// case R.id.action_add_previous_route:\n// SelectRouteFragment prevRoute = new SelectRouteFragment();\n// ft.replace(R.id.fragment_add, prevRoute);\n// ft.addToBackStack(null);\n// ft.commit();\n// return true;\n// case R.id.action_add_previous_dir:\n// SelectDirectionFragment prevDir = new SelectDirectionFragment();\n// ft.replace(R.id.fragment_add, prevDir);\n// ft.addToBackStack(null);\n// ft.commit();\n// return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.toNewTask:\n Intent i = new Intent(getApplicationContext(), MakeTask.class);\n startActivityForResult(i, 1);\n return true;\n case R.id.resetAll:\n DBHandler db = new DBHandler(this);\n db.open();\n ArrayList<Task> tasks = db.getTasks();\n for (int x=0;x<tasks.size();x++) {\n Task setCompFalse = tasks.get(x);\n setCompFalse.complete = \"false\";\n db.deleteTaskByName(tasks.get(x).name);\n db.addTask(setCompFalse);\n Intent resetActivity = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(resetActivity);\n }\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case R.id.action_delete_session:\n DialogFragment dialog = new DeleteSessionDialog();\n dialog.show(getSupportFragmentManager(), SESSION_DELETE);\n break;\n case R.id.action_settings:\n Intent intent = new Intent(getApplicationContext(), SettingsActivity.class);\n startActivity(intent);\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onDestroyActionMode(ActionMode mode) {\n ((MainActivity) getActivity()).getSupportActionBar().show();\n mActionMode = null;\n getPresenter().deselectItems();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n /*if (id == R.id.action_settings) {\n return true;\n }*/\n\n switch (item.getItemId()) {\n\n // Id correspondente ao botão Up/Home da actionbar\n case android.R.id.home:\n\n Intent intent2 = new Intent();\n intent2.putExtra(\"numpedido\", numpedido);\n setResult(1, intent2);\n //intent.putExtra(\"codigo\", codigo);\n //startActivity(intent);\n finish();\n\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n case R.id.action_settings:\n if(FU_ConsisteItem()) {\n if(operacao.equals(\"I\")) {\n if (FU_IncluirItemPedido()) {\n MensagemUtil.addMsg(ManutencaoProdutoPedido.this, \"Produto incluido com sucesso!\");\n Intent intent = new Intent();\n intent.putExtra(\"numpedido\", numpedido);\n setResult(1, intent);\n //intent.putExtra(\"codigo\", codigo);\n //startActivity(intent);\n finish();\n //Intent intent = new Intent(ManutencaoProdutoPedido.this, AdicionarProdutosCustomizada.class);\n //intent.putExtra(\"numpedido\", numpedido);\n //startActivity(intent);\n }\n }else{\n\n if(FU_AlteraItemPedido()){\n MensagemUtil.addMsg(ManutencaoProdutoPedido.this, \"Produto alterado com sucesso!\");\n Intent intent = new Intent();\n intent.putExtra(\"numpedido\", numpedido);\n setResult(1, intent);\n //intent.putExtra(\"codigo\", codigo);\n //startActivity(intent);\n finish();\n }\n }\n }\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_add_buddy) {\n Intent intent = new Intent(MainActivity.this, DeviceSearchActivity.class);\n startActivity(intent);\n return true;\n }else if(id == R.id.action_logout){\n ((MainApplication)getApplication()).logout();\n\n deviceFragment.notifyDataSetChanged(null, null);\n\n fab_login.setVisibility(View.VISIBLE);\n show_login_name_view.setText(\"未登录\");\n\n Intent intent = new Intent(this, PushService.class);\n stopService(intent);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t\t Intent reset=new Intent(getActivity(),Listspace.class);\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t \t\t\t\t\t\n\t\t\t\t\t\t\t\t\t startActivity(reset);\n\t\t\t\t\t\t\t\t\t getActivity().finish();\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_llanterna) {\n // Begin the transaction\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n // Replace the contents of the container with the new fragment\n ft.replace(R.id.placeholder, new LlanternaFragment());\n // Complete the changes added above\n ft.commit();\n\n return true;\n }\n\n if (id == R.id.action_captura) {\n // Begin the transaction\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n // Replace the contents of the container with the new fragment\n //ft.replace(R.id.placeholder, new LlanternaFragment());\n ft.replace(R.id.placeholder, new CapturaFragment());\n // Complete the changes added above\n ft.commit();\n\n return true;\n }\n\n if (id == R.id.action_fotograma) {\n // Begin the transaction\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n // Replace the contents of the container with the new fragment\n //ft.replace(R.id.placeholder, new LlanternaFragment());\n ft.replace(R.id.placeholder, new FotogramaFragment());\n // Complete the changes added above\n ft.commit();\n\n return true;\n }\n if (id == R.id.action_animacio) {\n // Begin the transaction\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n // Replace the contents of the container with the new fragment\n //ft.replace(R.id.placeholder, new LlanternaFragment());\n ft.replace(R.id.placeholder, new AnimacioFragment());\n // Complete the changes added above\n ft.commit();\n\n return true;\n }\n\n if (id == R.id.action_musica) {\n // Begin the transaction\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n // Replace the contents of the container with the new fragment\n //ft.replace(R.id.placeholder, new LlanternaFragment());\n ft.replace(R.id.placeholder, new MusicaFragment());\n // Complete the changes added above\n ft.commit();\n\n return true;\n }\n\n if (id == R.id.action_video) {\n // Begin the transaction\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n // Replace the contents of the container with the new fragment\n //ft.replace(R.id.placeholder, new LlanternaFragment());\n ft.replace(R.id.placeholder, new VideoFragment());\n // Complete the changes added above\n ft.commit();\n\n return true;\n }\n if (id == R.id.action_gps) {\n // Begin the transaction\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n // Replace the contents of the container with the new fragment\n //ft.replace(R.id.placeholder, new MapsActivity());\n ft.replace(R.id.placeholder, new gpsFragment());\n // Complete the changes added above\n ft.commit();\n\n return true;\n }\n return super.onOptionsItemSelected( item );\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t Intent reset=new Intent(getActivity(),Listspace.class);\n\t\t \n\t\t \t\t\t\t\t\n\t\t startActivity(reset);\n\t\t getActivity().finish();\n\t\t \n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case R.id.salvarContato:\n salvar();\n return true;\n case R.id.delContato:\n mFireBaseRef.child(firebaseID).removeValue();\n Toast.makeText(getApplicationContext(),\"Removido com sucesso\",Toast.LENGTH_SHORT).show();\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tif (CommonUtils.getCurrentChildMenuActivity().equals(\"grzl\")) {\r\n\t\t\tCommonUtils.setCurrentChildMenuActivity(\"\");\r\n\t\t}\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n //Menu Button \"return\".\n if(item.getItemId()==R.id.returnBtn){\n Intent startIntent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(startIntent);\n\n }else if(item.getItemId()==R.id.clearAll){\n\n //Clear database table.\n catdbHandler.clearTable();\n\n //Update listItems array with new database info\n catdbHandler.databaseToArrayIncludingID(listItems);\n\n theAdapter.notifyDataSetChanged();\n catInput.setText(\"\");\n closeKeyboard();\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (item.getItemId()) {\n case android.R.id.home:\n fragManager = getFragmentManager();\n if (fragManager.getBackStackEntryCount() > 0) {\n fragManager.popBackStack();\n }\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n activityPosition++;\n Intent i = new Intent(this, MyPreferencesActivity.class);\n startActivity(i);\n return true;\n }else\n if (id == R.id.logout_menu) {\n SharedPreferencesManage.getInstance().logout();\n try {\n SharedPreferencesManage.getInstance().deleteToken(URLs.URL_DELETE_TOKEN+\"?id=\"+user_id);\n } catch (Exception e) {\n Log.d(TAG, \"onOptionsItemSelected: URL_DELETE_TOKEN fail\"); e.printStackTrace(); }\n if(!SharedPreferencesManage.getInstance().isLoggedIn()){\n continueUserLog();//exit this class and start other activity\n \n }\n return true;\n }else\n if (id == R.id.Edit_info) {\n activityPosition++;\n EditInfoFragment fragment=new EditInfoFragment();\n android.support.v4.app.FragmentTransaction fragmentTransaction=\n getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.fragment_container,fragment);\n fragmentTransaction.commit();\n }else\n// Log.d(TAG, \"onOptionsItemSelected: Should remove the set alarm\");\n // Intent notifyIntent = new Intent(this, MyAlarmReceiver.class);\n\n // PendingIntent pendingIntent = PendingIntent.getBroadcast\n // (getBaseContext(), 9562094, notifyIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n// AlarmManager alarmManager = (AlarmManager) getBaseContext().getSystemService(Context.ALARM_SERVICE);\n// alarmManager.set(AlarmManager.RTC_WAKEUP, (System.currentTimeMillis() + 1000 * 5),\n// pendingIntent);\n// Toast.makeText(this, \"Alarm added \", Toast.LENGTH_SHORT).show();\n// Log.d(TAG, \"onNavigationItemSelected: time\" + (System.currentTimeMillis()));\n// if(alarmManager!=null){\n// alarmManager.cancel(pendingIntent);\n // pendingIntent.cancel();\n Log.d(TAG, \"onNavigationItemSelected: Alarm canceled\");\n// }\n\n if (id == R.id.statistic) {\n\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n //stopActivityTask(); // finish() here.\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.DeleteAll) {\n db.deleteEmployee();\n\n return true;\n }\n if (id == R.id.Search) {\n Intent intent=new Intent(this, Search.class);\n startActivity(intent);\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id=item.getItemId();\n\t\tif(id==R.id.menu_settings){\n\t\t\tSqliteUtils su=new SqliteUtils(this);\n\t\t\tSQLiteDatabase db=su.getWritableDatabase();\n\t\t\tdb.execSQL(\"drop table citylist\");\n\t\t\tsu.onCreate(db);\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_logout) {\n prefrenceEdit.clear();\n prefrenceEdit.commit();\n mIntent=new Intent(this,MainActivity.class);\n mIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(mIntent);\n finish();\n return true;\n }else if(id==R.id.action_file){\n mIntent=new Intent(this,NewsActivity.class);\n startActivity(mIntent);\n\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n Intent intent;\n //noinspection SimplifiableIfStatement\n switch (id) {\n case R.id.log_out:\n SharedUtil.clearTeam(ctx);\n intent = new Intent(MainPagerActivity.this, SignActivity.class);\n startActivity(intent);\n finish();\n return true;\n case R.id.about_us:\n intent = new Intent(MainPagerActivity.this, AboutActivity.class);\n startActivity(intent);\n return true;\n /*case R.id.setting:\n intent = new Intent(MainPagerActivity.this, SettingsActivity.class);\n startActivity(intent);\n break;*/\n }\n /* switch (id) {\n case R.id.add_member:\n break;\n case R.id.log_out:\n break;\n default:\n\n };*/\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_signoutchild) {\n\n mAuth.signOut();\n stopService(new Intent(this, trackingservice.class));\n sharedpreferences.edit().clear();\n Intent i = new Intent(ChildLoction.this, MainActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n\n ChildLoction.this.finish();\n\n\n return true;\n }else if(id==R.id.action_messageshow){\n xxxxxx=true;\n Fragment myObj = new messagesFragment();\n getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.map, myObj)\n .addToBackStack(null)\n .commit();\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if(item.getItemId() == R.id.calinsert){ //if user chooses to insert an activity\n Intent intent = new Intent(this, Calendar.class); //leads to calendar page\n startActivity(intent);\n return true;\n }\n else if(item.getItemId() == R.id.logout_menu){ //user chooses to log out\n AuthUI.getInstance()\n .signOut(this) //sign out\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n public void onComplete(@NonNull Task<Void> task) {\n Intent intent = new Intent(getBaseContext(), HomePage.class); //goes back to the home page\n startActivity(intent);\n }\n });\n FirebaseUtil.detachListener(); //detaches the listener so that it doesn't have to keep checking for updates from database\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id == R.id.action_refresh) {\n Fragment contact = adapter.getItem(2);\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.detach(contact);\n ft.attach(contact);\n ft.commit();\n Toast.makeText(MainActivity.this, \"Refresh\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Toast.makeText(MainActivity.this, \"Coming Soon\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n if (getSupportFragmentManager().getBackStackEntryCount() > 0) {\n getSupportFragmentManager().popBackStack();\n } else finish(); // close this activity and return to preview activity (if there is any)\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n \tswitch (item.getItemId()) {\r\n case R.id.menu_clear:\r\n getContentResolver().delete(BroadcastSchema.BroadcastTable.CONTENT_URI, null, null);\r\n \tbreak;\r\n case R.id.menu_exit:\r\n \tfinish();\r\n \tbreak;\r\n \tdefault:\r\n \t\treturn super.onOptionsItemSelected(item);\r\n \t}\r\n \t\r\n \treturn true;\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n final DbHelpter db = new DbHelpter(this);\n\n if (id == R.id.action_your) {\n Intent maintovo = new Intent(MainActivity.this, Fav.class);\n startActivity(maintovo);\n return true;\n }\n\n if (id == R.id.action_toeic) {\n Intent maintovo = new Intent(MainActivity.this, Toeic.class);\n startActivity(maintovo);\n return true;\n }\n\n if (id == R.id.action_toelf) {\n Intent maintovo = new Intent(MainActivity.this, Toefl.class);\n startActivity(maintovo);\n return true;\n }\n\n if (id == R.id.action_ielts) {\n Intent maintovo = new Intent(MainActivity.this, Ielts.class);\n startActivity(maintovo);\n return true;\n }\n if (id == R.id.action_del) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Thông báo\");\n builder.setMessage(\"Bạn có muốn xóa toàn bộ lịch sử dịch không ?\" +\n \"\\nĐiều này là không thể hoàn tác.\");\n builder.setCancelable(false);\n builder.setPositiveButton(\"Không\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n builder.setNegativeButton(\"Có\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n db.delallhis();\n Toast.makeText(MainActivity.this, \"Đã xóa toàn bộ lịch sử dịch.\", Toast.LENGTH_LONG).show();\n recreate();\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if ( id == android.R.id.home ) {\n finish();\n return true;\n }else if (item.getOrder() == 1){\n inflateFragment(R.id.frame_layout_detail,false);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n finish();\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n this.finish();\r\n return true;\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_eliminar) {\n Toast.makeText(this,\"Ha pulsado 'Darte de baja'\",Toast.LENGTH_SHORT).show();\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.dialog_message)\n .setTitle(R.string.dialog_title);\n\n\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n GestorServer gs = new GestorServer(MapsActivity.this);\n gs.eliminarUsuario();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n Toast.makeText(MapsActivity.this,\"Ha cancelado la operación\", Toast.LENGTH_SHORT).show();\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n return true;\n } if (id == R.id.action_salir){\n Toast.makeText(this,\"Ha pulsado 'Salir de la App'\",Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n\n\n return true;\n\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_players) {\n Intent intent = new Intent(MainActivity.this, players.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n return true;\n } else if (id == R.id.action_games) {\n Intent intent = new Intent(MainActivity.this, games.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case R.id.action_settings:{\n Intent intent = new Intent(this, AppPreferences.class);\n startActivity(intent);\n return true;\n }\n case R.id.action_about:\n // About option clicked.\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n /*\n else if (id == R.id.action_add_categories)\n {\n Intent intent = new Intent(this, NoteDetailActivity.class);\n intent.putExtra(MainActivity.NOTE_FRAGMENT_TO_LOAD_EXTRA, fragmentToLaunch.CREATE);\n startActivity(intent);\n return true;\n }*/\n }", "void goToSettingsTab(FragmentActivity activity);", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(final MenuItem item) {\n switch (item.getItemId()) {\n case R.id.settings:\n startActivity(new Intent(this, Preferences.class));\n return true;\n case R.id.sign_out:\n signOut();\n googlePlayGamesViewFlipper.setDisplayedChild(1);\n return true;\n case R.id.about:\n final AboutDialogFragment aboutDialogFragment = new AboutDialogFragment();\n aboutDialogFragment.show(getFragmentManager(), \"about\");\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.item1:\n finish();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_new_p2p_topic:\n Log.d(TAG, \"Start new p2p topic\");\n ((ContactsActivity)getActivity()).selectTab(ContactsFragment.TAB_CONTACTS);\n return true;\n\n case R.id.action_new_grp_topic:\n Log.d(TAG, \"Launch new group topic\");\n Intent intent = new Intent(getActivity(), CreateGroupActivity.class);\n // intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\n startActivity(intent);\n return true;\n\n case R.id.action_add_by_id:\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder\n .setTitle(R.string.action_start_by_id)\n .setView(R.layout.dialog_add_by_id)\n .setCancelable(true)\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n TextView editor = ((AlertDialog) dialog).findViewById(R.id.editId);\n if (editor != null) {\n final Activity activity = getActivity();\n String id = editor.getText().toString();\n if (!TextUtils.isEmpty(id)) {\n Intent it = new Intent(activity, MessageActivity.class);\n it.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n it.putExtra(\"topic\", id);\n startActivity(it);\n } else {\n Toast.makeText(activity, R.string.failed_empty_id,\n Toast.LENGTH_SHORT).show();\n }\n }\n\n }\n })\n .setNegativeButton(android.R.string.cancel, null)\n .show();\n return true;\n\n case R.id.action_settings:\n ((ContactsActivity)getActivity()).showAccountInfoFragment();\n return true;\n\n case R.id.action_about:\n DialogFragment about = new AboutDialogFragment();\n about.show(getFragmentManager(), \"about\");\n return true;\n\n case R.id.action_offline:\n try {\n Cache.getTinode().reconnectNow();\n } catch (IOException ex) {\n Log.d(TAG, \"Reconnect failure\", ex);\n String cause = ex.getCause().getMessage();\n Activity activity = getActivity();\n Toast.makeText(activity, activity.getString(R.string.error_connection_failed) + cause,\n Toast.LENGTH_SHORT).show();\n }\n break;\n }\n return false;\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\r\n\t\tif(android.R.id.home == id)\r\n \t{ \t\r\n \t\tstartActivityAfterCleanup(AgregarUser.class);\r\n return true;\r\n \t}\r\n\t\tif (id == R.id.action_new) {\r\n\t\t\tguardar();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.reset) {\n ((Button) findViewById(R.id.faces)).setText(\"6\");\n ((Button) findViewById(R.id.dices)).setText(\"2\");\n vista.removeAllViews();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Intent i = new Intent(getApplicationContext(), AuthentificationActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);// clear back stack\n startActivity(i);\n overridePendingTransition(R.anim.right_in, R.anim.left_out);\n finish();\n return true;\n }\n\n //if(id == R.id.action_search){\n //Toast.makeText(getApplicationContext(), \"Search action is selected!\", Toast.LENGTH_SHORT).show();\n //return true;\n //}\n\n return super.onOptionsItemSelected(item);\n }", "private void refreshSettings(FragmentActivity activity) {\n activity.finish();\n activity.overridePendingTransition(0, 0);\n getContext().startActivity(activity.getIntent());\n activity.overridePendingTransition(0, 0);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n DialogFragment newFragment;\n switch (id) {\n case R.id.action_move:\n if (selected != -1) {\n MoveCategoryDialogFragment newDialogFragment = new MoveCategoryDialogFragment();\n newDialogFragment.setSelected(selected);\n newDialogFragment.show(getSupportFragmentManager(), \"Move category\");\n selected = -1;\n } else {\n CharSequence text = \"Please first select transaction!\";\n Toast toast = Toast.makeText(getApplicationContext(), text, Toast.LENGTH_LONG);\n toast.show();\n }\n return true;\n case R.id.action_change_rules:\n newFragment = new ChangeRuleDialogFragment();\n newFragment.show(getSupportFragmentManager(), \"Change category rule\");\n return true;\n case R.id.action_filter:\n start = null;\n end = null;\n Intent intent = new Intent(this, FilterActivity.class);\n DatePickerFragment.setIntent(intent);\n newFragment = new DatePickerFragment();\n newFragment.show(getSupportFragmentManager(), \"datePicker\");\n newFragment = new DatePickerFragment();\n newFragment.show(getSupportFragmentManager(), \"datePicker\");\n return true;\n case R.id.action_settings:\n // TODO:\n return true;\n default:\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_cadastrar) {\n startActivity(new Intent(MainActivity.this, CadastroUsuario.class));\n finish();\n\n }else if (id == R.id.action_sair){\n mAuth.signOut();\n if (mAuth.getCurrentUser() == null) {\n Intent it = new Intent(MainActivity.this, MainActivity.class);\n startActivity(it);\n finish();\n }\n }else if (id == R.id.action_vinte_mais){\n\n carregarVinteMais();\n\n }else if (id == R.id.action_catalogo){\n startActivity(new Intent(MainActivity.this, Catalogo.class));\n finish();\n }else if (id == R.id.action_acaoVigente){\n startActivity(new Intent(MainActivity.this, AcoesVigentes.class));\n\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n\n //noinspection SimplifiableIfStatement\n /* if (id == R.id.action_settings) {\n return true;\n }*/\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onCreateActionMode(ActionMode mode, Menu menu) {\n // Inflate a menu resource providing context menu items\n ((MainActivity) getActivity()).getSupportActionBar().hide();\n MenuInflater inflater = mode.getMenuInflater();\n inflater.inflate(R.menu.menu_delete, menu);\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n }\n\n //int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n //if (id == R.id.action_settings) {\n // return true;\n //} else if (id == R.id.home) {\n // finish();\n // }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n Intent intent;\n switch (id) {\n case android.R.id.home:\n intent = new Intent(HabitShowActivity.this, HabitIndexActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n return true;\n\n case R.id.action_edit:\n intent = new Intent(this, HabitEditActivity.class);\n intent.putExtra(HabitIndexActivity.HABIT_ID, habit.getId().intValue());\n startActivity(intent);\n return true;\n\n case R.id.action_delete:\n new AlertDialog.Builder(this)\n .setMessage(\"Delete \\\"\" + habit.getName() + \"\\\"?\")\n .setCancelable(true)\n .setPositiveButton(\"Delete\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n controller.deleteHabit(habit.getId());\n\n String message = \"\\\"\" + habit.getName() + \"\\\" deleted.\";\n Toast.makeText(HabitShowActivity.this, message, Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(HabitShowActivity.this, HabitIndexActivity.class);\n intent.putExtra(HabitIndexActivity.HABIT_ID, habit.getId().intValue());\n startActivity(intent);\n }\n })\n .setNegativeButton(\"Cancel\", null)\n .show();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n\r\n case MENU_CLEAR_ID:\r\n editText1.setText(\"\");\r\n editText2.setText(\"\");\r\n textView.setText(\"\");\r\n break;\r\n\r\n case MENU_QIET_ID:\r\n finish();\r\n break;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if(id==android.R.id.home)\n {\n quitActivity();\n return true;\n }\n if (id == R.id.action_settings) {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.list:\n final FragmentTransaction ft = getFragmentManager().beginTransaction();\n ft.replace(R.id.mainFragment, new SearchFragment(), \"\");\n ft.commit();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home: \n \t Intent homeIntent = new Intent(this, MenuActivity.class);\n homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent); \n break; \n case R.id.action_cancel:\n Intent homeIntent2 = new Intent(this, MenuActivity.class);\n homeIntent2.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent2); \n \t break;\n default:\n return super.onOptionsItemSelected(item);\n }\n return true;\n }", "public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n\r\n if(id == android.R.id.home) {\r\n this.finish();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public void onClick(View view, int position) {\n\n\n Intent intent;\n switch (position) {\n\n case 0:\n intent = new Intent(getActivity(), AboutPage.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n getActivity().startActivity(intent);\n break;\n case 1:\n intent = new Intent(getActivity(), Help.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n getActivity().startActivity(intent);\n break;\n\n }\n\n\n\n\n\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.profilemm1) {\n\n\n Intent intent = new Intent(MainActivity.this, UserPofile.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n\n\n }\n\n if(id == R.id.cart){\n\n Intent intent = new Intent(MainActivity.this, MyCart.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n mDrawer.openDrawer(GravityCompat.START);\n return true;\n case R.id.help:\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, new SettingsFragment()).commit();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.logOutLink:\n Intent logOut = new Intent(PatientOptionScreen.this, HomeScreen.class);\n logOut.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(logOut);\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n DatabaseHandler db;\n\n //noinspection SimplifiableIfStatement\n switch (id) {\n case R.id.menu_messages:\n startActivity(new Intent(this, MessagesActivity.class));\n return true;\n case R.id.menu_events:\n startActivity(new Intent(this, EventsActivity.class));\n return true;\n case R.id.menu_shifts:\n startActivity(new Intent(this, ShiftActivity.class));\n return true;\n case R.id.menu_sync:\n db = new DatabaseHandler(this);\n db.clearDatabase();\n loadData(false);\n return true;\n case R.id.menu_logout:\n AlertDialog d = new AlertDialog.Builder(this)\n .setTitle(\"Logout\")\n .setMessage(\"Are you sure?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n DatabaseHandler db = new DatabaseHandler(OverviewActivity.this);\n db.clearDatabase();\n\n setResult(PassionAttendance.ACTION_LOGOUT);\n finish();\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n }\n })\n .show();\n\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tswitch(id){\n\t\t\tcase R.id.menu_back:\n\t\t\t\tfinish();\n\t\t\t\tgotoHome();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase R.id.menu_delete:\n\t\t\t\tconfirmDelete();\n\t\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n ActivityOptionsService activityOptionsService = new ActivityOptionsService();\n activityOptionsService.openActivity(this ,id);\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t MainService.allActivity.remove(this);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n // action with ID action_refresh was selected\n case R.id.action_refresh:\n FavouritesFragment fav = mSectionsPagerAdapter.currentFavFragment;\n Toast.makeText(fav.getContext(), \"Refresh selected\", Toast.LENGTH_SHORT)\n .show();\n fav.getAdapter().changeList(dbHelper.getAllFavourites());\n break;\n // action with ID action_settings was selected\n case R.id.action_settings:\n Toast.makeText(this, \"Settings selected\", Toast.LENGTH_SHORT)\n .show();\n break;\n default:\n break;\n }\n\n return true;\n\n}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n //select back button\n finish();\n Intent intent2 = new Intent(this, MainActivity.class);\n intent2.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n this.startActivity(intent2);\n overridePendingTransition(0, 0); // 액티비티 전환 애니메이션 제거\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "public void onDestroy() {\n if (getIntent() != null && getIntent().getBooleanExtra(Constants.EXTRA_FROM_MAINACTIVITY, false)) {\n MainActivity.gotoMainActivity(this);\n }\n super.onDestroy();\n }", "@Override\n public boolean onOptionsItemSelected (MenuItem item){\n final Context context=this;\n switch(item.getItemId()){\n\n // Intent intent1 = new Intent(context, visalle.class);\n //startActivity(intent1);\n }\n\n //noinspection SimplifiableIfStatement\n /*if (id == R.id.action_settings) {\n return true;\n }*/\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_userProfile) {\n Intent intent = new Intent(this, UserProfile.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n return true;\n }\n if (id == R.id.action_mealPlan) {\n Intent intent = new Intent(this, UpcomingPlans.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n return true;\n }\n if (id == R.id.action_recipe) {\n Intent intent = new Intent(this, Recipes.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n return true;\n }\n if (id == R.id.action_pantry) {\n Intent intent = new Intent(this, Pantry.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n return true;\n }\n if (id == R.id.action_fitnessTracker) {\n Intent intent = new Intent(this, FitnessTracker.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n return true;\n }\n if (id == R.id.action_settings) {\n /*Intent intent = new Intent(this, Settings.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);*/\n toggleNotifications();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n case R.id.action_settings:\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_login) {\n AppConstant.REFRESH = true;\n AppConstant.REFRESH1 = true;\n Intent intent = new Intent(activity, LoginActivity.class);\n startActivity(intent);\n return true;\n } else if (id == R.id.action_logout) {\n activity.invalidateOptionsMenu();\n if (Utilities.getNOsend())\n postPuzzleDataLogout();\n else {\n Utilities.setLoginSuccess(false, \"\", \"\", \"\");\n activity.invalidateOptionsMenu();\n Utilities.showAlertDailog(activity, \"PunnyFuzzles\", \"Logout Successfully\", \"Ok\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }\n }, true);\n }\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t public void onDestroy() {\r\n\t super.onDestroy();\r\n\t getActivity().finish();\r\n\t }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id == android.R.id.home) {\n finish();\n return true;\n }\n\n\n if (id == R.id.action_delete) {\n if(mHistoryFragment.isShowDeleteChecker() == true)\n alertDelete();\n if(mHistoryFragment.isShowDeleteChecker() == false)\n mHistoryFragment.setShowDeleteChecker(true);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t FragmentManager fm = getFragmentManager(); \n\t\t FragmentTransaction tx = fm.beginTransaction();\n\t\t tx.remove(FragmentManagementHistoryResult.this);\n\t\t tx.commit();\n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Intent intent = new Intent(MenuActivity.this, RegisterActivity.class);\n startActivity(intent);\n //FragmentManager.beginTransaction().replace(R.id.contenedor,new PerfilFragment()).commit();\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onActionItemClicked(ActionMode actionMode, MenuItem menuItem) {\n switch (menuItem.getItemId()) {\n case R.id.delete:\n mArchivedFruits.clear();\n mArchivedListAdapter.notifyDataSetChanged();\n actionMode.finish();\n return true;\n default:\n return false;\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n } return super.onOptionsItemSelected(item); }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_delete) {\n AlertDialog.Builder builder = new AlertDialog.Builder(ViewTask.this);\n builder.setMessage(\"Delete the task?\");\n builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n mProgressBar.setVisibility(View.VISIBLE);\n ParseObject task = mTask.get(0);\n task.deleteInBackground(new DeleteCallback() {\n @Override\n public void done(ParseException e) {\n\n if (e == null) {\n toMainActivity();\n }\n else{\n /* AlertDialog.Builder builder = new AlertDialog.Builder(ViewTask.this);\n builder.setMessage(e.getMessage());\n AlertDialog dialog = builder.create();\n dialog.show();*/\n toMainActivity();\n }\n }\n });\n\n\n }\n });\n builder.setNegativeButton(android.R.string.cancel, null);\n AlertDialog dialog = builder.create();\n dialog.show();\n\n ParseObject task = mTask.get(0);\n task.deleteInBackground();\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to a click on the \"Insert dummy data\" menu option\n case R.id.action_insert_dummy_data:\n insertPet();\n return true;\n // Respond to a click on the \"Delete all entries\" menu option\n case R.id.action_delete_all_entries:\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setCancelable(true);\n builder.setTitle(\"delete all\");\n builder.setMessage(\"do want to delete all entries \");\n builder.setPositiveButton(\"Confirm\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n int delt = getContentResolver().delete(PetContract.PetEntry.CONTENT_URI, null,null);\n }\n });\n builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n// int delt = getContentResolver().delete(PetContract.PetEntry.CONTENT_URI, null,null);\n// Toast.makeText(this, delt+\"deleted\", Toast.LENGTH_SHORT).show();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\t\t// Show information dialog.\n\t\t\tcase R.id.about:\n\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\t\t\tbuilder.setMessage(\"This is a demonstration of the SwipeToDismissUndo library \"\n\t\t\t\t\t+ \"of Tim Roes. The lib helps you getting the swipe to dismiss on list views \"\n\t\t\t\t\t+ \"and enable undo functionality. Visit the project's page for more information.\");\n\t\t\t\tbuilder.setTitle(\"SwipeToDismissUndo Library Demo\");\n\t\t\t\tbuilder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tbuilder.setNeutralButton(\"Visit Page\", new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tIntent in = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\t\t\tUri.parse(\"https://github.com/timroes/SwipeToDismissUndoList\"));\n\t\t\t\t\t\tin.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\t\tstartActivity(in);\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tbuilder.create().show();\n\t\t\t\tbreak;\n\t\t\t// Reset the list to its initial state.\n\t\t\tcase R.id.reset:\n\t\t\t\tresetAdapter();\n\t\t\t\tbreak;\n\t\t\t// Let the user select a mode and restart activity with that mode.\n\t\t\t// Not the best behavior to restart the app.. but this i just an API demo!\n\t\t\tcase R.id.switch_mode:\n\t\t\t\tAlertDialog.Builder b = new AlertDialog.Builder(this);\n\t\t\t\tb.setTitle(\"Pick Undo Mode\")\n\t\t\t\t\t.setItems(new String[]{\n\t\t\t\t\t\tSwipeDismissList.UndoMode.values()[0].name(),\n\t\t\t\t\t\tSwipeDismissList.UndoMode.values()[1].name(),\n\t\t\t\t\t\tSwipeDismissList.UndoMode.values()[2].name()\n\t\t\t\t\t}, new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tIntent in = new Intent(MainActivity.this, MainActivity.class);\n\t\t\t\t\t\tin.putExtra(EXTRA_MODE, which);\n\t\t\t\t\t\tmSwipeList.discardUndo();\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\tstartActivity(in);\n\t\t\t\t\t}\n\t\t\t\t}).create().show();\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.action_add_category){\n // Initiate Adding new cateegory\n Intent intent = new Intent(MainActivity.this, AddCategoryActivity.class);\n startActivityForResult(intent, NEW_CATEGORY_ACTIVITY_REQUEST_CODE);\n }\n\n if (id == R.id.action_delete_all_events) {\n mEventVM.deleteAll();\n return true;\n }\n if (id == R.id.action_delete_all_categories) {\n mCategoryVM.deleteAllCategories();\n Log.e(\"** DELETE CATEGORIES **\", \"Initiate delet category\");\n return true;\n }\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Toast.makeText(this, \"Feature coming soon...\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t super.onCreate(savedInstanceState);\n\t setRetainInstance(true);\n\t setHasOptionsMenu(false);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n switch (id){\n case R.id.menu_parking:\n\n Intent In = new Intent(Secure.this,ParkingActivity.class);\n startActivity(In);\n finish();\n break;\n\n case R.id.menu_shuttle:\n Intent inti = new Intent(Secure.this,Shuttle.class);\n startActivity(inti);\n finish();\n break;\n case R.id.menu_wallet:\n Intent u =new Intent(Secure.this,Wallet.class);\n startActivity(u);\n finish();\n break;\n case R.id.menu_payment:\n Intent a = new Intent(Secure.this,Secure.class);\n startActivity(a);\n finish();\n break;\n case R.id.menu_contact:\n Intent b = new Intent(Secure.this,Contact.class);\n startActivity(b);\n finish();\n break;\n case R.id.menu_logout:\n editor.clear();\n editor.commit();\n Intent i = new Intent(Secure.this,LoinActivity.class);\n startActivity(i);\n finish();\n break;\n\n }\n\n return super.onOptionsItemSelected(item);\n }" ]
[ "0.65392745", "0.6487743", "0.6397811", "0.63210934", "0.6175268", "0.61535275", "0.6143979", "0.61139923", "0.6091053", "0.6081304", "0.60615337", "0.60440487", "0.60437256", "0.60184556", "0.60147333", "0.59946835", "0.59858054", "0.59817433", "0.5973261", "0.59651047", "0.59561455", "0.5952935", "0.5947202", "0.59462106", "0.59450525", "0.59439296", "0.5937045", "0.5930188", "0.59286433", "0.5920735", "0.5915653", "0.5906733", "0.5901185", "0.5896533", "0.5890038", "0.58889824", "0.58847344", "0.58716977", "0.587022", "0.5861559", "0.5848375", "0.5842949", "0.58375716", "0.5825519", "0.5813431", "0.58077306", "0.5804461", "0.58028615", "0.579419", "0.5790297", "0.5788303", "0.5788303", "0.57856447", "0.57832694", "0.5778699", "0.5777223", "0.57686263", "0.57670015", "0.5764625", "0.57640207", "0.5760924", "0.5758746", "0.57579637", "0.5757216", "0.5754784", "0.5747486", "0.5747155", "0.57435125", "0.5743456", "0.5742948", "0.57388955", "0.57354635", "0.5735069", "0.573267", "0.5727442", "0.572513", "0.572513", "0.57225204", "0.57201546", "0.5719702", "0.5717038", "0.57165694", "0.57159287", "0.57119507", "0.57115424", "0.57111233", "0.5710721", "0.5710517", "0.5710056", "0.5710056", "0.57093203", "0.57024646", "0.56981295", "0.56957626", "0.5695446", "0.5692942", "0.56899637", "0.568893", "0.5683142", "0.5681917", "0.5681363" ]
0.0
-1
A new service method with the given name and description.
public ExecServiceMethodDescription(String name, String description) { super(name, description); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Service newService();", "Method createMethod();", "Method createMethod();", "protected ResourceMethod defineMethod( String theName, JavaType theReturnType, HttpVerb theHttpVerb, String theMethodPath ) {\r\n\t\treturn new ResourceMethod( theName, theReturnType, theHttpVerb, theMethodPath, this );\r\n\t}", "void applyDescription(Operation operation, Method method);", "public Method(String name, String desc) {\n/* 82 */ this.name = name;\n/* 83 */ this.desc = desc;\n/* */ }", "public Method addMethod(String sName, String sSig)\n {\n ensureLoaded();\n Method method = new Method(sName, sSig, m_flags.isInterface());\n m_tblMethod.put(method.getIdentity(), method);\n setModified(true);\n return method;\n }", "public OperationInfo addOperation(String name, Method method)\n {\n if ((name == null) || (name.length() == 0))\n {\n throw new IllegalArgumentException(\"Invalid name [\" + name + \"]\");\n }\n if (nameToOperation.containsKey(name))\n {\n throw new IllegalArgumentException(\"An operation with name [\" + name + \"] already exists in this service\");\n }\n \n OperationInfo operation = new OperationInfo(name, method, this);\n addOperation(operation);\n return operation;\n }", "org.hl7.fhir.CodeableConcept addNewMethod();", "private FromMethodMacro(String name, String description) {\n super(name, description);\n }", "public interface ProductService extends Service {\n\n\t/**\n\t * Example: curl http://localhost:9000/api/product/Alice\n\t */\n\tServiceCall<NotUsed, String> product(String id);\n\n\t/**\n\t * Example: curl -H \"Content-Type: application/json\" -X POST -d '{\"message\":\n\t * \"Hi\"}' http://localhost:9000/api/product/Alice\n\t */\n\tServiceCall<Product, NotUsed> create();\n\n\t@Override\n\tdefault Descriptor descriptor() {\n\t\t// @formatter:off\n\t\treturn named(\"product\")\n\t\t\t\t.withCalls(pathCall(\"/api/product/:id\", this::product), pathCall(\"/api/product\", this::create))\n\t\t\t\t.withAutoAcl(true);\n\t\t// @formatter:on\n\t}\n}", "MethodStart createMethodStart();", "H create(Method method);", "public abstract ServiceLocator create(String name);", "public MLMethod createMethod() {\n\t\tif (this.methodType == null) {\n\t\t\tthrow new EncogError(\n\t\t\t\t\t\"Please call selectMethod first to choose what type of method you wish to use.\");\n\t\t}\n\t\tMLMethodFactory methodFactory = new MLMethodFactory();\n\t\tMLMethod method = methodFactory.create(methodType, methodArgs, dataset\n\t\t\t\t.getNormHelper().calculateNormalizedInputCount(), this.config\n\t\t\t\t.determineOutputCount(dataset));\n\t\treturn method;\n\t}", "public ServiceSum(String name) {\n\t\tserviceName = name;\n\t}", "private MethodType(String name) {\n super(name);\n }", "public Service(String name, int duration) {\n setName(name);\n setDuration(duration);\n }", "protected ResourceMethod defineMethod( String theName, Type theReturnType, HttpVerb theHttpVerb, String theMethodPath ) {\r\n\t\treturn this.defineMethod(theName, new JavaType( theReturnType ), theHttpVerb, theMethodPath);\r\n\t}", "void addMethod(Method method);", "private void method(String name) {\n app.method(name);\n }", "Operation createOperation();", "Operation createOperation();", "void addService(ServiceInfo serviceInfo);", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\tparsingMethod = new Method(name, desc, parsingClass);\n\t\tparsingClass.getMethods().add(parsingMethod);\n\t\treturn completeMethodVisitor;\n\t}", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc,\n\t\t\tString signature, String[] exceptions) {\n\t\t MethodIdentifier i = new MethodIdentifier( name, desc) ;\n\n\t\t FactoryMethodTransformer factoryMethodTransformer = methodName2Transformer.get(i);\n\n\t\t if( factoryMethodTransformer != null )\n\t\t {\n\t\t\t return factoryMethodTransformer.create(super.visitMethod(access, name, desc, signature, exceptions));\n\t\t }\n\t\t else\n\t\t {\n\t\t\t return super.visitMethod(access, name, desc, signature, exceptions);\n\t\t }\n\n\n\n\t}", "public interface DemoService {\n\n String sayHello(String name);\n}", "public ServiceAction(IElementManager manager, SystemID systemID, String name) {\r\n\t\tsuper(BaseUI.getText(UI_TEXT), BaseUI.getDescriptor(BaseUI.IMAGE_SERVICE));\r\n\t\tthis.manager = manager;\r\n\t\tthis.systemID = systemID;\r\n\t\tthis.name = name;\r\n\t}", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "public interface DemoService {\n String sayHello(String name);\n}", "public static MethodBuilder constructor(String name) {\n\t\treturn new MethodBuilder().returnType(\"\").name(name);\n\t}", "public interface HelloService {\n String hello(String name);\n}", "public interface HelloService {\n\n String sayHello(String name);\n\n}", "public abstract T addService(ServerServiceDefinition service);", "Service_Resource createService_Resource();", "public SunshineService(String name) {\n super(\"SunshineService\");\n\n }", "public Service(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String name) {\n super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);\n software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, \"scope is required\"), java.util.Objects.requireNonNull(name, \"name is required\") });\n }", "public X10MethodInstance createMethodInstance(Type container, Name name, List<Type> typeArgs, List<Type> argTypes, Context context) {\n try {\n return xts.findMethod(container, xts.MethodMatcher(container, name, typeArgs, argTypes, context));\n } catch (SemanticException e) {\n throw new InternalCompilerError(\"Unable to find required method instance\", container.position(), e);\n }\n }", "public interface HelloService {\n\n String sayHello(String name);\n}", "public InitService(String name) {\n super(\"InitService\");\n }", "public LiveLongAndProsperIntentService(final String name) {\n\t\tsuper();\n\t\tmName = name;\n\t}", "public void service() {\n\t}", "public interface UniversityService extends Service {\n\n String SERVICE_NAME = \"university\";\n\n @SuppressWarnings(\"OptionalUsedAsFieldOrParameterType\")\n ServiceCall<NotUsed, PCollection<StudentData>> getStudents(\n Optional<String> firstName,\n Optional<String> middleName,\n Optional<String> lastName,\n Optional<LocalDate> birthday,\n Optional<String> group\n );\n\n ServiceCall<StudentData, StudentData> createStudent();\n\n @Override\n default Descriptor descriptor() {\n return named(SERVICE_NAME).withCalls(\n restCall(Method.GET,\n \"/api/\" + SERVICE_NAME + \"/students?firstName&middleName&lastName&birthday&group\",\n this::getStudents\n ),\n restCall(Method.POST,\n \"/api/\" + SERVICE_NAME + \"/students\",\n this::createStudent\n ))\n .withAutoAcl(true)\n .withPathParamSerializer(LocalDate.class, new LocalDatePathParamSerializer());\n }\n}", "public WidgetRecipeService(String name) {\n super(name);\n }", "public interface HelloService {\n\n void sayHello(String name);\n}", "public interface HelloService {\n\n void sayHello(String name);\n}", "public static String methodName(Description description) {\n return description.getMethodName().replaceAll(\"\\\\s?\\\\{.+\\\\}\", \"\");\n }", "public interface HelloService {\n\n public void sayHello(String name);\n}", "public Service(int serviceID, String serviceName, double serviceFee, String serviceDescrp){\r\n\t\tthis.serviceName = serviceName;\r\n\t\tthis.serviceID = serviceID;\r\n\t\tthis.serviceFee = serviceFee;\r\n\t\tthis.serviceDescrp = serviceDescrp;\r\n\t}", "public Service(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String name, final @org.jetbrains.annotations.Nullable imports.k8s.ServiceOptions options) {\n super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);\n software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, \"scope is required\"), java.util.Objects.requireNonNull(name, \"name is required\"), options });\n }", "Fog_Services createFog_Services();", "@Override\n\tpublic void randomMethod(String name) {\n\t\t\n\t}", "public AlarmService(String name) {\n super(name);\n }", "public interface Service {\n void method1();\n void method2();\n}", "public InfoTransferService(String name) {\n super(name);\n }", "Method addMethod(PositionString name, Symbol resultType, Iterator<Variable> parameters,\n\t\t\tModifier modifier) throws\n\t\t\tDuplicateIdentifierException, ShadowedIdentifierException, WrongModifierException, InvalidIdentifierException;", "public interface IHelloservice {\n public String sayHello(String name);\n}", "@WebMethod(operationName = PlanetsService.NAME + \"Describe\", action = PlanetsServices.NS\r\n + \"/\" + PlanetsService.NAME + \"/\" + \"Describe\")\r\n @WebResult(name = PlanetsService.NAME + \"Description\", targetNamespace = PlanetsServices.NS\r\n + \"/\" + PlanetsService.NAME, partName = PlanetsService.NAME\r\n + \"Description\")\r\n @ResponseWrapper(className = \"eu.planets_project.services.\"\r\n + PlanetsService.NAME + \"DescribeResponse\")\r\n ServiceDescription describe();", "public Method(String name, Type returnType, Type[] argumentTypes) {\n/* 98 */ this(name, Type.getMethodDescriptor(returnType, argumentTypes));\n/* */ }", "public interface MethodFactory extends ModuleSupportable\n{\n\t/**\n\tUsed to identify this interface when finding it with the Monitor.\n\t**/\n\tpublic static final String MODULE = \n\t \"com.splicemachine.db.iapi.store.access.conglomerate.MethodFactory\";\n\n\t/**\n\tReturn the default properties for this access method.\n\t**/\n\tProperties defaultProperties();\n\n\t/**\n\tReturn whether this access method implements the implementation\n\ttype given in the argument string.\n\t**/\n\tboolean supportsImplementation(String implementationId);\n\n\t/**\n\tReturn the primary implementation type for this access method.\n\tAlthough an access method may implement more than one implementation\n\ttype, this is the expected one. The access manager will put the\n\tprimary implementation type in a hash table for fast access.\n\t**/\n\tString primaryImplementationType();\n\n\t/**\n\tReturn whether this access method supports the format supplied in\n\tthe argument.\n\t**/\n\tboolean supportsFormat(UUID formatid);\n\n\t/**\n\tReturn the primary format that this access method supports.\n\tAlthough an access method may support more than one format, this\n\tis the usual one. the access manager will put the primary format\n\tin a hash table for fast access to the appropriate method.\n\t**/\n\tUUID primaryFormat();\n}", "public void invoke(ServerServiceDesc serviceDesc, RequestMetaContext reqMetaCtx, ResponseMetaContext respMetaCtx) throws ServiceException;", "public interface IService {\n //1.被调用的服务中的方法\n public void BeCalledMethod();\n\n}", "MethodName getMethod();", "public interface HelloService {\n\n String greet (String userName);\n\n}", "public ShopService(String name)\n\t{\n\t\tthis.name = name;\n\t}", "public void startMethod (Symbol methodName, java.lang.Object[] args) throws G2AccessException;", "public interface CreateStudentOrderFor15Service {\n public void create();\n}", "private AnalysisMethodEnum(String name) {\n\t\tthis.methodName = name;\n\t}", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc, String[] signature,\n\t\t\tString[] exceptions) {\n\t\tif (!isMethod2Created) {\n\t\t\tMethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC, \"myMethod2\", \"V\", null, null);\n\t\t\tif (mv != null) {\n\t\t\t\tmv.visitCode();\n\t\t\t\tmv.visitInsn(Opcodes.INSN_RETURN_VOID);\n\t\t\t\tmv.visitMaxs(1, 0);\n\t\t\t\tmv.visitEnd();\n\t\t\t}\n\n\t\t\tisMethod2Created = true;\n\t\t}\n\t\t\n\t\t// If \"onCreate\" is found, we create a new Method (\"myMethod2\"), and adds the call to\n\t\t// this one as well thanks to the next Adapter.\n\t\tif (name.equals(\"onCreate\")) {\n\t\t\tMethodVisitor mv = cv.visitMethod(access, name, desc, signature, exceptions);\n\t\t\tMethodAdapterAddMethod ma = new MethodAdapterAddMethod(mv);\n\t\t\treturn ma;\n\t\t} else {\n\t\t\treturn super.visitMethod(access, name, desc, signature, exceptions);\n\t\t}\n\t}", "public interface TestService {\n void test();\n String testService(String str);\n}", "protected final MethodModel methodFor( MethodDescriptor desc ) {\t\t\t\t\n\t\treturn context.methodFor( desc );\n\t}", "SourceBuilder createService();", "public CallService() {\n super(\"My\");\n }", "public void setMethodName(String methodName) {\n this.methodName = methodName;\n }", "public void setMethodName(String methodName) {\n this.methodName = methodName;\n }", "HxMethod createMethod(final String returnType,\n final String methodName,\n final String... parameterTypes);", "public MessageIntentService(String name) {\n super(name);\n }", "public interface HelloService {\n\n String hello(String userName);\n}", "public CleanerService(String name) {\n super(name);\n }", "public\tvoid\taddChangedMethod(String name, String newSignature, String prevSignature) {\n\t\t\n\t\tChangedJsMethod m = new ChangedJsMethod(name, newSignature, prevSignature);\n\t\tchangedMethods.add(m);\n\t}", "public MyIntentService(String name){\n super(name);\n }", "OperationCallExp createOperationCallExp();", "@RemoteServiceRelativePath(\"greet\")\r\npublic interface GreetingService extends RemoteService {\r\n\tAdd getsubmit(Add name) throws IllegalArgumentException;\r\n\r\n\tData p(Data n) throws IllegalArgumentException;\r\n\r\n\tLog l(Log u) throws IllegalArgumentException;\r\n\r\n\tupl insert(upl u) throws IllegalArgumentException;\r\n\r\n\toutuser getdata(outuser name) throws IllegalArgumentException;\r\n\r\n\t\r\n\r\n\tBooks[] fun(String s1)throws IllegalArgumentException;\r\n\r\n\tAdd[] po(String s)throws IllegalArgumentException;\r\n\t\r\n\t\r\n\tBooks fun1(Books s1)throws IllegalArgumentException;\r\n}", "default void createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateServiceMethod(), responseObserver);\n }", "public SearchService(String name) {\n super(\"\");\n }", "public void addServiceImpl(String serviceName, FileObject configFile, boolean fromWSDL);", "@ApiMethod(name = \"sayHi\")\n public MyBean sayHi(@Named(\"name\") String name) {\n MyBean response = new MyBean();\n response.setData(\"Hi, \" + name);\n\n return response;\n }", "public interface ITestService {\n public String test(String name);\n}", "public abstract void setServiceName(String serviceName);", "@Path(\"/create/{vmname}/{vmdescription}\")\n@POST\npublic String createVM(@PathParam(\"vmname\") String vmname,@PathParam(\"vmdescription\") String vmdescription){\n\tSystem.out.println(\" name of vm is \"+vmname+\" and description is \"+vmdescription);\n\t\n\n\treturn computefacade.createVM(vmname, vmdescription);\n\t\n\n}", "protected MethodNameRecord(){}", "WithCreate withDescription(String description);", "WithCreate withDescription(String description);", "public void doService() {\n }", "public interface Provider {\n Service newService();\n }", "public void addServiceImpl(String serviceName, FileObject configFile, boolean fromWSDL, String[] wscompileFeatures);", "BOpMethod createBOpMethod();", "public Method getMethod(String sName, String sSig)\n {\n return getMethod(sName + sSig.replace('.', '/'));\n }", "public HelloIntentService() {\n super(\"HelloIntentService\");\n }", "public void addMethod(String className, String methodName, String methodType, String methodVis, List<String> paramNames, List<String> paramTypes)\n\t{\n\t\tstoreViewState();\n\t\tproject.addMethod(className, methodName, methodType, methodVis, paramNames, paramTypes);\n\t\tcheckStatus();\n\t}" ]
[ "0.6633688", "0.6472801", "0.6472801", "0.62161994", "0.6213851", "0.6171069", "0.60477495", "0.6032078", "0.5997866", "0.596562", "0.5953563", "0.59214723", "0.58623004", "0.5855497", "0.5813521", "0.5791368", "0.5767049", "0.5764041", "0.57454", "0.57250804", "0.56966615", "0.56922287", "0.56922287", "0.56913275", "0.5611883", "0.5588226", "0.55816406", "0.55755186", "0.5572365", "0.5563619", "0.55570835", "0.5538809", "0.5534001", "0.552839", "0.55269045", "0.55239844", "0.5523612", "0.5505252", "0.5503711", "0.5494647", "0.54886025", "0.5480281", "0.54774", "0.547714", "0.54707867", "0.54707867", "0.54641676", "0.5461215", "0.54600877", "0.54458773", "0.5434562", "0.54165816", "0.54155034", "0.54139996", "0.54039645", "0.53958154", "0.53928345", "0.53863627", "0.5383128", "0.5373337", "0.53572536", "0.5356363", "0.535246", "0.5351176", "0.53506774", "0.5340747", "0.5332155", "0.5330274", "0.5328443", "0.5328244", "0.5319457", "0.5317239", "0.5315735", "0.5314626", "0.5314626", "0.5312889", "0.5299538", "0.5290202", "0.52827466", "0.52807516", "0.5279223", "0.5277324", "0.5276309", "0.5275107", "0.5273337", "0.52690935", "0.5248579", "0.52388644", "0.52373517", "0.5234174", "0.52291864", "0.5224208", "0.5224208", "0.52239287", "0.52223706", "0.5222005", "0.52219754", "0.52194107", "0.52159506", "0.5214368" ]
0.7508532
0
Adds a result for the script; cannot have multiple query results.
public ExecServiceMethodDescription queryResult(String name, String description) { if (resultAdded) { throw new IllegalArgumentException("The query can only have one result"); } resultAdded = true; addResult(name, description, VType.class); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(R result) {\n results.add(result);\n }", "public void addResult(String key, String value) {\n Preconditions.checkArgument(!results.containsKey(key), \"the result already contains that key\");\n results.put(key, value);\n }", "protected void addToResult(Instance instance) {\n\t\tthis.resultBuffer.add(instance);\n\t}", "public void addResult(String message) {\r\n returnObject.addResult(message);\r\n }", "void add(CheckResult result) {\r\n checkResults.add(result);\r\n }", "public void addResult(Player winner, Player loser) {\n\t\tResult result = new Result(winner, loser);\n\t\tresults.add(result);\n\t}", "public void addResult(Result result) {\n try {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n dbb.addResult(result);\n dbb.commit();\n dbb.closeConnection();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void addResult(String key, long l) {\n addResult(key, Long.toString(l));\n }", "@Override\n\tpublic void addResult(User user) {\n\n\t}", "@Override\n public boolean add(final Result newResult) throws DaoException {\n return executeUpdate(INSERT_RESULT, newResult.getSportsmanId(),\n newResult.getCompetitionId(), newResult.getScore());\n }", "public void addResult(CloseableIteration<T, QueryEvaluationException> res);", "public Builder addResults(\n int index, org.apache.calcite.avatica.proto.Responses.ResultSetResponse value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(index, value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(index, value);\n }\n return this;\n }", "void add(T result);", "void newResult(Result result);", "public void add(ResultSet results) {\n StringData sd = new StringData(results);\n this.webUserList.add(sd);\n }", "public void setResult(String result) {\n this.result = result;\n }", "public void setResult(String result)\n {\n this.result = result;\n }", "@Override\n\tpublic void sendJobResult(int[] result) throws RemoteException {\n\t\tServer.results.add(result);\n Server.listResults();\n\t}", "public void receiveResultadd(\n by.makedon.axis.HandbookServiceStub.AddResponse result) {\n }", "public void setResult(Object result) {\n this.result = result;\n }", "private synchronized void addResultToMultiList() {\n\t addObjectToMultiList(resultArrayList);\r\n\t }", "private List<Result> addAllResults(List<Result> result) {\n\n MongoCollection<Document> collection = mongoDatabase.getCollection(\"result\");\n List<Result> allResults = new LinkedList<>();\n for (Result res : result) {\n Document newResult = new Document();\n newResult.put(\"student1\", res.getStudent1());\n newResult.put(\"student2\", res.getStudent2());\n newResult.put(\"percentage\", res.getPercentage());\n newResult.put(\"snippets\", res.getSnippets());\n newResult.put(\"type\", res.getType().toString());\n collection.insertOne(newResult);\n\n\n ObjectId resultId = newResult.getObjectId(\"_id\");\n res.setObjectId(resultId);\n newResult.put(\"hexId\", resultId.toHexString());\n res.setHexId(resultId.toHexString());\n Bson updateOperationDocument = new Document(\"$set\", newResult);\n collection.updateOne(eq(\"_id\", new ObjectId(resultId.toHexString())), updateOperationDocument);\n\n allResults.add(res);\n }\n return allResults;\n }", "public final void addAuraResult(int id, int result) {\n\t\tauramap.put(id, result);\n\t}", "@Override\n public void setResult(Object result) throws EngineException {\n \n }", "public void addResult(PeptideIdentification aPeptideIdentification) {\n\n iPeptideIdentifications.add(aPeptideIdentification);\n\n }", "public void setResult(String result) {\n this.result = result;\n }", "public void addResult(List<String> columnHeaders, List<List<String>> rowValues) {\n }", "public void setResult(String result)\r\n\t{\r\n\t\tthis.result = result;\r\n\t}", "public Builder addResults(\n int index, entities.Torrent.NodeSearchResult value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(index, value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public void addNluResult(String sessionId, NluResponse response) {\n String nluId = NLU_RESULT_PREFIX + sessionId;\n if (dialogCache.getQueueLen(nluId) == MAX_QUEUE_SIZE) {\n dialogCache.popFromQueue(nluId);\n }\n dialogCache.pushToQueue(nluId, JSON.toJSONString(response));\n }", "public Builder addResults(org.apache.calcite.avatica.proto.Responses.ResultSetResponse value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(value);\n }\n return this;\n }", "public void receiveResultadd(\n org.apache.ws.axis2.WebserviceStub.AddResponse result\n ) {\n }", "public void addResponseToResult(String term){\n\t\tResult result = this.getResult();\n\t\tif(result==null){\n\t\t\tresult = new Result();\n\t\t\tresult.setResponse(term);\n\t\t\tthis.setResult(result);\n\t\t}\n\t\telse{\n\t\t\tString s = result.getResponse();\n\t\t\ts += \",\" + term;\n\t\t\tresult.setResponse(s);\n\t\t}\t\n\t}", "public void setResult(Result result) {\n this.result = result;\n }", "public void addResultToMap(String result) {\n resultMap.put(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()), result);\n }", "@Override\n\tpublic it.ethica.esf.model.ESFResult addESFResult(\n\t\tit.ethica.esf.model.ESFResult esfResult)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _esfResultLocalService.addESFResult(esfResult);\n\t}", "public void setResult(T result) {\n this.result = result;\n }", "private void addParseResult( TTable table )\n\t{\n\t\tParseResult result =\n\t\t\tnew ParseResult( this, table.getPrefixSchema(), table.getName(), this.currRole, table.getLineNo(), table.getColumnNo() );\n\t\tLOG.debug( \"### \" + result );\n\t\tsuper.getListener().update( result );\n\t}", "void updateResult(int queryID, int[] ranking) {\n this.results.put(queryID, ranking);\n }", "protected void setResult(R result) {\n _result = result;\n }", "public static void setResult(String resultInfo) {\n }", "public Object processScriptResult(Object result) throws ScriptException;", "public void setResult (String Result);", "public void setResult(final Integer res) {\n this.result = res;\n }", "public Builder addResults(entities.Torrent.NodeSearchResult value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(value);\n }\n return this;\n }", "public list_results_doc_result(list_results_doc_result other) {\n if (other.isSetSuccess()) {\n java.util.List<Examination> __this__success = new java.util.ArrayList<Examination>(other.success.size());\n for (Examination other_element : other.success) {\n __this__success.add(new Examination(other_element));\n }\n this.success = __this__success;\n }\n }", "protected void addRiskResult(RiskResult rr) {\n\n\t\tthis.myRRList.add(rr);\n\t}", "public void setResult(Result result) {\n\t\tthis._result = result;\n\t}", "public fill_results_result(fill_results_result other) {\n __isset_bitfield = other.__isset_bitfield;\n this.success = other.success;\n }", "@Override\r\n\tpublic boolean addStu_result(Object stu_result) {\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\t\tStu_result Stu_result1 = (Stu_result) stu_result;\r\n\t\tint count;\r\n\t\ttry {\r\n\t\t\tconn = DBHelper.getConnection();\r\n\t\t\tString sql = \"insert into Stu_result(sid,kj_id,Stu_dxt_r,Stu_dxt_c,Stu_dxts_r,Stu_dxts_c,Stu_pdt_r,Stu_pdt_c) values(?,?,?,?,?,?,?,?);\"; // SQL语句\r\n\t\t\tstmt = conn.prepareStatement(sql);\r\n\t\t\tstmt.setInt(1, Stu_result1.getSid());\r\n\t\t\tstmt.setInt(2, Stu_result1.getKj_id());\r\n\t\t\tstmt.setString(3, Stu_result1.getStu_dxt_r());\r\n\t\t\tstmt.setString(4, Stu_result1.getStu_dxt_c());\r\n\t\t\tstmt.setString(5, Stu_result1.getStu_dxts_r());\r\n\t\t\tstmt.setString(6, Stu_result1.getStu_dxts_c());\r\n\t\t\tstmt.setString(7, Stu_result1.getStu_pdt_r());\r\n\t\t\tstmt.setString(8, Stu_result1.getStu_pdt_c());\r\n\t\t\tcount = stmt.executeUpdate();\r\n\t\t\tSystem.out.println(count + \"学生答案插入记录\");\r\n\t\t\tif (count == 1) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else\r\n\t\t\t\treturn false;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t} finally {\r\n\t\t\t// 释放语句对象\r\n\t\t\tif (stmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstmt.close();\r\n\t\t\t\t\tstmt = null;\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setResult() {\n }", "public void addResultList(String path) {\n synchronized (this.paths) {\n this.paths.add(path);\n }\n }", "public void setResults(ArrayList<Integer> results){\n this.results = results;\n }", "public void add(ProcessingResult<T> result) {\n failures.addAll(result.getFailures());\n successes.addAll(result.getSuccesses());\n }", "void ComputeResult(Object result);", "public void add(SimilarResult<T>... results) {\n if (locked) {\n throw new IllegalStateException(\"SimilarResultList has been locked\");\n }\n Collections.addAll(this.results, results);\n }", "public void add(Collection<SimilarResult<T>> results) {\n if (locked) {\n throw new IllegalStateException(\"SimilarResultList has been locked\");\n }\n this.results.addAll(results);\n }", "public void receiveResultaddition(\n loadbalance.LoadBalanceStub.AdditionResponse result\n ) {\n }", "public Result getResults()\r\n {\r\n return result;\r\n }", "public void addRow(ResultRow row) {\r\n rows.add(row);\r\n }", "public Builder addResults(\n int index, com.google.cloud.speech.v2.StreamingRecognitionResult value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(index, value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(index, value);\n }\n return this;\n }", "private void setResult(String term){\n\t\taddResponseToResult(term);\n\t}", "private void collectResultSet(Cursor cursor, ArrayList<String> result_list) {\n\n\t\t//\n\t\t// are there any data sets\n\t\t//\n\t\tif (!cursor.moveToFirst())\n\t\t\treturn;\n\n\t\t//\n\t\t// add the result\n\t\t//\n\t\tdo {\n\t\t\tresult_list.add(cursor.getString(0));\n\t\t} while (cursor.moveToNext());\n\t}", "private<T> void addManyResults(T... results)\n {\n int i =0;\n for(T result : results)\n {\n this.add(\"morgen-main-result\"+i, new LazyDynamicPrimitive<>(result));\n i++;\n }\n\n results = null; // Prevents Heap pollution\n }", "public void insertNewResult(String name, double result, int hitTimes, int totalTimes, double pressTime) {\n Record rank = new Record(name, result, hitTimes, totalTimes, pressTime);\n this.insertNewResult(rank);\n }", "public static IScriptResult createResult(SceResultsType srt) {\r\n \treturn new Result(srt);\r\n }", "public void setResults(ArrayList results) {\n this.results = results;\n }", "public void saveResults();", "public void add(Object object) {\n if(object != null) {\n results.add(object);\n }\n }", "public static void resultMessage (int result) {\n System.out.println(\"The result of choosed operation is: \" + result);\n }", "public int getResult(){\r\n\t\t return result;\r\n\t }", "public void setResult(final String incomingResult)\r\n {\r\n \r\n result = incomingResult;\r\n }", "public boolean hasResult() {\n return hasResult;\n }", "@Override\n \tpublic Object getResult() {\n \t\treturn result;\n \t}", "public Builder addResults(\n int index, org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder builderForValue) {\n if (resultsBuilder_ == null) {\n ensureResultsIsMutable();\n results_.add(index, builderForValue.build());\n onChanged();\n } else {\n resultsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public void addText(String text) {\n resultsText.append(text);\n }", "ScriptBuilder setBuildResult(String result) {\n this.result = result;\n return this;\n }", "public void receiveResultaddEquipment(\n org.apache.ws.axis2.MySQLServiceEquipmentStub.AddEquipmentResponse result) {\n }", "public void promoteResult(String docId, String query);", "public org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder addResultsBuilder(\n int index) {\n return getResultsFieldBuilder().addBuilder(\n index, org.apache.calcite.avatica.proto.Responses.ResultSetResponse.getDefaultInstance());\n }", "public synchronized void putResult(DrownVulnerabilityType result) {\n if (result != null) {\n switch (result) {\n case NONE:\n putResult(AnalyzedProperty.VULNERABLE_TO_GENERAL_DROWN, false);\n break;\n case UNKNOWN:\n resultMap.put(AnalyzedProperty.VULNERABLE_TO_GENERAL_DROWN.toString(), TestResult.UNCERTAIN);\n break;\n default:\n putResult(AnalyzedProperty.VULNERABLE_TO_GENERAL_DROWN, TestResult.TRUE);\n }\n }\n }", "public int getResult(){\n return localResult;\n }", "@Override\n public List<Result> storeResults(List<Result> results, String homeworkId) {\n\n // added all results and got the ids backs with the results\n List<Result> allResults = addAllResults(results);\n\n // Getting the assignmentCollection to update assignment\n MongoCollection<Assignment> assignmentMongoCollection = mongoDatabase.getCollection(\"assignment\", Assignment.class);\n\n\n // gets the assignment\n Assignment assignment1 = assignmentMongoCollection.find(eq(\"_id\", new ObjectId(homeworkId)), Assignment.class).first();\n\n\n List<String> allResultsIds = assignment1.getResultsId();\n for (Result result : allResults) {\n allResultsIds.add(result.getHexId());\n }\n assignment1.setResultsId(allResultsIds);\n // add all results to table\n MongoCollection<Document> collectionAssignment = mongoDatabase.getCollection(\"assignment\");\n Bson updateOperationDocument = new Document(\"$set\", assignment1);\n collectionAssignment.updateOne(eq(\"_id\", new ObjectId(homeworkId)), updateOperationDocument);\n\n return allResults;\n }", "public static /*synchronized*/ void addNNResultLog(String queryId, long start, long end, String resultId){\n\t\tQUERY_COUNT++;\n\t\tLOG.appendln(\"Query \" + queryId + \": returned \" + resultId + \" in \" + (end-start) + \" ms.\");\n\t\tLOG.appendln(\"Query ends at: \" + end + \" ms.\");\n\t}", "public void add()\r\n {\r\n resultDoubles = Operations.addition(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "public void setResult(ArrayList<Integer> result,\n\t\t\tArrayList<Integer> query) {\n\t\tmappingTracker.updateTracker(result, query);\n\t\tfor (int i : query) {\n\t\t\tguessCount[i - 1]++;\n\t\t\tfor (int j : query) {\n\t\t\t\tif (i < j) {\n\t\t\t\t\tguessedPairs.add(getPairString(i, j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void onResult(T result);", "void onResult(T result);", "public Builder addResults(\n int index, entities.Torrent.NodeSearchResult.Builder builderForValue) {\n if (resultsBuilder_ == null) {\n ensureResultsIsMutable();\n results_.add(index, builderForValue.build());\n onChanged();\n } else {\n resultsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@SuppressWarnings({\"rawtypes\", \"unchecked\"})\n\t// Java 1.8 forward-compatibility.\n\tprotected <T> void addResultCallback(final ResultCallback<T> callback) {\n\t\tEventListener l = new EventListener<CommandResultEvent>() {\n\t\t\t@Override\n\t\t\tpublic void process(CommandResultEvent event) {\n\t\t\t\tcallback.result((T) event.getValue());\n\t\t\t}\n\t\t};\n\t\tproxy.addEventListener(CommandResultEvent.COMPLETE, l);\n\t}", "public entities.Torrent.NodeSearchResult.Builder addResultsBuilder() {\n return getResultsFieldBuilder().addBuilder(\n entities.Torrent.NodeSearchResult.getDefaultInstance());\n }", "public void receiveResultaddResponsible(\n org.apache.ws.axis2.MySQLServiceEquipmentStub.AddResponsibleResponse result) {\n }", "public interface Result<T> {\r\n\t/**\r\n\t * Return all of the players involved in this result.\r\n\t */\r\n\tList<Player> getPlayers();\r\n\r\n\t/**\r\n\t * Returns all of the results (however the implementation stores them)\r\n\t */\r\n\tList<T> getResults();\r\n\r\n\t/**\r\n\t * Adds a specific subsidiary result to this aggregation. When implemented,\r\n\t * this method may perform on-the-fly analysis appropriate to this game, ie,\r\n\t * keeping track of number of games won by each Player or types of moves\r\n\t * deployed by a Player (defection/cooperation in Prisoner's Dilemma).\r\n\t * Alternatively, this information may be aggregated by the Game's associated\r\n\t * DataReader, in which case the default implementation in AbstractResult\r\n\t * should be sufficient. \r\n\t */\r\n\tvoid add(T result);\r\n}", "private void retrieveResult() {\n if (result == null) {\n this.setResult(((DocumentBuilder)this.getHandler()).getResult());\n }\n }", "public static void recordQueryResultSet(String logLevel, Result result)\n {\n Recorder.SQLRecord(result, getRecordMetadata(), logLevel);\n }", "public void setResult(String name) {\r\n DatabaseField returnField = (DatabaseField)getParameters().get(0);\r\n returnField.setName(name);\r\n }", "public void putAResult(Result result) {\n restTemplate.exchange(\n queueUrl + \"/putAResult\",\n HttpMethod.POST,\n new HttpEntity<>(result),\n String.class);\n }", "Result getResult();", "public void addAll(List<ContentValues> result) {\n for (ContentValues c : result) {\n add(c);\n }\n }", "public void receiveResultquery(\n com.exacttarget.wsdl.partnerapi.QueryResponseMsgDocument result\n ) {\n }" ]
[ "0.7499518", "0.71286684", "0.68693554", "0.6805391", "0.66204506", "0.6478625", "0.63309443", "0.632107", "0.62521935", "0.6238679", "0.62129015", "0.6186186", "0.61253035", "0.60971516", "0.60713845", "0.6053852", "0.60296166", "0.5987988", "0.5983471", "0.5980566", "0.5972681", "0.5961581", "0.59603184", "0.59529674", "0.5920962", "0.59062964", "0.5901235", "0.5892781", "0.5892254", "0.5886474", "0.5865771", "0.586269", "0.5861189", "0.58531827", "0.5831865", "0.58296657", "0.58153784", "0.5790298", "0.5778858", "0.5772835", "0.57637924", "0.5758732", "0.5735439", "0.5705419", "0.5703921", "0.56764024", "0.5656147", "0.56466097", "0.5642453", "0.5637478", "0.5633658", "0.56250954", "0.5615385", "0.560867", "0.5593545", "0.5587835", "0.5567074", "0.55620074", "0.55603296", "0.55542517", "0.5543884", "0.55341953", "0.5513906", "0.5495344", "0.549304", "0.5488094", "0.54546076", "0.54442155", "0.5439132", "0.541256", "0.5401605", "0.5392156", "0.53911823", "0.53910464", "0.5389313", "0.53863513", "0.53779733", "0.5377962", "0.5369346", "0.53659666", "0.5363458", "0.5358946", "0.5347579", "0.5339226", "0.5337569", "0.5332039", "0.53269", "0.53269", "0.53207064", "0.5316084", "0.53026605", "0.5302123", "0.5270365", "0.52682954", "0.5266929", "0.5264209", "0.52596", "0.52509946", "0.52362084", "0.52339363" ]
0.5475241
66
Add a command for the script.
public ExecServiceMethodDescription command(String command) { if (command == null){ throw new IllegalArgumentException("Command must not be null"); } this.command = command; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCommand(CommandIF command) {\r\n\t\tmelody.add(command);\r\n\t}", "public void addCommand(Command m);", "@Override\n public void addCommand(CommandConfig command) {\n }", "public void addCommand(Command cmd) {\n cmd.setTask(this);\n commands.add(cmd);\n }", "public void addCommand(String name,CommandInterface command)\n\t{\t\t\n\t\tthis.listedescommande.put(name, command);\n\t}", "public void addCommand(final String key, final String value) {\n this.commands.put(key, value);\n }", "public void addCommand(Object cmd) {\n Message msg = this.handler.obtainMessage(0);\n msg.obj = cmd;\n this.handler.sendMessage(msg);\n }", "protected void addCommand(String command) {\r\n\t\tcommand = command.replaceAll(\"\\n\", \"\\n\" + OUT_SYMBOL); //TODO ugly, fix this\r\n\t\tadd(command, styles.getRegular());\r\n\t}", "@SuppressWarnings(\"unchecked\")\n void add(MigrationCommand command);", "public void addCommand(ICommand command) {\n command.setBlockStart(currentBlockStart);\n if (command instanceof BlockEnd) {\n currentBlockStart.setBlockEnd((BlockEnd) command);\n currentBlockStart = blockStack.pop();\n }\n if (command instanceof BlockStart) {\n blockStack.push(currentBlockStart);\n currentBlockStart = (BlockStart) command;\n }\n commandList.add(command);\n hasNativeAlertHandler |= command.isNativeAlertHandler();\n }", "public static void createCommandScript(Path scriptPath, String command) throws CWLException {\r\n if (scriptPath != null) {\r\n File scriptFile = scriptPath.toFile();\r\n if (scriptFile.setExecutable(true)) {\r\n logger.trace(\"Set file executable attribute.\");\r\n }\r\n if (scriptFile.setReadable(true)) {\r\n logger.trace(\"Set file readable attribute.\");\r\n }\r\n if (scriptFile.setWritable(true)) {\r\n logger.trace(\"Set file writable attribute.\");\r\n }\r\n if (command != null) {\r\n write(scriptFile, command);\r\n } else {\r\n write(scriptFile, \"#!/bin/bash\");\r\n }\r\n }\r\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public void setCommand(String command) {\n this.command = command;\n }", "public void setCommand(String command) {\n this.command = command;\n }", "public void add_command(String commandName, String source_code) {\n FileWriter fileWriter;\n try {\n File idea = new File(\"/target/classes/\" + RPC_QUEUE_NAME + \"Commands/\" + commandName + \".class\");\n if (idea.exists()) {\n Client.channel.writeAndFlush(new ErrorLog(LogLevel.ERROR, commandName + \" Already exists please use update\"));\n return;\n }\n fileWriter = new FileWriter(idea);\n BufferedWriter bufferedWriter =\n new BufferedWriter(fileWriter);\n bufferedWriter.write(source_code);\n bufferedWriter.close();\n } catch (IOException e) {\n e.printStackTrace();\n StringWriter errors = new StringWriter();\n e.printStackTrace(new PrintWriter(errors));\n Client.channel.writeAndFlush(new ErrorLog(LogLevel.ERROR, errors.toString()));\n }\n\n }", "public void setCommand(String command) {\n _command = command;\n }", "public MethodBuilder command(String command) {\n\t\tif (!command.endsWith(\";\")) {\n\t\t\tcommand += \";\";\n\t\t}\n\t\tcommands.add(command);\n\t\treturn this;\n\t}", "public Builder addCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCommandIsMutable();\n command_.add(value);\n onChanged();\n return this;\n }", "public void addCommand(CommandInfo command) {\n\t\ttry {\n\t\t\tcommandsQueue.put(command);\n\t\t} catch(InterruptedException exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "public void registerCommand(Command c) {\n\t\tcommands.add(c);\n\t}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "@Override\n public void addPreCommand(String preCommand) {\n }", "public final void addCommand(Function<Integer, ICommand> cmdGenFunc) {\n int index = commandList.size() + 1;\n ICommand command = cmdGenFunc.apply(index);\n addCommand(command);\n }", "public void addCommand(String command, Object... arguments) {\n\t\tthis.command = command;\n\t\tthis.args2 = arguments;\n\t\tisList = false;\n\t}", "private void registerCommands() {\n }", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "protected void setCommand(String command)\n {\n Command = command;\n }", "void addCommandLineExtension(ICommandLineArgumentsExtension extension);", "public abstract void setCommand(String cmd);", "Command createCommand();", "public void addDrawingCommand(DrawingCommand drawingCommand) {\r\n\t\tthis.commands.add(drawingCommand);\r\n\t\tthis.setChanged();\r\n\t\tthis.notifyObservers();\r\n\t\temptyRedo();\r\n\t}", "public void add(String commandText) {\n if (!commandText.isBlank()) {\n history.addFirst(commandText);\n }\n caret = history.listIterator();\n }", "public final void register(ConsoleCmd cmd) {\n if (cmdList.containsKey(cmd.name)) {\n logger.warn(\"Trying to add command '{}', which already exists!\", cmd.getName());\n return;\n }\n cmdList.put(cmd.name, cmd);\n }", "public MinigameCommand(String name){\n super(name);\n commandAliases = Collections.singletonList(name);\n }", "public boolean setToolCommand(String command);", "@Override\n\tpublic LSystemBuilder registerCommand(char symbol, String command) {\n\t\tcommands.put(symbol, command);\n\t\treturn this;\n\t}", "abstract public void addChild(Command cmd);", "void setNewCommand() {\n myCanvas.removeCommand(myPauseCommand);\n myCanvas.removeCommand(myGoCommand);\n myCanvas.addCommand(myNewCommand);\n }", "public AddCommand(Event event) {\n this.event = event;\n }", "public void registerCommand(Commands cmd) {\n\n String cmdName = cmd.getName();\n if(cmdMap.containsKey(cmdName))\n throw new IllegalArgumentException(cmdName + \" already defined.\");\n\n cmdMap.put(cmdName, cmd);\n }", "private void registerArgument(final CmdProperties baseCmd) {\n commandClasses.put(baseCmd.getCommand(), baseCmd);\n }", "public void setCommand(int command)\n\t{\n\t\tthis.command = command;\n\t}", "private void putCommand(String cmd) {\n try {\n stream.write((cmd).getBytes(StandardCharsets.UTF_8));\n } catch (IOException | InterruptedException e) {\n e.printStackTrace();\n }\n }", "CommandTypes(String command) {\n this.command = command;\n }", "public final void addCommand(ICommandFactory commandFactory, String name, String... args) {\n addCommand(index -> commandFactory.newCommand(index, name, args));\n }", "@Override\n public void addPostCommand(String postCommand) {\n }", "public void addCommand(String command, List<Double> arguments) {\n\t\tthis.command = command;\n\t\tthis.args1 = arguments;\n\t\tisList = true;\n\t}", "public Object executeScript(String command);", "public void setCommand(Command c) {\r\n\t\tcommand = c;\r\n\t}", "protected void addCommandExecutor(ExecutorBase executor) {\n PluginCommand command = getCommand(executor.getName());\n command.setExecutor(executor);\n command.setTabCompleter(executor);\n }", "String createCommand(String commandType, AttributeList properties);", "public void command() {\n List<String> commands = new ArrayList<>();\n commands.add(\": start\");\n commands.add(\": exit\");\n commands.add(\": help\");\n commands.add(\": commands\");\n\n for (String command : commands) {\n System.out.println(command);\n }\n System.out.println();\n }", "public void addCommand(int screenId, CommandType type, int priority, int auto, String key, String value,\r\n\t\t\tDisplayOn display, boolean select, boolean isDefault, String label, int nextScreen) {\r\n\t\tElement command = mDocument.createElement(\"IppCommand\");\r\n\t\tcommand.setAttribute(\"Type\", type.toString());\r\n\t\tif (priority > 0) {\r\n\t\t\tcommand.setAttribute(\"Priority\", String.valueOf(priority));\r\n\t\t}\r\n\t\tif (auto > 0) {\r\n\t\t\tcommand.setAttribute(\"Auto\", String.valueOf(auto));\r\n\t\t}\r\n\t\tif (key != null && value != null) {\r\n\t\t\tcommand.setAttribute(\"Key\", key);\r\n\t\t\tcommand.setAttribute(\"Value\", value);\r\n\t\t}\r\n\t\tcommand.setAttribute(\"DisplayOn\", display.toString());\r\n\t\tif (select) {\r\n\t\t\tcommand.setAttribute(\"Select\", \"YES\");\r\n\t\t}\r\n\t\tif (isDefault) {\r\n\t\t\tcommand.setAttribute(\"Default\", \"YES\");\r\n\t\t}\r\n\t\tmScreens.get(screenId).appendChild(command);\r\n\r\n\t\taddTextNode(command, \"Label\", label);\r\n\t\tif (type == CommandType.SCREEN) {\r\n\t\t\taddTextNode(command, \"ScreenID\", String.valueOf(nextScreen));\r\n\t\t}\r\n\t}", "public NativeExecutable(String command) {\n this.command = command;\n }", "public void addCommand(String auth, Command command) {\n if(sessionCommandQueue.containsKey(auth)) {\n sessionCommandQueue.get(auth).add(command);\n } else {\n List<Command> list = new ArrayList<>();\n list.add(command);\n sessionCommandQueue.put(auth, list);\n }\n }", "public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }", "private String buildCommand(String command) {\n return String.format(\"echo $(date -u) 'Executing: %1$s' >> %2$s 2>&1; \" +\n \"source /etc/profile; \" +\n \"%1$s + >> %2$s 2>&1\",\n command, scriptOutputPath);\n }", "public AddEventCommand(String instruction, String date) {\n this.instruction = instruction;\n this.date = date;\n }", "public void registerCommand(String cmd, BaseCommand executor) throws Exception {\n\t\tPluginCommand command = Bukkit.getServer().getPluginCommand(cmd.toLowerCase());\n\t\tif (command == null) {\n\t\t\tConstructor<?> constructor = PluginCommand.class.getDeclaredConstructor(String.class, Plugin.class);\n\t\t\tconstructor.setAccessible(true);\n\t\t\tcommand = (PluginCommand) constructor.newInstance(cmd, RavenPlugin.get());\n\t\t}\n\t\tcommand.setExecutor(executor);\n\t\tList<String> list = Arrays.asList(executor.aliases);\n\t\tcommand.setAliases(list);\n\t\tif (command.getAliases() != null) {\n\t\t\tfor (String alias : command.getAliases())\n\t\t\t\tunregisterCommand(alias);\n\t\t}\n\t\ttry {\n\t\t\tField field = executor.getClass().getDeclaredField(\"description\");\n\t\t\tfield.setAccessible(true);\n\t\t\tif (field != null && field.get(executor) instanceof String)\n\t\t\t\tcommand.setDescription(ChatColor.translateAlternateColorCodes('&', (String) field.get(executor)));\n\t\t} catch (Exception ex) {}\n\t\tcommandMap.register(cmd, command);\n\t}", "java.lang.String getCommand();", "public AGameCommand(Command command) {\n this.game = Game.getInstance();\n this.command = command;\n }", "public void addCommandToHistory(String command) {\r\n commandHistory.add(command);\r\n }", "private void addGalleryCommand(FlamingoCommand command) {\n JCommandToggleButton button = (JCommandToggleButton) command.buildButton();\n button.getActionModel().addChangeListener(new ChangeListener() {\n boolean wasRollover = false;\n\n @Override\n public void stateChanged(ChangeEvent e) {\n boolean isRollover = button.getActionModel().isRollover();\n if (wasRollover && !isRollover) {\n if (galleryModel != null) {\n galleryModel.cancelPreview(command);\n }\n }\n if (!wasRollover && isRollover) {\n if (galleryModel != null) {\n galleryModel.activatePreview(command);\n }\n }\n wasRollover = isRollover;\n }\n });\n\n this.buttons.add(button);\n this.buttonSelectionGroup.add(button);\n this.commands.add(command);\n button.setDisplayState(this.buttonDisplayState);\n\n super.add(button);\n }", "private void addCommand(byte command) {\r\n if (journal_entries >= command_journal.length) {\r\n // Resize command array.\r\n int grow_size = Math.min(4000, journal_entries);\r\n grow_size = Math.max(4, grow_size);\r\n byte[] new_command_journal = new byte[journal_entries + grow_size];\r\n System.arraycopy(command_journal, 0, new_command_journal, 0,\r\n journal_entries);\r\n command_journal = new_command_journal;\r\n }\r\n\r\n command_journal[journal_entries] = command;\r\n ++journal_entries;\r\n }", "public void setCommand(@NonNull Command<Boolean, String> command) {\n this.command = command;\n }", "public void setActionCommand(String command) {\n this.command = command;\n }", "public void sendCommand(Command cmd);", "String getCommand();", "public void handleCommand(String command);", "public abstract void doCommand(String command);", "public xCommandOnText(String command){ this.init(command); }", "public void noSuchCommand() {\n }", "public void updateCommand(Command command) {\n this.command = command;\n }", "final public void setActionCommand(String command) {\n this.command = command;\n }", "@Override\n\tpublic void setCommand(String command) {\n\t\tmodel.setCommand(command);\n\t}", "public void addCommandMutable(ListItem task) {\n this.listItems.add(task);\n }", "MenuItem addItem(String title, Command callback);", "void sendCommand(CommandEvent event);", "void add(String prompt, UIMenuAction action);", "public void add(Command c) {\n history.add(0, c);\n future.clear();\n }", "public void cmdAdd( String name, String msg ) {\r\n String[] args = msg.split( \";\" );\r\n\r\n if( args.length != 3 ) {\r\n m_botAction.sendSmartPrivateMessage(name, \"Incorrect number of arguments found. Use ; to separate each. Ex: !add !start;8;Starts the game.\" );\r\n return;\r\n }\r\n\r\n try {\r\n String command = args[0];\r\n int votesReq = Integer.parseInt(args[1]);\r\n String display = args[2];\r\n AutoTask c = new AutoTask( command, votesReq, display );\r\n tasks.add(c);\r\n m_botAction.sendSmartPrivateMessage( name, \"Task added: \" + command );\r\n String s = \"Autopilot: \" + name + \" has added this task: \" + command;\r\n\r\n // Display to chat for people who are not extremely important\r\n if( m_opList.getAccessLevel(name) < OperatorList.SMOD_LEVEL ) {\r\n m_botAction.sendChatMessage( s );\r\n }\r\n } catch (Exception e) {\r\n m_botAction.sendSmartPrivateMessage(name, \"Couldn't parse that. Ex: !add dolock,setship 2,spec 10;8;Starts the game.\" );\r\n }\r\n }", "public void addSubCommand(CommandBase subCmd) {\r\n\t\tsubCommands.put(subCmd.getCommandName(), subCmd);\r\n\t\tif (subCmd.getCommandAliases() != null) {\r\n\t\t\tfor (Object alias : subCmd.getCommandAliases()) {\r\n\t\t\t\tString aliasStr = (String) alias;\r\n\t\t\t\tsubCommands.put(aliasStr, subCmd);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void addPermission(Class<? extends AeroCommandBase<?>> command, String permission) {\n\n Set<String> requires = permissions.get(command);\n\n if (requires == null) {\n requires = new HashSet<String>();\n }\n\n requires.add(permission.toLowerCase());\n permissions.put(command, requires);\n }", "public TaskList addCommand(ListItem task) {\n List<ListItem> tempList = new ArrayList<>(this.listItems);\n tempList.add(task);\n return new TaskList(tempList);\n }", "private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }", "public void _add(CommandInterpreter ci) {\n int a = Integer.parseInt(ci.nextArgument());\n int b = Integer.parseInt(ci.nextArgument());\n ci.println(a+b);\n }", "public AddCommand(Task task){\r\n this.task = task;\r\n }", "public HelpDisplayBuilder add(String command, String description) {\n commands.put(command, description);\n return this;\n }", "public interface Command {\n \n /**\n * Méthode utilisée pour réaliser l'action voulue.\n */\n public void execute();\n \n /**\n * Méthode utilisée pour annuler la dernière action.\n */\n public void undo();\n}", "@RequestMapping(method = RequestMethod.POST)\n @Override\n public String add(@RequestBody Command command) {\n if (command == null)\n throw new ServiceException(new DataValidationException(\"No command data provided\"));\n try {\n repos.save(command);\n return command.getId();\n } catch (Exception e) {\n logger.error(\"Error adding Command: \" + e.getMessage());\n throw new ServiceException(e);\n }\n }", "public void write(String command) {\n write(command, true);\n }", "Commands createCommands();", "public Builder setCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n command_ = value;\n onChanged();\n return this;\n }", "public String getCommand() { return command; }", "private Command createAddCommand(ArrayList<String> arguments) {\n Command command;\n Tasks task;\n \n ArrayList<String> combinedDescriptionList = createNewListWithCombinedDescription(arguments);\n \n if (!(combinedDescriptionList == null)) {\n task = createTaskListForAddingOrUpdating(combinedDescriptionList);\n if (!(task == null)) {\n command = new Command(\"add\", task);\n } else {\n command = createInvalidCommand();\n }\n } else {\n command = createInvalidCommand();\n }\n \n return command;\n }", "public static void addSubCommand(String root,String sub) {\n\t\tcommands.get(root).add(sub);\n\t\tlast[0] = root;\n\t\tlast[1] = sub;\n\t}", "public interface Command {\n\n\n}", "@Override\n public void executeAction(String command) {\n String[] parts = command.split(\",\");\n Task task = Task.buildTask(parts[0], parts[1], DateSorting.parseDate(\"dd-MM-yyyy\", parts[2]),\n parts[3], parts[4]);\n\n TodoList.tasks.put(task.getId(), task);\n System.out.println(\"IP.TodoListApplication.App.Task successfully added!\");\n\n }", "public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }", "public void sendCommand(String command){\n sendCommand(command, true);\n fromPlugin = false;\n\n }" ]
[ "0.72104096", "0.72059447", "0.6978037", "0.6970827", "0.6705684", "0.66725594", "0.66601753", "0.6550686", "0.64644843", "0.62631965", "0.6217616", "0.6184001", "0.6176221", "0.61525047", "0.61378175", "0.61327296", "0.6099166", "0.6073836", "0.60655236", "0.60586786", "0.60192406", "0.59677505", "0.59477323", "0.5881099", "0.5865717", "0.58311206", "0.5827404", "0.57948077", "0.5791819", "0.57754105", "0.576921", "0.57672477", "0.57287955", "0.57088083", "0.56914794", "0.5677665", "0.56682", "0.5665537", "0.5646556", "0.5600573", "0.5596511", "0.5588971", "0.5570005", "0.55509955", "0.55393225", "0.5535794", "0.55297935", "0.5526941", "0.55014247", "0.54928744", "0.5490427", "0.5462228", "0.54372823", "0.543727", "0.5436563", "0.5433357", "0.5428219", "0.5426659", "0.5412849", "0.5410069", "0.54100245", "0.54063255", "0.5398892", "0.53967345", "0.53940845", "0.53911036", "0.53835094", "0.5362956", "0.5360447", "0.53571475", "0.535437", "0.53375465", "0.53197914", "0.5319429", "0.5313585", "0.5310633", "0.5305948", "0.5291231", "0.5288526", "0.5284566", "0.5279213", "0.52780944", "0.52760774", "0.5264056", "0.52608734", "0.5260661", "0.52383745", "0.5237723", "0.5234749", "0.52302533", "0.52216995", "0.5216943", "0.5211142", "0.520543", "0.52039164", "0.5199979", "0.51956815", "0.5176949", "0.516236", "0.51560134" ]
0.5364532
67
Creates an elapsed time instance from a milliseconds value.
public ElapsedTime(double elapsedTimeInMilliseconds) { double time = elapsedTimeInMilliseconds / 1000; seconds = (int) (time % 60); minutes = (int) ((time % 3600) / 60); hours = (int) ((time % 86400) / 3600); days = (int) (time / 86400); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String milliSecondsToTimer(long milliseconds){\r\n String finalTimerString = \"\";\r\n String secondsString = \"\";\r\n \r\n // Convert total duration into time\r\n int hours = (int)( milliseconds / (1000*60*60));\r\n int minutes = (int)(milliseconds % (1000*60*60)) / (1000*60);\r\n int seconds = (int) ((milliseconds % (1000*60*60)) % (1000*60) / 1000);\r\n // Add hours if there\r\n if(hours > 0){\r\n finalTimerString = hours + \":\";\r\n }\r\n \r\n // Prepending 0 to seconds if it is one digit\r\n if(seconds < 10){\r\n secondsString = \"0\" + seconds;\r\n }else{\r\n secondsString = \"\" + seconds;}\r\n \r\n finalTimerString = finalTimerString + minutes + \":\" + secondsString;\r\n \r\n // return timer string\r\n return finalTimerString;\r\n }", "public String milliSecondsToTimer(long milliseconds){\n\t\tString finalTimerString = \"\";\n\t\tString secondsString = \"\";\n\t\t\n\t\t// Convert total duration into time\n\t\t int hours = (int)( milliseconds / (1000*60*60));\n\t\t int minutes = (int)(milliseconds % (1000*60*60)) / (1000*60);\n\t\t int seconds = (int) ((milliseconds % (1000*60*60)) % (1000*60) / 1000);\n\t\t // Add hours if there\n\t\t if(hours > 0){\n\t\t\t finalTimerString = hours + \":\";\n\t\t }\n\t\t \n\t\t // Prepending 0 to seconds if it is one digit\n\t\t if(seconds < 10){ \n\t\t\t secondsString = \"0\" + seconds;\n\t\t }else{\n\t\t\t secondsString = \"\" + seconds;}\n\t\t \n\t\t finalTimerString = finalTimerString + minutes + \":\" + secondsString;\n\t\t\n\t\t// return timer string\n\t\treturn finalTimerString;\n\t}", "public Builder addSinceTimeMs(long value) {\n ensureSinceTimeMsIsMutable();\n sinceTimeMs_.addLong(value);\n onChanged();\n return this;\n }", "public MillisecondConverter(long millis) {\n\t\t\tmilliseconds = millis;\n\t\t\tseconds = millis / 1000;\n\t\t\tminutes = seconds / 60;\n\t\t\thours = minutes / 60;\n\t\t}", "public final native double setTime(double milliseconds) /*-{\n this.setTime(milliseconds);\n return this.getTime();\n }-*/;", "public Builder setTimeInMilliSeconds(long value) {\n\n timeInMilliSeconds_ = value;\n onChanged();\n return this;\n }", "public Builder setSinceTimeMs(\n int index, long value) {\n ensureSinceTimeMsIsMutable();\n sinceTimeMs_.setLong(index, value);\n onChanged();\n return this;\n }", "public Timeout(final long milliseconds)\n\t{\n\t\tthis(milliseconds, TimeUnit.MILLISECONDS);\n\t}", "public static String convertTimeMillisecondsAsLongToDuration(long milliseconds) {\n\t\t\t\tString hours = String.format(\"%02d\", TimeUnit.MILLISECONDS.toHours(milliseconds));\n\t\t\t\tString minutes = String.format(\"%02d\",\n\t\t\t\t\t TimeUnit.MILLISECONDS.toMinutes(milliseconds) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(milliseconds)));\n\t\t\t String seconds = String.format(\"%02d\",\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(milliseconds) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(milliseconds)));\n\t\t\t String duration = Integer.valueOf(hours) + \":\" + minutes + \":\" + seconds;\n\t\t\t return duration; \n\t\t\t}", "public Value(long millis) throws IllegalArgumentException {\n\n // Check preconditions\n if (millis < 0L) {\n throw new IllegalArgumentException(\"millis (\" + millis + \" < 0L\");\n }\n\n // Convert the number of milliseconds to a Date object\n java.util.Date date = new java.util.Date(millis);\n\n // Construct the Calendar\n _calendar = Calendar.getInstance();\n _calendar.setTime(date);\n }", "public static String millisecondsToDateTimeDuration(long milliseconds) {\n long hours = MILLISECONDS.toHours(milliseconds);\n long minutes = MILLISECONDS.toMinutes(milliseconds % MINUTES_MOD);\n long seconds = MILLISECONDS.toSeconds((milliseconds % MINUTES_MOD) % SECONDS_MOD);\n\n return String.format(\"PT%02dH%02dM%02dS\", hours, minutes, seconds);\n }", "public void setMillis(java.lang.Integer value) {\n this.millis = value;\n }", "long toTimelineValue(long millisecond);", "public void setMilliseconds(long milliseconds) {\n\t\tthis.milliseconds = milliseconds;\n\t}", "public static long convertTimeMillisecondsAsStringToSeconds(String milliseconds) {\n\t\t\t\tint MILLISECONDS_IN_A_SECOND = 1000;\n\t\t\t\tDouble d = Double.valueOf(milliseconds) / Double.valueOf(MILLISECONDS_IN_A_SECOND);\n\t\t\t\treturn Math.round(d);\n\t\t\t}", "public com.alibaba.dts.formats.avro.Timestamp.Builder setMillis(int value) {\n validate(fields()[1], value);\n this.millis = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public long toTimelineValue(long millisecond) { return millisecond; }", "public static long convertTimeMillisecondsAsLongToSeconds(long milliseconds) {\n\t\t\t\tint MILLISECONDS_IN_A_SECOND = 1000;\n\t\t\t\tDouble d = Double.valueOf(milliseconds) / Double.valueOf(MILLISECONDS_IN_A_SECOND);\n\t\t\t\treturn Math.round(d);\n\t\t\t}", "public String convertTimeMillisecondsAsLongToDurationAuto(long milliseconds) {\n\t\t\t\tString hours = String.format(\"%02d\", TimeUnit.MILLISECONDS.toHours(milliseconds));\n\t\t\t\tString minutes = String.format(\"%02d\",\n\t\t\t\t\t TimeUnit.MILLISECONDS.toMinutes(milliseconds) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(milliseconds)));\n\t\t\t String seconds = String.format(\"%02d\",\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(milliseconds) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(milliseconds)));\n\t\t\tif (Integer.valueOf(hours) == 0) {\n\t\t\t\tString duration = minutes + \":\" + seconds;\n\t\t\t return duration;\n\t\t\t} else {\n\t\t\t String duration = hours + \":\" + minutes + \":\" + seconds;\n\t\t\t return duration;\n\t\t\t} \n\t\t\t}", "public static LocalDateTime dateTimeFromMilliseconds(Number milliseconds) {\n return LocalDateTime.ofInstant(\n Instant.ofEpochMilli(milliseconds.longValue()), ZoneOffset.UTC);\n }", "public long toMillisecond(long value) { return value; }", "long toMillisecond(long timelineValue);", "public void setValidToMillis(java.lang.Long value) {\n this.validToMillis = value;\n }", "public Timer(long millisecond) {\r\n this.period = millisecond;\r\n reset();\r\n }", "protected static float toMilliseconds(int unit, float value) {\n \t\tswitch (unit) {\n \t\tcase CSSPrimitiveValue.CSS_MS:\n \t\t\treturn value;\n \t\tcase CSSPrimitiveValue.CSS_S:\n \t\t\treturn (value * 1000);\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}", "public static String getElapsedTimeFromMilliseconds(long inputTime)\r\n {\r\n String format = String.format(\"%%0%dd\", 2);\r\n long elapsedTime = inputTime / 1000000;\r\n String millisecond = String.format(format, elapsedTime % 1000);\r\n String seconds = String.format(format, (elapsedTime/1000) % 60);\r\n String minutes = String.format(format, ((elapsedTime/1000) % 3600) / 60);\r\n String hours = String.format(format, (elapsedTime/1000) / 3600);\r\n\r\n hours = hours.equals(\"00\") ? \"\" : (Integer.parseInt(hours) < 9 ? hours.substring(hours.lastIndexOf(\"0\") + 1)+\":\" :hours+\":\");\r\n minutes = minutes.equals(\"00\") ? \"\" : (Integer.parseInt(minutes) < 9 ? minutes.substring(minutes.lastIndexOf(\"0\") + 1)+\":\" :minutes+\":\");\r\n seconds = seconds.equals(\"00\") ? \"\" : (Integer.parseInt(seconds) < 9 ? seconds.substring(seconds.lastIndexOf(\"0\") + 1)+\",\" :seconds+\",\");\r\n millisecond = millisecond.equals(\"00\") ? \"\" : millisecond+(seconds.equals(\"\") ? \"ms\":(minutes.equals(\"\") ? \" sec\" : \" min\"));\r\n String time = hours+minutes+seconds+millisecond;\r\n return time;\r\n }", "public String convertTimeMillisecondsAsLongToDurationNoLeadZero(long milliseconds) {\n\t\t\t\tString hours = String.format(\"%02d\", TimeUnit.MILLISECONDS.toHours(milliseconds));\n\t\t\t\tString minutes = String.format(\"%02d\",\n\t\t\t\t\t TimeUnit.MILLISECONDS.toMinutes(milliseconds) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(milliseconds)));\n\t\t\t String seconds = String.format(\"%02d\",\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(milliseconds) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(milliseconds)));\n\t\t\tif (Integer.valueOf(hours) == 0) {\n\t\t\t\tint min = Integer.valueOf(minutes);\n\t\t\t if (min != 0) { minutes = String.valueOf(min); }\n\t\t\t String duration = minutes + \":\" + seconds;\n\t\t\t return duration;\n\t\t\t} else {\n\t\t\t hours = String.valueOf(Integer.valueOf(hours));\n\t\t\t String duration = hours + \":\" + minutes + \":\" + seconds;\n\t\t\t return duration;\n\t\t\t} \n\t\t\t}", "public Builder setTime(long value) {\n bitField0_ |= 0x00000008;\n time_ = value;\n onChanged();\n return this;\n }", "public void setValidFromMillis(java.lang.Long value) {\n this.validFromMillis = value;\n }", "public static Velocity newMillimetersPerSecondValue()\n\t{\n\t\treturn new Velocity(0.0, VelocityUnit.MILLIMETERS_PER_SECOND);\n\t}", "public Builder setExecutionTime(long value) {\n bitField0_ |= 0x02000000;\n executionTime_ = value;\n onChanged();\n return this;\n }", "public static Date millisecondsToDate(double value) {\r\n return new Date((long) value);\r\n }", "@SuppressWarnings(\"unchecked\")\n @NonNull\n public T setUsageDurationForCustomComponentMillis(int componentId,\n long componentUsageTimeMillis) {\n mPowerComponentsBuilder.setUsageDurationForCustomComponentMillis(componentId,\n componentUsageTimeMillis);\n return (T) this;\n }", "public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setOccurredMillis(long value) {\n validate(fields()[3], value);\n this.occurredMillis = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public static LocalDateTime dateTimeFromMilliseconds(long milliseconds) {\n return LocalDateTime.ofInstant(\n Instant.ofEpochMilli(milliseconds), ZoneOffset.UTC);\n }", "Millimeter createMillimeter();", "public static String updateText(long milliseconds) {\n\t\tString finalTimeString = \"\";\n\t\tString secondsString = \"\";\n\n\t\tint hours = (int) (milliseconds / (1000 * 60 * 60));\n\t\tint minutes = (int) ((milliseconds % (1000 * 60 * 60)) / (1000 * 60));\n\t\tint seconds = (int) ((milliseconds % (1000 * 60 * 60)) % (1000 * 60) / 1000);\n\n\t\tif (hours > 0)\n\t\t\tfinalTimeString = hours + \":\";\n\n\t\tif (seconds < 10)\n\t\t\tsecondsString = \"0\" + seconds;\n\t\telse\n\t\t\tsecondsString = \"\" + seconds;\n\n\t\tfinalTimeString = finalTimeString + minutes + \":\" + secondsString;\n\n\t\treturn finalTimeString;\n\t}", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setValidFromMillis(long value) {\n validate(fields()[4], value);\n this.validFromMillis = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "public static String getDateFromLong(String milliseconds){\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMM dd,yyyy HH:mm\");\n Date resultdate = new Date(Long.parseLong(milliseconds));\n return sdf.format(resultdate);\n }", "public JsonArrayOfAtMillisecondsElement(final String name, final List<Long> values) {\n\t\tsuper(name, getStringList(values));\n\t}", "public Time (long elapseTime) {\r\n\t\tsetTime(elapseTime);\r\n\t}", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setValidToMillis(long value) {\n validate(fields()[5], value);\n this.validToMillis = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "long getTimeInMilliSeconds();", "public InactivityTimeout milliseconds(long n) {\n millis += n;\n return this;\n }", "public Builder setServerMs(long value) {\n \n serverMs_ = value;\n onChanged();\n return this;\n }", "public static String displayTime(long milliseconds) {\n String displayTime = \"\";\n double seconds = milliseconds / 1000.0;\n int minute = (int) (seconds / 60);\n double second = seconds % 60;\n displayTime = String.format(\"%02d:%06.3f\", minute, second);\n\n return displayTime;\n }", "public static final Function<Date,Date> addMilliseconds(final int amount) {\r\n return new Add(Calendar.MILLISECOND, amount);\r\n }", "public Builder setTime(long value) {\n\n time_ = value;\n onChanged();\n return this;\n }", "private long extractMillis(String value)\r\n/* 364: */ {\r\n/* 365:318 */ int start = value.indexOf(\"\\\"\");\r\n/* 366:319 */ int end = value.lastIndexOf(\"\\\"\");\r\n/* 367:320 */ String time = value.substring(start + 1, end);\r\n/* 368: */ \r\n/* 369:322 */ Date result = null;\r\n/* 370: */ try\r\n/* 371: */ {\r\n/* 372:324 */ result = this.format.parse(time);\r\n/* 373: */ }\r\n/* 374: */ catch (ParseException e)\r\n/* 375: */ {\r\n/* 376:327 */ Mark.err(new Object[] {\"Unalble to get milliseconds from\", value });\r\n/* 377:328 */ return 0L;\r\n/* 378: */ }\r\n/* 379:331 */ return result.getTime();\r\n/* 380: */ }", "public long elapsedMillis() {\n/* 162 */ return elapsedTime(TimeUnit.MILLISECONDS);\n/* */ }", "public void setStartTime(long milliseconds) {\r\n\t\tthis.startTime = milliseconds;\r\n\t}", "public static Velocity newMillimetersPerSecondValue(Double new_val)\n\t{\n\t\treturn new Velocity(new_val, VelocityUnit.MILLIMETERS_PER_SECOND);\n\t}", "public final native double setSeconds(int seconds, int millis) /*-{\n this.setSeconds(seconds, millis);\n return this.getTime();\n }-*/;", "public static JsonArrayOfAtMillisecondsElement createElementFromTimes(final String name, final List<Time> times) {\n\t\tfinal List<Long> millis = new ArrayList<Long>(times.size());\n\t\tfor (Time time: times)\n\t\t\tmillis.add(time.getTime());\n\t\treturn new JsonArrayOfAtMillisecondsElement(name, millis);\n\t}", "public void setOccurredMillis(java.lang.Long value) {\n this.occurredMillis = value;\n }", "public Builder setCombatStartMs(long value) {\n \n combatStartMs_ = value;\n onChanged();\n return this;\n }", "public static final Function<Date,Date> setMillisecond(final int value) {\r\n return new Set(Calendar.MILLISECOND, value);\r\n }", "public static String toHumanReadableTime(long milliseconds) {\n StringBuilder sb = new StringBuilder();\n int len = TIME_UNITS.length;\n int i = 0;\n for (; i < len; i++) {\n long quotient = milliseconds / TIME_UNITS[i];\n if (quotient > 0) {\n if (sb.length() > 0) {\n sb.append(' ');\n }\n sb.append(quotient).append(TIME_UNITS_ABBR[i]);\n milliseconds = milliseconds % TIME_UNITS[i];\n }\n }\n if (sb.length() > 0) {\n if (milliseconds > 0) {\n sb.append(' ').append(milliseconds).append(TIME_UNITS_ABBR[i]);\n }\n } else {\n sb.append(milliseconds).append(TIME_UNITS_ABBR[i]);\n }\n return sb.toString();\n }", "public void setElapsedMs(long elapsed)\n\t{\n\t\tif (elapsed < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Elapsed cannot be negative\");\n\t\t}\n\n\t\tif (m_running)\n\t\t{\n\t\t\t//on running clear elapsed and handle everything with mLastElapsed\n\t\t\tlong now = SystemClock.elapsedRealtime();\n\t\t\tm_elapsedMs = 0;\n\t\t\tm_lastMs = now - elapsed; //this causes now elapsed time to elapsed\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm_elapsedMs = elapsed;\n\t\t}\n\t}", "public long getSinceTimeMs(int index) {\n return sinceTimeMs_.getLong(index);\n }", "public static double getTimeMs(){\n return System.nanoTime()*nanoToMs;\n }", "public final native double setMinutes(int minutes, int seconds, int millis) /*-{\n this.setMinutes(minutes, seconds, millis);\n return this.getTime();\n }-*/;", "public long getSinceTimeMs(int index) {\n return sinceTimeMs_.getLong(index);\n }", "public Long getDurationMs();", "public void setManagementElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(MANAGEMENTELAPSED_PROP.get(), value);\n }", "public long getMilliseconds() {\n\t\treturn milliseconds;\n\t}", "public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(WORKELAPSED_PROP.get(), value);\n }", "public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(WORKELAPSED_PROP.get(), value);\n }", "public void setManagementElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(MANAGEMENTELAPSED_PROP.get(), value);\n }", "public static Long getSeconds(Long millis) {\n return TimeUnit.MILLISECONDS.toSeconds(millis);\n }", "public static String formatConsumeTimeMillis(long millis) { \r\n\t long days = millis / (1000 * 60 * 60 * 24); \r\n\t long hours = (millis % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60); \r\n\t long minutes = (millis % (1000 * 60 * 60)) / (1000 * 60); \r\n\t double seconds = (millis % (1000 * 60)) / 1000.0; \r\n\t return days + \" dats \" + hours + \" hours \" + minutes + \" mins \" \r\n\t + seconds + \" seconds\";\r\n\t}", "public static String convertMillis(long millis){\n\t\tlong hours = millis / 3600000;\r\n\t\tmillis = millis % 3600000;\r\n\t\tlong minutes = millis / 60000;\r\n\t\tmillis = millis % 60000;\r\n\t\tlong seconds = millis / 1000;\r\n\t\t\r\n\t\tString strHours = hours + \"\";\t\t\t\t\t//pretvaranje cjelobrojnih vrijednosti u satima, minutama i sekundama\r\n\t\tString strMinutes = minutes + \"\";\t\t\t\t//u String vrijednosti \r\n\t\tString strSeconds = seconds + \"\";\r\n\t\t\r\n\t\treturn strHours + \":\" + strMinutes + \":\" + strSeconds + \".\";\t\r\n\t}", "public static String timem( long p_lMillis ) {\n String sTime = \"\";\n if ( p_lMillis > 999 ) sTime =time( p_lMillis );\n sTime += \" \" + (p_lMillis % 1000 ) + \"ms\"; \n return sTime;\n }", "public void setTime(long timeMillis) {\n this.timeMillis = timeMillis;\n }", "public double getElapsedTime() {\r\n return (double) (elapsedTime / 1000.0); // convert from milliseconds to seconds\r\n }", "public Builder setMinigameEndMs(long value) {\n \n minigameEndMs_ = value;\n onChanged();\n return this;\n }", "static long getMilliSecondsPart(Duration d) {\n long u = d.toMillis() % 1000;\n\n return u;\n }", "Timer(int tempTotalTime) {\n totalTime = tempTotalTime;\n }", "public static Velocity newMicrometersPerSecondValue()\n\t{\n\t\treturn new Velocity(0.0, VelocityUnit.MICROMETERS_PER_SECOND);\n\t}", "public Timer setPeriod(long millisecond) {\r\n this.period = millisecond;\r\n return this;\r\n }", "public Builder addAllSinceTimeMs(\n java.lang.Iterable<? extends java.lang.Long> values) {\n ensureSinceTimeMsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, sinceTimeMs_);\n onChanged();\n return this;\n }", "public void setVideoJittcomp(int milliseconds);", "public long elapsedTime(TimeUnit desiredUnit) {\n/* 153 */ return desiredUnit.convert(elapsedNanos(), TimeUnit.NANOSECONDS);\n/* */ }", "public long getElapsedMilliSecond() {\n long elapsed;\n if (running) {\n elapsed = (System.nanoTime() - startTime) / 1000000;\n } else {\n elapsed = (stopTime - startTime) / 1000000;\n }\n return elapsed;\n }", "public Builder setDecodedAudioTimeoutMs(float value) {\n bitField0_ |= 0x00000001;\n decodedAudioTimeoutMs_ = value;\n onChanged();\n return this;\n }", "public Builder clearSinceTimeMs() {\n sinceTimeMs_ = emptyLongList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "protected void sequence_MILLISECONDS(ISerializationContext context, MillisecondValue semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public Builder setDecodedAudioTimeoutMs(float value) {\n bitField0_ |= 0x00000002;\n decodedAudioTimeoutMs_ = value;\n onChanged();\n return this;\n }", "public Builder setCombatEndMs(long value) {\n \n combatEndMs_ = value;\n onChanged();\n return this;\n }", "long getDurationNanos();", "public Builder setQueryTimeSec(long value) {\n bitField0_ |= 0x00000080;\n queryTimeSec_ = value;\n onChanged();\n return this;\n }", "public Builder setNextCollectTimestampMs(long value) {\n bitField0_ |= 0x00000001;\n nextCollectTimestampMs_ = value;\n onChanged();\n return this;\n }" ]
[ "0.61267066", "0.6035916", "0.587469", "0.5795532", "0.57927215", "0.5754408", "0.56936187", "0.56279206", "0.55475223", "0.5536906", "0.5482359", "0.5472126", "0.54393", "0.5421353", "0.54025453", "0.5388564", "0.53164107", "0.5298246", "0.5283061", "0.5247257", "0.5231766", "0.52255815", "0.52161616", "0.52139676", "0.5194585", "0.5121772", "0.5091575", "0.50852776", "0.50602746", "0.5057245", "0.50155014", "0.5010166", "0.4961073", "0.49563554", "0.49555868", "0.49444914", "0.49412915", "0.49135146", "0.49135146", "0.49135146", "0.49098802", "0.49098802", "0.49098802", "0.49098802", "0.49036327", "0.49011385", "0.49009687", "0.4895146", "0.48919916", "0.4886953", "0.48743162", "0.48487103", "0.4841021", "0.48399928", "0.48368478", "0.48164412", "0.48079205", "0.48021036", "0.48019138", "0.4798782", "0.47913706", "0.47728932", "0.47700766", "0.47626957", "0.47610292", "0.47397307", "0.4739413", "0.473871", "0.47267583", "0.47031716", "0.46870598", "0.4676441", "0.4675483", "0.46499678", "0.46471468", "0.46446478", "0.46416858", "0.4625111", "0.46201324", "0.46008068", "0.45953128", "0.45937425", "0.45852858", "0.45652282", "0.45603883", "0.4552822", "0.45394948", "0.45358127", "0.45279923", "0.4519384", "0.45171228", "0.45156145", "0.4512135", "0.4511797", "0.45073628", "0.4495545", "0.44842336", "0.44730833", "0.4463161", "0.44572258" ]
0.61008376
1
Gets the minutes component of the time span.
private String getMinutes() { StringBuilder minutesSB = new StringBuilder(); if (minutes > 0) { if (String.valueOf(minutes).length() < 2) { minutesSB.append("0"); } minutesSB.append(minutes); } else { minutesSB.append("0"); } return minutesSB.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getMinutes() {\n\t\tdouble v = value * (180.0d / Math.PI);\n\t\tv -= getDegrees();\n\t\treturn 60 * v; // 60 minutes in one degree.\n\t}", "public int getMinutes() {\r\n return FormatUtils.uint8ToInt(mMinutes);\r\n }", "public int getMinutes(){\n return (int) ((totalSeconds%3600)/60);\n }", "public int getMinutes() {\n\t\treturn minutes;\n\t}", "public int getMinutes() {\n return this.minutes;\n }", "public String getMinutes();", "@Contract(pure = true)\n\tpublic int getMinutes() {\n\t\treturn getSeconds() / 60;\n\t}", "static long getMinutesPart(Duration d) {\n long u = (d.getSeconds() / 60) % 60;\n\n return u;\n }", "public final native int getMinutes() /*-{\n return this.getMinutes();\n }-*/;", "public int getMinutes(){\r\n return Minutes;\r\n }", "Integer getMinute();", "public int getMinute()\n {\n return minute;\n }", "public SpinnerNumberModel getMinutesModel() {\n\treturn this.minutesModel;\n }", "public int getMinute() {\n return minute;\n }", "public int getMinute() {\n return dateTime.getMinute();\n }", "public int getLoMinutes() {\n return loMinutes;\n }", "public int getMinute() {\n return minute;\n }", "public long getElapsedMinutes() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerMm;\n\t}", "public Number getMinutesPerDay()\r\n {\r\n return (m_minutesPerDay);\r\n }", "public int[] getMinutes() {\n return minutes;\n }", "private int getMinute() {\n\t\tString time = getPersistedString(this.defaultValue);\n\t\tif (time == null || !time.matches(VALIDATION_EXPRESSION)) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn Integer.valueOf(time.split(\":|/\")[1]);\n\t}", "public int getMinute() { return this.minute; }", "public int getMinute() {\n\t\treturn this.minute;\n\t}", "public int getDurationMinutes() {\n return durationMinutes;\n }", "public int getMinute() {\n\t\treturn minute;\n\t}", "public int getIntervalMinutes();", "protected int convertToMinutes() {\n\t\treturn this.getMinutes() + (this.getHours() * 60);\n\t}", "@Contract(pure = true)\n\tpublic int getSecondsFromMinute() {\n\t\treturn (getSeconds() - getMinutes() * 60);\n\t}", "public int getStartMinute() {\n\treturn start.getMinute();\n }", "public int getLaMinutes() {\n return laMinutes;\n }", "public String getMinutesStr(){\n \n // return zero\n if (this.getMinutes()==0){\n return \"00\";\n }\n // pad single digit with zero\n else if (this.getMinutes() < 10){\n return '0' + Integer.toString(this.getMinutes()); \n }\n // return double digit\n else {\n return Integer.toString(this.getMinutes());\n }\n\n }", "public String getCurrentMinutes() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"mm\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public int getOccupiedMinutes(){\n \t\treturn (int) (getOccupiedSeconds()/60);\n \t}", "private static int getMinutes(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(3)) * 10) + Character.getNumericValue(time.charAt(4));\n\t}", "public int minuteOfHour() {\r\n\t\treturn mC.get(Calendar.MINUTE);\r\n\t}", "public int getStartMinute() {\n return startMinute;\n }", "public int getEndMinute() {\n\treturn end.getMinute();\n }", "public final native double setMinutes(int minutes) /*-{\n this.setMinutes(minutes);\n return this.getTime();\n }-*/;", "private double convertSecondsToMinutes(int seconds) {\r\n int sec = seconds;\r\n int min = 0;\r\n while (sec > 60) {\r\n sec -= 60;\r\n min++;\r\n }\r\n return Double.valueOf(min + \".\" + sec);\r\n }", "public final native int getUTCMinutes() /*-{\n return this.getUTCMinutes();\n }-*/;", "private String getMinutesInTime(int time) {\n String hour = String.valueOf(time / 60);\n String minutes = String.valueOf(time % 60);\n\n if(minutes.length() < 2) {\n minutes = \"0\" + minutes;\n }\n\n return hour + \":\" + minutes;\n\n }", "public Number getMinutesPerWeek()\r\n {\r\n return m_minutesPerWeek;\r\n }", "public String secondsToMinutes(int seconds){\n int minutes = 0;\n while(seconds >= 60){\n seconds -= 60;\n minutes++;\n }\n String sec;\n if(seconds < 10){\n sec = \"0\" + seconds;\n }else{\n sec = seconds + \"\";\n }\n String time = minutes + \":\" + sec;\n return time;\n }", "public final native double setMinutes(int minutes, int seconds) /*-{\n this.setMinutes(minutes, seconds);\n return this.getTime();\n }-*/;", "public static int getCurrentMinute()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.MINUTE);\n\t}", "public final native double setMinutes(int minutes, int seconds, int millis) /*-{\n this.setMinutes(minutes, seconds, millis);\n return this.getTime();\n }-*/;", "public long getMinutesAsleep() {\n return minutesAsleep;\n }", "public final flipsParser.minute_return minute() throws RecognitionException {\n flipsParser.minute_return retval = new flipsParser.minute_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal379=null;\n Token string_literal380=null;\n Token string_literal381=null;\n Token string_literal382=null;\n\n CommonTree string_literal379_tree=null;\n CommonTree string_literal380_tree=null;\n CommonTree string_literal381_tree=null;\n CommonTree string_literal382_tree=null;\n RewriteRuleTokenStream stream_257=new RewriteRuleTokenStream(adaptor,\"token 257\");\n RewriteRuleTokenStream stream_254=new RewriteRuleTokenStream(adaptor,\"token 254\");\n RewriteRuleTokenStream stream_256=new RewriteRuleTokenStream(adaptor,\"token 256\");\n RewriteRuleTokenStream stream_255=new RewriteRuleTokenStream(adaptor,\"token 255\");\n\n try {\n // flips.g:564:2: ( ( 'min' | 'mins' | 'minute' | 'minutes' ) -> MINUTE )\n // flips.g:564:4: ( 'min' | 'mins' | 'minute' | 'minutes' )\n {\n // flips.g:564:4: ( 'min' | 'mins' | 'minute' | 'minutes' )\n int alt144=4;\n switch ( input.LA(1) ) {\n case 254:\n {\n alt144=1;\n }\n break;\n case 255:\n {\n alt144=2;\n }\n break;\n case 256:\n {\n alt144=3;\n }\n break;\n case 257:\n {\n alt144=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 144, 0, input);\n\n throw nvae;\n }\n\n switch (alt144) {\n case 1 :\n // flips.g:564:5: 'min'\n {\n string_literal379=(Token)match(input,254,FOLLOW_254_in_minute3275); \n stream_254.add(string_literal379);\n\n\n }\n break;\n case 2 :\n // flips.g:564:11: 'mins'\n {\n string_literal380=(Token)match(input,255,FOLLOW_255_in_minute3277); \n stream_255.add(string_literal380);\n\n\n }\n break;\n case 3 :\n // flips.g:564:18: 'minute'\n {\n string_literal381=(Token)match(input,256,FOLLOW_256_in_minute3279); \n stream_256.add(string_literal381);\n\n\n }\n break;\n case 4 :\n // flips.g:564:27: 'minutes'\n {\n string_literal382=(Token)match(input,257,FOLLOW_257_in_minute3281); \n stream_257.add(string_literal382);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 565:2: -> MINUTE\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(MINUTE, \"MINUTE\"));\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public int getMinuteFraction()\n {\n return (((int)(hours*100.0)%100)*60)/100;\n }", "public static int convert(int minutes) {\n return minutes * 60;\n }", "public int getFinishMinute() {\n return finishMinute;\n }", "public Date getTimestampMinute() {\n\treturn timestampMinute;\n }", "private int convertProgressToMinutes(int progress) {\n return progress * MINUTE_PER_PROGRESS;\n }", "public static final long getTicksPerMinute() {\n return p().TICKS_PER_RLMIN;\n }", "public long getDurationInMillis() {\n return Utilities.convertMinutesToMilliseconds(durationMinutes);\n }", "public int getLogMinute(int index)\n {\n return m_Log.get(index).getMinute();\n }", "public String durationInMinutesAndSeconds( ){\n\t\t\n\t\tString time = \"\";\n\t\t\n\t\tint duration = totalTime();\n\n\t\tint minutes = 0;\n\n\t\tint seconds = 0;\n\n\t\tminutes = (int) (duration/60);\n\n\t\tseconds = (int) (duration- (minutes*60));\n\n\t\ttime = minutes + \":\" + seconds +\"\";\n\t\treturn time;\n\t\t\n\t}", "public void setMinutes(int minutes) {\n this.minutes = minutes;\n }", "public static int getMinuteOfTime(long time){\n \t//time-=59999;\n \tif (time==0) { return 0; }\n \tint retMin=0;\n \tlong editMin = time % (60 * 60 * 1000) ;\n \tint oneMin = 1000 * 60;\n \twhile ((retMin*oneMin) < (editMin - 59999)){\n \t\tretMin++;\n \t}\n \treturn retMin;\n }", "public int getUpMinutes() {\n return (int)((_uptime % 3600000) / 60000);\n }", "private int secToMin(int sec){\n return sec/60;\n }", "public int parseTimeForMinute(String time)\n\t{\n\t\ttry {\n\t\t\tDate date = new SimpleDateFormat(\"hh:mma\", Locale.ENGLISH).parse(time);\n\t\t\t\n\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\tint minute = date.getMinutes();\n\t\t\treturn minute;\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn -1;\t\n\t}", "public long getIntervalInMinutes(Time time) {\r\n\t\tCalendar c = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\r\n\t\tDate d = time == null ? new Date() : time.getDate();\r\n\t\tc.setTime(d);\r\n\t\tfor(int i=0; i < _numberOfIntervals.length; i++){\r\n\t\t\tint calendarField = Calendar.MINUTE;\r\n\t\t\tint amount = _numberOfIntervals[i];\r\n\t\t\tswitch (i) {\r\n\t\t\tcase MIN_INTERVAL:\r\n\t\t\t\tcalendarField=Calendar.MINUTE;\r\n\t\t\t\tbreak;\r\n\t\t\tcase HOUR_INTERVAL:\r\n\t\t\t\tcalendarField=Calendar.HOUR;\r\n\t\t\t\tbreak;\r\n\t\t\tcase DAY_INTERVAL:\r\n\t\t\t\tcalendarField=Calendar.DATE;\r\n\t\t\t\tbreak;\r\n\t\t\tcase WEEK_INTERVAL:\r\n\t\t\t\tcalendarField=Calendar.WEEK_OF_MONTH;\r\n\t\t\t\tbreak;\r\n\t\t\tcase MONTH_INTERVAL:\r\n\t\t\t\tcalendarField=Calendar.MONTH;\r\n\t\t\t\tbreak;\r\n\t\t\tcase YEAR_INTERVAL:\r\n\t\t\t\tcalendarField=Calendar.YEAR;\r\n\t\t\t\tbreak;\r\n\t\t\tcase DECADE_INTERVAL:\r\n\t\t\t\tcalendarField=Calendar.YEAR;\r\n\t\t\t\tamount=amount*10;\r\n\t\t\t\tbreak;\r\n\t\t\tcase CENTURY_INTERVAL:\r\n\t\t\t\tcalendarField=Calendar.YEAR;\r\n\t\t\t\tamount=amount*100;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tcalendarField=Calendar.MINUTE;\r\n\t\t\t}\r\n\t\t\tc.add(calendarField, amount);\r\n\t\t}\r\n\t\tlong millis = c.getTime().getTime()-d.getTime();\r\n\t\treturn millis/60000;\r\n\t}", "private void normalGmtStringToMinutes() {\n int i = Integer.parseInt(gmtString.substring(4, 6));\n offsetMinutes = i * 60;\n i = Integer.parseInt(gmtString.substring(7));\n offsetMinutes += i;\n if (gmtString.charAt(3) == MINUS) {\n offsetMinutes *= -1;\n }\n }", "private String getMinutesText(LocalDateTime dateTime1, LocalDateTime dateTime2) {\n Duration duration = Duration.between(dateTime1, dateTime2);\n long minutesToDeadline = Math.abs(duration.toMinutes());\n\n if (minutesToDeadline == 1){\n return VALUE_ONE_MINUTE;\n } else {\n return minutesToDeadline + WORD_SPACE + UNIT_MINUTES;\n }\n }", "public static int getDiffMinutes(String startDate, String endDate) {\n long diff = 0;\n try {\n SimpleDateFormat parser = new SimpleDateFormat(\"HH:mm\");\n long start = parser.parse(startDate).getTime();\n long end = parser.parse(endDate).getTime();\n\n if (startDate.compareTo(endDate) <= 0) { // eg. 09:00 <= 09:10\n diff = end - start;\n } else { // eg. 21:00 ~ 01:00, we should change 01:00 to 25:00\n diff = end + 24 * 60 * 60 * 1000 - start;\n }\n } catch (ParseException e) {\n e.printStackTrace();\n } finally {\n return (int) (diff / (60 * 1000));\n }\n }", "public void setMinutes(String minutes) {\n this.minutes = parseMinutes(minutes);\n }", "static int getMinute(byte[] bytes) {\n if (MINUTE_POS < bytes.length * 8) {\n return readBits(bytes, MINUTE_POS, MINUTE_BITS);\n }\n return 0;\n }", "public java.math.BigInteger getMinutesUntilOkForPickup() {\r\n return minutesUntilOkForPickup;\r\n }", "static long getSecondsPart(Duration d) {\n long u = d.getSeconds() % 60;\n\n return u;\n }", "@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}", "public static int getScanIntervalMinutes(Context context)\n {\n return Integer.parseInt(SystemServices.getSharedPreferences(context).getString(context.getString(R.string.scan_interval_pref), context.getString(R.string.scan_interval_default)));\n }", "public void setMinute(int value) {\n this.minute = value;\n }", "private String readableTime(Integer minutes) {\r\n String time = \"\";\r\n if (minutes / 60.0 > 1) {\r\n time = (minutes / 60) + \" hrs, \"\r\n + (minutes % 60) + \" min\";\r\n } else {\r\n time = minutes + \" min\";\r\n }\r\n return time;\r\n }", "public static long minutesToMilliseconds(int minutes) {\n return minutes * MS_PER_MINUTE;\n }", "public long getElapsedTimeMili() {\n return running ? ((System.currentTimeMillis() - startTime)/100) % 1000 : 0;\n }", "public Integer getMinTime() {\n return minTime;\n }", "public void setMinute(int value) {\n this.minute = value;\n }", "public int getMinute() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: gov.nist.javax.sip.header.SIPDate.getMinute():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.getMinute():int\");\n }", "protected String mo3406c() {\n return \"Minute\";\n }", "public static long minutesBetween(final Date start, final Date end) {\n return Dates.timeDiff(start, end, TimeUnit.MINUTES);\n }", "protected static int getMinute(String dateTime) {\n return Integer.parseInt(dateTime.substring(9, 11));\n }", "public Time( int minutes ) {\n this.minutes = minutes;\n }", "@DISPID(54)\r\n\t// = 0x36. The runtime will prefer the VTID if present\r\n\t@VTID(52)\r\n\tint actualCPUTime_Minutes();", "public long getMinTime()\n {\n return times[0];\n }", "private int convertToMinutes(String hourMinutes) {\n String[] tokens = hourMinutes.split(\":\");\n int hour = Integer.parseInt(tokens[0]);\n int minutes = Integer.parseInt(tokens[1]);\n if ((hour <= 0) || (hour > 12)) {\n throw new IllegalArgumentException(\"Incorrect value entered for hour, must be: 0 < H < 12\");\n }\n if ((minutes < 0) || (minutes > 59)) {\n throw new IllegalArgumentException(\"Incorrect value entered for minute, must be: 0 <= M < 60\");\n }\n\n if (hour == 12) {\n if (minutes == 0) {\n return MAX_MINUTES;\n } else {\n return minutes;\n }\n } else {\n return (hour * 60) + minutes;\n }\n }", "public static Double convertSecondToMinute(final Object seconds) {\n final Double sec = ProcessData.getDouble(seconds);\n if (ProcessData.isValid(sec)) {\n return new Double(sec / 60);\n }\n return 0D;\n }", "public int timeToMinute (int time){\n\t\tif (time<100){\n\t\t\treturn time;\n\t\t}\n\t\telse {\n\t\t\tint hour = time/100;\n\t\t\tint min = time %100;\n\t\t\treturn hour*60 + min;\n\t\t}\n\t\t\n\t}", "public int getEleMinTimeOut(){\r\n\t\t String temp=rb.getProperty(\"eleMinTimeOut\");\r\n\t\t return Integer.parseInt(temp);\r\n\t}", "public int getMiliSeconds() {\r\n\t\treturn milis;\r\n\t}", "public List<Integer> getByMinute() {\n\t\treturn byMinute;\n\t}", "public double getMon6059() {\r\n\t\treturn mon6059;\r\n\t}", "public String duration(){\n long duration =beginTime.getTime()-endTime.getTime();\n long diffMinutes = duration / (60 * 1000) % 60;\n long diffHours = duration / (60 * 60 * 1000);\n if(diffHours ==0)\n return -1*diffMinutes + \" minutes\";\n else\n return \" \"+-1*diffHours+\":\"+ -1*diffMinutes +\"min\";\n }", "int getPaceSeconds() {\r\n\t\tint m = getContents(minutes);\r\n\t\tint s = getContents(seconds);\r\n\t\treturn 60*m +s;\r\n\t}", "public final double getMinTime() {\n\t\treturn minTime;\n\t}", "public Time round() {\n return new Time(DateUtils.truncate(this.date(), Calendar.MINUTE));\n }", "public Integer getDstOffsetMinutes()\n {\n return 0;\n }", "public long getElapsedTimeMin() {\n return running ? (((System.currentTimeMillis() - startTime) / 1000) / 60 ) % 60 : 0;\n }", "private String secondsToMinutesAndSeconds(double seconds) {\n\t\tint numberOfminutes = (int) (seconds / 60);\n\t\tint numberOfSeconds = (int) (seconds % 60);\n\t\tif (numberOfSeconds < 10) {\n\t\t\treturn numberOfminutes + \":0\" + numberOfSeconds;\n\t\t} else {\n\t\t\treturn numberOfminutes + \":\" + numberOfSeconds;\n\t\t}\n\t}", "public boolean isSupportMinutes() {\r\n return true;\r\n }" ]
[ "0.7522286", "0.74158496", "0.7349911", "0.7301023", "0.7254107", "0.7217313", "0.7047128", "0.69502866", "0.68957686", "0.679446", "0.6729744", "0.6622741", "0.6615846", "0.65950537", "0.6593977", "0.6586095", "0.6573906", "0.65636796", "0.65625894", "0.6544368", "0.6530587", "0.6492123", "0.6488189", "0.6461876", "0.6450572", "0.6421018", "0.636192", "0.6338265", "0.6332369", "0.628811", "0.623963", "0.618213", "0.6166457", "0.6156533", "0.6155466", "0.60930943", "0.6067098", "0.60507005", "0.6017916", "0.59718376", "0.5931912", "0.5931525", "0.59096926", "0.5907397", "0.5898907", "0.5893264", "0.5838744", "0.5807566", "0.5774367", "0.57679296", "0.57657117", "0.56873167", "0.5658599", "0.56229615", "0.56000817", "0.5564046", "0.55114645", "0.5490351", "0.53854007", "0.5377005", "0.5370681", "0.53616524", "0.5319993", "0.5311441", "0.530135", "0.5263237", "0.52361894", "0.521767", "0.5206724", "0.5204489", "0.5202622", "0.51999843", "0.5186464", "0.51846987", "0.5170648", "0.5160609", "0.5150638", "0.51489836", "0.5132296", "0.5108419", "0.5097801", "0.50942516", "0.5092454", "0.50749576", "0.50743616", "0.50715697", "0.50587016", "0.50409293", "0.5012012", "0.49983752", "0.49973327", "0.4996282", "0.49679452", "0.49472487", "0.49362627", "0.49281174", "0.49248508", "0.49243328", "0.49180248", "0.49140614" ]
0.70155257
7
Gets the hours component of the time span.
private String getHours() { StringBuilder hoursSB = new StringBuilder(); if (hours > 0) { hoursSB.append(hours); } else { hoursSB.append("0"); } return hoursSB.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHours(){\n return (int) totalSeconds/3600;\n }", "public int getHours() {\r\n return FormatUtils.uint8ToInt(mHours);\r\n }", "public String getHours();", "public int[] getHours() {\n int[] hoursArray = {this.hours, this.overtimeHours};\n return hoursArray;\n }", "public double getHours() {\r\n return hours;\r\n }", "public double getHours() {\r\n return hours;\r\n }", "public int getHours() {\n return this.hours;\n }", "public int getIntervalHours();", "private int getHours() {\n //-----------------------------------------------------------\n //Preconditions: none.\n //Postconditions: returns the value for the data field hours.\n //-----------------------------------------------------------\n\n return this.hours;\n\n }", "public long getElapsedHours() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerHh;\n\t}", "public int[] getHours() {\n return hours;\n }", "public final native int getHours() /*-{\n return this.getHours();\n }-*/;", "public double totalHours(){\n return (this._startingHour - this._endingHour);\n }", "public double getHours(){\n return hours;\n }", "public long getElapsedTimeHour() {\n return running ? ((((System.currentTimeMillis() - startTime) / 1000) / 60 ) / 60) : 0;\n }", "Integer getHour();", "public static double hoursSpent()\r\n {\r\n double howlong = 24.0;\r\n return howlong;\r\n }", "public int getHourFraction()\n {\n return (int)Math.floor(hours);\n }", "static long getHoursPart(Duration d) {\n long u = (d.getSeconds() / 60 / 60) % 24;\n\n return u;\n }", "public String displayHours() {\n String hrs=day+\" Hours: \" +getStartHours()+ \" to \"+get_endingHour();\n return hrs;\n }", "Integer getStartHour();", "public int getHour()\n {\n return hour;\n }", "public int getUpHours() {\n return (int)((_uptime % 86400000) / 3600000);\n }", "public int getOccupiedHours(){\n \t\treturn getOccupiedMinutes()/60;\n \t}", "public int getHour() {\n\t\tthis.hour = this.total % 12;\n\t\treturn this.hour;\n\t}", "public int getHour() {\n return dateTime.getHour();\n }", "public String getWorkinghours() {\n int seconds = workinghours % 60;\n int minutes = (workinghours / 60) % 60;\n int hours = (workinghours / 60) / 60;\n String secs;\n String mins;\n String hourse;\n\n if (seconds < 10) {\n secs = \":0\" + seconds;\n } else {\n secs = \":\" + seconds;\n }\n if (minutes < 10) {\n mins = \":0\" + minutes;\n } else {\n mins = \":\" + minutes;\n }\n if (hours < 10) {\n hourse = \"0\" + hours;\n } else {\n hourse = \"\" + hours;\n }\n return hourse + mins + secs;\n }", "@Override\r\n\tpublic int getHH() {\n\t\treturn HH;\r\n\t}", "public Integer getHour() {\n return hour;\n }", "Integer getEndHour();", "public int hourOfDay() {\r\n\t\treturn mC.get(Calendar.HOUR_OF_DAY);\r\n\t}", "private static int getHours(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(0)) * 10) + Character.getNumericValue(time.charAt(1));\n\t}", "public double getHour() {\n\t\treturn this.hour;\n\t}", "public String getWorkHours() {\r\n\t\treturn workHours;\r\n\t}", "public SpinnerNumberModel getHoursModel() {\n\treturn this.hoursModel;\n }", "public int getHour() { return this.hour; }", "public static long convertToHours(long time) {\n return time / 3600000;\n }", "public Integer getHour() {\n\t\treturn hour;\n\t}", "public int getHour() {\n\t\treturn hour;\n\t}", "public int getHour() {\n\t\treturn hour;\n\t}", "public int getHour() {\n\t\treturn this.hour;\n\t}", "public static double hoursSpent()\n\t{\n\t\treturn 7.0;\n\t}", "@Override\n public String getSavingsHours() {\n\n final String savingsHrs = getElement(getDriver(), By.className(SAVINGS_HOURS), TINY_TIMEOUT)\n .getText();\n setLogString(\"Savings Hours:\" + savingsHrs, true, CustomLogLevel.HIGH);\n return savingsHrs.substring(savingsHrs.indexOf(\"(\") + 1, savingsHrs.indexOf(\"h\"));\n }", "public int getHour() \n { \n return hour; \n }", "public int getHour(){\n return hour;\n }", "public int getStartHour() {\n\treturn start.getHour();\n }", "public double getHoursPerWeek()\r\n {\r\n return hoursPerWeek;\r\n }", "public int getHoursOfCurrentTime() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"HH\", Locale.getDefault());\n Date curTime = new Date(System.currentTimeMillis());\n return Integer.parseInt(formatter.format(curTime));\n }", "private int getHour() {\n\t\tString time = getPersistedString(this.defaultValue);\n\t\tif (time == null || !time.matches(VALIDATION_EXPRESSION)) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn Integer.valueOf(time.split(\":|/\")[0]);\n\t}", "public int getEndHour() {\n\treturn end.getHour();// s\n }", "public int getHour() {\n return hour; // returns the appointment's hour in military time\n }", "float hour() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n case SOUTH_4M:\n case SOUTH_16M:\n return 0f;\n case WILTSHIRE_4M:\n case WILTSHIRE_16M:\n /*\n * At 10h33m, Orion is about to set in the west and the\n * Pointers of the Big Dipper are near the meridian.\n */\n return 10.55f;\n }\n throw new IllegalStateException();\n }", "public double getPreferredConsecutiveHours();", "public String getOperatingHours() {\n return mOperatingHours;\n }", "public String getCurrentHours() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "@Override\n public Long getRunningTimeInHours() {\n return null;\n }", "public final flipsParser.hour_return hour() throws RecognitionException {\n flipsParser.hour_return retval = new flipsParser.hour_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal374=null;\n Token string_literal375=null;\n Token string_literal376=null;\n Token string_literal377=null;\n Token string_literal378=null;\n\n CommonTree char_literal374_tree=null;\n CommonTree string_literal375_tree=null;\n CommonTree string_literal376_tree=null;\n CommonTree string_literal377_tree=null;\n CommonTree string_literal378_tree=null;\n RewriteRuleTokenStream stream_250=new RewriteRuleTokenStream(adaptor,\"token 250\");\n RewriteRuleTokenStream stream_251=new RewriteRuleTokenStream(adaptor,\"token 251\");\n RewriteRuleTokenStream stream_252=new RewriteRuleTokenStream(adaptor,\"token 252\");\n RewriteRuleTokenStream stream_249=new RewriteRuleTokenStream(adaptor,\"token 249\");\n RewriteRuleTokenStream stream_253=new RewriteRuleTokenStream(adaptor,\"token 253\");\n\n try {\n // flips.g:559:2: ( ( 'h' | 'hr' | 'hrs' | 'hour' | 'hours' ) -> HOUR )\n // flips.g:559:4: ( 'h' | 'hr' | 'hrs' | 'hour' | 'hours' )\n {\n // flips.g:559:4: ( 'h' | 'hr' | 'hrs' | 'hour' | 'hours' )\n int alt143=5;\n switch ( input.LA(1) ) {\n case 249:\n {\n alt143=1;\n }\n break;\n case 250:\n {\n alt143=2;\n }\n break;\n case 251:\n {\n alt143=3;\n }\n break;\n case 252:\n {\n alt143=4;\n }\n break;\n case 253:\n {\n alt143=5;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 143, 0, input);\n\n throw nvae;\n }\n\n switch (alt143) {\n case 1 :\n // flips.g:559:5: 'h'\n {\n char_literal374=(Token)match(input,249,FOLLOW_249_in_hour3249); \n stream_249.add(char_literal374);\n\n\n }\n break;\n case 2 :\n // flips.g:559:9: 'hr'\n {\n string_literal375=(Token)match(input,250,FOLLOW_250_in_hour3251); \n stream_250.add(string_literal375);\n\n\n }\n break;\n case 3 :\n // flips.g:559:14: 'hrs'\n {\n string_literal376=(Token)match(input,251,FOLLOW_251_in_hour3253); \n stream_251.add(string_literal376);\n\n\n }\n break;\n case 4 :\n // flips.g:559:20: 'hour'\n {\n string_literal377=(Token)match(input,252,FOLLOW_252_in_hour3255); \n stream_252.add(string_literal377);\n\n\n }\n break;\n case 5 :\n // flips.g:559:27: 'hours'\n {\n string_literal378=(Token)match(input,253,FOLLOW_253_in_hour3257); \n stream_253.add(string_literal378);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 560:2: -> HOUR\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(HOUR, \"HOUR\"));\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public java.lang.Object getEstimatedHours() {\n return estimatedHours;\n }", "java.lang.String getBusinesshours();", "public int getTotalHours() {\r\n int totalHours = 0;\r\n // For each day of the week\r\n for (int d = 0; d < 5; d++) {\r\n int sectionStart = 0;\r\n // Find first hour that != 0\r\n for (int h = 0; h < 13; h++) {\r\n if (weekData[d][h] != 0) {\r\n sectionStart = h;\r\n break;\r\n }\r\n }\r\n // Iterate in reverse to find the last hour that != 0\r\n for (int h = 12; h >= 0; h--) {\r\n if (weekData[d][h] != 0) {\r\n // Add the difference to the total\r\n totalHours += h-sectionStart+1;\r\n break;\r\n }\r\n }\r\n }\r\n return totalHours;\r\n }", "public int getMinHours() {\r\n return minHours;\r\n }", "public TreeSet<ApplianceTimedEvent> getUsageHours() {\n\n return usageHours;\n }", "public String getAttractionHours() {\n return mAttractionHours;\n }", "public int getStartHour() {\n return startHour; // stub\n }", "public String getHoursOfOperationId() {\n return this.hoursOfOperationId;\n }", "public WorkHours() {\n //default if not yet initialised\n this._startingHour=0.00;\n this._endingHour=0.00;\n }", "public static final long getTicksPerHour() {\n return p().TICKS_PER_RLHOUR;\n }", "@DISPID(53)\r\n\t// = 0x35. The runtime will prefer the VTID if present\r\n\t@VTID(51)\r\n\tint actualCPUTime_Hours();", "public float getHourHeight() {\n return config.hourHeight;\n }", "public double getHoursWorked()\r\n\t{\r\n\treturn hoursWorked;\r\n\t}", "public io.dstore.values.IntegerValue getKeepPropertiesHistoryInHours() {\n if (keepPropertiesHistoryInHoursBuilder_ == null) {\n return keepPropertiesHistoryInHours_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : keepPropertiesHistoryInHours_;\n } else {\n return keepPropertiesHistoryInHoursBuilder_.getMessage();\n }\n }", "public static SimpleDateFormat getHourFormat() {\n return new SimpleDateFormat(\"HH:mm\");\n }", "public double getPerHour() {\r\n return perHour;\r\n }", "@java.lang.Override\n public int getStartHour() {\n return startHour_;\n }", "@java.lang.Override\n public int getStartHour() {\n return startHour_;\n }", "public double hoursScheduled(String start, String end){\n\n LocalDateTime startTime = LocalDateTime.parse(start, dateTimeFormatter);\n LocalDateTime endTime = LocalDateTime.parse(end, dateTimeFormatter);\n\n Duration duration = Duration.between(startTime, endTime);\n double toDouble = duration.toSeconds();\n\n return toDouble/3600;\n }", "public List<Integer> getByHour() {\n\t\treturn byHour;\n\t}", "public String getRestaurantHours() {\n return mRestaurantHours;\n }", "@Override\n public double getDriverHours(final @NonNull Driver driver) {\n double hoursWorked = calculateTime(driver.getShiftStartTime());\n double maxHoursWorked = driver.getTruck().getDriverShiftSize();\n return Math.min(maxHoursWorked, hoursWorked);\n }", "public static int getHourOfTime(long time){\n \t//time-=59999;\n \tint retHour=0;\n \tlong edittime=time;\n \twhile (edittime>=60*60*1000){\n \t\tedittime=edittime-60*60*1000;\n \t\tretHour++;\n \t}\n \tretHour = retHour % 12;\n \tif (retHour==0){ retHour=12; }\n \treturn retHour;\n }", "public final native int getUTCHours() /*-{\n return this.getUTCHours();\n }-*/;", "public String getTotalLearnlabHours() {\n return this.totalLearnlabHours;\n }", "public String calculateHour() {\n\t\tString hora;\n\t\tString min;\n\t\tString seg;\n\t\tString message;\n\t\tCalendar calendario = new GregorianCalendar();\n\t\tDate horaActual = new Date();\n\t\tcalendario.setTime(horaActual);\n\n\t\thora = calendario.get(Calendar.HOUR_OF_DAY) > 9 ? \"\" + calendario.get(Calendar.HOUR_OF_DAY)\n\t\t\t\t: \"0\" + calendario.get(Calendar.HOUR_OF_DAY);\n\t\tmin = calendario.get(Calendar.MINUTE) > 9 ? \"\" + calendario.get(Calendar.MINUTE)\n\t\t\t\t: \"0\" + calendario.get(Calendar.MINUTE);\n\t\tseg = calendario.get(Calendar.SECOND) > 9 ? \"\" + calendario.get(Calendar.SECOND)\n\t\t\t\t: \"0\" + calendario.get(Calendar.SECOND);\n\n\t\tmessage = hora + \":\" + min + \":\" + seg;\n\t\treturn message;\n\n\t}", "public int getFinishHour() {\n return finishHour;\n }", "public BigDecimal getCheckAfterHours() {\n return checkAfterHours;\n }", "public ApplianceTimedEvent generateUsageHour(int startTime, int span) {\n\n return generateUsageHour(startTime, span, null);\n\n }", "public static long hoursBetween(final Date start, final Date end) {\n return Dates.timeDiff(start, end, TimeUnit.HOURS);\n }", "@DISPID(68)\r\n\t// = 0x44. The runtime will prefer the VTID if present\r\n\t@VTID(66)\r\n\tint averageCPUTime_Hours();", "public static int getHours(Date t, Date baseDate) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(baseDate);\n long sl = cal.getTimeInMillis();\n long el, delta;\n cal.setTime(t);\n el = cal.getTimeInMillis();\n delta = el - sl;\n int value = (int) (delta / (60 * 60 * 1000));\n\n return value;\n }", "private void loadHours(){\n int hours = 0;\n int minutes = 0;\n for(int i=0; i<24;i++){\n for(int j=0; j<4;j++){\n this.hoursOfTheDay.add(String.format(\"%02d\",hours)+\":\"+ String.format(\"%02d\",minutes));\n minutes+=15;\n }\n hours++;\n minutes = 0;\n }\n }", "static int getHour(byte[] bytes) {\n if (HOUR_POS < bytes.length * 8) {\n return readBits(bytes, HOUR_POS, HOUR_BITS);\n }\n return 0;\n }", "@Override\n\tpublic HourRegistration getHours(Long person_id, LocalDate date) {\n\t\treturn null;\n \t}", "public Short getEstHoursPerDay() {\n return estHoursPerDay;\n }", "public final native double setHours(int hours, int mins, int secs) /*-{\n this.setHours(hours, mins, secs);\n return this.getTime();\n }-*/;", "public static int getWorkingHrs(int DayHr , int workHrs){\n\tworkHrs=DayHr+workHrs;\n\treturn workHrs;\n}", "public io.dstore.values.IntegerValue getKeepPropertiesHistoryInHours() {\n return keepPropertiesHistoryInHours_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : keepPropertiesHistoryInHours_;\n }", "public double getTotalHoursWorkedOnTimesheet() {\n\t\tdouble overallTotal = 0;\n\t\tfor (TimesheetRow ts : timesheetRowList) {\n\t\t\toverallTotal += ts.getTotalHours();\n\t\t}\n\t\treturn overallTotal;\n\t}", "public int getHoursWorked() {\n\t\treturn this.hoursWrkd;\n\t}", "public final native double setHours(int hours) /*-{\n this.setHours(hours);\n return this.getTime();\n }-*/;", "public final native double setUTCHours(int hours) /*-{\n this.setUTCHours(hours);\n return this.getTime();\n }-*/;" ]
[ "0.7527488", "0.7489172", "0.74217397", "0.73581153", "0.731507", "0.731507", "0.72151417", "0.71533746", "0.70936626", "0.6993116", "0.68660736", "0.6821224", "0.68047756", "0.67397875", "0.6708582", "0.66416097", "0.65685993", "0.6522077", "0.6516937", "0.6480174", "0.64752805", "0.6409129", "0.64040023", "0.6375528", "0.63648766", "0.6327895", "0.62885743", "0.6262047", "0.6252955", "0.62430924", "0.62374836", "0.62302923", "0.6228409", "0.6201401", "0.6194174", "0.6191061", "0.61873627", "0.61867434", "0.6160683", "0.6160683", "0.6158243", "0.615293", "0.61464995", "0.61382043", "0.61184865", "0.6062908", "0.6052738", "0.6040196", "0.5991623", "0.5984692", "0.5964891", "0.594625", "0.593141", "0.591862", "0.59049565", "0.58932585", "0.58736175", "0.5833884", "0.5821207", "0.580108", "0.5791933", "0.5722228", "0.5719234", "0.5714621", "0.5707614", "0.5675322", "0.5661009", "0.5654615", "0.5651917", "0.56409705", "0.5613158", "0.5612919", "0.5594468", "0.557488", "0.5573401", "0.55409527", "0.5527604", "0.5512964", "0.55042964", "0.54980886", "0.54585814", "0.54527664", "0.54454976", "0.54298353", "0.54242116", "0.54102147", "0.5409327", "0.5408421", "0.54029953", "0.53991777", "0.5391305", "0.53559333", "0.53536874", "0.5342498", "0.5338813", "0.5333826", "0.53336585", "0.5314462", "0.5253701", "0.52525115" ]
0.6720955
14
Gets the days component of the time span.
private String getDays() { StringBuilder daysSB = new StringBuilder(); if (days > 0) { daysSB.append(days); } else { daysSB.append("0"); } return daysSB.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getDays() {\r\n \treturn days;\r\n }", "public Day[] getDays() {\n\t\treturn days;\n\t}", "private int getDays() {\n\t\tlong arrival = arrivalDate.toEpochDay();\n\t\tlong departure = departureDate.toEpochDay();\n\t\tint days = (int) Math.abs(arrival - departure);\n\n\t\treturn days;\n\t}", "public int getDays() {\n return this.days;\n }", "public int days() {\n if (isInfinite()) {\n return 0;\n }\n Period p = new Period(asInterval(), PeriodType.days());\n return p.getDays();\n }", "public int getDays(){\r\n\t\treturn days;\r\n\t}", "int getNumberDays();", "static long getDaysPart(Duration d) {\n long t = d.getSeconds() / 60 / 60 / 24;\n return t;\n }", "Integer getDaysSpanned();", "long getTermDays();", "public static long getDayNumber() {\n return getSecondsSinceEpoch() / SECS_TO_DAYS;\n }", "public int getNumDaysForComponent(Record record);", "public int getEDays() {\n return eDays;\n }", "public int getNumDays() {\n\t\treturn numDays;\n\t}", "ArrayList<Day> getDays() {\n return days;\n }", "public static int getNumberOfDays() {\n\t\treturn numberOfDays;\n\t}", "public int getNumberOfDays() {\n return numberOfDays;\n }", "public int getLengthDays() {\r\n\t\treturn diffDays(imageList.get(0).cal, getLast().cal);\r\n\t}", "public int calcDays() {\n\t\tint days = day-1;\r\n\t\tdays += ((month-1)*30);\r\n\t\tdays += ((year -2000) * (12*30));\r\n\t\treturn days;\r\n\t}", "Integer getDay();", "io.dstore.values.TimestampValue getDay();", "public int getIDays() {\n return iDays;\n }", "public long daysToDeadline() {\n return DateWrapper.getTimeBetween(Clock.now().getDateWrapper(), getDate(), ChronoUnit.DAYS);\n }", "public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}", "public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}", "double getAgeDays();", "public int getDay() {\n\t\treturn day;\n\t}", "public int daysBetween(Day day)\n\t{\n\t\tlong millisBetween = Math.abs(this.getDayStart(TimeZoneEx.GMT).getTime() - day.getDayStart(TimeZoneEx.GMT).getTime());\n\t\treturn (int) Math.round((float) millisBetween / (1000F * 60F * 60F * 24F));\n\t}", "public int getDayDistance() {\n\t\treturn dayDistance;\n\t}", "public int getDay() {\r\n\t\treturn (this.day);\r\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "public DayCount getDayCount() {\n return dayCount;\n }", "public io.dstore.values.TimestampValueOrBuilder getDayOrBuilder() {\n return getDay();\n }", "public int getDay() {\r\n return day;\r\n }", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "public int getDay(){\n\t\treturn day;\n\t}", "public Integer getTotalDays()\r\n/* 68: */ {\r\n/* 69:67 */ return this.totalDays;\r\n/* 70: */ }", "public int getDay() {\n\t\treturn this.day;\n\t}", "public int getDay() {\n\t\treturn this.day;\n\t}", "public int getUDays() {\n return uDays;\n }", "public int[] getDaysOfWeek() {\n return daysOfWeek;\n }", "public io.dstore.values.StringValueOrBuilder getDayOrBuilder() {\n return getDay();\n }", "public int getDay()\n {\n return day;\n }", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "public int getDay() {\n\treturn day;\n }", "List<Day> getDays(String userName);", "public int getDay() {\n return day;\n }", "public int getLBR_CollectionReturnDays();", "public int getDay() {\r\n return FormatUtils.uint8ToInt(mDay);\r\n }", "public int getDaysSinceStartOfEpoch() {\r\n long millis = new GregorianCalendar(year, month - 1, day).getTimeInMillis();\r\n return (int) (millis / MILLIS_PER_DAY);\r\n\r\n }", "public io.dstore.values.StringValue getDay() {\n return day_ == null ? io.dstore.values.StringValue.getDefaultInstance() : day_;\n }", "public Integer getDay()\n {\n return this.day;\n }", "private long dateDiffInNumberOfDays(LocalDate startDate, LocalDate endDate) {\n\n return ChronoUnit.DAYS.between(startDate, endDate);\n }", "@Override\n public final long daysInEffect(final LocalDate comparison) {\n return ChronoUnit.DAYS.between(this.getStartDate(), comparison);\n }", "public io.dstore.values.StringValueOrBuilder getDayOrBuilder() {\n if (dayBuilder_ != null) {\n return dayBuilder_.getMessageOrBuilder();\n } else {\n return day_ == null ?\n io.dstore.values.StringValue.getDefaultInstance() : day_;\n }\n }", "public io.dstore.values.TimestampValue getDay() {\n return day_ == null ? io.dstore.values.TimestampValue.getDefaultInstance() : day_;\n }", "io.dstore.values.TimestampValueOrBuilder getDayOrBuilder();", "public int getTotalDays() {\r\n int totalDays = 0;\r\n for (int d = 0; d < 5; d++) {\r\n for (int h = 0; h < 13; h++) {\r\n if (weekData[d][h] != 0) {\r\n totalDays += 1;\r\n break;\r\n }\r\n }\r\n }\r\n return totalDays;\r\n }", "public int getKeepLogDays() {\n\t\tInteger ii = (Integer) get_Value(\"KeepLogDays\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public Number getDaysPerMonth()\r\n {\r\n return (m_daysPerMonth);\r\n }", "Integer getStartDay();", "public int getCurrentDay() {\n return daysPassed;\n }", "public io.dstore.values.TimestampValueOrBuilder getDayOrBuilder() {\n if (dayBuilder_ != null) {\n return dayBuilder_.getMessageOrBuilder();\n } else {\n return day_ == null ?\n io.dstore.values.TimestampValue.getDefaultInstance() : day_;\n }\n }", "public static final long getTicksPerDay() {\n return p().TICKS_PER_RLDAY;\n }", "@Override\n public Long getRunningTimeInDays() {\n return null;\n }", "public io.dstore.values.TimestampValue getDay() {\n if (dayBuilder_ == null) {\n return day_ == null ? io.dstore.values.TimestampValue.getDefaultInstance() : day_;\n } else {\n return dayBuilder_.getMessage();\n }\n }", "io.dstore.values.TimestampValue getToDay();", "public int getNumberOfDays()\r\n {\r\n int mn = theMonthNumber;\r\n if (mn == 1 || mn == 3 || mn == 5 || mn == 7 || mn == 8 || mn == 10 || mn == 12)\r\n {return 31;}\r\n if (mn == 4 || mn == 6 || mn == 9 || mn == 11)\r\n {return 30;}\r\n else\r\n {return 28;}\r\n }", "public io.dstore.values.StringValue getDay() {\n if (dayBuilder_ == null) {\n return day_ == null ? io.dstore.values.StringValue.getDefaultInstance() : day_;\n } else {\n return dayBuilder_.getMessage();\n }\n }", "private long getDaysBetween(LocalDateTime d1, LocalDateTime d2) {\n return d1.until(d2,DAYS);\n }", "public int betweenDates() {\n return Period.between(arrivalDate, departureDate).getDays();\n }", "public Integer getAbsentDays()\r\n/* 58: */ {\r\n/* 59:59 */ return this.absentDays;\r\n/* 60: */ }", "public Integer getGestationaldays() {\n return gestationaldays;\n }", "public Date getDay() {\r\n return day;\r\n }", "public Date getDay() {\r\n return day;\r\n }", "public Date getDay() {\r\n return day;\r\n }", "public Date getDay() {\r\n return day;\r\n }", "public Date getDay() {\r\n return day;\r\n }", "private Date getdDay() {\n\t\treturn this.dDay;\r\n\t}", "public int getValidityDays() {\r\n return validityDays;\r\n }", "public java.lang.String getDay()\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(DAY$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public io.dstore.values.TimestampValueOrBuilder getToDayOrBuilder() {\n return getToDay();\n }", "public static String getTaskScheduleDays(long taskScheduleDays){\r\n\t\tString\ttaskScheduleDaysSt = \"\";\r\n\t\tif(taskScheduleDays == -1 || ((taskScheduleDays & DAY_OF_WEEK.EVERY_DAY.getDay()) == DAY_OF_WEEK.EVERY_DAY.getDay())) taskScheduleDaysSt+=\" EVERY_DAY\";\r\n\t\telse{\r\n\t\t\tif((taskScheduleDays & DAY_OF_WEEK.MONDAY.getDay()) != 0) taskScheduleDaysSt+=\" MONDAY\";\r\n\t\t if((taskScheduleDays & DAY_OF_WEEK.TUESDAY.getDay()) != 0) taskScheduleDaysSt+=\" TUESDAY\";\r\n\t\t\tif((taskScheduleDays & DAY_OF_WEEK.WEDNESDAY.getDay()) != 0) taskScheduleDaysSt+=\" WEDNESDAY\";\r\n\t\t\tif((taskScheduleDays & DAY_OF_WEEK.THURSDAY.getDay()) != 0) taskScheduleDaysSt+=\" THURSDAY\";\r\n\t\t\tif((taskScheduleDays & DAY_OF_WEEK.FRIDAY.getDay()) != 0) taskScheduleDaysSt+=\" FRIDAY\";\r\n\t\t\tif((taskScheduleDays & DAY_OF_WEEK.SATURDAY.getDay()) != 0) taskScheduleDaysSt+=\" SATURDAY\";\r\n\t\t\tif((taskScheduleDays & DAY_OF_WEEK.SUNDAY.getDay()) != 0) taskScheduleDaysSt+=\" SUNDAY\";\r\n\t\t}\r\n\t\treturn taskScheduleDaysSt;\r\n\t}", "public int getNumberOfDays()\n\t{\n\t\treturn m_calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n\t}", "public int getLBR_ProtestDays();", "public Date getDay() {\n return day;\n }", "public Day getDay(int dayVal) {\n int startDay = (dayVal + this.start) % 7; // calculate remainder taking into account start day\n return Day.fromValue(startDay);\n }", "public String getDay() {\n\n\t\treturn day;\n\t}", "@DISPID(52)\r\n\t// = 0x34. The runtime will prefer the VTID if present\r\n\t@VTID(50)\r\n\tint actualCPUTime_Days();", "public int getDay() {\n if (USE_SERIALIZABLE) {\n return childBuilder.getDay();\n } else {\n // @todo Replace with real Builder object if possible\n return convertNullToNOT_SET(childBuilderElement.getAttributeValue(\"day\"));\n }\n }", "public ArrayList getDayArray() {\r\n return dayArray; \r\n }", "public java.lang.Integer getDaysNonWorking() {\n return daysNonWorking;\n }", "public BigDecimal getNO_OF_DAYS() {\r\n return NO_OF_DAYS;\r\n }", "public String getDay() {\n\t\treturn day;\n\t}", "public Number getDayDate() {\n return (Number) getAttributeInternal(DAYDATE);\n }", "public int[] getDaysOfMonth() {\n return daysOfMonth;\n }", "Integer getEndDay();", "public int activeDays() {return activeDay;}" ]
[ "0.69791734", "0.6874142", "0.6759382", "0.66868323", "0.6659243", "0.6633922", "0.66252846", "0.65745586", "0.6569063", "0.65058994", "0.63418436", "0.6290007", "0.62542844", "0.6172548", "0.61293083", "0.6109876", "0.59826374", "0.5936928", "0.58864266", "0.5882722", "0.5873911", "0.587068", "0.5851068", "0.5846895", "0.5846895", "0.57991606", "0.57649744", "0.57630134", "0.575553", "0.5745006", "0.5738376", "0.5738376", "0.5738376", "0.5716554", "0.57148373", "0.5708723", "0.56939083", "0.56790817", "0.5674728", "0.56702673", "0.56702673", "0.5663988", "0.5660678", "0.5658258", "0.5653129", "0.5645708", "0.5624763", "0.5613635", "0.5603133", "0.55935127", "0.55699205", "0.556142", "0.5525803", "0.5522738", "0.5514929", "0.5512924", "0.5488594", "0.5481597", "0.54815316", "0.5467554", "0.54506946", "0.5440572", "0.5439255", "0.5426573", "0.54248554", "0.5419825", "0.5413087", "0.5400023", "0.5393109", "0.53879684", "0.5367212", "0.53657705", "0.53556436", "0.5355448", "0.53472793", "0.53443396", "0.53443396", "0.53443396", "0.53443396", "0.53443396", "0.53368694", "0.5332123", "0.5329878", "0.53273946", "0.53268075", "0.5317055", "0.5304227", "0.5291712", "0.5284531", "0.52838403", "0.5276382", "0.5271744", "0.5266827", "0.5257508", "0.52456856", "0.5242926", "0.5241831", "0.5235121", "0.52345836", "0.52317077" ]
0.6301448
11
Gets a formatted string that represents the time a simulation took to complete.
@Override public String toString() { StringBuilder elapsedTime = new StringBuilder(); if(days > 0) { elapsedTime.append(getDays()).append(" day"); if(days > 1) { elapsedTime.append("s"); } int remainingElements = 0; if(hours> 0) remainingElements++; if(minutes> 0) remainingElements++; if(seconds> 0) remainingElements++; if(remainingElements > 0) { if(remainingElements == 1) { elapsedTime.append(" and "); } else elapsedTime.append(", "); } } if (hours > 0) { elapsedTime.append(getHours()).append(" hour"); if (hours > 1) { elapsedTime.append("s"); } int remainingElements = 0; if (minutes > 0) remainingElements++; if (seconds > 0) remainingElements++; if (remainingElements > 0) { if (remainingElements == 1) { elapsedTime.append(" and "); } else { elapsedTime.append(", "); } } } if (minutes > 0) { elapsedTime.append(getMinutes()).append(" minute"); if (minutes > 1) { elapsedTime.append("s"); } if (seconds > 0) { elapsedTime.append(" and "); } } if (seconds > 0) { elapsedTime.append(getSeconds()).append(" second"); if (seconds > 1) { elapsedTime.append("s"); } } return elapsedTime.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFinalTimeString() {\n double fltTime = (double)(lngTimelineDataAmountInRmsFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime);\n }", "public String getTotalTime() {\r\n if (recipe != null) {\r\n return readableTime(recipe.getCookTime() + recipe.getPrepTime());\r\n } else {\r\n return \"\";\r\n }\r\n }", "public String estimatedTime() {\n int m = (int)(getFreeBytes()/500000000);\n return (m <= 1) ? \"a minute\" : m+\" minutes\";\n }", "public String getElapsedTime() {\n\n long elapsed;\n int mins;\n int secs;\n int millis;\n\n if (running) {\n elapsed = System.currentTimeMillis() - startTime;\n } else {\n elapsed = stopTime - startTime;\n }\n\n mins = (int) (elapsed / 60000);\n secs = (int) (elapsed - mins * 60000) / 1000;\n millis = (int) (elapsed - mins * 60000 - secs * 1000);\n\n //Keeps 3 digits when a second rolls over. Perhaps find a better way of doing this\n return (String.format(\"%02d\", mins) + \":\" + String.format(\"%02d\", secs) + \":\"\n + String.format(\"%03d\", millis));\n }", "public String getElapsed() {\n\t\tString timeFormatted = \"\";\n\t\ttimeFormatted = this.formatTime(this.getElapsedTicks());\n\t\treturn timeFormatted;\n\t}", "public String elapsedTime() {\n return totalWatch.toString();\n }", "public String toString(){\n\t\tDateTimeFormatter fmt = DateTimeFormat.forPattern(\"dd-MM-yyyy HH:mm\");\n\t\treturn \"Estimated completion: \" + fmt.print(super.getEstimatedEndTime());\n\t}", "public String gameTimeToText()\n {\n // CALCULATE GAME TIME USING HOURS : MINUTES : SECONDS\n if ((startTime == null) || (endTime == null))\n return \"\";\n long timeInMillis = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n return timeToText(timeInMillis);\n }", "private String getTimingString() {\n return DateTimeHandler.STANDARD_DATETIME_FORMAT.format(deadline);\n }", "protected String elapsedTimeAsString(long runTime) {\n return NumberFormat.getInstance().format((double) runTime / 1000);\n }", "public String getEstimatedRemainingTime() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return \"N/A\";\n \n long eta = d-(System.currentTimeMillis()-startTime);\n if(eta<=0) return \"N/A\";\n \n return Util.getTimeSpanString(eta);\n }", "public String getElapsedTime() {\n /**\n * Joda instruction credit to BalusC @ stackoverflow.com\n * http://stackoverflow.com/posts/2179831/revisions\n */\n Period delta = new Period(getOccurrenceTime(), DateTime.now());\n return\n // 1+ weeks\n (delta.getWeeks() >= 1) ? delta.getWeeks()+\"w\" :\n // 1+ days\n (delta.getDays() >= 1) ? delta.getDays()+\"d\" :\n // 1+ hours\n (delta.getHours() >= 1) ? delta.getHours()+\"h\" :\n // 1+ minutes\n (delta.getMinutes() >= 1) ? delta.getMinutes()+\"m\" :\n // 1+ seconds\n delta.getSeconds()+\"s\";\n }", "static public String soutAllTimer() {\n return HeartCore.t + \" - \" + HeartMoveBird.internalTime + \" - \" + HeartMoveObstacle.tWall;\n }", "@Override\n\tpublic String genResult() {\n\t\tCollections.sort(meanTimes, new Comparator<Time>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Time a, Time b) {\n\t\t\t\treturn a.toString().compareTo(b.toString());\n\t\t\t}\n\t\t});\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(realLaps()).append(\"; \");\n\t\tsb.append(totalTime()).append(\"; \");\n\t\tLinkedList<Time> times = new LinkedList<>();\n\t\tif(!startTimes.isEmpty()) times.add(startTimes.getFirst());\n\t\tfor(Time t: meanTimes) times.addLast(t);\n\t\tif(!finishTimes.isEmpty()) times.addLast(finishTimes.getFirst());\n\t\tint i = 0;\n\t\tif(startTimes.isEmpty()) {\n\t\t\ti++;\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\tfor (; i < maxLaps; i++) {\n\t\t\tif (times.size() > 1) {\n\t\t\t\tTime t = times.removeFirst();\n\t\t\t\tsb.append(Time.diff(times.getFirst(), t).toString());\n\t\t\t}\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\tString out = sb.toString();\n\t\treturn out.substring(0, out.length() - 2);\n\n\t}", "public String getTimeString()\n\t{\n\t\treturn TimeUtils.getTimeString(this.timesCurrentMillis);\n\t}", "public String writeTimesThrown() {\n timesThrown++;\n String text = (\"Times thrown: \" + timesThrown + \"/3\");\n return text;\n }", "@Override\n public String toString() {\n if (timeEnd == null) {\n stop();\n }\n return task + \" in \" + (timeEnd - timeStart) + \"ms\";\n }", "public String getTimeInString() {\n int minutes = (time % 3600) / 60;\n int seconds = time % 60;\n String timeString = String.format(\"%02d:%02d\", minutes, seconds);\n\n return timeString;\n }", "public String toString() {\n\t\tthis.setDepartureTime(System.currentTimeMillis());\n\t\tfloat waittime = (float)(departureTime - arrivalTime) / 1000 ;\n\n\t\treturn \"[Time \" + departureTime + \"] Omnibus #\" + vehicleNumber + \" (\" + getBound() + \"). Tiempo total de espera \" + waittime + \" segundos.\";\n\t}", "public int getTimeToComplete() {\n // one level is ten minutes long\n int totalTime = numberOfLevels * 10;\n if (is3D) {\n // if it's 3d then it take twice as long because its harder\n totalTime = totalTime * 2;\n }\n \n return totalTime;\n }", "public String getTime() {\n return String.format(\"%02d\", hours) + \":\" + String.format(\"%02d\", minutes);\n }", "public String getEndString() {\n return String.format(\"e» %s ms%s\", getTotalTime(), getFreemarkerFormattedTime());\n }", "public double getTime() {\n\t\treturn this.completedTime;\n\t}", "public static String getTimeString() {\n\t\treturn getTimeString(time);\n\t}", "public static String getPrintToTextTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n return sdf.format(System.currentTimeMillis());\n }", "public String duration(){\n long duration =beginTime.getTime()-endTime.getTime();\n long diffMinutes = duration / (60 * 1000) % 60;\n long diffHours = duration / (60 * 60 * 1000);\n if(diffHours ==0)\n return -1*diffMinutes + \" minutes\";\n else\n return \" \"+-1*diffHours+\":\"+ -1*diffMinutes +\"min\";\n }", "public String getFormattedTimeFromStart() {\r\n if (history.getNumberOfJumpsSoFar() == 0) {\r\n return \"00:00\";\r\n }\r\n\r\n double time = history.getTimeFromStart();\r\n double maxTime = 59.59;\r\n if (time < maxTime) {\r\n return String.format(\"%02d:%02d\", (int) (time % 60), (int) (time * 100 % 100));\r\n } else {\r\n return \"59:59\";\r\n }\r\n }", "public String toString() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // 4\n\t\tString hours = String.format(\"%02d\", this.hours);\n\t\tString minutes = String.format(\"%02d\", this.minutes);\n\t\tString seconds = String.format(\"%05.2f\", this.seconds);\n\n\t\tString time = hours + \":\" + minutes + \":\" + seconds;\n\t\treturn time;\n\t}", "public String getTime() {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString time = dateFormat.format(cal.getTime());\n\t\t\treturn time;\n\t\t}", "public String getElapsedTime() {\n return elapsedTime;\n }", "public String getEstimatedTime() {\n return estimatedTime;\n }", "java.lang.String getTime();", "public int getSimulationTime() {\n return clock.getTimeCount();\n }", "public int getTimeTaken() {\n return this.getTreeNode().getBuilding().getTotalTimeTaken();\n }", "public String toString() {\n return String.format(\"Final board:\\n%s\" +\n \"Number of conflicts:%d\\n\" +\n \"Time elapsed: %f seconds\\n\",\n board,\n BoardState.countConflicts(board.getBoard()),\n time * 0.000000001);\n }", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "private String getFormattedTime(int totalElapsedSeconds)\n {\n int minutes = totalElapsedSeconds / 60;\n int seconds = totalElapsedSeconds - (minutes * 60);\n String timerText = String.format(\"%02d\", minutes)\n + \":\" + String.format(\"%02d\", seconds);\n return timerText;\n }", "private static String elapsed(long start) {\r\n\treturn \": elapsed : \" + (System.currentTimeMillis() - start) + \" ms \";\r\n }", "public String getTime() {\n String show = time;\n return show;\n }", "public java.lang.String getTime () {\n\t\treturn time;\n\t}", "public java.lang.String elapsed (\n\t\tfinal boolean bHMS)\n\t{\n\t\tlong lElapsedNanos = _lFinishNanos - _lSetupNanos;\n\n\t\treturn bHMS ? org.drip.analytics.support.Helper.IntervalHMSMS (lElapsedNanos) : \"\" + lElapsedNanos;\n\t}", "public String durationInMinutesAndSeconds( ){\n\t\t\n\t\tString time = \"\";\n\t\t\n\t\tint duration = totalTime();\n\n\t\tint minutes = 0;\n\n\t\tint seconds = 0;\n\n\t\tminutes = (int) (duration/60);\n\n\t\tseconds = (int) (duration- (minutes*60));\n\n\t\ttime = minutes + \":\" + seconds +\"\";\n\t\treturn time;\n\t\t\n\t}", "public static String getTime()\n {\n Date time = new Date();\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return timeFormat.format(time);\n }", "public String getResult(){\n\t\tString result = String.format(\"%-10s%10d\", p1time,found);\n\t\treturn result;\n\t}", "java.lang.String getDuration();", "@Override\n\tpublic String getFinishTime() {\n\t\treturn finishTime;\n\t}", "public double time() {\n long diff = System.nanoTime() - start;\n double seconds = diff * 0.000000001;\n return seconds;\n }", "String getSleepTime(long totalSleepTime) {\n\t\tString sleep = String.format(\"%d hr(s), %d min(s)\", \n\t\t\t TimeUnit.MILLISECONDS.toHours(totalSleepTime),\n\t\t\t (TimeUnit.MILLISECONDS.toMinutes(totalSleepTime) - \n\t\t\t TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(totalSleepTime)))\n\t\t\t);\n\t\treturn sleep;\n\t}", "public double time()\n\t{\n\t\treturn _dblTime;\n\t}", "public double time()\n\t{\n\t\treturn _dblTime;\n\t}", "public String getStats() {\n String stats = \"Total running time: \" + runtime + \"\\\\\\\\\";\n int totalit = 0;\n int largestit = 0;\n int averageit = 0;\n for (Integer i : recGraphs) {\n totalit += i;\n averageit += i;\n if (i > largestit) {\n largestit = i;\n }\n }\n averageit /= recGraphs.size();\n double totalhit = 0;\n double longesthit = 0;\n double averagehit = 0;\n for (Double i : recHitTimes) {\n totalhit += i;\n averagehit += i / recHitTimes.size();\n if (i > longesthit) {\n longesthit = i;\n }\n }\n stats += \"Total iterations in step 3: \" + totalit + \"\\\\\\\\\";\n stats += \"Largest set of iterations in step 3: \" + largestit + \"\\\\\\\\\";\n stats += \"Average iterations set in step 3: \" + averageit + \"\\\\\\\\\";\n stats += \"Total hitting sets calculation time: \" + totalhit + \"\\\\\\\\\";\n stats += \"Average hitting set calculation time: \" + averagehit + \"\\\\\\\\\";\n stats += \"Longest hitting set calculation time: \" + longesthit + \"\\\\\\\\\";\n return stats;\n }", "@Override\n\tpublic String getTime() {\n\t\treturn time;\n\t}", "public String toString() {\n\n // returns a string in a \"{standard time}: {description}\" format\n return String.format(\"%s: %s\", this.getTime(), this.description);\n }", "private String calculateTime(long startTime, long endTime) {\r\n\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.00\");\r\n\r\n\t\tdouble timeTaken = ((endTime - startTime) / 1000000000.0);\r\n\r\n\t\tString timeTakenStr = df.format(timeTaken);\r\n\r\n\t\treturn timeTakenStr;\r\n\t}", "public String getTime()\r\n\t{\r\n\t\treturn displayString;\r\n\t}", "private static String format(double elapsedSec) {\n\t\tint elapsedMs = (int) Math.round(elapsedSec * 1000);\n\t\treturn Integer.toString(elapsedMs) + \" ms\";\n\t}", "public String getNiceTime(){\n\t\treturn sTimeFormat.format(mTime);\n\t}", "public static void printExecutionTime() {\n long endTime = System.currentTimeMillis();\n\n logger.info(\"Completed Execution in: \" + (endTime - ClientExecutorEngine.getStartTime())/1000.0 + \" seconds.\");\n }", "public String getTime() {\r\n\t\treturn time;\r\n\t}", "public String getTime() {\n\t\treturn time;\n\t}", "public long getTimeTaken();", "@DISPID(21)\r\n\t// = 0x15. The runtime will prefer the VTID if present\r\n\t@VTID(23)\r\n\tjava.lang.String actualCPUTime();", "@Override\n\tpublic String toString()\n\t{\n\t\treturn \"Stopwatch: \" + \"Elapsed millis: \" + getElapsedMs() + (m_running ? \" Running\" : \" Not running\");\n\t}", "public int getTotalTime();", "long getElapsedTime();", "private void printTimer() {\n\t\tif (_verbose) {\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"-- \" + getTimeString() + \" --\");\n\t\t}\n\t}", "public long getTimeElapsed() {\r\n\t long now = new Date().getTime();\r\n\t long timePassedSinceLastUpdate = now - this.updatedSimTimeAt;\r\n\t return this.pTrialTime + timePassedSinceLastUpdate;\r\n\t}", "public String toString() {\n return this.time != null ? this.time.format(TIME_FORMATTER) : \"\";\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn getName() + \" (\"+getDuration()+\"s)\";\r\n\t}", "public String toString() {\r\n\t\treturn \"The \" + makeAndModel + \" is made in \" + country + \", has a 0-60 time of \"\r\n\t\t\t\t+ zeroTo60 + \" seconds, and costs $\" + totalCost + \".\";\r\n\t\t}", "public String getTime() {\n return time;\n }", "public static String getWorkTimeSecondsInFormattedString(long seconds) {\r\n int totalMinutos = (int) (seconds/60);\r\n int totalHoras = totalMinutos / 60;\r\n int restoMinutos = totalMinutos % 60;\r\n int restoSegundos = (int) (seconds % 60);\r\n\r\n return (totalHoras + \":\" + restoMinutos + \":\" + restoSegundos);\r\n\r\n }", "public String getTime(){\r\n\t\tDate date = new GregorianCalendar().getTime();\r\n\r\n\t\tString time= new SimpleDateFormat(\"HH:mm:ss\").format(date.getTime());\r\n\t\t\r\n\t\treturn time;\r\n\t}", "public String printResult() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(printStartNumberAndName() + \"; \");\n\t\tsb.append(printInfo());\n\n\t\tsb.append(printTotalTime() + \"; \");\n\n\t\tsb.append(getStartTime() + \"; \");\n\t\tsb.append(getFinishTime());\n\t\n\t\tsb.append(errorHandler.print());\n\t\t\n\t\treturn sb.toString();\n\t}", "public long totalTime() {\n\t\tlong ret = 0;\n\t\tfor (Task l : plan) {\n\t\t\tret += l.getTaskLength();\n\t\t}\n\n\t\treturn ret;\n\t}", "public double getFinishTime(){return finishTime;}", "public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }", "public static String getPrintToFileTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HHmmss\");\n return sdf.format(System.currentTimeMillis());\n }", "public String mo17598a() {\n long nanoTime = System.nanoTime() - this.f2594b;\n if (nanoTime > f2592u) {\n return mo17599b() + '+' + TimeUnit.NANOSECONDS.toSeconds(nanoTime) + 's';\n }\n return mo17599b() + '+' + TimeUnit.NANOSECONDS.toMillis(nanoTime) + \"ms\";\n }", "public String toString()\n {\n String output = new String();\n output = \"The time is \" + hour + \":\" + min + \":\" + sec + \"\\n\";\n return output;\n }", "public float getTime() {\n return Math.abs(endTime - startTime) / 1000000f;\n }", "public synchronized String getTime() {\n\t\treturn time;\n\t}", "public String getTimeString() {\n // Converts slot to the minute it starts in the day\n int slotTimeMins =\n SlopeManagerApplication.OPENING_TIME * 60 + SESSION_LENGTHS_MINS * getSlot();\n\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, slotTimeMins/60);\n cal.set(Calendar.MINUTE, slotTimeMins % 60);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm\");\n return sdf.format(cal.getTime());\n }", "public String getPrintFormattedTime() {\n return this.optionalTime.map(x -> x.format(DateTimeFormatter.ofPattern(\"HHmma\"))).orElse(\"\");\n }", "public long timeElapsed()\n {\n return (System.currentTimeMillis() - this.startTime) / 1000;\n }", "public String toString() {\n\t\treturn hours + \"h\" + minutes + \"m\";\n\t}", "public double getTime() { return time; }", "@Override\r\n\tpublic String gettime() {\n\t\treturn user.gettime();\r\n\t}", "public static String formatTime(long elapsed) {\n int[] convConst = {100, 60, 60, 24};\n int[] formatValues = new int[convConst.length];\n\n for (int i = 0; i < (convConst.length & formatValues.length); i++) {\n if (i > 0) elapsed /= convConst[i - 1];\n formatValues[i] = (int) (elapsed % convConst[i]);\n }\n\n int[] trimmed = ArrayUtils.autobox(ArrayUtils.reverse(ArrayUtils.trimBack(ArrayUtils.autobox(formatValues), 0)));\n String[] filled = new String[trimmed.length];\n\n for (int i = 0; i < (trimmed.length & filled.length); i++)\n filled[i] = i > 0 ? StringUtils.fillLeading(\"\" + trimmed[i], '0', 2) : \"\" + trimmed[i];\n\n List<String> filledList = new ArrayList<>(Arrays.asList(filled));\n if (filledList.size() <= 1) filledList.add(0, \"0\");\n\n return String.join(\".\", String.join(\":\", filledList.subList(0, filledList.size() - 1)), filledList.get(filledList.size() - 1));\n }", "public String getTime() {\n Date date = new Date();\n return (date.toString());\n }", "public long getElapsedTime() {\n\t\treturn this.getTime();\n\t}", "public String formatCompletionTime(long completionTime) {\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\r\n\t\treturn dateFormat.format(new Date(completionTime));\r\n\t}", "public String getTime() {\n return this.time;\n }", "public static String timeDifference(long start) {\r\n\t\treturn timeDifference(start, System.currentTimeMillis());\r\n\t}", "public String getTimeString() {\n DateFormat format = new SimpleDateFormat(\"HH:mm\");\n return format.format(mDate);\n }", "public static String GetRunTime(Date starttime, Date stoptime) {\n String result = \"\";\n long diff = 0;\n long mills = 0;\n long x = 0;\n long seconds = 0;\n long minutes = 0;\n long hours = 0;\n\n diff = stoptime.getTime() - starttime.getTime();\n mills = diff % 1000;\n x = diff / 1000;\n seconds = x % 60;\n x /= 60;\n minutes = x % 60;\n x /= 60;\n hours = x % 24;\n\n result = String.format(\"%d:%d:%d.%d\", hours, minutes, seconds, mills);\n\n return result;\n }", "private String msg3() {\n return(\"[\" + (System.currentTimeMillis() - system_start_time) + \"] \");\n }", "public String getRunningTimeStr() {\n if (this.runningTime == null)\n return null;\n else\n return CommonRunService.getTimeStr(this.runningTime);\n }", "protected String getPrettyDuration() {\n\t\tfinal Duration duration = new Duration(System.currentTimeMillis()\n\t\t\t\t- Activator.getDefault().getStartTime());\n\t\tfinal PeriodFormatter formatter = new PeriodFormatterBuilder()\n\t\t\t\t.appendDays().appendSuffix(\"d\").appendHours().appendSuffix(\"h\")\n\t\t\t\t.appendMinutes().appendSuffix(\"m\").appendSeconds()\n\t\t\t\t.appendSuffix(\"s\").toFormatter();\n\t\treturn formatter.print(duration.toPeriod());\n\t}", "public double showHarvestTime(){\r\n\t\tSystem.out.println(\"The average harvest time is \" + averageHarvestTime + \" \" + timeUnit);\r\n\t\treturn averageHarvestTime;}" ]
[ "0.7204246", "0.71845514", "0.7115451", "0.7085416", "0.70848113", "0.7072796", "0.6995083", "0.6955755", "0.68757933", "0.6875285", "0.6856558", "0.68148935", "0.68114406", "0.6782745", "0.6750227", "0.67343163", "0.66915065", "0.6630739", "0.66132855", "0.661323", "0.65557665", "0.6553628", "0.6494644", "0.6490914", "0.6480793", "0.6452391", "0.64473045", "0.643874", "0.6428297", "0.6383202", "0.6379207", "0.6374717", "0.6367478", "0.63552666", "0.63205695", "0.63201857", "0.63184553", "0.6292777", "0.6276562", "0.6270631", "0.62577057", "0.6253187", "0.62488157", "0.62485147", "0.6233995", "0.6230196", "0.6227835", "0.622359", "0.62155193", "0.62155193", "0.62055635", "0.6197359", "0.61969924", "0.6196424", "0.61899525", "0.61806774", "0.6179712", "0.6176976", "0.61731386", "0.61725414", "0.61695546", "0.6153621", "0.6143325", "0.6131385", "0.61269885", "0.6114553", "0.6103592", "0.61019367", "0.60985494", "0.60980344", "0.60923207", "0.6091214", "0.6090622", "0.6083482", "0.6065268", "0.60628766", "0.6057717", "0.6053741", "0.6052114", "0.60486513", "0.6047082", "0.60375035", "0.60353196", "0.60192686", "0.6004276", "0.60041374", "0.6003675", "0.59997696", "0.59952676", "0.598919", "0.59810233", "0.5974837", "0.59726995", "0.59705645", "0.59654844", "0.5964256", "0.59627724", "0.5961927", "0.5961596", "0.59599936" ]
0.60614055
76
setting resource link in post() method by calling it from properties file but here we are using concept of eNum where we can declare methods and constructer and call the methods here.has many advantages. like if we call from properties file or other class then we have to create getters for each parameter which is not good practice but in case of enum we create only 1 constructer and 1 getter to access any paramter. below we are calling constructer OfenumResourceAPI (enum type class) to pass value of resource.
@When("user calls {string} with {string} HTTPS request") public void user_calls_with_https_request(String resource, String HttpMethod) { enumResourceAPI updatedResource=enumResourceAPI.valueOf(resource); String resource_link=updatedResource.getresource(); System.out.println("resource url= "+resource_link); resspec =new ResponseSpecBuilder().expectStatusCode(200).expectContentType(ContentType.JSON).build(); if(HttpMethod.equalsIgnoreCase("POST")) responseJson =reqspec.when().post(resource_link). then().log().all().spec(resspec).extract().response(); else if(HttpMethod.equalsIgnoreCase("GET")) responseJson =reqspec.when().get(resource_link) .then().log().all().spec(resspec).extract().response(); else if(HttpMethod.equalsIgnoreCase("DELETE")) responseJson =reqspec.when().delete(resource_link) .then().log().all().spec(resspec).extract().response(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createRequest(EnumOperationType opType, IParameter parameter);", "public interface ResourceAdapter {\n\n public enum Item {\n INPUT_SAME_AS_OUTPUT_ERROR,\n AUTO_KEY_SELECTION_ERROR,\n LOADING_CERTIFICATE_AND_KEY,\n PARSING_CENTRAL_DIRECTORY,\n GENERATING_MANIFEST,\n GENERATING_SIGNATURE_FILE,\n GENERATING_SIGNATURE_BLOCK,\n COPYING_ZIP_ENTRY\n };\n\n public String getString( Item item, Object... args);\n}", "EnumRef createEnumRef();", "private ResourceType(String rtCode) {\n\t this.rtCode = rtCode;\n\t}", "ResourceAPI createResourceAPI();", "private Resource_kind(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public interface LinkGenerator {\n\n String ATTRIBUTE_CONTROLLER = \"controller\";\n String ATTRIBUTE_RESOURCE = \"resource\";\n String ATTRIBUTE_ACTION = \"action\";\n String ATTRIBUTE_METHOD = \"method\";\n String ATTRIBUTE_URI = \"uri\";\n String ATTRIBUTE_RELATIVE_URI = \"relativeUri\";\n String ATTRIBUTE_INCLUDE_CONTEXT = \"includeContext\";\n String ATTRIBUTE_CONTEXT_PATH = \"contextPath\";\n String ATTRIBUTE_URL = \"url\";\n String ATTRIBUTE_BASE = \"base\";\n String ATTRIBUTE_ABSOLUTE = \"absolute\";\n String ATTRIBUTE_ID = \"id\";\n String ATTRIBUTE_FRAGMENT = \"fragment\";\n String ATTRIBUTE_PARAMS = \"params\";\n String ATTRIBUTE_MAPPING = \"mapping\";\n String ATTRIBUTE_EVENT = \"event\";\n String ATTRIBUTE_ELEMENT_ID = \"elementId\";\n String ATTRIBUTE_PLUGIN = \"plugin\";\n String ATTRIBUTE_NAMESPACE = \"namespace\";\n \n\n Set<String> LINK_ATTRIBUTES = CollectionUtils.newSet(\n ATTRIBUTE_RESOURCE,\n ATTRIBUTE_METHOD,\n ATTRIBUTE_CONTROLLER,\n ATTRIBUTE_ACTION,\n ATTRIBUTE_URI,\n ATTRIBUTE_RELATIVE_URI,\n ATTRIBUTE_CONTEXT_PATH,\n ATTRIBUTE_URL,\n ATTRIBUTE_BASE,\n ATTRIBUTE_ABSOLUTE,\n ATTRIBUTE_ID,\n ATTRIBUTE_FRAGMENT,\n ATTRIBUTE_PARAMS,\n ATTRIBUTE_MAPPING,\n ATTRIBUTE_EVENT,\n ATTRIBUTE_ELEMENT_ID,\n ATTRIBUTE_PLUGIN,\n ATTRIBUTE_NAMESPACE\n );\n\n Map<String, String> REST_RESOURCE_ACTION_TO_HTTP_METHOD_MAP = CollectionUtils.<String, String>newMap(\n \"create\", \"GET\",\n \"save\", \"POST\",\n \"show\", \"GET\",\n \"index\", \"GET\",\n \"edit\", \"GET\",\n \"update\", \"PUT\",\n \"patch\", \"PATCH\",\n \"delete\", \"DELETE\"\n );\n\n Map<String, String> REST_RESOURCE_HTTP_METHOD_TO_ACTION_MAP = CollectionUtils.<String, String>newMap(\n \"GET_ID\", \"show\",\n \"GET\", \"index\",\n \"POST\", \"save\",\n \"DELETE\", \"delete\",\n \"PUT\", \"update\",\n \"PATCH\", \"patch\"\n );\n\n\n /**\n * Generates a link to a static resource for the given named parameters.\n *\n * Possible named parameters include:\n *\n * <ul>\n * <li>base - The base path of the URL, typically an absolute server path</li>\n * <li>contextPath - The context path to link to, defaults to the servlet context path</li>\n * <li>dir - The directory to link to</li>\n * <li>file - The file to link to (relative to the directory if specified)</li>\n * <li>plugin - The plugin that provides the resource</li>\n * <li>absolute - Whether the link should be absolute or not</li>\n * </ul>\n *\n * @param params The named parameters\n * @return The link to the static resource\n */\n String resource(@SuppressWarnings(\"rawtypes\") Map params);\n\n /**\n * Generates a link to a controller, action or URI for the given named parameters.\n *\n * Possible named parameters include:\n *\n * <ul>\n * <li>resource - If linking to a REST resource, the name of the resource or resource path to link to. Either 'resource' or 'controller' should be specified, but not both</li>\n * <li>controller - The name of the controller to use in the link, if not specified the current controller will be linked</li>\n * <li>action - The name of the action to use in the link, if not specified the default action will be linked</li>\n * <li>uri - relative URI</li>\n * <li>url - A map containing the action,controller,id etc.</li>\n * <li>base - Sets the prefix to be added to the link target address, typically an absolute server URL. This overrides the behaviour of the absolute property, if both are specified.</li>\n * <li>absolute - If set to \"true\" will prefix the link target address with the value of the grails.serverURL property from Config, or http://localhost:&lt;port&gt; if no value in Config and not running in production.</li>\n * <li>contextPath - The context path to link to, defaults to the servlet context path</li>\n * <li>id - The id to use in the link</li>\n * <li>fragment - The link fragment (often called anchor tag) to use</li>\n * <li>params - A map containing URL query parameters</li>\n * <li>mapping - The named URL mapping to use to rewrite the link</li>\n * <li>event - Webflow _eventId parameter</li>\n * </ul>\n * @param params The named parameters\n * @return The generator link\n */\n String link(@SuppressWarnings(\"rawtypes\") Map params);\n\n /**\n * Generates a link to a controller, action or URI for the given named parameters.\n *\n * Possible named parameters include:\n *\n * <ul>\n * <li>resource - If linking to a REST resource, the name of the resource or resource path to link to. Either 'resource' or 'controller' should be specified, but not both</li>\n * <li>controller - The name of the controller to use in the link, if not specified the current controller will be linked</li>\n * <li>action - The name of the action to use in the link, if not specified the default action will be linked</li>\n * <li>uri - relative URI</li>\n * <li>url - A map containing the action,controller,id etc.</li>\n * <li>base - Sets the prefix to be added to the link target address, typically an absolute server URL. This overrides the behaviour of the absolute property, if both are specified.</li>\n * <li>absolute - If set to \"true\" will prefix the link target address with the value of the grails.serverURL property from Config, or http://localhost:&lt;port&gt; if no value in Config and not running in production.</li>\n * <li>id - The id to use in the link</li>\n * <li>fragment - The link fragment (often called anchor tag) to use</li>\n * <li>params - A map containing URL query parameters</li>\n * <li>mapping - The named URL mapping to use to rewrite the link</li>\n * <li>event - Webflow _eventId parameter</li>\n * </ul>\n * @param params The named parameters\n * @param encoding The character encoding to use\n * @return The generator link\n */\n String link(@SuppressWarnings(\"rawtypes\") Map params, String encoding);\n\n /**\n * Obtains the context path from which this link generator is operating.\n *\n * @return The base context path\n */\n String getContextPath();\n\n /**\n * The base URL of the server used for creating absolute links.\n *\n * @return The base URL of the server\n */\n String getServerBaseURL();\n}", "public Resource takeResource( Resource.Type type, int amount );", "public interface RequestType {\n String GET = \"GET\";\n String POST = \"POST\";\n String UPDATE = \"UPDATE\";\n String DELETE = \"DELETE\";\n String DEFAULT = \"DEFAULT\";\n}", "interface WithKind {\n /**\n * Specifies the kind property: The Kind of the resource..\n *\n * @param kind The Kind of the resource.\n * @return the next definition stage.\n */\n WithCreate withKind(String kind);\n }", "public AddResource() {\n }", "@When(\"user calls {string} with {string} http request\")\n public void user_calls_with_http_request(String AMAR, String HTTPreq) {\n pojoEnum pEnum =pojoEnum.valueOf(AMAR);\n resSpec = new ResponseSpecBuilder()\n .expectStatusCode(200)\n .expectContentType(ContentType.JSON).build();\n if(HTTPreq.equalsIgnoreCase(\"POST\")){\n response = res.when().post(pEnum.getResource());\n }\n else if(HTTPreq.equalsIgnoreCase(\"GET\")){\n response = res.when().get(pEnum.getResource());\n }\n else if(HTTPreq.equalsIgnoreCase(\"DELETE\")){\n response = res.when().delete(pEnum.getResource());\n }\n else if(HTTPreq.equalsIgnoreCase(\"PUT\")){\n response = res.when().put(pEnum.getResource());\n\n }\n String responseString = response.asString();\n System.out.println(\"This is the Response ---->\" +responseString);\n\n }", "public LightParameter(PropertyEnum propertyEnum, String value)\r\n\t{\r\n\t\tsuper(propertyEnum, value);\r\n\t}", "@Path(\"resource/create\")\n @POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n// public Response createText(@FormParam(\"\") TextDTO text) {\n public Response createResource(RSComponentDTO dto) {\n Response.ResponseBuilder rb = Response.created(context.getAbsolutePath());\n\n try {\n\n Collection parentCollection = ResourceSystemComponent.load(Collection.class, dto.uriParent);\n RSCType type = DTOValueRSC.instantiate(RSCType.class).withValue(ResourceSystemAnnotationType.RESOURCE);\n RSCParent parent = DTOValueRSC.instantiate(RSCParent.class).withValue(parentCollection);\n\n ResourceSystemComponent resource = ResourceSystemComponent.of(Resource.class, dto.uri)\n .withParams(dto.name, dto.description, type, parent);\n\n resource.setResourceContent(load(dto.catalogItemUri));\n parentCollection.add(resource);\n parentCollection.save();\n\n } catch (InstantiationException ie) {\n log.error(ie.getLocalizedMessage());\n rb.entity(new ServiceResult(\"1\", \"Error, \" + ExceptionUtils.getRootCauseMessage(ie)));\n return rb.build();\n } catch (IllegalAccessException iae) {\n log.error(iae.getLocalizedMessage());\n rb.entity(new ServiceResult(\"2\", \"Error, \" + ExceptionUtils.getRootCauseMessage(iae)));\n return rb.build();\n } catch (VirtualResourceSystemException vrse) {\n log.error(vrse.getLocalizedMessage());\n rb.entity(new ServiceResult(\"3\", \"Error, \" + ExceptionUtils.getRootCauseMessage(vrse)));\n return rb.build();\n } catch (ManagerAction.ActionException ex) {\n log.error(ex.getLocalizedMessage());\n rb.entity(new ServiceResult(\"4\", \"Error, \" + ExceptionUtils.getRootCauseMessage(ex)));\n return rb.build();\n } catch (Annotation.Data.InvocationMethodException ime) {\n log.error(ime.getLocalizedMessage());\n rb.entity(new ServiceResult(\"5\", \"Error, \" + ExceptionUtils.getRootCauseMessage(ime)));\n return rb.build();\n }\n\n log.info(\"resource created\");\n\n return rb.entity(new ServiceResult()).build();\n }", "private EndpointType(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "Resource createResource();", "public interface ApiPathConstants {\n\n // The media type constants\n String APPLICATION_JSON = \"application/json\";\n String ACCEPT_APPLICATION_JSON = \"Accept=application/json\";\n\n // Need to match below variables according to the cbr project\n String DEFAULT_CASEBASE = \"CaseBase0\";\n String DEFAULT_CONCEPT = \"Car\";\n String DEFAULT_AMAL_FUNCTION = \"CarFunc\";\n String DEFAULT_ATTR_ID = \"Color\";\n\n // The number of retrieved cases per query as preferred by the user.\n String DEFAULT_NO_OF_CASES = \"-1\";\n String NO_OF_RETURNED_CASES = \"k\";\n\n\n // myCBR-rest API: core vocabulary - single\n String PROJECT = \"project\";\n String CONCEPT \t= \"concept\";\n String CASEBASE \t= \"casebase\";\n String AMAL_FUNCTION= \"amalgamationFunction\";\n String ATTR \t= \"attribute\";\n String CASE \t= \"case\";\n String INSTANCE\t= \"instance\";\n String VALUE \t= \"value\";\n String SIM_FUNCTION = \"similarityFunction\";\n String LIST = \"list\";\n String NEW = \"new\";\n\n String EPHEMERAL \t= \"ephemeral\";\n String ANALYTICS \t= \"analytics\";\n\n\n // myCBR-rest API: core vocabulary - multiple\n String S \t\t\t= \"s\";\n String CONCEPTS \t\t= CONCEPT \t+ S;\n String CASEBASES \t\t= CASEBASE \t+ S;\n String AMAL_FUNCTIONS\t= AMAL_FUNCTION + S;\n String ATTRS \t\t= ATTR \t\t+ S;\n String CASES \t\t= CASE \t\t+ S;\n String INSTANCES\t\t= INSTANCE \t+ S;\n String VALUES \t\t= VALUE \t+ S;\n String SIM_FUNCTIONS \t= SIM_FUNCTION\t+ S;\n\n\n // myCBR-rest API: ID vocabulary\n String ID \t\t\t= \"ID\";\n String CONCEPT_ID \t\t= CONCEPT \t+ ID;\n String CASEBASE_ID \t\t= CASEBASE \t+ ID;\n String AMAL_FUNCTION_ID \t= AMAL_FUNCTION + ID;\n String ATTR_ID \t\t= ATTR \t\t+ ID;\n String NEW_ATTR_ID \t\t= NEW + ATTR \t\t+ ID;\n String ATTR_IDS = ATTR \t\t+ ID + S;\n String CASE_ID \t\t= CASE \t\t+ ID;\n String INSTANCE_ID \t\t= INSTANCE \t+ ID;\n String SIM_FUNCTION_ID\t= SIM_FUNCTION \t+ ID;\n //String ATTR_ID_LIST \t\t= ATTR \t\t+ ID + LIST;\n\n\n // myCBR-rest API: type vocabulary specific names\n String TYPE \t\t= \"Type\";\n String AMAL_FUNCTION_TYPE \t= AMAL_FUNCTION + TYPE;\n String ATTR_TYPE \t \t= ATTR + TYPE;\n\n\n // Path variables\n\n // Path pattern: /___ss\n String PATH \t\t=\"/\";\n String PATH_PROJECT = PATH + PROJECT;\n String PATH_CONCEPTS \t= PATH + CONCEPTS;\n String PATH_CASEBASES \t= PATH + CASEBASES;\n String PATH_AMAL_FUNCTIONS = PATH + AMAL_FUNCTIONS;\n String PATH_CASES \t\t= PATH + CASES;\n String PATH_ATTRIBUTES \t= PATH + ATTRS;\n String PATH_VALUE_RANGE = PATH + VALUE + \"Range\";\n String PATH_SIM_FUNCTIONS = PATH + SIM_FUNCTIONS;\n\n String PATH_EPHEMERAL = PATH + EPHEMERAL;\n String PATH_ANALYTICS = PATH + ANALYTICS;\n\n\n // Path pattern: /___s/{___ID}\n String PATH_CONCEPT_ID\t = PATH_CONCEPTS + \"/{\" + CONCEPT_ID \t + \"}\";\n String PATH_CASEBASE_ID \t = PATH_CASEBASES + \"/{\" + CASEBASE_ID \t + \"}\";\n String PATH_AMAL_FUNCTION_ID = PATH_AMAL_FUNCTIONS + \"/{\" + AMAL_FUNCTION_ID+ \"}\";\n String PATH_CASE_ID \t = PATH_CASES + \"/{\" + CASE_ID\t + \"}\";\n String PATH_ATTR_ID \t = PATH_ATTRIBUTES + \"/{\" + ATTR_ID + \"}\";\n String PATH_SIM_FUNCTION_ID = PATH_SIM_FUNCTIONS + \"/{\" + SIM_FUNCTION_ID + \"}\";\n //String PATH_ATTR_ID_LIST \t = PATH_ATTRIBUTES + \"/{\" + ATTR_ID_LIST + \"}\";\n String PATH_NEW_ATTR_ID \t = PATH_ATTRIBUTES + \"/{\" + NEW_ATTR_ID + \"}\";\n\n\n // Path pattern: /concepts/{conceptID}/___s\n String PATH_CONCEPT_CASEBASES \t= PATH_CONCEPT_ID + PATH_CASEBASES;\n String PATH_CONCEPT_AMAL_FUNCTIONS = PATH_CONCEPT_ID + PATH_AMAL_FUNCTIONS;\n String PATH_CONCEPT_CASES \t \t= PATH_CONCEPT_ID + PATH_CASES;\n String PATH_CONCEPT_ATTRS \t \t= PATH_CONCEPT_ID + PATH_ATTRIBUTES;\n\n\n // Path pattern: /concepts/{conceptID}/___s/{___ID}\n String PATH_CONCEPT_CASEBASE_ID \t = PATH_CONCEPT_ID + PATH_CASEBASE_ID;\n String PATH_CONCEPT_AMAL_FUNCTION_ID = PATH_CONCEPT_ID + PATH_AMAL_FUNCTION_ID;\n String PATH_CONCEPT_CASE_ID \t = PATH_CONCEPT_ID + PATH_CASE_ID;\n String PATH_CONCEPT_ATTR_ID\t \t = PATH_CONCEPT_ID + PATH_ATTR_ID;\n //String PATH_CONCEPT_ATTR_ID_LIST\t \t = PATH_CONCEPT_ID + PATH_ATTR_ID_LIST;\n\n\n //Path pattern: /concepts/{conceptID}/casebases/{casebaseID}/___s\n String PATH_CONCEPT_CASEBASE_AMAL_FUNCTIONS = PATH_CONCEPT_CASEBASE_ID + PATH_AMAL_FUNCTIONS;\n String PATH_CONCEPT_CASEBASE_CASES = PATH_CONCEPT_CASEBASE_ID + PATH_CASES;\n\n //Path pattern: /concepts/{conceptID}/casebases/{casebaseID}/___s/{___ID}\n String PATH_CONCEPT_CASEBASE_AMAL_FUNCTION_ID = PATH_CONCEPT_CASEBASE_ID + PATH_AMAL_FUNCTION_ID;\n String PATH_CONCEPT_CASEBASE_CASE_ID = PATH_CONCEPT_CASEBASE_ID + PATH_CASE_ID;\n\n //Path pattern: /concepts/{conceptID}/attributes/{attributeID}/valueRange\n String PATH_CONCEPT_ATTR_VALUE_RANGE = PATH_CONCEPT_ATTR_ID + PATH_VALUE_RANGE;\n\n //Path pattern: /concepts/{conceptID}/attributes/{attributeID}/___s\n String PATH_CONCEPT_ATTR_SIM_FUNCTIONS = PATH_CONCEPT_ATTR_ID + PATH_SIM_FUNCTIONS;\n\n //Path pattern: /concepts/{conceptID}/attributes/{attributeID}/___s/{___ID}\n String PATH_CONCEPT_ATTR_SIM_FUNCTION_ID = PATH_CONCEPT_ATTR_ID + PATH_SIM_FUNCTION_ID;\n\n\n //Path pattern: /ephemeral/concepts/{conceptID}/amalgamationFunctions/{amalgamationFunctionID}s\n String PATH_EPHEMERAL_CONCEPT_AMAL_FUNCTION_ID = PATH_EPHEMERAL + PATH_CONCEPT_AMAL_FUNCTION_ID;\n\n //Path pattern: /analytics/concepts/{conceptID}/amalgamationFunctions/{amalgamationFunctionID}\n String PATH_ANALYTICS_CONCEPT_AMAL_FUNCTION_ID = PATH_ANALYTICS + PATH_CONCEPT_AMAL_FUNCTION_ID;\n\n String COMPUTE_SELF_SIMLARITY = \"computeSelfSimilarity\";\n String RETRIEVAL_BY_CASE_IDS = \"retrievalByCaseIDs\";\n String RETRIEVAL_BY_CASE_ID_WITH_CONTENT = \"retrievalByCaseIDWithContent\";\n\n // Path pattern: /___\n String PATH_SELF_SIMLARITY \t\t= PATH + COMPUTE_SELF_SIMLARITY;\n String PATH_RETRIEVAL \t\t\t= PATH + RETRIEVAL_BY_CASE_IDS;\n String PATH_RETRIEVAL_BY_CASE_ID_WITH_CONTENT \t= PATH + RETRIEVAL_BY_CASE_ID_WITH_CONTENT;\n\n String PATH_CONCEPT_CASEBASE_SELF_SIMLARITY = PATH_CONCEPT_CASEBASE_ID + PATH_SELF_SIMLARITY;\n\n String PATH_DEFAULT_EPHEMERAL = PATH_EPHEMERAL + PATH_CONCEPT_CASEBASE_AMAL_FUNCTION_ID;\n String PATH_EPHEMERAL_RETRIEVAL = PATH_DEFAULT_EPHEMERAL + PATH_RETRIEVAL;\n String PATH_EPHEMERAL_RETRIEVAL_WITH_CONTENT = PATH_DEFAULT_EPHEMERAL + PATH_RETRIEVAL_BY_CASE_ID_WITH_CONTENT;\n String PATH_EPHEMERAL_SELF_SIMILARITY = PATH_DEFAULT_EPHEMERAL + PATH_SELF_SIMLARITY;\n}", "public ApiUrlBuilder withParameterEnumMap(\n\t\t\tMap<? extends ValueEnum, String> enumMap);", "public interface Endpoint {\n public static final String REDDIT_BASE_URL = \"http://www.reddit.com\";\n\n //public Object call(String subreddit);\n\n}", "interface ApsalarAPI {\n\n /* compiled from: ApEvent */\n public static class Status {\n static final int INVALID = -1;\n static final int POSTPONE = 0;\n static final int SUCCESS = 1;\n }\n\n /* compiled from: ApEvent */\n public static class Type {\n static final int END_SESSION = 4;\n static final int EVENT = 3;\n static final int HEARTBEAT = 2;\n static final int NONE = 0;\n static final int REGISTER = 5;\n static final int RETRY = -1;\n static final int SESSION = 1;\n static final int TRIGGER = 6;\n }\n\n int REST();\n}", "protected abstract RateLimitRule createRule(HttpMessage msg) throws URIException;", "@When(\"user calls {string} with {string} http request\")\n public void user_calls_with_http_request(String resource, String method) {\n System.out.println(\"When\");\n\n APIResourcesEnum apiresource=APIResourcesEnum.valueOf(resource);\n System.out.println(apiresource.getResource());\n\n\n if(method.equalsIgnoreCase(method))\n response=reqSpec.when().post(apiresource.getResource());\n else if(method.equalsIgnoreCase(method))\n response= reqSpec.when().get(apiresource.getResource());\n\n\n // throw new io.cucumber.java.PendingException();\n }", "public ServicesFormatEnum(){\n super();\n }", "On_Device_Resource createOn_Device_Resource();", "public interface RestConstants {\n\n /**\n * Base for rest api requests\n */\n String BASE = \"/api\";\n\n /**\n * end-point for calculating an area\n */\n String CALCULATE_AREA = \"/area\";\n /**\n * end-point for calculating a volume\n */\n String CALCULATE_VOLUME = \"/volume\";\n /**\n * end-point for calculating a light to area ratio\n */\n String CALCULATE_LIGHT_TO_AREA = \"/light-area\";\n /**\n * end-point for calculating an energy to volume ratio\n */\n String CALCULATE_ENERGY_TO_VOLUME = \"/energy-volume\";\n /**\n * end-point for finding rooms above provided norm\n */\n String GET_ROOMS_ABOVE_ROOM = \"/norm-check\";\n /**\n * end-point for calculating penalty for rooms above norm\n */\n String CALCULATE_PENALTY = \"/penalty\";\n}", "Network_Resource createNetwork_Resource();", "private Resource() {}", "@ResourceDefinition (\n name = \"Notes\",\n id = NotesRSDefinition.REL,\n description = \"The set of notes attached to a person or relationship.\",\n resourceElement = Gedcomx.class,\n embedded = true,\n transitions = {\n @StateTransition( rel = NoteRSDefinition.REL, description = \"A note.\", scope = Note.class, conditional = true, targetResource = NoteRSDefinition.class ),\n @StateTransition( rel = PersonRSDefinition.REL, description = \"The person.\", scope = Person.class, conditional = true, targetResource = PersonRSDefinition.class ),\n @StateTransition( rel = RelationshipRSDefinition.REL, description = \"The relationship.\", scope = Relationship.class, conditional = true, targetResource = RelationshipRSDefinition.class )\n }\n)\npublic interface NotesRSDefinition {\n\n public static final String REL = Rel.NOTES;\n\n /**\n * Read the list of notes on the entity.\n *\n * @return The list of notes.\n */\n @GET\n @StatusCodes ({\n @ResponseCode ( code = 200, condition = \"Upon a successful read.\"),\n @ResponseCode( code = 204, condition = \"Upon a successful query with no results.\"),\n @ResponseCode( code = 404, condition = \"The specified entity has been moved, deleted, or otherwise not found.\")\n })\n Response get();\n\n /**\n * Create a note.\n *\n * @param note The note to be created.\n * @return The appropriate response.\n */\n @POST\n @StatusCodes({\n @ResponseCode( code = 201, condition = \"The creation of the note was successful. Expect a location header specifying the link to the note.\"),\n @ResponseCode( code = 400, condition = \"If the request was unable to be understood by the application.\")\n })\n Response post( Gedcomx note );\n\n}", "public interface ResourceReader<E> {\n /**\n * get resource types supported by this ResourceReader\n * @return types of resource which this ResourceReader understands (String array)\n */\n String [] getSupportedTypes();\n\n /**\n * Identification for vendor of this ResourceReader\n * @return string\n */\n String getProviderString();\n\n /**\n * Create appropriate Object from given Resource (for example Image if Resource.getType() returns \"gif\")\n * @param data Resource\n * @return Object\n */\n E create(Resource data);\n}", "Service_Resource createService_Resource();", "Device_Resource createDevice_Resource();", "@Path(\"policyDefs\")\npublic interface IPolicyDefinitionResource {\n\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<PolicyDefinitionSummaryBean> list() throws NotAuthorizedException;\n\n @POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public PolicyDefinitionBean create(PolicyDefinitionBean bean) throws PolicyDefinitionAlreadyExistsException, NotAuthorizedException;\n \n @GET\n @Path(\"{policyDefinitionId}\")\n @Produces(MediaType.APPLICATION_JSON)\n public PolicyDefinitionBean get(@PathParam(\"policyDefinitionId\") String policyDefinitionId) throws PolicyDefinitionNotFoundException, NotAuthorizedException;\n\n @PUT\n @Path(\"{policyDefinitionId}\")\n public void update(@PathParam(\"policyDefinitionId\") String policyDefinitionId, PolicyDefinitionBean bean)\n throws PolicyDefinitionNotFoundException, NotAuthorizedException;\n\n @DELETE\n @Path(\"{policyDefinitionId}\")\n public void delete(@PathParam(\"policyDefinitionId\") String policyDefinitionId)\n throws PolicyDefinitionNotFoundException, NotAuthorizedException;\n\n}", "public Registry registerEnum(EnumIO<?> eio, int id);", "public interface IResource {\n\n\t/**\n\t * An optional attribute that identifies the Resource-element.\n\t */\n\tpublic URI getId();\n\n\tpublic boolean setId(URI id);\n\n\t/**\n\t * An optional attribute. If present, it provides a relative URI template for the identifier of the resource. The\n\t * resource's base URI is given by the Resource-element's parent Resource- or Resources-element. The value of the\n\t * path-attribute may be static or may contain embedded template parameters.\n\t */\n\tpublic String getPath();\n\n\tpublic boolean setPath(String path);\n\n\t/**\n\t * An optional attribute whose type is a space-separated list of URIs. Each value in the list identifies a\n\t * ResourceType-element that defines a set of methods supported by the resource.\n\t */\n\tpublic List<URI> getType();\n\n\tpublic boolean setType(List<URI> type);\n\n\tpublic boolean addType(URI type);\n\n\t/**\n\t * Defines the media type for the query component of the resourve URI. Defaults to\n\t * 'application/x-www-form-urlencoded' if not specified which results in query strings being formatted as specified.\n\t */\n\tpublic String getQueryType();\n\n\tpublic boolean setQueryType(String queryType);\n\n\t/**\n\t * A Resource-element contains zero or more Doc-elements.\n\t */\n\tpublic List<IDoc> getDocs();\n\n\tpublic boolean addDoc(IDoc doc);\n\n\t/**\n\t * A Resource-element contains zero or more Param-elements with one of the following values for its style-attriute:\n\t * template, matrix, query, header.\n\t */\n\tpublic List<IParam> getParams();\n\n\tpublic boolean addParam(IParam param);\n\n\t/**\n\t * A Resource-element contains zero or more Method-elements, each of which describes the input to and output from an\n\t * HTTP protocol method that can be applied to the resource. Such locally-defined methods are added to any methods\n\t * included in ResourceType-elements referred to using the type-attribute.\n\t */\n\tpublic List<IMethod> getMethods();\n\n\tpublic boolean addMethod(IMethod method);\n\n\t/**\n\t * A Resource-element contains zero or more Resource-elements that describe sub-resources. Such sub-resources\n\t * inherit matrix and template parameters from the parent resource since their URI is relative to that of the parent\n\t * resource but they do not inherit query or header parameters specified globally for the parent resource.\n\t */\n\tpublic List<IResource> getResources();\n\n\tpublic boolean addResource(IResource resource);\n\n\tpublic String toString();\n\n}", "public interface EnumParameter extends ParameterValue {\r\n}", "@Path(\"/api/khy\")\n@Produces(\"application/json\")\npublic interface LegaliteDysRESTApis {\n\n @POST\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n @Path(\"/belge-durum-guncelle\")\n SimpleResponse belgeDurumGuncelle(BelgeDurumuModel belgeDurum);\n\n @POST\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n @Path(\"/belge-al\")\n SimpleResponse belgeGonder(BelgeAlRestModel request);\n}", "interface WithKind {\n /**\n * Specifies the kind property: The Kind of the resource..\n *\n * @param kind The Kind of the resource.\n * @return the next definition stage.\n */\n Update withKind(String kind);\n }", "public ResourceFactory(){}", "private FkCascadeActionOptions(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public ApiUrlBuilder withFieldEnumSet(String name,\n\t\t\tSet<? extends ValueEnum> enumSet);", "public interface IResourceType {\n\n\t/**\n\t * A required attribute that identifies the ResourceType-element.\n\t */\n\tpublic URI getId();\n\n\tpublic boolean setId(URI id);\n\n\t/**\n\t * A ResourceType-element contains zero or more Doc-elements.\n\t */\n\tpublic List<IDoc> getDocs();\n\n\tpublic boolean addDoc(IDoc doc);\n\n\t/**\n\t * A ResourceType-element contains zero or more Param-elements whith one of the following values for its\n\t * style-attribute: query, header.\n\t */\n\tpublic List<IParam> getParams();\n\n\tpublic boolean addParam(IParam param);\n\n\t/**\n\t * A ResourceType-element contains zero or more Method-elements, each of which describes a HTTP protocol method that\n\t * can be applied to a resource of this type.\n\t */\n\tpublic List<IMethod> getMethods();\n\n\tpublic boolean addMethod(IMethod method);\n\n\tpublic String toString();\n\n}", "EnumValue createEnumValue();", "EnumValue createEnumValue();", "EnumValue createEnumValue();", "Builder addLearningResourceType(String value);", "public ResourceDesc() {\n }", "protected AbstractClientResource(Resource referrer, URI thisResourceUri, String representationType,\n Class<? extends T> entityClass, ClientUtil clientUtil, boolean invokeGet,\n ClientFactory clientFactory) throws IllegalArgumentException,\n UniformInterfaceException {\n if (thisResourceUri == null) {\n throw new IllegalArgumentException(\"URI to current resource can not be null\");\n }\n if (StringUtils.isBlank(representationType)) {\n throw new IllegalArgumentException(\"Accept header value can not be null!\");\n }\n if (entityClass == null) {\n throw new IllegalArgumentException(\"Entity class can not be null!\");\n }\n if (clientFactory == null) {\n clientFactory = ApplicationWideClientFactoryImpl.getClientFactory(CONNECTION_CONFIG, this);\n }\n this.clientFactory = clientFactory;\n this.referrer = referrer;\n this.thisResourceUri = thisResourceUri;\n this.representationType = representationType;\n this.entityClass = entityClass;\n this.relatedResourceUris = new ConcurrentMultivalueMap<String, ResourceLink>();\n this.clientUtil = clientUtil;\n this.absoluteThisResourceUri = getHttpClient().getAbsoluteUri(thisResourceUri, referrer == null ? null : referrer.\n getUri());\n if (invokeGet) {\n get();\n }\n }", "public interface HttpConstants {\n\n String BASE_URL = \"http://apis.tudou.com/\";\n String REQUEST_HTTP_URL = \"classification/v1/startPage\";\n}", "public TarefaResource() {\r\n }", "public interface EnumsKeyConstants {\n\n /*客户状态*/\n static final String CSTM_STATE = \"CSTM_STATE\";\n\n interface CSTMSTATE {\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*正常*/\n static final String NORMAL = \"01\";\n\n /*停用*/\n static final String BLOCKUP = \"02\";\n\n /*冻结*/\n static final String FROZEN = \"03\";\n }\n\n /*短信类型*/\n static final String SMS_TYPE = \"SMS_TYPE\";\n\n interface SMSTYPE {\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*验证码*/\n static final String VERCODE = \"01\";\n\n /*通知*/\n static final String NOTICE = \"02\";\n\n /*营销*/\n static final String MARKETING = \"03\";\n\n /*未知*/\n static final String UNKNOWN = \"04\";\n }\n\n /*模板类型*/\n static final String SMODEL_TYPE = \"SMODEL_TYPE\";\n\n interface SMODELTYPE {\n /*验证码*/\n static final String VERCODE = \"01\";\n\n /*通知&订单*/\n static final String NOTICE = \"02\";\n }\n\n /*审核状态*/\n static final String AUDIT_STATE = \"AUDIT_STATE\";\n\n interface AUDITSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*审核中*/\n static final String ING = \"01\";\n\n /*审核通过*/\n static final String ED = \"02\";\n\n /*审核驳回*/\n static final String DF = \"03\";\n\n }\n\n /*运营商类型*/\n static final String OPERATOR_TYPE = \"OPERATOR_TYPE\";\n\n interface OPERATORTYPE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*移动*/\n static final String MOBILE = \"01\";\n\n /*电信*/\n static final String TELECOM = \"02\";\n\n /*联通*/\n static final String UNICOM = \"03\";\n }\n\n /*通道状态*/\n static final String CHANNEL_STATE = \"CHANNEL_STATE\";\n\n interface CHANNELSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*可用*/\n static final String ENABLE = \"01\";\n\n /*禁用*/\n static final String DISABLE = \"02\";\n }\n\n /*短信发送状态*/\n static final String SMSSEND_STATE = \"SMSSEND_STATE\";\n\n interface SMSSENDSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*成功*/\n static final String SUCCESS = \"01\";\n\n /*失败*/\n static final String FAILURE = \"02\";\n\n /*未知*/\n static final String UNKNOWN = \"03\";\n\n /*无效*/\n static final String INVALID = \"04\";\n\n /*其他*/\n static final String OTHER = \"05\";\n }\n\n /*短息接收状态*/\n static final String SMSDELIV_STATE = \"SMSDELIV_STATE\";\n\n interface SMSDELIVSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*收到*/\n static final String DELIV = \"01\";\n\n /*未收到*/\n static final String UNDELIV = \"02\";\n }\n\n /*批次单状态*/\n static final String BATCH_STATE = \"BATCH_STATE\";\n\n interface BATCHSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*等待发送*/\n static final String WAIT = \"01\";\n\n /*发送中*/\n static final String ING = \"02\";\n\n /*完成*/\n static final String FINISH = \"03\";\n\n /*已撤回*/\n static final String REVOKE = \"04\";\n\n /*已驳回*/\n static final String REJECT = \"05\";\n }\n\n /*适用范围类型*/\n static final String USEAGE_TYPE = \"USEAGE_TYPE\";\n\n interface USEAGETYPE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*通用*/\n static final String PUB = \"01\";\n\n /*个人*/\n static final String PRI = \"02\";\n }\n\n /*是否发送*/\n static final String SMSSEND_CODE = \"SMSSEND_CODE\";\n\n interface SMSSENDCODE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*发送*/\n static final String SEND = \"01\";\n\n /*不发送*/\n static final String DESEND = \"02\";\n }\n\n /*短信数量增减类型*/\n static final String ACCOUNT_TYPE = \"ACCOUNT_TYPE\";\n\n interface ACCNTTYPE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*充值*/\n static final String ADDITION = \"01\";\n\n /*消费*/\n static final String SUBTRACTION = \"02\";\n\n }\n\n /*充值单审核状态*/\n static final String RECHARGE_STATE = \"RECHARGE_STATE\";\n\n interface RECHARGESTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*成功*/\n static final String SUCCESS = \"01\";\n\n /*失败*/\n static final String FAILURE = \"02\";\n\n /*确认中*/\n static final String COMFIRM = \"03\";\n\n /*已取消*/\n static final String CANCEL = \"04\";\n\n }\n\n /*手机号是否在黑名单中*/\n static final String REPLY_BLACK = \"REPLY_BLACK\";\n\n interface REPLYBLACK{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*不在黑名单中*/\n static final String NOTINT = \"01\";\n\n /*在黑名单中*/\n static final String INT = \"02\";\n\n\n }\n /*逻辑删除enable*/\n static final String DELETE_ENABLE = \"DELETE_ENABLE\";\n\n interface DELETEENABLE{\n\n /*已删除*/\n static final Integer DELETE = 0;\n\n /*未删除*/\n static final Integer UNDELE = 1;\n\n\n }\n /*适用范围 模板 通用,个人*/\n static final String SUIT_RANGE = \"SUIT_RANGE\";\n\n interface SUITRANGE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*通用*/\n static final String COMMON = \"01\";\n\n /*个人*/\n static final String PERSONAL = \"02\";\n\n\n }\n\n /*使用場景 01 平台 , 02 接口*/\n static final String USE_TYPE = \"USE_TYPE\";\n\n interface USETYPE{\n\n /*平台*/\n static final String PLTFC = \"01\";\n\n /*接口*/\n static final String INTFC = \"02\";\n }\n\n /* 提醒类型 */\n static final String REMIND_TYPE = \"REMIND_TYPE\";\n\n interface REMINDTYPE{\n /* 未知 */\n static final String UNKNOWN = \"00\";\n /* 短信数量 */\n static final String SMS_NUM = \"01\";\n /* 发送频率*/\n static final String SEND_RATE = \"02\";\n }\n\n /* 阈值类型 */\n static final String THRESHOLD_TYPE = \"THRESHOLD_TYPE\";\n\n interface THRESHOLDTYPE {\n /* 未知 */\n static final String UNKNOWN = \"00\";\n /* 小于 */\n static final String LESS_THAN = \"01\";\n /* 等于*/\n static final String EQUAL = \"02\";\n /* 大于*/\n static final String GREATER_THAN = \"03\";\n }\n\n /* 客户类型 */\n static final String CSTM_TYPE = \"CSTM_TYPE\";\n\n interface CSTMTYPE{\n /* 未知 */\n static final String UNKNOWN = \"00\";\n /* 个人 */\n static final String PERSON = \"01\";\n /* 企业*/\n static final String COMPANY = \"02\";\n }\n\n /* 支付状态 */\n static final String PAY_TYPE = \"PAY_TYPE\";\n\n interface PAYTYPE{\n /* 审核中 */\n static final String UNPAY = \"01\";\n /* 通过 */\n static final String PAY = \"02\";\n /* 驳回 */\n static final String REJECT = \"03\";\n /* 已取消 */\n static final String CANCEL = \"04\";\n }\n\n /* 任务状态 */\n static final String TASK_STATE = \"TASK_STATE\";\n\n interface TASKSTATE{\n /* 待发送 */\n static final String WAIT_SEND = \"01\";\n /* 已发送 */\n static final String SEND = \"02\";\n /* 成功 */\n static final String SUCCESS = \"03\";\n /* 失败 */\n static final String FAIL = \"04\";\n }\n\n /* 收款账户 */\n static final String PAY_ACCOUNT = \"PAY_ACCOUNT\";\n\n interface PAYACCOUNT{\n /* 个人账户 */\n static final String PRIVATE = \"01\";\n /* 对公账户 */\n static final String PUBLIC = \"02\";\n }\n\n}", "public interface ActorAPI {\n @GET(\"EJP8Q22E-\")\n Call<Actor> getActorImageUrl(String actorName);\n\n @GET(\"EJP8Q22E-\")\n Call<Actor> getTestActorImageUrl();\n}", "public Resource(String resrcName, String resrcDefntn, String screenName, String toolTip, String accessType, String resrcType) {\n\tthis.resrcDefntn = resrcDefntn;\n\tthis.screenName = screenName;\n\tthis.toolTip = toolTip;\n\tthis.resrcName = resrcName;\n\tif (AccessType.EDIT.getAccessTypeCd().equals(accessType)) {\n\t this.accessType = AccessType.EDIT;\n\t} else if (AccessType.EXEC.getAccessTypeCd().equals(accessType)) {\n\t this.accessType = AccessType.EXEC;\n\t} else if (AccessType.VIEW.getAccessTypeCd().equals(accessType)) {\n\t this.accessType = AccessType.VIEW;\n\t} else if (AccessType.UPDATE.getAccessTypeCd().equals(accessType)) {\n\t this.accessType = AccessType.UPDATE;\n\t} else {\n\t this.accessType = AccessType.NONE;\n\t}\n\tif (ResourceType.SCREEN.getResourceTypeCd().equals(accessType)) {\n\t this.resourceType = ResourceType.SCREEN;\n\t} else if (ResourceType.ATTRIBUTE.getResourceTypeCd().equals(accessType)) {\n\t this.resourceType = ResourceType.ATTRIBUTE;\n\t} else if (ResourceType.SECTION.getResourceTypeCd().equals(accessType)) {\n\t this.resourceType = ResourceType.SECTION;\n\t} else if (ResourceType.FUNCTION.getResourceTypeCd().equals(accessType)) {\n\t this.resourceType = ResourceType.FUNCTION;\n\t}\n }", "private ObjectNode ProcessUri(Resource resource){\n //handle uri\n String uri = resource.getURI();\n\n ObjectNode json_object = mapper.createObjectNode();\n\n json_object.put(ArangoAttributes.TYPE, RdfObjectTypes.IRI);\n json_object.put(ArangoAttributes.VALUE, uri);\n\n return json_object;\n }", "private EndpointStatusType(String type)\n\t\t{\n\t\t\tthis.type = type;\n\t\t}", "public LinksResource() {\n }", "public Enum(String val) \n { \n set(val);\n }", "public void addResourceCard(HexType type){\n \n }", "protected abstract T createTestResource();", "public interface EmployeeResource {\n\n /**\n * Retrieves the {@link Employee} resource by id.\n *\n * @param id employee id.\n * @return {@link Employee} resource.\n */\n @GetMapping(value = \"/v1/bfs/employees/{id}\", produces = MediaType.APPLICATION_JSON_VALUE)\n ResponseEntity<Employee> employeeGetById(@PathVariable(\"id\") String id) throws EmployeeNotFoundException;\n\n // ----------------------------------------------------------\n // TODO - add a new operation for creating employee resource.\n // ----------------------------------------------------------\n \n\t/**\n * Inserts employee record.\n * \n * @Valid annotation helps to validate \n * the javax validations on the employee POJO\n *\n * @param uuid the uuid\n * @param employee the employee\n * @return the response entity\n * @throws BadRequestException the bad request exception\n */\n @PostMapping(value = \"/v1/bfs/employees\", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\n ResponseEntity<Employee> insertEmployee(\n \t\t@RequestHeader String uuid,\n \t\t@Valid @RequestBody Employee employee) throws BadRequestException;\n}", "E create(Resource data);", "public ResourceTypeExtension() {\n }", "@Override\r\n\tpublic void setGetResource(ResourceType resource) {\n\t\t\r\n\t}", "public interface BaseEnum {\n\n int getStatus();\n\n String getDesc();\n}", "public Bpmn2ResourceImpl(URI uri) {\r\n super(uri);\r\n this.xmlHelper = new BpmnXmlHelper(this);\r\n this.uriHandler = new QNameURIHandler(xmlHelper);\r\n this.getDefaultLoadOptions().put(XMLResource.OPTION_URI_HANDLER, uriHandler);\r\n this.getDefaultSaveOptions().put(XMLResource.OPTION_URI_HANDLER, uriHandler);\r\n }", "Resource getAbilityResource();", "ActionType createActionType();", "ObjectResource createObjectResource();", "public Object makeResource();", "private LanguagesEnum(Integer languagesEnumValue)\r\n\t{\r\n\r\n\t\tlanguagesEnum = languagesEnumValue;\r\n\r\n\t}", "@Path(\"/travel\")\n\npublic interface TravelResource {\n\n @POST\n @Produces({ MediaType.APPLICATION_JSON + \";charset=utf-8\"})\n public Travel postTravelDetails(Travel travel) throws Exception;\n\n\n @GET\n @Path(\"/{id}\")\n @Produces({ MediaType.APPLICATION_JSON + \";charset=utf-8\"})\n public Travel getTravelDetails(@PathParam(\"id\") Long id) throws Exception;\n}", "public interface URLs\r\n{\r\n String BASIC_URL = \"http://api.timetable.asia/\";\r\n\r\n String KEY = \"221b368d7f5f597867f525971f28ff75\";\r\n\r\n String COMPANY_URL = \"operator.json\";\r\n String LANGUAGE_URL = \"lang.json\";\r\n String VEHICLE_URL = \"fleet.json\";\r\n String ROUTE_URL = \"route.json\";\r\n String TRIP_URL = \"trip.json\";\r\n String COMMIT_URL = \"commit.json\";\r\n String CURRENT_STATIONS_URL = \"station.json\";\r\n public static final String LANGPACK_URL = \"langpack.json\";\r\n}", "public interface RequestURLs {\n String DEFAULT_URL = \"http://aperturedev.co.kr:21002/petcommunity/\";\n\n /*\n 매칭 서비스 관련\n */\n String GET_PET_TYPES = DEFAULT_URL + \"services/get-pettypes.php\"; // 강아지 종을 가져온다.\n String REGIST_MATCH_PET = DEFAULT_URL + \"matching/regist-new-pet.php\"; // 팻 등록 실시\n String MATCHING_OTHER_PET = DEFAULT_URL + \"matching/matching.php\"; // 매칭할 팻을 하나 가져옵니다.\n\n /*\n 사용자 정보 관련\n */\n String GET_USER_INFO = DEFAULT_URL + \"users/get-info.php\"; // UUID -> 사용자 정보\n String REGIST_SERVICE = DEFAULT_URL + \"users/signup.php\"; // 회원가입을 실시한다.\n String IS_REGIST_SERVICE = DEFAULT_URL + \"/users/is-registed.php\"; // 회원가입 되어 있는지 확인한다.\n String LOGIN_SERVICE = DEFAULT_URL + \"users/signin.php\"; // 로그인 처리한다.\n\n\n\n\n}", "public interface ShortUrlApi {\n\n @POST(\"shorturl\")\n @Converter(ShortUrlConverter.class)\n Call<String> shortUrl(@Body String longUrl,@Query(\"access_token\")String accessToken);\n\n class ShortUrlConverter extends JacksonConverter<String,String> {\n @Override\n public byte[] request(ObjectMapper mapper, Type type, String longUrl) throws IOException {\n return String.format(\"{\\\"action\\\":\\\"long2short\\\",\\\"long_url”:”%s”}\",longUrl).getBytes(CHARSET_UTF8);\n }\n\n @Override\n public String response(ObjectMapper mapper, Type type, byte[] response) throws IOException {\n JsonNode jsonNode = mapper.readTree(response);\n return jsonNode.path(\"short_url\").asText();\n }\n }\n}", "public abstract RestURL getURL();", "private AnalysisMethodEnum(String name) {\n\t\tthis.methodName = name;\n\t}", "Builder addLearningResourceType(Text value);", "void setResourceId(int value);", "public interface FolderResource {\n\n @POST\n @Consumes(APPLICATION_JSON)\n @Produces(APPLICATION_JSON)\n @Path(\"/mail/folder\")\n Response create(FolderDTO folderDTO) throws Exception;\n\n @GET\n @Consumes(APPLICATION_JSON)\n @Produces(APPLICATION_JSON)\n @Path(\"/mail/folder\")\n Response get(@QueryParam(\"folderId\") Long id) throws Exception;\n\n @DELETE\n @Consumes(APPLICATION_JSON)\n @Produces(APPLICATION_JSON)\n @Path(\"/mail/folder\")\n Response delete(@QueryParam(\"folderId\") Long id) throws Exception;\n\n @GET\n @Consumes(APPLICATION_JSON)\n @Produces(APPLICATION_JSON)\n @Path(\"/mail/folder/list\")\n Response list(@QueryParam(\"userLogin\") String login) throws Exception;\n\n}", "public EnumValueConverter() {\n }", "public GenericResource()\n {\n }", "private RESTResource getRestResource(GeobatchRunInfo runInfo) {\n // Mapping og run status\n RESTResource resource = new RESTResource();\n // Category it's our category for geobatch execution\n resource.setCategory(getGeobatchExecutionCategory());\n // Name it's the run UID for the execution\n resource.setName(runInfo.getFlowUid());\n // Description it's the composite id\n resource.setDescription(runInfo.getInternalUid());\n // Metadata it's the status of the execution\n resource.setMetadata(runInfo.getFlowStatus());\n resource.setId(runInfo.getId());\n return resource;\n }", "Uri mo1686a();", "public GenericResource()\r\n {\r\n }", "public BoletajeResource() {\n }", "public Resource() {\n }", "public Resource() {\n }", "@com.exedio.cope.instrument.Generated\n\tprivate WrapEnumItem(final com.exedio.cope.ActivationParameters ap){super(ap);}", "public interface Links {\r\n\r\n /**\r\n * 上传图片\r\n *\r\n * @param parts\r\n * @return\r\n */\r\n @Multipart\r\n @POST(\"user/login\")\r\n Call<ResponseBody> userLogin(@Part List<MultipartBody.Part> parts);\r\n\r\n /**\r\n * 添加技术\r\n *\r\n * @param userInfoId\r\n * @param userSkillId\r\n * @param skillTypeId\r\n * @return\r\n */\r\n @POST(\"/yetdwell/skill/addSkill.do\")\r\n Call<ResponseBody> addSkill(@Query(\"userInfoId\") int userInfoId,\r\n @Query(\"userSkillId\") int userSkillId,\r\n @Query(\"skillTypeId\") int skillTypeId);\r\n\r\n}", "ResourceMethod getMethodType();", "@Override\r\n\tpublic void handleRequest(ResourceVisualizationFactory rvf, ChartParameters params) {\r\n\t\tList<ResourceProperty> result = new ArrayList<ResourceProperty>();\r\n\t\ttry {\r\n\t\t\tString colorValue = retrieveValue(key, params);\r\n\t\t\tif(colorValue.matches(\"r[0-9]{1,3}g[0-9]{1,3}b[0-9]{1,3}\")){\r\n\t\t\t\tList<String> rgb = retrieveValues(colorValue,\"[rgb]\");\r\n\t\t\t\tfor(String rgbString: rgb) {\r\n\t\t\t\t\tint rgbValue = Integer.parseInt(rgbString);\r\n\t\t\t\t\tConstantResourceProperty resourcePropery = new ConstantResourceProperty(rgbValue);\r\n\t\t\t\t\tresult.add(resourcePropery);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(colorValue.matches(\"min[0-9]+(\\\\.[0-9]+)*max[0-9]+(\\\\.[0-9]+)*key(.)+\")) {\r\n\t\t\t\tSystem.out.println(colorValue);\r\n\t\t\t\tList<String> gs = retrieveValues(colorValue,\"(min|max|key)\");\r\n\t\t\t\tSystem.out.println(gs);\r\n\t\t\t\tString gsString1 = gs.get(0);\r\n\t\t\t\tfloat gsValue1 = Float.parseFloat(gsString1);\r\n\t\t\t\tString gsString2 = gs.get(1);\r\n\t\t\t\tfloat gsValue2 = Float.parseFloat(gsString2);\r\n\r\n\t\t\t\tString gsKey = gs.get(2);\r\n\t\t\t\tMetric gsMetric = sf.findMetric(gsKey);\r\n\t\t\t\tif(gsMetric == null){\r\n\t\t\t\t\tthrow new NoResultException(\"Grayscale metric not found\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tResourceProperty rp = new ScaledResourceProperty(gsValue1, gsValue2, 255, 0, sf, gsMetric);\r\n\r\n\t\t\t\tfor(int i=0;i<3;++i){\r\n\t\t\t\t\tresult.add(rp);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\telse throw new NoResultException(\"Color not recognized\");\r\n\t\t}\r\n\t\tcatch(NoResultException e) {\r\n\t\t\tLOG.info(\"retrieve color value failed, setting defaults\");\r\n\t\t\tfor(int i=0;i<3;++i){\r\n\t\t\t\tresult.add(DEFAULT_COLOR);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t((BoxFactory) rvf).setRedProperty(result.get(0));\r\n\t\t((BoxFactory) rvf).setGreenProperty(result.get(1));\r\n\t\t((BoxFactory) rvf).setBlueProperty(result.get(2));\r\n\t\t\r\n\t\tif(next != null) {\r\n\t\t\tnext.handleRequest(rvf, params);\r\n\t\t}\r\n\r\n\t}", "public interface LMCPEnum {\n\n public long getSeriesNameAsLong();\n\n public String getSeriesName();\n\n public int getSeriesVersion();\n\n public String getName(long type);\n\n public long getType(String name);\n\n public LMCPObject getInstance(long type);\n\n public java.util.Collection<String> getAllTypes();\n}", "private TipoDocumentoEnum(String descripcion,String codigo) {\r\n\t\tthis.descripcion=descripcion;\r\n\t\tthis.codigo=codigo;\r\n\t}", "CommandEnum(String commandEnum) {\n this.label = commandEnum;\n }", "public interface ApiConfig {\n\n String DYTT_URL = \"http://www.dytt8.net/index.htm\";\n String DY_2018_URL = \"http://www.dy2018.com/\";\n String DYTT_XL = \"http://www.ygdy8.net/html/gndy/index.html\";\n String XIAO_PIAN_URL = \"http://www.xiaopian.com/html/\";\n String PIAO_HUA_URL = \"http://www.piaohua.com/html/\";\n String K_567_URL = \"http://www.567k.info/?\";\n\n interface Type {\n String DYTT = \"dytt\";\n String DY_2018 = \"dy2018\";\n String XIAO_PIAN = \"xiaopian\";\n String PIAO_HUA = \"piaohua\";\n String K_567 = \"k567\";\n\n int DYTT_XL_TYPE = 0;\n int DYTT_CHOSEN_TYPE = 1;\n }\n}", "public QuotenResource() {\n // TODO Auto-generated constructor stub\n }", "public GenericResource() {\n }", "public interface Props {\n public final static String HTTP=\"http://\";\n public final static String SEP=\":\";\n public final static String POST_TYPE_JSON=\"application/json\";\n}", "private PortType(int value, String name, String literal)\n {\n this.value = value;\n this.name = name;\n this.literal = literal;\n }", "EnumConstant createEnumConstant();", "EnumValueDefinition createEnumValueDefinition();", "@Override\n public void initialize(URL url, ResourceBundle resourceBundle) {\n\n switch (reportType) {\n case \"Appointments\" : appointmentReport(); break;\n case \"Contact Schedule\" : contactReport(); break;\n case \"User Load\" : userReport(); break;\n }\n\n }" ]
[ "0.56795883", "0.5638733", "0.5539328", "0.5530198", "0.54647344", "0.53847617", "0.5255242", "0.5237457", "0.5226229", "0.5223631", "0.5174545", "0.5165775", "0.5137955", "0.5134714", "0.51298016", "0.51234305", "0.5118092", "0.5113268", "0.51026213", "0.50072104", "0.50014305", "0.5000302", "0.4993153", "0.49915278", "0.49703383", "0.4950226", "0.4933659", "0.49085164", "0.49015832", "0.48916075", "0.48889434", "0.48740566", "0.48669475", "0.4864008", "0.48617232", "0.48615775", "0.48544168", "0.4851625", "0.48438808", "0.4842722", "0.48397467", "0.48180312", "0.48180312", "0.48180312", "0.48086342", "0.48060468", "0.48021334", "0.48002064", "0.4798949", "0.4789661", "0.47786614", "0.47619838", "0.47602457", "0.47525406", "0.47506845", "0.47495952", "0.4746938", "0.474638", "0.47431293", "0.47263783", "0.47175473", "0.4716567", "0.47131798", "0.47070858", "0.47055689", "0.47010753", "0.4698804", "0.46888185", "0.46854234", "0.468396", "0.4682326", "0.46801585", "0.46753585", "0.46731505", "0.46694517", "0.46678218", "0.46634218", "0.46558046", "0.46556997", "0.4652259", "0.4644696", "0.46372315", "0.4632916", "0.46319172", "0.46304053", "0.46304053", "0.46230805", "0.46225387", "0.4620613", "0.46199754", "0.461886", "0.46155205", "0.46154946", "0.46142042", "0.4613409", "0.46103543", "0.46102372", "0.46074668", "0.46054694", "0.46016514", "0.46003962" ]
0.0
-1
get the response and extract Place_id
@Then("verify place created maps to {string} using {string}") public void verify_place_created_maps_to_using(String expectedName, String resource) throws IOException { js=new JsonPath(responseJson.asString()); PlaceId=js.get("place_id"); System.out.println("Place id created is= "+PlaceId); reqspec=given().log().all().spec(RequestSpecs()).queryParam("place_id", PlaceId); //reusing existing method from above user_calls_with_https_request(resource, "GET"); js=new JsonPath(responseJson.asString()); System.out.println("name fetched from GetAPI response= "+js.get("name")); System.out.println("name that got added by AddPlaceAPI= "+expectedName); assertEquals(expectedName,js.get("name")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getPlaceID(String placeName) {\r\n\t\tString output = \"\";\r\n\t\ttry {\r\n\t\t\tURL url = new URL(\"https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=\"+placeName+\"&inputtype=textquery&fields=place_id&key=AIzaSyAcM2vc8-2JY9I5P7jgvt61TCYa1vo0b98\");\r\n\t\t\tHttpURLConnection conn = (HttpURLConnection)url.openConnection();\r\n\t\t\tconn.setRequestMethod(\"GET\");\r\n\t\t\tconn.connect();\r\n\t\t\tint responsecode = conn.getResponseCode();\r\n\t\t\tif(responsecode != 200) {\r\n\t\t\t\tthrow new RuntimeException(\"HttpResponseCode: \"+responsecode);\r\n\t\t\t} else {\r\n\t\t\t\tJSONParser parse = new JSONParser();\r\n\t\t\t\tScanner scanner = new Scanner(url.openStream());\r\n\t\t\t\twhile (scanner.hasNext()) {\r\n\t\t\t\t\toutput+=scanner.nextLine();\r\n\t\t\t\t}\r\n\t\t\t\tJSONObject jsonobject = (JSONObject)parse.parse(output);\r\n\t\t\t\tJSONArray resultArray = (JSONArray) jsonobject.get(\"candidates\");\r\n\t\t\t\tfor(int count=0; count<1;count++) {\r\n\t\t\t\t\tJSONObject jsonobject1 = (JSONObject)resultArray.get(count);\r\n\t\t\t\t\tSystem.out.println(placeName+\" Place ID: \"+jsonobject1.get(\"place_id\"));\r\n\t\t\t\t\toutput = (String) jsonobject1.get(\"place_id\");\r\n\t\t\t\t}\r\n\t\t\t\tscanner.close();\r\n\t\t\t}\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "public String idOfPlace()\n {\n return id;\n }", "public String getPlaceId() {\n return placeId;\n }", "private HashMap<String, String> getPlace(JSONObject jPlace) {\n\n HashMap<String, String> place = new HashMap<String, String>();\n\n String id = \"\";\n String reference = \"\";\n String description = \"\";\n\n try {\n\n description = jPlace.getString(\"description\");\n id = jPlace.getString(\"place_id\");\n reference = jPlace.getString(\"reference\");\n\n place.put(\"description\", description);\n place.put(\"_id\", id);\n place.put(\"reference\", reference);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return place;\n }", "@SuppressLint(\"SetTextI18n\")\n @Override\n public void onSuccess(FetchPlaceResponse task) {\n\n\n Log.d(TAG, \"onResult: name: \" + task.getPlace().getName());\n Log.d(TAG, \"onResult: name: \" + task.getPlace().getId());\n Log.d(TAG, \"onResult: name: \" + task.getPlace().getAddress());\n\n// getValuesFromCityID(task.getPlace().getId());\n// cityGoogleId = task.getPlace().getId();\n\n\n placeId = null;\n\n// final Place place = task.getPlace();\n\n try{\n mPlace = new PlaceInfo();\n mPlace.setName( task.getPlace().getName().toString());\n// Log.d(TAG, \"onResult: name: \" + place.getName());\n placeName = task.getPlace().getName().toString();\n mPlace.setAddress( task.getPlace().getAddress().toString());\n placeAddress = task.getPlace().getAddress().toString();\n// Log.d(TAG, \"onResult: address: \" + place.getAddress());\n mPlace.setAttributions( task.getPlace().getAttributions().toString());\n//// Log.d(TAG, \"onResult: attributions: \" + place.getAttributions());\n mPlace.setId( task.getPlace().getId());\n placeId = task.getPlace().getId();\n// Log.d(TAG, \"onResult: id:\" + place.getId());\n mPlace.setLatlng( task.getPlace().getLatLng());\n// Log.d(TAG, \"onResult: latlng: \" + place.getLatLng());\n// mPlace.setRating( task.getPlace().getRating());\n// Log.d(TAG, \"onResult: rating: \" + place.getRating());\n mPlace.setPhoneNumber( task.getPlace().getPhoneNumber().toString());\n// Log.d(TAG, \"onResult: phone number: \" + place.getPhoneNumber());\n mPlace.setWebsiteUri( task.getPlace().getWebsiteUri());\n// Log.d(TAG, \"onResult: website uri: \" + place.getWebsiteUri());\n//\n// Log.d(TAG, \"onResult: place: \" + mPlace.toString());\n }catch (NullPointerException e){\n Log.e(TAG, \"onResult: NullPointerException: \" + e.getMessage() );\n }\n\n\n mPlace.setId(task.getPlace().getId());\n moveCamera(task.getPlace().getLatLng(), DEFAULT_ZOOM, task.getPlace().getName());\n\n// places.release();\n\n\n }", "@Override\n\t\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tJSONObject response) {\n\t\t\t\t\t\t\tif (response != null) {\n\t\t\t\t\t\t\t\tplace = Place.decodeJSON(response);\n\t\t\t\t\t\t\t\tplace.id = idPlace;\n\t\t\t\t\t\t\t\tupdateDetailGUI();\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\"Errore\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}", "private void getPlace(String _id) {\n this.binding.main.setVisibility(View.GONE);\n this.binding.loading.setVisibility(View.VISIBLE);\n\n ParseQuery<Place> query = ParseQuery.getQuery(Place.class);\n query.whereEqualTo(Place.KEY_OBJECT_ID, _id);\n query.include(Place.KEY_CATEGORY);\n query.include(Place.KEY_USER);\n query.getFirstInBackground(new GetCallback<Place>() {\n @Override\n public void done(Place object, ParseException e) {\n if(e == null) {\n place = object;\n bindInformation();\n enterReveal();\n } else {\n Toast.makeText(PlaceDetailActivity.this, \"Place not found\", Toast.LENGTH_LONG).show();\n finish();\n }\n }\n });\n\n // Set up elements visibility\n binding.fabCall.setVisibility(View.INVISIBLE);\n binding.fabLike.setVisibility(View.INVISIBLE);\n binding.main.setVisibility(View.VISIBLE);\n binding.loading.setVisibility(View.GONE);\n }", "private Place getPlace(Integer idPlace) {\n\t\tPlace place = null;\n\t\tfor(Place p: places ){\n\t\t\tif(p.getId().equals(idPlace)){\n\t\t\t\tplace = p;\n\t\t\t}\n\t\t}\n\t\treturn place;\n\t}", "private Place getPlace(String identifierPlace) {\n\t\tPlace place = null;\n\t\tfor(Place p: places ){\n\t\t\tif(p.getName().equals(identifierPlace)){\n\t\t\t\tplace = p;\n\t\t\t}\n\t\t}\n\t\treturn place;\n\t}", "static Place getPlaceByID ( int key)\r\n\t{\r\n\t\treturn tm.get(key);\r\n\t}", "protected long getRevisionIdFromResponse(JsonNode response) throws JsonProcessingException {\n\t\tif(response == null) {\n\t\t\tthrow new MalformedResponseException(\"API response is null\");\n\t\t}\n\t\tJsonNode entity = null;\n\t\tif(response.has(\"entity\")) {\n\t\t\tentity = response.path(\"entity\");\n\t\t} else if(response.has(\"pageinfo\")) {\n\t\t\tentity = response.path(\"pageinfo\");\n\t\t} \n\t\tif(entity != null && entity.has(\"lastrevid\")) {\n\t\t\treturn entity.path(\"lastrevid\").asLong();\n\t\t}\n\t\tthrow new MalformedResponseException(\"The last revision id could not be found in API response\");\n\t}", "private PlacesReadTask getPlace(JSONObject googlePlaceJson) {\n PlacesReadTask record=new PlacesReadTask();;\n String placeName = \"-NA-\";\n String id = \"-NA-\";\n String latitude = \"\";\n String longitude = \"\";\n String reference = \"\";\n String rating=\"\";\n\n try {\n if (!googlePlaceJson.isNull(\"name\")) {\n placeName = googlePlaceJson.getString(\"school_name\");\n }\n if (!googlePlaceJson.isNull(\"vicinity\")) {\n id = googlePlaceJson.getString(\"dbn\");\n }\n\n record.setSchool_name(placeName);\n record.setId(id);\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return record;\n }", "public void getPlaceInfo(String id, final ApiPlaceInfoResult callback) {\n Call<Place> call = this.mPlaceCall.getPlaceInfo(id);\n call.enqueue(new Callback<Place>() {\n @Override\n public void onResponse(Call<Place> call, Response<Place> response) {\n int statusCode = response.code();\n if (statusCode == HTTP_200) {\n initRetrofitClient();\n Place repository = response.body();\n Log.d(TAG, repository.toString());\n callback.success(repository);\n } else {\n callback.error(statusCode, response.message());\n }\n }\n\n @Override\n public void onFailure(Call<Place> call, Throwable t) {\n Log.e(TAG, \"Error while calling the 'getPlaceInfo' method!\", t);\n callback.error(-1, t.getLocalizedMessage());\n }\n });\n }", "public String extractingmainid()\r\n\t{\r\n\t\tSystem.out.println(\"welcome to extractingmainid for single reservation\");\r\n\t\tString localresponseJSONString = responseJSONString;\r\n\t\tJSONObject jsonResult = new JSONObject(localresponseJSONString);\r\n\t\tString getbookingsmainid;\r\n\t\tJSONArray getbookingsArray = jsonResult.getJSONObject(\"hotelogix\").getJSONObject(\"response\").getJSONArray(\"bookings\");\r\n\t\tJSONObject bookingsmainid = getbookingsArray.getJSONObject(0);\r\n\t\tgetbookingsmainid = bookingsmainid.getString(\"mainId\");\r\n\t\tSystem.out.println(\":getbookings mainid:\"+getbookingsmainid);\r\n\t\treturn getbookingsmainid;\r\n\t}", "private SpeechletResponse doBankTelephoneNumberResponse(Place place) {\n String speechText = place.getName() + \" hat die Telefonnummer \" + place.getPhoneNumber();\n\n return getResponse(BANK_CONTACT_CARD, speechText);\n }", "public String Get_place() \n {\n\n return place;\n }", "private static void parseResponse(String asyncResponse, final PlaceCallback callback) {\n Log.d(TAG, asyncResponse);\n\n Response response = null;\n Gson gson = new Gson();\n\n Type token = new TypeToken<Response>() {\n }.getType();\n\n try {\n response = gson.fromJson(asyncResponse, token);\n } catch (JsonSyntaxException e) {\n e.printStackTrace();\n callback.onException(e);\n }\n\n if (response == null) {\n callback.onException(new NullPointerException());\n } else {\n\n if (response.getStatus().equals(Status.OK)) {\n callback.onSuccess(response);\n } else {\n callback.onException(new ApiPlacesException(response.getStatus()));\n }\n }\n }", "private void GetRetrofitResponseAccordingToID(){\n\n IMovieApi IMovieApi = Servicey.getMovieApi();\n Call<MovieModel> responseCall = IMovieApi\n .getMovie(\n 343611,\n Credentials.API_KEY);\n\n responseCall.enqueue(new Callback<MovieModel>() {\n @Override\n public void onResponse(Call<MovieModel> call, Response<MovieModel> response) {\n if (response.code() == 200){\n MovieModel model = response.body();\n Log.v(TAG, \"The Response: \" +model.getTitle());\n }else {\n\n try {\n Log.v(TAG, \"Error \" + response.errorBody().string());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }\n\n @Override\n public void onFailure(Call<MovieModel> call, Throwable t) {\n t.printStackTrace();\n }\n });\n\n }", "private void performPlaceDetailSearch(String placeId)\n {\n GenerateGoogleMapApiUrl urlGenerator = new GenerateGoogleMapApiUrl();\n StringBuilder googlePlacesUrl = urlGenerator.getGoogleMapPlacesQueryURL(placeId,GenerateGoogleMapApiUrl.PLACE_DETAIL,mCurrentLocation.getLatitude(),mCurrentLocation.getLongitude());\n Log.d(\"Google Query\",googlePlacesUrl.toString());\n final List<Place> newPlacesList = new ArrayList<Place>();\n // Creating volley request obj\n final JsonObjectRequest placeDetailReq = new JsonObjectRequest(Request.Method.GET,googlePlacesUrl.toString(),null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject result) {\n Log.d(\"JSON Error\", result.toString());\n //hidePDialog();\n // Parsing json\n //for (int i = 0; i < response.length(); i++) {\n try {\n\n JSONObject obj = result.getJSONObject(\"result\");\n Place newPlace = new Place();\n if (!obj.isNull(\"name\")) {\n newPlace.setName(obj.getString(\"name\"));\n }\n if(!obj.isNull(\"rating\"))\n {\n newPlace.setRating(Float.parseFloat(obj.getString(\"rating\")));\n }\n newPlace.setLat(obj.getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lat\"));\n newPlace.setLng(obj.getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lng\"));\n JSONArray types = obj.getJSONArray(\"types\");\n newPlace.setType(types.get(0).toString());\n if(!obj.isNull(\"opening_hours\"))\n {\n newPlace.setOpen(obj.getJSONObject(\"opening_hours\").getBoolean(\"open_now\"));\n }\n if(!obj.isNull(\"place_id\"))\n {\n newPlace.setPlace_id(obj.getString(\"place_id\"));\n }\n if(!obj.isNull(\"price_level\"))\n {\n newPlace.setPrice_level(obj.getString(\"price_level\"));\n }\n if(!obj.isNull(\"international_phone_number\"))\n {\n newPlace.setPhone_number(obj.getString(\"international_phone_number\"));\n }\n if(!obj.isNull(\"formatted_address\"))\n {\n newPlace.setAddress(obj.getString(\"formatted_address\"));\n }\n if(!obj.isNull(\"website\"))\n {\n newPlace.setWebsite(obj.getString(\"website\"));\n }\n\n\n Location placeLocation = new Location(\"\");\n placeLocation.setLatitude(Double.parseDouble(newPlace.getLat()));\n placeLocation.setLongitude(Double.parseDouble(newPlace.getLng()));\n newPlace.setDistance(mCurrentLocation.distanceTo(placeLocation));\n\n\n\n newPlacesList.add(newPlace);\n\n //currentPlaceDetail = newPlace; // set currentPlaceDetail\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n //dismiss keyboard\n hideSoftKeyboard(ARExploreActivity.this);\n //dismiss autocomplete list\n edtSeach.dismissDropDown();\n plotGoogleMap(newPlacesList);\n mPlaceDetail = newPlacesList;\n generateWorld(mWorld,mPlaceDetail,viewSetting,true);//rerender\n zoomToLocationSearchResult(newPlacesList);\n\n if(currentDisplayMode==DISPLAY_PLACE_LIST)\n {\n placeListBottomSheetBehavior.setHideable(true);\n placeListBottomSheetBehavior.setState(BottomSheetBehavior.STATE_HIDDEN);\n previousDisplayMode = currentDisplayMode;\n }\n currentDisplayMode = DISPLAY_PLACE_DETAIL;\n\n\n bottomsheetbehaviorgoogle.setHideable(true);\n bottomsheetbehaviorgoogle.setState(BottomSheetBehaviorGoogleMapsLike.STATE_COLLAPSED);\n extendButton.setVisibility(View.VISIBLE);\n //region for putting the result into place details\n\n placeNameTextView.setText(newPlacesList.get(0).getName()); // set place name\n ratingBar.setRating(newPlacesList.get(0).getRating()); // set Rating\n\n if(!newPlacesList.get(0).getPrice_level().equals(\"\"))\n {\n String priceString=\"\";\n int price = Integer.parseInt(newPlacesList.get(0).getPrice_level()); // set price\n for(int i=0;i<=price;i++)\n {\n priceString = priceString+\"£\";\n }\n priceTextView.setText(priceString);\n /*priceTextView.requestLayout();\n priceTextView.invalidate();*/\n }\n else\n {\n priceTextView.setText(\"\");\n }\n\n if(!newPlacesList.get(0).getPhone_number().equals(\"\"))\n {\n\n phoneTextView.setText(newPlacesList.get(0).getPhone_number()); // set phone number\n /*phoneTextView.requestLayout();\n phoneTextView.invalidate();*/\n phone_row.setVisibility(View.VISIBLE);\n }\n else\n {\n phone_row.setVisibility(View.GONE);\n }\n\n if(!newPlacesList.get(0).getAddress().equals(\"\"))\n {\n\n addressTextView.setText(newPlacesList.get(0).getAddress()); // set address\n /*addressTextView.requestLayout();\n addressTextView.invalidate();*/\n address_row.setVisibility(View.VISIBLE);\n\n }\n else\n {\n phone_row.setVisibility(View.GONE);\n }\n\n if(!newPlacesList.get(0).getWebsite().equals(\"\"))\n {\n websiteTextView.setText(newPlacesList.get(0).getWebsite()); // set website\n /*websiteTextView.requestLayout();\n websiteTextView.invalidate();*/\n website_row.setVisibility(View.VISIBLE);\n\n }\n else\n {\n website_row.setVisibility(View.GONE);\n }\n //endregion\n bottomSheetCOntentLayout.requestLayout();\n bottomSheetCOntentLayout.invalidate();\n\n layoutUpdater.wrapContentAgain(bottomSheetCOntentLayout,true);\n imgPlaceDetail.requestLayout();\n imgPlaceDetail.invalidate();\n placePhotosTask(newPlacesList.get(0).getPlace_id());\n //bottomSheetPlaceDetails.requestLayout();\n\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(TAG, \"Error: \" + error.getMessage());\n //hidePDialog();\n\n }\n });\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(placeDetailReq);\n }", "@Test\n\tpublic void AddandDeletePlace() {\n\t\tRestAssured.baseURI = prop.getProperty(\"HOST\");\n\t\tResponse res = given().\n\n\t\t\t\tqueryParam(\"key\", prop.getProperty(\"KEY\")).body(payLoad.getPostData()).when()\n\t\t\t\t.post(resources.placePostData()).then().assertThat().statusCode(200).and().contentType(ContentType.JSON)\n\t\t\t\t.and().body(\"status\", equalTo(\"OK\")).extract().response();\n\t\t// Task 2 - Grab the Place ID from response\n\n\t\tString responseString = res.asString();\n\t\tSystem.out.println(responseString);\n\t\tJsonPath js = new JsonPath(responseString);\n\t\tString placeid = js.get(\"place_id\");\n\t\tSystem.out.println(placeid);\n\n\t\t// Task 3 place this place id in the Delete request\n\t\tgiven().queryParam(\"key\", \"qaclick123\").body(\"{\" + \"\\\"place_id\\\": \\\"\" + placeid + \"\\\"\" + \"}\").when()\n\t\t\t\t.post(\"/maps/api/place/delete/json\").then().assertThat().statusCode(200).and()\n\t\t\t\t.contentType(ContentType.JSON).and().body(\"status\", equalTo(\"OK\"));\n\t}", "static void requestPlaceById(@NonNull final String placeId,\n @Nullable final ParameterRunnable<Place> responseRunnable,\n @Nullable final Runnable failureRunnable) {\n if (Controller.getGoogleApiClient() != null)\n Places.GeoDataApi.getPlaceById(Controller.getGoogleApiClient(), placeId)\n .setResultCallback(new ResultCallback<PlaceBuffer>() {\n\n /**\n * Automatically invoked upon reception of result from the Google Places\n * GeoDataApi server\n * @param places buffer containing the Place object that corresponds to\n * the submitted placeId\n */\n @Override\n public void onResult(@NonNull PlaceBuffer places) {\n // Update the UI via callbacks to methods defined in the view layer\n if (places.getStatus().isSuccess() && places.getCount() > 0\n && places.get(0) != null) {\n // Successfully retrieved Place object\n if (responseRunnable != null)\n responseRunnable.run(places.get(0));\n } else { // Did not successfully retrieve Place object\n if (failureRunnable != null)\n failureRunnable.run();\n }\n places.release(); // release buffer to prevent memory leak\n }\n });\n }", "@Then(\"^Validate that response contains correct information$\")\n public void validateThatResponseContainsCorrectInformation() {\n id = myResponse.then().extract().path(\"id\").toString();\n System.out.println(\"Wishlist ID is: \" + id);\n }", "private Place extractFromJSON(JSONObject jo) {\n Place place = new Place();\n place.id = jo.optString(\"id\");\n place.name = jo.optString(\"name\");\n\n JSONObject locationObject = jo.optJSONObject(\"location\");\n if (locationObject != null) {\n place.lat = locationObject.optDouble(\"lat\");\n place.lng = locationObject.optDouble(\"lng\");\n place.distance = locationObject.optDouble(\"distance\");\n\n JSONArray addressArray = locationObject.optJSONArray(\"formattedAddress\");\n if (addressArray != null) {\n StringBuilder address = new StringBuilder();\n int arrLen = addressArray.length();\n for (int i = 0; i < arrLen; i++) {\n String value = addressArray.optString(i);\n if (i != 0) {\n address.append(\", \");\n } else {\n place.shortAddress = value;\n }\n address.append(value);\n\n }\n\n place.fullAddress = address.toString();\n }\n }\n\n JSONArray categoryArray = jo.optJSONArray(\"categories\");\n if (categoryArray != null) {\n if (categoryArray.length() > 0) {\n try {\n place.categoryName = categoryArray.optJSONObject(0).optString(\"name\");\n } catch (Exception ignore) {\n\n }\n }\n }\n\n return place;\n }", "public com.apatar.cdyne.ws.demographix.PlaceInfo getPlaceIDbyAddress(java.lang.String addressLine1, java.lang.String city, java.lang.String stateAbbrev, java.lang.String zipCode, java.lang.String licenseKey) throws java.rmi.RemoteException;", "private void getPlace(int idPlace2) {\n\t\tif (Tools.isNetworkEnabled(DetPlaActivity.this)) {\n\t\t\tclient = new AsyncHttpClient();\n\t\t\tclient.get(Tools.GET_DETAIL_URL + idPlace,\n\t\t\t\t\tnew JsonHttpResponseHandler() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tJSONObject response) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tif (response != null) {\n\t\t\t\t\t\t\t\tplace = Place.decodeJSON(response);\n\t\t\t\t\t\t\t\tplace.id = idPlace;\n\t\t\t\t\t\t\t\tupdateDetailGUI();\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\"Errore\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tString responseString, Throwable throwable) {\n\t\t\t\t\t\t\tToast.makeText(DetPlaActivity.this,\n\t\t\t\t\t\t\t\t\t\"Errore nel recupero dei dati\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers,\n\t\t\t\t\t\t\t\t\tresponseString, throwable);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tThrowable throwable, JSONArray errorResponse) {\n\t\t\t\t\t\t\tToast.makeText(DetPlaActivity.this,\n\t\t\t\t\t\t\t\t\t\"Errore nel recupero dei dati\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\t\t\t\t\t\t\tToast.makeText(DetPlaActivity.this,\n\t\t\t\t\t\t\t\t\t\"Errore nel recupero dei dati\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tprivate void updateDetailGUI() {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tlogo.setImageUrl(place.gallery.get(0));\n\t\t\t\t\t\t\tnomePosto.setText(place.nome);\n\t\t\t\t\t\t\tdescrizione.setText(place.description);\n\t\t\t\t\t\t\tnumtelefono.setText(place.telefono);\n\t\t\t\t\t\t\twebsite.setText(place.website);\n\t\t\t\t\t\t\tcitta.setText(place.cittą);\n\t\t\t\t\t\t\tSmartImageView image_detail;\n\t\t\t\t\t\t\tif (place.gallery.size() > 1) {\n\t\t\t\t\t\t\t\tLinearLayout.LayoutParams imagesLayout = new LinearLayout.LayoutParams(\n\t\t\t\t\t\t\t\t\t\tLayoutParams.WRAP_CONTENT,\n\t\t\t\t\t\t\t\t\t\tLayoutParams.WRAP_CONTENT);\n\t\t\t\t\t\t\t\timagesLayout.setMargins(5, 0, 5, 0);\n\t\t\t\t\t\t\t\tfor (int i = 1; i < place.gallery.size(); i++) {\n\t\t\t\t\t\t\t\t\timage_detail = new SmartImageView(\n\t\t\t\t\t\t\t\t\t\t\tDetPlaActivity.this);\n\t\t\t\t\t\t\t\t\timage_detail.setLayoutParams(imagesLayout);\n\t\t\t\t\t\t\t\t\timage_detail\n\t\t\t\t\t\t\t\t\t\t\t.setScaleType(ScaleType.CENTER_CROP);\n\t\t\t\t\t\t\t\t\timage_detail.getLayoutParams().width = 200;\n\t\t\t\t\t\t\t\t\timage_detail.setImageUrl(place.gallery\n\t\t\t\t\t\t\t\t\t\t\t.get(i));\n\t\t\t\t\t\t\t\t\tfinal int index_id_dialog = i;\n\t\t\t\t\t\t\t\t\timage_detail\n\t\t\t\t\t\t\t\t\t\t\t.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated\n\t\t\t\t\t\t\t\t\t\t\t\t\t// method stub\n\t\t\t\t\t\t\t\t\t\t\t\t\tDialogImage dialog = DialogImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.newInstance(place.gallery\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(index_id_dialog)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t\tdialog.show(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetFragmentManager(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTools.TAG_DIALOG_IMAGE);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tgallery.addView(image_detail);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgalleryContainer.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\tgallery.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbtnMappa.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tString url = \"http://maps.google.com/maps?\"\n\t\t\t\t\t\t\t\t\t\t\t+ \"daddr=\" + place.lat + \",\"\n\t\t\t\t\t\t\t\t\t\t\t+ place.longit;\n\t\t\t\t\t\t\t\t\tIntent mapIntent = new Intent(\n\t\t\t\t\t\t\t\t\t\t\tIntent.ACTION_VIEW, Uri.parse(url));\n\t\t\t\t\t\t\t\t\tstartActivity(mapIntent);\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\t\t\tLog.d(\"url offerta\", Tools.OFFERS_BY_PLACE + idPlace);\n\t\t\trvofferte = (RecyclerView) findViewById(R.id.rvofferte);\n\t\t\tLinearLayoutManager llm = new LinearLayoutManager(\n\t\t\t\t\tDetPlaActivity.this);\n\t\t\trvofferte.setLayoutManager(llm);\n\t\t\trvofferte.setSaveEnabled(false);\n\t\t\tclient.get(Tools.OFFERS_BY_PLACE + idPlace,\n\t\t\t\t\tnew JsonHttpResponseHandler() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tJSONArray response) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tfor (int i = 0; i < response.length(); i++) {\n\t\t\t\t\t\t\t\tLog.d(\"off\", response.toString());\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tofferte.add(Offerta.decodeJSON(response\n\t\t\t\t\t\t\t\t\t\t\t.getJSONObject(i)));\n\t\t\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tadapter = new OffertaAdapterRV(DetPlaActivity.this,\n\t\t\t\t\t\t\t\t\tofferte);\n\t\t\t\t\t\t\tif (adapter != null)\n\t\t\t\t\t\t\t\trvofferte.setAdapter(adapter);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tString responseString, Throwable throwable) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers,\n\t\t\t\t\t\t\t\t\tresponseString, throwable);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tThrowable throwable, JSONArray errorResponse) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t} else\n\t\t\tToast.makeText(DetPlaActivity.this,\n\t\t\t\t\t\"Nessuna connessione disponibile!\", Toast.LENGTH_LONG)\n\t\t\t\t\t.show();\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n final PlaceAutocompleteAdapter.PlaceAutocomplete item;\n final String placeId;\n item = mAdapter.getItem(position);\n placeId = String.valueOf(item.placeId);\n Log.i(TAG, \"Autocomplete item selected: \" + item.description);\n\n /*\n Issue a request to the Places Geo Data API to retrieve a Place object with additional\n details about the place.\n */\n PendingResult<PlaceBuffer> placeResult = Places.GeoDataApi\n .getPlaceById(mGoogleApiClient, placeId);\n placeResult.setResultCallback(mUpdatePlaceDetailsCallback);\n Toast.makeText(getApplicationContext(), \"Clicked: \" + item.description,\n Toast.LENGTH_SHORT).show();\n Log.i(TAG, \"Called getPlaceById to get Place details for \" + item.placeId);\n }", "private static void parseResponse(String asyncResponse, final PlacesCallback callback) {\n Log.d(TAG, asyncResponse);\n\n Response response = null;\n Gson gson = new Gson();\n\n Type token = new TypeToken<Response>() {\n }.getType();\n\n try {\n response = gson.fromJson(asyncResponse, token);\n } catch (JsonSyntaxException e) {\n e.printStackTrace();\n callback.onException(e);\n }\n\n if (response == null) {\n callback.onException(new NullPointerException());\n } else {\n\n if (response.getStatus().equals(Status.OK.toString())) {\n callback.onSuccess(response);\n } else {\n callback.onException(new ApiPlacesException(response.getStatus()));\n }\n }\n }", "@Override\n public void onResponse(String response) {\n Document doc = Jsoup.parse(response);\n Elements links = doc.select(\"a[href]\");\n Pattern p = Pattern.compile(\"[0-9]{1,3}\");\n Matcher m = p.matcher(links.get(0).toString());\n\n if(m.find())\n orderID=m.group();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n final AutocompletePrediction item = mAdapter.getItem(position);\n final String placeId = item.getPlaceId();\n final CharSequence primaryText = item.getPrimaryText(null);\n// mAutocompleteViewDest.setText(parent.toString());\n// Log.i(TAG, \"Autocomplete item selected: \" + primaryText);\n\n /*\n Issue a request to the Places Geo Data API to retrieve a Place object with additional\n details about the place.\n */\n PendingResult<PlaceBuffer> placeResult = Places.GeoDataApi\n .getPlaceById(mGoogleApiClient, placeId);\n placeResult.setResultCallback(mUpdatePlaceDetailsCallback);\n\n\n// Toast.makeText(getApplicationContext(), \"Clicked: \" + primaryText,\n// Toast.LENGTH_SHORT).show();\n\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n final AutocompletePrediction item = mAdapter.getItem(position);\n final String placeId = item.getPlaceId();\n final CharSequence primaryText = item.getPrimaryText(null);\n\n Log.i(TAG, \"Autocomplete item selected: \" + primaryText);\n\n /*\n Issue a request to the Places Geo Data API to retrieve a Place object with additional\n details about the place.\n */\n PendingResult<PlaceBuffer> placeResult = Places.GeoDataApi\n .getPlaceById(mGoogleApiClient, placeId);\n placeResult.setResultCallback(mUpdatePlaceDetailsCallback);\n\n //Toast.makeText(getApplicationContext(), \"Clicked: \" + primaryText,\n // Toast.LENGTH_SHORT).show();\n Log.i(TAG, \"Called getPlaceById to get Place details for \" + placeId);\n }", "public final String zzb() {\n return this.placeId;\n }", "public String extractinggroupmainid()\r\n\t{\r\n\t\tSystem.out.println(\"welcome to extractinggrouptempid\");\r\n\t\tString localresponseJSONString = responseJSONString;\r\n\t\tJSONObject jsonResult = new JSONObject(localresponseJSONString);\r\n\t\tString getbookingsgroupcode;\r\n\t\t\r\n\t\tJSONArray getbookingsarray = jsonResult.getJSONObject(\"hotelogix\").getJSONObject(\"response\").getJSONArray(\"bookings\");\r\n\t\tint l = getbookingsarray.length();\r\n\t\tSystem.out.println(\"length\"+l);\r\n\t\t\r\n\t\tString getgrouptempid = jsonResult.getJSONObject(\"hotelogix\").getJSONObject(\"response\").getJSONArray(\"bookings\").getJSONObject(l-2).getJSONObject(\"group\").getString(\"id\");\r\n\t\tSystem.out.println(getgrouptempid);\r\n\t\t\r\n\t\tSystem.out.println(getbookingsarray);\r\n\t\t\r\n\t\t//String groupcode = \"hi\";\r\n\t\t\r\n\t\tSystem.out.println(\"group temp id:\"+getgrouptempid);\r\n\t\tgetGroupTempID = getgrouptempid;\r\n\t\treturn getgrouptempid;\r\n\t}", "void addPlaceAPI() {\n RestAssured.baseURI = \"https://rahulshettyacademy.com/\";\n String response = given().log().all().queryParam(\"key\",\"qaclick123\")\n .header(\"Content-Type\",\"application/json\")\n\n .body(Payloads.addPlaceJson())\n .when().post(\"maps/api/place/add/json\")\n .then().log().all().assertThat().statusCode(200).body(\"scope\",equalTo(\"APP\"))\n .header(\"server\",\"Apache/2.4.18 (Ubuntu)\").extract().response().asString();\n System.out.println(\"the response is\" + response );\n JsonPath jsonpath = new JsonPath(response); // for parsing the json body/payload\n String OriginalpalaceId = jsonpath.getString(\"place_id\");\n System.out.println(\"the place id is\" + OriginalpalaceId );\n\n // update the address using original place id\n\n String updateResponse = given().log().all().queryParam(\"key\",\"qaclick123\")\n .header(\"Content-Type\",\"application/json\")\n .body(\"{\\n\" +\n \"\\\"place_id\\\":\\\"\"+ OriginalpalaceId + \"\\\",\\n\" +\n \"\\\"address\\\":\\\"70 Summer walk, USA\\\",\\n\" +\n \"\\\"key\\\":\\\"qaclick123\\\"\\n\" +\n \"}\")\n .when().put(\"maps/api/place/update/json\")\n .then().log().all().assertThat().statusCode(200).body(\"msg\",equalTo(\"Address successfully updated\"))\n .extract().response().asString();\n jsonpath = null;\n jsonpath = new JsonPath(updateResponse);\n String msg = jsonpath.getString(\"msg\");\n System.out.println(\"the successful msg is \" + msg );\n\n // now getPlace API call to get the updated Place Id\n\n String getResponse = given().log().all().queryParam(\"key\",\"qaclick123\")\n .queryParam(\"place_id\",OriginalpalaceId)\n .when().get(\"maps/api/place/get/json\")\n .then().log().all().assertThat().statusCode(200).extract().response().asString();\n\n jsonpath = null;\n jsonpath = new JsonPath(getResponse);\n System.out.println(jsonpath.getString(\"address\"));\n System.out.println(\"the response of the get API method \"+ getResponse);\n\n Assert.assertEquals(jsonpath.getString(\"address\"),\"70 Summer walk, USA\",\"Address not matched\" );\n\n }", "private void GetLocation(final String str) {\n AlertUtils.showCustomProgressDialog(LocationSearchActivityNew.this);\n String selectedPlaceKey = DataToPref.getSharedPreferanceData(LocationSearchActivityNew.this, LaoxiConstant.SELECTED_PLACE_ID, LaoxiConstant.SELECTED_PLACE_ID_KEY);\n\n CommonImplementation.getInstance().doGetLocation(null, \"https://maps.googleapis.com/maps/api/place/details/json?placeid=\" + selectedPlaceKey + \"&sensor=false&key=\" + getString(R.string.browser_key) + \"&language=\" + Locale.getDefault().getCountry(), new OnTaskComplete() {\n @Override\n public void onSuccess(Response data, boolean success) {\n AlertUtils.dismissDialog();\n if (data.code() == 200) {\n\n String LAT = \"\";\n String Long = \"\";\n String Location = \"\";\n String City = \"\";\n String State = \"\";\n String postal_code = \"\";\n String country = \"\";\n\n try {\n\n String response = data.body().string();\n JSONObject object = new JSONObject(response);\n\n String status = object.getString(\"status\").toString();\n\n if (object.has(\"result\")) {\n //JSONArray results = object.getJSONArray(\"results\");\n int i = 0;\n //Log.i(\"i\", i + \",\" + results.length());\n JSONObject r = object.getJSONObject(\"result\");\n JSONArray addressComponentsArray = r.getJSONArray(\"address_components\");\n do {\n\n JSONObject addressComponents = addressComponentsArray.getJSONObject(i);\n JSONArray typesArray = addressComponents.getJSONArray(\"types\");\n String types = typesArray.getString(0);\n\n if (types.equalsIgnoreCase(\"sublocality\")) {\n Location = addressComponents.getString(\"short_name\");\n Log.i(\"Locality\", Location);\n\n } else if (types.equalsIgnoreCase(\"locality\")) {\n City = addressComponents.getString(\"long_name\");\n Log.i(\"City\", City);\n\n } else if (types.equalsIgnoreCase(\"administrative_area_level_1\")) {\n State = addressComponents.getString(\"long_name\");\n Log.i(\"State\", State);\n\n } else if (types.equalsIgnoreCase(\"postal_code\")) {\n postal_code = addressComponents.getString(\"long_name\");\n Log.i(\"postal_code\", postal_code);\n } else if (types.equalsIgnoreCase(\"country\")) {\n country = addressComponents.getString(\"long_name\");\n Log.i(\"country\", country);\n }\n\n i++;\n } while (i < addressComponentsArray.length());\n\n\n JSONObject geometry = r.getJSONObject(\"geometry\");\n JSONObject location = geometry.getJSONObject(\"location\");\n\n LAT = location.getString(\"lat\");\n Long = location.getString(\"lng\");\n\n\n /* Log.i(\"JSON Geo Locatoin =>\", currentLocation);\n return currentLocation;*/\n\n String Data = LAT + \",,,\" + Long + \",,,\" + Location + \",,,\" + City + \",,,\" + State + \",,,\" +\n postal_code + \",,,\" + country;\n\n\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\", Data + \",,,\" + str);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else if (data.code() == 404) {\n\n }\n }\n\n @Override\n public void onFailure() {\n AlertUtils.dismissDialog();\n }\n });\n }", "@ApiModelProperty(value = \"Unique identifier of the place.\")\n\n\n public String getId() {\n return id;\n }", "public final native PlaceResult getPlace() /*-{\n return this.getPlace();\n }-*/;", "@Test\n public void getPlace() {\n Place result = mDbHelper.getPlace(Realm.getInstance(testConfig), \"1234\");\n\n // Check place\n Assert.assertNotNull(result);\n\n // Check place id\n Assert.assertEquals(\"1234\", result.getId());\n\n }", "public String getPlacecode() {\n return placecode;\n }", "public int getPlace() {\n\t\treturn place;\n\t}", "@Override\n public AsyncToken<Place> fetchByIdAsync(String id) {\n AsyncToken<Place> placeToken = new AsyncToken<Place>();\n\n FSPlacesDAOFactory daoFactory = mMobilePlatformFactory.getDAOFactory();\n AsyncToken<FSVenueDTO> venueToken = daoFactory.getFSVenueDAO().getRecordByColumnAsync(\n \"venue_id\", id);\n venueToken.hook = placeToken;\n placeToken.hook = venueToken;\n\n venueToken.addCallback(new ItemTokenCallback());\n\n return placeToken;\n }", "public static String getPlaceId(Uri uri) {\n\t\t\treturn uri.getLastPathSegment();\n\t\t}", "public int getPlaceName() {\n return mPlaceName;\n }", "public String extractingcode()\r\n\t{\r\n\t\tString localresponseJSONString = responseJSONString;\r\n\t\tJSONObject jsonResult = new JSONObject(localresponseJSONString);\r\n\t\tString getbookingscode;\r\n\t\tJSONArray getbookingsArray = jsonResult.getJSONObject(\"hotelogix\").getJSONObject(\"response\").getJSONArray(\"bookings\");\r\n\t\tJSONObject bookingscode = getbookingsArray.getJSONObject(0);\r\n\t\tgetbookingscode = bookingscode.getString(\"code\");\r\n\t\tSystem.out.println(\":getbookings code:\"+getbookingscode);\r\n\t\treturn getbookingscode;\r\n\t}", "public String getOwnerPlace(int idPlace) throws Exception {\n if (idPlace > 40 || idPlace < 1) {\n\n throw new Exception(\"Place doesn't exist\");\n } else {\n String dono = (String) Donos.get(idPlace);\n if (dono.equals(\"noOwner\") || dono.equals(\"Luxury Tax\") || dono.equals(\"Income Tax\")) {\n throw new Exception(\"This place can't be owned\");\n } else {\n return (String) Donos.get(idPlace);\n }\n }\n }", "public void GetPlace(String placeid,\n String key,\n Callback<GooglePlaceData> cb) {\n if (CMAppGlobals.DEBUG) Logger.i(TAG, \":: GoogleModel.GetAutocomplete placeid : \" + placeid\n + \" : key : \" + key\n + \" : cb : \" + cb);\n\n Call<GooglePlaceData> googleGeocodeCall = googleService.GetPlace(placeid, key);\n googleGeocodeCall.enqueue(cb);\n\n }", "void getData(){\n getListPlaceBody getListPlaceBody = new getListPlaceBody(0,0,\"\");\n Retrofit retrofit = new Retrofit\n .Builder()\n .addConverterFactory(GsonConverterFactory.create())\n .baseUrl(\"http://150.95.115.192/api/\")\n .build();\n retrofit.create(WonderVNAPIService.class)\n .getListPlace(getListPlaceBody)\n .enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n try {\n Log.e(\"onResponse\", \"Response\");\n String strJson = response.body().string();\n tvContent.setText(strJson);\n Gson gson = new Gson();\n placeData =gson.fromJson(strJson, PlaceData.class);\n }catch (IOException e){\n e.printStackTrace();\n }\n\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Log.e(\"onFailure\", \"Failure\");\n }\n });\n\n }", "@Override\n public void onResult(@NonNull PlaceBuffer places) {\n // Update the UI via callbacks to methods defined in the view layer\n if (places.getStatus().isSuccess() && places.getCount() > 0\n && places.get(0) != null) {\n // Successfully retrieved Place object\n if (responseRunnable != null)\n responseRunnable.run(places.get(0));\n } else { // Did not successfully retrieve Place object\n if (failureRunnable != null)\n failureRunnable.run();\n }\n places.release(); // release buffer to prevent memory leak\n }", "@When(\"^I send the request to Address Management API 'GET AddressUnitId' endpoint$\")\n public void getAddressUnitId() {\n RequestSpecBuilder request = (RequestSpecBuilder) scenarioSession.getData(SessionKey.REQUEST);\n\n //send the request and get the response\n Response response = addressManagementApi.getAddressUnitId(request);\n\n //store the response for use in later steps\n scenarioSession.putData(SessionKey.LATEST_RESPONSE, response);\n }", "public String getPlace() {\n return place;\n }", "public String getPlace() {\n return place;\n }", "public String getPlace() {\n return place;\n }", "public String getPlace() {\n return place;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData getIdVerificationResponseData();", "public abstract String getResponseID();", "Place getPlace();", "@Override\n public void onResponse(Response response) throws IOException {\n if (!response.isSuccessful()) {\n //Here our reponse is UnSucessfull so we inform the user\n // about the same as before\n Toast.makeText(MainActivity.this, \"Request Failed\", Toast.LENGTH_SHORT).show();\n return;\n }\n //If Response is sucessfull we move forward and convert the\n // reponse which is in JSON format to String\n String respFromApi = response.body().string();\n\n //We will Log this LogCat in order to view the Raw Format recieved\n //you can open the log cat go in debug section and type RawData you\n // will be able to observe data there\n Log.d(\"RawData\", respFromApi);\n\n //Now We will call Extract Data Function which will retrieve the\n // woied and name of each city from the response\n try {\n extractData(respFromApi);\n } catch (Exception e) {\n //Informing Data is Not in JSON Format\n Toast.makeText(MainActivity.this, \"Response Not in JSON Format\", Toast.LENGTH_SHORT).show();\n }\n ;\n }", "public int getPlaceDescription() {\n return mPlaceDescription;\n }", "public static ArrayList<Review> getReviewInfo(String placeID) {\r\n\t\tArrayList<Review> reviewList = new ArrayList<Review>();\r\n\t\tString output = \"\";\r\n\t\ttry {\r\n\t\t\tURL url = new URL(\"https://maps.googleapis.com/maps/api/place/details/json?place_id=\"+placeID+\"&fields=review&key=AIzaSyAcM2vc8-2JY9I5P7jgvt61TCYa1vo0b98\");\r\n\t\t\tHttpURLConnection conn = (HttpURLConnection)url.openConnection();\r\n\t\t\tconn.setRequestMethod(\"GET\");\r\n\t\t\tconn.connect();\r\n\t\t\tint responsecode = conn.getResponseCode();\r\n\t\t\tif(responsecode != 200) {\r\n\t\t\t\tthrow new RuntimeException(\"HttpResponseCode: \"+responsecode);\r\n\t\t\t} else {\r\n\t\t\t\tJSONParser parse = new JSONParser();\r\n\t\t\t\tScanner scanner = new Scanner(url.openStream());\r\n\t\t\t\twhile (scanner.hasNext()) {\r\n\t\t\t\t\toutput+=scanner.nextLine();\r\n\t\t\t\t}\r\n\t\t\t\tJSONObject jsonobject = (JSONObject)parse.parse(output);\r\n\t\t\t\tJSONObject jsonobject2 = (JSONObject) jsonobject.get(\"result\");\r\n\t\t\t\tJSONArray reviewArray = (JSONArray)jsonobject2.get(\"reviews\");\r\n\t\t\t\tfor (int count=0; count<reviewArray.size(); count++) {\r\n\t\t\t\t\tJSONObject jsonObject3 = (JSONObject) reviewArray.get(count);\r\n\t\t\t\t\tReview newReview = new Review();\r\n\t\t\t\t\t newReview.setReviewer(jsonObject3.get(\"author_name\").toString());\r\n\t\t\t\t\t newReview.setReview(jsonObject3.get(\"text\").toString());\r\n\t\t\t\t\t newReview.setRating(jsonObject3.get(\"rating\").toString()+\".0\");\r\n\t\t\t\t\t reviewList.add(newReview);\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Reviews retrieved.\");\r\n\t\t\t\tscanner.close();\r\n\t\t\t}\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn reviewList;\r\n\t}", "PlaceDetails(JSONObject result) {\n try {\n this.id = result.getString(\"place_id\");\n this.name = result.getString(\"name\");\n this.address = result.getString(\"formatted_address\");\n this.phone = result.getString(\"formatted_phone_number\");\n this.rating = result.getDouble(\"rating\");\n String photoReference = result.getJSONArray(\"photos\")\n .getJSONObject(0)\n .getString(\"photo_reference\");\n // Format URL\n // Photo url example\n // https://maps.googleapis.com/maps/api/place/photo?parameters\n // This URL works but the returned image indicated I'm past my API quota\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"https\")\n .authority(\"maps.googleapis.com\")\n .appendPath(\"maps\")\n .appendPath(\"api\")\n .appendPath(\"place\")\n .appendPath(\"photo\")\n .appendQueryParameter(\"key\", BuildConfig.GOOGLE_PLACES_API_KEY)\n .appendQueryParameter(\"photoreference\", photoReference)\n .appendQueryParameter(\"maxWidth\", \"600\");\n // This URL works but the returned image indicated I'm past my API quota\n this.photoUrl = builder.build().toString();\n\n } catch (Exception e) {\n Log.d(LOG_TAG, \"There was an error parsing the Song JSONObject.\");\n }\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 1) {\n if(resultCode == RESULT_OK) {\n location = data.getStringExtra(\"EXTRA_PLACE_NAME\");\n place_id = data.getStringExtra(\"EXTRA_PLACE_ID\");\n //lat = data.getDoubleExtra(\"EXTRA_PLACE_LAT\", 0);\n //lng = data.getDoubleExtra(\"EXTRA_PLACE_LNG\", 0);\n\n ViewLocation.setText(location);\n\n }\n }\n }", "public String getPlace(){\n return place;\n }", "public String buildPlaceDetailsReq(String id) {\n String req = hw9apibase + \"details/\";\n try {\n req += URLEncoder.encode(id, \"UTF-8\");\n } catch(java.io.UnsupportedEncodingException exp) {\n\n }\n return req;\n }", "private String getSpeakerId(Response response) {\n String location = response.getHeaderString(\"location\");\n return location.substring(location.lastIndexOf(\"/\") + 1);\n }", "@ApiOperation(\"根据会场编号查询具体会场\")\n @GetMapping(\"/selectOnePlaceById\")\n public ResultResponse selectOnePlace(@ApiParam(\"会场编号\") @RequestParam(\"id\")Integer id){\n VoPlace voPlace = placeService.selectOnePlaceById(id);\n return new ResultResponse()\n .setData(voPlace)\n .setMessage(\"根据编号查询会场\");\n }", "public interface GooglePlacesApi {\n\n @GET(\"maps/api/place/autocomplete/json?type=(cities)&language=es\")\n Call<PredictionResult> autoComplete(@Query(\"input\") String text);\n\n @GET(\"maps/api/place/details/json\")\n Call<DetailsResult> getPlaceDetails(@Query(\"place_id\") String text);\n\n\n}", "public void setPlaceId(String placeId) {\n this.placeId = placeId;\n }", "public void loadPlaces(Map<String, String> queryMap){\n showProgressBar();\n\n call = foursquareApiService.getPlaces(queryMap);\n call.enqueue(new Callback<SearchResult>() {\n @Override\n public void onResponse(Call<SearchResult> call, Response<SearchResult> response) {\n hideProgressBar();\n\n ResponseList rl = response.body().getResponseList();\n placeArrayList = (ArrayList<Place>) rl.getPlaceList();\n placesListAdapter = new PlacesListAdapter(MainActivity.this,R.layout.activity_main_places_list_item,placeArrayList, MainActivity.this);\n recyclerViewPlacesList.setLayoutManager(new LinearLayoutManager(MainActivity.this));\n recyclerViewPlacesList.setAdapter(placesListAdapter);\n placesListAdapter.notifyDataSetChanged();\n\n Log.d(\"Array Size\", String.valueOf( placeArrayList.size()));\n Log.d(\"Success\",String.valueOf(response.code()));\n }\n\n @Override\n public void onFailure(Call<SearchResult> call, Throwable t) {\n Log.d(\"Fail\", \"Fail\");\n }\n });\n }", "private String getIxbrlLocationFromDocGeneratorResponse(DocumentGeneratorResponse response) {\n return Optional.of(response)\n .map(DocumentGeneratorResponse::getLinks)\n .map(Links::getLocation)\n .orElse(null);\n }", "@Override\n\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\tfinal PlaceAutocompleteAdapter.PlaceAutocomplete item = placeAutocompleteAdapter.getItem(position);\n\t\t\tfinal String placeId = String.valueOf(item.placeId);\n\t\t\tLog.i(TAG, \"Autocomplete item selected: \" + item.description);\n\n\t\t\t/*\n Issue a request to the Places Geo Data API to retrieve a Place object with additional\n details about the place.\n\t\t\t */\n\t\t\tPendingResult<PlaceBuffer> placeResult = Places.GeoDataApi\n\t\t\t\t\t.getPlaceById(mGoogleApiClient, placeId);\n\t\t\t//placeResult.setResultCallback(mUpdatePlaceDetailsCallback);\n\n\t\t\tToast.makeText(ApplicationContext.getContext(), \"Clicked: \" + item.description,\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\tLog.i(TAG, \"Called getPlaceById to get Place details for \" + item.placeId);\n\n\t\t}", "public void decodeString(String result) {\n\t\tString[] name = null;\n\t\ttry {\n\t\t\tJSONObject a = new JSONObject(result);\n\t\t\tJSONArray results = a.getJSONArray(\"predictions\");\n\t\t\tint l = results.length();\n\t\t\tif (l == 0) {\n\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\"Sorry, no places available\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tname = new String[l];\n\t\t\tid = new String[l];\n\t\t\tfor (int i = 0; i < results.length(); i++) {\n\n\t\t\t\tJSONObject obj = results.getJSONObject(i);\n\t\t\t\tname[i] = obj.getString(\"description\");\n\t\t\t\tid[i] = obj.getString(\"id\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(\n\t\t\t\tMainActivity.this, android.R.layout.simple_list_item_1, name);\n\t\tatvPlaces.setAdapter(adapter);\n\t\n\t}", "public String getLocationInfo(String _placeInfo) {\r\n String urlString = apiUrl;\r\n obj = getConnection(urlString);\r\n try {\r\n return obj.getString(fixParams(_placeInfo));\r\n } catch (JSONException ex) {\r\n return \"JSONException: Info not found\";\r\n }\r\n }", "public int getPlaceLocation() {\n return mPlaceLocation;\n }", "public String getResponseId() {\n return responseId;\n }", "private SpeechletResponse doCompleteBankOpeningHoursResponse(Place place) {\n\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(place.getName()).append(\" hat am \");\n List<String> openingWeekdayHours = PlaceFinder.getCompleteWeekdayHours(place);\n\n for (String hours : openingWeekdayHours) {\n stringBuilder.append(hours);\n }\n\n return getSSMLResponse(BANK_CONTACT_CARD, stringBuilder.toString());\n }", "Map<Long,String> getPlaces(String experiment_no,String laboratory_no) throws IOException;", "public int getPlaceGeoData() {\n return mPlaceGeoData;\n }", "public String getPlace() {\n\t\treturn place;\n\t}", "public static String placePostData()\r\n\t{\t\r\n\t\tString res=\"/maps/api/place/add/json\";\r\n\t\treturn res;\r\n\t}", "private SpeechletResponse bankAddressResponse() {\n\n Place place = getPlaceWithOpeningHours();\n\n if (place == null) {\n log.error(\"No place was found! Your address: \" + deviceAddress.toString());\n return getAskResponse(BANK_CONTACT_CARD, ERROR_TEXT);\n }\n\n return doBankAddressResponse(place);\n }", "@Test\n public void test012() {\n List<Integer> id = response.extract().path(\"data.id\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The storeId of the all stores are:: \" + id);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "public byte getResponseId() {\n return responseId;\n }", "public Response getResponse(long response_id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n String selectQuery = \"SELECT * FROM \" + RESPONSES_TABLE_NAME + \" WHERE \"\n + KEY_ID + \" = \" + response_id;\n\n Log.e(LOG, selectQuery);\n\n Cursor c = db.rawQuery(selectQuery, null);\n\n if (c != null)\n c.moveToFirst();\n\n Response response = new Response();\n response.setId(c.getInt(c.getColumnIndex(KEY_ID)));\n response.setEvent(c.getString(c.getColumnIndex(RESPONSES_EVENT)));\n response.setResponse(c.getInt(c.getColumnIndex(RESPONSES_RESPONSE)));\n\n return response;\n }", "private Place getFromPlace(Element passageElement, ArrayList<Place> places) {\n Place start = null;\n for (int i = 0; i <= places.size() - 1; i++) {\n if (passageElement.getElementsByTagName(\"comeFrom\").item(0).getTextContent()\n .equals(places.get(i).getName())) {\n start = places.get(i);\n }\n }\n return start;\n }", "public static String getPlaceDetailId(Uri uri) {\n\t\t\treturn uri.getLastPathSegment();\n\t\t}", "ResponseEntity<Response> interestedUsers(String placeId);", "@Override\r\n\tpublic String getTagName() {\n\t\treturn \"PlaceSearchResponse\";\r\n\t}", "private Option<String> getParleysId(String url) {\n Matcher m = ID_PARLEYS_PATTERN.matcher(url);\n\n if (!m.find())\n return Option.none();\n\n return Option.of(m.group(1));\n }", "@Override\n public void onResponse(Call call, Response response) throws IOException {\n assert response.body() != null;\n response_String = response.body().string();\n Log.d(TAG,\"Get Bank: Responce \"+ response_String);\n if (response_String != null) {\n JSONArray jsonResponse = null;\n //Log.d(\"TAG\", \"Response:\" + response_String);\n try {\n ArrayList<String> array1 = new ArrayList<String>();\n ArrayList<String> array2 = new ArrayList<String>();\n jsonResponse = new JSONArray(response_String);\n for (int j = 0; j < jsonResponse.length(); j++) {\n JSONObject jresponse = jsonResponse.getJSONObject(j);\n apgvbBranch_arr.add(jresponse.getString(\"banklocation\"));\n apgvbBranchID_arr.add(jresponse.getString(\"branchcode\"));\n }\n //Log.d(\"TAG\", \"Response Banks:\" + array1+ array2);\n Log.d(\"TAG\", \"Response Banks from Loans:\" + apgvbBranch_arr + apgvbBranchID_arr);\n\n } catch (JSONException e) {\n e.printStackTrace();\n Log.d(TAG,\"Get Bank: catch \"+e);\n }\n\n\n }\n\n }", "Response getGameDetails(String gameIdAsString);", "@ResponseBody\n @RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public Message retrieve(@PathVariable(\"id\") Integer id)\n {\n Place bean = placeService.findById(id);\n return Message.successMessage(CommonMessageContent.GET_PLACE, bean);\n }", "@Override\r\n\tpublic LatLong findLatLong(String place) { // place can be a postal code string or an address string\r\n\t\t// some simple code inspired by http://stackoverflow.com/questions/7467568/parsing-json-from-url\r\n\t\tLatLong aLatLong = null;\r\n\t\ttry {\r\n\t\t\tJSONObject geoCodeJSON = new JSONObject(readUrl(\"http://maps.googleapis.com/maps/api/geocode/json?address=\" + place + \"&sensor=false\"));\r\n\t\t\tString latit = geoCodeJSON.getJSONArray(\"results\").getJSONObject(0).getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lat\");\r\n\t\t\tString longit = geoCodeJSON.getJSONArray(\"results\").getJSONObject(0).getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lng\");\r\n\t\t\taLatLong = new LatLong(Double.parseDouble(latit), Double.parseDouble(longit));\r\n\t\t\tSystem.out.println(\"latitude, longitude are\" + latitude + \" \" + longitude);\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn aLatLong;\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn aLatLong;\r\n\t\t}\r\n\t\treturn aLatLong;\r\n\t}", "com.google.openrtb.OpenRtb.BidResponse getBidresponse();", "public static void verifyPlaceStoreOrderResponse(Response response, long expectedId, long expectedPetId, int expectedQuantity, String expectedShipDate, String expectedStatus, boolean expectedCompleted) {\n verifySuccessStatusCodeInPlaceStoreOrderResponse(response);\n\n StoreOrderResponse storeOrderResponse = response.as(StoreOrderResponse.class);\n\n long actualId = storeOrderResponse.getId();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - id, Actual: \" + actualId + \" , Expected: \" + expectedId);\n MicroservicesEnvConfig.softAssert.assertEquals(actualId, expectedId, \"Place Store Order service response - id field error\");\n\n long actualPetId = storeOrderResponse.getPetId();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - pet id, Actual: \" + actualPetId + \" , Expected: \" + expectedPetId);\n MicroservicesEnvConfig.softAssert.assertEquals(actualPetId, expectedPetId, \"Place Store Order service response - pet id field error\");\n\n int actualQuantity = storeOrderResponse.getQuantity();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - quantity, Actual: \" + actualQuantity + \" , Expected: \" + expectedQuantity);\n MicroservicesEnvConfig.softAssert.assertEquals(actualQuantity, expectedQuantity, \"Place Store Order service response - quantity field error\");\n\n String actualShipDate = storeOrderResponse.getShipDate().substring(0,23);\n expectedShipDate = expectedShipDate.replace(\"Z\", \"\");\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - ship date, Actual: \" + actualShipDate + \" , Expected: \" + expectedShipDate);\n MicroservicesEnvConfig.softAssert.assertEquals(actualShipDate, expectedShipDate, \"Place Store Order service response - ship date field error\");\n\n String actualStatus = storeOrderResponse.getStatus();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - status, Actual: \" + actualStatus + \" , Expected: \" + expectedStatus);\n MicroservicesEnvConfig.softAssert.assertEquals(actualStatus, expectedStatus, \"Place Store Order service response - status field error\");\n\n boolean actualCompleted = storeOrderResponse.isComplete();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - complete, Actual: \" + actualCompleted + \" , Expected: \" + expectedCompleted);\n MicroservicesEnvConfig.softAssert.assertEquals(actualCompleted, expectedCompleted, \"Place Store Order service response - complete field error\");\n }", "protected String getContainerId(Response response) {\r\n\t\treturn response.getRequest().getId();\r\n\t}", "public Integer getQueryplace() {\n\t\treturn queryplace;\n\t}", "@Override\n public void onResponse(String response, int id) {\n processData(response);\n\n }", "@Override\n public void onRequestSuccess(JSONObject jsonResponse) {\n\n try {\n\n ArrayList<Place> places = new ArrayList<>();\n JSONArray venueArray = jsonResponse.getJSONArray(\"venues\");\n\n // extract Place object from json response and put in array\n for (int i = 0; i < venueArray.length(); i++) {\n JSONObject jo = venueArray.getJSONObject(i);\n places.add(extractFromJSON(jo));\n }\n\n if (listener != null) {\n listener.onPlacesFetchSuccess(places);\n }\n db.addPlaces(places);\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n if (listener != null) {\n listener.onPlaceFetchFail(\"Something went wrong parsing response\");\n }\n }\n\n }", "private Place getPlaceWithTelephoneNumber() {\n\n // finds nearby place according the slot value\n List<Place> places = PlaceFinder.findNearbyPlace(GeoCoder.getLatLng(deviceAddress), slotBankNameValue);\n\n // check the list of places for one with opening hours\n return PlaceFinder.findTelephoneNumberPlace(places, slotBankNameValue);\n }", "@Override\n public void onResponse(final JSONObject response) {\n Log.d(\"Response from FatSecret\", response.toString());\n try{\n JSONObject res = new JSONObject(response.getJSONObject(\"foods\").getJSONArray(\"food\").get(0).toString());\n saveFoodID.setText(res.getString(\"food_id\"));\n mainFoodName = res.getString(\"food_name\");\n foodIDView.setText(getString(R.string.food_display, res.getString(\"food_name\"), res.getString(\"food_id\")));\n requestFinished(true);\n }\n catch (Exception e){}\n }", "@Override\n public void onPlaceSelected(Place place) {\n Log.i(TAG, \"Place: \" + place.getName());\n editTextBusinessName.setText(place.getName());\n editTextLocation.setText(place.getAddress());\n editTextPhone.setText(place.getPhoneNumber());\n barCoordinates = place.getLatLng();\n //editTextBusinessDescription.setText(place.getAttributions());\n\n }", "com.google.search.now.wire.feed.ResponseProto.Response getResponse();" ]
[ "0.6787426", "0.6028804", "0.60130805", "0.59970975", "0.59709644", "0.5811864", "0.57589465", "0.56748736", "0.56008184", "0.55175877", "0.55120075", "0.55068743", "0.5479958", "0.5466207", "0.5452476", "0.54490876", "0.5444366", "0.5410346", "0.5398229", "0.53857565", "0.5385173", "0.53782165", "0.53629386", "0.5353545", "0.53373706", "0.53266275", "0.5321406", "0.5310241", "0.52992684", "0.5291204", "0.5281725", "0.5266821", "0.526531", "0.52271706", "0.5225002", "0.5206584", "0.5192235", "0.5163006", "0.5156429", "0.5156163", "0.51550967", "0.5152398", "0.5145679", "0.51350754", "0.5117428", "0.5112274", "0.51076865", "0.51041037", "0.5103524", "0.5103524", "0.5103524", "0.5103524", "0.5100432", "0.5097431", "0.5094734", "0.5090937", "0.5089567", "0.5089458", "0.50817704", "0.50703937", "0.5066808", "0.5050807", "0.5040119", "0.5038415", "0.5032421", "0.502487", "0.5021897", "0.5018207", "0.5000308", "0.49868956", "0.49765545", "0.4971466", "0.4965556", "0.49602938", "0.49566787", "0.4936059", "0.49317986", "0.49273095", "0.49227253", "0.4906551", "0.49065444", "0.4906456", "0.48842064", "0.4883893", "0.4881766", "0.48814008", "0.48608997", "0.48578393", "0.48396242", "0.4825367", "0.48195165", "0.47964582", "0.47944596", "0.47696912", "0.47583675", "0.47542337", "0.4752283", "0.47497392", "0.47454056", "0.47442773", "0.4740847" ]
0.0
-1
make the placeId variable as static so that it retains the value from previous scenario(test) when this scenario(test) gets started
@Given("delete place payload") public void delete_place_payload() throws IOException { reqspec= given().log().all().spec(RequestSpecs()).body(TestdataBuild.DeletePlacePayload(PlaceId)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPlaceId() {\n return placeId;\n }", "public void setPlaceId(String placeId) {\n this.placeId = placeId;\n }", "public String idOfPlace()\n {\n return id;\n }", "static Place getRandomPlace()\r\n\t{\r\n\t\tPlace randomPlace = knownPlaces.get( new Random().nextInt ( knownPlaces.size()));\r\n\t\treturn randomPlace;\r\n\t}", "public void setPlace(String place){\n this.place = place;\n }", "public int getPlace() {\n\t\treturn place;\n\t}", "static Place getPlaceByID ( int key)\r\n\t{\r\n\t\treturn tm.get(key);\r\n\t}", "public void setPlace(int num) {\n\t\tplace = num;\n\t}", "public int getPlaceName() {\n return mPlaceName;\n }", "@Test\n public void getPlace() {\n Place result = mDbHelper.getPlace(Realm.getInstance(testConfig), \"1234\");\n\n // Check place\n Assert.assertNotNull(result);\n\n // Check place id\n Assert.assertEquals(\"1234\", result.getId());\n\n }", "private Place getPlace(Integer idPlace) {\n\t\tPlace place = null;\n\t\tfor(Place p: places ){\n\t\t\tif(p.getId().equals(idPlace)){\n\t\t\t\tplace = p;\n\t\t\t}\n\t\t}\n\t\treturn place;\n\t}", "public void setPlaceHolderId(String id) {\n placeHolderId = id;\n }", "public int getPlaceLocation() {\n return mPlaceLocation;\n }", "@ApiModelProperty(value = \"Unique identifier of the place.\")\n\n\n public String getId() {\n return id;\n }", "@Test\n\tpublic void AddandDeletePlace() {\n\t\tRestAssured.baseURI = prop.getProperty(\"HOST\");\n\t\tResponse res = given().\n\n\t\t\t\tqueryParam(\"key\", prop.getProperty(\"KEY\")).body(payLoad.getPostData()).when()\n\t\t\t\t.post(resources.placePostData()).then().assertThat().statusCode(200).and().contentType(ContentType.JSON)\n\t\t\t\t.and().body(\"status\", equalTo(\"OK\")).extract().response();\n\t\t// Task 2 - Grab the Place ID from response\n\n\t\tString responseString = res.asString();\n\t\tSystem.out.println(responseString);\n\t\tJsonPath js = new JsonPath(responseString);\n\t\tString placeid = js.get(\"place_id\");\n\t\tSystem.out.println(placeid);\n\n\t\t// Task 3 place this place id in the Delete request\n\t\tgiven().queryParam(\"key\", \"qaclick123\").body(\"{\" + \"\\\"place_id\\\": \\\"\" + placeid + \"\\\"\" + \"}\").when()\n\t\t\t\t.post(\"/maps/api/place/delete/json\").then().assertThat().statusCode(200).and()\n\t\t\t\t.contentType(ContentType.JSON).and().body(\"status\", equalTo(\"OK\"));\n\t}", "public String getPlace() {\n\t\treturn place;\n\t}", "public String getPlace() {\n return place;\n }", "public String getPlace() {\n return place;\n }", "public String getPlace() {\n return place;\n }", "public String getPlace() {\n return place;\n }", "public String Get_place() \n {\n\n return place;\n }", "private Place getPlace(String identifierPlace) {\n\t\tPlace place = null;\n\t\tfor(Place p: places ){\n\t\t\tif(p.getName().equals(identifierPlace)){\n\t\t\t\tplace = p;\n\t\t\t}\n\t\t}\n\t\treturn place;\n\t}", "public String getplaceName() {\n\t\treturn placeName;\n\t}", "@Before(\"@DeletePlace_UsingHooks\")\n\tpublic void addPlaceHook() throws IOException {\n\t\t\n\t\tif(APIStepDefinition.placeID==null) {\n\t\taPIStepDefinition.add_place_payload_with(\"Honey\", \"English\", \"Africa\");\n\t\taPIStepDefinition.call_with_http_request(\"AddPlaecAPI\", \"Post\");\n\t\taPIStepDefinition.api_call_got_success_with_status_code(200);\n\t\taPIStepDefinition.verify_placeID_got_created_having_using(\"name\", \"Honey\" , \"GetPlaecAPI\");\t\n\t}\n\t}", "public String getPlace(){\n return place;\n }", "void addPlaceAPI() {\n RestAssured.baseURI = \"https://rahulshettyacademy.com/\";\n String response = given().log().all().queryParam(\"key\",\"qaclick123\")\n .header(\"Content-Type\",\"application/json\")\n\n .body(Payloads.addPlaceJson())\n .when().post(\"maps/api/place/add/json\")\n .then().log().all().assertThat().statusCode(200).body(\"scope\",equalTo(\"APP\"))\n .header(\"server\",\"Apache/2.4.18 (Ubuntu)\").extract().response().asString();\n System.out.println(\"the response is\" + response );\n JsonPath jsonpath = new JsonPath(response); // for parsing the json body/payload\n String OriginalpalaceId = jsonpath.getString(\"place_id\");\n System.out.println(\"the place id is\" + OriginalpalaceId );\n\n // update the address using original place id\n\n String updateResponse = given().log().all().queryParam(\"key\",\"qaclick123\")\n .header(\"Content-Type\",\"application/json\")\n .body(\"{\\n\" +\n \"\\\"place_id\\\":\\\"\"+ OriginalpalaceId + \"\\\",\\n\" +\n \"\\\"address\\\":\\\"70 Summer walk, USA\\\",\\n\" +\n \"\\\"key\\\":\\\"qaclick123\\\"\\n\" +\n \"}\")\n .when().put(\"maps/api/place/update/json\")\n .then().log().all().assertThat().statusCode(200).body(\"msg\",equalTo(\"Address successfully updated\"))\n .extract().response().asString();\n jsonpath = null;\n jsonpath = new JsonPath(updateResponse);\n String msg = jsonpath.getString(\"msg\");\n System.out.println(\"the successful msg is \" + msg );\n\n // now getPlace API call to get the updated Place Id\n\n String getResponse = given().log().all().queryParam(\"key\",\"qaclick123\")\n .queryParam(\"place_id\",OriginalpalaceId)\n .when().get(\"maps/api/place/get/json\")\n .then().log().all().assertThat().statusCode(200).extract().response().asString();\n\n jsonpath = null;\n jsonpath = new JsonPath(getResponse);\n System.out.println(jsonpath.getString(\"address\"));\n System.out.println(\"the response of the get API method \"+ getResponse);\n\n Assert.assertEquals(jsonpath.getString(\"address\"),\"70 Summer walk, USA\",\"Address not matched\" );\n\n }", "public void givePlaceInList() {\r\n\t\tmyPlaceInList = allyTracker.getPlaceInList();\r\n\t}", "void getPlacements() {\n previousTotalPlacement = 0;\n loadingPlacement = true;\n page_to_call_placement = 1;\n isFirstRunPlacement = true;\n isLastPageLoadedPlacement = false;\n lastPageFlagPlacement = 0;\n Log.d(\"PlacmentTesting\", \"previousTotalPlacement: \" + previousTotalPlacement);\n Log.d(\"PlacmentTesting\", \"page_to_call_placement: \" + page_to_call_placement);\n Log.d(\"PlacmentTesting\", \"lastPageFlagPlacement: \" + lastPageFlagPlacement);\n\n GetPlacementsByAdminMetadata();\n\n }", "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "public String getPlacecode() {\n return placecode;\n }", "public void setPlaces(int places) {\r\n this.places = places;\r\n }", "public void setPlace(IPlace place) {\n\t\tthis.place = place;\r\n\t\t\r\n\t\t/*\r\n\t\t * 主建筑物的位置,决定了子建筑物的位置\r\n\t\t */\r\n\t\tfor(AbstractBuilding building : getBuildings()){\r\n\t\t\tbuilding.setPlace(place);\r\n\t\t}\r\n\t}", "public int getPlaceImage() {\n return mPlaceImage;\n }", "public Place getStartingPlace() {\n return startingPlace;\n }", "public static String getPlaceID(String placeName) {\r\n\t\tString output = \"\";\r\n\t\ttry {\r\n\t\t\tURL url = new URL(\"https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=\"+placeName+\"&inputtype=textquery&fields=place_id&key=AIzaSyAcM2vc8-2JY9I5P7jgvt61TCYa1vo0b98\");\r\n\t\t\tHttpURLConnection conn = (HttpURLConnection)url.openConnection();\r\n\t\t\tconn.setRequestMethod(\"GET\");\r\n\t\t\tconn.connect();\r\n\t\t\tint responsecode = conn.getResponseCode();\r\n\t\t\tif(responsecode != 200) {\r\n\t\t\t\tthrow new RuntimeException(\"HttpResponseCode: \"+responsecode);\r\n\t\t\t} else {\r\n\t\t\t\tJSONParser parse = new JSONParser();\r\n\t\t\t\tScanner scanner = new Scanner(url.openStream());\r\n\t\t\t\twhile (scanner.hasNext()) {\r\n\t\t\t\t\toutput+=scanner.nextLine();\r\n\t\t\t\t}\r\n\t\t\t\tJSONObject jsonobject = (JSONObject)parse.parse(output);\r\n\t\t\t\tJSONArray resultArray = (JSONArray) jsonobject.get(\"candidates\");\r\n\t\t\t\tfor(int count=0; count<1;count++) {\r\n\t\t\t\t\tJSONObject jsonobject1 = (JSONObject)resultArray.get(count);\r\n\t\t\t\t\tSystem.out.println(placeName+\" Place ID: \"+jsonobject1.get(\"place_id\"));\r\n\t\t\t\t\toutput = (String) jsonobject1.get(\"place_id\");\r\n\t\t\t\t}\r\n\t\t\t\tscanner.close();\r\n\t\t\t}\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "static void m6856a(@NonNull Context context, @Nullable CurrentPlace currentPlace) {\n C1940b.m6820a(context, \"current_place.json\", 0, (Object) currentPlace, (Type) CurrentPlace.class);\n }", "public java.lang.String getUiPlace() {\n java.lang.Object ref = uiPlace_;\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 if (bs.isValidUtf8()) {\n uiPlace_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private static long getGlobalId() {\n return globalId++;\n }", "public java.lang.String getUiPlace() {\n java.lang.Object ref = uiPlace_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n uiPlace_ = s;\n }\n return s;\n }\n }", "public final String zzb() {\n return this.placeId;\n }", "public void setPlace(String place) {\n\t\tthis.place = place == null ? null : place.trim();\n\t}", "public void Print_place()\n {\n\n System.out.println(\"Place: \" + place);\n }", "public com.google.protobuf.ByteString\n getUiPlaceBytes() {\n java.lang.Object ref = uiPlace_;\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 uiPlace_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Set<Long> allPlaceIds() {\n return new HashSet<Long>( );\n }", "public void setPlace(String place) {\n this.place = place == null ? null : place.trim();\n }", "public void setPlace(String place) {\n this.place = place == null ? null : place.trim();\n }", "public void setPlace(String place) {\n this.place = place == null ? null : place.trim();\n }", "@Then(\"verify place created maps to {string} using {string}\")\r\n\tpublic void verify_place_created_maps_to_using(String expectedName, String resource) throws IOException {\n\t\tjs=new JsonPath(responseJson.asString());\r\n\t\tPlaceId=js.get(\"place_id\");\r\n\t\tSystem.out.println(\"Place id created is= \"+PlaceId);\r\n\t\treqspec=given().log().all().spec(RequestSpecs()).queryParam(\"place_id\", PlaceId);\r\n\t\t//reusing existing method from above\r\n\t\tuser_calls_with_https_request(resource, \"GET\");\r\n\t\tjs=new JsonPath(responseJson.asString());\r\n\t\tSystem.out.println(\"name fetched from GetAPI response= \"+js.get(\"name\"));\r\n\t\tSystem.out.println(\"name that got added by AddPlaceAPI= \"+expectedName);\r\n\t\tassertEquals(expectedName,js.get(\"name\"));\r\n\r\n\t}", "public String checkin( String placeName , int UserId){\n\t\t//CheckIn check=new CheckIn();\n\t return null;\n\t}", "public String getActplace() {\r\n return actplace;\r\n }", "public Place() {\r\n\t\tthis.name = \"Unknown Place\";\r\n\t\tthis.data = new LinkedHashMap<Integer, Data>();\r\n\t\tthis.populateData();\r\n\t}", "public int getPlaceDescription() {\n return mPlaceDescription;\n }", "public void setActplace(String actplace) {\r\n this.actplace = actplace;\r\n }", "public com.google.protobuf.ByteString\n getUiPlaceBytes() {\n java.lang.Object ref = uiPlace_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n uiPlace_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getOtherPlace() {\r\n return otherPlace;\r\n }", "private void determineStartingLocation(Car carOne, Car carTwo, Car carThree) {\n ArrayList<Integer> locationPlaces = new ArrayList<Integer>();\n locationPlaces.add(1);// 0\n locationPlaces.add(2);// 1\n locationPlaces.add(3);// 2\n locationPlaces.add(4);// 3\n\n Collections.shuffle(locationPlaces);\n\n carOne.setLocation(locationPlaces.get(0));\n carTwo.setLocation(locationPlaces.get(1));\n carThree.setLocation(locationPlaces.get(2));\n }", "@Test\n public void testSetId() {\n System.out.println(\"setId\");\n long id = 0L;\n DTO_Ride instance = dtoRide;\n instance.setId(id);\n long result = instance.getId();\n assertEquals(id, result);\n }", "public void setLivingPlace(String livingPlace) {\n this.livingPlace = livingPlace;\n }", "Place getPlace();", "public abstract String getRobotId();", "java.lang.String getSpawnpointId();", "private static void createPlace(Place place) {\r\n\t\tint tempInt = -1;\r\n\t\tContainerNII placeNii = new ContainerNII();\r\n\t\tGeoCoordinate position = new GeoCoordinate();\r\n\t\tMedia media = new Media();\r\n\t\t\r\n\t\tinsertNIIValues(placeNii, \"place\");\r\n\t\tplace.setNii(placeNii);\r\n\t\t\t\t\r\n\t\tif ((tempInt = insertInteger(\"place radius: \")) != -1)\r\n\t\t\t\tplace.setRadius(tempInt);\r\n\t\t\r\n\t\tinsertPosition(position);\r\n\t\tplace.setPosition(position);\r\n\t\t\r\n\t\tinsertMedia(media);\r\n\t\tplace.setMedia(media);\r\n\t}", "public void setPlacement(Integer placement) {\n this.placement = placement;\n }", "long getParkingId();", "long getParkingId();", "long getParkingId();", "private void addToList(Place place) {\n if(!checkDuplicates(place.placeid))\n restaurantsList.add(place);\n\n\n Collections.sort(restaurantsList, new Comparator<Place>() {\n @Override\n public int compare(Place lhs, Place rhs) {\n return lhs.distance.compareTo(rhs.distance);\n }\n });\n HomepageAdapter adapterStores = new HomepageAdapter(activity, restaurantsList, mAddressOutput);\n adapterStores.setOnClickListener(new HomepageAdapter.onClickListener() {\n @Override\n public void OnClick(int position) {\n Bundle args = new Bundle();\n args.putString(\"placeid\", restaurantsList.get(position).placeid);\n activity.replaceFragments(RestaurantDetailsFragment.class, args);\n }\n });\n shimmerRecycler.setAdapter(adapterStores);\n }", "public String getOwnerPlace() {\r\n return ownerPlace;\r\n }", "@Then(\"verify place_Id created maps to {string} using {string}\")\n public void verify_place_Id_created_maps_to_using(String expectedName, String resource) throws FileNotFoundException {\n placeid=getJsonPath(response,\"place_id\");\n getJsonPath(response,\"reference\");\n\n reqSpec=given().spec(RequestSpec()).queryParam(\"place_id\",placeid);\n user_calls_with_http_request(resource,\"GET\");\n\n String actualName=getJsonPath(response,\"name\");\n assertEquals(actualName,expectedName);\n // throw new io.cucumber.java.PendingException();\n }", "private void placesInit()\n {\n\n for(Map.Entry<String,Place> placeEntry: placesMap.entrySet())\n {\n addPlace(placeEntry.getKey(),placeEntry.getValue());\n }\n\n }", "public void setPlace(org.sagebionetworks.web.client.place.Layer place) {\r\n \t\tthis.place = place;\r\n \t\tthis.layerId = place.getLayerId();\t\t\r\n \t\tthis.showDownload = place.getDownload();\r\n \t\tview.setPresenter(this);\r\n \t\trefresh();\r\n \t}", "public String getOwnerPlace(int idPlace) throws Exception {\n if (idPlace > 40 || idPlace < 1) {\n\n throw new Exception(\"Place doesn't exist\");\n } else {\n String dono = (String) Donos.get(idPlace);\n if (dono.equals(\"noOwner\") || dono.equals(\"Luxury Tax\") || dono.equals(\"Income Tax\")) {\n throw new Exception(\"This place can't be owned\");\n } else {\n return (String) Donos.get(idPlace);\n }\n }\n }", "public void setSpId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpIdTracker = true;\r\n } else {\r\n localSpIdTracker = false;\r\n \r\n }\r\n \r\n this.localSpId=param;\r\n \r\n\r\n }", "@Test\n public void addManualPlaceAndCheckDetails() {\n // check the name and address of a place\n onView(withId(R.id.action_add_manual))\n .perform(click());\n\n // now in ManualPlaceDetailActivity\n onView(withId(R.id.et_manual_name)).perform(typeText(PLACE_NAME));\n onView(withId(R.id.et_manual_address)).perform(typeText(PLACE_ADDRESS));\n // close the keyboard so all Views are visible again\n Espresso.closeSoftKeyboard();\n\n // add a visit and update the date and time\n addAndUpdateManualVisit();\n\n // type some notes\n typeNotes();\n\n // add the manual place\n clickAddManualPlaceButton();\n\n // click manual place in list and check details are correct\n clickPlaceItem_OpensManualDetailActivity();\n }", "public void setQueryplace(Integer queryplace) {\n\t\tthis.queryplace = queryplace;\n\t}", "public String getLivingPlace() {\n return livingPlace;\n }", "@Override\r\n\tpublic void goTo(Place place) {\r\n\t\tclientFactory.getPlaceController().goTo(place);\r\n\t}", "public Builder setUiPlace(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n uiPlace_ = value;\n onChanged();\n return this;\n }", "public void privateSetStoragePlaceKey(com.hps.july.persistence.StoragePlaceKey inKey) {\n\tboolean storagePlace_NULLTEST = (inKey == null);\n\tif (storagePlace_NULLTEST) storagePlace_storageplace = null; else storagePlace_storageplace = (new Integer(inKey.storageplace));\n}", "public Place(Scanner game) \r\n\t{\r\n\t\t// Initially adding exit and nowhere place to static collection.\r\n\t\tif ( firstTime)\r\n\t\t{\t\r\n\t\t\tif( flag ==0)\r\n\t\t\t{\r\n\t\t\t\tid = 1;\r\n\t\t\t\tname = \"Exit\";\r\n\t\t\t\tdescription = \" Exit\";\r\n\t\t\t\ttm.put(id, this);\r\n\t\t\t\tflag =1;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tid = 0;\r\n\t\t\t\tname = \"no where\";\r\n\t\t\t\tdescription = \"no where\";\r\n\t\t\t\ttm.put(id, this);\r\n\t\t\t\tfirstTime = false;\r\n\t\t\t}\r\n\t\t\r\n\t\t}\t\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Get a line and extend it as scanner input.. Parse and extract the data from scanner and initialze data fields of Place class.\r\n\t\t\tString line = null;\r\n\t\t\tline = Game.getCleanLine(game);\r\n\t\t\tScanner input = new Scanner (line);\r\n\t\t \r\n\t\t\t// Parsing the data and plugging into data fields of Place class.\r\n\t\t\tid = input.nextInt();\t\r\n\t\t\tString restOfLine = input.nextLine();\r\n\t\t\tname = restOfLine;\r\n\t\t\r\n\t\t\tint number = game.nextInt(); \r\n\r\n\t\t\tfor ( int i=0; i < number ; i ++)\r\n\t\t\t{\r\n\t\t\t\tline = Game.getCleanLine(game);\r\n\t\t\t\tScanner a = new Scanner (line);\r\n\t\t\t\tif (description == null)\r\n\t\t\t\t\tdescription =a.nextLine().concat(\"\\n\");\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tdescription = description.concat( a.nextLine().concat( \"\\n\"));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\t\r\n\t\t\t knownPlaces.add(this);\r\n\t\t\ttm.put(id, this);\t // Pushing this place to static collection of known places. ( Map).\r\n\t\t}\r\n\t\t\r\n\t\t//io2= new IO();\r\n\t}", "public void Add_place(String p)\n {\n\n place = new String(p);\n }", "public com.hps.july.persistence.StoragePlaceKey getStoragePlaceKey() {\n\tcom.hps.july.persistence.StoragePlaceKey temp = null;\n\ttemp = new com.hps.july.persistence.StoragePlaceKey();\n\tboolean storagePlace_NULLTEST = true;\n\tstoragePlace_NULLTEST &= (storagePlace_storageplace == null);\n\ttemp.storageplace = ((storagePlace_storageplace == null) ? 0 : storagePlace_storageplace.intValue());\n\tif (storagePlace_NULLTEST) temp = null;\n\treturn temp;\n}", "public int getPlaces() {\r\n return places;\r\n }", "private int randomAddress() {\n\t\tint randomAddressId = (int) (Math.random() * 603);\n\t\treturn randomAddressId;\n\t}", "public Place getPlace() {\n\t\treturn null;\r\n\t}", "public String locationPlacementId() {\n return this.locationPlacementId;\n }", "public void setType(PlaceType type) {\n\t\tthis.type = type;\n\t}", "private void clickAddManualPlaceButton() {\n // scroll to save button to make sure Espresso can click it\n onView(withId(R.id.btn_manual_add_place))\n .perform(scrollTo());\n // save manual place\n onView(withId(R.id.btn_manual_add_place)).perform(click());\n }", "public static final int getTargetItemPlacement(int missionId) {\n/* 999 */ Random r = new Random(missionId);\n/* 1000 */ return r.nextInt(8);\n/* */ }", "@ApiOperation(\"根据会场编号查询具体会场\")\n @GetMapping(\"/selectOnePlaceById\")\n public ResultResponse selectOnePlace(@ApiParam(\"会场编号\") @RequestParam(\"id\")Integer id){\n VoPlace voPlace = placeService.selectOnePlaceById(id);\n return new ResultResponse()\n .setData(voPlace)\n .setMessage(\"根据编号查询会场\");\n }", "@Override\n\tpublic String getPlaceCode() {\n\t\treturn null;\n\t}", "static void requestPlaceById(@NonNull final String placeId,\n @Nullable final ParameterRunnable<Place> responseRunnable,\n @Nullable final Runnable failureRunnable) {\n if (Controller.getGoogleApiClient() != null)\n Places.GeoDataApi.getPlaceById(Controller.getGoogleApiClient(), placeId)\n .setResultCallback(new ResultCallback<PlaceBuffer>() {\n\n /**\n * Automatically invoked upon reception of result from the Google Places\n * GeoDataApi server\n * @param places buffer containing the Place object that corresponds to\n * the submitted placeId\n */\n @Override\n public void onResult(@NonNull PlaceBuffer places) {\n // Update the UI via callbacks to methods defined in the view layer\n if (places.getStatus().isSuccess() && places.getCount() > 0\n && places.get(0) != null) {\n // Successfully retrieved Place object\n if (responseRunnable != null)\n responseRunnable.run(places.get(0));\n } else { // Did not successfully retrieve Place object\n if (failureRunnable != null)\n failureRunnable.run();\n }\n places.release(); // release buffer to prevent memory leak\n }\n });\n }", "public void setStargateId(int val) {\n stargateId = val;\n }", "public void add_one_place_to_tour(entities.PlaceOfInterestTour place) {\n\t\tPlaceofInterestItem sp = new PlaceofInterestItem(place);\n\t\t// delete buttons from list of item (place)\n\t\tsp.add_edit_layout();\n\n\t\tsp.setOnDragOver(event -> {\n\t\t\tfinal Dragboard dragboard = event.getDragboard();\n\t\t\tif (dragboard.hasString() && TAB_DRAG_KEY.equals(dragboard.getString()) && draggingTab.get() != null) {\n\t\t\t\tevent.acceptTransferModes(TransferMode.MOVE);\n\t\t\t\tevent.consume();\n\t\t\t}\n\t\t});\n\t\tsp.setOnDragDetected(event -> {\n\t\t\tDragboard dragboard = sp.startDragAndDrop(TransferMode.MOVE);\n\t\t\tClipboardContent clipboardContent = new ClipboardContent();\n\t\t\tclipboardContent.putString(TAB_DRAG_KEY);\n\t\t\tdragboard.setContent(clipboardContent);\n\t\t\tSnapshotParameters spp = new SnapshotParameters();\n\t\t\tspp.setFill(Color.WHITE);\n\t\t\tdragboard.setDragView(sp.snapshot(spp, null), event.getX(), event.getY());\n\t\t\tdraggingTab.set(sp);\n\t\t\tevent.consume();\n\t\t});\n\t\tsp.setOnDragDropped(event -> {\n\n\t\t\tDragboard db = event.getDragboard();\n\t\t\tboolean success = false;\n\t\t\tif (db.hasString()) {\n\t\t\t\tVBox parent = (VBox) sp.getParent();\n\t\t\t\tPlaceofInterestItem source = (PlaceofInterestItem) event.getGestureSource();\n\t\t\t\tint sourceIndex = parent.getChildren().indexOf(source);\n\t\t\t\tint targetIndex = parent.getChildren().indexOf(sp);\n\t\t\t\tList<Node> nodes = new ArrayList<Node>(parent.getChildren());\n\t\t\t\tif (sourceIndex < targetIndex) {\n\t\t\t\t\tCollections.rotate(nodes.subList(sourceIndex, targetIndex + 1), -1);\n\t\t\t\t} else {\n\t\t\t\t\tCollections.rotate(nodes.subList(targetIndex, sourceIndex + 1), 1);\n\t\t\t\t}\n\t\t\t\tparent.getChildren().clear();\n\t\t\t\tparent.getChildren().addAll(nodes);\n\t\t\t\tsuccess = true;\n\t\t\t}\n\t\t\tevent.setDropCompleted(success);\n\t\t\tevent.consume();\n\n\t\t});\n\n\t\tsp.setOnMouseEntered(event -> {\n\t\t\tsp.setStyle(\"-fx-background-color : #BDBBC3\");\n\t\t});\n\t\tsp.setOnMouseExited(event -> {\n\t\t\tsp.setStyle(\"-fx-background-color : #EBE8F9\");\n\t\t});\n\n\t\tPlatform.runLater(() -> {\n\t\t\tpnItems.getChildren().add(sp);\n\t\t\tnew SlideInUp(sp).play();\n\t\t});\n\n\t}", "@Override\n public void onPlaceSelected(Place place) {\n Log.i(TAG, \"Place: \" + place.getName() + \", \" + place.getId());\n\n move=place.getLatLng();\n moveCamera(move,15f);\n }", "public int getSpid(){\n return localSpid;\n }", "public void setLocationId(String value) { _locationId = value; }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n final PlaceAutocompleteAdapter.PlaceAutocomplete item;\n final String placeId;\n item = mAdapter.getItem(position);\n placeId = String.valueOf(item.placeId);\n Log.i(TAG, \"Autocomplete item selected: \" + item.description);\n\n /*\n Issue a request to the Places Geo Data API to retrieve a Place object with additional\n details about the place.\n */\n PendingResult<PlaceBuffer> placeResult = Places.GeoDataApi\n .getPlaceById(mGoogleApiClient, placeId);\n placeResult.setResultCallback(mUpdatePlaceDetailsCallback);\n Toast.makeText(getApplicationContext(), \"Clicked: \" + item.description,\n Toast.LENGTH_SHORT).show();\n Log.i(TAG, \"Called getPlaceById to get Place details for \" + item.placeId);\n }", "public void setWorkPlace(WorkPlaceC2A workPlace)\r\n\t{\r\n\t\tthis.workPlace = workPlace;\r\n\t}", "@ApiOperation(\"删除一个会场(data返回Boolean)\")\n @DeleteMapping(\"/deleteOnePlace\")\n public ResultResponse deleteOnePlace(@ApiParam(\"会场编号\")@RequestParam(\"id\")Integer placeId){\n Boolean data = placeService.deleteOnePlace(placeId);\n return new ResultResponse()\n .setData(data)\n .setMessage(\"删除会场\");\n }", "public void scanCurrentPlace()\r\n\t{\r\n\t\tSystem.out.println(this.getCurrentPlace().toString());\r\n\t\tSystem.out.println(\"The place contains these objects: \");\r\n\t\tSystem.out.println(this.getCurrentPlace().getItems().toString());\r\n\t}" ]
[ "0.6940764", "0.67739445", "0.63119435", "0.6102834", "0.59990704", "0.5992075", "0.58842397", "0.58635783", "0.58147734", "0.57033384", "0.56980467", "0.56807023", "0.56755674", "0.5644869", "0.5622986", "0.5615459", "0.5600594", "0.5600594", "0.5600594", "0.5600594", "0.5585503", "0.555109", "0.5544561", "0.5485522", "0.54570615", "0.54344165", "0.5387002", "0.5371785", "0.5345374", "0.53227013", "0.52989787", "0.5287655", "0.5258207", "0.5232279", "0.5227121", "0.5208679", "0.5204853", "0.5204165", "0.52032906", "0.520107", "0.51968527", "0.51797074", "0.5152248", "0.51489323", "0.5147885", "0.5147885", "0.5147885", "0.51438624", "0.5137951", "0.5125998", "0.5119447", "0.51074433", "0.51056004", "0.51027936", "0.51012856", "0.5101258", "0.50976986", "0.5095384", "0.50891185", "0.50794", "0.5049884", "0.5042697", "0.5037481", "0.5001991", "0.5001991", "0.5001991", "0.5001985", "0.49977446", "0.49956045", "0.49702513", "0.49620605", "0.4946796", "0.49410176", "0.49371794", "0.49273127", "0.49232128", "0.49224034", "0.49202946", "0.4914719", "0.4904298", "0.48984692", "0.48973617", "0.48954627", "0.4891471", "0.48809642", "0.487121", "0.48582166", "0.4857511", "0.48566946", "0.48476464", "0.48442066", "0.4843869", "0.48422673", "0.48414233", "0.48393425", "0.4831661", "0.48291346", "0.48232642", "0.48097134", "0.48088092", "0.4803787" ]
0.0
-1
The same as for .pyi files
@Override public LanguageLevel getLanguageLevel() { return LanguageLevel.getLatest(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private UsingSwig() {\n\t}", "public abstract String getImportFromFileTemplate( );", "public void test() {\n\t\tFile file = new File(\"/home/students/\");\r\n\t\t\r\n\t\tString[] list = file.list(new FilenameFilter() {\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\tif (name.toLowerCase().endsWith(\".py\")) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfor (String f : list) {\r\n\t\t\tSystem.out.println(f);\r\n\t\t}\r\n\t}", "java.lang.String getSourceFile();", "private SourcecodePackage() {}", "public abstract File mo41087j();", "public IFile getIFile ();", "public interface LoadFile {\n public String loadFile();\n}", "public void source(String path) throws Exception;", "abstract public PyCode getMain();", "default String getFileExtension() {\n return \"bin\";\n }", "public String[] getExtensions() {\n return new String[] { \"ino\", \"pde\", \"c\", \"cpp\", \"h\" };\n }", "@Override\n public String getExtension() {\n return \".obj\";\n }", "@Override()\n public String ciFile()\n {\n final StringBuilder cmd = new StringBuilder()\n .append(\"mql escape mod type \\\"${NAME}\\\"\");\n\n this.append4CIFileValues(cmd);\n\n // append attributes\n this.append4CIAttributes(cmd);\n\n return cmd.toString();\n }", "public interface Interpreter {\n StringBuilder process(File file);\n}", "public void load (IFile file) throws Exception;", "public abstract Source load(ModuleName name);", "public void init(IPSExtensionDef def, java.io.File f)\n {\n }", "public static void generateCode()\n {\n \n }", "public void mo210a(File file) {\n }", "String getOutputExtension();", "void loadSimpleCodesFromFile() {\n\t\tReader reader;\r\n\t\ttry {\r\n\t\t\t//reader = new FileReader(pathStr + \"/../pt.iscte.pidesco.codegenerator/Settings/Code.cg\");\r\n\t\t\treader = new FileReader(\"Code.cg\");\r\n\t\t\tint data = reader.read();\r\n\t\t\tString output = \"\";\r\n\t\t\twhile (data != -1) {\r\n\t\t\t\tchar dataChar = (char) data;\r\n\t\t\t\toutput += dataChar;\r\n\t\t\t\tdata = reader.read();\r\n\t\t\t}\r\n\t\t\tString[] Codes = output.split(\"-CGCodeSeparator-\");\r\n\t\t\tfor (String code : Codes) {\r\n\t\t\t\tString[] Code = code.split(\"-CGSeparator-\");\r\n\t\t\t\tif (Code.length > 1)\r\n\t\t\t\t\tSimpleCodeMap.put(Code[0], new SimpleCode(Code[0], Code[1]));\r\n\t\t\t}\r\n\r\n\t\t\treader.close();\r\n\t\t\trefreshList();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t} catch (IOException e) {\r\n\t\t}\r\n\t}", "private ControlloFile() {\n\t}", "public abstract ILanguageProtocol makeInterpreter(String source, String replQualifiedName, String... salixPath) throws IOException, URISyntaxException, Exception;", "CodegenFactory getCodegenFactory();", "public interface IReadFile {\n public String readFile();\n}", "public static void main (String[] args) {import java.util.*;%>\n//&&&staticSymbol&&&<%import org.eclipse.emf.codegen.ecore.genmodel.*;%>\n//&&&staticSymbol&&&<%\n\n/**\n * Copyright (c) 2002-2010 IBM Corporation and others.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors:\n * IBM - Initial API and implementation\n */\n\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nGenPackage genPackage = (GenPackage)((Object[])argument)[0]; GenModel genModel=genPackage.getGenModel(); /* Trick to import java.util.* without warnings */Iterator.class.getName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nboolean isInterface = Boolean.TRUE.equals(((Object[])argument)[1]); boolean isImplementation = Boolean.TRUE.equals(((Object[])argument)[2]);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nString publicStaticFinalFlag = isImplementation ? \"public static final \" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%include(\"../Header.javajetinc\");%>\n//&&&staticSymbol&&&<%\nif (isInterface || genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getReflectionPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getClassPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EClass\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EObject\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genPackage.hasJavaLangConflict() && !genPackage.hasInterfaceImplConflict() && !genPackage.getClassPackageName().equals(genPackage.getInterfacePackageName())) genModel.addImport(genPackage.getInterfacePackageName() + \".*\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.markImportLocation(stringBuffer);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isInterface) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * The <b>Factory</b> for the model.\n//&&&staticSymbol&&& * It provides a create method for each non-abstract class of the model.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&&<%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @see <%\n//&&&staticSymbol&&&=genPackage.getQualifiedPackageInterfaceName()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * An implementation of the model <b>Factory</b>.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public class <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.impl.EFactoryImpl\")\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%> implements <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public interface <%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EFactory\")\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&{\n//&&&staticSymbol&&&<%\nif (genModel.hasCopyrightField()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.String\")\n//&&&staticSymbol&&&%> copyright = <%\n//&&&staticSymbol&&&=genModel.getCopyrightFieldLiteral()\n//&&&staticSymbol&&&%>;<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation && (genModel.isSuppressEMFMetaData() || genModel.isSuppressInterfaces())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> eINSTANCE = init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isInterface && genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> INSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isInterface && !genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> eINSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates the default factory implementation.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&<%\nString factoryType = genModel.isSuppressEMFMetaData() ? genPackage.getFactoryClassName() : genPackage.getImportedFactoryInterfaceName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> init()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> = (<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EPackage\")\n//&&&staticSymbol&&&%>.Registry.INSTANCE.getEFactory(<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%>.eNS_URI);\n//&&&staticSymbol&&&\t\t\tif (the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> != null)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception exception)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.plugin.EcorePlugin\")\n//&&&staticSymbol&&&%>.INSTANCE.log(exception);\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryClassName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates an instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tsuper();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic EObject create(EClass eClass)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eClass.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genClass.getClassifierID()\n//&&&staticSymbol&&&%>: return <%\n//&&&staticSymbol&&&*%%storeSymbol%%*0\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The class '\" + eClass.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (!genPackage.getAllGenDataTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic Object createFromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convertToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genClass.isDynamic()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = <%\n//&&&staticSymbol&&&=genClass.getCastFromEObject()\n//&&&staticSymbol&&&%>super.create(<%\n//&&&staticSymbol&&&=genClass.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = new <%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%>()<%\nif (genModel.isSuppressInterfaces() && !genPackage.getReflectionPackageName().equals(genPackage.getInterfacePackageName())) {\n//&&&staticSymbol&&&%>{}<%\n}\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%>String <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>literal<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getCreatorBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(literal);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + literal + \"' is not a valid enumerator of '\" + <%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(literal); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(literal))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null && <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(result)<%\n} else {\n//&&&staticSymbol&&&%>result<%\n}\n//&&&staticSymbol&&&%>, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null || <%\n}\n//&&&staticSymbol&&&%>exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(literal);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn ((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal)).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (!genPackage.isDataTypeConverters() && genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(initialValue);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + initialValue + \"' is not a valid enumerator of '\" + eDataType.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.getObjectInstanceClassName().equals(genBaseType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(initialValue); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(initialValue))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\nif (!genItemType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = null;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType() && !genDataType.getObjectInstanceClassName().equals(genMemberType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (result != null && <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(eDataType, result, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (result != null || exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getConverterBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genBaseType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedFactoryInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\tif (instanceValue.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = instanceValue.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : instanceValue)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getQualifiedInstanceClassName().equals(genDataType.getQualifiedInstanceClassName())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (genMemberType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue).<%\n//&&&staticSymbol&&&=genMemberType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>());\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) { genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName());\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && (genDataType.getItemType() != null || genDataType.isUncheckedCast()) && (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else { final String singleWildcard = genModel.useGenerics() ? \"<?>\" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%> list = (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%>)instanceValue;\n//&&&staticSymbol&&&\t\tif (list.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = list.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : list)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue)<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+eDataType.getName());\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>(<%\n}\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genClass.hasFactoryInterfaceCreateMethod()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>' corresponding the given literal.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param literal a literal of the data type.\n//&&&staticSymbol&&&\t * @return a new instance value of the data type.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(String literal);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a literal representation of an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param instanceValue an instance value of the data type.\n//&&&staticSymbol&&&\t * @return a literal representation of the instance value.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tString convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> instanceValue);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!isImplementation && !genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns the package supported by this factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return the package supported by this factory.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>)getEPackage();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @deprecated\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Deprecated\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> getPackage()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&} //<%\n//&&&staticSymbol&&&*%%storeSymbol%%*1\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.emitSortedImports();\n//&&&staticSymbol&&&%>\n\n}", "private String imported(String string) {\n string = IMPORT.matcher(string).replaceAll(\"\");\n string = DOT.matcher(string).replaceAll(\"/\");\n string = SEMICOLON.matcher(string).replaceAll(\"\");\n string = \"/\" + string.trim() + \".java\";\n return string;\n }", "public void compile(MindFile f) {\n \t\t\n \t}", "public interface ICodeGenerator extends IGenerator {\n\n String OUTPUT_PACKAGE = \"com.adversespaceloneliness.game.assets.generated\";\n String OUTPUT_PATH = \"src/main/java\";\n\n /**\n * Ends the generation process for this generator.\n * <p>\n * This method is supposed to be called once all the intended assets were passed through this generator and that the resulting code must be generated.\n */\n void endGeneration();\n}", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void testSourceName() {\n\t\tassertEquals(\"boolean\", this.compiler.getSourceName(boolean.class));\n\t\tassertEquals(\"java.lang.Integer\", this.compiler.getSourceName(Integer.class));\n\t\tassertEquals(\"java.sql.Connection\", this.compiler.getSourceName(Connection.class));\n\t\tassertEquals(\"char[]\", this.compiler.getSourceName(char[].class));\n\t\tassertEquals(\"java.lang.String[]\", this.compiler.getSourceName(String[].class));\n\t}", "public static String sourceExtension()\n {\n read_if_needed_();\n \n return _ext; \n }", "public interface PyRunnable {\n /**\n * Return the org.jpp.modules code object.\n */\n abstract public PyCode getMain();\n}", "public String getDefaultExtension() {\n return \"ino\";\n }", "public abstract void loadFile(Model mod, String fn) throws IOException;", "public void readFromFile() {\n\n\t}", "String generateCode(\n InputSource input, String filename,\n ProgrammingLanguage programmingLanguage,\n SourceResolver resolver\n ) throws Exception;", "Imports createImports();", "public abstract File mo41088k();", "private static boolean isJava8File(Path path) {\n var name = Paths.name(path);\n return !path.startsWith(\".bach\") // ignore all files in `.bach` directory\n && name.endsWith(\".java\")\n && !name.equals(\"module-info.java\") // ignore module declaration compilation units\n && Files.isRegularFile(path);\n }", "public interface FileType {\n\tString name();\n}", "File getLoadLocation();", "public void filePathContainsPound() { }", "public void filePathContainsPound() { }", "private boolean isCodeFile(File file) {\n return file.isFile() && file.getName().endsWith(CODE_FILE_EXTENSION);\n }", "public abstract String getFileLocation();", "public interface InterpolationMethodBaseType extends CodeType {\r\n}", "public abstract String getFileFormatName();", "public interface CodeFormatter\n{\n}", "public abstract String getFileExtension();", "public SourceFile getSourceFile() throws InvalidFormatException;", "public void load(File source);", "public interface IScript {\n\n}", "public interface ImportPatcher {\n public void setParameter(String paramName, Object value);\n public void setParameter(String paramName, File file);\n public void setParameter(String paramName, String value);\n public FileInfo run();\n}", "public boolean isI_IsImported();", "Import createImport();", "Import createImport();", "java.lang.String getSourceFile(int index);", "private CanonizeSource() {}", "Interpreter getInterpreter();", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Module.h\", line = 214,\n FQN=\"llvm::Module::getSourceFileName\", NM=\"_ZNK4llvm6Module17getSourceFileNameEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZNK4llvm6Module17getSourceFileNameEv\")\n //</editor-fold>\n public /*const*/std.string/*&*/ getSourceFileName() /*const*/ {\n return SourceFileName;\n }", "abstract protected String getWrapperFileNameBase();", "public String getFileExtension() {\r\n return Generator.ANIMALSCRIPT_FORMAT_EXTENSION;\r\n }", "protected String inputInFile() {\n return \"T//\" + this.getTaskStatus() + \"//\"\n + super.getDescription();\n }", "public interface FileInterface {\n\t/**\n\t * Operation that allows to read an input file to a data structure.\n\t */\n\tpublic void readFile();\n\t/**\n\t * Operation that allows to read an input file and select a specific fraction into a string array.\n\t * @return Array of strings containing a specific fraction of the file.\n\t */\n\tpublic String[] readClasses();\n}", "private FileUtil() {}", "public void setInstructionFile(String s)\r\n \t{\r\n \t\tm_sInsFileName = s;\r\n \t}", "private static void showFiles(File f) {\n\t\n}", "private static void load(){\n }", "public interface i {\n\n /* compiled from: MemoryCache */\n public interface a {\n }\n}", "public Resource load(IFile f);", "public interface IProgram {\n\n\t/**\n\t * Returns filename of the program. This is name of file that was\n\t * initially added to the database.\n\t * @return filename of the program.\n\t */\n\tpublic String getFilename();\n\n\t/**\n\t * Returns a sequence of bytes that forms source file in UTF-8 encoding. \n\t * @return a sequence of bytes that forms source file in UTF-8 encoding. \n\t */\n\tpublic byte[] getSource();\n\n\t/**\n\t * Returns list of tokens (unmodifiable).\n\t * \n\t * @return list of tokens (unmodifiable).\n\t */\n\tpublic List<IToken> getTokens();\n\n\t/**\n\t * Returns author of the program.\n\t * \n\t * @return author of the program.\n\t */\n\tpublic IAuthor getAuthor();\n\n}", "private ClinicFileLoader() {\n\t}", "protected abstract String getFileExtension();", "SourceFilePath getFilePath();", "public interface i {\n}", "public interface SimpleFile {// extends IFile { \n /**\n * Open the file\n * @param path path to the file\n * @param readOnly if file is readonly\n * @param noFlush whther synchronous flush is needed\n */\n void open(String path, boolean readOnly, boolean noFlush)throws IOException;\n \n /**\n * Delete file\n * @param path path to the file\n */\n void delete(String path);\n \n boolean isOpened();\n String readString()throws IOException;\n void truncate(int nSize)throws IOException;\n InputStream getInputStream()throws IOException;\n OutputStream getOutStream();\n OutputStream getOutStreamEx(long pos)throws IOException; \n long length();\n \n /**\n * \n * @param path\n * @return\n */\n String getDirPath(String path) throws IOException;\n\n /**\n * @param fromClass\n * @param path\n * @return\n */\n public abstract InputStream getResourceAsStream(Class fromClass, String path);\n \n public abstract void renameOverwrite(String oldName, String newName);\n \n public abstract void copyJarFileToMemory(String strFileName, InputStream jarStream)throws IOException;\n \n void write(long pos, byte[] buf)throws IOException;\n\n /**\n * Read data from the file\n * @param pos offset in the file\n * @param buf array to receive readen data (size is always equal to database page size)\n * @return number of bytes actually readen\n */\n int read(long pos, byte[] buf)throws IOException;\n\n /**\n * Flush all fiels changes to the disk\n */\n void sync()throws IOException;\n\n /**\n * Close file\n */\n void close()throws IOException;\n\n /**\n * Length of the file\n */\n //long length();\n \n}", "public void readFile();", "private final void i() {\n }", "interface ImportService {\n /**\n * Main import method.\n */\n void doImport();\n}", "public static boolean isJavaSourceFile(String f) {\n\t\tString ext = FilenameUtils.getExtension(f);\n\t\tif (ext.endsWith(\"java\")) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "void mo25969f(TemplateInfo templateInfo);", "private static List<String> getJavasSourceCodeFiels(Map<String,Object> map){\r\n \t\t\r\n \t\t\r\n \t\tSystem.out.println(\"............\");\r\n \t\tLinkedList<String> list = new LinkedList<String>();\r\n \t\tfor(String key : map.keySet()){\r\n \t\t\tObject o = map.get(key);\r\n \r\n \t\t\t//package...\r\n \t\t\tif(o instanceof IPackageFragment){\r\n \t\t\t\t//System.out.println(\"Package --> \" + key);\r\n \t\t\t\tkey = key.substring(0,key.indexOf('[')).trim();\r\n \t\t\t\tkey = PACKAGE + \"(\" + key + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t\t//class...\r\n \t\t\tif(o instanceof ICompilationUnit){\r\n \t\t\t\t//System.out.println(\"Class --> \" + key);\r\n \t\t\t\tString classname = key.substring(0,key.indexOf('[')).trim();\r\n \t\t\t\tString packagename = key.substring(key.indexOf(PACKAGE),key.indexOf('\\n',key.indexOf(PACKAGE)));\r\n \t\t\t\tkey = CLASS_WITH_MEMBERS + \"(\" + packagename + \",\" + classname + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}//method\r\n \t\t\tif(o instanceof IMethod){\r\n \t\t\t\tSystem.out.println(\"Methode --> \" + key);\r\n \t\t\t\tkey = METHOD + \"(\" + getQueryFromMethod((IMethod)o) + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(o instanceof IField){\r\n \t\t\t\tSystem.out.println(\"Attribut --> \" + key);\r\n \t\t\t\tkey = FIELD + \"(\" + getQueryFromField((IField)o) + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn list;\r\n \t\t\r\n \t\t\r\n \t\t/*\r\n \t\tfor(String key : map.keySet()){\r\n \t\t\tObject o = map.get(key);\r\n \t\t\t//if(o instanceof ISourceAttribute)\r\n \t\t\t\t//System.out.println(\"attribute\");\r\n \t\t\t//if(o instanceof ISourceMethod)\r\n \t\t\t\t//System.out.println(\"methode\");\r\n \t\t\tif(o instanceof IPackageFragment) \r\n \t\t\t\tSystem.out.println(\"Package\");\r\n \t\t\tif(o instanceof ICompilationUnit)\r\n \t\t\t\tSystem.out.println(\"sour code file\");\r\n \t\t\t\t\r\n \t\t\t//\"oldquery or class('voller packagename', klassenname)\"\r\n \t\t\t\t\r\n \t\t\t\t\r\n \t\t\tif(o instanceof IField)\r\n \t\t\t\tSystem.out.println(\"Attribut\");\r\n \t\t\tif(o instanceof IType)\r\n \t\t\t\tSystem.out.println(\"classe also class ... in einem file\");\r\n \t\t\tif(o instanceof IMethod)\r\n \t\t\t\tSystem.out.println(\"Methode\");\r\n \t\t\tif(o instanceof IPackageFragmentRoot) \r\n \t\t\t\tSystem.out.println(\"jar package / src Ordner\");\r\n \t\t\tif(o instanceof IProject)\r\n \t\t\t\tSystem.out.println(\"Projekt Ordner\");\r\n \t\t\tif(o instanceof IClassFile)\r\n \t\t\t\tSystem.out.println(\"ClassFile\");\r\n \t\t\tif(o instanceof IAdaptable) //trieft auch auf viele ander sachen zu\r\n \t\t\t\tSystem.out.println(\"Libaraycontainer\");\r\n \t\t\tif(o instanceof IFile)\r\n \t\t\t\tSystem.out.println(\"file\"); //je nach ausgewlter ansicht knnen file auch *.java datein sein\r\n \t\t\tif(o instanceof IFolder)\r\n \t\t\t\tSystem.out.println(\"folder\");\r\n \t\t\tSystem.out.println(o.getClass());\r\n \t\t\t\r\n \t\r\n \t\t}\r\n \t\treturn null;\r\n \t\t*/\r\n \t}", "public interface C5138c {\n /* renamed from: e */\n void mo25968e(TemplateInfo templateInfo);\n\n /* renamed from: f */\n void mo25969f(TemplateInfo templateInfo);\n}", "@Test\n public void testPackagePrivateAccessForNames_esModule() {\n testNoWarning(\n srcs(\n SourceFile.fromCode(\n Compiler.joinPathParts(\"foo\", \"bar.js\"),\n lines(\n \"/** @package */\", //\n \"var name = 'foo';\",\n \"export {name};\")),\n SourceFile.fromCode(\n Compiler.joinPathParts(\"baz\", \"quux.js\"),\n \"import {name} from '/foo/bar.js'; name;\")));\n }", "private void inspect() {\n\t\tFileHandler handler = new FileHandler();\n\t\tIContainer container = handler.findOrCreateContainer(packageBase);\n\t\tIResource[] members = null;\n\t\ttry {\n\t\t\tmembers = container.members();\n\t\t} catch (CoreException e) {\n\t\t\tSystem.out.println(\"Could not access members of the container \"\n\t\t\t\t\t+ container.getFullPath() + \".\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttraverseSourceFiles(members);\n\t}", "void mo25968e(TemplateInfo templateInfo);", "public interface Extension\r\n {\r\n String XHTML = \"xhtml\";\r\n String JSF = \"jsf\";\r\n String FACES = \"faces\";\r\n String JSP = \"jsp\";\r\n }", "public static void realWorld() \r\n\t{\r\n\t\tStream<File> roots = Arrays.stream(new String[] { \".\" }).map(File::new); \r\n\t\t\r\n\t\tStream<File> files = roots.flatMap(Program::allFilesIn).filter(endsWith(\".java\"));\r\n\t\tStream<String> lines = files.flatMap(Program::readIn);\r\n\t\tStream<String> words = lines.flatMap(Program::splitIntoWords);\r\n\t\twords.forEach(System.out::println);\r\n\t\tSystem.out.println(\"Done\");\r\n\t}", "public interface XModule extends ru.awk.spb.xonec.XOneC.XModule\r\n{\r\n}", "public static interface ISourceFunctions extends IDynamicResourceExtension {\r\n\r\n @IDynamicResourceExtension.MethodId(\"4b8d7404-c58d-11e5-aeea-1db9268c0ee9\")\r\n public java.lang.String GetId();\r\n\r\n @IDynamicResourceExtension.MethodId(\"43b904fe-c97a-11e5-a64e-a5d84d8f1b45\")\r\n public List<cleon.architecturemethods.eamod.metamodel.spec.chrv.sources.javamodel.ISource> GetAllSources();\r\n\r\n @IDynamicResourceExtension.MethodId(\"88b17f27-c992-11e5-b35b-8fb753dd0798\")\r\n public java.lang.String GetTypeName();\r\n\r\n @IDynamicResourceExtension.MethodId(\"b217619b-7c0b-11e6-a6f8-61123cfa9fd9\")\r\n public java.lang.String GetName();\r\n\r\n @IDynamicResourceExtension.MethodId(\"769bc163-38e7-11e8-8c35-85f8e4a22f42\")\r\n public List<cleon.architecturemethods.eamod.metamodel.spec.chrv.sources.javamodel.ISourceAware> GetAllUsedSourceAware();\r\n\r\n @IDynamicResourceExtension.MethodId(\"0e17d013-ea68-11e8-8092-1f65b9544bbd\")\r\n public java.lang.String GetCascadingName();\r\n\r\n }", "public long pythonExtension()\n {\n return this.pythonObject;\n }", "public interface Extension {\r\n\r\n /**\r\n *\r\n * @return the extension name\r\n */\r\n String getName();\r\n}", "private FileUtility() {\r\n\t}", "public void loadShow(File f) {\n \n }", "protected abstract void readFile();", "java.lang.String getOutputjar();", "public interface FileSource {\n\n String getCondition(int code, String lang);\n\n}", "public Python() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "private static void test1() throws ParseException, IOException {\n\t\n\tFile classFile = new File(\"/home/sebastian/workspace3.7/yuigwt/java-tools/org/sgx/gwtjavatools/delegate/JYUIDelegateMethods.java\");\n\t\n// InputStream in = ParserTest.class.getClassLoader().getResourceAsStream(\"/java-tools/org/sgx/gwtjavatools/delegate/JYUIDelegateMethods.java\");//new FileInputStream(\"test.java\");\n\n\tFileInputStream in = new FileInputStream(classFile); \n\t\n CompilationUnit cu;\n try {\n // parse the file\n cu = JavaParser.parse(in);\n } finally {\n in.close();\n }\n\n // visit and print the methods names\n new MethodVisitor().visit(cu, null);\n\n // prints the resulting compilation unit to default system output\n// System.out.println(cu.toString());\n}" ]
[ "0.56974643", "0.5608774", "0.56018025", "0.559792", "0.5475262", "0.5470392", "0.5403056", "0.5397567", "0.5371762", "0.535281", "0.5340772", "0.5337207", "0.530667", "0.53063434", "0.5293251", "0.52567", "0.52057713", "0.5188424", "0.51406634", "0.5131831", "0.5127548", "0.5118926", "0.511737", "0.5113473", "0.51091343", "0.51067215", "0.50975716", "0.50956506", "0.509178", "0.50810045", "0.5077234", "0.5062336", "0.5058599", "0.50520617", "0.5051346", "0.5039605", "0.502719", "0.50239813", "0.5019345", "0.5010158", "0.5000692", "0.49976596", "0.4996042", "0.49943975", "0.49943975", "0.49943912", "0.4993115", "0.49862513", "0.49738884", "0.49738237", "0.49609134", "0.49592742", "0.49433553", "0.49397686", "0.4937416", "0.49314758", "0.492341", "0.492341", "0.4922228", "0.4921394", "0.49206328", "0.49177635", "0.49068874", "0.49038124", "0.49026132", "0.48930183", "0.4881932", "0.4881596", "0.48765668", "0.4874014", "0.48587912", "0.48508194", "0.48474264", "0.48403683", "0.4830139", "0.48281989", "0.4826604", "0.48245806", "0.48213428", "0.4819994", "0.48162067", "0.48152637", "0.4812778", "0.4812284", "0.4809843", "0.48072225", "0.48063108", "0.48032165", "0.4801361", "0.47942406", "0.47899905", "0.47895467", "0.4785482", "0.47745085", "0.47721535", "0.47582722", "0.47570622", "0.4755237", "0.47529632", "0.4751696", "0.47509408" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String s1="abcd"; String s2="vbvabcdqwe"; char arr1[]=s1.toCharArray(); char arr2[]=s2.toCharArray(); int flag=0; for(int i=0;i<arr1.length;i++) { for(int j=i;j<arr2.length;j++) { if(arr1[i]==arr2[j]) { } } } }
{ "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
~ Constructors Creates a new instance.
public SubProcessFragment( Class<? extends ProcessDefinition> rSubProcessClass) { displayProcess(rSubProcessClass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "private Instantiation(){}", "public Instance() {\n }", "public CyanSus() {\n\n }", "public Curso() {\r\n }", "public Odontologo() {\n }", "public CSSTidier() {\n\t}", "public Pasien() {\r\n }", "public PSRelation()\n {\n }", "public Chauffeur() {\r\n\t}", "public Cohete() {\n\n\t}", "private void __sep__Constructors__() {}", "public Trening() {\n }", "public SlanjePoruke() {\n }", "public Pitonyak_09_02() {\r\n }", "public TV() {\r\n\t}", "public Factory() {\n\t\tsuper();\n\t}", "public Kullanici() {}", "public VOCSesame () {\n }", "public Chick() {\n\t}", "public Demo() {\n\t\t\n\t}", "private TMCourse() {\n\t}", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Coche() {\n super();\n }", "public Libro() {\r\n }", "public Livro() {\n\n\t}", "public Corso() {\n\n }", "public JSFOla() {\n }", "public AFMV() {\r\n }", "public Rol() {}", "private Composite() {\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public ExamMB() {\n }", "public AirAndPollen() {\n\n\t}", "public Phl() {\n }", "public CMN() {\n\t}", "public OVChipkaart() {\n\n }", "public Carrera(){\n }", "public TTau() {}", "public Basic() {}", "public Clade() {}", "Reproducible newInstance();", "public Lanceur() {\n\t}", "public Soil()\n\t{\n\n\t}", "public EnsembleLettre() {\n\t\t\n\t}", "public Excellon ()\n {}", "public Manusia() {}", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public Car(){\n\t\t\n\t}", "public Alojamiento() {\r\n\t}", "public Anschrift() {\r\n }", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public Model() {\n\t}", "public Model() {\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public _355() {\n\n }", "public ObjectFactory() {\n\t}", "public Classe() {\r\n }", "public Aritmetica(){ }", "public Aanbieder() {\r\n\t\t}", "public Mitarbeit() {\r\n }", "public CD() {}", "public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }", "private Singleton()\n\t\t{\n\t\t}", "public Orbiter() {\n }", "public Gasto() {\r\n\t}", "public ObjectFactory() {\n super(grammarInfo);\n }", "Composite() {\n\n\t}", "public Tbdtokhaihq3() {\n super();\n }", "public Laboratorio() {}", "private SingleObject()\r\n {\r\n }", "public Demo3() {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public ObjectFactory() {\r\n\t}", "public Person() {\n\t\t\n\t}", "public Book() {\n\t\t// Default constructor\n\t}", "public Vaccine() {\n\t}", "public Classroom() {\n\t}", "public SgaexpedbultoImpl()\n {\n }", "public Magazzino() {\r\n }", "Cab(){\n\t\tSystem.out.println(\"Cab Object Constructed..\");\n\t}", "public Achterbahn() {\n }", "public TCubico(){}", "public Postoj() {}", "public AntrianPasien() {\r\n\r\n }", "private MApi() {}", "public Vehiculo() {\r\n }", "public FruitStand() {}", "protected abstract void construct();", "public Goodsinfo() {\n super();\n }", "public Aktie() {\n }", "defaultConstructor(){}", "public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public Tarifa() {\n ;\n }", "public Parameters() {\n\t}", "public History() {\n }", "private Marinator() {\n }", "private Marinator() {\n }", "public AvaliacaoRisco() {\n }" ]
[ "0.7895477", "0.77586013", "0.7509959", "0.72225046", "0.7163167", "0.7064127", "0.7037824", "0.70261115", "0.69741386", "0.69649565", "0.6956806", "0.6944099", "0.6939205", "0.69003296", "0.6896239", "0.6890563", "0.6859763", "0.6855911", "0.6851183", "0.6844196", "0.6843865", "0.68336636", "0.6822451", "0.6808959", "0.6801846", "0.6798662", "0.6779699", "0.6773879", "0.6763349", "0.6756999", "0.67454386", "0.67447674", "0.6741153", "0.6738699", "0.6737765", "0.67332757", "0.67319137", "0.6728655", "0.67256904", "0.67164963", "0.6704916", "0.67010605", "0.6697109", "0.6695519", "0.66930234", "0.66917914", "0.6683495", "0.66827524", "0.6678969", "0.66789275", "0.6675853", "0.6675846", "0.6669654", "0.66694516", "0.66656125", "0.66656125", "0.6644134", "0.66423297", "0.66335887", "0.6633226", "0.6632251", "0.66289055", "0.6627757", "0.66265225", "0.6625812", "0.6625282", "0.6622332", "0.6620696", "0.66193223", "0.6614067", "0.6611729", "0.66105497", "0.66060233", "0.66057473", "0.6598115", "0.6597199", "0.65971273", "0.6596264", "0.65960807", "0.6592704", "0.6587686", "0.6582072", "0.658196", "0.6580426", "0.6560616", "0.6559776", "0.6553376", "0.6552559", "0.6549626", "0.65474254", "0.65395737", "0.65302163", "0.65270835", "0.65256894", "0.6522418", "0.6515325", "0.6510945", "0.65087736", "0.65077657", "0.65077657", "0.65056574" ]
0.0
-1
Sets the process definition of this fragment. If a process is already running it will be cancelled first. If the fragment has already been initialized a new process based on the new definition will be executed and the UI will be initialized accordingly.
public void displayProcess( Class<? extends ProcessDefinition> rSubProcessClass) { this.rProcessClass = rSubProcessClass; cleanup(); // if initialized before, re-invoke init() to setup for new process if (isInitialized()) { try { init(); } catch (ProcessException e) { throw new RuntimeProcessException(this, e); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProcessDefinition(com.sforce.soap.enterprise.sobject.ProcessDefinition processDefinition) {\n this.processDefinition = processDefinition;\n }", "protected void setProcess(Process rNewProcess)\n\t{\n\t\trProcess = rNewProcess;\n\t\tfragmentParam().annotate(PROCESS, rProcess);\n\t}", "public void setProcess(ServiceProcess process) {\n\t\tthis.process = process;\n\t}", "public void setProcessDefinitionId(java.lang.String processDefinitionId) {\n this.processDefinitionId = processDefinitionId;\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setProcessId(java.lang.String value) {\n validate(fields()[18], value);\n this.processId = value;\n fieldSetFlags()[18] = true;\n return this;\n }", "public void setDefinition(String definition){\n\t\tdefinitionArea.setText(definition);\n\t}", "public final void setProcessId(int pid) {\n \tif ( getOpenCount() == 0)\n \t\tm_pid = pid;\n }", "public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setProcessId(java.lang.String value) {\n validate(fields()[8], value);\n this.processId = value;\n fieldSetFlags()[8] = true;\n return this;\n }", "private void setFragment() {\r\n dataModelArrayList.clear();\r\n fm = getSupportFragmentManager();\r\n mTaskFragment = (ViewPagerAsyncTask) fm.findFragmentByTag(TAG_TASK_FRAGMENT);\r\n\r\n // If the Fragment is non-null, then it is currently being\r\n // retained across a configuration change.\r\n if (mTaskFragment == null) {\r\n mTaskFragment = new ViewPagerAsyncTask();\r\n fm.beginTransaction().add(mTaskFragment, TAG_TASK_FRAGMENT).commit();\r\n }\r\n }", "private void setProcessId(int value) {\n\t\tthis.processId = value;\n\t}", "public com.sforce.soap.enterprise.sobject.ProcessDefinition getProcessDefinition() {\n return processDefinition;\n }", "public void setProcessId(String processId)\r\n\t{\r\n\t\tthis.processId = processId;\r\n\t}", "public void setDefinition(String definition){\n\t\tthis.definition = definition;\n\t}", "protected void setServiceProcess(ServiceProcess serviceProcess) {\n\t\tthis.serviceProcess = serviceProcess;\n\t}", "public abstract void setProcessID(long pid);", "@Override\n public void setPresenter(ProcessContract.Presenter presenter) {\n if(presenter != null) this.processPresenter = presenter;\n else throw new RuntimeException(\"Process presenter can not be null\");\n }", "public EditHighLevelProcessGui(HLModel process) {\n\t\thlProcessImpl = process;\n\t\thlProcess = process.getHLProcess();\n\t\tprocessGui = new HLProcessGui(process);\n\t\tjbInit();\n\t}", "private void setStartFragment() {\n Fragment startFragment = getFragment(APPLICATION_FRAGMENTS[0]);\n changeFragment(startFragment);\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\ttaskId=getArguments().getInt(\"taskId\");\r\n\t\ttask=DBAccessImpl.getInstance(getActivity()).describeTask(taskId);\r\n\t\tself=this;\r\n\t\ttaskMgr=new TaskMgr(getActivity());\r\n\t\tthis.setStyle(DialogFragment.STYLE_NO_TITLE, 0);\r\n\t}", "protected void parseProcess(XmlElement processElement) {\n\n // Reset all mappings that are related to one process definition\n // sequenceFlows = new HashMap<String, TransitionImpl>();\n\n // The name of the ProcessDefinition is the value of 'name' attribute, in case that it is defined.\n String processName;\n if (processElement.getAttribute(\"name\") == null || processElement.getAttribute(\"name\").isEmpty()) {\n\n processName = processElement.getAttribute(\"id\");\n } else {\n\n processName = processElement.getAttribute(\"name\");\n }\n processBuilder.setName(processName);\n\n processBuilder.setDescription(parseDocumentation(processElement));\n processBuilder.setAttribute(\"targetNamespace\", rootElement.getAttribute(\"targetNamespace\"));\n\n parseElements(processElement);\n\n //\n // preserve original attributes\n //\n parseGeneralInformation(processElement, processBuilder);\n\n try {\n\n BpmnProcessDefinitionModifier.decorateWithDefaultBpmnInstantiationPattern(processBuilder);\n this.finishedProcessDefinition = processBuilder.buildDefinition();\n } catch (IllegalStarteventException buildingDefinitionException) {\n\n String errorMessage = \"The processDefintion could be built.\";\n logger.error(errorMessage, buildingDefinitionException);\n }\n\n // Doing the afterwork\n for (BpmnXmlParseListener parseListener : parseListeners) {\n parseListener.parseProcess(processElement, finishedProcessDefinition);\n }\n }", "public void setProcessName(String processName) {\n this.processName = processName;\n }", "public EditHighLevelProcessGui(HLProcess hlprocess) {\n\t\thlProcess = hlprocess;\n\t\tprocessGui = new HLProcessGui(hlprocess);\n\t\tjbInit();\n\t}", "public void setProcessstep(ItemI v) throws Exception{\n\t\t_Processstep =null;\n\t\ttry{\n\t\t\tif (v instanceof XFTItem)\n\t\t\t{\n\t\t\t\tgetItem().setChild(SCHEMA_ELEMENT_NAME + \"/processStep\",v,true);\n\t\t\t}else{\n\t\t\t\tgetItem().setChild(SCHEMA_ELEMENT_NAME + \"/processStep\",v.getItem(),true);\n\t\t\t}\n\t\t} catch (Exception e1) {logger.error(e1);throw e1;}\n\t}", "public SubProcessFragment(\n\t\tClass<? extends ProcessDefinition> rSubProcessClass)\n\t{\n\t\tdisplayProcess(rSubProcessClass);\n\t}", "public void setDefinition(Long Definition) {\n this.Definition = Definition;\n }", "public void setProcessCompleted(String processCompleted)\r\n\t{\r\n\t\tthis.processCompleted = processCompleted;\r\n\t}", "public Process() {\n\t\tthis(null);\n\t}", "public final void setServiceProcess(java.lang.String serviceprocess)\r\n\t{\r\n\t\tsetServiceProcess(getContext(), serviceprocess);\r\n\t}", "private void statInit() {\n\t\t//\t\n\t\tif (getAD_Process_ID() > 0) {\n\t\t\t//\tFR [ 245 ]\n\t\t\tinitProcessInfo();\n\t\t\tprocessParameterPanel = new ProcessPanel(getWindowNo(), getBrowseProcessInfo());\n\t\t\tprocessParameterPanel.setColumns(ProcessController.COLUMNS_2);\n\t\t\tprocessParameterPanel.setShowButtons(false);\n\t\t\tprocessParameterPanel.setShowDescription(false);\n\t\t\tprocessParameterPanel.createFieldsAndEditors();\n\t\t\t//\tIf don't have parameters then don'show collapsible panel\n\t\t\tif(processParameterPanel.hasParameters()) {\n\t\t\t\t//\tAdd collapsible panel for process pane;\n\t\t\t\tCollapsiblePanel collapsibleProcess = new CollapsiblePanel(Msg.getMsg(Env.getCtx(),(\"Parameter\")));\n\t\t\t\tcollapsibleProcess.add(processParameterPanel.getPanel());\n\t\t\t\tcollapsibleProcess.validate();\n\t\t\t\tprocessPanel.add(collapsibleProcess);\n\t\t\t}\n\t\t}\n\t}", "public synchronized void setProcessingActivity(ProcessingActivity processingActivity){\n\t\tthis.processingActivity=processingActivity;\n\t}", "public final Process getFragmentProcess()\n\t{\n\t\treturn rProcess;\n\t}", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearProcessId() {\n processId = null;\n fieldSetFlags()[18] = false;\n return this;\n }", "@Override\n\tpublic AjaxResult startProcessInstanceByKey(String processDefinitionKey) {\n\t\tProcessInstance pi = runtimeService.startProcessInstanceByKey(processDefinitionKey);\n\t\tAjaxResult a = AjaxResult.success(\"操作成功\");\n\t\ta.add(\"processInstacne\", pi);\n\t\tif (pi != null) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn AjaxResult.error(\"流程不存在\");\n\n\t\t}\n\n\t}", "public void setObjProcess(final T objProcess) {\n this.objProcess = objProcess;\n }", "@Override\n public void setStateMachineDefinition(StateMachineDefinition<BookStatus,\n BookEvent> definition) {\n this.stateMachineDefinition = definition;\n }", "public void startProcess() {\r\n\t\tprocess = true;\r\n\t}", "public void setTaskDefinition(String taskDefinition) {\n this.taskDefinition = taskDefinition;\n }", "public void setTaskDefinition(String taskDefinition) {\n this.taskDefinition = taskDefinition;\n }", "public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder clearProcessId() {\n processId = null;\n fieldSetFlags()[8] = false;\n return this;\n }", "public final void setServiceProcess(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String serviceprocess)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.ServiceProcess.toString(), serviceprocess);\r\n\t}", "@JsonProperty(\"processClass\")\r\n @JacksonXmlProperty(localName = \"process_class\", isAttribute = true)\r\n public void setProcessClass(String processClass) {\r\n this.processClass = processClass;\r\n }", "@Override\n public void setProcessProgress(String processName, int progressValue) {\n String sqlStatement = \"select system.process_progress_set(#{process_name}, #{progress_value}) as vl\";\n Map params = new HashMap();\n params.put(CommonSqlProvider.PARAM_QUERY, sqlStatement);\n params.put(PROCESS_NAME, processName);\n params.put(\"progress_value\", progressValue);\n getRepository().getScalar(Void.class, params);\n }", "public void setPid(String pid) {\r\n this.pid = pid;\r\n }", "public java.lang.String getProcessDefinitionId() {\n return processDefinitionId;\n }", "public void setPreviewVideoDefinition(VideoDefinition vdef);", "@Override\n\tpublic void setPID(int pid) {\n\t\tthis.pID = pid;\n\t\t\n\t}", "public void setPid(Integer pid) {\n this.pid = pid;\n }", "public void setPid(Integer pid) {\n this.pid = pid;\n }", "public void setPid(Integer pid) {\n this.pid = pid;\n }", "public void setPid(Integer pid) {\n this.pid = pid;\n }", "public void setProcessPidValue(String processPidValue) throws JNCException {\n setProcessPidValue(new YangUInt32(processPidValue));\n }", "public abstract void initializeProcess();", "Map<String, Object> checkProcessDefinitionValid(long projectCode, ProcessDefinition processDefinition, long processDefineCode, Integer verison);", "public void setPid(Long pid) {\n this.pid = pid;\n }", "public void setPid(Long pid) {\n this.pid = pid;\n }", "private void setParentProcess(List<Process> result)\r\n\t{\r\n\t\tif (ValidationUtil.isNullOrEmpty(result))\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// In case the Process has parent, get it too\r\n\t\tfor (Process process : result)\r\n\t\t{\r\n\t\t\tif (!ValidationUtil.isNull(process.getParentProcess())\r\n\t\t\t\t\t&& !ValidationUtil.isNullOrZero(process.getParentProcess().getId()))\r\n\t\t\t{\r\n\t\t\t\tprocess.setParentProcess(this.fetchProcessById(process.getParentProcess().getId()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void setExecute(long execute) {\n\t\t_scienceApp.setExecute(execute);\n\t}", "protected void parseProcessDefinitions() {\n\n List<XmlElement> processes = rootElement.getElements(\"process\");\n\n if (processes.size() == 0) {\n String errorMessage = \"No process have been defined in the BPMN serialized XMl file.\";\n throw new JodaEngineRuntimeException(errorMessage);\n }\n if (processes.size() > 1) {\n String errorMessage = \"Joda Engine cannot read more than one process in a BPMN serialized XMl file.\";\n throw new JodaEngineRuntimeException(errorMessage);\n }\n\n parseProcess(processes.get(0));\n }", "public void setProcessPidValue(long processPidValue) throws JNCException {\n setProcessPidValue(new YangUInt32(processPidValue));\n }", "public void setPid(String pid) {\n\t\tthis.pid = pid == null ? null : pid.trim();\n\t}", "public void setProvProcessId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/prov_process_id\",v);\n\t\t_ProvProcessId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public Builder setAlwaysProcess(boolean value) {\n \n alwaysProcess_ = value;\n onChanged();\n return this;\n }", "public VMProcess() {\n\t\tsuper();\n\t}", "private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}", "public void setProcessPidValue(YangUInt32 processPidValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"process-pid\",\n processPidValue,\n childrenNames());\n }", "public void setPid(String pid) {\n this.pid = pid == null ? null : pid.trim();\n }", "@Override\n\t\t\tpublic void onProcess(int process) {\n\t\t\t}", "public void setParagraph(String paragraph){\r\n\t\tthis.paragraph = paragraph;\r\n\t}", "public final void setFoundServiceProcess(java.lang.Boolean foundserviceprocess)\r\n\t{\r\n\t\tsetFoundServiceProcess(getContext(), foundserviceprocess);\r\n\t}", "public void setDef(int def){\r\n this.def = def;\r\n }", "@Override\n public boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference pref) {\n final Bundle args = pref.getExtras();\n final Fragment fragment = getSupportFragmentManager().getFragmentFactory().instantiate(\n getClassLoader(),\n pref.getFragment());\n fragment.setArguments(args);\n fragment.setTargetFragment(caller, 0);\n // Replace the existing Fragment with the new Fragment\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.settings, fragment)\n .addToBackStack(null)\n .commit();\n setTitle(pref.getTitle());\n return true;\n }", "public void setProcessTable(ProcessQueue pQ)\n\t{\n\t\tprocessTable = pQ;\n\t}", "public static void setPostProcessTaskFactory(final IPostProcessTaskFactory factory) {\n\n m_PostProcessTaskFactory = factory;\n\n }", "@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t}", "protected void onPreExecute(){\n\t Utils.logThreadSignature(this.tag);\n\t pd = newPDinstance(0);\n\t pd.show();\n }", "private void setSmartpointProcess(ProcessRequest processRequest, InternalResultsResponse<Process> response)\r\n\t{\r\n\t\tProcess process = processRequest.getProcess();\r\n\r\n\t\tHashMap<String, Object> paramMap = new HashMap<String, Object>();\r\n\t\tparamMap.put(PROCESS_ID, process.getId());\r\n\t\tparamMap.put(PROCESS_RESULT, processRequest.getProcessItemStatusEnumValue());\r\n\t\tparamMap.put(FAILURE_ID, processRequest.getProcessStatusReasonEnumValue());\r\n\r\n\t\tList<ProcessItem> processItemFailureList = processRequest.getProcessItemFailureList();\r\n\t\tif (ValidationUtil.isNull(process.getProcessItems())\r\n\t\t\t\t&& !ValidationUtil.isNull(processRequest.getSearchLight()))\r\n\t\t{\r\n\t\t\tparamMap.put(PROCESS_ITEM_FAILURE_LIST, processItemFailureList);\r\n\r\n\t\t\tInquiryLightRequest lightRequest = createInquiryLightRequest(processRequest);\r\n\t\t\tparamMap.putAll(getParametersToFetchAllLights(lightRequest));\r\n\t\t\tdoInsert(getSqlSession(), INSERT_SMARTPOINT_PROCESS_DYNAMIC, paramMap, response);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Add the different process results\r\n\t\tinsertProcessItem(process.getProcessItems(), paramMap, response);\r\n\r\n\t\t// Add the different process results\r\n\t\tinsertProcessItem(processItemFailureList, paramMap, response);\r\n\t}", "protected void definitionStarted(String definitionName) {\n\t\tTypeDefinition definition = graphLayout\n\t\t\t\t.getTypeDefinition(definitionName);\n\t\tcurrentDefinition = definition;\n\t\tif (definition == null && isElementDefinition(definitionName)) {\n\t\t\tcurrentDefinition = new ElementDefinition(definitionName);\n\t\t\tgraphLayout.add(definition);\n\t\t}\n\t}", "public void setPROCESS_STATUS(Integer PROCESS_STATUS) {\n this.PROCESS_STATUS = PROCESS_STATUS;\n }", "public void setProcessHistoryID(java.lang.Long value) {\n __getInternalInterface().setFieldValue(PROCESSHISTORYID_PROP.get(), value);\n }", "@Test\n public void deleteProcessDefinition() throws Exception {\n final String userTaskName = \"step1\";\n final ProcessDefinition processDefinition = deployAndEnableSimpleProcess(\"myProcess\", userTaskName);\n\n // delete definition\n getProcessAPI().disableAndDeleteProcessDefinition(processDefinition.getId());\n\n final SearchOptionsBuilder optsBuilder = new SearchOptionsBuilder(0, 5);\n optsBuilder.sort(ProcessDeploymentInfoSearchDescriptor.DEPLOYMENT_DATE, Order.DESC);\n final SearchResult<ProcessDeploymentInfo> searchResult = getProcessAPI().searchProcessDeploymentInfos(optsBuilder.done());\n assertEquals(0, searchResult.getCount());\n assertTrue(searchResult.getResult().isEmpty());\n }", "public void setProcessHistoryID(java.lang.Long value) {\n __getInternalInterface().setFieldValue(PROCESSHISTORYID_PROP.get(), value);\n }", "public void setProcessing (boolean processing){\n\t\tthis.setProcessing (processing, ResourceSupplier.getString (ResourceClass.UI, \"controls\", \"processing\"));\n\t}", "public void setPort(int portNo) {\n if(port != portNo) {\n port = portNo;\n init();\n }\n }", "public void setProcessDt(Date processDt) {\n _processDt = processDt;\n }", "public void setStrProcessType(final String strProcessType) {\n this.strProcessType = strProcessType;\n }", "public void processDefinitionAttribute(String name, String value) {\n\t\tcurrentDefinition.setAttribute(name, value);\n\t}", "public Process() {\t// constructor with empty parameter\r\n\t\tthis.priority = -1;\t// int value will be -1\r\n \tthis.type = null;\t// String object initialized to null\r\n\t}", "public void setProductProcess(String productProcess) {\n this.productProcess = productProcess == null ? null : productProcess.trim();\n }", "@JsonProperty(\"processClass\")\r\n public void setProcessClass(String processClass) {\r\n this.processClass = processClass;\r\n }", "public void setProcessCallHeader(ElementHeader processCallHeader)\n {\n this.processCallHeader = processCallHeader;\n }", "public void set_is_fragment(boolean is_fragment) {\r\n\t\tis_fragment_ = is_fragment;\r\n\t}", "public void setKvPageProcessDTO(KVPageProcessDTO kvPageProcessDTO) {\n\t\tthis.kvPageProcessDTO = kvPageProcessDTO;\n\t}", "public Project_Create_Process() {\n initComponents();\n }", "public void setProcessData(String currentProcess,int maximumchars,\n int maximumtime) {\n resetProcessValues(); \n this.setProcessType(currentProcess);\n this.maximumchars=maximumchars;\n this.maximumtime=maximumtime; \n this.pbarProcess.setMaximum(maximumchars); \n this.pbarTime.setMaximum(maximumtime); \n this.pbarTime.setValue(maximumtime);\n this.currTimeProgressValue=maximumtime;\n this.lblDialogCaption.setText(currentProcess +\" PROGRESS \"); \n }", "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\tpublic void executeProcess(ProcessExecutionMode eMode)\n\t\tthrows ProcessException\n\t{\n\t\tif (rProcess != null)\n\t\t{\n\t\t\tList<RelationType<?>> rInteractionParams =\n\t\t\t\tgetInteractionParameters();\n\n\t\t\tCollection<RelationType<?>> rInputParams = getInputParameters();\n\n\t\t\trProcess.execute(eMode);\n\n\t\t\trInteractionParams.clear();\n\t\t\trInputParams.clear();\n\n\t\t\tif (rProcess.isFinished())\n\t\t\t{\n\t\t\t\tsetProcess(null);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tProcessStep rStep = rProcess.getInteractionStep();\n\n\t\t\t\tif (!(rStep instanceof FragmentInteraction) ||\n\t\t\t\t\t(((FragmentInteraction) rStep).getRootFragmentParam()\n\t\t\t\t\t .has(STRUCTURE_CHANGED)))\n\t\t\t\t{\n\t\t\t\t\tstructureModified();\n\t\t\t\t}\n\n\t\t\t\trInteractionParams.addAll(rStep.get(INTERACTION_PARAMS));\n\t\t\t\trInputParams.addAll(rStep.get(INPUT_PARAMS));\n\t\t\t}\n\t\t}\n\t}", "public ProcessModuleHandle(Vertx vertx, LaunchDescriptor desc, String id,\n Ports ports, int port, JsonObject config) {\n this.vertx = vertx;\n this.id = id;\n this.exec = desc.getExec();\n this.cmdlineStart = desc.getCmdlineStart();\n this.cmdlineStop = desc.getCmdlineStop();\n this.env = desc.getEnv();\n this.port = port;\n this.ports = ports;\n this.process = null;\n this.tcpPortWaiting = new TcpPortWaiting(vertx, id, \"localhost\", port);\n\n Integer maxIterations = Config.getSysConfInteger(ConfNames.DEPLOY_WAIT_ITERATIONS,\n desc.getWaitIterations(), config);\n if (maxIterations != null) {\n tcpPortWaiting.setMaxIterations(maxIterations);\n }\n }", "void instanceCreated(String pid, IDefinition definition);", "public void setProcessInstances(List<ProcessInstance> processInstances) {\r\n this.processInstances = processInstances;\r\n }", "@Override\r\n\tpublic void setFragment(FragmentManager fragmentManager) {\n\t\t\r\n\t}" ]
[ "0.6822337", "0.6273367", "0.5696657", "0.5659841", "0.5655446", "0.5534048", "0.55055845", "0.5409428", "0.53547746", "0.53077495", "0.5271821", "0.51951176", "0.51780957", "0.51453745", "0.5139885", "0.5111109", "0.50416034", "0.49967828", "0.49806777", "0.49545276", "0.49259013", "0.49233997", "0.49148786", "0.49094272", "0.4898597", "0.48541236", "0.48308456", "0.48304534", "0.4818682", "0.47738874", "0.47707483", "0.47503895", "0.4739781", "0.4709921", "0.47075072", "0.47062275", "0.4676805", "0.4676805", "0.4651967", "0.4628268", "0.4606723", "0.45995697", "0.4594459", "0.45939487", "0.45835394", "0.45822802", "0.45685", "0.45685", "0.45685", "0.45685", "0.45555896", "0.45531258", "0.45529068", "0.45316982", "0.45316982", "0.45251584", "0.45202383", "0.4518544", "0.44951305", "0.44926992", "0.44778204", "0.44699365", "0.44698563", "0.44617707", "0.44600686", "0.44546995", "0.44546103", "0.44484034", "0.44259125", "0.44196567", "0.44035417", "0.4402051", "0.44010305", "0.4399208", "0.4396584", "0.4393537", "0.43892512", "0.4388414", "0.43780667", "0.4375466", "0.43701765", "0.4354236", "0.43533716", "0.43367705", "0.4331258", "0.43247384", "0.43226835", "0.43193892", "0.43063536", "0.43018007", "0.4299697", "0.42901722", "0.42900085", "0.42831704", "0.42731276", "0.42720088", "0.4267252", "0.42605326", "0.4254902", "0.42547426" ]
0.43332815
84
Executes the process of this fragment with a particular execution mode.
@Override public void executeProcess(ProcessExecutionMode eMode) throws ProcessException { if (rProcess != null) { List<RelationType<?>> rInteractionParams = getInteractionParameters(); Collection<RelationType<?>> rInputParams = getInputParameters(); rProcess.execute(eMode); rInteractionParams.clear(); rInputParams.clear(); if (rProcess.isFinished()) { setProcess(null); } else { ProcessStep rStep = rProcess.getInteractionStep(); if (!(rStep instanceof FragmentInteraction) || (((FragmentInteraction) rStep).getRootFragmentParam() .has(STRUCTURE_CHANGED))) { structureModified(); } rInteractionParams.addAll(rStep.get(INTERACTION_PARAMS)); rInputParams.addAll(rStep.get(INPUT_PARAMS)); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void execute() {\n\t\t//execution handled by pid thread\n\t}", "public void exec();", "abstract void exec();", "@Override\n public abstract void runOpMode();", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\texecutable.feedbackExecutionProcessRunning();\r\n\t\t\t}", "public void execute() {\n\t\tlaunch();\n\t}", "public void execute() {\r\n\t\r\n\t}", "public void execute() {\n\t\t/* Create a new thread and kick it off */\n\t\tThread tempThread = new Thread(exec, \"ROSpec Executer\");\n\t\ttempThread.start();\n\t}", "public void execute(){\n\t\t\n\t}", "@Override\n public void execute(CommandSender sender, String[] args) {\n executeFragment(sender, args);\n }", "public void execute() {\n\n\t}", "public void execute() {\n\t\t\n\t}", "private void doExecute() throws MojoExecutionException {\n URL buildUrl;\n try {\n buildUrl = buildDirectory.toURI().toURL();\n getLog().info(\"build directory \" + buildUrl.toString());\n } catch (MalformedURLException e1) {\n throw new MojoExecutionException(\"Cannot build URL for build directory\");\n }\n ClassLoader loader = makeClassLoader();\n Properties properties = new Properties(project.getProperties());\n properties.setProperty(\"lenskit.eval.dataDir\", dataDir);\n properties.setProperty(\"lenskit.eval.analysisDir\", analysisDir);\n dumpClassLoader(loader);\n EvalConfigEngine engine = new EvalConfigEngine(loader, properties);\n \n try {\n File f = new File(script);\n getLog().info(\"Loading evalution script from \" + f.getPath());\n engine.execute(f);\n } catch (CommandException e) {\n throw new MojoExecutionException(\"Invalid evaluation script\", e);\n } catch (IOException e) {\n throw new MojoExecutionException(\"IO Exception on script\", e);\n }\n }", "void setRunMode(TaskRunMode runMode);", "protected void execute() {\n\t\t\n\t}", "@Override\n public void execute() {\n this.context.setToken(new Token(context.getLexemeType(), context.getLexemeBuffer().toString()));\n this.context.getLexemeBuffer().setLength(0);\n if (command != null) {\n command.execute();\n }\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n\n\t}", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "public void executeNode (Node node) {\n if (node.isExecutable()) {\n // If the node is running, we wait for it to stop\n while(isNodeRunning(node.getId())){\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n // Then we launch the execution\n String code = node.getCode();\n\n Kernel k = kernels.get(node.getId());\n k.executeCode(code, node);\n }\n }", "public void execute() {\n }", "protected abstract void execute();", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void Execute() {\n\n }", "@Override\n public void execute() throws BuildException {\n if (!isValidOs()) {\n return;\n }\n\n checkConfiguration();\n runExec(prepareExec());\n }", "public abstract void runProcess();", "public abstract void execute();", "public abstract void execute();", "public abstract void execute();", "protected void execute() {}", "@Override\n public void Execute() {\n\n }", "public final void execute() {\n\t\tlog.debug(\"Execute was called\");\n\t\tfor (String mdl : executors.keySet()) {\n\t\t\tSubstructureExecutorI exe = executors.get(mdl);\n\t\t\texe.startStep(getStep(),\n\t\t\t\t\tMtxUtils.list2DoubleArray(displacementsMap.get(mdl)));\n\t\t}\n\t}", "protected void execute() {\n\t}", "public abstract void execute(GameEngine pGameEngine);", "void execute(Executable executable);", "@Override\n public void setMode(RunMode mode) {\n\n }", "protected void execute() {\n command.start();\n }", "protected void execute() {\r\n }", "@Override\n\tprotected void doExecute() throws InstructionExecutionException {\n\t\n\t}", "public void execute() {\n setExecuted(true);\n }", "public void execute(ProcessInstance processInstance, NMC context, Map<String, String> map) {\n\t}", "void execute(VirtualFrame frame);", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void executeVmCommand() {\n }", "@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}", "@SuppressWarnings(\"squid:S1181\")\n public RegionExecutionResult execute(FragmentInstance fragmentInstance) {\n try (SetThreadName threadName = new SetThreadName(fragmentInstance.getId().getFullId())) {\n RegionExecutionResult resp = new RegionExecutionResult();\n // FI with queryExecutor will be executed directly\n FragmentInstanceInfo info =\n fragmentInstanceManager.execDataQueryFragmentInstance(\n fragmentInstance, VirtualDataRegion.getInstance());\n resp.setAccepted(!info.getState().isFailed());\n resp.setMessage(info.getMessage());\n return resp;\n } catch (Throwable t) {\n LOGGER.error(\"Execute FragmentInstance in QueryExecutor failed.\", t);\n RegionExecutionResult resp = new RegionExecutionResult();\n resp.setAccepted(false);\n resp.setMessage(String.format(ERROR_MSG_FORMAT, t.getMessage()));\n return resp;\n }\n }", "@Override\n protected void execute() {\n\n SwingUtils.invokeLaterEDT(new Runnable() {\n /**\n * Show the application frame using EDT\n */\n @Override\n public void run() {\n logger.debug(\"OImaging.execute() handler called.\");\n\n // reset IRModelManager to fire an IRMODEL changed event to all registered listeners:\n IRModelManager.getInstance().start();\n\n // headless mode:\n final JFrame appFrame = App.getExistingFrame();\n if (appFrame != null) {\n appFrame.setVisible(true);\n }\n }\n });\n }", "protected void execute()\n\t{\n\t}", "public void execute() {\n // empty\n }", "@Override\n\tpublic void execute() {\n\t\tthisOS.open();\n\t\t\n\t}", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "@Override\n\tpublic void execute() {\n\t\t\n\t}", "void execute()\n\t{\n\t\tVM.top++;\n\t\tVM.opStack[VM.top] = arg();\n\t\tVM.pc++;\n\t}", "public void execute() {\n execute0();\n }", "abstract protected void execute();", "public boolean execute();", "@Override\r\n\tpublic void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n }", "@Override\n\tfinal public void execute(IContext context) {\n\t\tsuper.execute(context);\n\t}", "protected void execute()\n {\n }", "abstract public void execute(FunctionContext context) throws Exception;", "@Override\n public void execute(RuntimeStep exe, RuntimePlan plan) {\n }", "public void execute(){\n\n }", "public abstract boolean execute(Condition condition, Map<String, String> executionParameterMap, Grant grant);", "protected void execute() {\n\n\n \n }", "public void exec(OxProgram pgm) {\n }", "public void run() {\r\n // Execute the program\r\n int index = 0;\r\n\r\n while (index < operations.size()) {\r\n Operation o = operations.get(index);\r\n index = o.execute(index, stack, symbolTable);\r\n }\r\n }", "abstract /*package*/ IValue executeRVMProgram(String moduleName, String uid_main, IValue[] posArgs, Map<String,IValue> kwArgs);", "protected void execute() {\n \t// literally still do nothing\n }", "public final void run() {\n final long contextID = Nodex.instance.getContextID();\n Runnable runner = new Runnable() {\n public void run() {\n try {\n final T result = execute();\n NodexInternal.instance.executeOnContext(contextID, new Runnable() {\n public void run() {\n completionHandler.onEvent(new Completion(result));\n }\n });\n } catch (final Exception e) {\n NodexInternal.instance.executeOnContext(contextID, new Runnable() {\n public void run() {\n completionHandler.onEvent(new Completion(e));\n }\n });\n } catch (Throwable t) {\n //Not much we can do, just log it\n t.printStackTrace(System.err);\n }\n }\n };\n\n NodexInternal.instance.executeInBackground(runner);\n }", "public abstract void execute(VirtualMachine vm);", "public void execute() throws AeBusinessProcessException;", "@Override\r\n\tprotected void execute() {\r\n\t}", "public void exec(PyObject code) {\n }", "@Override\n\tpublic void execute(ByteBuffer buff) {\n\t\t\n\t}" ]
[ "0.58059853", "0.5706344", "0.5641559", "0.55206764", "0.5515768", "0.5454901", "0.54458934", "0.5419348", "0.53844076", "0.5377101", "0.53672916", "0.5364186", "0.5347427", "0.5330815", "0.52937275", "0.52759135", "0.52650034", "0.52650034", "0.52637684", "0.52531797", "0.52531797", "0.52531797", "0.52531797", "0.5250571", "0.52503514", "0.52464044", "0.52371883", "0.5234664", "0.5234664", "0.5234664", "0.5231702", "0.52250445", "0.5224947", "0.52231514", "0.52231514", "0.52231514", "0.52218777", "0.5218365", "0.52012515", "0.51975375", "0.51933", "0.51913434", "0.51594913", "0.51564896", "0.51352173", "0.5128771", "0.5126771", "0.512404", "0.51223725", "0.51142097", "0.51142097", "0.51142097", "0.51142097", "0.51142097", "0.51142097", "0.51142097", "0.51142097", "0.51142097", "0.51142097", "0.51142097", "0.51142097", "0.5107783", "0.5093494", "0.50916076", "0.5079179", "0.5054185", "0.50352895", "0.50247425", "0.5017685", "0.5017685", "0.5017685", "0.5017685", "0.5017685", "0.5017685", "0.5017685", "0.5005835", "0.50003564", "0.49995315", "0.4995962", "0.49930918", "0.49892655", "0.49892655", "0.49772656", "0.4976309", "0.4975855", "0.49732393", "0.49727917", "0.49694103", "0.4966201", "0.49518627", "0.49376422", "0.4932648", "0.49248764", "0.49240363", "0.4921779", "0.49217007", "0.49210113", "0.49104947", "0.490707", "0.49038067" ]
0.656922
0
Returns the current fragment process. This will only return a value after the fragment has been initialized.
public final Process getFragmentProcess() { return rProcess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Process getProcess() {\n return process;\n }", "public ProcessInstance getCurrentProcessInstance() {\r\n return currentProcessInstance;\r\n }", "public static Process getProcess() {\r\n return (m_Proc);\r\n }", "public Fragment getCurrentFragment()\n {\n return getFragmentInContainer(R.id.fragmentFrameContainer);\n }", "public Process getProcess() {\n \t\treturn process;\n \t}", "public d getCurrentBaseFragment() {\n Fragment findFragmentById = getFragmentManager().findFragmentById(16908290);\n if (findFragmentById == null || !(findFragmentById instanceof d)) {\n return null;\n }\n return (d) findFragmentById;\n }", "public Process getProcess() {\n\t\treturn process;\n\t}", "@Nullable\n public BaseFragment getCurrentMainFragment() {\n return (BaseFragment) getSupportFragmentManager().findFragmentByTag(MAIN_FRAGMENT_TAG);\n }", "public String getFragment() {\n\t\treturn fragment;\n\t}", "public BaseFragment getCurrentFragment() {\n return (BaseFragment) getSupportFragmentManager().findFragmentById(R.id.mFrameContainer);\n }", "public Process getCurrent(){\n\t\tProcess p = currentProcess;\n\t\tcurrentProcess = null;\n\t\tgui.setIoActive(null);\n\t\treturn p;\n\t}", "public Process getProcess()\n {\n return proc;\n }", "public Fragment getFragment() {\n return fragment;\n }", "public int get_process_number() {\n\t\treturn process_number;\n\t}", "public Process getProcess(){\n\t\treturn p;\n\t}", "Process getProcess() {\n return process;\n }", "public boolean getFragment()\n\t{\n\t\treturn mFragment;\n\t}", "public int processIdOfActiveWindow()\r\n\t{\n\t\treturn 0;\r\n\t}", "public Process getProcess() {\n return this.process;\n }", "public String getFragment() {\n return m_fragment;\n }", "public final int getProcessId() {\n\t\treturn this.processId;\n\t}", "public PDDeviceNProcess getProcess() {\n/* 93 */ COSDictionary process = (COSDictionary)this.dictionary.getDictionaryObject(COSName.PROCESS);\n/* 94 */ if (process == null)\n/* */ {\n/* 96 */ return null;\n/* */ }\n/* 98 */ return new PDDeviceNProcess(process);\n/* */ }", "protected String getProcessId() {\n return getClass().getName();\n }", "public static final int getProcessId() {\n\t\treturn ID;\n\t}", "public native int getProcess();", "public String getProcessID()\n {\n return processID;\n }", "public int getFragmentPlace()\r\n {\r\n int id = R.id.left_pane_body;\r\n if (DisplayUtils.hasCentralPane(this))\r\n {\r\n id = R.id.central_pane_body;\r\n }\r\n return id;\r\n }", "public com.sforce.soap.enterprise.sobject.ProcessDefinition getProcessDefinition() {\n return processDefinition;\n }", "public String getProcessId()\r\n\t{\r\n\t\treturn processId;\r\n\t}", "public final int getProcessId() {\n \treturn m_pid;\n }", "Execution getProcessInstance();", "public ServiceProcess getProcess() {\n\t\treturn this.process;\n\t}", "private String getActiveFragmentTag() {\n List<Fragment> fragments = getSupportFragmentManager().getFragments();\n\n if (fragments == null) {\n return null;\n }\n\n for (Fragment fragment : fragments) {\n if (fragment.isVisible()) {\n return fragment.getTag();\n }\n }\n\n return null;\n }", "public java.lang.String getProcessId() {\n return processId;\n }", "public java.lang.String getProcessId() {\n return processId;\n }", "public abstract Process getProcess();", "public int mo2142B() {\n if (this.f12261b == -1) {\n Log.e(\"UI_OPERATION\", \"missing fragment container id\", m16892a());\n System.exit(0);\n }\n return this.f12261b;\n }", "public long getProcessID() {\n return processID;\n }", "public static final String getProcessValue() {\n\t\treturn VALUE;\n\t}", "Process getProcess();", "public java.lang.String getProcessId() {\n return processId;\n }", "public java.lang.String getProcessId() {\n return processId;\n }", "public String getProcessCode() {\n \tif (isProcessDocumentNotNull()) {\n \t\treturn getProcessDocument().getDocCode();\n \t}\n\t\treturn processCode;\n\t}", "public int getCurrentTabId() {\n\t\treturn viewPager.getCurrentItem();\n\t}", "public String getFragmentPath() {\n return fragmentPath;\n }", "public int currentChunkNum() {\n\t\treturn cp.chunk().getChunkNum();\n\t}", "@VisibleForTesting\n public FragmentActivity getFragmentActivity() {\n return PanelFragment.this.getActivity();\n }", "public ContextInstance getContextInstance() {\n\t\treturn token.getProcessInstance().getContextInstance();\r\n\t}", "public static UpdaterFragment getInstance(){\n return current;\n }", "public String getProcessName() {\n return processName;\n }", "public boolean is_fragment() {\r\n\t\treturn is_fragment_;\r\n\t}", "public int getProcID() {\n\t\treturn procID;\n\t}", "public abstract int getFragmentView();", "static public RenderingContext getCurrentInstance()\r\n {\r\n return _CURRENT_CONTEXT.get();\r\n }", "public static final String getProcessName() {\n\t\treturn NAME;\n\t}", "public int mo2141A() {\n if (this.f12262c == -1) {\n Log.e(\"UI_OPERATION\", \"missing fragment fullscreen container id\", m16892a());\n System.exit(0);\n }\n return this.f12262c;\n }", "int getMinorFragmentId();", "public abstract int getFragmentLayout();", "String getProcessInstanceID();", "public Coordinates getProcedurePosition() {\r\n\t\tif (position == null) {\r\n\t\t\tCoordinates coord = this.getSensorCoordinates();\r\n\t\t\tposition = coord;\r\n\t\t}\r\n\t\treturn position;\r\n\t}", "public Integer processInfoId() {\n return this.processInfoId;\n }", "public Integer getBp_sp() {\r\n return bp_sp;\r\n }", "java.lang.String getProcessId();", "public String getCurrentStage() {\n return getProperty(Property.CURRENT_STAGE);\n }", "public abstract Fragment getFragment();", "public java.lang.String getProcessDefinitionId() {\n return processDefinitionId;\n }", "public static Fragment Instance() {\n\t\t\n\t\treturn new GCourtInfoDetailsFragment();\n\t}", "private ISuspendableSchedulableProcess currentStep() {\n if (!processQ_NonInterruptable.isEmpty()) {\r\n return processQ_NonInterruptable.peek();\r\n } else {\r\n return processQ_Interruptable.peek();\r\n }\r\n }", "public String getReviewProcess() {\n\t\tString t = doc.get(\"reviewprocess\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "public int getCurrentTabPosition() {\n return mCurrentPosition;\n }", "public int getCurrentStage() {\n return currentStage;\n }", "public String getFragMode() {\n return fragMode;\n }", "public ProcessInfo getResult()\n\t{\n\t\treturn m_pi;\n\t}", "public String getPar() {\n\t\treturn par;\n\t}", "@Override\n\tpublic String getCurrentFragmentName() {\n\t\treturn \"IncomeFragment\";\n\t}", "public ProgramFragment getFragment(String treeName, Address addr);", "public abstract long getProcessID();", "public int getCurrentPosition() {\n\t\treturn currentPosition;\n\t}", "private GraphFragment getGraphFragment() {\n String tag = this.getString(R.string.fragment_graph_tag);\n Fragment fragment = this.getSupportFragmentManager().findFragmentByTag(tag);\n\n if(fragment == null)\n return null;\n\n return (GraphFragment) fragment;\n }", "public Part getPart() {\n if ( isZombie( part ) ) {\n Part part = segment.getDefaultPart();\n getCommander().requestLockOn( part );\n return part;\n } else {\n return part;\n }\n }", "public String getSequence() {\r\n return mySequenceFragment;\r\n }", "int getMajorFragmentId();", "public java.lang.String getPID() {\r\n return localPID;\r\n }", "public Object currentEvent() {\n\t\treturn processingState.currentEvent();\n\t}", "public boolean hasProcessId() {\n return fieldSetFlags()[8];\n }", "private EditBuildInfoFragment findInfoFragment() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\treturn (EditBuildInfoFragment) fm.findFragmentByTag(FragmentUtils.makeFragmentName(mPager.getId(), 0));\n\t}", "public int getCurrentIndex() {\n\t\treturn mCurrentSegment;\n\t}", "public String getPROG_REF() {\r\n return PROG_REF;\r\n }", "public int getActualCurrentPosition() {\r\n int position = getCurrentPosition();\r\n return transformToActualPosition(position);\r\n }", "public int getCurrentNumber()\r\n\t{\r\n\t\treturn currentNumber;\r\n\t}", "protected String getCurrentCode() {\n IDocument doc = EditorUtilities.getDocument(editor);\n if (doc != null) {\n return doc.get();\n }\n return null;\n }", "private static String m29548a(Context context) {\n ActivityManager activityManager = (ActivityManager) context.getSystemService(\"activity\");\n int myPid = Process.myPid();\n for (RunningAppProcessInfo runningAppProcessInfo : activityManager.getRunningAppProcesses()) {\n if (runningAppProcessInfo.pid == myPid) {\n return runningAppProcessInfo.processName;\n }\n }\n return null;\n }", "public final FragmentActivity getFragmentActivity() {\n android.support.v4.app.FragmentActivity activity = getActivity();\n if (activity != null && activity instanceof FragmentActivity) {\n return (FragmentActivity) activity;\n }\n\n return null;\n }", "private Fragment getLast() {\n Fragment last;\n switch (lastFragment) {\n case \"userHomeFragment\":\n last = userHomeFragment;\n break;\n case \"scheduleFragment\":\n last = scheduleFragment;\n break;\n case \"medicineFragment\":\n last = medicineFragment;\n break;\n default:\n last = calendarFragment;\n }\n return last;\n }", "public ProgramFragment getFragment(String treeName, String name);", "public Position getCurrentPosition() {\n return this.currentPosition;\n }", "public int getExecutionInstance() {\n return executionInstance;\n }" ]
[ "0.6510548", "0.6400761", "0.6397299", "0.6367165", "0.6315605", "0.62928677", "0.62759805", "0.6273655", "0.62177134", "0.6166278", "0.60876393", "0.60636175", "0.6043433", "0.6034886", "0.59939873", "0.5901022", "0.58858156", "0.5880191", "0.58688986", "0.58543175", "0.5829235", "0.5774911", "0.57430106", "0.5739692", "0.5738671", "0.57317793", "0.5731296", "0.5726679", "0.5715277", "0.57144195", "0.57031095", "0.56859815", "0.56827444", "0.56818044", "0.56818044", "0.56761014", "0.5674436", "0.5672228", "0.56650007", "0.56606144", "0.56563455", "0.56563455", "0.5589508", "0.5543795", "0.5535302", "0.55191493", "0.549622", "0.5459621", "0.5458198", "0.5430841", "0.5411012", "0.54056287", "0.53968143", "0.5380375", "0.53750217", "0.53669065", "0.536637", "0.53618646", "0.53569996", "0.53457624", "0.53303176", "0.5326292", "0.5311253", "0.53106236", "0.53074926", "0.5296391", "0.5290861", "0.5286069", "0.5280211", "0.5273635", "0.5273635", "0.5273635", "0.5266753", "0.5264931", "0.52480525", "0.52425075", "0.5237579", "0.5227612", "0.52205634", "0.5212918", "0.51878494", "0.51862085", "0.5172621", "0.5171803", "0.5171234", "0.5165561", "0.51651007", "0.5146272", "0.5140208", "0.5138437", "0.5123529", "0.5115351", "0.51140267", "0.5109046", "0.51024157", "0.50993514", "0.5094894", "0.5090508", "0.50900424", "0.50870043" ]
0.83368546
0
Sets a new process for this instance.
protected void setProcess(Process rNewProcess) { rProcess = rNewProcess; fragmentParam().annotate(PROCESS, rProcess); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void setProcessID(long pid);", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setProcessId(java.lang.String value) {\n validate(fields()[18], value);\n this.processId = value;\n fieldSetFlags()[18] = true;\n return this;\n }", "public void setProcess(ServiceProcess process) {\n\t\tthis.process = process;\n\t}", "private void setProcessId(int value) {\n\t\tthis.processId = value;\n\t}", "public final void setProcessId(int pid) {\n \tif ( getOpenCount() == 0)\n \t\tm_pid = pid;\n }", "public void startProcess() {\r\n\t\tprocess = true;\r\n\t}", "public Process() {\n\t\tthis(null);\n\t}", "public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setProcessId(java.lang.String value) {\n validate(fields()[8], value);\n this.processId = value;\n fieldSetFlags()[8] = true;\n return this;\n }", "public void setProcessId(String processId)\r\n\t{\r\n\t\tthis.processId = processId;\r\n\t}", "public void setProcessPidValue(String processPidValue) throws JNCException {\n setProcessPidValue(new YangUInt32(processPidValue));\n }", "public void setProcessName(String processName) {\n this.processName = processName;\n }", "public void setPid(Integer pid) {\n this.pid = pid;\n }", "public void setPid(Integer pid) {\n this.pid = pid;\n }", "public void setPid(Integer pid) {\n this.pid = pid;\n }", "public void setPid(Integer pid) {\n this.pid = pid;\n }", "public SetPCProcess()\n {\n super(\"SetPC\");\n }", "@Test\n void setPid() {\n assertEquals(3, new Process() {{\n setPid(3);\n }}.getPid());\n }", "protected void setServiceProcess(ServiceProcess serviceProcess) {\n\t\tthis.serviceProcess = serviceProcess;\n\t}", "public void setPid(String pid) {\r\n this.pid = pid;\r\n }", "public void addProcessPid() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"process-pid\",\n null,\n childrenNames());\n }", "public void setProcessPidValue(long processPidValue) throws JNCException {\n setProcessPidValue(new YangUInt32(processPidValue));\n }", "public void setProvProcessId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/prov_process_id\",v);\n\t\t_ProvProcessId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t}", "public void setPid(Long pid) {\n this.pid = pid;\n }", "public void setPid(Long pid) {\n this.pid = pid;\n }", "MaximaProcess makeProcess() {\r\n \t\treturn new MaximaProcess(processBuilder, processConfig);\r\n \t}", "public void setProcID(int newID) {\n\t\tprocID = newID;\n\t}", "@Override\n\tpublic void setPID(int pid) {\n\t\tthis.pID = pid;\n\t\t\n\t}", "public void markProcessPidCreate() throws JNCException {\n markLeafCreate(\"processPid\");\n }", "public void markProcessPidReplace() throws JNCException {\n markLeafReplace(\"processPid\");\n }", "public void setProcessPidValue(YangUInt32 processPidValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"process-pid\",\n processPidValue,\n childrenNames());\n }", "private void startProcess() {\r\n \t\tstartCount++;\r\n \t\tString threadName = Thread.currentThread().getName() + \"-starter-\" + startCount;\r\n \t\tThread starter = new Thread(threadName) {\r\n \t\t\t@Override\r\n \t\t\tpublic void run() {\r\n \t\t\t\tstartupThrotle.acquireUninterruptibly();\r\n \t\t\t\tlong startTime = System.currentTimeMillis();\r\n \t\t\t\tMaximaProcess mp = makeProcess();\r\n \t\t\t\tstartupTimeHistory.add(System.currentTimeMillis() - startTime);\r\n \t\t\t\tmp.deactivate();\r\n \t\t\t\tpool.add(mp);\r\n \t\t\t\tstartupThrotle.release();\r\n \t\t\t}\r\n \t\t};\r\n \t\tstarter.start();\r\n \t}", "public void setObjProcess(final T objProcess) {\n this.objProcess = objProcess;\n }", "public final void setServiceProcess(java.lang.String serviceprocess)\r\n\t{\r\n\t\tsetServiceProcess(getContext(), serviceprocess);\r\n\t}", "@JsonProperty(\"processClass\")\r\n @JacksonXmlProperty(localName = \"process_class\", isAttribute = true)\r\n public void setProcessClass(String processClass) {\r\n this.processClass = processClass;\r\n }", "public void setNumToProcess(long aNumToProcess) {\n numToProcess = aNumToProcess;\n }", "public void addProcess(Process4 p)\n\t{\n\t\tif(currentProcess == null)\n\t\t{\n\t\t\tcurrentProcess = p;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tProcesses.enqueue(p);\n\t\t}\n\t}", "private void setSmartpointProcess(ProcessRequest processRequest, InternalResultsResponse<Process> response)\r\n\t{\r\n\t\tProcess process = processRequest.getProcess();\r\n\r\n\t\tHashMap<String, Object> paramMap = new HashMap<String, Object>();\r\n\t\tparamMap.put(PROCESS_ID, process.getId());\r\n\t\tparamMap.put(PROCESS_RESULT, processRequest.getProcessItemStatusEnumValue());\r\n\t\tparamMap.put(FAILURE_ID, processRequest.getProcessStatusReasonEnumValue());\r\n\r\n\t\tList<ProcessItem> processItemFailureList = processRequest.getProcessItemFailureList();\r\n\t\tif (ValidationUtil.isNull(process.getProcessItems())\r\n\t\t\t\t&& !ValidationUtil.isNull(processRequest.getSearchLight()))\r\n\t\t{\r\n\t\t\tparamMap.put(PROCESS_ITEM_FAILURE_LIST, processItemFailureList);\r\n\r\n\t\t\tInquiryLightRequest lightRequest = createInquiryLightRequest(processRequest);\r\n\t\t\tparamMap.putAll(getParametersToFetchAllLights(lightRequest));\r\n\t\t\tdoInsert(getSqlSession(), INSERT_SMARTPOINT_PROCESS_DYNAMIC, paramMap, response);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Add the different process results\r\n\t\tinsertProcessItem(process.getProcessItems(), paramMap, response);\r\n\r\n\t\t// Add the different process results\r\n\t\tinsertProcessItem(processItemFailureList, paramMap, response);\r\n\t}", "public PackageProcess(PackageProcess other) {\n __isset_bitfield = other.__isset_bitfield;\n if (other.isSetProcessName()) {\n this.processName = other.processName;\n }\n this.processCount = other.processCount;\n this.uId = other.uId;\n this.sleeping = other.sleeping;\n this.foreground = other.foreground;\n this.foregroundTime = other.foregroundTime;\n this.launchCount = other.launchCount;\n this.importance = other.importance;\n this.crashCount = other.crashCount;\n this.lastStartSinceBoot = other.lastStartSinceBoot;\n this.lastStartTimestamp = other.lastStartTimestamp;\n }", "public static Process createEntity() {\n Process process = new Process()\n .name(DEFAULT_NAME)\n .isRunning(DEFAULT_IS_RUNNING)\n .createdAt(DEFAULT_CREATED_AT)\n .updatedAt(DEFAULT_UPDATED_AT);\n return process;\n }", "public final void setProcessType(slm.proxies.ProcessType processtype)\r\n\t{\r\n\t\tsetProcessType(getContext(), processtype);\r\n\t}", "public VMProcess() {\n\t\tsuper();\n\t}", "@Override\n public void setPresenter(ProcessContract.Presenter presenter) {\n if(presenter != null) this.processPresenter = presenter;\n else throw new RuntimeException(\"Process presenter can not be null\");\n }", "@Override\n\tpublic void setNumProcesses(int newNumProcesses) {\n\t\tif(getNumProcesses() != newNumProcesses) \n\t\t\tdecoratorProcessorNumberLabelMap.clear();\n\t\tsuper.setNumProcesses(newNumProcesses);\n\t}", "@JsonProperty(\"processClass\")\r\n public void setProcessClass(String processClass) {\r\n this.processClass = processClass;\r\n }", "protected Element setProcId(){\n\t\treturn el(\"bpws:copy\", new Node[]{\n\t\t\t\tel(\"bpws:from\", attr(\"expression\", \"abx:getProcessId()\")),\n\t\t\t\tel(\t\"bpws:to\", new Node[]{\n\t\t\t\t\t\tattr(\"variable\", VARNAME),\n\t\t\t\t\t\tattr(\"part\", \"part1\"),\n\t\t\t\t\t\tattr(\"query\", \"/nswomoxsd:receive/nswomoxsd:processId\")\n\t\t\t\t\t})\n\t\t});\n\t}", "public void setProcessDefinition(com.sforce.soap.enterprise.sobject.ProcessDefinition processDefinition) {\n this.processDefinition = processDefinition;\n }", "public final void setServiceProcess(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String serviceprocess)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.ServiceProcess.toString(), serviceprocess);\r\n\t}", "public final void setProcessType(com.mendix.systemwideinterfaces.core.IContext context, slm.proxies.ProcessType processtype)\r\n\t{\r\n\t\tif (processtype != null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.ProcessType.toString(), processtype.toString());\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.ProcessType.toString(), null);\r\n\t}", "Process createProcess();", "public void coreProcess(Process coreProcess) {\r\n this.coreProcess = coreProcess;\r\n }", "public void setPid(String pid) {\n\t\tthis.pid = pid == null ? null : pid.trim();\n\t}", "public void setPid(String pid) {\n this.pid = pid == null ? null : pid.trim();\n }", "public AsynchronousProcess(final Process process) {\n super();\n this.process = process;\n processWrapper = new PriTh(process, this);\n }", "public Process() {\n PC.MakeProcess();\n\n }", "@Override\n\tpublic void process() {\n\t\tport = Integer.parseInt(args);\n\t\tsuper.process();\n\t}", "public Process() {\t// constructor with empty parameter\r\n\t\tthis.priority = -1;\t// int value will be -1\r\n \tthis.type = null;\t// String object initialized to null\r\n\t}", "@Override\n\t\t\tpublic void onProcess(int process) {\n\t\t\t}", "protected void startProcess() {\n System.out.println(\"Process started\");\r\n }", "SAProcessInstanceBuilder createNewInstance(SProcessInstance processInstance);", "ProcessInstance startProcess(String processId, Map<String, Object> params);", "public abstract void initializeProcess();", "public void makeStandalone() {\n mCommonProcess = this;\n }", "public void unsetProcessPidValue() throws JNCException {\n delete(\"process-pid\");\n }", "public Builder setAlwaysProcess(boolean value) {\n \n alwaysProcess_ = value;\n onChanged();\n return this;\n }", "public PythonProcessManager(Ignite ignite) {\n this(new NativeProcessManager(ignite));\n }", "synchronized void addProcess(DpinProcess dp)\n{\n if (dp != null) process_set.put(dp.getId(),dp);\n notifyAll();\n}", "private void setParentProcess(List<Process> result)\r\n\t{\r\n\t\tif (ValidationUtil.isNullOrEmpty(result))\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// In case the Process has parent, get it too\r\n\t\tfor (Process process : result)\r\n\t\t{\r\n\t\t\tif (!ValidationUtil.isNull(process.getParentProcess())\r\n\t\t\t\t\t&& !ValidationUtil.isNullOrZero(process.getParentProcess().getId()))\r\n\t\t\t{\r\n\t\t\t\tprocess.setParentProcess(this.fetchProcessById(process.getParentProcess().getId()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract Process getProcess();", "public void setStrProcessType(final String strProcessType) {\n this.strProcessType = strProcessType;\n }", "public void setRegprocess(String regprocess) {\n this.regprocess = regprocess;\n }", "public void setPID(java.lang.String param) {\r\n localPIDTracker = param != null;\r\n\r\n this.localPID = param;\r\n }", "public VMProcess() \n\t{\n\t\tsuper();\n\t}", "public void setNode(String procId) {\r\n\t\tif (recordRoute) {\r\n\t\t\tsuper.setNode(procId); //Record route\r\n\t\t} else {\r\n\t\t\t//Just set the processing node.\r\n\t\t\tthis.procNode = procId;\r\n\t\t}\r\n\t}", "public void setPROCESS_STATUS(Integer PROCESS_STATUS) {\n this.PROCESS_STATUS = PROCESS_STATUS;\n }", "public void setProcessInstances(List<ProcessInstance> processInstances) {\r\n this.processInstances = processInstances;\r\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearProcessId() {\n processId = null;\n fieldSetFlags()[18] = false;\n return this;\n }", "public Process getProcess()\n {\n return proc;\n }", "public RafProcess persistRafProcess(RafProcess rafProcess);", "public int get_process_number() {\n\t\treturn process_number;\n\t}", "public Process getProcess(){\n\t\treturn p;\n\t}", "public myProcessInformation(myProcessInformation other) {\r\n if (other.isSetProcess_ID()) {\r\n this.Process_ID = other.Process_ID;\r\n }\r\n if (other.isSetProcess_Name()) {\r\n this.Process_Name = other.Process_Name;\r\n }\r\n }", "public Process getProcess() {\n return this.process;\n }", "public String getProcessID()\n {\n return processID;\n }", "public long getProcessID() {\n return processID;\n }", "public void setProcessstep(ItemI v) throws Exception{\n\t\t_Processstep =null;\n\t\ttry{\n\t\t\tif (v instanceof XFTItem)\n\t\t\t{\n\t\t\t\tgetItem().setChild(SCHEMA_ELEMENT_NAME + \"/processStep\",v,true);\n\t\t\t}else{\n\t\t\t\tgetItem().setChild(SCHEMA_ELEMENT_NAME + \"/processStep\",v.getItem(),true);\n\t\t\t}\n\t\t} catch (Exception e1) {logger.error(e1);throw e1;}\n\t}", "public void allocateNode(int processId){\n this.processId = processId;\n this.full = true;\n }", "public Process getProcess() {\n\t\treturn process;\n\t}", "public RemoteEndpt changePID(int pid) {\n return new RemoteEndpt(pid, this.host, this.port, this.name, this.isStateless);\n }", "public static UserProcess newUserProcess() {\n\treturn (UserProcess)Lib.constructObject(Machine.getProcessClassName());\n }", "Process getProcess() {\n return process;\n }", "public Process getProcess() {\n \t\treturn process;\n \t}", "public void setPId(String value) {\n setAttributeInternal(PID, value);\n }", "public void setProcessSync(java.lang.Boolean processSync) {\n this.processSync = processSync;\n }", "public boolean startProcess (Properties ctx, ProcessInfo pi, Trx trx);", "public final Process getProcess() {\n return process;\n }", "public ProcessManager(int maxProcesses) {\n\t\tthis.maxProcesses = maxProcesses;\n\t}", "public void setExecutable(String executable);", "public synchronized void setProcessingActivity(ProcessingActivity processingActivity){\n\t\tthis.processingActivity=processingActivity;\n\t}", "public void setProcesses(List<AProcess> processes) {\n this.processes = processes;\n }" ]
[ "0.6813171", "0.67959464", "0.6599846", "0.6571776", "0.64353365", "0.6330064", "0.6153082", "0.61124694", "0.6073844", "0.59952617", "0.58988386", "0.589805", "0.589805", "0.589805", "0.589805", "0.58923906", "0.58717614", "0.586088", "0.5837641", "0.58083516", "0.5800025", "0.5794096", "0.5707565", "0.5704212", "0.5704212", "0.5695762", "0.5668058", "0.5659968", "0.56517285", "0.56364703", "0.561063", "0.55991894", "0.55464655", "0.5487912", "0.5486587", "0.5483292", "0.5462471", "0.54622346", "0.5451018", "0.54495245", "0.5437369", "0.54353666", "0.5412337", "0.53871536", "0.5383669", "0.5362904", "0.53461736", "0.532256", "0.5310022", "0.5306399", "0.5295891", "0.5294422", "0.5271104", "0.526968", "0.52566826", "0.5254757", "0.5242685", "0.52374333", "0.52362794", "0.5230089", "0.5205328", "0.5175032", "0.5170265", "0.5164173", "0.5162041", "0.5137264", "0.5118629", "0.51174414", "0.51116973", "0.5104681", "0.51018655", "0.5097594", "0.50809234", "0.5062767", "0.5050569", "0.50478643", "0.5039715", "0.50287205", "0.50212395", "0.50194603", "0.5017955", "0.5016078", "0.5008991", "0.4990719", "0.49866015", "0.49790186", "0.49735752", "0.49681368", "0.49670786", "0.49658778", "0.49623537", "0.49613908", "0.49531716", "0.4948839", "0.49428213", "0.49312955", "0.49271438", "0.49245209", "0.49178487", "0.49135977" ]
0.7243902
0
Returns a configuration from the given collection of configurations that should be launched, or null to cancel. Default implementation opens a selection dialog that allows the user to choose one of the specified launch configurations. Returns the chosen configuration, or null if the user cancels.
protected ILaunchConfiguration chooseConfiguration(List<ILaunchConfiguration> configList) { IDebugModelPresentation labelProvider = DebugUITools.newDebugModelPresentation(); ElementListSelectionDialog dialog= new ElementListSelectionDialog(getShell(), labelProvider); dialog.setElements(configList.toArray()); dialog.setTitle("Choose an existing run configuration"); dialog.setMessage("Please choose one of these compatible run configurations."); dialog.setMultipleSelection(false); int result = dialog.open(); labelProvider.dispose(); if (result == Window.OK) { return (ILaunchConfiguration) dialog.getFirstResult(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected ILaunchConfigurationDialog getLaunchConfigurationDialog() {\n\t\treturn super.getLaunchConfigurationDialog();\n\t}", "public Configuration getActiveConfigurationFromGame(String game_title) {\n\n Configuration conf = new Configuration();\n\n for(Configuration c : configurations)\n if(c.getGame().getTitle().equals(game_title) && c.getSelected())\n conf = c;\n\n return conf;\n\n }", "public static AppDescriptor showDialog()\n {\n AppDescriptor app = null;\n \n synchronized( JoingApplicationChooser.class )\n {\n JoingApplicationChooser atp = new JoingApplicationChooser();\n \n if( org.joing.kernel.jvmm.RuntimeFactory.getPlatform().getDesktopManager().getRuntime().\n showAcceptCancelDialog( \"Select Application\", atp ) )\n {\n app = atp.getSelected();\n }\n }\n \n return app;\n }", "protected static ILaunchConfiguration findLaunchConfiguration(\n\t\t\tIProject phpProject, String phpPathString,\n\t\t\tString phpFileFullLocation, PHPexeItem defaultEXE, String mode,\n\t\t\tILaunchConfigurationType configType, IResource res) {\n\t\tILaunchConfiguration config = null;\n\n\t\ttry {\n\t\t\tILaunchConfiguration[] configs = DebugPlugin.getDefault()\n\t\t\t\t\t.getLaunchManager().getLaunchConfigurations(configType);\n\n\t\t\tint numConfigs = configs == null ? 0 : configs.length;\n\t\t\tfor (int i = 0; i < numConfigs; i++) {\n\t\t\t\tString fileName = configs[i].getAttribute(\n\t\t\t\t\t\tIPHPDebugConstants.ATTR_FILE, (String) null);\n\t\t\t\tString exeName = configs[i].getAttribute(\n\t\t\t\t\t\tIPHPDebugConstants.ATTR_EXECUTABLE_LOCATION,\n\t\t\t\t\t\t(String) null);\n\t\t\t\tString iniPath = configs[i].getAttribute(\n\t\t\t\t\t\tIPHPDebugConstants.ATTR_INI_LOCATION, (String) null);\n\t\t\t\tPHPexeItem item = PHPexes.getInstance().getItemForFile(exeName,\n\t\t\t\t\t\tiniPath);\n\n\t\t\t\tif (phpPathString.equals(fileName)/* && defaultEXE.equals(item) */) {\n\t\t\t\t\tconfig = configs[i];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (config == null) {\n\t\t\t\tconfig = createConfiguration(phpProject, phpPathString,\n\t\t\t\t\t\tphpFileFullLocation, defaultEXE, configType, res);\n\t\t\t}\n\t\t} catch (CoreException ce) {\n\t\t\tce.printStackTrace();\n\t\t}\n\t\treturn config;\n\t}", "LaunchingConnector findLaunchingConnector() {\n List<Connector> connectors = Bootstrap.virtualMachineManager().allConnectors();\n for (Connector connector : connectors) {\n if (connector.name().equals(\"com.sun.jdi.CommandLineLaunch\")) {\n return (LaunchingConnector) connector;\n }\n }\n throw new Error(\"No launching connector\");\n }", "public OptionEntry getSelectedOption() {\n for (Iterator it=getEntries().iterator();it.hasNext();) {\n OptionEntry o=(OptionEntry)it.next();\n if (o.getValue().getBoolean()==true) {\n return o;\n }\n }\n return null;\n\n }", "public Configuration parse() {\n final CommandLineParser parser = new BasicParser();\n final CommandLine cmd;\n\n try {\n cmd = parser.parse(options, args);\n\n if (cmd.hasOption(\"h\"))\n return help();\n\n if (cmd.hasOption(\"f\")) {\n return configurationFromFile(cmd.getOptionValue(\"f\"));\n } else if (cmd.hasOption(\"u\")) {\n return configurationFromUrl(cmd.getOptionValue(\"u\"));\n } else if (0 < args.length) {\n logback.warn(\"Unknown parameter: \" + args[0]);\n return help();\n } else {\n return configurationFromResource();\n }\n\n } catch (final ParseException e) {\n logback.error(\"Failed to parse command line properties\", e);\n return help();\n }\n }", "public Optional<Map.Entry<String, Object>> findConfig(final String name)\n\t{\n\t\tfor (Map.Entry<String, Object> param : getConfig().entrySet())\n\t\t{\n\t\t\tif (param.getKey().equals(name))\n\t\t\t{\n\t\t\t\treturn Optional.of(param);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn Optional.empty();\n\t}", "public C build() {\n if (configs.isEmpty()) {\n throw new RuntimeException(\"There should be at least one configuration provided\");\n }\n\n // Handling config files\n ConfigSource firstConfigSource = configs.get(0);\n Config firstConfigOrig = getConfigSupplier(firstConfigSource).getConfig();\n if (!(supportedConfig.isInstance(firstConfigOrig))) {\n throw new RuntimeException(\n String.format(\n \"Config is not of parameterized type %s, got instead %s\",\n supportedConfig.getName(), firstConfigOrig.getClass().getName()));\n }\n C firstConfig = (C) firstConfigOrig;\n for (int i = 1; i < configs.size(); ++i) {\n ConfigSource nextConfigSource = configs.get(i);\n Config nextConfig = getConfigSupplier(nextConfigSource).getConfig();\n try {\n firstConfig = copyProperties(firstConfig, nextConfig);\n } catch (Exception ex) {\n throw new RuntimeException(\n String.format(\"Failed to merge config %s into main config\", nextConfigSource), ex);\n }\n }\n\n // Handling string pathValue pairs config overrides\n for (Pair<String, Object> pathValue : pathValueOverrides) {\n try {\n PropertyUtils.setNestedProperty(firstConfig, pathValue.getValue0(), pathValue.getValue1());\n } catch (Exception e) {\n throw new RuntimeException(\n String.format(\n \"Cannot override property %s with value %s\",\n pathValue.getValue0(), pathValue.getValue1()),\n e);\n }\n }\n\n return firstConfig;\n }", "public AppConfigurationEntry[] getAppConfigurationEntry(String name) {\n if (name.equals(CONFIGNAME)) {\n return driverConf;\n }\n else {\n if (null != current)\n return current.getAppConfigurationEntry(name);\n else\n return null;\n }\n }", "C getConfiguration();", "public Set<Configuration> getSelected() {\n\t\treturn selected;\n\t}", "@Override\n public Object execute(ExecutionEvent event) {\n\n final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();\n final Object source = HandlerUtil.getCurrentSelection(event);\n\n // System.err.println(\"Event source = \"+source.toString()+\"\\n class = \"+source.getClass().toString());\n if (!(source instanceof TreeSelection)) {// Ignore\n// System.err.println(\"Source is not an instance of TreeSelection\");\n return null;\n }\n TreeSelection selection = (TreeSelection) source;\n if (!(selection.getFirstElement() instanceof IProject)) {\n // Must be project\n// System.err.println(\"Selection.getFirstElement() is not an instance of org.eclipse.cdt.core.model.IProject\");\n return null;\n } \n IBinary[] results = LaunchParameterUtilities.searchForExecutable(selection.toArray());\n if (results.length < 1) {\n displayError(shell, \"Binary not found\\nPlease build target first\");\n return null;\n }\n IBinary bin = LaunchParameterUtilities.chooseBinary(shell, results);\n try {\n // May be cancelled so quietly check for null\n if (bin != null) {\n LaunchParameterUtilities.createLaunchConfig(shell, (IProject) selection.getFirstElement(), bin);\n }\n } catch (Exception e) {\n Activator.logError(\"Failed to launch program\", e);\n displayError(shell, e.getMessage());\n }\n return null;\n }", "public Map<String, Object> getSelectedConfiguration() {\n\t\treturn loader.<TemplateController>getController().getSelectedConfiguration();\n\t}", "private EGLConfig chooseConfigInternal(EGL10 egl, EGLDisplay display) {\n int[] num_config = new int[1];\n if (!egl.eglChooseConfig(display, mAttribList, null, 0, num_config)) {\n throw new IllegalArgumentException(\"eglChooseConfig failed\");\n }\n\n int numConfigs = num_config[0];\n\n if (numConfigs <= 0) {\n throw new IllegalArgumentException(\"No matching configs found\");\n }\n\n /* Get the matching configs */\n EGLConfig[] configs = new EGLConfig[numConfigs];\n if (!egl.eglChooseConfig(display, mAttribList, configs, numConfigs,\n num_config))\n {\n throw new IllegalArgumentException(\"eglChooseConfig#2 failed\");\n }\n\n /* Find the best matching config. */\n int bestScore = Integer.MIN_VALUE;\n EGLConfig bestConfig = configs[0];\n\n for (EGLConfig config : configs) {\n GLVisualConfig vc = new GLVisualConfig();\n vc.red = findConfigAttrib(egl, display, config,\n EGL10.EGL_RED_SIZE, 0);\n vc.green = findConfigAttrib(egl, display, config,\n EGL10.EGL_GREEN_SIZE, 0);\n vc.blue = findConfigAttrib(egl, display, config,\n EGL10.EGL_BLUE_SIZE, 0);\n vc.alpha = findConfigAttrib(egl, display, config,\n EGL10.EGL_ALPHA_SIZE, 0);\n vc.depth = findConfigAttrib(egl, display, config,\n EGL10.EGL_DEPTH_SIZE, 0);\n vc.stencil = findConfigAttrib(egl, display, config,\n EGL10.EGL_STENCIL_SIZE, 0);\n vc.buffer = findConfigAttrib(egl, display, config,\n EGL10.EGL_BUFFER_SIZE, 0);\n\n int score = Glmark2Native.scoreConfig(vc, mTargetConfig);\n\n if (score > bestScore) {\n bestScore = score;\n bestConfig = config;\n }\n }\n\n return bestConfig;\n }", "public abstract Optional<FileConfiguration> getConfiguration(String name);", "protected T getConfigurationByCommandline() {\n\t\t\n\t\tT result = null;\n\t\t\n\t\tString[] args = this.commandLineArguments; \n\t\t\n\t\tif (args == null) {\n\t\t\tthrow new NullPointerException(\"Command line arguments have not been set in factory!\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tresult = (T) CliFactory.parseArguments(\n\t\t\t\tthis.configurationInterface, args\n\t\t\t);\n\t\t} catch (ArgumentValidationException e) {\n\t\t\tthrow new ConfigurationException(e.getMessage());\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public static FileResult showOpenFileDialog() {\n\t\tJFileChooser chooser = new JFileChooser();\n\t\tchooser.setFileFilter(new FileFilter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic String getDescription() {\n\t\t\t\treturn \"Configuration files (.config)\";\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean accept(File f) {\n\t\t\t\treturn f.getName().endsWith(\".config\") && f.exists() && f.isFile() && f.canRead();\n\t\t\t}\n\t\t});\n\t\tboolean ok = JFileChooser.APPROVE_OPTION == chooser.showOpenDialog(null);\n\t\treturn new FileResult(chooser.getSelectedFile(), ok);\n\t}", "protected void selectSREFromConfig(ILaunchConfiguration config) {\n\t\tfinal SREConfigurationBlock blk = getSREConfigurationBlock();\n\t\tfinal boolean notify = blk.getNotify();\n\t\tfinal boolean changed;\n\t\ttry {\n\t\t\tblk.setNotify(false);\n\t\t\tif (this.accessor.getUseSystemSREFlag(config)) {\n\t\t\t\tchanged = blk.selectSystemWideSRE();\n\t\t\t} else if (this.accessor.getUseProjectSREFlag(config)) {\n\t\t\t\tchanged = blk.selectProjectSRE();\n\t\t\t} else {\n\t\t\t\tfinal String sreId = this.accessor.getSREId(config);\n\t\t\t\tfinal ISREInstall sre = SARLRuntime.getSREFromId(Strings.nullToEmpty(sreId));\n\t\t\t\tchanged = blk.selectSpecificSRE(sre);\n\t\t\t}\n\t\t} finally {\n\t\t\tblk.setNotify(notify);\n\t\t}\n\t\tif (changed) {\n\t\t\tupdateLaunchConfigurationDialog();\n\t\t}\n\t}", "protected abstract Optional<T> getSingleSelection();", "@Override\n public void widgetSelected(SelectionEvent e) {\n updateLaunchConfigurationDialog();\n }", "@Override\n public void widgetSelected(SelectionEvent e) {\n updateLaunchConfigurationDialog();\n }", "private void loadConfiguration(String table) {\n checkSave();\n Vector configNames = getConfigurations(table);\n System.out.println(\"Configurations: \"+configNames.size());\n for (int i=0; i<configNames.size(); i++) {\n System.out.println(configNames.elementAt(i));\n }\nSystem.out.println(\"pop up dialog\");\n ConfigurationSelectDialog csdialog = new ConfigurationSelectDialog(frame, \"load\", configNames);\n csdialog.pack();\n csdialog.setLocationRelativeTo(frame);\n csdialog.setVisible(true);\n\n if (csdialog.isDataValid()) {\n System.out.println(csdialog.getSelectedConfiguration()+\" chosen\");\n }\n\nSystem.out.println(\"dialog done\");\n configClose.setEnabled(true);\n\n // load the configuration from the database\n try {\n String s = \"SELECT * FROM \"+table+\" WHERE configName='\"+csdialog.getSelectedConfiguration()+\"'\";\n Connection con = DriverManager.getConnection(dbConnection, dbUser, dbPass);\n Statement stmt = con.createStatement();\n ResultSet rs = stmt.executeQuery(s);\n rs.next();\n config = new Configuration(rs.getString(1), rs.getString(2), rs.getInt(3), rs.getInt(4),\n rs.getInt(5), rs.getInt(6), rs.getInt(7), rs.getInt(8), rs.getInt(9), rs.getInt(10), rs.getInt(11), rs.getInt(12));\n rs.close();\n stmt.close();\n con.close();\n } catch (SQLException sqle) {\n System.out.println(\"SQLException: \"+sqle+\": error reading configuration\");\n return;\n }\n\n // AKD - load up motes from d/b table\n // motes = getMotes(config.getName()+\"Motes\");\n motes = getMotes(\"motelocation\");\nSystem.out.println(\"motes size: \"+motes.size());\n viewConfiguration(table);\n }", "public Optional<ConfigurationDescriptor> getConfiguration(String configurationId) throws IoTInventoryDataManagerException;", "public boolean configurationDialog() {\n String configurable = getDbProperties().getProperty(Constants.CONFIGURATION_DIALOG);\n return ACMConfiguration.getInstance().isShowConfiguration() ||\n (configurable != null && configurable.equalsIgnoreCase(\"true\"));\n }", "@Override\n\tprotected void updateLaunchConfigurationDialog() {\n\t\tsuper.updateLaunchConfigurationDialog();\n\t}", "public Single<LocalConfigModel> getActiveConfig() {\n\t\treturn getMap().flatMap(map -> map.rxGet(LOCAL_CONFIG_KEY).toSingle());\n\t}", "protected T getConfigurationByCascading() {\n\t\t\n\t\tList<T> configurationObjectList = new ArrayList<T>();\n\t\t\n\t\t// Add the configuration objects in the order they should override \n\t\t// each other. Command line options override property file information\n\t\t// which in turn override any default configuration objects that may\n\t\t// have been given.\n\t\t//\n\t\tconfigurationObjectList.add (getConfigurationByCommandline());\n\t\tconfigurationObjectList.addAll (getConfigurationByProperties(this.propertyFile));\n\t\tconfigurationObjectList.addAll (configurationObjects);\n\t\t\n\t\tInvocationHandler handler = new ConfigurationByCascading<T>(configurationObjectList);\n\n\t\t@SuppressWarnings(\"unchecked\")\t\t\n\t\tT configuration = (T)\n\t\t\tjava.lang.reflect.Proxy.newProxyInstance(\n\t\t\t\tthis.configurationInterface.getClassLoader(),\n\t\t\t\tnew Class[] { this.configurationInterface },\n\t\t\t\thandler\n\t\t);\n\n\t\treturn configuration;\n\t}", "public void testOpenJavaProgramLaunchConfigurationDialog2() {\n // warm run..depends on testOpenJavaProgramLaunchConfigurationDialog1 for cold start\n ILaunchConfiguration config = getLaunchConfiguration(\"Breakpoints\");\n IStructuredSelection selection = new StructuredSelection(config);\n openLCD(selection, fgIdentifier);\n }", "public AppDescriptor getSelected()\n {\n DefaultMutableTreeNode nodeSelected = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent();\n AppDescriptor appDesc = null;\n \n if( (nodeSelected != null) && (nodeSelected.getUserObject() instanceof AppDescriptor) )\n appDesc = (AppDescriptor) nodeSelected.getUserObject();\n \n return appDesc;\n }", "private ILaunch findLaunch() throws CoreException {\n ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();\n for (ILaunch launch : manager.getLaunches()) {\n\n // TODO: figure out a more correct way of doing this\n if ( launch.getLaunchMode().equals(ILaunchManager.DEBUG_MODE)\n && launch.getLaunchConfiguration() != null\n && launch.getLaunchConfiguration().getAttribute(\"launchable-adapter-id\", \"\")\n .equals(\"com.amazonaws.eclipse.wtp.elasticbeanstalk.launchableAdapter\")\n && launch.getLaunchConfiguration().getAttribute(\"module-artifact\", \"\")\n .contains(moduleToPublish.getName()) ) {\n return launch;\n }\n }\n return null;\n }", "protected Container completeConfigurationWindow() {\n\t\treturn null;\n\t}", "public void testOpenJavaProgramLaunchConfigurationDialog1() {\n // cold run\n ILaunchConfiguration config = getLaunchConfiguration(\"Breakpoints\");\n IStructuredSelection selection = new StructuredSelection(config);\n for (int i = 0; i < 100; i++) {\n openLCD(selection, fgIdentifier);\n }\n commitMeasurements();\n assertPerformance();\n }", "private WorkflowPlan choosePlan(Set<WorkflowPlan> evaluatedPlans) {\n WorkflowPlan plan = evaluatedPlans.iterator().next();\n return plan;\n }", "public static Project getProject() {\n if (ProjectList.size() == 0) {\n System.out.print(\"No Projects were found.\");\n return null;\n }\n\n System.out.print(\"\\nPlease enter the project number: \");\n int projNum = input.nextInt();\n input.nextLine();\n\n for (Project proj : ProjectList) {\n if (proj.projNum == projNum) {\n return proj;\n }\n }\n\n System.out.print(\"\\nProject was not found. Please try again.\");\n return getProject();\n }", "private Proposal getSelectedProposal() {\n\t\tif (isValid()) {\n\t\t\tint index = proposalTable.getSelectionIndex();\n\t\t\tif (proposalList == null || index < 0 || index >= getTableLength()) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tint proposalIndex = 0;\n\t\t\tfor (Proposal proposal : proposalList.getTopProposalList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn proposal;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t}\n\t\t\tfor (String provider : proposalList.getProviderList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t\tfor (Proposal proposal : proposalList.getProposals(provider)) {\n\t\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\t\treturn proposal;\n\t\t\t\t\t}\n\t\t\t\t\tproposalIndex++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();", "public synchronized OptionSet findOneOptSetByName(String name) {\n ArrayList<OptionSet> optionSets = this.getOptionSet();\n for (int i = 0; i < optionSets.size(); ++i) {\n if (name.equals(optionSets.get(i).getName())) {\n return optionSets.get(i);\n }\n }\n return null;\n }", "Option findOption(final String trigger);", "@Nullable\n\t\tpublic PlanCandidate chooseCandidate(PlanModel model, @Nullable Collection<String[]> avoidList) {\n\n\t\t\t// empty plan\n\t\t\tif (model.trips() == 0)\n\t\t\t\treturn null;\n\n\t\t\tboolean[] mask = new boolean[model.trips()];\n\n\t\t\tIntList options = new IntArrayList();\n\n\t\t\t// only select trips that are allowed to change\n\t\t\tfor (int i = 0; i < model.trips(); i++) {\n\t\t\t\tif (modes.contains(model.getTripMode(i))) {\n\t\t\t\t\toptions.add(i);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (avoidList != null) {\n\t\t\t\tString[] current = model.getCurrentModes();\n\n\t\t\t\tIntListIterator it = options.iterator();\n\n\t\t\t\touter:\n\t\t\t\twhile (it.hasNext()) {\n\t\t\t\t\tint idx = it.nextInt();\n\n\t\t\t\t\tfor (String m : modes) {\n\t\t\t\t\t\tcurrent[idx] = m;\n\t\t\t\t\t\tif (!avoidList.contains(current)) {\n\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// if at least one option is found, idx is not removed\n\t\t\t\t\tit.remove();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (options.isEmpty())\n\t\t\t\treturn null;\n\n\t\t\tint idx = options.getInt(rnd.nextInt(options.size()));\n\n\t\t\t// Set one trip to be modifiable\n\t\t\tmask[idx] = true;\n\n\t\t\tCollection<PlanCandidate> candidates = generator.generate(model, modes, mask);\n\n\t\t\t// Remove based on threshold\n\t\t\tif (pruner != null) {\n\n\t\t\t\tOptionalDouble max = candidates.stream().mapToDouble(PlanCandidate::getUtility).max();\n\t\t\t\tdouble t = pruner.tripThreshold(model, idx);\n\n\t\t\t\tif (max.isPresent() && t >= 0) {\n\t\t\t\t\tdouble threshold = max.getAsDouble() - t;\n\t\t\t\t\tcandidates.removeIf(c -> c.getUtility() < threshold);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove options that are the same as the current mode\n\t\t\tif (requireDifferentModes)\n\t\t\t\tcandidates.removeIf(c -> Objects.equals(c.getMode(idx), model.getTripMode(idx)));\n\n\t\t\t// Remove avoided combinations\n\t\t\tif (avoidList != null) {\n\t\t\t\tString[] current = model.getCurrentModes();\n\n\t\t\t\tcandidates.removeIf(c -> {\n\t\t\t\t\tcurrent[idx] = c.getMode(idx);\n\t\t\t\t\treturn avoidList.contains(current);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tPlanCandidate selected = selector.select(candidates);\n\n\t\t\tlog.debug(\"Candidates for person {} at trip {}: {} | selected {}\", model.getPerson(), idx, candidates, selected);\n\n\t\t\treturn selected;\n\t\t}", "public ThreadPoolChooser getThreadPoolChooser(String componentId);", "public InitOptionDialog(java.awt.Frame parent, ConfigurationOptions config_,boolean modal) {\n super(parent, modal);\n initComponents();\n this.config_ = config_;\n newConfig_ = new ConfigurationOptions();\n \n try {\n BeanUtils.copyProperties(newConfig_,this.config_);//copy the properties of config into newConfig_\n } catch (IllegalAccessException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n } catch (InvocationTargetException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n }\n\n //how to set the drop down menus\n String[] comboItems;\n comboItems= FovFilterConfig.segAlgNames_;\n DefaultComboBoxModel cdm=new DefaultComboBoxModel(comboItems);\n jComboBox_Counting_SelectAlg.setModel(cdm);\n \n comboItems = LocalAlgParam.methodValues;\n cdm=new DefaultComboBoxModel(comboItems);\n jComboBox_Counting_localMethod.setModel(cdm);\n\n //get the acquisition channel list\n comboItems = getAcqChannelList();\n cdm=new DefaultComboBoxModel(comboItems);\n jComboBox_camConf_Camera.setModel(cdm);\n jComboBox_camConf_Camera.setSelectedIndex(combo_camCurrent);\n reloadSettings();\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:58:16.364 -0500\", hash_original_method = \"597806537D1EB9D066DEDBB0F5CABF82\", hash_generated_method = \"F9B0B0EE8EEF022FEA46A5A148EC5EE1\")\n \n public boolean eglChooseConfig(EGLDisplay display, int[] attrib_list, EGLConfig[] configs, int config_size, int[] num_config){\n \taddTaint(display.getTaint());\n \taddTaint(attrib_list[0]);\n \taddTaint(configs[0].getTaint());\n \taddTaint(config_size);\n \taddTaint(num_config[0]);\n \treturn getTaintBoolean();\n }", "public Config getConfig();", "protected abstract String getCommandLine() throws ConfigException;", "private static File determineConfigurationFile(CommandLine optionLine)\n {\n String config = optionLine.getOptionValue(Environment.CONFIG); //$NON-NLS-1$\n if (StringUtils.isEmpty(config)) {\n return new File(ApplicationFactory.DEFAULT_CONFIGURATION_FILENAME); //$NON-NLS-1$\n }\n return new File(config);\n }", "public OutputConfigDialog(AppEditor theParent, ArrayList<OutputConfig> theConfigs, boolean allowNull) {\n\n\t\tsuper(theParent, WINDOW_TITLE, Dialog.ModalityType.APPLICATION_MODAL);\n\n\t\tdoSetup(theConfigs, true, allowNull);\n\t}", "public ThreadPoolChooser getThreadPoolChooser(int componentIndex);", "public LaunchKey parse(String[] args) {\n if (ArrayUtils.isEmpty(args) || StringUtils.isBlank(args[0])) {\n throw new RuntimeException(\"Missing path argument to Git project.\");\n }\n String target = args[0];\n boolean mergedOnly = true;\n Set<String> exclusions = new HashSet<>();\n\n String options = String.join(\" \", args).substring(target.length());\n\n if (options.contains(\"--mergedOnly\")) {\n Matcher matcher = MERGED_ONLY_REGEX.matcher(options);\n if (!matcher.matches()) {\n throw new RuntimeException(\"ERROR: Invalid 'mergedOnly' usage. Usage: --mergedOnly=<true|false>\");\n }\n mergedOnly = Boolean.parseBoolean(matcher.group(2));\n // Remove this from options\n options = options.replace(matcher.group(1), \"\");\n }\n\n if (options.contains(\"--exclude\")) {\n Matcher matcher = EXCLUDE_REGEX.matcher(options);\n if (!matcher.matches()) {\n throw new RuntimeException(\n \"ERROR: Invalid 'exclude' usage. Usage: --exclude=[<branch1>, <branch2>, ...]\");\n }\n exclusions = Arrays.stream(matcher.group(2).split(\",\"))\n .map(String::trim)\n .collect(Collectors.toSet());\n // Remove this from options\n options = options.replace(matcher.group(1), \"\");\n }\n\n if (StringUtils.isNotBlank(options)) {\n throw new RuntimeException(\"ERROR: Invalid arguments.\", new IllegalArgumentException(options.trim()));\n }\n return new LaunchKey(new Nuke(target, exclusions, mergedOnly), new BranchNuker());\n }", "private void getSelectedAndDisplayConfiguration(DisplayDetailMode mode) {\n\t\tInheritedComponentInstanceSelModelData modelData = grid.getSelectionModel().getSelectedItem();\n\t\tif (modelData != null) {\n\t\t\tInheritedComponentInstanceSelDTO dto = modelData.getDTO();\n\t\t\tif (DisplayDetailMode.DEPENDENCES.equals(mode)) {\n\t\t\t\ttryGetDependences(dto.getComponent().getId());\n\t\t\t} else if (DisplayDetailMode.CONFIGURATION.equals(mode)) {\n\t\t\t\ttryGetConfiguration(dto.getComponent().getId());\n\t\t\t}\n\t\t}\n\t}", "public ThConfig get( String survey ) \n {\n if ( survey == null || survey.length() == 0 ) return null;\n for ( ThConfig thconfig : mItems ) {\n // Log.v(\"ThManager\", \"ThConfig item >\" + thconfig.mName + \"<\" );\n if ( thconfig.mName.equals( survey ) ) return thconfig;\n }\n return null;\n }", "public static String menuSelection() throws ParseException {\n System.out.print(\"\\nWelcome to Poised!\");\n System.out.print(\"\\n1\\t-\\tAdd a new project\");\n System.out.print(\"\\n2\\t-\\tChange due date of a project\");\n System.out.print(\"\\n3\\t-\\tChange payment on project\");\n System.out.print(\"\\n4\\t-\\tUpdate contact details\");\n System.out.print(\"\\n5\\t-\\tFinalise a project\");\n System.out.print(\"\\nPlease make your selection: \");\n\n // User's selection determine which method should be called\n // If user's selection is '1', then user can create a new project\n int userSelection = input.nextInt();\n input.nextLine();\n if (userSelection == 1) {\n ProjectList.add(createProject());\n }\n\n // If user selection '2', then can amend the due date of the project\n else if (userSelection == 2) {\n Project selectedProj = getProject();\n if (selectedProj == null) {\n return menuSelection();\n }\n\n newDeadline(selectedProj);\n }\n\n // If user selects '3', then user can change the payment on the project\n else if (userSelection == 3) {\n Project selectedProj = getProject();\n if (selectedProj == null) {\n return menuSelection();\n }\n\n makePayment(selectedProj);\n }\n\n // If user selects '4', then user can update the details of either the\n // contractor, client or architect.\n else if (userSelection == 4) {\n Project selectedProj = getProject();\n if (selectedProj == null) {\n return menuSelection();\n }\n\n updateDetails(selectedProj);\n }\n\n // If user selects '5', then user can finalise the project\n else if (userSelection == 5) {\n Project selectedProj = getProject();\n if (selectedProj == null) {\n return menuSelection();\n }\n\n finalisation(selectedProj);\n }\n\n return menuSelection();\n }", "public Screen getScreenFromConf(Configuration configuration, String screenName) {\n\n ArrayList<Screen> screenArrayList = getScreensFromConf(configuration);\n //COSì SE NON TROVA SCREEN CON QUEL NOME RITORNA UNO SCREEN VUOTO\n Screen screen = new Screen();\n\n for(Screen s : screenArrayList) {\n if(s.getName().equals(screenName))\n screen = s;\n }\n\n return screen;\n\n }", "public static FkCascadeActionOptions get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tFkCascadeActionOptions result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static Optional<File> showFileChooserAndGetAbsPath() {\n FileChooser fileChooser = new FileChooser();\n File selected = fileChooser.showOpenDialog(new Stage());\n return Optional.ofNullable(selected);\n }", "@CheckForNull\n AbstractProject<?, ?> getJobByDisplayName(String displayName);", "public static InputSpecification getInputSpecification() {\n\t\t\n\t\tProperties configFile = new Properties();\n\t\tInputSpecification input = new InputSpecification();\n\t\t\n\t\ttry {\n \n // THESE CALLS MUST BE SUBSTITUTED WITH THE GUI VALUES\n\t\t\t\n\t\t\tconfigFile.load(Crawler.class.getClassLoader().getResourceAsStream(\"app.properties\"));\n\t\t\t\n\t\t\tString user_field = configFile.getProperty(\"USERNAME_FIELD\");\n\t\t\tString user_value = configFile.getProperty(\"USERNAME_VALUE\");\n\t\t\tString password_field = configFile.getProperty(\"PASSWORD_FIELD\");\n\t\t\tString password_value = configFile.getProperty(\"PASSWORD_VALUE\");\n\t\t\tString submit_field = configFile.getProperty(\"SUBMIT_FIELD\");\n\t\t\tString submit_text = configFile.getProperty(\"SUBMIT_TEXT\");\n\t\t\t\n\t\t\tForm loginForm = new Form();\n\t\t\tloginForm.field(user_field).setValue(user_value);\n\t\t\tloginForm.field(password_field).setValue(password_value);\n\t\t\tinput.setValuesInForm(loginForm).beforeClickElement(submit_field).withText(submit_text);\n\t\t\t\n\t\t\t/*\n\t\t\tString textarea_field = configFile.getProperty(\"TEXTAREA_FIELD\");\n\t\t\tString textarea_text = configFile.getProperty(\"TEXTAREA_VALUE\");\n\t\t\tString quickadd_field = configFile.getProperty(\"QUICKADD_FIELD\");\n\t\t\tString quickadd_text = configFile.getProperty(\"QUICKADD_TEXT\");\n\t\t\t\n\t\t\tForm textareaForm = new Form();\n\t\t\ttextareaForm.field(textarea_field).setValue(textarea_text);\n\t\t\tinput.setValuesInForm(textareaForm).beforeClickElement(quickadd_field).withText(quickadd_text);\n\t\t\t*/\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn input;\n\t}", "@Override\n public Configuration getConfiguration(Connection connection, Long configID) throws SQLException {\n PreparedStatement ps = null;\n try{\n String insertSQL = \"SELECT * FROM Configuration WHERE configurationID = ?;\";\n ps = connection.prepareStatement(insertSQL);\n ps.setLong(1, configID);\n ResultSet rs = ps.executeQuery();\n \n // Check if the result is empty\n if(!rs.isBeforeFirst()){\n return null;\n }\n \n Configuration configuration = new Configuration();\n rs.next();\n configuration.setConfigurationID(rs.getLong(\"configurationID\"));\n configuration.setDisplayName(rs.getString(\"displayName\"));\n configuration.setDefaultType(rs.getString(\"defaultType\"));\n configuration.setDefaultArg1(rs.getString(\"defaultArg1\"));\n configuration.setDefaultArg2(rs.getString(\"defaultArg2\"));\n \n return configuration;\n }\n catch(Exception ex){\n //ex.printStackTrace();\n System.out.println(\"Exception in ConfigurationDaoImpl.getConfiguration()\");\n if (ps != null && !ps.isClosed()){\n ps.close();\n }\n if (connection != null && !connection.isClosed()){\n connection.close();\n }\n \n return null;\n }\n }", "public static synchronized CatalogSettings getDefault() {\n if (instance == null) {\n instance = Lookup.getDefault().lookup(CatalogSettings.class);\n }\n return instance;\n }", "public SelectiveExecutionConfig getSelectiveExecutionConfig() {\n return this.selectiveExecutionConfig;\n }", "public interface ConfigureConfiguration {\n\n\t// A list of names of configuration files\n\t@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();\n\tboolean isConf();\n\t\n}", "Optional<Pairof<X, MultiSet<X>>> choose();", "public JButton getChooseConfigFileButton() {\n\t\treturn this.btnOpenFileConfig;\n\t}", "public static ConfigProvider getConfigurationProvider() {\n ConfigProvider configProvider = DataHolder.getInstance().getConfigProvider();\n if (configProvider == null) {\n if (DataHolder.getInstance().getBundleContext() != null) {\n throw new RuntimeException(\n \"Failed to populate HTTPMonitoringConfig Configuration. Config Provider is Null.\");\n }\n //Standalone mode\n String deploymentYamlPath = System.getProperty(DEPLOYMENT_YAML_SYS_PROPERTY);\n if (deploymentYamlPath == null || deploymentYamlPath.isEmpty()) {\n logger.info(\"System property '\" + DEPLOYMENT_YAML_SYS_PROPERTY +\n \"' is not set. Default deployment.yaml file will be used.\");\n deploymentYamlPath = DEPLOYMENT_YAML_FILE;\n try (InputStream configInputStream = AnalyticUtils.class.getClassLoader()\n .getResourceAsStream(DEPLOYMENT_YAML_FILE)) {\n if (configInputStream == null) {\n throw new RuntimeException(\"Couldn't find \" + deploymentYamlPath);\n }\n if (Files.notExists(Paths.get(deploymentYamlPath))) {\n Files.copy(configInputStream, Paths.get(deploymentYamlPath));\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Couldn't read configuration from file \" + deploymentYamlPath, e);\n }\n } else if (!Files.exists(Paths.get(deploymentYamlPath))) {\n throw new RuntimeException(\"Couldn't find \" + deploymentYamlPath);\n }\n\n try {\n configProvider = ConfigProviderFactory.getConfigProvider(Paths.get(deploymentYamlPath), null);\n DataHolder.getInstance().setConfigProvider(configProvider);\n } catch (ConfigurationException e) {\n throw new RuntimeException(\"Error loading deployment.yaml Configuration\", e);\n }\n }\n return configProvider;\n }", "protected Diagram getDiagramToOpen() {\n\t\t\t\tIGraphicalEditPart grahicalHostEditPart = (IGraphicalEditPart) getHost();\n\t\t\t\tEObject element = grahicalHostEditPart.resolveSemanticElement();\n\t\t\t\tList<Diagram> diagramL = MultiDiagramUtil\n\t\t\t\t\t\t.getDiagramsAssociatedToElement(element);\n\n\t\t\t\tif (diagramL.isEmpty()) {\n\t\t\t\t\treturn null;\n\t\t\t\t} else if (diagramL.size() == 1) {\n\t\t\t\t\treturn diagramL.get(0);\n\t\t\t\t}\n\n\t\t\t\tElementListSelectionDialog dialog = new ElementListSelectionDialog(\n\t\t\t\t\t\tPlatformUI.getWorkbench().getActiveWorkbenchWindow()\n\t\t\t\t\t\t\t\t.getShell(), new GeneralLabelProvider());\n\t\t\t\tdialog.setMessage(\"Select the diagram to be opened\");\n\t\t\t\tdialog.setTitle(\"Diagram selection\");\n\t\t\t\tdialog.setElements(diagramL.toArray());\n\t\t\t\tif (dialog.open() == Dialog.OK) {\n\t\t\t\t\treturn (Diagram) dialog.getFirstResult();\n\t\t\t\t}\n\n\t\t\t\treturn null;\n\t\t\t}", "public IProjectConfiguration getConfiguration()\n {\n return new ProjectConfiguration(mProject, mCheckConfigs, mFileSets, mFilters,\n mUseSimpleConfig);\n }", "public ArrayList<Screen> getScreensFromConf(Configuration c) {\n\n ArrayList<Screen> screenArrayList = new ArrayList<>();\n\n for(Screen s : screens)\n if(s.getConfiguration() == c)\n screenArrayList.add(s);\n\n return screenArrayList;\n\n }", "public Configuration getConfiguration(String gameName, String confName) {\n\n Configuration thisConf = new Configuration();\n\n for(Configuration conf : configurations) {\n\n if(conf.getGame().getTitle().equals(gameName) && conf.getConfName().equals(confName)) {\n thisConf = conf;\n }\n }\n\n return thisConf;\n }", "private Optional<Squadron> getSelected(final Nation nation) {\n Squadron selectedSquadron = null;\n\n if (selectedAvailableSquadron.get(nation) != null) {\n selectedSquadron = selectedAvailableSquadron.get(nation);\n } else if (selectedAirfieldSquadron.get(nation) != null) {\n selectedSquadron = selectedAirfieldSquadron.get(nation);\n }\n\n return Optional.ofNullable(selectedSquadron);\n }", "public WebScannerConfigurationDTO getSelectedWebScannerConfiguration() {\n\t\treturn selectedWebScannerConfiguration;\n\t}", "static String getOptionValue(String args[], String optionName, String defaultVal) {\n String argValue = \"\";\n try {\n int i = 0;\n String arg = \"\";\n boolean found = false;\n\n while (i < args.length) {\n arg = args[i++];\n\n if (arg.equals(optionName)) {\n if (i < args.length)\n argValue = args[i++];\n if (argValue.startsWith(\"-\") || argValue.equals(\"\")) {\n argValue = defaultVal;\n }\n found = true;\n }\n }\n\n if (!found) {\n argValue = defaultVal;\n }\n } catch (Exception e) {\n showError(\"getOptionValue\", e);\n }\n\n return argValue;\n }", "public LauncherPanel(String conffile) {\n initComponents();\n \n Properties props = new Properties();\n try {\n FileInputStream in = new FileInputStream( conffile );\n props.load(in);\n } catch (FileNotFoundException fe) {\n System.err.println(\"Missing \" + conffile + \" -file!\");\n System.exit(-1);\n } catch (IOException ie) {\n System.err.println(\"Reading \" + conffile + \" failed!\");\n System.exit(-1); \n } catch (Exception e) {\n System.err.println(\"Reading properties failed \\n\" + e);\n System.exit(-1);\n }\n \n timeout = Integer.parseInt(props.getProperty(\"timeout\", \"10000\"));\n jLabel1.setText(props.getProperty(\"title\", \"Application launcher\"));\n jLabel2.setText(props.getProperty(\"launch\", \"Launch applications\"));\n jLabel3.setText(props.getProperty(\"leagues\", \"Leagues\")); \n \n workingDir = new File(props.getProperty(\"workingdir\"));\n separator = props.getProperty(\"separator\");\n extension = props.getProperty(\"extension\");\n app1 = props.getProperty(\"app1\");\n app2 = props.getProperty(\"app2\");\n app3 = props.getProperty(\"app3\");\n app4 = props.getProperty(\"app4\");\n \n String app1name = props.getProperty(\"app1name\");\n String app2name = props.getProperty(\"app2name\");\n String app3name = props.getProperty(\"app3name\");\n String app4name = props.getProperty(\"app4name\");\n \n if(app1name != null) {\n jCheckBox1.setText(app1name);\n jCheckBox1.setSelected(true);\n }\n if(app2name != null) {\n jCheckBox2.setText(app2name);\n jCheckBox2.setSelected(true);\n }\n if(app3name != null) {\n jCheckBox3.setText(app3name);\n jCheckBox3.setSelected(true);\n }\n if(app4name != null) {\n jCheckBox4.setText(app4name);\n jCheckBox4.setSelected(true);\n }\n \n String league1 = props.getProperty(\"league1\");\n String league2 = props.getProperty(\"league2\");\n String league3 = props.getProperty(\"league3\");\n String league4 = props.getProperty(\"league4\");\n String league5 = props.getProperty(\"league5\");\n \n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { league1, league2, league3, league4, league5 }));\n jLabel4.setText(props.getProperty(\"startall\"));\n jButton1.setText(props.getProperty(\"confirm\"));\n }", "public Opt getOption(String[] names) {\n\t\tfor (Opt op : options) {\n\t\t\tfor (String name : names) {\n\t\t\t\tif (name.equals(op.getName())) {\n\t\t\t\t\treturn op;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public CmisConfigurationDTO getSelectedCmisConfiguration() {\n\t\treturn selectedCmisConfiguration;\n\t}", "String getOption();", "private void editConfiguration(String table) {\n checkSave();\n\n // get the existing configurations and allow a user to select one\n Vector configNames = getConfigurations(DEFAULT_DB_CONFIG_TABLE);\n if (configNames.size() == 0) {\n JOptionPane.showMessageDialog(frame, \"There are no configurations to load\", \"No Configurations Available\", JOptionPane.ERROR_MESSAGE);\n return;\n }\n System.out.println(\"Configurations: \"+configNames.size());\n for (int i=0; i<configNames.size(); i++) {\n System.out.println(configNames.elementAt(i));\n }\n ConfigurationSelectDialog csdialog = new ConfigurationSelectDialog(frame, \"edit\", configNames); \n csdialog.pack();\n csdialog.setLocationRelativeTo(frame);\n csdialog.setVisible(true);\n\n if (csdialog.isDataValid()) {\n System.out.println(csdialog.getSelectedConfiguration()+\" chosen\");\n }\n\n // load the selected configuration from the database\n try {\n String s = \"SELECT * FROM \"+table+\" WHERE configName='\"+csdialog.getSelectedConfiguration()+\"'\";\n Connection con = DriverManager.getConnection(dbConnection, dbUser, dbPass);\n Statement stmt = con.createStatement();\n ResultSet rs = stmt.executeQuery(s);\n rs.next();\n config = new Configuration(rs.getString(1), rs.getString(2), rs.getInt(3), rs.getInt(4),\n rs.getInt(5), rs.getInt(6), rs.getInt(7), rs.getInt(8), rs.getInt(9), rs.getInt(10), rs.getInt(11), rs.getInt(12));\n rs.close();\n stmt.close();\n con.close();\n } catch (SQLException sqle) {\n System.out.println(\"SQLException: \"+sqle+\": error reading configuration\");\n return;\n }\n\n config.setImageName(removeSlashes(config.getImageName()));\n\n // open a ConfigurationDialog to allow editing of the configuration\n ConfigurationDialog cdialog = new ConfigurationDialog(frame, EDIT, config, getConfigurations());\n cdialog.pack();\n cdialog.setLocationRelativeTo(frame);\n cdialog.setVisible(true);\n\n // if the data is valid, load an ImageDialog to allow registration of the image\n if (cdialog.isDataValid()) {\n System.out.println(\"config name: \"+config.getName());\n if (config.useBlankImage()) {\n System.out.println(\"blank image: \"+config.getImageHeight()+\" x \"+config.getImageWidth());\n }\n else {\n System.out.println(\"image name: \"+config.getImageName());\n config.setImageName(addSlashes(config.getImageName()));\n }\n\n ImageDialog idialog = new ImageDialog(frame, EDIT, config);\n\n idialog.pack();\n idialog.setLocationRelativeTo(frame);\n idialog.setVisible(true); \n\n // if the registration information is valid, call viewConfiguration\n if (idialog.isDataValid()) {\n System.out.println(\"minPixelX: \"+config.getMinimumPixelX());\n System.out.println(\"minPixelY: \"+config.getMinimumPixelY());\n System.out.println(\"maxPixelX: \"+config.getMaximumPixelX());\n System.out.println(\"maxPixelY: \"+config.getMaximumPixelY());\n System.out.println(\"minRealX: \"+config.getMinimumRealX());\n System.out.println(\"minRealY: \"+config.getMinimumRealY());\n System.out.println(\"maxRealX: \"+config.getMaximumRealX());\n System.out.println(\"maxRealY: \"+config.getMaximumRealY());\n config.notSaved();\n configSave.setEnabled(true);\n configClose.setEnabled(true);\n \n // AKD - load up motes from d/b table\n // motes = getMotes(config.getName()+\"Motes\");\n motes = getMotes(\"motelocation\");\n viewConfiguration(table);\n }\n }\n }", "java.util.concurrent.Future<ListConfigurationsResult> listConfigurationsAsync(ListConfigurationsRequest listConfigurationsRequest);", "String getOptionsOrDefault(\n String key,\n String defaultValue);", "String getOptionsOrDefault(\n String key,\n String defaultValue);", "String getOptionsOrDefault(\n String key,\n String defaultValue);", "private SimulationConfig getSimConfig(List<SimulationConfig> simulationConfigList, String key){\n logger.println(\"Looking for simconfig: '\" + key + \"'\");\n for (SimulationConfig simConf : simulationConfigList){\n logger.println(\"\\tfound simulation '\" + simConf.getSimulationName() + \"'\");\n if (simConf.getSimulationName().equals(key)){\n return simConf;\n }\n }\n logger.println(\"Did not find simulation config!\");\n return null;\n }", "@Override\n\tpublic ConfigurationParamsEntity queryConfigurationParamsOneByCode(\n\t\t\tString powerCode) {\n\t\treturn null;\n\t}", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "void askDefaultProduction();", "@java.lang.Override\n public com.google.protobuf.Any getConfiguration() {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }", "Optional<String> commandLine();", "public static JDialog findJFileChooserDialog() {\n return (JDialogOperator.\n findJDialog(new JFileChooserJDialogFinder(JemmyProperties.\n getCurrentOutput())));\n }", "public JComponent getConfigurationComponent()\r\n\t{\r\n\t\treturn null;\r\n\t}", "ViewCycleExecutionOptions getDefaultExecutionOptions();", "public abstract String getLaunchCommand();", "private static Configuration getConfig() {\n Configuration vgConfig = new Configuration();\n vgConfig.addBrowser(1200, 800, BrowserType.CHROME);\n vgConfig.addBrowser(1200, 800, BrowserType.FIREFOX);\n vgConfig.addBrowser(1200, 800, BrowserType.EDGE);\n vgConfig.addBrowser(1200, 800, BrowserType.SAFARI);\n vgConfig.addDeviceEmulation(DeviceName.iPhone_X, ScreenOrientation.PORTRAIT);\n return vgConfig;\n }", "public void setLaunchStrategy(LaunchStrategy strategy);", "@Override\n protected Configration doInBackground(String... params) {\n return TerminalDatabase.getInstance(ConfigrationActivity.this).daoAccess().fetchConfigration(\"1\");\n }", "private void newConfiguration() {\n checkSave();\n config = new Configuration();\n\n // create a ConfigurationDialog\n ConfigurationDialog cdialog = new ConfigurationDialog(frame, NEW, config, getConfigurations());\n cdialog.pack();\n cdialog.setLocationRelativeTo(frame);\n cdialog.setVisible(true);\n\n // if the data is valid, create an ImageDialog to allow registration of the image\n if (cdialog.isDataValid()) {\n System.out.println(\"config name: \"+config.getName());\n if (config.useBlankImage()) {\n System.out.println(\"blank image: \"+config.getImageHeight()+\" x \"+config.getImageWidth());\n }\n else {\n System.out.println(\"image name: \"+addSlashes(config.getImageName()));\n config.setImageName(addSlashes(config.getImageName()));\n }\n\n ImageDialog idialog = new ImageDialog(frame, NEW, config);\n idialog.pack();\n idialog.setLocationRelativeTo(frame);\n idialog.setVisible(true); \n\n // if the ImageDialog data is valid, create a blank motes object and calls viewConfiguration\n if (idialog.isDataValid()) {\n System.out.println(\"minPixelX: \"+config.getMinimumPixelX());\n System.out.println(\"minPixelY: \"+config.getMinimumPixelY());\n System.out.println(\"maxPixelX: \"+config.getMaximumPixelX());\n System.out.println(\"maxPixelY: \"+config.getMaximumPixelY());\n System.out.println(\"minRealX: \"+config.getMinimumRealX());\n System.out.println(\"minRealY: \"+config.getMinimumRealY());\n System.out.println(\"maxRealX: \"+config.getMaximumRealX());\n System.out.println(\"maxRealY: \"+config.getMaximumRealY());\n config.notSaved();\n configSave.setEnabled(true);\n configClose.setEnabled(true);\n motes = new Motes();\n viewConfiguration(DEFAULT_DB_CONFIG_TABLE);\n }\n else {\n config = new Configuration();\n }\n }\n }", "public GameConfig createDefaultConfig() {\n\n return null;\n }", "private Object displayOptionsPanel(String message, Object[] possibleValues) {\n return JOptionPane.showInputDialog(\n mainPanel, // parentComponent\n message, // message\n \"\", // title\n JOptionPane.QUESTION_MESSAGE, // messageType\n null, // icon\n possibleValues, // selectionValues\n possibleValues[0] // initialSelectionValue\n );\n }", "public ViewConfiguration invoke() {\n return ViewConfiguration.get(this.f64333a);\n }" ]
[ "0.58611417", "0.50355583", "0.49687615", "0.48998287", "0.48634055", "0.4855671", "0.48476207", "0.4800297", "0.4797554", "0.4793579", "0.47875404", "0.47778314", "0.46785823", "0.46596128", "0.46372527", "0.4624737", "0.4620648", "0.46036905", "0.45729515", "0.45546892", "0.45423985", "0.45423985", "0.45247623", "0.44690683", "0.44626454", "0.44441888", "0.44320643", "0.44070774", "0.43893874", "0.43822145", "0.435754", "0.43494806", "0.4342255", "0.43360204", "0.43216115", "0.43159372", "0.42584452", "0.42571366", "0.4246244", "0.42455372", "0.42437932", "0.4242378", "0.42352685", "0.42315423", "0.42309308", "0.4215387", "0.42117354", "0.41750136", "0.4171223", "0.4159683", "0.41446587", "0.41416425", "0.41297728", "0.41290456", "0.41230845", "0.4117783", "0.41150397", "0.410889", "0.40981328", "0.40931484", "0.40857887", "0.40736327", "0.40649477", "0.40645313", "0.40639135", "0.40582183", "0.40535772", "0.4035477", "0.40327013", "0.40299132", "0.40216395", "0.40181023", "0.4017972", "0.4017153", "0.40116608", "0.40083537", "0.40046686", "0.40045574", "0.40045574", "0.40045574", "0.40027666", "0.39982992", "0.39933163", "0.39933163", "0.39933163", "0.39933163", "0.3991051", "0.39848566", "0.3984349", "0.3982793", "0.39821997", "0.39624095", "0.3959944", "0.39534333", "0.3950246", "0.3942245", "0.39369833", "0.3930224", "0.39264145", "0.39199096" ]
0.75485057
0
Insert the method's description here. Creation date: (3.6.2002 12:35:54)
private javax.swing.JLabel getJLabelDivider() { if (JLabelDivider == null) { try { JLabelDivider = new javax.swing.JLabel(); JLabelTitle.setName("JLabelDivider"); JLabelDivider.setText(" "); } catch (Exception e) { e.printStackTrace(); } } return JLabelDivider; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_201() {}", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void mo21793R() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21785J() {\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 }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo115188a() {\n }", "public void mo21779D() {\n }", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21825b() {\n }", "public void mo21782G() {\n }", "public void mo21791P() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo4359a() {\n }", "public void mo97908d() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21880v() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo44053a() {\n }", "public void mo3749d() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21789N() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo115190b() {\n }", "public void mo56167c() {\n }", "public void method_115() {}", "public void method(){}", "public void mo6944a() {\n }", "public final void mo51373a() {\n }", "public void mo21780E() {\n }", "public void mo9848a() {\n }", "@Override\n\tpublic void einkaufen() {\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 int method() {\n\t\treturn 0;\n\t}", "public void mo21792Q() {\n }", "public void mo12930a() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n public void date()\n {\n }", "public void mo2471e() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21787L() {\n }", "public void mo9233aH() {\n }", "public void mo21784I() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void perish() {\n \n }", "public void mo5382o() {\n }", "public void mo1531a() {\n }", "public void method_202() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo9137b() {\n }", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void mo5248a() {\n }", "public void mo21786K() {\n }", "public void mo21781F() {\n }", "public Methods() {\n // what is this doing? -PMC\n }", "public void mo23813b() {\n }", "public void method_199() {}", "public void mo6081a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void m23075a() {\n }", "public void mo9241ay() {\n }", "public void method_206() {}", "public void mo1403c() {\n }", "public void mo97906c() {\n }", "public void mo21800a() {\n }", "public void method_191() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6931202", "0.67121685", "0.6685167", "0.6657641", "0.6624828", "0.6614524", "0.65921015", "0.6591633", "0.6583681", "0.65284485", "0.65284485", "0.65231097", "0.64996105", "0.64832205", "0.6474224", "0.6472025", "0.6472025", "0.6472025", "0.6472025", "0.6472025", "0.6472025", "0.6472025", "0.6469738", "0.64589465", "0.6457182", "0.64542997", "0.6443444", "0.6433741", "0.6428464", "0.6425155", "0.6424143", "0.6393319", "0.6386357", "0.6381994", "0.63565093", "0.63564205", "0.63550407", "0.6353286", "0.635015", "0.6347332", "0.63377583", "0.6337042", "0.6329338", "0.6320086", "0.63040084", "0.62799025", "0.6261873", "0.6255914", "0.62501365", "0.6244168", "0.62414867", "0.6240403", "0.623959", "0.6239093", "0.6239093", "0.62386703", "0.6238271", "0.623235", "0.6229758", "0.6219579", "0.62162226", "0.62038314", "0.61981934", "0.61882806", "0.6182623", "0.6177421", "0.61722225", "0.6170409", "0.61645275", "0.61617583", "0.6154003", "0.6153833", "0.61518544", "0.6149277", "0.6129119", "0.6127412", "0.61254835", "0.6121104", "0.6115566", "0.61100286", "0.6109002", "0.6103499", "0.608252", "0.60802686", "0.607622", "0.60649395", "0.6064241", "0.6060195", "0.6055955", "0.6047872", "0.6046501", "0.6039552", "0.6038594", "0.603804", "0.6037623", "0.6027688", "0.60227585", "0.6012221", "0.6003742", "0.5993629", "0.59885526" ]
0.0
-1
Insert the method's description here. Creation date: (3.6.2002 12:35:54)
private javax.swing.JLabel getJLabelTitle() { if (JLabelTitle == null) { try { JLabelTitle = new javax.swing.JLabel(); JLabelTitle.setName("JLabelTitle"); JLabelTitle.setFont(new java.awt.Font("dialog", 1, 18)); JLabelTitle.setText("License"); } catch (Exception e) { e.printStackTrace(); } } return JLabelTitle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_201() {}", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void mo21793R() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21785J() {\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 }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo115188a() {\n }", "public void mo21779D() {\n }", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21825b() {\n }", "public void mo21782G() {\n }", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo97908d() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21880v() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo44053a() {\n }", "public void mo3749d() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo115190b() {\n }", "public void mo56167c() {\n }", "public void method_115() {}", "public void method(){}", "public void mo6944a() {\n }", "public final void mo51373a() {\n }", "public void mo21780E() {\n }", "public void mo9848a() {\n }", "public void mo21792Q() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n public void date()\n {\n }", "public void mo2471e() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21787L() {\n }", "public void mo9233aH() {\n }", "public void mo21784I() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void perish() {\n \n }", "public void mo5382o() {\n }", "public void mo1531a() {\n }", "public void method_202() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo9137b() {\n }", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo5248a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void mo21781F() {\n }", "public Methods() {\n // what is this doing? -PMC\n }", "public void mo23813b() {\n }", "public void method_199() {}", "public void mo6081a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void m23075a() {\n }", "public void mo9241ay() {\n }", "public void method_206() {}", "public void mo1403c() {\n }", "public void mo97906c() {\n }", "public void mo21800a() {\n }", "public void method_191() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6930321", "0.6710956", "0.6685736", "0.6658572", "0.6625323", "0.6615651", "0.6593785", "0.6593373", "0.65846604", "0.6527997", "0.6527997", "0.6523859", "0.65010846", "0.64818954", "0.6475566", "0.64724845", "0.64724845", "0.64724845", "0.64724845", "0.64724845", "0.64724845", "0.64724845", "0.64691955", "0.645966", "0.6458984", "0.64540714", "0.64445156", "0.6435304", "0.6429569", "0.6424487", "0.64240056", "0.6394693", "0.6388275", "0.6380938", "0.63583404", "0.6356646", "0.63564765", "0.63516635", "0.63514215", "0.6349439", "0.63388985", "0.63378394", "0.63284504", "0.63217354", "0.63051844", "0.62813306", "0.6262622", "0.6256046", "0.6251099", "0.6244799", "0.6243108", "0.6241249", "0.62397385", "0.6239274", "0.6238006", "0.6238005", "0.6238005", "0.6233787", "0.62294024", "0.62216955", "0.62175125", "0.6203855", "0.61997265", "0.6190034", "0.61840576", "0.61762065", "0.6171827", "0.61695004", "0.6165927", "0.616293", "0.615433", "0.6153494", "0.6153064", "0.6151619", "0.61282355", "0.6126916", "0.6124747", "0.61210585", "0.6114704", "0.6109941", "0.61088437", "0.6105061", "0.608324", "0.60795015", "0.60771096", "0.6065446", "0.6064303", "0.60608226", "0.6055151", "0.6048146", "0.6045799", "0.6039639", "0.60393876", "0.6038712", "0.6037819", "0.60300225", "0.6023708", "0.60138136", "0.6003691", "0.59936893", "0.5987797" ]
0.0
-1
Insert the method's description here. Creation date: (3.6.2002 12:15:16)
private javax.swing.JPanel getJPanel1() { if (JPanel1 == null) { try { JPanel1 = new javax.swing.JPanel(); JPanel1.setLayout(new java.awt.GridBagLayout()); java.awt.GridBagConstraints constraintsJLabelTitle = new java.awt.GridBagConstraints(); constraintsJLabelTitle.gridx = 0; constraintsJLabelTitle.gridy = 0; constraintsJLabelTitle.anchor = java.awt.GridBagConstraints.WEST; constraintsJLabelTitle.insets = new java.awt.Insets(6, 6, 4, 4); getJPanel1().add(getJLabelTitle(), constraintsJLabelTitle); java.awt.GridBagConstraints constraintsJLabelDivider = new java.awt.GridBagConstraints(); constraintsJLabelDivider.gridx = 1; constraintsJLabelDivider.gridy = 0; constraintsJLabelDivider.fill = java.awt.GridBagConstraints.BOTH; constraintsJLabelDivider.weightx = 1.0; constraintsJLabelDivider.insets = new java.awt.Insets(4, 4, 4, 4); getJPanel1().add(getJLabelDivider(), constraintsJLabelDivider); } catch (Exception e) { e.printStackTrace(); } } return JPanel1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void method_4270() {}", "public void method_201() {}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void mo21793R() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo115188a() {\n }", "public void mo21785J() {\n }", "public void mo21779D() {\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 }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21825b() {\n }", "public void mo21782G() {\n }", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo97908d() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo4359a() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo21880v() {\n }", "public void mo44053a() {\n }", "public void mo21789N() {\n }", "public void mo21788M() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo56167c() {\n }", "public void method_115() {}", "@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}", "public void mo115190b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo6944a() {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21792Q() {\n }", "public void method(){}", "public void mo9848a() {\n }", "public void mo2471e() {\n }", "public final void mo51373a() {\n }", "public void mo12930a() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo1531a() {\n }", "public void method_202() {}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo21784I() {\n }", "public void mo21787L() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo1405e() {\n }", "public void mo9233aH() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo5382o() {\n }", "public void mo5248a() {\n }", "public void mo9137b() {\n }", "@Override\n public void date()\n {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21781F() {\n }", "public void mo21786K() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void method_206() {}", "@Override\n public void perish() {\n \n }", "public void mo23813b() {\n }", "public void m23075a() {\n }", "public Methods() {\n // what is this doing? -PMC\n }", "public void method_199() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo97906c() {\n }", "public void mo6081a() {\n }", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public void mo1403c() {\n }", "public void mo21800a() {\n }", "public void mo9241ay() {\n }", "@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}", "public void method_191() {}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "public void method_193() {}", "public void method_192() {}", "public void gored() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}" ]
[ "0.69687396", "0.6773778", "0.6767423", "0.6718319", "0.67063415", "0.6703684", "0.6675989", "0.66722476", "0.66561335", "0.6594926", "0.65936077", "0.6577663", "0.655768", "0.65560776", "0.65468585", "0.65468585", "0.65468585", "0.65468585", "0.65468585", "0.65468585", "0.65468585", "0.6538371", "0.6538371", "0.6535459", "0.65337557", "0.6510931", "0.65053785", "0.6501647", "0.6496999", "0.6495805", "0.648451", "0.64767253", "0.6461809", "0.64533144", "0.6441219", "0.6437172", "0.64234775", "0.6416067", "0.6409152", "0.640087", "0.63928586", "0.6389582", "0.63786125", "0.6373894", "0.6359326", "0.6345725", "0.6345324", "0.6343962", "0.6341912", "0.63355786", "0.63193107", "0.6317557", "0.6317413", "0.6306661", "0.6299303", "0.6294211", "0.628623", "0.6285463", "0.62795943", "0.62787294", "0.6277382", "0.6276983", "0.6269414", "0.6262591", "0.6262591", "0.626248", "0.62554544", "0.6243378", "0.62431854", "0.6232713", "0.6232318", "0.6225613", "0.62105715", "0.6209684", "0.6205884", "0.61958313", "0.61945844", "0.6194281", "0.61752295", "0.61733127", "0.61672986", "0.61612487", "0.6160569", "0.6149449", "0.6147251", "0.6143235", "0.6142093", "0.61371684", "0.6133225", "0.61304307", "0.6118257", "0.6117616", "0.61121553", "0.6111032", "0.611024", "0.61066616", "0.6095484", "0.6089887", "0.60819924", "0.607189", "0.60647845" ]
0.0
-1
Insert the method's description here. Creation date: (3.6.2002 12:15:16)
private javax.swing.JPanel getJPanel2() { if (JPanel2 == null) { try { JPanel2 = new javax.swing.JPanel(); JPanel2.setName("JPanel2"); JPanel2.setLayout(new java.awt.GridBagLayout()); java.awt.GridBagConstraints constraintsJScrollPaneLicense = new java.awt.GridBagConstraints(); constraintsJScrollPaneLicense.gridx = 0; constraintsJScrollPaneLicense.gridy = 0; constraintsJScrollPaneLicense.fill = java.awt.GridBagConstraints.BOTH; constraintsJScrollPaneLicense.weightx = 1.0; constraintsJScrollPaneLicense.weighty = 1.0; constraintsJScrollPaneLicense.insets = new java.awt.Insets(4, 12, 12, 12); getJPanel2().add(getJScrollPaneLicense(), constraintsJScrollPaneLicense); } catch (Exception e) { e.printStackTrace(); } } return JPanel2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void method_4270() {}", "public void method_201() {}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void mo21793R() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo115188a() {\n }", "public void mo21785J() {\n }", "public void mo21779D() {\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 }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21825b() {\n }", "public void mo21782G() {\n }", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo97908d() {\n }", "public void mo4359a() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo21880v() {\n }", "public void mo44053a() {\n }", "public void mo21789N() {\n }", "public void mo21788M() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo56167c() {\n }", "public void method_115() {}", "@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}", "public void mo115190b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo6944a() {\n }", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void method(){}", "public void mo9848a() {\n }", "public void mo2471e() {\n }", "public final void mo51373a() {\n }", "public void mo12930a() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo1531a() {\n }", "public void method_202() {}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo21784I() {\n }", "public void mo21787L() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo1405e() {\n }", "public void mo9233aH() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo5382o() {\n }", "public void mo9137b() {\n }", "public void mo5248a() {\n }", "@Override\n public void date()\n {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21781F() {\n }", "public void mo21786K() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void perish() {\n \n }", "public void method_206() {}", "public void mo23813b() {\n }", "public void m23075a() {\n }", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void method_199() {}", "@Override\n\tprotected void getExras() {\n\n\t}", "private stendhal() {\n\t}", "public void mo97906c() {\n }", "public void mo6081a() {\n }", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public void mo1403c() {\n }", "public void mo21800a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void mo9241ay() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void method_191() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "public void method_193() {}", "public void method_192() {}", "public void gored() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}" ]
[ "0.6970512", "0.6772593", "0.6766665", "0.6719611", "0.6705326", "0.67022926", "0.6674967", "0.66710013", "0.66550964", "0.6593988", "0.6592298", "0.6576346", "0.6556299", "0.6554904", "0.65458167", "0.65458167", "0.65458167", "0.65458167", "0.65458167", "0.65458167", "0.65458167", "0.6539138", "0.6539138", "0.6534513", "0.6532379", "0.6512164", "0.6504246", "0.6502408", "0.6496189", "0.64960134", "0.6483723", "0.64761585", "0.646254", "0.6453039", "0.6439738", "0.6435658", "0.6422219", "0.6414801", "0.6408003", "0.6399362", "0.6392217", "0.6389999", "0.6379514", "0.63730156", "0.63609195", "0.6345266", "0.6344505", "0.63444835", "0.6340655", "0.6336299", "0.6318489", "0.6317097", "0.6316481", "0.6305717", "0.6299919", "0.629493", "0.62848324", "0.6284589", "0.6281196", "0.62799", "0.6276593", "0.6275783", "0.62702847", "0.6263944", "0.6263944", "0.62612295", "0.6254331", "0.6243863", "0.6241727", "0.623178", "0.62314665", "0.622723", "0.62102765", "0.6208407", "0.62046194", "0.6196837", "0.61950654", "0.6194187", "0.61741126", "0.61719334", "0.6168061", "0.6161395", "0.61602056", "0.6148932", "0.6148378", "0.614232", "0.6141129", "0.61385757", "0.61314726", "0.61293775", "0.611883", "0.61177623", "0.6112697", "0.6110671", "0.6110484", "0.6106993", "0.6096803", "0.60899913", "0.60821885", "0.607134", "0.6064467" ]
0.0
-1
Insert the method's description here. Creation date: (3.6.2002 15:17:43)
private javax.swing.JScrollPane getJScrollPaneLicense() { if (JScrollPaneLicense == null) { try { JScrollPaneLicense = new javax.swing.JScrollPane(); JScrollPaneLicense.setName("JScrollPaneLicense"); getJScrollPaneLicense().setViewportView(getJTextAreaLicense()); } catch (Exception e) { e.printStackTrace(); } } return JScrollPaneLicense; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo21877s() {\n }", "public void method_201() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo38117a() {\n }", "public void mo21795T() {\n }", "public void mo21878t() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo21785J() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo21825b() {\n }", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "public void mo97908d() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21783H() {\n }", "public void mo21880v() {\n }", "public void mo44053a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo21789N() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public final void mo51373a() {\n }", "public void mo21792Q() {\n }", "public void mo21788M() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo56167c() {\n }", "public void mo21780E() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n public void perish() {\n \n }", "public void mo9848a() {\n }", "public void mo6944a() {\n }", "public void method_115() {}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void method(){}", "public void mo21787L() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo2471e() {\n }", "public void mo21784I() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo5382o() {\n }", "public void mo1531a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo21781F() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void method_202() {}", "public void mo9137b() {\n }", "public void mo21786K() {\n }", "public void mo9233aH() {\n }", "public void mo1405e() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo5248a() {\n }", "public void gored() {\n\t\t\n\t}", "public void m23075a() {\n }", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public void mo6081a() {\n }", "public void mo23813b() {\n }", "public void method_199() {}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo97906c() {\n }", "public void method_206() {}", "@Override\n public void date()\n {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}", "public void mo1403c() {\n }", "public void method_191() {}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}" ]
[ "0.702056", "0.68762654", "0.681369", "0.67127883", "0.67098755", "0.6705427", "0.6692751", "0.6668613", "0.6660739", "0.6660739", "0.66603744", "0.6657881", "0.665372", "0.66051334", "0.6602948", "0.65970355", "0.6595829", "0.6594153", "0.65614545", "0.65614545", "0.65614545", "0.65614545", "0.65614545", "0.65614545", "0.65614545", "0.6558923", "0.655779", "0.6556494", "0.6556311", "0.65552735", "0.65517884", "0.65209717", "0.65203214", "0.6497754", "0.64959466", "0.64824456", "0.6479862", "0.64641637", "0.6451739", "0.6443067", "0.6441655", "0.6441655", "0.6441334", "0.6438322", "0.6438238", "0.6408889", "0.64080375", "0.64061385", "0.6389737", "0.6388715", "0.6386464", "0.63853556", "0.6373427", "0.6373171", "0.63711333", "0.63645256", "0.6358683", "0.6349683", "0.6346289", "0.63424456", "0.6336546", "0.63267255", "0.63188064", "0.6312082", "0.63083357", "0.63055545", "0.63024926", "0.62927544", "0.6284635", "0.6283166", "0.62808543", "0.62713015", "0.62676686", "0.6264621", "0.62638277", "0.6255158", "0.62457484", "0.62421006", "0.6232159", "0.62306076", "0.6223833", "0.62191904", "0.6212147", "0.6206034", "0.6201144", "0.6196249", "0.6184472", "0.6181457", "0.6175674", "0.61684936", "0.61633", "0.6161582", "0.61544305", "0.61454296", "0.61433417", "0.6141511", "0.6139647", "0.6139368", "0.613854", "0.6130853", "0.611361" ]
0.0
-1
Insert the method's description here. Creation date: (3.6.2002 15:17:43)
private javax.swing.JTextArea getJTextAreaLicense() { if (JTextAreaLicense == null) { try { JTextAreaLicense = new javax.swing.JTextArea(); JTextAreaLicense.setName("JTextAreaLicense"); JTextAreaLicense.setLineWrap(true); JTextAreaLicense.setWrapStyleWord(true); JTextAreaLicense.setFont(new java.awt.Font("monospaced", 0, 12)); JTextAreaLicense.setBounds(0, 0, 160, 120); JTextAreaLicense.setMargin(new java.awt.Insets(1, 3, 1, 3)); JTextAreaLicense.setEditable(false); } catch (Exception e) { e.printStackTrace(); } } return JTextAreaLicense; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo21877s() {\n }", "public void method_201() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo38117a() {\n }", "public void mo21795T() {\n }", "public void mo21878t() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo21785J() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo21825b() {\n }", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "public void mo97908d() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21783H() {\n }", "public void mo21880v() {\n }", "public void mo44053a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo21789N() {\n }", "public void mo3749d() {\n }", "public void mo3376r() {\n }", "public void mo115190b() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public final void mo51373a() {\n }", "public void mo21792Q() {\n }", "public void mo21788M() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo56167c() {\n }", "@Override\n public void memoria() {\n \n }", "public void mo21780E() {\n }", "@Override\n public void perish() {\n \n }", "public void mo9848a() {\n }", "public void mo6944a() {\n }", "public void method_115() {}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void method(){}", "public void mo21787L() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo2471e() {\n }", "public void mo21784I() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo5382o() {\n }", "public void mo1531a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo21781F() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void method_202() {}", "public void mo9137b() {\n }", "public void mo21786K() {\n }", "public void mo9233aH() {\n }", "public void mo1405e() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo5248a() {\n }", "public void gored() {\n\t\t\n\t}", "public void m23075a() {\n }", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public void mo6081a() {\n }", "public void mo23813b() {\n }", "public void method_199() {}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo97906c() {\n }", "public void method_206() {}", "@Override\n public void date()\n {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}", "public void method_191() {}", "public void mo1403c() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}" ]
[ "0.7022065", "0.68762755", "0.6812942", "0.67109495", "0.67108935", "0.67042774", "0.6691749", "0.66683745", "0.666081", "0.666081", "0.6658609", "0.66569555", "0.66524404", "0.66039205", "0.6601634", "0.65964544", "0.6594326", "0.659317", "0.6559885", "0.6559885", "0.6559885", "0.6559885", "0.6559885", "0.6559885", "0.6559885", "0.65577096", "0.6557439", "0.655688", "0.6555095", "0.655391", "0.65505904", "0.651958", "0.651957", "0.64981055", "0.64951783", "0.648158", "0.64794093", "0.6463522", "0.64500284", "0.6441885", "0.6440605", "0.6440605", "0.6439941", "0.6437047", "0.6437023", "0.6407542", "0.6406727", "0.6404173", "0.63883895", "0.6387777", "0.638491", "0.6383988", "0.63722706", "0.63717973", "0.6369346", "0.6362794", "0.6357486", "0.6350506", "0.63463527", "0.63403976", "0.6335652", "0.6328031", "0.6317473", "0.6310654", "0.6308397", "0.630424", "0.6301343", "0.6294756", "0.62834173", "0.62818146", "0.62789327", "0.6269192", "0.6266824", "0.6264032", "0.6262533", "0.62546116", "0.6246861", "0.62411195", "0.6230503", "0.6230364", "0.6222382", "0.62177134", "0.62112767", "0.6204572", "0.61995584", "0.61977935", "0.61825114", "0.61802846", "0.6175175", "0.61689496", "0.6163612", "0.6158968", "0.61529684", "0.61457646", "0.61440635", "0.6141708", "0.6139129", "0.61386174", "0.6137724", "0.61311376", "0.6113332" ]
0.0
-1
Metodo para realizar las acciones del evento
@Override public void actionPerformed(ActionEvent e) { switch (e.getActionCommand()) { case ABRIR_NOTICIAS: wdwNoticias w = new wdwNoticias(gln); w.setVisible(true); this.dispose(); break; case ABRIR_CLASIFICACION: wdwClasificacion c = new wdwClasificacion(gln); c.setVisible(true); this.dispose(); break; case ABRIR_JORNADA: wdwJornadas wj=new wdwJornadas(gln); wj.setVisible(true); this.dispose(); break; case INSERTAR_JUGADOR: wdwJugador j = new wdwJugador(gln); j.setVisible(true); this.dispose(); break; case INSERTAR_EQUIPO: wdwEquipo eq = new wdwEquipo(gln); eq.setVisible(true); this.dispose(); break; case INSERTAR_POSICION: wdwPosicion p = new wdwPosicion(gln); p.setVisible(true); this.dispose(); break; case INSERTAR_ESTADO: wdwEstado es = new wdwEstado(gln); es.setVisible(true); this.dispose(); break; case INSERTAR_CAMPO: wdwCampo ca = new wdwCampo(gln); ca.setVisible(true); this.dispose(); break; case INSERTAR_TEMPORADA: try { gln.anadirTemporada(); } catch (Exception ex) { ex.printStackTrace(); } catch (EquiposInsuficientesException ex) { JOptionPane.showMessageDialog(this,ex.getMessage()); } break; case CERRAR_SESION: wdwRegistrarUsuario ru = new wdwRegistrarUsuario(gln); ru.setVisible(true); this.dispose(); break; case CAMBIAR_EQUIPO_FAV: updateEquipoFav ef = new updateEquipoFav(gln); ef.setVisible(true); this.dispose(); break; case DATOS_PERSONALES: wdwDatosPersonales dp = new wdwDatosPersonales(gln); dp.setVisible(true); this.dispose(); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}", "@Override\r\n\tprotected void initAcciones() {\r\n\t\tacciones.put(\"Buscar\", new AccionBuscarEvento());\r\n\t\tacciones.put(\"Consultar\", new AccionConsultarEvento());\r\n\t\tacciones.put(\"Agregar\", new AccionAgregarEvento());\r\n\t}", "private void initializeEvents() {\r\n\t}", "@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "public void consulterEvent() {\n\t\t\n\t}", "@Override\n\tprotected void onEventComming(EventCenter eventCenter) {\n\t}", "private void createEvents() {\n\t}", "@Override\n protected void initializeEventList()\n {\n }", "@Override\n protected void initEventAndData() {\n }", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "public void initEventsAndProperties() {\r\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "private void registerEvents(){\n Bukkit.getPluginManager().registerEvents(new RegionListener(), this);\n Bukkit.getPluginManager().registerEvents(new SignListener(), this);\n Bukkit.getPluginManager().registerEvents(new PrisonerListener(), this);\n Bukkit.getPluginManager().registerEvents(new PrisonBlockListener(), this);\n Bukkit.getPluginManager().registerEvents(new MonitorListener(), this);\n Bukkit.getPluginManager().registerEvents(new PortalListener(), this);\n }", "private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}", "public void onEvent(EventIterator events) {\n\n }", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "protected void aktualisieren() {\r\n\r\n\t}", "@Override\n\tpublic void loadEvents() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\tpublic void ACC_X_ObjectEvent(Interface.ACC_X_ObjectEvent e, String data) {\n\t\t\n\t}", "@Override\n public void eventoCargarData() {\n }", "private void createEvents()\r\n\t{\r\n\t\teventsCount.add(new Event(RequestMethod.PUT, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.GET, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.POST, 0));\r\n\t}", "@Override\n public void eventsChanged() {\n }", "private void registerGlobalEvents() {\n\t\tsubmit(new CycleEvent());\n\t\tsubmit(new CleanupEvent());\n\t\tsubmit(new FloorItemEvent());\n\t}", "private void initEvents(){\n ArrayList<Event> en = new ArrayList();\n en.add(new Event_MessangerOfGods(this.village));\n en.add(new Event_PaganPriest(this.village));\n this.events = en;\n }", "@Override\n public void onAdded() {\n /**\n * EventsBus: Fetching data.\n */\n EventBus.getDefault().post(new Authenticating());\n }", "@Override\n\tpublic void ACC_Y_ObjectEvent(Interface.ACC_Y_ObjectEvent e, String data) {\n\t\t\n\t}", "public void internal_event(){\n logical_clock = logical_clock + 1;\n System.out.println(\"Internal Event Clock:\" +logical_clock);\n //encrypt(logical_clock);\n }", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "public void handleSensorEvents(){\n\t}", "private void eventhandler() {\n\r\n\t}", "@Override\r\n public void onEvent(FlowableEvent event) {\n }", "private SecurityListener(){\n Bukkit.getPluginManager().registerEvents(this, SteveSus.getInstance());\n }", "public void init() {\r\n setEventType(4);\r\n }", "private void registrarListeners() {\n ventanaAgregarOperador.agregarListenerBotonGuardarNuevoOperador(new VentanaAgregarOperadorBotonGuardarAL());\n ventanaEditarOperador.agregarListenerBotonGuardarDatosModificados(new VentanaEditarOperadorBotonGuardarAL());\n\n }", "private void registerEvents(){\n\t\tPluginManager pm = getServer().getPluginManager();\r\n\t\t//PlayerListener stuff\r\n\t pm.registerEvent(Event.Type.PLAYER_CHAT, playerListener, Event.Priority.Normal, this);\r\n\t pm.registerEvent(Event.Type.PLAYER_MOVE, playerListener, Event.Priority.Normal, this);\r\n\t pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this);\r\n\t //BlockListener stuff\r\n pm.registerEvent(Event.Type.BLOCK_PLACE, blockListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.BLOCK_DAMAGE, blockListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this);\r\n //EntityListener stuff\r\n pm.registerEvent(Event.Type.CREATURE_SPAWN, entityListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.ENTITY_DAMAGE, entityListener, Event.Priority.Normal, this);\r\n //ServerListener stuff\r\n pm.registerEvent(Event.Type.PLUGIN_ENABLE, serverListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.PLUGIN_DISABLE, serverListener, Event.Priority.Normal, this);\r\n }", "@Override\n\tpublic void eventSelectTracker() {\n\t\t\n\t}", "private void addListeners(){\n Conservable[] listenerFromProductTypeRelation = this.productRelation.getListener();\n this.listener[0] = listenerFromProductTypeRelation[0];\n this.listener[1] = listenerFromProductTypeRelation[1];\n this.listener[2] = this.post;\n this.listener[3] = this.productRelation;\n this.listener[4] = this;\n }", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "private void setListeners() {\n\n }", "void onNewEvent(Event event);", "private void initEvents() {\n\t\tuser_head_img.setOnClickListener(this);\r\n\t\ttxt_zcgl.setOnClickListener(this);\r\n\t\ttxt_tzgl.setOnClickListener(this);\r\n\t\ttxt_jlcx.setOnClickListener(this);\r\n\t\ttxt_wdyhk.setOnClickListener(this);\r\n\t\ttxt_wdxx.setOnClickListener(this);\r\n\t\tlayout_zhaq.setOnClickListener(this);\r\n\t\tlayout_ssmm.setOnClickListener(this);\r\n\t\ttxt_myredpager.setOnClickListener(this);\r\n\t}", "Event () {\n // Nothing to do here.\n }", "void storeEvents()\n {\n this.storedPresences = new ArrayList<Presence>();\n this.storeEvents = true;\n }", "void eventChanged();", "@Override\r\n\tpublic void realizarTransacción() {\n\t\tSystem.out.println(\"Transaccion en progreso\");\r\n\t}", "private EventsCollector() {\n\t\tsuper();\n\t}", "void registerEventbusHandlers();", "void addEventRegistrationCallback(EventRegistrationCallback eventRegistrationCallback);", "private void addEventHandlers()\n {\n DepartureBox self = this;\n\n departureTimeField.textProperty().addListener((observable, oldValue, newValue) -> {\n if (null != currentDeparture) {\n Change<Departure, String> change = new Change<>(currentDeparture, oldValue, newValue, \"departureTime\");\n self.execute(IEventListener.EVENT_CHANGE, change, \"depbox\");\n }\n });\n\n destinationField.textProperty().addListener((observable, oldValue, newValue) -> {\n if (null != currentDeparture) {\n Change<Departure, String> change = new Change<>(currentDeparture, oldValue, newValue, \"destination\");\n self.execute(IEventListener.EVENT_CHANGE, change, \"depbox\");\n }\n });\n }", "@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void setListeners() {\n\t\t\r\n\t}", "@Override\n protected void hookUpActionListeners() {\n }", "public synchronized void dispatchEvent(Event event) {\n // Loop through all registered Listener\n \n for (Entry<Listener, HashMap<Class, Collection<Method>>> eventMethodMap : permanentEventMethodCache.entrySet()) {\n // Loop through all methods accepting this class\n HashMap<Class, Collection<Method>> listenerMethods = eventMethodMap.getValue();\n if (!listenerMethods.containsKey(event.getClass())) {\n continue;\n }\n for (Method method : listenerMethods.get(event.getClass())) {\n try {\n method.invoke(eventMethodMap.getKey(), event);\n } catch (Exception e) {\n System.err.println(\"Could not invoke event handler!\");\n e.printStackTrace(System.err);\n }\n }\n }\n }", "@Override\n\tprotected void initListeners() {\n\t\t\n\t}", "void pharmacyListener(){\n \n }", "private void onDepoisAbrirArquivo() {\n\t\tAACDepoisArquivoEventObject e = new AACDepoisArquivoEventObject(this);\n\t\tnotifyListeners(\"onDepoisAbrirArquivo\", e);\n\t}", "@Override\n\tpublic void ACC_Z_ObjectEvent(Interface.ACC_Z_ObjectEvent e, String data) {\n\t\t\n\t}", "BasicEvents createBasicEvents();", "@Subscribe\n public void onEvent(Object event) {\n }", "@Subscribe\n public void onEvent(Object event) {\n }", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "public void onConsultarEvent() {\r\n\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent()]...\");\r\n\r\n\t\ttry {\r\n\t\t\tif (permitirBuscar) {\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(1)]...\");\r\n\t\t\t\tvisualizarColumnas();\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(2)]...\");\r\n\t\t\t\tonMostrarListboxConsulta();\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(3)]...\");\r\n\t\t\t\tonConsultar(idMCRZTbxCriterio.getValue(), false);\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(4)]...\");\r\n\t\t\t} else {\r\n\t\t\t\tNotificaciones.mostrarNotificacionAlerta(tituloMensajeExtra,\r\n\t\t\t\t\t\tmensajeExtra, 7000);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.info(\"Eroor.......................\"+e);\r\n\t\t}\r\n\t}", "void postEvent(final StorageManagerEvent event)\n {\n // Notify all listeners. Use a local copy of the ccList so it does not\n // change while we are using it.\n CallerContext ccList = this.ccList;\n if (ccList != null)\n {\n // Execute the runnable in each caller context in ccList\n ccList.runInContext(new Runnable()\n {\n public void run()\n {\n // Notify listeners. Use a local copy of data so that it\n // does not change while we are using it.\n CallerContextManager ccm = (CallerContextManager) ManagerManager.getInstance(CallerContextManager.class);\n CallerContext cc = ccm.getCurrentContext();\n CCData data = getCCData(cc);\n if ((data != null) && (data.listeners != null)) data.listeners.notifyChange(event);\n }\n });\n }\n }", "public interface Events {\n\n /**\n * Archive has stored the entities within a SIP.\n * <p>\n * Indicates that a SIP has been sent to the archive. May represent an add,\n * or an update.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Number of entities archived</dd>\n * <dt>eventTarget</dt>\n * <dd>every archived entity</dd>\n * </dl>\n * </p>\n */\n public static final String ARCHIVE = \"archive\";\n\n /**\n * Signifies that an entity has been identified as a member of a specific\n * batch load process.\n * <p>\n * There may be an arbitrary number of independent events signifying the\n * same batch (same outcome, date, but different sets of targets). A unique\n * combination of date and outcome (batch label) identify a batch.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Batch label/identifier</dd>\n * <dt>eventTarget</dt>\n * <dd>Entities in a batch</dd>\n * </dl>\n * </p>\n */\n public static final String BATCH = \"batch\";\n\n /**\n * File format characterization.\n * <p>\n * Indicates that a format has been verifiably characterized. Format\n * characterizations not accompanied by a corresponding characterization\n * event can be considered to be unverified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>format, in the form \"scheme formatId\" (whitespace separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of characterized file</dd>\n * </dl>\n * </p>\n */\n public static final String CHARACTERIZATION_FORMAT =\n \"characterization.format\";\n\n /**\n * Advanced file characterization and/or metadata extraction.\n * <p>\n * Indicates that some sort of characterization or extraction has produced a\n * document containing file metadata.\n * </p>\n * *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>id of File containing metadata</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File the metadata describes</dd>\n * </dl>\n */\n public static final String CHARACTERIZATION_METADATA =\n \"characterization.metadata\";\n\n /**\n * Initial deposit/transfer of an item into the DCS, preceding ingest.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>SIP identifier uid</dd>\n * <dt>eventTarget</dt>\n * <dd>id of deposited entity</dd>\n * </dl>\n * </p>\n */\n public static final String DEPOSIT = \"deposit\";\n\n /**\n * Content retrieved by dcs.\n * <p>\n * Represents the fact that content has been downloaded/retrieved by the\n * dcs.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstances\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been downloaded</dd>\n * </dl>\n */\n public static final String FILE_DOWNLOAD = \"file.download\";\n\n /**\n * uploaaded/downloaded file content resolution.\n * <p>\n * Indicates that the reference URI to a unit of uploaded or downloaded file\n * content has been resolved and replaced with the DCS file access URI.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>reference_URI</code> 'to' <code>dcs_URI</code></dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been resolved</dd>\n * </dl>\n */\n public static final String FILE_RESOLUTION_STAGED = \"file.resolution\";\n\n /**\n * Indicates the uploading of file content.\n * <p>\n * Represents the physical receipt of bytes from a client.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstanced\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been uploaded</dd>\n * </dl>\n */\n public static final String FILE_UPLOAD = \"file.upload\";\n\n /**\n * Fixity computation/validation for a particular File.\n * <p>\n * Indicates that a particular digest has been computed for given file\n * content. Digest values not accompanied by a corresponding event may be\n * considered to be un-verified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>computed digest value of the form \"alorithm value\" (whitepsace\n * separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of digested file</dd>\n * </dl>\n * </p>\n */\n public static final String FIXITY_DIGEST = \"fixity.digest\";\n\n /**\n * Assignment of an identifier to the given entity, replacing an\n * existing/temporary id. *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>old_identifier</code> 'to' <code>new_identifier</code></dd>\n * <dt>eventTarget</dt>\n * <dd>new id of object</dd>\n * </dl>\n */\n public static final String ID_ASSIGNMENT = \"identifier.assignment\";\n\n /**\n * Marks the start of an ingest process.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_START = \"ingest.start\";\n\n /**\n * Signifies a successful ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_SUCCESS = \"ingest.complete\";\n\n /**\n * Signifies a failed ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_FAIL = \"ingest.fail\";\n\n /**\n * Signifies that a feature extraction or transform has successfully\n * occurred.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM = \"transform\";\n\n /**\n * Signifies that a feature extraction or transform failed.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM_FAIL = \"transform.fail\";\n\n /**\n * Signifies a file has been scanned by the virus scanner.\n * <p>\n * Indicates that a file has been scanned by a virus scanner. There could be\n * more than one event for a file.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of file whose content was scanned</dd>\n * </dl>\n * </p>\n */\n public static final String VIRUS_SCAN = \"virus.scan\";\n\n /**\n * Signifies an new deliverable unit is being ingested as an update to the target deliverable unit.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of the deliverable unit being updated</dd>\n * </dl>\n * </p>\n */\n public static final String DU_UPDATE = \"du.update\";\n\n}", "public interface EventListener {\n\n /**\n * Called when an event (function call) finishes successfully in MockRestRequest. Does *not* trigger if the event\n * (function) fails.\n * @param mockRestRequest the {@link MockRestRequest} where the event occurred.\n * @param event the {@link Event} that occurred.\n */\n public void onEventComplete(MockRestRequest mockRestRequest, Event event);\n }", "@Override\n\tpublic void handleEvent(EnOceanMessage data) {\n\t}", "@Override\n\t\tpublic void onActive(AcStatusEvent event) {\n\n\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "EventManager()\n {\n }", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "public abstract void registerListeners();", "public void handStarted(TrucoEvent event) {\n\n }", "public void TopDreiEvent();", "public void onEnergize() {\n\n\t}", "private void initializeEventControllers() {\n trNewPersonalEvent = EventControllersFactory.createTrNewPersonalEvent();\n trDeletePersonalEvent = EventControllersFactory.createTrDeletePersonalEvent();\n trNewPeriodicNotification = EventControllersFactory.createTrNewPeriodicNotification();\n trDeletePeriodicNotification = EventControllersFactory.createTrDeletePeriodicNotification();\n }", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "public interface RehaTPEventListener extends EventListener {\npublic void rehaTPEventOccurred(RehaTPEvent evt );\n/*public void RehaTPEventOccurred(TerminFenster evt );\npublic void RehaTPEventOccurred(Container evt );\npublic void RehaTPEventOccurred(Object evt );\npublic void RehaTPEventOccurred(SystemLookAndFeel evt );\n*/\n}", "void connectionActivity(ConnectionEvent ce);", "private void setupEvents(){\n btnOk.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n isClick_ok = true;\n password = jPasswordField1.getText();\n dispose();\n }\n });\n btnCancel.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n dispose();\n }\n });\n }", "public AutoEvents() {\n super();\n _autoEventList = new ArrayList();\n }", "@Override\r\n\tpublic void initListeners() {\n\t\t\r\n\t}", "@Override\n public void onEvent(Event t) throws CSenseException {\n }", "@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusInactivo());\n\t\t//\t\t\t\tEL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t\tif (sTransaccion.validarAnalistaEnRequerimientos(analista)){\n//\t\t\t\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusInactivo());\n//\t\t\t\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n//\t\t\t\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n//\t\t\t\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n//\t\t\t\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n//\t\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t\t\t\tmostrarMensaje(\"Informacion\", \"No se Puede eliminar el analista, esta asignado a un requerimiento que esta activo\", Messagebox.EXCLAMATION, null, null, null);\n//\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void registerEvents()\n {\n \t\tfinal pchestPlayerListener playerListener = new pchestPlayerListener(this, chestManager);\n \t\tfinal pchestEntityListener entityListener = new pchestEntityListener(this, chestManager);\n \t\tfinal pchestBlockListener blockListener = new pchestBlockListener(this, chestManager);\n \t\t\n \t\t\n pm = getServer().getPluginManager();\n \n /* Entity events */\n pm.registerEvent(Type.ENTITY_EXPLODE, entityListener, Event.Priority.Normal, this);\n \n /* Player events */\n pm.registerEvent(Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this);\n \n /* Block events */\n \t\tpm.registerEvent(Type.BLOCK_PLACE, blockListener, Event.Priority.Normal, this);\n \t\tpm.registerEvent(Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this);\n \n \t\t\n /* Spout Required events */\n \t\tif(SpoutLoaded)\n \t\t{\n \t\t\tfinal pchestInventoryListener inventoryListener = new pchestInventoryListener(this, chestManager);\n \n \t /* Inventory events */\n \t\t\tpm.registerEvent(Type.CUSTOM_EVENT, inventoryListener, Event.Priority.Normal, this);\n \t\t}\n }" ]
[ "0.6927849", "0.6879177", "0.6394407", "0.63734233", "0.63335747", "0.6297209", "0.6242354", "0.6161148", "0.6143104", "0.61292905", "0.61249703", "0.6101328", "0.6079332", "0.6055269", "0.6055269", "0.6038897", "0.60371596", "0.6033508", "0.594647", "0.59138167", "0.59138167", "0.59138167", "0.59138167", "0.59138167", "0.58862686", "0.58839226", "0.5856313", "0.5856313", "0.5856313", "0.58550787", "0.584975", "0.5843471", "0.5838474", "0.58379394", "0.5787186", "0.57468694", "0.5738253", "0.5710638", "0.57065207", "0.5705852", "0.5696811", "0.56793857", "0.5674503", "0.5665699", "0.56617457", "0.5643254", "0.56377494", "0.56373584", "0.5630615", "0.5626175", "0.5626175", "0.56176996", "0.5600735", "0.5597288", "0.5586944", "0.55807084", "0.5566448", "0.5557302", "0.5553453", "0.5542102", "0.5539303", "0.5530192", "0.55159765", "0.55159765", "0.5508725", "0.5503009", "0.5498485", "0.54927963", "0.5490353", "0.5488524", "0.5482052", "0.5481526", "0.54737836", "0.54737836", "0.54711187", "0.54706085", "0.54676145", "0.54662937", "0.54634196", "0.54495794", "0.544213", "0.54397905", "0.54397905", "0.5437504", "0.5423021", "0.5423021", "0.5422399", "0.5420453", "0.5420292", "0.54180783", "0.54083544", "0.540772", "0.540772", "0.5406059", "0.53909695", "0.538997", "0.5389217", "0.5387951", "0.53872234", "0.53829145", "0.5382499" ]
0.0
-1
public void initCachedDimensionsFromHdf5( final boolean background ) // REMOVED
public File getHdf5File() { return hdf5File; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initDimensions() {\n mFab.post(new Runnable() {\n @Override\n public void run() {\n // Get FAB start and end locations, and radius\n // TODO: Restructure this at some stage because this is bad.\n mFab.getLocationOnScreen(fabStartLocation);\n fabScale = (screenHeight / 8) / (float) mFab.getHeight();\n// Log.v(LOG_TAG, \"screenHeight: \" + screenHeight + \", mFab.getHeight: \" + mFab.getHeight() + \", fabScale: \" + fabScale);\n fabRadius = (int) (mFab.getHeight() * fabScale / 2);\n fabEndLocation[0] = (screenWidth - mFab.getHeight()) / 2;\n fabEndLocation[1] = screenHeight - fabRadius * 2;\n Utilities.setFabMeasurements(\n screenWidth / 2,\n mFab.getHeight() / 2 + fabEndLocation[1],\n fabRadius);\n }\n });\n\n mAltBackground.post(new Runnable() {\n @Override\n public void run() {\n Log.v(LOG_TAG, \"mAltBackground ready.\");\n // Get the final radius for the clipping circle\n maxBackgroundSize = Math.max(mAltBackground.getWidth(), mAltBackground.getHeight());\n // StatusBar only > 0 when API is <21 (should be tested and confirmed).\n statusBarOffset = screenHeight - mAltBackground.getHeight();\n fabEndLocation[1] -= statusBarOffset;\n Utilities.setFabMeasurements(\n screenWidth / 2,\n mFab.getHeight() / 2 + fabEndLocation[1],\n fabRadius);\n }\n });\n }", "private void initBackground() throws IOException{\n\t\tBufferedImage backgroundImage = ImageLoader.getBufferedImage(BACKGROUND_IMAGE_PATH);\n\t\tmainWindow.setBackgroundImage(backgroundImage);\n\t}", "private void initBackground() {\n\t\tfor (int i = numOfParticles - World.getObjects().size() - 1; i >= 0; i--) {\n\t\t\tfloat x = (float) (Math.random()\n\t\t\t\t\t* (Screen.getWidth() + LEDLogo.WIDTH * 2) - LEDLogo.WIDTH), y = (float) (Math\n\t\t\t\t\t.random() * (Screen.getHeight() + LEDLogo.HEIGHT * 2) - LEDLogo.HEIGHT);\n\t\t\tWorld.add(new LEDLogo(x, y, (float) Math.random() * 0.8f + 0.2f));\n\t\t}\n\t}", "@FXML\n public void setUp() {\n players = db.getPlayers();\n creatures = db.getCreatures();\n Random rand = new Random();\n creatureId = rand.nextInt(creatures.size()); \n playerId = rand.nextInt(players.size());\n CreaturePic.setImage(db.getCreaturePic(creatures.get(creatureId).getId()));\n PlayerPic.setImage(db.getPlayerPic(players.get(playerId).getId()));\n try{\n int backgroundNumber = rand.nextInt(10) + 21; //21 - 30\n \n byte[] array = db.getPicture(backgroundNumber);\n ByteArrayInputStream bis = new ByteArrayInputStream(array);\n BufferedImage b = ImageIO.read(bis);\n Image backim = SwingFXUtils.toFXImage(b,null);\n BackgroundPic.setFitHeight(720);\n BackgroundPic.setFitWidth(1280);\n BackgroundPic.setImage(backim);\n setTextFields();\n }\n catch(Exception e) {\n System.out.println(e);\n }\n }", "@PostConstruct\r\n/* 76: */ public void init()\r\n/* 77: */ {\r\n/* 78:101 */ getDimensionPresupuesto();\r\n/* 79: */ }", "@Override\r\n\tpublic void setup() {\r\n\t\tthis.gridCells = this.world.getCells();\r\n\t\tthis.markerDrawOrders = new HashMap<Cell, Integer>();\r\n\t\tsetMarkerDrawOrders(this.gridCells);\r\n\t\t//Number of hexagons in columns and rows\r\n\t\tthis.numHexRow = this.gridCells.length;\r\n\t\tthis.numHexCol = this.gridCells[0].length;\r\n\t\t//Calculate the total width and height in pixels the hexagons take up\r\n\t\tthis.totalHexWidth = (this.numHexCol * HEX_WIDTH) + HEX_WIDTH / 2;\r\n\t\tthis.totalHexHeight = \r\n\t\t\t\t(HEX_ANGLE_HEIGHT + HEX_VERT_HEIGHT) \r\n\t\t\t\t* this.numHexRow + HEX_ANGLE_HEIGHT;\r\n\t\t\r\n\t\t//Work out which dimension take up the most space\r\n\t\tif (this.totalHexWidth > this.totalHexHeight) {\r\n\t\t\tthis.largestDimension = Dimensions.HORIZONTAL;\r\n\t\t} else {\r\n\t\t\tthis.largestDimension = Dimensions.VERTICAL;\r\n\t\t}\r\n\t\tsize(PIXEL_WIDTH, PIXEL_HEIGHT);\r\n\t\t\r\n\t\t//Gives the garbage clearer time to free up memory before the \r\n\t\t//background buffer is recalculated\r\n\t\tthis.backgroundBuffer = null; \r\n\t\t//Of screen buffer to where the background tiles of the ant world a are\r\n\t\t//drawn. This means that each time the buffer is drawn to the screen,\r\n\t\t//rather than all the tiles which makes it much faster!\r\n\t\tthis.backgroundBuffer = createGraphics(this.totalHexWidth,\r\n\t\t\t\tthis.totalHexHeight, P2D);\r\n\t\t\r\n\t\tsmooth(); //Turn on anti aliasing\r\n\t\tframeRate(10); //Turn down the frame rate for less processing power\r\n\t\t//Text variables\r\n\t\ttextFont(this.courierFont, 30);\r\n\t\tfill(255); //Fill colour (white) for the text\r\n\t\tthis.zoomer = new ZoomPan(this); // Initialise the zoomer\r\n\t\tthis.zoomer.allowZoomButton(false); \r\n\t\tsetInitialPanAndZoom(); //Set the initial zoom and pan\r\n\t\tupdateImageScale(); //Update the image scales because zoom scale has\r\n\t\t\t\t\t\t\t//been changed\r\n\t\tbufferWorld(); //Buffer the background tiles\r\n\t}", "public void updateDimensions() {\n }", "public void init() {\n\t\tBitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.sb_thumb);\n\t\tLinearGradient colorGradient = new LinearGradient(0.f, 0.f, this.getMeasuredWidth() - bitmap.getWidth(), 0.f, new int[] { 0xFF000000,\n\t\t\t\t0xFF0000FF, 0xFF00FF00, 0xFF00FFFF, 0xFFFF0000, 0xFFFF00FF, 0xFFFFFF00, 0xFFFFFFFF }, null, Shader.TileMode.CLAMP);\n\t\tShapeDrawable shape = new ShapeDrawable(new RectShape(mContext));\n\t\tshape.getPaint().setShader(colorGradient);\n\t\tthis.setProgressDrawable(shape);\n\t\tthis.setMax(256 * 7 - 1);\n\t}", "private Background InitBackground()\r\n {\r\n \tBoundingSphere worldBounds = new BoundingSphere(\r\n \t\t new Point3d( 0.0, 0.0, 0.0 ), // Center\r\n \t\t 1000000000000000000000.0 ); // Extent\r\n \t\t\r\n \t// Set the background color and its application bounds\r\n \tbg = new Background( );\r\n \tbg.setColor( backgroundColor );\r\n \tbg.setCapability( Background.ALLOW_COLOR_WRITE );\r\n \tbg.setCapability( Background.ALLOW_COLOR_READ );\r\n \tbg.setCapability( Background.ALLOW_IMAGE_READ );\r\n \tbg.setCapability( Background.ALLOW_IMAGE_WRITE );\r\n \tbg.setApplicationBounds( worldBounds );\r\n \t\r\n \treturn bg;\r\n }", "protected void setupImpl()\n {\n hint(DISABLE_DEPTH_TEST);\n font = loadFont(\"Futura-CondensedExtraBold-200.vlw\");\n textFont(font, 200);\n mode = 0;\n\n // Mode 3\n w = width * 2;\n dx = (TWO_PI / period) * xspacing;\n yvalues = new float[w/xspacing];\n\n // Mode 5\n mod = loadImage(\"mod.png\");\n modSizes = new int[scaledBandLevels.length];\n }", "private void setupAllBackgroundColorViews(){\n allBackgroundColorViews = new ArrayList<>();\n allBackgroundColorViews.add(clMainScreenEncompassing);\n allBackgroundColorViews.add(containerDegrees);\n allBackgroundColorViews.add(containerRadians);\n allBackgroundColorViews.add(containerSine);\n allBackgroundColorViews.add(containerCosine);\n allBackgroundColorViews.add(containerTangent);\n allBackgroundColorViews.add(containerRadianControl);\n }", "private boolean initBackgroundImage(MinesweeperView frame) {\r\n try {\r\n int width = (int) frame.getDim().getWidth();\r\n int height = (int) frame.getDim().getHeight();\r\n Background image = new Background(new File(\"../Asset/explosion.jpg\"), 0, 0, width, height);\r\n frame.add(image);\r\n } catch (IOException event) {\r\n System.err.println(\"Image Not Found\");\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic void setDimensions() {\n\t\t\n\t}", "public void loadDimens() {\n super.loadDimens();\n Builder builder = this.mFlingAnimationUtilsBuilder;\n builder.reset();\n builder.setMaxLengthSeconds(0.4f);\n this.mFlingAnimationUtils = builder.build();\n this.mStatusBarMinHeight = this.mResources.getDimensionPixelSize(17105462);\n this.mQsPeekHeight = this.mResources.getDimensionPixelSize(C2009R$dimen.qs_peek_height);\n this.mNotificationsHeaderCollideDistance = this.mResources.getDimensionPixelSize(C2009R$dimen.header_notifications_collide_distance);\n this.mClockPositionAlgorithm.loadDimens(this.mResources);\n this.mQsFalsingThreshold = this.mResources.getDimensionPixelSize(C2009R$dimen.qs_falsing_threshold);\n this.mPositionMinSideMargin = this.mResources.getDimensionPixelSize(C2009R$dimen.notification_panel_min_side_margin);\n this.mIndicationBottomPadding = this.mResources.getDimensionPixelSize(C2009R$dimen.keyguard_indication_bottom_padding);\n this.mQsNotificationTopPadding = this.mResources.getDimensionPixelSize(C2009R$dimen.qs_notification_padding);\n this.mShelfHeight = this.mResources.getDimensionPixelSize(C2009R$dimen.notification_shelf_height);\n this.mDarkIconSize = this.mResources.getDimensionPixelSize(C2009R$dimen.status_bar_icon_drawing_size_dark);\n this.mHeadsUpInset = this.mResources.getDimensionPixelSize(17105462) + this.mResources.getDimensionPixelSize(C2009R$dimen.heads_up_status_bar_padding);\n }", "public void initForMM(){\n hdBase = HD_BASED_ON_MMS;\n hdNoHdRankThreshold = 0;\n hdCorrection = 1; \n hdCeiling = 9;\n }", "void setupBackgrounds() {\n // initialize the background tool\n BackgroundTool bgTool = new BackgroundTool(codeBaseString);\n bgSwitch = bgTool.getSwitch();\n bgChooser = bgTool.getChooser();\n }", "public void initialize() {\n\t\tImageIcon bg = new ImageIcon(\"bg.png\");\n\t\tBackground = (bg.getImage().getScaledInstance(bg.getIconWidth(), bg.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tImageIcon[] in1 = new ImageIcon[12];\n\t\tin1[0] = new ImageIcon(\"Hero1 Normal.png\");\n\t\tin1[1] = new ImageIcon(\"20ed.png\");\n\t\tin1[2] = new ImageIcon(\"50ed.png\");\n\t\tin1[3] = new ImageIcon(\"100ed.png\");\n\t\tin1[4] = new ImageIcon(\"200ed.png\");\n\t\tin1[5] = new ImageIcon(\"500ed.png\");\n\t\tin1[6] = new ImageIcon(\"Hero1 Att200.png\");\n\t\tin1[7] = new ImageIcon(\"Hero1 Att500.png\");\n\t\tin1[8] = new ImageIcon(\"Hero1 Defence01.png\");\n\t\tin1[9] = new ImageIcon(\"Hero1Defence02.png\");\n\t\tin1[10] = new ImageIcon(\"Hero1 to fire.png\");\n\t\tin1[11] = new ImageIcon(\"Hero1 die.png\");\n\t\tImageIcon[] in2 = new ImageIcon[12];\n\t\tin2[0] = new ImageIcon(\"Hero02.png\");\n\t\tin2[1] = new ImageIcon(\"20ed02.png\");\n\t\tin2[2] = new ImageIcon(\"50ed02.png\");\n\t\tin2[3] = new ImageIcon(\"100ed02.png\");\n\t\tin2[4] = new ImageIcon(\"200ed02.png\");\n\t\tin2[5] = new ImageIcon(\"500ed02.png\");\n\t\tin2[6] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[7] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[8] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[9] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[10] = new ImageIcon(\"Hero02 Attack01.png\");\n\t\tin2[11] = new ImageIcon(\"Hero02 Die.png\");\n\t\tImageIcon[] inBullet1 = new ImageIcon[3];\n\t\tinBullet1[0] = new ImageIcon(\"B1fire02.png\");\n\t\tinBullet1[1] = new ImageIcon(\"B1fire03.png\");\n\t\tinBullet1[2] = new ImageIcon(\"B1fire05.png\");\n\t\tImageIcon[] inBullet2 = new ImageIcon[5];\n\t\tinBullet2[0] = new ImageIcon(\"20.png\");\n\t\tinBullet2[1]= new ImageIcon(\"50.png\");\n\t\tinBullet2[2]= new ImageIcon(\"100.png\");\n\t\tinBullet2[3]= new ImageIcon(\"200.png\");\n\t\tinBullet2[4]= new ImageIcon(\"500.png\");\n\t\tHero1.settemplate(in2);\n\t\tHero2.settemplate(in1);\n\t\tBullet1.settemplate(inBullet2);\n\t\tBullet2.settemplate(inBullet1);\n\t\tHero1.setstatus(0);\n\t\tHero2.setstatus(0);\n\t}", "public void setup() {\n\t\t//size(0,0,PApplet.P3D);\n\t}", "public void initForCup(){\n hdBase = HD_BASED_ON_RANK;\n hdNoHdRankThreshold = -30;\n hdCorrection = 0; \n hdCeiling = 0;\n }", "public void setBackground(){\r\n Image background = new Image(\"Cards/table.jpg\", 192, 80, false, true);\r\n BackgroundImage backgroundImg = new BackgroundImage(background, BackgroundRepeat.REPEAT, BackgroundRepeat.REPEAT,BackgroundPosition.DEFAULT, null);\r\n mainPane.setBackground(new Background(backgroundImg));\r\n }", "private void loadHUDBackground() {\r\n\r\n\t\tRectangle blabla = new Rectangle(0, HUD_TOP_BORDER,\r\n\t\t\t\t(float) (ResourceManager.getInstance().cameraWidth),\r\n\t\t\t\tResourceManager.getInstance().cameraHeight - HUD_TOP_BORDER,\r\n\t\t\t\tResourceManager.getInstance().getEngine()\r\n\t\t\t\t\t\t.getVertexBufferObjectManager());\r\n\t\tHUDRegion.attachChild(blabla);\r\n\t\tblabla.setColor(1f, 0.5f, 0.5f);\r\n\r\n\t}", "public void initHearts(){\n for(int i = 0; i < shipVal.getHealth(); i++){ //initializes the hearts based on the number of health the ship has\n hearts.add(new ImageView(cacheHeart));\n }\n addHearts();\n }", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh)\n {\n super.onSizeChanged(w, h, oldw, oldh);\n //initialize canvas background\n canvasBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);\n canvas = new Canvas(canvasBitmap);\n }", "private void loadBackground() {\n\t\ttry {\n\t\t\timgBackground[0] = ImageIO.read(new File(System.getProperty(\"user.dir\")+\"/assets/Background1.jpg\")); // attempts to load the three\n\t\t\timgBackground[1] = ImageIO.read(new File(System.getProperty(\"user.dir\")+\"/assets/Background2.jpg\")); // default backgrounds from the\n\t\t\timgBackground[2] = ImageIO.read(new File(System.getProperty(\"user.dir\")+\"/assets/Background3.jpg\")); // assets folder\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public InputImageManager(int background)\n {\n this.background = background;\n }", "private static void drawUniverse(String background) {\n StdDraw.picture(0.0, 0.0, background);\n }", "private void inititalzeAnimalMatrixCounter() {\r\n\t\tCounterProperties cp = new CounterProperties();\r\n\t\tcp.set(AnimationPropertiesKeys.FILLED_PROPERTY, true);\r\n\t\tcp.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.BLUE);\r\n\t\tcounter = lang.newCounter(mainMatrix);\r\n\t\tlang.newCounterView(counter, new Offset(200, 0, \"header\", AnimalScript.DIRECTION_NW), cp, true, true);\r\n\t}", "private void arrayInitialise() {\n\t\tif(screenSize >2 && screenSize < 5){\n\t\t\tfarmerGif.add(\"file:///android_asset/farmer_cow_ldpi.gif\");\n\t\t\thereGif.add(\"file:///android_asset/cow_mooleft_ldpi.gif\");\n\t\t\tfarmerGif.add(\"file:///android_asset/farmer_horse2_ldpi.gif\");\n\t\t\thereGif.add(\"file:///android_asset/horse_left_neigh_ldpi.gif\");\n\t\t\tfarmerGif.add(\"file:///android_asset/pig_med_ldpi.gif\");\n\t\t\thereGif.add(\"file:///android_asset/pig_oinkleft_ldpi.gif\");\n\t\t\tfarmerGif.add(\"file:///android_asset/farmer_sheep_ldpi.gif\");\n\t\t\thereGif.add(\"file:///android_asset/sheep_baa_ldpi.gif\");\n\t\t\tfarmerGif.add(\"file:///android_asset/farmer_duck_ldpi.gif\");\n\t\t\thereGif.add(\"file:///android_asset/duck_left_ldpi.gif\");\n\t\t}\n\t\telse if(screenSize>=7 && density>1){\t\t\t\n\t\t\tfarmerGif.add(\"file:///android_asset/farmer_cow_hdpi.gif\");\n\t\t\thereGif.add(\"file:///android_asset/cow_mooleft_hdpi.gif\");\n\t\t\tfarmerGif.add(\"file:///android_asset/farmer_horse2_hdpi.gif\");\n\t\t\thereGif.add(\"file:///android_asset/horse_left_neigh_hdpi.gif\");\n\t\t\tfarmerGif.add(\"file:///android_asset/pig_med_hdpi.gif\");\n\t\t\thereGif.add(\"file:///android_asset/pig_oinkleft_hdpi.gif\");\n\t\t\tfarmerGif.add(\"file:///android_asset/farmer_sheep_hdpi.gif\");\n\t\t\thereGif.add(\"file:///android_asset/sheep_baa_hdpi.gif\");\n\t\t\tfarmerGif.add(\"file:///android_asset/farmer_duck_hdpi.gif\");\n\t\t\thereGif.add(\"file:///android_asset/duck_left_hdpi.gif\");\n\t\t}\n\t\telse{\n\t\t\tfarmerGif.add(\"file:///android_asset/farmer_cow.gif\");\n\t\t\thereGif.add(\"file:///android_asset/cow_mooleft.gif\");\n\t\t\tfarmerGif.add(\"file:///android_asset/farmer_horse2.gif\");\n\t\t\thereGif.add(\"file:///android_asset/horse_left_neigh.gif\");\n\t\t\tfarmerGif.add(\"file:///android_asset/pig_med.gif\");\n\t\t\thereGif.add(\"file:///android_asset/pig_oinkleft.gif\");\n\t\t\tfarmerGif.add(\"file:///android_asset/farmer_sheep.gif\");\n\t\t\thereGif.add(\"file:///android_asset/sheep_baa.gif\");\n\t\t\tfarmerGif.add(\"file:///android_asset/farmer_duck.gif\");\n\t\t\thereGif.add(\"file:///android_asset/duck_left.gif\");\n\t\t}\n\t\t\n\t\tsound.add(R.raw.cow_moo_edited);\n\t\tsound.add(R.raw.horse_neigh_edited);\n\t\tsound.add(R.raw.pig_oink_edited);\n\t\tsound.add(R.raw.sheep_baa_edited);\n\t\tsound.add(R.raw.duck_quack_edited);\n\t\thereSound.add(R.raw.cow_here_edited);\n\t\thereSound.add(R.raw.horse_here_edited);\n\t\thereSound.add(R.raw.pig_here_edited);\n\t\thereSound.add(R.raw.sheep_here_edited);\n\t\thereSound.add(R.raw.duck_here_edited);\n\t\tendSound.add(R.raw.end_edited);\n\t\tendSound.add(R.raw.end_edited);\n\t\tendSound.add(R.raw.end_edited);\n\t\tendSound.add(R.raw.end_edited);\n\t\tendSound.add(R.raw.end_edited);\n\t\tsoundStart.add(R.raw.cow_start_edited);\n\t\tsoundStart.add(R.raw.horse_start_edited);\n\t\tsoundStart.add(R.raw.pig_start_edited);\n\t\tsoundStart.add(R.raw.sheep_start_edited);\n\t\tsoundStart.add(R.raw.duck_start_edited);\n\t\t}", "private void createBackground()\n {\n GreenfootImage background = getBackground();\n background.setColor(Color.BLACK);\n background.fill();\n }", "@Override // com.android.server.wm.WindowContainer\n public void prepareSurfaces() {\n this.mDimmer.resetDimStates();\n super.prepareSurfaces();\n getBounds(this.mTmpDimBoundsRect);\n if (this.mDimmer.updateDims(getPendingTransaction(), this.mTmpDimBoundsRect)) {\n scheduleAnimation();\n }\n }", "public void cacheResult(\n\t\tjava.util.List<org.politaktiv.map.infrastructure.model.Background> backgrounds);", "@Override\n\tboolean computeDimensions() {\n\t\treturn true;\n\t}", "private void initAreaImageFilm() {\n\n }", "private void myInit() {\n\n final Dimension d = new Dimension( 1000, 600 );\n this.setPreferredSize( d );\n final Dimension d2 = new Dimension( 600, 400 );\n this.setMinimumSize( d2 );\n\n loadData();\n\n pack();\n }", "private void initData() {\n\t\tpages = new ArrayList<WallpaperPage>();\n\n\t}", "public void initApp() {\n \tint ms = (int) Math.round(1000d / Settings.getFramesPerSecond());\n \ttimer = new Timer(ms, this);\n \ttimer.start();\n setBackground(new Color(35, 35, 35));\n Dimension d = new Dimension(Settings.getGridDimensions());\n d.setSize(d.getWidth() + Settings.getBoxSize() * 4 + 80, d.getHeight());\n setPreferredSize(d);\n setFocusable(true);\n }", "@Before\n /**\n * An one dimensional array is created and it is used to run the unit test for Histogram's public methods\n */\n public void setUp() throws FitsException, ClassNotFoundException, IOException {\n inCubeFits = FileLoader.loadFits(FitsImageCubeTest.class, inCubeFitsFileName);\n\n exDg = FITSTableReader.convertFitsToDataGroup(\n FileLoader.getDataPath(FitsImageCubeTest.class)+\"/\"+dgName,\n null,\n null,\n FITSTableReader.EXPAND_BEST_FIT, 1);\n\n fitsCube = FitsReadFactory.createFitsImageCube(inCubeFits);\n\n\n\n }", "private void resetBackgrounds(){\n for(int y = 1; y <= rowCount; y++){\n for(int x = 1; x <= columnCount; x++){\n rootView.findViewById(Integer.parseInt(\"10\" + x + \"00\" + y)).findViewById(R.id.third_list_value).setBackgroundResource(R.drawable.white_off_shape);\n }\n }\n }", "private ImageView m25219a(Context context, boolean z) {\n ImageView backgroundImageView = new BackgroundImageView(context, z);\n backgroundImageView.setScaleType(ScaleType.CENTER_CROP);\n int i = !z ? SizeUtil.dp20 : null;\n backgroundImageView.setImageBitmap(this.options.getBackgroundImage());\n z = new ShapeDrawable();\n z.setShape(m25217a(i));\n z.getPaint().setColor(this.options.getBackgroundColor());\n if (VERSION.SDK_INT >= 16) {\n backgroundImageView.setBackground(z);\n } else {\n backgroundImageView.setBackgroundDrawable(z);\n }\n backgroundImageView.setLayoutParams(new LayoutParams(-1, -1));\n return backgroundImageView;\n }", "private void init() {\n mWallpaperRecycler.setLayoutManager(new GridLayoutManager(getContext(), 2));\n mWallpaperRecycler.setHasFixedSize(true);\n mWallpaperAdapter = new WallpaperAdapter(getContext(), mEmptyView, this);\n mWallpaperRecycler.setAdapter(mWallpaperAdapter);\n\n\n mPresenter = new TrendingWallpapersPresenterImpl(\n ThreadExecutor.getInstance(),\n MainThreadImpl.getInstance(),\n this,\n mUnsplashRepository);\n }", "public zombie_bg()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1010,900, 1); \n setPaintOrder(ScoreBoard.class, player.class, zomb_gen.class, options.class);\n populate();\n \n }", "private void init() {\n\t\trunning = true;\n\t\timage = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB);\n\t\tg = (Graphics2D) image.getGraphics();\n\t\ttheMap.loadTiles(\"resizedTiles2.png\");\n\t}", "@PostConstruct\n public void init() {\n this.facts.addAll(checkExtractor.obtainFactList());\n this.facts.addAll(facebookExtractor.obtainFactList());\n this.facts.addAll(googleExtractor.obtainFactList());\n this.facts.addAll(linkedinExtractor.obtainFactList());\n this.facts.addAll(twitterExtractor.obtainFactList());\n\n this.checkHeader = this.utils.generateDatasetHeader(this.checkExtractor.obtainFactList());\n this.facebookHeader = this.utils.generateDatasetHeader(this.facebookExtractor.obtainFactList());\n this.googleHeader = this.utils.generateDatasetHeader(this.googleExtractor.obtainFactList());\n this.linkedinHeader = this.utils.generateDatasetHeader(this.linkedinExtractor.obtainFactList());\n this.twitterHeader = this.utils.generateDatasetHeader(this.twitterExtractor.obtainFactList());\n }", "public void setup() {\n this.imageStore = new ImageStore(\n createImageColored(TILE_WIDTH, TILE_HEIGHT,\n DEFAULT_IMAGE_COLOR));\n this.world = new WorldModel(WORLD_ROWS, WORLD_COLS,\n createDefaultBackground(imageStore));\n this.view = new WorldView(VIEW_ROWS, VIEW_COLS, this, world, TILE_WIDTH,\n TILE_HEIGHT);\n this.scheduler = new EventScheduler(timeScale);\n\n loadImages(IMAGE_LIST_FILE_NAME, imageStore, this);\n loadWorld(world, LOAD_FILE_NAME, imageStore);\n\n scheduleActions(world, scheduler, imageStore);\n\n nextTime = System.currentTimeMillis() + TIMER_ACTION_PERIOD;\n }", "private void clearbackground() {\n\t\tfive_direct_single.setBackgroundResource(0);\r\n\t\tfour_direct_single.setBackgroundResource(0);\r\n\t\ttopthree_group_three_single.setBackgroundResource(0);\r\n\t\ttopthree_group_six_single.setBackgroundResource(0);\r\n\t\ttopthree_direct_single.setBackgroundResource(0);\r\n\t\tbottomthree_direct_single.setBackgroundResource(0);\r\n\t\tbottompthree_group_three_single.setBackgroundResource(0);\r\n\t\tbottompthree_group_six_single.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_single.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_single.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_single.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_single.setBackgroundResource(0);\r\n\t\ttopthree_mix_group.setBackgroundResource(0);\r\n\t\tbottompthree_mix_group.setBackgroundResource(0);\r\n\t\tfive_direct_double.setBackgroundResource(0);\r\n\t\tfive_group_120.setBackgroundResource(0);\r\n\t\tfive_group_60.setBackgroundResource(0);\r\n\t\tfive_group_30.setBackgroundResource(0);\r\n\t\tfive_group_20.setBackgroundResource(0);\r\n\t\tfive_group_10.setBackgroundResource(0);\r\n\t\tfive_group_5.setBackgroundResource(0);\r\n\t\tfour_direct_double.setBackgroundResource(0);\r\n\t\tfour_group_24.setBackgroundResource(0);\r\n\t\tfour_group_12.setBackgroundResource(0);\r\n\t\ttopthree_direct_double.setBackgroundResource(0);\r\n\t\ttopthree_group_three.setBackgroundResource(0);\r\n\t\ttopthree_group_six.setBackgroundResource(0);\r\n\t\ttopthree_group_sum.setBackgroundResource(0);\r\n\t\ttopthree_group_container.setBackgroundResource(0);\r\n\t\tbottomthree_direct_double.setBackgroundResource(0);\r\n\t\tbottomthree_group_span.setBackgroundResource(0);\r\n\t\tbottomthree_group_three.setBackgroundResource(0);\r\n\t\tbottomthree_group_six.setBackgroundResource(0);\r\n\t\tbottomthree_group_sum.setBackgroundResource(0);\r\n\t\tbottomthree_group_container.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_double.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_sum.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_span.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_double.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_span.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_double.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_double.setBackgroundResource(0);\r\n\t\tfixed_position.setBackgroundResource(0);\r\n\t\tthree_bottomthree_one_notposition.setBackgroundResource(0);\r\n\t\tthree_bottomthree_two_notposition.setBackgroundResource(0);\r\n\t\tthree_topthree_one_notposition.setBackgroundResource(0);\r\n\t\tthree_topthree_two_notposition.setBackgroundResource(0);\r\n\t\tfour_bottomfour_two_notposition.setBackgroundResource(0);\r\n\t\tfive_bottomfive_two_notposition.setBackgroundResource(0);\r\n\t\tfive_bottomfive_three_notposition.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_sum.setBackgroundResource(0);\r\n\t\tfour_group_6.setBackgroundResource(0);\r\n\t\tfour_group_4.setBackgroundResource(0);\r\n\t\tbottomthree_direct_sum.setBackgroundResource(0);\r\n\t\ttopthree_direct_sum.setBackgroundResource(0);\r\n\t\ttopthree_direct_span.setBackgroundResource(0);\r\n\t\ttopthree_sum_end.setBackgroundResource(0);\r\n\t\tbottomthree_sum_end.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_sum.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_container.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_container.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_sum.setBackgroundResource(0);\r\n\t\tfour_bottomfour_one_notposition.setBackgroundResource(0);\r\n\t\tmaxmin_bottomtwo.setBackgroundResource(0);\r\n\t\tmaxmin_bottomthree.setBackgroundResource(0);\r\n\t\tmaxmin_toptwo.setBackgroundResource(0);\r\n\t\tmaxmin_topthree.setBackgroundResource(0);\r\n\t}", "@Override\n \t\tpublic void populateImageMetadata() {\n \n \t\t\t// populate core metadata\n \n \t\t\tfinal OMEXMLMetadata omexmlMeta = getOmeMeta().getRoot();\n \n \t\t\tfor (int s = 0; s < getImageCount(); s++) {\n \n \t\t\t\tfinal ImageMetadata m = get(s);\n \t\t\t\ttry {\n \t\t\t\t\tm.setPlanarAxisCount(2);\n \t\t\t\t\tm.setAxisLength(Axes.X, omexmlMeta.getPixelsSizeX(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tfinal int tiffWidth = (int) firstIFD.getImageWidth();\n \t\t\t\t\tif (m.getAxisLength(Axes.X) != tiffWidth && s == 0) {\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"SizeX mismatch: OME=\" + m.getAxisLength(Axes.X) + \", TIFF=\" +\n \t\t\t\t\t\t\t\ttiffWidth);\n \t\t\t\t\t}\n \t\t\t\t\tm.setAxisLength(Axes.Y, omexmlMeta.getPixelsSizeY(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tfinal int tiffHeight = (int) firstIFD.getImageLength();\n \t\t\t\t\tif (m.getAxisLength(Axes.Y) != tiffHeight && s == 0) {\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"SizeY mismatch: OME=\" + m.getAxisLength(Axes.Y) + \", TIFF=\" +\n \t\t\t\t\t\t\t\ttiffHeight);\n \t\t\t\t\t}\n \t\t\t\t\tm.setAxisLength(Axes.Z, omexmlMeta.getPixelsSizeZ(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tm.setAxisLength(Axes.CHANNEL, omexmlMeta.getPixelsSizeC(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tm.setAxisLength(Axes.TIME, omexmlMeta.getPixelsSizeT(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tm.setPixelType(FormatTools.pixelTypeFromString(omexmlMeta\n \t\t\t\t\t\t.getPixelsType(s).toString()));\n \t\t\t\t\tfinal int tiffPixelType = firstIFD.getPixelType();\n \t\t\t\t\tif (m.getPixelType() != tiffPixelType &&\n \t\t\t\t\t\t(s == 0 || adjustedSamples.get(s)))\n \t\t\t\t\t{\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"PixelType mismatch: OME=\" + m.getPixelType() + \", TIFF=\" +\n \t\t\t\t\t\t\t\ttiffPixelType);\n \t\t\t\t\t\tm.setPixelType(tiffPixelType);\n \t\t\t\t\t}\n \t\t\t\t\tm.setBitsPerPixel(FormatTools.getBitsPerPixel(m.getPixelType()));\n \t\t\t\t\tString dimensionOrder =\n \t\t\t\t\t\tomexmlMeta.getPixelsDimensionOrder(s).toString();\n \n \t\t\t\t\t// hackish workaround for files exported by OMERO that have an\n \t\t\t\t\t// incorrect dimension order\n \t\t\t\t\tString uuidFileName = \"\";\n \t\t\t\t\ttry {\n \t\t\t\t\t\tif (omexmlMeta.getTiffDataCount(s) > 0) {\n \t\t\t\t\t\t\tuuidFileName = omexmlMeta.getUUIDFileName(s, 0);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tcatch (final NullPointerException e) {}\n \t\t\t\t\tif (omexmlMeta.getChannelCount(s) > 0 &&\n \t\t\t\t\t\tomexmlMeta.getChannelName(s, 0) == null &&\n \t\t\t\t\t\tomexmlMeta.getTiffDataCount(s) > 0 &&\n \t\t\t\t\t\tuuidFileName.indexOf(\"__omero_export\") != -1)\n \t\t\t\t\t{\n \t\t\t\t\t\tdimensionOrder = \"XYZCT\";\n \t\t\t\t\t}\n \t\t\t\t\tm.setAxisTypes(metaService.findDimensionList(dimensionOrder));\n \n \t\t\t\t\tm.setOrderCertain(true);\n \t\t\t\t\tfinal PhotoInterp photo = firstIFD.getPhotometricInterpretation();\n \t\t\t\t\tif (samples.get(s) > 1 || photo == PhotoInterp.RGB) {\n \t\t\t\t\t\tm.setPlanarAxisCount(3);\n \t\t\t\t\t}\n \t\t\t\t\tif ((samples.get(s) != m.getAxisLength(Axes.CHANNEL) &&\n \t\t\t\t\t\t(samples.get(s) % m.getAxisLength(Axes.CHANNEL)) != 0 && (m\n \t\t\t\t\t\t.getAxisLength(Axes.CHANNEL) % samples.get(s)) != 0) ||\n \t\t\t\t\t\tm.getAxisLength(Axes.CHANNEL) == 1 || adjustedSamples.get(s))\n \t\t\t\t\t{\n \t\t\t\t\t\tm.setAxisLength(Axes.CHANNEL, m.getAxisLength(Axes.CHANNEL) *\n \t\t\t\t\t\t\tsamples.get(s));\n \t\t\t\t\t}\n \n \t\t\t\t\tif (m.getAxisLength(Axes.Z) * m.getAxisLength(Axes.TIME) *\n \t\t\t\t\t\tm.getAxisLength(Axes.CHANNEL) > info[s].length &&\n \t\t\t\t\t\t!m.isMultichannel())\n \t\t\t\t\t{\n \t\t\t\t\t\tif (m.getAxisLength(Axes.Z) == info[s].length) {\n \t\t\t\t\t\t\tm.setAxisLength(Axes.TIME, 1);\n \t\t\t\t\t\t\tm.setAxisLength(Axes.CHANNEL, 1);\n \t\t\t\t\t\t}\n \t\t\t\t\t\telse if (m.getAxisLength(Axes.TIME) == info[s].length) {\n \t\t\t\t\t\t\tm.setAxisLength(Axes.Z, 1);\n \t\t\t\t\t\t\tm.setAxisLength(Axes.CHANNEL, 1);\n \t\t\t\t\t\t}\n \t\t\t\t\t\telse if (m.getAxisLength(Axes.CHANNEL) == info[s].length) {\n \t\t\t\t\t\t\tm.setAxisLength(Axes.TIME, 1);\n \t\t\t\t\t\t\tm.setAxisLength(Axes.Z, 1);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tif (omexmlMeta.getPixelsBinDataCount(s) > 1) {\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"OME-TIFF Pixels element contains BinData elements! \"\n \t\t\t\t\t\t\t\t+ \"Ignoring.\");\n \t\t\t\t\t}\n \t\t\t\t\tm.setLittleEndian(firstIFD.isLittleEndian());\n \t\t\t\t\tm.setIndexed(photo == PhotoInterp.RGB_PALETTE &&\n \t\t\t\t\t\tfirstIFD.getIFDValue(IFD.COLOR_MAP) != null);\n \t\t\t\t\tm.setFalseColor(true);\n \t\t\t\t\tm.setMetadataComplete(true);\n \t\t\t\t}\n \t\t\t\tcatch (final NullPointerException exc) {\n \t\t\t\t\tlog().error(\"Incomplete Pixels metadata\", exc);\n \t\t\t\t}\n \t\t\t\tcatch (final FormatException exc) {\n \t\t\t\t\tlog().error(\"Format exception when creating ImageMetadata\", exc);\n \t\t\t\t}\n \t\t\t}\n \n // if (getImageCount() == 1) {\n // CoreMetadata ms0 = core.get(0);\n // ms0.sizeZ = 1;\n // if (!ms0.rgb) {\n // ms0.sizeC = 1;\n // }\n // ms0.sizeT = 1;\n // }\n // metaService.populatePixels(getOmeMeta().getRoot(), this, false, false);\n \t\t\tgetOmeMeta().setRoot((OMEXMLMetadata) getMetadataStoreForConversion());\n \t\t}", "@Before\n\n /**\n * An one dimensional array is created and it is used to run the unit test for Histogram's public methods\n */\n public void setUp() throws FitsException, ClassNotFoundException, IOException {\n\n inFits = FileLoader.loadFits(ImageDataTest.class , fileName);\n frArray = FitsRead.createFitsReadArray(inFits);\n rangeValues = FitsRead.getDefaultRangeValues();\n expectedImage = ImageIO.read(new File(FileLoader.getDataPath(ImageDataTest.class)+imageFileName));\n expectedImageWithMask = ImageIO.read(new File(FileLoader.getDataPath(ImageDataTest.class)+imageWithMaskFileName));\n\n imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n }", "@Override\r\n public void init() {\n Image bgImage = assets().getImage(\"images/bg.png\");\r\n ImageLayer bgLayer = graphics().createImageLayer(bgImage);\r\n graphics().rootLayer().add(bgLayer);\r\n\r\n // Create tiles\r\n tiles = new int[BOARD_MAX_WIDTH][BOARD_MAX_HEIGHT];\r\n printTiles();\r\n\r\n // Place mines at random positions\r\n int placedMines = 0;\r\n Random r = new Random();\r\n while (placedMines < MINES) {\r\n int row = r.nextInt(BOARD_MAX_WIDTH);\r\n int col = r.nextInt(BOARD_MAX_HEIGHT);\r\n if (tiles[row][col] == TILE_EMPTY) {\r\n tiles[row][col] = TILE_MINE;\r\n placedMines++;\r\n }\r\n }\r\n printTiles();\r\n\r\n // Count number of mines around blank tiles\r\n for (int row = 0; row < BOARD_MAX_WIDTH; row++) {\r\n for (int col = 0; col < BOARD_MAX_WIDTH; col++) {\r\n // Check surrounding tiles if mine\r\n if (tiles[row][col] == TILE_MINE) {\r\n for (int rowCheck = -1; rowCheck <= 1; rowCheck++) {\r\n for (int colCheck = -1; colCheck <= 1; colCheck++) {\r\n if (tileExistAndNotMine(row+rowCheck, col+colCheck)) {\r\n tiles[row+rowCheck][col+colCheck]++;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n printTiles();\r\n\r\n // Create tile map\r\n Map<Integer, TileType> tileMap = new HashMap<Integer, TileType>();\r\n tileMap.put(0, TileType.EMPTY);\r\n tileMap.put(1, TileType.ONE);\r\n tileMap.put(2, TileType.TWO);\r\n tileMap.put(3, TileType.THREE);\r\n tileMap.put(4, TileType.FOUR);\r\n tileMap.put(5, TileType.FIVE);\r\n tileMap.put(6, TileType.SIX);\r\n tileMap.put(7, TileType.SEVEN);\r\n tileMap.put(8, TileType.EIGHT);\r\n tileMap.put(9, TileType.MINE);\r\n\r\n // Create a GroupLayer to hold the sprites\r\n GroupLayer groupLayer = graphics().createGroupLayer();\r\n graphics().rootLayer().add(groupLayer);\r\n\r\n // Create graphic tiles\r\n tileList = new ArrayList<Tile>();\r\n for (int row = 0; row < BOARD_MAX_WIDTH; row++) {\r\n for (int col = 0; col < BOARD_MAX_WIDTH; col++) {\r\n Tile tile = new Tile(groupLayer, col*Tile.SIZE, row*Tile.SIZE, tileMap.get(tiles[row][col]), row, col);\r\n tileList.add(tile);\r\n }\r\n }\r\n\r\n // Timer text\r\n CanvasImage canvasImage = graphics().createImage(160, 70);\r\n timerLabel = canvasImage.canvas();\r\n ImageLayer countDownLayer = graphics().createImageLayer(canvasImage);\r\n countDownLayer.setTranslation(180, 10);\r\n graphics().rootLayer().add(countDownLayer);\r\n\r\n // Cleared tiles text\r\n CanvasImage clearedTilesImage = graphics().createImage(160, 70);\r\n clearedTilesLabel = clearedTilesImage.canvas();\r\n ImageLayer clearedTilesLayer = graphics().createImageLayer(clearedTilesImage);\r\n clearedTilesLayer.setTranslation(180, 30);\r\n graphics().rootLayer().add(clearedTilesLayer);\r\n updateClearedTiles();\r\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 800, 1); \n GreenfootImage bg = new GreenfootImage(\"background.jpg\");\n bg.scale(getWidth(), getHeight());\n setBackground(bg);\n initialize();\n \n }", "public final void setImportantImageInfo() {\r\n int ix = 0, iy = 0, iz = 0;\r\n int i;\r\n \r\n i = 0;\r\n if (getDimElem(0).name.equalsIgnoreCase(\"time\")) {\r\n i = 1;\r\n }\r\n final String firstDim = getDimElem(i).name;\r\n Preferences.debug(\"firstDim = \" + firstDim + \"\\n\", Preferences.DEBUG_FILEIO);\r\n\r\n final String secondDim = getDimElem(i+1).name;\r\n Preferences.debug(\"secondDim = \" + secondDim + \"\\n\", Preferences.DEBUG_FILEIO);\r\n\r\n String thirdDim = null;\r\n if (getExtents().length > 2) {\r\n thirdDim = getDimElem(i+2).name;\r\n Preferences.debug(\"thirdDim = \" + thirdDim + \"\\n\", Preferences.DEBUG_FILEIO);\r\n }\r\n\r\n for (i = 0; i < varArray.length; i++) {\r\n\r\n if (varArray[i].name.equals(\"image\")) {\r\n setOffset(varArray[i].begin);\r\n Preferences.debug(\"Image offset = \" + getOffset() + \"\\n\", Preferences.DEBUG_FILEIO);\r\n\r\n switch (varArray[i].nc_type) {\r\n\r\n case NC_BYTE:\r\n if (varArray[i].signtype.equals(\"unsigned\")) {\r\n Preferences.debug(\"Data type = UBYTE\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.UBYTE);\r\n } else {\r\n Preferences.debug(\"Data type = BYTE\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.BYTE);\r\n }\r\n\r\n break;\r\n\r\n case NC_SHORT:\r\n if (varArray[i].signtype.equals(\"unsigned\")) {\r\n Preferences.debug(\"Data type = USHORT\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.USHORT);\r\n } else {\r\n Preferences.debug(\"Data type = SHORT\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.SHORT);\r\n }\r\n\r\n break;\r\n\r\n case NC_INT:\r\n if (varArray[i].signtype.equals(\"unsigned\")) {\r\n Preferences.debug(\"Data type = UINTEGER\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.UINTEGER);\r\n } else {\r\n Preferences.debug(\"Data type = INTEGER\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.INTEGER);\r\n }\r\n\r\n break;\r\n\r\n case NC_FLOAT:\r\n Preferences.debug(\"Data type = FLOAT\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.FLOAT);\r\n break;\r\n\r\n case NC_DOUBLE:\r\n Preferences.debug(\"Data type = DOUBLE\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.DOUBLE);\r\n break;\r\n\r\n default:\r\n Preferences.debug(\"varArray[\" + i + \"].nc_type illegally = \" + varArray[i].nc_type + \"\\n\", \r\n \t\tPreferences.DEBUG_FILEIO);\r\n MipavUtil.displayError(\"Invalid type in FileInfoMinc\");\r\n }\r\n\r\n for (final FileMincAttElem elem : varArray[i].vattArray) {\r\n if (elem.name.equals(\"valid_range\")) {\r\n\r\n switch (elem.nc_type) {\r\n\r\n case NC_BYTE:\r\n vmin = ((Byte) elem.values[0]).byteValue();\r\n vmax = ((Byte) elem.values[1]).byteValue();\r\n break;\r\n\r\n case NC_CHAR:\r\n vmin = ((Character) elem.values[0]).charValue();\r\n vmax = ((Character) elem.values[1]).charValue();\r\n break;\r\n\r\n case NC_SHORT:\r\n vmin = ((Short) elem.values[0]).shortValue();\r\n vmax = ((Short) elem.values[1]).shortValue();\r\n break;\r\n\r\n case NC_INT:\r\n vmin = ((Integer) elem.values[0]).intValue();\r\n vmax = ((Integer) elem.values[1]).intValue();\r\n break;\r\n\r\n case NC_FLOAT:\r\n vmin = ((Float) elem.values[0]).floatValue();\r\n vmax = ((Float) elem.values[1]).floatValue();\r\n break;\r\n\r\n case NC_DOUBLE:\r\n vmin = ((Double) elem.values[0]).doubleValue();\r\n vmax = ((Double) elem.values[1]).doubleValue();\r\n }\r\n\r\n Preferences.debug(\"vmin = \" + vmin + \"\\n\", Preferences.DEBUG_FILEIO);\r\n Preferences.debug(\"vmax = \" + vmax + \"\\n\", Preferences.DEBUG_FILEIO);\r\n } else if (elem.name.equals(\"valid_max\")) {\r\n\r\n switch (elem.nc_type) {\r\n\r\n case NC_BYTE:\r\n vmax = ((Byte) elem.values[0]).byteValue();\r\n break;\r\n\r\n case NC_CHAR:\r\n vmax = ((Character) elem.values[0]).charValue();\r\n break;\r\n\r\n case NC_SHORT:\r\n vmax = ((Short) elem.values[0]).shortValue();\r\n break;\r\n\r\n case NC_INT:\r\n vmax = ((Integer) elem.values[0]).intValue();\r\n break;\r\n\r\n case NC_FLOAT:\r\n vmax = ((Float) elem.values[0]).floatValue();\r\n break;\r\n\r\n case NC_DOUBLE:\r\n vmax = ((Double) elem.values[0]).doubleValue();\r\n }\r\n\r\n Preferences.debug(\"vmax = \" + vmax + \"\\n\", Preferences.DEBUG_FILEIO);\r\n } else if (elem.name.equals(\"valid_min\")) {\r\n\r\n switch (elem.nc_type) {\r\n\r\n case NC_BYTE:\r\n vmin = ((Byte) elem.values[0]).byteValue();\r\n break;\r\n\r\n case NC_CHAR:\r\n vmin = ((Character) elem.values[0]).charValue();\r\n break;\r\n\r\n case NC_SHORT:\r\n vmin = ((Short) elem.values[0]).shortValue();\r\n break;\r\n\r\n case NC_INT:\r\n vmin = ((Integer) elem.values[0]).intValue();\r\n break;\r\n\r\n case NC_FLOAT:\r\n vmin = ((Float) elem.values[0]).floatValue();\r\n break;\r\n\r\n case NC_DOUBLE:\r\n vmin = ((Double) elem.values[0]).doubleValue();\r\n }\r\n\r\n Preferences.debug(\"vmin = \" + vmin + \"\\n\", Preferences.DEBUG_FILEIO);\r\n }\r\n }\r\n } else if (varArray[i].name.equals(thirdDim)) {\r\n axisOrientation[0] = FileInfoMinc.setOrientType(thirdDim, (varArray[i].step > 0));\r\n ix = i;\r\n } else if (varArray[i].name.equals(secondDim)) {\r\n axisOrientation[1] = FileInfoMinc.setOrientType(secondDim, (varArray[i].step > 0));\r\n iy = i;\r\n } else if (varArray[i].name.equals(firstDim)) {\r\n axisOrientation[2] = FileInfoMinc.setOrientType(firstDim, (varArray[i].step > 0));\r\n iz = i;\r\n }\r\n }\r\n\r\n if ( (varArray[ix].cosines != null) && (varArray[iy].cosines != null) && (varArray[iz].cosines != null)) {\r\n final TransMatrix mat = new TransMatrix(3);\r\n mat.set(0, 0, varArray[ix].cosines[0]);\r\n mat.set(1, 0, varArray[ix].cosines[1]);\r\n mat.set(2, 0, varArray[ix].cosines[2]);\r\n mat.set(0, 1, varArray[iy].cosines[0]);\r\n mat.set(1, 1, varArray[iy].cosines[1]);\r\n mat.set(2, 1, varArray[iy].cosines[2]);\r\n mat.set(0, 2, varArray[iz].cosines[0]);\r\n mat.set(1, 2, varArray[iz].cosines[1]);\r\n mat.set(2, 2, varArray[iz].cosines[2]);\r\n axisOrientation = FileInfoMinc.getAxisOrientation(mat);\r\n\r\n if (varArray[ix].step < 0) {\r\n axisOrientation[0] = FileInfoBase.oppositeOrient(axisOrientation[0]);\r\n }\r\n\r\n if (varArray[iy].step < 0) {\r\n axisOrientation[1] = FileInfoBase.oppositeOrient(axisOrientation[1]);\r\n }\r\n\r\n if (varArray[iz].step < 0) {\r\n axisOrientation[2] = FileInfoBase.oppositeOrient(axisOrientation[2]);\r\n }\r\n }\r\n\r\n for (i = 0; i < axisOrientation.length; i++) {\r\n\r\n switch (axisOrientation[i]) {\r\n\r\n case ORI_UNKNOWN_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_UNKNOWN_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_R2L_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_R2L_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_L2R_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_L2R_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_P2A_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_P2A_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_A2P_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_A2P_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_I2S_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_I2S_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_S2I_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_S2I_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n }\r\n }\r\n }", "public static void registerDimensions()\r\n\t{\r\n\t\t//DimensionManager.registerDimension(2, THEFUTURE);\r\n\t}", "private static void init() {\n\t\t// TODO Auto-generated method stub\n\t\tviewHeight = VIEW_HEIGHT;\n\t\tviewWidth = VIEW_WIDTH;\n\t\tfwidth = FRAME_WIDTH;\n\t\tfheight = FRAME_HEIGHT;\n\t\tnMines = N_MINES;\n\t\tcellSize = MINE_SIZE;\n\t\tnRows = N_MINE_ROW;\n\t\tnColumns = N_MINE_COLUMN;\n\t\tgameOver = win = lost = false;\n\t}", "private void setUpBackGround() {\n try {\n setBackGround(new Image(new FileInputStream(\"images/backgrounds/battlemap0_background@2x.png\")));\n } catch (FileNotFoundException ignored) {\n }\n\n\n try {\n ImageView middleGround = new ImageView(new Image(new FileInputStream(\"images/gameIcons/middleGround/battlemap0_middleground.png\")));\n middleGround.setFitHeight(windowHeight);\n middleGround.setFitWidth(windowWidth);\n addComponent(new NodeWrapper(middleGround));\n } catch (FileNotFoundException ignored) {\n }\n\n try {\n ImageView foreGround = new ImageView(new Image(new FileInputStream(\"images/foregrounds/battlemap0_foreground_002@2x.png\")));\n foreGround.setPreserveRatio(true);\n foreGround.setFitWidth(windowHeight / 3);\n foreGround.relocate(windowWidth - foreGround.getFitWidth(), windowHeight - foreGround.getFitWidth() * foreGround.getImage().getHeight() / foreGround.getImage().getWidth());\n addComponent(new NodeWrapper(foreGround));\n } catch (FileNotFoundException ignored) {\n }\n }", "protected void init() {\n \t\r\n ratios.put(1, 32.0f);\r\n ratios.put(2, 16.0f);\r\n ratios.put(3, 8.0f);\r\n ratios.put(4, 4.0f);\r\n ratios.put(5, 2.0f);\r\n ratios.put(6, 1.0f);\r\n }", "void onRenderBackground(RenderArguments arguments);", "public void setup() {\n\t\tthis.image = new BufferedImage(maxXPos, maxYPos, BufferedImage.TYPE_4BYTE_ABGR);\n\t\tthis.graphics = getImage().createGraphics();\n\t}", "void backgroundRefresh();", "private void initializeHeightData() {\n nineHeights[0] = 1f;\n nineHeights[1] = 0f;\n nineHeights[2] = 1f;\n nineHeights[3] = 0f;\n nineHeights[4] = 0.5f;\n nineHeights[5] = 0f;\n nineHeights[6] = 1f;\n nineHeights[7] = 0f;\n nineHeights[8] = 1f;\n }", "@Override\n\tpublic void init() {\n\t\tEffect().registerEffect(40, 40, 3, \"ExplosionSheet.png\");\n\t\tbg = new Background();\n\t\tobj = new TestObj();\n\t\tobj.init();\n\t\ttest = new Test2[50];\n\t\tfor(int x = 0; x < test.length; x++ )\n\t\t\ttest[x] = new Test2(x*30-600,30 *(float)Math.pow(-1, x), \"g.png\");\n\t\t\n\t\ttest2 = new Test2[50000];\n\t\tfor(int x = 0; x < test2.length; x++ )\n\t\t\ttest2[x] = new Test2(x*30-600,150+30 *(float)Math.pow(-1, x), \"AlienPawn.png\");\n\t\t\n\t\ttest3 = new Test2[50000];\n\t\tfor(int x = 0; x < test3.length; x++ )\n\t\t\ttest3[x] = new Test2(x*30-600,-200+30 *(float)Math.pow(-1, x), \"AlienPawn - Copy.png\");\n\t\n\t}", "private void setup() {\n // Set the shell layout to a Grid layout.\n shell.setLayout(new GridLayout(1, false));\n \n // Read lockedColorMaps.tbl to get the list of locked color maps\n lockedCmaps = ColorMapUtil.readLockedColorMapFile();\n \n availColorMaps = new ArrayList<String>();\n availColorMapCats = ColorMapUtil.getColorMapCategories();\n \n if( seldCmapCat == null ) {\n \tseldCmapCat = availColorMapCats[0];\n }\n \n// for( String cat : availColorMapCats ) {\n for( String cmap : ColorMapUtil.listColorMaps(seldCmapCat) ) {\n \tif( seldCmapName == null ) {\n \t\tseldCmapName = cmap;\n \t\tif( !initColorMap() ) {\n \t\tseldCmapName = null;\n \t\t\tcontinue; // don't add to the list\n \t\t}\n \t}\n \tavailColorMaps.add(cmap);\n }\n// }\n \t\n createSliderData();\n\n // Initialize the components.\n initComponents(); \n \n // Pack the components.\n shell.pack();\n }", "public void setup() {\n\n\t\t// example of loading an image file - edit to suit your project\n\t\ttry {\n\t\t\tbackground = ImageIO.read(new File(\"angrybirds.jpg\"));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// your code here\n\t\t\n\t\t\n\t}", "private void updateBackground() {\n\t\tif (World.getObjects().size() < numOfParticles) {\n\t\t\tfloat x = (float) (Math.random()\n\t\t\t\t\t* (Screen.getWidth() + LEDLogo.WIDTH * 2) - LEDLogo.WIDTH), y = (float) (Math\n\t\t\t\t\t.random() * (Screen.getHeight() + LEDLogo.HEIGHT * 2) - LEDLogo.HEIGHT);\n\t\t\tWorld.add(new LEDLogo(x, y, (float) Math.random() * 0.8f + 0.2f));\n\t\t}\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n getSupportActionBar().hide();\n\n /*if (imagePath != null){\n Drawable d = Drawable.createFromPath(imagePath);\n ImageView background_image = findViewById(R.id.background_image);\n background_image.setImageDrawable(d);\n //ConstraintLayout main = findViewById(R.id.main);\n //main.setBackground(d);\n }*/\n\n init();\n }", "public void setBackgroundColor(int i, int i2, boolean z, boolean z2) {\n MotionBackgroundDrawable motionBackgroundDrawable;\n if (i2 == 0) {\n this.backgroundColor = i;\n } else if (i2 == 1) {\n this.backgroundGradientColor1 = i;\n } else if (i2 == 2) {\n this.backgroundGradientColor2 = i;\n } else if (i2 == 3) {\n this.backgroundGradientColor3 = i;\n }\n updatePlayAnimationView(z2);\n if (this.backgroundCheckBoxView != null) {\n int i3 = 0;\n while (true) {\n WallpaperCheckBoxView[] wallpaperCheckBoxViewArr = this.backgroundCheckBoxView;\n if (i3 >= wallpaperCheckBoxViewArr.length) {\n break;\n }\n if (wallpaperCheckBoxViewArr[i3] != null) {\n wallpaperCheckBoxViewArr[i3].setColor(i2, i);\n }\n i3++;\n }\n }\n if (this.backgroundGradientColor2 != 0) {\n if (this.intensitySeekBar != null && Theme.getActiveTheme().isDark()) {\n this.intensitySeekBar.setTwoSided(true);\n }\n Drawable background = this.backgroundImage.getBackground();\n if (background instanceof MotionBackgroundDrawable) {\n motionBackgroundDrawable = (MotionBackgroundDrawable) background;\n } else {\n motionBackgroundDrawable = new MotionBackgroundDrawable();\n motionBackgroundDrawable.setParentView(this.backgroundImage);\n if (this.rotatePreview) {\n motionBackgroundDrawable.rotatePreview(false);\n }\n }\n motionBackgroundDrawable.setColors(this.backgroundColor, this.backgroundGradientColor1, this.backgroundGradientColor2, this.backgroundGradientColor3);\n this.backgroundImage.setBackground(motionBackgroundDrawable);\n this.patternColor = motionBackgroundDrawable.getPatternColor();\n this.checkColor = NUM;\n } else if (this.backgroundGradientColor1 != 0) {\n this.backgroundImage.setBackground(new GradientDrawable(BackgroundGradientDrawable.getGradientOrientation(this.backgroundRotation), new int[]{this.backgroundColor, this.backgroundGradientColor1}));\n int patternColor2 = AndroidUtilities.getPatternColor(AndroidUtilities.getAverageColor(this.backgroundColor, this.backgroundGradientColor1));\n this.checkColor = patternColor2;\n this.patternColor = patternColor2;\n } else {\n this.backgroundImage.setBackgroundColor(this.backgroundColor);\n int patternColor3 = AndroidUtilities.getPatternColor(this.backgroundColor);\n this.checkColor = patternColor3;\n this.patternColor = patternColor3;\n }\n if (!Theme.hasThemeKey(\"chat_serviceBackground\") || (this.backgroundImage.getBackground() instanceof MotionBackgroundDrawable)) {\n int i4 = this.checkColor;\n Theme.applyChatServiceMessageColor(new int[]{i4, i4, i4, i4}, this.backgroundImage.getBackground());\n } else if (Theme.getCachedWallpaper() instanceof MotionBackgroundDrawable) {\n int color = Theme.getColor(\"chat_serviceBackground\");\n Theme.applyChatServiceMessageColor(new int[]{color, color, color, color}, this.backgroundImage.getBackground());\n }\n ImageView imageView = this.backgroundPlayAnimationImageView;\n if (imageView != null) {\n imageView.setColorFilter(new PorterDuffColorFilter(Theme.getColor(\"chat_serviceText\"), PorterDuff.Mode.MULTIPLY));\n }\n ImageView imageView2 = this.messagesPlayAnimationImageView;\n if (imageView2 != null) {\n imageView2.setColorFilter(new PorterDuffColorFilter(Theme.getColor(\"chat_serviceText\"), PorterDuff.Mode.MULTIPLY));\n }\n BackupImageView backupImageView = this.backgroundImage;\n if (backupImageView != null) {\n backupImageView.getImageReceiver().setColorFilter(new PorterDuffColorFilter(this.patternColor, this.blendMode));\n this.backgroundImage.getImageReceiver().setAlpha(Math.abs(this.currentIntensity));\n this.backgroundImage.invalidate();\n if (!Theme.getActiveTheme().isDark() || !(this.backgroundImage.getBackground() instanceof MotionBackgroundDrawable)) {\n this.backgroundImage.getImageReceiver().setGradientBitmap((Bitmap) null);\n SeekBarView seekBarView = this.intensitySeekBar;\n if (seekBarView != null) {\n seekBarView.setTwoSided(false);\n }\n } else {\n SeekBarView seekBarView2 = this.intensitySeekBar;\n if (seekBarView2 != null) {\n seekBarView2.setTwoSided(true);\n }\n if (this.currentIntensity < 0.0f) {\n this.backgroundImage.getImageReceiver().setGradientBitmap(((MotionBackgroundDrawable) this.backgroundImage.getBackground()).getBitmap());\n }\n }\n SeekBarView seekBarView3 = this.intensitySeekBar;\n if (seekBarView3 != null) {\n seekBarView3.setProgress(this.currentIntensity);\n }\n }\n RecyclerListView recyclerListView = this.listView2;\n if (recyclerListView != null) {\n recyclerListView.invalidateViews();\n }\n FrameLayout frameLayout2 = this.backgroundButtonsContainer;\n if (frameLayout2 != null) {\n int childCount = frameLayout2.getChildCount();\n for (int i5 = 0; i5 < childCount; i5++) {\n this.backgroundButtonsContainer.getChildAt(i5).invalidate();\n }\n }\n FrameLayout frameLayout3 = this.messagesButtonsContainer;\n if (frameLayout3 != null) {\n int childCount2 = frameLayout3.getChildCount();\n for (int i6 = 0; i6 < childCount2; i6++) {\n this.messagesButtonsContainer.getChildAt(i6).invalidate();\n }\n }\n RadialProgress2 radialProgress2 = this.radialProgress;\n if (radialProgress2 != null) {\n radialProgress2.setColors(\"chat_serviceBackground\", \"chat_serviceBackground\", \"chat_serviceText\", \"chat_serviceText\");\n }\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n for( int i = 0; i < IMAGE_COUNT; i++)\n {\n images[i] = new GreenfootImage(\"frame_\" + i + \"_delay-0.06s.gif\");\n }\n \n setBackground(images [0]); \n \n }", "private void updateDimensions()\n\t{\n\t\tthis.drawer.setSprite(this.drawer.getSprite().withDimensions(\n\t\t\t\tgetMaster().getDimensions()));\n\t\tthis.lastDimensions = getMaster().getDimensions();\n\t}", "private void loadBackground() {\n RelativeLayout thisRL = (RelativeLayout) findViewById(R.id.relativeLayout);\n\n // randomly chooses a background image for the splash screen\n int r = new Random().nextInt(NUM_BACKGROUNDS);\n switch (r) {\n case 0:\n thisRL.setBackgroundResource(R.drawable.splash_cliff);\n break;\n case 1:\n thisRL.setBackgroundResource(R.drawable.splash_notebook);\n break;\n case 2:\n thisRL.setBackgroundResource(R.drawable.splash_map);\n break;\n default:\n thisRL.setBackgroundResource(R.drawable.splash_notebook);\n }\n }", "@Override\n\n //-----------------\n\n public void init() {\n //test(); // <---------------- Uncomment to TEST!\n\n // %-distribution of RED, BLUE and NONE\n double[] dist = {0.49, 0.49, 0.02};\n\n // Number of locations (places) in world (square)\n int nLocations = 950;\n\n Actor[] distArray = distribution(nLocations, dist); //Generates array with correct distribution.\n distArray = shuffle(distArray); //Shuffles array\n world = toMatrix(distArray, nLocations, world); //Generates the start world.\n // Should be last\n fixScreenSize(nLocations);\n }", "public abstract void init(int w, int h);", "public void setup()\n {\n this.imageStore = new ImageStore(\n createImageColored(TILE_WIDTH, TILE_HEIGHT, DEFAULT_IMAGE_COLOR));\n this.world = new WorldModel(WORLD_ROWS, WORLD_COLS,\n createDefaultBackground(imageStore));\n this.view = new WorldView(VIEW_ROWS, VIEW_COLS, this, world,\n TILE_WIDTH, TILE_HEIGHT);\n this.scheduler = new EventScheduler(timeScale);\n\n loadImages(IMAGE_LIST_FILE_NAME, imageStore, this);\n loadWorld(world, LOAD_FILE_NAME, imageStore);\n\n scheduleActions(world, scheduler, imageStore);\n\n next_time = System.currentTimeMillis() + TIMER_ACTION_PERIOD;\n click = false;\n }", "private void setBackground() throws IOException{\n\t\tBufferedImage backgroundBufferedImage = ImageLoader.getBufferedImage(backgroundImagePath);\n\t\tmainWindow.setBackgroundImage(backgroundBufferedImage);\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tfm = FinalBitmap.create(getActivity());\r\n\t\t\r\n\t}", "void enableBackgroundData();", "void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}", "private void initSize(Context context) {\n }", "public void initVariables() {\n\tif (CL_Initializer.headerTemplateFile == null) {\n\n\t if (ImageHeader.imageExists(CL_Initializer.inputFile)) {\n\t\tCL_Initializer.headerTemplateFile = CL_Initializer.inputFile;\n\t }\n\t else if (imageType == imageType.BEDPOSTX || imageType == imageType.BEDPOSTX_DYAD) {\n\n\t\tString bedpostxRoot = BedpostxTractographyImage.getBedpostxInputRoot(bedpostxDir);\n\t\tString ext = BedpostxTractographyImage.getBedpostxImageExtension(bedpostxRoot);\n\t\t\n\t\tCL_Initializer.headerTemplateFile = bedpostxRoot + \"dyads1\" + ext;\n\t \n\t }\n\t \n\t}\n\n\t\n if (CL_Initializer.headerTemplateFile != null) { \n logger.info(\"Defining input physical space from \" + CL_Initializer.headerTemplateFile);\n CL_Initializer.initInputSpaceAndHeaderOptions();\n }\n else if (CL_Initializer.voxelDims[0] > 0.0) { \n CL_Initializer.initInputSpaceAndHeaderOptions();\n }\n else if (seedFile != null) {\n logger.info(\"Defining input physical space from seed file\");\n CL_Initializer.headerTemplateFile = seedFile;\n CL_Initializer.initInputSpaceAndHeaderOptions();\n }\n \n\n\n xDataDim = CL_Initializer.dataDims[0];\n yDataDim = CL_Initializer.dataDims[1];\n zDataDim = CL_Initializer.dataDims[2];\n \n xVoxelDim = CL_Initializer.voxelDims[0];\n yVoxelDim = CL_Initializer.voxelDims[1];\n zVoxelDim = CL_Initializer.voxelDims[2];\n\n if (xVoxelDim == 0.0) {\n // failed to get a definition of input space from anywhere\n throw new LoggedException(\"Definition of input space required, use -header\");\n }\n\n\n voxelToPhysicalTrans = CL_Initializer.headerTemplate.getVoxelToPhysicalTransform();\n\n\n\tif (anisThresh > 0.0) {\n\t switch(imageType) {\n\t\t\n\t case DT : case MULTITENSOR : case BEDPOSTX : case BEDPOSTX_DYAD :\n\t\t// No problem since these input formats have anisotropy information built in\n\t\tbreak;\n\t\t\n\t default: \n\t\t\n\t\tif (anisMapFile == null) {\n\t\t throw new LoggedException(\"Input data does not contain anisotropy, anisotropy map (-anisfile) must be \" +\n\t\t\t\t\t \"supplied when -anisthresh is used\");\n\t\t}\n\t }\n\t}\n\n\n // no interpolation with FACT, by definition\n if (trackingAlgorithm == TrackingAlgorithm.FACT) {\n\n if (dataInterpolation != DataInterpolation.NEAREST_NEIGHBOUR) { \n logger.warning(\"Interpolation is not compatible with FACT tracking, using Euler tracker with step size \" + stepSize + \" mm\");\n }\n\n trackingAlgorithm = TrackingAlgorithm.EULER;\n }\n\n \n ran = new MTRandom(seed);\n \n \n // get seeds\n if (seedFile != null) {\n \n VoxelROI imageROIs = new VoxelROI(seedFile, CL_Initializer.headerTemplate);\n\n allROIs = imageROIs.getAllRegions();\n \n }\n else if (seedList != null) {\n allROIs = new RegionOfInterest[] {PointListROI.readPoints(seedList, CL_Initializer.headerTemplate)};\n }\n\telse {\n\t throw new LoggedException(\"No seed points specified\");\n\t}\n \n \n }", "public BoxBackground(float[] c)\n {\n super(c);\n\n texture = new TextureComponent2D[6];\n\n stateChanged = false;\n textureIdMap = new HashMap[6];\n\n for(int i = 0; i < 6; i++)\n textureIdMap[i] = new HashMap<GL, Integer>();\n\n generateBoxGeom();\n }", "public void setup() {\n\tsize(800, 600);\n\t// other stuff.\n }", "public TileManager(int xCells, int yCells, int brushSize, boolean brushMode, boolean isBlack, ControlP5 cp5, int background)\n {\n somethingToRender = false;\n this.cp5 = cp5;\n this.background = background;\n previews = new PImage[8];\n previewGradients = new PImage[8];\n previewHover = new boolean[8];\n tiles = new Tile[8];\n this.xCells = xCells;\n this.yCells = yCells;\n this.brushSize = brushSize;\n this.brushMode = brushMode;\n this.isBlack = isBlack;\n newTile();\n newTile();\n }", "private void init() {\n\n\t\tinitializeLists();\n\t\tcreateTiles();\n\t\tcreateTileViews();\n\t\tshuffleTiles();\n\n\t}", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }", "private void init() {\n \t\t// Initialise border cells as already visited\n \t\tfor (int x = 0; x < size + 2; x++) {\n \t\t\tvisited[x][0] = true;\n \t\t\tvisited[x][size + 1] = true;\n \t\t}\n \t\tfor (int y = 0; y < size + 2; y++) {\n \t\t\tvisited[0][y] = true;\n \t\t\tvisited[size + 1][y] = true;\n \t\t}\n \t\t\n \t\t\n \t\t// Initialise all walls as present\n \t\tfor (int x = 0; x < size + 2; x++) {\n \t\t\tfor (int y = 0; y < size + 2; y++) {\n \t\t\t\tnorth[x][y] = true;\n \t\t\t\teast[x][y] = true;\n \t\t\t\tsouth[x][y] = true;\n \t\t\t\twest[x][y] = true;\n \t\t\t}\n \t\t}\n \t}", "private void init() {\n clearCaches();\n }", "public int getBackgroundSize() {\r\n\t\treturn backgrounds.size();\r\n\t}", "public void beforeUpdate(MBFImage frame) {\n\n\n \t MBFImage input = frame;\n\n\n\n\n \t//MBFImage input = null;;\n\t\t/*try {\n\t\t\tinput = ImageUtilities.readMBF(new File(\"./resources/yolo3.jpg\"));\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}*/\n \tinput = ResizeProcessor.halfSize(input);\n \tinput = ResizeProcessor.halfSize(input);\n \tinput = ResizeProcessor.halfSize(input);\n \tinput = ResizeProcessor.halfSize(input);\n \tinput = ResizeProcessor.halfSize(input);\n \n \t\n \t/*HistogramModel model = new HistogramModel(1,1);\n \tmodel.estimateModel(image);\n \tMultidimensionalHistogram histogram = model.histogram;\n \t//System.out.println(model.colourAverage(0));\n \tSystem.out.println(histogram);\n \t\n \tfor (int i = 0; i < 100; i++) {\n\t\t\tSystem.out.println(model.colourAverage(i));\n\t\t}*/\n \t \n \t//*******************************************\n \t//To start our implementation, we’ll first apply a colour-space transform to the image:\n \tinput = ColourSpace.convert(input, ColourSpace.CIE_Lab);\n \t//We can then construct the K-Means algorithm:\n \tFloatKMeans cluster = FloatKMeans.createExact(2);\n \t//The parameter (2) is the number of clusters or classes we wish the algorithm to generate. \n \t//We can optionally provide a second integer argument that controls the maximum number of iterations of the \n \t//algorithm (the default is 30 iterations if we don't specify otherwise).\n \t\n \t\n \t//The FloatKMeans algorithm takes its input as an array of floating point vectors (float[][]). \n \t//We can flatten the pixels of an image into the required form using the getPixelVectorNative() method:\n \tfloat[][] imageData = input.getPixelVectorNative(new float[input.getWidth() * input.getHeight()][3]);\n \t\n \t//The K-Means algorithm can then be run to group all the pixels into the requested number of classes:\n \tFloatCentroidsResult result = cluster.cluster(imageData);\n \t\n \t//Each class or cluster produced by the K-Means algorithm has an index, starting from 0. \n \t//Each class is represented by its centroid (the average location of all the points belonging to the class). \n \t//We can print the coordinates of each centroid:\n\t\tfloat[][] centroids = result.centroids;\n\t\tfor (float[] fs : centroids) {\n\t\t //System.out.println(Arrays.toString(fs));\n\t\t}//Now is a good time to test the code. Running it should print the (L, a, b) coordinates of each of the classes.\n\t\t\n\t\t\n\t\t\n\t\t//takes a vector (the L, a, b value of a single pixel) and returns the index of the class that it belongs to. \n\t\t//We’ll start by creating an image that visualises the pixels and their respective classes \n\t\t//by replacing each pixel in the input image with the centroid of its respective class:\n\t\tHardAssigner<float[],?,?> assigner = result.defaultHardAssigner();\n\t\tfor (int y=0; y<input.getHeight(); y++) {\n\t\t for (int x=0; x<input.getWidth(); x++) {\n\t\t float[] pixel = input.getPixelNative(x, y);\n\t\t int centroid = assigner.assign(pixel);\n\t\t input.setPixelNative(x, y, centroids[centroid]);\n\t\t }\n\t\t}\n\t\t\n\t\t//We can then display the resultant image. Note that we need to convert the image back to RGB colour space for it to display properly:\n\t\tinput = ColourSpace.convert(input, ColourSpace.RGB);\n\t\t//DisplayUtilities.display(input);\n\t\t\n\t\t\n\t\t\n\t\t//The GreyscaleConnectedComponentLabeler class can be used to find the connected components:\n\t\t//Note that the GreyscaleConnectedComponentLabeler only processes greyscale images \n\t\tGreyscaleConnectedComponentLabeler labeler = new GreyscaleConnectedComponentLabeler();\n\t\tList<ConnectedComponent> components = labeler.findComponents(input.flatten());\n\t\t\n\t\t\n\t\t\n\t\t//The ConnectedComponent class has many useful methods for extracting information about the shape of the region. \n\t\t//Lets draw an image with the components numbered on it. We’ll use the centre of mass of each region to \n\t\t//position the number and only render numbers for regions that are over a certain size (50 pixels in this case):\n\t\tColor[] colors = new Color[3];\n\t\tint i = 0;\n\t\tConnectedComponent biggestComp = components.get(0);\n\t\tfor (ConnectedComponent comp : components) {\n\t\t\tif (comp.calculateArea() > biggestComp.calculateArea()){\n\t\t\t\tbiggestComp = comp;\n\t\t\t}\n\t\t}\n\t\tfor (int k=0; k<1;k++){\n\t\t\t\n\t\t //if (comp.calculateArea() <input.getWidth()/2) \n\t\t // continue;\n\t\t\tConnectedComponent comp = biggestComp;\n\t\t \n\t\t /* List<Pixel> boundries = comp.getInnerBoundary(ConnectMode.CONNECT_4);\n\t\t \n\t\t for (int j = 0; j < boundries.size(); j++) {\n\t\t\t\tfloat x = boundries.get(j).getX()*32;\n\t\t\t\tfloat y = boundries.get(j).getY()*32;\n\t\t\t\tboundries.get(j).setX(x);\n\t\t\t\tboundries.get(j).setY(y);\n\t\t\t}\n\t\t \n\t\t\tframe.drawConnectedPoints(boundries, RGBColour.WHITE);*/\n\t\t \n\t\t //comp.pixels.iterator().next().binaryHeader();\n\t\t\t\n\t\t int color1 = (int) (Double.parseDouble(comp.extractPixels1d(input).getBand(0).toString().split(\" \")[0].substring(1).replace(\",\",\".\"))*250);\n\t\t int color2 = (int) (Double.parseDouble(comp.extractPixels1d(input).getBand(1).toString().split(\" \")[0].substring(1).replace(\",\",\".\"))*250);\n\t\t int color3 = (int) (Double.parseDouble(comp.extractPixels1d(input).getBand(2).toString().split(\" \")[0].substring(1).replace(\",\",\".\"))*250);\n\t\t \n\t\t int R = color1;\n\t\t int G = color2;\n\t\t int B = color3;\n\t\t \n\t\t //System.out.println(color1 + \",\" + color2 +\",\" + color3);\n\t\t Color tempColor = new Color(color1, color2, color3);\n\t\t //System.out.println(tempColor);\n\t\t float[] hsbColor = new float[3];\n\t\t \n\t\t //System.out.println(getNameReflection(tempColor));\n\t\t //System.out.print(colorUtils.getColorNameFromColor(tempColor));\n\t\t \n\t\t \n\t\t float Y = (R+R+B+G+G+G)/6;\n\t\t //System.out.println(\"y: \" + Y);\n\t\t\t\n\t\t //System.out.println(tempColor.RGBtoHSB(color1, color2, color3, hsbColor));\n\t\t \n\t\t\tfor (float f : hsbColor) {\n\t\t\t\t//System.out.println(\"hihi: \" + f);\n\t\t\t}\n\t\t\t//input.drawText(\"Point:\" + comp.calculateCentroidPixel().binaryHeader(), comp.calculateCentroidPixel(), HersheyFont.TIMES_MEDIUM, 20);\n\t\t\t//frame.drawText(\"Y:\" + Y, comp.calculateCentroidPixel().x*32,comp.calculateCentroidPixel().y*32, HersheyFont.TIMES_MEDIUM, 20);\n\t\t\t//frame.drawText(colorUtils.getMoodFromColor(tempColor), comp.calculateCentroidPixel().x*32,comp.calculateCentroidPixel().y*32, HersheyFont.TIMES_MEDIUM, 50);\n\t\t\t//frame.drawText(colorUtils.getColorNameFromColor(tempColor), comp.calculateCentroidPixel().x*32,comp.calculateCentroidPixel().y*32, HersheyFont.TIMES_MEDIUM, 20);\n\t\t\t\n\t\t\t\n\t\t colors[i]=tempColor;\n\t\t if (i==2){\n\t\t \tbreak;\n\t\t }\n\t\t System.out.println();\n\t\t i++;\n\t\t //System.out.println(\"colourspace: \"+comp.extractPixels1d(input).getBand(0).split(\"+\") + \",\" + comp.extractPixels1d(input).getBand(1) + \",\" + comp.extractPixels1d(input).getBand(2));\n\t\t //System.out.println(\"yolo : \" + comp.extractPixels1d(input).\n\t\t \t\n\t\t //System.out.println(comp.pixels.iterator().next().binaryHeader());\n\t\t input.drawText(\"color: \" + comp.pixels.iterator().next().binaryHeader(),comp.calculateCentroidPixel(), HersheyFont.TIMES_MEDIUM, 20);\n\t\t \n\t\t}\n\t\t//Finally, we can display the image with the labels:\n\n\t\t//DisplayUtilities.display(input);\n\t\t\n\t\t\n\t\t\n\t\t\n \t\n }", "@Override\n\tpublic void init() \n\t{\n\t\tthis.m_view.setCenter(new Vector2f(1024f,1024f));\n\t\t// initilisation de m_centerSought\n\t\tthis.m_centerSought = this.m_view.getCenter();\n\t\t// zoom\n\t\tthis.m_zoom = this.m_zoomSought = 1f;\t\t\n\t\t// size\n\t\tthis.m_sizeNormal = m_size = m_sizeSought = m_sizeBackup = m_sizeInit = this.getView().getSize();\n\t\tthis.m_sizeDown = Vector2f.mul(this.m_sizeNormal, 0.8f);\n\t\tthis.m_sizeUp = Vector2f.mul(m_sizeNormal, 1.2f);\n\t\t\n\t\t// cadre\n\t\tm_cadre = new IntRect(m_spaceScrolling,m_spaceScrolling,(int)this.getView().getSize().x - m_spaceScrolling * 2,(int) this.getView().getSize().y - m_spaceScrolling * 2);\n\t\t\n\t}", "void postInit();", "void postInit();", "private void initGrid() {\n m_emptyHexCount = 0;\n m_hexagons.clear();\n for (int i = 0; i < m_rowNum; i++) {\n ArrayList<Hexagon> tmp = new ArrayList<>();\n int maxColNum;\n if (i % 2 == 0)\n maxColNum = m_colNum;\n else\n maxColNum = m_colNum - 1;\n\n for (int j = 0; j < maxColNum; j++) {\n tmp.add(new Hexagon(m_app));\n m_emptyHexCount++;\n }\n m_hexagons.add(tmp);\n }\n }", "@Override\n protected boolean isDimmingEnable() {\n return true;\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t//setContentView(R.layout.activity_overview);\n\t\t\n\t\tDisplay display = getWindowManager().getDefaultDisplay();\n\t\tPoint size = new Point();\n\t\tdisplay.getSize(size);\n\t\tint width = size.x;\n\t\tLog.i(TAG, Integer.toString(width));\n\t\tmaxColumns = (width - 5) / 155;\n\t\tLog.i(TAG, Integer.toString(maxColumns));\n\t\t\n\t\t// Refresh the images\n\t\trefreshImages();\n\t}", "private void setArrays() {\n // Set the tile arrays\n tileLogic = new boolean[size][size];\n tilesTex = new TextureRegion[size][size];\n\n // Set all tilesTex to clear\n for(int y = 0; y < size; y++)\n for(int x = 0; x < size; x++)\n tilesTex[x][y] = new TextureRegion(assets.clearTile);\n }", "public synchronized static void initialiseImages() \n {\n if (images == null) {\n GreenfootImage baseImage = new GreenfootImage(\"explosion-big.png\");\n int maxSize = baseImage.getWidth()/3;\n int delta = maxSize / IMAGE_COUNT;\n int size = 0;\n images = new GreenfootImage[IMAGE_COUNT];\n for (int i=0; i < IMAGE_COUNT; i++) {\n size = size + delta;\n images[i] = new GreenfootImage(baseImage);\n images[i].scale(size, size);\n }\n }\n }", "private void init() {\n mMemoryCache = new LruCache<String, Bitmap>(DEFAULT_MEM_CACHE_SIZE) {\n /**\n * Measure item size in kilobytes rather than units which is more\n * practical for a bitmap cache\n */\n @Override\n protected int sizeOf(String key, Bitmap bitmap) {\n final int bitmapSize = getBitmapSize(bitmap) / 1024;\n return bitmapSize == 0 ? 1 : bitmapSize;\n }\n };\n }", "static public void init() {\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=MeshFrame.HEIGHT; i>=HeightScale;i-=HeightScale){\r\n\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\r\n\t\t\tfor (int j = 0; j <= MeshFrame.WIDTH; j+=WidthScale) {\r\n\t\t\t\tGL11.glVertex3f(j, i, 0);\r\n\t\t\t\tGL11.glVertex3f(j, i-HeightScale, 0);\r\n\t\t\t}\r\n\t\t\tGL11.glEnd();\r\n\t\t\t\r\n\t\t}\t\t\r\n\t\t\r\n\t}", "public pr3s1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n prepare();\n }", "private void initThumbPixelMap() {\n LogUtil.info(TAG, \"initThumbPixelMap() begin\");\n if (mThumbDrawable == null) {\n return;\n }\n if (mThumbDrawable instanceof StateElement) {\n try {\n setThumbPixelMapValues();\n } catch (IllegalArgumentException e) {\n mThumbPixelMap = getPixelMapFromDrawable(mThumbDrawable, true);\n mPressedThumbPixelMap = mThumbPixelMap;\n }\n } else {\n mThumbPixelMap = getPixelMapFromResId(true, false);\n mPressedThumbPixelMap = mThumbPixelMap;\n }\n LogUtil.info(TAG, \"initThumbPixelMap() end\");\n }", "public Background() {\n\t\ttime = 0;\n\t\tRandom rand = new Random();\n\t\trandomGrid = new Vector2[101][101];\n\t\tfor (int i = 0; i < randomGrid.length; i++) {\n\t\t\tfor (int j = 0; j < randomGrid[0].length; j++) {\n\t\t\t\trandomGrid[i][j] = new Vector2(rand.nextFloat() - 0.5f, rand.nextFloat() - 0.5f).nor();\n\t\t\t}\n\t\t}\n\n\t\tshapeRenderer = new ShapeRenderer();\n\t}", "public void init_values(){\n\t\tint rows = (height / res);\n\t\tint cols = (width / res);\n\t\tvalues = new int [rows][cols];\n\t\tfor (int r = 0; r < rows; r++){\n\t\t\tfor (int c = 0; c < cols; c++){\n\t\t\t\tvalues[r][c] = 0;\n\t\t\t}\n\t\t}\t\n\t}", "private void InitColorTable(){\n\n }", "private void setupDefaultAsPerProperties()\n {\n /// Do the minimum of what App.init() would do to allow to run.\n Gui.mainFrame = new MainFrame();\n App.p = new Properties();\n App.loadConfig();\n System.out.println(App.getConfigString());\n Gui.progressBar = Gui.mainFrame.getProgressBar(); //must be set or get Nullptr\n\n // configure the embedded DB in .jDiskMark\n System.setProperty(\"derby.system.home\", App.APP_CACHE_DIR);\n\n // code from startBenchmark\n //4. create data dir reference\n App.dataDir = new File(App.locationDir.getAbsolutePath()+File.separator+App.DATADIRNAME);\n\n //5. remove existing test data if exist\n if (App.dataDir.exists()) {\n if (App.dataDir.delete()) {\n App.msg(\"removed existing data dir\");\n } else {\n App.msg(\"unable to remove existing data dir\");\n }\n }\n else\n {\n App.dataDir.mkdirs(); // create data dir if not already present\n }\n }" ]
[ "0.5593954", "0.5352493", "0.532837", "0.52821326", "0.5242238", "0.52211326", "0.52047056", "0.5202848", "0.519845", "0.5193395", "0.5137701", "0.5113125", "0.50944835", "0.50891197", "0.50547105", "0.50456434", "0.50389975", "0.5037366", "0.5018107", "0.50089675", "0.4986499", "0.49860618", "0.49849588", "0.49701294", "0.49557626", "0.4942034", "0.49397236", "0.49336687", "0.4932785", "0.49280977", "0.49210835", "0.49182394", "0.49081308", "0.49010757", "0.48886737", "0.488436", "0.48790476", "0.48692933", "0.48617992", "0.48590347", "0.48523265", "0.48343652", "0.4834222", "0.4832085", "0.48316255", "0.482893", "0.48288044", "0.48286223", "0.48282257", "0.48127088", "0.4812058", "0.48087078", "0.4807944", "0.4802123", "0.47983432", "0.4794489", "0.4792448", "0.47827718", "0.4781234", "0.47752672", "0.47736326", "0.4771291", "0.47679338", "0.47641575", "0.4744721", "0.47251084", "0.47246262", "0.47064468", "0.4705933", "0.4704615", "0.47019437", "0.46951947", "0.46949628", "0.46947446", "0.4685811", "0.46827605", "0.46753007", "0.4675292", "0.4672353", "0.46719268", "0.46696037", "0.46676555", "0.46615267", "0.4655311", "0.46528158", "0.4651831", "0.46494296", "0.46494296", "0.46488643", "0.4648835", "0.4648467", "0.46470043", "0.46421134", "0.46384674", "0.46377128", "0.46366262", "0.4630692", "0.4624013", "0.4614811", "0.46138102", "0.4609102" ]
0.0
-1