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 |
---|---|---|---|---|---|---|
/ Converts the JSONObject into binary so that it can be sent to the frontend. | public byte[] toBinary(JSONObject message) {
String messageToConvert = message.toString();
byte[] converted = null;
try {
converted = messageToConvert.getBytes("UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return converted;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public byte[] toBinary(Object obj) {\r\n return JSON.toJSONBytes(obj, SerializerFeature.WriteClassName);\r\n }",
"public static final byte[] toBytesHardcoded(JSONObject json) throws JSONException, IOException{\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream(1200);\n//\t\tByteBuffer bbuf = ByteBuffer.wrap(new byte[1200]);\n//\t\tbyteJSONValue(json, bbuf);\n//\t\tbyte[] bytes= bbuf.array();\n\t\tbyteJSONValue(json, out);\n\t\tout.close();\n\t\tbyte[] bytes = out.toByteArray();\n\t\treturn bytes;\n\t}",
"public static byte[] convertObjectToJsonBytes(Object object) throws IOException {\n\t\treturn MAPPER.writeValueAsBytes(object);\n\t}",
"public byte[] toJsonBytes(final Object resource) throws UnsupportedEncodingException {\n if (resource instanceof JSONObject) {\n final JSONObject json = (JSONObject) resource;\n return json.toString().getBytes(\"UTF-8\");\n }\n\n final HashMap<String, Object> out = new HashMap<String, Object>();\n final JSONObject res = beanSerialize(resource, out);\n if (res == null || res.length() == 0) {\n return new JSONObject(out).toString().getBytes(\"UTF-8\");\n } else {\n return res.toString().getBytes(\"UTF-8\");\n }\n }",
"protected byte[] bytesJson(final Object val) throws TzException {\n try {\n final ByteArrayOutputStream os = new ByteArrayOutputStream();\n\n mapper.writeValue(os, val);\n\n return os.toByteArray();\n } catch (final Throwable t) {\n throw new TzException(t);\n }\n }",
"private byte[] toBytes(String obj){\n return Base64.getDecoder().decode(obj);\n }",
"public static byte[] valueToBytes(Object value) throws JSONException, IOException {\n if (value == null || value.equals(null)) {\n return Constants.NullByteMarker;\n }\n \t// return raw bytes is value is byte[] - else use normal json string conversion\n if (value instanceof byte[]) {\n \treturn (byte[])value;\n }\n \n if (value instanceof long[]) {\n \treturn Util.UTF8(longArrayString((long[])value));\n }\n \n if (value instanceof JSONString) {\n Object o;\n try {\n o = ((JSONString)value).toJSONString();\n } catch (Exception e) {\n throw new JSONException(e);\n }\n if (o instanceof String) {\n return Util.UTF8(o);\n }\n throw new JSONException(\"Bad value from toJSONString: \" + o);\n }\n if (value instanceof Number) {\n return Util.UTF8(JSONObject.numberToString((Number) value));\n }\n if (value instanceof Boolean || value instanceof JSONObject ||\n value instanceof JSONArray) {\n return Util.UTF8(value);\n }\n if (value instanceof Map) {\n return Util.UTF8(new JSONObject((Map)value));\n }\n if (value instanceof JSONList) {\n return ((JSONList)value).getBytes().makeExact().bytes();\n }\n if (value instanceof List) {\n return new JSONList((List)value).getBytes().makeExact().bytes();\n }\n if (value instanceof Collection) {\n return Util.UTF8(new JSONArray((Collection)value));\n }\n if (value.getClass().isArray()) {\n return Util.UTF8(new JSONArray(value));\n }\n return Util.UTF8(JSONObject.quote(value.toString()));\n }",
"byte[] toJson(Object object) throws Exception {\r\n return this.mapper.writeValueAsString(object).getBytes();\r\n }",
"private static final void byteJSONValue(Object value, ByteArrayOutputStream out) throws JSONException, IOException{\n\t\tByteBuffer fourByteBuffer = ByteBuffer.allocate(4);\n\t\tByteBuffer eightByteBuffer = ByteBuffer.allocate(8);\n\t\tif (value instanceof JSONArray){\n\t\t\t//byteJSONArray((JSONArray)value, out);\n\t\t\tJSONArray array = (JSONArray)value;\n\t\t\tint length = array.length();\n\t\t\tout.write(ARRAY_INDICATOR);\n\t\t\tfourByteBuffer.rewind();\n\t\t\tfourByteBuffer.putInt(length);\n\t\t\tout.write(fourByteBuffer.array());\n\t\t\tfor (int i = 0; i < length; i++){\n\t\t\t\tbyteJSONValue(array.get(i),out);\n\t\t\t}\n\t\t}\n\t\telse if (value instanceof Integer){\n\t\t\tout.write(INTEGER_INDICATOR);\n\t\t\tfourByteBuffer.rewind();\n\t\t\tfourByteBuffer.putInt((Integer)value);\n\t\t\tout.write(fourByteBuffer.array());\n\t\t}\n\t\telse if (value instanceof Long){\n\t\t\tout.write(LONG_INDICATOR);\n\t\t\teightByteBuffer.rewind();\n\t\t\teightByteBuffer.putLong((Long)value);\n\t\t\tout.write(eightByteBuffer.array());\n\t\t\t\n\t\t}\n\t\telse if (value instanceof Boolean){\n\t\t\tout.write(BOOLEAN_INDICATOR);\n\t\t\tif ((Boolean)value){\n\t\t\t\tout.write(1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tout.write(0);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if (value instanceof Float){\n\t\t\tout.write(FLOAT_INDICATOR);\n\t\t\tfourByteBuffer.rewind();\n\t\t\tfourByteBuffer.putFloat((Float)value);\n\t\t\tout.write(fourByteBuffer.array());\n\t\t}\n\t\telse if (value instanceof Double){\n\t\t\tout.write(DOUBLE_INDICATOR);\n\t\t\teightByteBuffer.rewind();\n\t\t\teightByteBuffer.putDouble((Double)value);\n\t\t\tout.write(eightByteBuffer.array());\n\t\t}\n\t\telse if (value instanceof String){\n\t\t\tbyte[] stringBytes = ((String)value).getBytes();\n\t\t\tout.write(STRING_INDICATOR);\n\t\t\tint length = stringBytes.length;\n\t\t\tfourByteBuffer.rewind();\n\t\t\tfourByteBuffer.putInt(length);\n\t\t\tout.write(fourByteBuffer.array());\n\t\t\tout.write(stringBytes);\n\t\t}\n\t\telse if (value instanceof JSONObject){\n\t\t\t//byteJSONObject((JSONObject)value, out);\n\t\t\tJSONObject json = (JSONObject) value;\n\t\t\t@SuppressWarnings(\"unchecked\") // Assumption: All keys in the json are strings.\n\t\t\tIterator<String> iterator = json.keys();\n\t\t\tint length = json.length();\n\t\t\tout.write(MAP_INDICATOR);\n\t\t\tfourByteBuffer.rewind();\n\t\t\tfourByteBuffer.putInt(length);\n\t\t\tout.write(fourByteBuffer.array());\n\t\t\twhile (iterator.hasNext()){\n\t\t\t\tString key = iterator.next();\n\t\t\t\tObject val = json.get(key);\n\t\t\t\tbyteJSONValue(key,out);\n\t\t\t\tbyteJSONValue(val,out);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tthrow new JSONException(\"UNKNOWN TYPE IN JSON!\");\n\t\t}\n\t}",
"public static byte[] convertObjectToJsonBytes(Object object)\n throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);\n\n JavaTimeModule module = new JavaTimeModule();\n mapper.registerModule(module);\n\n return mapper.writeValueAsBytes(object);\n }",
"byte[] jsonConverter(Object doctorData) throws JsonProcessingException {\n\t\tObjectMapper objMap = new ObjectMapper();\n\t\treturn objMap.writeValueAsBytes(doctorData);\n\t}",
"byte[] serialize(Serializable object);",
"@Override\n\tprotected byte[] prepare_data() {\n\t\tbyte[] ret_byte = null;\n\t\tJSONObject json_object = new JSONObject();\n\t\ttry {\n\t\t\tjson_object.put(Jsonkey.string_transitionid_key, \"\");\n\t\t\tjson_object.put(Jsonkey.string_magicid_key, \"\");\n\t\t\tJSONObject json_content = new JSONObject();\n\t\t\tjson_object.put(Jsonkey.string_content_key, json_content);\n\t\t\tjson_content.put(Jsonkey.string_ctype_key, \"verify_login_request\");\n\t\t\tJSONObject json_cvalue = new JSONObject();\n\t\t\tjson_content.put(Jsonkey.string_cvalue_key, json_cvalue);\n\t\t\tjson_cvalue.put(Jsonkey.string_user_name_key, user_name);\n\t\t\tjson_cvalue.put(Jsonkey.string_user_password_key, user_password);\n\t\t\t\n\t\t\tString json_string = json_object.toString();\n\t\t\tret_byte = json_string.getBytes();\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn ret_byte;\n\t}",
"private byte[] toJSON(CMSUser cmsUser) {\n\t\ttry {\n\t\t\treturn mapper.writeValueAsBytes(cmsUser);\t\t\t\n\t\t} catch (JsonProcessingException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n\t}",
"com.google.protobuf.ByteString\n getJsonBytes();",
"com.google.protobuf.ByteString\n getJsonBytes();",
"com.google.protobuf.ByteString\n getJsonBytes();",
"public static byte[] responseToByteArray(Object obj) throws IOException\r\n\t{\n\r\n\t\treturn null;\r\n\t}",
"JsonObject raw();",
"public static byte[] objectToBytes( Object object ) throws IOException{\n byte[] output = null;\n if( object != null ){\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n ObjectOutputStream out = new ObjectOutputStream(stream);\n out.writeObject(object);\n output = stream.toByteArray();\n }\n return output;\n }",
"public static byte[] save(Object obj) {\r\n byte[] bytes = null;\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n ObjectOutputStream oos = null;\r\n try {\r\n oos = new ObjectOutputStream(baos);\r\n oos.writeObject(obj);\r\n oos.flush();\r\n bytes = baos.toByteArray();\r\n } catch (IOException e) {\r\n e.printStackTrace(); //To change body of catch statement use Options | File Templates.\r\n }\r\n return bytes;\r\n }",
"private static String encodeWritable(Writable obj) throws IOException {\n DataOutputBuffer buf = new DataOutputBuffer();\n obj.write(buf);\n Base64 encoder = new Base64(0, null, true);\n byte[] raw = new byte[buf.getLength()];\n System.arraycopy(buf.getData(), 0, raw, 0, buf.getLength());\n return encoder.encodeToString(raw);\n }",
"private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"JSONObject toJson();",
"JSONObject toJson();",
"public final void mo18964b(JSONObject jSONObject) {\n }",
"private void fingerprintDataConvertedtoJSON() {\n String msgStr = \"\";\n JSONObject jsonObject = new JSONObject();\n\n try {\n /* jsonObject.put(\"errcode\", \"errcode1\");\n jsonObject.put(\"errInfo\", \"errInfo1\");\n jsonObject.put(\"fCount\", \"fCount1\");\n jsonObject.put(\"fType\", \"fType1\");\n jsonObject.put(\"iCount\", \"iCount1\");\n jsonObject.put(\"iType\", \"iType1\");\n jsonObject.put(\"pCount\", \"pCount1\");\n jsonObject.put(\"pType\", \"pType1\");\n jsonObject.put(\"nmPoints\", \"nmPoints1\");\n jsonObject.put(\"qScore\", \"qScor1e\");\n jsonObject.put(\"dpID\", \"dpI1d\");\n jsonObject.put(\"rdsID\", \"rds1ID\");\n jsonObject.put(\"rdsVer\", \"rdsVer\");\n jsonObject.put(\"dc\", \"dc1\");\n jsonObject.put(\"mi\", \"mi1\");\n jsonObject.put(\"mc\", \"mc\");\n jsonObject.put(\"ci\", \"c1i\");\n jsonObject.put(\"sessionKey\", \"SessionK1ey\");\n jsonObject.put(\"hmac\", \"hma1c\");\n jsonObject.put(\"PidDatatype\", \"PidDatat1ype\");\n jsonObject.put(\"Piddata\", \"Pidda1ta\");*/\n jsonObject.put(\"errcode\",errcode);\n jsonObject.put(\"errInfo\",errInfo);\n jsonObject.put(\"fCount\",fCount);\n jsonObject.put(\"fType\",fType);\n jsonObject.put(\"iCount\",iCount);\n jsonObject.put(\"iType\",iType);\n jsonObject.put(\"pCount\",pCount);\n jsonObject.put(\"pType\",pType);\n jsonObject.put(\"nmPoints\",nmPoints);\n jsonObject.put(\"qScore\",qScore);\n jsonObject.put(\"dpID\",dpId);\n jsonObject.put(\"rdsID\",rdsID);\n jsonObject.put(\"rdsVer\",rdsVer);\n jsonObject.put(\"dc\",dc);\n jsonObject.put(\"mi\",mi);\n jsonObject.put(\"mc\",mc);\n jsonObject.put(\"ci\",ci);\n jsonObject.put(\"sessionKey\",SessionKey);\n jsonObject.put(\"hmac\",hmac);\n jsonObject.put(\"PidDatatype\",PidDatatype);\n jsonObject.put(\"Piddata\",Piddata);\n\n pidData_json = jsonObject.toString();\n new apiCall_BalanceEnquiry().execute();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public <T> byte[] serialize( final T obj )\n throws IOException\n {\n final byte[] unencrypted = serializer.serialize(obj);\n return encrypt(unencrypted);\n }",
"public String convertToString() {\n return mJSONObject.toString();\n }",
"public byte[] serialize();",
"private byte[] serialize(Serializable object) throws Exception {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n ObjectOutputStream objectStream = new ObjectOutputStream(stream);\n objectStream.writeObject(object);\n objectStream.flush();\n return stream.toByteArray();\n }",
"String toJSON();",
"String toJSONString(Object data);",
"private static JSONObject getDataObject(JSONObject obj)\n\t{\n\t\tJSONObject objData = new JSONObject();\n\t\tobjData.put(\"data\", obj);\n\t\treturn objData;\n\t}",
"@Override\r\n public byte[] encodeToBytes(Object object) throws Exception {\n return null;\r\n }",
"String encode(Object obj);",
"ByteString encode(T object) throws Exception;",
"public byte[] marshall();",
"@Test\n public void testBytes() {\n byte[] bytes = new byte[]{ 4, 8, 16, 32, -128, 0, 0, 0 };\n ParseEncoder encoder = PointerEncoder.get();\n JSONObject json = ((JSONObject) (encoder.encode(bytes)));\n ParseDecoder decoder = ParseDecoder.get();\n byte[] bytesAgain = ((byte[]) (decoder.decode(json)));\n Assert.assertEquals(8, bytesAgain.length);\n Assert.assertEquals(4, bytesAgain[0]);\n Assert.assertEquals(8, bytesAgain[1]);\n Assert.assertEquals(16, bytesAgain[2]);\n Assert.assertEquals(32, bytesAgain[3]);\n Assert.assertEquals((-128), bytesAgain[4]);\n Assert.assertEquals(0, bytesAgain[5]);\n Assert.assertEquals(0, bytesAgain[6]);\n Assert.assertEquals(0, bytesAgain[7]);\n }",
"public abstract T zzb(JSONObject jSONObject);",
"private static byte[] construct(Serializable object) {\n\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\ttry {\n\t // Wrap the ByteArrayOutputStream in an ObjectOutputStream\n\t ObjectOutputStream oos = new ObjectOutputStream(bos);\n\t // and write the objects to the stream\n\t oos.writeObject(object);\n\t oos.close();\n\t} catch (Exception e) {\n\t e.printStackTrace();\n\t throw new Error(\"Failed to write serializable data for \" + object);\n\t}\n\n\t// the bytes are now held in the ByteArrayOutputStream\n\t// so we get the bytes of the ByteArrayOutputStream\n\tbyte[] rawBytes = bos.toByteArray();\n\n\treturn rawBytes;\n\n }",
"public static byte[] serialize(Object object) {\n ByteArrayOutputStream bos = null;\n ObjectOutputStream oos = null;\n try {\n bos = new ByteArrayOutputStream();\n oos = new ObjectOutputStream(bos);\n oos.writeObject(object);\n return bos.toByteArray();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (null != oos) {\n try {\n oos.close();\n }\n catch (IOException ex) {}\n }\n if (null != bos) {\n try {\n bos.close();\n }\n catch (IOException ex) {}\n }\n }\n }",
"private String encode(APIKey apiKey) {\n if (!signer.sign(apiKey)) {\n return null;\n }\n\n String json = apiKey.toJson();\n String base64 = new String(Base64.getEncoder().encode(json.getBytes()));\n return String.format(\"%s.%s\", base64, apiKey.getApiKeySignature());\n }",
"public static byte[] GetByteArrayFromObject(Object object)\n\t\t\tthrows IOException {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\tObjectOutputStream out = new ObjectOutputStream(bos);\n\t\tout.writeObject(object);\n\t\tout.close();\n\t\treturn bos.toByteArray();\n\t}",
"public static byte[] toByteArray(Object obj) throws IOException\n {\n byte[] bytes = null;\n ByteArrayOutputStream bos = null;\n ObjectOutputStream oos = null;\n \n try \n {\n bos = new ByteArrayOutputStream();\n oos = new ObjectOutputStream(bos);\n oos.writeObject(obj);\n oos.flush();\n bytes = bos.toByteArray();\n }\n finally\n {\n if (oos != null)\n {\n oos.close();\n }\n if (bos != null)\n {\n bos.close();\n }\n }\n return bytes;\n }",
"Object encodeObject(Object value);",
"public static byte[] getByteArray(Object obj) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tObjectOutputStream oos = null;\n\t\ttry {\n\t\t\toos = new ObjectOutputStream(baos);\n\t\t\toos.writeObject(obj);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tcloseCloseable(oos);\n\t\t}\n\t\t\n\t\treturn baos.toByteArray();\n\t}",
"public void serialize(JsonObject dest);",
"protected byte[] objectToBytes(O object) throws OBException {\r\n try {\r\n return object.store();\r\n\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n }",
"protected abstract byte[] encode(Object o) throws EncoderException;",
"public String serialize(Object obj, String contentType) throws PdfFillerAPIException {\n if (contentType.startsWith(\"application/json\")) {\n return this.serialize(obj);\n } else {\n throw new PdfFillerAPIException(400, \"can not serialize object into Content-Type: \" + contentType);\n }\n }",
"private String object2String (final Serializable object)\n throws IOException, SecurityException {\n\n String str; // to be returned;\n\n ObjectOutputStream objectOutputStream = null;\n\n try {\n\n final ByteArrayOutputStream byteArrayOutputStream =\n new ByteArrayOutputStream();\n\n // might throw an IO-, Security- or NullPointerException\n // (NullPointerException should never happen here);\n objectOutputStream = new ObjectOutputStream(byteArrayOutputStream);\n\n // might throw an InvalidClass-, NotSerializable- or IOException;\n // (all these types denote IOExceptions);\n objectOutputStream.writeObject(object);\n\n str = new String(Base64Coder.encode(\n byteArrayOutputStream.toByteArray()));\n } finally {\n\n if (objectOutputStream != null) {\n\n try {\n\n // might throw an IOException;\n objectOutputStream.close();\n\n } catch (final IOException ex) {\n\n // ignore exception, since this is the \"finally\" block;\n // TODO: exception message should be written to log file;\n }\n }\n }\n\n return str;\n }",
"public static byte[] serializeObject(final Serializable obj) {\n\t\tfinal ObjectOutputStream out;\n\t\tfinal ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\n\t\ttry {\n\t\t\tout = new ObjectOutputStream(outputStream);\n\n\t\t\tout.writeObject(obj);\n\t\t} catch (final IOException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\treturn outputStream.toByteArray();\n\t}",
"private static String asJsonString(final Object obj) {\n try {\n return new ObjectMapper().writeValueAsString(obj);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"private String readJsonFile(InputStream inputStream) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\n byte bufferByte[] = new byte[1024];\n int length;\n try {\n while ((length = inputStream.read(bufferByte)) != -1) {\n outputStream.write(bufferByte, 0, length);\n }\n outputStream.close();\n inputStream.close();\n } catch (IOException e) {\n\n }\n return outputStream.toString();\n }",
"public void escribirFichero(String textoenjson){\n {\n OutputStreamWriter escritor=null;\n try\n {\n escritor=new OutputStreamWriter(openFileOutput(\"datos.json\", Context.MODE_PRIVATE));\n escritor.write(textoenjson);\n }\n catch (Exception ex)\n {\n Log.e(\"ivan\", \"Error al escribir fichero a memoria interna\");\n }\n finally\n {\n try {\n if(escritor!=null)\n escritor.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n\n }",
"private static <T extends Serializable> byte[] pickle(T obj)\n throws IOException {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(baos);\n oos.writeObject(obj);\n oos.close();\n return baos.toByteArray();\n }",
"public String backup() {\n try {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n ObjectOutputStream out = new ObjectOutputStream(baos);\n out.writeInt(widgets.size());\n// System.out.println(\"widgets: \" + widgets.size());\n for (Widget w : widgets) {\n w.writeObject(out);\n }\n out.close();\n return Base64.getEncoder().encodeToString(baos.toByteArray());\n } catch (IOException e) {\n System.out.print(\"IOException occurred.\" + e.toString());\n e.printStackTrace();\n return \"\";\n }\n }",
"public String writeAsJson(final Object object) {\n String jsonRepresentation = null;\n try {\n if (object != null) {\n jsonRepresentation = jsonMapper.writeValueAsString(object);\n }\n } catch (final JsonProcessingException e) {\n // LOGGER.error(\"Failed writing object as json\", e);\n }\n\n if (applyMasking) {\n jsonRepresentation = jsonMaskingUtil.mask(jsonRepresentation);\n }\n return jsonRepresentation;\n }",
"public String toJsonfrmObject(Object object) {\n try {\n ObjectMapper mapper = new ObjectMapper();\n mapper.setDateFormat(simpleDateFormat);\n return mapper.writeValueAsString(object);\n } catch (IOException e) {\n logger.error(\"Invalid JSON!\", e);\n }\n return \"\";\n }",
"public static byte[] serialize(Serializable obj) throws IOException {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tObjectOutputStream oos = new ObjectOutputStream(baos);\n\t\toos.writeObject(obj);\n\t\treturn baos.toByteArray();\n\t}",
"public static byte[] toBytes(Object object) {\n\t\tif(object instanceof Boolean) {\n\t\t\treturn new byte[] {\n\t\t\t\t\t(boolean) object ? (byte) 1 : (byte) 0\n\t\t\t};\n\t\t} else if (object instanceof Byte) {\n\t\t\treturn new byte[] {\n\t\t\t\t\t(byte) object\n\t\t\t};\n\t\t} else if (object instanceof Short) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(2);\n\t\t\tbuffer.putShort((short) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Integer) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putInt((int) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Long) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(8);\n\t\t\tbuffer.putLong((long) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Character) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putInt((char) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Float) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putFloat((float) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Double) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(8);\n\t\t\tbuffer.putDouble((double) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof String) {\n\t\t\tbyte[] charset = ((String) object).getBytes();\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4+charset.length);\n\t\t\tbuffer.putInt(charset.length);\n\t\t\tbuffer.put(charset);\n\t\t\treturn buffer.array();\n\t\t} else {\n\t\t\tbyte[] charset = object.toString().getBytes();\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4+charset.length);\n\t\t\tbuffer.putInt(charset.length);\n\t\t\tbuffer.put(charset);\n\t\t\treturn buffer.array();\n\t\t}\n\t}",
"private String converttoJson(Object followUpDietStatusInfo) throws JsonProcessingException {\n ObjectMapper objectMapper = new ObjectMapper();\n return objectMapper.writeValueAsString(followUpDietStatusInfo);\n }",
"public String toJSON() throws JSONException;",
"private String converttoJson(Object medicine) throws JsonProcessingException {\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n return objectMapper.writeValueAsString(medicine);\r\n }",
"public com.google.protobuf.ByteString\n getJsonBytes() {\n Object ref = json_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n json_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getJsonBytes() {\n Object ref = json_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n json_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getJsonBytes() {\n Object ref = json_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n json_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static String writePretty(JsonObject jsonObject) {\n\t\tJsonWriterFactory factory = createPrettyWriterFactory();\n\t\tStringWriter sw = new StringWriter();\n\t\tJsonWriter writer = factory.createWriter(sw);\n\t\twriter.writeObject(jsonObject);\n\t\tString ret = sw.toString();\n\t\twriter.close();\n\t\treturn ret;\n\t}",
"protected abstract JSONObject build();",
"public JsonObject toJson();",
"String parseObjectToJson(Object obj);",
"public static <T> String object2String(T obj){\n\t\treturn JSON.toJSONString(obj);\n\t}",
"public static <O> byte[] toBytes(O object) {\n try (ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n ObjectOutputStream objOutputStream = new ObjectOutputStream(byteArrayOutputStream);) {\n objOutputStream.writeObject(object);\n return byteArrayOutputStream.toByteArray();\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"public static JSONObject fromBytesHardcoded(byte[] bytes) throws JSONException{\n\t\tByteBuffer byteBuffer = ByteBuffer.wrap(bytes);\n\t\t//byteBuffer.order(ByteOrder.LITTLE_ENDIAN);\n\t\t//ByteBuffer byteBuffer = ByteBuffer.allocate(bytes.length);\n\t\t//byteBuffer.put(bytes);\n\t\t//byteBuffer.rewind();\n\t\tJSONObject obj = (JSONObject) valueFromBytes(byteBuffer);\n\t\treturn obj;\n\t}",
"public static byte[] ToBytes(AsonValue obj,byte flag) throws java.io.IOException {\n return new AsonSerializer(flag).serialize(obj);\n }",
"protected byte[] getBinaryData(Resource resource, @SuppressWarnings(\"unused\") SlingHttpServletRequest request) throws IOException {\n InputStream is = resource.adaptTo(InputStream.class);\n if (is == null) {\n return null;\n }\n try {\n return IOUtils.toByteArray(is);\n }\n finally {\n is.close();\n }\n }",
"protected byte[] serialize(Object o) {\n\t\tif (o == null) {\n\t\t\tthrow new NullPointerException(\"SPYMemcached JAVA Serialization error : Can't serialize null\");\n\t\t}\n\t\tbyte[] rv = null;\n\t\tByteArrayOutputStream bos = null;\n\t\tObjectOutputStream os = null;\n\t\ttry {\n\t\t\tbos = new ByteArrayOutputStream();\n\t\t\tos = new ObjectOutputStream(bos);\n\t\t\tos.writeObject(o);\n\t\t\tos.close();\n\t\t\tbos.close();\n\t\t\trv = bos.toByteArray();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"SPYMemcached JAVA Serialization error : Non-serializable object\", e);\n\t\t} finally {\n\t\t\tif (os != null) {\n\t\t\t\ttry {\n\t\t\t\t\tos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLOGGER.info(\"JAVA Serializer error : close ObjectOutputStream\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (bos != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLOGGER.info(\"JAVA Serializer error : close ByteArrayOutputStream\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn rv;\n\t}",
"@Override\n public String encode() {\n JsonObject tmp = new JsonObject();\n addIfSet(tmp, \"id\", id);\n addIfSet(tmp, \"courseId\", courseId);\n addIfSet(tmp, \"sheetId\", sheetId);\n addIfSet(tmp, \"maxPoints\", maxPoints);\n addIfSet(tmp, \"type\", type);\n addIfSet(tmp, \"link\", link);\n addIfSet(tmp, \"bonus\", bonus);\n addIfSet(tmp, \"linkName\", linkName);\n addIfSet(tmp, \"submittable\", submittable);\n addIfSet(tmp, \"resultVisibility\", resultVisibility);\n tmp = super.encodeToObject(tmp);\n return tmp.toString();\n }",
"@Override\r\n\t@JsonIgnore\r\n\tpublic byte[] asBytes() {\n\t\treturn null;\r\n\t}",
"public static String getJsonString(Object obj) {\n\t\tString res = \"{}\";\n\t\tStringWriter out = new StringWriter();\n\t\ttry {\n\t\t\tJSONValue.writeJSONString(obj, out);\n\t\t\tres = out.toString();\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"Error converting obj to string\", e);\n\t\t}\n\t\treturn res;\n\t}",
"public byte[] convert(Object source) {\n try {\n ByteArrayOutputStream baos = new ByteArrayOutputStream(128);\n serializer.serialize(source, baos);\n return baos.toByteArray();\n } catch (Throwable t) {\n throw new SerializationFailedException(\"Failed to serialize object using \" +\n serializer.getClass().getSimpleName(), t);\n }\n }",
"public JSONObject save();",
"@NotNull\n @Generated\n @Selector(\"JSONRepresentation\")\n public native NSData JSONRepresentation();",
"public String serialize(Object obj) throws PdfFillerAPIException {\n try {\n if (obj != null)\n return mapper.toJson(obj);\n else\n return null;\n } catch (Exception e) {\n throw new PdfFillerAPIException(400, e.getMessage());\n }\n }",
"public static String toJSON(final Object object) {\r\n\t\tString jsonString = null;\r\n\t\ttry\t{\r\n\t\t\tif (object != null)\t{\r\n\t\t\t\tjsonString = SERIALIZER.serialize(object);\r\n\t\t\t}\r\n\t\t} catch (SerializeException ex) {\r\n\t\t\tLOGGER.log(Level.WARNING, \"JSON_UTIL:Error in serializing to json\",\r\n\t\t\t\t\tex);\r\n\t\t\tjsonString = null;\r\n\r\n\t\t}\r\n\t\treturn jsonString;\r\n\t}",
"protected int _writeBinary(Base64Variant b64variant, InputStream data, byte[] readBuffer)\n/* */ throws IOException, JsonGenerationException\n/* */ {\n/* 1523 */ int inputPtr = 0;\n/* 1524 */ int inputEnd = 0;\n/* 1525 */ int lastFullOffset = -3;\n/* 1526 */ int bytesDone = 0;\n/* */ \n/* */ \n/* 1529 */ int safeOutputEnd = this._outputEnd - 6;\n/* 1530 */ int chunksBeforeLF = b64variant.getMaxLineLength() >> 2;\n/* */ \n/* */ for (;;)\n/* */ {\n/* 1534 */ if (inputPtr > lastFullOffset) {\n/* 1535 */ inputEnd = _readMore(data, readBuffer, inputPtr, inputEnd, readBuffer.length);\n/* 1536 */ inputPtr = 0;\n/* 1537 */ if (inputEnd < 3) {\n/* */ break;\n/* */ }\n/* 1540 */ lastFullOffset = inputEnd - 3;\n/* */ }\n/* 1542 */ if (this._outputTail > safeOutputEnd) {\n/* 1543 */ _flushBuffer();\n/* */ }\n/* */ \n/* 1546 */ int b24 = readBuffer[(inputPtr++)] << 8;\n/* 1547 */ b24 |= readBuffer[(inputPtr++)] & 0xFF;\n/* 1548 */ b24 = b24 << 8 | readBuffer[(inputPtr++)] & 0xFF;\n/* 1549 */ bytesDone += 3;\n/* 1550 */ this._outputTail = b64variant.encodeBase64Chunk(b24, this._outputBuffer, this._outputTail);\n/* 1551 */ chunksBeforeLF--; if (chunksBeforeLF <= 0) {\n/* 1552 */ this._outputBuffer[(this._outputTail++)] = '\\\\';\n/* 1553 */ this._outputBuffer[(this._outputTail++)] = 'n';\n/* 1554 */ chunksBeforeLF = b64variant.getMaxLineLength() >> 2;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 1559 */ if (inputPtr < inputEnd) {\n/* 1560 */ if (this._outputTail > safeOutputEnd) {\n/* 1561 */ _flushBuffer();\n/* */ }\n/* 1563 */ int b24 = readBuffer[(inputPtr++)] << 16;\n/* 1564 */ int amount = 1;\n/* 1565 */ if (inputPtr < inputEnd) {\n/* 1566 */ b24 |= (readBuffer[inputPtr] & 0xFF) << 8;\n/* 1567 */ amount = 2;\n/* */ }\n/* 1569 */ bytesDone += amount;\n/* 1570 */ this._outputTail = b64variant.encodeBase64Partial(b24, amount, this._outputBuffer, this._outputTail);\n/* */ }\n/* 1572 */ return bytesDone;\n/* */ }",
"public abstract String toJsonString();",
"public static byte[] asByteArray(JsonElement element) {\n String hex = element.getAsString();\n return TestUtil.hexToBytes(hex);\n }",
"public static Object read(Object obj) {\n if (obj instanceof byte[] byteArray) {\n return SafeEncoder.encode(byteArray);\n }\n if (obj instanceof List) {\n return ((List<?>) obj).stream().map(Jupiter::read).toList();\n }\n\n return obj;\n }",
"public synchronized String getJSONString() {\n\n return getJSONObject().toString();\n }",
"public static byte[] objectToBytes(Serializable s) throws IOException\r\n {\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n ObjectOutputStream oos = new ObjectOutputStream(baos);\r\n try\r\n {\r\n oos.writeObject(s);\r\n oos.flush();\r\n return baos.toByteArray();\r\n }\r\n finally\r\n {\r\n oos.close();\r\n }\r\n\r\n }",
"private byte[] serialize(RealDecisionTree object){\n try{\n // Serialize data object to a file\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"MyObject.ser\"));\n out.writeObject(object);\n out.close();\n\n // Serialize data object to a byte array\n ByteArrayOutputStream bos = new ByteArrayOutputStream() ;\n out = new ObjectOutputStream(bos) ;\n out.writeObject(object);\n out.close();\n\n // Get the bytes of the serialized object\n byte[] buf = bos.toByteArray();\n return buf;\n } catch (IOException e) {\n System.exit(1);\n }\n\n return null;\n }",
"public String toJSon() {\n File jsonFile = new File(context.getFilesDir(), \"data.json\");\n String previousJson = null;\n if (jsonFile.exists()) {\n previousJson = readFromFile(jsonFile);\n } else {\n previousJson = \"{}\";\n }\n\n // create new \"complex\" object\n JSONObject mO = null;\n try {\n mO = new JSONObject(previousJson);\n\n JSONArray arr;\n if (!mO.has(getIntent().getStringExtra(\"date\"))) {\n arr = new JSONArray();\n }\n else{\n arr = mO.getJSONArray(getIntent().getStringExtra(\"date\"));\n }\n JSONObject jo = new JSONObject();\n jo.put(\"title\", titleField.getText().toString());\n jo.put(\"minute\", minute);\n jo.put(\"hour\", hour);\n jo.put(\"description\", descriptionField.getText().toString());\n jo.put(\"location\", locationField.getText().toString());\n\n arr.put(jo);\n\n mO.put(getIntent().getStringExtra(\"date\"), arr);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // generate string from the object\n String jsonString = null;\n try {\n jsonString = mO.toString(4);\n return jsonString;\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n\n }",
"String serialize();",
"public static String getSerializedJsonStringFromBody(Object dto) {\n return new Gson().toJson(dto);\n }",
"public static void writeToJsonGzFile(Object jsonObj, Path filePath) throws JsonGenerationException, JsonMappingException, IOException {\n\n GZIPOutputStream gzipOS = new GZIPOutputStream(Files.newOutputStream(filePath));\n WritableByteChannel out = Channels.newChannel(gzipOS);\n\n ObjectMapper mapper = new ObjectMapper();\n byte[] jsonOut = mapper.writeValueAsBytes(jsonObj);\n out.write(ByteBuffer.wrap(jsonOut));\n out.close();\n\n }",
"String toJson() throws IOException;",
"public JsonObject covertToJson() {\n JsonObject transObj = new JsonObject(); //kasutaja portf. positsiooni tehing\n transObj.addProperty(\"symbol\", symbol);\n transObj.addProperty(\"type\", type);\n transObj.addProperty(\"price\", price);\n transObj.addProperty(\"volume\", volume);\n transObj.addProperty(\"date\", date);\n transObj.addProperty(\"time\", time);\n transObj.addProperty(\"profitFromSell\", profitFromSell);\n transObj.addProperty(\"averagePurchasePrice\", averagePurchasePrice);\n return transObj;\n }",
"public static void createJsonFile(JsonObject json) throws IOException {\n\r\n FileWriter file = new FileWriter(\"outputfile\", false);\r\n try {\r\n file.write(Jsoner.prettyPrint(json.toJson(),2));\r\n file.flush();\r\n } catch (IOException e) {\r\n out.println(\"Error \" + e);\r\n }\r\n }"
]
| [
"0.64149857",
"0.63853645",
"0.61381257",
"0.61075187",
"0.5845067",
"0.5835534",
"0.5762277",
"0.57566994",
"0.57274216",
"0.5642492",
"0.56031",
"0.55807036",
"0.5564868",
"0.5511012",
"0.5504633",
"0.5504633",
"0.5504633",
"0.5439083",
"0.5421587",
"0.541042",
"0.5380975",
"0.53610605",
"0.5327326",
"0.5312229",
"0.5312229",
"0.52694196",
"0.5252817",
"0.5246501",
"0.5239991",
"0.5222733",
"0.52215475",
"0.5201396",
"0.5195161",
"0.51896393",
"0.5181294",
"0.51261425",
"0.5114556",
"0.51084346",
"0.5106902",
"0.50953877",
"0.50933135",
"0.5092501",
"0.50829136",
"0.5081901",
"0.50687313",
"0.50542074",
"0.5046159",
"0.50348413",
"0.5003375",
"0.49903715",
"0.49818742",
"0.4979141",
"0.49530324",
"0.49474454",
"0.49171895",
"0.4907117",
"0.49047616",
"0.4899291",
"0.48970044",
"0.48913974",
"0.48901638",
"0.48824748",
"0.48688895",
"0.48677438",
"0.48671514",
"0.48599574",
"0.48599574",
"0.48599574",
"0.4848261",
"0.48462632",
"0.48409665",
"0.4840714",
"0.48393676",
"0.48389804",
"0.48362938",
"0.482709",
"0.48227084",
"0.4815324",
"0.4815315",
"0.48123747",
"0.48091897",
"0.48078895",
"0.47982872",
"0.47952756",
"0.47873208",
"0.47871092",
"0.47844815",
"0.4781996",
"0.4777302",
"0.47746134",
"0.4771453",
"0.47706932",
"0.47609922",
"0.4760076",
"0.4756026",
"0.47442424",
"0.47441575",
"0.4742237",
"0.47255296",
"0.47238058"
]
| 0.6957704 | 0 |
Add code to print out the key hash | protected void printFaceBookKeyHash() {
try {
PackageInfo info = getPackageManager().getPackageInfo("com.sakewiz.android", PackageManager.GET_SIGNATURES);
for (Signature signature : info.signatures) {
MessageDigest md = MessageDigest.getInstance("SHA");
md.update(signature.toByteArray());
Log.d("KeyHash: ", Base64.encodeToString(md.digest(), Base64.DEFAULT));
}
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void printKeyHash() {\n try {\n PackageInfo info =\n getPackageManager().getPackageInfo(\"in.peerreview.ping\", PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n Log.e(\"KeyHash:\", e.toString());\n } catch (NoSuchAlgorithmException e) {\n Log.e(\"KeyHash:\", e.toString());\n }\n }",
"private void printKeyHash(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"andbas.ui3_0628\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }\n\n }",
"public void printHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"net.simplifiedcoding.androidlogin\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }\n }",
"public void printHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\"com.lostfind\", PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", \"KEYHASH::::\"+Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }",
"private void printKeyHash() {\n\n try {\n\n PackageInfo info = getPackageManager().getPackageInfo(\"com.example.androidnotification\", PackageManager.GET_SIGNATURES);\n\n for (Signature signature : info.signatures) {\n\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n\n Log.d(TAG, \"printKeyHash: \" + Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n\n } catch (PackageManager.NameNotFoundException e) {\n\n e.printStackTrace();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }",
"public void printHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"com.credolabs.justcredo\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"Credo:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }\n }",
"@Override\n public String toString() {\n return encodedHash.get();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", spflbm=\").append(spflbm);\n sb.append(\", ssbkbm=\").append(ssbkbm);\n sb.append(\", spfl=\").append(spfl);\n sb.append(\", sjspflbm=\").append(sjspflbm);\n sb.append(\", xspx=\").append(xspx);\n sb.append(\", sfsx=\").append(sfsx);\n sb.append(\", spfltpwj=\").append(spfltpwj);\n sb.append(\", tjsj=\").append(tjsj);\n sb.append(\", tjr=\").append(tjr);\n sb.append(\", zhxgr=\").append(zhxgr);\n sb.append(\", zhxgsj=\").append(zhxgsj);\n sb.append(\", bz=\").append(bz);\n sb.append(\", fldj=\").append(fldj);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\r\n\tpublic void displayHashTable()\r\n\t{\r\n\t\tSystem.out.println(hm.toString());\r\n\t}",
"String getHash();",
"String getHash();",
"public String toString() {\r\n \treturn key;\r\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn key + \"\";\r\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", cLsh=\").append(cLsh);\n sb.append(\", cZzzjlsh=\").append(cZzzjlsh);\n sb.append(\", cUserid=\").append(cUserid);\n sb.append(\", dJzsj=\").append(dJzsj);\n sb.append(\", cSpbh=\").append(cSpbh);\n sb.append(\", cBz=\").append(cBz);\n sb.append(\", cZt=\").append(cZt);\n sb.append(\", cCjuser=\").append(cCjuser);\n sb.append(\", dCjsj=\").append(dCjsj);\n sb.append(\", cXguser=\").append(cXguser);\n sb.append(\", dXgsj=\").append(dXgsj);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", cLsh=\").append(cLsh);\n sb.append(\", cUserid=\").append(cUserid);\n sb.append(\", nZjnl=\").append(nZjnl);\n sb.append(\", dZjsj=\").append(dZjsj);\n sb.append(\", cZjyy=\").append(cZjyy);\n sb.append(\", cBz=\").append(cBz);\n sb.append(\", cZt=\").append(cZt);\n sb.append(\", cCjuser=\").append(cCjuser);\n sb.append(\", dCjsj=\").append(dCjsj);\n sb.append(\", cXguser=\").append(cXguser);\n sb.append(\", dXgsj=\").append(dXgsj);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", cLsh=\").append(cLsh);\n sb.append(\", cUserid=\").append(cUserid);\n sb.append(\", cJsyy=\").append(cJsyy);\n sb.append(\", dJssj=\").append(dJssj);\n sb.append(\", nJssl=\").append(nJssl);\n sb.append(\", cBz=\").append(cBz);\n sb.append(\", cZt=\").append(cZt);\n sb.append(\", cCjuser=\").append(cCjuser);\n sb.append(\", dCjsj=\").append(dCjsj);\n sb.append(\", cXguser=\").append(cXguser);\n sb.append(\", dXgsj=\").append(dXgsj);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n return key;\n }",
"public String toString() {\n\t\treturn hashString;\n\t}",
"@Override\n public String toString(){\n return key;\n }",
"@Override\r\n public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(getClass().getSimpleName());\r\n sb.append(\" [\");\r\n sb.append(\"Hash = \").append(hashCode());\r\n sb.append(\", id=\").append(id);\r\n sb.append(\", uid=\").append(uid);\r\n sb.append(\", companyCode=\").append(companyCode);\r\n sb.append(\", basicAccount=\").append(basicAccount);\r\n sb.append(\", giftAccount=\").append(giftAccount);\r\n sb.append(\", insertTime=\").append(insertTime);\r\n sb.append(\", updateTime=\").append(updateTime);\r\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\r\n sb.append(\"]\");\r\n return sb.toString();\r\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", encrptPassword=\").append(encrptPassword);\n sb.append(\", userId=\").append(userId);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"String getHashControl();",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(getClass().getSimpleName());\n\t\tsb.append(\" [\");\n\t\tsb.append(\"Hash = \").append(hashCode());\n\t\tsb.append(\", pindex=\").append(pindex);\n\t\tsb.append(\", certLinkId=\").append(certLinkId);\n\t\tsb.append(\", isCert=\").append(isCert);\n\t\tsb.append(\", rejectReason=\").append(rejectReason);\n\t\tsb.append(\", certCardNo=\").append(certCardNo);\n\t\tsb.append(\", certImgId=\").append(certImgId);\n\t\tsb.append(\", pid=\").append(pid);\n\t\tsb.append(\", userId=\").append(userId);\n\t\tsb.append(\", operator=\").append(operator);\n\t\tsb.append(\", optTime=\").append(optTime);\n\t\tsb.append(\", optEvent=\").append(optEvent);\n\t\tsb.append(\", dcrp=\").append(dcrp);\n\t\tsb.append(\", lockUserid=\").append(lockUserid);\n\t\tsb.append(\", lockTime=\").append(lockTime);\n\t\tsb.append(\", serialVersionUID=\").append(serialVersionUID);\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn this.key;\r\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", name=\").append(name);\n sb.append(\", remark=\").append(remark);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\r\n public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(getClass().getSimpleName());\r\n sb.append(\" [\");\r\n sb.append(\"Hash = \").append(hashCode());\r\n sb.append(\", id=\").append(id);\r\n sb.append(\", companyCode=\").append(companyCode);\r\n sb.append(\", companyName=\").append(companyName);\r\n sb.append(\", briefName=\").append(briefName);\r\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\r\n sb.append(\"]\");\r\n return sb.toString();\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Key, ID: \"+this.id;\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", bookid=\").append(bookid);\n sb.append(\", bookname=\").append(bookname);\n sb.append(\", author=\").append(author);\n sb.append(\", printwhere=\").append(printwhere);\n sb.append(\", printdate=\").append(printdate);\n sb.append(\", introduction=\").append(introduction);\n sb.append(\", note=\").append(note);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", pid=\").append(pid);\n sb.append(\", sysId=\").append(sysId);\n sb.append(\", menuName=\").append(menuName);\n sb.append(\", pageUrl=\").append(pageUrl);\n sb.append(\", level=\").append(level);\n sb.append(\", sort=\").append(sort);\n sb.append(\", version=\").append(version);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\r\n public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(getClass().getSimpleName());\r\n sb.append(\" [\");\r\n sb.append(\"Hash = \").append(hashCode());\r\n sb.append(\", id=\").append(id);\r\n sb.append(\", name=\").append(name);\r\n sb.append(\", post=\").append(post);\r\n sb.append(\", wageNumber=\").append(wageNumber);\r\n sb.append(\", uuid=\").append(uuid);\r\n sb.append(\", token=\").append(token);\r\n sb.append(\", password=\").append(password);\r\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\r\n sb.append(\"]\");\r\n return sb.toString();\r\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", guideServiceId=\").append(guideServiceId);\n sb.append(\", guideId=\").append(guideId);\n sb.append(\", langCodes=\").append(langCodes);\n sb.append(\", expfamily=\").append(expfamily);\n sb.append(\", expbusiness=\").append(expbusiness);\n sb.append(\", expcross=\").append(expcross);\n sb.append(\", style=\").append(style);\n sb.append(\", expspot=\").append(expspot);\n sb.append(\", expschool=\").append(expschool);\n sb.append(\", expshopping=\").append(expshopping);\n sb.append(\", exphistory=\").append(exphistory);\n sb.append(\", exptraffic=\").append(exptraffic);\n sb.append(\", expfood=\").append(expfood);\n sb.append(\", explaw=\").append(explaw);\n sb.append(\", expculture=\").append(expculture);\n sb.append(\", exphotel=\").append(exphotel);\n sb.append(\", exppoi=\").append(exppoi);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", name=\").append(name);\n sb.append(\", gender=\").append(gender);\n sb.append(\", account=\").append(account);\n sb.append(\", phone=\").append(phone);\n sb.append(\", email=\").append(email);\n sb.append(\", hireDate=\").append(hireDate);\n sb.append(\", department=\").append(department);\n sb.append(\", password=\").append(password);\n sb.append(\", province=\").append(province);\n sb.append(\", changePasswordCycle=\").append(changePasswordCycle);\n sb.append(\", operatorId=\").append(operatorId);\n sb.append(\", editTime=\").append(editTime);\n sb.append(\", passwordChangeTime=\").append(passwordChangeTime);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", userMi=\").append(userMi);\n sb.append(\", passWord=\").append(passWord);\n sb.append(\", deleteFlag=\").append(deleteFlag);\n sb.append(\", name=\").append(name);\n sb.append(\", sex=\").append(sex);\n sb.append(\", paperType=\").append(paperType);\n sb.append(\", socialNo=\").append(socialNo);\n sb.append(\", tel=\").append(tel);\n sb.append(\", eMail=\").append(eMail);\n sb.append(\", homeAddress=\").append(homeAddress);\n sb.append(\", execUnit=\").append(execUnit);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", uid=\").append(uid);\n sb.append(\", pid=\").append(pid);\n sb.append(\", buy_num=\").append(buy_num);\n sb.append(\", eid=\").append(eid);\n sb.append(\", status=\").append(status);\n sb.append(\", reject=\").append(reject);\n sb.append(\", rejector=\").append(rejector);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n return String.valueOf(key);\n }",
"@Override\r\n public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(getClass().getSimpleName());\r\n sb.append(\" [\");\r\n sb.append(\"Hash = \").append(hashCode());\r\n sb.append(\", appId=\").append(appId);\r\n sb.append(\", code=\").append(code);\r\n sb.append(\", name=\").append(name);\r\n sb.append(\", appSecret=\").append(appSecret);\r\n sb.append(\", appToken=\").append(appToken);\r\n sb.append(\", appAeskey=\").append(appAeskey);\r\n sb.append(\", refreshToken=\").append(refreshToken);\r\n sb.append(\", rawId=\").append(rawId);\r\n sb.append(\", logo=\").append(logo);\r\n sb.append(\", appQr=\").append(appQr);\r\n sb.append(\", serviceType=\").append(serviceType);\r\n sb.append(\", verifyType=\").append(verifyType);\r\n sb.append(\", atTime=\").append(atTime);\r\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\r\n sb.append(\"]\");\r\n return sb.toString();\r\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", userId=\").append(userId);\n sb.append(\", identityType=\").append(identityType);\n sb.append(\", identifier=\").append(identifier);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\r\n public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(getClass().getSimpleName());\r\n sb.append(\" [\");\r\n sb.append(\"Hash = \").append(hashCode());\r\n sb.append(\", rpfId=\").append(rpfId);\r\n sb.append(\", czId=\").append(czId);\r\n sb.append(\", fpNumber=\").append(fpNumber);\r\n sb.append(\", spNumber=\").append(spNumber);\r\n sb.append(\", fpl=\").append(fpl);\r\n sb.append(\", fpCb=\").append(fpCb);\r\n sb.append(\", spCb=\").append(spCb);\r\n sb.append(\", sjCb=\").append(sjCb);\r\n sb.append(\", tickettypesId=\").append(tickettypesId);\r\n sb.append(\", inDate=\").append(inDate);\r\n sb.append(\", autoDate=\").append(autoDate);\r\n sb.append(\", rpfBak1=\").append(rpfBak1);\r\n sb.append(\", rpfBak2=\").append(rpfBak2);\r\n sb.append(\", rpfBak3=\").append(rpfBak3);\r\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\r\n sb.append(\"]\");\r\n return sb.toString();\r\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(getClass().getSimpleName());\n\t\tsb.append(\" [\");\n\t\tsb.append(\"Hash = \").append(hashCode());\n\t\tsb.append(\", id=\").append(id);\n\t\tsb.append(\", uid=\").append(uid);\n\t\tsb.append(\", latitude=\").append(latitude);\n\t\tsb.append(\", longitude=\").append(longitude);\n\t\tsb.append(\", accuracy=\").append(accuracy);\n\t\tsb.append(\", place=\").append(place);\n\t\tsb.append(\", memberid=\").append(memberid);\n\t\tsb.append(\", membername=\").append(membername);\n\t\tsb.append(\", inserttime=\").append(inserttime);\n\t\tsb.append(\", signtype=\").append(signtype);\n\t\tsb.append(\", serialVersionUID=\").append(serialVersionUID);\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}",
"public static void getKeyHashFacebook(Context context) {\n // Add code to print out the key hash\n try {\n PackageInfo info = context.getPackageManager().getPackageInfo(\n context.getPackageName(),\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException | NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(getClass().getSimpleName());\r\n sb.append(\" [\");\r\n sb.append(\"Hash = \").append(hashCode());\r\n sb.append(\", snapshotId=\").append(snapshotId);\r\n sb.append(\", platformId=\").append(platformId);\r\n sb.append(\", purchaseId=\").append(purchaseId);\r\n sb.append(\", partnerContractId=\").append(partnerContractId);\r\n sb.append(\", price=\").append(price);\r\n sb.append(\", created=\").append(created);\r\n sb.append(\", updated=\").append(updated);\r\n sb.append(\", isDeleted=\").append(isDeleted);\r\n sb.append(\", content=\").append(content);\r\n sb.append(\", superiorCommission=\").append(superiorCommission);\r\n sb.append(\", introducerCommission=\").append(introducerCommission);\r\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\r\n sb.append(\"]\");\r\n return sb.toString();\r\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", csVin=\").append(csVin);\n sb.append(\", csNumber=\").append(csNumber);\n sb.append(\", rowNo=\").append(rowNo);\n sb.append(\", startSoc=\").append(startSoc);\n sb.append(\", endSoc=\").append(endSoc);\n sb.append(\", changedSoc=\").append(changedSoc);\n sb.append(\", startMiles=\").append(startMiles);\n sb.append(\", endMiles=\").append(endMiles);\n sb.append(\", startTime=\").append(startTime);\n sb.append(\", endTime=\").append(endTime);\n sb.append(\", paceTimemills=\").append(paceTimemills);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"private int getHash(Object key) {\n return key.hashCode();\n }",
"@Override\r\n public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(getClass().getSimpleName());\r\n sb.append(\" [\");\r\n sb.append(\"Hash = \").append(hashCode());\r\n sb.append(\", name=\").append(name);\r\n sb.append(\", className=\").append(className);\r\n sb.append(\", groupName=\").append(groupName);\r\n sb.append(\", description=\").append(description);\r\n sb.append(\"]\");\r\n return sb.toString();\r\n }",
"java.lang.String getHashData();",
"private String hashKey(String key) throws NoSuchAlgorithmException {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hashInBytes = md.digest(key.getBytes(StandardCharsets.UTF_8));\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < hashInBytes.length; i++) {\n sb.append(Integer.toString((hashInBytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n String s = sb.toString();\n return s;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", uid=\").append(uid);\n sb.append(\", name=\").append(name);\n sb.append(\", account=\").append(account);\n sb.append(\", modifyTime=\").append(modifyTime);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(getClass().getSimpleName());\n\t\tsb.append(\" [\");\n\t\tsb.append(\"Hash = \").append(hashCode());\n\t\tsb.append(\", id=\").append(id);\n\t\tsb.append(\", memberId=\").append(memberId);\n\t\tsb.append(\", activityId=\").append(activityId);\n\t\tsb.append(\", serialVersionUID=\").append(serialVersionUID);\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", name=\").append(name);\n sb.append(\", addressId=\").append(addressId);\n sb.append(\", marketGroupId=\").append(marketGroupId);\n sb.append(\", managerName=\").append(managerName);\n sb.append(\", managerPhone=\").append(managerPhone);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", guideaccountdetailid=\").append(guideaccountdetailid);\n sb.append(\", guideaccountsn=\").append(guideaccountsn);\n sb.append(\", guideid=\").append(guideid);\n sb.append(\", orderid=\").append(orderid);\n sb.append(\", ordersn=\").append(ordersn);\n sb.append(\", guidefinanceid=\").append(guidefinanceid);\n sb.append(\", biztype=\").append(biztype);\n sb.append(\", content=\").append(content);\n sb.append(\", price=\").append(price);\n sb.append(\", paytype=\").append(paytype);\n sb.append(\", bizstatus=\").append(bizstatus);\n sb.append(\", bizcomment=\").append(bizcomment);\n sb.append(\", guidedrawid=\").append(guidedrawid);\n sb.append(\", updatedAt=\").append(updatedAt);\n sb.append(\", createdAt=\").append(createdAt);\n sb.append(\"]\");\n return sb.toString();\n }",
"int getHash();",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", imgId=\").append(imgId);\n sb.append(\", imgName=\").append(imgName);\n sb.append(\", containerId=\").append(containerId);\n sb.append(\", containerName=\").append(containerName);\n sb.append(\", containerIp=\").append(containerIp);\n sb.append(\", containerPort=\").append(containerPort);\n sb.append(\", containerUser=\").append(containerUser);\n sb.append(\", containerPasswd=\").append(containerPasswd);\n sb.append(\", containerVolumes=\").append(containerVolumes);\n sb.append(\", containerDb=\").append(containerDb);\n sb.append(\", containerEnv=\").append(containerEnv);\n sb.append(\", remark=\").append(remark);\n sb.append(\", createdAt=\").append(createdAt);\n sb.append(\", updatedAt=\").append(updatedAt);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(getClass().getSimpleName());\n\t\tsb.append(\" [\");\n\t\tsb.append(\"Hash = \").append(hashCode());\n\t\tsb.append(\", status=\").append(status);\n\t\tsb.append(\", createtime=\").append(createtime);\n\t\tsb.append(\", updatetime=\").append(updatetime);\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", bversion=\").append(bversion);\n sb.append(\", blockHeight=\").append(blockHeight);\n sb.append(\", propKey=\").append(propKey);\n sb.append(\", propValue=\").append(propValue);\n sb.append(\", mptType=\").append(mptType);\n sb.append(\", hashValue=\").append(hashValue);\n sb.append(\", txid=\").append(txid);\n sb.append(\", prevHashValue=\").append(prevHashValue);\n sb.append(\", prevBlockHeight=\").append(prevBlockHeight);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", medicalid=\").append(medicalid);\n sb.append(\", registid=\").append(registid);\n sb.append(\", userid=\").append(userid);\n sb.append(\", prescriptionname=\").append(prescriptionname);\n sb.append(\", prescriptiontime=\").append(prescriptiontime);\n sb.append(\", prescriptionstate=\").append(prescriptionstate);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"public static String printHash(final int count) {\n\t\tString hashResult = \"\";\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\thashResult += \"#\";\n\t\t}\n\t\treturn hashResult;\n\t\t\n\t\t\n\t\t/*\n\t\t if(i==1){\n\t\t return \"#\";\n\t\t } else if (i==2){\n\t\t return\"##\";\n\t\t }\n\t\t */\n\t\t\n\n\t}",
"public void printHashTable()\n\t\t\t{\n\t\t\t\tfor (int i = 0; i < bucketSize; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"Hash Bucket: \" + i + \": \");\n\n\t\t\t\t\t\tNode current = bucketList[i];\n\n\t\t\t\t\t\twhile (current.getNext() != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(current.getData() + \" \");\n\t\t\t\t\t\t\t\tcurrent = current.getNext();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tSystem.out.println(current.getData());\n\t\t\t\t\t}\n\t\t\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 }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", stuid=\").append(stuid);\n sb.append(\", stuname=\").append(stuname);\n sb.append(\", clazzid=\").append(clazzid);\n sb.append(\", age=\").append(age);\n sb.append(\", sex=\").append(sex);\n sb.append(\", birth=\").append(birth);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"private void getHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(getString(R.string.app_package_name), PackageManager.GET_SIGNATURES);\n\n for (Signature signature : info.signatures)\n {\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n } catch (NoSuchAlgorithmException nsa)\n {\n Log.d(\"exception\" , \"No algorithmn\");\n Assert.assertTrue(false);\n }\n }\n } catch (PackageManager.NameNotFoundException nnfe)\n {\n Log.d(\"exception\" , \"Name not found\");\n Assert.assertNull(\"Name not found\", nnfe);\n }\n }",
"private int hasher() {\n int i = 0;\n int hash = 0;\n while (i != length) {\n hash += hashableKey.charAt(i++);\n hash += hash << 10;\n hash ^= hash >> 6;\n }\n hash += hash << 3;\n hash ^= hash >> 11;\n hash += hash << 15;\n return getHash(hash);\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", title=\").append(title);\n sb.append(\", url=\").append(url);\n sb.append(\", avatar=\").append(avatar);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", IS_DELETED=\").append(IS_DELETED);\n sb.append(\", NOT_DELETED=\").append(NOT_DELETED);\n sb.append(\", id=\").append(id);\n sb.append(\", goodsId=\").append(goodsId);\n sb.append(\", name=\").append(name);\n sb.append(\", seriesId=\").append(seriesId);\n sb.append(\", brandId=\").append(brandId);\n sb.append(\", gallery=\").append(gallery);\n sb.append(\", keywords=\").append(keywords);\n sb.append(\", brief=\").append(brief);\n sb.append(\", sortOrder=\").append(sortOrder);\n sb.append(\", picUrl=\").append(picUrl);\n sb.append(\", buyLink=\").append(buyLink);\n sb.append(\", addTime=\").append(addTime);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", deleted=\").append(deleted);\n sb.append(\", detail=\").append(detail);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", homeworkVoiceId=\").append(homeworkVoiceId);\n sb.append(\", homeworkId=\").append(homeworkId);\n sb.append(\", homeworkVoicePath=\").append(homeworkVoicePath);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"public String getHash()\n {\n return hash;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", isDel=\").append(isDel);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", orderId=\").append(orderId);\n sb.append(\", colorId=\").append(colorId);\n sb.append(\", sizeId=\").append(sizeId);\n sb.append(\", orderItemName=\").append(orderItemName);\n sb.append(\", orderItemProice=\").append(orderItemProice);\n sb.append(\", orderItemAmount=\").append(orderItemAmount);\n sb.append(\", orderItemUrl=\").append(orderItemUrl);\n sb.append(\", productId=\").append(productId);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", drawNo=\").append(drawNo);\n sb.append(\", bachNo=\").append(bachNo);\n sb.append(\", guideId=\").append(guideId);\n sb.append(\", guideName=\").append(guideName);\n sb.append(\", guideAgencyId=\").append(guideAgencyId);\n sb.append(\", guideAgencyName=\").append(guideAgencyName);\n sb.append(\", applyTime=\").append(applyTime);\n sb.append(\", price=\").append(price);\n sb.append(\", finBankNo=\").append(finBankNo);\n sb.append(\", finName=\").append(finName);\n sb.append(\", finAccount=\").append(finAccount);\n sb.append(\", finBank=\").append(finBank);\n sb.append(\", finCurrency=\").append(finCurrency);\n sb.append(\", finType=\").append(finType);\n sb.append(\", adminId=\").append(adminId);\n sb.append(\", adminName=\").append(adminName);\n sb.append(\", actualPrice=\").append(actualPrice);\n sb.append(\", transferTime=\").append(transferTime);\n sb.append(\", account=\").append(account);\n sb.append(\", drawComment=\").append(drawComment);\n sb.append(\", drawStatus=\").append(drawStatus);\n sb.append(\", isAuto=\").append(isAuto);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", processStatus=\").append(processStatus);\n sb.append(\", guideNo=\").append(guideNo);\n sb.append(\"]\");\n return sb.toString();\n }",
"private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }",
"public String getHash() {\n return hash;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", warehousingid=\").append(warehousingid);\n sb.append(\", warehousesnumber=\").append(warehousesnumber);\n sb.append(\", warehousingtime=\").append(warehousingtime);\n sb.append(\", cargodamaged=\").append(cargodamaged);\n sb.append(\", goodsdamageid=\").append(goodsdamageid);\n sb.append(\", storekeeperid=\").append(storekeeperid);\n sb.append(\", remarks=\").append(remarks);\n sb.append(\", warehouseid=\").append(warehouseid);\n sb.append(\", remarks1=\").append(remarks1);\n sb.append(\", remarks2=\").append(remarks2);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", resumeId=\").append(resumeId);\n sb.append(\", posNature=\").append(posNature);\n sb.append(\", passStatus=\").append(passStatus);\n sb.append(\", provinceCitiesCode=\").append(provinceCitiesCode);\n sb.append(\", citiesCityCode=\").append(citiesCityCode);\n sb.append(\", compId=\").append(compId);\n sb.append(\", provinceCodeReside=\").append(provinceCodeReside);\n sb.append(\", cityCodeReside=\").append(cityCodeReside);\n sb.append(\", stuUserid=\").append(stuUserid);\n sb.append(\", posId=\").append(posId);\n sb.append(\", submitTime=\").append(submitTime);\n sb.append(\", zhiyuanIndex=\").append(zhiyuanIndex);\n sb.append(\", userRealname=\").append(userRealname);\n sb.append(\", tel=\").append(tel);\n sb.append(\", email=\").append(email);\n sb.append(\", sex=\").append(sex);\n sb.append(\", nation=\").append(nation);\n sb.append(\", birth=\").append(birth);\n sb.append(\", marriage=\").append(marriage);\n sb.append(\", identType=\").append(identType);\n sb.append(\", identNo=\").append(identNo);\n sb.append(\", politicsId=\").append(politicsId);\n sb.append(\", wishPosition=\").append(wishPosition);\n sb.append(\", wishProvinceId=\").append(wishProvinceId);\n sb.append(\", wishCityId=\").append(wishCityId);\n sb.append(\", wishMaxSalary=\").append(wishMaxSalary);\n sb.append(\", wishMinSalary=\").append(wishMinSalary);\n sb.append(\", jobStatus=\").append(jobStatus);\n sb.append(\", selfEvaluation=\").append(selfEvaluation);\n sb.append(\", compIsnew=\").append(compIsnew);\n sb.append(\", faceurl=\").append(faceurl);\n sb.append(\", startWorkTime=\").append(startWorkTime);\n sb.append(\", computerLevel=\").append(computerLevel);\n sb.append(\", majorId=\").append(majorId);\n sb.append(\", majorPid=\").append(majorPid);\n sb.append(\", collegeId=\").append(collegeId);\n sb.append(\", eduId=\").append(eduId);\n sb.append(\", wangshenTermid=\").append(wangshenTermid);\n sb.append(\", wishPosTypeid3=\").append(wishPosTypeid3);\n sb.append(\", wishPosTypeid2=\").append(wishPosTypeid2);\n sb.append(\", wishPosTypeid1=\").append(wishPosTypeid1);\n sb.append(\", collegeName=\").append(collegeName);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", name=\").append(name);\n sb.append(\", price=\").append(price);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", parentId=\").append(parentId);\n sb.append(\", name=\").append(name);\n sb.append(\", title=\").append(title);\n sb.append(\", level=\").append(level);\n sb.append(\", icon=\").append(icon);\n sb.append(\", sort=\").append(sort);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", hidden=\").append(hidden);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"public String toString()\r\n/* 438: */ {\r\n/* 439:522 */ return \"Luffa-\" + (getDigestLength() << 3);\r\n/* 440: */ }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", uid=\").append(uid);\n sb.append(\", loanApplyId=\").append(loanApplyId);\n sb.append(\", professionId=\").append(professionId);\n sb.append(\", corpName=\").append(corpName);\n sb.append(\", industry=\").append(industry);\n sb.append(\", corpProvince=\").append(corpProvince);\n sb.append(\", corpCity=\").append(corpCity);\n sb.append(\", corpDistrict=\").append(corpDistrict);\n sb.append(\", corpAddress=\").append(corpAddress);\n sb.append(\", department=\").append(department);\n sb.append(\", position=\").append(position);\n sb.append(\", corpTel=\").append(corpTel);\n sb.append(\", salaryDay=\").append(salaryDay);\n sb.append(\", salaryScope=\").append(salaryScope);\n sb.append(\", corpEmail=\").append(corpEmail);\n sb.append(\", status=\").append(status);\n sb.append(\", modifyTime=\").append(modifyTime);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", pObjObjectGid=\").append(pObjObjectGid);\n sb.append(\", layoutName=\").append(layoutName);\n sb.append(\", layoutType=\").append(layoutType);\n sb.append(\", df=\").append(df);\n sb.append(\", fields=\").append(fields);\n sb.append(\", jsondata=\").append(jsondata);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", corpcode=\").append(corpcode);\n sb.append(\", corpname=\").append(corpname);\n sb.append(\", corpshortname=\").append(corpshortname);\n sb.append(\", corptype=\").append(corptype);\n sb.append(\", id=\").append(id);\n sb.append(\", corpid=\").append(corpid);\n sb.append(\", inquirycontent=\").append(inquirycontent);\n sb.append(\", inquirydate=\").append(inquirydate);\n sb.append(\", attribute1=\").append(attribute1);\n sb.append(\", attribute2=\").append(attribute2);\n sb.append(\", attribute3=\").append(attribute3);\n sb.append(\", createdby=\").append(createdby);\n sb.append(\", creationdate=\").append(creationdate);\n sb.append(\", lastupdateby=\").append(lastupdateby);\n sb.append(\", lastupdatedate=\").append(lastupdatedate);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", name=\").append(name);\n sb.append(\", level=\").append(level);\n sb.append(\", parentId=\").append(parentId);\n sb.append(\", status=\").append(status);\n sb.append(\", remark=\").append(remark);\n sb.append(\", operator=\").append(operator);\n sb.append(\", operateTime=\").append(operateTime);\n sb.append(\", operateIp=\").append(operateIp);\n sb.append(\", sep=\").append(sep);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\r\n public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(getClass().getSimpleName());\r\n sb.append(\" [\");\r\n sb.append(\"Hash = \").append(hashCode());\r\n sb.append(\", id=\").append(id);\r\n sb.append(\", fundCode=\").append(fundCode);\r\n sb.append(\", batchNo=\").append(batchNo);\r\n sb.append(\", startDate=\").append(startDate);\r\n sb.append(\", endDate=\").append(endDate);\r\n sb.append(\", totalBuyMoney=\").append(totalBuyMoney);\r\n sb.append(\", totalBuyNum=\").append(totalBuyNum);\r\n sb.append(\", totalBuyFee=\").append(totalBuyFee);\r\n sb.append(\", costNetWorth=\").append(costNetWorth);\r\n sb.append(\", saleNetWorth=\").append(saleNetWorth);\r\n sb.append(\", returnRate=\").append(returnRate);\r\n sb.append(\", buyModel=\").append(buyModel);\r\n sb.append(\", buyStrategy=\").append(buyStrategy);\r\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\r\n sb.append(\"]\");\r\n return sb.toString();\r\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", tagId=\").append(tagId);\n sb.append(\", tagName=\").append(tagName);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", index=\").append(index);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", questionId=\").append(questionId);\n sb.append(\", title=\").append(title);\n sb.append(\", questionType=\").append(questionType);\n sb.append(\", answerCount=\").append(answerCount);\n sb.append(\", followerCount=\").append(followerCount);\n sb.append(\", visitCount=\").append(visitCount);\n sb.append(\", authorId=\").append(authorId);\n sb.append(\", authorName=\").append(authorName);\n sb.append(\", voteupCount=\").append(voteupCount);\n sb.append(\", commentCount=\").append(commentCount);\n sb.append(\", collapsedAnswerCount=\").append(collapsedAnswerCount);\n sb.append(\", created=\").append(created);\n sb.append(\", updatedTime=\").append(updatedTime);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", IS_DELETED=\").append(IS_DELETED);\n sb.append(\", NOT_DELETED=\").append(NOT_DELETED);\n sb.append(\", id=\").append(id);\n sb.append(\", valueId=\").append(valueId);\n sb.append(\", addTime=\").append(addTime);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", deleted=\").append(deleted);\n sb.append(\", reason=\").append(reason);\n sb.append(\", ballPackId=\").append(ballPackId);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", uid=\").append(uid);\n sb.append(\", temperature=\").append(temperature);\n sb.append(\", ifkesou=\").append(ifkesou);\n sb.append(\", healthinfo=\").append(healthinfo);\n sb.append(\", imgurl=\").append(imgurl);\n sb.append(\", videourl=\").append(videourl);\n sb.append(\", signtime=\").append(signtime);\n sb.append(\", otherinfo=\").append(otherinfo);\n sb.append(\", ifstay=\").append(ifstay);\n sb.append(\", ifleavenj=\").append(ifleavenj);\n sb.append(\", iflose=\").append(iflose);\n sb.append(\", loseinfo=\").append(loseinfo);\n sb.append(\", docinfo=\").append(docinfo);\n sb.append(\", ifsafe=\").append(ifsafe);\n sb.append(\", ifhot=\").append(ifhot);\n sb.append(\", reportname=\").append(reportname);\n sb.append(\", reportphone=\").append(reportphone);\n sb.append(\", ismanage=\").append(ismanage);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", shoppingCardId=\").append(shoppingCardId);\n sb.append(\", userId=\").append(userId);\n sb.append(\", phoneId=\").append(phoneId);\n sb.append(\", gmtCreate=\").append(gmtCreate);\n sb.append(\", gmtModified=\").append(gmtModified);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(getClass().getSimpleName());\n\t\tsb.append(\" [\");\n\t\tsb.append(\"Hash = \").append(hashCode());\n\t\tsb.append(\", id=\").append(id);\n\t\tsb.append(\", parentid=\").append(parentid);\n\t\tsb.append(\", name=\").append(name);\n\t\tsb.append(\", url=\").append(url);\n\t\tsb.append(\", type=\").append(type);\n\t\tsb.append(\", describe=\").append(describe);\n\t\tsb.append(\", weight=\").append(weight);\n\t\tsb.append(\", status=\").append(status);\n\t\tsb.append(\", createtime=\").append(createtime);\n\t\tsb.append(\", updatetime=\").append(updatetime);\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", productId=\").append(productId);\n sb.append(\", hotelId=\").append(hotelId);\n sb.append(\", category=\").append(category);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", createPerson=\").append(createPerson);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", updatePerson=\").append(updatePerson);\n sb.append(\", value=\").append(value);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", roleId=\").append(roleId);\n sb.append(\", subSysId=\").append(subSysId);\n sb.append(\", subSysInfoId=\").append(subSysInfoId);\n sb.append(\", valid=\").append(valid);\n sb.append(\", createUser=\").append(createUser);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", modifyUser=\").append(modifyUser);\n sb.append(\", modifyTime=\").append(modifyTime);\n sb.append(\", memo=\").append(memo);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"public String getHash() {\n return hash;\n }",
"public String getHash() {\n return hash;\n }",
"public String getHash() {\n return hash;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", userId=\").append(userId);\n sb.append(\", roleId=\").append(roleId);\n sb.append(\", updateUser=\").append(updateUser);\n sb.append(\", createUser=\").append(createUser);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", carparktypeid=\").append(carparktypeid);\n sb.append(\", carparktype=\").append(carparktype);\n sb.append(\", isselected=\").append(isselected);\n sb.append(\", carparksurveyinfoid=\").append(carparksurveyinfoid);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", scoreTotalDataId=\").append(scoreTotalDataId);\n sb.append(\", totalScoreResultId=\").append(totalScoreResultId);\n sb.append(\", baseId=\").append(baseId);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", totalScore=\").append(totalScore);\n sb.append(\", sysId=\").append(sysId);\n sb.append(\", agentId=\").append(agentId);\n sb.append(\", audioCode=\").append(audioCode);\n sb.append(\", recordDuration=\").append(recordDuration);\n sb.append(\", startTime=\").append(startTime);\n sb.append(\", remoteUri=\").append(remoteUri);\n sb.append(\", localUri=\").append(localUri);\n sb.append(\", recordFile=\").append(recordFile);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", activityId=\").append(activityId);\n sb.append(\", spuId=\").append(spuId);\n sb.append(\", participation=\").append(participation);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"public static void main(String[] args) {\n Hash myHashTable = new Hash(7);\n for(int i = 0; i<15; i++){\n int a=(int)(Math.random()*100);\n System.out.print( a+\" \");\n myHashTable.insert(a);\n \n }\n myHashTable.print();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", chargeid=\").append(chargeid);\n sb.append(\", chargename=\").append(chargename);\n sb.append(\", isselected=\").append(isselected);\n sb.append(\", chargepatternid=\").append(chargepatternid);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"public void print(){\n for (int i = 0; i < hashTable.length; i++){\n if (hashTable[i] != null){\n LLNodeHash ptr = hashTable[i];\n while (ptr.getNext() != null){\n System.out.print(\"(\" + ptr.getKey() + \", \" + ptr.getFreq() + \")\");\n ptr = ptr.getNext();\n }\n System.out.print(\"(\" + ptr.getKey() + \", \" + ptr.getFreq() + \")\");\n }\n }\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", type=\").append(type);\n sb.append(\", levelId=\").append(levelId);\n sb.append(\", evaluate=\").append(evaluate);\n sb.append(\", userId=\").append(userId);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", modifyTime=\").append(modifyTime);\n sb.append(\", isDeleted=\").append(isDeleted);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", uuid=\").append(uuid);\n sb.append(\", definedName=\").append(definedName);\n sb.append(\", fileName=\").append(fileName);\n sb.append(\", diskFileName=\").append(diskFileName);\n sb.append(\", fileType=\").append(fileType);\n sb.append(\", filePath=\").append(filePath);\n sb.append(\", contentUuid=\").append(contentUuid);\n sb.append(\", uploadTime=\").append(uploadTime);\n sb.append(\", createBy=\").append(createBy);\n sb.append(\", createDate=\").append(createDate);\n sb.append(\", updateBy=\").append(updateBy);\n sb.append(\", updateDate=\").append(updateDate);\n sb.append(\", isDelete=\").append(isDelete);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", studentName=\").append(studentName);\n sb.append(\", mobilePhone=\").append(mobilePhone);\n sb.append(\", email=\").append(email);\n sb.append(\", parentName=\").append(parentName);\n sb.append(\", status=\").append(status);\n sb.append(\", parentCall=\").append(parentCall);\n sb.append(\", creatTime=\").append(creatTime);\n sb.append(\", executeTime=\").append(executeTime);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }"
]
| [
"0.7531474",
"0.7494289",
"0.74770004",
"0.7221771",
"0.71993643",
"0.71375215",
"0.69238776",
"0.6626864",
"0.658107",
"0.657372",
"0.657372",
"0.6566303",
"0.65651417",
"0.65602124",
"0.65358335",
"0.6533007",
"0.6529128",
"0.65272707",
"0.651566",
"0.64898986",
"0.64350915",
"0.6420497",
"0.6417734",
"0.641084",
"0.6410219",
"0.6390633",
"0.6379087",
"0.63738084",
"0.63642925",
"0.63547754",
"0.6353896",
"0.6347546",
"0.634405",
"0.6305876",
"0.6305737",
"0.629807",
"0.62974733",
"0.62790185",
"0.62615323",
"0.62570363",
"0.62478983",
"0.6247188",
"0.62440366",
"0.62381893",
"0.6234428",
"0.62332225",
"0.6229882",
"0.6228713",
"0.6211513",
"0.62073433",
"0.6178458",
"0.61728865",
"0.6172213",
"0.6167961",
"0.6158415",
"0.61552876",
"0.61530983",
"0.61485493",
"0.61461824",
"0.61392564",
"0.61310303",
"0.61268103",
"0.6118074",
"0.6115147",
"0.6112188",
"0.61119235",
"0.61097413",
"0.61065114",
"0.6099405",
"0.60977167",
"0.6096863",
"0.6089751",
"0.60891813",
"0.60833275",
"0.60815036",
"0.6080477",
"0.607757",
"0.6074545",
"0.60698014",
"0.6065192",
"0.6061059",
"0.605272",
"0.6052654",
"0.60499394",
"0.60482603",
"0.60410017",
"0.6036441",
"0.60362595",
"0.60362595",
"0.60362595",
"0.60339594",
"0.6027473",
"0.60206646",
"0.60146785",
"0.6012281",
"0.60094386",
"0.60085684",
"0.600775",
"0.60038644",
"0.5997628"
]
| 0.7103356 | 6 |
/ TSnackbar snackbar = TSnackbar.make(findViewById(android.R.id.content), message, TSnackbar.LENGTH_LONG); View snackbarView = snackbar.getView(); snackbarView.setBackgroundColor(bColor); TextView textView = (TextView) snackbarView.findViewById(com.androidadvance.topsnackbar.R.id.snackbar_text); textView.setTextColor(Color.WHITE); textView.setGravity(Gravity.CENTER); snackbar.show(); | protected void showTopSnackBar(String message, int bColor) {
Snackbar snack = Snackbar.make(getWindow().getDecorView().findViewById(android.R.id.content), message, Snackbar.LENGTH_LONG);
View snackbarView = snack.getView();
snackbarView.setBackgroundColor(bColor);
// TextView textView = (TextView) snackbarView.findViewById(com.androidadvance.topsnackbar.R.id.snackbar_text);
// textView.setTextColor(Color.WHITE);
// textView.setGravity(Gravity.CENTER_HORIZONTAL);
// FrameLayout.LayoutParams params =(FrameLayout.LayoutParams)snackbarView.getLayoutParams();
// params.gravity = Gravity.TOP;
// snackbarView.setLayoutParams(params);
snack.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void showGreenSnackbar(String message, Activity activity, int snackbarDuration) {\n snackbar = Snackbar.make(activity.findViewById(android.R.id.content), message, snackbarDuration);\n View snackbarView = snackbar.getView();\n snackbarView.setBackgroundColor(Color.parseColor(GREEN));\n\n TextView snackbarText = snackbarView.findViewById(com.google.android.material.R.id.snackbar_text);\n snackbarText.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_vector_checkmark, 0, 0, 0);\n snackbarText.setCompoundDrawablePadding(ICON_PADDING_SNACKBAR);\n snackbarText.setGravity(Gravity.CENTER);\n\n FrameLayout.LayoutParams params = (FrameLayout.LayoutParams)snackbarView.getLayoutParams();\n params.width = FrameLayout.LayoutParams.MATCH_PARENT;\n snackbarView.setLayoutParams(params);\n\n snackbar.show();\n }",
"public static void showRedSnackbar(String message, Activity activity, int snackbarDuration) {\n snackbar = Snackbar.make(activity.findViewById(android.R.id.content), message, snackbarDuration);\n View snackbarView = snackbar.getView();\n snackbarView.setBackgroundColor(Color.parseColor(RED));\n\n TextView snackbarText = snackbarView.findViewById(com.google.android.material.R.id.snackbar_text);\n snackbarText.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_vector_cross, 0, 0, 0);\n snackbarText.setCompoundDrawablePadding(ICON_PADDING_SNACKBAR);\n snackbarText.setGravity(Gravity.CENTER);\n\n FrameLayout.LayoutParams params = (FrameLayout.LayoutParams)snackbarView.getLayoutParams();\n params.width = FrameLayout.LayoutParams.MATCH_PARENT;\n snackbarView.setLayoutParams(params);\n\n snackbar.show();\n }",
"public static void showSnackBar(Context context, LinearLayout mainLayout, String msg, String btnText, int length){\n Resources resources = context.getResources();\n\n Snackbar snackbar = Snackbar\n .make(mainLayout, msg, length )\n .setAction(resources.getText(R.string.ok), new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n }\n });\n\n // Changing message text color\n snackbar.setActionTextColor(ContextCompat.getColor(context, R.color.home_yellow));\n\n // Changing action button text color\n View sbView = snackbar.getView();\n sbView.setBackgroundColor(ContextCompat.getColor(context, R.color.background_edittext));\n\n TextView textView = (TextView) sbView.findViewById(com.google.android.material.R.id.snackbar_text);\n textView.setTextColor(ContextCompat.getColor(context, R.color.edittext_text));\n textView.setMaxLines(5);\n snackbar.show();\n }",
"private void showSnackBar(String message) {\n if(getActivity()!=null) {\n Snackbar snackbar = Snackbar.make(getActivity().findViewById(android.R.id.content),\n message, Snackbar.LENGTH_SHORT);\n View sbView = snackbar.getView();\n TextView textView = sbView\n .findViewById(android.support.design.R.id.snackbar_text);\n textView.setTextColor(ContextCompat.getColor(getActivity(), R.color.white));\n snackbar.show();\n }\n }",
"public void displaySnackBar(View layout,int message,int bgcolor){\n Snackbar snack=null;\n View snackView;\n\n if(message == com.ibeis.wildbook.wildbook.R.string.offline)\n snack=Snackbar.make(layout,message,Snackbar.LENGTH_INDEFINITE);\n else\n snack=Snackbar.make(layout,message,Snackbar.LENGTH_SHORT);\n snackView = snack.getView();\n snackView.setBackgroundColor(bgcolor);\n snack.show();\n }",
"public void DisplaySnackBarAboveBar(String message, Boolean setAction) {\n int marginSide = 0;\n int marginBottom = 150;\n Snackbar snackbar = Snackbar.make(\n coordinatorLayout,\n message,\n Snackbar.LENGTH_LONG\n );\n\n if (setAction) {\n snackbar.setAction(\"Share Now\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent sendIntent = new Intent();\n sendIntent.setAction(Intent.ACTION_SEND);\n sendIntent.putExtra(Intent.EXTRA_TEXT, \"please visit https://www.noobsplanet.com\");\n sendIntent.setType(\"text/plain\");\n startActivity(Intent.createChooser(sendIntent, \"Send to \"));\n }\n });\n }\n\n View snackbarView = snackbar.getView();\n CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) snackbarView.getLayoutParams();\n params.setMargins(\n params.leftMargin + marginSide,\n params.topMargin,\n params.rightMargin + marginSide,\n params.bottomMargin + marginBottom + 100\n );\n\n snackbarView.setLayoutParams(params);\n snackbar.show();\n }",
"private void showSnackbarMessage(String message){\n if(view != null){\n Snackbar.make(view, message, Snackbar.LENGTH_SHORT).show();\n }\n }",
"public void SnackBarB() {\n Snackbar.make(getWindow().getDecorView().getRootView(),\n \"Cálculos sobre cinemática de rotación.\", Snackbar.LENGTH_LONG).show();\n }",
"private void SnackShowTop(String message, View view) {\n Snackbar snack = Snackbar.make(view, message, Snackbar.LENGTH_LONG);\n View view_layout = snack.getView();\n FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) view_layout.getLayoutParams();\n params.gravity = Gravity.TOP;\n view_layout.setLayoutParams(params);\n snack.show();\n }",
"public static void showSnackbar(Activity context, String message){\r\n Snackbar.make(context.findViewById(android.R.id.content), message, Snackbar.LENGTH_LONG)\r\n .setAction(\"Dismiss\", new View.OnClickListener(){\r\n @Override\r\n public void onClick(View v){\r\n // Dismisses automatically\r\n }\r\n }).setActionTextColor(context.getResources().getColor(R.color.colorAccent))\r\n .show();\r\n }",
"private void createSnackbar(String message) {\n Snackbar.make(mLayout, message, Snackbar.LENGTH_LONG).show();\n }",
"private void showSnackBar(String message) {\n }",
"public void showSnack(boolean isConnected) {\n String message;\n int color;\n if (isConnected) {\n message = \"Good! Connected to Internet\";\n color = Color.WHITE;\n getUserLocation();\n } else {\n message = \"Sorry! Not connected to internet\";\n color = Color.RED;\n }\n\n Snackbar snackbar = Snackbar.make(activity.findViewById(android.R.id.content), message, Snackbar.LENGTH_LONG);\n\n View sbView = snackbar.getView();\n// TextView textView = (TextView) sbView.findViewById(a);\n// textView.setTextColor(color);\n snackbar.show();\n }",
"private void ShowToast(String massage, int colorText, int background) {\n Typeface font = Typeface.createFromAsset(getAssets(), \"comic.ttf\");\n Toast toast = Toast.makeText(SignUpActivity.this, massage,\n Toast.LENGTH_LONG);\n View view=toast.getView();\n TextView view1= view.findViewById(android.R.id.message);\n view1.setTextColor(colorText);\n view.setBackgroundResource(background);\n view1.setTypeface(font);\n toast.show();\n }",
"public void showToast(String text)\n {\n Text icon = GlyphsDude.createIcon(FontAwesomeIconName.CHECK_CIRCLE,\"1.5em\");\n icon.setFill(Color.WHITE);\n Label l = new Label(text) ;\n l.setTextFill(Color.WHITE);\n l.setGraphic(icon);\n snackbar = new JFXSnackbar(PrinciplePane);\n snackbar.enqueue( new JFXSnackbar.SnackbarEvent(l));\n }",
"private void snackBar(String msg) {\n MySnackBar.createSnackBar(Objects.requireNonNull(getContext()), Objects.requireNonNull(getView()), msg);\n }",
"public static void showSnackBar(Context context, String msg) {\n\n Snackbar.make(((Activity) context).findViewById(android.R.id.content), \"\" + msg, Snackbar.LENGTH_LONG).show();\n }",
"void onSnackBarActionClicked(int uniqueId, View view);",
"public static void showSnackbar(Activity activity, final View parent, final String message, final String actionText) {\n activity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n final Snackbar snackbar = Snackbar.make(parent, message, Snackbar.LENGTH_LONG)\n .setAction(actionText, new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n }\n });\n snackbar.show();\n }\n });\n\n }",
"public void showNotification(String notificationText) {\n View parentLayout = findViewById(android.R.id.content);\n Snackbar mySnackbar = Snackbar.make(parentLayout, notificationText, Snackbar.LENGTH_LONG);\n mySnackbar.show();\n }",
"void showErrorSnackbar();",
"private void showUndoSnackbar() {\n View view = ((Activity) this.context).findViewById(R.id.paletteActivity);\n\n Snackbar snackbar = Snackbar.make(view, R.string.undoColorShift,\n Snackbar.LENGTH_LONG);\n\n snackbar.setAction(\"UNDO\", v -> undoChange());\n snackbar.show();\n }",
"private void showSnack(boolean isConnected) {\n String message;\n int color;\n if (isConnected) {\n message = \"Good! Connected to Internet\";\n color = Color.WHITE;\n } else {\n message = \"Sorry! Not connected to internet\";\n color = Color.RED;\n }\n\n Snackbar snackbar = Snackbar\n .make(findViewById(android.R.id.content), message, Snackbar.LENGTH_LONG);\n\n View sbView = snackbar.getView();\n TextView textView = sbView.findViewById(android.support.design.R.id.snackbar_text);\n textView.setTextColor(color);\n snackbar.show();\n }",
"public void showSnackBar(final View view, final String message) {\n Snackbar.make(view, message, Snackbar.LENGTH_SHORT).show();\n }",
"@Override\n public void run() {\n snackbar.setVisibility(View.GONE); //This will remove the View. and free s the space occupied by the View\n }",
"@Override\n public void onFailure(@NonNull Call<Void> call, @NonNull Throwable t) {\n Snackbar.make(findViewById(R.id.activity_coordinator_layout), t.getLocalizedMessage(), Snackbar.LENGTH_INDEFINITE).show();\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n Snackbar snackbar = Snackbar.make(findViewById(android.R.id.content), \"Error occurred! Please log out and log in again to upload the interview.\" + \"\\n\" + \"Note: Do not log out if you want to resume the offline interview process.\", Snackbar.LENGTH_LONG);\n View snackbarView = snackbar.getView();\n TextView tv = (TextView) snackbarView.findViewById(android.support.design.R.id.snackbar_text);\n tv.setTextColor(getResources().getColor(R.color.dashboard_count_color));\n tv.setMaxLines(5);\n //tv.setTextSize(17);\n //tv.setGravity(0);\n //snackbarView.setBackgroundColor(getResources().getColor(R.color.newblack));\n snackbar.show();\n }",
"@Override\n public void onClick(View v) {\n Snackbar.make(v, \"I'm dead! =(\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n }",
"public void notificacionToast(String mensaje){\n Toast toast = Toast.makeText(getApplicationContext(),mensaje,Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n toast.show();\n }",
"private void muestraMensaje(int idMensaje) {\n final Snackbar snack=Snackbar.make(mLayout,idMensaje,Snackbar.LENGTH_LONG).\n setAction(R.string.texto_cerrar, v -> {\n // No necesitamos hacer nada, solo que se cierre\n });\n snack.show();\n }",
"private void createSnack() {\n }",
"private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }",
"private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }",
"private static StyleableToast makeToast(String text, @ToastLength int length) {\n StyleableToast st = new StyleableToast(BaseApplication.getInstance(), text, length);\n st.setBackgroundColor(BaseApplication.getInstance().getResources().getColor(R.color.colorPrimary));\n st.setTextColor(Color.WHITE);\n st.setIcon(R.drawable.ic_shape_square_plus_white_24dp);\n st.spinIcon();\n //st.setMaxAlpha();\n //st.show();\n\n return st;\n }",
"private SnackbarHelper() {\n\n}",
"public static void showSnack(final Context context, View view, boolean isConnected) {\n if (snackbar == null) {\n snackbar = Snackbar\n .make(view, context.getString(R.string.network_failure), Snackbar.LENGTH_INDEFINITE)\n .setAction(\"SETTINGS\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(android.provider.Settings.ACTION_SETTINGS);\n context.startActivity(intent);\n }\n });\n View sbView = snackbar.getView();\n TextView textView = sbView.findViewById(android.support.design.R.id.snackbar_text);\n textView.setTextColor(Color.WHITE);\n }\n\n if (!isConnected && !snackbar.isShown()) {\n snackbar.show();\n } else {\n snackbar.dismiss();\n snackbar = null;\n }\n }",
"public void toastSuccess(String mensagem){\n\n Context context = getApplicationContext();\n CharSequence text = mensagem;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n\n View view = toast.getView();\n\n //Obtém o plano de fundo oval real do Toast e, em seguida, define o filtro de cores\n view.getBackground().setColorFilter(getResources().getColor(R.color.colorSuccess), PorterDuff.Mode.SRC_IN);\n\n //Obtém o TextView do Toast para que ele possa ser editado\n TextView newText = view.findViewById(android.R.id.message);\n newText.setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n newText.setTextColor(getResources().getColor(R.color.colorWhite));\n\n toast.show();\n\n }",
"public String getSnackBarText() {\n return snackBar.getText();\n }",
"private void showSnack(boolean isConnected) {\n String message;\n int color;\n if (isConnected) {\n message =getString(R.string.back_online);\n TastyToast.makeText(getApplicationContext(), message, TastyToast.LENGTH_SHORT, TastyToast.SUCCESS);\n } else {\n message =getString(R.string.you_are_offline);\n TastyToast.makeText(getApplicationContext(), message, TastyToast.LENGTH_LONG, TastyToast.ERROR);\n }\n }",
"public void displayToastMessage(String msg) {\n\t\tToast toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);\n\t\ttoast.setGravity(Gravity.CENTER, 0, 0);\n\t\ttoast.show();\n\t}",
"@Override\n public void onClick(View view) {\n Toast msg = Toast.makeText(NicogetActivity.this, \"Je confirme !\", Toast.LENGTH_LONG);\n msg.setGravity(Gravity.CENTER, msg.getXOffset()/2, msg.getYOffset()/2);\n msg.show();\n }",
"private void showSnack(boolean isConnected) {\n String message;\n int color;\n if (isConnected) {\n message =getString(R.string.back_online);\n TastyToast.makeText(getActivity(), message, TastyToast.LENGTH_SHORT, TastyToast.SUCCESS);\n } else {\n message =getString(R.string.you_are_offline);\n TastyToast.makeText(getActivity(), message, TastyToast.LENGTH_LONG, TastyToast.ERROR);\n }\n }",
"public void showMessage(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT).show();\n }",
"public static void setDialogViewMessage(Context context, AlertDialog.Builder alert, String message1, String message2){\n// Log.e(\"setDialogViewMessage\", \"setDialogViewMessage\");\n LinearLayout ll=new LinearLayout(context);\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n\n layoutParams.setMargins(20, 10, 20, 10);\n\n ll.setOrientation(LinearLayout.VERTICAL);\n ll.setLayoutParams(layoutParams);\n TextView messageView1 = new TextView(context);\n TextView messageView2 = new TextView(context);\n TextView messageView3 = new TextView(context);\n messageView1.setLayoutParams(layoutParams);\n messageView2.setLayoutParams(layoutParams);\n messageView3.setLayoutParams(layoutParams);\n messageView1.setText(message1);\n messageView2.setText(message2);\n PackageInfo pInfo = null;\n String version = \"\";\n try {\n pInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);\n version = pInfo.versionName;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n }\n\n messageView3.setText(\"Card Safe Version \" + version);\n ll.addView(messageView1);\n ll.addView(messageView2);\n ll.addView(messageView3);\n alert.setView(ll);\n\n }",
"public void toastMsg(View v){\n String msg = \"Message Sent!\";\n Toast toast = Toast.makeText(this,msg,Toast.LENGTH_SHORT);\n toast.show();\n }",
"public void Text_Message(View view) {\r\n adb= new AlertDialog.Builder(this);\r\n adb.setCancelable(false);\r\n adb.setTitle(\"Message Input\");\r\n final EditText eT= new EditText(this);\r\n eT.setHint(\"Type Message Here\");\r\n adb.setView(eT);\r\n adb.setPositiveButton(\"Show\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n String str= eT.getText().toString();\r\n Toast.makeText(MainActivity.this,str,Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n adb.setNegativeButton(\"Cancle\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });\r\n AlertDialog ad=adb.create();\r\n ad.show();\r\n }",
"private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }",
"private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }",
"private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }",
"protected void showMessage(@NonNull final String message) {\n SnackbarManager.show(Snackbar.with(this).text(message).colorResource(R.color.blende_red).swipeToDismiss(true));\n }",
"private void displayToast(String message) {\n\n //get the LayoutInflater and inflate the custom_toast layout\n LayoutInflater view = getLayoutInflater();\n View layout = view.inflate(R.layout.toast, null);\n\n //get the TextView from the custom_toast layout\n TextView text = layout.findViewById(R.id.txtMessage);\n text.setText(message);\n\n //create the toast object, set display duration,\n //set the view as layout that's inflated above and then call show()\n Toast toast = new Toast(getApplicationContext());\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setView(layout);\n toast.show();\n }",
"public void toastError(String mensagem){\n\n Context context = getApplicationContext();\n CharSequence text = mensagem;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n\n View view = toast.getView();\n\n //Obtém o plano de fundo oval real do Toast e, em seguida, define o filtro de cores\n view.getBackground().setColorFilter(getResources().getColor(R.color.colorError), PorterDuff.Mode.SRC_IN);\n\n //Obtém o TextView do Toast para que ele possa ser editado\n TextView newText = view.findViewById(android.R.id.message);\n newText.setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n newText.setTextColor(getResources().getColor(R.color.colorWhite));\n\n toast.show();\n\n }",
"void onMessageToast(String string);",
"@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message! Your emergnecy conctacts will be notified!\", Toast.LENGTH_SHORT).show();\n\n }",
"void showToast(String message);",
"void showToast(String message);",
"private void makeToast(String msg)\n {\n FinanceApp.serviceFactory.getUtil().makeAToast(this, msg);\n }",
"private void toast(String bread) {\n Toast.makeText(getActivity(), bread, Toast.LENGTH_SHORT).show();\n }",
"private void makeToast(String message){\n Toast.makeText(SettingsActivity.this, message, Toast.LENGTH_LONG).show();\n }",
"private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"private void showMessage(String msg) {\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }",
"public void makeToast(String name,int time){\n toast = new Toast(context);\n// toast.setGravity(Gravity.BOTTOM|Gravity.CENTER_HORIZONTAL , 0, SecretMessageApplication.get720WScale(240));\n toast.setDuration(time);\n// toast.setView(layout);\n toast.show();\n\n }",
"private void doToast() {\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\t\r\n\t\t// Create and send toast\r\n\t\tContext context = getApplicationContext();\r\n\t\tint duration = Toast.LENGTH_SHORT;\r\n\t\tToast toast = Toast.makeText(context, message, duration);\r\n\t\ttoast.show();\r\n\t}",
"void showErrorSnackbar(long syncInterval) {\r\n // Initialize the the parameters that will be used to create the String message\r\n int timePassed;\r\n String timeUnit;\r\n if (syncInterval < DAY_IN_SECONDS) {\r\n // If less than a day has passed, convert the number of seconds to hours\r\n timePassed = (int) (syncInterval / HOUR_IN_SECONDS);\r\n\r\n // Set the time unit to singular or multiple\r\n if (timePassed == 1) {\r\n timeUnit = getString(R.string.hour_singular);\r\n } else {\r\n timeUnit = getString(R.string.hour_multiple);\r\n }\r\n\r\n } else {\r\n // Convert the time passed to days\r\n timePassed = (int) (syncInterval / DAY_IN_SECONDS);\r\n\r\n // Set the time unit to singular or multiple\r\n if (timePassed == 1) {\r\n timeUnit = getString(R.string.day_singular);\r\n } else {\r\n timeUnit = getString(R.string.day_multiple);\r\n }\r\n }\r\n\r\n // Create the String message to display to the user to notify them of how long\r\n // since the last sync\r\n String timeString = getString(R.string.error_last_sync, timePassed + \" \" + timeUnit);\r\n\r\n // Create a Snackbar to hold the message\r\n mSnackBar = Snackbar.make(mDrawerLayout,\r\n timeString,\r\n Snackbar.LENGTH_INDEFINITE\r\n );\r\n\r\n // Set the Snackbar to be dismissed on click\r\n mSnackBar.getView().setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n mSnackBar.dismiss();\r\n }\r\n });\r\n\r\n // Show the Snackbar\r\n mSnackBar.show();\r\n }",
"@Override\n public void onErrorResponse(VolleyError volleyError) {\n progressDialog.dismiss();\n\n // Showing error message if something goes wrong.\n Snackbar snackbar = Snackbar\n .make(coordinatorLayout, \"No internet connection!\", Snackbar.LENGTH_LONG)\n .setAction(\"RETRY\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n }\n });\n\n // Changing message text color\n snackbar.setActionTextColor(Color.RED);\n\n // Changing action button text color\n View sbView = snackbar.getView();\n TextView textView = (TextView) sbView.findViewById(android.support.design.R.id.snackbar_text);\n textView.setTextColor(Color.YELLOW);\n\n snackbar.show();\n }",
"private void showToast(String message) {\n\t\tToast toast = Toast.makeText(getApplicationContext(), message,\n\t\t\t\tToast.LENGTH_SHORT);\n\n\t\ttoast.setGravity(Gravity.CENTER | Gravity.CENTER_HORIZONTAL, 0, 0);\n\t\ttoast.show();\n\t}",
"private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }",
"private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String message = String.valueOf(guardiansName.get(position));\n clickedGuardian = new String[]\n {String.valueOf(guardiansPhone.get(position)),\n String.valueOf(guardiansName.get(position)),};\n snackbar = Snackbar.make(getActivity().findViewById(R.id.myCoordinatorLayout), message, Snackbar.LENGTH_LONG);\n snackbar.setAction(R.string.Update, new UpdateGuardian());\n snackbar.show();\n }",
"@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }",
"public void tingOnUI(final String msg) {\r\n\r\n\t\trunOnUiThread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tToast.makeText(SmartActivity.this, msg, Toast.LENGTH_SHORT).show();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}",
"@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message!\", Toast.LENGTH_SHORT).show();\n\n }",
"static void makeToast(Context ctx, String s){\n Toast.makeText(ctx, s, Toast.LENGTH_SHORT).show();\n }",
"private void showToast(int color) {\n String rgbString = \"R: \" + Color.red(color) + \" B: \" + Color.blue(color) + \" G: \" + Color.green(color);\n Toast.makeText(this, rgbString, Toast.LENGTH_SHORT).show();\n }",
"protected void toastshow1() {\n \n\t\tToast toast=Toast.makeText(this, \"image and text\", Toast.LENGTH_LONG);\n\t\t\n\t\tLinearLayout linearLayout=new LinearLayout(this);\n\t\tlinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tImageView imageView=new ImageView(this);\n\t\timageView.setImageResource(R.drawable.icon);\n\t\tButton button=new Button(this);\n\t\tbutton.setText(\"progress over\");\n\t\tView toastView=toast.getView();\n\t\tlinearLayout.addView(imageView);\n\t\tlinearLayout.addView(button);\n\t\tlinearLayout.addView(toastView);\n\t\t\n\t\ttoast.setView(linearLayout);\n\t\ttoast.show();\n\t\t\n\t}",
"private void showMessage(String message) {\n Toast.makeText(getApplicationContext(),message, Toast.LENGTH_LONG).show();\n }",
"public void errorMessage(String CustomErrorMessage){\n Toast toast = Toast.makeText(this, CustomErrorMessage, Toast.LENGTH_SHORT);\n TextView v = (TextView) toast.getView().findViewById(android.R.id.message);\n if( v != null) v.setGravity(Gravity.CENTER);\n toast.show();\n\n return;\n }",
"public void show(String message, int duration, int mcolor, int mtextsize) {\n\t\ttry {\n\n\t\t\tif (null == mNotificationDialog) {\n\t\t\t\tmNotificationDialog = (View) inflateManager.inflate(\n\t\t\t\t\t\tR.layout.unipointnotificationtoast, null);\n\t\t\t\t// Set the window params and set it to TYPE_TOAST .\n\t\t\t\tWindowManager.LayoutParams lp = new WindowManager.LayoutParams(\n\t\t\t\t\t\tLayoutParams.WRAP_CONTENT,\n\t\t\t\t\t\tLayoutParams.WRAP_CONTENT,\n\t\t\t\t\t\tWindowManager.LayoutParams.TYPE_TOAST,\n\t\t\t\t\t\tWindowManager.LayoutParams.FLAG_NOT_TOUCHABLE\n\t\t\t\t\t\t\t\t| WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,\n\t\t\t\t\t\tPixelFormat.OPAQUE);\n\n\t\t\t\tlp.gravity = Gravity.BOTTOM;\n\t\t\t\t// lp.x = 0;\n\t\t\t\t// lp.y = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tmWindowManager.addView(mNotificationDialog, lp);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tif (Unipoint_ServiceActivity.bDEBUG)\n\t\t\t\t\t\tLog.v(TAG,\"Add View got exception, may already added \");\n\t\t\t\t}\n\n\t\t\t\tmNotificationDialog.setVisibility(View.INVISIBLE);\n\n\t\t\t\t((LinearLayout) mNotificationDialog).setGravity(Gravity.TOP);\n\n\t\t\t}\n\n\t\t\tmNotificationDialog.setVisibility(View.INVISIBLE);\n\n\t\t\tif (!mShowing) {\n\t\t\t\tmShowing = true;\n\t\t\t}\n\t\t\tmNotificationDialog.setVisibility(View.VISIBLE);\n\n\t\t\t// It is shown already\n\t\t\tTextView descriptions = (TextView) mNotificationDialog\n\t\t\t\t\t.findViewById(R.id.notificationdescription);\n\t\t\tdescriptions.setText(message);\n\t\t\tdescriptions.setTextColor(mcolor);\n\t\t\tdescriptions.setTextSize(mtextsize);\n\n\t\t\tif (Unipoint_ServiceActivity.bDEBUG)\n\t\t\t\tLog.v(TAG, \"Start to Show the dialog, context :\" + message\n\t\t\t\t\t\t+ \" textsize : \" + mtextsize + \" Color :\" + mcolor);\n\n\t\t\tmUIthreadHandler.removeCallbacks(mRemoveWindowRunnable);\n\n\t\t\tboolean ret = mUIthreadHandler.postDelayed(mRemoveWindowRunnable,\n\t\t\t\t\tduration);\n\t\t\tif (ret) {\n\t\t\t\tif (Unipoint_ServiceActivity.bDEBUG)\n\t\t\t\t\tLog.v(TAG,\n\t\t\t\t\t\t\t\"Add delayed callbakc, duration Successfully\"\n\t\t\t\t\t\t\t\t\t+ duration);\n\n\t\t\t} else {\n\t\t\t\tif (Unipoint_ServiceActivity.bDEBUG)\n\t\t\t\t\tLog.v(TAG, \"Add delayed callbakc, duration Failed\"\n\t\t\t\t\t\t\t+ duration);\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected void showThemedToast(@StringRes final int resourceId, final int length) {\n Toast hint = Toast.makeText(getApplicationContext(), resourceId, length);\n final View hintView = hint.getView();\n hintView.setBackgroundColor(getResources().getColor(R.color.blende_red));\n if (hintView instanceof TextView) {\n ((TextView) hintView).setTextColor(getResources().getColor(android.R.color.white));\n }\n hint.show();\n }",
"private TextView m25227b(Context context) {\n TextView textView = new TextView(context);\n textView.setLayoutParams(new LayoutParams(-1, -1));\n textView.setGravity(17);\n textView.setText(this.options.getMessageText());\n textView.setTextColor(this.options.getMessageColor());\n textView.setTextSize(2, 18.0f);\n return textView;\n }",
"@Override\n public void onStart() {\n lt.setText(activity.getString(R.string.toastSending));\n lt.setBackgroundColor(activity.getResources().getColor(R.color.indigo_600));\n lt.setTextColor(activity.getResources().getColor(R.color.white));\n lt.show();\n }",
"@Override\n public void onStart () {\n lt.setText(activity.getString(R.string.toastSending));\n lt.setBackgroundColor(activity.getResources().getColor(R.color.indigo_600));\n lt.setTextColor(activity.getResources().getColor(R.color.white));\n lt.show();\n }",
"@Override\n public void onStart () {\n lt.setText(activity.getString(R.string.toastSending));\n lt.setBackgroundColor(activity.getResources().getColor(R.color.indigo_600));\n lt.setTextColor(activity.getResources().getColor(R.color.white));\n lt.show();\n }",
"private void displayMessage(String message) {\n TextView seeBoxReadMore = (TextView) findViewById(R.id.read_more1);\n seeBoxReadMore.setTextColor(Color.BLACK);\n seeBoxReadMore.setText(message);\n seeBoxReadMore.setGravity(Gravity.CENTER);\n }",
"public void showToast(View view) {\n // Initialize an object named 'toast' using the 'Toast' class\n Toast toast = Toast.makeText(this, R.string.toast_message, Toast.LENGTH_SHORT);\n\n // Use the method 'show()' under the 'Toast' class to show a message\n toast.show();\n }",
"private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }",
"private void displayMessage3(String message) {\n TextView iDropWaterReadMore = (TextView) findViewById(R.id.read_more3);\n iDropWaterReadMore.setTextColor(Color.BLACK);\n iDropWaterReadMore.setText(message);\n iDropWaterReadMore.setGravity(Gravity.CENTER);\n }",
"void toast(int resId);",
"public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}",
"protected void showToastMessage(String message)\n {\n Toast messageToast = null;\n messageToast= Toast.makeText(this,message,Toast.LENGTH_SHORT);\n\n messageToast.show();\n }",
"private void showToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_LONG).show();\n }",
"private void toastmessage(String message){\n Toast.makeText(Accountinfo.this,message,Toast.LENGTH_SHORT).show();\n }",
"public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }",
"public void showToast(String msg){\n Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();\n }",
"public MyDialogToast create() {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n MyDialogToast myDialogToast = new MyDialogToast(context, R.style.dialog);\n View view = inflater.inflate(R.layout.my_dialog_toast, null);\n myDialogToast.addContentView(view, new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT));\n if (message != null) {\n TextView v = (TextView) view.findViewById(R.id.tvToastMessage);\n v.setText(message);\n }\n myDialogToast.setContentView(view);\n return myDialogToast;\n }",
"@SuppressLint(\"PrivateResource\")\n public void showToastMessage(String message) {\n View includedLayout = findViewById(R.id.llToast);\n\n final TextView text = includedLayout.findViewById(R.id.tv_toast_message);\n text.setText(message);\n\n animation = AnimationUtils.loadAnimation(this,\n R.anim.abc_fade_in);\n\n text.setAnimation(animation);\n text.setVisibility(View.VISIBLE);\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @SuppressLint(\"PrivateResource\")\n @Override\n public void run() {\n animation = AnimationUtils.loadAnimation(SupportActivity.this,\n R.anim.abc_fade_out);\n\n text.setAnimation(animation);\n text.setVisibility(View.GONE);\n }\n }, 2000);\n }",
"public void displayMessage(View view) {\n // I got the following line of code from StackOverflow: http://stackoverflow.com/questions/5620772/get-text-from-pressed-button\n String s = (String) ((Button)view).getText();\n CharSequence msg = new StringBuilder().append(\"This button will launch my \").append(s.toString()).append(\" app\").toString();\n Toast.makeText(view.getContext(),msg, Toast.LENGTH_SHORT).show();\n }",
"private void toastMessage(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onClick(View v) {\n ((TextView) findViewById(R.id.text)).setTextColor(getResources().getColor(R.color.darkGreen));\n //background color to original\n findViewById(R.id.parent).setBackgroundColor(getResources().getColor(R.color.whiteGreen));\n //text content to original\n ((TextView) findViewById(R.id.text)).setText(\"Hello from Shiying!\");\n\n }",
"private void displayToast(CharSequence text){\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }"
]
| [
"0.76668394",
"0.7586835",
"0.7286583",
"0.72123903",
"0.71448624",
"0.69642085",
"0.69192994",
"0.6784911",
"0.674164",
"0.6686757",
"0.6650013",
"0.6630117",
"0.6626679",
"0.65759826",
"0.6532154",
"0.6502844",
"0.64916664",
"0.6388859",
"0.6330665",
"0.6308483",
"0.6302625",
"0.6296946",
"0.6263717",
"0.6206104",
"0.6155883",
"0.60566086",
"0.5973624",
"0.5948744",
"0.5892848",
"0.58895004",
"0.5882442",
"0.58393973",
"0.58393973",
"0.5825162",
"0.58220375",
"0.5811714",
"0.58096254",
"0.58052206",
"0.5763277",
"0.5740082",
"0.5736288",
"0.57189375",
"0.57178587",
"0.5710537",
"0.570557",
"0.56980264",
"0.5680299",
"0.5680299",
"0.5680299",
"0.56695426",
"0.5664718",
"0.56408626",
"0.5640166",
"0.5626165",
"0.56193453",
"0.56193453",
"0.5603524",
"0.5591521",
"0.5570101",
"0.55688566",
"0.5566758",
"0.5565804",
"0.5563034",
"0.5555135",
"0.5553096",
"0.555138",
"0.55422497",
"0.55422497",
"0.5530769",
"0.55298847",
"0.5527307",
"0.5525769",
"0.5521025",
"0.551715",
"0.5503433",
"0.5491354",
"0.54856896",
"0.5484753",
"0.54810405",
"0.5450007",
"0.5445584",
"0.54392517",
"0.54392517",
"0.54280293",
"0.54267603",
"0.54238147",
"0.5415544",
"0.540954",
"0.540776",
"0.54040205",
"0.54009867",
"0.5399184",
"0.53879005",
"0.5386625",
"0.53686225",
"0.536572",
"0.53624076",
"0.5359895",
"0.5358498",
"0.5357845"
]
| 0.8008279 | 0 |
Calculate pay overrides the abstract method from Employee and calculates pay for commission employee | @Override
public double calculatePay ()
{
double commissionPay = this.sales * this.rate / 100;
return commissionPay;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public double calculateSalary(){\n return this.horas_trabajadas*EmployeeByHours.VALOR_HORA;\n }",
"public abstract double pay();",
"public double calculatePay() \r\n\t{\r\n\t\treturn (payRate*hoursWorked);\r\n\t}",
"@Override\n\tpublic int calculateSalary() {\n\t\treturn this.getPaymentPerHour() * this.workingHours;\n\t}",
"@Override\r\n\tpublic void calculateSalary() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t salary = hoursWorked * hourlyWages;\r\n\t\t this.setSalary(salary);\r\n\t}",
"public void calculatePayment() {\n\t\tdouble pay = this.annualSalary / NUM_PAY_PERIODS;\n\t\tsuper.setPayment(pay);\n\t}",
"@Override\n public double pay() {\n double payment = super.pay() + (this.commision_rate * this.total_sales);\n this.total_sales = 0;\n return payment;\n }",
"@Override\r\n\tpublic int getPayCheque() {\n\t\treturn profit+annuelSalary;\r\n\t\t\r\n\t}",
"public double calculatePay() {\n\t\treturn 0;\r\n\t}",
"public double salaryPay() {\n\t\treturn overtimePay() + getSalary();\n\t}",
"@Override\n public void calculatePayment()\n {\n this.paymentAmount = annualSalary / SALARY_PERIOD;\n }",
"@Override\n public double earnings() {\n return salary + commission + quantity;\n }",
"@Override\n\tpublic void computeSalary(int empid) {\n\t\t\n\t}",
"public void getSalary() {\n this.payDay(this.monthlyIncome);\n }",
"@Override \n public double getPaymentAmount() \n { \n return getWeeklySalary(); \n }",
"@Override\n public double calculatePayDay()\n {\n double perWeekEarned = hourlyRate * hoursPerWeek;\n return (double)Math.round(perWeekEarned * 100) / 100;\n }",
"private double calculate(boolean salary, double employeeShift, double hrsIn, double payRate){\n\n if (salary){// --------- Salaried employee\n return payRate * hrsIn;\n }\n\n if (employeeShift == 2){\n payRate = payRate * 0.05 + payRate;// ------------ adjust payRate for 2nd shift --------\n\n }\n\n if (employeeShift == 3){\n payRate = payRate * 0.10 + payRate;// ------------ adjust payRate for 3rd shift --------\n\n }\n\n if (hrsIn <= 40) {//----------- check for overtime\n return hrsIn * payRate;//--------No O.T.\n }\n else{// ----------- Calculate O.T. rate\n double otHrs = hrsIn - 40;\n double otRate = payRate * 1.5;\n return (payRate * 40) + (otHrs * otRate);\n }\n }",
"public void calculateSalary() ;",
"public abstract double salary();",
"@Override\n public double getTotalCommission() {\n double cost = 0.0;\n //increase cost for each report in the order\n for (Report report : reports.keySet()) {\n //report cost depends on the WorkType\n //audits are not capped by max employee count\n //regular orders are limited by max employee count\n int employeeCount = reports.get(report);\n cost += workType.calculateReportCost(report, employeeCount);\n }\n //increase cost of order based on priority\n //critical orders increase based on their critical loading\n //regular orders don't have an effect\n cost = priorityType.loadCost(cost);\n return cost;\n }",
"public void companyPayRoll(){\n calcTotalSal();\n updateBalance();\n resetHoursWorked();\n topBudget();\n }",
"@Override\n public double calculatePay(double nmHrs) {\n //52 weeks in a year and 40 hours per week\n double hrRate = getSalary() / (40*52);\n //calculate their weekly pay\n double paycheck = 40 * hrRate;\n //determine if they worked overtime and calculate it\n if (nmHrs > 40) {\n double OT = nmHrs - 40;\n double OTMoney = OT * (hrRate*1.5);\n return OTMoney + paycheck;\n }\n //else return their normal weekly paycheck\n else {\n return paycheck;\n }\n\n }",
"@Override\n\tpublic double getPayment() {\n\t\treturn baseSalary + (this.getGrossSales() * this.getCommissionRate());\n\t}",
"private void processSalaryForEmployee(Epf epf, Esi esi, List<PayOut> payOuts,\r\n\t\t\tReportPayOut reportPayOut, PayrollControl payrollControl, List<LoanIssue> loanIssues, List<OneTimeDeduction> oneTimeDeductionList ) {\r\n\t\t\r\n\t\tPayRollProcessUtil util = new PayRollProcessUtil();\r\n\t\tBigDecimal netSalary = new BigDecimal(0);\r\n\t\tPayRollProcessHDDTO payRollProcessHDDTO = new PayRollProcessHDDTO();\r\n\t\t\r\n\t\tpayRollProcessHDDTO.setPayMonth(payrollControl.getProcessMonth());\r\n\t\tpayRollProcessHDDTO.setEpf(epf);\r\n\t\tpayRollProcessHDDTO.setEsi(esi);\t\r\n\t\tpayRollProcessHDDTO.setReportPayOut(reportPayOut);\r\n\t\tsetProfessionalTax(reportPayOut, payRollProcessHDDTO);\r\n\t\tList<PayRollProcessDTO> earningPayStructures = new ArrayList<PayRollProcessDTO>();\r\n\t\t\r\n\t\tDateUtils dateUtils = new DateUtils();\r\n\t\tDate currentDate = dateUtils.getCurrentDate();\r\n\t\t\r\n\t\t/*List<PayStructure> payStructures = attendanceRepository\r\n\t\t\t\t.fetchPayStructureByEmployee( reportPayOut.getId().getEmployeeId(), currentDate );*/\r\n\t\t\r\n\t\tlogger.info( \" reportPayOut.getId().getEmployeeId() \"+ reportPayOut.getId().getEmployeeId() );\r\n\t\t\r\n\t\tPayStructureHd payStructureHd = payStructureService.findPayStructure( reportPayOut.getId().getEmployeeId() );\r\n\t\t\r\n\t\tfor ( PayStructure payStructure : payStructureHd.getPayStructures() ) {\r\n\t\t\tif ( payStructure.getPayHead().getEarningDeduction() == null ) {\r\n\t\t\t\tPayHead payHead = payHeadService.findPayHeadById( payStructure.getPayHead().getPayHeadId() );\r\n\t\t\t\tpayStructure.setPayHead(payHead); \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t processEarning( payOuts, reportPayOut, util, payRollProcessHDDTO, earningPayStructures, payStructureHd.getPayStructures() , payrollControl );\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t if (earningPayStructures != null && earningPayStructures.size() > 0) {\r\n\t\t\tpayRollProcessHDDTO.setTotalGrossSalary( reportPayOut.getGrossSalary() );\r\n\t\t\tpayOuts.addAll(calcualteDeduction( payRollProcessHDDTO, reportPayOut, payrollControl, payStructureHd ,loanIssues, oneTimeDeductionList ));\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t \r\n\t\t if ( reportPayOut.getGrossSalary() != null ) {\r\n\t\t\t netSalary = reportPayOut.getTotalEarning().subtract( reportPayOut.getTotalDeduction() );\r\n\t\t }\r\n\t\t\r\n\t\t reportPayOut.setNetPayableAmount( netSalary );\r\n\t}",
"public void calculateSalary() {\n if (hours < 0 || hourlyRate < 0) {\r\n salary = -1;\r\n }\r\n else if (hours > 40) {\r\n salary = 40 * hourlyRate;\r\n }\r\n else {\r\n salary = hours * hourlyRate;\r\n }\r\n }",
"@Override \npublic double getPaymentAmount() { \n return getCommissionRate() * getGrossSales(); \n}",
"@Override\n public double calculatePay(double numHours) {\n double hourlyRate = this.getSalary() / (40 * 52);\n return hourlyRate * 40 + hourlyRate * 1.5 * (numHours - 40);\n }",
"public double payRollAbcBusiness(EMP_T employee) {\n\t\tstrategy.setPayStrategy(business);\n\t\treturn strategy.payRoll(employee);\n\t}",
"public double pay()\r\n{\r\ndouble pay = hoursWorked * payRate;\r\nhoursWorked = 0;\r\nreturn pay;\r\n//IMPLEMENT THIS\r\n}",
"public double calculatePayment (int hours);",
"@Override\r\n public int calculateSalary()\r\n {\r\n return weeklySalary*4;\r\n }",
"@Override\n public double earnings() {\n return getCommissionRate() * getGrossSales();\n }",
"public abstract void calculate();",
"@Override\r\n\tpublic double calculate(double account, double money) {\n\t\treturn account-money;\r\n\t}",
"public double payRollAbcProduction(EMP_T employee) {\n\t\tstrategy.setPayStrategy(production);\n\t\treturn strategy.payRoll(employee);\n\t}",
"public abstract double calculateTax();",
"@Override\n public double earnings() {\n if (getHours() < 40)\n return getWage() * getHours();\n else\n return 40 * getWage() + ( getHours() - 40 ) * getWage() * 1.5;\n }",
"@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }",
"public float calculate_salary() {\r\n\t\tfloat calculate = 1000 + this.calculate_benefits();\r\n\t\treturn calculate;\r\n\t}",
"public static void main(String[] args) {\n\t\tSalariedEmployee salariedemployee = new SalariedEmployee(\"John\",\"Smith\",\"111-11-1111\",new Date(9,25,1993),800.0);\n\t\tHourlyEmployee hourlyemployee = new HourlyEmployee(\"Karen\",\"Price\",\"222-22-2222\",new Date(10,25,1993),900.0,40);\n\t\t\n\t\tCommissionEmployee commissionemployee = new CommissionEmployee(\"jahn\",\"L\",\"333-33-333\",new Date(11,25,1993),1000.0,.06);\n\t\t\n\t\tBasePlusCommissionEmployee basepluscommissionemployee = new BasePlusCommissionEmployee(\"bob\",\"L\",\"444-44-444\",new Date(12,25,1993),1800.0,.04,300);\n\t\t\n\t\tPieceWorker pieceworker = new PieceWorker(\"julee\",\"hong\", \"555-55-555\",new Date(12,25,1993) , 1200, 10);\n\t\tSystem.out.println(\"Employees processes individually\");\n\t\t//System.out.printf(\"%n%s%n%s: $%,.2f%n%n\", SalariedEmployee,\"earned\",SalariedEmployee.earnings());\n\n\t\t//creating employee array\n\t\t\n\t\tEmployee[] employees = new Employee[5];\n\t\t\n\t\t//intializing array with employees \n\t\temployees[0] = salariedemployee;\n\t\temployees[1] = hourlyemployee;\n\t employees[2] = commissionemployee;\n\t\temployees[3] = basepluscommissionemployee;\n\t\temployees[4]= pieceworker;\n\t\t\n\t\tSystem.out.println(\"employees processed polymorphically\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\tSystem.out.println(new SimpleDateFormat(\"MM\").format(cal.getTime()));\n\t\tint currentMonth = Integer.parseInt(new SimpleDateFormat(\"MM\").format(cal.getTime()));\n\t\t\n\t\t//processing each element into the array\n\t\tfor(Employee currentemployee:employees){\n\t\t\t\n\t\t\t/*if(currentemployee.getBirthDate().getMonth()==currentMonth)\n\t\tSystem.out.println(\"current earnings\"+(currentemployee.earnings()+100));\n\t\t\telse\n\t\t\t\tSystem.out.println(\"current earnings\"+currentemployee.earnings());\n\t\t\t\t*/\n\t\t\tSystem.out.println(currentemployee.toString());\n\t\t}\n\t}",
"@Override \r\n public double getPaymentAmount() \r\n { \r\n return getQuantity() * getPricePerItem(); // calculate total cost\r\n }",
"public void calculatePayment() {}",
"public abstract void raiseSalary();",
"protected abstract BigDecimal calculate();",
"public static double calculateEmployeePension(int employeeSalaryForBenefits) {\n double total = 0;\n try {\n Scanner stdin = new Scanner(System.in);\n\n System.out.println(\"Please enter start date in format (example: May,2015): \");\n String joiningDate = stdin.nextLine();\n System.out.println(\"Please enter today's date in format (example: August,2017): \");\n String todayDate = stdin.nextLine();\n String convertedJoiningDate = DateConversion.convertDate(joiningDate);\n String convertedTodayDate = DateConversion.convertDate(todayDate);\n stdin.close();\n String[] actualDateToday = convertedTodayDate.split(\"/\");\n String[] actualJoiningDate = convertedJoiningDate.split(\"/\");\n\n Integer yearsEmployed = Integer.valueOf(actualDateToday[1]) - Integer.valueOf(actualJoiningDate[1]);\n\n if ( Integer.valueOf(actualJoiningDate[0]) > Integer.valueOf(actualDateToday[0]) ) {\n yearsEmployed--;\n }\n\n total = (((employeeSalaryForBenefits * 12) * 0.05) * yearsEmployed);\n\n\n\n\n System.out.println(\"Total pension to receive by employee based on \" + yearsEmployed + \" years with the company \" +\n \"(5% of yearly salary for each year, based on employee's monthly salary of $\" + employeeSalaryForBenefits + \"): \" + total);\n\n }\n catch (NumberFormatException e) {\n e.printStackTrace();\n }\n return total;\n }",
"@Override\r\n public void pay() {\n }",
"public abstract double calculateAppraisalPrice();",
"@Override\n\tpublic float CalculateSalary() {\n\t\treturn salary;\n\t}",
"public void determineWeeklyPay(){\r\n weeklyPay = commission*sales;\r\n }",
"public void payAllEmployeers() {\n\t\t\n\t\tSystem.out.println(\"PAYING ALL THE EMPLOYEES:\\n\");\n\t\t\n\t\tfor(AbsStaffMember staffMember: repository.getAllMembers())\n\t\t{\n\t\t\tstaffMember.pay();\n\t\t\tSystem.out.println(\"\\t- \" + staffMember.getName() + \" has been paid a total of \" + staffMember.getTotalPaid());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\");\n\t}",
"public void pay(Company company) {\n\n if (!checkBudgetAvailability(company, 0)) {\n throw new IllegalArgumentException(INSUFFICIENT_BUDGET_MESSAGE);\n }\n\n for (Employee employee : company.getEmployees()) {\n\n double salary = employee.getSalary();\n company.setBudget(company.getBudget() - salary);\n employee.setBankAccount(employee.getBankAccount() + salary);\n }\n }",
"public double earnings() {\r\n double earnings;\r\n double overtime;\r\n double overtimeRate = hourlyRate * 1.5;\r\n\r\n // if hours, hourlyRate, or salary is negative (default numerical values are -1) earnings is -1\r\n if (hours < 0 || hourlyRate < 0 || salary < 0) {\r\n earnings = -1;\r\n }\r\n else if (hours > 40) {\r\n overtime = (hours - 40) * overtimeRate;\r\n earnings = overtime + salary;\r\n }\r\n else {\r\n earnings = salary;\r\n }\r\n\r\n return earnings;\r\n }",
"@Override\n\tpublic void calculate() {\n\t\tSystem.out.println(\"Military credit calculated\");\n\t}",
"public double payRollAbcAdmin(EMP_T employee) {\n\t\tstrategy.setPayStrategy(admin);\n\t\treturn strategy.payRoll(employee);\n\t}",
"public void calculateEmpWage(int empHrs){\n \tint totalWorkingDays = 1;\n\tint totalWorkingHours = 0;\n\t/*\n\t*varable empAttendance tells if emp is present '0' or absent '1' on that day of the month\n\t*/\n\tint empAttendance;\n\t/*\n\t*variable monthlyWage stores the monthly wage of the employee\n\t*/\n int monthlyWage = 0;\n\t/*\n\t*variable daysPresent keeps count of the no of days present for a month\n\t*/\n\t int daysPresent = 0;\n\t /*\n\t *variable hoursWorked keeps count of the no of hours worked in a month\n\t */\n\t int hoursWorked = 0;\n\n\t while(true){\n\t Random rand = new Random();\n empAttendance = rand.nextInt(2);\n if(empAttendance == 0){\n daysPresent += 1;\n System.out.println(\"Day \"+totalWorkingDays+\": Present\");\n monthlyWage += CompanyEmpWage.getempRate() * empHrs;\n hoursWorked += empHrs;\n }\n else{\n System.out.println(\"Day \"+totalWorkingDays+\": Absent\");\n monthlyWage += 0;\n hoursWorked += 0;\n }\n if(totalWorkingDays == CompanyEmpWage.getnumOfDays() || !(totalWorkingHours < CompanyEmpWage.getmaxHrs())){\n if(totalWorkingDays == CompanyEmpWage.getnumOfDays()){\n System.out.println(CompanyEmpWage.getnumOfDays()+\" days are over!\");\n break;\n }\n else{\n System.out.println(CompanyEmpWage.getmaxHrs()+\" hours reached!\");\n break;\n }\n }\n\ttotalWorkingDays++;\n \ttotalWorkingHours += empHrs;\n }\n System.out.println(\"Company: \"+CompanyEmpWage.getcompName()+\"\\nNo of days worked out of \"+CompanyEmpWage.getnumOfDays()+\" days: \"+daysPresent+\"\\nNo of hours worked out of \"+CompanyEmpWage.getmaxHrs()+\" hours: \"+hoursWorked+\"\\nSalary for the month: \"+monthlyWage);\n }",
"@Override \r\npublic double earnings() { \r\n\t return getWage() * getPieces(); \r\n}",
"public double payRollBCD(EMP_T employee) {\n\t\tstrategy.setPayStrategy(bcd);\n\t\treturn strategy.payRoll(employee);\n\t}",
"public PayrollRecord(String employee, double pay) {\n employeeName = employee;\n currentPay = pay;\n }",
"protected double getPay() {\n\t\tint extraHrs = 0;\n\t\tif (this.hoursWrkd > 40) {\n\t\t\textraHrs = this.hoursWrkd - 40;\n\t\t\treturn (hourlyRate * 40) + (extraHrs * (hourlyRate * 1.5));\n\t\t} else {\n\t\t\treturn hoursWrkd * hourlyRate;\n\t\t}\t\t\n\t}",
"public double getEarnings() {\n//\t\tif (hoursWorked > 40) {\n//\t\t\treturn (40 * hoursWorked) + \n//\t\t\t\t\t((hoursWorked - 40) * wagePerHour * 1.5);\n//\t\t} else {\n//\t\t\treturn hoursWorked * wagePerHour;\n//\t\t}\n\t\t\t\t// condition \n\t\treturn hoursWorked > 40 ? \n\t\t\t\t// condition true \n\t\t\t(40 * wagePerHour) + ((hoursWorked - 40) * wagePerHour * 1.5) \n\t\t\t\t// condition false\n\t\t\t: hoursWorked * wagePerHour;\t\n\t}",
"public static void main(String[] args) {\n Emp e=new Emp(\"tinku\",\"u\",\"hyd\",50000,(float)0.5);\n Emp m=new Emp(\"venu\",\"G\",\"hyd\",50000,(float)0.25);\n Emp k=new Emp(\"Srikanth\",\"v\",\"hyd\",75000,(float)0.15);\n Emp t=new Emp(\"sahith\",\"G\",\"hyd\",85000,(float)0.2);\n System.out.println(e);\n System.out.println(e.claculateNetSalary());\n System.out.println(m.claculateNetSalary());\n System.out.println(k.claculateNetSalary());\n System.out.println(t.claculateNetSalary());\n \t}",
"public double calculateChangeToGive() {\r\n\t\treturn amountPaid - amountToPay;\r\n\t}",
"public BigDecimal getPayAmt();",
"public double calculateCost(Purchase purchase);",
"public void calculateCommission(){\r\n commission = (sales) * 0.15;\r\n //A sales Person makes 15% commission on sales\r\n }",
"@Override\n public double getAnnualSalary() {\n return super.getAnnualSalary() + 10000;\n }",
"public void payEconomical() {\n if (this.balance >= 2.50) {\n this.balance -= 2.50;\n }\n }",
"@Override\n public double annualSalary(){\n double bonus = 0.00;\n\n if(currentStockPrice > 50){\n bonus = 30000;\n }\n\n return (super.annualSalary() + bonus);\n }",
"public static void main(String[] args) {\n Company myCompany = new Company();\n System.out.println(myCompany.getName());\n Worker oyelowo = new JuniorWorker(989.9);\n Worker Dan = new JuniorWorker(987.8);\n Worker Shane = new MidLevelWorker(34.5);\n Worker Dolan = new SeniorWorker(4567.8);\n Worker Maria = new SeniorWorker(84.3);\n SeniorWorker Sam = new SeniorWorker();\n JuniorWorker jim = new JuniorWorker(\"Jim\", \"HJK\", 1, 345.9);\n System.out.println(jim.getBalance());\n\n\n System.out.println(myCompany.getBalance() + \" \" +myCompany.getAuthorizationKey());\n\n\n\n myCompany.paySalary(1000.0, oyelowo);\n myCompany.paySalary(700.0, Dan);\n myCompany.paySalary(700.0, Dan);\n myCompany.paySalary(700.0, Dan);\n myCompany.paySalary(700.0, Dan);\n myCompany.paySalary(700.0, Dan);\n\n\n System.out.println();\n System.out.println(myCompany.getBalance());\n System.out.println(myCompany.getDebits());\n System.out.println(oyelowo.getBalance(myCompany));\n System.out.println(Dan.getBalance(myCompany));\n\n\n }",
"double calculate(Coupon coupon, double payable);",
"public double getAmountEarned(){\r\n return getSalary() + getBonus() + getCommission() * getNumSales();\r\n }",
"double getTotalProfit();",
"public void adjustPay(double percentage){\r\n this.commission = getCommission() + getCommission() * percentage;\r\n }",
"public abstract double getCost();",
"public double calculateSalary(double hoursWorked) {\n\t\tif(hoursWorked<=getNormalWorkweek()){\n\t\t\treturn ((getHourlyRate()*(hoursWorked))+(calculateOvertime(hoursWorked)));\n\t\t}else{\n\t\t\treturn ((getHourlyRate()*(getNormalWorkweek()))+(calculateOvertime(hoursWorked)));\n\t\t}\n\t}",
"@Override\n public int computeProfit() {\n return getVehiclePerformance() / getVehiclePrice();\n }",
"@Override\n public int annualSalary() {\n int commission;\n if (getAnnualSales() * getCommissionAmount() > getMaximumCommission()) { //Checks if the commission would be over the max\n commission = (int) getMaximumCommission();\n } else {\n commission = (int) (getAnnualSales() * getCommissionAmount());\n }\n return (this.getSalary() * getMonthInYear()) + commission;\n }",
"public double pay(){\n\t\treturn payRate;\n\t}",
"@Override\n public String getPayMemo() throws ParseException {\n return \"Employee ID: \" + getEmpID() + \", Pay Date: \" + HRDateUtils.strToDate(\"2019-10-01\");\n }",
"public abstract double experience();",
"public double pay(double amountPayed){\n \n try{\n double change = this.sale.pay(amountPayed);\n this.accounting.updateFinance( this.sale.getAmountToPay() );\n \n this.inventory.updateInventory( this.sale.getListOfProducts() );\n \n Printer printer = new Printer();\n printer.printReceipt( this.sale.creatSaleDTO() );\n \n return change;\n }catch (Exception a){\n System.out.print(a);\n return 0;\n }\n }",
"@Override\r\n\tpublic double annualSalary() {\r\n\t\tdouble baseSalary;\r\n\t\tdouble annualSalary;\r\n\t\tdouble annualCommissionMax = Math.min((annualSales * .02), 20000.0);\r\n\t\tbaseSalary = (getSalaryMonth() * 12);\r\n\t\tannualSalary = baseSalary + annualCommissionMax;\r\n\t\r\n\t\treturn annualSalary;\r\n\t}",
"public static void calculateDailyEmpWage()\n {\n\t\tint salary = 0;\n\t\tif(isPresent()){\n\t\t\tint empRatePerHr = 20;\n int PartTimeHrs = 4;\n salary = PartTimeHrs * empRatePerHr;\n\t\t\tSystem.out.println(\"Daily Part time Wage:\" +salary);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Daily Wage:\" +salary);\n\t\t}\n }",
"@Override\n public double computeProfitUsingRisk() {\n return (getVehiclePerformance() / getVehiclePrice()) * evaluateRisk();\n }",
"@Override\n public double getCost(int hours) {\n\n if (hours < 2) {\n\n return 30;\n } else if (hours < 4) {\n\n return 70;\n } else if (hours < 24) {\n\n return 100;\n } else {\n\n int days = hours / 24;\n return days * 100;\n }\n }",
"public abstract double pay(BikesType type, double rideDuration);",
"double calculatePrice();",
"public abstract double getComplianceFee();",
"public void calculate();",
"public EmployeePay() {\n initComponents();\n setDefaultDateRange();\n updateTable();\n }",
"public abstract double calculateQuarterlyFees();",
"public Object creditEarningsAndPayTaxes()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 144 */ \tgetPriceFromWorld();\r\n/* 145 */ \tgetDividendFromWorld();\r\n/* */ \r\n/* */ \r\n/* 148 */ \tthis.cash -= (this.price * this.intrate - this.dividend) * this.position;\r\n/* 149 */ \tif (this.cash < this.mincash) {\r\n/* 150 */ \tthis.cash = this.mincash;\r\n/* */ }\t\r\n/* */ \r\n/* 153 */ \tthis.wealth = (this.cash + this.price * this.position);\r\n/* */ \r\n/* 155 */ \treturn this;\r\n/* */ }",
"@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}",
"public void pay(Company company, double bonusForDevelopers) {\n\n if (!checkBudgetAvailability(company, bonusForDevelopers)) {\n throw new IllegalArgumentException(INSUFFICIENT_BUDGET_MESSAGE);\n }\n\n //Here goes exact logic for salary payment according to business requirements. For naive implementation, we\n //could define instance field \"double bankAccount\" in Employee and emulate transfers from company's budget:\n\n for (Employee employee : company.getEmployees()) {\n\n double employeeSalary = 0;\n\n if (employee instanceof Developer) {\n employeeSalary = ((Developer) employee).getSalary(bonusForDevelopers);\n } else {\n employeeSalary = employee.getSalary();\n }\n\n company.setBudget(company.getBudget() - employeeSalary);\n employee.setBankAccount(employee.getBankAccount() + employeeSalary);\n }\n }",
"public double profitsSelf(double cost, double price, int month) throws Exception{\n\t\t/***FAULT## FAILURE INDUCING CODE***/\n\t\t/* INDUCING Detail: mutation \n\t\t * ** original code **:\n\t\tif(cost < 0)\n\t\t * ---------------------\n\t\t * ** mutated code **:\n\t\tif(cost > 0)\n\t\t */\n\t\tif(cost > 0 && price > 0) {\n\t\t\tthrow new Exception(\"Invalid amount\");\n\t\t}\n\n\t\tif(month < 0 && month > 11) {\n\t\t\tthrow new Exception(\"Month out of range\");\n\t\t}\n\t\t\n\t\t// get the man power cost\n\t\tint manCostProduce = this.produceManPowerCost(manWeekdayProduce, manWeekendProduce, month);\n\t\tint manCostSelling = this.sellingManPowerCost(manWeekdaySelling, manWeekendSelling, month);\n\t\t\n\t\t// get days\n\t\tint weekends = mc.weekendsOfMonth(year, month);\n\t\tint days = mc.daysOfMonth(year, month);\n\t\tint weekdays = days - weekends;\n\t\t\n\t\t// get the producing cost\n\t\tint produceAmount = manWeekdayProduce * weekdayProduceAmount * weekdays\n\t\t\t\t+ manWeekendProduce * weekendProduceAmount * weekends;\n\t\tdouble produceCost = produceAmount * cost;\n\t\t\n\t\t// get the selling income\n\t\tint sellingAmount = manWeekdaySelling * weekdaySellingAmount * weekdays + \n\t\t\t\tmanWeekendSelling * weekendSellingAmount * weekends;\n\t\tif(sellingAmount > produceAmount) {\n\t\t\tsellingAmount = produceAmount;\n\t\t}\n\n\t\tdouble income = sellingAmount * price;\n\t\t\n\t\t// margin profit\n\t\tdouble profit = income - produceCost - manCostProduce - manCostSelling;\n\t\treturn profit;\n\t}",
"private PtoPeriodDTO accruePto(PtoPeriodDTO init, Employee employee) {\n\n\t\tDouble hoursAllowed = init.getHoursAllowed().doubleValue();\n\t\tDouble daysInPeriod = init.getDaysInPeriod().doubleValue();\n\t\tDouble dailyAccrual = hoursAllowed / daysInPeriod;\n\n\t\tlog.info(\"Daily Accrual Rate for this PTO Period: \" + dailyAccrual);\n\n\t\t// Check what the current date is, take the number of days difference\n\t\t// Since the beginning of the period\n\t\t\n\t\tDate beginDate = determineBeginDate(employee);\t\t\n\t\tDate endDate = ZonedDateTimeToDateConverter.INSTANCE.convert(init.getEndDate());\n\t\tDate today = ZonedDateTimeToDateConverter.INSTANCE.convert(ZonedDateTime.now());\n\t\t\n\t\tLong diff = today.getTime() - beginDate.getTime();\n\t\tLong daysPassed = (long) ((TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS)));\n\t\tlog.info(\"Days Passed: \" + daysPassed);\n\t\tLong hoursAccrued = (long) ((TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS)) * dailyAccrual);\n\t\tlog.info(\"Hours: \" + hoursAccrued);\n\t\tinit.setHoursAccrued(hoursAccrued);\n\t\tinit = deductTimeOff(init);\n\t\treturn init;\n\t\t\n\t}",
"public double calculateWeeklyPay(){\r\n double weeklyPay = salary / 52.0;\r\n return weeklyPay;\r\n }",
"public interface IEmployeeBonus {\n double calculateBonus(double salary);\n}",
"public double calculateCommissionTest() {\n\t\tCommission commission = new Commission(lockPrice, stockPrice, barrelPrice);\n\t\tcommission.processNewSale(locks, stocks, barrels);\n\t\tcommission.calculateSales();\n\t\treturn commission.calculateCommission();\n\t}",
"@Override\n\tprotected double getSalary() {\n\t\treturn 0;\n\t}"
]
| [
"0.68732584",
"0.68290526",
"0.68057346",
"0.66378725",
"0.66370064",
"0.66082186",
"0.650013",
"0.6490196",
"0.6455685",
"0.64218634",
"0.64210176",
"0.6354296",
"0.6350745",
"0.63399565",
"0.6316975",
"0.62915397",
"0.62558615",
"0.62172157",
"0.6204635",
"0.6188878",
"0.617917",
"0.6149471",
"0.61443746",
"0.6130101",
"0.6106507",
"0.6076303",
"0.6059389",
"0.60463697",
"0.6044378",
"0.6024965",
"0.59996456",
"0.59889764",
"0.59613025",
"0.5953273",
"0.59257394",
"0.59158635",
"0.5912574",
"0.59093714",
"0.58861977",
"0.58844537",
"0.58821994",
"0.58653986",
"0.5840912",
"0.5833173",
"0.58138716",
"0.5794761",
"0.5791733",
"0.5791176",
"0.57784355",
"0.5773589",
"0.5756544",
"0.57412094",
"0.57273793",
"0.57173",
"0.5715636",
"0.5710141",
"0.5684322",
"0.5675177",
"0.567173",
"0.5656168",
"0.5646242",
"0.5645462",
"0.56242126",
"0.5607187",
"0.5603315",
"0.5600622",
"0.5592054",
"0.55694115",
"0.55637467",
"0.5558603",
"0.5541992",
"0.5539212",
"0.5532914",
"0.5523582",
"0.5521699",
"0.55059654",
"0.55010736",
"0.55001247",
"0.54986966",
"0.54980624",
"0.54930145",
"0.5485199",
"0.5466639",
"0.54571575",
"0.5445624",
"0.54449046",
"0.5441227",
"0.5436781",
"0.5419395",
"0.54135936",
"0.5409295",
"0.54056066",
"0.5399555",
"0.5393165",
"0.53896594",
"0.5378333",
"0.53741246",
"0.5373809",
"0.53661853",
"0.53617924"
]
| 0.728103 | 0 |
Overridden toString method to format employee info for commission employee | @Override
public String toString ()
{
String format = "Employee %s: %s , %s\n Commission Rate: $%.1f\n Sales: $%.2f\n";
return String.format(format, this.getId(), this.getLastName(), this.getFirstName(), this.getRate(), this.getSales());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\n\t\treturn String.format( \"%s: %s\\n%s: $%,.2f; %s:%.2f\",\r\n\t\t\t\t \"commission employee\", super.toString(),\r\n\t\t\t\t \"gross sales\", getGrossSales(),\r\n\t\t\t\t \"commission rate\", getCommissionRate() );\r\n\t}",
"public String toString()\n\t//return employee values\n\t{\n\t\treturn \"Id \" + id + \" Start date \" + start + \" Salary \" + salary + super.toString() + \" Job Title \" + jobTitle;\n\t}",
"@Override //indicates that this method overrides a superclass method\n public String toString(){\n\n return String.format(\"%s: %s %s%n%s : %s%n%s: %.2f%n%s: %.2f\",\"commission employee\",firstName,lastName,\n \"pan number\",panCardNumber,\"gross sales\",grossSales,\"commission rate\",commissionRate);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \"----\" + \"Employee [salary=\" + salary + \", profession=\" + profession + \"]\";\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \"\\nEmployees: \" + getEmployees();\n\t}",
"@Override\npublic String toString()\n{\n Employee emp = new Employee();\n \n StringBuilder sb = new StringBuilder();\n sb.append(\"Employee{\");\n sb.append(\"Name=\");\n sb.append(emp.getName());\n sb.append(\",Salary complement=\");\n sb.append(emp.getSalary_complement());\n sb.append(\"}\");\n\n return sb.toString();\n}",
"public String toString() {\r\n\t\treturn \"Name : \"+name+\"\\nEmp# : \"+employeeNum;\r\n\t}",
"public String toString() {\n\t\treturn \"Employee [firstname=\" + firstname + \", hours=\" + hours\n\t\t\t\t+ \", lastname=\" + lastname + \", payrate=\" + payrate\n\t\t\t\t+ \", totalpay=\" + totalpay + \"]\";\n\t}",
"@Override\n public String toString() {\n String s = this.empID + \",\" + this.lastName + \",\" + this.firstName;\n s += String.format(\",%09d\", this.ssNum);\n s += \",\" + HRDateUtils.dateToStr(this.hireDate);\n s += String.format(\",%.2f\", this.salary);\n return s;\n\n }",
"@Override\n public String toString() {\n String s = this.empID + \",\" + this.lastName + \",\" + this.firstName;\n s += String.format(\",%09d\", this.ssNum);\n s += \",\" + HRUtility.dateToStr(this.hireDate);\n s += String.format(\",%.2f\", this.salary);\n return s;\n }",
"public String toString() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"M/d/yyyy\");\n\t\treturn employeeName + \" \" + EID + \" \" + address + \" \" + phoneNumber + \" \" + sdf.format(DOB) + \" \" + securityClearance;\n\t}",
"public String toString(){\n String s = \"\";\n s+=\"Employee: \"+name+\"\\n\";\n s+=\"Employee ID: \" + idnum +\"\\n\";\n s+=\"Current Position: \"+position+\"\\n\";\n s+=\"Current Salary: $\" +salary+\"\\n\";\n s+=\"Vacation Balance: \" + vacationBal+ \" days\\n\";\n s+=\"Bonus: $\" +annualBonus+\"\\n\";\n return s;\n }",
"@Override\n public String toString(){\n String empDetails = super.toString() + \"::FULL TIME::Annual Salary \"\n \t\t+ doubleToDollar(this.annualSalary);\n return empDetails;\n }",
"public String toString(){\r\n return getNumber() + \":\" + getLastName() + \",\" + getFirstName() + \",\" + \"Sales Employee\";\r\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn String.format(\"%s: %s %s%n%s: %s%n%s: %.2f%n%s: %.2f%n%s: %.2f\", \"base-salaried commission employee\", getFirstName(),\r\n\t\t\t\tgetLastName(), \"social security number\", getSocialSecurityNumber(), \"gross sales\", getGrossSales(),\r\n\t\t\t\t\"commission rate\", getCommissionRate(), \"base salary\", getBaseSalary());\r\n\t}",
"public String toString(){\n StringBuilder builder = new StringBuilder();\n builder.append(\"Employee :[ Name : \" + name + \", dept : \" + dept + \", salary :\"\n + salary+\", subordinates = \\n\");\n for(Employee e : this.subordinates) {\n builder.append(\"\\t\" + e + \"\\n\");\n }\n builder.append(\" ]\");\n return builder.toString();\n }",
"public String toString(){\n return \"Employee First Name: \" + firstName \t\n + \", Surname: \" + secondName\n + \", Hourly Rate \" + hourlyRate;\n }",
"public String toString(){\r\n return String.format(\"%-15s%-15s%-30s%,8.2f\", this.employeeFirstName, \r\n this.employeeLastName, this.employeeEmail, getBiweeklySalary());\r\n }",
"public String toString() {\r\n\t\treturn String.format(\"This is a junior employee. ID is %d, hired since %d, and commission is $%,.2f.\\r\\n\", \r\n\t\t\tgetID(), getYearHired(), getCommission());\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"Name is \" + empName + \"\\nEmp ID is \" + empID + \"\\nIncome=\" + annualIncome + \"\\nIncome Tax=\" + incomeTax\r\n\t\t\t\t+ \"\";\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\tStringBuffer s1 = new StringBuffer();\n\t\ts1.append(\"Employee name : \");\n\t\ts1.append(this.name);\n\t\ts1.append(\" Id is: \");\n\t\ts1.append(Integer.toString(this.id));\n\t\ts1.append(\" salary is \");\n\t\ts1.append(Integer.toString(this.salary));\n\t\treturn s1.toString();\n\n\t}",
"@Override\r\n public String toString() {\r\n return \"Employee{\" + super.toString() + \", \" + \"employeeNumber=\" + employeeNumber + \", salary=\" + salary + '}';\r\n }",
"@Override\n public String toString(){\n return String.format(\"Hourly Employee : %s\\n%s : %,.2f\", \n super.toString(), \"Hourly Wage\", getWage());\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Employee [id=\" + id + \", name=\" + name + \", salary=\" + salary + \", designation=\" + designation\r\n\t\t\t\t+ \", department=\" + department + \", address=\" + address + \"]\";\r\n\t}",
"@Override\n\tString toString(Employee obj) {\n\t\treturn null;\n\t}",
"@Override \n public String toString() \n { \n return String.format(\"salaried employee: %s%n%s: $%,.2f\",\n super.toString(), \"weekly salary\", getWeeklySalary());\n }",
"public String toString() {\n return \"Employee Id:\" + id + \" Employee Name: \" + name+ \"Employee Address:\" + address + \"Employee Salary:\" + salary;\n }",
"public String toString(){\n return \"Name: \"+this.name+\" Salary: \"+this.salary; // returning emp name and salary\r\n }",
"@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < employees.length; i++) {\n result.append(employees[i] + \"\\n\");\n }\n return result.toString();\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"ID:\" + this.empid + \",NAME:\" + this.name;\r\n\t}",
"public String toString() {\n\t\t\r\n\t\treturn String.format(\"N%s. Title is %s, employer is %s,\"\r\n\t\t\t\t+ \"employee grade is %d, salary is %d\",super.toString(), getTitle(), employer, \r\n\t\t\t\temployeeGrade, salary);\r\n\t}",
"public String toString() {\n \tString ret;\n \tint sumWait = 0;\n \tfor(Teller t : employees)\n \t{\n \t\tsumWait += t.getSumWaitTime();\n \t}\n \t\n \tret = \"Total elapsed time: \" + clock;\n \tret = ret + \"\\nTotal customers helped: \"+ numCust;\n \tret = ret + \"\\nAvg. wait time: \"+String.format(\"%.3f\",(float)sumWait/numCust);\n \tfor(Teller t : employees)\n \t{\n \t\tret = ret + \"\\nTeller \"+t.getID()+\": % time idle: \"+String.format(\"%.3f\",(float)(100*t.getIdleTime())/clock)+\" Number of customers helped: \"+t.getNumHelped();\n \t}\n \treturn ret;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.nombre + \" \" + this.apellidos + \" (ID empleado - \" + this.id + \")\";\n\t}",
"public String toString()\n\t{\n\t\treturn super.toString() + \"\\n\" +\n\t\t\t \"\\t\" + \"Full Time\" + \"\\n\" +\n\t\t\t \"\\t\" + \"Monthly Salary: $\" + Double.toString(monthlyEarning());\n\t}",
"public String EmployeeSummary(){\r\n\t\treturn String.format(\"%d\\t%d\\t\\tJunior\\t\\t$%,.2f\\t\\t$%,.2f\\r\\n\", getID(), getYearHired(), getBaseSalary(), CalculateTotalCompensation());\r\n\t}",
"public String toString() {\n\t // added the Address here\n return String.format(\"%s, %s Hired: %s Birthday: %s \\n Address: %s\", \n lastName, firstName, hireDate, birthDate, Address);\n }",
"public String toString() {\r\n\t\tfinal String TAB = \" \";\r\n\r\n\t\tString retValue = \"\";\r\n\r\n\t\tretValue = \"EmploymentInformationForm ( \" + super.toString() + TAB\r\n\t\t\t\t+ \"employmentInfoId = \" + this.employmentInfoId + TAB\r\n\t\t\t\t+ \"userId = \" + this.userId + TAB + \"employerName = \"\r\n\t\t\t\t+ this.employerName + TAB + \"employmentType = \"\r\n\t\t\t\t+ this.employmentType + TAB + \"dateOfJoining = \"\r\n\t\t\t\t+ this.dateOfJoining + TAB + \"dateOfRelieving = \"\r\n\t\t\t\t+ this.dateOfRelieving + TAB + \"designation = \"\r\n\t\t\t\t+ this.designation + TAB + \"supervisorName = \"\r\n\t\t\t\t+ this.supervisorName + TAB + \"employmentAddress = \"\r\n\t\t\t\t+ this.employmentAddress + TAB + \"currentEmployee = \"\r\n\t\t\t\t+ this.currentEmployer + TAB + \" )\";\r\n\r\n\t\treturn retValue;\r\n\t}",
"@Override\n public /*final*/ String toString() {\n return name + \" / \" + address + \" / \" + salary;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"\\ntoStringcalled\\t\"+name+\"\\t\"+age+\"\\t\"+salary;\n\t}",
"public java.lang.String toString() {\n return super.toString() + \"[EmpleadoPlantilla]\";\n }",
"@Override\n public String toString(){\n \n return String.format(\"%-8d%-10s%-10s%-10s %.2f\\t%-6b\", getCustNumber(), getFirstName(), getSurname(),\n getPhoneNum(), getCredit(), canRent);\n }",
"@Override\n public String toString(){\n return super.toString() + \"\\tPosition: \" + this.position + \"\\tSalary: $\" + this.salary;\n }",
"@Override public String toString(){\n\t\treturn String.format(\"%s %s %s\", firstName, middleName, lastName);\n\t}",
"public String toString()\n\t{\n\t\treturn \"Faculty \"+super.toString()+\" exp in yrs \"+expInYears+\" expert in \"+sme;\n\t}",
"@Override\n public String toString() {\n String leftAlignFormat = \"| %-10s | %-40s |%n\";\n String line = String.format(\"+------------+------------------------------------------+%n\");\n return line + String.format(leftAlignFormat,\"A.ID\", appointmentID)\n + line + String.format(leftAlignFormat,\"P.ID\", patientID)\n + line + String.format(leftAlignFormat,\"Title\", title)\n + line + String.format(leftAlignFormat,\"Date\", date)\n + line + String.format(leftAlignFormat,\"Start\", startTime)\n + line + String.format(leftAlignFormat,\"End\", endTime)\n + line;\n }",
"@Override \npublic String toString() { \n return String.format(\"%s: %s%n%s: $%,.2f; %s: %.2f\", \n \"commission nurse\", super.toString(), \n \"gross sales\", getGrossSales(), \n \"commission rate\", getCommissionRate()); \n}",
"public String toString() {\r\n\t\treturn \"Name\t:\" + this.name + \"\\n\" +\r\n\t\t\t\t\"Salary\t:\" + this.salary;\r\n\t}",
"public String toString()\r\n {\r\n return super.toString() + \",\" + level + \", \" + Department + \"\\n\";\r\n }",
"@Override\r\n public String toString() {\r\n String financialAidAsString = \"\";\r\n if (financialAid != 0)\r\n financialAidAsString = \":financial aid $\" + String.format(\"%,.2f\", financialAid);\r\n return super.toString() + \"resident\" + financialAidAsString;\r\n }",
"@Override\r\n\t\tpublic String toString() {\r\n\t\t\tswitch(this) {\r\n\t\t\tcase SALES: return \"Sales\";\r\n\t\t\tcase MKTG: return \"Marketing\";\r\n\t\t\tcase HMRS: return \"Human Resources\";\r\n\t\t\tcase FINA: return \"Finance\";\r\n\t\t\tcase INTE: return \"Information Tecnology\";\r\n\t\t\t\tdefault: return \"Unknown Department\"; \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}",
"public String toString()\r\n\t{\r\n\t\treturn (name+\" \"+age+\" \"+college+\" \"+course+\" \"+address+\" \");\r\n\t}",
"@Override\n public String toString (int num)\n {\n String format = \"Weekly pay for %s, %s employee id %s is $%.2f\\n\";\n return String.format(format, this.getLastName(), this.getFirstName(), this.getId(), this.calculatePay());\n }",
"public String toString() {\r\n\t\treturn \"Student ID: \" + this.studentID + \"\\n\" + \r\n\t\t\t\t\"Name and surname: \" + this.name + \"\\n\" + \r\n\t\t\t\t\"Date of birth: \" + this.dateOfBirth + \"\\n\" + \r\n\t\t\t\t\"University:\" + this.universityName + \"\\n\" + \r\n\t\t\t\t\"Department code: \" + this.departmentCode + \"\\n\" + \r\n\t\t\t\t\"Department: \" + this.departmentName + \"\\n\" +\r\n\t\t\t\t\"Year of enrolment: \" + this.yearOfEnrolment;\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\tString entregado;\r\n\t\tif (this.dataDeDevolucao == null)\r\n\t\t\tentregado = \"Emprestimo em andamento\";\r\n\t\telse\r\n\t\t\tentregado = this.dataDevolucaoStr;\r\n\t\treturn \"EMPRESTIMO - De: \" + this.emprestimoid.getNomeDonoItem() + \", Para: \"\r\n\t\t\t\t+ this.emprestimoid.getNomeRequerenteItem() + \", \" + this.emprestimoid.getNomeItem() + \", \"\r\n\t\t\t\t+ this.dataInicialEmprestimoStr + \", \" + this.numeroDiasParaEmprestimo + \" dias, ENTREGA: \" + entregado;\r\n\t}",
"public String toString(){\r\n return super.toString() + \"\\nYearly Salary: \" + salary;\r\n }",
"@Override\n public String toString() {\n // TODO this is a sudo method only for testing puroposes\n return \"{name: 5aled, age:15}\";\n }",
"@Override\n public String toString() {\n return \"Empleado{\" + \"nombre=\" + nombre + \", edad=\" + edad + \", salario=\" + salario + '}';\n }",
"@Override\r\n public String toString() {\r\n return String.format(\"Commission Compensation With:\\nGross Sales of: \" + super.grossSales\r\n + \"\\nCommission Rate of: \" + super.commissionRate + \"\\nEarnings: \" + super.earnings());\r\n }",
"@Override\n public String toString() {\n return super.toString() + \"\\nEpeciality: \" + speciality + \"\\nAvailable: \" + availableAppointments.toString();\n }",
"@Override\n public String toString() {\n \treturn this.name+\" \"+this.eid;\n }",
"@Override\n public String toString(){\n return String.format(\"%-8s %-8s %4d %7d %8.1f %s\",\n name, nationality, birthYear, yearsServed, height, validate());\n }",
"public String toString()\r\n{\r\nreturn super.toString() + \"\\n\" + \"Hours Worked\" + hoursWorked;\r\n//IMPLEMENT THIS\r\n}",
"@Override\n public String toString()\n {\n return String.format(\"%s %s%s: $%,.2f%n%s: %.2f%n\", \"commission\", super\n .toString(), \"gross sales\", getGrossSales(), \"commission rate\",\n getCommissionRate());\n }",
"@Override\r\n public String toString() {\r\n \r\n DateFormat data = DateFormat.getDateInstance();\r\n return \"Nome: \" + getNome()+ \" \\nCPF: \" + getCpf() + \" \\nTelefone: \"\r\n + getTelefone() + \" \\nData de Nascimento : \" + data.format(getDataNasc())\r\n + \" \\nSexo: \" + getSexo();\r\n }",
"@Override\r\n public String toString() \r\n { \r\n //Referenced: https://javarevisited.blogspot.com/2012/03/how-to-format-decimal-number-in-java.html\r\n DecimalFormat twoPlace = new DecimalFormat(\"##.00\");\r\n \r\n \r\n //Referenced: https://stackoverflow.com/questions/29038627/how-can-i-print-a-new-line-in-a-tostring-method-in-java\r\n return \"\\tFirst Name: \" + getFirstName() + \"\\n\" + \"\\tLast Name: \" + getLastName() + \"\\n\" + \"\\tTicket: \" + getTicketType() + \"(\" +getDesc() + \")\" \r\n + \"\\n\" + \"\\tPrice: $\" + twoPlace.format(getPrice()) + \"\\n\" + \"\\tVenue: \" + getVenueName() + \"\\n\" + \"\\tPerformance: \" + getPerformanceName() +\r\n \"\\n\" + \"\\tDate: \" + getPerformanceDate() + \"\\n\" + \"\\tTime: \" + getPerformanceTime();\r\n }",
"@Override\n public String toString()\n {\n /* Concatenates the details of the object */\n String s = \"GENERAL COMPLAINT\";\n s = s + \"\\n\" + getCustomer().toString();\n s = s + \"\\nNATURE OF COMPLAINT: \" + getContent();\n s = s + \"\\nDATE OF COMPLAINT: \" + getDate().toString();\n \n /* Returns the details of this object */\n return s;\n }",
"public String toString() {\r\n\t\tString output = personNum + \"; \" + personType + \"; \" + personName + \"; \" + personTelNo + \"; \" + personEmail + \"; \" \r\n\t\t\t\t+ personAddress + \"\\n\"; \r\n\t return output;\r\n\t}",
"@Override\n public String toString() {\n String toStr = String.format(\"ChiefExecutiveOfHA | %s, leadership %d, medicine %d, experience %d\", isReady() ? \"READY\" : \"DONE\",leadership, medicine, experience);\n return toStr;\n }",
"public String toString() {\n\t\tNumberFormat currency = NumberFormat.getCurrencyInstance();\n return \"\" + id + \"\\t\\t\" + currency.format(income) + \"\\t\" + members;\n }",
"public String toString() {\n String text = TAB + \"Name: \" + this.name + lineSeparator()\n + Ui.formatMessage(\"Address: \" + this.address, MAX_LINE_LENGTH)\n + lineSeparator() + TAB\n + \"Faculty: \" + this.faculty + lineSeparator() + TAB\n + \"Port: \" + this.hasPort + lineSeparator() + TAB\n + \"Indoor: \" + this.isIndoor + lineSeparator() + TAB\n + \"Maximum number of Pax: \" + this.maxPax;\n String line = TAB + \"__________________________________________________________\";\n return line + lineSeparator() + text + lineSeparator() + line;\n }",
"public String toString(){\r\n String details = \"Name: \" + name + \" Monthly Salary: \" + monthlySalary;\r\n return details; \r\n }",
"public String toString()\n\t{\n\treturn\n\t\t\t//is the customer a student ? \"Yes, do it\" : \"No, do it\"\n\t\t\t\"CUSTOMER DETAILS: \" + this.name + \" age: \" + this.age + \" Student? \" + (this.isStudent ? \"Yes\" : \"No\")\n\t\t\t+ \"\\n\" + \n\t\t\t//returns the final price of the ticket using the get method\n\t\t\t//the String.format gives the decimal ccurrent format for currency\n\t\t\tString.format(\"TOTAL COST: $%1.2f\", cost())\n\t\t\t+ \"\\n\" + \n\t\t\t\"------------------------------------------------------------\";\n\t}",
"@Override\n public String toString() {\n String str = \"\";\n \n str += String.format(\"%-20s: %s\\n\", \"Name\", name);\n str += String.format(\"%-20s: %s\\n\", \"Gender\", gender);\n str += String.format(\"%-20s: %s\\n\\n\", \"Email\", email);\n \n str += String.format(\"%-20s %-30s %-10s %s\\n\", \"Course\", \"Name\", \"Credit\", \"Score\");\n str += \"---------------------------------------------------------------\\n\";\n str += String.format(\"%-20s %-30s: %-10.1f %.1f\\n\", \"Course 1\", \n course1.getCourseName(), course1.getCredit(), course1.calcFinalScore());\n str += String.format(\"%-20s %-30s: %-10.1f %.1f\\n\", \"Course 2\", \n course2.getCourseName(), course2.getCredit(), course3.calcFinalScore());\n str += String.format(\"%-20s %-30s: %-10.1f %.1f\\n\", \"Course 3\", \n course3.getCourseName(), course3.getCredit(), course3.calcFinalScore());\n str += String.format(\"%-20s: %d\\n\", \"Passed Courses\", calcPassedCourseNum());\n str += String.format(\"%-20s: %.1f\\n\", \"Passed Courses\", calcTotalCredit());\n \n return str;\n }",
"public String toString () {\r\n\t\t\r\n\t\treturn \"Title: \"+this.title +\", Company: \"+company+\", Annual Salary: \"+annualSalary;\r\n\t}",
"public String toString() {\n return getJobtitle() + \" by \" + getUsername() + \"\\n\" +\n getLocation() + \" - PhP\" + getSalary() + \" - \" + getJobfield();\n }",
"@Override\n public String toString() {\n // [Durga,CEO,30000.00,Hyderabad, THEJA,COO,29000.00,Bangalore]\n // String string = String.format(\"%s,%s,%.2f,%s\", name, designation, salary, city);\n String string = String.format(\"(%s,%s,%.2f,%s)\", name, designation, salary, city);\n return string;\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuffer result = new StringBuffer();\n\t\t\n\t\tresult.append(\"orderYear:\" + this.orderYear);\n\t\tresult.append(\"clashDate:\" + this.clashDate);\n\t\tresult.append(\"clashBirthYear:\" + this.clashBirthYear);\n\t\tresult.append(\"name:\" + this.name);\n\t\tresult.append(\"householder:\" + this.householder);\n\t\t\n\t\treturn result.toString();\n\t}",
"@Override String toString();",
"public String toString()\r\n\t{\r\n\t\treturn String.format(\"%6d \" + super.getDescription() + \" \" +\r\n\t\t\t\tsuper.getPriority() + \" \" + \"%5d \" + super.getStatus() + \r\n\t\t\t\tdate, super.getIDNumber(), super.getOrder()); //make the Strings both a set length somehow\r\n\t}",
"public String toString()\n\t{\n\t\treturn String.format(\"%-25s%-15s\\n%-25s%-15s\\n%-25s%-15s\\n%-25s%-15d\\n%-25s%-15s\\n%-25s$%,-13.2f\", \n\t\t\t\t \t\t \t \"Name\", this.getName(), \"Address:\", this.getAddress(), \"Telephone number:\", this.getTelephone(), \n\t\t\t\t \t\t \t \"Customer Number:\", this.getCustNum(), \"Email notifications:\", this.getSignedUp() == true ? \"Yes\" : \"No\",\n\t\t\t\t \t\t \t \"Purchase amount:\", this.getCustomerPurchase());\n\t}",
"public String toString(){\n return getfName() +\"\\n\" + getlName() + \"\\n\" + getSsn() + \"\\n\" + getBday() + \"\\n\" + getGender();\n }",
"public String toString () {\r\n String display = courseCode;\r\n display += \"\\nDepartment: \" + department;\r\n display += \"\\nGrade: \" + grade;\r\n return display;\r\n }",
"public String toString(){\n\t\tString personInfo = \"First Name: \" + this.firstName + \" Last Name: \" + this.lastName;\n\t\t\n\t\treturn personInfo;\n\t}",
"public String toString() {\n\t\treturn \"Name: \"+this.name+\"\\nAge: \"+this.age+\"\\nId: \"+this.id+\"\\nNumber day rent: \"+this.numberDayRent;\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\tString camp = \"\";\r\n\t\ttry {\r\n\t\t\tif (campLeased != null) camp = \" Camp \" + campLeased.getCampName() + \" Leased\";\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// swallow exceptions such as LazyInitialization Exception\r\n\t\t}\r\n\t\tString company = \"\";\r\n\t\ttry {\r\n\t\t\tif (companyLeasing != null) company = \" by \" + companyLeasing.getCompanyName();\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// swallow exceptions such as LazyInitialization Exception\r\n\t\t}\r\n\t\tString id = \"Camp Lease: ID=\" + this.getId();\r\n\t\tString years = \" (\" + beginYear + \" - \" + endYear + \")\";\r\n\t\treturn id + camp + company + years;\r\n\t}",
"@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(Decouverte_.id.getName(), getId()) //\n .add(Decouverte_.dateDecouverte.getName(), getDateDecouverte()) //\n .add(Decouverte_.observations.getName(), getObservations()) //\n .toString();\n }",
"@Override\n public String toString()\n {\n return super.toString() + \"::FULL TIME::Annual Salary \" + toDollars(annualSalary);\n }",
"public String toString() {\n\t\tString fin = String.format(\"%-15d | %-20s | %-15d | %-15s | %-15s |\"\n\t\t\t\t, ID, name, age, organ,\n\t\t\t\tbloodType.getBloodType() );\n\t\treturn fin;\n\t}",
"public String toString(){\n\t\treturn String.format(\"Address: %s\\nType: %s\\nPrice: %.2f\\nOwner: %s\",getAddress(),getType(),getPrice(),getOwner());\n\t}",
"@Override\n public String toString(){\n return String.format(\"%s %s; %s: $%,.2f\",\n \"base-salaried\", super.toString(),\n \"base salary\", getBaseSalary());\n }",
"@Override\n public String toString() {\n return \"\\nname: \" + name +\n \"\\npassword: \" + password +\n \"\\ndateOfBirth: \" + dateOfBirth +\n \"\\nmarriageStatus: \" + marriageStatus +\n \"\\naccountNumber: \" + accountNumber +\n \"\\namount in account 1 : \" + amountAccount1 +\n \"\\naccountNumber2: \" + accountNumber2 +\n \"\\namount in account 2 : \" + amountAccount2 +\n \"\\nrelativeName: \" + relativeName +\n \"\\nrelativeAge: \" + relativeAge;\n }",
"@Override\n public String toString () {\n DecimalFormat df= new DecimalFormat(\"####0.00\");\n return \"- $\"+df.format(amount) + \" |\" + entryType.getTypeName() + \"| \" + enterTime;\n }",
"public String toString() {\r\n\t\treturn this.eId + \" \" + this.eName + \" \" + this.eCity + \" \";\r\n\t}",
"@Override\n\tpublic String toString() {\n\t//\tString str = String.format(\"Patient ID#%s Name: %d %s Birthdate: %s Gender: %s\",\n\t//\t\tpatientID, firstName, lastName, birthdate.toString(), gender);\n\n String str = \"Patient ID: \" + patientID + \", Name: \" + firstName + \" \" + lastName +\n \", Birthdate: \" + birthdate + \", Gender: \" + gender;\n\t\treturn str;\n\t}",
"@Override\n\tpublic String toString() {\n\t\t\n\t\treturn String.format(\"%s/%s, %s, %s, status: %s\",getNome(),getIdentificacao(),getEmail(),getCelular(),status);\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn id + \",\" + fName + \",\" + lName + \",\" + birthday + \",\" + phone\r\n\t\t\t\t+ \",\" + status + contactToString();\r\n\t}",
"@Override\n public String toString() {\n String newSubject = subject.trim();\n String newTitle = title.trim();\n String newBuilding = building.trim();\n String newDayTime = dayTime.trim();\n String newFaculty = faculty.trim();\n if (subject.length() > 5) {\n newSubject = subject.substring(0, 29);\n }\n if (title.length() > 33) {\n newTitle = title.substring(0, 29);\n }\n\n if (dayTime.length() > 34) {\n newDayTime = dayTime.substring(0, 20);\n }\n if (building.length() > 6) {\n newBuilding = building.substring(0, 29);\n }\n if (faculty.length() > 20) {\n newFaculty = faculty.substring(0, 16);\n }\n\n return String.format(\"%-11s%-38s%-34s%-15s%-10s%-25s\", \"Sub: \" + newSubject,\n \"Title: \" + newTitle, \" Day/Time: \" + newDayTime, \" Bldg: \" + newBuilding,\n \"Rm: \" + newRoom + oldRoomLetter, \" Fac: \" + newFaculty);\n\n }",
"@Override \n public String toString() \n { \n return \"user\" + \n \"\\n\\t RecordNo: \" + this.recordNo + \n \"\\n\\t EmployeeName: \" + this.name + \n \"\\n\\t Age: \" + this.age + \n \"\\n\\t Sex: \" + this.sex + \n \"\\n\\t Date of Birth: \" + this.dob + \n \"\\n\\t Remark: \" + this.remark; \n }",
"public String toString(){\n return getName() + getDetails() + getPhone();\n }",
"public String toString (){\r\n \r\n DecimalFormat formatter = new DecimalFormat(\"$###,###.00\");\r\n String formatTotal = formatter.format(total);\r\n \r\n String spacer = \"--------------------\";\r\n String printName = \"Name: \" + this.name;\r\n String printTriage = \"Urgency of visit (1 = urgent, 5 = routine): \" + this.triage;\r\n String printCoverage = \"Percent of bill covered by insurance: \" + this.coverage;\r\n String printTotal = \"Amount owed to hospital before insurance: \" + formatTotal;\r\n String combined = spacer + \"\\n\\n\" + printName + \"\\n\\n\" + printTriage + \"\\n\\n\" + printCoverage + \"\\n\\n\" + printTotal + \"\\n\\n\" + spacer;\r\n return combined;\r\n }"
]
| [
"0.80933416",
"0.80100036",
"0.7956418",
"0.7893493",
"0.7860261",
"0.77443665",
"0.773744",
"0.77250373",
"0.7722408",
"0.770877",
"0.76997226",
"0.76879317",
"0.7682614",
"0.7678641",
"0.7663086",
"0.76371723",
"0.7611684",
"0.75865406",
"0.75673676",
"0.7558208",
"0.75233114",
"0.75019795",
"0.7501053",
"0.7468885",
"0.7427454",
"0.73913234",
"0.73730075",
"0.73606044",
"0.7330873",
"0.72773254",
"0.7216672",
"0.71251196",
"0.70959705",
"0.70878416",
"0.7061143",
"0.7020578",
"0.6989572",
"0.6965435",
"0.6934239",
"0.6908564",
"0.686201",
"0.68245023",
"0.6816287",
"0.6812925",
"0.6809813",
"0.6806403",
"0.6787476",
"0.6775887",
"0.6762748",
"0.6760733",
"0.67520994",
"0.6745457",
"0.67427236",
"0.67265284",
"0.670484",
"0.67006093",
"0.66879845",
"0.6685836",
"0.668178",
"0.6681321",
"0.66810864",
"0.6679461",
"0.66698825",
"0.6668185",
"0.6651545",
"0.66504043",
"0.6644056",
"0.6638831",
"0.6637883",
"0.6618473",
"0.6613542",
"0.6612028",
"0.65840983",
"0.6578579",
"0.6576",
"0.6569541",
"0.65678877",
"0.65650094",
"0.65484697",
"0.65366817",
"0.65334266",
"0.65312773",
"0.6527497",
"0.65203506",
"0.65153",
"0.6514817",
"0.6511842",
"0.6504987",
"0.65020454",
"0.64926267",
"0.6483588",
"0.64727336",
"0.6472716",
"0.64596707",
"0.64469117",
"0.64461434",
"0.6443631",
"0.6438862",
"0.6438798",
"0.6435984"
]
| 0.7897771 | 3 |
Overloaded toString method that accpets an int to format employee payroll for commission employee | @Override
public String toString (int num)
{
String format = "Weekly pay for %s, %s employee id %s is $%.2f\n";
return String.format(format, this.getLastName(), this.getFirstName(), this.getId(), this.calculatePay());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString(){\r\n return String.format(\"%-15s%-15s%-30s%,8.2f\", this.employeeFirstName, \r\n this.employeeLastName, this.employeeEmail, getBiweeklySalary());\r\n }",
"@Override //indicates that this method overrides a superclass method\n public String toString(){\n\n return String.format(\"%s: %s %s%n%s : %s%n%s: %.2f%n%s: %.2f\",\"commission employee\",firstName,lastName,\n \"pan number\",panCardNumber,\"gross sales\",grossSales,\"commission rate\",commissionRate);\n }",
"@Override\n public String toString(){\n switch(this){\n case GROUND : return \"0\";\n case SECOND_DAY_AIR: return \"1\";\n case INTERNATIONAL_STANDARD: return \"3\";\n case INTERNATIONAL_PREMIUM: return \"4\";\n default: return \"-1\";\n }\n }",
"public String toString() {\n\t\treturn String.format( \"%s: %s\\n%s: $%,.2f; %s:%.2f\",\r\n\t\t\t\t \"commission employee\", super.toString(),\r\n\t\t\t\t \"gross sales\", getGrossSales(),\r\n\t\t\t\t \"commission rate\", getCommissionRate() );\r\n\t}",
"@Override \n public String toString() \n { \n return String.format(\"salaried employee: %s%n%s: $%,.2f\",\n super.toString(), \"weekly salary\", getWeeklySalary());\n }",
"public String toString(){\n String s = \"\";\n s+=\"Employee: \"+name+\"\\n\";\n s+=\"Employee ID: \" + idnum +\"\\n\";\n s+=\"Current Position: \"+position+\"\\n\";\n s+=\"Current Salary: $\" +salary+\"\\n\";\n s+=\"Vacation Balance: \" + vacationBal+ \" days\\n\";\n s+=\"Bonus: $\" +annualBonus+\"\\n\";\n return s;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn String.format(\"%s: %s %s%n%s: %s%n%s: %.2f%n%s: %.2f%n%s: %.2f\", \"base-salaried commission employee\", getFirstName(),\r\n\t\t\t\tgetLastName(), \"social security number\", getSocialSecurityNumber(), \"gross sales\", getGrossSales(),\r\n\t\t\t\t\"commission rate\", getCommissionRate(), \"base salary\", getBaseSalary());\r\n\t}",
"@Override\n public String toString ()\n {\n String format = \"Employee %s: %s , %s\\n Commission Rate: $%.1f\\n Sales: $%.2f\\n\";\n\n return String.format(format, this.getId(), this.getLastName(), this.getFirstName(), this.getRate(), this.getSales());\n }",
"@Override\n public String toString() {\n String s = this.empID + \",\" + this.lastName + \",\" + this.firstName;\n s += String.format(\",%09d\", this.ssNum);\n s += \",\" + HRDateUtils.dateToStr(this.hireDate);\n s += String.format(\",%.2f\", this.salary);\n return s;\n\n }",
"public String toString() {\r\n\t\treturn String.format(\"This is a junior employee. ID is %d, hired since %d, and commission is $%,.2f.\\r\\n\", \r\n\t\t\tgetID(), getYearHired(), getCommission());\r\n\t}",
"@Override\n public String toString() {\n String s = this.empID + \",\" + this.lastName + \",\" + this.firstName;\n s += String.format(\",%09d\", this.ssNum);\n s += \",\" + HRUtility.dateToStr(this.hireDate);\n s += String.format(\",%.2f\", this.salary);\n return s;\n }",
"@Override\n public String toString(){\n String empDetails = super.toString() + \"::FULL TIME::Annual Salary \"\n \t\t+ doubleToDollar(this.annualSalary);\n return empDetails;\n }",
"@Override\n public String toString(){\n return String.format(\"Hourly Employee : %s\\n%s : %,.2f\", \n super.toString(), \"Hourly Wage\", getWage());\n }",
"public String toString(){\r\n return super.toString() + \"\\nYearly Salary: \" + salary;\r\n }",
"public String toString() {\n\t\tNumberFormat currency = NumberFormat.getCurrencyInstance();\n return \"\" + id + \"\\t\\t\" + currency.format(income) + \"\\t\" + members;\n }",
"public String toString() \r\n\t{\r\n\t\treturn(super.toString() + \"\\'s wages are:\" + calculatePay());\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \"----\" + \"Employee [salary=\" + salary + \", profession=\" + profession + \"]\";\n\t}",
"@Override\n\tpublic String toString (int printText){\n\t\tString printOut = \"\";\n\n\t\tif(printText != 2){\n\t\t\tprintOut = super.program + \" \" + super.year + \" \" + super.average;\n\t\t\t\n\t\t\tif(printText == 1 && this.isPhD){//print the text version of the phd status\n\t\t\t\tprintOut += \" \" + this.supervisor + \" PhD \" + this.undergraduateSchool;\n\t\t\t}else if(printText == 1 && !this.isPhD){\n\t\t\t\tprintOut += \" \" + this.supervisor + \" Masters \" + this.undergraduateSchool;\n\t\t\t}\n\n\t\t\tif(printText == 0 && this.isPhD){//print the number version of the phd status\n\t\t\t\tprintOut += \" \" + this.supervisor + \" 1 \" + this.undergraduateSchool;\n\t\t\t}else if(printText == 0 && !this.isPhD){\n\t\t\t\tprintOut += \" \" + this.supervisor + \" 0 \" + this.undergraduateSchool;\n\t\t\t}\n\n\t\t\tprintOut += \" \" + this.lastName;\n\t\t}else{\n\t\t\tprintOut = super.toString(printText);//if the printText is equal to 2, concat only the program name, year, and last name\n\t\t}\n\t\treturn printOut;\n\t}",
"@Override\n public String toString(){\n return String.format(\"%s %s; %s: $%,.2f\",\n \"base-salaried\", super.toString(),\n \"base salary\", getBaseSalary());\n }",
"@Override\r\n public String toString() {\r\n String financialAidAsString = \"\";\r\n if (financialAid != 0)\r\n financialAidAsString = \":financial aid $\" + String.format(\"%,.2f\", financialAid);\r\n return super.toString() + \"resident\" + financialAidAsString;\r\n }",
"@Override \npublic String toString() { \n return String.format(\"%s: %s%n%s: $%,.2f; %s: %.2f\", \n \"commission nurse\", super.toString(), \n \"gross sales\", getGrossSales(), \n \"commission rate\", getCommissionRate()); \n}",
"@Override\n\tpublic String toString() {\n\t\tint temp = totalFees-feesPayed;\n\t\treturn (\"Student: \" + name + \" Total Fees Payed: $\" + feesPayed + \" Total Fees Remaining: $\" + temp);\n\t}",
"public String toString(){\r\n return getNumber() + \":\" + getLastName() + \",\" + getFirstName() + \",\" + \"Sales Employee\";\r\n }",
"public String toString()\n\t//return employee values\n\t{\n\t\treturn \"Id \" + id + \" Start date \" + start + \" Salary \" + salary + super.toString() + \" Job Title \" + jobTitle;\n\t}",
"public String toStringIdIncome() {\n\t\tNumberFormat currency = NumberFormat.getCurrencyInstance();\n return \"\" + id + \"\\t\\t\" + currency.format(income);\n }",
"public String toString() {\n \tString ret;\n \tint sumWait = 0;\n \tfor(Teller t : employees)\n \t{\n \t\tsumWait += t.getSumWaitTime();\n \t}\n \t\n \tret = \"Total elapsed time: \" + clock;\n \tret = ret + \"\\nTotal customers helped: \"+ numCust;\n \tret = ret + \"\\nAvg. wait time: \"+String.format(\"%.3f\",(float)sumWait/numCust);\n \tfor(Teller t : employees)\n \t{\n \t\tret = ret + \"\\nTeller \"+t.getID()+\": % time idle: \"+String.format(\"%.3f\",(float)(100*t.getIdleTime())/clock)+\" Number of customers helped: \"+t.getNumHelped();\n \t}\n \treturn ret;\n }",
"public String toString(){\n return \"Employee First Name: \" + firstName \t\n + \", Surname: \" + secondName\n + \", Hourly Rate \" + hourlyRate;\n }",
"public String toString(){\n return super.toString() + \" -- Yearly Bonus: \" + yearlyBonus +\" -- TOTAL Salary = \" + (yearlyBonus + super.getSalary()); \n }",
"public String toString() {\r\n\t\treturn \"Name : \"+name+\"\\nEmp# : \"+employeeNum;\r\n\t}",
"String toStringAsInt();",
"public String toString()\n\t{\n\t\treturn super.toString() + \"\\n\" +\n\t\t\t \"\\t\" + \"Full Time\" + \"\\n\" +\n\t\t\t \"\\t\" + \"Monthly Salary: $\" + Double.toString(monthlyEarning());\n\t}",
"public String getSalary() {\r\n\t\t//the base salary starts at $40,000\r\n\t\tint baseSalary = 40000;\r\n\t\t//The slary increases each year by $5,000 based on the number of years doctor practices\r\n\t\tint salary = baseSalary + (years * 5000);\r\n\t\t//This turns the int into a string with a $ sign in the front\r\n\t\tString salaryString = \"$\" + Integer.toString(salary);\r\n\t\t//The salary is returned\r\n\t\treturn salaryString;\r\n\t}",
"@Override\n public String toString()\n {\n return super.toString() + \"::FULL TIME::Annual Salary \" + toDollars(annualSalary);\n }",
"public String toString(){\n return \"Name: \"+this.name+\" Salary: \"+this.salary; // returning emp name and salary\r\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"Name is \" + empName + \"\\nEmp ID is \" + empID + \"\\nIncome=\" + annualIncome + \"\\nIncome Tax=\" + incomeTax\r\n\t\t\t\t+ \"\";\r\n\t}",
"@Override\n public String toString() {\n return \"rollno:\" + rollno + \"and name : \" + name;\n }",
"@Override\n public String toString(){\n return super.toString() + \"\\tPosition: \" + this.position + \"\\tSalary: $\" + this.salary;\n }",
"public String toString (){\r\n \r\n DecimalFormat formatter = new DecimalFormat(\"$###,###.00\");\r\n String formatTotal = formatter.format(total);\r\n \r\n String spacer = \"--------------------\";\r\n String printName = \"Name: \" + this.name;\r\n String printTriage = \"Urgency of visit (1 = urgent, 5 = routine): \" + this.triage;\r\n String printCoverage = \"Percent of bill covered by insurance: \" + this.coverage;\r\n String printTotal = \"Amount owed to hospital before insurance: \" + formatTotal;\r\n String combined = spacer + \"\\n\\n\" + printName + \"\\n\\n\" + printTriage + \"\\n\\n\" + printCoverage + \"\\n\\n\" + printTotal + \"\\n\\n\" + spacer;\r\n return combined;\r\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\tString ppString = \"\";\n\t\tif(x >= 0)\n\t\t\tppString += \"+\";\n\t\telse\n\t\t\tppString += \"-\";\n\t\tif(x >= 10 || x <= -10)\n\t\t\tppString += Math.abs(x);\n\t\telse\n\t\t\tppString += \"0\" + Math.abs(x);\n\t\tif(y >= 0)\n\t\t\tppString += \"+\";\n\t\telse\n\t\t\tppString += \"-\";\n\t\tif(y >= 10 || y <= -10)\n\t\t\tppString += Math.abs(y);\n\t\telse\n\t\t\tppString += \"0\" + Math.abs(y);\n\t\treturn ppString;\n\t}",
"@Override\npublic String toString()\n{\n Employee emp = new Employee();\n \n StringBuilder sb = new StringBuilder();\n sb.append(\"Employee{\");\n sb.append(\"Name=\");\n sb.append(emp.getName());\n sb.append(\",Salary complement=\");\n sb.append(emp.getSalary_complement());\n sb.append(\"}\");\n\n return sb.toString();\n}",
"@Override\n public String toString(){\n String juego = \"\";\n for (int[] tablero1 : tablero) {\n for (int casilla : tablero1) {\n juego += String.format(\"%2d \", casilla);\n }\n juego += String.format(\"%n\");\n }\n return juego;\n }",
"@Override\n public String toString() {\n return \"Credit hours: \" + this.creditHours + \"\\nFee per credit hour: $\" + this.feePerCreditHour + \"\\nScholarship amount: $\" + this.scholarshipAmount + \"\\nHealth insurance amount per annum: $\" + this.healthInsurancePerAnnum ;\n }",
"@Override\n public String toString(){\n \n return String.format(\"%-8d%-10s%-10s%-10s %.2f\\t%-6b\", getCustNumber(), getFirstName(), getSurname(),\n getPhoneNum(), getCredit(), canRent);\n }",
"@Override\n public String toString () {\n return getAge ()+\" - \" + getTotal ();\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuffer s1 = new StringBuffer();\n\t\ts1.append(\"Employee name : \");\n\t\ts1.append(this.name);\n\t\ts1.append(\" Id is: \");\n\t\ts1.append(Integer.toString(this.id));\n\t\ts1.append(\" salary is \");\n\t\ts1.append(Integer.toString(this.salary));\n\t\treturn s1.toString();\n\n\t}",
"@Override\n public String toString() {\n StringBuilder buff = new StringBuilder();\n\n buff.append(this.getClass().getSimpleName()).append(\": \");\n buff.append(\" int: \");\n buff.append(this.intValue);\n buff.append(\" \");\n buff.append(super.toString());\n\n return buff.toString();\n }",
"public String toString()\n {\n String string = new Integer(this.getValue()).toString();\n return string; \n }",
"public String toString() {\n\t\t\r\n\t\treturn String.format(\"N%s. Title is %s, employer is %s,\"\r\n\t\t\t\t+ \"employee grade is %d, salary is %d\",super.toString(), getTitle(), employer, \r\n\t\t\t\temployeeGrade, salary);\r\n\t}",
"@Override\r\n public String toString() {\r\n return \"Employee{\" + super.toString() + \", \" + \"employeeNumber=\" + employeeNumber + \", salary=\" + salary + '}';\r\n }",
"@Override\n public String toString()\n {\n return String.format(\"%s %s%s: $%,.2f%n%s: %.2f%n\", \"commission\", super\n .toString(), \"gross sales\", getGrossSales(), \"commission rate\",\n getCommissionRate());\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"Tam giac ten: %s, Do dai ba canh lan luot: %f %f %f\", ten,canhA,canhB,canhC);\n\t}",
"public String toString() {\n\t\treturn \"Employee [firstname=\" + firstname + \", hours=\" + hours\n\t\t\t\t+ \", lastname=\" + lastname + \", payrate=\" + payrate\n\t\t\t\t+ \", totalpay=\" + totalpay + \"]\";\n\t}",
"@Override\n public String toString() {\n \n // This method returns the String of the integer.\n return Integer.toString(hungerLevel);\n }",
"public String toString() {\n return Integer.toString(name);\n }",
"@Override\n public String toString() {\n String result = (negative)\n ? \"-P\"\n : \"P\";\n\n if ((years > 0) || (months > 0) || (days > 0)) {\n if (years > 0) {\n result += years + \"Y\";\n }\n\n if (months > 0) {\n result += months + \"M\";\n }\n\n if (days > 0) {\n result += days + \"D\";\n }\n } else {\n result += \"0D\";\n }\n\n if ((hours > 0) || (minutes > 0) || (seconds > 0)) {\n result += \"T\";\n\n if (hours > 0) {\n result += hours + \"H\";\n }\n\n if (minutes > 0) {\n result += minutes + \"M\";\n }\n\n if (seconds > 0) {\n result += seconds + \"S\";\n }\n }\n\n return result;\n }",
"public String toString() {\n\t\tif(useNum < 10) {\n\t\t\treturn \"0\" + useNum + useStr + \" \" + idNum;\n\t\t} else {\n\t\t\treturn useNum + useStr + \" \" + idNum;\n\t\t}\n\t}",
"@Override\n public String toString(){\n String printString = profile.toString();\n printString = printString + \"Payment $\";\n printString = printString + payDue;\n return printString;\n }",
"public String toString()\r\n\t{\r\n\t return \"Accnt nbr \"+getAcctNbr()+\" has balance of $\"+twoDigits.format(getBalance());\r\n\t}",
"@Override\r\n\t\tpublic String toString() {\r\n\t\t\tint rowNumTemp = rowNum;\r\n\t\t\tString result = \"\";\r\n\t\t\tint remainder;\r\n\t\t while (rowNumTemp > 0) {\r\n\t\t rowNumTemp--; // 1 => a, not 0 => a\r\n\t\t remainder = rowNumTemp % 26;\r\n\t\t char digit = (char) (remainder + (int) 'A'); //Lettering starts at A\r\n\t\t result = digit + result;\r\n\t\t rowNumTemp = rowNumTemp - remainder;\r\n\t\t rowNumTemp = rowNumTemp/26;\r\n\t\t }\r\n\r\n\t\t return result + Integer.toString(seatNum);\t\t \r\n\t\t\t\r\n\t\t}",
"public String toString(){ \r\n\t\t// commented out XP line\r\n\t\t// is a different version of printing out the xp\r\n\t\t// that sets each interval to a [0 - bracket limit for that level].\r\n\t\t// for example, if creature levels up to 2 with exactly 200xp (0xp --> 200xp), \r\n\t\t// with the cumulative xp being 200xp\r\n\t\t// it would display 0/275\r\n\t\t// likewise, if that same creature got an additional 280xp (0-->280) added to its total\r\n\t\t// it would display 5xp/350xp\r\n\r\n\t\tif(this.getIsSpecial()){\r\n\t\t\treturn \"Level \" + this.getLevel() + \" \" + this.species +\r\n\t\t\t\t\t\"\\n+++++++++++++++\" + \r\n\t\t\t\t\t\"\\n!!! Special !!!\" +\r\n\t\t\t\t\t\"\\nNAME: \" + this.getName() +\r\n\t\t\t\t\t\"\\nHP: \" + this.getHitPoints() + \"/\" + this.getMaxHitPoints() +\r\n\t\t\t\t\t\"\\nATK: \" + this.getAttackRating() + \r\n\t\t\t\t\t\"\\nDEF: \" + this.getDefenseRating() + \r\n\t\t\t\t\t\"\\nXP: \" + this.getExperiencePoints() + \"/\" + calcLevel(1,0) + \r\n\t\t\t\t\t//\"\\nXP: \" + (this.getExperiencePoints() - calcPreviousLevel(1,0)) + \"/\" + (200 + ((this.getLevel()-1) * 75)) + \r\n\t\t\t\t\t\"\\nXP VAL: \" + this.getExperienceValue() + \"\\n\";\r\n\t\t\t\t\t//\"Attacks: \" + printAttacks() + \"\\n\";\r\n\t\t}\r\n\t\treturn \"Level \" + this.getLevel() + \" \" + this.species +\r\n\t\t\t\t\"\\n+++++++++++++++\" + \r\n\t\t\t\t\"\\nNAME: \" + this.getName() +\r\n\t\t\t\t\"\\nHP: \" + this.getHitPoints() + \"/\" + this.getMaxHitPoints() +\r\n\t\t\t\t\"\\nATK: \" + this.getAttackRating() + \r\n\t\t\t\t\"\\nDEF: \" + this.getDefenseRating() + \r\n\t\t\t\t\"\\nXP: \" + this.getExperiencePoints() + \"/\" + calcLevel(1,0) + \r\n\t\t\t\t//\"\\nXP: \" + (this.getExperiencePoints() - calcPreviousLevel(1,0)) + \"/\" + (200 + ((this.getLevel()-1) * 75)) +\r\n\t\t\t\t\"\\nXP VAL: \" + this.getExperienceValue() + \"\\n\";\r\n\t\t\t\t//\"Attacks: \" + printAttacks() + \"\\n\";\r\n\r\n\r\n\r\n\t}",
"@Override\n\tpublic String toString(){ //returns only the non 0 fields.\n\t\tStringBuilder temp = new StringBuilder(\"\");\n\t\tif(victoryPoints!=0)\n\t\t\t\t temp.append(victoryPoints + \" victory points \");\n\t\tif(militaryPoints!=0)\n\t\t\ttemp= temp.append(militaryPoints + \" military points \");\n\t\tif(faithPoints!=0)\n\t\t\ttemp= temp.append(faithPoints + \" faith points \");\n\t\tif(councilPrivileges!=0)\n\t\t\ttemp= temp.append(councilPrivileges + \" council privileges \");\n\t\treturn temp.toString(); \n\t}",
"public String toString() {\r\n int totalPrice = 0;\r\n for (Ticket ticket : tickets) {\r\n totalPrice += ticket.price;\r\n }\r\n StringBuilder stringBuilder = new StringBuilder();\r\n stringBuilder.append(\"Costo totale : \").append(totalPrice);\r\n stringBuilder.append(String.format(\" Itinerario numero: \", itinerary.id+1));\r\n for (Ticket ticket : tickets) {\r\n stringBuilder.append(String.format(\"(Ticket numero %d prezzo %d) + \",ticket.ticketNumber, ticket.price));\r\n }\r\n if (tickets.size() == 0)\r\n stringBuilder.append(\"Itinerario non possibile\");\r\n else\r\n stringBuilder.setLength(stringBuilder.length()-2);\r\n return stringBuilder.toString();\r\n\r\n }",
"@Override\n public String toString() {\n String s = \"\";\n if(this.numPizzas < 10)\n s = \" \"; // Add space so that numbers line up\n s += String.format(\"%d \", this.getNumber()) + this.pizzaType.toString();\n return s;\n }",
"public String toString()\n {\n\tint c = coinCounter();\n\treturn \"$\" + c / 100 + \".\" + c % 100;\n }",
"@Override\n public String toString() {\n String num = \"\";\n\n if (!isPositive) {\n // Add '-' if the number is negative\n num = num.concat(\"-\");\n }\n\n // Add all the digits in reverse order\n for (int i = number.size() - 1; i >= 0; --i) {\n num = num.concat(number.get(i).toString());\n }\n\n return num;\n }",
"public String EmployeeSummary(){\r\n\t\treturn String.format(\"%d\\t%d\\t\\tJunior\\t\\t$%,.2f\\t\\t$%,.2f\\r\\n\", getID(), getYearHired(), getBaseSalary(), CalculateTotalCompensation());\r\n\t}",
"public String toString() {\n return this.getNom() +\n formatbonus('f', bonusForce) +\n formatbonus('d', bonusDefense) +\n formatbonus('v', bonusVie) +\n formatbonus('e', bonusEsquive) +\n formatbonus('i', bonusInventaire) +\n \"\";\n }",
"@Override\n public String toString(){\n return '+' + code + number.substring(0, 3) + '-' + number.substring(3, 6) + '-' +number.substring(6);\n }",
"public String toString() {\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n return firstName + lastName + \"\\n\" + cardNum + \"\\n\" + email + \"\\n\" + formatter.format(accCreditLimit);\n }",
"public String toString(){\n StringBuilder builder = new StringBuilder();\n builder.append(\"Employee :[ Name : \" + name + \", dept : \" + dept + \", salary :\"\n + salary+\", subordinates = \\n\");\n for(Employee e : this.subordinates) {\n builder.append(\"\\t\" + e + \"\\n\");\n }\n builder.append(\" ]\");\n return builder.toString();\n }",
"public String toString(){\r\n return \"(\" + num + \")\";\r\n }",
"@Override\n public String toString(Integer value) {\n if (value == null) {\n return \"\";\n }\n return (Integer.toString(((Integer) value).intValue()));\n }",
"public String toString()\n\t{\n\t\treturn \"Faculty \"+super.toString()+\" exp in yrs \"+expInYears+\" expert in \"+sme;\n\t}",
"public String toString() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"M/d/yyyy\");\n\t\treturn employeeName + \" \" + EID + \" \" + address + \" \" + phoneNumber + \" \" + sdf.format(DOB) + \" \" + securityClearance;\n\t}",
"public String toString(){\n return \"NAME: \"+this.name+\" ROLL: \"+this.roll+\" MALE: \"+this.male;\r\n }",
"public String toString() {\n String temp = this.value + \"\";\n if (this.value == 11) {\n temp = \"Jack\";\n } else if (this.value == 12) {\n temp = \"Queen\";\n } else if (this.value == 13) {\n temp = \"King\";\n } else if (this.value == 14) {\n temp = \"Ace\";\n }\n return temp + \" of \" + getSuitName();\n }",
"@Override\r\n public String toString() {\r\n return String.format(\"Commission Compensation With:\\nGross Sales of: \" + super.grossSales\r\n + \"\\nCommission Rate of: \" + super.commissionRate + \"\\nEarnings: \" + super.earnings());\r\n }",
"public String toString()\r\n{\r\nreturn super.toString() + \"\\n\" + \"Hours Worked\" + hoursWorked;\r\n//IMPLEMENT THIS\r\n}",
"@Override\n public String toString () {\n DecimalFormat df= new DecimalFormat(\"####0.00\");\n return \"- $\"+df.format(amount) + \" |\" + entryType.getTypeName() + \"| \" + enterTime;\n }",
"@Override\n public String toString()\n {\n return String.format(\"%-20s\\t\\t%-30s%-30s\",number, name, party);\n}",
"public String toString() {\n\t\treturn String.format(\"%s = %d\",name,value);\n\t}",
"public String toString()\n {\n return getValue(12);\n }",
"@Override\n public String toString() {return super.toString()+\" payment by hours\";}",
"public String NumberToString(int number){return \"\"+number;}",
"@Override\n\tpublic String toString() {\n\t\treturn \"\\ntoStringcalled\\t\"+name+\"\\t\"+age+\"\\t\"+salary;\n\t}",
"public String toString() {\n return \"Employee Id:\" + id + \" Employee Name: \" + name+ \"Employee Address:\" + address + \"Employee Salary:\" + salary;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \"\\nEmployees: \" + getEmployees();\n\t}",
"@Override\r\n public String toString () {\r\n return \"HourlyWorker: \" + hours + \", \" + hourlyRate + \", \" + salary + \", \" + super.toString();\r\n }",
"public String toString () {\n \tif (user)\n \t\tif (number1 == number2)\n \t\t\treturn \"user{\" + description + \", \" + number1 + \"}\";\n \t\telse\n \t\t\treturn \"user{\" + description + \", \" + number1 + \":\" + number2 + \"}\";\n \telse\n \t\treturn (new Integer(number1)).toString();\n }",
"@Override public String toString() {\r\n\t\tif(getID()<0) return new String(String.format(\"%s\", getName()));\r\n\t\treturn new String(String.format(\"%02d - %s\", getID() , getName()));\r\n\t}",
"public String toString() {\n\t\tString result = \"\";\n\t\t\n\t\tif (_minimum == _maximum) {\n\t\t\tresult = Integer.toString(_maximum);\n\t\t} else {\n\t\t\tresult = \"(\" + Integer.toString(_minimum) + \"-\" + Integer.toString(_maximum) + \")\";\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public String toString () {\r\n String display = courseCode;\r\n display += \"\\nDepartment: \" + department;\r\n display += \"\\nGrade: \" + grade;\r\n return display;\r\n }",
"public String toString() {\n\t\tNumberFormat formatter = NumberFormat.getPercentInstance();\n\t\tformatter.setMinimumFractionDigits(1);\n\n\t\treturn (\"\\nStudent Name: \" + lastName + \", \" + firstName + \"\\nWID: \" + wId + \"\\nOverall Pct: \"\n\t\t\t\t+ formatter.format(scorePercent) + \"\\nFinal Grade: \" + calcFinalGrade());\n\t}",
"public String toString() {\n return Integer.toString(sum);\n }",
"public String getJobNoStr(){\n \n // return zero\n if (this.getJobNumber()==0){\n return \"00000000\";\n }\n // for job numbers less than 6 digits pad\n else if (this.getJobNumber() < 100000){\n return \"000\" + Integer.toString(this.getJobNumber()); \n }\n // assume 7 digit job number\n else {\n return \"00\" + Integer.toString(this.getJobNumber()); \n }\n\n }",
"@Override\n public String toString() {\n String toStr = String.format(\"ChiefExecutiveOfHA | %s, leadership %d, medicine %d, experience %d\", isReady() ? \"READY\" : \"DONE\",leadership, medicine, experience);\n return toStr;\n }",
"public String toString( )\n {\n return Integer.toString( value );\n }",
"@Override\r\n public String toString() {\r\n if (value == (long) value) {\r\n //if the number`s decimal is 0 will print it like a long one\r\n return super.toString() + \":\" + String.format(\"%d\",(long)value);\r\n } else\r\n return super.toString() + \":\" + value;\r\n }",
"public String toString(){\n\t\tString temp = new String();\n\n\t\tif(cancelled){\n\t\t\ttemp+=\"WARNING COURSE SHOULD BE CANCELLED!\\n\";\n\t\t}\n\n\t\ttemp += \" Course subject ID: \" + subject.getID();\n\t\ttemp += \"\\n \" + (getStatus() < 0 ? \"Due to start\" : \"Finishes\") + \" in: \" + Math.abs(getStatus());\n\t\ttemp += \"\\n \" + (instructor == null ? \"Instructor not assigned\" : \"Instructor: \" + instructor.getName());\n\t\ttemp += \"\\n Amount of students enrolled: \" + enrolled.size() + \"\\n Enrolled list:\\n\";\n\n\t\tfor(Student student : enrolled){\n\t\t\ttemp+= \" * \" + student.getName() + \"\\n\";\n\t\t}\n\t\treturn temp;\n\t}",
"public String toString(){\r\n String output = \"\";\r\n //Display the name \r\n output += this.name;\r\n //Turn the cost int in cents to a string in dollars\r\n String totalcost = DessertShoppe.cents2dollarsAndCents(getCost());\r\n //Print out a space between the name and where the cost needs to be\r\n for (int i = this.name.length(); i < DessertShoppe.RECEIPT_WIDTH - totalcost.length(); i++){\r\n output+=\" \";\r\n }\r\n //Print outt he cost string with the dollar sign\r\n output += totalcost;\r\n return output;\r\n \r\n }"
]
| [
"0.68772316",
"0.6797047",
"0.6774361",
"0.67402077",
"0.6653702",
"0.6640315",
"0.6594974",
"0.65827584",
"0.6548783",
"0.654155",
"0.6535344",
"0.64966375",
"0.6486427",
"0.64504284",
"0.64087796",
"0.6332633",
"0.63141376",
"0.62992346",
"0.62944067",
"0.6292692",
"0.62916136",
"0.62725455",
"0.62676865",
"0.62647784",
"0.6263867",
"0.62549764",
"0.6215616",
"0.62131876",
"0.61965865",
"0.6193324",
"0.6182665",
"0.61559784",
"0.6150378",
"0.6148797",
"0.6144857",
"0.61366075",
"0.6127027",
"0.61021376",
"0.609081",
"0.60877",
"0.6085128",
"0.60663295",
"0.60641724",
"0.6053819",
"0.60483146",
"0.604444",
"0.60254",
"0.60225236",
"0.6015052",
"0.60133475",
"0.60111105",
"0.6010289",
"0.6007574",
"0.60049313",
"0.5999663",
"0.5980581",
"0.5975148",
"0.5959322",
"0.5952817",
"0.59518164",
"0.5946648",
"0.5936447",
"0.59232324",
"0.59063786",
"0.59040266",
"0.590341",
"0.58963484",
"0.5892925",
"0.5891917",
"0.58826643",
"0.58767223",
"0.5866053",
"0.58649385",
"0.5863989",
"0.5861985",
"0.5853431",
"0.5846412",
"0.58391446",
"0.5829975",
"0.582885",
"0.5819048",
"0.5815623",
"0.5811484",
"0.58100826",
"0.5808196",
"0.57982373",
"0.57931435",
"0.5790678",
"0.57845163",
"0.5764113",
"0.5763733",
"0.5762536",
"0.5761611",
"0.57581586",
"0.5756408",
"0.5756255",
"0.5752299",
"0.57464117",
"0.57436514",
"0.5743451"
]
| 0.728956 | 0 |
Mandatory empty constructor for the fragment manager to instantiate the fragment (e.g. upon screen orientation changes). | public TextFragment()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public FragmentMy() {\n }",
"public RickAndMortyFragment() {\n }",
"public MainActivityFragment() {\n }",
"public MainActivityFragment() {\n }",
"public RegisterFragment() {\n // Required empty public constructor\n }",
"public VehicleFragment() {\r\n }",
"public EmployeeFragment() {\n }",
"public RegisterFragment() {\n }",
"public HomeFragment() {}",
"public ExploreFragment() {\n\n }",
"public WkfFragment() {\n }",
"public WelcomeFragment() {}",
"public FavoriteFragment() {\n }",
"public MainActivityFragment(){\n\n }",
"public HomeSectionFragment() {\n\t}",
"public HistoryFragment() {\n }",
"public HistoryFragment() {\n }",
"public PhotoGalleryFragment() {\n }",
"public DisplayFragment() {\n\n }",
"public ForecastFragment() {\n }",
"protected abstract Fragment createFragment();",
"public Fragment_Tutorial() {}",
"public VideoFragment() {\n }",
"public ViewPagerFragment() {\n }",
"public progFragment() {\n }",
"public EventHistoryFragment() {\n\t}",
"public AddReminderFragment() {\n }",
"public HomeFragment() {\n // Required empty public constructor\n }",
"public CuartoFragment() {\n }",
"public LogFragment() {\n }",
"public GalleryActivityFragment() { //Constructor which has no function, but is required\n }",
"public RestaurantFragment() {\n }",
"public BookListFragment() {\n }",
"public PeopleFragment() {\n // Required empty public constructor\n }",
"public PersonDetailFragment() {\r\n }",
"public FriendsListFragment() {\n }",
"public MyGoodsFragment() {\n }",
"public BackEndFragment() {\n }",
"public VantaggiFragment() {\n // Required empty public constructor\n }",
"public MovieListFragment() {\n }",
"public CustomerFragment() {\n }",
"public StintFragment() {\n }",
"public CreatePatientFragment() {\n\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public PlaylistFragment() {\n }",
"public DeviceModuleDetailFragment() {\n }",
"public void createFragment() {\n\n }",
"public MyLocationsFragment() {\n }",
"public ArticleDetailFragment() { }",
"public VenueDetailFragment() {\r\n\t}",
"public RepositoryFragment() {\n }",
"public NoteActivityFragment() {\n }",
"public RouteFragment() {\n }",
"public ItemFragment() {\n }",
"public RoomStatusFragment()\n {\n }",
"public PlaceholderFragment() {\n }",
"public MovieGridFragment() {\n }",
"public RecipeVideoFragment() {\n }",
"public RelayListFragment() {\n }",
"public ItemListFragment() {\n }",
"public FeedFragment() {\n }",
"@RequiresApi(api = Build.VERSION_CODES.O)\n public MainPages_MyProfile_Fragment() {\n Log.i(\"Init\", \"Initialize profile fragment...\");\n this.selected = R.id.profile_info_item;\n this.infoFragment = Info_Profile_Fragment.getInstance();\n this.imageFragment = Image_Profile_Fragment.getInstance();\n }",
"public MovieDetailFragment() {\n }",
"public MovieDetailFragment() {\n }",
"public MainFragment2() {\r\n super();\r\n }",
"public CreateEventFragment() {\n // Required empty public constructor\n }",
"public CarModifyFragment() {\n }",
"public ProductsFragment() {\n }",
"public DialogFragment() {\n Log.d(TAG,\"Construction\");\n // Required empty public constructor\n }",
"public SyncMigrationFragment()\n {\n super();\n }",
"public AddressDetailFragment() {\n }",
"public ShoppingListFragment() {\n }",
"public RestaurantDetailFragment() {\n }",
"public UpdaterFragment() {\n // Required empty public constructor\n }",
"@Override\r\n\tpublic void onFragmentCreate(Bundle savedInstanceState) {\n\t}",
"public AboutUsFragment() {\n // Required empty public constructor\n }",
"private void initFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(R.id.contentFrame, fragment);\n transaction.commit();\n }",
"public MovieDetailFragment() {\n\n }",
"public NewShopFragment() {\n }",
"public NoteListFragment() {\n }",
"public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public SistudiaMainFragment() {\r\n // Required empty public constructor\r\n }",
"public PatientDetailLogsFragment() {\n }",
"public SettingsFragment() {\n // Empty constructor required for fragment subclasses\n }",
"public StepsFragment() {\n }",
"public ChatThreadDetailFragment() {\n }",
"public FExDetailFragment() {\n \t}",
"public SwapListFragment() {\n }",
"public CategoryFragment() {\n }",
"public ProfileFragment() {\n\n }",
"public CategoriesFragment() {\n }",
"public UsersFragment() {\n }",
"public EmailFragment() {\n }",
"public MenuCategoryFragment() {\n\n }",
"public WalletFragment(){}",
"public ItemDetailFragment() {\n }",
"public ItemDetailFragment() {\n }",
"public ItemDetailFragment() {\n }",
"public ItemDetailFragment() {\n }"
]
| [
"0.8031511",
"0.76991963",
"0.7676922",
"0.7676922",
"0.7538628",
"0.7534647",
"0.75326765",
"0.75220966",
"0.75071454",
"0.74123853",
"0.7406797",
"0.737607",
"0.73755896",
"0.736607",
"0.73266673",
"0.73027587",
"0.73027587",
"0.72954965",
"0.7287682",
"0.728533",
"0.7280965",
"0.72710395",
"0.726701",
"0.7262771",
"0.7260237",
"0.7250639",
"0.72495973",
"0.7237854",
"0.7237179",
"0.72367895",
"0.7233901",
"0.72333854",
"0.72223955",
"0.72210187",
"0.7210297",
"0.71998554",
"0.71974355",
"0.7185321",
"0.7175307",
"0.71749073",
"0.71643627",
"0.7136156",
"0.7122973",
"0.71101296",
"0.71101296",
"0.71101296",
"0.71037227",
"0.71019924",
"0.7094957",
"0.7088855",
"0.7088652",
"0.7070247",
"0.70624536",
"0.70587",
"0.7056132",
"0.70477945",
"0.7041431",
"0.70330954",
"0.7027764",
"0.7018135",
"0.70153606",
"0.70095944",
"0.70042574",
"0.70007783",
"0.6999985",
"0.6999985",
"0.69866604",
"0.69833314",
"0.6972247",
"0.69676286",
"0.69617236",
"0.6960365",
"0.6942106",
"0.6936593",
"0.6922325",
"0.6921973",
"0.69206995",
"0.6910822",
"0.6908854",
"0.6908238",
"0.69077724",
"0.69047505",
"0.6893635",
"0.6890194",
"0.68891186",
"0.686739",
"0.6851039",
"0.6837696",
"0.6834854",
"0.68307483",
"0.6830333",
"0.6827755",
"0.68277544",
"0.6806075",
"0.6802827",
"0.6801055",
"0.6800667",
"0.6797551",
"0.6797551",
"0.6797551",
"0.6797551"
]
| 0.0 | -1 |
C L I C K | @Override
public void onListItemClick(@NonNull final ListView listView, @NonNull final View view, final int position, final long id)
{
super.onListItemClick(listView, view, position, id);
Log.d(TAG, "CLICK id=" + id + " pos=" + position);
// cursor
final ListAdapter adapter = getListAdapter();
assert adapter != null;
final Object item = adapter.getItem(position);
final Cursor cursor = (Cursor) item;
// args
Bundle args = getArguments();
assert args != null;
// search target
final String database = args.getString(ProviderArgs.ARG_QUERYDATABASE);
if (database != null)
{
// wordnet
switch (database)
{
case "wn":
String subtarget = args.getString(ProviderArgs.ARG_QUERYIDTYPE);
if ("synset".equals(subtarget))
{
// recursion
final int recurse = Settings.getRecursePref(requireContext());
// target
final int colIdx = cursor.getColumnIndex("synsetid");
final long targetId = cursor.getLong(colIdx);
Log.d(TAG, "CLICK wn synset=" + targetId);
// build pointer
final Parcelable synsetPointer = new SynsetPointer(targetId);
// intent
final Intent targetIntent = new Intent(requireContext(), org.sqlunet.wordnet.browser.SynsetActivity.class);
targetIntent.setAction(ProviderArgs.ACTION_QUERY);
targetIntent.putExtra(ProviderArgs.ARG_QUERYTYPE, ProviderArgs.ARG_QUERYTYPE_SYNSET);
targetIntent.putExtra(ProviderArgs.ARG_QUERYPOINTER, synsetPointer);
targetIntent.putExtra(ProviderArgs.ARG_QUERYRECURSE, recurse);
// start
startActivity(targetIntent);
}
else if ("word".equals(subtarget))
{
// target
final int colIdx = cursor.getColumnIndex("wordid");
final long targetId = cursor.getLong(colIdx);
Log.d(TAG, "CLICK wn word=" + targetId);
// build pointer
final Parcelable wordPointer = new WordPointer(targetId);
// intent
final Intent targetIntent = new Intent(requireContext(), org.sqlunet.wordnet.browser.WordActivity.class);
targetIntent.setAction(ProviderArgs.ACTION_QUERY);
targetIntent.putExtra(ProviderArgs.ARG_QUERYTYPE, ProviderArgs.ARG_QUERYTYPE_WORD);
targetIntent.putExtra(ProviderArgs.ARG_QUERYPOINTER, wordPointer);
// start
startActivity(targetIntent);
}
break;
case "vn":
//
{
final int idClasses = cursor.getColumnIndex(VerbNetContract.Lookup_VnExamples_X.CLASSES);
final String classes = cursor.getString(idClasses);
Log.d(TAG, "CLICK vn classes=" + classes);
final Pair<TypedPointer[], CharSequence[]> result = makeData(classes);
if (result.first.length > 1)
{
final DialogInterface.OnClickListener listener = (dialog, which) -> {
// which argument contains the index position of the selected item
final TypedPointer typedPointer = result.first[which];
startVn(typedPointer);
};
final AlertDialog dialog = makeDialog(listener, result.second);
dialog.show();
}
else if (result.first.length == 1)
{
final TypedPointer typedPointer = result.first[0];
startVn(typedPointer);
}
break;
}
case "pb":
//
{
final int idRoleSets = cursor.getColumnIndex(PropBankContract.Lookup_PbExamples_X.ROLESETS);
final String roleSets = cursor.getString(idRoleSets);
Log.d(TAG, "CLICK pb rolesets=" + roleSets);
final Pair<TypedPointer[], CharSequence[]> result = makeData(roleSets);
if (result.first.length > 1)
{
final DialogInterface.OnClickListener listener = (dialog, which) -> {
// which argument contains the index position of the selected item
final TypedPointer typedPointer = result.first[which];
startPb(typedPointer);
};
final AlertDialog dialog = makeDialog(listener, result.second);
dialog.show();
}
else if (result.first.length == 1)
{
final TypedPointer typedPointer = result.first[0];
startPb(typedPointer);
}
break;
}
case "fn":
//
{
final int idFrames = cursor.getColumnIndex(FrameNetContract.Lookup_FTS_FnSentences_X.FRAMES);
final int idLexUnits = cursor.getColumnIndex(FrameNetContract.Lookup_FTS_FnSentences_X.LEXUNITS);
final int idSentenceId = cursor.getColumnIndex(FrameNetContract.Lookup_FTS_FnSentences_X.SENTENCEID);
final String frames = cursor.getString(idFrames);
final String lexUnits = cursor.getString(idLexUnits);
final String sentence = "sentence@" + cursor.getString(idSentenceId);
Log.d(TAG, "CLICK fn frames=" + frames);
Log.d(TAG, "CLICK fn lexunits=" + lexUnits);
Log.d(TAG, "CLICK fn sentence=" + sentence);
final Pair<TypedPointer[], CharSequence[]> result = makeData(frames, lexUnits, sentence);
if (result.first.length > 1)
{
final DialogInterface.OnClickListener listener = (dialog, which) -> {
// which argument contains the index position of the selected item
final TypedPointer typedPointer = result.first[which];
startFn(typedPointer);
};
final AlertDialog dialog = makeDialog(listener, result.second);
dialog.show();
}
else if (result.first.length == 1)
{
final TypedPointer typedPointer = result.first[0];
startFn(typedPointer);
}
break;
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"C key();",
"java.lang.String getCit();",
"private boolean kcss(int[] i, long[] e, long y) {\n int I = i.length;\n long[] x = new long[I];\n while (true) {\n x[0] = ll(i[0]); // 1\n snapshot(i, 1, I, x); // 2\n if (Arrays.compare(x, e) != 0) { // 3\n sc(i[0], x[0]); // 3a\n return false; // 3a\n }\n if (sc(i[0], y)) return true; // 3b\n } // 3c\n }",
"int getC();",
"public void k() {\n if (this.l <= 0) {\n c();\n }\n }",
"public boolean controllo(String c,int k) {\r\n\t\tString r=\"#\";\r\n\t\tfor(int i=0;i<c.length();i++) {\r\n\t\t\tif(!c.contains(r)) return false;\r\n\t\t}\r\n\t\treturn true;\r\n\t\t}",
"int getNumCyc();",
"C2841w mo7234g();",
"java.lang.String getContKey();",
"public void func_70295_k_() {}",
"public char getKey(){ return key;}",
"public int contenuto(int r, int c) { return contenutoCaselle[r][c]; }",
"private void kk12() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"static void CSMKeyControll(OPL_CH CH) {\n OPL_SLOT slot1 = CH.SLOT[SLOT1];\n OPL_SLOT slot2 = CH.SLOT[SLOT2];\n /* all key off */\n OPL_KEYOFF(slot1);\n OPL_KEYOFF(slot2);\n /* total level latch */\n slot1.TLL = (int) (slot1.TL + (CH.ksl_base >> slot1.ksl));\n slot1.TLL = (int) (slot1.TL + (CH.ksl_base >> slot1.ksl));\n /* key on */\n CH.op1_out[0] = CH.op1_out[1] = 0;\n OPL_KEYON(slot1);\n OPL_KEYON(slot2);\n }",
"public ECP getKGCRandomKey(){return R;}",
"java.lang.String getC3();",
"public String getC() {\n return c;\n }",
"public int getK() {\n\t\treturn K; \n\t}",
"public int getC() {\n return c_;\n }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public double getConc(int i, int j, int k) {\r\n\t\treturn quantity[i][j][k]/boxVolume;\r\n\t}",
"public int thisC()\r\n\t{\r\n\t return thisc;\r\n\t}",
"K key();",
"K key();",
"@Override\n\tdouble chuVi() {\n\t\treturn canhA + canhB + canhC;\n\t}",
"public String getCHUNGCHI_KHAC()\n {\n return this.CHUNGCHI_KHAC;\n }",
"RealMatrix getK();",
"public int getK() {\n\t\treturn k;\n\t}",
"private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }",
"private int hashMath (int r, int c, int columns) {\n return currentState[r][c];\n }",
"private final boolean cvc(int i)\n\t { if (i < 2 || !cons(i) || cons(i-1) || !cons(i-2)) return false;\n\t { int ch = b[i];\n\t if (ch == 'w' || ch == 'x' || ch == 'y') return false;\n\t }\n\t return true;\n\t }",
"public int getC() {\n return c_;\n }",
"public int getK() {\r\n\t\treturn this.k;\r\n\t}",
"public int s() {\r\n/* 247 */ return this.k;\r\n/* */ }",
"public char encryptChar(char c) {\r\n try {\r\n char returni = charMap.get(c);\r\n System.out.println(returni);\r\n return returni;\r\n } catch(NullPointerException e) {\r\n System.out.println(\"cant do this dude: \" + c);\r\n return c;\r\n }\r\n }",
"private static int zzCMap(int input) {\n int offset = input & 255;\n return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset];\n }",
"private static int zzCMap(int input) {\n int offset = input & 255;\n return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset];\n }",
"private static int zzCMap(int input) {\n int offset = input & 255;\n return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset];\n }",
"K()//k class constructer not available in L as initializlers do not involve in inheritance\n\t{\n\t\t//super(); by default compiler will create super()\n\t\tSystem.out.println(\"K()\");\n\t}",
"public double getC() {\n return c;\n }",
"public static void kSmallest(int l,int r,int k){\n\t\t\n if((r-l+1)>=k){\n\t\tint freq[]=new int[26];\n\t\tfor(int i=l;i<=r;i++){\n\t\t\tfreq[source.charAt(i)-97]++;\n\t\t}\n\t\t\n\t\tint sum=0;\n\n\t\tfor(int i=0;i<26;i++){\n\t\t\tif(freq[i]>0){\n\t\t\t\tsum+=freq[i];\n\t\t\t\tif(sum>=k){\n\t\t\t\t\tSystem.out.println((char)(i+97));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }else{\n \t System.out.println(\"Out of range\");\n }\n\t}",
"protected static boolean verifyCvCtag(IGroupElement C, IGroupElement Ctag,\r\n \t\t\tLargeInteger v, IntegerRingElement Kc, IGroupElement g) {\r\n \r\n \t\tIGroupElement left = (C.power(v)).mult(Ctag);\r\n \t\tIGroupElement right = g.power(Kc.getElement());\r\n \r\n \t\t// TODO printout\r\n \t\tSystem.out.println(\"C^v : \" + C.power(v));\r\n \t\tSystem.out.println(\"C^v C' : \" + left);\r\n \t\tif (!left.equals(right)) {\r\n \t\t\treturn false;\r\n \t\t}\r\n \r\n \t\treturn true;\r\n \t}",
"public boolean k_()\r\n/* 450: */ {\r\n/* 451:464 */ return false;\r\n/* 452: */ }",
"public String getClerk() {\n\t\treturn clerk;\n\t}",
"int getcPosC() {\n return cPosC;\n }",
"public void getK_Gelisir(){\n K_Gelistir();\r\n }",
"public String c() {\r\n switch (c) {\r\n case RED:\r\n return \"Red\";\r\n case BLUE:\r\n return \"Blue\";\r\n case YELLOW:\r\n return \"Yellow\";\r\n case GREEN:\r\n return \"Green\";\r\n default:\r\n return \"Colorless\";\r\n }\r\n }",
"public CCode getC() {\n \t\treturn c;\n \t}",
"private static int zzCMap(int input) {\n int offset = input & 255;\n return offset == input\n ? ZZ_CMAP_BLOCKS[offset]\n : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset];\n }",
"String getCpushares();",
"void ciff_block_1030()\n{\n int key[] = new int[2];\n key[0] = 0x410;\n key[1] = 0x45f3;\n int i, bpp, row, col, vbits=0;\n long bitbuf=0;\n\n get2();\n if ((get4()) != 0x80008 || get4()==0) return;\n bpp = get2();\n if (bpp != 10 && bpp != 12) return;\n for (i=row=0; row < 8; row++)\n for (col=0; col < 8; col++) {\n if (vbits < bpp) {\n\tbitbuf = bitbuf << 16 | (get2() ^ key[i++ & 1]);\n\tvbits += 16;\n }\n white[row][col] = ( char)( bitbuf << (LONG_BIT - vbits) >> (LONG_BIT - bpp));\n vbits -= bpp;\n }\n}",
"C02(int i){\n\t\t\n\t}",
"static int letterIslands(String s, int k) {\n /*\n * Write your code here.\n */\n\n }",
"public int getCiclo() { return this.ciclo; }",
"public void mo12628c() {\n }",
"public String getCsc() {\r\n\t\treturn csc;\r\n\t}",
"public void evaluate_roundkeys() {\n for (int r = 0; r < 16; r++) {\n // \"-2\" dient der Fehler-Erkennung\n for (int y = 0; y < 48; y++)\n DES_K[r][y] = -2;\n }\n\n for (int j = 0; j < 16; j++)\n DES_K[j] = select(CD[j + 1], PC2);\n\n for (int j = 0; j < 16; j++)\n DES_reversed_K[j] = DES_K[15 - j];\n }",
"String getCmt();",
"C1458cs mo7613iS();",
"java.lang.String getCdkey();",
"private int C() throws SyntaxException, ParserException {\n\t\tswitch (current) {\n\t\t\tcase '0':\n\t\t\t\t// C -> 0\n\t\t\t\teat('0');\n\t\t\t\treturn 0;\n\t\t\tcase '1':\n\t\t\t\t// C -> 1\n\t\t\t\teat('1');\n\t\t\t\treturn 1;\n\t\t\tcase '2':\n\t\t\t\t// C -> 2\n\t\t\t\teat('2');\n\t\t\t\treturn 2;\n\t\t\tcase '3':\n\t\t\t\t// C -> 3\n\t\t\t\teat('3');\n\t\t\t\treturn 3;\n\t\t\tcase '4':\n\t\t\t\t// C -> 4\n\t\t\t\teat('4');\n\t\t\t\treturn 4;\n\t\t\tcase '5':\n\t\t\t\t// C -> 5\n\t\t\t\teat('5');\n\t\t\t\treturn 5;\n\t\t\tcase '6':\n\t\t\t\t// C -> 6\n\t\t\t\teat('6');\n\t\t\t\treturn 6;\n\t\t\tcase '7':\n\t\t\t\t// C -> 7\n\t\t\t\teat('7');\n\t\t\t\treturn 7;\n\t\t\tcase '8':\n\t\t\t\t// C -> 8\n\t\t\t\teat('8');\n\t\t\t\treturn 8;\n\t\t\tcase '9':\n\t\t\t\t// C -> 9\n\t\t\t\teat('9');\n\t\t\t\treturn 9;\n\t\t\tdefault:\n\t\t\t\tthrow new SyntaxException(ErrorType.NO_RULE,current);\n\t\t}\n\t}",
"static int checkMateWithHathi(char[][] board, int P1r, int P1c) {\n\t\tint ch = P1c, checkmate = 0;\n\t\tfor (int r = P1r + 1; r < 8; r++) {\n\t\t\tif (board[r][ch] == 'k') {\n\t\t\t\tcheckmate++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn checkmate;\n\t}",
"private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }",
"public int c() {\n return this.f12363a;\n }",
"static String caesarCipher(String s, int k) {\n char[] chars = s.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n chars[i] = shift(chars[i], k);\n }\n return new String(chars);\n }",
"public void mo30767z() {\n C8178t3.m39123c(entrySet().iterator());\n }",
"public KMP(){\n this.R = 128;\n }",
"int cubeCol() {\n return c; \n }",
"private void m91737K() {\n String str = this.f73944a;\n boolean z = true;\n if (this.f73953m != 1) {\n z = false;\n }\n C28141am.m92411a(new C28311ag(str, z), new C28312ah(this.f73949f.hashCode()), this.f73944a);\n }",
"public long getprefx(long cnumber, int k) {\n if (thesize(cnumber) > k) {\n String num = cnumber + \"\";\n return Long.parseLong(num.substring(0, k));\n }\n return cnumber;\n }",
"public int getCpscCase() { return cpscCase; }",
"public void k()\r\n/* 238: */ {\r\n/* 239:258 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 240:259 */ if (this.a[i] != null) {\r\n/* 241:260 */ this.a[i].a(this.d.o, this.d, i, this.c == i);\r\n/* 242: */ }\r\n/* 243: */ }\r\n/* 244: */ }",
"public char getCouleur(){\t\n\t\treturn couleur;\n\t}",
"private void setKey() {\n\t\t \n\t}",
"public String konus() {\n\t\treturn this.getIsim()+\" havliyor\";\n\t}",
"public Double getCtr() {\r\n return ctr;\r\n }",
"private int p(K k, int i) {\r\n return i/2 + (i*i)/2 + (i%2);\r\n }",
"DataFrameColumn<R,C> col(C colKey);",
"public int getCxcleunik() {\r\r\r\r\r\r\r\n return cxcleunik;\r\r\r\r\r\r\r\n }",
"public Kristik(){\n key = \"\";\n blockLen = key.length();\n }",
"Integer getChnlCde();",
"@Override\n\tdouble dienTich() {\n\t\tdouble p = chuVi() / 2;\n\t\treturn Math.sqrt(p*(p-canhA)*(p-canhB)*(p-canhC));\n\t}",
"private boolean letter() {\r\n return CATS(Lu, Ll, Lt, Lm, Lo);\r\n }",
"void mo8280a(int i, int i2, C1207m c1207m);",
"public static void main(String[] args) {\n\t\tString s=\"A\";\n\t\tint l=s.length();\n\t\tint c=0;\n\t\tfor(int i=0;i<l;i++){\n\t\t\tc=(int) (c+(s.charAt(s.length()-i-1)-'A'+1)*Math.pow(26, i));\n\t\t\tSystem.out.println(c);\n\n\t\t}\n\t\t//System.out.println(c);\n\t}",
"public int getLC() {\n\treturn lc;\n }",
"private static String lllIIllIl(short IIIlIIlllllIIll, String IIIIlIlllllIIll) {\n }",
"static void computeLCS(String x, String y,int m, int n,int[][] c,char[][] b) {\n \r\n\t\tfor (int i = 0; i <= m; i++) {\r\n\t\t\tfor (int j = 0; j <= n; j++) {\r\n\t\t\t\tc[i][j]=0;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int i = 1; i <= m; i++) {\r\n\t\t\tfor (int j = 1; j <= n; j++) {\r\n\t\t\t\tif(x.charAt(i-1) == y.charAt(j-1)) {\r\n\t\t\t\t\tc[i][j]=c[i-1][j-1]+1;\r\n\t\t\t\t\tb[i][j]='/';\r\n\t\t\t\t}\r\n\t\t\t\telse if(c[i-1][j] >= c[i][j-1]) {\r\n\t\t\t\t\tc[i][j]=c[i-1][j];\r\n\t\t\t\t\tb[i][j]='|';\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tc[i][j]=c[i][j-1];\r\n\t\t\t\t\tb[i][j]='-';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n//\t\tfor (int i = 0; i <= m; i++) {\r\n//\t\t\tfor (int j = 0; j <= n; j++) {\r\n//\t\t\t\tSystem.out.print(c[i][j]);\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println();\r\n//\t\t}\r\n \r\n\t}",
"public String getS_c_n() {\n return s_c_n;\n }",
"public static final float getKI() {\r\n\t\treturn K_I;\r\n\t}",
"private int m681c(int i) {\n return (i >> 31) ^ (i << 1);\n }",
"private static int value(char r) {\n if (r == 'I')\n return 1;\n if (r == 'V')\n return 5;\n if (r == 'X')\n return 10;\n if (r == 'L')\n return 50;\n if (r == 'C')\n return 100;\n if (r == 'D')\n return 500;\n if (r == 'M')\n return 1000;\n return -1;\n }",
"private static String m618z(char[] cArr) {\n int length = cArr.length;\n for (int i = 0; length > i; i++) {\n int i2;\n char c = cArr[i];\n switch (i % 5) {\n case 0:\n i2 = 6;\n break;\n case 1:\n i2 = 14;\n break;\n case 2:\n i2 = 30;\n break;\n case 3:\n i2 = 7;\n break;\n default:\n i2 = 20;\n break;\n }\n cArr[i] = (char) (i2 ^ c);\n }\n return new String(cArr).intern();\n }",
"static int getValue(char c) {\n\t\tswitch(c) {\n\t\tcase 'A': return 0;\n\t\tcase 'C': return 1;\n\t\tcase 'G': return 2;\n\t\tcase 'T': return 3;\n\t\tdefault: return -1;\n\t\t}\n\t}",
"public KI(String spielerwahl){\n\t\teigenerStein = spielerwahl;\n\t\t\n\t\tswitch (spielerwahl) {\n\t\tcase \"o\":\n\t\t\tgegnerStein = \"x\";\n\t\t\tbreak;\n\t\tcase\"x\":\n\t\t\tgegnerStein = \"o\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Ungueltige Spielerwahl.\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\thatAngefangen = gegnerStein;\n\t\t\n\t\tfor(int i=0; i<7; i++) { //initialisiert spielfeld\n\t\t\tfor(int j=0; j<6; j++){\t\t\t\t\n\t\t\t\tspielfeld[i][j] = \"_\";\n\t\t\t}\n\t\t\tmoeglicheZuege[i] = -1; //initialisiert die moeglichen zuege\n\t\t}\n\t\t\n\t}",
"public int C(int n, int k) {\n\tif (choose[n][k] != -1)\n\t\treturn choose[n][k];\n\tint t = C(n-1,k-1) + C(n-1,k);\n\tchoose[n][k] = t;\n\treturn t;\n}",
"@Override\n\tdouble chuVi() {\n\t\treturn (canhA + canhB) * 2;\n\t}",
"C12017a mo41088c();",
"int getCedula();",
"public String getLowestChromKey();"
]
| [
"0.61339355",
"0.58528674",
"0.58223134",
"0.581035",
"0.5796656",
"0.5702882",
"0.5676563",
"0.56741226",
"0.5663211",
"0.56593764",
"0.5657155",
"0.55894977",
"0.5582074",
"0.55652744",
"0.55499643",
"0.5506032",
"0.5480838",
"0.54610515",
"0.5453316",
"0.5445156",
"0.54310966",
"0.5419118",
"0.5414625",
"0.5414111",
"0.5414111",
"0.54131424",
"0.54024476",
"0.53989524",
"0.53981143",
"0.5382679",
"0.5337445",
"0.53309",
"0.532346",
"0.5313665",
"0.52980226",
"0.52866876",
"0.5286679",
"0.5286679",
"0.5286679",
"0.52818906",
"0.5278496",
"0.52680045",
"0.5267508",
"0.52662164",
"0.5263454",
"0.5257691",
"0.5249038",
"0.5246851",
"0.52428484",
"0.5229528",
"0.5214859",
"0.5196187",
"0.51924413",
"0.5183434",
"0.51808155",
"0.51720065",
"0.51638544",
"0.5162623",
"0.51595026",
"0.5158862",
"0.51584154",
"0.5157406",
"0.51557386",
"0.51539165",
"0.51530254",
"0.51442695",
"0.51184374",
"0.5116348",
"0.5110399",
"0.5099733",
"0.50935066",
"0.5092572",
"0.5090197",
"0.50899667",
"0.50841",
"0.50809264",
"0.5076498",
"0.50752574",
"0.5068701",
"0.50684255",
"0.50682735",
"0.50610507",
"0.5060493",
"0.5058391",
"0.50536865",
"0.50441766",
"0.5044104",
"0.5042938",
"0.50370735",
"0.50345427",
"0.50335246",
"0.50285476",
"0.50285083",
"0.50237006",
"0.5023141",
"0.5022289",
"0.501938",
"0.5018411",
"0.50162005",
"0.5012064",
"0.5010881"
]
| 0.0 | -1 |
Gets the changeOperation value for this HostIpRouteOp. | public java.lang.String getChangeOperation() {
return changeOperation;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOperation() {\n\t\t\treturn operation;\n\t\t}",
"public String getOperation() {\n\t\treturn operation;\n\t}",
"public String getOperation() {\n return operation;\n }",
"public String getOperation() {\n return operation;\n }",
"public String getOperation() {\r\n\t\treturn operation;\r\n\t}",
"public String getOperation() {\n return this.operation;\n }",
"public Operation getOperation() {\n return this.operation;\n }",
"public String getOperation () {\n return operation;\n }",
"public String getOperation () {\n return operation;\n }",
"public Operation getOperation() {\n return operation;\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.Operation getOperation() {\n return operation_ == null ? com.clarifai.grpc.api.Operation.getDefaultInstance() : operation_;\n }",
"public EAdOperation getOperation() {\r\n\t\treturn operation;\r\n\t}",
"public com.clarifai.grpc.api.Operation getOperation() {\n if (operationBuilder_ == null) {\n return operation_ == null ? com.clarifai.grpc.api.Operation.getDefaultInstance() : operation_;\n } else {\n return operationBuilder_.getMessage();\n }\n }",
"public String getOperation() {return operation;}",
"public Operation getOperation();",
"Operation getOperation();",
"public OperationType getOperation() {\r\n return operation;\r\n }",
"public OperationType getOperation() {\r\n return operation;\r\n }",
"public java.lang.CharSequence getOperation() {\n return Operation;\n }",
"public java.lang.CharSequence getOperation() {\n return operation;\n }",
"public java.lang.CharSequence getOperation() {\n return Operation;\n }",
"public java.lang.CharSequence getOperation() {\n return operation;\n }",
"public String getOperation();",
"public keys getOperation() {\r\n return this.operation;\r\n }",
"public int getOp() {\n\t\treturn op;\n\t}",
"public SegmentaoOperacao getOperation() {\r\n\t\treturn operation;\r\n\t}",
"Operator.Type getOperation();",
"public Operator getOp() {\n return op;\n }",
"public String getOp() {\n return op;\n }",
"public String getOp() {\n return op;\n }",
"@JsonProperty(\"operation\")\n public String getOperation() {\n return operation;\n }",
"public RelationalOp getOp() {\n\t\treturn op;\n\t}",
"String getOperation();",
"String getOperation();",
"public OperationResultInfoBase operation() {\n return this.operation;\n }",
"public com.clarifai.grpc.api.OperationOrBuilder getOperationOrBuilder() {\n if (operationBuilder_ != null) {\n return operationBuilder_.getMessageOrBuilder();\n } else {\n return operation_ == null ?\n com.clarifai.grpc.api.Operation.getDefaultInstance() : operation_;\n }\n }",
"public org.xmlsoap.schemas.wsdl.http.OperationType getOperation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.http.OperationType target = null;\n target = (org.xmlsoap.schemas.wsdl.http.OperationType)get_store().find_element_user(OPERATION$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public String getOperationId() {\n return this.operationId;\n }",
"public String getOperateIp() {\n return operateIp;\n }",
"public Integer getOperationId() {\n return operationId;\n }",
"public final TestOperation getOperation()\n\t{\n\t\treturn operation_;\n\t}",
"String getOp();",
"String getOp();",
"String getOp();",
"@Override\n @NotNull\n public ConverterType getOperation() {\n return this.operation.getConverter();\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.OperationOrBuilder getOperationOrBuilder() {\n return getOperation();\n }",
"public Operation operation() {\n return Operation.fromSwig(alert.getOp());\n }",
"@Override\n\tpublic String operation() {\n\t\treturn adaptee.specificOperation();\n\t}",
"public String getOperatorIp() {\n return operatorIp;\n }",
"org.jetbrains.kotlin.backend.common.serialization.proto.IrOperation getOperation();",
"public int getOperationType() {\r\n return operationType;\r\n }",
"public void setChangeOperation(java.lang.String changeOperation) {\r\n this.changeOperation = changeOperation;\r\n }",
"public String getChangeAction()\r\n\t{\r\n\t\treturn changeAction;\r\n\t}",
"public BindingOperation getBindingOp() {\n return bindingOp;\n }",
"public java.lang.String getOpControl() {\r\n return localOpControl;\r\n }",
"public String getOperationID() {\n\t\treturn operationId;\n\t}",
"public Optional<String> getOperationId() {\n return operationId;\n }",
"public String getModifyOperator() {\n\t\treturn modifyOperator;\n\t}",
"public Long getOperator() {\n return operator;\n }",
"public String getOperationType() {\n\t\treturn this.operationType;\n\t}",
"public String getOperationType() {\r\n return operationType;\r\n }",
"public Operator getOperator()\n {\n return operator;\n }",
"public Long getOpId() {\n return opId;\n }",
"public Long getOpId() {\n return opId;\n }",
"public Long getOpId() {\n return opId;\n }",
"public Long getOpId() {\n return opId;\n }",
"public Operator getOperator() {\n return this.operator;\n }",
"public String getOper() {\n return oper;\n }",
"public String getMatchOperation() {\n return matchOperation;\n }",
"public String getHoursOfOperationId() {\n return this.hoursOfOperationId;\n }",
"public java.lang.String getOperateCode() {\n return operateCode;\n }",
"public java.lang.Integer getOperator() throws java.rmi.RemoteException;",
"public void setOperation(String op) {this.operation = op;}",
"public String getCryptoOperation() {\r\n\t\treturn this.cryptoOperation;\r\n\t}",
"public TypeOperation getOperation(int typeOp){\n for (int i=0; i<tabTypeOp.length; i++){\n if (tabTypeOp[i].getType() == typeOp)\n return tabTypeOp[i];\n }\n return null;\n }",
"java.lang.String getOperationId();",
"EnumOperationType getOperationType();",
"public ShareOperateParm getOperateMsg() {\n\t\treturn operateMsg;\n\t}",
"private Transaction.Operation getOperation(HttpServletRequest req){\n return Transaction.Operation.valueOf(req.getParameter(\"action\").toUpperCase());\n }",
"public static String operationDef()\n {\n read_if_needed_();\n \n return _oper_def;\n }",
"public final Operator operator() {\n return operator;\n }",
"@Override\n protected String operation() {\n Preconditions.checkNotNull(snapshotOperation, \"[BUG] Detected uninitialized operation\");\n return snapshotOperation;\n }",
"public OperatorEnum getOperator() {\n return operator;\n }",
"public @Nullable Op getOp(int address) {\n return getTemplateNode(address).getOp();\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getLastOperation()\n {\n if (!getCvpOperation().isNull())\n {\n com.sybase.afx.json.JsonObject cvpOperation = (com.sybase.afx.json.JsonObject)(com.sybase.afx.json.JsonReader.parse(__cvpOperation.getValue()));\n return (String)cvpOperation.get(\"cvp_name\");\n }\n if (getPendingChange() == 'C')\n {\n }\n else if (getPendingChange() == 'D')\n {\n }\n else if (getPendingChange() == 'U')\n {\n }\n return null;\n }",
"public String getOperator() {\n\t\treturn operator;\n\t}",
"public String getOperator() {\n\t\treturn operator;\n\t}",
"public void setOperation (String Operation);",
"public void setOperation (String operation) {\n this.operation = operation;\n }",
"public void setOperation (String operation) {\n this.operation = operation;\n }",
"public ObservableList<Operation> getOperations() {\n\t\treturn operations;\n\t}",
"@Override\r\n\tpublic int getOperationCode() {\n\t\treturn 8;\r\n\t}",
"public String getFetchOperation() {\r\n return getAttributeAsString(\"fetchOperation\");\r\n }",
"@java.lang.Override\n public int getHjOpId() {\n return hjOpId_;\n }"
]
| [
"0.6263187",
"0.62191504",
"0.62049407",
"0.62049407",
"0.61995405",
"0.61984754",
"0.61373246",
"0.6117219",
"0.6117219",
"0.61061114",
"0.60595095",
"0.6032995",
"0.5976228",
"0.59418327",
"0.5920344",
"0.59106547",
"0.58823955",
"0.58823955",
"0.5864094",
"0.58504206",
"0.58095104",
"0.57818866",
"0.57510054",
"0.57089275",
"0.5696495",
"0.5690291",
"0.5685836",
"0.56794655",
"0.56409174",
"0.56409174",
"0.563538",
"0.5624067",
"0.56202865",
"0.56202865",
"0.55361044",
"0.5528986",
"0.55273104",
"0.5483375",
"0.544997",
"0.5413778",
"0.54108745",
"0.5383889",
"0.5383889",
"0.5383889",
"0.53789896",
"0.5376344",
"0.53500384",
"0.53370976",
"0.5328494",
"0.53057384",
"0.5298392",
"0.52594197",
"0.525405",
"0.5218191",
"0.521177",
"0.5179098",
"0.51159227",
"0.5113291",
"0.50882125",
"0.5077882",
"0.5077544",
"0.50728637",
"0.50613505",
"0.50613505",
"0.50613505",
"0.50613505",
"0.5058705",
"0.5045508",
"0.5006364",
"0.4986561",
"0.49850714",
"0.49300897",
"0.49104685",
"0.4878736",
"0.48723057",
"0.48575142",
"0.48557556",
"0.48510712",
"0.48389822",
"0.48093218",
"0.4804352",
"0.47982264",
"0.479374",
"0.47935545",
"0.47935367",
"0.47935367",
"0.47935367",
"0.47935367",
"0.47935367",
"0.47935367",
"0.47894377",
"0.47778785",
"0.47778785",
"0.47758853",
"0.4775041",
"0.4775041",
"0.477501",
"0.4771336",
"0.47668126",
"0.4761748"
]
| 0.67946184 | 0 |
Sets the changeOperation value for this HostIpRouteOp. | public void setChangeOperation(java.lang.String changeOperation) {
this.changeOperation = changeOperation;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOperation(Operation operation) {\n this.operation = operation;\n }",
"public void setOperation(OperationType operation) {\r\n this.operation = operation;\r\n }",
"public void setOperation(OperationType operation) {\r\n this.operation = operation;\r\n }",
"public void setOperation (String Operation);",
"public void setOperation(String operation) {\n\t\t\tthis.operation = operation;\n\t\t}",
"public void setOperation(String operation) {\r\n\t\tthis.operation = operation;\r\n\t}",
"public void setOperation(String operation) {\n this.operation = operation;\n }",
"public void setOperation(String operation) {\n this.operation = operation;\n }",
"public void setOperation(String aOperation) {\n operation = aOperation;\n }",
"public void setOperation(String aOperation) {\n operation = aOperation;\n }",
"public void setOperation(final OperationMetadata newValue) {\n checkWritePermission();\n this.operation = newValue;\n }",
"public void setOperation (String operation) {\n this.operation = operation;\n }",
"public void setOperation (String operation) {\n this.operation = operation;\n }",
"public void setOperation(org.xmlsoap.schemas.wsdl.http.OperationType operation)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.http.OperationType target = null;\n target = (org.xmlsoap.schemas.wsdl.http.OperationType)get_store().find_element_user(OPERATION$0, 0);\n if (target == null)\n {\n target = (org.xmlsoap.schemas.wsdl.http.OperationType)get_store().add_element_user(OPERATION$0);\n }\n target.set(operation);\n }\n }",
"public void setOperation(EAdOperation operation) {\r\n\t\tthis.operation = operation;\r\n\t}",
"public void setOperation(String op) {this.operation = op;}",
"public void setOp(int op) {\n\t\tthis.op = op;\n\t}",
"public void setOperateIp(String operateIp) {\n this.operateIp = operateIp == null ? null : operateIp.trim();\n }",
"public void setOp(Operator op) {\n this.op = op;\n }",
"public void setBindingOp(BindingOperation bindingOp) {\n this.bindingOp = bindingOp;\n }",
"public void setOperation(ArangoDbOperation operation) {\n this.operation = operation;\n }",
"public com.autodesk.ws.avro.Call.Builder setOperation(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.operation = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"public void setModifyOperator(String modifyOperator) {\n\t\tthis.modifyOperator = modifyOperator == null ? null : modifyOperator\n\t\t\t\t.trim();\n\t}",
"public java.lang.String getChangeOperation() {\r\n return changeOperation;\r\n }",
"public void setChangeAction(String changeAction)\r\n\t{\r\n\t\tthis.changeAction = changeAction;\r\n\t}",
"public void setOperator(java.lang.Integer newOperator)\n\t\tthrows java.rmi.RemoteException;",
"public void setOp(String op) {\n this.op = op;\n }",
"public void setOp(String op) {\n this.op = op == null ? null : op.trim();\n }",
"public void setOperation(java.lang.CharSequence value) {\n this.Operation = value;\n }",
"public Builder setOperation(com.clarifai.grpc.api.Operation value) {\n if (operationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n operation_ = value;\n onChanged();\n } else {\n operationBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void setOpControl(java.lang.String param) {\r\n localOpControlTracker = param != null;\r\n\r\n this.localOpControl = param;\r\n }",
"public void setOperation(java.lang.CharSequence value) {\n this.operation = value;\n }",
"public sparqles.avro.discovery.DGETInfo.Builder setOperation(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.Operation = value;\n fieldSetFlags()[1] = true;\n return this; \n }",
"public void setOperatorIp(String operatorIp) {\n this.operatorIp = operatorIp == null ? null : operatorIp.trim();\n }",
"@Override\n public void setOperation(@Nullable ConverterType operationData) {\n if (operationData != null) {\n operation.setConverter(operationData);\n }\n }",
"public void setChangeTo(String changeTo) {\n\t\t\tthis.changeTo = checkAndPad(changeTo);\n\t\t}",
"public void setMatchOperation(String matchOperation) {\n this.matchOperation = matchOperation;\n }",
"@Override\n\t\tpublic void ipChange() {\n\t\t\t\n\t\t}",
"public synchronized void setOpLock(OpLockDetails oplock)\n\t\tthrows ExistingOpLockException {\n\n\t\tsuper.setOpLock( oplock);\n\n\t\t// Set the state cache for the remote oplock\n\t\t\n\t\tif ( oplock instanceof RemoteOpLockDetails) {\n\t\t\tRemoteOpLockDetails remoteOplock = (RemoteOpLockDetails) getOpLock();\n\t\t\tremoteOplock.setStateCache( getStateCache());\n\t\t}\n\t}",
"@JsonProperty(\"operation\")\n public String getOperation() {\n return operation;\n }",
"public final synchronized void setOpLock(OpLockDetails oplock)\n\t\tthrows ExistingOpLockException {\n\n\t\tif ( m_oplock == null)\n\t\t\tm_oplock = oplock;\n\t\telse\n\t\t\tthrow new ExistingOpLockException();\n\t}",
"public void setOperationId(Integer operationId) {\n this.operationId = operationId;\n }",
"public void setSwitchIpAddress(java.lang.String switchIpAddress) {\r\n this.switchIpAddress = switchIpAddress;\r\n }",
"public String getOperation() {\n\t\t\treturn operation;\n\t\t}",
"public String getOperation() {\r\n\t\treturn operation;\r\n\t}",
"public String getOperation() {\n\t\treturn operation;\n\t}",
"public void setOperationDesc(String operationDesc) {\r\n this.operationDesc = operationDesc == null ? null : operationDesc.trim();\r\n }",
"public void setOpcode(short op);",
"public void setCommentOp(String commentOp) {\n this.commentOp = commentOp;\n }",
"public String getOperation() {\n return this.operation;\n }",
"public void setOpTime(Date opTime) {\n this.opTime = opTime;\n }",
"public static void setDatabaseOperation(DatabaseOperation db) {\n\t\tdatabaseOperation = db;\n\t}",
"public void setOperationId(String operationId) {\n this.operationId = operationId;\n }",
"private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }",
"@When(\"^click on \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void click_on(String operation) throws Throwable {\n\t\toperator = operation;\r\n\t}",
"public String getOperation() {\n return operation;\n }",
"public String getOperation() {\n return operation;\n }",
"public void setOp ( boolean value ) {\n\t\texecute ( handle -> handle.setOp ( value ) );\n\t}",
"public void setOperationType(String operationType) {\r\n this.operationType = operationType == null ? null : operationType.trim();\r\n }",
"public void setOperator(String operator) {\n\t\tthis.operator = operator == null ? null : operator.trim();\n\t}",
"public void setOperator(String operator) {\n\t\tthis.operator = operator == null ? null : operator.trim();\n\t}",
"public void setAPIOperation(APIOperation apiOperation)\n {\n this.apiOperation = apiOperation;\n }",
"public void setOperator(int opr) {\n this.operator = opr;\n }",
"public void setOper(String oper) {\n this.oper = oper;\n }",
"public Builder setOperation(\n com.clarifai.grpc.api.Operation.Builder builderForValue) {\n if (operationBuilder_ == null) {\n operation_ = builderForValue.build();\n onChanged();\n } else {\n operationBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public void setOperator( java.lang.Integer newValue ) {\n __setCache(\"operator\", newValue);\n }",
"public String getOperation() {return operation;}",
"public void setOperationType(int value) {\r\n this.operationType = value;\r\n }",
"public void setOperator(com.hps.july.persistence.Operator arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOperator(arg0);\n }",
"@objid (\"f604cc17-9920-4a0a-a7d0-2659ddf966f4\")\n void setOBase(Operation value);",
"public void setOp(boolean value) {}",
"public void setHoursOfOperationId(String hoursOfOperationId) {\n this.hoursOfOperationId = hoursOfOperationId;\n }",
"public ChangeFieldEf( EAdField<?> field,\r\n\t\t\tEAdOperation operation) {\r\n\t\tsuper();\r\n\t\tsetId(\"changeField\");\r\n\t\tthis.fields = new EAdListImpl<EAdField<?>>(EAdField.class);\r\n\t\tif (field != null)\r\n\t\t\tfields.add(field);\r\n\t\tthis.operation = operation;\r\n\t}",
"public void setOperator(java.lang.Integer newValue) {\n\tthis.operator = newValue;\n}",
"public void setOperator(String operator) {\n this.operator = operator == null ? null : operator.trim();\n }",
"public void setOperator(String operator) {\n this.operator = operator == null ? null : operator.trim();\n }",
"public void setOperator(String operator) {\n this.operator = operator == null ? null : operator.trim();\n }",
"public void setOperator(String operator) {\n this.operator = operator == null ? null : operator.trim();\n }",
"public void setFanOperation(String fanOperation) {\n this.fanOperation = fanOperation == null ? null : fanOperation.trim();\n }",
"public static void setCostPerOp(){\n\t\tcostPerOp.put(\"~\",1.0);\n\t\tcostPerOp.put(\"&\",1.0);\n\t\tcostPerOp.put(\"@\",1.0);\n\t\tcostPerOp.put(\"+\",1.0);\n\t\tcostPerOp.put(\"^\",1.0);\n\t\tcostPerOp.put(\".\",1.0);\n\t\tcostPerOp.put(\"=\",1.0);\n\t}",
"public CreatePricingRuleRequest withOperation(String operation) {\n setOperation(operation);\n return this;\n }",
"public void put(String opName, EditableWSDLOperation ptOp) {\n/* 76 */ this.portTypeOperations.put(opName, ptOp);\n/* */ }",
"public void setAxisOperation(org.apache.axis2.description.xsd.AxisOperation param){\n localAxisOperationTracker = true;\n \n this.localAxisOperation=param;\n \n\n }",
"void setDeprecated(Operation operation, Method method);",
"public String getOperation () {\n return operation;\n }",
"public String getOperation () {\n return operation;\n }",
"void setTrafficControl(org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl trafficControl);",
"public void setFetchOperation(String fetchOperation) {\r\n setAttribute(\"fetchOperation\", fetchOperation, false);\r\n }",
"public void setWorkPlace(WorkPlaceC2A workPlace)\r\n\t{\r\n\t\tthis.workPlace = workPlace;\r\n\t}",
"public SegmentacaoAbstrata(SegmentaoOperacao operation) {\r\n\t\tthis.operation = operation;\r\n\t}",
"public static void set_OperationDef(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaOperationDefCmd, v);\n UmlCom.check();\n \n _oper_def = v;\n \n }",
"public ConditionalGroupRoutingRule operator(OperatorEnum operator) {\n this.operator = operator;\n return this;\n }",
"public void setPreOperation(OperationConf oc) {\n preOperation = oc;\n }",
"public void setOperTime(String operTime) {\r\n\t\tthis.operTime = operTime;\r\n\t}",
"public void setLaneChange(java.lang.Boolean value);",
"@Property(\"triggerAction\")\n void setTriggerAction(String triggerAction);",
"@java.lang.Override\n public com.clarifai.grpc.api.Operation getOperation() {\n return operation_ == null ? com.clarifai.grpc.api.Operation.getDefaultInstance() : operation_;\n }",
"@Override\n\tpublic void setOperateur(String operateur) {\n\t\tcalcul();\n\t\tthis.operateur = operateur;\n\t\tif (!operateur.equals(\"=\"))\n\t\t\tthis.operande = \"\";\n\t}",
"public java.lang.CharSequence getOperation() {\n return Operation;\n }",
"public void setOperator(Long operator) {\n this.operator = operator;\n }"
]
| [
"0.57139236",
"0.55487597",
"0.55487597",
"0.5530415",
"0.55032957",
"0.5380094",
"0.53754246",
"0.53754246",
"0.5373167",
"0.5373167",
"0.5363493",
"0.5360921",
"0.5360921",
"0.5328533",
"0.53279716",
"0.5240058",
"0.5092996",
"0.50326455",
"0.49734882",
"0.495319",
"0.49470428",
"0.49341124",
"0.48798746",
"0.48628345",
"0.48569003",
"0.48032045",
"0.475793",
"0.474223",
"0.47181964",
"0.46878904",
"0.46835396",
"0.46747348",
"0.461224",
"0.4581537",
"0.4526152",
"0.4512509",
"0.44734293",
"0.44662267",
"0.43821335",
"0.43721622",
"0.4357577",
"0.43219098",
"0.43214458",
"0.43143392",
"0.4279972",
"0.42788717",
"0.42448282",
"0.42409143",
"0.4227258",
"0.422446",
"0.42146268",
"0.42136326",
"0.4211361",
"0.42013627",
"0.41941229",
"0.41717315",
"0.41717315",
"0.41560236",
"0.4150279",
"0.41492283",
"0.41492283",
"0.41310406",
"0.4124518",
"0.41131705",
"0.41076294",
"0.4105394",
"0.40999871",
"0.40999275",
"0.40988103",
"0.4094812",
"0.4092885",
"0.409143",
"0.40736622",
"0.40501875",
"0.40472093",
"0.40472093",
"0.40472093",
"0.40472093",
"0.40445474",
"0.40305552",
"0.40295282",
"0.4024244",
"0.40067723",
"0.40022552",
"0.39942926",
"0.39942926",
"0.39874652",
"0.39855516",
"0.3969912",
"0.39639443",
"0.39614347",
"0.39579925",
"0.39476576",
"0.39385805",
"0.39289263",
"0.39274487",
"0.39246792",
"0.39213425",
"0.39089015",
"0.3906249"
]
| 0.6234239 | 0 |
Gets the route value for this HostIpRouteOp. | public com.vmware.converter.HostIpRouteEntry getRoute() {
return route;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRoute() {\n return route;\n }",
"public java.lang.String getRoute () {\n\t\treturn route;\n\t}",
"@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.RouteInfo getRoute() {\n if (routeBuilder_ == null) {\n if (stepInfoCase_ == 7) {\n return (com.google.cloud.networkmanagement.v1beta1.RouteInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.RouteInfo.getDefaultInstance();\n } else {\n if (stepInfoCase_ == 7) {\n return routeBuilder_.getMessage();\n }\n return com.google.cloud.networkmanagement.v1beta1.RouteInfo.getDefaultInstance();\n }\n }",
"public int getRouteId() {\n return routeId;\n }",
"io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Route getRoute();",
"public Route getRoute();",
"@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.RouteInfo getRoute() {\n if (stepInfoCase_ == 7) {\n return (com.google.cloud.networkmanagement.v1beta1.RouteInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.RouteInfo.getDefaultInstance();\n }",
"public String getRouteid() {\r\n return routeid;\r\n }",
"public ShareRouteParm getRouteMsg() {\n\t\treturn routeMsg;\n\t}",
"String getRouteID();",
"public Long getRouteid() {\n return routeid;\n }",
"@Override\r\n public Route getRoute() {\r\n return this.route;\r\n }",
"public String getRoutePoint() {\n\t\t\treturn routePoint;\n\t\t}",
"public AKeyCallPoint getRoutePoint() {\n\t\t\treturn routePoint;\n\t\t}",
"com.google.protobuf.ByteString\n getRouteDestBytes();",
"public String getRouteDest() {\n Object ref = routeDest_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n routeDest_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"String getRouteDest();",
"public String getRouteDest() {\n Object ref = routeDest_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n routeDest_ = s;\n }\n return s;\n }\n }",
"public String getRoutingNo();",
"public String getDestination(){\r\n\t\treturn route.getDestination();\r\n\t}",
"public Integer getRoutingId() {\n return routingId;\n }",
"public int getTotalRouteCost() {\n return totalRouteCost;\n }",
"java.lang.String getRoutingKey();",
"java.lang.String getDestinationIp();",
"public String getRouteName() {\n return routeName;\n }",
"@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.RouteInfoOrBuilder getRouteOrBuilder() {\n if ((stepInfoCase_ == 7) && (routeBuilder_ != null)) {\n return routeBuilder_.getMessageOrBuilder();\n } else {\n if (stepInfoCase_ == 7) {\n return (com.google.cloud.networkmanagement.v1beta1.RouteInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.RouteInfo.getDefaultInstance();\n }\n }",
"public com.google.protobuf.ByteString\n getRouteDestBytes() {\n Object ref = routeDest_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n routeDest_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getRouteDestBytes() {\n Object ref = routeDest_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n routeDest_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.RouteInfoOrBuilder getRouteOrBuilder() {\n if (stepInfoCase_ == 7) {\n return (com.google.cloud.networkmanagement.v1beta1.RouteInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.RouteInfo.getDefaultInstance();\n }",
"public Route[] getRoute() {\n\t\tsynchronized(this) {\n\t\t\treturn Route.makeCopy(route);\n\t\t}\n\t}",
"public String getRouteType() {\n return routeType;\n }",
"io.envoyproxy.envoy.type.metadata.v3.MetadataKind.RouteOrBuilder getRouteOrBuilder();",
"McastRouteData getRouteData(McastRoute route);",
"public long getRouteStepKey() {\n\t\treturn routeStepKey;\n\t}",
"public java.lang.String getDestinationIp() {\n java.lang.Object ref = destinationIp_;\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 destinationIp_ = s;\n return s;\n }\n }",
"public Object getRouting() {\n return this.routing;\n }",
"public java.lang.String getDestinationIp() {\n java.lang.Object ref = destinationIp_;\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 destinationIp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setRoute(com.vmware.converter.HostIpRouteEntry route) {\r\n this.route = route;\r\n }",
"public Address getNextHop()\n {\n return (Address)route.get(getHopCount()+1);\n }",
"Route getRouteById(Long id_route) throws RouteNotFoundException;",
"public java.math.BigInteger getFrequencyOfRoute() {\r\n return frequencyOfRoute;\r\n }",
"public Integer getDestination() {\n\t\treturn new Integer(destination);\n\t}",
"public String routingKey();",
"public String getIp() {\n return (String) get(24);\n }",
"public int getIp() {\n return instance.getIp();\n }",
"public int getIp() {\n return instance.getIp();\n }",
"public int getIp() {\n return ip_;\n }",
"public int getIp() {\n return ip_;\n }",
"public int getIp() {\n return ip_;\n }",
"public int getIp() {\n return ip_;\n }",
"private myPoint getNextRoute(){\n\t\ttry {\n\t\t\treturn this.Route.take();\n\t\t} catch (InterruptedException e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public java.lang.String getSwitchIpAddress() {\r\n return switchIpAddress;\r\n }",
"RouteBean findRouteId(String routeID);",
"com.google.protobuf.ByteString\n getDestinationIpBytes();",
"public String getIp() {\n\t\treturn ip.getText();\n\t}",
"public String getIp() {\n return getIpString(inetAddress);\n }",
"com.google.protobuf.ByteString\n getRoutingKeyBytes();",
"public java.lang.String getIp() {\n java.lang.Object ref = ip_;\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 ip_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getIp() {\n java.lang.Object ref = ip_;\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 ip_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getIp() {\n java.lang.Object ref = ip_;\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 ip_ = s;\n }\n return s;\n }\n }",
"public String getIp() {\n Object ref = ip_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n ip_ = s;\n return s;\n }\n }",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"public String getIp() {\n Object ref = ip_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n ip_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public java.lang.String getIP() {\r\n return IP;\r\n }",
"public String getIP() {\n return this.IP;\n }",
"String getDestIpAddress() {\n return destIpAddress;\n }",
"public java.lang.String getIp() {\n java.lang.Object ref = ip_;\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 ip_ = s;\n return s;\n }\n }",
"java.lang.String getAgentIP();",
"public int getRoutingAppID() {\n return routingAppID_;\n }",
"public int getRoutingAppID() {\n return routingAppID_;\n }",
"public com.google.protobuf.ByteString\n getDestinationIpBytes() {\n java.lang.Object ref = destinationIp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n destinationIp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public google.maps.fleetengine.v1.TripWaypoint getCurrentRouteSegmentEndPoint() {\n if (currentRouteSegmentEndPointBuilder_ == null) {\n return currentRouteSegmentEndPoint_ == null ? google.maps.fleetengine.v1.TripWaypoint.getDefaultInstance() : currentRouteSegmentEndPoint_;\n } else {\n return currentRouteSegmentEndPointBuilder_.getMessage();\n }\n }",
"public java.lang.String getIp() {\n java.lang.Object ref = ip_;\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 ip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getIp() {\n java.lang.Object ref = ip_;\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 ip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getIp() {\n java.lang.Object ref = ip_;\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 ip_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public RouteResponse findRouteTime(RouteRequest routeRequest);",
"public String getOrigin(){\r\n\t\treturn route.getOrigin();\r\n\t}",
"public com.google.protobuf.ByteString\n getDestinationIpBytes() {\n java.lang.Object ref = destinationIp_;\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 destinationIp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public java.lang.String getIp() {\n java.lang.Object ref = ip_;\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 ip_ = s;\n return s;\n }\n }",
"public int getAddr() {\n return addr_;\n }",
"public java.lang.String getIp() {\n java.lang.Object ref = ip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n ip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getIp() {\n java.lang.Object ref = ip_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n ip_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"private static String getRoute(String route){\n\t\tString link = (isLocal ? url_local : url_prod) + route;\n\t\treturn link;\n\t}",
"public java.lang.String getIp() {\r\n return ip;\r\n }",
"public String getEndpoint(Rule rule) {\n Constraint constraint = rule.getConstraint().get(0);\n return constraint.getRightOperand().getValue();\n }",
"public com.google.cloud.networkmanagement.v1beta1.RouteInfo.Builder getRouteBuilder() {\n return getRouteFieldBuilder().getBuilder();\n }",
"public String getOperatorIp() {\n return operatorIp;\n }",
"@java.lang.Override\n public google.maps.fleetengine.v1.TripWaypoint getCurrentRouteSegmentEndPoint() {\n return currentRouteSegmentEndPoint_ == null ? google.maps.fleetengine.v1.TripWaypoint.getDefaultInstance() : currentRouteSegmentEndPoint_;\n }",
"int getDestinationPort() {\n return this.resolvedDestination.destinationPort;\n }",
"public List<Tile> getRoute() {\n List<Tile> currentRoute = new ArrayList<Tile>();\n for (int i = 0; i < route.size(); i++) {\n currentRoute.add(route.get(i));\n }\n return currentRoute;\n }",
"public String get()\r\n\t{\r\n\t\tignoreIpAddress = ignoreIpAddressService.getIgnoreIpAddress(id, false);\r\n\t\treturn \"get\";\r\n\t}",
"public String getIp() {\r\n return ip;\r\n }",
"public int getAddr() {\n return addr_;\n }"
]
| [
"0.64498746",
"0.6370806",
"0.6144719",
"0.6142357",
"0.61281043",
"0.60312414",
"0.601599",
"0.5960937",
"0.5956554",
"0.587403",
"0.5851939",
"0.5848332",
"0.58001053",
"0.5768938",
"0.56986505",
"0.5611055",
"0.560677",
"0.5600572",
"0.5599674",
"0.556124",
"0.5482772",
"0.54729164",
"0.54692525",
"0.5464641",
"0.5421593",
"0.53949565",
"0.53661716",
"0.53652155",
"0.5355474",
"0.53424597",
"0.53019094",
"0.52562785",
"0.52489364",
"0.52362984",
"0.523393",
"0.52329737",
"0.523019",
"0.5172942",
"0.5161536",
"0.51533747",
"0.5151478",
"0.50850946",
"0.5079437",
"0.5069986",
"0.5004919",
"0.5004919",
"0.4992366",
"0.4992366",
"0.4992366",
"0.49649426",
"0.49609408",
"0.49488038",
"0.49478048",
"0.49029222",
"0.48674455",
"0.4866417",
"0.4830902",
"0.48204163",
"0.48204163",
"0.48204163",
"0.48157644",
"0.48151758",
"0.48151758",
"0.48151758",
"0.48151758",
"0.48151758",
"0.48151758",
"0.48151758",
"0.48151758",
"0.4800939",
"0.48000836",
"0.47917327",
"0.47813785",
"0.47772852",
"0.47769588",
"0.47697082",
"0.47665834",
"0.47643805",
"0.47598848",
"0.47580263",
"0.47572097",
"0.4753867",
"0.47518656",
"0.47500247",
"0.47490463",
"0.47442338",
"0.4743069",
"0.4741271",
"0.4741271",
"0.47410354",
"0.4738242",
"0.47369125",
"0.473367",
"0.4723179",
"0.47198775",
"0.4717728",
"0.47176778",
"0.4716763",
"0.47065744",
"0.470516"
]
| 0.7511105 | 0 |
Sets the route value for this HostIpRouteOp. | public void setRoute(com.vmware.converter.HostIpRouteEntry route) {
this.route = route;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRoute(Route route) {\n this.route = route;\n }",
"void setRoute(String routeID);",
"public void setRoute(String route) {\n this.route = route == null ? null : route.trim();\n }",
"void setRoute(Shape route);",
"public void setRoute (java.lang.String route) {\n\t\tthis.route = route;\n\t}",
"public void setRoute(List route) \n {\n this.route = route;\n }",
"public Builder setRoute(com.google.cloud.networkmanagement.v1beta1.RouteInfo value) {\n if (routeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n stepInfo_ = value;\n onChanged();\n } else {\n routeBuilder_.setMessage(value);\n }\n stepInfoCase_ = 7;\n return this;\n }",
"public RouteInterface setUri(String uri);",
"public Builder setRoute(\n com.google.cloud.networkmanagement.v1beta1.RouteInfo.Builder builderForValue) {\n if (routeBuilder_ == null) {\n stepInfo_ = builderForValue.build();\n onChanged();\n } else {\n routeBuilder_.setMessage(builderForValue.build());\n }\n stepInfoCase_ = 7;\n return this;\n }",
"public void setRoutePoint(AKeyCallPoint routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}",
"public void setRouteId(int routeId) {\n this.routeId = routeId;\n }",
"public void setRouteMsg(ShareRouteParm routeMsg) {\n\t\tthis.routeMsg = routeMsg;\n\t}",
"public com.vmware.converter.HostIpRouteEntry getRoute() {\r\n return route;\r\n }",
"public void replace(Route route) {\n update(route);\n }",
"public void setExplicitRoute(Path route) {\r\n\t\tthis.explicitRoute = route;\r\n\t}",
"public Builder setRouteDest(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n routeDest_ = value;\n onChanged();\n return this;\n }",
"private void setIp(int value) {\n \n ip_ = value;\n }",
"private void setIp(int value) {\n \n ip_ = value;\n }",
"public void setRoutePoint(String routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}",
"public Builder setRouteDestBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n routeDest_ = value;\n onChanged();\n return this;\n }",
"public RouteInterface setName(String name);",
"@java.lang.Deprecated public Builder setRoute(\n int index, google.maps.fleetengine.v1.TerminalLocation value) {\n if (routeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRouteIsMutable();\n route_.set(index, value);\n onChanged();\n } else {\n routeBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public void setRoutingNo (String RoutingNo);",
"public void setAlternateRoute(short trainId, TrainRoute r) {\n\t\ttrainRoutes.put(trainId, r);\n\t}",
"public void setRouteid(String routeid) {\r\n this.routeid = routeid;\r\n }",
"public void setFrequencyOfRoute(java.math.BigInteger frequencyOfRoute) {\r\n this.frequencyOfRoute = frequencyOfRoute;\r\n }",
"void storeRoute(McastRoute route);",
"@Override\n public void setDefaultRoutePortId(String ipAddress, int portId) {\n }",
"void setRoutes(List<RouteType> routes);",
"private void installRoute(List<NodePortTuple> path, OFMatch match) {\r\n\r\n\t\tOFMatch m = new OFMatch();\r\n\r\n\t\tm.setDataLayerType(Ethernet.TYPE_IPv4)\r\n\t\t\t\t.setNetworkSource(match.getNetworkSource())\r\n\t\t\t\t.setNetworkDestination(match.getNetworkDestination());\r\n\r\n\t\tfor (int i = 0; i <= path.size() - 1; i += 2) {\r\n\t\t\tshort inport = path.get(i).getPortId();\r\n\t\t\tm.setInputPort(inport);\r\n\t\t\tList<OFAction> actions = new ArrayList<OFAction>();\r\n\t\t\tOFActionOutput outport = new OFActionOutput(path.get(i + 1)\r\n\t\t\t\t\t.getPortId());\r\n\t\t\tactions.add(outport);\r\n\r\n\t\t\tOFFlowMod mod = (OFFlowMod) floodlightProvider\r\n\t\t\t\t\t.getOFMessageFactory().getMessage(OFType.FLOW_MOD);\r\n\t\t\tmod.setCommand(OFFlowMod.OFPFC_ADD)\r\n\t\t\t\t\t.setIdleTimeout((short) 0)\r\n\t\t\t\t\t.setHardTimeout((short) 0)\r\n\t\t\t\t\t.setMatch(m)\r\n\t\t\t\t\t.setPriority((short) 105)\r\n\t\t\t\t\t.setActions(actions)\r\n\t\t\t\t\t.setLength(\r\n\t\t\t\t\t\t\t(short) (OFFlowMod.MINIMUM_LENGTH + OFActionOutput.MINIMUM_LENGTH));\r\n\t\t\tflowPusher.addFlow(\"routeFlow\" + uniqueFlow, mod,\r\n\t\t\t\t\tHexString.toHexString(path.get(i).getNodeId()));\r\n\t\t\tuniqueFlow++;\r\n\t\t}\r\n\t}",
"public Builder setCurrentRouteSegment(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n currentRouteSegment_ = value;\n onChanged();\n return this;\n }",
"public Builder setCurrentRouteSegmentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n currentRouteSegment_ = value;\n onChanged();\n return this;\n }",
"public void setRouteid(Long routeid) {\n this.routeid = routeid;\n }",
"public void setHostAddress(int value) {\n this.hostAddress = value;\n }",
"boolean updateRoute(RouteBean route);",
"public void setHost(String host) throws IllegalArgumentException,\n SipParseException {\n \n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"setHost() \" + host);\n Via via=(Via)sipHeader;\n if ( host==null )\n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: host argument is null\");\n else via.setHost(host); \n }",
"public void setHost(InetAddress host) throws IllegalArgumentException,\n SipParseException{\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"setHost() \" + host);\n Via via=(Via)sipHeader;\n \n if (host==null)\n throw new IllegalArgumentException\n (\"JAIN-SIP EXCEPTION: host is null\");\n else {\n String hname = host.getHostAddress();\n gov.nist.sip.net.Host h = new gov.nist.sip.net.Host();\n h.setHostAddress(hname);\n via.setHost(h);\n }\n }",
"void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);",
"public Builder setCurrentRouteSegmentEndPoint(google.maps.fleetengine.v1.TripWaypoint value) {\n if (currentRouteSegmentEndPointBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n currentRouteSegmentEndPoint_ = value;\n onChanged();\n } else {\n currentRouteSegmentEndPointBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void setRouteType(String x)\n {\n this.routeType = x;\n }",
"public Builder setDestinationIp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n destinationIp_ = value;\n onChanged();\n return this;\n }",
"public void setHost(HostAgent host){\n\tthis.host = host;\n }",
"public void setIp(String value) {\n set(24, value);\n }",
"public void setRoutes(RouteDescriptor[] routes) {\n mRoutes = routes;\n mBundle.putParcelableArray(KEY_ROUTES, RouteDescriptor.toParcelableArray(routes));\n }",
"public void setTotalRouteCost(int totalRouteCost) {\n this.totalRouteCost = totalRouteCost;\n }",
"Long addRoute(Route route);",
"public ShareRouteParm() {\n\t\t\tname = \"\";\n\t\t\tstart = \"\";\n\t\t\tend = \"\";\n\t\t\troutePoint = \"\";\n\t\t\tavoidPoint = \"\";\n\t\t\tconditionCode = -1;\n\t\t\taviodCondition = -1;\n\t\t\tforbidCondition = -1;\n\t\t\ttarget = -1;\n\t\t\tmapVer = \"\";\n\t\t}",
"public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }",
"public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }",
"public String getRoute() {\n return route;\n }",
"@java.lang.Deprecated public Builder setRoute(\n int index, google.maps.fleetengine.v1.TerminalLocation.Builder builderForValue) {\n if (routeBuilder_ == null) {\n ensureRouteIsMutable();\n route_.set(index, builderForValue.build());\n onChanged();\n } else {\n routeBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public void set(int addr, byte val) throws ProgramException {\n getSegment(addr, false).set(addr, val);\n }",
"public void makePublic(String route) throws IOException {\n if (!hasRoute(route)) {\n throw new IllegalArgumentException(ROUTE+route+NOT_FOUND);\n }\n ServiceDef service = registry.get(route);\n if (service == null) {\n throw new IllegalArgumentException(ROUTE+route+NOT_FOUND);\n }\n if (service.isPrivate()) {\n // set it to public\n service.setPrivate(false);\n log.info(\"Converted {} to PUBLIC\", route);\n advertiseRoute(route);\n }\n }",
"public RouteInterface setCompiledPath(Pattern compiledPath);",
"public final void setDescriptor(RouteProviderDescriptor descriptor) {\n if (descriptor == null) {\n throw new IllegalArgumentException(\"descriptor must not be null\");\n }\n MediaRouter.checkCallingThread();\n \n if (mDescriptor != descriptor) {\n mDescriptor = descriptor;\n if (!mPendingDescriptorChange) {\n mPendingDescriptorChange = true;\n mHandler.sendEmptyMessage(MSG_DELIVER_DESCRIPTOR_CHANGED);\n }\n }\n }",
"public void update(Route route) {\n synchronized (this) {\n Route oldRoute = routes.put(route.prefix(), route);\n\n // No need to proceed if the new route is the same\n if (route.equals(oldRoute)) {\n return;\n }\n\n routeTable.put(RouteTools.createBinaryString(route.prefix()), route);\n\n notifyDelegate(new InternalRouteEvent(\n InternalRouteEvent.Type.ROUTE_ADDED, singletonRouteSet(route)));\n }\n }",
"@Override\n void setRoute() throws ItemTooHeavyException {\n deliveryItem = tube.pop();\n if (deliveryItem.weight > itemWeightLimit) throw new ItemTooHeavyException();\n // Set the destination floor\n destination_floor = deliveryItem.getDestFloor();\n }",
"public Builder setIp(int value) {\n bitField0_ |= 0x00000100;\n ip_ = value;\n onChanged();\n return this;\n }",
"private void resetRoute() {\n\t\troute = new Route[] {new Route(distanceMatrix)};\n\t\ttotalCost = 0;\n\t}",
"void setLocation( final Location location, final Bitmap topImageBitmap, final Bitmap logo, final Route route )\n {\n resetRouteInfoView();\n\n mLocation = location;\n mVenueImageBitmap = topImageBitmap;\n final String locationName = mLocation.getName();\n\n mTitleTextView.setText(locationName);\n mShowRouteButton.setText(mContext.getString(R.string.toolbar_label_directions));\n\n String openinghours = getFieldValue(\"openinghours\", mLocation);\n String phone = getFieldValue(\"phone\", mLocation);\n String website = getFieldValue(\"website\", mLocation);\n final String imageUrl = (String)location.getProperty( LocationPropertyNames.IMAGE_URL );\n\n mLocationImageUrl = imageUrl;\n\n loadTopImage(imageUrl, topImageBitmap);\n\n final ArrayList<IconTextElement> elements = new ArrayList<>();\n\n //\n mLastRouteDestinationLocation = mLocation;\n mLastRouteOriginLocation = mMapControl.getCurrentPosition();\n\n addElement(elements, openinghours, \"\", R.drawable.ic_access_time_white_24dp, IconTextListAdapter.Objtype.OPENINGHOURS);\n addElement(elements, phone, \"\", R.drawable.ic_phone_white_24dp, IconTextListAdapter.Objtype.PHONE);\n addElement(elements, website, \"\", R.drawable.ic_web, IconTextListAdapter.Objtype.URL);\n\n //\n\n String[] catNames = MapsIndoorsHelper.getLocationCategoryNames( mLocation );\n if( catNames.length > 0 )\n {\n String poiType = catNames[0].trim();\n String roomId = mLocation.getRoomId();\n String poiInfo = !TextUtils.isEmpty( roomId )\n ? (poiType + \"\\n\" + roomId.trim())\n : (poiType);\n\n addElement(elements, poiInfo, \"\", R.drawable.ic_info_poi_type_24dp, IconTextListAdapter.Objtype.PLACE);\n }\n\n //\n final String locationPlace = MapsIndoorsHelper.composeLocationInfoString(\n mActivity,\n mLocation,\n mActivity.getBuildingCollection(),\n mActivity.getVenueCollection()\n );\n addElement( elements, locationPlace, \"\", R.drawable.ic_location_city_white_24dp, IconTextListAdapter.Objtype.PLACE );\n\n //\n final String locationDescription = mLocation.getStringProperty( LocationPropertyNames.DESCRIPTION );\n addElement(elements, locationDescription, \"\", R.drawable.ic_description_white_24px, IconTextListAdapter.Objtype.PLACE);\n\n // calculate the distance to the destination\n distanceEstimation();\n\n myAdapter = new IconTextListAdapter( mContext );\n myAdapter.setTint( \"@color/primary\" );\n myAdapter.setList( elements );\n mMainMenuList.setAdapter( myAdapter );\n }",
"@Override\n\tpublic void set(SocketAddress v) {\n\t\tsuper.set(Objects.requireNonNull(v));\n\t}",
"public Builder clearRouteDest() {\n bitField0_ = (bitField0_ & ~0x00000100);\n routeDest_ = getDefaultInstance().getRouteDest();\n onChanged();\n return this;\n }",
"public final void setWaypoint(AbstractWaypoint value) {\n this.waypointProperty().setValue(value);\n }",
"public Builder setIp(int value) {\n copyOnWrite();\n instance.setIp(value);\n return this;\n }",
"public Builder setIp(int value) {\n copyOnWrite();\n instance.setIp(value);\n return this;\n }",
"public void xsetRoadwayPI(org.landxml.schema.landXML11.Station roadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.set(roadwayPI);\r\n }\r\n }",
"@SuppressWarnings(\"ucd\")\n public void setPortRouter(int passedPort, PortRouter aPR) {\n synchronized( thePortRouterMap ){\n thePortRouterMap.put( passedPort, aPR );\n }\n }",
"public void setPathway(PathwayHolder p)\r\n\t{\n\t}",
"public void setIpAddress(InetAddress addr) \n\t{\n\t\tthis.ipAddress = addr;\n\t}",
"public void setH(Node destination){\n\t\t\n\t\th=calculateH(destination);\n\t}",
"private void setInIp(int value) {\n \n inIp_ = value;\n }",
"private void setInIp(int value) {\n \n inIp_ = value;\n }",
"public String getRouteid() {\r\n return routeid;\r\n }",
"public void createRoute(Route route) throws SQLException {\n\t\trDb.createRoute(route);\n\t}",
"public void addRoute(Route route) {\n routes.add(route);\n neighbors.add(route.getOther(this));\n }",
"@Override\n public void AddRoute(Route route) {\n routes.add(route);\n }",
"public final void setRemoteSocketAddress(String host){\r\n remoteSocketHost = host;\r\n }",
"public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }",
"public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }",
"public RoutePacket() {\n super(DEFAULT_MESSAGE_SIZE);\n amTypeSet(AM_TYPE);\n }",
"public void setDeviceIP(String argIp){\n\t deviceIP=argIp;\n }",
"public void setAddress(java.lang.String param) {\r\n localAddressTracker = param != null;\r\n\r\n this.localAddress = param;\r\n }",
"public void setRoutingKey(String routingKey) {\n this.routingKey = routingKey;\n }",
"public void setMethod(String method)\r\n {\r\n routing_method=method;\r\n }",
"int updRouteById(Route record) throws RouteNotFoundException;",
"public void setAgentHost(String value) {\n setAttributeInternal(AGENTHOST, value);\n }",
"void setInterfaceIpAddress(Ip4Address interfaceIpAddress);",
"public interface RouteConfigurator {\n\n PSConnector setLocalIpAddress(String cidr);\n\n PSConnector setStaticRoute(String destCidr, String nextHopeIpAddress);\n\n void setTunnelStaticRoute(String siteId, String destCidr);\n\n PSConnector setTunnel(String tunnelId, String localIpAddress, String remoteIpAddress);\n\n void setSiteToTunnel(String siteId, String tunnelId);\n\n PSConnector setDefaultGateway(String ipAddress);\n\n Set<RouteEntry>getRouteEntrySet();\n\n\n\n}",
"public int getRouteId() {\n return routeId;\n }",
"public void setPort(final String remoteHost) {\n host = remoteHost;\n }",
"synchronized public void setHost(String host) {\n this.host = host;\n if (checkClient()) {\n prefs.put(\"AEUnicastOutput.host\", host);\n }\n }",
"public RouteInterface setHandler(Class<?> handler);",
"public Builder setAddr(int value) {\n \n addr_ = value;\n onChanged();\n return this;\n }",
"public void set_addr(int value) {\n setUIntElement(offsetBits_addr(), 16, value);\n }",
"public Builder setCurrentRouteSegmentVersion(com.google.protobuf.Timestamp value) {\n if (currentRouteSegmentVersionBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n currentRouteSegmentVersion_ = value;\n onChanged();\n } else {\n currentRouteSegmentVersionBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void setIPAddress(final IPAddress iPAddress) {\n this.iPAddress = iPAddress;\n }",
"public Builder setIp(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ip_ = value;\n onChanged();\n return this;\n }",
"public Builder setDestinationPort(int value) {\n \n destinationPort_ = value;\n onChanged();\n return this;\n }",
"public void setRouteStepKey(long value) {\n\t\tthis.routeStepKey = value;\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}"
]
| [
"0.6525562",
"0.64270276",
"0.61834913",
"0.61569214",
"0.6024185",
"0.59132355",
"0.5667964",
"0.5567192",
"0.5483532",
"0.54099494",
"0.53998464",
"0.53991205",
"0.53835243",
"0.509425",
"0.50867766",
"0.506784",
"0.50194114",
"0.50194114",
"0.5017983",
"0.49744165",
"0.4954726",
"0.49393135",
"0.4927714",
"0.48894134",
"0.48823974",
"0.488134",
"0.48608518",
"0.4843827",
"0.48043138",
"0.47930977",
"0.47758636",
"0.47755095",
"0.47751734",
"0.47555774",
"0.47419864",
"0.46974024",
"0.4687681",
"0.4674603",
"0.46529672",
"0.46513256",
"0.46465158",
"0.4646396",
"0.46419817",
"0.46291062",
"0.46219325",
"0.46206886",
"0.45925152",
"0.45724654",
"0.45724654",
"0.4557547",
"0.454121",
"0.45409268",
"0.4540155",
"0.45220682",
"0.45158166",
"0.45006284",
"0.44987467",
"0.4494642",
"0.44820955",
"0.4480448",
"0.44620275",
"0.44602242",
"0.44487867",
"0.44423038",
"0.44423038",
"0.4431992",
"0.44312555",
"0.44291192",
"0.44248664",
"0.4420741",
"0.44184968",
"0.44184968",
"0.4418452",
"0.4414008",
"0.44139707",
"0.44077468",
"0.44027966",
"0.44025457",
"0.44025457",
"0.4389967",
"0.4389839",
"0.4383403",
"0.43773404",
"0.43769935",
"0.43755347",
"0.4361689",
"0.43576062",
"0.43495384",
"0.43479192",
"0.43456766",
"0.43414634",
"0.4334553",
"0.43252516",
"0.43250212",
"0.43174782",
"0.43132085",
"0.4311378",
"0.4307982",
"0.43076244",
"0.42954886"
]
| 0.77695006 | 0 |
Return type metadata object | public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MetadataType getType();",
"public MetadataType getType() {\n return type;\n }",
"public MilanoTypeMetadata.TypeMetadata getMetadata()\n {\n if (typeMetadata == null) {\n return null;\n }\n\n return typeMetadata;\n }",
"private Metadata getMetadata(RubyModule type) {\n for (RubyModule current = type; current != null; current = current.getSuperClass()) {\n Metadata metadata = (Metadata) current.getInternalVariable(\"metadata\");\n \n if (metadata != null) return metadata;\n }\n \n return null;\n }",
"public Metadata getMetadata( MetadataType type )\n\t{\n\t\tfor( Metadata metadata: mMetadata )\n\t\t{\n\t\t\tif( metadata.getMetadataType() == type )\n\t\t\t{\n\t\t\t\treturn metadata;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"Metadata getMetaData();",
"public List<TypeMetadata> getTypeMetadata() {\n return types;\n }",
"@Override\n public Class<? extends Metadata> getMetadataType() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"public MetaData getMetaData();",
"private Class<?> getType(final Object metadata, final ValueNode node) throws ParseException {\n if (node.type != null) {\n return readType(node);\n }\n Class type;\n if (metadata instanceof ReferenceSystemMetadata || metadata instanceof Period || metadata instanceof AbstractTimePosition || metadata instanceof Instant) {\n final Method getter = ReflectionUtilities.getGetterFromName(node.name, metadata.getClass());\n return getter.getReturnType();\n } else {\n type = standard.asTypeMap(metadata.getClass(), KeyNamePolicy.UML_IDENTIFIER, TypeValuePolicy.ELEMENT_TYPE).get(node.name);\n }\n final Class<?> special = specialized.get(type);\n if (special != null) {\n return special;\n }\n return type;\n }",
"public Map<String, Variant<?>> GetMetadata();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public TypeSummary getTypeSummary() {\r\n return type;\r\n }",
"String provideType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"public Type getType();",
"@Override\n public String toString() {\n return metaObject.getType().toString();\n }",
"public String metadataClass() {\n return this.metadataClass;\n }",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"abstract public Type getType();",
"public String type();",
"private String getType(){\r\n return type;\r\n }",
"protected abstract String getType();",
"Coding getType();",
"@Override\n TypeInformation<T> getProducedType();",
"type getType();",
"TypeDefinition createTypeDefinition();",
"abstract public String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract Type getType();",
"protected static LibMetaData createLibMetaData(LibMetaData lmd) {\n MetaData metaData = new MetaData();\r\n metaData.add(\"IsThing\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(0), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Number\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(THING, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsItem\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Name\", \"Thing\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_ITEM), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(ITEM, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsBeing\",new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Creatures\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(340), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsMobile\",new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsBlocking\", new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"MoveCost\", new Integer(100), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"DeathDecoration\", \"blood pool\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_MOBILE), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(BEING, metaData);\r\n \r\n lmd = createEffectMetaData(lmd);\r\n lmd = createPoisonMetaData(lmd);\r\n lmd = createFoodMetaData(lmd);\r\n lmd = createScrollMetaData(lmd);\r\n lmd = createMissileMetaData(lmd);\r\n lmd = createRangedWeaponMetaData(lmd);\r\n lmd = createPotionMetaData(lmd);\r\n lmd = createWandMetaData(lmd);\r\n lmd = createRingMetaData(lmd);\r\n lmd = createCoinMetaData(lmd);\r\n lmd = createArmourMetaData(lmd);\r\n lmd = createWeaponMetaData(lmd);\r\n lmd = createSecretMetaData(lmd);\r\n lmd = createSpellBookMetaData(lmd);\r\n lmd = createChestMetaData(lmd);\r\n lmd = createDecorationMetaData(lmd);\r\n lmd = createSceneryMetaData(lmd);\r\n lmd = createPortalMetaData(lmd);\r\n lmd = createTrapMetaData(lmd);\r\n createMonsterMetaData(lmd);\r\n createPersonMetaData(lmd);\r\n return lmd;\r\n }",
"String getTypeAsString();",
"public gov.niem.niem.structures._2_0.MetadataType getMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.niem.niem.structures._2_0.MetadataType target = null;\n target = (gov.niem.niem.structures._2_0.MetadataType)get_store().find_element_user(METADATA$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"TypeRef getType();",
"String getMetadataClassName();"
]
| [
"0.7969707",
"0.7373198",
"0.7358018",
"0.7090138",
"0.67353225",
"0.67259765",
"0.66725683",
"0.65644145",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6510972",
"0.648206",
"0.6352795",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.62937546",
"0.6285329",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.627527",
"0.6265675",
"0.6235292",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6221452",
"0.6209023",
"0.6196509",
"0.61801785",
"0.6180045",
"0.6168281",
"0.61679584",
"0.6166462",
"0.6161522",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6141369",
"0.6140734",
"0.6133515",
"0.61228573",
"0.6116976",
"0.6111749"
]
| 0.0 | -1 |
Applies JText boxes to a Jpanel for UI | public static void createUI (JTextField fName, JTextField lName, JTextField vDesc, JTextField cLoc,
JTextField dLoc, JTextField pNum, JPanel panel) {
panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
panel.setAlignmentX(Component.LEFT_ALIGNMENT);
panel.add(new JLabel("First Name:"));
panel.add(fName);
panel.add(Box.createHorizontalStrut(15)); // a spacer
panel.add(new JLabel("Last Name:"));
panel.add(lName);
panel.add(new JLabel("Vehicle Description:"));
panel.add(vDesc);
panel.add(new JLabel("Pick Up Location"));
panel.add(cLoc);
panel.add(new JLabel("Drop Off Location"));
panel.add(dLoc);
panel.add(new JLabel("Phone Number"));
panel.add(pNum);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createTextPanel()\n\t{\t\t\n\t\ttextPanel.setLayout (new BorderLayout());\n\t\ttextPanel.add(entry, BorderLayout.CENTER);\n\t\t\n\t}",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(4, 2, new Insets(10, 10, 10, 10), -1, -1));\n textPanel = new JPanel();\n textPanel.setLayout(new GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(textPanel, new GridConstraints(0, 0, 4, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(371, 24), null, 0, false));\n inputScroll = new JScrollPane();\n textPanel.add(inputScroll, new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n inputArea = new JTextArea();\n inputArea.setText(\"\");\n inputScroll.setViewportView(inputArea);\n outputScroll = new JScrollPane();\n textPanel.add(outputScroll, new GridConstraints(4, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n outputArea = new JTextArea();\n outputScroll.setViewportView(outputArea);\n final Spacer spacer1 = new Spacer();\n textPanel.add(spacer1, new GridConstraints(2, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n input = new JLabel();\n input.setText(\"Input\");\n textPanel.add(input, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n output = new JLabel();\n output.setText(\"Output\");\n textPanel.add(output, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearButton = new JButton();\n clearButton.setText(\"Clear\");\n mainPanel.add(clearButton, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonPanel = new JPanel();\n buttonPanel.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(buttonPanel, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n buttonPanel.add(spacer2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n closeButton = new JButton();\n closeButton.setText(\"Close\");\n buttonPanel.add(closeButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n spartanizeButton = new JButton();\n spartanizeButton.setText(\"Spartanize\");\n mainPanel.add(spartanizeButton, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void $$$setupUI$$$() {\r\n panel1 = new BackGroundPanel();\r\n panel1.setOpaque(false);\r\n panel1.setLayout(new GridLayoutManager(4, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n final Spacer spacer1 = new Spacer();\r\n panel1.add(spacer1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n textPane1 = new JTextArea();\r\n textPane1.setFont(new Font(\"HGMinchoL\", textPane1.getFont().getStyle(), 22));\r\n textPane1.setText(\"\");\r\n textPane1.setEditable(false);\r\n textPane1.setOpaque(false);\r\n panel1.add(textPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\r\n final JLabel label1 = new JLabel();\r\n label1.setText(\"Answer:\");\r\n panel1.add(label1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n textField1 = new JTextField();\r\n panel1.add(textField1, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n SWINGButton = createButton(\"bat\", \"SWING!\");\r\n //SWINGButton.setText(\"SWING\");\r\n panel1.add(SWINGButton, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n formattedTextField1 = new JFormattedTextField();\r\n formattedTextField1.setEditable(false);\r\n formattedTextField1.setFont(new Font(\"HGMinchol\", formattedTextField1.getFont().getStyle(), 22));\r\n panel1.add(formattedTextField1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n }",
"private void initPanel(){\n setBackground(Color.decode(\"#D9E4E8\"));\n unmatchedLilsTextField = new UnmatchedTextArea(\"littles\", new JTextArea());\n unmatchedBigsTextField = new UnmatchedTextArea(\"bigs\", new JTextArea());\n\n scoresLabel = new JLabel();\n\n littlesRanksTitleLabel = new JLabel(\"Select a little to see her preferences:\");\n littlesRanksTitleLabel.setPreferredSize(new Dimension(400,20));\n littlesRankingsBox = new JComboBox<>();\n littlesRankingsBox.setAlignmentX(Component.LEFT_ALIGNMENT);\n littlesRankingsResultsLabel = new JTextArea();\n\n\n bigsRanksTitleLabel = new JLabel(\"Select a big to see her preferences:\");\n bigsRanksTitleLabel.setPreferredSize(new Dimension(400,20));\n bigsRankingsBox = new JComboBox<>();\n bigsRankingsResultsLabel = new JTextArea();\n\n whoRanksLittleTitleLabel = new JLabel (\"Select a Little to see who ranked her:\");\n whoRanksLittleTitleLabel.setPreferredSize(new Dimension(400,20));\n whoRanksLittleBox = new JComboBox<String>();\n whoRanksLittleResultsLabel = new JTextArea();\n\n whoRanksBigTitleLabel = new JLabel (\"Select a Big to see who ranked her:\");\n whoRanksBigTitleLabel.setPreferredSize(new Dimension(400,20));\n whoRanksBigBox = new JComboBox<String>();\n whoRanksBigResultsLabel = new JTextArea();\n\n// got rid of this button for now so I could improve its functionality\n// button = new JButton(\"Click to display computed matches\");\n// button.setPreferredSize(new Dimension(300,20));\n\n setLayout(new FlowLayout());\n// add(button);\n add(scoresLabel);\n add(unmatchedLilsTextField);\n add(unmatchedBigsTextField);\n add(littlesRanksTitleLabel);\n add(littlesRankingsBox);\n add(littlesRankingsResultsLabel);\n add(bigsRanksTitleLabel);\n add(bigsRankingsBox);\n add(bigsRankingsResultsLabel);\n add(whoRanksLittleTitleLabel);\n add(whoRanksLittleBox);\n add(whoRanksLittleResultsLabel);\n add(whoRanksBigTitleLabel);\n add(whoRanksBigBox);\n add(whoRanksBigResultsLabel);\n setPreferredSize(new Dimension(500,700));\n }",
"private void initInputPanel() {\n\t\tinputPanel = new JPanel();\n\t\tinputPanel.setBorder(BorderFactory.createTitledBorder(\"Enter Words Found\"));\n\t\t\n\t\t// User Text Input Area\n\t\t// Shows the words the user has entered.\n\t\tusedWordList = new ArrayList<String>();\n\t\tinputArea = new JEditorPane(\"text/html\", \"\");\n\t\tkit = new HTMLEditorKit();\n\t\tdoc = new HTMLDocument();\n\t\tinputArea.setEditorKit(kit);\n\t\tinputArea.setDocument(doc);\n\t\tinputArea.setText(\"\");\n\t\tinputArea.setEditable(false);\n\t\tinputScroll = new JScrollPane(inputArea);\n\t\tinputScroll.setPreferredSize(new Dimension(180, 250));\n\t\tinputScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tinputScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\n\t\tinputPanel.add(inputScroll);\n\t\t\n\t\t// Timer Label\n\t\ttimerLabel = new JLabel(\"3:00\", SwingConstants.CENTER);\n\t\ttimerLabel.setBorder(BorderFactory.createTitledBorder(\"Timer\"));\n\t\ttimerLabel.setPreferredSize(new Dimension(180, 80));\n\t\ttimerLabel.setFont(new Font(\"Arial\", Font.BOLD, 50));\n\t\tinputPanel.add(timerLabel);\n\t\t\n\t\t// Shake Button\n\t\tshakeButton = new JButton(\"Shake Dice\");\n\t\tshakeButton.setPreferredSize(new Dimension(170, 50));\n\t\tshakeButton.setFont(new Font(\"Arial\", Font.BOLD, 24));\n\t\tshakeButton.setFocusable(false);\n\t\tshakeButton.addActionListener(new ShakeListener());\n\t\tinputPanel.add(shakeButton);\n\t}",
"private JPanel getTextPanel() {\n JPanel p = ProgramPresets.createPanel();\n p.setLayout(new GridLayout(0, 1));\n p.add(ProgramPresets.createCenteredLabelBold(\n \"THIS PROGRAM WAS CREATED TO HELP AUTOMATE THE PROCESS OF SKATESHOP RAFFLES\"));\n p.add(ProgramPresets.createCenteredLabelBold(\n \"LET THE GOOGLE SERVERS HANDLE THE STRESS CREATED BY HOARDS OF DUNK FANS/RESELLERS\"));\n p.add(ProgramPresets.createCenteredLabelBold(\n \"RUN THIS PROGRAM ON YOUR COMPUTER WITH THE DATA FROM YOUR GOOGLE FORMS BASED RAFFLE\"));\n p.add(ProgramPresets.createCenteredLabelBold(\n \"DO NOT HESITATE TO CONTANCT ME WITH ANY PROBLEMS YOU ENCOUNTER WHILE USING THIS PROGRAM\"));\n JPanel contact = ProgramPresets.createTitledPanel(\"CONTACT INFORMATION\");\n contact.setLayout(new GridLayout(0, 1));\n contact.add(ProgramPresets.createCenteredLabelBold(\"CADE REYNOLDSON\"));\n contact.add(ProgramPresets.createCenteredLabelBold(\"[email protected]\"));\n contact.add(ProgramPresets.createCenteredLabelBold(\"INSTAGRAM: @OLLIEHOLE\"));\n JPanel subContact = ProgramPresets.createPanel();\n subContact.setLayout(new BorderLayout());\n subContact.add(Box.createRigidArea(new Dimension(300, 0)), BorderLayout.EAST);\n subContact.add(contact);\n subContact.add(Box.createRigidArea(new Dimension(300, 0)), BorderLayout.WEST);\n p.add(subContact);\n p.add(ProgramPresets.createCenteredTitle(\n \"SEE THE LINK BELOW FOR A FULL DESCRIPTION ON HOW TO USE THIS PROGRAM\"));\n JPanel finalPanel = ProgramPresets.createPanel();\n finalPanel.setLayout(new BorderLayout());\n finalPanel.add(Box.createRigidArea(new Dimension(75, 0)), BorderLayout.WEST);\n finalPanel.add(Box.createRigidArea(new Dimension(75, 0)), BorderLayout.EAST);\n finalPanel.add(p, BorderLayout.CENTER);\n return finalPanel;\n }",
"private void createTextPanel() {\r\n Composite textPanel = new Composite(this, SWT.NONE);\r\n textPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n textPanel.setLayout(new GridLayout(2, true));\r\n\r\n createLabel(textPanel, \"Name\");\r\n _nameText = new Text(textPanel, SWT.BORDER | SWT.RIGHT);\r\n _nameText.setLayoutData(new GridData(SWT.FILL, SWT.HORIZONTAL, true, true));\r\n _nameText.addKeyListener(new TextKeyListener());\r\n\r\n createLabel(textPanel, \"Group\");\r\n _numberGroupText = new Text(textPanel, SWT.BORDER | SWT.RIGHT);\r\n _numberGroupText.setLayoutData(new GridData(SWT.FILL, SWT.HORIZONTAL, true, true));\r\n _numberGroupText.addKeyListener(new TextKeyListener());\r\n\r\n createCheckButtonPanel(textPanel);\r\n }",
"private void initRawPanel() {\n rawPanel.setLayout(new BorderLayout());\n\n // Textarea\n textPane.setEditable(false);\n\n document = textPane.getStyledDocument();\n addStylesToDocument();\n\n try {\n document.insertString(0, \"\", document.getStyle(\"regular\"));\n } catch (BadLocationException ex) {\n LOGGER.warn(\"Problem setting style\", ex);\n\n }\n\n OverlayPanel testPanel = new OverlayPanel(textPane, Localization.lang(\"paste text here\"));\n\n testPanel.setPreferredSize(new Dimension(450, 255));\n testPanel.setMaximumSize(new Dimension(450, Integer.MAX_VALUE));\n\n // Setup fields (required to be done before setting up popup menu)\n fieldList = new JList<>(getAllFields());\n fieldList.setCellRenderer(new SimpleCellRenderer(fieldList.getFont()));\n ListSelectionModel listSelectionModel = fieldList.getSelectionModel();\n listSelectionModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n listSelectionModel.addListSelectionListener(new FieldListSelectionHandler());\n fieldList.addMouseListener(new FieldListMouseListener());\n\n // After the call to getAllFields\n initPopupMenuAndToolbar();\n\n //Add listener to components that can bring up popup menus.\n MouseListener popupListener = new PopupListener(inputMenu);\n textPane.addMouseListener(popupListener);\n testPanel.addMouseListener(popupListener);\n\n JPanel leftPanel = new JPanel(new BorderLayout());\n\n leftPanel.add(toolBar, BorderLayout.NORTH);\n leftPanel.add(testPanel, BorderLayout.CENTER);\n\n JPanel inputPanel = setUpFieldListPanel();\n\n // parse with FreeCite button\n parseWithFreeCiteButton.addActionListener(event -> {\n if (parseWithFreeCiteAndAddEntries()) {\n okPressed = false; // we do not want to have the super method to handle our entries, we do it on our own\n dispose();\n }\n });\n\n rawPanel.add(leftPanel, BorderLayout.CENTER);\n rawPanel.add(inputPanel, BorderLayout.EAST);\n\n JLabel desc = new JLabel(\"<html><h3>\" + Localization.lang(\"Plain text import\") + \"</h3><p>\"\n + Localization.lang(\"This is a simple copy and paste dialog. First load or paste some text into \"\n + \"the text input area.<br>After that, you can mark text and assign it to a BibTeX field.\")\n + \"</p></html>\");\n desc.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\n\n rawPanel.add(desc, BorderLayout.SOUTH);\n }",
"protected JComponent makeTextPanel(String text)\n\t{\n\t\tJPanel panel = new JPanel(false);\n\t\tpanel.setBackground(new Color(55, 55, 55));\n\t\tpanel.setLayout(null);\n\t\treturn panel;\n\t}",
"public static void setTextNull(JPanel jpanel) {\n Component[] panel = jpanel.getComponents();\n for (int i = 0; i < jpanel.getComponentCount(); i++) {\n if (panel[i].getClass().equals(txtTexto.class)) {\n txtTexto jTexto = (txtTexto) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtCodigo.class)) {\n txtCodigo jTexto = (txtCodigo) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtNumeros.class)) {\n txtNumeros jTexto = (txtNumeros) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtFecha.class)) {\n txtFecha jTexto = (txtFecha) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtCelular.class)) {\n txtCelular jTexto = (txtCelular) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtTelefono.class)) {\n txtTelefono jTexto = (txtTelefono) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtNumerosFormato.class)) {\n txtNumerosFormato jTexto = (txtNumerosFormato) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtPassword.class)) {\n txtPassword jTexto = (txtPassword) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtHoraHMS.class)) {\n txtHoraHMS jTexto = (txtHoraHMS) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(JTextField.class)) {\n JTextField jTexto = (JTextField) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(JFormattedTextField.class)) {\n JFormattedTextField jTexto = (JFormattedTextField) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(JPasswordField.class)) {\n JPasswordField jTexto = (JPasswordField) jpanel.getComponent(i);\n jTexto.setText(\"\");\n }\n }\n }",
"private void setNotesUI() {\n notesPanel = new JPanel();\n notes = new JLabel();\n\n notes.setText(\"Notes : \");\n notes.setFont(new Font(\"Nunito\", Font.PLAIN, 14));\n notes.setForeground(new Color(247, 37, 133));\n\n\n notesField = new JTextFieldHintUI(\"Enter notes\");\n setTextFieldUI(notesField);\n\n notesPanel.add(Box.createHorizontalStrut(15));\n notesPanel.add(notes);\n notesPanel.add(notesField);\n notesPanel.setAlignmentX(Component.CENTER_ALIGNMENT);\n notesPanel.setBackground(null);\n }",
"private void displayHowTo(JPanel panel) {\n JButton single = new JButton();\n JButton multi = new JButton();\n single.setText(\"Single Player Rules\");\n multi.setText(\"Multiplayer Rules\");\n\n // if text is written on screen, dispose and replace with\n // requested text; window starts with nothing on it\n JLabel text = new JLabel();\n panel.add(text);\n panel.add(single);\n panel.add(multi);\n \n // if user clicks on either button, the text will change\n // based on the rules applied.\n single.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n text.setText(\"<html>TEST 1</html>\");\n helppanel.add(text);\n }\n });\n multi.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n text.setText(\"<html>TEST 2</html>\");\n helppanel.add(text);\n }\n });\n\n helppanel.add(panel);\n }",
"private void buildScrollPanel() {\r\n\t\tJPanel panel_for_scrollpane = new JPanel(new GridLayout(7, COLUMN_NAMES.length));\r\n\t\tpanel_for_scrollpane.setBorder(new BevelBorder(BevelBorder.LOWERED,\r\n\t\t\t\tnull, null, null, null));\r\n\t\tfor (int i = 0; i < COLUMN_NAMES.length; i++) {\r\n\t\t\tJLabel jl = new JLabel(COLUMN_NAMES[i], JLabel.CENTER);\r\n\t\t\tjl.setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n\t\t\tjl.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\r\n\t\t\tFont font = jl.getFont();\r\n\t\t\tMap attributes = font.getAttributes();\r\n\t\t\tattributes.put(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON);\r\n\t\t\tjl.setFont(font.deriveFont(attributes));\r\n\t\t\tpanel_for_scrollpane.add(jl);\r\n\t\t}\r\n\t\tfor (int i = COLUMN_NAMES.length+1; i <= 42; i++) {\r\n\r\n\t\t\tif ((i - 1) % COLUMN_NAMES.length == 0) {\r\n\t\t\t\tfinal JLabel jl = new JLabel(\"Box \" + i, JLabel.CENTER);\r\n\t\t\t\tjl.setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n\t\t\t\tjl.setForeground(Color.BLUE);\r\n\t\t\t\tjl.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\r\n\t\t\t\tfinal String box_clicked = \"clicked box \" + i;\r\n\t\t\t\tfinal Font entered = new Font(\"Tahoma\", Font.BOLD, 17);\r\n\t\t\t\tfinal Font exited = new Font(\"Tahoma\", Font.BOLD, 12);\r\n\t\t\t\tjl.addMouseListener(new MouseListener() {\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\r\n\t\t\t\t\t\tjl.setFont(entered);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tpublic void mouseExited(MouseEvent arg0) {\r\n\t\t\t\t\t\tjl.setFont(exited);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\t\t\tSystem.out.println(box_clicked);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tpanel_for_scrollpane.add(jl);\r\n\t\t\t} else {\r\n\t\t\t\tJLabel jl = new JLabel(\"Box\" + i, JLabel.CENTER);\r\n\t\t\t\tjl.setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n\t\t\t\tpanel_for_scrollpane.add(jl);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tpanel_for_scrollpane.setBackground(INNER_BACKGROUND_COLOR);\r\n\t\tpanel_for_scrollpane.setSize(10000, 10000);\r\n\t\tJScrollPane scrollPane = new JScrollPane(panel_for_scrollpane, 22, 32);\r\n\t\tscrollPane.setBounds(10, 350, 1235, 300);\r\n\t\tmain_panel.add(scrollPane);\r\n\r\n\t}",
"public TextPanel(String text) {\n\t\tthis.setLayout(new MigLayout());\n\t\tthis.text = text;\n\t\tjta = new JTextArea(text);\n\t\tjta.setEditable(false);\n\t\tjta.setLineWrap(true);\n\t\tjsp = new JScrollPane(jta);\n\n\t\tthis.add(jsp, \"push,grow\");\n\t}",
"private void llenarPanel() {\r\n\r\n\t\tposicion[0] = new JTextField();\r\n\t\tposicion[0].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[0].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[0]);\r\n\r\n\t\tposicion[1] = new JTextField();\r\n\t\tposicion[1].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[1].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[1]);\r\n\r\n\t\tposicion[2] = new JTextField();\r\n\t\tposicion[2].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[2].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[2]);\r\n\r\n\t\tposicion[3] = new JTextField();\r\n\t\tposicion[3].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[3].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[3]);\r\n\r\n\t\tposicion[4] = new JTextField();\r\n\t\tposicion[4].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[4].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[4]);\r\n\r\n\t\tposicion[5] = new JTextField();\r\n\t\tposicion[5].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[5].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[5]);\r\n\r\n\t\tposicion[6] = new JTextField();\r\n\t\tposicion[6].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[6].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[6]);\r\n\r\n\t\tposicion[7] = new JTextField();\r\n\t\tposicion[7].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[7].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[7]);\r\n\r\n\t\tposicion[8] = new JTextField();\r\n\t\tposicion[8].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[8].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[8]);\r\n\t}",
"@Override\r\n public void writeText(String text) {\n String[] lines = text.split(\"\\n\");\r\n JLabel[] labels = new JLabel[lines.length];\r\n for (int i = 0; i < lines.length; i++) {\r\n labels[i] = new JLabel(lines[i]);\r\n labels[i].setFont(new Font(\"Monospaced\", Font.PLAIN, 20));\r\n }\r\n JOptionPane.showMessageDialog(null, labels);\r\n }",
"private void crearPanel() {\r\n\t\tJLabel lbl_Empresa = new JLabel(\"Empresa:\");\r\n\t\tlbl_Empresa.setBounds(10, 52, 72, 14);\r\n\t\tadd(lbl_Empresa);\r\n\r\n\t\ttxField_Empresa = new JTextField();\r\n\t\ttxField_Empresa.setBounds(116, 49, 204, 20);\r\n\t\tadd(txField_Empresa);\r\n\t\ttxField_Empresa.setColumns(10);\r\n\r\n\t\tlbl_Oferta = new JLabel(\" \");\r\n\t\tlbl_Oferta.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlbl_Oferta.setBounds(10, 11, 742, 20);\r\n\t\tadd(lbl_Oferta);\r\n\r\n\t\tJLabel lbl_sueldoMin = new JLabel(\"Sueldo Minimo:\");\r\n\t\tlbl_sueldoMin.setBounds(10, 83, 96, 14);\r\n\t\tadd(lbl_sueldoMin);\r\n\r\n\t\ttxField_sueldoMin = new JTextField();\r\n\t\ttxField_sueldoMin.setColumns(10);\r\n\t\ttxField_sueldoMin.setBounds(116, 80, 93, 20);\r\n\t\tadd(txField_sueldoMin);\r\n\r\n\t\tJLabel lbl_sueldoMax = new JLabel(\"Sueldo Maximo:\");\r\n\t\tlbl_sueldoMax.setBounds(10, 115, 96, 14);\r\n\t\tadd(lbl_sueldoMax);\r\n\r\n\t\ttxField_sueldoMax = new JTextField();\r\n\t\ttxField_sueldoMax.setColumns(10);\r\n\t\ttxField_sueldoMax.setBounds(116, 112, 93, 20);\r\n\t\tadd(txField_sueldoMax);\r\n\r\n\t\tJLabel lbl_experiencia = new JLabel(\"A\\u00F1os de experiencia minimos:\");\r\n\t\tlbl_experiencia.setBounds(10, 143, 185, 14);\r\n\t\tadd(lbl_experiencia);\r\n\r\n\t\ttxField_experiencia = new JTextField();\r\n\t\ttxField_experiencia.setColumns(10);\r\n\t\ttxField_experiencia.setBounds(205, 140, 93, 20);\r\n\t\tadd(txField_experiencia);\r\n\r\n\t\tJLabel lbl_aspectosValorar = new JLabel(\"Aspectos a valorar:\");\r\n\t\tlbl_aspectosValorar.setBounds(10, 178, 137, 14);\r\n\t\tadd(lbl_aspectosValorar);\r\n\r\n\t\ttxArea_aspectosValorar = new JTextArea();\r\n\t\ttxArea_aspectosValorar.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosValorar.setBounds(157, 172, 253, 41);\r\n\t\tadd(txArea_aspectosValorar);\r\n\r\n\t\tJLabel lbl_aspectosImpres = new JLabel(\"Aspectos imprescindibles:\");\r\n\t\tlbl_aspectosImpres.setBounds(10, 238, 133, 14);\r\n\t\tadd(lbl_aspectosImpres);\r\n\r\n\t\ttxArea_aspectosImpres = new JTextArea();\r\n\t\ttxArea_aspectosImpres.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosImpres.setBounds(157, 232, 253, 41);\r\n\t\tadd(txArea_aspectosImpres);\r\n\r\n\t\tJLabel lbl_descripcion = new JLabel(\"Descripcion:\");\r\n\t\tlbl_descripcion.setBounds(10, 302, 107, 14);\r\n\t\tadd(lbl_descripcion);\r\n\r\n\t\ttxArea_descripcion = new JTextArea();\r\n\t\ttxArea_descripcion.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_descripcion.setBounds(10, 328, 465, 149);\r\n\t\tadd(txArea_descripcion);\r\n\r\n\t\tJLabel lbl_conocimientos = new JLabel(\"Conocimientos requeridos:\");\r\n\t\tlbl_conocimientos.setBounds(537, 125, 169, 14);\r\n\t\tadd(lbl_conocimientos);\r\n\r\n\t\tpa_conocimientos = new PanelListaDoble(Usuario.getConocimientosTotales(), miOferta.getConocimientos());\r\n\t\tpa_conocimientos.setBounds(537, 174, 215, 180);\r\n\t\tadd(pa_conocimientos);\r\n\r\n\t\ttxField_buscarCono = new JTextField();\r\n\t\ttxField_buscarCono.setBounds(537, 140, 135, 20);\r\n\t\tadd(txField_buscarCono);\r\n\t\ttxField_buscarCono.setColumns(10);\r\n\r\n\t\tJButton btn_buscar = new JButton(\"\");\r\n\t\tbtn_buscar.setBounds(682, 138, 24, 23);\r\n\t\tadd(btn_buscar);\r\n\r\n\t\tbtn_crear = new JButton(\"\");\r\n\t\tbtn_crear.setBounds(716, 138, 24, 23);\r\n\t\tadd(btn_crear);\r\n\r\n\t\ttxField_lugar = new JTextField();\r\n\t\ttxField_lugar.setEditable(false);\r\n\t\ttxField_lugar.setColumns(10);\r\n\t\ttxField_lugar.setBounds(506, 49, 234, 20);\r\n\t\tadd(txField_lugar);\r\n\r\n\t\tJLabel lbl_lugar = new JLabel(\"Lugar de trabajo:\");\r\n\t\tlbl_lugar.setBounds(392, 52, 104, 14);\r\n\t\tadd(lbl_lugar);\r\n\r\n\t\tJLabel lbl_contrato = new JLabel(\"Tipo de contrato:\");\r\n\t\tlbl_contrato.setBounds(392, 83, 104, 14);\r\n\t\tadd(lbl_contrato);\r\n\r\n\t\tcombo_contrato = new JComboBox<Contrato>();\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORAL_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORTAL_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.setBounds(506, 83, 159, 20);\r\n\t\tadd(combo_contrato);\r\n\t\t// d\r\n\t\tinicializar(miOferta);\r\n\t\tdesHabCampos(false);\r\n\t\tif (miOferta.getEmpresa().getNumID().compareToIgnoreCase(Aplicacion.getUsuario().getNumID()) == 0) {\r\n\t\t\tbtnEliminar = new JButton(\"Eliminar\");\r\n\t\t\tbtnEliminar.setToolTipText(\"Eliminar\");\r\n\t\t\tbtnEliminar.setBounds(492, 384, 125, 41);\r\n\t\t\tadd(btnEliminar);\r\n\r\n\t\t\tbtnRetirar = new JButton(\"\\uD83D\\uDC40\");\r\n\t\t\tbtnRetirar.setToolTipText(\"Retirar Oferta\");\r\n\t\t\tbtnRetirar.setBounds(627, 384, 125, 41);\r\n\t\t\tadd(btnRetirar);\r\n\r\n\t\t\tbutton_Editar = new JButton(\"Editar\");\r\n\t\t\tbutton_Editar.setToolTipText(\"Editar\");\r\n\t\t\tbutton_Editar.setBounds(627, 436, 125, 41);\r\n\t\t\tadd(button_Editar);\r\n\r\n\t\t\tbutton_Editar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\tdesHabCampos(true);\r\n\t\t\t\t\tbutton_Editar.setVisible(false);\r\n\t\t\t\t\tbtnEliminar.setVisible(false);\r\n\t\t\t\t\tbtnRetirar.setVisible(false);\r\n\t\t\t\t\tbtn_crear.setVisible(false);\r\n\r\n\t\t\t\t\tbtn_guardar = new JButton(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setToolTipText(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setBounds(627, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_guardar);\r\n\r\n\t\t\t\t\tbtn_cancelar = new JButton(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setToolTipText(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setBounds(492, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_cancelar);\r\n\r\n\t\t\t\t\tbtn_cancelar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tbtn_guardar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\t\t\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\t\t\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\t\t\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\t\t\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\t\t\t\t\tbtn_crear.setVisible(true);\r\n\t\t\t\t\t\t\tinicializar(miOferta);\r\n\t\t\t\t\t\t\tdesHabCampos(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tbtn_guardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tEmergenteCambios.createWindow(\"┐Desea guardar los cambios?\", (TieneEmergente) padre);\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}",
"private void displayAbout(JPanel panel) {\n JLabel aboutText1 = new JLabel(), aboutText2 = new JLabel();\n aboutText1.setText(\"<html>\" + \n \"<p> Minesweeper is a puzzle game, where the objective is to clear all mines from a board<br>\" +\n \"of tiles without touching one. Typically playable with one player only, the game presents<br>\" +\n \"with a timer, a counter that determines the number of flags and mines, a button that contains<br>\" +\n \"a smiley face, and a board. Once the user clicks on the board, the game commences and the timer<br>\" +\n \"activates. The user can flag a tile where there may be a mine, but once a tile with a mine has been<br>\" +\n \"detonated, the game is over. The first click is always never a mine, and using flags is not required!<br></p>\"\n + \"</html>\");\n aboutText2.setText(\"<html>\" +\n \"<b>About the Creator</b><br>\" +\n \"<p>  My name is <u>Stephen Hullender</u>.  I am a Computer Science student attending Temple<br>\" +\n \"University. This project was programmed using Java, utilizing several libraries such as<br>\" +\n \"the SWING library, Abstract Window Toolkit, socket programming, and other related libraries.<br>\" +\n \"This project was first brainstormed in May 2021 when I had developed a habit of playing <br>\" +\n \"of Minesweeper to pass the time following an ardenous semester of Zoom University. Production began <br>\" +\n \"shortly after, but was halted until it was completely revamped and improved on July 2021. Since<br>\" +\n \"then, I've developed new skills in understanding how to create Java applications, as well as finding<br>\" +\n \"some knowledge in how to develop games. My goal is to create a simple and fun puzzle game, and to<br>\" +\n \"recreate it with some additional tools such as multiplayer interaction and customizable controls, along<br>\"+\n \"with implementing a database to keep scores, hopefully via SQL. </p>\"\n + \"</html>\");\n\n panel.add(aboutText1);\n panel.add(aboutText2);\n helppanel.add(panel);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n mainTextPanelPop = new javax.swing.JPopupMenu();\n undoPopItem = new javax.swing.JMenuItem();\n redoPopItem = new javax.swing.JMenuItem();\n jSeparator2 = new javax.swing.JPopupMenu.Separator();\n cutPopItem = new javax.swing.JMenuItem();\n copyPopItem = new javax.swing.JMenuItem();\n pastePopItem = new javax.swing.JMenuItem();\n removePopItem = new javax.swing.JMenuItem();\n jSeparator4 = new javax.swing.JPopupMenu.Separator();\n allPopItem = new javax.swing.JMenuItem();\n jSeparator7 = new javax.swing.JPopupMenu.Separator();\n commentPopItem = new javax.swing.JMenuItem();\n uncommentPopItem = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JPopupMenu.Separator();\n findPopMenuItem = new javax.swing.JMenuItem();\n jScrollPane2 = new javax.swing.JScrollPane();\n jPanel2 = new javax.swing.JPanel();\n lineNumberLabel = new javax.swing.JLabel(){\n public void paint(Graphics g){\n Graphics2D g2d = (Graphics2D)g;\n g2d.setColor(this.getBackground());\n g2d.fillRect(0, 0, this.getWidth(), this.getHeight());\n Element map = mainTextPanel.getDocument().getDefaultRootElement();\n g2d.setFont(new Font(\"DialogInput\", Font.PLAIN, 16));\n g2d.setColor(Color.BLACK);\n for(int i = 0,n = map.getElementCount();i<n;i++){\n String s = \"\" + (i+1);\n g.drawString(s, 16 - s.length() * 6, 22 + i * 22);\n }\n }\n }\n ;\n mainTextPanel = new javax.swing.JTextPane(){\n public boolean getScrollableTracksViewportWidth() {\n return false;\n }\n\n public void setSize(Dimension d) {\n int parentWidth = this.getParent().getWidth();\n if(parentWidth>d.width){\n d.width = parentWidth;\n }\n super.setSize(d);\n }\n }\n ;\n posLabel = new javax.swing.JLabel();\n cancleButton = new javax.swing.JButton();\n okButton = new javax.swing.JButton();\n\n mainTextPanelPop.setName(\"mainTextPanelPop\"); // NOI18N\n\n undoPopItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK));\n undoPopItem.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/soyostar/resources/16.PNG\"))); // NOI18N\n undoPopItem.setText(\"撤销\");\n undoPopItem.setName(\"undoPopItem\"); // NOI18N\n undoPopItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n undoPopItemActionPerformed(evt);\n }\n });\n mainTextPanelPop.add(undoPopItem);\n\n redoPopItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Y, java.awt.event.InputEvent.CTRL_MASK));\n redoPopItem.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/soyostar/resources/17.PNG\"))); // NOI18N\n redoPopItem.setText(\"重做\");\n redoPopItem.setName(\"redoPopItem\"); // NOI18N\n redoPopItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n redoPopItemActionPerformed(evt);\n }\n });\n mainTextPanelPop.add(redoPopItem);\n\n jSeparator2.setName(\"jSeparator2\"); // NOI18N\n mainTextPanelPop.add(jSeparator2);\n\n cutPopItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK));\n cutPopItem.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/soyostar/resources/4.PNG\"))); // NOI18N\n cutPopItem.setText(\"剪切\");\n cutPopItem.setName(\"cutPopItem\"); // NOI18N\n cutPopItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cutPopItemActionPerformed(evt);\n }\n });\n mainTextPanelPop.add(cutPopItem);\n\n copyPopItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));\n copyPopItem.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/soyostar/resources/7.PNG\"))); // NOI18N\n copyPopItem.setText(\"复制\");\n copyPopItem.setName(\"copyPopItem\"); // NOI18N\n copyPopItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n copyPopItemActionPerformed(evt);\n }\n });\n mainTextPanelPop.add(copyPopItem);\n\n pastePopItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK));\n pastePopItem.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/soyostar/resources/5.PNG\"))); // NOI18N\n pastePopItem.setText(\"粘贴\");\n pastePopItem.setName(\"pastePopItem\"); // NOI18N\n pastePopItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pastePopItemActionPerformed(evt);\n }\n });\n mainTextPanelPop.add(pastePopItem);\n\n removePopItem.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/soyostar/resources/11.PNG\"))); // NOI18N\n removePopItem.setText(\"删除\");\n removePopItem.setName(\"removePopItem\"); // NOI18N\n removePopItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n removePopItemActionPerformed(evt);\n }\n });\n mainTextPanelPop.add(removePopItem);\n\n jSeparator4.setName(\"jSeparator4\"); // NOI18N\n mainTextPanelPop.add(jSeparator4);\n\n allPopItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));\n allPopItem.setText(\"全选\");\n allPopItem.setName(\"allPopItem\"); // NOI18N\n allPopItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n allPopItemActionPerformed(evt);\n }\n });\n mainTextPanelPop.add(allPopItem);\n\n jSeparator7.setName(\"jSeparator7\"); // NOI18N\n mainTextPanelPop.add(jSeparator7);\n\n commentPopItem.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/soyostar/resources/3463.png\"))); // NOI18N\n commentPopItem.setText(\"注释\");\n commentPopItem.setName(\"commentPopItem\"); // NOI18N\n commentPopItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n commentPopItemActionPerformed(evt);\n }\n });\n mainTextPanelPop.add(commentPopItem);\n\n uncommentPopItem.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/soyostar/resources/3462.png\"))); // NOI18N\n uncommentPopItem.setText(\"取消注释\");\n uncommentPopItem.setName(\"uncommentPopItem\"); // NOI18N\n uncommentPopItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n uncommentPopItemActionPerformed(evt);\n }\n });\n mainTextPanelPop.add(uncommentPopItem);\n\n jSeparator1.setName(\"jSeparator1\"); // NOI18N\n mainTextPanelPop.add(jSeparator1);\n\n findPopMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK));\n findPopMenuItem.setText(\"查找\");\n findPopMenuItem.setName(\"findPopMenuItem\"); // NOI18N\n findPopMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n findPopMenuItemActionPerformed(evt);\n }\n });\n mainTextPanelPop.add(findPopMenuItem);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance().getContext().getResourceMap(ScriptManagerDialog.class);\n setTitle(resourceMap.getString(\"title\")); // NOI18N\n\n jScrollPane2.setName(\"jScrollPane2\"); // NOI18N\n\n jPanel2.setName(\"jPanel2\"); // NOI18N\n\n lineNumberLabel.setName(\"lineNumberLabel\"); // NOI18N\n lineNumberLabel.setOpaque(true);\n\n mainTextPanel.setComponentPopupMenu(mainTextPanelPop);\n mainTextPanel.setName(\"mainTextPanel\"); // NOI18N\n hlw.setHightLight(mainTextPanel);\n mainTextPanel.getStyledDocument().addUndoableEditListener(um);\n mainTextPanel.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n mainTextPanelMouseClicked(evt);\n }\n });\n mainTextPanel.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n mainTextPanelCaretUpdate(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(lineNumberLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(mainTextPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 607, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(mainTextPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 450, Short.MAX_VALUE)\n .addComponent(lineNumberLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 450, Short.MAX_VALUE)\n );\n\n jScrollPane2.setViewportView(jPanel2);\n\n posLabel.setText(\"(1,1)\");\n posLabel.setName(\"posLabel\"); // NOI18N\n\n cancleButton.setText(\"取消\");\n cancleButton.setName(\"cancleButton\"); // NOI18N\n cancleButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancleButtonActionPerformed(evt);\n }\n });\n\n okButton.setText(\"确定\");\n okButton.setName(\"okButton\"); // NOI18N\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(posLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 477, Short.MAX_VALUE)\n .addComponent(okButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cancleButton)\n .addContainerGap())\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 641, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 452, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cancleButton)\n .addComponent(okButton)\n .addComponent(posLabel))\n .addContainerGap())\n );\n\n pack();\n }",
"private void displayBox(){\n DemoPanel.removeAll();\n for (int i = 0; i < bArray.size(); i++) {\n if (bArray.get(i).getText().charAt(0) == '*') {\n JLabel j = new JLabel();\n j.setText(bArray.get(i).getText().substring(1));\n DemoPanel.add(j);\n }\n else{\n DemoPanel.add(bArray.get(i));\n DemoPanel.setLayout(new BoxLayout(DemoPanel, BoxLayout.Y_AXIS));\n }\n \n }\n }",
"public static void setAllNullComponents(JPanel jpanel) {\n Component[] panel = jpanel.getComponents();\n for (int i = 0; i < jpanel.getComponentCount(); i++) {\n if (panel[i].getClass().equals(txtTexto.class)) {\n txtTexto jTexto = (txtTexto) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtCodigo.class)) {\n txtCodigo jTexto = (txtCodigo) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtNumeros.class)) {\n txtNumeros jTexto = (txtNumeros) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtFecha.class)) {\n txtFecha jTexto = (txtFecha) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(combo.class)) {\n combo jCombo = (combo) jpanel.getComponent(i);\n jCombo.removeAllItems();\n continue;\n }\n if (panel[i].getClass().equals(JComboBox.class)) {\n JComboBox jCombo = (JComboBox) jpanel.getComponent(i);\n jCombo.removeAllItems();\n continue;\n }\n if (panel[i].getClass().equals(txtHoraHMS.class)) {\n txtHoraHMS jTexto = (txtHoraHMS) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtCelular.class)) {\n txtCelular jTexto = (txtCelular) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtTelefono.class)) {\n txtTelefono jTexto = (txtTelefono) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtNumerosFormato.class)) {\n txtNumerosFormato jTexto = (txtNumerosFormato) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(txtPassword.class)) {\n txtPassword jTexto = (txtPassword) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(JRadioButton.class)) {\n JRadioButton jRadio = (JRadioButton) jpanel.getComponent(i);\n jRadio.setSelected(false);\n continue;\n }\n if (panel[i].getClass().equals(JCheckBox.class)) {\n JCheckBox jCheck = (JCheckBox) jpanel.getComponent(i);\n jCheck.setSelected(false);\n continue;\n }\n if (panel[i].getClass().equals(JTextField.class)) {\n JTextField jTexto = (JTextField) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(JFormattedTextField.class)) {\n JFormattedTextField jTexto = (JFormattedTextField) jpanel.getComponent(i);\n jTexto.setText(\"\");\n continue;\n }\n if (panel[i].getClass().equals(JPasswordField.class)) {\n JPasswordField jTexto = (JPasswordField) jpanel.getComponent(i);\n jTexto.setText(\"\");\n }\n }\n }",
"private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}",
"private void $$$setupUI$$$ ()\n {\n contentPane = new JPanel();\n contentPane.setLayout(new BorderLayout(0, 0));\n contentPane.setBackground(new Color(-16777216));\n contentPane.setPreferredSize(new Dimension(300, 100));\n contentPane.setRequestFocusEnabled(false);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n panel1.setBackground(new Color(-16777216));\n panel1.setPreferredSize(new Dimension(200, 50));\n contentPane.add(panel1, BorderLayout.SOUTH);\n buttonOK = new JButton();\n buttonOK.setPreferredSize(new Dimension(100, 31));\n buttonOK.setText(\"OK\");\n panel1.add(buttonOK);\n final JLabel label1 = new JLabel();\n label1.setPreferredSize(new Dimension(30, 10));\n label1.setText(\"\");\n panel1.add(label1);\n buttonCancel = new JButton();\n buttonCancel.setPreferredSize(new Dimension(100, 31));\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel);\n textField1 = new JTextField();\n textField1.setBackground(new Color(-15987184));\n Font textField1Font = Tools.getFont(\"Arial\", -1, 20, textField1.getFont());\n if (textField1Font != null)\n {\n textField1.setFont(textField1Font);\n }\n textField1.setForeground(new Color(-1));\n textField1.setHorizontalAlignment(0);\n textField1.setOpaque(false);\n textField1.setPreferredSize(new Dimension(300, 50));\n contentPane.add(textField1, BorderLayout.CENTER);\n final JLabel label2 = new JLabel();\n label2.setPreferredSize(new Dimension(11, 11));\n label2.setText(\" \");\n contentPane.add(label2, BorderLayout.WEST);\n final JLabel label3 = new JLabel();\n label3.setPreferredSize(new Dimension(11, 11));\n label3.setText(\" \");\n contentPane.add(label3, BorderLayout.EAST);\n final JLabel label4 = new JLabel();\n label4.setPreferredSize(new Dimension(11, 11));\n label4.setText(\"\");\n contentPane.add(label4, BorderLayout.NORTH);\n }",
"public TextBoxComponent(JButton draw)\n\t{\n\t\tsetLayout(new FlowLayout());\n\t\tsetComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t\t\n\t\tqualityNum = sidesNum = 0;\n\t\tlengthNum = widthNum = heightNum = 1;\n\t\tradiusNum = radius2Num = rollNum = pitchNum = yawNum = 0;\n\t\t\n\t\txText = new JLabel(\" X:\");\n\t\tyText = new JLabel(\" Y:\"); \n\t\tzText = new JLabel(\" Z:\"); \n\t\tlengthText = new JLabel(\" Length:\"); \n\t\twidthText = new JLabel(\" Width:\"); \n\t\theightText = new JLabel(\" Height:\"); \n\t\tradiusText = new JLabel(\" Radius:\"); \n\t\tradius2Text = new JLabel(\" Radius 2:\"); \n\t\trollText = new JLabel(\" Roll:\"); \n\t\tpitchText = new JLabel(\" Pitch:\"); \n\t\tyawText = new JLabel(\" Yaw:\"); \n\t\tqualityText = new JLabel(\" Quality:\");\n\t\tsidesText = new JLabel(\" # of Sides:\");\n\t \t\n\t \tx = new JTextField(12); \n\t \ty = new JTextField(12); \n\t \tz = new JTextField(12); \n\t \tlength = new JTextField(5); \n\t \twidth = new JTextField(5); \n\t \theight = new JTextField(5); \n\t \tradius = new JTextField(5); \n\t \tradius2 = new JTextField(5);\n\t \troll = new JTextField(5); \n\t \tpitch = new JTextField(5); \n\t \tyaw = new JTextField(5); \n\t \tquality = new JTextField(5); \n\t \tsides = new JTextField(5);\n\t \t\n\t \t//radius.addActionListener(this);\n\t \t//radius.addMouseListener(this);\n\t \tadd(xText);\n\t\tadd(x);\n\t\tadd(yText);\n\t\tadd(y);\n\t\tadd(zText);\n\t\tadd(z);\n\t\tadd(lengthText);\n\t\tadd(length);\n\t\tadd(widthText);\n\t\tadd(width);\n\t\tadd(heightText);\n\t\tadd(height);\n\t\tadd(radiusText);\n\t\tadd(radius);\n\t\tadd(radius2Text);\n\t\tadd(radius2);\n\t\tadd(qualityText);\n\t\tadd(quality);\n\t\tadd(sidesText);\n \tadd(sides);\n \tadd(yawText);\n\t\tadd(yaw);\n\t\tadd(pitchText);\n\t\tadd(pitch);\n\t\tadd(rollText);\n\t\tadd(roll);\n\t\t\n\t \tsetShape(\"Cube\");\n\t \t\n\t \tadd(draw);\n\t \tsetVisible(true);\n\t \t\n\t \t\n\t \t//setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t}",
"public void setBoxes(String params) {\n\t\tfinal String[] paramsArray = params.split(\",\");\n\t\tint i=0;\n\t\tfor (Component c : this.westPanel.getComponents()) {\n\t\t if (c instanceof JTextField) {\n\t\t ((JTextField) c).setText(paramsArray[i]);\n\t\t \ti++;\n\t\t }\n\t\t}\n\t}",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n materialFirstWordLabel = new JLabel();\n materialFirstWordLabel.setText(\"нет данных\");\n contentPane.add(materialFirstWordLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(10, -1), null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n materialMarkLabel = new JLabel();\n materialMarkLabel.setText(\" \");\n materialMarkLabel.setVerticalTextPosition(1);\n panel1.add(materialMarkLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialProfileLabel = new JLabel();\n materialProfileLabel.setText(\" \");\n materialProfileLabel.setVerticalTextPosition(3);\n panel1.add(materialProfileLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialSeparator = new JSeparator();\n panel1.add(materialSeparator, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n contentPane.add(spacer1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }",
"private void visualizarTextfield(boolean modoeditar){\n jPanel_vis.removeAll();\n jpaneltitulo.removeAll();\n jpanelft.removeAll();\n jptel.removeAll();\n jpemail.removeAll();\n \n jbt_editar.setEnabled(false);\n jbt_novo.setEnabled(false);\n jbt_excluir.setEnabled(false);\n jList_nomes.setEnabled(false);\n \n //Informações\n jtextf_info = new JTextField[5];\n if(modoeditar){\n carregaTextfieldPessoa();\n jbsalvar.setActionCommand(\"editar\");\n \n }else{\n novoTextfield();\n jbsalvar.setActionCommand(\"novo\");\n }\n //carregando a imagem em tamanho 60x60\n jlabel_foto = new JLabel(new ImageIcon(new ImageIcon(getClass()\n .getResource(\"media/user1.png\")).getImage()\n .getScaledInstance(60, 60, java.awt.Image.SCALE_SMOOTH)));\n\n jpaneltitulo.add(label_titulo[0]);\n jpaneltitulo.add(jtextf_info[0]);\n jpanelft.add(jpaneltitulo);\n jpanelft.add(Box.createHorizontalGlue());\n jpanelft.add(jlabel_foto);\n jpanelft.setAlignmentX((float) 0.05);\n jpanelbotoes.add(Box.createHorizontalGlue());\n jpanelbotoes.add(jbsalvar);\n jpanelbotoes.add(Box.createRigidArea(new Dimension(0,10)));\n jpanelbotoes.add(jbcancelar);\n jpanelft.setAlignmentX((float) 0.05);\n jPanel_vis.add(jpanelft);\n jPanel_vis.add(Box.createRigidArea(new Dimension(0,10)));\n \n for (int i = 1; i < 3; i++) {\n jPanel_vis.add(label_titulo[i]);\n jPanel_vis.add(jtextf_info[i]);\n jPanel_vis.add(Box.createRigidArea(new Dimension(0,10)));\n }\n jPanel_vis.add(label_titulo[3]);\n jPanel_vis.add(jc_estadocivil);\n jPanel_vis.add(Box.createRigidArea(new Dimension(0,10)));\n jPanel_vis.add(label_titulo[4]);\n jPanel_vis.add(jtextf_info[3]);\n jPanel_vis.add(Box.createRigidArea(new Dimension(0,10)));\n jPanel_vis.add(label_titulo[5]);\n JPanel jptel3 = new JPanel();\n jptel3.setLayout(new BoxLayout(jptel3, BoxLayout.LINE_AXIS));\n jptel3.setAlignmentX((float) 0.3);\n jptel3.add(new JLabel(\"Tipo\"));\n jptel3.add(Box.createRigidArea(new Dimension(120,0)));\n jptel3.add(new JLabel(\"Número\"));\n jptel.add(jptel3);\n for (JTextField[] jtftel : tf_telefones) {\n JPanel jptel2 = new JPanel();\n jptel2.setLayout(new BoxLayout(jptel2, BoxLayout.LINE_AXIS));\n jptel2.add(jtftel[0]);\n jptel2.add(jtftel[1]);\n JButton jbmenos = new JButton(\"-\");\n if(tf_telefones.indexOf(jtftel) == 0){\n JButton jbmais = new JButton(\"+\");\n jptel2.add(jbmais);\n botaoMaisTel(jbmais);\n }else{\n bt_tel.add(jbmenos);\n jptel2.add(jbmenos);\n botaoMenosTel(jbmenos); \n }\n jptel.add(jptel2);\n jPanel_vis.add(jptel);\n }\n jPanel_vis.add(Box.createRigidArea(new Dimension(0,10)));\n jPanel_vis.add(label_titulo[6]);\n JPanel jpmail3 = new JPanel();\n jpmail3.setLayout(new BoxLayout(jpmail3, BoxLayout.LINE_AXIS));\n jpmail3.setAlignmentX((float) 0.3);\n jpmail3.add(new JLabel(\"Tipo\"));\n jpmail3.add(Box.createRigidArea(new Dimension(120,0)));\n jpmail3.add(new JLabel(\"e-mail\"));\n jpemail.add(jpmail3);\n for (JTextField[] jtfemail : tf_emails) {\n JPanel jpemail2 = new JPanel();\n jpemail2.setLayout(new BoxLayout(jpemail2, BoxLayout.LINE_AXIS));\n jpemail2.add(jtfemail[0]);\n jpemail2.add(jtfemail[1]);\n JButton jbmenos = new JButton(\"-\");\n if(tf_emails.indexOf(jtfemail) == 0){\n JButton jbmais = new JButton(\"+\");\n jpemail2.add(jbmais);\n botaoMaisEmail(jbmais);\n }else{\n bt_email.add(jbmenos);\n jpemail2.add(jbmenos);\n botaoMenosEmail(jbmenos); \n }\n jpemail.add(jpemail2);\n jPanel_vis.add(jpemail);\n }\n jPanel_vis.add(Box.createRigidArea(new Dimension(0,10)));\n jPanel_vis.add(label_titulo[7]);\n for (JTextField[] jtfen : tf_enderecos) {\n JPanel jpend = new JPanel();\n jpend.setLayout(new BoxLayout(jpend, BoxLayout.PAGE_AXIS));\n JPanel[] jpend2 = new JPanel[6];\n String[] endtit = {\n \"Tipo\",\"Logradouro\",\"Bairro\",\"Cidade\",\"Estado\",\"Cep\"\n };\n for (int i = 0; i < jpend2.length; i++) {\n jpend2[i] = new JPanel();\n jpend2[i].setLayout(new BoxLayout(jpend2[i], BoxLayout.LINE_AXIS));\n jpend2[i].add(new JLabel(endtit[i]));\n jpend2[i].add(jtfen[i]);\n jpend.add(jpend2[i]);\n }\n \n jPanel_vis.add(jpend);\n }\n jPanel_vis.add(Box.createRigidArea(new Dimension(0,10)));\n \n jPanel_vis.add(jpanelbotoes);\n jPanel_vis.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10));\n \n jscrolp_vis.validate();\n }",
"protected void createComponents() {\n sampleText = new JTextField(20);\n displayArea = new JLabel(\"\");\n displayArea.setPreferredSize(new Dimension(200, 75));\n displayArea.setMinimumSize(new Dimension(200, 75));\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextField1 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextPane1 = new javax.swing.JTextPane();\n jButton4 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextPane2 = new javax.swing.JTextPane();\n\n jTextField1.setName(\"output_Box\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jButton1.setText(\"Display Items\");\n jButton1.setName(\"option_1\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Begin Check Out Process\");\n jButton2.setName(\"option_2\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Quit\");\n jButton3.setName(\"option_3\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jTextPane1.setName(\"input_Box\");\n jScrollPane2.setViewportView(jTextPane1);\n\n jButton4.setText(\"Check Out\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jScrollPane1.setViewportView(jTextPane2);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 356, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton4, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton3)\n .addGap(8, 8, 8))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(44, 44, 44))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton2)\n .addContainerGap())))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addComponent(jButton1)\n .addGap(18, 18, 18)\n .addComponent(jButton2)\n .addGap(18, 18, 18)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 196, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton4))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2)))\n .addContainerGap())\n );\n\n pack();\n }",
"private void initComponents() {\n\n jTextAreaTop = new javax.swing.JTextArea();\n jScrollPane1 = new javax.swing.JScrollPane();\n jEditorPane1 = new javax.swing.JEditorPane();\n jTextAreaBottom = new javax.swing.JTextArea();\n\n setBorder(javax.swing.BorderFactory.createEmptyBorder(12, 12, 0, 11));\n setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.Y_AXIS));\n\n jTextAreaTop.setBackground(getBackground());\n jTextAreaTop.setColumns(20);\n jTextAreaTop.setEditable(false);\n jTextAreaTop.setFont(new java.awt.Font(\"Dialog\", 1, 12));\n jTextAreaTop.setLineWrap(true);\n jTextAreaTop.setRows(1);\n jTextAreaTop.setText(bundle.getString(\"MSG_LicenseDlgLabelTop\"));\n jTextAreaTop.setWrapStyleWord(true);\n jTextAreaTop.setFocusable(false);\n jTextAreaTop.setMargin(new java.awt.Insets(0, 0, 2, 0));\n jTextAreaTop.setRequestFocusEnabled(false);\n add(jTextAreaTop);\n\n jEditorPane1.setEditable(false);\n jEditorPane1.setPreferredSize(new java.awt.Dimension(500, 500));\n jScrollPane1.setViewportView(jEditorPane1);\n\n add(jScrollPane1);\n\n jTextAreaBottom.setBackground(getBackground());\n jTextAreaBottom.setColumns(20);\n jTextAreaBottom.setEditable(false);\n jTextAreaBottom.setFont(new java.awt.Font(\"Dialog\", 1, 12));\n jTextAreaBottom.setLineWrap(true);\n jTextAreaBottom.setRows(2);\n jTextAreaBottom.setText(bundle.getString(\"MSG_LicenseDlgLabelBottom\"));\n jTextAreaBottom.setWrapStyleWord(true);\n jTextAreaBottom.setFocusable(false);\n jTextAreaBottom.setRequestFocusEnabled(false);\n add(jTextAreaBottom);\n }",
"public DrawTextPanel() {\n\t\tfileChooser = new SimpleFileChooser();\n\t\tundoMenuItem = new JMenuItem(\"Remove Item\");\n\t\tundoMenuItem.setEnabled(false);\n\t\tmenuHandler = new MenuHandler();\n\t\tsetLayout(new BorderLayout(3,3));\n\t\tsetBackground(Color.BLACK);\n\t\tsetBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\n\t\tcanvas = new Canvas();\n\t\tadd(canvas, BorderLayout.CENTER);\n\t\tJPanel bottom = new JPanel();\n\t\tbottom.add(new JLabel(\"Text to add: \"));\n\t\tinput = new JTextField(\"Hello World!\", 40);\n\t\tbottom.add(input);\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\t\n\t\tJButton button = new JButton(\"Generate Random\");\n\t\tbottom.add(button);\n\t\t\n\t\tcanvas.addMouseListener( new MouseAdapter() {\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tdoMousePress( e.getX(), e.getY() ); \n\t\t\t}\n\t\t} );\n\t\t\n\t\tbutton.addActionListener(new ActionListener() { \n\t\t\tpublic void actionPerformed(ActionEvent e) { \n\t\t\t\tfor (int i = 0; i < 150; i++) { \n\t\t\t\t\tint X = new Random().nextInt(800); \n\t\t\t\t\tint Y = new Random().nextInt(600);\n\t\t\t\t\tdoMousePress(X, Y); \n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}",
"private void $$$setupUI$$$() {\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(8, 4, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(mainPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n mainPanel.setBorder(BorderFactory.createTitledBorder(\"New Mapper Pattern Keywords\"));\n final JLabel label1 = new JLabel();\n label1.setText(\"Insert\");\n mainPanel.add(label1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n insertPatternTextField = new JTextField();\n mainPanel.add(insertPatternTextField, new GridConstraints(2, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150,\n -1), null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Delete\");\n mainPanel.add(label2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n deletePatternTextField = new JTextField();\n mainPanel.add(deletePatternTextField, new GridConstraints(3, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150,\n -1), null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Update\");\n mainPanel.add(label3, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n updatePatternTextField = new JTextField();\n mainPanel.add(updatePatternTextField, new GridConstraints(4, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150,\n -1), null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Select\");\n mainPanel.add(label4, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n selectPatternTextField = new JTextField();\n mainPanel.add(selectPatternTextField, new GridConstraints(5, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150,\n -1), null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Patterns should be separated with \\\";\\\"\");\n mainPanel.add(label5, new GridConstraints(0, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n modelComboBox = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"startWith\");\n defaultComboBoxModel1.addElement(\"endWith\");\n defaultComboBoxModel1.addElement(\"contain\");\n modelComboBox.setModel(defaultComboBoxModel1);\n mainPanel.add(modelComboBox, new GridConstraints(1, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n mainPanel.add(spacer1, new GridConstraints(7, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Model\");\n mainPanel.add(label6, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n openNaviButton = new JRadioButton();\n openNaviButton.setText(\"开\");\n mainPanel.add(openNaviButton, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED\n , null, null, null, 0, false));\n openNaviLabel = new JLabel();\n openNaviLabel.setText(\"导航开关\");\n mainPanel.add(openNaviLabel, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n closeNaviRadioButton = new JRadioButton();\n closeNaviRadioButton.setText(\"关\");\n mainPanel.add(closeNaviRadioButton, new GridConstraints(6, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void initUI() {\n\t\tPanel p = new Panel();\n\t\tp.setLayout(new BorderLayout());\n\t\t\n\t\tPanel flowLayoutPanel = new Panel();\n\t\tflowLayoutPanel.setLayout(new FlowLayout());\n\t\t\n\t\ttextArea = new JTextArea();\n\t\t\n\t\tMyCloseButton exitButton = new MyCloseButton(\"Exit\");\n\t\t/*\n\t\texit.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\t\t\n\t\t});\n\t\t*/\n\t\tMyOpenButton saveButton = new MyOpenButton(\"Open\");\n\t\t/*\n\t\tsaveButton.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\n\t\t});\n\t\t*/\n\t\tMySaveButton mySaveButton =new MySaveButton(\"Save\");\n\t\t//setVisible(mb);\n\t\tp.add(flowLayoutPanel, BorderLayout.SOUTH);\n\t\tflowLayoutPanel.add(exitButton);\n\t\tflowLayoutPanel.add(saveButton);\n\t\tflowLayoutPanel.add(mySaveButton);\n\t\tp.add(textArea, BorderLayout.CENTER); \n\t\tadd(p);\n\t\t\n\t\tcreateMenu();\n\t\t\n\t\tsetTitle(\"Text Editor\");\n\t\tsetSize(600, 600);\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\n\t}",
"private void setContentPanelComponents(){\n\t\tcontentPanel = new JPanel();\n\t\tcontentPanel.setLayout(new BorderLayout());\n\t\tcontentPanel.setBackground(Constant.DIALOG_BOX_COLOR_BG);\n\t\tgetContentPane().add(contentPanel, BorderLayout.NORTH);\n\t\t\n\t\t//--------------------------\n\t\tJPanel payrollDatePanel= new JPanel();\n\t\tpayrollDatePanel.setLayout(new GridLayout(0,2,5,5));\n\t\tpayrollDatePanel.setPreferredSize(new Dimension(0,20));\n\t\tpayrollDatePanel.setOpaque(false);\n\t\t\n\t\tlblPayrollDate = new JLabel(\"Payroll Date: \");\n\t\tlblPayrollDate.setForeground(Color.WHITE);\n\t\tlblPayrollDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpayrollDatePanel.add(lblPayrollDate);\n\t\t\n\t\t\n\t\tpayrollDateComboBox = new JComboBox<String>();\n\t\tpayrollDatePanel.add(payrollDateComboBox);\n\t\n\t\t\n\t\tcontentPanel.add(payrollDatePanel,BorderLayout.NORTH);\n\t\t//--------------------------\n\t\t\n\t\n\t\tJPanel textAreaPanel= new JPanel();\n\t\ttextAreaPanel.setPreferredSize(new Dimension(0, 95));\n\t\ttextAreaPanel.setLayout(null);\n\t\ttextAreaPanel.setOpaque(false);\n\t\t\n\t\t\n\t\tcontentPanel.add(textAreaPanel,BorderLayout.CENTER);\n\t\t\n\t\tJLabel lblComments = new JLabel(\"Comments:\");\n\t\tlblComments.setForeground(Color.WHITE);\n\t\tlblComments.setBounds(10, 11, 75, 14);\n\t\ttextAreaPanel.add(lblComments);\n\t\t\n\t\tcommentTextArea = new JTextArea();\n\t\tcommentTextArea.setBounds(87, 14, 100, 75);\n\t\ttextAreaPanel.add(commentTextArea);\n\t}",
"private void vbox_text(Group vbox, String text){\n vbox.getChildren().clear();\n vbox.setLayoutX(400);\n vbox.setLayoutY(100);\n\n Label label_help = new Label(text);\n label_help.setFont(Font.font(\"Cambria\", 20));\n label_help.setTextFill(Color.web(\"#000000\"));\n label_help.setWrapText(true);\n\n BorderPane canvasBorderPane = new BorderPane();\n canvasBorderPane.setPadding(new Insets(5));\n canvasBorderPane.setBackground(new Background(new BackgroundFill(Color.WHITE, new CornerRadii(0), Insets.EMPTY)));\n canvasBorderPane.setCenter(label_help);\n\n BorderPane border = new BorderPane();\n border.setCenter(canvasBorderPane);\n border.setPadding(new Insets(5));\n border.setBackground(new Background(new BackgroundFill(Color.GREY, new CornerRadii(0), Insets.EMPTY)));\n\n vbox.getChildren().add(border);\n }",
"public JPanel createPanel(List<AbstractFieldEditor> editorList,int cols) {\n\r\n JPanel panel=new JPanel();\r\n\r\n panel.setLayout(new GridBagLayout());\r\n \r\n int row = 0;\r\n\r\n int col = 0;\r\n\r\n for (int i = 0; i < editorList.size(); i++) {\r\n\r\n AbstractFieldEditor comp = editorList.get(i);\r\n\r\n if (comp.isVisible()) {\r\n\r\n if (comp instanceof NewLineFieldEditor) {\r\n row++;\r\n col = 0;\r\n continue;\r\n } else if (comp instanceof TextAreaFieldEditor) {\r\n // 转到新的一行\r\n row++;\r\n col = 0;\r\n JLabel label = new JLabel(getLabelText(comp));\r\n if (comp.getMaxContentSize() != 9999) {\r\n label.setText(comp.getName() + \"(\"+ comp.getMaxContentSize() + \"字内)\" + \"*\");\r\n }\r\n comp.setPreferredSize(new Dimension(150, comp.getOccRow() * 26));\r\n \r\n panel.add(label, new GridBagConstraints(col,row, 1, 1, 1.0, 1.0, GridBagConstraints.EAST,GridBagConstraints.NONE, new Insets(4, 0, 4, 4), 0,0));\r\n\r\n panel.add(comp, new GridBagConstraints(col + 1,row, comp.getOccCol(), comp.getOccRow(), 1.0, 1.0,GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL, new Insets(4, 0, 4,4), 0, 0));\r\n\r\n // 将当前所占的行空间偏移量计算上\r\n row += comp.getOccRow();\r\n col = 0;\r\n\r\n continue;\r\n }\r\n\r\n JLabel label = new JLabel(comp.getName());\r\n\r\n comp.setPreferredSize(new Dimension(200, 23));\r\n\r\n panel.add(label, new GridBagConstraints(col, row, 1,1, 1.0, 1.0, GridBagConstraints.EAST,GridBagConstraints.NONE, new Insets(5, 0, 5, 5), 0, 0));\r\n\r\n panel.add(comp, new GridBagConstraints(col + 1, row,1, 1, 1.0, 1.0, GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5),0, 0));\r\n\r\n if (col == cols * 2 - 2) {\r\n row++;\r\n col = 0;\r\n } else {\r\n col += 2;\r\n }\r\n }\r\n\r\n }\r\n return panel;\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextArea2 = new javax.swing.JTextArea();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane3 = new javax.swing.JScrollPane();\n jTextArea3 = new javax.swing.JTextArea();\n jTextField1 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n jScrollPane5 = new javax.swing.JScrollPane();\n jTextArea5 = new javax.swing.JTextArea();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jButton5 = new javax.swing.JButton();\n jScrollPane7 = new javax.swing.JScrollPane();\n jTextPane1 = new javax.swing.JTextPane();\n jScrollPane8 = new javax.swing.JScrollPane();\n jTextPane2 = new javax.swing.JTextPane();\n jScrollPane9 = new javax.swing.JScrollPane();\n jTextPane3 = new javax.swing.JTextPane();\n jButton6 = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(700, 350));\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n jPanel1.setPreferredSize(new java.awt.Dimension(700, 350));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1012, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 530, Short.MAX_VALUE)\n );\n\n jTextArea2.setEditable(false);\n jTextArea2.setColumns(20);\n jTextArea2.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n jTextArea2.setRows(5);\n jScrollPane2.setViewportView(jTextArea2);\n\n jLabel1.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n jLabel1.setText(\"Status\");\n\n jTextArea3.setEditable(false);\n jTextArea3.setColumns(20);\n jTextArea3.setFont(new java.awt.Font(\"Rockwell\", 1, 18)); // NOI18N\n jTextArea3.setRows(5);\n jScrollPane3.setViewportView(jTextArea3);\n\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jTextField1KeyPressed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n jLabel2.setText(\"Input\");\n\n jLabel3.setFont(new java.awt.Font(\"Dialog\", 0, 18)); // NOI18N\n jLabel3.setText(\"Points\");\n\n jLabel4.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n jLabel4.setText(\"Error messages\");\n\n jButton1.setFont(new java.awt.Font(\"Dialog\", 0, 18)); // NOI18N\n jButton1.setText(\"Start\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Change Prio\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Dialog\", 0, 18)); // NOI18N\n jLabel5.setText(\"Dist. Traveled\");\n\n jButton4.setBackground(new java.awt.Color(255, 0, 51));\n jButton4.setEnabled(false);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jTextArea5.setEditable(false);\n jTextArea5.setColumns(20);\n jTextArea5.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n jTextArea5.setRows(5);\n jScrollPane5.setViewportView(jTextArea5);\n\n jLabel6.setText(\"Bluetooth Connection \");\n\n jLabel7.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n jLabel7.setText(\"Bluetooth Status\");\n\n jLabel8.setFont(new java.awt.Font(\"Dialog\", 0, 18)); // NOI18N\n jLabel8.setText(\"Run Time\");\n\n jButton5.setText(\"Change RFID\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jTextPane1.setEditable(false);\n jTextPane1.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jScrollPane7.setViewportView(jTextPane1);\n\n jTextPane2.setEditable(false);\n jTextPane2.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jScrollPane8.setViewportView(jTextPane2);\n\n jTextPane3.setEditable(false);\n jTextPane3.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jScrollPane9.setViewportView(jTextPane3);\n\n jButton6.setText(\"Manual\");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n jLabel9.setFont(new java.awt.Font(\"Dialog\", 0, 18)); // NOI18N\n jLabel9.setText(\"Menu\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(302, 302, 302)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(282, 282, 282)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addComponent(jLabel2)))\n .addGap(47, 47, 47)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 436, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 235, Short.MAX_VALUE)))\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 284, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(43, 43, 43)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 1014, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(77, 77, 77)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(45, 45, 45))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(58, 58, 58))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(51, 51, 51)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addGap(76, 76, 76))))\n .addGroup(layout.createSequentialGroup()\n .addGap(125, 125, 125)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(1040, 1040, 1040)\n .addComponent(jLabel7)\n .addGap(91, 91, 91))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 532, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(105, 105, 105)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton2)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))\n .addGroup(layout.createSequentialGroup()\n .addGap(49, 49, 49)\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(73, 73, 73)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(72, 72, 72)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 61, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(65, 65, 65)))\n .addContainerGap())\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n pn_mostrar = new javax.swing.JScrollPane();\n txt_mostrar = new javax.swing.JTextArea();\n\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n setClosable(true);\n setMaximizable(true);\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n txt_mostrar.setEditable(false);\n txt_mostrar.setBackground(new java.awt.Color(51, 51, 51));\n txt_mostrar.setColumns(20);\n txt_mostrar.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n txt_mostrar.setForeground(new java.awt.Color(255, 255, 255));\n txt_mostrar.setRows(5);\n txt_mostrar.setSelectionColor(new java.awt.Color(51, 255, 0));\n pn_mostrar.setViewportView(txt_mostrar);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(pn_mostrar, javax.swing.GroupLayout.DEFAULT_SIZE, 298, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(pn_mostrar, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public void setLinedText(JTextArea textbox, ArrayList<String> ppltolist){\n String list = \" \";\n for (String fl : ppltolist){\n list = list.concat( fl + \"\\n\");\n }\n textbox.setText(list);\n textbox.setBorder(BorderFactory.createEmptyBorder(3, 5, 5, 5));\n textbox.setPreferredSize(new Dimension(400,7+ 17*ppltolist.size()));\n }",
"private void initComponents(String text) {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"WARNING\");\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jTextArea1.setText(text);\n jScrollPane1.setViewportView(jTextArea1);\n\n jLabel1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel1.setText(\"Log Warning:\");\n\n jButton1.setText(\"Esci\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jLabel1))\n .addGroup(layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton1)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 600, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(28, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(jLabel1)\n .addGap(36, 36, 36)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }",
"private void initComponents() {\n\t\ttext = new JTextField(9);\n\t\ttext.setEditable(false);\n\t\ttext.setFont(new Font(Font.DIALOG, Font.PLAIN, FONT_SIZE));\n\t\ttext.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\n\t\tthis.add(text);\n\t\tthis.pack();\n\t}",
"private void makeLabels() {\n infoPanel = new JPanel();\n\n infoText = new JTextArea(30,25);\n\n infoPanel.add(infoText);\n }",
"private void initInfoPanel() {\n\t\t// Info Panel\n\t\tinfoPanel = new JPanel();\n\t\tinfoPanel.setBorder(BorderFactory.createTitledBorder(\"\"));\n\t\t\n\t\t// Current Word Label\n\t\twordString = \"\";\n\t\twordLabel = new JLabel(\" \" + wordString, SwingConstants.LEFT);\n\t\twordLabel.setBorder(BorderFactory.createTitledBorder(\"Current Word\"));\n\t\twordLabel.setPreferredSize(new Dimension(280, 65));\n\t\twordLabel.setFont(new Font(\"Arial\", Font.BOLD, 16));\n\t\tinfoPanel.add(wordLabel);\n\t\t\n\t\t// Submit Button\n\t\tsubmitButton = new JButton(\"Submit Word\");\n\t\tsubmitButton.setPreferredSize(new Dimension(160, 65));\n\t\tsubmitButton.setFont(new Font(\"Arial\", Font.BOLD, 18));\n\t\tsubmitButton.setFocusable(false);\n\t\tsubmitButton.addActionListener(new SubmitListener());\n\t\tinfoPanel.add(submitButton);\n\t\t\n\t\t// Score Label\n\t\tscoreInt = 0;\n\t\tscoreLabel = new JLabel(\"\", SwingConstants.LEFT);\n\t\tscoreLabel.setBorder(BorderFactory.createTitledBorder(\"Score\"));\n\t\tscoreLabel.setPreferredSize(new Dimension(110, 65));\n\t\tscoreLabel.setFont(new Font(\"Arial\", Font.PLAIN, 16));\n\t\tinfoPanel.add(scoreLabel);\n\t}",
"private void setupTextArea() {\n\t\tcourseInfo = new JTextPane();\n\t\tinfoScrollPane = new JScrollPane(courseInfo);\n\t\tinfoScrollPane.setPreferredSize(new Dimension(350, 175));\n\t\tcourseInfo.setEditable(false);\n\t\tdisplay.add(infoScrollPane);\n\t}",
"void initializePopup() {\n\t\t\n\t\tsetDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\t\tsetBounds(100, 100, 450, 475);\n\t\tgetContentPane().setLayout(new BorderLayout());\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\n\t\tcontentPanel.setLayout(null);\n\n\t\tJLabel lblThemeName = new JLabel(\"Theme Name\");\n\t\tlblThemeName.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblThemeName.setBounds(6, 31, 87, 16);\n\t\tcontentPanel.add(lblThemeName);\n\n\t\tname = new JTextField();\n\t\tname.setBounds(134, 26, 294, 26);\n\t\tcontentPanel.add(name);\n\t\tname.setColumns(10);\n\n\t\tJLabel lblNewLabel = new JLabel(\"Words\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(6, 76, 87, 16);\n\t\tcontentPanel.add(lblNewLabel);\n\n\t\tJLabel lblLetterOrder = new JLabel(\"Letter Order\");\n\t\tlblLetterOrder.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblLetterOrder.setBounds(6, 235, 87, 16);\n\t\tcontentPanel.add(lblLetterOrder);\n\n\t\twords = new JTextPane();\n\t\twords.setBounds(134, 75, 294, 149);\n\t\tcontentPanel.add(words);\n\n\t\tletters = new JTextPane();\n\t\tletters.setBounds(134, 235, 294, 149);\n\t\tcontentPanel.add(letters);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"\\\" signals unselected tile\");\n\t\tlblNewLabel_1.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 13));\n\t\tlblNewLabel_1.setBounds(6, 392, 157, 16);\n\t\tcontentPanel.add(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Use % to signal for a random letter\");\n\t\tlblNewLabel_2.setBounds(202, 392, 242, 16);\n\t\tcontentPanel.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblRowsOf = new JLabel(\"6 rows of 6 letters\");\n\t\tlblRowsOf.setBounds(6, 340, 116, 16);\n\t\tcontentPanel.add(lblRowsOf);\n\t\t\n\t\tJLabel lblQQu = new JLabel(\"Q = Qu\");\n\t\tlblQQu.setBounds(6, 368, 61, 16);\n\t\tcontentPanel.add(lblQQu);\n\t\t{\n\t\t\tJPanel buttonPane = new JPanel();\n\t\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\t\tgetContentPane().add(buttonPane, BorderLayout.SOUTH);\n\t\t\t{\n\t\t\t\tokButton = new JButton(\"OK\");\n\t\t\t\tokButton.setActionCommand(\"OK\");\n\t\t\t\tokButton.addActionListener(new AcceptThemeController(this));\n\t\t\t\tbuttonPane.add(okButton);\n\t\t\t\tgetRootPane().setDefaultButton(okButton);\n\t\t\t}\n\t\t\t{\n\t\t\t\tJButton cancelButton = new JButton(\"Cancel\");\n\t\t\t\tcancelButton.setActionCommand(\"Cancel\");\n\t\t\t\tcancelButton.addActionListener(new CloseThemeController(this, model));\n\t\t\t\tbuttonPane.add(cancelButton);\n\t\t\t}\n\t\t}\n\t}",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(2, 2, new Insets(30, 30, 30, 30), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n mainPanel.add(scrollPane1, new GridConstraints(0, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n chatPane = new JTextPane();\n chatPane.setText(\"\");\n scrollPane1.setViewportView(chatPane);\n chatField = new JTextField();\n mainPanel.add(chatField, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n sendButton = new JButton();\n sendButton.setText(\"Send\");\n mainPanel.add(sendButton, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"protected void qPanel_init()\r\n\t{\r\n \tqueryPanel.removeAll();\r\n \t\r\n\t\tGroupLayout layout = new GroupLayout(queryPanel);\r\n\t\tqueryPanel.setLayout(layout);\r\n\t\tlayout.setAutoCreateGaps(true);\r\n\t\tlayout.setAutoCreateContainerGaps(true);\r\n\t\t\r\n\t\tqueryLabel = new JLabel(\"Query Tab\");\r\n\t\t\r\n\t\tDimension size = new Dimension(220,25);\r\n \tbasicTextField = new JTextField(30);\r\n \tbasicTextField.setActionCommand(basicLabelText);\r\n \tbasicTextField.addActionListener(this);\r\n \tbasicTextField.setText(\"*.*\");\r\n \tbasicTextField.setPreferredSize(size);\r\n \tbasicTextField.setMaximumSize(size);\r\n \tbasicTextField.setMinimumSize(size);\r\n\t\t\r\n\t\t\r\n\t\tsize = new Dimension(220,25);\r\n \tqueryTextField = new JTextField(30);\r\n queryTextField.setActionCommand(queryLabelText);\r\n queryTextField.addActionListener(this);\r\n queryTextField.setText(\"*:*\");\r\n queryTextField.setPreferredSize(size);\r\n queryTextField.setMaximumSize(size);\r\n queryTextField.setMinimumSize(size);\r\n \r\n size = new Dimension(100,25);\r\n rowsTextField = new JTextField(10);\r\n rowsTextField.setActionCommand(rowsLabelText);\r\n rowsTextField.addActionListener(this);\r\n rowsTextField.setText(\"10\");\r\n rowsTextField.setPreferredSize(size);\r\n rowsTextField.setMaximumSize(size);\r\n rowsTextField.setMinimumSize(size);\r\n \r\n size = new Dimension(250,150);\r\n interestedUsers=featureMap.getInstance().interestedUsers();\r\n list = new JList<String>(interestedUsers);\r\n list.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\r\n listSelectionModel = list.getSelectionModel();\r\n listSelectionModel.addListSelectionListener(this);\r\n JScrollPane listPane = new JScrollPane(list);\r\n// list.addListSelectionListener(this);\r\n queryPanel.add(listPane);\r\n \r\n JLabel basicTextFieldLabel = new JLabel(basicLabelText + \":\\n\");\r\n basicTextFieldLabel.setLabelFor(basicTextField);\r\n queryPanel.add(basicTextFieldLabel);\r\n queryPanel.add(basicTextField); \r\n \r\n JLabel queryTextFieldLabel = new JLabel(queryLabelText + \":\\n\");\r\n queryTextFieldLabel.setLabelFor(queryTextField);\r\n queryPanel.add(queryTextFieldLabel);\r\n queryPanel.add(queryTextField);\r\n \r\n JLabel rowsTextFieldLabel = new JLabel(rowsLabelText + \":\\n\");\r\n rowsTextFieldLabel.setLabelFor(rowsTextField);\r\n queryPanel.add(rowsTextFieldLabel);\r\n queryPanel.add(rowsTextField);\r\n \r\n startDate = new JXDatePicker();\r\n endDate = new JXDatePicker();\r\n startDate.setDate(featureMap.getInstance().startDate());\r\n startDate.setFormats(new SimpleDateFormat(\"dd.MM.yyyy\"));\r\n startDate.addActionListener(this);\r\n queryStartDate = startDate.getDate();\r\n \r\n endDate.setDate(Calendar.getInstance().getTime());\r\n endDate.setFormats(new SimpleDateFormat(\"dd.MM.yyyy\"));\r\n endDate.addActionListener(this);\r\n queryEndDate = endDate.getDate();\r\n \r\n JLabel startDateLabel = new JLabel(\"startDate: \\n\");\r\n queryPanel.add(startDateLabel);\r\n queryPanel.add(startDate);\r\n JLabel endDateLabel = new JLabel(\"endDate: \\n\");\r\n queryPanel.add(endDateLabel);\r\n queryPanel.add(endDate);\t\t\r\n \r\n generalButton = new JButton();\r\n generalButton.setVerticalTextPosition(AbstractButton.CENTER);\r\n generalButton.setHorizontalTextPosition(AbstractButton.LEADING); //aka LEFT, for left-to-right locales\r\n generalButton.addActionListener(this);\r\n queryPanel.add(generalButton); \t \r\n \r\n \r\n opt1Button = new JRadioButton();\r\n opt1Button.setSelected(true);\r\n opt1Button.addActionListener(this);\r\n \t\r\n opt2Button = new JRadioButton();\r\n opt2Button.setMnemonic(KeyEvent.VK_F);\r\n opt2Button.setSelected(false);\r\n opt2Button.setActionCommand(\"Frequency\");\r\n opt2Button.addActionListener(this);\r\n \r\n ButtonGroup group = new ButtonGroup();\r\n group.add(opt1Button);\r\n group.add(opt2Button);\r\n \r\n queryPanel.add(opt1Button);\r\n queryPanel.add(opt2Button);\r\n \r\n layout.setHorizontalGroup(\r\n \t\t layout.createSequentialGroup()\r\n \t\t .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\r\n \t\t \t\t.addComponent(queryLabel)\r\n \t\t \t\t.addGroup(layout.createSequentialGroup()\r\n \t\t \t\t\t.addGroup(layout.createParallelGroup()\r\n \t\t \t\t\t\t\t.addComponent(basicTextFieldLabel)\r\n \t\t \t\t\t\t\t.addComponent(queryTextFieldLabel)\r\n \t\t \t\t\t\t\t.addComponent(rowsTextFieldLabel)\r\n \t\t \t\t\t\t\t)\r\n \t\t \t\t\t.addGroup(layout.createParallelGroup()\t\r\n \t\t \t\t\t\t\t.addComponent(basicTextField)\r\n \t\t \t\t\t\t\t.addComponent(queryTextField)\r\n \t\t \t\t\t\t\t.addComponent(rowsTextField)\r\n \t\t \t\t\t\t\t.addComponent(opt1Button)\r\n \t\t \t\t\t\t\t.addComponent(opt2Button)\r\n \t\t \t\t\t\t\t.addComponent(generalButton) \t\t \t\t\t\t\t\r\n \t\t \t\t\t\t\t)\r\n \t\t \t\t\t.addGroup(layout.createParallelGroup()\r\n \t\t \t\t\t\t\t.addComponent(startDateLabel)\r\n \t\t \t\t\t\t\t.addComponent(endDateLabel)\r\n \t\t \t\t\t\t\t)\t\t\t\r\n \t\t \t\t\t.addGroup(layout.createParallelGroup()\r\n \t\t \t\t\t\t\t.addComponent(startDate)\r\n \t\t \t\t\t\t\t.addComponent(endDate)\r\n \t\t \t\t\t\t\t)\r\n \t\t \t\t\t.addComponent(listPane)\r\n \t\t \t\t\t)\r\n \t\t \t\t)\r\n \t\t);\r\n \r\n layout.setVerticalGroup(\r\n \t\tlayout.createSequentialGroup()\r\n \t\t\t.addComponent(queryLabel)\r\n \t\t\t.addGroup(layout.createParallelGroup()\r\n \t\t\t\t.addGroup(layout.createSequentialGroup()\r\n \t\t\t\t\t\t.addComponent(basicTextFieldLabel)\r\n \t\t\t\t\t\t.addComponent(queryTextFieldLabel)\r\n \t\t\t\t\t\t.addComponent(rowsTextFieldLabel)\r\n \t\t\t\t\t\t)\r\n \t\t\t\t.addGroup(layout.createSequentialGroup()\r\n \t\t\t\t\t\t.addComponent(basicTextField)\r\n \t\t\t\t\t\t.addComponent(queryTextField)\r\n \t\t\t\t\t\t.addComponent(rowsTextField)\r\n \t\t\t\t\t\t.addComponent(opt1Button)\r\n \t\t\t\t\t\t.addComponent(opt2Button)\r\n \t\t\t\t\t\t.addComponent(generalButton) \t\t\t\t\t\t\r\n \t\t\t\t\t\t)\r\n \t\t\t\t.addGroup(layout.createSequentialGroup()\r\n \t\t\t\t\t\t.addComponent(startDateLabel)\r\n \t\t\t\t\t\t.addComponent(endDateLabel)\r\n \t\t\t\t\t\t)\r\n \t\t\t\t.addGroup(layout.createSequentialGroup()\r\n \t\t\t\t\t\t.addComponent(startDate)\r\n \t\t\t\t\t\t.addComponent(endDate)\r\n \t\t\t\t\t\t)\r\n \t\t\t\t.addComponent(listPane)\r\n \t\t )\r\n \t\t \t//.addComponent(listPane))\r\n \t\t);\r\n \r\n queryPanel_initialized = true;\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\townPanel = new NicePanel();\n\t\tframe.setTitle(\"Per Seconde Wijzer\");\n\t\tframe.setContentPane(ownPanel);\n\t\t// frame.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 1280, 720);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(\n\t\t\t\tnew MigLayout(\"\", \"[300.00,grow,left][100.00,grow,fill][100.00,grow][300.00,grow]\",\n\t\t\t\t\t\t\"[157.00,grow,fill][160px:172.00px:180px,fill][][][][][157.00,grow]\"));\n\n\t\tJLabel lblNewLabel = new JLabel(\"<html>PER<br />\\nSECONDE<br />\\nWIJZER</html>\");\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.BOLD, 42));\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\townPanel.add(lblNewLabel, \"cell 1 1 2 1\");\n\n\t\ttxtVulHierJe = new JTextField();\n\t\ttxtVulHierJe.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\ttxtVulHierJe.setText(TXT_PLACEH_NAAM_INPUT);\n\t\tframe.getContentPane().add(txtVulHierJe, \"cell 1 2 2 1,growx\");\n\t\ttxtVulHierJe.setColumns(10);\n\n\t\t// Als er met de mouse geklikt wordt zal de placeholder text verwijderd\n\t\t// worden\n\t\ttxtVulHierJe.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tif (arg0.getButton() == 0x1 && txtVulHierJe.getText().equals(TXT_PLACEH_NAAM_INPUT))\n\t\t\t\t\ttxtVulHierJe.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t// Placeholder wijzgen d.m.v. een keypress\n\t\ttxtVulHierJe.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif (txtVulHierJe.getText().equals(TXT_PLACEH_NAAM_INPUT)) txtVulHierJe.setText(\"\");\n\t\t\t}\n\t\t});\n\n\t\tNiceButton btnNewButton = new NiceButton(\"Spelregels\");\n\t\tfinal HelpScherm helpScherm = new HelpScherm(this);\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\topenPanel(helpScherm);\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton, \"cell 1 3,growx\");\n\n\t\tNiceButton btnNewButton_3 = new NiceButton(\"Start\");\n\t\tbtnNewButton_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\n\t\ttxtVulHierJe.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\tif (arg0.getKeyCode() == KeyEvent.VK_ENTER) startGame();\n\t\t\t}\n\t\t});\n\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tstartGame();\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton_3, \"cell 2 3 1 2,grow\");\n\n\t\tNiceButton btnNewButton_2 = new NiceButton(\"Highscores\");\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\topenPanel(new Highscore(spel));\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton_2, \"cell 1 4,growx\");\n\t}",
"private void initComponents() {\n SM3 = new JPanel();\n TitleLBSM3 = new JLabel();\n SM3SCLP1 = new JScrollPane();\n SM3Source1 = new JTextArea();\n SM3SCLP2 = new JScrollPane();\n SM3encode2 = new JTextArea();\n SM3SCLP3 = new JScrollPane();\n SM3encode3 = new JTextArea();\n SM3encodebtn = new JButton();\n SM3LB4 = new JLabel();\n SM3LB5 = new JLabel();\n SM3LB6 = new JLabel();\n\n //======== this ========\n setLayout(null);\n\n //======== SM3 ========\n {\n SM3.setBackground(null);\n SM3.setToolTipText(\" \");\n SM3.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 12));\n SM3.setLayout(null);\n\n //---- TitleLBSM3 ----\n TitleLBSM3.setText(\"SM3\");\n TitleLBSM3.setFont(new Font(\"Jokerman\", Font.PLAIN, 35));\n TitleLBSM3.setForeground(null);\n SM3.add(TitleLBSM3);\n TitleLBSM3.setBounds(270, 35, 81, TitleLBSM3.getPreferredSize().height);\n\n //======== SM3SCLP1 ========\n {\n\n //---- SM3Source1 ----\n SM3Source1.setLineWrap(true);\n SM3SCLP1.setViewportView(SM3Source1);\n }\n SM3.add(SM3SCLP1);\n SM3SCLP1.setBounds(5, 129, 611, 140);\n\n //======== SM3SCLP2 ========\n {\n\n //---- SM3encode2 ----\n SM3encode2.setLineWrap(true);\n SM3SCLP2.setViewportView(SM3encode2);\n }\n SM3.add(SM3SCLP2);\n SM3SCLP2.setBounds(85, 383, 403, 57);\n\n //======== SM3SCLP3 ========\n {\n\n //---- SM3encode3 ----\n SM3encode3.setLineWrap(true);\n SM3SCLP3.setViewportView(SM3encode3);\n }\n SM3.add(SM3SCLP3);\n SM3SCLP3.setBounds(85, 469, 403, 57);\n\n //---- SM3encodebtn ----\n SM3encodebtn.setText(\"Encrypt\");\n SM3encodebtn.addActionListener(e -> SM3encodebtnActionPerformed(e));\n SM3.add(SM3encodebtn);\n SM3encodebtn.setBounds(515, 420, 80, 61);\n\n //---- SM3LB4 ----\n SM3LB4.setText(\"\\u2191 Source\");\n SM3LB4.setBackground(new Color(51, 51, 51));\n SM3LB4.setForeground(null);\n SM3LB4.setFont(SM3LB4.getFont().deriveFont(SM3LB4.getFont().getSize() + 5f));\n SM3.add(SM3LB4);\n SM3LB4.setBounds(12, 275, 98, 22);\n\n //---- SM3LB5 ----\n SM3LB5.setText(\"Result \\u2192\");\n SM3LB5.setForeground(null);\n SM3.add(SM3LB5);\n SM3LB5.setBounds(7, 401, 77, 21);\n\n //---- SM3LB6 ----\n SM3LB6.setText(\"UPResult \\u2192\");\n SM3LB6.setForeground(null);\n SM3.add(SM3LB6);\n SM3LB6.setBounds(7, 487, 77, 21);\n\n {\n // compute preferred size\n Dimension preferredSize = new Dimension();\n for(int i = 0; i < SM3.getComponentCount(); i++) {\n Rectangle bounds = SM3.getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = SM3.getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n SM3.setMinimumSize(preferredSize);\n SM3.setPreferredSize(preferredSize);\n }\n }\n add(SM3);\n SM3.setBounds(0, 0, 620, 590);\n\n {\n // compute preferred size\n Dimension preferredSize = new Dimension();\n for(int i = 0; i < getComponentCount(); i++) {\n Rectangle bounds = getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n setMinimumSize(preferredSize);\n setPreferredSize(preferredSize);\n }\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }",
"private void setupUI() {\n\t\tpanel1 = new JPanel();\n\t\tpanel1.setLayout(new BorderLayout(0, 0));\n\t\tfinal JPanel panel2 = new JPanel();\n\t\tpanel2.setLayout(new FlowLayout(FlowLayout.LEFT, 2, 2));\n\t\tpanel2.setBackground(Color.BLACK);\n\t\tpanel2.setPreferredSize(new Dimension(800, 34));\n\t\tpanel1.add(panel2, BorderLayout.SOUTH);\n\t\tstopButton = new JButton();\n\t\tstopButton.setText(\"STOP\");\n\t\tstopButton.setPreferredSize(new Dimension(82, 30));\n\t\tpanel2.add(stopButton);\n\t\tclsButton = new JButton();\n\t\tclsButton.setPreferredSize(new Dimension(82, 30));\n\t\tclsButton.setText(\"CLS\");\n\t\tpanel2.add(clsButton);\n\t\trunButton = new JButton();\n\t\trunButton.setPreferredSize(new Dimension(82, 30));\n\t\trunButton.setText(\"RUN\");\n\t\tpanel2.add(runButton);\n\t\tcaretLabel = new JLabel();\n\t\tcaretLabel.setPreferredSize(new Dimension(82, 30));\n\t\tcaretLabel.setForeground(Color.pink);\n\t\tpanel2.add(caretLabel);\n\t\tmainTextArea = new ShellTextComponent(this);\n\t\tmainTextArea.setCaretColor(new Color(Colors.COLORS[14]));\n\t\tfinal JScrollPane scrollPane1 = new JScrollPane(mainTextArea);\n\n\t\tpanel1.add(scrollPane1, BorderLayout.CENTER);\n\t\tpanel1.setPreferredSize(new Dimension(800, 600));\n\t}",
"private JPanel addText() {\n\t\t// initiate my text panel\n\t\tJPanel textPanel = new JPanel();\n\t\t// also uses grid layout\n\t\ttextPanel.setLayout(new GridLayout(2, 1));\n\n\t\t// add the title to a JLabel\n\t\tJLabel title = new JLabel(\"Disney Characters\");\n\t\t// set alignment, font and color\n\t\ttitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttitle.setFont(new Font(\"Serif\", Font.BOLD, 48));\n\t\ttitle.setForeground(new Color(86, 10, 0));\n\n\t\t// a String array of the names of my favorite Disney characters\n\t\tString[] LIST = new String[] { \"Mickey Mouse\", \"Stitch\", \"Donald Duck\",\n\t\t\t\t\"Tinkerbell\", \"Goofy\", \"Winnie the Pooh\", \"Minnie Mouse\",\n\t\t\t\t\"Baymax\", \"Snow White\", \"Ariel\", \"Mulan\", \"Cinderella\",\n\t\t\t\t\"Alice\", \"Rapunzel\", \"Elsa\", \"Aurora\" };\n\t\t// initiate a JLabel that will be holding each name\n\t\tJLabel list;\n\t\t// for the length of the list\n\t\tfor (int i = 0; i < LIST.length; i++) {\n\t\t\tnameList.insertFirst(LIST[i]);\n\t\t\t// create a new JLabel and put in a name each time\n\t\t\tlist = new JLabel(nameList.getFirst());\n\t\t\t// set alignment, font and color\n\t\t\tlist.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\tlist.setFont(new Font(\"Serif\", Font.BOLD, 18));\n\t\t\tlist.setForeground(new Color(86, 10, 0));\n\t\t\t// add this JLabel to the list panel\n\t\t\tlistPanel.add(list);\n\t\t}\n\t\t// add the title and the list to the text panel\n\t\ttextPanel.add(title);\n\t\ttextPanel.add(listPanel);\n\t\t// return the text panel\n\t\treturn textPanel;\n\t}",
"public void motif_zone(){\n\n JLabel lbl_Motif = new JLabel(\"Motif du Rapport :\");\n lbl_Motif.setBounds(40, 130, 119, 16);\n add(lbl_Motif);\n\n motif_content = new JTextField();\n motif_content.setBounds(200, 130, 200, 22);\n motif_content.setText(rapport_visite.elementAt(DAO_Rapport.indice)[4]);\n motif_content.setEditable(false);\n add(motif_content);\n\n\n\n }",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new BorderLayout(0, 0));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:grow,top:3dlu:noGrow,center:max(d;4px):noGrow\"));\n mainPanel.add(panel2, BorderLayout.SOUTH);\n postButton = new JButton();\n postButton.setText(\"Post\");\n CellConstraints cc = new CellConstraints();\n panel2.add(postButton, cc.xy(1, 3));\n final JSplitPane splitPane1 = new JSplitPane();\n splitPane1.setResizeWeight(0.5);\n mainPanel.add(splitPane1, BorderLayout.CENTER);\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:noGrow,top:3dlu:noGrow,center:d:grow\"));\n splitPane1.setRightComponent(panel3);\n final JLabel label1 = new JLabel();\n label1.setText(\"Query Result\");\n panel3.add(label1, cc.xy(1, 1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel3.add(scrollPane1, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.FILL));\n queryResult = new JTextArea();\n scrollPane1.setViewportView(queryResult);\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:noGrow,top:3dlu:noGrow,center:d:grow\"));\n splitPane1.setLeftComponent(panel4);\n final JLabel label2 = new JLabel();\n label2.setText(\"Cypher Query\");\n panel4.add(label2, cc.xy(1, 1));\n final JScrollPane scrollPane2 = new JScrollPane();\n panel4.add(scrollPane2, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.FILL));\n queryEditor = new JTextArea();\n scrollPane2.setViewportView(queryEditor);\n }",
"private void buildPanel()\n\t{\n\t\tvoterIDMessage = new JLabel(\"Please Enter Your Voter ID.\");\n\t\tbutton1 = new JButton(\"Cancel\");\n\t\tbutton1.addActionListener(new ButtonListener());\n\t\tbutton2 = new JButton(\"OK\");\n\t\tbutton2.addActionListener(new ButtonListener());\n\t\tidText = new JTextField(10);\n\t\tpanel1 = new JPanel();\n\t\tpanel2 = new JPanel();\n\t\tpanel3 = new JPanel();\n\t\tpanel1.add(voterIDMessage);\n\t\tpanel2.add(idText);\n\t\tpanel3.add(button1);\n\t\tpanel3.add(button2);\n\t}",
"private void placeContentsInPanel() {\n\t\tGridBagConstraints constraints = new GridBagConstraints();\n\t\tconstraints.gridx = 0; \n\t\tconstraints.gridy = 0; \n\t\tconstraints.gridwidth = 1; \n\t\tconstraints.gridheight = 1; \n\t\tconstraints.insets = new Insets(10,0,0,0);\n\t\tconstraints.weighty = 0.0;\n\t\tconstraints.weightx = 1.0;\n\t\tthis.add(jpYourMusic,constraints);\n\n\t\tconstraints.gridx = 0; \n\t\tconstraints.gridy = 2; \n\t\tconstraints.gridwidth = 1; \n\t\tconstraints.gridheight = 1; \n\t\tconstraints.weighty = 0.0;\n\t\tthis.add(jpPreLists,constraints);\n\t\t\n\t\tconstraints.gridx = 0; \n\t\tconstraints.gridy = 3; \n\t\tconstraints.gridwidth = 1; \n\t\tconstraints.gridheight = 1; \n\t\tconstraints.weighty = 0.0;\n\t\tthis.add(jlYourLists,constraints);\n\t\t\n\t\tconstraints.gridx = 0; \n\t\tconstraints.gridy = 4; \n\t\tconstraints.gridwidth = 1; \n\t\tconstraints.gridheight = 1; \n\t\tconstraints.weighty = 0.0;\n\t\tthis.add(jbCreateLists,constraints);\n\t\t\n\t\t\n\t\tconstraints.gridx = 0; \n\t\tconstraints.gridy = 5; \n\t\tconstraints.gridwidth = 1; \n\t\tconstraints.gridheight = 1; \n\t\tconstraints.weighty = 0.0;\n\t\tthis.add(jpIntroduceNameList,constraints);\n\t\t\n\t\tconstraints.anchor = GridBagConstraints.NORTH;\n\t\tconstraints.gridx = 0; \n\t\tconstraints.gridy = 6; \n\t\tconstraints.gridwidth = 1; \n\t\tconstraints.gridheight = 1; \n\t\tconstraints.weighty = 1.0;\n\t\tthis.add(myTable,constraints);\n\t}",
"private void inicialitzarComponents() {\n\t\tsetLayout(new BorderLayout(0, 0));\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setOpaque(false);\n\t\tadd(panel, BorderLayout.NORTH);\n\n\t\tBox verticalBox = Box.createVerticalBox();\n\t\tverticalBox.setOpaque(false);\n\t\tpanel.add(verticalBox);\n\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setOpaque(false);\n\t\tverticalBox.add(panel_2);\n\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setOpaque(false);\n\t\tverticalBox.add(panel_3);\n\n\t\tJLabel lblNewLabel = new JLabel(nomUsuari);\n\t\tlblNewLabel.setFont(lblNewLabel.getFont().deriveFont(30f));\n\t\tpanel_3.add(lblNewLabel);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setOpaque(false);\n\t\tadd(panel_1, BorderLayout.CENTER);\n\n\t\tBox verticalBox_1 = Box.createVerticalBox();\n\t\tverticalBox_1.setOpaque(false);\n\t\tpanel_1.add(verticalBox_1);\n\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setOpaque(false);\n\t\tverticalBox_1.add(panel_4);\n\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Peces girades:\");\n\t\tpanel_4.add(lblNewLabel_1);\n\n\t\tJLabel lblNewLabel_2 = new JLabel(String.valueOf(records.get(\"pecesGirades\")));\n\t\tpanel_4.add(lblNewLabel_2);\n\n\t\tJPanel panel_5 = new JPanel();\n\t\tpanel_5.setOpaque(false);\n\t\tverticalBox_1.add(panel_5);\n\n\t\tJLabel lblNewLabel_3 = new JLabel(\"Partides blanques guanyades:\");\n\t\tpanel_5.add(lblNewLabel_3);\n\n\t\tJLabel lblNewLabel_4 = new JLabel(String.valueOf(records.get(\"partidesBlanquesGuanyades\")));\n\t\tpanel_5.add(lblNewLabel_4);\n\n\t\tJPanel panel_6 = new JPanel();\n\t\tpanel_6.setOpaque(false);\n\t\tverticalBox_1.add(panel_6);\n\n\t\tJLabel lblNewLabel_5 = new JLabel(\"Partides negres guanyades:\");\n\t\tpanel_6.add(lblNewLabel_5);\n\n\t\tJLabel lblNewLabel_6 = new JLabel(String.valueOf(records.get(\"partidesNegresGuanyades\")));\n\t\tpanel_6.add(lblNewLabel_6);\n\n\t\tpanellRanking.setLayout(new BorderLayout());\n\t\tpanellRanking.add(menu, BorderLayout.NORTH);\n\t\tpanellRanking.add(taulaHoritzontal, BorderLayout.CENTER);\n\t\tpanellRanking.setBorder(BorderFactory.createLineBorder(Color.white, 4));\n\t\tJPanel panel_7 = new JPanel();\n\t\tpanel_7.setOpaque(false);\n\t\tpanel_7.setSize(20, 20);\n\t\tpanel_7.add(panellRanking);\n\t\tverticalBox_1.add(panel_7);\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tadd_values_box();\n\t\t\t\tadd_button.setBounds(endof_box_pos + 5 , 0, 20,20);\n\t\t\t\tremove_button.setBounds(endof_box_pos + 30, 0, 20, 20);\n\t\t\t\tset_button.setBounds(endof_box_pos + 55, 0, 30, 20);\n\t\t\t\tString_box_pane.setSize(endof_box_pos + 110, 20);\n\t\t\t}",
"private void setTextboxesToContainedData()\n {\n updateWeightTextFieldToStored(\"failure loading default\");\n updateSpriteTextFieldToStored(\"failure loading default\");\n }",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(4, 4, new Insets(10, 10, 10, 10), -1, -1));\n mainPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null));\n final JLabel label1 = new JLabel();\n label1.setText(\"Title\");\n mainPanel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n textFieldTitle = new JTextField();\n textFieldTitle.setEditable(false);\n mainPanel.add(textFieldTitle, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Owner\");\n mainPanel.add(label2, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n textFieldOwner = new JTextField();\n textFieldOwner.setEditable(false);\n mainPanel.add(textFieldOwner, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Last edition\");\n mainPanel.add(label3, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"By\");\n label4.setVerifyInputWhenFocusTarget(true);\n mainPanel.add(label4, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n textFieldTimestamp = new JTextField();\n textFieldTimestamp.setEditable(false);\n mainPanel.add(textFieldTimestamp, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n textFieldLastEditor = new JTextField();\n textFieldLastEditor.setEditable(false);\n mainPanel.add(textFieldLastEditor, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n PanelButtons = new JPanel();\n PanelButtons.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(PanelButtons, new GridConstraints(3, 0, 1, 4, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n shareButton = new JButton();\n shareButton.setText(\"Share\");\n PanelButtons.add(shareButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n closeButton = new JButton();\n closeButton.setText(\"Close\");\n PanelButtons.add(closeButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveButton = new JButton();\n saveButton.setText(\"Save\");\n PanelButtons.add(saveButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n mainPanel.add(scrollPane1, new GridConstraints(2, 0, 1, 4, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 300), null, 0, false));\n textAreaContent = new JTextArea();\n textAreaContent.setLineWrap(true);\n scrollPane1.setViewportView(textAreaContent);\n }",
"private void setupPanel()\n\t{\n\t\tsetLayout(numberLayout);\n\t\tsetBorder(new EtchedBorder(EtchedBorder.RAISED, Color.GRAY, Color.DARK_GRAY));\n\t\tsetBackground(Color.LIGHT_GRAY);\n\t\tadd(ans);\n\t\tadd(clear);\n\t\tadd(backspace);\n\t\tadd(divide);\n\t\tadd(seven);\n\t\tadd(eight);\n\t\tadd(nine);\n\t\tadd(multiply);\n\t\tadd(four);\n\t\tadd(five);\n\t\tadd(six);\n\t\tadd(subtract);\n\t\tadd(one);\n\t\tadd(two);\n\t\tadd(three);\n\t\tadd(add);\n\t\tadd(negative);\n\t\tadd(zero);\n\t\tadd(point);\n\t\tadd(equals);\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.getContentPane().setForeground(new Color(0, 0, 0));\r\n\t\tframe.setBounds(100, 100, 450, 367);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBounds(75, 34, 77, -30);\r\n\t\tframe.getContentPane().add(panel);\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBackground(Color.WHITE);\r\n\t\tpanel_1.setBounds(15, 20, 398, 53);\r\n\t\tframe.getContentPane().add(panel_1);\r\n\t\tpanel_1.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblBodyMassIndex = new JLabel(\"Body mass index\");\r\n\t\tlblBodyMassIndex.setForeground(Color.GREEN);\r\n\t\tlblBodyMassIndex.setFont(new Font(\"Times New Roman\", Font.BOLD, 17));\r\n\t\tlblBodyMassIndex.setBounds(105, 16, 250, 20);\r\n\t\tpanel_1.add(lblBodyMassIndex);\r\n\t\t\r\n\t\tJPanel panel_2 = new JPanel();\r\n\t\tpanel_2.setBackground(Color.PINK);\r\n\t\tpanel_2.setForeground(Color.DARK_GRAY);\r\n\t\tpanel_2.setBounds(15, 77, 398, 214);\r\n\t\tframe.getContentPane().add(panel_2);\r\n\t\tpanel_2.setLayout(null);\r\n\t\t\r\n\t\tJLabel l1 = new JLabel(\"Height(m)\");\r\n\t\tl1.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\r\n\t\tl1.setBounds(28, 38, 103, 20);\r\n\t\tpanel_2.add(l1);\r\n\t\t\r\n\t\tJLabel l2 = new JLabel(\"Weight(kg)\");\r\n\t\tl2.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\r\n\t\tl2.setBounds(28, 94, 88, 20);\r\n\t\tpanel_2.add(l2);\r\n\t\t\r\n\t\ttf = new JTextField();\r\n\t\ttf.setBounds(183, 35, 146, 26);\r\n\t\tpanel_2.add(tf);\r\n\t\ttf.setColumns(10);\r\n\t\t\r\n\t\ttf1 = new JTextField();\r\n\t\ttf1.setBounds(183, 91, 146, 26);\r\n\t\tpanel_2.add(tf1);\r\n\t\ttf1.setColumns(10);\r\n\t\t\r\n\t\tJLabel l3 = new JLabel(\"BMI\");\r\n\t\tl3.setFont(new Font(\"Times New Roman\", Font.BOLD, 17));\r\n\t\tl3.setBounds(38, 130, 69, 20);\r\n\t\tpanel_2.add(l3);\r\n\t\t\r\n\t\ttf2 = new JTextField();\r\n\t\ttf2.setBounds(143, 126, 88, 26);\r\n\t\tpanel_2.add(tf2);\r\n\t\ttf2.setColumns(10);\r\n\t\t\r\n\t\tJLabel l4 = new JLabel(\"\");\r\n\t\tl4.setBounds(249, 130, 134, 20);\r\n\t\tpanel_2.add(l4);\r\n\t\t\r\n\t\tJButton b1 = new JButton(\"Calculate\");\r\n\t\tb1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tString a=tf.getText();\r\n\t\t\t\tfloat height=Float.valueOf(a);\r\n\t\t\t\tString b=tf1.getText();\r\n\t\t\t\tfloat weight=Float.valueOf(b);\r\n\t\t\t\tfloat c=height*height;\r\n\t\t\t\tfloat d=weight/c;\r\n\t\t\t\tString e=String.valueOf(d);\r\n\t\t\t\ttf2.setText(e);\r\n\t\t\t\tif(d<18.5)\r\n\t\t\t\t{\r\n\t\t\t\t\tl4.setText(\"Under Weight\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(d>18.5&&d<24.5)\r\n\t\t\t\t{\r\n\t\t\t\t\tl4.setText(\"Normal Weight\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(d>25&&d<29.9)\r\n\t\t\t\t{\r\n\t\t\t\t\tl4.setText(\"Over Weight\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tl4.setText(\"obese\");\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tb1.setBounds(0, 169, 104, 29);\r\n\t\tpanel_2.add(b1);\r\n\t\t\r\n\t\tJButton b2 = new JButton(\"Clear\");\r\n\t\tb2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttf.setText(\"\");\r\n\t\t\t\ttf1.setText(\"\");\r\n\t\t\t\ttf2.setText(\"\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tb2.setBounds(131, 168, 100, 29);\r\n\t\tpanel_2.add(b2);\r\n\t\t\r\n\t\tJButton b3 = new JButton(\"Exit\");\r\n\t\tb3.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t});\r\n\t\tb3.setBounds(253, 169, 103, 29);\r\n\t\tpanel_2.add(b3);\r\n\t\t\r\n\t\t\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 459, 602);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBounds(0, 0, 432, 38);\n\t\tpanel.add(panel_1);\n\t\tpanel_1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n\t\t\n\t\tJLabel lblServerAddress = new JLabel(\"Server Address\");\n\t\tpanel_1.add(lblServerAddress);\n\t\t\n\t\tserverAddressTextField = new JTextField(this.address);\n\t\tserverAddressTextField.setEditable(false);\n\t\tpanel_1.add(serverAddressTextField);\n\t\tserverAddressTextField.setColumns(10);\n\t\t\n\t\tJLabel lblPort = new JLabel(\"Port\");\n\t\tpanel_1.add(lblPort);\n\t\t\n\t\tserverPortTextField = new JTextField(Integer.toString(this.port));\n\t\tserverPortTextField.setEditable(false);\n\t\tpanel_1.add(serverPortTextField);\n\t\tserverPortTextField.setColumns(10);\n\t\t\n\t\tJLabel lblEnterYourMessage = new JLabel(\"Enter Your Message Here\");\n\t\tlblEnterYourMessage.setBounds(10, 40, 410, 16);\n\t\tpanel.add(lblEnterYourMessage);\n\t\t\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setBounds(20, 69, 400, 38);\n\t\tpanel.add(panel_2);\n\t\tpanel_2.setLayout(null);\n\t\t\n\t\tmessageTextField = new JTextField();\n\t\tmessageTextField.setBounds(0, 0, 400, 38);\n\t\tpanel_2.add(messageTextField);\n\t\tmessageTextField.setColumns(10);\n\t\t\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setBounds(10, 125, 422, 348);\n\t\tpanel.add(panel_3);\n\t\tpanel_3.setLayout(null);\n\t\t\n\t\tmessageTextArea = new JTextArea();\n\t\tmessageTextArea.setBounds(0, 0, 422, 348);\n\t\tpanel_3.add(messageTextArea);\n\t\t\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setBounds(10, 486, 422, 56);\n\t\tpanel.add(panel_4);\n\t\tpanel_4.setLayout(null);\n\t\t\n\t\tJButton btnWhoIsIn = new JButton(\"Who is in\");\n\t\tbtnWhoIsIn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttheClient.sendMessage(\"WHOISIN\");\n\t\t\t}\n\t\t});\n\t\tbtnWhoIsIn.setBounds(295, 13, 85, 25);\n\t\tpanel_4.add(btnWhoIsIn);\n\t\t\n\t\tJButton btnLogout = new JButton(\"Logout\");\n\t\tbtnLogout.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttheClient.sendMessage(\"LOGOUT\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbtnLogout.setBounds(148, 13, 97, 25);\n\t\tpanel_4.add(btnLogout);\n\t\t\n\t\tJButton btnSend = new JButton(\"Send\");\n\t\tbtnSend.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tString messageUser=messageTextField.getText();\n\t\t\t\tif(messageUser.equals(\"\")) \n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Please Enter Something\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\ttheClient.sendMessage(messageUser);\n\t\t\t\t\tmessageTextField.setText(\"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnSend.setBounds(27, 13, 97, 25);\n\t\tpanel_4.add(btnSend);\n\t\t\n\t\tJLabel usernameLabel = new JLabel(this.username);\n\t\tusernameLabel.setBounds(285, 40, 147, 16);\n\t\tpanel.add(usernameLabel);\n\t\t\n\t\tJPanel panel_5 = new JPanel();\n\t\tpanel_5.setBounds(20, 604, 412, 231);\n\t\tpanel.add(panel_5);\n\t\tpanel_5.setLayout(null);\n\t\t\n\t\teventTextArea = new JTextArea();\n\t\teventTextArea.setBounds(0, 0, 412, 231);\n\t\tpanel_5.add(eventTextArea);\n\t\t\n\t\tJLabel eventlabel = new JLabel(\"Events\");\n\t\teventlabel.setBounds(82, 575, 271, 16);\n\t\tpanel.add(eventlabel);\n\t\t\n\t\tframe.setVisible(true);\n\t\tframe.setSize(467, 895);\n\t}",
"private void createAndLayoutComponents(){\n\t\tsetLayout(null); //absolute layout\n\n\t\t// avatar\n\t\tavatar = new JLabel(\"\\r\\n\");\n\t\tavatar.setIcon(new ImageIcon(\"img/LongAvatar.png\"));\n\t\tavatar.setBounds(19, 36, 182, 286);\n\t\tadd(avatar);\n\n\t\t// \"Please spell word ? of ?\" label\n\t\tspellQuery = new JLabel(\"Please spell word\\r\\n\");\n\t\tspellQuery.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tspellQuery.setFont(new Font(\"Arial\", Font.PLAIN, 24));\n\t\tspellQuery.setBounds(213, 29, 380, 45);\n\t\tadd(spellQuery);\n\n\t\t// \"Definition:\" label\n\t\tlblNewLabel = new JLabel(\"Definition:\");\n\t\tlblNewLabel.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblNewLabel.setBounds(213, 75, 86, 14);\n\t\tadd(lblNewLabel);\n\n\t\t// text area displaying the definition of the word\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(213, 98, 286, 64);\n\t\tadd(scrollPane);\n\t\tdefinitionArea = new JTextArea();\n\t\tdefinitionArea.setForeground(new Color(0, 0, 0));\n\t\tdefinitionArea.setWrapStyleWord(true);\n\t\tdefinitionArea.setLineWrap(true);\n\t\tdefinitionArea.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tdefinitionArea.setEditable(false);\n\t\tscrollPane.setViewportView(definitionArea);\n\t\tdefinitionArea.setBackground(new Color(250,250,250));\n\n\t\t// user input field\n\t\tuserInput = new JTextField();\n\t\tuserInput.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tuserInput.setBounds(213, 173, 286, 30);\n\t\tadd(userInput);\n\t\tuserInput.setColumns(10);\n\n\t\t// listen again button\n\t\tbtnListenAgain = new JButton(\"Listen again\");\n\t\tbtnListenAgain.setToolTipText(\"Listen to word again\");\n\t\tbtnListenAgain.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tbtnListenAgain.addActionListener(this);\n\t\tbtnListenAgain.addKeyListener(this);\n\t\tbtnListenAgain.setBounds(213, 214, 144, 31);\n\t\tadd(btnListenAgain);\n\n\t\t// confirm button or next question button\n\t\tbtnConfirmOrNext = new JButton(\"Confirm\");\n\t\tbtnConfirmOrNext.setToolTipText(\"\");\n\t\tbtnConfirmOrNext.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tbtnConfirmOrNext.addActionListener(this);\n\t\tbtnConfirmOrNext.addKeyListener(this);\n\t\tbtnConfirmOrNext.setBounds(365, 214, 134, 31);\n\t\tadd(btnConfirmOrNext);\n\n\t\t// \"You only have 2 attempts\" label\n\t\tlblYouOnlyHave = new JLabel(\"You have only 2 attempts\");\n\t\tlblYouOnlyHave.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblYouOnlyHave.setBounds(213, 256, 258, 20);\n\t\tadd(lblYouOnlyHave);\n\n\t\t// \"1st attempt\" label\n\t\tlblstAttempt = new JLabel(\"1st attempt\");\n\t\tlblstAttempt.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblstAttempt.setBounds(213, 281, 86, 20);\n\t\tadd(lblstAttempt);\n\n\t\t// \"2nd attempt\" label\n\t\tlblndAttempt = new JLabel(\"2nd attempt\");\n\t\tlblndAttempt.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblndAttempt.setBounds(213, 302, 86, 20);\n\t\tadd(lblndAttempt);\n\n\t\t// shows the user's first attempt\n\t\tfirstAttempt = new JLabel(\": \");\n\t\tfirstAttempt.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tfirstAttempt.setBounds(309, 281, 134, 20);\n\t\tadd(firstAttempt);\n\n\t\t// shows the user's second attempt\n\t\tsecondAttempt = new JLabel(\": \");\n\t\tsecondAttempt.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tsecondAttempt.setBounds(309, 302, 134, 20);\n\t\tadd(secondAttempt);\n\t\t\n\t\t// shows how many letters off is the user's answer\n\t\tfirstAttemptResult = new JLabel(\"\");\n\t\tfirstAttemptResult.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tfirstAttemptResult.setBounds(453, 281, 215, 20);\n\t\tadd(firstAttemptResult);\n\t\tsecondAttemptResult = new JLabel(\"\");\n\t\tsecondAttemptResult.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tsecondAttemptResult.setBounds(453, 302, 215, 20);\n\t\tadd(secondAttemptResult);\n\n\t\t// stop quiz button\n\t\tbtnStop = new JButton(\"Stop\\r\\n Quiz\");\n\t\tbtnStop.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tbtnStop.setToolTipText(\"Only available during answring phase.\");\n\t\tbtnStop.addActionListener(this);\n\t\tbtnStop.addKeyListener(this);\n\t\tbtnStop.setBounds(554, 214, 114, 31);\n\t\tadd(btnStop);\n\n\t\t// show current quiz\n\t\tlblCurrentQuiz = new JLabel(\"Current Quiz \");\n\t\tlblCurrentQuiz.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblCurrentQuiz.setBounds(523, 75, 108, 14);\n\t\tadd(lblCurrentQuiz);\n\t\tcurrentQuiz = new JLabel(\": \");\n\t\tcurrentQuiz.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tcurrentQuiz.setBounds(653, 77, 127, 14);\n\t\tadd(currentQuiz);\n\t\t\n\t\t// show current streak\n\t\tlblCurrentStreak = new JLabel(\"Current Streak\");\n\t\tlblCurrentStreak.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblCurrentStreak.setBounds(523, 100, 118, 14);\n\t\tadd(lblCurrentStreak);\n\t\tcurrentStreak = new JLabel(\": \");\n\t\tcurrentStreak.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tcurrentStreak.setBounds(653, 102, 127, 14);\n\t\tadd(currentStreak);\n\t\t\n\t\t// show longest streak\n\t\tlblLongeststreak = new JLabel(\"Longest Streak\\r\\n\");\n\t\tlblLongeststreak.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblLongeststreak.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblLongeststreak.setBounds(523, 124, 96, 20);\n\t\tadd(lblLongeststreak);\n\t\tlongestStreak = new JLabel(\": \");\n\t\tlongestStreak.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlongestStreak.setBounds(653, 126, 127, 14);\n\t\tadd(longestStreak);\n\t\t\n\t\t// show words spelled correctly\n\t\tlblSpelledCorrectly = new JLabel(\"Spelled Correctly\");\n\t\tlblSpelledCorrectly.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblSpelledCorrectly.setBounds(523, 149, 118, 14);\n\t\tadd(lblSpelledCorrectly);\n\t\tnoOfCorrectSpellings = new JLabel(\": \");\n\t\tnoOfCorrectSpellings.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tnoOfCorrectSpellings.setBounds(653, 151, 127, 14);\n\t\tadd(noOfCorrectSpellings);\n\t\t\n\t\t// show quiz accuracy\n\t\tlblQuizAccuracy = new JLabel(\"Quiz Accuracy\\r\\n\");\n\t\tlblQuizAccuracy.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblQuizAccuracy.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblQuizAccuracy.setBounds(523, 174, 108, 20);\n\t\tadd(lblQuizAccuracy);\n\t\tquizAccuracy = new JLabel(\": \");\n\t\tquizAccuracy.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tquizAccuracy.setBounds(653, 176, 127, 14);\n\t\tadd(quizAccuracy);\n\n\t}",
"private void initialize() {\n\t\tsetLayout(null);\n\t\t\n\t\tJTextPane txtName = new JTextPane();\n\t\ttxtName.setFont(new Font(\"YuKyokasho Yoko\", Font.BOLD, 17));\n\t\ttxtName.setText(\"\");\n\t\ttxtName.setBounds(445, 112, 277, 42);\n\t\tadd(txtName);\n\t\ttxtName.setOpaque(false);\n\t\t\n\t\tJTextPane txtCoordinatelat = new JTextPane();\n\t\ttxtCoordinatelat.setText(\"\");\n\t\ttxtCoordinatelat.setFont(new Font(\"YuKyokasho Yoko\", Font.BOLD, 17));\n\t\ttxtCoordinatelat.setBounds(450, 203, 277, 42);\n\t\tadd(txtCoordinatelat);\n\t\ttxtCoordinatelat.addKeyListener(new KeyAdapter(){\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tchar c = e.getKeyChar();\n\t\t\t\tif(!Character.isDigit(c)&& c!=127&& c!=8 && c!='.') {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the number\", \"Warning\",JOptionPane.WARNING_MESSAGE); \n\t\t\t\t\te.consume();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttxtCoordinatelat.setOpaque(false);\n\t\t\n\t\tJTextPane txtCoordinatelng = new JTextPane();\n\t\ttxtCoordinatelng.setText(\"\");\n\t\ttxtCoordinatelng.setFont(new Font(\"YuKyokasho Yoko\", Font.BOLD, 17));\n\t\ttxtCoordinatelng.setBounds(450, 304, 277, 42);\n\t\tadd(txtCoordinatelng);\n\t\ttxtCoordinatelng.addKeyListener(new KeyAdapter(){\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tchar c = e.getKeyChar();\n\t\t\t\tif(!Character.isDigit(c)&& c!=127&& c!=8 && c!='.') {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the number\", \"Warning\",JOptionPane.WARNING_MESSAGE); \n\t\t\t\t\te.consume();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttxtCoordinatelng.setOpaque(false);\n\t\t\n\t\tJTextPane txtTotaldocks = new JTextPane();\n\t\ttxtTotaldocks.setText(\"\");\n\t\ttxtTotaldocks.setFont(new Font(\"YuKyokasho Yoko\", Font.BOLD, 17));\n\t\ttxtTotaldocks.setBounds(450, 393, 277, 42);\n\t\tadd(txtTotaldocks);\n\t\ttxtTotaldocks.addKeyListener(new KeyAdapter(){\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tchar c = e.getKeyChar();\n\t\t\t\tif(!Character.isDigit(c)&& c!=127&& c!=8) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The number of the docks can only be a whole number\", \"Warning\",JOptionPane.WARNING_MESSAGE); \n\t\t\t\t\te.consume();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttxtTotaldocks.setOpaque(false);\n\t\t\n\t\t/* Background pic */\n\t\tImageIcon background = new ImageIcon(getClass().getResource(\"/main/resources/com/team15/ebrs/images/add.png\"));\n\t\tJLabel lblbackground = new JLabel(background);\n\t\tlblbackground.setBounds(0, 0, 960, 518);\n\t\tadd(lblbackground);\n\t\t\n\t\t\n\t\tJButton btnNext = new JButton(\"Save\");\n\t\tbtnNext.setCursor(new Cursor(Cursor.HAND_CURSOR));\n\t\tbtnNext.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(txtName.getText().equals(\"\")||txtCoordinatelat.getText().equals(\"\")||txtCoordinatelng.getText().equals(\"\")||txtTotaldocks.getText().equals(\"\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The fields cannot be empty.\", \"Information\",JOptionPane.WARNING_MESSAGE); \n\t\t\t\t}else{\n\t\t\t\t\tString stationName = txtName.getText().trim();\n\t\t\t\t\tdouble coordinatelat = Double.parseDouble(txtCoordinatelat.getText().trim());\n\t\t\t\t\tdouble coordinatelng = Double.parseDouble(txtCoordinatelng.getText().trim());\n\t\t\t\t\tint total_docks = Integer.parseInt(txtTotaldocks.getText().trim());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDockingStation newStation = new DockingStation(stationName,coordinatelat,coordinatelng,total_docks);\n\t\t\t\t\t\tif(dsDAO.addDockingStation(newStation)) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The new station is successfully registered\", \"Information\",JOptionPane.WARNING_MESSAGE); \n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error! The station name is already registered \\nPlease try another name\", \"Information\",JOptionPane.WARNING_MESSAGE); \n\t\t\t\t\t\t}\n\t\t\t\t\t}catch(Exception nullPointerException ) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please fill out the information\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNext.setBounds(758, 419, 145, 93);\n\t\tadd(btnNext);\n\t\tbtnNext.setOpaque(false);\n\n\t\tmainFrame.getRootPane().setDefaultButton(btnNext);\n\n\t\tJButton btnBack = new JButton(\"Back\");\n\t\tbtnBack.setCursor(new Cursor(Cursor.HAND_CURSOR));\n\t\tbtnBack.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tStationPanel stationScreen = new StationPanel(mainFrame);\n\t\t\t\tmainFrame.setContentPane(stationScreen);\n\t\t\t\tmainFrame.revalidate();\n\t\t\t}\n\t\t});\n\t\tbtnBack.setBounds(0, -13, 75, 76);\n\t\tadd(btnBack);\n\t\tbtnBack.setOpaque(false);\n\n\t}",
"private void ArrayTexto() {\n int posicCol = 10, posicLin = 10, tamanhoLin = 40, alturaLin = 40;\n\n for (int lin = 0; lin < 9; lin++) {\n for (int col = 0; col < 9; col++) {\n array_texto[lin][col] = new JTextField(\"\");\n array_texto[lin][col].setBounds(posicCol, posicLin, tamanhoLin, alturaLin);\n array_texto[lin][col].setBackground(Color.white);\n getContentPane().add(array_texto[lin][col]);\n if (col == 2 || col == 5 || col == 8) {\n posicCol = posicCol + 45;\n } else {\n posicCol = posicCol + 40;\n }\n }\n posicCol = 10;\n if (lin == 2 || lin == 5 || lin == 8) {\n posicLin = posicLin + 45;\n } else {\n posicLin = posicLin + 40;\n }\n }\n }",
"private JPanel texte() {\r\n\t\tJPanel position = new JPanel();\r\n\t\tJPanel menu1 = new JPanel();\r\n\t\tJPanel menu2 = new JPanel();\r\n\t\tJPanel menu3 = new JPanel();\r\n\t\tJPanel menu4 = new JPanel();\r\n\r\n\t\tmenu1.setLayout(new BoxLayout(menu1, BoxLayout.X_AXIS));\r\n\t\tmenu1.add(textnomligue);\r\n\t\tmenu2.setLayout(new BoxLayout(menu2, BoxLayout.X_AXIS));\r\n\t\tmenu2.add(textadresse);\r\n\t\tmenu3.setLayout(new BoxLayout(menu3, BoxLayout.X_AXIS));\r\n\t\tmenu3.add(textnomAdmin);\r\n\t\tmenu4.setLayout(new BoxLayout(menu4, BoxLayout.X_AXIS));\r\n\t\tmenu4.add(tprenomAdmin);\r\n\r\n\t\tposition.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS));\r\n\t\tposition.add(menu1);\r\n\t\tposition.add(menu2);\r\n\t\tposition.add(menu3);\r\n\t\tposition.add(menu4);\r\n\r\n\t\treturn position;\r\n\t}",
"private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.MIN |SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(WordWatermarkDialog.class, \"/com/yc/ui/1.jpg\"));\n\t\tshell.setSize(436, 321);\n\t\tshell.setText(\"设置文字水印\");\n\t\t\n\t\tLabel label_font = new Label(shell, SWT.NONE);\n\t\tlabel_font.setBounds(38, 80, 61, 17);\n\t\tlabel_font.setText(\"字体名称:\");\n\t\t\n\t\tLabel label_style = new Label(shell, SWT.NONE);\n\t\tlabel_style.setBounds(232, 77, 61, 17);\n\t\tlabel_style.setText(\"字体样式:\");\n\t\t\n\t\tLabel label_size = new Label(shell, SWT.NONE);\n\t\tlabel_size.setBounds(38, 120, 68, 17);\n\t\tlabel_size.setText(\"字体大小:\");\n\t\t\n\t\tLabel label_color = new Label(shell, SWT.NONE);\n\t\tlabel_color.setBounds(232, 120, 68, 17);\n\t\tlabel_color.setText(\"字体颜色:\");\n\t\t\n\t\tLabel label_word = new Label(shell, SWT.NONE);\n\t\tlabel_word.setBounds(38, 38, 61, 17);\n\t\tlabel_word.setText(\"水印文字:\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(115, 35, 278, 23);\n\t\t\n\t\tButton button_confirm = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_confirm.setBounds(313, 256, 80, 27);\n\t\tbutton_confirm.setText(\"确定\");\n\t\t\n\t\tCombo combo = new Combo(shell, SWT.NONE);\n\t\tcombo.setItems(new String[] {\"宋体\", \"黑体\", \"楷体\", \"微软雅黑\", \"仿宋\"});\n\t\tcombo.setBounds(115, 77, 93, 25);\n\t\tcombo.setText(\"黑体\");\n\t\t\n\t\tCombo combo_1 = new Combo(shell, SWT.NONE);\n\t\tcombo_1.setItems(new String[] {\"粗体\", \"斜体\"});\n\t\tcombo_1.setBounds(300, 74, 93, 25);\n\t\tcombo_1.setText(\"粗体\");\n\t\t\n\t\tCombo combo_2 = new Combo(shell, SWT.NONE);\n\t\tcombo_2.setItems(new String[] {\"1\", \"3\", \"5\", \"8\", \"10\", \"12\", \"16\", \"18\", \"20\", \"24\", \"30\", \"36\", \"48\", \"56\", \"66\", \"72\"});\n\t\tcombo_2.setBounds(115, 117, 93, 25);\n\t\tcombo_2.setText(\"24\");\n\t\t\n\t\tCombo combo_3 = new Combo(shell, SWT.NONE);\n\t\tcombo_3.setItems(new String[] {\"红色\", \"绿色\", \"蓝色\"});\n\t\tcombo_3.setBounds(300, 117, 93, 25);\n\t\tcombo_3.setText(\"红色\");\n\t\t\n\t\tButton button_cancle = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_cancle.setBounds(182, 256, 80, 27);\n\t\tbutton_cancle.setText(\"取消\");\n\t\t\n\t\tLabel label_X = new Label(shell, SWT.NONE);\n\t\tlabel_X.setBounds(31, 161, 68, 17);\n\t\tlabel_X.setText(\"X轴偏移值:\");\n\t\t\n\t\tCombo combo_4 = new Combo(shell, SWT.NONE);\n\t\tcombo_4.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_4.setBounds(115, 158, 93, 25);\n\t\tcombo_4.setText(\"50\");\n\t\t\n\t\tLabel label_Y = new Label(shell, SWT.NONE);\n\t\tlabel_Y.setText(\"Y轴偏移值:\");\n\t\tlabel_Y.setBounds(225, 161, 68, 17);\n\t\t\n\t\tCombo combo_5 = new Combo(shell, SWT.NONE);\n\t\tcombo_5.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_5.setBounds(300, 158, 93, 25);\n\t\tcombo_5.setText(\"50\");\n\t\t\n\t\tLabel label_alpha = new Label(shell, SWT.NONE);\n\t\tlabel_alpha.setBounds(46, 204, 53, 17);\n\t\tlabel_alpha.setText(\"透明度:\");\n\t\t\n\t\tCombo combo_6 = new Combo(shell, SWT.NONE);\n\t\tcombo_6.setItems(new String[] {\"0\", \"0.1\", \"0.2\", \"0.3\", \"0.4\", \"0.5\", \"0.6\", \"0.7\", \"0.8\", \"0.9\", \"1.0\"});\n\t\tcombo_6.setBounds(115, 201, 93, 25);\n\t\tcombo_6.setText(\"0.8\");\n\t\t\n\t\t//取消按钮\n\t\tbutton_cancle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//确认按钮\n\t\tbutton_confirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tif(text.getText().trim()==null || \"\".equals(text.getText().trim())\n\t\t\t\t\t\t||combo.getText().trim()==null || \"\".equals(combo.getText().trim()) \n\t\t\t\t\t\t\t||combo_1.getText().trim()==null || \"\".equals(combo_1.getText().trim())\n\t\t\t\t\t\t\t\t|| combo_2.getText().trim()==null || \"\".equals(combo_2.getText().trim())\n\t\t\t\t\t\t\t\t\t|| combo_3.getText().trim()==null || \"\".equals(combo_3.getText().trim())\n\t\t\t\t\t\t\t\t\t\t||combo_4.getText().trim()==null || \"\".equals(combo_4.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t||combo_5.getText().trim()==null || \"\".equals(combo_5.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t\t||combo_6.getText().trim()==null || \"\".equals(combo_6.getText().trim())){\n\t\t\t\t\tMessageDialog.openError(shell, \"错误\", \"输入框不能为空或输入空值,请确认后重新输入!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString word=text.getText().trim();\n\t\t\t\tString wordName=getFontName(combo.getText().trim());\n\t\t\t\tint wordStyle=getFonStyle(combo_1.getText().trim());\n\t\t\t\tint wordSize=Integer.parseInt(combo_2.getText().trim());\n\t\t\t\tColor wordColor=getFontColor(combo_3.getText().trim());\n\t\t\t\tint word_X=Integer.parseInt(combo_4.getText().trim());\n\t\t\t\tint word_Y=Integer.parseInt(combo_5.getText().trim());\n\t\t\t\tfloat word_Alpha=Float.parseFloat(combo_6.getText().trim());\n\t\t\t\t\n\t\t\t\tis=MeituUtils.waterMarkWord(EditorUi.filePath,word, wordName, wordStyle, wordSize, wordColor, word_X, word_Y,word_Alpha);\n\t\t\t\tCommon.image=new Image(display,is);\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tcombo.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t\tcombo_1.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_2.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_3.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\t\n\t\t\n\t\tcombo_4.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_5.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_6.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\".[0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t}",
"private void $$$setupUI$$$() {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n targetClassesTextField = new JTextField();\n panel.add(targetClassesTextField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel.add(spacer1, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n targetClassesLabel = new JLabel();\n targetClassesLabel.setText(\"Target classes\");\n panel.add(targetClassesLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n sourceDirTextField = new JTextField();\n panel.add(sourceDirTextField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n sourceDirLabel = new JLabel();\n sourceDirLabel.setText(\"Source dir\");\n panel.add(sourceDirLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n reportDirTextField = new JTextField();\n panel.add(reportDirTextField, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n reportDirLabel = new JLabel();\n reportDirLabel.setText(\"Report dir\");\n panel.add(reportDirLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n otherParamsTextField = new JTextField();\n panel.add(otherParamsTextField, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n otherParamsLabel = new JLabel();\n otherParamsLabel.setText(\"Other params\");\n panel.add(otherParamsLabel, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"public void addWidgets(){\n input = new JTextField(\"Guess number here\");\n //button with \"Guess!\" written on it is created\n guess = new JButton(\"Guess!\");\n //\"Reset\" button is created\n reset = new JButton(\"Reset\");\n //reset button is disabled; therefore nonclickable and grayed out\n reset.setEnabled(false);\n //displays \"...\" on screen; later changes to \"Too High\" or \"Too Low\"\n label = new JLabel(\"...\", JLabel.CENTER);\n //font settings for label\n label.setFont(new Font(\"Comic Sans\", Font.PLAIN, 24));\n //makes label visible\n label.setOpaque(true);\n \n //GridBagconstraints allows customizing the sizing and position of each\n //component\n GridBagConstraints c = new GridBagConstraints();\n //places textbox on top left takes up half the row\n c.fill = GridBagConstraints.HORIZONTAL;\n c.weightx = 0;\n c.weighty = 0;\n c.gridx = 0;\n c.gridy = 0;\n //adds textbox\n panel.add(input,c);\n //place button on the middle of the top row takes up a quarter of the row\n c.gridx = 1;\n c.gridy = 0;\n //adds guss button\n panel.add(guess,c);\n //places reset button at the end of the first row;\n c.gridx = 2;\n c.gridy = 0;\n //adds the reset button\n panel.add(reset,c);\n //places text label underneath the textfield\n c.gridx = 0;\n c.gridy = 1;\n c.weightx = 1;\n //adds label\n panel.add(label,c);\n \n //adds actionListener when clicking on button\n guess.addActionListener(this);\n //adds ActionListener when clicking on reset button\n reset.addActionListener(this);\n //adds mouse listener that acts when click on inputbox\n //erases text in the input box\n input.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e){\n input.setText(\"\");\n }\n });\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n text = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jButton7 = new javax.swing.JButton();\n jButton8 = new javax.swing.JButton();\n jButton9 = new javax.swing.JButton();\n jButton10 = new javax.swing.JButton();\n jButton11 = new javax.swing.JButton();\n jButton12 = new javax.swing.JButton();\n jButton13 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n text.setBackground(new java.awt.Color(204, 204, 255));\n text.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n text.setForeground(new java.awt.Color(0, 102, 102));\n text.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n textActionPerformed(evt);\n }\n });\n getContentPane().add(text, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 130, 1020, 37));\n\n jButton1.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jButton1.setForeground(new java.awt.Color(0, 102, 102));\n jButton1.setText(\"Run Length\");\n jButton1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 170, 210, 30));\n\n jButton2.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jButton2.setForeground(new java.awt.Color(0, 153, 153));\n jButton2.setText(\"Variable Run Length\");\n jButton2.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton2MouseClicked(evt);\n }\n });\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 200, 290, 30));\n\n jButton3.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jButton3.setForeground(new java.awt.Color(0, 102, 102));\n jButton3.setText(\"Dictionary [LZW]\");\n jButton3.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 290, 210, 30));\n\n jButton4.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jButton4.setForeground(new java.awt.Color(0, 153, 153));\n jButton4.setText(\"Exit\");\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton4MouseClicked(evt);\n }\n });\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(1070, 320, 80, 30));\n\n jButton5.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jButton5.setForeground(new java.awt.Color(0, 102, 102));\n jButton5.setText(\"Huffman Coding\");\n jButton5.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n jButton5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton5MouseClicked(evt);\n }\n });\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 230, 210, 30));\n\n jButton6.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jButton6.setForeground(new java.awt.Color(0, 153, 153));\n jButton6.setText(\"Arthimtic Coding\");\n jButton6.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton6MouseClicked(evt);\n }\n });\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton6, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 320, 290, 30));\n\n jButton7.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jButton7.setForeground(new java.awt.Color(0, 153, 153));\n jButton7.setText(\"Adaptive Huffman Coding\");\n jButton7.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n jButton7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton7MouseClicked(evt);\n }\n });\n jButton7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton7ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton7, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 260, 290, 30));\n\n jButton8.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jButton8.setForeground(new java.awt.Color(0, 153, 153));\n jButton8.setText(\"Show Algorithm\");\n jButton8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jButton8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton8MouseClicked(evt);\n }\n });\n getContentPane().add(jButton8, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 170, 250, 30));\n\n jButton9.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jButton9.setForeground(new java.awt.Color(0, 102, 102));\n jButton9.setText(\"Show Algorithm\");\n jButton9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jButton9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton9MouseClicked(evt);\n }\n });\n getContentPane().add(jButton9, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 200, 170, 30));\n\n jButton10.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jButton10.setForeground(new java.awt.Color(0, 153, 153));\n jButton10.setText(\"Show Algorithm\");\n jButton10.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jButton10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton10MouseClicked(evt);\n }\n });\n jButton10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton10ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton10, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 230, 250, 30));\n\n jButton11.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jButton11.setForeground(new java.awt.Color(0, 102, 102));\n jButton11.setText(\"Show Algorithm\");\n jButton11.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jButton11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton11MouseClicked(evt);\n }\n });\n getContentPane().add(jButton11, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 260, 170, 30));\n\n jButton12.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jButton12.setForeground(new java.awt.Color(0, 153, 153));\n jButton12.setText(\"Show Algorithm\");\n jButton12.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jButton12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton12MouseClicked(evt);\n }\n });\n getContentPane().add(jButton12, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 290, 250, 30));\n\n jButton13.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jButton13.setForeground(new java.awt.Color(0, 102, 102));\n jButton13.setText(\"Show Algorithm\");\n jButton13.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jButton13.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton13MouseClicked(evt);\n }\n });\n jButton13.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton13ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton13, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 320, 170, 30));\n\n jLabel3.setFont(new java.awt.Font(\"Showcard Gothic\", 1, 48)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(0, 102, 102));\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Mustafa\\\\Documents\\\\NetBeansProjects\\\\Multimedia_Project_Fourth_Year\\\\Images\\\\prologo.png\")); // NOI18N\n jLabel3.setText(\" \");\n jLabel3.setToolTipText(\"\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 710, 130));\n\n jLabel4.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(0, 102, 102));\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Mustafa\\\\Documents\\\\NetBeansProjects\\\\Multimedia_Project_Fourth_Year\\\\Images\\\\cr.png\")); // NOI18N\n jLabel4.setText(\"Developed BY : \\n Mustafa Omran Anwer \\n Basem Hamdy Ahmed\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(670, 10, 390, 110));\n jLabel4.getAccessibleContext().setAccessibleName(\"\");\n\n jTextArea1.setBackground(new java.awt.Color(204, 204, 255));\n jTextArea1.setColumns(20);\n jTextArea1.setFont(new java.awt.Font(\"Courier New\", 1, 18)); // NOI18N\n jTextArea1.setForeground(new java.awt.Color(0, 102, 102));\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 170, 550, 180));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Mustafa\\\\Documents\\\\NetBeansProjects\\\\Multimedia_Project_Fourth_Year\\\\Images\\\\bg.png\")); // NOI18N\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 1180, 390));\n\n pack();\n }",
"private void createpanel3() {\r\n\t\tpanels[2].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[1] = new JLabel(\"Password: \");\r\n\t\tdescription[1].setFont(smallfont);\r\n\t\tdescription[1].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tpasswordbox = new JPasswordField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tpasswordbox.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tpasswordbox.setForeground(Color.BLACK);\r\n\t\tpasswordbox.setOpaque(false);\r\n\t\tpanels[2].add(description[1]);\r\n\t\tpanels[2].add(passwordbox);\r\n\t\tpanels[2].setOpaque(false);\r\n\t\tallComponents.add(panels[2]);\r\n\t\tpanels[2].revalidate();\r\n\t}",
"private void initComponents() {\n panel1 = new JPanel();\n label1 = new JLabel();\n AlteruTelTextField = new JTextField();\n sureButton = new JButton();\n cancleButton = new JButton();\n\n //======== this ========\n setBackground(new Color(102, 102, 255));\n setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n var contentPane = getContentPane();\n contentPane.setLayout(null);\n\n //======== panel1 ========\n {\n panel1.setBackground(new Color(102, 102, 255));\n panel1.setLayout(null);\n\n //---- label1 ----\n label1.setText(\"\\u8bf7\\u8f93\\u5165\\u65b0\\u7684\\u7535\\u8bdd\\u53f7\\u7801\");\n label1.setBackground(Color.white);\n label1.setHorizontalAlignment(SwingConstants.CENTER);\n label1.setFont(label1.getFont().deriveFont(label1.getFont().getStyle() | Font.BOLD));\n label1.setForeground(Color.white);\n panel1.add(label1);\n label1.setBounds(30, 70, 180, 30);\n panel1.add(AlteruTelTextField);\n AlteruTelTextField.setBounds(25, 30, 200, AlteruTelTextField.getPreferredSize().height);\n\n //---- sureButton ----\n sureButton.setText(\"\\u786e\\u5b9a\\u4fee\\u6539\");\n sureButton.setFont(sureButton.getFont().deriveFont(sureButton.getFont().getStyle() | Font.BOLD));\n sureButton.setBackground(Color.white);\n sureButton.addActionListener(e -> sureButtonActionPerformed(e));\n panel1.add(sureButton);\n sureButton.setBounds(130, 145, 105, 30);\n\n //---- cancleButton ----\n cancleButton.setText(\"\\u53d6\\u6d88\");\n cancleButton.setBackground(Color.white);\n cancleButton.setFont(cancleButton.getFont().deriveFont(cancleButton.getFont().getStyle() | Font.BOLD));\n cancleButton.addActionListener(e -> cancleButtonActionPerformed(e));\n panel1.add(cancleButton);\n cancleButton.setBounds(20, 145, 85, 30);\n }\n contentPane.add(panel1);\n panel1.setBounds(0, 0, 265, 190);\n\n contentPane.setPreferredSize(new Dimension(265, 220));\n setSize(265, 220);\n setLocationRelativeTo(getOwner());\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }",
"public void addToJPanel() {\r\n\t\tedit_terrain.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank1);\r\n\t\t\r\n\t\tedit_terrain.add(add_terrain);\r\n\t\tJLabel blank2 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank2);\r\n\t\t\r\n\t\tedit_terrain.add(scale_lb);\r\n\t\tedit_terrain.add(scale);\r\n\t\t\r\n\t\tedit_terrain.add(shape_lb);\r\n\t\tedit_terrain.add(shape_cb);\r\n\t\t\r\n\t\tedit_terrain.add(material_lb);\r\n\t\tedit_terrain.add(material_cb);\r\n\t\t\r\n\t\tedit_terrain.add(colour_lb);\r\n\t\tedit_terrain.add(colour_cb);\r\n\t\t\r\n\t\tedit_terrain.add(position_x_lb);\r\n\t\tedit_terrain.add(position_x);\r\n\t\t\r\n\t\tedit_terrain.add(position_y_lb);\r\n\t\tedit_terrain.add(position_y);\r\n\t\t\r\n\t\tedit_terrain.add(apply_terrain);\r\n\t\tedit_terrain.add(reset_terrain);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}",
"private void init() {\r\n\t\tthis.panel.setLayout(new BoxLayout(this.panel, BoxLayout.PAGE_AXIS));\r\n\t\tthis.labelTitle = new JLabel(\"Edit your weapons\");\r\n\t\tthis.labelTitle.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tthis.initFilter();\r\n\t\tthis.initList();\r\n\t\tthis.list.setSelectedIndex(0);\r\n\t\tthis.initInfo();\r\n\t\tthis.initButton();\r\n\r\n\t\tJPanel panelWest = new JPanel();\r\n\t\tpanelWest.setLayout(new BoxLayout(panelWest, BoxLayout.PAGE_AXIS));\r\n\t\tJPanel panelCenter = new JPanel();\r\n\t\tpanelCenter.setLayout(new BoxLayout(panelCenter, BoxLayout.LINE_AXIS));\r\n\r\n\t\tpanelWest.add(this.panelFilter);\r\n\t\tpanelWest.add(Box.createRigidArea(new Dimension(0, 5)));\r\n\t\tpanelWest.add(this.panelInfo);\r\n\t\tpanelCenter.add(panelWest);\r\n\t\tpanelCenter.add(Box.createRigidArea(new Dimension(10, 0)));\r\n\t\tthis.panelList.setPreferredSize(new Dimension(300, 150));\r\n\t\tpanelCenter.add(this.panelList);\r\n\r\n\t\tthis.panel.add(this.labelTitle);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(panelCenter);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(this.panelButton);\r\n\r\n\t}",
"private void addButtonsToPanel() {\n\t\tselectionPanel.add(rock, BorderLayout.WEST);\n\t\tselectionPanel.add(paper, BorderLayout.CENTER);\n\t\tselectionPanel.add(scissors, BorderLayout.EAST);\n\n\t\t// Adds a border with given text\n\t\tselectionPanel.setBorder(BorderFactory\n\t\t\t\t.createTitledBorder(\"Choose wisely. . .\"));\n\t}",
"private JTextField generateTextEntryPanel(String label, int textColumns, \r\n\t\t\tJPanel containingPanel) {\r\n\t\tJPanel entryPanel = new JPanel();\r\n\t\tentryPanel.add(new JLabel(label));\r\n\t\tJTextField textEntry = new JTextField(10);\r\n\t\ttextEntry.addKeyListener(new TextFieldEditListener());\r\n\t\tentryPanel.add(textEntry);\r\n\t\tcontainingPanel.add(entryPanel);\r\n\t\treturn textEntry;\r\n\t}",
"private void textInfoBottom(JPanel panel_TextInfo) {\n\t\tcontentPane.setLayout(gl_contentPane_1);\n\t\ttxtrPreparing = new JTextArea();\n\t\ttxtrPreparing.setBackground(Color.WHITE);\n\t\ttxtrPreparing.setText(\"Preparing... \");\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBackground(Color.WHITE);\n\t\ttextArea.setText(\" $10\");\n\t\tGroupLayout gl_panel_TextInfo = new GroupLayout(panel_TextInfo);\n\t\tgl_panel_TextInfo.setHorizontalGroup(\n\t\t\tgl_panel_TextInfo.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_TextInfo.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(txtrPreparing, GroupLayout.PREFERRED_SIZE, 232, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addComponent(textArea, GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE))\n\t\t);\n\t\tgl_panel_TextInfo.setVerticalGroup(\n\t\t\tgl_panel_TextInfo.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_TextInfo.createSequentialGroup()\n\t\t\t\t\t.addGroup(gl_panel_TextInfo.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(txtrPreparing, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(textArea, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n\t\t);\n\t\tpanel_TextInfo.setLayout(gl_panel_TextInfo);\n\t}",
"private void updateTxtBoxes() {\n int i = channelSelect.getSelectedIndex();\n \n if(i==-1) return; //sometimes channelSelect event is accidentally triggered\n //which calls updateTxtBoxes(),even when selected index is -1. \n //This line of code avoids index out of bounds error\n \n Channel c = channelList.get(i);\n \n ampBox.setText(\"\"+c.getAmp());\n durBox.setText(\"\"+c.getDur());\n freqBox.setText(\"\"+c.getFreq());\n owBox.setText(\"\"+c.getOnWave()); \n }",
"private void initComponents() {\n label1 = new JLabel();\n id_text = new JTextField();\n label2 = new JLabel();\n name_text = new JTextField();\n label3 = new JLabel();\n author_text = new JTextField();\n label4 = new JLabel();\n pub_text = new JTextField();\n label5 = new JLabel();\n num_text = new JTextField();\n label6 = new JLabel();\n type_text = new JTextField();\n button1 = new JButton();\n\n //======== this ========\n var contentPane = getContentPane();\n contentPane.setLayout(null);\n\n //---- label1 ----\n label1.setText(\"\\u59d3\\u540d\");\n contentPane.add(label1);\n label1.setBounds(155, 35, 40, 25);\n contentPane.add(id_text);\n id_text.setBounds(200, 30, 165, 30);\n\n //---- label2 ----\n label2.setText(\"\\u73ed\\u7ea7\");\n contentPane.add(label2);\n label2.setBounds(155, 80, 40, 25);\n contentPane.add(name_text);\n name_text.setBounds(200, 75, 165, 30);\n\n //---- label3 ----\n label3.setText(\"\\u5e74\\u9f84\");\n contentPane.add(label3);\n label3.setBounds(155, 120, 40, 25);\n contentPane.add(author_text);\n author_text.setBounds(200, 115, 165, 30);\n\n //---- label4 ----\n label4.setText(\"\\u6027\\u522b\");\n contentPane.add(label4);\n label4.setBounds(155, 165, 40, 25);\n contentPane.add(pub_text);\n pub_text.setBounds(200, 160, 165, 30);\n\n //---- label5 ----\n label5.setText(\"\\u4e13\\u4e1a\");\n contentPane.add(label5);\n label5.setBounds(155, 215, 40, 25);\n contentPane.add(num_text);\n num_text.setBounds(200, 210, 165, 30);\n\n //---- label6 ----\n label6.setText(\"\\u7c7b\\u578b\");\n contentPane.add(label6);\n label6.setBounds(155, 260, 40, 25);\n contentPane.add(type_text);\n type_text.setBounds(200, 255, 165, 30);\n\n //---- button1 ----\n button1.setText(\"\\u7528\\u6237\\u6ce8\\u518c\");\n button1.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n button1MouseClicked(e);\n }\n });\n contentPane.add(button1);\n button1.setBounds(240, 330, 75, 30);\n\n {\n // compute preferred size\n Dimension preferredSize = new Dimension();\n for(int i = 0; i < contentPane.getComponentCount(); i++) {\n Rectangle bounds = contentPane.getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = contentPane.getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n contentPane.setMinimumSize(preferredSize);\n contentPane.setPreferredSize(preferredSize);\n }\n pack();\n setLocationRelativeTo(getOwner());\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }",
"public void addComponentsToPanel() {\n\t\tpanel.add(backBtn);\n\t\tpanel.add(forgotPassword);\n\t\tpanel.add(txtPass);\n\t\tpanel.add(txtSendEmail);\n\t\tpanel.add(remindMeBtn);\n\n\t\tpanel.add(backgroundLabel);\n\t}",
"private void addComponents()\n\t{\n\t\theaderPanel = new JPanel();\n\t\tfooterPanel = new JPanel();\n\t\tfunctionPanel = new JPanel();\n\t\ttextPanel = new JPanel();\n\t\t\t\t\t\t\n\t\teToPower = new JButton(\"\\u212F\\u207F\");\n\t\ttwoPower = new JButton(\"2\\u207F\");\n\t\tln = new JButton(\"ln\");\n\t\txCube = new JButton(\"x\\u00B3\");\n\t\txSquare = new JButton(\"x\\u00B2\");\n\t\tdel = new JButton(\"\\u2190\");\n\t\tcubeRoot = new JButton(\"\\u221B\");\n\t\tC = new JButton(\"c\");\n\t\tnegate = new JButton(\"\\u00B1\");\n\t\tsquareRoot = new JButton(\"\\u221A\");\n\t\tnine = new JButton(\"9\");\n\t\teight = new JButton(\"8\");\n\t\tseven = new JButton(\"7\");\n\t\tsix = new JButton(\"6\");\n\t\tfive = new JButton(\"5\");\n\t\tfour = new JButton(\"4\");\n\t\tthree = new JButton(\"3\");\n\t\ttwo = new JButton(\"2\");\n\t\tone = new JButton(\"1\");\n\t\tzero = new JButton(\"0\");\n\t\tdivide = new JButton(\"/\");\n\t\tmultiply = new JButton(\"*\");\n\t\tpercent = new JButton(\"%\");\n\t\treciprocal = new JButton(\"1/x\");\n\t\tsubtract = new JButton(\"-\");\n\t\tadd = new JButton(\"+\");\n\t\tdecimalPoint = new JButton(\".\");\n\t\tequals = new JButton(\"=\");\n\t\tPI = new JButton(\"\\u03C0\");\n\t\te = new JButton(\"\\u212F\");\n\t\t\n\t\tdefaultButtonBackground = C.getBackground ( );\n\t\tdefaultButtonForeground = C.getForeground ( );\n\t\t\n\t\tbuttonFont = new Font(\"SansSerif\", Font.PLAIN, BUTTONFONTSIZE);\n\t\tentryFont = new Font(\"SansSerif\", Font.PLAIN, ENTRYFONTSIZE);\n\t\titalicButtonFont = new Font (\"SanSerif\", Font.ITALIC, BUTTONFONTSIZE);\n\t\tentry = new JTextField(\"0\", 1);\n\t\t\t\t\n\t\tadd.setFont(buttonFont);\n\t\tsubtract.setFont(buttonFont);\n\t\tequals.setFont(buttonFont);\n\t\tdecimalPoint.setFont(buttonFont);\n\t\tmultiply.setFont(buttonFont);\n\t\tdivide.setFont(buttonFont);\n\t\tnegate.setFont(buttonFont);\n\t\tpercent.setFont(buttonFont);\n\t\tdel.setFont(buttonFont);\n\t\tsquareRoot.setFont(buttonFont);\n\t\teToPower.setFont(buttonFont);\n\t\ttwoPower.setFont(buttonFont);\n\t\tln.setFont(buttonFont);\n\t\txCube.setFont(buttonFont);\n\t\txSquare.setFont(buttonFont);\n\t\tC.setFont(buttonFont);\n\t\tcubeRoot.setFont(buttonFont);\n\t\treciprocal.setFont(buttonFont);\n\t\tnine.setFont(buttonFont);\n\t\teight.setFont(buttonFont);\n\t\tseven.setFont(buttonFont);\n\t\tsix.setFont(buttonFont);\n\t\tfive.setFont(buttonFont);\n\t\tfour.setFont(buttonFont);\n\t\tthree.setFont(buttonFont);\n\t\ttwo.setFont(buttonFont);\n\t\tone.setFont(buttonFont);\n\t\tzero.setFont(buttonFont);\n\t\tPI.setFont(buttonFont);\n\t\te.setFont(italicButtonFont);\n\t\t\n\t\t\n\t\tentry.setFont(entryFont);\n\t\tentry.setHorizontalAlignment (JTextField.RIGHT);\n\t\tentry.grabFocus ( );\n\t\tentry.setHighlighter(null);\n\t\tentry.selectAll ( );\n\t\t\n\t\tincognito = false;\n\t}",
"public void initTextPane()\r\n {\r\n\t setResultsFont();\r\n\t ResultsTextPane.setBorder(null);\r\n\r\n // Scroller.\r\n \tJScrollPane ResultsScrollPane = new JScrollPane();\r\n \tJViewport ResultsViewport = ResultsScrollPane.getViewport();\r\n \tResultsViewport.add(ResultsTextPane);\r\n\r\n \tJPanel ResultsPanel = new JPanel();\r\n \tResultsPanel.setLayout(new BorderLayout());\r\n \tResultsPanel.add(\"Center\", ResultsScrollPane);\r\n\r\n \tgetContentPane().add(\"Center\", ResultsPanel);\r\n }",
"private void createpanel2() {\r\n\t\tpanels[1].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[0] = new JLabel(\"Accountname: \");\r\n\t\tdescription[0].setFont(smallfont);\r\n\t\tdescription[0].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tuserinfo = new JTextField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\r\n\t\t\tuserinfo.setForeground(Color.WHITE);\r\n\t\t} else {\r\n\t\t\tuserinfo.setForeground(Color.BLACK);\r\n\t\t}\r\n\t\tuserinfo.setOpaque(false);\r\n\t\tuserinfo.setFont(smallfont);\r\n\t\tpanels[1].add(description[0]);\r\n\t\tpanels[1].add(userinfo);\r\n\t\tpanels[1].setOpaque(false);\r\n\t\tallComponents.add(panels[1]);\r\n\t\tpanels[0].revalidate();\r\n\t}",
"public void bit2Modules(Container contentPane)\n {\n JLabel info;\n JPanel CO329 = new JPanel(new FlowLayout(FlowLayout.LEFT));\n info = new JLabel(\" CO329 - Computer Applications: \");\n CO329.add(info);\n\n info = new JLabel(\" Spreadsheet Fundamentals:\");\n JTextField work1 = new JTextField();\n input.add(work1);\n work1.setColumns(2);\n CO329.add(info);\n CO329.add(work1); \n\n info = new JLabel(\" Tables and what-if Analysis:\");\n JTextField work2 = new JTextField();\n input.add(work2);\n work2.setColumns(2);\n CO329.add(info);\n CO329.add(work2); \n\n info = new JLabel(\" Linear Programming:\");\n JTextField work3 = new JTextField();\n input.add(work3);\n work3.setColumns(2);\n CO329.add(info);\n CO329.add(work3); \n\n info = new JLabel(\" Hypothesis Testing:\");\n JTextField work4 = new JTextField();\n input.add(work4);\n work4.setColumns(2);\n CO329.add(info);\n CO329.add(work4); \n\n info = new JLabel(\" Regression and Testing:\");\n JTextField work5 = new JTextField();\n input.add(work5);\n work5.setColumns(2);\n CO329.add(info);\n CO329.add(work5); \n\n info = new JLabel(\" Data Analysis Project:\");\n JTextField report = new JTextField();\n input.add(report);\n report.setColumns(2);\n CO329.add(info);\n CO329.add(report);\n\n contentPane.add(CO329);\n\n \n JPanel CB330 = new JPanel(new FlowLayout(FlowLayout.LEFT));\n info = new JLabel(\" CB330 - Fundamentals of Financial Accounting: \");\n CB330.add(info);\n\n info = new JLabel(\" Essay:\");\n JTextField account1 = new JTextField();\n input.add(account1);\n account1.setColumns(2);\n CB330.add(info);\n CB330.add(account1); \n\n info = new JLabel(\" In class Test:\");\n JTextField account2 = new JTextField();\n input.add(account2);\n account2.setColumns(2);\n CB330.add(info);\n CB330.add(account2);\n\n info = new JLabel(\" Exam:\");\n JTextField account3 = new JTextField();\n input.add(account3);\n account3.setColumns(2);\n CB330.add(info);\n CB330.add(account3);\n\n contentPane.add(CB330);\n\n \n JPanel CB740 = new JPanel(new FlowLayout(FlowLayout.LEFT));\n info = new JLabel(\" CB740 - The Management of Operations: \");\n CB740.add(info);\n\n info = new JLabel(\" Test 1:\");\n JTextField test1 = new JTextField();\n input.add(test1);\n test1.setColumns(2);\n CB740.add(info);\n CB740.add(test1); \n\n info = new JLabel(\" Test 2:\");\n JTextField test2 = new JTextField();\n input.add(test2);\n test2.setColumns(2);\n CB740.add(info);\n CB740.add(test2);\n\n info = new JLabel(\" Exam:\");\n JTextField operExam = new JTextField();\n input.add(operExam);\n operExam.setColumns(2);\n CB740.add(info);\n CB740.add(operExam);\n\n contentPane.add(CB740);\n\n \n JPanel CB731 = new JPanel(new FlowLayout(FlowLayout.LEFT));\n info = new JLabel(\" CB731 - Strategy Theory and Practice: \");\n CB731.add(info);\n\n info = new JLabel(\" In class Test:\");\n JTextField theoryTest = new JTextField();\n input.add(theoryTest);\n theoryTest.setColumns(2);\n CB731.add(info);\n CB731.add(theoryTest); \n\n info = new JLabel(\" Exam:\");\n JTextField theoryExam = new JTextField();\n input.add(theoryExam);\n theoryExam.setColumns(2);\n CB731.add(info);\n CB731.add(theoryExam);\n\n contentPane.add(CB731);\n \n \n JPanel CB729 = new JPanel(new FlowLayout(FlowLayout.LEFT));\n info = new JLabel(\" CB729 - Enterprise and Entrepreneurship: \");\n CB729.add(info);\n\n info = new JLabel(\" Proposal Report:\");\n report = new JTextField();\n input.add(report);\n report.setColumns(2);\n CB729.add(info);\n CB729.add(report); \n\n info = new JLabel(\" Essay:\");\n JTextField enterEssay = new JTextField();\n input.add(enterEssay);\n enterEssay.setColumns(2);\n CB729.add(info);\n CB729.add(enterEssay);\n\n info = new JLabel(\" Presentation:\");\n JTextField presentation = new JTextField();\n input.add(presentation);\n presentation.setColumns(2);\n CB729.add(info);\n CB729.add(presentation);\n\n info = new JLabel(\" Journal:\");\n JTextField journal = new JTextField();\n input.add(journal);\n journal.setColumns(2);\n CB729.add(info);\n CB729.add(journal);\n\n contentPane.add(CB729);\n\n JPanel grade = new JPanel();\n JButton cal = new JButton(\"Calculate Grade\");\n cal.addActionListener(new cal2ActionListener());\n percent = new JLabel(\"\");\n grade.add(cal);\n grade.add(percent);\n contentPane.add(grade);\n }",
"private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jED1 = new javax.swing.JEditorPane();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTAMsj = new javax.swing.JTextArea();\n jBEnvi = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n formMouseDragged(evt);\n }\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n formMouseMoved(evt);\n }\n });\n addMouseWheelListener(new java.awt.event.MouseWheelListener() {\n public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {\n formMouseWheelMoved(evt);\n }\n });\n addWindowStateListener(new java.awt.event.WindowStateListener() {\n public void windowStateChanged(java.awt.event.WindowEvent evt) {\n formWindowStateChanged(evt);\n }\n });\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formKeyPressed(evt);\n }\n });\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jED1.setEditable(false);\n jED1.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jED1.setForeground(new java.awt.Color(0, 102, 153));\n jED1.setNextFocusableComponent(jTAMsj);\n jED1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jED1KeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(jED1);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 950, 403));\n\n jTAMsj.setColumns(20);\n jTAMsj.setRows(5);\n jTAMsj.setNextFocusableComponent(jBEnvi);\n jTAMsj.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTAMsjFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTAMsjFocusLost(evt);\n }\n });\n jTAMsj.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jTAMsjKeyPressed(evt);\n }\n });\n jScrollPane2.setViewportView(jTAMsj);\n\n getContentPane().add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 406, 950, 90));\n\n jBEnvi.setBackground(new java.awt.Color(255, 255, 255));\n jBEnvi.setText(\"Enviar\");\n jBEnvi.setNextFocusableComponent(jED1);\n jBEnvi.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jBEnviMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jBEnviMouseExited(evt);\n }\n });\n jBEnvi.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBEnviActionPerformed(evt);\n }\n });\n jBEnvi.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jBEnviKeyPressed(evt);\n }\n });\n getContentPane().add(jBEnvi, new org.netbeans.lib.awtextra.AbsoluteConstraints(850, 496, 100, 30));\n\n pack();\n }",
"public SrtEditorPanel_txtFieldOut()\n {\n initComponents();\n }",
"private void $$$setupUI$$$()\n {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(6, 1, new Insets(20, 20, 20, 20), -1, -1));\n panel.setAutoscrolls(true);\n buttonSettings = new JButton();\n buttonSettings.setEnabled(true);\n buttonSettings.setText(\"Open Application Settings\");\n panel.add(buttonSettings,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonStartGit = new JButton();\n buttonStartGit.setEnabled(true);\n buttonStartGit.setText(\"Start Git Management\");\n panel.add(buttonStartGit,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n null, new Dimension(500, 500), null, 0, false));\n textPaneConsole = new JTextPane();\n textPaneConsole.setEditable(false);\n scrollPane1.setViewportView(textPaneConsole);\n buttonOpenBenchmarkDialog = new JButton();\n buttonOpenBenchmarkDialog.setText(\"Open YCSB Benchmark Dialog\");\n panel.add(buttonOpenBenchmarkDialog,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonShowGitSettings = new JButton();\n buttonShowGitSettings.setEnabled(true);\n buttonShowGitSettings.setText(\"Open Git Management\");\n panel.add(buttonShowGitSettings,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Console Output\");\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null,\n null, null, 0, false));\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n p.remove(layout.getLayoutComponent(BorderLayout.CENTER));\n\n // Initialize JTextPane and style it\n jtp = new JTextPane();\n SimpleAttributeSet set = new SimpleAttributeSet();\n StyleConstants.setBold(set, true);\n jtp.setCharacterAttributes(set, true);\n StyledDocument doc = jtp.getStyledDocument();\n SimpleAttributeSet center = new SimpleAttributeSet();\n StyleConstants.setAlignment(center, StyleConstants.ALIGN_CENTER);\n doc.setParagraphAttributes(0, doc.getLength(), center, false);\n jtp.setText(\"\\nTeam 49\\n\\nJustin Ngov\\nTomas Mesquita\\nLuke Burger\");\n Font font = new Font(\"Arial\", Font.PLAIN, 30);\n jtp.setFont(font);\n jtp.setEditable(false);\n p.add(jtp, BorderLayout.CENTER);\n p.repaint();\n p.revalidate();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttextPane.insertIcon(new ImageIcon(\"images/yuzz.PNG\"));\n\t\t\t\ttry {\n\t\t\t\t\tdoc.insertString(doc.getLength(), \" \\n \", left);\n\t\t\t\t} catch (BadLocationException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t//\tpanel1_design();\n\n\t\t\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBounds(30, 11, 166, 95);\n\t\tframe.getContentPane().add(panel_1);\n\t\tpanel_1.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Nombre\");\n\t\tlblNewLabel.setBounds(0, 3, 70, 14);\n\t\tpanel_1.add(lblNewLabel);\n\t\tlblNewLabel.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.LEFT);\n\t\t\n\t\tJLabel lblApellidos = new JLabel(\"Apellidos\");\n\t\tlblApellidos.setBounds(0, 28, 70, 14);\n\t\tpanel_1.add(lblApellidos);\n\t\tlblApellidos.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblApellidos.setHorizontalAlignment(SwingConstants.LEFT);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"Email\");\n\t\tlblEmail.setBounds(0, 53, 70, 14);\n\t\tpanel_1.add(lblEmail);\n\t\tlblEmail.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblEmail.setHorizontalAlignment(SwingConstants.LEFT);\n\t\t\n\t\tJLabel lblTelefono = new JLabel(\"Telefono\");\n\t\tlblTelefono.setBounds(0, 78, 70, 14);\n\t\tpanel_1.add(lblTelefono);\n\t\tlblTelefono.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblTelefono.setHorizontalAlignment(SwingConstants.LEFT);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(60, 0, 106, 20);\n\t\tpanel_1.add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setBounds(60, 25, 106, 20);\n\t\tpanel_1.add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setBounds(60, 50, 106, 20);\n\t\tpanel_1.add(textField_2);\n\t\ttextField_2.setColumns(10);\n\t\t\n\t\ttextField_3 = new JTextField();\n\t\ttextField_3.setBounds(60, 75, 106, 20);\n\t\tpanel_1.add(textField_3);\n\t\ttextField_3.setColumns(10);\n\t\t\n\t\tJSeparator separator = new JSeparator();\n\t\tseparator.setOrientation(SwingConstants.VERTICAL);\n\t\tseparator.setBounds(206, 11, 2, 201);\n\t\tframe.getContentPane().add(separator);\n\t\t\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setBounds(214, 11, 210, 123);\n\t\tframe.getContentPane().add(panel_2);\n\t\tpanel_2.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Intereses\");\n\t\tlblNewLabel_1.setBounds(4, 0, 122, 14);\n\t\tpanel_2.add(lblNewLabel_1);\n\t\t\n\t\tJCheckBox chckbxNewCheckBox = new JCheckBox(\"Deportes\");\n\t\tchckbxNewCheckBox.setBounds(0, 33, 97, 23);\n\t\tpanel_2.add(chckbxNewCheckBox);\n\t\t\n\t\tJCheckBox chckbxFormacin = new JCheckBox(\"Formación\");\n\t\tchckbxFormacin.setBounds(99, 33, 97, 23);\n\t\tpanel_2.add(chckbxFormacin);\n\t\t\n\t\tJCheckBox chckbxCultura = new JCheckBox(\"Cultura\");\n\t\tchckbxCultura.setBounds(0, 59, 97, 23);\n\t\tpanel_2.add(chckbxCultura);\n\t\t\n\t\tJCheckBox chckbxViajes = new JCheckBox(\"Viajes\");\n\t\tchckbxViajes.setBounds(99, 59, 97, 23);\n\t\tpanel_2.add(chckbxViajes);\n\t\t\n\t\tJCheckBox chckbxOcio = new JCheckBox(\"Ocio\");\n\t\tchckbxOcio.setBounds(0, 85, 97, 23);\n\t\tpanel_2.add(chckbxOcio);\n\t\t\n\t\tJCheckBox chckbxOtros = new JCheckBox(\"Otros\");\n\t\tchckbxOtros.setBounds(99, 85, 97, 23);\n\t\tpanel_2.add(chckbxOtros);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(30, 135, 166, 49);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Sexo\");\n\t\tlblNewLabel_2.setBounds(0, 4, 46, 14);\n\t\tpanel.add(lblNewLabel_2);\n\t\t\n\t\tJRadioButton rdbtnHombre = new JRadioButton(\"Hombre\");\n\t\trdbtnHombre.setBounds(57, 0, 109, 23);\n\t\tpanel.add(rdbtnHombre);\n\t\tbuttonGroup.add(rdbtnHombre);\n\t\t\n\t\tJRadioButton rdbtnMujer = new JRadioButton(\"Mujer\");\n\t\trdbtnMujer.setBounds(57, 26, 109, 23);\n\t\tpanel.add(rdbtnMujer);\n\t\tbuttonGroup.add(rdbtnMujer);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Enviar\");\n\t\tbtnNewButton.setEnabled(false);\n\t\tbtnNewButton.setBounds(127, 227, 168, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJRadioButton rdbtnNewRadioButton = new JRadioButton(\"<html>He leido y aceptado los Términos y Condiciones de uso</html>\");\n\t\tbuttonGroup_1.add(rdbtnNewRadioButton);\n\t\trdbtnNewRadioButton.setBounds(214, 135, 214, 37);\n\t\tframe.getContentPane().add(rdbtnNewRadioButton);\n\t\t\n\t\tJRadioButton rdbtnnoHeLeido = new JRadioButton(\"<html>No he leido y aceptado los Términos y Condiciones de uso</html>\");\n\t\tbuttonGroup_1.add(rdbtnnoHeLeido);\n\t\trdbtnnoHeLeido.setSelected(true);\n\t\trdbtnnoHeLeido.setBounds(214, 175, 214, 37);\n\t\tframe.getContentPane().add(rdbtnnoHeLeido);\n\t}",
"public Ventana() {\n initComponents();\n this.tipos.add(GD_C);\n this.tipos.add(GD_S);\n this.tipos.add(GND_C);\n this.tipos.add(GND_S);\n this.panel.setArea_text(text);\n\n }",
"public void initPanel(){\r\n\t \r\n\t\t//Titre\r\n\t\tlabel.setFont(new Font(\"Verdana\",1,40));\r\n\t label.setForeground(Color.black);\r\n\t label.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label.setBounds(110,0,575,50);\r\n\t\tthis.panel.setLayout(null);\t \r\n\t this.panel.add(label);\r\n\t \r\n\t //dc\r\n\t this.panel.add(label1, BorderLayout.CENTER);\r\n\t label1.setFont(new Font(\"Verdana\",1,40));\r\n\t label1.setForeground(Color.black);\r\n\t label1.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label1.setBounds(150,500,100,50);\r\n\t //ab\r\n\t this.panel.add(label2);\r\n\t label2.setFont(new Font(\"Verdana\",1,40));\r\n\t label2.setForeground(Color.black);\r\n\t label2.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label2.setBounds(550,500,100,50);\r\n\t //Button dc\r\n\t\tdc.setBounds(50,200,300,250);\r\n\t\tthis.panel.add(dc);\r\n\t\tdc.addActionListener(this);\r\n\t\t//Button ab\r\n\t\tab.setBounds(450,200,300,250);\r\n\t\tthis.panel.add(ab);\r\n\t\tab.addActionListener(this);\r\n\t\t\r\n\t\tthis.panel.add(label3);\r\n\t label3.setFont(new Font(\"Verdana\",1,20));\r\n\t label3.setForeground(Color.black);\r\n\t label3.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label3.setBounds(90,575,220,30);\r\n\t \r\n\t this.panel.add(label4);\r\n\t label4.setFont(new Font(\"Verdana\",1,20));\r\n\t label4.setForeground(Color.black);\r\n\t label4.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label4.setBounds(490,575,220,30);\r\n\t}",
"public void addQuickClusterBox() {\n final JPanel label = new JPanel();\n label.setBackground(Browser.PANEL_BACKGROUND);\n label.setLayout(new BoxLayout(label, BoxLayout.Y_AXIS));\n final JTextField clusterTF = new Widget.MTextField(CLUSTER_NAME_PH);\n label.add(clusterTF);\n final List<JTextField> hostsTF = new ArrayList<JTextField>();\n for (int i = 1; i < 3; i++) {\n final JTextField nl = new Widget.MTextField(\"node\" + i + \"...\", 15);\n nl.setToolTipText(\"<html><b>enter the node name or ip</b><br>node\"\n + i + \"<br>or ...<br>\"\n + System.getProperty(\"user.name\")\n + \"@node\" + i + \":22...\" + \"<br>\");\n hostsTF.add(nl);\n nl.selectAll();\n final Font font = nl.getFont();\n final Font newFont = font.deriveFont(\n Font.PLAIN,\n (float) (font.getSize() / 1.2));\n nl.setFont(newFont);\n label.add(nl);\n }\n final JPanel startPanel = new JPanel(new BorderLayout());\n \n startPanel.setBackground(Browser.PANEL_BACKGROUND);\n final TitledBorder titleBorder = Tools.getBorder(QUICK_CLUSTER_TITLE);\n startPanel.setBorder(titleBorder);\n final JPanel left = new JPanel();\n left.setBackground(Browser.PANEL_BACKGROUND);\n left.add(label);\n startPanel.add(left, BorderLayout.LINE_START);\n final MyButton loadClusterBtn = quickClusterButton(clusterTF, hostsTF);\n startPanel.add(loadClusterBtn, BorderLayout.LINE_END);\n c.fill = GridBagConstraints.HORIZONTAL;\n if (c.gridx != 0) {\n c.gridx = 0;\n c.gridy++;\n }\n mainPanel.add(startPanel, c);\n c.gridx++;\n if (c.gridx > 2) {\n c.gridx = 0;\n c.gridy++;\n }\n }",
"private void setupMessagePanel() {\n\t\tJPanel messagePanel = new JPanel();\n\t\tthis.message = new JTextArea();\n\t\tthis.message.setText(\"Registration Phase Completed. \\n\\nClick on the Log Off button below to \\nreturn to the main menu\");\n\t\tthis.message.setEditable(false);\n\t\tthis.message.setColumns(20);\n\t\tthis.message.setLineWrap(true);\n\t\tmessagePanel.add(message);\n\t\tthis.add(messagePanel, BorderLayout.CENTER);\n\t}",
"public MainDisplay(){\n /*\n Create both label and textfield for the input\n */\n Infix = new JLabel(\"Enter Infix: \");\n inputInfix = new JTextField(10);\n inputInfix.setBackground(Color.YELLOW);\n inputInfix.addActionListener(new textListener());\n add(Infix);\n add(inputInfix);\n\n /*\n Create label for the postfix expression\n */\n postExpression = new JLabel(\"Postfix expression: \");\n outputPostfix = new JLabel();\n add(postExpression);\n add(outputPostfix);\n\n /*\n Create label for the result\n */\n evaluateResult = new JLabel(\"Result: \");\n outputResult = new JLabel();\n add(evaluateResult);\n add(outputResult);\n\n /*\n Create label for the error message\n */\n errorMessage = new JLabel(\"Error Messages: \");\n outputError = new JLabel(\"[]\");\n add(errorMessage);\n add(outputError);\n outputError.setForeground(Color.decode(\"#651200\"));\n\n setLayout(new GridLayout(4,2));\n\n /*\n Set the size and background color\n */\n setPreferredSize(new Dimension(700, 150));\n\n setBackground(Color.GRAY);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTAResults = new javax.swing.JTextArea();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTPCBOValue = new javax.swing.JTextPane();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"MOOSE 2 - CBO, RFC - Antonio Ruiz\");\n\n jTAResults.setColumns(20);\n jTAResults.setRows(5);\n jScrollPane1.setViewportView(jTAResults);\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel2.setText(\"CBO\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setText(\"Value:\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setText(\"Classes:\");\n\n jScrollPane2.setViewportView(jTPCBOValue);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(144, 144, 144))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 293, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(119, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(10, 10, 10)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(63, Short.MAX_VALUE))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n\n jTextArea1.setEditable(false);\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(NewJPanel.class, \"NewJPanel.jLabel1.text_1\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(NewJPanel.class, \"NewJPanel.jButton1.text\")); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jButton3, org.openide.util.NbBundle.getMessage(NewJPanel.class, \"NewJPanel.jButton3.text\")); // NOI18N\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(NewJPanel.class, \"NewJPanel.jLabel2.text_1\")); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton3))\n .addContainerGap())\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n input = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n Output = new javax.swing.JTextPane();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n\n input.setText(\">>\");\n input.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n input.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n inputActionPerformed(evt);\n }\n });\n input.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n inputKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n inputKeyTyped(evt);\n }\n });\n\n Output.setEditable(false);\n Output.setFont(new java.awt.Font(\"Lucida Console\", 0, 11)); // NOI18N\n Output.setText(\"Elder Mod One Console\");\n jScrollPane1.setViewportView(Output);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(input, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n .addComponent(jScrollPane1)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(input, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }",
"private void setupPlayerScoresPanel(){\n\n // adds Player numbers and scores to String variable text\n sortPlayerScores();\n \n paragraph = new JLabel(text);\n paragraph.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 18));\n\n playerScoresPanel.add(paragraph);\n fullPanel.add(playerScoresPanel,BorderLayout.CENTER);\n }",
"private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}"
]
| [
"0.68099433",
"0.6591359",
"0.6560067",
"0.65417683",
"0.65353465",
"0.6533045",
"0.6520706",
"0.65147346",
"0.64512396",
"0.6435456",
"0.6419991",
"0.63771904",
"0.6326056",
"0.63100636",
"0.6300175",
"0.61995393",
"0.6159212",
"0.6153385",
"0.61249655",
"0.6095596",
"0.6092129",
"0.609155",
"0.60876244",
"0.6067208",
"0.6066087",
"0.60363305",
"0.6025166",
"0.6024966",
"0.602223",
"0.6020442",
"0.60127777",
"0.60121155",
"0.6007484",
"0.59955215",
"0.5980428",
"0.5969945",
"0.59634936",
"0.5962354",
"0.59481496",
"0.59352016",
"0.591459",
"0.59126914",
"0.59020835",
"0.58969414",
"0.5890054",
"0.5886711",
"0.5872073",
"0.58626395",
"0.58587444",
"0.5857993",
"0.5855304",
"0.58421135",
"0.58329713",
"0.58322275",
"0.5823824",
"0.5822833",
"0.58200264",
"0.5819442",
"0.58170265",
"0.580851",
"0.58084714",
"0.58041286",
"0.5802154",
"0.5801571",
"0.57963496",
"0.57957214",
"0.5788003",
"0.57818824",
"0.5781867",
"0.57780135",
"0.57778126",
"0.5773085",
"0.5765439",
"0.5760708",
"0.5759556",
"0.5756159",
"0.5752788",
"0.5751734",
"0.5750373",
"0.5748559",
"0.57468843",
"0.57458884",
"0.5739545",
"0.57392436",
"0.5738887",
"0.57302755",
"0.5728452",
"0.5719419",
"0.5716133",
"0.5714157",
"0.5712221",
"0.57100844",
"0.5709027",
"0.57079154",
"0.57042354",
"0.57034534",
"0.57032514",
"0.5699264",
"0.5698821",
"0.5691664"
]
| 0.5792673 | 66 |
/ For you to do: Using do while loop print even numbers from 20 to 1 Expected Output: 20 18 16 14 12 10 8 6 4 2 | public static void main(String[] args) {
int i = 20;
do { if (i%2==0)
System.out.println(i);
i--;
}while (i>1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\nint i =1;\r\nfor(i=1; i<=20; i++)\r\n{\r\n\tif(i % 2 == 1)\r\nSystem.out.println(i);\r\n}\r\nSystem.out.println(\"Printing only the odd numbers from 1 to 20\");\r\n\t}",
"public static void main(String[] args) {\n\n\t int even=20;\n\t do {\n\t\tSystem.out.println(even);\n\t even+=2;\n\t }while (even<=50);\n//2. way\n\t int even1=20;\n\t do {\n\t\t if (even1%2==0) {\n\t\t\t System.out.println(even1);\n\t\t }\n\t even1++;\n\t }while (even1<=50);\n}",
"public static void main(String[] args) {\nint i=1;//display from 20 to 10\nSystem.out.println(\"odd even\");\nwhile(i<=10)\n{\n\tif(i%2!=0) {\n\tSystem.out.println(i+\" \"+(i+1));//for space /t is fine\n\t}\ni++;\n}\n\t}",
"public static void main (String[] args) {\n\t\t\n\t\tint num=20;\n\t\t\n\t\twhile (num>=0) {\n\t\t\tSystem.out.println(num);\n\t\t\tnum-=2;\n\t\t}\n\t\t\n//second way to do it\n\t\t\n\t\tSystem.out.println(\"$$$$$$$$\");\n\t\t\n\t\tint num1=20;\n\t\t\n\t\twhile(num1>=0) {\n\n\t\t\tif(num1%2==0) {\n\t\t\t\tSystem.out.println(num1);\n\t\t\t\t}num1--;\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\n System.out.print(\"All numbers: \");\n for(int i = 1; i <= 50; i++ ){\n System.out.print(i+\" \");\n }\n System.out.println();\n\n // even numbers:\n System.out.print(\"Even Numbers: \");\n for(int i = 2; i <= 50; i+= 2 ){\n System.out.print(i+\" \");\n }\n System.out.println();\n\n // Odd numbers:\n System.out.print(\"Odd Numbers\");\n for(int i = 1; i<=49; i += 2 ){\n System.out.print(i+\" \");\n }\n System.out.println();\n\n System.out.println(\"======================================================\");\n for(int i = 1; i <= 50; i++ ){\n if(i%2 != 0){ // if i' value is odd\n continue; // skip\n }\n System.out.print(i+\" \");\n }\n\n System.out.println();\n\n for(int i = 1; i <= 50; i++ ){\n if(i%2==0){ // if i is odd number\n continue; // skip it\n }\n\n System.out.print(i+\" \");\n\n if(i == 29){\n break; // exits the loop\n }\n\n }\n\n\n System.out.println(\"Hello\");\n\n\n\n }",
"public static void main(String[] args) {\n int counter = 0;\n while (counter<30){\n counter +=3;\n System.out.print(counter + \" \");\n\n }\n System.out.println(\" \");\n int evenNumber = 0;\n while(evenNumber <=50){\n System.out.print( evenNumber + \" \");\n evenNumber +=2;\n\n }\n System.out.println(\" \");\n int oddNumber = 1;\n while (oddNumber<=50){\n System.out.print(oddNumber + \" \");\n\n oddNumber+=2;\n }\n\n System.out.println(\"---------------------\");\n int evenNumber2 = 20;\n if(evenNumber2 %2 == 0){\n System.out.println(evenNumber2 + \" is even number\");\n }else{\n System.out.println(evenNumber2 + \" is odd number\");\n }\n ++evenNumber2;\n\n\n System.out.println(\"---------------------------------\");\n\n int oddNumber2 = 21;\n if (oddNumber2 %2==1){\n System.out.println(oddNumber2 + \" is odd number\");\n }else{\n System.out.println(evenNumber2 + \" is even number\");\n }\n ++oddNumber2;\n\n }",
"public static void main(String[] args){\r\n int i=100;\r\n while (i>0) { \r\n if (i%2!=0) {\r\n System.out.print(i+\"\\n\");\r\n }\r\n i--;\r\n } \r\n }",
"public static void printAll() {\n\t\tint i=0;\n\t\twhile(i%2==0) {\n\t\t\ti+=2;\n\t\t\tSystem.out.print(i+\" \");\n\t\t\tif(i==100) break;\n\t\t}\n\t}",
"public static void main(String[] args) {\r\n\tint a=1;\r\n\twhile(a>=1 && a<10) {\r\n\t\ta+=1;\r\n\t\tif(a%2==0) {\r\n\t\t\tSystem.out.println(\"\"+a);\r\n\t\t}\r\n\t}\r\n\tint max = 50;\r\n\tint add =0;\r\n\tfor(int s =0;s<=max;s+=1) {\r\n\t\tadd+= s;\r\n\t}\r\n\tSystem.out.println(\"\"+add);\r\n\t/*Adding up odd numbers 1-25\r\n\t * \r\n\t */\r\n\tint sum = 0;\r\n\tint c = 25;\r\n\tfor(int b=1 ;b<=c;b+=2) {\r\n\t\tsum+=b;\r\n\t\tSystem.out.println(\"\"+sum);\r\n\t}\r\n\t\r\n}",
"public static void printOddInt() {\n\t\t\n\t\t//For Loop\n\t\tfor(int i=4; i<10; i++) {\n\t\t\tif(i%2!=0) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t}\n\t}",
"public static void printOddNumbers (int from, int to) {//when we dont know the range\n for(int i=from; i<=to; i++){\n if(i%2!=0){\n System.out.print(i + \" \");\n }\n\n }\n System.out.println();\n }",
"public static void main(String[] args) {\n\n\n int i = 0;\n while (i < 10) {\n i++;\n if (i%2==0) {\n System.out.println(i);\n }\n }\n }",
"public static void main(String[] args) {\n\n\t\tint number = 20;\n\n\t\twhile (number >= 2) {\n\t\t\tSystem.out.println(number);\n\t\t\tnumber -= 2;\n\n\t\t}\n\t\tSystem.out.println(\"--------01------------\");\n\n\t\tint num = 2;\n\n\t\twhile (num <= 20) {\n\t\t\tSystem.out.println(num);\n\t\t\tnum += 2;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint a=1;\n\t\t\n\t\twhile(a<=100) {\n\t\t\tSystem.out.print(a+\" \");\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//print number 100 to 1\n\t\tint b=100;\n\t\t\n\t\twhile (b>=1) {\n\t\t\tSystem.out.print(b+\" \");\n\t\t\tb--;\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//print even number from 20 to 100\n\t\tint c=20;\n\t\t\n\t\twhile(c<=100) {\n\t\t\tSystem.out.print(c+\" \");\n\t\t\tc+=2;\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tint d =20;\n\t\t\n\t\twhile (d<=100) {\n\t\t\tif (d%2==0) {\n\t\t\t\tSystem.out.print(d+\" \");\n\t\t\t}\n\t\t\td++;\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tint a=1;\n\t\t\n\t\twhile(a<=100)\n\t\t{\t\n\t\t\tSystem.out.println(a);\n\t\ta++;\n\t\t}\n\t//eg: to print the even numbers 1 to 10\n\t\t\n\t\tint b=2;\n\t\twhile(b<=10)\n\t\t{\n\t\t\tSystem.out.println(b);\n\t\t\tb=b+2;\n\t\t}\n\t//eg: to print the odd numbers 1 to 10\n\t\tint c=1;\n\t\twhile(c<=10)\n\t\t{\n\t\t\tSystem.out.println(c);\n\t\t\tc=c+2;\n\t\t}\n\t//eg: to print the numbers 1 to 10 in decending order\n\t\tint d=10;\n\t\twhile(d>0)\n\t\t{\n\t\t\tSystem.out.println(d);\n\t\t\td--;\n\t\t}\n//DO...WHILE LOOP:\n\t\n\tint l=100;\n\tdo\n\t{\n\t\tSystem.out.println(l);\n\t\tl++;\n\t}while(l<=110);\n//in other case of do...while loop\n\tint p=20;\n\tdo\n\t{\n\t\tSystem.out.println(p);//20\n\t\tp++;\n\t}while(p<=10);\n/*it will only print 20 once as it will run until the \n * condition is met. It prints the value of p that is 20 \n * for once and next step is 20+1. Then it finally verifies \n * the condition p<=10. When the condition fails, it stops \n * running. So in this loop the value is printed atleast \n * once. This is rarely used. \n * Most common one is for loop. While loop is also used \n * very often. */\t\n\t\n//FOR LOOP:\n /* initialization==>condition==>increment/decrement\n * all three can be shown in one line instead of \n * three different lines as while loop.*/\n\tfor(int g=30;g>20;g--)\n\t{\n\t\tSystem.out.println(g);\n\t}\n\t\n\t\n\n\t}",
"public static void printEvenNumbers(int from, int to){\n for(int i=from; i<=to; i++){\n if(i%2==0){\n System.out.print(i + \" \");\n }\n }\n System.out.println();\n }",
"public static void printOdd50() {\n\t\tfor(int i = 0; i < 50; i++) {\n\t\t\tif(i % 2 == 1) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"private void findOddEven() {\n\t\tif (number % 2 == 0) {\n\t\t\tif (number >= 2 && number <= 5)\n\t\t\t\tSystem.out.println(\"Number is even and between 2 to 5...!!\");\n\t\t\telse if (number >= 6 && number <= 20)\n\t\t\t\tSystem.out.println(\"Number is even and between 6 to 20...!!\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Number is even and greater than 20...!!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Number is odd...!!\");\n\t\t}\n\t}",
"public static void main(String[] args) {\n Scanner sc = new Scanner (System.in);\n int n;\n for (int i = 0; i < 20; i++) {\n if (i%2 == 0) {\n System.out.print(\" \");\n }else{\n n = 2*i;\n System.out.println(\"Output: \" + n);\n }\n }\n }",
"public static void main(String[] args) {\n\t\tfor(int i=1;i<20;i++)\r\n\t\t{\r\n\t\t\tif(i%2!=0)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(i+\" is an ODD Number\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t}",
"public static void main(String[] args) {\n\n\t\tfor (int i = 15; i <= 35; i++) {\n\n\t\t\tif (i % 6 == 0) {\n\n\t\t\t\tcontinue;\n\n\t\t\t}\n\t\t\tSystem.out.print(i + \" \");\n\n\t\t}\n\t\tSystem.out.println();\n\n\t\tfor (int a = 15; a < 36; a++) {\n\t\t\tif (a % 2 == 0 && a % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.print(a + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int x = 0; x <= 10; x++) {\n\t\t\tif (x == 4) {\n\t\t\t\tSystem.out.println(\"I am stopping the loop\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(x + \" \");\n\t\t}\n\t\tSystem.out.print(\" \");\n\t\tfor (int y = 1; y <= 10; y++) {\n\t\t\tif (y == 4) {\n\t\t\t\tSystem.out.println(\"i am skipping the loop\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.print(y+\"-)\");\n\t\t\tSystem.out.println(\" i am inside the loop\");\n\t\t}\n\t\t/*\n\t\t * write a program that needs a range of integers(start and end point)\n\t\t * provided by a user and then from that range prints the sum of the even\n\t\t */\n\t\tSystem.out.println(\" \");\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.println(\"please write a min number\");\n\t\tint min=scan.nextInt();\n\t\tSystem.out.println(\"please write a max number\");\n\t\tint max=scan.nextInt();\n\t\t\n\t\tint sumEven=0;\n\t\tint sumOdd=0;\n\t\tfor(int n=min; n<max+1; n++) {\n\t\t\tif(n%2==0) {\n\t\t\t\tsumEven=sumEven+n;\n\t\t\t}else if(n%2!=0) {sumOdd=sumOdd+n;\n\t\t\t\n\t\t}\n\t\t\n\t}\n\t\tSystem.out.println(sumEven+\" is sum of even numbers\");\n\t\tSystem.out.println(sumOdd+\" is sum of odd numbers\");\n\n}",
"public static void main(String[] args){\n\n int x = 1;\n\n while(x < 11){\n if((x % 2) == 0){\n System.out.println(\"Even number: \"+x);\n }\n x++;\n }\n\n\n\n //uncomment next line if input required\n //input.close();\n }",
"public static void main(String[] args){\n for(int i = 23; i <= 89; i++){\n System.out.print(i + \" \");\n if(i % 10 == 2)\n System.out.print(\"\\n\"); }\n }",
"public static void main(String[] args) {\n \n\t\tfor (int i=1;i<=100; i++){\n\t System.out.print(i+\" \");\n }System.out.println();\n\t\tSystem.out.println(\"----------------2-------------\");\n\t\tfor(int b=100; b>=1;b--) {\n\t\t\tSystem.out.print(b+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"----------------3---------------\");\n\t\t\n\t\tfor (int c=20; c>=1;c-=2) {\n\t\t\tSystem.out.print(c+ \" \");\n\t\t}System.out.println();\n\t\t\n\t\t\n\t\tSystem.out.println(\"----------------4---------------\");\n\t\tfor (int d=21; d<=50;d+=2) {\n\t\t\tSystem.out.print(d+ \" \");\n\t\t\n\t}System.out.println();\n\tSystem.out.println(\"----------------2(even)-------------\");\n\tfor(int z=20; z>=1; z-=2) {\n\t\tif (z%2==0) {\n\t\t\tSystem.out.print(z+ \" \");\t\n\t\t}\n\t}System.out.println();\nSystem.out.println(\"What is the ouptut\");\n\tint sum=0;\n\t\tfor(int i=1;i<=5; i++) {\n\t\t\tsum=sum+i;\n\t\t}\tSystem.out.println(sum);\n\t\tSystem.out.println(\" -------------------What is the otput-------------\");\n\t\tint result =0;\n\t\tfor(int i=2;i<10;i+=2) {\n\t\t\tresult+=i;\n\t\t\t}System.out.println(result);\n\t\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\t\t\n\t\tfor(int x=1; x<=20; x++ ){\n\t\t\t\n\t\t\tif( x%2==1) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(x);\n\t\t}\n\t\t\n\t\t}\n\n\t}",
"public static void doWhile() {\n\n //1.\n int i = 0;\n do {\n System.out.println(i);\n i += 2;\n } while (i < 100);\n//\n //2.\n int j = 100;\n do {\n System.out.println(j);\n j -= 5;\n } while (j >= -10);\n\n // 3.\n int k = 2;\n do {\n System.out.println(k);\n k *= k;\n } while (k < 1000000);\n }",
"public static void main(String[] args) {\n\t\tint i = 2;\n\t\twhile(i<10) {\n\t\t\tif(isDivisible(20*i)){\n\t\t\t\tSystem.out.println(\"Final: \"+20*i+\" with i= \"+i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti=i+2;\n\t\t}\n\t}",
"public static void main (String[] args){\n Scanner myScanner; \n myScanner = new Scanner( System.in ); \n System.out.print(\"Enter a number between 1 and 30: \");\n String input = myScanner.next(); //stores input into string object \n int input2 = input.length();// checks String length\n char input3; \n int num;\n \n \n for (int i=0; i<input2; i++){\n input3 = input.charAt(i);\n if (input3 < '0' || input3 >'9'){\n System.out.println(\"Invalid Input!\");\n System.exit(0);//\n }\n \n }\n num = Integer.parseInt(input);// will covert the string into an integer \n if (!( num>=1 && num <=30)){\n System.exit(0);\n }\n String output;\n System.out.println(\"For Loop: \");\n \n for(int i =1; i <= num; i++ ){\n output =\"\";\n if (i%2 == 0){\n for(int j = 0; j < i; j++){\n output += i;\n System.out.println(output);\n }\n \n }\n else{\n for(int j = i; j > 0; j--){\n for (int k = j; k>0; k--){\n System.out.print(i);\n }\n System.out.println();\n }\n \n \n }\n }\n \n System.out.println(\"While Loop: \");\n \n int i = 1;\n while (i <= num){\n output =\"\";\n if(i%2==0){\n int j= 0;\n while(j<i){\n output += i;\n System.out.println(output);\n j++;\n }\n \n }\n else {\n int j = i;\n while( j > 0){\n int k =j;\n while(k>0){\n System.out.print(i);\n k--;\n }\n System.out.println();\n j--;\n }\n }\n i = i+1;\n \n }\n System.out.println(\"Do-While Loop: \");\n i = 1;\n do{\n output =\"\";\n if(i%2==0){\n int j= 0;\n do{\n output += i;\n System.out.println(output);\n j++;\n }while(j<i);\n \n }\n else {\n int j = i;\n do{\n int k =j;\n do{\n System.out.print(i);\n k--;\n }while(k>0);\n System.out.println();\n j--;\n }while( j > 0);\n }\n i = i+1;\n \n }while (i <= num);\n \n \n }",
"public static void main(String[] args) {\n\t\tfor(int i=10, oddCount=0; i<101; ++i){\r\n\t\t\tif( (i%2) == 0) {\t// even numbers\r\n\t\t\t\tcontinue;\t\t// don't execute the lines below, continue with next iteration\r\n\t\t\t}\r\n\t\t\telse {\t\t\t\t// odd numbers\r\n\t\t\t\t//Print a new line, on every 10th odd number\r\n\t\t\t\tif( (oddCount % 10) == 0){\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t}\r\n\t\t\t\t++oddCount;\r\n\t\t\t\tSystem.out.print(i + \" \");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tfor (int i = 1; i < 101; i++) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program\");\n\t\tfor (int i = 100; i > 0; i--) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 2; i < 101; i = i + 2) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 1; i < 100; i = i + 2) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 501; i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tSystem.out.println(i + \" is even.\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(i + \" is odd.\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 778; i = i + 7) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 2006; i < 2019; i++) {\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 3; i++) {\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tSystem.out.println(i + \" \" + \" \" + j);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 9; i += 3) {//rows \n\t\t\tfor (int j = 1; j < 4; j++) {//how many \n\t\t\t\tSystem.out.print(j + i);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 100; i += 10) {\n\t\t\tfor (int j = 1; j <11; j++) {\n\t\t\t\tSystem.out.print(j + i+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\nfor (int i = 1; i < 7; i++) {\n\tfor (int j = 0; j < i; j++) {\n\t\tSystem.out.print(\"* \");\n\t}\n\tSystem.out.println();\n}\t\n\n\t\n\t\n\t\n\t}",
"public static void printodd() {\n for (int i = 0; i < 256; i++){\n if(i%2 != 0){\n System.out.println(i);\n }\n \n }\n }",
"public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n\n int input = 1;\n String output = \"\";\n\n\n do {\n input = scanner.nextInt();\n if (input % 2 == 0 && input != 0) {\n output = output + \"even\\n\";\n }\n if (input % 2 != 0 && input != 0) {\n output = output + \"odd\\n\";\n }\n } while (input != 0);\n System.out.println(output);\n }",
"public static void main(String[] args) {\n\t\tint evenCount = 50, oddCount = 50;\n\t\t\n\t\tSystem.out.print(\"Even numbers between 50 and 100: \");\n\t\t// While the even counter is equal to or below 100, it will print a number. (range 50 - 100)\n\t\twhile (evenCount <= 100) {\n\t\t\t// If the remainder of the current number is 0, it will print it. (0R = even num)\n\t\t\tif (evenCount % 2 == 0) {\n\t\t\t\tSystem.out.print(evenCount + \", \");\n\t\t\t} \n\t\t\t// Increment even count so we move forward towards 100.\n\t\t\tevenCount++;\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Odd numbers between 50 and 100: \");\n\t\t// While the odd counter is equal to or below 100, it will print a number. (range 50 - 100)\n\t\twhile (oddCount < 100) {\n\t\t\t// If the remainder of the current number is 1, it will print it. (1R = even num)\n\t\t\tif (oddCount % 2 == 1) {\n\t\t\t\tSystem.out.print(oddCount + \", \");\n\t\t\t} \n\t\t\t// Increment odd count so we move forward towards 100.\n\t\t\toddCount++;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tfor(int a=100; a>=1; a--) {\n\t\t\tSystem.out.println(a);\n\t\t}\n\t\t\n\t\t//print numbers from 100 to 1\n\t\t\n\t\tfor(int b=1; b<=100; b++) {\n\t\t\tSystem.out.println(b);\n\t\t}\n\t\t\n\t\t//print odd numbers from 1 to 20(2 ways)\n\t\t\n\t\tfor(int c=1; c<=20; c+=2) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//print even numbers from 20 to 1(2ways)\n\t\t\n\t\tfor(int d=20; d>=1; d-=2) {\n\t\t\tSystem.out.println(d);\n\t\t}\n\t\t\n\t\t//print even numbers between 20 and 50(2 ways)\n\t\t\n\t\tfor(int e=20; e<=50; e+=2) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\t//print odd numbers between 20 and 50(2way)\n\t\t\n\t\tfor(int f=20; f<=50; f++) {\n\t\t\tif(f%2==0) {\n\t\t\tSystem.out.println(f);\n\t\t}\n\t}\n}",
"static void problemEight() {\n int i = 0;\n int prevNum = 1;\n System.out.println(i);\n while (i < 50) {\n int temp = i + prevNum;\n if (temp < 50) System.out.println(temp);\n prevNum = i;\n i = temp;\n }\n }",
"public static void main(String[] args) {\n\n Scanner myScanner = new Scanner(System.in);\n int numero;\n int i;\n\n System.out.println(\"Ingrese un numero\");\n numero = myScanner.nextInt();\n\n for (i = numero; i<=numero+20; i ++) {\n System.out.println(i);\n }\n\n\n }",
"public static void main(String[] args) {\n int number = 1;\n do{\n if ( (number%2 == 0) && (number%7 == 0) ){\n System.out.print(number + \" \");\n }\n number++;\n }while(number<=1000);\n\n\n\n }",
"public void Series() {\n\t\tint n=2;\n\t\twhile (n<=10) {\n\t\t\tSystem.out.print(n+\" \");\n\t\t\tn=n+2;\n\t\t}\n\t/*\tSystem.out.println(n);\n\t\tn=n+2;\n\t\tSystem.out.println(n);\n\t\tn=n+2;\n\t\tSystem.out.println(n);\n\t\tn=n+2;\n\t\tSystem.out.println(n);\n\t\tn=n+2;\n\t\tSystem.out.println(n);\n\t\tn=n+2;*/\n\t}",
"public synchronized void odd(IntConsumer printNumber) throws InterruptedException {\n for (int i = 1; i <= n; i += 2) {\n while (state != 1) {\n wait();\n }\n\n printNumber.accept(i);\n state = 2;\n\n notifyAll();\n }\n }",
"public static void main (String [ ] args) {\n\nint value = (int)(Math.random ()*101); //generates integer 0-100 \nint e=0; //even counter\nint o=0; //odd counter\n\nSystem.out.println( \" Random number generated: \" +value ); //print out value generated \n \n\nif(value!=0){ //if not zero, run program\n\n if(value%2==0) { //all even values\n System.out.print( \" The output pattern: \");\n \n do{\n System.out.print( \"*\"); \n e++;\n }//close do loop\n \n while (e<value);\n \n } //close if statement for even integers \n\n\n \n else{ //all odd values\n \n do{\n System.out.print( \"&\");\n o++;\n }//close do loop\n \n while (o<value);\n \n \n}\n\n}//close first if statement \n\nelse { //if random value is 0, then print nothing...\nSystem.out.print( \" \");\n}\n\n \n}",
"void milestone3(){\n for(int i = 2; i <= 100; i++){\n int count = 0;\n for(int j = 1; j <= i; j++)\n if(i % j == 0) count += 1;\n if(count > 2) continue;\n else System.out.print(i + \" \");\n }\n System.out.println();\n }",
"public static void main(String[] args) {\n\t\r\nfor (int i=1; i<=20; i++) {\r\n\tif (i!=20) {\r\n\t\t\r\n\tSystem.out.print(i+\"+\");\r\n}\r\nelse {\r\n\tSystem.out.println(i);\r\n}\r\n\t}\r\n\r\n}",
"public static void main(String[] args) {\n\r\n\t\tfor (int i = 1; i <= 50; i++) {\r\n\r\n\t\t\tif (i % 2 == 0) {\r\n\t\t\t\t// System.out.println(\" It is an even number \" + i);\r\n\t\t\t\tSystem.out.println(i + \" is an even number\");\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Integer oddNumbers(int fromThisNumber, int toThisNumber){\n\t\tSystem.out.println(\"Print odd numbers between 1-255\");\n\t\tfor(int i = fromThisNumber; i <= toThisNumber; i++){\n\t\t\tif(i % 2 == 1){\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t\treturn 1;\n\t}",
"public static void printNum() {\n\t\tfor(int i = 1; i<= 20; i++) {\n\t\t\tSystem.out.print(\" \" + i);\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\t}",
"@Override\n public void run() {\n try {\n evenSemaphore.acquire();\n while (true) {\n if(count % 2 != 0){\n System.out.println(Thread.currentThread().getName() + \" 奇数 \" + count);\n count++;\n if (count > 20) {\n return;\n }\n evenSemaphore.release();\n oddSemaphore.acquire();\n TimeUnit.SECONDS.sleep(1);\n }\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n\t\tint num,i=0,ch,sum=0,sum2=0,count=0,last=0;\n\t\tbutton = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter number \");\n\t\tnum= button.nextInt();\n\t\tSystem.out.println(\"1/Even number: \");\n\t\tSystem.out.println(\"2/Odd Number : \");\n\t\tSystem.out.println(\"3/print five of even\");\n\t\tSystem.out.println(\"4/The first 25% of numbers\");\n\t\tSystem.out.println(\"5/The last 75% of numbers\");\n\t\tch = button.nextInt();\n\t\tswitch(ch){\n\t\tcase 1: \n\t\t\ti=1;\n\t\t\tSystem.out.println(\"even\");\n\t\t\twhile(i<=num){\n\t\t\t\t\n\t\t\t\tif(i%2==0){\n\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t\ti++;\n\t\t\t\t\tsum+=i;\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"The sum of even \" + sum);\n\t\t\t\tbreak;\n\t\tcase 2: \n\t\t\t\tSystem.out.println(\"The odd\");\n\t\t\t\twhile(i<=num){\n\t\t\t\t\tif(i%2!=0){\n\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t\ti++;\n\t\t\t\t\tsum2+=i;\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"The sum of odd \" + sum2);\n\t\t\t\tbreak;\n\t\tcase 3: System.out.println(\"The last five of even \");\n\t\t\t\ti =1;\n\t\t\t\twhile(i<=num){\n\t\t\t\t\tif(count<5){\n\t\t\t\t\tif(i%2==0){\n\t\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tlast+=i;\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"The sum even last five \" + last);\n\t\t\t\tbreak;\n\t\tcase 4: System.out.println(\"The last 25% of numbers \");\n\t\t\t\tint n;\n\t\t\t\ti=1;\n\t\t\t\tn = (int) ((int) num * 0.25);\n\t\t\t\tSystem.out.println(n);\n\t\t\t\twhile(i<=n){\n\t\t\t\t\tif(i%2==0){\n\t\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\t//TV IS HARMING\n\t\t\t\tbreak;\n\t\tcase 5: \n\t\t\t\tn = 25;\n\t\t\t\t\tfor(int k = num - n; k<=num;k++){\n\t\t\t\t\t\tif(k%2==0){\n\t\t\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\tdefault : break;\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\nint i=1;\nwhile(i<=10)\n{\n\tSystem.out.println(i+\"raj\");//display nos from 1 to 10 and raj \n\ti=i+1;\n}\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"To print the odd number from 1 to 100\");\n\t\tfor ( int i = 1;i<=100;i++)\n\t\t{\n\t\t\tif (!(i % 2 == 0))\n\t\t\t{\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t int[] numbers = {13, 45, 26, 22, 19, 24, 20, 30, 90, 12};\n\n for(int i = 0; i < numbers.length; i++){\n if(numbers[i]%2 == 0){\n System.out.println(\"Even number: \" + numbers[i]);\n }\n }\n }",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int[] nums = {input.nextInt(),input.nextInt(),input.nextInt(),input.nextInt(),input.nextInt()};\n\n //TODO: Write your code below\n int countEven = 0;\n for(int each : nums){\n if(each % 2 != 0){\n continue;\n }\n countEven++;\n }\n System.out.println(countEven);\n\n\n\n }",
"public static void main(String[] args) {\n\r\n\t\tfor(int n = 1; n <= 100; n++) {\r\n\t\t\tif(n % 2 == 0) {\t\t\t\t//==> check if it is even\r\n\t\t\t\tSystem.out.print(n+\" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(); // ===> for seprate line\r\n\t\t\r\n\t\t//2. print all odd numbers in same line\r\n\t\t\r\n\t\tfor(int j = 1; j <= 100; j++) {\r\n\t\t\tif(j % 2 != 0) {\r\n\t\t\t\tSystem.out.print(j+ \" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//3. sumOfOdds, sumOfEvens - calculate them\r\n\t\t// and print out after the loop\r\n\t\t// sum of 1 - 10 mean (1+2+3+4+5+6+7+8+9+10) just examp.\r\n\t\tSystem.out.println(); // ===> for seprate line\r\n\t\t\r\n\t\tint sumOfOdds = 0;\r\n\t\tint sumOfEvens = 0;\r\n\t\t\r\n\t\tfor(int num = 1; num <= 10; num++) {\r\n\t\t\tif(num % 2 == 0) {\r\n\t\t\t\tsumOfEvens += num;\r\n\t\t\t}else {\r\n\t\t\t\tsumOfOdds += num;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Sum of events: \"+ sumOfEvens);\r\n\t\tSystem.out.println(\"Sum of odds: \" + sumOfOdds);\r\n\t\t\r\n\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\n for( int x = 1 ; x <= 5 ; x++){\n System.out.print(x + \" \");\n }\n System.out.println();\n\n for( int x = 1 ; x <= 5 ; x++){\n System.out.print(x + \" \");\n }\n System.out.println();\n\n for( int x = 1 ; x <= 5 ; x++){\n System.out.print(x + \" \");\n }\n System.out.println();\n\n\n\n // count from 1 to 5\n // repeat this 3 times\n\n for( int i = 1 ; i <= 3 ; i++){// nested loop, write inside loop first , then\n // outside loop ,then put entire inside loop into outside loop\n System.out.println(\"ITERATION : \" +i);\n\n for( int x = 1 ; x <= 5 ; x++){ // this is inside loop print 1-5\n System.out.print(x + \" \");\n }\n System.out.println();\n }\n // count from 1 to 10-->> print only odd numbers\n // repeat this 4 times\n\n }",
"public static void main (String [] args) {\n while (true) {\n System.out.println(\"Please enter an integer\");\n Scanner scanner = new Scanner(System.in);\n int input = scanner.nextInt();\n if (input == 17) {\n break;\n }\n else if (input % 2 == 0) {\n System.out.println(\"even\");\n } else {\n System.out.println(\"odd\");\n }\n }\n System.out.println(\"My number 17! Show is over\");\n }",
"@Override\n public void run() {\n try {\n evenSemaphore.acquire();\n while (true) {\n\n if(count % 2 == 0){\n System.out.println(Thread.currentThread().getName() + \" 偶数 \" + count);\n count++;\n if (count > 20) {\n return;\n }\n oddSemaphore.release();\n evenSemaphore.acquire();\n TimeUnit.SECONDS.sleep(1);\n }\n if (count > 20) {\n break;\n }\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"Vilket heltal ska vi börja med?\");\n int first = sc.nextInt();\n System.out.println(\"Vilket ska vi avsluta med?\");\n int second = sc.nextInt();\n\n int firstMax = first * 10;\n int secondMax = second * 10;\n\n do {\n\n for (int j = first; j <= firstMax; j = j + first) {\n System.out.print(j);\n System.out.print(\" \");\n\n }\n\n System.out.println(\" \");\n first++;\n firstMax = firstMax + 10;\n\n\n\n }while(first != second + 1 && firstMax != secondMax + 10);\n\n\n\n\n\n }",
"int main()\n{\n int n,p=0,n2=2;\n cin>>n;\n if(n>0)\n cout<<p<<\" \";\n for(int i=1;i<n;i++)\n {\n p=p+n2;\n cout<<p<<\" \";\n if(i%2==1)\n \tn2=n2+4;\n }\n \n}",
"public static void main(String[] args) {\n int counter = 1;\n while (counter <=500){\n if (counter % 7 == 0 || counter % 5 == 0 || counter % 3 == 0){\n System.out.println( counter);\n }\n counter ++;\n }\n\n int counter2 = 500;\n do {\n System.out.println(\"do counter < 100\");\n }while (counter2 < 100); //mind. 1 Durchlauf da Bedingung am schluss ist, sonst gleich wie while\n }",
"public static void main(String[] args) {\n\n int n = 0;\n for(int i=0; i<100; i++){\n if(i%2==1){\n n =i;\n } else\n n =i;\n }\n System.out.println(n);\n }",
"public static void main(String[] args) {\n\n\t\tint num=10;\n\t\tdo {\n\t\t\tSystem.out.println(num);\n\t\t\tnum++;\n\t\t}while( num<20 );\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"This is a for loop\");\n\t\tfor (int number = 0; number <=30; number++) {\n\t\t\tSystem.out.println(number);\n\t\t\t\n\t\t}\n\t\t\n\t\tint number=20;\n\t\tint numberone=10;\n\t\tSystem.out.println(\"This is a do while loop\");\n\t\tdo {\n\t\tSystem.out.println(number);\n\t\tnumber++;\n\t\t} while (number<=100);\n\t\t\n\t\t\n\t\tSystem.out.println(\"This is a while loop\");\n\t\twhile (numberone<=50) {\n\t\t\tSystem.out.println(numberone);\n\t\t\tnumberone++;\n\t\t\t\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\n\t\tint sum =0;\n\t\tint number =0;\n\t\t\n\t\twhile (number < 20) {\n\t\t\tnumber++;\n\t\t\tsum += number;\n\t\t\tif(sum>= 100)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tSystem.out.println(number);\n\t\tSystem.out.println(sum);\n\t}",
"public static void main(String[] args){\n\n for(int n = 2; n < 102; n+=2)System.out.printf(\"%d\\n\",n);\n \n \n }",
"private void hailstoneSeq() {\r\n\t\tint evenCount = 0; //number of times the even operation is used\r\n\t\tint oddCount = 0; //number of times the of operation is used\r\n\t\t\r\n\t\tint num = readInt(\"Enter a number:\");\r\n\t\t\r\n\t\twhile(num != 1) {\r\n\t\t\t//even numbers\r\n\t\t\tif(num % 2 == 0) { \r\n\t\t\t\tprintln(num + \" is even, so I take half: \" + (num/2));\r\n\t\t\t\tnum = num / 2;\r\n\t\t\t\tevenCount += 1;\r\n\t\t\t\t\r\n\t\t\t\tif(num == 1) { \r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\t//odd numbers\r\n\t\t\tif(num % 2 != 0) { \r\n\t\t\t\tprintln(num + \" is odd, so I make 3n + 1: \" + (3 * num + 1));\r\n\t\t\t\tnum = 3 * num + 1;\r\n\t\t\t\toddCount += 1;\r\n\t\t\t\t\r\n\t\t\t\tif(num == 1) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//determining the number of steps to reach number 1\r\n\t\tint totalCount = evenCount + oddCount;\r\n\t\tprintln(\"It took \" + totalCount + \" steps to reach 1.\");\r\n\t}",
"public static void main(String[] args) {\n\t\tint i;\n\t\n\t\tfor(i=2 ;i<=20; i=i+2)\n\t\t{\n\t\t\tSystem.out.print(i+\" \");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\nint num=0;\n//num 4 den kucuk iken \nwhile(num<4) {//Parantez icindeki condition true oldugu surece while loop calisir\n\tSystem.out.println(\"Ali\");\nnum++;//Bu satiri unutursaniz while loop sonsuz donguye girer.Unutmayiniz\n\n}\n\t\t\n// while loop kullanarak 1 den 10 a kadar tam sayilari ekrana yazdiriniz.\nint num1=1;\nwhile(num1<11) {System.out.println(num1+\" \");\n\t\tnum1++;\n\t\t\t\t\n}\t\n//While loop kullanarak 1 den 20 ye kadar cift sayilari ekrana yazdiriniz\nint num2=1;\nwhile(num2<21) {if(num2%2==0)\n\tSystem.out.print(num2+\" \");\n\tnum2++;\n}\nSystem.out.println();\n//while loop kullanark 5 den 120 ye kadar 3 ile bolunebilen tamsayilari yazdiriniz\n\tint num3=5;\n\twhile(num3<121) {if(num3%3==0)\n\t\tSystem.out.print(num3+\" \");\nnum3++;\t\n\t}\n\t}",
"public synchronized void even(IntConsumer printNumber) throws InterruptedException {\n for (int i = 2; i <= n; i += 2) {\n while (state != 3) {\n wait();\n }\n\n printNumber.accept(i);\n state = 0;\n\n notifyAll();\n }\n }",
"public static void main(String[] args) {\n\t\tfor (int number = 20;number <= 100; number=number+2) {\n\t\t\tSystem.out.println(number);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\tint count = 99 ;\t\n\tint ten = 0 ;\n\tSystem.out.println(\"Counting from 100 to 200\") ; \n\tSystem.out.println(\"Divisible by 5 or 6, but not both\") ;\n\tSystem.out.println(\"_______________________________________\") ;\n\t\t\n\t\t//Display all the numbers between 100 and 200\n\t\tdo {\n\t\t\tif (count % 5 == 0 ^ count % 6 == 0) {\n\t\t\t\tSystem.out.print(count + \" \") ;\n\t\t\t\tten++;\n\t\t\t}//display only 10 per line\n\t\t\tif (ten == 10){\n\t\t\t\tSystem.out.println() ;\n\t\t\t\tten = 0 ;\n\t\t\t}\n\t\t\tcount++ ;\n\t\t} while (count <= 200);\t\n\t\t\t\n\t}",
"public static void main(String[] args){\n int i = 0;\n int sum = 0;\n while (sum <= 10){\n i++;\n sum += i;\n System.out.println(i+ \",\" + sum);\n }\n }",
"public void streamIterate(){\n Stream.iterate(new int[]{0, 1},t -> new int[]{t[1], t[0]+t[1]})\n .limit(20)\n .forEach(t -> System.out.println(\"(\" + t[0] + \",\" + t[1] +\")\"));\n /*\n In Java 9, the iterate method was enhanced with support for a predicate.\n For example, you can generate numbers starting at 0 but stop the iteration once the number is greater than 100:\n * */\n IntStream.iterate(0, n -> n < 100, n -> n + 4)\n .forEach(System.out::println);\n }",
"public static void main(String[] args) {\n\t\tint i;\r\n\t\tfor(i = 1; i<=10; i++) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\tSystem.out.println(\"=============\");\r\n\t\ti = 1;\r\n\t\twhile(i<=10) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tSystem.out.println(\"=============\");\r\n\t\ti = 1;\r\n\t\tint j = 15;\r\n\t\twhile(true) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\tif(i==j) { break;}\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) {\r\n // create a scanner for user input \n Scanner input = new Scanner(System.in);\r\n \n //prompt user for their number\n System.out.println(\"Enter your number\"); \n //intialize user's number\n int number = input.nextInt();\n //intialize the remainder\n int remainder = number % 2; \n \n //Determin whether user's number is odd or even\n if (remainder >= 1){\n System.out.println(number + \" is an odd number \");\n }else{\n System.out.println(number +\" is an even number\");\n } \n\n\r\n }",
"public static void main(String[] args) {\n\t\tint value = 1;\n\t\t int count = 7;\n\t\t\tint curr = 0;\n\t\t\t int prev = 0;\n\t\t\tint num = 0;\n\t\twhile (value <= count)\n\t\t{\n\t\t\tnum = curr + prev;\n\t\t\tSystem.out.print(num);\t\n\t\t\t\tvalue++;\n\t\t\t\tif (value == 2)\n\t\t\t\t{\n\t\t\t\t\tprev = num;\n\t\t\t\t\tcurr = 1;\n\t\t\t\t}\n\t\t\t\t\t\tprev = curr;\n\t\t\t\t\t\tcurr = num;\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n Scanner t = new Scanner(System.in);\n int valor = 0;\n int n = 10;\n int[] arreglo = new int[n];\n\n\n for(int i = 0; i< arreglo.length; i++){\n System.out.println(\"Dame un valor: \"+(i+1));\n valor = t.nextInt();\n arreglo[i] = valor;\n }\n for(int i: arreglo){\n if (i%2==0)\n System.out.println(\"El número es par \" + i);\n\n }\n\n\n }",
"public static void main(String[] args) {\n\t\tfor (int i = 100; i <= 199; i++) {\n\t\t\tif(!(i%2==0)) {\n\t\t\t\tSystem.out.println(i+ \" \");\n\t\t\t}\n\t\t}\n\n\t}",
"private static void displayNumbers(){\n BigInteger bigInteger = new BigInteger(create50DigitString());\n int i = 1;\n do {\n // Checking the remainder's int value == 0 since the requirement is to find the number greater than Long.MAX_VALUE and divisible by 2 or 3.\n if (bigInteger.remainder(new BigInteger(\"2\")).intValue() == 0 || bigInteger.remainder(new BigInteger(\"3\")).intValue() == 0) {\n System.out.println(bigInteger);\n i++;\n }\n// Incrementing the bigInteger\n bigInteger = bigInteger.add(new BigInteger(\"1\"));\n// Exit condition\n } while (i != 11);\n }",
"public static void main(String[] args) {\n\t\tfor (int i = 0; i < 10; i++) {\n\n\t\t\tif (i == 2) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"**********************\");\n\n\t\t// continue - it will skip CURRENT iteration\n\n\t\tfor (int i = 1; i <= 5; i++) {\n\n\t\t\tif (i == 3 || i == 4) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"*******************\");\n\t\t// I want to print nums from 1 to 20 except 5,6,7\n\t\tfor (int a = 1; a <= 20; a++) {//5\n\t\t\tif (a >=5 && a<=17) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}",
"public static void printInt() {\n\t\tint i = 500;\n\t\twhile (i >=25) {\n\t\t\tif(i%6==0 && i%8==0) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t\t// Do not forget to type increment, otherwise it will be infinite loop\n\t\t\ti--;\n\t\t}\n\t}",
"public synchronized void printEven(int number) {\r\n\t\t// if odd is not printed then waiting for odd to print\r\n\t\twhile (!isOddPrinted) {\r\n\t\t\ttry {\r\n\t\t\t\twait();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(Thread.currentThread().getName() + \"- The number\" + number);\r\n\r\n\t\tisOddPrinted = false;\r\n\t\tnotify();\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tfor(int i=50; i>0;i--) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"*************** PRINTING ODD NUMBERS ***************\");\n\t\t//print odd numbers between 20 and 50\n\t\t\n\t\tfor(int j=20;j<=50;j++) {\n\t\t\tif(j%2!=0) {\n\t\t\t\tSystem.out.println(j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"************************\");\n\t\t// WHAT IS THE OUTPUT\n\t\t\n\t\tint total=2;\n\t\tfor(int k=1; k<4; k++) {\n\t\t\ttotal=total*k;\n\t\t\n\t\t\tSystem.out.println(total);\n\t\t}\n\t\tSystem.out.println(\"Final total : \" +total);\n\t\t\n\t\t// write a program calculate sum of odd and sum of even numbers\n\t\t// from 1 to 99\n\t\t\n\t\tint oddSum=0;\n\t\tint evenSum=0;\n\t\tfor(int z=1;z<=99;z++) {\n\t\t\tif(z%2!=0) {\n\t\t\t\toddSum=oddSum+z;\n\t\t\t}else {\n\t\t\t\tevenSum=evenSum+z;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\" sum of odd number = \"+oddSum);\n\t\tSystem.out.println(\" sum of even number = \"+evenSum);\n\t}",
"public static void main(String[] args) {\n\t\tfor(int x=1; x<10;x++)\n\t\t{\n\t\t\tif (x%2!=0)\n\t\t\tSystem.out.println(x);\n\t\t\t\n\t\t}\n\n\t\t\t// TODO Auto-generated method stub\n\t\t\tfor(int x=10; x<35;x++)\n\t\t\t{\n\t\t\t\tif (x != 21)\n\t\t\t\tSystem.out.println(x);\n\t\t\t\t\n\t\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tint a=40;\r\n\twhile(a>20) {\r\n\t\tif(a==25)break;\r\n\t\tSystem.out.println(a);\r\n\t\t\r\n\t\ta=a-1;\r\n\t}\r\n\r\n\t}",
"public static void main(String[] args) {\n long number = 6857;\n long i = 2;\n while ((number / i != 1) || (number % i != 0)) {\n if (number % i == 0) {\n number = number / i;\n } else {\n i++;\n }\n }\n System.out.println(i);\n\n }",
"public static void main(String[] args) {\n\n int number_count = 0;\n\n while (number_count < 10){\n System.out.println(\"Hello World\");\n number_count += 1;\n }\n\n\n //write a program to show the sum of the first 10 mutiples of 4\n\n int number_count1 = 1;\n int outcome = 0;\n\n while (number_count1 < 10){\n\n outcome += 4 * number_count1;\n number_count1 += 1;\n\n\n\n }\n System.out.println( outcome );\n }",
"public static void main(String[] args) {\n\t\tfor(int i = 0 ; i<=99 ; i++) {\n\t\t\tif((i%2) == 1) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tint num1 = 50;\n\t\t\t\t\n\t\tfor (int num2 = 100; num2 > num1; num2--) {\n\t\t\t\n\t\t\tif (num2 % 2 != 0) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(num2);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public static void main(String[] args) {\n int count = 0;\r\n \r\n for (int num = 100; num <= 500; num++) {\r\n // Find all numbers from 100 to 500 divisible by 5 or 7 but not both.\r\n if ((num % 5 == 0 && num % 7 != 0) || (num % 5 != 0 && num % 7 == 0)) {\r\n count += 1;\r\n // Print 10 numbers on each line.\r\n if (count % 10 == 0) {\r\n System.out.println(num);\r\n }\r\n else {\r\n System.out.print(num + \" \");\r\n }\r\n }\r\n }\r\n }",
"public static void main(String[] args) {\n\n int sum = 0;\n int n = 5;\n\n for (int i = 0; i < n; i++) {\n sum = sum + (2 * i);\n }\n System.out.println(sum);\n // prints 20 which is sum of 1st 5 even numbers (0,2,4,6,8)\n }",
"public static void main (String [] args) {\n \n // numbers that user input \n int number;\n\n // counters for odd and even numbers\n int oddCount = 0;\n int evenCount = 0;\n\n int totalNum = 0;\n\n // initialize largest odd and second largest odd number\n int largestOddNum = Integer.MIN_VALUE;\n int secondLargestOdd = Integer.MIN_VALUE;\n\n // initialize smallest even and second smallest even number\n int smallestEvenNum = Integer.MAX_VALUE;\n int secondSmallestEven = Integer.MAX_VALUE;\n \n // print out instructions\n System.out.println(\"Enter a series of integers; EOF to Quit.\");\n\n // Construct a Scanner that produces values scanned from standard input.\n Scanner input = new Scanner(System.in);\n \n //while there is more input(user has not hit EOF)\n while (input.hasNext()) {\n\n // read next integer\n number = input.nextInt(); \n \n // To find out whether this is a even number.\n if ( number % oddEvenDef == 0 ) { \n \n // Keeping track of how many even numbers have been encountered.\n evenCount++;\n\n /* To find out whether the even number input by user is less than\n default smallest even number.*/\n if ( number < smallestEvenNum) {\n\n secondSmallestEven = smallestEvenNum;\n smallestEvenNum = number;\n \n }\n\n /* To check whether number less than second smallest even number and\n not equal to smallest even number */\n else if(number < secondSmallestEven && number != smallestEvenNum) {\n secondSmallestEven = number;\n }\n \n }\n \n // To find out whether this is a odd number.\n if ( number % oddEvenDef != 0) {\n \n // Keeping track of how many even numbeers have been encountered.\n oddCount++;\n \n /* To find out whether the odd number input by user is bigger than\n default largest odd number. */ \n if ( number >largestOddNum ) {\n \n secondLargestOdd = largestOddNum;\n largestOddNum = number;\n }\n\n /* To check whether number bigger than second largest odd number\n and not equal to largest odd number.*/\n else if ( number > secondLargestOdd && number != largestOddNum) {\n secondLargestOdd = number;\n }\n }\n }\n\n // To make sure that user entered even number.\n if ( evenCount > 0 ) {\n\n System.out.println(\"Smallest distinct even number entered was \"\n + smallestEvenNum );\n \n }\n\n // To check whether second smallest even equal to MAX VALUE.\n if ( secondSmallestEven != Integer.MAX_VALUE) {\n System.out.println(\"Second smallest distinct even number entered was \"\n + secondSmallestEven);\n }\n \n // To make sure that user entered odd number.\n if ( oddCount > 0 ) {\n System.out.println(\"Largest distinct odd number entered was \" + largestOddNum );\n }\n \n // To check whether second largest odd equal to MIN VALUE.\n if ( secondLargestOdd != Integer.MIN_VALUE ) {\n System.out.println(\"Second largest distinct odd number entered was \"\n + secondLargestOdd);\n }\n\n // To find out how many numbers that user entered.\n totalNum = oddCount + evenCount;\n \n // To track if there is no numbers has been entered.\n if (totalNum == 0 ) {\n\n System.out.println(\"No numbers entered\");\n }\n }",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n System.out.print(\"Input a number: \");\n int number = scan.nextInt();\n if (number > 0) {\n while (number % 2 == 0) {\n System.out.print(2 + \" \");\n number /= 2;\n }\n\n for (int i = 3; i <= Math.sqrt(number); i += 2) {\n while (number % i == 0) {\n System.out.print(i + \" \");\n number /= i;\n }\n }\n if (number > 2)\n System.out.print(number);\n }\n }",
"public static void main(String[] args) {\n\t\t\n\t\tint num=1;\n\t\tint sumOdd=0;\n\t\tint sumEven=0;\n\t\t\n\t\twhile(num<=50) {\n\t\t\tif(num%2==0) {\n\t\t\t\tsumEven+=num;\n\t\t\t}else {\n\t\t\t\tsumOdd+=num;\n\t\t\t\t\n\t\t\t}\n\t\t\tnum++;\t\t\n\t\t}\n\t\tSystem.out.println(\"sumodd is \"+ sumOdd);\n\t\tSystem.out.println(\"sumEven is \"+ sumEven);\n\t\t\n\n\n\t}",
"public static void main(String[] args) {\n\n for (int m =0; m<9;m++) {\n System.out.println(\"kona\");\n }\n for (int y=0; y<6; y++) {\n System.out.println(y +\"veer\");\n }\n\n //Inner for loop\n // print selenium 5 times,and for each time you print selenium,print java 2 times\n\n for (int t=0; t<5;t++) {\n System.out.println(\"selenium\");\n for (int r=0;r<2;r++) {\n System.out.println(\"java\");\n }\n }\n\n //while loop\n int w=0;\n while (w<7) {\n System.out.println(\"dear\");\n w++;\n }\n int b=0;\n while (b<2) {\n System.out.println(b + \"we\");\n b++;\n }\n\n // Do While loop\n\n int k =0;\n do {\n System.out.println(\"don't know\");\n k++;\n }\n while(k<5);\n\n // Enhance for loop\n\n int [] id ={99,66,90,55};\n\n for (int q:id) {\n System.out.println(q);\n }\n\n\n\n }",
"public static void controleWhile() {\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\twhile(contador < 10) {\r\n\t\t\tSystem.out.println(++contador);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tfor(int i = 1; i<=20;i++) {\n\t\t\tif(i>=5 && i<=10)\n\t\t\t\tcontinue;\n\t\t\tSystem.out.println(i);\n\t\t\t\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tint number1 =0;\r\n\t\tint number2 =1;\r\n\t\tint number3,limit = 10;\r\n\t\t\r\n\t\tSystem.out.print(number1+\" \"+number2);\r\n\t\tint i=2;\r\n\t\tdo \r\n\t\t{\r\n\t\t\tnumber3= number1+number2;\r\n\t\t\tSystem.out.print(\" \"+number3);\r\n\t\t\tnumber1=number2;\r\n\t\t\tnumber2=number3;\r\n\t\t\ti++;\r\n\t\t}while(i<limit);\r\n\t}",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Integer> list = new ArrayList<>();\n int i = 0;\n while (scanner.hasNextInt()) {\n int n = scanner.nextInt();\n if (i % 2 == 1) {\n list.add(n);\n }\n i++;\n }\n Collections.reverse(list);\n list.forEach(e -> System.out.print(e + \" \"));\n }",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tfor(int i=1;i<=4;i++)\r\n\t\t{\r\n\t\t\tfor(int j=1;j<=8;j=j*2)\r\n\t\t\t{\r\n\t\t\t\tif(j%2==0)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"#\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\r\n\t}\r\n\r\n}",
"public static void main(String[] args) {\n for (int i = 0; i < 10; i++) {\n System.out.println(\"Hello\");\n\n if (i == 3) {\n continue; //jump to next loop\n }\n System.out.println(\"Ending of loop \" + i);\n }\n for ( int i = 0; i <100; i++) {\n if (i % 2 == 0) {\n continue;\n }\n System.out.print(i);\n }\n for (int i = 2000; i < 2030; i++){\n if(i == 2020){\n System.out.println(\"COVID\");\n continue;\n }\n System.out.println(\"Champion of \"+ i + \" year!\");\n }\n }",
"public static void printEvenNodes(Node head){\n Node current = head;\n while(current != null){\n if(current.data % 2 == 0){\n System.out.print(current.data);\n System.out.print(\"->\");\n }\n current = current.next;\n }\n System.out.println();\n }"
]
| [
"0.78823197",
"0.76442134",
"0.71807384",
"0.71797407",
"0.71573126",
"0.7140301",
"0.70796055",
"0.7050541",
"0.6962102",
"0.6940095",
"0.6940084",
"0.69366133",
"0.69271874",
"0.68314576",
"0.68084854",
"0.67785156",
"0.67517805",
"0.6746516",
"0.6727639",
"0.66812295",
"0.6626182",
"0.65949315",
"0.65906686",
"0.6584387",
"0.65519917",
"0.65489626",
"0.6548725",
"0.6547342",
"0.6527147",
"0.6499435",
"0.64969724",
"0.6494388",
"0.6493447",
"0.646375",
"0.644356",
"0.6410196",
"0.6385951",
"0.6379322",
"0.6324229",
"0.62982154",
"0.62917656",
"0.62740076",
"0.6272675",
"0.6251036",
"0.6239817",
"0.62385005",
"0.62081796",
"0.6207234",
"0.6193014",
"0.61911225",
"0.6161031",
"0.61562175",
"0.6155556",
"0.61505824",
"0.6137198",
"0.6135636",
"0.6133251",
"0.61226046",
"0.61152816",
"0.6110836",
"0.6108249",
"0.61059254",
"0.6103861",
"0.6094474",
"0.60730755",
"0.60595125",
"0.60511994",
"0.6048165",
"0.6041257",
"0.60244316",
"0.60123175",
"0.60085964",
"0.60068697",
"0.6005596",
"0.6001397",
"0.60010934",
"0.60001683",
"0.5997033",
"0.5992581",
"0.59885645",
"0.5988449",
"0.598626",
"0.59831476",
"0.5967842",
"0.59619874",
"0.5929974",
"0.5926643",
"0.5912282",
"0.5906815",
"0.5895222",
"0.58883303",
"0.5868956",
"0.58473504",
"0.5845173",
"0.5844854",
"0.5836606",
"0.5833463",
"0.5826299",
"0.5826148",
"0.5815447"
]
| 0.77522844 | 1 |
/ Retrofit get annotation with our URL And upload image | @Multipart
@POST()
Call<Result> uploadImage(@Part MultipartBody.Part file, @Url String medialUploadUrl, @PartMap() Map<String, RequestBody> partMap); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FormUrlEncoded\n @POST(\"upload.php\")\n Call<ImageClass> uploadImage(@Field(\"title\") String title, @Field(\"image\") String image);",
"public interface ApiInterface {\n\n // this method commuticate with API\n\n\n @FormUrlEncoded\n @POST(\"upload.php\")\n Call<ImageClass> uploadImage(@Field(\"title\") String title, @Field(\"image\") String image);\n\n //call is the return type of uploadImage\n }",
"private void uploadToServer(String filePath, String title) {\n APIClient apiClient = new APIClient();\n Retrofit retrofit = apiClient.getApiClient();\n ApiInterface apiInterface = retrofit.create(ApiInterface.class);\n File file = new File(filePath);\n\n MultipartBody.Part filePart =\n MultipartBody.Part.createFormData(\"file\", title+\".jpg\", //file.getName(),\n RequestBody.create(MediaType.parse(\"image/*\"), file));\n\n\n Call call = apiInterface.uploadImage(filePart);\n call.enqueue(new Callback() {\n @Override\n public void onResponse(Call call, Response response) {\n Toast.makeText(AddPost.this, \"Worked\",Toast.LENGTH_SHORT).show();\n }\n @Override\n public void onFailure(Call call, Throwable t) {\n t.printStackTrace();\n Toast.makeText(AddPost.this, \"Didn't work\",Toast.LENGTH_SHORT).show();\n }\n });\n }",
"public interface ApiEndpoints {\n @GET\n Call<String> rxGetImageCall(@Url String imageUrl);\n}",
"public interface UploadsImService {\n @Multipart\n @POST(\"/api\")\n Single<ResponseBody> postImage(@Part MultipartBody.Part image);\n}",
"public interface LoginService {\n\n @FormUrlEncoded\n @POST(\"/\")\n BaseObserver<BaseBean<List<LoginBean>>> getLoginImage(@Field(\"/\") String imgUrl);\n}",
"@GET(\"get_image_api.php\")\n Call<UserModelClass> userDetails(@Query(\"user_id\") String user_id);",
"public interface LoginApi {\n @GET(\"/interface/wynnUsers/mma_background_image\")\n Observable<ResponseBody> getbackgroundImage();\n}",
"public void addImage(Bitmap bm) {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bm.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] bytes = stream.toByteArray();\n try {\n File file = new File(this.getCacheDir(), \"image.jpg\");\n file.createNewFile();\n FileOutputStream fos = new FileOutputStream(file);\n fos.write(bytes);\n fos.flush();\n fos.close();\n RequestBody rb = RequestBody.create(MediaType.parse(\"multipart/form-data\"), file);\n MultipartBody.Part body = MultipartBody.Part.createFormData(\"files\", file.getName(), rb);\n Url url = new Url();\n Call<ImageFile> imgCall = url.createInstanceofRetrofit().uploadImage(body);\n imgCall.enqueue(new Callback<ImageFile>() {\n\n @Override\n public void onResponse(Call<ImageFile> call, Response<ImageFile> response) {\n venueimage.setText(response.body().getFilename());\n }\n\n @Override\n public void onFailure(Call<ImageFile> call, Throwable t) {\n Toast.makeText(VenueAdd.this, t.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n\n } catch (Exception e) {\n Toast.makeText(VenueAdd.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }",
"public interface ImageService {\n\n //String ENDPOINT = \"http://n.xxt.cn:3000/\";\n //String ENDPOINT = \"http://api.laifudao.com/\";\n String ENDPOINT = \"http://image.baidu.com/\";\n\n @GET(\"/data/imgs?tag=性感&sort=0&pn=10&rn=50&p=channel&from=1\")\n Observable<JsonObject> getImages(@Query(\"col\") String col,\n @Query(\"tag\") String tag,\n @Query(\"pn\") int start,\n @Query(\"rn\") int end);\n\n class Creator {\n public static ImageService getService(Context context) {\n Retrofit retrofit = RemoteUtil.createRetrofitInstance(context, ENDPOINT);\n return retrofit.create(ImageService.class);\n }\n }\n}",
"public interface ImageUploadService {\n @Headers({\n \"User-Agent: Mozilla/5.0\",\n \"Content-Type: image/png\"\n })\n @POST(\"\")\n Observable<ImageUpload> uploadImage4search(@Body RequestBody imgs);\n // Observable<ImageUpload> uploadImage4search(@PartMap Map<String, Object> fields, @Body RequestBody imgs);\n}",
"@POST(\"save_image.php\")\n Call<ResponseBody> saveImage(@Body RequestBody body);",
"public interface ApiInterface {\n\n ///// post products api interface\n @POST(\"save_image.php\")\n Call<ResponseBody> saveImage(@Body RequestBody body);\n\n /*\n get user detail\n */\n @GET(\"get_image_api.php\")\n Call<UserModelClass> userDetails(@Query(\"user_id\") String user_id);\n\n}",
"public interface ApiService {\n public static final String Base_URL = \"http://ip.taobao.com/\";\n /**\n *普通写法\n */\n @GET(\"service/getIpInfo.php/\")\n Observable<ResponseBody> getData(@Query(\"ip\") String ip);\n\n\n @GET(\"{url}\")\n Observable<ResponseBody> executeGet(\n @Path(\"url\") String url,\n @QueryMap Map<String, String> maps);\n\n\n @POST(\"{url}\")\n Observable<ResponseBody> executePost(\n @Path(\"url\") String url,\n @FieldMap Map<String, String> maps);\n\n /* @Multipart\n @POST(\"{url}\")\n Observable<ResponseBody> upLoadFile(\n @Path(\"url\") String url,\n @Part(\"image\\\\\"; filename=\\\\\"image.jpg\") RequestBody avatar);\n\n @POST(\"{url}\")\n Call<ResponseBody> uploadFiles(\n @Url(\"url\") String url,\n @Part(\"filename\") String description,\n @PartMap() Map<String, RequestBody> maps);*/\n\n}",
"public interface ApiStore {\n String API_SERVER_URL = \"http://124.205.9.251:8082/\";//北京\n\n //轮播图\n @POST(\"/mobile/index/noticeList\")\n Call<BannerModel> bannerData(@Query(\"notice_type\") String notice_type);\n\n\n\n //上传文件\n @Multipart\n @POST(\"/mobile/fileUpload/plupload\")\n// Observable<UploadThumbModel> plupload(@Part(\"file\") MultipartBody file, @Query(\"module\") String module);\n Call<UploadThumbModelOkHttp> plupload(@Part MultipartBody.Part file, @Query(\"module\") String module);\n}",
"public interface IUploadApi {\n\n @Multipart\n @POST(\"user/verify/v1/modifyHeadPic\")\n Observable<UploadBean> upLoad(@Header(\"userId\") java.lang.String userId, @Header(\"sessionId\") java.lang.String sessionId, @Part MultipartBody.Part part);\n}",
"@POST(\"posts\")\n public Call<Post> UploadPost (@Body Post post);",
"public static void upload(String fpath) {\n String baseurl=\"http://dev.123go.net.cn\";\n File file = new File(fpath);\n\n // please check you mime type, i'm uploading only images\n RequestBody requestBody = RequestBody.create(MediaType.parse(\"image/*\"), file);\n /*RequestBody rbody=new MultipartBody.Builder()\n .addPart(requestBody).build();\n\n RequestBody requestFile =\n RequestBody.create(MediaType.parse(\"image/jpg\"), file);\n MultipartBody.Part body =\n MultipartBody.Part.createFormData(\"image\", file.getName(), requestFile);\n */\n\n Retrofit retrofit=new Retrofit.Builder()\n .baseUrl(baseurl)\n .addConverterFactory(GsonConverterFactory.create())\n .client(getOkhttpClient())\n .build();\n // 添加描述\n /*String descriptionString = \"hello, 这是文件描述\";\n RequestBody description =\n RequestBody.create(\n MediaType.parse(\"multipart/form-data\"), descriptionString);*/\n UploadServer server=retrofit.create(UploadServer.class);\n Call<ResponseBody> call = server.uploadImage(requestBody);\n call.enqueue(new Callback<ResponseBody>() {\n\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n ResponseBody jsonObject=response.body();\n System.out.print(jsonObject.toString());\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n\n }\n });\n }",
"public interface ResginAllService {\n // 手机号注册完善(密码)\n @FormUrlEncoded\n @POST(Urls.PHONE_RESGIN_ALL)\n Observable<PhoneResginAllBean> getPhoneResginAll(@FieldMap Map<String, String> params, @FieldMap Map<String, String> headers);\n\n //上传头像\n @Multipart\n @POST(Urls.UPLOAD_IMG)\n Observable<UpLoadImgBean> upLoad(@HeaderMap Map<String, String> header, @Part(\"file\\\"; filename=\\\"avatar.png\\\"\") RequestBody file);\n\n}",
"public void uploadImage(byte[] imageBytes){\n OkHttpClient okHttpClient = new OkHttpClient.Builder()\n .readTimeout(120, TimeUnit.SECONDS)\n .connectTimeout(120, TimeUnit.SECONDS)\n .build();\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(URL)\n .client(okHttpClient)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n APIInterface retrofitInterface = retrofit.create(APIInterface.class);\n\n RequestBody requestFile = RequestBody.create(MediaType.parse(\"image/jpeg\"), imageBytes);\n\n MultipartBody.Part body = MultipartBody.Part.createFormData(\"file\", \"file\", requestFile);\n Call<Response> call = retrofitInterface.uploadImage(body);\n Log.d(TAG, \"uploadImage: Started call\");\n call.enqueue(new Callback<Response>() {\n @Override\n public void onResponse(Call<Response> call, retrofit2.Response<Response> response) {\n\n\n if (response.isSuccessful()) {\n Log.d(TAG, \"onResponse: Success\");\n Response responseBody = response.body();\n Log.d(TAG, \"onResponse(Success): Num Notes found = \"+responseBody.getTotal());\n tts = new TextToSpeech(getBaseContext(), new MyTTS(\"Total is \"+responseBody.getTotal()+\" rupees\"));\n\n } else {\n Log.d(TAG, \"onResponse: Failure\");\n\n// ResponseBody errorBody = response.errorBody();\n//\n// Gson gson = new Gson();\n//\n// try {\n//\n// Response errorResponse = gson.fromJson(errorBody.string(), Response.class);\n// Log.d(TAG, \"onResponse(Failure) :\"+ errorBody.string());\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n }\n }\n @Override\n public void onFailure(Call<Response> call, Throwable t) {\n Log.d(TAG, \"onFailure: \"+t.getLocalizedMessage());\n }\n });\n }",
"@Multipart\n @POST(\"v1/user/avatar/upload\")\n Call<UpdateProfileSuccess> uploadUserAvatar(@Part MultipartBody.Part filePart);",
"public interface CircleService {\n\n @FormUrlEncoded\n @POST(\"/circle/list\")\n LiveData<BaseBean<List<CircleBean>>> getCircleData(@Field(\"userid\") long useId, @Field(\"pagesize\") int pageSize, @Field(\"pageno\") int pageNo);\n @FormUrlEncoded\n @POST(\"/circle/add\")\n Flowable<BaseBean<CircleBean>> upCircleData(@Field(\"userid\")long userId,@Field(\"content\") String content,@Field(\"images\") String images);\n}",
"public interface ActorAPI {\n @GET(\"EJP8Q22E-\")\n Call<Actor> getActorImageUrl(String actorName);\n\n @GET(\"EJP8Q22E-\")\n Call<Actor> getTestActorImageUrl();\n}",
"Builder addImage(URL value);",
"public interface ApiService {\n @Headers(\"{CLIENT_TYPE:android}\")\n @Multipart\n @PUT(\"refunds/{orderId}/upload_images.json\")\n Observable<ResponseBody> uploadImage(@Path(\"orderId\") String orderId, @Header(\"AUTHORIZATION\") String token,\n @Header(\"APP_VERSION\") String APP_VERSION,\n @PartMap Map<String, RequestBody> params);\n @Headers(\"{CLIENT_TYPE:android}\")\n @POST(\"users/login.json\")\n Observable<ResponseBody> loginWithPWD(@Body Map<String, String> params);\n\n @FormUrlEncoded\n @Headers({\"Content-Type:application/x-www-form-urlencoded\",\n \"Authorization:Basic NjV1MEM5alFVTWs3dWZXaUJNMVlNREhHc0dBYTpadHdjbVE4VmkwNTgxZlp1V013TmQwbVBSdGdh\"})\n @POST(\"https://devais.pfingo.com:8243/token\")\n\n Observable<ResponseBody> getApplicationToken(/*@Header(\"Authorization\") String base64Secert,*/\n @Field(\"grant_type\") String p);\n}",
"public interface EasyService {\r\n @GET(\"{path}\")\r\n Observable<ResponseBody> get(\r\n @Path(value = \"path\", encoded = true) String path,\r\n @QueryMap() Map<String, Object> map\r\n );\r\n\r\n @FormUrlEncoded\r\n @POST(\"{path}\")\r\n Observable<ResponseBody> post(\r\n @Path(value = \"path\", encoded = true) String path,\r\n @FieldMap() Map<String, Object> map\r\n );\r\n\r\n @POST(\"{path}\")\r\n Observable<ResponseBody> postJson(\r\n @Path(value = \"path\", encoded = true) String path,\r\n @Body RequestBody body\r\n );\r\n\r\n @Multipart\r\n @POST\r\n Observable<ResponseBody> uploadFile(\r\n @Url String url,\r\n @PartMap() Map<String, String> description,\r\n @Part List<MultipartBody.Part> bodys);\r\n\r\n}",
"@Override\n protected String doInBackground(Bitmap... params) {\n Bitmap bitmap = params[0];\n RequestBody req = new MultipartBody.Builder().setType(MultipartBody.FORM)\n .addFormDataPart(\"encoded_image\", \"\", RequestBody.create(MEDIA_TYPE_PNG, tobyteArray(bitmap))).build();\n\n Log.d(\"postFlow_request_body\", req.toString());\n\n Request request = new Request.Builder()\n .url(\"https://www.google.com/searchbyimage/upload\")\n .post(req)\n .build();\n Log.d(\"postFlow_request\", request.toString());\n try (Response response = client.newCall(request).execute()) {\n //if (!response.isSuccessful()) throw new IOException(\"Unexpected code \" + response);\n\n Log.d(\"postFlow_client\", request.toString());\n\n Headers responseHeaders = response.headers();\n\n for (int i = 0; i < responseHeaders.size(); i++) {\n Log.d(\"postFlow_loop\", i + responseHeaders.name(i) + \": \" + responseHeaders.value(i));\n if (responseHeaders.name(i).toString().equals(\"location\"))\n return responseHeaders.value(i);\n }\n\n Log.d(\"postFlow_response\", response.toString());\n\n return response.body().string();\n } catch (IOException e) {\n e.printStackTrace();\n Log.d(\"postFlow_catch\", e.toString());\n }\n Log.d(\"postFlow_task_over\", request.toString());\n\n return \"\";\n }",
"public interface TypiCodeServices {\n @GET(\"/photos\")\n Call<ArrayList<Model>> data();\n}",
"private void uploadFile(String fileUri, String filename) {\n progressDialog.show();\n FileUploadService service = MyConfig.getRetrofit(MyConfig.JSON_BASE_URL).create(FileUploadService.class);\n\n // https://github.com/iPaulPro/aFileChooser/blob/master/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java\n // use the FileUtils to get the actual file by uri\n\n // String mimeType= URLConnection.guessContentTypeFromName(file.getName());\n MultipartBody.Part body = null;\n if (!profile_image_path.equalsIgnoreCase(\"\")) {\n\n File file = new File(fileUri);\n\n\n // String mimeType= URLConnection.guessContentTypeFromName(file.getName());\n\n // create RequestBody instance from file\n RequestBody requestFile = RequestBody.create(MediaType.parse(\"image/*\"), file);\n\n // MultipartBody.Part is used to send also the actual file name\n\n body = MultipartBody.Part.createFormData(\"profile_image\", filename, requestFile);\n }\n\n\n RequestBody user_id = RequestBody.create(MediaType.parse(\"text/plain\"), Shared_Preferences.getPrefs(ProfileActivity.this, IConstant.USER_ID));\n RequestBody full_name = RequestBody.create(MediaType.parse(\"text/plain\"), etName.getText().toString());\n RequestBody height = RequestBody.create(MediaType.parse(\"text/plain\"), etHeight.getText().toString());\n RequestBody email = RequestBody.create(MediaType.parse(\"text/plain\"), etEmail.getText().toString());\n RequestBody weight = RequestBody.create(MediaType.parse(\"text/plain\"), etWeight.getText().toString());\n RequestBody is_blood_pressure = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_diabetes = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_asthama = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_heart_patient = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n\n\n Call<ResponseBody> call;\n\n\n RequestBody file_name = RequestBody.create(MediaType.parse(\"text/plain\"), \"\" + filename);\n call = service.upload(\n user_id,\n full_name,\n height,\n email,\n weight,\n is_blood_pressure,\n is_diabetes,\n is_asthama,\n is_heart_patient,\n body\n );\n\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n Log.v(\"Upload\", \"success\");\n String output = \"\";\n try {\n output = response.body().string();\n\n Log.d(\"Response\", \"response=> \" + output);\n JSONObject i = new JSONObject(output);\n boolean res = Boolean.parseBoolean(i.getString(\"result\"));\n String reason = i.getString(\"reason\");\n\n if (res) {\n user_profile_path = i.getString(\"user_profile_path\");\n\n JSONArray jsonArray = i.getJSONArray(\"user_data\");\n\n JSONObject jsonObjectData = jsonArray.getJSONObject(0);\n\n String id = jsonObjectData.getString(\"user_id\");\n String full_name = jsonObjectData.getString(\"full_name\");\n String email = jsonObjectData.getString(\"email\");\n String mobile_no = jsonObjectData.getString(\"mobile_no\");\n String image = jsonObjectData.getString(\"image\");\n String role = jsonObjectData.getString(\"role\");\n String height = jsonObjectData.getString(\"height\");\n String weight = jsonObjectData.getString(\"weight\");\n String is_blood_pressure = jsonObjectData.getString(\"is_blood_pressure\");\n String is_diabetes = jsonObjectData.getString(\"is_diabetes\");\n String is_asthama = jsonObjectData.getString(\"is_asthama\");\n String is_heart_patient = jsonObjectData.getString(\"is_heart_patient\");\n// String member_id = jsonObjectData.getString(\"member_id\");\n\n Shared_Preferences.setPrefs(_act, IConstant.USER_ID, id);\n Shared_Preferences.setPrefs(_act, IConstant.USER_FIRST_NAME, full_name);\n Shared_Preferences.setPrefs(_act, IConstant.USER_EMAIL, email);\n Shared_Preferences.setPrefs(_act, IConstant.USER_MOBILE, mobile_no);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IMAGE, image);\n Shared_Preferences.setPrefs(_act, IConstant.USER_PHOTO, user_profile_path + image);\n\n Shared_Preferences.setPrefs(_act, IConstant.USER_ROLE_ID, role);\n Shared_Preferences.setPrefs(_act, IConstant.USER_HEIGHT, height);\n Shared_Preferences.setPrefs(_act, IConstant.USER_WEIGHT, weight);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_BLOOD_PRESSURE, is_blood_pressure);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_DIABETIC, is_diabetes);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_ASTHAMATIC, is_asthama);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_HEART_PATIENT, is_heart_patient);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_LOGIN, \"true\");\n\n\n\n sharedPref.setPrefs(_act, IConstant.USER_ID, id);\n sharedPref.setPrefs(_act, IConstant.USER_FIRST_NAME, full_name);\n sharedPref.setPrefs(_act, IConstant.USER_EMAIL, email);\n sharedPref.setPrefs(_act, IConstant.USER_MOBILE, mobile_no);\n sharedPref.setPrefs(_act, IConstant.USER_PHOTO, user_profile_path + image);\n sharedPref.setPrefs(_act, IConstant.USER_ROLE_ID, role);\n sharedPref.setPrefs(_act, IConstant.USER_HEIGHT, height);\n sharedPref.setPrefs(_act, IConstant.USER_WEIGHT, weight);\n sharedPref.setPrefs(_act, IConstant.USER_IS_BLOOD_PRESSURE, is_blood_pressure);\n sharedPref.setPrefs(_act, IConstant.USER_IS_DIABETIC, is_diabetes);\n sharedPref.setPrefs(_act, IConstant.USER_IS_ASTHAMATIC, is_asthama);\n sharedPref.setPrefs(_act, IConstant.USER_IS_HEART_PATIENT, is_heart_patient);\n sharedPref.setPrefs(_act, IConstant.USER_IS_LOGIN, \"true\");\n Toast.makeText(ProfileActivity.this, reason, Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(ProfileActivity.this, UserDashboardActivity.class);\n startActivity(intent);\n finish();\n } else\n Toast.makeText(ProfileActivity.this, \"\" + reason, Toast.LENGTH_SHORT).show();\n // Log.v(\"Upload\", \"\" + response.body().string());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n progressDialog.dismiss();\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Log.d(\"Upload error:\", \"\");\n progressDialog.dismiss();\n }\n });\n }",
"public abstract void saveUserImage(Call serviceCall, Response serviceResponse, CallContext messageContext);",
"public interface UploadFileApi {\n @POST\n Flowable<ResponseBody> uploadFile(@Url String url, @Body MultipartBody body);\n}",
"@GET(\"planetary/apod?api_key=\" + API_KEY)\n Single<Picture> getPictureByDate(@Query(\"date\") String date);",
"public interface FileService {\n @POST(\"file/upload\")\n Call<Result<String>> upload(@Body RequestBody file);\n\n @GET\n @Streaming\n Call<ResponseBody> download(@Url String url);\n}",
"public interface iRetrofitTCU {\n\n //String ENDPOINT = \"http://mobile-aceite.tcu.gov.br/mapa-da-saude\";\n\n @GET(\"rest/emprego\")\n Call<List<Posto>> callListPostoSINE(); // getPosto(@Path(\"codPosto\") String codPosto\n\n @GET(\"rest/emprego/latitude/{latitude}/longitude/{long}/raio/{raio}\")\n Call<List<Posto>> listPosto(@Path(\"latitude\") String lat,@Path(\"long\") String lon,@Path(\"raio\") String raio);\n\n}",
"public interface PhotoService {\n\n @GET\n Observable<List<Photo>> fetchGallery(@Url String url);\n}",
"public interface ApiService {\n @GET(\"MainQuize.json\")//list\n Call<MainQuizeDao> loadPhotoList();\n}",
"public interface ApiInterface {\n String HOST = \"http://fanyi.youdao.com/\";\n String IMG_HOST = \"http://www.bing.com/\";\n\n @GET(\"openapi.do\")\n Observable<Translation> getTranslation(@Query(\"keyfrom\") String keyfrom,\n @Query(\"key\") String key,\n @Query(\"type\") String type,\n @Query(\"doctype\") String doctype,\n @Query(\"version\") String version,\n @Query(\"q\") String q);\n\n @GET(\"HPImageArchive.aspx\")\n Observable<BackImg> getBackgroundImg(@Query(\"format\") String format,\n @Query(\"idx\") int idx,\n @Query(\"n\") int n);\n\n\n\n}",
"public interface ApiService {\n String BASE_URL = \"http://robika.ir/ultitled/practice/sujeyab/test_multi_upload/\";\n\n @Multipart\n @POST(\"upload.php\")\n Call<ResponseBody> uploadMultiple(\n @Part(\"id_ferestande\") RequestBody id_ferestande,\n @Part(\"onvan\") RequestBody onvan,\n @Part(\"mozo\") RequestBody mozo,\n @Part(\"tozihat\") RequestBody tozihat,\n @Part(\"type\") RequestBody type,\n @Part(\"shenase_rahgiri\") RequestBody shenase_rahgiri,\n @Part(\"id_farakhan\") RequestBody id_farakhan,\n @Part(\"size\") RequestBody size,\n @Part List<MultipartBody.Part> files);\n}",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Ref.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n figureURL = String.valueOf(uri);\n }\n });\n Toast.makeText(Create_order.this, \"Upload Image Berhasil\", Toast.LENGTH_SHORT).show();\n }",
"private void uploadToServer(String filePath) {\n myProgressBar.setVisibility(View.VISIBLE);\n File file = new File(filePath);\n RequestBody filename = RequestBody.create(MediaType.parse(\"text/plain\"), file.getName());\n RequestBody requestFile = RequestBody.create(MediaType.parse(getActivity().getContentResolver().getType(imageUri)), file);\n MultipartBody.Part multipartBody = MultipartBody.Part.createFormData(\"file\", file.getName(), requestFile);\n\n Call<Prediction> responseBodyCall = uploadAPIs.uploadImage(\"127.0.0.1\", 12, Build.SERIAL, filename,multipartBody);\n\n responseBodyCall.enqueue(new Callback<Prediction>() {\n @Override\n public void onResponse(Call<Prediction> call, Response<Prediction> response) {\n myProgressBar.setVisibility(View.GONE);\n btn_predict.setVisibility(View.VISIBLE);\n btn_photo.setVisibility(View.VISIBLE);\n if(tv_res.getAnimation()!=null)\n tv_res.getAnimation().cancel();\n float pred = Float.parseFloat(response.body().getPred()) * 100;\n float positive = 100-pred;\n String pos = \"0\";\n String resume=\"\";\n if(pred<50.0){\n tv_res.setTextColor(Color.GREEN);\n tv_res.setText(getString(R.string.allwell));\n tv_resume.setText(getString(R.string.nothingbad));\n resume=getString(R.string.resume_allwell);\n }else{\n pos = \"1\";\n tv_res.setTextColor(Color.RED);\n tv_res.setText(getString(R.string.result_cancer));\n tv_resume.setText(getString(R.string.cancerdetected));\n resume=getString(R.string.resume_allbad);\n }\n tv_pred.setText(rootView.getResources().getString(R.string.cancerdetection) + \" \"+ pred + \"%\");\n tv_total.setText(rootView.getResources().getString(R.string.negativecancer) + \" \"+ positive + \"%\");\n tv_policy.setText(getString(R.string.policy));\n btn_chart.setVisibility(View.VISIBLE);\n String timeStamp =\n new SimpleDateFormat(\"yyyy MM dd - HH:mm:ss\",\n Locale.getDefault()).format(new Date());\n if(newAlbum)\n idalbum = dbPreds.insertAlbum(getString(R.string.newalbum),bodyPart,getRealPathFromURI(getContext(),imageUri));\n else\n dbPreds.UpdateAlbumImage(String.valueOf(idalbum),getRealPathFromURI(getContext(),imageUri));\n\n dbPreds.insertPrediction(pos,String.valueOf(pred),getRealPathFromURI(getContext(),imageUri),timeStamp,resume,String.valueOf(idalbum));\n\n\n\n }\n\n @Override\n public void onFailure(Call<Prediction> call, Throwable t) {\n btn_predict.setVisibility(View.VISIBLE);\n btn_photo.setVisibility(View.VISIBLE);\n Log.d(\"failure\", \"message = \" + t.getMessage());\n Log.d(\"failure\", \"cause = \" + t.getCause());\n\n fails++;\n Toast.makeText(getContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n tv_res.setText(t.getMessage());\n\n tv_res.setText(getString(R.string.analyzing) + fails + \"...\");\n\n\n if(fails<4)\n uploadToServer(getRealPathFromURI(getContext(), imageUri));\n else {\n if(tv_res.getAnimation()!=null)\n tv_res.getAnimation().cancel();\n tv_res.setText(getString(R.string.connection));\n tv_policy.setText(getString(R.string.conn_error_server));\n myProgressBar.setVisibility(View.GONE);\n Snackbar.make(rootView, getString(R.string.connerror), Snackbar.LENGTH_LONG).show();\n }\n }\n });\n }",
"@Delegate\n @Path(\"/projects/{project}/global\")\n ImageApi getImageApi(@PathParam(\"project\") String projectName);",
"public interface MyServiceTwo {\n\n @GET(\"kehuduan/PAGE14503485387528442/index.json\")\n Call<XiongMao> getTwoImg();\n\n @GET(\"http://api.cntv.cn/apicommon/index?path=iphoneInterface/general/getArticleAndVideoListInfo.json&primary_id=PAGE1449807494852603,PAGE1451473625420136,PAGE1449807502866458,PAGE1451473627439140,PAGE1451473547108278,PAGE1451473628934144&serviceId=panda\")\n Call<Todal> getTwoTodal();\n}",
"public interface GetAppService {\n @GET(\"/upload/app/baikangyun.apk\")\n Observable<ResponseBody> get();\n}",
"public interface AsyncHttpLink{\n// @FormUrlEncoded\n// @POST(\"{url}\")\n// Call<ResponseBody> request(@Path(value = \"url\", encoded = true) String url, @FieldMap Map<String, String> params);\n\n @FormUrlEncoded\n @POST\n Call<ResponseBody> request(@Url String url, @FieldMap Map<String, String> params);\n\n @FormUrlEncoded\n @Headers(\"Authorization: basic dGFjY2lzdW06YWJjZGU=\")\n @POST\n Call<ResponseBody> login(@Url String url, @FieldMap Map<String, String> params);\n}",
"public interface WallpaperApi {\n @GET(\"api.php?latest\")\n Call<ImageList> getLastest();\n\n @GET(\"api.php?cat_list\")\n Call<CategoryList> getCategory();\n\n @GET(\"api.php\")\n Call<ImageList> getCategoryItem(@Query(\"cat_id\") String catId);\n}",
"public interface IService {\n \n void savePictureFromUrl(String url, String destionationFile) throws IOException;\n \n}",
"public interface GettyImagesApi {\n @Headers({\n \"Api-Key: qjru52ej5mc9rjffvm2rnftd\"\n })\n @GET(\"/v3/search/images?fields=id,title,thumb&sort_order=best\")\n Observable<GettyImagesResponse> getBestContent(@Query(\"phrase\") String phrase);\n\n}",
"public interface PlacesAPI {\n// @GET(\"alopezruizDev/tripPlanner/master/1.0/Android/app/src/main/res/raw/places.json\")\n// Call<List<Place>> getList();\n}",
"@Multipart\n @PUT(\"photos\")\n Call<Photo> newPhoto(@Part(\"photo\") Photo photoObject,@Part(\"content\") byte[] picture);",
"public interface GalleryApiInterface {\n @GET(\"/gallery.json\")\n\n void getStreams(Callback<List<GalleryImage>>callback);\n}",
"public interface RestApi {\n @POST(\"{url}\")\n Call<BaseResponseEntity<LoginEntity>> login(\n @Path(value = \"url\", encoded = true) String psUrl, @Body LoginEntity poBody);\n}",
"public interface ImageUpload {\n void imageUploadToServer(int selectedImageResourceId);\n}",
"public interface ApiRequestService {\n @GET(\"api/v1/images/search?query=tree\")\n //@GET(\"3/gallery/random/random/3\")\n Observable<ImageListResponse> getImageList();\n}",
"public interface RequeteService {\n @Multipart\n @POST(\"upImportDoc.do\")\n Call<ResponseBody> uploadSingleFile(\n @Header(\"Cookie\") String sessionid,\n @Header(\"User-Agent\") String userAgent,\n @Part MultipartBody.Part file,\n @Part(\"jsessionid\") RequestBody jsessionid,\n @Part(\"ptoken\") RequestBody ptoken,\n @Part(\"ajaupmo\") RequestBody ajaupmo,\n @Part(\"ContributionComment\") RequestBody ContributionComment,\n @Part(\"Document_numbasedoc\") RequestBody Document_numbasedoc,\n @Part(\"contribution\") RequestBody contribution);\n}",
"@Override\n public void onResponse(Call<Movie.movie_detail> call, Response<Movie.movie_detail> response) {\n Movie.movie_detail movieDetail = response.body();\n\n // Instantiate a new attribute set for setting the title.\n SimpleAttributeSet attributeSetTitle = new SimpleAttributeSet();\n\n // Set title to Bold.\n StyleConstants.setBold(attributeSetTitle, true);\n\n // Set font size to 30.\n StyleConstants.setFontSize(attributeSetTitle, 30);\n\n // Instantiate a buffered image to stock Poster Image.\n BufferedImage bufferedImageIcon = null;\n\n try {\n\n // Set buffered image as Poster from URL.\n bufferedImageIcon = ImageIO.read(new URL(\"https://image.tmdb.org/t/p/w500\" + movieDetail.getPoster_path()));\n\n // Instantiate a icon interface to paint icons from image.\n ImageIcon imageIcon = new ImageIcon(bufferedImageIcon);\n labelFilmImage.setIcon(imageIcon);\n\n\n } catch (IOException ioException) {\n\n // If we cannot read image from website then return No Image.\n ioException.printStackTrace();\n labelFilmImage.setText(\"NO IMAGE \");\n } catch (NullPointerException nullPointerException) {\n\n // If we cannot get poster path which means this movie is added by ourselves, then\n // return This movie is added by myself.\n nullPointerException.printStackTrace();\n labelFilmImage.setText(\"This movie has been added by yourself\");\n }\n\n\n try {\n\n // Import movie detail into text pane.\n // Import formatted title into text pane.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), movieDetail.getTitle(), attributeSetTitle);\n\n // Import released date into text pane.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"\\nReleased date: \" + movieDetail.getRelease_date() + \"\\nGenre: \", null);\n\n // Import Genre(s) into text pane.\n for (int k = 0; k < movieDetail.getGenres().size(); k++) {\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), movieDetail.getGenres().get(k).getName() + \" \", null);\n }\n\n // Import abstract into text pane.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"\\n\\nAbstract: \" + movieDetail.getOverview(), null);\n\n // Import movie run time into text pane.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"\\n\\nRun time: \" + movieDetail.getRuntime() + \"min\", null);\n\n // Import movie score (*/10) into text pane\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"\\nMark: \" + movieDetail.getVote_average() + \"/10\", null);\n } catch (BadLocationException badLocationException) {\n\n // This exception is to report bad locations within a document model\n // (that is, attempts to reference a location that doesn't exist).\n badLocationException.printStackTrace();\n } catch (NullPointerException nullPointerException) {\n try {\n // If throwing null then means the movie is added by ourselves.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"This movie has no detail\", null);\n } catch (BadLocationException badLocationException) {\n badLocationException.printStackTrace();\n }\n\n }\n }",
"@Override\r\n\t\tprotected String doInBackground(String... params) {\n\t\t\tString filePath = doFileUpload(params[1]);\r\n\t\t\tif(filePath!=null){\r\n\t\t\t\tString abd = imService.updateImage(params[0], filePath);\r\n\t\t\t\tLog.e(\"IMAGE TAG\",\" \"+abd);\r\n\t\t\t}\r\n\t\t\t//String abd = imService.updateImage(params[0], params[1]);\r\n\t\t\t//Log.e(\"IMAGE TAG\",\" \"+abd);\r\n\t\t\treturn params[1];\r\n\t\t}",
"abstract public String imageUrl ();",
"public interface API {\n\n// String BASE_URL = \"https://www.apiopen.top/\";\n String BASE_URL = \"http://gc.ditu.aliyun.com/\";\n\n\n @GET\n Observable<Response<ResponseBody>> doGet(@Url String Url);\n\n @FormUrlEncoded\n @POST\n Observable<Response<ResponseBody>> doPost(@Url String Url, @FieldMap HashMap<String, String> map);\n\n @Streaming\n @GET\n Observable<Response<ResponseBody>> doDownload(@Url String Url);\n}",
"public interface Rtf_egone_MoviesInterface {\n\n @GET(\"/aws1994/f583d54e5af8e56173492d3f60dd5ebf/raw/c7796ba51d5a0d37fc756cf0fd14e54434c547bc/anime.json\")\n Call <List<Rtf_egone_Movies>> getJSON();\n}",
"private Integer uploadURL(URL url) {\n \t\ttry {\n \t\t\tString contentType = url.openConnection().getContentType();\n \t\t\tif (contentType == null || !contentType.startsWith(\"image/\")) {\n \t\t\t\treturn null;\n \t\t\t}\n \n \t\t\tString name = url.getPath().substring(1);\n \t\t\tif (contentType.contains(\"png\")) {\n \t\t\t\tname += \".png\";\n \t\t\t} else if (contentType.contains(\"jpg\")\n \t\t\t\t\t|| contentType.contains(\"jpeg\")) {\n \t\t\t\tname += \".jpg\";\n \t\t\t} else if (contentType.contains(\"gif\")) {\n \t\t\t\tname += \".gif\";\n \t\t\t}\n \n\t\t\treturn apiFactory.getFileAPI().uploadImage(url, name);\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \n \t\t\treturn null;\n \t\t}\n \t}",
"public interface GoogleApi {\n\n @Headers(\"Content-Type: application/json\")\n @POST(VISION_CLOUD)\n Call<VisionRespose> processImage64(@Header(\"Content-Length\") String bodyLength, @Query(\"key\") String apiKey, @Body VisionRequest visionRequest);\n\n @Headers(\"Content-Type: application/json\")\n @POST(VISION_CLOUD)\n Call<LogoResponse> processLogoImage64(@Header(\"Content-Length\") String bodyLength, @Query(\"key\") String apiKey, @Body VisionRequest visionRequest);\n\n @Headers(\"Content-Type: application/json\")\n @GET(TRANSLATION_CLOUD)\n Call<TranslationResponse> translateQuery(@Query(\"key\") String apiKey, @Query(\"source\") String source, @Query(\"target\") String target, @Query(\"q\") List<String> queries);\n}",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();",
"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}",
"public interface GalleryApiInterface {\n\n @GET(\"/gallery.json\")\n public void getStreams(Callback<List<GalleryImage>> callback);\n}",
"public interface GetImageApi {\n @GET(\"search\")\n Observable<List<ImageBean>> search(@Query(\"q\") String query);\n}",
"String uploadProfileImage(String fileNameWithOutRepository,String fileName) throws GwtException, ServerDownException;",
"@GET\n Call<Post> getByDirectUrlRequest(@Url String url);",
"@Override\n protected Bitmap doInBackground(Void... params) {\n\n try {\n final String USER_IMAGE_URL = Network.forDeploymentIp + \"meetmeup/uploads/users/\" + this.filename;\n\n Log.d(\"Image\", USER_IMAGE_URL);\n\n URLConnection connection = new URL(USER_IMAGE_URL).openConnection();\n connection.setConnectTimeout(1000 * 30);\n\n return BitmapFactory.decodeStream((InputStream) connection.getContent(), null, null);\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"public interface PictureService {\n\n String uploadPicture(byte[] fileBuffer, String fileName) throws Exception;\n\n String uploadFile(String local_filename, String file_ext_name) throws Exception;\n\n}",
"public interface PictureService {\n UploadPictureResponseVO uploadPicture(MultipartFile multipartFile);\n}",
"public interface UploadFileService {\r\n Map upLoadPic(MultipartFile multipartFile);\r\n}",
"public void ImageUrlSendServer(){\n class sendData extends AsyncTask<Void, Void, String> {\n @Override\n protected void onPreExecute() {\n super.onPreExecute();\n }\n @Override\n protected void onPostExecute(String s) {\n super.onPostExecute(s);\n }\n @Override\n protected void onProgressUpdate(Void... values) {\n super.onProgressUpdate(values);\n }\n @Override\n protected void onCancelled(String s) {\n super.onCancelled(s);\n }\n @Override\n protected void onCancelled() {\n super.onCancelled();\n }\n @Override\n protected String doInBackground(Void... voids) {\n try {\n OkHttpClient client = new OkHttpClient();\n JSONObject jsonInput = new JSONObject();\n\n jsonInput.put(\"room_id\", roomID);\n jsonInput.put(\"image_url\", stuffRoomInfo.getImageUrl());\n jsonInput.put(\"og_title\", stuffRoomInfo.getOgTitle());\n Log.i(\"db\", stuffRoomInfo.getImageUrl());\n RequestBody reqBody = RequestBody.create(\n MediaType.parse(\"application/json; charset=utf-8\"),\n jsonInput.toString()\n );\n\n Request request = new Request.Builder()\n .post(reqBody)\n .url(imageUrls)\n .build();\n\n Response responses = null;\n responses = client.newCall(request).execute();\n responses.close();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }\n }\n sendData sendData = new sendData();\n sendData.execute();\n }",
"public interface AntrianSendAPI {\n String URL_FILE = \"/response_place.php\";\n\n @FormUrlEncoded\n @POST(URL_FILE)\n void reserve(\n @Field(\"api_key\") String apiKey,\n @Field(\"antrian_numb\") Integer antrianNumb,\n @Field(\"antrian_code\") String antrianCode,\n @Field(\"user_token\") String userToken,\n Callback<Response> callback);\n}",
"private void cargarImagenWebService(String rutaImagen) {\n\n String url_lh = Globals.url;\n\n String urlImagen = \"http://\" + url_lh + \"/proyecto_dconfo_v1/\" + rutaImagen;\n urlImagen = urlImagen.replace(\" \", \"%20\");\n\n ImageRequest imageRequest = new ImageRequest(urlImagen, new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap response) {\n iv_bank_prueba.setBackground(null);\n iv_bank_prueba.setImageBitmap(response);\n }\n }, 0, 0, ImageView.ScaleType.CENTER, null, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), \"Error al cargar la imagen\", Toast.LENGTH_SHORT).show();\n }\n });\n //request.add(imageRequest);\n VolleySingleton.getIntanciaVolley(getApplicationContext()).addToRequestQueue(imageRequest);\n }",
"@GET\n @Path(\"{path : .+}\")\n @Produces(value = MediaType.APPLICATION_JSON)\n// @ApiOperation(value = \"Retrieve a image by id\",\n// produces = MediaType.APPLICATION_JSON)\n// @ApiResponses({\n// @ApiResponse(code = HttpStatus.NOT_FOUND_404,\n// message = \"The requested image could not be found\"),\n// @ApiResponse(code = HttpStatus.BAD_REQUEST_400,\n// message = \"The request is not valid. The response body will contain a code and \" +\n// \"details specifying the source of the error.\"),\n// @ApiResponse(code = HttpStatus.UNAUTHORIZED_401,\n// message = \"User is unauthorized to perform the desired operation\")\n// })\n\n public Response getMethod(\n @ApiParam(name = \"id\", value = \"id of page to retrieve image content\", required = true)\n @PathParam(\"path\") String getpath, @Context HttpServletRequest httpRequest, @Context UriInfo uriInfo) {\n String contentType = \"application/json\";\n String method = \"getMethod\";\n String httpMethodType = \"GET\";\n String resolvedResponseBodyFile = null;\n Response.ResponseBuilder myresponseFinalBuilderObject = null;\n\n try {\n\n\n\n String paramPathStg = getpath.replace(\"/\", \".\");\n\n //Step 1: Get responseGuidanceObject\n //TODO: handle JsonTransformationException exception.\n LocationGuidanceDTO responseGuidanceObject = resolveResponsePaths(httpMethodType, paramPathStg);\n\n //Step 2: Create queryparams hash and headers hash.\n Map<String, String> queryParamsMap = grabRestParams(uriInfo);\n Map<String, String> headerMap = getHeaderMap(httpRequest);\n\n\n //Step 3: TODO: Resolve header and params variables from Guidance JSON Body.\n resolvedResponseBodyFile = findExtractAndReplaceSubStg(responseGuidanceObject.getResponseBodyFile(), HEADER_REGEX, headerMap);\n resolvedResponseBodyFile = findExtractAndReplaceSubStg(resolvedResponseBodyFile, PARAMS_REGEX, headerMap);\n\n //Step 4: TODO: Validate responseBody, responseHeader, responseCode files existence and have rightJson structures.\n\n //Step 6: TODO: Grab responses body\n\n String responseJson = replaceHeadersAndParamsInJson(headerMap, queryParamsMap, resolvedResponseBodyFile);\n\n //Step 5: TODO: Decorate with response header\n String headerStg = \"{\\\"ContentType\\\": \\\"$contentType\\\"}\";\n\n //Step 7: TODO: Grab response code and related responsebuilderobject\n Response.ResponseBuilder myRespBuilder = returnRespBuilderObject(responseGuidanceObject.getResponseCode(), null).entity(responseJson);\n\n //Step 5: TODO: Decorate with response headers\n myresponseFinalBuilderObject = decorateWithResponseHeaders(myRespBuilder, responseGuidanceObject.getResponseHeaderFile());\n\n return myresponseFinalBuilderObject.build();\n } catch (IOException ex) {\n logger.error(\"api={}\", \"getContents\", ex);\n mapAndThrow(ex);\n }\n return myresponseFinalBuilderObject.build();\n }",
"public interface APIInterface {\r\n @GET(\"api.php/action=query&format=json&prop=pageimages%7Cpageterms&generator=prefixsearch&redirects=1&formatversion=2&piprop=thumbnail&pithumbsize=50&pilimit=10&wbptterms=description\")\r\n Call<SearchResponseModel> getDataList(@Query(\"gpssearch\") String name , @Query(\"gpslimit\") String gpsLimit);\r\n}",
"public void ImageCreate(){\n Picasso.get().load(url).into(imageView);\n }",
"public interface AddVideoServes {\n @Multipart\n @POST(\"servletc/AddVideoServlet\")\n Call<String> upload(\n @Part(\"userId\") String id,\n @Part MultipartBody.Part file);\n @POST(\"servletc/AddVideoPlayNumber\")\n Call<String> addVideoPlayNumber(@Query(\"videoId\") int id);\n}",
"private void getProfilePic()\n {\n String url= LoginActivity.base_url+\"src/users/\"+String.format(\"%s/profilepics/prof_pic\",makeName(Integer.parseInt(userInfo[4])))+\".jpg\";\n ImageRequest request=new ImageRequest(\n url,\n new Response.Listener<Bitmap>()\n {\n @Override\n public void onResponse(Bitmap response)\n {\n ((ImageView)findViewById(R.id.image)).setImageBitmap(response);\n //imageView.setImageBitmap(response);\n Log.d(\"volley\",\"succesful\");\n }\n }, 0, 0, null,\n new Response.ErrorListener()\n {\n @Override\n public void onErrorResponse(VolleyError e)\n {\n Log.e(\"voley\",\"\"+e.getMessage()+e.toString());\n }\n });\n RequestQueue request2 = Volley.newRequestQueue(getBaseContext());\n request2.add(request);\n }",
"@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> parameters = new HashMap<String, String>();\n parameters.put(\"image\", encodedImageString);\n parameters.put(\"uid\", String.valueOf(id));\n return parameters;\n }",
"public String getImageUrl();",
"@Override\n protected String doInBackground(String... params) {\n bitmap = DownloadImageBitmap(url);\n return null;\n }",
"public interface TumblrApi {\n // No trailing slashes!\n String BASE_DOMAIN = \"tumblr.com\";\n String API_URL = \"https://api.\" + BASE_DOMAIN;\n\n String[] VALID_DOMAINS = {\n \"*.\" + BASE_DOMAIN\n };\n Set<String> VALID_DOMAINS_SET = new HashSet<>(Arrays.asList(VALID_DOMAINS));\n\n /** The width of the image to use as the \"low quality\" version */\n int LOW_QUALITY_WIDTH = 500;\n /** The width of the image to use as the preview version */\n int PREVIEW_WIDTH = 400;\n\n @GET(\"/v2/blog/{blogDomain}/posts/photo\")\n Call<TumblrResponse> getPost(@Path(\"blogDomain\") String blogDomain,\n @Query(\"id\") String postId,\n @Query(\"api_key\") String apiKey);\n}",
"public interface APi {\n //get请求 使用@Query修饰参数\n @GET(\"user/login\")\n Observable<Databean> login(@Query(\"mobile\") String mobile, @Query(\"password\") String password);\n\n// @GET(\"user/login\")\n// Call<LoginBean> addHead(@Header(\"mobile\") String mobile, @Header(\"password\") String password ());\n//\n//\n// @Headers({ \"X-Foo: Bar\",\n// \"X-Ping: Pong\"\n// })\n// Call<LoginBean> addHead(@Header(\"mobile\") String mobile, @Header(\"password\") String password ());\n\n\n// @GET(\"user/login\")\n// Call<LoginBean> login( @QueryMap Map<String ,String> map);\n\n\n //post请求\n// @FormUrlEncoded\n// @POST(\"user/login\")\n// Call<ResponseBody> login(@Field(\"mobile\") String mobile, @Field(\"password\") String password);\n\n\n //post请求\n// @FormUrlEncoded\n// @POST(\"user/login\")\n// Call<LoginBean> login(@Field(\"mobile\") String mobile, @Field(\"password\") String password);\n\n\n //url,请求一个不同于baseurl的链接\n// @GET\n// Call<LoginBean> login(@Url String password);\n\n //path 占位符,用来动态拼接url, 参数拼接到 {name} 的地方\n// @GET(\"/{id}/{name}\")\n// Call<ResponseBody> encoded(@Path(\"id\") String id, @Path(\"name\") String name);\n\n\n //文件上传方法一\n// @Multipart\n// @POST(\"file/upload\")\n// Call<ResponseBody> uploadImage(@Query(\"uid\") String uid, @Part(\"file\") RequestBody requestBody);\n\n\n //方法一和方法二的区别是,方式一把key放到了 @Part(\"file\")中,方式二把key封装到了MultipartBody.Part 中\n //其实本质上还是用的RequestBody, 而RequestBody封装了文件格式和文件 (文件格式是 MediaType0\n\n //文件上传方法二\n// @Multipart\n// @POST(\"file/upload\")\n// Call<ResponseBody> uploadImageTwo(@Query(\"uid\") String uid, @Part MultipartBody.Part part);\n}",
"@Override\n protected String doInBackground(Void... voids) {\n Requesthandler requestHandler = new Requesthandler();\n calendar = Calendar.getInstance();\n imageData = imageToString(bitmap);\n dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n date = dateFormat.format(calendar.getTime());\n\n //creating request parameters\n HashMap<String, String> params = new HashMap<>();\n params.put(\"username\", username);\n params.put(\"email\", email);\n params.put(\"password\", password);\n params.put(\"gender\", gender);\n params.put(\"since\", date);\n params.put(\"avatar\", imageData);\n\n //returing the response\n return requestHandler.sendPostRequest(URLs.URL_REGISTER, params);\n }",
"@GET\n @Path(\"image\")\n @Produces(MediaType.TEXT_PLAIN)\n public Response voidImage() {\n return Response.status(Response.Status.NOT_FOUND).build();\n }",
"@Override\n public void onResponse(Call<Apod> call, Response<Apod> response) {\n if(response != null && (response.code() != 500 || response.code() != 500 || response.body() != null)) {\n //Asignamos la información del Apod recibido a los controles y variables de clase\n if (response.body().getMediaType().equals(\"image\")) { //Si es imagen\n //Url de la foto\n urlImageApod = response.body().getUrl();\n Picasso.with(getActivity()).load(response.body().getUrl()).into(imageApod);\n isVideo = false;\n } else { //Si es video\n urlVideo = response.body().getUrl();\n imageApod.setImageResource(R.drawable.play);\n isVideo = true;\n }\n\n tvDate.setText(response.body().getDate());\n tvTitle.setText(response.body().getTitle());\n tvExplanation.setText(response.body().getExplanation());\n\n //No siempre viene con copyright\n String copyright = TextUtils.isEmpty(response.body().getCopyright()) ? \"\" :\n response.body().getCopyright();\n tvCopyright.setText(copyright);\n\n //Construimos el objeto apod por si el usuario decide agregarlo a favoritos\n modelApod = new Apod();\n modelApod.setCopyright(copyright);\n modelApod.setDate(response.body().getDate());\n modelApod.setExplanation(response.body().getExplanation());\n modelApod.setHdurl(response.body().getHdurl());\n modelApod.setMediaType(response.body().getMediaType());\n modelApod.setServiceVersion(response.body().getServiceVersion());\n modelApod.setTitle(response.body().getTitle());\n modelApod.setUrl(response.body().getUrl());\n }\n else{\n Toast.makeText(getActivity(),getString(R.string.fragApod_msgNoInformation), Toast.LENGTH_LONG).show();\n }\n\n }",
"public interface GiftApiService {\n\n @GET(\"/giftChains\")\n void getGiftChainList(@Query(\"nextPageToken\") int nextPageToken,\n @Query(\"limit\") int limit,\n @Query(\"sort\") String sort,\n Callback<GiftChainListResponse> callback);\n\n @GET(\"/gifts\")\n void getGiftsNewerThanGiftId(@Query(\"nextPageToken\") int nextPageToken,\n @Query(\"limit\") int limit,\n @Query(\"sort\") String sort,\n @Query(\"greaterThanId\") long giftId,\n Callback<GiftChainListResponse> callback);\n\n @GET(\"/gifts/newest\")\n void getNewestGift(Callback<Gift> callback);\n\n @Multipart\n @POST(\"/gifts\")\n Gift uploadNewGift(@Part(\"gift\") Gift gift, @Part(\"file\") TypedFile file);\n\n @POST(\"/users\")\n void registerUser(@Body RegistrationUser user, Callback<UserAccount> callback);\n\n @FormUrlEncoded\n @POST(\"/gifts/{id}/touch\")\n Response touch(@Path(\"id\") long touchableId, @Field(\"direction\") int direction);\n\n @FormUrlEncoded\n @POST(\"/gifts/{id}/flag\")\n Response flag(@Path(\"id\") long flaggableId, @Field(\"direction\") int direction);\n}",
"public interface ApiInterFace {\n @GET(\"restaurants\")\n Call<Restaurant_model> getRestaurants();\n\n @POST(\"/profile\")\n @FormUrlEncoded\n Call<LoginFragment.UserSentResponse> sendUserData(@Field(\"name\") String name, @Field(\"picUrl\") String picUrl, @Field(\"email\") String email);\n\n\n @GET(\"/search/{keyword}\")\n Call<SearchModel> search(@Path(\"keyword\") String keyword);\n\n @GET(\"/profile/{id}\")\n Call<UserProfile_model> getUserInfo(@Path(\"id\") String id);\n\n @GET(\"/meal/{id}\")\n Call<RestaurantMealResponse> getRestaurantMeal(@Path(\"id\") int id);\n\n @GET(\"/restaurant/{id}\")\n Call<RestaurantDetailResponse> getRestaurantDetailResponse(@Path(\"id\") int id);\n}",
"public interface CaptureImgService {\n\n String captureImg(HttpServletRequest re, String url, String size) throws IOException;\n}",
"public interface IPublishArticle {\n @POST(ServerInterface.PUBLISH_ARTICLE)\n @Multipart\n Call<String> publishArticle(@Part MultipartBody.Part pic, @Part(\"type\") String type, @Part(\"friendCircle.user.id\") String userId, @Part(\"friendCircle.topic.id\") String topicId, @Part(\"friendCircle.msg\") String content);\n}",
"public interface BurppleAPI {\n\n @FormUrlEncoded\n @POST(\"v1/getFeatured.php\")\n Call<GetFeaturedResponse> loadFeatured(\n @Field(\"access_token\") String accessToken,\n @Field(\"page\") int pageIndex);\n\n @FormUrlEncoded\n @POST(\"v1/getPromotions.php\")\n Call<GetPromotionsResponse> loadPromotions(\n @Field(\"access_token\") String accessToken,\n @Field(\"page\") int pageIndex);\n\n @FormUrlEncoded\n @POST(\"v1/getGuides.php\")\n Call<GetGuidesResponse> loadGuides(\n @Field(\"access_token\") String accessToken,\n @Field(\"page\") int pageIndex);\n}",
"public interface ImageService {\n\n void saveImageFile(Long recipeId, MultipartFile imageFile);\n}",
"@PreAuthorize(\"hasAnyRole('ROLE_ADMIN','ROLE_CONTRIBUTOR')\")\r\n\t@CrossOrigin(origins=\"http://localhost:4200\")\r\n\t@RequestMapping(value=\"/image/upload/{idMangas:[0-9]+}\", method=RequestMethod.POST, produces=MediaType.APPLICATION_JSON_VALUE)\r\n\t@ResponseBody\r\n\tpublic Manga upload(@RequestParam(\"file\") MultipartFile file, @PathVariable(\"idMangas\") int idMangas){\n\t\tlog.info(\"File name: \" + file.getOriginalFilename());\r\n\t\tlog.info(\"File name: \" + file.getContentType());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tImage img = new Image(0, file.getOriginalFilename(), file.getSize(), file.getContentType(), \"\", \"\");\r\n\t\t\timageDao.saveImageFile(img, file.getInputStream());\r\n\t\t\t// on save ensuite en bdd l image\r\n\t\t\timageDao.save(img);\r\n\t\t\t// puis on lie limage a mongas recup ds lurl\r\n\t\t\tManga m = mangasDao.findOne(idMangas);\r\n\t\t\tm.setImg(img);\r\n\t\t\treturn mangasDao.save(m);\r\n\t\t\t// return m;\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tthrow new HttpClientErrorException(HttpStatus.INTERNAL_SERVER_ERROR, \"erreur lors de la sauvegarde\");\r\n\t\t}\r\n\t}",
"private Bitmap postBitmap(Post p) {\n byte[] loadedBytes = Base64.decode(p.getImageURL(), Base64.DEFAULT);\n Bitmap loadedBitmap = BitmapFactory.decodeByteArray(loadedBytes, 0, loadedBytes.length);\n return loadedBitmap;\n }",
"public interface InstagramService {\n\n @GET(\"/tags/{tag-name}/media/recent\")\n void getRecentMedia(\n @Path(\"tag-name\") String tag,\n @Query(\"client_id\") String clientId,\n Callback<RecentMedia> callback\n );\n\n @GET(\"/tags/{tag-name}/media/recent\")\n void getRecentMedia(\n @Path(\"tag-name\") String tag,\n @Query(\"client_id\") String clientId,\n @Query(\"max_tag_id\") String maxTagId,\n Callback<RecentMedia> callback\n );\n}",
"public interface ApiInterface {\n\n\n @GET(\"api/jsonBlob/9e44dca2-ad19-11e7-894a-5dc7a0a132b5\")\n Call<List<News>> getNewsAPIList();\n\n @PUT(\"api/jsonBlob/9e44dca2-ad19-11e7-894a-5dc7a0a132b5\")\n Call<List<News>> createNewsAPIBlob();\n\n @DELETE(\"/api/jsonBlob/9e44dca2-ad19-11e7-894a-5dc7a0a132b5\")\n Call deletePost();\n\n}",
"public interface CommonClient {\n @Multipart\n @POST(Constants.API_COMMON_UPLOAD_IMAGE)\n Call<ArrayModel<String>> uploadPhotos(@Part(\"type\") RequestBody type, @Part(\"foreign_id\") RequestBody foreign_id, @Part ArrayList<MultipartBody.Part> upload_file);\n\n @Multipart\n @POST(Constants.API_COMMON_UPDATE_SUBIMAGE)\n Call<ArrayModel<String>> updateSubPhotos(@Part(\"existingImages\") RequestBody existingImages, @Part(\"userId\") RequestBody userId, @Part ArrayList<MultipartBody.Part> upload_file);\n\n @POST(Constants.API_COMMON_UPLOAD_WEB)\n @FormUrlEncoded\n Call<ObjectModel<String>> uploadWebs(@Field(\"type\") int type, @Field(\"foreign_id\") int foreign_id, @Field(\"web\") JSONStringer webs);\n\n @POST(Constants.API_COMMON_UPLOAD_VIDEO)\n @FormUrlEncoded\n Call<ObjectModel<String>> uploadVideos(@Field(\"type\") int type, @Field(\"foreign_id\") int foreign_id, @Field(\"video[]\") ArrayList<String> videos);\n}",
"private void uploadFile(Uri fileUri, String firstName, String lastName, String phoneNumber, String email, boolean subscribed) {\n FileUploadInterface service = retrofit.create(FileUploadInterface.class);\n Uri filePath = getFilePathByUri(fileUri);\n File file = new File(filePath.getPath());\n // use the FileUtils to get the actual file by uri\n// File file = FileUtils.getFile(this, fileUri);\n\n // create RequestBody instance from file\n RequestBody requestFile =\n RequestBody.create(MediaType.parse(\"multipart/form-data\"), file);\n\n // MultipartBody.Part is used to send also the actual file name\n MultipartBody.Part body =\n MultipartBody.Part.createFormData(\"picture\", file.getName(), requestFile);\n\n // add another part within the multipart request\n String descriptionString = \"hello, this is description speaking\";\n RequestBody description =\n RequestBody.create(\n MediaType.parse(\"multipart/form-data\"), descriptionString);\n\n // finally, execute the request\n Call<ResponseBody> call = service.upload(description, firstName, lastName, phoneNumber, email, body, subscribed);\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call,\n Response<ResponseBody> response) {\n Log.v(\"Upload\", \"success\");\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Log.e(\"Upload error:\", t.getMessage());\n }\n });\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(AddingPlace.this,\"image uploaded successfully\",Toast.LENGTH_LONG).show();\n }"
]
| [
"0.6959435",
"0.6817042",
"0.6599501",
"0.6474616",
"0.6459815",
"0.6448849",
"0.64319265",
"0.6413578",
"0.6412175",
"0.6395576",
"0.6304611",
"0.6301955",
"0.6271656",
"0.62420774",
"0.6162394",
"0.6118096",
"0.6115538",
"0.6080425",
"0.60628515",
"0.6058338",
"0.60547185",
"0.60323566",
"0.6023986",
"0.6020407",
"0.6012303",
"0.6010273",
"0.59783083",
"0.59358025",
"0.5935268",
"0.59146976",
"0.5912917",
"0.58912194",
"0.5880853",
"0.58409965",
"0.5835032",
"0.5822865",
"0.58145654",
"0.5812428",
"0.5807048",
"0.5790601",
"0.5773708",
"0.57261735",
"0.5721803",
"0.5700952",
"0.567851",
"0.5656673",
"0.5630985",
"0.56139123",
"0.56131434",
"0.5606588",
"0.5606249",
"0.5604001",
"0.55916977",
"0.5584814",
"0.5581363",
"0.55691206",
"0.55650127",
"0.55591154",
"0.55503565",
"0.55445904",
"0.5541842",
"0.553411",
"0.5527516",
"0.5508997",
"0.55040085",
"0.5503658",
"0.54927534",
"0.5492279",
"0.5490493",
"0.54876995",
"0.5471073",
"0.5465558",
"0.54614085",
"0.545037",
"0.54438925",
"0.544231",
"0.5438546",
"0.54335666",
"0.54315096",
"0.5430734",
"0.5427486",
"0.5426798",
"0.54238594",
"0.54236895",
"0.5421623",
"0.541908",
"0.54176766",
"0.5416566",
"0.54110837",
"0.5398092",
"0.5394511",
"0.53940636",
"0.53900206",
"0.53897786",
"0.5388484",
"0.5382544",
"0.5381477",
"0.5380109",
"0.5379037",
"0.5378027"
]
| 0.61783844 | 14 |
A collection page for DeviceHealthScriptDeviceState | public DeviceHealthScriptDeviceStateCollectionPage(@Nonnull final DeviceHealthScriptDeviceStateCollectionResponse response, @Nonnull final DeviceHealthScriptDeviceStateCollectionRequestBuilder builder) {
super(response, builder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DeviceHealthScriptDeviceStateCollectionPage(@Nonnull final java.util.List<DeviceHealthScriptDeviceState> pageContents, @Nullable final DeviceHealthScriptDeviceStateCollectionRequestBuilder nextRequestBuilder) {\n super(pageContents, nextRequestBuilder);\n }",
"List<? extends IDeviceState> getDeviceStatesForDevice(UUID deviceId) throws SiteWhereException;",
"@GetMapping(\"/findAllState\")\n\tpublic ResponseEntity<List<State>> findAllState() {\n\t\tList<State> STATES = stateService.findAllState();\n\t\treturn new ResponseEntity<List<State>>(STATES, HttpStatus.OK);\n\t}",
"IDeviceState getDeviceState(UUID id) throws SiteWhereException;",
"public DeviceManagementScriptDeviceState get() throws ClientException {\n return send(HttpMethod.GET, null);\n }",
"public List<PageState> getPageStates() {\r\n\t\treturn pageStateDao.findAll();\r\n\t}",
"@Override\r\n\tpublic List<HouseState> queryAllHState() {\n\t\treturn adi.queryAllHState();\r\n\t}",
"public List<?> getAllPatientState()\n {\n return _patient.getPatientStates();\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllActiveDevicesFast\")\n List<JsonDevice> all();",
"IDeviceState getDeviceStateByDeviceAssignment(UUID assignmentId) throws SiteWhereException;",
"public List<HealthCheck> getChecksByState(String state);",
"public interface IDeviceStateManagement extends ITenantEngineLifecycleComponent {\n\n /**\n * Create device state.\n * \n * @param request\n * @return\n * @throws SiteWhereException\n */\n IDeviceState createDeviceState(IDeviceStateCreateRequest request) throws SiteWhereException;\n\n /**\n * Get device state by unique id.\n * \n * @param id\n * @return\n * @throws SiteWhereException\n */\n IDeviceState getDeviceState(UUID id) throws SiteWhereException;\n\n /**\n * Get device state based on device assignment.\n * \n * @param assignmentId\n * @return\n * @throws SiteWhereException\n */\n IDeviceState getDeviceStateByDeviceAssignment(UUID assignmentId) throws SiteWhereException;\n\n /**\n * Get list of device states (one per device assignment) for a device.\n * \n * @param deviceId\n * @return\n * @throws SiteWhereException\n */\n List<? extends IDeviceState> getDeviceStatesForDevice(UUID deviceId) throws SiteWhereException;\n\n /**\n * Search for device states that match the given criteria.\n * \n * @param criteria\n * @return\n * @throws SiteWhereException\n */\n ISearchResults<? extends IDeviceState> searchDeviceStates(IDeviceStateSearchCriteria criteria)\n\t throws SiteWhereException;\n\n /**\n * Update existing device state.\n * \n * @param id\n * @param request\n * @return\n * @throws SiteWhereException\n */\n IDeviceState updateDeviceState(UUID id, IDeviceStateCreateRequest request) throws SiteWhereException;\n\n /**\n * Merge one or more events into the device state.\n * \n * @param id\n * @param events\n * @return\n * @throws SiteWhereException\n */\n IDeviceState merge(UUID id, IDeviceStateEventMergeRequest events) throws SiteWhereException;\n\n /**\n * Delete existing device state.\n * \n * @param id\n * @return\n * @throws SiteWhereException\n */\n IDeviceState deleteDeviceState(UUID id) throws SiteWhereException;\n}",
"java.util.List<com.rpg.framework.database.Protocol.MonsterState> \n getDataList();",
"@ModelAttribute(\"states\")\n public List<State> getStates(){\n return stateService.listAll();\n }",
"public List<S> getAvailableStates();",
"DeviceState createDeviceState();",
"List<DeviceDetails> getDevices();",
"public Collection<ModuleStateData> getStateData()\r\n {\r\n return myStateData;\r\n }",
"ISearchResults<? extends IDeviceState> searchDeviceStates(IDeviceStateSearchCriteria criteria)\n\t throws SiteWhereException;",
"public Status getDeviceStatus() {\n return mDeviceStatus;\n }",
"public List<Device> getRunningDevices();",
"public Collection<String> listDevices();",
"@RestAPI\n \t@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(value = {\"/api/states/\", \"/api/states\"}, method = RequestMethod.GET)\n \tpublic HttpEntity<String> getStates() {\n \t\tList<AgentInfo> agents = agentManagerService.getAllVisibleAgentInfoFromDB();\n \t\treturn toJsonHttpEntity(getAgentStatus(agents));\n \t}",
"List<CacheHealth> getCacheHealth();",
"@GET\n @Path(\"/status\")\n @Produces(MediaType.TEXT_PLAIN)\n public String status() {\n Device device = getDevice();\n try {\n StreamingSession session = transportService.getSession(device.getId());\n return \"Status device:[\" + device.getId() + \"]\" + \" session [\" + session.toString() + \"]\";\n } catch (UnknownSessionException e) {\n return e.getMessage();\n }\n }",
"@Override\n public List<List<Integer>> getStateInfo() {\n List<List<Integer>> currStateConfig = getVisualInfoFromPieces(STATE_INFO_IDENTIFIER);\n return Collections.unmodifiableList(currStateConfig);\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getDeviceSensorOutputs/{device}\")\n List<JsonSensorOutput> byDevice(@PathParam(\"device\") int device);",
"public UsState[] findAll() throws UsStateDaoException;",
"public HostStatus() {\n addressesChecker = (AddressesChecker)ServicesRegisterManager.platformWaitForService(Parameters.NETWORK_ADDRESSES);\n hostID = addressesChecker.getHostIdentifier();\n hostAddresses = addressesChecker.getAllAddresses();\n contextManager = (ContextManager)ServicesRegisterManager.platformWaitForService(Parameters.CONTEXT_MANAGER);\n cpuLoad = contextManager.getCpuLoad();\n memoryLoad = contextManager.getMemoryLoad();\n batteryLevel = contextManager.getBatteryLevel();\n numberOfThreads = contextManager.getNumberOfThreads();\n networkPFInputTraffic = contextManager.getPFInputTrafic();\n networkPFOutputTraffic = contextManager.getPFOutputTrafic();\n networkApplicationInputTraffic = contextManager.getApplicationInputTrafic();\n networkApplicationOutputTraffic = contextManager.getApplicationOutputTrafic();\n ContainersManager gestionnaireDeConteneurs = (ContainersManager)ServicesRegisterManager.platformWaitForService(Parameters.CONTAINERS_MANAGER);\n numberOfBCs = gestionnaireDeConteneurs.getComposants().getComponentsNumber();\n numberOfConnectors = gestionnaireDeConteneurs.getConnecteurs().getConnectorsNumber();\n numberOfConnectorsNetworkInputs = gestionnaireDeConteneurs.getConnecteurs().getNetworkInputConnectorsNumber();\n numberOfConnectorsNetworkOutputs = gestionnaireDeConteneurs.getConnecteurs().getNetworkOutputConnectorsNumber();\n }",
"@Override\n\tpublic List<ProductState> getProductStates() {\n\t\tlogger.info(\"productStateServiceMong get all ProductState\");\n\t\treturn productStateDAO.getProductStates();\n\t}",
"String provisioningState();",
"public List<Device> findAll() throws Exception;",
"public List<MclnState> getAvailableStates();",
"@GET\n @Path(\"count\")\n public Response getDeviceCount() {\n try {\n Integer count = DeviceMgtAPIUtils.getDeviceManagementService().getDeviceCount();\n return Response.status(Response.Status.OK).entity(count).build();\n } catch (DeviceManagementException e) {\n String msg = \"Error occurred while fetching the device count.\";\n log.error(msg, e);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();\n }\n }",
"@Override\n @RequiresPermissions(\"em.emtype.query\")\n public void index() {\n List<EmType> list = EmType.dao.list();\n \n setAttr(\"list\", JsonKit.toJson(list));\n render(\"equipment_type_list.jsp\");\n }",
"public synchronized Hashtable getDevices() {\n Hashtable hashtable;\n hashtable = new Hashtable();\n Enumeration keys = this.deviceList.keys();\n while (keys.hasMoreElements()) {\n Integer num = (Integer) keys.nextElement();\n hashtable.put(num, this.deviceList.get(num));\n }\n return hashtable;\n }",
"public String getDataState() {\n int state = mTelephonyManager.getDataState();\n String display = \"unknown\";\n\n switch (state) {\n case TelephonyManager.DATA_CONNECTED:\n display = \"Connected\";\n break;\n case TelephonyManager.DATA_SUSPENDED:\n display = \"Suspended\";\n break;\n case TelephonyManager.DATA_CONNECTING:\n display = \"Connecting\";\n break;\n case TelephonyManager.DATA_DISCONNECTED:\n display = \"Disconnected\";\n break;\n }\n\n return display;\n }",
"public void populateVitals() {\n try {\n Statement stmt = con.createStatement();\n\n ResultSet rs = stmt.executeQuery(\"select * from device\");\n while (rs.next()) {\n\n String guid = rs.getString(\"DeviceGUID\");\n int deviceId = rs.getInt(\"DeviceID\");\n int deviceTypeId = rs.getInt(\"DeviceTypeID\");\n int locationId = rs.getInt(\"LocationID\");\n float deviceProblem = rs.getFloat(\"ProblemPercentage\");\n\n String dateService = rs.getString(\"DateOfInitialService\");\n\n Device device = new Device();\n device.setDateOfInitialService(dateService);\n device.setDeviceGUID(guid);\n device.setDeviceID(deviceId);\n device.setDeviceTypeID(deviceTypeId);\n device.setLocationID(locationId);\n device.setProblemPercentage(deviceProblem);\n\n deviceList.add(device);\n\n }\n } catch (SQLException e) {\n log.error(\"Error populating devices\", e);\n }\n\n }",
"@Override\n public void onResponse(Call<List<DeviceStateResponse>> call, Response<List<DeviceStateResponse>> response) {\n List<DeviceStateResponse> devices = response.body();\n callback.onDevicesLoaded(devices);\n }",
"private void cmdInfoState() throws NoSystemException {\n MSystem system = system();\n MModel model = system.model();\n MSystemState state = system.state();\n NumberFormat nf = NumberFormat.getInstance();\n\n System.out.println(\"State: \" + state.name());\n\n // generate report for objects\n Report report = new Report(3, \"$l : $r $r\");\n\n // header\n report.addRow();\n report.addCell(\"class\");\n report.addCell(\"#objects\");\n report.addCell(\"+ #objects in subclasses\");\n report.addRuler('-');\n\n // data\n long total = 0;\n int n;\n\n for (MClass cls : model.classes()) {\n report.addRow();\n String clsname = cls.name();\n if (cls.isAbstract())\n clsname = '(' + clsname + ')';\n report.addCell(clsname);\n n = state.objectsOfClass(cls).size();\n total += n;\n report.addCell(nf.format(n));\n n = state.objectsOfClassAndSubClasses(cls).size();\n report.addCell(nf.format(n));\n }\n\n // footer\n report.addRuler('-');\n report.addRow();\n report.addCell(\"total\");\n report.addCell(nf.format(total));\n report.addCell(\"\");\n\n // print report\n report.printOn(System.out);\n System.out.println();\n\n // generate report for links\n report = new Report(2, \"$l : $r\");\n\n // header\n report.addRow();\n report.addCell(\"association\");\n report.addCell(\"#links\");\n report.addRuler('-');\n\n // data\n total = 0;\n\n for (MAssociation assoc : model.associations()) {\n report.addRow();\n report.addCell(assoc.name());\n n = state.linksOfAssociation(assoc).size();\n report.addCell(nf.format(n));\n total += n;\n }\n\n // footer\n report.addRuler('-');\n report.addRow();\n report.addCell(\"total\");\n report.addCell(nf.format(total));\n\n // print report\n report.printOn(System.out);\n }",
"@Override\n public List<ModuleHealth> getSystemHealth() {\n return storage.getSystemHealth();\n }",
"public List getDevices() {\n return devices;\n }",
"public Integer getPhysicalstate() {\r\n return physicalstate;\r\n }",
"public void logDeviceEnterpriseInfo() {\n Callback<OwnedState> callback = (result) -> {\n recordManagementHistograms(result);\n };\n\n getDeviceEnterpriseInfo(callback);\n }",
"@RequestMapping(method = RequestMethod.GET , value=\"/initial_sensorinfo\")\n public String initialSensorinfo() throws Exception {\n\tList<EnvironmentStatus> abcd = new ArrayList<>();\n\tPageable initialPage;\n\t\n\tif(environmentStatusPageRepository.count() >= 90){\n\t initialPage = (Pageable) PageRequest.of(0, 90, Sort.Direction.DESC, \"time\");\n\t //abcd = environmentStatusPageRepository.findTop90();\n\t \n\t}\n\telse{\n\t initialPage = (Pageable) PageRequest.of(0, (int) environmentStatusPageRepository.count(), Sort.Direction.DESC, \"time\");\n\t //abcd = environmentStatusPageRepository.findTop3();\n\t}\n\t\n\tPage<EnvironmentStatus> initialSensorInfo = environmentStatusPageRepository.findAll(initialPage);\n\t\n\tGson gson = new Gson();\n\tString initialSensorInfoString;\n\tinitialSensorInfoString = gson.toJson(initialSensorInfo.getContent());\n\t\n return initialSensorInfoString;\n }",
"List<Integer> getState()\n\t{\n\t\treturn state;\n\t}",
"@Path(\"device\")\n DeviceAPI devices();",
"@Override\r\n\tpublic ArrayList<StateVO> getStateList() {\n\t\treturn stateSQLMapper.selectAll();\r\n\t}",
"int getDeploymentStateValue();",
"@GetMapping(\"/meter-statuses\")\n @Timed\n public ResponseEntity<List<MeterStatus>> getAllMeterStatuses(@ApiParam Pageable pageable) {\n log.debug(\"REST request to get a page of MeterStatuses\");\n Page<MeterStatus> page = meterStatusService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/meter-statuses\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"public DjDeploymentStateHistRecord() {\n super(DjDeploymentStateHist.DJ_DEPLOYMENT_STATE_HIST);\n }",
"List<PCDevice> getAllPC();",
"public DeviceUserAuthorization[] getDeviceList() {\n return deviceList;\n }",
"public Map<Integer, Color> getStates(){\n return myStates;\n }",
"@ApiOperation(\"查询传感器的信息\")\n @GetMapping(\"alldata\")\n //PageParam pageParam\n public Result<List<Sensordetail>> allsensorinf() {\n return Result.createBySuccess(sensorDetailMapper.selectAll());\n }",
"@GetMapping(\"/statuts\")\n public List<Status> selectAllStatuts(){\n \treturn serviceStatut.selectAllStatuts();\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Device> getAllDevices() {\n\n Query query = em.createQuery(\"SELECT d FROM Device d\");\n List<Device> devices = new ArrayList<Device>();\n devices = query.getResultList();\n return devices;\n }",
"@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceStateChange(DeviceStateEvent event) {\n DeviceClient device = event.getDevice();\n DeviceState state = event.getState();\n Log.d(TAG, \"device : type : \" + device.getDeviceType() + \" guid : \" + device.getDeviceGuid());\n Log.d(TAG, \"device : name : \" + device.getDeviceName() + \" state: \" + state.intValue());\n\n mDeviceClient = device;\n String type = (DeviceType.isNfcScanner(device.getDeviceType()))? \"NFC\" : \"BARCODE\";\n TextView tv = findViewById(R.id.main_device_status);\n handleColor(tv, state.intValue());\n switch (state.intValue()) {\n case DeviceState.GONE:\n mDeviceClientList.remove(device);\n mAdapter.remove(device.getDeviceName() + \" \" + type);\n mAdapter.notifyDataSetChanged();\n if(!mAdapter.isEmpty()) {\n handleColor(tv, DeviceState.READY);\n }\n break;\n case DeviceState.READY:\n mDeviceClientList.add(device);\n mAdapter.add(device.getDeviceName() + \" \" + type);\n mAdapter.notifyDataSetChanged();\n\n Property property = Property.create(Property.UNIQUE_DEVICE_IDENTIFIER, device.getDeviceGuid());\n mDeviceManager.getProperty(property, propertyCallback);\n\n break;\n default:\n break;\n }\n\n }",
"@Test\n public void listDeviceDataTest() throws ApiException {\n String collectionId = null;\n String deviceId = null;\n Integer limit = null;\n String start = null;\n String end = null;\n String offset = null;\n ListDataResponse response = api.listDeviceData(collectionId, deviceId, limit, start, end, offset);\n\n // TODO: test validations\n }",
"@Test\n\tpublic void TC630DaADL_05(){\n\t\tresult.addLog(\"ID : TC630DaADL_05 : Verify that the apps & devices table contains 'Company', 'Brand', 'Product Name', 'Type' and 'Published' columns.\");\n\t\t/*\n\t\t \t1. Navigate to DTS portal\n\t\t\t2. Log into DTS portal as a DTS user successfully\n\t\t\t3. Navigate to \"Apps & Devices\" page\n\t\t */\n\t\t// 3. Navigate to \"Apps & Devices\" page\n\t\thome.click(Xpath.LINK_APP_DEVICES);\n\t\t// VP: The TC630Da Apps & Devices List is displayed\n\t\tresult = home.existsElement(DeviceList.getListXpath());\n\t\tAssert.assertEquals(\"Pass\", result.getResult());\n\t\t/*\n\t\t * The 630Da Apps & Devices List is displayed and the apps & devices table contains \n\t\t * \"Company\", \"Brand\", \"Product Name\", \"Type\" and \"Published\" columns.\n\t\t */\n\t\tArrayList<String> list = home.getHeadColumByXpath(DeviceList.THEAD);\n\t\tAssert.assertTrue(DTSUtil.containsAll(list, DeviceList.theads));\n\t}",
"public java.util.List<java.lang.Integer>\n getStateValuesList() {\n return stateValues_;\n }",
"public Integer getDevices() {\r\n return devices;\r\n }",
"@Override\r\n\tpublic String getBind_health_ind() {\n\t\treturn super.getBind_health_ind();\r\n\t}",
"public int getStates() {\n return states;\n }",
"@Path(\"device/stats/{deviceId}\")\n @GET\n @ApiOperation(\n consumes = MediaType.APPLICATION_JSON,\n httpMethod = \"GET\",\n value = \"Retrieve Sensor data for the device type\",\n notes = \"\",\n response = Response.class,\n tags = \"picavi\",\n extensions = {\n @Extension(properties = {\n @ExtensionProperty(name = PicaviConstants.SCOPE, value = \"perm:picavi:enroll\")\n })\n }\n )\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n Response getPicaviDeviceStats(@PathParam(\"deviceId\") String deviceId, @QueryParam(\"from\") long from,\n @QueryParam(\"to\") long to, @QueryParam(\"sensorType\") String sensorType);",
"public java.util.List<com.rpg.framework.database.Protocol.MonsterState> getDataList() {\n return data_;\n }",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();",
"public List<String> getCommandStatus() {\n\t\tList<Device> devices = DeviceClientSingleton.getDeviceList();\r\n\t\tList<String> commandStatus = new ArrayList<String>();\r\n\t\tfor (int i = 0; i < devices.size(); i++) {\r\n\t\t\tString deviceData = DeviceClientSingleton.getDeviceData(devices.get(i).getDeviceId());\r\n\t\t\tcommandStatus.add(deviceData);\r\n\t\t\tif ((!deviceData.equals(\"\")) && (!deviceData.equals(\" \"))) {\r\n\t\t\t\tDeviceClientSingleton.removeDeviceData(devices.get(i).getDeviceId());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn commandStatus;\r\n\t}",
"@objid (\"331f64c4-884c-4de9-a104-ba68088d9e2b\")\n BpmnDataState getDataState();",
"@GetMapping(PRODUCT_HEALTH_CHECK)\n public String index() {\n return serviceName + \", system time: \" + System.currentTimeMillis();\n }",
"public List<HrCStatitem> findAll();",
"@GetMapping(\"/hlds\")\n @Timed\n public List<Hld> getAllHlds() {\n log.debug(\"REST request to get all Hlds\");\n return hldRepository.findAll();\n }",
"public int getHealthCount() {\n return healthCount;\n }",
"private void determineState() {\n if ( .66 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.HIGH ) {\n currentState = HealthState.HIGH;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"highHealth\" ) ) );\n }\n }\n } else if ( .33 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.MEDIUM ) {\n currentState = HealthState.MEDIUM;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"mediumHealth\" ) ) );\n }\n }\n } else if ( .0 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.LOW ) {\n currentState = HealthState.LOW;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"lowHealth\" ) ) );\n }\n }\n }\n }",
"@GetMapping(\"/activity\")\n Stats all() {\n Stats stats = new Stats();\n log.info(\"getting daily activity by default\");\n List<Activity> allActivity = repository.findAll();\n log.info(\"allActivity: \" + allActivity);\n Collections.sort(allActivity);\n Map<String, Integer> stepsByCategory = new TreeMap<String, Integer>();\n for (Activity activity : allActivity) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(activity.getUntilTime());\n int day = cal.get(Calendar.DAY_OF_YEAR);\n int year = cal.get(Calendar.YEAR);\n String dayOfYear = DAY + day + OF_YEAR + year;\n Integer steps = stepsByCategory.get(dayOfYear);\n if (steps == null) {\n steps = activity.getSteps();\n } else {\n steps += activity.getSteps();\n }\n stepsByCategory.put(dayOfYear, steps);\n }\n stats.setCategory(StatsCategory.DAILY);\n List<Details> details = new ArrayList<Stats.Details>();\n if(stepsByCategory != null) {\n for (Entry entry : stepsByCategory.entrySet()) {\n Details stat = stats.new Details();\n stat.key = entry.getKey().toString();\n stat.steps = entry.getValue().toString();\n details.add(stat);\n }\n stats.setDetails(details);\n }\n //stats.setStepsByCategory(stepsByCategory);\n return stats;\n }",
"public Response status() {\n return getStates();\n }",
"@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceClass> getAllDeviceClasses() {\n return this.serviceClient.getAllDeviceClasses();\n }",
"public Person[] getPatientsByStateOfHealth(int state) {\n int count = 0;\n for(int i = 0; i < listOfPatients.length; i++)\n {\n if(listOfPatients[i].getStateOfHealth() == state)\n count++;\n }\n \n if(count == 0)\n return null;\n\n int index = 0;\n Person[] patientsByStateOfHealth = new Person[count];\n for(int i = 0; i < listOfPatients.length; i++)\n {\n if(listOfPatients[i].getStateOfHealth() == state)\n patientsByStateOfHealth[index++] = listOfPatients[i];\n }\n\n return patientsByStateOfHealth;\n }",
"public List<ServiceHealth> getServiceInstances(String service);",
"@ServiceMethod(returns = ReturnType.SINGLE)\n public void getHealthStatus() {\n getHealthStatusAsync().block();\n }",
"public void showHouses() {\n System.out.println(\"-----Houses List-----\");\n System.out.println(\"No\\tOwner\\tPhone\\t\\tAddress\\t\\t\\t\\tRent\\tState\");\n houseService.listHouse();\n System.out.println(\"------List Done------\");\n }",
"int getServerState();",
"public abstract String[] exportState();",
"private static List<State<StepStateful>> getStates() {\n List<State<StepStateful>> states = new LinkedList<>();\n states.add(s0);\n states.add(s1);\n states.add(s2);\n states.add(s3);\n states.add(s4);\n states.add(s5);\n states.add(s6);\n return states;\n }",
"public int getRunningDevicesCount();",
"@Override\n public Object getData() {\n return devices;\n }",
"@Override\n public GetWirelessDeviceStatisticsResult getWirelessDeviceStatistics(GetWirelessDeviceStatisticsRequest request) {\n request = beforeClientExecution(request);\n return executeGetWirelessDeviceStatistics(request);\n }",
"public Collection<Dealsusagetb> getDusages() {\n Collection<Dealsusagetb> usages = res.readEntity(gDUsages);\n dusages = new ArrayList<>();\n for (Dealsusagetb usage : usages) {\n if(usage.getStatus() == 1) {\n dusages.add(usage);\n }\n }\n return dusages;\n }",
"private Map<String, ComponentStateMessageV1> getDriveState(DiscoverDeviceRequestV1 request) {\n var ret = new HashMap<String, ComponentStateMessageV1>();\n try {\n var httpResp = client.execute(RedfishUtil.getRequest(request, \"/redfish/v1/Chassis/1/Drives\"));\n var collectionResp = HttpClientUtils.getObjectFromResponse(httpResp, RedfishCollectionResponse.class);\n var uris = collectionResp.getMembers().stream().map(OdataId::getId).collect(Collectors.toList());\n for (var uri : uris) {\n var processor = HttpClientUtils.getObjectFromResponse(\n client.execute(RedfishUtil.getRequest(request, uri)),\n RedfishDrive.class\n );\n var state = new ComponentStateMessageV1();\n state.setType(ComponentType.Drive);\n state.setLocation(processor.getLocation());\n state.setHealth(RedfishUtil.getHealthState(processor.getStatus().getHealth()));\n state.setInstall(RedfishUtil.getInstallState(processor.getStatus().getState()));\n ret.put(processor.getLocation(), state);\n }\n log.info(\"Discover drive state {} from request {}.\", ret, request);\n return ret;\n } catch (Exception e) {\n log.info(\"Discover drive state from request {} failed.\", request, e);\n return null;\n }\n }",
"private void getDevices(){\n progress.setVisibility(View.VISIBLE);\n\n emptyMessage.setVisibility(View.GONE);\n getListView().setVisibility(View.GONE);\n\n // request device list from the server\n Model.PerformRESTCallTask gd = Model.asynchRequest(this,\n getString(R.string.rest_url) + \"?\"\n + \"authentification_key=\" + MainActivity.authentificationKey + \"&operation=\" + \"getdevices\",\n //Model.GET,\n \"getDevices\");\n tasks.put(\"getDevices\", gd);\n }",
"List<ResourceUsage> getLast7DaysMemoryInfo() {\n return daoInterface.getLast7DaysMemoryInfo();\n\n }",
"@ApiModelProperty(value = \"Statistics of the campaign on the basis of desktop devices\")\n public Map<String, GetDeviceBrowserStats> getDesktop() {\n return desktop;\n }",
"java.util.List<java.lang.Integer> getStateValuesList();",
"public List<ProductModel> getAllDevices() {\n\t\tSystem.out.println(\"\\nNetworkDevServ-getAllDev()\");\r\n\t\treturn deviceData.getAllDevices();\r\n\t}",
"public String getIssuedDeviceStateInstanceStatus() {\n return issuedDeviceStateInstanceStatus;\n }",
"private void getTouchCount() {\n touchCountViewModel.getTouchCountPostData().observe(this, result -> {\n if (result != null) {\n if (result.status == Status.SUCCESS) {\n if (ItemFragment.this.getActivity() != null) {\n Utils.psLog(result.status.toString());\n }\n\n } else if (result.status == Status.ERROR) {\n if (ItemFragment.this.getActivity() != null) {\n Utils.psLog(result.status.toString());\n }\n }\n }\n });\n }",
"@SuppressWarnings(\"unchecked\")\n public <T> List<T> list() {\n return (List<T>) journal\n .retrieve(BarbelQueries.all(id), queryOptions(orderBy(ascending(BarbelQueries.EFFECTIVE_FROM))))\n .stream().map(d -> processingState.expose(context, (Bitemporal) d)).collect(Collectors.toList());\n }",
"public int getState() {\n\treturn APPStates.CONTROLLER_CONNECTED_BS;\n}",
"@Override\r\n\tpublic String list() {\n\t\tList<HeadLine> dataList=new ArrayList<HeadLine>();\r\n\t\tPagerItem pagerItem=new PagerItem();\r\n\t\tpagerItem.parsePageSize(pageSize);\r\n\t\tpagerItem.parsePageNum(pageNum);\r\n\t\t\r\n\t\tLong count=headLineService.count();\r\n\t\tpagerItem.changeRowCount(count);\r\n\t\t\r\n\t\tdataList=headLineService.pager(pagerItem.getPageNum(), pagerItem.getPageSize());\r\n\t\tpagerItem.changeUrl(SysFun.generalUrl(requestURI, queryString));\r\n\t\t\r\n\t\trequest.put(\"DataList\", dataList);\r\n\t\trequest.put(\"pagerItem\", pagerItem);\r\n\t\t\r\n\t\t\r\n\t\treturn \"list\";\r\n\t}",
"@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedIterable<DeviceTag> getAllDeviceTags() {\n return this.serviceClient.getAllDeviceTags();\n }"
]
| [
"0.70607716",
"0.60121596",
"0.5517222",
"0.5498726",
"0.54802305",
"0.53342175",
"0.53286576",
"0.53270227",
"0.51817787",
"0.5109856",
"0.5073831",
"0.506249",
"0.5056763",
"0.49703187",
"0.49655145",
"0.4951488",
"0.49435148",
"0.49364278",
"0.48813462",
"0.48803547",
"0.48757797",
"0.4872431",
"0.4871486",
"0.48564368",
"0.48200652",
"0.4816309",
"0.48010024",
"0.47872844",
"0.47759265",
"0.47657722",
"0.4764495",
"0.47627386",
"0.47443753",
"0.47421944",
"0.47404906",
"0.47292992",
"0.47180223",
"0.46932828",
"0.4682107",
"0.46775988",
"0.4669232",
"0.46597484",
"0.46525767",
"0.46371278",
"0.46148413",
"0.46129975",
"0.45944172",
"0.45886385",
"0.4580869",
"0.45763266",
"0.45756245",
"0.45556563",
"0.45518503",
"0.4550909",
"0.45475492",
"0.45395622",
"0.45205572",
"0.45175627",
"0.4507351",
"0.45032233",
"0.45007437",
"0.44924456",
"0.4489157",
"0.44849446",
"0.4483532",
"0.4478582",
"0.44754207",
"0.4472919",
"0.4458182",
"0.4453552",
"0.44507888",
"0.44453734",
"0.4443401",
"0.4434992",
"0.44303384",
"0.44244498",
"0.44227523",
"0.44217014",
"0.44181022",
"0.4417939",
"0.44059348",
"0.44056484",
"0.44047987",
"0.44034195",
"0.43994364",
"0.43958914",
"0.43955672",
"0.43897685",
"0.43890467",
"0.43885827",
"0.4386158",
"0.4385653",
"0.43849766",
"0.43848157",
"0.4384538",
"0.43831727",
"0.43753013",
"0.43703184",
"0.43703032",
"0.43675694"
]
| 0.73560774 | 0 |
Creates the collection page for DeviceHealthScriptDeviceState | public DeviceHealthScriptDeviceStateCollectionPage(@Nonnull final java.util.List<DeviceHealthScriptDeviceState> pageContents, @Nullable final DeviceHealthScriptDeviceStateCollectionRequestBuilder nextRequestBuilder) {
super(pageContents, nextRequestBuilder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DeviceHealthScriptDeviceStateCollectionPage(@Nonnull final DeviceHealthScriptDeviceStateCollectionResponse response, @Nonnull final DeviceHealthScriptDeviceStateCollectionRequestBuilder builder) {\n super(response, builder);\n }",
"DeviceState createDeviceState();",
"List<? extends IDeviceState> getDeviceStatesForDevice(UUID deviceId) throws SiteWhereException;",
"public void populateVitals() {\n try {\n Statement stmt = con.createStatement();\n\n ResultSet rs = stmt.executeQuery(\"select * from device\");\n while (rs.next()) {\n\n String guid = rs.getString(\"DeviceGUID\");\n int deviceId = rs.getInt(\"DeviceID\");\n int deviceTypeId = rs.getInt(\"DeviceTypeID\");\n int locationId = rs.getInt(\"LocationID\");\n float deviceProblem = rs.getFloat(\"ProblemPercentage\");\n\n String dateService = rs.getString(\"DateOfInitialService\");\n\n Device device = new Device();\n device.setDateOfInitialService(dateService);\n device.setDeviceGUID(guid);\n device.setDeviceID(deviceId);\n device.setDeviceTypeID(deviceTypeId);\n device.setLocationID(locationId);\n device.setProblemPercentage(deviceProblem);\n\n deviceList.add(device);\n\n }\n } catch (SQLException e) {\n log.error(\"Error populating devices\", e);\n }\n\n }",
"IDeviceState getDeviceState(UUID id) throws SiteWhereException;",
"public interface IDeviceStateManagement extends ITenantEngineLifecycleComponent {\n\n /**\n * Create device state.\n * \n * @param request\n * @return\n * @throws SiteWhereException\n */\n IDeviceState createDeviceState(IDeviceStateCreateRequest request) throws SiteWhereException;\n\n /**\n * Get device state by unique id.\n * \n * @param id\n * @return\n * @throws SiteWhereException\n */\n IDeviceState getDeviceState(UUID id) throws SiteWhereException;\n\n /**\n * Get device state based on device assignment.\n * \n * @param assignmentId\n * @return\n * @throws SiteWhereException\n */\n IDeviceState getDeviceStateByDeviceAssignment(UUID assignmentId) throws SiteWhereException;\n\n /**\n * Get list of device states (one per device assignment) for a device.\n * \n * @param deviceId\n * @return\n * @throws SiteWhereException\n */\n List<? extends IDeviceState> getDeviceStatesForDevice(UUID deviceId) throws SiteWhereException;\n\n /**\n * Search for device states that match the given criteria.\n * \n * @param criteria\n * @return\n * @throws SiteWhereException\n */\n ISearchResults<? extends IDeviceState> searchDeviceStates(IDeviceStateSearchCriteria criteria)\n\t throws SiteWhereException;\n\n /**\n * Update existing device state.\n * \n * @param id\n * @param request\n * @return\n * @throws SiteWhereException\n */\n IDeviceState updateDeviceState(UUID id, IDeviceStateCreateRequest request) throws SiteWhereException;\n\n /**\n * Merge one or more events into the device state.\n * \n * @param id\n * @param events\n * @return\n * @throws SiteWhereException\n */\n IDeviceState merge(UUID id, IDeviceStateEventMergeRequest events) throws SiteWhereException;\n\n /**\n * Delete existing device state.\n * \n * @param id\n * @return\n * @throws SiteWhereException\n */\n IDeviceState deleteDeviceState(UUID id) throws SiteWhereException;\n}",
"public List<PageState> getPageStates() {\r\n\t\treturn pageStateDao.findAll();\r\n\t}",
"IDeviceState getDeviceStateByDeviceAssignment(UUID assignmentId) throws SiteWhereException;",
"public DjDeploymentStateHistRecord() {\n super(DjDeploymentStateHist.DJ_DEPLOYMENT_STATE_HIST);\n }",
"public DeviceManagementScriptDeviceState get() throws ClientException {\n return send(HttpMethod.GET, null);\n }",
"protected void createVisualStates() {\r\n\t\tProbNode probNode = visualNode.getProbNode();\r\n\t\tVariable variable = probNode.getVariable();\r\n\t\tState[] states = variable.getStates();\r\n\t\tfor (int i=0; i<states.length; i++) {\r\n\t\t\tVisualState visualState = new VisualState(visualNode, i, states[i].getName());\r\n\t\t\tthis.visualStates.put(i, visualState);\r\n\t\t}\r\n\t}",
"@When(\"Hotels List page has finished loading\")\n public void listpage_i_am_on_list_page() {\n listPage = new HotelsListPage(driver);\n listPage.check_page_title();\n }",
"@GetMapping(\"/findAllState\")\n\tpublic ResponseEntity<List<State>> findAllState() {\n\t\tList<State> STATES = stateService.findAllState();\n\t\treturn new ResponseEntity<List<State>>(STATES, HttpStatus.OK);\n\t}",
"public List<HealthCheck> getChecksByState(String state);",
"public DeviceManagementScriptDeviceState post(final DeviceManagementScriptDeviceState newDeviceManagementScriptDeviceState) throws ClientException {\n return send(HttpMethod.POST, newDeviceManagementScriptDeviceState);\n }",
"ISearchResults<? extends IDeviceState> searchDeviceStates(IDeviceStateSearchCriteria criteria)\n\t throws SiteWhereException;",
"private void initData() {\r\n allElements = new Vector<PageElement>();\r\n\r\n String className = Utility.getDisplayName(queryResult.getOutputEntity());\r\n List<AttributeInterface> attributes = Utility.getAttributeList(queryResult);\r\n int attributeSize = attributes.size();\r\n //int attributeLimitInDescStr = (attributeSize < 10) ? attributeSize : 10;\r\n\r\n Map<String, List<IRecord>> allRecords = queryResult.getRecords();\r\n serviceURLComboContents.add(\" All service URLs \");\r\n for (String url : allRecords.keySet()) {\r\n\r\n List<IRecord> recordList = allRecords.get(url);\r\n \r\n StringBuilder urlNameSize = new StringBuilder( url );\r\n urlNameSize = new StringBuilder( urlNameSize.substring(urlNameSize.indexOf(\"//\")+2));\r\n urlNameSize = new StringBuilder(urlNameSize.substring(0,urlNameSize.indexOf(\"/\")));\r\n urlNameSize.append(\" ( \" + recordList.size() + \" )\");\r\n serviceURLComboContents.add(urlNameSize.toString());\r\n Vector<PageElement> elements = new Vector<PageElement>();\r\n for (IRecord record : recordList) {\r\n StringBuffer descBuffer = new StringBuffer();\r\n for (int i = 0; i < attributeSize; i++) {\r\n Object value = record.getValueForAttribute(attributes.get(i));\r\n if (value != null) {\r\n if (i != 0) {\r\n descBuffer.append(',');\r\n }\r\n descBuffer.append(value);\r\n }\r\n }\r\n String description = descBuffer.toString();\r\n // if (description.length() > 150) {\r\n // //150 is allowable chars at 1024 resolution\r\n // description = description.substring(0, 150);\r\n // //To avoid clipping of attribute value in-between\r\n // int index = description.lastIndexOf(\",\");\r\n // description = description.substring(0, index);\r\n // }\r\n PageElement element = new PageElementImpl();\r\n element.setDisplayName(className + \"_\" + record.getRecordId().getId());\r\n element.setDescription(description);\r\n\r\n DataRow dataRow = new DataRow(record, queryResult.getOutputEntity());\r\n dataRow.setParent(parentDataRow);\r\n dataRow.setAssociation(queryAssociation);\r\n\r\n Vector recordListUserObject = new Vector();\r\n recordListUserObject.add(dataRow);\r\n recordListUserObject.add(record);\r\n\r\n element.setUserObject(recordListUserObject);\r\n\r\n allElements.add(element);\r\n elements.add(element);\r\n }\r\n URLSToResultRowMap.put(urlNameSize.toString(), elements);\r\n }\r\n }",
"@Test\n\tpublic void TC630DaADL_05(){\n\t\tresult.addLog(\"ID : TC630DaADL_05 : Verify that the apps & devices table contains 'Company', 'Brand', 'Product Name', 'Type' and 'Published' columns.\");\n\t\t/*\n\t\t \t1. Navigate to DTS portal\n\t\t\t2. Log into DTS portal as a DTS user successfully\n\t\t\t3. Navigate to \"Apps & Devices\" page\n\t\t */\n\t\t// 3. Navigate to \"Apps & Devices\" page\n\t\thome.click(Xpath.LINK_APP_DEVICES);\n\t\t// VP: The TC630Da Apps & Devices List is displayed\n\t\tresult = home.existsElement(DeviceList.getListXpath());\n\t\tAssert.assertEquals(\"Pass\", result.getResult());\n\t\t/*\n\t\t * The 630Da Apps & Devices List is displayed and the apps & devices table contains \n\t\t * \"Company\", \"Brand\", \"Product Name\", \"Type\" and \"Published\" columns.\n\t\t */\n\t\tArrayList<String> list = home.getHeadColumByXpath(DeviceList.THEAD);\n\t\tAssert.assertTrue(DTSUtil.containsAll(list, DeviceList.theads));\n\t}",
"public HostComponentCollectionPage(@Nonnull final HostComponentCollectionResponse response, @Nonnull final HostComponentCollectionRequestBuilder builder) {\n super(response, builder);\n }",
"private void createVisualStates(int numValues) {\r\n\t\tProbNode probNode = visualNode.getProbNode();\r\n\t\tVariable variable = probNode.getVariable();\r\n\t\tState[] states = variable.getStates();\r\n\t\tfor (int i=0; i<states.length; i++) {\r\n\t\t\tVisualState visualState =\r\n\t\t\t\t\tnew VisualState(visualNode, i, states[i].getName(), numValues);\r\n\t\t\tthis.visualStates.put(i, visualState);\r\n\t\t}\r\n\t}",
"public PageVisits() {\n LOG.info(\"=========================================\");\n LOG.info(\"Page Visit Counter is being created\");\n LOG.info(\"=========================================\");\n }",
"private void computeHSPhase(int i) {\n\t\t\n\t\tHostService hs = new HostService(this.myConnection,this.shareVariable,this.vList);\n\t\tint hostId;\n\t\tint serviceId;\n\t\tString hostServiceSource;\n\t\tboolean isDowntime;\n\t\tboolean previousState;\n\t\tboolean previousDowntime = false;\n\t\tint hostStatusStateFlag;\n\t\t//0 if previousState is not Outage\n\t\t//1 if previousState outage does not inherit from Hoststatus\n\t\t//2 if previousState outage inherit from Hoststatus\n\t\tint previousHoststatusStateFlag;\n\t\t//0 if previous downtime false and previous host service downtime bit = 0\n\t\t//1 if previous downtime true and previous host service downtime bit = 0\n\t\t//2 if previous downtime true and previous host service downtime bit = 1\n\t\tint previousDowntimeHostAndHostService;\n\t\t//Value of previous outage minute last bit before apply hoststatus mask\n\t\tint previousHSOutageBit =0;\n\t\t//Value of previous downtime minute last bit before apply hoststatus mask\n\t\tint previousHSDowntimeBit = 0;\n\t\tint availability;\n\t\tint state = 0;\n\t\tboolean executeHSStateLookup;\n\t\tboolean executeHSDowntimeLookup;\n\t\tint validatorId;\n\t\tint validatorType;\n\t\t\n\t\tfor(int j = 0; j < this.cPlanList.get(i).size(); j++)\n\t\t{\n\t\t\tvalidatorId = this.cPlanList.get(i).get(j);\n\t\t\t/**validatorType = -1 if validator is hostservice*/\n\t\t\tvalidatorType = this.vList.getHashMapValidator().get(validatorId).getIdApplication();\n\t\t\t\n\t\t\t//If validator is host service\n\t\t\tif(validatorType == -1) {\n\t\t\t hs = new HostService(this.myConnection,this.shareVariable,this.vList);\n\t\t\t\thostServiceSource = this.vList.getHashMapValidator().get(validatorId).getSource();\n\t\t\t\thostId = this.vList.getHashMapValidator().get(validatorId).getIdHost();\n\t\t\t\tserviceId = this.vList.getHashMapValidator().get(validatorId).getIdService();\n\t\t\t\tisDowntime = false;\t\n\t\t\t\thostStatusStateFlag = 0;\n\t\t\t\t\n\t\t\t\tpreviousHoststatusStateFlag = this.myConnection.getHSPreviousState(hostId,serviceId);\n\t\t\t\t\n\t\t\t\tif(previousHoststatusStateFlag != 0)\n\t\t\t\t\tthis.myConnection.getHSPreviousInternOutageEventNum(hostId, serviceId);\n\t\t\t\telse this.shareVariable.setInternOutageEventId(this.shareVariable.getEpochBegin());\n\t\t\t\t\n\t\t\t\tif(previousHoststatusStateFlag == 0) {\n\t\t\t\t\tpreviousState = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpreviousState = false;\n\t\t\t\t\tif(previousHoststatusStateFlag == 2) {\n\t\t\t\t\t\tpreviousHoststatusStateFlag = 1;\n\t\t\t\t\t\tpreviousHSOutageBit=0;\n\t\t\t\t\t}\n\t\t\t\t\telse if(previousHoststatusStateFlag == 1) {\n\t\t\t\t\t\tpreviousHoststatusStateFlag = 1;\n\t\t\t\t\t\tpreviousHSOutageBit=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpreviousDowntimeHostAndHostService = this.myConnection.getHSPreviousDowntime(hostId,serviceId);\n\t\t\t\tif(previousDowntimeHostAndHostService == 2) {\n\t\t\t\t\tpreviousDowntime = true;\n\t\t\t\t\tpreviousHSDowntimeBit = 1;\n\t\t\t\t}\n\t\t\t\telse if (previousDowntimeHostAndHostService == 1)\n\t\t\t\t{\n\t\t\t\t\tpreviousDowntime = true;\n\t\t\t\t\tpreviousHSDowntimeBit = 0;\n\t\t\t\t}\n\t\t\t\telse if (previousDowntimeHostAndHostService == 0)\n\t\t\t\t{\n\t\t\t\t\tpreviousDowntime = false;\n\t\t\t\t\tpreviousHSDowntimeBit = 0;\n\t\t\t\t}\n\t\t\t\tif(previousDowntime)\n\t\t\t\t\tthis.myConnection.getHSPreviousInternDowntimeEnventNum(hostId, serviceId);\n\t\t\t\telse this.shareVariable.setInternDowntimeEventId(this.shareVariable.getEpochEnd());\n\t\t\t\tavailability = 0;\n\t\t\t\tstate = 1;\n\t\t\t\t\n\t\t\t\ths.initializeDateMinuteStateArray();\n\t\t\t\texecuteHSStateLookup = this.myConnection.testHSOutage(hostId,serviceId,hs,previousState);\n\t\t\t\texecuteHSDowntimeLookup = this.myConnection.testHSDowntime(hostId,serviceId,hs);\n\t\t\t\t\n\t\t\t\t//warning\n\t\t\t\t/*if(hostId == 21 && serviceId == 46 and )\n\t\t\t\t\tSystem.out.print(\"\");*/\n\t\t\t\t\t\n\t\t\t\tint k = this.shareVariable.getEpochBegin();\n\t\t\t\t//Compute for each minute\n\t\t\t\t\n\t\t\t\tif((!previousState || executeHSStateLookup) && (previousDowntime || executeHSDowntimeLookup)) {\n\t\t\t\t\t\n\t\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(true);\n\t\t\t\t\t//initialisation de l'objet hs\n\t\t\t\t\ths.hostServiceInit(validatorId,hostServiceSource,hostId,serviceId,isDowntime,previousState,previousDowntime, availability, state, hostStatusStateFlag, previousHoststatusStateFlag,previousHSDowntimeBit, previousHSOutageBit);\n\t\t\t\t\t\n\t\t\t\t\t//Créer table log temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogHSTable(hostId,serviceId);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//Créer table log downtime temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogDowntimeHSTable(hostId,serviceId);\n\t\t\t\t\t\n\t\t\t\t\ths.compute(this.shareVariable, 1);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"I finish host \" + hostId + \" service \" + serviceId +\" which had downtime and outage\");\n\t\t\t\t}\n\t\t\t\telse if(!(!previousState || executeHSStateLookup) && (previousDowntime || executeHSDowntimeLookup))\n\t\t\t\t{\n\t\t\t\t\t//System.out.println(\"Create tmp host service downtime table \" + hostId + \" service \" + serviceId +\" which had downtime and outage\");\n\t\t\t\t\t\n\t\t\t\t\t//If there are not Outage event for this HS, there will be no computation on linked application\n\t\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(false);\n\t\t\t\t\t//initialisation de l'objet hs\n\t\t\t\t\ths.hostServiceInit(validatorId,hostServiceSource,hostId,serviceId,isDowntime,previousState,previousDowntime, availability, state, hostStatusStateFlag, previousHoststatusStateFlag,previousHSDowntimeBit,previousHSOutageBit);\n\t\t\t\t\t\n\t\t\t\t\t//Créer table log downtime temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogDowntimeHSTable(hostId,serviceId);\n\t\t\t\t\t\n\t\t\t\t\ths.compute(this.shareVariable, 2);\n\t\t\t\t}\n\t\t\t\telse if((!previousState || executeHSStateLookup) && !(previousDowntime || executeHSDowntimeLookup))\n\t\t\t\t{\n\t\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(true);\n\t\t\t\t\t//initialisation de l'objet hs\n\t\t\t\t\ths.hostServiceInit(validatorId,hostServiceSource,hostId,serviceId,isDowntime,previousState,previousDowntime, availability, state, hostStatusStateFlag, previousHoststatusStateFlag,previousHSDowntimeBit,previousHSOutageBit);\n\t\t\t\t\t\n\t\t\t\t\t//Créer table log temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogHSTable(hostId,serviceId);\n\t\t\t\t\t\n\t\t\t\t\ths.compute(this.shareVariable, 3);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"I finish host \" + hostId + \" service \" + serviceId +\" which had no downtime but outage\");\n\t\t\t\t}\n\t\t\t\t//If there are not Outage event for this HS, there will be no computation on linked application\n\t\t\t\telse this.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(false);\n\t\t\t\t\n\t\t\t\t\t//System.out.println(\"I finish host \" + hostId + \" service \" + serviceId +\" which had no downtime and no outage\");\n\t\t\t\t\n\t\t\t\tthis.myConnection.dropDayLogHSTable();\n\t\t\t\tthis.myConnection.dropDayDowntimeLogHSTable();\n\t\t\t}\n\t\t\t// if validator is application\n\t\t\telse {\n\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).compute();\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic List<HouseState> queryAllHState() {\n\t\treturn adi.queryAllHState();\r\n\t}",
"public HomePageActions() {\n\t\tPageFactory.initElements(driver,HomePageObjects.class);\n\t}",
"@Override\n @RequiresPermissions(\"em.emtype.query\")\n public void index() {\n List<EmType> list = EmType.dao.list();\n \n setAttr(\"list\", JsonKit.toJson(list));\n render(\"equipment_type_list.jsp\");\n }",
"public void createTaskStateData() throws DataLayerException\r\n\t{\r\n\t\t// ---------------------------------------------------------------\r\n\t\t// Task States\r\n\t\t// ---------------------------------------------------------------\r\n\t\tState[] values = TaskState.State.values();\r\n\t\tfor (TaskState.State state : values)\r\n\t\t{\r\n\t\t\tTaskState taskState = createHelper.createTaskState(0);\r\n\t\t\ttaskState.setState(state);\r\n\t\t\ttaskStateDao.save(taskState);\r\n\r\n\t\t\tLOG.info(taskState.toString());\r\n\t\t}\r\n\t}",
"@ModelAttribute(\"states\")\n public List<State> getStates(){\n return stateService.listAll();\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tLog.i(TAG, \"onCreate\");\n\t\tDslrBrowserApplication.getInstance().setDeviceListInstance(this);\n\t\tlistAdapter = new DeviceAdapter(this, R.layout.devices_item);\n\n\t\tsetListAdapter(listAdapter);\n\n//\t\tgetApplicationContext().bindService(\n//\t\t\t\tnew Intent(this, AndroidContentManagerUpnpServiceImpl.class),\n//\t\t\t\tserviceConnection, Context.BIND_AUTO_CREATE);\n\n\t\tgetLayoutInflater().inflate(R.layout.devicelistempty,\n\t\t\t\t(ViewGroup) getListView().getParent(), true);\n\t\tView emptyView = findViewById(R.id.empty);\n\t\tImageButton searchButton = (ImageButton) findViewById(R.id.emptySearchButton1);\n\t\tsearchButton.setOnClickListener(new OnClickListener() {\n\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlaunchNewSearch();\n\t\t\t}\n\t\t});\n\t\t\n\t\tfindViewById(R.id.emptyShowCacheView).setVisibility(hasCachedContent()?View.VISIBLE:View.GONE);\n\t\tImageButton viewGallery = (ImageButton) findViewById(R.id.emptyDownloadedImagesButton1);\n\t\tviewGallery.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif ( hasCachedContent() )\n\t\t\t\t\tviewGallery();\n\t\t\t\t\telse\n\t\t\t\t\t\tToast.makeText(DeviceListActivity.this, \"No cached content\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t});\n\t\tssidText = (TextView) findViewById(R.id.emptyText3);\n\n\t\tgetListView().setEmptyView(emptyView);\n\n\t\tboolean refresh = DslrBrowserApplication.getInstance().isRefreshDeviceList();\n\t\tif ( refresh ) { \n\t\t\tinsertNewDevices();\n\t\t}\n\t\t\n\t}",
"String provisioningState();",
"public HealthModel() {\n healthMetrics = new ArrayList<HealthMetric>();\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n this.fetchHealthMetrics();\n }",
"@Override\n public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {\n textViewResult = view.findViewById(R.id.text_view_result);\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"https://api.covidtracking.com/\")\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n CovidApi covidApi = retrofit.create(CovidApi.class);\n\n Call<List<Case>> call = covidApi.getCase();\n\n call.enqueue(new Callback<List<Case>>() {\n @Override\n public void onResponse(Call<List<Case>> call, Response<List<Case>> response) {\n\n if (!response.isSuccessful()) {\n textViewResult.setText(\"Code: \" + response.code());\n return;\n }\n\n caseSet = response.body();\n\n\n\n ArrayList<String> stateNames = new ArrayList<>();\n for (Case cases : caseSet) {\n stateNames.add(cases.getState());\n }\n\n Spinner spinner = (Spinner) getView().findViewById(R.id.state_spinner);\n // Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(getContext(), android.R.layout.simple_spinner_dropdown_item, stateNames);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Apply the adapter to the spinner\n spinner.setAdapter(adapter);\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view,\n int position, long id) {\n\n String item = adapterView.getItemAtPosition(position).toString();\n if (item != null) {\n Toast.makeText(getContext(), item,\n Toast.LENGTH_SHORT).show();\n\n makeGraph(item, position);\n }\n\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n // TODO Auto-generated method stub\n\n }\n });\n\n\n\n\n\n int stateCount = 0;\n for (Case cases : caseSet) {\n\n //visitors.add(new BarEntry(1, 2));\n\n String content = \"\";\n\n content += \"State: \" + cases.getState() + \"\\n\";\n content += \"Positive: \" + cases.getPositive() + \"\\n\";\n content += \"Positive Increase: \" + cases.getPositiveIncrease() + \"\\n\";\n content += \"Probable: \" + cases.getProbableCases() + \"\\n\";\n content += \"Confirmed Deaths: \" + cases.getDeathConfirmed() + \"\\n\\n\";\n\n //textViewResult.append(content);\n stateCount++;\n\n }\n\n\n\n\n\n\n\n }\n\n @Override\n public void onFailure(Call<List<Case>> call, Throwable t) {\n textViewResult.setText(t.getMessage());\n }\n });\n\n\n\n\n\n\n\n\n\n\n\n //Spinner spinner = (Spinner) view.findViewById(R.id.state_spinner);\n\n /*\n if (stateNames.size() < 1) {\n\n Toast.makeText(getContext(), \"\" + stateNames.size(), Toast.LENGTH_SHORT).show();\n } */\n\n /*\n // Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_item, stateNames);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Apply the adapter to the spinner\n spinner.setAdapter(adapter);\n\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n // put code which recognize a selected element\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n */\n\n\n }",
"public HostStatus() {\n addressesChecker = (AddressesChecker)ServicesRegisterManager.platformWaitForService(Parameters.NETWORK_ADDRESSES);\n hostID = addressesChecker.getHostIdentifier();\n hostAddresses = addressesChecker.getAllAddresses();\n contextManager = (ContextManager)ServicesRegisterManager.platformWaitForService(Parameters.CONTEXT_MANAGER);\n cpuLoad = contextManager.getCpuLoad();\n memoryLoad = contextManager.getMemoryLoad();\n batteryLevel = contextManager.getBatteryLevel();\n numberOfThreads = contextManager.getNumberOfThreads();\n networkPFInputTraffic = contextManager.getPFInputTrafic();\n networkPFOutputTraffic = contextManager.getPFOutputTrafic();\n networkApplicationInputTraffic = contextManager.getApplicationInputTrafic();\n networkApplicationOutputTraffic = contextManager.getApplicationOutputTrafic();\n ContainersManager gestionnaireDeConteneurs = (ContainersManager)ServicesRegisterManager.platformWaitForService(Parameters.CONTAINERS_MANAGER);\n numberOfBCs = gestionnaireDeConteneurs.getComposants().getComponentsNumber();\n numberOfConnectors = gestionnaireDeConteneurs.getConnecteurs().getConnectorsNumber();\n numberOfConnectorsNetworkInputs = gestionnaireDeConteneurs.getConnecteurs().getNetworkInputConnectorsNumber();\n numberOfConnectorsNetworkOutputs = gestionnaireDeConteneurs.getConnecteurs().getNetworkOutputConnectorsNumber();\n }",
"IDeviceState updateDeviceState(UUID id, IDeviceStateCreateRequest request) throws SiteWhereException;",
"@POST\n public Response startStorageReport(){\n log.debug(\"Starting storage report\");\n\n try {\n String responseText = resource.startStorageReport();\n return responseOk(responseText);\n } catch (Exception e) {\n return responseBad(e);\n }\n }",
"@Override\n public void onResponse(Call<List<DeviceStateResponse>> call, Response<List<DeviceStateResponse>> response) {\n List<DeviceStateResponse> devices = response.body();\n callback.onDevicesLoaded(devices);\n }",
"private void initializeStorageProxies()\n {\n Vector deviceList = new Vector();\n nGetDevices(deviceList);\n int handle = 0;\n int status = 0;\n int deviceCount = deviceList.size();\n if (log.isDebugEnabled())\n {\n log.debug(\" Device List Count :\" + deviceCount);\n }\n for (int deviceListCount = 0; deviceListCount < deviceCount; deviceListCount++)\n {\n handle = ((Integer) deviceList.elementAt(deviceListCount)).intValue();\n status = nGetStatus(handle);\n StorageProxy storageProxy = createStorageProxy(handle, status);\n storageProxyHolder.put(new Integer(handle), storageProxy);\n }\n }",
"private void _createPageDef()\n {\n _pageDef = new DemoPageDef();\n _pageDef.setupAttributes();\n \n List<DemoPageDef.SavedSearchDef> searchDefList = _pageDef.setupSavedSearchDefList();\n \n // Mark the first sabved Search definition as the current\n _currentDescriptor = new DemoQueryDescriptor(searchDefList.get(0));\n for (DemoPageDef.SavedSearchDef searchDef: searchDefList)\n {\n DemoQueryDescriptor qd = new DemoQueryDescriptor(searchDef);\n _QDMap.put(searchDef.getName(), qd); \n if (_currentDescriptor == null)\n _currentDescriptor = qd;\n }\n\n _queryModel = new DemoQueryModel(_QDMap);\n \n }",
"public final com.francetelecom.admindm.model.Parameter createState()\n\t\t\tthrows Fault {\n\t\tcom.francetelecom.admindm.model.Parameter param;\n\t\tparam = data.createOrRetrieveParameter(basePath + \"State\");\n\t\tparam.setNotification(0);\n\t\tparam.setStorageMode(StorageMode.DM_ONLY);\n\t\tparam.setActiveNotificationDenied(true);\n\t\tparam.setType(ParameterType.STRING);\n\t\tparam.setValue(\"\");\n\t\tString[] values = { \"Running\", \"Sleeping\", \"Stopped\", \"Idle\",\n\t\t\t\t\"Uninterruptible\", \"Zombie\", };\n\t\tparam.addCheck(new CheckEnum(values));\n\t\tparam.setWritable(false);\n\t\treturn param;\n\t}",
"public List<?> getAllPatientState()\n {\n return _patient.getPatientStates();\n }",
"public static void createDeviceMap() {\n\t\ttry {\n\t\t\tSmapStreamList sat = new SmapStreamList();\n\t\t\tMap<String, SmapDevice> saMap = sat.convertToSADevices();\n\t\t\tFileWriter fw = new FileWriter(device_map_file);\t\t\t\n\t\t\tString json = sat.gson.toJson(saMap);\n\t\t\tfw.write(json);\n\t\t\tfw.close();\n\t\t\trenderText(json);\n\t\t} catch (Exception e) {\n\t\t\trenderText(e);\n\t\t}\n\t}",
"int getDeploymentStateValue();",
"public ServicePortalSurveyPage() {\n\t\tPageFactory.initElements(WebDriverUtils.webDriver, this);\n\t}",
"public Person[] getPatientsByStateOfHealth(int state) {\n int count = 0;\n for(int i = 0; i < listOfPatients.length; i++)\n {\n if(listOfPatients[i].getStateOfHealth() == state)\n count++;\n }\n \n if(count == 0)\n return null;\n\n int index = 0;\n Person[] patientsByStateOfHealth = new Person[count];\n for(int i = 0; i < listOfPatients.length; i++)\n {\n if(listOfPatients[i].getStateOfHealth() == state)\n patientsByStateOfHealth[index++] = listOfPatients[i];\n }\n\n return patientsByStateOfHealth;\n }",
"@Test\n\tpublic void TC630DaADL_01(){\n\t\tresult.addLog(\"ID : TC630DaADL_01 : Verify that the Apps & Devices page loads with 'All Companies', 'All Brands' and 'All Types' filter.\");\n\t\t/*\n\t\t \t1. Navigate to DTS portal\n\t\t\t2. Log into DTS portal as a DTS user successfully\n\t\t\t3. Navigate to \"Apps & Devices\" page\n\t\t */\n\t\t// 3. Navigate to \"Apps & Devices\" page\n\t\thome.click(Xpath.LINK_APP_DEVICES);\n\t\t/*\n\t\t * The Apps & Devices page is loaded and the \n\t\t * default \"Company\" filter is \"All Companies\", \n\t\t * default \"Brand\" filter is \"All Brands\" and \n\t\t * default \"Type\" filter is \"All Types\".\n\t\t */\n\t\t// default \"Company\" filter is \"All Companies\"\n\t\tString defautCompany = home.getItemSelected(DeviceList.COMPANY_LIST);\n\t\tAssert.assertEquals(defautCompany, DeviceList.COMPANY_DEFAULT_FILTER);\n\t\t// default \"Brand\" filter is \"All Brands\" and\n\t\tString defautBrand = home.getItemSelected(DeviceList.BRAND_LIST);\n\t\tAssert.assertEquals(defautBrand, DeviceList.BRAND_DEFAULT_FILTER);\n\t\t// default \"Type\" filter is \"All Types\".\n\t\tString defautType = home.getItemSelected(DeviceList.TYPE_LIST);\n\t\tAssert.assertEquals(defautType, DeviceList.TYPE_DEFAULT_FILTER);\n\t}",
"public void initElements() {\n\n emptyStateElement = driver.findElement(By.id(\"com.fiverr.fiverr:id/empty_state_title\"));\n postRequestButton = driver.findElement(By.id(\"com.fiverr.fiverr:id/empty_list_button\"));\n }",
"@RequestMapping(value = \"/manage.ems\", method = RequestMethod.GET)\r\n\tpublic String manageHVACDevices(\r\n\t\t\tModel model,\r\n\t\t\t@CookieValue(FacilityCookieHandler.selectedFacilityCookie) String cookie, @RequestParam(value = \"updateStatus\", required = false) String updateStatus) {\r\n\t\tFacilityCookieHandler cookieHandler = new FacilityCookieHandler(cookie);\r\n\t\tLong id = cookieHandler.getFacilityId();\r\n\t\tmodel.addAttribute(\"updateStatus\", updateStatus);\t\r\n\t\tswitch (cookieHandler.getFaciltiyType()) {\r\n\t\tcase COMPANY: {\r\n\t\t\tmodel.addAttribute(\"page\", \"company\");\r\n\t\t\tmodel.addAttribute(\"hvacDevices\", hvacDevicesManager.loadHVACDevicesByFacilityId(\"company\", id));\r\n\t\t\tmodel.addAttribute(\"mode\", \"admin\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tcase CAMPUS: {\r\n\t\t\tmodel.addAttribute(\"page\", \"campus\");\r\n\t\t\tmodel.addAttribute(\"hvacDevices\", hvacDevicesManager.loadHVACDevicesByFacilityId(\"campus\", id));\r\n\t\t\tmodel.addAttribute(\"mode\", \"admin\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tcase BUILDING: {\r\n\t\t\tmodel.addAttribute(\"page\", \"building\");\r\n\t\t\tmodel.addAttribute(\"hvacDevices\", hvacDevicesManager.loadHVACDevicesByFacilityId(\"building\", id));\r\n\t\t\tmodel.addAttribute(\"mode\", \"admin\");\r\n\t\t\tbreak;\r\n\t\t}\r\n case FLOOR: {\r\n model.addAttribute(\"page\", \"floor\");\r\n model.addAttribute(\"floorId\", id);\r\n model.addAttribute(\"hvacDevices\", hvacDevicesManager.loadHVACDevicesByFacilityId(\"floor\", id));\r\n model.addAttribute(\"mode\", \"admin\");\r\n break;\r\n }\r\n\t\tdefault: {\r\n\t\t\tmodel.addAttribute(\"page\", \"area\");\r\n \t\tmodel.addAttribute(\"hvacDevices\", hvacDevicesManager.loadHVACDevicesByFacilityId(\"area\", id));\r\n\t\t\tmodel.addAttribute(\"mode\", \"admin\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t}\r\n\r\n return \"devices/hvac/list\";\r\n\t}",
"public ManagementConditionStatementCollectionPage(final ManagementConditionStatementCollectionResponse response, final IManagementConditionStatementCollectionRequestBuilder builder) {\n super(response.value, builder, response.additionalDataManager());\n }",
"public boolean defineSetupPage_state() {\r\n\t\treturn IsElementVisibleStatus(DefineSetupPageName);\r\n\t}",
"public Collection<ModuleStateData> getStateData()\r\n {\r\n return myStateData;\r\n }",
"public HomePage(int[] StateValues, String email) {\n initComponents();\n this.BatSystem.setState(StateValues[0]);\n this.Battery1.setState(StateValues[1]);\n this.Battery2.setState(StateValues[2]);\n this.Battery3.setState(StateValues[3]);\n this.Battery4.setState(StateValues[4]);\n this.email = email;\n\n if (this.Battery1.getState() == 0 || this.Battery2.getState() == 0) {\n this.GreenSub.setBackground(Color.green);\n this.GreenSub.setVisible(true);\n this.GreenSubSys.setBackground(Color.green);\n this.GreenSubSys.setVisible(true);\n }\n \n else if (this.Battery1.getState() == 2 || this.Battery2.getState() == 2) {\n this.GreenSub.setBackground(Color.yellow);\n this.GreenSubSys.setBackground(Color.yellow);\n this.GreenSub.setVisible(true);\n this.GreenSubSys.setVisible(true);\n }\n \n else {\n this.GreenSub.setBackground(Color.red);\n this.GreenSubSys.setBackground(Color.red);\n this.GreenSub.setVisible(true);\n this.GreenSubSys.setVisible(true);\n }\n \n \n if (this.Battery1.getState() == 0) {\n this.GreenSubHz2.setVisible(true);\n }\n else if (this.Battery1.getState() == 1) {\n this.GreenSubHz2.setBackground(Color.red);\n }\n else if (this.Battery1.getState() == 2) {\n this.GreenSubHz2.setBackground(Color.yellow);\n }\n \n \n if (this.Battery2.getState() == 0) {\n this.GreenSubHz.setVisible(true);\n }\n else if (this.Battery2.getState() == 1) {\n this.GreenSubHz.setBackground(Color.red);\n }\n else if (this.Battery2.getState() == 2) {\n this.GreenSubHz.setBackground(Color.yellow);\n }\n \n if (this.Battery3.getState() == 0) {\n this.GreenB3.setVisible(true);\n }\n else if (this.Battery3.getState() == 1) {\n this.GreenB3.setBackground(Color.red);\n }\n else if (this.Battery3.getState() == 2) {\n this.GreenB3.setBackground(Color.yellow);\n }\n \n if (this.Battery4.getState() == 0) {\n this.GreenB4.setVisible(true);\n }\n else if (this.Battery4.getState() == 1) {\n this.GreenB4.setBackground(Color.red);\n }\n else if (this.Battery4.getState() == 2) {\n this.GreenB4.setBackground(Color.yellow);\n }\n \n if (this.Battery1.getState() == 0 || this.Battery2.getState() == 0 \n || this.Battery3.getState() == 0 || this.Battery4.getState() == 0) {\n this.GreenTop.setVisible(true);\n }\n \n else if (this.Battery1.getState() == 2 || this.Battery2.getState() == 2\n || this.Battery3.getState() == 2 || this.Battery4.getState() == 2) {\n this.GreenTop.setBackground(Color.yellow);\n }\n else {\n this.GreenTop.setBackground(Color.red);\n }\n }",
"public void transitionToStatsPage() throws RemoteException{\n removeAll();\n statsPanel = new StatsPanel(contr);\n add(statsPanel, \"span 1\");\n }",
"@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceStateChange(DeviceStateEvent event) {\n DeviceClient device = event.getDevice();\n DeviceState state = event.getState();\n Log.d(TAG, \"device : type : \" + device.getDeviceType() + \" guid : \" + device.getDeviceGuid());\n Log.d(TAG, \"device : name : \" + device.getDeviceName() + \" state: \" + state.intValue());\n\n mDeviceClient = device;\n String type = (DeviceType.isNfcScanner(device.getDeviceType()))? \"NFC\" : \"BARCODE\";\n TextView tv = findViewById(R.id.main_device_status);\n handleColor(tv, state.intValue());\n switch (state.intValue()) {\n case DeviceState.GONE:\n mDeviceClientList.remove(device);\n mAdapter.remove(device.getDeviceName() + \" \" + type);\n mAdapter.notifyDataSetChanged();\n if(!mAdapter.isEmpty()) {\n handleColor(tv, DeviceState.READY);\n }\n break;\n case DeviceState.READY:\n mDeviceClientList.add(device);\n mAdapter.add(device.getDeviceName() + \" \" + type);\n mAdapter.notifyDataSetChanged();\n\n Property property = Property.create(Property.UNIQUE_DEVICE_IDENTIFIER, device.getDeviceGuid());\n mDeviceManager.getProperty(property, propertyCallback);\n\n break;\n default:\n break;\n }\n\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllActiveDevicesFast\")\n List<JsonDevice> all();",
"ProvisioningState provisioningState();",
"ProvisioningState provisioningState();",
"ProvisioningState provisioningState();",
"IDeviceState deleteDeviceState(UUID id) throws SiteWhereException;",
"public HotelsPage() {\n PageFactory.initElements(driver, this);\n }",
"private void determineState() {\n if ( .66 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.HIGH ) {\n currentState = HealthState.HIGH;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"highHealth\" ) ) );\n }\n }\n } else if ( .33 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.MEDIUM ) {\n currentState = HealthState.MEDIUM;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"mediumHealth\" ) ) );\n }\n }\n } else if ( .0 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.LOW ) {\n currentState = HealthState.LOW;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"lowHealth\" ) ) );\n }\n }\n }\n }",
"@RequestMapping(method = RequestMethod.GET , value=\"/initial_sensorinfo\")\n public String initialSensorinfo() throws Exception {\n\tList<EnvironmentStatus> abcd = new ArrayList<>();\n\tPageable initialPage;\n\t\n\tif(environmentStatusPageRepository.count() >= 90){\n\t initialPage = (Pageable) PageRequest.of(0, 90, Sort.Direction.DESC, \"time\");\n\t //abcd = environmentStatusPageRepository.findTop90();\n\t \n\t}\n\telse{\n\t initialPage = (Pageable) PageRequest.of(0, (int) environmentStatusPageRepository.count(), Sort.Direction.DESC, \"time\");\n\t //abcd = environmentStatusPageRepository.findTop3();\n\t}\n\t\n\tPage<EnvironmentStatus> initialSensorInfo = environmentStatusPageRepository.findAll(initialPage);\n\t\n\tGson gson = new Gson();\n\tString initialSensorInfoString;\n\tinitialSensorInfoString = gson.toJson(initialSensorInfo.getContent());\n\t\n return initialSensorInfoString;\n }",
"public static List<HealthCheckVO> getSurveillerDetailsOfComponent(boolean isDummyHealth) {\n\t\tHashMap<Long,HealthCheckVO> healthCheckVOMap = new HashMap<Long,HealthCheckVO>();\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\t\t\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria healthCheckCriteria = session.createCriteria(HealthCheckEntity.class);\n\t\thealthCheckCriteria.add(Restrictions.eq(\"delInd\", 0));\n\t\tif(isDummyHealth){\n\t\t\thealthCheckCriteria.add(Restrictions.eq(\"healthCheckType.healthCheckTypeId\", HealthCheckType.DUMMY.getHealthCheckTypeId()));\n\t\t}else{\n\t\t\thealthCheckCriteria.add(Restrictions.ne(\"healthCheckType.healthCheckTypeId\", HealthCheckType.DUMMY.getHealthCheckTypeId()));\n\t\t}\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<HealthCheckEntity> checkEntities = healthCheckCriteria.list();\n\t\tfor(HealthCheckEntity entity : checkEntities) {\n\t\t\tHealthCheckVO hcVO = new HealthCheckVO();\n\t\t\thcVO.setHealthCheckId(entity.getHealthCheckId());\n\t\t\thcVO.setHealthCheckComponentId((long) entity.getComponent().getComponentId());\n\t\t\thcVO.setHealthCheckRegionId(entity.getRegion().getRegionId());\n\t\t\thcVO.setHealthCheckTypeClassName(entity.getHealthCheckType().getHealthCheckTypeClass());\n\t\t\thcVO.setHealthCheckTypeName(entity.getHealthCheckType().getHealthCheckTypeName());\n\t\t\thcVO.setHealthCheckRetryCurrentCount(entity.getFailedCount());\n\t\t\thcVO.setHealthCheckRetryMaxCount(entity.getMaxRetryCount());\n\t\t\tif(entity.getCurrentStatus() != null){\n\t\t\t\thcVO.setCurrentStatus(entity.getCurrentStatus().getStatusId());\n\t\t\t}\n\t\t\thcVO.setEnvironmentId(entity.getEnvironment().getEnvironmentId());\n\t\t\thcVO.setEnvironmentName(entity.getEnvironment().getEnvironmentName());\n\t\t\thcVO.setRegionName(entity.getRegion().getRegionName());\n\t\t\tComponentEntity component = entity.getComponent();\n\t\t\tint compTypeId = component.getComponentType().getComponentTypeId();\n\t\t\thcVO.setComponentType(ComponentType.INFRA.getComponentTypeId() == compTypeId ? ComponentType.INFRA: ComponentType.APP);\n\t\t\tComponentVO cVo = new ComponentVO();\n\t\t\tcVo.setComponentId(component.getComponentId());\n\t\t\tcVo.setComponentName(component.getComponentName());\n\t\t\tif(component.getParentComponent() != null) {\n\t\t\t\tcVo.setParentComponentId(component.getParentComponent().getComponentId());\n\t\t\t\tcVo.setParentComponentName(component.getParentComponent().getComponentName());\n\t\t\t}\n\t\t\thcVO.setComponent(cVo);\n\t\t\t\n if(entity.getHealthCheckParams() !=null && entity.getHealthCheckParams().size() > 0) {\n Map<String,String> paramDetails = new HashMap<String,String>();\n for(HealthCheckParamEntity hcp: entity.getHealthCheckParams()){\n paramDetails.put(hcp.getHealthCheckParamKey(), hcp.getHealthCheckParamVal());\n }\n hcVO.setParamDetails(paramDetails);\n\t\t\t}\n\t\t\thealthCheckVOMap.put(hcVO.getHealthCheckId(), hcVO);\n\t\t}\n\t\ttxn.commit();\n\t\treturn new ArrayList<HealthCheckVO>(healthCheckVOMap.values());\n\t}",
"protected static void createUrls(SessionState state)\n\t{\n\t\tSet alerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\tif(alerts == null)\n\t\t{\n\t\t\talerts = new HashSet();\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\t\t}\n\n\t\tMap current_stack_frame = peekAtStack(state);\n\n\t\tList new_items = (List) current_stack_frame.get(STATE_STACK_CREATE_ITEMS);\n\t\tInteger number = (Integer) current_stack_frame.get(STATE_STACK_CREATE_NUMBER);\n\t\tif(number == null)\n\t\t{\n\t\t\tnumber = (Integer) state.getAttribute(STATE_CREATE_NUMBER);\n\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_NUMBER, number);\n\t\t}\n\t\tif(number == null)\n\t\t{\n\t\t\tnumber = new Integer(1);\n\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_NUMBER, number);\n\t\t}\n\n\t\tString collectionId = (String) current_stack_frame.get(STATE_STACK_CREATE_COLLECTION_ID);\n\t\tif(collectionId == null || collectionId.trim().length() == 0)\n\t\t{\n\t\t\tcollectionId = (String) state.getAttribute(STATE_CREATE_COLLECTION_ID);\n\t\t\tif(collectionId == null || collectionId.trim().length() == 0)\n\t\t\t{\n\t\t\t\tcollectionId = ContentHostingService.getSiteCollection(ToolManager.getCurrentPlacement().getContext());\n\t\t\t}\n\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_COLLECTION_ID, collectionId);\n\t\t}\n\n\t\tint numberOfItems = 1;\n\t\tnumberOfItems = number.intValue();\n\n\t\touterloop: for(int i = 0; i < numberOfItems; i++)\n\t\t{\n\t\t\tEditItem item = (EditItem) new_items.get(i);\n\t\t\tif(item.isBlank())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tResourcePropertiesEdit resourceProperties = ContentHostingService.newResourceProperties ();\n\t\t\tresourceProperties.addProperty (ResourceProperties.PROP_DISPLAY_NAME, item.getName());\n\t\t\tresourceProperties.addProperty (ResourceProperties.PROP_DESCRIPTION, item.getDescription());\n\n\t\t\tresourceProperties.addProperty(ResourceProperties.PROP_IS_COLLECTION, Boolean.FALSE.toString());\n\t\t\tList metadataGroups = (List) state.getAttribute(STATE_METADATA_GROUPS);\n\t\t\tsaveMetadata(resourceProperties, metadataGroups, item);\n\n\t\t\tbyte[] newUrl = item.getFilename().getBytes();\n\t\t\tString name = Validator.escapeResourceName(item.getName());\n\n\t\t\tSortedSet groups = new TreeSet(item.getEntityGroupRefs());\n\t\t\tgroups.retainAll(item.getAllowedAddGroupRefs());\n\t\t\t\n\t\t\tboolean hidden = false;\n\n\t\t\tTime releaseDate = null;\n\t\t\tTime retractDate = null;\n\t\t\t\n\t\t\tif(ContentHostingService.isAvailabilityEnabled())\n\t\t\t{\n\t\t\t\thidden = item.isHidden();\n\t\t\t\t\n\t\t\t\tif(item.useReleaseDate())\n\t\t\t\t{\n\t\t\t\t\treleaseDate = item.getReleaseDate();\n\t\t\t\t}\n\t\t\t\tif(item.useRetractDate())\n\t\t\t\t{\n\t\t\t\t\tretractDate = item.getRetractDate();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tContentResource resource = ContentHostingService.addResource (name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcollectionId,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMAXIMUM_ATTEMPTS_FOR_UNIQUENESS,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titem.getMimeType(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewUrl,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tresourceProperties, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroups,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thidden,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treleaseDate,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tretractDate,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titem.getNotification());\n\n\t\t\t\titem.setAdded(true);\n\n\t\t\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\t\t\t\tif(preventPublicDisplay == null)\n\t\t\t\t{\n\t\t\t\t\tpreventPublicDisplay = Boolean.FALSE;\n\t\t\t\t\tstate.setAttribute(STATE_PREVENT_PUBLIC_DISPLAY, preventPublicDisplay);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!preventPublicDisplay.booleanValue() && item.isPubview())\n\t\t\t\t{\n\t\t\t\t\tContentHostingService.setPubView(resource.getId(), true);\n\t\t\t\t}\n\n\t\t\t\tString mode = (String) state.getAttribute(STATE_MODE);\n\t\t\t\tif(MODE_HELPER.equals(mode))\n\t\t\t\t{\n\t\t\t\t\tString helper_mode = (String) state.getAttribute(STATE_RESOURCES_HELPER_MODE);\n\t\t\t\t\tif(helper_mode != null && MODE_ATTACHMENT_NEW_ITEM.equals(helper_mode))\n\t\t\t\t\t{\n\t\t\t\t\t\t// add to the attachments vector\n\t\t\t\t\t\tList attachments = EntityManager.newReferenceList();\n\t\t\t\t\t\tReference ref = EntityManager.newReference(ContentHostingService.getReference(resource.getId()));\n\t\t\t\t\t\tattachments.add(ref);\n\t\t\t\t\t\tcleanupState(state);\n\t\t\t\t\t\tstate.setAttribute(STATE_ATTACHMENTS, attachments);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tObject attach_links = current_stack_frame.get(STATE_ATTACH_LINKS);\n\t\t\t\t\t\tif(attach_links == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tattach_links = state.getAttribute(STATE_ATTACH_LINKS);\n\t\t\t\t\t\t\tif(attach_links != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcurrent_stack_frame.put(STATE_ATTACH_LINKS, attach_links);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(attach_links == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tattachItem(resource.getId(), state);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tattachLink(resource.getId(), state);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tcatch(PermissionException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"notpermis12\"));\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(IdInvalidException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"title\") + \" \" + e.getMessage ());\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(IdLengthException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"toolong\") + \" \" + e.getMessage());\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(IdUniquenessException e)\n\t\t\t{\n\t\t\t\talerts.add(\"Could not add this item to this folder\");\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(InconsistentException e)\n\t\t\t{\n\t\t\t\talerts.add(RESOURCE_INVALID_TITLE_STRING);\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(OverQuotaException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"overquota\"));\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(ServerOverloadException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"failed\"));\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(RuntimeException e)\n\t\t\t{\n\t\t\t\tlogger.debug(\"ResourcesAction.createFiles ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\talerts.add(rb.getString(\"failed\"));\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t}\n\n\t\tSortedSet currentMap = (SortedSet) state.getAttribute(STATE_EXPANDED_COLLECTIONS);\n\t\tif(!currentMap.contains(collectionId))\n\t\t{\n\t\t\tcurrentMap.add (collectionId);\n\n\t\t\t// add this folder id into the set to be event-observed\n\t\t\taddObservingPattern(collectionId, state);\n\t\t}\n\t\tstate.setAttribute(STATE_EXPANDED_COLLECTIONS, currentMap);\n\n\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\n\t}",
"@Override\n\tpublic List<ProductState> getProductStates() {\n\t\tlogger.info(\"productStateServiceMong get all ProductState\");\n\t\treturn productStateDAO.getProductStates();\n\t}",
"private void buildUIElements() {\n uiCamera = new OrthographicCamera( Global.WINDOW_WIDTH, Global.WINDOW_HEIGHT );\n uiViewport = new ExtendViewport( Global.WINDOW_WIDTH, Global.WINDOW_HEIGHT, uiCamera );\n\n //Build the table.\n uiStage = new Stage( uiViewport );\n rootTable = new Table( VisUI.getSkin() );\n uiStage.addActor( rootTable );\n rootTable.setFillParent( true );\n rootTable.left().top();\n\n //Fill up the healthMeter is images to be used as healthBars.\n for ( int i = 0; i < 20; i++ ) {\n healthMeter.add( new Image( healthBars.findRegion( \"highHealth\" ) ) );\n }\n }",
"@Override\r\n\tpublic String list() {\n\t\tList<HeadLine> dataList=new ArrayList<HeadLine>();\r\n\t\tPagerItem pagerItem=new PagerItem();\r\n\t\tpagerItem.parsePageSize(pageSize);\r\n\t\tpagerItem.parsePageNum(pageNum);\r\n\t\t\r\n\t\tLong count=headLineService.count();\r\n\t\tpagerItem.changeRowCount(count);\r\n\t\t\r\n\t\tdataList=headLineService.pager(pagerItem.getPageNum(), pagerItem.getPageSize());\r\n\t\tpagerItem.changeUrl(SysFun.generalUrl(requestURI, queryString));\r\n\t\t\r\n\t\trequest.put(\"DataList\", dataList);\r\n\t\trequest.put(\"pagerItem\", pagerItem);\r\n\t\t\r\n\t\t\r\n\t\treturn \"list\";\r\n\t}",
"java.util.List<com.rpg.framework.database.Protocol.MonsterState> \n getDataList();",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getDeviceSensorOutputs/{device}\")\n List<JsonSensorOutput> byDevice(@PathParam(\"device\") int device);",
"private void cmdInfoState() throws NoSystemException {\n MSystem system = system();\n MModel model = system.model();\n MSystemState state = system.state();\n NumberFormat nf = NumberFormat.getInstance();\n\n System.out.println(\"State: \" + state.name());\n\n // generate report for objects\n Report report = new Report(3, \"$l : $r $r\");\n\n // header\n report.addRow();\n report.addCell(\"class\");\n report.addCell(\"#objects\");\n report.addCell(\"+ #objects in subclasses\");\n report.addRuler('-');\n\n // data\n long total = 0;\n int n;\n\n for (MClass cls : model.classes()) {\n report.addRow();\n String clsname = cls.name();\n if (cls.isAbstract())\n clsname = '(' + clsname + ')';\n report.addCell(clsname);\n n = state.objectsOfClass(cls).size();\n total += n;\n report.addCell(nf.format(n));\n n = state.objectsOfClassAndSubClasses(cls).size();\n report.addCell(nf.format(n));\n }\n\n // footer\n report.addRuler('-');\n report.addRow();\n report.addCell(\"total\");\n report.addCell(nf.format(total));\n report.addCell(\"\");\n\n // print report\n report.printOn(System.out);\n System.out.println();\n\n // generate report for links\n report = new Report(2, \"$l : $r\");\n\n // header\n report.addRow();\n report.addCell(\"association\");\n report.addCell(\"#links\");\n report.addRuler('-');\n\n // data\n total = 0;\n\n for (MAssociation assoc : model.associations()) {\n report.addRow();\n report.addCell(assoc.name());\n n = state.linksOfAssociation(assoc).size();\n report.addCell(nf.format(n));\n total += n;\n }\n\n // footer\n report.addRuler('-');\n report.addRow();\n report.addCell(\"total\");\n report.addCell(nf.format(total));\n\n // print report\n report.printOn(System.out);\n }",
"private void showServices()\n {\n // Remove all of the items from the listField.\n _treeField.deleteAll();\n \n // Get a copy of the ServiceRouting class.\n ServiceRouting serviceRouting = ServiceRouting.getInstance();\n \n // Add in our new items by trolling through the ServiceBook API.\n ServiceBook sb = ServiceBook.getSB();\n ServiceRecord[] records = sb.getRecords();\n \n if( records == null ) \n {\n return;\n }\n \n int rootNode = _treeField.addChildNode( 0, \"Service Records\" );\n \n int numRecords = records.length;\n \n for( int i = 0; i < numRecords; i++ ) \n {\n String name = records[i].getName();\n String description = records[i].getDescription();\n \n if( description == null || description.length() == 0 ) \n {\n description = \"No description available\" ;\n }\n \n String uid = records[i].getUid();\n boolean serialBypass = serviceRouting.isSerialBypassActive( uid );\n\n int newParentNode = _treeField.addChildNode( rootNode, name );\n _treeField.addChildNode( newParentNode, description );\n _treeField.addChildNode( newParentNode, uid );\n _treeField.addChildNode( newParentNode, serialBypass ? \"Serial Bypass: Connected\" : \"Serial Bypass: Disconnected\");\n \n // Perform the check for the Desktop SerialRecord.\n if( name != null && name.equals( \"Desktop\" )) \n {\n _desktopUID = uid;\n }\n }\n \n _treeField.setCurrentNode( rootNode ); // Set the root as the starting point.\n }",
"public StateVisualizer() {\r\n }",
"public PageList(){\n count = 0;\n capacity = 4;\n itemArray = new int[capacity];\n }",
"@RestAPI\n \t@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(value = {\"/api/states/\", \"/api/states\"}, method = RequestMethod.GET)\n \tpublic HttpEntity<String> getStates() {\n \t\tList<AgentInfo> agents = agentManagerService.getAllVisibleAgentInfoFromDB();\n \t\treturn toJsonHttpEntity(getAgentStatus(agents));\n \t}",
"public void showHouses() {\n System.out.println(\"-----Houses List-----\");\n System.out.println(\"No\\tOwner\\tPhone\\t\\tAddress\\t\\t\\t\\tRent\\tState\");\n houseService.listHouse();\n System.out.println(\"------List Done------\");\n }",
"public void setPowerState(Map<String,PowerState> devicesPowerState) throws NotExistingEntityException, FailedOperationException, MethodNotImplementedException;",
"public Hud(final SpriteBatch spriteBatch) {\n\n // create a new viewport and a fixed camera for the stage\n viewport = new FitViewport(1280, 720, new OrthographicCamera());\n viewport.update(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n // pass in the game spritebatch\n stage = new Stage(viewport, spriteBatch);\n // create a new table as a container to lay out the actors\n Table table = new Table();\n // pad the table to the top of screen\n table.top();\n // set the table same as the size of the stage\n table.setFillParent(true);\n // create teleport_menu (SelectBox<String>)actor\n teleportMenu = new Teleport_Menu();\n // create health bar (ProgressBar)actor\n healthBar = new HealthBar();\n // create a system_status_menu (Vertical Group) actor\n systemStatusMenu = new SystemStatusMenu();\n // create a arrested count header actor\n arrestedHeader = new ArrestedHeader();\n // create a setting menu\n settingsMenu = new SettingsMenu();\n // create and add a pause menu to the stage\n pauseMenu = new PauseMenu(settingsMenu);\n // create a system_status_menu instance\n systemStatusMenu = new SystemStatusMenu();\n // add teleport menu to the table\n table.add(teleportMenu).padLeft(20).width(Value.percentWidth(.2f, table));\n // add hp_text in front of bar, 20 is the space between hp text and teleport\n // menu\n table.add(healthBar.hpText).padLeft(20);\n // add healthBar to the table, 5 is the space between hp text and health bar\n table.add(healthBar).padLeft(5).width(Value.percentWidth(.2f, table));\n // add arrest header to the table\n table.add(arrestedHeader).padLeft(40).width(Value.percentWidth(.2f, table));\n\n // add table to the stage\n stage.addActor(table);\n // add system_status_menu to the stage\n stage.addActor(systemStatusMenu);\n stage.addActor(pauseMenu.pauseWindow());\n stage.addActor(settingsMenu.settingsWindow());\n\n }",
"public ModuleStateManagerState(Collection<ModuleStateData> stateData)\r\n {\r\n myStateData = stateData;\r\n }",
"private void createStressTestStatusTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column nodeId = new Column(\"NODE_ID\");\n nodeId.setMappedType(\"VARCHAR\");\n nodeId.setPrimaryKey(true);\n nodeId.setRequired(true);\n nodeId.setSize(\"50\");\n Column status = new Column(\"STATUS\");\n status.setMappedType(\"VARCHAR\");\n status.setSize(\"10\");\n status.setRequired(true);\n status.setDefaultValue(\"NEW\");\n Column startTime = new Column(\"START_TIME\");\n startTime.setMappedType(\"TIMESTAMP\");\n Column endTime = new Column(\"END_TIME\");\n endTime.setMappedType(\"TIMESTAMP\");\n\n Table table = new Table(STRESS_TEST_STATUS, runId, nodeId, status, startTime, endTime);\n\n engine.getDatabasePlatform().createTables(true, true, table);\n }",
"public UsState[] findAll() throws UsStateDaoException;",
"private void initData() {\n\t\tpages = new ArrayList<WallpaperPage>();\n\n\t}",
"public String getHomeState()\n {\n return homeState;\n}",
"public abstract String[] exportState();",
"private static List<State<StepStateful>> getStates() {\n List<State<StepStateful>> states = new LinkedList<>();\n states.add(s0);\n states.add(s1);\n states.add(s2);\n states.add(s3);\n states.add(s4);\n states.add(s5);\n states.add(s6);\n return states;\n }",
"public HostStatus(byte[] content) {\n addressesChecker = (AddressesChecker)ServicesRegisterManager.platformWaitForService(Parameters.NETWORK_ADDRESSES);\n contextManager = (ContextManager)ServicesRegisterManager.platformWaitForService(Parameters.CONTEXT_MANAGER);\n ByteArrayInputStream bis = new ByteArrayInputStream(content);\n try {\n ObjectInputStream ois = new ObjectInputStream(bis);\n hostID = (String)ois.readObject();\n int taille = ((Integer)ois.readObject()).intValue();\n hostAddresses = new Vector<NetworkAddress>();\n for (int i=0; i<taille; i++) hostAddresses.addElement(new NetworkAddress((String)ois.readObject()));\n cpuLoad = ((Integer)ois.readObject()).intValue();\n memoryLoad = ((Integer)ois.readObject()).intValue();\n batteryLevel = ((Integer)ois.readObject()).intValue();\n numberOfThreads = ((Integer)ois.readObject()).intValue();\n numberOfBCs = ((Integer)ois.readObject()).intValue();\n numberOfConnectors = ((Integer)ois.readObject()).intValue();\n numberOfConnectorsNetworkInputs = ((Integer)ois.readObject()).intValue();\n numberOfConnectorsNetworkOutputs = ((Integer)ois.readObject()).intValue();\n networkPFInputTraffic = ((Integer)ois.readObject()).intValue();\n networkPFOutputTraffic = ((Integer)ois.readObject()).intValue();\n networkApplicationInputTraffic = ((Integer)ois.readObject()).intValue();\n networkApplicationOutputTraffic = ((Integer)ois.readObject()).intValue();\n }\n catch (IOException ioe) {\n System.err.println(\"Error converting a received host state : IOError\");\n }\n catch (ClassNotFoundException ioe) {\n System.err.println(\"Error converting a received host state : class not found\");\n }\n }",
"public VCRStateAdapter() {}",
"private void initializePetHealthControllers() {\n trAddNewWeight = PetHealthControllersFactory.createTrAddNewWeight();\n trDeleteWeight = PetHealthControllersFactory.createTrDeleteWeight();\n trAddNewWashFrequency = PetHealthControllersFactory.createTrAddNewWashFrequency();\n trDeleteWashFrequency = PetHealthControllersFactory.createTrDeleteWashFrequency();\n trGetAllWeights = PetHealthControllersFactory.createTrGetAllWeights();\n }",
"public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}",
"public HwStatus() {\n \t\tsuper();\n \t\tthis.hwSig = 0;\n \t\tthis.microtickPeriod = 10000;\t// default\n \t\tthis.cf_version = \"\";\n \t}",
"Dashboard createDashboard();",
"public void logDeviceEnterpriseInfo() {\n Callback<OwnedState> callback = (result) -> {\n recordManagementHistograms(result);\n };\n\n getDeviceEnterpriseInfo(callback);\n }",
"@Test(groups = TestPriorityContants.HIGHEST, dataProvider = \"devices\")\n\tpublic void tc_ul_1070_layout_headerOnDevice(TestDevice device) throws IOException, InterruptedException {\n\t\tLoginPage loginPage = new LoginPage(this.getDriver(), baseURL);\n\t\tLandingPage landingPage = new LandingPage(this.getDriver(), baseURL);\n\n\t\tloginPage.Navigate();\n\t\tloginPage.inputLoginInfo(getUsername(),getPassword());\n\n\t\tlandingPage.Navigate();\n\t\t\n\t\tlandingPage.allTab().click();\n\t\tlandingPage.spanAvatar().click();\n\n\t\tcheckLayout(GalenFileContants.HEADER, device.getTags());\n\t}",
"public void createBidStateData() throws DataLayerException\r\n\t{\r\n\t\t// ---------------------------------------------------------------\r\n\t\t// Task States\r\n\t\t// ---------------------------------------------------------------\r\n\t\tfor (BidState.State state : BidState.State.values())\r\n\t\t{\r\n\t\t\tBidState bidState = createHelper.createBidState(0);\r\n\t\t\tbidState.setState(state);\r\n\t\t\tbidStateDao.save(bidState);\r\n\t\t}\r\n\t}",
"@GetMapping(\"/activity\")\n Stats all() {\n Stats stats = new Stats();\n log.info(\"getting daily activity by default\");\n List<Activity> allActivity = repository.findAll();\n log.info(\"allActivity: \" + allActivity);\n Collections.sort(allActivity);\n Map<String, Integer> stepsByCategory = new TreeMap<String, Integer>();\n for (Activity activity : allActivity) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(activity.getUntilTime());\n int day = cal.get(Calendar.DAY_OF_YEAR);\n int year = cal.get(Calendar.YEAR);\n String dayOfYear = DAY + day + OF_YEAR + year;\n Integer steps = stepsByCategory.get(dayOfYear);\n if (steps == null) {\n steps = activity.getSteps();\n } else {\n steps += activity.getSteps();\n }\n stepsByCategory.put(dayOfYear, steps);\n }\n stats.setCategory(StatsCategory.DAILY);\n List<Details> details = new ArrayList<Stats.Details>();\n if(stepsByCategory != null) {\n for (Entry entry : stepsByCategory.entrySet()) {\n Details stat = stats.new Details();\n stat.key = entry.getKey().toString();\n stat.steps = entry.getValue().toString();\n details.add(stat);\n }\n stats.setDetails(details);\n }\n //stats.setStepsByCategory(stepsByCategory);\n return stats;\n }",
"private void createFirstPage() {\n BooleanSupplier showWelcomePage = () -> !FirstRunStatus.shouldSkipWelcomePage();\n mPages.add(new FirstRunPage<>(SigninFirstRunFragment.class, showWelcomePage));\n mFreProgressStates.add(MobileFreProgress.WELCOME_SHOWN);\n mPagerAdapter = new FirstRunPagerAdapter(FirstRunActivity.this, mPages);\n mPager.setAdapter(mPagerAdapter);\n // Other pages will be created by createPostNativeAndPoliciesPageSequence() after\n // native and policy service have been initialized.\n }",
"private static void generateState() {\n byte[] array = new byte[7]; // length is bounded by 7\n new Random().nextBytes(array);\n STATE = new String(array, Charset.forName(\"UTF-8\"));\n }",
"void set_buttons(){\n\n int button_count = 5;\n\n button_data_set = new ArrayList(button_count);\n\n try {\n\n JSONObject btn1 = new JSONObject();\n btn1.put(\"title\", \"Button1\");\n button_data_set.add(btn1);\n\n JSONObject btn2 = new JSONObject();\n btn1.put(\"title\", \"Button2\");\n button_data_set.add(btn2);\n\n JSONObject btn3 = new JSONObject();\n btn1.put(\"title\", \"Button3\");\n button_data_set.add(btn3);\n\n JSONObject btn4 = new JSONObject();\n btn1.put(\"title\", \"Button4\");\n button_data_set.add(btn4);\n\n JSONObject btn5 = new JSONObject();\n btn1.put(\"title\", \"Button5\");\n button_data_set.add(btn5);\n\n }catch(Exception e){\n e.printStackTrace();\n }\n\n Common.ButtonsCount = button_count;\n }",
"@RequestMapping(value = \"/api/v1/device/query\", method = RequestMethod.POST, consumes = \"application/json\", produces = \"application/json\")\n\tpublic RestResponse list(@RequestBody DeviceRegistrationQuery query) {\n\t\tRestResponse response = new RestResponse();\n\n\t\ttry {\n\t\t\tAuthenticatedUser user = this.authenticate(query.getCredentials(), EnumRole.ROLE_USER);\n\n\t\t\tArrayList<Device> devices = deviceRepository.getUserDevices(user.getKey(), query);\n\n\t\t\tDeviceRegistrationQueryResult queryResponse = new DeviceRegistrationQueryResult();\n\t\t\tqueryResponse.setDevices(devices);\n\n\t\t\treturn queryResponse;\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(ex.getMessage(), ex);\n\n\t\t\tresponse.add(this.getError(ex));\n\t\t}\n\n\t\treturn response;\n\t}",
"public static Collection<TemplateStatus> values() {\n return values(TemplateStatus.class);\n }",
"@RequestMapping(value = \"/deploy/bladelogic/collect\", method = GET, produces = APPLICATION_JSON_VALUE)\n\tpublic List<Deployment> BladeLogicData() {\n\t\tList<Deployment> deploys = null;\n\t\tObjectMapper objectMapper = null;\n\t\tobjectMapper = new ObjectMapper();\n\t\tobjectMapper.configure(Feature.AUTO_CLOSE_SOURCE, true);\n\t\ttry {\n\t\t\tURL url = new URL(\"http://localhost:8083/collect\");\n\t\t\tDeployment[] temp = objectMapper.readValue(url, Deployment[].class);\n\t\t\tdeploys = Arrays.asList(temp);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getClass().getSimpleName());\n\t\t}\n\t\treturn deploys;\n\t}",
"public DeviceManagementScriptDeviceStateRequest(final String requestUrl, final IBaseClient client, final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {\n super(requestUrl, client, requestOptions, DeviceManagementScriptDeviceState.class);\n }",
"public void createCollections() {\n \n\t\t//Creating columns for the collection\n collectionToolName = new VBox();\n collectionPurchaseDate = new VBox();\n collectionReturnButtons = new VBox();\n \n //Creating columns for the owned tools section\n ownedToolName = new VBox();\n ownedPurchaseDate = new VBox();\n ownedLendable = new VBox();\n \n collectionList.getChildren().add(collectionToolName);\n collectionList.getChildren().add(new Separator());\n collectionList.getChildren().add(collectionPurchaseDate);\n collectionList.getChildren().add(new Separator());\n collectionList.getChildren().add(collectionReturnButtons);\n \n \n ownedList.getChildren().add(ownedToolName);\n ownedList.getChildren().add(new Separator());\n ownedList.getChildren().add(ownedPurchaseDate);\n ownedList.getChildren().add(new Separator());\n ownedList.getChildren().add(ownedLendable);\n \n\t}"
]
| [
"0.7230747",
"0.49293554",
"0.4878525",
"0.46710783",
"0.4656989",
"0.4654418",
"0.4634253",
"0.4493787",
"0.4488934",
"0.4472753",
"0.44329163",
"0.43181807",
"0.4302653",
"0.42896074",
"0.42768818",
"0.42576516",
"0.42530838",
"0.42280298",
"0.41934517",
"0.41917917",
"0.4163237",
"0.4145061",
"0.41437957",
"0.41236848",
"0.41167668",
"0.4113558",
"0.41000885",
"0.40909818",
"0.40819448",
"0.40676716",
"0.40673667",
"0.40583348",
"0.40487924",
"0.40358213",
"0.4032331",
"0.40253073",
"0.4018561",
"0.40158364",
"0.40073046",
"0.39973724",
"0.39899558",
"0.39798054",
"0.39785686",
"0.3977888",
"0.3962744",
"0.39391688",
"0.3933644",
"0.39274043",
"0.39226344",
"0.39178145",
"0.39107147",
"0.39085478",
"0.39028728",
"0.3896283",
"0.3896283",
"0.3896283",
"0.38897803",
"0.38862932",
"0.38756126",
"0.3875177",
"0.38750702",
"0.3872034",
"0.38692588",
"0.38636965",
"0.3861805",
"0.38553634",
"0.38551646",
"0.3853627",
"0.38436732",
"0.38371253",
"0.3833263",
"0.38313946",
"0.38247564",
"0.382135",
"0.37987974",
"0.3796117",
"0.37945116",
"0.37911123",
"0.37868193",
"0.37790257",
"0.3778059",
"0.3770015",
"0.3763108",
"0.37541115",
"0.37539977",
"0.37525883",
"0.37522843",
"0.37409434",
"0.37408343",
"0.37407243",
"0.37394622",
"0.3737365",
"0.3737074",
"0.3735045",
"0.3733761",
"0.37261742",
"0.3725326",
"0.37248716",
"0.37248123",
"0.3724487"
]
| 0.68372387 | 1 |
/llenar el adaptador con los datos del arreglo tipo JSON que regresa el servidor | @Override
protected void onPostExecute(JSONArray jsonArray) {
super.onPostExecute(jsonArray);
//consultar los datos de la respuesta del servidor qu evienen en la variable
//del parametro del metodo; el cual es del mismo tipo que el resultado del metodo
//doinbckgroun
//recorrer el jsonarray y consultar los nodos del json
for (int i=0;i<jsonArray.length();i++){
Usuario usuario=new Usuario();
try {
JSONObject jsonObject=jsonArray.getJSONObject(i);
//usuario.setId(jsonObject.getInt("id"));
usuario.setUser(jsonObject.getString("user"));
usuario.setPass(jsonObject.getString("pass"));
usuario.setName(jsonObject.getString("name"));
usuario.setPhone(jsonObject.getString("phone"));
usuario.setAddress(jsonObject.getString("address"));
usuario.setQuestion(jsonObject.getString("question"));
usuario.setAnswer(jsonObject.getString("answer"));
SharedPreferences preferences = getSharedPreferences("Usuario",
MODE_PRIVATE);
SharedPreferences.Editor editor = preferences.edit();
editor.putString("id", idFinal);
editor.putString("user", usuario.getUser());
editor.putString("pass", usuario.getPass());
editor.putString("name", usuario.getName());
editor.putString("phone", usuario.getPhone());
editor.putString("address", usuario.getAddress());
editor.putString("question", usuario.getQuestion());
editor.putString("answer",usuario.getAnswer());
editor.commit();
} catch (JSONException e) {
e.printStackTrace();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<EstadoCita> obtenerDatosJSON(String rta){\n Log.e(\"Agenda JSON\",rta);\n // La lista de generos a retornar\n List<EstadoCita> lista = new ArrayList<EstadoCita>();\n try{\n /**\n * accedemos al json como array, ya que estamos 100% seguros de que lo que devuelve es un array\n * y no un objeto.\n */\n JSONArray json = new JSONArray(rta);\n for (int i=0; i<json.length(); i++){\n JSONObject row = json.getJSONObject(i);\n EstadoCita g = new EstadoCita();\n g.setId(row.getInt(\"id\"));\n g.setEstado(row.getString(\"estado\"));\n // g.setMedico((Medico) row.get(\"medico\"));\n // g.setHora((Hora) row.get(\"hora\"));\n lista.add(g);\n\n\n }\n } catch (JSONException e){\n e.printStackTrace();\n }\n return lista;\n }",
"public static void main(String[] args) {\n Gson json = new Gson();\n RestPregunta client = new RestPregunta();\n ArrayList value = client.getPreguntasCuestionario(ArrayList.class, \"68\");\n for(Object ob: value){ \n System.out.println(ob);\n Pregunta pregunta = json.fromJson(ob.toString(), Pregunta.class);\n System.out.println(pregunta.getPregunta());\n }\n client.close();\n //Gson json = new Gson();\n RestPregunta restPregunta = new RestPregunta();\n ArrayList<Pregunta> lista = new ArrayList();\n ArrayList values = restPregunta.getPreguntasCuestionario(ArrayList.class,\"68\");\n for(Object pro: values){\n Pregunta pregunta = json.fromJson(pro.toString(), Pregunta.class);\n lista.add(new Pregunta(pregunta.getIdPregunta(), pregunta.getIdCuestionario(), pregunta.getPuntoAsignado(), pregunta.getPuntoObtenido(), pregunta.getPregunta())); \n }\n// Pregunta pregunta = client.getPregunta(Pregunta.class, \"1\");\n// System.out.println(pregunta);\n// System.out.println(pregunta.toString());\n \n// ArrayList value = client.getPreguntas(ArrayList.class);\n // ArrayList<Pregunta> list = new ArrayList();\n// System.out.println(value);\n \n //list.add(pregunta);\n \n //System.out.println(pregunta.getArchivoimg2());\n \n// Pregunta p = new Pregunta(1,14,400,300,\"5000?\",\"C:\\\\Users\\\\Matias\\\\Pictures\\\\Pictures\\\\Sample Pictures\\\\Desert.jpg\", inputStream,\" \");\n //Object ob = p;\n// client.addPregunta(p, Pregunta.class);\n// System.out.println(list);\n \n }",
"@GET\n @Path(\"/getAll\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getJson() {\n \n \ttry \n \t{\n \t\treturn Response.status(200).header(\"Access-Control-Allow-Origin\", \"*\").entity(servDoctores.getDoctores().toString()).build();\n \t} catch (Exception e) {\n\n \t\te.printStackTrace();\n \t\treturn Response.status(Response.Status.NO_CONTENT).build();\n \t}\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String obtener() {\n logger.debug(\"Obteniendo todos los equipos\");\n Set<Sala> salas= salaService.buscarTodasLasSalasSimples();\n logger.debug(\"Obtenidas.\");\n Genson genson = new Genson();\n String retorno = genson.serialize(salas);\n logger.debug(retorno);\n return retorno;\n }",
"public static void ObtenerDatosDetalleReg(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/DetalleReg\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public static void ObtenerDatosRecompensas(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n\n String url = \"http://161.35.14.188/Persuhabit/recompensas\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n String descrip = jsonObject.getString(\"descrip\");\n System.out.println(descrip);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"@GET\n @Produces(\"application/json\")\n public String getJson() {\n\n JSONObject rezultat = new JSONObject();\n\n List<Korisnici> korisnici = korisniciFacade.findAll();\n\n \n\n try {\n for (Korisnici k : korisnici) {\n if (k.getIdkorisnik() == Long.parseLong(id)) {\n\n SoapListaAdresa soapOdgovor = listaDodanihAdresaBesplatno(k.getKorisnickoime(), k.getLozinka());\n\n List<Adresa> adrese = soapOdgovor.getAdrese();\n \n JSONArray jsonPolje = new JSONArray();\n int brojac = 0;\n for (Adresa a : adrese) {\n JSONObject jsonAdresa = new JSONObject();\n jsonAdresa.put(\"idadresa\", a.getIdadresa());\n jsonAdresa.put(\"adresa\", a.getAdresa());\n jsonAdresa.put(\"lat\", a.getGeoloc().getLatitude());\n jsonAdresa.put(\"long\", a.getGeoloc().getLongitude());\n jsonPolje.put(brojac,jsonAdresa);\n brojac++;\n }\n rezultat.put(\"adrese\", jsonPolje);\n } \n }\n return rezultat.toString();\n } catch (JSONException ex) {\n Logger.getLogger(MeteoRESTResource.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }",
"@GET\n //@Path(\"/{usuario}-{clave}\")\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response ConsultaItemsWS(@QueryParam(\"tipo\") String tipo, \n @QueryParam(\"cod_int\") String codigoIterno,\n @QueryParam(\"cod_alt\") String codigoAlterno,\n @QueryParam(\"descripcion\") String Descripcion,\n @QueryParam(\"linea\") String Linea\n ){\n String datos =\"[]\";\n JSONObject json = new JSONObject();\n JSONArray itemSelectedJson = new JSONArray();\n datos=item.ConsultaItems(tipo, codigoIterno, codigoAlterno, Descripcion, Linea);\n \n JsonParser parser = new JsonParser();\n\n // Obtain Array\n JsonArray gsonArr = parser.parse(datos).getAsJsonArray();\n json = new JSONObject();\n \n /*json.put(\"data\", gsonArr);\n json.put(\"mensaje\", \"ok\");\n json.put(\"codigo_error\", 1);\n itemSelectedJson.add(json);*/\n String datosJSON=\"{ \\\"data\\\":\"+gsonArr+\",\\\"mensaje\\\":\\\"ok\\\",\\\"codigo_error\\\":1}\";\n \n System.out.println(\"datosJSON: \"+datosJSON);\n //return Response.ok(itemSelectedJson.toString()).build();\n return Response.ok(datosJSON).build();\n }",
"public static void ObtenerDatosGustoFrutas(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/GustoFrutas\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public static void ObtenerDatosGustoVerdura(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/GustoVerdura\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public static void ObtenerDatosRegistro(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/registro\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"@GET\r\n @Produces(\"application/json\")\r\n public String listCarro() throws Exception {\r\n List<CarroModel> lista;\r\n //CarroDao dao = new CarroDao();\r\n CarroDao dao = CarroDao.getInstance();\r\n List<model.CarroModel> carros = dao.getAll();\r\n //Converter para Gson\r\n Gson g = new Gson();\r\n return g.toJson(carros);\r\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String consultarSolicitudes()\n {\n Object objeto = sdao.consultaGeneral();\n return gson.toJson(objeto);\n }",
"@CrossOrigin\r\n @RequestMapping(value = \"/especialidad\", method = RequestMethod.GET, headers = {\"Accept=application/json\"})\r\n @ResponseBody\r\n String buscarTodos() throws Exception {\r\n String mensajito = \"nada\";\r\n ObjectMapper maper = new ObjectMapper();\r\n\r\n ArrayList<Especialidades> especialidad = new ArrayList<Especialidades>();\r\n especialidad = (ArrayList<Especialidades>) daoesp.findAll();\r\n //usamos del paquete fasterxml de json la clase objetMapper\r\n\r\n return maper.writeValueAsString(especialidad);\r\n\r\n }",
"public JSONArray connectWSPut_Get_Data(String url, JSONObject json, String jsonName) {\n\t\t\n\t\tJSONArray jarr = null;\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// cach khac de thay vao entity __________________________________\n\t\t\tStringEntity se = new StringEntity(json.toString(), \"UTF-8\");\n\t\t\tInputStreamEntity ise = new InputStreamEntity(new ByteArrayInputStream(json.toString().getBytes(\"UTF-8\")), -1);\n\t\t\t// ---------------------------------------------------------------------\n\t\t\tHttpParams httpParams = new BasicHttpParams();\n\t\t\tHttpConnectionParams.setConnectionTimeout(httpParams, TIMEOUT_MILLISEC);\n\t\t\tHttpConnectionParams.setSoTimeout(httpParams, TIMEOUT_MILLISEC);\n\t\t\t// -----------------------\n\t\t\tHttpClient client = new DefaultHttpClient(httpParams);\n\n\t\t\tHttpPost request = new HttpPost(url);\n\t\t\t\n\t\t\t// set POST request\n\t\t\trequest.setEntity(new ByteArrayEntity(json.toString().getBytes(\"UTF-8\")));\n\t\t\t\t\t\t\t\n\t\t\tLog.d(\"fuck\", \"fuck\");\t// oh, this so fun :>\n\t\t\t\n\t\t\t///??????????????????????????????\n\t\t\t// it use for debug?\n\t\t\trequest.setHeader(\"json\", json.toString());\n\t\t\tLog.e(\"fuck\", json.toString());\n\t\t\t\n\t\t\tHttpResponse response = client.execute(request);\n\t\t\tHttpEntity entity = response.getEntity();\n\n\t\t\tInputStream instream = entity.getContent();\n\t\t\t\n\t\t\t// test\n\t\t\t// no connect to server\n\t\t\t// set hardstring to result :>\n\t\t\t//String result = \"{\\\"voucher\\\":[{\\\"_id\\\":38,\\\"code_id\\\":\\\"BSM840-12\\\",\\\"product_name\\\":\\\"BSTONE 12\\\",\\\"group_id\\\":\\\"12.00R20\\\",\\\"type_id\\\":\\\"PR18\\\",\\\"note\\\":\\\"abc\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 4 2014 12:00AM\\\",\\\"update_date\\\":\\\"Apr 4 2014 12:00AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590100\\\"},{\\\"_id\\\":41,\\\"code_id\\\":\\\"BSM840-11\\\",\\\"product_name\\\":\\\"BSTONE 11\\\",\\\"group_id\\\":\\\"11.00R20\\\",\\\"type_id\\\":\\\"PR18\\\",\\\"note\\\":\\\"abc\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 4 2014 12:00AM\\\",\\\"update_date\\\":\\\"Apr 4 2014 12:00AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590101\\\"},{\\\"_id\\\":43,\\\"code_id\\\":\\\"5555\\\",\\\"product_name\\\":\\\"55555\\\",\\\"group_id\\\":\\\"12.00R20\\\",\\\"type_id\\\":\\\"PR16\\\",\\\"note\\\":\\\"555555\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 22 2014 12:00AM\\\",\\\"update_date\\\":\\\"Apr 22 2014 12:00AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590102\\\"},{\\\"_id\\\":44,\\\"code_id\\\":\\\"MVT101\\\",\\\"product_name\\\":\\\"BSBMW\\\",\\\"group_id\\\":\\\"12.00R20\\\",\\\"type_id\\\":\\\"PR20\\\",\\\"note\\\":null,\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 21 2014 4:52PM\\\",\\\"update_date\\\":\\\"Apr 21 2014 4:52PM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590103\\\"},{\\\"_id\\\":45,\\\"code_id\\\":\\\"LOPHONDA\\\",\\\"product_name\\\":\\\"CRB\\\",\\\"group_id\\\":\\\"11.00R18\\\",\\\"type_id\\\":\\\"PR18\\\",\\\"note\\\":null,\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 21 2014 4:55PM\\\",\\\"update_date\\\":\\\"Apr 21 2014 4:55PM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590104\\\"},{\\\"_id\\\":46,\\\"code_id\\\":\\\"MH01\\\",\\\"product_name\\\":\\\"CSTONE 22\\\",\\\"group_id\\\":\\\"11.00R18\\\",\\\"type_id\\\":\\\"PR18\\\",\\\"note\\\":\\\"fvssdsc\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 22 2014 8:49AM\\\",\\\"update_date\\\":\\\"Apr 22 2014 8:49AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590105\\\"},{\\\"_id\\\":47,\\\"code_id\\\":\\\"123\\\",\\\"product_name\\\":\\\"acb123\\\",\\\"group_id\\\":\\\"12.00R20\\\",\\\"type_id\\\":\\\"PR13\\\",\\\"note\\\":\\\"fdff\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 22 2014 10:04AM\\\",\\\"update_date\\\":\\\"Apr 22 2014 10:04AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590106\\\"},{\\\"_id\\\":48,\\\"code_id\\\":\\\"T555\\\",\\\"product_name\\\":\\\"555\\\",\\\"group_id\\\":\\\"thuoc ngoai\\\",\\\"type_id\\\":\\\"nhom ngoai\\\",\\\"note\\\":\\\"thuoc la\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"May 13 2014 12:00AM\\\",\\\"update_date\\\":\\\"May 13 2014 12:00AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\" \\\"}]}\";\n\t\t\t\n\t\t\t\n\t\t\tString result = ConfigurationWSRestClient.convertStreamToString(instream);\n\t\t\t\n\t\t\t//test\n\t\t\tLog.e(\"json string result\", result);\n\t\t\t//Log.e(\"jsonName\", jsonName);\n\t\t\t\n\t\t\t\n\t\t\t// decode string to jsonobject\n\t\t\tJSONObject jobj = new JSONObject(result);\n\t\t\tjarr = jobj.getJSONArray(jsonName);\n\n\t\t} catch (Exception t) { }\n\t\t\n\t\t\n\t\treturn jarr;\n\t}",
"private void loadDia() throws JSONException {\n\n\n String json = \"{\\n\" +\n \" \\\"mes\\\": 10,\\n\" +\n \" \\\"ano\\\": 2017,\\n\" +\n \" \\\"dias\\\":[\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":1,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"asd\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$4050,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdsaf\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$50,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"2a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 2,\\n\" +\n \" \\\"sinal\\\": 2,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"1b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":13,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 3,\\n\" +\n \" \\\"sinal\\\": 3,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"13a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 4,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"13b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":16,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 5,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"16a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":18,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 6,\\n\" +\n \" \\\"sinal\\\": 4,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 7,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 8,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2000,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \"}\";\n\n\n //Toast.makeText(getApplicationContext(), \"certo\",Toast.LENGTH_LONG).show();\n }",
"public JSONArray ObtenerTipoProducto()\r\n {\r\n JSONArray Tproductos = new JSONArray();\r\n JSONObject Tproducto = new JSONObject();\r\n \r\n try\r\n {\r\n this.cn = getConnection();\r\n this.st = this.cn.createStatement();\r\n String sql;\r\n sql = \"SELECT * FROM tipo_producto\";\r\n this.rs = this.st.executeQuery(sql);\r\n \r\n while(this.rs.next())\r\n {\r\n TipoProducto tp = new TipoProducto(rs.getString(\"cod_tipo_producto\"), rs.getString(\"nombre_tipo_producto\"));\r\n Tproducto = tp.getJSONObject();\r\n System.out.printf(Tproducto.toString());\r\n Tproductos.add(Tproducto);\r\n }\r\n \r\n this.desconectar();\r\n }\r\n \r\n catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n \r\n return(Tproductos);\r\n }",
"public static void ObtenerDatosUsuarios(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/usuarios\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public static void ObtenerDatosHistorial_Autoeficacia(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/HistorialAuto\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public static void ObtenerDatosMensajes_Persuasivos(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/MsgPersuasivo\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public void listarJsonbyMovimientos(HttpServletRequest request, HttpServletResponse response) throws Exception{\n String valorcriterio = request.getParameter(\"valorcriterio\");\n \n GestionBendiv gbenef = new GestionBendiv();\n BeneficiarioDiv benef_div = gbenef.obtenerGenerico(valorcriterio);\n //ArrayList beneficiario_div = new ArrayList();\n Integer id_bendiv = benef_div.getId_bendiv();\n //beneficiario_div.add(benef_div);\n \n GestionMov_diversos modelo=new GestionMov_diversos();\n ArrayList movimientos_div=modelo.obtenerMovimientosporID(id_bendiv);\n \n \n GsonBuilder builder=new GsonBuilder().setDateFormat(\"dd/MM/yyy\");\n Gson gson=builder.create();\n \n //response.addHeader(\"Access-Control-Allow-Origin\", \"http://localhost:4200\");\n response.setHeader(\"Access-Control-Allow-Origin\", \"*\");\n response.setHeader(\"Access-Control-Allow-Methods\", \"POST, GET\");\n response.setHeader(\"Access-Control-Max-Age\", \"3600\");\n response.setHeader(\"Access-Control-Allow-Headers\", \"Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n //response.getWriter().write(\"{\\\"mov_diversos\\\":\"+gson.toJson(movimientos_div)+\",\\\"beneficiario_div\\\":\"+gson.toJson(beneficiario_div)+\"}\");\n response.getWriter().write(\"{\\\"mov_diversos\\\":\"+gson.toJson(movimientos_div)+\"}\");\n }",
"public static ArrayList<Cliente> getJSONLista() throws IOException, ParseException{\n\t\turl = new URL(sitio+\"clientes/listar\");\n\t\tHttpURLConnection http = (HttpURLConnection)url.openConnection();\n\t\thttp.setRequestMethod(\"GET\");\n\t\thttp.setRequestProperty(\"Accept\", \"application/json\");\n\t\tInputStream respuesta = http.getInputStream();\n\t\tbyte[] inp = respuesta.readAllBytes();\n\t\tString json = \"\";\n\t\tfor (int i = 0; i<inp.length ; i++) {\n\t\t\tjson += (char)inp[i];\n\t\t}\n\t\tArrayList<Cliente> lista = new ArrayList<Cliente>();\n\t\tlista = parsingClientes(json);\n\t\thttp.disconnect();\n\t\treturn lista;\n\t}",
"@GET\n\t@Path(\"consultar/{titulo}\") //ruta -> metodo que al que llama\n\t@Produces(\"application/json\") \n\tpublic String buscarTitulo(@PathParam(\"titulo\") String titulo) {\n\t\tList<Libro> lista = negocio.consultarTitulo(titulo);\n\t\tJSONArray array = new JSONArray(lista);\n\t\treturn array.toString();\n\t}",
"public static void ObtenerCanjeFi(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/CanjeFi\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public static void ObtenerCuestionario_Nutricion(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/CuestionarioNutri\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"@Path(\"/list\")\n @GET\n @Produces({ MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML })\n public List<Food> getFoods_JSON() throws ClassNotFoundException {\n List<Food> listOfCountries=DBFood.listAllFoods();\t\n return listOfCountries;\n }",
"@Path(\"/productos\")\n @GET\n @Produces(MediaType.APPLICATION_JSON) //Por que una track si la aceptaba (ejemplo) pero un producto no?\n public String productos(){\n return test.getProductos().get(\"Leche\").toString();\n\n }",
"public static void ObtenerTutor(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/tutor\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"private void get_fastaid(){\n String ROOT_URL =\"http://projects.yogeemedia.com/preview/embassy\";\n\n //Creating a rest adapter\n RestAdapter adapter = new RestAdapter.Builder()\n .setEndpoint(ROOT_URL)\n .build();\n\n //Creating an object of our api interface\n Interface api = adapter.create(Interface.class);\n\n //Defining the method\n api.getfasttaid( new Callback<Response>() {\n @Override\n public void success(Response detailsResponse, Response response2) {\n\n String detailsString = getStringFromRetrofitResponse(detailsResponse);\n\n try {\n JSONObject object = new JSONObject(detailsString);\n\n Log.e(\"List\", String.valueOf(object.getJSONArray(\"contacts\")));\n\n writeToFile_fest(object);\n\n //In here you can check if the \"details\" key returns a JSONArray or a String\n\n } catch (JSONException e) {\n\n }\n\n }\n\n @Override\n public void failure(RetrofitError error) {\n Log.e(\"List\",error.toString());\n\n }});}",
"public static void ObtenerDatosHistorial_Nutricion(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/HistorialNutri\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public PersonajeVO getPersonaje(String url) {\n\t\tGson gson = new Gson();\n\t\tHttpClient httpClient = new DefaultHttpClient();\n\t\tPersonajeVO data = new PersonajeVO();\n\t\t java.lang.reflect.Type aType = new TypeToken<PersonajeVO>()\n\t\t{}.getType();\n\t\t gson = new Gson();\n\t\t httpClient = WebServiceUtils.getHttpClient();\n\t\t try {\n\t\t HttpResponse response = httpClient.execute(new HttpGet(url));\n\t\t HttpEntity entity = response.getEntity();\n\t\t Reader reader = new InputStreamReader(entity.getContent());\n\t\t data = gson.fromJson(reader, aType);\n\t\t } catch (Exception e) {\n\t\t Log.i(\"json array\",\"While getting server response server generate error. \");\n\t\t }\n\t\t return data;\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n GsonBuilder gBuilder = new GsonBuilder();\n Gson jObject = gBuilder.create();\n\n try {\n return jObject.toJson(dao.getAll());\n } catch (Exception e) {\n Resposta lResposta = new Resposta();\n\n lResposta.setMensagem(e.getMessage());\n lResposta.setSucesso(false);\n\n return jObject.toJson(lResposta);\n }\n }",
"public List<Coche> listar(){\n RestTemplate restTemplate = new RestTemplate();\n \n //Hacemos una peticion GET a la url y decimos que nos parsee el json a la un array de CochesarrayCoches\n //El metodo getForEntity hace la peticion a la URL y tambien le decimos a que clase me tiene que \n //convertir el json resultante\n //Con el siguiente metedo hacemos una peticion get a \"http://localhost:8080/CochesarrayCoches/\"\n ResponseEntity<Coche[]> response = restTemplate.getForEntity(URL_COCHES, Coche[].class);\n \n //Lo que tiene el body es un array de CochesarrayCoches, porque el\n //ResponseEntity es un array de CochesarrayCoches\n Coche[] arrayCoches = response.getBody();\n \n //Convertimos el array de CochesarrayCoches a una lista de CochesarrayCoches\n List<Coche> lista = Arrays.asList(arrayCoches); \n \n return lista;\n }",
"public void obtenerNoticiaDesdeJSON(Context unContext, ResultListener<News> listenerFromController) {\n ReadFromJSONFileAsync readFromJSONFile = new ReadFromJSONFileAsync(unContext, listenerFromController);\n readFromJSONFile.execute();\n\n }",
"public ArrayList<Person> getAllFromServer() throws IOException, JSONException {\n\t\tArrayList<Person> personsFromSrv = new ArrayList<Person>();\n\t\t\n\t\tURL url = new URL(\"https://jsonplaceholder.typicode.com/users\");\n\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\tInputStream is = conn.getInputStream();\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\n\t\tString line;\n\t\tStringBuilder jsonBuilder = new StringBuilder();\n\t\tJSONArray jsonArray = null;\n\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tjsonBuilder.append(line);\n\t\t}\n\t\tString json = jsonBuilder.toString();\n\t\tjson = json.replace(\"\\n\", \"\").replace(\"\\r\", \"\");\n\t\tSystem.out.println(json);\n\t\ttry {\n\t\t\tjsonArray = new JSONArray(json);\n\t\t} catch (JSONException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tfor (int i = 0; i < jsonArray.length(); i++) {\n\t\t\tJSONObject person = jsonArray.getJSONObject(i);\n\t\t\tPerson p = personMapper.convertFromJSONObjectToPersonObject(person);\n\t\t\tpersonsFromSrv.add(p);\n\t\t}\n\t\treturn personsFromSrv;\n\t}",
"public static String buscarTodosLosLibros() throws Exception{ //BUSCARtODOS no lleva argumentos\r\n //primero: nos conectamos a oracle con la clase conxion\r\n \r\n Connection con=Conexion.conectarse(\"system\",\"system\");\r\n //segundo: generamos un statemenr de sql con la conexion anterior\r\n Statement st=con.createStatement();\r\n //3: llevamos a cabo la consulta select \r\n ResultSet res=st.executeQuery(\"select * from persona\"); //reset arreglo enmutado de java estructura de datos\r\n System.out.println(\"depues del select\");\r\n int indice=0;\r\n ArrayList<persona> personas=new ArrayList<persona>();\r\n while(res.next()){ //del primero hasta el ultimo prod que vea SI PONGO SECUENCIA NO ENTRA AL WHILE\r\n Integer id= res.getInt(1); \r\n String nombre=res.getString(2);\r\n String empresa=res.getString(3);\r\n Integer edad=res.getInt(4);\r\n String telefono=res.getString(5);\r\n \r\n ///llenamos el arrayList en cada vuelta\r\n personas.add(new persona(id,nombre,empresa,edad,telefono));\r\n \r\n System.out.println(\"estoy en el array list despues del select\");\r\n }\r\n \r\n //el paso final, transformamos a objeto json con jackson\r\n ObjectMapper maper=new ObjectMapper(); //mapeo a objeto jackson\r\n \r\n st.close();\r\n con.close();\r\n System.out.println(\"convirtiendo el json\");\r\n return maper.writeValueAsString(personas);\r\n \r\n }",
"public static void ObtenerDatosEnvia_Msg(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/EnviaMsg\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public String pasarAjson(ArrayList<Cliente> miLista){\n String textoenjson;\n Gson gson = new Gson();\n textoenjson = gson.toJson(miLista);\n\n\n return textoenjson;\n }",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n PrintWriter out = resp.getWriter();\n resp.setStatus(200);\n resp.setCharacterEncoding(\"UTF-8\");\n resp.setContentType(\"application/json\");\n resp.addHeader(\"Access-Control-Allow-Origin\", \"*\");\n resp.addHeader(\"Access-Control-Allow-Methods\", \"POST, GET, OPTIONS, PUT, DELETE, HEAD\");\n\n if (req.getParameter(\"id\") != null) {\n Contato contato = new Contato(Integer.parseInt(req.getParameter(\"id\")));\n\n JSONObject obj = new JSONObject();\n obj.put(\"id\", contato.getId());\n obj.put(\"nome\", contato.getNome());\n obj.put(\"telefone\", contato.getTelefone());\n obj.put(\"celular\", contato.getCelular());\n obj.put(\"email\", contato.getEmail());\n\n out.println(obj);\n out.flush();\n\n } else {\n try {\n ArrayList<JSONObject> listaJson = new ArrayList<>();\n Contato contatos = new Contato();\n List<Contato> listaContatos = contatos.busca();\n for (int i = 0; i < listaContatos.size(); i++) {\n Contato c = listaContatos.get(i);\n JSONObject obj = new JSONObject();\n obj.put(\"id\", c.getId());\n obj.put(\"nome\", c.getNome());\n obj.put(\"telefone\", c.getTelefone());\n obj.put(\"celular\", c.getCelular());\n obj.put(\"email\", c.getEmail());\n listaJson.add(obj);\n }\n out.println(listaJson);\n out.flush();\n } catch (SQLException e) {\n e.printStackTrace();\n resp.setStatus(500);\n }\n }\n }",
"@GET\n @Path(\"/mostrarOrdenadasFT\")\n @Produces({\"application/json\"})\n public List<Fotografia> fotoUsuarioOrdenadaFT(){\n int idUser = 1;\n return fotografiaEJB.FotoUsuarioOrdenadasFT(idUser);\n }",
"@GET\n @Produces(\"application/json\")\n public JSONObject getResultado() {\n \n Connection con = null;\n PreparedStatement pst = null;\n ResultSet rs = null;\n\n String url = \"jdbc:mysql://localhost:3306/testdb\";\n String user = \"testuser\";\n String password = \"test623\";\n\n try {\n \n con = DriverManager.getConnection(url, user, password);\n pst = con.prepareStatement(\"SELECT * FROM Authors\");\n rs = pst.executeQuery();\n \n \n while (rs.next()) {\n System.out.print(rs.getInt(1));\n System.out.print(\": \");\n System.out.println(rs.getString(2));\n }\n \n \n con.close();\n\n } catch (SQLException ex) {\n System.err.println(\"Got an exception! \"); \n System.err.println(ex.getMessage()); \n\n }\n \n int resultado=0;\n \n JSONObject obj = new JSONObject();\n\n obj.put(\"res\", resultado);\n \n return obj;\n \n }",
"public static Cliente getJSONCliente(int cedula) throws IOException, ParseException {\n\t\turl = new URL(sitio+\"clientes/buscar/\"+cedula);\n\t\t\n\t\tHttpURLConnection http = (HttpURLConnection)url.openConnection();\n\t\thttp.setRequestMethod(\"GET\");\n\t\thttp.setRequestProperty(\"Accept\", \"application/json\");\n\t\tInputStream respuesta = http.getInputStream();\n\t\tbyte[] inp = respuesta.readAllBytes();\n\t\t//Esto nos convertira los datos a string\n\t\tString json = \"\";\n\t\tfor (int i = 0; i<inp.length ; i++) {\n\t\t\tjson += (char)inp[i];\n\t\t}\n\t\t//al cliente que creamos le enviamos el string para que lo convierta en un objeto\n\t\t//Clientes ya que viene en formato JSON\n\t\tCliente cliente = new Cliente();\n\t\tcliente = parsingCliente(json);\n\t\treturn cliente;\n\t}",
"@GET\n @Path(\"/ListCaracteristique\")\n public Response ListCaracteristique() {\n return Response\n\t\t .status(200)\n .header(\"Access-Control-Allow-Origin\", \"*\")\n .header(\"Access-Control-Allow-Headers\", \"origin, content-Type, accept, authorization\")\n .header(\"Access-Control-Allow-Credentials\", \"true\")\n\t\t .header(\"Access-Control-Allow-Methods\", \"GET, POST, PUT, DELETE, OPTIONS, HEAD\")\n\t\t .header(\"Access-Control-Max-Age\", \"1209600\")\n\t\t .entity(caractdao.getAll())\n\t\t .build();\n }",
"@POST\r\n @GET\r\n @Path(\"/v1.0/produtos\")\r\n @Consumes({ WILDCARD })\r\n @Produces({ APPLICATION_ATOM_XML, APPLICATION_JSON + \"; charset=UTF-8\" })\r\n public Response listarProdutos() {\r\n\r\n log.debug(\"listarProdutos: {}\");\r\n\r\n try {\r\n\r\n List<Produto> produtos = produtoSC.listar();\r\n\r\n return respostaHTTP.construirResposta(produtos);\r\n\r\n } catch (Exception e) {\r\n\r\n return respostaHTTP.construirRespostaErro(e);\r\n }\r\n }",
"@GET\n\t@Path(\"/\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List<Tela> getTelas(){\n\t\treturn new TelaDAO().readAllTelas();\n\t}",
"@Path(\"/inputdata/\")\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response getMannschaftenAndSpieltypen() {\n \n return Response.ok(QuoteModel.getAllMannschaftenAndSpieltyp()).build();\n }",
"public Producto[] parseResponse(String jsonAsString){\r\n\r\n //manually parsing to productos\r\n JsonParser parser = new JsonParser();\r\n JsonObject rootObject = parser.parse(jsonAsString).getAsJsonObject();\r\n JsonElement projectElement = rootObject.get(\"productos\");\r\n\r\n Producto [] productos = null;\r\n\r\n if(projectElement != null){\r\n\r\n QuantityDictionay.debugLog(\"LOS PRODUCTOS--->\"+projectElement.toString());\r\n\r\n //Use Gson to map response\r\n Gson gson = new Gson();\r\n //set type of response\r\n Type collectionType = new TypeToken<Producto[]>(){}.getType();\r\n //get java objects from json string\r\n productos = gson.fromJson(projectElement.toString(),collectionType);\r\n\r\n QuantityDictionay.debugLog(\"PARSING SIZE---->\"+productos.length);\r\n\r\n }\r\n\r\n\r\n return productos;\r\n\r\n }",
"String getJson();",
"String getJson();",
"String getJson();",
"private void datosVehiculo(boolean esta_en_revista) {\n\t\ttry{\n\t\t\t String Sjson= Utils.doHttpConnection(\"http://datos.labplc.mx/movilidad/vehiculos/\"+placa+\".json\");\n\t\t\t JSONObject json= (JSONObject) new JSONTokener(Sjson).nextValue();\n\t\t\t JSONObject json2 = json.getJSONObject(\"consulta\");\n\t\t\t JSONObject jsonResponse = new JSONObject(json2.toString());\n\t\t\t JSONObject sys = jsonResponse.getJSONObject(\"tenencias\");\n\t\t\t \n\t\t\t if(sys.getString(\"tieneadeudos\").toString().equals(\"0\")){\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.sin_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_verde);\n\t\t\t }else{\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.con_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_rojo);\n\t\t\t \tPUNTOS_APP-=PUNTOS_TENENCIA;\n\t\t\t }\n\t\t\t \n\t\t\t JSONArray cast = jsonResponse.getJSONArray(\"infracciones\");\n\t\t\t String situacion;\n\t\t\t boolean hasInfraccion=false;\n\t\t\t for (int i=0; i<cast.length(); i++) {\n\t\t\t \tJSONObject oneObject = cast.getJSONObject(i);\n\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t situacion = (String) oneObject.getString(\"situacion\");\n\t\t\t\t\t\t\t if(!situacion.equals(\"Pagada\")){\n\t\t\t\t\t\t\t\t hasInfraccion=true;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t }\n\t\t\t }\n\t\t\t if(hasInfraccion){\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.tiene_infraccion));\n\t\t\t\t \tautoBean.setImagen_infraccones(imagen_rojo);\n\t\t\t\t \tPUNTOS_APP-=PUNTOS_INFRACCIONES;\n\t\t\t }else{\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.no_tiene_infraccion));\n\t\t\t\t autoBean.setImagen_infraccones(imagen_verde);\n\t\t\t }\n\t\t\t JSONArray cast2 = jsonResponse.getJSONArray(\"verificaciones\");\n\t\t\t if(cast2.length()==0){\n\t\t\t \t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t }\n\t\t\t\t\t Date lm = new Date();\n\t\t\t\t\t String lasmod = new SimpleDateFormat(\"yyyy-MM-dd\").format(lm);\n\t\t\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\tBoolean yaValide=true;\n\t\t\t\t for (int i=0; i<cast2.length(); i++) {\n\t\t\t\t \tJSONObject oneObject = cast2.getJSONObject(i);\n\t\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\tif(!esta_en_revista&&yaValide){\n\t\t\t\t\t\t\t\t\t\t autoBean.setMarca((String) oneObject.getString(\"marca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setSubmarca((String) oneObject.getString(\"submarca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setAnio((String) oneObject.getString(\"modelo\"));\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_revista(getResources().getString(R.string.sin_revista));\n\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_revista(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t Calendar calendar = Calendar.getInstance();\n\t\t\t\t\t\t\t\t\t\t int thisYear = calendar.get(Calendar.YEAR);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t if(thisYear-Integer.parseInt(autoBean.getAnio())<=10){\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_nuevo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_verde);\n\t\t\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_viejo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t\t PUNTOS_APP-=PUNTOS_ANIO_VEHICULO;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t yaValide=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t Date date1 = formatter.parse(lasmod);\n\t\t\t\t\t\t\t\t Date date2 = formatter.parse(oneObject.getString(\"vigencia\").toString());\n\t\t\t\t\t\t\t\t int comparison = date2.compareTo(date1);\n\t\t\t\t\t\t\t\t if((comparison==1||comparison==0)&&!oneObject.getString(\"resultado\").toString().equals(\"RECHAZO\")){\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.tiene_verificaciones)+\" \"+oneObject.getString(\"resultado\").toString());\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_verde); \n\t\t\t\t\t\t\t\t\t hasVerificacion=true;\n\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t\t\t\t\t hasVerificacion=false;\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\n\t\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t } catch (ParseException e) {\n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t if(!hasVerificacion){\n\t\t\t\t \t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t\t }\n\t\t\t \n\t\t\t}catch(JSONException e){\n\t\t\t\tDatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t}\n\t\t\n\t}",
"@Override\n public List<ModelPerson> selectjson(ModelPerson person) {\n List<ModelPerson> result = null;\n JSONArray response = null;\n Gson gson = new Gson();\n\n try {\n request = new HttpRequest( HTTP_URL_SELECTJSON );\n request.configPostType( HttpRequest.MineType.JSONObject );\n\n // Gson을 이용하여 ModelPerson 을 JSONObject로 변환.\n String jsonString = gson.toJson( person );\n httpCode = request.post(jsonString);\n\n if( httpCode == HttpURLConnection.HTTP_OK ){\n response = request.getJSONArrayResponse();\n }\n\n // Gson을 이용하여 JSONArray 를 List<ModelPerson> 로 변환.\n result = gson.fromJson(response.toString(), new TypeToken< List<ModelPerson> >(){}.getType() );\n\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }catch (Exception e) {\n e.printStackTrace();\n }\n\n return result;\n }",
"ArrayList<Tour> parsearResultado(String JSONstr) throws JSONException {\n ArrayList<Tour> tours = new ArrayList<>();\n JSONArray jsonTours = new JSONArray(JSONstr);\n if (jsonTours.length()!=0) {\n for (int i = 0; i < jsonTours.length(); i++) {\n JSONObject jsonResultado = jsonTours.getJSONObject(i);\n int jsonId = jsonResultado.getInt(\"Id\");\n String jsonNombre = jsonResultado.getString(\"Nombre\");\n String jsonUbicacion = jsonResultado.getString(\"Ubicacion\");\n String jsonFoto = jsonResultado.getString(\"FotoURL\");\n String jsonLikes = jsonResultado.getString(\"Likes\");\n String jsonDescripcion = jsonResultado.getString(\"Descripcion\");\n\n JSONObject jsonResultadoUsuario = jsonResultado.getJSONObject(\"Usuario\");\n int idUsuario = jsonResultadoUsuario.getInt(\"Id\");\n String nomUsuario = jsonResultadoUsuario.getString(\"Nombre\");\n String fotoUsuario = jsonResultadoUsuario.getString(\"FotoURL\");\n\n Usuario usu = new Usuario(nomUsuario, fotoUsuario, idUsuario, \"\", null, null);\n\n gustosparc = new ArrayList<>();\n JSONArray jsongustos = jsonResultado.getJSONArray(\"Gustos\");\n for (int j = 0; j < jsongustos.length(); j++) {\n JSONObject jsonresultadoGustos = jsongustos.getJSONObject(j);\n int jsonIdGusto = jsonresultadoGustos.getInt(\"Id\");\n String jsonnombregustos = jsonresultadoGustos.getString(\"Nombre\");\n Gusto gus = new Gusto(jsonIdGusto, jsonnombregustos);\n gustosparc.add(gus);\n }\n\n Tour t = new Tour(jsonNombre, jsonDescripcion, jsonFoto, jsonUbicacion, jsonId, jsonLikes, usu, null, gustosparc);\n tours.add(t);\n }\n }\n return tours;\n }",
"public static String leituraJSON(String urlItens) {\n\n BufferedReader reader;\n String line;\n StringBuilder responseContent = new StringBuilder();\n\n try {\n URL url = new URL(urlItens);\n conn = (HttpURLConnection) url.openConnection();\n\n //request setup\n conn.setRequestMethod(\"GET\");\n conn.setConnectTimeout(5000);\n conn.setReadTimeout(5000);\n\n int status = conn.getResponseCode();\n // Se o status for 200 == conexão feita com sucesso\n\n if (status > 299) {\n reader = new BufferedReader(new InputStreamReader(conn.getErrorStream()));\n } else {\n reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n }\n while ((line = reader.readLine()) != null) {\n responseContent.append(line);\n }\n reader.close(); // encerra o buffer\n\n } catch (IOException e) {\n } finally {\n conn.disconnect(); // fecha a conexão\n }\n\n return responseContent.toString();\n }",
"@RequestLine(\"GET /api/v1/localidades/estados\")\n\tList<EstadoJson> get();",
"String getJSON();",
"public static List<JSONObject> getJSONObject(String SQL){\r\n\r\n //final String SQL = \"select * from articles\";\r\n Connection con = null;\r\n PreparedStatement pst = null;\r\n ResultSet rs = null;\r\n \r\n try{\r\n\r\n con = getConnection();\r\n pst = con.prepareStatement(SQL);\r\n rs = pst.executeQuery();\r\n\r\n }catch(SQLException ex){\r\n\r\n System.out.println(\"Error:\" + ex.getMessage());\r\n\r\n }\r\n\r\n List<JSONObject> resList = JsonService.getFormattedResultSet(rs);\r\n return resList;\r\n\r\n }",
"public void convert() throws IOException {\n URL url = new URL(SERVICE + City + \",\" + Country + \"&\" + \"units=\" + Type + \"&\" + \"APPID=\" + ApiID);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = reader.readLine();\n // Pobieranie JSON\n\n // Wyciąganie informacji z JSON\n //*****************************************************************\n //Temp\n if (!StringUtils.isBlank(line)) {\n int startIndex = line.indexOf(\"{\\\"temp\\\"\") + 8;\n int endIndex = line.indexOf(\",\\\"feels_like\\\"\");\n temperature = line.substring(startIndex, endIndex);\n // System.out.println(temperature);\n }\n //Min temp\n if (!StringUtils.isBlank(line)) {\n int startIndex = line.indexOf(\",\\\"temp_min\\\"\") + 12;\n int endIndex = line.indexOf(\",\\\"temp_max\\\"\");\n temperatureMin = line.substring(startIndex, endIndex);\n // System.out.println(temperatureMin);\n }\n //Max temp\n if (!StringUtils.isBlank(line)) {\n int startIndex = line.indexOf(\"\\\"temp_max\\\":\") + 11;\n int endIndex = line.indexOf(\",\\\"pressure\\\"\");\n temperatureMax = line.substring(startIndex, endIndex);\n //System.out.println(temperatureMax);\n }//todo dodaj więcej informacji takich jak cisnienie i takie tam\n //*****************************************************************\n }",
"public void updateJSONdata() {\n\n mDispositiuList = new ArrayList<HashMap<String, String>>();\n\n mDispositiusMapper = new HashMap<Integer, Dispositiu>();\n\n JSONParser jsonParser = new JSONParser();\n\n // Building Parameters\n List<NameValuePair> postValues = new ArrayList<NameValuePair>();\n postValues.add(new BasicNameValuePair(\"id_empresa\", String.valueOf(dades.getInt(\"empresa\"))));\n\n // getting JSON Object\n // Note that login url accepts POST method\n JSONObject json = jsonParser.makeHttpRequest(URL_DISPOSITIUS, \"POST\", postValues);\n\n // check log cat from response\n // Log.d(\"DispositiusEmpresa Response\", json.toString());\n\n try {\n\n success = json.getInt(TAG_SUCCESS);\n\n if (success == 1) {\n // dispositius retrieved successfully\n\n mDispositius = json.getJSONArray(TAG_DEVICES);\n\n if (mDispositius != null) {\n\n int len = mDispositius.length();\n for (int i = 0; i < len; i++) {\n JSONObject obj = mDispositius.getJSONObject(i);\n\n // gets the content of each tag\n String id = String.valueOf(obj.getInt(TAG_DEVICEID));\n String nom = obj.getString(TAG_DEVICENAME);\n String flota = obj.getString(TAG_FLOTA);\n String vehicle = obj.getString(TAG_VEHICLE);\n\n // creating new HashMap\n HashMap<String, String> map = new HashMap<String, String>();\n\n map.put(TAG_DEVICEID, id);\n map.put(TAG_DEVICENAME, nom);\n map.put(TAG_FLOTA, flota);\n map.put(TAG_VEHICLE, vehicle);\n\n // adding HashList to ArrayList\n mDispositiuList.add(map);\n\n\n dispositiu = new Dispositiu();\n dispositiu.setId(obj.getInt(TAG_DEVICEID));\n dispositiu.setNom(nom);\n dispositiu.setFlota(flota);\n dispositiu.setVehicle(vehicle);\n dispositiu.setPosition(obj.getDouble(TAG_LAT), obj.getDouble(TAG_LNG));\n\n mDispositiusMapper.put(dispositiu.getId(), dispositiu);\n }\n }\n\n } else {\n // failed to retrieve dispositius\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"private ArrayList<ServiceModel> getServiceModelJSON(JSONObject obj) {\n ArrayList<ServiceModel> servicesModel = new ArrayList<>();\n\n try {\n JSONArray servicesArray = obj.getJSONArray(\"services\");\n int limit = servicesArray.length();\n\n for (int i = 0; i < limit; i++) {\n JSONObject service = servicesArray.getJSONObject(i);\n\n ServiceModel serviceModel = new ServiceModel();\n\n serviceModel.setId(service.getInt(\"ID_SERVICE\"));\n serviceModel.setName(Conexion.decode(service.getString(\"NAME_SERVICE\")));\n serviceModel.setReserved(service.getInt(\"RESERVED_SERVICE\"));\n serviceModel.setDescription(Conexion.decode(service.getString(\"DESCRIPTION_SERVICE\")));\n serviceModel.setImage(service.getString(\"IMAGE_SERVICE\"));\n serviceModel.setIdType(service.getInt(\"ID_TYPE_SERVICE\"));\n serviceModel.setNameType(Conexion.decode(service.getString(\"NAME_TYPE_SERVICE\")));\n serviceModel.setValueType(service.getInt(\"VALUE_TYPE_SERVICE\"));\n\n serviceModel.setServicePrice(serviceServicePrice.getServicePriceModelJSON(service, serviceModel.getId(), false));\n servicesModel.add(serviceModel);\n }\n\n } catch (JSONException e) {\n System.out.println(\"Error: Objeto no convertible, \" + e.toString());\n e.printStackTrace();\n }\n return servicesModel;\n }",
"private void ConsultarDatosTabla(String URL)\n {\n progressDialog.show();\n listaDatosUsuarios = new ArrayList<Usuario>();\n\n RequestQueue queue = Volley.newRequestQueue(getContext());\n StringRequest stringRequest = new StringRequest(Request.Method.GET, URL, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response)\n {\n try\n {\n JSONObject jsonObject = new JSONObject(response);\n JSONArray jsonArray = jsonObject.getJSONArray(\"value\");\n\n ArrayList<String> listaElementos = new ArrayList<String>();\n\n for (int i = 0; i < jsonArray.length(); i++)\n {\n String nombreUsuario = jsonArray.getJSONObject(i).get(\"nombreUsuario\").toString();\n listaElementos.add(nombreUsuario);\n\n String idUsuario = jsonArray.getJSONObject(i).get(\"idUsuario\").toString();\n String nombre = jsonArray.getJSONObject(i).get(\"nombre\").toString();\n String apellidos = jsonArray.getJSONObject(i).get(\"apellidos\").toString();\n String idRolUsuario = jsonArray.getJSONObject(i).get(\"idRolUsuario\").toString();\n String correoElectronico = jsonArray.getJSONObject(i).get(\"correoElectronico\").toString();\n String contrasenia = jsonArray.getJSONObject(i).get(\"contrasenia\").toString();\n\n AgregarUsuario(new\n Usuario(idUsuario, nombre, apellidos, idRolUsuario, nombreUsuario, correoElectronico, contrasenia));\n\n }\n\n if (listaElementos.size() != 0)\n {\n ActualizarListView(listaElementos);\n }\n }\n catch (JSONException e )\n {\n Toast.makeText(getActivity(),\"Sin datos de usuarios!\", Toast.LENGTH_SHORT).show();\n };\n\n progressDialog.dismiss();\n\n }\n\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.dismiss();\n MessageDialog(\"Error al solicitar los datos.\\nIntente mas tarde!.\",\n \"Error\", \"Aceptar\");\n }\n });queue.add(stringRequest);\n\n }",
"@GET\n @Produces(\"application/json\")\n public String getJson(@PathParam(\"id\") String id) throws ClassNotFoundException, SQLException, JSONException {\n JSONObject jQoD = null;\n\n Class.forName(\"org.sqlite.JDBC\");\n Connection conn = DriverManager.getConnection(\"jdbc:sqlite:/data/googleflu.db\");\n Statement stat = conn.createStatement();\n String query = \"select Date,\" + id + \" from fludata;\";\n System.out.println(query);\n ResultSet rs = stat.executeQuery(query);\n JSONObject jDataSet = new JSONObject();\n JSONArray jEntries = new JSONArray();\n while (rs.next()) {\n JSONObject jEntry = new JSONObject();\n jEntry.put(\"Date\", rs.getString(\"Date\"));\n jEntry.put(\"Value\", rs.getInt(id));\n jEntries.put(jEntry);\n }\n jDataSet.put(\"dataset\", jEntries);\n rs.close();\n conn.close();\n return jDataSet.toString(5);\n }",
"@GET\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response getRestaurantes() {\n\t\tRotondAndesTM tm = new RotondAndesTM(getPath());\n\t\tList<Restaurante> restaurantes;\n\t\ttry\n\t\t{\n\t\t\trestaurantes = tm.darRestaurantes();\n\t\t\treturn Response.status( 200 ).entity( restaurantes ).build( );\t\t\t\n\t\t}catch( Exception e )\n\t\t{\n\t\t\treturn Response.status( 500 ).entity( doErrorMessage( e ) ).build( );\n\t\t}\n\t}",
"public String getJson();",
"@Override\n public void onResponse(String response) {\n Log.d(\"Response: \",response);\n try {\n JSONObject g = new JSONObject(response);\n JSONArray nombres = g.names();\n if(g.has(\"error\")){\n Toast.makeText(getActivity(),g.getString(\"mensaje\"),Toast.LENGTH_LONG).show();\n return;\n }else{//si no muestra ningun error estoy recibiendo datos\n for (int i =0; i<nombres.length();i++){\n JSONObject elementoLista = g.getJSONObject(nombres.getString(i));\n if(elementoLista.has(\"error\")){\n Toast.makeText(getActivity(),elementoLista.getString(\"mensaje\"),Toast.LENGTH_LONG).show();\n return;\n }else{\n\n activarBotonInicioTerapia();\n\n DecimalFormat dc = new DecimalFormat(\"00.00\");\n String x = dc.format(elementoLista.getDouble(\"x\"));\n String y = dc.format(elementoLista.getDouble(\"y\"));\n String z = dc.format(elementoLista.getDouble(\"z\"));\n ParametrosJuego pj = new ParametrosJuego(nombres.getString(i),x,y,z);\n //parametrosJuegoDataList.add(new ParametrosJuego(\"eje1\",\"1\",\"2\",\"3\"));\n params.add(pj);\n Toast.makeText(getActivity(),\"Si hubo datos\",Toast.LENGTH_LONG).show();\n }\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }finally {\n inicializarAdaptadorParametrosJuego(params);\n }\n }",
"public List<JsonObject> notasDeVentas(){\n String nv[][]= pedidoMaterialRepository.buscarNotaVenta();\n List<JsonObject> js = new ArrayList<JsonObject>();\n \n for (int i=0;i<nv.length;i++){\n \n JsonObject jo = new JsonObject();\n jo.put(\"notaDeVenta\", nv[i][0]);\n jo.put(\"descripcion\", nv[i][1]);\n jo.put(\"cliente\", nv[i][2]);\n js.add(jo);\n }\n \n return js;\n }",
"@Override\n public void onResponse(JSONObject response) {\n // public ArrayList<Curso> onResponse(JSONObject response) {\n //lectura del Json\n\n //Toast.makeText(getContext(), \"onResponse: \" + response.toString(), Toast.LENGTH_SHORT).show();\n EjercicioG1 ejercicioG1 = null;\n json = response.optJSONArray(\"ejerciciog1\");\n\n ArrayList<EjercicioG1> listaDEjerciciosg1 = new ArrayList<>();\n listaDEjerciciosg1 = new ArrayList<>();\n\n try {\n for (int i = 0; i < json.length(); i++) {\n ejercicioG1 = new EjercicioG1();\n JSONObject jsonObject = null;\n jsonObject = json.getJSONObject(i);\n ejercicioG1.setNameEjercicio(jsonObject.optString(\"nameEjercicioG1\"));\n ejercicioG1.setIdEjercicio(jsonObject.optInt(\"idEjercicioG1\"));\n ejercicioG1.setIdTipo(jsonObject.optInt(\"Tipo_idTipo\"));\n\n listaDEjerciciosg1.add(ejercicioG1);\n\n }\n //Spinner spinner = (Spinner) this.view.findViewById(R.id.sp_Ejercicios_asignar);\n\n\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n //Toast.makeText(getContext(), \"No se ha podido establecer conexión: \" + response.toString(), Toast.LENGTH_LONG).show();\n\n }\n }",
"@Override \r\n public String getProfilo(String profilo) {\n Iterator<Map<String, String>> iterator;\r\n iterator = getUltimaEntry().iterator();\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\tMap<String, String> m = iterator.next();\r\n if(m.get(\"Iface\").equals(profilo))\r\n \r\n \r\n try {\r\n String json = new ObjectMapper().writeValueAsString(m);\r\n \r\n if (json!=null) return json ;\r\n } catch (JsonProcessingException ex) {\r\n Logger.getLogger(NetstatSingleton.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n \r\n return \"NOT WORKING\";\r\n \r\n }",
"@GET\n @Path(\"/getdetallealquilerfactura_id/{token}/{id}\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getdetallealquilerfactura_id(\n @PathParam(\"token\") String token,\n @PathParam(\"id\")int id) throws Exception{\n \n Respuesta respon = new Respuesta();\n \n CheckToken check = new CheckToken();\n \n \n //instancie el objeto de DB\n DB dbase = new DB(\"itla2\",\"itlajava\",\"12345678@itla\");\n \n if (check.checktocken2(token)==0) \n { \n respon.setId(2);\n respon.setMensaje(\"Lo Sentimos token Desactivado, Comuniquese Con el Administrador, Gracias\");\n return respon.ToJson(respon);\n \n } \n \n //realizo el sql de busqueda\n String sql =\"SELECT f_id,f_id_t_alquiler_factura,f_tipo_factura_t_alquiler_factura,f_id_t_productos,\";\n sql+=\"f_fecha_salida,f_fecha_entrada,f_fecha_real_entrada,f_cantidad,f_precio,f_costo,f_itbis \";\n sql+=\" FROM public.t_detalle_alquiler_factura where f_id = \"+id;\n \n try\n {\n ResultSet rs = dbase.execSelect(sql); \n if(!rs.next())\n {\n \n Respuesta respo = new Respuesta();\n \n respo.setId(0);\n respo.setMensaje(\"No hay registros actualmente en la base de datos\");\n return respo.ToJson(respo);\n \n }\n while (rs.next())\n { \n \n \n detalleAlquilerFactura daf = new detalleAlquilerFactura();\n \n daf.setF_id(rs.getInt(1));\n daf.setF_id_t_alquiler_factura(rs.getInt(2));\n daf.setF_tipo_Factura_t_alquiler_factura(rs.getString(3));\n daf.setF_id_t_Producto(rs.getInt(4));\n daf.setF_fecha_salida(rs.getString(5));\n daf.setF_fecha_entrada(rs.getString(6));\n daf.setF_fecha_entrada_real(rs.getString(6));\n daf.setF_cantidad(rs.getInt(7));\n daf.setF_precio(rs.getInt(7));\n daf.setF_costo(rs.getInt(7));\n daf.setF_itbis(rs.getInt(8));\n \n //asigno elrs a la lista\n \n respon.setId(1);\n respon.setMensaje(respon.ToJson(daf));\n \n \n }\n } \n catch (SQLException e) \n {\n //si falla un error de base de datos\n respon.setId(-1);\n respon.setMensaje(\"Error de la base de datos \"+e.getMessage());\n return respon.ToJson(respon);\n \n }\n dbase.CerrarConexion();\n return respon.ToJson(respon); //retornando el Gson \n\n }",
"public DtResponse readInfoGralJsonStream(InputStream in) throws IOException {\n InputStreamReader isReader = new InputStreamReader(in);\n //Creating a BufferedReader object\n BufferedReader breader = new BufferedReader(isReader);\n StringBuffer sb = new StringBuffer();\n String str;\n while((str = breader.readLine())!= null){\n sb.append(str);\n }\n Log.i(TAG, sb.toString());\n JsonReader reader = new JsonReader(new StringReader(sb.toString()));\n List<DtResponse> res = null;\n try {\n return readRESTMessage(reader);\n } finally {\n reader.close();\n }\n }",
"private void getMasechtotListFromServer() {\n\n\n RequestManager.getMasechtotList().subscribe(new Observer<Result<MasechetList>>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(Result<MasechetList> masechetListResult) {\n\n saveMasechtotList(masechetListResult.getData());\n mMasechtotList = masechetListResult.getData();\n\n }\n\n @Override\n public void onError(Throwable e) {\n\n }\n\n @Override\n public void onComplete() {\n\n }\n });\n\n\n }",
"public static void filtro(String filtro, UsoApi<ArrayList> needResult)\n {\n final String[] response = new String[1];\n final SyncHttpClient client = new SyncHttpClient();\n client.setTimeout(5000);\n\n\n String api = host + \"/filtro/\" + filtro;\n\n client.get(api,\n new TextHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, final String res) {\n response[0] = res;\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, final String res, Throwable t) {\n response[0] = res;\n }\n }\n );\n\n ArrayList<ResultadoFiltro> resultadoFiltro = new ArrayList<>();\n\n JsonArray marchas = new JsonParser().parse(response[0]).getAsJsonObject().get(\"marchas\").getAsJsonArray();\n if(marchas.size() > 0)\n {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.TITLE;\n rf.title = \"Marchas\";\n resultadoFiltro.add(rf);\n }\n for(int i=0; i<marchas.size(); i++) {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.MARCHA;\n rf.marcha = new Marcha(marchas.get(i).getAsJsonObject());\n resultadoFiltro.add(rf);\n }\n\n JsonArray autores = new JsonParser().parse(response[0]).getAsJsonObject().get(\"autores\").getAsJsonArray();\n if(autores.size() > 0)\n {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.TITLE;\n rf.title = \"Autores\";\n resultadoFiltro.add(rf);\n }\n for(int i=0; i<autores.size(); i++) {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.AUTOR;\n rf.autor = new Autor(autores.get(i).getAsJsonObject());\n resultadoFiltro.add(rf);\n }\n\n JsonArray usuarios = new JsonParser().parse(response[0]).getAsJsonObject().get(\"usuarios\").getAsJsonArray();\n if(usuarios.size() > 0)\n {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.TITLE;\n rf.title = \"Usuarios\";\n resultadoFiltro.add(rf);\n }\n for(int i=0; i<usuarios.size(); i++) {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.USUARIO;\n rf.usuario = new Usuario(usuarios.get(i).getAsJsonObject());\n resultadoFiltro.add(rf);\n }\n\n JsonArray listas = new JsonParser().parse(response[0]).getAsJsonObject().get(\"listas\").getAsJsonArray();\n if(listas.size() > 0)\n {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.TITLE;\n rf.title = \"Listas de reproducción\";\n resultadoFiltro.add(rf);\n }\n for(int i=0; i<listas.size(); i++) {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.LISTA;\n rf.lista = new Lista(listas.get(i).getAsJsonObject());\n resultadoFiltro.add(rf);\n }\n\n needResult.result(resultadoFiltro);\n }",
"public void onResponse(JSONArray response) {\n\n try\n {\n jsonResponse = \"\";\n for (int i = 0; i < response.length(); i++) {\n\n JSONObject person = (JSONObject) response.get(i);\n\n String nombre = person.getString(\"1\");\n String autor = person.getString(\"2\");\n String rama= person.getString(\"3\");\n String pres= person.getString(\"4\");\n String prestado=\"\";\n\n\n if(pres.equals(\"0\"))\n {\n prestado=\"NO\";\n }\n else\n {\n prestado=\"SI\";\n }\n\n jsonResponse = \"\\nNombre: \" + nombre + \"\\n\\n\" + \"Autor: \" + autor + \"\\n\\n\" + \"Rama: \" + rama + \"\\n\\n\" + \"Prestado: \" + prestado +\" \\n\";\n\n al.add(jsonResponse);\n }\n\n ArrayAdapter adapter = new ArrayAdapter(that, R.layout.list_layout,R.id.nombre, al);\n librosList.setAdapter(adapter);\n\n dialog.dismiss();\n }\n catch(JSONException e)\n {\n Toast.makeText(getBaseContext(),\"Fallo en la interpretacion del JSON\",Toast.LENGTH_SHORT).show();\n dialog.dismiss();\n }\n }",
"private Object JSONArray(String estado) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private List<List<String>> getModelModel(String url, String jsonName, String key, String tipe) {\n List<List<String>> result = new ArrayList<>();\n\n try {\n OkHttpUtil okHttpUtil = new OkHttpUtil();\n okHttpUtil.init(true);\n Request request = new Request.Builder().url(url).get().build();\n Response response = okHttpUtil.getClient().newCall(request).execute();\n\n String res = \"{\\\"\" + jsonName + \"\\\":\" + response.body().string() + \"}\";\n\n JSONObject jsonObject = new JSONObject(res);\n JSONArray jSONArray = jsonObject.getJSONArray(jsonName);\n List<String> list = new ArrayList<>();\n JSONObject obj = (JSONObject) jSONArray.get(0);\n String temp = obj.getString(\"type\");\n List<String> types = new ArrayList<>();\n for (int i = 0; i < jSONArray.length(); i++) {\n obj = (JSONObject) jSONArray.get(i);\n if (obj.getString(\"type\").equalsIgnoreCase(temp)) {\n list.add(obj.getString(key));\n } else {\n types.add(temp);\n if (temp.equals(tipe)) {\n type_index = result.size();\n }\n result.add(list);\n list = new ArrayList<>();\n list.add(obj.getString(key));\n temp = obj.getString(\"type\");\n }\n }\n } catch (Exception e) {\n\n }\n\n return result;\n }",
"public static ArrayList<Produto> parserJsonProdutos(JSONArray response, Context context){\n\n System.out.println(\"--> Produto: \" + response);\n ArrayList<Produto> tempListaProdutos = new ArrayList<Produto>();\n\n try {\n for (int i = 0; i < response.length(); i++){\n\n JSONObject produto = (JSONObject)response.get(i);\n\n int id = produto.getInt(\"id\");\n int preco_unitario = produto.getInt(\"preco_unitario\");\n int id_tipoproduto = produto.getInt(\"id_tipo\");\n String designacao = produto.getString(\"designacao\");\n\n Produto auxProduto = new Produto(id, preco_unitario, id_tipoproduto, designacao);\n\n tempListaProdutos.add(auxProduto);\n }\n }\n catch (JSONException e)\n {\n e.printStackTrace();\n Toast.makeText(context, \"Error: \" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n return tempListaProdutos;\n }",
"public interface DatosAPI\n{\n @GET(\"kspt-6t6c.json\")\n Call<List<CentrosAyuda>> obtenerLista();\n}",
"@POST\r\n @Consumes(MediaType.APPLICATION_JSON)\r\n @Produces(MediaType.APPLICATION_JSON)\r\n /*public String getJson(@FormParam(\"operador\")String operador,@FormParam(\"idFile\")int idFile, \r\n @FormParam(\"idUser\")int idUser,@FormParam(\"grupo\")boolean grupo,@FormParam(\"lat\")double latitud, \r\n @FormParam(\"lon\")double longitud, @FormParam(\"hora\")String hora, @FormParam(\"fecha\")String fecha,\r\n @FormParam(\"timeMask\")String timeMask,@FormParam(\"dateMask\")String dateMask,\r\n @FormParam(\"wifis\")String wifis) throws SQLException, URISyntaxException, ClassNotFoundException{*/\r\n public String getJson(Parametros parametros) throws SQLException, URISyntaxException, ClassNotFoundException{\r\n //TODO return proper representation object\r\n \r\n Integer idFile = parametros.idFile;\r\n Integer idUser = parametros.idUser;\r\n boolean grupo = parametros.grupo;\r\n String operador = parametros.operador;\r\n float longitud = parametros.lon;\r\n float latitud = parametros.lat;\r\n String hora = parametros.hora;\r\n String dateMask = parametros.dateMask;\r\n String fecha = parametros.fecha;\r\n String timeMask = parametros.timeMask;\r\n String wifis = parametros.wifis;\r\n \r\n boolean userRegistrado=false;\r\n Fichero fichero = new Fichero(0,0,\"hola\",\"estoy aqui\",\"a esta hora\",\"en esta fecha\",\"con estas wifis\");\r\n try{\r\n Calendar ahora = Calendar.getInstance();\r\n int grupoBBDD =0;\r\n double lat=0;\r\n double lon=0;\r\n String horaBBDD=\"8:00\";\r\n String timeMaskBBDD=\"4\";\r\n String dateMaskBBDD=\"4\";\r\n \r\n ahora.add(Calendar.HOUR, 1);//Cambio de hora por el servidor de Heroku\r\n Connection connection = null;\r\n try{\r\n Class.forName(\"org.postgresql.Driver\");\r\n\r\n String url =\"jdbc:postgresql://localhost:5432/postgres\";\r\n String usuario=\"postgres\";\r\n String contraseña=\"123\";\r\n\r\n connection = DriverManager.getConnection(url, usuario, contraseña);\r\n \r\n if(!connection.isClosed()){\r\n Statement stmt = connection.createStatement();\r\n ResultSet rs= stmt.executeQuery(\"SELECT Id, Departamento FROM Usuarios\");\r\n while(rs.next()){\r\n if((rs.getInt(\"Id\"))==idUser){\r\n userRegistrado=true;\r\n grupoBBDD=rs.getInt(\"Departamento\");\r\n if(grupo && grupoBBDD!=0){\r\n Statement stmt2 = connection.createStatement();\r\n ResultSet rs2= stmt2.executeQuery(\"SELECT * FROM Departamentos WHERE Id='\" +Integer.toString(grupoBBDD)+\"'\"); \r\n while(rs2.next()){\r\n horaBBDD=rs2.getString(\"Horario\");\r\n timeMaskBBDD=rs2.getString(\"Mascara_hora\");\r\n dateMaskBBDD=rs2.getString(\"Mascara_fecha\");\r\n break;\r\n }\r\n rs2.close();\r\n stmt2.close();\r\n }\r\n Statement stmt3 = connection.createStatement();\r\n ResultSet rs3= stmt3.executeQuery(\"SELECT ssid, potencia FROM wifis\");\r\n while(rs3.next()){\r\n wifisFijas.add(rs3.getString(\"ssid\"));\r\n wifisPotencias.add(Integer.toString(rs3.getInt(\"potencia\")));\r\n }\r\n rs3.close();\r\n stmt3.close();\r\n Statement stmt4 = connection.createStatement();\r\n ResultSet rs4= stmt4.executeQuery(\"SELECT * FROM coordenadas\");\r\n while(rs4.next()){\r\n lat=rs4.getFloat(\"Latitud\");\r\n lon=rs4.getFloat(\"Longitud\");\r\n radio=rs4.getInt(\"Radio\");\r\n }\r\n rs4.close();\r\n stmt4.close();\r\n break;\r\n }\r\n\r\n\r\n }\r\n //Gson gson = new Gson();\r\n //String ficheroJSON = gson.toJson(fichero);\r\n rs.close();\r\n stmt.close();\r\n connection.close();\r\n //return ficheroJSON;\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.err.println(e.getClass().getName()+\": \"+e.getMessage());\r\n System.exit(0);\r\n \r\n }\r\n \r\n //for (int i=0;i<listaUsers.length;i++){\r\n //if(listaUsers[i][0]==idUser){\r\n if(userRegistrado){\r\n //userRegistrado = true;\r\n if(!grupo){\r\n fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, idUser),claveGPS(lat,lon,latitud,longitud,radio,idFile,idUser),claveHora(idFile, idUser,ahora,timeMask,hora),claveFecha(idFile, idUser,ahora,dateMask,fecha),claveWifi(wifis, idUser, idFile));\r\n //fichero.setClaveHora(\"Estoy entrando donde no hay grupo\");\r\n //break;\r\n }\r\n else{\r\n //if(listaUsers[i][1]==0){\r\n if(grupoBBDD==0){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n //fichero.setClaveHora(\"Estoy entrando donde el grupo es 0\");\r\n }\r\n else{\r\n //fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, listaUsers[i][1]),claveGPS(lat,lon,idFile,listaUsers[i][1]),claveHora(idFile, listaUsers[i][1],ahora,mapHora.get(listaUsers[i][1])[1],mapHora.get(listaUsers[i][1])[0]),claveFecha(idFile, listaUsers[i][1],ahora,mapHora.get(listaUsers[i][1])[2],fecha),claveWifi(wifis,listaUsers[i][1],idFile));\r\n fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, grupoBBDD),claveGPS(lat,lon,latitud,longitud,radio,grupoBBDD,grupoBBDD),claveHora(idFile, grupoBBDD,ahora,timeMaskBBDD,horaBBDD),claveFecha(idFile, grupoBBDD,ahora,dateMaskBBDD,fecha),claveWifi(wifis,grupoBBDD,idFile));\r\n //fichero.setClaveHora(\"Estoy entrando en mi cifrado de grupo\");\r\n }\r\n //break;\r\n }\r\n }\r\n //}\r\n if(!userRegistrado){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n //fichero.setClaveHora(\"No estoy registrado\");\r\n }\r\n }catch(Exception e){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n }\r\n \r\n \r\n Gson gson = new Gson();\r\n String ficheroJSON = gson.toJson(fichero);\r\n return ficheroJSON;\r\n }",
"void getDataFromServer();",
"private void getDataModern(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_jenis(\"Modern\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }",
"public String returnServerTableAsJson(String key) {\n BufferedReader reader;\n String linia = \"\";\n String resposta = \"\";\n con = null;\n is = null;\n\n List<NameValuePair> params = new ArrayList<NameValuePair>();\n params.add(new BasicNameValuePair(\"tableForJson\", key));\n\n try {\n\n con = (HttpURLConnection) url.openConnection();\n con.setRequestMethod(\"POST\");\n con.setDoInput(true);\n con.setDoOutput(true);\n\n OutputStream os = con.getOutputStream();\n BufferedWriter writer = new BufferedWriter(\n new OutputStreamWriter(os, \"UTF-8\"));\n writer.write(getQuery(params));\n writer.flush();\n writer.close();\n os.close();\n\n con.connect();\n\n is = con.getInputStream();\n reader = new BufferedReader(new InputStreamReader(is));\n while ((linia = reader.readLine()) != null)\n response.append(linia);\n is.close();\n con.disconnect();\n resposta = response.toString();\n } catch (Exception e) {\n e.printStackTrace();\n resposta = \"\";\n }\n\n return resposta;\n }",
"@Override\n\tpublic List<Map<String, String>> getData() throws Exception{\n\t\tqueryForList(\"\", null);\n\t\treturn null;\n\t}",
"private void sucesso(JSONArray jsonArrayReservas) throws JSONException {\n reservasAdapter.clear();\n\n if (jsonArrayReservas.length() > 0) {\n\n for (int i = 0; i < jsonArrayReservas.length(); i++) {\n\n Reserva reserva = gson.fromJson(jsonArrayReservas.get(i).toString(), Reserva.class);\n\n Log.d(\"DEBUG\", \"Reserva: \" + reserva.toString());\n\n reservasAdapter.add(reserva);\n\n }\n\n } else\n panelSemRegistros.setVisibility(View.VISIBLE);\n\n }",
"public void jsonPresentation () {\n System.out.println ( \"****** Json Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n String jsonData = \"\";\n ObjectMapper mapper = new ObjectMapper();\n bookArrayList = new Request().postRequestBook();\n try {\n jsonData = mapper.writeValueAsString(bookArrayList);\n } catch (JsonProcessingException e) {\n System.out.println(\"Error: \"+ e);\n }\n System.out.println(jsonData);\n ClientEntry.showMenu ( );\n }",
"RespuestaRest<ParqueaderoEntidad> consultar(String id);",
"@GET\n\t@Path(\"listado/{codigo}\") //ruta -> metodo que al que llama\n\t@Produces(\"application/json\") \n\tpublic String buscar(@PathParam(\"codigo\") String isbn) {\n\t\tLibro libro = negocio.consultarISBN(isbn);\n\t\tJSONObject json = new JSONObject(libro);\n\t\treturn json.toString();\n\t}",
"public void retrieveInformation() {\n\n new GetYourJsonTask2().execute(new ApiConnector());\n\n// Retrieve Info from ThingSpeak\n// String lightApi = \"https://api.thingspeak.com/channels/595680/fields/1.json?results=2\";\n// JsonObjectRequest objectRequest =new JsonObjectRequest(Request.Method.GET, lightApi, null,\n// new Response.Listener<JSONObject>() {\n// @Override\n// public void onResponse(JSONObject response) {\n// textView.append(\"lala\");\n// try {\n// JSONArray feeds = response.getJSONArray(\"feeds\");\n// for(int i=0; i<feeds.length();i++){\n// JSONObject jo = feeds.getJSONObject(i);\n// String l=jo.getString(\"field1\");\n// Toast.makeText(getApplicationContext(),l,Toast.LENGTH_SHORT).show();\n// textView.append(l);\n//\n// }\n// } catch (JSONException e) {\n// textView.append(\"error\");\n// e.printStackTrace();\n// }\n// }\n// }, new Response.ErrorListener() {\n// @Override\n// public void onErrorResponse(VolleyError error) {\n//\n// }\n// });\n\n\n\n }",
"public static List<Producto> convertirProductoTextoALIsta(String cadena){\n Gson gson = new Gson();\n\n Type lista = new TypeToken<List<Producto>>() {}.getType();\n return gson.fromJson(cadena,lista); //pasamos la cadena y adaptara el formato para esta lista\n}",
"@Override\n\t/*Método para usarse en el momento de ver las reservas de un determinado usuaario en el panel del mismo*/\n\tpublic String verReservas(String nombreusuario) {\n\t\tGson json= new Gson(); \n\t\tDBConnection con = new DBConnection();\n\t\tString sql =\"Select * from alquileres alq, peliculas p where alq.pelicula=p.id and alq.usuario LIKE '\"+nombreusuario+\"' order by p.titulo\"; //Seleccion de los alquileres relacionados con el usuario \n\t\ttry {\n\t\t\t\n\t\t\tArrayList<Alquiler> datos= new ArrayList<Alquiler>(); //ArrayList que va a almacenar los alquileres del usuario\n\t\t\t\n\t\t\tStatement st = con.getConnection().createStatement();\n\t\t\tResultSet rs = st.executeQuery(sql);\n\t\t\t\n\t\t\t//Se cogen los datos necesarios \n\t\t\twhile(rs.next()) {\n\t\t\t\tString idpelicula=rs.getString(\"id\");\n\t\t\t\tint numero_alquiler=rs.getInt(\"numero_alquiler\");\n\t\t\t\tString fecha=rs.getString(\"fecha_alquiler\");\n\t\t\t\tString titulo= rs.getString(\"titulo\"); \n\t\t\t\tString genero= rs.getString(\"genero\"); \n\t\t\t\tString cadenaestreno=rs.getString(\"estreno\");\n\t\t\t\tString estreno=\"\"; \n\t\t\t\t\n\t\t\t\t//comprobación y asignación del atributo estreno:\n\t\t\t\t/*Como en la base de datos se guarda como una cadena de texto, cuando se devuelve\n\t\t\t\t * hay que comprobar su valor y dependiendo del que sea pasarlo a una cadena para pasarla a la clase \n\t\t\t\t * Alquiler*/\n\t\t\t\t\n\t\t\t\tif(cadenaestreno.equals(\"true\")) {\n\t\t\t\t\testreno=\"Si\";\n\t\t\t\t}else if(cadenaestreno.equals(\"false\")) {\n\t\t\t\t\testreno=\"No\";\n\t\t\t\t}\n\t\t\t\tAlquiler alquiler=new Alquiler(numero_alquiler,idpelicula,fecha,titulo,genero,estreno); //uso esta clase para poder enviar los datos\n\t\t\t\tdatos.add(alquiler); //añado el alquiler a los datos que se van a devolver\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\tst.close();\n\t\treturn json.toJson(datos); //devuelvo la lista de los datos en JSON \n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\treturn e.getMessage();\n\t\t}finally {\n\t\t\tcon.desconectar();\n\t\t}\n\t}",
"@GET\n\t@Path(\"/carrocerias\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<CarroceriaDTO> listarCarrocerias(){\n\t\tSystem.out.println(\"ini: listarCarrocerias()\");\n\t\t\n\t\tCarroceriaService tipotService = new CarroceriaService();\n\t\tArrayList<CarroceriaDTO> lista = tipotService.ListadoCarroceria();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarCarrocerias()\");\n\t\t\n\t\treturn lista;\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tURL url = new URL(\"http://jsonplaceholder.typicode.com/users\");\n\n\t\tHttpURLConnection connection = null;\n\n\t\ttry {\n\t\t\tconnection = (HttpURLConnection) url.openConnection();\n\t\t\tconnection.setRequestMethod(\"GET\");\n\t\t\tconnection.setRequestProperty(\"Content-Type\", \"application/json\");\n\n\t\t\t// devo settare lo User-Agent per evitare un HTTP error code 403\n\t\t\tconnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11\");\n\n\t\t\tconnection.setRequestProperty(\"charset\", \"utf-8\");\n\t\t\tconnection.connect();\n\n\t\t\tlogger.info(connection.getContentType());\n\t\t\t//\t\t\t\tlogger.info(connection.getHeaderField(\"Content-Type\"));\n\n\t\t\tif (connection.getResponseCode() != 200) {\n\t\t\t\tthrow new RuntimeException(\"Failed : HTTP error code : \" + connection.getResponseCode());\n\t\t\t}\n\n\t\t\tif (connection.getRequestProperty(\"Content-Type\") != \"application/json\") {\n\t\t\t\tthrow new RuntimeException(\"Failed : Content-Type : \" + connection.getRequestProperty(\"Content-Type\"));\n\t\t\t}\n\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader((connection.getInputStream())));\n\n\t\t\tString str;\n\t\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\t\twhile ((str = br.readLine()) != null) {\n\t\t\t\tstringBuffer.append(str);\n\t\t\t\tstringBuffer.append(\"\\n\");\n\t\t\t}\n\n\t\t\tstr = stringBuffer.toString();\n\t\t\tJSONParser parser = new JSONParser();\n\t\t\tObject obj = parser.parse(str);\n\t\t\tJSONArray msg = (JSONArray) obj;\n\n\t\t\tIterator<?> iterator = msg.iterator();\n\t\t\t\n//\t\t\tif(content == \"\"){\n\t\t\t\tObject a ;\n\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\ta=(Object)iterator.next();\n\t//\t\t\t\tlogger.info(\"A: \" +a.get(\"name\"));\n\t\t\t\t\tlogger.info(\"A: \" +a);\n\t\t\t\t}\n//\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Errore: \" +e.getMessage());\n\t\t}finally{\n\t\t\tconnection.disconnect();\n\t\t}\n\n\t}",
"@GET\r\n @Produces(\"application/json\")\r\n @Path(\"Carro/get/{placa}\")\r\n public String getCarro(@PathParam(\"placa\") String placa) throws Exception {\r\n CarroModel c = new CarroModel();\r\n c.setPlaca(placa);\r\n\r\n //CarroDao dao = new CarroDao();\r\n CarroDao dao = CarroDao.getInstance();\r\n c = dao.buscar(c);\r\n\r\n //Converter para Gson\r\n Gson g = new Gson();\r\n return g.toJson(c);\r\n }",
"private void cargarDatosDefault() {\n\t\tPersonasJSON personas = new PersonasJSON();\n\t\tpersonas = personas.leerJSON(\"src/datosJSON/Personas.JSON\");\n\t\t\n\t\tfor(int i=0 ; i<personas.getCantidadPersonas(); i++) {\n\t\t\t\n\t\t\tString nombre = personas.getPersona(i).getNombre();\n\t\t\tint deporte = personas.getPersona(i).getDeporte();\n\t\t\tint musica = personas.getPersona(i).getMusica();\n\t\t\tint espectaculo = personas.getPersona(i).getEspectaculo();\n\t\t\tint ciencia = personas.getPersona(i).getCiencia();\n\t\t\t\n\t\t\tmodel.addRow(new String[]{ nombre, String.valueOf(deporte), String.valueOf(musica),\n\t\t\t\t\tString.valueOf(espectaculo), String.valueOf(ciencia) });\n\t\t}\n\t\t\n\t\tdatos.addAll(personas.getTodasLasPersonas());\n\t\t\n\t}",
"public void jsonCallback(String url, JSONObject json, AjaxStatus status) {\n ArrayList reservas = new ArrayList();\n idReservas = new ArrayList();\n if (json != null) {\n //Log.v(\"JSON\", json.toString());\n String jsonResponse = \"\";\n try {\n //Get json as Array\n JSONArray jsonArray = json.getJSONArray(\"reservation\");\n //Toast.makeText(aq.getContext(), jsonArray.toString(), Toast.LENGTH_LONG).show();\n if (jsonArray != null) {\n int len = jsonArray.length();\n for (int i = 0; i < len; i++) {\n //Get the events\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n //Example\n//{\"reservation\": [{\"id\":\"46\",\"name\":\"carlos\",\"hour\":\"1900\",\"day\":\"20\",\"month\":\"05\",\"year\":\"2014\",\n// \"description\":\"\",\"idField\":\"41\",\"idLogin\":\"5\"}]}\n//Elements to calendar view\n Cursor c = manager.buscarCanchaById(jsonObject.getString(\"idField\"));\n String nombreCancha = \"\";\n if (c.moveToFirst()){ // data?\n nombreCancha = c.getString(c.getColumnIndex(\"name\"));\n }\n reservas.add(i+1+\".\"+ nombreCancha);\n reservas.add(\"hora: \"+jsonObject.getString(\"hour\") + \"- Día: \" + jsonObject.getString(\"day\") + \"/\" + jsonObject.getString(\"month\") + \"/\" +\n jsonObject.getString(\"year\"));\n idReservas.add(jsonObject.getString(\"id\"));\n //jsonObject.getString(\"description\");\n //jsonObject.getString(\"idField\");\n //jsonObject.getString(\"idLogin\");\n }\n }\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n Toast.makeText(aq.getContext(), \"Error in parsing JSON\", Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n Toast.makeText(aq.getContext(), \"Something went wrong\", Toast.LENGTH_LONG).show();\n }\n // 1. pass context and data to the custom adapter\n items = generateData(reservas);\n adapter2 = new MyAdapter(this, items);\n\n // 3. setListAdapter\n listView.setAdapter(adapter2);\n\n }\n //When JSON is null\n else {\n //When response code is 500 (Internal Server Error)\n if(status.getCode() == 500){\n Toast.makeText(aq.getContext(),\"Server is busy or down. Try again!\",Toast.LENGTH_SHORT).show();\n }\n //When response code is 404 (Not found)\n else if(status.getCode() == 404){\n Toast.makeText(aq.getContext(),\"Resource not found!\",Toast.LENGTH_SHORT).show();\n }\n //When response code is other 500 or 404\n else{\n Toast.makeText(aq.getContext(),\"Verifique su conexion\",Toast.LENGTH_SHORT).show();\n }\n }\n }",
"public interface PrecosService {\n\n @GET(\"/combustivelbarato/precos/master/precos.json\")\n List<Preco> getPrecos();\n}",
"public ArrayList<CompanyProtheus> requestCompanysProtheus() {\n\n // Local variables.\n CompanyProtheus[] companysProtheus;\n ArrayList<CompanyProtheus> listCompanysProtheus = new ArrayList<>();\n\n // Define url for request.\n urlPath = \"http://{ipServer}:{portServer}/REST/GET/JWSRUSERS/emp/{userCode}\";\n urlPath = urlPath.replace(\"{ipServer}\", ipServer);\n urlPath = urlPath.replace(\"{portServer}\", portServer);\n urlPath = urlPath.replace(\"{userCode}\", userProtheus.getCode());\n\n try {\n\n // Set URL for request.\n url = new URL(urlPath);\n\n // Set key for authorization basic\n authorizationBasic = \"Basic \" + Base64.encodeToString((userProtheus.getCode()+ \":\" + userProtheus.getPassword()).getBytes() , Base64.DEFAULT);\n\n // Open connection HTTP.\n httpConnection = (HttpURLConnection) url.openConnection();\n\n // set header for request.\n httpConnection.setRequestMethod(\"GET\");\n httpConnection.setRequestProperty(\"Content-type\", \"application/json\");\n httpConnection.setRequestProperty(\"Accept\", \"application/json\");\n httpConnection.setRequestProperty(\"Authorization\", authorizationBasic);\n httpConnection.setDoOutput(true);\n httpConnection.setDoInput(true);\n httpConnection.setConnectTimeout(5000);\n httpConnection.connect();\n\n // Get response.\n bufferedLine = \"\";\n bufferedReader = new BufferedReader(new InputStreamReader(url.openStream()));\n while ((bufferedLine = bufferedReader.readLine()) != null) {\n httpReturn.append(bufferedLine);\n }\n\n // Set userProtheus with json reponse.\n companysProtheus = (CompanyProtheus[]) new Gson().fromJson(httpReturn.toString(), CompanyProtheus[].class);\n listCompanysProtheus = new ArrayList<CompanyProtheus>(Arrays.asList(companysProtheus));\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (ProtocolException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return listCompanysProtheus;\n\n }",
"public interface MediaService {\n @GET(\"/data/media-types.json\")\n Call<List<SubGenres>> listGenres();\n\n class SubGenres {\n @SerializedName(\"subgenres\")\n private ArrayList<Genres> list = new ArrayList<>();\n @SerializedName(\"id\")\n private String key;\n\n public String getKey() {\n return key;\n }\n\n public ArrayList<Genres> getList() {\n return list;\n }\n }\n\n class Genres {\n @SerializedName(\"id\")\n private String id;\n @SerializedName(\"translation_key\")\n private String translation_key;\n\n public String getId() {\n return id;\n }\n\n public String getTranslation_key() {\n return translation_key;\n }\n }\n}",
"@GET\n @Path(\"/mostrarOrdenadasFS\")\n @Produces({\"application/json\"})\n public List<Fotografia> fotoUsuarioOrdenadaFS(){\n int idUser = 1;\n return fotografiaEJB.FotoUsuarioOrdenadasFS(idUser);\n }",
"private String notificacionesSRToJson(List<DaNotificacion> notificacions){\n String jsonResponse=\"\";\n Map<Integer, Object> mapResponse = new HashMap<Integer, Object>();\n Integer indice=0;\n for(DaNotificacion notificacion : notificacions){\n Map<String, String> map = new HashMap<String, String>();\n map.put(\"idNotificacion\",notificacion.getIdNotificacion());\n if (notificacion.getFechaInicioSintomas()!=null)\n map.put(\"fechaInicioSintomas\",DateUtil.DateToString(notificacion.getFechaInicioSintomas(), \"dd/MM/yyyy\"));\n else\n map.put(\"fechaInicioSintomas\",\" \");\n map.put(\"codtipoNoti\",notificacion.getCodTipoNotificacion().getCodigo());\n map.put(\"tipoNoti\",notificacion.getCodTipoNotificacion().getValor());\n map.put(\"fechaRegistro\",DateUtil.DateToString(notificacion.getFechaRegistro(), \"dd/MM/yyyy\"));\n map.put(\"SILAIS\",notificacion.getCodSilaisAtencion()!=null?notificacion.getCodSilaisAtencion().getNombre():\"\");\n map.put(\"unidad\",notificacion.getCodUnidadAtencion()!=null?notificacion.getCodUnidadAtencion().getNombre():\"\");\n //Si hay persona\n if (notificacion.getPersona()!=null){\n /// se obtiene el nombre de la persona asociada a la ficha\n String nombreCompleto = \"\";\n nombreCompleto = notificacion.getPersona().getPrimerNombre();\n if (notificacion.getPersona().getSegundoNombre()!=null)\n nombreCompleto = nombreCompleto +\" \"+ notificacion.getPersona().getSegundoNombre();\n nombreCompleto = nombreCompleto+\" \"+notificacion.getPersona().getPrimerApellido();\n if (notificacion.getPersona().getSegundoApellido()!=null)\n nombreCompleto = nombreCompleto +\" \"+ notificacion.getPersona().getSegundoApellido();\n map.put(\"persona\",nombreCompleto);\n //Se calcula la edad\n int edad = DateUtil.calcularEdadAnios(notificacion.getPersona().getFechaNacimiento());\n map.put(\"edad\",String.valueOf(edad));\n //se obtiene el sexo\n map.put(\"sexo\",notificacion.getPersona().getSexo().getValor());\n if(edad > 12 && notificacion.getPersona().isSexoFemenino()){\n map.put(\"embarazada\", envioMxService.estaEmbarazada(notificacion.getIdNotificacion()));\n }else\n map.put(\"embarazada\",\"--\");\n if (notificacion.getMunicipioResidencia()!=null){\n map.put(\"municipio\",notificacion.getMunicipioResidencia().getNombre());\n }else{\n map.put(\"municipio\",\"--\");\n }\n }else{\n map.put(\"persona\",\" \");\n map.put(\"edad\",\" \");\n map.put(\"sexo\",\" \");\n map.put(\"embarazada\",\"--\");\n map.put(\"municipio\",\"\");\n }\n\n mapResponse.put(indice, map);\n indice ++;\n }\n jsonResponse = new Gson().toJson(mapResponse);\n UnicodeEscaper escaper = UnicodeEscaper.above(127);\n return escaper.translate(jsonResponse);\n }",
"@GET\n\t@Path(\"/autos\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic RespuestaDTO listarAutos(){\n\t\tSystem.out.println(\"ini: listarAutos()\");\n\t\tRespuestaDTO respuesta = null;\n\t\t\n\t\tAutoService autoService = new AutoService();\n\t\tArrayList<AutoDTO> lista = autoService.ListadoAuto();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t\trespuesta = new RespuestaDTO(lista);\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarAutos()\");\n\t\t\n\t\treturn respuesta;\n\t}",
"private void getData(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.getJSON();\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")) {\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls, getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else{\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }"
]
| [
"0.6690387",
"0.66423374",
"0.6337987",
"0.63254994",
"0.62844706",
"0.62764174",
"0.62716013",
"0.62685305",
"0.62540203",
"0.6235928",
"0.62289286",
"0.61794007",
"0.61493623",
"0.6144322",
"0.6137844",
"0.6114205",
"0.6066107",
"0.60438955",
"0.60384274",
"0.6037561",
"0.60246325",
"0.60046184",
"0.59867114",
"0.5953315",
"0.5944864",
"0.5924029",
"0.5916583",
"0.590368",
"0.5888562",
"0.5875473",
"0.5840389",
"0.5826931",
"0.5825904",
"0.5811868",
"0.5806808",
"0.5796002",
"0.5794736",
"0.5788316",
"0.5765084",
"0.57584214",
"0.57537156",
"0.573271",
"0.5721072",
"0.5719402",
"0.5682601",
"0.56807894",
"0.56701434",
"0.56692886",
"0.56692886",
"0.56692886",
"0.5668596",
"0.5661083",
"0.5659388",
"0.56490964",
"0.56447935",
"0.5639669",
"0.56346667",
"0.563365",
"0.56329113",
"0.5622466",
"0.5619758",
"0.56100893",
"0.5598238",
"0.5596518",
"0.5591539",
"0.55884975",
"0.55865",
"0.5576042",
"0.5561137",
"0.555053",
"0.5547937",
"0.5543551",
"0.5535047",
"0.55212057",
"0.5515541",
"0.5496666",
"0.5495445",
"0.54940814",
"0.5470371",
"0.5466908",
"0.54599243",
"0.54580724",
"0.54579353",
"0.5457782",
"0.54574794",
"0.5454421",
"0.5450579",
"0.5450541",
"0.54492867",
"0.54479325",
"0.54456574",
"0.54392487",
"0.5438526",
"0.5437787",
"0.5437376",
"0.5433762",
"0.54304826",
"0.54298174",
"0.54087126",
"0.5406372",
"0.5404974"
]
| 0.0 | -1 |
TODO Autogenerated method stub Map, Long> oldByteMap=new ConcurrentHashMap(); Map, Long> newByteMap=new ConcurrentHashMap(); TODO Autogenerated method stub | @Override
public void run() {
while(isactive){
//读取每个接入交换机的table?
long time1=System.currentTimeMillis();
for(Node node:nodes){
TableReader tableReader=new TableReader();
tableReader.setNode(node.getNode_id());
tableReader.setTableid(tableid);
//读取每条流表的static信息
if(tableid=="5"){
try {
for(String id:tableReader.read().keySet()){
//读取table中的每条流表
Flow flow=tableReader.read().get(id);
//是否存在inport 匹配
MonTag monTag=new MonTag();
if(flow.getMatch()!=null && flow.getMatch().getEthernet_Match()!=null && flow.getMatch().getIn_port()!=null){
String in_port=flow.getMatch().getIn_port();
//将监控标签加入该port
monTag.setInport(in_port);
//是否存在源mac
if(flow.getMatch().getEthernet_Match().getEthernet_source()!=null){
Ethernet_source source=flow.getMatch().getEthernet_Match().getEthernet_source();
monTag.setSrcmac(source.getAddress());
}
//是否存在目的mac
if(flow.getMatch().getEthernet_Match().getEthernet_destination()!=null){
Ethernet_destination destination=flow.getMatch().getEthernet_Match().getEthernet_destination();
monTag.setDestmac(destination.getAddress());
}
//获取当前流表的数据
long nowbyte=flow.getFlow_Statistic().getByte_count();
long nowpkt=flow.getFlow_Statistic().getPacket_count();
NetStatic netStatic=new NetStatic();
//设置监控统计项
netStatic.setBytecount(nowbyte)
.setPacketcount(nowpkt);
//判断是否是第一次读取
if(netMonitorMap.get(monTag)!=null){
long oldbyte=netMonitorMap.get(monTag).getBytecount();
long oldpkt=netMonitorMap.get(monTag).getPacketcount();
if(nowbyte < oldbyte){
nowbyte=oldbyte+nowbyte;
}
//计算速度
long bytespeed=(nowbyte-oldbyte)/(3000/1000);
long pktspeed=(nowpkt-oldpkt)/(3000/1000);
netStatic.setPacketspeed(pktspeed).setBytespeed(bytespeed);
}
this.netMonitorMap.put(monTag, netStatic);
}
}
} catch (TableReadException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
else if(tableid=="3") {
// monTag.setNode(node.getNode_id());
try {
for(String id:tableReader.read().keySet()){
MonTag monTag=new MonTag();
monTag.setNode(node.getNode_id());
NetStatic netStatic=new NetStatic();
Flow flow=tableReader.read().get(id);
//流表是否存在inport匹配域
if(flow.getMatch().getIn_port()!=null){
String inport=flow.getMatch().getIn_port();
monTag.setInport(inport);
}
//流表是否存在protocol域
if(flow.getMatch().getIp_Match()!=null && flow.getMatch().getIp_Match().getIp_protocol()!=null){
String ipProtocol=flow.getMatch().getIp_Match().getIp_protocol();
Protocol_Type protocol_Type=Protocol_Type.Valueof(Integer.parseInt(ipProtocol));
monTag.setProtocol_Type(protocol_Type);
}
else {
monTag.setProtocol_Type(Protocol_Type.UNKNOW);
}
//获取当前流表的数据
long nowbyte=flow.getFlow_Statistic().getByte_count();
long nowpkt=flow.getFlow_Statistic().getPacket_count();
netStatic.setBytecount(nowbyte)
.setPacketcount(nowpkt);
//判断是否是第一次读取
if(netMonitorMap.get(monTag)!=null){
long oldbyte=netMonitorMap.get(monTag).getBytecount();
long oldpkt=netMonitorMap.get(monTag).getPacketcount();
if(nowbyte < oldbyte){
nowbyte=oldbyte+nowbyte;
}
//计算速度
long bytespeed=(nowbyte-oldbyte)/(3000/1000);
long pktspeed=(nowpkt-oldpkt)/(3000/1000);
netStatic.setPacketspeed(pktspeed).setBytespeed(bytespeed);
}
//System.out.println("MonTag "+monTag.getInport()+"<<<>>>"+monTag.getProtocol_Type());
long bytespeed=netStatic.getBytespeed();
this.netMonitorMap.put(monTag, netStatic);
//for(MonTag monTag1:netMonitorMap.keySet()){
// System.out.println("MonTag "+monTag1.getInport()+" "+monTag1.getProtocol_Type());
// }
}
} catch (NumberFormatException | TableReadException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
long time2=System.currentTimeMillis();
interval=3000-(time2-time1);
System.out.println("Monitoring");
try {
Thread.sleep(interval);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_9396() {\r\n super();\r\n this.field_8914 = Maps.newConcurrentMap();\r\n }",
"public ConcurrentHashMap<Long, NativeDownloadModel> mo45197b() {\n ConcurrentHashMap<Long, NativeDownloadModel> concurrentHashMap = new ConcurrentHashMap<>();\n try {\n for (Map.Entry<String, ?> entry : m41930c().getAll().entrySet()) {\n try {\n long longValue = Long.valueOf(entry.getKey()).longValue();\n NativeDownloadModel b = NativeDownloadModel.m41805b(new JSONObject((String) entry.getValue()));\n if (longValue > 0 && b != null) {\n concurrentHashMap.put(Long.valueOf(longValue), b);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n return concurrentHashMap;\n }",
"static /* synthetic */ ConcurrentHashMap m45632b(C9780c cVar) {\n boolean[] c = m45633c();\n ConcurrentHashMap<Feature, State> concurrentHashMap = cVar.f25952a;\n c[64] = true;\n return concurrentHashMap;\n }",
"static /* synthetic */ ConcurrentHashMap m45628a(C9780c cVar) {\n boolean[] c = m45633c();\n ConcurrentHashMap<Feature, Boolean> concurrentHashMap = cVar.f25953b;\n c[63] = true;\n return concurrentHashMap;\n }",
"private static <K, V> Map<K, V> newConcurrentHashMap() {\n return new ConcurrentHashMap<K, V>();\n }",
"protected void rehash() {\n int oldCapacity = table.length;\n ServerDescEntry oldMap[] = table;\n\n int newCapacity = oldCapacity * 2 + 1;\n ServerDescEntry newMap[] = new ServerDescEntry[newCapacity];\n\n threshold = (int)(newCapacity * loadFactor);\n table = newMap;\n\n for (int i = oldCapacity ; i-- > 0 ;) {\n for (ServerDescEntry old = oldMap[i] ; old != null ; ) {\n ServerDescEntry e = old;\n old = old.next;\n\n int index = (e.desc.sid & 0x7FFFFFFF) % newCapacity;\n e.next = newMap[index];\n newMap[index] = e;\n }\n }\n }",
"private void rehash(int newCap) {\n System.out.println(\"ARGHHHH\");\n // make a new table of the new size, then iterate over the old\n // table and reinsert each entry.\n var oldTable = table;\n clear(newCap);\n for (var e : oldTable) {\n // skip nulls and tombstones.\n if (e != null) {\n this.bubbaPut(e.key, e.value);\n }\n }\n }",
"protected void rehash() {\n int oldCapacity = table.length;\n Entry oldMap[] = table;\n\n int newCapacity = oldCapacity * 2 + 1;\n Entry newMap[] = new Entry[newCapacity];\n\n threshold = (int) (newCapacity * loadFactor);\n table = newMap;\n\n for (int i = oldCapacity; i-- > 0; ) {\n for (Entry old = oldMap[i]; old != null; ) {\n Entry e = old;\n old = old.next;\n\n int index = (e.key & 0x7FFFFFFF) % newCapacity;\n e.next = newMap[index];\n newMap[index] = e;\n }\n }\n }",
"public ImageFileNameMap()\r\n {\r\n prevMap = null;\r\n }",
"protected static void rehash() \r\n\t{\r\n\t\tEntry\told, e;\r\n\t\tint\t\ti, index;\r\n\r\n\t\tEntry\toldMap[] = m_table;\r\n\t\tint\t\toldCapacity = oldMap.length;\r\n\r\n\t\tint newCapacity = oldCapacity * 2 + 1;\r\n\t\tEntry newMap[] = new Entry[newCapacity];\r\n\r\n\t\tm_threshold = (int)(newCapacity * m_loadFactor);\r\n\t\tm_table = newMap;\r\n\r\n\t\tfor (i = oldCapacity ; i-- > 0 ;) {\r\n\t\t\tfor (old = oldMap[i] ; old != null ; ) {\r\n\t\t\t\te = old;\r\n\t\t\t\told = old.m_next;\r\n\r\n\t\t\t\tindex = (e.m_name.hashCode() & 0x7FFFFFFF) % newCapacity;\r\n\t\t\t\te.m_next = newMap[index];\r\n\t\t\t\tnewMap[index] = e;\r\n\t\t\t}\r\n\t\t}\r\n }",
"protected void rehash() {\n // TODO: fill this in.\n //double number of maps, k, each time it is called\n\t\t//use MyBetterMap.makeMaps and MyLinearMap.getEntries\n\t\t//collect entries in the table, resize the table, then put the entries back in\n\t\tList<MyLinearMap<K, V>> newmaps = MyBetterMap.makeMaps(maps.size()*2);\n\t\tfor(MyLinearMap<K, V> curr: this.maps) {\n\t\t\tfor(Entry ent: MyLinearMap.getEntries()) {\n\t\t\t\tnewmaps.put(ent.key, ent.value);\n\t\t\t}\n\t\t}\n\t\tthis.maps = newmaps;\n\t\treturn;\n\t}",
"private Map<String, byte[]> createInnerClassesByteCodeMap(Collection<byte[]> classes) {\n Map<String, byte[]> byteCodeMap = new HashMap<>();\n\n for (byte[] byteCode : classes) {\n byteCodeMap.put(ClassNameConverter.getClassName(byteCode), byteCode);\n }\n\n return byteCodeMap;\n }",
"private Map<Key, Integer> mergeDuplicatedItemsAndDelte0(simpleRingBuffer<byte[]> buff2) {\n\t\t// TODO Auto-generated method stub\n\t\t//Iterator<byte[]> ier0 = buff2.iterator();\t \t\n \n//\t\tMap<Key, Integer> deduplicatedMap = Maps.newLinkedHashMap();\n// \t \t\n//\t\twhile(!buff2.isEmpty()){\n//\t\t\t//delete\n//\t\t\tbyte[] out = buff2.pop();\n//\t\t\t//push to the hash table\n//\t\t\tif(!deduplicatedMap.containsKey( out.key)){\n//\t\t\t\tdeduplicatedMap.put( out.key, out.counter);\t \n//\t\t\t}else{\n//\t\t\t\tdeduplicatedMap.replace(out.key, out.counter+deduplicatedMap.get(out.key));\n//\t\t\t}\n//\t\t}\n//\t\treturn deduplicatedMap;\n\t\treturn null;\n\t}",
"private void compareFirstPass() {\n this.oldFileNoMatch = new HashMap<String, SubsetElement>();\r\n Iterator<String> iter = this.oldFile.keySet().iterator();\r\n while (iter.hasNext()) {\r\n final String key = iter.next();\r\n if (!this.newFile.containsKey(key)) {\r\n final String newKey = this.oldFile.get(key).getSubsetCode()\r\n + this.oldFile.get(key).getConceptCode();\r\n this.oldFileNoMatch.put(newKey, this.oldFile.get(key));\r\n }\r\n }\r\n\r\n // Now repeat going the other way, pulling all new file no matches into\r\n // newFileNoMatch\r\n this.newFileNoMatch = new HashMap<String, SubsetElement>();\r\n iter = this.newFile.keySet().iterator();\r\n while (iter.hasNext()) {\r\n final String key = iter.next();\r\n if (!this.oldFile.containsKey(key)) {\r\n final String newKey = this.newFile.get(key).getSubsetCode()\r\n + this.newFile.get(key).getConceptCode();\r\n this.newFileNoMatch.put(newKey, this.newFile.get(key));\r\n }\r\n }\r\n\r\n // dump the initial large HashMaps to reclaim some memory\r\n this.oldFile = null;\r\n this.newFile = null;\r\n }",
"public boolean put2BuffMap( byte[] rec){\n\t\t/**\n\t\t * update\n\t\t */\n\t\t\n\t\tKey key = new Key(rec);\n\t\t\n\t\tif(buffMap.containsKey(key)){\n\t\t\tint val = buffMap.get(key)+1;\n\t\t\tbuffMap.replace(key, val);\n\t\t}else{\n\t\t\tbuffMap.put(key, 1);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public void reloadCachedMappings() {\n }",
"@Override\n public void reloadCachedMappings() {\n }",
"private static native void initCachedClassMap();",
"public ImageFileNameMap(FileNameMap map)\r\n {\r\n prevMap = map;\r\n }",
"protected Map<Long, byte[]> getMap(DB database) \n\t{\t\t\n\t\t//OPEN MAP\n\t\treturn database.createTreeMap(\"block_heights\")\n\t\t\t\t.keySerializer(BTreeKeySerializer.BASIC)\n\t\t\t\t.makeOrGet();\n\t}",
"private final Map<String, Object> m7134b() {\n HashMap hashMap = new HashMap();\n zzcf.zza zzco = this.f11698b.zzco();\n hashMap.put(\"v\", this.f11697a.zzawx());\n hashMap.put(\"gms\", Boolean.valueOf(this.f11697a.zzcm()));\n hashMap.put(\"int\", zzco.zzaf());\n hashMap.put(\"up\", Boolean.valueOf(this.f11700d.mo17775a()));\n hashMap.put(\"t\", new Throwable());\n return hashMap;\n }",
"private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}",
"private Hasher update(int bytes) {\n/* */ try {\n/* 86 */ update(this.scratch.array(), 0, bytes);\n/* */ } finally {\n/* 88 */ this.scratch.clear();\n/* */ } \n/* 90 */ return this;\n/* */ }",
"public long updateMap(long oldTime) throws IOException {\n\n\t\trecentMailMap.clear();\n\t\trecentMailMap = ContentExtract(getNewEmails(oldTime));\n\t\tlong ret = oldTime;\n\t\tfor (String threadId : recentMailMap.keySet()) {\n\t\t\tret = recentMailMap.get(threadId).internalDate();\n\t\t\tbreak;\n\t\t}\n\t\treturn ret;\n\t}",
"private ConcurrentMap<String, ConcurrentNavigableMap<Long, Object>> getFamilyData(\n\t\t\t\tString family) {\n\t\t\tConcurrentMap<String, ConcurrentNavigableMap<Long, Object>> ret = this.elements\n\t\t\t\t\t.get(family);\n\t\t\tif (ret == null) {\n\t\t\t\tret = new ConcurrentHashMap<String, ConcurrentNavigableMap<Long, Object>>();\n\t\t\t\tConcurrentMap<String, ConcurrentNavigableMap<Long, Object>> put = this.elements\n\t\t\t\t\t\t.putIfAbsent(family, ret);\n\t\t\t\tif (put != null)\n\t\t\t\t\tret = put;\n\t\t\t}\n\t\t\treturn ret;\n\t\t}",
"public static <T, K> ConcurrentHashMap<T, K> createConcurrentHashMap() {\n \t\treturn new ConcurrentHashMap<T, K>();\n \t}",
"private synchronized void flushCache() {\n /*\n r6 = this;\n monitor-enter(r6)\n r0 = 0\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n boolean r1 = r1.isEmpty() // Catch:{ all -> 0x005a }\n if (r1 == 0) goto L_0x000c\n monitor-exit(r6)\n return\n L_0x000c:\n r1 = 4\n if (r0 >= r1) goto L_0x0058\n int r1 = r6.cdS // Catch:{ all -> 0x005a }\n r2 = 64\n if (r1 > r2) goto L_0x001e\n int r1 = r6.cdT // Catch:{ all -> 0x005a }\n long r1 = (long) r1 // Catch:{ all -> 0x005a }\n long r3 = r6.cdV // Catch:{ all -> 0x005a }\n int r1 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r1 <= 0) goto L_0x0058\n L_0x001e:\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n java.util.Set r1 = r1.entrySet() // Catch:{ all -> 0x005a }\n java.util.Iterator r1 = r1.iterator() // Catch:{ all -> 0x005a }\n java.lang.Object r1 = r1.next() // Catch:{ all -> 0x005a }\n java.util.Map$Entry r1 = (java.util.Map.Entry) r1 // Catch:{ all -> 0x005a }\n java.io.File r2 = new java.io.File // Catch:{ all -> 0x005a }\n java.lang.Object r3 = r1.getValue() // Catch:{ all -> 0x005a }\n java.lang.String r3 = (java.lang.String) r3 // Catch:{ all -> 0x005a }\n r2.<init>(r3) // Catch:{ all -> 0x005a }\n long r2 = r2.length() // Catch:{ all -> 0x005a }\n java.util.Map<java.lang.String, java.lang.String> r4 = r6.cdY // Catch:{ all -> 0x005a }\n java.lang.Object r1 = r1.getKey() // Catch:{ all -> 0x005a }\n r4.remove(r1) // Catch:{ all -> 0x005a }\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n int r1 = r1.size() // Catch:{ all -> 0x005a }\n r6.cdS = r1 // Catch:{ all -> 0x005a }\n int r1 = r6.cdT // Catch:{ all -> 0x005a }\n long r4 = (long) r1 // Catch:{ all -> 0x005a }\n long r4 = r4 - r2\n int r1 = (int) r4 // Catch:{ all -> 0x005a }\n r6.cdT = r1 // Catch:{ all -> 0x005a }\n int r0 = r0 + 1\n goto L_0x000c\n L_0x0058:\n monitor-exit(r6)\n return\n L_0x005a:\n r0 = move-exception\n monitor-exit(r6)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.introvd.template.common.bitmapfun.util.DiskLruCache.flushCache():void\");\n }",
"public static <K, V> Reference2ObjectMap<K, V> synchronize(Reference2ObjectMap<K, V> m) {\n/* 433 */ return new SynchronizedMap<>(m);\n/* */ }",
"public static HashMap<String, Blob> deepcopytracked(\n HashMap<String, Blob> original) {\n HashMap<String, Blob> copy = new HashMap<String, Blob>();\n for (Map.Entry<String, Blob> entry : original.entrySet()) {\n copy.put(entry.getKey(),\n new Blob(entry.getValue()));\n }\n return copy;\n }",
"public void mo110858c() {\n HashMap hashMap = this.f90728d;\n if (hashMap != null) {\n hashMap.clear();\n }\n }",
"RegularImmutableBiMap(Map.Entry<?, ?>[] entriesToAdd) {\n/* 104 */ int n = entriesToAdd.length;\n/* 105 */ int tableSize = Hashing.closedTableSize(n, 1.2D);\n/* 106 */ this.mask = tableSize - 1;\n/* 107 */ ImmutableMapEntry[] arrayOfImmutableMapEntry1 = (ImmutableMapEntry[])createEntryArray(tableSize);\n/* 108 */ ImmutableMapEntry[] arrayOfImmutableMapEntry2 = (ImmutableMapEntry[])createEntryArray(tableSize);\n/* 109 */ ImmutableMapEntry[] arrayOfImmutableMapEntry3 = (ImmutableMapEntry[])createEntryArray(n);\n/* 110 */ int hashCode = 0;\n/* */ \n/* 112 */ for (int i = 0; i < n; i++) {\n/* */ \n/* 114 */ Map.Entry<?, ?> entry = entriesToAdd[i];\n/* 115 */ K key = (K)entry.getKey();\n/* 116 */ V value = (V)entry.getValue();\n/* 117 */ CollectPreconditions.checkEntryNotNull(key, value);\n/* 118 */ int keyHash = key.hashCode();\n/* 119 */ int valueHash = value.hashCode();\n/* 120 */ int keyBucket = Hashing.smear(keyHash) & this.mask;\n/* 121 */ int valueBucket = Hashing.smear(valueHash) & this.mask;\n/* */ \n/* 123 */ ImmutableMapEntry<K, V> nextInKeyBucket = arrayOfImmutableMapEntry1[keyBucket];\n/* 124 */ for (ImmutableMapEntry<K, V> keyEntry = nextInKeyBucket; keyEntry != null; \n/* 125 */ keyEntry = keyEntry.getNextInKeyBucket()) {\n/* 126 */ checkNoConflict(!key.equals(keyEntry.getKey()), \"key\", entry, keyEntry);\n/* */ }\n/* 128 */ ImmutableMapEntry<K, V> nextInValueBucket = arrayOfImmutableMapEntry2[valueBucket];\n/* 129 */ for (ImmutableMapEntry<K, V> valueEntry = nextInValueBucket; valueEntry != null; \n/* 130 */ valueEntry = valueEntry.getNextInValueBucket()) {\n/* 131 */ checkNoConflict(!value.equals(valueEntry.getValue()), \"value\", entry, valueEntry);\n/* */ }\n/* 133 */ ImmutableMapEntry<K, V> newEntry = (nextInKeyBucket == null && nextInValueBucket == null) ? new ImmutableMapEntry.TerminalEntry<K, V>(key, value) : new NonTerminalBiMapEntry<K, V>(key, value, nextInKeyBucket, nextInValueBucket);\n/* */ \n/* */ \n/* */ \n/* 137 */ arrayOfImmutableMapEntry1[keyBucket] = newEntry;\n/* 138 */ arrayOfImmutableMapEntry2[valueBucket] = newEntry;\n/* 139 */ arrayOfImmutableMapEntry3[i] = newEntry;\n/* 140 */ hashCode += keyHash ^ valueHash;\n/* */ } \n/* */ \n/* 143 */ this.keyTable = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry1;\n/* 144 */ this.valueTable = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry2;\n/* 145 */ this.entries = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry3;\n/* 146 */ this.hashCode = hashCode;\n/* */ }",
"FixedTextureCache()\n {\n textureMap = new HashMap();\n componentMap = new HashMap();\n }",
"public int forEachByte(ByteProcessor processor)\r\n/* 661: */ {\r\n/* 662:670 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 663:671 */ return super.forEachByte(processor);\r\n/* 664: */ }",
"private void cacheMappingInfoChunk (int chunkIndex) {\n this.cachedTMIChunk = new TagMappingInfoV3[this.getMappingNum()][this.getChunkSize()];\n for (int i = 0; i < mappingNum; i++) {\n cachedTMIChunk[i] = myHDF5.compounds().readArrayBlock(mapNames[i], tmiType, this.getChunkSize(), chunkIndex);\n }\n this.cachedChunkIndex = chunkIndex;\n this.chunkStartTagIndex = chunkIndex*this.getChunkSize();\n this.chunkEndTagIndex = chunkStartTagIndex+this.getChunkSize();\n if (chunkEndTagIndex > this.getTagCount()) chunkEndTagIndex = this.getTagCount();\n }",
"private void rehash() {\r\n Entry[] oldHashTable = this.hashTable;\r\n this.capacity = this.capacity * 2;\r\n this.hashTable = new Entry[this.capacity];\r\n this.size = 0;\r\n for (Entry eachEntry : oldHashTable) {\r\n if (eachEntry != null) {\r\n if (!eachEntry.isDeleted) {\r\n this.add((K)eachEntry.key,(V)eachEntry.value);\r\n }\r\n }\r\n }\r\n return;\r\n }",
"public Map<Diff<K>, Diff<V>> getMap() {\r\n return map;\r\n }",
"protected static byte getMapping(Class<?> messageClass) {\n\t\treturn byteMapping.get(messageClass);\n\t}",
"private void rehash(int newCapacity) {\n byte[] oldKeys = keys;\n V[] oldVals = values;\n\n keys = new byte[newCapacity];\n @SuppressWarnings({ \"unchecked\", \"SuspiciousArrayCast\" })\n V[] temp = (V[]) new Object[newCapacity];\n values = temp;\n\n maxSize = calcMaxSize(newCapacity);\n mask = newCapacity - 1;\n\n // Insert to the new arrays.\n for (int i = 0; i < oldVals.length; ++i) {\n V oldVal = oldVals[i];\n if (oldVal != null) {\n // Inlined put(), but much simpler: we don't need to worry about\n // duplicated keys, growing/rehashing, or failing to insert.\n byte oldKey = oldKeys[i];\n int index = hashIndex(oldKey);\n\n for (;;) {\n if (values[index] == null) {\n keys[index] = oldKey;\n values[index] = oldVal;\n break;\n }\n\n // Conflict, keep probing. Can wrap around, but never reaches startIndex again.\n index = probeNext(index);\n }\n }\n }\n }",
"public CjtMap(){\r\n cjtMap = new TreeMap();\r\n sequence = new Sequence(1, 0, 1, false);\r\n }",
"private static void initializeMap() {\n\t\tmap = new HashMap<String, MimeTransferEncoding>();\n\t\tfor (MimeTransferEncoding mte : MimeTransferEncoding.values()) {\n\t\t\tmap.put(mte.string, mte);\n\t\t}\n\t}",
"public static final Map<String, DateTimeZone> m68913b() {\n Map<String, DateTimeZone> map = (Map) f60066c.get();\n if (map != null) {\n return map;\n }\n map = m68915c();\n return !f60066c.compareAndSet(null, map) ? (Map) f60066c.get() : map;\n }",
"public void mo42980c() {\n byte[] f = getCopyBytes();\n if (f == null) {\n this.f12199g = 0;\n } else {\n this.f12199g = Arrays.hashCode(f);\n }\n }",
"private void m12809b(Map<String, String> map) {\n C1372c b = this.f10119f.m12638b();\n C1371a b2 = b.m4790b();\n map.put(\"vwa\", String.valueOf(b2.m4783c()));\n map.put(\"vwm\", String.valueOf(b2.m4782b()));\n map.put(\"vwmax\", String.valueOf(b2.m4784d()));\n map.put(\"vtime_ms\", String.valueOf(b2.m4786f() * 1000.0d));\n map.put(\"mcvt_ms\", String.valueOf(b2.m4787g() * 1000.0d));\n C1371a c = b.m4792c();\n map.put(\"vla\", String.valueOf(c.m4783c()));\n map.put(\"vlm\", String.valueOf(c.m4782b()));\n map.put(\"vlmax\", String.valueOf(c.m4784d()));\n map.put(\"atime_ms\", String.valueOf(c.m4786f() * 1000.0d));\n map.put(\"mcat_ms\", String.valueOf(c.m4787g() * 1000.0d));\n }",
"public void notifyOlderHash(){\n this.oldHash = hashCode();\n }",
"public static void main(String[] args) {\n String s1 = new String(\"aa\") + new String(\"a\");\n s1.intern();\n String s2 = \"aaa\";\n System.out.println(s1 == s2);\n ConcurrentHashMap map;\n HashMap map1;\n }",
"public TimeMap2() {\n map = new HashMap<>();\n }",
"private MyHashMap<K,V> resize() {\n\t//resize hashmap\n\t\n\tint biggercapacity=(2*capacity)+1;\n\n\tMyHashMap<K,V> biggermap= new MyHashMap(biggercapacity,loadFactor);\n\t\n\t//rehash items\n\t\n\t\n\tfor(int i=0;i<this.capacity;i++) {\n\t for(MyEntry k:table[i]) {\n\t\tbiggermap.put(k.key, k.value);\n\t }\n\t}\n\tthis.capacity=biggercapacity;\n\tthis.table=biggermap.table;\n\treturn biggermap;\n }",
"public final Map<K, V> b() {\n return this.f24654d;\n }",
"public void redefineClasses(Map<Class<?>, byte[]> newByteCodes) {\n\n\t\tint i = 0;\n\t\tfor (Class<?> clazz : newByteCodes.keySet()) {\n\t\t\ttry {\n\t\t\t\tClassDefinition cd = new ClassDefinition(clazz, newByteCodes.get(clazz));\n\t\t\t\tLOGGER.debug(\"Going to redefined class: {}\", clazz.getName());\n\t\t\t\tClassDefinition[] cdArray = new ClassDefinition[1];\n\t\t\t\tcdArray[0] = cd;\n\t\t\t\tJInstrumentation.getInstance().getjInstrumentation().redefineClasses(cdArray);\n\t\t\t\ti++;\n\t\t\t} catch (Throwable e) {\n\t\t\t\tLOGGER.error(\"Error: {}\", e);\n\t\t\t}\n\n\t\t}\n\t\tif (i > 0) {\n\t\t\tLOGGER.info(\"Redefined {} classes!\", i);\n\t\t}\n\n\t}",
"public CompactHashMap() {\n\t\tthis(INITIAL_SIZE);\n\t}",
"public MyConsistentHash(int numOfReplicas) {\n serverMap = new HashMap<String, Server>();\n nodesMap = new TreeMap<Integer, VirtualNode>();\n this.numOfReplicas = numOfReplicas;\n }",
"private void rehash() {\n if (rehashing) {\n int newCapacity = 2 * capacity + 1;\n if (newCapacity > MAXIMUM_CAPACITY) {\n return;\n }\n\n objectCounter += 2;\n MapElement[] newMap = new MapElement[newCapacity]; \n \n MapElement me = null;\n MapElement t = null;\n MapElement next = null;\n int newIndex = 0;\n \n for (int index = 0; index < capacity; index++) {\n me = map[index];\n while (me != null) {\n next = me.getNext();\n newIndex = me.getKey() % newCapacity;\n if (newIndex < 0) {\n newIndex = -newIndex;\n }\n if (newMap[newIndex] == null) {\n // No element yet for this new index\n newMap[newIndex] = me;\n me.setNext(null);\n } else {\n // Hook the element into the beginning of the chain\n t = newMap[newIndex];\n newMap[newIndex] = me;\n me.setNext(t);\n }\n me = next;\n }\n }\n \n map = newMap;\n capacity = newCapacity;\n // Max. number of elements before a rehash occurs\n maxLoad = (int) (loadFactor * capacity + 0.5f);\n\n newMap = null;\n }\n }",
"public static void addMapping(Class<?> messageClass, byte value) {\n\t\tbyteMapping.put(messageClass, value);\n\t\tclassMapping.put(value, messageClass);\n\t}",
"public static void main(String[] args) {\n\t\tConcurrentHashMap<String, String> chm=new ConcurrentHashMap<String, String>(17,0.75f,5);\r\n\t\tchm.put(\"hello\", \"hello\");\r\n\t\tchm.put(\"1\", \"23\");\r\n\t\tchm.get(\"1\");\r\n\t\t\r\n\t\tString s=\"hh\";\r\n\t\tHashMap hm=new HashMap();\r\n\t\tint sshift = 0;\r\n\t\tint ssize = 1;\r\n\t\tint concurrencyLevel=16;\r\n\t\twhile (ssize < concurrencyLevel) {\r\n\t\t\t++sshift;\r\n\t\t\tssize <<= 1;\r\n\t\t}\r\n\t\tSystem.out.println(\"ssize is next multiple of 2 if concurrencyLevel is not multiple of 2 => ssize: \"+ssize);\r\n\r\n\t\tint segmentShift = 32 - sshift;\r\n\t\tint segmentMask = ssize - 1;\r\n\t\tSystem.out.println(\"segmentShift(32-ssize)=>\"+segmentShift);\r\n\t\tSystem.out.println(\"segmentMask(ssize-1)=>\"+segmentMask);\r\n\r\n\t\tint initialCapacity=16;\r\n\t\tif (initialCapacity > MAXIMUM_CAPACITY)\r\n\t\t\tinitialCapacity = MAXIMUM_CAPACITY;\r\n\t\tint c = initialCapacity / ssize;\r\n\t\tSystem.out.println(\"c=initialCapacity / ssize ==> \"+c);\r\n\t\tif (c * ssize < initialCapacity)\r\n\t\t\t++c;\r\n\t\tSystem.out.println(\"c to find capacity if not exact multiple of initial capacity/sszie,then plus 1=> c=\"+c);\r\n\t\tint cap = MIN_SEGMENT_TABLE_CAPACITY;\r\n\t\twhile (cap < c)\r\n\t\t\tcap <<= 1;\r\n\t\tSystem.out.println(\"capacity=\"+cap);\r\n\t\tSystem.out.println((hash(\"hello\")>>>segmentShift )&segmentMask);\r\n\t\t\r\n\t\t\r\n\t\t//int j = (hash >>> segmentShift) & segmentMask;\r\n\t\t\r\n\r\n\t}",
"synchronized public byte[] toByteKey(byte[] _bytes) throws Exception {\n byte[] key = toKey(_bytes);\n if (key == null) {\n return null;\n }\n if (UIOSet.contains(index, key)) {\n byte[] bfp = UIOSet.get(index, key);\n byte[] bytes = dataChunkFiler.getFiler(UIO.bytesLong(bfp)).toBytes();\n if (!UByte.equals(bytes, _bytes)) {\n return null;\n }\n } else {\n long bfp = dataChunkFiler.newChunk(_bytes.length);\n dataChunkFiler.getFiler(bfp).setBytes(_bytes);\n byte[] keybfp = UByte.join(key, UIO.longBytes(bfp));\n UIOSet.add(index, keybfp);\n }\n return key;\n }",
"@Override\n\tpublic void copyReferences() {\n\t\tlateCopies = new LinkedHashMap<>();\n\n\t\tsuper.copyReferences();\n\n\t\tputAll(lateCopies);\n\t\tlateCopies = null;\n\t}",
"protected abstract Map<String, Serializable> getEventKeyAndIdMap();",
"@Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n\n return params;\n }",
"@Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n\n return params;\n }",
"@Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n\n return params;\n }",
"@Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n\n return params;\n }",
"private Map<String, String> m12810c(int i) {\n Map hashMap = new HashMap();\n am.m5200a(hashMap, this.f10118e.getVideoStartReason() == VideoStartReason.AUTO_STARTED, this.f10118e.mo1836b() ^ true);\n m12807a(hashMap);\n m12809b(hashMap);\n m12808a(hashMap, i);\n m12811c(hashMap);\n return hashMap;\n }",
"@Override\r\n protected void processUpdate(final ICacheElement<K, V> ce)\r\n {\r\n if (!isAlive())\r\n {\r\n log.error(\"{0}: No longer alive; aborting put of key = {1}\",\r\n () -> logCacheName, ce::getKey);\r\n return;\r\n }\r\n\r\n log.debug(\"{0}: Storing element on disk, key: {1}\",\r\n () -> logCacheName, ce::getKey);\r\n\r\n // old element with same key\r\n IndexedDiskElementDescriptor old = null;\r\n\r\n try\r\n {\r\n IndexedDiskElementDescriptor ded = null;\r\n final byte[] data = getElementSerializer().serialize(ce);\r\n\r\n // make sure this only locks for one particular cache region\r\n storageLock.writeLock().lock();\r\n try\r\n {\r\n old = keyHash.get(ce.getKey());\r\n\r\n // Item with the same key already exists in file.\r\n // Try to reuse the location if possible.\r\n if (old != null && data.length <= old.len)\r\n {\r\n // Reuse the old ded. The defrag relies on ded updates by reference, not\r\n // replacement.\r\n ded = old;\r\n ded.len = data.length;\r\n }\r\n else\r\n {\r\n // we need this to compare in the recycle bin\r\n ded = new IndexedDiskElementDescriptor(dataFile.length(), data.length);\r\n\r\n if (doRecycle)\r\n {\r\n final IndexedDiskElementDescriptor rep = recycle.ceiling(ded);\r\n if (rep != null)\r\n {\r\n // remove element from recycle bin\r\n recycle.remove(rep);\r\n ded = rep;\r\n ded.len = data.length;\r\n recycleCnt++;\r\n this.adjustBytesFree(ded, false);\r\n log.debug(\"{0}: using recycled ded {1} rep.len = {2} ded.len = {3}\",\r\n logCacheName, ded.pos, rep.len, ded.len);\r\n }\r\n }\r\n\r\n // Put it in the map\r\n keyHash.put(ce.getKey(), ded);\r\n\r\n if (queueInput)\r\n {\r\n queuedPutList.add(ded);\r\n log.debug(\"{0}: added to queued put list. {1}\",\r\n () -> logCacheName, queuedPutList::size);\r\n }\r\n\r\n // add the old slot to the recycle bin\r\n if (old != null)\r\n {\r\n addToRecycleBin(old);\r\n }\r\n }\r\n\r\n dataFile.write(ded, data);\r\n }\r\n finally\r\n {\r\n storageLock.writeLock().unlock();\r\n }\r\n\r\n log.debug(\"{0}: Put to file: {1}, key: {2}, position: {3}, size: {4}\",\r\n logCacheName, fileName, ce.getKey(), ded.pos, ded.len);\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: Failure updating element, key: {1} old: {2}\",\r\n logCacheName, ce.getKey(), old, e);\r\n }\r\n }",
"private static JSONObject mapFromBytes(ByteBuffer bytes) throws JSONException{\n\t\tJSONObject json = new JSONObject();\n\t\t//System.out.println(\"From map!\");\n\t\tint length = bytes.getInt();\n\t\t//System.out.println(\"Length \" + Integer.toString(length));\n\t\tfor (int i = 0; i < length; i++){\n\t\t\t//String key =(String) valueFromBytes(bytes);\n\t\t\t\n\t\t\t//Get Key\n\t\t\tbyte type = bytes.get();\n\t\t\t//assert(type == STRING_INDICATOR);\n\t\t\tint lengthKey = bytes.getInt();\n\t\t\tbyte[] stringBytes = new byte[lengthKey];\n\t\t\tbytes.get(stringBytes, 0, lengthKey);\n\t\t\tString key = new String(stringBytes);\n\t\t\t//System.out.println(\"From map: \" + new Integer(type).toString());\n\t\t\t//Get value\n\t\t\ttype = bytes.get();\n\t\t\tswitch(type){\n\t\t\tcase MAP_INDICATOR:\n\t\t\t\tjson.put(key, mapFromBytes(bytes));\n\t\t\t\tbreak;\n\t\t\tcase ARRAY_INDICATOR:\n\t\t\t\tjson.put(key, arrayFromBytes(bytes));\n\t\t\t\tbreak;\n\t\t\tcase STRING_INDICATOR:\n\t\t\t\tint lengthString = bytes.getInt();\n\t\t\t\tstringBytes = new byte[lengthString];\n\t\t\t\tbytes.get(stringBytes, 0, lengthString);\n\t\t\t\tjson.put(key,new String(stringBytes));\n\t\t\t\tbreak;\n\t\t\tcase INTEGER_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getInt());\n\t\t\t\tbreak;\n\t\t\tcase LONG_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getLong());\n\t\t\t\tbreak;\n\t\t\tcase DOUBLE_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getDouble());\n\t\t\t\tbreak;\n\t\t\tcase FLOAT_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getFloat());\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new JSONException(\"Tried to decode unknown type from byte array!\");\n\t\t\t}\n\t\t}\n\t\treturn json;\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\treturn map.hashCode() ^ y() << 16 ^ x();\n\t}",
"public void updateByteMetrics() {\n try {\n for (Optional<Fork> fork : this.forks) {\n if (fork.isPresent()) {\n fork.get().updateByteMetrics();\n }\n }\n } catch (IOException ioe) {\n LOG.error(\"Failed to update byte-level metrics for task \" + this.taskId);\n }\n }",
"public static void main(String[] args) {\n Map<Integer, Integer> conMap = new HashMap<>();\n for(int i = 1; i < 1000000 ; i ++){\n conMap.put(i,i);\n }\n\n// Thread thread1 = new Thread(() -> {\n// while(true) {\n// for (Map.Entry<Integer, Integer> entry : conMap.entrySet()) {\n// entry.getKey();\n// }\n// }\n// });\n// thread1.start();\n//\n// Thread thread2 = new Thread( () ->{\n// for (Map.Entry<Integer, Integer> entry : conMap.entrySet()) {\n// conMap.remove(entry.getKey());\n// }\n// });\n// thread2.start();\n\n Thread thread3 = new Thread( () ->{\n// for (Map.Entry<Integer, Integer> entry : conMap.entrySet()) {\n// conMap.remove(entry.getKey());\n// }\n Iterator<Map.Entry<Integer,Integer>> iterator = conMap.entrySet().iterator();\n while(iterator.hasNext()){\n iterator.next();\n iterator.remove();\n }\n });\n thread3.start();\n }",
"@Override\n public int getCacheSize() {\n return 4 + 20 * 88;\n }",
"@Override\n\t\tpublic int hashCode() {\n\t\t\treturn countMap.hashCode();\n\t\t}",
"public static void updateClientAndPassMap(String oldEmail, Client newClient) {\r\n // remove client obj mapped to old email\r\n clientMap.remove(oldEmail);\r\n // add new client mapped to new email\r\n addClient(newClient);\r\n // get pass from passMap\r\n String tempPass = passMap.get(oldEmail);\r\n // remove pass mapped to old client email\r\n passMap.remove(oldEmail);\r\n // add updated client email + pass to map\r\n addPass(newClient.getEmail(), tempPass);\r\n }",
"@Contract(value = \" -> new\", pure = true)\n @Nonnull\n @Deprecated\n public static <K, V> Map<K, V> createWeakMap() {\n return Maps.newWeakHashMap(4);\n }",
"@Override\n\tpublic int hashCode() {\n\t\treturn idx1.hashCode() * 811 + idx2.hashCode();\n\t}",
"@Override\n public void onLowMemory() {\n super.onLowMemory();\n mMap.onLowMemory();\n }",
"public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}",
"public UPOSMapper(String mappingFile){\n map = new ConcurrentHashMap<>();\n try {\n for(String line: Files.readAllLines(Paths.get(mappingFile))){\n line = line.trim();\n if(line.isEmpty()) continue;\n String[] tags = line.split(\"\\t\");\n map.put(tags[0], tags[1]);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void map( Chunk c0, Chunk c1, Chunk c2 ) { }",
"public Map<C13822a, String> mo43858c() {\n return Collections.unmodifiableMap(this.f42902g);\n }",
"void setHashMap();",
"public void mo78148b() {\n HashMap hashMap = this.f53724A;\n if (hashMap != null) {\n hashMap.clear();\n }\n }",
"public final void mo12410a(Map<String, String> map, Map<String, String> map2) {\n AppMethodBeat.m2504i(98681);\n HashMap hashMap = new HashMap();\n hashMap.putAll(map);\n hashMap.put(\"B59\", this.f1552p);\n if (this.f1561y) {\n hashMap.put(\"B85\", \"1\");\n }\n if (this.f15282c) {\n hashMap.put(\"B95\", \"1\");\n } else {\n hashMap.put(\"B96\", this.f1547C);\n }\n if (!this.f1562z) {\n hashMap.put(\"B23\", \"1\");\n }\n HashMap hashMap2 = new HashMap();\n hashMap2.putAll(map2);\n if (this.f15292m != 0) {\n hashMap2.put(\"B84\", this.f15292m);\n }\n hashMap2.put(\"B87\", this.f1545A);\n hashMap2.put(\"B88\", this.f1546B);\n hashMap2.put(\"B90\", this.f1549E.f1569g);\n hashMap2.put(\"B91\", this.f1549E.f1570h);\n hashMap2.put(\"B92\", this.f1549E.f1571i);\n hashMap2.put(\"B93\", this.f1549E.f1572j);\n hashMap2.put(\"B94\", this.f1549E.f1573k);\n if (!TextUtils.isEmpty(this.f15287h)) {\n hashMap2.put(\"B47\", this.f15287h);\n }\n if (!TextUtils.isEmpty(this.f1548D)) {\n hashMap2.put(\"B41\", this.f1548D);\n }\n int i = this.f1559w.f1540a != 0 ? this.f1559w.f1540a : this.f1559w.f1542c == 200 ? 0 : this.f1559w.f1542c;\n if (!this.f1555s || i == -4) {\n C24371es.m37719b(\"HLHttpDirect\", C46772bt.m88739c(), i, this.f1559w.f1541b, hashMap, hashMap2, this.f15288i);\n AppMethodBeat.m2505o(98681);\n return;\n }\n C24371es.m37717a(\"HLHttpDirect\", C46772bt.m88739c(), i, this.f1559w.f1541b, hashMap, hashMap2, this.f15288i);\n AppMethodBeat.m2505o(98681);\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\t\tprivate void rehash() {\r\n\t\t\t// double size of array\r\n\t\t\tTableElement<K, V>[] NewDictionary = (TableElement<K, V>[]) new TableElement[dictionary.length * 2];\r\n\r\n\t\t\tcurrentCapacity = dictionary.length * 2;\r\n\r\n\t\t\t// re-mod the keys to get new hash\r\n\t\t\tfor (int i = 0; i < dictionary.length; i++) {\r\n\t\t\t\tif (dictionary[i] != null) {\r\n\t\t\t\t\tint newHash = (Math.abs(dictionary[i].getKey().hashCode()) % currentCapacity);\r\n\r\n\t\t\t\t\t// put re-hashed keys into new array\r\n\t\t\t\t\twhile (NewDictionary[newHash] != null) {\r\n\t\t\t\t\t\tint probe = getProbed(newHash);\r\n\t\t\t\t\t\tnewHash = (newHash + probe) % currentCapacity;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tTableElement element = dictionary[i];\r\n\t\t\t\t\tNewDictionary[newHash] = element;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// set old dictionary to new dictionary\r\n\t\t\tthis.dictionary = NewDictionary;\r\n\t\t}",
"private HashMap< Price, ArrayList<Tradable>> getOldEntries() {\n\t\treturn oldEntries;\n\t}",
"protected void rehash(int newCapacity) {\n\t\tint oldCapacity = keys.length;\n\t\tK[] newKeys = (K[]) new Object[newCapacity];\n\t\tV[] newValues = (V[]) new Object[newCapacity];\n\n\t\tfor (int ix = 0; ix < oldCapacity; ix++) {\n\t\t\tObject k = keys[ix];\n\t\t\tif (k == null || k == deletedObject)\n\t\t\t\tcontinue;\n\n\t\t\tint hash = k.hashCode();\n\t\t\tint index = (hash & 0x7FFFFFFF) % newCapacity;\n\t\t\tint offset = 1;\n\n\t\t\t// search for the key\n\t\t\twhile (newKeys[index] != null) { // no need to test for duplicates\n\t\t\t\tindex = ((index + offset) & 0x7FFFFFFF) % newCapacity;\n\t\t\t\toffset = offset * 2 + 1;\n\n\t\t\t\tif (offset == -1)\n\t\t\t\t\toffset = 2;\n\t\t\t}\n\n\t\t\tnewKeys[index] = (K) k;\n\t\t\tnewValues[index] = values[ix];\n\t\t}\n\n\t\tkeys = newKeys;\n\t\tvalues = newValues;\n\t\tfreecells = keys.length - elements;\n\t}",
"public interface TByteHashingStrategy extends Serializable {\n\n /**\n * Computes a hash code for the specified byte. Implementors can use the byte's own value or a\n * custom scheme designed to minimize collisions for a known set of input.\n *\n * @param val byte for which the hashcode is to be computed\n * @return the hashCode\n */\n int computeHashCode(byte val);\n}",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate void rehash()\r\n\t{\r\n\t\tint M = table.length;\r\n\t\tMapEntry<K, V>[] origTable = table; // save original\r\n\t\t\r\n\t\t//new table\r\n\t\ttable = new MapEntry[2*M + 1];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\t\r\n\t\tfor (MapEntry<K, V> oe : origTable)\r\n\t\t{\r\n\t\t\tMapEntry<K, V> e = oe;\r\n\t\t\tif (e != null && e != DUMMY) // No need to rehash dummy\r\n\t\t\t{\r\n\t\t\t\tint slot = findSlot(e.getKey(), true);\r\n\t\t\t\ttable[slot] = e;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping addNewClrMap()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping)get_store().add_element_user(CLRMAP$2);\n return target;\n }\n }",
"IcedHM() { _m = new NonBlockingHashMap<>(); }",
"private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }",
"RegularImmutableBiMap(int n, ImmutableMapEntry.TerminalEntry<?, ?>[] entriesToAdd) {\n/* 56 */ int tableSize = Hashing.closedTableSize(n, 1.2D);\n/* 57 */ this.mask = tableSize - 1;\n/* 58 */ ImmutableMapEntry[] arrayOfImmutableMapEntry1 = (ImmutableMapEntry[])createEntryArray(tableSize);\n/* 59 */ ImmutableMapEntry[] arrayOfImmutableMapEntry2 = (ImmutableMapEntry[])createEntryArray(tableSize);\n/* 60 */ ImmutableMapEntry[] arrayOfImmutableMapEntry3 = (ImmutableMapEntry[])createEntryArray(n);\n/* 61 */ int hashCode = 0;\n/* */ \n/* 63 */ for (int i = 0; i < n; i++) {\n/* */ \n/* 65 */ ImmutableMapEntry.TerminalEntry<?, ?> terminalEntry = entriesToAdd[i];\n/* 66 */ K key = (K)terminalEntry.getKey();\n/* 67 */ V value = (V)terminalEntry.getValue();\n/* */ \n/* 69 */ int keyHash = key.hashCode();\n/* 70 */ int valueHash = value.hashCode();\n/* 71 */ int keyBucket = Hashing.smear(keyHash) & this.mask;\n/* 72 */ int valueBucket = Hashing.smear(valueHash) & this.mask;\n/* */ \n/* 74 */ ImmutableMapEntry<K, V> nextInKeyBucket = arrayOfImmutableMapEntry1[keyBucket];\n/* 75 */ for (ImmutableMapEntry<K, V> keyEntry = nextInKeyBucket; keyEntry != null; \n/* 76 */ keyEntry = keyEntry.getNextInKeyBucket()) {\n/* 77 */ checkNoConflict(!key.equals(keyEntry.getKey()), \"key\", terminalEntry, keyEntry);\n/* */ }\n/* 79 */ ImmutableMapEntry<K, V> nextInValueBucket = arrayOfImmutableMapEntry2[valueBucket];\n/* 80 */ for (ImmutableMapEntry<K, V> valueEntry = nextInValueBucket; valueEntry != null; \n/* 81 */ valueEntry = valueEntry.getNextInValueBucket()) {\n/* 82 */ checkNoConflict(!value.equals(valueEntry.getValue()), \"value\", terminalEntry, valueEntry);\n/* */ }\n/* 84 */ ImmutableMapEntry<K, V> newEntry = (nextInKeyBucket == null && nextInValueBucket == null) ? (ImmutableMapEntry)terminalEntry : new NonTerminalBiMapEntry<K, V>((ImmutableMapEntry)terminalEntry, nextInKeyBucket, nextInValueBucket);\n/* */ \n/* */ \n/* */ \n/* 88 */ arrayOfImmutableMapEntry1[keyBucket] = newEntry;\n/* 89 */ arrayOfImmutableMapEntry2[valueBucket] = newEntry;\n/* 90 */ arrayOfImmutableMapEntry3[i] = newEntry;\n/* 91 */ hashCode += keyHash ^ valueHash;\n/* */ } \n/* */ \n/* 94 */ this.keyTable = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry1;\n/* 95 */ this.valueTable = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry2;\n/* 96 */ this.entries = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry3;\n/* 97 */ this.hashCode = hashCode;\n/* */ }",
"public IntObjectHashMap() {\n resetToDefault();\n }",
"public InternalWorkingOfHashSet() {\r\n map = new HashMap<>();\r\n }",
"private HashMap pc() {\n if (_pcache == null) {\n _pcache = new HashMap(13);\n }\n return _pcache;\n }",
"void initCaches(Map<EObject, String> eObjectToIdMap, Map<String, EObject> idToEObjectMap);",
"private IntLongMap getEdgeIdToOsmWayIdMap() {\n if (edgeIdToOsmWayIdMap == null)\n edgeIdToOsmWayIdMap = new GHIntLongHashMap(osmWayIdSet.size(), 0.5f);\n\n return edgeIdToOsmWayIdMap;\n }",
"public void map( Chunk c0, Chunk c1 ) { }",
"public Collection<Long> modifyBatchKey(String oldKey, String newKey) {\n //remove the batch from its old location\n Collection<Long> batch = removeBatch(oldKey);\n if(index.containsKey(newKey))\n index.get(newKey).addAll(batch);\n else\n index.put(newKey, batch);\n Collection<Long> batchCopy = new HashSet<Long>(batch);\n //put batch in its new location.\n putBatch(newKey, batch);\n return batchCopy;\n }",
"private static ICacheValet getCacheValetJavaConcurrentMapImpl() {\n\n\t\t// Obtenemos la única instancia de esta implementación.\n\t\tICacheValet result = ACacheValet.getInstance();\n\n\t\t// Si es nula, la creamos.\n\t\tif (result == null) {\n\n\t\t\tresult = new ConcurrentMapCacheValet();\n\t\t\tif (result != null) {\n\t\t\t\tACacheValet.setInstance(result);\n\t\t\t}\n\n\t\t}\n\n\t\t// La devolvemos.\n\t\treturn result;\n\n\t}",
"@Test\n\tpublic void doEqualsTestSameMapDifferentInstances() {\n\t\tassertTrue(bigBidiMap.equals(bigBidiMap_other));\n\n\t}",
"private ThreadLocalMap(ThreadLocalMap parentMap) {\n Entry[] parentTable = parentMap.table;\n int len = parentTable.length;\n setThreshold(len);\n table = new Entry[len];\n\n for (int j = 0; j < len; j++) {\n Entry e = parentTable[j];\n if (e != null) {\n @SuppressWarnings(\"unchecked\")\n ThreadLocal<Object> key = (ThreadLocal<Object>) e.get();\n if (key != null) {\n Object value = key.childValue(e.value);\n Entry c = new Entry(key, value);\n int h = key.threadLocalHashCode & (len - 1);\n while (table[h] != null)\n h = nextIndex(h, len);\n table[h] = c;\n size++;\n }\n }\n }\n }",
"private void rehash() {\n LinkedList<Entry<K,V>>[] oldTable = table;\n table = new LinkedList[oldTable.length * 2 + 1];\n numKeys = 0;\n for (LinkedList<Entry<K, V>> list : oldTable) {\n if (list != null) {\n for (Entry<K,V> entry : list) {\n put(entry.getKey(), entry.getValue());\n numKeys++;\n }\n }\n }\n }",
"private byte l() {\r\n\t\treturn left_map;\r\n\t}"
]
| [
"0.60988283",
"0.6077354",
"0.57535267",
"0.559619",
"0.54835063",
"0.5340261",
"0.5252422",
"0.52379155",
"0.5139082",
"0.51174927",
"0.5115084",
"0.50942",
"0.5035788",
"0.49935243",
"0.49899447",
"0.49804306",
"0.49804306",
"0.4961983",
"0.49231187",
"0.49157915",
"0.49125242",
"0.49014533",
"0.48617393",
"0.48539853",
"0.4838065",
"0.48100477",
"0.48077932",
"0.4802533",
"0.47999698",
"0.47959772",
"0.4792388",
"0.47854632",
"0.47822005",
"0.47822",
"0.47766143",
"0.47735626",
"0.47669116",
"0.47604784",
"0.475776",
"0.47557086",
"0.47436783",
"0.47398588",
"0.47290862",
"0.47156096",
"0.47091484",
"0.47020534",
"0.46995708",
"0.46957013",
"0.46955478",
"0.4680584",
"0.46744916",
"0.46742243",
"0.4663932",
"0.4661305",
"0.46603557",
"0.46601757",
"0.46528426",
"0.4645454",
"0.4645454",
"0.4645454",
"0.4645454",
"0.46371603",
"0.46233687",
"0.46224558",
"0.462085",
"0.46115005",
"0.46080646",
"0.46066326",
"0.46019724",
"0.45979214",
"0.4595657",
"0.4591414",
"0.45855296",
"0.45840588",
"0.45820874",
"0.45794547",
"0.45697618",
"0.45668676",
"0.45637584",
"0.4563361",
"0.4549831",
"0.45474648",
"0.45386013",
"0.4535925",
"0.45319393",
"0.4531605",
"0.45305255",
"0.45279145",
"0.45247632",
"0.45215192",
"0.45158264",
"0.45119163",
"0.45075667",
"0.45046934",
"0.45042458",
"0.4503099",
"0.45019504",
"0.45008132",
"0.44987038",
"0.44971946",
"0.44955078"
]
| 0.0 | -1 |
interrupt the wait (kill this thread) | public void dispose() {
interruptWait(AceSignalMessage.SIGNAL_TERM, "disposed");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void cancel() {\n\tsleepThread.interrupt();\n }",
"public void interrupt();",
"public void timerInterrupt() \n {\n\t\n Machine.interrupt().disable(); //disable\n\n //if waitingQueue is empty, and current time is greater than or equal to the first ThreadWaits, wakeUp time,\n while(!waitingQueue.isEmpty() && (waitingQueue.peek().wakeUp < Machine.timer().getTime()\n || waitingQueue.peek().wakeUp == Machine.timer().getTime())) {\n waitingQueue.poll().thread.ready(); //pop head\n }\n\n KThread.currentThread().yield();\n\n Machine.interrupt().enable(); //enable\n\n }",
"private void stopThreadByInterrupt() {\n if (customThread != null) {\n try {\n customThread.join();\n customThread.interrupt();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }",
"public void waitStop() throws InterruptedException {\n if (Thread.currentThread() == thread) {\n throw new RuntimeException(\n \"waitStop() may not be invoked from job queue (would lead to deadlock).\");\n }\n synchronized (this) {\n if (!started || stopped) {\n return;\n }\n stopped = true;\n }\n stop.await();\n }",
"public void stopWaitTime(){\r\n\t\twaitTime.stop();\r\n\t}",
"void stopOnCompletion(Thread waiting);",
"public void timerInterrupt() {\n \tboolean istr = Machine.interrupt().disable();\n \t\n \twhile (sleepingThreads.size()>0 && sleepingThreads.peek().time <= Machine.timer().getTime()) {\n \t\tsleepingThreads.remove().ready();\n \t}\n \n \tKThread.yield();\n \t\n \t//Machine.interrupt().enable();\n \tMachine.interrupt().restore(istr);\n \n }",
"public void interrupt() {\n interrupted.set(true);\n Thread.currentThread().interrupt();\n }",
"public void stop()\n\t{\n\t\tsynchronized(m_vecThreads)\n\t\t{\n\t\t\tThread thread;\n\t\t\tif (m_vecThreads.size() > 0)\n\t\t\t{\n\t\t\t\tthread = (Thread)m_vecThreads.elementAt(0);\n\t\t\t\twhile (thread.isAlive())\n\t\t\t\t{\n\t\t\t\t\tthread.interrupt();\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tm_vecThreads.wait(250);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void stop() {\n this.stopRequested.set(true);\n synchronized(this) {\n notifyAll(); // Wakes run() if it is sleeping\n }\n }",
"public void stopAndWait() throws InterruptedException {\n\t\t//Store resetCounter.\n\t\tint curReset = resetCounter;\n\t\t\n\t\t//Mark that we want to stop\n\t\tstop();\n\t\t\n\t\t//Wait until we have stopped, or reset has been called.\n\t\twhile (!isStopped() && curReset == resetCounter) {\n\t\t\tif (thread != null) {\n\t\t\t\tthread.join(25L);\n\t\t\t} else {\n\t\t\t\tThread.sleep(25L);\n\t\t\t}\n\t\t}\n\t}",
"public void interrupt() {\n\t\tinterrupted = true;\n\t}",
"public void stop() {\n if (this.thread != null) {\n Thread thre = this.thread;\n this.thread = null;\n thre.interrupt();\n }\n }",
"@Override\n public void interruptWait() {\n _vcVlsi.cancelWaitForUpdates();\n }",
"public abstract void interrupt();",
"public void cancel() {\n if( this.attachedThread != null ) {\n this.attachedThread.interrupt();\n }\n else {\n this.attachedFuture.cancel( true );\n\n if( this.attachedHipanFuture != null ) {\n this.attachedHipanFuture.fail( new InterruptedException( \"Task was canceled\" ) );\n }\n }\n }",
"public synchronized void quit() {\n\t\tif(alive) {\n\t\t\talive = false;\n\t\t\t// thread might be waiting for commands so give it an interrupt.\n\t\t\tthread.interrupt();\n\t\t}\n\t}",
"protected void interrupted() {\n \tRobot.conveyor.stop();\n }",
"private void stopWait(int ticket) throws CommandException, InterruptedException {\n if (DEBUG) System.err.printf(\"Train: %d\\tWaiting for track %d\\n\", this.id, ticket);\n TSimInterface.getInstance().setSpeed(this.id, 0);\n acc(ticket);\n TSimInterface.getInstance().setSpeed(this.id, speed);\n if (DEBUG) System.err.printf(\"Train: %d\\tGot track %d\\n\", this.id, ticket);\n }",
"public void timerInterrupt() {\n\n\t\tMachine.interrupt().disable();\n\n\t\t//while loop the threads in the TreeSet\n\t\twhile(!theThreads.isEmpty()) {\n\t\t\tPair curr_thread = theThreads.first(); //Fetch the first (lowest wakeTime) on the list\n\n\t\t\tif(curr_thread.wakeTime < Machine.timer().getTime()) { //Is the wakeTime for that thread < current time\n\t\t\t\ttheThreads.pollFirst(); //Remove it from the TreeSet, curr_thread holds it still.\n\t\t\t\tcurr_thread.thread.ready(); //Ready that thread\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak; //break the loop, not ready yet.\n\t\t\t}\n\t\t}\n\t\tMachine.interrupt().enable();\n\t\tKThread.yield(); //Yield the current thread.\n\t}",
"private void kickControlThread() {\r\n\t\tcontrolSignal.release();\r\n\t}",
"public void stop() {\n thread.interrupt();\n }",
"public void stopRequest()\r\n\t{\r\n\t\tnoStopRequested = false;\r\n\t\tinternalThread.interrupt();\r\n\t}",
"public void stop() {\n thread.interrupt();\n }",
"private synchronized void stopEventThread() {\n if (eventThread != null) {\n eventThread.abort();\n try {\n eventThread.join();\n } catch (InterruptedException e) {\n System.err.println(\"Interrupted waiting for event handling thread to abort.\");\n }\n eventThread = null;\n }\n }",
"public void interrupt() {\r\n ServerLogger.log(this.myID + \" interrupt()\");\r\n this.run = false;\r\n //super.interrupt(); //To change body of overridden methods use File | Settings | File Templates.\r\n }",
"public void cancel() {\n\t\tinterrupt();\n\t}",
"public void Stop() {\r\n\t\t\r\n\t\tthread = null;\r\n\t}",
"public void stopThread() \n {\n \tthis.exit = true;\n \t//ctr.getMemory().programmcounter = 65536;\n }",
"public synchronized void stop(){\n\t\tthis.running = false;\n\t\ttry {\n\t\t\tthis.thread.join();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void interrupt() {\n // the usual check for a set interrupt flag interferes with the looper used, therefore an\n // interrupt from outside directly terminates this handler.\n if (mThread != null) {\n terminate(true);\n } else {\n super.interrupt();\n }\n }",
"public void stopProcessing() {\n interrupted = true;\n }",
"public synchronized void stop() {\n try {\n if (isRunning) {\n isRunning = false;\n thread.join();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.exit(0);\n }",
"public void stop() {\n stopped.set(true);\n if (this.currentThread != null) {\n this.currentThread.interrupt();\n this.currentThread = null;\n }\n }",
"public void actionPerformed(ActionEvent e)\n {\n testThread.interrupt();\n }",
"final void interruptTask() {\n/* 82 */ Thread currentRunner = this.runner;\n/* 83 */ if (currentRunner != null) {\n/* 84 */ currentRunner.interrupt();\n/* */ }\n/* 86 */ this.doneInterrupting = true;\n/* */ }",
"public void stopMonitor() {\r\n stopped = true;\r\n synchronized (waitLock) {\r\n waitLock.notifyAll();\r\n }\r\n }",
"private void customWait() throws InterruptedException {\n while (!finished) {\n Thread.sleep(1);\n }\n finished = false;\n }",
"@Override\n public void stopThread() {\n Log.d(TAG, \"Stopping \" + getName() + \" thread!\");\n running = false;\n doStopAction();\n boolean retry = true;\n while (retry) {\n try {\n join();\n retry = false;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }",
"synchronized void setInterrupted() {\n stopped = true;\n inputGiven = true;\n notifyAll();\n }",
"public void interrupted() {\n\n }",
"protected void interrupted() {\n \tRobot.driveTrain.stop();\n }",
"protected void interrupted() {\r\n\t }",
"protected void interrupted() {\n \tRobot.drive.stop();\n }",
"@Override\r\n public void unsubscribe() {\n t.interrupt();\r\n }",
"public static void inter() throws InterruptedException {\r\n\t\t// Thread.currentThread().sleep(3000);\r\n\t\tstop = true;\r\n\t\t// Thread.currentThread().sleep( 3000 );\r\n\t}",
"protected void interrupted()\n\t{\n\t\tstop();\n\t}",
"public void stop() {\n thread = null;\n }",
"protected void interrupted() {\n \tRobot.lift.hold();\n \tRobot.debug.Stop();\n }",
"private void workerStop() {\r\n\r\n\t\tif (_workerThread == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsynchronized (_workerLock) {\r\n\r\n\t\t\t_workerCancelled = true;\r\n\t\t\t_workerStopped = true;\r\n\r\n\t\t\t_workerLock.notifyAll();\r\n\t\t}\r\n\r\n\t\twhile (_workerThread != null) {\r\n\t\t\tif (!_display.readAndDispatch()) {\r\n\t\t\t\t_display.sleep();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public synchronized void stop() {\n try {\n thread.join();\n running = false;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void interrupt() {\n close();\n }",
"public void checkInterruption() throws InterruptedException ;",
"@Override\n public void run(){\n\n Thread.currentThread().interrupt();\n }",
"public void stop() {\n executor.shutdownNow();\n rescanThread.interrupt();\n }",
"public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"protected void interrupted() {\n\t\tL.ogInterrupt(this);\n\t}",
"public void requestStop( ) {\n\t\tif (verbose) System.out.println(\"requestStop called, about to enter synchronized\");\n\t\tsynchronized (this) {\n\t\t\tif (verbose) System.out.println(\"... entered synchronized\");\n\t\t\tif( threadStatus == PAUSED ) {\n\t\t\t\tif (verbose) System.out.println(\"was paused so interrupting\");\n\t\t\t\tthis.interrupt();\n\t\t\t\tif (verbose) System.out.println(\"done interrupting\");\n\t\t\t}\n\t\t\tthreadStatus = STOPPING;\n\t\t\treportThreadStatus();\n\t\t\tif (verbose) System.out.println(\"... leaving synchronized\");\n\t\t}\n\t\tif (verbose) System.out.println(\"requestStop finished (threadStatus now \"+threadStatus+\")\");\n\t}",
"protected void interrupted() {\r\n }",
"protected void interrupted() {\r\n }",
"protected void interrupted() {\r\n }",
"protected void interrupted() {\r\n }",
"protected void interrupted() {\r\n }",
"protected void interrupted() {\r\n }",
"public void halt ( )\n\t{\n\t\tthis.running = false;\n\t}",
"public synchronized void stop(){\n if(!jogoAtivo) return;\n jogoAtivo = false;\n try {\n thread.join();\n } catch (InterruptedException e ){\n e.printStackTrace();\n }\n }",
"public void signalTheWaiter();",
"public void stop()\n {\n if ( this.threadRunning.get() )\n {\n this.threadRunning.set(false);\n }\n }",
"protected void interrupted() {\n\t\tRobot.roboDrive.stopMotor();\n\t}",
"public synchronized void stop() {\n isRunning = false;\n try {\n thread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"protected void interrupted() {\n \t\n }",
"protected void interrupted() {\n \t\n }",
"public void cancel(){\r\n\t\t\r\n\t\ttry{\t\t\t\r\n\t\t\t// Stop the runnable job\r\n\t\t\trunning = false;\r\n\t\t\tjoin(1000);\r\n\t\t\t\r\n\t\t\t// Close socket\r\n\t\t\toSocket.close();\r\n\t\t\t\r\n\t\t}catch(InterruptedException e1){\r\n\t\t\tLog.e(TAG, \"terminating tread failed\", e1);\r\n\t\t}catch (IOException e2) {\r\n\t\t\tLog.e(TAG, \"cancel(), closing socket failed\", e2);\r\n\t\t}\t\r\n\t}",
"void stopAndJoinReplyThread();",
"public void waitUntil(long x) {\n\n\tlong wakeTime = Machine.timer().getTime() + x;\n\tboolean intrState = Machine.interrupt().disable();\n\tKThread.currentThread().time = wakeTime;\n\tsleepingThreads.add(KThread.currentThread());\n\tKThread.currentThread().sleep();\n Machine.interrupt().restore(intrState);\n \n }",
"public void stop() {\n\t\trunflag.set(false);\n\n\t\twhile (worker.isAlive()) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(10); // Wait until it stops\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void stopRunnerThread() {\r\n\t\ttry {\r\n\t\t\tif (runnerThread != null)\r\n\t\t\t\trunnerThread.join();\r\n\t\t} catch (InterruptedException ex) {\r\n\t\t\tassert(false) : \"Unit stopRunnerThread was interrupted\";\r\n\t\t}\r\n\t\t\r\n\t}",
"public void interrupt() {\n this.f3567pI.interrupt();\n }",
"protected void interrupted() {\n \n }",
"public void pauseTilDone() throws InterruptedException { \n\t\t\tthis.me_.join(); \n\t\t}",
"protected void interrupted() {\n\t\tpid.disable();\n\t}",
"@Override\n protected void interrupted() {\n Robot.climber.frontStop();\n Robot.climber.rearStop();\n }",
"public static void ThreadStop()\r\n\t{\r\n\t\tthread_running=false;\r\n\t}",
"public synchronized void stop() throws IOException {\n if (!isStarted()) {\n throw new IllegalStateException(\"The program hasn't started yet.\");\n }\n runStop();\n do {\n try {\n // Since we hold the mutex on this we can wait\n wait(50);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n logger.log(Level.WARNING, \"Wait interrupted\", e);\n }\n runStop();\n } while (isStarted() && !Thread.interrupted());\n }",
"@Override\n public void interrupt() {\n super.interrupt(); //To change body of generated methods, choose Tools | Templates.\n }",
"private void stop(){\n isRunning = false;\n try{\n thread.join();\n }\n catch(InterruptedException e){\n e.printStackTrace();\n }\n }",
"void interrupted(W worker);",
"protected void interrupted() {\n }",
"protected void interrupted() {\n }",
"protected void interrupted() {\n }",
"protected void interrupted() {\n }",
"protected void interrupted() {\n }",
"protected void interrupted() {\n }",
"protected void interrupted() {\n }",
"protected void interrupted() {\n }",
"protected void interrupted() {\n }",
"protected void interrupted() {\n }",
"protected void interrupted() {\n }",
"protected void interrupted() {\n }",
"protected void interrupted() {\n }"
]
| [
"0.74812794",
"0.7117735",
"0.71086884",
"0.7066313",
"0.7055005",
"0.6987925",
"0.69116104",
"0.6864087",
"0.6832283",
"0.68127483",
"0.6809533",
"0.6790585",
"0.67540354",
"0.67211986",
"0.6704439",
"0.6680983",
"0.66804147",
"0.667979",
"0.66434646",
"0.66399944",
"0.6638396",
"0.660604",
"0.6604024",
"0.65947264",
"0.6587166",
"0.657923",
"0.65657836",
"0.6536967",
"0.651322",
"0.64965385",
"0.64695835",
"0.6459707",
"0.64556646",
"0.63981795",
"0.6392313",
"0.63875896",
"0.63823485",
"0.63716304",
"0.63637364",
"0.6359276",
"0.63531935",
"0.6350651",
"0.6344866",
"0.6339901",
"0.63363457",
"0.6332292",
"0.63177526",
"0.6317548",
"0.63097346",
"0.63046384",
"0.63042086",
"0.6289457",
"0.6278811",
"0.6273128",
"0.62586945",
"0.6250119",
"0.62360775",
"0.6213359",
"0.62109566",
"0.62100804",
"0.62100804",
"0.62100804",
"0.62100804",
"0.62100804",
"0.62100804",
"0.6209323",
"0.6199897",
"0.6199283",
"0.6196917",
"0.6190805",
"0.6188683",
"0.6172081",
"0.6172081",
"0.6164781",
"0.6158792",
"0.6147371",
"0.6145516",
"0.61377263",
"0.6137409",
"0.6134821",
"0.61170775",
"0.61098653",
"0.6107036",
"0.61040044",
"0.6092585",
"0.60864085",
"0.60852057",
"0.60811085",
"0.60794514",
"0.60794514",
"0.60794514",
"0.60794514",
"0.60794514",
"0.60794514",
"0.60794514",
"0.60794514",
"0.60794514",
"0.60794514",
"0.60794514",
"0.60794514",
"0.60794514"
]
| 0.0 | -1 |
Serializes and deserializes the specified object. | @SuppressWarnings("unchecked")
static <T> T reserialize(T object) {
checkNotNull(object);
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
try {
ObjectOutputStream out = new ObjectOutputStream(bytes);
out.writeObject(object);
ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()));
return (T) in.readObject();
} catch (IOException | ClassNotFoundException e) {
throw new RuntimeException(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void serialize(Object obj, OutputStream stream) throws IOException;",
"public abstract Object deserialize(Object object);",
"public abstract void serialize(OutputStream stream, T object) throws IOException;",
"private void serializeObject(final Object object, final StringBuffer buffer)\n {\n serializeObject(object, buffer, true);\n }",
"private void serializeSerializable(final Serializable object, final StringBuffer buffer)\n {\n String className;\n Class<?> c;\n Field[] fields;\n int i, max;\n Field field;\n String key;\n Object value;\n StringBuffer fieldBuffer;\n int fieldCount;\n\n this.history.add(object);\n c = object.getClass();\n className = c.getSimpleName();\n buffer.append(\"O:\");\n buffer.append(className.length());\n buffer.append(\":\\\"\");\n buffer.append(className);\n buffer.append(\"\\\":\");\n\n fieldBuffer = new StringBuffer();\n fieldCount = 0;\n while (c != null)\n {\n fields = c.getDeclaredFields();\n for (i = 0, max = fields.length; i < max; i++)\n {\n field = fields[i];\n if (Modifier.isStatic(field.getModifiers())) continue;\n if (Modifier.isVolatile(field.getModifiers())) continue;\n\n try\n {\n field.setAccessible(true);\n key = field.getName();\n value = field.get(object);\n serializeObject(key, fieldBuffer);\n this.history.remove(this.history.size() - 1);\n serializeObject(value, fieldBuffer);\n fieldCount++;\n }\n catch (final SecurityException e)\n {\n // Field is just ignored when this exception is thrown\n }\n catch (final IllegalArgumentException e)\n {\n // Field is just ignored when this exception is thrown\n }\n catch (final IllegalAccessException e)\n {\n // Field is just ignored when this exception is thrown\n }\n }\n c = c.getSuperclass();\n }\n buffer.append(fieldCount);\n buffer.append(\":{\");\n buffer.append(fieldBuffer);\n buffer.append(\"}\");\n }",
"public OffloadableObject(final T object) {\n this.object = object;\n deserialized = true;\n }",
"public String serialize(Object object) {\n\t\treturn serialize(object, false);\n\t}",
"public void writeObject(OutputStream stream, Object object, int format) throws IOException;",
"public abstract <T> SerializationStream writeObject(T t);",
"private void sendObjectToServer (Object obj) throws IOException,\n ClassNotFoundException {\n\n ObjectOutputStream out = new ObjectOutputStream(socket.getOutputStream());\n out.writeObject(obj);\n out.flush();\n }",
"public void writeObject(Object obj) throws IOException;",
"@Override\n\tpublic String putObjectCore(Object object) {\n\t\treturn JSON.encode(object);\n\t}",
"void writeObject(OutputSerializer out) throws java.io.IOException;",
"@Override\n\tpublic byte[] serialize(Object obj) throws SerializationException {\n\t\tif(obj==null) \n\t\t{\n\t\t\treturn EMPTY_BYTE_ARRAY;\n\t\t}\n\t\treturn serializingConverter.convert(obj);\n\t}",
"byte[] serialize(Serializable object);",
"public void writeObject(Object obj) throws IOException\n\t{\n\t\tif (obj == null) {\n\t\t\twriteMark(Ion.NULL);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof IonBinary) {\n\t\t\tfinal IonBinary iObj = (IonBinary) obj;\n\t\t\t\n\t\t\twriteMark(Ion.getMark(obj));\n\t\t\tiObj.save(this);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof IonBundled) {\n\t\t\tfinal IonBundled iObj = (IonBundled) obj;\n\t\t\t\n\t\t\twriteMark(Ion.getMark(obj));\n\t\t\t\n\t\t\tfinal IonDataBundle bundle = new IonDataBundle();\n\t\t\tiObj.save(bundle);\n\t\t\twriteBundle(bundle);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (Ion.isObjectIndirectBundled(obj)) {\n\t\t\tfinal IonizerBundled<?> ionizer = Ion.getIonizerBundledForClass(obj.getClass());\n\t\t\t\n\t\t\twriteMark(Ion.getMark(obj));\n\t\t\t\n\t\t\tfinal IonDataBundle bundle = new IonDataBundle();\n\t\t\tionizer._save(obj, bundle);\n\t\t\twriteBundle(bundle);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (Ion.isObjectIndirectBinary(obj)) {\n\t\t\tfinal IonizerBinary<?> ionizer = Ion.getIonizerBinaryForClass(obj.getClass());\n\t\t\t\n\t\t\twriteMark(Ion.getMark(obj));\n\t\t\t\n\t\t\tionizer._save(obj, this);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Map) {\n\t\t\twriteMark(Ion.MAP);\n\t\t\twriteMap((Map<?, ?>) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Collection) {\n\t\t\twriteMark(Ion.SEQUENCE);\n\t\t\twriteSequence((Collection<?>) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Boolean) {\n\t\t\twriteMark(Ion.BOOLEAN);\n\t\t\twriteBoolean((Boolean) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Byte) {\n\t\t\twriteMark(Ion.BYTE);\n\t\t\twriteByte((Byte) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Character) {\n\t\t\twriteMark(Ion.CHAR);\n\t\t\twriteChar((Character) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Short) {\n\t\t\twriteMark(Ion.SHORT);\n\t\t\twriteShort((Short) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Integer) {\n\t\t\twriteMark(Ion.INT);\n\t\t\twriteInt((Integer) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Long) {\n\t\t\twriteMark(Ion.LONG);\n\t\t\twriteLong((Long) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Float) {\n\t\t\twriteMark(Ion.FLOAT);\n\t\t\twriteFloat((Float) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Double) {\n\t\t\twriteMark(Ion.DOUBLE);\n\t\t\twriteDouble((Double) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof String) {\n\t\t\twriteMark(Ion.STRING);\n\t\t\twriteString((String) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof boolean[]) {\n\t\t\twriteMark(Ion.BOOLEAN_ARRAY);\n\t\t\twriteBooleans((boolean[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof byte[]) {\n\t\t\twriteMark(Ion.BYTE_ARRAY);\n\t\t\twriteBytes((byte[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof char[]) {\n\t\t\twriteMark(Ion.CHAR_ARRAY);\n\t\t\twriteChars((char[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof short[]) {\n\t\t\twriteMark(Ion.SHORT_ARRAY);\n\t\t\twriteShorts((short[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof int[]) {\n\t\t\twriteMark(Ion.INT_ARRAY);\n\t\t\twriteInts((int[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof long[]) {\n\t\t\twriteMark(Ion.LONG_ARRAY);\n\t\t\twriteLongs((long[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof float[]) {\n\t\t\twriteMark(Ion.FLOAT_ARRAY);\n\t\t\twriteFloats((float[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof double[]) {\n\t\t\twriteMark(Ion.DOUBLE_ARRAY);\n\t\t\twriteDoubles((double[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof String[]) {\n\t\t\twriteMark(Ion.STRING_ARRAY);\n\t\t\twriteStrings((String[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Object[]) {\n\t\t\twriteMark(Ion.OBJECT_ARRAY);\n\t\t\twriteObjects((Object[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tthrow new IOException(\"Object \" + obj + \" could not be be written to stream.\");\n\t}",
"private void sendObject(Object obj){\r\n try {\r\n out.reset();\r\n out.writeObject(obj);\r\n out.flush();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"private byte[] serialize(RealDecisionTree object){\n try{\n // Serialize data object to a file\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"MyObject.ser\"));\n out.writeObject(object);\n out.close();\n\n // Serialize data object to a byte array\n ByteArrayOutputStream bos = new ByteArrayOutputStream() ;\n out = new ObjectOutputStream(bos) ;\n out.writeObject(object);\n out.close();\n\n // Get the bytes of the serialized object\n byte[] buf = bos.toByteArray();\n return buf;\n } catch (IOException e) {\n System.exit(1);\n }\n\n return null;\n }",
"protected byte[] objectToBytes(O object) throws OBException {\r\n try {\r\n return object.store();\r\n\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n }",
"Object defaultReplaceObject(Object obj) throws IOException {\n\t logger.log(Level.FINEST, \"Object in stream instance of: {0}\", obj.getClass());\n\t try {\n\t\tif (obj instanceof DynamicProxyCodebaseAccessor ){\n\t\t logger.log(Level.FINEST, \"Object in stream instance of DynamicProxyCodebaseAccessor\");\n\t\t obj = \n\t\t ProxySerializer.create(\n\t\t\t (DynamicProxyCodebaseAccessor) obj,\n\t\t\t aout.defaultLoader,\n\t\t\t aout.getObjectStreamContext()\n\t\t );\n\t\t} else if (obj instanceof ProxyAccessor ) {\n\t\t logger.log(Level.FINEST, \"Object in stream instance of ProxyAccessor\");\n\t\t obj = \n\t\t ProxySerializer.create(\n\t\t\t (ProxyAccessor) obj,\n\t\t\t aout.defaultLoader,\n\t\t\t aout.getObjectStreamContext()\n\t\t );\n\t\t}\n\t } catch (IOException e) {\n\t\tlogger.log(Level.FINE, \"Unable to create ProxyAccessorSerializer\", e);\n\t\tthrow e;\n\t }\n\t Class c = obj.getClass();\n\t Class s = serializers.get(c);\n\t if (c.isAnnotationPresent(AtomicSerial.class)){} // Ignore\n\t else if (c.isAnnotationPresent(AtomicExternal.class)){} // Ignore\n\t // REMIND: stateless objects, eg EmptySet?\n\t else if (s != null){\n\t\ttry {\n\t\t Constructor constructor = s.getDeclaredConstructor(c);\n\t\t obj = constructor.newInstance(obj);\n\t\t} catch (NoSuchMethodException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (SecurityException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (InstantiationException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (IllegalAccessException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (IllegalArgumentException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (InvocationTargetException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t}\n\t }\n\t else if (obj instanceof Map) obj = new MapSerializer((Map) obj);\n\t else if (obj instanceof Set) obj = new SetSerializer((Set) obj);\n\t else if (obj instanceof Collection) obj = new ListSerializer((Collection) obj);\n\t else if (obj instanceof Permission) obj = new PermissionSerializer((Permission) obj);\n\t else if (obj instanceof Throwable) obj = new ThrowableSerializer((Throwable) obj);\n\t logger.log(Level.FINEST, \"Returning object in stream instance of: {0}\", obj.getClass());\n\t return obj;\n\t}",
"public String serialize(final Object object)\n {\n StringBuffer buffer;\n\n buffer = new StringBuffer();\n serializeObject(object, buffer);\n return buffer.toString();\n }",
"public static Serializable serializeObject(final Serializable object) {\n\t\tSerializable ret = object;\n\t\tif (lookForJbossMarshaller && EjbcaConfiguration.getEffectiveApplicationVersion() == 311) {\n\t\t\ttry {\n\t\t\t\t// Do \"ret = new org.jboss.invocation.MarshalledValue(object)\" with inflection, since we can't know\n\t\t\t\t// if we are running on a JBoss AS or not.\n\t\t\t\tret = (Serializable) Class.forName(JBOSS_MARSHALL_CLASS).getConstructor(Object.class).newInstance(object);\n\t\t\t} catch (ClassNotFoundException e1) {\n\t\t\t\tLOG.debug(JBOSS_MARSHALL_CLASS + \" does not exist. Assuming that this is a non-JBoss installation.\");\n\t\t\t\tlookForJbossMarshaller = false;\t// Can only go from true to false, so there is no need for synchronization\n\t\t\t} catch (Exception e) {\n\t\t\t\tLOG.error(\"Unable to store as JBoss MarshalledValue.\", e);\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public void serialize(Object object, Writer writer) throws IOException {\n\t\twriter.write(serialize(object));\n\t\twriter.flush();\n\t}",
"public interface Serialization {\n\n byte[] objSerialize(Object obj);\n\n Object ObjDeserialize(byte[] bytes);\n}",
"private void writeObject(final ObjectOutputStream out) throws IOException {\n try {\n if (location == null) location = IOHelper.serializeData(object);\n IOHelper.writeData(location, new StreamOutputDestination(out));\n } catch (final IOException e) {\n throw e;\n } catch (final Exception e) {\n throw new IOException(e);\n }\n }",
"void marshal(Object obj);",
"void decodeObject();",
"@SuppressWarnings(\"PMD.CloseResource\") // PMD does not understand Closer\n protected static void serializeObject(Serializable object, Path outputFile) {\n try {\n try (Closer closer = Closer.create()) {\n OutputStream out = closer.register(Files.newOutputStream(outputFile));\n BufferedOutputStream bout = closer.register(new BufferedOutputStream(out));\n serializeToLz4Data(object, bout);\n }\n } catch (Exception e) {\n throw new BatfishException(\"Failed to serialize object to output file: \" + outputFile, e);\n }\n }",
"private byte[] serialize(Serializable object) throws Exception {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n ObjectOutputStream objectStream = new ObjectOutputStream(stream);\n objectStream.writeObject(object);\n objectStream.flush();\n return stream.toByteArray();\n }",
"@Override\n @SuppressWarnings(\"unchecked\")\n public void serialize(OutputStream stream, BaseType o) throws IOException {\n Class c = o.getClass();\n val si = this.serializersByType.get(c);\n ensureCondition(si != null, \"No serializer found for %s.\", c.getName());\n si.serializer.beforeSerialization(o);\n\n // Encode the Serialization Format Version.\n stream.write(SERIALIZER_VERSION);\n\n // Encode the Object type; this will be used upon deserialization.\n stream.write(si.id);\n\n // Write contents.\n si.serializer.serializeContents(stream, o);\n }",
"private void serializeObject(final Object object, final StringBuffer buffer,\n final boolean allowReference)\n {\n if (object == null)\n {\n serializeNull(buffer);\n }\n else if (allowReference && serializeReference(object, buffer))\n {\n return;\n }\n else if (object instanceof String)\n {\n serializeString((String) object, buffer);\n }\n else if (object instanceof Character)\n {\n serializeCharacter((Character) object, buffer);\n }\n else if (object instanceof Integer)\n {\n serializeInteger(((Integer) object).intValue(), buffer);\n }\n else if (object instanceof Short)\n {\n serializeInteger(((Short) object).intValue(), buffer);\n }\n else if (object instanceof Byte)\n {\n serializeInteger(((Byte) object).intValue(), buffer);\n }\n else if (object instanceof Long)\n {\n serializeLong(((Long) object).longValue(), buffer);\n }\n else if (object instanceof Double)\n {\n serializeDouble(((Double) object).doubleValue(), buffer);\n }\n else if (object instanceof Float)\n {\n serializeDouble(((Float) object).doubleValue(), buffer);\n }\n else if (object instanceof Boolean)\n {\n serializeBoolean((Boolean) object, buffer);\n }\n else if (object instanceof Mixed)\n {\n serializeMixed((Mixed) object, buffer);\n return;\n }\n else if (object instanceof Object[])\n {\n serializeArray((Object[]) object, buffer);\n return;\n }\n else if (object instanceof Collection<?>)\n {\n serializeCollection((Collection<?>) object, buffer);\n return;\n }\n else if (object instanceof Map<?, ?>)\n {\n serializeMap((Map<?, ?>) object, buffer);\n return;\n }\n else if (object instanceof Serializable)\n {\n serializeSerializable((Serializable) object, buffer);\n return;\n }\n else\n {\n throw new SerializeException(\"Unable to serialize \"\n + object.getClass().getName());\n }\n\n this.history.add(object);\n }",
"byte[] toJson(Object object) throws Exception {\r\n return this.mapper.writeValueAsString(object).getBytes();\r\n }",
"@Override\r\n public byte[] toBinary(Object obj) {\r\n return JSON.toJSONBytes(obj, SerializerFeature.WriteClassName);\r\n }",
"public static String toJSON(final Object object) {\r\n\t\tString jsonString = null;\r\n\t\ttry\t{\r\n\t\t\tif (object != null)\t{\r\n\t\t\t\tjsonString = SERIALIZER.serialize(object);\r\n\t\t\t}\r\n\t\t} catch (SerializeException ex) {\r\n\t\t\tLOGGER.log(Level.WARNING, \"JSON_UTIL:Error in serializing to json\",\r\n\t\t\t\t\tex);\r\n\t\t\tjsonString = null;\r\n\r\n\t\t}\r\n\t\treturn jsonString;\r\n\t}",
"@Override\n public void serializeObject(Object o, int hashCode, String destDir) {\n // throw new NotImplementedException();\n }",
"@Override\n public byte[] serialize(T object) {\n if (object == null) {\n return null;\n }\n\n if (glueSchemaRegistryJsonSchemaCoder == null) {\n glueSchemaRegistryJsonSchemaCoder = glueSchemaRegistryJsonSchemaCoderProvider.get();\n }\n return glueSchemaRegistryJsonSchemaCoder.registerSchemaAndSerialize(object);\n }",
"public static Object read(Object obj) {\n if (obj instanceof byte[] byteArray) {\n return SafeEncoder.encode(byteArray);\n }\n if (obj instanceof List) {\n return ((List<?>) obj).stream().map(Jupiter::read).toList();\n }\n\n return obj;\n }",
"@Override\n public String toJson(Object object) {\n if (null == object) {\n return null;\n }\n return JSON.toJSONString(object, SerializerFeature.DisableCircularReferenceDetect);\n }",
"public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;",
"public interface Serializable {\n\n\t/**\n\t * Method to convert the object into a stream\n\t *\n\t * @param out OutputSerializer to write the object to\n\t * @throws IOException in case of an IO-error\n\t */\n\tvoid writeObject(OutputSerializer out) throws java.io.IOException;\n\n\t/** \n\t * Method to build the object from a stream of bytes\n\t *\n\t * @param in InputSerializer to read from\n\t * @throws IOException in case of an IO-error\n\t */\n\tvoid readObject(InputSerializer in) throws java.io.IOException;\n}",
"@SuppressWarnings(\"unchecked\")\n protected static <T> T cloneWithSerialization(final T obj) {\n\n ObjectOutputStream objectsOut = null;\n ObjectInputStream ois = null;\n try {\n try {\n final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();\n objectsOut = new ObjectOutputStream(bytesOut);\n\n objectsOut.writeObject(obj);\n objectsOut.flush();\n\n final byte[] bytes = bytesOut.toByteArray();\n\n ois = new ObjectInputStream(new ByteArrayInputStream(bytes));\n\n return (T) ois.readObject();\n } finally {\n if (objectsOut != null)\n objectsOut.close();\n if (ois != null)\n ois.close();\n }\n } catch (ClassNotFoundException ex) {\n throw new AssertionError(ex);\n } catch (IOException ex) {\n throw new AssertionError(ex);\n }\n }",
"public static byte[] serialize(Object object) {\n ByteArrayOutputStream bos = null;\n ObjectOutputStream oos = null;\n try {\n bos = new ByteArrayOutputStream();\n oos = new ObjectOutputStream(bos);\n oos.writeObject(object);\n return bos.toByteArray();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (null != oos) {\n try {\n oos.close();\n }\n catch (IOException ex) {}\n }\n if (null != bos) {\n try {\n bos.close();\n }\n catch (IOException ex) {}\n }\n }\n }",
"public void setObject(XSerial obj);",
"public String toJsonfrmObject(Object object) {\n try {\n ObjectMapper mapper = new ObjectMapper();\n mapper.setDateFormat(simpleDateFormat);\n return mapper.writeValueAsString(object);\n } catch (IOException e) {\n logger.error(\"Invalid JSON!\", e);\n }\n return \"\";\n }",
"void readObject(InputSerializer in) throws java.io.IOException;",
"public interface Serializer {\n\n /**\n * Serializes the given object to the given output stream.\n *\n * @param <T> the object type\n * @param obj the object to serialize\n * @param type the class type\n * @param os the output stream\n *\n * @throws SerializationException if serialization fails\n */\n public <T> void serialize(T obj, Class<T> type, OutputStream os) throws SerializationException;\n\n /**\n * Deserializes an object of the given type from the given input stream.\n *\n * @param <T> the object type\n * @param type the class type\n * @param is the input stream\n *\n * @return the object\n *\n * @throws SerializationException if serialization fails\n */\n public <T> T deserialize(Class<T> type, InputStream is) throws SerializationException;\n\n}",
"Object deserialize(Class objClass, InputStream stream) throws IOException;",
"public void writeObject(Object obj, String path)throws IOException{\n FileOutputStream fos = new FileOutputStream(path);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n\n oos.writeObject(obj);\n oos.close();\n }",
"public static void writeObject(JsonGenerator jsonGenerator, Object object) throws IOException {\n\n if (object == null) {\n jsonGenerator.writeNull();\n return;\n }\n\n if (object instanceof String) {\n jsonGenerator.writeString((String) object);\n return;\n }\n\n if (object instanceof Short) {\n jsonGenerator.writeNumber((Short) object);\n return;\n }\n\n if (object instanceof Integer) {\n jsonGenerator.writeNumber((Integer) object);\n return;\n }\n\n if (object instanceof Long) {\n jsonGenerator.writeNumber((Long) object);\n return;\n }\n\n if (object instanceof BigDecimal) {\n jsonGenerator.writeNumber((BigDecimal) object);\n return;\n }\n\n if (object instanceof Float) {\n jsonGenerator.writeNumber((Float) object); // Not GC-free!\n return;\n }\n\n if (object instanceof Double) {\n jsonGenerator.writeNumber((Double) object); // Not GC-free!\n return;\n }\n\n if (object instanceof byte[]) {\n jsonGenerator.writeBinary((byte[]) object);\n return;\n }\n\n jsonGenerator.writeObject(object);\n\n }",
"public void writeObject ();",
"public ByteArraySegment serialize(T object) throws IOException {\n val result = new ByteBufferOutputStream();\n serialize(result, object);\n return result.getData();\n }",
"public void setObject(T object)\n\t{\n\t\tthis.object = object;\n\t}",
"public void sendObjectToServer(Serializable obj)\r\n\t\t\tthrows TransmissionException {\r\n\t\trmiClient.sendObjectToServer(obj);\r\n\t}",
"@Override\n public final void writeTo(final Object object, final Class<?> type,\n final Type genericType, final Annotation[] annotations,\n final MediaType mediaType,\n final MultivaluedMap<String, Object> httpHeaders,\n final OutputStream entityStream) throws IOException {\n OutputStreamWriter writer = new OutputStreamWriter(entityStream,\n \"UTF-8\");\n try {\n Type jsonType;\n if (type.equals(genericType)) {\n jsonType = type;\n } else {\n jsonType = genericType;\n }\n getGson().toJson(object, jsonType, writer);\n } finally {\n try {\n if (writer != null) {\n writer.close();\n }\n } catch (IOException e) {\n // ignore, nothing to be done here anyway\n }\n }\n }",
"public <T> void serialize(T obj, Class<T> type, OutputStream os) throws SerializationException;",
"public boolean writeObject(Serializable object){\n try {\n FileOutputStream fileOut = new FileOutputStream(name);\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(object);\n out.close();\n fileOut.close();\n System.out.println(\"Serialized data is saved in: \" + name);\n return true;\n } \n catch (IOException i) {\n System.out.println(\"Failed to load!\");\n return false;\n }\n }",
"private void testSerializedObject() {\n\t\tMessage message = Message.createMessage(getId(), \"Alarms\");\n\t\tTestObject obj = new TestObject();\n\n\t\tmessage.setPayload(obj);\n\n\t\tSystem.out.println(\"Client: [\" + getClientName() + \"] sending test serialized object\");\n\t\tsend(message);\n\t}",
"public static byte[] objectToBytes( Object object ) throws IOException{\n byte[] output = null;\n if( object != null ){\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n ObjectOutputStream out = new ObjectOutputStream(stream);\n out.writeObject(object);\n output = stream.toByteArray();\n }\n return output;\n }",
"public boolean SerializeObject(Object object, String sFilePath) {\n boolean bRetVal = false;\n File f = null;\n FileOutputStream fos = null;\n ObjectOutputStream oos = null;\n try {\n f = new File(sFilePath);\n\n if (f.exists()) {\n f.delete();\n }\n\n File dir = new File(f.getParent());\n dir.mkdirs();\n f.createNewFile();\n\n fos = new FileOutputStream(f);\n oos = new ObjectOutputStream(fos);\n\n } catch (Exception e) {\n } finally {\n try {\n oos.writeObject(object);\n } catch (Exception e) {\n }\n try {\n oos.close();\n } catch (Exception e) {\n }\n try {\n fos.close();\n } catch (Exception e) {\n }\n f = null;\n return bRetVal;\n }\n }",
"public void serialize() {\n FileOutputStream fileOutput = null;\n ObjectOutputStream outStream = null;\n // attempts to write the object to a file\n try {\n clearFile();\n fileOutput = new FileOutputStream(data);\n outStream = new ObjectOutputStream(fileOutput);\n outStream.writeObject(this);\n } catch (Exception e) {\n } finally {\n try {\n if (outStream != null)\n outStream.close();\n } catch (Exception e) {\n }\n }\n }",
"private static <T extends Serializable> byte[] pickle(T obj)\n throws IOException {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(baos);\n oos.writeObject(obj);\n oos.close();\n return baos.toByteArray();\n }",
"public static byte[] save(Object obj) {\r\n byte[] bytes = null;\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n ObjectOutputStream oos = null;\r\n try {\r\n oos = new ObjectOutputStream(baos);\r\n oos.writeObject(obj);\r\n oos.flush();\r\n bytes = baos.toByteArray();\r\n } catch (IOException e) {\r\n e.printStackTrace(); //To change body of catch statement use Options | File Templates.\r\n }\r\n return bytes;\r\n }",
"@Override\n\tpublic String encode(Message object) throws EncodeException {\n\t\treturn new Gson().toJson(object);\n\t}",
"public interface Serializable {\n /** Convert object into byte sequence. */\n void serialize(@NotNull OutputStream out) throws IOException;\n /** Replace object with one converted from byte sequence. */\n void deserialize(@NotNull InputStream in) throws IOException;\n}",
"private String stringify(Object object) throws JsonProcessingException {\n return new ObjectMapper().writeValueAsString(object);\n }",
"public String parseObjectToJson(Object object) {\n\n return gson.toJson(object);\n }",
"@Override\r\n public void setObject(String object) {\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getObjectBytes() {\n java.lang.Object ref = object_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n object_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private void writeObject(java.io.ObjectOutputStream s)\n throws java.lang.ClassNotFoundException,\n java.io.IOException\n {\n s.defaultWriteObject();\n }",
"private void writeToFile(String filename, Object object) {\n try {\n FileOutputStream fileOutputStream = openFileOutput(filename, MODE_PRIVATE);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(object);\n objectOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n public byte[] encodeToBytes(Object object) throws Exception {\n return null;\r\n }",
"public abstract String pickle(Object obj);",
"public static void serialize(Object object, String resourceDir, String filename) {\n\t\ttry\r\n\t\t{\r\n\t\t\tFileOutputStream fileOut;\r\n\t\t\tObjectOutputStream objectOut;\r\n\t\r\n\t\t\tfileOut = new FileOutputStream(resourceDir + filename);\r\n\t\t\tobjectOut = new ObjectOutputStream(fileOut);\r\n\t\t\tobjectOut.writeObject(object);\r\n\t\t\tobjectOut.close();\r\n\t\t\tfileOut.close();\r\n\t\t} catch (IOException i) {\r\n\t\t\t//TODO fail test here?\r\n\t\t\tUtil.printInfo(\"IOException occurred while serializing object: \" + i.getMessage());\r\n\t\t\ti.printStackTrace();\r\n\t\t}\r\n\t}",
"private void writeObject(\n \t\t ObjectOutputStream aOutputStream\n\t\t ) throws IOException {\n\t\t //perform the default serialization for all non-transient, non-static fields\n \t\t aOutputStream.defaultWriteObject();\n \t}",
"public static void serialize(Object obj, String fileName) throws IOException {\n\t\tFileOutputStream fos = new FileOutputStream(fileName);\n\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\toos.writeObject(obj);\n\n\t\tfos.close();\n\t}",
"private void writeObject(java.io.ObjectOutputStream s)\n throws java.lang.ClassNotFoundException,\n\t java.io.IOException\n {\n s.defaultWriteObject();\n }",
"public interface ICustomObjectSerializer {\n\n\t/**\n\t * Must return true if the handler can serialize this object.\n\t * @param object\n\t * @return\n\t */\n\tpublic boolean handlesObject(Object object);\n\t\n\t/**\n\t * Must return true if the handler can deserialize objects of this type.\n\t * @param clazz\n\t * @return\n\t */\n\tpublic boolean handlesType(Class<?> clazz);\n\t\n\t/**\n\t * Serialize an object.\n\t * @param elm\n\t * @param object\n\t */\n\tpublic void serialize(Element elm, Object object) throws TransportException;\n\t\n\t/**\n\t * Deserialize an object.\n\t * @param elm\n\t * @return\n\t */\n\tpublic Object deserialize(Element elm) throws TransportException;\n\t\n}",
"public interface Serializer {\n /**\n * Serializes given serializable object into the byte array.\n *\n * @param object object that will be serialized\n * @return serialized byte array\n */\n byte[] serialize(Serializable object);\n\n /**\n * Deserializes byte array that serialized by {@link #serialize(Serializable)} method.\n *\n * @param bytes byte array that will be deserialized\n * @return deserialized object\n */\n Object deserialize(byte[] bytes);\n}",
"public\tvoid setobject(object obj) {\r\n\t\t oop.value=obj.value;\r\n\t\t oop.size=obj.size;\r\n\t\t \r\n\t}",
"private void writeObject(ObjectOutputStream out) throws IOException {\n out.writeObject(avroObject.getSchema().toString());\n DatumWriter<T> writer = new GenericDatumWriter<>();\n writer.setSchema(avroObject.getSchema());\n Encoder encoder = EncoderFactory.get().binaryEncoder(out, null);\n writer.write(avroObject, encoder);\n encoder.flush();\n }",
"@Override\n public <T> byte[] serialize( final T obj )\n throws IOException\n {\n final byte[] unencrypted = serializer.serialize(obj);\n return encrypt(unencrypted);\n }",
"private void writeObject(ObjectOutputStream out) throws IOException\r\n\t{\r\n\t\tthis.serialize(out);\r\n\t}",
"public static String objectToStr( Object obj ) throws Exception {\n\t\treturn OBJECT_MAPPER.writeValueAsString(obj);\n\t}",
"private void writeObject(String filePath, Object obj) throws IOException {\n OutputStream file = new FileOutputStream(filePath);\n OutputStream buffer = new BufferedOutputStream(file);\n ObjectOutput output = new ObjectOutputStream(buffer);\n output.writeObject(obj);\n output.close();\n }",
"public void setObject(Object aObject) {\r\n\t\tthis.object = aObject;\r\n\t}",
"void setObjectValue(Object dataObject);",
"public static void save(final String filename, final Serializable object)\r\n throws IOException {\r\n FileOutputStream fos = null;\r\n ObjectOutputStream out = null;\r\n\r\n fos = new FileOutputStream(filename);\r\n out = new ObjectOutputStream(fos);\r\n out.writeObject(object);\r\n out.close();\r\n }",
"public static final void serializeToFile(Object object,String filename)\n\t{\n\t\t// Define local constants.\n\n\t\tString METHOD_NAME = \"serializeToFile\";\n\n\t\t// Check the parameters received and throw the appropriate\n\t\t// exception if necessary.\n\n\t\tif ((null == object) || (null == filename))\n\t\t{\n\t\t\tthrow new NullPointerException(Messages.buildErrorMessage(CLASS_NAME,\n\t\t\t METHOD_NAME,\n\t\t\t Messages.NULL_PARAMETER_MSG));\n\t\t}\n\n\t\tif (0 == filename.length())\n\t\t{\n\t\t\tthrow new IllegalArgumentException(Messages.buildErrorMessage(CLASS_NAME,\n\t\t\t METHOD_NAME,\n\t\t\t Messages.ZERO_LENGTH_PARAMETER_MSG));\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tObjectOutputStream objectOutputStream =\n\t\t\t\tnew ObjectOutputStream(new FileOutputStream(filename));\n\t\t\tobjectOutputStream.writeObject(object);\n\t\t\tobjectOutputStream.close();\n\t\t}\n\n\t\tcatch (IOException exception)\n\t\t{\n\t\t\tSystem.out.println(\"Caught: \" + exception);\n\t\t}\n\t}",
"public Object readObject() throws IOException, ClassNotFoundException {\n if (objectInputStream == null) {\n objectInputStream = new ObjectInputStream(byteArrayInputStream);\n }\n return objectInputStream.readObject();\n }",
"public static byte[] serializeObject(final Serializable obj) {\n\t\tfinal ObjectOutputStream out;\n\t\tfinal ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\n\t\ttry {\n\t\t\tout = new ObjectOutputStream(outputStream);\n\n\t\t\tout.writeObject(obj);\n\t\t} catch (final IOException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\treturn outputStream.toByteArray();\n\t}",
"public void registerObject(NetObject object);",
"public static void writeObject(Activity activity, Object object, String filename) {\n FileOutputStream fos = null;\n ObjectOutputStream oos = null;\n try {\n fos = activity.openFileOutput(filename, Context.MODE_PRIVATE);\n oos = new ObjectOutputStream(fos);\n oos.writeObject(object);\n } catch (IOException e) {\n e.printStackTrace();\n }\n finally {\n closeOutputStream(fos);\n closeOutputStream(oos);\n }\n }",
"String objectWrite();",
"public static void writeObjectToDisk(Object obj, String name) throws IOException {\r\n\t\t// Create file output stream\r\n\t\tFileOutputStream fileOutStr = new FileOutputStream(name);\r\n\t\t// Create object output stream and write object\r\n\t\tObjectOutputStream objOutStr = new ObjectOutputStream(fileOutStr);\r\n\t\tobjOutStr.writeObject(obj);\r\n\t\t// Close all streams\r\n\t\tobjOutStr.close();\r\n\t\tfileOutStr.close();\r\n\t\tSystem.out.printf(\"Serialized data is saved in a file - \" + name); // Printing message and file name which is\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// saved\r\n\t}",
"@SuppressWarnings(\"PMD.CloseResource\") // PMD does not understand Closer.\n private static void serializeToLz4Data(Serializable object, OutputStream out) {\n try (Closer closer = Closer.create()) {\n OutputStream los = closer.register(new LZ4FrameOutputStream(out));\n ObjectOutputStream oos = closer.register(new ObjectOutputStream(los));\n oos.writeObject(object);\n } catch (Throwable e) {\n throw new BatfishException(\"Failed to convert object to LZ4 data\", e);\n }\n }",
"public static String toJSON(final Object object) {\n return gson.toJson(object);\n }",
"public void setClassObject(Object obj)\n\n {\n\n this.classObject = obj;\n\n }",
"public com.google.protobuf.ByteString getObjectBytes() {\n java.lang.Object ref = object_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n object_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String serialize(Object obj) throws PdfFillerAPIException {\n try {\n if (obj != null)\n return mapper.toJson(obj);\n else\n return null;\n } catch (Exception e) {\n throw new PdfFillerAPIException(400, e.getMessage());\n }\n }",
"public static byte[] convertObjectToJsonBytes(Object object) throws IOException {\n\t\treturn MAPPER.writeValueAsBytes(object);\n\t}"
]
| [
"0.7237786",
"0.6892062",
"0.67329437",
"0.6679516",
"0.6578926",
"0.6498536",
"0.642824",
"0.6409637",
"0.63216645",
"0.6298425",
"0.6296595",
"0.627854",
"0.6234316",
"0.6192209",
"0.61456835",
"0.6099016",
"0.60935235",
"0.60628664",
"0.6062135",
"0.60549706",
"0.60519254",
"0.60418636",
"0.60355055",
"0.60294896",
"0.6024509",
"0.60105383",
"0.6000812",
"0.59869254",
"0.5985155",
"0.59731734",
"0.59254223",
"0.59254026",
"0.59051496",
"0.58878255",
"0.5883319",
"0.58634466",
"0.580875",
"0.58077973",
"0.5789706",
"0.5779086",
"0.57612604",
"0.5756528",
"0.5747446",
"0.57416993",
"0.57345486",
"0.5725486",
"0.5718914",
"0.5718367",
"0.5715556",
"0.5699947",
"0.56828797",
"0.56595445",
"0.56593555",
"0.5651645",
"0.56462526",
"0.56401265",
"0.5639435",
"0.5638609",
"0.5630275",
"0.56122416",
"0.560308",
"0.5596577",
"0.55780256",
"0.55778325",
"0.5573782",
"0.5570227",
"0.5570056",
"0.55602646",
"0.5559241",
"0.55586785",
"0.55566484",
"0.55557007",
"0.5555566",
"0.5550135",
"0.55464774",
"0.5535449",
"0.5533541",
"0.5530374",
"0.54965407",
"0.54896003",
"0.54867166",
"0.54861414",
"0.5472841",
"0.54717845",
"0.54609805",
"0.54526013",
"0.54503095",
"0.5447313",
"0.54442734",
"0.54420626",
"0.5441934",
"0.5440227",
"0.54378104",
"0.5437724",
"0.54350126",
"0.5424628",
"0.54224414",
"0.54220754",
"0.54215306",
"0.5418521"
]
| 0.61759865 | 14 |
Valida que haya una opcion seleccionada Obtiene la especialidad seleccionada Muestra todos los especialistas de esa especialidad | public void verEspecialistas(HttpServletRequest request, HttpServletResponse response) throws ServletException {
try {
int codEspecialidad = Integer.parseInt(request.getParameter("opcionesEspecid"));
CtrlSolicitarTurno controlador = new CtrlSolicitarTurno();
Especialidad e = controlador.getOneEspecialidad(codEspecialidad);
if(e == null) servlet.ErrorPaciente("SolicitarTurno","No se ha podido recuperar la especialidad", response);
request.setAttribute("camino","especialista");
ArrayList<Especialista> especs = controlador.getAllEspecialistas(e);
request.setAttribute("ListaEspecialistas", especs);
//Si la coleccion esta vacia significa que no existen especialistas con esa especialidad
if(especs.size() == 0) request.setAttribute("Especialidad", e.getNombre());
opMenuSolicitarTurno(request, response);
}catch(NumberFormatException | ServletException ne) {
servlet.ErrorPaciente("SolicitarTurno","Por favor seleccione una opcion.", response);
} catch (SQLException e1) {
servlet.ErrorPaciente("SolicitarTurno","Ha ocurrido un error al intentar recuperar los especialistas. Causa: "+e1.getMessage(), response);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testLecturaSelect(){\n\t\tassertEquals(esquemaEsperado.getExpresionesSelect().toString(), esquemaReal.getExpresionesSelect().toString());\n\t}",
"public void ejercicio01() {\r\n\t\tcabecera(\"01\",\"Seleccion de opciones\");\r\n\r\n\t\tRectangulo rectangulo=new Rectangulo(10,5);\r\n\t\tSystem.out.println(\"Introduce una opcion (1 - Area, 2 - Perimetro):\");\r\n\t\t// Inicio modificacion\r\n \r\n int opcionSelecionada = Teclado.readInteger();\r\n\r\n if (opcionSelecionada==1) {\r\n \tSystem.out.println(rectangulo.getArea());\r\n }else{\r\n \tSystem.out.println(rectangulo.getPerimetro());\r\n }\r\n\t\t\r\n\t\t// Fin modificacion\r\n\t}",
"public void verSeleccionarDatosporID(String entidad, String accion)\r\n\t{\r\n\t\tseleccionardatos = new SeleccionarDatosporID(this,entidad,accion);\r\n\t\tseleccionardatos.setVisible(true);\r\n\t}",
"public void seleccionarBeneficiario(){\n\t\tvisualizarGrabarRequisito = false;\r\n\t\ttry{\r\n\t\t\tlog.info(\"intItemBeneficiarioSeleccionar:\"+intItemBeneficiarioSeleccionar);\r\n\t\t\tif(intItemBeneficiarioSeleccionar.equals(new Integer(0))){\r\n\t\t\t\tbeneficiarioSeleccionado = null;\r\n\t\t\t\tlistaEgresoDetalleInterfaz = new ArrayList<EgresoDetalleInterfaz>();\r\n\t\t\t\tbdTotalEgresoDetalleInterfaz = null;\r\n\t\t\t\t//\r\n\t\t\t\tmostrarPanelAdjuntoGiro = false;\r\n\t\t\t\tdeshabilitarNuevo = false;\r\n\t\t\t\tdeshabilitarNuevoBeneficiario = false;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(BeneficiarioPrevision beneficiarioPrevision : expedientePrevisionGirar.getListaBeneficiarioPrevision()){\r\n\t\t\t\tif(beneficiarioPrevision.getId().getIntItemBeneficiario().equals(intItemBeneficiarioSeleccionar)){\r\n\t\t\t\t\tbeneficiarioSeleccionado = beneficiarioPrevision;\r\n\t\t\t\t\tlistaEgresoDetalleInterfaz = previsionFacade.cargarListaEgresoDetalleInterfaz(expedientePrevisionGirar, beneficiarioSeleccionado);\t\t\t\t\t\r\n\t\t\t\t\tbdTotalEgresoDetalleInterfaz = ((EgresoDetalleInterfaz)(listaEgresoDetalleInterfaz.get(0))).getBdSubTotal();;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tList<ControlFondosFijos> listaControlValida = new ArrayList<ControlFondosFijos>();\r\n\t\t\tfor(ControlFondosFijos controlFondosFijos : listaControl){\r\n\t\t\t\tAcceso acceso = bancoFacade.obtenerAccesoPorControlFondosFijos(controlFondosFijos);\r\n\t\t\t\tlog.info(controlFondosFijos);\r\n\t\t\t\tlog.info(acceso);\t\t\t\t\r\n\t\t\t\tif(acceso!=null\r\n\t\t\t\t&& acceso.getAccesoDetalleUsar()!=null\r\n\t\t\t\t&& acceso.getAccesoDetalleUsar().getBdMontoMaximo()!=null\r\n\t\t\t\t&& acceso.getAccesoDetalleUsar().getBdMontoMaximo().compareTo(bdTotalEgresoDetalleInterfaz)>=0){\r\n\t\t\t\t\tlistaControlValida.add(controlFondosFijos);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tvisualizarGrabarRequisito = true;\r\n\t\t\tdeshabilitarNuevoBeneficiario = false;\r\n\t\t\t\r\n\t\t\tif(listaControlValida.isEmpty() && intItemBeneficiarioSeleccionar!=0){\r\n\t\t\t\t//Deshabilitamos todos los campos para detener el proceso de grabacion\r\n\t\t\t\tif(validarExisteRequisito()) {\r\n\t\t\t\t\tmensajeAdjuntarRequisito = \"No existe un fondo de cambio con un monto máximo configurado que soporte el monto de giro del expediente.\"+\r\n\t\t\t\t\t \"Este giro será realizado por la Sede Central.\";\r\n\t\t\t\t\tmostrarMensajeAdjuntarRequisito = true;\r\n\t\t\t\t\tmostrarPanelAdjuntoGiro = true;\r\n\t\t\t\t\thabilitarGrabarRequisito = true;\t\r\n\t\t\t\t\tvisualizarGrabarAdjunto = true;\r\n\t\t\t\t\tdeshabilitarNuevo = true;\r\n\t\t\t\t\tdeshabilitarDescargaAdjuntoGiro = false;\r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmensajeAdjuntarRequisito = \"Ya existen requisitos registrados para este expediente.\";\r\n\t\t\t\t\tarchivoAdjuntoGiro = previsionFacade.getArchivoPorRequisitoPrevision(lstRequisitoPrevision.get(0));\r\n\t\t\t\t\tmostrarMensajeAdjuntarRequisito = true;\r\n\t\t\t\t\tmostrarPanelAdjuntoGiro = true;\r\n\t\t\t\t\thabilitarGrabarRequisito = false;\r\n\t\t\t\t\tvisualizarGrabarAdjunto =false;\r\n\t\t\t\t\tdeshabilitarNuevo = true;\r\n\t\t\t\t\tdeshabilitarDescargaAdjuntoGiro = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tvisualizarGrabarRequisito = false;\r\n\t\t\t\tmostrarPanelAdjuntoGiro = false;\r\n\t\t\t\tdeshabilitarNuevo = false;\r\n\t\t\t\tdeshabilitarDescargaAdjuntoGiro = false;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}catch (Exception e){\r\n\t\t\tlog.error(e.getMessage(),e);\r\n\t\t}\r\n\t}",
"public void verSeleccionarCaracterisiticasEscalaId()\r\n\t{\r\n\t\tseleccionarcaract = new SeleccionarCaracterisiticasEscalaId(this);\r\n\t\tseleccionarcaract.setVisible(true);\r\n\t}",
"private static void menuOpciones() {\n // Hacemos un do para mostrar las opciones hasta que pulse la opción correcta\n int opcion;\n // Scanner nos sirve para analizar la entrada desde el teclado. Al usar new si estamos creando el objeto (lo veremos)\n Scanner in = new Scanner(System.in);\n\n System.out.println(\"Seleccione la opción\");\n System.out.println(\"1.- Cálculo de estadístcas de clase\");\n System.out.println(\"2.- Cálculo año bisiesto\");\n System.out.println(\"3.- Cálculo de Factorial\");\n System.out.println(\"4.- Primos Gemelos\");\n System.out.println(\"0.- Salir\");\n\n // Creamos un bucle do while y lo tenemos girando aquí hasta que meta estos valores\n // Pero sabemos que scanner va a \"petar\" si no le metemos algo que pueda hacer el casting\n // Ya lo solucionaremos\n do {\n System.out.println(\"Elija opción: \");\n opcion = in.nextInt();\n } while (opcion != 0 && opcion != 1 && opcion != 2 && opcion != 3 && opcion != 4);\n\n switch (opcion) {\n case 1:\n estadisticaClase();\n break;\n case 2:\n añoBisiesto();\n break;\n case 3:\n factorial();\n break;\n case 4:\n primosGemelos();\n break;\n case 0:\n despedida();\n break;\n // No hay default, porque por el do-while no puede llegar aquí con otro valor\n }\n\n // Y si queremos volver al menú cada vez que terminemos una opción?\n\n }",
"public int leerSeleccionDelUsuario() {\n\t\tint seleccion;\n\t\tboolean valido = false;\n\t\tint intentos = intentosMaximos;\n\t\tint intentos1 = 0;\n\t\tSystem.out.println(\"Enter you selection:\");\n\t\tseleccion = Herramientas.leerEntero();\n\t\tif (seleccion >= 1 && seleccion <= numeroDeOpciones)\n\t\t\tvalido = true;\n\t\tintentos--;\n\t\tintentos1++;\n\n\t\twhile (!valido && intentos1 < intentosMaximos) {\n\t\t\tHerramientas.println(intentos + \" more tries\");\n\t\t\tHerramientas.println(\"\\nEnter a valid selection for this menu:\");\n\t\t\tseleccion = Herramientas.leerEntero();\n\t\t\tif (seleccion >= 1 && seleccion <= numeroDeOpciones)\n\t\t\t\tvalido = true;\n\t\t\tintentos--;\n\t\t\tintentos1++;\n\t\t}\n\t\tif (!valido)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn seleccion;\n\t}",
"public void exibeMenu() {\n System.out.println(\"Digite o valor referente a operação desejada\");\r\n System.out.println(\"1. Busca Simples\");\r\n System.out.println(\"2. Busca Combinada\");\r\n System.out.println(\"3. Adicionar Personagem Manualmente\");\r\n System.out.println(\"4. Excluir Personagem\");\r\n System.out.println(\"5. Exibir Personagens\");\r\n int opcao = teclado.nextInt();\r\n if(opcao >= 7){\r\n do\r\n {\r\n System.out.println(\"Digite um numero valido\");\r\n opcao = teclado.nextInt();\r\n }while (opcao>=6);\r\n }\r\n ctrlPrincipal.opcaoMenu(opcao);\r\n }",
"@Override\r\n\tpublic void seleccionarPersona() {\n\t\t\r\n\t}",
"private void opciones() {\n switch (cboTipo.getSelectedIndex()) {\n case 1:\n txtPractica.setEditable(false);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 2:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 3:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(false);\n break;\n case 4:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(true);\n break;\n }\n\n }",
"public static Individuo seleccionAleatoria(Poblacion pob) {\n Random ran = new Random();\n int pos = ran.nextInt(pob.getIndividuos().size());\n Individuo mejor = new Individuo(pob.getIndividuos().get(pos).getGenotipo());\n return mejor;\n }",
"public void TipoCliente() {\n\tint cambio=1;\n\tString tipoCliente=\"\";\n\tdo {\n\t\ttry {\n\t\t\ttipoCliente = (JOptionPane.showInputDialog(null, \"Selecciona el tipo de cliente\", null, JOptionPane.PLAIN_MESSAGE,null, new Object[]\n\t\t\t\t\t{ \"Selecciona\",\"Docente\", \"Administrativo\"}, \"Selecciona\")).toString() ;\n\t\t\t\n\t\t\tif(tipoCliente.equalsIgnoreCase(\"Docente\")) {\n\t\t\t\tingresaDocente();\n\t\t\t\tsetTipoCliente(\"Docente\");\n\t\t\t\t\n\t\t\t}else if(tipoCliente.equalsIgnoreCase(\"Administrativo\")) {\n\t\t\t\tingresaAdministrativo();\n\t\t\t\tsetTipoCliente(\"Administrativo\");\n\t\t\t}else{\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Escoge una de las dos opciones\");\n\t\t\t}\n\t} catch (Exception e) {\n\t\tJOptionPane.showMessageDialog(null, \"Debes escoger una opcion\");\n\t\tcambio=0;\n\t}\n\t} while (tipoCliente==\"Selecciona\"||tipoCliente==null||cambio==0);\t\n}",
"public void selectedAdmision(Admision admision) {\r\n if (admision == null) {\r\n datos_seleccion.remove(\"list_item_admision\");\r\n limpiarDatos();\r\n deshabilitarCampos(true);\r\n } else {\r\n Hospitalizacion hospitalizacion = new Hospitalizacion();\r\n\r\n hospitalizacion.setCodigo_empresa(admision.getCodigo_empresa());\r\n hospitalizacion.setCodigo_sucursal(admision.getCodigo_sucursal());\r\n hospitalizacion.setNro_identificacion(admision\r\n .getNro_identificacion());\r\n hospitalizacion.setNro_ingreso(admision.getNro_ingreso());\r\n final Hospitalizacion hsp = getServiceLocator()\r\n .getHospitalizacionService().consultar(hospitalizacion);\r\n\r\n if (admision.getHospitalizacion().equals(\"S\") && hsp != null) {\r\n msgExistencia(hsp);\r\n } else if (admision.getHospitalizacion().equals(\"N\")) {\r\n Messagebox\r\n .show(\"No se ha registrado el ingreso del paciente por hospitalizacion\",\r\n \"Paciente no admisionado\", Messagebox.OK,\r\n Messagebox.EXCLAMATION);\r\n Listitem listitem = (Listitem) datos_seleccion\r\n .get(\"list_item_admision\");\r\n lbxNro_ingreso.setSelectedItem(listitem);\r\n Admision admisionTemp = listitem.getValue();\r\n if (admisionTemp != null) {\r\n Utilidades.setValueFrom(lbxCausa_externa,\r\n admisionTemp.getCausa_externa());\r\n }\r\n return;\r\n } else {\r\n datos_seleccion.put(\"list_item_admision\",\r\n lbxNro_ingreso.getSelectedItem());\r\n cargarAdmisiones(admision);\r\n Utilidades.setValueFrom(lbxCausa_externa,\r\n admision.getCausa_externa());\r\n }\r\n }\r\n }",
"public void cargaDatosInicialesSoloParaModificacionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n selectAuxiliarParaAsignacionModificacion = cntEntidadesService.listaDeAuxiliaresPorEntidad(selectedEntidad);\n //Obtien Ajuste Fin\n\n //Activa formulario para automatico modifica \n switch (selectedEntidad.getNivel()) {\n case 1:\n swParAutomatico = true;\n numeroEspaciador = 200;\n break;\n case 2:\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciador = 200;\n break;\n case 3:\n swParAutomatico = false;\n numeroEspaciador = 1;\n break;\n default:\n break;\n }\n\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n }",
"public void seleccionarTipoComprobante() {\r\n if (com_tipo_comprobante.getValue() != null) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n } else {\r\n tab_tabla1.limpiar();\r\n tab_tabla2.limpiar();\r\n }\r\n tex_num_transaccion.setValue(null);\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales,tex_num_transaccion\");\r\n }",
"public void generarCuestionario() {\n \n try{\n ValidarOpcionSeleccionada.validar (radios);\n }catch (OpcionNoSeleccionadaException e) {\n etiquetaRespuesta.setText(\"Debes selecionar una opcion\");\n}\n \n\n //Con el modelo construido debemos representar nuestra pregunta\n //y mostrarala\n //Primero creamos las opciones\n Opcion op1 = new Opcion();\n op1.setTitulo(\"Inglaterra\");\n op1.setCorrecta(false);\n\n Opcion op2 = new Opcion();\n op2.setTitulo(\"México\");\n op2.setCorrecta(false);\n\n Opcion op3 = new Opcion();\n op3.setTitulo(\"Italia\");\n op3.setCorrecta(false);\n\n Opcion op4 = new Opcion();\n op4.setTitulo(\"Francia\");\n op4.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones = {op1, op2, op3, op4};\n Pregunta p1 = new Pregunta();\n p1.setTitulo(\"¿Que país tiene más Premios Nobel de Literatura?\");\n p1.setOpciones(opciones);\n\n \n //opciones de la pregunta 2\n Opcion op21 = new Opcion();\n op21.setTitulo(\"Ares\");\n op21.setCorrecta(false);\n\n Opcion op22 = new Opcion();\n op22.setTitulo(\"Prometeo\");\n op22.setCorrecta(false);\n\n Opcion op23 = new Opcion();\n op23.setTitulo(\"Poseidón\");\n op23.setCorrecta(true);\n\n Opcion op24 = new Opcion();\n op24.setTitulo(\"Hefesto\");\n op24.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones2 = {op21, op22, op23, op24};\n Pregunta p2 = new Pregunta();\n p2.setTitulo(\"¿Quién es el padre del cíclope Polifemo según la mitología griega?\");\n p2.setOpciones(opciones2);\n \n //opciones de la pregunta 3\n Opcion op31 = new Opcion();\n op31.setTitulo(\"J.K Rowling\");\n op31.setCorrecta(false);\n\n Opcion op32 = new Opcion();\n op32.setTitulo(\"Emily Bronte\");\n op32.setCorrecta(false);\n\n Opcion op33 = new Opcion();\n op33.setTitulo(\"Stephen King\");\n op33.setCorrecta(false);\n\n Opcion op34 = new Opcion();\n op34.setTitulo(\"Jane Austen\");\n op34.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones3 = {op31, op32, op33, op34};\n Pregunta p3 = new Pregunta();\n p3.setTitulo(\"¿Quien escribio el libro Orgullo y Prejuicio?\");\n p3.setOpciones(opciones3);\n \n //Opciones pregunta 4\n Opcion op41 = new Opcion();\n op41.setTitulo(\"El Cáliz de Fuego\");\n op41.setCorrecta(true);\n\n Opcion op42 = new Opcion();\n op42.setTitulo(\"Festin de Cuervos\");\n op42.setCorrecta(false);\n\n Opcion op43 = new Opcion();\n op43.setTitulo(\"El prisionero de Azkaban\");\n op43.setCorrecta(false);\n\n Opcion op44 = new Opcion();\n op44.setTitulo(\"Principe Mecánico\");\n op44.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones4 = {op41, op42, op43, op44};\n Pregunta p4 = new Pregunta();\n p4.setTitulo(\"¿Como se llama el cuarto libro de Harry Potter?\");\n p4.setOpciones(opciones4);\n \n //Opciones pregunta 5\n Opcion op51 = new Opcion();\n op51.setTitulo(\"Dunkirk\");\n op51.setCorrecta(false);\n\n Opcion op52 = new Opcion();\n op52.setTitulo(\"Los Miserables\");\n op52.setCorrecta(true);\n\n Opcion op53 = new Opcion();\n op53.setTitulo(\"Interestelar\");\n op53.setCorrecta(false);\n\n Opcion op54 = new Opcion();\n op54.setTitulo(\"Batman: El caballero de la noche\");\n op54.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones5= {op51, op52, op53, op54};\n Pregunta p5 = new Pregunta();\n p5.setTitulo(\"¿Que película NO dirigio Chistopher Nolan?\");\n p5.setOpciones(opciones5);\n \n //Opciones pregunta 6\n Opcion op61 = new Opcion();\n op61.setTitulo(\"Joe Greene\");\n op61.setCorrecta(false);\n\n Opcion op62 = new Opcion();\n op62.setTitulo(\"Tom Brady\");\n op62.setCorrecta(false);\n\n Opcion op63 = new Opcion();\n op63.setTitulo(\"Joe Montana\");\n op63.setCorrecta(false);\n\n Opcion op64 = new Opcion();\n op64.setTitulo(\"Peyton Manning\");\n op64.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones6 = {op61, op62, op63, op64};\n Pregunta p6 = new Pregunta();\n p6.setTitulo(\"¿Que jugador ha ganado más MVP en la NFL?\");\n p6.setOpciones(opciones6);\n \n //Opciones pregunta 7\n Opcion op71 = new Opcion();\n op71.setTitulo(\"Bayern Munich\");\n op71.setCorrecta(false);\n\n Opcion op72 = new Opcion();\n op72.setTitulo(\"Real Madrid\");\n op72.setCorrecta(true);\n\n Opcion op73 = new Opcion();\n op73.setTitulo(\"Barcelona\");\n op73.setCorrecta(false);\n\n Opcion op74 = new Opcion();\n op74.setTitulo(\"Manchester United\");\n op74.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones7 = {op71, op72, op73, op74};\n Pregunta p7 = new Pregunta();\n p7.setTitulo(\"¿Que equipo ha ganado más Champions League en la hsitoria?\");\n p7.setOpciones(opciones7);\n \n \n //Opciones pregunta 8\n \n Opcion op81 = new Opcion();\n op81.setTitulo(\"Tratado de Versalles\");\n op81.setCorrecta(true);\n\n Opcion op82 = new Opcion();\n op82.setTitulo(\"Tratado de Granada\");\n op82.setCorrecta(false);\n\n Opcion op83 = new Opcion();\n op83.setTitulo(\"Tratado de Lyon\");\n op83.setCorrecta(false);\n\n Opcion op84 = new Opcion();\n op84.setTitulo(\"Tratado de Londres\");\n op84.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones8 = {op81, op82, op83, op84};\n Pregunta p8 = new Pregunta();\n p8.setTitulo(\"¿Como se llamo el tratado con el que se le dio fin a la PGM?\");\n p8.setOpciones(opciones8);\n \n //opciones pregunta 9 \n \n Opcion op91 = new Opcion();\n op91.setTitulo(\"Hermanos Lumiere\");\n op91.setCorrecta(false);\n\n Opcion op92 = new Opcion();\n op92.setTitulo(\"Steven Spielberg\");\n op92.setCorrecta(false);\n\n Opcion op93 = new Opcion();\n op93.setTitulo(\"Thomas Harper\");\n op93.setCorrecta(false);\n\n Opcion op94 = new Opcion();\n op94.setTitulo(\"George Mellies\");\n op94.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones9 = {op91, op92, op93, op94};\n Pregunta p9 = new Pregunta();\n p9.setTitulo(\"¿A quien se le considera como el mago del cine?\");\n p9.setOpciones(opciones9);\n \n //Opciones pregunta 10\n Opcion op101 = new Opcion();\n op101.setTitulo(\"Miguel Ángel\");\n op101.setCorrecta(false);\n\n Opcion op102 = new Opcion();\n op102.setTitulo(\"Rafael Sanzio\");\n op102.setCorrecta(false);\n\n Opcion op103 = new Opcion();\n op103.setTitulo(\"Leonardo Da Vinci\");\n op103.setCorrecta(true);\n\n Opcion op104 = new Opcion();\n op104.setTitulo(\"Bernini\");\n op104.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones10 = {op101, op102, op103, op104};\n Pregunta p10 = new Pregunta();\n p10.setTitulo(\"¿Que artífice NO participo en la construcción de la Basílica de San Pedro?\");\n p10.setOpciones(opciones10);\n \n \n \n //Pregunta p11 =new Pregunta();\n System.out.println(\"Fin de Cuestionario \");\n \n \n \n //Vamos a adaptar el cuestioanario a lo que ya teniamos\n Cuestionario c = new Cuestionario();\n //Creamos el list de preguntas\n \n \n \n //Se agrega a este list las preguntas que tenemos\n preguntas.add(p1);\n preguntas.add(p2);\n preguntas.add(p3);\n preguntas.add(p4);\n preguntas.add(p5);\n preguntas.add(p6);\n preguntas.add(p7);\n preguntas.add(p8);\n preguntas.add(p9);\n preguntas.add(p10);\n // preguntas.add(p11);\n //A este list le vamos a proporcionar el valor del correspondiente\n //cuestioanrio\n \n c.setPreguntas(preguntas);\n //Ajustamos el titulo de la primera pregunta\n mostrarPregunta (preguntaActual); \n//Primero ajustamos el titulo de la primer pregunta en la etiqueta de la pregunta\ntry{\n int opcion= Integer.parseInt (etiquetaRespuesta.getText());\n ValidarNumeroPreguntas.validar (opcion);\n }catch (NumberFormatException e) {\n \n}\n \n }",
"public void cargarOpcionesPadre() {\n\t\tOpcionMenu elementoMenu = getElementoMenuActual();\n\t\tif(elementoMenu==null || elementoMenu.getOpcionMenuPadre() == null || elementoMenu.getOpcionMenuPadre().getOpcionMenuPadre() == null) {\n\t\t\tif(elementosMenu != elementosMenuRaiz) {\n\t\t\t\tsetElementosMenu(elementosMenuRaiz);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tOpcionSubMenu subMenu = (OpcionSubMenu) elementoMenu.getOpcionMenuPadre().getOpcionMenuPadre();\n\t\tif(subMenu!=null) {\n\t\t\tsetElementosMenu(subMenu.getHijos());\n\t\t}\n\t}",
"private void mostrarDatosInterfaz() {\n\t\tif (this.opcion == CREAR) {\n\t\t\tthis.campoTextoNombreUsuario.setUserData(\"\");\n\t\t\tthis.campoTextoNombreUsuario.setDisable(false);\n\t\t\tthis.campoContrasena.setUserData(\"\");\n\t\t\tthis.campoContrasena.setDisable(false);\n\t\t\tthis.campoCorreo.setUserData(\"\");\n\t\t\tthis.campoCorreo.setDisable(false);\n\t\t\tthis.comboGrupoUsuario.getSelectionModel().select(\"\");\n\t\t\tthis.comboGrupoUsuario.setDisable(false);\n\t\t\tthis.comboStatus.getSelectionModel().select(\"\");\n\t\t\tthis.comboStatus.setDisable(false);\n\t\t\tthis.comboEmpleados.setDisable(false);\n\t\t} else if (this.opcion == EDITAR) {\n\t\t\tthis.campoTextoNombreUsuario.setText(this.usuario.getUsuario());\n\t\t\tthis.campoTextoNombreUsuario.setDisable(true);\n\t\t\tthis.campoContrasena.setText(this.usuario.getContrasena());\n\t\t\tthis.campoContrasena.setDisable(false);\n\t\t\tthis.campoCorreo.setText(this.usuario.getCorreoElectronico());\n\t\t\tthis.campoCorreo.setDisable(false);\n\t\t\tthis.comboGrupoUsuario.setValue(this.usuario.getNombreGrupoUsuario());\n\t\t\tthis.comboGrupoUsuario.setDisable(false);\n\t\t\tthis.comboStatus.setValue(this.usuario.getDescripcionStatus());\n\t\t\tthis.comboStatus.setDisable(false);\n\t\t\tthis.comboEmpleados.setValue(this.usuario.getNombreEmpleado());\n\t\t\tthis.comboEmpleados.setDisable(false);\n\t\t} else if (this.opcion == VER) {\n\t\t\tthis.campoTextoNombreUsuario.setText(this.usuario.getUsuario());\n\t\t\tthis.campoTextoNombreUsuario.setDisable(true);\n\t\t\tthis.campoContrasena.setText(this.usuario.getContrasena());\n\t\t\tthis.campoContrasena.setDisable(true);\n\t\t\tthis.campoCorreo.setText(this.usuario.getCorreoElectronico());\n\t\t\tthis.campoCorreo.setDisable(true);\n\t\t\tthis.comboGrupoUsuario.setValue(this.usuario.getNombreGrupoUsuario());\n\t\t\tthis.comboGrupoUsuario.setDisable(true);\n\t\t\tthis.comboStatus.setValue(this.usuario.getDescripcionStatus());\n\t\t\tthis.comboStatus.setDisable(true);\n\t\t\tthis.comboEmpleados.setValue(this.usuario.getNombreEmpleado());\n\t\t\tthis.comboEmpleados.setDisable(true);\n\t\t}//FIN IF ELSE\n\t}",
"@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}",
"public void cargaDatosInicialesSoloParaAdicionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n //Obtien Ajuste Fin\n //Activa formulario para automatico modifica \n if (selectedEntidad.getNivel() >= 3) {\n numeroEspaciadorAdicionar = 260;\n }\n\n if (selectedEntidad.getNivel() == 3) {\n swParAutomatico = false;\n numeroEspaciadorAdicionar = 230;\n }\n if (selectedEntidad.getNivel() == 2) {\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciadorAdicionar = 200;\n }\n if (selectedEntidad.getNivel() == 1) {\n swParAutomatico = true;\n numeroEspaciadorAdicionar = 130;\n cntParametroAutomaticoDeNivel2 = cntParametroAutomaticoService.obtieneObjetoDeParametroAutomatico(selectedEntidad);\n }\n\n mascaraNuevoOpcion = \"N\";\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n mascaraNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"N\");\n mascaraSubNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"S\");\n longitudNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"N\");\n longitudSubNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"S\");\n }",
"public void verSeleccionarAccion(String entidad)\r\n\t{\r\n\t\tseleccionaraccion = new SeleccionarAccion(this, entidad);\r\n\t\tseleccionaraccion.setVisible(true);\r\n\t}",
"private static void gestionarMenuGeneral(int opcion) {\n\t\tswitch(opcion){\n\t\tcase 1:\n\t\t\tmenuManejoJugadores();\n\t\t\tbreak;\n\t\tcase 2: jugar();\n\t\t\tbreak;\n\t\tcase 3:System.out.println(\"Hasta pronto.\");\n\t\t\tbreak;\n\t\t}\n\t}",
"private boolean recuperaDadosInseridos() throws SQLException, GrupoUsuarioNaoSelecionadoException{\n \n GrupoUsuarios grupoUsuarios = new GrupoUsuarios();\n Usuarios usuarios = new Usuarios();\n boolean selecao = false;\n \n try{\n \n if(this.optUsuariosGerente.isSelected()){\n grupoUsuarios.setGerente(1);\n selecao = true;\n }\n if(this.optUsuariosGestorEstoque.isSelected()){\n grupoUsuarios.setGestorEstoque(1);\n selecao = true;\n }\n if(this.optUsuariosGestorCompras.isSelected()){\n grupoUsuarios.setGestorCompras(1);\n selecao = true;\n }\n if(this.optUsuariosCaixeiro.isSelected()){\n grupoUsuarios.setCaixeiro(1);\n selecao = true;\n }\n \n if(selecao!=true)\n throw new GrupoUsuarioNaoSelecionadoException();\n else usuarios.setGrupoUsuarios(grupoUsuarios); \n \n }catch(TratarMerciExceptions e){\n System.out.println(e.getMessage());\n }\n return selecao;\n }",
"private void comboMultivalores(HTMLSelectElement combo, String tabla, String defecto, boolean dejarBlanco) {\n/* 393 */ SisMultiValoresDAO ob = new SisMultiValoresDAO();\n/* 394 */ Collection<SisMultiValoresDTO> arr = ob.cargarTabla(tabla);\n/* 395 */ ob.close();\n/* 396 */ if (dejarBlanco) {\n/* 397 */ HTMLOptionElement op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 398 */ op.setValue(\"\");\n/* 399 */ op.appendChild(this.pagHTML.createTextNode(\"\"));\n/* 400 */ combo.appendChild(op);\n/* */ } \n/* 402 */ Iterator<SisMultiValoresDTO> iterator = arr.iterator();\n/* 403 */ while (iterator.hasNext()) {\n/* 404 */ SisMultiValoresDTO reg = (SisMultiValoresDTO)iterator.next();\n/* 405 */ HTMLOptionElement op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 406 */ op.setValue(\"\" + reg.getCodigo());\n/* 407 */ op.appendChild(this.pagHTML.createTextNode(reg.getDescripcion()));\n/* 408 */ if (defecto.equals(reg.getCodigo())) {\n/* 409 */ Attr escogida = this.pagHTML.createAttribute(\"selected\");\n/* 410 */ escogida.setValue(\"on\");\n/* 411 */ op.setAttributeNode(escogida);\n/* */ } \n/* 413 */ combo.appendChild(op);\n/* */ } \n/* 415 */ arr.clear();\n/* */ }",
"public void ordenarXPuntajeSeleccion() {\r\n\t\tfor (int i = 0; i < datos.size()-1; i++) {\r\n\t\t\tJugador menor = datos.get(i);\r\n\t\t\tint cual = i;\r\n\t\t\tfor (int j = i + 1; j < datos.size(); j++ ) {\r\n\t\t\t\tif(datos.get(j).compareTo(menor) < 0) {\r\n\t\t\t\t\tmenor = datos.get(j);\r\n\t\t\t\t\tcual = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tJugador temp = datos.get(i);\r\n\t\t\tdatos.set(i, menor);\r\n\t\t\tdatos.set(cual, temp);\r\n\t\t}\r\n\t}",
"private void llenarCombo(HTMLSelectElement combo, String tabla, String codigo, String descripcion, String condicion, String defecto, boolean dejarBlanco) {\n/* 436 */ if (dejarBlanco) {\n/* 437 */ HTMLOptionElement op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 438 */ op.setValue(\"\");\n/* 439 */ op.appendChild(this.pagHTML.createTextNode(\"\"));\n/* 440 */ combo.appendChild(op);\n/* */ } \n/* 442 */ TGeneralDAO rsTGen = new TGeneralDAO();\n/* 443 */ Collection<TGeneralDTO> arr = rsTGen.cargarTabla(tabla, codigo, descripcion, condicion);\n/* 444 */ rsTGen.close();\n/* 445 */ Iterator<TGeneralDTO> iterator = arr.iterator();\n/* 446 */ while (iterator.hasNext()) {\n/* 447 */ TGeneralDTO regGeneral = (TGeneralDTO)iterator.next();\n/* 448 */ HTMLOptionElement op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 449 */ op.setValue(\"\" + regGeneral.getCodigoS());\n/* 450 */ op.appendChild(this.pagHTML.createTextNode(regGeneral.getDescripcion()));\n/* 451 */ if (defecto != null && defecto.equals(regGeneral.getCodigoS())) {\n/* 452 */ Attr escogida = this.pagHTML.createAttribute(\"selected\");\n/* 453 */ escogida.setValue(\"on\");\n/* 454 */ op.setAttributeNode(escogida);\n/* */ } \n/* 456 */ combo.appendChild(op);\n/* */ } \n/* */ }",
"private void ReiniciarSeleccion()\n {\n if(Estado!=TURNOENEMIGO && Estado!=HUYENDO && Estado!=FINTURNO)\n {\n if(input.isKeyPressed(Input.KEY_ESCAPE))\n {\n estadoAnterior=OPCIONESBASE;\n Estado=OPCIONESBASE;\n sonidoSelect.play(1, 0.2f);\n }/**/\n }/*if(Estado!=TURNOENEMIGO && Estado!=HUYENDO && Estado!=FINTURNO)*/\n }",
"public int menuListados(){\n lector = new Scanner(System.in);\n\n int opcion = -1;\n do {\n Lib.limpiarPantalla();\n System.out.println(\"************************************\");\n System.out.println(\"* LISTADOS *\");\n System.out.println(\"************************************\");\n System.out.println(\"1. Mostrar todos los multimedias\");\n System.out.println(\"2. Mostrar peliculas ordenadas \");\n System.out.println(\"3. Mostrar videojuegos ordenados por anyo\");\n System.out.println(\"4. Listado del histórico de alquileres de un socio ordenados por fecha de alquiler\");\n System.out.println(\"5. Listado de los alquileres actuales de un socio\");\n System.out.println(\"6. Listado de los socios con recargos pendientes\");\n System.out.println(\"---------------------\");\n System.out.println(\"0. Cancelar\\n\");\n System.out.println(\"Elija una opción: \");\n try {\n opcion = Integer.parseInt(Lib.lector.nextLine());\n if (opcion < 0 || opcion > 6) {\n System.out.println(\"Elija una opción del menú [0-7]\");\n Lib.pausa();\n }\n } catch (NumberFormatException nfe) {\n System.out.println(\"Solo números por favor\");\n Lib.pausa();\n }\n } while (opcion < 0 || opcion > 6);\n return opcion;\n\n\n }",
"public void cargarEpicrisis() {\r\n\t\tif (admision_seleccionada != null\r\n\t\t\t\t&& admision_seleccionada.getAtendida()) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_HC_EPICRISIS,\r\n\t\t\t\t\tIRutas_historia.LABEL_HC_EPICRISIS, parametros);\r\n\t\t}\r\n\r\n\t}",
"private void seleccionarFicha(Combinacion combinacion, int posicion) {\n Ficha ficha = null;\n boolean encontrado = false;\n\n if (!fichasUtilizados.contains(combinacion.getCodigo()[posicion])) {\n fichasUtilizados.add(combinacion.getCodigo()[posicion]);\n }\n\n do {\n ficha = pedirFicha();\n if (!(fichasUtilizados.contains(ficha) && !(fichasAcertadas.contains(ficha)))) {\n encontrado = true;\n }\n } while (!encontrado);\n fichasUtilizados.add(ficha);\n combinacion.getCodigo()[posicion] = ficha;\n }",
"public void llenarComboSeccion() {\t\t\n\t\tString respuesta = negocio.llenarComboSeccion(\"\");\n\t\tSystem.out.println(respuesta);\t\t\n\t}",
"@Test\n\tpublic void peorCasoOrderAndSelectTest() {\n\t\tint longitud = 16;\n\t\tInteger[] conjunto = new Integer[longitud];\n\t\tfor (int i = 0; i < conjunto.length; i++)\n\t\t\tconjunto[i] = 1; \n\t\tint k = longitud - 1;\n\t\tassertEquals(new Integer(15), buscador.buscarEstadisticoDeOrdenK(conjunto, k));\n\t}",
"@Test\n\tpublic void mejorCasoOrderAndSelectTest() {\n\t\t// TODO!\n\t\tint longitud = 16;\n\t\tInteger[] conjunto = new Integer[longitud];\n\t\tfor (int i = 0; i < conjunto.length / 2; i++)\n\t\t\tconjunto[i] = 1;\n\t\tfor (int i = conjunto.length / 2; i < conjunto.length; i++)\n\t\t\tconjunto[i] = 2;\n\t\tint k = longitud - 1;\n\t\tassertEquals(new Integer(2), buscador.buscarEstadisticoDeOrdenK(conjunto, k));\n\t}",
"private static void gestionarOpciones(int opcion) {\r\n\t\tswitch (opcion) {\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\t\t\r\n\t\t}\t\t\r\n\t}",
"private static void compraSubscricao(int idUser){\n int opcao = 0;\n Scanner teclado = new Scanner(System.in);\n System.out.println(\"Deseja\");\n System.out.println(\"1 - Comprar\");\n System.out.println(\"2 - Subscrever\");\n System.out.print(\"Opção: \");\n \n try{\n opcao = teclado.nextInt();\n System.out.println(\"\");\n switch(opcao){\n case 1: menuCategorias(idUser, false, true); break; //Escolheu comprar\n case 2: menuCategorias(idUser, true, false); break; //Escolheu subscrever\n default: throw new InputMismatchException();\n }\n \n }catch(InputMismatchException ime){\n System.out.println(\"Opção Inválida, tente novamente!\");\n System.out.println(\"\");\n compraSubscricao(idUser);\n }\n }",
"private void cargarContrarreferencia() {\r\n\t\tif (admision_seleccionada != null\r\n\t\t\t\t&& !admision_seleccionada.getAtendida()) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTRAREFERENCIA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTRAREFERENCIA, parametros);\r\n\t\t}\r\n\r\n\t}",
"private void editar(HttpPresentationComms comms) throws HttpPresentationException, KeywordValueException {\n/* 149 */ int idRecurso = 0;\n/* */ try {\n/* 151 */ idRecurso = Integer.parseInt(comms.request.getParameter(\"idRecurso\"));\n/* */ }\n/* 153 */ catch (Exception e) {}\n/* */ \n/* */ \n/* 156 */ PrcRecursoDAO ob = new PrcRecursoDAO();\n/* 157 */ PrcRecursoDTO reg = ob.cargarRegistro(idRecurso);\n/* 158 */ if (reg != null) {\n/* 159 */ this.pagHTML.getElementIdRecurso().setValue(\"\" + reg.getIdRecurso());\n/* 160 */ this.pagHTML.getElementDescripcionRecurso().setValue(\"\" + reg.getDescripcionRecurso());\n/* 161 */ this.pagHTML.getElementUsuarioInsercion().setValue(\"\" + reg.getUsuarioInsercion());\n/* 162 */ this.pagHTML.getElementFechaInsercion().setValue(\"\" + reg.getFechaInsercion());\n/* 163 */ this.pagHTML.getElementUsuarioModificacion().setValue(\"\" + reg.getUsuarioModificacion());\n/* 164 */ this.pagHTML.getElementFechaModificacion().setValue(\"\" + reg.getFechaModificacion());\n/* 165 */ HTMLSelectElement combo = this.pagHTML.getElementIdTipoRecurso();\n/* 166 */ comboMultivalores(combo, \"tipo_recurso\", \"\" + reg.getIdTipoRecurso(), true);\n/* */ \n/* 168 */ combo = this.pagHTML.getElementIdProcedimiento();\n/* 169 */ llenarCombo(combo, \"prc_procedimientos\", \"id_procedimiento\", \"objetivo\", \"1=1\", \"\" + reg.getIdProcedimiento(), true);\n/* */ \n/* 171 */ combo = this.pagHTML.getElementEstado();\n/* 172 */ comboMultivalores(combo, \"estado_activo_inactivo\", \"\" + reg.getEstado(), true);\n/* */ \n/* */ \n/* 175 */ this.pagHTML.getElementIdRecurso().setReadOnly(true);\n/* */ } \n/* 177 */ this.pagHTML.getElement_operacion().setValue(\"M\");\n/* 178 */ activarVista(\"nuevo\");\n/* */ }",
"protected Select selecionarOpcao(WebElement elemento) {\n\t\taguardaElemento(ExpectedConditions.elementToBeClickable(elemento));\n\t\treturn new Select(elemento);\n\t}",
"private void cbOrdonariActionPerformed(java.awt.event.ActionEvent evt) { \n if (cbOrdonari.getSelectedIndex() == 0) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_NUME);\n }\n if (cbOrdonari.getSelectedIndex() == 1) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_PRENUME);\n }\n if (cbOrdonari.getSelectedIndex() == 2) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_DATA_NASTERII);\n }\n if (cbOrdonari.getSelectedIndex() == 3) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_NUMAR_TELEFON);\n }\n }",
"private void filtrarAccion() {\n\n if (cbOpcion.getSelectedIndex()==0) {\n paramFecha =false;\n jPanel1.setVisible(false);\n jPanel3.setVisible(false);\n }\n if (cbOpcion.getSelectedIndex() == 1) {\n System.out.println(\"opcion: \" + cbOpcion.getSelectedIndex());\n jPanel1.setVisible(true);\n jPanel3.setVisible(false);\n campo = \"cobran_codigo\";\n paramFecha = false;\n\n } \n if (cbOpcion.getSelectedIndex() == 2) {\n System.out.println(\"opcion: \" + cbOpcion.getSelectedIndex());\n jPanel1.setVisible(true);\n jPanel3.setVisible(false);\n campo = \"cli_codigo\";\n paramFecha = false;\n\n } if(cbOpcion.getSelectedIndex()==3) {\n System.out.println(\"seleccion:\" + cbOpcion.getSelectedIndex());\n jPanel1.setVisible(false);\n jPanel3.setVisible(true);\n campo = \"cobran_fecha\";\n paramFecha = true;\n }\n\n }",
"private void iniciaTela() {\n try {\n tfCod.setText(String.valueOf(reservaCliDAO.getLastId()));\n desabilitaCampos(false);\n DefaultComboBoxModel modeloComboCliente;\n modeloComboCliente = new DefaultComboBoxModel(funDAO.getAll().toArray());\n cbFunc.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(quartoDAO.getAll().toArray());\n cbQuarto.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(cliDAO.getAll().toArray());\n cbCliente.setModel(modeloComboCliente);\n btSelect.setEnabled(false);\n verificaCampos();\n carregaTableReserva(reservaDAO.getAll());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void actualizarchoicecliente(Choice choice) throws SQLException{\n Connection conexion = null;\n \n try{\n conexion = GestionSQL.openConnection();\n if(conexion.getAutoCommit()){\n conexion.setAutoCommit(false);\n }\n \n //Mediante un for agregamos los ids obtenidos al choice.\n //En ultimo lugar agregamos el \"0\" como cliente no registrado\n ClientesHabitualesDatos clientedatos = new ClientesHabitualesDatos(conexion);\n List<ClienteHabitual> listaclientes = clientedatos.select();\n for(int i = 0; i<listaclientes.size();i++){\n int auxiliar = listaclientes.get(i).getIdCliente();\n String segundoauxiliar = Integer.toString(auxiliar);\n choice.add(segundoauxiliar);\n }\n choice.add(\"0\");\n \n }catch(SQLException e){\n //Por si llegase a ocurrir algun error en nuestro select a los ids\n System.out.println(\"Error en ChoiceCliente: \"+e);\n try{\n conexion.rollback();\n }catch(SQLException ex){\n System.out.println(\"Error en rollback: \"+ex);\n }\n }\n }",
"public int pedirElemento(){\n int opcion = -1;\n\n do {\n Lib.limpiarPantalla();\n System.out.println(\"Cual elemento quieres alquilar?\");\n System.out.println(\"1. Nueva pelicula\");\n System.out.println(\"2. Nuevo Videojuego\");\n System.out.println(\"0. Cancelar\\n\");\n System.out.println(\"Elija una opción: \");\n try {\n opcion = Integer.parseInt(Lib.lector.nextLine());\n if (opcion < 0 || opcion > 2) {\n System.out.println(\"Elija una opción del menú [0-2]\");\n Lib.pausa();\n }\n } catch (NumberFormatException nfe) {\n System.out.println(\"Solo números por favor\");\n Lib.pausa();\n }\n } while (opcion < 0 || opcion > 2);\n return opcion;\n\n }",
"public void cargarPantalla() throws Exception {\n Long oidCabeceraMF = (Long)conectorParametroSesion(\"oidCabeceraMF\");\n\t\tthis.pagina(\"contenido_matriz_facturacion_consultar\");\n\n DTOOID dto = new DTOOID();\n dto.setOid(oidCabeceraMF);\n dto.setOidPais(UtilidadesSession.getPais(this));\n dto.setOidIdioma(UtilidadesSession.getIdioma(this));\n MareBusinessID id = new MareBusinessID(\"PRECargarPantallaConsultarMF\"); \n Vector parametros = new Vector();\n \t\tparametros.add(dto);\n parametros.add(id);\n \t\tDruidaConector conector = conectar(\"ConectorCargarPantallaConsultarMF\", parametros);\n if (oidCabeceraMF!=null)\n asignarAtributo(\"VAR\",\"varOidCabeceraMF\",\"valor\",oidCabeceraMF.toString());\n\t\t asignar(\"COMBO\", \"cbTiposOferta\", conector, \"dtoSalida.resultado_ROWSET\");\n\t\t///* [1]\n\n\n\n\t\ttraza(\" >>>>cargarEstrategia \");\n\t\t//this.pagina(\"contenido_catalogo_seleccion\"); \n\t\t \n\t\tComposerViewElementList cv = crearParametrosEntrada();\n\t\tConectorComposerView conectorV = new ConectorComposerView(cv, this.getRequest());\n\t\tconectorV.ejecucion();\n\t\ttraza(\" >>>Se ejecuto el conector \");\n\t\tDruidaConector resultados = conectorV.getConector();\n\t\tasignar(\"COMBO\", \"cbEstrategia\", resultados, \"PRECargarEstrategias\");\n\t\ttraza(\" >>>Se asignaron los valores \");\n\t\t// */ [1]\n\t\t\n\n }",
"private void setUpSelect(){\n\t\tEPFuncion fun = new EPFuncion();\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\tArrayList<EPExpresion> exps = new ArrayList<>();\n\t\t//seteamos la propiedad de la funcion.\n\t\tpro.setNombre(\"a1.p1\");\n\t\tpro.setPseudonombre(\"\");\n\t\t//metemos la propiedad en la funcion.\n\t\texps.add(pro);\n\t\tfun.setExpresiones(exps);\n\t\t//seteamos la funcion con el resto de valores.\n\t\tfun.setNombreFuncion(\"f1\");\n\t\tfun.setPseudonombre(\"fun1\");\n\t\t//metemos la funcion en la lista del select.\n\t\texpresionesSelect.add(fun);\n\t\t//seteamos el resto de propiedades.\n\t\tpro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p2\");\n\t\tpro.setPseudonombre(\"pro2\");\n\t\texpresionesSelect.add(pro);\n\t\tpro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p3\");\n\t\tpro.setPseudonombre(\"pro3\");\n\t\texpresionesSelect.add(pro);\n\t}",
"public void buscarController() {\n\t\tSystem.out.println(\"\\n*** Consultando Registros\\nCampo de Consulta Pesquisa: \"+selectPesquisa);\n\t\tif (selectPesquisa.equals(null) || selectPesquisa.equals(\"\")){\t\t\t\n\t\t\t\n\t\t\tatualizarTela(); \t\t\t\n\t\t}\n\t\t\n\t\tif (selectPesquisa.equals(\"nome\")){\n\t\t\t\n\t\t\tif(campoPesquisa.equals(null)){ // Evitar o Erro de passar parametro nulo para o metodo\n\t\t\t\tatualizarTela(); \t\n\t\t\t}\n\t\t\telse{\n\t\t\tSystem.out.println(\"\\n*** Buscando por Nome\\n\");\n\t\t\tString nome = campoPesquisa; // Inserindo o valor que vai passar como parametro para os metodos\n\t\t\tlistaPaciente = pacienteService.buscarPorNome(nome);\t\n\t\t\t}\n\t\t} //FECHANDO O IF SELECTPESQUISA(NOME)\n\t\t\n\t\tif (selectPesquisa.equals(\"idPaciente\")){\n\t\t\t\n\t\t\tif(campoPesquisa.equals(null)){ // Evitar o Erro de passar parametro nulo para o metodo\n\t\t\t\tatualizarTela(); \t\n\t\t\t}\t\t\n\t\t\t\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"\\n*** Buscando por ID\\n\");\n\t\t\t\ttry{ // Tratamento de Erro Caso o usuario Colocar Letras no campo\n\t\t\t\t\tSystem.out.println(\"** ID PACIENTE: \"+campoPesquisa);\n\t\t\t\t\tlong idPaciente = Long.parseLong(campoPesquisa); \n\t\t\t\t\tlistaPaciente = pacienteService.buscarPorId(idPaciente);\t\t\t\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\tSystem.err.println(\"\\n ** ID invalido\\n\"+e);\t\t\t\t\t\n\t\t\t\t\tlistaPaciente = null; // Lista vai ser vazia pois o ID foi invalido\n\t\t\t\t}\t\t\n\t\t\t} // FECHANDO O ELSE\n\t\t} //FECHANDO O IF SELECTPESQUISA(IDPROPRIETARIO)\n\t\t\n\t\tif (selectPesquisa.equals(\"cpf\")){\n\t\t\t\n\t\t\tif(campoPesquisa.equals(null)){ // Evitar o Erro de passar parametro nulo para o metodo\n\t\t\t\tatualizarTela(); \t\n\t\t\t}\t\t\n\t\t\telse{\n\t\t\tSystem.out.println(\"\\n*** Buscando por CPF\\n\");\t\t\t\n\t\t\tString cpf = campoPesquisa; // Inserindo o valor que vai passar como parametro para os metodos\n\t\t\tlistaPaciente = pacienteService.buscarPorCpf(cpf);\t\n\t\t\t}\n\t\t\n\t\t} // Fechando IF SELECTPESQUISA(CPF)\n\t\t\n\t\n\t}",
"private boolean seleccionarItemEnListado(){\n\t\t\n\t\tint indice = this.getUltIdDoc();\n\t\tif (indice > -1){ //solo si se eligió un doc\n\t\t\tif ((indice+1) > tablaDocs.getItemCount()){ //se pasa de la cantidad de elemento en la lista, poner el de mas arriba en su lugar\n\t\t\t\tthis.setUltIdDoc(tablaDocs.getItemCount()-1);\n\t\t\t\tindice = this.getUltIdDoc(); \n\t\t\t}\n\t\t\ttablaDocs.setSelection(indice); \n\t\t\tlistaDocumentos.setSelection(indice);\n\t\t}\n\t\treturn true;\n\t}",
"public void choicePersonage() {\n\t\tSystem.out.println(\"souhaitez-vous créer un guerrier ou un magicien ?\");\n\t\tchoice = sc.nextLine().toLowerCase();\t\t\t\n\t\tSystem.out.println(\"Vous avez saisi : \" + choice);\n\t\tif(!(choice.equals(MAGICIEN) || choice.equals(GUERRIER))) {\n\t\t\tchoicePersonage();\n\t\t}\n\t\tsaisieInfoPersonage(choice);\n\t}",
"protected abstract List<OpcionMenu> inicializarOpcionesMenu();",
"public List<FaturamentoVO> validaSelecionaSinistros(String ano, int tipo) {\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0%\");\n\n\t\tUteis uteis = new Uteis();\n\t\tString anoAnterior = Integer.toString((Integer.parseInt(uteis.cortaRetornaAno(ano)) - 1));\n\n\t\tList<FaturamentoVO> listaTratada = new ArrayList<FaturamentoVO>();\n\n\t\tList<FaturamentoVO> listaAnoParam = dadosFaturamentoDetalhado;\n\t\tList<FaturamentoVO> listaAnoAnterior = dadosFaturamentoDetalhadoAnoAnterior;\n\n\t\tString quantidadeTextoBancoDados = \"\";\n\t\tString quantidadeTextoApresentacao = \"\";\n\t\tString valorTextoBancoDados = \"\";\n\t\tString valorTextoApresentacao = \"\";\n\n\t\tswitch (tipo) {\n\t\tcase 1: // AVISADO\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS AVISADOS\";\n\t\t\tquantidadeTextoApresentacao = \" Quantidade \";\n\t\t\tvalorTextoBancoDados = \"SINISTROS AVISADOS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 2: // INDENIZADO\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS INDENIZADOS\";\n\t\t\tquantidadeTextoApresentacao = \" Quantidade \";\n\t\t\tvalorTextoBancoDados = \"SINISTROS INDENIZADOS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 3: // PENDENTE\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS PENDENTES\";\n\t\t\tquantidadeTextoApresentacao = \" Quantidade \";\n\t\t\tvalorTextoBancoDados = \"SINISTROS PENDENTES\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 4: // DESPESA\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS - DESPESAS\";\n\t\t\tquantidadeTextoApresentacao = \" Quantidade \";\n\t\t\tvalorTextoBancoDados = \"SINISTROS - DESPESAS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\n\t\t}\n\n\t\tfor (int i = 0; i < listaAnoParam.size(); i++) {\n\t\t\tif (listaAnoParam.get(i).getProduto().equals(quantidadeTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO sinistroVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tsinistroVOtratado.setAno(uteis.cortaRetornaAno(ano));\n\t\t\t\tsinistroVOtratado.setProduto(quantidadeTextoApresentacao);\n\n\t\t\t\tint somaTotal = 0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\t\t\t\t\t\tsomaTotal += Integer.parseInt(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(String.valueOf(somaTotal));\n\n\t\t\t\t\t}\n\t\t\t\t\tsinistroVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(sinistroVOtratado);\n\n\t\t\t} else if (listaAnoParam.get(i).getProduto().equals(valorTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO faturamentoVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tfaturamentoVOtratado.setAno(uteis.cortaRetornaAno(ano));\n\t\t\t\tfaturamentoVOtratado.setProduto(valorTextoApresentacao);\n\n\t\t\t\tdouble somaTotal = 0.0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Double.parseDouble(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tString tratada = roundForm.format(Double.parseDouble(listaAnoParam.get(i).getMeses()[k]));\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tString tratada = roundForm.format(somaTotal);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfaturamentoVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(faturamentoVOtratado);\n\n\t\t\t}\n\t\t} // for anoParam\n\n\t\tfor (int i = 0; i < listaAnoAnterior.size(); i++) {\n\t\t\tif (listaAnoAnterior.get(i).getProduto().equals(quantidadeTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO sinistroVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tsinistroVOtratado.setAno(anoAnterior);\n\t\t\t\tsinistroVOtratado.setProduto(quantidadeTextoApresentacao);\n\n\t\t\t\tint somaTotal = 0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Integer.parseInt(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(String.valueOf(somaTotal));\n\n\t\t\t\t\t}\n\t\t\t\t\tsinistroVOtratado.setMeses(mesesTratado);\n\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(sinistroVOtratado);\n\n\t\t\t} else if (listaAnoAnterior.get(i).getProduto().equals(valorTextoBancoDados)) {\n\t\t\t\tFaturamentoVO faturamentoVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tfaturamentoVOtratado.setAno(anoAnterior);\n\t\t\t\tfaturamentoVOtratado.setProduto(valorTextoApresentacao);\n\n\t\t\t\tdouble somaTotal = 0.0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Double.parseDouble(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tString tratada = roundForm.format(Double.parseDouble(listaAnoAnterior.get(i).getMeses()[k]));\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tString tratada = roundForm.format(somaTotal);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfaturamentoVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(faturamentoVOtratado);\n\n\t\t\t}\n\t\t} // for anoAnterior\n\n\t\tbyte qtdAnoParam = 0;\n\t\tbyte qtdAnoAnterior = 2;\n\n\t\tbyte vlrAnoParam = 1;\n\t\tbyte vlrAnoAnterior = 3;\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao 16/15 QTD\n\t\tString[] mesesQtdTratado = new String[13];\n\t\tdouble totalQtd = 0.0D;\n\t\tFaturamentoVO variacaoQtdVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\t\t\tBigDecimal bigQtdAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(qtdAnoParam).getMeses()[j].replace(\".\", \"\")));\n\n\t\t\ttry {\n\t\t\t\ttotalQtd = Double.parseDouble((bigQtdAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoAnterior).getMeses()[j].replace(\".\", \"\")), 4,\n\t\t\t\t\t\tRoundingMode.HALF_DOWN)).toString()) - 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalQtd = 0D;\n\t\t\t}\n\n\t\t\tmesesQtdTratado[j] = percentForm.format(totalQtd);\n\n\t\t}\n\t\tvariacaoQtdVO.setProduto(\"Variação Qtd.\");\n\t\tvariacaoQtdVO.setMeses(mesesQtdTratado);\n\t\tlistaTratada.add(variacaoQtdVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao 16/15 Valor\n\t\tString[] mesesVlrTratado = new String[13];\n\t\tdouble totalVlr = 0.0D;\n\t\tFaturamentoVO variacaoVlrVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(vlrAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalVlr = Double.parseDouble((bigVlrAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\tlistaTratada.get(vlrAnoAnterior).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")),\n\t\t\t\t\t\t4, RoundingMode.HALF_DOWN)).toString()) - 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalVlr = 0D;\n\t\t\t}\n\n\t\t\tmesesVlrTratado[j] = percentForm.format(totalVlr);\n\n\t\t}\n\t\tvariacaoVlrVO.setProduto(\"Variação Valor\");\n\t\tvariacaoVlrVO.setMeses(mesesVlrTratado);\n\t\tlistaTratada.add(variacaoVlrVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Aviso Medio anoParam - anoAtual\n\t\tString[] mesesAvisoMedioAnoParamTratado = new String[13];\n\t\tdouble totalAvisoMedioAnoParam = 0.0D;\n\t\tFaturamentoVO variacaoAvisoMedioAnoParamVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(vlrAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalAvisoMedioAnoParam = Double.parseDouble((bigVlrAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")),\n\t\t\t\t\t\t2, RoundingMode.HALF_DOWN)).toString());\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalAvisoMedioAnoParam = 0D;\n\t\t\t}\n\t\t\tmesesAvisoMedioAnoParamTratado[j] = uteis.insereSeparadoresMoeda(roundForm.format(totalAvisoMedioAnoParam));\n\n\t\t}\n\t\tvariacaoAvisoMedioAnoParamVO.setAno(uteis.cortaRetornaAno(ano));\n\t\tvariacaoAvisoMedioAnoParamVO.setProduto(\"Aviso Médio\");\n\t\tvariacaoAvisoMedioAnoParamVO.setMeses(mesesAvisoMedioAnoParamTratado);\n\t\tlistaTratada.add(variacaoAvisoMedioAnoParamVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Aviso Medio anoAnterior\n\t\tString[] mesesAvisoMedioAnoAnteriorTratado = new String[13];\n\t\tdouble totalAvisoMedioAnoAnterior = 0.0D;\n\t\tFaturamentoVO variacaoAvisoMedioAnoAnteriorVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoAnterior = new BigDecimal(Double\n\t\t\t\t\t.parseDouble(listaTratada.get(vlrAnoAnterior).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalAvisoMedioAnoAnterior = Double.parseDouble((bigVlrAnoAnterior.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoAnterior).getMeses()[j].replace(\".\", \"\")), 2,\n\t\t\t\t\t\tRoundingMode.HALF_DOWN)).toString());\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalAvisoMedioAnoAnterior = 0D;\n\t\t\t}\n\t\t\tmesesAvisoMedioAnoAnteriorTratado[j] = uteis\n\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(totalAvisoMedioAnoAnterior));\n\n\t\t}\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setAno(anoAnterior);\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setProduto(\"Aviso Médio\");\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setMeses(mesesAvisoMedioAnoAnteriorTratado);\n\t\tlistaTratada.add(variacaoAvisoMedioAnoAnteriorVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao Media\n\t\tshort avisoMedioAnoParam = 6;\n\t\tshort avisoMedioAnoAnterior = 7;\n\n\t\tString[] meses_AM_Tratado = new String[13];// AM -aviso medio\n\t\tdouble total_AM = 0.0D;\n\t\tFaturamentoVO variacao_AM_VO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal big_AM_AnoParam = new BigDecimal(Double.parseDouble(\n\t\t\t\t\tlistaTratada.get(avisoMedioAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotal_AM = Double\n\t\t\t\t\t\t.parseDouble((big_AM_AnoParam\n\t\t\t\t\t\t\t\t.divide(new BigDecimal(listaTratada.get(avisoMedioAnoAnterior).getMeses()[j]\n\t\t\t\t\t\t\t\t\t\t.replace(\".\", \"\").replace(\",\", \".\")), 4, RoundingMode.HALF_DOWN)).toString())\n\t\t\t\t\t\t- 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotal_AM = 0D;\n\t\t\t}\n\n\t\t\tmeses_AM_Tratado[j] = percentForm.format(total_AM);\n\n\t\t}\n\t\tvariacao_AM_VO.setProduto(\"Variação Média\");\n\t\tvariacao_AM_VO.setMeses(meses_AM_Tratado);\n\t\tlistaTratada.add(variacao_AM_VO);\n\n\t\treturn listaTratada;\n\t}",
"public List<DadosDiariosVO> validaSelecionaAcumuladoDadosDiarios(String ano) {\n\n\t\tList<DadosDiariosVO> listaDadosDiarios = validaSelecionaDetalhesDadosDiarios(ano);\n\n\t\tList<DadosDiariosVO> listaFiltradaDadosDiarios = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoDiario = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoAcumulado = new ArrayList<DadosDiariosVO>();\n\n\t\t/* Ordena a lista em EMITIDOS;EMITIDOS CANCELADOS;EMITIDOS RESTITUIDOS */\n\n\t\tfor (int i = 0; i < listaDadosDiarios.size(); i++) {\n\t\t\tString dataParaComparacao = listaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\tfor (int j = 0; j < listaDadosDiarios.size(); j++) {\n\n\t\t\t\tif (dataParaComparacao.equals(listaDadosDiarios.get(j).getAnoMesDia())) {\n\t\t\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\t\t\tdados.setAnoMesDia(listaDadosDiarios.get(j).getAnoMesDia());\n\t\t\t\t\tdados.setProduto(listaDadosDiarios.get(j).getProduto());\n\t\t\t\t\tdados.setTipo(listaDadosDiarios.get(j).getTipo());\n\t\t\t\t\tdados.setValorDoDia(listaDadosDiarios.get(j).getValorDoDia());\n\n\t\t\t\t\tlistaFiltradaDadosDiarios.add(dados);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\touter: for (int i = listaFiltradaDadosDiarios.size() - 1; i >= 0; i--) {\n\t\t\tfor (int j = 0; j < listaFiltradaDadosDiarios.size(); j++) {\n\t\t\t\tif (listaFiltradaDadosDiarios.get(i).getAnoMesDia()\n\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getAnoMesDia())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getProduto()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getProduto())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getTipo()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getTipo())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getValorDoDia()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getValorDoDia())) {\n\t\t\t\t\tif (i != j) {\n\n\t\t\t\t\t\tlistaFiltradaDadosDiarios.remove(i);\n\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Ordena por data */\n\t\tCollections.sort(listaFiltradaDadosDiarios, DadosDiariosVO.anoMesDiaCoparator);\n\n\t\tString dataTemp = \"\";\n\t\tBigDecimal somaAcumulada = new BigDecimal(\"0.0\");\n\n\t\t/* abaixo a visao da faturamento de cada dia */\n\t\tDadosDiariosVO faturamentoDiario = new DadosDiariosVO();\n\n\t\ttry {\n\n\t\t\tfor (int i = 0; i <= listaFiltradaDadosDiarios.size(); i++) {\n\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\n\t\t\t\tif ((i != listaFiltradaDadosDiarios.size())\n\t\t\t\t\t\t&& dataTemp.equals(listaFiltradaDadosDiarios.get(i).getAnoMesDia())) {\n\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia()).add(somaAcumulada);\n\n\t\t\t\t} else {\n\t\t\t\t\tif (listaFiltradaDadosDiarios.size() == i) {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t}\n\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia());\n\n\t\t\t\t\tfaturamentoDiario = new DadosDiariosVO();\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IndexOutOfBoundsException ioobe) {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"VisãoExecutiva_Diaria_BO - método validaSelecionaAcumuladoDadosDiarios - adicionando dados fictícios...\");\n\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\tdados.setAnoMesDia(\"2015-10-02\");\n\t\t\tdados.setProduto(\"TESTE\");\n\t\t\tdados.setTipo(\"FATURAMENTO\");\n\t\t\tdados.setValorDoDia(\"0.0\");\n\t\t\tlistaFaturamentoDiario.add(dados);\n\t\t\tSystem.err.println(\"... dados inseridos\");\n\t\t}\n\n\t\t/* abaixo construimos a visao acumulada */\n\t\tBigDecimal somaAnterior = new BigDecimal(\"0.0\");\n\t\tint quantidadeDias = 0;\n\t\tfor (int i = 0; i < listaFaturamentoDiario.size(); i++) {\n\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(listaFaturamentoDiario.get(i).getValorDoDia());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(\n\t\t\t\t\t\tsomaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia())).toString());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\tUteis uteis = new Uteis();\n\t\tString dataAtualSistema = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date(System.currentTimeMillis()));\n\t\tString dataCut[] = dataAtualSistema.split(\"/\");\n\t\tString mes_SO;\n\t\tmes_SO = dataCut[1];\n\n\t\t/* BP */\n\t\tList<FaturamentoVO> listaBP = dadosFaturamentoDetalhado;\n\t\tint mes_SO_int = Integer.parseInt(mes_SO);\n\t\tString bpMes = listaBP.get(0).getMeses()[mes_SO_int - 1];\n\t\tint diasUteis = uteis.retornaDiasUteisMes(mes_SO_int - 1);\n\t\tBigDecimal bpPorDia = new BigDecimal(bpMes).divide(new BigDecimal(diasUteis), 6, RoundingMode.HALF_DOWN);\n\n\t\tBigDecimal somaAnteriorBp = new BigDecimal(\"0.0\");\n\t\tfor (int i = 0; i < quantidadeDias; i++) {\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(bpPorDia.toString());\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(somaAnteriorBp.toString());\n\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\treturn listaFaturamentoAcumulado;\n\t}",
"public int menu(){\n System.out.println(\"Elija una opción:\");\n\t\tSystem.out.println(\"1. Registrar un nuevo carro\");//Le damos todas las opciones disponibles\n\t\tSystem.out.println(\"2. Eliminar un carro del registro\");\n\t\tSystem.out.println(\"3. Mostrar espacios disponibles\");\n System.out.println(\"4. Mostrar el registro completo\");\n System.out.println(\"5. Mostrar las estadisticas del parqueo\");\n System.out.println(\"6. Agregar mas espacios de parqueo\");\n System.out.println(\"7. Salir/n/n\");\n\n boolean paso = false;\n int option = 0;\n while (paso == false){//Aplicamos un metodo para que escriba el \n try {\n String optionString = scan.nextLine();//Recibimos el valor como String para evitar un bug con el metodo nextLine()\n option = Integer.parseInt(optionString);//Lo cambiamos a int\n paso = true;\n } catch (Exception e) {\n System.out.println(\"Ingrese un valor correcto, por favor\");\n }\n }\n return option;//regresamos el valor convertido\n }",
"public String editar()\r\n/* 59: */ {\r\n/* 60: 74 */ if ((getMotivoLlamadoAtencion() != null) && (getMotivoLlamadoAtencion().getIdMotivoLlamadoAtencion() != 0)) {\r\n/* 61: 75 */ setEditado(true);\r\n/* 62: */ } else {\r\n/* 63: 77 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_seleccionar\"));\r\n/* 64: */ }\r\n/* 65: 79 */ return \"\";\r\n/* 66: */ }",
"public String extraerCombo(){\n String consulta=null,combo;\n \n combo=comboBuscar.getSelectedItem().toString();\n \n if(combo.equals(\"Buscar por No.Control:\")){\n consulta=\"noControl\";\n } \n if(combo.equals(\"Buscar por Nombre:\")){\n consulta=\"nombreCompleto\"; \n }\n if(combo.equals(\"Buscar por Carrera:\")){\n consulta=\"nombreCarrera\";\n }\n return consulta;\n }",
"private void cargaLista() {\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Aclaracion\", \"Aclaracion\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revision\", \"Revision\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revocatoria\", \"Revocatoria\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Subsidiaria\", \"Subsidiaria\"));\n \n }",
"public List<MovimentoPorCanalDeVendaVO> validaSelecionaEmissaoPorCanal(String movimento) {\n\n\t\tList<MovimentoPorCanalDeVendaVO> list = new ArrayList<MovimentoPorCanalDeVendaVO>(listaEmissaoPorCanal);\n\n\t\tList<MovimentoPorCanalDeVendaVO> listTotal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tString[] mesesTotaisValor = { \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\",\n\t\t\t\t\"0.0\" };\n\n\t\tString[] mesesTotaisQuantidade = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\tString anoTotal = null;\n\t\tString produtoTotal = null;\n\n\t\tint qtdQuantidade = 0;\n\t\tint qtdValor = 0;\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tif (!(list.get(i).getMovimento().trim().equalsIgnoreCase(movimento.trim()))) {\n\t\t\t\tlist.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tfor (MovimentoPorCanalDeVendaVO objLista : list) {\n\t\t\tif (objLista.getTipo().equalsIgnoreCase(\"Valor\")) {\n\t\t\t\tqtdValor++;\n\t\t\t} else if (objLista.getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\t\t\t\tqtdQuantidade++;\n\t\t\t}\n\t\t}\n\t\tint indiceElementoNaoEncontrado = 0;\n\t\tif (qtdValor != qtdQuantidade) {\n\n\t\t\tif (qtdValor > qtdQuantidade) {// Valor eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"\n\t\t\t\t\t\t\t\t// + list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\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}\n\t\t\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Quantidade\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\t\t\t} else {// Qtd eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"+\n\t\t\t\t\t\t\t\t// list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\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\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Valor\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\n\t\t\t}\n\n\t\t}\n\n\t\t/*\n\t\t * ===Primeiro crio os objetos com os totais=========\n\t\t */\n\t\tfor (MovimentoPorCanalDeVendaVO emi : list) {\n\n\t\t\tif (emi.getTipo().equals(\"Valor\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisValor[i] = new BigDecimal(mesesTotaisValor[i]).add(new BigDecimal(emi.getMeses()[i]))\n\t\t\t\t\t\t\t.toString();\n\t\t\t\t}\n\n\t\t\t} else if (emi.getTipo().equals(\"Quantidade\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisQuantidade[i] = Integer.toString(\n\t\t\t\t\t\t\t(Integer.parseInt(mesesTotaisQuantidade[i]) + Integer.parseInt(emi.getMeses()[i])));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tanoTotal = emi.getAno();\n\t\t\tprodutoTotal = emi.getProduto();\n\n\t\t}\n\n\t\tMovimentoPorCanalDeVendaVO totalValor = new MovimentoPorCanalDeVendaVO();\n\t\tMovimentoPorCanalDeVendaVO totalQuantidade = new MovimentoPorCanalDeVendaVO();\n\n\t\ttotalValor.setCanalDeVenda(\"Total\");\n\t\ttotalValor.setProduto(produtoTotal);\n\t\ttotalValor.setTipo(\"Valor\");\n\t\ttotalValor.setAno(anoTotal);\n\t\ttotalValor.setMeses(mesesTotaisValor);\n\t\tlistTotal.add(totalValor);\n\n\t\ttotalQuantidade.setCanalDeVenda(\"Total\");\n\t\ttotalQuantidade.setProduto(produtoTotal);\n\t\ttotalQuantidade.setTipo(\"Quantidade\");\n\t\ttotalQuantidade.setAno(anoTotal);\n\t\ttotalQuantidade.setMeses(mesesTotaisQuantidade);\n\t\tlistTotal.add(totalQuantidade);\n\n\t\t/*\n\t\t * ===Agora calculo os percentuais=========\n\t\t */\n\n\t\tfinal int VALOR = 0;\n\t\tfinal int QUANTIDADE = 1;\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\t\tUteis uteis = new Uteis();\n\t\tList<MovimentoPorCanalDeVendaVO> listFinal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tfor (int i = 0; i < list.size() / 2; i++) {\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValor = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===VALOR==== */\n\t\t\temissaoValor.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValor.setTipo(list.get(i).getTipo());\n\t\t\temissaoValor.setMeses(list.get(i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValorPercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=VALOR==== */\n\t\t\temissaoValorPercent.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValorPercent.setTipo(\"% \" + list.get(i).getTipo());\n\n\t\t\tString[] mesesPercentValor = new String[12];\n\t\t\tfor (int k = 0; k < list.get(i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\t\t\t\t\tdouble total = Double.parseDouble(new BigDecimal(list.get(i).getMeses()[k])\n\t\t\t\t\t\t\t.divide(new BigDecimal(listTotal.get(VALOR).getMeses()[k]), 5, RoundingMode.HALF_DOWN)\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tmesesPercentValor[k] = percentForm.format(total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentValor[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoValorPercent.setMeses(mesesPercentValor);\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidade = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===QUANTIDADE==== */\n\t\t\tint j = list.size() / 2;\n\t\t\temissaoQuantidade.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidade.setTipo(list.get(j + i).getTipo());\n\t\t\temissaoQuantidade.setMeses(list.get(j + i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidadePercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=QUANTIDADE==== */\n\t\t\temissaoQuantidadePercent.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidadePercent.setTipo(\"% \" + list.get(j + i).getTipo());\n\n\t\t\tString[] mesesPercentQuantidade = new String[12];\n\t\t\tfor (int k = 0; k < list.get(j + i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tdouble total = Double.parseDouble(list.get(j + i).getMeses()[k])\n\t\t\t\t\t\t\t/ Double.parseDouble(listTotal.get(QUANTIDADE).getMeses()[k]);\n\t\t\t\t\tmesesPercentQuantidade[k] = percentForm\n\t\t\t\t\t\t\t.format(Double.toString(total).equalsIgnoreCase(\"NaN\") ? 0.0 : total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentQuantidade[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoQuantidadePercent.setMeses(mesesPercentQuantidade);\n\n\t\t\tString[] valorFormatado = new String[12];\n\t\t\tfor (int k = 0; k < emissaoValor.getMeses().length; k++) {\n\t\t\t\tvalorFormatado[k] = uteis\n\t\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(Double.parseDouble(emissaoValor.getMeses()[k])));\n\n\t\t\t}\n\t\t\temissaoValor.setMeses(valorFormatado);\n\n\t\t\tString[] valorFormatado2 = new String[12];\n\t\t\tfor (int k = 0; k < emissaoQuantidade.getMeses().length; k++) {\n\t\t\t\tvalorFormatado2[k] = uteis.insereSeparadores(emissaoQuantidade.getMeses()[k]);\n\t\t\t}\n\t\t\temissaoQuantidade.setMeses(valorFormatado2);\n\n\t\t\tlistFinal.add(emissaoValor);\n\t\t\tlistFinal.add(emissaoValorPercent);\n\t\t\tlistFinal.add(emissaoQuantidade);\n\t\t\tlistFinal.add(emissaoQuantidadePercent);\n\n\t\t}\n\n\t\treturn listFinal;\n\n\t}",
"private void setearOpcionesMenuMantenimientos()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuMant = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CLIENTES)\r\n\t\t\t\t|| formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_FUNCIONARIOS) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_IMPUESTO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_EMPRESAS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CODIGOS_GENERALIZADOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DOCUMENTOS) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DOCUMENTOS_DGI) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_MONEDAS) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_COTIZACIONES) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_TIPORUBROS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CUENTAS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_BANCOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_PROCESOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_RESUMEN_PROCESO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_PERIODO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(\"SaldoDocumentos\") ||\r\n\t\t\t\tformularioVO.getCodigo().equals(\"SaldoCuentas\") ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_RUBROS))\r\n\t\t\t{\r\n\t\t\t\tlstFormsMenuMant.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuMant.size()> 0)\r\n\t\t{\r\n\r\n\t\t\t//this.layoutMenu = new VerticalLayout();\r\n\t\t\t//this.tabMantenimientos.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbMantenimientos.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbMantenimientos);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuMant) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_IMPUESTO :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_IMPUESTO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarImpuestoButton(); \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.impuestoButton);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_EMPRESAS :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_EMPRESAS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarEmpresaButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.empresaButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CODIGOS_GENERALIZADOS :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CODIGOS_GENERALIZADOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarCodigosGeneralizadosButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.codigosGeneralizados);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_DOCUMENTOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_DOCUMENTOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarDocumentosButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.documentosButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_MONEDAS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_MONEDAS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarMonedasButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.monedasButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_RUBROS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_RUBROS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarRubros();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.rubros);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CLIENTES:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CLIENTES, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarClientes();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.clientesButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_FUNCIONARIOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_FUNCIONARIOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarFuncionarios();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.funcionariosButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_COTIZACIONES:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_COTIZACIONES, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarCotizaciones();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.cotizaciones);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_TIPORUBROS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_TIPORUBROS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarTipoRubros();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.tipoRubros);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CUENTAS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CUENTAS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarCuentas();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.cuentas);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_BANCOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_BANCOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarBancos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.bancos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_PROCESOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_PROCESOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarProcesos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.procesos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_RESUMEN_PROCESO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_RESUMEN_PROCESO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarResumenProceso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.resumenProc);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_PERIODO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_PERIODO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarPeriodo();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.periodo);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\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\t//TODO\r\n\t\t\t//this.acordion.addTab(tabMantenimientos, \"Mantenimientos\", null);\r\n\t\t\t\r\n\t\t\t//this.menuItems.addComponent(this.layoutMenu);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//acordion.setHeight(\"75%\"); /*Seteamos alto del accordion*/\r\n\t}",
"public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }",
"public static void criaEleicao() {\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\tString tipo, id, titulo, descricao, yesno;\n\t\tString dataI, dataF;\n\t\tString dept = \"\";\n\t\tint check = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o tipo de eleicao:\\n(1)Nucleo de Estudantes\\n(2)Conselho Geral\");\n\t\t\ttipo = sc.nextLine();\n\t\t\tif(tipo.equals(\"1\") || tipo.equals(\"2\")) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos de 1 a 2\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tif (tipo.equals(\"1\")) {\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"\\nInsira o nome do departamento:\");\n\t\t\t\tdept = sc.nextLine();\n\t\t\t\tif(verificarLetras(dept) && dept.length()>0) {\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"\\nO departamento apenas pode conter letras\");\n\t\t\t\t}\n\t\t\t}while(check==0);\n\t\t\t\t\n\t\t\tcheck = 0;\n\t\t}\n\n\t\tSystem.out.println(\"\\nInsira o id:\");\n\t\tid = sc.nextLine();\n\n\t\tdo {\n\t\t\tSystem.out.println(\"Insira o titulo da eleicao:\\n\");\n\t\t\ttitulo = sc.nextLine();\n\t\t\tif(verificarLetras(titulo) && titulo.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO titulo apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira a descricao da eleicao:\");\n\t\t\tdescricao = sc.nextLine();\n\t\t\tif(verificarLetras(descricao) && descricao.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nA descricao apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\t\n\t\tcheck = 0;\n\t\t\n\t\tSystem.out.println(\"Insira a data de inicio da eleicao (DD/MM/AAAA HH:MM):\\n\");\n\t\tdataI = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"Insira a data do fim da eleicao (DD/MM/AAAA HH:MM):\\n\");\n\t\tdataF = sc.nextLine();\n\t\t\n\t\tString msgServer = \"\";\n\t\t\n\t\tcheck = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tmsgServer = rmiserver.criaEleicao(Integer.parseInt(tipo), id, titulo, descricao, dataI, dataF, dept);\n\t\t\t\tSystem.out.println(msgServer);\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI alteraFac\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\n\t\tif (msgServer.equals(\"\\nEleicao criada com sucesso\")){\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"\\nDeseja criar uma lista de candidatos para associar a eleicao?\\n(1) Sim (2) Nao\");\n\t\t\t\tyesno = sc.nextLine();\n\t\t\t\tif(verificarNumeros(yesno)) {\n\t\t\t\t\tif (yesno.equals(\"1\")) {\n\t\t\t\t\t\tcriaListaCandidatos();\n\t\t\t\t\t}\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos\");\n\t\t\t\t}\n\t\t\t}while(check==0);\n\t\t\t\n\t\t\tcheck = 0;\n\t\t}\n\t}",
"public void controlaMenuEditaFuncionario(Funcionario funcionario) {\n int opcao = this.telaFuncionario.pedeOpcao();\n\n switch (opcao) {\n case 1:\n String nome = this.telaFuncionario.pedeNome();\n funcionario.setNome(nome);\n this.telaFuncionario.mensagemNomeEditadoSucesso();\n menuEditaFuncionario(funcionario);\n break;\n case 2:\n int matricula = verificaMatriculaInserida();\n funcionario.setMatricula(matricula);\n this.telaFuncionario.mensagemMatriculaEditadaSucesso();\n menuEditaFuncionario(funcionario);\n break;\n case 3:\n String dataNascimento = cadastraDataNascimento();\n funcionario.setDataNascimento(dataNascimento);\n this.telaFuncionario.mensagemDataNascimentoEditadaSucesso();\n menuEditaFuncionario(funcionario);\n break;\n case 4:\n int telefone = this.telaFuncionario.pedeTelefone();\n funcionario.setTelefone(telefone);\n this.telaFuncionario.mensagemTelefoneEditadoSucesso();\n menuEditaFuncionario(funcionario);\n break;\n case 5:\n int salario = this.telaFuncionario.pedeSalario();\n funcionario.setSalario(salario);\n this.telaFuncionario.mensagemSalarioEditadoSucesso();\n menuEditaFuncionario(funcionario);\n break;\n\n case 6:\n this.telaFuncionario.exibeOpcaoCargoFuncionario();\n Cargo cargo = atribuiCargoAoFuncionario();\n funcionario.setCargo(cargo);\n this.telaFuncionario.mensagemCargoEditadoSucesso();\n menuEditaFuncionario(funcionario);\n break;\n\n case 7:\n exibeMenuFuncionario();\n break;\n default:\n this.telaFuncionario.opcaoInexistente();\n editaFuncionario();\n break;\n }\n }",
"public void changeSelectAnio(int item){\n\t\tList<CrGeneralDTO> listAnioHRTemp = new ArrayList<CrGeneralDTO>();\n\t\t\n\t\tIterator<CrGeneralDTO> it3 = listAnioHR.iterator();\n\t\t\n\t\twhile (it3.hasNext()) {\n\t\t\tCrGeneralDTO obj = it3.next();\n\t\t\tif(obj.getId() == item) {\n\t\t\t\tobj.setSeleted(true);\n\t\t\t\tselectAnnioRecord = Integer.parseInt(obj.getDescripcion());\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tobj.setSeleted(false);\n\t\t\t}\n\t\t\t\n\t\t\tlistAnioHRTemp.add(obj);\n\t\t}\n\t\t\n\t\tlistAnioHR = new ArrayList<CrGeneralDTO>();\n\t\tlistAnioHR = listAnioHRTemp;\n\t\t\n\t\t//================ Cargar Lista Predios ==============\n\t\t\ttry {\n\t\t\t\tlistPrediosHR = cajaBo.obtenerPredios(this.referencia.getPersonaId(),selectAnnioRecord);\n\t\t\t\t\n\t\t\t\tIterator<CrGeneralDTO> it4 = listPrediosHR.iterator();\n\t\t\t\twhile (it3.hasNext()) {\n\t\t\t\t\tCrGeneralDTO obj = it4.next();\n\t\t\t\t\tobj.setSeleted(false);\n\t\t\t\t}\n\t\t\t\t\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\t\n \t}",
"public static int obterOpcaoMenu(Scanner sc) {\n\t\t//flag iniciando com o valor false\n\t\tboolean entradaValida = false;\n\t\t//opcao comeca com valor 3\n\t\tint opcao =3;\n\t\t//coletar dados para o menu\n\t\twhile(!entradaValida) {\n\t\tSystem.out.println(\"Digite a opcao desejada\");\n\t\tSystem.out.println(\"Digite (1) Consultar Contato\");\n\t\tSystem.out.println(\"Digite (2) Criar Contato\");\n\t\tSystem.out.println(\"Digite (3) Sair\");\n\t\t\n\t\t\n\t\ttry {\n\t\t\tString entrada= sc.nextLine();\n\t\t\t//mudando o valor de String para int\n\t\t\topcao = Integer.parseInt(entrada);\n\t\t\t//se qualquer uns desses botoes for selecionado mude para true a flag\n\t\t\tif(opcao ==1 || opcao ==2 || opcao==3) {\n\t\t\t\tentradaValida = true;\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tentradaValida = false;\n\t\t\t\tthrow new Exception(\"Entrada invalida\");\n\t\t\t}\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(\"entrada invalida digite novamente\\n\");\n\t\t}\n\t\t}\n\t\treturn opcao;\n\t}",
"void Consulta(String consulta){\n if(numUsuario2.getText().equals(\"\") || numUsuario2.getText().length() < 3){\n JOptionPane.showMessageDialog(null,\"Ingresa un Núm. de usuario\");\n numUsuario2.requestFocus();\n }else{//si ya hay numero de usuario\n Double ant = Double.parseDouble(jLabelLecturaAnterior.getText());\n Double act = Double.parseDouble(jTextLectura.getText());\n \n if(reinicio.isSelected()!=false){ \n //si ha seleccionado reinciar registro\n ant = 0.0; //poner lectura anterior = 0\n }\n if(act < ant){\n JOptionPane.showMessageDialog(null,\"LECTURA INVALIDA. \\n La lectura actual es menor a la anterior:\"\n + \"\\n\" + jTextLectura.getText() + \" < \" + jLabelLecturaAnterior.getText());\n jTextLectura.requestFocus();\n }else{\n int seleccion;\n if(consulta.equals(\"guardar\")){\n seleccion = JOptionPane.showConfirmDialog(null, \"¿Guardar cambios?\", \"Confirmar cambios\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n }else{\n seleccion = JOptionPane.showConfirmDialog(null, \"¿Actualizar cambios?\", \"Confirmar cambios\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); \n }\n \n if(seleccion == 0){//Si la respuesta fue SÍ\n\n consumoLectura = act - ant;\n try { \n conn = conecionBD.conexion();\n consumoDAOImpl daoConsumo = new consumoDAOImpl(conn);\n consumo c = new consumo();\n\n String numUser = numUsuario2.getText(); \n\n lecturaAct = Double.valueOf(jTextLectura.getText());\n Double recargo = Double.valueOf(jTextRecargo1.getText());\n Double cooperacion = Double.valueOf(jTextCooperacion1.getText());\n Double bonificacion = Double.valueOf(jTextBonificaciones1.getText());\n Double sanciones = Double.valueOf(jTextSanciones1.getText());\n Double varios = Double.valueOf(jTextVarios1.getText());\n String fecha = null;\n String notas = jTextAreaMotivo1.getText();\n String aviso = \"Sin aviso\";\n int status = 0;\n \n if(estadoUser == 3 || estadoUser == 4){//si usuario no paga status =1 o es pago anual\n status = 1;\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\n String fechaformateada = formato.format(new Date());\n fecha = fechaformateada;\n }\n if(consumoLectura > 10){\n importe = consumoLectura*precio;\n }else{\n importe = 0.0;\n cuota = 40.0;\n }\n Double total = importe+cuota+recargo+cooperacion+bonificacion+sanciones+varios;\n\n c.setNumUsuario(numUser);\n c.setPeriodo(periodo);\n c.setAnio(anio);\n c.setLecturaActual(lecturaAct);\n c.setConsumoMedidor(consumoLectura);\n c.setPrecio(precio);\n c.setImporteConsumo(importe);\n c.setCoutaFija(cuota);\n c.setRecargos(recargo);\n c.setCooperacion(cooperacion);\n c.setBonificaciones(bonificacion);\n c.setSanciones(sanciones);\n c.setVarios(varios);\n c.setTotalPagar(total);\n c.setFechaPAgo(fecha);\n c.setNotas(notas);\n c.setAviso(aviso);\n\n c.setStatus(status);\n\n if(consulta.equals(\"guardar\")){ \n daoConsumo.insertar(c);\n }else{\n daoConsumo.actualizar(c);\n }\n\n numUsuario2.setText(\"\");\n numUsuario2.requestFocus();\n limpiarCampos();\n } catch (DAOException ex) {\n JOptionPane.showMessageDialog(null,\"Este registro ya EXISTE\");\n }\n }\n }\n } \n }",
"public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }",
"public abstract List<Usuario> seleccionarTodos();",
"public void modificar() {\r\n if (vista.jTNombreempresa.getText().equals(\"\") || vista.jTTelefono.getText().equals(\"\") || vista.jTRFC.getText().equals(\"\") || vista.jTDireccion.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan Datos: No puede dejar cuadros en blanco\");//C.P.M Verificamos que todas las casillas esten llenas de lo contrario lo notificamos a el usuario\r\n } else {//C.P.M de lo contrario todo esta bien y prosegimos\r\n modelo.setNombre(vista.jTNombreempresa.getText());//C.P.M mandamos al modelo la informacion\r\n modelo.setDireccion(vista.jTDireccion.getText());\r\n modelo.setRfc(vista.jTRFC.getText());\r\n modelo.setTelefono(vista.jTTelefono.getText());\r\n \r\n Error = modelo.modificar();//C.P.M ejecutamos la funcion modificar del modelo y esperamos algun error\r\n if (Error.equals(\"\")) {//C.P.M si el error viene vacio es que no ocurrio algun error \r\n JOptionPane.showMessageDialog(null, \"La configuracion se modifico correctamente\");\r\n } else {//C.P.M de lo contrario lo notificamos a el usuario\r\n JOptionPane.showMessageDialog(null, Error);\r\n }\r\n }\r\n }",
"private void iniciarDatos(Cliente pCliente, int pOpcionForm, FrmClienteLec pFrmPadre) {\n frmPadre = pFrmPadre;\n clienteActual = new Cliente();\n opcionForm = pOpcionForm;\n this.txtNombre.setEditable(true); // colocar txtNombre que se pueda editar \n this.txtApellido.setEditable(true); // colocar txtNombre que se pueda editar \n this.txtDui.setEditable(true); // colocar txtNombre que se pueda editar \n this.txtNumero.setEditable(true); // colocar txtNombre que se pueda editar \n switch (pOpcionForm) {\n case FormEscOpcion.CREAR:\n btnOk.setText(\"Nuevo\"); // modificar el texto del boton btnOk a \"Nuevo\" cuando la pOpcionForm sea CREAR\n this.btnOk.setMnemonic('N'); // modificar la tecla de atajo del boton btnOk a la letra N\n this.setTitle(\"Crear un nuevo Cliente\"); // modificar el titulo de la pantalla de FrmRolEsc\n break;\n case FormEscOpcion.MODIFICAR:\n btnOk.setText(\"Modificar\"); // modificar el texto del boton btnOk a \"Modificar\" cuando la pOpcionForm sea MODIFICAR\n this.btnOk.setMnemonic('M'); // modificar la tecla de atajo del boton btnOk a la letra M\n this.setTitle(\"Modificar el Cliente\"); // modificar el titulo de la pantalla de FrmRolEsc\n llenarControles(pCliente);\n break;\n case FormEscOpcion.ELIMINAR:\n btnOk.setText(\"Eliminar\");// modificar el texto del boton btnOk a \"Eliminar\" cuando la pOpcionForm sea ELIMINAR\n this.btnOk.setMnemonic('E'); // modificar la tecla de atajo del boton btnOk a la letra E\n this.setTitle(\"Eliminar el Cliente\"); // modificar el titulo de la pantalla de FrmRolEsc\n this.txtNombre.setEditable(false); // deshabilitar la caja de texto txtNombre\n this.txtApellido.setEditable(false);\n this.txtDui.setEditable(false);\n this.txtNumero.setEditable(false);\n llenarControles(pCliente);\n break;\n case FormEscOpcion.VER:\n btnOk.setText(\"Ver\"); // modificar el texto del boton btnOk a \"Ver\" cuando la pOpcionForm sea VER\n btnOk.setVisible(false); // ocultar el boton btnOk cuando pOpcionForm sea opcion VER\n this.setTitle(\"Ver el Cliente\"); // modificar el titulo de la pantalla de FrmRolEsc\n this.txtNombre.setEditable(false); // deshabilitar la caja de texto txtNombre\n this.txtApellido.setEditable(false);\n this.txtDui.setEditable(false);\n this.txtNumero.setEditable(false);\n llenarControles(pCliente);\n break;\n default:\n break;\n }\n }",
"public String editar()\r\n/* 86: */ {\r\n/* 87:112 */ if (getDimensionContable().getId() != 0)\r\n/* 88: */ {\r\n/* 89:113 */ this.dimensionContable = this.servicioDimensionContable.cargarDetalle(this.dimensionContable.getId());\r\n/* 90:114 */ String[] filtro = { \"indicadorValidarDimension\" + getDimension(), \"true\" };\r\n/* 91:115 */ this.listaCuentaContableBean.agregarFiltro(filtro);\r\n/* 92:116 */ this.listaCuentaContableBean.setIndicadorSeleccionarTodo(true);\r\n/* 93:117 */ verificaDimension();\r\n/* 94:118 */ setEditado(true);\r\n/* 95: */ }\r\n/* 96: */ else\r\n/* 97: */ {\r\n/* 98:120 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_seleccionar\"));\r\n/* 99: */ }\r\n/* 100:123 */ return \"\";\r\n/* 101: */ }",
"private boolean validarFormulario() {\n boolean cumple=true;\n boolean mosntrarMensajeGeneral=true;\n if(!ValidacionUtil.tieneTexto(txtNombreMedicamento)){\n cumple=false;\n };\n if(!ValidacionUtil.tieneTexto(txtCantidad)){\n cumple=false;\n };\n if(cmbTipoMedicamento.getSelectedItem()==null|| cmbTipoMedicamento.getSelectedItem().equals(\"Seleccione\")){\n setSpinnerError(cmbTipoMedicamento,\"Campo Obligatorio\");\n cumple=false;\n\n }\n if(getSucursalesSeleccionadas().isEmpty()){\n\n cumple=false;\n mosntrarMensajeGeneral=false;\n Utilitario.mostrarMensaje(getApplicationContext(),\"Seleccione una sucursal para continuar.\");\n }\n if(!cumple){\n if(mosntrarMensajeGeneral) {\n Utilitario.mostrarMensaje(getApplicationContext(), \"Error, ingrese todos los campos obligatorios.\");\n }\n }\n return cumple;\n }",
"public int getCodigoSelecionado() {\n return codigoSelecionado;\n }",
"public void abrirDialogoCustodio(){\n\t\tif(aut_empleado.getValor()!=null){\n\t\t\ttab_tarspaso_Custodio.limpiar();\n\t\t\ttab_tarspaso_Custodio.insertar();\n\t\t\t//tab_direccion.limpiar();\n\t\t//\ttab_direccion.insertar();\n\t\t\tdia_traspaso_custodio.dibujar();\n\t\t}\n\t\telse{\n\t\t\tutilitario.agregarMensaje(\"Inserte un Custodio\", \"\");\n\t\t}\n\n\t}",
"private void cargarRegistro() {\n\t\tif (filaId != null) {\n\t\t\tCursor bar = bdHelper.getBar(filaId);\n // Indicamos que queremos controlar el Cursor\n\t\t\tstartManagingCursor(bar);\n\n\t\t\t// Obtenemos el campo categoria\n\t\t\tString categoria = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_CATEGORIA));\n\t\t\t// Seleccionamos la categoría en el Spinner\n\t\t\tfor (int i=0; i<categoriaSpinner.getCount();i++){\n\t\t\t\t// Cargamos una de la opciones del listado desplegable\n\t\t\t\tString s = (String) categoriaSpinner.getItemAtPosition(i);\n\t\t\t\t// Si coindice con la que está en la BD la seleccionamos en el listado desplegable\n\t\t\t\tif (s.equalsIgnoreCase(categoria)){\n\t\t\t\t\tcategoriaSpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Obtenemos el campo relacion calidad-precio\n\t\t\tString relacion = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_RELACION));\n\t\t\t// Seleccionamos en el Spinner la relacion c-p\n\t\t\tfor (int i=0; i<relacionSpinner.getCount();i++){\n\t\t\t\t// Cargamos una de la opciones del listado desplegable\n\t\t\t\tString s = (String) relacionSpinner.getItemAtPosition(i);\n\t\t\t\t// Si coindice con la que está en la BD la seleccionamos en el listado desplegable\n\t\t\t\tif (s.equalsIgnoreCase(relacion)){\n\t\t\t\t\trelacionSpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Obtenemos el campo del acompañante\n\t\t\tString acompanante = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_ACOMPANANTE));\n\t\t\t// Seleccionamos el formato en el Spinner\n\t\t\tfor (int i=0; i<acompananteSpinner.getCount();i++){\n\t\t\t\t// Cargamos una de la opciones del listado desplegable\n\t\t\t\tString s = (String) acompananteSpinner.getItemAtPosition(i);\n\t\t\t\t// Si coindice con la que está en la BD la seleccionamos en el listado desplegable\n\t\t\t\tif (s.equalsIgnoreCase(acompanante)){\n\t\t\t\t\tacompananteSpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Rellenamos las Vistas\n\t\t\tnombreText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_NOMBRE)));\n\t\t\tdireccionText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_DIRECCION)));\n\t\t\tnotasText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_NOTAS)));\n\t\t\tprecioText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_PRECIO)));\n\t\t\tvaloracionRB.setRating(bar.getFloat(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_VALORACION)));\n\n // Tratamos las fechas del registro\n\t\t\tlong fecha = bar.getLong(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_FEC_ULT_VIS));\n\t\t\tprimeraFecha.setTimeInMillis(fecha);\n\t\t\tfecha = bar.getLong(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_FEC_PRI_VIS));\n\t\t\tif (fecha>0) {\n\t\t\t\tultimaFecha=Calendar.getInstance();\n\t\t\t\tultimaFecha.setTimeInMillis(fecha);\n\t\t\t}\n\t\t\t// Dejamos de controlar el cursor de la BD\n\t\t\tstopManagingCursor(bar);\n\t\t}\n\t}",
"public void cargarEConcepto() {\n\tevidenciaConcepto = true;\n\tif (conceptoSeleccionado.getOrigen().equals(\n\t OrigenInformacionEnum.CONVENIOS.getValor())) {\n\t idEvidencia = convenioVigenteDTO.getId();\n\t nombreFichero = iesDTO.getCodigo() + \"_\"\n\t\t + convenioVigenteDTO.getId();\n\t}\n\n\ttry {\n\t listaEvidenciaConcepto = institutosServicio\n\t\t .obtenerEvidenciasDeIesPorIdConceptoEIdTabla(\n\t\t iesDTO.getId(), conceptoSeleccionado.getId(),\n\t\t idEvidencia, conceptoSeleccionado.getOrigen());\n\n\t} catch (ServicioException e) {\n\t LOG.log(Level.SEVERE, e.getMessage(), e);\n\t}\n }",
"public void validarLocalidad(ActionEvent e) {\n CommandButton botonSelecionado = (CommandButton) e.getSource();\n\n // if (this.getPersona().getLugarNacimiento() != null) {\n //this.setsDireccion(this.getPersona().getLugarNacimiento().getDepartamento().getDescripcion() + \", \" + this.getPersona().getLugarNacimiento().getDescripcion());\n RequestContext context = RequestContext.getCurrentInstance();\n\n if (botonSelecionado.getId().equals(\"cbDomicilio\")) {\n context.execute(\"PF('dgDomicilio').hide();\");\n context.update(\":frmPri:pnDomicilio\");\n }\n\n// } else {\n// FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_INFO, \"No seleccionó localidad!!\\n \"\n// + \"si no existe, comuniquese con el administrador\", null);\n// FacesContext fc = FacesContext.getCurrentInstance();\n// fc.addMessage(null, fm);\n//\n//\n// }\n }",
"public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }",
"private void cargaComboBoxTipoLaboreo() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoLaboreoEntity p\");\n java.util.List<TipoLaboreoEntity> listaTipoLaboreoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoLaboreoEntity tipoLaboreo : listaTipoLaboreoEntity) {\n miVectorTipoLaboreo.add(tipoLaboreo.getTpoNombre());\n cboMomentos.addItem(tipoLaboreo);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }",
"private Doctor buscarDoctor() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tint size = cbxDoctor.getSelectedItem().toString().length(); \r\n\t\t\t\t\t\tString cedula = (cbxDoctor.getSelectedItem().toString()).substring(size - 14, size - 1);\r\n\t\t\t\t\t\treturn (Doctor) Clinica.getInstance().findByCedula(cedula);\r\n\r\n\t\t\t\t\t}",
"private boolean validarCliente() {\n for (Cliente itemCliente : clienteList){\n if (cliente.getText().toString().equals(itemCliente.getClie_nombre())){\n clienteSeleccionado = itemCliente;\n return true;\n }\n }\n new Mensaje(getApplicationContext()).mensajeToas(\"El cliente no esta registrado\");\n return false;\n }",
"private static void gestionarMenuManejoJugador(int opcion) {\n\t\tswitch(opcion){\n\t\tcase 1:annadirJugador();\n\t\t\tbreak;\n\t\tcase 2:eliminarJugador();\n\t\t\tbreak;\n\t\tcase 3: System.out.println(jugadores.toString());\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}",
"public void construirSegundoSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet2ReglaCompleja = new JComboBox(dominio);// creamos el Segundo combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet2ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Segundo item\n\t\titemscomboDominiosSet2ReglaCompleja = new JComboBox();// creamo el segundo combo, vacio\n\t\titemscomboDominiosSet2ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Segundo Dominio de regla compleja\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelDerecho.add(comboDominiosSet2ReglaCompleja);\n\t\tcomboDominiosSet2ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelDerecho.add(itemscomboDominiosSet2ReglaCompleja);\n\t\titemscomboDominiosSet2ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelDerecho.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet2ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"public void selecteazaComanda()\n {\n for(String[] comanda : date) {\n if (comanda[0].compareTo(\"insert client\") == 0)\n clientBll.insert(idClient++, comanda[1], comanda[2]);\n else if (comanda[0].compareTo(\"insert product\") == 0)\n {\n Product p = productBll.findProductByName(comanda[1]);\n if(p!=null)//daca produsul exista deja\n productBll.prelucreaza(p.getId(), comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n else\n productBll.prelucreaza(idProduct++, comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n\n }\n else if (comanda[0].contains(\"delete client\"))\n clientBll.sterge(comanda[1]);\n else if (comanda[0].contains(\"delete product\"))\n productBll.sterge(comanda[1]);\n else if (comanda[0].compareTo(\"order\")==0)\n order(comanda);\n else if (comanda[0].contains(\"report\"))\n report(comanda[0]);\n }\n }",
"private void jTablePesquisaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTablePesquisaMouseClicked\n // Salva a posição da linha selecionada na tabela de pesquisa\n int linhaSelecionada = jTablePesquisa.getSelectedRow();\n Object id_genero = jTablePesquisa.getValueAt(linhaSelecionada, 1);\n System.out.println(id_genero);\n Integer id_generow = (Integer) id_genero;\n jT0Id.setText(jTablePesquisa.getValueAt(linhaSelecionada, 0).toString());\n jComboBox1.setSelectedItem(id_generow);\n //jComboBox1.setName(jTablePesquisa.getValueAt(linhaSelecionada, 1).toString());\n jT2Exemplar.setText((String) jTablePesquisa.getValueAt(linhaSelecionada, 2));\n jT3Autor.setText((String) jTablePesquisa.getValueAt(linhaSelecionada, 3));\n jT4Edicao.setText(jTablePesquisa.getValueAt(linhaSelecionada, 4).toString());\n jT5Ano.setText(jTablePesquisa.getValueAt(linhaSelecionada, 5).toString());\n jT6Status.setText((String) jTablePesquisa.getValueAt(linhaSelecionada, 6));\n\n // Ao selecionar um registro, os campos são ativados possibilitando fazer alterações\n habilitaCampos();\n }",
"public void verModificarDatosEntidad(String entidad, ArrayList entidadencontrada)\r\n\t{\r\n\t\tif(entidad.equalsIgnoreCase(\"Rol\"))\r\n\t\t{\r\n\t\t\tRol encontrado = (Rol)entidadencontrada.get(0);\r\n\t\t\tmodificardatosrol = new ModificarDatosRol(this, encontrado);\r\n\t\t\tmodificardatosrol.setVisible(true);\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Prueba\"))\r\n\t\t{\r\n\t\t\tPrueba encontrado = (Prueba)entidadencontrada.get(0);\r\n\t\t\tmodificardatosprueba = new ModificarDatosPrueba(this, encontrado);\r\n\t\t\tmodificardatosprueba.setVisible(true);\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Pregunta\"))\r\n\t\t{\r\n\t\t\tPregunta encontrado = (Pregunta)entidadencontrada.get(0);\r\n\t\t\tmodificardatospregunta = new ModificarDatosPregunta(this, encontrado);\r\n\t\t\tmodificardatospregunta.setVisible(true);\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Escala\"))\r\n\t\t{\r\n\t\t\tEscala encontrado = (Escala)entidadencontrada.get(0);\r\n\t\t\tmodificarescala = new ModificarDatosEscala(this, encontrado);\r\n\t\t\tmodificarescala.setVisible(true);\r\n\t\t\tcaracteristicasescal.clear();\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Competencia\"))\r\n\t\t{\r\n\t\t\tCompetencia encontrado = (Competencia)entidadencontrada.get(0);\r\n\t\t\tmodificarcompetencia = new ModificarDatosCompetencia(this, encontrado);\r\n\t\t\tmodificarcompetencia.setVisible(true);\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Caracteristica\"))\r\n\t\t{\r\n\t\t\tCaracteristica encontrado = (Caracteristica)entidadencontrada.get(0);\r\n\t\t\tmodificarcaracter = new ModificarDatosCaracteristica(this, encontrado);\r\n\t\t\tmodificarcaracter.setVisible(true);\r\n\t\t}\r\n\t}",
"public Usuarios() {\n try {\n initComponents();\n String c_est, c_mun, c_ciu, id1;\n this.setLocationRelativeTo(null);\n String[] datos = new String[2];\n a = new Archivos();\n lineas = new String[9];\n lineas = a.Leer();\n m = new ManejadorSQL(lineas[2], lineas[1], lineas[3], lineas[4], lineas[5], lineas[7], lineas[6]);\n m.setLineas(lineas);\n ResultSet b_esta = m.Select(\"tblsit_estado order by nb_estado\", \"id_estado,nb_estado\");//Seleccionamos los estados para el combo box\n while (b_esta.next()) {\n datos[0] = b_esta.getString(1);\n datos[1] = b_esta.getString(2);\n u_c_estado.addItem(datos[1]); // agregamos los estados\n //System.out.println(datos[0]);\n }\n DefaultComboBoxModel modeloCombo = new DefaultComboBoxModel();// TODO add your handling code here:\n modeloCombo.addElement(\"Seleccionar\");\n u_ciudad.setModel(modeloCombo);\n u_c_municipio.setModel(modeloCombo);\n \n } catch (Exception ex) {\n Logger.getLogger(Usuarios.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public List<Joueur> List_Joueur_HommesForComboBox() \r\n {\r\n List<Joueur> j = new ArrayList<>();\r\n String req= \"SELECT * FROM personne WHERE datedestruction is NULL and role = 'Joueur' and sexe='Homme' \";\r\n try {\r\n ResultSet res = ste.executeQuery(req);\r\n while (res.next()) {\r\n \r\n Joueur Jou = new Joueur(\r\n res.getInt(\"idpersonne\"),\r\n \r\n res.getString(\"nom\"),\r\n res.getString(\"prenom\")\r\n );\r\n j.add(Jou);\r\n \r\n System.out.println(\"------- joueurs selectionné avec succés----\");\r\n \r\n }\r\n \r\n } catch (SQLException ex) {\r\n System.out.println(\"----------Erreur lors methode : List_Joueur_Hommes()------\");\r\n }\r\n return j;\r\n \r\n}",
"private void CargarListaFincas() {\n listaFincas = controlgen.GetComboBox(\"SELECT '-1' AS ID, 'Seleccionar' AS DESCRIPCION\\n\" +\n \"UNION\\n\" +\n \"SELECT `id` AS ID, `descripcion` AS DESCRIPCION\\n\" +\n \"FROM `fincas`\\n\"+\n \"/*UNION \\n\"+\n \"SELECT 'ALL' AS ID, 'TODOS' AS DESCRIPCION*/\");\n \n Utilidades.LlenarComboBox(cbFinca, listaFincas, \"DESCRIPCION\");\n \n }",
"public int menuPrincipal() {\n lector = new Scanner(System.in);\n\n int opcion = -1;\n do {\n Lib.limpiarPantalla();\n System.out.println(\"************************************\");\n System.out.println(\"* MENU PRINCIPAL *\");\n System.out.println(\"************************************\");\n System.out.println(\"1. Altas\");\n System.out.println(\"2. Alquilar multimedia socio\");\n System.out.println(\"3 Devolver multimedia ESTO FALLA\");\n System.out.println(\"4 Listados\");\n System.out.println(\"---------------------\");\n System.out.println(\"0. Cancelar\\n\");\n System.out.println(\"Elija una opción: \");\n try {\n opcion = Integer.parseInt(Lib.lector.nextLine());\n if (opcion < 0 || opcion > 4) {\n System.out.println(\"Elija una opción del menú [0-4]\");\n Lib.pausa();\n }\n } catch (NumberFormatException nfe) {\n System.out.println(\"Solo números por favor\");\n Lib.pausa();\n }\n } while (opcion < 0 || opcion > 4);\n return opcion;\n\n }",
"private void llenarEntidadConLosDatosDeLosControles() {\n clienteActual.setNombre(txtNombre.getText());\n clienteActual.setApellido(txtApellido.getText());\n clienteActual.setDui(txtDui.getText());\n //clienteActual.setNumero(txtNumero.getText());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n }",
"public static void menuEmpleado() throws ClienteException, PersistenciaException, DniException, VehiculoException, DireccionException, VentaException, PersonaException {\n boolean salir = false;\n int opcion;\n\n while (!salir) {\n System.out.println(\"\\n1. Realizar ventas\");\n System.out.println(\"2. Gestionar clientes\");\n System.out.println(\"3. Salir\\n\");\n\n try {\n System.out.print(\"Introduzca una de las opciones: \");\n opcion = teclado.nextInt();\n teclado.nextLine();\n System.out.println(\"\");\n\n switch (opcion) {\n case 1:\n menuVentas();\n break;\n case 2:\n menuClientes();\n break;\n case 3:\n salir = true;\n break;\n default:\n System.out.println(\"Solo numeros entre 1 y 3\");\n }\n } catch (InputMismatchException e) {\n System.out.println(\"Debe insertar una opcion correcta\");\n teclado.next();\n }\n }\n }",
"public void construirCuartoSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet4ReglaCompleja = new JComboBox(dominio);// creamos el Cuarto combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet4ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Cuarto item\n\t\titemscomboDominiosSet4ReglaCompleja = new JComboBox();// creamo el Cuarto combo, vacio\n\t\titemscomboDominiosSet4ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Cuarto Dominio de regla compleja\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelDerecho.add(comboDominiosSet4ReglaCompleja);\n\t\tcomboDominiosSet4ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelDerecho.add(itemscomboDominiosSet4ReglaCompleja);\n\t\titemscomboDominiosSet4ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelDerecho.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet4ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"public Ano getAnoSelecionado() {\n\t\treturn anoSelecionado;\n\t}",
"public String seleccionarCuentaContable(SelectEvent event)\r\n/* 151: */ {\r\n/* 152:178 */ this.cuentaContable = ((CuentaContable)event.getObject());\r\n/* 153:180 */ if ((getDimension().equals(\"1\")) && (!this.cuentaContable.isIndicadorValidarDimension1())) {\r\n/* 154:181 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cuenta_contable_indicador_dimension\"));\r\n/* 155:182 */ } else if ((getDimension().equals(\"2\")) && (!this.cuentaContable.isIndicadorValidarDimension2())) {\r\n/* 156:183 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cuenta_contable_indicador_dimension\"));\r\n/* 157:184 */ } else if ((getDimension().equals(\"3\")) && (!this.cuentaContable.isIndicadorValidarDimension3())) {\r\n/* 158:185 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cuenta_contable_indicador_dimension\"));\r\n/* 159:186 */ } else if ((getDimension().equals(\"4\")) && (!this.cuentaContable.isIndicadorValidarDimension4())) {\r\n/* 160:187 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cuenta_contable_indicador_dimension\"));\r\n/* 161:188 */ } else if ((getDimension().equals(\"5\")) && (!this.cuentaContable.isIndicadorValidarDimension5())) {\r\n/* 162:189 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cuenta_contable_indicador_dimension\"));\r\n/* 163: */ }\r\n/* 164:192 */ Map<Integer, CuentaContable> hashCC = new HashMap();\r\n/* 165:193 */ for (CuentaContableDimensionContable cccc : getDimensionContable().getListaCuentaContableDimensionContable()) {\r\n/* 166:194 */ hashCC.put(Integer.valueOf(cccc.getCuentaContable().getId()), cccc.getCuentaContable());\r\n/* 167: */ }\r\n/* 168:196 */ Object filters = agregarFiltroOrganizacion(null);\r\n/* 169:197 */ ((Map)filters).put(\"codigo\", this.cuentaContable.getCodigo() + \"%\");\r\n/* 170:198 */ ((Map)filters).put(\"indicadorMovimiento\", \"true\");\r\n/* 171:199 */ ((Map)filters).put(\"indicadorValidarDimension\" + this.dimension, \"true\");\r\n/* 172:200 */ List<CuentaContable> listCuentasGrupo = this.servicioCuentaContable.obtenerListaCombo(\"codigo\", true, (Map)filters);\r\n/* 173:201 */ for (CuentaContable cc : listCuentasGrupo) {\r\n/* 174:203 */ if (hashCC.get(Integer.valueOf(cc.getId())) == null)\r\n/* 175: */ {\r\n/* 176:204 */ CuentaContableDimensionContable cccc = new CuentaContableDimensionContable();\r\n/* 177:205 */ cccc.setCuentaContable(cc);\r\n/* 178:206 */ cccc.setDimensionContable(getDimensionContable());\r\n/* 179:207 */ getDimensionContable().getListaCuentaContableDimensionContable().add(cccc);\r\n/* 180: */ }\r\n/* 181: */ }\r\n/* 182:215 */ return \"\";\r\n/* 183: */ }",
"public void guardar(int sel){\n \n if (modelo.getRowCount() == 0) {\n JOptionPane.showMessageDialog(this, \"Necesitas agregar elementos.\");\n } else{\n Producto prod[] = new Producto[modelo.getRowCount()];\n for (int i = 0; i < modelo.getRowCount(); i++) { \n prod[i] = new Producto(Integer.parseInt(modelo.getValueAt(i, 0)+\"\"),\n (String)modelo.getValueAt(i, 1),\n (String)modelo.getValueAt(i, 2),\n Integer.parseInt(modelo.getValueAt(i, 3)+\"\"),\n Double.parseDouble(modelo.getValueAt(i, 4)+\"\"));\n }\n \n \n //Ordenamos\n if (sel == 0) {\n ArchivosBinarios.ordQS_A_ID(prod, 0, prod.length-1);\n } else if (sel == 1){\n ArchivosBinarios.ord_QS_Dsc_Asc(prod, 0, prod.length-1);\n } else if (sel == 2) {\n JOptionPane.showMessageDialog(null, \"La informacipón se guardo.\");\n }\n\n \n for (int i = 0; i < prod.length; i++) {\n modelo.setValueAt(prod[i].getId(), i, 0);\n modelo.setValueAt(prod[i].getTipo(), i, 1);\n modelo.setValueAt(prod[i].getMarca(), i, 2);\n modelo.setValueAt(prod[i].getCantidad(), i, 3);\n modelo.setValueAt(prod[i].getPrecio(), i, 4);\n }\n }\n }",
"private void submenuCliente(){\n Scanner s = new Scanner(System.in);\n int opcao = 0;\n\n try{\n do{\n System.out.println(\"1 - Criar Conta\");\n System.out.println(\"2 - Já possui conta? Log In\");\n System.out.println(\"3 - Associar conta\");\n System.out.println(\"0 - Sair\");\n\n opcao = s.nextInt();\n System.out.print(\"\\n\");\n\n switch(opcao){\n case 1:\n registoCliente();\n break;\n case 2:\n loginCliente();\n break;\n case 3:\n associarContaCliente();\n break;\n case 0:\n break;\n\n default:\n System.out.println(\"Opção inválida\");\n break;\n }\n } while (opcao != 0);\n }\n catch(InputMismatchException e){\n System.out.println(\"Entrada inválida\");\n menuInicial();\n\n }\n }",
"public int menuAltas(){\n lector = new Scanner(System.in);\n\n int opcion = -1;\n do {\n Lib.limpiarPantalla();\n System.out.println(\"************************************\");\n System.out.println(\"* MENU DE ALTAS *\");\n System.out.println(\"************************************\");\n System.out.println(\"1. Nueva pelicula\");\n System.out.println(\"2. Nuevo Videojuego\");\n System.out.println(\"3 Nuevo socio\");\n System.out.println(\"---------------------\");\n System.out.println(\"0. Cancelar\\n\");\n System.out.println(\"Elija una opción: \");\n try {\n opcion = Integer.parseInt(Lib.lector.nextLine());\n if (opcion < 0 || opcion > 3) {\n System.out.println(\"Elija una opción del menú [0-3]\");\n Lib.pausa();\n }\n } catch (NumberFormatException nfe) {\n System.out.println(\"Solo números por favor\");\n Lib.pausa();\n }\n } while (opcion < 0 || opcion > 3);\n return opcion;\n\n }",
"public void selecionarCliente() {\n int cod = tabCliente.getSelectionModel().getSelectedItem().getCodigo();\n cli = cli.buscar(cod);\n\n cxCPF.setText(cli.getCpf());\n cxNome.setText(cli.getNome());\n cxRua.setText(cli.getRua());\n cxNumero.setText(Integer.toString(cli.getNumero()));\n cxBairro.setText(cli.getBairro());\n cxComplemento.setText(cli.getComplemento());\n cxTelefone1.setText(cli.getTelefone1());\n cxTelefone2.setText(cli.getTelefone2());\n cxEmail.setText(cli.getEmail());\n btnSalvar.setText(\"Novo\");\n bloquear(false);\n }",
"private void menuCliente(String username){\n a_armazena.juntaCatalogos();\n a_armazena.JuntaProdutos();\n ArrayList<String> encs=b_dados.buscapraClassificar(username);\n if(!encs.isEmpty())\n menuClassifica(encs,username);\n Scanner s = new Scanner(System.in);\n int opcao = 0;\n String op=\"\";\n\n try{\n do{\n System.out.println(\"Escolha o que pretende fazer\");\n System.out.println(\"1 - Ver Lojas\");\n System.out.println(\"2 - Consultar Dados Pessoais\");\n System.out.println(\"3 - Historico de Encomendas\");\n System.out.println(\"4 - Ver estado de encomenda\");\n\n\n System.out.println(\"0 - Retroceder\");\n\n opcao = s.nextInt();\n System.out.print(\"\\n\");\n\n switch(opcao){\n case 0:\n break;\n case 1:\n verLojas(b_dados.getUtilizadores().get(username).getCodUtilizador());\n break;\n case 2:\n consultadadosUtilizador(username);\n break;\n case 3:\n b_dados.buscaHistoricoDisplay(b_dados.buscaHistoricoUtilizador(b_dados.getUtilizadores().get(username).getCodUtilizador()));\n break;\n case 4:\n System.out.println(\"As encomendas que ainda não foram entregues são\");\n b_dados.displayencsnaoentregues(username);\n EstadoEncomenda();\n break;\n default:\n System.out.print(\"Opção inválida\\n\\n\");\n break;\n\n }\n }while(opcao != 0);\n }\n catch (UtilizadorNaoExisteException e){\n System.out.println(e.getMessage());\n menuCliente(username);\n }\n catch(InputMismatchException e){\n System.out.println(\"Entrada inválida\");\n menuCliente(username);\n\n }\n }",
"public void chocoContraMunicion(IMunicion municion){}",
"public static void menuGerente() throws ClienteException, PersistenciaException, DniException, EmpleadoException, VehiculoException, BastidorException, DireccionException, VentaException, PersonaException {\n boolean salir = false;\n int opcion;\n\n while (!salir) {\n System.out.println(\"\\n1. Realizar ventas\");\n System.out.println(\"2. Gestionar clientes\");\n System.out.println(\"3. Gestionar empleados\");\n System.out.println(\"4. Gestionar vehiculos\");\n System.out.println(\"5. Salir\\n\");\n\n try {\n System.out.print(\"Introduzca una de las opciones: \");\n opcion = teclado.nextInt();\n teclado.nextLine();\n System.out.println(\"\");\n\n switch (opcion) {\n case 1:\n menuVentas();\n break;\n case 2:\n menuClientes();\n break;\n case 3:\n menuEmpleados();\n break;\n case 4:\n menuVehiculos();\n break;\n case 5:\n salir = true;\n break;\n default:\n System.out.println(\"Solo numeros entre 1 y 5\");\n }\n } catch (InputMismatchException e) {\n System.out.println(\"Debe insertar una opcion correcta\");\n teclado.next();\n }\n }\n }",
"public int construir(int pasoSolicitado ) {\n if(tipoTraductor.equals(\"Ascendente\")){\n construirAsc(pasoSolicitado);\n \n }\n else{\n construirDesc(pasoSolicitado);\n }\n contador=pasoSolicitado;\n cadena.actualizarCadena(pasoSolicitado);\n return contador;\n }",
"private void cargaComboTipoDocumento() {\n\t\tcomboTipoDoc = new JComboBox();\n\t\tfor (TipoDocumentoDTO tipoDocumentoDTO : tip) {\n\t\t\tcomboTipoDoc.addItem(tipoDocumentoDTO.getAbreviacion());\n\t\t}\n\n\t}"
]
| [
"0.69125515",
"0.6667335",
"0.66078657",
"0.6541046",
"0.65318394",
"0.65126294",
"0.6342921",
"0.62980044",
"0.6279631",
"0.6270364",
"0.6239963",
"0.6234559",
"0.6232078",
"0.62208825",
"0.6206975",
"0.62067914",
"0.6194468",
"0.6189853",
"0.616327",
"0.61504585",
"0.61059314",
"0.60738033",
"0.60692364",
"0.60678923",
"0.6064451",
"0.6051016",
"0.6040844",
"0.6039014",
"0.6035451",
"0.60344505",
"0.6022603",
"0.5993255",
"0.5983842",
"0.5970439",
"0.59525216",
"0.5951062",
"0.5950101",
"0.59392",
"0.590494",
"0.59013814",
"0.59012514",
"0.58930933",
"0.5891967",
"0.5865782",
"0.58578634",
"0.58558226",
"0.585492",
"0.584681",
"0.5845721",
"0.5844402",
"0.58350116",
"0.58307636",
"0.5827138",
"0.58182096",
"0.58129966",
"0.580874",
"0.5807431",
"0.58054507",
"0.58050394",
"0.57623416",
"0.5756887",
"0.57553154",
"0.5754051",
"0.57531476",
"0.57513654",
"0.5748858",
"0.574525",
"0.5741921",
"0.5736958",
"0.5733787",
"0.5730574",
"0.57286024",
"0.5727581",
"0.572656",
"0.57213867",
"0.5701076",
"0.5698529",
"0.5696705",
"0.5696094",
"0.5695658",
"0.567335",
"0.5669275",
"0.5668242",
"0.5667435",
"0.56664777",
"0.5664554",
"0.5663077",
"0.5662534",
"0.5656485",
"0.5655385",
"0.5651928",
"0.56493795",
"0.5642121",
"0.56415814",
"0.56381005",
"0.5635965",
"0.5624362",
"0.5621163",
"0.56150734",
"0.5608118",
"0.5607083"
]
| 0.0 | -1 |
Try to fetch DecorView from context | protected ViewGroup getDecorView() {
if (getContext() instanceof Activity) {
View decor = ((Activity) getContext()).getWindow().getDecorView();
if (decor instanceof ViewGroup) {
return (ViewGroup) decor;
}
}
//Try to fetch DecorView from parents
ViewGroup view = this;
while (view.getParent() != null && view.getParent() instanceof ViewGroup) {
view = (ViewGroup) view.getParent();
}
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected ReliedOnView() {}",
"public abstract String getDecoratorInfo();",
"public interface IView {\n Context getContexts();\n}",
"protected View getDecorContent() {\n return mDecorContent;\n }",
"protected View getCompartmentView() {\n\t\tView view = (View) getDecoratorTarget().getAdapter(View.class);\r\n\t\tIterator it = view.getPersistedChildren().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tView child = (View) it.next();\r\n\t\t\tif (child.getType().equals(DeployCoreConstants.HYBRIDLIST_SEMANTICHINT)) {\r\n\t\t\t\treturn child;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"protected abstract ViewPreparer getPreparer(String name, WebApplicationContext context) throws TilesException;",
"static Element getContextElement(Element element ,\n CompilationController controller )\n {\n if ( element instanceof TypeElement ){\n if ( hasAnnotation(element, DECORATOR) ){\n List<VariableElement> fieldsIn = ElementFilter.fieldsIn(\n controller.getElements().getAllMembers((TypeElement)element));\n for (VariableElement variableElement : fieldsIn) {\n if ( hasAnnotation(variableElement, DELEGATE)){\n return variableElement;\n }\n }\n StatusDisplayer.getDefault().setStatusText(\n NbBundle.getMessage(\n WebBeansActionHelper.class,\n \"LBL_NotDecorator\"));\n }\n return null;\n }\n return element;\n }",
"Decorator getDecorator(String id);",
"@Override\n\t protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {\n\t\t builder.addDecoratorPath(\"/*\", \"/WEB-INF/jsp/decorator/decorator.jsp\")\n//\t\t .addDecoratorPaths(\"/articles/*\", \"/decorators/article.html\",\n//\t\t \"/decoratos/two-page-layout.html\",\n//\t\t \"/decorators/common.html\")\n\t\t // Exclude path from decoration.\n\t\t .addExcludedPath(\"/member/list.do\")\n\t\t .addExcludedPath(\"/base/codeWindow.html*\")\n\t\t .addExcludedPath(\"/base/postWindow.html*\");\n\t\t \n\t\t builder.addTagRuleBundles(new DivExtractingTagRuleBundle());\n\n\t }",
"public interface FeatherContext {\n\n\t\t/**\n\t\t * Gets the Activity main image view.\n\t\t * \n\t\t * @return the main image\n\t\t */\n\t\tImageViewTouchBase getMainImage();\n\n\t\t/**\n\t\t * Gets the Activity bottom bar view.\n\t\t * \n\t\t * @return the bottom bar\n\t\t */\n\t\tBottombarViewFlipper getBottomBar();\n\n\t\t/**\n\t\t * Gets the Activity options panel container view.\n\t\t * \n\t\t * @return the options panel container\n\t\t */\n\t\tViewGroup getOptionsPanelContainer();\n\n\t\t/**\n\t\t * Gets the Activity drawing image container view.\n\t\t * \n\t\t * @return the drawing image container\n\t\t */\n\t\tViewGroup getDrawingImageContainer();\n\n\t\t/**\n\t\t * There's a special container drawn on top of all views, which can be used to add custom dialogs/popups.\n\t\t * \n\t\t * This is invisible by default and must be activated in order to be used\n\t\t * \n\t\t * @return\n\t\t */\n\t\tViewGroup activatePopupContainer();\n\n\t\t/**\n\t\t * When the there's no need to use the popup container anymore, you must deactivate it\n\t\t */\n\t\tvoid deactivatePopupContainer();\n\n\t\t/**\n\t\t * Show tool progress.\n\t\t */\n\t\tvoid showToolProgress();\n\n\t\t/**\n\t\t * Hide tool progress.\n\t\t */\n\t\tvoid hideToolProgress();\n\n\t\t/**\n\t\t * Show a modal progress\n\t\t */\n\t\tvoid showModalProgress();\n\n\t\t/**\n\t\t * Hide the modal progress\n\t\t */\n\t\tvoid hideModalProgress();\n\n\t\t/**\n\t\t * Gets the toolbar.\n\t\t * \n\t\t * @return the toolbar\n\t\t */\n\t\tToolbarView getToolbar();\n\t}",
"@Override\n public String[] selectDecoratorPaths(Content content, WebAppContext context) throws IOException {\n HttpServletRequest request = context.getRequest();\n String decorator = null;\n //首先从header头信息取值\n decorator = request.getHeader(\"Sitemesh-Decorator\");\n if (StringUtils.isBlank(decorator)) {\n //未取到再从参数取值\n decorator = request.getParameter(\"sitemesh-decorator\");\n }\n if (StringUtils.isNotBlank(decorator)) {\n //按照参数值返回对应路径下面的jsp装饰模板页码\n return new String[]{\"/WEB-INF/views/layouts/\" + decorator + \".jsp\"};\n }\n\n // Otherwise, fallback to the standard configuration\n return defaultDecoratorSelector.selectDecoratorPaths(content, context);\n }",
"Map<String, Decorator> getDecorators();",
"@Override\n public View onCreateView(String name, Context context, AttributeSet attrs) {\n // if this is NOT enable to be skined , simplly skip it\n boolean isSkinEnable = attrs.getAttributeBooleanValue(ThemeSkinConfig.NAMESPACE, ThemeSkinConfig.ATTR_SKIN_ENABLE, false);\n if (!isSkinEnable) {\n return null;\n }\n\n View view = onRealCreateView(context, name, attrs);\n\n if (view == null) {\n return null;\n }\n\n ThemeSkinPair themeSkinPair = parseThemeSkinAttr(context, attrs, view);\n if (context instanceof ContextThemeSkinWrapper) {\n ((ContextThemeSkinWrapper) context).getThemeSkinManager().addSkinView(themeSkinPair);\n } else {\n if (mThemeSkinManager != null) {\n mThemeSkinManager.addSkinView(themeSkinPair);\n } else {\n LogUtils.e(\"ThemeSkinInflaterFactory: mThemeSkinManager is null!\");\n }\n }\n\n if (ThemeSkinManager.getInstance().isExternalSkin()) {\n themeSkinPair.apply();\n }\n\n return view;\n }",
"private View onRealCreateView(Context context, String name, AttributeSet attrs) {\n View view = null;\n try {\n if (-1 == name.indexOf('.')) {\n if (\"View\".equals(name)) {\n view = LayoutInflater.from(context).createView(name, \"android.view.\", attrs);\n }\n if (view == null) {\n view = LayoutInflater.from(context).createView(name, \"android.widget.\", attrs);\n }\n if (view == null) {\n view = LayoutInflater.from(context).createView(name, \"android.webkit.\", attrs);\n }\n } else {\n view = LayoutInflater.from(context).createView(name, null, attrs);\n }\n\n LogUtils.i(\"about to create \" + name);\n\n } catch (Exception e) {\n LogUtils.e(\"error while create 【\" + name + \"】 : \" + e.getMessage());\n view = null;\n }\n return view;\n }",
"public interface IViewGetter<T,V extends View> {\n V createView(Context context);\n void initView(V view, T bean);\n}",
"RenderingContext getContext();",
"View getActiveView();",
"@Override\n protected void doProcess(ITemplateContext context, IModel model, AttributeName attributeName,\n String attributeValue, IElementModelStructureHandler structureHandler) {\n\n // Ensure that every element to this point contained a decorate processor\n for (IProcessableElementTag element : context.getElementStack()) {\n if (element.getAttribute(attributeName) == null) {\n throw new IllegalArgumentException(\"layout:decorate/data-layout-decorate must appear in the root element of your template\");\n }\n }\n\n TemplateModelFinder templateModelFinder = new TemplateModelFinder(context);\n\n // Remove the decorate processor from the root element\n IProcessableElementTag rootElement = (IProcessableElementTag) MetaClass.first(model);\n if (rootElement.hasAttribute(attributeName)) {\n rootElement = context.getModelFactory().removeAttribute(rootElement, attributeName);\n model.replace(0, rootElement);\n }\n\n // Load the entirety of this template\n // TODO: Can probably find a way of preventing this double-loading for #102\n String contentTemplateName = context.getTemplateData().getTemplate();\n IModel contentTemplate = templateModelFinder.findTemplate(contentTemplateName).cloneModel();\n contentTemplate.replace(MetaClass.findIndexOf(contentTemplate, event -> event instanceof IOpenElementTag), rootElement);\n\n // Locate the template to decorate\n FragmentExpression decorateTemplateExpression = new ExpressionProcessor(context).parseFragmentExpression(attributeValue);\n IModel decorateTemplate = templateModelFinder.findTemplate(decorateTemplateExpression).cloneModel();\n\n // Gather all fragment parts from this page to apply to the new document\n // after decoration has taken place\n Map<String, IModel> pageFragments = new FragmentFinder(getDialectPrefix()).findFragments(model);\n\n // Choose the decorator to use based on template mode, then apply it\n TemplateMode templateMode = getTemplateMode();\n XmlDocumentDecorator decorator\n = templateMode == TemplateMode.HTML ? new HtmlDocumentDecorator(context, sortingStrategy)\n : templateMode == TemplateMode.XML ? new XmlDocumentDecorator(context)\n : null;\n if (decorator == null) {\n throw new IllegalArgumentException(\n \"Layout dialect cannot be applied to the \" + templateMode + \" template mode, only HTML and XML template modes are currently supported\"\n );\n }\n IModel resultTemplate = decorator.decorate(decorateTemplate, contentTemplate);\n MetaClass.replaceModel(model, 0, resultTemplate);\n\n // Save layout fragments for use later by layout:fragment processors\n FragmentMap.setForNode(context, structureHandler, pageFragments);\n }",
"public interface BaseView {\n\n /**\n * 显示正在加载的View-id,以及携带的数据 args\n */\n void showLoading(int id, Bundle args);\n\n /**\n * 关闭正在加载的View-id\n */\n void dimissLoading(int id);\n\n /**显示提示\n * @param msg\n */\n void showToast(String msg,int resId);\n\n /**\n * 获取上下文\n * @return\n */\n Context getContext();\n\n\n}",
"@Override\n protected void afterHookedMethod(MethodHookParam param) throws Throwable {\n super.afterHookedMethod(param);\n XposedBridge.log(\"hook onResume\");\n Activity activity = (Activity) param.thisObject;\n FrameLayout decor = (FrameLayout) activity.getWindow().getDecorView();\n //View decor = (View) activity.getWindow().getDecorView();\n List<View> views=getAllChildViews(decor);\n XposedBridge.log(\"view size: \"+views.size());\n for(int i=0;i<views.size();i++){\n View view=views.get(i);\n Log.i(\"ViewName\", view.getClass().getName());\n// ImageView imageView=(ImageView)views.get(i);\n// imageView.getRight();\n }\n }",
"@Override\n public Context getApplicationContext() {\n return mView.get().getApplicationContext();\n }",
"public interface DecorationInfo {\n\n DecorationParams getDecorationParams();\n}",
"public TemplateAvailabilityProvider getProvider(String view, ApplicationContext applicationContext)\n/* */ {\n/* 118 */ Assert.notNull(applicationContext, \"ApplicationContext must not be null\");\n/* 119 */ return getProvider(view, applicationContext.getEnvironment(), applicationContext\n/* 120 */ .getClassLoader(), applicationContext);\n/* */ }",
"Context getContext();",
"public interface ViewCustomization {\n\n void customize(View v);\n\n}",
"protected DecoratorString<ARXNode> getTooltipDecorator() {\n return this.tooltipDecorator;\n }",
"@Override\n\tpublic View getLayout(Context context, ViewGroup container) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic View getLayout(Context context, ViewGroup container) {\n\t\treturn null;\n\t}",
"public ViewProcessor getViewProcessor() {\n return _viewProcessor;\n }",
"public AddTipLogic(AddTipActivity view, Context context){\n this.view = view;\n this.context = context;\n }",
"LoginRenderEngine getRenderEngine(String context, HttpServletRequest request);",
"PercentageViewBehavior(Context context, AttributeSet attrs) {\n super(context, attrs);\n\n // setting values\n TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ViewBehavior);\n mDependViewId = a.getResourceId(R.styleable.ViewBehavior_behavior_dependsOn, 0);\n mDependType = a.getInt(R.styleable.ViewBehavior_behavior_dependType, DEPEND_TYPE_WIDTH);\n mDependTarget = a.getDimensionPixelOffset(R.styleable.ViewBehavior_behavior_dependTarget, UNSPECIFIED_INT);\n a.recycle();\n }",
"@Override // com.zhihu.android.app.p1311ui.fragment.paging.BasePagingFragment\n public RecyclerView.ItemDecoration provideItemDecoration() {\n if (getContext() == null) {\n return null;\n }\n return C30150b.m140274a(getContext()).mo122496a(R.color.transparent).mo122498b(DisplayUtils.m87171b(getContext(), 8.0f)).mo122497a(TodoAnswerHolder.class);\n }",
"@PreAuthorize(\"hasRole('ROLE_ADMIN') or (#pluginIdentifier == 'dictionaries') or (#pluginIdentifier == 'products' \"\n + \"and (#viewName != 'orders' and #viewName != 'order' or hasRole('ROLE_SUPERVISOR'))) or \"\n + \"(#pluginIdentifier == 'basic') or \"\n + \"(#pluginIdentifier == 'users' and #viewName == 'profile') or (#pluginIdentifier == 'core' and #viewName == 'systemInfo')\")\n ViewDefinition get(String pluginIdentifier, String viewName);",
"public ViewIdentificator getView() {\r\n return view;\r\n }",
"public AdvertDetailsAutotekaViewImpl(@NotNull View view) {\n super(view);\n Intrinsics.checkNotNullParameter(view, \"view\");\n this.x = view;\n this.s = view.findViewById(R.id.divider_top);\n this.u = a2.b.a.a.a.u1(view, \"view.context\");\n }",
"@Override\n public Context getActivityContext() {\n return mView.get().getActivityContext();\n }",
"public CustomView(Context context) {\n this(context, null);\n init();\n }",
"private View getView() {\n try {\n return (View) this.webView.getClass().getMethod(\"getView\", new Class[0]).invoke(this.webView, new Object[0]);\n } catch (Exception unused) {\n return (View) this.webView;\n }\n }",
"@NonNull\n @Override\n protected View getThemeView() {\n return mThemeView;\n }",
"public interface BaseView {\n\n void setToolbarTitle(String title);\n\n Context context();\n\n}",
"private DocumentInterceptor(Context ctx) {\n }",
"public int needDecoration(View view, RecyclerView parent) {\n RecyclerView.ViewHolder holder = parent.getChildViewHolder(view);\n if (holder instanceof AbstractRecyclerViewHolder) {\n AbstractRecyclerViewHolder parentHolder = (AbstractRecyclerViewHolder) holder;\n\n switch (parentHolder.itemType) {\n\n case RecyclerItemTypeStore:\n case RecyclerItemTypeRestaurantNewsTop:\n case RecyclerItemTypeRestaurantRecyclerHorizontal:\n case RecyclerItemTypeRestaurantRecyclerVertical:\n case RecyclerItemTypeRestaurantProductDetail:\n case RecyclerItemTypeRestaurantProductInfo:\n return DECORATION_BOTTOM;\n\n case RecyclerItemTypeGridImage:\n case RecyclerItemTypeGridItem:\n case RecyclerItemTypeGridStaff:\n case RecyclerItemTypeRestaurantGridImage:\n case RecyclerItemTypeRestaurantGridItem:\n case RecyclerItemTypeRestaurantGridStaff:\n return DECORATION_ALL_MULTI_COLUMN;\n\n case RecyclerItemTypeList:\n return DECORATION_ALL;\n\n case RecyclerItemTypeListDivider:\n return DECORATION_LEFT_RIGHT;\n\n default:\n return DECORATION_NONE;\n }\n }\n return DECORATION_NONE;\n }",
"private void init(Context context) {\n getViewTreeObserver().addOnGlobalLayoutListener(this);\n inflate(context, R.layout.new_rp_resultview, this);\n mMainPanel = (ViewAnimator) findViewById(R.id.viewanimator);\n mInfoPanel = (ViewAnimator) findViewById(R.id.va_text);\n \n \n mInfoPanelText1 = (TextView) mInfoPanel.findViewById(R.id.tv1);\n mMainPanel.setDisplayedChild(0);\n\t}",
"Views getViews();",
"public ToolTipView getToolTipView() { return _toolTipView; }",
"String getViewExtension();",
"Context context();",
"Context context();",
"public interface IDecorator {\n\n\t/**\n\t * Decorate whole children hierarchy of a source fragment.\n\t *\n\t * @param fragmentStcjdeousope\n\t * the fragment\n\t * @param decoratedSource\n\t * the decorated\n\t */\n\tvoid decorate(IDecoratedSource decoratedSource);\n\n\t/**\n\t * Checks if is decorable.\n\t *\n\t * @param source\n\t * the source\n\t * @return true, if is decorable\n\t */\n\tboolean isDecorable(ISource source);\n\n}",
"public interface HomePageView extends BaseView{\n Context getContext();\n\n void getSummary(SummaryBean.Data repest);\n\n void getUserinfo(UserInfoBean.Data userInfo);\n\n}",
"boolean isDecorable(ISource source);",
"public interface MainView extends BaseView {\n\n /**\n * 初始化权限\n */\n void initPermission();\n}",
"@Override\n\tprotected HTTPHookDecorator getFixture() {\n\t\treturn (HTTPHookDecorator)fixture;\n\t}",
"interface PresenterToView extends ContextView {\n\n\n void onCreate(Bundle savedInstanceState);\n\n @SuppressLint(\"MissingSuperCall\")\n void onResume();\n\n void finishScreen();\n\n void setAddBtnLabel(String txt);\n\n\n void setNameLabel(String txt);\n\n String getTextFromEditText();\n\n void setPhotoLabel(String txt);\n\n void setRadioButtonLabels(String txt0, String txt1, String txt2, String txt3);\n\n void setAssetsImage(String image1, String image2, String image3, String image4);\n\n int getRadioButtonId();\n\n void setToast(String txt);\n }",
"private void injectViews() {\n Field[] declaredFields = getClass().getDeclaredFields();\n for (Field declaredField : declaredFields) {\n if(declaredField.isAnnotationPresent(InjectView.class)) {\n declaredField.setAccessible(true);\n try {\n declaredField.set(this, findViewById(declaredField.getAnnotation(InjectView.class).value()));\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"public interface ViewDefinitionService {\n \n /**\n * Return the view definition matching the given plugin's identifier and view's name. The method checks if user has sufficient\n * permissions.\n * \n * @param pluginIdentifier\n * plugin's identifier\n * @param viewName\n * view's name\n * @return the view definition, null if not found\n */\n @PreAuthorize(\"hasRole('ROLE_ADMIN') or (#pluginIdentifier == 'dictionaries') or (#pluginIdentifier == 'products' \"\n + \"and (#viewName != 'orders' and #viewName != 'order' or hasRole('ROLE_SUPERVISOR'))) or \"\n + \"(#pluginIdentifier == 'basic') or \"\n + \"(#pluginIdentifier == 'users' and #viewName == 'profile') or (#pluginIdentifier == 'core' and #viewName == 'systemInfo')\")\n ViewDefinition get(String pluginIdentifier, String viewName);\n \n /**\n * Return the view definition matching the given plugin's identifier and view's name.\n * \n * @param pluginIdentifier\n * plugin's identifier\n * @param viewName\n * view's name\n * @return the view definition, null if not found\n */\n ViewDefinition getWithoutSession(String pluginIdentifier, String viewName);\n \n /**\n * Return all defined view definitions.\n * \n * @return the data definitions\n */\n List<ViewDefinition> list();\n \n /**\n * Return all view definitions which can be displayed in menu.\n * \n * @return the data definitions\n */\n List<ViewDefinition> listForMenu();\n \n /**\n * Save the data definition.\n * \n * @param viewDefinition\n * view definition\n */\n void save(ViewDefinition viewDefinition);\n \n /**\n * Delete the data definition.\n * \n * @param viewDefinition\n * view definition\n */\n void delete(ViewDefinition viewDefinition);\n \n }",
"public abstract IAccessor getAccessor(IContext context);",
"@Override\r\n\tpublic void onReceive(Context context, Intent intent) {\r\n\t\t\r\n//\t\tTextView textView;// = (TextView) context.getResources().findView\r\n\r\n\t}",
"public CustomView(Context context, AttributeSet attrs) {\n super(context, attrs);\n init();\n }",
"public String getInfo()\n\t{\n\t\treturn \"Decorate\";\n\t}",
"@Override\n protected void attachBaseContext(Context context) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(context));\n }",
"@Override\n public View onCreateView(String name, Context context, AttributeSet attrs) {\n\n return super.onCreateView(name, context, attrs);\n }",
"RenderTool getRenderTool();",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_trending, container, false);\n unbinder = ButterKnife.bind(this, view);\n setUnBinder(unbinder, view);\n trendingPresenter = new TrendingPresenter(getContext(), this);\n setUp(view);\n return view;\n }",
"@Override\n public void onContext() {\n }",
"public BeanDefinitionHolder getDecoratedDefinition()\n/* */ {\n/* 221 */ return this.decoratedDefinition;\n/* */ }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_privacy_politic, container, false);\n unbinder = ButterKnife.bind(this, view);\n setTexto();\n return view;\n }",
"public ContentDecorator() {\r\n super();\r\n }",
"String getViewClass();",
"public interface ChartDecorator extends Chart\r\n{\r\n\t/**\r\n\t * \r\n\t * @return the chart \r\n\t */\r\n\tpublic Chart getChart();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param chart the char\r\n\t */\r\n\tpublic void setChart(Chart chart);\r\n}",
"@Override\n protected void onFinishInflate() {\n super.onFinishInflate();\n Log.d(SecondView.class.getSimpleName(), String.valueOf(System.currentTimeMillis()));\n ButterKnife.inject(this, this);\n secondPresenter.takeView(this);\n }",
"com.google.wireless.android.sdk.stats.FilterMetadata.View getActiveView();",
"@Override\n public RemoteViewsFactory onGetViewFactory(Intent myIntents) {\n return new MyRemoteViewsService(this.getApplicationContext());\n }",
"@Override\n public GeneralValidator getContext(Class<?> type) {\n return this.validator;\n }",
"public interface CDOViewProvider\n{\n public static final int DEFAULT_PRIORITY = 500;\n\n /**\n * Returns the priority of this provider. Usually used to choose between several <code>CDOViewProvider</code> that\n * match the same repository URI.\n */\n public int getPriority();\n\n /**\n * Returns the regular expression that determines if the provider can handle certain URI\n */\n public String getRegex();\n\n /**\n * Checks if the URI matches with the regular expression of this provider\n */\n public boolean matchesRegex(URI uri);\n\n /**\n * Receives a URI and returns an opened <code>CDOView</code> against the repository. The implementer is responsible to\n * do the UUID to physical host map in case necessary.\n *\n * @return a wired-up and opened <code>CDOView</code>\n */\n public CDOView getView(URI uri, ResourceSet resourceSet);\n\n /**\n * @since 4.0\n */\n public URI getResourceURI(CDOView view, String path);\n}",
"protected LayoutInflater getInflater(){\n return getActivity().getLayoutInflater();\n }",
"public interface SplashView {\n View getSplashView();\n}",
"public void configure(T aView) { }",
"public VisualizerView(Context context, AttributeSet attrs, int defStyle)\n {\n super(context, attrs);\n init();\n }",
"@Override\n\tprotected Context getContext() {\n\t\treturn getActivity();\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n Fabric.with(getContext(), new Crashlytics());\r\n View view = inflater.inflate(R.layout.fragment_open_ticket_general_enquiries_department, container, false);\r\n unbinder = ButterKnife.bind(this, view);\r\n\r\n\r\n intialize();\r\n return view;\r\n }",
"public interface Themable<T> {\n\n /**\n * Applies the theme to the Item View Holder.\n *\n * @param theme the theme to be applied\n */\n void applyTheme(T theme);\n\n}",
"@Override\n public void prepareView() {\n }",
"private ViewFactory() {}",
"public interface Proxy<T> {\n\n /**\n * return item layout id\n *\n * @return item layout id\n */\n int getItemViewLayoutId();\n\n /**\n * @param item T\n * @param position position\n * @return return true program will apply the layout which is fill this type, otherwise return false.\n */\n boolean isApplyFromViewType(T item, int position);\n\n /**\n * you can convert data in this method\n *\n * @param holder ViewHolder\n * @param item T\n * @param position position\n */\n void convert(ViewHolder holder, T item, int position);\n\n}",
"ViewElement getViewElement();",
"private void initInjectedView(Activity activity) {\n\t\tinitInjectedView(activity,activity.getWindow().getDecorView());\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_actuator_info, container, false);\n ButterKnife.bind(this, view);\n mContext = getActivity().getApplicationContext();\n return view;\n }",
"protected abstract void onInflated(View view);",
"@Override\n protected Context createVelocityContext(Map<String, Object> model, HttpServletRequest request,\n HttpServletResponse response) throws Exception {\n ViewToolContext ctx;\n\n ctx = new ViewToolContext(getVelocityEngine(), request, response, getServletContext());\n ctx.putAll(model);\n\n if (this.getToolboxConfigLocation() != null) {\n ToolManager tm = new ToolManager();\n tm.setVelocityEngine(getVelocityEngine());\n tm.configure(getServletContext().getRealPath(getToolboxConfigLocation()));\n if (tm.getToolboxFactory().hasTools(Scope.REQUEST)) {\n ctx.addToolbox(tm.getToolboxFactory().createToolbox(Scope.REQUEST));\n }\n if (tm.getToolboxFactory().hasTools(Scope.APPLICATION)) {\n ctx.addToolbox(tm.getToolboxFactory().createToolbox(Scope.APPLICATION));\n }\n if (tm.getToolboxFactory().hasTools(Scope.SESSION)) {\n ctx.addToolbox(tm.getToolboxFactory().createToolbox(Scope.SESSION));\n }\n }\n return ctx;\n }",
"public interface MydiscountView extends BaseMvpView {\n void getMydiscountS(MydiscountBean mydiscountBean);\n}",
"protected abstract StartViewFactory getStartViewFactory();",
"public TrailerView(final Context context, final AttributeSet attrSet)\n {\n super(context, attrSet);\n mContext = context;\n instantiate(context, null);\n }",
"public interface ViewHolder {\n}",
"public String getView();",
"public String getView();",
"private View getCachedView()\n\t{\n\t\tif (_cachedItemViews.size() != 0)\n\t\t{\n\t\t\treturn _cachedItemViews.removeFirst();\n\t\t}\n\t\treturn null;\n\t}",
"public interface View {\n void onLoadTokenDev(String tokenDev);\n}",
"public interface MyAttentionView extends BaseView {\n void attentionsuccess(MyAttentionBean myAttentionBean);\n void attentionerror();\n}"
]
| [
"0.58485734",
"0.5795212",
"0.5579225",
"0.55421895",
"0.53806925",
"0.52465546",
"0.5197007",
"0.51701975",
"0.51669824",
"0.50092506",
"0.5008072",
"0.50069696",
"0.4954707",
"0.49212372",
"0.48645836",
"0.48618102",
"0.4831215",
"0.48159325",
"0.4766189",
"0.47585076",
"0.47583467",
"0.47360983",
"0.47354117",
"0.4731355",
"0.47266048",
"0.47260672",
"0.47194237",
"0.47194237",
"0.47079355",
"0.47031906",
"0.4688615",
"0.4686108",
"0.46760884",
"0.46623343",
"0.46565747",
"0.46509415",
"0.46422768",
"0.46341562",
"0.46312043",
"0.4622763",
"0.46178755",
"0.46159866",
"0.46077874",
"0.46023476",
"0.45954666",
"0.45902842",
"0.45807752",
"0.45805815",
"0.45805815",
"0.45719552",
"0.45630163",
"0.45577493",
"0.45524102",
"0.45413238",
"0.45332655",
"0.4519011",
"0.45170686",
"0.4506219",
"0.45028484",
"0.4500494",
"0.44970512",
"0.44838437",
"0.44719893",
"0.44599757",
"0.44524926",
"0.44499624",
"0.4447821",
"0.44439155",
"0.44256696",
"0.44237238",
"0.44199982",
"0.44167224",
"0.44163513",
"0.44071746",
"0.43992573",
"0.43981358",
"0.438836",
"0.43882087",
"0.43822548",
"0.4379521",
"0.43758285",
"0.4375553",
"0.4372221",
"0.43691674",
"0.43507192",
"0.43503842",
"0.43499872",
"0.4349506",
"0.43489257",
"0.4345935",
"0.43426296",
"0.43409392",
"0.4339761",
"0.43395308",
"0.4335593",
"0.4331775",
"0.4331775",
"0.43309176",
"0.4329509",
"0.43293136"
]
| 0.5511556 | 4 |
TODO reset password link and set new password | @Override
public void onClick(View v) {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_fragment);
Utils.replaceFragment(LoginActivity.this, new ResetPswFragment(),
R.id.fragment_container, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setPassword(Password newPassword, String plainPassword) throws NoUserSelectedException;",
"public void setPassword(java.lang.String newPassword);",
"public void login_pw() {\n\t\tIntent intent = new Intent(this, ResetPasswordActivity.class);\n\t\tstartActivity(intent);\n\t}",
"public void setPassword(String pass);",
"void setErrorPassword();",
"void setPassword(String password);",
"void setPassword(String password);",
"void setPassword(String password);",
"String getNewPassword();",
"@Override\n\tpublic boolean setNewPassword(BigInteger tUserFId,String password) {\n\t\tint res = accountManageDao.updateApplyPwdWithMainUser(tUserFId,password);\n\t\treturn res>0?true:false;\n\t}",
"private void resetPassword() {\n AdminKeyFile keyFile = new AdminKeyFile(instance);\n keyFile.read();\n if (keyFile.isReset()) {\n String password = AdminKeyFile.randomPassword(\n AdminKeyFile.RANDOM_PASSWORD_LENGTH); \n instance.setAdminPassword(password);\n keyFile.setPassword(password);\n try {\n PayaraInstance.writeInstanceToFile(instance);\n } catch(IOException ex) {\n LOGGER.log(Level.INFO,\n \"Could not store Payara server attributes\", ex);\n }\n keyFile.write();\n }\n }",
"public void changePasswordLinkText() {\n\t\tchangePasswordLinkText.click();\r\n\t}",
"@Override\r\n\tpublic void modifyPassword(String username, String password, String confirmPassword, String oldPassword) {\n\t}",
"public boolean changePassword(HttpServletRequest request, HttpServletResponse response);",
"private void changePassword(final String password) throws ParseException{\n executeRequest((BoxRequestItem)getCreatedSharedLinkRequest().setPassword(password));\n }",
"public void registerNewPassword(View view) {\r\n\t\t// Get the user's current password\r\n\t\tString currentPassword = currentPasswordInput.getText().toString();\r\n\r\n\t\t// Get the new, permanent password the user wants\r\n\t\tString newPassword = newPasswordInput.getText().toString();\r\n\t\t\r\n\t\t// Get the confirmation of the new, permanent password (should be the same as the previous field)\r\n\t\tString confirmNewPassword = confirmNewPasswordInput.getText().toString();\r\n\r\n\t\t/* Pass all three to the ResetPassword class, which will check validity, and, if valid,\r\n\t\t * reset the permanent password */\r\n\t\tResetPassword resetPassword = new ResetPassword(this);\r\n\t\tresetPassword.checkInputsAndTryToResetPassword(currentPassword, newPassword, confirmNewPassword);\r\n\t}",
"void setUserPasswordHash(String passwordHash);",
"public void update() {\n user.setNewPassword(newPassword.getText().toString());\n user.setPassword(password.getText().toString());\n reauthenticate();\n }",
"private void resetPassword()\n {\n password = null;\n currentPasswdField.setText(\"\");\n currentPasswdField.requestFocusInWindow();\n okButton.setEnabled(false);\n }",
"private void setNewPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n newPassword_ = value;\n }",
"private void changePassword(){\n\t\tif (changeCancelButton.getText().equals(\"Anuluj\")){\n\t\t\thidePassword();\n\t\t\tchangeCancelButton.setText(\"Zmień hasło\");\n\t\t\tchangePassword = false;\n\t\t}\t\n\t\telse {\n\t\t\tif (usersTable.getSelectionModel().getSelectedIndex() > -1) {\n\t\t\t\tchangePassword = true;\n\t\t\t\tchangeCancelButton.setText(\"Anuluj\");\n\t\t\t\tuserPasswordField.setText(\"\");\n\t\t\t\tuserConfirmPasswordField.setText(\"\");\n\t\t\t\tlackUserPasswordLabel.setVisible(false);\n\t\t\t\tlackUserConfirmPasswordLabel.setVisible(false);\t\t\t\t\n\t\t\t\tshowPassword();\n\t\t\t}\n\t\t}\n\t}",
"void resetPassword(HttpServletRequest request, String userId, String password) ;",
"void updateUserPassword(User user);",
"@Override\r\n\tpublic void changePassword() throws NoSuchAlgorithmException\r\n\t{\r\n\t\tSystem.out.print(\"Enter user ID you wish to change: \");\r\n\t\tString idInput = scan.next();\r\n\t\tboolean isUnique = isUniqueID(idInput);\r\n\t\tif (isUnique == false)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Enter password for \" + idInput + \": \");\r\n\t\t\tString oldPassInput = scan.next();\r\n\t\t\tString oldHash = hashFunction(oldPassInput + database.get(idInput));\r\n\t\t\tboolean isValidated = validatePassword(oldHash);\r\n\t\t\tif (isValidated == true)\r\n\t\t\t{\r\n\t\t\t\thm.remove(oldHash);\r\n\t\t\t\tSystem.out.print(\"Enter new password for \" + idInput + \": \");\r\n\t\t\t\tmakePassword(idInput, scan.next());\r\n\t\t\t\tSystem.out.println(\"The password for \" + idInput + \" was successfully changed.\");\r\n\t\t\t}\r\n\t\t\telse if (isValidated == false)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"The ID or password you entered does not exist in the database.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (isUnique == true)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Enter password for \" + idInput + \": \");\r\n\t\t\tscan.next();\r\n\t\t\tSystem.out.println(\"Authentication fail\");\r\n\t\t\tSystem.out.println(\"The ID or password you entered does not exist in the database.\");\r\n\t\t}\r\n\t}",
"public void resetpassword(){\n resetpasswordlocal.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n final EditText resetpass = new EditText(view.getContext());\n AlertDialog.Builder passwordResetDialog = new AlertDialog.Builder(view.getContext());\n passwordResetDialog.setTitle(\"Reset Password ?\");\n passwordResetDialog.setMessage(\"Enter the new password\");\n passwordResetDialog.setView(resetpass);\n\n passwordResetDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Extract the email and set reset link\n String newpass = resetpass.getText().toString();\n user.updatePassword(newpass).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(Profile.this, \"Password reset successfully\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Profile.this, \"Password reset failed\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n });\n\n passwordResetDialog.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Close the dialog box\n dialogInterface.cancel();\n }\n });\n passwordResetDialog.create().show();\n\n }\n });\n }",
"void setPassword(String ps) {\n this.password = ps;\n }",
"public void setPassword2(String password2);",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String newpass = resetpass.getText().toString();\n user.updatePassword(newpass).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(Profile.this, \"Password reset successfully\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Profile.this, \"Password reset failed\", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"public void click_changepwd() {\r\n\t\tdriver.findElement(change_password).click();\r\n\t}",
"public void updatePassword(String account, String password);",
"@Override\n\tpublic boolean resetPassword(Context ctx) {\n\t\tString username = ctx.sessionAttribute(\"access\"); \n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.resetPassword(username, password);//check if username works\n\t\treturn result;\n\t}",
"public synchronized void resetPassword(RemoteWebDriver driver, String env) throws InterruptedException, IOException, AWTException {\n\t\t\t\n\t\t// Enter Email\n\t\tperform.type(driver, SLogin.email_txtbx(driver), \"automation\" + env + user + \"@dntest.net\");\n\t\t\n\t\t// Enter Password\n\t\tperform.type(driver, SLogin.password_txtbx(driver), password);\n\t\t\n\t\t// Click Sign In\n\t\tperform.click(driver, SLogin.signIn_btn(driver));\n\t\t\n\t\t// Wait for Find textbox\n\t\tperform.waitForElementToBeClickable(driver, SOrders.find_txtbx(driver));\n\t\t\n\t\t// Go to Users\n\t\tsecure.goToUsers(driver);\n\t\t\n\t\t// Change the password 5 times\n\t\tfor (int a = 1; a <=5; a++)\n\t\t{\n\t\t\t\n\t\t\tString pw = perform.randomLetters(driver, 10);\n\t\t\n\t\t\t// Wait for the Password Gear Icon\n\t\t\tperform.waitForElementToBeClickable(driver, SUsers.passwordGear_icon(driver));\n\t\t\t\n\t\t\t// Click the Password Gear icon\n\t\t\tperform.click(driver, SUsers.passwordGear_icon(driver));\n\t\t\t\n\t\t\t// Wait for overlay to be visible\n\t\t\tperform.waitForOverlayToBeVisible(driver);\n\t\t\t\n\t\t\t// Wait for New\n\t\t\tperform.waitForElementToBeClickable(driver, SUsers.passwordSecurityOptions_txtbx(driver));\n\t\t\t\n\t\t\t// Enter New PW\n\t\t\tperform.type(driver, SUsers.passwordSecurityOptions_txtbx(driver), pw);\n\t\t\t\n\t\t\t// Confirm New PW\n\t\t\tperform.type(driver, SUsers.confirmPasswordSecurityOptions_txtbx(driver), pw);\n\t\t\t\n\t\t\t// Click Save\n\t\t\tperform.click(driver, SUsers.saveSecurityOptions_btn(driver));\n\t\t\t\n\t\t\t// Wait for overlay to be hidden\n\t\t\tperform.waitForOverlayToBeHidden(driver);\n\t\t\n\t\t} // end for loop\n\t\t\n\t\t// Change the password to T3sting1\n\t\t// Wait for the Password Gear Icon\n\t\tperform.waitForElementToBeClickable(driver, SUsers.passwordGear_icon(driver));\n\t\t\n\t\t// Click the Password Gear icon\n\t\tperform.click(driver, SUsers.passwordGear_icon(driver));\n\t\t\n\t\t// Wait for overlay to be visible\n\t\tperform.waitForOverlayToBeVisible(driver);\n\t\t\n\t\t// Wait for New\n\t\tperform.waitForElementToBeClickable(driver, SUsers.passwordSecurityOptions_txtbx(driver));\n\t\t\n\t\t// Enter New PW\n\t\tperform.type(driver, SUsers.passwordSecurityOptions_txtbx(driver), \"T3sting1\");\n\t\t\n\t\t// Confirm New PW\n\t\tperform.type(driver, SUsers.confirmPasswordSecurityOptions_txtbx(driver), \"T3sting1\");\n\t\t\n\t\t// Click Save\n\t\tperform.click(driver, SUsers.saveSecurityOptions_btn(driver));\n\t\t\n\t\t// Wait for overlay to be hidden\n\t\tperform.waitForOverlayToBeHidden(driver);\n\t\t\n\t\t// Save the settings\n\t\tsecure.saveUsersSettings(driver);\n\t\t\n\t}",
"private void getResetPassword() {\n\t\t// TODO Auto-generated method stub\n\t\tdialog = new ZProgressHUD(ChangePasswordActivity.this);\n\t\tdialog.setMessage(\"Pls wait ...\");\n\t\tdialog.show();\n\t\t\n\t\tNetworkEngine.setIP(\"starticketmyanmar.com\");\n\t\tNetworkEngine.getInstance().GetResetPassword(email, code, new_password, new Callback<ForgotPassword>() {\n\t\t\t\n\t\t\tpublic void success(ForgotPassword arg0, Response arg1) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (arg0 != null) {\n\t\t\t\t\t\n\t\t\t\t\tif (arg0.getStatus() == 400) {\n\t\t\t\t\t\tSKToastMessage.showMessage(ChangePasswordActivity.this, \"Your account has already been reset password\", SKToastMessage.ERROR);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (arg0.getStatus() == 200) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tSKToastMessage.showMessage(ChangePasswordActivity.this, \"Change Password Success\", SKToastMessage.SUCCESS);\n\t\t\t\t\t\tcloseAllActivities();\n\t\t\t\t\t\tstartActivity(new Intent(ChangePasswordActivity.this, SaleTicketActivity.class));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t\t\n\t\t\tpublic void failure(RetrofitError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismissWithFailure();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\tpublic void setPassword(String password) {\n\n\t}",
"public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }",
"public void setPassword(String password)\n {\n _password = password;\n }",
"public String getResetPassword() { return password; }",
"public void setPassword(String pw)\n {\n this.password = pw;\n }",
"User resetPassword(User user);",
"@Test\r\n public void testSetPassword() {\r\n\r\n }",
"private void resetPattenIfNeeded() {\n if (KeyguardCfg.isBackupPinEnabled() && getSecurityMode() == SecurityMode.PIN && this.mLockPatternUtils.isLockPatternEnabled(KeyguardUpdateMonitor.getCurrentUser())) {\n Intent ai = new Intent(\"com.android.settings.action.HW_RESET_NEW_PASSWORD\");\n ai.setFlags(268435456);\n OsUtils.startUserActivity(this.mContext, ai);\n }\n }",
"@Override\n\tpublic void modPasswd(String tenantId, String serverId, String userName,\n\t\t\tString passwd, String type) throws Exception {\n\t\t\n\t}",
"public void setPassword(String pw) {\n password = pw.toCharArray();\n cleared = false;\n }",
"void changePassword(String userName, @Nullable String oldPassword, @Nullable String newPassword) throws PasswordNotMatchException;",
"public void setUserPassword(String newPassword) {\n profile.setPassword(currentUser, newPassword);\n }",
"@Override\r\n\tpublic void updatePassword(Integer id, String password) {\n\t\t\r\n\t}",
"public ForgotPassword() {\n initComponents();\n SQLConnect sqlcon = new SQLConnect();\n con=sqlcon.sqlCon(con);\n }",
"public void set_pass(String password)\n {\n pass=password;\n }",
"public void clickForgotPassword() {\r\n\t\tutilities.clickOnElement(aForgotPassword);\r\n\t}",
"public void recoverPassword(String email){\r\n User user = userRepo.findUserByEmail(email);\r\n if (user == null) throw new NullPointerException(\"User with this email was not found\");\r\n String newPassword = PasswordGenerator.generatePassword();\r\n user.setPassword(hashPassword(newPassword));\r\n userRepo.save(user);\r\n\r\n // sends email to user\r\n emailService.sendEmail(email, \"Gidd! varsler\", \"Forandringer med din Gidd! bruker\\n\" +\r\n \"Ditt nye passord er: \" + newPassword);\r\n }",
"public void ModPwd(Administrator ad){\n\t\t//修改密码\n\t\tAdministratorManage admin=new AdministratorManage();\n\t\tScanner input=new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter your new password.\");\n\t\tString pwd=input.next();\n\t\tadmin.setPwd(ad, pwd);\n\t\tSystem.out.println(\"Modify new password succeed.\");\n\t\tMenu(ad);\n\t}",
"@Override\n\tpublic void setPlainPassword(String arg0) {\n\t\t\n\t}",
"void onChangePasswordSuccess(ConformationRes data);",
"public void changePassword() {\n showProgressDialog();\n IApiClient client = ApiClient.getApiClient();\n ReqChangePassword reqChangePassword = new ReqChangePassword();\n reqChangePassword.setServiceKey(mAppSharedPreference.getString(PreferenceKeys.KEY_SERVICE_KEY, ServiceConstants.SERVICE_KEY));\n reqChangePassword.setMethod(MethodFactory.CHANGE_PASSWORD.getMethod());\n reqChangePassword.setUserID(mAppSharedPreference.getString(PreferenceKeys.KEY_USER_ID, \"\"));\n reqChangePassword.setOldPassword(mOldPassword);\n reqChangePassword.setNewPassword(mNewPassword);\n Call<ResBase> resChangePasswordCall = client.changePassword(reqChangePassword);\n resChangePasswordCall.enqueue(new Callback<ResBase>() {\n @Override\n public void onResponse(Call<ResBase> call, Response<ResBase> response) {\n dismissProgressDialog();\n ResBase resBase = response.body();\n if (resBase != null) {\n if (resBase.getSuccess() == ServiceConstants.SUCCESS) {\n ToastUtils.showShortToast(SettingsActivity.this, resBase.getErrstr());\n etNewPassword.setText(\"\");\n etOldPassword.setText(\"\");\n tvChangePassword.setSelected(false);\n llChangePassword.setVisibility(View.GONE);\n SocialNetworkUtils.getInstance(SettingsActivity.this).logoutFromFb(SettingsActivity.this, SimpleFacebook.getInstance(SettingsActivity.this));\n mAppSharedPreference.clearEditor();\n Intent intent = new Intent(SettingsActivity.this, TutorialActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n } else {\n ToastUtils.showShortToast(SettingsActivity.this, resBase.getErrstr());\n }\n } else {\n ToastUtils.showShortToast(SettingsActivity.this, R.string.err_network_connection);\n }\n }\n\n @Override\n public void onFailure(Call<ResBase> call, Throwable t) {\n dismissProgressDialog();\n ToastUtils.showShortToast(SettingsActivity.this, R.string.err_network_connection);\n }\n });\n }",
"@Override\n public void onClick(View v) {\n String newPass=et_newPassword.getText().toString().trim();\n String oldPass=et_oldPassword.getText().toString().trim();\n String prefpass=SharedPrefManager.getInstance(getApplicationContext()).getPass();\n if(newPass.equals(\"\")||oldPass.equals(\"\"))\n {\n Toast.makeText(AdminHomeActivity.this, \"Enter All Fields\", Toast.LENGTH_SHORT).show();\n }\n else if(!prefpass.equals(oldPass))\n {\n Toast.makeText(AdminHomeActivity.this, \"Incorrect Old Password\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updatePass(oldPass,newPass,\"Admin\");\n Toast.makeText(AdminHomeActivity.this, \"Password Successfully Changed\", Toast.LENGTH_SHORT).show();\n logout();\n dialog.dismiss();\n }\n }",
"public void setPassword(String strPassword){\n\t\t driver.findElement(password99Guru).sendKeys(strPassword);\n\t}",
"public void changePassword(String passwordChange){\n\t this.password = passwordChange;\n\t}",
"public void changePassword(String email, String pass) {\n\tStudentDAO studentDAO=new StudentDAO();\n\tstudentDAO.changePassword(email,pass);\n\t\n}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n String newPassword = resetPassword.getText().toString();\n user.updatePassword(newPassword).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void unused) {\n Toast.makeText(profile.this, \"Password Reset Successfully\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(profile.this, \"Password Reset Failed.\", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"public ChangePassword() {\n initComponents();\n SQLConnect sqlcon = new SQLConnect();\n con=sqlcon.sqlCon(con);\n jPasswordField2.setEnabled(false);\n jPasswordField3.setEnabled(false);\n }",
"public void setPassword(String strPassword){\n \t \n \tdriver.findElement(By.cssSelector(inputPassword)).sendKeys(strPassword);\n \n \n }",
"@Override\r\n\tpublic void upadatePassword(String newPassword, ForgetBean forget) {\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction txn = session.getTransaction();\r\n\r\n\t\tString sql = \"UPDATE account SET password = '\" + newPassword + \"' WHERE email='\" + forget.getEmail() + \"'\";\r\n\r\n\t\tSQLQuery query = session.createSQLQuery(sql);\r\n\t\tquery.executeUpdate();\r\n\r\n\t}",
"private void setUpRecoverPassword() {\n binding.textViewRecoverPassword.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Open the fragment\n Timber.d(\"Forgot password clicked\");\n ForgotPasswordDialog forgotPasswordDialog = new ForgotPasswordDialog();\n forgotPasswordDialog.show(getChildFragmentManager(), ForgotPasswordDialog.class.getSimpleName());\n\n }\n });\n }",
"public void reEnterAgentPassword(String reAPwd) throws Exception {\n\n\t\twdriver.findElement(By.xpath(\"//input[@placeholder='Please re-enter your password']\")).click();\n\t\twdriver.findElement(By.xpath(\"//input[@placeholder='Please re-enter your password']\")).clear();\n\t\twdriver.findElement(By.xpath(\"//input[@placeholder='Please re-enter your password']\")).sendKeys(reAPwd);\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tchange_pass(Singleton.user_id, old_pass.getText().toString(), new_pass.getText().toString(), \n\t\t\t\t\t\tnew_pass.getText().toString());\n\t\t\t\t\n\t\t\t}",
"public void setPassword(String text) {\n txtPassword().setText(text);\n }",
"@Override\n\tpublic void updatePassword(AdminUser userModel) {\n\n\t}",
"public void setPassword(java.lang.String param) {\r\n localPasswordTracker = param != null;\r\n\r\n this.localPassword = param;\r\n }",
"public void setPassword(java.lang.String param) {\n localPasswordTracker = true;\n\n this.localPassword = param;\n }",
"@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}",
"public void setPassword(String new_password) throws DataFault {\n\t\t\t\t setPassword(Hash.getDefault(getContext()), new_password);\n\t\t\t }",
"private void sendEmailWithNewPassword(final BusinessUserDetail user, final String newPassword) {\n eventBus.setLoadingProgress(60, null);\n ContactUsDetail dialogDetail = new ContactUsDetail();\n dialogDetail.setRecipient(user.getEmail());\n dialogDetail.setMessage(Storage.MSGS.resetPasswordEmail(user.getPersonFirstName(), newPassword));\n dialogDetail.setSubject(Storage.MSGS.resetPasswordEmailSubject());\n mailService.sendMail(dialogDetail, new SecuredAsyncCallback<Boolean>(eventBus) {\n @Override\n public void onSuccess(Boolean result) {\n eventBus.setLoadingProgress(100, Storage.MSGS.resetPasswordInfoStatus());\n }\n });\n }",
"public void resetPass(String userID, String oldPassword, String newPassword) throws InvalidPassword, InvalidUserID\r\n\t{\r\n\t\tboolean status = signIn(userID, oldPassword);\r\n\t\tif (status == true)\r\n\t\t{\r\n\t\t\tdao.updatePass(userID, newPassword);\r\n\t\t\tSystem.out.println(\"Password Reset Succesful\");\r\n\t\t}\r\n\t}",
"@OnClick(R.id.tdk_menerima_kata_sandi)\n public void kirimUlangnkatasandi(){\n resetpassword(email);\n }",
"private void clearNewPassword() {\n \n newPassword_ = getDefaultInstance().getNewPassword();\n }",
"public void resetPassword()\r\n\t{\r\n\t\tsc.nextLine(); \r\n\t\tboolean admin=a.checkAdmin();\r\n\t\tif(admin)\r\n\t\t{\r\n\t\t\tboolean passwordmatch=false;\r\n\t\t\twhile(!passwordmatch)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"Please enter the password of administrator: \");\r\n\t\t\t\tString upass=sc.nextLine();\r\n\t\t\t\tString uhash=a.hashfunction(upass);\r\n\t\t\t\tpasswordmatch=checkpassword(\"administrator\",uhash);\r\n\t\t\t\tif(!passwordmatch)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Incorrect administrator password!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint userindex=-1;\r\n\t\t\tboolean userfound=false;\r\n\t\t\twhile(!userfound)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"Please enter the user account need to reset: \");\r\n\t\t\t\tString useraccount=sc.nextLine();\r\n\t\t\t\tuseraccount=useraccount.trim();\r\n\t\t\t\tuserindex=a.user_index(useraccount);\r\n\t\t\t\tif(userindex==-1)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"user account not found!\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tuserfound=true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tString password=\"\",repassword=\"\";\r\n\t\t\tboolean flag=false;\r\n\t\t\twhile(!flag)\r\n\t\t\t{\r\n\t\t\t\tboolean validpassword=false;\r\n\t\t\t\twhile(!validpassword)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"Please enter the new password: \");\r\n\t\t\t\t\tpassword=sc.nextLine();\r\n\t\t\t\t\tvalidpassword=a.validitycheck(password);\r\n\t\t\t\t\tif(!validpassword)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Your password has to fulfil: at least 1 small letter, 1 capital letter, 1 digit!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.print(\"Please re-enter the new password: \");\r\n\t\t\t\trepassword=sc.nextLine();\r\n\t\t\t\tflag=a.matchingpasswords(password,repassword);\r\n\t\t\t\tif(!flag)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"Password not match! \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tString hash_password=hashfunction(password); \r\n\t\t\t((User)user_records.get(userindex)).set_hash_password(hash_password);\r\n\t\t\t((User)user_records.get(userindex)).set_fail_count(0);\r\n\t\t\t((User)user_records.get(userindex)).set_account_locked(false);\r\n\t\t\tSystem.out.println(\"Password update successfully!\");\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\ta.createAdmin();\r\n\t\t}\r\n\t}",
"String getTemporaryPassword();",
"@Override\n public void onClick(View v) {\n String newPass=et_newPassword.getText().toString().trim();\n String oldPass=et_oldPassword.getText().toString().trim();\n String prefpass=SharedPrefManager.getInstance(getApplicationContext()).getPass();\n if(newPass.equals(\"\")||oldPass.equals(\"\"))\n {\n Toast.makeText(MainActivity.this, \"Enter All Fields\", Toast.LENGTH_SHORT).show();\n }\n else if(!prefpass.equals(oldPass))\n {\n Toast.makeText(MainActivity.this, \"Incorrect Old Password\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updatePass(oldPass,newPass,\"User\");\n Toast.makeText(MainActivity.this, \"Password Successfully Changed\", Toast.LENGTH_SHORT).show();\n logout();\n dialog.dismiss();\n }\n }",
"@Test\n public void testAccountSetPassword() {\n try {\n Account newAcc = new Account(1, \"holder\", \"holder\", Credential.ADMIN);\n newAcc.setPassword(\"newPasswordForHolder\");\n Assert.assertEquals(\"Incorrect updated password for account after changing\",\n \"newPasswordForHolder\", newAcc.getPassword());\n } catch (Exception e) {\n Assert.fail(\"Set account password should not have failed here\");\n e.printStackTrace();\n }\n }",
"public EditAccountPage fillPasswordField(String pass){\n\n pause();\n clickElement(newPasswordElement);\n pause();\n cleanElement(newPasswordElement);\n pause();\n setElementText(newPasswordElement, pass);\n\n return this;\n }",
"@Test\n public void testResetPassword() {\n System.out.println(\"resetPassword\");\n School instance = new School();\n LocalDate dob = new LocalDate(1960, 9, 6);\n Manager m1 = new Manager(\"admin\", \"Lamasia2*\", \"quang\", \"\", \"tran\",\n \"[email protected]\", \"0909941192\", dob, \"hcmc\", null, true);\n instance.addUser(m1);\n instance.resetPassword(m1);\n\n assertEquals(Constants.DEFAULT_PASSWORD, m1.getPassword());\n\n System.out.println(\"PASS ALL\");\n }",
"private void ensureChangePasswd(String userid, String rslMsg)\n/* */ {\n/* 252 */ WebContext webContext = LfwRuntimeEnvironment.getWebContext();\n/* 253 */ HttpSession session = null;\n/* 254 */ String challlid = UUID.randomUUID().toString();\n/* 255 */ if (webContext != null) {\n/* 256 */ HttpServletRequest httpServRequest = webContext.getRequest();\n/* 257 */ if (httpServRequest != null) {\n/* 258 */ session = httpServRequest.getSession();\n/* 259 */ if (session != null) {\n/* 260 */ session.setAttribute(\"USER_SESSION_ID\", userid);\n/* */ }\n/* */ }\n/* */ }\n/* 264 */ StringBuffer urlBuf = new StringBuffer();\n/* 265 */ urlBuf.append(\"/portal/app/mockapp/passwordmng?model=nc.uap.portal.mng.pwdmng.PasswordManagerModel\");\n/* 266 */ urlBuf.append(\"&otherPageUniqueId=\" + LfwRuntimeEnvironment.getWebContext().getWebSession().getWebSessionId());\n/* 267 */ AppLifeCycleContext.current().getApplicationContext().popOuterWindow(urlBuf.toString(), rslMsg, \"480\", \"280\", \"TYPE_DIALOG\");\n/* */ }",
"public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}",
"@Then(\"^Password should be updated$\")\n public void password_should_be_updated() throws Throwable {\n changepassword.verifyPasswordIsSuccessfull(\"Success\",\"Congratulations!\",\"You have successfully updated your password.\");\n changepassword.closeSuccessPwdUpdate();\n\n /* long numeric=Test.faker.number().randomNumber(2,true);\n PropertyReader.dynamicWriteTestDataOf(\"change_password\",PropertyReader.dynamicReadTestDataOf(\"new_Password\"));\n PropertyReader.dynamicWriteTestDataOf(email,PropertyReader.dynamicReadTestDataOf(\"new_Password\"));\n\n PropertyReader.dynamicWriteTestDataOf(\"new_Password\",\"update\"+numeric+\"@123\");\n PropertyReader.dynamicWriteTestDataOf(\"confirm_new_Password\",\"update\"+numeric+\"@123\");\n */\n }",
"private void changePassword(String newPassword) {\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n firebaseUser.updatePassword(newPassword).addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(ProfileSettingsActivity.this, PASSWORD_CHANGED_SUCCESSFUL, Toast.LENGTH_LONG).show();\n }\n }\n });\n }",
"@Override\n\tpublic void sendNewPassword(String email, String password) {\n\t\tSimpleMailMessage message = getPasswordEmailMessage(email, password);\n mailSender.send(message);\n\t}",
"public String getPassword();",
"public String getPassword();",
"public void changingPassword(String un, String pw, String secureQ, String secureA) {\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n // get SHA value of given password\n SHAEncryption sha = new SHAEncryption();\n String shaPW = sha.getSHA(pw);\n\n // updating user database\n collRU.findOneAndUpdate(\n and(\n eq(\"username\", un),\n eq(\"secureQ\", secureQ),\n eq(\"secureA\", secureA)\n ),\n Updates.set(\"password\", shaPW)\n );\n\n // test (print out user after update)\n //getUser(un);\n }",
"public void setSpPassword(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpPasswordTracker = true;\r\n } else {\r\n localSpPasswordTracker = false;\r\n \r\n }\r\n \r\n this.localSpPassword=param;\r\n \r\n\r\n }",
"private void changePassword() throws EditUserException {\n String userIDInput = userID.getText();\n String passwordInput = passwordChange.getText();\n try {\n Admin.changeUserPassword(userIDInput, passwordInput);\n JOptionPane.showMessageDialog(null, \"Change Password Success: \" + userIDInput + \" password successfully changed\");\n // Reset Values\n userID.setText(\"\");\n passwordChange.setText(\"\");\n } catch (EditUserException e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n throw new EditUserException(e.getMessage());\n } catch (SQLException throwables) {\n throw new EditUserException(\"Change Password Error: Cannot Change\" + userIDInput + \" password\");\n } catch (NullPointerException e) {\n String msg = \"Change Password Error: User ID \" + userIDInput + \" is an invalid userID.\";\n JOptionPane.showMessageDialog(null, msg);\n throw new EditUserException(\"Change Password Error: User ID \" + userIDInput + \" is an invalid userID.\");\n }\n }",
"public void setPassword(String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n this.password = password;\r\n// this.password = hashPassword(password);\r\n// System.out.println(\"haslo po hash w account: \" + this.password);\r\n }",
"@Test (priority=2)\n\tpublic synchronized void resetPasswordOnLive() throws InterruptedException, IOException, AWTException {\n\t\t\n\t\tif (resetLive == true)\n\t\t{\n\t\t\n\t\t\tRemoteWebDriver driver = DriverFactory.getInstance().getDriver();\n\t\t\t\n\t\t\t/********************************************************************************\n\t\t\t * \n\t\t\t * CREATE USER ON LIVE\n\t\t\t * \n\t\t\t ********************************************************************************/\n\t\t\t\n\t\t\t// Environment\n\t\t\tString env = \"Live\";\n\t\t\t\n\t\t\t// Go to Live Secure site\n\t\t\tdriver.get(\"https://secure.mercuryvmp.com/\");\n\t\t\t\n\t\t\t// Create the user\n\t\t\tresetPassword(driver, env);\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\n\t\telse\n\t\t{\n\t\t\tExtentTest test = ExtentTestManager.getTest();\n\t\t\t// Skip test\n\t\t\tSystem.out.println(\"Skipped resetting the password for the user on Live becuase the boolean was set to false\");\n\t\t\t// Log a skip in the extent report\n\t\t\ttest.log(LogStatus.SKIP, \"<span class='label info'>SKIPPED</span>\", \"<pre>Skipped resetting the password for the user on Live becuase the boolean was set to false</pre>\");\n\t\t} // end else\n\t\t\n\t}",
"@Override\n\tpublic void alterpassword(User user) throws Exception {\n\n\t}",
"public String getNewPassword() {\n return instance.getNewPassword();\n }",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();"
]
| [
"0.7669307",
"0.7587776",
"0.7566884",
"0.74243516",
"0.7336046",
"0.73042566",
"0.73042566",
"0.73042566",
"0.7295603",
"0.7201337",
"0.7183926",
"0.7172314",
"0.71217066",
"0.7100184",
"0.7085455",
"0.70790166",
"0.70706856",
"0.70377684",
"0.7036659",
"0.7033667",
"0.70316553",
"0.697028",
"0.6966639",
"0.6950161",
"0.6937005",
"0.6926446",
"0.69193256",
"0.6916233",
"0.6907236",
"0.6902988",
"0.68884826",
"0.68684244",
"0.6860058",
"0.68466437",
"0.68296766",
"0.6814115",
"0.6809103",
"0.6790158",
"0.67759794",
"0.6768162",
"0.676227",
"0.6755751",
"0.6745244",
"0.673742",
"0.67329335",
"0.67230505",
"0.6722442",
"0.6711068",
"0.6704143",
"0.6702778",
"0.6695632",
"0.66947544",
"0.6692663",
"0.6661031",
"0.6657636",
"0.6653342",
"0.66523594",
"0.6651949",
"0.66436005",
"0.66369224",
"0.663468",
"0.66295344",
"0.66223663",
"0.6614089",
"0.66028225",
"0.65985805",
"0.6593605",
"0.65883696",
"0.6587466",
"0.65868616",
"0.6580897",
"0.65803665",
"0.6580357",
"0.65757656",
"0.6570287",
"0.65685415",
"0.6565852",
"0.65646064",
"0.65627956",
"0.65603465",
"0.6554396",
"0.65501034",
"0.6550029",
"0.65333414",
"0.65258557",
"0.6525086",
"0.6510117",
"0.6510117",
"0.65074265",
"0.6506998",
"0.6505975",
"0.6500136",
"0.6499604",
"0.6499343",
"0.64935637",
"0.64920527",
"0.64920527",
"0.64920527",
"0.64920527",
"0.64920527",
"0.64920527"
]
| 0.0 | -1 |
Shows the progress UI and hides the login form. | @TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)
private void showProgress(final boolean show) {
// On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow
// for very easy animations. If available, use these APIs to fade-in
// the progress spinner.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {
int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);
mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);
mLoginFormView.animate().setDuration(shortAnimTime).alpha(
show ? 0 : 1).setListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);
}
});
mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);
mProgressView.animate().setDuration(shortAnimTime).alpha(
show ? 1 : 0).setListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);
}
});
} else {
// The ViewPropertyAnimator APIs are not available, so simply show
// and hide the relevant UI components.
mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);
mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override public void showLoginForm() {\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowLoginForm();\n\n errorView.setVisibility(View.GONE);\n\n setFormEnabled(true);\n //loginButton.setLoading(false);\n }",
"private void displayProgressDialog() {\n pDialog.setMessage(\"Logging In.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n }",
"private void displayProgressDialog() {\n pDialog.setMessage(\"Logging in.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }",
"private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}",
"@Override public void showLoading() {\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowLoading();\n\n errorView.setVisibility(View.GONE);\n setFormEnabled(false);\n }",
"private void showLoginScreen()\n {\n logIngEditText.setVisibility(View.VISIBLE);\n passwordEditText.setVisibility(View.VISIBLE);\n loginButton.setVisibility(View.VISIBLE);\n textViewLabel.setVisibility(View.VISIBLE);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showLoginProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(\n android.R.integer.config_shortAnimTime);\n\n mLoginStatusView.setBackground(new BitmapDrawable(getResources(),\n ImageUtils.decodeSampledBitmapFromResource(getResources(),\n R.drawable.end_form_1280x768, screenWidth, screenHeight)\n ));\n\n mLoginStatusView.setVisibility(View.VISIBLE);\n mLoginStatusView.animate().setDuration(shortAnimTime)\n .alpha(show ? 1 : 0)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginStatusView.setVisibility(show ? View.VISIBLE\n : View.GONE);\n }\n });\n\n mFinishGameView.setVisibility(View.VISIBLE);\n mFinishGameView.animate().setDuration(shortAnimTime)\n .alpha(show ? 0 : 1)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mFinishGameView.setVisibility(show ? View.GONE\n : View.VISIBLE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mLoginStatusView.setVisibility(show ? View.VISIBLE : View.GONE);\n mFinishGameView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"public static void HideLoginScreen() {\n Login.window.setVisible(false);\n ControlPanelFrameHandler.bar.setVisible(true);\n }",
"private void showProgress(final boolean show) {\n //hide the relevant UI components.\n binding.loginProgress.setVisibility(show ? View.VISIBLE : View.GONE);\n binding.emailLoginForm.setVisibility(show ? View.GONE : View.VISIBLE);\n }",
"private void hideLoginScreen()\n {\n logIngEditText.setVisibility(View.INVISIBLE);\n passwordEditText.setVisibility(View.INVISIBLE);\n loginButton.setVisibility(View.INVISIBLE);\n textViewLabel.setVisibility(View.INVISIBLE);\n }",
"@TargetApi( Build.VERSION_CODES.HONEYCOMB_MR2 )\n private void showProgress( final boolean show )\n {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if ( Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2 )\n {\n int shortAnimTime =\n getResources().getInteger(\n android.R.integer.config_shortAnimTime );\n\n mLoginStatusView.setVisibility( View.VISIBLE );\n mLoginStatusView.animate()\n .setDuration( shortAnimTime )\n .alpha( show ? 1 : 0 )\n .setListener( new AnimatorListenerAdapter()\n {\n @Override\n public void onAnimationEnd( Animator animation )\n {\n mLoginStatusView.setVisibility( show\n ? View.VISIBLE : View.GONE );\n }\n } );\n\n mLoginFormView.setVisibility( View.VISIBLE );\n mLoginFormView.animate()\n .setDuration( shortAnimTime )\n .alpha( show ? 0 : 1 )\n .setListener( new AnimatorListenerAdapter()\n {\n @Override\n public void onAnimationEnd( Animator animation )\n {\n mLoginFormView.setVisibility( show ? View.GONE\n : View.VISIBLE );\n }\n } );\n }\n else\n {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mLoginStatusView.setVisibility( show ? View.VISIBLE : View.GONE );\n mLoginFormView.setVisibility( show ? View.GONE : View.VISIBLE );\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n viewLoginForm.setVisibility(show ? View.GONE : View.VISIBLE);\n viewLoginForm.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n viewLoginForm.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n viewLoginProgress.setVisibility(show ? View.VISIBLE : View.GONE);\n viewLoginProgress.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n viewLoginProgress.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n viewLoginProgress.setVisibility(show ? View.VISIBLE : View.GONE);\n viewLoginForm.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginStatusView.setVisibility(View.VISIBLE);\n mLoginStatusView.animate()\n .setDuration(shortAnimTime)\n .alpha(show ? 1 : 0)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginStatusView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n\n mLoginFormView.setVisibility(View.VISIBLE);\n mLoginFormView.animate()\n .setDuration(shortAnimTime)\n .alpha(show ? 0 : 1)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mLoginStatusView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n\tprivate void showProgress(final boolean show) {\n\t\t// On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n\t\t// for very easy animations. If available, use these APIs to fade-in\n\t\t// the progress spinner.\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n\t\t\tint shortAnimTime = getResources().getInteger(\n\t\t\t\t\tandroid.R.integer.config_shortAnimTime);\n\n\t\t\tmLoginStatusView.setVisibility(View.VISIBLE);\n\t\t\tmLoginStatusView.animate().setDuration(shortAnimTime)\n\t\t\t\t\t.alpha(show ? 1 : 0)\n\t\t\t\t\t.setListener(new AnimatorListenerAdapter() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onAnimationEnd(Animator animation) {\n\t\t\t\t\t\t\tmLoginStatusView.setVisibility(show ? View.VISIBLE\n\t\t\t\t\t\t\t\t\t: View.GONE);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\tmLoginFormView.setVisibility(View.VISIBLE);\n\t\t\tmLoginFormView.animate().setDuration(shortAnimTime)\n\t\t\t\t\t.alpha(show ? 0 : 1)\n\t\t\t\t\t.setListener(new AnimatorListenerAdapter() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onAnimationEnd(Animator animation) {\n\t\t\t\t\t\t\tmLoginFormView.setVisibility(show ? View.GONE\n\t\t\t\t\t\t\t\t\t: View.VISIBLE);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t} else {\n\t\t\t// The ViewPropertyAnimator APIs are not available, so simply show\n\t\t\t// and hide the relevant UI components.\n\t\t\tmLoginStatusView.setVisibility(show ? View.VISIBLE : View.GONE);\n\t\t\tmLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n\t\t}\n\t}",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n loginSV.setVisibility(show ? View.GONE : View.VISIBLE);\n loginSV.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n loginSV.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n loginPB.setVisibility(show ? View.VISIBLE : View.GONE);\n loginPB.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n loginPB.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n loginPB.setVisibility(show ? View.VISIBLE : View.GONE);\n loginSV.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\r\n private void showProgress(final boolean show) {\r\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\r\n // for very easy animations. If available, use these APIs to fade-in\r\n // the progress spinner.\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\r\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\r\n\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n });\r\n\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mProgressView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n } else {\r\n // The ViewPropertyAnimator APIs are not available, so simply show\r\n // and hide the relevant UI components.\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n }",
"@Override\n public void onLoginClicked(String username, String password) {\n loginView.showProgress();\n loginInteractor.authorize(username, password, this);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\r\n private void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\r\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\r\n\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n });\r\n\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mProgressView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n\r\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\r\n tvLoad.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n } else {\r\n // The ViewPropertyAnimator APIs are not available, so simply show\r\n // and hide the relevant UI components.\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n\r\n\r\n\r\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n /*\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n */\n\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n // mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow for very easy animations.\n // If available, use these APIs to fade-in the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"public Login() {\n initComponents();\n lblstar.setVisible(false); // hide the red star that indicates that the user didnt fill in a form\n lblstar1.setVisible(false);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\r\n private void showProgress(final boolean show) {\r\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\r\n // for very easy animations. If available, use these APIs to fade-in\r\n // the progress spinner.\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\r\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\r\n\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n });\r\n\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mProgressView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n\r\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\r\n tvLoad.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n } else {\r\n // The ViewPropertyAnimator APIs are not available, so simply show\r\n // and hide the relevant UI components.\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n }",
"private void showProgress(final boolean show) {\r\n mProgressView.setIndeterminate(true);\r\n mProgressView.setCancelable(false);\r\n mProgressView.setMessage(\"Authenticating...\");\r\n\r\n if (show)\r\n mProgressView.show();\r\n else if (!show && mProgressView.isShowing())\r\n mProgressView.dismiss();\r\n }",
"@Override\n public void enableProgressBar() {\n et_log_email.setEnabled(false);\n et_log_password.setEnabled(false);\n acb_login.setVisibility(View.GONE);\n acb_register.setVisibility(View.GONE);\n\n //Enable progressbar\n pb_login.setVisibility(View.VISIBLE);\n }",
"public static void showLogin() throws IOException {\n Main.FxmlLoader(LOGINPAGE_PATH);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n loginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n loginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n loginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n progressView.setVisibility(show ? View.VISIBLE : View.GONE);\n progressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n progressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n progressView.setVisibility(show ? View.VISIBLE : View.GONE);\n loginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"private void showProgress(String taskName,String processString)\n {\n mProgressView = ProgressDialog.show(this, taskName, processString, true);\n mLoginFormView.setVisibility(View.INVISIBLE);\n\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\r\n private void showProgress(final boolean show) {\r\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\r\n // for very easy animations. If available, use these APIs to fade-in\r\n // the progress spinner.\r\n\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\r\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\r\n\r\n mRaspberryLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n mRaspberryLoginFormView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mRaspberryLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n });\r\n\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mCancelButton.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mProgressView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n } else {\r\n // The ViewPropertyAnimator APIs are not available, so simply show\r\n // and hide the relevant UI components.\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mCancelButton.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mRaspberryLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\n tvLoad.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n /*mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });*/\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n //mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // Honeycomb APIs allow for easier animations. Used to fade the progress spinner.\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n }",
"public T01Login() {\n initComponents();\n btnMenu.setVisible(false);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\r\n public void showProgress(final boolean show) {\r\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\r\n // for very easy animations. If available, use these APIs to fade-in\r\n // the progress spinner.\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\r\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\r\n\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n });\r\n\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mProgressView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n } else {\r\n // The ViewPropertyAnimator APIs are not available, so simply show\r\n // and hide the relevant UI components.\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n }",
"public void switchToLogin() {\r\n\t\tlayout.show(this, \"loginPane\");\r\n\t\tloginPane.resetPassFields();\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}",
"public Login() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n\tprivate void showProgress(final boolean show) {\n\t\t// On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n\t\t// for very easy animations. If available, use these APIs to fade-in\n\t\t// the progress spinner.\n\n\t\tif (show) {\n\t\t\tLinearLayout loginProgress = (LinearLayout) ((LinearLayout) LayoutInflater\n\t\t\t\t\t.from(getActivity()).inflate(R.layout.login_progress,\n\t\t\t\t\t\t\tnew LinearLayout(getActivity()))).getChildAt(0);\n\t\t\tmLoginStatusView = (ProgressBar) loginProgress.getChildAt(0);\n\t\t\tmLoginStatusMessageView = (TextView) loginProgress.getChildAt(1);\n\t\t\tmLoginStatusMessageView.setText(R.string.login_progress_signing_in);\n\n\t\t\tpopup.setFocusable(true);\n\t\t\tpopup.setContentView((LinearLayout) loginProgress.getParent());\n\t\t\tpopup.showAtLocation(new View(getActivity()), Gravity.CENTER, 0, 0);\n\t\t\tpopup.update(0, 0, 100, 100);\n\t\t}\n\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n\t\t\tmLoginStatusView.animate();\n\t\t\tmLoginFormView.animate().alpha(show ? 0.5f : 1);\n\t\t}\n\t}",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n public void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n public void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n public void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"public void actionPerformed(ActionEvent action){\n new Login().setVisible(true);\n this.setVisible(false);\n }",
"private void showIndicator() {\n mProgressBarHolder.setVisibility(View.VISIBLE);\n mEmailView.setFocusableInTouchMode(false);\n mEmailView.setFocusable(false);\n mEmailView.setEnabled(false);\n mPasswordView.setFocusableInTouchMode(false);\n mPasswordView.setFocusable(false);\n mPasswordView.setEnabled(false);\n mRegister.setEnabled(false);\n mEmailSignInButton.setEnabled(false);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n// mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n\n }\n });\n\n// mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n// mProgressView.animate().setDuration(shortAnimTime).alpha(\n// show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n// @Override\n// public void onAnimationEnd(Animator animation) {\n// mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n// }\n// });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n// mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n// mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"public login() {\n initComponents();\n jLabel4.setIcon(null);\n jLabel4.setText(null);\n jLabel7.setVisible(false);\n setLocationRelativeTo(null);\n this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n }",
"@Override\n public void show()\n {\n boolean loginOK; // true if good user info was entered\n // multithreaded code does not execute properly in IDEs; true if IDE run detected\n boolean runningFromIDE = false;\n\n do // continue login process while user chooses to stay in login menu\n {\n loginOK = false;\n while(!loginOK) // do this while no good login info acquired, or user choose to bail.\n {\n System.out.println(splashStrings.LOGIN); // SPLASH WELCOME\n\n String userName = GET.getString(\"Indtast venligst bruger navn:\\n\\t|> \");\n\n char[] password;\n\n if(!runningFromIDE) // getPassword does not work in IDE\n {\n password = PasswordField.getPassword(System.in, \"Indtast venligst password:\\n\\t|> \");\n\n if(password == null)\n {\n // getPassword returns a null array reference, if no chars were captured, thus this.\n runningFromIDE = true;\n\n System.out.println(\"MELDING:\\nDet ser ud til at du kører programmet fra en IDE:\\t\" +\n \"Password masking slås fra.\" +\n \"\\nKør shorttest.jar, for at opnå den fulde bruger-oplevelse.\\n\");\n\n continue;\n }\n\n loginOK = checkCredentials(userName, new String(password));\n\n } else // option is chosen if IDE-execution detected\n {\n String passw = GET.getString(\"Indtast venligst password:\\n\\t|> \");\n loginOK = checkCredentials(userName, passw);\n }\n\n if(!loginOK) // if user input were no good, and ONLY if info were no good\n {\n System.out.println(\"De indtastede informationer fandtes ikke i systemet.\");\n if(GET.getConfirmation(\"Vil du prøve igen?\\n\\tja / nej\\n\\t|> \", \"nej\", \"ja\"))\n {\n System.out.println(\"Du valgte ikke at prøve igen, login afsluttes.\");\n break;\n }\n }\n }\n\n if(loginOK)\n {\n System.out.println(\"Login var en success. Fortsætter til første menu.\\n\");\n menuLoggedInto.show();\n }\n\n // when user returns from main menu, they get to choose if they want to log in again\n } while(GET.getConfirmation(\"Skal en anden logge ind?\\n\\t ja / nej\\n\\t|> \", \"ja\", \"nej\"));\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n }",
"@Override\n\t\t\t\t\tpublic void onLoginSuccess() {\n\t\t\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"登录成功\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tloginBtn.setVisibility(View.GONE);\n\t\t\t\t\t\tlogoutBtn.setVisibility(View.VISIBLE);\n\t\t\t\t\t}",
"public Login() {\n initComponents();\n txtAccountStatus.setVisible(false); \n showDate(); // Class para sa Date\n showTime(); // Class para sa Time\n }",
"public LoginW() {\n this.setUndecorated(true);\n initComponents();\n origin = pnlBackG.getBackground();\n lblErrorLogin.setVisible(false);\n this.setLocationRelativeTo(null);\n Fondo();\n }",
"private void initUIAfterLogin() {\n lnLoggedOutState.setVisibility(View.GONE);\n lnLoggedInState.setVisibility(View.VISIBLE);\n initUserProfileUI();\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n public void showProgress(final boolean show) {\n\n Log.d(TAG, \"Setting: Show Progress\");\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n loginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n loginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n loginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n progressView.setVisibility(show ? View.VISIBLE : View.GONE);\n progressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n progressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n progressView.setVisibility(show ? View.VISIBLE : View.GONE);\n loginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"public LoginUI() {\n\t\tparentFrame = Main.getMainFrame();\n\t\tparentFrame.setVisible(true);\n\n\t\tsetLayout(new BorderLayout(5, 5));\n\t\tadd(initFields(), BorderLayout.NORTH);\n\t\tadd(initButtons(), BorderLayout.CENTER);\n\t}",
"public final void showLoadingIndicator(boolean z) {\n if (z) {\n ProgressBar progressBar = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLogin);\n if (progressBar != null) {\n progressBar.setVisibility(0);\n return;\n }\n return;\n }\n ProgressBar progressBar2 = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLogin);\n if (progressBar2 != null) {\n progressBar2.setVisibility(8);\n }\n }",
"private void login(){\n displayPane(loginP);\n }",
"@Override\n public void validateCredentials(ObjLogin objLogin, Context mContext) {\n if (loginView != null) {\n loginView.showProgress();\n loginInteractor.login(objLogin, this, mContext);\n }\n }",
"private void displayLoader() {\n pDialog = new ProgressDialog(RegisterActivity.this);\n pDialog.setMessage(\"Signing Up.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }",
"public pageLogin() {\n initComponents();\n labelimage.setBorder(new EmptyBorder(0,0,0,0));\n enterButton.setBorder(null);\n enterButton.setContentAreaFilled(false);\n enterButton.setVisible(true);\n usernameTextField.setText(\"Username\");\n usernameTextField.setForeground(new Color(153,153,153));\n passwordTextField.setText(\"Password\");\n passwordTextField.setForeground(new Color(153,153,153));\n usernameAlert.setText(\" \");\n passwordAlert.setText(\" \");\n \n }",
"public void showLogin() {\n try {\n\n // Load person overview.\n loginController controller = new loginController(this);\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApp.class.getResource(\"Login.fxml\"));\n loader.setController(controller);\n AnchorPane personOverview = (AnchorPane) loader.load();\n\n // Set person overview into the center of root layout.\n rootLayout.setCenter(personOverview);\n controller.background();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public loginform() {\n initComponents();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2 - this.getWidth()/2, dim.height/2 - this.getHeight()/2);\n conn = MySql.connectDB();\n timer = new Timer(50, new MyProgressBarManager());\n }",
"@Override\n public void disableProgressBar() {\n et_log_email.setEnabled(true);\n et_log_password.setEnabled(true);\n acb_login.setVisibility(View.VISIBLE);\n acb_register.setVisibility(View.VISIBLE);\n\n //Disable progressbar\n pb_login.setVisibility(View.GONE);\n }",
"void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }",
"private void intLoginPanel(){\n m_loginPanel = new JPanel();\n m_loginPanel.setLayout(new FlowLayout());\n m_userLabel = new JLabel(\"Username: \");\n m_userFeild = new JTextField(10);\n m_passLabel = new JLabel(\"Password: \");\n m_passFeild = new JPasswordField(10);\n m_login = new JButton(\"Login\");\n \n m_login.addActionListener(new ActionListener(){\n \n public void actionPerformed(ActionEvent e){\n String username = m_userFeild.getText();\n String pass = String.valueOf(m_passFeild.getPassword());\n System.out.println(\"Username: \"+username+\"\\nPassword: \"+pass);\n m_sid =CLOUD.login(pass, pass);\n if(m_sid!=null){\n m_data = CLOUD.List(m_sid);\n if(m_data!=null){\n initListPannel(convertList(m_data));\n m_passFeild.setEnabled(false);\n m_userFeild.setEnabled(false);\n m_login.setEnabled(false);\n Thread t = new expand();\n t.start();\n }\n }else{\n JOptionPane.showMessageDialog(null,\n \"Wrong Username and or password\",\n \"Login Failed\",\n JOptionPane.ERROR_MESSAGE);\n context.dispose();\n }\n \n }\n \n });\n m_loginPanel.add(m_userLabel);\n m_loginPanel.add(m_userFeild);\n m_loginPanel.add(m_passLabel);\n m_loginPanel.add(m_passFeild);\n m_loginPanel.add(m_login);\n m_loginPanel.validate();\n m_loginPanel.setOpaque(true);\n this.getContentPane().add(m_loginPanel);\n }",
"@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}",
"private void showSignInBar() {\n Log.d(TAG, \"Showing sign in bar\");\n findViewById(R.id.sign_in_bar).setVisibility(View.VISIBLE);\n findViewById(R.id.sign_out_bar).setVisibility(View.GONE);\n }",
"public login() {\n initComponents();\n setLocationRelativeTo(null);\n this.setDefaultCloseOperation(login.DO_NOTHING_ON_CLOSE);\n }",
"void SubmitButton() {\r\n\t\tint checker = Accounts.checkUser(username.getText(), password.getText());\r\n\t\tif(checker == -1) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tAdminScreen adminScreen = new AdminScreen();\r\n\t\t}\r\n\t\telse if(checker >= 0) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tStudentScreen studentScreen = new StudentScreen(checker);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Error: username \"\r\n\t\t\t\t\t+ \"and/or password is incorrect.\");\r\n\t\t\tpassword.setText(\"\");\r\n\t\t\tusername.setText(\"\");\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override public void onNewViewStateInstance() {\n showLoginForm();\n }",
"public static void login() {\n\t\trender();\n\t}",
"@Override\n public void loginScreen() {\n logIn = new GUILogInScreen().getPanel();\n frame.setContentPane(logIn);\n ((JButton) logIn.getComponent(4)).addActionListener(e -> {\n setUsername();\n });\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pDialog = new ProgressDialog(loginActivity.this);\n pDialog.setMessage(\"Logging You In..\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(true);\n pDialog.show();\n }",
"public void swapLoginFX() throws IOException {\r\n hideAllViews();\r\n swapViewFX(\"LogIn\", viewLoginFX);\r\n }",
"private void LoginOwner() {\n Transaksi.setEnabled(false);\n Transaksi.setVisible(false);\n }",
"private void showDialog() {\n if (!progressDialog.isShowing())\n progressDialog.show();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n mProgressDialog = new ProgressDialog(LoginActivity.this);\n mProgressDialog.setMessage(\"Logging in...\");\n mProgressDialog.setIndeterminate(false);\n mProgressDialog.setCancelable(true);\n mProgressDialog.show();\n }",
"public loginGUI() {\r\n\r\n\t\tsuper.frame.setTitle(\"Login\");\r\n\t\ttry {\r\n\t\t\tJLabel label = new JLabel(new ImageIcon(ImageIO.read(new File(\"..\\\\images\\\\login-background.png\"))));\r\n\t\t\tframe.setContentPane(label);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Image doesn't exist...\");\r\n\t\t}\r\n\r\n\t\tcopyright();\r\n\t\tlabels();\r\n\t\ttextField();\r\n\t\tstartButton();\r\n\t\tsignup();\r\n\r\n\t\tsuper.frame.setVisible(true);\r\n\t}"
]
| [
"0.7621026",
"0.74284565",
"0.73967826",
"0.7286585",
"0.72790235",
"0.72643507",
"0.72605824",
"0.72436935",
"0.7186172",
"0.7047085",
"0.69236714",
"0.6893757",
"0.6891113",
"0.6866205",
"0.68238723",
"0.67860216",
"0.67708963",
"0.6761273",
"0.67412",
"0.6739837",
"0.6713159",
"0.67104405",
"0.6697767",
"0.6689414",
"0.66514045",
"0.6645978",
"0.6645713",
"0.663923",
"0.66367036",
"0.6618884",
"0.66093326",
"0.66055995",
"0.65910804",
"0.6590136",
"0.6586476",
"0.65763783",
"0.65725404",
"0.6572173",
"0.65593046",
"0.65593046",
"0.65593046",
"0.65408343",
"0.6507999",
"0.649134",
"0.64890975",
"0.64813304",
"0.64812773",
"0.6478275",
"0.6471703",
"0.64604294",
"0.64463943",
"0.64354664",
"0.64175886",
"0.63773674",
"0.63482696",
"0.6336269",
"0.63290006",
"0.6309522",
"0.62869275",
"0.6283205",
"0.6281259",
"0.6265271",
"0.62646455",
"0.62566954",
"0.6255552",
"0.62513256",
"0.6250048",
"0.6204188",
"0.6201671",
"0.6201222",
"0.6171013",
"0.61647034",
"0.615909",
"0.6155964",
"0.61420023",
"0.6138798",
"0.60994136"
]
| 0.6713914 | 43 |
Create adapter to tell the AutoCompleteTextView what to show in its dropdown list. | private void addEmailsToAutoComplete(List<String> emailAddressCollection) {
ArrayAdapter<String> adapter =
new ArrayAdapter<>(LoginActivity.this,
android.R.layout.simple_dropdown_item_1line, emailAddressCollection);
mEmailView.setAdapter(adapter);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setupAutoComplete() {\n // Map between AutoCompleteTextViews and their Adapters. Some text fields have a custom\n // adapter whose data is updated dynamically (rather than being statically set)\n Map<AutoCompleteTextView, ArrayAdapter<String>> map = new HashMap<>();\n map.put(mBind.layoutWidthEdit, new LayoutDimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.layoutHeightEdit, new LayoutDimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.backgroundEdit, new ArrayAdapter<>(this, LAYOUT_DROPDOWN_ITEM, Data.getArrColors()));\n map.put(mBind.maxWidthEdit, new DimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.maxHeightEdit, new DimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n\n for (Map.Entry<AutoCompleteTextView, ArrayAdapter<String>> e : map.entrySet()) {\n e.getKey().setAdapter(e.getValue());\n // For the fields with custom adapters, set up listener, so that the data of the adapter\n // is updated on every keystroke (e.g. \"14\" -> {\"14dp\", \"14in\", \"14mm\", \"14px\", \"14sp\"})\n if (e.getValue() instanceof AutoComplAdapter) {\n e.getKey().addTextChangedListener(new MyTextWatcher() {\n @Override\n public void afterTextChanged(Editable s) {\n // Trigger filtering process on 's', which updates the data of this adapter\n e.getValue().getFilter().filter(s);\n }\n });\n }\n }\n }",
"private void add(){\r\n ArrayAdapter<String> adp3 = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, list);\r\n adp3.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\r\n txtAuto3.setThreshold(1);\r\n txtAuto3.setAdapter(adp3);\r\n }",
"private void loadAutoCompleteData() {\n List<String> labelsItemName = db.getAllItemsNames();\n // Creating adapter for spinner\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,\n labelsItemName);\n\n // Drop down layout style - list view with radio button\n dataAdapter.setDropDownViewResource(android.R.layout.simple_list_item_1);\n\n // attaching data adapter to spinner\n autoCompleteTextViewSearchItem.setAdapter(dataAdapter);\n\n // List - Get Menu Code\n List<String> labelsMenuCode = db.getAllMenuCodes();\n // Creating adapter for spinner\n ArrayAdapter<String> dataAdapter1 = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,\n labelsMenuCode);\n\n // Drop down layout style - list view with radio button\n dataAdapter1.setDropDownViewResource(android.R.layout.simple_list_item_1);\n\n // attaching data adapter to spinner\n autoCompleteTextViewSearchMenuCode.setAdapter(dataAdapter1);\n\n POS_LIST = ArrayAdapter.createFromResource(this, R.array.poscode, android.R.layout.simple_spinner_item);\n spnr_pos.setAdapter(POS_LIST);\n\n // barcode\n List<String> labelsBarCode = db.getAllBarCodes();\n ArrayAdapter<String> dataAdapter11 = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,\n labelsBarCode);\n dataAdapter11.setDropDownViewResource(android.R.layout.simple_list_item_1);\n autoCompleteTextViewSearchItemBarcode.setAdapter(dataAdapter11);\n\n }",
"private void initAutoCompleteAdapter(){\n adapterAcGeneric = new GenericAcAdapter(getActivity(),\n android.R.layout.simple_dropdown_item_1line);\n ac_generics.setThreshold(0);\n ac_generics.setAdapter(adapterAcGeneric);\n ac_generics.setOnItemClickListener(\n new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n //selectedText.setText(autoSuggestAdapter.getObject(position));\n genericName = adapterAcGeneric.getObject(position);\n makeApiCallForSearch();\n CommonMethods.hideKeybaord(getActivity());\n }\n });\n ac_generics.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int\n count, int after) {\n }\n @Override\n public void onTextChanged(CharSequence s, int start, int before,\n int count) {\n genericName = \"\";\n handlerGeneric.removeMessages(TRIGGER_AUTO_COMPLETE);\n handlerGeneric.sendEmptyMessageDelayed(TRIGGER_AUTO_COMPLETE,\n AUTO_COMPLETE_DELAY);\n }\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n handlerGeneric = new Handler(new Handler.Callback() {\n @Override\n public boolean handleMessage(Message msg) {\n if (msg.what == TRIGGER_AUTO_COMPLETE) {\n if (!TextUtils.isEmpty(ac_generics.getText())) {\n // Log.d(\"DEBUG\", \"in generic\");\n makeApiCall(ac_generics.getText().toString(), 1);\n }\n }\n return false;\n }\n });\n\n\n adapterAcCompany = new CompanyAcAdapter(getActivity(),\n android.R.layout.simple_dropdown_item_1line);\n ac_companies.setThreshold(0);\n ac_companies.setAdapter(adapterAcCompany);\n ac_companies.setOnItemClickListener(\n new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n //selectedText.setText(autoSuggestAdapter.getObject(position));\n companyName = adapterAcCompany.getObject(position);\n makeApiCallForSearch();\n CommonMethods.hideKeybaord(getActivity());\n }\n });\n ac_companies.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int\n count, int after) {\n }\n @Override\n public void onTextChanged(CharSequence s, int start, int before,\n int count) {\n companyName = \"\";\n handlerCompany.removeMessages(TRIGGER_AUTO_COMPLETE);\n handlerCompany.sendEmptyMessageDelayed(TRIGGER_AUTO_COMPLETE,\n AUTO_COMPLETE_DELAY);\n }\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n handlerCompany = new Handler(new Handler.Callback() {\n @Override\n public boolean handleMessage(Message msg) {\n if (msg.what == TRIGGER_AUTO_COMPLETE) {\n if (!TextUtils.isEmpty(ac_companies.getText())) {\n //Log.d(\"DEBUG\", \"in company\");\n makeApiCall(ac_companies.getText().toString(), 2);\n }\n }\n return false;\n }\n });\n\n\n ac_companies.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View view, boolean hasFocus) {\n if (hasFocus) {\n Log.d(\"DEBUG\", \"1\");\n makeApiCall(\"\", 2);\n\n // Toast.makeText(getActivity(), \"Got the focus\", Toast.LENGTH_SHORT).show();\n } else {\n // Toast.makeText(getActivity(), \"Lost the focus\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n ac_generics.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View view, boolean hasFocus) {\n if (hasFocus) {\n Log.d(\"DEBUG\", \"2\");\n makeApiCall(\"\", 1);\n // Toast.makeText(getActivity(), \"Got the focus\", Toast.LENGTH_SHORT).show();\n } else {\n // Toast.makeText(getActivity(), \"Lost the focus\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n selection = (TextView)findViewById(R.id.con_str);\n editor = (AutoCompleteTextView) findViewById(R.id.editor);\n editor.addTextChangedListener(this);\n editor.setAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_dropdown_item_1line,items)); \n }",
"public ArrayListFoodAdapter(Context context, FoodDAO foodDAO, AutoCompleteTextView refAutocomplete) {\n super(foodDAO.getAllFood());\n this.foodDAO = foodDAO;\n mResults = foodDAO.getAllFood();\n// refAutocomplete.setAdapter(this);\n }",
"private void set_autotext_adapters(){\n ArrayAdapter<String> amount_adapter = new ArrayAdapter<>(this,\n android.R.layout.simple_dropdown_item_1line, amount_autos);\n amount_text = (AutoCompleteTextView)\n findViewById(R.id.add_group_transaction_amount);\n amount_text.setAdapter(amount_adapter);\n ArrayAdapter<String> memo_adapter = new ArrayAdapter<>(this,\n android.R.layout.simple_dropdown_item_1line, memo_autos);\n memo_text = (AutoCompleteTextView)\n findViewById(R.id.add_group_transaction_memo);\n memo_text.setAdapter(memo_adapter);\n }",
"@Override\n protected void onPostExecute(Void aVoid) {\n super.onPostExecute(aVoid);\n autoCompleteAdapter = new ArrayAdapter<String>(mContext, android.R.layout.simple_dropdown_item_1line, deviceNames);\n\n autoComplete.setAdapter(autoCompleteAdapter);\n autoComplete.showDropDown();\n loadingResult.setVisibility(View.INVISIBLE);\n }",
"private void add() {\n \t\r\n\tArrayAdapter<String> adp=new ArrayAdapter<String>(this,\r\n\t\tandroid.R.layout.simple_dropdown_item_1line,li);\r\n\t \t\r\n\tadp.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\r\n\tauto.setThreshold(1);\r\n\tauto.setAdapter(adp);\r\n\tsp.setAdapter(adp);\r\n\t\r\n }",
"private ArrayAdapter<String> getAdapter(ArrayList<String> arr) {\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(\n this, R.layout.support_simple_spinner_dropdown_item, arr);\n adapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n\n return adapter;\n }",
"void setupToolbarDropDown(List<? extends CharSequence> dropDownItemList);",
"private void createSuggestionsList() {\r\n\t\tmListView = new LabeledListViewElement(this);\r\n\t\tmInputBar.addView(mListView);\r\n\r\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> adapter, View view, int pos, long id) {\r\n\t\t\t\tString query = adapter.getItemAtPosition(pos).toString();\r\n\t\t\t\tif(query.contains(\" \"))\r\n\t\t\t\t\tsearch(query);\r\n\t\t\t\telse{\r\n\t\t\t\t\tmInputBar.setInputText(query + \" \");\r\n\t\t\t\t\tmInputBar.setCursorAtEnd();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}",
"public void setAdapter() {\n // Create Custom Adapter\n Resources res = getResources();\n adapter = null;\n adapter = new WebsearchListAdapter(this, CustomListViewValuesArr, res);\n list.setAdapter(adapter);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.aty_using_autocompletetextview);\n\t\tactv=(AutoCompleteTextView)findViewById(R.id.autoCompleteTextView);\n\t\tactvAdapter=new ArrayAdapter<String>(this, R.layout.aty_using_autocompletetextview_dropdown_item, strs);\n\t\tactv.setAdapter(actvAdapter);\n\t\t\n\t\tmactv=(MultiAutoCompleteTextView) findViewById(R.id.multiAutoCompleteTextView);\n\t\tmactvAdapter=new ArrayAdapter<String>(this, R.layout.aty_using_autocompletetextview_dropdown_item,strs);\n\t\tmactv.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());\n\t\tmactv.setAdapter(mactvAdapter);\n\t}",
"public DropDownAdapter(SpinnerAdapter adapter) {\n this.adapter = adapter;\n }",
"@Override\n public View getDropDownView(int position, View convertView, ViewGroup parent) {\n return initView(position, convertView, parent);\n }",
"private void populateFullname() {\n dataBaseHelper = new DataBaseHelper(this);\n List<String> lables = dataBaseHelper.getFN();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, lables);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n fullname.setAdapter(dataAdapter);\n\n }",
"private void loadAdapter(){\n choices = contacts.getContacts();\n mAdapter = new MyListAdapter(this, choices);\n mListView.setAdapter(mAdapter);\n mListView.setClickListener(ContactListActivity.this);\n }",
"@Override\r\n\tpublic void autoCompletedUpdated() {\r\n\t\tmAdapter = new ArrayAdapter<String>(this, R.layout.sdk_list_entry, R.id.sdk_list_entry_text, mModel.getAutocompleteSuggestions());\r\n\r\n\t\tmListView.setAdapter(mAdapter);\r\n\t\tmListView.invalidate();\r\n\t\t\r\n\t\tmLayout.hideText();\r\n\t\t\r\n\t}",
"private void setupCustomAdapter() {\n AnimalAdapter adapter = new AnimalAdapter(this, animals);\n aListView.setAdapter(adapter);\n }",
"private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(SellMainActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n // mEmailView.setAdapter(adapter);\n }",
"private void setAdapters() \n\t{\n\t\tArrayAdapter<CharSequence> adapter =\n\t\tArrayAdapter.createFromResource(\n\t\tthis, R.array.languages,\n\t\tandroid.R.layout.simple_spinner_item);\n\t\tadapter.setDropDownViewResource(\n\t\tandroid.R.layout.simple_spinner_dropdown_item);\n\t\tfromSpinner.setAdapter(adapter);\n\t\ttoSpinner.setAdapter(adapter);\n\t\t// Automatically select two spinner items\n\t\tfromSpinner.setSelection(8); // English (en)\n\t\ttoSpinner.setSelection(11); // French (fr)\n\t\torigText.setText(data);\n\t}",
"@Override\n public void onResponse(Call call, Response response) throws IOException\n {\n String r2 = response.body().string();\n\n try\n {\n JSONArray j2 = new JSONArray(r2);\n\n\n for(int i = 0; i < j2.length(); i++)\n {\n /*\n HashMap<String, String> dogsHashMap = new HashMap<String, String>();\n dogsHashMap.put(\"name\", j2.getJSONObject(i).getString(\"name\"));\n dogsHashMap.put(\"dog_id\", j2.getJSONObject(i).getString(\"dog_id\"));\n dogPosts.add(dogsHashMap);\n */\n\n dogNames.add(j2.getJSONObject(i).getString(\"name\"));\n dogID.add(j2.getJSONObject(i).getString(\"dog_id\"));\n\n }\n\n adapter2 = new ArrayAdapter<String>(linkDogToOwner.this , android.R.layout.simple_spinner_dropdown_item, dogNames);\n\n runOnUiThread(new Runnable(){\n\n @Override\n public void run()\n {\n dogsDropDown.setAdapter(adapter2);\n }\n\n });\n\n }\n catch (JSONException e1)\n {\n e1.printStackTrace();\n }\n\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.auto_complete_text_view);\r\n\t\tsetTitle(\"AutoCompleteTextView示例!\");\r\n\t\tautoComplete=(AutoCompleteTextView)findViewById(R.id.auto_complete);\r\n\t\tcleanButton=(Button)findViewById(R.id.cleanButton);\r\n\t\t\r\n\t\tArrayAdapter<String> adapter=new ArrayAdapter<String>(AutoCompleteTextViewActivity.this,android.R.layout.simple_dropdown_item_1line,COUNTRIES);\r\n\t\tautoComplete.setAdapter(adapter);\r\n\t\t\r\n\t\t//清空\r\n\t\tcleanButton.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tautoComplete.setText(\"\");\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(Screen_open.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n }",
"private void setDataToAdapter(ArrayList<String> arrayList)\n {\n ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(mContext, android.R.layout.simple_spinner_item, arrayList);\n // Specify layout to be used when list of choices appears\n arrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Applying the adapter to our spinner\n spinner.setAdapter(arrayAdapter);\n spinner.setOnItemSelectedListener(this);\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n TextView textview = null;\n\n if (convertView == null) {\n convertView = m_inflate.inflate(R.layout.combobox_item, null);\n textview = (TextView) convertView.findViewById(R.id.id_txt);\n\n convertView.setTag(textview);\n } else {\n textview = (TextView) convertView.getTag();\n }\n\n textview.setText(m_data[position]);\n\n return convertView;\n }",
"@Override\n public void onResponse(Call call, Response response) throws IOException\n {\n String r = response.body().string();\n\n try\n {\n JSONArray j = new JSONArray(r);\n\n for(int i = 0; i < j.length(); i++)\n {\n /*\n HashMap<String, String> ownersHashMap = new HashMap<String, String>();\n ownersHashMap.put(\"name\", j.getJSONObject(i).getString(\"name\"));\n ownersHashMap.put(\"human_id\", j.getJSONObject(i).getString(\"human_id\"));\n ownerPosts.add(ownersHashMap);\n */\n\n ownerNames.add(j.getJSONObject(i).getString(\"name\"));\n ownerID.add(j.getJSONObject(i).getString(\"human_id\"));\n }\n\n adapter = new ArrayAdapter<String>(linkDogToOwner.this , android.R.layout.simple_spinner_dropdown_item, ownerNames);\n\n runOnUiThread(new Runnable(){\n\n @Override\n public void run()\n {\n ownersDropDown.setAdapter(adapter);\n }\n\n\n }); // end of runOnUIThread() callback\n\n }\n catch (JSONException e1)\n {\n e1.printStackTrace();\n }\n }",
"public void populateSpinner() {\r\n ArrayList<String> ary = new ArrayList<>();\r\n\r\n ary.add(\"Male\");\r\n ary.add(\"Female\");\r\n\r\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.support_simple_spinner_dropdown_item, ary);\r\n\r\n adapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\r\n Gender.setAdapter(adapter);\r\n }",
"public void initView() {\n ArrayAdapter<String> arrayAdapter=new ArrayAdapter<String>(getView().getContext(),android.R.layout.simple_list_item_1,tracks);\n list.setAdapter(arrayAdapter);\n }",
"public AutocompleteFriendAdapter(FirebaseListOptions<User> options, Activity activity, String encodedEmail) {\n super(options);\n this.mActivity = activity;\n this.mEncodedEmail = encodedEmail;\n }",
"@Override\n public View getDropDownView(int position, View convertView, ViewGroup parent)\n {\n View row = convertView;\n if(row == null)\n {\n LayoutInflater inflater = ((Activity) MainActivity.context).getLayoutInflater();\n row = inflater.inflate(R.layout.spinner_item_layout, parent, false);\n }\n \n ((TextView)row).setTypeface(MainActivity.pixelFont);\n ((TextView)row).setText(objectsData[position]);\n \n return row;\n }",
"private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(\n\t\t\t\tCertainActivity.this, android.R.layout.simple_dropdown_item_1line,\n\t\t\t\temailAddressCollection);\n\n\t}",
"private void Init(Context context){\n\n if(adapter == null){\n adapter = new ArrayAdapter<String>(context, android.R.layout.simple_list_item_1);\n }\n\n this.setAdapter(adapter);\n }",
"private ArrayAdapter<String> adapterForSpinner(List<String> list)\n {\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list)\n {\n @Override\n public boolean isEnabled(int position) {\n return position != 0;\n }\n\n @Override\n public View getDropDownView(int position, View convertView, ViewGroup parent) {\n View view = super.getDropDownView(position, convertView, parent);\n TextView tv = (TextView) view;\n if(position == 0){\n // Set the hint text color gray\n tv.setTextColor(Color.GRAY);\n }\n else {\n tv.setTextColor(Color.BLACK);\n }\n return view;\n }\n };\n\n // Drop down layout style - list view with radio button\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n return dataAdapter;\n }",
"private void setupSearchView() {\n SearchView search = binding.searchView;\n\n search.setQueryHint(\"Add companies...\");\n search.setIconifiedByDefault(false);\n search.setIconified(false);\n search.clearFocus();\n\n searchAutoComplete = search.findViewById(android.support.v7.appcompat.R.id.search_src_text);\n\n // Styling the search bar\n searchAutoComplete.setHintTextColor(Color.GRAY);\n searchAutoComplete.setTextColor(Color.GRAY);\n\n searchAutoComplete.setOnItemClickListener((adapterView, view, itemIndex, id) -> {\n SearchEntry entry = (SearchEntry) adapterView.getItemAtPosition(itemIndex);\n String ticker = entry.getTicker();\n ArrayList<String> tickers = new ArrayList<>();\n searchAutoComplete.setText(\"\");\n tickers.add(ticker);\n boolean duplicate = false;\n if (comparisonCompaniesAdapter.getDataSet() != null) {\n duplicate = checkDuplicate(comparisonCompaniesAdapter.getDataSet(), ticker);\n }\n if (!duplicate) {\n List<Company> companies = viewModel.getComparisonCompanies().getValue();\n int size = (companies == null) ? 0 : companies.size();\n\n if (size <= 10) {\n viewModel.addToComparisonCompanies(tickers);\n } else {\n Toast.makeText(this, \"Reached comparison limit!\", Toast.LENGTH_LONG).show();\n }\n }\n });\n\n search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n viewModel.loadSearchResults(newText);\n return false;\n }\n });\n }",
"private void fillAdapter() {\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<String> recipesListLoader = loaderManager.getLoader(RECIPES_LIST_LOADER);\n if(recipesListLoader == null) {\n loaderManager.initLoader(RECIPES_LIST_LOADER, null, this);\n } else {\n loaderManager.restartLoader(RECIPES_LIST_LOADER, null, this);\n }\n }",
"private void displayListView() {\n\t\tArrayList<FillterItem> fillterList = new ArrayList<FillterItem>();\n\n\t\tfor (int i = 0; i < province.length; i++) {\n\t\t\tLog.i(\"\", \"province[i]: \" + province[i]);\n\t\t\tFillterItem fillter = new FillterItem();\n\t\t\tfillter.setStrContent(province[i]);\n\t\t\tfillter.setSelected(valueList[i]);\n\t\t\t// add data\n\t\t\tfillterList.add(fillter);\n\t\t}\n\n\t\t// create an ArrayAdaptar from the String Array\n\t\tdataAdapter = new MyCustomAdapter(getContext(),\n\t\t\t\tR.layout.item_fillter_header, fillterList);\n\n\t\t// Assign adapter to ListView\n\t\tlistView.setAdapter(dataAdapter);\n\n\t}",
"public PlacesAutocompleteTextView(final Context context, final AttributeSet attrs, final int defAttr) {\n super(context, attrs, defAttr);\n\n init(context, attrs, defAttr, R.style.PACV_Widget_PlacesAutoCompleteTextView, null, context.getString(R.string.pacv_default_history_file_name));\n }",
"public void addItemsOnSpinner() {\n Data dataset = new Data(getApplicationContext());\n List<String> list = new ArrayList<String>();\n list = dataset.getClasses();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner.setAdapter(dataAdapter);\n }",
"public void setTypesView(JSONObject obj){\n try {\n JSONArray arr = obj.getJSONArray(\"types\");\n String[] arrTypes=new String[arr.length()];\n for(int i=0;i<arr.length();i++){\n arrTypes[i]=arr.getJSONObject(i).getString(\"doctype\");\n }\n ArrayAdapter arrayAdapter=new ArrayAdapter(this,R.layout.select_dialog_item_material,arrTypes);\n autoType.setAdapter(arrayAdapter);\n }catch (JSONException ex){\n ex.printStackTrace();\n }\n }",
"private void setAdapters() {\n buildingInput.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, buildings));\n brandInput.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, brands));\n osInput.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, operatingSystems));\n /*\n If we want to use pre-determined lists\n getResources().getStringArray(R.array.brands);\n getResources().getStringArray(R.array.operating_systems);\n */\n }",
"private void addSuggestedBrands() {\n Activity activity = getActivity();\n if (brand == null || activity == null) {\n return;\n }\n String[] allBrands = allBrandsLoaded ? ObjectCache.getBrands(activity, client, true, false) : null;\n BrandAdapter brandAdapter = new BrandAdapter(activity, R.layout.dropdown_brand_item,\n suggestedBrandOwners, allBrands);\n brand.setAdapter(brandAdapter);\n brand.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Object object = parent.getItemAtPosition(position);\n String brandName;\n String brandOwnerName = null;\n if (object instanceof SimpleBrand) {\n brandName = object.toString();\n brandOwnerName = ((SimpleBrand) object).brandOwner;\n } else {\n brandName = (String) object;\n }\n brand.setText(brandName);\n if (brandOwnerName != null && !brandOwnerName.isEmpty()) {\n // also set the brand's owner\n brandOwner.setText(brandOwnerName);\n }\n }\n });\n }",
"private void initUi() {\n binding.rvCharacterList.setLayoutManager(new LinearLayoutManager(this));\n adapter = new CharacterListRvAdapter(this);\n final LinearLayoutManager layoutManager = (LinearLayoutManager) binding.rvCharacterList.getLayoutManager();\n binding.rvCharacterList.setAdapter(adapter);\n DividerItemDecoration dividerItemDecoration = new DividerItemDecoration(binding.rvCharacterList.getContext(),\n layoutManager.getOrientation());\n binding.rvCharacterList.addItemDecoration(dividerItemDecoration);\n\n binding.rvCharacterList.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n if(layoutManager.getItemCount() <= layoutManager.findLastVisibleItemPosition() + 3){\n getCharacterLists();\n }\n }\n });\n\n binding.svCharacterSearch.setOnQueryTextListener(this);\n }",
"public ArrayAdapter<T> getSpinnerAdapter(Iterable<T> items, Context context) {\n\t\tArrayAdapter<T> adapter = new ArrayAdapter<T>(context.getApplicationContext(), R.layout.spinner_item);\n\t\tadapter.setDropDownViewResource(R.layout.spinner_dropdown_item);\n\n\t\tif (items != null && items.iterator().hasNext()) {\n\t\t\tIterator<T> it = items.iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tadapter.add(it.next());\n\t\t\t}\n\t\t}\n\n\t\treturn adapter;\n\t}",
"private ArrayAdapter setupAdapter(final List<Friend> friendsList) {\n /*get the adapter*/\n ArrayAdapter adapter = new ArrayAdapter(this\n , android.R.layout.simple_list_item_2\n , android.R.id.text1, friendsList) {\n\n /*get the view*/\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position, convertView, parent);\n TextView text1 = (TextView) view.findViewById(android.R.id.text1);\n TextView text2 = (TextView) view.findViewById(android.R.id.text2);\n text1.setText(String.valueOf(friendsList.get(position).getTelephoneNumber()));\n text2.setText(friendsList.get(position).getFriendName());\n return view;\n }\n };\n return adapter;\n }",
"private ObservableList<String> fillComboBox() {\n\t\tObservableList<String> list = FXCollections.observableArrayList();\n\t\t\n\t\t/* Test Cases */\n\t\t\tlist.addAll(\"Item Code\", \"Description\");\n\t\t\n\t\treturn list;\n\t}",
"@Override\n\t\tpublic View getDropDownView(int position, View convertView,\n\t\t\t\tViewGroup parent) {\n\t\t\treturn super.getDropDownView(position, convertView, parent);\n\t\t}",
"private void setupCursorAdapter() {\n // Column data from cursor to bind views from\n String[] uiBindFrom = {ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.PHOTO_URI};\n // View IDs which will have the respective column data inserted\n int[] uiBindTo = {R.id.contact_name };\n// int[] uiBindTo = {R.id.contact_name, R.id.contact_image};\n // Create the simple cursor adapter to use for our list\n // specifying the template to inflate (item_contact),\n adapter = new SimpleCursorAdapter(\n mContext, R.layout.contact_item,\n null, uiBindFrom, uiBindTo,\n 0);\n }",
"private void populatePhone() {\n dataBaseHelper = new DataBaseHelper(this);\n List<String> lables = dataBaseHelper.getPN();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, lables);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n phoneNum.setAdapter(dataAdapter);\n\n }",
"public listAdapter(List<Genres> myDataset,List<Anime> anime) {\n values = myDataset;\n animevalues = anime;\n }",
"private void init(@NonNull final Context context, final AttributeSet attrs, final int defAttr, final int defStyle, final String googleApiKey, final String historyFileName) {\n TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.PlacesAutocompleteTextView, defAttr, defStyle);\n String layoutApiKey = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_googleMapsApiKey);\n String layoutAdapterClass = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_adapterClass);\n String layoutHistoryFile = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_historyFile);\n languageCode = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_languageCode);\n countryCode = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_countryCode);\n resultType = AutocompleteResultType.fromEnum(typedArray.getInt(R.styleable.PlacesAutocompleteTextView_pacv_resultType, PlacesApi.DEFAULT_RESULT_TYPE.ordinal()));\n clearEnabled = typedArray.getBoolean(R.styleable.PlacesAutocompleteTextView_pacv_clearEnabled, false);\n typedArray.recycle();\n\n final String finalHistoryFileName = historyFileName != null ? historyFileName : layoutHistoryFile;\n\n if (!TextUtils.isEmpty(finalHistoryFileName)) {\n historyManager = DefaultAutocompleteHistoryManager.fromPath(context, finalHistoryFileName);\n }\n\n final String finalApiKey = googleApiKey != null ? googleApiKey : layoutApiKey;\n\n if (TextUtils.isEmpty(finalApiKey)) {\n throw new InflateException(\"Did not specify googleApiKey!\");\n }\n\n api = new PlacesApiBuilder()\n .setApiClient(PlacesHttpClientResolver.PLACES_HTTP_CLIENT)\n .setGoogleApiKey(finalApiKey)\n .build();\n\n if (languageCode != null) {\n api.setLanguageCode(languageCode);\n }\n\n if (countryCode != null) {\n api.setCountryCode(countryCode);\n }\n\n if (layoutAdapterClass != null) {\n adapter = adapterForClass(context, layoutAdapterClass);\n } else {\n adapter = new DefaultAutocompleteAdapter(context, api, resultType, historyManager);\n }\n\n super.setAdapter(adapter);\n\n super.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(final AdapterView<?> parent, final View view, final int position, final long id) {\n Place place = adapter.getItem(position);\n\n if (listener != null) {\n listener.onPlaceSelected(place);\n }\n\n if (historyManager != null) {\n historyManager.addItemToHistory(place);\n }\n }\n });\n\n this.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (clearEnabled) {\n if (s != null && s.length() > 0) {\n showClearButton(true);\n } else {\n showClearButton(false);\n }\n } else {\n showClearButton(false);\n }\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n\n super.setDropDownBackgroundResource(R.drawable.pacv_popup_background_white);\n }",
"private void populateAutoComplete() {\n if (!mayRequestContacts()) {\n return;\n }\n\n getLoaderManager().initLoader(0, null, this);\n }",
"public PlacesAutocompleteTextView(final Context context, final AttributeSet attrs) {\n super(context, attrs);\n\n init(context, attrs, R.attr.pacv_placesAutoCompleteTextViewStyle, R.style.PACV_Widget_PlacesAutoCompleteTextView, null, context.getString(R.string.pacv_default_history_file_name));\n }",
"public void listadaptor1(){\n final String[] sem = getResources().getStringArray(R.array.Sem1);\n\n //Creating an instance of ArrayAdaptor\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this, android.R.layout.simple_list_item_1, sem);\n\n //Assigning the adapter to the listview\n lst_course.setAdapter(adapter);\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n \r\n AutoCompletionBinding<Project> txt_name = TextFields.bindAutoCompletion(name, new Callback<AutoCompletionBinding.ISuggestionRequest, Collection<Project>>() {\r\n\r\n @Override\r\n public Collection<Project> call(AutoCompletionBinding.ISuggestionRequest param) {\r\n List<Project> list = null;\r\n HttpHelper helper = new HttpHelper();\r\n try {\r\n LovHandler lovHandler = new LovHandler(\"projects\", \"PROJECT\");\r\n String response = lovHandler.getSuggestions(param.getUserText());\r\n list = (List<Project>) new JsonHelper().convertJsonStringToObject(response, new TypeReference<List<Project>>() {\r\n });\r\n } catch (IOException ex) {\r\n Logger.getLogger(ProjectController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return list;\r\n }\r\n\r\n \r\n }, new StringConverter<Project>() {\r\n\r\n @Override\r\n public String toString(Project object) {\r\n return object.getName() + \" (ID:\" + object.getId() + \")\";\r\n }\r\n\r\n @Override\r\n public Project fromString(String string) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\");\r\n }\r\n });\r\n\r\n //event handler for setting other Client fields with values from selected Client object\r\n //fires after autocompletion\r\n txt_name.setOnAutoCompleted(new EventHandler<AutoCompletionBinding.AutoCompletionEvent<Project>>() {\r\n\r\n @Override\r\n public void handle(AutoCompletionBinding.AutoCompletionEvent<Project> event) {\r\n Project project = event.getCompletion();\r\n //fill other item related fields\r\n \r\n PROJECT.setText(splitName(name.getText()));\r\n \r\n \r\n //populateAuditValues(client);\r\n }\r\n });\r\n // TODO\r\n }",
"public void listadaptor2(){\n final String[] sem = getResources().getStringArray(R.array.Sem2);\n\n //Creating an instance of ArrayAdaptor\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this, android.R.layout.simple_list_item_1, sem);\n\n //Assigning the adapter to the listview\n lst_course.setAdapter(adapter);\n }",
"public void createViews(){\n ArrayList<Words> wordsArrayList = new ArrayList<Words>();\n\n //Fill array with english word and hindi translation by creating new word objects\n for(int i = 0; i < defaultWords.size() && i < hindiTranslation.size(); i++){\n wordsArrayList.add(new Words(defaultWords.get(i), hindiTranslation.get(i)));\n }\n\n //ArrayAdapter and ListView used so that not a lot of memory is used to create all textviews when not needed\n //Update** Using WordAdapter which extends ArrayAdapter and only has 2 parameters\n\n WordAdapter adapter = new WordAdapter(this, wordsArrayList);\n\n ListView listView = (ListView) findViewById(R.id.translation_root_view);\n\n listView.setAdapter(adapter);\n\n\n }",
"private void addNamesToAutoComplete(List<String> nameCollection)\n\t{\n\t\tArrayAdapter<String> adapter =\n\t\t\t\tnew ArrayAdapter<>(SignupPersonalActivity.this,\n\t\t\t\t\t\tandroid.R.layout.simple_dropdown_item_1line, nameCollection);\n\n\t\tmNameView.setAdapter(adapter);\n\t}",
"private void initializeAdapter() {\n }",
"private void SetViewAndAutoCompleteText(int viewID)\n\t{\n\t\t// Auto complete words\n // !put, !get, !capture, !launch, !autotest are special commands\n\t\tfinal String [] COMMAND_LIST = new String [] { \n\t\t\t\t\"!put a.txt\", \"!get c:/test.txt\", \"!capture 1.jpg\", \"!launch\", \n\t\t\t\t\"dir\", \"cd \", \"cd ..\", \"c:\", \"tasklist\" };\n\t\tfinal String [] KEY_LIST = new String [] { \n\t\t\t\t\"!autotest\", \"!pintest\", \"!stoptest\", \"[KEY_\", \"[KEY_LGUI]\", \"[KEY_LGUI][KEY_R]\", \"[KEY_LGUI][KEY_L]\", \"[KEY_LALT]\", \"[KEY_LALT][KEY_F4]\", \"[KEY_LCONTROL]\", \"[KEY_LCONTROL][KEY_S]\", \"[KEY_UP]\",\n\t\t\t\t\"[KEY_LSHIFT]\",\t\"[KEY_ENTER]\", \"[KEY_BACKSPACE]\", \"cmd.exe\", \"d:/testagent\" };\n\t\t\n\t\t// Set view pointer\n\t\tView view;\n\t\tAutoCompleteTextView autoText;\n\t\tArrayAdapter<String> adapter;\n\t\t\n\t\t// Set view pointer\n\t\tif (viewID == VIEW_ID_COMMAND)\n\t\t{\n\t\t\tview = mTabHost.getTabContentView().findViewById(R.id.commandView);\n\t\t\tmCommandView = (TextView)view.findViewById(R.id.dataview);\n\t\t\tmCommandScrollView = (ScrollView)view.findViewById(R.id.scrollview);\n\t\t\tmCommandInputView = (AutoCompleteTextView) view.findViewById(R.id.commandInput);\n\t\t\tautoText = mCommandInputView;\n\t\t\tadapter = new ArrayAdapter(getApplicationContext(), \n\t\t\t\t\tandroid.R.layout.simple_dropdown_item_1line, COMMAND_LIST);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tview = mTabHost.getTabContentView().findViewById(R.id.keyView);\n\t\t\tmKeyView = (TextView)view.findViewById(R.id.dataview);\n\t\t\tmKeyScrollView = (ScrollView)view.findViewById(R.id.scrollview);\n\t\t\tmKeyInputView = (AutoCompleteTextView) view.findViewById(R.id.keyInput);\n\t\t\tautoText = mKeyInputView;\n\t\t\tadapter = new ArrayAdapter(getApplicationContext(), \n\t\t\t\t\tandroid.R.layout.simple_dropdown_item_1line, KEY_LIST);\t\t\t\n\t\t}\t\t\n\t\t\n\t\t// Set options for autocomplete\n\t\tautoText.setTag(viewID);\n\t\tautoText.setAdapter(adapter);\n\t\tautoText.setThreshold(1);\n\t\t\n\t\t// Process enter key\n\t\tautoText.setOnKeyListener(new OnKeyListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic boolean onKey(View arg0, int arg1, KeyEvent arg2) \n\t\t\t{\t\t\t\t\n\t\t\t\tif ((arg0 != null) && (arg2 != null) && \n\t\t\t\t\t(arg2.getAction() == KeyEvent.ACTION_DOWN) &&\n\t\t\t\t\t(arg2.getKeyCode() == KeyEvent.KEYCODE_ENTER))\n\t\t\t\t{\n\t\t\t\t\tAutoCompleteTextView view = (AutoCompleteTextView) arg0;\n\t\t\t\t\tString data;\n\t\t\t\t\tint viewID;\n\t\t\t\t\t\n\t\t\t\t\tdata = view.getText().toString();\n view.setText(\"\");\n viewID = (Integer) view.getTag();\n if (data.equals(\"\") == true)\n {\n if (viewID == VIEW_ID_KEY)\n {\n data = \"[KEY_ENTER]\";\n }\n else\n {\n return true;\n }\n }\n\n SendCommandOrKeys(viewID, data);\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\t\t\n\t}",
"@Override\n public View getDropDownView(int position, View convertView, ViewGroup parent) {\n return getCustomView(position, convertView, parent);\n }",
"private void initAdapter() {\n GridLayoutManager layoutManager = new GridLayoutManager(this, 3);\n //设置布局管理器\n rv.setLayoutManager(layoutManager);\n //设置为垂直布局,这也是默认的\n layoutManager.setOrientation(OrientationHelper.VERTICAL);\n\n adapter1 = new CommomRecyclerAdapter(ChoiceCityActivity.this, stringList, R.layout.recy_country, new CommomRecyclerAdapter.OnItemClickListener() {\n @Override\n public void onItemClick(CommonRecyclerViewHolder holder, int postion) {\n //热门城市点击\n Map map = new HashMap();\n map.put(\"p1\",stringList.get(postion).getHotCity() );\n StatisticsManager.getInstance(mContext).addEventAidl(1812,map);\n\n Intent intent = new Intent(ChoiceCityActivity.this, MainActivity.class);\n intent.putExtra(\"country\", stringList.get(postion).getHotCountry());\n intent.putExtra(\"city\", stringList.get(postion).getHotCity());\n Constans.CITY = stringList.get(postion).getHotCity();\n Constans.COUNTRY = stringList.get(postion).getHotCountry();\n if (isFirst == 1) {\n isFirst=0;\n startActivity(intent);\n } else {\n setResult(RESULT_OK, intent);\n }\n finish();\n }\n }, null) {\n @Override\n public void convert(CommonRecyclerViewHolder holder, Object o, int position) {\n TextView tv_country_name = holder.getView(R.id.tv);\n tv_country_name.setText(stringList.get(position).getHotCity());\n }\n };\n rv.setAdapter(adapter1);\n\n\n }",
"@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n\n ArrayAdapter<String> adapter_state1 = new ArrayAdapter<String>(MainActivity.this, R.layout.simple_list_item_2, arrayListtype){\n\n @Override\n public boolean isEnabled(int position){\n if(position == 0)\n {\n // Disable the first item from Spinner\n // First item will be use for hint\n return false;\n }\n else\n {\n return true;\n }\n }\n @Override\n public View getDropDownView(int position, View convertView,\n ViewGroup parent) {\n View view = super.getDropDownView(position, convertView, parent);\n TextView tv = (TextView) view;\n if(position == 0){\n // Set the hint text color gray\n tv.setTextColor(getResources().getColor(R.color.grey));\n }\n else {\n tv.setTextColor(getResources().getColor(R.color.textcolour));\n }\n return view;\n }\n };\n\n adapter_state1\n .setDropDownViewResource(R.layout.simple_list_item_1);\n\n sp1.setAdapter(adapter_state1);\n pdia.dismiss();\n\n }",
"private void loadSuggestions(final ArrayList<MutualFund_CustomClass> mSuggestionArrayList) {\n new VolleyClass(MainActivity.this, \"MainActivity\").volleyPostData(\"<YOUR_WEBSERVICE_URL>\", /*\"<YOUR_JSON_OBJECT>\"*/, new VolleyResponseListener() {\n @Override\n public void onResponse(JSONObject response) throws JSONException {\n for (int i = 0; i < response.getJSONArray(\"data\").length(); i++) {\n mutualFundHouseObj = new MutualFund_CustomClass();\n mutualFundHouseObj.setFundId(response.getJSONArray(\"data\").optJSONObject(i).optString(\"fundid\"));\n mutualFundHouseObj.setFundName(response.getJSONArray(\"data\").optJSONObject(i).optString(\"fundname\"));\n mSuggestionArrayList.add(mutualFundHouseObj);\n }\n //INSTANTIATING CUSTOM ADAPTER\n mMutualFundAdapter = new MutualFund_CustomAdapter(MainActivity.this, mSuggestionArrayList);\n mAutoCompleteTextView.setThreshold(1);//will start working from first character\n mAutoCompleteTextView.setAdapter(mMutualFundAdapter);//setting the adapter data into the AutoCompleteTextView\n\n }\n\n @Override\n public void onError(String message, String title) {\n\n }\n });\n }",
"public PlacesAutocompleteTextView(@NonNull final Context context, @NonNull final String googleApiKey) {\n super(context);\n\n init(context, null, R.attr.pacv_placesAutoCompleteTextViewStyle, R.style.PACV_Widget_PlacesAutoCompleteTextView, googleApiKey, context.getString(R.string.pacv_default_history_file_name));\n }",
"@Override\r\n\tpublic View getDropDownView(int position, View convertView, ViewGroup parent) {\r\n\r\n\t\treturn getView(position, convertView, parent);\r\n\t}",
"public void buildConsultantComboBox(){\r\n combo_user.getSelectionModel().selectFirst(); // Select the first element\r\n \r\n // Update each timewindow to show the string representation of the window\r\n Callback<ListView<User>, ListCell<User>> factory = lv -> new ListCell<User>(){\r\n @Override\r\n protected void updateItem(User user, boolean empty) {\r\n super.updateItem(user, empty);\r\n setText(empty ? \"\" : user.getName());\r\n }\r\n };\r\n \r\n combo_user.setCellFactory(factory);\r\n combo_user.setButtonCell(factory.call(null)); \r\n }",
"private void populateListView() {\n String[] myItems = {\"Blue\", \"green\", \"Purple\", \"red\"};\n\n //creating listviewadapter which is an array for storing the data and linking it according to the\n //custom listview\n\n ArrayAdapter<String> listViewAdapter = new ArrayAdapter<String>(this, R.layout.da_items, myItems);\n //linking the listview with our adapter to present data\n ListView Lv = (ListView)findViewById(R.id.listView_data);\n Lv.setAdapter(listViewAdapter);\n }",
"private void setEventTypeList() {\n EventTypeAdapter listAdapter = new EventTypeAdapter(this, R.layout.spinner_item, getResources().getStringArray(R.array.event_type_list));\n listAdapter.setDropDownViewResource(R.layout.spinner_list_item);\n listEventType.setAdapter(listAdapter);\n listEventType.setSelection(listAdapter.getCount());\n listEventType.setOnItemSelectedListener(this);\n }",
"public AutoCompleteTextView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, Resources.Theme popupTheme) {\n/* 157 */ super((Context)null); throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void spn_adaptor(){\n final String[] sem = getResources().getStringArray(R.array.Semester);\n\n //Creating an instance of ArrayAdaptor\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this, android.R.layout.simple_spinner_item, sem);\n\n //Setting the view which will be used in the spinner\n adapter.setDropDownViewResource(\n simple_spinner_dropdown_item\n );\n\n //Assigning the adaptor1 to the spinner\n spn_semester.setAdapter(adapter);\n }",
"private void populateAdapter(){\n mAdapter = new MovieRecyclerAdapter(context, moviesList, this);\n mRecyclerView.setAdapter(mAdapter);\n }",
"private void populateList(){\n //Build name list\n this.names = new String[] {\"Guy1\",\"Guy2\",\"Guy3\",\"Guy4\",\"Guy5\",\"Guy6\"};\n //Get adapter\n //ArrayAdapter<String>(Context, Layout to be used, Items to be placed)\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.list_items, names);\n //Filling the list view\n ListView list = findViewById(R.id.transaction_list);\n list.setAdapter(adapter);\n }",
"private void setAdapter() {\n AdapterSymptomList adapter = new AdapterSymptomList(allSymptomsList, ActivityRecordsListSymptoms.this);\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(ActivityRecordsListSymptoms.this);\n symptomRecyclerView.setLayoutManager(layoutManager);\n symptomRecyclerView.setItemAnimator(new DefaultItemAnimator());\n symptomRecyclerView.setAdapter(adapter);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_select_service_item, container, false);\n ButterKnife.bind(this, view);\n getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE);\n getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n typeName.setText(serviceTypeEx.getTypeName());\n adapter = new ServiceItemAdapter();\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n recyclerView.setAdapter(adapter);\n// adapter.setServiceTypeExList(serviceTypeExList);\n return view;\n }",
"@Override\n public View getDropDownView(int position, View convertView,\n ViewGroup parent) {\n return getCustomView(position, convertView, parent);\n }",
"public void createmenu(){\n\n\n Context context = getApplicationContext();\n menuadpater = new MenuAdapter(context);\n\n MENULIST.setAdapter(menuadpater);\n\n\n }",
"private void showArrayAdaptView() {\n\t\tPersonAdapt personAdapt = new PersonAdapt(this, persons, R.layout.listview_item);\n\t\tlistView.setAdapter(personAdapt);\n\t}",
"private void setAdapter() {\n\n\t\tathleteCheckInAdapter = new AthleteStickyHeaderCheckInAdapter(getActivity(), athleteAttendanceList);\n\n\t}",
"public Adapter(Context c, String[] title, String[] descript) {\n myContext = c;\n titleA = title;\n descriptA = descript;\n inflater = LayoutInflater.from(c);\n\n }",
"private void initSpinnerTypeExam()\n {\n Spinner spinner = findViewById(R.id.iTypeExam);\n\n // Adapt\n final ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this,\n R.layout.support_simple_spinner_dropdown_item\n );\n spinner.setAdapter(adapter);\n\n // ajout des types d'examens\n for(TypeExamen t : TypeExamen.values())\n {\n adapter.add(t.toString());\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_select_alphabet_vowels, container, false);\n //use butter knife in fragments with the help of unbinder class\n unbinder = ButterKnife.bind(this, view);\n setSelectAlphabetsAdapter();\n return view;\n }",
"@Override\n public View getDropDownView(final int position, View convertView, final ViewGroup parent) {\n if (convertView == null) convertView = mDropDownHelper.getDropDownViewInflater()\n .inflate(mLayoutId, parent, false);\n return super.getDropDownView(position, convertView, parent);\n }",
"private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(AGLoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mNameView.setAdapter(adapter);\n }",
"public static void setupAutoComplete(JComboBox comboBox)\n\t{\n\t\tcomboBox.setEditable(true);\n\t\tJTextComponent editor = (JTextComponent) comboBox.getEditor().getEditorComponent();\n\t\teditor.setDocument(new AutoComplete(comboBox));\n\t}",
"void setupSpinner() {\n\n Spinner spinner = (Spinner) findViewById(R.id.language_spinner);\n\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.language_array, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner.setAdapter(adapter);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n assignmentAdapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_selectable_list_item);\n\n new getAllCourses().execute(\"\");\n return super.onCreateView(inflater, container, savedInstanceState);\n }",
"public void listadaptor3(){\n final String[] sem = getResources().getStringArray(R.array.Sem3);\n\n //Creating an instance of ArrayAdaptor\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this, android.R.layout.simple_list_item_1, sem);\n\n //Assigning the adapter to the listview\n lst_course.setAdapter(adapter);\n }",
"private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<String>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }",
"private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<String>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }",
"protected abstract MultiTypeAdapter createAdapter();",
"private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n //Create adapter to tell the AutoCompleteTextView what to show in its dropdown list.\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }",
"void loadSpinner(Spinner sp){\n List<String> spinnerArray = new ArrayList<>();\n spinnerArray.add(\"Oui\");\n spinnerArray.add(\"Non\");\n\n// (3) create an adapter from the list\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(\n this,\n android.R.layout.simple_spinner_item,\n spinnerArray\n );\n\n//adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n// (4) set the adapter on the spinner\n sp.setAdapter(adapter);\n\n }",
"private void setSelectTypeData(){\n ArrayList<SelectType> selectTypes = new ArrayList<>();\n //add select types\n selectTypes.add(new SelectType(\"Multiple Choice\", \"multiple\"));\n selectTypes.add(new SelectType(\"True / False\",\"boolean\"));\n\n //fill in data\n ArrayAdapter<SelectType> adapter = new ArrayAdapter<>(this,\n android.R.layout.simple_spinner_dropdown_item,selectTypes);\n selectType.setAdapter(adapter);\n\n }",
"private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(SignUpActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }",
"public AutoCompleteTextView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {\n/* 132 */ super((Context)null); throw new RuntimeException(\"Stub!\");\n/* */ }",
"public static TypeAdapterFactory create() {\n return new AutoValueGson_MyTypeAdapterFactory();\n }",
"@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n ArrayAdapter<String> adapter_state2 = new ArrayAdapter<String>(MainActivity.this, R.layout.simple_list_item_3, arrayListsize){\n\n @Override\n public boolean isEnabled(int position){\n if(position == 0)\n {\n // Disable the first item from Spinner\n // First item will be use for hint\n return false;\n }\n else\n {\n return true;\n }\n }\n @Override\n public View getDropDownView(int position, View convertView,\n ViewGroup parent) {\n View view = super.getDropDownView(position, convertView, parent);\n TextView tv = (TextView) view;\n if(position == 0){\n // Set the hint text color gray\n tv.setTextColor(getResources().getColor(R.color.grey));\n }\n else {\n tv.setTextColor(getResources().getColor(R.color.textcolour));\n }\n return view;\n }\n };\n\n adapter_state2\n .setDropDownViewResource(R.layout.simple_list_item_1);\n\n sp2.setAdapter(adapter_state2);\n pdia.dismiss();\n\n\n }",
"private void adapterSet(String ruta) {\n if(!agregar){\n ArrayList<Ruta> ruta1 = db.getRutas();\n for(Ruta rut: ruta1){\n if(rut.getNombre().equals(getIntent().getExtras().getString(\"ruta\"))){\n rutaA = rut;\n }\n }\n tags = db.getTagsDeRutaPorRuta(rutaA.getCodigo());\n for(Tag tag: tags){\n if(tag.getRonda().equals(rutaA.getCodigo())){\n PntsTagRuta.add(tag.getCodigo());\n }\n }\n\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, final int position, long id) {\n //Toast.makeText(view.getContext(),\"List item \"+position,Toast.LENGTH_SHORT).show();\n final PopupMenu popup = new PopupMenu(view.getContext(), listView);\n //Inflating the Popup using xml file\n popup.getMenuInflater().inflate(R.menu.opciones_crear_ruta, popup.getMenu());\n\n //registering popup with OnMenuItemClickListener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.modificar:\n cdd = new CustomDialogClass(AgregarRutaActivity.this); // En espera de NFC\n pos = position;\n cdd.show();\n return true;\n case R.id.borrar:\n //db.borrarRuta(nombresRutas.get(position));\n return true;\n }\n return true;\n }\n });\n\n popup.show();//showing popup menu\n }\n });\n }\n adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, PntsTagRuta);\n listView.setAdapter(adapter);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_register_ti, container, false);\n getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n\n requestQueue = DataSource.getInstance(getContext()).getRequestQueue();\n\n sharedPreferences = getContext().getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE);\n idUser = sharedPreferences.getString(SplashActivity.USER_ID, \"\");\n// idUser = 123456;\n// atividadePersister = AtividadePersister.getInstance(getContext());\n dataSource = DataSource.getInstance(getContext());\n atividades = (ArrayList<Atividade>) dataSource.getAtividades(idUser);\n\n\n initViews(view);\n listeners();\n\n atividades.add(new Atividade(\"Nova Atividade\"));\n ArrayAdapter<Atividade> adapter =\n new ArrayAdapter<Atividade>(getContext(),\n android.R.layout.simple_spinner_item, atividades);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n atividade.setAdapter(adapter);\n return view;\n }"
]
| [
"0.69251245",
"0.6781905",
"0.67093617",
"0.6673698",
"0.66282773",
"0.6547743",
"0.6547292",
"0.6534585",
"0.65123296",
"0.6370756",
"0.63326705",
"0.62794495",
"0.6175075",
"0.615167",
"0.61018836",
"0.6059119",
"0.6048769",
"0.60367614",
"0.5974004",
"0.592761",
"0.58973783",
"0.5870116",
"0.5811949",
"0.576069",
"0.574192",
"0.5737706",
"0.56946415",
"0.5690397",
"0.56888413",
"0.56864196",
"0.563536",
"0.56315315",
"0.5624913",
"0.56235707",
"0.56164414",
"0.56119406",
"0.5611867",
"0.55955666",
"0.5572899",
"0.5569618",
"0.5555719",
"0.5522434",
"0.5515883",
"0.5514095",
"0.55110645",
"0.5493361",
"0.5489505",
"0.54746616",
"0.547315",
"0.5470287",
"0.5469754",
"0.5468699",
"0.54681623",
"0.54670435",
"0.54657185",
"0.54586583",
"0.5440825",
"0.543985",
"0.5438421",
"0.54275054",
"0.5427422",
"0.5420085",
"0.5419613",
"0.54184645",
"0.5413231",
"0.5411163",
"0.54047966",
"0.5400632",
"0.5399408",
"0.53981817",
"0.5388315",
"0.53871775",
"0.5383939",
"0.53811777",
"0.5380452",
"0.5379188",
"0.53765017",
"0.5374827",
"0.53704",
"0.53625673",
"0.53599477",
"0.53563005",
"0.53474295",
"0.53409505",
"0.53325975",
"0.5328962",
"0.5328428",
"0.5325358",
"0.5323703",
"0.53212833",
"0.53212833",
"0.5313626",
"0.5312325",
"0.5312099",
"0.53096753",
"0.53002495",
"0.52991045",
"0.5292873",
"0.5290192",
"0.5289991",
"0.5288613"
]
| 0.0 | -1 |
AWS access key id. | @Config("aws_access_key_id")
@ConfigDefault("null")
Optional<String> getAwsAccessKeyId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAccessKeyId();",
"String getEncryptionKeyId();",
"public String getAccessKeyId() {\n return accessKeyId;\n }",
"public String accessKey() {\n return this.accessKey;\n }",
"public String getAccessKey() {\n return cred.getAWSAccessKeyId();\n }",
"java.lang.String getClientKey();",
"public String getKeyId() {\n return getProperty(KEY_ID);\n }",
"public void setAccessKeyId(String accessKeyId) {\n this.accessKeyId = accessKeyId;\n }",
"public String getAccessKey() {\n return properties.getProperty(ACCESS_KEY);\n }",
"public int keyId() {\n return keyId;\n }",
"public static String getIAMUserId(){\n \t\t// There are a few places where we can find this\n \t\tString id = System.getProperty(\"AWS_ACCESS_KEY_ID\");\n \t\tif(id != null) return id;\n \t\tid = System.getProperty(STACK_IAM_ID);\n \t\tif (id == null) return null;\n \t\tid = id.trim();\n \t\tif (\"\".equals(id)) return null;\n \t\treturn id;\n \t}",
"public String getAppKey(Integer appId) {\n\t\treturn \"d3d1f52452be41aaa1b68e33d59d0188\";\n\t}",
"public static String getIAMUserKey(){\n \t\t// There are a few places to look for this\n \t\tString key = System.getProperty(\"AWS_SECRET_KEY\");\n \t\tif(key != null) return key;\n \t\tkey = System.getProperty(STACK_IAM_KEY);\n \t\tif (key == null) return null;\n \t\tkey = key.trim();\n \t\tif (\"\".equals(key)) return null;\n \t\treturn key;\n \t}",
"Object getAuthInfoKey();",
"public final int getKeyId()\r\n\t{\r\n\t\treturn keyId;\r\n\t}",
"public final String getAccessKeyAttribute() {\n return getAttributeValue(\"accesskey\");\n }",
"public Key getID () {\n\t\treturn id;\n\t}",
"KeyIdPair createKeyIdPair();",
"public String getKey() {\r\n return getAttribute(\"id\");\r\n }",
"public String keyIdentifier() {\n return this.keyIdentifier;\n }",
"public String keyIdentifier() {\n return this.keyIdentifier;\n }",
"private String key() {\n return \"secret\";\n }",
"String getSecId();",
"java.lang.String getPublicEciesKey();",
"public long getKeyID()\n {\n return keyID;\n }",
"public String getKey() {\n\t\treturn id + \"\";\n\t}",
"public String getKmsKeyId() {\n return this.kmsKeyId;\n }",
"public String getKmsKeyId() {\n return this.kmsKeyId;\n }",
"public Key getKey() {\n\t\tString fieldvalue = getValue(\"sys_id\");\n\t\tassert fieldvalue != null;\n\t\treturn new Key(fieldvalue);\n\t}",
"String activity_key () throws BaseException;",
"public String getDynamoDbAccessKey() {return this.databaseConfig.getProperty(\"dynamoDbAccessKey\");}",
"@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}",
"public void setInitKey_accessid( int newValue ) {\n this.initKey_accessid = (newValue);\n }",
"public String getIdKey(EdaContext xContext) {\n\t\treturn String.valueOf(getId());\n\n\t}",
"public String getAccessKeySecret() {\n return accessKeySecret;\n }",
"String key();",
"public String key() {\n return key;\n }",
"public String key() {\n return key;\n }",
"public String getAppKey() {\n return appKey;\n }",
"String getComponentAesKey();",
"public void setKeyId(String keyId) {\n setProperty(KEY_ID, keyId);\n }",
"public static String getKey(){\n\t\treturn key;\n\t}",
"public void setDynamoDbAccessKey(String key) {this.databaseConfig.setProperty(\"dynamoDbAccessKey\", key);}",
"@Override\n\tpublic String getKey() {\n\t\treturn getCid();\n\t}",
"public static String getKey() {\t\t\n\t\treturn key;\n\t}",
"public String getKmsAccessKey() {return this.databaseConfig.getProperty(\"kmsAccessKey\");}",
"public String getCustomKeyStoreId() {\n return this.customKeyStoreId;\n }",
"protected static long getId(String key) {\n\t\treturn KeyFactory.stringToKey(key).getId();\n\t}",
"public String getIdentifier() {\n try {\n return keyAlias + \"-\" + toHexString(\n MessageDigest.getInstance(\"SHA1\").digest(keyStoreManager.getIdentifierKey(keyAlias).getEncoded()));\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }",
"private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }",
"OpenSSLKey mo134201a();",
"public String generateId() {\n return Utils.generateKey();\n }",
"public String key() {\n return this.key;\n }",
"public String key() {\n return this.key;\n }",
"public String key() {\n return this.key;\n }",
"public String key() {\n return this.key;\n }",
"public String getAmazonOrderId() {\n return amazonOrderId;\n }",
"public String getAppAeskey() {\r\n return appAeskey;\r\n }",
"public IdKey getKey() {\n return idKey;\n }",
"java.lang.String getClientRecordId();",
"@Override\n public String getKey()\n {\n return id; \n }",
"public static String getAlexaAppId() {\n return properties.getProperty(\"AlexaAppId\");\n }",
"public String getIdToken() throws IOException {\n return (String)userInfo.get(\"id_token\");\n }",
"public final String getKey() {\n return key;\n }",
"AccessKeyRecordEntity selectByPrimaryKey(String accessKeyId);",
"public String getApplicationId();",
"java.lang.String getSubjectKeyID();",
"java.lang.String getSubjectKeyID();",
"long getApikeyOpId();",
"public String getUserKey()\r\n {\r\n return getAttribute(\"userkey\");\r\n }",
"public String getAPIkey() {\n\t\treturn key1;\r\n\t}",
"public String currentKeyIdentifier() {\n return this.currentKeyIdentifier;\n }",
"public String getAmazonCustomerId(final Customer item)\n\t{\n\t\treturn getAmazonCustomerId( getSession().getSessionContext(), item );\n\t}",
"int getProductKey();",
"public String getKey(){\n\t\treturn key;\n\t}",
"public final Integer getId(final String key){\r\n\t\treturn keyIdMap.get(key);\r\n\t}",
"private String getDemoPartitionValue() {\n return cognitoIdentityId;\n }",
"String getSecretByKey(String key);",
"public void setKmsAccessKey(String key) {this.databaseConfig.setProperty(\"kmsAccessKey\", key);}",
"public String getSecretAccessKey() {\n return cred.getAWSSecretKey();\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"String getIdentityId();",
"public String generateKey(long duration) throws Exception;",
"public static String getKey(String clientId) {\n return Config.get(\"key.\" + clientId, \"\", TAG_ATTACHMENT_SERVICE, getAppSet());\n }",
"public static String getContainerKey() {\r\n\t\treturn ContainerRegistryBuilder.APPLICATION_CONTEXT_ATTRIBUTE_NAME;\r\n\t}",
"public String getAPIKey()\r\n {\r\n return APIKey;\r\n }",
"public String createCacheKey() {\n return \"organization.\" + userEmail;\n }",
"public String getKey()\n\t{\n\t\treturn key;\n\t}",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Key, ID: \"+this.id;\n\t}",
"@Schema(description = \"An Amazon-defined identifier for an order.\")\n public String getAmazonOrderId() {\n return amazonOrderId;\n }",
"private String getKey() {\r\n if (key == null) {\r\n key = getURI();\r\n }\r\n return key;\r\n }",
"java.lang.String getConsumerId();",
"public String getKey() {\r\n return key;\r\n }",
"public void setAccessKeySecret(String accessKeySecret) {\n this.accessKeySecret = accessKeySecret;\n }",
"public String getAmazonCustomerId(final SessionContext ctx, final Customer item)\n\t{\n\t\treturn (String)item.getProperty( ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID);\n\t}"
]
| [
"0.7405616",
"0.7045022",
"0.7041723",
"0.6760649",
"0.66479105",
"0.65154696",
"0.64134544",
"0.6399307",
"0.6397495",
"0.63401115",
"0.6335716",
"0.63112396",
"0.62374294",
"0.6177907",
"0.6174383",
"0.6123491",
"0.6111451",
"0.6089966",
"0.6060635",
"0.603625",
"0.603625",
"0.60329753",
"0.60270536",
"0.60145545",
"0.6008244",
"0.5999082",
"0.5977445",
"0.5977445",
"0.59251606",
"0.5906582",
"0.5906478",
"0.58850175",
"0.58637816",
"0.5849864",
"0.5841812",
"0.58008397",
"0.57913405",
"0.57913405",
"0.5790768",
"0.57876736",
"0.5759897",
"0.57571226",
"0.57525694",
"0.5741358",
"0.5739478",
"0.5739316",
"0.5698502",
"0.56910944",
"0.5683103",
"0.5679124",
"0.5678021",
"0.5672724",
"0.56593627",
"0.56543183",
"0.56543183",
"0.56543183",
"0.56543183",
"0.5653398",
"0.56389475",
"0.55943453",
"0.5589064",
"0.55802584",
"0.557019",
"0.55563205",
"0.55523837",
"0.55317616",
"0.553151",
"0.5526608",
"0.5526608",
"0.5509653",
"0.5497588",
"0.5485612",
"0.54826254",
"0.5476372",
"0.5460223",
"0.5458228",
"0.54529047",
"0.5451052",
"0.5443899",
"0.5442881",
"0.5442196",
"0.5440109",
"0.5440109",
"0.5435656",
"0.54327106",
"0.5431292",
"0.54291385",
"0.5427066",
"0.54184204",
"0.5417869",
"0.5417742",
"0.5417742",
"0.5417742",
"0.5414872",
"0.54119176",
"0.54113925",
"0.540522",
"0.54020256",
"0.53963035",
"0.5387946"
]
| 0.67287713 | 4 |
AWS secret access key | @Config("aws_secret_access_key")
@ConfigDefault("null")
Optional<String> getAwsSecretAccessKey(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAccessKeySecret() {\n return accessKeySecret;\n }",
"public void setAccessKeySecret(String accessKeySecret) {\n this.accessKeySecret = accessKeySecret;\n }",
"public String getSecretAccessKey() {\n return cred.getAWSSecretKey();\n }",
"private String key() {\n return \"secret\";\n }",
"String getSecretByKey(String key);",
"String getSecret();",
"java.lang.String getSecret();",
"java.lang.String getServerSecret();",
"public String getSecretKey();",
"public SecretKey getSecretKey() {\n return secretKey;\n }",
"public String getAccessSecret () {\n\t\treturn this.accessSecret;\n\t}",
"public String getSecretKey() {\n return secretKey;\n }",
"public static String getIAMUserKey(){\n \t\t// There are a few places to look for this\n \t\tString key = System.getProperty(\"AWS_SECRET_KEY\");\n \t\tif(key != null) return key;\n \t\tkey = System.getProperty(STACK_IAM_KEY);\n \t\tif (key == null) return null;\n \t\tkey = key.trim();\n \t\tif (\"\".equals(key)) return null;\n \t\treturn key;\n \t}",
"public abstract String getSecret();",
"public String getSecretArn() {\n return this.secretArn;\n }",
"public String getSecretKey() {\n return properties.getProperty(SECRET_KEY);\n }",
"public String getDynamoDbSecretKey() {return this.databaseConfig.getProperty(\"dynamoDbSecretKey\");}",
"public String getSecretKey() {\n return getProperty(SECRET_KEY);\n }",
"public int getSecret() {\n return secret;\n }",
"public String getAccessKey() {\n return cred.getAWSAccessKeyId();\n }",
"public String getAccessKeyId();",
"public String accessKey() {\n return this.accessKey;\n }",
"public String getDynamoDbAccessKey() {return this.databaseConfig.getProperty(\"dynamoDbAccessKey\");}",
"private void getSecret() {\n\t\tAWSSecretsManager client = AWSSecretsManagerClientBuilder.standard().withRegion(region).build();\n\n\t\t// In this sample we only handle the specific exceptions for the\n\t\t// 'GetSecretValue' API.\n\t\t// See\n\t\t// https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html\n\t\t// We rethrow the exception by default.\n\n\t\tGetSecretValueRequest getSecretValueRequest = new GetSecretValueRequest().withSecretId(secretName);\n\t\tGetSecretValueResult getSecretValueResult = null;\n\n\t\ttry {\n\t\t\tgetSecretValueResult = client.getSecretValue(getSecretValueRequest);\n\t\t}\n\t\t// @TODO: Figure out what I should do here. Generic exception?.\n\t\tcatch (DecryptionFailureException e) {\n\t\t\t// Secrets Manager can't decrypt the protected secret text using the provided\n\t\t\t// KMS key.\n\t\t\t// Deal with the exception here, and/or rethrow at your discretion.\n\t\t\te.printStackTrace();\n\t\t} catch (InternalServiceErrorException e) {\n\t\t\t// An error occurred on the server side.\n\t\t\t// Deal with the exception here, and/or rethrow at your discretion.\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidParameterException e) {\n\t\t\t// You provided an invalid value for a parameter.\n\t\t\t// Deal with the exception here, and/or rethrow at your discretion.\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidRequestException e) {\n\t\t\t// You provided a parameter value that is not valid for the current state of the\n\t\t\t// resource.\n\t\t\t// Deal with the exception here, and/or rethrow at your discretion.\n\t\t\te.printStackTrace();\n\t\t} catch (ResourceNotFoundException e) {\n\t\t\t// We can't find the resource that you asked for.\n\t\t\t// Deal with the exception here, and/or rethrow at your discretion.\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (getSecretValueResult.getSecretString() != null) {\n\t\t\ttry {\n\t\t\t\tresult = new ObjectMapper().readValue(getSecretValueResult.getSecretString(), HashMap.class);\n\t\t\t} catch (JsonMappingException e) {\n\t\t\t\tlogger.error(\"ERROR :\", e);\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (JsonProcessingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\t// AWS defualt else, unsure why it is in the default. Need to check.\n\t\t//Maybe encryption not setup right?\n\t\telse {\n\t\t\tdecodedBinarySecret = new String(\n\t\t\t\t\tBase64.getDecoder().decode(getSecretValueResult.getSecretBinary()).array());\n\t\t}\n\t}",
"CreateS3VolumeRequestBuilder setSecretKey(String secretKey);",
"com.google.protobuf.ByteString getSecretBytes();",
"public String getClientSecret() {\n return clientSecret;\n }",
"public String getAppSecret() {\r\n return appSecret;\r\n }",
"public static ECKey createKeyFromSha256Passphrase(String secret) {\n byte[] hash = null;\n\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n md.update(secret.getBytes(\"UTF-8\"));\n hash = md.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n @SuppressWarnings(\"deprecation\")\n ECKey key = new ECKey(hash, (byte[])null);\n return key;\n }",
"public ResourceReference secret() {\n return this.secret;\n }",
"public String getClientSecret() {\n return clientSecret;\n }",
"public String getAccessKey() {\n return properties.getProperty(ACCESS_KEY);\n }",
"public String getSecret(String key) throws ClassicDatabaseException,ClassicNotFoundException;",
"public static ECKey createFromPassphrase(String secret) {\n byte[] hash = null;\n\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n md.update(secret.getBytes(\"UTF-8\"));\n hash = md.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n ECKey key = new ECKey(new SecureRandom(hash));\n return key;\n }",
"public void setSecretKey(String secretKey) {\n this.secretKey = secretKey;\n }",
"private static Key generateKey(String secretKeyString) throws Exception {\n // generate secret key from string\n Key key = new SecretKeySpec(secretKeyString.getBytes(), \"AES\");\n return key;\n }",
"public String getAppsecret() {\n return appsecret;\n }",
"public final String getClientSecret() {\n return clientSecret;\n }",
"@Override\n public PropertySource<?> locate(Environment environment) {\n return new MapPropertySource(\"secretKey\", Collections.<String, Object>singletonMap(\"auth.secret-key\", \"Sup3rS3cr37\"));\n }",
"String getComponentAppSecret();",
"private static String generateSecret(Accessor accessor, Consumer consumer) {\n return generateHash(accessor.getToken() + consumer.getSecret() + System.nanoTime());\n }",
"@Config(\"aws_access_key_id\")\n @ConfigDefault(\"null\")\n Optional<String> getAwsAccessKeyId();",
"public Secret readSecret(final ArtifactVersion version);",
"private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }",
"public void setSecretKey(String secretKey) {\n setProperty(SECRET_KEY, secretKey);\n }",
"public RgwAdminBuilder secretKey(String secretKey) {\n this.secretKey = secretKey;\n return this;\n }",
"public void setDynamoDbSecretKey(String key) {this.databaseConfig.setProperty(\"dynamoDbSecretKey\", key);}",
"public void setAPICredentials(String accessKey, String secretKey) {\n this.accessKey = accessKey;\n this.secretKey = secretKey;\n }",
"com.google.protobuf.ByteString\n getServerSecretBytes();",
"CreateS3VolumeRequestBuilder setAccessKey(String accessKey);",
"public void setDynamoDbAccessKey(String key) {this.databaseConfig.setProperty(\"dynamoDbAccessKey\", key);}",
"byte[] get_node_secret();",
"private void storeKeys(String key, String secret) {\n\t // Save the access key for later\n\t SharedPreferences prefs = getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t Editor edit = prefs.edit();\n\t edit.putString(ACCESS_KEY_NAME, key);\n\t edit.putString(ACCESS_SECRET_NAME, secret);\n\t edit.commit();\n\t }",
"synchronized SecretKey loadSecretKeyForEncryption() throws IOException,\n GeneralSecurityException {\n final byte[] secretKeyData = AuthenticationSettings.INSTANCE.getSecretKeyData();\n return loadSecretKeyForEncryption(secretKeyData == null ? VERSION_ANDROID_KEY_STORE : VERSION_USER_DEFINED);\n }",
"public String getAccessKeyId() {\n return accessKeyId;\n }",
"public void storeKeys(String key, String secret) {\n // Save the access key for later\n SharedPreferences prefs = getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n Editor edit = prefs.edit();\n edit.putString(ACCESS_KEY_NAME, key);\n edit.putString(ACCESS_SECRET_NAME, secret);\n edit.commit();\n }",
"public String generateClientSecret() {\n return clientSecretGenerator.generate().toString();\n }",
"void addSecretKey(InputStream secretKey) throws IOException, PGPException;",
"public void setSecretKey(byte[] secretKey) {\n this.secretKey = secretKey;\n }",
"public void createSecret(final ArtifactVersion version, final Secret secret);",
"public String getKmsAccessKey() {return this.databaseConfig.getProperty(\"kmsAccessKey\");}",
"public String getKmsSecretKey() {return this.databaseConfig.getProperty(\"kmsSecretKey\");}",
"public void setClientSecret(Secret secret) {\n this.clientSecret = secret;\n }",
"public void setSecretArn(String secretArn) {\n this.secretArn = secretArn;\n }",
"java.lang.String getPublicEciesKey();",
"public String getIdentityCardSecret() {\n return identityCardSecret;\n }",
"public static String getSecrets(String secretName,String region) {\n\t AWSSecretsManager client = AWSSecretsManagerClientBuilder.standard()\n\t .withRegion(region)\n\t .build();\n\t \n\t String secret = null; \n\t String decodedBinarySecret;\n\t GetSecretValueRequest getSecretValueRequest = new GetSecretValueRequest()\n\t .withSecretId(secretName);\n\t GetSecretValueResult getSecretValueResult = null;\n\n\t try {\n\t getSecretValueResult = client.getSecretValue(getSecretValueRequest);\n\t } catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t }\n\n\t // Decrypts secret using the associated KMS CMK.\n\t // Depending on whether the secret is a string or binary, one of these fields will be populated.\n\t if (getSecretValueResult.getSecretString() != null) {\n\t secret = getSecretValueResult.getSecretString();\n\t }\n\t else {\n\t decodedBinarySecret = new String(Base64.getDecoder().decode(getSecretValueResult.getSecretBinary()).array());\n\t }\n\t return secret;\n\t}",
"private void storeKeys(String key, String secret) {\n\t\t// Save the access key for later\n\t\tSharedPreferences prefs = EReaderApplication.getAppContext()\n\t\t\t\t.getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t\tEditor edit = prefs.edit();\n\t\tedit.putString(ACCESS_KEY_NAME, key);\n\t\tedit.putString(ACCESS_SECRET_NAME, secret);\n\t\tedit.commit();\n\t}",
"@Override\r\n protected String appSecret() {\r\n return \"\";\r\n }",
"public static byte[] getSecret()\r\n/* 136: */ {\r\n/* 137: */ try\r\n/* 138: */ {\r\n/* 139:122 */ return getPropertyBytes(\"secret\");\r\n/* 140: */ }\r\n/* 141: */ catch (Exception e)\r\n/* 142: */ {\r\n/* 143:124 */ log.warning(\"Error getting secret: \" + e.getMessage());\r\n/* 144: */ }\r\n/* 145:126 */ return new byte[0];\r\n/* 146: */ }",
"public static KeyPair createKeyPair(){\n KeyPair pair = KeyPair.random();\n System.out.println(pair.getSecretSeed());\n System.out.println(pair.getAccountId());\n return pair;\n\n }",
"public void setAppsecret(String appsecret) {\n this.appsecret = appsecret;\n }",
"public String getAppAeskey() {\r\n return appAeskey;\r\n }",
"public static SecretKey getAdminSigningKey() {\n return adminSigningKey;\n }",
"public void addKeySecretPair(String key, String secret) throws ClassicDatabaseException;",
"DBOOtpSecret storeSecret(Long userId, String secret);",
"@Override\n public boolean isSecretRequired() {\n\t return getClientSecret() != null;\n }",
"private static SecretKeySpec generateKey(final String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n final MessageDigest digest = MessageDigest.getInstance(HASH_ALGORITHM);\n byte[] bytes = password.getBytes(\"UTF-8\");\n digest.update(bytes, 0, bytes.length);\n byte[] key = digest.digest();\n\n log(\"SHA-256 key \", key);\n\n SecretKeySpec secretKeySpec = new SecretKeySpec(key, \"AES\");\n return secretKeySpec;\n }",
"void touchSecret(Long secretId);",
"private String generateSecretKey(){\n SecureRandom random = new SecureRandom();\n byte[] bytes = new byte[20];\n\n random.nextBytes(bytes);\n Base32 base32 = new Base32();\n return base32.encodeToString(bytes);\n }",
"public OSSUtil(String endpoint, String accessKeyId, String secretAccessKey) {\n this.accessKeyId = accessKeyId;\n this.secretAccessKey = secretAccessKey;\n this.endpoint = endpoint;\n initClient(endpoint, accessKeyId, secretAccessKey);\n }",
"OpenSSLKey mo134201a();",
"protected byte[] engineSharedSecret() throws KeyAgreementException {\n return Util.trim(ZZ);\n }",
"public void setAccessKeyId(String accessKeyId) {\n this.accessKeyId = accessKeyId;\n }",
"void setComponentAppSecret(String componentAppSecret);",
"public final String getAccessKeyAttribute() {\n return getAttributeValue(\"accesskey\");\n }",
"String getComponentAesKey();",
"public String getDriveSecretId() {return this.databaseConfig.getProperty(\"driveClientSecret\");}",
"public void setKmsSecretKey(String key) {this.databaseConfig.setProperty(\"kmsSecretKey\", key);}",
"private String getApiKey() throws IOException {\n Properties prop = new Properties();\n InputStream loader = getClass().getClassLoader().getResourceAsStream(\"config.properties\");\n prop.load(loader);\n\n return prop.getProperty(\"apiKey\");\n }",
"void saveKeys(String publicKeyFileLocation, String secretKeyFileLocation) throws IOException;",
"GoogleAuthenticatorKey createCredentials();",
"public void setKmsAccessKey(String key) {this.databaseConfig.setProperty(\"kmsAccessKey\", key);}",
"public static void setAccessTokenSecret(String secret, Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\tSharedPreferences.Editor prefEditor = prefs.edit();\n\t\t\tprefEditor.putString(TWITTER_ACCESS_TOKEN_SECRET, secret);\n\t\t\tprefEditor.commit();\n\t\t}",
"public SessionKey (String keyString) {\n byte[] keyByte = Base64.getDecoder().decode(keyString.getBytes());\n //Decodes a Base64 encoded String into a byte array\n int keyLength = keyByte.length;\n this.secretKey = new SecretKeySpec(keyByte, 0, keyLength, \"AES\");\n //Construct secret key from the given byte array.\n }",
"Object getAuthInfoKey();",
"public static String getAccessTokenSecret(Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_ACCESS_TOKEN_SECRET, null);\n\t\t}",
"public static String encrypt(String secret) {\n return BCrypt.hashpw(secret, BCrypt.gensalt(SALT_SIZE));\n }",
"DBOOtpSecret activateSecret(Long userId, Long secretId);",
"void generateSecretKey() {\n\n Random rand = new Random();\n \n // randomly generate alphabet chars\n this.secretKey.setCharAt(0, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(1, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(4, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(5, (char) (rand.nextInt(26) + 'a'));\n\n // randomly generate special chars\n // special chars are between 33-47 and 58-64 on ASCII table\n if (rand.nextBoolean()) {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(15) + '!'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(15) + '!'));\n } else {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(7) + ':'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(7) + ':'));\n }\n \n // randomly generate int between 2 and 5\n this.secretKey.setCharAt(7, (char) (rand.nextInt(4) + '2'));\n }"
]
| [
"0.74446046",
"0.70984125",
"0.70664716",
"0.7028117",
"0.69857687",
"0.69225633",
"0.687841",
"0.66917527",
"0.6674462",
"0.6534777",
"0.6527236",
"0.648417",
"0.6473513",
"0.64265",
"0.6405958",
"0.63160056",
"0.6279207",
"0.62555736",
"0.6253052",
"0.62012297",
"0.61643565",
"0.61570406",
"0.6141099",
"0.6126306",
"0.61195517",
"0.6107766",
"0.60976666",
"0.60926974",
"0.60830426",
"0.6080369",
"0.6079969",
"0.6051479",
"0.60190624",
"0.60155296",
"0.60136575",
"0.6007316",
"0.60010475",
"0.59798074",
"0.59790593",
"0.5948491",
"0.59469855",
"0.59206575",
"0.59177655",
"0.5899364",
"0.58817947",
"0.5865089",
"0.5851214",
"0.58383465",
"0.5813753",
"0.5790818",
"0.57904786",
"0.57684803",
"0.5738728",
"0.5735534",
"0.571987",
"0.5650013",
"0.56395876",
"0.56389445",
"0.5637321",
"0.56241715",
"0.5618865",
"0.5612071",
"0.56069404",
"0.5598091",
"0.5575619",
"0.5575129",
"0.5563416",
"0.5557379",
"0.55338013",
"0.5530929",
"0.5522094",
"0.54989034",
"0.54880047",
"0.54768133",
"0.54741096",
"0.5471416",
"0.5450334",
"0.54500645",
"0.544098",
"0.54185617",
"0.5405535",
"0.5394251",
"0.53644395",
"0.535897",
"0.5356411",
"0.534245",
"0.53347194",
"0.5332367",
"0.53103125",
"0.5308648",
"0.5302673",
"0.52996194",
"0.5289014",
"0.5281252",
"0.52734786",
"0.52571774",
"0.5257138",
"0.52553123",
"0.525351",
"0.5249617"
]
| 0.6754696 | 7 |
Created by Yordin Alayn on 29.11.15. | public interface NegotiationTransmission {
/**
* The method <code>getTransmissionId</code> returns the transmission id of the negotiation transmission
* @return an UUID the transmission id of the negotiation transmission
*/
UUID getTransmissionId();
/**
* The method <code>getTransactionId</code> returns the transaction id of the negotiation transmission
* @return an UUID the transaction id of the negotiation transmission
*/
UUID getTransactionId();
/**
* The method <code>getNegotiationId</code> returns the negotiation id of the negotiation transmission
* @return an UUID the negotiation id of the negotiation
*/
UUID getNegotiationId();
/**
* The method <code>getNegotiationTransactionType</code> returns the transaction type of the negotiation transmission
* @return an NegotiationTransactionType of the transaction type
*/
NegotiationTransactionType getNegotiationTransactionType();
/**
* The method <code>getPublicKeyActorSend</code> returns the public key the actor send of the negotiation transaction
* @return an String the public key of the actor send
*/
String getPublicKeyActorSend();
/**
* The method <code>getActorSendType</code> returns the actor send type of the negotiation transmission
* @return an PlatformComponentType of the actor send type
*/
PlatformComponentType getActorSendType();
/**
* The method <code>getPublicKeyActorReceive</code> returns the public key the actor receive of the negotiation transmission
* @return an String the public key of the actor receive
*/
String getPublicKeyActorReceive();
/**
* The method <code>getActorReceiveType</code> returns the actor receive type of the negotiation transmission
* @return an PlatformComponentType of the actor receive type
*/
PlatformComponentType getActorReceiveType();
/**
* The method <code>getTransmissionType</code> returns the type of the negotiation transmission
* @return an NegotiationTransmissionType of the negotiation type
*/
NegotiationTransmissionType getTransmissionType();
/**
* The method <code>getTransmissionState</code> returns the state of the negotiation transmission
* @return an NegotiationTransmissionStateof the negotiation state
*/
NegotiationTransmissionState getTransmissionState();
/**
* The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission
* @return an NegotiationType the negotiation type of negotiation
*/
NegotiationType getNegotiationType();
void setNegotiationType(NegotiationType negotiationType);
/**
* The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission
* @return an String the xml of negotiation
*/
String getNegotiationXML();
/**
* The method <code>getTimestamp</code> returns the time stamp of the negotiation transmission
* @return an Long the time stamp of the negotiation transmission
*/
long getTimestamp();
/**
* The method <code>isPendingToRead</code> returns if this pending to read the negotiation transmission
* @return an boolean if this pending to read
*/
boolean isPendingToRead();
/**
* The method <code>confirmRead</code> confirm the read of the negotiation trasmission
*/
void confirmRead();
/**
* The method <code>setNegotiationTransactionType</code> set the negotiation transaction type
*/
void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);
/**
* The method <code>setTransmissionType</code> set the Transmission Type
*/
void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);
/**
* The method <code>setTransmissionState</code> set the Transmission State
*/
void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);
public boolean isFlagRead();
public void setFlagRead(boolean flagRead);
public int getSentCount();
public void setSentCount(int sentCount);
public UUID getResponseToNotificationId();
public void setResponseToNotificationId(UUID responseToNotificationId);
public boolean isPendingFlag();
public void setPendingFlag(boolean pendingFlag);
public String toJson();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\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 comer() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\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\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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\r\n\tpublic void rozmnozovat() {\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void init() {\n\n }",
"public void mo38117a() {\n }",
"public void mo4359a() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void init() {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n void init() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\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 init() {}",
"@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 nghe() {\n\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n public void init() {}",
"@Override\n public void inizializza() {\n\n super.inizializza();\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 protected void initialize() {\n }",
"@Override\n protected void getExras() {\n }",
"private void strin() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"private void kk12() {\n\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 init()\r\n\t{\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n public int describeContents() { return 0; }",
"private void init() {\n\n\n\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"protected void mo6255a() {\n }",
"Petunia() {\r\n\t\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"public void skystonePos4() {\n }",
"@Override\n\tprotected void initdata() {\n\n\t}"
]
| [
"0.5937666",
"0.59281135",
"0.5798834",
"0.5713502",
"0.5713502",
"0.57057196",
"0.5678998",
"0.56510615",
"0.5640679",
"0.5636195",
"0.5619033",
"0.5596673",
"0.5595758",
"0.55935836",
"0.5587245",
"0.5574986",
"0.5549855",
"0.5536199",
"0.55238193",
"0.55173934",
"0.5517182",
"0.5517182",
"0.5517182",
"0.5517182",
"0.5517182",
"0.5515867",
"0.55018646",
"0.5493072",
"0.549074",
"0.5487514",
"0.54652244",
"0.54610413",
"0.545681",
"0.5424881",
"0.5409135",
"0.540664",
"0.53962606",
"0.53962606",
"0.538382",
"0.5381341",
"0.53768694",
"0.53741664",
"0.53741664",
"0.5370453",
"0.5370453",
"0.5370453",
"0.5368881",
"0.53643626",
"0.53643626",
"0.53643626",
"0.53634053",
"0.5362918",
"0.53612477",
"0.5359053",
"0.5357104",
"0.5357104",
"0.5357104",
"0.5357104",
"0.5357104",
"0.5357104",
"0.5356738",
"0.53562254",
"0.5352308",
"0.5352308",
"0.5352308",
"0.5352308",
"0.5352308",
"0.5352308",
"0.5352308",
"0.533518",
"0.5333777",
"0.5333777",
"0.53313196",
"0.53268844",
"0.53268844",
"0.53268844",
"0.5324115",
"0.53105384",
"0.5310452",
"0.5307996",
"0.5302772",
"0.5301907",
"0.5298024",
"0.5297344",
"0.5297044",
"0.5296598",
"0.52939737",
"0.52917325",
"0.52769095",
"0.52628016",
"0.52582306",
"0.5254891",
"0.5248522",
"0.52261287",
"0.5225625",
"0.521029",
"0.52097535",
"0.5205995",
"0.52052",
"0.51982",
"0.5179594"
]
| 0.0 | -1 |
The method getTransmissionId returns the transmission id of the negotiation transmission | UUID getTransmissionId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Transmission getTransmission(Long transmissionId);",
"NegotiationTransmissionType getTransmissionType();",
"UUID getNegotiationId();",
"public Transmission getTransmission() {\n return transmission;\n }",
"java.lang.String getTxId();",
"public int getId() {\n return txId;\n }",
"public Integer getIdTransport() {\r\n return idTransport;\r\n }",
"NegotiationTransmissionState getTransmissionState();",
"String getTransactionID();",
"public Long getTransferId() {\n return transferId;\n }",
"public Long getTransferId() {\n return transferId;\n }",
"int getSendid();",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n }\n }",
"long getTruckId();",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setTransmission(Transmission transmission) {\n this.transmission = transmission;\n }",
"public long getTransactionid() {\n return transactionid;\n }",
"public String getTransactionID() {\n\t return this.transactionID;\n\t}",
"public String getTransId() {\n\t\treturn transId;\n\t}",
"public String getTransID()\n\t{\n\t\tif(response.containsKey(\"RRNO\")) {\n\t\t\treturn response.get(\"RRNO\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"long getTxid();",
"int getReceiverid();",
"public Integer getSendId() {\r\n return sendId;\r\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public long getTransactionID() {\r\n return transactionID;\r\n }",
"public int getTransactionID() {\r\n return transactionID;\r\n }",
"public java.lang.String getTransactionId() {\r\n return transactionId;\r\n }",
"public java.lang.String getTramiteId() {\n return tramiteId;\n }",
"public int getSendid() {\n return sendid_;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public int getSendid() {\n return sendid_;\n }",
"public String getVehicleId() {\n return vehicleId;\n }",
"public String getVehicleId() {\n return vehicleId;\n }",
"public String getServerTransId() {\n\t\treturn serverTransId;\n\t}",
"public Long getTraderId() {\n\t\treturn traderId;\n\t}",
"public String getClientTransId() {\n\t\treturn clientTransId;\n\t}",
"public String getTransactionId()\n\t{\n\t\treturn transactionId;\n\t}",
"java.lang.String getSenderId();",
"public Integer getSendid() {\n return sendid;\n }",
"java.lang.String getProtocolId();",
"public interface NegotiationTransmission {\n\n /**\n * The method <code>getTransmissionId</code> returns the transmission id of the negotiation transmission\n * @return an UUID the transmission id of the negotiation transmission\n */\n UUID getTransmissionId();\n\n /**\n * The method <code>getTransactionId</code> returns the transaction id of the negotiation transmission\n * @return an UUID the transaction id of the negotiation transmission\n */\n UUID getTransactionId();\n\n /**\n * The method <code>getNegotiationId</code> returns the negotiation id of the negotiation transmission\n * @return an UUID the negotiation id of the negotiation\n */\n UUID getNegotiationId();\n\n /**\n * The method <code>getNegotiationTransactionType</code> returns the transaction type of the negotiation transmission\n * @return an NegotiationTransactionType of the transaction type\n */\n NegotiationTransactionType getNegotiationTransactionType();\n\n /**\n * The method <code>getPublicKeyActorSend</code> returns the public key the actor send of the negotiation transaction\n * @return an String the public key of the actor send\n */\n String getPublicKeyActorSend();\n\n /**\n * The method <code>getActorSendType</code> returns the actor send type of the negotiation transmission\n * @return an PlatformComponentType of the actor send type\n */\n PlatformComponentType getActorSendType();\n\n /**\n * The method <code>getPublicKeyActorReceive</code> returns the public key the actor receive of the negotiation transmission\n * @return an String the public key of the actor receive\n */\n String getPublicKeyActorReceive();\n\n /**\n * The method <code>getActorReceiveType</code> returns the actor receive type of the negotiation transmission\n * @return an PlatformComponentType of the actor receive type\n */\n PlatformComponentType getActorReceiveType();\n\n /**\n * The method <code>getTransmissionType</code> returns the type of the negotiation transmission\n * @return an NegotiationTransmissionType of the negotiation type\n */\n NegotiationTransmissionType getTransmissionType();\n\n /**\n * The method <code>getTransmissionState</code> returns the state of the negotiation transmission\n * @return an NegotiationTransmissionStateof the negotiation state\n */\n NegotiationTransmissionState getTransmissionState();\n\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an NegotiationType the negotiation type of negotiation\n */\n NegotiationType getNegotiationType();\n\n void setNegotiationType(NegotiationType negotiationType);\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an String the xml of negotiation\n */\n String getNegotiationXML();\n\n /**\n * The method <code>getTimestamp</code> returns the time stamp of the negotiation transmission\n * @return an Long the time stamp of the negotiation transmission\n */\n long getTimestamp();\n\n /**\n * The method <code>isPendingToRead</code> returns if this pending to read the negotiation transmission\n * @return an boolean if this pending to read\n */\n boolean isPendingToRead();\n\n /**\n * The method <code>confirmRead</code> confirm the read of the negotiation trasmission\n */\n void confirmRead();\n\n /**\n * The method <code>setNegotiationTransactionType</code> set the negotiation transaction type\n */\n void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);\n\n /**\n * The method <code>setTransmissionType</code> set the Transmission Type\n */\n void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);\n\n /**\n * The method <code>setTransmissionState</code> set the Transmission State\n */\n void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);\n\n public boolean isFlagRead();\n\n public void setFlagRead(boolean flagRead);\n\n public int getSentCount();\n\n public void setSentCount(int sentCount);\n\n public UUID getResponseToNotificationId();\n\n public void setResponseToNotificationId(UUID responseToNotificationId);\n\n public boolean isPendingFlag();\n\n public void setPendingFlag(boolean pendingFlag);\n\n public String toJson();\n\n}",
"public Integer getVehicleId() {\n return vehicleId;\n }",
"public int getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId() {\n return transactionId;\n }",
"public static String getTransId() {\n\n return MDC.get(MDC_KEY_REQUEST_ID);\n }",
"public Integer getReceiveid() {\n return receiveid;\n }",
"public String getTransmittedSerialNumber() ;",
"protected String getTransactionId() {\n return transactionId;\n }",
"int getTruckid();",
"int getTruckid();",
"int getTruckid();",
"int getTruckid();",
"int getTruckid();",
"int getTruckid();",
"List<Long> getTransmissionIds();",
"public Long getTransferToId() {\n return transferToId;\n }",
"public String getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public String getTransactionId() {\n\t\treturn transactionId;\n\t}",
"com.google.protobuf.ByteString\n getTxIdBytes();",
"public int getTransactionId() {\n\t\treturn transactionId;\n\t}",
"void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);",
"public Long getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public java.lang.String getTranslationId() {\n java.lang.Object ref = translationId_;\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 translationId_ = s;\n return s;\n }\n }",
"public String getTransactionId() {\n return this.transactionId;\n }",
"public java.lang.String getTranslationId() {\n java.lang.Object ref = translationId_;\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 translationId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTxIdBytes() {\n java.lang.Object ref = txId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getDueDateofTransmission(Long transmissionid);",
"@ApiModelProperty(value = \"The VisaNet transaction identifier. If you have previously sent an AFT, this field must include the VisaNet transaction identifier returned in the AFT response.<br><br><b>Note:</b> provide only if there is a corresponding AFT transaction response.\")\n public Long getTransactionIdentifier() {\n return transactionIdentifier;\n }",
"public long getTruckId() {\n return truckId_;\n }",
"public Long getTransactionId() {\n return this.transactionId;\n }",
"public java.lang.Long getSeqTairObjectId() {\n return ((Est)dto).getSeqTairObjectId();\n }",
"public long getTransactionId() {\n return _sTransaction.getTransactionId();\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getVehicleId() {\n return vehicleId;\n }",
"public long getTruckId() {\n return truckId_;\n }",
"public String getTxid() {\n return txid;\n }",
"public com.google.protobuf.ByteString\n getTxIdBytes() {\n java.lang.Object ref = txId_;\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 txId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getAcctgTransEntrySeqId();",
"UUID getTransactionId();",
"public String getReceivedSerialNumber() ;",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public Object getCorrelationId()\n {\n return getUnderlyingId(false);\n }",
"public int getReceiverid() {\n return receiverid_;\n }",
"public String getTransLogId() {\n return transLogId;\n }",
"@Override\n public String toTransmissionString() {\n return toHexString();\n }",
"public int getSenderId() {\n return senderId;\n }",
"public com.google.protobuf.ByteString\n getTranslationIdBytes() {\n java.lang.Object ref = translationId_;\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 translationId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }"
]
| [
"0.7521881",
"0.6898216",
"0.68036085",
"0.6533122",
"0.64288485",
"0.63891405",
"0.6320048",
"0.6314868",
"0.6202902",
"0.6153059",
"0.6152449",
"0.6113023",
"0.6033007",
"0.60176593",
"0.60130084",
"0.60113406",
"0.5972358",
"0.596768",
"0.59656173",
"0.5921125",
"0.5896201",
"0.5883388",
"0.58797973",
"0.5855756",
"0.5855756",
"0.5840752",
"0.5827137",
"0.58189815",
"0.5811874",
"0.5805869",
"0.58020175",
"0.58020175",
"0.57840914",
"0.5776852",
"0.5776852",
"0.5776621",
"0.57704467",
"0.5767435",
"0.57637984",
"0.57631654",
"0.5762257",
"0.5738619",
"0.5735529",
"0.57305163",
"0.57300997",
"0.5713936",
"0.5713936",
"0.57118034",
"0.5700515",
"0.5699073",
"0.5693401",
"0.56927675",
"0.56927675",
"0.56927675",
"0.56927675",
"0.56927675",
"0.56927675",
"0.5691285",
"0.56709874",
"0.5666309",
"0.5666309",
"0.56648237",
"0.5664625",
"0.5656095",
"0.5638342",
"0.5634378",
"0.56298906",
"0.5605363",
"0.56037587",
"0.5598021",
"0.5594457",
"0.55902797",
"0.55895966",
"0.55690765",
"0.55669534",
"0.55534154",
"0.55534154",
"0.55534154",
"0.55534154",
"0.55534154",
"0.55534154",
"0.5549602",
"0.55401987",
"0.5537567",
"0.55219924",
"0.55141234",
"0.5509501",
"0.5501021",
"0.55002993",
"0.55002993",
"0.55002993",
"0.55002993",
"0.55002993",
"0.55002993",
"0.5498565",
"0.5496076",
"0.5489786",
"0.5488838",
"0.54809767",
"0.5476824"
]
| 0.8169662 | 0 |
The method getTransactionId returns the transaction id of the negotiation transmission | UUID getTransactionId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId()\n\t{\n\t\treturn transactionId;\n\t}",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"protected String getTransactionId() {\n return transactionId;\n }",
"public int getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId() {\n return this.transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public String getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public java.lang.String getTransactionId() {\r\n return transactionId;\r\n }",
"public int getTransactionId() {\n\t\treturn transactionId;\n\t}",
"String getTransactionId();",
"String getTransactionId();",
"public Long getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public long getTransactionId();",
"public Long getTransactionId() {\n return this.transactionId;\n }",
"@java.lang.Override\n public java.lang.String getTransactionId() {\n java.lang.Object ref = transactionId_;\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 transactionId_ = s;\n return s;\n }\n }",
"public long getTransactionId() {\n return _sTransaction.getTransactionId();\n }",
"public java.lang.String getTransactionId() {\n java.lang.Object ref = transactionId_;\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 transactionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getTxId();",
"public Object getTransactionId() throws StandardException;",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getTransactionIdBytes() {\n java.lang.Object ref = transactionId_;\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 transactionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getTransactionId() {\n Via topVia = null;\n if ( ! this.getViaHeaders().isEmpty()) {\n topVia = (Via) this.getViaHeaders().first();\n }\n // Have specified a branch Identifier so we can use it to identify\n // the transaction. BranchId is not case sensitive.\n \t// Branch Id prefix is not case sensitive.\n if ( topVia.getBranch() != null &&\n topVia.getBranch().toUpperCase().startsWith\n (SIPConstants.BRANCH_MAGIC_COOKIE.toUpperCase())) {\n // Bis 09 compatible branch assignment algorithm.\n // implies that the branch id can be used as a transaction\n // identifier.\n return\n topVia.getBranch().toLowerCase();\n } else {\n // Old style client so construct the transaction identifier\n // from various fields of the request.\n StringBuffer retval = new StringBuffer();\n From from = (From) this.getFrom();\n To to = (To) this.getTo();\n String hpFrom = from.getUserAtHostPort();\n retval.append(hpFrom).append( \":\");\n if (from.hasTag()) retval.append(from.getTag()).append(\":\");\n String hpTo = to.getUserAtHostPort();\n retval.append(hpTo).append(\":\");\n String cid = this.callIdHeader.getCallId();\n retval.append(cid).append(\":\");\n retval.append(this.cSeqHeader.getSequenceNumber()).append( \":\").\n append(this.cSeqHeader.getMethod());\n if (topVia != null) {\n retval.append(\":\").append( topVia.getSentBy().encode());\n if (!topVia.getSentBy().hasPort()) {\n retval.append(\":\").append(5060);\n }\n }\n \t String hc =\n \t\tUtils.toHexString(retval.toString().toLowerCase().getBytes());\n \t if (hc.length() < 32) return hc;\n \t else return hc.substring(hc.length() - 32, hc.length() -1 );\n }\n // Convert to lower case -- bug fix as a result of a bug report\n // from Chris Mills of Nortel Networks.\n }",
"public com.google.protobuf.ByteString\n getTransactionIdBytes() {\n java.lang.Object ref = transactionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n transactionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getTransactionID();",
"long getTxid();",
"public String getTransactionID() {\n\t return this.transactionID;\n\t}",
"public int getTransactionID() {\r\n return transactionID;\r\n }",
"public String getTxid() {\n return txid;\n }",
"public long getTransactionID() {\r\n return transactionID;\r\n }",
"public long getTransactionid() {\n return transactionid;\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n }\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getId() {\n return txId;\n }",
"com.google.protobuf.ByteString\n getTxIdBytes();",
"UUID getTransmissionId();",
"@ApiModelProperty(value = \"The VisaNet transaction identifier. If you have previously sent an AFT, this field must include the VisaNet transaction identifier returned in the AFT response.<br><br><b>Note:</b> provide only if there is a corresponding AFT transaction response.\")\n public Long getTransactionIdentifier() {\n return transactionIdentifier;\n }",
"public String getTransaction() {\n return transaction;\n }",
"public void setTransactionId(int value) {\n this.transactionId = value;\n }",
"@java.lang.Override\n public java.lang.String getTxid() {\n java.lang.Object ref = txid_;\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 txid_ = s;\n return s;\n }\n }",
"Transaction getTransctionByTxId(String txId);",
"public long getTxnid() {\n return txnid_;\n }",
"public String getTransId() {\n\t\treturn transId;\n\t}",
"public long getTxnid() {\n return txnid_;\n }",
"@Transient\n\tpublic long getTransactionIdLong() {\n\t\treturn mTransactionIdLong;\n\t}",
"public java.lang.String getTxid() {\n java.lang.Object ref = txid_;\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 txid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setTransactionId( long txId )\n {\n this.transactionId = txId;\n }",
"int getTransactionNum();",
"public void setTransactionId(String transactionId) {\n this.transactionId = transactionId;\n }",
"public void setTransactionId(String transactionId) {\n this.transactionId = transactionId;\n }",
"public com.google.protobuf.ByteString\n getTxIdBytes() {\n java.lang.Object ref = txId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"NegotiationTransactionType getNegotiationTransactionType();",
"public com.google.protobuf.ByteString\n getTxIdBytes() {\n java.lang.Object ref = txId_;\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 txId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getClientTransId() {\n\t\treturn clientTransId;\n\t}",
"public void setTransactionId(String transactionId) {\n\t\tthis.transactionId = transactionId;\n\t}",
"public int getTxIndex() {\n return txIndex;\n }",
"public void setTransactionId(java.lang.String transactionId) {\r\n this.transactionId = transactionId;\r\n }",
"public String getTransmittedSerialNumber() ;",
"public void setTransactionId(Long transactionId) {\r\n this.transactionId = transactionId;\r\n }",
"public java.lang.String getTransactionKey() {\n return transactionKey;\n }",
"public String getTransID()\n\t{\n\t\tif(response.containsKey(\"RRNO\")) {\n\t\t\treturn response.get(\"RRNO\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Transient\n\tpublic String getRefundPaymentTransactionId()\t{\n\t\tif (mRefundPaymentTransactionId == null) {\n\t\t\tif (mRefundPaymentTransactionIdLong > 0) {\n\t\t\t\tmRefundPaymentTransactionId = Long.toString(mRefundPaymentTransactionIdLong);\n\t\t\t}\n\t\t}\n\t\treturn mRefundPaymentTransactionId;\n\t}",
"@Transient\n\tpublic String getParentTransactionId()\t{\n\t\tif (mParentTransactionIdLong > 0) \n\t\t\treturn Long.toString(mParentTransactionIdLong);\n\t\telse\n\t\t\treturn null;\n\t}",
"public java.lang.String getMerchantTransNo () {\r\n\t\treturn merchantTransNo;\r\n\t}",
"public Transaction getTransaction() {\n return transaction;\n }",
"public Transaction getTransaction() {\n return this.transaction;\n }",
"UUID getNegotiationId();",
"protected void setTransactionId(String transactionId) {\n this.transactionId = transactionId;\n }",
"TxnRequestProto.TxnRequest getTxnrequest();",
"public java.lang.String getTransactionReference() {\n return transactionReference;\n }",
"public com.google.protobuf.ByteString\n getTxidBytes() {\n java.lang.Object ref = txid_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getTxidBytes() {\n java.lang.Object ref = txid_;\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 txid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Integer getIdTransport() {\r\n return idTransport;\r\n }",
"public TransactionType getTransactionType()\n {\n return transactionType;\n }",
"public int getTransactionReferenceNumber() {\n\t\treturn transactionReferenceNumber;\n\t}",
"NegotiationTransmissionState getTransmissionState();",
"public Transaction getTransaction()\n {\n return transaction;\n }",
"public String getTranscode() {\n\t\treturn transcode;\n\t}",
"public static String getTransId() {\n\n return MDC.get(MDC_KEY_REQUEST_ID);\n }",
"public String getOriginalSaleTransactionId() {\n String[] array = this.getOriginalSaleTransactionIdArray();\n if (array == null || array.length == 0) {\n return null;\n } else {\n return array[0];\n }\n }",
"public java.lang.Long getTransNo () {\r\n\t\treturn transNo;\r\n\t}",
"private synchronized int getNewTransactionId() throws IOException {\n File file = new File(TA_ID_FILE_NAME);\n int transactionId = 0;\n\n if (file.exists()) {\n FileReader freader = new FileReader(file);\n BufferedReader breader = new BufferedReader(freader);\n\n String stringtaid = breader.readLine();\n transactionId = Integer.parseInt(stringtaid);\n\n breader.close();\n } else {\n file.createNewFile();\n }\n\n FileWriter writer = new FileWriter(TA_ID_FILE_NAME);\n writer.write(Integer.toString(transactionId + 1));\n writer.close();\n\n return transactionId;\n }",
"public Long getTransferId() {\n return transferId;\n }",
"public String getTransactionState();",
"public int getTransactorAccountNumber() {\r\n return transactorAccountNumber;\r\n }",
"public static Integer getTransactionNumber() {\n\t\tRandom r = new Random(System.currentTimeMillis());\n\t\treturn r.nextInt(100000) * 00001;\n\n\t}",
"@Override\r\n\tpublic long txNumber() {\r\n\t\treturn -1; // dummy value\r\n\t}",
"public Long getTransferId() {\n return transferId;\n }",
"Transaction getTransaction() { \r\n return tx;\r\n }",
"public int getX() {\n return (int) this.tx;\n }",
"public String getServerTransId() {\n\t\treturn serverTransId;\n\t}",
"public String getTransLogId() {\n return transLogId;\n }",
"public Builder setTransactionId(\n java.lang.String value) {\n if (value == null) { throw new NullPointerException(); }\n transactionId_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"java.lang.String getTranCode();",
"public Transaction getTransaction() {\n\t\treturn null;\n\t}",
"public TransactionInfo getTransactionInfo(String transactionId){\n\t\tTransactionInfo trInfo = new TransactionInfo();\n\t\tfor (ExtendedBlock block: node.blockchain.getBlockchain()) {\n\t\t\tfor(StateTransaction tr: block.internBlock.transactions){\n\t\t\t\ttrInfo.transactionId = tr.getTransctionId();\n\t\t\t\ttrInfo.nonce = tr.getNonce();\n\t\t\t\ttrInfo.signature = tr.getSignature();\n\t\t\t\t\n\t\t\t\tif (tr instanceof StateDataTransaction) {\n\t\t\t\t\ttrInfo.fromAddress = ((StateDataTransaction)tr).GetAddressString();\n\t\t\t\t\ttrInfo.newValue = ((StateDataTransaction)tr).newValue;\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if (tr instanceof StateTransferTransaction){\n\t\t\t\t\ttrInfo.fromAddress = CryptoUtil.getStringFromKey(((StateTransferTransaction)tr).fromAddress);\n\t\t\t\t\ttrInfo.toAddress = CryptoUtil.getStringFromKey(((StateTransferTransaction)tr).toAddress);\n\t\t\t\t\ttrInfo.amount = ((StateTransferTransaction)tr).amount;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// error unknown transaction in the chain\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\treturn trInfo;\n\t}",
"public Long getTraderId() {\n\t\treturn traderId;\n\t}"
]
| [
"0.80248404",
"0.80248404",
"0.80174494",
"0.799945",
"0.799945",
"0.7994907",
"0.7993532",
"0.799036",
"0.7960907",
"0.7960907",
"0.7959991",
"0.7959991",
"0.7945301",
"0.7928705",
"0.7852954",
"0.7852954",
"0.78195643",
"0.7812266",
"0.7789833",
"0.77790725",
"0.77204025",
"0.76415735",
"0.7340083",
"0.7279866",
"0.7212473",
"0.71490145",
"0.7113759",
"0.7047179",
"0.7038273",
"0.69925016",
"0.69700426",
"0.69075793",
"0.69073164",
"0.687701",
"0.67644316",
"0.6760808",
"0.66320986",
"0.65941995",
"0.6555258",
"0.65470856",
"0.6544951",
"0.6543219",
"0.65110725",
"0.6504169",
"0.6476245",
"0.6475226",
"0.6451161",
"0.6443213",
"0.6442097",
"0.6426925",
"0.6341161",
"0.6329629",
"0.6329629",
"0.62925535",
"0.6260815",
"0.62260455",
"0.62185264",
"0.6216919",
"0.6167046",
"0.61419773",
"0.6138588",
"0.613239",
"0.61070746",
"0.60542417",
"0.6040718",
"0.60281473",
"0.602507",
"0.5990903",
"0.5970174",
"0.59681946",
"0.59200037",
"0.5915108",
"0.5914213",
"0.59103346",
"0.59069604",
"0.589824",
"0.588931",
"0.58767897",
"0.58749497",
"0.58168757",
"0.581377",
"0.5791099",
"0.5779012",
"0.5767361",
"0.5765104",
"0.57589245",
"0.574866",
"0.5743097",
"0.573404",
"0.5727274",
"0.57204294",
"0.5707478",
"0.5707135",
"0.5703726",
"0.56755674",
"0.56625706",
"0.5650618",
"0.5638844",
"0.5637844",
"0.56257397"
]
| 0.80262846 | 0 |
The method getNegotiationId returns the negotiation id of the negotiation transmission | UUID getNegotiationId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"NegotiationType getNegotiationType();",
"NegotiationTransactionType getNegotiationTransactionType();",
"java.lang.String getProtocolId();",
"public String getProtocolId();",
"public final String getNetId( )\r\n {\r\n return netId;\r\n }",
"String getNegotiationXML();",
"java.lang.String getRecognizerId();",
"NegotiationTransmissionType getTransmissionType();",
"com.google.protobuf.ByteString getRecognizerIdBytes();",
"public BigInteger getNetworkId() {\n return networkId;\n }",
"java.lang.String getRecognitionId();",
"public java.lang.Integer getCarrierCodeNetworkIdType() {\r\n return carrierCodeNetworkIdType;\r\n }",
"void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);",
"public java.lang.String getRELATION_ID() {\r\n return RELATION_ID;\r\n }",
"public String getNatGatewayId() {\n return this.NatGatewayId;\n }",
"public String getNatGatewayId() {\n return this.NatGatewayId;\n }",
"void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);",
"public Integer getnId() {\n return nId;\n }",
"@Override\n\tpublic Long getNetId() {\n\t\treturn null;\n\t}",
"public java.lang.String getRecognitionId() {\n java.lang.Object ref = recognitionId_;\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 recognitionId_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getRecognitionId() {\n java.lang.Object ref = recognitionId_;\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 recognitionId_ = s;\n }\n return s;\n }\n }",
"public String getNetworkId() {\n return this.networkId;\n }",
"public abstract String getDialogId(boolean isServerTransaction);",
"public Long getNetworkId() {\n return networkId;\n }",
"int getPacketId();",
"com.google.protobuf.ByteString\n getRecognitionIdBytes();",
"public String getConversationId(){\r\n\t\treturn conversationId;\r\n\t}",
"public String getId() {\n switch (this.getType()) {\n case BGP:\n /*return this.bgpConfig.getNeighbors().get(\n this.bgpConfig.getNeighbors().firstKey()).getLocalAs().toString();*/\n case OSPF:\n return this.vrf.getName();\n case STATIC:\n return this.staticConfig.getNetwork().getStartIp().toString();\n }\n return this.vrf.getName();\n }",
"String getInvitationId();",
"public com.google.protobuf.ByteString\n getRecognitionIdBytes() {\n java.lang.Object ref = recognitionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n recognitionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public interface NegotiationTransmission {\n\n /**\n * The method <code>getTransmissionId</code> returns the transmission id of the negotiation transmission\n * @return an UUID the transmission id of the negotiation transmission\n */\n UUID getTransmissionId();\n\n /**\n * The method <code>getTransactionId</code> returns the transaction id of the negotiation transmission\n * @return an UUID the transaction id of the negotiation transmission\n */\n UUID getTransactionId();\n\n /**\n * The method <code>getNegotiationId</code> returns the negotiation id of the negotiation transmission\n * @return an UUID the negotiation id of the negotiation\n */\n UUID getNegotiationId();\n\n /**\n * The method <code>getNegotiationTransactionType</code> returns the transaction type of the negotiation transmission\n * @return an NegotiationTransactionType of the transaction type\n */\n NegotiationTransactionType getNegotiationTransactionType();\n\n /**\n * The method <code>getPublicKeyActorSend</code> returns the public key the actor send of the negotiation transaction\n * @return an String the public key of the actor send\n */\n String getPublicKeyActorSend();\n\n /**\n * The method <code>getActorSendType</code> returns the actor send type of the negotiation transmission\n * @return an PlatformComponentType of the actor send type\n */\n PlatformComponentType getActorSendType();\n\n /**\n * The method <code>getPublicKeyActorReceive</code> returns the public key the actor receive of the negotiation transmission\n * @return an String the public key of the actor receive\n */\n String getPublicKeyActorReceive();\n\n /**\n * The method <code>getActorReceiveType</code> returns the actor receive type of the negotiation transmission\n * @return an PlatformComponentType of the actor receive type\n */\n PlatformComponentType getActorReceiveType();\n\n /**\n * The method <code>getTransmissionType</code> returns the type of the negotiation transmission\n * @return an NegotiationTransmissionType of the negotiation type\n */\n NegotiationTransmissionType getTransmissionType();\n\n /**\n * The method <code>getTransmissionState</code> returns the state of the negotiation transmission\n * @return an NegotiationTransmissionStateof the negotiation state\n */\n NegotiationTransmissionState getTransmissionState();\n\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an NegotiationType the negotiation type of negotiation\n */\n NegotiationType getNegotiationType();\n\n void setNegotiationType(NegotiationType negotiationType);\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an String the xml of negotiation\n */\n String getNegotiationXML();\n\n /**\n * The method <code>getTimestamp</code> returns the time stamp of the negotiation transmission\n * @return an Long the time stamp of the negotiation transmission\n */\n long getTimestamp();\n\n /**\n * The method <code>isPendingToRead</code> returns if this pending to read the negotiation transmission\n * @return an boolean if this pending to read\n */\n boolean isPendingToRead();\n\n /**\n * The method <code>confirmRead</code> confirm the read of the negotiation trasmission\n */\n void confirmRead();\n\n /**\n * The method <code>setNegotiationTransactionType</code> set the negotiation transaction type\n */\n void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);\n\n /**\n * The method <code>setTransmissionType</code> set the Transmission Type\n */\n void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);\n\n /**\n * The method <code>setTransmissionState</code> set the Transmission State\n */\n void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);\n\n public boolean isFlagRead();\n\n public void setFlagRead(boolean flagRead);\n\n public int getSentCount();\n\n public void setSentCount(int sentCount);\n\n public UUID getResponseToNotificationId();\n\n public void setResponseToNotificationId(UUID responseToNotificationId);\n\n public boolean isPendingFlag();\n\n public void setPendingFlag(boolean pendingFlag);\n\n public String toJson();\n\n}",
"public Integer getRentId() {\n return rentId;\n }",
"public com.google.protobuf.ByteString\n getRecognitionIdBytes() {\n java.lang.Object ref = recognitionId_;\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 recognitionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private Long getConfigId(ParentEntityNode getRelationId) {\n\t\treturn getRelationId.getLosConfigDetails().getConfigId();\n\t}",
"UUID getTransmissionId();",
"public Integer getPartnerContractId() {\r\n return partnerContractId;\r\n }",
"@Override\r\n\tpublic String getPacketID() {\n\t\treturn packet_id;\r\n\t}",
"NegotiationTransmissionState getTransmissionState();",
"public Integer getNationalId() {\n return nationalId;\n }",
"public String getGatewayId() {\n return this.gatewayId;\n }",
"public Object getPropagationId()\n {\n return propagationId;\n }",
"@Override\n\tpublic void receivedNegotiation(int arg0, int arg1) {\n\t\t\n\t}",
"public java.lang.String getNationalId() {\r\n return nationalId;\r\n }",
"void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);",
"public int getnDetectionResultId() {\r\n return nDetectionResultId;\r\n }",
"public Integer getLessionid() {\n return lessionid;\n }",
"int getReceiverid();",
"public String getServerTransId() {\n\t\treturn serverTransId;\n\t}",
"private Long getRelationTypeId(EntityRelationshipType changingRelation) {\n\t\treturn changingRelation.getEntityRelationConfigDetail().getConfigId();\n\t}",
"public Integer getgOtherId() {\n return gOtherId;\n }",
"public String partnerNodeId() {\n return this.partnerNodeId;\n }",
"public String getGatewayIdentifier()\n {\n String identifier = null;\n\n switch (this.gatewayProtocol)\n {\n case TCP:\n {\n identifier = \"tcp://\" + this.gatewayIPAddress.getHostAddress()\n + \":\" + this.gatewayPort;\n break;\n }\n case RTU:\n {\n identifier = \"rtu://\" + this.serialParameters.getPortName();\n break;\n }\n case RTU_TCP:\n {\n identifier = \"rtu_tcp://\"\n + this.gatewayIPAddress.getHostAddress() + \":\"\n + this.gatewayPort;\n break;\n }\n case RTU_UDP:\n {\n identifier = \"rtu_udp://\"\n + this.gatewayIPAddress.getHostAddress() + \":\"\n + this.gatewayPort;\n break;\n }\n default:\n {\n // null\n identifier = null;\n break;\n }\n }\n\n return identifier;\n }",
"public Long getPromoterId() {\n return promoterId;\n }",
"@Override\n\tpublic String getConversationId() {\n\t\treturn null;\n\t}",
"public Object getCorrelationId()\n {\n return getUnderlyingId(false);\n }",
"public Integer getRoutingId() {\n return routingId;\n }",
"public int getReceiverid() {\n return receiverid_;\n }",
"public String getReceiverId() {\n return receiverId;\n }",
"public java.lang.String getReceiverId() {\r\n return receiverId;\r\n }",
"public String getDealerId() {\n\t\treturn dealerId;\n\t}",
"public byte getResponseId() {\n return responseId;\n }",
"public String getNatGatewaySnatId() {\n return this.NatGatewaySnatId;\n }",
"java.lang.String getChannelId();",
"public int getReceiverid() {\n return receiverid_;\n }",
"public PacketId getPacketId() {\n return packetId;\n }",
"public UniversalId getViewingPeerId() {\n return this.viewingPeerId;\n }",
"public int getId()\n {\n return m_nId;\n }",
"public Integer getReceiveid() {\n return receiveid;\n }",
"public int getId() {\n\t\treturn toppingId;\n\t}",
"public String getResponseId() {\n return responseId;\n }",
"public Integer getIdTransport() {\r\n return idTransport;\r\n }",
"public String getGardenId() {\n return gardenId;\n }",
"public String getSendNotifictionId() {\n return sendNotifictionId;\n }",
"public VlanId vlanId() {\n return vlanId;\n }",
"public long getDealerId() {\n\t\treturn dealerId;\n\t}",
"public int getPassengerId() {\n return passengerId;\n }",
"@Transient\n @Override\n public Integer getId()\n {\n return this.conservDescriptionId;\n }",
"int getSendid();",
"public Object getMessageId()\n {\n return getUnderlyingId(true);\n }",
"java.lang.String getOperationId();",
"public Integer getChallengeId() {\n return challengeId;\n }",
"@Override\n public java.lang.String getDealerId() {\n return _entityCustomer.getDealerId();\n }",
"long getTruckId();",
"@java.lang.Override\n public int getReceivingMajorFragmentId() {\n return receivingMajorFragmentId_;\n }",
"public int getIdentificationNumber() {\n return identificationNumber;\n }",
"@java.lang.Override\n public int getReceivingMajorFragmentId() {\n return receivingMajorFragmentId_;\n }",
"@NonNull\n public String getIdentifier() {\n return mProto.id;\n }",
"int getSourceSnId();",
"public int getOtherId() {\n return otherId_;\n }",
"public final Long getId_entreprise() {\n return this.id_entreprise;\n }",
"long getProposalId();",
"public String getOriginalServerId() {\n return originalServerId;\n }",
"public int getWinnerId() {\n\t\treturn winnerId;\n\t}",
"public String getIdentificationNumber() {\n return this.identificationNumber;\n }",
"OperationIdT getOperationId();",
"public String getVnfId(GrpcOperation operation) {\n var genericVnf =\n (GenericVnf) operation.getRequiredProperty(OperationProperties.AAI_RESOURCE_VNF, \"Target generic vnf\");\n return genericVnf.getVnfId();\n }",
"com.google.protobuf.ByteString\n getProtocolIdBytes();",
"public long getConversationID() {\n return conversationID;\n }",
"public String getClueId() {\n return clueId;\n }",
"public String getId() {\n return _node_id;\n }"
]
| [
"0.65899336",
"0.6324873",
"0.6197084",
"0.59621876",
"0.58900595",
"0.5883157",
"0.58128715",
"0.5756192",
"0.56856066",
"0.563515",
"0.56148106",
"0.55858225",
"0.5583198",
"0.5556241",
"0.5535368",
"0.5535368",
"0.549747",
"0.54914397",
"0.5490098",
"0.5482308",
"0.54517543",
"0.5447051",
"0.5437573",
"0.54136497",
"0.53977025",
"0.5368945",
"0.53650695",
"0.5345658",
"0.53242683",
"0.5303084",
"0.5277877",
"0.52762014",
"0.5253402",
"0.5250326",
"0.52434397",
"0.5209425",
"0.5199796",
"0.51968837",
"0.51919156",
"0.51826674",
"0.5173187",
"0.517016",
"0.5170018",
"0.51679385",
"0.5154394",
"0.51402503",
"0.51191825",
"0.51154643",
"0.5106673",
"0.5100822",
"0.5099262",
"0.5094939",
"0.5093438",
"0.50879",
"0.5080754",
"0.50729966",
"0.5071995",
"0.5055886",
"0.50552243",
"0.5055046",
"0.5054945",
"0.50532824",
"0.5039704",
"0.503806",
"0.50283754",
"0.502065",
"0.50082946",
"0.50035155",
"0.49993405",
"0.49903658",
"0.49691585",
"0.4965841",
"0.49657187",
"0.49595717",
"0.49564514",
"0.49540985",
"0.49536863",
"0.49501327",
"0.49447677",
"0.49431366",
"0.49362826",
"0.49307933",
"0.49264476",
"0.4925286",
"0.49197426",
"0.49189427",
"0.490772",
"0.49066508",
"0.48937118",
"0.4887561",
"0.48838797",
"0.48759338",
"0.48755255",
"0.4875376",
"0.48681366",
"0.48636305",
"0.48608074",
"0.48605123",
"0.48587024",
"0.48553997"
]
| 0.851634 | 0 |
The method getNegotiationTransactionType returns the transaction type of the negotiation transmission | NegotiationTransactionType getNegotiationTransactionType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);",
"NegotiationTransmissionType getTransmissionType();",
"NegotiationType getNegotiationType();",
"void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);",
"public String getProposedTransactionType() {\n return proposedTransactionType;\n }",
"public TransactionType getTransactionType()\n {\n return transactionType;\n }",
"NegotiationTransmissionState getTransmissionState();",
"String getNegotiationXML();",
"TransmissionProtocol.Type getType();",
"public java.math.BigInteger getReceivingType() {\n return receivingType;\n }",
"UUID getNegotiationId();",
"public Integer getSettlementtype() {\n return settlementtype;\n }",
"public java.lang.String getSettlementType() {\n return settlementType;\n }",
"public String getTransmitMode()\r\n\t{\r\n\t\treturn transmitMode;\r\n\t}",
"void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);",
"public String getRewardPointsTransactionTransactionType() {\n return rewardPointsTransactionTransactionType;\n }",
"public String getNetworkType() {\n // Whether EDGE, UMTS, etc...\n return SystemProperties.get(TelephonyProperties.PROPERTY_DATA_NETWORK_TYPE, \"Unknown\");\n }",
"TransactionType createTransactionType();",
"public final SettlementType getType() {\n return type;\n }",
"@Override\n public String getCondimentType() {\n return TYPE;\n }",
"public Integer getPaymentType() {\n\t\treturn paymentType;\n\t}",
"public int getOperationType() {\r\n return operationType;\r\n }",
"public String getOperationType() {\r\n return operationType;\r\n }",
"public String getNetworkType() {\n return this.mNetInfo.getTypeName();\n }",
"public ConnectionType getConnectionType(){\n\t return connectionType; \n }",
"public String getOperationType() {\n\t\treturn this.operationType;\n\t}",
"public TransmissionProtocol.Type getType() {\n @SuppressWarnings(\"deprecation\")\n TransmissionProtocol.Type result = TransmissionProtocol.Type.valueOf(type_);\n return result == null ? TransmissionProtocol.Type.UNRECOGNIZED : result;\n }",
"public String getRepayType() {\n return repayType;\n }",
"public String getPAYMENT_TYPE() {\r\n return PAYMENT_TYPE;\r\n }",
"@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }",
"public PaymentGatewayType getType() {\n return this.paymentGatewayType;\n }",
"public interface NegotiationTransmission {\n\n /**\n * The method <code>getTransmissionId</code> returns the transmission id of the negotiation transmission\n * @return an UUID the transmission id of the negotiation transmission\n */\n UUID getTransmissionId();\n\n /**\n * The method <code>getTransactionId</code> returns the transaction id of the negotiation transmission\n * @return an UUID the transaction id of the negotiation transmission\n */\n UUID getTransactionId();\n\n /**\n * The method <code>getNegotiationId</code> returns the negotiation id of the negotiation transmission\n * @return an UUID the negotiation id of the negotiation\n */\n UUID getNegotiationId();\n\n /**\n * The method <code>getNegotiationTransactionType</code> returns the transaction type of the negotiation transmission\n * @return an NegotiationTransactionType of the transaction type\n */\n NegotiationTransactionType getNegotiationTransactionType();\n\n /**\n * The method <code>getPublicKeyActorSend</code> returns the public key the actor send of the negotiation transaction\n * @return an String the public key of the actor send\n */\n String getPublicKeyActorSend();\n\n /**\n * The method <code>getActorSendType</code> returns the actor send type of the negotiation transmission\n * @return an PlatformComponentType of the actor send type\n */\n PlatformComponentType getActorSendType();\n\n /**\n * The method <code>getPublicKeyActorReceive</code> returns the public key the actor receive of the negotiation transmission\n * @return an String the public key of the actor receive\n */\n String getPublicKeyActorReceive();\n\n /**\n * The method <code>getActorReceiveType</code> returns the actor receive type of the negotiation transmission\n * @return an PlatformComponentType of the actor receive type\n */\n PlatformComponentType getActorReceiveType();\n\n /**\n * The method <code>getTransmissionType</code> returns the type of the negotiation transmission\n * @return an NegotiationTransmissionType of the negotiation type\n */\n NegotiationTransmissionType getTransmissionType();\n\n /**\n * The method <code>getTransmissionState</code> returns the state of the negotiation transmission\n * @return an NegotiationTransmissionStateof the negotiation state\n */\n NegotiationTransmissionState getTransmissionState();\n\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an NegotiationType the negotiation type of negotiation\n */\n NegotiationType getNegotiationType();\n\n void setNegotiationType(NegotiationType negotiationType);\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an String the xml of negotiation\n */\n String getNegotiationXML();\n\n /**\n * The method <code>getTimestamp</code> returns the time stamp of the negotiation transmission\n * @return an Long the time stamp of the negotiation transmission\n */\n long getTimestamp();\n\n /**\n * The method <code>isPendingToRead</code> returns if this pending to read the negotiation transmission\n * @return an boolean if this pending to read\n */\n boolean isPendingToRead();\n\n /**\n * The method <code>confirmRead</code> confirm the read of the negotiation trasmission\n */\n void confirmRead();\n\n /**\n * The method <code>setNegotiationTransactionType</code> set the negotiation transaction type\n */\n void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);\n\n /**\n * The method <code>setTransmissionType</code> set the Transmission Type\n */\n void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);\n\n /**\n * The method <code>setTransmissionState</code> set the Transmission State\n */\n void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);\n\n public boolean isFlagRead();\n\n public void setFlagRead(boolean flagRead);\n\n public int getSentCount();\n\n public void setSentCount(int sentCount);\n\n public UUID getResponseToNotificationId();\n\n public void setResponseToNotificationId(UUID responseToNotificationId);\n\n public boolean isPendingFlag();\n\n public void setPendingFlag(boolean pendingFlag);\n\n public String toJson();\n\n}",
"public TransmissionProtocol.Type getType() {\n @SuppressWarnings(\"deprecation\")\n TransmissionProtocol.Type result = TransmissionProtocol.Type.valueOf(type_);\n return result == null ? TransmissionProtocol.Type.UNRECOGNIZED : result;\n }",
"@ApiModelProperty(example = \"PostAuthTransaction\", required = true, value = \"Object name of the secondary transaction request.\")\n\n public String getRequestType() {\n return requestType;\n }",
"@Override\n\tpublic EncodingType getEncodingType() {\n\t\treturn EncodingType.CorrelationWindowEncoder;\n\t}",
"public String getPaymentType() {\r\n return paymentType;\r\n }",
"private String getTypeOfTransaction(String transact) {\n\t\tif ( transact.indexOf(\"w\") != -1 ) {\n\t\t\treturn TRANSTYPE_WRITABLE;\n\t\t} \n\t\treturn TRANSTYPE_READABLE;\n\t}",
"public com.vodafone.global.er.decoupling.binding.request.TransactionType createTransactionType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.TransactionTypeImpl();\n }",
"public int getNeuronType() {\n if (inhNItem.isSelected()) {\n return LayoutPanel.INH;\n } else if (activeNItem.isSelected()) {\n return LayoutPanel.ACT;\n } else if (probedNItem.isSelected()) {\n return LayoutPanel.PRB;\n }\n return LayoutPanel.OTR;\n }",
"@Override\n\tpublic List<PendingTransaction> getAllTransactionsByType(String transactionType) {\n\t\treturn null;\n\t}",
"private String getTelephonyNetworkType() {\n assert NETWORK_TYPES[14].compareTo(\"EHRPD\") == 0;\n\n int networkType = telephonyManager.getNetworkType();\n if (networkType < NETWORK_TYPES.length) {\n return NETWORK_TYPES[telephonyManager.getNetworkType()];\n } else {\n return \"Unrecognized: \" + networkType;\n }\n }",
"public int getSyncType() {\n return syncType;\n }",
"public long getPaymentType() {\n return paymentType;\n }",
"public PaymentType getPaymentType() {\n\t\treturn paymentType;\n\t}",
"public String getPaymentAmountType() {\r\n return paymentAmountType;\r\n }",
"public String getrType() {\n return rType;\n }",
"@Override\n\tprotected ConnectionType getConnectionType() {\n\t\treturn ConnectionType.Network;\n\t}",
"public String getRewardPointsTransactionType() {\n return rewardPointsTransactionType;\n }",
"@Override\n\tpublic List<String> getAllTransactionType() {\n\t\treturn null;\n\t}",
"public PaymentType getPaymentType()\n {\n return PAYMENT_TYPE;\n }",
"public Integer getPayType() {\n\t\treturn payType;\n\t}",
"public boolean getAutoNegotiation() {\n return autoNegotiation;\n }",
"@Override\n public Transcoder getTranscoder() {\n return settings.getTranscoderType();\n }",
"public final int getConnectionType()\n\t{\n\t\treturn connType;\n\t}",
"public String getGraphType() {\r\n\t\treturn graphType;\r\n\t}",
"public String getRequestType() { return this.requestType; }",
"public void setTransactionType(int transactionChoice);",
"public java.lang.String getPaymenttype () {\r\n\t\treturn paymenttype;\r\n\t}",
"public String getTransaction() {\n return transaction;\n }",
"public java.lang.String getVoucherType() {\n return voucherType;\n }",
"public ContentNegotiationManager getContentNegotiationManager()\n/* */ {\n/* 638 */ return this.contentNegotiationManager;\n/* */ }",
"public Integer getMotType() {\n\t\treturn motType;\n\t}",
"NeuronType getType();",
"public static String getRequestType(){\n return requestType;\n }",
"public ZserioType getRequestType()\n {\n return requestType;\n }",
"public Boolean getSendType() {\n return sendType;\n }",
"public VerificationType verificationType() {\n return this.verificationType;\n }",
"public String getPayType() {\n return payType;\n }",
"public String getPayType() {\n return payType;\n }",
"@Override\n public byte getSubtype() {\n return SUBTYPE_MONETARY_SYSTEM_CURRENCY_TRANSFER;\n }",
"@ApiModelProperty(value = \"The VisaNet transaction identifier. If you have previously sent an AFT, this field must include the VisaNet transaction identifier returned in the AFT response.<br><br><b>Note:</b> provide only if there is a corresponding AFT transaction response.\")\n public Long getTransactionIdentifier() {\n return transactionIdentifier;\n }",
"public int getMinecartType() {\n return type;\n }",
"public java.lang.String getReceiveType () {\n\t\treturn receiveType;\n\t}",
"public java.lang.Integer getCarrierCodeNetworkIdType() {\r\n return carrierCodeNetworkIdType;\r\n }",
"public void set_transaction_mode(TransactionType mode){\n\t\ttransaction_type = mode;\n\t}",
"public String getPaytype() {\n return paytype;\n }",
"public String getType() {\n if (this.mInvitation != null) return TYPE_INVITATION;\n else if (this.mChatMessageFragment != null) return TYPE_CHAT_MESSAGE;\n else return null;\n }",
"public String\t\tgetOrderType();",
"public void queryBytransType(String transType) {\n\t\tTRANSACTION_TYPE = transType;\n\t}",
"public Transaction.DirectionType getDirection() {\n\t\treturn direction;\n\t}",
"String getTransactionStatus();",
"@ApiModelProperty(example = \"WLAN\", value = \"WLAN / LAN / ...\")\n public String getConnectionType() {\n return connectionType;\n }",
"public Integer getMessageType() {\n return messageType;\n }",
"public int getPacketType() {\n return packetType;\n }",
"public java.lang.String getRequestType() {\n return requestType;\n }",
"public String getTransactionState();",
"@Schema(required = true, description = \"Contract type (KIP-7, KIP-17, ERC-20, ERC-721)\")\n public String getType() {\n return type;\n }",
"public OrderType getOrderType() {\r\n\t\treturn orderType;\r\n\t}",
"@Override\n public byte getType() {\n return TYPE_PAYMENT;\n }",
"@java.lang.Override public entities.Torrent.Message.Type getType() {\n @SuppressWarnings(\"deprecation\")\n entities.Torrent.Message.Type result = entities.Torrent.Message.Type.valueOf(type_);\n return result == null ? entities.Torrent.Message.Type.UNRECOGNIZED : result;\n }",
"@java.lang.Override\n public entities.Torrent.Message.Type getType() {\n @SuppressWarnings(\"deprecation\")\n entities.Torrent.Message.Type result = entities.Torrent.Message.Type.valueOf(type_);\n return result == null ? entities.Torrent.Message.Type.UNRECOGNIZED : result;\n }",
"public Integer getBalanceType() {\n return balanceType;\n }",
"public Integer getPersonnelType() {\n return personnelType;\n }",
"OrderType getOrderType();",
"public OperationType getOperation() {\r\n return operation;\r\n }",
"public OperationType getOperation() {\r\n return operation;\r\n }",
"public String getType() {\n if(iType == null){\n ArrayList<Identification_to_quantitation> lLinkers = this.getQuantitationLinker();\n for (int j = 0; j < lLinkers.size(); j++) {\n if (lLinkers.get(j).getL_identificationid() == this.getIdentificationid()) {\n this.setType(lLinkers.get(j).getType());\n }\n }\n }\n return iType;\n }",
"public String getAuthenticationType() {\n return this.authenticationType;\n }",
"public TransactionTemplate getTransactionTemplate() {\n return _transactionTemplate;\n }",
"public String getTRS_TYPE() {\r\n return TRS_TYPE;\r\n }"
]
| [
"0.80420125",
"0.7877524",
"0.77795434",
"0.6944778",
"0.6869104",
"0.67857414",
"0.6288129",
"0.59603155",
"0.5762758",
"0.57048416",
"0.5672214",
"0.56592613",
"0.5644572",
"0.56318676",
"0.55823064",
"0.557986",
"0.55784214",
"0.5577962",
"0.5554928",
"0.5472854",
"0.54441917",
"0.5427196",
"0.539974",
"0.5361702",
"0.53551733",
"0.5354238",
"0.5332722",
"0.53302985",
"0.5319416",
"0.5315224",
"0.531227",
"0.5306042",
"0.5299144",
"0.5289335",
"0.5287231",
"0.52720845",
"0.5263969",
"0.52519614",
"0.5239475",
"0.5226215",
"0.5225372",
"0.5208664",
"0.5166308",
"0.51422894",
"0.5114682",
"0.51140916",
"0.51114154",
"0.5105713",
"0.51023483",
"0.50738597",
"0.5072089",
"0.50616866",
"0.5058969",
"0.50547326",
"0.50436807",
"0.50400853",
"0.50242114",
"0.50238055",
"0.50111675",
"0.50085086",
"0.50049806",
"0.4973494",
"0.4973223",
"0.49672726",
"0.4941581",
"0.49289793",
"0.4912087",
"0.49029967",
"0.49029967",
"0.48947638",
"0.4871667",
"0.4865817",
"0.48656642",
"0.48645085",
"0.48614833",
"0.48614118",
"0.48555893",
"0.48553008",
"0.48551714",
"0.48549545",
"0.48541903",
"0.48478732",
"0.48437777",
"0.48437586",
"0.48276013",
"0.48176995",
"0.48145193",
"0.48114017",
"0.48106322",
"0.48105952",
"0.48059174",
"0.47951296",
"0.47943857",
"0.4778842",
"0.47748214",
"0.47748214",
"0.4774741",
"0.47725046",
"0.47701725",
"0.47649524"
]
| 0.9203282 | 0 |
The method getPublicKeyActorSend returns the public key the actor send of the negotiation transaction | String getPublicKeyActorSend(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getPublicKeyActorReceive();",
"public PublicKey getPublicKey() {\n return publicKey;\n }",
"public PublicKey getPublicKey(){\n\t\treturn this.publickey;\n\t}",
"public PublicKey getPublicKey() {\r\n return publicKey;\r\n }",
"public PublicKey getPublicKey() {\n return pk;\n }",
"public BigInteger getPublicKey()\n {\n\treturn publicKey;\n }",
"public String getPublicKey() {\n return publicKey;\n }",
"java.lang.String getPublicKey();",
"OctetString getPublicKey();",
"public String getPublicKey();",
"private void sendPublicKey() {\n PublicKey publicKey = EncryptionUtils.getKeyPair(getApplicationContext()).getPublic();\n String encodedPublicKey = Base64.encodeToString(publicKey.getEncoded(),Base64.URL_SAFE);\n socket.emit(\"public_key\",encodedPublicKey);\n }",
"com.google.protobuf.ByteString getPublicKeyBytes();",
"String getPublicKey();",
"public PublicKey getPubKey(){\r\n\t\treturn this.myCert.getPublicKey();\r\n\t}",
"public String getPublicKeyIdentifier();",
"public Ed25519PublicKey derivePublicKey() {\r\n\t\tif(this.pubKey==null) {\r\n\t\t\tthis.pubKey = new Ed25519PublicKey(new EdDSAPublicKey(new EdDSAPublicKeySpec(this.key.getA(), this.key.getParams())));\r\n\t\t}\r\n\t\treturn this.pubKey;\r\n\t}",
"public String getAuthPublicKey() {\n return authPublicKey;\n }",
"public byte[] getPubKey() {\n return pub.getEncoded();\n }",
"String publicKey();",
"public String getScriptPubKey() {\n return scriptPubKey;\n }",
"public ECPoint getPubKeyPoint() {\n return pub.get();\n }",
"public Class<PUB> getPublicKeyClass() {\n return pubKeyType;\n }",
"byte[] encodePublicKey(PublicKey publicKey) throws IOException;",
"public CPubkeyInterface getPubKey() {\n return new SaplingPubKey(this.f12197e.mo42966a(), mo42979b(), false);\n }",
"public void process(PublicKey msg) throws IOException {\n usersConnected.get(msg.getSource()).setPublicKeyPair(msg.getMessage());\n bradcast(msg);\n }",
"public byte[] getPubkey() {\n return pubkey;\n }",
"@Nullable\n private String getCaptchaPublicKey() {\n return RegistrationToolsKt.getCaptchaPublicKey(mRegistrationResponse);\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-08-13 13:14:15.603 -0400\", hash_original_method = \"9CA51125BBD9928A127E75CF99CB1D14\", hash_generated_method = \"10D7CA0C3FC5B5A6A133BC7DAAF5C8C5\")\n \npublic PublicKey getPublicKey() {\n return subjectPublicKey;\n }",
"public final Player getSender() {\n return sender;\n }",
"com.google.protobuf.ByteString\n getSenderBytes();",
"com.google.protobuf.ByteString\n getSenderBytes();",
"com.google.protobuf.ByteString\n getSenderBytes();",
"com.google.protobuf.ByteString\n getSenderBytes();",
"com.google.protobuf.ByteString\n getSenderBytes();",
"com.google.protobuf.ByteString\n getSenderBytes();",
"com.google.protobuf.ByteString\n getSenderBytes();",
"java.lang.String getPubkey();",
"public void setPublicKey(PublicKey publicKey) {\n this.publicKey = publicKey;\n }",
"java.lang.String getExtendedPublicKey();",
"public T participationPublicKey(ParticipationPublicKey pk) {\n this.votePK = pk;\n return (T) this;\n }",
"public void setPublicKey(String publicKey) {\n this.publicKey = publicKey;\n }",
"java.lang.String getPublicEciesKey();",
"public T participationPublicKey(byte[] pk) {\n this.votePK = new ParticipationPublicKey(pk);\n return (T) this;\n }",
"public PublicKey makePublicKey() {\n return new PublicKey(encryptingBigInt, primesMultiplied);\n }",
"public PublicKey getPublicKey() {\n File keyFile = new File(baseDirectory, pubKeyFileName);\n if (!keyFile.exists()) {\n if (!generateKeys()) {\n return null;\n }\n }\n if (!keyFile.exists()) {\n return null;\n }\n try {\n byte[] bytes = FileUtils.readFileToByteArray(keyFile);\n X509EncodedKeySpec ks = new X509EncodedKeySpec(bytes);\n KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n PublicKey pub = kf.generatePublic(ks);\n return pub;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"public PGPPublicKey getEncryptionKey() {\n\t\tIterator iter = base.getPublicKeys();\n\t\tPGPPublicKey encKey = null;\n\t\twhile (iter.hasNext()) {\n\t\t\tPGPPublicKey k = (PGPPublicKey) iter.next();\n\t\t\tif (k.isEncryptionKey())\n\t\t\t\tencKey = k;\n\t\t}\n\n\t\treturn encKey;\n\t}",
"public Processor getSender() {\n return this.senderProcess;\n }",
"public static KeyPair generatePublicKeyPair(){\r\n\t\ttry {\r\n\t\t\tKeyPairGenerator keyGen = KeyPairGenerator.getInstance(publicKeyAlgorithm);\r\n\t\t\tkeyGen.initialize(PUBLIC_KEY_LENGTH, new SecureRandom());\r\n\t\t\treturn keyGen.generateKeyPair();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// should not happen\r\n\t\t\tthrow new ModelException(\"Internal key generation error - \"+publicKeyAlgorithm+\"[\"+PUBLIC_KEY_LENGTH+\"]\",e);\r\n\t\t}\r\n\t}",
"public interface PublicKey {\n\n /**\n * Returns id of the public key.\n *\n * @return id of key\n */\n String getId();\n\n /**\n * Returns ids from gpg sub keys.\n *\n * @return sub key ids\n * @since 2.19.0\n */\n default Set<String> getSubkeys() {\n return Collections.emptySet();\n }\n\n /**\n * Returns the username of the owner or an empty optional.\n *\n * @return owner or empty optional\n */\n Optional<String> getOwner();\n\n /**\n * Returns raw of the public key.\n *\n * @return raw of key\n */\n String getRaw();\n\n /**\n * Returns the contacts of the publickey.\n *\n * @return owner or empty optional\n */\n Set<Person> getContacts();\n\n /**\n * Verifies that the signature is valid for the given data.\n *\n * @param stream stream of data to verify\n * @param signature signature\n * @return {@code true} if the signature is valid for the given data\n */\n boolean verify(InputStream stream, byte[] signature);\n\n /**\n * Verifies that the signature is valid for the given data.\n *\n * @param data data to verify\n * @param signature signature\n * @return {@code true} if the signature is valid for the given data\n */\n default boolean verify(byte[] data, byte[] signature) {\n return verify(new ByteArrayInputStream(data), signature);\n }\n}",
"PlatformComponentType getActorSendType();",
"public java.lang.String getExtendedPublicKey() {\n java.lang.Object ref = extendedPublicKey_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n extendedPublicKey_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"protected PublicKey getCAPublicKey(SOAPMessageContext smc) throws Exception {\n Certificate certCA = readCertificateFile(\"/home/dziergwa/Desktop/SD/T_27-project/transporter-ws/src/main/resources/UpaCA.cer\");\n return certCA.getPublicKey();\n }",
"public java.lang.String getExtendedPublicKey() {\n java.lang.Object ref = extendedPublicKey_;\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 extendedPublicKey_ = s;\n }\n return s;\n }\n }",
"java.lang.String getClientKey();",
"public boolean isMine(String publicKey) {\r\n return (publicKey.equals(recipient));\r\n }",
"public MessageKey getKey() {\n\treturn key;\n }",
"protected String getKey() {\n\t\treturn makeKey(host, port, transport);\n\t}",
"java.lang.String getSender();",
"java.lang.String getSender();",
"java.lang.String getSender();",
"java.lang.String getSender();",
"java.lang.String getSender();",
"java.lang.String getSender();",
"private PublicKey getPublicKey(byte[] publicKeyBytes) {\n try {\n KeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n X509EncodedKeySpec keySpec = new X509EncodedKeySpec(publicKeyBytes);\n return keyFactory.generatePublic(keySpec);\n } catch (NoSuchAlgorithmException | InvalidKeySpecException e) {\n Log.e(TAG, \"getPublicKey: \" + e.getMessage());\n }\n return null;\n }",
"@Ignore\n @Test\n public void startSender() throws IOException, InterruptedException {\n\n final int maxPeers = 10;\n PeerDHT[] peers = createPeers(PORT, maxPeers, \"sender\");\n for (PeerDHT peer : peers) {\n peer.peer().bootstrap().inetAddress(InetAddress.getByName(ADDR)).ports(PORT).start().awaitUninterruptibly();\n peer.peer().objectDataReply(new ObjectDataReply() {\n @Override\n public Object reply(final PeerAddress sender, final Object request) throws Exception {\n System.out.println(\"wrong!!!!\");\n return \"wrong!!!!\";\n }\n });\n }\n Number160 keyForID = Number160.createHash(\"key\");\n Msg message = new Msg();\n\n System.out.println(String.format(\"Sending message '%s' to key '%s' converted to '%s'\", message.getType(),\n \"key\", keyForID.toString()));\n FutureSend futureDHT = peers[0].send(keyForID).object(message).requestP2PConfiguration(REQ).start();\n futureDHT.awaitUninterruptibly();\n System.out.println(\"got: \" + futureDHT.object());\n Thread.sleep(Long.MAX_VALUE);\n }",
"@Override\n\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\treturn PublicKeyDBService.getInstance().storePublicKey(username, publicKeyClient);\n\t\t\t}",
"public com.lvl6.proto.UserProto.MinimumUserProto getSender() {\n return sender_;\n }",
"public com.lvl6.proto.UserProto.MinimumUserProto getSender() {\n return sender_;\n }",
"public com.lvl6.proto.UserProto.MinimumUserProto getSender() {\n return sender_;\n }",
"public com.lvl6.proto.UserProto.MinimumUserProto getSender() {\n return sender_;\n }",
"private static byte[] receiveAlicePublicKeyAndSendBobDigest(byte[] encodedPublicKeyAlice)\r\n\t\t\tthrows NoSuchAlgorithmException, InvalidKeyException, IllegalStateException, InvalidKeySpecException,\r\n\t\t\tInvalidAlgorithmParameterException {\r\n\r\n\t\tfinal byte[] encodedPrivateKey = keyPairBob.getPrivate().getEncoded();\r\n\t\tfinal byte[] sharedSecret = computeSharedSecret(encodedPrivateKey, encodedPublicKeyAlice);\r\n\t\tfinal byte[] digestBytes = MessageDigest.getInstance(\"SHA-256\").digest(sharedSecret);\r\n\r\n\t\tSystem.out.printf(\"Bob shared secret length[%d], message digest length[%d]%n\", sharedSecret.length,\r\n\t\t\t\tdigestBytes.length);\r\n\t\treturn digestBytes;\r\n\t}",
"public java.security.PublicKey getPublicKey() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getPublicKey():java.security.PublicKey, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getPublicKey():java.security.PublicKey\");\n }",
"com.lvl6.proto.UserProto.MinimumUserProto getSender();",
"com.lvl6.proto.UserProto.MinimumUserProto getSender();",
"com.lvl6.proto.UserProto.MinimumUserProto getSender();",
"com.lvl6.proto.UserProto.MinimumUserProto getSender();",
"public byte[] getPublicEncoded() throws NoSuchAlgorithmException, InvalidKeySpecException {\n\t\t\n\t\tKey publicKey = getPublic();\n\t\t\n\t\t //Key factory, for key-key specification transformations\n KeyFactory kfac = KeyFactory.getInstance(\"RSA\");\n //Generate plain-text key specification\n RSAPublicKeySpec keyspec = (RSAPublicKeySpec)kfac.getKeySpec(publicKey, RSAPublicKeySpec.class);\n \n\t\tSystem.out.println(\"Public key, RSA modulus: \" +\n\t\t\tkeyspec.getModulus() + \"\\nexponent: \" +\n\t\t\tkeyspec.getPublicExponent() + \"\\n\");\n\t\t\n\t\t//Building public key from the plain-text specification\n\t\t//Key recoveredPublicFromSpec = kfac.generatePublic(keyspec);\n\t\t\n\t\t//Encode a version of the public key in a byte-array\n\t\n\t\tSystem.out.print(\"Public key encoded in \" +\n\t\t_kpair.getPublic().getFormat() + \" format: \");\n\t\tbyte[] encodedPublicKey = _kpair.getPublic().getEncoded();\n\t\t\n\t\tSystem.out.println(Arrays.toString(encodedPublicKey) + \"\\n\");\n\t\t\n\t\tSystem.out.println(\"Length: \" + encodedPublicKey.length);\n\t\treturn encodedPublicKey;\n\t}",
"com.google.protobuf.ByteString\n getPubkeyBytes();",
"public T participationPublicKeyBase64(String pk) {\n this.votePK = new ParticipationPublicKey(Encoder.decodeFromBase64(pk));\n return (T) this;\n\n }",
"String getSender();",
"private static byte[] receiveBobPublicKeyAndSendAliceDigest(byte[] encodedPublicKeyBob)\r\n\t\t\tthrows NoSuchAlgorithmException, InvalidKeyException, IllegalStateException, InvalidKeySpecException,\r\n\t\t\tInvalidAlgorithmParameterException {\r\n\r\n\t\tfinal byte[] encodedPrivateKey = keyPairAlice.getPrivate().getEncoded();\r\n\t\tfinal byte[] sharedSecret = computeSharedSecret(encodedPrivateKey, encodedPublicKeyBob);\r\n\t\tfinal byte[] digestBytes = MessageDigest.getInstance(\"SHA-256\").digest(sharedSecret);\r\n\r\n\t\tSystem.out.printf(\"Alice shared secret length[%d], message digest length[%d]%n\", sharedSecret.length,\r\n\t\t\t\tdigestBytes.length);\r\n\t\treturn digestBytes;\r\n\t}",
"@Test\n public void getPublicKey() throws Exception {\n when(keyStore.getCertificate(KEY_ALIAS)).thenReturn(certificate);\n when(certificate.getPublicKey()).thenReturn(publicKey);\n\n assertThat(keyStoreWrapper.getPublicKey(KEY_ALIAS)).isNotNull();\n }",
"public Node getSender() {\n return sender;\n }",
"com.google.protobuf.ByteString\n getExtendedPublicKeyBytes();",
"MemberVdusKey getKey();",
"public String findPublicKey(String receiverName) {\n String publicKey = \"\";\n String sql = \"SELECT * FROM users WHERE user_name = ?\";\n try {\n this.statement = connection.prepareStatement(sql);\n this.statement.setString(1, receiverName);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n publicKey = this.resultSet.getString(\"pubkey\");\n }\t\n this.statement.close();\n } catch (SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return publicKey;\n }",
"com.google.protobuf.ByteString getPublicEciesKeyBytes();",
"protected PublicKeyInfo getFirstKey() {\n nextKeyToGet = 0;\n return getNextKey();\n }",
"public void setPublicKey(PublicKey newPublicKey) {\r\n publicKey = newPublicKey;\r\n }",
"public byte[] getIccPublicKeyRemainder()\n {\n return iccPublicKeyRemainder;\n }",
"public static PublicKey load3tierTestRootCAPublicKey() {\n return load3tierTestRootCACertificate().getPublicKey();\n }",
"com.google.protobuf.ByteString\n getSenderIdBytes();",
"ActorId getActorId();",
"java.lang.String getSenderId();",
"com.google.protobuf.ByteString\n getRoutingKeyBytes();",
"@Override\n\tpublic void visit(SendRSAKey srsak) {\n\t\t\n\t}",
"private String getClientKey(Channel channel) {\n InetSocketAddress socketAddress = (InetSocketAddress) channel.remoteAddress();\n String hostName = socketAddress.getHostName();\n int port = socketAddress.getPort();\n return hostName + port;\n }",
"public PublicKey getPublicKey(String keyFilePath) throws Exception {\n\t\tFileInputStream fis = new FileInputStream(keyFilePath);\n\t\tbyte[] encodedKey = new byte[fis.available()];\n\t\tfis.read(encodedKey);\n\t\tfis.close();\n\t\tX509EncodedKeySpec publicKeySpec = new X509EncodedKeySpec(encodedKey);\n\t\treturn keyFactory.generatePublic(publicKeySpec);\n\t}",
"private static PublicKey[] getPublicKeys() {\r\n\t\t\r\n\t\tPublicKey[] publicKeys = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tExternalInformationPortController externalInformationPort = \r\n\t\t\t\tnew ExternalInformationPortController();\r\n\t\t\t\r\n\t\t\texternalInformationPort.initialize();\r\n\t\t\t\r\n\t\t\tInetAddress informationProviderAddress = \r\n\t\t\t\tInetAddress.getByName(\r\n\t\t\t\t\t\tinternalInformationPort.getProperty(\"CASCADE_ADDRESS\")\r\n\t\t\t\t\t\t);\r\n\t\t\t\r\n\t\t\tint informationProviderPort = \r\n\t\t\t\tnew Integer(\r\n\t\t\t\t\t\tinternalInformationPort.getProperty(\"CASCADE_INFO_PORT\")\r\n\t\t\t\t\t\t);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tpublicKeys = \r\n\t\t\t\t(PublicKey[]) externalInformationPort.getInformationFromAll(\r\n\t\t\t\t\t\t\t\t\tinformationProviderAddress,\r\n\t\t\t\t\t\t\t\t\tinformationProviderPort,\r\n\t\t\t\t\t\t\t\t\tInformation.PUBLIC_KEY\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\r\n\t\t} catch (InformationRetrieveException e) {\r\n\t\t\t\r\n\t\t\tLOGGER.severe(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t\t\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t\r\n\t\t\tLOGGER.severe(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn publicKeys;\r\n\t\t\r\n\t}",
"private static void keyExchange() throws IOException, NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException {\r\n\t\t//receive from server\r\n\t\tPublicKey keyserver = cryptoMessaging.recvPublicKey(auctioneer.getInputStream());\r\n\t\t//receive from clients\r\n\t\tPublicKey keyclients[] = new PublicKey[3];\r\n\t\tbiddersigs = new PublicKey[3];\r\n\t\tInputStream stream;\r\n\t\tfor (int i=0; i < bidders.size(); i++) {\r\n\t\t\tstream=(bidders.get(i)).getInputStream();\r\n\t\t\tkeyclients[i] = cryptoMessaging.recvPublicKey(stream);\r\n\t\t\tbiddersigs[i] = keyclients[i];\r\n\t\t}\r\n\t\t//send to auctioneer\r\n\t\tcryptoMessaging.sendPublicKey(auctioneer.getOutputStream(), keyclients[0]); \r\n\t\tcryptoMessaging.sendPublicKey(auctioneer.getOutputStream(), keyclients[1]); \r\n\t\tcryptoMessaging.sendPublicKey(auctioneer.getOutputStream(), keyclients[2]); \r\n\t\t//send to clients\r\n\t\tcryptoMessaging.sendPublicKey((bidders.get(0)).getOutputStream(), keyserver); \r\n\t\tcryptoMessaging.sendPublicKey((bidders.get(1)).getOutputStream(), keyserver); \r\n\t\tcryptoMessaging.sendPublicKey((bidders.get(2)).getOutputStream(), keyserver); \r\n\t\t\r\n\t\t\r\n\t\t// now receive paillier public keys from bidders and auctioneer\r\n\t\tauctioneer_pk = cryptoMessaging.recvPaillier(auctioneer.getInputStream());\r\n\t\tpk[0] = cryptoMessaging.recvPaillier((bidders.get(0)).getInputStream());\r\n\t\tpk[1] = cryptoMessaging.recvPaillier((bidders.get(1)).getInputStream());\r\n\t\tpk[2] = cryptoMessaging.recvPaillier((bidders.get(2)).getInputStream());\r\n\t}"
]
| [
"0.80893326",
"0.6509852",
"0.65077186",
"0.6490467",
"0.6481273",
"0.6409563",
"0.6387173",
"0.634069",
"0.6326179",
"0.6300077",
"0.62895465",
"0.61209136",
"0.6117383",
"0.60869527",
"0.6034581",
"0.58816504",
"0.5820638",
"0.5753342",
"0.57202363",
"0.56915754",
"0.5611874",
"0.560563",
"0.54881346",
"0.54851574",
"0.545291",
"0.543696",
"0.5421192",
"0.54115766",
"0.5342346",
"0.5321336",
"0.5321336",
"0.5321336",
"0.5321336",
"0.5321336",
"0.5321336",
"0.5321336",
"0.5307213",
"0.5271627",
"0.52540934",
"0.5220469",
"0.5143469",
"0.5139025",
"0.5119594",
"0.5102369",
"0.50918293",
"0.5081886",
"0.5072502",
"0.50665474",
"0.5065118",
"0.50631505",
"0.5016462",
"0.50015306",
"0.49958813",
"0.49880674",
"0.4987717",
"0.49858084",
"0.49603373",
"0.49452934",
"0.49452934",
"0.49452934",
"0.49452934",
"0.49452934",
"0.49452934",
"0.49332842",
"0.49196088",
"0.4918882",
"0.49038464",
"0.49038464",
"0.49038464",
"0.49038464",
"0.48886472",
"0.4879641",
"0.48603314",
"0.48603314",
"0.48603314",
"0.48603314",
"0.48347044",
"0.48281237",
"0.48279864",
"0.4823682",
"0.48097542",
"0.48071185",
"0.48048317",
"0.4799507",
"0.4799084",
"0.47984388",
"0.47919175",
"0.47801787",
"0.47778678",
"0.47750404",
"0.47687432",
"0.4757558",
"0.4753879",
"0.47501805",
"0.47448888",
"0.47421256",
"0.47393435",
"0.4738086",
"0.47349796",
"0.472849"
]
| 0.8788465 | 0 |
The method getActorSendType returns the actor send type of the negotiation transmission | PlatformComponentType getActorSendType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PlatformComponentType getActorReceiveType();",
"String getActorType();",
"public final ActorType getType() {\n return type;\n }",
"NegotiationTransmissionType getTransmissionType();",
"public Boolean getSendType() {\n return sendType;\n }",
"TransmissionProtocol.Type getType();",
"public ActorType getActorType() {\n return ActorDao.getActorTypeByRefId(getActorTypeRefId());\n }",
"public int getMsgType() {\n return msgType_;\n }",
"public int getMsgType() {\n return msgType_;\n }",
"public int getMsgType() {\n\t\treturn msgType;\n\t}",
"public MessageType getType() {\n return msgType;\n }",
"public void setSendType(Boolean sendType) {\n this.sendType = sendType;\n }",
"public com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType getType() {\n com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType result = com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.valueOf(type_);\n return result == null ? com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.CHAT : result;\n }",
"public com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType getType() {\n com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType result = com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.valueOf(type_);\n return result == null ? com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.CHAT : result;\n }",
"public com.eze.ezecli.ApiInput.MessageType getMsgType() {\n return msgType_;\n }",
"public com.eze.ezecli.ApiInput.MessageType getMsgType() {\n return msgType_;\n }",
"public int getMessageType()\r\n {\r\n return msgType;\r\n }",
"MessageProto.MSG getType();",
"protected String getBehaviorType() {\n\t\treturn this.behaviorType;\n\t}",
"public TransmissionProtocol.Type getType() {\n @SuppressWarnings(\"deprecation\")\n TransmissionProtocol.Type result = TransmissionProtocol.Type.valueOf(type_);\n return result == null ? TransmissionProtocol.Type.UNRECOGNIZED : result;\n }",
"public TransmissionProtocol.Type getType() {\n @SuppressWarnings(\"deprecation\")\n TransmissionProtocol.Type result = TransmissionProtocol.Type.valueOf(type_);\n return result == null ? TransmissionProtocol.Type.UNRECOGNIZED : result;\n }",
"entities.Torrent.Message.Type getType();",
"@java.lang.Override\n public entities.Torrent.Message.Type getType() {\n @SuppressWarnings(\"deprecation\")\n entities.Torrent.Message.Type result = entities.Torrent.Message.Type.valueOf(type_);\n return result == null ? entities.Torrent.Message.Type.UNRECOGNIZED : result;\n }",
"public java.lang.String getMsgType() {\n java.lang.Object ref = msgType_;\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 msgType_ = s;\n return s;\n }\n }",
"@java.lang.Override public entities.Torrent.Message.Type getType() {\n @SuppressWarnings(\"deprecation\")\n entities.Torrent.Message.Type result = entities.Torrent.Message.Type.valueOf(type_);\n return result == null ? entities.Torrent.Message.Type.UNRECOGNIZED : result;\n }",
"public abstract MessageType getType();",
"public abstract MessageType getType();",
"public java.lang.String getMsgType() {\n java.lang.Object ref = msgType_;\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 msgType_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getMessageType()\r\n\t{\r\n\t\treturn this.messageType;\r\n\t}",
"public MessageType getType() {\n return m_type;\n }",
"public MessageProto.MSG getType() {\n MessageProto.MSG result = MessageProto.MSG.valueOf(type_);\n return result == null ? MessageProto.MSG.UNRECOGNIZED : result;\n }",
"public java.lang.String getReceiveType () {\n\t\treturn receiveType;\n\t}",
"public java.lang.String getMessageType() {\r\n return messageType;\r\n }",
"public MessageProto.MSG getType() {\n MessageProto.MSG result = MessageProto.MSG.valueOf(type_);\n return result == null ? MessageProto.MSG.UNRECOGNIZED : result;\n }",
"public String getType() {\n if (this.mInvitation != null) return TYPE_INVITATION;\n else if (this.mChatMessageFragment != null) return TYPE_CHAT_MESSAGE;\n else return null;\n }",
"MessageType getType();",
"public java.math.BigInteger getReceivingType() {\n return receivingType;\n }",
"abstract PeerType getPeerType();",
"public messages.Basemessage.BaseMessage.Type getType() {\n return type_;\n }",
"public messages.Basemessage.BaseMessage.Type getType() {\n return type_;\n }",
"public Integer getMessageType() {\n return messageType;\n }",
"public com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType() {\n return type_;\n }",
"public EventOriginatorType getType() {\n\t\treturn type;\n\t}",
"com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType getType();",
"public Utils.MessageType getMessageType() {\n return messageType;\n }",
"void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);",
"im.turms.common.constant.ChatType getChatType();",
"public com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType() {\n return type_;\n }",
"public MessageType getMessageType() {\n\t\treturn messageType;\n\t}",
"public void setMsgType(int msgType) {\n\t\tthis.msgType = msgType;\n\t}",
"ActorType createActorType();",
"public MessageType getMessageType() {\n return messageType;\n }",
"SpawnType getSpectatorSpawnType();",
"public com.google.protobuf.ByteString\n getMsgTypeBytes() {\n java.lang.Object ref = msgType_;\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 msgType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void send(int messageType)\n {\n //CHAT message: sends the message\n //CONNECT message: sends the message\n //DISCONNECT message: sends the message, then closes application\n //USER_LIST message: client can't send a user list message\n try\n {\n switch(messageType)\n {\n case Message.CHAT:\n //Split text into receiver and message text\n String completeText = ChatGUI.getInstance().getMessageField().getText();\n String receiver = completeText.startsWith(\"@\") ? completeText.substring(1, completeText.indexOf(\" \")) : null;\n String text = completeText.startsWith(\"@\") ? completeText.substring(completeText.indexOf(\" \") + 1): completeText;\n \n //Validate message receiver\n if(nickname.equals(receiver))\n ChatGUI.getInstance().getChatHistory().append(\"YOU (TO YOU): \" + text + \"\\n\");\n else if(!allUsers.contains(receiver) && receiver != null)\n ChatGUI.getInstance().getChatHistory().append(\"SYSTEM: this user isn't connected\\n\");\n else\n {\n ChatMessage cmsg = new ChatMessage(nickname, receiver, text);\n \n if(receiver == null)\n ChatGUI.getInstance().getChatHistory().append(\"YOU (TO ALL): \" + text + \"\\n\");\n else\n ChatGUI.getInstance().getChatHistory().append(\"YOU (TO \" + receiver + \"): \" + text + \"\\n\");\n\n outputStream.writeBytes(gson.toJson(cmsg) + \"\\n\");\n }\n break;\n case Message.CONNECT:\n ConnectMessage comsg = new ConnectMessage(ChatGUI.getInstance().getLoginField().getText());\n outputStream.writeBytes(gson.toJson(comsg) + \"\\n\");\n break;\n case Message.DISCONNECT:\n DisconnectMessage dmsg = new DisconnectMessage(nickname);\n outputStream.writeBytes(gson.toJson(dmsg) + \"\\n\");\n close();\n break;\n }\n } \n catch (IOException e)\n {\n System.out.println(e.getMessage());\n }\n }",
"public String getRemoteChannelType() {\n return CHANNEL_TYPE_PREFIX + \"-\" + type.name();\n }",
"public com.czht.face.recognition.Czhtdev.MessageType getType() {\n com.czht.face.recognition.Czhtdev.MessageType result = com.czht.face.recognition.Czhtdev.MessageType.valueOf(type_);\n return result == null ? com.czht.face.recognition.Czhtdev.MessageType.MsgDefaultReply : result;\n }",
"public com.google.protobuf.ByteString\n getMsgTypeBytes() {\n java.lang.Object ref = msgType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n msgType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public ActorType getType()\n {\n return ActorType.BOX;\n }",
"public com.czht.face.recognition.Czhtdev.MessageType getType() {\n com.czht.face.recognition.Czhtdev.MessageType result = com.czht.face.recognition.Czhtdev.MessageType.valueOf(type_);\n return result == null ? com.czht.face.recognition.Czhtdev.MessageType.MsgDefaultReply : result;\n }",
"NegotiationType getNegotiationType();",
"public OutlookAttachmentType getType()\n {\n return getConstant(\"Type\", OutlookAttachmentType.class);\n }",
"public EnnemyType getType()\n\t{\n\t\treturn type;\n\t}",
"public String getRequestType() { return this.requestType; }",
"public static String getRequestType(){\n return requestType;\n }",
"public ChannelType getChannelType() {\n return type;\n }",
"public String getType() {\n try {\n return (String)replyHeaders.getHeader(HeaderSet.TYPE);\n } catch (IOException e) {\n return null;\n }\n }",
"@Override\r\n\tpublic String getMessageType() {\n\t\treturn this.getClass().getName();\r\n\t}",
"NegotiationTransactionType getNegotiationTransactionType();",
"messages.Basemessage.BaseMessage.Type getType();",
"public String getMessageType() {\n return type.getMessage().getName();\n }",
"public TurnType getType() {\n\t\treturn type;\n\t}",
"SpawnType getLobbySpawnType();",
"java.lang.String getSender();",
"java.lang.String getSender();",
"java.lang.String getSender();",
"java.lang.String getSender();",
"java.lang.String getSender();",
"java.lang.String getSender();",
"int getMsgType();",
"ru.ifmo.java.servertest.protocol.TestingProtocol.ServerType getType();",
"public ClientType getType() {\n return type;\n }",
"public String getReplyType() {\n/* 307 */ return getCOSObject().getNameAsString(\"RT\", \"R\");\n/* */ }",
"public String getSendName() {\r\n return sendName;\r\n }",
"public abstract String getMessageType();",
"public Processor getSender() {\n return this.senderProcess;\n }",
"@Override\r\n\tpublic byte getType() {\n\t\treturn Protocol.OVERLAY_NODE_SENDS_DEREGISTRATION;\r\n\t}",
"public com.randomm.server.ProtoBufMessage.Message.InputType getType() {\n return type_;\n }",
"com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType();",
"public java.lang.String getTypeOfCargo() {\n\t\treturn _tempNoTiceShipMessage.getTypeOfCargo();\n\t}",
"public String getRouteType() {\n return routeType;\n }",
"@java.lang.Override\n public speech.multilang.Params.ForwardingControllerParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.ForwardingControllerParams.Type result = speech.multilang.Params.ForwardingControllerParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.ForwardingControllerParams.Type.UNKNOWN : result;\n }",
"public java.lang.String getRequestType() {\n return requestType;\n }",
"public String getSimType() {\n if (mySimType.equals(\"PREDATORPREY\")) {\n return mySimType;\n }\n if (mySimType.equals(\"FIRE\")) {\n return mySimType;\n }\n if (mySimType.equals(\"GAMEOFLIFE\")) {\n return mySimType;\n }\n if (mySimType.equals(\"PERCOLATION\")) {\n return mySimType;\n }\n if (mySimType.equals(\"ROCKPAPERSCISSORS\")) {\n return mySimType;\n }\n if (mySimType.equals(\"SEGREGATION\")) {\n return mySimType;\n }\n else {\n throw new IllegalArgumentException(\"Simulation type given is invalid\");\n }\n\n }",
"public com.randomm.server.ProtoBufMessage.Message.InputType getType() {\n return type_;\n }",
"public String getPlayerType() {\r\n return playerType;\r\n\t}",
"com.randomm.server.ProtoBufMessage.Message.InputType getType();",
"@java.lang.Override public speech.multilang.Params.ForwardingControllerParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.ForwardingControllerParams.Type result = speech.multilang.Params.ForwardingControllerParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.ForwardingControllerParams.Type.UNKNOWN : result;\n }",
"public String getType() {\n return relationshipName;\n }",
"String getPublicKeyActorSend();"
]
| [
"0.73676187",
"0.68772",
"0.6801485",
"0.6635326",
"0.6437365",
"0.63558483",
"0.6321358",
"0.61781687",
"0.61556345",
"0.60968906",
"0.60809904",
"0.59625566",
"0.59327537",
"0.58898354",
"0.5814865",
"0.57873684",
"0.57410073",
"0.5737346",
"0.5727813",
"0.57039756",
"0.5693149",
"0.56831074",
"0.5669487",
"0.5654872",
"0.5651296",
"0.56499165",
"0.56499165",
"0.5624005",
"0.5600785",
"0.5598523",
"0.5596528",
"0.5595056",
"0.5592902",
"0.55894095",
"0.5576812",
"0.55469877",
"0.55444133",
"0.5540507",
"0.55334496",
"0.5533156",
"0.5501706",
"0.54831654",
"0.5478423",
"0.54733706",
"0.54723763",
"0.5464942",
"0.5455622",
"0.54381233",
"0.53836745",
"0.53674775",
"0.53597736",
"0.5356133",
"0.5338534",
"0.5324966",
"0.52864563",
"0.5275379",
"0.5266357",
"0.52555096",
"0.5253814",
"0.52535766",
"0.52185595",
"0.52163726",
"0.5216072",
"0.5211966",
"0.5180754",
"0.51760024",
"0.5165999",
"0.51488465",
"0.51456195",
"0.51379555",
"0.5125562",
"0.5118341",
"0.51072925",
"0.51054764",
"0.51054764",
"0.51054764",
"0.51054764",
"0.51054764",
"0.51054764",
"0.50983965",
"0.5088681",
"0.50685024",
"0.5064512",
"0.504592",
"0.5042684",
"0.50376177",
"0.5037535",
"0.50335515",
"0.5023398",
"0.50225174",
"0.5018534",
"0.50105274",
"0.5010492",
"0.5007888",
"0.50055844",
"0.50008744",
"0.49903718",
"0.49782586",
"0.4952815",
"0.49515215"
]
| 0.838367 | 0 |
The method getPublicKeyActorReceive returns the public key the actor receive of the negotiation transmission | String getPublicKeyActorReceive(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getPublicKeyActorSend();",
"OctetString getPublicKey();",
"public String getPublicKey();",
"public PublicKey getPublicKey() {\n return publicKey;\n }",
"public PublicKey getPublicKey() {\n return pk;\n }",
"public PublicKey getPublicKey() {\r\n return publicKey;\r\n }",
"java.lang.String getPublicKey();",
"public String getPublicKeyIdentifier();",
"public PublicKey getPublicKey(){\n\t\treturn this.publickey;\n\t}",
"String getPublicKey();",
"public String getPublicKey() {\n return publicKey;\n }",
"public BigInteger getPublicKey()\n {\n\treturn publicKey;\n }",
"com.google.protobuf.ByteString getPublicKeyBytes();",
"public PublicKey getPubKey(){\r\n\t\treturn this.myCert.getPublicKey();\r\n\t}",
"public Ed25519PublicKey derivePublicKey() {\r\n\t\tif(this.pubKey==null) {\r\n\t\t\tthis.pubKey = new Ed25519PublicKey(new EdDSAPublicKey(new EdDSAPublicKeySpec(this.key.getA(), this.key.getParams())));\r\n\t\t}\r\n\t\treturn this.pubKey;\r\n\t}",
"ConnectionState getActorConnectionState(String publicKey) throws\n CantValidateConnectionStateException;",
"private void receiveKey() throws Exception {\n System.out.println(\"Receive Key\");\n DataInputStream dis = new DataInputStream(is);\n String keyBase64 = dis.readUTF();\n byte[] key = Util.convertBase64ToBytes(keyBase64);\n byte[] rc4key = Util.RSADecrypt(key, prikey);\n synchronized (GUITracker.onlinePeer) {\n GUITracker.RC4KeyByte = rc4key;\n }\n RC4Key = RC4.convertBytesToSecretKey(rc4key);\n encrypt = new RC4(RC4Key, RC4.ENCRYPT);\n decrypt = new RC4(RC4Key, RC4.DECRYPT);\n CipherInputStream cis = decrypt.getBindingInputStream(socket.getInputStream());\n CipherOutputStream cos = encrypt.getBindingOutputStream(socket.getOutputStream());\n is = cis;\n os = cos;\n System.out.println(\"Get symmetric key from: \" + addressPort);\n }",
"public void process(PublicKey msg) throws IOException {\n usersConnected.get(msg.getSource()).setPublicKeyPair(msg.getMessage());\n bradcast(msg);\n }",
"String publicKey();",
"public byte[] getPubKey() {\n return pub.getEncoded();\n }",
"private void sendPublicKey() {\n PublicKey publicKey = EncryptionUtils.getKeyPair(getApplicationContext()).getPublic();\n String encodedPublicKey = Base64.encodeToString(publicKey.getEncoded(),Base64.URL_SAFE);\n socket.emit(\"public_key\",encodedPublicKey);\n }",
"public String getAuthPublicKey() {\n return authPublicKey;\n }",
"java.lang.String getPubkey();",
"@Nullable\n private String getCaptchaPublicKey() {\n return RegistrationToolsKt.getCaptchaPublicKey(mRegistrationResponse);\n }",
"public ECPoint getPubKeyPoint() {\n return pub.get();\n }",
"public PrivateKey getKey();",
"public Class<PUB> getPublicKeyClass() {\n return pubKeyType;\n }",
"public MessageKey getKey() {\n\treturn key;\n }",
"public byte[] getIccPublicKeyRemainder()\n {\n return iccPublicKeyRemainder;\n }",
"java.lang.String getPublicEciesKey();",
"public byte[] getPubkey() {\n return pubkey;\n }",
"public String findPublicKey(String receiverName) {\n String publicKey = \"\";\n String sql = \"SELECT * FROM users WHERE user_name = ?\";\n try {\n this.statement = connection.prepareStatement(sql);\n this.statement.setString(1, receiverName);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n publicKey = this.resultSet.getString(\"pubkey\");\n }\t\n this.statement.close();\n } catch (SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return publicKey;\n }",
"java.lang.String getClientKey();",
"private static byte[] receiveBobPublicKeyAndSendAliceDigest(byte[] encodedPublicKeyBob)\r\n\t\t\tthrows NoSuchAlgorithmException, InvalidKeyException, IllegalStateException, InvalidKeySpecException,\r\n\t\t\tInvalidAlgorithmParameterException {\r\n\r\n\t\tfinal byte[] encodedPrivateKey = keyPairAlice.getPrivate().getEncoded();\r\n\t\tfinal byte[] sharedSecret = computeSharedSecret(encodedPrivateKey, encodedPublicKeyBob);\r\n\t\tfinal byte[] digestBytes = MessageDigest.getInstance(\"SHA-256\").digest(sharedSecret);\r\n\r\n\t\tSystem.out.printf(\"Alice shared secret length[%d], message digest length[%d]%n\", sharedSecret.length,\r\n\t\t\t\tdigestBytes.length);\r\n\t\treturn digestBytes;\r\n\t}",
"private static byte[] receiveAlicePublicKeyAndSendBobDigest(byte[] encodedPublicKeyAlice)\r\n\t\t\tthrows NoSuchAlgorithmException, InvalidKeyException, IllegalStateException, InvalidKeySpecException,\r\n\t\t\tInvalidAlgorithmParameterException {\r\n\r\n\t\tfinal byte[] encodedPrivateKey = keyPairBob.getPrivate().getEncoded();\r\n\t\tfinal byte[] sharedSecret = computeSharedSecret(encodedPrivateKey, encodedPublicKeyAlice);\r\n\t\tfinal byte[] digestBytes = MessageDigest.getInstance(\"SHA-256\").digest(sharedSecret);\r\n\r\n\t\tSystem.out.printf(\"Bob shared secret length[%d], message digest length[%d]%n\", sharedSecret.length,\r\n\t\t\t\tdigestBytes.length);\r\n\t\treturn digestBytes;\r\n\t}",
"public interface PublicKey {\n\n /**\n * Returns id of the public key.\n *\n * @return id of key\n */\n String getId();\n\n /**\n * Returns ids from gpg sub keys.\n *\n * @return sub key ids\n * @since 2.19.0\n */\n default Set<String> getSubkeys() {\n return Collections.emptySet();\n }\n\n /**\n * Returns the username of the owner or an empty optional.\n *\n * @return owner or empty optional\n */\n Optional<String> getOwner();\n\n /**\n * Returns raw of the public key.\n *\n * @return raw of key\n */\n String getRaw();\n\n /**\n * Returns the contacts of the publickey.\n *\n * @return owner or empty optional\n */\n Set<Person> getContacts();\n\n /**\n * Verifies that the signature is valid for the given data.\n *\n * @param stream stream of data to verify\n * @param signature signature\n * @return {@code true} if the signature is valid for the given data\n */\n boolean verify(InputStream stream, byte[] signature);\n\n /**\n * Verifies that the signature is valid for the given data.\n *\n * @param data data to verify\n * @param signature signature\n * @return {@code true} if the signature is valid for the given data\n */\n default boolean verify(byte[] data, byte[] signature) {\n return verify(new ByteArrayInputStream(data), signature);\n }\n}",
"public CPubkeyInterface getPubKey() {\n return new SaplingPubKey(this.f12197e.mo42966a(), mo42979b(), false);\n }",
"com.hps.july.persistence.WorkerKey getExpeditorKey() throws java.rmi.RemoteException;",
"protected Object getReceiverKey(UMOComponent component, UMOEndpoint endpoint) {\n if(endpoint.getEndpointURI().getPort()==-1) {\n return component.getDescriptor().getName();\n } else {\n return endpoint.getEndpointURI().getAddress() + \"/\" + component.getDescriptor().getName();\n }\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-08-13 13:14:15.603 -0400\", hash_original_method = \"9CA51125BBD9928A127E75CF99CB1D14\", hash_generated_method = \"10D7CA0C3FC5B5A6A133BC7DAAF5C8C5\")\n \npublic PublicKey getPublicKey() {\n return subjectPublicKey;\n }",
"private static void keyExchange() throws IOException, NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException {\r\n\t\t//receive from server\r\n\t\tPublicKey keyserver = cryptoMessaging.recvPublicKey(auctioneer.getInputStream());\r\n\t\t//receive from clients\r\n\t\tPublicKey keyclients[] = new PublicKey[3];\r\n\t\tbiddersigs = new PublicKey[3];\r\n\t\tInputStream stream;\r\n\t\tfor (int i=0; i < bidders.size(); i++) {\r\n\t\t\tstream=(bidders.get(i)).getInputStream();\r\n\t\t\tkeyclients[i] = cryptoMessaging.recvPublicKey(stream);\r\n\t\t\tbiddersigs[i] = keyclients[i];\r\n\t\t}\r\n\t\t//send to auctioneer\r\n\t\tcryptoMessaging.sendPublicKey(auctioneer.getOutputStream(), keyclients[0]); \r\n\t\tcryptoMessaging.sendPublicKey(auctioneer.getOutputStream(), keyclients[1]); \r\n\t\tcryptoMessaging.sendPublicKey(auctioneer.getOutputStream(), keyclients[2]); \r\n\t\t//send to clients\r\n\t\tcryptoMessaging.sendPublicKey((bidders.get(0)).getOutputStream(), keyserver); \r\n\t\tcryptoMessaging.sendPublicKey((bidders.get(1)).getOutputStream(), keyserver); \r\n\t\tcryptoMessaging.sendPublicKey((bidders.get(2)).getOutputStream(), keyserver); \r\n\t\t\r\n\t\t\r\n\t\t// now receive paillier public keys from bidders and auctioneer\r\n\t\tauctioneer_pk = cryptoMessaging.recvPaillier(auctioneer.getInputStream());\r\n\t\tpk[0] = cryptoMessaging.recvPaillier((bidders.get(0)).getInputStream());\r\n\t\tpk[1] = cryptoMessaging.recvPaillier((bidders.get(1)).getInputStream());\r\n\t\tpk[2] = cryptoMessaging.recvPaillier((bidders.get(2)).getInputStream());\r\n\t}",
"public PublicKey getPublicKey() {\n File keyFile = new File(baseDirectory, pubKeyFileName);\n if (!keyFile.exists()) {\n if (!generateKeys()) {\n return null;\n }\n }\n if (!keyFile.exists()) {\n return null;\n }\n try {\n byte[] bytes = FileUtils.readFileToByteArray(keyFile);\n X509EncodedKeySpec ks = new X509EncodedKeySpec(bytes);\n KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n PublicKey pub = kf.generatePublic(ks);\n return pub;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"protected String getKey() {\n\t\treturn makeKey(host, port, transport);\n\t}",
"PublicKey decodePublicKey(byte[] encoded) throws IOException;",
"ActorId getActorId();",
"MemberVdusKey getKey();",
"@Override\n public void onMessageReceived(String sender, ChatMetadataRecord chatMetadataRecord) {\n System.out.println(\"*** StressAppActor has received a message from \"+sender);\n receivedMessages++;\n System.out.println(\"*** StressAppActor has registered \"+receivedMessages+\" received messages\");\n report(ReportType.RECEIVED_MESSAGE);\n String receiverPk = chatMetadataRecord.getRemoteActorPublicKey();\n int responds;\n if(messagesCount.get(receiverPk)==null){\n responds = 0;\n } else {\n responds = messagesCount.get(receiverPk);\n }\n ActorProfile actorSender = actorsMap.get(receiverPk);\n if(responds<RESPONDS){\n try {\n ActorProfile actorReceiver = actorsMap.get(chatMetadataRecord.getLocalActorPublicKey());\n String nsPublicKey = actorNesMap.get(actorSender.getIdentityPublicKey());\n ChatNetworkServicePluginRoot networkServicePluginRoot;\n\n //If the actor public key is not registered any NS, I'll try to send the message from a random NS.\n if(nsPublicKey==null){\n //throw new CannotRespondMessageException(\"The Network Service public key is not registered\");\n networkServicePluginRoot = getRandomChatNs();\n } else {\n networkServicePluginRoot = nsPublicKeyMap.get(nsPublicKey);\n }\n\n String messageToSend = \"StressAppActor responds you a \"+generateRandomHexString();\n System.out.println(\"*** StressAppActor is trying to respond \"+messageToSend);\n messagesCount.put(receiverPk, responds++);\n networkServicePluginRoot.sendMessage(messageToSend, actorSender.getIdentityPublicKey(), actorReceiver.getIdentityPublicKey());\n messagesSent++;\n System.out.println(\"*** StressAppActor has registered \"+messagesSent+\" messages sent\");\n report(ReportType.MESSAGE_SENT);\n report(ReportType.RESPOND_MESSAGES);\n } catch (Exception e) {\n report(ReportType.EXCEPTION_DETECTED);\n System.out.println(actorSender.getIdentityPublicKey()+\" cannot respond a message:\\n\"+e.getMessage());\n //e.printStackTrace();\n }\n }\n }",
"List<ArtistActorConnection> getRequestActorConnections(\n String linkedIdentityPublicKey,\n Actors linkedIdentityActorType,\n String actorPublicKey) throws CantGetActorConnectionException;",
"private String getClientKey(Channel channel) {\n InetSocketAddress socketAddress = (InetSocketAddress) channel.remoteAddress();\n String hostName = socketAddress.getHostName();\n int port = socketAddress.getPort();\n return hostName + port;\n }",
"@Override\n\tpublic String GetMsgKey(MsgBean msgBean) {\n\t\tKVContainer kvEntry = ConfirmOrder.GetKeyFromMsg(msgBean.Msg);\n\t\treturn (String) kvEntry.getKey();\n\t}",
"public void setPublicKey(PublicKey publicKey) {\n this.publicKey = publicKey;\n }",
"com.google.protobuf.ByteString getPublicEciesKeyBytes();",
"public void receiveResultgetMinKey(\n loadbalance.LoadBalanceStub.GetMinKeyResponse result\n ) {\n }",
"com.google.protobuf.ByteString\n getRoutingKeyBytes();",
"public static KeyPair generatePublicKeyPair(){\r\n\t\ttry {\r\n\t\t\tKeyPairGenerator keyGen = KeyPairGenerator.getInstance(publicKeyAlgorithm);\r\n\t\t\tkeyGen.initialize(PUBLIC_KEY_LENGTH, new SecureRandom());\r\n\t\t\treturn keyGen.generateKeyPair();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// should not happen\r\n\t\t\tthrow new ModelException(\"Internal key generation error - \"+publicKeyAlgorithm+\"[\"+PUBLIC_KEY_LENGTH+\"]\",e);\r\n\t\t}\r\n\t}",
"private void receiveFrom(Binder inputInfo, PublicKey key) {\n for(int attempt = 0; attempt < 2; attempt++) {\n try {\n List<Binder> receivedTopology = loadTopologyFrom((String) ((List) inputInfo.get(attempt == 0 ? \"direct_urls\" : \"domain_urls\")).get(0), key);\n\n synchronized (updateLock) {\n for (Binder receivedInfo : receivedTopology) {\n PublicKey receivedKey = (PublicKey) receivedInfo.get(\"key\");\n\n if (!nodeCoordinates.containsKey(receivedKey)) {\n nodeCoordinates.put(receivedKey, new ArrayList<>());\n }\n receivedInfo.put(\"key\", receivedKey.packToBase64String());\n nodeCoordinates.get(receivedKey).add(receivedInfo);\n }\n confirmedKeys.add(key);\n }\n break;\n } catch (IOException ignored) {\n\n }\n }\n\n }",
"com.google.protobuf.ByteString\n getPubkeyBytes();",
"public DetectedKey getDetectedKey() { return getDetectedKey(false); }",
"protected PublicKeyInfo getFirstKey() {\n nextKeyToGet = 0;\n return getNextKey();\n }",
"java.lang.String getExtendedPublicKey();",
"public void setPublicKey(String publicKey) {\n this.publicKey = publicKey;\n }",
"public BigInteger getPrivKey() {\n if (priv == null)\n throw new MissingPrivateKeyException();\n return priv;\n }",
"UnderlayTopologyKey getKey();",
"public static void main(String[] args) {\r\n\r\n String message = \"Hello, I'm Alice!\";\r\n // Alice's private and public key\r\n RSA rsaAlice = new RSA();\r\n rsaAlice.generateKeyPair();\r\n // Bob's private and public key\r\n RSA rsaBob = new RSA();\r\n rsaBob.generateKeyPair();\r\n // encrypted message from Alice to Bob\r\n BigInteger cipher = rsaAlice.encrypt(message, rsaBob.pubKey);\r\n // create digital signature by Alice\r\n BigInteger signature = rsaAlice.createSignature(message);\r\n\r\n // Bob decrypt message and verify signature\r\n String plain = rsaBob.decrypt(cipher, rsaBob.pubKey);\r\n boolean isVerify = rsaBob.verifySignature(plain, signature, rsaAlice.pubKey);\r\n\r\n if( isVerify )\r\n {\r\n System.out.println(\"Plain text : \" + plain);\r\n }\r\n\r\n /**\r\n * Part II. Two-part RSA protocol to receive\r\n * session key, with signature\r\n */\r\n\r\n // A's private and public key\r\n RSA rsaA = new RSA();\r\n rsaA.generateKeyPair();\r\n // B's private and public key\r\n RSA rsaB = new RSA();\r\n rsaB.generateKeyPair();\r\n\r\n BigInteger newSessionKey = new BigInteger(\"123456789123465\", 10);\r\n // create message by A\r\n BigInteger S = newSessionKey.modPow(rsaA.getPrivKeyD(), rsaA.pubKey[1]);\r\n BigInteger k1 = newSessionKey.modPow(rsaB.pubKey[0], rsaB.pubKey[1]);\r\n BigInteger S1 = S.modPow(rsaB.pubKey[0], rsaB.pubKey[1]);\r\n\r\n // --------- sending message to B --------- >>>\r\n\r\n // receive message by B and take new session key\r\n BigInteger k = k1.modPow(rsaB.getPrivKeyD(), rsaB.pubKey[1]);\r\n BigInteger Sign = S1.modPow(rsaB.getPrivKeyD(), rsaB.pubKey[1]);\r\n BigInteger verifyK = Sign.modPow(rsaA.pubKey[0], rsaA.pubKey[1]);\r\n\r\n if(verifyK.equals(k))\r\n {\r\n System.out.println(\"B receive new session key from A: \" + k.toString());\r\n }\r\n else\r\n {\r\n System.out.println(\"B receive FAKE session key from A: \" + k.toString());\r\n }\r\n\r\n }",
"public T participationPublicKey(ParticipationPublicKey pk) {\n this.votePK = pk;\n return (T) this;\n }",
"public byte[] getProtoKey() {\n return byteProtoKey;\n }",
"protected PublicKey getCAPublicKey(SOAPMessageContext smc) throws Exception {\n Certificate certCA = readCertificateFile(\"/home/dziergwa/Desktop/SD/T_27-project/transporter-ws/src/main/resources/UpaCA.cer\");\n return certCA.getPublicKey();\n }",
"public ShuffleKey getKey() {\n return key;\n }",
"public void process(Key msg) throws IOException {\n relay(msg);\n }",
"private PublicKey getPublicKey(byte[] publicKeyBytes) {\n try {\n KeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n X509EncodedKeySpec keySpec = new X509EncodedKeySpec(publicKeyBytes);\n return keyFactory.generatePublic(keySpec);\n } catch (NoSuchAlgorithmException | InvalidKeySpecException e) {\n Log.e(TAG, \"getPublicKey: \" + e.getMessage());\n }\n return null;\n }",
"public net.paymentech.ws.EMVPublicKeyLineItem[] getPEMVPublicKeyLineItem() {\r\n return pEMVPublicKeyLineItem;\r\n }",
"public java.security.PublicKey getPublicKey() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getPublicKey():java.security.PublicKey, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getPublicKey():java.security.PublicKey\");\n }",
"String process_key () throws BaseException;",
"byte[] encodePublicKey(PublicKey publicKey) throws IOException;",
"public T participationPublicKey(byte[] pk) {\n this.votePK = new ParticipationPublicKey(pk);\n return (T) this;\n }",
"public int getRsaKeyB(){\n\treturn this.rsaKeyB;\n }",
"public boolean isMine(String publicKey) {\r\n return (publicKey.equals(recipient));\r\n }",
"byte[] getKey();",
"com.google.protobuf.ByteString\n getClientKeyBytes();",
"public PublicKey getPublicKey(String keyFilePath) throws Exception {\n\t\tFileInputStream fis = new FileInputStream(keyFilePath);\n\t\tbyte[] encodedKey = new byte[fis.available()];\n\t\tfis.read(encodedKey);\n\t\tfis.close();\n\t\tX509EncodedKeySpec publicKeySpec = new X509EncodedKeySpec(encodedKey);\n\t\treturn keyFactory.generatePublic(publicKeySpec);\n\t}",
"public PublicKey(Blob keyDer) throws UnrecognizedKeyFormatException\n {\n keyDer_ = keyDer;\n\n // Get the public key OID.\n String oidString = null;\n try {\n DerNode parsedNode = DerNode.parse(keyDer.buf(), 0);\n List rootChildren = parsedNode.getChildren();\n List algorithmIdChildren =\n DerNode.getSequence(rootChildren, 0).getChildren();\n oidString = \"\" + ((DerNode)algorithmIdChildren.get(0)).toVal();\n }\n catch (DerDecodingException ex) {\n throw new UnrecognizedKeyFormatException\n (\"PublicKey: Error decoding the public key: \" +\n ex.getMessage());\n }\n\n // Verify that the we can decode.\n if (oidString.equals(RSA_ENCRYPTION_OID)) {\n keyType_ = KeyType.RSA;\n\n KeyFactory keyFactory = null;\n try {\n keyFactory = KeyFactory.getInstance(\"RSA\");\n }\n catch (NoSuchAlgorithmException exception) {\n // Don't expect this to happen.\n throw new UnrecognizedKeyFormatException\n (\"RSA is not supported: \" + exception.getMessage());\n }\n\n try {\n keyFactory.generatePublic\n (new X509EncodedKeySpec(keyDer.getImmutableArray()));\n }\n catch (InvalidKeySpecException exception) {\n // Don't expect this to happen.\n throw new UnrecognizedKeyFormatException\n (\"X509EncodedKeySpec is not supported for RSA: \" + exception.getMessage());\n }\n }\n else if (oidString.equals(EC_ENCRYPTION_OID)) {\n keyType_ = KeyType.EC;\n\n KeyFactory keyFactory = null;\n try {\n keyFactory = KeyFactory.getInstance(\"EC\");\n }\n catch (NoSuchAlgorithmException exception) {\n // Don't expect this to happen.\n throw new UnrecognizedKeyFormatException\n (\"EC is not supported: \" + exception.getMessage());\n }\n\n try {\n keyFactory.generatePublic\n (new X509EncodedKeySpec(keyDer.getImmutableArray()));\n }\n catch (InvalidKeySpecException exception) {\n // Don't expect this to happen.\n throw new UnrecognizedKeyFormatException\n (\"X509EncodedKeySpec is not supported for EC: \" + exception.getMessage());\n }\n }\n else\n throw new UnrecognizedKeyFormatException(\n \"PublicKey: Unrecognized OID \" + oidString);\n }",
"public interface IntraWalletUserActor {\n\n /**\n * The metho <code>getPublicKey</code> gives us the public key of the represented intra wallet user\n *\n * @return the public key\n */\n String getPublicKey();\n\n /**\n * The method <code>getName</code> gives us the name of the represented intra wallet user\n *\n * @return the name of the intra user\n */\n String getName();\n\n /**\n * The method <code>getContactRegistrationDate</code> gives us the date when both intra wallet users\n * exchanged their information and accepted each other as contacts.\n *\n * @return the date\n */\n long getContactRegistrationDate();\n\n /**\n * The method <coda>getProfileImage</coda> gives us the profile image of the represented intra wallet user\n *\n * @return the image\n */\n byte[] getProfileImage();\n\n /**\n * The method <code>getContactState</code> gives us the contact state of the represented intra\n * wallet user\n *\n * @return the contact state\n */\n ConnectionState getContactState();\n\n}",
"private SigmaProtocolMsg receiveMsgFromProver() throws ClassNotFoundException, IOException {\n\t\tSerializable msg = null;\n\t\ttry {\n\t\t\t//receive the mesage.\n\t\t\tmsg = channel.receive();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IOException(\"failed to receive the a message. The thrown message is: \" + e.getMessage());\n\t\t}\n\t\t//If the given message is not an instance of SigmaProtocolMsg, throw exception.\n\t\tif (!(msg instanceof SigmaProtocolMsg)){\n\t\t\tthrow new IllegalArgumentException(\"the given message should be an instance of SigmaProtocolMsg\");\n\t\t}\n\t\t//Return the given message.\n\t\treturn (SigmaProtocolMsg) msg;\n\t}",
"public java.lang.String getExtendedPublicKey() {\n java.lang.Object ref = extendedPublicKey_;\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 extendedPublicKey_ = s;\n }\n return s;\n }\n }",
"java.lang.String getRoutingKey();",
"public byte[] getKey() {\n return this.key;\n }",
"public java.lang.String getExtendedPublicKey() {\n java.lang.Object ref = extendedPublicKey_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n extendedPublicKey_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"private static PublicKey[] getPublicKeys() {\r\n\t\t\r\n\t\tPublicKey[] publicKeys = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tExternalInformationPortController externalInformationPort = \r\n\t\t\t\tnew ExternalInformationPortController();\r\n\t\t\t\r\n\t\t\texternalInformationPort.initialize();\r\n\t\t\t\r\n\t\t\tInetAddress informationProviderAddress = \r\n\t\t\t\tInetAddress.getByName(\r\n\t\t\t\t\t\tinternalInformationPort.getProperty(\"CASCADE_ADDRESS\")\r\n\t\t\t\t\t\t);\r\n\t\t\t\r\n\t\t\tint informationProviderPort = \r\n\t\t\t\tnew Integer(\r\n\t\t\t\t\t\tinternalInformationPort.getProperty(\"CASCADE_INFO_PORT\")\r\n\t\t\t\t\t\t);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tpublicKeys = \r\n\t\t\t\t(PublicKey[]) externalInformationPort.getInformationFromAll(\r\n\t\t\t\t\t\t\t\t\tinformationProviderAddress,\r\n\t\t\t\t\t\t\t\t\tinformationProviderPort,\r\n\t\t\t\t\t\t\t\t\tInformation.PUBLIC_KEY\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\r\n\t\t} catch (InformationRetrieveException e) {\r\n\t\t\t\r\n\t\t\tLOGGER.severe(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t\t\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t\r\n\t\t\tLOGGER.severe(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn publicKeys;\r\n\t\t\r\n\t}",
"PlatformComponentType getActorSendType();",
"public void readPublicKey(String filename){\n FileHandler fh = new FileHandler();\n Map<String, BigInteger> pkMap= fh.getKeyFromFile(filename);\n this.n = pkMap.get(\"n\");\n this.e = pkMap.get(\"key\");\n }",
"com.hps.july.persistence.WorkerKey getTechStuffKey() throws java.rmi.RemoteException;",
"PlatformComponentType getActorReceiveType();",
"java.lang.String getSubjectKeyID();",
"java.lang.String getSubjectKeyID();",
"public long getPartProducedKey() {\n\t\treturn partProducedKey;\n\t}",
"public String getKey() {\n\n return this.consumer.getKey();\n\n }",
"protected abstract String getExecutableKey();",
"public String getScriptPubKey() {\n return scriptPubKey;\n }",
"public PublicKey GetPublicKey(String filename)\n\t\t\t throws Exception {\n\t\t\t \n\t\t\t File f = new File(filename);\n\t\t\t FileInputStream fis = new FileInputStream(f);\n\t\t\t DataInputStream dis = new DataInputStream(fis);\n\t\t\t byte[] keyBytes = new byte[(int)f.length()];\n\t\t\t dis.readFully(keyBytes);\n\t\t\t dis.close();\n\n\t\t\t X509EncodedKeySpec spec =\n\t\t\t new X509EncodedKeySpec(keyBytes);\n\t\t\t KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n\t\t\t return kf.generatePublic(spec);\n\t\t\t }",
"public int getKeyTalk() {\r\n return Input.Keys.valueOf(getKeyTalkName());\r\n }"
]
| [
"0.8152904",
"0.6074288",
"0.60628206",
"0.6055289",
"0.6039479",
"0.60338956",
"0.6003901",
"0.59372276",
"0.5921882",
"0.5888652",
"0.5874502",
"0.58261955",
"0.58182317",
"0.55757535",
"0.555904",
"0.5546095",
"0.5536238",
"0.5508859",
"0.5500672",
"0.545305",
"0.5393497",
"0.532144",
"0.5307761",
"0.52650726",
"0.5227024",
"0.5215943",
"0.519815",
"0.5195247",
"0.5155497",
"0.5145955",
"0.5125019",
"0.5114523",
"0.51138216",
"0.5063119",
"0.5024614",
"0.50227076",
"0.5017155",
"0.49983174",
"0.49835736",
"0.4967074",
"0.496173",
"0.49559772",
"0.49518955",
"0.49474064",
"0.49398142",
"0.49127313",
"0.49078938",
"0.49058282",
"0.4894636",
"0.48930857",
"0.4886265",
"0.4882758",
"0.48778453",
"0.48674434",
"0.48618162",
"0.48587272",
"0.48434588",
"0.48366842",
"0.48352182",
"0.48320654",
"0.4831388",
"0.48218137",
"0.48171335",
"0.48135042",
"0.48058206",
"0.47954935",
"0.4790031",
"0.47785246",
"0.47680444",
"0.47531542",
"0.47517586",
"0.47496587",
"0.4749204",
"0.47258615",
"0.47228983",
"0.4709686",
"0.47057107",
"0.4690231",
"0.46857798",
"0.46797916",
"0.4674922",
"0.46570438",
"0.46542183",
"0.4641764",
"0.4636181",
"0.46336085",
"0.46119455",
"0.46036944",
"0.4597629",
"0.45947084",
"0.45946512",
"0.45934913",
"0.45857292",
"0.45857292",
"0.45762113",
"0.457433",
"0.45726594",
"0.45714307",
"0.45629066",
"0.4560739"
]
| 0.8810139 | 0 |
The method getActorReceiveType returns the actor receive type of the negotiation transmission | PlatformComponentType getActorReceiveType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getReceiveType () {\n\t\treturn receiveType;\n\t}",
"PlatformComponentType getActorSendType();",
"public final ActorType getType() {\n return type;\n }",
"String getActorType();",
"public ActorType getActorType() {\n return ActorDao.getActorTypeByRefId(getActorTypeRefId());\n }",
"public void setReceiveType (java.lang.String receiveType) {\n\t\tthis.receiveType = receiveType;\n\t}",
"TransmissionProtocol.Type getType();",
"NegotiationTransmissionType getTransmissionType();",
"public MessageType getType() {\n return msgType;\n }",
"public int getMsgType() {\n return msgType_;\n }",
"MessageType getType();",
"public abstract MessageType getType();",
"public abstract MessageType getType();",
"public int getMsgType() {\n return msgType_;\n }",
"public MessageProto.MSG getType() {\n MessageProto.MSG result = MessageProto.MSG.valueOf(type_);\n return result == null ? MessageProto.MSG.UNRECOGNIZED : result;\n }",
"public MessageProto.MSG getType() {\n MessageProto.MSG result = MessageProto.MSG.valueOf(type_);\n return result == null ? MessageProto.MSG.UNRECOGNIZED : result;\n }",
"public java.lang.String getReceiveAgentName() {\r\n return receiveAgentName;\r\n }",
"MessageProto.MSG getType();",
"@Override\n public Receive createReceive() {\n return receiveBuilder()\n .match(PrinterActorProtocol.OnCommand.class, greeting -> {\n System.out.println(\"**--become(createNormalReceive())\");\n getContext().become(createNormalReceive());\n })\n .match(PrinterActorProtocol.StartSelfTestCommand.class, greeting -> {\n System.out.println(\"**--become(createSelfTestModeReceive()\");\n getContext().become(createSelfTestModeReceive());\n })\n\n\n .matchAny( obj -> System.out.println(\"PritnerActor Unknown message \" + obj.getClass()) )\n .build();\n }",
"public com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType() {\n return type_;\n }",
"public int getMsgType() {\n\t\treturn msgType;\n\t}",
"public java.math.BigInteger getReceivingType() {\n return receivingType;\n }",
"public com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType() {\n return type_;\n }",
"abstract PeerType getPeerType();",
"public com.eze.ezecli.ApiInput.MessageType getMsgType() {\n return msgType_;\n }",
"public MessageType getType() {\n return m_type;\n }",
"public int getMessageType()\r\n {\r\n return msgType;\r\n }",
"@java.lang.Override\n public entities.Torrent.Message.Type getType() {\n @SuppressWarnings(\"deprecation\")\n entities.Torrent.Message.Type result = entities.Torrent.Message.Type.valueOf(type_);\n return result == null ? entities.Torrent.Message.Type.UNRECOGNIZED : result;\n }",
"public com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType getType() {\n com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType result = com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.valueOf(type_);\n return result == null ? com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.CHAT : result;\n }",
"@java.lang.Override public entities.Torrent.Message.Type getType() {\n @SuppressWarnings(\"deprecation\")\n entities.Torrent.Message.Type result = entities.Torrent.Message.Type.valueOf(type_);\n return result == null ? entities.Torrent.Message.Type.UNRECOGNIZED : result;\n }",
"public com.eze.ezecli.ApiInput.MessageType getMsgType() {\n return msgType_;\n }",
"public com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType getType() {\n com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType result = com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.valueOf(type_);\n return result == null ? com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.CHAT : result;\n }",
"public TransmissionProtocol.Type getType() {\n @SuppressWarnings(\"deprecation\")\n TransmissionProtocol.Type result = TransmissionProtocol.Type.valueOf(type_);\n return result == null ? TransmissionProtocol.Type.UNRECOGNIZED : result;\n }",
"ActorType createActorType();",
"public TransmissionProtocol.Type getType() {\n @SuppressWarnings(\"deprecation\")\n TransmissionProtocol.Type result = TransmissionProtocol.Type.valueOf(type_);\n return result == null ? TransmissionProtocol.Type.UNRECOGNIZED : result;\n }",
"public java.lang.String getReceiveAgentID() {\r\n return receiveAgentID;\r\n }",
"public String getMessageType()\r\n\t{\r\n\t\treturn this.messageType;\r\n\t}",
"public messages.Basemessage.BaseMessage.Type getType() {\n return type_;\n }",
"public com.czht.face.recognition.Czhtdev.MessageType getType() {\n com.czht.face.recognition.Czhtdev.MessageType result = com.czht.face.recognition.Czhtdev.MessageType.valueOf(type_);\n return result == null ? com.czht.face.recognition.Czhtdev.MessageType.MsgDefaultReply : result;\n }",
"public messages.Basemessage.BaseMessage.Type getType() {\n return type_;\n }",
"public String getType() {\n if (this.mInvitation != null) return TYPE_INVITATION;\n else if (this.mChatMessageFragment != null) return TYPE_CHAT_MESSAGE;\n else return null;\n }",
"public com.czht.face.recognition.Czhtdev.MessageType getType() {\n com.czht.face.recognition.Czhtdev.MessageType result = com.czht.face.recognition.Czhtdev.MessageType.valueOf(type_);\n return result == null ? com.czht.face.recognition.Czhtdev.MessageType.MsgDefaultReply : result;\n }",
"public Integer getMessageType() {\n return messageType;\n }",
"entities.Torrent.Message.Type getType();",
"public java.lang.String getMessageType() {\r\n return messageType;\r\n }",
"protected String getBehaviorType() {\n\t\treturn this.behaviorType;\n\t}",
"public Utils.MessageType getMessageType() {\n return messageType;\n }",
"NegotiationType getNegotiationType();",
"@Override\n public ActorType getType()\n {\n return ActorType.BOX;\n }",
"public java.lang.String getMsgType() {\n java.lang.Object ref = msgType_;\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 msgType_ = s;\n return s;\n }\n }",
"public proto.MessagesProtos.ClientRequest.MessageType getType() {\n\t\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t\tproto.MessagesProtos.ClientRequest.MessageType result = proto.MessagesProtos.ClientRequest.MessageType.valueOf(type_);\n\t\t\t\treturn result == null ? proto.MessagesProtos.ClientRequest.MessageType.UNRECOGNIZED : result;\n\t\t\t}",
"com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType getType();",
"public proto.MessagesProtos.ClientRequest.MessageType getType() {\n\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\tproto.MessagesProtos.ClientRequest.MessageType result = proto.MessagesProtos.ClientRequest.MessageType.valueOf(type_);\n\t\t\treturn result == null ? proto.MessagesProtos.ClientRequest.MessageType.UNRECOGNIZED : result;\n\t\t}",
"public String getRemoteChannelType() {\n return CHANNEL_TYPE_PREFIX + \"-\" + type.name();\n }",
"com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType();",
"public MessageType getMessageType() {\n\t\treturn messageType;\n\t}",
"im.turms.common.constant.ChatType getChatType();",
"public java.lang.String getMsgType() {\n java.lang.Object ref = msgType_;\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 msgType_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public MessageType getMessageType() {\n return messageType;\n }",
"protected void sequence_ReceiverType(ISerializationContext context, ReceiverType semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.RECEIVER_TYPE__TYPE) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.RECEIVER_TYPE__TYPE));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getReceiverTypeAccess().getTypeTypeParserRuleCall_0(), semanticObject.getType());\r\n\t\tfeeder.finish();\r\n\t}",
"public String getReceiverAreaType() {\n return receiverAreaType;\n }",
"public EventOriginatorType getType() {\n\t\treturn type;\n\t}",
"com.randomm.server.ProtoBufMessage.Message.InputType getType();",
"proto.MessagesProtos.ClientRequest.MessageType getType();",
"public OutlookAttachmentType getType()\n {\n return getConstant(\"Type\", OutlookAttachmentType.class);\n }",
"public String getReceiveName() {\n return receiveName;\n }",
"public com.randomm.server.ProtoBufMessage.Message.InputType getType() {\n return type_;\n }",
"ru.ifmo.java.servertest.protocol.TestingProtocol.ServerType getType();",
"public String getReplyType() {\n/* 307 */ return getCOSObject().getNameAsString(\"RT\", \"R\");\n/* */ }",
"public com.randomm.server.ProtoBufMessage.Message.InputType getType() {\n return type_;\n }",
"messages.Basemessage.BaseMessage.Type getType();",
"public String getReceiver() {\n return Receiver;\n }",
"public String getType() {\n try {\n return (String)replyHeaders.getHeader(HeaderSet.TYPE);\n } catch (IOException e) {\n return null;\n }\n }",
"public org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type getType() {\n org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type result = org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type.valueOf(type_);\n return result == null ? org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type.MESSAGE : result;\n }",
"protected abstract MessageType getMessageType();",
"public org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type getType() {\n org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type result = org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type.valueOf(type_);\n return result == null ? org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type.MESSAGE : result;\n }",
"public void setReceiveAgentName(java.lang.String receiveAgentName) {\r\n this.receiveAgentName = receiveAgentName;\r\n }",
"public String getMessageType() {\n return type.getMessage().getName();\n }",
"public static Receiver getReceiver() {\n return receiver;\n }",
"public abstract String getMessageType();",
"public void setReceivingType(java.math.BigInteger receivingType) {\n this.receivingType = receivingType;\n }",
"public void setReceiveAgentID(java.lang.String receiveAgentID) {\r\n this.receiveAgentID = receiveAgentID;\r\n }",
"com.czht.face.recognition.Czhtdev.MessageType getType();",
"public EnnemyType getType()\n\t{\n\t\treturn type;\n\t}",
"public String getRoleType() {\n return roleType;\n }",
"public String getRoleType() {\n return roleType;\n }",
"public String getMatchType() {\n return getStringProperty(\"MatchType\");\n }",
"public String getRouteType() {\n return routeType;\n }",
"public TurnType getType() {\n\t\treturn type;\n\t}",
"public String getReceiver() {\n Object ref = receiver_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n }\n }",
"public int getReceiveObject() {\n\t\treturn receiveObject;\n\t}",
"public com.google.protobuf.ByteString\n getMsgTypeBytes() {\n java.lang.Object ref = msgType_;\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 msgType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getReceiver();",
"@Override\n public Receive createReceive() {\n return receiveBuilder()\n\n .match(WhoToGreet.class, wtg -> {\n // -> uses the internal state of wtg and modify this internal state (this.greeting)\n this.greeting = \"Who to greet? -> \" + wtg.who;\n\n }).match(Greet.class, x -> {\n // -> send a message to another actor (thread)\n printerActor.tell(new Printer.Greeting(greeting), getSelf());\n\n }).build();\n }",
"public final String getSubType() {\n return this.subtype;\n }",
"@objid (\"47a6d36a-07a0-47b5-ac0d-05c42d9fcecf\")\n EList<AcceptSignalAction> getReceiver();",
"public String getReceiver() {\n Object ref = receiver_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getMsgTypeBytes() {\n java.lang.Object ref = msgType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n msgType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public abstract MessageType getHandledMessageType();",
"public java.lang.String getReceiveAgentAbbreviation() {\r\n return receiveAgentAbbreviation;\r\n }"
]
| [
"0.7412349",
"0.7185809",
"0.7138431",
"0.7035225",
"0.6708562",
"0.63717103",
"0.6349242",
"0.628993",
"0.62520355",
"0.60542065",
"0.60507137",
"0.6045657",
"0.6045657",
"0.60396993",
"0.594954",
"0.59329456",
"0.59315187",
"0.59299165",
"0.5925522",
"0.59142864",
"0.5888598",
"0.5888345",
"0.58828455",
"0.5878822",
"0.58665156",
"0.5865729",
"0.58477485",
"0.58477396",
"0.58396924",
"0.5836147",
"0.5812626",
"0.57844585",
"0.57794815",
"0.5769975",
"0.57623506",
"0.5752627",
"0.57396317",
"0.571122",
"0.5708419",
"0.5707101",
"0.56991374",
"0.56978047",
"0.5679756",
"0.56539375",
"0.56473184",
"0.5633902",
"0.562072",
"0.5556969",
"0.5550353",
"0.55234075",
"0.5511452",
"0.55037",
"0.5496879",
"0.5489279",
"0.5482246",
"0.547389",
"0.54699284",
"0.5468334",
"0.54631937",
"0.5456625",
"0.5447447",
"0.5421091",
"0.54185754",
"0.5398234",
"0.5376309",
"0.5358828",
"0.53586715",
"0.5342431",
"0.53381896",
"0.53313655",
"0.5302535",
"0.5289392",
"0.52865744",
"0.526385",
"0.52585787",
"0.5254199",
"0.5250112",
"0.5239599",
"0.5233881",
"0.5228642",
"0.5211367",
"0.5210322",
"0.5177102",
"0.517678",
"0.51666534",
"0.51666534",
"0.5159235",
"0.5156797",
"0.5152723",
"0.5138999",
"0.51291776",
"0.5112251",
"0.508604",
"0.5078243",
"0.5073736",
"0.5071794",
"0.5070153",
"0.506585",
"0.50562656",
"0.50405455"
]
| 0.83070785 | 0 |
The method getTransmissionType returns the type of the negotiation transmission | NegotiationTransmissionType getTransmissionType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TransmissionProtocol.Type getType();",
"void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);",
"NegotiationTransmissionState getTransmissionState();",
"public TransmissionProtocol.Type getType() {\n @SuppressWarnings(\"deprecation\")\n TransmissionProtocol.Type result = TransmissionProtocol.Type.valueOf(type_);\n return result == null ? TransmissionProtocol.Type.UNRECOGNIZED : result;\n }",
"public TransmissionProtocol.Type getType() {\n @SuppressWarnings(\"deprecation\")\n TransmissionProtocol.Type result = TransmissionProtocol.Type.valueOf(type_);\n return result == null ? TransmissionProtocol.Type.UNRECOGNIZED : result;\n }",
"NegotiationTransactionType getNegotiationTransactionType();",
"NegotiationType getNegotiationType();",
"public String getTransmitMode()\r\n\t{\r\n\t\treturn transmitMode;\r\n\t}",
"public Transmission getTransmission() {\n return transmission;\n }",
"public String getRequestType() { return this.requestType; }",
"public final SettlementType getType() {\n return type;\n }",
"public static String getRequestType(){\n return requestType;\n }",
"public java.math.BigInteger getReceivingType() {\n return receivingType;\n }",
"@java.lang.Override public entities.Torrent.Message.Type getType() {\n @SuppressWarnings(\"deprecation\")\n entities.Torrent.Message.Type result = entities.Torrent.Message.Type.valueOf(type_);\n return result == null ? entities.Torrent.Message.Type.UNRECOGNIZED : result;\n }",
"@java.lang.Override\n public entities.Torrent.Message.Type getType() {\n @SuppressWarnings(\"deprecation\")\n entities.Torrent.Message.Type result = entities.Torrent.Message.Type.valueOf(type_);\n return result == null ? entities.Torrent.Message.Type.UNRECOGNIZED : result;\n }",
"public ZserioType getRequestType()\n {\n return requestType;\n }",
"public java.lang.String getRequestType() {\n return requestType;\n }",
"public java.lang.String getReceiveType () {\n\t\treturn receiveType;\n\t}",
"public java.lang.String getSettlementType() {\n return settlementType;\n }",
"public TransactionType getTransactionType()\n {\n return transactionType;\n }",
"public String getNetworkType() {\n // Whether EDGE, UMTS, etc...\n return SystemProperties.get(TelephonyProperties.PROPERTY_DATA_NETWORK_TYPE, \"Unknown\");\n }",
"public proto.MessagesProtos.ClientRequest.MessageType getType() {\n\t\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t\tproto.MessagesProtos.ClientRequest.MessageType result = proto.MessagesProtos.ClientRequest.MessageType.valueOf(type_);\n\t\t\t\treturn result == null ? proto.MessagesProtos.ClientRequest.MessageType.UNRECOGNIZED : result;\n\t\t\t}",
"public proto.MessagesProtos.ClientRequest.MessageType getType() {\n\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\tproto.MessagesProtos.ClientRequest.MessageType result = proto.MessagesProtos.ClientRequest.MessageType.valueOf(type_);\n\t\t\treturn result == null ? proto.MessagesProtos.ClientRequest.MessageType.UNRECOGNIZED : result;\n\t\t}",
"MessageType getType();",
"public RequestType getRequestType(){\n\t\t\treturn this.type;\n\t\t}",
"@Override\n\tpublic VehicleType getVehicleType() {\n\t\treturn vehicleType;\n\t}",
"void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);",
"public String getrType() {\n return rType;\n }",
"public interface NegotiationTransmission {\n\n /**\n * The method <code>getTransmissionId</code> returns the transmission id of the negotiation transmission\n * @return an UUID the transmission id of the negotiation transmission\n */\n UUID getTransmissionId();\n\n /**\n * The method <code>getTransactionId</code> returns the transaction id of the negotiation transmission\n * @return an UUID the transaction id of the negotiation transmission\n */\n UUID getTransactionId();\n\n /**\n * The method <code>getNegotiationId</code> returns the negotiation id of the negotiation transmission\n * @return an UUID the negotiation id of the negotiation\n */\n UUID getNegotiationId();\n\n /**\n * The method <code>getNegotiationTransactionType</code> returns the transaction type of the negotiation transmission\n * @return an NegotiationTransactionType of the transaction type\n */\n NegotiationTransactionType getNegotiationTransactionType();\n\n /**\n * The method <code>getPublicKeyActorSend</code> returns the public key the actor send of the negotiation transaction\n * @return an String the public key of the actor send\n */\n String getPublicKeyActorSend();\n\n /**\n * The method <code>getActorSendType</code> returns the actor send type of the negotiation transmission\n * @return an PlatformComponentType of the actor send type\n */\n PlatformComponentType getActorSendType();\n\n /**\n * The method <code>getPublicKeyActorReceive</code> returns the public key the actor receive of the negotiation transmission\n * @return an String the public key of the actor receive\n */\n String getPublicKeyActorReceive();\n\n /**\n * The method <code>getActorReceiveType</code> returns the actor receive type of the negotiation transmission\n * @return an PlatformComponentType of the actor receive type\n */\n PlatformComponentType getActorReceiveType();\n\n /**\n * The method <code>getTransmissionType</code> returns the type of the negotiation transmission\n * @return an NegotiationTransmissionType of the negotiation type\n */\n NegotiationTransmissionType getTransmissionType();\n\n /**\n * The method <code>getTransmissionState</code> returns the state of the negotiation transmission\n * @return an NegotiationTransmissionStateof the negotiation state\n */\n NegotiationTransmissionState getTransmissionState();\n\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an NegotiationType the negotiation type of negotiation\n */\n NegotiationType getNegotiationType();\n\n void setNegotiationType(NegotiationType negotiationType);\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an String the xml of negotiation\n */\n String getNegotiationXML();\n\n /**\n * The method <code>getTimestamp</code> returns the time stamp of the negotiation transmission\n * @return an Long the time stamp of the negotiation transmission\n */\n long getTimestamp();\n\n /**\n * The method <code>isPendingToRead</code> returns if this pending to read the negotiation transmission\n * @return an boolean if this pending to read\n */\n boolean isPendingToRead();\n\n /**\n * The method <code>confirmRead</code> confirm the read of the negotiation trasmission\n */\n void confirmRead();\n\n /**\n * The method <code>setNegotiationTransactionType</code> set the negotiation transaction type\n */\n void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);\n\n /**\n * The method <code>setTransmissionType</code> set the Transmission Type\n */\n void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);\n\n /**\n * The method <code>setTransmissionState</code> set the Transmission State\n */\n void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);\n\n public boolean isFlagRead();\n\n public void setFlagRead(boolean flagRead);\n\n public int getSentCount();\n\n public void setSentCount(int sentCount);\n\n public UUID getResponseToNotificationId();\n\n public void setResponseToNotificationId(UUID responseToNotificationId);\n\n public boolean isPendingFlag();\n\n public void setPendingFlag(boolean pendingFlag);\n\n public String toJson();\n\n}",
"public Integer getMotType() {\n\t\treturn motType;\n\t}",
"public Boolean getSendType() {\n return sendType;\n }",
"public int getReqType()\r\n {\r\n return safeConvertInt(getAttribute(\"type\"));\r\n }",
"public String getRequestType() {\r\n return (String) getAttributeInternal(REQUESTTYPE);\r\n }",
"public int getMsgType() {\n return msgType_;\n }",
"public ConditionConnectiveType getType() {\n\t\treturn type;\n\t}",
"public String getDeliverytype() {\n return deliverytype;\n }",
"public String getProposedTransactionType() {\n return proposedTransactionType;\n }",
"PlatformComponentType getActorSendType();",
"public int getMsgType() {\n return msgType_;\n }",
"public MessageType getType() {\n return m_type;\n }",
"public String obtenirType() {\n\t\treturn this.type;\n\t}",
"public String getTrafficType() {\n return this.trafficType;\n }",
"public int getMsgType() {\n\t\treturn msgType;\n\t}",
"public String getMessageType()\r\n\t{\r\n\t\treturn this.messageType;\r\n\t}",
"public VehicleType getVehicleType() {\n\t\treturn vehicleType;\n\t}",
"public Integer getSettlementtype() {\n return settlementtype;\n }",
"public void setTransmission(Transmission transmission) {\n this.transmission = transmission;\n }",
"public teledon.network.protobuffprotocol.TeledonProtobufs.TeledonRequest.Type getType() {\n teledon.network.protobuffprotocol.TeledonProtobufs.TeledonRequest.Type result = teledon.network.protobuffprotocol.TeledonProtobufs.TeledonRequest.Type.valueOf(type_);\n return result == null ? teledon.network.protobuffprotocol.TeledonProtobufs.TeledonRequest.Type.UNRECOGNIZED : result;\n }",
"public teledon.network.protobuffprotocol.TeledonProtobufs.TeledonRequest.Type getType() {\n teledon.network.protobuffprotocol.TeledonProtobufs.TeledonRequest.Type result = teledon.network.protobuffprotocol.TeledonProtobufs.TeledonRequest.Type.valueOf(type_);\n return result == null ? teledon.network.protobuffprotocol.TeledonProtobufs.TeledonRequest.Type.UNRECOGNIZED : result;\n }",
"public String get_type()\r\n\t{\r\n\t\treturn this.type;\r\n\t}",
"public SignalType getType() {\n return type;\n }",
"public String getTRS_TYPE() {\r\n return TRS_TYPE;\r\n }",
"public Integer getMessageType() {\n return messageType;\n }",
"void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);",
"public java.lang.CharSequence getVehicleType() {\n return vehicleType;\n }",
"public java.lang.CharSequence getVehicleType() {\n return vehicleType;\n }",
"@Override\n public String getCondimentType() {\n return TYPE;\n }",
"public String getType()\n \t{\n \t\treturn this.type;\n \t}",
"private String getTelephonyNetworkType() {\n assert NETWORK_TYPES[14].compareTo(\"EHRPD\") == 0;\n\n int networkType = telephonyManager.getNetworkType();\n if (networkType < NETWORK_TYPES.length) {\n return NETWORK_TYPES[telephonyManager.getNetworkType()];\n } else {\n return \"Unrecognized: \" + networkType;\n }\n }",
"public String getType()\r\n {\r\n return type;\r\n }",
"public String getType()\r\n {\r\n return mType;\r\n }",
"public int getMessageType()\r\n {\r\n return msgType;\r\n }",
"public String getType() {\r\n return this.type;\r\n }",
"public String getNetworkType() {\n return this.mNetInfo.getTypeName();\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\r\n\t\treturn type;\r\r\n\t}",
"public String getType() {\n return _type;\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n\t\treturn this.type;\r\n\t}",
"public String getType()\r\n\t{\r\n\t\treturn type;\r\n\t}",
"public java.lang.String getMessageType() {\r\n return messageType;\r\n }",
"public String getType() {\n\t\treturn _type;\n\t}",
"@Override\n public byte getSubtype() {\n return SUBTYPE_MONETARY_SYSTEM_CURRENCY_TRANSFER;\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n\t return mType;\n\t}",
"public messages.Basemessage.BaseMessage.Type getType() {\n return type_;\n }",
"public String getType() {\n return m_type;\n }",
"public String getType() {\n return type; \n }",
"public String getType() { return type; }",
"public String getTYPE() {\n return TYPE;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\n return type;\n }"
]
| [
"0.81099635",
"0.7784961",
"0.725671",
"0.7155018",
"0.71400875",
"0.7065016",
"0.6990406",
"0.6770984",
"0.65170795",
"0.63940454",
"0.6392178",
"0.6388294",
"0.6344591",
"0.63322175",
"0.6319038",
"0.6310594",
"0.6265612",
"0.6176075",
"0.6146017",
"0.60986465",
"0.60855365",
"0.60803586",
"0.606216",
"0.60337776",
"0.6019388",
"0.60162425",
"0.6014606",
"0.59971696",
"0.5993027",
"0.5987607",
"0.5954663",
"0.5954001",
"0.594056",
"0.59391516",
"0.5929586",
"0.59283704",
"0.5923587",
"0.5922144",
"0.59170794",
"0.591197",
"0.5909588",
"0.5909162",
"0.5905417",
"0.59022784",
"0.59002274",
"0.5895324",
"0.5889573",
"0.58878165",
"0.5874703",
"0.5872617",
"0.586664",
"0.5863237",
"0.58578575",
"0.585231",
"0.5843038",
"0.5842474",
"0.5842404",
"0.5829252",
"0.5822667",
"0.58172435",
"0.58123475",
"0.5811664",
"0.5809529",
"0.58047503",
"0.58036894",
"0.58006346",
"0.57999134",
"0.5798633",
"0.5798633",
"0.5798633",
"0.5798633",
"0.5798633",
"0.57971257",
"0.5792257",
"0.5785569",
"0.578516",
"0.57846504",
"0.5780829",
"0.5780025",
"0.5780025",
"0.5780025",
"0.5780025",
"0.5780025",
"0.5780025",
"0.5780025",
"0.5780025",
"0.5780025",
"0.5780025",
"0.5779674",
"0.57790494",
"0.5779019",
"0.57783014",
"0.5773171",
"0.5771298",
"0.5761972",
"0.5761972",
"0.5759851",
"0.5759851",
"0.5759851",
"0.57569265"
]
| 0.9372869 | 0 |
The method getTransmissionState returns the state of the negotiation transmission | NegotiationTransmissionState getTransmissionState(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);",
"NegotiationTransmissionType getTransmissionType();",
"public SimulationState getState() {\n\t\treturn state;\n\t}",
"public java.lang.String getSenderState() {\r\n return senderState;\r\n }",
"public String getTransactionState();",
"public Integer getVehicleState() {\n return vehicleState;\n }",
"public java.lang.String getReceiverState() {\r\n return receiverState;\r\n }",
"TransmissionProtocol.Status getStatus();",
"public TSLexerState getState() {\r\n \t\treturn state;\r\n \t}",
"public RequestState getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\t\t\r\n\t}",
"public String getState() {\n\t\treturn state;\n\t}",
"public String getState() \n\t{\n\t\treturn state;\n\t}",
"public String getState()\n\t{\n\t\treturn state;\n\t}",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public Transmission getTransmission() {\n return transmission;\n }",
"public Byte getState() {\n return state;\n }",
"public Byte getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public com.trg.fms.api.TripState getState() {\n return state;\n }",
"public com.trg.fms.api.TripState getState() {\n return state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return state;\n }",
"public int getRequestState() {\n\t\treturn _tempNoTiceShipMessage.getRequestState();\n\t}",
"public String getState()\n {\n \treturn state;\n }",
"@Override\n\tpublic String getState() {\n\t\treturn this.state;\n\t}",
"public String getState() {\n return this.State;\n }",
"public int getState(){\n\t\treturn state;\n\t}",
"public String getState() { return state; }",
"public Integer getState() {\r\n return state;\r\n }",
"public Integer getState() {\r\n return state;\r\n }",
"public int getState() {\n\t\treturn state;\n\t}",
"public byte getState() {\n return myState;\n }",
"public int getState() {\n \t\treturn state;\n \t}",
"public String getNetworkState() {\n return this.NetworkState;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public boolean getState() {\n\t\treturn state;\n\t}",
"public int getState() {\n return state;\n }",
"public int getState() {\n return state;\n }",
"public int getState() {return state;}",
"public int getState() {return state;}",
"public STATE getState() {\n\t\n\t\treturn state;\n\t}",
"public String getTransmitMode()\r\n\t{\r\n\t\treturn transmitMode;\r\n\t}",
"public java.lang.String getState() {\r\n return state;\r\n }",
"public S getState() {\r\n\t\treturn state;\r\n\t}",
"public boolean getState( ) { return state; }",
"public int getState() {\n return this.mState;\n }",
"public Boolean getState() {\n return state;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state;\n }",
"public State getState() {\n\t\treturn state;\n\t}",
"public State getState() {\n\t\treturn state;\n\t}",
"BGPv4FSMState state();",
"ESMFState getState();",
"ResponseState getState();",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"@Nonnull\n NetworkState getNetworkState();",
"public java.lang.String getState() {\n return state;\n }",
"public java.lang.String getState() {\n return state;\n }",
"public java.lang.String getState () {\n\t\treturn state;\n\t}",
"public int getState() {\n return m_state;\n }",
"public int getState(){\n return state;\n }",
"public State getState()\r\n\t{\r\n\t\treturn this.state;\r\n\t}",
"public int getState() {\r\n\t\treturn dState;\r\n\t}",
"public int getState() {\n return mState;\n }",
"public String getState() {\n\t\treturn this.state_rep;\n\t}"
]
| [
"0.7045935",
"0.7000938",
"0.64398926",
"0.63858503",
"0.63739717",
"0.6370873",
"0.63699883",
"0.6357185",
"0.6348896",
"0.6348749",
"0.6348118",
"0.6348118",
"0.6348118",
"0.6337273",
"0.6337273",
"0.6317692",
"0.6287369",
"0.62871116",
"0.6285377",
"0.62849116",
"0.62849116",
"0.62849116",
"0.62849116",
"0.62504536",
"0.6243379",
"0.6243379",
"0.6242914",
"0.6242914",
"0.6242914",
"0.6242914",
"0.6242914",
"0.6242914",
"0.6242914",
"0.6242914",
"0.6242914",
"0.6242914",
"0.6242914",
"0.6242914",
"0.6242914",
"0.62387323",
"0.62385607",
"0.62192005",
"0.62192005",
"0.6202557",
"0.62015355",
"0.6189436",
"0.6180328",
"0.6178745",
"0.6177388",
"0.61771804",
"0.61744064",
"0.61744064",
"0.6161659",
"0.61561567",
"0.61539817",
"0.6147095",
"0.6146939",
"0.6146939",
"0.6146939",
"0.6146939",
"0.6146939",
"0.6146939",
"0.61421174",
"0.6128683",
"0.6128683",
"0.6117664",
"0.6117664",
"0.6112947",
"0.6107267",
"0.6097363",
"0.60961926",
"0.60949516",
"0.6091952",
"0.60825586",
"0.6081887",
"0.6081887",
"0.6081887",
"0.6081887",
"0.60815156",
"0.60813606",
"0.6059229",
"0.6059229",
"0.605893",
"0.6049578",
"0.60451835",
"0.60443234",
"0.60443234",
"0.60443234",
"0.60443234",
"0.60443234",
"0.6041504",
"0.60270363",
"0.60270363",
"0.60232186",
"0.6015692",
"0.60134065",
"0.6011313",
"0.600882",
"0.6004277",
"0.60030854"
]
| 0.93357223 | 0 |
The method getNegotiationXML returns the xml of the negotiation relationship with negotiation transmission | NegotiationType getNegotiationType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getNegotiationXML();",
"NegotiationTransactionType getNegotiationTransactionType();",
"UUID getNegotiationId();",
"void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);",
"public String getXml() {\n\t\treturn _xml;\n\t}",
"public String getXml() {\n return xml;\n }",
"NegotiationTransmissionType getTransmissionType();",
"public String getXML() {\n\t\treturn getXML(false);\n\t}",
"public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( VolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"public ContentNegotiationManager getContentNegotiationManager()\n/* */ {\n/* 638 */ return this.contentNegotiationManager;\n/* */ }",
"public java.lang.String getXml();",
"public String getSenderXML() {\n return sender.toXML();\n }",
"protected String xmlType()\n {\n return PRS_XML;\n }",
"void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);",
"public String getXMLConfiguration()\n {\n return this.XMLConfiguration;\n }",
"public String getXml()\n {\n StringBuffer result = new StringBuffer(256);\n\n result.append(\"<importOptions>\");\n\n result.append(m_fileOptions.asXML());\n result.append(getOtherXml());\n\n result.append(\"</importOptions>\");\n\n return result.toString();\n }",
"@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"abstract protected String getOtherXml();",
"@GET\n @Produces(MediaType.APPLICATION_XML)\n public String getXml() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }",
"public String getInXml() {\n return inXml;\n }",
"public String getReplicationXml();",
"public interface NegotiationTransmission {\n\n /**\n * The method <code>getTransmissionId</code> returns the transmission id of the negotiation transmission\n * @return an UUID the transmission id of the negotiation transmission\n */\n UUID getTransmissionId();\n\n /**\n * The method <code>getTransactionId</code> returns the transaction id of the negotiation transmission\n * @return an UUID the transaction id of the negotiation transmission\n */\n UUID getTransactionId();\n\n /**\n * The method <code>getNegotiationId</code> returns the negotiation id of the negotiation transmission\n * @return an UUID the negotiation id of the negotiation\n */\n UUID getNegotiationId();\n\n /**\n * The method <code>getNegotiationTransactionType</code> returns the transaction type of the negotiation transmission\n * @return an NegotiationTransactionType of the transaction type\n */\n NegotiationTransactionType getNegotiationTransactionType();\n\n /**\n * The method <code>getPublicKeyActorSend</code> returns the public key the actor send of the negotiation transaction\n * @return an String the public key of the actor send\n */\n String getPublicKeyActorSend();\n\n /**\n * The method <code>getActorSendType</code> returns the actor send type of the negotiation transmission\n * @return an PlatformComponentType of the actor send type\n */\n PlatformComponentType getActorSendType();\n\n /**\n * The method <code>getPublicKeyActorReceive</code> returns the public key the actor receive of the negotiation transmission\n * @return an String the public key of the actor receive\n */\n String getPublicKeyActorReceive();\n\n /**\n * The method <code>getActorReceiveType</code> returns the actor receive type of the negotiation transmission\n * @return an PlatformComponentType of the actor receive type\n */\n PlatformComponentType getActorReceiveType();\n\n /**\n * The method <code>getTransmissionType</code> returns the type of the negotiation transmission\n * @return an NegotiationTransmissionType of the negotiation type\n */\n NegotiationTransmissionType getTransmissionType();\n\n /**\n * The method <code>getTransmissionState</code> returns the state of the negotiation transmission\n * @return an NegotiationTransmissionStateof the negotiation state\n */\n NegotiationTransmissionState getTransmissionState();\n\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an NegotiationType the negotiation type of negotiation\n */\n NegotiationType getNegotiationType();\n\n void setNegotiationType(NegotiationType negotiationType);\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an String the xml of negotiation\n */\n String getNegotiationXML();\n\n /**\n * The method <code>getTimestamp</code> returns the time stamp of the negotiation transmission\n * @return an Long the time stamp of the negotiation transmission\n */\n long getTimestamp();\n\n /**\n * The method <code>isPendingToRead</code> returns if this pending to read the negotiation transmission\n * @return an boolean if this pending to read\n */\n boolean isPendingToRead();\n\n /**\n * The method <code>confirmRead</code> confirm the read of the negotiation trasmission\n */\n void confirmRead();\n\n /**\n * The method <code>setNegotiationTransactionType</code> set the negotiation transaction type\n */\n void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);\n\n /**\n * The method <code>setTransmissionType</code> set the Transmission Type\n */\n void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);\n\n /**\n * The method <code>setTransmissionState</code> set the Transmission State\n */\n void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);\n\n public boolean isFlagRead();\n\n public void setFlagRead(boolean flagRead);\n\n public int getSentCount();\n\n public void setSentCount(int sentCount);\n\n public UUID getResponseToNotificationId();\n\n public void setResponseToNotificationId(UUID responseToNotificationId);\n\n public boolean isPendingFlag();\n\n public void setPendingFlag(boolean pendingFlag);\n\n public String toJson();\n\n}",
"public String get_is_EncryptedXML() {\n String retVal = new String(\"<encrypted>\");\n if (getEncryptionScheme().equals(\"NO\")) {\n retVal += \"no encryption\"; }\n else {\n retVal += getEncryptionScheme(); }\n retVal += \"</encrypted>\";\n return retVal;\n }",
"public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( QuotaUserRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"public String toXML() {\n StringBuilder xml = new StringBuilder();\n\n //just do the decomposition facts (not the surrounding element) - to keep life simple\n xml.append(super.toXML());\n\n for (YParameter parameter : _enablementParameters.values()) {\n xml.append(parameter.toXML());\n }\n for (YAWLServiceReference service : _yawlServices.values()) {\n xml.append(service.toXML());\n }\n return xml.toString();\n }",
"@GET\r\n @Produces(\"application/xml\")\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"@Override\n public String toXML() {\n if (_xml == null)\n _xml = String.format(XML, getStanzaId(), to);\n return _xml;\n }",
"public String toXml()\n\t{\n\t\ttry {\n\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\tStringWriter buffer = new StringWriter();\n\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n\t\t\ttransformer.transform(new DOMSource(conferenceInfo), new StreamResult(buffer));\n\t\t\treturn buffer.toString();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public boolean getAutoNegotiation() {\n return autoNegotiation;\n }",
"NegotiationTransmissionState getTransmissionState();",
"public XML getXML() {\n return _mxo;\n }",
"public java.lang.String getResponseXml(){\n return localResponseXml;\n }",
"public XmlElement getConfig()\n {\n return m_xml;\n }",
"public String toXml() {\n\t\treturn(toString());\n\t}",
"public Long getXmlId() {\n return xmlId;\n }",
"public String getResponseXml() {\r\n if (null == recentResponse)\r\n return \"\";\r\n else\r\n return recentResponse.toString();\r\n }",
"@Get(\"xml\")\n public Representation toXml() {\n\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = getMetadata(status, access,\n \t\t\tgetRequestQueryValues());\n \tmetadata.remove(0);\n\n List<String> pathsToMetadata = buildPathsToMetadata(metadata);\n\n String xmlOutput = buildXmlOutput(pathsToMetadata);\n\n // Returns the XML representation of this document.\n StringRepresentation representation = new StringRepresentation(xmlOutput,\n MediaType.APPLICATION_XML);\n\n return representation;\n }",
"void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);",
"public String toXML() {\n return null;\n }",
"public static String getXMLElementTagName() {\n return \"nationOptions\";\n }",
"public String toXML() {\n return null;\n }",
"public java.lang.String getRELATION_ID() {\r\n return RELATION_ID;\r\n }",
"private String getAllConfigsAsXML() {\n StringBuilder configOutput = new StringBuilder();\n //getConfigParams\n configOutput.append(Configuration.getInstance().getXmlOutput());\n //getRocketsConfiguration\n configOutput.append(RocketsConfiguration.getInstance().getXmlOutput());\n //getCountries\n CountriesList countriesList = (CountriesList) AppContext.getContext().getBean(AppSpringBeans.COUNTRIES_BEAN);\n configOutput.append(countriesList.getListInXML());\n //getWeaponConfiguration\n configOutput.append(WeaponConfiguration.getInstance().getXmlOutput());\n //getPerksConfiguration\n configOutput.append(\"\\n\");\n configOutput.append(PerksConfiguration.getInstance().getXmlOutput());\n //getRankingRules\n ScoringRules scoreRules = (ScoringRules) AppContext.getContext().getBean(AppSpringBeans.SCORING_RULES_BEAN);\n configOutput.append(scoreRules.rankingRulesXml());\n\n configOutput.append(AchievementsConfiguration.getInstance().getXmlOutput());\n\n configOutput.append(\"\\n\");\n configOutput.append(AvatarsConfiguration.getInstance().getXmlOutput());\n\n\n return configOutput.toString();\n }",
"public java.lang.String getXmlx() {\r\n return localXmlx;\r\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public Document getXML() {\n\t\treturn null;\n\t}",
"public String getReceiversXML() {\n Enumeration allReceivers = receivers.elements();\n String retVal = new String();\n while (allReceivers.hasMoreElements()) {\n FIPA_AID_Address currentAddr = (FIPA_AID_Address) allReceivers.nextElement();\n retVal += currentAddr.toXML();\n }\n return retVal;\n }",
"public String getXmlns()\r\n\t{\r\n\t\treturn xmlns;\r\n\t}",
"public String getXMLName() {\n return _xmlName;\n }",
"public java.lang.String getXMLName()\n {\n return xmlName;\n }",
"public java.lang.String getXMLName()\n {\n return xmlName;\n }",
"public java.lang.String getXMLName()\n {\n return xmlName;\n }",
"public Object getPropagationId()\n {\n return propagationId;\n }",
"@Override\n public String getXmlVersion() {\n return mXml11 ? XmlConsts.XML_V_11_STR : XmlConsts.XML_V_10_STR;\n }",
"@Override\n\tpublic String getFormat() {\n\t\treturn \"xml\";\n\t}",
"public Object answer() {\n return getParticipantXMLString();\n }",
"public String receivedToXML() {\n if (received.isEmpty()) {\n FIPA_Received frec = new FIPA_Received();\n Enumeration allRec = getFIPAReceivers();\n FIPA_AID_Address addr = (FIPA_AID_Address) allRec.nextElement();\n String rec = (String) addr.getAddresses().firstElement();\n frec.setReceivedBy(rec);\n frec.setReceivedDate(FIPA_Date.getDate());\n return frec.toXML(); }\n else {\n String retVal = new String();\n Enumeration allRecs = received.elements();\n while (allRecs.hasMoreElements()) {\n retVal+= ((FIPA_Received)allRecs.nextElement()).toXML();\n }\n \n return retVal;\n }\n }",
"String toXML() throws RemoteException;",
"public void setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)\n/* */ {\n/* 630 */ this.contentNegotiationManager = contentNegotiationManager;\n/* */ }",
"public String getAxis2xml() {\r\n return axis2xml;\r\n }",
"@Override\n\tpublic void receivedNegotiation(int arg0, int arg1) {\n\t\t\n\t}",
"public String prepareContractNegotiation() {\n\t\tif (selectedThings.size() == 1) {\n\t\t\t// in this case prefill the dataContract based on the data contract\n\t\t\t// template of the thing\n\t\t\tdataContract.setDataRights(selectedThings.get(0).getDataRights());\n\t\t\tdataContract.setPricingModel(selectedThings.get(0).getPricingModel());\n\t\t\tdataContract.setControlAndRelationship(selectedThings.get(0).getControlAndRelationship());\n\t\t\tdataContract.setPurchasingPolicy(selectedThings.get(0).getPurchasingPolicy());\n\t\t}\n\n\t\treturn \"dc_conclude.xhtml?faces-redirect=true\";\n\t}",
"public String getNation() {\n return nation;\n }",
"@Override\n public void toXml(XmlContext xc) {\n\n }",
"public String getModeInfoXML(int requestID) {\n\t\tString info = \"\";\n\t\tint activeTeamId = -1;\n\t\tString activeTeamName = \"\";\n\t\tif(getActiveTeam() != null) {\n\t\t\tactiveTeamId = getActiveTeam().id;\n\t\t\tactiveTeamName = getActiveTeam().name;\n\t\t}\n\t\t\n\t\tif(sessionState.equals(SessionState.PlayerTurn)) {\n\t\t\tinfo += (\"<turn_id>\" + activeTeamId + \"</turn_id>\");\n\t\t\tif(getActiveTeam() != null) {\n\t\t\t\tinfo += (\"<turn_team_name>\" + activeTeamName + \"</turn_team_name>\");\n\t\t\t}\n\t\t\tinfo += (\"<your_turn>\" + (schoolClass.findTeamIdWithStudentId(requestID) == activeTeamId) + \"</your_turn>\");\n\t\t}\n\t\telse if(sessionState.equals(SessionState.Challenge)) {\n\t\t\t/*\n\t\t\t * <turn_id> 2 </turn_id> // Still need to know whose turn it is.\n\t\t\t * <turn_team_name> Gandalf </turn_team_name>\n\t\t\t * <your_turn> true </your_turn> // Since client doesn't know team #, this is helpful\n\t\t\t * <challenge_chains>\n\t\t\t * \t\t<chain_info> // Each chain_info represents a team who has challenged and their chain.\n\t\t\t * \t\t\t<team_id> 2 </team_id>\n\t\t\t * \t\t\t<chain> ... </chain>\n\t\t\t * \t\t</chain_info>\n\t\t\t * \t\t<chain_info>\n\t\t\t * \t\t\t...\n\t\t\t * \t\t</chain_info>\n\t\t\t * \t\t...\n\t\t\t * </challenge_chains>\n\t\t\t */\n\t\t\tinfo += (\"<turn_id>\" + activeTeamId + \"</turn_id>\");\n\t\t\tinfo += (\"<turn_team_name>\" + activeTeamName + \"</turn_team_name>\");\n\t\t\tinfo += (\"<your_turn>\" + (schoolClass.findTeamIdWithStudentId(requestID) == activeTeamId) + \"</your_turn>\");\n\t\t\tinfo += \"<challenge_chains>\";\n\t\t\tfor(int teamID : teamChallengeOrder) {\n\t\t\t\tinfo += \"<chain_info>\";\n\t\t\t\tinfo += \"<team_id>\" + teamID + \"</team_id>\";\n\t\t\t\tinfo += challengeChains.get(teamID).generateChainXML();\n\t\t\t\tinfo += \"</chain_info>\";\n\t\t\t}\n\t\t\tinfo += \"</challenge_chains>\";\n\t\t}\n\t\t\n\t\treturn info;\n\t}",
"void endNegotiation();",
"public abstract String toXML();",
"public abstract String toXML();",
"public abstract String toXML();",
"public abstract List<AbstractRelationshipTemplate> getOutgoingRelations();",
"public String getRequestInXML() throws Exception;",
"public Nation getNation() {\n return nation;\n }",
"public String getXmlName() {\n return toString().toLowerCase();\n }",
"public String getXmlName() {\n return toString().toLowerCase();\n }",
"public final String getXmllang() {\n return ((SVGFilterElement)ot).getXmllang();\n }",
"public Element get_xml_info() {\n\t\treturn _xml_info;\n\t}",
"public String toXML() {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter, true);\n toXML(printWriter);\n return stringWriter.toString();\n }",
"public Network getNetwork() {\r\n \t\treturn network;\r\n \t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic String getTOLookupsAsXML() {\r\n ITransferObject to = getController().getTo();\r\n\t\ttry {\t\t\r\n\t if (to != null) {\t\t\t\r\n\t \tMap<String, Object> map = getToMap(to, getAlias());\r\n\t \treturn LookupUtils.getResponseXML( map, getIds() );\r\n\t }\r\n\t\t} catch (Throwable th) {\r\n\t\t\tLOGGER.severe(th.getMessage());\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public static HashMap<String, String> OutputXml() {\n\t\treturn methodMap(\"xml\");\n\t}"
]
| [
"0.87761533",
"0.6617143",
"0.6098705",
"0.5725141",
"0.5632804",
"0.56221265",
"0.55979466",
"0.55971915",
"0.5545449",
"0.54675275",
"0.5426851",
"0.5364727",
"0.53236973",
"0.52435666",
"0.5227032",
"0.52227175",
"0.52112585",
"0.52112585",
"0.52089494",
"0.51837397",
"0.51817405",
"0.51773125",
"0.5172975",
"0.5117421",
"0.5091898",
"0.50862557",
"0.50623727",
"0.5050943",
"0.50490034",
"0.50487906",
"0.50487906",
"0.50487906",
"0.50487906",
"0.50487906",
"0.50487906",
"0.50487906",
"0.50487906",
"0.50487906",
"0.50487906",
"0.50487906",
"0.50307554",
"0.50275105",
"0.50177056",
"0.50151545",
"0.49532127",
"0.49285913",
"0.49236488",
"0.49007905",
"0.48831373",
"0.48758364",
"0.48649895",
"0.48528704",
"0.48482427",
"0.48087493",
"0.47991192",
"0.47889104",
"0.47811627",
"0.47811627",
"0.47811627",
"0.47811627",
"0.47811627",
"0.47811627",
"0.47811627",
"0.47811627",
"0.47811627",
"0.4764437",
"0.47626263",
"0.4732431",
"0.47289407",
"0.46985665",
"0.46985665",
"0.46985665",
"0.4687719",
"0.46792212",
"0.46652135",
"0.4656941",
"0.46398646",
"0.46326303",
"0.4629114",
"0.46235996",
"0.4621809",
"0.4617978",
"0.45883062",
"0.45848542",
"0.45768282",
"0.45626637",
"0.45614746",
"0.45614746",
"0.45614746",
"0.45605257",
"0.45463476",
"0.4539086",
"0.45378864",
"0.45378864",
"0.45329583",
"0.45312133",
"0.45245332",
"0.4502423",
"0.45002297",
"0.4493171"
]
| 0.67327994 | 1 |
The method getNegotiationXML returns the xml of the negotiation relationship with negotiation transmission | String getNegotiationXML(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"NegotiationType getNegotiationType();",
"NegotiationTransactionType getNegotiationTransactionType();",
"UUID getNegotiationId();",
"void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);",
"public String getXml() {\n\t\treturn _xml;\n\t}",
"public String getXml() {\n return xml;\n }",
"NegotiationTransmissionType getTransmissionType();",
"public String getXML() {\n\t\treturn getXML(false);\n\t}",
"public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( VolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"public ContentNegotiationManager getContentNegotiationManager()\n/* */ {\n/* 638 */ return this.contentNegotiationManager;\n/* */ }",
"public java.lang.String getXml();",
"public String getSenderXML() {\n return sender.toXML();\n }",
"protected String xmlType()\n {\n return PRS_XML;\n }",
"void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);",
"public String getXMLConfiguration()\n {\n return this.XMLConfiguration;\n }",
"public String getXml()\n {\n StringBuffer result = new StringBuffer(256);\n\n result.append(\"<importOptions>\");\n\n result.append(m_fileOptions.asXML());\n result.append(getOtherXml());\n\n result.append(\"</importOptions>\");\n\n return result.toString();\n }",
"@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"abstract protected String getOtherXml();",
"@GET\n @Produces(MediaType.APPLICATION_XML)\n public String getXml() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }",
"public String getInXml() {\n return inXml;\n }",
"public String getReplicationXml();",
"public interface NegotiationTransmission {\n\n /**\n * The method <code>getTransmissionId</code> returns the transmission id of the negotiation transmission\n * @return an UUID the transmission id of the negotiation transmission\n */\n UUID getTransmissionId();\n\n /**\n * The method <code>getTransactionId</code> returns the transaction id of the negotiation transmission\n * @return an UUID the transaction id of the negotiation transmission\n */\n UUID getTransactionId();\n\n /**\n * The method <code>getNegotiationId</code> returns the negotiation id of the negotiation transmission\n * @return an UUID the negotiation id of the negotiation\n */\n UUID getNegotiationId();\n\n /**\n * The method <code>getNegotiationTransactionType</code> returns the transaction type of the negotiation transmission\n * @return an NegotiationTransactionType of the transaction type\n */\n NegotiationTransactionType getNegotiationTransactionType();\n\n /**\n * The method <code>getPublicKeyActorSend</code> returns the public key the actor send of the negotiation transaction\n * @return an String the public key of the actor send\n */\n String getPublicKeyActorSend();\n\n /**\n * The method <code>getActorSendType</code> returns the actor send type of the negotiation transmission\n * @return an PlatformComponentType of the actor send type\n */\n PlatformComponentType getActorSendType();\n\n /**\n * The method <code>getPublicKeyActorReceive</code> returns the public key the actor receive of the negotiation transmission\n * @return an String the public key of the actor receive\n */\n String getPublicKeyActorReceive();\n\n /**\n * The method <code>getActorReceiveType</code> returns the actor receive type of the negotiation transmission\n * @return an PlatformComponentType of the actor receive type\n */\n PlatformComponentType getActorReceiveType();\n\n /**\n * The method <code>getTransmissionType</code> returns the type of the negotiation transmission\n * @return an NegotiationTransmissionType of the negotiation type\n */\n NegotiationTransmissionType getTransmissionType();\n\n /**\n * The method <code>getTransmissionState</code> returns the state of the negotiation transmission\n * @return an NegotiationTransmissionStateof the negotiation state\n */\n NegotiationTransmissionState getTransmissionState();\n\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an NegotiationType the negotiation type of negotiation\n */\n NegotiationType getNegotiationType();\n\n void setNegotiationType(NegotiationType negotiationType);\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an String the xml of negotiation\n */\n String getNegotiationXML();\n\n /**\n * The method <code>getTimestamp</code> returns the time stamp of the negotiation transmission\n * @return an Long the time stamp of the negotiation transmission\n */\n long getTimestamp();\n\n /**\n * The method <code>isPendingToRead</code> returns if this pending to read the negotiation transmission\n * @return an boolean if this pending to read\n */\n boolean isPendingToRead();\n\n /**\n * The method <code>confirmRead</code> confirm the read of the negotiation trasmission\n */\n void confirmRead();\n\n /**\n * The method <code>setNegotiationTransactionType</code> set the negotiation transaction type\n */\n void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);\n\n /**\n * The method <code>setTransmissionType</code> set the Transmission Type\n */\n void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);\n\n /**\n * The method <code>setTransmissionState</code> set the Transmission State\n */\n void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);\n\n public boolean isFlagRead();\n\n public void setFlagRead(boolean flagRead);\n\n public int getSentCount();\n\n public void setSentCount(int sentCount);\n\n public UUID getResponseToNotificationId();\n\n public void setResponseToNotificationId(UUID responseToNotificationId);\n\n public boolean isPendingFlag();\n\n public void setPendingFlag(boolean pendingFlag);\n\n public String toJson();\n\n}",
"public String get_is_EncryptedXML() {\n String retVal = new String(\"<encrypted>\");\n if (getEncryptionScheme().equals(\"NO\")) {\n retVal += \"no encryption\"; }\n else {\n retVal += getEncryptionScheme(); }\n retVal += \"</encrypted>\";\n return retVal;\n }",
"public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( QuotaUserRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"public String toXML() {\n StringBuilder xml = new StringBuilder();\n\n //just do the decomposition facts (not the surrounding element) - to keep life simple\n xml.append(super.toXML());\n\n for (YParameter parameter : _enablementParameters.values()) {\n xml.append(parameter.toXML());\n }\n for (YAWLServiceReference service : _yawlServices.values()) {\n xml.append(service.toXML());\n }\n return xml.toString();\n }",
"@GET\r\n @Produces(\"application/xml\")\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"@Override\n public String toXML() {\n if (_xml == null)\n _xml = String.format(XML, getStanzaId(), to);\n return _xml;\n }",
"public String toXml()\n\t{\n\t\ttry {\n\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\tStringWriter buffer = new StringWriter();\n\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n\t\t\ttransformer.transform(new DOMSource(conferenceInfo), new StreamResult(buffer));\n\t\t\treturn buffer.toString();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getRequestXml(){\n return localRequestXml;\n }",
"public boolean getAutoNegotiation() {\n return autoNegotiation;\n }",
"NegotiationTransmissionState getTransmissionState();",
"public XML getXML() {\n return _mxo;\n }",
"public java.lang.String getResponseXml(){\n return localResponseXml;\n }",
"public XmlElement getConfig()\n {\n return m_xml;\n }",
"public String toXml() {\n\t\treturn(toString());\n\t}",
"public Long getXmlId() {\n return xmlId;\n }",
"public String getResponseXml() {\r\n if (null == recentResponse)\r\n return \"\";\r\n else\r\n return recentResponse.toString();\r\n }",
"@Get(\"xml\")\n public Representation toXml() {\n\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = getMetadata(status, access,\n \t\t\tgetRequestQueryValues());\n \tmetadata.remove(0);\n\n List<String> pathsToMetadata = buildPathsToMetadata(metadata);\n\n String xmlOutput = buildXmlOutput(pathsToMetadata);\n\n // Returns the XML representation of this document.\n StringRepresentation representation = new StringRepresentation(xmlOutput,\n MediaType.APPLICATION_XML);\n\n return representation;\n }",
"void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);",
"public String toXML() {\n return null;\n }",
"public static String getXMLElementTagName() {\n return \"nationOptions\";\n }",
"public String toXML() {\n return null;\n }",
"public java.lang.String getRELATION_ID() {\r\n return RELATION_ID;\r\n }",
"private String getAllConfigsAsXML() {\n StringBuilder configOutput = new StringBuilder();\n //getConfigParams\n configOutput.append(Configuration.getInstance().getXmlOutput());\n //getRocketsConfiguration\n configOutput.append(RocketsConfiguration.getInstance().getXmlOutput());\n //getCountries\n CountriesList countriesList = (CountriesList) AppContext.getContext().getBean(AppSpringBeans.COUNTRIES_BEAN);\n configOutput.append(countriesList.getListInXML());\n //getWeaponConfiguration\n configOutput.append(WeaponConfiguration.getInstance().getXmlOutput());\n //getPerksConfiguration\n configOutput.append(\"\\n\");\n configOutput.append(PerksConfiguration.getInstance().getXmlOutput());\n //getRankingRules\n ScoringRules scoreRules = (ScoringRules) AppContext.getContext().getBean(AppSpringBeans.SCORING_RULES_BEAN);\n configOutput.append(scoreRules.rankingRulesXml());\n\n configOutput.append(AchievementsConfiguration.getInstance().getXmlOutput());\n\n configOutput.append(\"\\n\");\n configOutput.append(AvatarsConfiguration.getInstance().getXmlOutput());\n\n\n return configOutput.toString();\n }",
"public java.lang.String getXmlx() {\r\n return localXmlx;\r\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public java.lang.String getRequestXml(){\n return localRequestXml;\n }",
"public Document getXML() {\n\t\treturn null;\n\t}",
"public String getReceiversXML() {\n Enumeration allReceivers = receivers.elements();\n String retVal = new String();\n while (allReceivers.hasMoreElements()) {\n FIPA_AID_Address currentAddr = (FIPA_AID_Address) allReceivers.nextElement();\n retVal += currentAddr.toXML();\n }\n return retVal;\n }",
"public String getXmlns()\r\n\t{\r\n\t\treturn xmlns;\r\n\t}",
"public String getXMLName() {\n return _xmlName;\n }",
"public java.lang.String getXMLName()\n {\n return xmlName;\n }",
"public java.lang.String getXMLName()\n {\n return xmlName;\n }",
"public java.lang.String getXMLName()\n {\n return xmlName;\n }",
"public Object getPropagationId()\n {\n return propagationId;\n }",
"@Override\n public String getXmlVersion() {\n return mXml11 ? XmlConsts.XML_V_11_STR : XmlConsts.XML_V_10_STR;\n }",
"@Override\n\tpublic String getFormat() {\n\t\treturn \"xml\";\n\t}",
"public Object answer() {\n return getParticipantXMLString();\n }",
"public String receivedToXML() {\n if (received.isEmpty()) {\n FIPA_Received frec = new FIPA_Received();\n Enumeration allRec = getFIPAReceivers();\n FIPA_AID_Address addr = (FIPA_AID_Address) allRec.nextElement();\n String rec = (String) addr.getAddresses().firstElement();\n frec.setReceivedBy(rec);\n frec.setReceivedDate(FIPA_Date.getDate());\n return frec.toXML(); }\n else {\n String retVal = new String();\n Enumeration allRecs = received.elements();\n while (allRecs.hasMoreElements()) {\n retVal+= ((FIPA_Received)allRecs.nextElement()).toXML();\n }\n \n return retVal;\n }\n }",
"String toXML() throws RemoteException;",
"public void setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)\n/* */ {\n/* 630 */ this.contentNegotiationManager = contentNegotiationManager;\n/* */ }",
"public String getAxis2xml() {\r\n return axis2xml;\r\n }",
"@Override\n\tpublic void receivedNegotiation(int arg0, int arg1) {\n\t\t\n\t}",
"public String prepareContractNegotiation() {\n\t\tif (selectedThings.size() == 1) {\n\t\t\t// in this case prefill the dataContract based on the data contract\n\t\t\t// template of the thing\n\t\t\tdataContract.setDataRights(selectedThings.get(0).getDataRights());\n\t\t\tdataContract.setPricingModel(selectedThings.get(0).getPricingModel());\n\t\t\tdataContract.setControlAndRelationship(selectedThings.get(0).getControlAndRelationship());\n\t\t\tdataContract.setPurchasingPolicy(selectedThings.get(0).getPurchasingPolicy());\n\t\t}\n\n\t\treturn \"dc_conclude.xhtml?faces-redirect=true\";\n\t}",
"public String getNation() {\n return nation;\n }",
"@Override\n public void toXml(XmlContext xc) {\n\n }",
"public String getModeInfoXML(int requestID) {\n\t\tString info = \"\";\n\t\tint activeTeamId = -1;\n\t\tString activeTeamName = \"\";\n\t\tif(getActiveTeam() != null) {\n\t\t\tactiveTeamId = getActiveTeam().id;\n\t\t\tactiveTeamName = getActiveTeam().name;\n\t\t}\n\t\t\n\t\tif(sessionState.equals(SessionState.PlayerTurn)) {\n\t\t\tinfo += (\"<turn_id>\" + activeTeamId + \"</turn_id>\");\n\t\t\tif(getActiveTeam() != null) {\n\t\t\t\tinfo += (\"<turn_team_name>\" + activeTeamName + \"</turn_team_name>\");\n\t\t\t}\n\t\t\tinfo += (\"<your_turn>\" + (schoolClass.findTeamIdWithStudentId(requestID) == activeTeamId) + \"</your_turn>\");\n\t\t}\n\t\telse if(sessionState.equals(SessionState.Challenge)) {\n\t\t\t/*\n\t\t\t * <turn_id> 2 </turn_id> // Still need to know whose turn it is.\n\t\t\t * <turn_team_name> Gandalf </turn_team_name>\n\t\t\t * <your_turn> true </your_turn> // Since client doesn't know team #, this is helpful\n\t\t\t * <challenge_chains>\n\t\t\t * \t\t<chain_info> // Each chain_info represents a team who has challenged and their chain.\n\t\t\t * \t\t\t<team_id> 2 </team_id>\n\t\t\t * \t\t\t<chain> ... </chain>\n\t\t\t * \t\t</chain_info>\n\t\t\t * \t\t<chain_info>\n\t\t\t * \t\t\t...\n\t\t\t * \t\t</chain_info>\n\t\t\t * \t\t...\n\t\t\t * </challenge_chains>\n\t\t\t */\n\t\t\tinfo += (\"<turn_id>\" + activeTeamId + \"</turn_id>\");\n\t\t\tinfo += (\"<turn_team_name>\" + activeTeamName + \"</turn_team_name>\");\n\t\t\tinfo += (\"<your_turn>\" + (schoolClass.findTeamIdWithStudentId(requestID) == activeTeamId) + \"</your_turn>\");\n\t\t\tinfo += \"<challenge_chains>\";\n\t\t\tfor(int teamID : teamChallengeOrder) {\n\t\t\t\tinfo += \"<chain_info>\";\n\t\t\t\tinfo += \"<team_id>\" + teamID + \"</team_id>\";\n\t\t\t\tinfo += challengeChains.get(teamID).generateChainXML();\n\t\t\t\tinfo += \"</chain_info>\";\n\t\t\t}\n\t\t\tinfo += \"</challenge_chains>\";\n\t\t}\n\t\t\n\t\treturn info;\n\t}",
"void endNegotiation();",
"public abstract String toXML();",
"public abstract String toXML();",
"public abstract String toXML();",
"public abstract List<AbstractRelationshipTemplate> getOutgoingRelations();",
"public String getRequestInXML() throws Exception;",
"public Nation getNation() {\n return nation;\n }",
"public String getXmlName() {\n return toString().toLowerCase();\n }",
"public String getXmlName() {\n return toString().toLowerCase();\n }",
"public final String getXmllang() {\n return ((SVGFilterElement)ot).getXmllang();\n }",
"public Element get_xml_info() {\n\t\treturn _xml_info;\n\t}",
"public String toXML() {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter, true);\n toXML(printWriter);\n return stringWriter.toString();\n }",
"public Network getNetwork() {\r\n \t\treturn network;\r\n \t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic String getTOLookupsAsXML() {\r\n ITransferObject to = getController().getTo();\r\n\t\ttry {\t\t\r\n\t if (to != null) {\t\t\t\r\n\t \tMap<String, Object> map = getToMap(to, getAlias());\r\n\t \treturn LookupUtils.getResponseXML( map, getIds() );\r\n\t }\r\n\t\t} catch (Throwable th) {\r\n\t\t\tLOGGER.severe(th.getMessage());\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public static HashMap<String, String> OutputXml() {\n\t\treturn methodMap(\"xml\");\n\t}"
]
| [
"0.67332524",
"0.66169083",
"0.6098371",
"0.5724483",
"0.56323516",
"0.5621743",
"0.55976003",
"0.5596953",
"0.5545375",
"0.5467979",
"0.54270285",
"0.5363728",
"0.5323125",
"0.5242907",
"0.5226597",
"0.5222753",
"0.5211727",
"0.5211727",
"0.5208853",
"0.5184233",
"0.5181683",
"0.51772285",
"0.51719844",
"0.511889",
"0.50913143",
"0.50863945",
"0.50628066",
"0.505011",
"0.5049117",
"0.50487554",
"0.50487554",
"0.50487554",
"0.50487554",
"0.50487554",
"0.50487554",
"0.50487554",
"0.50487554",
"0.50487554",
"0.50487554",
"0.50487554",
"0.5031312",
"0.5027045",
"0.501673",
"0.5014983",
"0.49531686",
"0.4928136",
"0.49225706",
"0.49006188",
"0.48832855",
"0.4875155",
"0.4864452",
"0.4851754",
"0.48476708",
"0.4808188",
"0.479887",
"0.47878218",
"0.478109",
"0.478109",
"0.478109",
"0.478109",
"0.478109",
"0.478109",
"0.478109",
"0.478109",
"0.478109",
"0.47640163",
"0.476227",
"0.47319",
"0.47279322",
"0.46979168",
"0.46979168",
"0.46979168",
"0.46870282",
"0.46786743",
"0.46649876",
"0.46568137",
"0.4639764",
"0.463229",
"0.4628816",
"0.4623712",
"0.4621774",
"0.46189728",
"0.45875782",
"0.4584152",
"0.45775262",
"0.4563892",
"0.45612055",
"0.45612055",
"0.45612055",
"0.45609495",
"0.45466495",
"0.45383576",
"0.45371553",
"0.45371553",
"0.45325905",
"0.45305437",
"0.45241728",
"0.45026785",
"0.45000738",
"0.44923303"
]
| 0.877638 | 0 |
The method getTimestamp returns the time stamp of the negotiation transmission | long getTimestamp(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getTimestamp();",
"java.lang.String getTimestamp();",
"String getTimestamp();",
"String getTimestamp();",
"com.google.protobuf.Timestamp getSendTime();",
"com.google.protobuf.Timestamp getTimestamp();",
"int getTimestamp();",
"public long getTimestamp();",
"public long getTimestamp();",
"public long getTimestamp() {\n return ((long)(buffer.get(4) & 0xff) << 24) |\n ((long)(buffer.get(5) & 0xff) << 16) |\n ((long)(buffer.get(6) & 0xff) << 8) |\n ((long)(buffer.get(7) & 0xff));\n }",
"@Override\n public long getTimestamp() {\n return timestamp;\n }",
"public String getTimestamp()\n {\n return timestamp;\n }",
"public long getTimestamp() {\r\n return timestamp_;\r\n }",
"public long getTimestamp() {\r\n return timestamp_;\r\n }",
"public int getTimestamp(){\r\n\t\treturn timestamp;\r\n\t}",
"public long getTimestamp() {\r\n return timestamp_;\r\n }",
"public long getTimestamp() {\r\n return timestamp_;\r\n }",
"public int getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\r\n return timestamp;\r\n }",
"public long getTimestamp() {\r\n return timestamp;\r\n }",
"public int getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp;\n }",
"public long getTimestamp() {\n return timestamp;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"long getTimestamp();",
"public long getTimestamp() {\n return this.timestamp;\n }",
"public long getTimestamp() {\n return this.timestamp;\n }",
"public long getTimestamp() {\n\t\treturn timestamp;\n\t}",
"public long getTimestamp() {\n\t\treturn timestamp;\n\t}",
"public long getTimestamp() {\n\t\treturn timestamp;\n\t}",
"public java.lang.String getTimestamp() {\n return timestamp;\n }",
"public Integer getTimestamp() {\n return timestamp;\n }",
"public java.lang.String getTimestamp() {\n return timestamp;\n }",
"public long getTimeStamp() {\n return timestamp;\n }",
"public long getTimestamp_() {\n return timestamp_;\n }",
"public Long getTimestamp() {\n return timestamp;\n }",
"@Override\r\n\tpublic long getTimestamp() {\n\t\treturn -1;\r\n\t}",
"public int getTimeStamp() {\n return timeStamp;\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }",
"public long getTimeStamp() {return timeStamp;}",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"public String getTimestamp() {\n Object ref = timestamp_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n timestamp_ = s;\n return s;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"private String getTimestamp() {\n return Calendar.getInstance().getTime().toString();\n }",
"public long getTimestamp() {\n\t\treturn lTimestamp;\n\t}",
"public Timestamp getTimestamp() {\n\t\treturn timestamp;\n\t}",
"public Timestamp getTimestamp() {\n\t\treturn timestamp;\n\t}",
"public long getSentTime();",
"public java.lang.Long getTimestamp() {\n return timestamp;\n }",
"public java.lang.Long getTimestamp() {\n return timestamp;\n }",
"public String getTimestamp() {\n Object ref = timestamp_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n timestamp_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public Date getTimestamp() {\r\n return this.timestamp;\r\n }",
"public Double getTimestamp() {\r\n\t\treturn timestamp;\r\n\t}",
"public String getTimeStamp() {\n return timeStamp;\n }",
"public java.lang.Long getTimestamp() {\n return timestamp;\n }",
"public java.lang.Long getTimestamp() {\n return timestamp;\n }",
"com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder();",
"public Date getTimestamp() {\n return timestamp;\n }",
"public Date getTimestamp() {\n return timestamp;\n }",
"public Date getTimestamp() {\n return timestamp;\n }",
"long getTimeStamp();",
"public long getTimeStamp() {return attributes.getLongValue(TIMESTAMP,-1);}",
"com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();",
"public DateTime timestamp() {\n\n\t\tif (timestamp == null) {\n\n\t\t\tfinal DateTimeValue dt = ProtoDateUtil.fromDecimalDateTime(message.getBaseTimeStamp());\n\n\t\t\ttimestamp = new DateTime(dt.getYear(), dt.getMonth(), dt.getDay(), dt.getHour(), dt.getMinute(),\n\t\t\t\t\tdt.getSecond(), dt.getMillis(), ISOChronology.getInstanceUTC());\n\n\t\t}\n\n\t\treturn timestamp;\n\n\t}",
"public com.google.protobuf.Timestamp getTimestamp() {\n if (timestampBuilder_ == null) {\n return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;\n } else {\n return timestampBuilder_.getMessage();\n }\n }",
"public int getTimeStamp() {\r\n return fTimeStamp;\r\n }"
]
| [
"0.77745515",
"0.77745515",
"0.7727646",
"0.7727646",
"0.76840174",
"0.7672485",
"0.75165284",
"0.74543726",
"0.74543726",
"0.74232024",
"0.74130434",
"0.7391259",
"0.7381914",
"0.7381914",
"0.7377781",
"0.7373205",
"0.7373205",
"0.735007",
"0.7343799",
"0.7326703",
"0.73051226",
"0.7300982",
"0.72940344",
"0.72940344",
"0.72940344",
"0.72940344",
"0.72940344",
"0.72940344",
"0.72940344",
"0.72940344",
"0.726073",
"0.726073",
"0.7253304",
"0.7253304",
"0.7253304",
"0.7253304",
"0.7253304",
"0.7253304",
"0.7253304",
"0.72410643",
"0.7230217",
"0.7230217",
"0.7223018",
"0.7223018",
"0.7223018",
"0.7220818",
"0.7215698",
"0.71793735",
"0.71317506",
"0.71115357",
"0.71046746",
"0.7079847",
"0.70656",
"0.7053791",
"0.7053791",
"0.70393664",
"0.703922",
"0.703922",
"0.703922",
"0.7029563",
"0.70222545",
"0.70222545",
"0.7013325",
"0.7013321",
"0.70028543",
"0.70028543",
"0.69956416",
"0.6986181",
"0.6986181",
"0.6979218",
"0.6973279",
"0.6971189",
"0.6961829",
"0.69538087",
"0.69538087",
"0.69522524",
"0.69217694",
"0.69217694",
"0.69217694",
"0.6908241",
"0.68743277",
"0.6867308",
"0.6856371",
"0.6818347",
"0.68183255"
]
| 0.74249834 | 23 |
The method isPendingToRead returns if this pending to read the negotiation transmission | boolean isPendingToRead(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasSendReading();",
"public boolean ready() {\n try {\n return in.available() > 0;\n } catch (IOException x) {\n return false;\n }\n }",
"boolean hasRead();",
"@Override\n public boolean messagePending() {\n return commReceiver.messagePending();\n }",
"public boolean hasRead() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public Boolean shouldRead() {\n return this.isComplete();\n }",
"public boolean hasRead() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean isReceived() {\n\t\treturn _received;\n\t}",
"public boolean hasForRead() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean wasRead(){\n return isRead==null || isRead;\n }",
"@Override\n public boolean isReady() {\n return areValidReadings(mReadings);\n }",
"@Override\n\tpublic boolean getCanRead()\n\t{\n\t\treturn inputStream.CanRead;\n\t}",
"public boolean getRingDuringIncomingEarlyMedia();",
"public boolean hasForRead() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean getForRead() {\n return forRead_;\n }",
"public boolean hasSendReading() {\n return sendReading_ != null;\n }",
"public boolean getForRead() {\n return forRead_;\n }",
"@Override\n public boolean hasRemaining() throws IOException\n {\n return randomAccessRead.available() > 0;\n }",
"protected abstract boolean systemReadyToHandleReceivedMessage();",
"public boolean getRead() {\n return read_;\n }",
"boolean isReceiving();",
"boolean hasReceived();",
"public boolean getRead() {\n return read_;\n }",
"boolean getRead();",
"public boolean isRead(){\n \treturn isRead;\n }",
"public boolean read() throws IOException\n\t{\n\t\treturn this.read(this.socket);\n\t}",
"public boolean getRead()\n\t{\n\t\treturn this.read;\n\t}",
"public boolean pending() {\n return altingChannel.pending();\n }",
"public boolean isReceived() {\n\t\treturn isReceived;\n\t}",
"public boolean read() {\n return this.read;\n }",
"@Override\n\tpublic boolean isPending();",
"public boolean getRead() {\n\t\treturn read;\n\t}",
"boolean hasForRead();",
"@Override\n public boolean read() throws Exception {\n if (count >= size) return true;\n if (source == null) source = new ChannelInputSource(channel);\n while (count < size) {\n final int n = location.transferFrom(source, false);\n if (n <= 0) break;\n count += n;\n channelCount = count;\n if (debugEnabled) log.debug(\"read {} bytes for {}\", n, this);\n }\n return count >= size;\n }",
"@Override\n\tpublic boolean readBoolean() throws IOException {\n\t\treturn ( (_buff.get() & 0xFF) != 0 );\n\t}",
"protected boolean isConsumingInput() {\r\n return true;\r\n }",
"private final boolean hasBufferedInputBytes() {\n return reading && (buffer.hasRemaining() || ungotc != -1);\n }",
"@Override\n public boolean isReadRequest() {\n return false;\n }",
"public boolean hasSendReading() {\n return sendReadingBuilder_ != null || sendReading_ != null;\n }",
"boolean getForRead();",
"public Boolean getIsRead() {\n return isRead;\n }",
"public boolean available() throws SerialPortException {\n\t\treturn port.getInputBufferBytesCount()>0;\n\t}",
"@Override\n\tpublic boolean canReceive() {\n\t\treturn false;\n\t}",
"@Override\n public boolean isReady() {\n return (running && !opening) || packetQueue.size() > 0;\n }",
"public boolean isAvailable() {\n lock.readLock().lock();\n try {\n return available;\n } finally {\n lock.readLock().unlock();\n }\n }",
"private boolean canRead() {\n\t\treturn fileStatus;\n\t}",
"public boolean isMessageReadFully() {\r\n\t\t\r\n\t\tCharBuffer charBuffer = byteBuffer.asCharBuffer();\r\n\t\tint limit = charBuffer.limit();\r\n\t\tString protocolMessage = null;\r\n\t\t//Check if the last char is ~ indicating the end of the message which also \r\n\t\t//indicates that the message is fully read\r\n\t\tif (charBuffer.get(limit) == '~') {\r\n\t\t\tprotocolMessage = charBuffer.toString();\r\n\t\t\tSystem.out.println(\"Protocol Message: \" + protocolMessage);\r\n\t\t\t//clear the buffer\r\n\t\t\tbyteBuffer.clear();\r\n\t\t\t//Decode the message into portions\r\n\t\t\tdecode(protocolMessage);\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t\t\r\n\t\t\r\n\t}",
"boolean consume (SocketChannel chan) {\n try {\n consumeBuffer.clear ();\n int c = chan.read (consumeBuffer);\n if (c == -1)\n return true;\n } catch (IOException e) {\n return true;\n }\n return false;\n }",
"default boolean isAvailable() {\n switch (getState()) {\n case STOPPED:\n return true;\n case STARTING:\n return false;\n case STARTED:\n return false;\n case STOPPING:\n return false;\n default:\n throw new IllegalStateException(\"The speaker state is in an unknown state\");\n }\n }",
"private boolean readingHasStarted()\n {\n return readingHasStarted;\n }",
"public boolean sendReadMessage() {\n return sendReadMessage;\n }",
"@Override public boolean ready() throws IOException {\r\n\t\tif (closed) throw new IOException(\"Reader closed\");\r\n\t\tReader in = getCurrentReader();\r\n\t\tif (in == null) return false;\r\n\t\treturn in.ready();\r\n\t}",
"protected int available() throws IOException {\n return getInputStream().available();\n }",
"public boolean hasReceived() {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasReceived()\" );\n Via via=(Via)sipHeader;\n return via.hasParameter(Via.RECEIVED);\n }",
"public boolean isReady() throws java.io.IOException {\n\n return br.ready();\n }",
"@Override\n\tpublic int available() throws IOException {\n\t\treturn buf.readableBytes();\n\t}",
"public boolean isConsume() {\n return consume;\n }",
"public boolean isFlagsreceived() {\r\n return flagsreceived;\r\n }",
"public boolean canReceiveMessages()\n {\n return true;\n }",
"@Override\n public boolean hasMessageAvailable() {\n return !priorityQueue.isEmpty() && priorityQueue.peekN1() <= clock.millis();\n }",
"@Override\n\tpublic boolean isReady() {\n\t\treturn (this.baseTime == this.timeRemaining);\n\t}",
"public void read() {\n\t\tthis.isRead = true;\n\t}",
"protected int available() throws IOException\n {\n return getInputStream().available();\n }",
"public boolean hasChannel() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }",
"void waitToRead();",
"@java.lang.Override\n public boolean hasReadMask() {\n return ((bitField0_ & 0x00000010) != 0);\n }",
"public boolean read() {\n return so;\n }",
"abstract protected boolean read();",
"@java.lang.Override public boolean hasChannel() {\n return ((bitField0_ & 0x00000002) != 0);\n }",
"@java.lang.Override public boolean hasChannel() {\n return ((bitField0_ & 0x00000002) != 0);\n }",
"@Override\n public int read() throws IOException {\n if (stream.available() > 0) {\n return stream.read();\n } else {\n layer.receiveMoreDataForHint(getHint());\n // either the stream is now filled, or we ran into a timeout\n // or the next stream is available\n return stream.read();\n }\n }",
"public boolean dataIsReady()\n {\n boolean[] status = m_receiver.getBufferStatus();\n if (status.length == 0)\n {\n return false;\n }\n for (boolean b : status)\n {\n if (!b)\n return false;\n }\n return true;\n }",
"@Override\n\tpublic boolean isReceiving() {\n\t\t// set remotely, so we need to call botinfo()\n\t\tif (botinfo().getLastReceivedMessage() < clock.currentTimeMillis() - 10000) {\n\t\t\tthrow new NotFoundException();\n\t\t}\n\t\treturn true;\n\t}",
"boolean isReadable(ReaderContext context);",
"public boolean hasChannel() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"private final boolean message_ready ()\n {\n \n if (msg_source == null)\n return false;\n \n in_progress = msg_source.pull_msg ();\n if (in_progress == null) {\n return false;\n }\n\n // Get the message size.\n int size = in_progress.size ();\n\n // Account for the 'flags' byte.\n size++;\n\n // For messages less than 255 bytes long, write one byte of message size.\n // For longer messages write 0xff escape character followed by 8-byte\n // message size. In both cases 'flags' field follows.\n \n if (size < 255) {\n tmpbuf[0] = (byte)size;\n tmpbuf[1] = (byte) (in_progress.flags () & Msg.more);\n next_step (tmpbuf, 2, size_ready, false);\n }\n else {\n ByteBuffer b = ByteBuffer.wrap(tmpbuf);\n b.put((byte)0xff);\n b.putLong(size);\n b.put((byte) (in_progress.flags () & Msg.more));\n next_step (tmpbuf, 10, size_ready, false);\n }\n \n return true;\n }",
"@Override\n public void doRead() throws IOException {\n if (sc.read(bbin) == -1) {\n state = State.CLOSED;\n }\n processIn();\n updateInterestOps();\n }",
"public boolean isATMReadyTOUse() throws java.lang.InterruptedException;",
"@Override\n\tpublic boolean isPending() {\n\t\treturn model.isPending();\n\t}",
"public boolean hasReadMask() {\n return ((bitField0_ & 0x00000100) != 0);\n }",
"public boolean readNext (TSMessageConsumer processor);",
"Boolean isMessageRead(String msgId);",
"public boolean isIsReadyToTransmit() {\n return isReadyToTransmit;\n }",
"boolean isWaiting()\n {\n return waitFlags != 0;\n }",
"public boolean isIncomingInvitePending();",
"protected void checkReceivePermission() throws InterruptedIOException {\n\t/* Check if we have permission to recieve. */\n\tif (!readPermission) {\n\t try {\n\t\tmidletSuite.checkForPermission(Permissions.SMS_RECEIVE,\n\t\t\t\t\t\t\"sms:receive\");\n\t\treadPermission = true;\n\t } catch (InterruptedException ie) {\n\t\tthrow new InterruptedIOException(\"Interrupted while trying \" +\n\t\t\t\t\t\t \"to ask the user permission\");\n\t }\n\t}\n }",
"public boolean isAvailable() {\r\n return isavailable;\r\n }",
"private boolean isGettingData(){\n int available;\n long startTime = System.nanoTime();\n int timeout = 100;\n InputStream inStream = null;\n flushStream();\n try {\n if(socket!=null)\n inStream = socket.getInputStream();\n Thread.sleep(100); //The Arduino keeps sending data for 100ms after it is told to stop\n }catch(IOException | InterruptedException e){}\n try {\n while (true) {\n available = inStream.available();\n if (available > 0) {\n return true;\n }\n Thread.sleep(1);\n long estimatedTime = System.nanoTime() - startTime;\n long estimatedMillis = TimeUnit.MILLISECONDS.convert(estimatedTime,\n TimeUnit.NANOSECONDS);\n if (estimatedMillis > timeout){\n return false; //timeout, no data coming\n }\n }\n }catch(IOException | InterruptedException | NullPointerException e){\n Log.d(\"Exception\", \"Exception\");\n }\n return false;\n }",
"boolean hasUnReceived();",
"public boolean isDataAvailable()\r\n {\r\n return true;\r\n }",
"public boolean isAvailable() {\n return available;\n }",
"boolean isUsedForReading();",
"public Message read() {\n synchronized (lock){\n while (!answerReady) {\n try {\n lock.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n answerReady = false;\n return answer;\n }",
"public abstract boolean isConsumed();",
"public boolean isAvailable() {\r\n\t\treturn available;\r\n\t}",
"public boolean isStillProcessing() {\r\n\tif(logger.isDebugEnabled())\r\n\t\tlogger.debug(\"BytesnotReadChangedCount is: \" + bytesReadNotChangedCount);\r\n\tif (bytesReadNotChangedCount > 3) {\r\n\t //Abort processing\r\n\t return false;\r\n\t} else {\r\n\t return true;\r\n\t}\r\n }",
"public boolean hasBytesToSend() {\n\t\treturn !byteBufferQueue.isEmpty();\n\t}",
"public boolean test(final ClientContext context) {\n return context.readBytes != -1 && context.readByteBuffer.hasRemaining();\n }",
"public boolean isAvailable() {\n return available;\n }",
"public boolean isAvailable() {\n return available;\n }"
]
| [
"0.685387",
"0.6336748",
"0.62995785",
"0.6236992",
"0.6230192",
"0.6197038",
"0.61866623",
"0.6181602",
"0.614188",
"0.6128932",
"0.6098332",
"0.6092585",
"0.60844076",
"0.6078246",
"0.6074624",
"0.6073376",
"0.6061162",
"0.605362",
"0.6042166",
"0.60296535",
"0.6029271",
"0.6029051",
"0.6025102",
"0.6020703",
"0.60159034",
"0.6010242",
"0.6008714",
"0.6005074",
"0.6003564",
"0.5993513",
"0.5983261",
"0.5928003",
"0.59257114",
"0.59199536",
"0.5897331",
"0.58528703",
"0.58380675",
"0.58169085",
"0.5788813",
"0.57846147",
"0.57595617",
"0.57582915",
"0.57478255",
"0.5717988",
"0.57179123",
"0.5711427",
"0.5709484",
"0.5674874",
"0.5668475",
"0.56672984",
"0.56593215",
"0.5646366",
"0.56365466",
"0.5627992",
"0.5619996",
"0.56150365",
"0.5606837",
"0.56061256",
"0.55850184",
"0.5584054",
"0.5559503",
"0.55494595",
"0.5538714",
"0.55320597",
"0.5530494",
"0.55265725",
"0.55257356",
"0.5506275",
"0.55026084",
"0.5485233",
"0.5476101",
"0.5474801",
"0.54645437",
"0.5449059",
"0.5442882",
"0.54277194",
"0.5426148",
"0.54148525",
"0.5413485",
"0.5409786",
"0.5390286",
"0.53867054",
"0.538459",
"0.5376929",
"0.53742397",
"0.53734493",
"0.5366611",
"0.5359295",
"0.5352542",
"0.5345894",
"0.5339307",
"0.5338115",
"0.533595",
"0.533077",
"0.5329361",
"0.53211325",
"0.53199905",
"0.5313858",
"0.53090185",
"0.53090185"
]
| 0.77975 | 0 |
The method confirmRead confirm the read of the negotiation trasmission | void confirmRead(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean getRead();",
"public void read() {\n\t\tthis.isRead = true;\n\t}",
"boolean getForRead();",
"public void setRead(){\n \tthis.isRead = true;\n }",
"boolean hasForRead();",
"public boolean isRead(){\n \treturn isRead;\n }",
"public boolean sendReadMessage() {\n return sendReadMessage;\n }",
"public boolean getRead() {\n return read_;\n }",
"public boolean getRead() {\n return read_;\n }",
"boolean hasRead();",
"public boolean getRead()\n\t{\n\t\treturn this.read;\n\t}",
"private void doRead() throws IOException {\n\t\t\tvar res = sc.read(bb);\n\n\t\t\tif ( res == -1 ) {\n\t\t\t\tlogger.info(\"Connection closed with the client.\");\n\t\t\t\tclosed = true;\n\t\t\t}\n\n\t\t\tupdateInterestOps();\n\t\t}",
"public boolean getRead() {\n\t\treturn read;\n\t}",
"public Boolean shouldRead() {\n return this.isComplete();\n }",
"public void setRead(boolean read)\n\t{\n\t\tthis.read = read;\n\t}",
"public Boolean getIsRead() {\n return isRead;\n }",
"abstract protected boolean read();",
"public void ownRead();",
"public boolean read() {\n return this.read;\n }",
"public boolean getForRead() {\n return forRead_;\n }",
"public boolean getForRead() {\n return forRead_;\n }",
"public boolean wasRead(){\n return isRead==null || isRead;\n }",
"@Override\n public boolean isReadRequest() {\n return false;\n }",
"boolean isReadAccess();",
"@Override\n public void doRead() throws IOException {\n if (sc.read(bbin) == -1) {\n state = State.CLOSED;\n }\n processIn();\n updateInterestOps();\n }",
"org.naru.park.ParkController.CommonAction getSendReading();",
"@Override\n\tpublic boolean getCanRead()\n\t{\n\t\treturn inputStream.CanRead;\n\t}",
"public boolean confirmReadInfos(User user, List<Info> infos);",
"protected final void assertResponseRead () {\n\t\t\tif(!didRead) throw new ProviderException (\"Response has not been read yet! -- whose bad?\");\n\t\t}",
"boolean isPendingToRead();",
"public Message read() {\n synchronized (lock){\n while (!answerReady) {\n try {\n lock.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n answerReady = false;\n return answer;\n }",
"public boolean read() throws IOException\n\t{\n\t\treturn this.read(this.socket);\n\t}",
"@Override\n public void onRead() {\n /*\n * It should be an error that the remote send something before we\n * pre-write.\n */\n throw new IllegalStateException();\n }",
"boolean hasSendReading();",
"public boolean read() {\n return so;\n }",
"public int getCommonReadStatus(){\n List<BMessageReceipt> readReceipts;\n resetBMessageReceiptList();\n readReceipts = getBMessageReceiptList();\n\n Boolean delivered = false;\n Boolean read = false;\n\n for ( BMessageReceipt readReceipt : readReceipts) {\n switch (readReceipt.getReadStatus()) {\n case none:\n return none;\n case BMessageReceiptEntity.ReadStatus.delivered:\n delivered = true;\n break;\n case BMessageReceiptEntity.ReadStatus.read:\n read = true;\n break;\n }\n }\n// if(!read){\n// BNetworkManager.sharedManager().getNetworkAdapter().readReceiptsOnFromUI(this);\n// }\n if(delivered){\n return BMessageReceiptEntity.ReadStatus.delivered;\n } else if (read) {\n return BMessageReceiptEntity.ReadStatus.read;\n } else {\n logMessage = \"Message has no readers\";\n if(DEBUG) Log.d(TAG , logMessage);\n return none;\n }\n }",
"@Override\n\tpublic void read() {\n\n\t}",
"protected final boolean didRead (boolean value) { return didRead = value;}",
"@Override\n public boolean hasReadAccess() {\n return true;\n }",
"public boolean closeRead() throws Exception;",
"@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}",
"Read createRead();",
"@Override\r\n\tpublic void read() {\n\r\n\t}",
"public void doRead() throws IOException {\n if (sc.read(bbin) == -1) {\n closed = true;\n }\n processIn();\n updateInterestOps();\n }",
"boolean getAccepted();",
"private void ackRead() throws SIMException\n\t\t{\n\t\t\tfor (;;)\n\t\t\t{\n\t\t\t\t// Read a byte from memory\n\t\t\t\tif ((mode & MODE_TRANSFER_MASK) == MODE_TRANSFER_READ)\n\t\t\t\t{\n\t\t\t\t\tint v = transferFromMemory(this,base.getValue());\n\t\t\t\t\trequestRead.setDmaValue(v);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Increment / decrement address if requested\n\t\t\t\tif (hold == false)\n\t\t\t\t{\n\t\t\t\t\tif ((mode & MODE_DECREMENT) != 0)\n\t\t\t\t\t\tbase.decrement();\n\t\t\t\t\telse\n\t\t\t\t\t\tbase.increment();\n\n\t\t\t\t}\n\n\t\t\t\tif (isTerminate(requestRead))\n\t\t\t\t{\n\t\t\t\t\tterminateDma();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// In single transfer wait another dreq\n\t\t\t\tif ((mode & MODE_DMA_MASK) == MODE_DMA_SINGLE)\n\t\t\t\t{\n\t\t\t\t\tif (requestRead.getDmaDREQ() == false)\n\t\t\t\t\t{\n\t\t\t\t\t\trequest = false;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"private void ensureRead() throws IOException, BadDescriptorException {\n if (reading) return;\n flushWrite();\n buffer.clear();\n buffer.flip();\n reading = true;\n }",
"public void readResponse()\n\t{\n\t\tDataObject rec = null;\n\t\tsynchronized(receive)\n\t\t{\n\t\t\trec = receive.get();\n\t\t}\n\t\tAssertArgument.assertNotNull(rec, \"Received packet\");\n\t\tpublishResponse(rec);\n\t}",
"boolean isReadable(ReaderContext context);",
"abstract void read();",
"@Override\n protected boolean needReadActionToCreateState() {\n return false;\n }",
"public org.naru.park.ParkController.CommonAction getSendReading() {\n return sendReading_ == null ? org.naru.park.ParkController.CommonAction.getDefaultInstance() : sendReading_;\n }",
"private boolean readThePaper() {\n boolean temp = false;\r\n try {\r\n temp = repairAreaInt.readThePaper(id);\r\n } catch (RemoteException e) {\r\n System.err.println(\"Excepção na invocação remota de método\" + getName() + \": \" + e.getMessage() + \"!\");\r\n System.exit(1);\r\n }\r\n return temp;\r\n }",
"private void handleRead(SelectionKey key) throws IOException {\n\t\t\tSSLSocketChannel ssl_socket_channel = ((SSLClientSession)key.attachment()).getSSLSocketChannel();\n\t\t\tByteBuffer request = ssl_socket_channel.getAppRecvBuffer();\n\t\t\tint count = ssl_socket_channel.read();\n\t\t\t\n\t\t\tif (count < 0) {\n\t\t\t\t\n\t\t\t\tremoveKeyAndSession(key);\n\t\t\t\t\n\t\t\t} else if (request.position() > 0) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tString message = new String(request.array(),0,request.position());\n\t\t\t\t\t\n//\t\t\t\t\tOutputHandler.println(\"Server: read \"+message);\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Parse the JSON message\n\t\t\t\t\tJSONObject json = (JSONObject) parser.parse(message);\n\t\t\t\t\t\n\t\t\t\t\t// Process the message\n\t\t\t\t\tprocessNetworkMessage(json, key);\n\t\t\t\t\t\n\t\t\t\t\trequest.clear();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\tSystem.out.println(\"Invalid message format.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public String read() {\n synchronized (this) {\n while (!answerReady) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n answerReady = false;\n return answer;\n }",
"@Override\r\n\tpublic void adminSelectRead() {\n\t\t\r\n\t}",
"@Override\n\tpublic void readClient(Client clt) {\n\t\t\n\t}",
"protected void doBeginRead() throws Exception {}",
"abstract void onReadable();",
"@Override\n\tpublic void readCB(CB cb) {\n\t\t\n\t}",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public void setIsRead(Boolean isRead) {\n this.isRead = isRead;\n }",
"@Test\r\n\tpublic void testReadMethods() {\r\n\t\t\r\n\t\tVOControllingAdapter desc = getControllingAdaptor(10, 0);\r\n\t\t\r\n\t\tassertEquals(\"\", desc.getDescription());\r\n\t\tassertEquals(10, desc.getControllingCharacterId());\r\n\t\tassertEquals(1, desc.getStates().size());\r\n\t\tassertTrue(desc.getStates().contains(2));\r\n\t\tassertEquals(1, desc.getDependentCharacterIds().size());\r\n\t\tassertTrue(desc.getDependentCharacterIds().contains(11));\r\n\t}",
"public boolean isAutomaticAccept() {\n return getBooleanProperty(\"IsAutomaticAccept\");\n }",
"@Override\r\n\tpublic void reading() {\n\t\tSystem.out.println(\"reading\");\r\n\t}",
"@Override\r\n\t\t\t\tpublic ResolvedReadContext getReadContext()\r\n\t\t\t\t{\r\n\t\t\t\t\treturn readContext;\r\n\t\t\t\t}",
"public Boolean getreadFlag() {\r\n if(this.getShowFlag()!=null && this.getShowFlag().trim().equalsIgnoreCase(\"NO\")){\r\n return true; \r\n }\r\n else{\r\n return false;\r\n }\r\n }",
"protected BiFunction<SelectionKey, Integer, Runnable> onReading() {\n return readable;\n }",
"public void readSysCall() {\n read = false;\n clientChannel.read(readBuffer, this, readCompletionHandler);\n }",
"public boolean isAccept(){\n return isAccept; \n }",
"void read ();",
"Boolean isMessageRead(String msgId);",
"public boolean setMessageIsReadStatus( long messageId );",
"public void setIsRead(boolean isRead) {\n mIsRead = isRead;\n }",
"protected void checkReceivePermission() throws InterruptedIOException {\n\t/* Check if we have permission to recieve. */\n\tif (!readPermission) {\n\t try {\n\t\tmidletSuite.checkForPermission(Permissions.SMS_RECEIVE,\n\t\t\t\t\t\t\"sms:receive\");\n\t\treadPermission = true;\n\t } catch (InterruptedException ie) {\n\t\tthrow new InterruptedIOException(\"Interrupted while trying \" +\n\t\t\t\t\t\t \"to ask the user permission\");\n\t }\n\t}\n }",
"@Override\r\n\tpublic void readResult(IDCardItem arg0) {\n\t\tmHandler.obtainMessage(200, arg0).sendToTarget();\r\n\t}",
"public void doRead(ClientChatos client, SelectionKey key) throws IOException {\n\t\tif (sc.read(bbin) == -1) {\n\t\t\tlogger.info(\"read raté\");\n\t\t\tclosed = true;\n\t\t}\n\t\tprocessIn(client, key);\n\t\tupdateInterestOps();\n\t}",
"public abstract void endRead(boolean restart);",
"@Override\n\tpublic void readMessage(Message message) {\n\t\t\n\t}",
"public org.naru.park.ParkController.CommonAction getSendReading() {\n if (sendReadingBuilder_ == null) {\n return sendReading_ == null ? org.naru.park.ParkController.CommonAction.getDefaultInstance() : sendReading_;\n } else {\n return sendReadingBuilder_.getMessage();\n }\n }",
"@Override\n public final int read() throws IOException {\n if (isClosed() || isFailed()) {\n return EOF;\n }\n if (!handshakeComplete) {\n shakeHands();\n if (!handshakeComplete) {\n failTheWebSocketConnection();\n return EOF;\n }\n }\n return nextWebSocketByte();\n }",
"public boolean readBoolean() throws IOException {\n\n\t\tint b = read();\n\t\tif (b == 1) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"org.naru.park.ParkController.CommonActionOrBuilder getSendReadingOrBuilder();",
"public int getReadStatus() {\n return (readStatus.getUnsignedInt());\n }",
"public synchronized String read() {\n\n /* RULE: empty, eligible for WRITE only; !empty, eligible for READ only :\n for read process to proceed, need message tray to be full, so while empty,\n make this thread sleep (the READER thread) so the other thread will run\n and write/fill in the message tray */\n\n while(empty) { // loop til we got a msg to read (cant read without msg)\n // DEADLOCK FIX\n try {\n wait(); // an Object method, not Thread's\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n empty = true; // i read the msg, will be sending this to Reader afterwards so message tray is now empty\n notifyAll(); // executed only after we have updated 'empty'\n return message;\n }",
"private boolean canRead() {\n\t\treturn fileStatus;\n\t}",
"private void requestReadPhoneStatePermission() {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_PHONE_STATE)) {\n // Provide an additional rationale to the user if the permission was not granted\n // and the user would benefit from additional context for the use of the permission.\n // For example if the user has previously denied the permission.\n new AlertDialog.Builder(AddAssetActivity.this)\n .setTitle(\"Permission Request\")\n .setMessage(\"Allow Cover app to read phone state\")\n .setCancelable(false)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n //re-request\n ActivityCompat.requestPermissions(AddAssetActivity.this,\n new String[]{Manifest.permission.READ_PHONE_STATE},\n MY_PERMISSIONS_REQUEST_READ_PHONE_STATE);\n }\n })\n //.setIcon(R.drawable.onlinlinew_warning_sign)\n .show();\n } else {\n // READ_PHONE_STATE permission has not been granted yet. Request it directly.\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.READ_PHONE_STATE},\n MY_PERMISSIONS_REQUEST_READ_PHONE_STATE);\n }\n }",
"private void read(){\n try {\n if (c != -1) c = r.read();\n } catch (IOException e){\n throw new IOError(e);\n }\n }",
"@Resource(resourceId = 2215, operation = Operation.Read)\n public Boolean readMute()\t{\n ActionInvocation actionInvocation =\n new ActionInvocation(renderingControlService.getAction(ACTION_GET_MUTE));\n actionInvocation.setInput(ARG_INSTANCE_ID, new UnsignedIntegerFourBytes(0));\n actionInvocation.setInput(ARG_CHANNEL, VALUE_CHANNEL_MASTER);\n Map<String, ActionArgumentValue> output = UpnpController.getInstance().executeUpnpAction(actionInvocation);\n return (Boolean) output.get(ARG_CURRENT_MUTE).getValue();\n }",
"@Override\n public boolean canReadSchema() throws UnauthorizedException\n {\n return null != _participant || super.canReadSchema();\n }",
"public boolean hasRead() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"private void doRecoveryRead() {\n if (!promise.isDone()) {\n startEntryToRead = endEntryToRead + 1;\n endEntryToRead = endEntryToRead + clientCtx.getConf().recoveryReadBatchSize;\n new RecoveryReadOp(lh, clientCtx, startEntryToRead, endEntryToRead, this, null)\n .initiate();\n }\n }",
"public int getNbr_read() {\r\n\t\treturn nbrRead;\r\n\t}",
"@Override\n public boolean hasRemaining() throws IOException\n {\n return randomAccessRead.available() > 0;\n }",
"private void setThisRead()\n {\n justOpened = false;\n FirebaseFirestore.getInstance().collection(\"chats\").document(thisUid).get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>()\n {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot)\n {\n if (documentSnapshot.exists() && documentSnapshot.getData().get(otherUid) != null)\n {\n ChatData thisData = new ChatData((HashMap<String, Object>) documentSnapshot.getData().get(otherUid));\n if (thisData.isRead())\n return;\n \n HashMap<String, ChatData> mapThis = new HashMap<>();\n thisData.setRead(true);\n mapThis.put(otherUid, thisData);\n FirebaseFirestore.getInstance().collection(\"chats\").document(thisUid).set(mapThis, SetOptions.merge());\n }\n }\n });\n }",
"public void execHandlerRead( Message msg ) {\n\t \t// create valid data bytes\n\t\tbyte[] buffer = (byte[]) msg.obj;\n\t\tint length = (int) msg.arg1;\n\t\tbyte[] bytes = new byte[ length ];\n\t\tfor ( int i=0; i < length; i++ ) {\n\t\t\tbytes[ i ] = buffer[ i ];\n\t\t}\n\t\t// debug\n\t\tString read = buildMsgBytes( \"r \", bytes );\n\t\tlog_d( read );\n\t\taddAndShowTextViewDebug( read );\n\t\tnotifyRead( bytes );\n\t}",
"private boolean read (SocketChannel chan, SelectionKey key) {\n HttpTransaction msg;\n boolean res;\n try {\n InputStream is = new BufferedInputStream (new NioInputStream (chan));\n String requestline = readLine (is);\n MessageHeader mhead = new MessageHeader (is);\n String clen = mhead.findValue (\"Content-Length\");\n String trferenc = mhead.findValue (\"Transfer-Encoding\");\n String data = null;\n if (trferenc != null && trferenc.equals (\"chunked\"))\n data = new String (readChunkedData (is));\n else if (clen != null)\n data = new String (readNormalData (is, Integer.parseInt (clen)));\n String[] req = requestline.split (\" \");\n if (req.length < 2) {\n /* invalid request line */\n return false;\n }\n String cmd = req[0];\n URI uri = null;\n try {\n uri = new URI (req[1]);\n msg = new HttpTransaction (this, cmd, uri, mhead, data, null, key);\n cb.request (msg);\n } catch (URISyntaxException e) {\n System.err.println (\"Invalid URI: \" + e);\n msg = new HttpTransaction (this, cmd, null, null, null, null, key);\n msg.sendResponse (501, \"Whatever\");\n }\n res = false;\n } catch (IOException e) {\n res = true;\n }\n return res;\n }",
"public boolean hasRead() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"private void treatRead(SelectionKey key) throws IOException\n {\n EventHandler attach = (EventHandler) key.attachment();\n attach.processRead(key);\n }",
"public abstract boolean confirm();"
]
| [
"0.6177747",
"0.614446",
"0.6067957",
"0.6058008",
"0.5990929",
"0.5939082",
"0.59386903",
"0.59271383",
"0.5925052",
"0.59117955",
"0.5901159",
"0.58891624",
"0.5876233",
"0.5845127",
"0.5828508",
"0.5800502",
"0.57937276",
"0.57781106",
"0.5777769",
"0.57538474",
"0.57415414",
"0.5664542",
"0.5579122",
"0.55553776",
"0.5536096",
"0.550607",
"0.55039895",
"0.5487768",
"0.5430391",
"0.53636926",
"0.53575385",
"0.5324344",
"0.5302063",
"0.5297077",
"0.52955276",
"0.5290786",
"0.5266993",
"0.5256562",
"0.52441806",
"0.52424014",
"0.5239942",
"0.52301013",
"0.52249306",
"0.5191634",
"0.5180126",
"0.5176501",
"0.51763684",
"0.5134806",
"0.51282436",
"0.51214325",
"0.5120257",
"0.5105543",
"0.508602",
"0.50837135",
"0.50684744",
"0.50650936",
"0.5049144",
"0.5043188",
"0.50166106",
"0.50009954",
"0.49960065",
"0.49922544",
"0.49898085",
"0.49845964",
"0.49783695",
"0.4977568",
"0.49747407",
"0.4967709",
"0.4966173",
"0.4960414",
"0.4948205",
"0.49450782",
"0.49313906",
"0.49163955",
"0.49129385",
"0.49075943",
"0.48997608",
"0.48962608",
"0.48776245",
"0.4876687",
"0.4871857",
"0.48687664",
"0.48657176",
"0.4854143",
"0.48486724",
"0.4846844",
"0.48448658",
"0.48433375",
"0.4842863",
"0.4830703",
"0.48077077",
"0.4805933",
"0.48028126",
"0.47913498",
"0.47876152",
"0.4777974",
"0.47773373",
"0.47702566",
"0.47684804",
"0.47598723"
]
| 0.794838 | 0 |
The method setNegotiationTransactionType set the negotiation transaction type | void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"NegotiationTransactionType getNegotiationTransactionType();",
"void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);",
"void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);",
"NegotiationType getNegotiationType();",
"NegotiationTransmissionType getTransmissionType();",
"public void setTransactionType(int transactionChoice);",
"public void set_transaction_mode(TransactionType mode){\n\t\ttransaction_type = mode;\n\t}",
"public void setTransactionTypeRepository(TransactionTypeRepository transactionTypeRepository) {\n this.transactionTypeRepository = transactionTypeRepository;\n }",
"private void setTransactionTypeOnSession(HttpServletRequest request, String transactionType) {\n request.getSession().setAttribute(\"transactionType\", transactionType);\n }",
"public String getProposedTransactionType() {\n return proposedTransactionType;\n }",
"public void setSettlementType(java.lang.String settlementType) {\n this.settlementType = settlementType;\n }",
"public TransactionType getTransactionType()\n {\n return transactionType;\n }",
"public void setSettlementtype(Integer settlementtype) {\n this.settlementtype = settlementtype;\n }",
"public void queryBytransType(String transType) {\n\t\tTRANSACTION_TYPE = transType;\n\t}",
"void setNetworkType(IsisNetworkType networkType);",
"public void setTransmitMode(String transmitMode)\r\n\t{\r\n\t\tthis.transmitMode = transmitMode;\r\n\t}",
"public void setConnectiontype(String argConnectionType){\n\t if(argConnectionType.toUpperCase().equals(\"TELNET\"))\n\t connectionType=ConnectionType.TELNET;\n\t\t else\n\t\t\tconnectionType=ConnectionType.SSH;\n }",
"public void setConnectionType(Class<? extends Connection> connectionType)\r\n/* 20: */ {\r\n/* 21: 64 */ this.connectionType = connectionType;\r\n/* 22: */ }",
"public Gateway setTokenType(java.lang.String tokenType) {\n return genClient.setOther(tokenType, CacheKey.tokenType);\n }",
"public void setOperationType(String operationType) {\n\t\tthis.operationType=operationType;\n\t}",
"public void setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)\n/* */ {\n/* 630 */ this.contentNegotiationManager = contentNegotiationManager;\n/* */ }",
"TransactionType createTransactionType();",
"public void setReceivingType(java.math.BigInteger receivingType) {\n this.receivingType = receivingType;\n }",
"protected void setDialogType(int dialogtype) {\n EncrypterProcessProgress.dialogtype=dialogtype;\n if(dialogtype==0) {\n //showOnlyProcess Information\n this.setFileEncryptionProcessComponentState(false);\n }\n else {\n this.setFileEncryptionProcessComponentState(true);\n }\n }",
"public final void setType(final SettlementType newType) {\n if (type != null) removeFeatures(type);\n this.type = newType;\n if (newType != null) addFeatures(newType);\n }",
"public void setType(int nType) { m_nType = nType; }",
"@ApiModelProperty(example = \"PostAuthTransaction\", required = true, value = \"Object name of the secondary transaction request.\")\n\n public String getRequestType() {\n return requestType;\n }",
"public Integer getSettlementtype() {\n return settlementtype;\n }",
"public void setRequestType(RequestType requestType) {\n this.requestType = requestType;\n }",
"NegotiationTransmissionState getTransmissionState();",
"@Override\r\n\tpublic void setPaymentType() {\n\t\tthis.paymentType = PaymentType.YINLIAN;\r\n\t}",
"public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }",
"public void setSendType(Boolean sendType) {\n this.sendType = sendType;\n }",
"public void setType (int nType)\n\t{\n\t\tm_nType = nType;\n\t}",
"public java.lang.String getSettlementType() {\n return settlementType;\n }",
"public void setPaymentType(Integer paymentType) {\n\t\tthis.paymentType = paymentType;\n\t}",
"public void setPaymentType(PaymentType paymentType) {\n\n this.paymentType = paymentType;\n }",
"public com.vodafone.global.er.decoupling.binding.request.TransactionType createTransactionType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.TransactionTypeImpl();\n }",
"void setTransaction(final INodeReadTrx pRtx);",
"public void setSerializeTpe(Header.SerializableType serializeTpe) {\n clientConnections.setType( serializeTpe);\n }",
"public ConversationThreadingWindowSetting messengerType(MessengerTypeEnum messengerType) {\n this.messengerType = messengerType;\n return this;\n }",
"public void setCommandType(CommandType commandType) {\n this.commandType = commandType;\n }",
"public String getRewardPointsTransactionTransactionType() {\n return rewardPointsTransactionTransactionType;\n }",
"public abstract void setCurrencyType(String currencyType);",
"public void setAutoNegotiation(boolean value) {\n this.autoNegotiation = value;\n }",
"@Override\n\tpublic List<PendingTransaction> getAllTransactionsByType(String transactionType) {\n\t\treturn null;\n\t}",
"public final SettlementType getType() {\n return type;\n }",
"public void setPaymentType(PaymentType paymentType) {\n\t\tthis.paymentType = paymentType;\n\t}",
"@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }",
"public void setStatementType(Class<? extends Statement> statementType)\r\n/* 25: */ {\r\n/* 26: 71 */ this.statementType = statementType;\r\n/* 27: */ }",
"public void setAuthenticationType(String authenticationType) {\n this.authenticationType = authenticationType;\n }",
"public void setSecurityType(SecurityType securityType) {\n this.securityType = securityType;\n }",
"public final void setProcessType(slm.proxies.ProcessType processtype)\r\n\t{\r\n\t\tsetProcessType(getContext(), processtype);\r\n\t}",
"void setOrderType(OrderType inOrderType);",
"public void setUnitCalculatorType(int nType)\n {\n configureUnitCalculator(nType, null);\n }",
"public CompraResponse tipoOrigemTransacao(String tipoOrigemTransacao) {\n this.tipoOrigemTransacao = tipoOrigemTransacao;\n return this;\n }",
"public void setOperationType(String operationType) {\r\n this.operationType = operationType == null ? null : operationType.trim();\r\n }",
"public void setViewType(int viewType)\n {\n this.viewType = viewType;\n }",
"public void setExchangeRateType(final String exchangeRateType) {\n this.exchangeRateType = exchangeRateType;\n }",
"public void setPaymentAmountType(String paymentAmountType) {\r\n this.paymentAmountType = paymentAmountType;\r\n }",
"public void setType(int pType) {\n mType = pType;\n }",
"String getNegotiationXML();",
"public SynapseNotebookActivity setConfigurationType(ConfigurationType configurationType) {\n this.configurationType = configurationType;\n return this;\n }",
"public void setPaymentType(long paymentType) {\n this.paymentType = paymentType;\n }",
"public void setPAYMENT_TYPE(String PAYMENT_TYPE) {\r\n this.PAYMENT_TYPE = PAYMENT_TYPE == null ? null : PAYMENT_TYPE.trim();\r\n }",
"public void setGraphType(String graphType) {\r\n\t\tthis.graphType = graphType;\r\n\t}",
"public void setRequestType(java.lang.String requestType) {\n this.requestType = requestType;\n }",
"public void setTypeOperation(EnumTypeOperation TypeOperation) {\r\n this.TypeOperation = TypeOperation;\r\n }",
"public void setOperationType(int value) {\r\n this.operationType = value;\r\n }",
"public void setXA(boolean isTransactional)\n {\n _isTransactional = isTransactional;\n }",
"public void setTransactionManager(Object transactionManager)\n\t{\n\t\tthis.transactionManager = transactionManager;\n\t}",
"public ValidationPyramid (@Nonnull final IValidationDocumentType aValidationDocumentType,\r\n @Nonnull final IValidationTransaction aValidationTransaction) {\r\n this (aValidationDocumentType, aValidationTransaction, null);\r\n }",
"public void setAggregationType(net.opengis.gml.x32.AggregationType.Enum aggregationType)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(AGGREGATIONTYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(AGGREGATIONTYPE$2);\n }\n target.setEnumValue(aggregationType);\n }\n }",
"public final void setOptionType(questionnairev2.proxies.OptionType optiontype)\r\n\t{\r\n\t\tsetOptionType(getContext(), optiontype);\r\n\t}",
"@Override\r\n\tpublic void solicitarTipoTransaccion() {\n\t\tSystem.out.println(\"Escoger tipo de transaccion\");\r\n\t\t\r\n\t}",
"public String getTransmitMode()\r\n\t{\r\n\t\treturn transmitMode;\r\n\t}",
"public void setSigntype(Integer signtype) {\n\t\tthis.signtype = signtype;\n\t}",
"@Override\n public String getCondimentType() {\n return TYPE;\n }",
"void setInstallmentType(java.math.BigInteger installmentType);",
"public interface NegotiationTransmission {\n\n /**\n * The method <code>getTransmissionId</code> returns the transmission id of the negotiation transmission\n * @return an UUID the transmission id of the negotiation transmission\n */\n UUID getTransmissionId();\n\n /**\n * The method <code>getTransactionId</code> returns the transaction id of the negotiation transmission\n * @return an UUID the transaction id of the negotiation transmission\n */\n UUID getTransactionId();\n\n /**\n * The method <code>getNegotiationId</code> returns the negotiation id of the negotiation transmission\n * @return an UUID the negotiation id of the negotiation\n */\n UUID getNegotiationId();\n\n /**\n * The method <code>getNegotiationTransactionType</code> returns the transaction type of the negotiation transmission\n * @return an NegotiationTransactionType of the transaction type\n */\n NegotiationTransactionType getNegotiationTransactionType();\n\n /**\n * The method <code>getPublicKeyActorSend</code> returns the public key the actor send of the negotiation transaction\n * @return an String the public key of the actor send\n */\n String getPublicKeyActorSend();\n\n /**\n * The method <code>getActorSendType</code> returns the actor send type of the negotiation transmission\n * @return an PlatformComponentType of the actor send type\n */\n PlatformComponentType getActorSendType();\n\n /**\n * The method <code>getPublicKeyActorReceive</code> returns the public key the actor receive of the negotiation transmission\n * @return an String the public key of the actor receive\n */\n String getPublicKeyActorReceive();\n\n /**\n * The method <code>getActorReceiveType</code> returns the actor receive type of the negotiation transmission\n * @return an PlatformComponentType of the actor receive type\n */\n PlatformComponentType getActorReceiveType();\n\n /**\n * The method <code>getTransmissionType</code> returns the type of the negotiation transmission\n * @return an NegotiationTransmissionType of the negotiation type\n */\n NegotiationTransmissionType getTransmissionType();\n\n /**\n * The method <code>getTransmissionState</code> returns the state of the negotiation transmission\n * @return an NegotiationTransmissionStateof the negotiation state\n */\n NegotiationTransmissionState getTransmissionState();\n\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an NegotiationType the negotiation type of negotiation\n */\n NegotiationType getNegotiationType();\n\n void setNegotiationType(NegotiationType negotiationType);\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an String the xml of negotiation\n */\n String getNegotiationXML();\n\n /**\n * The method <code>getTimestamp</code> returns the time stamp of the negotiation transmission\n * @return an Long the time stamp of the negotiation transmission\n */\n long getTimestamp();\n\n /**\n * The method <code>isPendingToRead</code> returns if this pending to read the negotiation transmission\n * @return an boolean if this pending to read\n */\n boolean isPendingToRead();\n\n /**\n * The method <code>confirmRead</code> confirm the read of the negotiation trasmission\n */\n void confirmRead();\n\n /**\n * The method <code>setNegotiationTransactionType</code> set the negotiation transaction type\n */\n void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);\n\n /**\n * The method <code>setTransmissionType</code> set the Transmission Type\n */\n void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);\n\n /**\n * The method <code>setTransmissionState</code> set the Transmission State\n */\n void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);\n\n public boolean isFlagRead();\n\n public void setFlagRead(boolean flagRead);\n\n public int getSentCount();\n\n public void setSentCount(int sentCount);\n\n public UUID getResponseToNotificationId();\n\n public void setResponseToNotificationId(UUID responseToNotificationId);\n\n public boolean isPendingFlag();\n\n public void setPendingFlag(boolean pendingFlag);\n\n public String toJson();\n\n}",
"public void setTypeSettings(java.lang.String typeSettings) {\n this.typeSettings = typeSettings;\n }",
"public LookupAccountTransactions sigType(Enums.SigType sigType) {\n addQuery(\"sig-type\", String.valueOf(sigType));\n return this;\n }",
"public void setUserType(String userType) {\n\t\t_userType = userType;\n\t}",
"public void setPayType(Boolean payType) {\n this.payType = payType;\n }",
"public com.vodafone.global.er.decoupling.binding.request.SelfcareTransactionsRequestType.TransactionsFilterType createSelfcareTransactionsRequestTypeTransactionsFilterType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.SelfcareTransactionsRequestTypeImpl.TransactionsFilterTypeImpl();\n }",
"public void setResultType(ReadOperationResultType resultType)\n {\n this.resultType = resultType;\n }",
"public void setTransactionStatus(com.mgipaypal.ac1211.client.TransactionStatus transactionStatus) {\r\n this.transactionStatus = transactionStatus;\r\n }",
"public final void mo88519a(NetworkType networkType) {\n C7573i.m23587b(networkType, \"<set-?>\");\n this.f91164e = networkType;\n }",
"public void setRegisterTransaction(ClientTransaction registerTransaction){\n\t\tthis.registerTransaction=registerTransaction;\n\t}",
"public String getPAYMENT_TYPE() {\r\n return PAYMENT_TYPE;\r\n }",
"void setType(String type) {\n this.type = type;\n }",
"public void setOperation(OperationType operation) {\r\n this.operation = operation;\r\n }",
"public void setOperation(OperationType operation) {\r\n this.operation = operation;\r\n }",
"public void setPromType(Boolean promType) {\n this.promType = promType;\n }",
"public Builder setCompressionMode(CompressionType compressionType) {\n this.compressionType = compressionType;\n return this;\n }",
"public void setContructionType(org.landxml.schema.landXML11.IntersectionConstructionType.Enum contructionType)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CONTRUCTIONTYPE$24);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CONTRUCTIONTYPE$24);\r\n }\r\n target.setEnumValue(contructionType);\r\n }\r\n }",
"public void setUserType(String userType) {\n this.userType = userType;\n }",
"public void setRelationtype( String relationtype ) {\n this.relationtype = relationtype;\n }",
"public Integer getPaymentType() {\n\t\treturn paymentType;\n\t}",
"@JsonProperty(\"transaction\")\n public void setTransaction(Transaction transaction) {\n this.transactionList.add(transaction);\n }"
]
| [
"0.80145377",
"0.7898779",
"0.66388804",
"0.64766914",
"0.64028007",
"0.62245464",
"0.58359295",
"0.56902856",
"0.5682185",
"0.5668426",
"0.55851877",
"0.5569384",
"0.5429571",
"0.5269943",
"0.51575553",
"0.51564974",
"0.51415724",
"0.5106482",
"0.50683856",
"0.5033228",
"0.49930048",
"0.49748445",
"0.49523184",
"0.49241513",
"0.49128255",
"0.4871762",
"0.48381135",
"0.48247454",
"0.48222756",
"0.48112553",
"0.48087445",
"0.480674",
"0.47965524",
"0.4765457",
"0.4739452",
"0.47210371",
"0.47144502",
"0.47135553",
"0.47016495",
"0.47005022",
"0.4697528",
"0.46913624",
"0.46833047",
"0.46504834",
"0.46446258",
"0.463911",
"0.46361732",
"0.46283472",
"0.46177736",
"0.46125042",
"0.45948964",
"0.4580564",
"0.45731792",
"0.4566433",
"0.45650163",
"0.45610833",
"0.45608217",
"0.45608112",
"0.45605004",
"0.45595655",
"0.45542595",
"0.4550084",
"0.45380548",
"0.4537668",
"0.45207706",
"0.45125103",
"0.45014176",
"0.4483962",
"0.44657886",
"0.44477183",
"0.44463548",
"0.44351348",
"0.44325823",
"0.44304007",
"0.44260672",
"0.44247982",
"0.44226316",
"0.44056678",
"0.4401261",
"0.44009167",
"0.4393126",
"0.43908623",
"0.4386216",
"0.43854436",
"0.438035",
"0.43722093",
"0.43668687",
"0.43664595",
"0.43654096",
"0.43653977",
"0.43616256",
"0.43593857",
"0.43593857",
"0.43584925",
"0.43555382",
"0.43506077",
"0.4346825",
"0.43440494",
"0.4343081",
"0.4332069"
]
| 0.91185796 | 0 |
The method setTransmissionType set the Transmission Type | void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTransmission(Transmission transmission) {\n this.transmission = transmission;\n }",
"NegotiationTransmissionType getTransmissionType();",
"public void setSettlementType(java.lang.String settlementType) {\n this.settlementType = settlementType;\n }",
"public Builder setType(TransmissionProtocol.Type value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value.getNumber();\n onChanged();\n return this;\n }",
"public void setSettlementtype(Integer settlementtype) {\n this.settlementtype = settlementtype;\n }",
"public void setTransmitMode(String transmitMode)\r\n\t{\r\n\t\tthis.transmitMode = transmitMode;\r\n\t}",
"public void setTransmissionRange(double transmissionRange) {\r\n this.transmissionRange = transmissionRange;\r\n }",
"private void setType(String type) {\n mType = type;\n }",
"public void setType(String type) {\n m_Type = type;\n }",
"void setType(String type) {\n this.type = type;\n }",
"public void setRequestType(RequestType requestType) {\n this.requestType = requestType;\n }",
"public void setTransactionType(int transactionChoice);",
"public void setType(String type)\r\n {\r\n this.mType = type;\r\n }",
"void setType(Type type)\n {\n this.type = type;\n }",
"public void setType(String type){\n \tthis.type = type;\n }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"public final void setType(String type){\n\t\tthis.type = type;\t\n\t}",
"@Override\n\tpublic void setVehicleType(VehicleType vehicleType) {\n\t\tthis.vehicleType = vehicleType;\n\t}",
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type){\n this.type = type;\n }",
"public void setType(String type) \n {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void set_type(String t)\n {\n type =t;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(Byte type) {\n this.type = type;\n }",
"public void setType(Byte type) {\n this.type = type;\n }",
"public void setType(Byte type) {\n this.type = type;\n }",
"public void setType(Byte type) {\n this.type = type;\n }",
"public void setType(Byte type) {\n this.type = type;\n }",
"public void setType(Byte type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType( String type )\n {\n this.type = type;\n }",
"protected void setType(String requiredType){\r\n type = requiredType;\r\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n\t this.mType = type;\n\t}",
"public void setType(String t) {\n\t\tthis.type = t;\n\t}",
"public void setType( String type ) {\n this.type = type;\n }",
"public void setTransportType(final JobServiceBusTransportType transportTypeValue) {\n this.transportType = transportTypeValue;\n }",
"public void setType(String t) {\n\ttype = t;\n }",
"public final void setType(String type) {\n this.type = type;\n }",
"public final void setType(final SettlementType newType) {\n if (type != null) removeFeatures(type);\n this.type = newType;\n if (newType != null) addFeatures(newType);\n }",
"public void setType(int nType) { m_nType = nType; }",
"public void setType(String inType)\n {\n\ttype = inType;\n }",
"public void setType(Byte type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String aType) {\n iType = aType;\n }",
"public void setType(Type type){\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\r\n\t\tthis.type = type;\r\r\n\t}",
"public void setType(String type){\n\t\tthis.type = type;\n\t}",
"public void setType(Type t) {\n type = t;\n }",
"public void setMovementType(String MovementType) {\n\t\tif (MovementType != null && MovementType.length() > 2) {\n\t\t\tlog.warning(\"Length > 2 - truncated\");\n\t\t\tMovementType = MovementType.substring(0, 1);\n\t\t}\n\t\tset_Value(\"MovementType\", MovementType);\n\t}",
"void setType(java.lang.String type);",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setFlowType(String flowType);",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setVehicleType(VehicleType vehicleType) {\r\n if (vehicleType != null) {\r\n this.vehicleType = vehicleType; \r\n }\r\n }",
"public void setType(String type) {\r\n\t\tthis.type=type;\r\n\t}",
"public void setType(String type){\r\n if(type == null){\r\n throw new IllegalArgumentException(\"Type can not be null\");\r\n }\r\n this.type = type;\r\n }",
"public void setType(String type) {\n\n this.type = type;\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(int t){\n this.type = t;\n }"
]
| [
"0.706624",
"0.7010819",
"0.68779844",
"0.672158",
"0.65827996",
"0.65612316",
"0.6361409",
"0.6349987",
"0.63000107",
"0.62923664",
"0.6267324",
"0.62577474",
"0.6240383",
"0.6236344",
"0.622891",
"0.6214967",
"0.6214967",
"0.6214967",
"0.6206445",
"0.62046736",
"0.62031555",
"0.6202054",
"0.61943465",
"0.61825985",
"0.61748177",
"0.6173356",
"0.6168687",
"0.6168687",
"0.6168687",
"0.61429137",
"0.61429137",
"0.61429137",
"0.61429137",
"0.61294335",
"0.61294335",
"0.61294335",
"0.61294335",
"0.61294335",
"0.61294335",
"0.6114907",
"0.6114109",
"0.6112863",
"0.6112774",
"0.6112774",
"0.6095087",
"0.60733926",
"0.6071671",
"0.6070878",
"0.60680306",
"0.60672724",
"0.6064994",
"0.60610265",
"0.6058389",
"0.6057586",
"0.6057152",
"0.60541993",
"0.6053971",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.6053819",
"0.60534096",
"0.6047081",
"0.60444134",
"0.6042326",
"0.6037557",
"0.6027901",
"0.6027901",
"0.6026383",
"0.6026383",
"0.6026383",
"0.60140646",
"0.6003524",
"0.6003524",
"0.6003524",
"0.5999198",
"0.5998205",
"0.5998192",
"0.5994413",
"0.59887356",
"0.59887356",
"0.5987226"
]
| 0.7745856 | 0 |
The method setTransmissionState set the Transmission State | void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void SetState(VehicleState state) {\n this.state = state;\n }",
"NegotiationTransmissionState getTransmissionState();",
"public void setTransmission(Transmission transmission) {\n this.transmission = transmission;\n }",
"void setState(SimulationState state) {\n\t\tthis.state = state;\n\t}",
"public void setState(int synstate){\n\tsynState = synstate;\n }",
"private void mRelayStateSet(cKonst.eSerial newState) {\n nRelayState=newState;\n oBTServer.mStateSet( newState);\n }",
"public void setState(Byte state) {\n this.state = state;\n }",
"public void setState(Byte state) {\n this.state = state;\n }",
"public void set_state(boolean etat) {\r\n this.etat = etat;\r\n }",
"public void setMovementState(int movementState) {\n this.movementState = movementState;\n }",
"public void setSteetState(String steetState) {\r\n\t\tthis.steetState = steetState;\r\n\t}",
"private void setMechanicState(MechanicState state) {\r\n if (this.state == state) {\r\n return;\r\n }\r\n this.state = state;\r\n }",
"public void setState(int state) {\n\t\tif (state == CHASE)\n\t\t\tthis.state = CHASE;\n\t\telse if (state == RUN) \n\t\t\tthis.state = RUN;\n\t}",
"public void SetState(int s) {\n this.state=LS[s];\n }",
"public void setVehicleState(Integer vehicleState) {\n this.vehicleState = vehicleState;\n }",
"public void setState(org.apache.axis.types.UnsignedInt state) {\n this.state = state;\n }",
"void setState(boolean state);",
"public void setStateOfMovement(int movementState){stateOfMovement = movementState; }",
"private void setMPState(String state) {\n this.mpState = state;\n }",
"public abstract void setSensorState(boolean state);",
"public void setState(State state) { model.setState(state); }",
"public void setState(int state);",
"public void setState(int state);",
"void setState(int state);",
"public void setState(String state){\n this.state = state;\n }",
"public void setState(boolean state) {\n\t\tthis.state = state;\n\t}",
"public void setState(Boolean state) {\n this.state = state;\n }",
"public void setTransmissionRange(double transmissionRange) {\r\n this.transmissionRange = transmissionRange;\r\n }",
"public void set_state(String state) throws Exception{\n\t\tthis.state = state;\n\t}",
"private void setState(WFDState s) {\n Log.d(TAG, \"Moving from \" + sState + \" --> \" + s);\n sState = s;\n }",
"public void setState(String state)\n {\n switch(state) {\n case \"Clock-In\": this.state = new ClockedIn();break;\n case \"Clock-Out\": this.state = new ClockedOut();break;\n }\n }",
"void updateTransmission(Transmission transmission);",
"public void setState(State stateParam) {\n this.state = stateParam;\n }",
"public void setState(int state) {\n \t\tthis.state = state;\n \t}",
"public void setState(State state) {\n\t\tenvironmentStatus = state.name();\n\t\tsetupResult = state.name();\n\t}",
"public void setState(int state) {\n m_state = state;\n }",
"public void setState(String state);",
"void setState(org.landxml.schema.landXML11.StateType.Enum state);",
"public void setState(String state)\n\t{\n\t\tState = state;\n\t}",
"public void setState(States s) {\n\t\tthis.state = s;\n\t}",
"@Override\n\tpublic void setState(STATE state) {\n\n\t}",
"@Override\n public void setState(int state) {\n synchronized(LOCK_STATE) {\n this.state = state;\n }\n }",
"public void changeState()\r\n\t{\r\n\t\tfailedNumber=0;\r\n\t\tif(state.equalsIgnoreCase(\"IN PREPARATION\"))\r\n\t\t\tsetState(\"IN TRANSIT\");\r\n\t\telse if(state.equalsIgnoreCase(\"IN TRANSIT\"))\r\n\t\t{\r\n\t\t\tfailedNumber=Math.random();\r\n\t\t\tif(failedNumber<=0.2) setState(\"FAILED\");\r\n\t\t\telse setState(\"RECEIVED\");\r\n\t\t}\r\n\t}",
"public void setState(String state)\r\n\t{\r\n\t\tthis.state=state;\r\n\t}",
"public void setState(RequestState state) {\r\n\t\tthis.state = state;\r\n\t}",
"public void setTransmitMode(String transmitMode)\r\n\t{\r\n\t\tthis.transmitMode = transmitMode;\r\n\t}",
"public void setState(Integer state) {\r\n this.state = state;\r\n }",
"public void setState(Integer state) {\r\n this.state = state;\r\n }",
"private void setState(STATE state) {\n if (this.state != state) {\n sendStatusChange(MEDIA_STATE, null, (float)state.ordinal());\n }\n this.state = state;\n }",
"public void setState(int state) {\n\t\t\tmState = state;\n\t\t}",
"public void setState(String state)\r\n\t{\r\n\t\tthis.state = state;\r\n\t}",
"public void setState(String state) {\r\n\t\tthis.state = state;\r\n\t}",
"public void setState(String state) {\r\n\t\tthis.state = state;\r\n\t}",
"public void setState(String state)\n\t{\n\t\tthis.state = state; \n\t}",
"public void setaState(Integer aState) {\n this.aState = aState;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setRequestState(int requestState) {\n\t\t_tempNoTiceShipMessage.setRequestState(requestState);\n\t}",
"private synchronized void setState(int state) {\n if (D) Log.d(TAG, \"setState() \" + mState + \" -> \" + state);\n mState = state;\n\n // Give the new state to the Handler so the UI Activity can update\n mHandler.obtainMessage(RemoteBluetooth.MESSAGE_STATE_CHANGE, state, -1).sendToTarget();\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"private void setState( int state )\n {\n m_state.setState( state );\n }",
"public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }",
"public void setState(State state) {\n synchronized (stateLock){\n this.state = state;\n }\n }",
"public void setState(String s) {\r\n\t\tstate = s;\t\t\r\n\t}",
"public void setState(Integer state) {\n\t\tthis.state = state;\n\t}",
"public void setState(String state) {\n\t\tthis.state = state;\n\t}",
"public void setState(String state) {\n\t\tthis.state = state;\n\t}",
"public void setState(State state) {\n this.state = state;\n }",
"public void setState(State state) {\n this.state = state;\n }",
"void setState(String state);",
"public void setState(State state) {\n\t\tthis.state = state;\n\t}",
"public void setSettlementStatus(java.lang.String settlementStatus) {\n this.settlementStatus = settlementStatus;\n }",
"public void setTransmittedSerialNumber(String transmittedSerialNumber) ;",
"public void setState(STATE state) {\n\t\n\t\tsynchronized (stateLock) {\n\t\t\t\n\t\t\t// Only notify waiting threads if the state changed.\n\t\t\tif (this.state != state) {\n\t\t\t\tthis.state = state;\n\t\t\t\tstateLock.notifyAll();\n\t\t\t}\n\t\t}\n\t}",
"public void setSiretState(String siretState) {\r\n\t\tthis.siretState = siretState;\r\n\t}",
"public void setState(com.trg.fms.api.TripState value) {\n this.state = value;\n }",
"void setState(Object state);",
"public void setGearState(boolean state) {\n shifter.set(state);\n }",
"public void setState (State state) {\n synchronized (this) {\n this.state = state;\n }\n }",
"void setState(State state);",
"public void setState(NodeState state) {\n this.state = state;\n }",
"public void setState(final State state);",
"private void setCurrentState(StateEnum state)\n {\n m_CurrentState = state;\n m_DoneInit = false;\n switch(m_CurrentState)\n {\n case QB:\n m_A1Label.setText( \"PS\");\n m_A2Label.setText( \"PC\");\n m_A3Label.setText( \"ACC\");\n m_A4Label.setText( \"APB\");\n m_Sim1Label.setText( \"Sim Run\");\n m_Sim2Label.setText( \"Sim Pass\");\n m_Sim3Label.setText( \"Sim Pocket\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( true);\n m_Sim3UpDown.setEnabled( true);\n m_Sim4UpDown.setEnabled( false);\n \n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( true);\n m_APBBox.setEnabled( true);\n break;\n case SKILL:\n m_A1Label.setText( \"BC\");\n m_A2Label.setText( \"REC\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"Sim Rush\");\n m_Sim2Label.setText( \"Sim Catch\");\n m_Sim3Label.setText( \"<HTML> Sim Punt<br>return</HTML>\");\n m_Sim4Label.setText( \"<HTML> Sim Kick<br>return</HTML>\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( true);\n m_Sim3UpDown.setEnabled( true);\n m_Sim4UpDown.setEnabled( true);\n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n case OLINE:\n m_A1Label.setText( \"\");\n m_A2Label.setText( \"\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"\");\n m_Sim2Label.setText( \"\");\n m_Sim3Label.setText( \"\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( false);\n m_Sim2UpDown.setEnabled( false);\n m_Sim3UpDown.setEnabled( false);\n m_Sim4UpDown.setEnabled( false);\n m_PS_BC_PI_KABox.setEnabled( false);\n m_PC_REC_QU_KABox.setEnabled( false);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n case DEFENSE:\n m_A1Label.setText( \"PI\");\n m_A2Label.setText( \"QU\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"<HTML> Sim Pass<br>rush </HTML>\");\n m_Sim2Label.setText( \"Sim Coverage\");\n m_Sim3Label.setText( \"\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( true);\n m_Sim3UpDown.setEnabled( false);\n m_Sim4UpDown.setEnabled( false);\n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n case KICKER:\n m_A1Label.setText( \"KA\");\n m_A2Label.setText( \"AKB\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"Sim KA\");\n m_Sim2Label.setText( \"\");\n m_Sim3Label.setText( \"\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( false);\n m_Sim3UpDown.setEnabled( false);\n m_Sim4UpDown.setEnabled( false);\n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n }\n m_DoneInit = true;\n }",
"public void setState(@NotNull State state) {\n this.state = state;\n }",
"public void setState(PlayerState state) {\n this.state = state;\n }",
"public void setState(String state) {\n // checkValidState(state);\n if ((!States.special.contains(this.state)\n || !this.inSpecialState)\n && this.state != state) {\n this.spriteNum = 0;\n this.curSpriteFrame = 0;\n this.state = state;\n }\n \n }",
"@Override\n public void set(boolean state) {\n if (isInverted) {\n super.set(!state);\n } else {\n super.set(state);\n }\n }"
]
| [
"0.70533216",
"0.66798514",
"0.6674608",
"0.65906817",
"0.65820366",
"0.65573764",
"0.6402038",
"0.6402038",
"0.63611686",
"0.62458986",
"0.620708",
"0.61706245",
"0.6155224",
"0.6143213",
"0.61409855",
"0.61347115",
"0.6099602",
"0.6094066",
"0.6087399",
"0.6070683",
"0.60610604",
"0.6056476",
"0.6056476",
"0.6048959",
"0.60443366",
"0.6033966",
"0.60269296",
"0.60198426",
"0.6015236",
"0.60043746",
"0.6001868",
"0.5996101",
"0.5974133",
"0.59684145",
"0.5964529",
"0.5958071",
"0.59498656",
"0.59476805",
"0.5936365",
"0.59308404",
"0.5930617",
"0.59272987",
"0.5923031",
"0.59212214",
"0.5917596",
"0.5906561",
"0.59006494",
"0.59006494",
"0.5898271",
"0.5895194",
"0.5895128",
"0.58862364",
"0.58862364",
"0.58780134",
"0.5875504",
"0.5874792",
"0.5874792",
"0.58708364",
"0.5862428",
"0.5857613",
"0.5857613",
"0.5857613",
"0.5857613",
"0.5857613",
"0.5857613",
"0.585486",
"0.585486",
"0.585486",
"0.585486",
"0.585486",
"0.585486",
"0.585486",
"0.585486",
"0.58533025",
"0.58465797",
"0.5830174",
"0.5828163",
"0.582462",
"0.5822146",
"0.5822146",
"0.5814932",
"0.5814932",
"0.5813209",
"0.5809431",
"0.5797833",
"0.5797625",
"0.578261",
"0.5777397",
"0.5777044",
"0.576846",
"0.5768054",
"0.5762562",
"0.5757671",
"0.57504153",
"0.57416594",
"0.5736647",
"0.57360363",
"0.5727174",
"0.57262284",
"0.5724278"
]
| 0.7408269 | 0 |
super.onItemClick(view, position, content, message); | @Override
public void onItemClick(View view, int position, LocationMessage content, UIMessage message) {
Intent intent = new Intent(view.getContext(), ShowTencentMap.class);
intent.putExtra("location", message.getContent());
view.getContext().startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void OnItemClick(int position) {\n }",
"@Override\n public void itemClick(int pos) {\n }",
"@Override\n public void onItemClick(int pos) {\n }",
"@Override\n public void onItemClick(View view, int position){\n }",
"@Override\n public void onItemClick(int position) {\n }",
"@Override\n public void onItemClick(int position) {\n }",
"@Override\n public void onItemClick(Nson parent, View view, int position) {\n }",
"@Override\n public void onListItemClicked(int position) {\n\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }",
"@Override\n public void onItemClick(View view, int position) {\n\n }",
"@Override\n public void onItemClick(View view, int position) {\n }",
"@Override\n public void onItemClick(View view, int position) {\n }",
"@Override\n public void onItemClick(View view, String data) {\n }",
"@Override\n public void onItemClick(int position) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }",
"@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }",
"public void onItemClick(View view, int position) {\n\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}",
"@Override\n\tpublic void onItemClick(Object o, int position) {\n\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}",
"public void onItemClick(View view, int position);",
"@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }",
"@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }",
"@Override\r\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\r\n\t\t\tlong id) {\n\r\n\t}",
"abstract public void onSingleItemClick(View view);",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"void onChamaItemClicked(int position);",
"void onItemClick(int position);",
"@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }",
"void onItemClick(View view, int position);",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}",
"@Override\n public void onItemClick(BaseQuickAdapter adapter, View view, int position) {\n }",
"protected void cabOnItemPress(int position) {}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}",
"@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\r\n\t\t\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\t\n\t}",
"@Override\n public void onItemClicked(RecyclerView recyclerView, int position, View v) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Toast.makeText(this, \"ITEM CLICKED\", Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\n\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> adapter, View view, int position,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t \t public void onItemClick(AdapterView<?> arg0, View arg1,int position, long arg3) {\n\t\t \t \n\t\t \t Toast.makeText(getApplicationContext(), \"Clicked at Position\"+position, Toast.LENGTH_SHORT).show();\n\t\t \t }",
"@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}",
"@Override\n public void onClick(View view, int position) {\n }",
"@Override\n public void onItemRecyclerViewClick(Object item) {\n }",
"void onClick(View item, View widget, int position, int which);",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}",
"@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }",
"@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }",
"@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\n\t\t\t\t\t Log.i(\"MyListViewBase\", \"你点击了ListView条目\"+arg2);\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\tToast.makeText(MainActivity.this, \"我被点击了\", 0).show();\n\t\t\t\t}",
"@Override\n public void onItemTouch(View view, int position) {\n\n }",
"@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}",
"@Override\n public void onLongItemClick(View view, int position) {\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }",
"@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }",
"@Override\n public void onItemClick(int pos, RvViewHolder holder) {\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}",
"void onItemClick(Note note);",
"@Override\n public void onClick(View v) {\n if(listener!=null & getLayoutPosition()!=0)\n listener.onItemClick(itemView, getLayoutPosition());\n }",
"@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Toast.makeText(getActivity(), \"You Clicked \"+position+\" item. Wait For Coming Functions\",\n Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View v) {\n customItemClickListener.onItemClick(inflatedView, holder.getAdapterPosition());\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}",
"@Override\n public void onItemClicked(View itemView, Photo photo) {\n\n }",
"@Override\n public void onItemLongClick(View view, int position) {\n\n }",
"@Override\n public void onClick(View v) {\n\n listener.onItemClick(getAdapterPosition(),v);\n }",
"@Override\n public void onClick(View v) {\n this.itemClickListener.onItemClick(v, getLayoutPosition());\n }",
"@Override\r\n public void onListItemClick(ListView l, View v, int position, long id) {\n }",
"@Override\n public void onClick(View v) {\n clickListener.onItemClick(getAdapterPosition(), v, st_name.getText().toString(),\n st_phone.getText().toString());\n }",
"@Override\n public void onClick(int position, Object obj) {\n }",
"void onMessageRowClicked(int position);",
"@Override\n public void onClick(View v) {\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onItemLongClick(int position, View v) {\n }",
"@Override\n public void onItemClick(View view, int position) {\n Toast.makeText(getContext(), \"You clicked \" + adapter.getItem(position) + \" on row number \" + position, Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg=handler.obtainMessage();\r\n\t\t\t\tmsg.arg1=position;\r\n\t\t\t\tmsg.what=1;\r\n\t\t\t\tmsg.sendToTarget();\r\n\t\t\t}"
]
| [
"0.86931425",
"0.84387946",
"0.8427055",
"0.8260898",
"0.82184213",
"0.82184213",
"0.8169098",
"0.8108793",
"0.8104156",
"0.81008035",
"0.8097396",
"0.8097396",
"0.8094334",
"0.80909467",
"0.80862844",
"0.80862844",
"0.80862844",
"0.8072602",
"0.8068262",
"0.80425906",
"0.8039153",
"0.7990389",
"0.7990389",
"0.7990389",
"0.7990389",
"0.7990389",
"0.79731524",
"0.7969872",
"0.79629123",
"0.79629123",
"0.7956243",
"0.79551834",
"0.79541636",
"0.7890166",
"0.78861856",
"0.78565854",
"0.7855312",
"0.7855312",
"0.7852874",
"0.78527594",
"0.78420216",
"0.7836471",
"0.78085876",
"0.77916896",
"0.7785606",
"0.7764135",
"0.7752552",
"0.7752552",
"0.77418375",
"0.77418375",
"0.77173054",
"0.76565474",
"0.76520425",
"0.76435596",
"0.76207364",
"0.76197857",
"0.7617391",
"0.7615292",
"0.7610217",
"0.7602738",
"0.75803214",
"0.7577544",
"0.75694454",
"0.7544226",
"0.75308",
"0.7524978",
"0.75229776",
"0.7517178",
"0.7464897",
"0.7464897",
"0.74607253",
"0.7457365",
"0.74529743",
"0.7441671",
"0.74324423",
"0.7423119",
"0.7422309",
"0.7422309",
"0.7408318",
"0.73988587",
"0.73801726",
"0.7361254",
"0.736111",
"0.7357386",
"0.7343385",
"0.7339032",
"0.73296607",
"0.73296607",
"0.7324782",
"0.72499293",
"0.72496307",
"0.7245952",
"0.7242815",
"0.7238497",
"0.7238086",
"0.7219404",
"0.72059673",
"0.7200428",
"0.7199299",
"0.71956134",
"0.7183329"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public static boolean linearSearch(int[] arr, int num) {
if(arr==null || arr.length==0){
return false;
}
int len= arr.length;
for (int i = 0; i < len; i++) {
if(arr[i]==num){
return true;
}
}
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 | public static void main(String[] args) {
int[] arr = {2,7,4,9,36,3,0,24,65,6};
System.out.println("Enter number to be searched:\n");
Scanner scanner = new Scanner(System.in);
int num = scanner.nextInt();
System.out.println("Number is "+num);
if(linearSearch(arr,num)){
System.out.println("Number is present");
}
else{
System.out.println("Number is not present");
}
} | {
"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 |
Sets the icon and title of a drawer in the navigation drawer. | @Override
public void onBindViewHolder(DrawerAdapter.DrawerViewHolder holder, int position) {
Drawer currentDrawer = drawerInfo.get(position);
holder.title.setText(currentDrawer.getTitle());
holder.icon.setImageResource(currentDrawer.getIconId());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n// getActionBar().setTitle(mDrawerTitle);\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n// getActionBar().setTitle(mDrawerTitle);\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n try {\n getSupportActionBar().setTitle(\"Settings\");\n }catch(NullPointerException e){\n Toast.makeText(NavigationDrawerActivity.this, \"ActionBar \"+ e, Toast.LENGTH_SHORT).show();\n }\n //invalidateOptionsMenu();\n }",
"private void setupActionBar(String title) {\n Button openDrawer = findViewById(R.id.open_drawer);\n TextView activityTitle = findViewById(R.id.activity_title);\n\n Display display = getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n\n openDrawer.setBackgroundDrawable(new IconicsDrawable(this).icon(GoogleMaterial.Icon.gmd_menu).sizeDp(30).color(getResources().getColor(R.color.colorPrimary)));\n openDrawer.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mainDrawer.openDrawer();\n }\n });\n\n activityTitle.setText(title); //sets the TextViews text\n }",
"public void onDrawerOpened(View drawerView) {\n getActionBar().setTitle(\"Opened Drawer\");\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getActionBar().setTitle(mDrawerTitle);\n }",
"public void onDrawerOpened(View drawerView) {\n\t\t\t\t// getSupportActionBar().setTitle(mTitle);\n\t\t\t}",
"@Override\n public void onDrawerOpened(View drawerView) {\n getSupportActionBar().setTitle(mDrawerTitle);\n ActivityCompat.invalidateOptionsMenu(NavDrawerFragmentActivity.this);\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n //getActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n //getActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n //getSupportActionBar().setTitle(\"Navigation Drawer\");\n invalidateOptionsMenu();\n }",
"public void onDrawerOpened(View drawerView) {\r\n\t\t\t\tsuper.onDrawerOpened(drawerView);\r\n\t\t\t\tgetActionBar().setTitle(mDrawerTitle);\r\n\t\t\t}",
"private void setupDrawer() {\n PrimaryDrawerItem homItem = new PrimaryDrawerItem().withIdentifier(1)\n .withIcon(GoogleMaterial.Icon.gmd_home).withName(R.string.home)\n .withTextColor(getResources().getColor(R.color.defaultText))\n .withSelectedTextColor(getResources().getColor(R.color.colorPrimaryDark))\n .withIconColor(getResources().getColor(R.color.defaultText))\n .withSelectedIconColor(getResources().getColor(R.color.colorPrimaryDark));\n SecondaryDrawerItem setItem = new SecondaryDrawerItem().withIdentifier(2)\n .withIcon(GoogleMaterial.Icon.gmd_settings).withName(R.string.settings)\n .withTextColor(getResources().getColor(R.color.defaultText))\n .withSelectedTextColor(getResources().getColor(R.color.colorPrimaryDark))\n .withIconColor(getResources().getColor(R.color.defaultText))\n .withSelectedIconColor(getResources().getColor(R.color.colorPrimaryDark));\n SecondaryDrawerItem v24Item = new SecondaryDrawerItem().withIdentifier(4)\n .withIcon(GoogleMaterial.Icon.gmd_insert_drive_file).withName(R.string.id3v24edit)\n .withTextColor(getResources().getColor(R.color.defaultText))\n .withSelectedTextColor(getResources().getColor(R.color.colorPrimaryDark))\n .withIconColor(getResources().getColor(R.color.defaultText))\n .withSelectedIconColor(getResources().getColor(R.color.colorPrimaryDark));\n SecondaryDrawerItem v23Item = new SecondaryDrawerItem().withIdentifier(3)\n .withIcon(GoogleMaterial.Icon.gmd_insert_drive_file).withName(R.string.id3v23edit)\n .withTextColor(getResources().getColor(R.color.defaultText))\n .withSelectedTextColor(getResources().getColor(R.color.colorPrimaryDark))\n .withIconColor(getResources().getColor(R.color.defaultText))\n .withSelectedIconColor(getResources().getColor(R.color.colorPrimaryDark));\n SecondaryDrawerItem tagItem = new SecondaryDrawerItem().withIdentifier(5)\n .withIcon(GoogleMaterial.Icon.gmd_find_replace).withName(R.string.tagtofile)\n .withTextColor(getResources().getColor(R.color.defaultText))\n .withSelectedTextColor(getResources().getColor(R.color.colorPrimaryDark))\n .withIconColor(getResources().getColor(R.color.defaultText))\n .withSelectedIconColor(getResources().getColor(R.color.colorPrimaryDark));\n SecondaryDrawerItem helItem = new SecondaryDrawerItem().withIdentifier(6)\n .withIcon(GoogleMaterial.Icon.gmd_help_outline).withName(R.string.help)\n .withTextColor(getResources().getColor(R.color.defaultText))\n .withSelectedTextColor(getResources().getColor(R.color.colorPrimaryDark))\n .withIconColor(getResources().getColor(R.color.defaultText))\n .withSelectedIconColor(getResources().getColor(R.color.colorPrimaryDark));\n\n LayoutInflater li = LayoutInflater.from(getApplicationContext());\n View headerImage = li.inflate(R.layout.drawer_header, null);\n\n //create the drawer and remember the `Drawer` object\n mainDrawer = new DrawerBuilder()\n .withActivity(this)\n .withActionBarDrawerToggle(true)\n .withHeader(headerImage)\n .withSliderBackgroundColor(getResources().getColor(R.color.drawer_main))\n .addDrawerItems(\n homItem,\n new DividerDrawerItem(),\n v23Item,\n v24Item,\n tagItem,\n new DividerDrawerItem(),\n helItem\n //setItem\n )\n .withOnDrawerItemClickListener(new Drawer.OnDrawerItemClickListener() {\n @Override\n public boolean onItemClick(View view, int position, IDrawerItem drawerItem) {\n long identifier = drawerItem.getIdentifier();\n\n if (identifier == 1) {\n openHome();\n return true;\n } else if (identifier == 2) {\n openSettings();\n return true;\n } else if (identifier == 3) {\n open23();\n return true;\n } else if (identifier == 4) {\n open24();\n return true;\n } else if (identifier == 5) {\n openTagToFile();\n return true;\n } else {\n return true;\n }\n }\n }).withDrawerWidthDp(240).build();\n\n mainDrawer.setSelection(6);\n\n mainDrawer.openDrawer();\n mainDrawer.closeDrawer();\n }",
"private void setupDrawer(){\n\n drawerToggle = new ActionBarDrawerToggle(this, drawerLayout, R.string.drawerOpen,\n R.string.drawerClose){\n\n public void onDrawerOpened(View drawerView){\n\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(R.string.app_name);\n invalidateOptionsMenu();\n }\n\n public void onDrawerClosed(View view){\n\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(activityTitle);\n invalidateOptionsMenu();\n }\n };\n drawerToggle.setDrawerIndicatorEnabled(true);\n drawerLayout.setDrawerListener(drawerToggle);\n }",
"public void onDrawerOpened(View drawerView) {\n\t\t\t\tLog.d(TAG, \"nav drawer opened state\");\n\t\t\t\tgetActionBar().setTitle(drawerTitle);\n\t\t\t\tinvalidateOptionsMenu();// goes to onPrepareOptionsMenu()\n\t\t\t}",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Navigation!\");\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n getActionBar().setTitle(\"Guest Login\");\n invalidateOptionsMenu();\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n// getActionBar().setTitle(\"Select Destination\");\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Navigation\");\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n String mTitle = getResources().getString(R.string.mTitle);\n super.onDrawerOpened(drawerView);\n\n }",
"public void onDrawerOpened(View drawerView) {\n \tactivity.getSupportActionBar().setTitle(\"Menua\");\n \tactivity.invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"private void setupDrawer() {\n mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,\n R.string.navigation_drawer_open,\n R.string.navigation_drawer_close) {\n /** Called when drawer has been fully opened */\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n //getSupportActionBar().setTitle(\"Navigation Drawer\");\n invalidateOptionsMenu();\n }\n\n /** Called when drawer has been fully closed */\n public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getSupportActionBar().setTitle(mActivityTitle);\n invalidateOptionsMenu();\n }\n };\n\n mDrawerToggle.setDrawerIndicatorEnabled(true);\n mDrawerLayout.addDrawerListener(mDrawerToggle);\n }",
"private void setupDrawer() {\n //creates the drawer action bar object right here\n mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,\n R.string.drawer_open, R.string.drawer_close) {\n\n //Called when a drawer has settled in a completely open state.\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Navigation!\");\n //invalidateOptionsMenu();\n //creates call to onPrepareOptionsMenu()\n }\n\n //Called when a drawer has settled in a completely closed state\n public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mActivityTitle);\n //invalidateOptionsMenu();\n //creates call to onPrepareOptionsMenu()\n }\n };\n //Sets the drawer icon and display to be visible and true\n mDrawerToggle.setDrawerIndicatorEnabled(true);\n mDrawerLayout.setDrawerListener(mDrawerToggle);\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(mDrawerTitle);\n //updateView(5, 99, true);\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(mTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n // getSupportActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Navigation!\");\n //invalidateOptionsMenu();\n //creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n\t\t\t\tsuper.onDrawerOpened(drawerView);\n\t\t\t\tgetSupportActionBar().setTitle(\"Munchies\");\n\t\t\t\tinvalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n\t\t\t}",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getActionBar().setTitle(R.string.drawer_open);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(mDrawerTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(mDrawerTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"private void setupDrawer(){\n drawerToggle = new ActionBarDrawerToggle(\n this,\n drawerLayout,\n R.string.drawer_open,\n R.string.drawer_close) {\n\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }\n\n public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(appTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }\n };\n drawerToggle.setDrawerIndicatorEnabled(true);\n drawerLayout.addDrawerListener(drawerToggle);\n }",
"public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n\n //change toolbar title to 'Add a feed'\n toolbar.setTitle(getResources().getString(R.string.feedmenu));\n\n //show the add feed menu option\n showAddFeed();\n\n }",
"public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n try {\n getSupportActionBar().setTitle(activityTitle);\n }catch(NullPointerException e){\n Toast.makeText(NavigationDrawerActivity.this, \"ActionBar \"+ e, Toast.LENGTH_SHORT).show();\n }\n //invalidateOptionsMenu();\n }",
"@Override\n public void onDrawerClosed(View drawerView) {\n getSupportActionBar().setTitle(mTitle);\n ActivityCompat.invalidateOptionsMenu(NavDrawerFragmentActivity.this);\n }",
"public void doDrawerStuff() {\n Toolbar myToolbar = (Toolbar) findViewById(R.id.my_toolbar);\n setSupportActionBar(myToolbar);\n\n mPlanetTitles = getResources().getStringArray(R.array.planets_array);\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n\n\n mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,myToolbar, R.string.drawer_open, R.string.drawer_close) {\n\n /** Called when a drawer has settled in a completely closed state. */\n public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n // getSupportActionBar().setTitle(mTitle);\n\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }\n\n /** Called when a drawer has settled in a completely open state. */\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n // getSupportActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }\n };\n\n // Set the drawer toggle as the DrawerListener\n mDrawerLayout.setDrawerListener(mDrawerToggle);\n\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setHomeButtonEnabled(true);\n\n\n\n mDrawerList = (ListView) findViewById(R.id.left_drawer);\n\n // Set the adapter for the list view\n mDrawerList.setAdapter(new ArrayAdapter<String>(this,\n R.layout.drawer_list_item, mPlanetTitles));\n // Set the list's click listener\n mDrawerList.setOnItemClickListener(new DrawerItemClickListener());\n\n\n\n\n\n }",
"public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n// getActionBar().setTitle(mTitle);\n }",
"public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n// getActionBar().setTitle(mTitle);\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n if (actionBar != null) actionBar.setTitle(R.string.choose_to_do_list);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n menuvalue = 1;\n getSupportActionBar().setHomeAsUpIndicator(R.mipmap.back_arrow);\n }",
"private void setupDrawerContent() {\n previousMenuItem = navigationView.getMenu().findItem(R.id.nav_category);\n previousMenuItem.setChecked(true);\n previousMenuItem.setCheckable(true);\n\n navigationView.setNavigationItemSelectedListener(\n new NavigationView.OnNavigationItemSelectedListener() {\n @Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n\n drawerLayout.closeDrawer(Gravity.LEFT);\n\n if (previousMenuItem.getItemId() == menuItem.getItemId())\n return true;\n\n menuItem.setCheckable(true);\n menuItem.setChecked(true);\n previousMenuItem.setChecked(false);\n previousMenuItem = menuItem;\n\n switch (menuItem.getItemId()) {\n case R.id.nav_category:\n displayView(CATEGORIES_FRAG, null);\n break;\n case R.id.nav_favorites:\n displayView(FAVORITE_FRAG, null);\n break;\n case R.id.nav_reminder:\n displayView(REMINDER_FRAG, null);\n break;\n case R.id.nav_about:\n displayView(ABOUT_FRAG, null);\n break;\n case R.id.nav_feedback:\n IntentHelper.sendEmail(BaseDrawerActivity.this);\n break;\n case R.id.nav_rate_us:\n IntentHelper.voteForAppInBazaar(BaseDrawerActivity.this);\n break;\n case R.id.nav_settings:\n displayView(SETTINGS_FRAG, null);\n break;\n\n }\n\n\n return true;\n }\n }\n\n );\n }",
"void displayDrawer() {\n //toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n actionbar = getSupportActionBar();\n actionbar.setDisplayHomeAsUpEnabled(true);\n\n actionbar.setHomeAsUpIndicator(R.drawable.ic_menu);\n\n navigationView.setNavigationItemSelectedListener(\n new NavigationView.OnNavigationItemSelectedListener() {\n @Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n // set item as selected to persist highlight\n menuItem.setChecked(true);\n // close drawer when item is tapped\n mdrawer.closeDrawers();\n\n String choice = menuItem.getTitle().toString();\n\n switch (choice) {\n case \"Register\":\n Intent i = new Intent(getBaseContext(), SignIn.class);\n startActivity(i);\n break;\n case \"Log In\":\n Intent p = new Intent(getBaseContext(), LoginActivity.class);\n startActivity(p);\n break;\n\n case \"Profile Picture\":\n Intent pic = new Intent(getBaseContext(), ImageUpload.class);\n startActivity(pic);\n break;\n\n case \"Users\":\n Intent users = new Intent(getBaseContext(), Userlist.class);\n startActivity(users);\n break;\n\n case \"Chats\":\n Intent chats = new Intent(getBaseContext(), ChatList.class);\n startActivity(chats);\n break;\n }\n\n // Add code here to update the UI based on the item selected\n // For example, swap UI fragments here\n\n return true;\n }\n });\n }",
"public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Options\");\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Timesheet\");\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n// getActionBar().setTitle(\"WXTJ Student Radio\");\n }",
"@Override\n public void onDrawerOpened() {\n directionsHandleImage.setImageResource(R.drawable.tab_right_handle);\n }",
"public void onDrawerClosed(View view) {\n\t\t\t\t// getSupportActionBar().setTitle(mTitle);\n\t\t\t}",
"public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mTitle);\n }",
"private void setupDrawerContent(NavigationView navigationView){\n navigationView.setNavigationItemSelectedListener(\n new NavigationView.OnNavigationItemSelectedListener() {\n @Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n //selectDrawerItem(menuItem);\n switch(menuItem.getItemId()) {\n case R.id.review_menu:\n startActivity(new Intent(getApplicationContext(),MainActivity.class));\n break;\n case R.id.settings_menu:\n startActivity(new Intent(getApplicationContext(),SettingsActivity.class));\n break;\n case R.id.share_menu:\n Intent shareIntent = new Intent();\n shareIntent.setAction(Intent.ACTION_SEND);\n shareIntent.putExtra(Intent.EXTRA_TEXT, \"Check out Nearest Places App for your smartphone. Download it today from -----link-----\");\n shareIntent.setType(\"text/plain\");\n startActivity(shareIntent);\n break;\n case R.id.info_menu:\n\n break;\n default:\n //fragmentClass = FirstFragment.class;\n }\n return true;\n }\n });\n }",
"protected void onCreateDrawer() {\n toolbar = (Toolbar) findViewById(R.id.tool_bar);\n setSupportActionBar(toolbar);\n\n //Initializing NavigationView\n navigationView = (NavigationView) findViewById(R.id.navigation_view);\n\n navigationView.setNavigationItemSelectedListener(new NavigationViewItemListener());\n\n // Initializing Drawer Layout and ActionBarToggle\n drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n actionBarDrawerToggle = new ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.open_drawer, R.string.close_drawer){\n\n @Override\n public void onDrawerClosed(View drawerView) {\n // Code here will be triggered once the drawer closes as we don't want anything to happen so we leave this blank\n super.onDrawerClosed(drawerView);\n }\n\n @Override\n public void onDrawerOpened(View drawerView) {\n // Code here will be triggered once the drawer open as we don't want anything to happen so we leave this blank\n super.onDrawerOpened(drawerView);\n }\n };\n\n //Setting the actionbarToggle to drawer layout\n drawerLayout.addDrawerListener(actionBarDrawerToggle);\n\n //calling sync state is necessary or else your hamburger icon wont show up\n actionBarDrawerToggle.syncState();\n\n UpdateHeader(this, navigationView);\n\n if (YummySession.selectedItemPosition != -1) {\n navigationView.getMenu().getItem(YummySession.selectedItemPosition).setChecked(true);\n }\n\n }",
"public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getActionBar().setTitle(mTitle);\n }",
"private void addItemToDrawer() {\n\t\tmLDrawerItem.add(new DrawerItem(\"Control\", R.drawable.ic_control));\n\t\tmLDrawerItem.add(new DrawerItem(\"Setting\", R.drawable.ic_setting));\n\t\tmLDrawerItem.add(new DrawerItem(\"Feedback\", R.drawable.ic_feedback));\n\t\tmLDrawerItem.add(new DrawerItem(\"Help\", R.drawable.ic_help));\n\t\tmLDrawerItem.add(new DrawerItem(\"About\", R.drawable.ic_about));\n\n\t}",
"private void setupDrawer(){\n NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);\n assert navigationView != null;\n navigationView.setNavigationItemSelectedListener(this);\n View hView = navigationView.getHeaderView(0);\n\n this.nameInput = (TextView) hView.findViewById(R.id.nav_user_name);\n this.emailInput = (TextView) hView.findViewById(R.id.nav_user_email);\n\n this.userImage = (NetworkImageView) hView.findViewById(R.id.nav_user_image);\n\n assert drawer != null;\n drawer.addDrawerListener(new DrawerLayout.SimpleDrawerListener() {\n @Override\n public void onDrawerOpened(View drawerView) {\n mSearchView.setLeftMenuOpen(false);\n }\n });\n\n View switchView = navigationView.getMenu().findItem(R.id.nav_service).getActionView();\n SwitchCompat mSwitch = (SwitchCompat) switchView.findViewById(R.id.service_switcher);\n\n mSwitch.setChecked(leaveServiceOnAfterDestroy);\n mSwitch.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n SwitchCompat mSwitch = (SwitchCompat) v;\n if(mSwitch.isChecked()){\n //turn service on after destroy without question\n serviceSwitcher(true);\n }else{\n //if user want to turn service off then show dialog\n serviceSettingsDialog(v);\n }\n }\n });\n }",
"public void onDrawerOpened(View drawerView) {\n\n }",
"private void initViews(){\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n\n\n// toolbar.setTitleTextColor(getResources().getColor(android.R.color.white));\n// setSupportActionBar(toolbar);\n\n mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout , R.string.drawer_open, R.string.drawer_close) {\n\n /** Called when a drawer has settled in a completely closed state. */\n public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }\n\n /** Called when a drawer has settled in a completely open state. */\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n //getActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }\n };\n\n\n // Set the drawer toggle as the DrawerListener\n mDrawerLayout.setDrawerListener(mDrawerToggle);\n mDrawerToggle.syncState();\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setHomeButtonEnabled(true);\n\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n TextView Layout_NOME_TERMINAL = (TextView) drawerView.findViewById(R.id.t_NOME_TERMINAL);\n TextView Layout_NUMERO_TERMINAL = (TextView) drawerView.findViewById(R.id.t_NUMERO_TERMINAL);\n\n //invalidateOptionsMenu();\n Layout_NOME_TERMINAL.setText(\"ESTOQUISTA:\");\n Layout_NUMERO_TERMINAL.setText(nome);\n }",
"private void setUpNavigationView() {\n navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {\n\n // This method will trigger on item Click of navigation menu\n @Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n\n //Check to see which item was being clicked and perform appropriate action\n switch (menuItem.getItemId()) {\n\n case R.id.nav_home:\n navItemIndex = 0;\n CURRENT_TAG = TAG_HOME;\n break;\n case R.id.nav_movies:\n navItemIndex = 1;\n CURRENT_TAG = GIVE_ASSIGNMENT;\n break;\n case R.id.nav_result:\n navItemIndex = 2;\n CURRENT_TAG = TAG_RESUlT;\n break;\n case R.id.nav_chat:\n navItemIndex = 3;\n CURRENT_TAG = CHAT;\n break;\n case R.id.nav_notifications:\n navItemIndex = 4;\n CURRENT_TAG = Profile;\n break;\n\n default:\n navItemIndex = 0;\n }\n\n //Checking if the item is in checked state or not, if not make it in checked state\n if (menuItem.isChecked()) {\n menuItem.setChecked(false);\n } else {\n menuItem.setChecked(true);\n }\n menuItem.setChecked(true);\n\n loadHomeFragment();\n\n return true;\n }\n });\n\n\n ActionBarDrawerToggle actionBarDrawerToggle = new ActionBarDrawerToggle(this, drawer, toolbar, R.string.openDrawer, R.string.closeDrawer) {\n\n @Override\n public void onDrawerClosed(View drawerView) {\n // Code here will be triggered once the drawer closes as we dont want anything to happen so we leave this blank\n super.onDrawerClosed(drawerView);\n }\n\n @Override\n public void onDrawerOpened(View drawerView) {\n // Code here will be triggered once the drawer open as we dont want anything to happen so we leave this blank\n super.onDrawerOpened(drawerView);\n }\n };\n\n //Setting the actionbarToggle to drawer layout\n drawer.setDrawerListener(actionBarDrawerToggle);\n\n //calling sync state is necessary or else your hamburger icon wont show up\n actionBarDrawerToggle.syncState();\n }",
"public void setToolbar() {\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n // Menginisiasi NavigationView\n NavigationView navigationView = (NavigationView) findViewById(R.id.navigation_view);\n //Mengatur Navigasi View Item yang akan dipanggil untuk menangani item klik menu navigasi\n navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {\n // This method will trigger on item Click of navigation menu\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {\n //Memeriksa apakah item tersebut dalam keadaan dicek atau tidak,\n if (menuItem.isChecked()) menuItem.setChecked(false);\n else menuItem.setChecked(true);\n //Menutup drawer item klik\n drawerLayout.closeDrawers();\n //Memeriksa untuk melihat item yang akan dilklik dan melalukan aksi\n toolbarNav(menuItem);\n return true;\n }\n });\n // Menginisasi Drawer Layout dan ActionBarToggle\n drawerLayout = (DrawerLayout) findViewById(R.id.drawer);\n ActionBarDrawerToggle actionBarDrawerToggle = new ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.openDrawer, R.string.closeDrawer) {\n @Override\n public void onDrawerClosed(View drawerView) {\n // Kode di sini akan merespons setelah drawer menutup disini kita biarkan kosong\n super.onDrawerClosed(drawerView);\n }\n\n @Override\n public void onDrawerOpened(View drawerView) {\n // Kode di sini akan merespons setelah drawer terbuka disini kita biarkan kosong\n super.onDrawerOpened(drawerView);\n }\n };\n //Mensetting actionbarToggle untuk drawer layout\n drawerLayout.setDrawerListener(actionBarDrawerToggle);\n //memanggil synstate\n actionBarDrawerToggle.syncState();\n }",
"@Override\n public void onHomeButtonClick() {\n drawerLayout.openDrawer(Gravity.LEFT);\n\n }",
"private void setNavigationDrawer(ArrayList<Boolean> isCheckedArray) {\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_main);\n setSupportActionBar(toolbar);\n if (getSupportActionBar()!= null) {\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n } else {\n Log.d(TAG_MAIN, \"SUPPORT ACTION BAR IS NULL\");\n }\n String[] navResourceArray = getResources().getStringArray(R.array.genre);\n List<NaviagtionEntry> drawerEntries = new ArrayList<>();\n\n drawerEntries.add(new NavigationDivider());\n\n for (int i =1; i < navResourceArray.length; i++) {\n drawerEntries.add(new NavigationToggle(navResourceArray[i]));\n }\n\n NavigationFragment drawerFragment = (NavigationFragment) getSupportFragmentManager()\n .findFragmentById(R.id.fragment_navigation_drawer);\n\n drawerFragment.initDrawer((android.support.v4.widget.DrawerLayout) findViewById(R.id.drawer_layout_main),\n toolbar, drawerEntries,isCheckedArray);\n Log.d(TAG_MAIN, \"THE initDrawer HAS BEEN CALLED ON MAIN\");\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n }",
"public void onDrawerClosed(View view) {\n getActionBar().setTitle(\"Closed Drawer\");\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"public void onDrawerClosed(View view) {\n getActionBar().setTitle(mTitle);\n invalidateOptionsMenu();\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n Log.d(\"Apps Main\", \"Open drawer \");\n }",
"public void setTitle(String title) {\n// toolbar.setTitle(title);\n// setSupportActionBar(toolbar);\n// resetNavigationOnClickListener();\n titleTextView.setText(title);\n }",
"public void onDrawerClosed(View view) {\r\n\t\t\t\tsuper.onDrawerClosed(view);\r\n\t\t\t\tgetActionBar().setTitle(mTitle);\r\n\t\t\t}",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }",
"public void initializeDrawer() {\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n mSubreddits = getResources().getStringArray(R.array.subreddit_names);\n mDrawerList = (ListView) findViewById(R.id.left_drawer);\n\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,\n R.layout.drawer_list_item, mSubreddits);\n mDrawerList.setAdapter(adapter);\n setSelectedItem(0);\n\n // Set the list's click listener\n mDrawerList.setOnItemClickListener(new DrawerItemClickListener());\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu();\n }",
"private void initializeNavDrawer() {\n // Obtain handles to drawer UI objects\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n mDrawerList = (ListView) findViewById(R.id.left_drawer);\n\n // Get choices\n mDrawerChoices = getDrawerChoices();\n\n // Sets drawer list dividers\n int[] colors = {0, drawer_divider_color, 0}; // red for the example\n mDrawerList.setDivider(new GradientDrawable(GradientDrawable.Orientation.RIGHT_LEFT, colors));\n mDrawerList.setDividerHeight(1);\n\n // Sets shadowing on drawer\n mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START);\n\n // Sets drawer adapter\n mDrawerList.setAdapter(new ArrayAdapter<String>(this, R.layout.drawer_list_item, mDrawerChoices));\n\n // Sets drawer click listener\n mDrawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n selectNavDrawerItem(position);\n }\n });\n\n // Sets action of drawer when clicked\n mTitle = mDrawerTitle = getTitle();\n mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, R.drawable.ic_drawer,\n R.string.drawer_open, R.string.drawer_close) {\n @Override\n public void onDrawerOpened(View drawerView) {\n // Set title to app title and invalidate\n getSupportActionBar().setTitle(mDrawerTitle);\n ActivityCompat.invalidateOptionsMenu(NavDrawerFragmentActivity.this);\n }\n\n @Override\n public void onDrawerClosed(View drawerView) {\n // Set title to fragment title and invalidate\n getSupportActionBar().setTitle(mTitle);\n ActivityCompat.invalidateOptionsMenu(NavDrawerFragmentActivity.this);\n }\n };\n\n // Sets listener\n mDrawerLayout.setDrawerListener(mDrawerToggle);\n\n // Sets up action bar to support nav drawer\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setHomeButtonEnabled(true);\n }\n }",
"public void onDrawerClosed(View view) {\n \tactivity.getSupportActionBar().setTitle(\"Txootx!\");\n \tactivity.invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n supportInvalidateOptionsMenu();\n }",
"public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n // getSupportActionBar().setTitle(mTitle);\n\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"void onNavigationDrawerItemSelected(int resourceId);",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_about) {\n startActivity(new Intent(HomeActivity.this, AboutActivity.class));\n // toolbar.setTitle(\"ABOUT US\");\n // Handle the camera action\n }\n else if (id == R.id.nav_magazines) {\n // Toast.makeText(this,\"Downloaded==\",Toast.LENGTH_LONG).show();\n //getSupportActionBar().setDisplayUseLogoEnabled(true);\n // toolbar.setLogo(R.drawable.nav_icon_logo);\n state=0;\n callDatabaseInitial();\n toolbar.setTitle(\"Alle utgivelser\");\n\n\n }\n\n\n else if (id == R.id.nav_downloaded_magazines) {\n // getSupportActionBar().setDisplayUseLogoEnabled(false);\n // Toast.makeText(this,\"Downloaded==\",Toast.LENGTH_LONG).show();\n\n state=1;\n callDatabaseInitial();\n toolbar.setTitle(\"LASTET NED NYHETER\");\n\n\n } else if (id == R.id.nav_favorite_magazines) {\n // getSupportActionBar().setDisplayUseLogoEnabled(false);\n state=2;\n callDatabaseInitial();\n toolbar.setTitle(\"FAVORITT NYHETER\");\n\n } else if (id == R.id.nav_my_profile) {\n // getSupportActionBar().setDisplayUseLogoEnabled(false);\n // if(isNetworkAvailable(this)) {\n startActivity(new Intent(HomeActivity.this, ChangeProfileActivity.class));\n// }else{\n// Toast.makeText(this,\"No internet connection !\",Toast.LENGTH_SHORT).show();\n// }\n\n } else if (id == R.id.nav_setting) {\n // getSupportActionBar().setDisplayUseLogoEnabled(false);\n openSettingsPage();\n toolbar.setTitle(\"INNSTILLINGER\");\n\n\n }\n// else if (id == R.id.nav_subscribe) {\n// // getSupportActionBar().setDisplayUseLogoEnabled(false);\n// startActivity(new Intent(HomeActivity.this, SubscriptionActivity.class));\n//\n//\n// }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"public void onDrawerOpened(View drawerView) {\n\t\t\t\t\t invalidateOptionsMenu(); \n\t\t\t\t\t }"
]
| [
"0.72061557",
"0.72061557",
"0.71395123",
"0.7066885",
"0.6997805",
"0.699274",
"0.6954385",
"0.694481",
"0.6889912",
"0.6889912",
"0.6880158",
"0.6869872",
"0.68336993",
"0.6820865",
"0.6784858",
"0.67847836",
"0.67812246",
"0.67797154",
"0.6778821",
"0.6775142",
"0.6769376",
"0.67677796",
"0.6745433",
"0.6742533",
"0.673674",
"0.6721627",
"0.6712657",
"0.670103",
"0.66975176",
"0.66917914",
"0.66917914",
"0.66270304",
"0.65666467",
"0.651477",
"0.6480916",
"0.63742423",
"0.6366756",
"0.6366756",
"0.6354347",
"0.6300706",
"0.62791175",
"0.62741876",
"0.6265817",
"0.6222048",
"0.6212159",
"0.61973614",
"0.6145751",
"0.6121177",
"0.6118393",
"0.61133593",
"0.6104925",
"0.60907006",
"0.60867584",
"0.608422",
"0.60774034",
"0.6060968",
"0.6043605",
"0.6037326",
"0.60327363",
"0.6020375",
"0.6020116",
"0.59661704",
"0.5944402",
"0.59362626",
"0.59348255",
"0.59348255",
"0.59348255",
"0.59348255",
"0.59348255",
"0.59348255",
"0.59348255",
"0.59348255",
"0.59348255",
"0.59348255",
"0.59348255",
"0.5932988",
"0.59254414",
"0.59254414",
"0.59254414",
"0.5897744",
"0.5882202",
"0.58794564",
"0.5855973",
"0.5855973",
"0.5855973",
"0.5855973",
"0.5840792",
"0.58386946",
"0.58386946",
"0.58386946",
"0.58386946",
"0.5834066",
"0.58283657",
"0.5794129",
"0.57825613",
"0.5770612",
"0.57701796",
"0.57701796",
"0.57657623",
"0.5762654",
"0.57469153"
]
| 0.0 | -1 |
Used for passing the list of options to the drawer, because of Android Annotations. | public void setDrawers(List<Drawer> drawers){
this.drawerInfo = drawers;
this.notifyDataSetChanged();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addDrawerItems(String[] optsArray) {\n final ArrayAdapter<String> mAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, optsArray);\n mDrawerList.setAdapter(mAdapter);\n }",
"public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }",
"protected abstract void addMenuOptions();",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Options\");\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"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 }",
"protected String[] getDrawerChoices() {\n return getResources().getStringArray(R.array.nav_drawer_array);\n }",
"public void doDrawerStuff() {\n Toolbar myToolbar = (Toolbar) findViewById(R.id.my_toolbar);\n setSupportActionBar(myToolbar);\n\n mPlanetTitles = getResources().getStringArray(R.array.planets_array);\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n\n\n mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,myToolbar, R.string.drawer_open, R.string.drawer_close) {\n\n /** Called when a drawer has settled in a completely closed state. */\n public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n // getSupportActionBar().setTitle(mTitle);\n\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }\n\n /** Called when a drawer has settled in a completely open state. */\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n // getSupportActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }\n };\n\n // Set the drawer toggle as the DrawerListener\n mDrawerLayout.setDrawerListener(mDrawerToggle);\n\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setHomeButtonEnabled(true);\n\n\n\n mDrawerList = (ListView) findViewById(R.id.left_drawer);\n\n // Set the adapter for the list view\n mDrawerList.setAdapter(new ArrayAdapter<String>(this,\n R.layout.drawer_list_item, mPlanetTitles));\n // Set the list's click listener\n mDrawerList.setOnItemClickListener(new DrawerItemClickListener());\n\n\n\n\n\n }",
"protected void showOptions(){\n mOptionList.setClickable(true);\n mOptionList.setVisibility(View.VISIBLE);\n }",
"void setupToolbarDropDown(List<? extends CharSequence> dropDownItemList);",
"private void addDrawerItems() {\n String[] osArray = { \"Profile\", \"Email\", \"Payments\", \"Settings\", \"Help\" };\n mAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, osArray);\n mDrawerList.setAdapter(mAdapter);\n }",
"public void showOptionsDialog(final Context context) {\n String navigationURI = \"google.navigation:mode=w&q=\"; // walking\n if (distanceTo == null) {\n Location location = new Location(\"\");\n location.setLatitude(latitude);\n location.setLongitude(longitude);\n Location cur_location = GeoUtils.getCurrentLocation(context);\n if (cur_location != null) {\n distanceTo = cur_location.distanceTo(location);\n }\n }\n if (distanceTo != null) {\n if (distanceTo > NAVIG_THRESHOLD) { // driving\n navigationURI = \"google.navigation:mode=d&q=\";\n }\n }\n final Intent intent =\n new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(navigationURI\n + Device.this.latitude.toString() + \",\" + Device.this.longitude.toString()));\n\n // decide whether to show both refresh and navigate options or just\n // refresh\n String[] items;\n final PackageManager packageManager = context.getPackageManager();\n @SuppressWarnings(\"rawtypes\")\n List resolveInfo =\n packageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);\n // only show navigate option if intent is handleable\n if (resolveInfo.size() > 0 && this.latitude != null && this.longitude != null) {\n final String[] text =\n {\n context.getString(R.string.refresh_location),\n context.getString(R.string.navigate_to) };\n items = text;\n } else {\n final String[] text = { context.getString(R.string.refresh_location) };\n items = text;\n }\n // show options\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n String title = displayName;\n if (battery != null) {\n title = title + \" (\" + context.getString(R.string.battery) + \" \" + battery + \"%)\";\n }\n builder.setTitle(title);\n builder.setItems(items, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (item == 0) {\n // refresh button pressed\n if (isFriend()) {\n sendNetworkRequestFindFriend(context);\n } else {\n sendNetworkRequestFindDevice(context);\n }\n } else if (item == 1) {\n // navigate button pressed\n context.startActivity(intent);\n }\n }\n });\n CommonUtils.showDialog(builder);\n }",
"private void CreateMenu() {\n\t\topcionesMenu = getResources().getStringArray(\r\n\t\t\t\tR.array.devoluciones_lista_options);\r\n\r\n\t\tdrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\r\n\t\t// Buscamos nuestro menu lateral\r\n\t\tdrawerList = (ListView) findViewById(R.id.left_drawer);\r\n\r\n\t\tdrawerList.setAdapter(new ArrayAdapter<String>(getSupportActionBar()\r\n\t\t\t\t.getThemedContext(), android.R.layout.simple_list_item_1,\r\n\t\t\t\topcionesMenu));\r\n\r\n\t\t// Añadimos Funciones al menú laterak\r\n\t\tdrawerList.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t@SuppressLint(\"NewApi\")\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\tint position, long id) {\r\n\r\n\t\t\t\tdrawerList.setItemChecked(position, true);\r\n\t\t\t\tdrawerLayout.closeDrawers();\r\n\t\t\t\ttituloSeccion = opcionesMenu[position];\r\n\t\t\t\tgetSupportActionBar().setTitle(tituloSeccion);\r\n\r\n\t\t\t\t// SELECCIONAR LA POSICION DEL RECIBO SELECCIONADO ACTUALMENTE\r\n\t\t\t\tpositioncache = customArrayAdapter.getSelectedPosition();\r\n\t\t\t\t// int pos = customArrayAdapter.getSelectedPosition();\r\n\t\t\t\t// OBTENER EL RECIBO DE LA LISTA DE RECIBOS DEL ADAPTADOR\r\n\t\t\t\titem_selected = (vmDevolucion) customArrayAdapter\r\n\t\t\t\t\t\t.getItem(positioncache);\r\n\t\t\t\tif(fragmentActive== FragmentActive.LIST){\r\n\t\t\t\t\r\n\t\t\t\t\tswitch (position) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcase NUEVO_DEVOLUCION:\r\n\t\t\t\t\t\t\tintent = new Intent(ViewDevoluciones.this,\r\n\t\t\t\t\t\t\t\t\tViewDevolucionEdit.class);\r\n\t\t\t\t\t\t\tintent.putExtra(\"requestcode\", NUEVO_DEVOLUCION);\r\n\t\t\t\t\t\t\tstartActivityForResult(intent, NUEVO_DEVOLUCION);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase ABRIR_DEVOLUCION:\r\n\t\t\t\t\t\t\tabrirDevolucion();\r\n\t\t\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase BORRAR_DEVOLUCION:\r\n\t\t\t\t\t\t\tif (item_selected == null) {\r\n\t\t\t\t\t\t\t\tdrawerLayout.closeDrawers();\r\n\t\t\t\t\t\t\t\tAppDialog.showMessage(vd, \"Información\",\r\n\t\t\t\t\t\t\t\t\t\t\"Seleccione un registro.\",\r\n\t\t\t\t\t\t\t\t\t\tDialogType.DIALOGO_ALERTA);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\tif (!item_selected.getEstado().equals(\"REGISTRADA\")) {\r\n\t\t\t\t\t\t\t\tdrawerLayout.closeDrawers();\r\n\t\t\t\t\t\t\t\tAppDialog.showMessage(vd, \"Información\",\r\n\t\t\t\t\t\t\t\t\t\t\"El registro no se puede borrar en estado \"+ item_selected.getItemEstado()+\" .\",\r\n\t\t\t\t\t\t\t\t\t\tDialogType.DIALOGO_ALERTA);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tMessage msg = new Message();\r\n\t\t\t\t\t\t\tBundle b = new Bundle();\r\n\t\t\t\t\t\t\tb.putInt(\"id\", (int) item_selected.getId());\r\n\t\t\t\t\t\t\tmsg.setData(b);\r\n\t\t\t\t\t\t\tmsg.what = ControllerProtocol.DELETE_DATA_FROM_LOCALHOST;\r\n\t\t\t\t\t\t\tNMApp.getController().getInboxHandler().sendMessage(msg);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase ENVIAR_DEVOLUCION:\r\n\t\t\t\t\t\t\tif (item_selected == null) {\r\n\t\t\t\t\t\t\t\tdrawerLayout.closeDrawers();\r\n\t\t\t\t\t\t\t\tAppDialog.showMessage(vd, \"Información\",\r\n\t\t\t\t\t\t\t\t\t\t\"Seleccione un registro.\",\r\n\t\t\t\t\t\t\t\t\t\tDialogType.DIALOGO_ALERTA);\r\n\t\t\t\t\t\t\t\treturn;\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\tenviarDevolucion(ControllerProtocol.GETOBSERVACIONDEV);\r\n\t\t\t\t\t\t\t//BDevolucionM.beforeSend(item_selected.getId());\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase IMPRIMIR_COMPROBANTE:\r\n\t\t\t\t\t\t\tif (item_selected == null) {\r\n\t\t\t\t\t\t\t\tdrawerLayout.closeDrawers();\r\n\t\t\t\t\t\t\t\tAppDialog.showMessage(vd, \"Información\",\r\n\t\t\t\t\t\t\t\t\t\t\"Seleccione un registro.\",\r\n\t\t\t\t\t\t\t\t\t\tDialogType.DIALOGO_ALERTA);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tdevolucion = ModelDevolucion.getDevolucionbyID(item_selected.getId());\r\n\t\t\t\t\t\t\tif (devolucion.getNumeroCentral() == 0)\r\n\t\t\t\t\t\t\t\tenviarDevolucion(ControllerProtocol.GETOBSERVACIONDEV);\r\n\t\t\t\t\t\t\telse {\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tenviarImprimirDevolucion(\r\n\t\t\t\t\t\t\t\t\t\t\"Se mandara a imprimir el comprobante de la Devolución\",\r\n\t\t\t\t\t\t\t\t\t\tdevolucion);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * BDevolucionM.ImprimirDevolucion(item_selected.getId(),\r\n\t\t\t\t\t\t\t * false);\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase BORRAR_ENVIADAS:\r\n\t\t\t\t\t\t\tif (item_selected == null) \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tdrawerLayout.closeDrawers();\r\n\t\t\t\t\t\t\t\tAppDialog.showMessage(vd, \"Información\",\r\n\t\t\t\t\t\t\t\t\t\t\"Seleccione un registro.\",\r\n\t\t\t\t\t\t\t\t\t\tDialogType.DIALOGO_ALERTA);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\t\t\tMessage msg2 = new Message();\r\n\t\t\t\t\t\t\tBundle b2 = new Bundle();\r\n\t\t\t\t\t\t\tb2.putInt(\"id\", -1);\r\n\t\t\t\t\t\t\tmsg2.setData(b2);\r\n\t\t\t\t\t\t\tmsg2.what = ControllerProtocol.DELETE_DATA_FROM_LOCALHOST;\r\n\t\t\t\t\t\t\tNMApp.getController().getInboxHandler().sendMessage(msg2);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase FICHA_DEL_CLIENTE:\r\n\t\t\t\t\t\t\tif (item_selected == null) {\r\n\t\t\t\t\t\t\t\tdrawerLayout.closeDrawers();\r\n\t\t\t\t\t\t\t\tAppDialog.showMessage(vd, \"Información\",\r\n\t\t\t\t\t\t\t\t\t\t\"Seleccione un registro.\",\r\n\t\t\t\t\t\t\t\t\t\tDialogType.DIALOGO_ALERTA);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\t\t\tif (NMNetWork.isPhoneConnected(NMApp.getContext())\r\n\t\t\t\t\t\t\t\t\t&& NMNetWork.CheckConnection(NMApp.getController())) {\r\n\t\t\t\t\t\t\t\tfragmentActive = FragmentActive.FICHACLIENTE;\r\n\t\t\t\t\t\t\t\tShowCustomerDetails();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase CUENTAS_POR_COBRAR:\r\n\t\t\t\t\t\t\tif (item_selected == null) {\r\n\t\t\t\t\t\t\t\tdrawerLayout.closeDrawers();\r\n\t\t\t\t\t\t\t\tAppDialog.showMessage(vd, \"Información\",\r\n\t\t\t\t\t\t\t\t\t\t\"Seleccione un registro.\",\r\n\t\t\t\t\t\t\t\t\t\tDialogType.DIALOGO_ALERTA);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (NMNetWork.isPhoneConnected(NMApp.getContext())\r\n\t\t\t\t\t\t\t\t\t&& NMNetWork.CheckConnection(NMApp.getController())) {\r\n\t\t\t\t\t\t\t\tfragmentActive = FragmentActive.CONSULTAR_CUENTA_COBRAR;\r\n\t\t\t\t\t\t\t\tLOAD_CUENTASXPAGAR();\r\n\t\t\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase CERRAR:\r\n\t\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(fragmentActive == FragmentActive.CONSULTAR_CUENTA_COBRAR){\r\n\t\t\t\t\t\r\n\t\t\t\t\tswitch (position) {\r\n\t\t\t\t\tcase MOSTRAR_FACTURAS:\r\n\t\t\t\t\t\tcuentasPorCobrar.cargarFacturasCliente();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MOSTRAR_NOTAS_DEBITO: \r\n\t\t\t\t\t\tcuentasPorCobrar.cargarNotasDebito(); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MOSTRAR_NOTAS_CREDITO: \r\n\t\t\t\t\t\tcuentasPorCobrar.cargarNotasCredito(); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MOSTRAR_PEDIDOS: \r\n\t\t\t\t\t\tcuentasPorCobrar.cargarPedidos();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MOSTRAR_RECIBOS: \r\n\t\t\t\t\t\tcuentasPorCobrar.cargarRecibosColector(); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\ttituloSeccion = getTitle();\r\n\t\ttituloApp = getTitle();\r\n\r\n\t\tdrawerToggle = new ActionBarDrawerToggle(this, drawerLayout,\r\n\t\t\t\tR.drawable.ic_navigation_drawer, R.string.drawer_open,\r\n\t\t\t\tR.string.drawer_close) {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onDrawerClosed(View view) {\r\n\t\t\t\tgetSupportActionBar().setTitle(tituloSeccion);\r\n\t\t\t\tActivityCompat.invalidateOptionsMenu(ViewDevoluciones.this);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onDrawerOpened(View drawerView) {\r\n\t\t\t\tgetSupportActionBar().setTitle(tituloApp);\r\n\t\t\t\tActivityCompat.invalidateOptionsMenu(ViewDevoluciones.this);\r\n\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// establecemos el listener para el dragable ....\r\n\t\tdrawerLayout.setDrawerListener(drawerToggle);\r\n\r\n\t\tgetSupportActionBar().setDisplayHomeAsUpEnabled(true);\r\n\t\tgetSupportActionBar().setHomeButtonEnabled(true);\r\n\r\n\t}",
"public void initializeMenuItems() {\n menuItems = new LinkedHashMap<TestingOption, MenuDrawerItem>();\n menuItems.put(TestingOption.TESTING_OPTION, create(TestingOption.TESTING_OPTION, getResources().getString(R.string.testing_section).toUpperCase(), MenuDrawerItem.SECTION_TYPE));\n menuItems.put(TestingOption.ANNOTATION_OPTION, create(TestingOption.ANNOTATION_OPTION, getResources().getString(R.string.option_annotation_POI), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VIEW_SETTINGS_OPTION, create(TestingOption.MAP_VIEW_SETTINGS_OPTION, getResources().getString(R.string.option_map_view_settings), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_CACHE_OPTION, create(TestingOption.MAP_CACHE_OPTION, getResources().getString(R.string.option_map_cache), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.LAST_RENDERED_FRAME_OPTION, create(TestingOption.LAST_RENDERED_FRAME_OPTION, getResources().getString(R.string.option_last_rendered_frame), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, create(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, getResources().getString(R.string.option_ccp_animation_custom_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.BOUNDING_BOX_OPTION, create(TestingOption.BOUNDING_BOX_OPTION, getResources().getString(R.string.option_bounding_box), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.INTERNALIZATION_OPTION, create(TestingOption.INTERNALIZATION_OPTION, getResources().getString(R.string.option_internalization), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATE_OPTION, create(TestingOption.ANIMATE_OPTION, getResources().getString(R.string.option_animate), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_STYLE_OPTION, create(TestingOption.MAP_STYLE_OPTION, getResources().getString(R.string.option_map_style), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.SCALE_VIEW_OPTION, create(TestingOption.SCALE_VIEW_OPTION, getResources().getString(R.string.option_scale_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.CALLOUT_VIEW_OPTION, create(TestingOption.CALLOUT_VIEW_OPTION, getResources().getString(R.string.option_callout_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTING_OPTION, create(TestingOption.ROUTING_OPTION, getResources().getString(R.string.option_routing), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTE_WITH_POINTS, create(TestingOption.ROUTE_WITH_POINTS, getResources().getString(R.string.option_routing_with_points),MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VERSION_OPTION, create(TestingOption.MAP_VERSION_OPTION, getResources().getString(R.string.option_map_version_information), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.OVERLAYS_OPTION, create(TestingOption.OVERLAYS_OPTION, getResources().getString(R.string.option_overlays), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POI_TRACKER, create(TestingOption.POI_TRACKER, getResources().getString(R.string.option_poi_tracker), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POSITION_LOGGING_OPTION, create(TestingOption.POSITION_LOGGING_OPTION, getResources().getString(R.string.option_position_logging), MenuDrawerItem.ITEM_TYPE));\n\n list = new ArrayList<MenuDrawerItem>(menuItems.values());\n drawerList.setAdapter(new MenuDrawerAdapter(DebugMapActivity.this, R.layout.element_menu_drawer_item, list));\n drawerList.setOnItemClickListener(new DrawerItemClickListener());\n\n }",
"public void onDrawerOpened(View drawerView) {\n\t\t\t\t\t invalidateOptionsMenu(); \n\t\t\t\t\t }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n if (actionBar != null) actionBar.setTitle(R.string.choose_to_do_list);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\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 abstract String[] getOptions();",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptionsDialog();\r\n\t\t\t}",
"public void onDrawerOpened(View drawerView) {\n supportInvalidateOptionsMenu();\n }",
"private void gotoOptions() {\n Intent launchOptions = new Intent(this, Preferences.class);\n startActivity(launchOptions);\n }",
"public void onDrawerOpened(View drawerView) {\n invalidateOptionsMenu();\n }",
"@Override\n public String[] getMenuOptions() {\n String[] options = {\"Change your username\", \"Change your password\", \"Change your email\"};\n return options;\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu();\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"@Override\n\tabstract protected List<String> getOptionsList();",
"Map getOptions();",
"private void addDrawerItems(){\n\n String[] listArr = getResources().getStringArray(R.array.navItems);\n navAdapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, listArr);\n drawerList.setAdapter(navAdapter);\n\n drawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n drawerList.setItemChecked(position, true);\n switch(position){\n case 0:\n intent = new Intent(ItemList.this, AddGoal.class);\n startActivity(intent);\n break;\n case 1:\n intent = new Intent(ItemList.this, GoalsList.class);\n startActivity(intent);\n break;\n case 2:\n intent = new Intent(ItemList.this, CompletedGoalsList.class);\n startActivity(intent);\n break;\n case 3:\n intent = new Intent(ItemList.this, AddWeight.class);\n startActivity(intent);\n break;\n case 4:\n intent = new Intent(ItemList.this, WeightHistory.class);\n startActivity(intent);\n break;\n case 5:\n intent = new Intent(ItemList.this, SelectItem.class);\n startActivity(intent);\n break;\n case 6:\n intent = new Intent(ItemList.this, ItemsHistory.class);\n startActivity(intent);\n break;\n default:\n break;\n }\n }\n });\n }",
"public void action() {\n\t\tfor(int i=0; i<facade.getServiceOptions().getOptionsList().size();i++){\n\t\t\tReader reader= new Reader(facade.getOptionsList().get(i));\n\t\t\treader.print();\n\t\t}\n\t}",
"@Override\npublic List<DrawerItem> drawerMenus(Context context) {\n\treturn null;\n}",
"private void setupDrawer() {\n PrimaryDrawerItem homItem = new PrimaryDrawerItem().withIdentifier(1)\n .withIcon(GoogleMaterial.Icon.gmd_home).withName(R.string.home)\n .withTextColor(getResources().getColor(R.color.defaultText))\n .withSelectedTextColor(getResources().getColor(R.color.colorPrimaryDark))\n .withIconColor(getResources().getColor(R.color.defaultText))\n .withSelectedIconColor(getResources().getColor(R.color.colorPrimaryDark));\n SecondaryDrawerItem setItem = new SecondaryDrawerItem().withIdentifier(2)\n .withIcon(GoogleMaterial.Icon.gmd_settings).withName(R.string.settings)\n .withTextColor(getResources().getColor(R.color.defaultText))\n .withSelectedTextColor(getResources().getColor(R.color.colorPrimaryDark))\n .withIconColor(getResources().getColor(R.color.defaultText))\n .withSelectedIconColor(getResources().getColor(R.color.colorPrimaryDark));\n SecondaryDrawerItem v24Item = new SecondaryDrawerItem().withIdentifier(4)\n .withIcon(GoogleMaterial.Icon.gmd_insert_drive_file).withName(R.string.id3v24edit)\n .withTextColor(getResources().getColor(R.color.defaultText))\n .withSelectedTextColor(getResources().getColor(R.color.colorPrimaryDark))\n .withIconColor(getResources().getColor(R.color.defaultText))\n .withSelectedIconColor(getResources().getColor(R.color.colorPrimaryDark));\n SecondaryDrawerItem v23Item = new SecondaryDrawerItem().withIdentifier(3)\n .withIcon(GoogleMaterial.Icon.gmd_insert_drive_file).withName(R.string.id3v23edit)\n .withTextColor(getResources().getColor(R.color.defaultText))\n .withSelectedTextColor(getResources().getColor(R.color.colorPrimaryDark))\n .withIconColor(getResources().getColor(R.color.defaultText))\n .withSelectedIconColor(getResources().getColor(R.color.colorPrimaryDark));\n SecondaryDrawerItem tagItem = new SecondaryDrawerItem().withIdentifier(5)\n .withIcon(GoogleMaterial.Icon.gmd_find_replace).withName(R.string.tagtofile)\n .withTextColor(getResources().getColor(R.color.defaultText))\n .withSelectedTextColor(getResources().getColor(R.color.colorPrimaryDark))\n .withIconColor(getResources().getColor(R.color.defaultText))\n .withSelectedIconColor(getResources().getColor(R.color.colorPrimaryDark));\n SecondaryDrawerItem helItem = new SecondaryDrawerItem().withIdentifier(6)\n .withIcon(GoogleMaterial.Icon.gmd_help_outline).withName(R.string.help)\n .withTextColor(getResources().getColor(R.color.defaultText))\n .withSelectedTextColor(getResources().getColor(R.color.colorPrimaryDark))\n .withIconColor(getResources().getColor(R.color.defaultText))\n .withSelectedIconColor(getResources().getColor(R.color.colorPrimaryDark));\n\n LayoutInflater li = LayoutInflater.from(getApplicationContext());\n View headerImage = li.inflate(R.layout.drawer_header, null);\n\n //create the drawer and remember the `Drawer` object\n mainDrawer = new DrawerBuilder()\n .withActivity(this)\n .withActionBarDrawerToggle(true)\n .withHeader(headerImage)\n .withSliderBackgroundColor(getResources().getColor(R.color.drawer_main))\n .addDrawerItems(\n homItem,\n new DividerDrawerItem(),\n v23Item,\n v24Item,\n tagItem,\n new DividerDrawerItem(),\n helItem\n //setItem\n )\n .withOnDrawerItemClickListener(new Drawer.OnDrawerItemClickListener() {\n @Override\n public boolean onItemClick(View view, int position, IDrawerItem drawerItem) {\n long identifier = drawerItem.getIdentifier();\n\n if (identifier == 1) {\n openHome();\n return true;\n } else if (identifier == 2) {\n openSettings();\n return true;\n } else if (identifier == 3) {\n open23();\n return true;\n } else if (identifier == 4) {\n open24();\n return true;\n } else if (identifier == 5) {\n openTagToFile();\n return true;\n } else {\n return true;\n }\n }\n }).withDrawerWidthDp(240).build();\n\n mainDrawer.setSelection(6);\n\n mainDrawer.openDrawer();\n mainDrawer.closeDrawer();\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 }",
"void openMenuOptions(Gadget gadget, final Element referenceElement);",
"@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 onPrepareOptionsMenu(Menu menu) {\n // mDrawerLayout.isDrawerOpen(mDrawerView);\n return super.onPrepareOptionsMenu(menu);\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n// getActionBar().setTitle(\"Select Destination\");\n }",
"private void showSpecificOptions (Menu mMenu, LinearLayout llCO) {\n \t\t\n \t\tArrayList<Option> _SpecificOptionList = OptionManager.getSpecificOptionList(mMenu.DB_ID);\n \t\t\n for(int i=0; i<_SpecificOptionList.size(); i++) {\n \t\n \tOption _Option = _SpecificOptionList.get(i);\n \n \tLinearLayout llEachLine = new LinearLayout(this);\n llEachLine.setLayoutParams(new LayoutParams(500,LayoutParams.WRAP_CONTENT));\n llEachLine.setPadding(0, 0, 10, 4);\n llEachLine.setOrientation(LinearLayout.HORIZONTAL);\n llEachLine.setGravity(Gravity.LEFT);\n \n int nCountId = IdManager.getSpecificOptionCountId(i);\n int nDownId = nCountId - 1000;\n int nUpId = nCountId + 1000;\n \n // option name\n \n String strTextTitle = TextFormatter.getText(_Option.NAME_ENG, _Option.NAME_OTH,26);\n \n TextView tvOptionName = new TextView(this);\n tvOptionName.setGravity(Gravity.LEFT|Gravity.CENTER);\n tvOptionName.setText(strTextTitle);\n tvOptionName.setTextSize(14);\n tvOptionName.setTextColor(0xff000000);\n tvOptionName.setHeight(50);\n tvOptionName.setWidth(270);\n \n // option count \n \n TextView tvCount = new TextView(this); \n tvCount.setGravity(Gravity.CENTER);\n tvCount.setId(nCountId);\n tvCount.setText(String.valueOf(\"0\"));\n tvCount.setTextColor(0xff000000);\n tvCount.setWidth(50);\n tvCount.setHeight(30);\n \n ResourceManager.put(nCountId, tvCount);\n ResourceManager.put(tvCount, _Option);\n \n _Option.MENU_RESOURCE_ID = mMenu.RESOURCE_ID;\n \t\n // Button Down\n \n ImageButton btDown = new ImageButton(this);\n btDown.setId(nDownId);\n btDown.setBackgroundDrawable(getResources().getDrawable(R.drawable.down));\n btDown.setLayoutParams(new LayoutParams(60,60));\n btDown.setOnClickListener(new OnClickListener() {\n \t public void onClick(View v) {\n \t \t\n \t \tint nDownId = v.getId();\n \t \tint nCountId = nDownId+1000;\n \t \tint nCount = 0;\n \t \t\n \t \tTextView tvCount = (TextView) ResourceManager.get(nCountId);\n \t \tOption _Option = (Option)ResourceManager.get(tvCount);\n \t \t\n \t\tString strCount = (String) tvCount.getText();\n \t\tnCount = Integer.valueOf(strCount);\n \t \t\n \t \tif(nCount>0) {\n \t\t\t\tnCount -= 1;\n \t \t\ttvCount.setText(String.valueOf(nCount));\n \t \t\t_Option.ORDER_COUNT = nCount;\n \t \t\tOrderManager.setOptionCount(_Option.DB_ID, nCount);\n \t \t}\n \t }\n });\n \n // Button Up\n \n ImageButton btUp = new ImageButton(this);\n btUp.setId(nUpId);\n btUp.setBackgroundDrawable(getResources().getDrawable(R.drawable.up));\n btUp.setLayoutParams(new LayoutParams(60,60));\n btUp.setOnClickListener(new OnClickListener() {\n \t public void onClick(View v) {\n \t \t\n \t \tint nUpId = v.getId();\n \t \tint nCountId = nUpId - 1000;\n \t \tint nCount = 0;\n \t \t\n \t \tTextView tvCount = (TextView) ResourceManager.get(nCountId);\n \t \tOption _Option = (Option)ResourceManager.get(tvCount);\n \t \t\t\n \t\t\tString strCount = (String) tvCount.getText();\n \t\tnCount = Integer.valueOf(strCount);\n \t \tnCount += 1;\n \t \t\n \t \ttvCount.setText(String.valueOf(nCount));\n \t\t_Option.ORDER_COUNT = nCount;\n \t\tOrderManager.setOptionCount(_Option.DB_ID, nCount);\n \t }\n });\n \n llEachLine.addView(tvOptionName);\n llEachLine.addView(tvCount);\n llEachLine.addView(btDown);\n llEachLine.addView(btUp);\n \n llCO.addView(llEachLine);\n }\n \t\t\n \t}",
"public void onDrawerClosed(View view) {\n\t\t\t\t\t invalidateOptionsMenu(); \n\t\t\t\t\t }",
"public void onDrawerOpened(View drawerView) {\n if (Build.VERSION.SDK_INT >= 11) {\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n } else {\n //Call it directly on gingerbread.\n onPrepareOptionsMenu(mMenu);\n }\n }",
"private void listIdeas(){\n ListView ideasListView = findViewById(R.id.ideasList);\n\n ArrayList<String> savedBalloons = new ArrayList<String>();\n for(int i = 0; i < popper.savedBalloons.size(); i++) {\n savedBalloons.add(popper.savedBalloons.get(i).getIdea());\n }\n\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_list_item_1, savedBalloons);\n ideasListView.setAdapter(adapter);\n\n\n final ImageView generalDropdown = findViewById(R.id.generalDropdown);\n if(savedBalloons.size() == 0) {\n generalDropdown.getLayoutParams().height = 716;\n final TextView noIdeasMessage = findViewById(R.id.noIdeasMessage);\n noIdeasMessage.setVisibility(View.VISIBLE);\n } else if (savedBalloons.size() == 1) {\n generalDropdown.getLayoutParams().height = 200;\n } else if (savedBalloons.size() == 2) {\n generalDropdown.getLayoutParams().height = 375;\n } else if (savedBalloons.size() == 3) {\n generalDropdown.getLayoutParams().height = 547;\n } else if (savedBalloons.size() == 4) {\n generalDropdown.getLayoutParams().height = 716;\n } else if (savedBalloons.size() == 5) {\n generalDropdown.getLayoutParams().height = 885;\n }\n\n\n }",
"public void showOptions() {\n frame.showOptions();\n }",
"Menu setMenuSectionsFromInfo(RestaurantFullInfo fullInfoOverride);",
"public void printOptions() {\n\t\t\n\t}",
"@Override\n\tpublic void setDisplayOptions(int options) {\n\t\t\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n\n navItems = getResources().getStringArray(R.array.navItems_array);\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n mDrawerList = (ListView) findViewById(R.id.left_drawer);\n // Set the adapter for the list view\n mDrawerList.setAdapter(new ArrayAdapter<String>(this,\n android.R.layout.simple_list_item_1, navItems));\n // Set the list's click listener\n mDrawerList.setOnItemClickListener(new DrawerItemClickListener());\n return true;\n }",
"@Override\n\tpublic String[] getOptions() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"private void setupDrawerContent() {\n previousMenuItem = navigationView.getMenu().findItem(R.id.nav_category);\n previousMenuItem.setChecked(true);\n previousMenuItem.setCheckable(true);\n\n navigationView.setNavigationItemSelectedListener(\n new NavigationView.OnNavigationItemSelectedListener() {\n @Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n\n drawerLayout.closeDrawer(Gravity.LEFT);\n\n if (previousMenuItem.getItemId() == menuItem.getItemId())\n return true;\n\n menuItem.setCheckable(true);\n menuItem.setChecked(true);\n previousMenuItem.setChecked(false);\n previousMenuItem = menuItem;\n\n switch (menuItem.getItemId()) {\n case R.id.nav_category:\n displayView(CATEGORIES_FRAG, null);\n break;\n case R.id.nav_favorites:\n displayView(FAVORITE_FRAG, null);\n break;\n case R.id.nav_reminder:\n displayView(REMINDER_FRAG, null);\n break;\n case R.id.nav_about:\n displayView(ABOUT_FRAG, null);\n break;\n case R.id.nav_feedback:\n IntentHelper.sendEmail(BaseDrawerActivity.this);\n break;\n case R.id.nav_rate_us:\n IntentHelper.voteForAppInBazaar(BaseDrawerActivity.this);\n break;\n case R.id.nav_settings:\n displayView(SETTINGS_FRAG, null);\n break;\n\n }\n\n\n return true;\n }\n }\n\n );\n }",
"Bundle getOpenInOtherWindowActivityOptions();",
"public interface IDialogOptions {\n void setDiceInfoRange(int selections, int diceSides, int diceRange);\n\n void setDiceInfo(int selections, int diceSides);\n\n void setUpSeekBar(int maxSelections);\n\n void onDiceRangeChange(int sides, int range);\n\n void onDiceSidesChange(int sides);\n}",
"public void RefreshOptions() {\n setContentView(mMainView);\n mSolitaireView.RefreshOptions();\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n menu.add(0, MENU_A, 0, \"Info\");\n menu.add(0, MENU_B, 0, \"Legal Notices\");\n menu.add(0, MENU_c, 0, \"Mode\");\n return true;\n }",
"private void showCommonOptions (Menu mMenu, LinearLayout llCO) {\n \t\t\n for(int i=0; i<OptionManager.getCommonOptionSize(); i++) {\n \t\n \tOption _Option = OptionManager.getCommonOption(i);\n \t\n \tLinearLayout llEachLine = new LinearLayout(this);\n\t\t\tllEachLine.setLayoutParams(new LayoutParams(500,LayoutParams.WRAP_CONTENT));\n\t\t\tllEachLine.setPadding(0, 0, 10, 4);\n\t\t\tllEachLine.setOrientation(LinearLayout.HORIZONTAL);\n\t\t\tllEachLine.setGravity(Gravity.LEFT);\n\t\t\t \n\t\t\tint nCountId = IdManager.getCommonOptionCountId(i);\n\t\t\tint nDownId = nCountId - 1000;\n\t\t\tint nUpId = nCountId + 1000;\n\t\t\t \n\t\t\t// option name\n\t\t\t \n\t\t\tString strTextTitle = TextFormatter.getText(_Option.NAME_ENG, _Option.NAME_OTH,26);\n\t\t\t \n\t\t\tTextView tvOptionName = new TextView(this);\n\t\t\ttvOptionName.setGravity(Gravity.LEFT|Gravity.CENTER);\n\t\t\ttvOptionName.setText(strTextTitle);\n\t\t\ttvOptionName.setTextSize(14);\n\t\t\ttvOptionName.setTextColor(0xff000000);\n\t\t\ttvOptionName.setHeight(50);\n\t\t\ttvOptionName.setWidth(270);\n\t\t\t \n\t\t\t// option count \n\t\t\t \n\t\t\tTextView tvCount = new TextView(this); \n\t\t\ttvCount.setGravity(Gravity.CENTER);\n\t\t\ttvCount.setId(nCountId);\n\t\t\ttvCount.setText(String.valueOf(\"0\"));\n\t\t\ttvCount.setTextColor(0xff000000);\n\t\t\ttvCount.setWidth(50);\n\t\t\ttvCount.setHeight(30);\n\t\t\t \n\t\t\t_Option.MENU_RESOURCE_ID = mMenu.RESOURCE_ID;\n\t\t\t \n\t\t\tResourceManager.put(nCountId, tvCount);\n\t\t\tResourceManager.put(tvCount, _Option);\n\t\t\t \n\t\t\t// Button Down\n\t\t\t \n\t\t\tImageButton btDown = new ImageButton(this);\n\t\t\tbtDown.setId(nDownId);\n\t\t\tbtDown.setBackgroundDrawable(getResources().getDrawable(R.drawable.down));\n\t\t\tbtDown.setLayoutParams(new LayoutParams(Property.POPUP_ARROW_IMG_WIDTH,Property.POPUP_ARROW_IMG_HEIGHT));\n\t\t\tbtDown.setOnClickListener(new OnClickListener() {\n\t\t\t\tpublic void onClick(View v) {\n \t \t\n\t\t\t\t\tint nDownId = v.getId();\n \t \tint nCountId = nDownId+1000;\n \t \tint nCount = 0;\n \t \t\n \t \tTextView tvCount = (TextView) ResourceManager.get(nCountId);\n \t \tOption _Option = (Option)ResourceManager.get(tvCount);\n \t \t\n \t\tString strCount = (String) tvCount.getText();\n \t\tnCount = Integer.valueOf(strCount);\n \t \t\n \t \tif(nCount>0) {\n \t\t\t\tnCount -= 1;\n \t \ttvCount.setText(String.valueOf(nCount));\n \t \t_Option.ORDER_COUNT = nCount;\n \t OrderManager.setOptionCount(_Option.DB_ID, nCount);\n \t \t}\n \t }\n });\n \n // Button Up\n \n ImageButton btUp = new ImageButton(this);\n btUp.setId(nUpId);\n btUp.setBackgroundDrawable(getResources().getDrawable(R.drawable.up));\n btUp.setLayoutParams(new LayoutParams(Property.POPUP_ARROW_IMG_WIDTH,Property.POPUP_ARROW_IMG_HEIGHT));\n btUp.setOnClickListener(new OnClickListener() {\n \t public void onClick(View v) {\n \t \t\n \t \tint nUpId = v.getId();\n \t \tint nCountId = nUpId - 1000;\n \t \tint nCount = 0;\n \t \t\n \t \tTextView tvCount = (TextView) ResourceManager.get(nCountId);\n \t \tOption _Option = (Option)ResourceManager.get(tvCount);\t\n \t \t\n \t \tString strCount = (String) tvCount.getText();\n \t\tnCount = Integer.valueOf(strCount);\n \t\t\n \t \tnCount += 1;\n \t \t\n \t \ttvCount.setText(String.valueOf(nCount));\n \t \t_Option.ORDER_COUNT = nCount;\n OrderManager.setOptionCount(_Option.DB_ID, nCount);\n \t }\n });\n \n llEachLine.addView(tvOptionName);\n llEachLine.addView(tvCount);\n llEachLine.addView(btDown);\n llEachLine.addView(btUp);\n \n llCO.addView(llEachLine);\n }\n \t\t\n \t}",
"public void draw(){\n\t\tif(!visible) return;\n\n\t\twinApp.pushStyle();\n\t\twinApp.style(G4P.g4pStyle);\n\t\tPoint pos = new Point(0,0);\n\t\tcalcAbsPosition(pos);\n\n\t\t// Draw selected option area\n\t\tif(border == 0)\n\t\t\twinApp.noStroke();\n\t\telse {\n\t\t\twinApp.strokeWeight(border);\n\t\t\twinApp.stroke(localColor.txfBorder);\n\t\t}\n\t\tif(opaque)\n\t\t\twinApp.fill(localColor.txfBack);\n\t\telse\n\t\t\twinApp.noFill();\n\t\twinApp.rect(pos.x, pos.y, width, height);\n\t\t\n\t\t// Draw selected text\n\t\twinApp.noStroke();\n\t\twinApp.fill(localColor.txfFont);\n\t\twinApp.textFont(localFont, localFont.getSize());\n\t\twinApp.text(text, pos.x + PADH, pos.y -PADV +(height - localFont.getSize())/2, width - 16, height);\n\n\t\t// draw drop down list\n\t\twinApp.fill(winApp.color(255,255));\n\t\tif(imgArrow != null)\n\t\t\twinApp.image(imgArrow, pos.x + width - imgArrow.width - 1, pos.y + (height - imgArrow.height)/2);\n\t\tif(expanded == true){\n\t\t\tGOption opt;\n\t\t\twinApp.noStroke();\n\t\t\twinApp.fill(localColor.txfBack);\n\t\t\twinApp.rect(pos.x,pos.y+height,width,nbrRowsToShow*height);\n\n\t\t\tfor(int i = 0; i < optGroup.size(); i++){\n\t\t\t\topt = optGroup.get(i);\n\t\t\t\tif(i >= startRow && i < startRow + nbrRowsToShow){\n\t\t\t\t\topt.visible = true;\n\t\t\t\t\topt.y = height * (i - startRow + 1);\n\t\t\t\t\topt.draw();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\topt.visible = false;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Draw box round list\n\t\t\tif(border != 0){\n\t\t\t\twinApp.strokeWeight(border);\n\t\t\t\twinApp.stroke(localColor.txfBorder);\n\t\t\t\twinApp.noFill();\n\t\t\t\twinApp.rect(pos.x,pos.y+height,width,nbrRowsToShow*height);\n\t\t\t}\n\t\t\tif(optGroup.size() > maxRows){\n\t\t\t\tslider.setVisible(true);\n\t\t\t\tslider.draw();\n\t\t\t}\n\t\t}\n\t\twinApp.popStyle();\n\t}",
"private void deliverOptions()\n {\n int counter = 0;\n for(Option choice : options){\n counter++;\n System.out.println(\"#\" + counter + \" \" + choice.getText());\n }\n }",
"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}",
"public void onDrawerClosed(View view) {\n invalidateOptionsMenu();\n }",
"private void drawOptions() {\n RadioGroup rgpOptions = (RadioGroup) findViewById(R.id.rgpOptions);\n rgpOptions.removeAllViews();\n int lastId = 0;\n for (int i = 0; i < criteriaList.get(currentCriteria).getOptionList().size(); i++) {\n RadioButton rdbtn = new RadioButton(this);\n lastId = i;\n rdbtn.setId(i);\n rdbtn.setText(criteriaList.get(currentCriteria).getOptionList().get(i).getDescription());\n rdbtn.setAllCaps(true);\n rdbtn.setTextSize(18);\n rgpOptions.addView(rdbtn);\n }\n RadioButton rdbtn = new RadioButton(this);\n rdbtn.setId(lastId + 1);\n rdbtn.setText(\"No lo se\");\n rdbtn.setAllCaps(true);\n rdbtn.setTextSize(18);\n rgpOptions.addView(rdbtn);\n rgpOptions.check(rdbtn.getId());\n }",
"public void loadMarkerOptions();",
"@Override\n public void onOptionsSelect(int options1, int option2, int options3) {\n Toast.makeText(MainActivity.this, \"\" + items.get(options1), Toast.LENGTH_SHORT).show();\n vMasker.setVisibility(View.GONE);\n }",
"@Override\n protected void options()\n {\n super.options();\n addOption(Opt.APPLICATION_ID);\n addOption(Opt.SERVER_ID);\n addOption(Opt.CATEGORY);\n addOption(Opt.NAME, \"The name of the label\");\n }",
"@NonNull\n\t\tMap<String, String> getOptions();",
"public static void showOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- The participants' directory.\")\n .add(\"2- The RDVs' agenda.\")\n .add(\"3- Quit the app.\")\n .add(\"*************************\")\n );\n }",
"@Override\n\tpublic boolean onPrepareOptionsMenu(Menu menu) {\n\t\tboolean drawerOpen = drawerLayout.isDrawerOpen(drawerList);\n\t\t// if (getSupportFragmentManager().findFragmentByTag(\"TaskList\") !=\n\t\t// null) {\n\t\tif (getSupportFragmentManager().getBackStackEntryCount() > 0) {\n\t\t\tif (getSupportFragmentManager().getBackStackEntryAt(\n\t\t\t\t\tgetSupportFragmentManager().getBackStackEntryCount() - 1)\n\t\t\t\t\t.getName() == \"TaskList\") {\n\t\t\t\tLog.d(TAG, \"made it in here!\");\n\t\t\t\tmenu.findItem(R.id.add).setVisible(!drawerOpen);\n\t\t\t} else if (getSupportFragmentManager().getBackStackEntryAt(\n\t\t\t\t\tgetSupportFragmentManager().getBackStackEntryCount() - 1)\n\t\t\t\t\t.getName() == \"DETAILTASK\") {\n\t\t\t\tmenu.findItem(R.id.deletedetailedtask).setVisible(!drawerOpen);\n\t\t\t}\n\t\t}\n\t\tmenu.findItem(R.id.settings).setVisible(!drawerOpen);\n\t\tmenu.findItem(R.id.about).setVisible(!drawerOpen);\n\t\treturn super.onPrepareOptionsMenu(menu);\n\t}",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n //getActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n //getActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }",
"private void setUpDrawerList() {\n itemList = new ArrayList<>();\n\n itemList.add(new ItemSlideMenu(\"Roll\"));\n itemList.add(new ItemSlideMenu(\"About\"));\n itemList.add(new ItemSlideMenu(\"Log In\"));\n\n\n adapter = new SlidingMenuAdapter(this, itemList);\n listView.setAdapter(adapter);\n }",
"private static void viewOptions() {\n\t\tlog.info(\"Enter 0 to Exit.\");\n\t\tlog.info(\"Enter 1 to Login.\");\n\t}",
"private List<DrawerItem> getDrawerMenuItems() {\n List<DrawerItem> items = new ArrayList<DrawerItem>();\n items.add(new DrawerItem().setTitle(\"all\").setFeedStrategy(_personalKeyStrategyProvider.create()));\n items.add(new DrawerItem().setTitle(\"shared\").setFeedStrategy(_sharedFeedStrategyProvider.create(0)));\n items.add(new DrawerItem().setTitle(\"recommended\").setFeedStrategy(_recommendedFeedStrategyProvider.create(0)));\n items.add(new DrawerItem().setTitle(\"saved\").setFeedStrategy(_savedFeedStrategyProvider.create(0)));\n items.add(new DrawerItem().setTitle(\"read\").setFeedStrategy(_readFeedStrategyProvider.create(0)));\n return items;\n }",
"public InfoOptions() {\n\t\tHelpOpt = new ArrayList<String>();\n\t\tDisplayOpt = new ArrayList<String>();\n\t\tNoteOpt = new ArrayList<String>();\n\t\tDelOpt = new ArrayList<String>();\n\t\tChangeNameOpt = new ArrayList<String>();\n\t\tsetDisplay();\n\t\tsetHelp();\n\t\tsetNote();\n\t\tsetDel();\n\t\tsetChangeName();\n\t}",
"@Override\n public void onDrawerOpened(View drawerView) {\n }",
"public void configureData(){\n listExpandable = (ExpandableListView) findViewById(R.id.expandableList);\n mlaListData = new MLAListData(user.userType);\n listHashMap = mlaListData.getlist();\n listPrimary = new ArrayList<>(listHashMap.keySet());\n\n // Configure the data in Adapter.\n adapter = new MLAMenuAdapter(this, listHashMap, listPrimary);\n listExpandable.setAdapter(adapter);\n\n drawerLayout = (DrawerLayout) findViewById(R.id.dawerLayout);\n actionBarDrawerToggle = new ActionBarDrawerToggle(this, drawerLayout, R.string.mla_drawer_open, R.string.mla_drawer_close);\n drawerLayout.setDrawerListener(actionBarDrawerToggle);\n\n navDrawerList = (LinearLayout) findViewById(R.id.drawer1);\n actionBar = getSupportActionBar();\n actionBar.setDisplayShowHomeEnabled(true);\n actionBar.setDisplayHomeAsUpEnabled(true);\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n try {\n getSupportActionBar().setTitle(\"Settings\");\n }catch(NullPointerException e){\n Toast.makeText(NavigationDrawerActivity.this, \"ActionBar \"+ e, Toast.LENGTH_SHORT).show();\n }\n //invalidateOptionsMenu();\n }",
"@Override\n public void onDrawerClosed(View drawerView) {\n invalidateOptionsMenu();\n Log.d(\"Apps Main\", \"Close drawer \");\n }",
"private void initializeNavDrawer() {\n // Obtain handles to drawer UI objects\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n mDrawerList = (ListView) findViewById(R.id.left_drawer);\n\n // Get choices\n mDrawerChoices = getDrawerChoices();\n\n // Sets drawer list dividers\n int[] colors = {0, drawer_divider_color, 0}; // red for the example\n mDrawerList.setDivider(new GradientDrawable(GradientDrawable.Orientation.RIGHT_LEFT, colors));\n mDrawerList.setDividerHeight(1);\n\n // Sets shadowing on drawer\n mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START);\n\n // Sets drawer adapter\n mDrawerList.setAdapter(new ArrayAdapter<String>(this, R.layout.drawer_list_item, mDrawerChoices));\n\n // Sets drawer click listener\n mDrawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n selectNavDrawerItem(position);\n }\n });\n\n // Sets action of drawer when clicked\n mTitle = mDrawerTitle = getTitle();\n mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, R.drawable.ic_drawer,\n R.string.drawer_open, R.string.drawer_close) {\n @Override\n public void onDrawerOpened(View drawerView) {\n // Set title to app title and invalidate\n getSupportActionBar().setTitle(mDrawerTitle);\n ActivityCompat.invalidateOptionsMenu(NavDrawerFragmentActivity.this);\n }\n\n @Override\n public void onDrawerClosed(View drawerView) {\n // Set title to fragment title and invalidate\n getSupportActionBar().setTitle(mTitle);\n ActivityCompat.invalidateOptionsMenu(NavDrawerFragmentActivity.this);\n }\n };\n\n // Sets listener\n mDrawerLayout.setDrawerListener(mDrawerToggle);\n\n // Sets up action bar to support nav drawer\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setHomeButtonEnabled(true);\n }\n }",
"public static void listMenuOptions(){\n\n System.out.println(\"Please choose an option:\");\n System.out.println(\"(1) Add a task.\");\n System.out.println(\"(2) Remove a task.\");\n System.out.println(\"(3) Update a task.\");\n System.out.println(\"(4) List all tasks.\");\n System.out.println(\"(0) Exit\");\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.editor_options_menu, menu);\n\n\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n setHasOptionsMenu(true);\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n\n int currentLearned = AppUtils.getIntegerPreference(getApplication(), Constant.COUNT_DONE, 0);\n int currentDifficult = AppUtils.getIntegerPreference(getApplication(), Constant.COUNT_DIFFICULT, 0);\n\n Log.d(\"debug\", \"---current learned = \" + currentLearned);\n Log.d(\"debug\", \"---current difficult = \" + currentDifficult);\n\n Menu menu = navigationView.getMenu();\n MenuItem menuItemLearned = menu.getItem(1);\n MenuItem menuItemDifficult = menu.getItem(2);\n\n Log.d(\"debug\", \"---menu = \" + menu);\n Log.d(\"debug\", \"---menu 1 = \" + menuItemLearned);\n Log.d(\"debug\", \"---menu 2 = \" + menuItemDifficult);\n\n\n menuItemLearned.setTitle(getResources().getString(R.string.menu_navigation_learned)\n + \" (\" + currentLearned + \")\");\n menuItemDifficult.setTitle(getResources().getString(R.string.menu_navigation_hard)\n + \" (\" + currentDifficult + \")\");\n\n menuItemLearned.setEnabled(currentLearned != 0);\n menuItemDifficult.setEnabled(currentDifficult != 0);\n\n super.onDrawerOpened(drawerView);\n }",
"private void setNavigationDrawer(ArrayList<Boolean> isCheckedArray) {\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_main);\n setSupportActionBar(toolbar);\n if (getSupportActionBar()!= null) {\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n } else {\n Log.d(TAG_MAIN, \"SUPPORT ACTION BAR IS NULL\");\n }\n String[] navResourceArray = getResources().getStringArray(R.array.genre);\n List<NaviagtionEntry> drawerEntries = new ArrayList<>();\n\n drawerEntries.add(new NavigationDivider());\n\n for (int i =1; i < navResourceArray.length; i++) {\n drawerEntries.add(new NavigationToggle(navResourceArray[i]));\n }\n\n NavigationFragment drawerFragment = (NavigationFragment) getSupportFragmentManager()\n .findFragmentById(R.id.fragment_navigation_drawer);\n\n drawerFragment.initDrawer((android.support.v4.widget.DrawerLayout) findViewById(R.id.drawer_layout_main),\n toolbar, drawerEntries,isCheckedArray);\n Log.d(TAG_MAIN, \"THE initDrawer HAS BEEN CALLED ON MAIN\");\n }",
"public void showOptions()\n {\n //make the options window visible\n optionsScreen.setVisible(true);\n }",
"public interface DrawerClickListener\n{\n public void drawerListClick(int position);\n}",
"@Override\n public void onCreateContextMenu(ContextMenu menu, View v,\n ContextMenu.ContextMenuInfo menuInfo) {\n if (v.getId() == R.id.subRedditList) {\n AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo;\n menu.setHeaderTitle(subReddits.get(info.position));\n String[] menuItems = getResources().getStringArray(R.array.extraOptions);\n for (int i = 0; i < menuItems.length; i++) {\n menu.add(Menu.NONE, i, i, menuItems[i]);\n }\n }\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n //boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n //menu.findItem(<MENU_ITEMS>).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onPrepareOptionsMenu(Menu menu) {\n\t\tboolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n\t\treturn super.onPrepareOptionsMenu(menu);\n\t}",
"public static void listMainMenuOptions(){\n\t\tSystem.out.println(\"\\nWelcome to Vet Clinic Program. Please choose an option from the list below.\\n\");\n\t\tSystem.out.println(\"1: List all staff.\");\n\t\tSystem.out.println(\"2: List staff by category.\");\n\t\tSystem.out.println(\"3: List admin Staff performing a task.\");\n\t\tSystem.out.println(\"4: Search for a specific member of staff by name.\");\n\t\tSystem.out.println(\"5: List all animals.\");\n\t\tSystem.out.println(\"6: List animals by type.\");\n\t\tSystem.out.println(\"7: Search for a specific animal by name.\");\n\t\tSystem.out.println(\"8: See the Queue to the Veterinary\");\n\t\tSystem.out.println(\"9: Exit\");\n\t}",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.optionsbar, menu);\n \treturn super.onPrepareOptionsMenu(menu);\n }",
"public void setOptions(Map options) {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickOption();\n\t\t\t\t\n\t\t\t}",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n //getSupportActionBar().setTitle(\"Navigation Drawer\");\n invalidateOptionsMenu();\n }",
"private void printOptionsMessage() {\n System.out.println(\"\\n\");\n System.out.print(\"Visible arrays: \");\n if (showArray == true) {\n System.out.println(\"On\");\n } else {\n System.out.println(\"Off\");\n }\n\n System.out.println(\"Selected Algorithms: \");\n if (selected[0] == true) {\n System.out.print(\" MergeSort\");\n }\n if (selected[1] == true) {\n System.out.print(\" QuickSort\");\n }\n if (selected[2] == true) {\n System.out.print(\" HeapSort\");\n }\n\n System.out.println();\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n\r\n return true;\r\n }",
"@Override\n public void onOptionsSelect(int options1, int option2, int options3) {\n vMasker.setVisibility(View.GONE);\n Toast.makeText(MainActivity.this, \"\" + twoItemsOptions1.get(options1) + \" \" + twoItemsOptions2.get(option2), Toast.LENGTH_SHORT).show();\n }",
"@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 onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_swipe_plot, menu);\n menuItem1 = menu.findItem(R.id.action_settings);\n menuItem2 = menu.findItem(R.id.action_myinfo);\n menuItem3 = menu.findItem(R.id.action_myschedule);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public ListOptions getOptions() {\n return new ListOptions();\n }",
"public void onDrawerOpened(View drawerView) {\r\n super.onDrawerOpened(drawerView);\r\n if(!mUserLearnedDrawer){\r\n\r\n mUserLearnedDrawer=true;\r\n Utility utility=new Utility();\r\n utility.writeToSharedPref(getApplicationContext(),KEY_USER_LEARNED_DRAWER,mUserLearnedDrawer+\"\");\r\n }\r\n invalidateOptionsMenu();\r\n }",
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Navigation!\");\n //invalidateOptionsMenu();\n //creates call to onPrepareOptionsMenu()\n }"
]
| [
"0.6553625",
"0.6341728",
"0.627032",
"0.61646247",
"0.61523485",
"0.6090882",
"0.6074188",
"0.60707426",
"0.606392",
"0.60273033",
"0.60150194",
"0.59361863",
"0.5920015",
"0.59158903",
"0.58985394",
"0.58931816",
"0.5890995",
"0.5857488",
"0.58573955",
"0.58305687",
"0.5813026",
"0.5807749",
"0.5771213",
"0.57706183",
"0.57706183",
"0.57706183",
"0.57706183",
"0.57621634",
"0.57540315",
"0.5722705",
"0.57197106",
"0.5703858",
"0.5681459",
"0.56793416",
"0.5676411",
"0.5673987",
"0.5661113",
"0.56355935",
"0.562342",
"0.5606263",
"0.560053",
"0.55983144",
"0.55954134",
"0.55932665",
"0.5588368",
"0.55694914",
"0.55676264",
"0.5563343",
"0.5545432",
"0.55411744",
"0.5540807",
"0.55207014",
"0.55035424",
"0.5500311",
"0.5498669",
"0.5482606",
"0.5477197",
"0.5476824",
"0.54757136",
"0.5469925",
"0.54685694",
"0.54672015",
"0.5466008",
"0.5459584",
"0.54566425",
"0.5450612",
"0.5449806",
"0.54400784",
"0.54400784",
"0.54351074",
"0.54202515",
"0.541934",
"0.5416472",
"0.54130834",
"0.5405985",
"0.54016036",
"0.5400836",
"0.53984594",
"0.53862417",
"0.5378618",
"0.5377809",
"0.537769",
"0.53727186",
"0.5371843",
"0.53675157",
"0.53664434",
"0.53605294",
"0.53594625",
"0.53552824",
"0.5351245",
"0.53389966",
"0.5331994",
"0.5325678",
"0.532464",
"0.5323519",
"0.532097",
"0.5319101",
"0.5313617",
"0.53080904",
"0.5306508",
"0.53060627"
]
| 0.0 | -1 |
Creates new form NewJFrame | public NewJFrame() {
this.setIconImage(img.getImage());
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NewJFrame() {\n Connect();\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n \n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\r\n initComponents();\r\n }",
"public NewJFrame()\r\n {\r\n initComponents();\r\n }",
"public NewJFrame() {\n initComponents();\n\n }",
"public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }",
"public NewJFrame1() {\n initComponents();\n }",
"public NewJFrame1(NewJFrame n) {\n main = n;\n initComponents();\n winOpen();\n setLocationFrame();\n this.setVisible(true);\n }",
"public NewJFrame() {\n initComponents();\n // HidenLable.setVisible(false);\n }",
"public void newWindow() {\n\t\tJMenuTest frame1 = new JMenuTest();\n\t\tframe1.setBounds(100, 100, 400, 400);\n\t\tframe1.setVisible(true);\n\t}",
"public NewFrame() {\n initComponents();\n }",
"public xinxiNewJFrame() {\n initComponents();\n }",
"public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\n }",
"public NewJFrame17() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }",
"public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"private JFrame showNewFrame(String title) {\n\t\tJFrame f = new JFrame();\n\t\tf.setTitle(title);\n\t\tf.setSize(400, 500);\n\t\tf.setLocationRelativeTo(null);\n\t\tf.setVisible(true);\n\t\treturn f;\n\t}",
"public NewJFrame() {\n initComponents();\n mcam.setLineWrap(true);\n\n }",
"public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }",
"public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n \n\n}\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new NewJFrame1().setVisible(true);\n }\n });\n }",
"private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }",
"private JFrame getJFrame() {\n\t\tif (jFrame == null) {\n\t\t\tjFrame = new JFrame();\n\t\t\tjFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tjFrame.setJMenuBar(getJJMenuBar());\n\t\t\tjFrame.setSize(400, 200);\n\t\t\tjFrame.setContentPane(getJContentPane());\n\t\t\tjFrame.setTitle(\"Mancala\");\n\t\t}\n\t\treturn jFrame;\n\t}",
"private static void createGUI(){\r\n\t\tframe = new JFrame(\"Untitled\");\r\n\r\n\t\tBibtexImport bib = new BibtexImport();\r\n\t\tbib.setOpaque(true);\r\n\r\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tframe.setContentPane(bib);\r\n\t\tframe.setJMenuBar(bib.menu);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}",
"private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }",
"public abstract void newWindow(ReFrame newFrame);",
"void doNew() {\r\n\t\t\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, true);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\tsetTitle(TITLE);\r\n\t\t\tcreatePlanetSurface(dlg.width, dlg.height);\r\n\t\t\trenderer.repaint();\r\n\t\t\tsaveSettings = null;\r\n\t\t\tundoManager.discardAllEdits();\r\n\t\t\tsetUndoRedoMenu();\r\n\t\t}\r\n\t}",
"private static void createAndShowGUI() {\n\t\t/*\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorldSwing\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the ubiquitous \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World\");\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n */\n\t\tfinal AC_GUI currentGUI = new AC_GUI();\n\t\t//currentGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcurrentGUI.setSize(900, 800);\n\t\t// make the frame full screen\n\t\t// currentGUI.setExtendedState(JFrame.MAXIMIZED_BOTH);\n }",
"private static void createAndShowGUI()\r\n {\r\n JFrame frame = new JFrame(\"ChangingTitleFrame Application\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(new FramePanel(frame).getPanel());\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }",
"private JFrame createFrame() {\n\t\tJFrame frmProfessorgui = new JFrame();\n\t\tfrmProfessorgui.getContentPane().setBackground(new Color(153, 204, 204));\n\t\tfrmProfessorgui.getContentPane().setForeground(SystemColor.desktop);\n\t\tfrmProfessorgui.setTitle(\"ProfessorGUI\");\n\t\tfrmProfessorgui.setBounds(100, 100, 600, 475);\n\t\tfrmProfessorgui.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmProfessorgui.getContentPane().setLayout(null);\n\n\n\t\t//List, ScrollPane and Button Components\n\t\tmodel = new DefaultListModel();\n\t\tsetList();\n\t\tlist = new JList(model);\n\t\tlist.setBackground(new Color(255, 245, 238));\n\t\tJScrollPane scrollPane = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPane.setBounds(10, 46, 293, 365);\n\t\tfrmProfessorgui.getContentPane().add(scrollPane);\n\n\t\tlist.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tlist.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\n\t\tcourse = new JButton(\"View Course\");\n\t\tcourse.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcourse.addActionListener(new profMainListener());\n\n\t\tcourse.setBounds(390, 207, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(course);\n\n\t\tcreate = new JButton(\"Create Course\");\n\t\tcreate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcreate.setBounds(390, 250, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(create);\n\t\tcreate.addActionListener(new profMainListener());\n\n\t\tactivate = new JButton(\"Activate\");\n\t\tactivate.addActionListener(new profMainListener()); \n\t\tactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tactivate.setBounds(390, 296, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(activate);\n\n\t\tdeactivate = new JButton(\"Deactivate\");\n\t\tdeactivate.addActionListener(new profMainListener());\n\n\t\tdeactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tdeactivate.setBounds(390, 340, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(deactivate);\n\n\n\t\t//Aesthetic Pieces\n\t\tJLabel lblCourseList = new JLabel(\"Course List\");\n\t\tlblCourseList.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCourseList.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblCourseList.setBounds(21, 11, 261, 24);\n\t\tfrmProfessorgui.getContentPane().add(lblCourseList);\n\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcome.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblWelcome.setBounds(357, 49, 191, 46);\n\t\tfrmProfessorgui.getContentPane().add(lblWelcome);\n\n\t\tJLabel lblNewLabel = new JLabel(prof.getFirstName() + \" \" + prof.getLastName());\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.ITALIC, 16));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(335, 82, 239, 40);\n\t\tfrmProfessorgui.getContentPane().add(lblNewLabel);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\t\tpanel.setBackground(new Color(204, 255, 255));\n\t\tpanel.setBounds(367, 178, 174, 213);\n\t\tfrmProfessorgui.getContentPane().add(panel);\n\n\t\treturn frmProfessorgui;\n\t}",
"public static void showNew() {\n\t\tif (DIALOG == null) {\n\t\t\tDIALOG = new NewDialog();\n\t\t}\n\t\tDIALOG.setVisible(true);\n\t\tDIALOG.toFront();\n\t}",
"private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }",
"private void makeGUI()\n {\n mainFrame = new JFrame();\n mainFrame.setPreferredSize(new Dimension(750,400));\n aw = new AccountWindow();\n mainFrame.add(aw);\n mainFrame.setVisible(true);\n mainFrame.pack();\n }",
"private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"WAR OF MINE\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new Gameframe();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.setSize(800,1000);\n frame.setVisible(true);\n }",
"public NewJFrame() {\n initComponents();\n audioObject = new PlayAudio();\n setExtendedState(MAXIMIZED_BOTH);\n initTracks(); \n this.setVisible(true);\n jDialog1.setVisible(true);\n }",
"private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(500, 500);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tResultLeftView view = new ResultLeftView();\n\t\tframe.setContentPane(view);\n\t\t//Display the window.\n\t\tframe.setVisible(true);\n\t}",
"Frame createFrame();",
"static public void make() {\n\t\tif (window != null)\n\t\t\treturn;\n\n\t\twindow = new JFrame();\n\t\twindow.setTitle(\"Finecraft\");\n\t\twindow.setMinimumSize(new Dimension(500, 300));\n\t\twindow.setSize(asInteger(WINDOW_WIDTH), asInteger(WINDOW_HEIGHT));\n\t\twindow.setResizable(asBoolean(WINDOW_RESIZE));\n\t\twindow.setLocationRelativeTo(null);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Gomaku - 5 In A Row\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(600, 600);\n\n //Add the ubiquitous \"Hello World\" label.\n JPanel board = new JPanel();\n board.setSize(400, 400);\n board.set\n frame.getContentPane().add(board);\n\n //Display the window.\n frame.setVisible(true);\n }",
"protected void do_mntmStartNewForm_actionPerformed(ActionEvent arg0) {\n\t\tthis.dispose();\n\t\tmain(null);\n\t}",
"static void abrir() {\n frame = new ModificarPesos();\n //Create and set up the window.\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n //Set up the content pane.\n frame.addComponentsToPane(frame.getContentPane());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}",
"public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}",
"private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new SplitPaneDemo2();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"public static JFrame makeFrame (String title)\n {\n\t// make the frame and put a new TextOutputPanel in it\n\tJFrame frame = new JFrame (title);\n\tfinal TextOutputPanel panel = new TextOutputPanel (frame);\n\tframe.setContentPane (panel);\n\tframe.setDefaultCloseOperation (frame.HIDE_ON_CLOSE);\n\n\t// make the menubar for the frame\n\tJMenuBar menuBar = new JMenuBar ();\n\tframe.setJMenuBar (menuBar);\n\n\tJMenu fileMenu = new JMenu (\"File\");\n\tmenuBar.add (fileMenu);\n\tfileMenu.add (new AbstractAction (\"Save As...\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.saveAs ();\n\t }\n\t});\n\n\tJMenu editMenu = new JMenu (\"Edit\");\n\tmenuBar.add (editMenu);\n\teditMenu.add (new AbstractAction (\"Copy\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.myDocumentPane.copy ();\n\t }\n\t});\n\teditMenu.add (new AbstractAction (\"Select All\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.myDocumentPane.selectAll ();\n\t }\n\t});\n\teditMenu.add (new AbstractAction (\"Clear\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.clear ();\n\t }\n\t});\n\n\tframe.pack ();\n\treturn frame;\n }",
"public NewRoomFrame() {\n initComponents();\n }",
"public JFrameConcatenar()\n {\n initComponents();\n }",
"private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"private JFrame makeFrame(String title, int width, int height, int close) {\r\n JFrame frame = new JFrame();\r\n frame.setTitle(title);\r\n frame.setLocation(700, 150);\r\n frame.setMinimumSize(new Dimension(width, height));\r\n frame.setResizable(false);\r\n frame.setDefaultCloseOperation(close);\r\n frame.setLayout(new BorderLayout());\r\n return frame;\r\n }",
"private void todoChooserGui() {\r\n jframe = makeFrame(\"My Todo List\", 500, 800, JFrame.EXIT_ON_CLOSE);\r\n panelSelectFile = makePanel(jframe, BorderLayout.CENTER,\r\n \"Choose a Todo\", 150, 50, 200, 25);\r\n JButton clickRetrieve = makeButton(\"retrieveTodo\", \"Retrieve A TodoList\",\r\n 175, 100, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickRetrieve);\r\n JTextField textFieldName = makeJTextField(1, 100, 150, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n panelSelectFile.add(textFieldName);\r\n JButton clickNew = makeButton(\"newTodo\", \"Make New TodoList\",\r\n 250, 150, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickNew);\r\n panelSelectFile.setBackground(Color.WHITE);\r\n jframe.setBackground(Color.PINK);\r\n jframe.setVisible(true);\r\n }",
"public void makeNew() {\n\t\towner.switchMode(WindowMode.ITEMCREATE);\n\t}",
"private static void createAndShowGUI() {\n frame = new JFrame(\"Shopping Cart\");\n frame.setLocation(600,300);\n frame.setPreferredSize(new Dimension(800,700));\n frame.setResizable(false);\n //frame.setLayout(new GridLayout(2,2,5,5));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new shoppingCartTableGui();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n //Display the window.\n frame.pack();\n \n // inserting the login dialogPane here\n loginPane newLoginPane = new loginPane(frame);\n clientID = newLoginPane.getClientID();\n }",
"private void initialize() {\n\t\tfrmAddForm = new JFrame();\n\t\tfrmAddForm.setTitle(\"Add Form\");\n\t\tfrmAddForm.setBounds(100, 100, 450, 300);\n\t\tfrmAddForm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmAddForm.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel addFormTitle = new JLabel(\"Add Form\");\n\t\taddFormTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 19));\n\t\taddFormTitle.setBounds(174, 10, 108, 23);\n\t\tfrmAddForm.getContentPane().add(addFormTitle);\n\t\t\n\t\tJLabel firstNameLabel = new JLabel(\"First Name:\");\n\t\tfirstNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tfirstNameLabel.setBounds(10, 72, 76, 13);\n\t\tfrmAddForm.getContentPane().add(firstNameLabel);\n\t\t\n\t\tJLabel lastNameLabel = new JLabel(\"Last Name:\");\n\t\tlastNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlastNameLabel.setBounds(10, 120, 76, 13);\n\t\tfrmAddForm.getContentPane().add(lastNameLabel);\n\t\t\n\t\tJLabel ageLabel = new JLabel(\"Age:\");\n\t\tageLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tageLabel.setBounds(10, 165, 76, 13);\n\t\tfrmAddForm.getContentPane().add(ageLabel);\n\t\t\n\t\tfirstNameText = new JTextField();\n\t\tfirstNameText.setToolTipText(\"Enter first name.\");\n\t\tfirstNameText.setBounds(146, 70, 96, 19);\n\t\tfrmAddForm.getContentPane().add(firstNameText);\n\t\tfirstNameText.setColumns(10);\n\t\t\n\t\tlastNameText = new JTextField();\n\t\tlastNameText.setToolTipText(\"Enter last name.\");\n\t\tlastNameText.setColumns(10);\n\t\tlastNameText.setBounds(146, 118, 96, 19);\n\t\tfrmAddForm.getContentPane().add(lastNameText);\n\t\t\n\t\tageText = new JTextField();\n\t\tageText.setToolTipText(\"Enter age.\");\n\t\tageText.setColumns(10);\n\t\tageText.setBounds(146, 163, 96, 19);\n\t\tfrmAddForm.getContentPane().add(ageText);\n\t\t\n\t\tJLabel statusLabel = new JLabel(\"\");\n\t\tstatusLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tstatusLabel.setBounds(294, 121, 122, 23);\n\t\tfrmAddForm.getContentPane().add(statusLabel);\n\t\t\n\t\tJButton addButton = new JButton(\"Add\");\n\t\taddButton.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\taddButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t// holds the values from text fields later\n\t\t\t\t\tString firstName = \"\";\n\t\t\t\t\tString lastName = \"\";\n\t\t\t\t\tint age = 0;\n\t\t\t\t\t\n\t\t\t\t\tString user = \"root\";\n\t\t\t\t\tString password = \"\";\n\t\t\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/test\", user, password);\n\t\t\t\t\tStatement stmnt = con.createStatement();\n\t\t\t\t\t\n\t\t\t\t\t// get the values from text field\n\t\t\t\t\tfirstName = firstNameText.getText();\n\t\t\t\t\tlastName = lastNameText.getText();\n\t\t\t\t\tage = Integer.parseInt(ageText.getText());\n\t\t\t\t\t\n\t\t\t\t\tString sql = \"insert into test (firstName, lastName, age)\" + \n\t\t\t\t\t\"values (\" + \"'\" + firstName + \"',\" + \"'\" + lastName + \"',\" + \"'\" + age + \"')\"; \n\t\t\t\t\t\n\t\t\t\t\tif (stmnt.execute(sql) == false) {\n\t\t\t\t\t\t//System.out.println(\"Record added.\");\n\t\t\t\t\t\tString message = \"Record added.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t\tfirstNameText.setText(null);\n\t\t\t\t\t\tlastNameText.setText(null);\n\t\t\t\t\t\tageText.setText(null);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//System.out.println(\"Recorded failed to add.\");\n\t\t\t\t\t\tString message = \"Failed to add record.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception a) {\n\t\t\t\t\ta.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\taddButton.setToolTipText(\"Add record to database.\");\n\t\taddButton.setBounds(157, 211, 85, 42);\n\t\tfrmAddForm.getContentPane().add(addButton);\n\t\t\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmAddForm.setVisible(false);\n\t\t\t\tMenu menu = new Menu();\n\t\t\t\tmenu.run();\n\t\t\t}\n\t\t});\n\t\tbackButton.setBounds(0, 0, 85, 21);\n\t\tfrmAddForm.getContentPane().add(backButton);\n\t}",
"public static void buildFrame() {\r\n\t\t// Make sure we have nice window decorations\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\t//ParentFrame frame = new ParentFrame();\r\n\t\tMediator frame = new Mediator();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t// Display the window\r\n\t\tframe.setVisible(true);\r\n\t}",
"public static void createAndShowMatrix() {\n JFrame frame = new JFrame(\"Results Matrix\");\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n frame.getContentPane().add(new ResultsMatrix().getRootPanel());\n frame.pack();\n frame.setVisible(true);\n }",
"private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tframe = new JFrame(\"Captura 977R\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Set up the content pane.\r\n\t\taddComponentsToPane(frame.getContentPane());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tDimension windowSize = frame.getSize();\r\n\r\n\t\tint windowX = Math.max(0, (screenSize.width - windowSize.width) / 2);\r\n\t\tint windowY = Math.max(0, (screenSize.height - windowSize.height) / 2);\r\n\r\n\t\tframe.setLocation(windowX, windowY); // Don't use \"f.\" inside\r\n\t\t// constructor.\r\n\t\tframe.setVisible(true);\r\n\t}",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }",
"protected void createInternalFrame() {\n\t\tJInternalFrame frame = new JInternalFrame();\n\t\tframe.setVisible(true);\n\t\tframe.setClosable(true);\n\t\tframe.setResizable(true);\n\t\tframe.setFocusable(true);\n\t\tframe.setSize(new Dimension(300, 200));\n\t\tframe.setLocation(100, 100);\n\t\tdesktop.add(frame);\n\t\ttry {\n\t\t\tframe.setSelected(true);\n\t\t} catch (java.beans.PropertyVetoException e) {\n\t\t}\n\t}",
"public void createframe(String cid) {\n\t\tviewframe = new JFrame();\n\t\tviewconsumer(cid);\n\t\tviewframe.setTitle(\"Search result\");\n\t\tviewframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tviewframe.setLayout(new BorderLayout()); \n\t\tviewframe.add(viewpage);\n\t\tviewframe.setVisible(true); \n\t\tviewframe.setSize(500, 400);\n\t\tviewframe.setResizable(true);\n\t}",
"public static void main(String args[]) throws IOException {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n /* Create and display the form */\n\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n /*NewJFrame*/ clientFrame = new NewJFrame();\n clientFrame.setLocationRelativeTo(null);\n clientFrame.setVisible(true);\n clientFrame.OutputLogArea.setText(\"Welcome to DDND!\\nPlease enter your username in the log area followed by a class:\\n- cleric\\n- barbarian\\n- mage\\n- rogue\");\n //try to login to server\n\n //socket.leaveGroup(address);\n //socket.close(); \n }\n });\n }",
"private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"SplitPaneDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n SplitPaneDemo splitPaneDemo = new SplitPaneDemo();\r\n frame.getContentPane().add(splitPaneDemo.getSplitPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"public QLHocSinhJFrame() {\n initComponents();\n }",
"public Hwk2JFrame() {\n initComponents();\n }",
"public void createAndShowGUI() {\n JFrame frame = new JFrame();\n frame.setSize(500, 500);\n frame.setTitle(\"Face Viewer\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); \n FaceComponent component = new FaceComponent();\n frame.add(component);\n frame.setVisible(true);\n }",
"private void createAndShowGUI()\r\n {\r\n //Create and set up the window.\r\n frame = new JFrame();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(this);\r\n frame.addKeyListener(this);\r\n\r\n //Display the window.\r\n this.setPreferredSize(new Dimension(\r\n BLOCKSIZE * ( board.getNumCols() + 3 + nextUp.getNumCols() ),\r\n BLOCKSIZE * ( board.getNumRows() + 2 )\r\n ));\r\n\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }",
"private void initialize() {\r\n\r\n\t\tfrmHistoriasDeZagas = new JFrame();\r\n\t\tfrmHistoriasDeZagas.getContentPane().setBackground(Color.BLACK);\r\n\t\tfrmHistoriasDeZagas.setTitle(\"Historias de Zagas\");\r\n\t\tfrmHistoriasDeZagas.setBackground(Color.WHITE);\r\n\t\tfrmHistoriasDeZagas\r\n\t\t\t\t.setIconImage(Toolkit\r\n\t\t\t\t\t\t.getDefaultToolkit()\r\n\t\t\t\t\t\t.getImage(\r\n\t\t\t\t\t\t\t\tArmas.class\r\n\t\t\t\t\t\t\t\t\t\t.getResource(\"/images/Historias de Zagas, logo.png\")));\r\n\t\tfrmHistoriasDeZagas.setBounds(100, 100, 439, 462);\r\n\t\tfrmHistoriasDeZagas.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n\t\tfrmHistoriasDeZagas.getContentPane().setLayout(null);\r\n\t\tfrmHistoriasDeZagas.setLocationRelativeTo(null);\r\n\t\tfrmHistoriasDeZagas.setResizable(false);\r\n\r\n\t\tfinal JButton btnNewButton = new JButton(\"JUGAR\");\r\n\t\tif (Loader.usuario.equals(\"\")) {\r\n\t\t\tbtnNewButton.setEnabled(false);\r\n\r\n\t\t}\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tJugar window = new Jugar();\r\n\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnNewButton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnNewButton.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\t\t\t\tnull, null));\r\n\t\tbtnNewButton.setForeground(Color.WHITE);\r\n\t\tbtnNewButton.setBackground(new Color(139, 69, 19));\r\n\t\tbtnNewButton.setFont(mf.MyFont(0, 17));\r\n\t\tbtnNewButton.setBounds(10, 51, 414, 34);\r\n\t\tbtnNewButton.setBorderPainted(false);\r\n\t\tbtnNewButton.setContentAreaFilled(false);\r\n\t\tbtnNewButton.setFocusPainted(false);\r\n\t\tbtnNewButton.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnNewButton);\r\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\t\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\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\tfinal JButton btnCreadorDeNpcs = new JButton(\"CREADOR DE NPCs\");\r\n\t\tbtnCreadorDeNpcs.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tStartNPC.atrpoints = new AtributePoints();\r\n\t\t\t\tStartNPC.skpoints = new SkillPoints();\r\n\t\t\t\tStartNPC.atributos = new Atributes(StartNPC.atrpoints);\r\n\t\t\t\tStartNPC.combatSkills = new CombatSkills(StartNPC.skpoints);\r\n\t\t\t\tStartNPC.knowledgeSkills = new KnowledgeSkills(\r\n\t\t\t\t\t\tStartNPC.skpoints);\r\n\t\t\t\tStartNPC.magicSkills = new MagicSkills(StartNPC.skpoints);\r\n\t\t\t\tStartNPC.knowhowSkills = new KnowHowSkills(StartNPC.skpoints);\r\n\t\t\t\tBlessing blessing = new Blessing(\"\");\r\n\t\t\t\tSetbacks setbacks = new Setbacks();\r\n\t\t\t\tPrivileges privileges = new Privileges();\r\n\t\t\t\tRace race = new Race(\"\");\r\n\t\t\t\tEquipment equipment = new Equipment();\r\n\t\t\t\tArrayList<String> posarm = new ArrayList<String>();\r\n\t\t\t\tPossesions posss = new Possesions(posarm);\r\n\t\t\t\tArmor armor = new Armor(\"\", \"\", false,false, posss);\r\n\t\t\t\tStartNPC.character = new Characters(null, race, \"\", 0, 2, 10,\r\n\t\t\t\t\t\t20, 20, StartNPC.atributos, StartNPC.combatSkills,\r\n\t\t\t\t\t\tStartNPC.knowledgeSkills, StartNPC.magicSkills,\r\n\t\t\t\t\t\tStartNPC.knowhowSkills, blessing, privileges, setbacks,\r\n\t\t\t\t\t\tfalse, armor, equipment,null,null,null,null,null,null,null,null,null,null,null,null, 0, 1,0,\"\",\"\",\"\");\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\tStartNPC window;\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new StartNPC();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDeNpcs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDeNpcs.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\r\n\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreadorDeNpcs.setBorder(new BevelBorder(BevelBorder.RAISED, null,\r\n\t\t\t\tnull, null, null));\r\n\t\tbtnCreadorDeNpcs.setForeground(Color.WHITE);\r\n\t\tbtnCreadorDeNpcs.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreadorDeNpcs.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreadorDeNpcs.setBounds(10, 141, 414, 34);\r\n\t\tbtnCreadorDeNpcs.setBorderPainted(false);\r\n\t\tbtnCreadorDeNpcs.setContentAreaFilled(false);\r\n\t\tbtnCreadorDeNpcs.setFocusPainted(false);\r\n\t\tbtnCreadorDeNpcs.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreadorDeNpcs);\r\n\r\n\t\tfinal JButton btnCreadorDePersonajes = new JButton(\r\n\t\t\t\t\"CREADOR DE PERSONAJES\");\r\n\t\tbtnCreadorDePersonajes.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDePersonajes.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreadorDePersonajes.setBorder(new BevelBorder(BevelBorder.RAISED,\r\n\t\t\t\tnull, null, null, null));\r\n\t\tbtnCreadorDePersonajes.setForeground(Color.WHITE);\r\n\t\tbtnCreadorDePersonajes.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreadorDePersonajes.setBorderPainted(false);\r\n\t\tbtnCreadorDePersonajes.setContentAreaFilled(false);\r\n\t\tbtnCreadorDePersonajes.setFocusPainted(false);\r\n\t\tbtnCreadorDePersonajes.setOpaque(false);\r\n\t\tbtnCreadorDePersonajes.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tcrear = \"pj\";\r\n\t\t\t\tStart.atrpoints = new AtributePoints();\r\n\t\t\t\tStart.skpoints = new SkillPoints();\r\n\t\t\t\tStart.atributos = new Atributes(Start.atrpoints);\r\n\t\t\t\tStart.combatSkills = new CombatSkills(Start.skpoints);\r\n\t\t\t\tStart.knowledgeSkills = new KnowledgeSkills(Start.skpoints);\r\n\t\t\t\tStart.magicSkills = new MagicSkills(Start.skpoints);\r\n\t\t\t\tStart.knowhowSkills = new KnowHowSkills(Start.skpoints);\r\n\t\t\t\tBlessing blessing = new Blessing(\"\");\r\n\t\t\t\tSetbacks setbacks = new Setbacks();\r\n\t\t\t\tPrivileges privileges = new Privileges();\r\n\t\t\t\tRace race = new Race(\"\");\r\n\t\t\t\tEquipment equipment = new Equipment();\r\n\t\t\t\tArrayList<String> posarm = new ArrayList<String>();\r\n\t\t\t\tPossesions posss = new Possesions(posarm);\r\n\t\t\t\tArmor armor = new Armor(\"\", \"\", false,false, posss);\r\n\t\t\t\tStart.character = new Characters(null, race, \"\", 0, 2, 10, 20,\r\n\t\t\t\t\t\t20, Start.atributos, Start.combatSkills,\r\n\t\t\t\t\t\tStart.knowledgeSkills, Start.magicSkills,\r\n\t\t\t\t\t\tStart.knowhowSkills, blessing, privileges, setbacks,\r\n\t\t\t\t\t\tfalse, armor, equipment,null,null,null,null,null,null,null,null,null,null,null,null, 0, 1,0,\"\",\"\",\"\");\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\tStart window;\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new Start();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDePersonajes.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreadorDePersonajes.setBounds(10, 186, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreadorDePersonajes);\r\n\r\n\t\tfinal JButton btnCreditos = new JButton(\"CRÉDITOS\");\r\n\t\tbtnCreditos.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreditos.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreditos.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tCreditos window = new Creditos();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tfinal JButton btnHistoria = new JButton(\"GESTOR DE PARTIDAS\");\r\n\t\tbtnHistoria.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tGestorMain window = new GestorMain();\r\n\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\r\n\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnHistoria.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnHistoria.setOpaque(false);\r\n\t\tbtnHistoria.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnHistoria.setForeground(Color.WHITE);\r\n\t\tbtnHistoria.setFont(mf.MyFont(0, 17));\r\n\t\tbtnHistoria.setFocusPainted(false);\r\n\t\tbtnHistoria.setContentAreaFilled(false);\r\n\t\tbtnHistoria.setBorderPainted(false);\r\n\t\tbtnHistoria.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnHistoria.setBackground(new Color(139, 69, 19));\r\n\t\tbtnHistoria.setBounds(10, 96, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnHistoria);\r\n\t\tbtnCreditos.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\t\t\t\tnull, null));\r\n\t\tbtnCreditos.setForeground(Color.WHITE);\r\n\t\tbtnCreditos.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreditos.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreditos.setBounds(10, 321, 414, 34);\r\n\t\tbtnCreditos.setBorderPainted(false);\r\n\t\tbtnCreditos.setContentAreaFilled(false);\r\n\t\tbtnCreditos.setFocusPainted(false);\r\n\t\tbtnCreditos.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreditos);\r\n\r\n\t\tfinal JButton button = new JButton(\"SALIR\");\r\n\t\tbutton.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tint seleccion = JOptionPane.showOptionDialog(\r\n\t\t\t\t\t\tfrmHistoriasDeZagas,\r\n\t\t\t\t\t\t\"¿Estás seguro de querer cerrar el programa?.\",\r\n\t\t\t\t\t\t\"¡Atención!\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new Object[] { \"Si\",\r\n\t\t\t\t\t\t\t\t\"No\" }, // null para YES, NO y CANCEL\r\n\t\t\t\t\t\t\"opcion 1\");\r\n\t\t\t\tif (JOptionPane.YES_OPTION == seleccion) {\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\ttxtBienvenidoSeleccioneA = new JLabel();\r\n\t\ttxtBienvenidoSeleccioneA.setOpaque(false);\r\n\t\ttxtBienvenidoSeleccioneA.setForeground(Color.WHITE);\r\n\t\ttxtBienvenidoSeleccioneA.setBackground(new Color(205, 133, 63));\r\n\t\ttxtBienvenidoSeleccioneA.setBorder(null);\r\n\t\ttxtBienvenidoSeleccioneA.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttxtBienvenidoSeleccioneA.setFont(mf.MyFont(0, 13));\r\n\t\ttxtBienvenidoSeleccioneA\r\n\t\t\t\t.setText(\"Bienvenido, seleccione a qué servicio desea acceder.\");\r\n\t\ttxtBienvenidoSeleccioneA.setBounds(0, 0, 444, 40);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(txtBienvenidoSeleccioneA);\r\n\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbutton.setOpaque(false);\r\n\t\tbutton.setForeground(Color.WHITE);\r\n\t\tbutton.setFont(mf.MyFont(0, 17));\r\n\t\tbutton.setFocusPainted(false);\r\n\t\tbutton.setContentAreaFilled(false);\r\n\t\tbutton.setBorderPainted(false);\r\n\t\tbutton.setBorder(new BevelBorder(BevelBorder.RAISED, null, null, null,\r\n\t\t\t\tnull));\r\n\t\tbutton.setBackground(new Color(139, 69, 19));\r\n\t\tbutton.setBounds(10, 366, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(button);\r\n\r\n\t\tfinal JButton btnAyuda = new JButton(\"AYUDA\");\r\n\t\tbtnAyuda.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tAyudaPrincipal window = new AyudaPrincipal();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAyuda.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnAyuda.setOpaque(false);\r\n\t\tbtnAyuda.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnAyuda.setForeground(Color.WHITE);\r\n\t\tbtnAyuda.setFont(mf.MyFont(0, 17));\r\n\t\tbtnAyuda.setFocusPainted(false);\r\n\t\tbtnAyuda.setContentAreaFilled(false);\r\n\t\tbtnAyuda.setBorderPainted(false);\r\n\t\tbtnAyuda.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnAyuda.setBackground(new Color(139, 69, 19));\r\n\t\tbtnAyuda.setBounds(10, 276, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnAyuda);\r\n\r\n\t\tfinal JButton btnPerfil = new JButton(\"PERFIL\");\r\n\t\tif (Loader.usuario.equals(\"\")) {\r\n\t\t\tbtnPerfil.setEnabled(false);\r\n\r\n\t\t}\r\n\t\tbtnPerfil.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPerfil.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\tPerfil window = new Perfil();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (ClassNotFoundException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (InstantiationException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (IllegalAccessException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnPerfil.setOpaque(false);\r\n\t\tbtnPerfil.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnPerfil.setForeground(Color.WHITE);\r\n\t\tbtnPerfil.setFont(mf.MyFont(0, 17));\r\n\t\tbtnPerfil.setFocusPainted(false);\r\n\t\tbtnPerfil.setContentAreaFilled(false);\r\n\t\tbtnPerfil.setBorderPainted(false);\r\n\t\tbtnPerfil.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnPerfil.setBackground(new Color(139, 69, 19));\r\n\t\tbtnPerfil.setBounds(10, 231, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnPerfil);\r\n\r\n\t\tfinal JButton btnAdministracin = new JButton(\"ADMINISTRACI\\u00D3N\");\r\n\t\tbtnAdministracin.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tAdministracionPrinc window = new AdministracionPrinc();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAdministracin.setVisible(false);\r\n\t\tbtnAdministracin.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnAdministracin.setOpaque(false);\r\n\t\tbtnAdministracin.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnAdministracin.setForeground(Color.WHITE);\r\n\t\tbtnAdministracin.setFont(mf.MyFont(0, 17));\r\n\t\tbtnAdministracin.setFocusPainted(false);\r\n\t\tbtnAdministracin.setContentAreaFilled(false);\r\n\t\tbtnAdministracin.setBorderPainted(false);\r\n\t\tbtnAdministracin.setBorder(new BevelBorder(BevelBorder.RAISED, null,\r\n\t\t\t\tnull,\r\n\r\n\t\t\t\tnull, null));\r\n\t\tbtnAdministracin.setBackground(new Color(139, 69, 19));\r\n\t\tbtnAdministracin.setBounds(10, 321, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnAdministracin);\r\n\t\r\n\r\n\t\tfinal JButton btnNewButton_1 = new JButton(\"(Desconectar)\");\r\n\t\t\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\r\n\t\t\t\tint seleccion = JOptionPane.showOptionDialog(\r\n\t\t\t\t\t\tfrmHistoriasDeZagas,\r\n\t\t\t\t\t\t\"¿Estás seguro de querer desconectarte?.\",\r\n\t\t\t\t\t\t\"¡Atención!\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new Object[] { \"Si\",\r\n\t\t\t\t\t\t\t\t\"No\" }, // null para YES, NO y CANCEL\r\n\t\t\t\t\t\t\"opcion 1\");\r\n\t\t\t\tif (JOptionPane.YES_OPTION == seleccion) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (Loader.usuario.length() == 0) {\r\n\t\t\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\t\t\tLoader window = new Loader();\r\n\t\t\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\r\n\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\tLoader.usuario = \"\";\r\n\t\t\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\t\t\tLoader window = new Loader();\r\n\t\t\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (InstantiationException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnNewButton_1.setForeground(Color.BLUE);\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnNewButton_1.setForeground(Color.WHITE);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.setFont(mf.MyFont(3, 11));\r\n\t\tbtnNewButton_1.setFocusPainted(false);\r\n\t\tbtnNewButton_1.setContentAreaFilled(false);\r\n\t\tbtnNewButton_1.setBorderPainted(false);\r\n\t\tbtnNewButton_1.setForeground(Color.WHITE);\r\n\t\tbtnNewButton_1.setBounds(-10, 416, 125, 17);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnNewButton_1);\r\n\r\n\t\tJLabel lblNewLabel_1 = new JLabel(Loader.usuario);\r\n\t\tlblNewLabel_1.setForeground(Color.WHITE);\r\n\t\tlblNewLabel_1.setFont(mf.MyFont(0, 11));\r\n\t\tlblNewLabel_1.setBounds(104, 416, 86, 17);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(lblNewLabel_1);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"\");\r\n\t\tlblNewLabel.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/background-inicio.jpg\")));\r\n\t\tlblNewLabel.setBackground(Color.BLACK);\r\n\t\tlblNewLabel.setBounds(0, 0, 444, 472);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(lblNewLabel);\r\n\t\tif (Loader.admin==1) {\r\n\t\t\tfrmHistoriasDeZagas.setBounds(100, 100, 439, 500);\r\n\t\t\tfrmHistoriasDeZagas.setLocationRelativeTo(null);\r\n\t\t\tbtnCreditos.setBounds(10, 365, 414, 34);\r\n\t\t\tbutton.setBounds(10, 410, 414, 34);\r\n\t\t\tlblNewLabel_1.setBounds(104, 455, 86, 17);\r\n\t\t\tbtnNewButton_1.setBounds(-10, 455, 125, 17);\r\n\t\t\tbtnAdministracin.setVisible(true);\r\n\t\t}\r\n\t}",
"private void initialize() {\r\n\t\tsetTitle(\"The Amazing Malaysia\");\r\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(MenuMWF.class.getResource(\"/A_3/icon.png\")));\r\n\t\tsetBounds(100, 100, 764, 636);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tgetContentPane().setLayout(null);\r\n\t\t//frmTheAmazingMalaysia = new JFrame();\r\n\t\t//frmTheAmazingMalaysia.setTitle(\"The Amazing Malaysia\");\r\n\t\t//frmTheAmazingMalaysia.setIconImage(Toolkit.getDefaultToolkit().getImage(MenuMWF.class.getResource(\"/A_3/icon.png\")));\r\n\t\t//frmTheAmazingMalaysia.setBounds(100, 100, 764, 636);\r\n\t\t//frmTheAmazingMalaysia.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"The Amazing Malaysia\");\r\n\t\tlblNewLabel.setForeground(Color.WHITE);\r\n\t\tlblNewLabel.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 35));\r\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel.setBounds(68, 0, 587, 56);\r\n\t\tgetContentPane().add(lblNewLabel);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\r\n\t\tlblNewLabel_1.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/nl1.jpg\")));\r\n\t\tlblNewLabel_1.setBounds(36, 115, 179, 172);\r\n\t\tgetContentPane().add(lblNewLabel_1);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel_1);\r\n\t\t\r\n\t\tJLabel label = new JLabel(\"New label\");\r\n\t\tlabel.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/r1.png\")));\r\n\t\tlabel.setBounds(290, 115, 179, 172);\r\n\t\tgetContentPane().add(label);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label);\r\n\t\t\r\n\t\tJLabel label_1 = new JLabel(\"New label\");\r\n\t\tlabel_1.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/rc1.jpg\")));\r\n\t\tlabel_1.setBounds(529, 115, 179, 172);\r\n\t\tgetContentPane().add(label_1);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_1);\r\n\t\t\r\n\t\tJLabel label_2 = new JLabel(\"New label\");\r\n\t\tlabel_2.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/ll1.png\")));\r\n\t\tlabel_2.setBounds(290, 363, 179, 172);\r\n\t\tgetContentPane().add(label_2);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_2);\r\n\t\t\r\n\t\tJLabel label_3 = new JLabel(\"New label\");\r\n\t\tlabel_3.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/s1.jpg\")));\r\n\t\tlabel_3.setBounds(36, 363, 179, 172);\r\n\t\tgetContentPane().add(label_3);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_3);\r\n\t\t\r\n\t\tJLabel label_4 = new JLabel(\"New label\");\r\n\t\tlabel_4.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/ck1.png\")));\r\n\t\tlabel_4.setBounds(529, 363, 179, 172);\r\n\t\tgetContentPane().add(label_4);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_4);\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Nasi Lemak\");\r\n\t\tlblNewLabel_2.setForeground(Color.WHITE);\r\n\t\tlblNewLabel_2.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblNewLabel_2.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_2.setBounds(36, 287, 179, 56);\r\n\t\tgetContentPane().add(lblNewLabel_2);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel_2);\r\n\t\t\r\n\t\tJLabel lblRendang = new JLabel(\"Rendang\");\r\n\t\tlblRendang.setForeground(Color.WHITE);\r\n\t\tlblRendang.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblRendang.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblRendang.setBounds(290, 287, 179, 56);\r\n\t\tgetContentPane().add(lblRendang);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblRendang);\r\n\t\t\r\n\t\tJButton btnExit = new JButton(\"Exit\");\r\n\t\tbtnExit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnExit.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/e1.png\")));\r\n\t\tbtnExit.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tbtnExit.setForeground(Color.WHITE);\r\n\t\tbtnExit.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 15));\r\n\t\tbtnExit.setBackground(Color.BLACK);\r\n\t\tbtnExit.setBounds(608, 0, 138, 60);\r\n\t\tgetContentPane().add(btnExit);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(btnExit);\r\n\t\t\r\n\t\tJLabel lblRotiCanai = new JLabel(\"Roti Canai\");\r\n\t\tlblRotiCanai.setForeground(Color.WHITE);\r\n\t\tlblRotiCanai.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblRotiCanai.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblRotiCanai.setBounds(529, 287, 179, 56);\r\n\t\tgetContentPane().add(lblRotiCanai);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblRotiCanai);\r\n\t\t\r\n\t\tJLabel lblHighlightDishes = new JLabel(\"Highlight dishes: \");\r\n\t\tlblHighlightDishes.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblHighlightDishes.setForeground(Color.WHITE);\r\n\t\tlblHighlightDishes.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblHighlightDishes.setBounds(236, 46, 233, 56);\r\n\t\tgetContentPane().add(lblHighlightDishes);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblHighlightDishes);\r\n\t\t\r\n\t\tJLabel lblSatay = new JLabel(\"Satay\");\r\n\t\tlblSatay.setForeground(Color.WHITE);\r\n\t\tlblSatay.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblSatay.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblSatay.setBounds(36, 533, 179, 56);\r\n\t\tgetContentPane().add(lblSatay);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblSatay);\r\n\t\t\r\n\t\tJLabel lblCurryLaksa = new JLabel(\"Curry Laksa\");\r\n\t\tlblCurryLaksa.setForeground(Color.WHITE);\r\n\t\tlblCurryLaksa.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblCurryLaksa.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblCurryLaksa.setBounds(290, 533, 179, 56);\r\n\t\tgetContentPane().add(lblCurryLaksa);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblCurryLaksa);\r\n\t\t\r\n\t\tJLabel lblChar = new JLabel(\"Char Kuey Teow\");\r\n\t\tlblChar.setForeground(Color.WHITE);\r\n\t\tlblChar.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblChar.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 25));\r\n\t\tlblChar.setBounds(529, 533, 179, 56);\r\n\t\tgetContentPane().add(lblChar);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblChar);\r\n\t\t\r\n\t\tJLabel lblNewLabel_3 = new JLabel(\"New label\");\r\n\t\tlblNewLabel_3.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/m2.png\")));\r\n\t\tlblNewLabel_3.setBounds(0, 0, 746, 589);\r\n\t\tgetContentPane().add(lblNewLabel_3);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel_3);\r\n\t}",
"public static void createAndShowGUI() {\n windowContent.add(\"Center\",p1);\n\n //Create the frame and set its content pane\n JFrame frame = new JFrame(\"GridBagLayoutCalculator\");\n frame.setContentPane(windowContent);\n\n // Set the size of the window to be big enough to accommodate all controls\n frame.pack();\n\n // Display the window\n frame.setVisible(true);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }",
"public NewConnectionFrame() {\n initComponents();\n }",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Enter Character Name\");\r\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.addWindowListener(new WindowListener()\r\n\t\t {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowDeactivated(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowOpened(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t } ) ;\r\n\r\n //Set up the content pane.\r\n addComponentsToPane(frame.getContentPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setSize(new Dimension(390,90)) ;\r\n frame.setVisible(true);\r\n frame.setResizable(false) ;\r\n }",
"public JInternalFrame createAndShow() {\r\n /** Create and set up the window. */\r\n JInternalFrame frame = new JInternalFrame(\"About\");\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n \r\n frame.putClientProperty(\"JInternalFrame.isPallete\", Boolean.TRUE);\r\n\r\n /** Add content to the window. */\r\n frame.add(new About());\r\n \r\n frame.setClosable(true);\r\n\r\n /** Display the window. */\r\n frame.pack();\r\n frame.setVisible(true);\r\n \r\n return frame;\r\n }",
"private void createWindow() {\r\n\t\t// Create the picture frame and initializes it.\r\n\t\tthis.createAndInitPictureFrame();\r\n\r\n\t\t// Set up the menu bar.\r\n\t\tthis.setUpMenuBar();\r\n\r\n\t\t// Create the information panel.\r\n\t\t//this.createInfoPanel();\r\n\r\n\t\t// Create the scrollpane for the picture.\r\n\t\tthis.createAndInitScrollingImage();\r\n\r\n\t\t// Show the picture in the frame at the size it needs to be.\r\n\t\tthis.pictureFrame.pack();\r\n\t\tthis.pictureFrame.setVisible(true);\r\n\t\tpictureFrame.setSize(728,560);\r\n\t}",
"public MFrame() {\n this.setTitle(\"Sistema Punto de Venta\");\n this.setLocationRelativeTo(null);\n this.setSize(new Dimension(800,600));\n this.setResizable(true);\n this.setVisible(true);\n initComponents();\n this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n }",
"public NewJFrame() {\n super(\"Users\");\n //int klj = Integer.parseInt(jLabel2.getText());\n //this.klj=Integer.parseInt(jLabel2.getText());\n initComponents();\n// ds();\n show_user();\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Identification-Badge-icon.png\")));\n jButton6.setVisible(false);\n //klj=Integer.parseInt(jTextField1.getText());\n //klj=model.getValueAt(selectedRowIndex, 0).toString();\n// public int ui;\n// ui=Integer.parseInt(jTextField1.getText());\n ////jLabel2.setText(String.valueOf(ui));\n }",
"private static void createAndShowGUI() {\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLayout(new BorderLayout());\r\n\r\n JPanel parametersPanel = new JPanel();\r\n parametersPanel.setPreferredSize(new Dimension(preferredWidth, 50));\r\n \r\n addComponentsToPane(parametersPanel);\r\n \r\n frame.add(parametersPanel, BorderLayout.PAGE_START);\r\n \r\n schedulePanel.add(monLabel);\r\n schedulePanel.add(tueLabel);\r\n schedulePanel.add(wedLabel);\r\n schedulePanel.add(thuLabel);\r\n schedulePanel.add(friLabel);\r\n schedulePanel.setPreferredSize(new Dimension(preferredWidth, 500));\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.setViewportView(schedulePanel);\r\n JPanel bigPanel = new JPanel(); \r\n bigPanel.setLayout(new BorderLayout());\r\n bigPanel.setPreferredSize(schedulePanel.getPreferredSize());\r\n bigPanel.add(scrollPane, BorderLayout.CENTER);\r\n frame.add(bigPanel, BorderLayout.CENTER);\r\n\r\n frame.setJMenuBar(createMenu());\r\n \r\n frame.pack();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n frame.setVisible(true);\r\n frame.setResizable(false);\r\n }",
"public FichaDeContactoJFrame() {\n initComponents();\n }",
"public ExampleJFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"private void buildFrame() {\n mainFrame = new JFrame();\n header = new JLabel(\"View Contact Information\");\n header.setHorizontalAlignment(JLabel.CENTER);\n header.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));\n \n infoTable.setFillsViewportHeight(true);\n infoTable.setShowGrid(true);\n infoTable.setVisible(true);\n scrollPane = new JScrollPane(infoTable);\n\n mainFrame.add(header, BorderLayout.NORTH);\n mainFrame.add(scrollPane, BorderLayout.CENTER);\n }",
"public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"CsvPickerPane\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n CsvPickerPane demopane = new CsvPickerPane(frame);\n frame.getContentPane().add(demopane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tJFrame frame = new JFrame(\"MapReverse Data Collector\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Add content to the window.\r\n\t\tframe.add(new MapReverseDataCollector());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setVisible(true);\r\n\t}",
"private void initialize() {\r\n\t\tfrmCadastro = new JFrame();\r\n\t\tfrmCadastro.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\r\n\t\tfrmCadastro.setTitle(\"Cadastro\");\r\n\t\tfrmCadastro.setBounds(100, 100, 410, 213);\r\n\t\tfrmCadastro.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmCadastro.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Aluno\");\r\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(25, 65, 160, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Funcionario\");\r\n\t\tbtnNewButton_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton_1.setBounds(217, 65, 152, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton_1);\r\n\t\t\r\n\t\tJLabel lblQualCadastroDeseja = new JLabel(\"Qual cadastro deseja realizar?\");\r\n\t\tlblQualCadastroDeseja.setFont(new Font(\"Nirmala UI\", Font.BOLD | Font.ITALIC, 20));\r\n\t\tlblQualCadastroDeseja.setBounds(49, 20, 305, 34);\r\n\t\tfrmCadastro.getContentPane().add(lblQualCadastroDeseja);\r\n\r\n\t\t\r\n\t}",
"public NewJFrame(DonHang donHang) {\n initComponents();\n DhDieuKhien ddk = new DhDieuKhien(btnSubmit, jtfMaDon, jdcNgayLenDon, jtfTinhTrang, jtfNguoiMua, jtfMatHang, jpnSoLuong, jlbThanhTien,jtfGia);\n ddk.setView(donHang);\n ddk.setEvent();\n }",
"private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }",
"private void setFrame()\r\n\t{\r\n\t\tthis.setName(\"Project 3\");\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setSize(300, 300);\r\n\t\tthis.setLocation(650, 100);\r\n\t\tthis.setVisible(false);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.add(panel, BorderLayout.CENTER);\r\n\t}",
"public void createAndShowGUI(){\r\n\t\t//You want the jframe to close everything when it is closed\r\n\t\tjframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tif(maximized){\r\n\t\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\tsWidth = (int)screenSize.getWidth();\r\n\t\t\tsHeight = (int)screenSize.getHeight();\r\n\t\t\tjframe.setSize(sWidth, sHeight);\r\n\t\t\tjframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\t\tjframe.setUndecorated(true);\r\n\t\t\tjframe.setResizable(true);\r\n\t\t\tjframe.setVisible(true);\r\n\t\t\tcWidth = sWidth;\r\n\t\t\tcHeight = sHeight;\r\n\t\t}else{\r\n\t\t\tjframe.setResizable(false);\r\n\t\t\t//Makes the jframe visible\r\n\t\t\tjframe.setVisible(true);\r\n\t\t\t//Sets the size of the jframe\r\n\t\t\tjframe.setSize(sWidth, sHeight);\r\n\t\t\t\r\n\t\t\t//I have no fucking idea why it needs this but it does\r\n\t\t\ttry{\r\n\t\t\t\tThread.sleep(100);\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Set the content width\r\n\t\t\tcWidth = jframe.getContentPane().getWidth();\r\n\t\t\t//Set the content height\r\n\t\t\tcHeight = jframe.getContentPane().getHeight();\r\n\t\t}\r\n\r\n\t\t//Set up the game menu\r\n\t\tGameMenu gmenu = new GameMenu((Graphics2D)(jframe.getContentPane().getGraphics()),cWidth,cHeight, new Input(jframe));\r\n\t\t//Draw the main menu\r\n\t\tgmenu.drawMainMenu();\r\n\t}",
"private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"MRALD Color Chooser\");\n\n //Create and set up the content pane.\n JComponent newContentPane = new MraldColorChooser(coloringItems);\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"private static void createAndShowMainWindow() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorld - Swing\");\n frame.setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World!\");\n frame.getContentPane().setBackground(new Color(240, 240, 240));\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.setVisible(true);\n }",
"private static void createAndShowGUI() {\n\t\tint width = 500, height = 300;\n\t\tJFrame frame = new JFrame(\"Text File Reader\");\n\t\tframe.setSize(new Dimension(width, height));\n\t\tframe.setContentPane(new MainExecutor(width, height)); /* Adds the panel to the frame */\n\n\t\t/* Centralizing the frame */\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint upperLeftCornerX = (screenSize.width - frame.getWidth()) / 2;\n\t\tint upperLeftCornerY = (screenSize.height - frame.getHeight()) / 2;\n\t\tframe.setLocation(upperLeftCornerX, upperLeftCornerY);\n\t\tframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\n\t\t/* Shows the GUI */\n\t\tframe.setVisible(true);\n\t}",
"private void initialize(CurrentProfile newUser) {\n\t\tfrmSignUp = new JFrame();\n\t\tfrmSignUp.setResizable(false);\n\t\t//frmSignUp.setAlwaysOnTop(true);\n\t\tfrmSignUp.setTitle(\"SIGN UP (1/6)\");\n\t\tfrmSignUp.setBounds(100, 100, 557, 483);\n\t\tfrmSignUp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmSignUp.getContentPane().setLayout(null);\n\t\tfrmSignUp.setVisible(true);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(12, 12, 531, 432);\n\t\tfrmSignUp.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\t//allfield[0] = new JTextField();\n\t\t//allfield[0].setBounds(165, 60, 246, 20);\n\t\t//panel.add(allfield[0]);\n\t\t\n\t\tJLabel lblName = new JLabel(\"NAME\");\n\t\tlblName.setBounds(33, 67, 46, 14);\n\t\tpanel.add(lblName);\n\t\t\n\t\tJLabel lblDob = new JLabel(\"D.O.B\");\n\t\tlblDob.setBounds(33, 121, 46, 14);\n\t\tpanel.add(lblDob);\n\t\t\n\t\tJLabel lblFatherName = new JLabel(\"FATHER'S NAME\");\n\t\tlblFatherName.setBounds(33, 167, 109, 14);\n\t\tpanel.add(lblFatherName);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"EMAIL\");\n\t\tlblEmail.setBounds(33, 222, 46, 14);\n\t\tpanel.add(lblEmail);\n\t\t\n\t\tJLabel lblSex = new JLabel(\"SEX\");\n\t\tlblSex.setBounds(33, 271, 46, 14);\n\t\tpanel.add(lblSex);\n\t\t\n\t\tJLabel lblPicture = new JLabel(\"PICTURE\");\n\t\tlblPicture.setBounds(33, 332, 74, 14);\n\t\tpanel.add(lblPicture);\n\t\t\n\t\tJLabel lblUid = new JLabel(\"UID\");\n\t\tlblUid.setBounds(384, 22, 107, 16);\n\t\tlblUid.setText(Integer.toString(newUser.uid));\n\t\tpanel.add(lblUid);\n\t\t\n\t\ttxtName1 = new JTextField();\n\t\ttxtName1.setBounds(158, 64, 163, 20);\n\t\tpanel.add(txtName1);\n\t\ttxtName1.setColumns(10);\n\t\t\n\t\tJRadioButton rdbtnMale = new JRadioButton(\"Male\");\n\t\trdbtnMale.setBounds(153, 267, 109, 23);\n\t\tpanel.add(rdbtnMale);\n\t\t\n\t\tJRadioButton rdbtnFemale = new JRadioButton(\"Female\");\n\t\trdbtnFemale.setBounds(356, 267, 109, 23);\n\t\tpanel.add(rdbtnFemale);\n\t\t\n\t\tButtonGroup group = new ButtonGroup();\n\t\tgroup.add(rdbtnMale);\n\t\tgroup.add(rdbtnFemale);\n\t\t\n\t\ttxtDate = new JTextField();\n\t\ttxtDate.setText(\"DD-MM-YYYY\");\n\t\ttxtDate.setBounds(158, 118, 333, 20);\n\t\tpanel.add(txtDate);\n\t\ttxtDate.setColumns(10);\n\t\t\n\t\ttxtFather = new JTextField();\n\t\ttxtFather.setBounds(160, 164, 331, 20);\n\t\tpanel.add(txtFather);\n\t\ttxtFather.setColumns(10);\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\ttxtEmail.setBounds(158, 216, 333, 20);\n\t\tpanel.add(txtEmail);\n\t\ttxtEmail.setColumns(10);\n\t\t\n\t\tJButton btnSelect = new JButton(\"SELECT IMAGE\");\n\t\tbtnSelect.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtPhoto.setText(\"\");\n\t\t\t\tJFileChooser filechooser = new JFileChooser();\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\n\t\t\t\t \"Images\", \"jpg\",\"JPG\",\"GIF\", \"gif\",\"JPEG\",\"png\",\"PNG\");\n\t\t\t\tfilechooser.setFileFilter(filter);\n\t\t\t\t//ThumbNailView thumbsView = new ThumbNailView();\n\t\t\t\t//filechooser.setAccessory(new ImagePreview(filechooser));\n\t\t\t\tint returnVal = filechooser.showDialog(null,\"select an image\");\n\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION){\n\t\t\t\t\tfile = filechooser.getSelectedFile();\n\t\t\t\t\ttxtPhoto.setText(file.getPath());\n\t\t\t\t\tnewUser.picLoc=file.getPath();\n\t\t\t\t//\tnewUser.picName=file.getName();\n\t\t\t\t\tnewUser.picLoc=newUser.picLoc.replace(\"\\\\\", \"\\\\\\\\\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSelect.setBounds(374, 326, 124, 26);\n\t\tpanel.add(btnSelect);\n\t\t\n\t\tJButton btnNext = new JButton(\">>\");\n\t\tbtnNext.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//String name,father,dob,email,photo;\n\t\t\t\t\n\t\t\t\tboolean f=false;\n\t\t\t\t\n\t\t\t\tdo{\n\t\t\t\t\tnewUser.nameFirst=txtName1.getText();\n\t\t\t\t\tnewUser.nameLast=txtName2.getText();\n\t\t\t\t\n\t\t\t\t\tnewUser.father=txtFather.getText();\n\t\t\t\t\tnewUser.dob=txtDate.getText();\n\t\t\t\t\tnewUser.email=txtEmail.getText();\n\t\t\t\t\tnewUser.picLoc=file.getPath();//.getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tif(rdbtnFemale.isSelected()){\n\t\t\t\t\t\tnewUser.sex='f';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rdbtnMale.isSelected()){\n\t\t\t\t\t\tnewUser.sex='m';\n\t\t\t\t\t}\n\t\t\t\t\tif(newUser.nameFirst.length()!=0&&newUser.father.length()!=0&&newUser.dob.length()!=0&&newUser.email.length()!=0&&newUser.picLoc.length()!=0&&newUser.sex!=0){\n\t\t\t\t\t\tf=true;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"enter every details!!!\");\n\t\t\t\t\t}\n\t\t\t\t}while(!f);\n\t\t\t\t/*try {\n\t\t\t\t\tf=newUser.l1Tableinsert();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"database connection error !!!\\t\"+e1);\n\t\t\t\t}\n\t\t\t\tif(!f)\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"database connection error !!!\\t\");\n\t\t\t\t*/\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tSignL2Panel window = new SignL2Panel(newUser);\n\t\t\t\t\t\t\twindow.frmSignUp2.setVisible(true);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tfrmSignUp.dispose();\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t});\n\t\tbtnNext.setBounds(433, 406, 98, 26);\n\t\tpanel.add(btnNext);\n\t\t\n\t\ttxtPhoto = new JTextField();\n\t\ttxtPhoto.setBounds(158, 329, 204, 20);\n\t\tpanel.add(txtPhoto);\n\t\ttxtPhoto.setColumns(10);\n\t\t\n\t\ttxtName2 = new JTextField();\n\t\ttxtName2.setBounds(333, 64, 158, 20);\n\t\tpanel.add(txtName2);\n\t\ttxtName2.setColumns(10);\n\t\t\n\t\t\n\t//\tpanel.setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{textField, datePicker, lblName, lblDob, lblFatherName, lblEmail, lblSex, lblPicture, rdbtnMale, rdbtnFemale}));\n\t\t//allfield[0].setColumns(10);\n\t\t\n\t}"
]
| [
"0.796484",
"0.7945892",
"0.7931828",
"0.7931828",
"0.7931828",
"0.7931828",
"0.7931828",
"0.7931828",
"0.7931828",
"0.79161865",
"0.78647804",
"0.7763172",
"0.76817715",
"0.7648401",
"0.75705475",
"0.7474783",
"0.7441117",
"0.7441071",
"0.7381736",
"0.7241864",
"0.7152069",
"0.71234715",
"0.7093774",
"0.7046038",
"0.7001353",
"0.6876144",
"0.68730295",
"0.6839108",
"0.67915845",
"0.668492",
"0.6595544",
"0.6589313",
"0.65322",
"0.65040064",
"0.6491264",
"0.64704055",
"0.6437297",
"0.64292765",
"0.64054906",
"0.64034057",
"0.63977015",
"0.63584495",
"0.62989986",
"0.62963825",
"0.62949085",
"0.62719226",
"0.6254402",
"0.6252156",
"0.62513596",
"0.62289715",
"0.6227046",
"0.62179726",
"0.62157875",
"0.62055755",
"0.62044173",
"0.6193791",
"0.6193326",
"0.6185335",
"0.61759156",
"0.61742026",
"0.6166754",
"0.6162535",
"0.61582863",
"0.6158079",
"0.6154202",
"0.6140779",
"0.61397743",
"0.6128629",
"0.6123062",
"0.61212313",
"0.6102532",
"0.60971355",
"0.60969436",
"0.6093347",
"0.6092785",
"0.6092317",
"0.60912186",
"0.6079369",
"0.6076933",
"0.6073533",
"0.60734314",
"0.6067038",
"0.60622036",
"0.6055792",
"0.60554165",
"0.6053233",
"0.6052203",
"0.60420203",
"0.6040655",
"0.60391635",
"0.6037928",
"0.6036092",
"0.60289246",
"0.60250616",
"0.6014197",
"0.60138345",
"0.6013661",
"0.60067236",
"0.6000157",
"0.5998613"
]
| 0.70620316 | 23 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jFileChooser1 = new javax.swing.JFileChooser();
jScrollPane1 = new javax.swing.JScrollPane();
textArea = new javax.swing.JTextArea();
menuBar = new javax.swing.JMenuBar();
fileMenu = new javax.swing.JMenu();
newFile = new javax.swing.JMenuItem();
saveFile = new javax.swing.JMenuItem();
editMenu = new javax.swing.JMenu();
fixFile = new javax.swing.JMenuItem();
changeWrongs = new javax.swing.JMenuItem();
deleteLastLetter = new javax.swing.JMenuItem();
jMenu1 = new javax.swing.JMenu();
darkMode = new javax.swing.JMenuItem();
lightMode = new javax.swing.JMenuItem();
defaultTheme = new javax.swing.JMenuItem();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Text Editor");
setMinimumSize(new java.awt.Dimension(300, 100));
textArea.setBackground(new java.awt.Color(0, 51, 102));
textArea.setColumns(20);
textArea.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
textArea.setForeground(new java.awt.Color(255, 255, 255));
textArea.setLineWrap(true);
textArea.setRows(5);
textArea.setWrapStyleWord(true);
textArea.setMinimumSize(new java.awt.Dimension(75, 10));
jScrollPane1.setViewportView(textArea);
menuBar.setBackground(new java.awt.Color(153, 153, 153));
menuBar.setBorder(null);
fileMenu.setForeground(new java.awt.Color(0, 204, 204));
fileMenu.setText("Dosya");
fileMenu.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N
fileMenu.setMinimumSize(new java.awt.Dimension(50, 19));
fileMenu.setPreferredSize(new java.awt.Dimension(50, 19));
newFile.setForeground(new java.awt.Color(0, 204, 204));
newFile.setText("Dosya Aç");
newFile.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
newFileActionPerformed(evt);
}
});
fileMenu.add(newFile);
saveFile.setBackground(new java.awt.Color(255, 255, 255));
saveFile.setForeground(new java.awt.Color(0, 204, 204));
saveFile.setText("Dosyayı Kaydet");
saveFile.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
saveFileActionPerformed(evt);
}
});
fileMenu.add(saveFile);
menuBar.add(fileMenu);
editMenu.setForeground(new java.awt.Color(0, 204, 204));
editMenu.setText("Düzenle");
editMenu.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N
editMenu.setMaximumSize(new java.awt.Dimension(60, 32767));
editMenu.setMinimumSize(new java.awt.Dimension(60, 19));
editMenu.setPreferredSize(new java.awt.Dimension(50, 19));
fixFile.setForeground(new java.awt.Color(0, 204, 204));
fixFile.setText("Hataları Düzelt");
fixFile.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
fixFileActionPerformed(evt);
}
});
editMenu.add(fixFile);
changeWrongs.setForeground(new java.awt.Color(0, 204, 204));
changeWrongs.setText("Kelime Değiştir");
changeWrongs.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
changeWrongsActionPerformed(evt);
}
});
editMenu.add(changeWrongs);
deleteLastLetter.setForeground(new java.awt.Color(0, 204, 204));
deleteLastLetter.setText("Son Harf Sil");
deleteLastLetter.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
deleteLastLetterActionPerformed(evt);
}
});
editMenu.add(deleteLastLetter);
menuBar.add(editMenu);
jMenu1.setForeground(new java.awt.Color(0, 204, 204));
jMenu1.setText("Tema Seç");
jMenu1.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N
darkMode.setForeground(new java.awt.Color(0, 204, 204));
darkMode.setText("Karanlık");
darkMode.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
darkModeActionPerformed(evt);
}
});
jMenu1.add(darkMode);
lightMode.setForeground(new java.awt.Color(0, 204, 204));
lightMode.setText("Aydınlık");
lightMode.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
lightModeActionPerformed(evt);
}
});
jMenu1.add(lightMode);
defaultTheme.setForeground(new java.awt.Color(0, 204, 204));
defaultTheme.setText("İlk Haline Dön");
defaultTheme.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
defaultThemeActionPerformed(evt);
}
});
jMenu1.add(defaultTheme);
menuBar.add(jMenu1);
setJMenuBar(menuBar);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 524, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 329, Short.MAX_VALUE)
);
pack();
setLocationRelativeTo(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
]
| [
"0.73201853",
"0.7291607",
"0.7291607",
"0.7291607",
"0.7285772",
"0.7248832",
"0.721371",
"0.72083634",
"0.71965843",
"0.7190274",
"0.71847606",
"0.71592176",
"0.71481156",
"0.70935035",
"0.70799935",
"0.70570904",
"0.6987588",
"0.6977819",
"0.69557554",
"0.6953564",
"0.6945299",
"0.6942377",
"0.69355065",
"0.69326174",
"0.69278985",
"0.69251215",
"0.69248855",
"0.6911974",
"0.6911815",
"0.68930984",
"0.68926644",
"0.6890748",
"0.689013",
"0.6889194",
"0.68833196",
"0.68817353",
"0.68812305",
"0.68779206",
"0.6875422",
"0.6874629",
"0.687249",
"0.6859694",
"0.6857467",
"0.6855978",
"0.68553996",
"0.68549085",
"0.6853271",
"0.6853271",
"0.68530285",
"0.68427855",
"0.6837456",
"0.68367314",
"0.682818",
"0.6828002",
"0.6826416",
"0.6823491",
"0.6823434",
"0.68172073",
"0.6816386",
"0.6810029",
"0.68090403",
"0.680861",
"0.6807909",
"0.6807168",
"0.680365",
"0.67955285",
"0.6795115",
"0.6792028",
"0.6790702",
"0.6789993",
"0.67889",
"0.67872643",
"0.6782707",
"0.67665267",
"0.6765798",
"0.6765086",
"0.6755966",
"0.6755084",
"0.6751955",
"0.6750892",
"0.67433685",
"0.67388666",
"0.6737211",
"0.6735823",
"0.673344",
"0.67278177",
"0.67267376",
"0.67203826",
"0.6716326",
"0.67144203",
"0.6713941",
"0.6707991",
"0.67068243",
"0.6704236",
"0.6701207",
"0.66996884",
"0.6698865",
"0.6697606",
"0.6693878",
"0.6691149",
"0.6689875"
]
| 0.0 | -1 |
Criteria Query needs 5 steps: / 1. Use criteria builder to create Criteria Query returning the expected result object 2. Define roots for tables which are involved in the query 3. Define Predicates etc using criteria query 4. Add predicates etc to the criteria query 5. Build the TypedQuery using the entity manager and criteria query | @Test
public void basic_select() {
// 1). Use criteria builder to create criteria query returning expected
// result object
CriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();
CriteriaQuery<Course> criteriaQuery = criteriaBuilder
.createQuery(Course.class);
// 2). Define roots for the tables which are involved in query
Root<Course> root = criteriaQuery.from(Course.class);
// 3. Define Predicates etc using criteria query
// 4. Add predicates etc to the criteria query
// Build Typerd Query
TypedQuery<Course> query = em.createQuery(criteriaQuery.select(root));
List<Course> resultList = query.getResultList();
logger.info("Simple Criteria Query Result ===> {}", resultList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic <T> TypedQuery<T> createQuery(CriteriaQuery<T> criteriaQuery) {\n\t\treturn null;\n\t}",
"public Query<T, R> build() {\n // if criteria.size == 0, rootCriterion = null\n Criterion rootCriterion = null;\n if (criteria.size() == 1) {\n rootCriterion = criteria.get(0);\n } else if (criteria.size() > 1) {\n rootCriterion = Restrictions.and(criteria\n .toArray(new Criterion[criteria.size()]));\n }\n return new QueryImpl<T, R>(entityClass, returnType, rootCriterion,\n orderings, maxResults, returnFields);\n }",
"@Override\n\tpublic TypedQuery<Plan> constructQuery(Map<String, String> customQuery) {\n\t\tCriteriaBuilder cb = null;\n\t\ttry {\n\t\t\tcb = em.getCriteriaBuilder();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tCriteriaQuery<Plan> cq = cb.createQuery(Plan.class);\n\t\tRoot<Plan> plan = cq.from(Plan.class);\n\t\tPredicate existingpredicate = null;\n\t\tint predicateCount=0;\n\t\tPredicate masterPredicate=null;\n\n\t\ttry {\n\n\t\t\tfor (Map.Entry<String,String> entry : customQuery.entrySet()) \n\t\t\t{\n\t\t\t\tif(plan.get(entry.getKey().toString()) != null)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t//Query for range values with comma(,) as delimiter\n\t\t\t\t\tif(entry.getValue().contains(\",\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tint minRange=Integer.parseInt(customQuery.get(entry.getKey().toString()).split(\",\")[0]);\n\t\t\t\t\t\tint maxRange=Integer.parseInt(customQuery.get(entry.getKey().toString()).split(\",\")[1]);\n\t\t\t\t\t\tif(predicateCount==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmasterPredicate = cb.between(plan.get(entry.getKey().toString()),minRange, maxRange );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texistingpredicate = cb.between(plan.get(entry.getKey().toString()),minRange, maxRange );\n\t\t\t\t\t\t\tmasterPredicate=cb.and(masterPredicate,existingpredicate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpredicateCount++;\n\t\t\t\t\t}\n\t\t\t\t\t//Query for equals values\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(predicateCount==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmasterPredicate = cb.equal(plan.get(entry.getKey().toString()), customQuery.get(entry.getKey().toString()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texistingpredicate = cb.equal(plan.get(entry.getKey().toString()), customQuery.get(entry.getKey().toString()));\n\t\t\t\t\t\t\tmasterPredicate=cb.and(masterPredicate,existingpredicate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpredicateCount++;\n\t\t\t\t\t\t//cq.where(predicate);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcq.where(masterPredicate);\n\t\tTypedQuery<Plan> query = em.createQuery(cq);\n\t\treturn query;\n\t}",
"protected Criteria createEntityCriteria() {\n return getSession().createCriteria(persistentClass);\n }",
"public void prepareCriteria(Criteria criteria, Class persistentClass) {\n for (Criterion criterion : criterionList)\n criteria.add(criterion);\n\n for (Order order : orderList)\n criteria.addOrder(order);\n\n for (Filter filter : relationList) {\n String[] joinedColumns = filter.getJoinedColumns();\n for (int i = 0, joinedColumnsLength = joinedColumns.length - 1; i < joinedColumnsLength; i++) {\n String relatedColumn = joinedColumns[i];\n String firstJoin;\n String persistentClassName = StringUtils.uncapitalize(persistentClass.getSimpleName());\n\n if (joinedColumns[i].equals(persistentClassName))\n relatedColumn = joinedColumns[i + 1];\n\n if (i == 0)\n firstJoin = persistentClassName;\n else\n firstJoin = joinedColumns[i - 1];\n\n criteria.createCriteria(firstJoin + \".\" + relatedColumn, relatedColumn);\n }\n }\n\n\n if (maxResult != 0)\n criteria.setMaxResults(maxResult);\n\n }",
"public Criteria buildQueryCriteria(Session session,\n PageCriteria<SortType> pageCriteria) {\n Criteria crit = session.createCriteria(clazz);\n\n // If page size is -1, that means get all users\n if (pageCriteria.getPageSize() > 0) {\n crit.setMaxResults(pageCriteria.getPageSize());\n\n int firstResult = 0;\n if (pageCriteria.getPageNumber() > 1) {\n firstResult = (pageCriteria.getPageNumber() - 1) *\n pageCriteria.getPageSize();\n }\n crit.setFirstResult(firstResult);\n }\n\n for (Order order : buildOrders(pageCriteria)) {\n crit.addOrder(order);\n }\n\n Criterion orCriterion = null;\n for (String[] pair : pageCriteria.getOrCriteria()) {\n if (orCriterion == null) {\n orCriterion = Restrictions.ilike(pair[0], pair[1],\n MatchMode.ANYWHERE);\n } else {\n orCriterion = Restrictions.or(orCriterion,\n Restrictions.ilike(pair[0], pair[1],\n MatchMode.ANYWHERE));\n }\n }\n if (orCriterion != null) {\n crit.add(orCriterion);\n }\n\n return crit;\n }",
"protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}",
"public Query createQuery() {\n\n String queryString = getQueryString();\n\n if (debug == true) {\n logger.info( \"Query String: {0}\", queryString);\n logger.info( \"Parameters: Max Results: {0}, First result: {1}, Order By: {2}, Restrictions: {3}, Joins: {4}\", new Object[]{maxResults, firstResult, orderBy, normalizedRestrictions, joins});\n }\n\n Query query = entityManager.createQuery(queryString);\n\n List<QueryParameter> parameters = getQueryParameters();\n for (QueryParameter parameter : parameters) {\n //dates (Date and Calendar)\n if (parameter.getTemporalType() != null && (parameter.getValue() instanceof Date || parameter.getValue() instanceof Calendar)) {\n if (parameter.getValue() instanceof Date) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Date) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Date) parameter.getValue(), parameter.getTemporalType());\n }\n }\n } else if (parameter.getValue() instanceof Calendar) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n }\n }\n }\n } else {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), parameter.getValue());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), parameter.getValue());\n }\n }\n }\n }\n\n if (maxResults != null) {\n query.setMaxResults(maxResults);\n }\n if (firstResult != null) {\n query.setFirstResult(firstResult);\n }\n return query;\n }",
"public List<?> queryByCriteria(final DatabaseQuery query)\n throws DataAccessLayerException {\n List<?> queryResult = null;\n try {\n // Get a session and create a new criteria instance\n queryResult = txTemplate\n .execute(new TransactionCallback<List<?>>() {\n @Override\n public List<?> doInTransaction(TransactionStatus status) {\n String queryString = query.createHQLQuery();\n Query hibQuery = getSession(false).createQuery(\n queryString);\n try {\n query.populateHQLQuery(hibQuery,\n getSessionFactory());\n } catch (DataAccessLayerException e) {\n throw new org.hibernate.TransactionException(\n \"Error populating query\", e);\n }\n // hibQuery.setCacheMode(CacheMode.NORMAL);\n // hibQuery.setCacheRegion(QUERY_CACHE_REGION);\n if (query.getMaxResults() != null) {\n hibQuery.setMaxResults(query.getMaxResults());\n }\n List<?> results = hibQuery.list();\n return results;\n }\n });\n\n } catch (TransactionException e) {\n throw new DataAccessLayerException(\"Transaction failed\", e);\n }\n return queryResult;\n }",
"public List<M> executeCriteria(Criterion... criterions) {\n\t\tSession session= (Session)getEm().getDelegate();\r\n\t\tCriteria criteria = session.createCriteria(getEntityClass());\r\n for (Criterion c : criterions)\r\n {\r\n criteria.add(c);\r\n }\r\n\t\t\r\n\t\treturn criteria.list();\r\n\t}",
"@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query with Criteria Query for Multiple where with Address 04\")\n public void testHQLQueryWithCriteriaQueryForMultipleWhereWithAddress04()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress04> addresses = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession()) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress04> criteriaQuery = criteriaBuilder.createQuery(SBAddress04.class);\n Root<SBAddress04> root = criteriaQuery.from(SBAddress04.class);\n\n// criteriaQuery.select(root)\n// .where(criteriaBuilder.equal(root.get(\"address04Zip\"),\"292000\"))\n// .where(criteriaBuilder.like(root.get(\"address04City\"),\"Hikkaduwa\"));\n\n Predicate[] predicates = new Predicate[2];\n predicates[0] = criteriaBuilder.equal(root.get(\"address04Zip\"),\"292000\");\n predicates[1] = criteriaBuilder.like(root.get(\"address04City\"),\"Hikkaduwa\");\n\n //AND\n// criteriaQuery.select(root)\n// .where(predicates);\n\n //OR\n// criteriaQuery.select(root)\n// .where(criteriaBuilder.or(predicates[0],predicates[1]));\n\n //AND\n criteriaQuery.select(root)\n .where(criteriaBuilder.and(predicates[0],predicates[1]));\n\n Query query = session.createQuery(criteriaQuery);\n\n addresses = query.list();\n\n transaction.commit();\n\n addresses.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress04Street()));\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Address : \" + addresses.size());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }",
"private void constructFrom(CriteriaBuilderImpl cb, AbstractQuery<?> q, Tree froms) {\n \t\tfor (int i = 0; i < froms.getChildCount(); i++) {\n \t\t\tfinal Tree from = froms.getChild(i);\n \t\t\t// root query from\n \t\t\tif (from.getType() == JpqlParser.ST_FROM) {\n \t\t\t\tfinal Aliased fromDef = new Aliased(from.getChild(0));\n \n \t\t\t\tfinal EntityTypeImpl<Object> entity = this.getEntity(fromDef.getQualified().toString());\n \n \t\t\t\tfinal RootImpl<Object> r = (RootImpl<Object>) q.from(entity);\n \t\t\t\tr.alias(fromDef.getAlias());\n \n \t\t\t\tthis.putAlias((BaseQueryImpl<?>) q, from, fromDef, r);\n \n \t\t\t\tthis.constructJoins(cb, (AbstractCriteriaQueryImpl<?>) q, r, from.getChild(1));\n \n \t\t\t\tif (from.getChild(from.getChildCount() - 1).getType() == JpqlParser.LALL_PROPERTIES) {\n \t\t\t\t\tfor (final AssociationMapping<?, ?, ?> association : entity.getAssociations()) {\n \t\t\t\t\t\tif (!association.isEager()) {\n \t\t\t\t\t\t\tfinal Iterator<String> pathIterator = Splitter.on(\".\").split(association.getPath()).iterator();\n \n \t\t\t\t\t\t\t// Drop the root part\n \t\t\t\t\t\t\tpathIterator.next();\n \n \t\t\t\t\t\t\tFetch<?, ?> fetch = null;\n \t\t\t\t\t\t\twhile (pathIterator.hasNext()) {\n \t\t\t\t\t\t\t\tfetch = fetch == null ? r.fetch(pathIterator.next()) : fetch.fetch(pathIterator.next());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t// in collection form\n \t\t\telse if (from.getType() == JpqlParser.ST_COLL) {\n \t\t\t\tfinal Aliased aliased = new Aliased(from.getChild(1));\n \n \t\t\t\tAbstractFrom<?, ?> parent = this.getAliased(q, from.getChild(0).getText());\n \n \t\t\t\tint depth = 0;\n \t\t\t\tfor (final String segment : aliased.getQualified().getSegments()) {\n \t\t\t\t\tif ((depth > 0) && (parent instanceof PluralJoin)) {\n \t\t\t\t\t\tthrow new PersistenceException(\"Cannot qualify, only embeddable joins within the path allowed, \" + \"line \" + from.getLine() + \":\"\n \t\t\t\t\t\t\t+ from.getCharPositionInLine());\n \t\t\t\t\t}\n \n \t\t\t\t\tparent = parent.join(segment, JoinType.LEFT);\n \n \t\t\t\t\tdepth++;\n \t\t\t\t}\n \n \t\t\t\tparent.alias(aliased.getAlias());\n \n \t\t\t\tthis.putAlias((BaseQueryImpl<?>) q, from.getChild(1), aliased, parent);\n \t\t\t}\n \n \t\t\t// sub query from\n \t\t\telse {\n \t\t\t\tfinal Aliased fromDef = new Aliased(from);\n \t\t\t\tfinal EntityTypeImpl<Object> entity = this.getEntity(fromDef.getQualified().toString());\n \n \t\t\t\tfinal RootImpl<Object> r = (RootImpl<Object>) q.from(entity);\n \t\t\t\tr.alias(fromDef.getAlias());\n \n \t\t\t\tthis.putAlias((BaseQuery<?>) q, from, fromDef, r);\n \t\t\t}\n \t\t}\n \t}",
"public void newCriteria(){\r\n this.criteria = EasyCriteriaFactory.createQueryCriteria(em, classe);\r\n }",
"@Test\n\tpublic void basic_select_with_whereAndLike() {\n\n\t\tCriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<Course> criteriaQuery = criteriaBuilder\n\t\t\t\t.createQuery(Course.class);\n\n\t\t// 2. Define roots for the table which are used/involved in query\n\t\tRoot<Course> courseRoot = criteriaQuery.from(Course.class);\n\n\t\t// 3. Define predicates\n\t\tPredicate like100Steps = criteriaBuilder.like(courseRoot.get(\"name\"),\n\t\t\t\t\"%100 steps\");\n\n\t\t// 4. Add Predicates to the criteria query\n\t\tcriteriaQuery.where(like100Steps);\n\n\t\t// 5. Build Typed Query\n\t\tTypedQuery<Course> query = em.createQuery(criteriaQuery\n\t\t\t\t.select(courseRoot));\n\n\t\tList<Course> resultList = query.getResultList();\n\n\t\tlogger.info(\"Simple Criteria Query Result ===> {}\", resultList);\n\n\t}",
"@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query with Criteria Query for where with Address 04\")\n public void testHQLQueryWithCriteriaQueryForWhereWithAddress04()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress04> addresses = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession()) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress04> criteriaQuery = criteriaBuilder.createQuery(SBAddress04.class);\n Root<SBAddress04> root = criteriaQuery.from(SBAddress04.class);\n\n criteriaQuery.select(root)\n .where(criteriaBuilder.equal(root.get(\"address04Zip\"),\"292000\"))\n .orderBy(criteriaBuilder.asc(root.get(\"address04Street\")));\n\n Query query = session.createQuery(criteriaQuery);\n\n addresses = query.list();\n\n transaction.commit();\n\n addresses.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress04Street()));\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Address : \" + addresses.size());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }",
"public List<DetallesFacturaContratoVenta> obtenerListaPorPagina(int startIndex, int pageSize, String sortField, boolean sortOrder, Map<String, String> filters)\r\n/* 32: */ {\r\n/* 33: 51 */ List<DetallesFacturaContratoVenta> listaDetallesFacturaContratoVenta = new ArrayList();\r\n/* 34: */ \r\n/* 35: 53 */ CriteriaBuilder criteriaBuilder = this.em.getCriteriaBuilder();\r\n/* 36: 54 */ CriteriaQuery<DetallesFacturaContratoVenta> criteriaQuery = criteriaBuilder.createQuery(DetallesFacturaContratoVenta.class);\r\n/* 37: 55 */ Root<DetallesFacturaContratoVenta> from = criteriaQuery.from(DetallesFacturaContratoVenta.class);\r\n/* 38: */ \r\n/* 39: 57 */ Fetch<Object, Object> contratoVenta = from.fetch(\"contratoVenta\", JoinType.LEFT);\r\n/* 40: 58 */ Fetch<Object, Object> empresa = contratoVenta.fetch(\"empresa\", JoinType.LEFT);\r\n/* 41: 59 */ Fetch<Object, Object> cliente = empresa.fetch(\"cliente\", JoinType.LEFT);\r\n/* 42: 60 */ contratoVenta.fetch(\"agenteComercial\", JoinType.LEFT);\r\n/* 43: 61 */ contratoVenta.fetch(\"subempresa\", JoinType.LEFT);\r\n/* 44: 62 */ Fetch<Object, Object> direccionEmpresa = contratoVenta.fetch(\"direccionEmpresa\", JoinType.LEFT);\r\n/* 45: 63 */ direccionEmpresa.fetch(\"ubicacion\", JoinType.LEFT);\r\n/* 46: 64 */ contratoVenta.fetch(\"canal\", JoinType.LEFT);\r\n/* 47: 65 */ contratoVenta.fetch(\"zona\", JoinType.LEFT);\r\n/* 48: 66 */ contratoVenta.fetch(\"condicionPago\", JoinType.LEFT);\r\n/* 49: */ \r\n/* 50: 68 */ List<Expression<?>> empresiones = obtenerExpresiones(filters, criteriaBuilder, from);\r\n/* 51: 69 */ criteriaQuery.where((Predicate[])empresiones.toArray(new Predicate[empresiones.size()]));\r\n/* 52: */ \r\n/* 53: 71 */ agregarOrdenamiento(sortField, sortOrder, criteriaBuilder, criteriaQuery, from);\r\n/* 54: */ \r\n/* 55: 73 */ CriteriaQuery<DetallesFacturaContratoVenta> select = criteriaQuery.select(from);\r\n/* 56: */ \r\n/* 57: 75 */ TypedQuery<DetallesFacturaContratoVenta> typedQuery = this.em.createQuery(select);\r\n/* 58: 76 */ agregarPaginacion(startIndex, pageSize, typedQuery);\r\n/* 59: */ \r\n/* 60: 78 */ listaDetallesFacturaContratoVenta = typedQuery.getResultList();\r\n/* 61: 81 */ for (DetallesFacturaContratoVenta dfcv : listaDetallesFacturaContratoVenta)\r\n/* 62: */ {\r\n/* 63: 83 */ CriteriaQuery<DetalleContratoVenta> cqDetalle = criteriaBuilder.createQuery(DetalleContratoVenta.class);\r\n/* 64: 84 */ Root<DetalleContratoVenta> fromDetalle = cqDetalle.from(DetalleContratoVenta.class);\r\n/* 65: 85 */ fromDetalle.fetch(\"producto\", JoinType.LEFT);\r\n/* 66: */ \r\n/* 67: 87 */ cqDetalle.where(criteriaBuilder.equal(fromDetalle.join(\"contratoVenta\"), dfcv.getContratoVenta()));\r\n/* 68: 88 */ CriteriaQuery<DetalleContratoVenta> selectContratoVenta = cqDetalle.select(fromDetalle);\r\n/* 69: */ \r\n/* 70: 90 */ List<DetalleContratoVenta> listaDetalleContratoVenta = this.em.createQuery(selectContratoVenta).getResultList();\r\n/* 71: 91 */ dfcv.getContratoVenta().setListaDetalleContratoVenta(listaDetalleContratoVenta);\r\n/* 72: */ }\r\n/* 73: 94 */ return listaDetallesFacturaContratoVenta;\r\n/* 74: */ }",
"public QueryBuilder buildQueryBuilder() {\n return dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(queryRestrictions)\n .debug(debug)\n .audit(isAuditQuery());\n }",
"@Test\n public void test() {\n manager.clear();\n TypedQuery<MasterEntity> query2 = manager.createQuery(\"select m from MasterEntity m join fetch m.ref\", MasterEntity.class);\n logger.debug(query2.getResultList().toString());\n// manager.clear();\n// CriteriaBuilder cb = manager.getCriteriaBuilder();\n// CriteriaQuery<MasterEntity> q = cb.createQuery(MasterEntity.class);\n// Root<MasterEntity> root = q.from(MasterEntity.class);\n// root.fetch(\"ref\");\n// manager.createQuery(q).getResultList();\n\n }",
"protected Criteria crearCriteria() {\n logger.debug(\"Criteria creado\");\n return getSesion().createCriteria(clasePersistente);\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n \tprivate CriteriaQueryImpl constructSelectQuery(CriteriaBuilderImpl cb, CommonTree tree) {\n \t\tfinal CriteriaQueryImpl q = new CriteriaQueryImpl(this.metamodel);\n \n \t\tthis.constructFrom(cb, q, tree.getChild(1));\n \n \t\tfinal Tree select = tree.getChild(0);\n \t\tfinal List<Selection<?>> selections = this.constructSelect(cb, q, select.getChild(select.getChildCount() - 1));\n \n \t\tif (selections.size() == 1) {\n \t\t\tq.select(selections.get(0));\n \t\t}\n \t\telse {\n \t\t\tq.multiselect(selections);\n \t\t}\n \n \t\tif (select.getChild(0).getType() == JpqlParser.DISTINCT) {\n \t\t\tq.distinct(true);\n \t\t}\n \n \t\tint i = 2;\n \t\twhile (true) {\n \t\t\tfinal Tree child = tree.getChild(i);\n \n \t\t\t// end of query\n \t\t\tif (child.getType() == JpqlParser.EOF) {\n \t\t\t\tbreak;\n \t\t\t}\n \n \t\t\t// where fragment\n \t\t\tif (child.getType() == JpqlParser.WHERE) {\n \t\t\t\tq.where(this.constructJunction(cb, q, child.getChild(0)));\n \t\t\t}\n \n \t\t\t// group by fragment\n \t\t\tif (child.getType() == JpqlParser.LGROUP_BY) {\n \t\t\t\tq.groupBy(this.constructGroupBy(cb, q, child));\n \t\t\t}\n \n \t\t\t// having fragment\n \t\t\tif (child.getType() == JpqlParser.HAVING) {\n \t\t\t\tq.having(this.constructJunction(cb, q, child.getChild(0)));\n \t\t\t}\n \n \t\t\t// order by fragment\n \t\t\tif (child.getType() == JpqlParser.LORDER) {\n \t\t\t\tthis.constructOrder(cb, q, child);\n \t\t\t}\n \n \t\t\ti++;\n \t\t\tcontinue;\n \t\t}\n \n \t\treturn q;\n \t}",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query with Criteria Query with Address 04\")\n public void testHQLQueryWithCriteriaQueryWithAddress04()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress04> addresses = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession()) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress04> criteriaQuery = criteriaBuilder.createQuery(SBAddress04.class);\n Root<SBAddress04> root = criteriaQuery.from(SBAddress04.class);\n criteriaQuery.select(root);\n\n Query query = session.createQuery(criteriaQuery);\n\n addresses = query.list();\n\n transaction.commit();\n\n addresses.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress04Zip()));\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Address : \" + addresses.size());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }",
"private CriteriaQuery<Bank> getCriteriaQuery(String name, String location) {\n Expression expr; // refers to the attributes of entity class\n Root<Bank> queryRoot; // entity/table from which the selection is performed\n CriteriaQuery<Bank> queryDefinition; // query being built\n List<Predicate> predicates = new ArrayList<>(); // list of conditions in the where clause\n\n CriteriaBuilder builder; // creates predicates\n builder = em.getCriteriaBuilder();\n\n queryDefinition = builder.createQuery(Bank.class);\n // defines the from part of the query\n queryRoot = queryDefinition.from(Bank.class);\n // defines the select part of the query\n // at this point we have a query select s from Student s (select * from student in SQL)\n queryDefinition.select(queryRoot);\n if (name != null) {\n // gets access to the field called name in the Student class\n expr = queryRoot.get(\"name\");\n predicates.add(builder.like(expr, name));\n }\n\n if (location != null) {\n // gets access to the field called name in the Student class\n expr = queryRoot.get(\"location\");\n // creates condition of the form s.average >= average\n predicates.add(builder.equal(expr, location));\n }\n // if there are any conditions defined\n if (!predicates.isEmpty()) {\n // build the where part in which we combine the conditions using AND operator\n queryDefinition.where(\n builder.or(predicates.toArray(\n new Predicate[predicates.size()])));\n }\n return queryDefinition;\n }",
"public void executeOneToManyAssociationsCriteria() {\n Session session = getSession();\n Transaction transaction = session.beginTransaction();\n\n // SELECT *\n // FROM Supplier s\n Criteria criteria = session.createCriteria(Supplier.class);\n\n // INNER JOIN Product p\n // ON s.id = p.supplier_id\n // WHERE p.price > 25;\n criteria.createCriteria(\"products\").add(Restrictions.gt(\"price\", new Double(25.0)));\n\n displaySupplierList(criteria.list());\n transaction.commit();\n }",
"protected static Criterion el4jCriteria2HibernateCriterion(Criteria criteria) {\n\t\tCriterion criterion = null;\n\t\t\n\t\tif (criteria instanceof OrCriteria) {\n\t\t\tJunction combination = Restrictions.disjunction();\n\t\t\t\n\t\t\taddCriteriaListToJunction(((OrCriteria) criteria).getCriterias(), combination);\n\t\t\tcriterion = combination;\n\t\t} else if (criteria instanceof AndCriteria) {\n\t\t\tJunction combination = Restrictions.conjunction();\n\t\t\t\n\t\t\taddCriteriaListToJunction(((AndCriteria) criteria).getCriterias(), combination);\n\t\t\tcriterion = combination;\n\t\t} else if (criteria instanceof NotCriteria) {\n\t\t\tCriteria innerCriteria = ((NotCriteria) criteria).getCriteria();\n\t\t\tcriterion = Restrictions.not(el4jCriteria2HibernateCriterion(innerCriteria));\n\t\t} else if (criteria instanceof AbstractCriteria) {\n\t\t\tAbstractCriteria abstractCrit = (AbstractCriteria) criteria;\n\t\t\t\n\t\t\tString currentCriteriaField = abstractCrit.getField();\n\t\t\tObject currentCriteriaValue = abstractCrit.getValue();\n\n\t\t\tif (criteria instanceof LikeCriteria) {\n\t\t\t\tLikeCriteria currentEl4jLikeCriteria = (LikeCriteria) criteria;\n\t\t\t\tif (currentEl4jLikeCriteria.isCaseSensitive().booleanValue()) {\n\t\t\t\t\tcriterion = Restrictions.like(currentCriteriaField,\n\t\t\t\t\t\tcurrentCriteriaValue);\n\t\t\t\t} else {\n\t\t\t\t\tcriterion = Restrictions.like(currentCriteriaField,\n\t\t\t\t\t\tcurrentCriteriaValue).ignoreCase();\n\t\t\t\t}\n\t\t\t} else if (criteria instanceof ComparisonCriteria) {\n\t\t\t\tString operator = ((ComparisonCriteria) criteria).getOperator();\n\t\t\t\tif (operator.equals(\"=\")) {\n\t\t\t\t\tcriterion = Restrictions.eq(currentCriteriaField,\n\t\t\t\t\t\t\t\t\t\tcurrentCriteriaValue);\n\t\t\t\t} else if (operator.equals(\"<\")) {\n\t\t\t\t\tcriterion = Restrictions.lt(currentCriteriaField,\n\t\t\t\t\t\tcurrentCriteriaValue);\n\t\t\t\t} else if (operator.equals(\"<=\")) {\n\t\t\t\t\tcriterion = Restrictions.le(currentCriteriaField,\n\t\t\t\t\t\tcurrentCriteriaValue);\n\t\t\t\t} else if (operator.equals(\">\")) {\n\t\t\t\t\tcriterion = Restrictions.gt(currentCriteriaField,\n\t\t\t\t\t\tcurrentCriteriaValue);\n\t\t\t\t} else if (operator.equals(\">=\")) {\n\t\t\t\t\tcriterion = Restrictions.ge(currentCriteriaField,\n\t\t\t\t\t\tcurrentCriteriaValue);\n\t\t\t\t} else if (operator.equals(\"!=\")) {\n\t\t\t\t\tcriterion = Restrictions.ne(currentCriteriaField,\n\t\t\t\t\t\tcurrentCriteriaValue);\n\t\t\t\t} else {\n\t\t\t\t\ts_logger.info(\" Operator not handled \" + operator);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\ts_logger.info(\" Criteria not handled \" + criteria);\n\t\t\t}\n\t\t} else {\n\t\t\ts_logger.info(\" Criteria not handled \" + criteria);\n\t\t}\n\t\treturn criterion;\n\t}",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }"
]
| [
"0.6382253",
"0.6355779",
"0.62788975",
"0.61796874",
"0.6136278",
"0.6011399",
"0.60029894",
"0.5835986",
"0.57988",
"0.57729673",
"0.57688344",
"0.576683",
"0.57666916",
"0.57545465",
"0.57303697",
"0.5727659",
"0.5720329",
"0.5715773",
"0.5688745",
"0.56227094",
"0.5617708",
"0.5608627",
"0.5608627",
"0.5566481",
"0.5564445",
"0.5562477",
"0.55620915",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975",
"0.5534975"
]
| 0.5652376 | 19 |
1. Use criterial builder to create criteria query returning expected result object | @Test
public void basic_select_with_whereAndLike() {
CriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();
CriteriaQuery<Course> criteriaQuery = criteriaBuilder
.createQuery(Course.class);
// 2. Define roots for the table which are used/involved in query
Root<Course> courseRoot = criteriaQuery.from(Course.class);
// 3. Define predicates
Predicate like100Steps = criteriaBuilder.like(courseRoot.get("name"),
"%100 steps");
// 4. Add Predicates to the criteria query
criteriaQuery.where(like100Steps);
// 5. Build Typed Query
TypedQuery<Course> query = em.createQuery(criteriaQuery
.select(courseRoot));
List<Course> resultList = query.getResultList();
logger.info("Simple Criteria Query Result ===> {}", resultList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Query<T, R> build() {\n // if criteria.size == 0, rootCriterion = null\n Criterion rootCriterion = null;\n if (criteria.size() == 1) {\n rootCriterion = criteria.get(0);\n } else if (criteria.size() > 1) {\n rootCriterion = Restrictions.and(criteria\n .toArray(new Criterion[criteria.size()]));\n }\n return new QueryImpl<T, R>(entityClass, returnType, rootCriterion,\n orderings, maxResults, returnFields);\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"private Criteria buildActiveCriteria(){\r\n Criteria criteria = new Criteria();\r\n criteria.addEqualTo(KRADPropertyConstants.ACTIVE, true);\r\n\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria();\n return criteria;\n }",
"protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria();\n return criteria;\n }",
"protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria(this);\n return criteria;\n }",
"protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria(this);\n return criteria;\n }",
"protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria(this);\n return criteria;\n }",
"protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria(this);\n return criteria;\n }",
"protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria(this);\n return criteria;\n }",
"@Override\n public Criteria getCriteria() {\n //region your codes 2\n Criteria criteria = new Criteria();\n criteria.addAnd(SiteConfineArea.PROP_NATION,Operator.EQ,searchObject.getNation()).addAnd(SiteConfineArea.PROP_PROVINCE, Operator.EQ, searchObject.getProvince()).addAnd(SiteConfineArea.PROP_CITY,Operator.EQ,searchObject.getCity());\n if (searchObject.getStatus() != null) {\n if (searchObject.getStatus().equals(SiteConfineStatusEnum.USING.getCode())) {\n //使用中\n criteria.addAnd(SiteConfineArea.PROP_END_TIME, Operator.GT, new Date());\n } else if (searchObject.getStatus().equals(SiteConfineStatusEnum.EXPIRED.getCode())) {\n criteria.addAnd(SiteConfineArea.PROP_END_TIME, Operator.LT, new Date());\n }\n }\n criteria.addAnd(SiteConfineArea.PROP_SITE_ID,Operator.EQ,searchObject.getSiteId());\n return criteria;\n //endregion your codes 2\n }",
"protected Criteria crearCriteria() {\n logger.debug(\"Criteria creado\");\n return getSesion().createCriteria(clasePersistente);\n }",
"@Test\n\tpublic void testGeneratedCriteriaBuilder() {\n\t\tList<Long> idsList = new ArrayList<>();\n\t\tidsList.add(22L);\n\t\tidsList.add(24L);\n\t\tidsList.add(26L);\n\n\t\tList<Long> idsExcludeList = new ArrayList<>();\n\t\tidsExcludeList.add(17L);\n\t\tidsExcludeList.add(18L);\n\n\t\tClientFormMetadataExample.Criteria criteria = new ClientFormMetadataExample.Criteria()\n\t\t\t\t.andIdEqualTo(1L)\n\t\t\t\t.andIdEqualTo(2L)\n\t\t\t\t.andIdEqualTo(4L)\n\t\t\t\t.andIdNotEqualTo(3L)\n\t\t\t\t.andIdGreaterThan(8L)\n\t\t\t\t.andIdLessThan(11L)\n\t\t\t\t.andIdGreaterThanOrEqualTo(15L)\n\t\t\t\t.andIdLessThanOrEqualTo(20L)\n\t\t\t\t.andIdIn(idsList)\n\t\t\t\t.andIdNotIn(idsExcludeList)\n\t\t\t\t.andIdBetween(50L, 53L)\n\t\t\t\t.andCreatedAtIsNotNull();\n\n\t\tassertEquals(12, criteria.getAllCriteria().size());\n\t}",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }"
]
| [
"0.7095852",
"0.67877555",
"0.67780375",
"0.67779315",
"0.67779315",
"0.67549545",
"0.67549545",
"0.67549545",
"0.67549545",
"0.67549545",
"0.6744415",
"0.67350066",
"0.6728442",
"0.67137957",
"0.67119956",
"0.67119956",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.6691049",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544",
"0.66640544"
]
| 0.0 | -1 |
1. Use criteria builder to create criteria query returning expected results object | @Test
public void basic_courses_without_students(){
CriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();
CriteriaQuery<Course> criteriaQuery = criteriaBuilder.createQuery(Course.class);
//2. Define root tables which are involved into query
Root<Course> courseRoot = criteriaQuery.from(Course.class);
//3. Define predicate using criteria builder
Predicate isEmptyStudentPredicate = criteriaBuilder.isEmpty(courseRoot.get("students"));
//4. Add predictes to the criteria query
criteriaQuery.where(isEmptyStudentPredicate);
//5. Defined Typed Query
TypedQuery<Course> query = em.createQuery(criteriaQuery.select(courseRoot));
List<Course> resultList = query.getResultList();
logger.info("isEMPTY STUDENT COURSES ==> {}", resultList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Query<T, R> build() {\n // if criteria.size == 0, rootCriterion = null\n Criterion rootCriterion = null;\n if (criteria.size() == 1) {\n rootCriterion = criteria.get(0);\n } else if (criteria.size() > 1) {\n rootCriterion = Restrictions.and(criteria\n .toArray(new Criterion[criteria.size()]));\n }\n return new QueryImpl<T, R>(entityClass, returnType, rootCriterion,\n orderings, maxResults, returnFields);\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria();\n return criteria;\n }",
"protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria();\n return criteria;\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }"
]
| [
"0.6787497",
"0.67102766",
"0.66763526",
"0.66763526",
"0.6668571",
"0.6651006",
"0.6651006",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6609135",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721",
"0.6604721"
]
| 0.0 | -1 |
Use Criteria Builder to create criteria query returning expected result object | @Test
public void join(){
CriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();
CriteriaQuery<Course> criteriaQuery = criteriaBuilder.createQuery(Course.class);
// Define roots
Root<Course> courseRoot = criteriaQuery.from(Course.class);
// Define Predicate
Join<Object, Object> join = courseRoot.join("students");
// Add Predicate
//5. Defined Typed Query
TypedQuery<Course> query = em.createQuery(criteriaQuery.select(courseRoot));
List<Course> resultList = query.getResultList();
logger.info("JOINED COURSES ==> {}", resultList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Query<T, R> build() {\n // if criteria.size == 0, rootCriterion = null\n Criterion rootCriterion = null;\n if (criteria.size() == 1) {\n rootCriterion = criteria.get(0);\n } else if (criteria.size() > 1) {\n rootCriterion = Restrictions.and(criteria\n .toArray(new Criterion[criteria.size()]));\n }\n return new QueryImpl<T, R>(entityClass, returnType, rootCriterion,\n orderings, maxResults, returnFields);\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }"
]
| [
"0.6826932",
"0.6581682",
"0.65788484",
"0.65788484",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578",
"0.6532578"
]
| 0.0 | -1 |
Use QueryBuilder to create criteria query returning expected result object | @Test
public void leftJoin(){
CriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();
CriteriaQuery<Course> criteriaQuery = criteriaBuilder.createQuery(Course.class);
//Define Roots
Root<Course> courseRoot = criteriaQuery.from(Course.class);
//Define Predicates
Join<Object, Object> leftJoin = courseRoot.join("students",JoinType.LEFT);
//Add predicates
//Define TypedQuery
TypedQuery<Course> query = em.createQuery(criteriaQuery.select(courseRoot));
List<Course> resultList = query.getResultList();
logger.info("LEFT JOINED COURSES ==> {}", resultList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Query<T, R> build() {\n // if criteria.size == 0, rootCriterion = null\n Criterion rootCriterion = null;\n if (criteria.size() == 1) {\n rootCriterion = criteria.get(0);\n } else if (criteria.size() > 1) {\n rootCriterion = Restrictions.and(criteria\n .toArray(new Criterion[criteria.size()]));\n }\n return new QueryImpl<T, R>(entityClass, returnType, rootCriterion,\n orderings, maxResults, returnFields);\n }",
"SelectQuery createSelectQuery();",
"@Override\n\tpublic TypedQuery<Plan> constructQuery(Map<String, String> customQuery) {\n\t\tCriteriaBuilder cb = null;\n\t\ttry {\n\t\t\tcb = em.getCriteriaBuilder();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tCriteriaQuery<Plan> cq = cb.createQuery(Plan.class);\n\t\tRoot<Plan> plan = cq.from(Plan.class);\n\t\tPredicate existingpredicate = null;\n\t\tint predicateCount=0;\n\t\tPredicate masterPredicate=null;\n\n\t\ttry {\n\n\t\t\tfor (Map.Entry<String,String> entry : customQuery.entrySet()) \n\t\t\t{\n\t\t\t\tif(plan.get(entry.getKey().toString()) != null)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t//Query for range values with comma(,) as delimiter\n\t\t\t\t\tif(entry.getValue().contains(\",\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tint minRange=Integer.parseInt(customQuery.get(entry.getKey().toString()).split(\",\")[0]);\n\t\t\t\t\t\tint maxRange=Integer.parseInt(customQuery.get(entry.getKey().toString()).split(\",\")[1]);\n\t\t\t\t\t\tif(predicateCount==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmasterPredicate = cb.between(plan.get(entry.getKey().toString()),minRange, maxRange );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texistingpredicate = cb.between(plan.get(entry.getKey().toString()),minRange, maxRange );\n\t\t\t\t\t\t\tmasterPredicate=cb.and(masterPredicate,existingpredicate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpredicateCount++;\n\t\t\t\t\t}\n\t\t\t\t\t//Query for equals values\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(predicateCount==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmasterPredicate = cb.equal(plan.get(entry.getKey().toString()), customQuery.get(entry.getKey().toString()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texistingpredicate = cb.equal(plan.get(entry.getKey().toString()), customQuery.get(entry.getKey().toString()));\n\t\t\t\t\t\t\tmasterPredicate=cb.and(masterPredicate,existingpredicate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpredicateCount++;\n\t\t\t\t\t\t//cq.where(predicate);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcq.where(masterPredicate);\n\t\tTypedQuery<Plan> query = em.createQuery(cq);\n\t\treturn query;\n\t}",
"protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}",
"GroupQuery createQuery();",
"public Query createQuery() {\n\n String queryString = getQueryString();\n\n if (debug == true) {\n logger.info( \"Query String: {0}\", queryString);\n logger.info( \"Parameters: Max Results: {0}, First result: {1}, Order By: {2}, Restrictions: {3}, Joins: {4}\", new Object[]{maxResults, firstResult, orderBy, normalizedRestrictions, joins});\n }\n\n Query query = entityManager.createQuery(queryString);\n\n List<QueryParameter> parameters = getQueryParameters();\n for (QueryParameter parameter : parameters) {\n //dates (Date and Calendar)\n if (parameter.getTemporalType() != null && (parameter.getValue() instanceof Date || parameter.getValue() instanceof Calendar)) {\n if (parameter.getValue() instanceof Date) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Date) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Date) parameter.getValue(), parameter.getTemporalType());\n }\n }\n } else if (parameter.getValue() instanceof Calendar) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n }\n }\n }\n } else {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), parameter.getValue());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), parameter.getValue());\n }\n }\n }\n }\n\n if (maxResults != null) {\n query.setMaxResults(maxResults);\n }\n if (firstResult != null) {\n query.setFirstResult(firstResult);\n }\n return query;\n }",
"@Override\n\tpublic <T> TypedQuery<T> createQuery(CriteriaQuery<T> criteriaQuery) {\n\t\treturn null;\n\t}",
"static DbQuery createValueQuery() {\n DbQuery query = new DbQuery();\n query.order = OrderBy.VALUE;\n return query;\n }",
"@Test\n\tpublic void basic_select() {\n\n\t\t// 1). Use criteria builder to create criteria query returning expected\n\t\t// result object\n\n\t\tCriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<Course> criteriaQuery = criteriaBuilder\n\t\t\t\t.createQuery(Course.class);\n\n\t\t// 2). Define roots for the tables which are involved in query\n\t\tRoot<Course> root = criteriaQuery.from(Course.class);\n\n\t\t// 3. Define Predicates etc using criteria query\n\t\t// 4. Add predicates etc to the criteria query\n\n\t\t// Build Typerd Query\n\t\tTypedQuery<Course> query = em.createQuery(criteriaQuery.select(root));\n\n\t\tList<Course> resultList = query.getResultList();\n\n\t\tlogger.info(\"Simple Criteria Query Result ===> {}\", resultList);\n\n\t}",
"public List<RecordDTO> selectAllRecord(Criteria criteria);",
"List<T> findByCriteria(Criteria criteria) ;",
"List<BusinessTransaction> query(String tenantId, BusinessTransactionCriteria criteria);",
"List<Basicinfo> selectByExample(BasicinfoCriteria example);",
"public interface JPQLQueryCriteria{\n\t\n}",
"private CriteriaQuery<Bank> getCriteriaQuery(String name, String location) {\n Expression expr; // refers to the attributes of entity class\n Root<Bank> queryRoot; // entity/table from which the selection is performed\n CriteriaQuery<Bank> queryDefinition; // query being built\n List<Predicate> predicates = new ArrayList<>(); // list of conditions in the where clause\n\n CriteriaBuilder builder; // creates predicates\n builder = em.getCriteriaBuilder();\n\n queryDefinition = builder.createQuery(Bank.class);\n // defines the from part of the query\n queryRoot = queryDefinition.from(Bank.class);\n // defines the select part of the query\n // at this point we have a query select s from Student s (select * from student in SQL)\n queryDefinition.select(queryRoot);\n if (name != null) {\n // gets access to the field called name in the Student class\n expr = queryRoot.get(\"name\");\n predicates.add(builder.like(expr, name));\n }\n\n if (location != null) {\n // gets access to the field called name in the Student class\n expr = queryRoot.get(\"location\");\n // creates condition of the form s.average >= average\n predicates.add(builder.equal(expr, location));\n }\n // if there are any conditions defined\n if (!predicates.isEmpty()) {\n // build the where part in which we combine the conditions using AND operator\n queryDefinition.where(\n builder.or(predicates.toArray(\n new Predicate[predicates.size()])));\n }\n return queryDefinition;\n }",
"Query query();",
"public QueryBuilder buildQueryBuilder() {\n return dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(queryRestrictions)\n .debug(debug)\n .audit(isAuditQuery());\n }",
"List<MVoucherDTO> selectByExample(MVoucherDTOCriteria example);",
"@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query with Criteria Query for where with Address 04\")\n public void testHQLQueryWithCriteriaQueryForWhereWithAddress04()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress04> addresses = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession()) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress04> criteriaQuery = criteriaBuilder.createQuery(SBAddress04.class);\n Root<SBAddress04> root = criteriaQuery.from(SBAddress04.class);\n\n criteriaQuery.select(root)\n .where(criteriaBuilder.equal(root.get(\"address04Zip\"),\"292000\"))\n .orderBy(criteriaBuilder.asc(root.get(\"address04Street\")));\n\n Query query = session.createQuery(criteriaQuery);\n\n addresses = query.list();\n\n transaction.commit();\n\n addresses.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress04Street()));\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Address : \" + addresses.size());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }",
"List<CriterionDocumentMasterDTO> findAll();",
"SelectQueryBuilder selectAll();",
"public abstract Query<T> buildFilter(Query<T> builder, T exampleObj);",
"@Override\n\tpublic List<Item> findItemListByQuery() {\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\n\t//\tCriteriaQuery<Item> query = cb.createQuery(Item.class); \n // Root<Item> item = query.from(Item.class);\n TypedQuery<Item> iquery=entityManager.createQuery(\"select i from Item i\", Item.class);\n\t\treturn iquery.getResultList();\n\t\t\n\t}",
"@Test\n\tpublic void basic_select_with_whereAndLike() {\n\n\t\tCriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<Course> criteriaQuery = criteriaBuilder\n\t\t\t\t.createQuery(Course.class);\n\n\t\t// 2. Define roots for the table which are used/involved in query\n\t\tRoot<Course> courseRoot = criteriaQuery.from(Course.class);\n\n\t\t// 3. Define predicates\n\t\tPredicate like100Steps = criteriaBuilder.like(courseRoot.get(\"name\"),\n\t\t\t\t\"%100 steps\");\n\n\t\t// 4. Add Predicates to the criteria query\n\t\tcriteriaQuery.where(like100Steps);\n\n\t\t// 5. Build Typed Query\n\t\tTypedQuery<Course> query = em.createQuery(criteriaQuery\n\t\t\t\t.select(courseRoot));\n\n\t\tList<Course> resultList = query.getResultList();\n\n\t\tlogger.info(\"Simple Criteria Query Result ===> {}\", resultList);\n\n\t}",
"@Override\n\tpublic Query createQuery(CriteriaUpdate updateQuery) {\n\t\treturn null;\n\t}",
"@Test\n @Category({ NoDatanucleus.class })\n public void buildingQueryWithEntityThatUsesRawTypesWorks() {\n CriteriaBuilder<RawTypeEntity> criteria = cbf.create(em, RawTypeEntity.class, \"d\");\n criteria.select(\"d.list.id\");\n criteria.select(\"d.set.id\");\n criteria.select(\"d.map.id\");\n criteria.select(\"KEY(d.map2).id\");\n criteria.getQueryString();\n // Can't actually run this because the schema we used might not exist, but at least we know that building the model and query worked\n// criteria.getResultList();\n }",
"@Test\n\tpublic void testGeneratedCriteriaBuilder() {\n\t\tList<Long> idsList = new ArrayList<>();\n\t\tidsList.add(22L);\n\t\tidsList.add(24L);\n\t\tidsList.add(26L);\n\n\t\tList<Long> idsExcludeList = new ArrayList<>();\n\t\tidsExcludeList.add(17L);\n\t\tidsExcludeList.add(18L);\n\n\t\tClientFormMetadataExample.Criteria criteria = new ClientFormMetadataExample.Criteria()\n\t\t\t\t.andIdEqualTo(1L)\n\t\t\t\t.andIdEqualTo(2L)\n\t\t\t\t.andIdEqualTo(4L)\n\t\t\t\t.andIdNotEqualTo(3L)\n\t\t\t\t.andIdGreaterThan(8L)\n\t\t\t\t.andIdLessThan(11L)\n\t\t\t\t.andIdGreaterThanOrEqualTo(15L)\n\t\t\t\t.andIdLessThanOrEqualTo(20L)\n\t\t\t\t.andIdIn(idsList)\n\t\t\t\t.andIdNotIn(idsExcludeList)\n\t\t\t\t.andIdBetween(50L, 53L)\n\t\t\t\t.andCreatedAtIsNotNull();\n\n\t\tassertEquals(12, criteria.getAllCriteria().size());\n\t}",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"@Test\n public void createSqlQueryWithWhereAndGroupBySucceed()\n {\n // arrange\n // act\n QuerySpecification querySpecification = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).where(\"validWhere\").groupBy(\"validGroupBy\").createSqlQuery();\n\n // assert\n Helpers.assertJson(querySpecification.toJson(), \"{\\\"query\\\":\\\"select * from enrollments where validWhere group by validGroupBy\\\"}\");\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public List<?> queryByCriteria(final DatabaseQuery query)\n throws DataAccessLayerException {\n List<?> queryResult = null;\n try {\n // Get a session and create a new criteria instance\n queryResult = txTemplate\n .execute(new TransactionCallback<List<?>>() {\n @Override\n public List<?> doInTransaction(TransactionStatus status) {\n String queryString = query.createHQLQuery();\n Query hibQuery = getSession(false).createQuery(\n queryString);\n try {\n query.populateHQLQuery(hibQuery,\n getSessionFactory());\n } catch (DataAccessLayerException e) {\n throw new org.hibernate.TransactionException(\n \"Error populating query\", e);\n }\n // hibQuery.setCacheMode(CacheMode.NORMAL);\n // hibQuery.setCacheRegion(QUERY_CACHE_REGION);\n if (query.getMaxResults() != null) {\n hibQuery.setMaxResults(query.getMaxResults());\n }\n List<?> results = hibQuery.list();\n return results;\n }\n });\n\n } catch (TransactionException e) {\n throw new DataAccessLayerException(\"Transaction failed\", e);\n }\n return queryResult;\n }",
"protected Criteria crearCriteria() {\n logger.debug(\"Criteria creado\");\n return getSesion().createCriteria(clasePersistente);\n }",
"@Test\n public void testGetAdvancedSearch() {\n System.out.println(\"getAdvancedSearch\");\n query = mock(Query.class);\n String cQuery = \"Componente.dummyQuery\";\n List<Componente> expected = new ArrayList<>();\n when(this.em.createNamedQuery(cQuery)).thenReturn(query);\n when(cDao.getAdvancedSearch(anyString(), (List<String>) any(), (List<String>) any(), (List<String>) any(), (Date) any(), (Date) any(), anyInt())).thenReturn(expected);\n List<Componente> result = cDao.getAdvancedSearch(anyString(), (List<String>) any(), (List<String>) any(), (List<String>) any(), (Date) any(), (Date) any(), anyInt());\n assertThat(result, is(expected));\n }",
"protected Criteria createEntityCriteria() {\n return getSession().createCriteria(persistentClass);\n }",
"public void newCriteria(){\r\n this.criteria = EasyCriteriaFactory.createQueryCriteria(em, classe);\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\r\n Criteria criteria = createCriteriaInternal();\r\n if (oredCriteria.size() == 0) {\r\n oredCriteria.add(criteria);\r\n }\r\n return criteria;\r\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }",
"public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }"
]
| [
"0.68673176",
"0.68566483",
"0.6585626",
"0.65157634",
"0.6425333",
"0.63647866",
"0.6342041",
"0.6299162",
"0.6297578",
"0.62157595",
"0.61534286",
"0.6150786",
"0.6136717",
"0.6114897",
"0.6091212",
"0.60863894",
"0.6059629",
"0.6051689",
"0.6047948",
"0.60375535",
"0.60277885",
"0.60196817",
"0.5992062",
"0.5988503",
"0.59848803",
"0.59458464",
"0.5945786",
"0.5943632",
"0.59285927",
"0.5917738",
"0.5917738",
"0.5914264",
"0.59137374",
"0.58970165",
"0.58959466",
"0.5894805",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.58942455",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178",
"0.5893178"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onTestStart(ITestResult result) {
test = extent.createTest(result.getMethod().getMethodName());
//part of fixing parallel run, sending a object to the pool:
extentTest.set(test);
} | {
"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 onTestSuccess(ITestResult result) {
extentTest.get().pass("I successfully Pass: " + result.getName());
} | {
"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 screenshot code if failed response if API is failed extent report | @Override
public void onTestFailure(ITestResult result) {
extentTest.get().fail(result.getThrowable());
WebDriver driver = null;
//getting driver, you only replace word driver with other variable if you need get other and make sure that variable is public.. get(result.getInstance() reprensents the @test methods as instance
try {
driver = (WebDriver)result.getTestClass().getRealClass().getDeclaredField("driver").get(result.getInstance());
} catch (Exception e) {
//replace all catches with Exception e
// TODO Auto-generated catch block
e.printStackTrace();
}
//getting and sending test name:
try {
//extent report and taking a screenshot:
extentTest.get().addScreenCaptureFromPath(getScreenShotPath(result.getMethod().getMethodName(), driver),result.getMethod().getMethodName());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@BeforeSuite\r\n\t public void setExtent() \r\n\t {\n\t htmlReporter = new ExtentHtmlReporter(System.getProperty(\"user.dir\") + \"/test-output/myReport.html\");\r\n\r\n\t htmlReporter.config().setDocumentTitle(\"Automation Report\");\t // Tile of report\r\n\t htmlReporter.config().setReportName(\"REIMBURSIFY ANDROID\"); // Name of the report\r\n\t htmlReporter.config().setReportName(\"Regression Testing\"); // Name of the report\r\n\r\n\t htmlReporter.config().setTheme(Theme.STANDARD);\r\n\t \r\n\t extent = new ExtentReports();\r\n\t extent.attachReporter(htmlReporter);\r\n\t \r\n\t // Passing General information\r\n\t extent.setSystemInfo(\"Host name\", \"Reim Demo Runner\");\r\n\t extent.setSystemInfo(\"Environemnt\", \"QA\");\r\n\t// extent.setSystemInfo(\"User\", \"Sharmila\");\r\n\t extent.setSystemInfo(\"iOS\", \"13.6\");\r\n\t extent.setSystemInfo(\"Application Version\", \"QA Version 3.3.15\");\r\n\t extent.setSystemInfo(\"Type of Testing\", \"E2E Test\");\r\n\t }",
"@Override\n\tpublic void getSpendPointsResponseFailed(String arg0) {\n\t\t\n\t}",
"@GET\n @Path(\"{path : .+}\")\n @Produces(value = MediaType.APPLICATION_JSON)\n// @ApiOperation(value = \"Retrieve a image by id\",\n// produces = MediaType.APPLICATION_JSON)\n// @ApiResponses({\n// @ApiResponse(code = HttpStatus.NOT_FOUND_404,\n// message = \"The requested image could not be found\"),\n// @ApiResponse(code = HttpStatus.BAD_REQUEST_400,\n// message = \"The request is not valid. The response body will contain a code and \" +\n// \"details specifying the source of the error.\"),\n// @ApiResponse(code = HttpStatus.UNAUTHORIZED_401,\n// message = \"User is unauthorized to perform the desired operation\")\n// })\n\n public Response getMethod(\n @ApiParam(name = \"id\", value = \"id of page to retrieve image content\", required = true)\n @PathParam(\"path\") String getpath, @Context HttpServletRequest httpRequest, @Context UriInfo uriInfo) {\n String contentType = \"application/json\";\n String method = \"getMethod\";\n String httpMethodType = \"GET\";\n String resolvedResponseBodyFile = null;\n Response.ResponseBuilder myresponseFinalBuilderObject = null;\n\n try {\n\n\n\n String paramPathStg = getpath.replace(\"/\", \".\");\n\n //Step 1: Get responseGuidanceObject\n //TODO: handle JsonTransformationException exception.\n LocationGuidanceDTO responseGuidanceObject = resolveResponsePaths(httpMethodType, paramPathStg);\n\n //Step 2: Create queryparams hash and headers hash.\n Map<String, String> queryParamsMap = grabRestParams(uriInfo);\n Map<String, String> headerMap = getHeaderMap(httpRequest);\n\n\n //Step 3: TODO: Resolve header and params variables from Guidance JSON Body.\n resolvedResponseBodyFile = findExtractAndReplaceSubStg(responseGuidanceObject.getResponseBodyFile(), HEADER_REGEX, headerMap);\n resolvedResponseBodyFile = findExtractAndReplaceSubStg(resolvedResponseBodyFile, PARAMS_REGEX, headerMap);\n\n //Step 4: TODO: Validate responseBody, responseHeader, responseCode files existence and have rightJson structures.\n\n //Step 6: TODO: Grab responses body\n\n String responseJson = replaceHeadersAndParamsInJson(headerMap, queryParamsMap, resolvedResponseBodyFile);\n\n //Step 5: TODO: Decorate with response header\n String headerStg = \"{\\\"ContentType\\\": \\\"$contentType\\\"}\";\n\n //Step 7: TODO: Grab response code and related responsebuilderobject\n Response.ResponseBuilder myRespBuilder = returnRespBuilderObject(responseGuidanceObject.getResponseCode(), null).entity(responseJson);\n\n //Step 5: TODO: Decorate with response headers\n myresponseFinalBuilderObject = decorateWithResponseHeaders(myRespBuilder, responseGuidanceObject.getResponseHeaderFile());\n\n return myresponseFinalBuilderObject.build();\n } catch (IOException ex) {\n logger.error(\"api={}\", \"getContents\", ex);\n mapAndThrow(ex);\n }\n return myresponseFinalBuilderObject.build();\n }",
"@Test\n\t\tpublic void testRestErrorResponse() throws Exception {\n\n\t\t\tString responseBody = TestUtils.getErrorResultString();\n\t\ttry {\n\t\t\t\t\n\t\t\t\tResponseEntity<ResponseWrapper> responseEntity= prepareReponseEntity(responseBody);\n\t\t\t\t\n\t\t\t\tboolean flag=weatherService.checkForErrors(responseEntity);\n\t\t\t\tassertTrue(flag);\n\t\t\t\tthis.mockServer.verify();\n\t\t\t} catch (Exception e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"@Test(priority = 6)\n\tpublic void internalServerError() throws JsonProcessingException {\n\n\t\t\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/Sovdata.xlsx\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tAssert.assertEquals(resp.getStatusCode(),500);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 500 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\tresp.then().body(\"message\",equalTo(\"Oops some error occured, please try again.\"));\n\t\ttest.log(LogStatus.FAIL, \"Oops some error occured, please try again.\");\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\n\t}",
"@Override\n public void onFailure(Call<statusNearby> call, Throwable t) {\n Log.d(\"Status : \",\"Failed Fetch API 2\");\n }",
"public static void logExtentReport(String s1){\n\t\t test.get().log(Status.INFO, s1);\n\t}",
"@Override\n\tpublic void getAwardPointsResponseFailed(String arg0) {\n\t\t\n\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }",
"public String provideAlwasDefResponse()\n {\n return (\"d\") ;\n }",
"void setResponseFormatError(){\n responseFormatError = true;\n }",
"@Override\r\npublic void onTestFailure(ITestResult arg0) {\n\tExtentReports er = new ExtentReports(\"./Report/Report.html\");\r\n\tExtentTest t1 = er.startTest(\"TC001\");\r\n\tt1.log(LogStatus.PASS, \"Passed\");\r\n\tSystem.out.println(\"vballe\");\r\n\ter.endTest(t1);\r\n\ter.flush();\r\n\ter.close();\r\n}",
"@Test\n\t\tpublic void testRestSuccessfulResponse() throws Exception {\n\n\t\t\tString responseBody = TestUtils.getValidResponse();\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tResponseEntity<ResponseWrapper> responseEntity= prepareReponseEntity(responseBody);\n\t\t\t\t\n\t\t\t\tboolean flag=weatherService.checkForErrors(responseEntity);\n\t\t\t\tassertFalse(flag);\n\t\t\t\n\t\t\t\tthis.mockServer.verify();\n\t\t\t} catch (Exception e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"@BeforeSuite(alwaysRun=true,description=\"test\")\r\n\tpublic void extentReportSetup() \r\n\t{\r\n\t\tSystem.out.println(\"===== I am Befor Test Method==== \");\r\n\t\t\r\n\t\thtmlReporter = new ExtentHtmlReporter(reporterPath);\r\n\t\thtmlReporter.config().setDocumentTitle(\"Free Job Portal\");\r\n\t\thtmlReporter.config().setReportName(\"ExtentReporter\");\r\n\t\thtmlReporter.config().setTheme(Theme.STANDARD);\r\n\t\t\r\n\t\treporter = new ExtentReports();\r\n\t\treporter.attachReporter(htmlReporter);\r\n\t\t\r\n\t\treporter.setSystemInfo(\"Host\",\"localhost\");\r\n\t\treporter.setSystemInfo(\"OS\",System.getProperty(\"OS\"));\r\n\t\treporter.setSystemInfo(\"User\",\"Sekhar\");\r\n\t}",
"@Override\r\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n\r\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n e.printStackTrace();\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n e.printStackTrace();\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }",
"@Override\n public Response toResponse(InternalException ex) {\n ExternalException externalException = new ExternalException(\n ex.getErrorCode(),\n ex.getErrorDescription());\n\n Response.ResponseBuilder builder = Response\n .status(ex.getHttpStatusCode())\n .entity(externalException)\n .type(MediaType.APPLICATION_JSON);\n\n return builder.build();\n }",
"@AfterClass\n\t/* Executa a leitura das configuracoes do extends report */\n\tpublic static void writeExtentReport() {\n\t\tReporter.loadXMLConfig(new File(\"src/test/resources/configs/extension-config.xml\"));\n\t\t\n\t\t/* Informa qual o sistema foi utilizado para efetuar os testes */\n\t\tReporter.setSystemInfo(\"OS\", \"Windows10\");\n\t\t\n\t\t/* Informa o nome do analista no relatorio */\n\t\tReporter.setSystemInfo(\"Tester Name\", \"Wilker\");\n\t\t\n\t}",
"@Test(priority = 1, dataProvider = \"verifytxTestData\")\r\n\tpublic void testResponseCode(HashMap<String, String> hm) {\r\n\r\n\t\t// Checking execution flag\r\n\t\tif (hm.get(\"ExecuteFlag\").trim().equalsIgnoreCase(\"No\"))\r\n\t\t\tthrow new SkipException(\"Skipping the test ---->> As per excel entry\");\r\n\t\t\r\n\t\t\tappURL = globalConfig.getString(\"VERIFYTX_API_CONFIG\");\r\n\r\n\r\n\t\t System.out.println(\"URL:\"+ appURL);\r\n\t\t\t\r\n\r\n\t\tHashMap<String, String> headerParameters = new HashMap<String, String>();\r\n\t\t\r\n\t\t\t\r\n\t\t\theaderParameters.put(\"txid\", hm.get(\"I_txid\"));\t\t\r\n\t\t\t\r\n\t\t\theaderParameters.put(\"txbytes\", hm.get(\"I_txbytes\"));\r\n\t\r\n\t\t\r\n\r\n\t\tint responseCode = 0;\r\n\t\tlogger.debug(\"requestURL is getting sent as {}\", appURL.toString());\r\n\r\n\t\ttry {\r\n\t\t\tresponseCode = HTTPUtil.sendGet(appURL, headerParameters);\r\n\r\n\t\t\tSystem.out.println(\"Response Code:\" +responseCode);\r\n\r\n\t\t\tif ((responseCode == 200) || (responseCode == 404)) {\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tString filePathOfJsonResponse = HelperUtil.createOutputDir(this.getClass().getSimpleName())\r\n\t\t\t\t\t\t\t+ File.separator + this.getClass().getSimpleName() + hm.get(\"SerialNo\") + \".json\";\r\n\r\n\t\t\t\t\tHTTPUtil.writeResponseToFile(filePathOfJsonResponse);\r\n\r\n\t\t\t\t} catch (UnsupportedOperationException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception :\" + e.getMessage());\r\n\t\t\t\t\tAssertJUnit.fail(\"Caught Exception ...\");\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\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception :\" + e.getMessage());\r\n\t\t\tAssertJUnit.fail(\"Caught Exception ...\" + e.getMessage());\r\n\t\t}\r\n\r\n\t\tlogger.debug(\"The response code is {}\", Integer.valueOf(responseCode).toString());\r\n\t\tPreconditions.checkArgument(!hm.get(\"httpstatus\").equals(null), \"String httpstatus in excel must not be null\");\r\n\r\n\t\t// Verify response code\r\n\t\tif (responseCode==200) {\r\n\t\t\treporter.writeLog(\"PASS\", \"Status should be \" + hm.get(\"httpstatus\"), \"Status is \" + responseCode);\r\n\t\t\tAssertJUnit.assertEquals(responseCode, 200);\r\n\t\t} else {\r\n\t\t\treporter.writeLog(\"FAIL\", \"Status should be \" + hm.get(\"httpstatus\"), \"Status is \" + responseCode);\r\n\t\t\tAssertJUnit.assertEquals(responseCode, Integer.parseInt(hm.get(\"httpstatus\")));\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"-------------------------------------------\");\r\n\t}",
"@ExceptionHandler({NotifcenterException.class})\n public ResponseEntity<JsonElement> errorHandler(NotifcenterException ex) {\n\n HttpHeaders header = new HttpHeaders();\n\n if (ex.getMoreDetails() != null) {\n return new ResponseEntity<>(ex.getErrorsAndWarnings().toJsonWithDetails(ex.getMoreDetails()), header, ex.getErrorsAndWarnings().getHttpStatus());\n }\n else {\n return new ResponseEntity<>(ex.getErrorsAndWarnings().toJson(), header, ex.getErrorsAndWarnings().getHttpStatus());\n }\n }",
"@Override\n public void onApiFailure(Throwable mThrowable) {\n\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }",
"@Override\n\t\t\t\tpublic void onBizFailure(String responseDescription, JSONObject data, String responseCode) {\n\t\n\t\t\t\t\tscrollView.onRefreshComplete();\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"public final void mo61680a(Exception exc) {\n if (this.f94801aw != null) {\n this.f94801aw.mo91617g();\n }\n if ((exc instanceof ApiServerException) && ((ApiServerException) exc).getErrorCode() == 20022) {\n C6906g.m21511a(getActivity(), \"profile_image_setting\", \"review_failure\");\n }\n C22814a.m75245a(getActivity(), exc, R.string.d0);\n }",
"@Test\n public void kullanici_login_test(){\n extentTest=extentReports.createTest(\"TC_1001_Kullanici login edebilme\",\"Kullanici login yapip profiline gelebilmeli\");\n US_010_page us_010_page=new US_010_page();\n Driver.getDriver().get(ConfigReader.getProperty(\"us010_chotel_url\"));\n Assert.assertTrue(Driver.getDriver().getTitle().contains(ConfigReader.getProperty(\"us010_chotel_Title_Home_yazisi\")));\n extentTest.pass(\"title home yazisi iceriyor, Test PASSED\");\n us_010_page.homeLogin.click();\n Assert.assertTrue(Driver.getDriver().getTitle().contains(ConfigReader.getProperty(\"us010_chotel_Title_Login_yazisi\")));\n extentTest.pass(\"title login yazisi iceriyor, Test PASSED\");\n us_010_page.usernameTextBox.sendKeys(ConfigReader.getProperty(\"us010_chotel_username\"));\n Assert.assertTrue(us_010_page.usernameTextBox.isEnabled());\n extentTest.pass(\"username box aktif yazi yazilabilir, Test PASSED\");\n us_010_page.passwordTextBox.sendKeys(ConfigReader.getProperty(\"us010_chotel_password\"));\n Assert.assertTrue(us_010_page.passwordTextBox.isEnabled());\n extentTest.pass(\"password box aktif yazi yazilabilir, Test PASSED\");\n Assert.assertTrue(us_010_page.loginButonu.isEnabled());\n extentTest.pass(\"login butonu aktif, Test PASSED\");\n us_010_page.loginButonu.click();\n Assert.assertTrue(us_010_page.profileYazisi.isDisplayed());\n extentTest.pass(\"profile yazisi gorunuyor, Test PASSED\");\n\n\n\n\n }",
"public String getextentReportScreenshotsLocation(){\r\n\t\t return rb.getProperty(\"extentReportScreenshotsLocation\");\r\n\t}",
"public void onApiRequestFailed();",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable t, JSONObject resp) {\n\n Log.d(\"kartik failure \", resp.toString());\n nfy.onLoadFailure();\n\n Toast toast = Toast.makeText(context, \"Failure \" + resp.toString(), Toast.LENGTH_SHORT);\n toast.show();\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }",
"@Override\n public void onFailure(retrofit2.Call<Reason> call, Throwable t) {\n EmpowerApplication.alertdialog(t.getMessage(), Attend_Regularization.this);\n\n Log.e(\"TAG\", t.toString());\n\n }",
"@Test(priority = 2, dataProvider = \"verifytxTestData\")\r\n\tpublic void testContentJSONFileResponses(HashMap<String, String> hm) {\r\n\r\n\t\t// Checking execution flag\r\n\t\tif (hm.get(\"ExecuteFlag\").trim().equalsIgnoreCase(\"No\"))\r\n\t\t\tthrow new SkipException(\"Skipping the test ---->> As per excel entry\");\r\n\r\n\t\tPreconditions.checkArgument(hm != null, \"The hash map parameter must not be null\");\r\n\r\n\t\tString filePathOfJsonResponse = HelperUtil.createOutputDir(this.getClass().getSimpleName()) + File.separator\r\n\t\t\t\t+ this.getClass().getSimpleName() + hm.get(\"SerialNo\") + \".json\";\r\n\r\n\t\tswitch (hm.get(\"httpstatus\")) {\r\n\t\tcase \"200\":\r\n\t\t\ttry {\r\n\t\t\t\tVerifyTxBean getFieldsResponseBean = testAPIAttribute200Response(filePathOfJsonResponse);\t\t\t\t\r\n\r\n\t\t\t\tif (getFieldsResponseBean.equals(hm.get(\"Error\"))) {\r\n\t\t\t\t\treporter.writeLog(\"PASS\", \"Error \" + hm.get(\"Error\"), \"Error \"\r\n\t\t\t\t\t\t\t+ getFieldsResponseBean.getError());\r\n\t\t\t\t\tAssertJUnit.assertEquals(getFieldsResponseBean.getError(), hm.get(\"Error\"));\r\n\t\t\t\t} else {\r\n\t\t\t\t\treporter.writeLog(\"FAIL\", \"Error Should be \" + hm.get(\"Error\"), \"Error \"\r\n\t\t\t\t\t\t\t+ getFieldsResponseBean.getError());\r\n\t\t\t\t\tAssertJUnit.assertEquals(getFieldsResponseBean.getError(), hm.get(\"Error\"));\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception : Response not stored in File\");\r\n\t\t\t\tAssertJUnit.fail(\"Caught Exception : Response not stored in File ...\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception :\" + e.getMessage());\r\n\t\t\t\tAssertJUnit.fail(\"Caught Exception ...\" + e.getMessage());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tlogger.debug(\"Other than 200, 404 response --> {}\", hm.get(\"httpstatus\"));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}",
"@Override\n public void onFailure() {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Test\n\tpublic void requestDataForCustomer12212_checkResponseCode_expect200() {\n\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\tthen();\n\t}",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable t, String errorMsg, int statusCode) {\n\t\t\t}",
"@Test\r\n public void testListRegistrations1() throws Throwable {\r\n // Parameters for the API call\r\n Double limit = 10d;\r\n Double offset = 20d;\r\n Options8Enum options = null;\r\n\r\n // Set callback and perform API call\r\n List<ListRegistrationsResponse> result = null;\r\n controller.setHttpCallBack(httpResponse);\r\n try {\r\n result = controller.listRegistrations(limit, offset, options);\r\n } catch(APIException e) {};\r\n\r\n // Test whether the response is null\r\n assertNotNull(\"Response is null\", \r\n httpResponse.getResponse());\r\n // Test response code\r\n assertEquals(\"Status is not 200\", \r\n 200, httpResponse.getResponse().getStatusCode());\r\n\r\n // Test whether the captured response is as we expected\r\n assertNotNull(\"Result does not exist\", \r\n result);\r\n assertTrue(\"Response body does not match in keys\", TestHelper.isArrayOfJsonObjectsProperSubsetOf(\r\n \"[ { \\\"id\\\": \\\"abcdefg\\\", \\\"description\\\": \\\"Example Context Source\\\", \\\"dataProvided\\\": { \\\"entities\\\": [ { \\\"id\\\": \\\"Bcn_Welt\\\", \\\"type\\\": \\\"Room\\\" } ], \\\"attrs\\\": [ \\\"temperature\\\" ] }, \\\"provider\\\": { \\\"http\\\": { \\\"url\\\": \\\"http://contextsource.example.org\\\" }, \\\"supportedForwardingMode\\\": \\\"all\\\" }, \\\"expires\\\": \\\"2017-10-31T12:00:00\\\", \\\"status\\\": \\\"active\\\", \\\"forwardingInformation\\\": { \\\"timesSent\\\": 12, \\\"lastForwarding\\\": \\\"2017-10-06T16:00:00.00Z\\\", \\\"lastSuccess\\\": \\\"2017-10-06T16:00:00.00Z\\\", \\\"lastFailure\\\": \\\"2017-10-05T16:00:00.00Z\\\" } }]\", \r\n TestHelper.convertStreamToString(httpResponse.getResponse().getRawBody()), \r\n false, true, false));\r\n }",
"@Override\n public void onFailure(Call<DailyReportPojo> call, Throwable t) {\n System.out.println(\"retrofit hh failure \" + t.getMessage());\n d.dismiss();\n }",
"@Test(priority=56)\t\n\tpublic void campaign_user_with_filter_for_nonexisting_user_ext_id() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_filter_for_nonexisting_user_ext_id\", \"To validate whether user is able to get campaign and its users through campaign/user api with filter for non existing user_ext_id\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_filter_for_nonexisting_user_ext_id\");\n\t\tString user_ext_id = test_data.get(4);\n\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\tlist.add(new BasicNameValuePair(\"filter\", \"user_ext_id%3d\"+user_ext_id));\n\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with valid filter for non existing user_ext_id\");\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\tString line = \"\";\n\t\twhile ((line = rd.readLine()) != null) {\n\t\t // Convert response to JSON object\t\n\t\t JSONParser parser = new JSONParser();\n\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t String result_data = json.get(\"result\").toString();\n\t\t Assert.assertEquals(result_data, \"error\", \"API is returning success when non existing user_ext_id is entered for filter\");\n\t\t test.log(LogStatus.PASS, \"API is returning error when non existing user_ext_id is entered for filter\");\n\t\t Assert.assertEquals(json.get(\"err\").toString(), \"no records found\", \"Proper validation is not displayed when non existing user_ext_id is passed.\");\n\t\t test.log(LogStatus.PASS, \"Proper validation is displayed when non existing user_ext_id is passed.\");\n\t\t}\n\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable)\n {\n super.onFailure(statusCode, headers, responseString, throwable);\n System.out.println(\"applyBook-->onFailure\" + statusCode);\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@ApiOperation(value = \"Endpoint Summary Description goes here\",\n notes = \"Endpoint Complete Description goes here\",\n response = Response.class)\n @RequestMapping(value = \"/dosomething\", method = RequestMethod.GET, produces = \"application/json\")\n public ResponseEntity<Response> doSomething() throws Exception {\n MediaTagResponse response = imageTaggingService.tagImage(\"http://www.spain.info/export/sites/spaininfo/comun/carrusel-recursos/madrid/dp_madrid_dg_im_03.jpg_369272544.jpg\");\n //\n //\n\n // return response\n return ResponseEntity.ok(new Response(true, response.getLabel().stream().map(TagDTO::getName).collect(Collectors.joining(\",\"))));\n }",
"Response.StatusType getStatus(Exception exception);",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"private void generateTelemetryForExceptionResponse(\n ProjectCommonException exception, Request request) {\n ProjectLogger.log(exception.getMessage(), exception, generateTelemetryInfoForError());\n // Generate a telemetry event of type API_ACCESS\n generateTelemetry(\n request,\n exception.getMessage(),\n String.valueOf(exception.getResponseCode()),\n TelemetryConstant.LOG_LEVEL_ERROR,\n generateStackTrace(exception.getStackTrace()));\n }",
"@Override\n\t\t\t\t\t\t\tpublic void HttpFail(int ErrCode) {\n\n\t\t\t\t\t\t\t}",
"@Override\n\tpublic void onFinish(ITestContext context) {\n\t\textent.flush();\n\t\t\n\t}",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n\tpublic void onFailure(TAResponse response) {\n\t}",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"public String getExtentReportConfigFilePath(){\r\n\t\t return rb.getProperty(\"extentReportConfig\");\r\n\t}",
"@Override\r\n public void onFailure(Throwable t) {\n }",
"@Override\r\n public void onFailure(Throwable t) {\n }",
"public void receiveResultextensionEntidad(\r\n es.mitc.redes.urbanismoenred.serviciosweb.v1_86.UrbrWSServiceStub.ExtensionEntidadResponseE result\r\n ) {\r\n }",
"@SuppressWarnings(\"ThrowableNotThrown\") \n public static Response getSCIMInternalErrorResponse() {\n JSONEncoder encoder = new JSONEncoder();\n CharonException exception = new CharonException(\"Internal Error\");\n String responseStr = encoder.encodeSCIMException(exception);\n return Response.status(exception.getStatus()).entity(responseStr).build();\n }",
"@Override\n public void onFailure(Call<Response> call, Throwable t) {\n }",
"@Override\n\tpublic void getUpdatePointsFailed(String arg0) {\n\t\t\n\t}",
"@Override\n\n //of the api calling got failed then it will go for onFailure,inside this we have added one alertDialog\n public void onFailure(Call call, IOException e) {\n\n }",
"@Override\n public void failure(RetrofitError error) {\n }",
"@Override\n public void onFailure(Exception e) {\n int statusCode = ((ApiException) e).getStatusCode();\n switch (statusCode) {\n case LocationSettingsStatusCodes.RESOLUTION_REQUIRED:\n try {\n ResolvableApiException rae = (ResolvableApiException) e;\n Toast.makeText(MainActivity.this, \"Location Setting Incorrect\", LENGTH_SHORT).show();\n // Call startResolutionForResult to display a pop-up asking the user to enable related permission.\n rae.startResolutionForResult(MainActivity.this, 0);\n } catch (IntentSender.SendIntentException sie) {\n Toast.makeText(MainActivity.this, (CharSequence) sie, LENGTH_SHORT).show();\n }\n break;\n default:\n break;\n }\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n\t\t\t\t\tpublic void httpFail(String response) {\n\t\t\t\t\t}",
"@Test\r\n\tpublic void testGetBatchOverallBarChart() throws Exception{\r\n\t\tlog.debug(\"GetBatchOverallBarChart Test\");\r\n\t\t\r\n\t\tgiven().spec(requestSpec).header(AUTH, accessToken).contentType(ContentType.JSON)\r\n\t\t.when().get(baseUrl + \"all/reports/batch/{batchId}/overall/bar-batch-overall\", traineeValue[0])\r\n\t\t.then().assertThat().statusCode(200);\r\n\t}",
"java.util.List<WorldUps.UErr> \n getErrorList();",
"@Override\n public void onFailure(Call<GetPotentialEarn> call, Throwable t) {\n }",
"public static ExtentReports extentReportGenerator() \n\t{\n\tString path=System.getProperty(\"user.dir\")+\"\\\\reports\\\\index.html\";\n//\tExtentSparkReporter reporter=new ExtentSparkReporter(path);\n//\t\treporter.config().setEncoding(\"utf-8\");\n//\t\treporter.config().setReportName(\"Automation Test Results\");\n//\t\treporter.config().setDocumentTitle(\"Automation Reports\");\n//\t\treporter.config().setTheme(Theme.STANDARD);\n\t\t\n\t\tExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(path);\t\n\t\thtmlReporter.setAppendExisting(true);\n\t\thtmlReporter.config().setEncoding(\"utf-8\");\n\t\thtmlReporter.config().setDocumentTitle(\"Automation Reports\");\n\t\thtmlReporter.config().setReportName(\"Automation Test Results\");\n\t\thtmlReporter.config().setTheme(Theme.STANDARD);\n\t\tLocale.setDefault(Locale.ENGLISH);\n\t\t\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlReporter);\n\t\textent.setSystemInfo(\"Tester\", \"Sonu\");\n\t\t\n\t\t\n\t\t\n\t\treturn extent;\n\t}",
"@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, String responseString, Throwable throwable) {\n\n\t\t\t\t\t}",
"@Override\n\tpublic void getDisplayAdResponseFailed(String arg0) {\n\t\t\n\t}",
"@Override\n\t\t\t\t\tpublic void onErrorData(String status_description) {\n\n\t\t\t\t\t}",
"@Test\r\n\tpublic void testGetBatchOverallRadarChart() throws Exception{\r\n\t\tlog.debug(\"Validate batch's overall radar chart\");\r\n\t\tMap<String, Double> expected = new HashMap<>();\r\n\t\tgiven().\r\n\t\t\tspec(requestSpec).header(AUTH, accessToken).contentType(ContentType.JSON).\r\n\t\twhen().\r\n\t\t\tget(baseUrl + batchReports, 2150).\r\n\t\tthen().\r\n\t\t\tassertThat().statusCode(200).\r\n\t\tand().\r\n\t\t\tbody(matchesJsonSchema(new ObjectMapper().writeValueAsString(expected)));\r\n\t}",
"@Override\n public void onFailure(Throwable t) {\n }",
"protected HTTPSampleResult errorResult(Throwable e, HTTPSampleResult res) {\n res.setSampleLabel(res.getSampleLabel());\n res.setDataType(SampleResult.TEXT);\n ByteArrayOutputStream text = new ByteArrayOutputStream(200);\n e.printStackTrace(new PrintStream(text));\n res.setResponseData(text.toByteArray());\n res.setResponseCode(NON_HTTP_RESPONSE_CODE+\": \"+e.getClass().getName());\n res.setResponseMessage(NON_HTTP_RESPONSE_MESSAGE+\": \"+e.getMessage());\n res.setSuccessful(false);\n res.setMonitor(this.isMonitor());\n return res;\n }"
]
| [
"0.55681884",
"0.5507487",
"0.5497324",
"0.5487727",
"0.5473739",
"0.53858083",
"0.53805685",
"0.5356665",
"0.53525436",
"0.53525436",
"0.53357035",
"0.53329784",
"0.5330475",
"0.5312561",
"0.5304192",
"0.5303738",
"0.5296541",
"0.5296541",
"0.5285471",
"0.5272118",
"0.52616495",
"0.52281445",
"0.5219628",
"0.5219323",
"0.52054715",
"0.52007365",
"0.5200211",
"0.5200211",
"0.5199379",
"0.5194133",
"0.5194133",
"0.5180892",
"0.51796794",
"0.5176697",
"0.51668817",
"0.5157529",
"0.514486",
"0.514486",
"0.51357806",
"0.51357806",
"0.51357806",
"0.51357806",
"0.51357806",
"0.51331204",
"0.5121587",
"0.5111548",
"0.5110116",
"0.5108969",
"0.51059645",
"0.51048326",
"0.51010156",
"0.50923425",
"0.50904703",
"0.5085751",
"0.50846237",
"0.507637",
"0.5071571",
"0.5053584",
"0.5052368",
"0.5048684",
"0.5048684",
"0.5048684",
"0.5048684",
"0.5048684",
"0.5048684",
"0.5048684",
"0.5048684",
"0.5048684",
"0.5048684",
"0.5047248",
"0.5045692",
"0.50452715",
"0.5044903",
"0.5044903",
"0.50445867",
"0.5038909",
"0.5038909",
"0.5014201",
"0.5010862",
"0.5010862",
"0.5006191",
"0.49999657",
"0.49954623",
"0.4993363",
"0.49929732",
"0.49859142",
"0.49848178",
"0.49840415",
"0.49840415",
"0.49836025",
"0.49825123",
"0.49796116",
"0.49794048",
"0.4974621",
"0.49632874",
"0.4955965",
"0.49533242",
"0.4948568",
"0.49457547",
"0.4944462"
]
| 0.5471865 | 5 |
TODO Autogenerated method stub | @Override
public void onTestSkipped(ITestResult result) {
extentTest.get().skip(result.getMethod().getMethodName());
} | {
"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 onTestFailedButWithinSuccessPercentage(ITestResult result) {
} | {
"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 onTestFailedWithTimeout(ITestResult result) {
} | {
"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 onStart(ITestContext context) {
} | {
"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 notify that test is done | @Override
public void onFinish(ITestContext context) {
extent.flush();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Test\n public void temporaryTeamClosingUnavalableOption() {\n\n }",
"@Test\n void setCompleted() {\n }",
"private void test() {\n\n\t}",
"@Test\r\n public void testRentOut() {\r\n }",
"@Test\n public void reopenClosedTeamUnavalableOption() {\n\n }",
"@Test\r\n\tpublic void testOrderPerform() {\n\t}",
"@Test\n public void testNextWaiting() {\n }",
"@Override\n public void setUp() {\n }",
"@Override\n public void test() {\n \n }",
"@Test\n void isComplete() {\n }",
"protected void runAfterTest() {}",
"@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}",
"@Before\n\t public void setUp() {\n\t }",
"@Test\n\tpublic void testReadTicketOk() {\n\t}",
"@Override\n protected void tearDown() {\n }",
"@Test\n void displayCompletedTasks() {\n }",
"@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }",
"public void testReset() {\n\t}",
"@AfterTest\n\tpublic void afterTest() {\n\t}",
"@Override\r\n\tpublic void setUp() {\n\r\n\t}",
"@Test\n public void refresh() throws Exception {\n }",
"@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}",
"@Test\n void markCompleted() {\n }",
"protected void setUp()\n {\n }",
"protected void setUp()\n {\n }",
"protected void setUp() {\n\n }",
"@Before\r\n public void setUp()\r\n {\r\n }",
"@Before\r\n public void setUp()\r\n {\r\n }",
"@Before\r\n public void setUp()\r\n {\r\n }",
"@Before\r\n public void setUp()\r\n {\r\n }",
"@Test\n public void checkoutTest() {\n\n }",
"@Override\r\n protected void tearDown() {\r\n // nothing yet\r\n }",
"@Override\n public void setUp() throws Exception {}",
"@Before public void setUp() { }",
"@Test\r\n public void elCerdoNoSePuedeAtender() {\n }",
"@Test\r\n\tpublic void test() {\r\n\t}",
"@Before\n\tpublic void setUp() {\n\t}",
"@Test\n void displayIncompleteTasks() {\n }",
"@Override\n\tpublic void test() {\n\t\t\n\t}",
"@Before\r\n\tpublic void setUp() {\n\t}",
"@Before\n public void setUp () {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"public void testWriteOrders() throws Exception {\n }",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\t\n\t}",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Test\n public void updateAccept() throws Exception {\n\n }",
"public void setUp() {\n\n\t}",
"@Override\n public void runTest() {\n }",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t}",
"@Override\n public void onTestSuccess(ITestResult result) {\n\n }",
"@Test\n public void needSetACrowdTest() {\n // TODO: test needSetACrowd\n }",
"@Override\n public void tearDown() {\n }",
"@Override\n public void tearDown() {\n }",
"@Override\n public void tearDown() {\n }",
"protected void setUp() {\n\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult arg0) {\n\n\t}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}",
"@Test\n\tpublic void testDoGeneration() {\n\t}",
"@Test\n\tvoid testOnAddToOrder() {\n\t}",
"protected void setUp() throws Exception {\n \n }",
"@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}",
"@Before\n public void setUp() {\n }",
"@Test\n\tvoid test() {\n\t\t\n\t}",
"@Override\n public void tearDown(){\n }",
"@Override\n protected void tearDown() throws Exception {\n\n }",
"public void testGetTaskActorE(){\n }",
"protected void runBeforeTest() {}",
"@Before\r\n\t public void setUp(){\n\t }",
"@Test\n public void testInitialize() {\n \n \n }",
"public void setUp()\r\n {\r\n //empty on purpose\r\n }",
"@Before\n\tpublic void setUp() throws Exception {\n\t\t\n\t}",
"@Test\n public void Tester_UI_when_find_contact_not_added() throws Exception{System.out.println(\"TODO\") ;}",
"@Test\n public void accuseSuccesTest() throws Exception {\n }",
"@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}",
"protected void setUp() throws Exception {\n }",
"@Override\npublic void onTestSuccess(ITestResult result) {\n\t\n}",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\t}",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\t}"
]
| [
"0.75604147",
"0.71362704",
"0.7067375",
"0.70526403",
"0.701898",
"0.7008256",
"0.6997509",
"0.69809335",
"0.69701934",
"0.69678485",
"0.6956035",
"0.69422746",
"0.693948",
"0.69198453",
"0.69181293",
"0.6917692",
"0.6906483",
"0.68989825",
"0.6887002",
"0.6874474",
"0.68704",
"0.6868377",
"0.68637437",
"0.6859995",
"0.68596214",
"0.68596214",
"0.68531144",
"0.68526715",
"0.68526715",
"0.68526715",
"0.68526715",
"0.6843189",
"0.6842084",
"0.68358594",
"0.68243295",
"0.68071675",
"0.68039745",
"0.68038225",
"0.6802505",
"0.6798308",
"0.6797507",
"0.6791642",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67915094",
"0.67903656",
"0.67892605",
"0.67814577",
"0.67814577",
"0.67814577",
"0.67814577",
"0.67814577",
"0.67805",
"0.6780197",
"0.67768055",
"0.6775484",
"0.6772573",
"0.6759536",
"0.67586946",
"0.67586946",
"0.67586946",
"0.67552775",
"0.6755135",
"0.6748119",
"0.6748119",
"0.67447144",
"0.6741201",
"0.6736305",
"0.6733895",
"0.6715494",
"0.6709139",
"0.6702642",
"0.668792",
"0.66865295",
"0.66856295",
"0.66814",
"0.66789883",
"0.6672621",
"0.6672389",
"0.6671407",
"0.6669631",
"0.6668488",
"0.66557467",
"0.66447246",
"0.66423196",
"0.66423196"
]
| 0.0 | -1 |
TODO Autogenerated method stub Se declaran las varibles que se van a utilizar | public static void main(String[] args) {
double centigrados, fahrenheit;
byte opcion;
System.out.println(
"Elige una opción \n1-Convertir de centígrados a Fahrenheit\n2-Convertir de Fahrenheit a centígrados");
opcion = teclado.nextByte();
if (opcion == 1) {
System.out.println("Introduce los grqdos centígrados:");
centigrados = teclado.nextDouble();
fahrenheit = 32+((9*centigrados)/5);
System.out
.print("Entonces " + centigrados + " grados centigrados son " + fahrenheit + " grados fahrenheit");
} else if (opcion == 2) {
System.out.println("Introduce los grqdos Fehrenheit:");
fahrenheit = teclado.nextDouble();
centigrados = 5*((fahrenheit -32 )/9);
System.out
.print("Entonces " + centigrados + " grados centigrados son " + fahrenheit + " grados fahrenheit");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"protected void setupParameters() {\n \n \n\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tprotected void initParams() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tprotected void initVentajas() {\n\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"private void init() {\n\n\t}",
"@Override\n protected void init() {\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}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}",
"private static void cajas() {\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}",
"public void designBasement() {\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\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void processInit() {\n\r\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\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\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\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void init()\n\t{\n\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 public void memoria() {\n \n }",
"protected void mo6255a() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void rozmnozovat() {\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}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"private void Initialized_Data() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"public void mo38117a() {\n }",
"public final void mo51373a() {\n }",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@Override\n\tpublic void pausaParaComer() {\n\n\t}",
"@Override\n\t\tprotected void initialise() {\n\n\t\t}",
"protected void init() {\n // to override and use this method\n }",
"@Override\n\tpublic void postInit() {\n\t\t\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n }",
"private void init() {\n\n\n\n }"
]
| [
"0.6303058",
"0.6082873",
"0.60521764",
"0.5965361",
"0.59616935",
"0.59602696",
"0.5939191",
"0.5903254",
"0.5903217",
"0.5900323",
"0.5859739",
"0.58515835",
"0.5848434",
"0.582109",
"0.5821069",
"0.58077997",
"0.57968146",
"0.5795385",
"0.57841843",
"0.5783762",
"0.5761155",
"0.57395595",
"0.5729821",
"0.5729821",
"0.5729795",
"0.57251287",
"0.57170165",
"0.57089233",
"0.57081157",
"0.5691638",
"0.5682914",
"0.5667536",
"0.5667536",
"0.5665744",
"0.5664943",
"0.566222",
"0.56605685",
"0.5655943",
"0.5655943",
"0.5655943",
"0.5655943",
"0.5655943",
"0.5655943",
"0.56526643",
"0.5651442",
"0.5651442",
"0.5651442",
"0.564654",
"0.56400967",
"0.56400967",
"0.56400967",
"0.56400967",
"0.56400967",
"0.5636608",
"0.5636608",
"0.5633678",
"0.56325996",
"0.56325996",
"0.56325996",
"0.56325996",
"0.56325996",
"0.56325996",
"0.56325597",
"0.5631698",
"0.5618019",
"0.56176597",
"0.5617532",
"0.5614001",
"0.5614001",
"0.5614001",
"0.5610577",
"0.5600676",
"0.5599501",
"0.55812114",
"0.55716103",
"0.55716103",
"0.55716103",
"0.55709136",
"0.5557667",
"0.5557667",
"0.55541986",
"0.55525583",
"0.5551187",
"0.5546103",
"0.5538233",
"0.55170214",
"0.5509022",
"0.5509022",
"0.550466",
"0.5496278",
"0.5492283",
"0.5489278",
"0.548465",
"0.54831505",
"0.54829276",
"0.5473415",
"0.54711354",
"0.54655313",
"0.54655313",
"0.5463675",
"0.5462528"
]
| 0.0 | -1 |
stops the recording activity | public void stopRecording() {
BLog.d(TAG, "stopRecording()");
stopLastRunnable();
mRecordingRunnable.stopRun();
try {
mRecordingThread.interrupt();
} catch (Exception e) {}
mRecordingThread = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stop() {\r\n\t\tisRecording = false;\r\n\t}",
"private void stopRecording() {\n\n }",
"public void StopRecording()\n {\n handler.stopRecording();\n\n }",
"File stopRecording();",
"private void stopRecording() {\n recoTransaction.stopRecording();\n }",
"private void stopRecording() {\n Log.e(TAG, \"Stop recording file: \" + curRecordingFileName);\n if (null != mRecorder) {\n mRecorder.stop();\n mRecorder.release();\n mRecorder = null;\n }\n\n }",
"private void stopRecording() {\n if (mRecordingHelper != null) {\n File file = mRecordingHelper.stopRecord();\n\n if (file == null) {\n return;\n }\n\n if (mOnRecordingPopupListener != null) {\n mOnRecordingPopupListener.onResultBuffer(file.getAbsolutePath());\n }\n\n// byte[] bytesArray = new byte[(int) file.length()];\n//\n// FileInputStream fis = null;\n// try {\n// fis = new FileInputStream(file);\n// fis.read(bytesArray); //read file into bytes[]\n// fis.close();\n//\n//\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n\n }\n\n if (isShowing()) {\n hide();\n }\n }",
"public void stopRecording() {\n cameraPreview.stopRecording();\n mediaRecorder.stop(); // stop the recording\n releaseMediaRecorder(); // release the MediaRecorder object\n camera.lock(); // take camera access back from MediaRecorder\n isRecording = false;\n }",
"private void stopRecording() {\r\n\t\tisRecording = false;\r\n\t\ttry {\r\n\t\t\ttimer.cancel();\r\n\t\t\tbuttonRecord.setText(\"Record\");\r\n\t\t\tbuttonRecord.setIcon(iconRecord);\r\n\t\t\t\r\n\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\r\n\r\n\t\t\trecorder.stop();\r\n\r\n\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\r\n\t\t\tsaveFile();\r\n\r\n\t\t} catch (IOException ex) {\r\n\t\t\tJOptionPane.showMessageDialog(SwingSoundRecorder.this, \"Error\",\r\n\t\t\t\t\t\"Error stopping sound recording!\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}",
"public void stop() throws IOException {\r\n\t_bRecording=false;\r\n recorder.stop();\r\n recorder.release();\r\n }",
"public void stopRecord() {\n\t\tif (state == State.RECORDING) {\n\t\t\taudioRecorder.stop();\n\t\t\tstate = State.STOPPED;\n\t\t}\n\t\telse {\n\t\t\tLog.e(TAG, \"stop() called on illegal state\");\n\t\t\tstate = State.ERROR;\n\t\t}\n\t\tstate = State.INITIALIZING;\n\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif(s==true) \n\t\t\t\t\t{\n\t\t\t\t\tToast.makeText(Recordingvoice .this,\"Recording stoped\",2000).show();\n\t\t\t\t\tif(recorder == null)\n\t\t\t\t\t{\n\t\t\t\t\t\t recorder = new MediaRecorder();\n\t\t\t\t\t}\n\t\t\t\t\tif(recorder!=null)\n\t\t\t\t\t{\n\t\t\t\t\trecorder.stop();\n\t\t\t\t\trecorder.release();\n\t\t\t\t\t}\n\t\t\t\t\trecorder=null;\n\t\t\t\t\ttime.cancel();\n\t\t\t\t\tuploadCode();\n\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t}",
"public void stopConferenceRecording();",
"private void stopRecord() {\n /*\n r6 = this;\n r5 = 0;\n r1 = r6.isRecording;\n if (r1 != 0) goto L_0x0006;\n L_0x0005:\n return;\n L_0x0006:\n r1 = com.baidu.navisdk.BNaviModuleManager.getContext();\n com.baidu.navisdk.util.listener.MediaFocuseChangeListener.releaseAudioFocus(r1);\n com.baidu.navisdk.comapi.tts.TTSPlayerControl.resumeVoiceTTSOutput();\n r1 = 0;\n r6.isRecording = r1;\n r1 = r6.recordProcessIView;\n if (r1 == 0) goto L_0x001c;\n L_0x0017:\n r1 = r6.recordProcessIView;\n r1.clearAnimation();\n L_0x001c:\n r1 = r6.mTimer;\t Catch:{ Exception -> 0x004d }\n if (r1 == 0) goto L_0x0025;\n L_0x0020:\n r1 = r6.mTimer;\t Catch:{ Exception -> 0x004d }\n r1.cancel();\t Catch:{ Exception -> 0x004d }\n L_0x0025:\n r1 = r6.mRecorder;\t Catch:{ Exception -> 0x004d }\n if (r1 == 0) goto L_0x0036;\n L_0x0029:\n r1 = r6.mRecorder;\t Catch:{ Exception -> 0x005c }\n r1.stop();\t Catch:{ Exception -> 0x005c }\n L_0x002e:\n r1 = r6.mRecorder;\t Catch:{ Exception -> 0x004d }\n r1.release();\t Catch:{ Exception -> 0x004d }\n r1 = 0;\n r6.mRecorder = r1;\t Catch:{ Exception -> 0x004d }\n L_0x0036:\n r6.mRecorder = r5;\n r6.mTimer = r5;\n L_0x003a:\n r1 = r6.mOnUgcSoundsRecordCallback;\n if (r1 == 0) goto L_0x004a;\n L_0x003e:\n r1 = r6.mOnUgcSoundsRecordCallback;\n r2 = r6.timeCountTime;\n r2 = 20 - r2;\n r3 = r6.filePath;\n r4 = 1;\n r1.onRecordFinish(r2, r3, r4);\n L_0x004a:\n mUgcSoundsRecordDialog = r5;\n goto L_0x0005;\n L_0x004d:\n r0 = move-exception;\n r0.printStackTrace();\t Catch:{ all -> 0x0056 }\n r6.mRecorder = r5;\n r6.mTimer = r5;\n goto L_0x003a;\n L_0x0056:\n r1 = move-exception;\n r6.mRecorder = r5;\n r6.mTimer = r5;\n throw r1;\n L_0x005c:\n r1 = move-exception;\n goto L_0x002e;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.navisdk.module.ugc.dialog.UgcSoundsRecordDialog.stopRecord():void\");\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n\n stopRecording();\n }",
"ActivityType stop();",
"void stopRecording() {\n // Save the track id as the shared preference will overwrite the recording track id.\n SharedPreferences sharedPreferences = getSharedPreferences(\n Constants.SETTINGS_NAME, Context.MODE_PRIVATE);\n long currentTrackId = sharedPreferences.getLong(getString(R.string.recording_track_key), -1);\n \n ITrackRecordingService trackRecordingService = serviceConnection.getServiceIfBound();\n if (trackRecordingService != null) {\n try {\n trackRecordingService.endCurrentTrack();\n } catch (Exception e) {\n Log.e(TAG, \"Unable to stop recording.\", e);\n }\n }\n \n serviceConnection.stop();\n \n if (currentTrackId > 0) {\n Intent intent = new Intent(MyTracks.this, TrackDetail.class);\n intent.putExtra(TrackDetail.TRACK_ID, currentTrackId);\n intent.putExtra(TrackDetail.SHOW_CANCEL, false);\n startActivity(intent);\n }\n }",
"public String stopRecord()\n {\n if(!_inRec) return \"\";\n _inRec=false;\n _recorder.stop();\n _recorder.release();\n _recorder = null;\n return _filePath;\n }",
"private void endRecording() {\n isListening = false;\n Thread thread = new Thread() {\n @Override\n public void run() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n startedRecording.setVisibility(View.GONE);\n actionButton.setEnabled(false);\n actionButton.setText(\"Saving...\");\n saving.setVisibility(View.VISIBLE);\n }\n });\n\n if (outFile != null) {\n appendHeader(outFile);\n\n Intent scanWav = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);\n scanWav.setData(Uri.fromFile(outFile));\n sendBroadcast(scanWav);\n\n outFile = null;\n notificationManager.cancel(NOTICE_RECORD);\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n actionButton.setEnabled(true);\n editText.setEnabled(true);\n newTimestamp.setEnabled(true);\n actionButton.setText(\"Start recording\");\n saving.setVisibility(View.GONE);\n }\n });\n }\n };\n thread.start();\n }",
"@Override\n public void onStop() {\n if(toggleButton.isChecked()) {\n toggleButton.setChecked(false);\n mediaRecorder.stop();\n mediaRecorder.reset();\n Log.v(TAG, \"Recording Stopped\");\n }\n\n mediaProjection = null;\n stopScreenSharing();\n }",
"public void stop() {\n assert (timeEnd == null);\n timeEnd = System.currentTimeMillis();\n if (recordAt != null) {\n recordAt.record(this);\n }\n }",
"public void stopRecord() {\n\t\tcmd = new StopRecordCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}",
"private void stopRecording(){\n String postString = ConvertToJSON();\n\n // SendToServer sender = new SendToServer();\n // try {\n // sender.Send(postString,\"\");\n // } catch (IOException e) {\n // e.printStackTrace();\n //}\n }",
"public abstract void stopRecordSensorData();",
"@Override\n\tprotected void onStop() {\n\t\trecordAndBack();// 停止记时\n\t\tsuper.onStop();\n\t}",
"private void closeCamera() {\n if (mCameraDevice != null) {\n mCameraDevice.close();\n mCameraDevice = null;\n }\n if (mIsRecording) {\n long elapsedMillis = SystemClock.elapsedRealtime() - mTimer.getBase();\n mTimer.stop();\n mTimer.setVisibility(View.GONE);\n scrollContents();\n mIsRecording = false;\n mRecordButton.setImageResource(R.drawable.ic_record_white);\n mMediaRecorder.stop();\n mMediaRecorder.reset();\n\n //Scan the file to appear in the device studio\n Intent mediaScannerIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);\n mediaScannerIntent.setData(Uri.fromFile(new File(mVideoFilePath)));\n sendBroadcast(mediaScannerIntent);\n\n logFirebaseVideoEvent(elapsedMillis);\n\n }\n if (mMediaRecorder != null) {\n mMediaRecorder.release();\n mMediaRecorder = null;\n }\n if (mAnimator != null && mAnimator.isStarted()) {\n mAnimator.cancel();\n }\n }",
"private void onStopClickEvent() {\n\t\tmBtnStop.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tLog.d(TAG, \"onStopClickEvent\");\n\n//\t\t\t\tAVCom.stop();\n//\t\t\t\tAVCom.statThreadRuning = false;\n\t\t\t\t// AndroidVideoApiJniWrapper.stopRecording(mCamera);\n\t\t\t\tSystem.exit(0); // tbd...\n\n\t\t\t}\n\t\t});\n\t}",
"@Override\r\n\tpublic void OnStopVoiceRecording(long size) {\n\t\tRecordingStop(size);\r\n\t}",
"@FXML\n\tpublic void recorderStopAudio() {\n\t\tcontroller.recorderTimerCancel();\n\t\trecorderButtonPlay.setDisable(false);\n\t\trecorderButtonPause.setDisable(true);\n\t\trecorderButtonStop.setDisable(true);\n\t\tcontroller.audioRecorderStopAudio();\n\t}",
"public void stop() {\n synchronized (lock) {\n isRunning = false;\n if (rawAudioFileOutputStream != null) {\n try {\n rawAudioFileOutputStream.close();\n } catch (IOException e) {\n Log.e(TAG, \"Failed to close file with saved input audio: \" + e);\n }\n rawAudioFileOutputStream = null;\n }\n fileSizeInBytes = 0;\n }\n }",
"private void stopAcquisition() {\r\n if (this.timer != null && !this.timer.isShutdown()) {\r\n try {\r\n // stop the timer\r\n this.timer.shutdown();\r\n this.timer.awaitTermination(33, TimeUnit.MILLISECONDS);\r\n } catch (InterruptedException e) {\r\n // log any exception\r\n System.err.println(\"Exception in stopping the frame capture, trying to close the video now... \" + e);\r\n }\r\n }\r\n\r\n if (this.capture.isOpened()) {\r\n // release the camera\r\n this.capture.release();\r\n }\r\n }",
"public boolean onStopVideoRecording() {\n if (this.mNeedGLRender && isSupportEffects()) {\n this.mCurrentVideoFilename = this.mVideoFilename;\n this.mActivity.getCameraAppUI().stopVideoRecorder();\n }\n if (this.PhoneFlag) {\n int moduleId = getModuleId();\n CameraActivity cameraActivity = this.mActivity;\n if (moduleId == 8) {\n this.mActivity.getCameraAppUI().setCalldisable(true);\n this.mActivity.getCameraAppUI().resetAlpha(true);\n }\n }\n if (this.mMediaRecoderRecordingPaused) {\n this.mRecordingStartTime = SystemClock.uptimeMillis() - this.mVideoRecordedDuration;\n this.mVideoRecordedDuration = 0;\n this.mMediaRecoderRecordingPaused = false;\n this.mUI.mMediaRecoderRecordingPaused = false;\n this.mUI.setRecordingTimeImage(true);\n }\n this.mAppController.getCameraAppUI().showRotateButton();\n this.mAppController.getCameraAppUI().setSwipeEnabled(true);\n this.mActivity.stopBatteryInfoChecking();\n this.mActivity.stopInnerStorageChecking();\n boolean recordFail = stopVideoRecording();\n releaseAudioFocus();\n if (this.mIsVideoCaptureIntent) {\n if (this.mQuickCapture) {\n doReturnToCaller(recordFail ^ 1);\n } else if (recordFail) {\n this.mAppController.getCameraAppUI().showModeOptions();\n this.mHandler.sendEmptyMessageDelayed(6, SHUTTER_BUTTON_TIMEOUT);\n } else {\n showCaptureResult();\n }\n } else if (!(recordFail || this.mPaused)) {\n boolean z = ApiHelper.HAS_SURFACE_TEXTURE_RECORDING;\n }\n return recordFail;\n }",
"public void stop() {\n\t\tplaybin.stop();\n\t}",
"@Override\n public void onBackPressed() {\n timer.cancel();\n // Tell the user that their data will be destroyed\n Toast.makeText(getApplicationContext(), \"Stopping and deleting recording...\", Toast.LENGTH_SHORT)\n .show();\n super.onBackPressed();\n }",
"public void stop() {\n aVideoAnalyzer.stop();\n }",
"@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 }",
"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(boolean save) {}",
"public void stop() {\n mediaController.getTransportControls().stop();\n }",
"public void stopStreaming() {\n phoneCam.stopStreaming();\n }",
"private void stopAcquisition() {\n if (this.timer != null && !this.timer.isShutdown()) {\n try {\n // stop the timer\n this.timer.shutdown();\n this.timer.awaitTermination(33, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n // log any exception\n System.err.println(\"Exception in stopping the frame capture, trying to release the camera now... \" + e);\n }\n }\n\n if (this.capture.isOpened()) {\n // release the camera\n this.capture.release();\n }\n }",
"public void stopMedia() {\n\t\tif (videoviewer.getCurrentPosition() != 0) {\n\t\t\t\n\t\t\tplaytogglebutton.setChecked(true);\n\t\t\t\n\t\t\tvideoviewer.pause();\n\t\t\tvideoviewer.seekTo(0);\n\t\t\ttimer.cancel();\n\n\t\t\ttimeElapsed.setText(countTime(videoviewer.getCurrentPosition()));\n\t\t\tprogressBar.setProgress(0);\n\t\t}\n\t}",
"public void end()\r\n\t{\n\t\ttry{\r\n\t\tNIVision.IMAQdxStopAcquisition(curCam);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\t\n\t\t}\r\n\t}",
"public void stop()\n {\n mediaPlayer.stop();\n }",
"public void onStop() {\n super.onStop();\n C0938a.m5006c(\"SR/SoundRecorder\", \"~~~~~~~~~~~~~~~~~~~~~~~~~~~~onStop\");\n m6591H();\n m6664w();\n this.f5417g = false;\n AlertDialog alertDialog = this.f5383C;\n if (alertDialog == null || !alertDialog.isShowing()) {\n m6603T();\n }\n }",
"public void stopPlaying() {\n seq.stop();\n }",
"public void stop() {}",
"public void stop() {\n SystemClock.sleep(500);\n\n releaseAudioTrack();\n }",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"TimeInstrument stop();",
"public void stopDtmfStream();",
"@Override\n protected void onStop() {\n \tstopActivityRecognition(); // Stops activity recognition only if in any case it wasn't stopped before\n super.onStop();\n }",
"public void stopAndReleaseAudioRecord() {\n if ((mAudioRecord != null) && (mAudioRecord.getState() != AudioRecord.STATE_UNINITIALIZED)) {\n try {\n mAudioRecord.stop();\n mAudioRecord.release();\n } catch (Exception e) {\n Log.e(TAG, \"stopAndReleaseAudioRecord() Exception: \" + e.getMessage());\n }\n }\n mAudioRecord = null;\n }",
"@Override\n public void stop() {\n }",
"public void stop() {\n\t\tthis.flag = false;\n\t\t\n\t\t\n\t}",
"private void stopRecordRegistration(SoundRecordingUtil recorder, File wavFile) {\r\n\t\ttry {\r\n\t\t\trecorder.stop();\r\n\t\t\trecorder.save(wavFile);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\r\n public void stop() {\r\n }",
"@Override\r\n public void stop() {\r\n }",
"@Override public void stop() {\n\t\t_active = false;\n\t}",
"private void stopRecordIdentification(SoundRecordingUtil recorder, File wavFile) {\r\n\t\ttry {\r\n\t\t\trecorder.stop();\r\n\t\t\trecorder.save(wavFile);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void stop() {\n\t\tstopTask();\n\t\tmPlaybillPath = null;\n\t\tmResPlaybill = null;\n\t}",
"@Override\r\n public void stop() {\r\n\r\n }",
"@Override public void stop() {\n }",
"public void stop() {\n }",
"public void stop() {\n }",
"public void stop() {\n synchronized (car) {\n LOG.info(\"Invalidating APPLY Record\");\n try {\n cas.destroyChannel(dir);\n cas.destroyChannel(val);\n cas.destroyChannel(mess);\n cas.destroyChannel(omss);\n cas.destroyChannel(clid);\n\n car.stop();\n for (CadRecord cad : cads) {\n cad.stop();\n }\n } catch (Exception e) {\n LOG.warning(\"Exception while shutting down apply record \" + e.getMessage());\n }\n }\n }",
"private void stopAudio() {\r\n // stop playback if possible here!\r\n }",
"public boolean stop();",
"public void stop()\n\t{\n\t\trunning = false;\n\t}",
"@Override\n public void stop() {}",
"public void stop() {\n\t\tmusic.stop();\n\t}",
"@Override\r\n\tpublic void stop() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void stop() {\n\t\tSystem.out.println(\"Stop Movie\");\r\n\t\t\r\n\t}",
"public void stop() {\n synchronized (mLock) {\n //if (!mRunning)\n //{\n // throw new IllegalStateException(\"CameraStreamer is already stopped\");\n //} // if\n \t\n \tLog.d(TAG, \"Stop\");\n \t\n mRunning = false;\n if (mMJpegHttpStreamer != null) {\n mMJpegHttpStreamer.stop();\n mMJpegHttpStreamer = null;\n } // if\n \n if (mCamera != null) {\n mCamera.release();\n mCamera = null;\n } // if\n } // synchronized\n mLooper.quit();\n }",
"@Override\r\n\tprotected void onPause()\r\n\t{\r\n\t\tsuper.onPause();\r\n\t\tthis.signalCapture.end();\r\n\t\t//AudioRecorderListenerManipulate.unregisterFFTAvailListener(this);\r\n\t}",
"@Override\n public void stop() {\n smDrive.stop();\n smArm.stop();\n }",
"public void stop(){\n\t\t\n\t}",
"@Override\n public void onCancel() {\n Log.d(\"RecordView\", \"onCancel\");\n mediaRecorder.reset();\n mediaRecorder.release();\n File file = new File(audioPath);\n if(file.exists())\n file.delete();\n binding.recordingLayout.setVisibility(View.GONE);\n binding.messageLayout.setVisibility(View.VISIBLE);\n }",
"public void stop() {\n enemyTimeline.stop();\n }",
"@Override\n public void stop() {\n\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n armMotor.setPower(0);\n // extendingArm.setPower(0);\n\n telemetry.addData(\"Status\", \"Terminated Interative TeleOp Mode\");\n telemetry.update();\n\n\n }",
"public void stop() {\n if (started && thread != null) {\n stopRequested = true;\n thread.interrupt();\n if (audio != null) {\n audio.stop();\n }\n }\n }",
"@Override\n \tpublic void run() {\n \t\tRecordingvoice.this.runOnUiThread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tif(recorder!=null)\n\t\t\t\t{ \n\t\t\t\t\trecorder.stop();\n\t\t\t\t\t recorder.release();\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\n\t\t\t\t recorder=null;\n\t\t\t\t\n\t\t \t\ttime.cancel();\n\t\t \t\tuploadCode();\n\t\t\t}\n\t\t});\n \n \t\t\n \t}",
"@Override\n\tprotected void onStop() {\n\t\tif(videoviewer != null)\n\t\t\tvideoviewer.stopPlayback();\n\t\tif (timer != null) {\n\t\t\ttimer.cancel();\n\t\t}\n\t\tsuper.onStop();\n\t}",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }"
]
| [
"0.8685508",
"0.845959",
"0.8386527",
"0.8281552",
"0.82644737",
"0.82337064",
"0.7954722",
"0.7861393",
"0.7852158",
"0.7783882",
"0.76432025",
"0.75301147",
"0.7492067",
"0.74613446",
"0.7429621",
"0.7421295",
"0.74150956",
"0.7383717",
"0.73489976",
"0.72154045",
"0.71815556",
"0.7175975",
"0.71028584",
"0.6992218",
"0.69406295",
"0.6911147",
"0.68937343",
"0.68796307",
"0.6867617",
"0.68645823",
"0.68637204",
"0.68246925",
"0.68222183",
"0.6786657",
"0.67852175",
"0.67834705",
"0.6781823",
"0.6771807",
"0.67410487",
"0.6734752",
"0.6732193",
"0.6725526",
"0.67250955",
"0.66962373",
"0.668465",
"0.6682972",
"0.6681351",
"0.66553247",
"0.6623601",
"0.6623601",
"0.6623601",
"0.6623601",
"0.6623601",
"0.6623601",
"0.6623601",
"0.6623601",
"0.6623601",
"0.6623601",
"0.6623601",
"0.6623601",
"0.6623601",
"0.6623601",
"0.6623601",
"0.66178006",
"0.66159725",
"0.65955323",
"0.6594874",
"0.6588366",
"0.6582353",
"0.6566214",
"0.6543057",
"0.6543057",
"0.65352005",
"0.6531265",
"0.65177405",
"0.65105236",
"0.64957714",
"0.6491393",
"0.6491393",
"0.6488968",
"0.64869505",
"0.6476867",
"0.64708936",
"0.6469705",
"0.64605975",
"0.64534414",
"0.64508283",
"0.6449017",
"0.64465326",
"0.6444925",
"0.6443896",
"0.6442973",
"0.64383584",
"0.6434311",
"0.64335",
"0.64320993",
"0.64294267",
"0.642819",
"0.642819",
"0.642819"
]
| 0.81416774 | 6 |
convert short to byte | private byte[] short2byte(short[] sData) {
int shortArrsize = sData.length;
byte[] bytes = new byte[shortArrsize * 2];
for (int i = 0; i < shortArrsize; i++) {
bytes[i * 2] = (byte) (sData[i] & 0x00FF);
bytes[(i * 2) + 1] = (byte) (sData[i] >> 8);
sData[i] = 0;
}
return bytes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"short decodeShort();",
"private static byte[] shortToBytes(short value) {\n ByteBuffer bb = ByteBuffer.allocate(2);\n bb.putShort(value);\n return bb.array();\n }",
"public static void main(String[] args) {\nshort i = 128;\r\nbyte shortToByte = (byte)i;\r\nSystem.out.println(shortToByte);\r\nbyte t = 127;\r\nt++;\r\nSystem.out.println(t);\r\nt++;\r\nSystem.out.println(t);\r\n\r\n\t}",
"public static int shortToBytes(short s, byte bc[], int index) {\n bc[index++] = (byte) ((s >> 8) & 0xff);\n bc[index++] = (byte) (s & 0xff);\n return index;\n }",
"public short toShort()\n\t{\n\t\treturn (short)this.ordinal();\n\t}",
"public static byte[] getShortAsBytes(short s) {\n\t\treturn new byte[] {\n\t\t\t\t(byte) (s >>> 8),\n\t\t\t\t(byte) s\n\t\t};\n\t}",
"public static byte unsignedShortToByte(short unsignedShort) {\n if (unsignedShort < 0 || unsignedShort > 0xFF)\n throw new RuntimeException(\"The provided short value is outside the range of an unsigned byte. [0,255]. Value: \" + unsignedShort);\n return (byte) unsignedShort;\n }",
"public static byte[] getBytes(short value) {\r\n\t\treturn ByteBuffer.allocate(2).order(ByteOrder.LITTLE_ENDIAN).putShort(value).array();\r\n\t}",
"public static short getShort(byte bc[], int index) {\n short s, bh, bl;\n bh = (bc[index]);\n bl = (bc[index + 1]);\n s = (short) (((bh << 8) & 0xff00) | (bl & 0xff));\n // s = (short)((int)(bc[index])<<8 + bc[index+1]);\n return s;\n }",
"public static byte getB(final short key)\n {\n return (byte) (key & BITS);\n }",
"short readShort();",
"public static short getBytesAsShort(byte[] b) {\n\t\tint i = (b[0] & 0xFF << 8)\n\t\t\t\t| (b[1] & 0xFF);\n\t\t\n\t\treturn (short) i;\n\t}",
"private static byte int2(int x) { return (byte)(x >> 16); }",
"public static short uByte(byte b) {\n\t\treturn (short)(((short)b+256)%256);\n\t}",
"private static byte[] intToSmallBytes(int value) {\n return shortToBytes((short)value);\n }",
"public static byte[] shortToBytes(short s) {\n\n ByteBuffer byteBuffer = ByteBuffer.allocate(NUM_BYTES_IN_SHORT);\n byteBuffer.putShort(s);\n return byteBuffer.array();\n\n }",
"private byte[] shortToByteArray(short i) {\n ByteBuffer bbf = ByteBuffer.allocate(2)\n .order(ByteOrder.LITTLE_ENDIAN)\n .putShort(i);\n return bbf.array();\n }",
"public static short toShort(byte b1, byte b2) {\n\t\tByteBuffer bb = ByteBuffer.allocate(2);\n\t\tbb.order(ByteOrder.LITTLE_ENDIAN);\n\t\tbb.put(b1);\n\t\tbb.put(b2);\n\t\treturn bb.getShort(0);\n\t}",
"void writeShort(short value);",
"void writeShort(int v) throws IOException;",
"public static void shortToByteArray(short value, byte[] buffer, int offset) {\n buffer[offset] = (byte) (value >> 8 & 0xFF);\n buffer[offset + 1] = (byte) (value & 0xFF);\n }",
"@Override\r\n\tpublic short getUnsignedByte(int pos) {\n\t\treturn (short) (getByte(pos) & 0xff);\r\n\t}",
"public short toShort() {\n return this.toShortArray()[0];\n }",
"byte toByteValue() {\n return (byte) value;\n }",
"public static byte getA(final short key)\n {\n return (byte) ((key >> SHIFT) & BITS);\n }",
"private short getUnsignedByte(final ByteBuffer byteBuffer) {\n return (short) (byteBuffer.get() & 0xff);\n }",
"short readShort() throws IOException;",
"private int getShort() {\n shortBuffer.rewind();\n archive.read(shortBuffer);\n shortBuffer.flip();\n return (int) shortBuffer.getShort();\n }",
"private int getUnsignedShort(final ByteBuffer byteBuffer) {\n return byteBuffer.getShort() & 0xffff;\n }",
"private static short flipEndian(short signedShort) {\n int input = signedShort & 0xFFFF;\n return (short) (input << 8 | (input & 0xFF00) >>> 8);\n }",
"public static byte[] convertInt16(short v, boolean isLE)\r\n {\r\n byte[] bytes = new byte[2];\r\n if (isLE)\r\n {\r\n bytes[1] = (byte) ((v >>> 8) & 0xFF);\r\n bytes[0] = (byte) ((v >>> 0) & 0xFF);\r\n }\r\n else\r\n {\r\n bytes[0] = (byte) ((v >>> 8) & 0xFF);\r\n bytes[1] = (byte) ((v >>> 0) & 0xFF);\r\n }\r\n return bytes;\r\n }",
"public short getLEShort() {\n\t\tint i = payload.get() & 0xFF | (payload.get() & 0xFF) << 8;\n\t\tif (i > 32767) {\n\t\t\ti -= 0x10000;\n\t\t}\n\t\treturn (short) i;\n\t}",
"public short readShort() throws IOException;",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default short asShort() {\n \n return notSupportedCast(BasicTypeID.SHORT);\n }",
"public short getShortA() {\n\t\tint i = (payload.get() & 0xFF) << 8 | payload.get() - 128 & 0xFF;\n\t\tif (i > 32767) {\n\t\t\ti -= 0x10000;\n\t\t}\n\t\treturn (short) i;\n\t}",
"public static short toInt16(byte[] value) {\r\n\t\treturn toInt16(value, 0);\r\n\t}",
"private short toDec(byte[] source, short index){\r\n \treturn (short)(source[index] - (short)48);\r\n }",
"public abstract short read_short();",
"public int toByte(){\n return toByte(0);\n }",
"public static short byteToUnsignedShort(byte unsignedByte) {\n short num = (short) unsignedByte;\n if (num < 0)\n num += 256;\n return num;\n }",
"public static short getByte(long flags, int pos) {\n if(pos < 1 || pos > 8) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 8\");\n }\n return (short) (flags >> (8 * (pos-1)) & 0xFF);\n }",
"public static short pack(final byte a, final byte b)\n {\n return (short) ((a << SHIFT) | (b & BITS));\n }",
"public static void printShortBinary(short s) {\n\t\tbyte t;\n\t\tbyte b;\n\t\t// Use bit shifting and masking (&) to save the first\n\t\t// 8 bits of s in one byte, and the second 8 bits of\n\t\t// s in the other byte\n\t\tt = (byte)(s>>8);\n\t\tb = (byte)(s&0b00001111);\n\t\t// Call printByteBinary twice using the two bytes\n\t\t// Make sure they are in the correct order\n\t\tprintByteBinary(t);\n\t\tprintByteBinary(b);\n\t}",
"abstract int readShort(int start);",
"@Test\n public void testReadWriteShort() {\n System.out.println(\"readShort\");\n ByteArray instance = new ByteArray();\n \n instance.writeShort((short) 12, 0);\n instance.writeShort((short) 15, 2);\n instance.writeShort((short) 13, instance.compacity());\n \n assertEquals(12, instance.readShort(0));\n assertEquals(15, instance.readShort(2));\n assertEquals(13, instance.readShort(instance.compacity() - 2));\n \n instance.writeShort((short) 14, 2);\n assertEquals(14, instance.readShort(2));\n }",
"public static int writeShort(OutputStream target, short value) throws IOException {\n target.write((byte) (value >>> 8 & 255));\n target.write((byte) (value & 255));\n return Short.BYTES;\n }",
"@Test\n\tpublic void getByteOf_Test() {\n\t\tfinal short value = 8738;\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) 34));\n\t\t\n\t\t// The same like above\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}",
"public static short getByte(short flags, int pos) {\n if(pos < 1 || pos > 2) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 2\");\n }\n return (short) (flags >> (8 * (pos-1)) & 0xFF);\n }",
"public short readShort() {\n return ((short) readLong());\n }",
"@Override\r\n\tpublic int getUnsignedShort(int pos) {\n\t\treturn getShort(pos) & 0x0FFFF;\r\n\t}",
"@Test\n\tpublic void getByteOf_Test2() {\n\t\tfinal short value = 8930;\n\t\t\n\t\t// Should be 1110 0010 = -30\n\t\tfinal byte value0 = FlagUtils.getByteOf(value, 0);\n\t\tassertThat(value0, is((byte) -30));\n\t\t\n\t\t// Should be 0010 0010 = 34\n\t\tfinal byte value1 = FlagUtils.getByteOf(value, 1);\n\t\tassertThat(value1, is((byte) 34));\n\t}",
"@Override\r\n\tpublic short getShort(int pos) {\n\t\treturn buffer.getShort(pos);\r\n\t}",
"public void writeShort(short i) throws IOException {\n\t\twriteByte((byte) (i >> 8));\n\t\twriteByte((byte) i);\n\t}",
"public static short byteArrayToShort(byte[] ba, int offset) {\n int value = 0;\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n return (short) value;\n }",
"private short readShort(SeekableStream stream)\n throws IOException {\n if (isBigEndian) {\n return stream.readShort();\n } else {\n return stream.readShortLE();\n }\n }",
"public static short getByte(int flags, int pos) {\n if(pos < 1 || pos > 4) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 4\");\n }\n return (short) (flags >> (8 * (pos-1)) & 0xFF);\n }",
"public static short bytesToShort(byte[] bytes) {\n\n ByteBuffer byteBuffer = ByteBuffer.wrap(bytes);\n return byteBuffer.getShort();\n\n }",
"Short getValue();",
"public static short decodeLowBits(int i) {\n\n return (short) i;\n\n }",
"public short getLEShortA() {\n\t\tint i = payload.get() - 128 & 0xFF | (payload.get() & 0xFF) << 8;\n\t\tif (i > 32767) {\n\t\t\ti -= 0x10000;\n\t\t}\n\t\treturn (short) i;\n\t}",
"public static short getShort(byte[] buffer, int index, int len) {\n switch (len) {\n case 0: return (short) 0xFFFF;\n case 1: return (short) (0xFFFFFF00 | _getByte(buffer, index, 1));\n case 2: return _getShort(buffer, index, 2);\n default: throw new IllegalArgumentException(\"len is out of range: \" + len);\n }\n }",
"private static short decode(byte alaw)\n {\n //Invert every other bit, and the sign bit (0xD5 = 1101 0101)\n alaw ^= 0xD5;\n\n //Pull out the value of the sign bit\n int sign = alaw & 0x80;\n //Pull out and shift over the value of the exponent\n int exponent = (alaw & 0x70) >> 4;\n //Pull out the four bits of data\n int data = alaw & 0x0f;\n\n //Shift the data four bits to the left\n data <<= 4;\n //Add 8 to put the result in the middle of the range (like adding a half)\n data += 8;\n \n //If the exponent is not 0, then we know the four bits followed a 1,\n //and can thus add this implicit 1 with 0x100.\n if (exponent != 0)\n data += 0x100;\n /* Shift the bits to where they need to be: left (exponent - 1) places\n * Why (exponent - 1) ?\n * 1 2 3 4 5 6 7 8 9 A B C D E F G\n * . 7 6 5 4 3 2 1 . . . . . . . . <-- starting bit (based on exponent)\n * . . . . . . . Z x x x x 1 0 0 0 <-- our data (Z is 0 only when exponent is 0)\n * We need to move the one under the value of the exponent,\n * which means it must move (exponent - 1) times\n * It also means shifting is unnecessary if exponent is 0 or 1.\n */\n if (exponent > 1)\n data <<= (exponent - 1);\n\n return (short)(sign == 0 ? data : -data);\n }",
"private int byteToInt(byte b) { int i = b & 0xFF; return i; }",
"public short getShort(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? (short)((Long)value).intValue() : 0);\n }",
"public static byte toByte(Boolean bool)\r\n {\r\n return bool == null ? (byte)0 : Boolean.FALSE.equals(bool) ? (byte)1 : (byte)2;\r\n }",
"void method2(){\r\n\t\tshort s = 111;\r\n\t\tShort ss = s;\r\n\t\tSystem.out.println(\"Cast short \"+ s +\" to Short \"+ ss);\r\n\r\n\t\tint i = 2147483647;\r\n\t\t// incorecy cast from primitive int Reference Varible Short\r\n\t\t//Short ii = i;\r\n\t\tShort sss = (short) i;\r\n\t\tSystem.out.println(\"Cast int \"+ i +\" to Short \"+ sss);\r\n\t\t\r\n\t\t\r\n\t}",
"public abstract short[] toShortArray();",
"public ByteBuf writeShort(int value)\r\n/* 539: */ {\r\n/* 540:550 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 541:551 */ return super.writeShort(value);\r\n/* 542: */ }",
"public byte toByte() {\n return this.toByteArray()[0];\n }",
"public abstract short read_ushort();",
"int setShort(int num, int a_short, int which)\n {\n return ((num & (0b1111111111111111 << ((~which) << 4))) | (a_short << (which << 4)));\n }",
"public static void main(String[] args) {\n\t\tint num4=0B11111111111111111111111111111011;\r\n\t\tbyte num1=0B00000101;\r\n\t\tint num2=0B1111111111111011;\r\n\t\tSystem.out.println(num4);\r\n\t\tSystem.out.println((short)num2);\r\n\t}",
"public short getShort(int addr) throws ProgramException {\n return (short) getLittleEndian(addr, Short.BYTES);\n }",
"public int getUnsignedShort() {\n\t\treturn payload.getUnsignedShort();\n\t}",
"public static byte[] convertInt16(int v, boolean isLE)\r\n {\r\n return convertInt16((short) v, isLE);\r\n }",
"String shortRead();",
"public StreamWriter write(short value)\r\n {\r\n \tif(order() == ByteOrder.LITTLE_ENDIAN){\r\n\t\t\t_buffer[0] = (byte) (value & 0xFF);\r\n\t\t\t_buffer[1] = (byte) ((value & 0xFF00) >> 8);\r\n \t}else{\r\n _buffer[0] = (byte)(value >> 8);\r\n _buffer[1] = (byte)value;\r\n \t}\r\n _stream.write(_buffer,0,2);\r\n\t\treturn this;\r\n }",
"public byte getByteS() {\n\t\treturn (byte) (128 - get());\n\t}",
"public short getShort(String key)\n {\n return getShort(key, (short) 0);\n }",
"public static short decodeHighBits(int i) {\n\n long key = i & 0xFFFF0000l;\n\n key >>= 16;\n\n return (short) key;\n\n }",
"short getDQ1( byte[] buffer, short offset );",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default @ZenCodeType.Unsigned byte asByte() {\n \n return notSupportedCast(BasicTypeID.BYTE);\n }",
"public int getUShort() { return bb.getShort() & 0xffff; }",
"short getDP1( byte[] buffer, short offset );",
"public short readShort() throws IOException {\n\n\t\tif (read(bb, 0, 2) < 2) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tshort s = (short) (bb[0] << 8 | (bb[1] & 0xFF));\n\t\treturn s;\n\t}",
"public static short unsigned(byte data) {\n\t\treturn (short) (data & 0xFF);\n\t}",
"void writeByte(int v) throws IOException;",
"public static short toInt16(byte[] value, int startIndex) {\r\n\t\treturn ByteBuffer.wrap(value, startIndex, 2).order(ByteOrder.LITTLE_ENDIAN).getShort();\r\n\t}",
"public byte getByte(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? (byte)((Long)value).intValue() : 0);\n }",
"public static byte[] get(final short key)\n {\n return new byte[]{getA(key), getB(key)};\n }",
"void writeShorts(short[] s, int off, int len) throws IOException;",
"void ReadStatusByte(int boardID, short addr, ShortByReference result);",
"void writeByte(byte value);",
"public short readVarShort() throws IOException {\n return readVarShort(7);\n }",
"public final int getSignedShort(final boolean endianess) throws IOException {\r\n b3 = 0;\r\n\r\n if (endianess == FileDicomBaseInner.BIG_ENDIAN) {\r\n b3 = ( (tagBuffer[bPtr] & 0xff) << 8) | (tagBuffer[bPtr + 1] & 0xff);\r\n } else {\r\n b3 = ( (tagBuffer[bPtr + 1] & 0xff) << 8) | (tagBuffer[bPtr] & 0xff);\r\n }\r\n\r\n if ( (b3 & 0x0080) != 0) {\r\n b3 = b3 | 0xff00;\r\n }\r\n\r\n bPtr += 2;\r\n\r\n return b3;\r\n }",
"public short getShort(int pos) {\n return Tuples.toShort(getObject(pos));\n }",
"@Override\r\n\tpublic Buffer appendUnsignedShort(int s) {\n\t\treturn null;\r\n\t}",
"public static short swap(short rValue)\n\t{\n\t\tint nByte1 = rValue & 0xff;\n\t\tint nByte2 = (rValue >> 8) & 0xff;\n\n\t\treturn (short)(nByte1 << 8 | nByte2);\n\t}",
"com.google.protobuf.ByteString\n getBShortTokenBytes();",
"public static byte[] convertInt8(int v)\r\n {\r\n byte[] bytes = new byte[1];\r\n bytes[0] = (byte) v;\r\n return bytes;\r\n }"
]
| [
"0.73691636",
"0.7186771",
"0.7180978",
"0.6928876",
"0.684472",
"0.68184024",
"0.6806534",
"0.679499",
"0.6768881",
"0.6763054",
"0.67546374",
"0.6745766",
"0.6733284",
"0.67029774",
"0.66879344",
"0.66724044",
"0.6651976",
"0.66508925",
"0.6618663",
"0.66066194",
"0.66059405",
"0.6583341",
"0.6578156",
"0.6557181",
"0.6485958",
"0.646196",
"0.64573693",
"0.64393216",
"0.6405722",
"0.63815355",
"0.63797593",
"0.63731",
"0.6359695",
"0.6357475",
"0.6355162",
"0.63471067",
"0.6336897",
"0.6330176",
"0.63223857",
"0.630753",
"0.62748134",
"0.6268126",
"0.62490547",
"0.62365395",
"0.6204633",
"0.61903024",
"0.6188887",
"0.6171819",
"0.61602205",
"0.6093828",
"0.60839736",
"0.60829407",
"0.60783094",
"0.60739386",
"0.6072004",
"0.60718817",
"0.60579526",
"0.6051789",
"0.598009",
"0.59792316",
"0.5976325",
"0.5951082",
"0.59452766",
"0.5928671",
"0.59229463",
"0.5918581",
"0.5913785",
"0.5904027",
"0.59005296",
"0.5892437",
"0.5876627",
"0.5874711",
"0.58659357",
"0.58534646",
"0.58485246",
"0.58453566",
"0.58418685",
"0.5819567",
"0.5812295",
"0.57914114",
"0.5790061",
"0.5788467",
"0.5786596",
"0.57813394",
"0.57750916",
"0.5757769",
"0.5752468",
"0.5752019",
"0.57410663",
"0.5733665",
"0.5731898",
"0.57316244",
"0.5728347",
"0.5725459",
"0.5716607",
"0.57060844",
"0.56989527",
"0.56960243",
"0.56892604",
"0.5687842"
]
| 0.7095323 | 3 |
though that I might need it | public abstract ArithValue negate(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void perish() {\n \n }",
"protected boolean func_70814_o() { return true; }",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"public void method_4270() {}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\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\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private void m50366E() {\n }",
"public abstract void mo56925d();",
"public void smell() {\n\t\t\n\t}",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public abstract void mo70713b();",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void skystonePos4() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"double passer();",
"public void mo21877s() {\n }",
"protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }",
"public abstract String mo9239aw();",
"public abstract String mo41079d();",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"@Override\n public int describeContents() { return 0; }",
"public abstract void mo27385c();",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"public abstract String mo118046b();",
"public abstract String mo13682d();",
"public void mo38117a() {\n }",
"public abstract void mo27386d();",
"public abstract void mo6549b();",
"void mo57277b();",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"public void skystonePos6() {\n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"public void Tyre() {\n\t\t\r\n\t}",
"public abstract Object mo26777y();",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"private Unescaper() {\n\n\t}",
"public void baocun() {\n\t\t\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void jugar() {}",
"double seBlesser();",
"void mo57278c();",
"protected boolean func_70041_e_() { return false; }",
"double defendre();",
"static int size_of_inx(String passed){\n\t\treturn 1;\n\t}",
"public void stg() {\n\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"StackManipulation cached();",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"public abstract void wrapup();",
"protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }",
"public void mo4359a() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\n public void preprocess() {\n }",
"String processing();",
"public void identify() {\n\n\t}",
"private void sout() {\n\t\t\n\t}",
"public abstract String mo9751p();",
"public void mo12628c() {\n }",
"public void mo21779D() {\n }",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"static int size_of_rpo(String passed){\n\t\treturn 1;\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public void mo21878t() {\n }",
"public abstract void mo30696a();",
"private static void iterator() {\n\t\t\r\n\t}"
]
| [
"0.5770787",
"0.57361454",
"0.57138443",
"0.5652479",
"0.5627435",
"0.5620669",
"0.5606642",
"0.55966854",
"0.5567139",
"0.55432594",
"0.55358285",
"0.55345404",
"0.553",
"0.55094653",
"0.55087614",
"0.55012476",
"0.54848504",
"0.5426113",
"0.5395351",
"0.53857243",
"0.5377713",
"0.5377713",
"0.53745145",
"0.5366462",
"0.53399175",
"0.53331286",
"0.53326815",
"0.53107363",
"0.52987635",
"0.5295659",
"0.52752244",
"0.52711654",
"0.52695423",
"0.5226149",
"0.5220971",
"0.5212752",
"0.51931804",
"0.5180136",
"0.51746464",
"0.5168246",
"0.516111",
"0.5144021",
"0.5135781",
"0.5129666",
"0.5129565",
"0.51269925",
"0.51268494",
"0.5126568",
"0.5120781",
"0.5120388",
"0.51179767",
"0.51109606",
"0.51058006",
"0.51034456",
"0.51003593",
"0.5083206",
"0.5067411",
"0.50620866",
"0.50513417",
"0.50476277",
"0.5042378",
"0.5039802",
"0.5039719",
"0.50366074",
"0.50359744",
"0.503376",
"0.5029226",
"0.5029226",
"0.5023579",
"0.5015727",
"0.5014255",
"0.5012032",
"0.5009718",
"0.50067073",
"0.4997849",
"0.49961653",
"0.4992514",
"0.49912366",
"0.49808475",
"0.49786162",
"0.49772185",
"0.49712765",
"0.49699077",
"0.4968055",
"0.49640346",
"0.49640346",
"0.49630067",
"0.49607646",
"0.4953847",
"0.49510613",
"0.4950928",
"0.49499995",
"0.49486575",
"0.49442878",
"0.49378493",
"0.49361345",
"0.4934384",
"0.49316758",
"0.49316624",
"0.49313048",
"0.49303424"
]
| 0.0 | -1 |
Creates new form MusicFrame | public MusicFrame() {
initComponents();
KeyEventDispatcher keyEventDispatcher;
keyEventDispatcher = new KeyEventDispatcher() {
Set<Integer> pressedKeys = new TreeSet<Integer>();
@Override
public boolean dispatchKeyEvent(final KeyEvent e) {
if (e.getID() == KeyEvent.KEY_PRESSED) {
int code = e.getKeyCode();
if (pressedKeys.contains(code)) {
return false;
}
else {
pressedKeys.add(code);
buttoncount += 1;
previousprevioustime = System.currentTimeMillis() / 1000.0 - previoustime;
previoustime = System.currentTimeMillis() / 1000.0;
lastchar = String.valueOf(e.getKeyChar());
try {
Piano.playNote(String.valueOf(e.getKeyChar()));
} catch (Exception ex) {
Logger.getLogger(MusicFrame.class.getName()).log(Level.SEVERE, null, ex);
}
if (on) {
text.setText(Pitch.NAME_DICT.get(String.valueOf(e.getKeyChar())));
}
}
}
if (e.getID() == KeyEvent.KEY_RELEASED) {
pressedKeys.remove(e.getKeyCode());
thelist.add(new KeyNode(lastchar, previousprevioustime, System.currentTimeMillis() / 1000.0 - previoustime));
}
// Pass the KeyEvent to the next KeyEventDispatcher in the chain
return false;
}
};
KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(keyEventDispatcher);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createGUI() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"My first player\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.getContentPane().setBackground(Color.PINK);\n\t\tbtnPlay.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnPlay.setBounds(27, 80, 107, 22);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnStop.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnStop.setBounds(321, 79, 117, 25);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnPause.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnPause.setBounds(170, 79, 117, 25);\n\t\tbtnPause.setEnabled(false);\n\t\tbtnOpen.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnOpen.setBounds(113, 43, 249, 25);\n\t\tlblMyMusic.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblMyMusic.setForeground(new Color(51, 51, 51));\n\t\tlblMyMusic.setFont(new Font(\"FreeSerif\", Font.BOLD, 20));\n\t\tlblMyMusic.setBounds(101, 174, 261, 57);\n\n\t}",
"Frame createFrame();",
"private MusicPlayer()\n {\n panel = new JFXPanel();\n }",
"private JPanel createMusicPanel() {\n\t\tJPanel musicPanel = new JPanel();\n\t\tmusicPanel.setLayout(new BorderLayout());\n\t\tmusicPanel.setBorder(new EmptyBorder(10, 10, 10, 10));\n\n\t\tJPanel musicTitlePanel = new JPanel();\n\t\tmusicTitlePanel.setLayout(new BorderLayout());\n\t\tJLabel music = new JLabel(\"Music\");\n\t\tmusicTitlePanel.add(music, BorderLayout.WEST);\n\t\tmusicComboBox = new JComboBox(musicCBContent);\n\t\tmusicComboBox.setName(\"musicComboBox\");\n\t\tmusicTitlePanel.add(musicComboBox, BorderLayout.EAST);\n\t\tmusicPanel.add(musicTitlePanel, BorderLayout.NORTH);\n\n\t\tmusicContents = new JPanel();\n\t\tmusicContents.setLayout(new FlowLayout());\n\t\tmusicPanel.add(createJScrollPane(musicContents), BorderLayout.CENTER);\n\n\t\treturn musicPanel;\n\t}",
"public NewJFrame() {\n initComponents();\n audioObject = new PlayAudio();\n setExtendedState(MAXIMIZED_BOTH);\n initTracks(); \n this.setVisible(true);\n jDialog1.setVisible(true);\n }",
"FRAME createFRAME();",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tAllSongs allSongs = new AllSongs();\n\t\t\t\t\t// AllSongs allSongs = new AllSongs();\n\t\t\t\t\tJPanel jp = allSongs.displaySongsOnThePanel(new File(playListPath), false);\n\t\t\t\t\tjavax.swing.GroupLayout allSongsLayout = new javax.swing.GroupLayout(jp);\n\t\t\t\t\tjp.setLayout(allSongsLayout);\n\t\t\t\t\tallSongsLayout.setHorizontalGroup(\n\t\t\t\t\t\t\tallSongsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 510,\n\t\t\t\t\t\t\t\t\tShort.MAX_VALUE));\n\t\t\t\t\tallSongsLayout.setVerticalGroup(\n\t\t\t\t\t\t\tallSongsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 420,\n\t\t\t\t\t\t\t\t\tShort.MAX_VALUE));\n\t\t\t\t\t// JFrame frame3 = new JFrame();\n\t\t\t\t\t// frame3.setSize(500,500);\n\t\t\t\t\t// frame3.setLocation(300,200);\n\t\t\t\t\t// frame3.add(jp);\n\t\t\t\t\t// frame3.setVisible(true);\n//\t\t\t\t\tMusicPlayer.window.add(jp);\n\t\t\t\t\tMusicPlayer.window.getContentPane().add(jp);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(playListFile));\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t/*\n\t\t\t\t\t * On click of crete playlist button, I should be able to\n\t\t\t\t\t * create another button and add it to the panel\n\t\t\t\t\t * ????????????\n\t\t\t\t\t */\n\n\t\t\t\t}",
"private AlbumPanel createAlbumPanel(ArrayList<MP3Info> albumMusicsInfo) {\n MP3Info firstMP3Info = albumMusicsInfo.get(0);\n AlbumPanel album = null;\n String description = \"Album contains \" + albumMusicsInfo.size() + \" songs\";\n try {//creating an album panel with its listener\n album = new AlbumPanel(firstMP3Info.getImage(), firstMP3Info.getAlbum(), description, albumMusicsInfo, this, this);\n } catch (InvalidDataException | IOException | UnsupportedTagException e) {\n JOptionPane.showMessageDialog(null, \"Error reading mp3 file image\", \"An Error Occurred\", JOptionPane.ERROR_MESSAGE);\n }\n return album;\n }",
"public Music createMusic(String file);",
"private void createYourMusicContent() {\n\t\t/**Creates all images we will use for the buttons*/\n\t\tImageIcon image1 = new ImageIcon(sURLFB1);\n\t\tImageIcon image2 = new ImageIcon(sURLFB2);\n\t\tImageIcon image3 = new ImageIcon(sURLFB3);\n\t\tImageIcon image4 = new ImageIcon(sURLFBS1);\n\t\tImageIcon image5 = new ImageIcon(sURLFBS2);\n\t\tImageIcon image6 = new ImageIcon(sURLFBS3);\n\t\tImageIcon image7 = new ImageIcon(sURLFBPL1);\n\t\tImageIcon image8 = new ImageIcon(sURLFBPL2);\n\t\tImageIcon image9 = new ImageIcon(sURLFBPL3);\n\t\n\t\t/**Creates the button of Favourites and configures it*/\n\t\tjbFavorites = new JButton(\"Favorites\");\n\t\tjbFavorites.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbFavorites.setForeground(new Color(150,100,100));\n\t\tjbFavorites.setIcon(image1);\n\t\tjbFavorites.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbFavorites.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbFavorites.setRolloverIcon(image2);\n\t\tjbFavorites.setSelectedIcon(image3);\n\t\tjbFavorites.setContentAreaFilled(false);\n\t\tjbFavorites.setFocusable(false);\n\t\tjbFavorites.setBorderPainted(false);\n\t\t\n\t\t/**Creates the button of Songs and configures it*/\n\t\tjbSongs = new JButton(\"Songs\");\n\t\tjbSongs.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbSongs.setForeground(new Color(150,100,100));\n\t\tjbSongs.setIcon(image4);\n\t\tjbSongs.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbSongs.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbSongs.setRolloverIcon(image5);\n\t\tjbSongs.setSelectedIcon(image6);\n\t\tjbSongs.setContentAreaFilled(false);\n\t\tjbSongs.setFocusable(false);\n\t\tjbSongs.setBorderPainted(false);\n\t\t\n\t\t/**Creates the button of PartyList and configures it*/\n\t\tjbPartyList = new JButton(\"PartyList\");\n\t\tjbPartyList.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbPartyList.setForeground(new Color(150,100,100));\n\t\tjbPartyList.setIcon(image7);\n\t\tjbPartyList.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbPartyList.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbPartyList.setRolloverIcon(image8);\n\t\tjbPartyList.setSelectedIcon(image9);\t\n\t\tjbPartyList.setContentAreaFilled(false);\n\t\tjbPartyList.setFocusable(false);\n\t\tjbPartyList.setBorderPainted(false);\n\t\t\n\t\t/**Creates the panel where we will put all buttons*/\n\t\tjpPreLists = new JPanel(new BorderLayout());\n jpPreLists.setOpaque(false);\n\t\tjpPreLists.add(jbFavorites,BorderLayout.NORTH);\n\t\tjpPreLists.add(jbSongs,BorderLayout.CENTER);\n\t\tjpPreLists.add(jbPartyList,BorderLayout.SOUTH);\n\t}",
"private void createYourMusicTitle() {\n\t\tjpYourMusic = new JPanel(new GridLayout(1,1));\n\t\tjpYourMusic.setOpaque(false);\n\t\tJLabel jlYourMusic = new JLabel(\"YOUR MUSIC\");\t\t\n\t\tjlYourMusic.setFont(new java.awt.Font(\"Century Gothic\",0, 17));\n\t\tjlYourMusic.setForeground(new Color(250,250,250));\n\t\tjpYourMusic.add(jlYourMusic);\n\t}",
"public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }",
"private void makeNewMusic() {\n File f = music.getFile();\n boolean playing = music.isPlaying();\n music.stop();\n music = new MP3(f);\n if (playing) {\n music.play(nextStartTime);\n }\n }",
"public NewFrame() {\n initComponents();\n }",
"public Music()\n {\n this(0, \"\", \"\", \"\", \"\", \"\");\n }",
"private void makeFrame(String[] audioFiles)\r\n {\n setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n \r\n JPanel contentPane = (JPanel)getContentPane();\r\n contentPane.setBorder(new EmptyBorder(6, 10, 10, 10));\r\n\r\n \r\n \r\n // Specify the layout manager with nice spacing\r\n contentPane.setLayout(new BorderLayout(8, 8));\r\n\r\n // Create the left side with combobox and scroll list\r\n JPanel leftPane = new JPanel();\r\n {\r\n leftPane.setLayout(new BorderLayout(8, 8));\r\n\r\n fileList = new JList(audioFiles);\r\n fileList.setForeground(new Color(140,171,226));\r\n fileList.setBackground(new Color(0,0,0));\r\n fileList.setSelectionBackground(new Color(87,49,134));\r\n fileList.setSelectionForeground(new Color(140,171,226));\r\n JScrollPane scrollPane = new JScrollPane(fileList);\r\n scrollPane.setColumnHeaderView(new JLabel(\"Audio files\"));\r\n leftPane.add(scrollPane, BorderLayout.CENTER);\r\n }\r\n contentPane.add(leftPane, BorderLayout.CENTER);\r\n\r\n // Create the center with image, text label, and slider\r\n JPanel centerPane = new JPanel();\r\n {\r\n centerPane.setLayout(new BorderLayout(8, 8));\r\n \r\n \r\n \r\n\r\n infoLabel = new JLabel(\" \");\r\n infoLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n infoLabel.setForeground(new Color(140,171,226));\r\n centerPane.add(infoLabel, BorderLayout.CENTER);\r\n\r\n }\r\n contentPane.add(centerPane, BorderLayout.EAST);\r\n\r\n // Create the toolbar with the buttons\r\n JPanel toolbar = new JPanel();\r\n {\r\n toolbar.setLayout(new GridLayout(1, 0));\r\n \r\n JButton button = new JButton(\"Play\");\r\n button.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) { play(); }\r\n });\r\n toolbar.add(button);\r\n \r\n button = new JButton(\"Stop\");\r\n button.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) { stop(); }\r\n });\r\n toolbar.add(button);\r\n \r\n button = new JButton(\"Pause\");\r\n button.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) { pause(); }\r\n });\r\n toolbar.add(button);\r\n \r\n button = new JButton(\"Resume\");\r\n button.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) { resume(); }\r\n });\r\n toolbar.add(button);\r\n }\r\n \r\n contentPane.add(toolbar, BorderLayout.NORTH);\r\n\r\n // building is done - arrange the components \r\n pack();\r\n \r\n // place this frame at the center of the screen and show\r\n Dimension d = Toolkit.getDefaultToolkit().getScreenSize();\r\n setLocation(d.width/2 - getWidth()/2, d.height/2 - getHeight()/2);\r\n setVisible(true);\r\n }",
"public MediaLibraryGUI() {\r\n initializeFields();\r\n\r\n makeMenu();\r\n\r\n makeCenter();\r\n\r\n makeSouth();\r\n\r\n startGUI();\r\n }",
"private void todoChooserGui() {\r\n jframe = makeFrame(\"My Todo List\", 500, 800, JFrame.EXIT_ON_CLOSE);\r\n panelSelectFile = makePanel(jframe, BorderLayout.CENTER,\r\n \"Choose a Todo\", 150, 50, 200, 25);\r\n JButton clickRetrieve = makeButton(\"retrieveTodo\", \"Retrieve A TodoList\",\r\n 175, 100, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickRetrieve);\r\n JTextField textFieldName = makeJTextField(1, 100, 150, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n panelSelectFile.add(textFieldName);\r\n JButton clickNew = makeButton(\"newTodo\", \"Make New TodoList\",\r\n 250, 150, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickNew);\r\n panelSelectFile.setBackground(Color.WHITE);\r\n jframe.setBackground(Color.PINK);\r\n jframe.setVisible(true);\r\n }",
"public void buildFrame();",
"public MediaView loadMusic(StackPane p)\n {\n String musicLoc = \"PTtheme.mp3\";\n \n Media mjuzik = new Media(new File(musicLoc).toURI().toString());\n MediaPlayer mediaPlayer = new MediaPlayer(mjuzik);\n mediaPlayer.setAutoPlay(true);\n \n playMusic = new Button(\"Music On/Off\");\n \n MediaView mjuzikView = new MediaView(mediaPlayer); \n \n //on click\n playMusic.setOnAction(new EventHandler<ActionEvent>() \n {\n @Override\n public void handle(ActionEvent e) \n {\n Status status = mediaPlayer.getStatus();\n\n if (status == Status.PAUSED || status == Status.READY || status == Status.STALLED || status == Status.STOPPED) \n {\n mediaPlayer.play();\n } \n else \n {\n mediaPlayer.pause();\n }\n }\n });\n \n playMusic.setTranslateX(0);\n playMusic.setTranslateY(-425);\n playMusic.setScaleX(1);\n playMusic.setScaleY(1); \n \n p.getChildren().add(playMusic);\n \n return mjuzikView;\n }",
"public PlayListDialog( Frame owner ) {\n\t\tsuper(owner);\n\t\tinitialize();\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}",
"public void newGame()\n\t{\n\t\tthis.setVisible(false);\n\t\tthis.playingField = null;\n\t\t\n\t\tthis.playingField = new PlayingField(this);\n\t\tthis.setSize(new Dimension((int)playingField.getSize().getWidth()+7, (int)playingField.getSize().getHeight() +51));\n\t\tthis.setLocation(new Point(200,20));\n\t\tthis.setContentPane(playingField);\n\t\t\n\t\tthis.setVisible(true);\n\t}",
"void startMusic(AudioTrack newSong);",
"private void initialMusic(){\n\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}",
"public abstract void renderFrame(Window window, float musicTime);",
"private void initialize() {\n\t\t// play music\n\t\ttry (AudioInputStream audioIn = AudioSystem.getAudioInputStream(new File(\"music.wav\"))) {\n\t\t\tclip = AudioSystem.getClip();\n\t\t\t// Open audio clip and load samples from the audio input stream.\n\t\t\tclip.open(audioIn);\n\t\t\tclip.loop(LOOP_CONTINUOUSLY);\n\t\t} catch (IOException | LineUnavailableException | UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t}\n//\t\tMedia media = new Media(getClass().getResource(\"music.mp3\").toExternalForm());\n//\t\tMediaPlayer player = new MediaPlayer(media);\n//\t\tplayer.play();\n\n\t\t\n\t\tframe = new JFrame();\n\t\tframe.getLayeredPane().setLayout(null);\n\t\tframe.setIconImage(Toolkit.getDefaultToolkit().getImage(\"icon.jpg\"));\n\t\tframe.setTitle(\"\\u5403\\u9E21666\");\n\t\tframe.setBounds(100, 100, 600, 800);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new CardLayout(0, 0));\n\n\t\tfinal JPanel pnlMain = new JPanel();\n\t\tframe.getContentPane().add(pnlMain, \"name_48851763736285\");\n\t\tpnlMain.setLayout(null);\n\t\tpnlMain.setVisible(true);\n\n\t\tfinal JPanel pnlDifficulty = new JPanel();\n\t\tframe.getContentPane().add(pnlDifficulty, \"name_48859887106064\");\n\t\tpnlDifficulty.setLayout(null);\n\t\tpnlDifficulty.setVisible(false);\n\n\t\tfinal JPanel pnlOption = new JPanel();\n\t\tframe.getContentPane().add(pnlOption, \"name_48861624405630\");\n\t\tpnlOption.setLayout(null);\n\t\tpnlOption.setVisible(false);\n\n\t\tfinal JPanel pnlBackgrounds = new JPanel();\n\t\tframe.getContentPane().add(pnlBackgrounds, \"name_48861624405631\");\n pnlBackgrounds.setLayout(new GridLayout(3,2));\n pnlBackgrounds.setVisible(false);\n\n\t\tJButton btnOpt = new JButton(\"Options\");\n\t\tbtnOpt.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlMain.setVisible(false);\n\t\t\t\tpnlOption.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnOpt.setBounds(134, 89, 97, 25);\n\t\tpnlMain.add(btnOpt);\n\n\t\tJButton btnExit = new JButton(\"Exit\");\n\t\tbtnExit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbtnExit.setBounds(134, 150, 97, 25);\n\t\tpnlMain.add(btnExit);\n\n\t\tJButton btnDdiff = new JButton(\"Difficulty\");\n\t\tbtnDdiff.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tpnlDifficulty.setVisible(true);\n\t\t\t\tpnlMain.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tbtnDdiff.setBounds(134, 38, 97, 25);\n\t\tpnlMain.add(btnDdiff);\n\n\n\t\tJButton btnHard = new JButton(\"Hard\");\n\t\tbtnHard.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//FOR GLORIA\n\t\t\t\t//frame.dispose();\n\t\t\t\tframe.setVisible(false);\n//\t\t\t\tnew Main(\"src/board3.txt\");\n\t\t\t\ttry {\n\t\t\t\t\tnew Generator(\"Hard\");\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tnew Main(\"src/project/boards/Hard.txt\", frame);\n\t\t\t}\n\t\t});\n\t\tbtnHard.setBounds(159, 146, 97, 25);\n\t\tpnlDifficulty.add(btnHard);\n\n\t\tJButton btnMedium = new JButton(\"Normal\");\n\t\tbtnMedium.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//FOR GLORIA\n\t\t\t\t//frame.dispose();\n\t\t\t\tframe.setVisible(false);\n//\t\t\t\tnew Main(\"src/board2.txt\");\n\t\t\t\ttry {\n\t\t\t\t\tnew Generator(\"Normal\");\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tnew Main(\"src/project/boards/Normal.txt\", frame);\n\t\t\t}\n\t\t});\n\t\tbtnMedium.setBounds(159, 91, 97, 25);\n\t\tpnlDifficulty.add(btnMedium);\n\n\t\tJButton btnEasy = new JButton(\"Easy\");\n\t\tbtnEasy.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//FOR GLORIA\n\t\t\t\t//frame.dispose();\n\t\t\t\tframe.setVisible(false);\n\t\t\t\ttry {\n\t\t\t\t\tnew Generator(\"Easy\");\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tnew Main(\"src/project/boards/Easy.txt\", frame);\n\t\t\t}\n\t\t});\n\t\tbtnEasy.setBounds(159, 41, 97, 25);\n\t\tpnlDifficulty.add(btnEasy);\n\n\t\tJButton btnHome = new JButton(\"Home\");\n\t\tbtnHome.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlDifficulty.setVisible(false);\n\t\t\t\tpnlMain.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnHome.setBounds(159, 200, 97, 25);\n\t\tpnlDifficulty.add(btnHome);\n\n\t\tJButton btnMute = new JButton(\"Music off\");\n\t\tbtnMute.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (clip.isRunning()) {\n\t\t\t\t\tclip.stop();\n\t\t\t\t\tbtnMute.setText(\"Music On\");\n\t\t\t\t} else {\n\t\t\t\t\tclip.start();\n\t\t\t\t\tbtnMute.setText(\"Music Off\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tbtnMute.setBounds(152, 34, 97, 25);\n\t\tpnlOption.add(btnMute);\n\t\t\n\t\t//Zheng's bg 1 button start\n\t\tJButton btnBackground1 = new JButton();\n\t\tfinal String name1 = \"1.jpg\";\n\t\ttry {\n\t\t\tbtnBackground1.setIcon(new ImageIcon(ImageIO.read(getClass().getResource(name1)).getScaledInstance(100, 70, Image.SCALE_SMOOTH)));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tbtnBackground1.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tBoard.backgroundImage = \"1.jpg\";\n pnlBackgrounds.setVisible(false);\n pnlOption.setVisible(true);\n }\n\t\t});\n\t\tpnlBackgrounds.add(btnBackground1);\n\t\t//Zheng's bg 1 button ends\n\t\t\n\t\t\n\t\t//Zheng's bg 2 button start\n\t\tJButton btnBackground2 = new JButton();\n\t\tfinal String name2 = \"2.jpg\";\n\t\ttry {\n\t\t\tbtnBackground2.setIcon(new ImageIcon(ImageIO.read(getClass().getResource(name2)).getScaledInstance(100, 70, Image.SCALE_SMOOTH)));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tbtnBackground2.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tBoard.backgroundImage = \"2.jpg\";\n pnlBackgrounds.setVisible(false);\n pnlOption.setVisible(true);\n }\n\t\t});\n\t\tpnlBackgrounds.add(btnBackground2);\n\t\t//Zheng's bg 2 button ends\n\n\t\t//Zheng's bg 3 button start\n\t\tJButton btnBackground3 = new JButton();\n\t\tfinal String name3 = \"3.jpg\";\n\t\ttry {\n\t\t\tbtnBackground3.setIcon(new ImageIcon(ImageIO.read(getClass().getResource(name3)).getScaledInstance(100, 70, Image.SCALE_SMOOTH)));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tbtnBackground3.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tBoard.backgroundImage = \"3.jpg\";\n pnlBackgrounds.setVisible(false);\n pnlOption.setVisible(true);\n }\n\t\t});\n\t\tpnlBackgrounds.add(btnBackground3);\n\t\t//Zheng's bg 3 button ends\n\t\t\n\t\t//Zheng's bg 3 button start\n\t\tJButton btnBackground4 = new JButton();\n\t\tfinal String name4 = \"4.jpg\";\n\t\ttry {\n\t\t\tbtnBackground4.setIcon(new ImageIcon(ImageIO.read(getClass().getResource(name4)).getScaledInstance(100, 70, Image.SCALE_SMOOTH)));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tbtnBackground4.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tBoard.backgroundImage = \"4.jpg\";\n pnlBackgrounds.setVisible(false);\n pnlOption.setVisible(true);\n }\n\t\t});\n\t\tpnlBackgrounds.add(btnBackground4);\n\t\t//Zheng's bg 3 button ends\n\t\t\n\n\n\t\tJButton btnHome_3 = new JButton(\"Back\");\n\t\tbtnHome_3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlBackgrounds.setVisible(false);\n\t\t\t\tpnlOption.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tpnlBackgrounds.add(btnHome_3); \n\t\t\n\n\t\tJButton btnOption2 = new JButton(\"Background\");\n\t\tbtnOption2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlOption.setVisible(false);\n\t\t\t\tpnlBackgrounds.setVisible(true);\n\t\t\t}\n\t\t});\n\n\t\tbtnOption2.setBounds(152, 80, 97, 25);\n\t\tpnlOption.add(btnOption2);\n\n\t\tJButton btnHome_1 = new JButton(\"Home\");\n\t\tbtnHome_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlOption.setVisible(false);\n\t\t\t\tpnlMain.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnHome_1.setBounds(152, 140, 97, 25);\n\t\tpnlOption.add(btnHome_1);\n\t}",
"private void startGUI() {\r\n myFrame.setTitle(\"Media Library\");\r\n myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n myFrame.setLocationByPlatform(true);\r\n myFrame.pack();\r\n\r\n myFrame.setVisible(true);\r\n }",
"public void setMusic(Music music);",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n clockTitle = new javax.swing.JLabel();\n MP3Title = new javax.swing.JLabel();\n helpButton = new javax.swing.JLabel();\n minimize_button = new javax.swing.JLabel();\n close_button = new javax.swing.JLabel();\n custom_frame = new javax.swing.JLabel();\n left_arrow = new javax.swing.JLabel();\n clock_button = new javax.swing.JLabel();\n alarm_button = new javax.swing.JLabel();\n stopwatch_button = new javax.swing.JLabel();\n play_button = new javax.swing.JLabel();\n pause_button = new javax.swing.JLabel();\n rewind_button = new javax.swing.JLabel();\n stop_button = new javax.swing.JLabel();\n forward_button = new javax.swing.JLabel();\n right_arrow = new javax.swing.JLabel();\n clockLabel = new javax.swing.JLabel();\n plusHourButton = new javax.swing.JLabel();\n plusMinuteButton = new javax.swing.JLabel();\n minusHourButton = new javax.swing.JLabel();\n minusMinuteButton = new javax.swing.JLabel();\n hourInAlarm = new javax.swing.JLabel();\n colonSymbol = new javax.swing.JLabel();\n minuteInAlarm = new javax.swing.JLabel();\n backgroundHourDisplay = new javax.swing.JLabel();\n backgroundMinuteDisplay = new javax.swing.JLabel();\n timeRemaining = new javax.swing.JLabel();\n setAlarm = new javax.swing.JButton();\n stopAlarm = new javax.swing.JButton();\n stopwatchLabel = new javax.swing.JLabel();\n startStopwatch = new javax.swing.JButton();\n stopStopwatch = new javax.swing.JButton();\n songTitle = new javax.swing.JTextField();\n songListScrollPane = new javax.swing.JScrollPane();\n songList = new javax.swing.JList();\n lapStopwatch = new javax.swing.JButton();\n resetStopwatch = new javax.swing.JButton();\n select_file = new javax.swing.JLabel();\n lapStopwatchDisplay = new javax.swing.JLabel();\n background1 = new javax.swing.JLabel();\n shortcutJam = new javax.swing.JTextField();\n background2 = new javax.swing.JLabel();\n\n jLabel1.setText(\"jLabel1\");\n\n jLabel2.setText(\"jLabel2\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(0, 0, 0));\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setForeground(new java.awt.Color(0, 0, 0));\n setMaximumSize(new java.awt.Dimension(420, 210));\n setMinimumSize(new java.awt.Dimension(420, 210));\n setUndecorated(true);\n setPreferredSize(new java.awt.Dimension(420, 210));\n getContentPane().setLayout(null);\n\n clockTitle.setFont(new java.awt.Font(\"Verdana\", 0, 11)); // NOI18N\n clockTitle.setForeground(new java.awt.Color(255, 255, 255));\n clockTitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n clockTitle.setText(\"Clock\");\n clockTitle.setToolTipText(\"\");\n getContentPane().add(clockTitle);\n clockTitle.setBounds(160, 5, 90, 15);\n\n MP3Title.setFont(new java.awt.Font(\"Verdana\", 0, 11)); // NOI18N\n MP3Title.setForeground(new java.awt.Color(255, 255, 255));\n MP3Title.setText(\"MP3 Player\");\n getContentPane().add(MP3Title);\n MP3Title.setBounds(-230, 5, 63, 15);\n\n helpButton.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n helpButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/help.png\"))); // NOI18N\n helpButton.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n helpButton.setMaximumSize(new java.awt.Dimension(20, 20));\n helpButton.setMinimumSize(new java.awt.Dimension(20, 20));\n helpButton.setName(\"\"); // NOI18N\n helpButton.setPreferredSize(new java.awt.Dimension(20, 20));\n helpButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n helpButtonMouseClicked(evt);\n }\n });\n getContentPane().add(helpButton);\n helpButton.setBounds(354, 2, 20, 20);\n\n minimize_button.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n minimize_button.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/minimize.png\"))); // NOI18N\n minimize_button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n minimize_button.setMaximumSize(new java.awt.Dimension(20, 20));\n minimize_button.setMinimumSize(new java.awt.Dimension(20, 20));\n minimize_button.setPreferredSize(new java.awt.Dimension(20, 20));\n minimize_button.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n minimize_buttonMouseClicked(evt);\n }\n });\n getContentPane().add(minimize_button);\n minimize_button.setBounds(376, 2, 20, 20);\n\n close_button.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n close_button.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/close.png\"))); // NOI18N\n close_button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n close_button.setMaximumSize(new java.awt.Dimension(20, 20));\n close_button.setMinimumSize(new java.awt.Dimension(20, 20));\n close_button.setPreferredSize(new java.awt.Dimension(20, 20));\n close_button.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n close_buttonMouseClicked(evt);\n }\n });\n getContentPane().add(close_button);\n close_button.setBounds(398, 2, 20, 20);\n\n custom_frame.setBackground(new java.awt.Color(184, 191, 191));\n custom_frame.setForeground(new java.awt.Color(184, 191, 191));\n custom_frame.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/frame_abu.png\"))); // NOI18N\n custom_frame.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n custom_frameMousePressed(evt);\n }\n });\n custom_frame.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n custom_frameMouseDragged(evt);\n }\n });\n getContentPane().add(custom_frame);\n custom_frame.setBounds(0, -5, 420, 30);\n\n left_arrow.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/panah kiri.png\"))); // NOI18N\n left_arrow.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n left_arrow.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n left_arrowMousePressed(evt);\n }\n });\n getContentPane().add(left_arrow);\n left_arrow.setBounds(436, 100, 24, 24);\n\n clock_button.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/clock_white.png\"))); // NOI18N\n clock_button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n clock_button.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n clock_buttonMouseClicked(evt);\n }\n });\n getContentPane().add(clock_button);\n clock_button.setBounds(10, 40, 33, 33);\n\n alarm_button.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/alarm_white.png\"))); // NOI18N\n alarm_button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n alarm_button.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n alarm_buttonMouseClicked(evt);\n }\n });\n getContentPane().add(alarm_button);\n alarm_button.setBounds(10, 100, 33, 33);\n\n stopwatch_button.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n stopwatch_button.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/stopwatch_white.png\"))); // NOI18N\n stopwatch_button.setToolTipText(\"\");\n stopwatch_button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n stopwatch_button.setMaximumSize(new java.awt.Dimension(33, 33));\n stopwatch_button.setMinimumSize(new java.awt.Dimension(33, 33));\n stopwatch_button.setPreferredSize(new java.awt.Dimension(33, 33));\n stopwatch_button.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n stopwatch_buttonMouseClicked(evt);\n }\n });\n getContentPane().add(stopwatch_button);\n stopwatch_button.setBounds(10, 160, 33, 33);\n\n play_button.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/play1.png\"))); // NOI18N\n play_button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n play_button.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n play_buttonMouseClicked(evt);\n }\n });\n getContentPane().add(play_button);\n play_button.setBounds(604, 77, 56, 56);\n\n pause_button.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/pause1.png\"))); // NOI18N\n pause_button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n pause_button.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n pause_buttonMouseClicked(evt);\n }\n });\n getContentPane().add(pause_button);\n pause_button.setBounds(605, 77, 56, 56);\n\n rewind_button.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/rewind.png\"))); // NOI18N\n rewind_button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n rewind_button.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n rewind_buttonMouseClicked(evt);\n }\n });\n getContentPane().add(rewind_button);\n rewind_button.setBounds(565, 83, 40, 40);\n\n stop_button.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/stop.png\"))); // NOI18N\n stop_button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n stop_button.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n stop_buttonMouseClicked(evt);\n }\n });\n getContentPane().add(stop_button);\n stop_button.setBounds(525, 83, 40, 40);\n\n forward_button.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/forward.png\"))); // NOI18N\n forward_button.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n forward_button.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n forward_buttonMouseClicked(evt);\n }\n });\n getContentPane().add(forward_button);\n forward_button.setBounds(660, 83, 40, 40);\n\n right_arrow.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/panah kanan.png\"))); // NOI18N\n right_arrow.setText(\"jLabel3\");\n right_arrow.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n right_arrow.setMaximumSize(new java.awt.Dimension(24, 24));\n right_arrow.setMinimumSize(new java.awt.Dimension(24, 24));\n right_arrow.setPreferredSize(new java.awt.Dimension(24, 24));\n right_arrow.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n right_arrowMousePressed(evt);\n }\n });\n getContentPane().add(right_arrow);\n right_arrow.setBounds(380, 100, 24, 24);\n\n clockLabel.setBackground(new java.awt.Color(0, 0, 0));\n clockLabel.setFont(new java.awt.Font(\"DS-Digital\", 1, 48)); // NOI18N\n clockLabel.setForeground(new java.awt.Color(255, 255, 255));\n clockLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n clockLabel.setText(\"CLOCK\");\n clockLabel.setMaximumSize(new java.awt.Dimension(290, 60));\n clockLabel.setMinimumSize(new java.awt.Dimension(290, 60));\n clockLabel.setPreferredSize(new java.awt.Dimension(290, 60));\n getContentPane().add(clockLabel);\n clockLabel.setBounds(70, 80, 290, 60);\n\n plusHourButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/plus.png\"))); // NOI18N\n plusHourButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n plusHourButtonMouseClicked(evt);\n }\n });\n getContentPane().add(plusHourButton);\n plusHourButton.setBounds(120, 90, 50, 20);\n\n plusMinuteButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/plus.png\"))); // NOI18N\n plusMinuteButton.setText(\"jLabel3\");\n plusMinuteButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n plusMinuteButtonMouseClicked(evt);\n }\n });\n getContentPane().add(plusMinuteButton);\n plusMinuteButton.setBounds(190, 90, 50, 20);\n\n minusHourButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/minus.png\"))); // NOI18N\n minusHourButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n minusHourButtonMouseClicked(evt);\n }\n });\n getContentPane().add(minusHourButton);\n minusHourButton.setBounds(120, 153, 50, 20);\n\n minusMinuteButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/minus.png\"))); // NOI18N\n minusMinuteButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n minusMinuteButtonMouseClicked(evt);\n }\n });\n getContentPane().add(minusMinuteButton);\n minusMinuteButton.setBounds(190, 153, 50, 20);\n\n hourInAlarm.setFont(new java.awt.Font(\"DS-Digital\", 0, 36)); // NOI18N\n hourInAlarm.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n hourInAlarm.setText(\"00\");\n getContentPane().add(hourInAlarm);\n hourInAlarm.setBounds(120, 110, 50, 40);\n\n colonSymbol.setFont(new java.awt.Font(\"DS-Digital\", 0, 36)); // NOI18N\n colonSymbol.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n colonSymbol.setText(\":\");\n getContentPane().add(colonSymbol);\n colonSymbol.setBounds(170, 110, 20, 40);\n\n minuteInAlarm.setFont(new java.awt.Font(\"DS-Digital\", 0, 36)); // NOI18N\n minuteInAlarm.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n minuteInAlarm.setText(\"00\");\n getContentPane().add(minuteInAlarm);\n minuteInAlarm.setBounds(190, 110, 50, 40);\n\n backgroundHourDisplay.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/background_putih 50x40.png\"))); // NOI18N\n backgroundHourDisplay.setText(\"sg\");\n getContentPane().add(backgroundHourDisplay);\n backgroundHourDisplay.setBounds(120, 110, 50, 40);\n\n backgroundMinuteDisplay.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/background_putih 50x40.png\"))); // NOI18N\n getContentPane().add(backgroundMinuteDisplay);\n backgroundMinuteDisplay.setBounds(190, 110, 50, 40);\n\n timeRemaining.setFont(new java.awt.Font(\"Simplified Arabic Fixed\", 0, 11)); // NOI18N\n timeRemaining.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n getContentPane().add(timeRemaining);\n timeRemaining.setBounds(100, 30, 230, 60);\n\n setAlarm.setText(\"Set\");\n setAlarm.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n setAlarmActionPerformed(evt);\n }\n });\n getContentPane().add(setAlarm);\n setAlarm.setBounds(270, 120, 49, 23);\n\n stopAlarm.setText(\"Dismiss\");\n stopAlarm.setMaximumSize(new java.awt.Dimension(60, 60));\n stopAlarm.setMinimumSize(new java.awt.Dimension(49, 49));\n stopAlarm.setOpaque(false);\n stopAlarm.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n stopAlarmActionPerformed(evt);\n }\n });\n getContentPane().add(stopAlarm);\n stopAlarm.setBounds(270, 120, 67, 23);\n\n stopwatchLabel.setBackground(new java.awt.Color(0, 0, 0));\n stopwatchLabel.setFont(new java.awt.Font(\"DS-Digital\", 1, 48)); // NOI18N\n stopwatchLabel.setForeground(new java.awt.Color(255, 255, 255));\n stopwatchLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n stopwatchLabel.setText(\"00 : 00 : 000\");\n stopwatchLabel.setMaximumSize(new java.awt.Dimension(290, 60));\n stopwatchLabel.setMinimumSize(new java.awt.Dimension(290, 60));\n stopwatchLabel.setPreferredSize(new java.awt.Dimension(290, 60));\n getContentPane().add(stopwatchLabel);\n stopwatchLabel.setBounds(70, 80, 290, 60);\n\n startStopwatch.setText(\"Start\");\n startStopwatch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n startStopwatchActionPerformed(evt);\n }\n });\n getContentPane().add(startStopwatch);\n startStopwatch.setBounds(100, 150, 100, 23);\n\n stopStopwatch.setText(\"Stop\");\n stopStopwatch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n stopStopwatchActionPerformed(evt);\n }\n });\n getContentPane().add(stopStopwatch);\n stopStopwatch.setBounds(100, 150, 100, 20);\n\n songTitle.setEditable(false);\n songTitle.setBackground(new java.awt.Color(255, 153, 153));\n songTitle.setFont(new java.awt.Font(\"Segoe UI Symbol\", 0, 14)); // NOI18N\n songTitle.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n songTitle.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n songTitle.setEnabled(false);\n songTitle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n songTitleActionPerformed(evt);\n }\n });\n getContentPane().add(songTitle);\n songTitle.setBounds(530, 40, 200, 30);\n\n songListScrollPane.setEnabled(false);\n\n songList.setBackground(new java.awt.Color(204, 255, 153));\n songList.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n songList.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Sam Tsui - Born This Way\", \"Sam Tsui - Bring Me The Night\", \"Sam Tsui - DJ Got Us Falling In Love\", \"Sam Tsui - Don't You Worry Child\", \"Sam Tsui - Fireflies\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n songList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n songList.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n songList.setEnabled(false);\n songList.setOpaque(false);\n songList.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n songListMouseClicked(evt);\n }\n });\n songList.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n songListKeyPressed(evt);\n }\n });\n songListScrollPane.setViewportView(songList);\n\n getContentPane().add(songListScrollPane);\n songListScrollPane.setBounds(530, 130, 210, 70);\n\n lapStopwatch.setText(\"Lap\");\n lapStopwatch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n lapStopwatchActionPerformed(evt);\n }\n });\n getContentPane().add(lapStopwatch);\n lapStopwatch.setBounds(220, 150, 110, 23);\n\n resetStopwatch.setText(\"Reset\");\n resetStopwatch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n resetStopwatchActionPerformed(evt);\n }\n });\n getContentPane().add(resetStopwatch);\n resetStopwatch.setBounds(220, 150, 110, 23);\n\n select_file.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/select_file1.png\"))); // NOI18N\n select_file.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n select_fileMouseClicked(evt);\n }\n });\n getContentPane().add(select_file);\n select_file.setBounds(700, 83, 40, 40);\n\n lapStopwatchDisplay.setFont(new java.awt.Font(\"DS-Digital\", 0, 24)); // NOI18N\n lapStopwatchDisplay.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n getContentPane().add(lapStopwatchDisplay);\n lapStopwatchDisplay.setBounds(110, 40, 200, 30);\n\n background1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/background_biru.png\"))); // NOI18N\n background1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n background1KeyPressed(evt);\n }\n });\n getContentPane().add(background1);\n background1.setBounds(0, 0, 420, 210);\n\n shortcutJam.setFont(new java.awt.Font(\"Tahoma\", 0, 1)); // NOI18N\n shortcutJam.setForeground(new java.awt.Color(255, 255, 255));\n shortcutJam.setToolTipText(\"\");\n shortcutJam.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n shortcutJam.setOpaque(false);\n shortcutJam.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n shortcutJamKeyPressed(evt);\n }\n });\n getContentPane().add(shortcutJam);\n shortcutJam.setBounds(0, 0, 420, 210);\n\n background2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AppPackages/background_pink.png\"))); // NOI18N\n background2.setText(\"jLabel2\");\n background2.setMaximumSize(new java.awt.Dimension(420, 210));\n background2.setMinimumSize(new java.awt.Dimension(420, 210));\n background2.setPreferredSize(new java.awt.Dimension(420, 210));\n background2.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n background2KeyReleased(evt);\n }\n });\n getContentPane().add(background2);\n background2.setBounds(420, 0, 420, 210);\n\n pack();\n setLocationRelativeTo(null);\n }",
"public FrameForm() {\n initComponents();\n }",
"private void makeFrame(String[] audioFiles) {\n // the following makes sure that our application exits when\n // the user closes its window\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n JPanel contentPane = (JPanel) getContentPane();\n contentPane.setBorder(new EmptyBorder(6, 10, 10, 10));\n contentPane.setPreferredSize(new Dimension(920, 500));\n makeMenuBar();\n\n // Specify the layout manager with nice spacing\n contentPane.setLayout(new BorderLayout(8, 8));\n\n // Create the left side with combobox and scroll list\n JPanel leftPane = new JPanel(); {\n leftPane.setLayout(new BorderLayout(8, 8));\n\n String[] formats = {\"all formats\", \".wav\", \".au\", \".aif\"};\n\n // Create the combo box.\n JComboBox formatList = new JComboBox(formats);\n formatList.setBackground(Color.BLACK);\n formatList.setForeground(new Color(140, 171, 226));\n formatList.addActionListener(this);\n leftPane.add(formatList, BorderLayout.NORTH);\n\n // Create the scrolled list for file names\n audioListModel = new DefaultListModel();\n audioList = new JList(audioListModel);\n for(int i = 0; i < audioFiles.length; i++)\n audioListModel.addElement(audioFiles[i]);\n setBackground(audioList);\n JScrollPane scrollPane = new JScrollPane(audioList);\n scrollPane.setColumnHeaderView(new JLabel(\"Audio files\"));\n leftPane.add(scrollPane, BorderLayout.CENTER);\n //leftPane.setBackground(Color.BLACK);\n }\n contentPane.add(leftPane, BorderLayout.CENTER);\n\n //Create the right side with the Initial list and Updated list\n JPanel rightPane = new JPanel(); {\n //Create the Button # label and comboBox\n JPanel orderPanel = new JPanel(); {\n orderPanel.setLayout(new FlowLayout());\n\n Font font = new Font(\"Verdana\", Font.BOLD,12);\n\n JLabel orderLabel = new JLabel(\"Button #: \");\n orderLabel.setFont(font);\n if(orderModel == null) {\n orderModel = new DefaultComboBoxModel();\n order = new JComboBox(orderModel);\n for (int i = 1; i <= orderButtons.length; i++)\n orderModel.addElement(i);\n }\n order.setBackground(Color.BLACK);\n order.setForeground(new Color(140, 171, 226));\n orderPanel.add(orderLabel);\n orderPanel.add(order);\n\n JLabel initialLabel = new JLabel(\"Initial List: \");\n initialLabel.setFont(font);\n orderPanel.add(initialLabel);\n\n //Add button to add new button in simulator app.\n addNewBtn = new JButton();\n ImageIcon addNewIcn = new ImageIcon(\"Icons/Add.png\");\n setButtonIcon(addNewBtn, addNewIcn);\n addNewBtn.setToolTipText(\"Add New Button\");\n addNewBtn.addActionListener(e -> addInitialBtn(audioFiles));\n orderPanel.add(addNewBtn);\n\n //Add remove button to new remove the last button created in simulator app.\n removeNewBtn = new JButton();\n ImageIcon removeIcn = new ImageIcon(\"Icons/Remove.png\");\n setButtonIcon(removeNewBtn, removeIcn);\n removeNewBtn.setToolTipText(\"Remove from Initial List\");\n removeNewBtn.addActionListener(e -> removeInitialBtn());\n orderPanel.add(removeNewBtn);\n //orderPanel.setBackground(Color.BLACK);\n\n JLabel finalLabel = new JLabel(\"Final List: \");\n finalLabel.setFont(font);\n orderPanel.add(finalLabel);\n\n //Add Edit button to add audio files to final list.\n addFinalBtn = new JButton();\n ImageIcon addFinalIcn = new ImageIcon(\"Icons/Add.png\");\n setButtonIcon(addFinalBtn, addFinalIcn);\n addFinalBtn.setToolTipText(\"Add to Final List\");\n addFinalBtn.addActionListener(e -> addFinalBtn());\n orderPanel.add(addFinalBtn);\n\n //Add remove button to new remove the last button created in simulator app.\n removeFinalBtn = new JButton();\n ImageIcon removeFinalIcn = new ImageIcon(\"Icons/Remove.png\");\n setButtonIcon(removeFinalBtn, removeFinalIcn);\n removeFinalBtn.setToolTipText(\"Remove from Final List\");\n removeFinalBtn.addActionListener(e -> removeFinalBtn());\n orderPanel.add(removeFinalBtn);\n\n //Add Record Button to record new audio files.\n// JButton recordBtn = new JButton();\n// ImageIcon recordIcn = new ImageIcon(\"Icons/Record.png\");\n// setButtonIcon(recordBtn, recordIcn);\n// recordBtn.setToolTipText(\"Record\");\n// recordBtn.addActionListener(e -> {\n// recordBtn.setVisible(false);\n// ImageIcon stopRcdIcn = new ImageIcon(\"Icons/Stop.png\");\n// JButton stopRcdBtn = new JButton();\n// setButtonIcon(stopRcdBtn, stopRcdIcn);\n// stopRcdBtn.setToolTipText(\"Stop Recording\");\n// stopRcdBtn.addActionListener(e1 -> {\n// stopRcdBtn.setVisible(false);\n// recordBtn.setVisible(true);\n// stopRecording();\n// });\n// startRecording();\n// orderPanel.add(stopRcdBtn);\n// });\n// orderPanel.add(recordBtn);\n // Add button to launch Simulator App\n launchSimApp = new JButton();\n ImageIcon launchIcn = new ImageIcon(\"Icons/Launch.png\");\n setButtonIcon(launchSimApp, launchIcn);\n launchSimApp.setToolTipText(\"Launch Simulator\");\n launchSimApp.addActionListener(e -> {\n if(sounds.exists()) {\n SimulatorApp myFrame = new SimulatorApp();\n myFrame.setVisible(true);\n myFrame.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n }\n else {\n JOptionPane.showMessageDialog(null, \"Please try to save before launching simulator app\");\n }\n });\n orderPanel.add(launchSimApp);\n }\n rightPane.setLayout(new BorderLayout(8, 8));\n rightPane.add(orderPanel, BorderLayout.CENTER);\n // Create the scrolled list for Initial List\n if(initialListModel == null)\n {\n initialListModel = new DefaultListModel();\n initialList = new JList(initialListModel);\n for (int i = 0; i < order.getItemCount(); i++)\n initialListModel.addElement(audioFiles[i]);\n }\n setBackground(initialList);\n initialList.setPrototypeCellValue(\"XXXXXXXXXXXXXXXXXXX\");\n JScrollPane leftScrollPane = new JScrollPane(initialList);\n leftScrollPane.setColumnHeaderView(new JLabel(\"Initial List : What You Had\"));\n rightPane.add(leftScrollPane, BorderLayout.WEST);\n\n //Create the scrolled list for Updated List\n finalListModel = new DefaultListModel();\n finalList = new JList(finalListModel);\n setBackground(finalList);\n finalList.setPrototypeCellValue(\"XXXXXXXXXXXXXXXXXXXX\");\n JScrollPane rightScrollPane = new JScrollPane(finalList);\n\n //Add all elements from initial list to final list when app is started.\n for (int i=0; i<initialListModel.getSize(); i++)\n finalListModel.addElement(initialListModel.elementAt(i));\n\n rightScrollPane.setColumnHeaderView(new JLabel(\"Final List : What You Want\"));\n rightPane.add(rightScrollPane, BorderLayout.EAST);\n //rightPane.setBackground(Color.BLACK);\n }\n contentPane.add(rightPane, BorderLayout.SOUTH);\n\n // Create the center with image, text label, and slider\n JPanel centerPane = new JPanel(); {\n centerPane.setLayout(new BorderLayout(8, 8));\n\n JLabel image = new JLabel(new ImageIcon(\"title.jpg\"));\n centerPane.add(image, BorderLayout.NORTH);\n centerPane.setBackground(Color.BLACK);\n\n infoLabel = new JLabel(\" \");\n infoLabel.setHorizontalAlignment(SwingConstants.CENTER);\n infoLabel.setForeground(new Color(140,171,226));\n centerPane.add(infoLabel, BorderLayout.CENTER);\n\n slider = new JSlider(0, 100, 0);\n TitledBorder border = new TitledBorder(\"Seek\");\n border.setTitleColor(Color.white);\n slider.setBorder(new CompoundBorder(new EmptyBorder(6, 10, 10, 10), border));\n slider.addChangeListener(this);\n slider.setBackground(Color.BLACK);\n slider.setMajorTickSpacing(25);\n slider.setPaintTicks(true);\n slider.addChangeListener(new ChangeListener() {\n @Override\n public void stateChanged(ChangeEvent e) {\n player.setVolume(slider.getValue());\n }\n });\n centerPane.add(slider, BorderLayout.SOUTH);\n //centerPane.setBackground(Color.BLACK);\n }\n contentPane.add(centerPane, BorderLayout.EAST);\n\n // Create the toolbar with the buttons\n JPanel toolbar = new JPanel(); {\n toolbar.setLayout(new GridLayout(1, 0));\n\n playBtn = new JButton();\n ImageIcon playIcn = new ImageIcon(\"Icons/Play.png\");\n playBtn.setToolTipText(\"Play\");\n setButtonIcon(playBtn, playIcn);\n playBtn.addActionListener(e -> play());\n toolbar.add(playBtn);\n\n stopBtn = new JButton();\n ImageIcon stopIcn = new ImageIcon(\"Icons/Stop.png\");\n setButtonIcon(stopBtn, stopIcn);\n stopBtn.setToolTipText(\"Stop\");\n stopBtn.addActionListener(e -> stop());\n toolbar.add(stopBtn);\n\n pauseBtn = new JButton();\n ImageIcon pauseIcn = new ImageIcon(\"Icons/Pause.png\");\n setButtonIcon(pauseBtn, pauseIcn);\n pauseBtn.setToolTipText(\"Pause\");\n pauseBtn.addActionListener(e -> pause());\n toolbar.add(pauseBtn);\n\n resumeBtn = new JButton();\n ImageIcon resumeIcn = new ImageIcon(\"Icons/Play.png\");\n setButtonIcon(resumeBtn, resumeIcn);\n resumeBtn.setToolTipText(\"Resume\");\n resumeBtn.addActionListener(e -> resume());\n toolbar.add(resumeBtn);\n\n resetBtn = new JButton();\n ImageIcon resetIcn = new ImageIcon(\"Icons/Reset.png\");\n setButtonIcon(resetBtn, resetIcn);\n resetBtn.setToolTipText(\"Reset\");\n resetBtn.addActionListener(e -> reset(audioFiles));\n toolbar.add(resetBtn);\n\n swapBtn = new JButton();\n ImageIcon swapIcn = new ImageIcon(\"Icons/Swap.png\");\n setButtonIcon(swapBtn, swapIcn);\n swapBtn.setToolTipText(\"Swap\");\n swapBtn.addActionListener(e -> swap(audioFiles));\n toolbar.add(swapBtn);\n\n saveChangesBtn = new JButton();\n ImageIcon saveChangesIcn = new ImageIcon(\"Icons/Save.png\");\n setButtonIcon(saveChangesBtn, saveChangesIcn);\n saveChangesBtn.setToolTipText(\"Save Changes\");\n saveChangesBtn.addActionListener(e -> saveChanges());\n toolbar.add(saveChangesBtn);\n //toolbar.setBackground(Color.BLACK);\n }\n\n contentPane.add(toolbar, BorderLayout.NORTH);\n //contentPane.setBackground(Color.black);\n\n // building is done - arrange the components\n pack();\n\n // place this frame at the center of the screen and show\n Dimension d = Toolkit.getDefaultToolkit().getScreenSize();\n setLocation(d.width/2 - getWidth()/2, d.height/2 - getHeight()/2);\n setVisible(true);\n }",
"private void favouriteChampion() {\r\n JFrame recordWindow = new JFrame(\"Favourite a champion\");\r\n// recordWindow.setLocationRelativeTo(null);\r\n// recordWindow.getContentPane().setLayout(new BoxLayout(recordWindow.getContentPane(), BoxLayout.Y_AXIS));\r\n initiateFavouriteChampionFields(recordWindow);\r\n new Frame(recordWindow);\r\n// recordWindow.pack();\r\n// recordWindow.setVisible(true);\r\n }",
"public NewJFrame() {\r\n initComponents();\r\n }",
"private void createMusicButton(String text) {\n music = new TextButton(text, skin);\n music.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent e, float x, float y) {\n musicClicked();\n }\n });\n table.add(music).width(120).height(60).expandX();\n setSoundButtonColor(MatchScreen.getMusicVolume() == 0, music);\n }",
"private void fillMusicList()\n\t{\n\t\tmusicList.add(\"violin\");\n\t\tmusicList.add(\"viola\");\n\t\tmusicList.add(\"cello\");\n\t\tmusicList.add(\"bass\");\n\t\tmusicList.add(\"guitar\");\n\t\tmusicList.add(\"drums\");\n\t\tmusicList.add(\"tuba\");\n\t\tmusicList.add(\"flute\");\n\t\tmusicList.add(\"harp\");\n\t}",
"public NewJFrame() {\n initComponents();\n \n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public SMFrame() {\n initComponents();\n updateComponents();\n }",
"public FrameInsert() {\n initComponents();\n }",
"public addStFrame() {\n initComponents();\n }",
"public NewJFrame()\r\n {\r\n initComponents();\r\n }",
"public NewJFrame() {\n Connect();\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}",
"private static void createAndShowGUI()\r\n {\r\n JFrame frame = new JFrame(\"ChangingTitleFrame Application\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(new FramePanel(frame).getPanel());\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }",
"public Credits (JFrame frame)\r\n {\r\n super();\r\n this.setLayout (null); \r\n count = 0;\r\n this.frame = frame;\r\n playEnd();\r\n \r\n }",
"public MercadoFrame() {\n initComponents();\n }",
"private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }",
"public FrameControl() {\n initComponents();\n }",
"@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}",
"FRAMESET createFRAMESET();",
"public Frame() {\n initComponents();\n }",
"public Frame() {\n initComponents();\n }",
"private String addMusic() {\n\t\t// One Parameter: MusicName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|music:\" + parameters[0]);\n\t\treturn tag.toString();\n\n\t}",
"@Override\r\n public void show()\r\n {\r\n // De inmediato, ponemos en marcha una melodia\r\n if (!juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).isPlaying())\r\n {\r\n juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).play();\r\n juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).setLooping(true);\r\n }\r\n }",
"public SongFormLayout() {\n\t\tbuildMainLayout();\n\t\tsetCompositionRoot(mainLayout);\n\n\t\tlblTitle.addStyleName(ValoTheme.LABEL_H1);\n\t\t\n\t\tbtnSave.addStyleName(ValoTheme.BUTTON_FRIENDLY);\n\t\t\n\t\tfieldArtist.setNullRepresentation(\"\");\n\t\tfieldTitle.setNullRepresentation(\"\");\n\t\t\n\t\tbtnCancel.addClickListener(new ClickListener() {\n\t\t\tprivate static final long serialVersionUID = 7004401037805139272L;\n\t\t\t@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"manageSongs\");\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"@AutoGenerated\r\n\tprivate Panel buildAudioPanel() {\n\t\taudioPanel = new Panel();\r\n\t\taudioPanel.setWidth(\"100.0%\");\r\n\t\taudioPanel.setHeight(\"100.0%\");\r\n\t\taudioPanel.setImmediate(false);\r\n\t\t\r\n\t\t// verticalLayout_4\r\n\t\tverticalLayout_4 = buildVerticalLayout_4();\r\n\t\taudioPanel.setContent(verticalLayout_4);\r\n\t\t\r\n\t\treturn audioPanel;\r\n\t}",
"public Mainframe() {\n initComponents();\n }",
"NOFRAME createNOFRAME();",
"public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\n }",
"public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}",
"public ControlFrame addControlFrame(String theName, int theWidth, int theHeight) {\n Frame f = new Frame(theName);\n ControlFrame p = new ControlFrame(this, theWidth, theHeight);\n f.add(p);\n p.init();\n f.setTitle(theName);\n f.setSize(p.w, p.h);\n f.setLocation(50, 250);\n f.setResizable(false);\n f.setVisible(true);\n return p;\n}",
"public AddAlbumFrame(Control ctrl, UserView uv)\n\t{\n\t\tsuper(\"Create Album\");\n\t\tsetLayout(new FlowLayout());\n\t\tthis.setSize(320, 150);\n\t\tthis.setResizable(false);\n\t\tthis.setLocationRelativeTo(null);\n\t\t\n\t\tcontrol = ctrl;\n\t\tparent = uv;\n\t\talbumName = new JLabel(\"Album name:\");\n\t\tname = new JTextField(15);\n\t\tcreate = new JButton(\"Create\");\n\t\tcancel = new JButton(\"Cancel\");\n\t\tblank = new JLabel(\" \");\n\t\terrorMsg = new JLabel(\"\");\n\t\terrorMsg.setFont(new Font(\"Arial Black\", Font.PLAIN, 14));\n\t\terrorMsg.setForeground(Color.RED);\n\t\t\t\t\n\t\tadd(blank);\n\t\tadd(albumName);\n\t\tadd(name);\n\t\tadd(create);\n\t\tadd(cancel);\n\t\tadd(errorMsg);\n\t\t\n\t\tcancel.addActionListener(new ActionListener(){\n\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tclose();\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tcreate.addActionListener(new ActionListener(){\n\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\terrorMsg.setText(\"\");\n\t\t\t\tString aName = name.getText();\n\t\t\t\tif(aName.trim().equals(\"\") || aName == null)\n\t\t\t\t{\n\t\t\t\t\terrorMsg.setText(\"Invalid Name, Try Again\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tcontrol.createAlbum(aName);\n\t\t\t\t\tArrayList<Album> temp = new ArrayList<Album>();\n\t\t\t\t\ttemp.add(control.getAlbums().get(aName));\n\t\t\t\t\tparent.loadTable(temp);\n\t\t\t\t\tclose();\n\t\t\t\t\tparent.message.setText(\"Album Added Successfully\");\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\terrorMsg.setText(\"Album Name Already Exists\");\n\t\t\t\t}\n\t\t\t}\t\n\t\t});\n\t\t\n\t\tthis.addWindowListener(new WindowListener(){\n\t\n\t\t\t@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {}\n\t\n\t\t\t@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {}\n\t\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tclose();\n\t\t\t}\n\t\n\t\t\t@Override\n\t\t\tpublic void windowDeactivated(WindowEvent e) {}\n\t\n\t\t\t@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {}\n\t\n\t\t\t@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {}\n\t\n\t\t\t@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {}\n\t\t\t\n\t\t});\n\t}",
"public static void buildFrame() {\r\n\t\t// Make sure we have nice window decorations\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\t//ParentFrame frame = new ParentFrame();\r\n\t\tMediator frame = new Mediator();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t// Display the window\r\n\t\tframe.setVisible(true);\r\n\t}",
"@Override\n\t\t public void actionPerformed(ActionEvent e) {\n\t\t \t\t \tStopMusic(2);\n\t\t \t\t \tStopMusic(3);\n\t\t \t\t \tbm.play();\n\t\t \ttry {\n\t\t\t\t\t\t\tnew Maze();\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t \t//getTopLevelAncestor().setVisible(false);\n\t\t \tframe.dispose();\n\t\t }",
"private JPanel createMediaButtons() {\n JPanel buttonPanel = new JPanel(new FlowLayout());\n\n showImageButton_ = new GradientButton(\"Image\");\n showImageButton_.addActionListener(this);\n showImageButton_.setEnabled(scene_.getImage() != null);\n\n playSoundButton_ = new GradientButton(\"Sound\");\n playSoundButton_.addActionListener(this);\n playSoundButton_.setEnabled(scene_.hasSound());\n\n buttonPanel.add(showImageButton_);\n buttonPanel.add(playSoundButton_);\n\n return buttonPanel;\n }",
"@Override\n\tpublic void show() {\n\t\tmusic.play();\n\t}",
"public LetsPlayGUI() {\n super(\"Let's Play!\");\n initComponents();\n setCardLayouts();\n showSplashPanel();\n }",
"public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}",
"public AddSong(String title) {\n id = title;\n initComponents();\n }",
"public NewRoomFrame() {\n initComponents();\n }",
"private void startMusic() {\r\n final Format input1 = new AudioFormat(AudioFormat.MPEGLAYER3);\r\n final Format input2 = new AudioFormat(AudioFormat.MPEG);\r\n final Format output = new AudioFormat(AudioFormat.LINEAR);\r\n PlugInManager.addPlugIn(\r\n \"com.sun.media.codec.audio.mp3.JavaDecoder\",\r\n new Format[]{input1, input2},\r\n new Format[]{output},\r\n PlugInManager.CODEC\r\n );\r\n try {\r\n final File f = new File(\"support_files//tetris.mp3\");\r\n myPlayer = Manager.createPlayer(new MediaLocator(f.toURI().toURL()));\r\n } catch (final NoPlayerException | IOException e) {\r\n e.printStackTrace();\r\n }\r\n if (myPlayer != null) {\r\n myPlayer.start();\r\n }\r\n }",
"public NewJFrame() {\n initComponents();\n\n }",
"public TestWav()\r\n {\r\n super(\"AudioPlayer\");\r\n player = new Playback();\r\n String[] audioFileNames = findFiles(AUDIO_DIR, null);\r\n makeFrame(audioFileNames);\r\n }",
"public MenuFrame() {\n initComponents();\n }",
"public NewJFrame1() {\n initComponents();\n }",
"public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"public xinxiNewJFrame() {\n initComponents();\n }",
"public MusicClientApp() {\n\n tlm = new TrackListModel(new RecordDto());\n rcm = new RecordComboBoxModel(new MusicCollectionDto());\n scm = new PlayerComboBoxModel(new ArrayList<>());\n sercm = new ServerComboBoxModel(new ArrayList<>());\n\n initComponents();\n\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() {\n StartMusicClient smc = new StartMusicClient(MusicClientApp.this);\n new Thread(smc).start();\n }\n });\n }",
"private static void createGUI(){\r\n\t\tframe = new JFrame(\"Untitled\");\r\n\r\n\t\tBibtexImport bib = new BibtexImport();\r\n\t\tbib.setOpaque(true);\r\n\r\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tframe.setContentPane(bib);\r\n\t\tframe.setJMenuBar(bib.menu);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}",
"public addPhotographer_Frame() {\n initComponents();\n }",
"private void createDefaultPlayLists() {\n try {\n BufferedImage favoriteSongsImage = ImageIO.read(new File(\"Images/FavoriteSong.png\"));\n PlayListPanel favoriteSongs = new PlayListPanel(favoriteSongsImage, \"Favorite Songs\", \"Favorite albumSongs chosen by user\", this, this);\n playListPanels.put(\"Favorite Songs\", favoriteSongs);\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"Error reading favorite albumSongs image\", \"An Error Occurred\", JOptionPane.ERROR_MESSAGE);\n }\n try {\n BufferedImage sharedSongImage = ImageIO.read(new File(\"Images/SharedSongs.jpg\"));\n PlayListPanel sharedSongs = new PlayListPanel(sharedSongImage, \"Shared Songs\", \"Shared albumSongs between users\", this, this);\n playListPanels.put(\"Shared Songs\", sharedSongs);\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"Error reading shared albumSongs image\", \"An Error Occurred\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"public MainFrame() {\n initComponents();\n \n }",
"public void addChildFrame(JFrame frame);",
"private void initComponents() {\n\t\talbumPanel1 = new AlbumPanel();\n\t\t\n\t\t//设置用户在此窗体上发起 \"close\" 时默认执行的操作。\n\t\tsetDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\t\tsetTitle(\"电子相册\");\n\t\t\n\t\t//getContentPane()返回此窗体的 contentPane 对象\n\t\tGroupLayout layout = new GroupLayout(getContentPane());\n\t\tgetContentPane().setLayout(layout);\n\t\t//设置沿水平轴确定组件位置和大小的 Group。\n\t\tlayout.setHorizontalGroup(\n\t\t\t\tlayout.createParallelGroup(GroupLayout.Alignment.LEADING)\n\t\t\t\t.addComponent(albumPanel1, GroupLayout.DEFAULT_SIZE, 520, Short.MAX_VALUE)\n\t\t);\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(GroupLayout.Alignment.LEADING)\n\t\t\t\t.addComponent(albumPanel1, GroupLayout.DEFAULT_SIZE, 469, Short.MAX_VALUE)\n\t\t);\n\t\t//调整此窗口的大小,以适合其子组件的首选大小和布局。\n\t\tpack();\n\t}",
"public MainPanel(MainFrame m)\r\n\t{\r\n\t\t//Link back to the Frame\r\n\t\tmainFrame = m;\r\n\t\t\r\n\t\t//Setup the layout\r\n\t\tsetLayout(new GridLayout(4,1,5,5)); //Grid with 4 rows and 1 column.\r\n\t\t\r\n\t\t//add buttons and action listeners to the buttons\r\n\t\tthis.add(play);\r\n\t\tplay.addActionListener(mainListener);\r\n\t\tthis.add(edit);\r\n\t\tedit.addActionListener(mainListener);\r\n\t\tthis.add(editExisting);\r\n\t\teditExisting.addActionListener(mainListener);\r\n\t\tthis.add(exit);\r\n\t\texit.addActionListener(mainListener);\t\r\n\t}",
"public void StartMusic(int music_id);",
"public POSFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }"
]
| [
"0.67411095",
"0.66545177",
"0.6549654",
"0.6542856",
"0.6513434",
"0.6398316",
"0.63854796",
"0.63379645",
"0.6217085",
"0.6140758",
"0.6111257",
"0.6093769",
"0.6083598",
"0.60759157",
"0.6075493",
"0.6019316",
"0.6003977",
"0.5987401",
"0.5919024",
"0.5895656",
"0.5870707",
"0.58599955",
"0.5858289",
"0.58337057",
"0.58129764",
"0.578409",
"0.57785344",
"0.5776921",
"0.57756567",
"0.57316345",
"0.57258993",
"0.570422",
"0.57028174",
"0.57021356",
"0.570157",
"0.5700109",
"0.56511664",
"0.5647812",
"0.5639984",
"0.5639984",
"0.5639984",
"0.5639984",
"0.5639984",
"0.5639984",
"0.5639984",
"0.56360775",
"0.56206536",
"0.5617722",
"0.5610018",
"0.56088525",
"0.5608312",
"0.5607631",
"0.5607605",
"0.56006575",
"0.55926365",
"0.5588229",
"0.5585914",
"0.5578419",
"0.5572903",
"0.5572903",
"0.5568654",
"0.5562318",
"0.5559153",
"0.55544496",
"0.55406904",
"0.5537412",
"0.5530703",
"0.5524936",
"0.55198145",
"0.55122983",
"0.5512226",
"0.55046445",
"0.54984045",
"0.5493881",
"0.5487272",
"0.54845256",
"0.5480754",
"0.54765564",
"0.5474785",
"0.5472176",
"0.5472028",
"0.54583496",
"0.545563",
"0.5455195",
"0.54541814",
"0.5454102",
"0.5450832",
"0.5448346",
"0.54471654",
"0.54457164",
"0.544447",
"0.5441434",
"0.54367554",
"0.5436276",
"0.5434074",
"0.5416425",
"0.5409907",
"0.5409907",
"0.5409907",
"0.5409907"
]
| 0.5768555 | 29 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
beat = new javax.swing.JButton();
record = new javax.swing.JButton();
letempo = new javax.swing.JLabel();
testtempo = new javax.swing.JButton();
text = new javax.swing.JTextField();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
beat.setText("Set Beat");
beat.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
beatActionPerformed(evt);
}
});
record.setText("Start Recording Music");
record.setEnabled(false);
record.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
recordActionPerformed(evt);
}
});
letempo.setText("Tempo: 120");
testtempo.setText("Test Tempo");
testtempo.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
testtempoActionPerformed(evt);
}
});
text.setEditable(false);
text.setFont(new java.awt.Font("Tahoma", 0, 60)); // NOI18N
text.setHorizontalAlignment(javax.swing.JTextField.CENTER);
text.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
textActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(record, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
.addGroup(layout.createSequentialGroup()
.addComponent(text, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(testtempo)
.addGroup(layout.createSequentialGroup()
.addGap(9, 9, 9)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(letempo)
.addComponent(beat))))
.addGap(0, 10, Short.MAX_VALUE))))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(0, 15, Short.MAX_VALUE)
.addComponent(letempo)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(beat)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(testtempo))
.addComponent(text))
.addGap(18, 18, 18)
.addComponent(record)
.addContainerGap())
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
]
| [
"0.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"0.6944929",
"0.6942576",
"0.69355655",
"0.6931378",
"0.6927896",
"0.69248974",
"0.6924723",
"0.69116884",
"0.6910487",
"0.6892381",
"0.68921053",
"0.6890637",
"0.68896896",
"0.68881863",
"0.68826133",
"0.68815064",
"0.6881078",
"0.68771756",
"0.6875212",
"0.68744373",
"0.68711984",
"0.6858978",
"0.68558776",
"0.6855172",
"0.6854685",
"0.685434",
"0.68525875",
"0.6851834",
"0.6851834",
"0.684266",
"0.6836586",
"0.6836431",
"0.6828333",
"0.68276715",
"0.68262815",
"0.6823921",
"0.682295",
"0.68167603",
"0.68164384",
"0.6809564",
"0.68086857",
"0.6807804",
"0.6807734",
"0.68067646",
"0.6802192",
"0.67943805",
"0.67934304",
"0.6791657",
"0.6789546",
"0.6789006",
"0.67878324",
"0.67877173",
"0.6781847",
"0.6765398",
"0.6765197",
"0.6764246",
"0.6756036",
"0.6755023",
"0.6751404",
"0.67508715",
"0.6743043",
"0.67387456",
"0.6736752",
"0.67356426",
"0.6732893",
"0.6726715",
"0.6726464",
"0.67196447",
"0.67157453",
"0.6714399",
"0.67140275",
"0.6708251",
"0.6707117",
"0.670393",
"0.6700697",
"0.66995865",
"0.66989213",
"0.6697588",
"0.66939527",
"0.66908985",
"0.668935"
]
| 0.0 | -1 |
Instantiates a new Person. | public Person() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Person() {}",
"public Person() {\n\t\t\n\t}",
"Person createPerson();",
"public Person(String name) {\n\t\tthis.name = name;\n\t\tSystem.out.println(\"Instantiated a Person Object\");\n\t}",
"public Person(){\r\n\t\tsuper();\r\n\t}",
"public Person() {\n\t\tthis.name = \"Unknown\"; \n\t}",
"public Person(String firstName, String lastName) {\r\n name = new Name(firstName, lastName); \r\n id = (int )(Math.random() * 200 + 100);; \r\n }",
"public Person()\n {\n this.name = \"John Doe\";\n this.address = \"1234 Somewhere Dr.\";\n this.phoneNumber = \"309-555-1234\";\n this.emailAddress = \"[email protected]\";\n }",
"public Person (String firstName, String lastName, String address) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.address = address;\n\n }",
"public Person() {\r\n\t\tid = \"00000\";\r\n\t\tfName = \"unknown\";\r\n\t\tlName = \"unknown\";\r\n\t\tbirthday = LocalDate.now();\r\n\t\tphone = \"unknown\";\r\n\t\tstatus = \"unknown\";\r\n\t\tcontacts = new ArrayList<String>();\r\n\t}",
"public Persona() {\n\t}",
"public Person(String firstName, String lastName) {\n this.firstName = firstName;\n this.lastName = lastName;\n }",
"public Persona() {\n }",
"public Person(String associatedUserName, String firstName, String lastName, Gender gender) {\n Id = UUID.randomUUID().toString();\n AssociatedUserName = associatedUserName;\n FirstName = firstName;\n LastName = lastName;\n Gender = gender;\n }",
"public Person(String name) {\n this.name = name;\n }",
"public Person create() {\n\t\treturn personRepository.create();\n\t}",
"public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}",
"public Person(String name, String address, String postalCode, String city, String phone){\n // initialise instance variables\n this.name = name;\n this.address = address;\n this.postalCode = postalCode;\n this.city = city;\n this.phone = phone;\n }",
"public Person(String name)\n {\n this.name = name;\n }",
"public Person (String _name, int _ID) {\n name = _name;\n ID = _ID;\n }",
"public void create(Person p) {\n\t\t\n\t}",
"public Person createPerson(Person p);",
"public Person(String name){\n\t\tthis.name = name ; \n\t}",
"public Person()\n {\n //intentionally left empty\n }",
"public Person(String firstName, String lastName) {\n this.lastName = lastName;\n this.firstName = firstName;\n }",
"public Persona() {\n \t\n }",
"public Persona(){\n \n }",
"public Persona(){\n \n }",
"public Person(String name){\n\t\t\n\t\t\n\t\tthis.myName = name;\n\t\t\n\t}",
"public PersonRecord() {}",
"public Person1() {\n\t\tsuper();\n\t}",
"public Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\n\t}",
"private TypicalPersons() {}",
"private TypicalPersons() {}",
"@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}",
"public SchoolPerson() {\n }",
"public Person() {\r\n setPersonID(null);\r\n setAssocUserName(null);\r\n setFirstName(null);\r\n setLastName(null);\r\n setGender(null);\r\n setFatherID(null);\r\n setMotherID(null);\r\n setSpouseID(null);\r\n }",
"static public Person create(String name, String urlpt) {\n Person p;\n p = searchPerson(name);\n if (p == null)\n p = new Person(name, urlpt);\n return p;\n }",
"public Person(String username, String email) {\n this.username = username;\n this.email = email;\n }",
"public Person(String vorname, String nachname) {\n\n\t}",
"public Person(String inName)\n {\n name = inName;\n }",
"public Person(String name, String address, String phoneNumber, String emailAddress)\n {\n this.name = name;\n this.address = address;\n this.phoneNumber = phoneNumber;\n this.emailAddress = emailAddress;\n }",
"public Person(String name) {\n\t\t// Person person1 = new Person(name);\n\t\tthis.name = name;\n\t\tthis.listOfFriends = new LinkedQueue<Person>();\n\t\tthis.messages = new LinkedStack<String>();\n\t}",
"public Persona() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Person(String name, String phoneNumber, String email){\n setName(name);\n setPhoneNumber(phoneNumber);\n setEmail(email);\n }",
"public PersonaFisica() {}",
"public Person createPerson(String fullName, int age, String phone, String email, String favMovie, String city, String street, Profession profession, HashMap<String, Double> weightTable, ArrayList<String> hobbies) {\n startMetrics();\n String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();\n\n Person p = new Person(fullName,age,phone,email,favMovie,city,street,profession,weightTable,hobbies);\n p.setFullName(fullName);\n p.setAge(age);\n p.setPhone(phone);\n p.setEmail(email);\n p.setFavouriteMovie(favMovie);\n p.setCityName(city);\n p.setStreetName(street);\n p.setProfession(profession);\n p.setWeightTable(weightTable);\n p.setHobbies(hobbies);\n\n System.out.println(p.toString());\n\n printMethodName(methodName);\n stopMetrics();\n gatherPerformance(methodName);\n return p;\n }",
"public Person(String first, String last) {\n // Set instance var firstname to what is called from constructor\n this.firstName = first; \n // Set instance var lastname to what is called from constructor\n this.lastName = last;\n }",
"public PersonBean() {\n\t}",
"public Person(String name, String lastName, String home, int identificationNumber) {\n this.name = name;\n this.lastName = lastName;\n this.home = home;\n this.identificationNumber = identificationNumber;\n }",
"public AvroPerson() {}",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"private Person()\r\n\t{\r\n\t\tsuper();\r\n\t\t//created = LocalDateTime.now();\r\n\t\tcreated = Calendar.getInstance().getTime();\r\n\t}",
"public Person(String name, String number)\r\n\t{\r\n\t\tthis.name = name;\r\n\t\tthis.telephoneNumber = number;\r\n\t}",
"@Override\r\n\tpublic void create(Person p) \r\n\t{\n\t\t\r\n\t}",
"public Person(String name, String surname) {\n this.name = name;\n this.surname = surname;\n }",
"public Person(){\n count++;\n System.out.println(\"Creating an object\");\n }",
"public Customer(Person person) {\n this(person.getName(), person.getLastName(), person.getSex(), person.getBirthDay(), 0);\n }",
"public Person(String personNum, String personType, String personName, String personTelNo, String personEmail, String personAddress) {\r\n\t\tthis.personNum = personNum;\r\n\t\tthis.personType = personType;\r\n\t\tthis.personName = personName;\r\n\t\tthis.personTelNo = personTelNo;\r\n\t\tthis.personEmail = personEmail;\r\n\t\tthis.personAddress = personAddress;\r\n\t}",
"public Person(ElevatorController elevatorController){\n this.id = idGenerator.getAndIncrement();\n this.arrivalTime = setArrivalTime();\n this.arrivalFloor = setArrivalFloor();\n\t\t this.destinationFloor = setDestinationFloor();\n this.baggageWeight = setLuggageWeight();\n this.personWeight = setPassengerWeight();\n this.random = new Random();\n this.elevatorController = elevatorController;\n }",
"@Override\r\n\tpublic void create(Person person) {\n\r\n\t}",
"public Person(ElevatorControllerGUI elevatorController){\n this.id = idGenerator.getAndIncrement();\n this.arrivalTime = random.nextInt((30-1)+1)+1; \n this.arrivalFloor = random.nextInt((4-2)+1)+2; \n\t\t this.destinationFloor = random.nextInt((10-5)+1)+5; \n\t\t this.baggageWeight = setLuggageWeight();\n this.personWeight = setPassengerWeight();\n this.random = new Random();\n this.elevatorControllerGUI = elevatorController;\n }",
"public void CreatePerson(Person p){\n\t\tWeddingConnectionPoolManager con = new WeddingConnectionPoolManager(); \n\t\t Person p1 = new Person(p.getId(), p.getFirstName(), p.getLastName(), p.getRelationship(),\n\t\t\t\t p.getAddress(), p.getPhone(), p.getEmail(), p.getComment(), user.getId());\n\t\t System.out.println(\"p1 : \" + p1);\n\t\t System.out.println(\"p : \" + p);\n\t\t// TODO - should to iterate on the results that returns when calling to \"getpersons\" method.\n\t\tPersonDBManager.getInstance().CreateNewPerson(con.getConnectionFromPool(), p1);\t\n\t}",
"public Person1(int age, String name) {\n\t\tsuper();\n\t\tthis.age = age;\n\t\tthis.name = name;\n\t}",
"public Persona(String nombre) {\n this.nombre = nombre;\n }",
"@Test(enabled = true)\n public void createPerson() {\n List <Account> accounts = new ArrayList<>();\n List<Subscription> sub = new ArrayList<>();\n \n Contact contact = new Contact.Builder().emailaddress(\"[email protected]\").phoneNumber(\"021345685\").build();\n Address address = new Address.Builder().location(\"Daveyton\").streetName(\"Phaswane Street\").houseNumber(45).build();\n \n repo = ctx.getBean(PersonsRepository.class);\n Person p = new Person.Builder()\n .firstname(\"Nobu\")\n .lastname(\"Tyokz\")\n .age(25)\n .account(accounts)\n .sub(sub)\n .contact(contact)\n .address(address)\n .build();\n repo.save(p);\n id = p.getId();\n Assert.assertNotNull(p);\n\n }",
"People(String name, int age) {\n this.name = name;\n this.age = age;\n }",
"private Person(String name, String urlpt) {\n this.name = name;\n this.urlpt = urlpt;\n personMap.put(name, this);\n coauthorsLoaded = false;\n labelvalid = false;\n }",
"public PersonEvent(Person person) {\n super(person);\n this.person = person;\n }",
"public Person(String name, int birthYear, String homeTown) {\n\n\t\t// initialises variable and refers to the object\n\t\tthis.name = name;\n\t\tthis.birthYear = birthYear;\n\t\tthis.homeTown = homeTown;\n\n\t}",
"public Person(String name, String address, String aadharId) {\n this.name = name;\n this.address = address;\n this.aadharId = aadharId;\n }",
"public Student(Person person) {\r\n\t\tsuper(person);\r\n\t}",
"private FacadePerson() throws personNotFoundExeption{}",
"public void create(Person person) {\n\t\tpersonRepository.save(person);\n\t}",
"public Person(String first, String last) {\n\t\tthis(first, last, -1);\n\t}",
"public Person (String inName, String inFirstName, LocalDate inDateOfBirth) {\n super(inName);\n this.dateOfBirth = inDateOfBirth;\n this.firstName = inFirstName;\n }",
"public Person(String ID, String number){\n \n phoneNums = new LinkedList<String>();\n this.addNum(number);\n this.ID = ID;\n }",
"public Person(String name) {\n this.name = name;\n this.date = new Date();\n this.neck = -1.0;\n this.bust = -1.0;\n this.chest = -1.0;\n this.waist = -1.0;\n this.hip = -1.0;\n this.inseam = -1.0;\n this.comment = \"Not comment available.\";\n }",
"public Person(String name, String city) {\n this.name = name;\n this.city = city;\n }",
"public Person build(){\n return new Person(this);\n }",
"public Person(String personID, String assocUserName, String firstName, String lastName, String gender, String fatherID, String motherID, String spouseID, String childID) {\r\n setPersonID(personID);\r\n setAssocUserName(assocUserName);\r\n setFirstName(firstName);\r\n setLastName(lastName);\r\n setGender(gender);\r\n setFatherID(fatherID);\r\n setMotherID(motherID);\r\n setSpouseID(spouseID);\r\n setChildID(childID);\r\n }",
"public Person getRandomPerson() {\n //Randomize all characteristics of a person\n int age = (int) (rd.nextDouble() * 100); //within 100y old\n int gd = (int) Math.round(rd.nextDouble() * (Person.Gender.values().length - 1));\n int bt = (int) Math.round(rd.nextDouble() * (Person.BodyType.values().length - 1));\n int pf = (int) Math.round(rd.nextDouble() * (Person.Profession.values().length - 1));\n boolean isPreg = rd.nextBoolean();\n\n //Construct a person with random characteristic\n //Person(int age, Profession profession, Gender gender, BodyType bodytype, boolean isPregnant)\n P = new Person(age, Person.Profession.values()[pf], Person.Gender.values()[gd], Person.BodyType.values()[bt], isPreg);\n return P;\n }",
"private void init(){\r\n\t\tString fullName = this.person_.getFirstName()+\" \"+this.person_.getLastName();\r\n\t\tboolean alreadyExists = PersonModel.exists(fullName);\r\n\t\t\r\n\t\tif(alreadyExists == true){\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//need to create person\r\n\t\t\tPersonModel pm = new PersonModel(fullName);\r\n\t\t\tpm.save();\r\n\t\t}\r\n\r\n\t}",
"public static Person createPerson(String name, String occupation) {\n switch (occupation.toLowerCase()) {\n case \"doctor\":\n return new Doctor(name);\n case \"professor\":\n return new Professor(name);\n case \"student\":\n return new Student(name);\n default:\n return null;\n }\n }",
"public Person(String n,int d, int m, int y)\n\t{\n\t\tname=n;\n\t\tdob=new Date(d,m,y);\t\n\t}",
"public Person(User user) {\n this.username = user.getUsername();\n this.email = user.getEmail();\n this.firstname = user.getFirstname();\n this.lastname = user.getLastname();\n }",
"@Override\n\tpublic Person createPerson(String id, String slug, String firstName,\n\t\t\tString lastName, String photoId, Gender gender) {\n\t\tfinal Person person = createPerson();\n\t\tperson.setId(id);\n\t\tperson.setSlug(slug);\n\t\tperson.setFirstName(firstName);\n\t\tperson.setLastName(lastName);\n\t\tperson.setName(firstName + \" \" + lastName);\n\t\tperson.setPhotoId(photoId);\n\t\tperson.setGender(gender);\n\t\treturn person;\n\t}",
"public Persona(String nombre) {\n\t\tthis.nombre = nombre;\n\t}",
"public Person(String name, String surname, String phoneNumber, Boolean loyaltyCard, Double salary) {\n setName(name);\n setSurname(surname);\n setPhoneNumber(phoneNumber);\n\n addPersonTypes(PersonType.CLIENT);\n addPersonTypes(PersonType.WORKER);\n\n setLoyaltyCard(loyaltyCard);\n setSalary(salary);\n }",
"public Person(String userId, String firstName, String lastName, Gender gender, String spouseId, String fatherId, String motherId) {\n Id = UUID.randomUUID().toString();\n AssociatedUserName = userId;\n FirstName = firstName;\n LastName = lastName;\n Gender = gender;\n SpouseId = spouseId;\n FatherId = fatherId;\n MotherId = motherId;\n }",
"public Persona(int idPersona, String nombre, String apellido, String email, String telefono){\n this.idPersona = idPersona;\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n \n }",
"public PersonaVO() {\n }",
"public Persona(int idPersona){\n this.idPersona = idPersona;\n }",
"public Person(String lastName, String firstName, String street, long tid, String phone, String mobile, String email) {\n this.lastName = lastName;\n this.firstName = firstName;\n this.address = street;\n this.tid = tid;\n this.phone = phone;\n this.mobile = mobile;\n this.email = email;\n }",
"public static User createPerson() throws ParserConfigurationException, SAXException, IOException {\n User[] users = XMLReader.parsePersonXML();\n User user = users[0];\n calories = user.getCalories();\n diet = user.getDiet();\n quantity = user.getQuantityOfPeople();\n transport = user.getTransport();\n return user;\n }",
"public Persona(String nombre, String apellido, String email, String telefono){\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n }",
"public static void main(String[]arg){\n Person person1 = new Person();\n person1.setName(\"Bright Kingsley\");\n person1.setPhone(\"08133193153\");\n person1.setAddress(\"Umudike\");\n System.out.println(\"The name is :\"+person1.getName());\n System.out.println(\"The Address is :\"+person1.getAddress());\n System.out.println(\"The Phone Number is :\"+person1.getPhone());\n \n Pearson ps1= new Pearson();\n Pearson ps= new Pearson(\"Chris\", \"070412937854\",\"Aba\");\n System.out.println(\"The name is :\"+ps.getName());\n System.out.println(\"The Address is :\"+ps.getAddress());\n System.out.println(\"The Phone Number is :\"+ps.getPhone());\n \n }"
]
| [
"0.77791154",
"0.7694394",
"0.7479597",
"0.7231636",
"0.7216514",
"0.7162616",
"0.7156977",
"0.71544504",
"0.7079488",
"0.70515263",
"0.70468867",
"0.70430464",
"0.7034667",
"0.69802135",
"0.6967915",
"0.6959859",
"0.6959553",
"0.69589865",
"0.6921736",
"0.69110554",
"0.69094867",
"0.6901003",
"0.68906796",
"0.6881341",
"0.68451244",
"0.67966175",
"0.6793578",
"0.6793578",
"0.67600554",
"0.67543364",
"0.67370254",
"0.6732121",
"0.66924626",
"0.66924626",
"0.66677076",
"0.6657291",
"0.6645875",
"0.66448325",
"0.6614852",
"0.66102976",
"0.6600293",
"0.6594651",
"0.65899265",
"0.65535855",
"0.6547989",
"0.6545938",
"0.6541184",
"0.65377796",
"0.65354717",
"0.64955515",
"0.64938205",
"0.64920276",
"0.64555705",
"0.6450474",
"0.64411604",
"0.6420694",
"0.6408402",
"0.6400241",
"0.638861",
"0.636354",
"0.6362949",
"0.6325965",
"0.6322347",
"0.63199586",
"0.6307944",
"0.6299327",
"0.6294978",
"0.6289784",
"0.6285303",
"0.6277224",
"0.62445515",
"0.6244189",
"0.62392515",
"0.6137026",
"0.6136719",
"0.61349154",
"0.6115985",
"0.61060953",
"0.61037153",
"0.6092849",
"0.6091533",
"0.60909057",
"0.60792273",
"0.6079102",
"0.60778636",
"0.6054395",
"0.6047036",
"0.6013351",
"0.6012033",
"0.60039395",
"0.5989637",
"0.5986417",
"0.59794945",
"0.5971965",
"0.59703475",
"0.59697855",
"0.59668344"
]
| 0.7632798 | 4 |
Instantiates a new Person. | public Person(String username, String email) {
this.username = username;
this.email = email;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Person() {}",
"public Person() {\n\t\t\n\t}",
"public Person() {\n }",
"public Person() {\n }",
"public Person() {\n }",
"public Person() {\n }",
"Person createPerson();",
"public Person(String name) {\n\t\tthis.name = name;\n\t\tSystem.out.println(\"Instantiated a Person Object\");\n\t}",
"public Person(){\r\n\t\tsuper();\r\n\t}",
"public Person() {\n\t\tthis.name = \"Unknown\"; \n\t}",
"public Person(String firstName, String lastName) {\r\n name = new Name(firstName, lastName); \r\n id = (int )(Math.random() * 200 + 100);; \r\n }",
"public Person()\n {\n this.name = \"John Doe\";\n this.address = \"1234 Somewhere Dr.\";\n this.phoneNumber = \"309-555-1234\";\n this.emailAddress = \"[email protected]\";\n }",
"public Person (String firstName, String lastName, String address) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.address = address;\n\n }",
"public Person() {\r\n\t\tid = \"00000\";\r\n\t\tfName = \"unknown\";\r\n\t\tlName = \"unknown\";\r\n\t\tbirthday = LocalDate.now();\r\n\t\tphone = \"unknown\";\r\n\t\tstatus = \"unknown\";\r\n\t\tcontacts = new ArrayList<String>();\r\n\t}",
"public Persona() {\n\t}",
"public Person(String firstName, String lastName) {\n this.firstName = firstName;\n this.lastName = lastName;\n }",
"public Persona() {\n }",
"public Person(String associatedUserName, String firstName, String lastName, Gender gender) {\n Id = UUID.randomUUID().toString();\n AssociatedUserName = associatedUserName;\n FirstName = firstName;\n LastName = lastName;\n Gender = gender;\n }",
"public Person(String name) {\n this.name = name;\n }",
"public Person create() {\n\t\treturn personRepository.create();\n\t}",
"public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}",
"public Person(String name, String address, String postalCode, String city, String phone){\n // initialise instance variables\n this.name = name;\n this.address = address;\n this.postalCode = postalCode;\n this.city = city;\n this.phone = phone;\n }",
"public Person(String name)\n {\n this.name = name;\n }",
"public Person (String _name, int _ID) {\n name = _name;\n ID = _ID;\n }",
"public void create(Person p) {\n\t\t\n\t}",
"public Person createPerson(Person p);",
"public Person(String name){\n\t\tthis.name = name ; \n\t}",
"public Person()\n {\n //intentionally left empty\n }",
"public Person(String firstName, String lastName) {\n this.lastName = lastName;\n this.firstName = firstName;\n }",
"public Persona() {\n \t\n }",
"public Persona(){\n \n }",
"public Persona(){\n \n }",
"public Person(String name){\n\t\t\n\t\t\n\t\tthis.myName = name;\n\t\t\n\t}",
"public PersonRecord() {}",
"public Person1() {\n\t\tsuper();\n\t}",
"public Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\n\t}",
"private TypicalPersons() {}",
"private TypicalPersons() {}",
"@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}",
"public SchoolPerson() {\n }",
"public Person() {\r\n setPersonID(null);\r\n setAssocUserName(null);\r\n setFirstName(null);\r\n setLastName(null);\r\n setGender(null);\r\n setFatherID(null);\r\n setMotherID(null);\r\n setSpouseID(null);\r\n }",
"static public Person create(String name, String urlpt) {\n Person p;\n p = searchPerson(name);\n if (p == null)\n p = new Person(name, urlpt);\n return p;\n }",
"public Person(String vorname, String nachname) {\n\n\t}",
"public Person(String inName)\n {\n name = inName;\n }",
"public Person(String name, String address, String phoneNumber, String emailAddress)\n {\n this.name = name;\n this.address = address;\n this.phoneNumber = phoneNumber;\n this.emailAddress = emailAddress;\n }",
"public Person(String name) {\n\t\t// Person person1 = new Person(name);\n\t\tthis.name = name;\n\t\tthis.listOfFriends = new LinkedQueue<Person>();\n\t\tthis.messages = new LinkedStack<String>();\n\t}",
"public Persona() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Person(String name, String phoneNumber, String email){\n setName(name);\n setPhoneNumber(phoneNumber);\n setEmail(email);\n }",
"public PersonaFisica() {}",
"public Person createPerson(String fullName, int age, String phone, String email, String favMovie, String city, String street, Profession profession, HashMap<String, Double> weightTable, ArrayList<String> hobbies) {\n startMetrics();\n String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();\n\n Person p = new Person(fullName,age,phone,email,favMovie,city,street,profession,weightTable,hobbies);\n p.setFullName(fullName);\n p.setAge(age);\n p.setPhone(phone);\n p.setEmail(email);\n p.setFavouriteMovie(favMovie);\n p.setCityName(city);\n p.setStreetName(street);\n p.setProfession(profession);\n p.setWeightTable(weightTable);\n p.setHobbies(hobbies);\n\n System.out.println(p.toString());\n\n printMethodName(methodName);\n stopMetrics();\n gatherPerformance(methodName);\n return p;\n }",
"public Person(String first, String last) {\n // Set instance var firstname to what is called from constructor\n this.firstName = first; \n // Set instance var lastname to what is called from constructor\n this.lastName = last;\n }",
"public PersonBean() {\n\t}",
"public Person(String name, String lastName, String home, int identificationNumber) {\n this.name = name;\n this.lastName = lastName;\n this.home = home;\n this.identificationNumber = identificationNumber;\n }",
"public AvroPerson() {}",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"private Person()\r\n\t{\r\n\t\tsuper();\r\n\t\t//created = LocalDateTime.now();\r\n\t\tcreated = Calendar.getInstance().getTime();\r\n\t}",
"public Person(String name, String number)\r\n\t{\r\n\t\tthis.name = name;\r\n\t\tthis.telephoneNumber = number;\r\n\t}",
"@Override\r\n\tpublic void create(Person p) \r\n\t{\n\t\t\r\n\t}",
"public Person(String name, String surname) {\n this.name = name;\n this.surname = surname;\n }",
"public Person(){\n count++;\n System.out.println(\"Creating an object\");\n }",
"public Customer(Person person) {\n this(person.getName(), person.getLastName(), person.getSex(), person.getBirthDay(), 0);\n }",
"public Person(String personNum, String personType, String personName, String personTelNo, String personEmail, String personAddress) {\r\n\t\tthis.personNum = personNum;\r\n\t\tthis.personType = personType;\r\n\t\tthis.personName = personName;\r\n\t\tthis.personTelNo = personTelNo;\r\n\t\tthis.personEmail = personEmail;\r\n\t\tthis.personAddress = personAddress;\r\n\t}",
"public Person(ElevatorController elevatorController){\n this.id = idGenerator.getAndIncrement();\n this.arrivalTime = setArrivalTime();\n this.arrivalFloor = setArrivalFloor();\n\t\t this.destinationFloor = setDestinationFloor();\n this.baggageWeight = setLuggageWeight();\n this.personWeight = setPassengerWeight();\n this.random = new Random();\n this.elevatorController = elevatorController;\n }",
"@Override\r\n\tpublic void create(Person person) {\n\r\n\t}",
"public Person(ElevatorControllerGUI elevatorController){\n this.id = idGenerator.getAndIncrement();\n this.arrivalTime = random.nextInt((30-1)+1)+1; \n this.arrivalFloor = random.nextInt((4-2)+1)+2; \n\t\t this.destinationFloor = random.nextInt((10-5)+1)+5; \n\t\t this.baggageWeight = setLuggageWeight();\n this.personWeight = setPassengerWeight();\n this.random = new Random();\n this.elevatorControllerGUI = elevatorController;\n }",
"public void CreatePerson(Person p){\n\t\tWeddingConnectionPoolManager con = new WeddingConnectionPoolManager(); \n\t\t Person p1 = new Person(p.getId(), p.getFirstName(), p.getLastName(), p.getRelationship(),\n\t\t\t\t p.getAddress(), p.getPhone(), p.getEmail(), p.getComment(), user.getId());\n\t\t System.out.println(\"p1 : \" + p1);\n\t\t System.out.println(\"p : \" + p);\n\t\t// TODO - should to iterate on the results that returns when calling to \"getpersons\" method.\n\t\tPersonDBManager.getInstance().CreateNewPerson(con.getConnectionFromPool(), p1);\t\n\t}",
"public Person1(int age, String name) {\n\t\tsuper();\n\t\tthis.age = age;\n\t\tthis.name = name;\n\t}",
"public Persona(String nombre) {\n this.nombre = nombre;\n }",
"@Test(enabled = true)\n public void createPerson() {\n List <Account> accounts = new ArrayList<>();\n List<Subscription> sub = new ArrayList<>();\n \n Contact contact = new Contact.Builder().emailaddress(\"[email protected]\").phoneNumber(\"021345685\").build();\n Address address = new Address.Builder().location(\"Daveyton\").streetName(\"Phaswane Street\").houseNumber(45).build();\n \n repo = ctx.getBean(PersonsRepository.class);\n Person p = new Person.Builder()\n .firstname(\"Nobu\")\n .lastname(\"Tyokz\")\n .age(25)\n .account(accounts)\n .sub(sub)\n .contact(contact)\n .address(address)\n .build();\n repo.save(p);\n id = p.getId();\n Assert.assertNotNull(p);\n\n }",
"People(String name, int age) {\n this.name = name;\n this.age = age;\n }",
"private Person(String name, String urlpt) {\n this.name = name;\n this.urlpt = urlpt;\n personMap.put(name, this);\n coauthorsLoaded = false;\n labelvalid = false;\n }",
"public PersonEvent(Person person) {\n super(person);\n this.person = person;\n }",
"public Person(String name, int birthYear, String homeTown) {\n\n\t\t// initialises variable and refers to the object\n\t\tthis.name = name;\n\t\tthis.birthYear = birthYear;\n\t\tthis.homeTown = homeTown;\n\n\t}",
"public Person(String name, String address, String aadharId) {\n this.name = name;\n this.address = address;\n this.aadharId = aadharId;\n }",
"public Student(Person person) {\r\n\t\tsuper(person);\r\n\t}",
"private FacadePerson() throws personNotFoundExeption{}",
"public void create(Person person) {\n\t\tpersonRepository.save(person);\n\t}",
"public Person(String first, String last) {\n\t\tthis(first, last, -1);\n\t}",
"public Person (String inName, String inFirstName, LocalDate inDateOfBirth) {\n super(inName);\n this.dateOfBirth = inDateOfBirth;\n this.firstName = inFirstName;\n }",
"public Person(String ID, String number){\n \n phoneNums = new LinkedList<String>();\n this.addNum(number);\n this.ID = ID;\n }",
"public Person(String name) {\n this.name = name;\n this.date = new Date();\n this.neck = -1.0;\n this.bust = -1.0;\n this.chest = -1.0;\n this.waist = -1.0;\n this.hip = -1.0;\n this.inseam = -1.0;\n this.comment = \"Not comment available.\";\n }",
"public Person(String name, String city) {\n this.name = name;\n this.city = city;\n }",
"public Person build(){\n return new Person(this);\n }",
"public Person(String personID, String assocUserName, String firstName, String lastName, String gender, String fatherID, String motherID, String spouseID, String childID) {\r\n setPersonID(personID);\r\n setAssocUserName(assocUserName);\r\n setFirstName(firstName);\r\n setLastName(lastName);\r\n setGender(gender);\r\n setFatherID(fatherID);\r\n setMotherID(motherID);\r\n setSpouseID(spouseID);\r\n setChildID(childID);\r\n }",
"public Person getRandomPerson() {\n //Randomize all characteristics of a person\n int age = (int) (rd.nextDouble() * 100); //within 100y old\n int gd = (int) Math.round(rd.nextDouble() * (Person.Gender.values().length - 1));\n int bt = (int) Math.round(rd.nextDouble() * (Person.BodyType.values().length - 1));\n int pf = (int) Math.round(rd.nextDouble() * (Person.Profession.values().length - 1));\n boolean isPreg = rd.nextBoolean();\n\n //Construct a person with random characteristic\n //Person(int age, Profession profession, Gender gender, BodyType bodytype, boolean isPregnant)\n P = new Person(age, Person.Profession.values()[pf], Person.Gender.values()[gd], Person.BodyType.values()[bt], isPreg);\n return P;\n }",
"private void init(){\r\n\t\tString fullName = this.person_.getFirstName()+\" \"+this.person_.getLastName();\r\n\t\tboolean alreadyExists = PersonModel.exists(fullName);\r\n\t\t\r\n\t\tif(alreadyExists == true){\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//need to create person\r\n\t\t\tPersonModel pm = new PersonModel(fullName);\r\n\t\t\tpm.save();\r\n\t\t}\r\n\r\n\t}",
"public static Person createPerson(String name, String occupation) {\n switch (occupation.toLowerCase()) {\n case \"doctor\":\n return new Doctor(name);\n case \"professor\":\n return new Professor(name);\n case \"student\":\n return new Student(name);\n default:\n return null;\n }\n }",
"public Person(String n,int d, int m, int y)\n\t{\n\t\tname=n;\n\t\tdob=new Date(d,m,y);\t\n\t}",
"public Person(User user) {\n this.username = user.getUsername();\n this.email = user.getEmail();\n this.firstname = user.getFirstname();\n this.lastname = user.getLastname();\n }",
"@Override\n\tpublic Person createPerson(String id, String slug, String firstName,\n\t\t\tString lastName, String photoId, Gender gender) {\n\t\tfinal Person person = createPerson();\n\t\tperson.setId(id);\n\t\tperson.setSlug(slug);\n\t\tperson.setFirstName(firstName);\n\t\tperson.setLastName(lastName);\n\t\tperson.setName(firstName + \" \" + lastName);\n\t\tperson.setPhotoId(photoId);\n\t\tperson.setGender(gender);\n\t\treturn person;\n\t}",
"public Persona(String nombre) {\n\t\tthis.nombre = nombre;\n\t}",
"public Person(String name, String surname, String phoneNumber, Boolean loyaltyCard, Double salary) {\n setName(name);\n setSurname(surname);\n setPhoneNumber(phoneNumber);\n\n addPersonTypes(PersonType.CLIENT);\n addPersonTypes(PersonType.WORKER);\n\n setLoyaltyCard(loyaltyCard);\n setSalary(salary);\n }",
"public Person(String userId, String firstName, String lastName, Gender gender, String spouseId, String fatherId, String motherId) {\n Id = UUID.randomUUID().toString();\n AssociatedUserName = userId;\n FirstName = firstName;\n LastName = lastName;\n Gender = gender;\n SpouseId = spouseId;\n FatherId = fatherId;\n MotherId = motherId;\n }",
"public Persona(int idPersona, String nombre, String apellido, String email, String telefono){\n this.idPersona = idPersona;\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n \n }",
"public PersonaVO() {\n }",
"public Persona(int idPersona){\n this.idPersona = idPersona;\n }",
"public Person(String lastName, String firstName, String street, long tid, String phone, String mobile, String email) {\n this.lastName = lastName;\n this.firstName = firstName;\n this.address = street;\n this.tid = tid;\n this.phone = phone;\n this.mobile = mobile;\n this.email = email;\n }",
"public static User createPerson() throws ParserConfigurationException, SAXException, IOException {\n User[] users = XMLReader.parsePersonXML();\n User user = users[0];\n calories = user.getCalories();\n diet = user.getDiet();\n quantity = user.getQuantityOfPeople();\n transport = user.getTransport();\n return user;\n }",
"public Persona(String nombre, String apellido, String email, String telefono){\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n }",
"public static void main(String[]arg){\n Person person1 = new Person();\n person1.setName(\"Bright Kingsley\");\n person1.setPhone(\"08133193153\");\n person1.setAddress(\"Umudike\");\n System.out.println(\"The name is :\"+person1.getName());\n System.out.println(\"The Address is :\"+person1.getAddress());\n System.out.println(\"The Phone Number is :\"+person1.getPhone());\n \n Pearson ps1= new Pearson();\n Pearson ps= new Pearson(\"Chris\", \"070412937854\",\"Aba\");\n System.out.println(\"The name is :\"+ps.getName());\n System.out.println(\"The Address is :\"+ps.getAddress());\n System.out.println(\"The Phone Number is :\"+ps.getPhone());\n \n }"
]
| [
"0.77791154",
"0.7694394",
"0.7632798",
"0.7632798",
"0.7632798",
"0.7632798",
"0.7479597",
"0.7231636",
"0.7216514",
"0.7162616",
"0.7156977",
"0.71544504",
"0.7079488",
"0.70515263",
"0.70468867",
"0.70430464",
"0.7034667",
"0.69802135",
"0.6967915",
"0.6959859",
"0.6959553",
"0.69589865",
"0.6921736",
"0.69110554",
"0.69094867",
"0.6901003",
"0.68906796",
"0.6881341",
"0.68451244",
"0.67966175",
"0.6793578",
"0.6793578",
"0.67600554",
"0.67543364",
"0.67370254",
"0.6732121",
"0.66924626",
"0.66924626",
"0.66677076",
"0.6657291",
"0.6645875",
"0.66448325",
"0.66102976",
"0.6600293",
"0.6594651",
"0.65899265",
"0.65535855",
"0.6547989",
"0.6545938",
"0.6541184",
"0.65377796",
"0.65354717",
"0.64955515",
"0.64938205",
"0.64920276",
"0.64555705",
"0.6450474",
"0.64411604",
"0.6420694",
"0.6408402",
"0.6400241",
"0.638861",
"0.636354",
"0.6362949",
"0.6325965",
"0.6322347",
"0.63199586",
"0.6307944",
"0.6299327",
"0.6294978",
"0.6289784",
"0.6285303",
"0.6277224",
"0.62445515",
"0.6244189",
"0.62392515",
"0.6137026",
"0.6136719",
"0.61349154",
"0.6115985",
"0.61060953",
"0.61037153",
"0.6092849",
"0.6091533",
"0.60909057",
"0.60792273",
"0.6079102",
"0.60778636",
"0.6054395",
"0.6047036",
"0.6013351",
"0.6012033",
"0.60039395",
"0.5989637",
"0.5986417",
"0.59794945",
"0.5971965",
"0.59703475",
"0.59697855",
"0.59668344"
]
| 0.6614852 | 42 |
Instantiates a new Person. | public Person(User user) {
this.username = user.getUsername();
this.email = user.getEmail();
this.firstname = user.getFirstname();
this.lastname = user.getLastname();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Person() {}",
"public Person() {\n\t\t\n\t}",
"public Person() {\n }",
"public Person() {\n }",
"public Person() {\n }",
"public Person() {\n }",
"Person createPerson();",
"public Person(String name) {\n\t\tthis.name = name;\n\t\tSystem.out.println(\"Instantiated a Person Object\");\n\t}",
"public Person(){\r\n\t\tsuper();\r\n\t}",
"public Person() {\n\t\tthis.name = \"Unknown\"; \n\t}",
"public Person(String firstName, String lastName) {\r\n name = new Name(firstName, lastName); \r\n id = (int )(Math.random() * 200 + 100);; \r\n }",
"public Person()\n {\n this.name = \"John Doe\";\n this.address = \"1234 Somewhere Dr.\";\n this.phoneNumber = \"309-555-1234\";\n this.emailAddress = \"[email protected]\";\n }",
"public Person (String firstName, String lastName, String address) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.address = address;\n\n }",
"public Person() {\r\n\t\tid = \"00000\";\r\n\t\tfName = \"unknown\";\r\n\t\tlName = \"unknown\";\r\n\t\tbirthday = LocalDate.now();\r\n\t\tphone = \"unknown\";\r\n\t\tstatus = \"unknown\";\r\n\t\tcontacts = new ArrayList<String>();\r\n\t}",
"public Persona() {\n\t}",
"public Person(String firstName, String lastName) {\n this.firstName = firstName;\n this.lastName = lastName;\n }",
"public Persona() {\n }",
"public Person(String associatedUserName, String firstName, String lastName, Gender gender) {\n Id = UUID.randomUUID().toString();\n AssociatedUserName = associatedUserName;\n FirstName = firstName;\n LastName = lastName;\n Gender = gender;\n }",
"public Person(String name) {\n this.name = name;\n }",
"public Person create() {\n\t\treturn personRepository.create();\n\t}",
"public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}",
"public Person(String name, String address, String postalCode, String city, String phone){\n // initialise instance variables\n this.name = name;\n this.address = address;\n this.postalCode = postalCode;\n this.city = city;\n this.phone = phone;\n }",
"public Person(String name)\n {\n this.name = name;\n }",
"public Person (String _name, int _ID) {\n name = _name;\n ID = _ID;\n }",
"public void create(Person p) {\n\t\t\n\t}",
"public Person createPerson(Person p);",
"public Person(String name){\n\t\tthis.name = name ; \n\t}",
"public Person()\n {\n //intentionally left empty\n }",
"public Person(String firstName, String lastName) {\n this.lastName = lastName;\n this.firstName = firstName;\n }",
"public Persona() {\n \t\n }",
"public Persona(){\n \n }",
"public Persona(){\n \n }",
"public Person(String name){\n\t\t\n\t\t\n\t\tthis.myName = name;\n\t\t\n\t}",
"public PersonRecord() {}",
"public Person1() {\n\t\tsuper();\n\t}",
"public Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\n\t}",
"private TypicalPersons() {}",
"private TypicalPersons() {}",
"@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}",
"public SchoolPerson() {\n }",
"public Person() {\r\n setPersonID(null);\r\n setAssocUserName(null);\r\n setFirstName(null);\r\n setLastName(null);\r\n setGender(null);\r\n setFatherID(null);\r\n setMotherID(null);\r\n setSpouseID(null);\r\n }",
"static public Person create(String name, String urlpt) {\n Person p;\n p = searchPerson(name);\n if (p == null)\n p = new Person(name, urlpt);\n return p;\n }",
"public Person(String username, String email) {\n this.username = username;\n this.email = email;\n }",
"public Person(String vorname, String nachname) {\n\n\t}",
"public Person(String inName)\n {\n name = inName;\n }",
"public Person(String name, String address, String phoneNumber, String emailAddress)\n {\n this.name = name;\n this.address = address;\n this.phoneNumber = phoneNumber;\n this.emailAddress = emailAddress;\n }",
"public Person(String name) {\n\t\t// Person person1 = new Person(name);\n\t\tthis.name = name;\n\t\tthis.listOfFriends = new LinkedQueue<Person>();\n\t\tthis.messages = new LinkedStack<String>();\n\t}",
"public Persona() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Person(String name, String phoneNumber, String email){\n setName(name);\n setPhoneNumber(phoneNumber);\n setEmail(email);\n }",
"public PersonaFisica() {}",
"public Person createPerson(String fullName, int age, String phone, String email, String favMovie, String city, String street, Profession profession, HashMap<String, Double> weightTable, ArrayList<String> hobbies) {\n startMetrics();\n String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();\n\n Person p = new Person(fullName,age,phone,email,favMovie,city,street,profession,weightTable,hobbies);\n p.setFullName(fullName);\n p.setAge(age);\n p.setPhone(phone);\n p.setEmail(email);\n p.setFavouriteMovie(favMovie);\n p.setCityName(city);\n p.setStreetName(street);\n p.setProfession(profession);\n p.setWeightTable(weightTable);\n p.setHobbies(hobbies);\n\n System.out.println(p.toString());\n\n printMethodName(methodName);\n stopMetrics();\n gatherPerformance(methodName);\n return p;\n }",
"public Person(String first, String last) {\n // Set instance var firstname to what is called from constructor\n this.firstName = first; \n // Set instance var lastname to what is called from constructor\n this.lastName = last;\n }",
"public PersonBean() {\n\t}",
"public Person(String name, String lastName, String home, int identificationNumber) {\n this.name = name;\n this.lastName = lastName;\n this.home = home;\n this.identificationNumber = identificationNumber;\n }",
"public AvroPerson() {}",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"private Person()\r\n\t{\r\n\t\tsuper();\r\n\t\t//created = LocalDateTime.now();\r\n\t\tcreated = Calendar.getInstance().getTime();\r\n\t}",
"public Person(String name, String number)\r\n\t{\r\n\t\tthis.name = name;\r\n\t\tthis.telephoneNumber = number;\r\n\t}",
"@Override\r\n\tpublic void create(Person p) \r\n\t{\n\t\t\r\n\t}",
"public Person(String name, String surname) {\n this.name = name;\n this.surname = surname;\n }",
"public Person(){\n count++;\n System.out.println(\"Creating an object\");\n }",
"public Customer(Person person) {\n this(person.getName(), person.getLastName(), person.getSex(), person.getBirthDay(), 0);\n }",
"public Person(String personNum, String personType, String personName, String personTelNo, String personEmail, String personAddress) {\r\n\t\tthis.personNum = personNum;\r\n\t\tthis.personType = personType;\r\n\t\tthis.personName = personName;\r\n\t\tthis.personTelNo = personTelNo;\r\n\t\tthis.personEmail = personEmail;\r\n\t\tthis.personAddress = personAddress;\r\n\t}",
"public Person(ElevatorController elevatorController){\n this.id = idGenerator.getAndIncrement();\n this.arrivalTime = setArrivalTime();\n this.arrivalFloor = setArrivalFloor();\n\t\t this.destinationFloor = setDestinationFloor();\n this.baggageWeight = setLuggageWeight();\n this.personWeight = setPassengerWeight();\n this.random = new Random();\n this.elevatorController = elevatorController;\n }",
"@Override\r\n\tpublic void create(Person person) {\n\r\n\t}",
"public Person(ElevatorControllerGUI elevatorController){\n this.id = idGenerator.getAndIncrement();\n this.arrivalTime = random.nextInt((30-1)+1)+1; \n this.arrivalFloor = random.nextInt((4-2)+1)+2; \n\t\t this.destinationFloor = random.nextInt((10-5)+1)+5; \n\t\t this.baggageWeight = setLuggageWeight();\n this.personWeight = setPassengerWeight();\n this.random = new Random();\n this.elevatorControllerGUI = elevatorController;\n }",
"public void CreatePerson(Person p){\n\t\tWeddingConnectionPoolManager con = new WeddingConnectionPoolManager(); \n\t\t Person p1 = new Person(p.getId(), p.getFirstName(), p.getLastName(), p.getRelationship(),\n\t\t\t\t p.getAddress(), p.getPhone(), p.getEmail(), p.getComment(), user.getId());\n\t\t System.out.println(\"p1 : \" + p1);\n\t\t System.out.println(\"p : \" + p);\n\t\t// TODO - should to iterate on the results that returns when calling to \"getpersons\" method.\n\t\tPersonDBManager.getInstance().CreateNewPerson(con.getConnectionFromPool(), p1);\t\n\t}",
"public Person1(int age, String name) {\n\t\tsuper();\n\t\tthis.age = age;\n\t\tthis.name = name;\n\t}",
"public Persona(String nombre) {\n this.nombre = nombre;\n }",
"@Test(enabled = true)\n public void createPerson() {\n List <Account> accounts = new ArrayList<>();\n List<Subscription> sub = new ArrayList<>();\n \n Contact contact = new Contact.Builder().emailaddress(\"[email protected]\").phoneNumber(\"021345685\").build();\n Address address = new Address.Builder().location(\"Daveyton\").streetName(\"Phaswane Street\").houseNumber(45).build();\n \n repo = ctx.getBean(PersonsRepository.class);\n Person p = new Person.Builder()\n .firstname(\"Nobu\")\n .lastname(\"Tyokz\")\n .age(25)\n .account(accounts)\n .sub(sub)\n .contact(contact)\n .address(address)\n .build();\n repo.save(p);\n id = p.getId();\n Assert.assertNotNull(p);\n\n }",
"People(String name, int age) {\n this.name = name;\n this.age = age;\n }",
"private Person(String name, String urlpt) {\n this.name = name;\n this.urlpt = urlpt;\n personMap.put(name, this);\n coauthorsLoaded = false;\n labelvalid = false;\n }",
"public PersonEvent(Person person) {\n super(person);\n this.person = person;\n }",
"public Person(String name, int birthYear, String homeTown) {\n\n\t\t// initialises variable and refers to the object\n\t\tthis.name = name;\n\t\tthis.birthYear = birthYear;\n\t\tthis.homeTown = homeTown;\n\n\t}",
"public Person(String name, String address, String aadharId) {\n this.name = name;\n this.address = address;\n this.aadharId = aadharId;\n }",
"public Student(Person person) {\r\n\t\tsuper(person);\r\n\t}",
"private FacadePerson() throws personNotFoundExeption{}",
"public void create(Person person) {\n\t\tpersonRepository.save(person);\n\t}",
"public Person(String first, String last) {\n\t\tthis(first, last, -1);\n\t}",
"public Person (String inName, String inFirstName, LocalDate inDateOfBirth) {\n super(inName);\n this.dateOfBirth = inDateOfBirth;\n this.firstName = inFirstName;\n }",
"public Person(String ID, String number){\n \n phoneNums = new LinkedList<String>();\n this.addNum(number);\n this.ID = ID;\n }",
"public Person(String name) {\n this.name = name;\n this.date = new Date();\n this.neck = -1.0;\n this.bust = -1.0;\n this.chest = -1.0;\n this.waist = -1.0;\n this.hip = -1.0;\n this.inseam = -1.0;\n this.comment = \"Not comment available.\";\n }",
"public Person(String name, String city) {\n this.name = name;\n this.city = city;\n }",
"public Person build(){\n return new Person(this);\n }",
"public Person(String personID, String assocUserName, String firstName, String lastName, String gender, String fatherID, String motherID, String spouseID, String childID) {\r\n setPersonID(personID);\r\n setAssocUserName(assocUserName);\r\n setFirstName(firstName);\r\n setLastName(lastName);\r\n setGender(gender);\r\n setFatherID(fatherID);\r\n setMotherID(motherID);\r\n setSpouseID(spouseID);\r\n setChildID(childID);\r\n }",
"public Person getRandomPerson() {\n //Randomize all characteristics of a person\n int age = (int) (rd.nextDouble() * 100); //within 100y old\n int gd = (int) Math.round(rd.nextDouble() * (Person.Gender.values().length - 1));\n int bt = (int) Math.round(rd.nextDouble() * (Person.BodyType.values().length - 1));\n int pf = (int) Math.round(rd.nextDouble() * (Person.Profession.values().length - 1));\n boolean isPreg = rd.nextBoolean();\n\n //Construct a person with random characteristic\n //Person(int age, Profession profession, Gender gender, BodyType bodytype, boolean isPregnant)\n P = new Person(age, Person.Profession.values()[pf], Person.Gender.values()[gd], Person.BodyType.values()[bt], isPreg);\n return P;\n }",
"private void init(){\r\n\t\tString fullName = this.person_.getFirstName()+\" \"+this.person_.getLastName();\r\n\t\tboolean alreadyExists = PersonModel.exists(fullName);\r\n\t\t\r\n\t\tif(alreadyExists == true){\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//need to create person\r\n\t\t\tPersonModel pm = new PersonModel(fullName);\r\n\t\t\tpm.save();\r\n\t\t}\r\n\r\n\t}",
"public static Person createPerson(String name, String occupation) {\n switch (occupation.toLowerCase()) {\n case \"doctor\":\n return new Doctor(name);\n case \"professor\":\n return new Professor(name);\n case \"student\":\n return new Student(name);\n default:\n return null;\n }\n }",
"public Person(String n,int d, int m, int y)\n\t{\n\t\tname=n;\n\t\tdob=new Date(d,m,y);\t\n\t}",
"@Override\n\tpublic Person createPerson(String id, String slug, String firstName,\n\t\t\tString lastName, String photoId, Gender gender) {\n\t\tfinal Person person = createPerson();\n\t\tperson.setId(id);\n\t\tperson.setSlug(slug);\n\t\tperson.setFirstName(firstName);\n\t\tperson.setLastName(lastName);\n\t\tperson.setName(firstName + \" \" + lastName);\n\t\tperson.setPhotoId(photoId);\n\t\tperson.setGender(gender);\n\t\treturn person;\n\t}",
"public Persona(String nombre) {\n\t\tthis.nombre = nombre;\n\t}",
"public Person(String name, String surname, String phoneNumber, Boolean loyaltyCard, Double salary) {\n setName(name);\n setSurname(surname);\n setPhoneNumber(phoneNumber);\n\n addPersonTypes(PersonType.CLIENT);\n addPersonTypes(PersonType.WORKER);\n\n setLoyaltyCard(loyaltyCard);\n setSalary(salary);\n }",
"public Person(String userId, String firstName, String lastName, Gender gender, String spouseId, String fatherId, String motherId) {\n Id = UUID.randomUUID().toString();\n AssociatedUserName = userId;\n FirstName = firstName;\n LastName = lastName;\n Gender = gender;\n SpouseId = spouseId;\n FatherId = fatherId;\n MotherId = motherId;\n }",
"public Persona(int idPersona, String nombre, String apellido, String email, String telefono){\n this.idPersona = idPersona;\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n \n }",
"public PersonaVO() {\n }",
"public Persona(int idPersona){\n this.idPersona = idPersona;\n }",
"public Person(String lastName, String firstName, String street, long tid, String phone, String mobile, String email) {\n this.lastName = lastName;\n this.firstName = firstName;\n this.address = street;\n this.tid = tid;\n this.phone = phone;\n this.mobile = mobile;\n this.email = email;\n }",
"public static User createPerson() throws ParserConfigurationException, SAXException, IOException {\n User[] users = XMLReader.parsePersonXML();\n User user = users[0];\n calories = user.getCalories();\n diet = user.getDiet();\n quantity = user.getQuantityOfPeople();\n transport = user.getTransport();\n return user;\n }",
"public Persona(String nombre, String apellido, String email, String telefono){\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n }",
"public static void main(String[]arg){\n Person person1 = new Person();\n person1.setName(\"Bright Kingsley\");\n person1.setPhone(\"08133193153\");\n person1.setAddress(\"Umudike\");\n System.out.println(\"The name is :\"+person1.getName());\n System.out.println(\"The Address is :\"+person1.getAddress());\n System.out.println(\"The Phone Number is :\"+person1.getPhone());\n \n Pearson ps1= new Pearson();\n Pearson ps= new Pearson(\"Chris\", \"070412937854\",\"Aba\");\n System.out.println(\"The name is :\"+ps.getName());\n System.out.println(\"The Address is :\"+ps.getAddress());\n System.out.println(\"The Phone Number is :\"+ps.getPhone());\n \n }"
]
| [
"0.77791154",
"0.7694394",
"0.7632798",
"0.7632798",
"0.7632798",
"0.7632798",
"0.7479597",
"0.7231636",
"0.7216514",
"0.7162616",
"0.7156977",
"0.71544504",
"0.7079488",
"0.70515263",
"0.70468867",
"0.70430464",
"0.7034667",
"0.69802135",
"0.6967915",
"0.6959859",
"0.6959553",
"0.69589865",
"0.6921736",
"0.69110554",
"0.69094867",
"0.6901003",
"0.68906796",
"0.6881341",
"0.68451244",
"0.67966175",
"0.6793578",
"0.6793578",
"0.67600554",
"0.67543364",
"0.67370254",
"0.6732121",
"0.66924626",
"0.66924626",
"0.66677076",
"0.6657291",
"0.6645875",
"0.66448325",
"0.6614852",
"0.66102976",
"0.6600293",
"0.6594651",
"0.65899265",
"0.65535855",
"0.6547989",
"0.6545938",
"0.6541184",
"0.65377796",
"0.65354717",
"0.64955515",
"0.64938205",
"0.64920276",
"0.64555705",
"0.6450474",
"0.64411604",
"0.6420694",
"0.6408402",
"0.6400241",
"0.638861",
"0.636354",
"0.6362949",
"0.6325965",
"0.6322347",
"0.63199586",
"0.6307944",
"0.6299327",
"0.6294978",
"0.6289784",
"0.6285303",
"0.6277224",
"0.62445515",
"0.6244189",
"0.62392515",
"0.6137026",
"0.6136719",
"0.61349154",
"0.6115985",
"0.61060953",
"0.61037153",
"0.6092849",
"0.6091533",
"0.60909057",
"0.60792273",
"0.6079102",
"0.60778636",
"0.6047036",
"0.6013351",
"0.6012033",
"0.60039395",
"0.5989637",
"0.5986417",
"0.59794945",
"0.5971965",
"0.59703475",
"0.59697855",
"0.59668344"
]
| 0.6054395 | 89 |
Generate the alignment of sentences, the test revision documents would be modified at sentence alignment | public void align(ArrayList<RevisionDocument> trainDocs,
ArrayList<RevisionDocument> testDocs, int option) throws Exception {
Hashtable<DocumentPair, double[][]> probMatrix = aligner
.getProbMatrixTable(trainDocs, testDocs, option);
Iterator<DocumentPair> it = probMatrix.keySet().iterator();
while (it.hasNext()) {
DocumentPair dp = it.next();
String name = dp.getFileName();
for (RevisionDocument doc : testDocs) {
if (doc.getDocumentName().equals(name)) {
double[][] sim = probMatrix.get(dp);
double[][] fixedSim = aligner.alignWithDP(dp, sim, option);
alignSingle(doc, sim, fixedSim, option);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void align(ArrayList<RevisionDocument> trainDocs,\n\t\t\tArrayList<RevisionDocument> testDocs, int option, boolean usingNgram)\n\t\t\tthrows Exception {\n\t\tHashtable<DocumentPair, double[][]> probMatrix = aligner\n\t\t\t\t.getProbMatrixTable(trainDocs, testDocs, option);\n\t\tIterator<DocumentPair> it = probMatrix.keySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tDocumentPair dp = it.next();\n\t\t\tString name = dp.getFileName();\n\t\t\tfor (RevisionDocument doc : testDocs) {\n\t\t\t\tif (doc.getDocumentName().equals(name)) {\n\t\t\t\t\tdouble[][] sim = probMatrix.get(dp);\n\t\t\t\t\tdouble[][] fixedSim = aligner.alignWithDP(dp, sim, option);\n\t\t\t\t\talignSingle(doc, sim, fixedSim, option);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tHashtable<String, RevisionDocument> table = new Hashtable<String, RevisionDocument>();\n\t\tfor (RevisionDocument doc : testDocs) {\n\t\t\tRevisionUnit predictedRoot = new RevisionUnit(true);\n\t\t\tpredictedRoot.setRevision_level(3); // Default level to 3\n\t\t\tdoc.setPredictedRoot(predictedRoot);\n\t\t\ttable.put(doc.getDocumentName(), doc);\n\t\t}\n\t\tRevisionPurposeClassifier rpc = new RevisionPurposeClassifier();\n\t\tInstances data = rpc.createInstances(testDocs, usingNgram);\n\t\tHashtable<String, Integer> revIndexTable = new Hashtable<String, Integer>();\n\t\tint dataSize = data.numInstances();\n\t\tfor (int j = 0;j<dataSize;j++) {\n\t\t\tInstance instance = data.instance(j);\n\t\t\tint ID_index = data.attribute(\"ID\").index();\n\t\t\t// String ID =\n\t\t\t// data.instance(ID_index).stringValue(instance.attribute(ID_index));\n\t\t\tString ID = instance.stringValue(instance.attribute(ID_index));\n\t\t\tAlignStruct as = AlignStruct.parseID(ID);\n\t\t\t// System.out.println(ID);\n\t\t\tRevisionDocument doc = table.get(as.documentpath);\n\t\t\tRevisionUnit ru = new RevisionUnit(doc.getPredictedRoot());\n\t\t\tru.setNewSentenceIndex(as.newIndices);\n\t\t\tru.setOldSentenceIndex(as.oldIndices);\n\t\t\tif (as.newIndices == null || as.newIndices.size() == 0) {\n\t\t\t\tru.setRevision_op(RevisionOp.DELETE);\n\t\t\t} else if (as.oldIndices == null || as.oldIndices.size() == 0) {\n\t\t\t\tru.setRevision_op(RevisionOp.ADD);\n\t\t\t} else {\n\t\t\t\tru.setRevision_op(RevisionOp.MODIFY);\n\t\t\t}\n\n\t\t\tru.setRevision_purpose(RevisionPurpose.CLAIMS_IDEAS); // default of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ADD and\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Delete\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// are\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// content\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// edits\n\n\t\t\tru.setRevision_level(0);\n\t\t\tif (revIndexTable.containsKey(as.documentpath)) {\n\t\t\t\tru.setRevision_index(revIndexTable.get(as.documentpath));\n\t\t\t\trevIndexTable.put(as.documentpath,\n\t\t\t\t\t\trevIndexTable.get(as.documentpath) + 1);\n\t\t\t} else {\n\t\t\t\tru.setRevision_index(1);\n\t\t\t\trevIndexTable.put(as.documentpath, 2);\n\t\t\t}\n\t\t\tdoc.getPredictedRoot().addUnit(ru);\n\t\t}\n\t}",
"@Test\n \tpublic void testSimpleAlignments()\n \t{\n \t\tSystem.out.format(\"\\n\\n-------testSimpleAlignments() ------------------------\\n\");\n \t\tPseudoDamerauLevenshtein DL = new PseudoDamerauLevenshtein();\n \t\t//DL.init(\"AB\", \"CD\", false, true);\n \t\t//DL.init(\"ACD\", \"ADE\", false, true);\n \t\t//DL.init(\"AB\", \"XAB\", false, true);\n \t\t//DL.init(\"AB\", \"XAB\", true, true);\n \t\t//DL.init(\"fit\", \"xfity\", true, true);\n \t\t//DL.init(\"fit\", \"xxfityyy\", true, true);\n \t\t//DL.init(\"ABCD\", \"BACD\", false, true);\n \t\t//DL.init(\"fit\", \"xfityfitz\", true, true);\n \t\t//DL.init(\"fit\", \"xfitfitz\", true, true);\n \t\t//DL.init(\"fit\", \"xfitfitfitfitz\", true, true);\n \t\t//DL.init(\"setup\", \"set up\", true, true);\n \t\t//DL.init(\"set up\", \"setup\", true, true);\n \t\t//DL.init(\"hobbies\", \"hobbys\", true, true);\n \t\t//DL.init(\"hobbys\", \"hobbies\", true, true);\n \t\t//DL.init(\"thee\", \"The x y the jdlsjds salds\", true, false);\n \t\tDL.init(\"Bismark\", \"... Bismarck lived...Bismarck reigned...\", true, true);\n \t\t//DL.init(\"refugee\", \"refuge x y\", true, true);\n \t\t//StringMatchingStrategy.APPROXIMATE_MATCHING_MINPROB\n \t\tList<PseudoDamerauLevenshtein.Alignment> alis = DL.computeAlignments(0.65);\n \t\tSystem.out.format(\"----------result of testSimpleAlignments() ---------------------\\n\\n\");\n \t\tfor (Alignment ali: alis)\n \t\t{\n \t\t\tali.print();\n \t\t}\n \t}",
"public static void main(String[] args) {\n\t\tString s = \"this is a small house .\";\n\t\tString t = \"das ist ein kleines haus .\";\n\t\tString m = \"das ist |0-1| ein kleines |2-3| haus . |4-5|\";\n\t\tArrayList<String> x = new XlingualProjection().ExtractAlignments(s,t,m);\n\t\tfor (int i=0; i<x.size(); i++){\n\t\t\tSystem.out.println(x.get(i));\n\t\t}\n\t\n\t\tString[] y = new XlingualProjection().getSrcPhrases(x);\n\t\tint start = 0;\n\t\tint end = 0;\n\t\t\n\t\tfor(int i=0; i < y.length; i++){ // Traverse through each phrase\n \tend = start + y[i].length();\n \tSystem.out.println(y[i] + \" \" + start + \" \" + end);\n \t\t\n \t\tstart = end+1;\n }\n\n }",
"private void alignSingle(RevisionDocument doc, double[][] probMatrix,\n\t\t\tdouble[][] fixedMatrix, int option) throws Exception {\n\t\tint oldLength = probMatrix.length;\n\t\tint newLength = probMatrix[0].length;\n\t\tif (doc.getOldSentencesArray().length != oldLength\n\t\t\t\t|| doc.getNewSentencesArray().length != newLength) {\n\t\t\tthrow new Exception(\"Alignment sentence does not match\");\n\t\t} else {\n\t\t\t/*\n\t\t\t * Rules for alignment 1. Allows one to many and many to one\n\t\t\t * alignment 2. No many to many alignments (which would make the\n\t\t\t * annotation even more difficult)\n\t\t\t */\n\t\t\tif (option == -1) { // Baseline 1, using the exact match baseline\n\t\t\t\tfor (int i = 0; i < oldLength; i++) {\n\t\t\t\t\tfor (int j = 0; j < newLength; j++) {\n\t\t\t\t\t\tif (probMatrix[i][j] == 1) {\n\t\t\t\t\t\t\tdoc.predictNewMappingIndex(j + 1, i + 1);\n\t\t\t\t\t\t\tdoc.predictOldMappingIndex(i + 1, j + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (option == -2) { // Baseline 2, using the similarity\n\t\t\t\t\t\t\t\t\t\t// baseline\n\t\t\t\tfor (int i = 0; i < oldLength; i++) {\n\t\t\t\t\tfor (int j = 0; j < newLength; j++) {\n\t\t\t\t\t\tif (probMatrix[i][j] > 0.5) {\n\t\t\t\t\t\t\tdoc.predictNewMappingIndex(j + 1, i + 1);\n\t\t\t\t\t\t\tdoc.predictOldMappingIndex(i + 1, j + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else { // current best approach\n\t\t\t\tfor (int i = 0; i < oldLength; i++) {\n\t\t\t\t\tfor (int j = 0; j < newLength; j++) {\n\t\t\t\t\t\tif (fixedMatrix[i][j] == 1) {\n\t\t\t\t\t\t\tdoc.predictNewMappingIndex(j + 1, i + 1);\n\t\t\t\t\t\t\tdoc.predictOldMappingIndex(i + 1, j + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Code for improving\n\t\t\t}\n\t\t}\n\t}",
"@Before\n\tpublic void setUp() throws Exception {\n\t\tList<Paragraph> paragraphs = new ArrayList<Paragraph>();\n\t\tList<Paragraph> paragraphsWithNoSentences = new ArrayList<Paragraph>();\n\t\t\n\t\tScanner sc = null, sc1 = null;\n\t\ttry {\n\t\t\tsc = new Scanner(new File(\"testsearchtext.txt\"));\n\t\t\tsc1 = new Scanner(new File(\"testsearchentity.txt\"));\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsc.useDelimiter(\"[.]\");\n\t\tsc1.useDelimiter(\"[|]\");\n\t\t\n\t\tList<Sentence> sentences = new ArrayList<Sentence>();\n\t\tint sCount = 0;\n\t\tint pCount = 0;\n\t\twhile(sc.hasNext()){\n\t\t\tString temp = sc.next().trim();\n\n\t\t\tif(sCount > 0 && (sCount%10 == 0 || !sc.hasNext())){\n\t\t\t\tParagraph p = new Paragraph(pCount);\n\t\t\t\tparagraphsWithNoSentences.add(p);\n\t\t\t\t\n\t\t\t\tp = new Paragraph(pCount);\n\t\t\t\tp.setSentences(sentences);\n\t\t\t\tparagraphs.add(p);\n\t\t\t\tpCount++;\n\t\t\t\t\n\t\t\t\tsentences = new ArrayList<Sentence>();\n\t\t\t}\n\t\t\t\n\t\t\tif(!temp.equals(\"\"))\n\t\t\t\tsentences.add(new Sentence((sCount%10), temp));\n\t\t\t\n\t\t\tsCount++;\n\t\t}\n\t\t\n\t\tList<Entity> entities = new ArrayList<Entity>();\n\t\tint currType = -1; \n\t\twhile(sc1.hasNext()){\n\t\t\tString temp = sc1.next().trim();\n\t\t\tif(temp.equals(\"place\")){currType = Entity.PLACE;} else\n\t\t\tif(temp.equals(\"url\")){currType = Entity.URL;} else\n\t\t\tif(temp.equals(\"email\")){currType = Entity.EMAIL;} else\n\t\t\tif(temp.equals(\"address\")){currType = Entity.ADDRESS;} \n\t\t\telse{\n\t\t\t\tentities.add(new Entity(currType, temp));\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tSource s = new Source(\"testsearchtext.txt\", \"testsearchtext.txt\");\n\t\tpt1 = new ProcessedText(s, paragraphs, null); \n\t\t\n\t\ts = new Source(\"testsearchtext1.txt\", \"testsearchtext1.txt\");\n\t\tpt2 = new ProcessedText(s, paragraphsWithNoSentences, null); \n\t\t\n\t\tpt3 = new ProcessedText();\n\t\tpt3.setParagraphs(paragraphs);\n\t\t\n\t\tpt4 = new ProcessedText();\n\t\ts = new Source(\"testsearchtext2.txt\", \"testsearchtext2.txt\");\n\t\tpt4.setMetadata(s);\n\t\t\n\t\ts = new Source(\"testsearchtext3.txt\", \"testsearchtext3.txt\");\n\t\tpt5 = new ProcessedText(s, paragraphs, entities); \n\t\t\n\t\ts = new Source(\"testsearchtext4.txt\", \"testsearchtext4.txt\");\n\t\tpt6 = new ProcessedText(s, null, entities); \n\t}",
"public String getAnnotatedSequence(JCas systemView, JCas goldView, Sentence sentence) {\n\n List<String> annotatedSequence = new ArrayList<>();\n\n for(BaseToken baseToken : JCasUtil.selectCovered(systemView, BaseToken.class, sentence)) {\n List<EventMention> events = JCasUtil.selectCovering(goldView, EventMention.class, baseToken.getBegin(), baseToken.getEnd());\n List<TimeMention> times = JCasUtil.selectCovering(goldView, TimeMention.class, baseToken.getBegin(), baseToken.getEnd());\n\n if(events.size() > 0) {\n // this is an event (single word)\n annotatedSequence.add(\"<e>\");\n annotatedSequence.add(baseToken.getCoveredText());\n annotatedSequence.add(\"</e>\");\n } else if(times.size() > 0) {\n // this is time expression (multi-word)\n if(times.get(0).getBegin() == baseToken.getBegin()) {\n annotatedSequence.add(\"<t>\");\n }\n annotatedSequence.add(baseToken.getCoveredText());\n if(times.get(0).getEnd() == baseToken.getEnd()) {\n annotatedSequence.add(\"</t>\"); \n }\n } else {\n annotatedSequence.add(baseToken.getCoveredText());\n }\n }\n \n return String.join(\" \", annotatedSequence).replaceAll(\"[\\r\\n]\", \" \");\n }",
"public void printAlignment(SWGAlignment alignment){\n\t\t\tString \torigSeq1 = alignment.getOriginalSequence1().toString(),\n\t\t\t\t\torigSeq2 = alignment.getOriginalSequence2().toString(),\n\t\t\t\t\talnSeq1 = new String(alignment.getSequence1()),\n\t\t\t\t\talnSeq2 = new String(alignment.getSequence2());\n\t\t\tint \tstart1 = alignment.getStart1(),\n\t\t\t\t\tstart2 = alignment.getStart2(),\n\t\t\t\t\tgap1 = alignment.getGaps1(),\n\t\t\t\t\tgap2 = alignment.getGaps2();\n\t\t\t\n\t\t\tString seq1, seq2, mark;\n\t\t\tif(start1>=start2){\n\t\t\t\tseq1=origSeq1.substring(0, start1) + alnSeq1 + origSeq1.substring(start1+alnSeq1.length()-gap1);\n\t\t\t\tString \tseq2Filler = start1==start2?\"\":String.format(\"%\"+(start1-start2)+\"s\", \"\"),\n\t\t\t\t\t\tmarkFiller = start1==0?\"\":String.format(\"%\"+start1+\"s\", \"\");\n\t\t\t\tseq2= seq2Filler + origSeq2.substring(0, start2) + alnSeq2 + origSeq2.substring(start2+alnSeq2.length()-gap2);\n\t\t\t\tmark= markFiller+String.valueOf(alignment.getMarkupLine());\n\t\t\t}else{\n\t\t\t\tseq2=origSeq2.substring(0, start2) + alnSeq2 + origSeq2.substring(start2+alnSeq2.length()-gap2);\n\t\t\t\tString \tmarkFiller = start2==0?\"\":String.format(\"%\"+start2+\"s\", \"\");\n\t\t\t\tseq1=String.format(\"%\"+(start2-start1)+\"s\", \"\") + origSeq1.substring(0, start1) + alnSeq1 + origSeq1.substring(start1+alnSeq1.length()-gap1);\n\t\t\t\tmark=markFiller+String.valueOf(alignment.getMarkupLine());\n\t\t\t}\n\t\t\tSystem.out.println(alignment.getSummary());\n\t\t\tSystem.out.println(seq1);\n\t\t\tSystem.out.println(mark);\n\t\t\tSystem.out.println(seq2);\n\t\t}",
"public static void main(String[] args) {\r\n // feed the generator a fixed random value for repeatable behavior\r\n MarkovTextGeneratorLoL gen = new MarkovTextGeneratorLoL(new Random(42));\r\n //String textString = \"hi there hi Leo\";\r\n //String textString = \"\";\r\n \r\n String textString = \"Hello. Hello there. This is a test. Hello there. Hello Bob. Test again.\";\r\n System.out.println(textString);\r\n gen.train(textString);\r\n System.out.println(gen);\r\n System.out.println(\"Generator: \" + gen.generateText(0));\r\n String textString2 = \"You say yes, I say no, \" +\r\n \"You say stop, and I say go, go, go, \" +\r\n \"Oh no. You say goodbye and I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello. \" +\r\n \"I say high, you say low, \" +\r\n \"You say why, and I say I don't know. \" +\r\n \"Oh no. \" +\r\n \"You say goodbye and I say hello, hello, hello. \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello. \" +\r\n \"Why, why, why, why, why, why, \" +\r\n \"Do you say goodbye. \" +\r\n \"Oh no. \" +\r\n \"You say goodbye and I say hello, hello, hello. \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello. \" +\r\n \"You say yes, I say no, \" +\r\n \"You say stop and I say go, go, go. \" +\r\n \"Oh, oh no. \" +\r\n \"You say goodbye and I say hello, hello, hello. \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello,\";\r\n System.out.println(textString2);\r\n gen.retrain(textString2);\r\n System.out.println(gen);\r\n System.out.println(gen.generateText(20));\r\n }",
"public void repeatAlign(ArrayList<RevisionDocument> docs) throws Exception {\n\t\tHashtable<String, RevisionDocument> table = new Hashtable<String, RevisionDocument>();\n\t\tfor (RevisionDocument doc : docs) {\n\t\t\tRevisionUnit predictedRoot = new RevisionUnit(true);\n\t\t\tpredictedRoot.setRevision_level(3); // Default level to 3\n\t\t\tdoc.setPredictedRoot(predictedRoot);\n\t\t\ttable.put(doc.getDocumentName(), doc);\n\t\t\tArrayList<RevisionUnit> rus = doc.getRoot().getRevisionUnitAtLevel(\n\t\t\t\t\t0);\n\t\t\tfor (RevisionUnit ru : rus) {\n\t\t\t\tpredictedRoot.addUnit(ru.copy(predictedRoot));\n\t\t\t}\n\t\t}\n\t}",
"public ArrayList<String> makeSentences(String text) {\n \t\t/*\n \t\t * Quick check so we're not trying to split up an empty\n \t\t * String. This only happens right before the user types\n \t\t * at the end of a document and we don't have anything to\n \t\t * split, so return.\n \t\t */\n \t\tif (text.equals(\"\")) {\n \t\t\tArrayList<String> sents = new ArrayList<String>();\n \t\t\tsents.add(\"\");\n \t\t\treturn sents;\n \t\t}\n \t\t\n \t\t/**\n \t\t * Because the eosTracker isn't initialized until the TaggedDocument is,\n \t\t * it won't be ready until near the end of DocumentProcessor, in which\n \t\t * case we want to set it to the correct\n \t\t */\n \t\tthis.eosTracker = main.editorDriver.taggedDoc.eosTracker;\n \t\tthis.editorDriver = main.editorDriver;\n \t\t\n \t\tArrayList<String> sents = new ArrayList<String>(ANONConstants.EXPECTED_NUM_OF_SENTENCES);\n \t\tArrayList<String> finalSents = new ArrayList<String>(ANONConstants.EXPECTED_NUM_OF_SENTENCES);\n \t\tboolean mergeNext = false;\n \t\tboolean mergeWithLast = false;\n \t\tboolean forceNoMerge = false;\n \t\tint currentStart = 1;\n \t\tint currentStop = 0;\n \t\tString temp;\n \n \t\t/**\n \t\t * replace unicode format characters that will ruin the regular\n \t\t * expressions (because non-printable characters in the document still\n \t\t * take up indices, but you won't know they're there untill you\n \t\t * \"arrow\" though the document and have to hit the same arrow twice to\n \t\t * move past a certain point. Note that we must use \"Cf\" rather than\n \t\t * \"C\". If we use \"C\" or \"Cc\" (which includes control characters), we\n \t\t * remove our newline characters and this screws up the document. \"Cf\"\n \t\t * is \"other, format\". \"Cc\" is \"other, control\". Using \"C\" will match\n \t\t * both of them.\n \t\t */\n \t\ttext = text.replaceAll(\"\\u201C\",\"\\\"\");\n \t\ttext = text.replaceAll(\"\\u201D\",\"\\\"\");\n \t\ttext = text.replaceAll(\"\\\\p{Cf}\",\"\");\n \n \t\tint lenText = text.length();\n \t\tint index = 0;\n \t\tint buffer = editorDriver.sentIndices[0];\n \t\tString safeString = \"\";\n \t\tMatcher abbreviationFinder = ABBREVIATIONS_PATTERN.matcher(text);\n \t\t\n \t\t//================ SEARCHING FOR ABBREVIATIONS ================\n \t\twhile (index < lenText-1 && abbreviationFinder.find(index)) {\n \t\t\tindex = abbreviationFinder.start();\n \t\t\t\n \t\t\ttry {\n \t\t\t\tint abbrevLength = index;\n \t\t\t\twhile (text.charAt(abbrevLength) != ' ') {\n \t\t\t\t\tabbrevLength--;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (ABBREVIATIONS.contains(text.substring(abbrevLength+1, index+1))) {\n \t\t\t\t\teosTracker.setIgnore(index+buffer, true);\n \t\t\t\t}\n \t\t\t} catch (Exception e) {}\n \t\t\t\n \t\t\tindex++;\n \t\t}\t\t\n \t\t\n \t\tMatcher sent = EOS_chars.matcher(text);\n \t\tboolean foundEOS = sent.find(currentStart); // xxx TODO xxx take this EOS character, and if not in quotes, swap it for a permanent replacement, and create and add an EOS to the calling TaggedDocument's eosTracker.\n \t\t\n \t\t/*\n \t\t * We want to check and make sure that the EOS character (if one was found) is not supposed to be ignored. If it is, we will act like we did not\n \t\t * find it. If there are multiple sentences with multiple EOS characters passed it will go through each to check, foundEOS will only be true if\n \t\t * an EOS exists in \"text\" that would normally be an EOS character and is not set to be ignored.\n \t\t */\n \t\t\n \t\tindex = 0;\n \t\tif (foundEOS) {\t\n \t\t\ttry {\n \t\t\t\twhile (index < lenText-1 && sent.find(index)) {\n \t\t\t\t\tindex = sent.start();\n \t\t\t\t\tif (!eosTracker.sentenceEndAtIndex(index+buffer)) {\n \t\t\t\t\t\tfoundEOS = false;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tfoundEOS = true;\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\tindex++;\n \t\t\t\t}\n \t\t\t} catch (IllegalStateException e) {}\n \t\t}\n \t\t//We need to reset the Matcher for the code below\n \t\tsent = EOS_chars.matcher(text);\n \t\tsent.find(currentStart);\n \t\t\n \t\tMatcher sentEnd;\n \t\tMatcher citationFinder;\n \t\tboolean hasCitation = false;\n \t\tint charNum = 0;\n \t\tint lenTemp = 0;\n \t\tint lastQuoteAt = 0;\n \t\tint lastParenAt = 0;\n \t\tboolean foundQuote = false;\n \t\tboolean foundParentheses = false;\n \t\tboolean isSentence;\n \t\tboolean foundAtLeastOneEOS = foundEOS;\n \t\t\n \t\t/**\n \t\t * Needed otherwise when the user has text like below:\n \t\t * \t\tThis is my sentence one. This is \"My sentence?\" two. This is the last sentence.\n \t\t * and they begin to delete the EOS character as such:\n \t\t * \t\tThis is my sentence one. This is \"My sentence?\" two This is the last sentence.\n \t\t * Everything gets screwed up. This is because the operations below operate as expected only when there actually is an EOS character\n \t\t * at the end of the text, it expects it there in order to function properly. Now usually if there is no EOS character at the end it wouldn't\n \t\t * matter since the while loop and !foundAtLeastOneEOS conditional are executed properly, BUT as you can see the quotes, or more notably the EOS character inside\n \t\t * the quotes, triggers this initial test and thus the operation breaks. This is here just to make sure that does not happen.\n \t\t */\n \t\tString trimmedText = text.trim();\n \t\tint trimmedTextLength = trimmedText.length();\n \n \t\t//We want to make sure that if there is an EOS character at the end that it is not supposed to be ignored\n \t\tboolean EOSAtSentenceEnd = true;\n \t\tif (trimmedTextLength != 0) {\n \t\t\tEOSAtSentenceEnd = EOS.contains(trimmedText.substring(trimmedTextLength-1, trimmedTextLength)) && eosTracker.sentenceEndAtIndex(editorDriver.sentIndices[1]-1);\n \t\t} else {\n \t\t\tEOSAtSentenceEnd = false;\n \t\t}\n \t\t\n \t\t//Needed so that if we are deleting abbreviations like \"Ph.D.\" this is not triggered.\n \t\tif (!EOSAtSentenceEnd && (editorDriver.taggedDoc.watchForEOS == -1))\n \t\t\tEOSAtSentenceEnd = true;\n \n \t\twhile (foundEOS == true) {\n \t\t\tcurrentStop = sent.end();\n \t\t\t\n \t\t\t//We want to make sure currentStop skips over ignored EOS characters and stops only when we hit a true EOS character\n \t\t\ttry {\n \t\t\t\twhile (!eosTracker.sentenceEndAtIndex(currentStop+buffer-1) && currentStop != lenText) {\n \t\t\t\t\tsent.find(currentStop+1);\n \t\t\t\t\tcurrentStop = sent.end();\n \t\t\t\t}\n \t\t\t} catch (Exception e) {}\n \n \t\t\ttemp = text.substring(currentStart-1,currentStop);\n \t\t\tlenTemp = temp.length();\n \t\t\tlastQuoteAt = 0;\n \t\t\tlastParenAt = 0;\n \t\t\tfoundQuote = false;\n \t\t\tfoundParentheses = false;\n \t\t\t\n \t\t\tfor(charNum = 0; charNum < lenTemp; charNum++){\n \t\t\t\tif (temp.charAt(charNum) == '\\\"') {\n \t\t\t\t\tlastQuoteAt = charNum;\n \t\t\t\t\t\n \t\t\t\t\tif (foundQuote == true)\n \t\t\t\t\t\tfoundQuote = false;\n \t\t\t\t\telse\n \t\t\t\t\t\tfoundQuote = true;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (temp.charAt(charNum) == '(') {\n \t\t\t\t\tlastParenAt = charNum;\n \t\t\t\t\t\n \t\t\t\t\tif (foundParentheses)\n \t\t\t\t\t\tfoundParentheses = false;\n \t\t\t\t\telse\n \t\t\t\t\t\tfoundParentheses = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (foundQuote == true && ((temp.indexOf(\"\\\"\",lastQuoteAt+1)) == -1)) { // then we found an EOS character that shouldn't split a sentence because it's within an open quote.\n \t\t\t\tif ((currentStop = text.indexOf(\"\\\"\",currentStart +lastQuoteAt+1)) == -1) {\n \t\t\t\t\tcurrentStop = text.length(); // if we can't find a closing quote in the rest of the input text, then we assume the author forgot to put a closing quote, and act like it's at the end of the input text.\n \t\t\t\t}\n \t\t\t\telse{\n \t\t\t\t\tcurrentStop +=1;\n \t\t\t\t\tmergeNext=true;// the EOS character we are looking for is not in this section of text (section being defined as a substring of 'text' between two EOS characters.)\n \t\t\t\t}\n \t\t\t}\n \t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\n \t\t\tif (foundParentheses && ((temp.indexOf(\")\", lastParenAt+1)) == -1)) {\n \t\t\t\tif ((currentStop = text.indexOf(\")\", currentStart + lastParenAt + 1)) == -1)\n \t\t\t\t\tcurrentStop = text.length();\n \t\t\t\telse {\n \t\t\t\t\tcurrentStop += 1;\n \t\t\t\t\tmergeNext = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \n \t\t\tif (foundQuote) {\n \t\t\t\tsentEnd = SENTENCE_QUOTE.matcher(text);\t\n \t\t\t\tisSentence = sentEnd.find(currentStop-2); // -2 so that we match the EOS character before the quotes (not -1 because currentStop is one greater than the last index of the string -- due to the way substring works, which is includes the first index, and excludes the end index: [start,end).)\n \n \t\t\t\tif (isSentence == true) { // If it seems that the text looks like this: He said, \"Hello.\" Then she said, \"Hi.\" \n \t\t\t\t\t// Then we want to split this up into two sentences (it's possible to have a sentence like this: He said, \"Hello.\")\n \t\t\t\t\tcurrentStop = text.indexOf(\"\\\"\",sentEnd.start())+1;\n \t\t\t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\t\tforceNoMerge = true;\n \t\t\t\t\tmergeNext = false;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (foundParentheses) {\n \t\t\t\tsentEnd = SENTENCE_PARENTHESES.matcher(text);\n \t\t\t\tisSentence = sentEnd.find(currentStop-2);\n \t\t\t\t\n \t\t\t\tif (isSentence == true) {\n \t\t\t\t\tcurrentStop = text.indexOf(\")\", sentEnd.start()) + 1;\n \t\t\t\t\tsafeString = text.substring(currentStart-1, currentStop);\n \t\t\t\t\tforceNoMerge = true;\n \t\t\t\t\tmergeNext = false;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t// now check to see if there is a CITATION after the sentence (doesn't just apply to quotes due to paraphrasing)\n \t\t\t// The rule -- at least as of now -- is if after the EOS mark there is a set of parenthesis containing either one word (name) or a name and numbers (name 123) || (123 name) || (123-456 name) || (name 123-456) || etc..\n \t\t\tcitationFinder = CITATION.matcher(text.substring(currentStop));\t\n \t\t\thasCitation = citationFinder.find(); // -2 so that we match the EOS character before the quotes (not -1 because currentStop is one greater than the last index of the string -- due to the way substring works, which is includes the first index, and excludes the end index: [start,end).)\n \t\t\t\n \t\t\tif (hasCitation == true) { // If it seems that the text looks like this: He said, \"Hello.\" Then she said, \"Hi.\" \n \t\t\t\t// Then we want to split this up into two sentences (it's possible to have a sentence like this: He said, \"Hello.\")\n \t\t\t\tcurrentStop = text.indexOf(\")\",citationFinder.start()+currentStop)+1;\n \t\t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\tmergeNext = false;\n \t\t\t}\t\n \t\t\t\n \t\t\tif (mergeWithLast) {\n \t\t\t\tmergeWithLast=false;\n \t\t\t\tString prev=sents.remove(sents.size()-1);\n \t\t\t\tsafeString=prev+safeString;\n \t\t\t}\n \t\t\t\n \t\t\tif (mergeNext && !forceNoMerge) {//makes the merge happen on the next pass through\n \t\t\t\tmergeNext=false;\n \t\t\t\tmergeWithLast=true;\n \t\t\t} else {\n \t\t\t\tforceNoMerge = false;\n \t\t\t\tfinalSents.add(safeString);\n \t\t\t}\n \t\t\n \t\t\tsents.add(safeString);\n \t\t\t\n \t\t\t//// xxx xxx xxx return the safeString_subbedEOS too!!!!\n \t\t\tif (currentStart < 0 || currentStop < 0) {\n \t\t\t\tLogger.logln(NAME+\"Something went really wrong making sentence tokens.\", LogOut.STDERR);\n \t\t\t\tErrorHandler.fatalProcessingError(null);\n \t\t\t}\n \n \t\t\tcurrentStart = currentStop+1;\n \t\t\tif (currentStart >= lenText) {\n \t\t\t\tfoundEOS = false;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tfoundEOS = sent.find(currentStart);\n \t\t}\n \n \t\tif (!foundAtLeastOneEOS || !EOSAtSentenceEnd) {\n \t\t\tArrayList<String> wrapper = new ArrayList<String>(1);\n \t\t\twrapper.add(text);\n \t\t\treturn wrapper;\n \t\t}\n \t\t\n \t\treturn finalSents;\n \t}",
"@Override\n public void align(@NonNull PbVnAlignment alignment) {\n boolean noAgentiveA0 = alignment.proposition().predicate().ancestors(true).stream()\n .allMatch(s -> s.roles().stream()\n .map(r -> ThematicRoleType.fromString(r.type()).orElse(ThematicRoleType.NONE))\n .noneMatch(ThematicRoleType::isAgentive));\n\n for (PropBankPhrase phrase : alignment.sourcePhrases(false)) {\n List<NounPhrase> unaligned = alignment.targetPhrases(false).stream()\n .filter(i -> i instanceof NounPhrase)\n .map(i -> ((NounPhrase) i))\n .collect(Collectors.toList());\n if (phrase.getNumber() == ArgNumber.A0) {\n // TODO: seems like a hack\n if (alignment.proposition().predicate().verbNetId().classId().startsWith(\"51\") && noAgentiveA0) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (EnumSet.of(ThematicRoleType.AGENT, ThematicRoleType.CAUSER,\n ThematicRoleType.STIMULUS, ThematicRoleType.PIVOT)\n .contains(unalignedPhrase.thematicRoleType())) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A1) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME\n || unalignedPhrase.thematicRoleType() == ThematicRoleType.PATIENT) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A3) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isStartingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A4) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isEndingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n\n\n }\n }",
"public void prepareAlignment(String sq1, String sq2) {\n if(F == null) {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n F = new float[3][n+1][m+1];\n B = new TracebackAffine[3][n+1][m+1];\n for(int k = 0; k < 3; k++) {\n for(int i = 0; i < n+1; i ++) {\n for(int j = 0; j < m+1; j++)\n B[k][i][j] = new TracebackAffine(0,0,0);\n }\n }\n }\n\n //alignment already been run and existing matrix is big enough to reuse.\n else if(seq1.length() <= n && seq2.length() <= m) {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n }\n\n //alignment already been run but matrices not big enough for new alignment.\n //create all new matrices.\n else {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n F = new float[3][n+1][m+1];\n B = new TracebackAffine[3][n+1][m+1];\n for(int k = 0; k < 3; k++) {\n for(int i = 0; i < n+1; i ++) {\n for(int j = 0; j < m+1; j++)\n B[k][i][j] = new TracebackAffine(0,0,0);\n }\n }\n }\n }",
"public ConfidenceAlignment(String sgtFile,String tgsFile,String sgtLexFile,String tgsLexFile){\r\n\t\r\n\t\tLEX = new TranslationLEXICON(sgtLexFile,tgsLexFile);\r\n\t\t\r\n\t\tint sennum = 0;\r\n\t\tdouble score = 0.0;\r\n\t\t// Reading a GZIP file (SGT) \r\n\t\ttry { \r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader\r\n\t\t\t\t\t\t\t\t(new GZIPInputStream(new FileInputStream(sgtFile)),\"UTF8\"));\r\n\t\t\r\n\t\tString one = \"\"; String two =\"\"; String three=\"\"; \r\n\t\twhile((one=br.readLine())!=null){\r\n\t\t\ttwo = br.readLine(); \r\n\t\t\tthree=br.readLine(); \r\n\r\n\t\t\tMatcher m1 = scorepattern.matcher(one);\r\n\t\t\tif (m1.find()) \r\n\t\t\t{\r\n\t\t\t\tscore = Double.parseDouble(m1.group(1));\r\n\t\t\t\t//System.err.println(\"Score:\"+score);\r\n\t\t\t}\r\n\r\n\t\t\tgizaSGT.put(sennum,score); \r\n\t\t\tsennum++;\r\n\t\t}\r\n\t\tbr.close();\r\n\t\tSystem.err.println(\"Loaded \"+sennum+ \" sens from SGT file:\"+sgtFile);\r\n\t\t\r\n\t\t// Reading a GZIP file (TGS)\r\n\t\tsennum = 0; \r\n\t\tbr = new BufferedReader(new InputStreamReader\r\n\t\t\t\t\t\t\t\t(new GZIPInputStream(new FileInputStream(tgsFile)),\"UTF8\")); \r\n\t\twhile((one=br.readLine())!=null){\r\n\t\t\ttwo = br.readLine(); \r\n\t\t\tthree=br.readLine(); \r\n\t\t\t\r\n\t\t\tMatcher m1 = scorepattern.matcher(one);\r\n\t\t\tif (m1.find()) \r\n\t\t\t{\r\n\t\t\t\tscore = Double.parseDouble(m1.group(1));\r\n\t\t\t\t//System.err.println(\"Score:\"+score);\r\n\t\t\t}\r\n\t\t\tgizaTGS.put(sennum,score); \r\n\t\t\tsennum++;\r\n\t\t}\r\n\t\tbr.close();\t\t\r\n\t\t}catch(Exception e){}\r\n\t\tSystem.err.println(\"Loaded \"+sennum+ \" sens from SGT file:\"+sgtFile);\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t List<Result> outputK = new ArrayList<Result>();\n\n\t\t\t\n\t\t\tint alignment_type = Integer.parseInt(args[0]);\n\t\t\t\n\t\t\tif(alignment_type==1){\n\t\t\t\t\n\t\t\t\tGlobalAlignment gb = new GlobalAlignment();\n\n\t\t\t\toutputK = \tgb.PerformGlobalAlignment(args[1],args[2],args[3],args[4],Integer.parseInt(args[5]),Integer.parseInt(args[6]));\n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\tfor(int i=0;i<outputK.size();i++){\n\t\t\t\t\tResult r = outputK.get(i);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(r.score);\n \tSystem.out.println(\"id1 \"+r.id1+\" \"+r.startpos1+\" \"+r.seq1);\n\t\t\t\t\tSystem.out.println(\"id2 \"+r.id2+\" \"+r.startpos2+\" \"+r.seq2);\n//\t\t\t\t\t\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if(alignment_type==2){\n\t\t\t\t\n\t\t\t\tLocalAlignment loc = new LocalAlignment();\n\t\t\t\toutputK = \tloc.PerformLocalAlignment(args[1],args[2],args[3],args[4],Integer.parseInt(args[5]),Integer.parseInt(args[6]));\n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\tfor(int i=0;i<outputK.size();i++){\n\t\t\t\t\tResult r = outputK.get(i);\n\n\t\t\t\t\tSystem.out.println(r.score);\n System.out.println(\"id1 \"+r.id1+\" \"+r.startpos1+\" \"+r.seq1);\n\t\t\t\t\tSystem.out.println(\"id2 \"+r.id2+\" \"+r.startpos2+\" \"+r.seq2);\n\n\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}else if(alignment_type==3){\n\t\t\t\t\n\t\t \tDoveTail dt = new DoveTail();\t\t\n\t\t\t\toutputK = \tdt.PerformDoveTailAlignment(args[1],args[2],args[3],args[4],Integer.parseInt(args[5]),Integer.parseInt(args[6]));\n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\tfor(int i=0;i<outputK.size();i++){\n\t\t\t\t\tResult r = outputK.get(i);\n\n\t\t\t\t\tSystem.out.println(r.score);\n System.out.println(\"id1 \"+r.id1+\" \"+r.startpos1+\" \"+r.seq1);\n\t\t\t\t\tSystem.out.println(\"id2 \"+r.id2+\" \"+r.startpos2+\" \"+r.seq2);\n\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Enter 1,2 or 3\");\n\t\t\t}\n\t\t\n\t\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tIDictionary dict = new Dictionary (new File(\"dict\"));\n\t\tdict.open ();\n\t\t\n\t\t//Load input file\n\t\tLinkedHashMap<String,Word> words = new LinkedHashMap<String,Word>();\n\t\tArrayList<Sentence> senten = new ArrayList<Sentence>();\n\t\tloadInput(\"input.txt\",words, senten, dict);\n\n\t\t//Produce lexical chains\n\t\tArrayList<Chain> chainsList = new ArrayList<Chain>();\n\t\tproduceChains(chainsList, words, dict);\n\t\t\n\t\t//Save the output\n\t\tsaveOutput(\"output.txt\", chainsList);\n\t\t\n\t\t//Calculate chain score\n\t\tfor(int i=0;i<chainsList.size();i++) {\n\t\t\tchainsList.get(i).sumScore();\n\t\t}\n\t\t\n\t\t//Calculate sentence score\n\t\tfor(int i=0;i<senten.size();i++) {\n\t\t\tfor(int j=0;j<chainsList.size();j++) {\n\t\t\t\tsenten.get(i).matchChain(chainsList.get(j));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Define comparators\n\t\tComparator c1 = new Comparator<Sentence>() { \n\t\t\t@Override\n\t\t\tpublic int compare(Sentence s1, Sentence s2) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(s1.getScore() > s2.getScore()) return -1;\n\t\t\t\telse return 1;\n\t\t\t} \n }; \n Comparator c2 = new Comparator<Sentence>() { \n\t\t\t@Override\n\t\t\tpublic int compare(Sentence s1, Sentence s2) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(s1.getId() < s2.getId()) return -1;\n\t\t\t\telse return 1;\n\t\t\t} \n }; \n \n //Get the core sentences\n\t\tCollections.sort(senten, c1);\n\t\tArrayList<Sentence> summ = new ArrayList<Sentence>();\n\t\tint extractSize = (int) (senten.size()*0.3 == 0?1:senten.size()*0.3);\n\t\tfor(int i=0;i<extractSize;i++) {\n\t\t\tsumm.add(senten.get(i));\n\t\t}\n\t\t//Restore the original order of sentences\n\t\tCollections.sort(summ, c2);\n\t\tfor(int i=0;i<summ.size();i++) {\n\t\t\tSystem.out.println(summ.get(i).getSentence());\n\t\t}\t\t\t\t\n\t}",
"public abstract void doAlignment(String sq1, String sq2);",
"@Test\n\tpublic void testStoreProcessText4() {\n\t\tint sourceID = dm.storeProcessedText(pt2);\n\t\tassertTrue(sourceID > 0);\n\t\t\n\t\tds.startSession();\n\t\tSource source = ds.getSource(pt2.getMetadata().getUrl());\n\t\tList<Paragraph> paragraphs = (List<Paragraph>) ds.getParagraphs(source.getSourceID());\n\t\tassertTrue(pt2.getMetadata().getName().equals(source.getName()));\n\t\tassertTrue(pt2.getParagraphs().size() == paragraphs.size());\n\t\t\n\t\tfor(int i = 0; i < pt2.getParagraphs().size(); i++){\n\t\t\tParagraph p = paragraphs.get(i);\n\t\t\tParagraph originalP = pt2.getParagraphs().get(i);\n\t\t\tassertTrue(originalP.getParentOrder() == p.getParentOrder());\n\t\t\t\n\t\t\tList<Sentence> sentences = (List<Sentence>) ds.getSentences(p.getId());\n\t\t\tassertTrue(sentences.size() == 0);\n\t\t}\n\t\tds.closeSession();\t\t\n\t}",
"public static void main(String[] args) throws Exception {\n List<Chapter> chapterList = new ArrayList();\n BaseFont bfChinese = BaseFont.createFont(\"simhei.ttf\", BaseFont.IDENTITY_H,BaseFont.NOT_EMBEDDED);\n// BaseFont bfChinese = BaseFont.createFont(\"cjk_registry\", \"UniGB-UCS2-H\", false);\n Integer size = 28;\n \n Font font = new Font(bfChinese, size, Font.BOLD);\n for (int i = 1; i <= 10; i++) {\n Chunk chapTitle = new Chunk(\"The \" + i + \" chapter\", font);\n Chapter chapter = new Chapter(new Paragraph(chapTitle), i);\n chapTitle.setLocalDestination(chapter.getTitle().getContent());\n \n Paragraph chapterContent = new Paragraph(\"章节内容第1行\\n章节内容第2行\\n章节内容第3行\\n章节内容第4行\\n\" + i, font);\n chapterContent.setLeading(size * 1.1f);\n chapter.add(chapterContent);\n \n for (int j = 0; j < i; j++) {\n Chunk secTitle = new Chunk(\" 二级The \" + (j + 1) + \" section\");\n Section section = chapter.addSection(new Paragraph(secTitle));\n secTitle.setLocalDestination(section.getTitle().getContent());\n section.setIndentationLeft(10);\n section.add(new Paragraph(\"mangocool mangocool测试1aa1 \"\n + \"\\nmangocool mangocool 内容bb2\"\n + \"\\nmangocool mangocool 内容cc3\", font));\n \n section.add(new Paragraph(\"mangocool mangocool测试1aa1 \"\n + \"\\nmangocool mangocool 内容bb2\"\n + \"\\nmangocool mangocool 内容cc3\", font));\n }\n// content.add(chapter);\n chapterList.add(chapter);\n }\n// content.close();\n\n Document document = new Document(PageSize.A4, 50, 50, 50, 50);\n // add index page.\n String FILE_DIR = \"C:\\\\e\\\\test/\";\n String path = FILE_DIR + \"createSamplePDF.pdf\";\n FileOutputStream os = new FileOutputStream(path);\n PdfWriter writer = PdfWriter.getInstance(document, os);\n IndexEvent indexEvent = new IndexEvent();\n writer.setPageEvent(indexEvent);\n document.open();\n// Chapter indexChapter = new Chapter(\"Index:\", -1);\n// indexChapter.setNumberDepth(-1);// not show number style\n// PdfPTable table = new PdfPTable(2);\n// for (Map.Entry<String, Integer> index : event.index.entrySet()) {\n// PdfPCell left = new PdfPCell(new Phrase(index.getKey()));\n// left.setBorder(Rectangle.NO_BORDER);\n// Chunk pageno = new Chunk(index.getValue() + \"zzZZ章节\");\n// pageno.setLocalGoto(index.getKey());\n// PdfPCell right = new PdfPCell(new Phrase(pageno));\n// right.setHorizontalAlignment(Element.ALIGN_RIGHT);\n// right.setBorder(Rectangle.NO_BORDER);\n// table.addCell(left);\n// table.addCell(right);\n// }\n// indexChapter.add(table);\n// document.add(indexChapter);\n // add content chapter\n for (Chapter c : chapterList) {\n document.add(c);\n indexEvent.body = true;\n }\n document.close();\n os.close();\n }",
"public String generateSentence() {\n // If our map is empty return the empty string\n if (model.size() == 0) {\n return \"\";\n }\n\n ArrayList<String> startWords = model.get(\"_begin\");\n ArrayList<String> endWords = model.get(\"_end\");\n\n // Retrieve a starting word to begin our sentence\n int rand = ThreadLocalRandom.current().nextInt(0, startWords.size());\n\n String currentWord = startWords.get(rand);\n StringBuilder sb = new StringBuilder();\n\n while (!endWords.contains(currentWord)) {\n sb.append(currentWord + \" \");\n ArrayList<String> nextStates = model.get(currentWord);\n\n if (nextStates == null) return sb.toString().trim() + \".\\n\";\n\n rand = ThreadLocalRandom.current().nextInt(0, nextStates.size());\n currentWord = nextStates.get(rand);\n }\n\n sb.append(currentWord);\n\n return sb.toString() + \"\\n\";\n\n\n }",
"public ArrayList<String> ExtractAlignments(String src, String trg, String moses){\n\t\tArrayList<String> alignPoints = new ArrayList<String>();\n\t\t\n\t\tString patternString = \"\\\\s\\\\|(\\\\d+)\\\\-(\\\\d+)\\\\|\"; // pattern for alignment points, the indexes (ref to source phrase) are grouped\n\t\t\n\t\tPattern pattern = Pattern.compile(patternString);\n\t\tMatcher matcher = pattern.matcher(moses);\n\t\t\n\t\tint count=0; // how many times are we matching the pattern\n\t\tint istart=0; // index of input string\n\t\tString[] sourceWords = src.split(\" \");\n\t\tint src_start = 0;\n\t\tint src_end = 0;\n\t\tString src_phr = new String();\n\t\t\n\t\t// Traverse through each of the matches\n\t\t// the numbers inside the matched pattern will give us the index of the source phrases\n\t\t// the string preceding he matched pattern will give us the corresponding target string translation\n\t\twhile(matcher.find()) {\n\t\t\tcount++;\n\t\t\t//System.out.println(\"found: \" + count + \" : \" + matcher.start() + \" - \" + matcher.end() + \" for \" + matcher.group());\n\t\t\t\n\t\t\tsrc_start = new Integer(matcher.group(1)).intValue();\n\t\t\tsrc_end = new Integer(matcher.group(2)).intValue();\n\t\t\t//System.out.println(\"Srcphr: \" + matcher.group(1) + \" to \" + matcher.group(2) + sourceWords[src_start] + \" \" + sourceWords[src_end]);\n\t\t\t\n\t\t\t//alignPoints.add(moses.substring(istart,matcher.start()) + \" ||| \" + istart + \" ||| \" + matcher.start());\n\t\t\tsrc_phr = new String(sourceWords[src_start]);\n\t\t\tfor(int i=src_start+1; i<=src_end; i++){ // get the source phrases referenced by the alignment points\n\t\t\t\tsrc_phr += \" \" + sourceWords[i];\n\t\t\t}\n\t\t\talignPoints.add(src_phr + \" ||| \" + moses.substring(istart,matcher.start())); // add the source phrase and the corresponding target string translation separated by |||\n\t\t\tistart = matcher.end() + 1;\n\t\t}\n\t\t//System.out.println(\"The number of times we match patterns is \" + count);\n\t\t\n\t\treturn alignPoints;\n\t}",
"public static void main(String[] args) throws AlignmentException, IOException, URISyntaxException, OWLOntologyCreationException {\n\t\tfinal double threshold = 0.9;\n\t\tfinal String thresholdValue = removeCharAt(String.valueOf(threshold),1);\t\n\t\t\n\t\t/*** 2. Define the folder name holding all ontologies to be matched ***/\t\t\n\t\tFile topOntologiesFolder = new File (\"./files/ATMONTO_AIRM/ontologies\");\n\t\t//File topOntologiesFolder = new File (\"./files/expe_oaei_2011/ontologies\");\n\t\tFile[] ontologyFolders = topOntologiesFolder.listFiles();\n\t\t\n\t\t/*** 3. Define the folder name holding all reference alignments for evaluation of the computed alignments ***/\n\t\t//File refAlignmentsFolder = new File(\"./files/expe_oaei_2011/ref_alignments\");\n\t\tFile refAlignmentsFolder = new File(\"./files/ATMONTO_AIRM/ref_alignments\");\n\n\n\t\t/*** No need to touch these ***/\n\t\tString alignmentFileName = null;\n\t\tFile outputAlignment = null;\n\t\tPrintWriter writer = null;\n\t\tAlignmentVisitor renderer = null;\n\t\tProperties params = new Properties();\n\t\tAlignmentProcess a = null;\n\t\tString onto1 = null;\n\t\tString onto2 = null;\t\t\n\t\tString vectorFile1Name = null;\n\t\tString vectorFile2Name = null;\n\n//\t\t//String matcher\n//\t\tfor (int i = 0; i < ontologyFolders.length; i++) {\n//\n//\t\t\tFile[] files = ontologyFolders[i].listFiles();\n//\n//\t\t\tfor (int j = 1; j < files.length; j++) {\n//\t\t\t\tSystem.out.println(\"Matching \" + files[0] + \" and \" + files[1]);\n//\t\t\t\t\n//\t\t\t\t//used for retrieving the correct vector files and for presenting prettier names of the stored alignments \n//\t\t\t\tonto1 = files[0].getName().substring(files[0].getName().lastIndexOf(\"/\") +1, files[0].getName().lastIndexOf(\"/\") + 4);\n//\t\t\t\tonto2 = files[1].getName().substring(files[1].getName().lastIndexOf(\"/\") +4, files[1].getName().lastIndexOf(\"/\") + 7);\t\n//\t\t\t\t\t\t\t\n//\n//\t\t\t\t//match the files using the ISUBMatcher\n//\t\t\t\ta = new ISubMatcher();\n//\t\t\t\ta.init(files[0].toURI(), files[1].toURI());\n//\t\t\t\tparams = new Properties();\n//\t\t\t\tparams.setProperty(\"\", \"\");\n//\t\t\t\ta.align((Alignment)null, params);\t\n//\t\t\t\t\n//\t\t\t\t//store the computed alignment to file\n//\t\t\t\talignmentFileName = \"./files/expe_oaei_2011/isub_alignments/\" + onto1 + \"-\" + onto2 + \"-\" + \"ISub\" + \"-\" + thresholdValue + \".rdf\";\n//\t\t\t\toutputAlignment = new File(alignmentFileName);\n//\t\t\t\t\n//\t\t\t\twriter = new PrintWriter(\n//\t\t\t\t\t\tnew BufferedWriter(\n//\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true); \n//\t\t\t\trenderer = new RDFRendererVisitor(writer);\n//\n//\t\t\t\tBasicAlignment ISubAlignment = (BasicAlignment)(a.clone());\n//\t\t\t\t\t\t\t\n//\t\t\t\t//remove all correspondences with similarity below the defined threshold\n//\t\t\t\tISubAlignment.cut(threshold);\n//\n//\t\t\t\tISubAlignment.render(renderer);\n//\t\t\t\t\n//\t\t\t\tSystem.err.println(\"The ISub alignment contains \" + ISubAlignment.nbCells() + \" correspondences\");\n//\t\t\t\twriter.flush();\n//\t\t\t\twriter.close();\n//\t\t\t\t\n//\t\t\t\tSystem.out.println(\"\\nMatching with ISub Matcher completed!\");\n//\n//\t\t\t}\n//\t\t}\n\t\t\n\t\t //WEMatcher\n\t\t for (int i = 0; i < ontologyFolders.length; i++) {\n\n\t\t\tFile[] files = ontologyFolders[i].listFiles();\n\n\t\t\tfor (int j = 1; j < files.length; j++) {\n\t\t\t\tSystem.out.println(\"Matching \" + files[0] + \" and \" + files[1]);\n\t\t\t\t\n\t\t\t\t//used for retrieving the correct vector files and for presenting prettier names of the stored alignments \n\t\t\t\tonto1 = files[0].getName().substring(files[0].getName().lastIndexOf(\"/\") +1, files[0].getName().lastIndexOf(\"/\") + 4);\n\t\t\t\tonto2 = files[1].getName().substring(files[1].getName().lastIndexOf(\"/\") +4, files[1].getName().lastIndexOf(\"/\") + 7);\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t//get the relevant vector files for these ontologies\n//\t\t\t\tvectorFile1Name = \"./files/expe_oaei_2011/vector-files-single-ontology/vectorOutput-\" + onto1 + \".txt\";\n//\t\t\t\tvectorFile2Name = \"./files/expe_oaei_2011/vector-files-single-ontology/vectorOutput-\" + onto2 + \".txt\";\n\t\t\t\tvectorFile1Name = \"./files/ATMONTO_AIRM/vector-files-single-ontology/vectorOutput-\" + onto1 + \".txt\";\n\t\t\t\tvectorFile2Name = \"./files/ATMONTO_AIRM/vector-files-single-ontology/vectorOutput-\" + onto2 + \".txt\";\n\n\t\t\t\t//match the files using the WEGlobalMatcher\n\t\t\t\ta = new WEGlobalMatcher(vectorFile1Name, vectorFile2Name);\n\t\t\t\ta.init(files[0].toURI(), files[1].toURI());\n\t\t\t\tparams = new Properties();\n\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\ta.align((Alignment)null, params);\t\n\t\t\t\t\n\t\t\t\t//store the computed alignment to file\n//\t\t\t\talignmentFileName = \"./files/expe_oaei_2011/alignments/\" + onto1 + \"-\" + onto2 + \"-\" + \"WEGlobal\" + \"-\" + thresholdValue + \".rdf\";\n\t\t\t\talignmentFileName = \"./files/ATMONTO_AIRM/alignments/\" + onto1 + \"-\" + onto2 + \"-\" + \"WEGlobal\" + \"-\" + thresholdValue + \".rdf\";\n\t\t\t\toutputAlignment = new File(alignmentFileName);\n\t\t\t\t\n\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true); \n\t\t\t\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\tBasicAlignment WEGlobalAlignment = (BasicAlignment)(a.clone());\n\t\t\t\t\t\t\t\n\t\t\t\t//remove all correspondences with similarity below the defined threshold\n\t\t\t\tWEGlobalAlignment.cut(threshold);\n\n\t\t\t\tWEGlobalAlignment.render(renderer);\n\t\t\t\t\n\t\t\t\tSystem.err.println(\"The WEGlobal alignment contains \" + WEGlobalAlignment.nbCells() + \" correspondences\");\n\t\t\t\twriter.flush();\n\t\t\t\twriter.close();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\nMatching with WEGlobal Matcher completed!\");\n\t\t\t\t\n\t\t\t\t//match the files using the WELabelMatcher\n\t\t\t\ta = new WELabelMatcher(vectorFile1Name, vectorFile2Name);\n\t\t\t\ta.init(files[0].toURI(), files[1].toURI());\n\t\t\t\tparams = new Properties();\n\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\ta.align((Alignment)null, params);\t\n\t\t\t\t\n\t\t\t\t//store the computed alignment to file\n//\t\t\t\talignmentFileName = \"./files/expe_oaei_2011/alignments/\" + onto1 + \"-\" + onto2 + \"-\" + \"WELabel\" + \"-\" + thresholdValue + \".rdf\";\n\t\t\t\talignmentFileName = \"./files/ATMONTO_AIRM/alignments/\" + onto1 + \"-\" + onto2 + \"-\" + \"WELabel\" + \"-\" + thresholdValue + \".rdf\";\n\t\t\t\toutputAlignment = new File(alignmentFileName);\n\t\t\t\t\n\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true); \n\t\t\t\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\tBasicAlignment WELabelAlignment = (BasicAlignment)(a.clone());\n\t\t\t\t\t\t\t\n\t\t\t\t//remove all correspondences with similarity below the defined threshold\n\t\t\t\tWELabelAlignment.cut(threshold);\n\n\t\t\t\tWELabelAlignment.render(renderer);\n\t\t\t\t\n\t\t\t\tSystem.err.println(\"The WELabel alignment contains \" + WELabelAlignment.nbCells() + \" correspondences\");\n\t\t\t\twriter.flush();\n\t\t\t\twriter.close();\n\t\t\t\tSystem.out.println(\"Matching with WELabel Matcher completed!\");\n\t\t\t}\n\t\t}\n}",
"@Test\r\n public void testSentencesFromFile() throws IOException {\r\n System.out.print(\"Testing all sentences from file\");\r\n int countCorrect = 0;\r\n int countTestedSentences = 0;\r\n\r\n for (ArrayList<String> sentences : testSentences) {\r\n String correctSentence = sentences.get(0);\r\n System.out.println(\"testing '\" + correctSentence + \"' variations\");\r\n CorpusReader cr = new CorpusReader();\r\n ConfusionMatrixReader cmr = new ConfusionMatrixReader();\r\n SpellCorrector sc = new SpellCorrector(cr, cmr);\r\n int countSub = 0;\r\n for (String s : sentences) {\r\n String output = sc.correctPhrase(s);\r\n countSub += correctSentence.equals(output) ? 1 : 0;\r\n System.out.println(String.format(\"Input \\\"%1$s\\\" returned \\\"%2$s\\\", equal: %3$b\", s, output, correctSentence.equals(output)));\r\n collector.checkThat(\"input sentence: \" + s + \". \", output, IsEqual.equalTo(correctSentence));\r\n countTestedSentences++;\r\n }\r\n System.out.println(String.format(\"Correct answers for '%3$s': (%1$2d/%2$2d)\", countSub, sentences.size(), correctSentence));\r\n System.out.println();\r\n countCorrect += countSub;\r\n }\r\n\r\n System.out.println(String.format(\"Correct answers in total: (%1$2d/%2$2d)\", countCorrect, countTestedSentences));\r\n System.out.println();\r\n }",
"public static void main(String[] args) {\n\t\tPropertyManager.setPropertyFilePath(\"/home/francesco/Desktop/NLP_HACHATHON_4YFN/TextDigesterConfig.properties\");\n\t\t\n\t\tString text = MultilingImport.readText(\"/home/francesco/Desktop/NLP_HACHATHON_4YFN/EXAMPLE_TEXTS/multilingMss2015Training/body/text/\" + lang + \"/\" + docName);\n\n\t\t/* Process text document */\n\t\tLangENUM languageOfHTMLdoc = FlProcessor.getLanguage(text);\n\t\t\n\t\tTDDocument TDdoc = FlProcessor.generateDocumentFromFreeText(text, null, languageOfHTMLdoc);\n\n\t\t// Store GATE document\n\t\tWriter out = null;\n\t\ttry {\n\t\t\tout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(\"/home/francesco/Desktop/NLP_HACHATHON_4YFN/EXAMPLE_TEXTS/\" + lang + \"_\" + docName.replace(\".txt\", \"_GATE.xml\")), \"UTF-8\"));\n\t\t} catch (UnsupportedEncodingException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tout.write(TDdoc.getGATEdoc().toXml());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tout.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\ttry {\n\t\t\tLexRankSummarizer lexRank = new LexRankSummarizer(languageOfHTMLdoc, SentenceSimilarityENUM.cosineTFIDF, false, 0.01);\n\t\t\tMap<Annotation, Double> sortedSentences = lexRank.sortSentences(TDdoc);\n\t\t\t\n\t\t\tList<Annotation> sentListOrderedByRelevance = new ArrayList<Annotation>();\n\t\t\tfor(Entry<Annotation, Double> sentence : sortedSentences.entrySet()) {\n\t\t\t\tlogger.info(\"Score: \" + sentence.getValue() + \" - '\" + GtUtils.getTextOfAnnotation(sentence.getKey(), TDdoc.getGATEdoc()) + \"'\");\n\t\t\t\tsentListOrderedByRelevance.add(sentence.getKey());\n\t\t\t}\n\t\t\t\n\t\t\tlogger.info(\"Summary max 100 tokens: \");\n\t\t\tList<Annotation> summarySentences = GtUtils.orderAnnotations(sentListOrderedByRelevance, TDdoc.getGATEdoc(), 100);\n\t\t\tfor(Annotation ann : summarySentences) {\n\t\t\t\tlogger.info(GtUtils.getTextOfAnnotation(ann, TDdoc.getGATEdoc()));\n\t\t\t}\n\t\t} catch (TextDigesterException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t*/\n\t}",
"@Override\n\tpublic void process(JCas aJCas) throws AnalysisEngineProcessException {\n\t\tString text = aJCas.getDocumentText();\n\n\t\t// create an empty Annotation just with the given text\n\t\tAnnotation document = new Annotation(text);\n//\t\tAnnotation document = new Annotation(\"Barack Obama was born in Hawaii. He is the president. Obama was elected in 2008.\");\n\n\t\t// run all Annotators on this text\n\t\tpipeline.annotate(document); \n\t\tList<CoreMap> sentences = document.get(SentencesAnnotation.class);\n\t\t HelperDataStructures hds = new HelperDataStructures();\n\n\t\t\n\t\t//SPnew language-specific settings:\n\t\t//SPnew subject tags of the parser\n\t\t HashSet<String> subjTag = new HashSet<String>(); \n\t\t HashSet<String> dirObjTag = new HashSet<String>(); \n\t\t //subordinate conjunction tags\n\t\t HashSet<String> compTag = new HashSet<String>(); \n\t\t //pronoun tags\n\t\t HashSet<String> pronTag = new HashSet<String>(); \n\t\t \n\t\t HashSet<String> passSubjTag = new HashSet<String>();\n\t\t HashSet<String> apposTag = new HashSet<String>(); \n\t\t HashSet<String> verbComplementTag = new HashSet<String>(); \n\t\t HashSet<String> infVerbTag = new HashSet<String>(); \n\t\t HashSet<String> relclauseTag = new HashSet<String>(); \n\t\t HashSet<String> aclauseTag = new HashSet<String>(); \n\t\t \n\t\t HashSet<String> compLemma = new HashSet<String>(); \n\t\t HashSet<String> coordLemma = new HashSet<String>(); \n\t\t HashSet<String> directQuoteIntro = new HashSet<String>(); \n\t\t HashSet<String> indirectQuoteIntroChunkValue = new HashSet<String>();\n\t\t \n//\t\t HashSet<String> finiteVerbTag = new HashSet<String>();\n\t\t \n\n\t\t //OPEN ISSUES PROBLEMS:\n\t\t //the subject - verb relation finding does not account for several specific cases: \n\t\t //opinion verbs with passive subjects as opinion holder are not accounted for,\n\t\t //what is needed is a marker in the lex files like PASSSUBJ\n\t\t //ex: Obama is worried/Merkel is concerned\n\t\t //Many of the poorer countries are concerned that the reduction in structural funds and farm subsidies may be detrimental in their attempts to fulfill the Copenhagen Criteria.\n\t\t //Some of the more well off EU states are also worried about the possible effects a sudden influx of cheap labor may have on their economies. Others are afraid that regional aid may be diverted away from those who currently benefit to the new, poorer countries that join in 2004 and beyond. \n\t\t// Does not account for infinitival constructions, here again a marker is needed to specify\n\t\t //subject versus object equi\n\t\t\t//Christian Noyer was reported to have said that it is ok.\n\t\t\t//Reuters has reported Christian Noyer to have said that it is ok.\n\t\t //Obama is likely to have said.. \n\t\t //Several opinion holder- opinion verb pairs in one sentence are not accounted for, right now the first pair is taken.\n\t\t //what is needed is to run through all dependencies. For inderect quotes the xcomp value of the embedded verb points to the \n\t\t //opinion verb. For direct quotes the offsets closest to thwe quote are relevant.\n\t\t //a specific treatment of inverted subjects is necessary then. Right now the\n\t\t //strategy relies on the fact that after the first subj/dirobj - verb pair the\n\t\t //search is interrupted. Thus, if the direct object precedes the subject, it is taken as subject.\n\t\t // this is the case in incorrectly analysed inverted subjeects as: said Zwickel on Monday\n\t\t //coordination of subject not accounted for:employers and many economists\n\t\t //several subject-opinion verbs:\n\t\t //Zwickel has called the hours discrepancy between east and west a \"fairness gap,\" but employers and many economists point out that many eastern operations have a much lower productivity than their western counterparts.\n\t\t if (language.equals(\"en\")){\n \t subjTag.add(\"nsubj\");\n \t subjTag.add(\"xsubj\");\n \t subjTag.add(\"nmod:agent\");\n \t \n \t dirObjTag.add(\"dobj\"); //for inverted subject: \" \" said IG metall boss Klaus Zwickel on Monday morning.\n \t \t\t\t\t\t\t//works only with break DEPENDENCYSEARCH, otherwise \"Monday\" is nsubj \n \t \t\t\t\t\t\t//for infinitival subject of object equi: Reuters reports Obama to have said\n \tpassSubjTag.add(\"nsubjpass\");\n \tapposTag.add(\"appos\");\n \trelclauseTag.add(\"acl:relcl\");\n \taclauseTag.add(\"acl\");\n \t compTag.add(\"mark\");\n \t pronTag.add(\"prp\");\n \thds.pronTag.add(\"prp\");\n \tcompLemma.add(\"that\");\n \tcoordLemma.add(\"and\");\n \tverbComplementTag.add(\"ccomp\");\n \tverbComplementTag.add(\"parataxis\");\n\n \tinfVerbTag.add(\"xcomp\"); //Reuters reported Merkel to have said\n \tinfVerbTag.add(\"advcl\");\n \tdirectQuoteIntro.add(\":\");\n \tindirectQuoteIntroChunkValue.add(\"SBAR\");\n \thds.objectEqui.add(\"report\");\n \thds.objectEqui.add(\"quote\");\n \thds.potentialIndirectQuoteTrigger.add(\"say\");\n// \thds.objectEqui.add(\"confirm\");\n// \thds.subjectEqui.add(\"promise\");\n// \thds.subjectEqui.add(\"quote\");\n// \thds.subjectEqui.add(\"confirm\");\n }\n\t\t \n\t\t boolean containsSubordinateConjunction = false;\n\t\t\n\t\t \n\t\tfor (CoreMap sentence : sentences) {\n//\t\t\tSystem.out.println(\"PREPROCESSING..\");\n\t\t\t\tSentenceAnnotation sentenceAnn = new SentenceAnnotation(aJCas);\n\t\t\t\t\n\t\t\t\tint beginSentence = sentence.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endSentence = sentence.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(sentence.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tsentenceAnn.setBegin(beginSentence);\n\t\t\t\tsentenceAnn.setEnd(endSentence);\n\t\t\t\tsentenceAnn.addToIndexes();\n\t\t\t\t\n\t\t\t\t//SP Map offsets to NER\n\t\t\t\tList<NamedEntity> ners = JCasUtil.selectCovered(aJCas, //SPnew tut\n\t\t\t\t\t\tNamedEntity.class, sentenceAnn);\n\t\t\t\tfor (NamedEntity ne : ners){\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.jcasType.toString());\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.getCoveredText().toString());\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.jcasType.casTypeCode);\n\t\t\t\t\t//Person is 71, Location is 213, Organization is 68 geht anders besser siehe unten\n\t\t\t\t\tint nerStart = ne\n\t\t\t\t\t\t\t.getBegin();\n\t\t\t\t\tint nerEnd = ne.getEnd();\n//\t\t\t\t\tSystem.out.println(\"NER: \" + ne.getCoveredText() + \" \" + nerStart + \"-\" + nerEnd ); \n\t\t\t\t\tString offsetNer = \"\" + nerStart + \"-\" + nerEnd;\n\t\t\t\t\thds.offsetToNer.put(offsetNer, ne.getCoveredText());\n//\t\t\t\t\tNer.add(offsetNer);\n\t\t\t\t\thds.Ner.add(offsetNer);\n//\t\t\t\t\tSystem.out.println(\"NER: TYPE \" +ne.getValue().toString());\n\t\t\t\t\tif (ne.getValue().equals(\"PERSON\")){\n\t\t\t\t\t\thds.NerPerson.add(offsetNer);\n\t\t\t\t\t}\n\t\t\t\t\telse if (ne.getValue().equals(\"ORGANIZATION\")){\n\t\t\t\t\t\thds.NerOrganization.add(offsetNer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//DBpediaLink info: map offsets to links\n\t\t\t\tList<DBpediaResource> dbpeds = JCasUtil.selectCovered(aJCas, //SPnew tut\n\t\t\t\t\t\tDBpediaResource.class, sentenceAnn);\n\t\t\t\tfor (DBpediaResource dbped : dbpeds){\n//\t\t\t\t\t\n//\t\t\t\t\tint dbStart = dbped\n//\t\t\t\t\t\t\t.getBegin();\n//\t\t\t\t\tint dbEnd = dbped.getEnd();\n\t\t\t\t\t// not found if dbpedia offsets are wrongly outside than sentences\n//\t\t\t\t\tSystem.out.println(\"DBPED SENT: \" + sentenceAnn.getBegin()+ \"-\" + sentenceAnn.getEnd() ); \n//\t\t\t\t\tString offsetDB = \"\" + dbStart + \"-\" + dbEnd;\n//\t\t\t\t\thds.labelToDBpediaLink.put(dbped.getLabel(), dbped.getUri());\n//\t\t\t\t\tSystem.out.println(\"NOW DBPED: \" + dbped.getLabel() + \"URI: \" + dbped.getUri() ); \n\t\t\t\t\thds.dbpediaSurfaceFormToDBpediaLink.put(dbped.getCoveredText(), dbped.getUri());\n//\t\t\t\t\tSystem.out.println(\"NOW DBPED: \" + dbped.getCoveredText() + \"URI: \" + dbped.getUri() ); \n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//SP Map offsets to lemma of opinion verb/noun; parser does not provide lemma\n\t\t\t\t for (CoreLabel token: sentence.get(TokensAnnotation.class)) {\n//\t\t\t\t\t System.out.println(\"LEMMA \" + token.lemma().toString());\n\t\t\t\t\t int beginTok = token.beginPosition();\n\t\t\t\t\t int endTok = token.endPosition();\n\t\t\t\t\t String offsets = \"\" + beginTok + \"-\" + endTok;\n\t\t\t\t\t hds.offsetToLemma.put(offsets, token.lemma().toString());\n\t\t\t\t\t \n\t\t\t\t\t \t if (opinion_verbs.contains(token.lemma().toString())){\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionVerb.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t hds.OpinionExpression.add(offsets);\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionExpression.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t \n//\t\t\t \t System.out.println(\"offsetToLemmaOfOpinionVerb \" + token.lemma().toString());\n\t\t\t\t\t \t }\n\t\t\t\t\t \t if (passive_opinion_verbs.contains(token.lemma().toString())){\n\t\t\t\t\t\t\t hds.offsetToLemmaOfPassiveOpinionVerb.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t hds.OpinionExpression.add(offsets);\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionExpression.put(offsets, token.lemma().toString());\n//\t\t\t \t System.out.println(\"offsetToLemmaOfPassiveOpinionVerb \" + token.lemma().toString());\n\t\t\t\t\t \t }\n\n\t\t\t\t } \n\n\t\t\t//SPnew parser\n\t\t\tTree tree = sentence.get(TreeAnnotation.class);\n\t\t\tTreebankLanguagePack tlp = new PennTreebankLanguagePack();\n\t\t\tGrammaticalStructureFactory gsf = tlp.grammaticalStructureFactory();\n\t\t\tGrammaticalStructure gs = gsf.newGrammaticalStructure(tree);\n\t\t\tCollection<TypedDependency> td = gs.typedDependenciesCollapsed();\n\n\t\t\t \n//\t\t\tSystem.out.println(\"TYPEDdep\" + td);\n\t\t\t\n\t\t\tObject[] list = td.toArray();\n//\t\t\tSystem.out.println(list.length);\n\t\t\tTypedDependency typedDependency;\nDEPENDENCYSEARCH: for (Object object : list) {\n\t\t\ttypedDependency = (TypedDependency) object;\n//\t\t\tSystem.out.println(\"DEP \" + typedDependency.dep().toString()+ \n//\t\t\t\t\t\" GOV \" + typedDependency.gov().toString()+ \n//\t\t\t\" :: \"+ \" RELN \"+typedDependency.reln().toString());\n\t\t\tString pos = null;\n String[] elements;\n String verbCand = null;\n int beginVerbCand = -5;\n\t\t\tint endVerbCand = -5;\n\t\t\tString offsetVerbCand = null;\n\n if (compTag.contains(typedDependency.reln().toString())) {\n \tcontainsSubordinateConjunction = true;\n// \tSystem.out.println(\"subordConj \" + typedDependency.dep().toString().toLowerCase());\n }\n \n else if (subjTag.contains(typedDependency.reln().toString())){\n \thds.predicateToSubjectChainHead.clear();\n \thds.subjectToPredicateChainHead.clear();\n \t\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n//\t\t\t\tSystem.out.println(\"VERBCand \" + verbCand + offsetVerbCand);\n//\t\t\t\tfor (HashMap.Entry<String, String> entry : hds.offsetToLemma.entrySet()) {\n//\t\t\t\t String key = entry.getKey();\n//\t\t\t\t Object value = entry.getValue();\n//\t\t\t\t System.out.println(\"OFFSET \" + key + \" LEMMA \" + value);\n//\t\t\t\t // FOR LOOP\n//\t\t\t\t}\n//\t\t\t\tif (hds.offsetToLemma.containsKey(offsetVerbCand)){\n//\t\t\t\t\tString verbCandLemma = hds.offsetToLemma.get(offsetVerbCand);\n//\t\t\t\t\tif (hds.objectEqui.contains(verbCandLemma) || hds.subjectEqui.contains(verbCandLemma)){\n//\t\t\t\t\t\tSystem.out.println(\"SUBJCHAIN BEGIN verbCand \" + verbCand);\n//\t\t\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println(\"SUBJCHAINHEAD1\");\n\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\tSystem.out.println(\"verbCand \" + verbCand);\n\t\t\t\t//hack for subj after obj said Zwickel (obj) on Monday morning (subj)\n\t\t\t\tif (language.equals(\"en\") \n\t\t\t\t\t\t&& hds.predicateToObject.containsKey(offsetVerbCand)\n\t\t\t\t\t\t){\n// \t\tSystem.out.println(\"CONTINUE DEP\");\n \t\tcontinue DEPENDENCYSEARCH;\n \t}\n\t\t\t\telse {\n\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n\t\t\t\t}\n }\n //Merkel is concerned\n else if (passSubjTag.contains(typedDependency.reln().toString())){\n \t//Merkel was reported\n \t//Merkel was concerned\n \t//Merkel was quoted\n \thds.predicateToSubjectChainHead.clear();\n \thds.subjectToPredicateChainHead.clear();\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n//\t\t\t\tSystem.out.println(\"VERBCand \" + verbCand + offsetVerbCand);\n//\t\t\t\tif (hds.offsetToLemma.containsKey(offsetVerbCand)){\n//\t\t\t\t\tString verbCandLemma = hds.offsetToLemma.get(offsetVerbCand);\n////\t\t\t\t\tSystem.out.println(\"LEMMA verbCand \" + verbCandLemma);\n//\t\t\t\t\tif (hds.objectEqui.contains(verbCandLemma) || hds.subjectEqui.contains(verbCandLemma)){\n//\t\t\t\t\t\tSystem.out.println(\"SUBJCHAIN BEGIN verbCand \" + verbCand);\n//\t\t\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\t\t}\n//\t\t\t\t}\n \t\n \tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n// \tSystem.out.println(\"SUBJCHAINHEAD2\");\n \t//Merkel is concerned\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfPassiveOpinionVerb,\n \t\t\thds);\n }\n //Meanwhile, the ECB's vice-president, Christian Noyer, was reported at the start of the week to have said that the bank's future interest-rate moves\n// would depend on the behavior of wage negotiators as well as the pace of the economic recovery.\n\n else if (apposTag.contains(typedDependency.reln().toString())){\n \t\n \tString subjCand = typedDependency.gov().toString().toLowerCase();\n \tint beginSubjCand = typedDependency.gov().beginPosition();\n \tint endSubjCand = typedDependency.gov().endPosition();\n \tString offsetSubjCand = \"\" + beginSubjCand + \"-\" + endSubjCand;\n \tString appo = typedDependency.dep().toString().toLowerCase();\n\t\t\t\tint beginAppo = typedDependency.dep().beginPosition();\n\t\t\t\tint endAppo = typedDependency.dep().endPosition();\n\t\t\t\tString offsetAppo = \"\" + beginAppo + \"-\" + endAppo;\n\t\t\t\t\n// \tSystem.out.println(\"APPOSITION1 \" + subjCand + \"::\"+ appo + \":\" + offsetSubjCand + \" \" + offsetAppo);\n \thds.subjectToApposition.put(offsetSubjCand, offsetAppo);\n }\n else if (relclauseTag.contains(typedDependency.reln().toString())){\n \tString subjCand = typedDependency.gov().toString().toLowerCase();\n \tint beginSubjCand = typedDependency.gov().beginPosition();\n \tint endSubjCand = typedDependency.gov().endPosition();\n \tString offsetSubjCand = \"\" + beginSubjCand + \"-\" + endSubjCand;\n \tverbCand = typedDependency.dep().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.dep().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.dep().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n\t\t\t\tString subjCandPos = null;\n\t\t\t\tif (hds.predicateToSubject.containsKey(offsetVerbCand)){\n\t\t\t\t\t\n\t\t\t\t\tif (subjCand.matches(\".+?/.+?\")) { \n\t\t\t\t\t\telements = subjCand.split(\"/\");\n\t\t\t\t\t\tsubjCand = elements[0];\n\t\t\t\t\t\tsubjCandPos = elements[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tString del = hds.predicateToSubject.get(offsetVerbCand);\n\t\t\t\t\thds.predicateToSubject.remove(offsetVerbCand);\n\t\t\t\t\thds.subjectToPredicate.remove(del);\n\t\t\t\t\thds.normalPredicateToSubject.remove(offsetVerbCand);\n\t\t\t\t\thds.subjectToNormalPredicate.remove(del);\n//\t\t\t\t\tSystem.out.println(\"REMOVE RELPRO \" + verbCand + \"/\" + hds.offsetToLemma.get(del));\n\t\t\t\t\thds.predicateToSubject.put(offsetVerbCand, offsetSubjCand);\n\t\t\t\t\thds.subjectToPredicate.put( offsetSubjCand, offsetVerbCand);\n\t\t\t\t\thds.normalPredicateToSubject.put(offsetVerbCand, offsetSubjCand);\n\t\t\t\t\thds.subjectToNormalPredicate.put( offsetSubjCand, offsetVerbCand);\n//\t\t\t\t\tSystem.out.println(\"RELCLAUSE \" + subjCand + \"::\" + \":\" + verbCand);\n\t\t\t\t\thds.offsetToSubjectHead.put(offsetSubjCand,subjCand);\n\t\t\t\t\thds.SubjectHead.add(offsetSubjCand);\n\t\t\t\t\t\n\t\t\t\t\tif (subjCandPos != null && hds.pronTag.contains(subjCandPos)){\n\t\t\t\t\t\thds.PronominalSubject.add(offsetSubjCand);\n\t\t\t\t\t}\n\t\t\t\t}\n \t\n \t\n }\n \n else if (dirObjTag.contains(typedDependency.reln().toString())\n \t\t){\n \tstoreRelations(typedDependency, hds.predicateToObject, hds.ObjectToPredicate, hds);\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n\t\t\t\t\n\t\t\t\tString objCand = typedDependency.dep().toString().toLowerCase();\n \tint beginObjCand = typedDependency.dep().beginPosition();\n \tint endObjCand = typedDependency.dep().endPosition();\n \tString offsetObjCand = \"\" + beginObjCand + \"-\" + endObjCand;\n \tString objCandPos;\n \tif (objCand.matches(\".+?/.+?\")) { \n\t\t\t\t\telements = objCand.split(\"/\");\n\t\t\t\t\tobjCand = elements[0];\n\t\t\t\t\tobjCandPos = elements[1];\n//\t\t\t\t\tSystem.out.println(\"PRON OBJ \" + objCandPos);\n\t\t\t\t\tif (pronTag.contains(objCandPos)){\n\t\t\t\t\thds.PronominalSubject.add(offsetObjCand);\n\t\t\t\t\t}\n\t\t\t\t\t}\n// \tSystem.out.println(\"DIROBJ STORE ONLY\");\n \t//told Obama\n \t//said IG metall boss Klaus Zwickel\n \t// problem: pointing DO\n \t//explains David Gems, pointing out the genetically manipulated species.\n \t if (language.equals(\"en\") \n \t\t\t\t\t\t&& !hds.normalPredicateToSubject.containsKey(offsetVerbCand)\n \t\t\t\t\t\t){\n// \t\t System.out.println(\"INVERSE SUBJ HACK ENGLISH PREDTOOBJ\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t }\n }\n //was reported to have said\n else if (infVerbTag.contains(typedDependency.reln().toString())){\n \tstoreRelations(typedDependency, hds.mainToInfinitiveVerb, hds.infinitiveToMainVerb, hds);\n// \tSystem.out.println(\"MAIN-INF\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t\n }\n else if (aclauseTag.contains(typedDependency.reln().toString())){\n \tstoreRelations(typedDependency, hds.nounToInfinitiveVerb, hds.infinitiveVerbToNoun, hds);\n// \tSystem.out.println(\"NOUN-INF\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t\n }\n \n \n\n\t\t\t}\n\t\t\t\n//\t\t\tSemanticGraph dependencies = sentence.get(CollapsedCCProcessedDependenciesAnnotation.class);\n//\t\t\tSystem.out.println(\"SEM-DEP \" + dependencies);\t\n\t\t}\n\t\t\n\n\t\tMap<Integer, edu.stanford.nlp.dcoref.CorefChain> corefChains = document.get(CorefChainAnnotation.class);\n\t\t \n\t\t if (corefChains == null) { return; }\n\t\t //SPCOPY\n\t\t for (Entry<Integer, edu.stanford.nlp.dcoref.CorefChain> entry: corefChains.entrySet()) {\n//\t\t System.out.println(\"Chain \" + entry.getKey() + \" \");\n\t\t \tint chain = entry.getKey();\n\t\t String repMenNer = null;\n\t\t String repMen = null;\n\t\t String offsetRepMenNer = null;\n\n\t\t List<IaiCorefAnnotation> listCorefAnnotation = new ArrayList<IaiCorefAnnotation>();\n\t\t \n\t\t for (CorefMention m : entry.getValue().getMentionsInTextualOrder()) {\n\t\t \tboolean corefMentionContainsNer = false;\n\t\t \tboolean repMenContainsNer = false;\n\n//\t\t \n\n\t\t\t\t// We need to subtract one since the indices count from 1 but the Lists start from 0\n\t\t \tList<CoreLabel> tokens = sentences.get(m.sentNum - 1).get(TokensAnnotation.class);\n\t\t // We subtract two for end: one for 0-based indexing, and one because we want last token of mention not one following.\n//\t\t System.out.println(\" \" + m + \", i.e., 0-based character offsets [\" + tokens.get(m.startIndex - 1).beginPosition() +\n//\t\t \", \" + tokens.get(m.endIndex - 2).endPosition() + \")\");\n\t\t \n\t\t int beginCoref = tokens.get(m.startIndex - 1).beginPosition();\n\t\t\t\t int endCoref = tokens.get(m.endIndex - 2).endPosition();\n\t\t\t\t String offsetCorefMention = \"\" + beginCoref + \"-\" + endCoref;\n\t\t\t\t String corefMention = m.mentionSpan;\n\n\t\t\t\t CorefMention RepresentativeMention = entry.getValue().getRepresentativeMention();\n\t\t\t\t repMen = RepresentativeMention.mentionSpan;\n\t\t\t\t List<CoreLabel> repMenTokens = sentences.get(RepresentativeMention.sentNum - 1).get(TokensAnnotation.class);\n//\t\t\t\t System.out.println(\"REPMEN ANNO \" + \"\\\"\" + repMen + \"\\\"\" + \" is representative mention\" +\n// \", i.e., 0-based character offsets [\" + repMenTokens.get(RepresentativeMention.startIndex - 1).beginPosition() +\n//\t\t \", \" + repMenTokens.get(RepresentativeMention.endIndex - 2).endPosition() + \")\");\n\t\t\t\t int beginRepMen = repMenTokens.get(RepresentativeMention.startIndex - 1).beginPosition();\n\t\t\t\t int endRepMen = repMenTokens.get(RepresentativeMention.endIndex - 2).endPosition();\n\t\t\t\t String offsetRepMen = \"\" + beginRepMen + \"-\" + endRepMen;\n\t\t \t \n\t\t\t\t//Determine repMenNer that consists of largest NER (Merkel) to (Angela Merkel)\n\t\t\t\t //and \"Chancellor \"Angela Merkel\" to \"Angela Merkel\"\n\t\t \t //Further reduction to NER as in \"Chancellor Angela Merkel\" to \"Angela Merkel\" is\n\t\t\t\t //done in determineBestSubject. There, Chunk information and subjectHead info is available.\n\t\t\t\t //Chunk info and subjectHead info is used to distinguish \"Chancellor Angela Merkel\" to \"Angela Merkel\"\n\t\t\t\t //from \"The enemies of Angela Merkel\" which is not reduced to \"Angela Merkel\"\n\t\t\t\t //Problem solved: The corefMentions of a particular chain do not necessarily have the same RepMenNer (RepMen) \n\t\t\t\t // any more: Chancellor Angela Merkel repMenNer Chancellor Angela Merkel , then Angela Merkel has RepMenNer Angela Merkel\n\t\t\t\t if (offsetRepMenNer != null && hds.Ner.contains(offsetRepMenNer)){\n//\t\t\t\t\t System.out.println(\"NEWNer.contains(offsetRepMenNer)\");\n\t\t\t\t }\n\t\t\t\t else if (offsetRepMen != null && hds.Ner.contains(offsetRepMen)){\n\t\t\t\t\t repMenNer = repMen;\n\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\tSystem.out.println(\"NEWNer.contains(offsetRepMen)\");\n\t\t\t\t }\n\t\t\t\t else if (offsetCorefMention != null && hds.Ner.contains(offsetCorefMention)){\n\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\tSystem.out.println(\"Ner.contains(offsetCorefMention)\");\n\t\t\t\t\t}\n\t\t\t\t else {\n\t\t\t\t\t corefMentionContainsNer = offsetsContainAnnotation(offsetCorefMention,hds.Ner);\n\t\t\t\t\t repMenContainsNer = offsetsContainAnnotation(offsetRepMen,hds.Ner);\n//\t\t\t\t\t System.out.println(\"ELSE Ner.contains(offsetCorefMention)\");\n\t\t\t\t }\n\t\t\t\t //Determine repMenNer that contains NER\n\t\t\t\t\tif (repMenNer == null){\n\t\t\t\t\t\tif (corefMentionContainsNer){\n\t\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT1\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (repMenContainsNer){\n\t\t\t\t\t\t\trepMenNer = repMen;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT2\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no NER:\n\t\t\t\t\t\t//Pronoun -> repMen is repMenNer\n\t\t\t\t\t\telse if (hds.PronominalSubject.contains(offsetCorefMention) && repMen != null){\n\t\t\t\t\t\t\trepMenNer = repMen;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT3\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t//other no NER: corefMention is repMenNer because it is closer to original\n\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\tSystem.out.println(\"DEFAULT4\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t \n \t IaiCorefAnnotation corefAnnotation = new IaiCorefAnnotation(aJCas);\n\t\t\t\n\t\t\t\t\t\n\n\n\t\t\t\t\tcorefAnnotation.setBegin(beginCoref);\n\t\t\t\t\tcorefAnnotation.setEnd(endCoref);\n\t\t\t\t\tcorefAnnotation.setCorefMention(corefMention);\n\t\t\t\t\tcorefAnnotation.setCorefChain(chain);\n\t\t\t\t\t//done below\n//\t\t\t\t\tcorefAnnotation.setRepresentativeMention(repMenNer);\n//\t\t\t\t\tcorefAnnotation.addToIndexes(); \n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tlistCorefAnnotation.add(corefAnnotation);\n\t\t\t\t\t\n//\t\t\t\t\tdone below:\n//\t\t\t\t\t offsetToRepMen.put(offsetCorefMention, repMenNer);\n//\t\t\t\t\t RepMen.add(offsetCorefMention);\n\t\t\t\t\t\n\t\t\t\t\t \n\t\t }//end coref mention\n//\t\t System.out.println(\"END Chain \" + chain );\n//\t\t System.out.println(listCorefAnnotation.size());\n\t\t String offsetCorefMention = null;\n\t\t for (int i = 0; i < listCorefAnnotation.size(); i++) {\n\t\t \tIaiCorefAnnotation corefAnnotation = listCorefAnnotation.get(i);\n\t\t \tcorefAnnotation.setRepresentativeMention(repMenNer);\n\t\t \tcorefAnnotation.addToIndexes();\n\t\t \toffsetCorefMention = \"\" + corefAnnotation.getBegin() + \"-\" + corefAnnotation.getEnd();\n\t\t\t\t\thds.offsetToRepMen.put(offsetCorefMention, repMenNer);\n\t\t\t\t\thds.RepMen.add(offsetCorefMention);\n\t\t\t\t\t//COREF\n//\t\t\t\t\tSystem.out.println(\"Chain \" + corefAnnotation.getCorefChain());\n//\t\t\t\t\tSystem.out.println(\"corefMention \" + corefAnnotation.getCorefMention() + offsetCorefMention);\n//\t\t\t\t\tSystem.out.println(\"repMenNer \" + repMenNer);\n\t\t }\n\t\t } //end chains\n\n\n//\t\t System.out.println(\"NOW quote finder\");\n\n\n\t\t\n\t\t///* quote finder: begin find quote relation and quotee\n\t\t// direct quotes\n\t\t\n\t\t\n\t\tString quotee_left = null;\n\t\tString quotee_right = null; \n\t\t\n\t\tString representative_quotee_left = null;\n\t\tString representative_quotee_right = null; \n\t\t\n\t\tString quote_relation_left = null;\n\t\tString quote_relation_right = null;\n\t\t\n\t\tString quoteType = null;\n\t\tint quoteeReliability = 5;\n\t\tint quoteeReliability_left = 5;\n\t\tint quoteeReliability_right = 5;\n\t\tint quotee_end = -5;\n\t\tint quotee_begin = -5;\n\t\t\n\t\tboolean quoteeBeforeQuote = false;\n\n\n\t\n\t\t\n\t\t// these are all the quotes in this document\n\t\tList<CoreMap> quotes = document.get(QuotationsAnnotation.class);\n\t\tfor (CoreMap quote : quotes) {\n\t\t\tif (quote.get(TokensAnnotation.class).size() > 5) {\n\t\t\t\tQuoteAnnotation annotation = new QuoteAnnotation(aJCas);\n\n\t\t\t\tint beginQuote = quote.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endQuote = quote.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(quote.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tannotation.setBegin(beginQuote);\n\t\t\t\tannotation.setEnd(endQuote);\n\t\t\t\tannotation.addToIndexes();\n//\t\t\t}\n//\t\t}\n//\t\t\n//\t\tList<Q> newQuotes = document.get(QuotationsAnnotation.class);\t\t\n//\t\tfor (CoreMap annotation : newQuotes) {\n//\t\t\t\tif (1==1){\n//\t\t\t\tRe-initialize markup variables since they are also used for indirect quotes\n\t\t\t\tquotee_left = null;\n\t\t\t\tquotee_right = null; \n\t\t\t\t\n\t\t\t\trepresentative_quotee_left = null;\n\t\t\t\trepresentative_quotee_right = null;\n\t\t\t\t\n\t\t\t\tquote_relation_left = null;\n\t\t\t\tquote_relation_right = null;\n\t\t\t\tquoteeReliability = 5;\n\t\t\t\tquoteeReliability_left = 5;\n\t\t\t\tquoteeReliability_right = 5;\n\t\t\t\tquotee_end = -5;\n\t\t\t\tquotee_begin = -5;\n\t\t\t\tquoteType = \"direct\";\n\t\t\t\tquoteeBeforeQuote = false;\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> directQuoteTokens = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\tToken.class, annotation);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> followTokens = JCasUtil.selectFollowing(aJCas,\n\t\t\t\t\t\tToken.class, annotation, 1);\n\t\t\t\t\n \n//\t\t\t\tfor (Token aFollowToken: followTokens){\n//\t\t\t\t\t List<Chunk> chunks = JCasUtil.selectCovering(aJCas,\n//\t\t\t\t\tChunk.class, aFollowToken);\n \n//direct quote quotee right:\n\t\t\t\t\n\t for (Token aFollow2Token: followTokens){\n\t\t\t\t\t List<SentenceAnnotation> sentencesFollowQuote = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t SentenceAnnotation.class, aFollow2Token);\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t for (SentenceAnnotation sentenceFollowsQuote: sentencesFollowQuote){\n\t\t\t\t\t\t List<Chunk> chunks = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\tChunk.class, sentenceFollowsQuote);\n//\t\t\tSystem.out.println(\"DIRECT QUOTE RIGHT\");\n\t\t\tString[] quote_annotation_result = determine_quotee_and_quote_relation(\"RIGHT\", \n\t\t\t\t\tchunks, hds, annotation);\n\t\t\tif (quote_annotation_result.length>=4){\n\t\t\t quotee_right = quote_annotation_result[0];\n\t\t\t representative_quotee_right = quote_annotation_result[1];\n\t\t\t quote_relation_right = quote_annotation_result[2];\n\t\t\t try {\n\t\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t quoteeReliability_right = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t //Will Throw exception!\n\t\t\t //do something! anything to handle the exception.\n\t\t\t\tquoteeReliability = -5;\n\t\t\t\tquoteeReliability_right = -5;\n\t\t\t\t}\t\t\t\t\t \n\t\t\t }\n//\t\t\tSystem.out.println(\"DIRECT QUOTE RIGHT RESULT quotee \" + quotee_right + \" representative_quotee \" + representative_quotee_right\n//\t\t\t\t\t+ \" quote_relation \" + quote_relation_right);\n\t\t \n\t\t\t}\n\t\t\t\t\t \n\t\t\t\t\t \n }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> precedingTokens = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t\t\tToken.class, annotation, 1);\n for (Token aPrecedingToken: precedingTokens){ \n \t\n \tif (directQuoteIntro.contains(aPrecedingToken.getLemma().getValue().toString()) \n \t\t\t|| compLemma.contains(aPrecedingToken.getLemma().getValue().toString())) {\n// \t\tSystem.out.println(\"Hello, World lemma found\" + aPrecedingToken.getLemma().getValue());\n \t\tquoteeBeforeQuote = true;\n \t}\n \t\tList <NamedEntity> namedEntities = null;\n \t\tList <Token> tokens = null;\n \t\tList<Chunk> chunks = null;\n \t\t\n\t\t\t\t List<Sentence> precedingSentences = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t \t\tSentence.class, aPrecedingToken, 1);\n\t\t\t\t \n\t\t\t\t\t\tif (precedingSentences.isEmpty()){\n\t\t\t\t\t\t\tList<Sentence> firstSentence;\n\t\t\t\t \tfirstSentence = JCasUtil.selectCovering(aJCas,\n\t\t\t\t \t\tSentence.class, aPrecedingToken);\n\n\t\t\t\t \tfor (Sentence aSentence: firstSentence){\n\t\t\t\t \t\t\n\n\t\t\t\t\t\t\t\tchunks = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\t\tChunk.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t \t\tnamedEntities = JCasUtil.selectCovered(aJCas,\n\t \t \t\tNamedEntity.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\t\t\t\t \t\ttokens = JCasUtil.selectCovered(aJCas,\n\t\t\t\t \t\t\t\tToken.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\t\t\t\t \t\n\t\t\t\t \t}\n\t\t\t\t\t\t}\n\t\t\t\t else {\t\n\t\t\t\t \tfor (Sentence aSentence: precedingSentences){\n//\t\t\t\t \t\tSystem.out.println(\"Hello, World sentence\" + aSentence);\n\t\t\t\t \t\tchunks = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tChunk.class, aSentence, aPrecedingToken);\n\t\t\t\t \t\tnamedEntities = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tNamedEntity.class, aSentence, aPrecedingToken);\n\t\t\t\t \t\ttokens = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tToken.class, aSentence, aPrecedingToken);\n\t\t\t\t \t}\n\t\t\t\t }\n \t\n//\t\t\t\t \n//\t\t\t\t\t\tSystem.out.println(\"DIRECT QUOTE LEFT\");\n\t\t\t\t\t\tString[] quote_annotation_direct_left = determine_quotee_and_quote_relation(\"LEFT\", chunks,\n\t\t\t\t\t\t\t\t hds, annotation\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(\"QUOTE ANNOTATION \" + quote_annotation_direct_left.length);\t\t\n\t\tif (quote_annotation_direct_left.length>=4){\n//\t\t\tSystem.out.println(\"QUOTE ANNOTATION UPDATE \" + quote_annotation_direct_left[0] +\n//\t\t\t\t\t\" \" + quote_annotation_direct_left[1] + \" \" +\n//\t\t\t\t\tquote_annotation_direct_left[2]);\n\t\t quotee_left = quote_annotation_direct_left[0];\n\t\t representative_quotee_left = quote_annotation_direct_left[1];\n\t\t quote_relation_left = quote_annotation_direct_left[2];\n\t\t try {\n\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_direct_left[3]);\n\t\t\t quoteeReliability_left = Integer.parseInt(quote_annotation_direct_left[3]);\n\t\t\t} catch (NumberFormatException e) {\n\t\t //Will Throw exception!\n\t\t //do something! anything to handle the exception.\n\t\t\tquoteeReliability = -5;\n\t\t\tquoteeReliability_left = -5;\n\t\t\t}\t\t\t\t\t \n\t\t }\n//\t\tSystem.out.println(\"DIRECT QUOTE LEFT RESULT quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left\n//\t\t\t\t+ \" quote_relation \" + quote_relation_left);\n\t\t//no subject - predicate quotee quote_relation, quote introduced with colon: \n\t\tif (quotee_left == null && quote_relation_left == null && representative_quotee_left == null \n\t\t&& directQuoteIntro.contains(aPrecedingToken.getLemma().getValue().toString())){\n//\t\t\tSystem.out.println(\"NER DIRECT QUOTE LEFT COLON\");\n\t\t\tString quoteeCandOffset = null; \n\t\t\tString quoteeCandText = null;\n\t\t if (namedEntities.size() == 1){\n \t \tfor (NamedEntity ne : namedEntities){\n// \t \t\tSystem.out.println(\"ONE NER \" + ne.getCoveredText());\n \t \t\tquoteeCandText = ne.getCoveredText();\n\t\t\t\t\tquote_relation_left = aPrecedingToken.getLemma().getValue().toString();\n\t\t\t\t\tquotee_end = ne.getEnd();\n\t\t\t\t\tquotee_begin = ne.getBegin();\n\t\t\t\t\tquoteeCandOffset = \"\" + quotee_begin + \"-\" + quotee_end;\n\t\t\t\t\tquoteeReliability = 1;\n\t\t\t\t\tquoteeReliability_left = 1;\n \t }\n \t }\n \t else if (namedEntities.size() > 1) {\n \t \tint count = 0;\n \t \tString quotee_cand = null;\n// \t \tSystem.out.println(\"Hello, World ELSE SEVERAL NER\");\n \t \tfor (NamedEntity ner : namedEntities){\n// \t \t\tSystem.out.println(\"Hello, World NER TYPE\" + ner.getValue());\n \t \t\tif (ner.getValue().equals(\"PERSON\")){\n \t \t\t\tcount = count + 1;\n \t \t\t\tquotee_cand = ner.getCoveredText();\n \t \t\t\tquotee_end = ner.getEnd();\n \t \t\t\tquotee_begin = ner.getBegin();\n \t \t\t\tquoteeCandOffset = \"\" + quotee_begin + \"-\" + quotee_end;\n \t \t\t\t\n// \t \t\t\tSystem.out.println(\"Hello, World FOUND PERSON\" + quotee_cand);\n \t \t\t}\n \t \t}\n \t \tif (count == 1){ // there is exactly one NER.PERSON\n// \t \t\tSystem.out.println(\"ONE PERSON, SEVERAL NER \" + quotee_cand);\n \t \t\t\tquoteeCandText = quotee_cand;\n\t\t\t\t\t\tquote_relation_left = aPrecedingToken.getLemma().getValue().toString();\n\t\t\t\t\t\tquoteeReliability = 3;\n\t\t\t\t\t\tquoteeReliability_left = 3;\n \t \t}\n \t }\n\t\t if(quoteeCandOffset != null && quoteeCandText != null ){\n//\t\t \t quotee_left = quoteeCandText;\n\t\t \t String result [] = determineBestRepMenSubject(\n\t\t \t\t\t quoteeCandOffset,quoteeCandOffset, quoteeCandText, hds);\n\t\t \t if (result.length>=2){\n\t\t \t\t quotee_left = result [0];\n\t\t \t\t representative_quotee_left = result [1];\n//\t\t \t System.out.println(\"RESULT2 NER quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left);\n\t\t \t }\n\t\t }\n\t\t}\n }\n\t\t\n \n\n\t\t\t\t\n\t\t\t\tif (quotee_left != null && quotee_right != null){\n//\t\t\t\t\tSystem.out.println(\"TWO QUOTEES\");\n\t\t\t\t\t\n\t\t\t\t\tif (directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\".\") \n\t\t\t\t\t\t|| \tdirectQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"!\")\n\t\t\t\t\t\t|| directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"?\")\n\t\t\t\t\t\t\t){\n//\t\t\t\t\t\tSystem.out.println(\"PUNCT \" + quotee_left + quote_relation_left + quoteeReliability_left);\n\t\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\",\")){\n//\t\t\t\t\t\tSystem.out.println(\"COMMA \" + quotee_right + \" \" + quote_relation_right + \" \" + quoteeReliability_right);\n\t\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t\t}\n\t\t\t\t\telse if (!directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\".\")\n\t\t\t\t\t\t\t&& !directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"!\")\n\t\t\t\t\t\t\t&& !directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"?\")\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\t\t\tSystem.out.println(\"NO PUNCT \" + quotee_right + \" \" + quote_relation_right + \" \" + quoteeReliability_right);\n\t\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n//\t\t\t\t\t\tSystem.out.println(\"UNCLEAR LEFT RIGHT \" + quotee_left + quote_relation_left + quote + quotee_right + quote_relation_right);\n\t\t\t\t\tannotation.setQuotee(\"<unclear>\");\n\t\t\t\t\tannotation.setQuoteRelation(\"<unclear>\");\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (quoteeBeforeQuote == true){\n\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t}\n\t\t\t\telse if (quotee_left != null){\n//\t\t\t\t\tSystem.out.println(\"QUOTEE LEFT\" + quotee_left + quote_relation_left + quoteeReliability_left);\n\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t}\n\t\t\t\telse if (quotee_right != null){\n//\t\t\t\t\tSystem.out.println(\"QUOTEE RIGHT FOUND\" + quotee_right + \" QUOTE RELATION \" + quote_relation_right + \":\" + quoteeReliability_right);\n\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t}\n\t\t\t\telse if (quote_relation_left != null ){\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n//\t\t\t\t\tSystem.out.println(\"NO QUOTEE FOUND\" + quote + quote_relation_left + quote_relation_right);\n\t\t\t\t}\n\t\t\t\telse if (quote_relation_right != null){\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t}\n\t\t\t\telse if (quoteType != null){\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n//\t\t\t\t\tSystem.out.println(\"Hello, World NO QUOTEE and NO QUOTE RELATION FOUND\" + quote);\n\t\t\t\t}\n\t\t\t\tif (annotation.getRepresentativeQuoteeMention() != null){\n//\t\t\t\t\tSystem.out.println(\"NOW!!\" + annotation.getRepresentativeQuoteeMention());\n\t\t\t\t\tif (hds.dbpediaSurfaceFormToDBpediaLink.containsKey(annotation.getRepresentativeQuoteeMention())){\n\t\t\t\t\t\tannotation.setQuoteeDBpediaUri(hds.dbpediaSurfaceFormToDBpediaLink.get(annotation.getRepresentativeQuoteeMention()));\n//\t\t\t\t\t\tSystem.out.println(\"DBPRED FOUND\" + annotation.getRepresentativeQuoteeMention() + \" URI: \" + annotation.getQuoteeDBpediaUri());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} //for direct quote\n\t\t\n\t\t// annotate indirect quotes: opinion verb + 'that' ... until end of sentence: said that ...\n\n//\t\tList<CoreMap> sentences = document.get(SentencesAnnotation.class); //already instantiated above\nINDIRECTQUOTE:\t\tfor (CoreMap sentence : sentences) {\n//\t\t\tif (sentence.get(TokensAnnotation.class).size() > 5) { \n\t\t\t\tSentenceAnnotation sentenceAnn = new SentenceAnnotation(aJCas);\n\t\t\t\t\n\t\t\t\tint beginSentence = sentence.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endSentence = sentence.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(sentence.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tsentenceAnn.setBegin(beginSentence);\n\t\t\t\tsentenceAnn.setEnd(endSentence);\n//\t\t\t\tsentenceAnn.addToIndexes();\n\t\t\t\t\n\t\t\t\tQuoteAnnotation indirectQuote = new QuoteAnnotation(aJCas);\n\t \tint indirectQuoteBegin = -5;\n\t\t\t\tint indirectQuoteEnd = -5;\n\t\t\t\tboolean subsequentDirectQuoteInstance = false;\n\t\t\t\t\n\t\t\t\tList<Chunk> chunksIQ = JCasUtil.selectCovered(aJCas,\n\t\t\t\tChunk.class, sentenceAnn);\n\t\t\t\tList<Chunk> chunksBeforeIndirectQuote = null;\n\t\t\t\t\n\t\t\t\tint index = 0;\nINDIRECTCHUNK:\tfor (Chunk aChunk : chunksIQ) {\n\t\t\t\t\tindex++;\n\t\t\t\t\t\n//\t\t\t\t\tSystem.out.println(\"INDIRECT QUOTE CHUNK VALUE \" + aChunk.getChunkValue().toString());\n//\t\t\t\t\tif (aChunk.getChunkValue().equals(\"SBAR\")) {\n\t\t\t\t\tif(indirectQuoteIntroChunkValue.contains(aChunk.getChunkValue())){\n//\t\t\t\t\t\tSystem.out.println(\"INDIRECT QUOTE INDEX \" + \"\" + index);\n\t\t\t\t\t\t\n\t\t\t\t\t\tList<Token> tokensSbar = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\tToken.class, aChunk);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (Token aTokenSbar : tokensSbar){\n//\t\t\t\t\t\t\tString that = \"that\";\n\t\t\t\t\t\t\tif (compLemma.contains(aTokenSbar.getLemma().getCoveredText())){\n\t\t\t\t\t\t// VP test: does that clause contain VP?\n//\t\t\t\t\t\t\t\tSystem.out.println(\"TOK1\" + aTokenSbar.getLemma().getCoveredText());\n//\t\t\t \tQuoteAnnotation indirectQuote = new QuoteAnnotation(aJCas);\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\t indirectQuoteBegin = aChunk.getEnd() + 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t chunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\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\t//NEW\n//\t\t\t\t\t\t\t\tif (LANGUAGE == \"en\")\n\t\t\t\t\t\t\t\tList<Token> precedingSbarTokens = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t\t\t\t\t\t\tToken.class, aChunk, 1);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (Token aPrecedingSbarToken: precedingSbarTokens){ \n//\t\t\t\t\t\t\t\t\tSystem.out.println(\"TOK2\" + aPrecedingSbarToken.getLemma().getCoveredText());\n\t\t\t\t \tif (coordLemma.contains(aPrecedingSbarToken.getLemma().getValue().toString())){\n//\t\t\t\t \t\tSystem.out.println(\"TOKK\" + aPrecedingSbarToken.getLemma().getCoveredText());\n\t\t\t\t \t\tchunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\n\t\t\t\t \t\tint k = 0;\n\t\t\t\t \tSAY:\tfor (Chunk chunkBeforeAndThat : chunksBeforeIndirectQuote){\n//\t\t\t\t \t\t\txxxx\n\t\t\t\t \t\tk++;\n\t\t\t\t \t\t\tif (chunkBeforeAndThat.getChunkValue().equals(\"VP\")){\n\t\t\t\t \t\t\t\t\n\t\t\t\t \t\t\t\tList<Token> tokensInVp = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tToken.class, chunkBeforeAndThat);\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Token aTokenInVp : tokensInVp){\n//\t\t\t\t\t\t\t\t\t\t\t\t\tString and;\n//\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"TOKK\" + aTokenInVp.getLemma().getCoveredText());\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (aTokenInVp.getLemma().getValue().equals(\"say\")){\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"SAY OLD\" + indirectQuoteBegin + \":\" + sentenceAnn.getCoveredText());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tchunksBeforeIndirectQuote = chunksIQ.subList(0, k);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tindirectQuoteBegin = chunksBeforeIndirectQuote.get(chunksBeforeIndirectQuote.size()-1).getEnd()+1;\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\t\t\t\t\tSystem.out.println(\"SAY NEW\" + indirectQuoteBegin + \":\" );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak SAY;\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}\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\t\t\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t}\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\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\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\t\n\t\t\t\t\t\t\t\tList<QuoteAnnotation> coveringDirectQuoteChunk = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t\t\t\tQuoteAnnotation.class, aChunk);\n\t\t\t\t\t\t\t\tif (coveringDirectQuoteChunk.isEmpty()){\n//\t\t\t\t\t\t\t\t indirectQuoteBegin = aChunk.getEnd() + 1;\n\t\t\t\t\t\t\t\t indirectQuote.setBegin(indirectQuoteBegin);\n//\t\t\t\t\t\t\t\t chunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\n\t\t\t\t\t\t\t\t indirectQuoteEnd = sentenceAnn.getEnd();\n\t\t\t\t\t\t\t\t indirectQuote.setEnd(indirectQuoteEnd);\n\t\t\t\t\t\t\t\t indirectQuote.addToIndexes();\n\t\t\t\t\t\t\t\t subsequentDirectQuoteInstance = false;\n//\t\t\t\t\t\t\t\t System.out.println(\"SUBSEQUENT FALSE\");\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\t \n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t List<Token> followTokens = JCasUtil.selectFollowing(aJCas,\n\t\t\t\t\t\t\t\t\t\t\tToken.class, indirectQuote, 1);\n\t\t\t\t\t\t\t\t for (Token aFollow3Token: followTokens){\n\t\t\t\t\t\t\t\t\t List<QuoteAnnotation> subsequentDirectQuotes = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t\t\t\t\tQuoteAnnotation.class,aFollow3Token);\n\t\t\t\t\t\t\t\t\t if (!subsequentDirectQuotes.isEmpty()){\n\t\t\t\t\t\t\t\t\t\t for (QuoteAnnotation subsequentDirectQuote: subsequentDirectQuotes){\n\t\t\t\t\t\t\t\t\t\t\t if (subsequentDirectQuote.getRepresentativeQuoteeMention() != null\n\t\t\t\t\t\t\t\t\t\t\t\t && subsequentDirectQuote.getRepresentativeQuoteeMention().equals(\"<unclear>\")){\n//\t\t\t\t\t\t\t\t\t\t\t System.out.println(\"SUBSEQUENT FOUND\"); \n\t\t\t\t\t\t\t\t\t\t\t hds.subsequentDirectQuote = subsequentDirectQuote;\n\t\t\t\t\t\t\t\t\t\t\t subsequentDirectQuoteInstance = true;\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t }\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\t break INDIRECTCHUNK;\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}\t\t\n\t\t\t\t}\n\t\t\t\t\tif (indirectQuoteBegin >= 0 && indirectQuoteEnd >= 0){\n//\t\t\t\t\t\tList<QuoteAnnotation> coveringDirectQuote = JCasUtil.selectCovering(aJCas,\n//\t\t\t\t\t\t\t\tQuoteAnnotation.class, indirectQuote);\n//\t\t\t\t\t\tif (coveringDirectQuote.isEmpty()){\n////\t\t\t\t\t\t\t\n//\t\t\t\t\t\tindirectQuote.addToIndexes();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse {\n//\t\t\t\t\t\t\t//indirect quote is covered by direct quote and therefore discarded\n//\t\t\t\t\t\t\tcontinue INDIRECTQUOTE;\n//\t\t\t\t\t\t}\n\t\t\t\t\tList<QuoteAnnotation> coveredDirectQuotes = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\tQuoteAnnotation.class, indirectQuote);\n\t\t\t\t\tfor (QuoteAnnotation coveredDirectQuote : coveredDirectQuotes){\n//\t\t\t\t\t\tSystem.out.println(\"Hello, World covered direct quote\" + coveredDirectQuote.getCoveredText());\n\t\t\t\t\t\t//delete coveredDirectQuoteIndex\n\t\t\t\t\t\tcoveredDirectQuote.removeFromIndexes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//no indirect quote in sentence\n\t\t\t\t\t\tcontinue INDIRECTQUOTE;\n\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\tRe-initialize markup variables since they are also used for direct quotes\n\t\t\t\t\t\tquotee_left = null;\n\t\t\t\t\t\tquotee_right = null; \n\t\t\t\t\t\t\n\t\t\t\t\t\trepresentative_quotee_left = null;\n\t\t\t\t\t\trepresentative_quotee_right = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tquote_relation_left = null;\n\t\t\t\t\t\tquote_relation_right = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tquoteType = \"indirect\";\n\t\t\t\t\t\tquoteeReliability = 5;\n\t\t\t\t\t\tquoteeReliability_left = 5;\n\t\t\t\t\t\tquoteeReliability_right = 5;\n\t\t\t\t\t\tquotee_end = -5;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\tif (chunksBeforeIndirectQuote != null){\n//\t\t\t\t\t\t\tSystem.out.println(\"chunksBeforeIndirectQuote FOUND!! \");\n\t\t\t\t\t\t\tString[] quote_annotation_result = determine_quotee_and_quote_relation(\"LEFT\", chunksBeforeIndirectQuote,\n\t\t\t\t\t\t\t\t\t hds, indirectQuote\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t );\n\t\t\tif (quote_annotation_result.length>=4){\n\t\t\t quotee_left = quote_annotation_result[0];\n\t\t\t representative_quotee_left = quote_annotation_result[1];\n\t\t\t quote_relation_left = quote_annotation_result[2];\n//\t\t\t System.out.println(\"INDIRECT QUOTE LEFT RESULT quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left\n//\t\t\t\t\t + \" QUOTE RELATION \" + quote_relation_left);\n\t\t\t try {\n\t\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t quoteeReliability_left = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tquoteeReliability = -5;\n\t\t\t\tquoteeReliability_left = -5;\n\t\t\t\t}\t\t\t\t\t \n\t\t\t }\n\t\t\t\n\t\t\t}\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (quotee_left != null){\n\t\t\t\t\t\t\tindirectQuote.setQuotee(quotee_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n\t\t\t\t\t\t\tindirectQuote.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\t\t\tindirectQuote.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//indirect quote followed by direct quote:\n\t\t\t\t\t\t\t//the quotee and quote relation of the indirect quote are copied to the direct quote \n\t\t\t\t\t\t\t//Genetic researcher Otmar Wiestler hopes that the government's strict controls on genetic research \n\t\t\t\t\t\t\t//will be relaxed with the advent of the new ethics commission. \n\t\t\t\t\t\t\t//\"For one thing the government urgently needs advice, because of course it's such an extremely \n\t\t\t\t\t\t\t//complex field. And one of the reasons Chancellor Schröder formed this new commission was without \n\t\t\t\t\t\t\t//a doubt to create his own group of advisors.\"\n\n\t\t\t\t\t\t\tif (subsequentDirectQuoteInstance == true\n\t\t\t\t\t\t\t\t&&\thds.subsequentDirectQuote.getRepresentativeQuoteeMention().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t&& \thds.subsequentDirectQuote.getQuotee().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t&& \thds.subsequentDirectQuote.getQuoteRelation().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t\t){\n//\t\t\t\t\t\t\t\tSystem.out.println(\"SUBSEQUENT UNCLEAR DIR QUOTE FOUND!!\"); \n\t\t\t\t\t\t\t\tint begin = hds.subsequentDirectQuote.getBegin();\n\t\t\t\t\t\t\t\tint end = hds.subsequentDirectQuote.getEnd();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuotee(quotee_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteType(\"direct\");\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteeReliability(quoteeReliability_left + 2);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.addToIndexes();\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\t\t\t\t\n\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println(\"Hello, World INDIRECT QUOTE \" + quotee_left + quote_relation_left + quoteeReliability);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (quote_relation_left != null){\n\t\t\t\t\t\t\tindirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (quoteType != null){\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n//\t\t\t\t\t\t\tSystem.out.println(\"Hello, World INDIRECT QUOTE NOT FOUND\" + quote_relation_left);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (indirectQuote.getRepresentativeQuoteeMention() != null){\n//\t\t\t\t\t\t\tSystem.out.println(\"NOW!!\" + indirectQuote.getRepresentativeQuoteeMention());\n\t\t\t\t\t\t\tif (hds.dbpediaSurfaceFormToDBpediaLink.containsKey(indirectQuote.getRepresentativeQuoteeMention())){\n\t\t\t\t\t\t\t\tindirectQuote.setQuoteeDBpediaUri(hds.dbpediaSurfaceFormToDBpediaLink.get(indirectQuote.getRepresentativeQuoteeMention()));\n//\t\t\t\t\t\t\t\tSystem.out.println(\"DBPEDIA \" + indirectQuote.getRepresentativeQuoteeMention() + \" URI: \" + hds.dbpediaSurfaceFormToDBpediaLink.get(indirectQuote.getRepresentativeQuoteeMention()));\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\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t }\n//\t\t\t} //for chunk\n//\t\t\t\tsay without that\n//\t\t\t}\t\t\n\t\t} //Core map sentences indirect quotes\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public String[] createAlignmentStrings(List<CigarElement> cigar, String refSeq, String obsSeq, int totalReads) {\n\t\tStringBuilder aln1 = new StringBuilder(\"\");\n\t\tStringBuilder aln2 = new StringBuilder(\"\");\n\t\tint pos1 = 0;\n\t\tint pos2 = 0;\n\t\t\n\t\tfor (int i=0;i<cigar.size();i++) {\n\t\t//for (CigarElement ce: cigar) {\n\t\t\tCigarElement ce = cigar.get(i);\n\t\t\tint cel = ce.getLength();\n\n\t\t\tswitch(ce.getOperator()) {\n\t\t\t\tcase M:\n\t\t\t\t\taln1.append(refSeq.substring(pos1, pos1+cel));\n\t\t\t\t\taln2.append(obsSeq.substring(pos2, pos2+cel));\n\t\t\t\t\tpos1 += cel;\n\t\t\t\t\tpos2 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase N:\n\t\t\t\t\taln1.append(this.createString('-', cel));\n\t\t\t\t\taln2.append(this.createString('-', cel));\n\t\t\t\t\tpos1 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase S:\n\t\t\t\t\taln1.append(this.createString('S', cel));\n\t\t\t\t\taln2.append(this.createString('S', cel));\n\t\t\t\t\tpos2 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase I:\n\t\t\t\t\taln1.append(this.createString('-', cel));\n\t\t\t\t\taln2.append(obsSeq.substring(pos2, pos2+cel));\n\t\t\t\t\tpos2 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase D:\n\t\t\t\t\tif (i < cigar.size()-1) { \n\t\t\t\t\t\taln1.append(refSeq.substring(pos1, pos1+cel));\n\t\t\t\t\t\taln2.append(this.createString('-', cel));\n\t\t\t\t\t\tpos1 += cel;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase H:\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(String.format(\"Don't know how to handle this CIGAR tag: %s. Record %d\",ce.getOperator().toString(),totalReads));\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new String[]{aln1.toString(),aln2.toString()};\n\t\t\n\t}",
"public GIZAWordAlignment(String f2e_line1, String f2e_line2,\n String f2e_line3, String e2f_line1, String e2f_line2, String e2f_line3)\n throws IOException {\n init(f2e_line1, f2e_line2, f2e_line3, e2f_line1, e2f_line2, e2f_line3);\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tString[] testSentence = new String[]{\r\n\t\t\t\t\"西三旗硅谷先锋小区半地下室出租,便宜可合租硅谷工信处女干事每月经过下属科室都要亲口交代24口交换机等技术性器件的安装工作\",\r\n\t\t\t\t\"这是一个伸手不见五指的黑夜。我叫孙悟空,我爱北京,我爱Python和C++。\",\r\n\t\t\t \"我不喜欢日本和服。\",\r\n\t\t\t \"雷猴回归人间。\",\r\n\t\t\t \"工信处女干事每月经过下属科室都要亲口交代24口交换机等技术性器件的安装工作\",\r\n\t\t\t \"我需要廉租房\",\r\n\t\t\t \"永和服装饰品有限公司\",\r\n\t\t\t \"我爱北京天安门\",\r\n\t\t\t \"abc\",\r\n\t\t\t \"隐马尔可夫\",\r\n\t\t\t \"雷猴是个好网站\",\r\n\t\t\t \"“Microsoft”一词由“MICROcomputer(微型计算机)”和“SOFTware(软件)”两部分组成\",\r\n\t\t\t \"草泥马和欺实马是今年的流行词汇\",\r\n\t\t\t \"伊藤洋华堂总府店\",\r\n\t\t\t \"中国科学院计算技术研究所\",\r\n\t\t\t \"罗密欧与朱丽叶\",\r\n\t\t\t \"我购买了道具和服装\",\r\n\t\t\t \"PS: 我觉得开源有一个好处,就是能够敦促自己不断改进,避免敞帚自珍\",\r\n\t\t\t \"湖北省石首市\",\r\n\t\t\t \"湖北省十堰市\",\r\n\t\t\t \"总经理完成了这件事情\",\r\n\t\t\t \"电脑修好了\",\r\n\t\t\t \"做好了这件事情就一了百了了\",\r\n\t\t\t \"人们审美的观点是不同的\",\r\n\t\t\t \"我们买了一个美的空调\",\r\n\t\t\t \"线程初始化时我们要注意\",\r\n\t\t\t \"一个分子是由好多原子组织成的\",\r\n\t\t\t \"祝你马到功成\",\r\n\t\t\t \"他掉进了无底洞里\",\r\n\t\t\t \"中国的首都是北京\",\r\n\t\t\t \"孙君意\",\r\n\t\t\t \"外交部发言人马朝旭\",\r\n\t\t\t \"领导人会议和第四届东亚峰会\",\r\n\t\t\t \"在过去的这五年\",\r\n\t\t\t \"还需要很长的路要走\",\r\n\t\t\t \"60周年首都阅兵\",\r\n\t\t\t \"你好人们审美的观点是不同的\",\r\n\t\t\t \"买水果然后去世博园\",\r\n\t\t\t \"但是后来我才知道你是对的\",\r\n\t\t\t \"存在即合理\",\r\n\t\t\t \"的的的的的在的的的的就以和和和\",\r\n\t\t\t \"I love你,不以为耻,反以为rong\",\r\n\t\t\t \"hello你好人们审美的观点是不同的\",\r\n\t\t\t \"很好但主要是基于网页形式\",\r\n\t\t\t \"hello你好人们审美的观点是不同的\",\r\n\t\t\t \"为什么我不能拥有想要的生活\",\r\n\t\t\t \"后来我才\",\r\n\t\t\t \"此次来中国是为了\",\r\n\t\t\t \"使用了它就可以解决一些问题\",\r\n\t\t\t \",使用了它就可以解决一些问题\",\r\n\t\t\t \"其实使用了它就可以解决一些问题\",\r\n\t\t\t \"好人使用了它就可以解决一些问题\",\r\n\t\t\t \"是因为和国家\",\r\n\t\t\t \"老年搜索还支持\",\r\n\t\t\t \"干脆就把那部蒙人的闲法给废了拉倒!RT @laoshipukong : 27日,全国人大常委会第三次审议侵权责任法草案,删除了有关医疗损害责任“举证倒置”的规定。在医患纠纷中本已处于弱势地位的消费者由此将陷入万劫不复的境地。 \",\r\n\t\t\t \"他说的确实在理\",\r\n\t\t\t \"长春市长春节讲话\",\r\n\t\t\t \"结婚的和尚未结婚的\",\r\n\t\t\t \"结合成分子时\",\r\n\t\t\t \"旅游和服务是最好的\",\r\n\t\t\t \"这件事情的确是我的错\",\r\n\t\t\t \"供大家参考指正\",\r\n\t\t\t \"哈尔滨政府公布塌桥原因\",\r\n\t\t\t \"我在机场入口处\",\r\n\t\t\t \"邢永臣摄影报道\",\r\n\t\t\t \"BP神经网络如何训练才能在分类时增加区分度?\",\r\n\t\t\t \"南京市长江大桥\",\r\n\t\t\t \"应一些使用者的建议,也为了便于利用NiuTrans用于SMT研究\",\r\n\t\t\t \"长春市长春药店\",\r\n\t\t\t \"邓颖超生前最喜欢的衣服\",\r\n\t\t\t \"胡锦涛是热爱世界和平的政治局常委\",\r\n\t\t\t \"程序员祝海林和朱会震是在孙健的左面和右面, 范凯在最右面.再往左是李松洪\",\r\n\t\t\t \"一次性交多少钱\",\r\n\t\t\t \"两块五一套,三块八一斤,四块七一本,五块六一条\",\r\n\t\t\t \"小和尚留了一个像大和尚一样的和尚头\",\r\n\t\t\t \"我是中华人民共和国公民;我爸爸是共和党党员; 地铁和平门站\",\r\n\t\t\t \"张晓梅去人民医院做了个B超然后去买了件T恤\",\r\n\t\t\t \"AT&T是一件不错的公司,给你发offer了吗?\",\r\n\t\t\t \"C++和c#是什么关系?11+122=133,是吗?PI=3.14159\",\r\n\t\t\t \"你认识那个和主席握手的的哥吗?他开一辆黑色的士。\",\r\n\t\t\t \"枪杆子中出政权\",\r\n\t\t\t \"张三风同学走上了不归路\",\r\n\t\t\t \"阿Q腰间挂着BB机手里拿着大哥大,说:我一般吃饭不AA制的。\",\r\n\t\t\t \"在1号店能买到小S和大S八卦的书,还有3D电视。\"\r\n\r\n\t\t};\r\n\t\t\r\n\t\tSegment app = new Segment();\r\n\t\t\r\n\t\tfor(String sentence : testSentence)\r\n\t\t\tSystem.out.println(app.cut(sentence));\r\n\t}",
"@Override\r\npublic Object produceValue(Annotation np, Document doc)\r\n{\n SortedSet<Integer> quoteLocations = new TreeSet<Integer>();\r\n Pattern p = Pattern.compile(\"\\\"|''|``|\\u201C|\\u201D\");\r\n\r\n String text = doc.getText();\r\n Matcher m = p.matcher(text);\r\n\r\n boolean inQuote = false;\r\n while (m.find()) {\r\n int start = m.start();\r\n if (inQuote && (text.substring(start).startsWith(\"``\") || text.substring(start).startsWith(\"\\u201C\"))) {\r\n // We have an opening quote; Make sure the previous quote is closed\r\n quoteLocations.add((start - 1));\r\n inQuote = false;\r\n }\r\n quoteLocations.add((start));\r\n inQuote = !inQuote;\r\n }\r\n // System.out.println(\"Quote locations: \"+quoteLocations);\r\n\r\n // Figure out which noun corresponds to which quote\r\n AnnotationSet sent = doc.getAnnotationSet(Constants.SENT);\r\n Iterator<Integer> quoteIter = quoteLocations.iterator();\r\n HashMap<Integer, Annotation> reporters = new HashMap<Integer, Annotation>();\r\n HashMap<Integer, Annotation> companies = new HashMap<Integer, Annotation>();\r\n HashMap<Integer, Annotation> sentReporter = new HashMap<Integer, Annotation>();\r\n HashMap<Integer, Annotation> compReporter = new HashMap<Integer, Annotation>();\r\n int counter = 1;\r\n while (quoteIter.hasNext()) {\r\n int qStart = quoteIter.next();\r\n if (!quoteIter.hasNext()) {\r\n break;\r\n }\r\n int qEnd = quoteIter.next() + 1;\r\n\r\n AnnotationSet sentences = sent.getOverlapping(qStart, qEnd);\r\n\r\n // Three cases for the size of the sentences set\r\n Annotation match, compMatch;\r\n if (sentences.size() < 1) {\r\n System.out.println(\"Quote is not covered by any sentence:\");\r\n int beg = qStart - 15;\r\n beg = beg < 0 ? 0 : beg;\r\n int en = qStart + 15;\r\n en = en >= text.length() ? text.length() - 1 : en;\r\n System.out.println(Utils.getAnnotText(beg, en, text));\r\n System.out.println(\"Position \" + qStart);\r\n match = Annotation.getNullAnnot();\r\n compMatch = Annotation.getNullAnnot();\r\n // throw new RuntimeException(\"Quote is not covered by any sentence\");\r\n }\r\n else if (sentences.size() == 1) {\r\n Annotation s = sentences.getFirst();\r\n // System.out.println(\"Sent: \"+Utils.getAnnotText(s, text));\r\n if (s.properCovers(qStart, qEnd)) {\r\n match = findReporter(qStart, qEnd, s, doc);\r\n compMatch = findCompany(qStart, qEnd, s, doc);\r\n if (match.equals(Annotation.getNullAnnot())) {\r\n match = findReportCont(sentReporter, s, doc);\r\n compMatch = findReportCont(compReporter, s, doc);\r\n }\r\n }\r\n else {\r\n match = findReportCont(sentReporter, s, doc);\r\n compMatch = findReportCont(compReporter, s, doc);\r\n }\r\n sentReporter.put(Integer.decode(s.getAttribute(\"sentNum\")), match);\r\n compReporter.put(Integer.decode(s.getAttribute(\"sentNum\")), compMatch);\r\n }\r\n else {\r\n // The quoted string spans more than one sentence.\r\n Annotation beg = sentences.getFirst();\r\n // System.out.println(\"First sent: \"+Utils.getAnnotText(beg, text));\r\n Annotation end = sentences.getLast();\r\n // System.out.println(\"Last sent: \"+Utils.getAnnotText(end, text));\r\n match = Annotation.getNullAnnot();\r\n compMatch = Annotation.getNullAnnot();\r\n if (beg.getStartOffset() < qStart) {\r\n match = findReporter(qStart, qEnd, beg, doc);\r\n compMatch = findCompany(qStart, qEnd, beg, doc);\r\n }\r\n if (match.equals(Annotation.getNullAnnot()) && qEnd < end.getEndOffset()) {\r\n match = findReporter(qStart, qEnd, end, doc);\r\n compMatch = findCompany(qStart, qEnd, end, doc);\r\n }\r\n if (match.equals(Annotation.getNullAnnot())) {\r\n match = findReportCont(sentReporter, beg, doc);\r\n compMatch = findCompany(qStart, qEnd, end, doc);\r\n }\r\n sentReporter.put(Integer.parseInt(beg.getAttribute(\"sentNum\")), match);\r\n sentReporter.put(Integer.parseInt(end.getAttribute(\"sentNum\")), match);\r\n compReporter.put(Integer.parseInt(beg.getAttribute(\"sentNum\")), compMatch);\r\n compReporter.put(Integer.parseInt(end.getAttribute(\"sentNum\")), compMatch);\r\n\r\n }\r\n reporters.put(counter, match);\r\n companies.put(counter, compMatch);\r\n counter += 2;\r\n\r\n // System.out.println(\"Quote: \"+Utils.getAnnotText(qStart, qEnd, text));\r\n // if(!match.equals(Annotation.getNullAnnot())){\r\n // System.out.println(\"Match: \"+Utils.getAnnotText(match, text));\r\n // }else{\r\n // System.out.println(\"no match!\");\r\n // }\r\n }\r\n int initial = quoteLocations.size();\r\n\r\n AnnotationSet nps = doc.getAnnotationSet(Constants.NP);\r\n for (Annotation a : nps.getOrderedAnnots()) {\r\n int s = a.getStartOffset();\r\n quoteLocations = quoteLocations.tailSet(s);\r\n int numQuotes = initial - quoteLocations.size();\r\n\r\n // System.err.println(numQuotes);\r\n if (numQuotes % 2 == 0) {\r\n a.setProperty(this, -1);\r\n a.setProperty(Property.AUTHOR, Annotation.getNullAnnot());\r\n a.setProperty(Property.COMP_AUTHOR, Annotation.getNullAnnot());\r\n }\r\n else {\r\n a.setProperty(this, numQuotes);\r\n a.setProperty(Property.AUTHOR, reporters.get(numQuotes));\r\n a.setProperty(Property.COMP_AUTHOR, companies.get(numQuotes));\r\n // if(FeatureUtils.isPronoun(a, annotations, text)&&FeatureUtils.getPronounPerson(FeatureUtils.getText(a,\r\n // text))==1\r\n // &&FeatureUtils.NumberEnum.SINGLE.equals(FeatureUtils.getNumber(a, annotations, text))){\r\n // Annotation repo = reporters.get(new Integer(numQuotes));\r\n // if(repo==null||repo.equals(Annotation.getNullAnnot())){\r\n // Annotation thisSent = sent.getOverlapping(a).getFirst();\r\n // System.out.println(\"*** No author in \"+Utils.getAnnotText(thisSent, text+\"***\"));\r\n // }\r\n // }\r\n }\r\n }\r\n // System.out.println(\"End of inquote\");\r\n\r\n return np.getProperty(this);\r\n}",
"public void description() throws Exception {\n PrintWriter pw = new PrintWriter(System.getProperty(\"user.dir\")+ \"/resources/merged_file.txt\"); \n \n // BufferedReader for obtaining the description files of the ontology & ODP\n BufferedReader br1 = new BufferedReader(new FileReader(System.getProperty(\"user.dir\")+ \"/resources/ontology_description\")); \n BufferedReader br2 = new BufferedReader(new FileReader(System.getProperty(\"user.dir\")+ \"/resources/odps_description.txt\")); \n String line1 = br1.readLine(); \n String line2 = br2.readLine(); \n \n // loop is used to copy the lines of file 1 to the other \n if(line1==null){\n\t \tpw.print(\"\\n\");\n\t }\n while (line1 != null || line2 !=null) \n { \n if(line1 != null) \n { \n pw.println(line1); \n line1 = br1.readLine(); \n } \n \n if(line2 != null) \n { \n pw.println(line2); \n line2 = br2.readLine(); \n } \n } \n pw.flush(); \n // closing the resources \n br1.close(); \n br2.close(); \n pw.close(); \n \n // System.out.println(\"Merged\"); -> for checking the code execution\n /* On obtaining the merged file, Doc2Vec model is implemented so that vectors are\n * obtained. And the, similarity ratio of the ontology description with the ODPs \n * can be found using cosine similarity \n */\n \tFile file = new File(System.getProperty(\"user.dir\")+ \"/resources/merged_file.txt\"); \t\n SentenceIterator iter = new BasicLineIterator(file);\n AbstractCache<VocabWord> cache = new AbstractCache<VocabWord>();\n TokenizerFactory t = new DefaultTokenizerFactory();\n t.setTokenPreProcessor(new CommonPreprocessor()); \n LabelsSource source = new LabelsSource(\"Line_\");\n ParagraphVectors vec = new ParagraphVectors.Builder()\n \t\t.minWordFrequency(1)\n \t .labelsSource(source)\n \t .layerSize(100)\n \t .windowSize(5)\n \t .iterate(iter)\n \t .allowParallelTokenization(false)\n .workers(1)\n .seed(1)\n .tokenizerFactory(t) \n .build();\n vec.fit();\n \n //System.out.println(\"Check the file\");->for execution of code\n PrintStream p=new PrintStream(new File(System.getProperty(\"user.dir\")+ \"/resources/description_values\")); //storing the numeric values\n \n \n Similarity s=new Similarity(); //method that checks the cosine similarity\n s.similarityCheck(p,vec);\n \n \n }",
"@Test\n \tpublic void testSimpleFilterAlignments()\n \t{\n \t\tString searchTerm = \"hobbys\";\n \t\tString searchText = \"hobbies\";\n \t\tPDL.init(searchTerm, searchText, true, true);\n \t\talignments.clear();\n \t\tPseudoDamerauLevenshtein.Alignment ali1 = PDL.new Alignment(searchTerm, searchText, 1.0, 0, 5, 0, 0);\n \t\tPseudoDamerauLevenshtein.Alignment ali2 = PDL.new Alignment(searchTerm, searchText, 0.5, 0, 5, 0, 0);\n \t\talignments.add(ali1);\n \t\talignments.add(ali2);\n \t\talignments = PseudoDamerauLevenshtein.filterAlignments(alignments);\n \t\tAssert.assertEquals(1, alignments.size());\n \t\tAssert.assertEquals(ali1, alignments.get(0));\n \t}",
"public void firstSem4() {\n chapter = \"firstSem4\";\n String firstSem4 = \"You're sitting at your computer - you can't sleep, and your only companions are \"+student.getRmName()+\"'s \" +\n \"snoring and Dave Grohl, whose kind face looks down at you from your poster. Your head is buzzing with everything you've \" +\n \"seen today.\\tA gentle 'ding' sounds from your computer, and you click your email tab. It's a campus-wide message \" +\n \"from the president, all caps, and it reads as follows:\\n\\t\" +\n \"DEAR STUDENTS,\\n\" +\n \"AS YOU MAY HAVE HEARD, THERE HAVE BEEN SEVERAL CONFIRMED INTERACTIONS WITH THE CAMPUS BEAST. THESE INTERACTIONS\" +\n \" RANGE FROM SIGHTINGS (17) TO KILLINGS (6). BE THIS AS IT MAY, REST ASSURED THAT WE ARE TAKING EVERY NECESSARY \" +\n \"PRECAUTION TO ENSURE STUDENT WELL-BEING. WE ARE ALL DEDICATED TO MAKING \"+(student.getCollege().getName()).toUpperCase()+\n \" A SAFE, INCLUSIVE ENVIRONMENT FOR ALL. TO CONTRIBUTE, I ASK THAT YOU DO YOUR PART, AND REPORT ANY SIGHTINGS, MAIMINGS,\" +\n \" OR KILLINGS TO PUBLIC SAFETY WITHIN A REASONABLE AMOUNT OF TIME. ENJOY YOUR STUDIES!\\nTOODOLOO,\\nPRESIDENT DOUG\";\n getTextIn(firstSem4);\n }",
"@Test\n\tpublic void testStoreProcessText2() {\n\t\tint sourceID = dm.storeProcessedText(pt1);\n\t\tassertTrue(sourceID > 0);\n\t\t\n\t\tds.startSession();\n\t\tSource source = ds.getSource(pt1.getMetadata().getUrl());\n\t\tList<Paragraph> paragraphs = (List<Paragraph>) ds.getParagraphs(source.getSourceID());\n\t\tassertTrue(pt1.getMetadata().getName().equals(source.getName()));\n\t\tassertTrue(pt1.getParagraphs().size() == paragraphs.size());\n\t\t\n\t\tfor(int i = 0; i < pt1.getParagraphs().size(); i++){\n\t\t\tParagraph p = paragraphs.get(i);\n\t\t\tParagraph originalP = pt1.getParagraphs().get(i);\n\t\t\tassertTrue(originalP.getParentOrder() == p.getParentOrder());\n\t\t\t\n\t\t\tList<Sentence> sentences = (List<Sentence>) ds.getSentences(p.getId());\n\t\t\tList<Sentence> originalSentences = (List<Sentence>) originalP.getSentences();\n\t\t\tfor(int j = 0; j < originalSentences.size(); j++){\n\t\t\t\tassertTrue(originalSentences.get(j).getContent().substring(DataStore.SENTENCE_PREFIX.length()).equals(sentences.get(j).getContent()));\n\t\t\t\tassertTrue(originalSentences.get(j).getParentOrder() == sentences.get(j).getParentOrder());\n\t\t\t}\n\t\t}\n\t\tds.closeSession();\n\t}",
"public static void main(String args[]) throws Exception {\n\n String sourceFile = args[0]; //source file has supervised SRL tags\n String targetFile = args[1]; //target file has supervised SRL tags\n String alignmentFile = args[2];\n String sourceClusterFilePath = args[3];\n String targetClusterFilePath = args[4];\n String projectionFilters = args[5];\n double sparsityThresholdStart = Double.parseDouble(args[6]);\n double sparsityThresholdEnd = Double.parseDouble(args[6]);\n\n\n Alignment alignment = new Alignment(alignmentFile);\n HashMap<Integer, HashMap<Integer, Integer>> alignmentDic = alignment.getSourceTargetAlignmentDic();\n\n final IndexMap sourceIndexMap = new IndexMap(sourceFile, sourceClusterFilePath);\n final IndexMap targetIndexMap = new IndexMap(targetFile, targetClusterFilePath);\n ArrayList<String> sourceSents = IO.readCoNLLFile(sourceFile);\n ArrayList<String> targetSents = IO.readCoNLLFile(targetFile);\n\n System.out.println(\"Projection started...\");\n DependencyLabelsAnalyser dla = new DependencyLabelsAnalyser();\n for (int senId = 0; senId < sourceSents.size(); senId++) {\n if (senId % 100000 == 0)\n System.out.print(senId);\n else if (senId % 10000 == 0)\n System.out.print(\".\");\n\n Sentence sourceSen = new Sentence(sourceSents.get(senId), sourceIndexMap);\n Sentence targetSen = new Sentence(targetSents.get(senId), targetIndexMap);\n int maxNumOfProjectedLabels = dla.getNumOfProjectedLabels(sourceSen, alignmentDic.get(senId));\n double trainGainPerWord = (double) maxNumOfProjectedLabels/targetSen.getLength();\n\n if (trainGainPerWord >= sparsityThresholdStart && trainGainPerWord< sparsityThresholdEnd) {\n dla.analysSourceTargetDependencyMatch(sourceSen, targetSen, alignmentDic.get(senId),\n sourceIndexMap, targetIndexMap, projectionFilters);\n }\n }\n System.out.print(sourceSents.size() + \"\\n\");\n dla.writeConfusionMatrix(\"confusion_\"+sparsityThresholdStart+\"_\"+sparsityThresholdEnd+\".out\", sourceIndexMap, targetIndexMap);\n }",
"public static void main(String[] args) {\n\t\tString text = \"\\\"undifferentiated's thyroid carcinomas were carried out with antisera against calcitonin, calcitonin-gene related peptide (CGRP), somatostatin, and also thyroglobulin, using the PAP method. \";\n\t\ttext = text.replace('\\\"', ' ');\n\t\t\n\t\tStringUtil su = new StringUtil();\n\t\t\n\t\t// Extracting...\n\t\tString text2 = new String(text);\n\t\tEnvironmentVariable.setMoaraHome(\"./\");\n\t\tGeneRecognition gr = new GeneRecognition();\n\t\tArrayList<GeneMention> gms = gr.extract(MentionConstant.MODEL_BC2,text);\n\t\t// Listing mentions...\n\t\tSystem.out.println(\"Start\\tEnd\\tMention\");\n\t\tfor (int i=0; i<gms.size(); i++) {\n\t\t\tGeneMention gm = gms.get(i);\n\t\t\tSystem.out.println(gm.Start() + \"\\t\" + gm.End() + \"\\t\" + gm.Text());\n\t\t\t//System.out.println(text2.substring(gm.Start(), gm.End()));\n\t\t\tSystem.out.println(su.getTokenByPosition(text,gm.Start(),gm.End()).trim());\n\t\t}\n\t\tif (true){\n\t\t\treturn;\n\t\t}\n\t\t// Normalizing mentions...\n\t\tOrganism yeast = new Organism(Constant.ORGANISM_YEAST);\n\t\tOrganism human = new Organism(Constant.ORGANISM_HUMAN);\n\t\tExactMatchingNormalization gn = new ExactMatchingNormalization(human);\n\t\tgms = gn.normalize(text,gms);\n\t\t// Listing normalized identifiers...\n\t\t\n\t\tSystem.out.println(\"\\nStart\\tEnd\\t#Pred\\tMention\");\n\t\tfor (int i=0; i<gms.size(); i++) {\n\t\t\tGeneMention gm = gms.get(i);\n\t\t\tif (gm.GeneIds().size()>0) {\n\t\t\t\tSystem.out.println(gm.Start() + \"\\t\" + gm.End() + \"\\t\" + gm.GeneIds().size() + \n\t\t\t\t\t\"\\t\" + su.getTokenByPosition(text,gm.Start(),gm.End()).trim());\n\t\t\t\tfor (int j=0; j<gm.GeneIds().size(); j++) {\n\t\t\t\t\tGenePrediction gp = gm.GeneIds().get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\" + gp.GeneId() + \" \" + gp.OriginalSynonym() + \" \" + gp.ScoreDisambig());\n\t\t\t\t\tSystem.out.println((gm.GeneId().GeneId().equals(gp.GeneId())?\" (*)\":\"\"));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main (String args[]){\n\t\tString paragraph;//paragraph entered\r\n\t\tString newParagraph;//paragraph modified after string\r\n\t\tint count;//Count the characters excluding vowels\r\n\t\tString repeat;//Insert more paragraphs\r\n\t\tint menu;//Insert menu option\r\n\r\n\r\n\t\t//Declare objects for Q1\r\n\t\tScanner sc = new Scanner (System.in);\r\n\t\tTextProcessor myT = new TextProcessor();\r\n\r\n\r\n\t\t//Do While to set the menu options\r\n\t\tdo{\r\n\r\n\t\t//Input for menu\r\n\t\tSystem.out.println(\"\\n ____________________________________________________\" +\r\n\t\t\t\t\t\t\"\\n|Welcome to the Programming Society Application Menu!|\" +\r\n\t\t\t\t\t\t\"\\n| |\" +\r\n\t\t\t\t\t\t\"\\n|1 - Encode paragraphs |\" +\r\n\t\t\t\t\t\t\"\\n|2 - Enter words and find the longest one |\" +\r\n\t\t\t\t\t\t\"\\n|3 - Exit Application |\" +\r\n\t\t\t\t\t\t\"\\n|Enter your choice (1, 2 or 3): |\" +\r\n\t\t\t\t\t\t\"\\n|____________________________________________________|\" +\r\n\t\t\t\t\t\t\"\\n \");\r\n\t\tmenu = Integer.parseInt(sc.nextLine());\r\n\r\n\t\t\tif(menu == 1){\r\n\t\t\t\t//Do While for input and output for Q1 MPA2\r\n\t\t\t\tdo{\r\n\t\t\t\t\t//Input for Q1\r\n\t\t\t\t\tSystem.out.println(\"\\n \" + \"Please enter paragraph\");\r\n\t\t\t\t\tparagraph = sc.nextLine();\r\n\r\n\t\t\t\t\t//Set for Q1 (user input)\r\n\t\t\t\t\tmyT.setParagraph(paragraph);\r\n\r\n\t\t\t\t\t//Process for Q1\r\n\t\t\t\t\tmyT.computeParagraph();\r\n\r\n\t\t\t\t\t//Fetch results and Output for Q1\r\n\t\t\t\t\tnewParagraph = myT.getNewParagraph();\r\n\t\t\t\t\tcount = myT.getCount();\r\n\r\n\t\t\t\t\t//Output for Q1\r\n\t\t\t\t\tSystem.out.println(\"\\n \" + \"Your encoded paragraph is \" + newParagraph + count);\r\n\r\n\t\t\t\t\t//Repeat for inserting more paragraphs for Q1 MPA2\r\n\t\t\t\t\tSystem.out.println(\"\\n \" + \"Would you like to encode another paragraph?(yes or no)\");\r\n\t\t\t\t\trepeat = sc.nextLine();\r\n\t\t\t\t}\r\n\r\n\t\t\t\twhile (!repeat.equalsIgnoreCase(\"no\"));\r\n\t\t\t}\r\n\r\n\t\t\telse if(menu == 2){\r\n\t\t\t\tSystem.out.println(\"\\n \" + \"How many words would you like to enter?\");\r\n\t\t\t\tint wordNumber = Integer.parseInt(sc.nextLine());\r\n\t\t\t\tString word[] = new String [wordNumber];\r\n\t\t\t\tmyT.setWordNumber(wordNumber);\r\n\r\n\r\n\t\t\t\tfor(int i = 0; i < word.length; i++){\r\n\t\t\t\t\tSystem.out.println(\"\\n \" + \"Please enter word \" + \"(\" + (i+1) + \"):\");\r\n\t\t\t\t\tword[i] = sc.nextLine();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmyT.setWord(word);\r\n\r\n\t\t\t\tString longestWord[] = new String[wordNumber];\r\n\r\n\t\tSystem.out.println(\"the longest is: \" + Arrays.deepToString(longestWord));\r\n\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if(menu == 3){\r\n\t\t\t\tSystem.out.println(\"Thank you\");\r\n\t\t\t}\r\n\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Not a valid function.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twhile(menu != 3);\r\n\r\n\t}",
"public void format(List<Alignment> alignmentList);",
"@Test\n\tpublic void testFindAlignment1() {\n\t\tint[] s = new int[cs5x3.length];\n\t\tfor (int i = 0; i < s.length; i++)\n\t\t\ts[i] = -1;\n\t\tAlignment.AlignmentScore score = testme3.findAlignment(s);\n\t\t// AAG-- 3\n\t\t// --GCC 3\n\t\t// -CGC- 2\n\t\t// -AGC- 3\n\t\t// --GCT 2\n\t\tassertEquals(13, score.actual);\n\t\tscore = testme4.findAlignment(s);\n\t\t// AAG-- 3\n\t\t// --GCC 3\n\t\t// -CGC- 2\n\t\t// -AGC- 3\n\t\t// -AGC- 3 [reverse strand]\n\t\tassertEquals(14, score.actual);\n\t}",
"public void align( Alignment alignment, Properties param ) {\n\t\t// For the classes : no optmisation cartesian product !\n\t\tfor ( OWLEntity cl1 : ontology1.getClassesInSignature()){\n\t\t\tfor ( OWLEntity cl2: ontology2.getClassesInSignature() ){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\tfor (OWLEntity cl1:getDataProperties(ontology1)){\n\t\t\tfor (OWLEntity cl2:getDataProperties(ontology2)){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (OWLEntity cl1:getObjectProperties(ontology1)){\n\t\t\tfor (OWLEntity cl2:getObjectProperties(ontology2)){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\n\n\n\n\n\n\t}",
"private void generate()\n {\n for (int i = 0; i < this.syllables; i++) {\n Word word = getNextWord();\n this.text += word.getWord();\n if (i < this.syllables - 1) {\n this.text += \" \";\n }\n }\n }",
"public static void main(String[] args) throws IOException {\n // All but last arg is a file/directory of LDC tagged input data\n File[] files = new File[args.length - 1];\n for (int i = 0; i < files.length; i++)\n files[i] = new File(args[i]);\n\n // Last arg is the TestFrac\n double testFraction = Double.valueOf(args[args.length -1]);\n\n // Get list of sentences from the LDC POS tagged input files\n List<List<String>> sentences = POSTaggedFile.convertToTokenLists(files);\n int numSentences = sentences.size();\n\n // Compute number of test sentences based on TestFrac\n int numTest = (int)Math.round(numSentences * testFraction);\n\n // Take test sentences from end of data\n List<List<String>> testSentences = sentences.subList(numSentences - numTest, numSentences);\n\n // Take training sentences from start of data\n List<List<String>> trainSentences = sentences.subList(0, numSentences - numTest);\n System.out.println(\"# Train Sentences = \" + trainSentences.size() +\n \" (# words = \" + BigramModel.wordCount(trainSentences) +\n \") \\n# Test Sentences = \" + testSentences.size() +\n \" (# words = \" + BigramModel.wordCount(testSentences) + \")\");\n\n // Create a BidirectionalBigramModel model and train it.\n BidirectionalBigramModel model = new BidirectionalBigramModel();\n\n System.out.println(\"Training...\");\n model.train(trainSentences);\n\n // Test on training data using test2\n model.test2(trainSentences);\n\n System.out.println(\"Testing...\");\n // Test on test data using test2\n model.test2(testSentences);\n }",
"public static void main(String[] args) throws FileNotFoundException {\n\n Scanner readFile = new Scanner(new File(\"sentences.txt\"));\n \n //Boolean to make sure parameters fit the finalized tokens\n boolean okay = true; \n \n while (readFile.hasNext()) {\n Stemmer s = new Stemmer();\n String token = readFile.next();\n okay = true;\n \n //Section to ensure no numerics\n if (token.contains(\"1\") || token.contains(\"2\"))\n okay = false;\n else if (token.contains(\"3\")||token.contains(\"4\"))\n okay = false;\n else if (token.contains(\"5\")||token.contains(\"6\"))\n okay = false;\n else if (token.contains(\"7\")||token.contains(\"8\"))\n okay = false;\n else if (token.contains(\"9\")||token.contains(\"0\"))\n okay = false;\n else {\n \n //remove characters\n token = token.replace(\"\\,\", \" \");\n token = token.replace(\"\\.\", \" \");\n token = token.replace(\"\\\"\", \" \");\n token = token.replace(\"\\(\", \" \");\n token = token.replace(\"\\)\", \" \");\n token = token.replace(\"'s\", \" \");\n token = token.trim();\n token = token.toLowerCase();\n }\n \n //Giant hard coded section to remove numerics\n if (token.compareTo(\"a\")==0)\n okay=false;\n if (token.compareTo(\"able\")==0)\n okay=false;\n if (token.compareTo(\"about\")==0)\n okay=false;\n if (token.compareTo(\"across\")==0)\n okay=false;\n if (token.compareTo(\"after\")==0)\n okay=false;\n if (token.compareTo(\"all\")==0)\n okay=false;\n if (token.compareTo(\"almost\")==0)\n okay=false;\n if (token.compareTo(\"also\")==0)\n okay=false;\n if (token.compareTo(\"am\")==0)\n okay=false;\n if (token.compareTo(\"among\")==0)\n okay=false;\n if (token.compareTo(\"an\")==0)\n okay=false;\n if (token.compareTo(\"and\")==0)\n okay=false;\n if (token.compareTo(\"any\")==0)\n okay=false;\n if (token.compareTo(\"are\")==0)\n okay=false;\n if (token.compareTo(\"as\")==0)\n okay=false;\n if (token.compareTo(\"at\")==0)\n okay=false;\n if (token.compareTo(\"be\")==0)\n okay=false;\n if (token.compareTo(\"because\")==0)\n okay=false;\n if (token.compareTo(\"been\")==0)\n okay=false;\n if (token.compareTo(\"but\")==0)\n okay=false;\n if (token.compareTo(\"by\")==0)\n okay=false;\n if (token.compareTo(\"can\")==0)\n okay=false;\n if (token.compareTo(\"cannot\")==0)\n okay=false;\n if (token.compareTo(\"could\")==0)\n okay=false;\n if (token.compareTo(\"dear\")==0)\n okay=false;\n if (token.compareTo(\"did\")==0)\n okay=false;\n if (token.compareTo(\"do\")==0)\n okay=false;\n if (token.compareTo(\"does\")==0)\n okay=false;\n if (token.compareTo(\"either\")==0)\n okay=false;\n if (token.compareTo(\"else\")==0)\n okay=false;\n if (token.compareTo(\"ever\")==0)\n okay=false;\n if (token.compareTo(\"every\")==0)\n okay=false;\n if (token.compareTo(\"for\")==0)\n okay=false;\n if (token.compareTo(\"from\")==0)\n okay=false;\n if (token.compareTo(\"get\")==0)\n okay=false;\n if (token.compareTo(\"got\")==0)\n okay=false;\n if (token.compareTo(\"had\")==0)\n okay=false;\n if (token.compareTo(\"has\")==0)\n okay=false;\n if (token.compareTo(\"have\")==0)\n okay=false;\n if (token.compareTo(\"he\")==0)\n okay=false;\n if (token.compareTo(\"her\")==0)\n okay=false;\n if (token.compareTo(\"hers\")==0)\n okay=false;\n if (token.compareTo(\"him\")==0)\n okay=false;\n if (token.compareTo(\"his\")==0)\n okay=false;\n if (token.compareTo(\"how\")==0)\n okay=false;\n if (token.compareTo(\"however\")==0)\n okay=false;\n if (token.compareTo(\"i\")==0)\n okay=false;\n if (token.compareTo(\"if\")==0)\n okay=false;\n if (token.compareTo(\"in\")==0)\n okay=false;\n if (token.compareTo(\"into\")==0)\n okay=false;\n if (token.compareTo(\"is\")==0)\n okay=false;\n if (token.compareTo(\"it\")==0)\n okay=false;\n if (token.compareTo(\"its\")==0)\n okay=false;\n if (token.compareTo(\"just\")==0)\n okay=false;\n if (token.compareTo(\"least\")==0)\n okay=false;\n if (token.compareTo(\"let\")==0)\n okay=false;\n if (token.compareTo(\"like\")==0)\n okay=false;\n if (token.compareTo(\"likely\")==0)\n okay=false;\n if (token.compareTo(\"may\")==0)\n okay=false;\n if (token.compareTo(\"me\")==0)\n okay=false;\n if (token.compareTo(\"might\")==0)\n okay=false;\n if (token.compareTo(\"most\")==0)\n okay=false;\n if (token.compareTo(\"must\")==0)\n okay=false;\n if (token.compareTo(\"my\")==0)\n okay=false;\n if (token.compareTo(\"neither\")==0)\n okay=false;\n if (token.compareTo(\"no\")==0)\n okay=false;\n if (token.compareTo(\"nor\")==0)\n okay=false;\n if (token.compareTo(\"not\")==0)\n okay=false;\n if (token.compareTo(\"of\")==0)\n okay=false;\n if (token.compareTo(\"off\")==0)\n okay=false;\n if (token.compareTo(\"often\")==0)\n okay=false;\n if (token.compareTo(\"on\")==0)\n okay=false;\n if (token.compareTo(\"only\")==0)\n okay=false;\n if (token.compareTo(\"or\")==0)\n okay=false;\n if (token.compareTo(\"other\")==0)\n okay=false;\n if (token.compareTo(\"our\")==0)\n okay=false;\n if (token.compareTo(\"own\")==0)\n okay=false;\n if (token.compareTo(\"rather\")==0)\n okay=false;\n if (token.compareTo(\"said\")==0)\n okay=false;\n if (token.compareTo(\"say\")==0)\n okay=false;\n if (token.compareTo(\"says\")==0)\n okay=false;\n if (token.compareTo(\"she\")==0)\n okay=false;\n if (token.compareTo(\"should\")==0)\n okay=false;\n if (token.compareTo(\"since\")==0)\n okay=false;\n if (token.compareTo(\"so\")==0)\n okay=false;\n if (token.compareTo(\"some\")==0)\n okay=false;\n if (token.compareTo(\"than\")==0)\n okay=false;\n if (token.compareTo(\"that\")==0)\n okay=false;\n if (token.compareTo(\"the\")==0)\n okay=false;\n if (token.compareTo(\"their\")==0)\n okay=false;\n if (token.compareTo(\"them\")==0)\n okay=false;\n if (token.compareTo(\"then\")==0)\n okay=false;\n if (token.compareTo(\"there\")==0)\n okay=false;\n if (token.compareTo(\"these\")==0)\n okay=false;\n if (token.compareTo(\"they\")==0)\n okay=false;\n if (token.compareTo(\"this\")==0)\n okay=false;\n if (token.compareTo(\"tis\")==0)\n okay=false;\n if (token.compareTo(\"to\")==0)\n okay=false;\n if (token.compareTo(\"too\")==0)\n okay=false;\n if (token.compareTo(\"twas\")==0)\n okay=false;\n if (token.compareTo(\"us\")==0)\n okay=false;\n if (token.compareTo(\"wants\")==0)\n okay=false;\n if (token.compareTo(\"was\")==0)\n okay=false;\n if (token.compareTo(\"we\")==0)\n okay=false;\n if (token.compareTo(\"were\")==0)\n okay=false;\n if (token.compareTo(\"what\")==0)\n okay=false;\n if (token.compareTo(\"when\")==0)\n okay=false;\n if (token.compareTo(\"where\")==0)\n okay=false;\n if (token.compareTo(\"which\")==0)\n okay=false;\n if (token.compareTo(\"while\")==0)\n okay=false;\n if (token.compareTo(\"who\")==0)\n okay=false;\n if (token.compareTo(\"whom\")==0)\n okay=false;\n if (token.compareTo(\"why\")==0)\n okay=false;\n if (token.compareTo(\"will\")==0)\n okay=false;\n if (token.compareTo(\"with\")==0)\n okay=false;\n if (token.compareTo(\"would\")==0)\n okay=false;\n if (token.compareTo(\"yet\")==0)\n okay=false;\n if (token.compareTo(\"you\")==0)\n okay=false;\n if (token.compareTo(\"your\")==0)\n okay=false;\n \n //Stemming process\n if(okay){\n s.add(token.toCharArray(),token.length());\n s.stem();\n token = s.toString();\n }\n \n //to make sure there are no duplicates\n if (tokenList.contains(token))\n okay = false;\n \n //Finalizing tokens\n if (okay)\n tokenList.add(token);\n \n\n }\n //System.out.println(i);\n System.out.println(tokenList.size());\n System.out.println(tokenList);\n readFile.close();\n \n Scanner readFile2 = new Scanner(new File(\"sentences.txt\"));\n \n \n //intializing TDMatrix\n int[][] tdm = new int[46][tokenList.size()];\n int i = 0;\n int j = 0;\n \n while (i<46){\n j=0;\n while (j < tokenList.size()){\n tdm[i][j]=0;\n j++;\n }\n i++;\n }\n \n String str;\n i=0;\n while (readFile2.hasNextLine()) {\n str=readFile2.nextLine();\n \n j=0;\n while (j<tokenList.size()){\n while ((str.contains(tokenList.get(j)))){\n tdm[i][j]++;\n str = str.replaceFirst(tokenList.get(j), \"***\");\n }\n j++;\n }\n \n i++;\n }\n \n i=0;\n while (i<46){\n j=0;\n while (j<tokenList.size()){\n System.out.print(tdm[i][j] + \" \");\n j++;\n }\n System.out.println(\"\");\n i++;\n }\n \n readFile.close();\n }",
"private void generateIdfOutput()\n{\n getValidWords();\n scanDocuments();\n outputResults();\n}",
"@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 }",
"public static void main(String[] args) throws DocumentException, IOException {\n \t\n// // step 1\n// Document document = new Document();\n \n // step 1: creation of the document with a certain size and certain margins\n Document document = new Document(PageSize.A4, 50, 50, 50, 50);\n \n // step 2: create a writer (we have many type of writer, eg HtmlWriter, PdfWriter)\n PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(RESULT));\n \n /* step 3: BEFORE open the document we add some meta information to the document (that properties can be viewed with adobe reader or right click-properties)\n * they don't appear in the document view\n */\n document.addAuthor(\"Author Test\"); \n document.addSubject(\"This is the result of a Test.\"); \n \n // step 4\n document.open();\n \n //The com.itextpdf.text.Image is used to add images to IText PDF documents\n Image image1 = Image.getInstance(\"src/main/resources/sms.png\");\n document.add(image1);\n \n // step 5\n /*\n access at the content under the new pdf document just created (ie the writer object that i can control/move)\n PdfContentByte is the object that contains the text to write and the content of a page (it offer the methods to add content to a page)\n */\n PdfContentByte canvas = writer.getDirectContentUnder();\n \n //Sets the compression level to be used for streams written by the writer.\n writer.setCompressionLevel(0);\n canvas.saveState(); \n canvas.beginText(); \n //move the writer to tha X,Y position\n canvas.moveText(360, 788); \n canvas.setFontAndSize(BaseFont.createFont(), 12);\n \n Rectangle rectangle = new Rectangle(400, 300);\n rectangle.setBorder(2);\n document.add(rectangle);\n \n /* \n Writes something to the direct content using a convenience method\n A Phrase is a series of Chunks (A Chunk is the smallest significant part of text that can be added to a document)\n \n Conclusion: A chunk is a String with a certain Font ---> A Phrase is a series of Chunk\n Both Chunck and Font has a Font field (but if a Chunk haven't a Font uses the one of the Phrase that own it)\n */\n \n //------- Two modes to set a Phrase: --------\n \n //mode 1) set the phrase directly without a separate chunk object\n Phrase hello = new Phrase(\"Hello World3\");\n document.add(hello);\n \n //mode 2) create before a chunk, adjust it and after assign it to a Phrase(s) \n Chunk chunk2 = new Chunk(\"Setting the Font\", FontFactory.getFont(\"dar-black\"));\n chunk2.setUnderline(0.5f, -1.5f);\n \n Phrase p1 = new Phrase(chunk2);\n document.add(p1); \n \n canvas.showText(\"Hello sms\"); \n canvas.endText(); \n canvas.restoreState(); \n \n document.add(Chunk.NEWLINE);\n \n //i chunk posso aggiungerli solo tramite l'oggetto Document ?\n Chunk chunk = new Chunk(\"I'm a chunk\");\n chunk.setBackground(BaseColor.GRAY, 1f, 0.5f, 1f, 1.5f);\n document.add(chunk);\n \n /*\n * A Paragraph is a series of Chunks and/or Phrases, has the same qualities of a Phrase, but also some additional layout-parameters\n * A paragraph is a sub-section in the document. After each Paragraph a CRLF is added\n */\n Paragraph paragraph = new Paragraph(\"A:\\u00a0\");\n Chunk chunk1 = new Chunk(\"I'm a chunk1\");\n paragraph.add(chunk1);\n paragraph.setAlignment(Element.ALIGN_JUSTIFIED);\n document.add(paragraph);\n \n \n //----- Add a table to the document ------\n \n //A cell in a PdfPTable\n PdfPCell cell;\n \n PdfPTable table = new PdfPTable(2); //in argument vis the number of column\n table.setWidths(new int[]{ 1, 2 }); //the width of the first and second cell. The number of element in the array must be equal at the number of column\n \n table.addCell(\"Name:\");\n cell = new PdfPCell();\n //We can attach event at the cell\n //cell.setCellEvent(new TextFields(1));\n table.addCell(cell);\n \n table.addCell(\"Loginname:\");\n cell = new PdfPCell();\n //cell.setCellEvent(new TextFields(2));\n table.addCell(cell);\n \n table.addCell(\"Password:\");\n cell = new PdfPCell(); \n table.addCell(cell);\n \n table.addCell(\"Reason:\");\n cell = new PdfPCell(); \n cell.setFixedHeight(60);\n table.addCell(cell);\n \n document.add(table);\n \n //add an horizontal line\n LineSeparator ls = new LineSeparator(); \n ls.setLineWidth(0);\n document.add(new Chunk(ls));\n \n Anchor pdfRef = new Anchor(\"http://www.java2s.com\");\n document.add(pdfRef);\n \n // step 5\n document.close();\n }",
"public String getTranslation()\n {\n StringBuilder aminoAcid = new StringBuilder();\n Map<String, String> codToAa = Map.ofEntries(\n entry(\"ATA\", \"I\"), entry(\"ATC\", \"I\"), entry(\"ATT\", \"I\"), entry(\"ATG\", \"M\"),\n entry(\"ACA\", \"T\"), entry(\"ACC\", \"T\"), entry(\"ACG\", \"T\"), entry(\"ACT\", \"T\"),\n entry(\"AAC\", \"N\"), entry(\"AAT\", \"N\"), entry(\"AAA\", \"K\"), entry(\"AAG\", \"K\"),\n entry(\"AGC\", \"S\"), entry(\"AGT\", \"S\"), entry(\"AGA\", \"R\"), entry(\"AGG\", \"R\"),\n entry(\"CTA\", \"L\"), entry(\"CTC\", \"L\"), entry(\"CTG\", \"L\"), entry(\"CTT\", \"L\"),\n entry(\"CCA\", \"P\"), entry(\"CCC\", \"P\"), entry(\"CCG\", \"P\"), entry(\"CCT\", \"P\"),\n entry(\"CAC\", \"H\"), entry(\"CAT\", \"H\"), entry(\"CAA\", \"Q\"), entry(\"CAG\", \"Q\"),\n entry(\"CGA\", \"R\"), entry(\"CGC\", \"R\"), entry(\"CGG\", \"R\"), entry(\"CGT\", \"R\"),\n entry(\"GTA\", \"V\"), entry(\"GTC\", \"V\"), entry(\"GTG\", \"V\"), entry(\"GTT\", \"V\"),\n entry(\"GCA\", \"A\"), entry(\"GCC\", \"A\"), entry(\"GCG\", \"A\"), entry(\"GCT\", \"A\"),\n entry(\"GAC\", \"D\"), entry(\"GAT\", \"D\"), entry(\"GAA\", \"E\"), entry(\"GAG\", \"E\"),\n entry(\"GGA\", \"G\"), entry(\"GGC\", \"G\"), entry(\"GGG\", \"G\"), entry(\"GGT\", \"G\"),\n entry(\"TCA\", \"S\"), entry(\"TCC\", \"S\"), entry(\"TCG\", \"S\"), entry(\"TCT\", \"S\"),\n entry(\"TTC\", \"F\"), entry(\"TTT\", \"F\"), entry(\"TTA\", \"L\"), entry(\"TTG\", \"L\"),\n entry(\"TAC\", \"Y\"), entry(\"TAT\", \"Y\"), entry(\"TAA\", \"_\"), entry(\"TAG\", \"_\"),\n entry(\"TGC\", \"C\"), entry(\"TGT\", \"C\"), entry(\"TGA\", \"_\"), entry(\"TGG\", \"W\")\n );\n try\n {\n for (int i = 0; i < this.sequence.length(); i += 3)\n {\n aminoAcid.append(codToAa.get(this.sequence.substring(i, i + 3)));\n }\n }\n catch (StringIndexOutOfBoundsException ignored)\n {\n }\n return aminoAcid.toString();\n }",
"public static void main(String[] args) {\n WriteDocx wd = new WriteDocx();\n String kalimat = \"Just the thought of another day\\n\"\n + \"How did we end up this way\\n\"\n + \"What did we do wrong?\\n\"\n + \"God\\n\"\n + \"\\n\"\n + \"Even though the days go on\\n\"\n + \"So far, so far away from\\n\"\n + \"It seems so close\\n\"\n + \"\\n\"\n + \"Always weighing on my shoulder\\n\"\n + \"A time like no other\\n\"\n + \"It all changed on that day\\n\"\n + \"Sadness and so much pain\\n\"\n + \"\\n\"\n + \"You can touch the sorrow here\\n\"\n + \"I don’t know what to blame\\n\"\n + \"I just watch and watch again\\n\"\n + \"O...\\n\"\n + \"\\n\"\n + \"Even though the days go on\\n\"\n + \"So far, so far away from\\n\"\n + \"It seems so close\\n\"\n + \"\\n\"\n + \"Even though the days go on\\n\"\n + \"So far, so far away from\\n\"\n + \"It seems so close\\n\"\n + \"\\n\"\n + \"What did it leave behind?\\n\"\n + \"What did it take from us and wash away?\\n\"\n + \"It may be long\\n\"\n + \"But with our hearts start a new\\n\"\n + \"And keep it up and not give up\\n\"\n + \"With our heads held high\\n\"\n + \"\\n\"\n + \"You have seen hell and made it back again\\n\"\n + \"How to forget? We can’t forget\\n\"\n + \"The lives that were lost along the way\\n\"\n + \"And then you realize that wherever you go\\n\"\n + \"There you are\\n\"\n + \"Time won’t stop\\n\"\n + \"So we keep moving on\\n\"\n + \"\\n\"\n + \"Yesterday’s night turns to light\\n\"\n + \"Tomorrow’s night returns to light\\n\"\n + \"O... Be the light\\n\"\n + \"\\n\"\n + \"Always weighing on my shoulder\\n\"\n + \"A time like no other\\n\"\n + \"It all changed on that day\\n\"\n + \"Sadness and so much pain\\n\"\n + \"\\n\"\n + \"Anyone can close their eyes\\n\"\n + \"Pretend that nothing is wrong\\n\"\n + \"Open your eyes\\n\"\n + \"And look for light\\n\"\n + \"O...\\n\"\n + \"\\n\"\n + \"What did it leave behind?\\n\"\n + \"What did it take from us and wash away?\\n\"\n + \"It may be long\\n\"\n + \"But with our hearts start a new\\n\"\n + \"And keep it up and not give up\\n\"\n + \"With our heads held high\\n\"\n + \"\\n\"\n + \"Yeah, yeah...\\n\"\n + \"\\n\"\n + \"You have seen hell and made it back again\\n\"\n + \"How to forget? We can’t forget\\n\"\n + \"The lives that were lost along the way\\n\"\n + \"And then you realize that wherever you go\\n\"\n + \"There you are\\n\"\n + \"Time won’t stop\\n\"\n + \"So we keep moving on\\n\"\n + \"\\n\"\n + \"Yesterday’s night turns to light\\n\"\n + \"Tomorrow’s night returns to light\\n\"\n + \"O... Be the light\\n\"\n + \"\\n\"\n + \"Some days just pass by and\\n\"\n + \"Some days are unforgettable\\n\"\n + \"We can’t choose the reason why\\n\"\n + \"But we can choose what to do from the day after\\n\"\n + \"So with that hope, with that determination\\n\"\n + \"Let’s make tomorrow a brighter and better day\\n\"\n + \"\\n\"\n + \"O...\\n\"\n + \"Yeah...\\n\"\n + \"O...\\n\"\n + \"Yeah... Yeah...\\n\"\n + \"Uh Ooo...\";\n wd.Write(\"BE THE LIGHT\",\"ONE OK ROCK\",kalimat,\"center\",\"D:\\\\test.docx\");\n }",
"public static void main(String[] args) throws Exception\n {\n if (args.length==0 || args[0].equals(\"-h\")){\n System.err.println(\"Tests: call as $0 org1=g1.fa,org2=g2.fa annot.txt 5ss-motif 5ss-boundary 3ss-motif 3ss-boundary\");\n System.err.println(\"Outputs splice site compositions.\");\n System.exit(9);\n }\n \n int arg_idx=0;\n String genome_fa_list = args[arg_idx++];\n String annotation_file = args[arg_idx++];\n int donor_motif_length = Integer.parseInt(args[arg_idx++]);\n int donor_boundary_length = Integer.parseInt(args[arg_idx++]);\n int acceptor_motif_length = Integer.parseInt(args[arg_idx++]);\n int acceptor_boundary_length = Integer.parseInt(args[arg_idx++]);\n\n AnnotatedGenomes annotations = new AnnotatedGenomes();\n List<String> wanted_organisms = annotations.readMultipleGenomes(genome_fa_list);\n annotations.readAnnotations(annotation_file); \n \n SpliceSiteComposition ss5[] = new SpliceSiteComposition[wanted_organisms.size()];\n SpliceSiteComposition ss3[] = new SpliceSiteComposition[wanted_organisms.size()];\n \n for (int org_idx=0; org_idx<wanted_organisms.size(); org_idx++)\n {\n String org = wanted_organisms.get(org_idx);\n System.out.println(\"#SSC organism \"+org);\n \n SpliceSiteComposition don = ss5[org_idx] = new SpliceSiteComposition(donor_motif_length, donor_boundary_length, true);\n SpliceSiteComposition acc = ss3[org_idx] = new SpliceSiteComposition(acceptor_motif_length, acceptor_boundary_length, false);\n\n for (GenePred gene: annotations.getAllAnnotations(org))\n {\n don.countIntronSites(gene);\n acc.countIntronSites(gene);\n\n } // for gene \n \n //don.reportStatistics(System.out);\n //acc.reportStatistics(System.out);\n don.writeData(System.out);\n acc.writeData(System.out);\n \n } // for org\n }",
"@Override\n protected List<Term> segSentence(char[] sentence)\n {\n WordNet wordNetAll = new WordNet(sentence);\n ////////////////生成词网////////////////////\n generateWordNet(wordNetAll);\n ///////////////生成词图////////////////////\n// System.out.println(\"构图:\" + (System.currentTimeMillis() - start));\n if (HanLP.Config.DEBUG)\n {\n System.out.printf(\"粗分词网:\\n%s\\n\", wordNetAll);\n }\n// start = System.currentTimeMillis();\n List<Vertex> vertexList = viterbi(wordNetAll);\n// System.out.println(\"最短路:\" + (System.currentTimeMillis() - start));\n\n if (config.useCustomDictionary)\n {\n if (config.indexMode > 0)\n combineByCustomDictionary(vertexList, this.dat, wordNetAll);\n else combineByCustomDictionary(vertexList, this.dat);\n }\n\n if (HanLP.Config.DEBUG)\n {\n System.out.println(\"粗分结果\" + convert(vertexList, false));\n }\n\n // 数字识别\n if (config.numberQuantifierRecognize)\n {\n mergeNumberQuantifier(vertexList, wordNetAll, config);\n }\n\n // 实体命名识别\n if (config.ner)\n {\n WordNet wordNetOptimum = new WordNet(sentence, vertexList);\n int preSize = wordNetOptimum.size();\n if (config.nameRecognize)\n {\n PersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.translatedNameRecognize)\n {\n TranslatedPersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.japaneseNameRecognize)\n {\n JapanesePersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.placeRecognize)\n {\n PlaceRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.organizationRecognize)\n {\n // 层叠隐马模型——生成输出作为下一级隐马输入\n wordNetOptimum.clean();\n vertexList = viterbi(wordNetOptimum);\n wordNetOptimum.clear();\n wordNetOptimum.addAll(vertexList);\n preSize = wordNetOptimum.size();\n OrganizationRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (wordNetOptimum.size() != preSize)\n {\n vertexList = viterbi(wordNetOptimum);\n if (HanLP.Config.DEBUG)\n {\n System.out.printf(\"细分词网:\\n%s\\n\", wordNetOptimum);\n }\n }\n }\n\n // 如果是索引模式则全切分\n if (config.indexMode > 0)\n {\n return decorateResultForIndexMode(vertexList, wordNetAll);\n }\n\n // 是否标注词性\n if (config.speechTagging)\n {\n speechTagging(vertexList);\n }\n\n return convert(vertexList, config.offset);\n }",
"TableSectionBuilder align(String align);",
"private static String Lemmatize(String strTemp) {\n Properties obj = new Properties();\n obj.setProperty(\"annotators\", \"tokenize, ssplit, pos, lemma\"); //setting the properties although using only for lemmatization purpose but one cannot\n // removed the tokenize ssplit pos arguments\n StanfordCoreNLP pipeObj = new StanfordCoreNLP(obj);\t\t//using stanFord library and creating its object\n Annotation annotationObj;\n annotationObj = new Annotation(strTemp); //creating annotation object and passing the string word\n pipeObj.annotate(annotationObj);\n String finalLemma = new Sentence(strTemp).lemma(0); //we only using the lemma of the passed string Word rest of the features like pos, ssplit, tokenized are ignored\n //although we can use it but tokenization has been done perviously\n //with my own code\n return finalLemma;\n }",
"private static void GenerateBaseline(String path, ArrayList<String> aNgramChar, Hashtable<String, TruthInfo> oTruth, String outputFile, String classValues) {\n FileWriter fw = null;\n int nTerms = 1000;\n \n try {\n fw = new FileWriter(outputFile);\n fw.write(Weka.HeaderToWeka(aNgramChar, nTerms, classValues));\n fw.flush();\n\n ArrayList<File> files = getFilesFromSubfolders(path, new ArrayList<File>());\n\n assert files != null;\n int countFiles = 0;\n for (File file : files)\n {\n System.out.println(\"--> Generating \" + (++countFiles) + \"/\" + files.size());\n try {\n Hashtable<String, Integer> oDocBOW = new Hashtable<>();\n Hashtable<String, Integer> oDocNgrams = new Hashtable<>();\n\n String sFileName = file.getName();\n\n //File fJsonFile = new File(path + \"/\" + sFileName);\n //Get name without extension\n String sAuthor = sFileName.substring(0, sFileName.lastIndexOf('.'));\n\n Scanner scn = new Scanner(file, \"UTF-8\");\n String sAuthorContent = \"\";\n //Reading and Parsing Strings to Json\n while(scn.hasNext()){\n JSONObject tweet= (JSONObject) new JSONParser().parse(scn.nextLine());\n\n String textTweet = (String) tweet.get(\"text\");\n\n sAuthorContent += textTweet + \" \" ;\n\n StringReader reader = new StringReader(textTweet);\n\n NGramTokenizer gramTokenizer = new NGramTokenizer(reader, MINSIZENGRAM, MAXSIZENGRAM);\n CharTermAttribute charTermAttribute = gramTokenizer.addAttribute(CharTermAttribute.class);\n gramTokenizer.reset();\n\n gramTokenizer.reset();\n\n while (gramTokenizer.incrementToken()) {\n String sTerm = charTermAttribute.toString();\n int iFreq = 0;\n if (oDocBOW.containsKey(sTerm)) {\n iFreq = oDocBOW.get(sTerm);\n }\n oDocBOW.put(sTerm, ++iFreq);\n }\n\n gramTokenizer.end();\n gramTokenizer.close();\n }\n \n Features oFeatures = new Features();\n oFeatures.GetNumFeatures(sAuthorContent);\n\n if (oTruth.containsKey(sAuthor)) {\n TruthInfo truth = oTruth.get(sAuthor);\n String sGender = truth.gender.toUpperCase();\n //If gender is unknown, this author is not interesting\n if (sGender.equals(\"UNKNOWN\")) continue;\n String sCountry = truth.country.toUpperCase();\n\n if (classValues.contains(\"MALE\")) {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sGender));\n } else {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sCountry));\n }\n fw.flush();\n }\n\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n }\n }\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n } finally {\n if (fw!=null) { try { fw.close(); } catch (Exception ignored) {} }\n }\n }",
"public String buildSentence() {\n\t\tSentence sentence = new Sentence();\n\t\t\n\t\t//\tLaunch calls to all child services, using Observables \n\t\t//\tto handle the responses from each one:\n\t\tList<Observable<Word>> observables = createObservables();\n\t\t\n\t\t//\tUse a CountDownLatch to detect when ALL of the calls are complete:\n\t\tCountDownLatch latch = new CountDownLatch(observables.size());\n\t\t\n\t\t//\tMerge the 5 observables into one, so we can add a common subscriber:\n\t\tObservable.merge(observables)\n\t\t\t.subscribe(\n\t\t\t\t//\t(Lambda) When each service call is complete, contribute its word\n\t\t\t\t//\tto the sentence, and decrement the CountDownLatch:\n\t\t\t\t(word) -> {\n\t\t\t\t\tsentence.add(word);\n\t\t\t\t\tlatch.countDown();\n\t\t }\n\t\t);\n\t\t\n\t\t//\tThis code will wait until the LAST service call is complete:\n\t\twaitForAll(latch);\n\n\t\t//\tReturn the completed sentence:\n\t\treturn sentence.toString();\n\t}",
"@Test\n public void testSortVariantConsequenceDict() {\n final Map<String, Set<String>> before = new HashMap<>();\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.LOF, \"NOC2L\");\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.LOF, \"KLHL17\");\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.LOF, \"PLEKHN1\");\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.LOF, \"PERM1\");\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.DUP_PARTIAL, \"SAMD11\");\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.LOF, \"HES4\");\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.TSS_DUP, \"ISG15\");\n\n final Map<String, Object> expectedAfter = new HashMap<>();\n expectedAfter.put(GATKSVVCFConstants.DUP_PARTIAL, Arrays.asList(\"SAMD11\"));\n expectedAfter.put(GATKSVVCFConstants.TSS_DUP, Arrays.asList(\"ISG15\"));\n expectedAfter.put(GATKSVVCFConstants.LOF, Arrays.asList(\"HES4\", \"KLHL17\", \"NOC2L\", \"PERM1\", \"PLEKHN1\"));\n\n Assert.assertEquals(SVAnnotateEngine.sortVariantConsequenceDict(before), expectedAfter);\n }",
"@Test\n public void tocSeqNumbering() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // SEQ fields display a count that increments at each SEQ field.\n // These fields also maintain separate counts for each unique named sequence\n // identified by the SEQ field's \"SequenceIdentifier\" property.\n // Insert a SEQ field that will display the current count value of \"MySequence\",\n // after using the \"ResetNumber\" property to set it to 100.\n builder.write(\"#\");\n FieldSeq fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.setResetNumber(\"100\");\n fieldSeq.update();\n\n Assert.assertEquals(\" SEQ MySequence \\\\r 100\", fieldSeq.getFieldCode());\n Assert.assertEquals(\"100\", fieldSeq.getResult());\n\n // Display the next number in this sequence with another SEQ field.\n builder.write(\", #\");\n fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.update();\n\n Assert.assertEquals(\"101\", fieldSeq.getResult());\n\n // Insert a level 1 heading.\n builder.insertBreak(BreakType.PARAGRAPH_BREAK);\n builder.getParagraphFormat().setStyle(doc.getStyles().get(\"Heading 1\"));\n builder.writeln(\"This level 1 heading will reset MySequence to 1\");\n builder.getParagraphFormat().setStyle(doc.getStyles().get(\"Normal\"));\n\n // Insert another SEQ field from the same sequence and configure it to reset the count at every heading with 1.\n builder.write(\"\\n#\");\n fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.setResetHeadingLevel(\"1\");\n fieldSeq.update();\n\n // The above heading is a level 1 heading, so the count for this sequence is reset to 1.\n Assert.assertEquals(\" SEQ MySequence \\\\s 1\", fieldSeq.getFieldCode());\n Assert.assertEquals(\"1\", fieldSeq.getResult());\n\n // Move to the next number of this sequence.\n builder.write(\", #\");\n fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.setInsertNextNumber(true);\n fieldSeq.update();\n\n Assert.assertEquals(\" SEQ MySequence \\\\n\", fieldSeq.getFieldCode());\n Assert.assertEquals(\"2\", fieldSeq.getResult());\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.SEQ.ResetNumbering.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.SEQ.ResetNumbering.docx\");\n\n Assert.assertEquals(4, doc.getRange().getFields().getCount());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence \\\\r 100\", \"100\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence\", \"101\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence \\\\s 1\", \"1\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(3);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence \\\\n\", \"2\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n }",
"public void translate() {\n\t\tif(!init)\r\n\t\t\treturn; \r\n\t\ttermPhraseTranslation.clear();\r\n\t\t// document threshold: number of terms / / 8\r\n//\t\tdocThreshold = (int) (wordKeyList.size() / computeAvgTermNum(documentTermRelation) / 8.0);\r\n\t\t//\t\tuseDocFrequency = true;\r\n\t\tint minFrequency=1;\r\n\t\temBkgCoefficient=0.5;\r\n\t\tprobThreshold=0.001;//\r\n\t\titerationNum = 20;\r\n\t\tArrayList<Token> tokenList;\r\n\t\tToken curToken;\r\n\t\tint j,k;\r\n\t\t//p(w|C)\r\n\r\n\t\tint[] termValues = termIndexList.values;\r\n\t\tboolean[] termActive = termIndexList.allocated;\r\n\t\ttotalCollectionCount = 0;\r\n\t\tfor(k=0;k<termActive.length;k++){\r\n\t\t\tif(!termActive[k])\r\n\t\t\t\tcontinue;\r\n\t\t\ttotalCollectionCount +=termValues[k];\r\n\t\t}\r\n\t\t\r\n\t\t// for each phrase\r\n\t\tint[] phraseFreqKeys = phraseFrequencyIndex.keys;\r\n\t\tint[] phraseFreqValues = phraseFrequencyIndex.values;\r\n\t\tboolean[] states = phraseFrequencyIndex.allocated;\r\n\t\tfor (int phraseEntry = 0;phraseEntry<states.length;phraseEntry++){\r\n\t\t\tif(!states[phraseEntry]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (phraseFreqValues[phraseEntry] < minFrequency)\r\n\t\t\t\tcontinue;\r\n\t\t\ttokenList=genSignatureTranslation(phraseFreqKeys[phraseEntry]); // i is phrase number\r\n\t\t\tfor (j = 0; j <tokenList.size(); j++) {\r\n\t\t\t\tcurToken=(Token)tokenList.get(j);\r\n\t\t\t\tif(termPhraseTranslation.containsKey(curToken.getIndex())){\r\n\t\t\t\t\tIntFloatOpenHashMap old = termPhraseTranslation.get(curToken.getIndex());\r\n\t\t\t\t\tif(old.containsKey(phraseFreqKeys[phraseEntry])){\r\n\t\t\t\t\t\tSystem.out.println(\"aha need correction\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\told.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight()); //phrase, weight\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tIntFloatOpenHashMap newPhrase = new IntFloatOpenHashMap();\r\n\t\t\t\t\tnewPhrase.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight());\r\n\t\t\t\t\ttermPhraseTranslation.put(curToken.getIndex(), newPhrase);\r\n\t\t\t\t}\r\n\t\t\t\t//\t\t\t\toutputTransMatrix.add(i,curToken.getIndex(),curToken.getWeight());\r\n\t\t\t\t//\t\t\t\toutputTransTMatrix.add(curToken.getIndex(), i, curToken.getWeight());\r\n\t\t\t\t//TODO termPhrase exists, create PhraseTerm\r\n\t\t\t}\r\n\t\t\ttokenList.clear();\r\n\t\t}\r\n\r\n\t}",
"java.lang.String getNewSentence();",
"public static void main(String arg[]) {\n \tFile wordListFile = new File(\"WordList.txt\");\r\n \tFile definitionsFile = new File (\"DefinitionsAndSentences.txt\"); \t\r\n \tFile outputFile = new File (\"debug.txt\"); \r\n \t\r\n \tInputStream inputStreamOne;\r\n \tInputStreamReader readerOne;\r\n \tBufferedReader binOne;\r\n \t\r\n \tInputStream inputStreamTwo;\r\n \tInputStreamReader readerTwo;\r\n \tBufferedReader binTwo;\r\n \t\r\n \tOutputStream outputStream;\r\n \tOutputStreamWriter writerTwo;\r\n \tBufferedWriter binThree;\r\n \t \t\r\n \t\r\n \t// Lists to store data to write to database\r\n \tArrayList<TermItem>databaseTermList = new ArrayList<TermItem>();\r\n \tArrayList<DefinitionItem>databaseDefinitionList = new ArrayList<DefinitionItem>();\r\n \tArrayList<SentenceItem>databaseSampleSentenceList = new ArrayList<SentenceItem>();\r\n \t\r\n \t// Create instance to use in main()\r\n \tDictionaryParserThree myInstance = new DictionaryParserThree();\r\n \t\r\n \tint totalTermCounter = 1;\r\n \tint totalDefinitionCounter = 1;\r\n\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tmyInstance.createDatabase();\r\n\t\t\t// Open streams for reading data from both files\r\n\t\t\tinputStreamOne = new FileInputStream(wordListFile);\r\n\t \treaderOne= new InputStreamReader(inputStreamOne);\r\n\t \tbinOne= new BufferedReader(readerOne);\r\n\t \t\r\n\t \tinputStreamTwo = new FileInputStream(definitionsFile);\r\n\t \treaderTwo= new InputStreamReader(inputStreamTwo);\r\n\t \tbinTwo= new BufferedReader(readerTwo);\r\n\t \t\r\n\t \toutputStream = new FileOutputStream(outputFile);\r\n\t \twriterTwo= new OutputStreamWriter(outputStream);\r\n\t \tbinThree= new BufferedWriter(writerTwo);\r\n\r\n\t \tString inputLineTwo;\r\n\t \tString termArray[] = new String[NUM_SEARCH_TERMS];\r\n\t \t\r\n\t \t// Populate string array with all definitions.\r\n\t \tfor (int i = 0; (inputLineTwo = binTwo.readLine()) != null; i++) {\r\n\t\t \t termArray[i] = inputLineTwo; \r\n\t \t}\t \t\r\n\t \t\r\n\t \t// Read each line from the input file (contains top gutenberg words to be used)\r\n\t \tString inputLineOne;\r\n\t \tint gutenbergCounter = 0;\r\n\t \twhile ((inputLineOne = binOne.readLine()) != null) {\r\n\t \t\t\r\n\t \t\t\r\n\t \t\t// Each line contains three or four words. Grab each word inside double brackets.\r\n\t\t \tString[] splitString = (inputLineOne.split(\"\\\\[\\\\[\")); \t\t \t\r\n\t \t\tfor (String stringSegment : splitString) {\r\n\t \t\t\t\r\n\t \t\t\tif (stringSegment.matches((\".*\\\\]\\\\].*\")))\r\n\t \t\t\t{\r\n\t \t\t\t\t// Increment counter to track Gutenberg rating (already from lowest to highest)\r\n\t \t\t\t\tgutenbergCounter++;\r\n\t \t \t\t\r\n\t \t\t\t\tboolean isCurrentTermSearchComplete = false;\r\n\t \t\t \tint lowerIndex = 0;\r\n\t \t\t \tint upperIndex = NUM_SEARCH_TERMS - 1;\r\n\t \t\t \t\r\n\t \t\t \tString searchTermOne = stringSegment.substring(0, stringSegment.indexOf(\"]]\"));\r\n\t \t\t \tsearchTermOne = searchTermOne.substring(0, 1).toUpperCase() + searchTermOne.substring(1);\r\n\t \t\t \t\r\n\t \t\t\t\twhile (!isCurrentTermSearchComplete) {\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\t// Go to halfway point of lowerIndex and upperIndex.\r\n\t \t\t\t\t\tString temp = termArray[(lowerIndex + upperIndex)/2];\r\n\t \t\t\t\t\tString currentTerm = temp.substring(temp.indexOf(\"<h1>\") + 4, temp.indexOf(\"</h1>\"));\r\n\t \t\t\t\t\t\t \t\t\t\t\t\r\n\t \t \t \t\t\t\t\t\r\n\t \t\t\t\t\t// If definition term is lexicographically lower, need to increase lower Index\r\n\t \t\t\t\t\t// and search higher.\r\n\t \t\t\t\t\t// If definition term is lexicographically higher, need decrease upper index\r\n\t \t\t\t\t\t// and search higher.\r\n\t \t\t\t\t\t// If a match is found, need to find first definition, and record each definition\r\n\t \t\t\t\t\t// in case of duplicates.\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\tif (currentTerm.compareTo(searchTermOne) < 0) {\t \t\t\t\t\t\t\r\n\t \t\t\t\t\t\tlowerIndex = (lowerIndex + upperIndex)/2;\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\telse if (currentTerm.compareTo(searchTermOne) > 0) {\r\n\t \t\t\t\t\t\tupperIndex = (lowerIndex + upperIndex)/2; \t\t\t\t\t\t\r\n\t \t\t\t\t\t} \t\t\t\t\t\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\telse {\t\r\n\t \t\t\t\t\t\t// Backtrack row-by-row until we reach the first term in the set. Once we reach the beginning,\r\n\t \t\t\t\t\t\t// cycle through each match in the set and obtain each definition until we reach the an unmatching term.\r\n\r\n\t \t\t\t\t\t\t//else {\r\n\t \t\t\t\t\t\t\tSystem.out.println(searchTermOne);\r\n\t\t \t\t\t\t\t\tint k = (lowerIndex + upperIndex)/2;\r\n\t\t \t\t\t\t\t\tboolean shouldIterateAgain = true;\r\n\t\t \t\t\t\t\t\twhile (shouldIterateAgain) {\r\n\t\t \t\t\t\t\t\t\t\r\n\t\t \t\t\t\t\t\t\tif (k <= 0 || k >= NUM_SEARCH_TERMS) {\r\n\t\t\t \t\t\t\t\t\t\tshouldIterateAgain = false;\r\n\t\t\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\t\t\telse {\r\n\t\t\t\t \t\t\t\t\t\tString current = termArray[k].substring(termArray[k].indexOf(\"<h1>\") + 4, termArray[k].indexOf(\"</h1>\"));\r\n\t\t\t\t \t\t\t\t\t\tString previous = termArray[k - 1].substring(termArray[k - 1].indexOf(\"<h1>\") + 4, termArray[k - 1].indexOf(\"</h1>\"));\r\n\t\t\t\t\t \t\t\t\t\t\r\n\t\t\t\t \t\t\t\t\t\tif (current.compareTo(previous) == 0) {\t\t\t\r\n\t\t\t\t \t\t\t\t\t\t\tk--;\r\n\t\t\t\t \t\t\t\t\t\t}\r\n\t\t\t\t\t \t\t\t\t\telse {\r\n\t\t\t\t\t \t\t\t\t\t\tshouldIterateAgain = false;\r\n\t\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} \r\n\t\t \t\t\t\t\t\tshouldIterateAgain = true;\r\n\t\t \t\t\t\t\t\twhile (shouldIterateAgain) {\r\n\t\t \t\t\t\t\t\t\t\t\t \t\r\n\t\t \t\t\t\t\t\t\t// Used to store data to later pass to DB\r\n\t\t \t\t\t\t\t DictionaryParserThree.TermItem tempTermItem = myInstance.new TermItem();\r\n\r\n\t\t \t\t\t\t\t // Determine unique ID (which will be written to DB later)\r\n\t\t \t\t\t\t\t // Add current term and gutenberg rating.\r\n\t\t \t\t\t\t\t tempTermItem.ID = totalTermCounter;\t\t \t\t\t\t\t \t \t\t\t\t\t \r\n\t\t \t\t\t\t\t \ttempTermItem.theWord = searchTermOne; // same as termArray[k]'s term\r\n\t\t \t\t\t\t\t \r\n\t\t \t\t\t\t\t\t\ttempTermItem.gutenbergRating = gutenbergCounter;\r\n\t\t \t\t\t\t\t\t\tdatabaseTermList.add(tempTermItem);\r\n\t\t \t\t\t\t\t\t\tbinThree.write(\"Term ID \" + tempTermItem.ID + \" \" + tempTermItem.theWord + \" guten rank is \" + tempTermItem.gutenbergRating);\r\n\t\t \t\t\t\t\t\t\tbinThree.newLine();\t\t\t\t\t\t\t\r\n\t\t \t\t\t\t \t\tsplitString = termArray[k].split(\"<def>\");\r\n\t\t \t\t\t\t \t\t\r\n\t\t \t\t\t\t \t\tint m = 0;\r\n\t \t\t\t\t\t \t\tfor (String stringSegment2 : splitString) {\r\n\t \t\t\t\t\t \t\t\tif (stringSegment2.matches(\".*</def>.*\") && m > 0) {\r\n\t \t\t\t\t\t \t\t\t\t\r\n\t \t\t\t\t\t \t\t\t\t// Determine unique ID (which will be written to DB later)\r\n\t \t\t\t\t\t \t\t\t\t// Add definition, as well as term ID it is associated with.\r\n\t \t\t\t\t\t \t\t\t\tDictionaryParserThree.DefinitionItem tempDefinitionItem = myInstance.new DefinitionItem();\r\n\t \t\t\t\t\t \t\t\t\ttempDefinitionItem.ID = totalDefinitionCounter;\r\n\t \t\t\t\t\t \t\t\t\ttempDefinitionItem.theDefinition = stringSegment2.substring(0, stringSegment2.indexOf(\"</def>\"));\r\n\t \t\t\t\t\t\t \t\t\ttempDefinitionItem.termID = totalTermCounter;\r\n\t \t\t\t\t\t\t \t\t\tdatabaseDefinitionList.add(tempDefinitionItem);\r\n\r\n\t \t\t\t\t\t\t \t\t\tint n = 0;\r\n\t \t\t\t\t\t\t \t\t\tString[] splitString2 = (stringSegment2.split(\"<blockquote>\")); \r\n\t \t \t\t\t\t\t \t\tfor (String stringSegment3 : splitString2) {\r\n\t \t \t\t\t\t\t \t\t\tif (stringSegment3.matches(\".*</blockquote>.*\") && n > 0) {\r\n\t \t \t\t\t\t\t \t\t\t\t// Add data which will be added to DB later.\r\n\t \t \t\t\t\t\t \t\t\t\t// Add sample sentence as well as the definition ID it is associated with.\r\n\t \t \t\t\t\t\t \t\t\t\tDictionaryParserThree.SentenceItem tempSentenceItem = myInstance.new SentenceItem();\t\r\n\t \t \t\t\t\t\t \t\t\t\ttempSentenceItem.definitionID = totalDefinitionCounter;\r\n\t \t \t\t\t\t\t \t\t\t\ttempSentenceItem.theSampleSentence = stringSegment3.substring(0, stringSegment3.indexOf(\"</blockquote>\"));\r\n\t \t \t\t\t\t\t \t\t\t\tdatabaseSampleSentenceList.add(tempSentenceItem);\t \t \t\t\t\t\t \t\t\t\t\r\n\t \t \t \t\t\t\t\t \t\t\r\n\t \t \t\t\t\t\t \t\t\t\tbinThree.write(\"Definition is\" + tempDefinitionItem.theDefinition);\r\n\t \t \t\t\t\t\t \t\t\t\tbinThree.newLine();\r\n\t \t \t\t\t\t\t \t\t\t\tbinThree.write(\" and sample sentence is \" + tempSentenceItem.theSampleSentence);\r\n\t \t \t\t \t\t\t\t\t\t\tbinThree.newLine();\t\r\n\t \t \t\t\t\t\t \t\t\t}\r\n\t \t \t\t\t\t\t \t\t\t// Increment counter for split string (for this line's sample sentence)\r\n\t \t \t\t\t\t\t \t\t\tn++;\r\n\t \t \t\t\t\t\t \t\t}\r\n\t \t \t\t\t\t\t \t\ttotalDefinitionCounter++;\r\n\t \t\t\t\t\t \t\t\t}\r\n\t \t\t\t\t\t \t\t\t// Increment counter for split string (for this line's definition)\r\n\t \t\t\t\t \t\t\t\tm++;\r\n\t \t\t\t\t \t\t\t\t\r\n\t \t\t\t\t\t \t\t}\t \t \t\t\t\t\t \t\t\r\n\t \t\t\t\t\t \t\t\t \t\t\t\t\t\t\t\r\n\t\t \t\t\t\t\t\t\ttotalTermCounter++;\r\n\t\t \t\t\t\t\t\t\t\r\n\t\t \t\t\t\t\t\t\t// Compare next definition and see if duplicate exists.\r\n\t\t \t\t\t\t\t\t\t// If so, add to string array.\r\n\t \t\t\t\t\t \t\tif (k < 0 || k >= NUM_SEARCH_TERMS - 1) {\r\n\t\t\t \t\t\t\t\t\t\tshouldIterateAgain = false;\r\n\t\t\t \t\t\t\t\t\t}\r\n\t \t\t\t\t\t \t\telse { \t \t\t\t\t\t \t\t\r\n\t\t\t \t\t\t\t\t\t\tString current = termArray[k].substring(termArray[k].indexOf(\"<h1>\") + 4, termArray[k].indexOf(\"</h1>\"));\r\n\t\t\t\t \t\t\t\t\t\tString next = termArray[k + 1].substring(termArray[k + 1].indexOf(\"<h1>\") + 4, termArray[k + 1].indexOf(\"</h1>\"));\r\n\t\t\t\t\t \t\t\t\t\tif (current.compareTo(next) == 0) {\t\r\n\t\t\t\t \t\t\t\t\t\t\tk++;\r\n\t\t\t\t \t\t\t\t\t\t}\r\n\t\t\t\t \t\t\t\t\t\telse {\r\n\t\t\t\t \t\t\t\t\t\t\tshouldIterateAgain = false;\r\n\t\t\t\t \t\t\t\t\t\t}\r\n\t \t\t\t\t\t \t\t}\r\n\t\t\t \t\t\t\t\t\t//}\t \t\t\t\t\t\t\r\n\t\t \t\t\t\t\t\tisCurrentTermSearchComplete = true;\r\n\t\t \t\t\t\t\t\t\r\n\t \t\t\t\t\t\t}\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\t// If the term does not exist in the database.\r\n\t \t\t\t\t\tif (Math.abs(upperIndex) - Math.abs(lowerIndex) <= 1)\r\n\t \t\t\t\t\t{\r\n \t\t\t\t\t\t\t isCurrentTermSearchComplete = true;\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t}\r\n\t \t\t\t}\r\n\t \t\t} \t \t\t\r\n\t \t}\r\n\t \t\r\n\t \t \t\r\n\t \tSystem.out.println(\"ended search.\");\t\r\n\t \tmyInstance.writeAllItemsToDatabase(databaseTermList, databaseDefinitionList, databaseSampleSentenceList);\t\r\n\t \tSystem.out.println(\"ended write.\");\r\n\t \t\r\n\t \tbinOne.close();\r\n\t \treaderOne.close();\r\n\t \tinputStreamOne.close();\t \t\r\n\t \t\r\n\t \tbinTwo.close();\r\n\t \treaderTwo.close();\r\n\t \tinputStreamTwo.close();\t \t\r\n\t \t\r\n\t \tbinThree.close(); \r\n\t \twriterTwo.close();\r\n\t \toutputStream.close();\r\n\t \tSystem.exit(0);\r\n\r\n\r\n\t \t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \t\r\n }",
"public AlignmentCompareResult getAlignmentEvaluation(Map<String, String> alignmentResult, String repeatInfo) {\n\t\tAlignmentCompareResult alignmentCompareResult = new AlignmentCompareResult();\n\t\tchar correctedChar, artificialChar, originalChar, repeatChar;\n\t\t// getting each key\n\t\tString originalKey = \"\", artificialKey = \"\", correctedKey = \"\";\n\n\t\tfor (String seqKey : alignmentResult.keySet()) {\n\t\t\tif (seqKey.toLowerCase().startsWith(\"r\")) {\n\t\t\t\toriginalKey = seqKey;\n\t\t\t} else if (seqKey.toLowerCase().startsWith(\"a\")) {\n\t\t\t\tartificialKey = seqKey;\n\t\t\t} else {\n\t\t\t\tcorrectedKey = seqKey;\n\t\t\t}\n\n\t\t}\n\t\tint start = getNumberOfHypthens(alignmentResult.get(correctedKey), false);\n\t\tint rightHyphens = getNumberOfHypthens(alignmentResult.get(correctedKey), true);\n\t\t// length is 1 based but extracting is 0 based\n\t\tint end = alignmentResult.get(correctedKey).length() - rightHyphens;\n\n\t\t// variable to calculate efficiency\n\t\tint corIndelSimple = 0;\n\t\tint corMismatchSimple = 0;\n\n\t\tint uncorIndelSimple = 0;\n\t\tint uncorMismatchSimple = 0;\n\n\t\tint introducedIndelSimple = 0;\n\t\tint introducedMismatchSimple = 0;\n\n\t\t// efficiency in other repeats\n\n\t\tint corIndelOther = 0;\n\t\tint corMismatchOther = 0;\n\n\t\tint uncorIndelOther = 0;\n\t\tint uncorMismatchOther = 0;\n\n\t\tint introducedIndelOther = 0;\n\t\tint introducedMismatchOther = 0;\n\n\t\t// efficiency in non repeats\n\n\t\tint corIndelNoRepeat = 0;\n\t\tint corMismatchNoRepeat = 0;\n\n\t\tint uncorIndelNoRepeat = 0;\n\t\tint uncorMismatchNoRepeat = 0;\n\n\t\tint introducedIndelNoRepeat = 0;\n\t\tint introducedMismatchNoRepeat = 0;\n\n\t\t// efficiency overall\n\n\t\tint corIndel = 0; // ref = - and cor = - OR art = - and cor\n\t\t\t\t\t\t\t// == ref\n\t\tint corMismatch = 0; // ref == cor != art and ref == [ACGT]\n\n\t\tint uncorIndel = 0; // ref = - and cor = [ACGT] OR art = -\n\t\t\t\t\t\t\t// and ref = [ACGT]\n\t\tint uncorMismatch = 0; // ref != art == cor\n\n\t\tint introducedIndel = 0; // cor = [ACGT] and ref = - OR cor\n\t\t\t\t\t\t\t\t\t// = - and ref = [ACGT]\n\t\tint introducedMismatch = 0; // ref != cor != art\n\n\t\tif (!repeatInfo.isEmpty()) {\n\t\t\tint repearIterator = getBeginningOfRepeatseq(start, alignmentResult.get(originalKey));\n\t\t\tif(repearIterator > 0){\n\t\t\t\trepearIterator = repearIterator - 1;\n\t\t\t}\n\t\t\t// length is 1 based but extracting is 0 based\n//\t\t\tSystem.out.println(\"===============================\\nsequence name is \"+ correctedKey+\n//\t\t\t\t\t\" length of repeat seq \"+ repeatInfo.length()+\n//\t\t\t\t\t\" length of original seq with hyphens \"+ alignmentResult.get(originalKey).length()+\n//\t\t\t\t\t\" length of original seq after removing hyphens \"+ alignmentResult.get(originalKey).replaceAll(\"-\", \"\").length()+\n//\t\t\t\t\t\" length of corrected \"+ alignmentResult.get(correctedKey).length()+\n//\t\t\t\t\t\" length of artificial \"+ alignmentResult.get(artificialKey).length()+\n//\t\t\t\t\t\" repeat iterator beginning \"+repearIterator+\n//\t\t\t\t\t\" start is \"+start+\n//\t\t\t\t\t\" end is \"+end);\n\t\t\tfor (int i = start; i < end; i++) {\n\t\t\t\t\n\t\t\t\toriginalChar = Character.toLowerCase(alignmentResult.get(originalKey).charAt(i));\n\t\t\t\tartificialChar = Character.toLowerCase(alignmentResult.get(artificialKey).charAt(i));\n\t\t\t\tcorrectedChar = Character.toLowerCase(alignmentResult.get(correctedKey).charAt(i));\n\t\t\t\tif (originalChar != '-')\n\t\t\t\t\trepearIterator++;\n//\t\t\t\tif(repearIterator >= repeatInfo.length()){\n//\t\t\t\t\tSystem.out.println(\"last index of repeat iterator before crash is \"+ repearIterator+\" last index for sequence \"+ i);\n//\t\t\t\t\tSystem.out.println(alignmentResult.get(originalKey));\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ((end -1) == i) {\n\t\t\t\t\trepearIterator--;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\trepeatChar = Character.toLowerCase(repeatInfo.charAt(repearIterator));\n\t\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\trepeatChar = repeatInfo.charAt(repearIterator-1);\n\t\t\t\t\tSystem.out.println(\"an error happened in \"+ correctedKey +\" where all repeat info is \"\n\t\t\t\t\t+repeatInfo.length()+ \" at position \"+repearIterator+\" before the end of sequence at \"+i+\" from total\"+ end);\n\t\t\t\t\trepearIterator--;\n\t\t\t\t}\n\t\t\t\t\n\n\n\t\t\t\t\n//\t\t\t\tif (originalChar == '-'){\n//\t\t\t\trepearIterator = repearIterator;\n//\t\t\t}else {\n//\t\t\t\trepearIterator++;\n//\t\t\t}\n\t\t\t\tswitch (repeatChar) {\n\t\t\t\t// Simple repeat\n\t\t\t\tcase 's':\n\t\t\t\t\tif (correctedChar == artificialChar && correctedChar == originalChar) {\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t} else if (correctedChar == originalChar) {\n\t\t\t\t\t\tif ((artificialChar == '-') || (correctedChar == '-'))\n\t\t\t\t\t\t\tcorIndelSimple++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcorMismatchSimple++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (correctedChar == artificialChar) {\n\t\t\t\t\t\t\tif (correctedChar == '-')\n\t\t\t\t\t\t\t\tuncorMismatchSimple++;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tuncorIndelSimple++;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ((correctedChar == '-') || (originalChar == '-'))\n\t\t\t\t\t\t\t\tintroducedIndelSimple++;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tintroducedMismatchSimple++;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// otHer repeat\n\t\t\t\tcase 'h':\n\t\t\t\t\tif (correctedChar == artificialChar && correctedChar == originalChar) {\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t} else if (correctedChar == originalChar) {\n\t\t\t\t\t\tif ((artificialChar == '-') || (correctedChar == '-'))\n\t\t\t\t\t\t\tcorIndelOther++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcorMismatchOther++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (correctedChar == artificialChar) {\n\t\t\t\t\t\t\tif (correctedChar == '-')\n\t\t\t\t\t\t\t\tuncorMismatchOther++;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tuncorIndelOther++;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ((correctedChar == '-') || (originalChar == '-'))\n\t\t\t\t\t\t\t\tintroducedIndelOther++;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tintroducedMismatchOther++;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// no repeat\n\t\t\t\tdefault:\n\t\t\t\t\tif (correctedChar == artificialChar && correctedChar == originalChar) {\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t} else if (correctedChar == originalChar) {\n\t\t\t\t\t\tif ((artificialChar == '-') || (correctedChar == '-'))\n\t\t\t\t\t\t\tcorIndelNoRepeat++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcorMismatchNoRepeat++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (correctedChar == artificialChar) {\n\t\t\t\t\t\t\tif (correctedChar == '-')\n\t\t\t\t\t\t\t\tuncorMismatchNoRepeat++;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tuncorIndelNoRepeat++;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ((correctedChar == '-') || (originalChar == '-'))\n\t\t\t\t\t\t\t\tintroducedIndelNoRepeat++;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tintroducedMismatchNoRepeat++;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n//\t\t\tSystem.out.println(\"repeat iterator after loop \"+repearIterator);\n\t\t} else {\n\n\t\t\tfor (int i = start; i <= (end - 1); i++) {\n\t\t\t\toriginalChar = Character.toLowerCase(alignmentResult.get(originalKey).charAt(i));\n\t\t\t\tartificialChar = Character.toLowerCase(alignmentResult.get(artificialKey).charAt(i));\n\t\t\t\tcorrectedChar = Character.toLowerCase(alignmentResult.get(correctedKey).charAt(i));\n\n\t\t\t\tif (correctedChar == artificialChar && correctedChar == originalChar) {\n\t\t\t\t\t// do nothing\n\t\t\t\t} else if (correctedChar == originalChar) {\n\t\t\t\t\tif ((artificialChar == '-') || (correctedChar == '-'))\n\t\t\t\t\t\tcorIndel++;\n\t\t\t\t\telse\n\t\t\t\t\t\tcorMismatch++;\n\t\t\t\t} else {\n\t\t\t\t\tif (correctedChar == artificialChar) {\n\t\t\t\t\t\tif (correctedChar == '-')\n\t\t\t\t\t\t\tuncorMismatch++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tuncorIndel++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((correctedChar == '-') || (originalChar == '-'))\n\t\t\t\t\t\t\tintroducedIndel++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tintroducedMismatch++;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\talignmentCompareResult.setStart(start);\n\t\talignmentCompareResult.setEnd(end);\n\n\t\talignmentCompareResult.setCorIndel(corIndel);\n\t\talignmentCompareResult.setCorMismatch(corMismatch);\n\t\talignmentCompareResult.setUncorIndel(uncorIndel);\n\t\talignmentCompareResult.setUncorMismatch(uncorMismatch);\n\t\talignmentCompareResult.setIntroducedIndel(introducedIndel);\n\t\talignmentCompareResult.setIntroducedMismatch(introducedMismatch);\n\n\t\talignmentCompareResult.setCorIndelNoRepeat(corIndelNoRepeat);\n\t\talignmentCompareResult.setCorMismatchNoRepeat(corMismatchNoRepeat);\n\t\talignmentCompareResult.setUncorMismatchNoRepeat(uncorMismatchNoRepeat);\n\t\talignmentCompareResult.setUncorIndelNoRepeat(uncorIndelNoRepeat);\n\t\talignmentCompareResult.setIntroducedIndelNoRepeat(introducedIndelNoRepeat);\n\t\talignmentCompareResult.setIntroducedMismatchNoRepeat(introducedMismatchNoRepeat);\n\n\t\talignmentCompareResult.setCorIndelSimple(corIndelSimple);\n\t\talignmentCompareResult.setCorMismatchSimple(corMismatchSimple);\n\t\talignmentCompareResult.setUncorIndelSimple(uncorIndelSimple);\n\t\talignmentCompareResult.setUncorMismatchSimple(uncorMismatchSimple);\n\t\talignmentCompareResult.setIntroducedIndelSimple(introducedIndelSimple);\n\t\talignmentCompareResult.setIntroducedMismatchSimple(introducedMismatchSimple);\n\n\t\talignmentCompareResult.setCorIndelOther(corIndelOther);\n\t\talignmentCompareResult.setCorMismatchOther(corMismatchOther);\n\t\talignmentCompareResult.setUncorIndelOther(uncorIndelOther);\n\t\talignmentCompareResult.setUncorMismatchOther(uncorMismatchOther);\n\t\talignmentCompareResult.setIntroducedIndelOther(introducedIndelOther);\n\t\talignmentCompareResult.setIntroducedMismatchOther(introducedMismatchOther);\n\n\t\treturn alignmentCompareResult;\n\n\t}",
"public static void main(String[] args) throws Exception \n\t{\n\t\tList<String> stopWords = new ArrayList<String>();\n\t\tstopWords = stopWordsCreation();\n\n\n\t\t\n\t\tHashMap<Integer, String> hmap = new HashMap<Integer, String>();\t//Used in tittle, all terms are unique, and any dups become \" \"\n\t\n\t\t\n\t\tList<String> uniqueTerms = new ArrayList<String>();\n\t\tList<String> allTerms = new ArrayList<String>();\n\t\t\t\t\n\t\t\n\t\tHashMap<Integer, String> hmap2 = new HashMap<Integer, String>();\n\t\tHashMap<Integer, String> allValues = new HashMap<Integer, String>();\n\t\tHashMap<Integer, Double> docNorms = new HashMap<Integer, Double>();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMap<Integer, List<String>> postingsFileListAllWords = new HashMap<>();\t\t\n\t\tMap<Integer, List<String>> postingsFileList = new HashMap<>();\n\t\t\n\t\tMap<Integer, List<StringBuilder>> docAndTitles = new HashMap<>();\n\t\tMap<Integer, List<StringBuilder>> docAndAbstract = new HashMap<>();\n\t\tMap<Integer, List<StringBuilder>> docAndAuthors = new HashMap<>();\n\t\t\n\t\t\n\t\tMap<Integer, List<Double>> termWeights = new HashMap<>();\n\t\t\n\t\tList<Integer> docTermCountList = new ArrayList<Integer>();\n\t\t\n\t\tBufferedReader br = null;\n\t\tFileReader fr = null;\n\t\tString sCurrentLine;\n\n\t\tint documentCount = 0;\n\t\tint documentFound = 0;\n\t\tint articleNew = 0;\n\t\tint docTermCount = 0;\n\t\t\n\t\t\n\t\tboolean abstractReached = false;\n\n\t\ttry {\n\t\t\tfr = new FileReader(FILENAME);\n\t\t\tbr = new BufferedReader(fr);\n\n\t\t\t// Continues to get 1 line from document until it reaches the end of EVERY doc\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) \n\t\t\t{\n\t\t\t\t// sCurrentLine now contains the 1 line from the document\n\n\t\t\t\t// Take line and split each word and place them into array\n\t\t\t\tString[] arr = sCurrentLine.split(\" \");\n\n\n\t\t\t\t//Go through the entire array\n\t\t\t\tfor (String ss : arr) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * This section takes the array and checks to see if it has reached a new\n\t\t\t\t\t * document or not. If the current line begins with an .I, then it knows that a\n\t\t\t\t\t * document has just started. If it incounters another .I, then it knows that a\n\t\t\t\t\t * new document has started.\n\t\t\t\t\t */\n\t\t\t\t\t//System.out.println(\"Before anything: \"+sCurrentLine);\n\t\t\t\t\tif (arr[0].equals(\".I\")) \n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\tif (articleNew == 0) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarticleNew = 1;\n\t\t\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse if (articleNew == 1) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarticleNew = 0;\n\t\t\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t//System.out.println(documentFound);\n\t\t\t\t\t\t//count++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/* This section detects that after a document has entered,\n\t\t\t\t\t * it has to gather all the words contained in the title \n\t\t\t\t\t * section.\n\t\t\t\t\t */\n\t\t\t\t\tif (arr[0].equals(\".T\") ) \n\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// Go to line UNDER .T since that is where tittle is located\n\t\t\t\t\t\t//sCurrentLine = br.readLine();\n\t\t\t\t\t\tdocAndTitles.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\t\t\tStringBuilder title = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".B|.A|.N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\t\t/* In this section, there are 2 lists being made. One list\n\t\t\t\t\t\t\t * is for all the unique words in every title in the document (hmap).\n\t\t\t\t\t\t\t * Hmap contains all unique words, and anytime a duplicate word is \n\t\t\t\t\t\t\t * found, it is replaced with an empty space in the map.\n\t\t\t\t\t\t\t * All Values \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\t\t\t\t//postingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\t\t\t//postingsFileList.get(documentFound - 1).add(term2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"current line: \"+sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] tittle = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (tittle[0].equals(\".W\") )\n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\tabstractReached = true;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttitle.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (String tittleWords : tittle)\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\ttittleWords = tittleWords.toLowerCase();\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'{}*|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'*{}|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'{}*|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\t//System.out.println(tittleWords);\n\t\t\t\t\t\t\t\tif (hmap.containsValue(tittleWords)) \n\t\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, \" \");\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\tallTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tallTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\tif (!(uniqueTerms.contains(tittleWords)))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif ((stopWordsSetting && !(stopWords.contains(tittleWords))))\n\t\t\t\t\t\t\t\t\t\t\tuniqueTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//docAndTitles.get(documentCount).add(\" \");\n\t\t\t\t\t\t\ttitle.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Title: \"+title);\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\tdocAndTitles.get(documentFound).add(title);\n\t\t\t\t\t\t//System.out.println(\"Done!: \"+ docAndTitles);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (arr[0].equals(\".A\") ) \n\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// Go to line UNDER .T since that is where tittle is located\n\t\t\t\t\t\t//sCurrentLine = br.readLine();\n\t\t\t\t\t\tdocAndAuthors.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\t\t\tStringBuilder author = new StringBuilder();\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\twhile ( !(sCurrentLine = br.readLine()).matches(\".N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* In this section, there are 2 lists being made. One list\n\t\t\t\t\t\t\t * is for all the unique words in every title in the document (hmap).\n\t\t\t\t\t\t\t * Hmap contains all unique words, and anytime a duplicate word is \n\t\t\t\t\t\t\t * found, it is replaced with an empty space in the map.\n\t\t\t\t\t\t\t * All Values \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\t\t\t\t//postingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\t\t\t//postingsFileList.get(documentFound - 1).add(term2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"current line: \"+sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] tittle = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (tittle[0].equals(\".W\") )\n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\tabstractReached = true;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tauthor.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//docAndTitles.get(documentCount).add(\" \");\n\t\t\t\t\t\t\tauthor.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Title: \"+title);\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\tdocAndAuthors.get(documentFound).add(author);\n\t\t\t\t\t\t//System.out.println(\"Done!: \"+ docAndTitles);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/* Since there may or may not be an asbtract after\n\t\t\t\t\t * the title, we need to check what the next section\n\t\t\t\t\t * is. We know that every doc has a publication date,\n\t\t\t\t\t * so it can end there, but if there is no abstract,\n\t\t\t\t\t * then it will keep scanning until it reaches the publication\n\t\t\t\t\t * date. If abstract is empty (in tests), it will also finish instantly\n\t\t\t\t\t * since it's blank and goes straight to .B (the publishing date).\n\t\t\t\t\t * Works EXACTLY like Title \t\t \n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (abstractReached) \n\t\t\t\t\t{\t\n\t\t\t\t\t\t//System.out.println(\"\\n\");\n\t\t\t\t\t\t//System.out.println(\"REACHED ABSTRACT and current line is: \" +sCurrentLine);\n\t\t\t\t\t\tdocAndAbstract.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\tStringBuilder totalAbstract = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".T|.I|.A|.N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tString[] abstaract = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (abstaract[0].equals(\".B\") )\n\t\t\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\t\t\tabstractReached = false;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttotalAbstract.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] misc = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tfor (String miscWords : misc) \n\t\t\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\tmiscWords = miscWords.toLowerCase(); \n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|?{}!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\t\t\n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\t\t\n\t\t\t\t\t\t\t\t//System.out.println(miscWords);\n\t\t\t\t\t\t\t\tif (hmap.containsValue(miscWords)) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, \" \");\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tallTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tallTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tif (!(uniqueTerms.contains(miscWords)))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif ((stopWordsSetting && !(stopWords.contains(miscWords))))\n\t\t\t\t\t\t\t\t\t\t\tuniqueTerms.add(miscWords);\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\tdocumentCount++;\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\ttotalAbstract.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocAndAbstract.get(documentFound).add(totalAbstract);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t//Once article is found, we enter all of of it's title and abstract terms \n\t\t\t\tif (articleNew == 0) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tdocumentFound = documentFound - 1;\n\t\t\t\t\t//System.out.println(\"Words found in Doc: \" + documentFound);\n\t\t\t\t\t//System.out.println(\"Map is\" +allValues);\n\t\t\t\t\tSet set = hmap.entrySet();\n\t\t\t\t\tIterator iterator = set.iterator();\n\n\t\t\t\t\tSet set2 = allValues.entrySet();\n\t\t\t\t\tIterator iterator2 = set2.iterator();\n\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tpostingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\tpostingsFileListAllWords.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tMap.Entry mentry = (Map.Entry) iterator.next();\n\t\t\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// (\"Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// );\n\t\t\t\t\t\tString term = mentry.getValue().toString();\n\t\t\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\t\t\tpostingsFileList.get(documentFound - 1).add(term);\n\t\t\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t\t\tdocTermCount++;\n\t\t\t\t\t}\n\t\t\t\t\t// \"BEFORE its put in, this is what it looks like\" + hmap);\n\t\t\t\t\thmap2.putAll(hmap);\n\t\t\t\t\thmap.clear();\n\t\t\t\t\tarticleNew = 1;\n\n\t\t\t\t\tdocTermCountList.add(docTermCount);\n\t\t\t\t\tdocTermCount = 0;\n\n\t\t\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\t\t\tMap.Entry mentry2 = (Map.Entry) iterator2.next();\n\t\t\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// (\"Value2 is: \" + mentry2.getValue());\n\t\t\t\t\t\t// );\n\t\t\t\t\t\tString term = mentry2.getValue().toString();\n\t\t\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\t\t\tpostingsFileListAllWords.get(documentFound - 1).add(term);\n\t\t\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t\t\t// docTermCount++;\n\t\t\t\t\t}\n\n\t\t\t\t\tallValues.clear();\t\t\t\t\t\n\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\n\t\t\t\t\t// \"MEANWHILE THESE ARE ALL VALUES\" + postingsFileListAllWords);\n\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Looking at final doc!\");\n\t\t\t//Final loop for last sets\n\t\t\tSet set = hmap.entrySet();\n\t\t\tIterator iterator = set.iterator();\n\n\t\t\tSet setA = allValues.entrySet();\n\t\t\tIterator iteratorA = setA.iterator();\n\t\t\tpostingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\tpostingsFileListAllWords.put(documentFound - 1, new ArrayList<String>());\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tMap.Entry mentry = (Map.Entry) iterator.next();\n\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t// (\"Value is: \" + mentry.getValue());\n\t\t\t\t// //);\n\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\tString term2 = mentry.getValue().toString();\n\t\t\t\tpostingsFileList.get(documentFound - 1).add(term2);\n\n\t\t\t\tdocTermCount++;\n\t\t\t}\n\t\t\t//System.out.println(\"Done looking at final doc!\");\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Sorting time!\");\n\t\t\twhile (iteratorA.hasNext()) {\n\t\t\t\tMap.Entry mentry2 = (Map.Entry) iteratorA.next();\n\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t// (\"Value2 is: \" + mentry2.getValue());\n\t\t\t\t// //);\n\t\t\t\tString term = mentry2.getValue().toString();\n\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\tpostingsFileListAllWords.get(documentFound - 1).add(term);\n\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t// docTermCount++;\n\t\t\t}\n\n\t\t\thmap2.putAll(hmap);\n\t\t\thmap.clear();\n\t\t\tdocTermCountList.add(docTermCount);\n\t\t\tdocTermCount = 0;\n\n\n\t\t\t\n\t\t\n\t\t\t// END OF LOOKING AT ALL DOCS\n\t\t\t\n\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\n\t\t\t//System.out.println(\"All terms\" +allTerms);\n\t\t\tString[] sortedArray = allTerms.toArray(new String[0]);\n\t\t\tString[] sortedArrayUnique = uniqueTerms.toArray(new String[0]);\n\t\t\t//System.out.println(Arrays.toString(sortedArray));\n\t\t\t\n\t\t\tArrays.sort(sortedArray);\n\t\t\tArrays.sort(sortedArrayUnique);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//Sortings \n\t\t\tSet set3 = hmap2.entrySet();\n\t\t\tIterator iterator3 = set3.iterator();\n\n\t\t\t// Sorting the map\n\t\t\t//System.out.println(\"Before sorting \" +hmap2);\t\t\t\n\t\t\tMap<Integer, String> map = sortByValues(hmap2);\n\t\t\t//System.out.println(\"after sorting \" +map);\n\t\t\t// //\"After Sorting:\");\n\t\t\tSet set2 = map.entrySet();\n\t\t\tIterator iterator2 = set2.iterator();\n\t\t\tint docCount = 1;\n\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\tMap.Entry me2 = (Map.Entry) iterator2.next();\n\t\t\t\t// (me2.getKey() + \": \");\n\t\t\t\t// //me2.getValue());\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(\"Done sorting!\");\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Posting starts \");\n\t\t\t//\"THIS IS START OF DICTIONARTY\" \n\t\t\tBufferedWriter bw = null;\n\t\t\tFileWriter fw = null;\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Start making an array thats big as every doc total \");\n\t\t\tfor (int z = 1; z < documentFound+1; z++)\n\t\t\t{\n\t\t\t\ttermWeights.put(z, new ArrayList<Double>());\n\t\t\t}\n\t\t\t//System.out.println(\"Done making that large array Doc \");\n\t\t\t\n\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\n\t\t\t//System.out.println(\"All terms\" +allTerms)\n\t\t\t//System.out.println(Arrays.toString(sortedArray));\n\t\t\t//System.out.println(Arrays.toString(sortedArrayUnique));\n\t\t\t//System.out.println(uniqueTerms);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//\tSystem.out.println(\"Posting starts \");\n\t\t\t// \tPOSTING FILE STARTS \n\t\t\ttry {\n\t\t\t\t// Posting File\n\t\t\t\t//System.out.println(\"postingsFileListAllWords: \"+postingsFileListAllWords); //Contains every word including Dups, seperated per doc\n\t\t\t\t//System.out.println(\"postingsFileList: \"+postingsFileList); \t\t //Contains unique words, dups are \" \", seperated per doc\n\t\t\t\t//System.out.println(\"postingsFileListAllWords.size(): \" +postingsFileListAllWords.size()); //Total # of docs \n\t\t\t\t//System.out.println(\"Array size: \"+sortedArrayUnique.length);\n\n\t\t\t\tfw = new FileWriter(POSTING);\n\t\t\t\tbw = new BufferedWriter(fw);\n\t\t\t\tString temp = \" \";\n\t\t\t\tDouble termFreq = 0.0;\n\t\t\t\t// //postingsFileListAllWords);\n\t\t\t\tList<String> finalTermList = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\t// //postingsFileList.get(i).size());\n\t\t\t\t\tfor (int j = 0; j < sortedArrayUnique.length; ++j)\t\t\t\t\t // go thru each word, CURRENT TERM\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Term is: \" + sortedArrayUnique[j]);\n\t\t\t\t\t\ttemp = sortedArrayUnique[j];\t\t\t\t\t\n\t\t\t\t\t\tif ((stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!(finalTermList.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//PART TO FIND DOCUMENT FREQ\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint docCountIDF = 0;\n\t\t\t\t\t\t\t//Start here for dictionary \n\t\t\t\t\t\t\tfor (int totalWords = 0; totalWords < sortedArray.length; totalWords++) \t\t\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (temp.compareTo(\" \") == 0 || (stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//EITHER BLANK OR STOPWORD \n\t\t\t\t\t\t\t\t\t//System.out.println(\"fOUND STOP WORD\");\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString temp2 = sortedArray[totalWords];\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Compare: \"+temp+ \" with \" +temp2);\n\t\t\t\t\t\t\t\t\tif (temp.compareTo(temp2) == 0) {\n\t\t\t\t\t\t\t\t\t\t// (temp2+\" \");\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tdocCountIDF++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"Total Number: \" +docCountIDF);\n\t\t\t\t\t\t\t//System.out.println(\"documentFound: \" +documentFound);\n\t\t\t\t\t\t\t//System.out.println(\"So its \" + documentFound + \" dividied by \" +docCountIDF);\n\t\t\t\t\t\t\t//docCountIDF = 1;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble idf = (Math.log10(((double)documentFound/(double)docCountIDF)));\n\t\t\t\t\t\t\t//System.out.println(\"Calculated IDF: \"+idf);\n\t\t\t\t\t\t\tif (idf < 0.0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tidf = 0.0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"IDF is: \" +idf);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"Size of doc words: \" + postingsFileListAllWords.size());\n\t\t\t\t\t\t\tfor (int k = 0; k < postingsFileListAllWords.size(); k++) \t\t//Go thru each doc. Since only looking at 1 term, it does it once per doc\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//System.out.println(\"Current Doc: \" +(k+1));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\ttermFreq = 1 + (Math.log10(Collections.frequency(postingsFileListAllWords.get(k), temp)));\t\t\t\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Freq is: \" +Collections.frequency(postingsFileListAllWords.get(k), temp));\n\t\t\t\t\t\t\t\t\t//System.out.println(termFreq + \": \" + termFreq.isInfinite());\n\t\t\t\t\t\t\t\t\tif (termFreq.isInfinite() || termFreq <= 0)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttermFreq = 0.0;\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t\t\t\t//System.out.println(\"termFreq :\" +termFreq); \n\t\t\t\t\t\t\t\t\t//System.out.println(\"idf: \" +idf);\n\t\t\t\t\t\t\t\t\ttermWeights.get(k+1).add( (idf*termFreq) );\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t\tfinalTermList.add(temp);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//FINALCOUNTER\n\t\t\t\t\t\t//System.out.println(\"Done looking at word: \" +j);\n\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\twhile (true)\n\t\t\t\t {\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Enter a query: \");\n\t\t\t\t\t\n\t \tScanner scanner = new Scanner(System.in);\n\t \tString enterQuery = scanner.nextLine();\n\t \t\n\t \t\n\t\t\t\t\tList<Double> queryWeights = new ArrayList<Double>();\n\t\t\t\t\t\n\t\t\t\t\t// Query turn\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tenterQuery = enterQuery.toLowerCase();\t\t\n\t\t\t\t\tenterQuery = enterQuery.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"]\", \"\");\n\t\t\t\t\t//System.out.println(\"Query is: \" + enterQuery);\n\t\t\t\t\t\n\t\t\t\t\tif (enterQuery.equals(\"exit\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tString[] queryArray = enterQuery.split(\" \");\n\t\t\t\t\tArrays.sort(queryArray);\n\t\t\t\t\t\n\t\t\t\t\t//Find the query weights for each term in vocab\n\t\t\t\t\tfor (int j = 0; j < sortedArrayUnique.length; ++j)\t\t\t\t\t // go thru each word, CURRENT TERM\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Term is: \" + sortedArrayUnique[j]);\n\t\t\t\t\t\ttemp = sortedArrayUnique[j];\t\t\t\t\t\n\t\t\t\t\t\tif ((stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\tint docCountDF = 0;\n\t\t\t\t\t\t//Start here for dictionary \n\t\t\t\t\t\tfor (int totalWords = 0; totalWords < queryArray.length; totalWords++) \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\tif (temp.compareTo(\" \") == 0 || (stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//EITHER BLANK OR STOPWORD\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString temp2 = queryArray[totalWords];\n\t\t\t\t\t\t\t\t//System.out.println(\"Compare: \"+temp+ \" with \" +temp2);\n\t\t\t\t\t\t\t\tif (temp.compareTo(temp2) == 0) {\n\t\t\t\t\t\t\t\t\t// (temp2+\" \");\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocCountDF++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tDouble queryWeight = 1 + (Math.log10(docCountDF));\n\t\t\t\t\t\tif (queryWeight.isInfinite())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tqueryWeight = 0.0;\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tqueryWeights.add(queryWeight);\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Query WEights is: \"+queryWeights);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Finding the norms for DOCS\t\t\t\t\t\n\t\t\t\t\tfor (int norms = 1; norms < documentFound+1; norms++)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble currentTotal = 0.0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int weightsPerDoc = 0; weightsPerDoc < termWeights.get(norms).size(); weightsPerDoc++)\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble square = Math.pow(termWeights.get(norms).get(weightsPerDoc), 2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"Current square: \" + termWeights.get(norms).get(weightsPerDoc));\n\t\t\t\t\t\t\tcurrentTotal = currentTotal + square;\n\t\t\t\t\t\t\t//System.out.println(\"Current total: \" + currentTotal);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"About to square root this: \" +currentTotal);\n\t\t\t\t\t\tdouble root = Math.sqrt(currentTotal);\n\t\t\t\t\t\tdocNorms.put(norms, root);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"All of the docs norms: \"+docNorms);\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Finding the norm for the query\n\t\t\t\t\tdouble currentTotal = 0.0;\t\t\t\t\t\n\t\t\t\t\tfor (int weightsPerDoc = 0; weightsPerDoc < queryWeights.size(); weightsPerDoc++)\n\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tdouble square = Math.pow(queryWeights.get(weightsPerDoc), 2);\n\t\t\t\t\t\tcurrentTotal = currentTotal + square;\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdouble root = Math.sqrt(currentTotal);\n\t\t\t\t\tdouble queryNorm = root; \t\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Query norm \" + queryNorm);\n\t\t\t\t\t\n\t\t\t\t\t//Finding the cosine sim\n\t\t\t\t\t//System.out.println(\"Term Weights \" + termWeights);\n\t\t\t\t\tHashMap<Integer, Double> cosineScore = new HashMap<Integer, Double>();\n\t\t\t\t\tfor (int cosineSim = 1; cosineSim < documentFound+1; cosineSim++)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble total = 0.0;\n\t\t\t\t\t\tfor (int docTerms = 0; docTerms < termWeights.get(cosineSim).size(); docTerms++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble docTermWeight = termWeights.get(cosineSim).get(docTerms);\n\t\t\t\t\t\t\tdouble queryTermWeight = queryWeights.get(docTerms);\n\t\t\t\t\t\t\t//System.out.println(\"queryTermWeight \" + queryTermWeight);\n\t\t\t\t\t\t\t//System.out.println(\"docTermWeight \" + docTermWeight);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttotal = total + (docTermWeight*queryTermWeight);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdouble cosineSimScore = 0.0;\n\t\t\t\t\t\tif (!(total == 0.0 || (docNorms.get(cosineSim) * queryNorm) == 0))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcosineSimScore = total / (docNorms.get(cosineSim) * queryNorm);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcosineSimScore = 0.0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tcosineScore.put(cosineSim, cosineSimScore);\n\t\t\t\t\t}\n\t\t\t\t\tcosineScore = sortByValues2(cosineScore);\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"This is the cosineScores: \" +cosineScore);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"docAndTitles: \"+ docAndTitles);\n\t\t\t\t\tint topK = 0;\n\t\t\t\t\tint noValue = 0;\n\t\t\t\t\tfor (Integer name: cosineScore.keySet())\n\t\t\t\t\t{\n\t\t\t\t\t\tif (topK < 50)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\n\t\t\t\t String key =name.toString();\n\t\t\t\t //String value = cosineScore.get(name).toString(); \n\t\t\t\t if (!(cosineScore.get(name) <= 0))\n\t\t\t\t {\n\t\t\t\t \tSystem.out.println(\"Doc: \"+key);\t\t\t\t \t\t\t\t\t \t\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \tStringBuilder builder = new StringBuilder();\n\t\t\t\t \tfor (StringBuilder value : docAndTitles.get(name)) {\n\t\t\t\t \t builder.append(value);\n\t\t\t\t \t}\n\t\t\t\t \tString text = builder.toString();\t\t\t\t \t\n\t\t\t\t \t//System.out.println(\"Title:\\n\" +docAndTitles.get(name));\n\t\t\t\t \tSystem.out.println(\"Title: \" +text);\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t//System.out.println(\"Authors:\\n\" +docAndAuthors.get(name));\n\t\t\t\t \t\n\t\t\t\t \tif (docAndAuthors.get(name) == null || docAndAuthors.get(name).toString().equals(\"\"))\n\t\t\t\t \t{\n\t\t\t\t \t\tSystem.out.println(\"Authors: N\\\\A\\n\");\n\t\t\t\t \t}\n\t\t\t\t \telse \n\t\t\t\t \t{\t\t\t\t \t\t\t\t\t\t \t\n\t\t\t\t\t \tStringBuilder builder2 = new StringBuilder();\n\t\t\t\t\t \tfor (StringBuilder value : docAndAuthors.get(name)) {\n\t\t\t\t\t \t builder2.append(value);\n\t\t\t\t\t \t}\n\t\t\t\t\t \tString text2 = builder2.toString();\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t\t\t\t \tSystem.out.println(\"Authors found: \" +text2);\n\t\t\t\t \t}\t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t/* ABSTRACT \n\t\t\t\t \tif (docAndAbstract.get(name) == null)\n\t\t\t\t \t{\n\t\t\t\t \t\tSystem.out.println(\"Abstract: N\\\\A\\n\");\n\t\t\t\t \t}\n\t\t\t\t \telse \n\t\t\t\t \t{\t\t\t\t \t\t\t\t\t\t \t\n\t\t\t\t\t \tStringBuilder builder2 = new StringBuilder();\n\t\t\t\t\t \tfor (StringBuilder value : docAndAbstract.get(name)) {\n\t\t\t\t\t \t builder2.append(value);\n\t\t\t\t\t \t}\n\t\t\t\t\t \tString text2 = builder2.toString();\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t\t\t\t \tSystem.out.println(\"Abstract: \" +text2);\n\t\t\t\t \t}\t\n\t\t\t\t \t*/\n\t\t\t\t \t\n\t\t\t\t \tSystem.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t \tnoValue++;\n\t\t\t\t }\n\t\t\t\t topK++;\n\t\t\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\tif (noValue == documentFound)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"No documents contain query!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\ttopK=0;\n\t\t\t\t\tnoValue = 0;\n\t\t\t\t }\n\t\t\t\t\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (bw != null)\n\t\t\t\t\t\tbw.close();\n\n\t\t\t\t\tif (fw != null)\n\t\t\t\t\t\tfw.close();\n\n\t\t\t\t} catch (IOException ex) {\n\n\t\t\t\t\tex.printStackTrace();\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null)\n\t\t\t\t\tbr.close();\n\n\t\t\t\tif (fr != null)\n\t\t\t\t\tfr.close();\n\n\t\t\t} catch (IOException ex) {\n\n\t\t\t\tex.printStackTrace();\n\n\t\t\t}\n\n\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\tint itemCount = uniqueTerms.size();\n\t\t\t//System.out.println(allValues);\n\t\t\tSystem.out.println(\"Total Terms BEFORE STEMING: \" +itemCount);\n\t\t\tSystem.out.println(\"Total Documents \" + documentFound);\n\t\t\t\t\t\t\n\t\t \n\t\t\t \n\t\t\t \n\t\t\t//END OF MAIN\n\t\t}",
"public void PdfCreate() {\n\t\t\n\t\tDocument document = new Document();\n\t\ttry {\n\t\t\tPdfWriter.getInstance(document, new FileOutputStream(outputFileName));\n\t\t\tList<String> lineBlockAsString = new ArrayList<String>();\n\t\t\tint FORMAT = 0;\n\t\t\tint SIZE = 13;\n\t\t\tthis.lineblocksSIZE = 0;\n\t\t\tdocument.open();\n\t\t\t//Read all the Lineblocks and get the Format and Style from each one\n\n\t\t\tfor(LineBlock lineblock : lineBlocks) {\n\t\t\t\tPhrase phrase = new Phrase();\n\t\t\t\t\n\t\t\t\tFORMAT = 0;\n\t\t\t\tSIZE = 13;\n\t\t\t\t\n\t\t\t\tswitch (lineblock.getFormat()) {\n\t\t\t\t\n\t\t\t\t\tcase BOLD:\n\t\t\t\t\t\tFORMAT = Font.BOLD;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase ITALICS:\n\t\t\t\t\t\tFORMAT = Font.ITALIC;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tFORMAT = Font.NORMAL;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tswitch (lineblock.getStyle()) {\n\t\t\t\t\t\n\t\t\t\t\tcase OMITTED: \n\t\t\t\t\t\tFORMAT = Font.UNDEFINED;\n\t\t\t\t\t\tbreak;\t\n\t\t\t\t\tcase H1:\n\t\t\t\t\t\tSIZE = 16;\n\t\t\t\t\t\tFORMAT = Font.BOLD;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase H2:\n\t\t\t\t\t\tSIZE = 16;\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(FORMAT == Font.UNDEFINED) //omit rule\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\t//write inside the outputFileName.pdf based on the input Ruleset\n\t\t\t\tthis.lineblocksSIZE ++;\n\t\t\t\tFont font = new Font(FontFamily.TIMES_ROMAN, SIZE, FORMAT);\n\t\t\t\tlineBlockAsString = lineblock.getLines();\n\t\t\t\tfor(String line : lineBlockAsString) {\n\t\t\t\t\tChunk chunk = new Chunk(line, font);\t\t\t\t\n\t\t\t\t\tphrase.add(chunk);\t\t\t\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tParagraph p = new Paragraph();\n\t\t\t\tp.add(phrase);\n\t\t\t\tdocument.add(p);\n\t\t\t\tdocument.add(Chunk.NEWLINE);\n\t\t\t}\n\t\t} catch (FileNotFoundException | DocumentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tdocument.close();\n\t}",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tModel model = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM_RULE_INF, null );\n\n\t\t// Load ontology 1\n\t\tmodel.read(\"file:///E:/Kuliah/TUGASAKHIR/TugasAkhirLatestFolder/Software/ontologyandmappingsanddatasources/endtoendtest/book1-test1.owl\");\n\n\t\t// Query in ontology 1\n\t\tQueryExecution qe = QueryExecutionFactory.create( QueryFactory.read( \"E:\\\\Kuliah\\\\TUGASAKHIR\\\\TugasAkhirLatestFolder\\\\Software\\\\ontologyandmappingsanddatasources\\\\endtoendtest\\\\book1-query1.sparql\" ), model );\n\t\tResultSet results = qe.execSelect();\n\t\t// PrefixMapping query;\n\t\t// Output query results\t\n\t\t// ResultSetFormatter.out(System.out, results, query);\n\n\t\t// Load ontology 2\n\t\tmodel = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM_RULE_INF, null );\n\t\tmodel.read(\"file:///E:/Kuliah/TUGASAKHIR/TugasAkhirLatestFolder/Software/ontologyandmappingsanddatasources/endtoendtest/book2-test1.owl\");\n\t\t\t\n\t\t// Transform query\n\t\tString transformedQuery = null;\n\t\tString firstQuery = null;\n\t\ttry {\n\t\t InputStream in = new FileInputStream(\"E:/Kuliah/TUGASAKHIR/TugasAkhirLatestFolder/Software/ontologyandmappingsanddatasources/endtoendtest/book1-query1.sparql\");\n\t\t BufferedReader reader = new BufferedReader( new InputStreamReader(in) );\n\t\t String line = null;\n\t\t String queryString = \"\";\n\t\t while ((line = reader.readLine()) != null) {\n\t\t\tqueryString += line + \"\\n\";\n\t\t }\n\t\t firstQuery = queryString;\n\t\t Properties parameters = new Properties();\n\t\t \n\t\t AlignmentParser aparser = new AlignmentParser(0);\n//\t\t Mapping\n\t\t Alignment alu = aparser.parse(\"file:///E:/Kuliah/TUGASAKHIR/TugasAkhirLatestFolder/Software/align-4.9/html/tutorial/tutorial4/bookalignment.rdf\");\n\t\t BasicAlignment al = (BasicAlignment) alu;\n\t\t\ttransformedQuery = ((BasicAlignment)al).rewriteQuery( queryString, parameters );\n//\t\t transformedQuery = ((ObjectAlignment)al).\n\t\t} catch ( Exception ex ) { ex.printStackTrace(); }\n\n\t\t// Query ontology 2\n\t\tSystem.out.println(transformedQuery);\n//\t\tdisplayQueryAnswer( model, QueryFactory.create( transformedQuery ) );\n\t\tqe = QueryExecutionFactory.create( QueryFactory.create( firstQuery ), model );\n\t\tresults = qe.execSelect();\n\t\tSystem.out.println(results);\n\t\t\n\t\t// Output query results\t\n\t\t// ResultSetFormatter.out(System.out, results, query);\n\t}",
"public WordGenerator()\n {\n adjective1a = new ArrayList<String>();\n adjective1b = new ArrayList<String>();\n adjective1c = new ArrayList<String>();\n adjective2a = new ArrayList<String>();\n adjective2b = new ArrayList<String>();\n adjective2c = new ArrayList<String>();\n fillAdjectives();\n noun = \"\";\n adj1 = \"\";\n adj2 = \"\";\n }",
"public void alignment() {\n\t\toptArray = new int[lenA+1][lenB+1];\n\n\t\t//Initializing the array:\n\t\toptArray[0][0] = 0;\n\t\tfor(int i=1;i<=lenA;i++) {\n\t\t\toptArray[i][0] = i*g;\n\t\t}\n\t\tfor(int j=1;j<=lenB;j++) {\n\t\t\toptArray[0][j] = j*g;\n\t\t}\n\n\t\t//Starting the 'recurrsion':\n\t\tint p;\n\t\tString pair;\n\t\tfor(int i=1;i<=lenA;i++) {\n\t\t\tfor(int j=1;j<=lenB;j++) {\n\t\t\t\tpair = wordA.charAt(i-1) + \" \" + wordB.charAt(j-1);\n\t\t\t\tp = penaltyMap.get(pair);\n\t\t\t\toptArray[i][j] = min(p+optArray[i-1][j-1], g+optArray[i-1][j], g+optArray[i][j-1]);\n\t\t\t}\n\t\t}\n\t}",
"public static String form(final ArrayList<String> commands) {\n String output;\n final String latex;\n final String begin = \"\\\\documentclass{article}\" +\n\"\\\\usepackage[english]{babel}\"+\n\"\\\\usepackage[utf8]{inputenc}\"+\n\"\\\\usepackage{fancyhdr}\"+\n\"\\\\pagestyle{fancy}\"+\n\"\\\\fancyhf{}\"+\n\"\\\\rhead{ROberto Ferrari and Mak Fazlic}\"+\n\"\\\\lhead{Latex Converter}\"+\n\"\\\\rfoot{Page \\\\thepage}\" +\n\"\\\\begin{document}\";\n \n final String end = \"\\\\end{document}\";\n \n String middle = \"\";\n \n for (final String str : commands) { \n if (str.contains(\"section\") || str.contains(\"textit\")) {\n middle = middle + str;\n } else {\n middle = middle + \"\\\\[ \" + str + \" \\\\]\"; \n }\n }\n \n try { // try create output.tex\n \n final FileWriter myWriter = new FileWriter(\"output.tex\");\n myWriter.write(begin + middle + end);\n myWriter.close();\n output = \"Succesfully parsed to output.tex\";\n \n } catch (IOException ex) {\n System.out.println(\"An error occurred.\");\n ex.printStackTrace();\n return \"An error occurred.\";\n }\n /*\n final String command = \"pdflatex output.tex\";\n \n try { // try create output.pdf\n final Process process = Runtime.getRuntime().exec(command);\n final BufferedReader reader = new BufferedReader(\n new InputStreamReader(process.getInputStream()));\n String line;\n line = reader.readLine();\n while (line != null) {\n line = reader.readLine();\n }\n reader.close();\n output = \"Succesfully compiled to: output.pdf\";\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n */\n return output;\n }",
"public static void main(String args[]) throws IOException {\n\t File file = new File(\"fdpModification.pdf\");\n\t PDDocument document = PDDocument.load(file);\n\n\t //Retrieving the pages of the document\n\t PDPage page = document.getPage(1);\n\t PDPageContentStream contentStream = new PDPageContentStream(document, page);\n\n\t //Begin the Content stream\n\t contentStream.beginText();\n\t contentStream.moveTextPositionByAmount(7, 105);\n\t contentStream.setFont(PDType1Font.HELVETICA, 12);\n\t contentStream.drawString(\"Normal text and \");\n\t contentStream.setFont(PDType1Font.HELVETICA_BOLD, 12);\n\t contentStream.drawString(\"bold text\");\n\t contentStream.moveTextPositionByAmount(0, -25);\n\t contentStream.setFont(PDType1Font.HELVETICA_OBLIQUE, 12);\n\t contentStream.drawString(\"Italic text and \");\n\t contentStream.setFont(PDType1Font.HELVETICA_BOLD_OBLIQUE, 12);\n\t contentStream.drawString(\"bold italic text\");\n\t contentStream.endText();\n\n\t contentStream.setLineWidth(.5f);\n\n\t contentStream.beginText();\n\t contentStream.moveTextPositionByAmount(7, 55);\n\t contentStream.setFont(PDType1Font.HELVETICA, 12);\n\t contentStream.drawString(\"Normal text and \");\n\t contentStream.appendRawCommands(\"2 Tr\\n\");\n\t contentStream.drawString(\"artificially bold text\");\n\t contentStream.appendRawCommands(\"0 Tr\\n\");\n\t contentStream.moveTextPositionByAmount(0, -25);\n\t contentStream.appendRawCommands(\"1 Tr\\n\");\n\t contentStream.drawString(\"Artificially outlined text\");\n\t contentStream.appendRawCommands(\"0 Tr\\n\");\n\t contentStream.setTextMatrix(1, 0, .2f, 1, 7, 5);\n\t contentStream.drawString(\"Artificially italic text and \");\n\t contentStream.appendRawCommands(\"2 Tr\\n\");\n\t contentStream.drawString(\"bold italic text\");\n\t contentStream.appendRawCommands(\"0 Tr\\n\");\n\t //Setting the font to the Content streamt\n\t contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n\n\t //Setting the position for the line\n\t contentStream.newLineAtOffset(0, 0);\n\n //Setting the leading\n contentStream.setLeading(14.5f);\n\n //Setting the position for the line\n contentStream.newLineAtOffset(25, 725);\n\n String text1 = \"This is an example of adding text to a page in the pdf document. we can add as many lines\";\n String text2 = \"as we want like this using the ShowText() method of the ContentStream class\";\n\n //Adding text in the form of string\n contentStream. showText(text1);\n contentStream.newLine();\n contentStream. showText(text2);\n //Ending the content stream\n contentStream.endText();\n\n System.out.println(\"Content added\");\n\n //Closing the content stream\n contentStream.close();\n\n //Saving the document\n document.save(new File(\"newtou.pdf\"));\n\n //Closing the document\n document.close();\n }",
"public static void relprecision() throws IOException \n\t{\n\t \n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\eclipse64\\\\data\\\\labeled_titles.txt\");\n\t // File fFile = new File(\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelation\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL());\n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\t//trainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tList<String> statements= new ArrayList<String>() ;\n\t\tList<String> notstatements= new ArrayList<String>() ;\n\t\tDouble TPcount = 0.0 ; \n\t\tDouble FPcount = 0.0 ;\n\t\tDouble NonTPcount = 0.0 ;\n\t\tDouble TPcountTot = 0.0 ; \n\t\tDouble NonTPcountTot = 0.0 ;\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tif (title.contains(\"<YES>\") || title.contains(\"<TREAT>\") || title.contains(\"<DIS>\") || title.contains(\"</\"))\n\t\t\t{\n\t\t\t\n\t\t\t\tBoolean TP = false ; \n\t\t\t\tBoolean NonTP = false ;\n\t if (title.contains(\"<YES>\") && title.contains(\"</YES>\"))\n\t {\n\t \t TP = true ; \n\t \t TPcountTot++ ; \n\t \t \n\t }\n\t else\n\t {\n\t \t NonTP = true ; \n\t \t NonTPcountTot++ ; \n\t }\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\ttitle = title.replaceAll(\"<YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<DIS>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</DIS>\", \" \") ;\n\t\t\t\ttitle = title.toLowerCase() ;\n\t\n\t\t\t\tcount++ ; \n\t\n\t\t\t\t// get the goldstandard concepts for current title \n\t\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\t\n\t\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\t\n\t\t\t\t// get the concepts \n\t\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\t\n\t\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,dataset.FILE_NAME_Patterns) ;\n\t\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t\t{\n\t\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelationdisc\") ;\n\t\t\t\t\t\n\t\t\t if (TP )\n\t\t\t {\n\t\t\t \t TPcount++ ; \n\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \t FPcount++ ; \n\t\t\t }\n\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t notstatements.add(title) ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}",
"public void writeDocumentForA(String filename, String path) throws Exception\r\n\t{\n\t\tFile folder = new File(path);\r\n\t\tFile[] listOfFiles = folder.listFiles();\r\n\t \r\n\t \r\n\t \tFileWriter fwText;\r\n\t\tBufferedWriter bwText;\r\n\t\t\r\n\t\tfwText = new FileWriter(\"C:/Users/jipeng/Desktop/Qiang/updateSum/TAC2008/Parag/\"+ filename+\"/\" +\"A.txt\");\r\n\t\tbwText = new BufferedWriter(fwText);\r\n\t\t\r\n\t \tfor ( int i=0; i<listOfFiles.length; i++) {\r\n\t \t\t//String name = listOfFiles[i].getName();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString text = readText(listOfFiles[i].getAbsolutePath());\r\n\t\t\t\r\n\t\t\tFileWriter fwWI = new FileWriter(\"C:/pun.txt\");\r\n\t\t\tBufferedWriter bwWI = new BufferedWriter(fwWI);\r\n\t\t\t\r\n\t\t\tbwWI.write(text);\r\n\t\t\t\r\n\t\t\tbwWI.close();\r\n\t\t\tfwWI.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<List<HasWord>> sentences = MaxentTagger.tokenizeText(new BufferedReader(new FileReader(\"C:/pun.txt\")));\r\n\t\t\t\r\n\t\t\t//System.out.println(text);\r\n\t\t\tArrayList<Integer> textList = new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t\tfor (List<HasWord> sentence : sentences)\r\n\t\t\t {\r\n\t\t\t ArrayList<TaggedWord> tSentence = tagger.tagSentence(sentence);\r\n\t\t\t \r\n\t\t\t for(int j=0; j<tSentence.size(); j++)\r\n\t\t\t {\r\n\t\t\t \t \tString word = tSentence.get(j).value();\r\n\t\t\t \t \t\r\n\t\t\t \t \tString token = word.toLowerCase();\r\n\t\t\t \t \r\n\t\t\t \t \tif(token.length()>2 )\r\n\t\t\t\t \t{\r\n\t\t\t \t\t\t if (!m_EnStopwords.isStopword(token)) \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\t if (word2IdHash.get(token)==null)\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t textList.add(id);\r\n\t\t\t\t\t\t\t\t\t // bwText.write(String.valueOf(id)+ \" \");\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t word2IdHash.put(token, id);\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t allWordsArr.add(token);\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t id++;\r\n\t\t\t\t\t\t\t\t } else\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t \tint wid=(Integer)word2IdHash.get(token);\r\n\t\t\t\t\t\t\t\t \tif(!textList.contains(wid))\r\n\t\t\t\t\t\t\t\t \t\ttextList.add(wid);\r\n\t\t\t\t\t\t\t\t \t//bwText.write(String.valueOf(wid)+ \" \");\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t \t}\r\n\t\t\t \t }\r\n\t\t\t }\r\n\t\t\tCollections.sort(textList);\r\n\t\t \r\n\t\t\tString text2 = valueFromList(textList);\r\n\t\t bwText.write(text2);\r\n\t\t //System.out.println(text2);\r\n\t\t bwText.newLine();\r\n\t\t textList.clear();\r\n\t\t \r\n\t \t}\r\n\t \tbwText.close();\r\n\t fwText.close();\r\n\t}",
"public static void main(String[] args) throws IOException {\n\t String FinalContigWritePath=args[0];\n\t\tString ContigAfterPath=args[1];\n\t\tString ContigSPAdesPath=args[2];\n\t\tString MUMmerFile1=args[3];\n\t\tString MUMmerFile2=args[4];\n\t\tint SizeOfContigAfter=CommonClass.getFileLines(ContigAfterPath)/2;\n\t String ContigSetAfterArray[]=new String[SizeOfContigAfter];\n\t int RealSizeOfContigSetAfter=CommonClass.FastaToArray(ContigAfterPath,ContigSetAfterArray); \n\t System.out.println(\"The real size of ContigSetAfter is:\"+RealSizeOfContigSetAfter);\n\t\t//low.\n\t\tint SizeOfContigSPAdes=CommonClass.getFileLines(ContigSPAdesPath);\n\t String ContigSetSPAdesArray[]=new String[SizeOfContigSPAdes+1];\n\t int RealSizeOfContigSetSPAdes=CommonClass.FastaToArray(ContigSPAdesPath,ContigSetSPAdesArray); \n\t System.out.println(\"The real size of ContigSetSPAdes is:\"+RealSizeOfContigSetSPAdes);\n\t\t//Loading After.\n\t\tint LoadingContigAfterCount=0;\n\t\tString LoadingContigAfterArray[]=new String[RealSizeOfContigSetAfter]; \n\t\tfor(int r=0;r<RealSizeOfContigSetAfter;r++)\n\t\t{\n\t\t\t if(ContigSetAfterArray[r].length()>=64)\n\t\t\t {\n\t\t\t\t LoadingContigAfterArray[LoadingContigAfterCount++]=ContigSetAfterArray[r];\n\t\t\t }\n\t\t}\n\t\tSystem.out.println(\"File After loading process end!\");\n\t\t//Alignment1.\n\t\tint SizeOfMUMmerFile1 = CommonClass.getFileLines(MUMmerFile1);\n\t\tString MUMerArray1[] = new String[SizeOfMUMmerFile1];\n\t\tint RealSizeMUMmer1 = CommonClass.FileToArray(MUMmerFile1, MUMerArray1);\n\t\tSystem.out.println(\"The real size of MUMmer1 is:\" + RealSizeMUMmer1);\n\t\t//Alignment.\n\t\tint SizeOfMUMmerFile2 = CommonClass.getFileLines(MUMmerFile2);\n\t\tString MUMerArray2[] = new String[SizeOfMUMmerFile2];\n\t\tint RealSizeMUMmer2 = CommonClass.FileToArray(MUMmerFile2, MUMerArray2);\n\t\tSystem.out.println(\"The real size of MUMmer2 is:\" + RealSizeMUMmer2);\n\t\t//Get ID1.\n\t\tSet<Integer> hashSet = new HashSet<Integer>();\n\t\tfor(int f=4;f<RealSizeMUMmer1;f++)\n\t\t{\n\t\t\tString[] SplitLine1 = MUMerArray1[f].split(\"\\t|\\\\s+\");\n\t\t\tif(SplitLine1.length==14 && (SplitLine1[13].equals(\"[CONTAINS]\") || SplitLine1[13].equals(\"[BEGIN]\") || SplitLine1[13].equals(\"[END]\")))\n\t\t\t{\n\t\t\t\tString[] SplitLine2 = SplitLine1[11].split(\"_\");\n\t\t\t\tint SPAdes_id = Integer.parseInt(SplitLine2[1]);\n\t\t\t\thashSet.add(SPAdes_id);\n\t\t\t}\n\t\t}\n\t\t//Get ID2.\n\t\tfor(int g=4;g<RealSizeMUMmer2;g++)\n\t\t{\n\t\t\tString[] SplitLine11 = MUMerArray2[g].split(\"\\t|\\\\s+\");\n\t\t\tString[] SplitLine12 = SplitLine11[12].split(\"_\");\n\t\t\tint SPAdes_id = Integer.parseInt(SplitLine12[1]);\n\t\t\thashSet.add(SPAdes_id);\n\t\t}\n\t //Write.\n\t\tint LineNum1=0;\n\t for(int x=0;x<LoadingContigAfterCount;x++)\n\t {\n\t\t\t FileWriter writer1= new FileWriter(FinalContigWritePath+\"contig.AfterMerge.fa\",true);\n\t writer1.write(\">\"+(LineNum1++)+\":\"+LoadingContigAfterArray[x].length()+\"\\n\"+LoadingContigAfterArray[x]+\"\\n\");\n\t writer1.close();\n\t }\n\t //Filter.\n\t\tint CountAdd=0;\n\t\tSet<String> HashSetSave = new HashSet<String>();\n\t for(int k=0;k<RealSizeOfContigSetSPAdes;k++)\n\t {\n\t \tif(!hashSet.contains(k))\n\t \t{\n\t \t\tHashSetSave.add(ContigSetSPAdesArray[k]);\n\t \t}\n\t }\n\t\tSystem.out.println(\"The real size of un-useded contigs is:\" + HashSetSave.size());\n\t\t//Write.\n\t\tIterator<String> it = HashSetSave.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tString SPAdesString = it.next();\n\t\t\tint Flag=1;\n\t\t for(int x=0;x<LoadingContigAfterCount;x++)\n\t\t {\n\t\t \tif((LoadingContigAfterArray[x].length()>=SPAdesString.length())&&(LoadingContigAfterArray[x].contains(SPAdesString)))\n\t\t \t{\n\t\t \t\tFlag=0;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t }\n\t\t\tif(Flag==1)\n\t\t\t{\n\t\t\t\tFileWriter writer = new FileWriter(FinalContigWritePath+\"contig.AfterMerge.fa\",true);\n\t\t\t\twriter.write(\">Add:\"+(LineNum1++)+\"\\n\"+SPAdesString+\"\\n\");\n\t\t\t\twriter.close();\n\t\t\t\tCountAdd++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The real size of add Complementary contigs is:\" + CountAdd);\n\t\tSystem.out.println(\"File write process end!\");\n }",
"private jalview.datamodel.Sequence[] getVamsasAlignment(\n vamsas.objects.simple.Alignment valign)\n {\n vamsas.objects.simple.Sequence[] seqs = valign.getSeqs().getSeqs();\n jalview.datamodel.Sequence[] msa = new jalview.datamodel.Sequence[seqs.length];\n\n for (int i = 0, j = seqs.length; i < j; i++)\n {\n msa[i] = new jalview.datamodel.Sequence(seqs[i].getId(),\n seqs[i].getSeq());\n }\n\n return msa;\n }",
"@Test\r\n public void testToBeOrNotToBe() throws IOException {\r\n System.out.println(\"testing 'To be or not to be' variations\");\r\n String[] sentences = new String[]{\r\n \"to be or not to be\", // correct sentence\r\n \"to ben or not to be\",\r\n \"ro be ot not to be\",\r\n \"to be or nod to bee\"};\r\n\r\n CorpusReader cr = new CorpusReader();\r\n ConfusionMatrixReader cmr = new ConfusionMatrixReader();\r\n SpellCorrector sc = new SpellCorrector(cr, cmr);\r\n for (String s : sentences) {\r\n String output = sc.correctPhrase(s);\r\n System.out.println(String.format(\"Input \\\"%0$s\\\" returned \\\"%1$s\\\"\", s, output));\r\n collector.checkThat(\"input sentence: \" + s + \". \", \"to be or not to be\", IsEqual.equalTo(output));\r\n }\r\n }",
"public static void Pubmed() throws IOException \n\t{\n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\TempDB\\\\PMCxxxx\\\\articals.txt\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL()); \n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\ttrainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\tif (trainset == null )\n\t\t{\n\t\t\ttrainset = new HashMap<String, Map<String,List<String>>>();\n\t\t}\n\t\t\n\t\t\n\t\t/************************************************************************************************/\n\t\t//Map<String, Integer> bagofwords = semantic.getbagofwords(titles) ; \n\t\t//trainxmllabeling(trainset,bagofwords); \n\t\t/************************************************************************************************/\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tModel Sentgraph = sentInfo.graph;\n\t\t\tif (trainset.containsKey(title))\n\t\t\t\tcontinue ; \n\t\t\t//8538\n\t\t\tcount++ ; \n\n\t\t\tMap<String, List<String>> triples = null ;\n\t\t\t// get the goldstandard concepts for current title \n\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\n\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\n\t\t\t// get the concepts \n\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\n\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,FILE_NAME_Patterns) ;\n\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t{\n\t\t\t\tcount1++ ;\n\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\n\t\t\t\tif (count1 == 30)\n\t\t\t\t{\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\Relationdisc1\") ;\n\t\t\t\t\tcount1 = 0 ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\t\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}",
"@Override\n\tprotected Map<Object, Object> rawTextParse(CharSequence text) {\n\n\t\tStanfordCoreNLP pipeline = null;\n\t\ttry {\n\t\t\tpipeline = pipelines.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tAnnotation document = new Annotation(text.toString());\n\t\tpipeline.annotate(document);\n\t\tMap<Object, Object> sentencesMap = new LinkedHashMap<Object, Object>();//maintain sentence order\n\t\tint id = 0;\n\t\tList<CoreMap> sentences = document.get(CoreAnnotations.SentencesAnnotation.class);\n\n\t\tfor (CoreMap sentence : sentences) {\n\t\t\tStringBuilder processedText = new StringBuilder();\n\t\t\tfor (CoreLabel token : sentence.get(CoreAnnotations.TokensAnnotation.class)) {\n\t\t\t\tString word = token.get(CoreAnnotations.TextAnnotation.class);\n\t\t\t\tString lemma = token.get(CoreAnnotations.LemmaAnnotation.class);\n\t\t\t\tString pos = token.get(CoreAnnotations.PartOfSpeechAnnotation.class);\n\t\t\t\t//todo this should really happen after parsing is done, because using lemmas might confuse the parser\n\t\t\t\tif (config().isUseLowercaseEntries()) {\n\t\t\t\t\tword = word.toLowerCase();\n\t\t\t\t\tlemma = lemma.toLowerCase();\n\t\t\t\t}\n\t\t\t\tif (config().isUseLemma()) {\n\t\t\t\t\tword = lemma;\n\t\t\t\t}\n\t\t\t\tprocessedText.append(word).append(POS_DELIMITER).append(lemma).append(POS_DELIMITER).append(pos).append(TOKEN_DELIM);\n //inserts a TOKEN_DELIM at the end too\n\t\t\t}\n\t\t\tsentencesMap.put(id, processedText.toString().trim());//remove the single trailing space\n\t\t\tid++;\n\t\t}\n\t\ttry {\n\t\t\tpipelines.put(pipeline);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn sentencesMap;\n\t}",
"private String computeCorrectedText() {\n String correctedText = getText();\n\n if (getOOVWords() != null && getOOVWords().size() > 0) {\n int diff = 0;\n\n for (OOV oov : getOOVWords()) {\n if (oov.getAnnotation() == Annotation.Variation) {\n if (oov.getStartPosition() == 0) {\n correctedText = oov.getCorrection() + correctedText.substring(oov.getEndPosition() + diff, correctedText.length());\n }else {\n correctedText = correctedText.substring(0, oov.getStartPosition() + diff)\n + oov.getCorrection()\n + correctedText.substring(oov.getEndPosition() + diff, correctedText.length());\n }\n\n diff += oov.getCorrection().length() - oov.getToken().length();\n } \n }\n }\n\n return PostProcess.apply(correctedText);\n }",
"public void setAlignedSequence( Sequence alseq ) {\n\t\tthis.alignedsequence = alseq;\n\t\tif(alseq.id == null) alseq.id = id;\n\t\tif(seq != null) alseq.name = seq.getGroup();\n\t\tif(alseq.group == null) alseq.group = group;\n\t}",
"public void genTestSeq(String path){\n\t\tFeature documents = new Feature();\r\n\t\tdocuments.setName(\"Documents\");\r\n\t\tdocuments.setFeatureType(FeatureType.Mandatory);\r\n\t\t\r\n\t\tFeature video = new Feature();\r\n\t\tvideo.setName(\"Video\");\r\n\t\tvideo.setFeatureType(FeatureType.Optional);\r\n\t\tvideo.setFatherFeature(documents);\r\n\t\t\r\n\t\tFeature image = new Feature();\r\n\t\timage.setName(\"Image\");\r\n\t\timage.setFeatureType(FeatureType.Optional);\r\n\t\timage.setFatherFeature(documents);\r\n\t\t\r\n\t\tFeature text = new Feature();\r\n\t\ttext.setName(\"Text\");\r\n\t\ttext.setFeatureType(FeatureType.Mandatory);\r\n\t\ttext.setFatherFeature(documents);\r\n\t\r\n\t\tFeature showEvents = new Feature();\r\n\t\tshowEvents.setName(\"ShowEvents\");\r\n\t\tshowEvents.setFeatureType(FeatureType.Mandatory);\t\t\r\n\t\t\r\n\t\tFeature allEvents = new Feature();\r\n\t\tallEvents.setName(\"allEvents\");\r\n\t\tallEvents.setFeatureType(FeatureType.Group);\r\n\t\tallEvents.setFatherFeature(showEvents);\r\n\t\t\r\n\t\tFeature current = new Feature();\r\n\t\tcurrent.setName(\"current\");\r\n\t\tcurrent.setFeatureType(FeatureType.Group);\r\n\t\tcurrent.setFatherFeature(showEvents);\r\n\t\t\r\n\t\tFeatureGroup eventsGroup = new FeatureGroup();\r\n\t\teventsGroup.append(allEvents);\r\n\t\teventsGroup.append(current);\r\n\t\teventsGroup.setGroupType(FeatureGroupType.OR_Group);\r\n\t\t\r\n\t\t//DSPL\r\n\t\tDSPL mobilineDspl = new DSPL();\r\n\t\t\t//DSPL features\r\n\t\tmobilineDspl.getFeatures().add(text);\r\n\t\tmobilineDspl.getFeatures().add(video);\r\n\t\tmobilineDspl.getFeatures().add(image);\r\n\t\tmobilineDspl.getFeatures().add(documents);\r\n\t\tmobilineDspl.getFeatures().add(showEvents);\r\n\t\tmobilineDspl.getFeatures().add(current);\r\n\t\tmobilineDspl.getFeatures().add(allEvents);\r\n\t\t\t\r\n\t\t\t//DSPL Initial Configuration - mandatory features and from group features\r\n\t\tmobilineDspl.getInitialConfiguration().add(documents);\r\n\t\tmobilineDspl.getInitialConfiguration().add(text);\r\n\t\tmobilineDspl.getInitialConfiguration().add(image);\r\n\t\tmobilineDspl.getInitialConfiguration().add(video);\r\n\t\tmobilineDspl.getInitialConfiguration().add(showEvents);\r\n\t\tmobilineDspl.getInitialConfiguration().add(allEvents);\r\n\t\t\t//DSPL Feature Groups\r\n\t\tmobilineDspl.getFeatureGroups().add(eventsGroup);\t\t\r\n\t\t\r\n\t\t\r\n\t\t//--------------------------> CONTEXT MODEL <-------------------/\r\n\t\t//GETS FROM FIXTURE\r\n\t\t\r\n\t\t//Context Root\r\n\t\tContextFeature root = new ContextFeature(\"Root Context\");\r\n\t\t\r\n\t\t// Context Propositions\r\n\t\tContextFeature isBtFull = new ContextFeature(\"BtFull\");\r\n\t\tisBtFull.setContextType(ContextType.Group);\r\n\t\tContextFeature isBtNormal = new ContextFeature(\"BtNormal\");\r\n\t\tisBtNormal.setContextType(ContextType.Group);\r\n\t\tContextFeature isBtLow = new ContextFeature(\"BtLow\");\r\n\t\tisBtLow.setContextType(ContextType.Group);\r\n\t\tContextFeature slowNetwork = new ContextFeature(\"slowNetwork\");\r\n\t\tslowNetwork.setContextType(ContextType.Optional);\t\t\r\n\t\t\r\n\t\t//Context Groups\r\n\t\tContextGroup battery = new ContextGroup(\"Baterry\");\r\n\t\tbattery.setType(ContextGroupType.XOR);\r\n\t\tbattery.append(isBtFull);\r\n\t\tbattery.append(isBtNormal);\r\n\t\tbattery.append(isBtLow);\t\t\r\n\t\t\r\n\t\tContextGroup network = new ContextGroup(\"Network\"); // To the interleaving testing\r\n\t\tnetwork.setType(ContextGroupType.NONE);\r\n\t\tnetwork.append(slowNetwork);\t\t\r\n\t\t\r\n\t\t// Adaptation Rules\r\n\t\t\r\n\t\t//Adaptation Rule isBtLow => Video off, Image off\r\n\t\tAdaptationRuleWithCtxFeature rule1 = new AdaptationRuleWithCtxFeature();\r\n\t\tLinkedList<ContextFeature> contextTrigger1 = new LinkedList<ContextFeature>();\r\n\t\tcontextTrigger1.add(isBtLow);\r\n\t\trule1.setContextRequired(contextTrigger1);\r\n\t\t\r\n\t\tLinkedList<Feature> toDeactiveFeatures1 = new LinkedList<Feature>();\r\n\t\ttoDeactiveFeatures1.add(image);\r\n\t\ttoDeactiveFeatures1.add(video);\r\n\t\trule1.setToDeactiveFeatureList(toDeactiveFeatures1);\r\n\t\t\t\r\n\t\t//Adaptation Rule isBtNormal => Video off, Image on\r\n\t\tAdaptationRuleWithCtxFeature rule3 = new AdaptationRuleWithCtxFeature();\r\n\t\tLinkedList<ContextFeature> contextTrigger3 = new LinkedList<ContextFeature>();\r\n\t\tcontextTrigger3.add(isBtNormal);\t\t\r\n\t\trule3.setContextRequired(contextTrigger3);\r\n\t\t\r\n\t\tLinkedList<Feature> toActiveFeature3 = new LinkedList<Feature>();\r\n\t\ttoActiveFeature3.add(image);\r\n\t\trule3.setToActiveFeatureList(toActiveFeature3);\r\n\t\t\r\n\t\tLinkedList<Feature> toDeactiveFeatures3 = new LinkedList<Feature>();\r\n\t\ttoDeactiveFeatures3.add(video);\r\n\t\trule3.setToDeactiveFeatureList(toDeactiveFeatures3);\r\n\t\t\r\n\t\t//Adaptation Rule isBtFull => Video on, Image on\r\n\t\tAdaptationRuleWithCtxFeature rule5 = new AdaptationRuleWithCtxFeature();\r\n\t\tLinkedList<ContextFeature> contextTrigger5 = new LinkedList<ContextFeature>();\r\n\t\tcontextTrigger5.add(isBtFull);\t\t\r\n\t\trule5.setContextRequired(contextTrigger5);\r\n\t\t\r\n\t\tLinkedList<Feature> toActiveFeature5 = new LinkedList<Feature>();\r\n\t\ttoActiveFeature5.add(image);\r\n\t\ttoActiveFeature5.add(video);\r\n\t\trule5.setToActiveFeatureList(toActiveFeature5);\r\n\t\t\r\n\t\t//Adaptation Rule SlowNetwork => allEvents off\r\n\t\tAdaptationRuleWithCtxFeature rule6 = new AdaptationRuleWithCtxFeature();\r\n\t\tLinkedList<ContextFeature> contextTrigger6 = new LinkedList<ContextFeature>();\r\n\t\tcontextTrigger6.add(slowNetwork);\t\t\r\n\t\trule6.setContextRequired(contextTrigger6);\r\n\t\t\r\n\t\tLinkedList<Feature> toDeactiveFeature6 = new LinkedList<Feature>();\r\n\t\ttoDeactiveFeature6.add(allEvents);\t\t\r\n\t\trule6.setToDeactiveFeatureList(toDeactiveFeature6);\r\n\t\t\r\n\t\t// COMO é um OR, se ele desativou o outro, automaticamente ele ativa esse\r\n\t\tLinkedList<Feature> toActiveFeature6 = new LinkedList<Feature>();\r\n\t\ttoActiveFeature6.add(current);\t\t\r\n\t\trule6.setToActiveFeatureList(toActiveFeature6);\r\n\t\t\r\n\t\t//Context Model\r\n\t\tCFM ctxModel = new CFM();\r\n\t\tctxModel.setContextRoot(root);\r\n\t\tctxModel.getContextGroups().add(battery);\r\n\t\tctxModel.getContextGroups().add(network);\r\n\t\tctxModel.getAdaptationRules().add(rule1);\r\n\t\tctxModel.getAdaptationRules().add(rule3);\r\n\t\tctxModel.getAdaptationRules().add(rule5);\r\n\t\tctxModel.getAdaptationRules().add(rule6);\r\n\t\r\n\t\t\r\n\t\t//--------------------------> CKS <-------------------/\r\n\t\t//GETS FROM EXCEL\r\n\t\t \r\n\t\t//Context Propositions\r\n\t\tContextProposition isBtFullProp = new ContextProposition(\"BtFull\");\r\n\t\tContextProposition isBtNormalProp = new ContextProposition(\"BtNormal\");\r\n\t\tContextProposition isBtLowProp = new ContextProposition(\"BtLow\");\r\n\t\tContextProposition slowNetWork = new ContextProposition(\"slowNetwork\");\r\n\t\t\r\n\t\t//Context Constraint\r\n\t\tContextConstraint batteryLevel = new ContextConstraint();\r\n\t\tbatteryLevel.getContextPropositionsList().add(isBtFullProp);\r\n\t\tbatteryLevel.getContextPropositionsList().add(isBtNormalProp);\r\n\t\tbatteryLevel.getContextPropositionsList().add(isBtLowProp);\r\n\t\t\r\n\t\t//Context States\r\n\t\t// S0\r\n\t\tNode_CKS ctxSt0 = new Node_CKS();\r\n\t\tctxSt0.getAtiveContextPropositions().add(isBtFullProp);\r\n\t\tctxSt0.setId(0);\r\n\t\t\r\n\t\t// S1\r\n\t\tNode_CKS ctxSt1 = new Node_CKS();\r\n\t\tctxSt1.getAtiveContextPropositions().add(isBtFullProp);\r\n\t\tctxSt1.getAtiveContextPropositions().add(slowNetWork);\r\n\t\tctxSt1.setId(1);\r\n\t\t\r\n\t\t// S2\r\n\t\tNode_CKS ctxSt2 = new Node_CKS();\r\n\t\tctxSt2.getAtiveContextPropositions().add(isBtNormalProp);\r\n\t\t\r\n\t\tctxSt2.setId(2);\r\n\t\t\r\n\t\t// S3\r\n\t\tNode_CKS ctxSt3 = new Node_CKS();\r\n\t\tctxSt3.getAtiveContextPropositions().add(isBtNormalProp);\r\n\t\tctxSt3.getAtiveContextPropositions().add(slowNetWork);\r\n\t\tctxSt3.setId(3);\r\n\t\t\r\n\t\t// S4\r\n\t\tNode_CKS ctxSt4 = new Node_CKS();\r\n\t\tctxSt4.getAtiveContextPropositions().add(isBtLowProp);\r\n\t\tctxSt4.setId(4);\r\n\t\t\r\n\t\t//S5\r\n\t\tNode_CKS ctxSt5 = new Node_CKS();\r\n\t\tctxSt5.getAtiveContextPropositions().add(isBtLowProp);\r\n\t\tctxSt5.getAtiveContextPropositions().add(slowNetWork);\t\t\t\t\r\n\t\tctxSt5.setId(5);\r\n\r\n\t\t// Transition Relation R (CKS)\r\n\t\tctxSt0.addNextState(ctxSt1); //F -> F + S \r\n\t\tctxSt0.addNextState(ctxSt2); //F -> N\r\n\t\tctxSt1.addNextState(ctxSt0); //F + S -> F\r\n\t\tctxSt1.addNextState(ctxSt3); //F + S -> N + S\r\n\t\tctxSt2.addNextState(ctxSt3); //N -> N + S\r\n\t\tctxSt2.addNextState(ctxSt4); //N -> L\r\n\t\tctxSt3.addNextState(ctxSt2); //N + S -> N\r\n\t\tctxSt3.addNextState(ctxSt5); //N + S -> L + S\r\n\t\tctxSt4.addNextState(ctxSt5); //L -> Ls + S \r\n\t\tctxSt5.addNextState(ctxSt4); //L + S -> L\r\n\t\t\t\r\n\t\tGraph_CKS cksGraph = new Graph_CKS();\r\n\t\tcksGraph.getNodes().add(ctxSt0);\r\n\t\tcksGraph.getNodes().add(ctxSt1);\r\n\t\tcksGraph.getNodes().add(ctxSt2);\r\n\t\tcksGraph.getNodes().add(ctxSt3);\r\n\t\tcksGraph.getNodes().add(ctxSt4);\r\n\t\tcksGraph.getNodes().add(ctxSt5);\r\n\t\t\r\n\t\t\r\n\t\t/////// CODE PARA FIX!!!\r\n\t\t\t\t\t//GenerateDFTSGFromCKSG gen = new GenerateDFTSGFromCKSG(mobilineDspl, ctxModel, cksGraph);\r\n\t\t\t\t\t//it start analze by the first context state of CKS\r\n\t\t\t\t\t//gen.dephtFirstSearchGeneratingDFTSTrasitions(cksGraph.getNodes().get(0));\r\n\t\t\t\t\t//gen.printGraphDFTS();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Graph_DFTS dfts = gen.getGraph_DFTS(); //dfts\r\n\r\n\t\t//////--- To the EXP\r\n\t\tDFTS_For_Exp dftsGen = new DFTS_For_Exp();\r\n\t\tGraph_DFTS dfts = dftsGen.getMobilineExpGraph();\r\n\t\t/////-----\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C1 ]<-------------------/\r\n\t\t\r\n\t\t\r\n\t\t//[C1]: it generate the testSequence to cover ALL DFTS States\r\n\t\t TSForConfigurationCorrectness tsForCC = new TSForConfigurationCorrectness();\r\n\t\t//1.0d= 100%\r\n\t\t// from scratch \r\n\t\t //TestSequenceList testSeqList = new TestSequenceList();\r\n\t\t //TestSequence testSequence = tsForCC.generateTestSequence(dfts,0.2d);\r\n\t\t //testSeqList.add(testSequence);\r\n\t\t //printTestSequence(testSequence);\r\n\t\t //System.out.println(\"###########\");\r\n\t\t//Based on a previous one\r\n\t\t //testSequence = tsForCC.identifyMissingCases(dfts, testSequence, 1.0d);\r\n\t\t\t//printTestSequence(testSequence);\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C2 ]<-------------------/\r\n\t\t\tTSForFeatureLiveness tsFtLiv = new TSForFeatureLiveness(mobilineDspl);\r\n\t\t//1.0d= 100%\r\n\t\t// from scratch \r\n\t\t// Tem 5 features (A,B,C, Video,Image)... 0.5d > 2 (Image e Video)... 0.2d = 1 feature\r\n\t\t\t//ArrayList<TestSequence> testSeqList = tsFtLiv.generateTestSequence(dfts, 1.0d, new ArrayList<TestSequence>());\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t\t//System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t//Based on a previous one\r\n\t\t\t//testSeqList = tsFtLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C1 AND C2]<-------------------/\r\n\t\t//[C1]: it generate the testSequence to cover ALL DFTS States\r\n\t\t //TSForConfigurationCorrectness tsForCC = new TSForConfigurationCorrectness();\r\n\t\t //TestSequence testSequence = tsForCC.generateTestSequence(dfts,0.2d);\r\n\t\t // printTestSequence(testSequence);\r\n\t\t \r\n\t\t //System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t //TSForFeatureLiveness tsFtLiv = new TSForFeatureLiveness(mobilineDspl);\r\n\t\t\t// ArrayList<TestSequence> initialTestSeq = new ArrayList<TestSequence>();\r\n\t\t\t// initialTestSeq.add(testSequence);\r\n\t\t\t// ArrayList<TestSequence> testSeqList = tsFtLiv.generateTestSequence(dfts, 1.0d,initialTestSeq );\r\n\t\t\t// printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C3]<-------------------/\r\n\t\t\tTSForInterleavingCorrectness tsIntCor = new TSForInterleavingCorrectness(ctxModel);\r\n\t\t\t//1.0d= 100%\r\n\t\t\t// from scratch \r\n\t\t\t// Tem 5 features (A,B,C, Video,Image)... 0.5d > 2 (Image e Video)... 0.2d = 1 feature\r\n\t\t\t\t//ArrayList<TestSequence> testSeqList = tsIntCor.generateTestSequence(dfts, 0.0d, new ArrayList<TestSequence>());\r\n\t\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t\t//System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t\t//Based on a previous one\r\n\t\t\t\t//testSeqList = tsIntCor.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C4]<-------------------/\r\n\t\t\tTSForRuleLiveness tsRlLiv = new TSForRuleLiveness(ctxModel);\r\n\t\t//1.0d= 100%\r\n\t\t// from scratch \r\n\t\t// Tem 5 features (A,B,C, Video,Image)... 0.5d > 2 (Image e Video)... 0.2d = 1 feature\r\n\t\t\t//TestSequenceList testSeqList = tsRlLiv.generateTestSequence(dfts, 1.0d, new TestSequenceList());\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\r\n\t\t\t//saveTestSequenceToJson(testSeqList, \"D:/testSeq1.json\");\r\n\t\t\t\r\n\t\t//System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t//Based on a previous one\r\n\t\t\t//testSeqList = tsRlLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C5]<-------------------/\r\n\t\t\tTSForVariationLiveness tsVtLiv = new TSForVariationLiveness(mobilineDspl);\r\n\t\t//1.0d= 100%\r\n\t\t// from scratch \r\n\t\t// Tem 5 features (A,B,C, Video,Image)... 0.5d > 2 (Image e Video)... 0.2d = 1 feature\r\n\t\t\t//ArrayList<TestSequence> testSeqList = tsVtLiv.generateTestSequence(dfts, 1.0d, new ArrayList<TestSequence>());\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t\t//System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t//Based on a previous one\r\n\t\t\t//testSeqList = tsVtLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\r\n\t\t//--------------------------> TEST SEQUENCES [ALL]<-------------------/\r\n\t\t\tTestSequenceList testSeqList = new TestSequenceList();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"########### C1 ############ \");\r\n\t\t\tTestSequence testSequence = tsForCC.generateTestSequence(dfts,1.0d);\r\n\t\t\tprintTestSequence(testSequence);\r\n\t\t\ttestSeqList.add(testSequence);\r\n\t\t \r\n\t\t System.out.println(\"########### C2 ############ \");\r\n\t\t testSeqList = tsFtLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t printTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"########### C3 ############ \");\r\n\t\t\ttestSeqList = tsIntCor.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\tprintTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"########### C4 ############ \");\r\n\t\t\ttestSeqList = tsRlLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\tprintTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"########### C5 ############ \");\r\n\t\t\ttestSeqList = tsVtLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\tprintTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\tsaveTestSequenceToJson(testSeqList, path);\t\r\n\t}",
"public void docDataPreProcess(String xmlFileDir) throws Exception {\n XmlFileCollection corpus = new XmlFileCollection(xmlFileDir);\n\n // Load stopword list and initiate the StopWordRemover and WordNormalizer\n StopwordRemover stopwordRemover = new StopwordRemover();\n WordNormalizer wordNormalizer = new WordNormalizer();\n\n // initiate the BufferedWriter to output result\n FilePathGenerator fpg = new FilePathGenerator(\"result.txt\");\n String path = fpg.getPath();\n\n FileWriter fileWriter = new FileWriter(path, true); // Path.ResultAssignment1\n Map<String, String> curr_docs = corpus.nextDoc(); // doc_id:doc_content pairs\n Set<String> doc_ids = curr_docs.keySet();\n for (String doc_id : doc_ids){\n // load doc content\n char[] content = curr_docs.get(doc_id).toCharArray();\n // write doc_id into the result file\n fileWriter.append(doc_id + \"\\n\");\n\n // initiate a word object to hold a word\n char[] word = null;\n\n // initiate the WordTokenizer\n WordTokenizer tokenizer = new WordTokenizer(content);\n\n // process the doc word by word iteratively\n while ((word = tokenizer.nextWord()) != null){\n word = wordNormalizer.lowercase(word);\n// if (word.length == 1 && Character.isAlphabetic(word[0])){\n// continue;\n// }\n String wordStr = String.valueOf(word);\n // write only non-stopword into result file\n if (!stopwordRemover.isStopword(wordStr)){\n// fileWriter.append(wordNormalizer.toStem(word) + \" \");\n fileWriter.append(wordStr).append(\" \");\n }\n }\n fileWriter.append(\"\\n\");\n }\n fileWriter.close();\n }",
"public static void main(String[] args) {\n\t\tString[] words = { \"This\", \"is\", \"an\", \"example\", \"of\", \"text\", \"justification.\" };\n\t\tTextJustification t = new TextJustification();\n\t\tfor (String s : t.fullJustify(words, 16)){\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"public static void main(String[] args) {\n String input_one = \"Fourscore and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battlefield of that war. We have come to dedicate a portion of that field as a final resting-place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we cannot dedicate — we cannot consecrate — we cannot hallow — this ground. The brave men, living and dead, who struggled here have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us — that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion — that we here highly resolve that these dead shall not have died in vain — that this nation shall have a new birth of freedom and that government of the people, by the people, for the people, shall not perish from the earth.\";\r\n String input_two = \"Oh, say can you see, by the dawn's early light,What so proudly we hailed at the twilight's last gleaming?Whose broad stripes and brightstars,through the perilous fight,O'er the ramparts we watched, were so gallantly streaming?And the rockets' red glare, the bombs bursting in air,Gave proof through the night that our flag was still there.O say, does that star-spangled banner yet waveO'er the land of the free and the home of the brave?On the shore, dimly seen through the mists of the deep,Wherethe foe's haughty host in dread silence reposes,What isthatwhichthe breeze, o'er the towering steep,As it fitfully blows, now conceals, now discloses?Now it catches the gleam of the morning's first beam,In full glory reflected now shines on the stream:'Tis the starspangled banner! O long may it waveO'er the land of the free and the home of the brave. And where is that band who so vauntingly swore That the havoc of war and the battle's confusionA home and a country should leaveus no more?Their blood has wiped out their foulfootstep'spollution.Norefuge could save the hireling and slaveFrom the terror of flight, or the gloom of the grave:And the star-spangled banner in triumph doth waveO'er theland of the free and the home of the brave.Oh! thus be it ever, when freemen shall stand Between their loved homes and the war's desolation!Blest with victory and peace, may the heaven-rescued land Praise the Power that hath made and preserved us a nation.Then conquer we must, for our cause it is just,And this be our motto: In God is our trust. And the star-spangled banner forever shall waveO'er the land of the free and the home of \";\r\n\r\n String input_upper = input_one.toUpperCase();\r\n String input_upper2 = input_two.toUpperCase();\r\n // System.out.println(input_upper);\r\n String[] pattern = { \"FREE\", \"BRAVE\", \"NATION\" };\r\n // Brute Force algorithm\r\n System.out.println();\r\n System.out.println(\"**************************** OUTPUT OF FIRST INPUT FILE: *****************************\");\r\n System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBRUTE FORCE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BF_Search bf = new BF_Search();\r\n long bf_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n bf.brute_force_search(input_upper, pattern[i]);\r\n }\r\n long bf_endTime = System.nanoTime();\r\n bf.printBF_Comparison();\r\n System.out.println(\"It took: \" + (bf_endTime - bf_startTime) + \" nanoseconds\");\r\n\r\n // Knuth Moris Pratt algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tKNUTH MORIS PRATT ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n KMP_Search kmp = new KMP_Search();\r\n long kmp_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n kmp.KMPSearch(pattern[i], input_upper);\r\n if (i == pattern.length - 1) {\r\n kmp.printKM_Comparisons();\r\n }\r\n }\r\n long kmp_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (kmp_endTime - kmp_startTime) + \" nanoseconds\");\r\n\r\n // Boyer Moore algorithm\r\n System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBOYER MOORE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BM_Search bm = new BM_Search();\r\n char[] bm_input = input_upper.toCharArray();\r\n char[] bm_pattern = new char[] {};\r\n long bm_startTime = System.nanoTime();\r\n for (String i : pattern) {\r\n bm_pattern = i.toCharArray();\r\n bm.bm_search(bm_input, bm_pattern);\r\n if (pattern[pattern.length - 1] == i) {\r\n bm.printBM_Comparison();\r\n }\r\n }\r\n long bm_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (bm_endTime - bm_startTime) + \" nanoseconds\");\r\n\r\n // Rabin Karp algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tRABIN KARP ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n RKA_Search rk = new RKA_Search();\r\n int q = 101;\r\n long rk_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n rk.rka_search(pattern[i], input_upper, q);\r\n if (i == pattern.length - 1) {\r\n rk.printRKA_Comparison();\r\n }\r\n }\r\n long rk_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (rk_endTime - rk_startTime) + \" nanoseconds\");\r\n System.out.println();\r\n System.out.println(\"************************* OUTPUT OF SECOND INPUT FILE: *******************************\");\r\n // Brute Force algorithm\r\n System.out.println();\r\n // System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBRUTE FORCE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BF_Search bf2 = new BF_Search();\r\n long bf_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n bf.brute_force_search(input_upper2, pattern[i]);\r\n }\r\n long bf_endTime2 = System.nanoTime();\r\n bf2.printBF_Comparison();\r\n System.out.println(\"It took: \" + (bf_endTime2 - bf_startTime1) + \" nanoseconds\");\r\n\r\n // Knuth Moris Pratt algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tKNUTH MORIS PRATT ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n KMP_Search kmp2 = new KMP_Search();\r\n long kmp_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n kmp2.KMPSearch(pattern[i], input_upper2);\r\n if (i == pattern.length - 1) {\r\n kmp2.printKM_Comparisons();\r\n }\r\n }\r\n long kmp_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (kmp_endTime2 - kmp_startTime1) + \" nanoseconds\");\r\n\r\n // Boyer Moore algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tBOYER MOORE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BM_Search bm2 = new BM_Search();\r\n char[] bm_input2 = input_upper.toCharArray();\r\n char[] bm_pattern2 = new char[] {};\r\n long bm_startTime1 = System.nanoTime();\r\n for (String i : pattern) {\r\n bm_pattern2 = i.toCharArray();\r\n bm.bm_search(bm_input2, bm_pattern2);\r\n if (pattern[pattern.length - 1] == i) {\r\n bm2.printBM_Comparison();\r\n }\r\n }\r\n long bm_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (bm_endTime2 - bm_startTime1) + \" nanoseconds\");\r\n\r\n // Rabin Karp algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tRABIN KARP ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n RKA_Search rk2 = new RKA_Search();\r\n int q2 = 101;\r\n long rk_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n rk2.rka_search(pattern[i], input_upper2, q2);\r\n if (i == pattern.length - 1) {\r\n rk2.printRKA_Comparison();\r\n }\r\n }\r\n long rk_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (rk_endTime2 - rk_startTime1) + \" nanoseconds\");\r\n }",
"@Test(timeout = 4000)\n public void test64() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"Used for alphabetizing, cross referencing, and creating a label when the ``author'' information is missing. This field should not be confused with the key that appears in the cite command and at the beginning of the database entry.\");\n assertEquals(\"us for alphabes, cros refer, and creat a label when th ``author'' inform is mis. th field should not be confus with th key that appear in th cit command and at th begin of th databas entr.\", string0);\n }",
"@Test\n void adjectivesCommonList() {\n //boolean flag = false;\n NLPAnalyser np = new NLPAnalyser();\n List<CoreMap> sentences = np.nlpPipeline(\"RT This made my day good; glad @JeremyKappell is standing up against bad #ROC’s disgusting mayor. \"\n + \"Former TV meteorologist Jeremy Kappell suing real Mayor Lovely Warren\"\n + \"https://t.co/rJIV5SN9vB worst(Via NEWS 8 WROC)\");\n ArrayList<String> adj = np.adjectives(sentences);\n for (String common : np.getCommonWords()) {\n assertFalse(adj.contains(common));\n }\n }",
"public void firstSem3() {\n chapter = \"firstSem3\";\n String firstSem3 = \"The calm afternoon is suddenly broken up by a shout. A little way in front of you, a man runs out onto \" +\n \"the path - he has a long beard and is festooned with campaign buttons. \\\"Find your dream!\\\" he shouts, \" +\n \"maybe to the sky, maybe to a tree. \\\"More like find your place in the corporate machinery, hahahaha!\\\"\\t\" +\n \"You stand stock-still for a moment, bewildered, until someone taps on your shoulder. It's your roommate. \\\"Oh,\" +\n \" that's just Crazy Joe, don't worry. I met him during orientation. He says weird shit, but he's totally \" +\n \"harmless.\\\"\\n\\t\"+student.getRmName()+\" puts a hand on your shoulder and gently steers you past the raving man. \" +\n \"As you pass, Crazy Joe's eyes focus on you, and he whispers in a voice only you can hear: \\\"Beware. Beware the beast.\\\"\" +\n \"\\n\\tThat's weird as fuck, right?\\n\\tLATER THAT NIGHT...\";\n getTextIn(firstSem3);\n }",
"private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }",
"public static void main(String args[]) throws Exception {\n\t String filePath = \"test.pdf\";\r\n\t \r\n\t String pdfText = FileReader.getFile(filePath, 581, 584); \r\n\t text_position.position(580, 584);\r\n\t \r\n//\t String pdfText = FileReader.getFile(filePath, 396, 407); \r\n//\t text_position.position(395, 407);\r\n\r\n\t txtCreate.creatTxtFile(\"test\");\r\n\t txtCreate.writeTxtFile(pdfText);\r\n\t xmlCreater.getXML(\"test.txt\");\r\n }",
"public void generateRevisionOutput(RevisionResult resultAllAnalyzed);",
"@Test(timeout = 4000)\n public void test48() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The name of a series or set of books. When citing an entire book, the the title field gives its title and an optional series field gives the name of a series or multi-volume set in which the book is published.\");\n assertEquals(\"th nam of a ser or ses of book. when cit an entir book, th th titl field giv it titl and an opt ser field giv th nam of a ser or mult-volum ses in which th book is publ.\", string0);\n }",
"@Test(timeout = 4000)\n public void test56() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"Used for alphabetizing, cross referencing, and creating a label when the ``author'' information is missing. This field should not be confused with the key that appears in the cite command and at the beginning of the database entry.\");\n assertEquals(\"us for alphabes, cros refer, and creat a label when th ``author'' inform is mis. th field should not be confus with th key that appear in th cit command and at th begin of th databas entr.\", string0);\n }",
"public static void coreNLP(Sentence sent) {\n\tif (sent.getText().trim().equals(\"\")) {\n\t return;\n\t}\n\tAnnotation annotation = new Annotation(sent.getText());\n\tpipeline.annotate(annotation);\n\tList<CoreMap> sentenceAnns = annotation.get(SentencesAnnotation.class);\n\tif (sentenceAnns == null || sentenceAnns.size() == 0) {\n\t log.warning(\"No sentence annotations were generated. Skipping coreNLP..\");\n\t return;\n\t}\n\tList<Word> words = new ArrayList<>();\n\tList<SynDependency> depList = new ArrayList<>();\n\tif (sentenceAnns.size() == 1) {\n\t CoreMap sentAnn = sentenceAnns.get(0);\n\t words = getSentenceWords(sentAnn, sent.getSpan().getBegin());\n\t sent.setWords(words);\n\t for (Word w : words)\n\t\tw.setSentence(sent);\n\t sent.setTree(getSentenceTree(sentAnn));\n\t depList = getSentenceDependencies(sentAnn, words);\n\t sent.setDependencyList(depList);\n\t sent.setSurfaceElements(new ArrayList<SurfaceElement>(words));\n\t sent.setEmbeddings(new ArrayList<>(depList));\n\t}\n }",
"public void test() throws IOException, SQLException\r\n\t{\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(\"src/result.txt\")));\r\n\t\tList<String> sents = new ArrayList<>();\r\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"src/test_tmp_col.txt\")));\r\n\t\tString line = \"\";\r\n\t\tString wordseq = \"\";\r\n\t\tList<List<String>> tokens_list = new ArrayList<>();\r\n\t\tList<String> tokens = new ArrayList<>();\r\n\t\twhile((line=br.readLine())!=null)\r\n\t\t{\r\n\t\t\tif(line.trim().length()==0)\r\n\t\t\t{\r\n\t\t\t\tsents.add(wordseq);\r\n\t\t\t\ttokens_list.add(tokens);\r\n\t\t\t\twordseq = \"\";\r\n\t\t\t\ttokens = new ArrayList<>();\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tString word = line.split(\"#\")[0];\r\n\t\t\t\twordseq += word;\r\n\t\t\t\ttokens.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbr.close();\r\n\t\tfor(String sent : sents)\r\n\t\t{\r\n\t\t\tString newsURL = null;\r\n\t\t\tString imgAddress = null;\r\n\t\t\tString newsID = null;\r\n\t\t\tString saveTime = null;\r\n\t\t\tString newsTitle = null;\r\n\t\t\tString placeEntity = null;\r\n\t\t\tboolean isSummary = false;\r\n\t\t\tPair<String, LabelItem> result = extractbysentence(newsURL, imgAddress, newsID, saveTime, newsTitle, sent, placeEntity, isSummary);\r\n\t\t\t\r\n\t\t\tif(result!=null)\r\n\t\t\t{\r\n\t\t\t\r\n//\t\t\t\tSystem.out.print(result.getSecond().eventType+\"\\n\");\r\n\t\t\t\tbw.write(sent+'\\t'+result.getSecond().triggerWord+\"\\t\"+result.getSecond().sourceActor+'\\t'+result.getSecond().targetActor+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tbw.write(sent+'\\n');\r\n\t\t\t}\r\n\t\t}\r\n\t\tbw.close();\r\n\t\t\r\n\t}",
"Builder addEducationalAlignment(String value);",
"public static String getAlignedWord(String word, int length) {\n SpreedWord pivot = new SpreedWord();// to get the pivot.\n String alignWord = \"<html>\"; // get the align word.\n double align; // get number of spaces\n double count = 0; // count the number of spaces\n double leftSpace; // geting left space\n double rightSpace = 0; // get right space\n int getPivot; // get pivot number\n // this check to see if the length is even add one\n if (length % 2 == 0) {\n length = length + 1;\n }\n // this checks for commas and semicolons and periods.\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) == '.') {\n word = word.substring(0, word.length() - 1);\n break;\n } else if (word.charAt(i) == ';') {\n word = word.substring(0, word.length() - 1);\n break;\n } else if (word.charAt(i) == ',') {\n word = word.substring(0, word.length() - 1);\n break;\n }\n }\n // this gets the pivot\n getPivot = pivot.getPivot(word);\n // takes half the length\n align = length / 2;\n // gets the numbers space before the pivot.\n char[] letters = word.toCharArray();\n for (int i = 0; i < word.length(); i++) {\n if (!Character.isLetter(letters[i])) {\n count++;\n } else {\n break;\n }\n }\n // get left spaces\n align = align - (getPivot + count);\n\n leftSpace = align;\n\n // adding the left spaces\n for (int i = 0; i < leftSpace; i++) {\n alignWord += \" \";\n }\n // add the word\n alignWord += word.substring(0, getPivot);\n alignWord += \"<font color=\\\"yellow\\\">\";\n alignWord += word.charAt(getPivot);\n alignWord += \"</font>\";\n for (int i = getPivot + 1; i < word.length(); i++)\n alignWord += word.charAt(i);\n //alignWord += word.substring(getPivot + 1, word.length() - getPivot + 1);\n // adding the right space or truncate\n if (alignWord.length() > length) {\n\n } else {\n rightSpace = length - alignWord.length();\n for (int j = 0; j < rightSpace; j++) {\n alignWord += \" \";\n }\n }\n\n alignWord += \"</html>\";\n System.out.println(alignWord);\n\n return alignWord;\n }",
"void translate(Sentence sentence);",
"@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 }",
"static private ArrayList<Term> getAlignedTerms(DataManager manager, ThesaurusTerms oldThesaurus, ThesaurusTerms newThesaurus)\r\n\t{\r\n\t\t// Gather up references to old terms\r\n\t\tHashMap<Integer,Term> oldTerms = new HashMap<Integer,Term>();\r\n\t\tfor(Term term : oldThesaurus.getTerms())\r\n\t\t\toldTerms.put(term.getId(), term);\r\n\t\t\r\n\t\t// Clear out all duplicate associated elements\r\n\t\tfor(Term term : newThesaurus.getTerms())\r\n\t\t{\r\n\t\t\t// Identify the list of non-duplicated elements\r\n\t\t\tArrayList<AssociatedElement> synonyms = new ArrayList<AssociatedElement>();\r\n\t\t\tELEMENT_LOOP: for(AssociatedElement element : term.getElements())\r\n\t\t\t{\r\n\t\t\t\t// Add synonym\r\n\t\t\t\tAssociatedElement synonym = getSynonym(element.getName(),synonyms);\r\n\t\t\t\tif(synonym!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(element.getDescription()!=null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Add description if unique\r\n\t\t\t\t\t\tString description = synonym.getDescription();\r\n\t\t\t\t\t\tfor(String descriptionPart : description.split(\"\\\\|\"))\r\n\t\t\t\t\t\t\tif(element.getDescription().equals(descriptionPart)) continue ELEMENT_LOOP;\r\n\t\t\t\t\t\tsynonym.setDescription(description + \"|\" + element.getDescription().replaceAll(\"|\",\"\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse synonyms.add(element);\r\n\t\t\t}\r\n\r\n\t\t\t// Update the elements if duplicates were found\r\n\t\t\tif(term.getElements().length!=synonyms.size())\r\n\t\t\t\tterm.setElements(synonyms.toArray(new AssociatedElement[0]));\r\n\t\t}\r\n\t\t\r\n\t\t// Align terms while adjusting term name changes\r\n\t\tArrayList<Term> alignedTerms = new ArrayList<Term>();\r\n\t\tfor(Term term : newThesaurus.getTerms())\r\n\t\t{\r\n\t\t\t// Set the aligned term\r\n\t\t\tTerm oldTerm = oldTerms.get(term.getId());\r\n\t\t\tif(oldTerm==null) term.setId(null);\r\n\t\t\tfor(AssociatedElement element : term.getElements())\r\n\t\t\t{\r\n\t\t\t\tboolean elementExists = false;\r\n\t\t\t\tif(oldTerm!=null)\r\n\t\t\t\t\tfor(AssociatedElement oldElement : oldTerm.getElements())\r\n\t\t\t\t\t\tif(oldElement.getElementID().equals(element.getElementID()))\r\n\t\t\t\t\t\t\telementExists = true;\r\n\t\t\t\tif(!elementExists) element.setElementID(null);\r\n\t\t\t}\r\n\t\t\talignedTerms.add(term);\r\n\t\t}\r\n\t\treturn alignedTerms;\r\n\t}",
"public String randomTextGenerator() {\n\n\t\tprefixArr = currPrefix.split(\"\\\\s\");\n\t\tHashMap<Integer, String> probSuffix = new HashMap<>();\n\t\tPrefix prefix = new Prefix(prefixArr.length, data, debug);\n\t\tLinkedList<String> text = new LinkedList<>();\n\t\tfor (int j = 0; j < prefixArr.length; j++) {\n\t\t\ttext.add(prefixArr[j]);\n\t\t}\n\t\tint count = 0;\n\t\tString word1 = \"\";\n\t\twhile (count < numWords) {\n\t\t\tint i = 0;\n\t\t\tint j = 0;\n\t\t\tint keyCount = 0;\n\t\t\tprobSuffix.clear();\n\t\t\twhile (keyCount < data.size()) {\n\t\t\t\tword1 = data.get(keyCount);\n\t\t\t\tif (word1.equals(prefixArr[i])) {\n\t\t\t\t\ti++;\n\t\t\t\t\tkeyCount++;\n\t\t\t\t\tif (i == prefixArr.length) {\n\t\t\t\t\t\tif (keyCount < data.size()) {\n\t\t\t\t\t\t\tprobSuffix.put(j, data.get(keyCount));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\ti = 0;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\ti = 0;\n\t\t\t\t\tkeyCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcount=getResult(probSuffix, prefix, text,count);\n\t\t\t\n\t\t}\n\t\treturn result;\n\t}",
"public static void main(String[] args) {\n\t\tarticle.add(\"the\");\n\t\tarticle.add(\"a\");\n\t\tarticle.add(\"some\");\n\t\tarticle.add(\"one\");\n\t\tnoun.add(\"boy\");\n\t\tnoun.add(\"girl\");\n\t\tnoun.add(\"dog\");\n\t\tnoun.add(\"town\");\n\t\tnoun.add(\"car\");\n\t\tverb.add(\"drove\");\n\t\tverb.add(\"ran\");\n\t\tverb.add(\"jumped\");\n\t\tverb.add(\"walked\");\n\t\tverb.add(\"skipped\");\n\t\tpreposition.add(\"to\");\n\t\tpreposition.add(\"from\");\n\t\tpreposition.add(\"over\");\n\t\tpreposition.add(\"on\");\n\t\tpreposition.add(\"under\");\n\t\tRandom r= new Random();\n\t\tfor(int i=0;i<15;i++)\n\t\t{\n\t\tint n= r.nextInt(4);\n\t\tint n2= r.nextInt(5);\n\t\tint n3= r.nextInt(5);\n\n\t\tint n4= r.nextInt(5);\n\t\tint n5= r.nextInt(4);\n\t\tint n6= r.nextInt(5);\n\n\t\tSystem.out.println(article.get(n)+ \" \"+ noun.get(n2)+\" \"+ verb.get(n3)+\" \"+ preposition.get(n4)+\" \" + article.get(n5)+\" \"+ noun.get(n6)+\".\");\n\t\t}\n\n\t}",
"private static Map<String, List<List<String>>>[] splitYagoDataIntoDocumentSets(File yagoInputFile) {\r\n\t\tMap<String, List<List<String>>> trainData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testaData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testbData = new HashMap<String, List<List<String>>>();\r\n\t\t\r\n\t\tBufferedReader reader = FileUtil.getFileReader(yagoInputFile.getAbsolutePath());\r\n\t\ttry {\r\n\t\t\tString documentName = null;\r\n\t\t\tString documentSet = null;\r\n\t\t\tList<List<String>> documentLines = null;\r\n\t\t\tList<String> sentenceLines = null;\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tif (line.startsWith(\"-DOCSTART-\")) {\r\n\t\t\t\t\tif (documentSet != null) {\r\n\t\t\t\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString docId = line.substring(\"-DOCSTART- (\".length(), line.length() - 1);\r\n\t\t\t\t\tString[] docIdParts = docId.split(\" \");\r\n\t\t\t\t\tdocumentName = docIdParts[0] + \"_\" + docIdParts[1];\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (docIdParts[0].endsWith(\"testa\"))\r\n\t\t\t\t\t\tdocumentSet = \"testa\";\r\n\t\t\t\t\telse if (docIdParts[0].endsWith(\"testb\"))\r\n\t\t\t\t\t\tdocumentSet = \"testb\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tdocumentSet = \"train\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tdocumentLines = new ArrayList<List<String>>();\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else if (line.trim().length() == 0) {\r\n\t\t\t\t\tdocumentLines.add(sentenceLines);\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsentenceLines.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tMap<String, List<List<String>>>[] returnData = new HashMap[3];\r\n\t\treturnData[0] = trainData;\r\n\t\treturnData[1] = testaData;\r\n\t\treturnData[2] = testbData;\r\n\t\t\r\n\t\treturn returnData;\r\n\t}",
"private void createDocs() {\n\t\t\n\t\tArrayList<Document> docs=new ArrayList<>();\n\t\tString foldername=\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\input\";\n\t\tFile folder=new File(foldername);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tfor (File file : listOfFiles) {\n\t\t\ttry {\n\t\t\t\tFileInputStream fisTargetFile = new FileInputStream(new File(foldername+\"\\\\\"+file.getName()));\n\t\t\t\tString fileContents = IOUtils.toString(fisTargetFile, \"UTF-8\");\n\t\t\t\tString[] text=fileContents.split(\"ParseText::\");\n\t\t\t\tif(text.length>1){\n\t\t\t\t\tString snippet=text[1].trim().length()>100 ? text[1].trim().substring(0, 100): text[1].trim();\n\t\t\t\t\tDocument doc=new Document();\n\t\t\t\t\tdoc.setFileName(file.getName().replace(\".txt\", \"\"));\n\t\t\t\t\tdoc.setUrl(text[0].split(\"URL::\")[1].trim());\n\t\t\t\t\tdoc.setText(snippet+\"...\");\n\t\t\t\t\tdocs.add(doc);\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\t\n\t\tDBUtil.insertDocs(docs);\n\t}",
"public static void main(String args[]) throws IOException{\n\t\tString filename=null;\n\t\tString outfileNoS=\"CorpusOutputNoS.txt\";\n\t\tString outfileS=\"CorpusOutputS.txt\";\n\t\tString outfileT=\"CorpusOutputT.txt\";\n\t\tString str;\n\t\t\n\t\tFile out1= new File(outfileNoS);\n\t\twriter1= new FileWriter(out1);\n\t\t\n\t\tFile out2= new File(outfileS);\n\t\twriter2= new FileWriter(out2);\n\t\t\n\t\tFile out3= new File(outfileT);\n\t\twriter3= new FileWriter(out3);\n\t\t\n\t\tString given=null; \n\t\tif(args.length>0)\n\t\t\tfilename=args[0];\n\t\t\n\t\tcorpusTokens = new ArrayList<String>();\n\t\tcorpusUnigramCount = new HashMap<String, Integer>();\n\t\tcorpusBigramCount = new HashMap<String, Integer>();\n\t\tcorpusBigramProb= new HashMap<String,Double>();\n\t\tcorpusNumOfBigrams=0;\n\t\t\n\t\tScanner in = new Scanner(new File(filename));\n\t\t\n//----------------------------------CORPUS BEGIN-------------------------\n\t\t//finds unigram and Bigram count in Corpus and display it\n\t\tcorpusNumOfBigrams=findBigramCount(in,corpusTokens,corpusUnigramCount,corpusBigramCount);\n\t\t\n\t\t//Find corpus Bigram Prob and display it\n\t\tfindBigramProb(corpusUnigramCount,corpusBigramCount,corpusBigramProb,corpusTokens,corpusNumOfBigrams);\n\t\t\n\t\tint V= corpusUnigramCount.size();\n\n\t\t//display details of corpus\n\t\tstr=String.valueOf(corpusNumOfBigrams)+\"\\n\"; //number of Bigrams\n\t\tstr+=String.valueOf(corpusBigramCount.size())+\"\\n\";//Unique Bigram count \n\t\tstr+=String.valueOf(V)+\"\\n\";//Unique Unigram count \n\t\tstr+= String.valueOf(corpusTokens.size())+\"\\n\";//Total count\n\t\tstr+=\"\\n\";\n\t\twriter1.write(str);\n\t\t\n\t\tdisplayCount1(corpusUnigramCount);\n\t\tdisplayCount1(corpusBigramCount);\n\t\tdisplayProb1(corpusBigramProb);\n\t\t\n\t\t\n//-----------------------------------CORPUS END--------------------------------\n\n//-------------------------Add-one Smoothing begins--------------------\n\t\t\n\t\tfindBigramProbSmoothing(corpusBigramCount,V);\n\t\tdisplayProb2(bigramProbS);\n//----------------------Add-one smoothing ends--------------------------\n\t\t\n//-------------------Good-Turing Discounting Begins-------------------------\n\t\t\n\t\t//finds the initial bucket count using the bigram count before smoothing \n\t\tdoBucketCount(corpusBigramCount);\n\t\t\n\t\tstr=bucketCountT.size()+\"\\n\\n\";\n\t\twriter3.write(str);\n\t\tdisplayBucketCount3();\n\t\t\n\t\t//finding new Counts with Good Turing discounting\n\t\tfindBigramCountsTuring();\n\t\t\n\t\t\n\t\t//finding bigram probabilities with Good Turing discounting\n\t\tfindBigramProbTuring();\n\t\tdisplayProb3(bigramProbT);\n\t\t\n//--------------------Good-Turing Discounting Ends-------------------------\n\t\twriter1.close();\n\t\twriter2.close();\n\t\twriter3.close();\n\t}",
"@Test\n\tpublic void testStoreProcessTest1(){\n\t\tint sourceID = dm.storeProcessedText(pt5);\n\t\tassertTrue(sourceID > 0);\n\t\t\n\t\tds.startSession();\n\t\tSource source = ds.getSource(pt5.getMetadata().getUrl());\n\t\tList<Paragraph> paragraphs = (List<Paragraph>) ds.getParagraphs(source.getSourceID());\n\t\tassertTrue(pt5.getMetadata().getName().equals(source.getName()));\n\t\tassertTrue(pt5.getParagraphs().size() == paragraphs.size());\n\t\t\n\t\tfor(int i = 0; i < pt5.getParagraphs().size(); i++){\n\t\t\tParagraph p = paragraphs.get(i);\n\t\t\tParagraph originalP = pt5.getParagraphs().get(i);\n\t\t\tassertTrue(originalP.getParentOrder() == p.getParentOrder());\n\t\t\t\n\t\t\tList<Sentence> sentences = (List<Sentence>) ds.getSentences(p.getId());\n\t\t\tList<Sentence> originalSentences = (List<Sentence>) originalP.getSentences();\n\t\t\tfor(int j = 0; j < originalSentences.size(); j++){\n\t\t\t\tassertTrue(originalSentences.get(j).getContent().substring(DataStore.SENTENCE_PREFIX.length()).equals(sentences.get(j).getContent()));\n\t\t\t\tassertTrue(originalSentences.get(j).getParentOrder() == sentences.get(j).getParentOrder());\n\t\t\t}\n\t\t}\n\t\tList<Entity> entities = (List<Entity>) ds.getEntities(sourceID);\n\t\tassertTrue(pt5.getEntities().size() == entities.size());\n\t\t\n\t\tfor(int i = 0; i < pt5.getEntities().size(); i++){\n\t\t\tEntity originalEntity = pt5.getEntities().get(i);\n\t\t\tEntity retrievedEntity = entities.get(i);\n\t\t\tassertTrue(originalEntity.getContent().equals(retrievedEntity.getContent()));\n\t\t}\n\t\tds.closeSession();\n\t}",
"public void run() {\n\n\n\t\tStructurePairAligner aligner = new StructurePairAligner();\n\t\taligner.setDebug(true);\n\t\ttry {\n\t\t\taligner.align(structure1,structure2);\n\t\t} catch (StructureException e){\n\t\t\tlogger.warning(e.getMessage());\n\n\t\t}\n\n\n\n\t\tAlternativeAlignment[] aligs = aligner.getAlignments();\n\t\t//cluster similar results together \n\t\tClusterAltAligs.cluster(aligs);\n\t\tshowAlignment(aligner,aligs);\n\n\t\t//logger.info(\"done!\");\n\n\t\tparent.notifyCalcFinished();\n\n\t}"
]
| [
"0.66078836",
"0.6506819",
"0.6137413",
"0.596225",
"0.58483946",
"0.58474946",
"0.5812989",
"0.58061755",
"0.5753674",
"0.5692612",
"0.5623139",
"0.5565848",
"0.55585676",
"0.5518328",
"0.545025",
"0.54083145",
"0.533871",
"0.5310309",
"0.529423",
"0.5292217",
"0.52829534",
"0.5279042",
"0.52642995",
"0.52501553",
"0.5230975",
"0.522647",
"0.5219709",
"0.5206088",
"0.5189906",
"0.5179451",
"0.5123304",
"0.51207507",
"0.5119089",
"0.50936824",
"0.508907",
"0.5087069",
"0.5044171",
"0.50245357",
"0.50158334",
"0.50020736",
"0.49894464",
"0.4989061",
"0.4980809",
"0.49733835",
"0.49668792",
"0.49577484",
"0.49274635",
"0.492732",
"0.49185807",
"0.4911209",
"0.49105197",
"0.49070048",
"0.4905434",
"0.48814544",
"0.4880246",
"0.48741728",
"0.48731607",
"0.48695388",
"0.48602003",
"0.48586118",
"0.4849426",
"0.48483738",
"0.48468038",
"0.48439118",
"0.48354137",
"0.48263597",
"0.4815676",
"0.48137748",
"0.48129752",
"0.48118377",
"0.48109302",
"0.4808845",
"0.4802303",
"0.4781922",
"0.4776231",
"0.47753012",
"0.47693902",
"0.47669825",
"0.47606352",
"0.47592437",
"0.47540817",
"0.4749787",
"0.47472972",
"0.4746855",
"0.47301573",
"0.47287443",
"0.47238466",
"0.47210464",
"0.47203067",
"0.47164544",
"0.4706735",
"0.47055247",
"0.47054312",
"0.4701135",
"0.46992582",
"0.46959388",
"0.46924558",
"0.46856907",
"0.46841636",
"0.46831286"
]
| 0.59953916 | 3 |
Fake align, actually copy the gold standard alignment (For the extrinsic evaluation task) | public void repeatAlign(ArrayList<RevisionDocument> docs) throws Exception {
Hashtable<String, RevisionDocument> table = new Hashtable<String, RevisionDocument>();
for (RevisionDocument doc : docs) {
RevisionUnit predictedRoot = new RevisionUnit(true);
predictedRoot.setRevision_level(3); // Default level to 3
doc.setPredictedRoot(predictedRoot);
table.put(doc.getDocumentName(), doc);
ArrayList<RevisionUnit> rus = doc.getRoot().getRevisionUnitAtLevel(
0);
for (RevisionUnit ru : rus) {
predictedRoot.addUnit(ru.copy(predictedRoot));
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int align();",
"public void alignLocation();",
"public int getAlignment() {\n/* */ return this.newAlign;\n/* */ }",
"public abstract void doAlignment(String sq1, String sq2);",
"public void setAlignment(int align)\n {\n this.align = align;\n }",
"public void setAlign(String align) {\n this.align = align;\n }",
"@Test\n \tpublic void testSimpleAlignments()\n \t{\n \t\tSystem.out.format(\"\\n\\n-------testSimpleAlignments() ------------------------\\n\");\n \t\tPseudoDamerauLevenshtein DL = new PseudoDamerauLevenshtein();\n \t\t//DL.init(\"AB\", \"CD\", false, true);\n \t\t//DL.init(\"ACD\", \"ADE\", false, true);\n \t\t//DL.init(\"AB\", \"XAB\", false, true);\n \t\t//DL.init(\"AB\", \"XAB\", true, true);\n \t\t//DL.init(\"fit\", \"xfity\", true, true);\n \t\t//DL.init(\"fit\", \"xxfityyy\", true, true);\n \t\t//DL.init(\"ABCD\", \"BACD\", false, true);\n \t\t//DL.init(\"fit\", \"xfityfitz\", true, true);\n \t\t//DL.init(\"fit\", \"xfitfitz\", true, true);\n \t\t//DL.init(\"fit\", \"xfitfitfitfitz\", true, true);\n \t\t//DL.init(\"setup\", \"set up\", true, true);\n \t\t//DL.init(\"set up\", \"setup\", true, true);\n \t\t//DL.init(\"hobbies\", \"hobbys\", true, true);\n \t\t//DL.init(\"hobbys\", \"hobbies\", true, true);\n \t\t//DL.init(\"thee\", \"The x y the jdlsjds salds\", true, false);\n \t\tDL.init(\"Bismark\", \"... Bismarck lived...Bismarck reigned...\", true, true);\n \t\t//DL.init(\"refugee\", \"refuge x y\", true, true);\n \t\t//StringMatchingStrategy.APPROXIMATE_MATCHING_MINPROB\n \t\tList<PseudoDamerauLevenshtein.Alignment> alis = DL.computeAlignments(0.65);\n \t\tSystem.out.format(\"----------result of testSimpleAlignments() ---------------------\\n\\n\");\n \t\tfor (Alignment ali: alis)\n \t\t{\n \t\t\tali.print();\n \t\t}\n \t}",
"int getAlignValue();",
"public void prepareAlignment(String sq1, String sq2) {\n if(F == null) {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n F = new float[3][n+1][m+1];\n B = new TracebackAffine[3][n+1][m+1];\n for(int k = 0; k < 3; k++) {\n for(int i = 0; i < n+1; i ++) {\n for(int j = 0; j < m+1; j++)\n B[k][i][j] = new TracebackAffine(0,0,0);\n }\n }\n }\n\n //alignment already been run and existing matrix is big enough to reuse.\n else if(seq1.length() <= n && seq2.length() <= m) {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n }\n\n //alignment already been run but matrices not big enough for new alignment.\n //create all new matrices.\n else {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n F = new float[3][n+1][m+1];\n B = new TracebackAffine[3][n+1][m+1];\n for(int k = 0; k < 3; k++) {\n for(int i = 0; i < n+1; i ++) {\n for(int j = 0; j < m+1; j++)\n B[k][i][j] = new TracebackAffine(0,0,0);\n }\n }\n }\n }",
"public void setAlignment(int paramInt) {\n/* */ this.newAlign = paramInt;\n/* */ switch (paramInt) {\n/* */ case 3:\n/* */ this.align = 0;\n/* */ return;\n/* */ case 4:\n/* */ this.align = 2;\n/* */ return;\n/* */ } \n/* */ this.align = paramInt;\n/* */ }",
"@Override\n public void align(@NonNull PbVnAlignment alignment) {\n boolean noAgentiveA0 = alignment.proposition().predicate().ancestors(true).stream()\n .allMatch(s -> s.roles().stream()\n .map(r -> ThematicRoleType.fromString(r.type()).orElse(ThematicRoleType.NONE))\n .noneMatch(ThematicRoleType::isAgentive));\n\n for (PropBankPhrase phrase : alignment.sourcePhrases(false)) {\n List<NounPhrase> unaligned = alignment.targetPhrases(false).stream()\n .filter(i -> i instanceof NounPhrase)\n .map(i -> ((NounPhrase) i))\n .collect(Collectors.toList());\n if (phrase.getNumber() == ArgNumber.A0) {\n // TODO: seems like a hack\n if (alignment.proposition().predicate().verbNetId().classId().startsWith(\"51\") && noAgentiveA0) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (EnumSet.of(ThematicRoleType.AGENT, ThematicRoleType.CAUSER,\n ThematicRoleType.STIMULUS, ThematicRoleType.PIVOT)\n .contains(unalignedPhrase.thematicRoleType())) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A1) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME\n || unalignedPhrase.thematicRoleType() == ThematicRoleType.PATIENT) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A3) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isStartingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A4) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isEndingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n\n\n }\n }",
"public void mergeAlignment() {\n \n SAMFileReader unmappedSam = null;\n if (this.unmappedBamFile != null) {\n unmappedSam = new SAMFileReader(IoUtil.openFileForReading(this.unmappedBamFile));\n }\n \n // Write the read groups to the header\n if (unmappedSam != null) header.setReadGroups(unmappedSam.getFileHeader().getReadGroups());\n \n int aligned = 0;\n int unmapped = 0;\n \n final PeekableIterator<SAMRecord> alignedIterator = \n new PeekableIterator(getQuerynameSortedAlignedRecords());\n final SortingCollection<SAMRecord> alignmentSorted = SortingCollection.newInstance(\n SAMRecord.class, new BAMRecordCodec(header), new SAMRecordCoordinateComparator(),\n MAX_RECORDS_IN_RAM);\n final ClippedPairFixer pairFixer = new ClippedPairFixer(alignmentSorted, header);\n \n final CloseableIterator<SAMRecord> unmappedIterator = unmappedSam.iterator();\n SAMRecord nextAligned = alignedIterator.hasNext() ? alignedIterator.next() : null;\n SAMRecord lastAligned = null;\n \n final UnmappedReadSorter unmappedSorter = new UnmappedReadSorter(unmappedIterator);\n while (unmappedSorter.hasNext()) {\n final SAMRecord rec = unmappedSorter.next();\n rec.setReadName(cleanReadName(rec.getReadName()));\n if (nextAligned != null && rec.getReadName().compareTo(nextAligned.getReadName()) > 0) {\n throw new PicardException(\"Aligned Record iterator (\" + nextAligned.getReadName() +\n \") is behind the umapped reads (\" + rec.getReadName() + \")\");\n }\n rec.setHeader(header);\n \n if (isMatch(rec, nextAligned)) {\n if (!ignoreAlignment(nextAligned)) {\n setValuesFromAlignment(rec, nextAligned);\n if (programRecord != null) {\n rec.setAttribute(ReservedTagConstants.PROGRAM_GROUP_ID,\n programRecord.getProgramGroupId());\n }\n aligned++;\n }\n nextAligned = alignedIterator.hasNext() ? alignedIterator.next() : null;\n }\n else {\n unmapped++;\n }\n \n // Add it if either the read or its mate are mapped, unless we are adding aligned reads only\n final boolean eitherReadMapped = !rec.getReadUnmappedFlag() || (rec.getReadPairedFlag() && !rec.getMateUnmappedFlag());\n \n if (eitherReadMapped || !alignedReadsOnly) {\n pairFixer.add(rec);\n }\n }\n unmappedIterator.close();\n alignedIterator.close();\n \n final SAMFileWriter writer =\n new SAMFileWriterFactory().makeBAMWriter(header, true, this.targetBamFile);\n int count = 0;\n CloseableIterator<SAMRecord> it = alignmentSorted.iterator();\n while (it.hasNext()) {\n SAMRecord rec = it.next();\n if (!rec.getReadUnmappedFlag()) {\n if (refSeq != null) {\n byte referenceBases[] = refSeq.get(rec.getReferenceIndex()).getBases();\n rec.setAttribute(SAMTag.NM.name(),\n SequenceUtil.calculateSamNmTag(rec, referenceBases, 0, bisulfiteSequence));\n rec.setAttribute(SAMTag.UQ.name(),\n SequenceUtil.sumQualitiesOfMismatches(rec, referenceBases, 0, bisulfiteSequence));\n }\n }\n writer.addAlignment(rec);\n if (++count % 1000000 == 0) {\n log.info(count + \" SAMRecords written to \" + targetBamFile.getName());\n }\n }\n writer.close();\n \n \n log.info(\"Wrote \" + aligned + \" alignment records and \" + unmapped + \" unmapped reads.\");\n }",
"public void setAlignmentX(AlignX anAlignX) { }",
"public HBuilder setAlign(String align) \r\n\t\t{\r\n\t\t\th.align = align;\r\n\t\t\treturn this;\r\n\t\t}",
"public void align( Alignment alignment, Properties param ) {\n\t\t// For the classes : no optmisation cartesian product !\n\t\tfor ( OWLEntity cl1 : ontology1.getClassesInSignature()){\n\t\t\tfor ( OWLEntity cl2: ontology2.getClassesInSignature() ){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\tfor (OWLEntity cl1:getDataProperties(ontology1)){\n\t\t\tfor (OWLEntity cl2:getDataProperties(ontology2)){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (OWLEntity cl1:getObjectProperties(ontology1)){\n\t\t\tfor (OWLEntity cl2:getObjectProperties(ontology2)){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\n\n\n\n\n\n\t}",
"public int getAlignment()\n {\n return align;\n }",
"TableSectionBuilder align(String align);",
"public final String getAlignAttribute() {\n return getAttributeValue(\"align\");\n }",
"public void printAlignment(SWGAlignment alignment){\n\t\t\tString \torigSeq1 = alignment.getOriginalSequence1().toString(),\n\t\t\t\t\torigSeq2 = alignment.getOriginalSequence2().toString(),\n\t\t\t\t\talnSeq1 = new String(alignment.getSequence1()),\n\t\t\t\t\talnSeq2 = new String(alignment.getSequence2());\n\t\t\tint \tstart1 = alignment.getStart1(),\n\t\t\t\t\tstart2 = alignment.getStart2(),\n\t\t\t\t\tgap1 = alignment.getGaps1(),\n\t\t\t\t\tgap2 = alignment.getGaps2();\n\t\t\t\n\t\t\tString seq1, seq2, mark;\n\t\t\tif(start1>=start2){\n\t\t\t\tseq1=origSeq1.substring(0, start1) + alnSeq1 + origSeq1.substring(start1+alnSeq1.length()-gap1);\n\t\t\t\tString \tseq2Filler = start1==start2?\"\":String.format(\"%\"+(start1-start2)+\"s\", \"\"),\n\t\t\t\t\t\tmarkFiller = start1==0?\"\":String.format(\"%\"+start1+\"s\", \"\");\n\t\t\t\tseq2= seq2Filler + origSeq2.substring(0, start2) + alnSeq2 + origSeq2.substring(start2+alnSeq2.length()-gap2);\n\t\t\t\tmark= markFiller+String.valueOf(alignment.getMarkupLine());\n\t\t\t}else{\n\t\t\t\tseq2=origSeq2.substring(0, start2) + alnSeq2 + origSeq2.substring(start2+alnSeq2.length()-gap2);\n\t\t\t\tString \tmarkFiller = start2==0?\"\":String.format(\"%\"+start2+\"s\", \"\");\n\t\t\t\tseq1=String.format(\"%\"+(start2-start1)+\"s\", \"\") + origSeq1.substring(0, start1) + alnSeq1 + origSeq1.substring(start1+alnSeq1.length()-gap1);\n\t\t\t\tmark=markFiller+String.valueOf(alignment.getMarkupLine());\n\t\t\t}\n\t\t\tSystem.out.println(alignment.getSummary());\n\t\t\tSystem.out.println(seq1);\n\t\t\tSystem.out.println(mark);\n\t\t\tSystem.out.println(seq2);\n\t\t}",
"public void setTextAlign(TEXT_ALIGN align);",
"public String getAlign() {\n return align;\n }",
"public void align() {\n // get min values\n int x = Integer.MAX_VALUE;\n int y = x;\n for (int i = 0; i < nodeCount; i++) {\n if (xs[i] < x)\n x = xs[i];\n if (ys[i] < y)\n y = ys[i];\n }\n for (int i = 0; i < buildingCount; i++) {\n if (buildingXs[i] < x)\n x = buildingXs[i];\n if (buildingYs[i] < y)\n y = buildingYs[i];\n for (int j = 0; j < buildingApi[i].length; j++) {\n if (buildingApi[i][j][0] < x)\n x = buildingApi[i][j][0];\n if (buildingApi[i][j][1] < y)\n y = buildingApi[i][j][1];\n }\n }\n // now alter them all\n int dx = x - 1;\n int dy = y - 1;\n System.out.println(\"Shifting by (\" + (-dx) + \",\" + (-dy) + \").\");\n for (int i = 0; i < nodeCount; i++) {\n xs[i] -= dx;\n ys[i] -= dy;\n }\n for (int i = 0; i < buildingCount; i++) {\n buildingXs[i] -= dx;\n buildingYs[i] -= dy;\n for (int j = 0; j < buildingApi[i].length; j++) {\n buildingApi[i][j][0] -= dx;\n buildingApi[i][j][1] -= dy;\n }\n }\n }",
"public void setHorizontalAlignment( short align )\n {\n this.halign = align;\n }",
"public Alignment()\n\t{\n\t}",
"public void setAlignedSequence( Sequence alseq ) {\n\t\tthis.alignedsequence = alseq;\n\t\tif(alseq.id == null) alseq.id = id;\n\t\tif(seq != null) alseq.name = seq.getGroup();\n\t\tif(alseq.group == null) alseq.group = group;\n\t}",
"void setAlignment(Alignment alignment) {\n this.alignment = alignment;\n }",
"public void defenceAlign() {\n\t\tdouble angle = angleToX();\n\t\tdouble angleSign = Math.signum(angle);\n\t\tdouble unsignedAngle = Math.abs(angle);\n\t\t\n\t\tdouble toRotate = angleSign * (90 - unsignedAngle);\n//\t\tSystem.out.printf(\"Rotate by: %f.2\\n\", toRotate);\n\t\tSystem.out.println(CommandQueue.commandQueue2D.size());\n\t\trotate(toRotate);\n\t}",
"com.ctrip.ferriswheel.proto.v1.Placement getAlign();",
"public int getAlignment() {\r\n return Alignment;\r\n }",
"public int getAlignment() {\r\n return Alignment;\r\n }",
"@Override\r\n\tpublic int getAlignmentSize() {\r\n\t\treturn getSize();\r\n\t}",
"public void alignF() {\r\n\t\tfor (int x = 1; x <= seq1.length; x++) {\r\n\t\t\tfor (int y = 1; y <= seq2.length; y++) {\r\n\t\t\t\tdouble w1 = profile.getGextend()\r\n\t\t\t\t\t\t* profile.getGapExtend()[struct2[y - 1]]\r\n\t\t\t\t\t\t+ profile.getGopen()\r\n\t\t\t\t\t\t* profile.getGapInsert()[struct2[y - 1]];\r\n\t\t\t\tinsF[x][y] = Math.max(scoreF[x - 1][y] + w1, insF[x - 1][y]\r\n\t\t\t\t\t\t+ profile.getGextend()\r\n\t\t\t\t\t\t* profile.getGapExtend()[struct2[y - 1]]);\r\n\t\t\t\tdelF[x][y] = Math.max(scoreF[x][y - 1] + w1, delF[x][y - 1]\r\n\t\t\t\t\t\t+ profile.getGextend()\r\n\t\t\t\t\t\t* profile.getGapExtend()[struct2[y - 1]]);\r\n\t\t\t\tdouble temp = scoreF[x - 1][y - 1] + match(x, y);\r\n\t\t\t\tscoreF[x][y] = Math.max(temp, Math.max(insF[x][y], delF[x][y]));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"String validateAlignment() {\n\t\treturn null;\n\t}",
"public final int align() throws RecognitionException {\r\n int align = 0;\r\n\r\n\r\n Token INTEGER38=null;\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:180:5: ( ALIGN INTEGER )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:180:7: ALIGN INTEGER\r\n {\r\n match(input,ALIGN,FOLLOW_ALIGN_in_align874); \r\n\r\n INTEGER38=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_align876); \r\n\r\n align = Integer.parseInt((INTEGER38!=null?INTEGER38.getText():null));\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return align;\r\n }",
"public void setAlignmentY(AlignY anAlignX) { }",
"Builder addEducationalAlignment(AlignmentObject.Builder value);",
"protected void setValuesFromAlignment(final SAMRecord rec, final SAMRecord alignment) {\n for (final SAMRecord.SAMTagAndValue attr : alignment.getAttributes()) {\n // Copy over any non-reserved attributes.\n if (RESERVED_ATTRIBUTE_STARTS.indexOf(attr.tag.charAt(0)) == -1) {\n rec.setAttribute(attr.tag, attr.value);\n }\n }\n rec.setReadUnmappedFlag(alignment.getReadUnmappedFlag());\n rec.setReferenceIndex(alignment.getReferenceIndex());\n rec.setAlignmentStart(alignment.getAlignmentStart());\n rec.setReadNegativeStrandFlag(alignment.getReadNegativeStrandFlag());\n if (!alignment.getReadUnmappedFlag()) {\n // only aligned reads should have cigar and mapping quality set\n rec.setCigar(alignment.getCigar()); // cigar may change when a\n // clipCigar called below\n rec.setMappingQuality(alignment.getMappingQuality());\n }\n if (rec.getReadPairedFlag()) {\n rec.setProperPairFlag(alignment.getProperPairFlag());\n rec.setInferredInsertSize(alignment.getInferredInsertSize());\n rec.setMateUnmappedFlag(alignment.getMateUnmappedFlag());\n rec.setMateReferenceIndex(alignment.getMateReferenceIndex());\n rec.setMateAlignmentStart(alignment.getMateAlignmentStart());\n rec.setMateNegativeStrandFlag(alignment.getMateNegativeStrandFlag());\n }\n \n // If it's on the negative strand, reverse complement the bases\n // and reverse the order of the qualities\n if (rec.getReadNegativeStrandFlag()) {\n SAMRecordUtil.reverseComplement(rec);\n }\n \n if (clipAdapters && rec.getAttribute(ReservedTagConstants.XT) != null){\n CigarUtil.softClip3PrimeEndOfRead(rec, rec.getIntegerAttribute(ReservedTagConstants.XT));\n }\n }",
"public void setAlignment(int alignment) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"0d789012-3f1e-4d4b-b335-4dd81825c6f2\");\n if ((alignment & (alignment - 1)) != 0 || alignment > 0xffff) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"252dca05-27a1-4fd3-bd09-346445020cc4\");\n throw new IllegalArgumentException(\"Invalid value for alignment, must be power of two and no bigger than \" + 0xffff + \" but is \" + alignment);\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a3b0ab7b-7be3-4be3-89fd-5fe6bd660d8c\");\n this.alignment = alignment;\n }",
"public double passAlign() {\n \tdouble angle;\n \tif (MasterController.ourSide == TeamSide.LEFT) {\n \t\tangle = angleToX();\n \t} else {\n \t\tangle = angleToNegX();\n \t}\n \tdouble amount = -0.7 * angle;\n\t\tDebug.log(\"Angle: %f, Rotating: %f\", angle, amount);\n\t\trotate(amount); // TODO: Test if works as expected\n\t\treturn amount;\n\t}",
"public void alignment() {\n\t\toptArray = new int[lenA+1][lenB+1];\n\n\t\t//Initializing the array:\n\t\toptArray[0][0] = 0;\n\t\tfor(int i=1;i<=lenA;i++) {\n\t\t\toptArray[i][0] = i*g;\n\t\t}\n\t\tfor(int j=1;j<=lenB;j++) {\n\t\t\toptArray[0][j] = j*g;\n\t\t}\n\n\t\t//Starting the 'recurrsion':\n\t\tint p;\n\t\tString pair;\n\t\tfor(int i=1;i<=lenA;i++) {\n\t\t\tfor(int j=1;j<=lenB;j++) {\n\t\t\t\tpair = wordA.charAt(i-1) + \" \" + wordB.charAt(j-1);\n\t\t\t\tp = penaltyMap.get(pair);\n\t\t\t\toptArray[i][j] = min(p+optArray[i-1][j-1], g+optArray[i-1][j], g+optArray[i][j-1]);\n\t\t\t}\n\t\t}\n\t}",
"@Test\n\tpublic void testIncludeAlignmentBytes() throws Exception {\n\t\tfinal AddressSet set = new AddressSet();\n\t\tset.addRange(addr(0x404328), addr(0x404375));\n\n\t\t// select the address set\n\t\ttool.firePluginEvent(\n\t\t\tnew ProgramSelectionPluginEvent(\"Test\", new ProgramSelection(set), program));\n\n\t\twaitForSwing();\n\n\t\tdialog = getDialog();\n\t\tContainer container = dialog.getComponent();\n\n\t\t// check to make sure the search selection button is checked and enabled\n\t\tJRadioButton rb = (JRadioButton) findButton(container, \"Search Selection\");\n\t\tassertTrue(rb.isSelected());\n\t\tassertTrue(rb.isEnabled());\n\n\t\tsetMinStringFieldValue(dialog, 2);\n\n\t\tStringTableProvider provider = performSearch();\n\t\tStringTableModel model = (StringTableModel) getInstanceField(\"stringModel\", provider);\n\t\tGhidraTable table = (GhidraTable) getInstanceField(\"table\", provider);\n\n\t\ttoggleDefinedStateButtons(provider, false, true, false, false);\n\t\twaitForTableModel(model);\n\n\t\t// verify that rows points to the correct address\n\t\tassertEquals(\"00404328\", getModelValue(model, 0, addressColumnIndex).toString());\n\t\tassertEquals(\"00404350\", getModelValue(model, 1, addressColumnIndex).toString());\n\t\tassertEquals(\"00404354\", getModelValue(model, 2, addressColumnIndex).toString());\n\t\tassertEquals(\"00404370\", getModelValue(model, 3, addressColumnIndex).toString());\n\t\tselectRows(table, addr(0x404328), addr(0x404350), addr(0x404354), addr(0x404370));\n\n\t\t// select the Include Alignment Nulls option\n\t\tJCheckBox includeAlignNullsCB =\n\t\t\t(JCheckBox) findButton(provider.getComponent(), \"Include Alignment Nulls\");\n\t\tassertTrue(includeAlignNullsCB.isEnabled());\n\t\tassertTrue(!includeAlignNullsCB.isSelected());\n\t\tincludeAlignNullsCB.setSelected(true);\n\n\t\tsetAlignmentValue(provider, 4);\n\n\t\tDockingAction makeStringAction =\n\t\t\t(DockingAction) getInstanceField(\"makeStringAction\", provider);\n\n\t\twaitForTableModel(model);\n\n\t\tperformAction(makeStringAction, model);\n\n\t\t//Test that the correct amount of bytes get sucked up with the alignment option\n\t\tData d = listing.getDataAt(addr(0x404370));\n\t\tassertEquals(4, d.getLength());\n\n\t\td = listing.getDataAt(addr(0x404328));\n\t\tassertEquals(40, d.getLength());\n\n\t\td = listing.getDataAt(addr(0x404350));\n\t\tassertEquals(4, d.getLength());\n\n\t\td = listing.getDataAt(addr(0x404354));\n\t\tassertEquals(28, d.getLength());\n\n\t}",
"@Test\n\tpublic void testFindAlignment1() {\n\t\tint[] s = new int[cs5x3.length];\n\t\tfor (int i = 0; i < s.length; i++)\n\t\t\ts[i] = -1;\n\t\tAlignment.AlignmentScore score = testme3.findAlignment(s);\n\t\t// AAG-- 3\n\t\t// --GCC 3\n\t\t// -CGC- 2\n\t\t// -AGC- 3\n\t\t// --GCT 2\n\t\tassertEquals(13, score.actual);\n\t\tscore = testme4.findAlignment(s);\n\t\t// AAG-- 3\n\t\t// --GCC 3\n\t\t// -CGC- 2\n\t\t// -AGC- 3\n\t\t// -AGC- 3 [reverse strand]\n\t\tassertEquals(14, score.actual);\n\t}",
"public Builder setAligning(boolean value) {\n bitField0_ |= 0x00000008;\n aligning_ = value;\n onChanged();\n return this;\n }",
"public String[] getStrAlign() {\n if (state) return new String[]{alignB, alignA};\n return new String[]{alignA, alignB};\n }",
"Builder addEducationalAlignment(AlignmentObject value);",
"private static Byte getAlignment(Character align) {\n\n if (align == null)\n return null;\n\n switch (align) {\n case 'c':\n return 1;\n case 's':\n return 2;\n case 'i':\n return 4;\n case 'd':\n return 8;\n }\n\n throw new IllegalStateException(\"invalid alignment character: \" + align);\n }",
"@XmlElement(\"IsAligned\")\n boolean IsAligned();",
"public float getAlignmentY() { return 0.5f; }",
"@Test\n \tpublic void testSimpleFilterAlignments()\n \t{\n \t\tString searchTerm = \"hobbys\";\n \t\tString searchText = \"hobbies\";\n \t\tPDL.init(searchTerm, searchText, true, true);\n \t\talignments.clear();\n \t\tPseudoDamerauLevenshtein.Alignment ali1 = PDL.new Alignment(searchTerm, searchText, 1.0, 0, 5, 0, 0);\n \t\tPseudoDamerauLevenshtein.Alignment ali2 = PDL.new Alignment(searchTerm, searchText, 0.5, 0, 5, 0, 0);\n \t\talignments.add(ali1);\n \t\talignments.add(ali2);\n \t\talignments = PseudoDamerauLevenshtein.filterAlignments(alignments);\n \t\tAssert.assertEquals(1, alignments.size());\n \t\tAssert.assertEquals(ali1, alignments.get(0));\n \t}",
"public void setVerticalAlignment( short align )\n {\n this.valign = align;\n }",
"public short alignment(int total, int req) {\n \treturn (short)((total + (req-1))/req*req - total);\n }",
"void updateFrom(ClonalGeneAlignmentParameters alignerParameters);",
"public BasicAlignment (Glyph glyph)\r\n {\r\n super(glyph);\r\n }",
"public void alignColumns() {\n\t\tif ( isReferenceToPrimaryKey() ) alignColumns(referencedTable);\n\t}",
"TableSectionBuilder vAlign(String vAlign);",
"private SAMRecord uniqueAlignment(SAMRecord record) {\n\t\tSAMRecord toReturn;\n\t\t// this should not throw the error, but it is safer\n\t\ttry {\n\t\t\t// copy the record\n\t\t\ttoReturn = (SAMRecord)record.clone();\n\t\t} catch(Exception e) {\n\t\t\tthrow new RuntimeException(\"Unexpected exception when obtaining unique alignment from \"+record);\n\t\t}\n\t\ttoReturn.setAttribute(\"X0\", 1);\n\t\treturn toReturn;\n\t}",
"public void run() {\n\n\n\t\tStructurePairAligner aligner = new StructurePairAligner();\n\t\taligner.setDebug(true);\n\t\ttry {\n\t\t\taligner.align(structure1,structure2);\n\t\t} catch (StructureException e){\n\t\t\tlogger.warning(e.getMessage());\n\n\t\t}\n\n\n\n\t\tAlternativeAlignment[] aligs = aligner.getAlignments();\n\t\t//cluster similar results together \n\t\tClusterAltAligs.cluster(aligs);\n\t\tshowAlignment(aligner,aligs);\n\n\t\t//logger.info(\"done!\");\n\n\t\tparent.notifyCalcFinished();\n\n\t}",
"public void setDetailTextureAlignment(int alignment) {\n mController.setDetailTextureAlignment(alignment);\n }",
"boolean hasAligning();",
"public boolean getAligning() {\n return aligning_;\n }",
"public void setVAlign(int vAlign) {\n this.vAlign = vAlign;\n }",
"Builder addEducationalAlignment(String value);",
"public void format(List<Alignment> alignmentList);",
"protected int getAlignment() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"12abfd3b-e43a-46a7-92b9-993595740399\");\n return this.alignment;\n }",
"public Alignment getAlignment() {\n return alignment;\n }",
"CrossAlign getCrossAlign();",
"Alignment getAlignment() {\n return alignment;\n }",
"boolean getAligning();",
"private static void _assertSizeAlignment(boolean[] one, boolean[] other){\r\n assert one.length==other.length:\r\n String.format(\"Incompatible Arrays %s / %s\",one.length,other.length);\r\n }",
"public boolean getAligning() {\n return aligning_;\n }",
"public int getAlignment()\n {\n return bouquet.getAlignment();\n }",
"public AlignByCamera ()\n\t{\n\t\trequires(Subsystems.transmission);\n\t\trequires(Subsystems.goalVision);\n\n\t\tthis.motorRatio = DEFAULT_ALIGNMENT_SPEED;\n\t}",
"@Ensures(\"result != null\")\n public static byte[] readToAlignmentByteArray(final Cigar cigar, final byte[] read) {\n if ( cigar == null ) throw new IllegalArgumentException(\"attempting to generate an alignment from a CIGAR that is null\");\n if ( read == null ) throw new IllegalArgumentException(\"attempting to generate an alignment from a read sequence that is null\");\n\n final int alignmentLength = cigar.getReferenceLength();\n final byte[] alignment = new byte[alignmentLength];\n int alignPos = 0;\n int readPos = 0;\n for (int iii = 0; iii < cigar.numCigarElements(); iii++) {\n\n final CigarElement ce = cigar.getCigarElement(iii);\n final int elementLength = ce.getLength();\n\n switch (ce.getOperator()) {\n case I:\n if (alignPos > 0) {\n final int prevPos = alignPos - 1;\n if (alignment[prevPos] == BaseUtils.Base.A.base) {\n alignment[prevPos] = PileupElement.A_FOLLOWED_BY_INSERTION_BASE;\n } else if (alignment[prevPos] == BaseUtils.Base.C.base) {\n alignment[prevPos] = PileupElement.C_FOLLOWED_BY_INSERTION_BASE;\n } else if (alignment[prevPos] == BaseUtils.Base.T.base) {\n alignment[prevPos] = PileupElement.T_FOLLOWED_BY_INSERTION_BASE;\n } else if (alignment[prevPos] == BaseUtils.Base.G.base) {\n alignment[prevPos] = PileupElement.G_FOLLOWED_BY_INSERTION_BASE;\n }\n }\n case S:\n readPos += elementLength;\n break;\n case D:\n case N:\n for (int jjj = 0; jjj < elementLength; jjj++) {\n alignment[alignPos++] = PileupElement.DELETION_BASE;\n }\n break;\n case M:\n case EQ:\n case X:\n for (int jjj = 0; jjj < elementLength; jjj++) {\n alignment[alignPos++] = read[readPos++];\n }\n break;\n case H:\n case P:\n break;\n default:\n throw new ReviewedGATKException(\"Unsupported cigar operator: \" + ce.getOperator());\n }\n }\n return alignment;\n }",
"private void alignSingle(RevisionDocument doc, double[][] probMatrix,\n\t\t\tdouble[][] fixedMatrix, int option) throws Exception {\n\t\tint oldLength = probMatrix.length;\n\t\tint newLength = probMatrix[0].length;\n\t\tif (doc.getOldSentencesArray().length != oldLength\n\t\t\t\t|| doc.getNewSentencesArray().length != newLength) {\n\t\t\tthrow new Exception(\"Alignment sentence does not match\");\n\t\t} else {\n\t\t\t/*\n\t\t\t * Rules for alignment 1. Allows one to many and many to one\n\t\t\t * alignment 2. No many to many alignments (which would make the\n\t\t\t * annotation even more difficult)\n\t\t\t */\n\t\t\tif (option == -1) { // Baseline 1, using the exact match baseline\n\t\t\t\tfor (int i = 0; i < oldLength; i++) {\n\t\t\t\t\tfor (int j = 0; j < newLength; j++) {\n\t\t\t\t\t\tif (probMatrix[i][j] == 1) {\n\t\t\t\t\t\t\tdoc.predictNewMappingIndex(j + 1, i + 1);\n\t\t\t\t\t\t\tdoc.predictOldMappingIndex(i + 1, j + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (option == -2) { // Baseline 2, using the similarity\n\t\t\t\t\t\t\t\t\t\t// baseline\n\t\t\t\tfor (int i = 0; i < oldLength; i++) {\n\t\t\t\t\tfor (int j = 0; j < newLength; j++) {\n\t\t\t\t\t\tif (probMatrix[i][j] > 0.5) {\n\t\t\t\t\t\t\tdoc.predictNewMappingIndex(j + 1, i + 1);\n\t\t\t\t\t\t\tdoc.predictOldMappingIndex(i + 1, j + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else { // current best approach\n\t\t\t\tfor (int i = 0; i < oldLength; i++) {\n\t\t\t\t\tfor (int j = 0; j < newLength; j++) {\n\t\t\t\t\t\tif (fixedMatrix[i][j] == 1) {\n\t\t\t\t\t\t\tdoc.predictNewMappingIndex(j + 1, i + 1);\n\t\t\t\t\t\t\tdoc.predictOldMappingIndex(i + 1, j + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Code for improving\n\t\t\t}\n\t\t}\n\t}",
"public void setAlignment(@Nullable Layout.Alignment alignment) {\n if (mAlignment == alignment) {\n return;\n }\n mAlignment = alignment;\n mNeedUpdateLayout = true;\n }",
"public AlignX getAlignmentX() { return AlignX.Left; }",
"public void setHAlign(int hAlign) {\n this.hAlign = hAlign;\n }",
"public Alignment(Properties props) {\r\n\t\talignmentThreshold = Integer.parseInt(props.getProperty(\"alignmentThreshold\"));\r\n\t}",
"void xsetAlignmentRefs(org.landxml.schema.landXML11.AlignmentNameRefs alignmentRefs);",
"private AminoAction AlignLeft(final SketchDocument doc) {\n return named(\"Align Left\", groupOnly(doc, new AminoAction() {\n @Override\n public void execute() throws Exception {\n double val = apply(doc.getSelection(), Double.MAX_VALUE, new Accumulate<Double>() {\n public Double accum(SketchNode node, Double value) {\n return Math.min(value, node.getInputBounds().getX() + node.getTranslateX());\n }\n });\n \n apply(doc.getSelection(), val, new Accumulate<Double>() {\n public Double accum(SketchNode node, Double value) {\n double x = node.getInputBounds().getX() + node.getTranslateX();\n node.setTranslateX(node.getTranslateX() + value - x);\n return value;\n }\n });\n }\n }));\n }",
"public boolean isAProperPairedAlignment(){\n\t\treturn testBitwiseFlag(2);\n\t}",
"public VFlowLayout(int align) {\n this(align, 5, 5, true, false);\n }",
"public GIZAWordAlignment(String f2e_line1, String f2e_line2,\n String f2e_line3, String e2f_line1, String e2f_line2, String e2f_line3)\n throws IOException {\n init(f2e_line1, f2e_line2, f2e_line3, e2f_line1, e2f_line2, e2f_line3);\n }",
"@Test\n\tpublic void testIncludeAlignmentBytesPascal() throws Exception {\n\t\tfinal AddressSet set = new AddressSet();\n\t\tset.addRange(addr(0x405d99), addr(0x405daa));\n\n\t\t// select the address set\n\t\ttool.firePluginEvent(\n\t\t\tnew ProgramSelectionPluginEvent(\"Test\", new ProgramSelection(set), program));\n\t\twaitForSwing();\n\n\t\tdialog = getDialog();\n\n\t\t// turn on pascal\n\t\tJCheckBox cb = (JCheckBox) findButton(dialog.getComponent(), \"Pascal Strings\");\n\t\tcb.setSelected(true);\n\n\t\tStringTableProvider provider = performSearch();\n\t\tStringTableModel model = (StringTableModel) getInstanceField(\"stringModel\", provider);\n\t\tGhidraTable table = (GhidraTable) getInstanceField(\"table\", provider);\n\t\ttoggleDefinedStateButtons(provider, false, true, false, false);\n\t\twaitForTableModel(model);\n\n\t\t// verify that rows points to the correct address\n\t\tassertEquals(\"00405d9a\", getModelValue(model, 0, addressColumnIndex).toString());\n\n\t\tselectRow(table, 0);\n\n\t\t// select the Include Alignment Nulls option\n\t\tJCheckBox includeAlignNullsCB =\n\t\t\t(JCheckBox) getInstanceField(\"addAlignmentBytesCheckbox\", provider);\n\t\tincludeAlignNullsCB.setSelected(true);\n\t\tsetAlignmentValue(provider, 2);\n\n\t\t// make string\n\t\tDockingAction makeStringAction =\n\t\t\t(DockingAction) getInstanceField(\"makeStringAction\", provider);\n\t\tperformAction(makeStringAction, model);\n\n\t\t//Test that p_string made with one align byte after it\n\t\tData d = listing.getDataAt(addr(0x405d9a));\n\t\tassertEquals(9, d.getLength());\n\t\td = listing.getDataAt(addr(0x405da3));\n\t\tassertEquals(1, d.getLength());\n\n\t}",
"private void doReplaceWithAligned(Structure struct) {\n\t\tDataTypeComponent[] otherComponents = struct.getDefinedComponents();\n\t\tfor (int i = 0; i < otherComponents.length; i++) {\n\t\t\tDataTypeComponent dtc = otherComponents[i];\n\t\t\tDataType dt = dtc.getDataType();\n\t\t\tint length = (dt instanceof Dynamic) ? dtc.getLength() : -1;\n\t\t\tdoAdd(dt, length, false, dtc.getFieldName(), dtc.getComment(), false);\n\t\t}\n\t\tadjustInternalAlignment(false);\n\t\tdataMgr.dataTypeChanged(this);\n\t}",
"private void alignSelectedFurniture(final AlignmentAction alignmentAction) {\n final List<HomePieceOfFurniture> selectedFurniture = getMovableSelectedFurniture();\n if (selectedFurniture.size() >= 2) {\n final List<Selectable> oldSelection = this.home.getSelectedItems();\n final HomePieceOfFurniture leadPiece = this.leadSelectedPieceOfFurniture;\n final AlignedPieceOfFurniture [] alignedFurniture = \n AlignedPieceOfFurniture.getAlignedFurniture(selectedFurniture, leadPiece);\n this.home.setSelectedItems(selectedFurniture);\n alignmentAction.alignFurniture(alignedFurniture, leadPiece);\n if (this.undoSupport != null) {\n UndoableEdit undoableEdit = new AbstractUndoableEdit() {\n @Override\n public void undo() throws CannotUndoException {\n super.undo();\n undoAlignFurniture(alignedFurniture); \n home.setSelectedItems(oldSelection);\n }\n \n @Override\n public void redo() throws CannotRedoException {\n super.redo();\n home.setSelectedItems(selectedFurniture);\n alignmentAction.alignFurniture(alignedFurniture, leadPiece);\n }\n \n @Override\n public String getPresentationName() {\n return preferences.getLocalizedString(FurnitureController.class, \"undoAlignName\");\n }\n };\n this.undoSupport.postEdit(undoableEdit);\n }\n }\n }",
"private void alignForRead(Bytes<?> bytes) {\n bytes.readPositionForHeader(usePadding);\n }",
"public boolean isPartOfAPairedAlignment(){\n\t\treturn testBitwiseFlag(1);\n\t}",
"public void alignCenter() {\n\t\ttop.middle();\n\t}",
"public void align(ArrayList<RevisionDocument> trainDocs,\n\t\t\tArrayList<RevisionDocument> testDocs, int option) throws Exception {\n\t\tHashtable<DocumentPair, double[][]> probMatrix = aligner\n\t\t\t\t.getProbMatrixTable(trainDocs, testDocs, option);\n\t\tIterator<DocumentPair> it = probMatrix.keySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tDocumentPair dp = it.next();\n\t\t\tString name = dp.getFileName();\n\t\t\tfor (RevisionDocument doc : testDocs) {\n\t\t\t\tif (doc.getDocumentName().equals(name)) {\n\t\t\t\t\tdouble[][] sim = probMatrix.get(dp);\n\t\t\t\t\tdouble[][] fixedSim = aligner.alignWithDP(dp, sim, option);\n\t\t\t\t\talignSingle(doc, sim, fixedSim, option);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Builder clearAligning() {\n bitField0_ = (bitField0_ & ~0x00000008);\n aligning_ = false;\n onChanged();\n return this;\n }",
"public void setHorizontalAlign(int align) {\r\n this.halign = align;\r\n updateToolbar();\r\n\r\n }",
"public static void main(String[] args) throws AlignmentException, OntowrapException, IOException {\n\t\tFile inputAlignmentFile = new File(\"./files/ESWC_ATMONTO_AIRM/Evaluation/SWEET-ATMONTO/sweet-atmonto-aml.rdf\");\n\t\tString output = \"./files/ESWC_ATMONTO_AIRM/Evaluation/SWEET-ATMONTO/conceptScopeMismatchAlignment.rdf\";\t\t\n\n\n\t\t\n\t\t//parse the alignment file\n\t\tAlignmentParser parser = new AlignmentParser();\n\t\tBasicAlignment amlAlignment = (BasicAlignment) parser.parse(inputAlignmentFile.toURI().toString());\n\t\t\n\t\tSystem.out.println(\"The input alignment contains \" + amlAlignment.nbCells() + \" relations\");\n\t\t\n\t\tURIAlignment conceptScopeMismatchAlignment = detectConceptScopeMismatch(amlAlignment);\n\t\t\t\t\n\t\t//write produced alignment to file\n\t\tPrintWriter writer = new PrintWriter(\n\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\tnew FileWriter(output)), true); \n\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\tconceptScopeMismatchAlignment.render(renderer);\n\t\t\n\t\tSystem.out.println(\"The filtered alignment contains \" + conceptScopeMismatchAlignment.nbCells() + \" mismatch relations\");\n\t\t\n\t\twriter.flush();\n\t\twriter.close();\n\t\t\n\t\tString a = \"NavigationAid\";\n\t\tString b = \"RadioNavigationAid\";\n\t\t\n\t\tSystem.out.println(isCompound(a,b));\n\t\t\n\t\t\n\n\t}",
"public String[] getLocalAlignment(String s1, String s2) {\r\n\t\tint match = 1;\r\n\t\tint mismatch = -1;\r\n\t\tint gap = -2;\r\n\t\tSmithWaterman algorithm = new SmithWaterman();\r\n\t\tBasicScoringScheme scoring = new BasicScoringScheme(match, mismatch, gap);\r\n\t\talgorithm.setScoringScheme(scoring);\r\n\t\talgorithm.loadSequences(s1, s2);\r\n\t\tString[] strs = new String[3];\r\n\t\t\r\n\t\ttry {\r\n\t\t\tstrs[0] = algorithm.getPairwiseAlignment().getGappedSequence1();\r\n\t\t\tstrs[1] = algorithm.getPairwiseAlignment().getGappedSequence2();\r\n\t\t\tstrs[2] = algorithm.getPairwiseAlignment().toString();\r\n\t\t\t//System.out.println(algorithm.getPairwiseAlignment());\r\n\t\t} catch (IncompatibleScoringSchemeException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\treturn strs;\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t List<Result> outputK = new ArrayList<Result>();\n\n\t\t\t\n\t\t\tint alignment_type = Integer.parseInt(args[0]);\n\t\t\t\n\t\t\tif(alignment_type==1){\n\t\t\t\t\n\t\t\t\tGlobalAlignment gb = new GlobalAlignment();\n\n\t\t\t\toutputK = \tgb.PerformGlobalAlignment(args[1],args[2],args[3],args[4],Integer.parseInt(args[5]),Integer.parseInt(args[6]));\n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\tfor(int i=0;i<outputK.size();i++){\n\t\t\t\t\tResult r = outputK.get(i);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(r.score);\n \tSystem.out.println(\"id1 \"+r.id1+\" \"+r.startpos1+\" \"+r.seq1);\n\t\t\t\t\tSystem.out.println(\"id2 \"+r.id2+\" \"+r.startpos2+\" \"+r.seq2);\n//\t\t\t\t\t\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if(alignment_type==2){\n\t\t\t\t\n\t\t\t\tLocalAlignment loc = new LocalAlignment();\n\t\t\t\toutputK = \tloc.PerformLocalAlignment(args[1],args[2],args[3],args[4],Integer.parseInt(args[5]),Integer.parseInt(args[6]));\n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\tfor(int i=0;i<outputK.size();i++){\n\t\t\t\t\tResult r = outputK.get(i);\n\n\t\t\t\t\tSystem.out.println(r.score);\n System.out.println(\"id1 \"+r.id1+\" \"+r.startpos1+\" \"+r.seq1);\n\t\t\t\t\tSystem.out.println(\"id2 \"+r.id2+\" \"+r.startpos2+\" \"+r.seq2);\n\n\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}else if(alignment_type==3){\n\t\t\t\t\n\t\t \tDoveTail dt = new DoveTail();\t\t\n\t\t\t\toutputK = \tdt.PerformDoveTailAlignment(args[1],args[2],args[3],args[4],Integer.parseInt(args[5]),Integer.parseInt(args[6]));\n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\tfor(int i=0;i<outputK.size();i++){\n\t\t\t\t\tResult r = outputK.get(i);\n\n\t\t\t\t\tSystem.out.println(r.score);\n System.out.println(\"id1 \"+r.id1+\" \"+r.startpos1+\" \"+r.seq1);\n\t\t\t\t\tSystem.out.println(\"id2 \"+r.id2+\" \"+r.startpos2+\" \"+r.seq2);\n\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Enter 1,2 or 3\");\n\t\t\t}\n\t\t\n\t\n\t}",
"void padTrueAndRef() {\n int maxLen = Math.max(trueTo.length(), ref.length());\n trueTo = pad(trueTo, maxLen);\n ref = pad(ref, maxLen);\n }",
"public void setAlignment(Position alignment)\n {\n int align = alignment.value;\n JLabel jl = getComponent();\n if ((align&NORTH.value) != 0)\n jl.setVerticalAlignment(SwingConstants.TOP);\n else if ((align&SOUTH.value) != 0)\n jl.setVerticalAlignment(SwingConstants.BOTTOM);\n else\n jl.setVerticalAlignment(SwingConstants.CENTER);\n if ((align&EAST.value) != 0)\n jl.setHorizontalAlignment(SwingConstants.RIGHT);\n else if ((align&WEST.value) != 0)\n jl.setHorizontalAlignment(SwingConstants.LEFT);\n else\n jl.setHorizontalAlignment(SwingConstants.CENTER);\n invalidateSize();\n }",
"public AlignmentCalc(AlignmentGui parent, Structure s1, Structure s2 ) {\n\n\t\tthis.parent= parent;\n\n\t\tstructure1 = s1;\n\t\tstructure2 = s2;\n\n\t}",
"@ReactMethod\n public void setAlignment(int alignment, Promise promise){\n if (woyouService == null) {\n Toast.makeText(this.reactContext, R.string.printer_disconnect, Toast.LENGTH_LONG).show();\n promise.reject(\"0\", \"\");\n }\n\n try {\n woyouService.setAlignment(alignment, null);\n promise.resolve(null);\n } catch (RemoteException e) {\n promise.reject(\"0\", e.getMessage());\n }\n }",
"public void setStatusAlign(String statusAlign) {\n\t\tthis.statusAlign = statusAlign;\n\t\thandleConfig(\"statusAlign\", statusAlign);\n\t}",
"public static native void OpenMM_AmoebaAngleForce_setAmoebaGlobalAnglePentic(PointerByReference target, double penticK);"
]
| [
"0.71160626",
"0.6648732",
"0.65805244",
"0.6480086",
"0.64361924",
"0.64010024",
"0.6396194",
"0.6265085",
"0.6244998",
"0.6155444",
"0.61503834",
"0.6085245",
"0.6018873",
"0.5985085",
"0.59831285",
"0.5968722",
"0.5968611",
"0.5900202",
"0.5898636",
"0.5885545",
"0.58688927",
"0.5754733",
"0.56855273",
"0.5677328",
"0.56645834",
"0.5663102",
"0.56620973",
"0.5629643",
"0.5601972",
"0.5601972",
"0.5582833",
"0.5579292",
"0.5512863",
"0.55105174",
"0.5498088",
"0.5496809",
"0.5488468",
"0.54819787",
"0.54754984",
"0.546013",
"0.54597867",
"0.5459463",
"0.54503953",
"0.5412954",
"0.53868395",
"0.53821903",
"0.53602827",
"0.5360173",
"0.5358712",
"0.5328298",
"0.53044033",
"0.5290435",
"0.5280026",
"0.5279895",
"0.5269743",
"0.52667844",
"0.52652925",
"0.5249481",
"0.52428985",
"0.52353096",
"0.5233275",
"0.52315116",
"0.5231273",
"0.5220425",
"0.52128726",
"0.5211654",
"0.52001035",
"0.5189891",
"0.5166366",
"0.51549363",
"0.5147579",
"0.51357013",
"0.51198804",
"0.5111709",
"0.5110351",
"0.50900483",
"0.5084425",
"0.50798404",
"0.50519776",
"0.5044237",
"0.5043825",
"0.50339127",
"0.5019927",
"0.5012389",
"0.5007658",
"0.4993887",
"0.49827027",
"0.49799275",
"0.4979319",
"0.4977988",
"0.49660158",
"0.49473467",
"0.49378768",
"0.4929883",
"0.49172026",
"0.4888521",
"0.48821908",
"0.48763806",
"0.4860949",
"0.4852911",
"0.48410997"
]
| 0.0 | -1 |
Generate the alignment of sentences, the test revision documents would be modified at sentence alignment, creating the candidate revisions | public void align(ArrayList<RevisionDocument> trainDocs,
ArrayList<RevisionDocument> testDocs, int option, boolean usingNgram)
throws Exception {
Hashtable<DocumentPair, double[][]> probMatrix = aligner
.getProbMatrixTable(trainDocs, testDocs, option);
Iterator<DocumentPair> it = probMatrix.keySet().iterator();
while (it.hasNext()) {
DocumentPair dp = it.next();
String name = dp.getFileName();
for (RevisionDocument doc : testDocs) {
if (doc.getDocumentName().equals(name)) {
double[][] sim = probMatrix.get(dp);
double[][] fixedSim = aligner.alignWithDP(dp, sim, option);
alignSingle(doc, sim, fixedSim, option);
}
}
}
Hashtable<String, RevisionDocument> table = new Hashtable<String, RevisionDocument>();
for (RevisionDocument doc : testDocs) {
RevisionUnit predictedRoot = new RevisionUnit(true);
predictedRoot.setRevision_level(3); // Default level to 3
doc.setPredictedRoot(predictedRoot);
table.put(doc.getDocumentName(), doc);
}
RevisionPurposeClassifier rpc = new RevisionPurposeClassifier();
Instances data = rpc.createInstances(testDocs, usingNgram);
Hashtable<String, Integer> revIndexTable = new Hashtable<String, Integer>();
int dataSize = data.numInstances();
for (int j = 0;j<dataSize;j++) {
Instance instance = data.instance(j);
int ID_index = data.attribute("ID").index();
// String ID =
// data.instance(ID_index).stringValue(instance.attribute(ID_index));
String ID = instance.stringValue(instance.attribute(ID_index));
AlignStruct as = AlignStruct.parseID(ID);
// System.out.println(ID);
RevisionDocument doc = table.get(as.documentpath);
RevisionUnit ru = new RevisionUnit(doc.getPredictedRoot());
ru.setNewSentenceIndex(as.newIndices);
ru.setOldSentenceIndex(as.oldIndices);
if (as.newIndices == null || as.newIndices.size() == 0) {
ru.setRevision_op(RevisionOp.DELETE);
} else if (as.oldIndices == null || as.oldIndices.size() == 0) {
ru.setRevision_op(RevisionOp.ADD);
} else {
ru.setRevision_op(RevisionOp.MODIFY);
}
ru.setRevision_purpose(RevisionPurpose.CLAIMS_IDEAS); // default of
// ADD and
// Delete
// are
// content
// edits
ru.setRevision_level(0);
if (revIndexTable.containsKey(as.documentpath)) {
ru.setRevision_index(revIndexTable.get(as.documentpath));
revIndexTable.put(as.documentpath,
revIndexTable.get(as.documentpath) + 1);
} else {
ru.setRevision_index(1);
revIndexTable.put(as.documentpath, 2);
}
doc.getPredictedRoot().addUnit(ru);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Before\n\tpublic void setUp() throws Exception {\n\t\tList<Paragraph> paragraphs = new ArrayList<Paragraph>();\n\t\tList<Paragraph> paragraphsWithNoSentences = new ArrayList<Paragraph>();\n\t\t\n\t\tScanner sc = null, sc1 = null;\n\t\ttry {\n\t\t\tsc = new Scanner(new File(\"testsearchtext.txt\"));\n\t\t\tsc1 = new Scanner(new File(\"testsearchentity.txt\"));\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsc.useDelimiter(\"[.]\");\n\t\tsc1.useDelimiter(\"[|]\");\n\t\t\n\t\tList<Sentence> sentences = new ArrayList<Sentence>();\n\t\tint sCount = 0;\n\t\tint pCount = 0;\n\t\twhile(sc.hasNext()){\n\t\t\tString temp = sc.next().trim();\n\n\t\t\tif(sCount > 0 && (sCount%10 == 0 || !sc.hasNext())){\n\t\t\t\tParagraph p = new Paragraph(pCount);\n\t\t\t\tparagraphsWithNoSentences.add(p);\n\t\t\t\t\n\t\t\t\tp = new Paragraph(pCount);\n\t\t\t\tp.setSentences(sentences);\n\t\t\t\tparagraphs.add(p);\n\t\t\t\tpCount++;\n\t\t\t\t\n\t\t\t\tsentences = new ArrayList<Sentence>();\n\t\t\t}\n\t\t\t\n\t\t\tif(!temp.equals(\"\"))\n\t\t\t\tsentences.add(new Sentence((sCount%10), temp));\n\t\t\t\n\t\t\tsCount++;\n\t\t}\n\t\t\n\t\tList<Entity> entities = new ArrayList<Entity>();\n\t\tint currType = -1; \n\t\twhile(sc1.hasNext()){\n\t\t\tString temp = sc1.next().trim();\n\t\t\tif(temp.equals(\"place\")){currType = Entity.PLACE;} else\n\t\t\tif(temp.equals(\"url\")){currType = Entity.URL;} else\n\t\t\tif(temp.equals(\"email\")){currType = Entity.EMAIL;} else\n\t\t\tif(temp.equals(\"address\")){currType = Entity.ADDRESS;} \n\t\t\telse{\n\t\t\t\tentities.add(new Entity(currType, temp));\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tSource s = new Source(\"testsearchtext.txt\", \"testsearchtext.txt\");\n\t\tpt1 = new ProcessedText(s, paragraphs, null); \n\t\t\n\t\ts = new Source(\"testsearchtext1.txt\", \"testsearchtext1.txt\");\n\t\tpt2 = new ProcessedText(s, paragraphsWithNoSentences, null); \n\t\t\n\t\tpt3 = new ProcessedText();\n\t\tpt3.setParagraphs(paragraphs);\n\t\t\n\t\tpt4 = new ProcessedText();\n\t\ts = new Source(\"testsearchtext2.txt\", \"testsearchtext2.txt\");\n\t\tpt4.setMetadata(s);\n\t\t\n\t\ts = new Source(\"testsearchtext3.txt\", \"testsearchtext3.txt\");\n\t\tpt5 = new ProcessedText(s, paragraphs, entities); \n\t\t\n\t\ts = new Source(\"testsearchtext4.txt\", \"testsearchtext4.txt\");\n\t\tpt6 = new ProcessedText(s, null, entities); \n\t}",
"@Test\n \tpublic void testSimpleAlignments()\n \t{\n \t\tSystem.out.format(\"\\n\\n-------testSimpleAlignments() ------------------------\\n\");\n \t\tPseudoDamerauLevenshtein DL = new PseudoDamerauLevenshtein();\n \t\t//DL.init(\"AB\", \"CD\", false, true);\n \t\t//DL.init(\"ACD\", \"ADE\", false, true);\n \t\t//DL.init(\"AB\", \"XAB\", false, true);\n \t\t//DL.init(\"AB\", \"XAB\", true, true);\n \t\t//DL.init(\"fit\", \"xfity\", true, true);\n \t\t//DL.init(\"fit\", \"xxfityyy\", true, true);\n \t\t//DL.init(\"ABCD\", \"BACD\", false, true);\n \t\t//DL.init(\"fit\", \"xfityfitz\", true, true);\n \t\t//DL.init(\"fit\", \"xfitfitz\", true, true);\n \t\t//DL.init(\"fit\", \"xfitfitfitfitz\", true, true);\n \t\t//DL.init(\"setup\", \"set up\", true, true);\n \t\t//DL.init(\"set up\", \"setup\", true, true);\n \t\t//DL.init(\"hobbies\", \"hobbys\", true, true);\n \t\t//DL.init(\"hobbys\", \"hobbies\", true, true);\n \t\t//DL.init(\"thee\", \"The x y the jdlsjds salds\", true, false);\n \t\tDL.init(\"Bismark\", \"... Bismarck lived...Bismarck reigned...\", true, true);\n \t\t//DL.init(\"refugee\", \"refuge x y\", true, true);\n \t\t//StringMatchingStrategy.APPROXIMATE_MATCHING_MINPROB\n \t\tList<PseudoDamerauLevenshtein.Alignment> alis = DL.computeAlignments(0.65);\n \t\tSystem.out.format(\"----------result of testSimpleAlignments() ---------------------\\n\\n\");\n \t\tfor (Alignment ali: alis)\n \t\t{\n \t\t\tali.print();\n \t\t}\n \t}",
"public void align(ArrayList<RevisionDocument> trainDocs,\n\t\t\tArrayList<RevisionDocument> testDocs, int option) throws Exception {\n\t\tHashtable<DocumentPair, double[][]> probMatrix = aligner\n\t\t\t\t.getProbMatrixTable(trainDocs, testDocs, option);\n\t\tIterator<DocumentPair> it = probMatrix.keySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tDocumentPair dp = it.next();\n\t\t\tString name = dp.getFileName();\n\t\t\tfor (RevisionDocument doc : testDocs) {\n\t\t\t\tif (doc.getDocumentName().equals(name)) {\n\t\t\t\t\tdouble[][] sim = probMatrix.get(dp);\n\t\t\t\t\tdouble[][] fixedSim = aligner.alignWithDP(dp, sim, option);\n\t\t\t\t\talignSingle(doc, sim, fixedSim, option);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void alignSingle(RevisionDocument doc, double[][] probMatrix,\n\t\t\tdouble[][] fixedMatrix, int option) throws Exception {\n\t\tint oldLength = probMatrix.length;\n\t\tint newLength = probMatrix[0].length;\n\t\tif (doc.getOldSentencesArray().length != oldLength\n\t\t\t\t|| doc.getNewSentencesArray().length != newLength) {\n\t\t\tthrow new Exception(\"Alignment sentence does not match\");\n\t\t} else {\n\t\t\t/*\n\t\t\t * Rules for alignment 1. Allows one to many and many to one\n\t\t\t * alignment 2. No many to many alignments (which would make the\n\t\t\t * annotation even more difficult)\n\t\t\t */\n\t\t\tif (option == -1) { // Baseline 1, using the exact match baseline\n\t\t\t\tfor (int i = 0; i < oldLength; i++) {\n\t\t\t\t\tfor (int j = 0; j < newLength; j++) {\n\t\t\t\t\t\tif (probMatrix[i][j] == 1) {\n\t\t\t\t\t\t\tdoc.predictNewMappingIndex(j + 1, i + 1);\n\t\t\t\t\t\t\tdoc.predictOldMappingIndex(i + 1, j + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (option == -2) { // Baseline 2, using the similarity\n\t\t\t\t\t\t\t\t\t\t// baseline\n\t\t\t\tfor (int i = 0; i < oldLength; i++) {\n\t\t\t\t\tfor (int j = 0; j < newLength; j++) {\n\t\t\t\t\t\tif (probMatrix[i][j] > 0.5) {\n\t\t\t\t\t\t\tdoc.predictNewMappingIndex(j + 1, i + 1);\n\t\t\t\t\t\t\tdoc.predictOldMappingIndex(i + 1, j + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else { // current best approach\n\t\t\t\tfor (int i = 0; i < oldLength; i++) {\n\t\t\t\t\tfor (int j = 0; j < newLength; j++) {\n\t\t\t\t\t\tif (fixedMatrix[i][j] == 1) {\n\t\t\t\t\t\t\tdoc.predictNewMappingIndex(j + 1, i + 1);\n\t\t\t\t\t\t\tdoc.predictOldMappingIndex(i + 1, j + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Code for improving\n\t\t\t}\n\t\t}\n\t}",
"public ArrayList<String> makeSentences(String text) {\n \t\t/*\n \t\t * Quick check so we're not trying to split up an empty\n \t\t * String. This only happens right before the user types\n \t\t * at the end of a document and we don't have anything to\n \t\t * split, so return.\n \t\t */\n \t\tif (text.equals(\"\")) {\n \t\t\tArrayList<String> sents = new ArrayList<String>();\n \t\t\tsents.add(\"\");\n \t\t\treturn sents;\n \t\t}\n \t\t\n \t\t/**\n \t\t * Because the eosTracker isn't initialized until the TaggedDocument is,\n \t\t * it won't be ready until near the end of DocumentProcessor, in which\n \t\t * case we want to set it to the correct\n \t\t */\n \t\tthis.eosTracker = main.editorDriver.taggedDoc.eosTracker;\n \t\tthis.editorDriver = main.editorDriver;\n \t\t\n \t\tArrayList<String> sents = new ArrayList<String>(ANONConstants.EXPECTED_NUM_OF_SENTENCES);\n \t\tArrayList<String> finalSents = new ArrayList<String>(ANONConstants.EXPECTED_NUM_OF_SENTENCES);\n \t\tboolean mergeNext = false;\n \t\tboolean mergeWithLast = false;\n \t\tboolean forceNoMerge = false;\n \t\tint currentStart = 1;\n \t\tint currentStop = 0;\n \t\tString temp;\n \n \t\t/**\n \t\t * replace unicode format characters that will ruin the regular\n \t\t * expressions (because non-printable characters in the document still\n \t\t * take up indices, but you won't know they're there untill you\n \t\t * \"arrow\" though the document and have to hit the same arrow twice to\n \t\t * move past a certain point. Note that we must use \"Cf\" rather than\n \t\t * \"C\". If we use \"C\" or \"Cc\" (which includes control characters), we\n \t\t * remove our newline characters and this screws up the document. \"Cf\"\n \t\t * is \"other, format\". \"Cc\" is \"other, control\". Using \"C\" will match\n \t\t * both of them.\n \t\t */\n \t\ttext = text.replaceAll(\"\\u201C\",\"\\\"\");\n \t\ttext = text.replaceAll(\"\\u201D\",\"\\\"\");\n \t\ttext = text.replaceAll(\"\\\\p{Cf}\",\"\");\n \n \t\tint lenText = text.length();\n \t\tint index = 0;\n \t\tint buffer = editorDriver.sentIndices[0];\n \t\tString safeString = \"\";\n \t\tMatcher abbreviationFinder = ABBREVIATIONS_PATTERN.matcher(text);\n \t\t\n \t\t//================ SEARCHING FOR ABBREVIATIONS ================\n \t\twhile (index < lenText-1 && abbreviationFinder.find(index)) {\n \t\t\tindex = abbreviationFinder.start();\n \t\t\t\n \t\t\ttry {\n \t\t\t\tint abbrevLength = index;\n \t\t\t\twhile (text.charAt(abbrevLength) != ' ') {\n \t\t\t\t\tabbrevLength--;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (ABBREVIATIONS.contains(text.substring(abbrevLength+1, index+1))) {\n \t\t\t\t\teosTracker.setIgnore(index+buffer, true);\n \t\t\t\t}\n \t\t\t} catch (Exception e) {}\n \t\t\t\n \t\t\tindex++;\n \t\t}\t\t\n \t\t\n \t\tMatcher sent = EOS_chars.matcher(text);\n \t\tboolean foundEOS = sent.find(currentStart); // xxx TODO xxx take this EOS character, and if not in quotes, swap it for a permanent replacement, and create and add an EOS to the calling TaggedDocument's eosTracker.\n \t\t\n \t\t/*\n \t\t * We want to check and make sure that the EOS character (if one was found) is not supposed to be ignored. If it is, we will act like we did not\n \t\t * find it. If there are multiple sentences with multiple EOS characters passed it will go through each to check, foundEOS will only be true if\n \t\t * an EOS exists in \"text\" that would normally be an EOS character and is not set to be ignored.\n \t\t */\n \t\t\n \t\tindex = 0;\n \t\tif (foundEOS) {\t\n \t\t\ttry {\n \t\t\t\twhile (index < lenText-1 && sent.find(index)) {\n \t\t\t\t\tindex = sent.start();\n \t\t\t\t\tif (!eosTracker.sentenceEndAtIndex(index+buffer)) {\n \t\t\t\t\t\tfoundEOS = false;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tfoundEOS = true;\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\tindex++;\n \t\t\t\t}\n \t\t\t} catch (IllegalStateException e) {}\n \t\t}\n \t\t//We need to reset the Matcher for the code below\n \t\tsent = EOS_chars.matcher(text);\n \t\tsent.find(currentStart);\n \t\t\n \t\tMatcher sentEnd;\n \t\tMatcher citationFinder;\n \t\tboolean hasCitation = false;\n \t\tint charNum = 0;\n \t\tint lenTemp = 0;\n \t\tint lastQuoteAt = 0;\n \t\tint lastParenAt = 0;\n \t\tboolean foundQuote = false;\n \t\tboolean foundParentheses = false;\n \t\tboolean isSentence;\n \t\tboolean foundAtLeastOneEOS = foundEOS;\n \t\t\n \t\t/**\n \t\t * Needed otherwise when the user has text like below:\n \t\t * \t\tThis is my sentence one. This is \"My sentence?\" two. This is the last sentence.\n \t\t * and they begin to delete the EOS character as such:\n \t\t * \t\tThis is my sentence one. This is \"My sentence?\" two This is the last sentence.\n \t\t * Everything gets screwed up. This is because the operations below operate as expected only when there actually is an EOS character\n \t\t * at the end of the text, it expects it there in order to function properly. Now usually if there is no EOS character at the end it wouldn't\n \t\t * matter since the while loop and !foundAtLeastOneEOS conditional are executed properly, BUT as you can see the quotes, or more notably the EOS character inside\n \t\t * the quotes, triggers this initial test and thus the operation breaks. This is here just to make sure that does not happen.\n \t\t */\n \t\tString trimmedText = text.trim();\n \t\tint trimmedTextLength = trimmedText.length();\n \n \t\t//We want to make sure that if there is an EOS character at the end that it is not supposed to be ignored\n \t\tboolean EOSAtSentenceEnd = true;\n \t\tif (trimmedTextLength != 0) {\n \t\t\tEOSAtSentenceEnd = EOS.contains(trimmedText.substring(trimmedTextLength-1, trimmedTextLength)) && eosTracker.sentenceEndAtIndex(editorDriver.sentIndices[1]-1);\n \t\t} else {\n \t\t\tEOSAtSentenceEnd = false;\n \t\t}\n \t\t\n \t\t//Needed so that if we are deleting abbreviations like \"Ph.D.\" this is not triggered.\n \t\tif (!EOSAtSentenceEnd && (editorDriver.taggedDoc.watchForEOS == -1))\n \t\t\tEOSAtSentenceEnd = true;\n \n \t\twhile (foundEOS == true) {\n \t\t\tcurrentStop = sent.end();\n \t\t\t\n \t\t\t//We want to make sure currentStop skips over ignored EOS characters and stops only when we hit a true EOS character\n \t\t\ttry {\n \t\t\t\twhile (!eosTracker.sentenceEndAtIndex(currentStop+buffer-1) && currentStop != lenText) {\n \t\t\t\t\tsent.find(currentStop+1);\n \t\t\t\t\tcurrentStop = sent.end();\n \t\t\t\t}\n \t\t\t} catch (Exception e) {}\n \n \t\t\ttemp = text.substring(currentStart-1,currentStop);\n \t\t\tlenTemp = temp.length();\n \t\t\tlastQuoteAt = 0;\n \t\t\tlastParenAt = 0;\n \t\t\tfoundQuote = false;\n \t\t\tfoundParentheses = false;\n \t\t\t\n \t\t\tfor(charNum = 0; charNum < lenTemp; charNum++){\n \t\t\t\tif (temp.charAt(charNum) == '\\\"') {\n \t\t\t\t\tlastQuoteAt = charNum;\n \t\t\t\t\t\n \t\t\t\t\tif (foundQuote == true)\n \t\t\t\t\t\tfoundQuote = false;\n \t\t\t\t\telse\n \t\t\t\t\t\tfoundQuote = true;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (temp.charAt(charNum) == '(') {\n \t\t\t\t\tlastParenAt = charNum;\n \t\t\t\t\t\n \t\t\t\t\tif (foundParentheses)\n \t\t\t\t\t\tfoundParentheses = false;\n \t\t\t\t\telse\n \t\t\t\t\t\tfoundParentheses = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (foundQuote == true && ((temp.indexOf(\"\\\"\",lastQuoteAt+1)) == -1)) { // then we found an EOS character that shouldn't split a sentence because it's within an open quote.\n \t\t\t\tif ((currentStop = text.indexOf(\"\\\"\",currentStart +lastQuoteAt+1)) == -1) {\n \t\t\t\t\tcurrentStop = text.length(); // if we can't find a closing quote in the rest of the input text, then we assume the author forgot to put a closing quote, and act like it's at the end of the input text.\n \t\t\t\t}\n \t\t\t\telse{\n \t\t\t\t\tcurrentStop +=1;\n \t\t\t\t\tmergeNext=true;// the EOS character we are looking for is not in this section of text (section being defined as a substring of 'text' between two EOS characters.)\n \t\t\t\t}\n \t\t\t}\n \t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\n \t\t\tif (foundParentheses && ((temp.indexOf(\")\", lastParenAt+1)) == -1)) {\n \t\t\t\tif ((currentStop = text.indexOf(\")\", currentStart + lastParenAt + 1)) == -1)\n \t\t\t\t\tcurrentStop = text.length();\n \t\t\t\telse {\n \t\t\t\t\tcurrentStop += 1;\n \t\t\t\t\tmergeNext = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \n \t\t\tif (foundQuote) {\n \t\t\t\tsentEnd = SENTENCE_QUOTE.matcher(text);\t\n \t\t\t\tisSentence = sentEnd.find(currentStop-2); // -2 so that we match the EOS character before the quotes (not -1 because currentStop is one greater than the last index of the string -- due to the way substring works, which is includes the first index, and excludes the end index: [start,end).)\n \n \t\t\t\tif (isSentence == true) { // If it seems that the text looks like this: He said, \"Hello.\" Then she said, \"Hi.\" \n \t\t\t\t\t// Then we want to split this up into two sentences (it's possible to have a sentence like this: He said, \"Hello.\")\n \t\t\t\t\tcurrentStop = text.indexOf(\"\\\"\",sentEnd.start())+1;\n \t\t\t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\t\tforceNoMerge = true;\n \t\t\t\t\tmergeNext = false;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (foundParentheses) {\n \t\t\t\tsentEnd = SENTENCE_PARENTHESES.matcher(text);\n \t\t\t\tisSentence = sentEnd.find(currentStop-2);\n \t\t\t\t\n \t\t\t\tif (isSentence == true) {\n \t\t\t\t\tcurrentStop = text.indexOf(\")\", sentEnd.start()) + 1;\n \t\t\t\t\tsafeString = text.substring(currentStart-1, currentStop);\n \t\t\t\t\tforceNoMerge = true;\n \t\t\t\t\tmergeNext = false;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t// now check to see if there is a CITATION after the sentence (doesn't just apply to quotes due to paraphrasing)\n \t\t\t// The rule -- at least as of now -- is if after the EOS mark there is a set of parenthesis containing either one word (name) or a name and numbers (name 123) || (123 name) || (123-456 name) || (name 123-456) || etc..\n \t\t\tcitationFinder = CITATION.matcher(text.substring(currentStop));\t\n \t\t\thasCitation = citationFinder.find(); // -2 so that we match the EOS character before the quotes (not -1 because currentStop is one greater than the last index of the string -- due to the way substring works, which is includes the first index, and excludes the end index: [start,end).)\n \t\t\t\n \t\t\tif (hasCitation == true) { // If it seems that the text looks like this: He said, \"Hello.\" Then she said, \"Hi.\" \n \t\t\t\t// Then we want to split this up into two sentences (it's possible to have a sentence like this: He said, \"Hello.\")\n \t\t\t\tcurrentStop = text.indexOf(\")\",citationFinder.start()+currentStop)+1;\n \t\t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\tmergeNext = false;\n \t\t\t}\t\n \t\t\t\n \t\t\tif (mergeWithLast) {\n \t\t\t\tmergeWithLast=false;\n \t\t\t\tString prev=sents.remove(sents.size()-1);\n \t\t\t\tsafeString=prev+safeString;\n \t\t\t}\n \t\t\t\n \t\t\tif (mergeNext && !forceNoMerge) {//makes the merge happen on the next pass through\n \t\t\t\tmergeNext=false;\n \t\t\t\tmergeWithLast=true;\n \t\t\t} else {\n \t\t\t\tforceNoMerge = false;\n \t\t\t\tfinalSents.add(safeString);\n \t\t\t}\n \t\t\n \t\t\tsents.add(safeString);\n \t\t\t\n \t\t\t//// xxx xxx xxx return the safeString_subbedEOS too!!!!\n \t\t\tif (currentStart < 0 || currentStop < 0) {\n \t\t\t\tLogger.logln(NAME+\"Something went really wrong making sentence tokens.\", LogOut.STDERR);\n \t\t\t\tErrorHandler.fatalProcessingError(null);\n \t\t\t}\n \n \t\t\tcurrentStart = currentStop+1;\n \t\t\tif (currentStart >= lenText) {\n \t\t\t\tfoundEOS = false;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tfoundEOS = sent.find(currentStart);\n \t\t}\n \n \t\tif (!foundAtLeastOneEOS || !EOSAtSentenceEnd) {\n \t\t\tArrayList<String> wrapper = new ArrayList<String>(1);\n \t\t\twrapper.add(text);\n \t\t\treturn wrapper;\n \t\t}\n \t\t\n \t\treturn finalSents;\n \t}",
"public static void main(String[] args) {\n\t\tString s = \"this is a small house .\";\n\t\tString t = \"das ist ein kleines haus .\";\n\t\tString m = \"das ist |0-1| ein kleines |2-3| haus . |4-5|\";\n\t\tArrayList<String> x = new XlingualProjection().ExtractAlignments(s,t,m);\n\t\tfor (int i=0; i<x.size(); i++){\n\t\t\tSystem.out.println(x.get(i));\n\t\t}\n\t\n\t\tString[] y = new XlingualProjection().getSrcPhrases(x);\n\t\tint start = 0;\n\t\tint end = 0;\n\t\t\n\t\tfor(int i=0; i < y.length; i++){ // Traverse through each phrase\n \tend = start + y[i].length();\n \tSystem.out.println(y[i] + \" \" + start + \" \" + end);\n \t\t\n \t\tstart = end+1;\n }\n\n }",
"public void repeatAlign(ArrayList<RevisionDocument> docs) throws Exception {\n\t\tHashtable<String, RevisionDocument> table = new Hashtable<String, RevisionDocument>();\n\t\tfor (RevisionDocument doc : docs) {\n\t\t\tRevisionUnit predictedRoot = new RevisionUnit(true);\n\t\t\tpredictedRoot.setRevision_level(3); // Default level to 3\n\t\t\tdoc.setPredictedRoot(predictedRoot);\n\t\t\ttable.put(doc.getDocumentName(), doc);\n\t\t\tArrayList<RevisionUnit> rus = doc.getRoot().getRevisionUnitAtLevel(\n\t\t\t\t\t0);\n\t\t\tfor (RevisionUnit ru : rus) {\n\t\t\t\tpredictedRoot.addUnit(ru.copy(predictedRoot));\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\r\n // feed the generator a fixed random value for repeatable behavior\r\n MarkovTextGeneratorLoL gen = new MarkovTextGeneratorLoL(new Random(42));\r\n //String textString = \"hi there hi Leo\";\r\n //String textString = \"\";\r\n \r\n String textString = \"Hello. Hello there. This is a test. Hello there. Hello Bob. Test again.\";\r\n System.out.println(textString);\r\n gen.train(textString);\r\n System.out.println(gen);\r\n System.out.println(\"Generator: \" + gen.generateText(0));\r\n String textString2 = \"You say yes, I say no, \" +\r\n \"You say stop, and I say go, go, go, \" +\r\n \"Oh no. You say goodbye and I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello. \" +\r\n \"I say high, you say low, \" +\r\n \"You say why, and I say I don't know. \" +\r\n \"Oh no. \" +\r\n \"You say goodbye and I say hello, hello, hello. \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello. \" +\r\n \"Why, why, why, why, why, why, \" +\r\n \"Do you say goodbye. \" +\r\n \"Oh no. \" +\r\n \"You say goodbye and I say hello, hello, hello. \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello. \" +\r\n \"You say yes, I say no, \" +\r\n \"You say stop and I say go, go, go. \" +\r\n \"Oh, oh no. \" +\r\n \"You say goodbye and I say hello, hello, hello. \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello,\";\r\n System.out.println(textString2);\r\n gen.retrain(textString2);\r\n System.out.println(gen);\r\n System.out.println(gen.generateText(20));\r\n }",
"public static void main(String[] args) {\n\t\t\n\t\t List<Result> outputK = new ArrayList<Result>();\n\n\t\t\t\n\t\t\tint alignment_type = Integer.parseInt(args[0]);\n\t\t\t\n\t\t\tif(alignment_type==1){\n\t\t\t\t\n\t\t\t\tGlobalAlignment gb = new GlobalAlignment();\n\n\t\t\t\toutputK = \tgb.PerformGlobalAlignment(args[1],args[2],args[3],args[4],Integer.parseInt(args[5]),Integer.parseInt(args[6]));\n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\tfor(int i=0;i<outputK.size();i++){\n\t\t\t\t\tResult r = outputK.get(i);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(r.score);\n \tSystem.out.println(\"id1 \"+r.id1+\" \"+r.startpos1+\" \"+r.seq1);\n\t\t\t\t\tSystem.out.println(\"id2 \"+r.id2+\" \"+r.startpos2+\" \"+r.seq2);\n//\t\t\t\t\t\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if(alignment_type==2){\n\t\t\t\t\n\t\t\t\tLocalAlignment loc = new LocalAlignment();\n\t\t\t\toutputK = \tloc.PerformLocalAlignment(args[1],args[2],args[3],args[4],Integer.parseInt(args[5]),Integer.parseInt(args[6]));\n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\tfor(int i=0;i<outputK.size();i++){\n\t\t\t\t\tResult r = outputK.get(i);\n\n\t\t\t\t\tSystem.out.println(r.score);\n System.out.println(\"id1 \"+r.id1+\" \"+r.startpos1+\" \"+r.seq1);\n\t\t\t\t\tSystem.out.println(\"id2 \"+r.id2+\" \"+r.startpos2+\" \"+r.seq2);\n\n\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}else if(alignment_type==3){\n\t\t\t\t\n\t\t \tDoveTail dt = new DoveTail();\t\t\n\t\t\t\toutputK = \tdt.PerformDoveTailAlignment(args[1],args[2],args[3],args[4],Integer.parseInt(args[5]),Integer.parseInt(args[6]));\n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\tfor(int i=0;i<outputK.size();i++){\n\t\t\t\t\tResult r = outputK.get(i);\n\n\t\t\t\t\tSystem.out.println(r.score);\n System.out.println(\"id1 \"+r.id1+\" \"+r.startpos1+\" \"+r.seq1);\n\t\t\t\t\tSystem.out.println(\"id2 \"+r.id2+\" \"+r.startpos2+\" \"+r.seq2);\n\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Enter 1,2 or 3\");\n\t\t\t}\n\t\t\n\t\n\t}",
"@Test\n\tpublic void testStoreProcessText4() {\n\t\tint sourceID = dm.storeProcessedText(pt2);\n\t\tassertTrue(sourceID > 0);\n\t\t\n\t\tds.startSession();\n\t\tSource source = ds.getSource(pt2.getMetadata().getUrl());\n\t\tList<Paragraph> paragraphs = (List<Paragraph>) ds.getParagraphs(source.getSourceID());\n\t\tassertTrue(pt2.getMetadata().getName().equals(source.getName()));\n\t\tassertTrue(pt2.getParagraphs().size() == paragraphs.size());\n\t\t\n\t\tfor(int i = 0; i < pt2.getParagraphs().size(); i++){\n\t\t\tParagraph p = paragraphs.get(i);\n\t\t\tParagraph originalP = pt2.getParagraphs().get(i);\n\t\t\tassertTrue(originalP.getParentOrder() == p.getParentOrder());\n\t\t\t\n\t\t\tList<Sentence> sentences = (List<Sentence>) ds.getSentences(p.getId());\n\t\t\tassertTrue(sentences.size() == 0);\n\t\t}\n\t\tds.closeSession();\t\t\n\t}",
"public void generateRevisionOutput(RevisionResult resultAllAnalyzed);",
"@Override\n\tpublic void process(JCas aJCas) throws AnalysisEngineProcessException {\n\t\tString text = aJCas.getDocumentText();\n\n\t\t// create an empty Annotation just with the given text\n\t\tAnnotation document = new Annotation(text);\n//\t\tAnnotation document = new Annotation(\"Barack Obama was born in Hawaii. He is the president. Obama was elected in 2008.\");\n\n\t\t// run all Annotators on this text\n\t\tpipeline.annotate(document); \n\t\tList<CoreMap> sentences = document.get(SentencesAnnotation.class);\n\t\t HelperDataStructures hds = new HelperDataStructures();\n\n\t\t\n\t\t//SPnew language-specific settings:\n\t\t//SPnew subject tags of the parser\n\t\t HashSet<String> subjTag = new HashSet<String>(); \n\t\t HashSet<String> dirObjTag = new HashSet<String>(); \n\t\t //subordinate conjunction tags\n\t\t HashSet<String> compTag = new HashSet<String>(); \n\t\t //pronoun tags\n\t\t HashSet<String> pronTag = new HashSet<String>(); \n\t\t \n\t\t HashSet<String> passSubjTag = new HashSet<String>();\n\t\t HashSet<String> apposTag = new HashSet<String>(); \n\t\t HashSet<String> verbComplementTag = new HashSet<String>(); \n\t\t HashSet<String> infVerbTag = new HashSet<String>(); \n\t\t HashSet<String> relclauseTag = new HashSet<String>(); \n\t\t HashSet<String> aclauseTag = new HashSet<String>(); \n\t\t \n\t\t HashSet<String> compLemma = new HashSet<String>(); \n\t\t HashSet<String> coordLemma = new HashSet<String>(); \n\t\t HashSet<String> directQuoteIntro = new HashSet<String>(); \n\t\t HashSet<String> indirectQuoteIntroChunkValue = new HashSet<String>();\n\t\t \n//\t\t HashSet<String> finiteVerbTag = new HashSet<String>();\n\t\t \n\n\t\t //OPEN ISSUES PROBLEMS:\n\t\t //the subject - verb relation finding does not account for several specific cases: \n\t\t //opinion verbs with passive subjects as opinion holder are not accounted for,\n\t\t //what is needed is a marker in the lex files like PASSSUBJ\n\t\t //ex: Obama is worried/Merkel is concerned\n\t\t //Many of the poorer countries are concerned that the reduction in structural funds and farm subsidies may be detrimental in their attempts to fulfill the Copenhagen Criteria.\n\t\t //Some of the more well off EU states are also worried about the possible effects a sudden influx of cheap labor may have on their economies. Others are afraid that regional aid may be diverted away from those who currently benefit to the new, poorer countries that join in 2004 and beyond. \n\t\t// Does not account for infinitival constructions, here again a marker is needed to specify\n\t\t //subject versus object equi\n\t\t\t//Christian Noyer was reported to have said that it is ok.\n\t\t\t//Reuters has reported Christian Noyer to have said that it is ok.\n\t\t //Obama is likely to have said.. \n\t\t //Several opinion holder- opinion verb pairs in one sentence are not accounted for, right now the first pair is taken.\n\t\t //what is needed is to run through all dependencies. For inderect quotes the xcomp value of the embedded verb points to the \n\t\t //opinion verb. For direct quotes the offsets closest to thwe quote are relevant.\n\t\t //a specific treatment of inverted subjects is necessary then. Right now the\n\t\t //strategy relies on the fact that after the first subj/dirobj - verb pair the\n\t\t //search is interrupted. Thus, if the direct object precedes the subject, it is taken as subject.\n\t\t // this is the case in incorrectly analysed inverted subjeects as: said Zwickel on Monday\n\t\t //coordination of subject not accounted for:employers and many economists\n\t\t //several subject-opinion verbs:\n\t\t //Zwickel has called the hours discrepancy between east and west a \"fairness gap,\" but employers and many economists point out that many eastern operations have a much lower productivity than their western counterparts.\n\t\t if (language.equals(\"en\")){\n \t subjTag.add(\"nsubj\");\n \t subjTag.add(\"xsubj\");\n \t subjTag.add(\"nmod:agent\");\n \t \n \t dirObjTag.add(\"dobj\"); //for inverted subject: \" \" said IG metall boss Klaus Zwickel on Monday morning.\n \t \t\t\t\t\t\t//works only with break DEPENDENCYSEARCH, otherwise \"Monday\" is nsubj \n \t \t\t\t\t\t\t//for infinitival subject of object equi: Reuters reports Obama to have said\n \tpassSubjTag.add(\"nsubjpass\");\n \tapposTag.add(\"appos\");\n \trelclauseTag.add(\"acl:relcl\");\n \taclauseTag.add(\"acl\");\n \t compTag.add(\"mark\");\n \t pronTag.add(\"prp\");\n \thds.pronTag.add(\"prp\");\n \tcompLemma.add(\"that\");\n \tcoordLemma.add(\"and\");\n \tverbComplementTag.add(\"ccomp\");\n \tverbComplementTag.add(\"parataxis\");\n\n \tinfVerbTag.add(\"xcomp\"); //Reuters reported Merkel to have said\n \tinfVerbTag.add(\"advcl\");\n \tdirectQuoteIntro.add(\":\");\n \tindirectQuoteIntroChunkValue.add(\"SBAR\");\n \thds.objectEqui.add(\"report\");\n \thds.objectEqui.add(\"quote\");\n \thds.potentialIndirectQuoteTrigger.add(\"say\");\n// \thds.objectEqui.add(\"confirm\");\n// \thds.subjectEqui.add(\"promise\");\n// \thds.subjectEqui.add(\"quote\");\n// \thds.subjectEqui.add(\"confirm\");\n }\n\t\t \n\t\t boolean containsSubordinateConjunction = false;\n\t\t\n\t\t \n\t\tfor (CoreMap sentence : sentences) {\n//\t\t\tSystem.out.println(\"PREPROCESSING..\");\n\t\t\t\tSentenceAnnotation sentenceAnn = new SentenceAnnotation(aJCas);\n\t\t\t\t\n\t\t\t\tint beginSentence = sentence.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endSentence = sentence.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(sentence.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tsentenceAnn.setBegin(beginSentence);\n\t\t\t\tsentenceAnn.setEnd(endSentence);\n\t\t\t\tsentenceAnn.addToIndexes();\n\t\t\t\t\n\t\t\t\t//SP Map offsets to NER\n\t\t\t\tList<NamedEntity> ners = JCasUtil.selectCovered(aJCas, //SPnew tut\n\t\t\t\t\t\tNamedEntity.class, sentenceAnn);\n\t\t\t\tfor (NamedEntity ne : ners){\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.jcasType.toString());\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.getCoveredText().toString());\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.jcasType.casTypeCode);\n\t\t\t\t\t//Person is 71, Location is 213, Organization is 68 geht anders besser siehe unten\n\t\t\t\t\tint nerStart = ne\n\t\t\t\t\t\t\t.getBegin();\n\t\t\t\t\tint nerEnd = ne.getEnd();\n//\t\t\t\t\tSystem.out.println(\"NER: \" + ne.getCoveredText() + \" \" + nerStart + \"-\" + nerEnd ); \n\t\t\t\t\tString offsetNer = \"\" + nerStart + \"-\" + nerEnd;\n\t\t\t\t\thds.offsetToNer.put(offsetNer, ne.getCoveredText());\n//\t\t\t\t\tNer.add(offsetNer);\n\t\t\t\t\thds.Ner.add(offsetNer);\n//\t\t\t\t\tSystem.out.println(\"NER: TYPE \" +ne.getValue().toString());\n\t\t\t\t\tif (ne.getValue().equals(\"PERSON\")){\n\t\t\t\t\t\thds.NerPerson.add(offsetNer);\n\t\t\t\t\t}\n\t\t\t\t\telse if (ne.getValue().equals(\"ORGANIZATION\")){\n\t\t\t\t\t\thds.NerOrganization.add(offsetNer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//DBpediaLink info: map offsets to links\n\t\t\t\tList<DBpediaResource> dbpeds = JCasUtil.selectCovered(aJCas, //SPnew tut\n\t\t\t\t\t\tDBpediaResource.class, sentenceAnn);\n\t\t\t\tfor (DBpediaResource dbped : dbpeds){\n//\t\t\t\t\t\n//\t\t\t\t\tint dbStart = dbped\n//\t\t\t\t\t\t\t.getBegin();\n//\t\t\t\t\tint dbEnd = dbped.getEnd();\n\t\t\t\t\t// not found if dbpedia offsets are wrongly outside than sentences\n//\t\t\t\t\tSystem.out.println(\"DBPED SENT: \" + sentenceAnn.getBegin()+ \"-\" + sentenceAnn.getEnd() ); \n//\t\t\t\t\tString offsetDB = \"\" + dbStart + \"-\" + dbEnd;\n//\t\t\t\t\thds.labelToDBpediaLink.put(dbped.getLabel(), dbped.getUri());\n//\t\t\t\t\tSystem.out.println(\"NOW DBPED: \" + dbped.getLabel() + \"URI: \" + dbped.getUri() ); \n\t\t\t\t\thds.dbpediaSurfaceFormToDBpediaLink.put(dbped.getCoveredText(), dbped.getUri());\n//\t\t\t\t\tSystem.out.println(\"NOW DBPED: \" + dbped.getCoveredText() + \"URI: \" + dbped.getUri() ); \n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//SP Map offsets to lemma of opinion verb/noun; parser does not provide lemma\n\t\t\t\t for (CoreLabel token: sentence.get(TokensAnnotation.class)) {\n//\t\t\t\t\t System.out.println(\"LEMMA \" + token.lemma().toString());\n\t\t\t\t\t int beginTok = token.beginPosition();\n\t\t\t\t\t int endTok = token.endPosition();\n\t\t\t\t\t String offsets = \"\" + beginTok + \"-\" + endTok;\n\t\t\t\t\t hds.offsetToLemma.put(offsets, token.lemma().toString());\n\t\t\t\t\t \n\t\t\t\t\t \t if (opinion_verbs.contains(token.lemma().toString())){\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionVerb.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t hds.OpinionExpression.add(offsets);\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionExpression.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t \n//\t\t\t \t System.out.println(\"offsetToLemmaOfOpinionVerb \" + token.lemma().toString());\n\t\t\t\t\t \t }\n\t\t\t\t\t \t if (passive_opinion_verbs.contains(token.lemma().toString())){\n\t\t\t\t\t\t\t hds.offsetToLemmaOfPassiveOpinionVerb.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t hds.OpinionExpression.add(offsets);\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionExpression.put(offsets, token.lemma().toString());\n//\t\t\t \t System.out.println(\"offsetToLemmaOfPassiveOpinionVerb \" + token.lemma().toString());\n\t\t\t\t\t \t }\n\n\t\t\t\t } \n\n\t\t\t//SPnew parser\n\t\t\tTree tree = sentence.get(TreeAnnotation.class);\n\t\t\tTreebankLanguagePack tlp = new PennTreebankLanguagePack();\n\t\t\tGrammaticalStructureFactory gsf = tlp.grammaticalStructureFactory();\n\t\t\tGrammaticalStructure gs = gsf.newGrammaticalStructure(tree);\n\t\t\tCollection<TypedDependency> td = gs.typedDependenciesCollapsed();\n\n\t\t\t \n//\t\t\tSystem.out.println(\"TYPEDdep\" + td);\n\t\t\t\n\t\t\tObject[] list = td.toArray();\n//\t\t\tSystem.out.println(list.length);\n\t\t\tTypedDependency typedDependency;\nDEPENDENCYSEARCH: for (Object object : list) {\n\t\t\ttypedDependency = (TypedDependency) object;\n//\t\t\tSystem.out.println(\"DEP \" + typedDependency.dep().toString()+ \n//\t\t\t\t\t\" GOV \" + typedDependency.gov().toString()+ \n//\t\t\t\" :: \"+ \" RELN \"+typedDependency.reln().toString());\n\t\t\tString pos = null;\n String[] elements;\n String verbCand = null;\n int beginVerbCand = -5;\n\t\t\tint endVerbCand = -5;\n\t\t\tString offsetVerbCand = null;\n\n if (compTag.contains(typedDependency.reln().toString())) {\n \tcontainsSubordinateConjunction = true;\n// \tSystem.out.println(\"subordConj \" + typedDependency.dep().toString().toLowerCase());\n }\n \n else if (subjTag.contains(typedDependency.reln().toString())){\n \thds.predicateToSubjectChainHead.clear();\n \thds.subjectToPredicateChainHead.clear();\n \t\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n//\t\t\t\tSystem.out.println(\"VERBCand \" + verbCand + offsetVerbCand);\n//\t\t\t\tfor (HashMap.Entry<String, String> entry : hds.offsetToLemma.entrySet()) {\n//\t\t\t\t String key = entry.getKey();\n//\t\t\t\t Object value = entry.getValue();\n//\t\t\t\t System.out.println(\"OFFSET \" + key + \" LEMMA \" + value);\n//\t\t\t\t // FOR LOOP\n//\t\t\t\t}\n//\t\t\t\tif (hds.offsetToLemma.containsKey(offsetVerbCand)){\n//\t\t\t\t\tString verbCandLemma = hds.offsetToLemma.get(offsetVerbCand);\n//\t\t\t\t\tif (hds.objectEqui.contains(verbCandLemma) || hds.subjectEqui.contains(verbCandLemma)){\n//\t\t\t\t\t\tSystem.out.println(\"SUBJCHAIN BEGIN verbCand \" + verbCand);\n//\t\t\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println(\"SUBJCHAINHEAD1\");\n\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\tSystem.out.println(\"verbCand \" + verbCand);\n\t\t\t\t//hack for subj after obj said Zwickel (obj) on Monday morning (subj)\n\t\t\t\tif (language.equals(\"en\") \n\t\t\t\t\t\t&& hds.predicateToObject.containsKey(offsetVerbCand)\n\t\t\t\t\t\t){\n// \t\tSystem.out.println(\"CONTINUE DEP\");\n \t\tcontinue DEPENDENCYSEARCH;\n \t}\n\t\t\t\telse {\n\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n\t\t\t\t}\n }\n //Merkel is concerned\n else if (passSubjTag.contains(typedDependency.reln().toString())){\n \t//Merkel was reported\n \t//Merkel was concerned\n \t//Merkel was quoted\n \thds.predicateToSubjectChainHead.clear();\n \thds.subjectToPredicateChainHead.clear();\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n//\t\t\t\tSystem.out.println(\"VERBCand \" + verbCand + offsetVerbCand);\n//\t\t\t\tif (hds.offsetToLemma.containsKey(offsetVerbCand)){\n//\t\t\t\t\tString verbCandLemma = hds.offsetToLemma.get(offsetVerbCand);\n////\t\t\t\t\tSystem.out.println(\"LEMMA verbCand \" + verbCandLemma);\n//\t\t\t\t\tif (hds.objectEqui.contains(verbCandLemma) || hds.subjectEqui.contains(verbCandLemma)){\n//\t\t\t\t\t\tSystem.out.println(\"SUBJCHAIN BEGIN verbCand \" + verbCand);\n//\t\t\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\t\t}\n//\t\t\t\t}\n \t\n \tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n// \tSystem.out.println(\"SUBJCHAINHEAD2\");\n \t//Merkel is concerned\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfPassiveOpinionVerb,\n \t\t\thds);\n }\n //Meanwhile, the ECB's vice-president, Christian Noyer, was reported at the start of the week to have said that the bank's future interest-rate moves\n// would depend on the behavior of wage negotiators as well as the pace of the economic recovery.\n\n else if (apposTag.contains(typedDependency.reln().toString())){\n \t\n \tString subjCand = typedDependency.gov().toString().toLowerCase();\n \tint beginSubjCand = typedDependency.gov().beginPosition();\n \tint endSubjCand = typedDependency.gov().endPosition();\n \tString offsetSubjCand = \"\" + beginSubjCand + \"-\" + endSubjCand;\n \tString appo = typedDependency.dep().toString().toLowerCase();\n\t\t\t\tint beginAppo = typedDependency.dep().beginPosition();\n\t\t\t\tint endAppo = typedDependency.dep().endPosition();\n\t\t\t\tString offsetAppo = \"\" + beginAppo + \"-\" + endAppo;\n\t\t\t\t\n// \tSystem.out.println(\"APPOSITION1 \" + subjCand + \"::\"+ appo + \":\" + offsetSubjCand + \" \" + offsetAppo);\n \thds.subjectToApposition.put(offsetSubjCand, offsetAppo);\n }\n else if (relclauseTag.contains(typedDependency.reln().toString())){\n \tString subjCand = typedDependency.gov().toString().toLowerCase();\n \tint beginSubjCand = typedDependency.gov().beginPosition();\n \tint endSubjCand = typedDependency.gov().endPosition();\n \tString offsetSubjCand = \"\" + beginSubjCand + \"-\" + endSubjCand;\n \tverbCand = typedDependency.dep().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.dep().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.dep().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n\t\t\t\tString subjCandPos = null;\n\t\t\t\tif (hds.predicateToSubject.containsKey(offsetVerbCand)){\n\t\t\t\t\t\n\t\t\t\t\tif (subjCand.matches(\".+?/.+?\")) { \n\t\t\t\t\t\telements = subjCand.split(\"/\");\n\t\t\t\t\t\tsubjCand = elements[0];\n\t\t\t\t\t\tsubjCandPos = elements[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tString del = hds.predicateToSubject.get(offsetVerbCand);\n\t\t\t\t\thds.predicateToSubject.remove(offsetVerbCand);\n\t\t\t\t\thds.subjectToPredicate.remove(del);\n\t\t\t\t\thds.normalPredicateToSubject.remove(offsetVerbCand);\n\t\t\t\t\thds.subjectToNormalPredicate.remove(del);\n//\t\t\t\t\tSystem.out.println(\"REMOVE RELPRO \" + verbCand + \"/\" + hds.offsetToLemma.get(del));\n\t\t\t\t\thds.predicateToSubject.put(offsetVerbCand, offsetSubjCand);\n\t\t\t\t\thds.subjectToPredicate.put( offsetSubjCand, offsetVerbCand);\n\t\t\t\t\thds.normalPredicateToSubject.put(offsetVerbCand, offsetSubjCand);\n\t\t\t\t\thds.subjectToNormalPredicate.put( offsetSubjCand, offsetVerbCand);\n//\t\t\t\t\tSystem.out.println(\"RELCLAUSE \" + subjCand + \"::\" + \":\" + verbCand);\n\t\t\t\t\thds.offsetToSubjectHead.put(offsetSubjCand,subjCand);\n\t\t\t\t\thds.SubjectHead.add(offsetSubjCand);\n\t\t\t\t\t\n\t\t\t\t\tif (subjCandPos != null && hds.pronTag.contains(subjCandPos)){\n\t\t\t\t\t\thds.PronominalSubject.add(offsetSubjCand);\n\t\t\t\t\t}\n\t\t\t\t}\n \t\n \t\n }\n \n else if (dirObjTag.contains(typedDependency.reln().toString())\n \t\t){\n \tstoreRelations(typedDependency, hds.predicateToObject, hds.ObjectToPredicate, hds);\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n\t\t\t\t\n\t\t\t\tString objCand = typedDependency.dep().toString().toLowerCase();\n \tint beginObjCand = typedDependency.dep().beginPosition();\n \tint endObjCand = typedDependency.dep().endPosition();\n \tString offsetObjCand = \"\" + beginObjCand + \"-\" + endObjCand;\n \tString objCandPos;\n \tif (objCand.matches(\".+?/.+?\")) { \n\t\t\t\t\telements = objCand.split(\"/\");\n\t\t\t\t\tobjCand = elements[0];\n\t\t\t\t\tobjCandPos = elements[1];\n//\t\t\t\t\tSystem.out.println(\"PRON OBJ \" + objCandPos);\n\t\t\t\t\tif (pronTag.contains(objCandPos)){\n\t\t\t\t\thds.PronominalSubject.add(offsetObjCand);\n\t\t\t\t\t}\n\t\t\t\t\t}\n// \tSystem.out.println(\"DIROBJ STORE ONLY\");\n \t//told Obama\n \t//said IG metall boss Klaus Zwickel\n \t// problem: pointing DO\n \t//explains David Gems, pointing out the genetically manipulated species.\n \t if (language.equals(\"en\") \n \t\t\t\t\t\t&& !hds.normalPredicateToSubject.containsKey(offsetVerbCand)\n \t\t\t\t\t\t){\n// \t\t System.out.println(\"INVERSE SUBJ HACK ENGLISH PREDTOOBJ\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t }\n }\n //was reported to have said\n else if (infVerbTag.contains(typedDependency.reln().toString())){\n \tstoreRelations(typedDependency, hds.mainToInfinitiveVerb, hds.infinitiveToMainVerb, hds);\n// \tSystem.out.println(\"MAIN-INF\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t\n }\n else if (aclauseTag.contains(typedDependency.reln().toString())){\n \tstoreRelations(typedDependency, hds.nounToInfinitiveVerb, hds.infinitiveVerbToNoun, hds);\n// \tSystem.out.println(\"NOUN-INF\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t\n }\n \n \n\n\t\t\t}\n\t\t\t\n//\t\t\tSemanticGraph dependencies = sentence.get(CollapsedCCProcessedDependenciesAnnotation.class);\n//\t\t\tSystem.out.println(\"SEM-DEP \" + dependencies);\t\n\t\t}\n\t\t\n\n\t\tMap<Integer, edu.stanford.nlp.dcoref.CorefChain> corefChains = document.get(CorefChainAnnotation.class);\n\t\t \n\t\t if (corefChains == null) { return; }\n\t\t //SPCOPY\n\t\t for (Entry<Integer, edu.stanford.nlp.dcoref.CorefChain> entry: corefChains.entrySet()) {\n//\t\t System.out.println(\"Chain \" + entry.getKey() + \" \");\n\t\t \tint chain = entry.getKey();\n\t\t String repMenNer = null;\n\t\t String repMen = null;\n\t\t String offsetRepMenNer = null;\n\n\t\t List<IaiCorefAnnotation> listCorefAnnotation = new ArrayList<IaiCorefAnnotation>();\n\t\t \n\t\t for (CorefMention m : entry.getValue().getMentionsInTextualOrder()) {\n\t\t \tboolean corefMentionContainsNer = false;\n\t\t \tboolean repMenContainsNer = false;\n\n//\t\t \n\n\t\t\t\t// We need to subtract one since the indices count from 1 but the Lists start from 0\n\t\t \tList<CoreLabel> tokens = sentences.get(m.sentNum - 1).get(TokensAnnotation.class);\n\t\t // We subtract two for end: one for 0-based indexing, and one because we want last token of mention not one following.\n//\t\t System.out.println(\" \" + m + \", i.e., 0-based character offsets [\" + tokens.get(m.startIndex - 1).beginPosition() +\n//\t\t \", \" + tokens.get(m.endIndex - 2).endPosition() + \")\");\n\t\t \n\t\t int beginCoref = tokens.get(m.startIndex - 1).beginPosition();\n\t\t\t\t int endCoref = tokens.get(m.endIndex - 2).endPosition();\n\t\t\t\t String offsetCorefMention = \"\" + beginCoref + \"-\" + endCoref;\n\t\t\t\t String corefMention = m.mentionSpan;\n\n\t\t\t\t CorefMention RepresentativeMention = entry.getValue().getRepresentativeMention();\n\t\t\t\t repMen = RepresentativeMention.mentionSpan;\n\t\t\t\t List<CoreLabel> repMenTokens = sentences.get(RepresentativeMention.sentNum - 1).get(TokensAnnotation.class);\n//\t\t\t\t System.out.println(\"REPMEN ANNO \" + \"\\\"\" + repMen + \"\\\"\" + \" is representative mention\" +\n// \", i.e., 0-based character offsets [\" + repMenTokens.get(RepresentativeMention.startIndex - 1).beginPosition() +\n//\t\t \", \" + repMenTokens.get(RepresentativeMention.endIndex - 2).endPosition() + \")\");\n\t\t\t\t int beginRepMen = repMenTokens.get(RepresentativeMention.startIndex - 1).beginPosition();\n\t\t\t\t int endRepMen = repMenTokens.get(RepresentativeMention.endIndex - 2).endPosition();\n\t\t\t\t String offsetRepMen = \"\" + beginRepMen + \"-\" + endRepMen;\n\t\t \t \n\t\t\t\t//Determine repMenNer that consists of largest NER (Merkel) to (Angela Merkel)\n\t\t\t\t //and \"Chancellor \"Angela Merkel\" to \"Angela Merkel\"\n\t\t \t //Further reduction to NER as in \"Chancellor Angela Merkel\" to \"Angela Merkel\" is\n\t\t\t\t //done in determineBestSubject. There, Chunk information and subjectHead info is available.\n\t\t\t\t //Chunk info and subjectHead info is used to distinguish \"Chancellor Angela Merkel\" to \"Angela Merkel\"\n\t\t\t\t //from \"The enemies of Angela Merkel\" which is not reduced to \"Angela Merkel\"\n\t\t\t\t //Problem solved: The corefMentions of a particular chain do not necessarily have the same RepMenNer (RepMen) \n\t\t\t\t // any more: Chancellor Angela Merkel repMenNer Chancellor Angela Merkel , then Angela Merkel has RepMenNer Angela Merkel\n\t\t\t\t if (offsetRepMenNer != null && hds.Ner.contains(offsetRepMenNer)){\n//\t\t\t\t\t System.out.println(\"NEWNer.contains(offsetRepMenNer)\");\n\t\t\t\t }\n\t\t\t\t else if (offsetRepMen != null && hds.Ner.contains(offsetRepMen)){\n\t\t\t\t\t repMenNer = repMen;\n\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\tSystem.out.println(\"NEWNer.contains(offsetRepMen)\");\n\t\t\t\t }\n\t\t\t\t else if (offsetCorefMention != null && hds.Ner.contains(offsetCorefMention)){\n\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\tSystem.out.println(\"Ner.contains(offsetCorefMention)\");\n\t\t\t\t\t}\n\t\t\t\t else {\n\t\t\t\t\t corefMentionContainsNer = offsetsContainAnnotation(offsetCorefMention,hds.Ner);\n\t\t\t\t\t repMenContainsNer = offsetsContainAnnotation(offsetRepMen,hds.Ner);\n//\t\t\t\t\t System.out.println(\"ELSE Ner.contains(offsetCorefMention)\");\n\t\t\t\t }\n\t\t\t\t //Determine repMenNer that contains NER\n\t\t\t\t\tif (repMenNer == null){\n\t\t\t\t\t\tif (corefMentionContainsNer){\n\t\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT1\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (repMenContainsNer){\n\t\t\t\t\t\t\trepMenNer = repMen;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT2\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no NER:\n\t\t\t\t\t\t//Pronoun -> repMen is repMenNer\n\t\t\t\t\t\telse if (hds.PronominalSubject.contains(offsetCorefMention) && repMen != null){\n\t\t\t\t\t\t\trepMenNer = repMen;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT3\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t//other no NER: corefMention is repMenNer because it is closer to original\n\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\tSystem.out.println(\"DEFAULT4\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t \n \t IaiCorefAnnotation corefAnnotation = new IaiCorefAnnotation(aJCas);\n\t\t\t\n\t\t\t\t\t\n\n\n\t\t\t\t\tcorefAnnotation.setBegin(beginCoref);\n\t\t\t\t\tcorefAnnotation.setEnd(endCoref);\n\t\t\t\t\tcorefAnnotation.setCorefMention(corefMention);\n\t\t\t\t\tcorefAnnotation.setCorefChain(chain);\n\t\t\t\t\t//done below\n//\t\t\t\t\tcorefAnnotation.setRepresentativeMention(repMenNer);\n//\t\t\t\t\tcorefAnnotation.addToIndexes(); \n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tlistCorefAnnotation.add(corefAnnotation);\n\t\t\t\t\t\n//\t\t\t\t\tdone below:\n//\t\t\t\t\t offsetToRepMen.put(offsetCorefMention, repMenNer);\n//\t\t\t\t\t RepMen.add(offsetCorefMention);\n\t\t\t\t\t\n\t\t\t\t\t \n\t\t }//end coref mention\n//\t\t System.out.println(\"END Chain \" + chain );\n//\t\t System.out.println(listCorefAnnotation.size());\n\t\t String offsetCorefMention = null;\n\t\t for (int i = 0; i < listCorefAnnotation.size(); i++) {\n\t\t \tIaiCorefAnnotation corefAnnotation = listCorefAnnotation.get(i);\n\t\t \tcorefAnnotation.setRepresentativeMention(repMenNer);\n\t\t \tcorefAnnotation.addToIndexes();\n\t\t \toffsetCorefMention = \"\" + corefAnnotation.getBegin() + \"-\" + corefAnnotation.getEnd();\n\t\t\t\t\thds.offsetToRepMen.put(offsetCorefMention, repMenNer);\n\t\t\t\t\thds.RepMen.add(offsetCorefMention);\n\t\t\t\t\t//COREF\n//\t\t\t\t\tSystem.out.println(\"Chain \" + corefAnnotation.getCorefChain());\n//\t\t\t\t\tSystem.out.println(\"corefMention \" + corefAnnotation.getCorefMention() + offsetCorefMention);\n//\t\t\t\t\tSystem.out.println(\"repMenNer \" + repMenNer);\n\t\t }\n\t\t } //end chains\n\n\n//\t\t System.out.println(\"NOW quote finder\");\n\n\n\t\t\n\t\t///* quote finder: begin find quote relation and quotee\n\t\t// direct quotes\n\t\t\n\t\t\n\t\tString quotee_left = null;\n\t\tString quotee_right = null; \n\t\t\n\t\tString representative_quotee_left = null;\n\t\tString representative_quotee_right = null; \n\t\t\n\t\tString quote_relation_left = null;\n\t\tString quote_relation_right = null;\n\t\t\n\t\tString quoteType = null;\n\t\tint quoteeReliability = 5;\n\t\tint quoteeReliability_left = 5;\n\t\tint quoteeReliability_right = 5;\n\t\tint quotee_end = -5;\n\t\tint quotee_begin = -5;\n\t\t\n\t\tboolean quoteeBeforeQuote = false;\n\n\n\t\n\t\t\n\t\t// these are all the quotes in this document\n\t\tList<CoreMap> quotes = document.get(QuotationsAnnotation.class);\n\t\tfor (CoreMap quote : quotes) {\n\t\t\tif (quote.get(TokensAnnotation.class).size() > 5) {\n\t\t\t\tQuoteAnnotation annotation = new QuoteAnnotation(aJCas);\n\n\t\t\t\tint beginQuote = quote.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endQuote = quote.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(quote.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tannotation.setBegin(beginQuote);\n\t\t\t\tannotation.setEnd(endQuote);\n\t\t\t\tannotation.addToIndexes();\n//\t\t\t}\n//\t\t}\n//\t\t\n//\t\tList<Q> newQuotes = document.get(QuotationsAnnotation.class);\t\t\n//\t\tfor (CoreMap annotation : newQuotes) {\n//\t\t\t\tif (1==1){\n//\t\t\t\tRe-initialize markup variables since they are also used for indirect quotes\n\t\t\t\tquotee_left = null;\n\t\t\t\tquotee_right = null; \n\t\t\t\t\n\t\t\t\trepresentative_quotee_left = null;\n\t\t\t\trepresentative_quotee_right = null;\n\t\t\t\t\n\t\t\t\tquote_relation_left = null;\n\t\t\t\tquote_relation_right = null;\n\t\t\t\tquoteeReliability = 5;\n\t\t\t\tquoteeReliability_left = 5;\n\t\t\t\tquoteeReliability_right = 5;\n\t\t\t\tquotee_end = -5;\n\t\t\t\tquotee_begin = -5;\n\t\t\t\tquoteType = \"direct\";\n\t\t\t\tquoteeBeforeQuote = false;\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> directQuoteTokens = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\tToken.class, annotation);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> followTokens = JCasUtil.selectFollowing(aJCas,\n\t\t\t\t\t\tToken.class, annotation, 1);\n\t\t\t\t\n \n//\t\t\t\tfor (Token aFollowToken: followTokens){\n//\t\t\t\t\t List<Chunk> chunks = JCasUtil.selectCovering(aJCas,\n//\t\t\t\t\tChunk.class, aFollowToken);\n \n//direct quote quotee right:\n\t\t\t\t\n\t for (Token aFollow2Token: followTokens){\n\t\t\t\t\t List<SentenceAnnotation> sentencesFollowQuote = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t SentenceAnnotation.class, aFollow2Token);\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t for (SentenceAnnotation sentenceFollowsQuote: sentencesFollowQuote){\n\t\t\t\t\t\t List<Chunk> chunks = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\tChunk.class, sentenceFollowsQuote);\n//\t\t\tSystem.out.println(\"DIRECT QUOTE RIGHT\");\n\t\t\tString[] quote_annotation_result = determine_quotee_and_quote_relation(\"RIGHT\", \n\t\t\t\t\tchunks, hds, annotation);\n\t\t\tif (quote_annotation_result.length>=4){\n\t\t\t quotee_right = quote_annotation_result[0];\n\t\t\t representative_quotee_right = quote_annotation_result[1];\n\t\t\t quote_relation_right = quote_annotation_result[2];\n\t\t\t try {\n\t\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t quoteeReliability_right = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t //Will Throw exception!\n\t\t\t //do something! anything to handle the exception.\n\t\t\t\tquoteeReliability = -5;\n\t\t\t\tquoteeReliability_right = -5;\n\t\t\t\t}\t\t\t\t\t \n\t\t\t }\n//\t\t\tSystem.out.println(\"DIRECT QUOTE RIGHT RESULT quotee \" + quotee_right + \" representative_quotee \" + representative_quotee_right\n//\t\t\t\t\t+ \" quote_relation \" + quote_relation_right);\n\t\t \n\t\t\t}\n\t\t\t\t\t \n\t\t\t\t\t \n }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> precedingTokens = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t\t\tToken.class, annotation, 1);\n for (Token aPrecedingToken: precedingTokens){ \n \t\n \tif (directQuoteIntro.contains(aPrecedingToken.getLemma().getValue().toString()) \n \t\t\t|| compLemma.contains(aPrecedingToken.getLemma().getValue().toString())) {\n// \t\tSystem.out.println(\"Hello, World lemma found\" + aPrecedingToken.getLemma().getValue());\n \t\tquoteeBeforeQuote = true;\n \t}\n \t\tList <NamedEntity> namedEntities = null;\n \t\tList <Token> tokens = null;\n \t\tList<Chunk> chunks = null;\n \t\t\n\t\t\t\t List<Sentence> precedingSentences = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t \t\tSentence.class, aPrecedingToken, 1);\n\t\t\t\t \n\t\t\t\t\t\tif (precedingSentences.isEmpty()){\n\t\t\t\t\t\t\tList<Sentence> firstSentence;\n\t\t\t\t \tfirstSentence = JCasUtil.selectCovering(aJCas,\n\t\t\t\t \t\tSentence.class, aPrecedingToken);\n\n\t\t\t\t \tfor (Sentence aSentence: firstSentence){\n\t\t\t\t \t\t\n\n\t\t\t\t\t\t\t\tchunks = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\t\tChunk.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t \t\tnamedEntities = JCasUtil.selectCovered(aJCas,\n\t \t \t\tNamedEntity.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\t\t\t\t \t\ttokens = JCasUtil.selectCovered(aJCas,\n\t\t\t\t \t\t\t\tToken.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\t\t\t\t \t\n\t\t\t\t \t}\n\t\t\t\t\t\t}\n\t\t\t\t else {\t\n\t\t\t\t \tfor (Sentence aSentence: precedingSentences){\n//\t\t\t\t \t\tSystem.out.println(\"Hello, World sentence\" + aSentence);\n\t\t\t\t \t\tchunks = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tChunk.class, aSentence, aPrecedingToken);\n\t\t\t\t \t\tnamedEntities = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tNamedEntity.class, aSentence, aPrecedingToken);\n\t\t\t\t \t\ttokens = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tToken.class, aSentence, aPrecedingToken);\n\t\t\t\t \t}\n\t\t\t\t }\n \t\n//\t\t\t\t \n//\t\t\t\t\t\tSystem.out.println(\"DIRECT QUOTE LEFT\");\n\t\t\t\t\t\tString[] quote_annotation_direct_left = determine_quotee_and_quote_relation(\"LEFT\", chunks,\n\t\t\t\t\t\t\t\t hds, annotation\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(\"QUOTE ANNOTATION \" + quote_annotation_direct_left.length);\t\t\n\t\tif (quote_annotation_direct_left.length>=4){\n//\t\t\tSystem.out.println(\"QUOTE ANNOTATION UPDATE \" + quote_annotation_direct_left[0] +\n//\t\t\t\t\t\" \" + quote_annotation_direct_left[1] + \" \" +\n//\t\t\t\t\tquote_annotation_direct_left[2]);\n\t\t quotee_left = quote_annotation_direct_left[0];\n\t\t representative_quotee_left = quote_annotation_direct_left[1];\n\t\t quote_relation_left = quote_annotation_direct_left[2];\n\t\t try {\n\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_direct_left[3]);\n\t\t\t quoteeReliability_left = Integer.parseInt(quote_annotation_direct_left[3]);\n\t\t\t} catch (NumberFormatException e) {\n\t\t //Will Throw exception!\n\t\t //do something! anything to handle the exception.\n\t\t\tquoteeReliability = -5;\n\t\t\tquoteeReliability_left = -5;\n\t\t\t}\t\t\t\t\t \n\t\t }\n//\t\tSystem.out.println(\"DIRECT QUOTE LEFT RESULT quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left\n//\t\t\t\t+ \" quote_relation \" + quote_relation_left);\n\t\t//no subject - predicate quotee quote_relation, quote introduced with colon: \n\t\tif (quotee_left == null && quote_relation_left == null && representative_quotee_left == null \n\t\t&& directQuoteIntro.contains(aPrecedingToken.getLemma().getValue().toString())){\n//\t\t\tSystem.out.println(\"NER DIRECT QUOTE LEFT COLON\");\n\t\t\tString quoteeCandOffset = null; \n\t\t\tString quoteeCandText = null;\n\t\t if (namedEntities.size() == 1){\n \t \tfor (NamedEntity ne : namedEntities){\n// \t \t\tSystem.out.println(\"ONE NER \" + ne.getCoveredText());\n \t \t\tquoteeCandText = ne.getCoveredText();\n\t\t\t\t\tquote_relation_left = aPrecedingToken.getLemma().getValue().toString();\n\t\t\t\t\tquotee_end = ne.getEnd();\n\t\t\t\t\tquotee_begin = ne.getBegin();\n\t\t\t\t\tquoteeCandOffset = \"\" + quotee_begin + \"-\" + quotee_end;\n\t\t\t\t\tquoteeReliability = 1;\n\t\t\t\t\tquoteeReliability_left = 1;\n \t }\n \t }\n \t else if (namedEntities.size() > 1) {\n \t \tint count = 0;\n \t \tString quotee_cand = null;\n// \t \tSystem.out.println(\"Hello, World ELSE SEVERAL NER\");\n \t \tfor (NamedEntity ner : namedEntities){\n// \t \t\tSystem.out.println(\"Hello, World NER TYPE\" + ner.getValue());\n \t \t\tif (ner.getValue().equals(\"PERSON\")){\n \t \t\t\tcount = count + 1;\n \t \t\t\tquotee_cand = ner.getCoveredText();\n \t \t\t\tquotee_end = ner.getEnd();\n \t \t\t\tquotee_begin = ner.getBegin();\n \t \t\t\tquoteeCandOffset = \"\" + quotee_begin + \"-\" + quotee_end;\n \t \t\t\t\n// \t \t\t\tSystem.out.println(\"Hello, World FOUND PERSON\" + quotee_cand);\n \t \t\t}\n \t \t}\n \t \tif (count == 1){ // there is exactly one NER.PERSON\n// \t \t\tSystem.out.println(\"ONE PERSON, SEVERAL NER \" + quotee_cand);\n \t \t\t\tquoteeCandText = quotee_cand;\n\t\t\t\t\t\tquote_relation_left = aPrecedingToken.getLemma().getValue().toString();\n\t\t\t\t\t\tquoteeReliability = 3;\n\t\t\t\t\t\tquoteeReliability_left = 3;\n \t \t}\n \t }\n\t\t if(quoteeCandOffset != null && quoteeCandText != null ){\n//\t\t \t quotee_left = quoteeCandText;\n\t\t \t String result [] = determineBestRepMenSubject(\n\t\t \t\t\t quoteeCandOffset,quoteeCandOffset, quoteeCandText, hds);\n\t\t \t if (result.length>=2){\n\t\t \t\t quotee_left = result [0];\n\t\t \t\t representative_quotee_left = result [1];\n//\t\t \t System.out.println(\"RESULT2 NER quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left);\n\t\t \t }\n\t\t }\n\t\t}\n }\n\t\t\n \n\n\t\t\t\t\n\t\t\t\tif (quotee_left != null && quotee_right != null){\n//\t\t\t\t\tSystem.out.println(\"TWO QUOTEES\");\n\t\t\t\t\t\n\t\t\t\t\tif (directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\".\") \n\t\t\t\t\t\t|| \tdirectQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"!\")\n\t\t\t\t\t\t|| directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"?\")\n\t\t\t\t\t\t\t){\n//\t\t\t\t\t\tSystem.out.println(\"PUNCT \" + quotee_left + quote_relation_left + quoteeReliability_left);\n\t\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\",\")){\n//\t\t\t\t\t\tSystem.out.println(\"COMMA \" + quotee_right + \" \" + quote_relation_right + \" \" + quoteeReliability_right);\n\t\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t\t}\n\t\t\t\t\telse if (!directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\".\")\n\t\t\t\t\t\t\t&& !directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"!\")\n\t\t\t\t\t\t\t&& !directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"?\")\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\t\t\tSystem.out.println(\"NO PUNCT \" + quotee_right + \" \" + quote_relation_right + \" \" + quoteeReliability_right);\n\t\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n//\t\t\t\t\t\tSystem.out.println(\"UNCLEAR LEFT RIGHT \" + quotee_left + quote_relation_left + quote + quotee_right + quote_relation_right);\n\t\t\t\t\tannotation.setQuotee(\"<unclear>\");\n\t\t\t\t\tannotation.setQuoteRelation(\"<unclear>\");\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (quoteeBeforeQuote == true){\n\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t}\n\t\t\t\telse if (quotee_left != null){\n//\t\t\t\t\tSystem.out.println(\"QUOTEE LEFT\" + quotee_left + quote_relation_left + quoteeReliability_left);\n\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t}\n\t\t\t\telse if (quotee_right != null){\n//\t\t\t\t\tSystem.out.println(\"QUOTEE RIGHT FOUND\" + quotee_right + \" QUOTE RELATION \" + quote_relation_right + \":\" + quoteeReliability_right);\n\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t}\n\t\t\t\telse if (quote_relation_left != null ){\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n//\t\t\t\t\tSystem.out.println(\"NO QUOTEE FOUND\" + quote + quote_relation_left + quote_relation_right);\n\t\t\t\t}\n\t\t\t\telse if (quote_relation_right != null){\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t}\n\t\t\t\telse if (quoteType != null){\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n//\t\t\t\t\tSystem.out.println(\"Hello, World NO QUOTEE and NO QUOTE RELATION FOUND\" + quote);\n\t\t\t\t}\n\t\t\t\tif (annotation.getRepresentativeQuoteeMention() != null){\n//\t\t\t\t\tSystem.out.println(\"NOW!!\" + annotation.getRepresentativeQuoteeMention());\n\t\t\t\t\tif (hds.dbpediaSurfaceFormToDBpediaLink.containsKey(annotation.getRepresentativeQuoteeMention())){\n\t\t\t\t\t\tannotation.setQuoteeDBpediaUri(hds.dbpediaSurfaceFormToDBpediaLink.get(annotation.getRepresentativeQuoteeMention()));\n//\t\t\t\t\t\tSystem.out.println(\"DBPRED FOUND\" + annotation.getRepresentativeQuoteeMention() + \" URI: \" + annotation.getQuoteeDBpediaUri());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} //for direct quote\n\t\t\n\t\t// annotate indirect quotes: opinion verb + 'that' ... until end of sentence: said that ...\n\n//\t\tList<CoreMap> sentences = document.get(SentencesAnnotation.class); //already instantiated above\nINDIRECTQUOTE:\t\tfor (CoreMap sentence : sentences) {\n//\t\t\tif (sentence.get(TokensAnnotation.class).size() > 5) { \n\t\t\t\tSentenceAnnotation sentenceAnn = new SentenceAnnotation(aJCas);\n\t\t\t\t\n\t\t\t\tint beginSentence = sentence.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endSentence = sentence.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(sentence.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tsentenceAnn.setBegin(beginSentence);\n\t\t\t\tsentenceAnn.setEnd(endSentence);\n//\t\t\t\tsentenceAnn.addToIndexes();\n\t\t\t\t\n\t\t\t\tQuoteAnnotation indirectQuote = new QuoteAnnotation(aJCas);\n\t \tint indirectQuoteBegin = -5;\n\t\t\t\tint indirectQuoteEnd = -5;\n\t\t\t\tboolean subsequentDirectQuoteInstance = false;\n\t\t\t\t\n\t\t\t\tList<Chunk> chunksIQ = JCasUtil.selectCovered(aJCas,\n\t\t\t\tChunk.class, sentenceAnn);\n\t\t\t\tList<Chunk> chunksBeforeIndirectQuote = null;\n\t\t\t\t\n\t\t\t\tint index = 0;\nINDIRECTCHUNK:\tfor (Chunk aChunk : chunksIQ) {\n\t\t\t\t\tindex++;\n\t\t\t\t\t\n//\t\t\t\t\tSystem.out.println(\"INDIRECT QUOTE CHUNK VALUE \" + aChunk.getChunkValue().toString());\n//\t\t\t\t\tif (aChunk.getChunkValue().equals(\"SBAR\")) {\n\t\t\t\t\tif(indirectQuoteIntroChunkValue.contains(aChunk.getChunkValue())){\n//\t\t\t\t\t\tSystem.out.println(\"INDIRECT QUOTE INDEX \" + \"\" + index);\n\t\t\t\t\t\t\n\t\t\t\t\t\tList<Token> tokensSbar = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\tToken.class, aChunk);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (Token aTokenSbar : tokensSbar){\n//\t\t\t\t\t\t\tString that = \"that\";\n\t\t\t\t\t\t\tif (compLemma.contains(aTokenSbar.getLemma().getCoveredText())){\n\t\t\t\t\t\t// VP test: does that clause contain VP?\n//\t\t\t\t\t\t\t\tSystem.out.println(\"TOK1\" + aTokenSbar.getLemma().getCoveredText());\n//\t\t\t \tQuoteAnnotation indirectQuote = new QuoteAnnotation(aJCas);\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\t indirectQuoteBegin = aChunk.getEnd() + 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t chunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\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\t//NEW\n//\t\t\t\t\t\t\t\tif (LANGUAGE == \"en\")\n\t\t\t\t\t\t\t\tList<Token> precedingSbarTokens = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t\t\t\t\t\t\tToken.class, aChunk, 1);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (Token aPrecedingSbarToken: precedingSbarTokens){ \n//\t\t\t\t\t\t\t\t\tSystem.out.println(\"TOK2\" + aPrecedingSbarToken.getLemma().getCoveredText());\n\t\t\t\t \tif (coordLemma.contains(aPrecedingSbarToken.getLemma().getValue().toString())){\n//\t\t\t\t \t\tSystem.out.println(\"TOKK\" + aPrecedingSbarToken.getLemma().getCoveredText());\n\t\t\t\t \t\tchunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\n\t\t\t\t \t\tint k = 0;\n\t\t\t\t \tSAY:\tfor (Chunk chunkBeforeAndThat : chunksBeforeIndirectQuote){\n//\t\t\t\t \t\t\txxxx\n\t\t\t\t \t\tk++;\n\t\t\t\t \t\t\tif (chunkBeforeAndThat.getChunkValue().equals(\"VP\")){\n\t\t\t\t \t\t\t\t\n\t\t\t\t \t\t\t\tList<Token> tokensInVp = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tToken.class, chunkBeforeAndThat);\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Token aTokenInVp : tokensInVp){\n//\t\t\t\t\t\t\t\t\t\t\t\t\tString and;\n//\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"TOKK\" + aTokenInVp.getLemma().getCoveredText());\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (aTokenInVp.getLemma().getValue().equals(\"say\")){\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"SAY OLD\" + indirectQuoteBegin + \":\" + sentenceAnn.getCoveredText());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tchunksBeforeIndirectQuote = chunksIQ.subList(0, k);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tindirectQuoteBegin = chunksBeforeIndirectQuote.get(chunksBeforeIndirectQuote.size()-1).getEnd()+1;\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\t\t\t\t\tSystem.out.println(\"SAY NEW\" + indirectQuoteBegin + \":\" );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak SAY;\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}\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\t\t\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t}\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\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\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\t\n\t\t\t\t\t\t\t\tList<QuoteAnnotation> coveringDirectQuoteChunk = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t\t\t\tQuoteAnnotation.class, aChunk);\n\t\t\t\t\t\t\t\tif (coveringDirectQuoteChunk.isEmpty()){\n//\t\t\t\t\t\t\t\t indirectQuoteBegin = aChunk.getEnd() + 1;\n\t\t\t\t\t\t\t\t indirectQuote.setBegin(indirectQuoteBegin);\n//\t\t\t\t\t\t\t\t chunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\n\t\t\t\t\t\t\t\t indirectQuoteEnd = sentenceAnn.getEnd();\n\t\t\t\t\t\t\t\t indirectQuote.setEnd(indirectQuoteEnd);\n\t\t\t\t\t\t\t\t indirectQuote.addToIndexes();\n\t\t\t\t\t\t\t\t subsequentDirectQuoteInstance = false;\n//\t\t\t\t\t\t\t\t System.out.println(\"SUBSEQUENT FALSE\");\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\t \n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t List<Token> followTokens = JCasUtil.selectFollowing(aJCas,\n\t\t\t\t\t\t\t\t\t\t\tToken.class, indirectQuote, 1);\n\t\t\t\t\t\t\t\t for (Token aFollow3Token: followTokens){\n\t\t\t\t\t\t\t\t\t List<QuoteAnnotation> subsequentDirectQuotes = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t\t\t\t\tQuoteAnnotation.class,aFollow3Token);\n\t\t\t\t\t\t\t\t\t if (!subsequentDirectQuotes.isEmpty()){\n\t\t\t\t\t\t\t\t\t\t for (QuoteAnnotation subsequentDirectQuote: subsequentDirectQuotes){\n\t\t\t\t\t\t\t\t\t\t\t if (subsequentDirectQuote.getRepresentativeQuoteeMention() != null\n\t\t\t\t\t\t\t\t\t\t\t\t && subsequentDirectQuote.getRepresentativeQuoteeMention().equals(\"<unclear>\")){\n//\t\t\t\t\t\t\t\t\t\t\t System.out.println(\"SUBSEQUENT FOUND\"); \n\t\t\t\t\t\t\t\t\t\t\t hds.subsequentDirectQuote = subsequentDirectQuote;\n\t\t\t\t\t\t\t\t\t\t\t subsequentDirectQuoteInstance = true;\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t }\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\t break INDIRECTCHUNK;\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}\t\t\n\t\t\t\t}\n\t\t\t\t\tif (indirectQuoteBegin >= 0 && indirectQuoteEnd >= 0){\n//\t\t\t\t\t\tList<QuoteAnnotation> coveringDirectQuote = JCasUtil.selectCovering(aJCas,\n//\t\t\t\t\t\t\t\tQuoteAnnotation.class, indirectQuote);\n//\t\t\t\t\t\tif (coveringDirectQuote.isEmpty()){\n////\t\t\t\t\t\t\t\n//\t\t\t\t\t\tindirectQuote.addToIndexes();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse {\n//\t\t\t\t\t\t\t//indirect quote is covered by direct quote and therefore discarded\n//\t\t\t\t\t\t\tcontinue INDIRECTQUOTE;\n//\t\t\t\t\t\t}\n\t\t\t\t\tList<QuoteAnnotation> coveredDirectQuotes = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\tQuoteAnnotation.class, indirectQuote);\n\t\t\t\t\tfor (QuoteAnnotation coveredDirectQuote : coveredDirectQuotes){\n//\t\t\t\t\t\tSystem.out.println(\"Hello, World covered direct quote\" + coveredDirectQuote.getCoveredText());\n\t\t\t\t\t\t//delete coveredDirectQuoteIndex\n\t\t\t\t\t\tcoveredDirectQuote.removeFromIndexes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//no indirect quote in sentence\n\t\t\t\t\t\tcontinue INDIRECTQUOTE;\n\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\tRe-initialize markup variables since they are also used for direct quotes\n\t\t\t\t\t\tquotee_left = null;\n\t\t\t\t\t\tquotee_right = null; \n\t\t\t\t\t\t\n\t\t\t\t\t\trepresentative_quotee_left = null;\n\t\t\t\t\t\trepresentative_quotee_right = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tquote_relation_left = null;\n\t\t\t\t\t\tquote_relation_right = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tquoteType = \"indirect\";\n\t\t\t\t\t\tquoteeReliability = 5;\n\t\t\t\t\t\tquoteeReliability_left = 5;\n\t\t\t\t\t\tquoteeReliability_right = 5;\n\t\t\t\t\t\tquotee_end = -5;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\tif (chunksBeforeIndirectQuote != null){\n//\t\t\t\t\t\t\tSystem.out.println(\"chunksBeforeIndirectQuote FOUND!! \");\n\t\t\t\t\t\t\tString[] quote_annotation_result = determine_quotee_and_quote_relation(\"LEFT\", chunksBeforeIndirectQuote,\n\t\t\t\t\t\t\t\t\t hds, indirectQuote\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t );\n\t\t\tif (quote_annotation_result.length>=4){\n\t\t\t quotee_left = quote_annotation_result[0];\n\t\t\t representative_quotee_left = quote_annotation_result[1];\n\t\t\t quote_relation_left = quote_annotation_result[2];\n//\t\t\t System.out.println(\"INDIRECT QUOTE LEFT RESULT quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left\n//\t\t\t\t\t + \" QUOTE RELATION \" + quote_relation_left);\n\t\t\t try {\n\t\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t quoteeReliability_left = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tquoteeReliability = -5;\n\t\t\t\tquoteeReliability_left = -5;\n\t\t\t\t}\t\t\t\t\t \n\t\t\t }\n\t\t\t\n\t\t\t}\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (quotee_left != null){\n\t\t\t\t\t\t\tindirectQuote.setQuotee(quotee_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n\t\t\t\t\t\t\tindirectQuote.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\t\t\tindirectQuote.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//indirect quote followed by direct quote:\n\t\t\t\t\t\t\t//the quotee and quote relation of the indirect quote are copied to the direct quote \n\t\t\t\t\t\t\t//Genetic researcher Otmar Wiestler hopes that the government's strict controls on genetic research \n\t\t\t\t\t\t\t//will be relaxed with the advent of the new ethics commission. \n\t\t\t\t\t\t\t//\"For one thing the government urgently needs advice, because of course it's such an extremely \n\t\t\t\t\t\t\t//complex field. And one of the reasons Chancellor Schröder formed this new commission was without \n\t\t\t\t\t\t\t//a doubt to create his own group of advisors.\"\n\n\t\t\t\t\t\t\tif (subsequentDirectQuoteInstance == true\n\t\t\t\t\t\t\t\t&&\thds.subsequentDirectQuote.getRepresentativeQuoteeMention().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t&& \thds.subsequentDirectQuote.getQuotee().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t&& \thds.subsequentDirectQuote.getQuoteRelation().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t\t){\n//\t\t\t\t\t\t\t\tSystem.out.println(\"SUBSEQUENT UNCLEAR DIR QUOTE FOUND!!\"); \n\t\t\t\t\t\t\t\tint begin = hds.subsequentDirectQuote.getBegin();\n\t\t\t\t\t\t\t\tint end = hds.subsequentDirectQuote.getEnd();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuotee(quotee_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteType(\"direct\");\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteeReliability(quoteeReliability_left + 2);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.addToIndexes();\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\t\t\t\t\n\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println(\"Hello, World INDIRECT QUOTE \" + quotee_left + quote_relation_left + quoteeReliability);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (quote_relation_left != null){\n\t\t\t\t\t\t\tindirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (quoteType != null){\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n//\t\t\t\t\t\t\tSystem.out.println(\"Hello, World INDIRECT QUOTE NOT FOUND\" + quote_relation_left);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (indirectQuote.getRepresentativeQuoteeMention() != null){\n//\t\t\t\t\t\t\tSystem.out.println(\"NOW!!\" + indirectQuote.getRepresentativeQuoteeMention());\n\t\t\t\t\t\t\tif (hds.dbpediaSurfaceFormToDBpediaLink.containsKey(indirectQuote.getRepresentativeQuoteeMention())){\n\t\t\t\t\t\t\t\tindirectQuote.setQuoteeDBpediaUri(hds.dbpediaSurfaceFormToDBpediaLink.get(indirectQuote.getRepresentativeQuoteeMention()));\n//\t\t\t\t\t\t\t\tSystem.out.println(\"DBPEDIA \" + indirectQuote.getRepresentativeQuoteeMention() + \" URI: \" + hds.dbpediaSurfaceFormToDBpediaLink.get(indirectQuote.getRepresentativeQuoteeMention()));\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\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t }\n//\t\t\t} //for chunk\n//\t\t\t\tsay without that\n//\t\t\t}\t\t\n\t\t} //Core map sentences indirect quotes\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void prepareAlignment(String sq1, String sq2) {\n if(F == null) {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n F = new float[3][n+1][m+1];\n B = new TracebackAffine[3][n+1][m+1];\n for(int k = 0; k < 3; k++) {\n for(int i = 0; i < n+1; i ++) {\n for(int j = 0; j < m+1; j++)\n B[k][i][j] = new TracebackAffine(0,0,0);\n }\n }\n }\n\n //alignment already been run and existing matrix is big enough to reuse.\n else if(seq1.length() <= n && seq2.length() <= m) {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n }\n\n //alignment already been run but matrices not big enough for new alignment.\n //create all new matrices.\n else {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n F = new float[3][n+1][m+1];\n B = new TracebackAffine[3][n+1][m+1];\n for(int k = 0; k < 3; k++) {\n for(int i = 0; i < n+1; i ++) {\n for(int j = 0; j < m+1; j++)\n B[k][i][j] = new TracebackAffine(0,0,0);\n }\n }\n }\n }",
"public String getAnnotatedSequence(JCas systemView, JCas goldView, Sentence sentence) {\n\n List<String> annotatedSequence = new ArrayList<>();\n\n for(BaseToken baseToken : JCasUtil.selectCovered(systemView, BaseToken.class, sentence)) {\n List<EventMention> events = JCasUtil.selectCovering(goldView, EventMention.class, baseToken.getBegin(), baseToken.getEnd());\n List<TimeMention> times = JCasUtil.selectCovering(goldView, TimeMention.class, baseToken.getBegin(), baseToken.getEnd());\n\n if(events.size() > 0) {\n // this is an event (single word)\n annotatedSequence.add(\"<e>\");\n annotatedSequence.add(baseToken.getCoveredText());\n annotatedSequence.add(\"</e>\");\n } else if(times.size() > 0) {\n // this is time expression (multi-word)\n if(times.get(0).getBegin() == baseToken.getBegin()) {\n annotatedSequence.add(\"<t>\");\n }\n annotatedSequence.add(baseToken.getCoveredText());\n if(times.get(0).getEnd() == baseToken.getEnd()) {\n annotatedSequence.add(\"</t>\"); \n }\n } else {\n annotatedSequence.add(baseToken.getCoveredText());\n }\n }\n \n return String.join(\" \", annotatedSequence).replaceAll(\"[\\r\\n]\", \" \");\n }",
"public static void main(String[] args) throws IOException {\n\t\tIDictionary dict = new Dictionary (new File(\"dict\"));\n\t\tdict.open ();\n\t\t\n\t\t//Load input file\n\t\tLinkedHashMap<String,Word> words = new LinkedHashMap<String,Word>();\n\t\tArrayList<Sentence> senten = new ArrayList<Sentence>();\n\t\tloadInput(\"input.txt\",words, senten, dict);\n\n\t\t//Produce lexical chains\n\t\tArrayList<Chain> chainsList = new ArrayList<Chain>();\n\t\tproduceChains(chainsList, words, dict);\n\t\t\n\t\t//Save the output\n\t\tsaveOutput(\"output.txt\", chainsList);\n\t\t\n\t\t//Calculate chain score\n\t\tfor(int i=0;i<chainsList.size();i++) {\n\t\t\tchainsList.get(i).sumScore();\n\t\t}\n\t\t\n\t\t//Calculate sentence score\n\t\tfor(int i=0;i<senten.size();i++) {\n\t\t\tfor(int j=0;j<chainsList.size();j++) {\n\t\t\t\tsenten.get(i).matchChain(chainsList.get(j));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Define comparators\n\t\tComparator c1 = new Comparator<Sentence>() { \n\t\t\t@Override\n\t\t\tpublic int compare(Sentence s1, Sentence s2) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(s1.getScore() > s2.getScore()) return -1;\n\t\t\t\telse return 1;\n\t\t\t} \n }; \n Comparator c2 = new Comparator<Sentence>() { \n\t\t\t@Override\n\t\t\tpublic int compare(Sentence s1, Sentence s2) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(s1.getId() < s2.getId()) return -1;\n\t\t\t\telse return 1;\n\t\t\t} \n }; \n \n //Get the core sentences\n\t\tCollections.sort(senten, c1);\n\t\tArrayList<Sentence> summ = new ArrayList<Sentence>();\n\t\tint extractSize = (int) (senten.size()*0.3 == 0?1:senten.size()*0.3);\n\t\tfor(int i=0;i<extractSize;i++) {\n\t\t\tsumm.add(senten.get(i));\n\t\t}\n\t\t//Restore the original order of sentences\n\t\tCollections.sort(summ, c2);\n\t\tfor(int i=0;i<summ.size();i++) {\n\t\t\tSystem.out.println(summ.get(i).getSentence());\n\t\t}\t\t\t\t\n\t}",
"public void description() throws Exception {\n PrintWriter pw = new PrintWriter(System.getProperty(\"user.dir\")+ \"/resources/merged_file.txt\"); \n \n // BufferedReader for obtaining the description files of the ontology & ODP\n BufferedReader br1 = new BufferedReader(new FileReader(System.getProperty(\"user.dir\")+ \"/resources/ontology_description\")); \n BufferedReader br2 = new BufferedReader(new FileReader(System.getProperty(\"user.dir\")+ \"/resources/odps_description.txt\")); \n String line1 = br1.readLine(); \n String line2 = br2.readLine(); \n \n // loop is used to copy the lines of file 1 to the other \n if(line1==null){\n\t \tpw.print(\"\\n\");\n\t }\n while (line1 != null || line2 !=null) \n { \n if(line1 != null) \n { \n pw.println(line1); \n line1 = br1.readLine(); \n } \n \n if(line2 != null) \n { \n pw.println(line2); \n line2 = br2.readLine(); \n } \n } \n pw.flush(); \n // closing the resources \n br1.close(); \n br2.close(); \n pw.close(); \n \n // System.out.println(\"Merged\"); -> for checking the code execution\n /* On obtaining the merged file, Doc2Vec model is implemented so that vectors are\n * obtained. And the, similarity ratio of the ontology description with the ODPs \n * can be found using cosine similarity \n */\n \tFile file = new File(System.getProperty(\"user.dir\")+ \"/resources/merged_file.txt\"); \t\n SentenceIterator iter = new BasicLineIterator(file);\n AbstractCache<VocabWord> cache = new AbstractCache<VocabWord>();\n TokenizerFactory t = new DefaultTokenizerFactory();\n t.setTokenPreProcessor(new CommonPreprocessor()); \n LabelsSource source = new LabelsSource(\"Line_\");\n ParagraphVectors vec = new ParagraphVectors.Builder()\n \t\t.minWordFrequency(1)\n \t .labelsSource(source)\n \t .layerSize(100)\n \t .windowSize(5)\n \t .iterate(iter)\n \t .allowParallelTokenization(false)\n .workers(1)\n .seed(1)\n .tokenizerFactory(t) \n .build();\n vec.fit();\n \n //System.out.println(\"Check the file\");->for execution of code\n PrintStream p=new PrintStream(new File(System.getProperty(\"user.dir\")+ \"/resources/description_values\")); //storing the numeric values\n \n \n Similarity s=new Similarity(); //method that checks the cosine similarity\n s.similarityCheck(p,vec);\n \n \n }",
"public static void main(String[] args) throws AlignmentException, IOException, URISyntaxException, OWLOntologyCreationException {\n\t\tfinal double threshold = 0.9;\n\t\tfinal String thresholdValue = removeCharAt(String.valueOf(threshold),1);\t\n\t\t\n\t\t/*** 2. Define the folder name holding all ontologies to be matched ***/\t\t\n\t\tFile topOntologiesFolder = new File (\"./files/ATMONTO_AIRM/ontologies\");\n\t\t//File topOntologiesFolder = new File (\"./files/expe_oaei_2011/ontologies\");\n\t\tFile[] ontologyFolders = topOntologiesFolder.listFiles();\n\t\t\n\t\t/*** 3. Define the folder name holding all reference alignments for evaluation of the computed alignments ***/\n\t\t//File refAlignmentsFolder = new File(\"./files/expe_oaei_2011/ref_alignments\");\n\t\tFile refAlignmentsFolder = new File(\"./files/ATMONTO_AIRM/ref_alignments\");\n\n\n\t\t/*** No need to touch these ***/\n\t\tString alignmentFileName = null;\n\t\tFile outputAlignment = null;\n\t\tPrintWriter writer = null;\n\t\tAlignmentVisitor renderer = null;\n\t\tProperties params = new Properties();\n\t\tAlignmentProcess a = null;\n\t\tString onto1 = null;\n\t\tString onto2 = null;\t\t\n\t\tString vectorFile1Name = null;\n\t\tString vectorFile2Name = null;\n\n//\t\t//String matcher\n//\t\tfor (int i = 0; i < ontologyFolders.length; i++) {\n//\n//\t\t\tFile[] files = ontologyFolders[i].listFiles();\n//\n//\t\t\tfor (int j = 1; j < files.length; j++) {\n//\t\t\t\tSystem.out.println(\"Matching \" + files[0] + \" and \" + files[1]);\n//\t\t\t\t\n//\t\t\t\t//used for retrieving the correct vector files and for presenting prettier names of the stored alignments \n//\t\t\t\tonto1 = files[0].getName().substring(files[0].getName().lastIndexOf(\"/\") +1, files[0].getName().lastIndexOf(\"/\") + 4);\n//\t\t\t\tonto2 = files[1].getName().substring(files[1].getName().lastIndexOf(\"/\") +4, files[1].getName().lastIndexOf(\"/\") + 7);\t\n//\t\t\t\t\t\t\t\n//\n//\t\t\t\t//match the files using the ISUBMatcher\n//\t\t\t\ta = new ISubMatcher();\n//\t\t\t\ta.init(files[0].toURI(), files[1].toURI());\n//\t\t\t\tparams = new Properties();\n//\t\t\t\tparams.setProperty(\"\", \"\");\n//\t\t\t\ta.align((Alignment)null, params);\t\n//\t\t\t\t\n//\t\t\t\t//store the computed alignment to file\n//\t\t\t\talignmentFileName = \"./files/expe_oaei_2011/isub_alignments/\" + onto1 + \"-\" + onto2 + \"-\" + \"ISub\" + \"-\" + thresholdValue + \".rdf\";\n//\t\t\t\toutputAlignment = new File(alignmentFileName);\n//\t\t\t\t\n//\t\t\t\twriter = new PrintWriter(\n//\t\t\t\t\t\tnew BufferedWriter(\n//\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true); \n//\t\t\t\trenderer = new RDFRendererVisitor(writer);\n//\n//\t\t\t\tBasicAlignment ISubAlignment = (BasicAlignment)(a.clone());\n//\t\t\t\t\t\t\t\n//\t\t\t\t//remove all correspondences with similarity below the defined threshold\n//\t\t\t\tISubAlignment.cut(threshold);\n//\n//\t\t\t\tISubAlignment.render(renderer);\n//\t\t\t\t\n//\t\t\t\tSystem.err.println(\"The ISub alignment contains \" + ISubAlignment.nbCells() + \" correspondences\");\n//\t\t\t\twriter.flush();\n//\t\t\t\twriter.close();\n//\t\t\t\t\n//\t\t\t\tSystem.out.println(\"\\nMatching with ISub Matcher completed!\");\n//\n//\t\t\t}\n//\t\t}\n\t\t\n\t\t //WEMatcher\n\t\t for (int i = 0; i < ontologyFolders.length; i++) {\n\n\t\t\tFile[] files = ontologyFolders[i].listFiles();\n\n\t\t\tfor (int j = 1; j < files.length; j++) {\n\t\t\t\tSystem.out.println(\"Matching \" + files[0] + \" and \" + files[1]);\n\t\t\t\t\n\t\t\t\t//used for retrieving the correct vector files and for presenting prettier names of the stored alignments \n\t\t\t\tonto1 = files[0].getName().substring(files[0].getName().lastIndexOf(\"/\") +1, files[0].getName().lastIndexOf(\"/\") + 4);\n\t\t\t\tonto2 = files[1].getName().substring(files[1].getName().lastIndexOf(\"/\") +4, files[1].getName().lastIndexOf(\"/\") + 7);\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t//get the relevant vector files for these ontologies\n//\t\t\t\tvectorFile1Name = \"./files/expe_oaei_2011/vector-files-single-ontology/vectorOutput-\" + onto1 + \".txt\";\n//\t\t\t\tvectorFile2Name = \"./files/expe_oaei_2011/vector-files-single-ontology/vectorOutput-\" + onto2 + \".txt\";\n\t\t\t\tvectorFile1Name = \"./files/ATMONTO_AIRM/vector-files-single-ontology/vectorOutput-\" + onto1 + \".txt\";\n\t\t\t\tvectorFile2Name = \"./files/ATMONTO_AIRM/vector-files-single-ontology/vectorOutput-\" + onto2 + \".txt\";\n\n\t\t\t\t//match the files using the WEGlobalMatcher\n\t\t\t\ta = new WEGlobalMatcher(vectorFile1Name, vectorFile2Name);\n\t\t\t\ta.init(files[0].toURI(), files[1].toURI());\n\t\t\t\tparams = new Properties();\n\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\ta.align((Alignment)null, params);\t\n\t\t\t\t\n\t\t\t\t//store the computed alignment to file\n//\t\t\t\talignmentFileName = \"./files/expe_oaei_2011/alignments/\" + onto1 + \"-\" + onto2 + \"-\" + \"WEGlobal\" + \"-\" + thresholdValue + \".rdf\";\n\t\t\t\talignmentFileName = \"./files/ATMONTO_AIRM/alignments/\" + onto1 + \"-\" + onto2 + \"-\" + \"WEGlobal\" + \"-\" + thresholdValue + \".rdf\";\n\t\t\t\toutputAlignment = new File(alignmentFileName);\n\t\t\t\t\n\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true); \n\t\t\t\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\tBasicAlignment WEGlobalAlignment = (BasicAlignment)(a.clone());\n\t\t\t\t\t\t\t\n\t\t\t\t//remove all correspondences with similarity below the defined threshold\n\t\t\t\tWEGlobalAlignment.cut(threshold);\n\n\t\t\t\tWEGlobalAlignment.render(renderer);\n\t\t\t\t\n\t\t\t\tSystem.err.println(\"The WEGlobal alignment contains \" + WEGlobalAlignment.nbCells() + \" correspondences\");\n\t\t\t\twriter.flush();\n\t\t\t\twriter.close();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\nMatching with WEGlobal Matcher completed!\");\n\t\t\t\t\n\t\t\t\t//match the files using the WELabelMatcher\n\t\t\t\ta = new WELabelMatcher(vectorFile1Name, vectorFile2Name);\n\t\t\t\ta.init(files[0].toURI(), files[1].toURI());\n\t\t\t\tparams = new Properties();\n\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\ta.align((Alignment)null, params);\t\n\t\t\t\t\n\t\t\t\t//store the computed alignment to file\n//\t\t\t\talignmentFileName = \"./files/expe_oaei_2011/alignments/\" + onto1 + \"-\" + onto2 + \"-\" + \"WELabel\" + \"-\" + thresholdValue + \".rdf\";\n\t\t\t\talignmentFileName = \"./files/ATMONTO_AIRM/alignments/\" + onto1 + \"-\" + onto2 + \"-\" + \"WELabel\" + \"-\" + thresholdValue + \".rdf\";\n\t\t\t\toutputAlignment = new File(alignmentFileName);\n\t\t\t\t\n\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true); \n\t\t\t\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\tBasicAlignment WELabelAlignment = (BasicAlignment)(a.clone());\n\t\t\t\t\t\t\t\n\t\t\t\t//remove all correspondences with similarity below the defined threshold\n\t\t\t\tWELabelAlignment.cut(threshold);\n\n\t\t\t\tWELabelAlignment.render(renderer);\n\t\t\t\t\n\t\t\t\tSystem.err.println(\"The WELabel alignment contains \" + WELabelAlignment.nbCells() + \" correspondences\");\n\t\t\t\twriter.flush();\n\t\t\t\twriter.close();\n\t\t\t\tSystem.out.println(\"Matching with WELabel Matcher completed!\");\n\t\t\t}\n\t\t}\n}",
"@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 }",
"@Test\r\n public void testSentencesFromFile() throws IOException {\r\n System.out.print(\"Testing all sentences from file\");\r\n int countCorrect = 0;\r\n int countTestedSentences = 0;\r\n\r\n for (ArrayList<String> sentences : testSentences) {\r\n String correctSentence = sentences.get(0);\r\n System.out.println(\"testing '\" + correctSentence + \"' variations\");\r\n CorpusReader cr = new CorpusReader();\r\n ConfusionMatrixReader cmr = new ConfusionMatrixReader();\r\n SpellCorrector sc = new SpellCorrector(cr, cmr);\r\n int countSub = 0;\r\n for (String s : sentences) {\r\n String output = sc.correctPhrase(s);\r\n countSub += correctSentence.equals(output) ? 1 : 0;\r\n System.out.println(String.format(\"Input \\\"%1$s\\\" returned \\\"%2$s\\\", equal: %3$b\", s, output, correctSentence.equals(output)));\r\n collector.checkThat(\"input sentence: \" + s + \". \", output, IsEqual.equalTo(correctSentence));\r\n countTestedSentences++;\r\n }\r\n System.out.println(String.format(\"Correct answers for '%3$s': (%1$2d/%2$2d)\", countSub, sentences.size(), correctSentence));\r\n System.out.println();\r\n countCorrect += countSub;\r\n }\r\n\r\n System.out.println(String.format(\"Correct answers in total: (%1$2d/%2$2d)\", countCorrect, countTestedSentences));\r\n System.out.println();\r\n }",
"public ConfidenceAlignment(String sgtFile,String tgsFile,String sgtLexFile,String tgsLexFile){\r\n\t\r\n\t\tLEX = new TranslationLEXICON(sgtLexFile,tgsLexFile);\r\n\t\t\r\n\t\tint sennum = 0;\r\n\t\tdouble score = 0.0;\r\n\t\t// Reading a GZIP file (SGT) \r\n\t\ttry { \r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader\r\n\t\t\t\t\t\t\t\t(new GZIPInputStream(new FileInputStream(sgtFile)),\"UTF8\"));\r\n\t\t\r\n\t\tString one = \"\"; String two =\"\"; String three=\"\"; \r\n\t\twhile((one=br.readLine())!=null){\r\n\t\t\ttwo = br.readLine(); \r\n\t\t\tthree=br.readLine(); \r\n\r\n\t\t\tMatcher m1 = scorepattern.matcher(one);\r\n\t\t\tif (m1.find()) \r\n\t\t\t{\r\n\t\t\t\tscore = Double.parseDouble(m1.group(1));\r\n\t\t\t\t//System.err.println(\"Score:\"+score);\r\n\t\t\t}\r\n\r\n\t\t\tgizaSGT.put(sennum,score); \r\n\t\t\tsennum++;\r\n\t\t}\r\n\t\tbr.close();\r\n\t\tSystem.err.println(\"Loaded \"+sennum+ \" sens from SGT file:\"+sgtFile);\r\n\t\t\r\n\t\t// Reading a GZIP file (TGS)\r\n\t\tsennum = 0; \r\n\t\tbr = new BufferedReader(new InputStreamReader\r\n\t\t\t\t\t\t\t\t(new GZIPInputStream(new FileInputStream(tgsFile)),\"UTF8\")); \r\n\t\twhile((one=br.readLine())!=null){\r\n\t\t\ttwo = br.readLine(); \r\n\t\t\tthree=br.readLine(); \r\n\t\t\t\r\n\t\t\tMatcher m1 = scorepattern.matcher(one);\r\n\t\t\tif (m1.find()) \r\n\t\t\t{\r\n\t\t\t\tscore = Double.parseDouble(m1.group(1));\r\n\t\t\t\t//System.err.println(\"Score:\"+score);\r\n\t\t\t}\r\n\t\t\tgizaTGS.put(sennum,score); \r\n\t\t\tsennum++;\r\n\t\t}\r\n\t\tbr.close();\t\t\r\n\t\t}catch(Exception e){}\r\n\t\tSystem.err.println(\"Loaded \"+sennum+ \" sens from SGT file:\"+sgtFile);\t\r\n\t}",
"public static void main(String[] args) throws FileNotFoundException {\n\n Scanner readFile = new Scanner(new File(\"sentences.txt\"));\n \n //Boolean to make sure parameters fit the finalized tokens\n boolean okay = true; \n \n while (readFile.hasNext()) {\n Stemmer s = new Stemmer();\n String token = readFile.next();\n okay = true;\n \n //Section to ensure no numerics\n if (token.contains(\"1\") || token.contains(\"2\"))\n okay = false;\n else if (token.contains(\"3\")||token.contains(\"4\"))\n okay = false;\n else if (token.contains(\"5\")||token.contains(\"6\"))\n okay = false;\n else if (token.contains(\"7\")||token.contains(\"8\"))\n okay = false;\n else if (token.contains(\"9\")||token.contains(\"0\"))\n okay = false;\n else {\n \n //remove characters\n token = token.replace(\"\\,\", \" \");\n token = token.replace(\"\\.\", \" \");\n token = token.replace(\"\\\"\", \" \");\n token = token.replace(\"\\(\", \" \");\n token = token.replace(\"\\)\", \" \");\n token = token.replace(\"'s\", \" \");\n token = token.trim();\n token = token.toLowerCase();\n }\n \n //Giant hard coded section to remove numerics\n if (token.compareTo(\"a\")==0)\n okay=false;\n if (token.compareTo(\"able\")==0)\n okay=false;\n if (token.compareTo(\"about\")==0)\n okay=false;\n if (token.compareTo(\"across\")==0)\n okay=false;\n if (token.compareTo(\"after\")==0)\n okay=false;\n if (token.compareTo(\"all\")==0)\n okay=false;\n if (token.compareTo(\"almost\")==0)\n okay=false;\n if (token.compareTo(\"also\")==0)\n okay=false;\n if (token.compareTo(\"am\")==0)\n okay=false;\n if (token.compareTo(\"among\")==0)\n okay=false;\n if (token.compareTo(\"an\")==0)\n okay=false;\n if (token.compareTo(\"and\")==0)\n okay=false;\n if (token.compareTo(\"any\")==0)\n okay=false;\n if (token.compareTo(\"are\")==0)\n okay=false;\n if (token.compareTo(\"as\")==0)\n okay=false;\n if (token.compareTo(\"at\")==0)\n okay=false;\n if (token.compareTo(\"be\")==0)\n okay=false;\n if (token.compareTo(\"because\")==0)\n okay=false;\n if (token.compareTo(\"been\")==0)\n okay=false;\n if (token.compareTo(\"but\")==0)\n okay=false;\n if (token.compareTo(\"by\")==0)\n okay=false;\n if (token.compareTo(\"can\")==0)\n okay=false;\n if (token.compareTo(\"cannot\")==0)\n okay=false;\n if (token.compareTo(\"could\")==0)\n okay=false;\n if (token.compareTo(\"dear\")==0)\n okay=false;\n if (token.compareTo(\"did\")==0)\n okay=false;\n if (token.compareTo(\"do\")==0)\n okay=false;\n if (token.compareTo(\"does\")==0)\n okay=false;\n if (token.compareTo(\"either\")==0)\n okay=false;\n if (token.compareTo(\"else\")==0)\n okay=false;\n if (token.compareTo(\"ever\")==0)\n okay=false;\n if (token.compareTo(\"every\")==0)\n okay=false;\n if (token.compareTo(\"for\")==0)\n okay=false;\n if (token.compareTo(\"from\")==0)\n okay=false;\n if (token.compareTo(\"get\")==0)\n okay=false;\n if (token.compareTo(\"got\")==0)\n okay=false;\n if (token.compareTo(\"had\")==0)\n okay=false;\n if (token.compareTo(\"has\")==0)\n okay=false;\n if (token.compareTo(\"have\")==0)\n okay=false;\n if (token.compareTo(\"he\")==0)\n okay=false;\n if (token.compareTo(\"her\")==0)\n okay=false;\n if (token.compareTo(\"hers\")==0)\n okay=false;\n if (token.compareTo(\"him\")==0)\n okay=false;\n if (token.compareTo(\"his\")==0)\n okay=false;\n if (token.compareTo(\"how\")==0)\n okay=false;\n if (token.compareTo(\"however\")==0)\n okay=false;\n if (token.compareTo(\"i\")==0)\n okay=false;\n if (token.compareTo(\"if\")==0)\n okay=false;\n if (token.compareTo(\"in\")==0)\n okay=false;\n if (token.compareTo(\"into\")==0)\n okay=false;\n if (token.compareTo(\"is\")==0)\n okay=false;\n if (token.compareTo(\"it\")==0)\n okay=false;\n if (token.compareTo(\"its\")==0)\n okay=false;\n if (token.compareTo(\"just\")==0)\n okay=false;\n if (token.compareTo(\"least\")==0)\n okay=false;\n if (token.compareTo(\"let\")==0)\n okay=false;\n if (token.compareTo(\"like\")==0)\n okay=false;\n if (token.compareTo(\"likely\")==0)\n okay=false;\n if (token.compareTo(\"may\")==0)\n okay=false;\n if (token.compareTo(\"me\")==0)\n okay=false;\n if (token.compareTo(\"might\")==0)\n okay=false;\n if (token.compareTo(\"most\")==0)\n okay=false;\n if (token.compareTo(\"must\")==0)\n okay=false;\n if (token.compareTo(\"my\")==0)\n okay=false;\n if (token.compareTo(\"neither\")==0)\n okay=false;\n if (token.compareTo(\"no\")==0)\n okay=false;\n if (token.compareTo(\"nor\")==0)\n okay=false;\n if (token.compareTo(\"not\")==0)\n okay=false;\n if (token.compareTo(\"of\")==0)\n okay=false;\n if (token.compareTo(\"off\")==0)\n okay=false;\n if (token.compareTo(\"often\")==0)\n okay=false;\n if (token.compareTo(\"on\")==0)\n okay=false;\n if (token.compareTo(\"only\")==0)\n okay=false;\n if (token.compareTo(\"or\")==0)\n okay=false;\n if (token.compareTo(\"other\")==0)\n okay=false;\n if (token.compareTo(\"our\")==0)\n okay=false;\n if (token.compareTo(\"own\")==0)\n okay=false;\n if (token.compareTo(\"rather\")==0)\n okay=false;\n if (token.compareTo(\"said\")==0)\n okay=false;\n if (token.compareTo(\"say\")==0)\n okay=false;\n if (token.compareTo(\"says\")==0)\n okay=false;\n if (token.compareTo(\"she\")==0)\n okay=false;\n if (token.compareTo(\"should\")==0)\n okay=false;\n if (token.compareTo(\"since\")==0)\n okay=false;\n if (token.compareTo(\"so\")==0)\n okay=false;\n if (token.compareTo(\"some\")==0)\n okay=false;\n if (token.compareTo(\"than\")==0)\n okay=false;\n if (token.compareTo(\"that\")==0)\n okay=false;\n if (token.compareTo(\"the\")==0)\n okay=false;\n if (token.compareTo(\"their\")==0)\n okay=false;\n if (token.compareTo(\"them\")==0)\n okay=false;\n if (token.compareTo(\"then\")==0)\n okay=false;\n if (token.compareTo(\"there\")==0)\n okay=false;\n if (token.compareTo(\"these\")==0)\n okay=false;\n if (token.compareTo(\"they\")==0)\n okay=false;\n if (token.compareTo(\"this\")==0)\n okay=false;\n if (token.compareTo(\"tis\")==0)\n okay=false;\n if (token.compareTo(\"to\")==0)\n okay=false;\n if (token.compareTo(\"too\")==0)\n okay=false;\n if (token.compareTo(\"twas\")==0)\n okay=false;\n if (token.compareTo(\"us\")==0)\n okay=false;\n if (token.compareTo(\"wants\")==0)\n okay=false;\n if (token.compareTo(\"was\")==0)\n okay=false;\n if (token.compareTo(\"we\")==0)\n okay=false;\n if (token.compareTo(\"were\")==0)\n okay=false;\n if (token.compareTo(\"what\")==0)\n okay=false;\n if (token.compareTo(\"when\")==0)\n okay=false;\n if (token.compareTo(\"where\")==0)\n okay=false;\n if (token.compareTo(\"which\")==0)\n okay=false;\n if (token.compareTo(\"while\")==0)\n okay=false;\n if (token.compareTo(\"who\")==0)\n okay=false;\n if (token.compareTo(\"whom\")==0)\n okay=false;\n if (token.compareTo(\"why\")==0)\n okay=false;\n if (token.compareTo(\"will\")==0)\n okay=false;\n if (token.compareTo(\"with\")==0)\n okay=false;\n if (token.compareTo(\"would\")==0)\n okay=false;\n if (token.compareTo(\"yet\")==0)\n okay=false;\n if (token.compareTo(\"you\")==0)\n okay=false;\n if (token.compareTo(\"your\")==0)\n okay=false;\n \n //Stemming process\n if(okay){\n s.add(token.toCharArray(),token.length());\n s.stem();\n token = s.toString();\n }\n \n //to make sure there are no duplicates\n if (tokenList.contains(token))\n okay = false;\n \n //Finalizing tokens\n if (okay)\n tokenList.add(token);\n \n\n }\n //System.out.println(i);\n System.out.println(tokenList.size());\n System.out.println(tokenList);\n readFile.close();\n \n Scanner readFile2 = new Scanner(new File(\"sentences.txt\"));\n \n \n //intializing TDMatrix\n int[][] tdm = new int[46][tokenList.size()];\n int i = 0;\n int j = 0;\n \n while (i<46){\n j=0;\n while (j < tokenList.size()){\n tdm[i][j]=0;\n j++;\n }\n i++;\n }\n \n String str;\n i=0;\n while (readFile2.hasNextLine()) {\n str=readFile2.nextLine();\n \n j=0;\n while (j<tokenList.size()){\n while ((str.contains(tokenList.get(j)))){\n tdm[i][j]++;\n str = str.replaceFirst(tokenList.get(j), \"***\");\n }\n j++;\n }\n \n i++;\n }\n \n i=0;\n while (i<46){\n j=0;\n while (j<tokenList.size()){\n System.out.print(tdm[i][j] + \" \");\n j++;\n }\n System.out.println(\"\");\n i++;\n }\n \n readFile.close();\n }",
"@Test\n\tpublic void testStoreProcessText2() {\n\t\tint sourceID = dm.storeProcessedText(pt1);\n\t\tassertTrue(sourceID > 0);\n\t\t\n\t\tds.startSession();\n\t\tSource source = ds.getSource(pt1.getMetadata().getUrl());\n\t\tList<Paragraph> paragraphs = (List<Paragraph>) ds.getParagraphs(source.getSourceID());\n\t\tassertTrue(pt1.getMetadata().getName().equals(source.getName()));\n\t\tassertTrue(pt1.getParagraphs().size() == paragraphs.size());\n\t\t\n\t\tfor(int i = 0; i < pt1.getParagraphs().size(); i++){\n\t\t\tParagraph p = paragraphs.get(i);\n\t\t\tParagraph originalP = pt1.getParagraphs().get(i);\n\t\t\tassertTrue(originalP.getParentOrder() == p.getParentOrder());\n\t\t\t\n\t\t\tList<Sentence> sentences = (List<Sentence>) ds.getSentences(p.getId());\n\t\t\tList<Sentence> originalSentences = (List<Sentence>) originalP.getSentences();\n\t\t\tfor(int j = 0; j < originalSentences.size(); j++){\n\t\t\t\tassertTrue(originalSentences.get(j).getContent().substring(DataStore.SENTENCE_PREFIX.length()).equals(sentences.get(j).getContent()));\n\t\t\t\tassertTrue(originalSentences.get(j).getParentOrder() == sentences.get(j).getParentOrder());\n\t\t\t}\n\t\t}\n\t\tds.closeSession();\n\t}",
"public static void main(String args[]) throws Exception {\n\n String sourceFile = args[0]; //source file has supervised SRL tags\n String targetFile = args[1]; //target file has supervised SRL tags\n String alignmentFile = args[2];\n String sourceClusterFilePath = args[3];\n String targetClusterFilePath = args[4];\n String projectionFilters = args[5];\n double sparsityThresholdStart = Double.parseDouble(args[6]);\n double sparsityThresholdEnd = Double.parseDouble(args[6]);\n\n\n Alignment alignment = new Alignment(alignmentFile);\n HashMap<Integer, HashMap<Integer, Integer>> alignmentDic = alignment.getSourceTargetAlignmentDic();\n\n final IndexMap sourceIndexMap = new IndexMap(sourceFile, sourceClusterFilePath);\n final IndexMap targetIndexMap = new IndexMap(targetFile, targetClusterFilePath);\n ArrayList<String> sourceSents = IO.readCoNLLFile(sourceFile);\n ArrayList<String> targetSents = IO.readCoNLLFile(targetFile);\n\n System.out.println(\"Projection started...\");\n DependencyLabelsAnalyser dla = new DependencyLabelsAnalyser();\n for (int senId = 0; senId < sourceSents.size(); senId++) {\n if (senId % 100000 == 0)\n System.out.print(senId);\n else if (senId % 10000 == 0)\n System.out.print(\".\");\n\n Sentence sourceSen = new Sentence(sourceSents.get(senId), sourceIndexMap);\n Sentence targetSen = new Sentence(targetSents.get(senId), targetIndexMap);\n int maxNumOfProjectedLabels = dla.getNumOfProjectedLabels(sourceSen, alignmentDic.get(senId));\n double trainGainPerWord = (double) maxNumOfProjectedLabels/targetSen.getLength();\n\n if (trainGainPerWord >= sparsityThresholdStart && trainGainPerWord< sparsityThresholdEnd) {\n dla.analysSourceTargetDependencyMatch(sourceSen, targetSen, alignmentDic.get(senId),\n sourceIndexMap, targetIndexMap, projectionFilters);\n }\n }\n System.out.print(sourceSents.size() + \"\\n\");\n dla.writeConfusionMatrix(\"confusion_\"+sparsityThresholdStart+\"_\"+sparsityThresholdEnd+\".out\", sourceIndexMap, targetIndexMap);\n }",
"public static void main (String args[]){\n\t\tString paragraph;//paragraph entered\r\n\t\tString newParagraph;//paragraph modified after string\r\n\t\tint count;//Count the characters excluding vowels\r\n\t\tString repeat;//Insert more paragraphs\r\n\t\tint menu;//Insert menu option\r\n\r\n\r\n\t\t//Declare objects for Q1\r\n\t\tScanner sc = new Scanner (System.in);\r\n\t\tTextProcessor myT = new TextProcessor();\r\n\r\n\r\n\t\t//Do While to set the menu options\r\n\t\tdo{\r\n\r\n\t\t//Input for menu\r\n\t\tSystem.out.println(\"\\n ____________________________________________________\" +\r\n\t\t\t\t\t\t\"\\n|Welcome to the Programming Society Application Menu!|\" +\r\n\t\t\t\t\t\t\"\\n| |\" +\r\n\t\t\t\t\t\t\"\\n|1 - Encode paragraphs |\" +\r\n\t\t\t\t\t\t\"\\n|2 - Enter words and find the longest one |\" +\r\n\t\t\t\t\t\t\"\\n|3 - Exit Application |\" +\r\n\t\t\t\t\t\t\"\\n|Enter your choice (1, 2 or 3): |\" +\r\n\t\t\t\t\t\t\"\\n|____________________________________________________|\" +\r\n\t\t\t\t\t\t\"\\n \");\r\n\t\tmenu = Integer.parseInt(sc.nextLine());\r\n\r\n\t\t\tif(menu == 1){\r\n\t\t\t\t//Do While for input and output for Q1 MPA2\r\n\t\t\t\tdo{\r\n\t\t\t\t\t//Input for Q1\r\n\t\t\t\t\tSystem.out.println(\"\\n \" + \"Please enter paragraph\");\r\n\t\t\t\t\tparagraph = sc.nextLine();\r\n\r\n\t\t\t\t\t//Set for Q1 (user input)\r\n\t\t\t\t\tmyT.setParagraph(paragraph);\r\n\r\n\t\t\t\t\t//Process for Q1\r\n\t\t\t\t\tmyT.computeParagraph();\r\n\r\n\t\t\t\t\t//Fetch results and Output for Q1\r\n\t\t\t\t\tnewParagraph = myT.getNewParagraph();\r\n\t\t\t\t\tcount = myT.getCount();\r\n\r\n\t\t\t\t\t//Output for Q1\r\n\t\t\t\t\tSystem.out.println(\"\\n \" + \"Your encoded paragraph is \" + newParagraph + count);\r\n\r\n\t\t\t\t\t//Repeat for inserting more paragraphs for Q1 MPA2\r\n\t\t\t\t\tSystem.out.println(\"\\n \" + \"Would you like to encode another paragraph?(yes or no)\");\r\n\t\t\t\t\trepeat = sc.nextLine();\r\n\t\t\t\t}\r\n\r\n\t\t\t\twhile (!repeat.equalsIgnoreCase(\"no\"));\r\n\t\t\t}\r\n\r\n\t\t\telse if(menu == 2){\r\n\t\t\t\tSystem.out.println(\"\\n \" + \"How many words would you like to enter?\");\r\n\t\t\t\tint wordNumber = Integer.parseInt(sc.nextLine());\r\n\t\t\t\tString word[] = new String [wordNumber];\r\n\t\t\t\tmyT.setWordNumber(wordNumber);\r\n\r\n\r\n\t\t\t\tfor(int i = 0; i < word.length; i++){\r\n\t\t\t\t\tSystem.out.println(\"\\n \" + \"Please enter word \" + \"(\" + (i+1) + \"):\");\r\n\t\t\t\t\tword[i] = sc.nextLine();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmyT.setWord(word);\r\n\r\n\t\t\t\tString longestWord[] = new String[wordNumber];\r\n\r\n\t\tSystem.out.println(\"the longest is: \" + Arrays.deepToString(longestWord));\r\n\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if(menu == 3){\r\n\t\t\t\tSystem.out.println(\"Thank you\");\r\n\t\t\t}\r\n\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Not a valid function.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twhile(menu != 3);\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tString[] testSentence = new String[]{\r\n\t\t\t\t\"西三旗硅谷先锋小区半地下室出租,便宜可合租硅谷工信处女干事每月经过下属科室都要亲口交代24口交换机等技术性器件的安装工作\",\r\n\t\t\t\t\"这是一个伸手不见五指的黑夜。我叫孙悟空,我爱北京,我爱Python和C++。\",\r\n\t\t\t \"我不喜欢日本和服。\",\r\n\t\t\t \"雷猴回归人间。\",\r\n\t\t\t \"工信处女干事每月经过下属科室都要亲口交代24口交换机等技术性器件的安装工作\",\r\n\t\t\t \"我需要廉租房\",\r\n\t\t\t \"永和服装饰品有限公司\",\r\n\t\t\t \"我爱北京天安门\",\r\n\t\t\t \"abc\",\r\n\t\t\t \"隐马尔可夫\",\r\n\t\t\t \"雷猴是个好网站\",\r\n\t\t\t \"“Microsoft”一词由“MICROcomputer(微型计算机)”和“SOFTware(软件)”两部分组成\",\r\n\t\t\t \"草泥马和欺实马是今年的流行词汇\",\r\n\t\t\t \"伊藤洋华堂总府店\",\r\n\t\t\t \"中国科学院计算技术研究所\",\r\n\t\t\t \"罗密欧与朱丽叶\",\r\n\t\t\t \"我购买了道具和服装\",\r\n\t\t\t \"PS: 我觉得开源有一个好处,就是能够敦促自己不断改进,避免敞帚自珍\",\r\n\t\t\t \"湖北省石首市\",\r\n\t\t\t \"湖北省十堰市\",\r\n\t\t\t \"总经理完成了这件事情\",\r\n\t\t\t \"电脑修好了\",\r\n\t\t\t \"做好了这件事情就一了百了了\",\r\n\t\t\t \"人们审美的观点是不同的\",\r\n\t\t\t \"我们买了一个美的空调\",\r\n\t\t\t \"线程初始化时我们要注意\",\r\n\t\t\t \"一个分子是由好多原子组织成的\",\r\n\t\t\t \"祝你马到功成\",\r\n\t\t\t \"他掉进了无底洞里\",\r\n\t\t\t \"中国的首都是北京\",\r\n\t\t\t \"孙君意\",\r\n\t\t\t \"外交部发言人马朝旭\",\r\n\t\t\t \"领导人会议和第四届东亚峰会\",\r\n\t\t\t \"在过去的这五年\",\r\n\t\t\t \"还需要很长的路要走\",\r\n\t\t\t \"60周年首都阅兵\",\r\n\t\t\t \"你好人们审美的观点是不同的\",\r\n\t\t\t \"买水果然后去世博园\",\r\n\t\t\t \"但是后来我才知道你是对的\",\r\n\t\t\t \"存在即合理\",\r\n\t\t\t \"的的的的的在的的的的就以和和和\",\r\n\t\t\t \"I love你,不以为耻,反以为rong\",\r\n\t\t\t \"hello你好人们审美的观点是不同的\",\r\n\t\t\t \"很好但主要是基于网页形式\",\r\n\t\t\t \"hello你好人们审美的观点是不同的\",\r\n\t\t\t \"为什么我不能拥有想要的生活\",\r\n\t\t\t \"后来我才\",\r\n\t\t\t \"此次来中国是为了\",\r\n\t\t\t \"使用了它就可以解决一些问题\",\r\n\t\t\t \",使用了它就可以解决一些问题\",\r\n\t\t\t \"其实使用了它就可以解决一些问题\",\r\n\t\t\t \"好人使用了它就可以解决一些问题\",\r\n\t\t\t \"是因为和国家\",\r\n\t\t\t \"老年搜索还支持\",\r\n\t\t\t \"干脆就把那部蒙人的闲法给废了拉倒!RT @laoshipukong : 27日,全国人大常委会第三次审议侵权责任法草案,删除了有关医疗损害责任“举证倒置”的规定。在医患纠纷中本已处于弱势地位的消费者由此将陷入万劫不复的境地。 \",\r\n\t\t\t \"他说的确实在理\",\r\n\t\t\t \"长春市长春节讲话\",\r\n\t\t\t \"结婚的和尚未结婚的\",\r\n\t\t\t \"结合成分子时\",\r\n\t\t\t \"旅游和服务是最好的\",\r\n\t\t\t \"这件事情的确是我的错\",\r\n\t\t\t \"供大家参考指正\",\r\n\t\t\t \"哈尔滨政府公布塌桥原因\",\r\n\t\t\t \"我在机场入口处\",\r\n\t\t\t \"邢永臣摄影报道\",\r\n\t\t\t \"BP神经网络如何训练才能在分类时增加区分度?\",\r\n\t\t\t \"南京市长江大桥\",\r\n\t\t\t \"应一些使用者的建议,也为了便于利用NiuTrans用于SMT研究\",\r\n\t\t\t \"长春市长春药店\",\r\n\t\t\t \"邓颖超生前最喜欢的衣服\",\r\n\t\t\t \"胡锦涛是热爱世界和平的政治局常委\",\r\n\t\t\t \"程序员祝海林和朱会震是在孙健的左面和右面, 范凯在最右面.再往左是李松洪\",\r\n\t\t\t \"一次性交多少钱\",\r\n\t\t\t \"两块五一套,三块八一斤,四块七一本,五块六一条\",\r\n\t\t\t \"小和尚留了一个像大和尚一样的和尚头\",\r\n\t\t\t \"我是中华人民共和国公民;我爸爸是共和党党员; 地铁和平门站\",\r\n\t\t\t \"张晓梅去人民医院做了个B超然后去买了件T恤\",\r\n\t\t\t \"AT&T是一件不错的公司,给你发offer了吗?\",\r\n\t\t\t \"C++和c#是什么关系?11+122=133,是吗?PI=3.14159\",\r\n\t\t\t \"你认识那个和主席握手的的哥吗?他开一辆黑色的士。\",\r\n\t\t\t \"枪杆子中出政权\",\r\n\t\t\t \"张三风同学走上了不归路\",\r\n\t\t\t \"阿Q腰间挂着BB机手里拿着大哥大,说:我一般吃饭不AA制的。\",\r\n\t\t\t \"在1号店能买到小S和大S八卦的书,还有3D电视。\"\r\n\r\n\t\t};\r\n\t\t\r\n\t\tSegment app = new Segment();\r\n\t\t\r\n\t\tfor(String sentence : testSentence)\r\n\t\t\tSystem.out.println(app.cut(sentence));\r\n\t}",
"@Override\n public void align(@NonNull PbVnAlignment alignment) {\n boolean noAgentiveA0 = alignment.proposition().predicate().ancestors(true).stream()\n .allMatch(s -> s.roles().stream()\n .map(r -> ThematicRoleType.fromString(r.type()).orElse(ThematicRoleType.NONE))\n .noneMatch(ThematicRoleType::isAgentive));\n\n for (PropBankPhrase phrase : alignment.sourcePhrases(false)) {\n List<NounPhrase> unaligned = alignment.targetPhrases(false).stream()\n .filter(i -> i instanceof NounPhrase)\n .map(i -> ((NounPhrase) i))\n .collect(Collectors.toList());\n if (phrase.getNumber() == ArgNumber.A0) {\n // TODO: seems like a hack\n if (alignment.proposition().predicate().verbNetId().classId().startsWith(\"51\") && noAgentiveA0) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (EnumSet.of(ThematicRoleType.AGENT, ThematicRoleType.CAUSER,\n ThematicRoleType.STIMULUS, ThematicRoleType.PIVOT)\n .contains(unalignedPhrase.thematicRoleType())) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A1) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME\n || unalignedPhrase.thematicRoleType() == ThematicRoleType.PATIENT) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A3) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isStartingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A4) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isEndingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n\n\n }\n }",
"public static void main(String[] args) throws Exception {\n List<Chapter> chapterList = new ArrayList();\n BaseFont bfChinese = BaseFont.createFont(\"simhei.ttf\", BaseFont.IDENTITY_H,BaseFont.NOT_EMBEDDED);\n// BaseFont bfChinese = BaseFont.createFont(\"cjk_registry\", \"UniGB-UCS2-H\", false);\n Integer size = 28;\n \n Font font = new Font(bfChinese, size, Font.BOLD);\n for (int i = 1; i <= 10; i++) {\n Chunk chapTitle = new Chunk(\"The \" + i + \" chapter\", font);\n Chapter chapter = new Chapter(new Paragraph(chapTitle), i);\n chapTitle.setLocalDestination(chapter.getTitle().getContent());\n \n Paragraph chapterContent = new Paragraph(\"章节内容第1行\\n章节内容第2行\\n章节内容第3行\\n章节内容第4行\\n\" + i, font);\n chapterContent.setLeading(size * 1.1f);\n chapter.add(chapterContent);\n \n for (int j = 0; j < i; j++) {\n Chunk secTitle = new Chunk(\" 二级The \" + (j + 1) + \" section\");\n Section section = chapter.addSection(new Paragraph(secTitle));\n secTitle.setLocalDestination(section.getTitle().getContent());\n section.setIndentationLeft(10);\n section.add(new Paragraph(\"mangocool mangocool测试1aa1 \"\n + \"\\nmangocool mangocool 内容bb2\"\n + \"\\nmangocool mangocool 内容cc3\", font));\n \n section.add(new Paragraph(\"mangocool mangocool测试1aa1 \"\n + \"\\nmangocool mangocool 内容bb2\"\n + \"\\nmangocool mangocool 内容cc3\", font));\n }\n// content.add(chapter);\n chapterList.add(chapter);\n }\n// content.close();\n\n Document document = new Document(PageSize.A4, 50, 50, 50, 50);\n // add index page.\n String FILE_DIR = \"C:\\\\e\\\\test/\";\n String path = FILE_DIR + \"createSamplePDF.pdf\";\n FileOutputStream os = new FileOutputStream(path);\n PdfWriter writer = PdfWriter.getInstance(document, os);\n IndexEvent indexEvent = new IndexEvent();\n writer.setPageEvent(indexEvent);\n document.open();\n// Chapter indexChapter = new Chapter(\"Index:\", -1);\n// indexChapter.setNumberDepth(-1);// not show number style\n// PdfPTable table = new PdfPTable(2);\n// for (Map.Entry<String, Integer> index : event.index.entrySet()) {\n// PdfPCell left = new PdfPCell(new Phrase(index.getKey()));\n// left.setBorder(Rectangle.NO_BORDER);\n// Chunk pageno = new Chunk(index.getValue() + \"zzZZ章节\");\n// pageno.setLocalGoto(index.getKey());\n// PdfPCell right = new PdfPCell(new Phrase(pageno));\n// right.setHorizontalAlignment(Element.ALIGN_RIGHT);\n// right.setBorder(Rectangle.NO_BORDER);\n// table.addCell(left);\n// table.addCell(right);\n// }\n// indexChapter.add(table);\n// document.add(indexChapter);\n // add content chapter\n for (Chapter c : chapterList) {\n document.add(c);\n indexEvent.body = true;\n }\n document.close();\n os.close();\n }",
"public void printAlignment(SWGAlignment alignment){\n\t\t\tString \torigSeq1 = alignment.getOriginalSequence1().toString(),\n\t\t\t\t\torigSeq2 = alignment.getOriginalSequence2().toString(),\n\t\t\t\t\talnSeq1 = new String(alignment.getSequence1()),\n\t\t\t\t\talnSeq2 = new String(alignment.getSequence2());\n\t\t\tint \tstart1 = alignment.getStart1(),\n\t\t\t\t\tstart2 = alignment.getStart2(),\n\t\t\t\t\tgap1 = alignment.getGaps1(),\n\t\t\t\t\tgap2 = alignment.getGaps2();\n\t\t\t\n\t\t\tString seq1, seq2, mark;\n\t\t\tif(start1>=start2){\n\t\t\t\tseq1=origSeq1.substring(0, start1) + alnSeq1 + origSeq1.substring(start1+alnSeq1.length()-gap1);\n\t\t\t\tString \tseq2Filler = start1==start2?\"\":String.format(\"%\"+(start1-start2)+\"s\", \"\"),\n\t\t\t\t\t\tmarkFiller = start1==0?\"\":String.format(\"%\"+start1+\"s\", \"\");\n\t\t\t\tseq2= seq2Filler + origSeq2.substring(0, start2) + alnSeq2 + origSeq2.substring(start2+alnSeq2.length()-gap2);\n\t\t\t\tmark= markFiller+String.valueOf(alignment.getMarkupLine());\n\t\t\t}else{\n\t\t\t\tseq2=origSeq2.substring(0, start2) + alnSeq2 + origSeq2.substring(start2+alnSeq2.length()-gap2);\n\t\t\t\tString \tmarkFiller = start2==0?\"\":String.format(\"%\"+start2+\"s\", \"\");\n\t\t\t\tseq1=String.format(\"%\"+(start2-start1)+\"s\", \"\") + origSeq1.substring(0, start1) + alnSeq1 + origSeq1.substring(start1+alnSeq1.length()-gap1);\n\t\t\t\tmark=markFiller+String.valueOf(alignment.getMarkupLine());\n\t\t\t}\n\t\t\tSystem.out.println(alignment.getSummary());\n\t\t\tSystem.out.println(seq1);\n\t\t\tSystem.out.println(mark);\n\t\t\tSystem.out.println(seq2);\n\t\t}",
"public static void main(String[] args) throws IOException {\n // All but last arg is a file/directory of LDC tagged input data\n File[] files = new File[args.length - 1];\n for (int i = 0; i < files.length; i++)\n files[i] = new File(args[i]);\n\n // Last arg is the TestFrac\n double testFraction = Double.valueOf(args[args.length -1]);\n\n // Get list of sentences from the LDC POS tagged input files\n List<List<String>> sentences = POSTaggedFile.convertToTokenLists(files);\n int numSentences = sentences.size();\n\n // Compute number of test sentences based on TestFrac\n int numTest = (int)Math.round(numSentences * testFraction);\n\n // Take test sentences from end of data\n List<List<String>> testSentences = sentences.subList(numSentences - numTest, numSentences);\n\n // Take training sentences from start of data\n List<List<String>> trainSentences = sentences.subList(0, numSentences - numTest);\n System.out.println(\"# Train Sentences = \" + trainSentences.size() +\n \" (# words = \" + BigramModel.wordCount(trainSentences) +\n \") \\n# Test Sentences = \" + testSentences.size() +\n \" (# words = \" + BigramModel.wordCount(testSentences) + \")\");\n\n // Create a BidirectionalBigramModel model and train it.\n BidirectionalBigramModel model = new BidirectionalBigramModel();\n\n System.out.println(\"Training...\");\n model.train(trainSentences);\n\n // Test on training data using test2\n model.test2(trainSentences);\n\n System.out.println(\"Testing...\");\n // Test on test data using test2\n model.test2(testSentences);\n }",
"public static void main(String[] args) {\n\t\tPropertyManager.setPropertyFilePath(\"/home/francesco/Desktop/NLP_HACHATHON_4YFN/TextDigesterConfig.properties\");\n\t\t\n\t\tString text = MultilingImport.readText(\"/home/francesco/Desktop/NLP_HACHATHON_4YFN/EXAMPLE_TEXTS/multilingMss2015Training/body/text/\" + lang + \"/\" + docName);\n\n\t\t/* Process text document */\n\t\tLangENUM languageOfHTMLdoc = FlProcessor.getLanguage(text);\n\t\t\n\t\tTDDocument TDdoc = FlProcessor.generateDocumentFromFreeText(text, null, languageOfHTMLdoc);\n\n\t\t// Store GATE document\n\t\tWriter out = null;\n\t\ttry {\n\t\t\tout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(\"/home/francesco/Desktop/NLP_HACHATHON_4YFN/EXAMPLE_TEXTS/\" + lang + \"_\" + docName.replace(\".txt\", \"_GATE.xml\")), \"UTF-8\"));\n\t\t} catch (UnsupportedEncodingException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tout.write(TDdoc.getGATEdoc().toXml());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tout.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\ttry {\n\t\t\tLexRankSummarizer lexRank = new LexRankSummarizer(languageOfHTMLdoc, SentenceSimilarityENUM.cosineTFIDF, false, 0.01);\n\t\t\tMap<Annotation, Double> sortedSentences = lexRank.sortSentences(TDdoc);\n\t\t\t\n\t\t\tList<Annotation> sentListOrderedByRelevance = new ArrayList<Annotation>();\n\t\t\tfor(Entry<Annotation, Double> sentence : sortedSentences.entrySet()) {\n\t\t\t\tlogger.info(\"Score: \" + sentence.getValue() + \" - '\" + GtUtils.getTextOfAnnotation(sentence.getKey(), TDdoc.getGATEdoc()) + \"'\");\n\t\t\t\tsentListOrderedByRelevance.add(sentence.getKey());\n\t\t\t}\n\t\t\t\n\t\t\tlogger.info(\"Summary max 100 tokens: \");\n\t\t\tList<Annotation> summarySentences = GtUtils.orderAnnotations(sentListOrderedByRelevance, TDdoc.getGATEdoc(), 100);\n\t\t\tfor(Annotation ann : summarySentences) {\n\t\t\t\tlogger.info(GtUtils.getTextOfAnnotation(ann, TDdoc.getGATEdoc()));\n\t\t\t}\n\t\t} catch (TextDigesterException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t*/\n\t}",
"public static void main(String arg[]) {\n \tFile wordListFile = new File(\"WordList.txt\");\r\n \tFile definitionsFile = new File (\"DefinitionsAndSentences.txt\"); \t\r\n \tFile outputFile = new File (\"debug.txt\"); \r\n \t\r\n \tInputStream inputStreamOne;\r\n \tInputStreamReader readerOne;\r\n \tBufferedReader binOne;\r\n \t\r\n \tInputStream inputStreamTwo;\r\n \tInputStreamReader readerTwo;\r\n \tBufferedReader binTwo;\r\n \t\r\n \tOutputStream outputStream;\r\n \tOutputStreamWriter writerTwo;\r\n \tBufferedWriter binThree;\r\n \t \t\r\n \t\r\n \t// Lists to store data to write to database\r\n \tArrayList<TermItem>databaseTermList = new ArrayList<TermItem>();\r\n \tArrayList<DefinitionItem>databaseDefinitionList = new ArrayList<DefinitionItem>();\r\n \tArrayList<SentenceItem>databaseSampleSentenceList = new ArrayList<SentenceItem>();\r\n \t\r\n \t// Create instance to use in main()\r\n \tDictionaryParserThree myInstance = new DictionaryParserThree();\r\n \t\r\n \tint totalTermCounter = 1;\r\n \tint totalDefinitionCounter = 1;\r\n\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tmyInstance.createDatabase();\r\n\t\t\t// Open streams for reading data from both files\r\n\t\t\tinputStreamOne = new FileInputStream(wordListFile);\r\n\t \treaderOne= new InputStreamReader(inputStreamOne);\r\n\t \tbinOne= new BufferedReader(readerOne);\r\n\t \t\r\n\t \tinputStreamTwo = new FileInputStream(definitionsFile);\r\n\t \treaderTwo= new InputStreamReader(inputStreamTwo);\r\n\t \tbinTwo= new BufferedReader(readerTwo);\r\n\t \t\r\n\t \toutputStream = new FileOutputStream(outputFile);\r\n\t \twriterTwo= new OutputStreamWriter(outputStream);\r\n\t \tbinThree= new BufferedWriter(writerTwo);\r\n\r\n\t \tString inputLineTwo;\r\n\t \tString termArray[] = new String[NUM_SEARCH_TERMS];\r\n\t \t\r\n\t \t// Populate string array with all definitions.\r\n\t \tfor (int i = 0; (inputLineTwo = binTwo.readLine()) != null; i++) {\r\n\t\t \t termArray[i] = inputLineTwo; \r\n\t \t}\t \t\r\n\t \t\r\n\t \t// Read each line from the input file (contains top gutenberg words to be used)\r\n\t \tString inputLineOne;\r\n\t \tint gutenbergCounter = 0;\r\n\t \twhile ((inputLineOne = binOne.readLine()) != null) {\r\n\t \t\t\r\n\t \t\t\r\n\t \t\t// Each line contains three or four words. Grab each word inside double brackets.\r\n\t\t \tString[] splitString = (inputLineOne.split(\"\\\\[\\\\[\")); \t\t \t\r\n\t \t\tfor (String stringSegment : splitString) {\r\n\t \t\t\t\r\n\t \t\t\tif (stringSegment.matches((\".*\\\\]\\\\].*\")))\r\n\t \t\t\t{\r\n\t \t\t\t\t// Increment counter to track Gutenberg rating (already from lowest to highest)\r\n\t \t\t\t\tgutenbergCounter++;\r\n\t \t \t\t\r\n\t \t\t\t\tboolean isCurrentTermSearchComplete = false;\r\n\t \t\t \tint lowerIndex = 0;\r\n\t \t\t \tint upperIndex = NUM_SEARCH_TERMS - 1;\r\n\t \t\t \t\r\n\t \t\t \tString searchTermOne = stringSegment.substring(0, stringSegment.indexOf(\"]]\"));\r\n\t \t\t \tsearchTermOne = searchTermOne.substring(0, 1).toUpperCase() + searchTermOne.substring(1);\r\n\t \t\t \t\r\n\t \t\t\t\twhile (!isCurrentTermSearchComplete) {\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\t// Go to halfway point of lowerIndex and upperIndex.\r\n\t \t\t\t\t\tString temp = termArray[(lowerIndex + upperIndex)/2];\r\n\t \t\t\t\t\tString currentTerm = temp.substring(temp.indexOf(\"<h1>\") + 4, temp.indexOf(\"</h1>\"));\r\n\t \t\t\t\t\t\t \t\t\t\t\t\r\n\t \t \t \t\t\t\t\t\r\n\t \t\t\t\t\t// If definition term is lexicographically lower, need to increase lower Index\r\n\t \t\t\t\t\t// and search higher.\r\n\t \t\t\t\t\t// If definition term is lexicographically higher, need decrease upper index\r\n\t \t\t\t\t\t// and search higher.\r\n\t \t\t\t\t\t// If a match is found, need to find first definition, and record each definition\r\n\t \t\t\t\t\t// in case of duplicates.\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\tif (currentTerm.compareTo(searchTermOne) < 0) {\t \t\t\t\t\t\t\r\n\t \t\t\t\t\t\tlowerIndex = (lowerIndex + upperIndex)/2;\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\telse if (currentTerm.compareTo(searchTermOne) > 0) {\r\n\t \t\t\t\t\t\tupperIndex = (lowerIndex + upperIndex)/2; \t\t\t\t\t\t\r\n\t \t\t\t\t\t} \t\t\t\t\t\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\telse {\t\r\n\t \t\t\t\t\t\t// Backtrack row-by-row until we reach the first term in the set. Once we reach the beginning,\r\n\t \t\t\t\t\t\t// cycle through each match in the set and obtain each definition until we reach the an unmatching term.\r\n\r\n\t \t\t\t\t\t\t//else {\r\n\t \t\t\t\t\t\t\tSystem.out.println(searchTermOne);\r\n\t\t \t\t\t\t\t\tint k = (lowerIndex + upperIndex)/2;\r\n\t\t \t\t\t\t\t\tboolean shouldIterateAgain = true;\r\n\t\t \t\t\t\t\t\twhile (shouldIterateAgain) {\r\n\t\t \t\t\t\t\t\t\t\r\n\t\t \t\t\t\t\t\t\tif (k <= 0 || k >= NUM_SEARCH_TERMS) {\r\n\t\t\t \t\t\t\t\t\t\tshouldIterateAgain = false;\r\n\t\t\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\t\t\telse {\r\n\t\t\t\t \t\t\t\t\t\tString current = termArray[k].substring(termArray[k].indexOf(\"<h1>\") + 4, termArray[k].indexOf(\"</h1>\"));\r\n\t\t\t\t \t\t\t\t\t\tString previous = termArray[k - 1].substring(termArray[k - 1].indexOf(\"<h1>\") + 4, termArray[k - 1].indexOf(\"</h1>\"));\r\n\t\t\t\t\t \t\t\t\t\t\r\n\t\t\t\t \t\t\t\t\t\tif (current.compareTo(previous) == 0) {\t\t\t\r\n\t\t\t\t \t\t\t\t\t\t\tk--;\r\n\t\t\t\t \t\t\t\t\t\t}\r\n\t\t\t\t\t \t\t\t\t\telse {\r\n\t\t\t\t\t \t\t\t\t\t\tshouldIterateAgain = false;\r\n\t\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} \r\n\t\t \t\t\t\t\t\tshouldIterateAgain = true;\r\n\t\t \t\t\t\t\t\twhile (shouldIterateAgain) {\r\n\t\t \t\t\t\t\t\t\t\t\t \t\r\n\t\t \t\t\t\t\t\t\t// Used to store data to later pass to DB\r\n\t\t \t\t\t\t\t DictionaryParserThree.TermItem tempTermItem = myInstance.new TermItem();\r\n\r\n\t\t \t\t\t\t\t // Determine unique ID (which will be written to DB later)\r\n\t\t \t\t\t\t\t // Add current term and gutenberg rating.\r\n\t\t \t\t\t\t\t tempTermItem.ID = totalTermCounter;\t\t \t\t\t\t\t \t \t\t\t\t\t \r\n\t\t \t\t\t\t\t \ttempTermItem.theWord = searchTermOne; // same as termArray[k]'s term\r\n\t\t \t\t\t\t\t \r\n\t\t \t\t\t\t\t\t\ttempTermItem.gutenbergRating = gutenbergCounter;\r\n\t\t \t\t\t\t\t\t\tdatabaseTermList.add(tempTermItem);\r\n\t\t \t\t\t\t\t\t\tbinThree.write(\"Term ID \" + tempTermItem.ID + \" \" + tempTermItem.theWord + \" guten rank is \" + tempTermItem.gutenbergRating);\r\n\t\t \t\t\t\t\t\t\tbinThree.newLine();\t\t\t\t\t\t\t\r\n\t\t \t\t\t\t \t\tsplitString = termArray[k].split(\"<def>\");\r\n\t\t \t\t\t\t \t\t\r\n\t\t \t\t\t\t \t\tint m = 0;\r\n\t \t\t\t\t\t \t\tfor (String stringSegment2 : splitString) {\r\n\t \t\t\t\t\t \t\t\tif (stringSegment2.matches(\".*</def>.*\") && m > 0) {\r\n\t \t\t\t\t\t \t\t\t\t\r\n\t \t\t\t\t\t \t\t\t\t// Determine unique ID (which will be written to DB later)\r\n\t \t\t\t\t\t \t\t\t\t// Add definition, as well as term ID it is associated with.\r\n\t \t\t\t\t\t \t\t\t\tDictionaryParserThree.DefinitionItem tempDefinitionItem = myInstance.new DefinitionItem();\r\n\t \t\t\t\t\t \t\t\t\ttempDefinitionItem.ID = totalDefinitionCounter;\r\n\t \t\t\t\t\t \t\t\t\ttempDefinitionItem.theDefinition = stringSegment2.substring(0, stringSegment2.indexOf(\"</def>\"));\r\n\t \t\t\t\t\t\t \t\t\ttempDefinitionItem.termID = totalTermCounter;\r\n\t \t\t\t\t\t\t \t\t\tdatabaseDefinitionList.add(tempDefinitionItem);\r\n\r\n\t \t\t\t\t\t\t \t\t\tint n = 0;\r\n\t \t\t\t\t\t\t \t\t\tString[] splitString2 = (stringSegment2.split(\"<blockquote>\")); \r\n\t \t \t\t\t\t\t \t\tfor (String stringSegment3 : splitString2) {\r\n\t \t \t\t\t\t\t \t\t\tif (stringSegment3.matches(\".*</blockquote>.*\") && n > 0) {\r\n\t \t \t\t\t\t\t \t\t\t\t// Add data which will be added to DB later.\r\n\t \t \t\t\t\t\t \t\t\t\t// Add sample sentence as well as the definition ID it is associated with.\r\n\t \t \t\t\t\t\t \t\t\t\tDictionaryParserThree.SentenceItem tempSentenceItem = myInstance.new SentenceItem();\t\r\n\t \t \t\t\t\t\t \t\t\t\ttempSentenceItem.definitionID = totalDefinitionCounter;\r\n\t \t \t\t\t\t\t \t\t\t\ttempSentenceItem.theSampleSentence = stringSegment3.substring(0, stringSegment3.indexOf(\"</blockquote>\"));\r\n\t \t \t\t\t\t\t \t\t\t\tdatabaseSampleSentenceList.add(tempSentenceItem);\t \t \t\t\t\t\t \t\t\t\t\r\n\t \t \t \t\t\t\t\t \t\t\r\n\t \t \t\t\t\t\t \t\t\t\tbinThree.write(\"Definition is\" + tempDefinitionItem.theDefinition);\r\n\t \t \t\t\t\t\t \t\t\t\tbinThree.newLine();\r\n\t \t \t\t\t\t\t \t\t\t\tbinThree.write(\" and sample sentence is \" + tempSentenceItem.theSampleSentence);\r\n\t \t \t\t \t\t\t\t\t\t\tbinThree.newLine();\t\r\n\t \t \t\t\t\t\t \t\t\t}\r\n\t \t \t\t\t\t\t \t\t\t// Increment counter for split string (for this line's sample sentence)\r\n\t \t \t\t\t\t\t \t\t\tn++;\r\n\t \t \t\t\t\t\t \t\t}\r\n\t \t \t\t\t\t\t \t\ttotalDefinitionCounter++;\r\n\t \t\t\t\t\t \t\t\t}\r\n\t \t\t\t\t\t \t\t\t// Increment counter for split string (for this line's definition)\r\n\t \t\t\t\t \t\t\t\tm++;\r\n\t \t\t\t\t \t\t\t\t\r\n\t \t\t\t\t\t \t\t}\t \t \t\t\t\t\t \t\t\r\n\t \t\t\t\t\t \t\t\t \t\t\t\t\t\t\t\r\n\t\t \t\t\t\t\t\t\ttotalTermCounter++;\r\n\t\t \t\t\t\t\t\t\t\r\n\t\t \t\t\t\t\t\t\t// Compare next definition and see if duplicate exists.\r\n\t\t \t\t\t\t\t\t\t// If so, add to string array.\r\n\t \t\t\t\t\t \t\tif (k < 0 || k >= NUM_SEARCH_TERMS - 1) {\r\n\t\t\t \t\t\t\t\t\t\tshouldIterateAgain = false;\r\n\t\t\t \t\t\t\t\t\t}\r\n\t \t\t\t\t\t \t\telse { \t \t\t\t\t\t \t\t\r\n\t\t\t \t\t\t\t\t\t\tString current = termArray[k].substring(termArray[k].indexOf(\"<h1>\") + 4, termArray[k].indexOf(\"</h1>\"));\r\n\t\t\t\t \t\t\t\t\t\tString next = termArray[k + 1].substring(termArray[k + 1].indexOf(\"<h1>\") + 4, termArray[k + 1].indexOf(\"</h1>\"));\r\n\t\t\t\t\t \t\t\t\t\tif (current.compareTo(next) == 0) {\t\r\n\t\t\t\t \t\t\t\t\t\t\tk++;\r\n\t\t\t\t \t\t\t\t\t\t}\r\n\t\t\t\t \t\t\t\t\t\telse {\r\n\t\t\t\t \t\t\t\t\t\t\tshouldIterateAgain = false;\r\n\t\t\t\t \t\t\t\t\t\t}\r\n\t \t\t\t\t\t \t\t}\r\n\t\t\t \t\t\t\t\t\t//}\t \t\t\t\t\t\t\r\n\t\t \t\t\t\t\t\tisCurrentTermSearchComplete = true;\r\n\t\t \t\t\t\t\t\t\r\n\t \t\t\t\t\t\t}\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\t// If the term does not exist in the database.\r\n\t \t\t\t\t\tif (Math.abs(upperIndex) - Math.abs(lowerIndex) <= 1)\r\n\t \t\t\t\t\t{\r\n \t\t\t\t\t\t\t isCurrentTermSearchComplete = true;\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t}\r\n\t \t\t\t}\r\n\t \t\t} \t \t\t\r\n\t \t}\r\n\t \t\r\n\t \t \t\r\n\t \tSystem.out.println(\"ended search.\");\t\r\n\t \tmyInstance.writeAllItemsToDatabase(databaseTermList, databaseDefinitionList, databaseSampleSentenceList);\t\r\n\t \tSystem.out.println(\"ended write.\");\r\n\t \t\r\n\t \tbinOne.close();\r\n\t \treaderOne.close();\r\n\t \tinputStreamOne.close();\t \t\r\n\t \t\r\n\t \tbinTwo.close();\r\n\t \treaderTwo.close();\r\n\t \tinputStreamTwo.close();\t \t\r\n\t \t\r\n\t \tbinThree.close(); \r\n\t \twriterTwo.close();\r\n\t \toutputStream.close();\r\n\t \tSystem.exit(0);\r\n\r\n\r\n\t \t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \t\r\n }",
"public static void main(String[] args) {\n\t\tString text = \"\\\"undifferentiated's thyroid carcinomas were carried out with antisera against calcitonin, calcitonin-gene related peptide (CGRP), somatostatin, and also thyroglobulin, using the PAP method. \";\n\t\ttext = text.replace('\\\"', ' ');\n\t\t\n\t\tStringUtil su = new StringUtil();\n\t\t\n\t\t// Extracting...\n\t\tString text2 = new String(text);\n\t\tEnvironmentVariable.setMoaraHome(\"./\");\n\t\tGeneRecognition gr = new GeneRecognition();\n\t\tArrayList<GeneMention> gms = gr.extract(MentionConstant.MODEL_BC2,text);\n\t\t// Listing mentions...\n\t\tSystem.out.println(\"Start\\tEnd\\tMention\");\n\t\tfor (int i=0; i<gms.size(); i++) {\n\t\t\tGeneMention gm = gms.get(i);\n\t\t\tSystem.out.println(gm.Start() + \"\\t\" + gm.End() + \"\\t\" + gm.Text());\n\t\t\t//System.out.println(text2.substring(gm.Start(), gm.End()));\n\t\t\tSystem.out.println(su.getTokenByPosition(text,gm.Start(),gm.End()).trim());\n\t\t}\n\t\tif (true){\n\t\t\treturn;\n\t\t}\n\t\t// Normalizing mentions...\n\t\tOrganism yeast = new Organism(Constant.ORGANISM_YEAST);\n\t\tOrganism human = new Organism(Constant.ORGANISM_HUMAN);\n\t\tExactMatchingNormalization gn = new ExactMatchingNormalization(human);\n\t\tgms = gn.normalize(text,gms);\n\t\t// Listing normalized identifiers...\n\t\t\n\t\tSystem.out.println(\"\\nStart\\tEnd\\t#Pred\\tMention\");\n\t\tfor (int i=0; i<gms.size(); i++) {\n\t\t\tGeneMention gm = gms.get(i);\n\t\t\tif (gm.GeneIds().size()>0) {\n\t\t\t\tSystem.out.println(gm.Start() + \"\\t\" + gm.End() + \"\\t\" + gm.GeneIds().size() + \n\t\t\t\t\t\"\\t\" + su.getTokenByPosition(text,gm.Start(),gm.End()).trim());\n\t\t\t\tfor (int j=0; j<gm.GeneIds().size(); j++) {\n\t\t\t\t\tGenePrediction gp = gm.GeneIds().get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\" + gp.GeneId() + \" \" + gp.OriginalSynonym() + \" \" + gp.ScoreDisambig());\n\t\t\t\t\tSystem.out.println((gm.GeneId().GeneId().equals(gp.GeneId())?\" (*)\":\"\"));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) throws Exception \n\t{\n\t\tList<String> stopWords = new ArrayList<String>();\n\t\tstopWords = stopWordsCreation();\n\n\n\t\t\n\t\tHashMap<Integer, String> hmap = new HashMap<Integer, String>();\t//Used in tittle, all terms are unique, and any dups become \" \"\n\t\n\t\t\n\t\tList<String> uniqueTerms = new ArrayList<String>();\n\t\tList<String> allTerms = new ArrayList<String>();\n\t\t\t\t\n\t\t\n\t\tHashMap<Integer, String> hmap2 = new HashMap<Integer, String>();\n\t\tHashMap<Integer, String> allValues = new HashMap<Integer, String>();\n\t\tHashMap<Integer, Double> docNorms = new HashMap<Integer, Double>();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMap<Integer, List<String>> postingsFileListAllWords = new HashMap<>();\t\t\n\t\tMap<Integer, List<String>> postingsFileList = new HashMap<>();\n\t\t\n\t\tMap<Integer, List<StringBuilder>> docAndTitles = new HashMap<>();\n\t\tMap<Integer, List<StringBuilder>> docAndAbstract = new HashMap<>();\n\t\tMap<Integer, List<StringBuilder>> docAndAuthors = new HashMap<>();\n\t\t\n\t\t\n\t\tMap<Integer, List<Double>> termWeights = new HashMap<>();\n\t\t\n\t\tList<Integer> docTermCountList = new ArrayList<Integer>();\n\t\t\n\t\tBufferedReader br = null;\n\t\tFileReader fr = null;\n\t\tString sCurrentLine;\n\n\t\tint documentCount = 0;\n\t\tint documentFound = 0;\n\t\tint articleNew = 0;\n\t\tint docTermCount = 0;\n\t\t\n\t\t\n\t\tboolean abstractReached = false;\n\n\t\ttry {\n\t\t\tfr = new FileReader(FILENAME);\n\t\t\tbr = new BufferedReader(fr);\n\n\t\t\t// Continues to get 1 line from document until it reaches the end of EVERY doc\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) \n\t\t\t{\n\t\t\t\t// sCurrentLine now contains the 1 line from the document\n\n\t\t\t\t// Take line and split each word and place them into array\n\t\t\t\tString[] arr = sCurrentLine.split(\" \");\n\n\n\t\t\t\t//Go through the entire array\n\t\t\t\tfor (String ss : arr) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * This section takes the array and checks to see if it has reached a new\n\t\t\t\t\t * document or not. If the current line begins with an .I, then it knows that a\n\t\t\t\t\t * document has just started. If it incounters another .I, then it knows that a\n\t\t\t\t\t * new document has started.\n\t\t\t\t\t */\n\t\t\t\t\t//System.out.println(\"Before anything: \"+sCurrentLine);\n\t\t\t\t\tif (arr[0].equals(\".I\")) \n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\tif (articleNew == 0) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarticleNew = 1;\n\t\t\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse if (articleNew == 1) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarticleNew = 0;\n\t\t\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t//System.out.println(documentFound);\n\t\t\t\t\t\t//count++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/* This section detects that after a document has entered,\n\t\t\t\t\t * it has to gather all the words contained in the title \n\t\t\t\t\t * section.\n\t\t\t\t\t */\n\t\t\t\t\tif (arr[0].equals(\".T\") ) \n\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// Go to line UNDER .T since that is where tittle is located\n\t\t\t\t\t\t//sCurrentLine = br.readLine();\n\t\t\t\t\t\tdocAndTitles.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\t\t\tStringBuilder title = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".B|.A|.N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\t\t/* In this section, there are 2 lists being made. One list\n\t\t\t\t\t\t\t * is for all the unique words in every title in the document (hmap).\n\t\t\t\t\t\t\t * Hmap contains all unique words, and anytime a duplicate word is \n\t\t\t\t\t\t\t * found, it is replaced with an empty space in the map.\n\t\t\t\t\t\t\t * All Values \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\t\t\t\t//postingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\t\t\t//postingsFileList.get(documentFound - 1).add(term2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"current line: \"+sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] tittle = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (tittle[0].equals(\".W\") )\n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\tabstractReached = true;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttitle.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (String tittleWords : tittle)\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\ttittleWords = tittleWords.toLowerCase();\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'{}*|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'*{}|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'{}*|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\t//System.out.println(tittleWords);\n\t\t\t\t\t\t\t\tif (hmap.containsValue(tittleWords)) \n\t\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, \" \");\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\tallTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tallTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\tif (!(uniqueTerms.contains(tittleWords)))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif ((stopWordsSetting && !(stopWords.contains(tittleWords))))\n\t\t\t\t\t\t\t\t\t\t\tuniqueTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//docAndTitles.get(documentCount).add(\" \");\n\t\t\t\t\t\t\ttitle.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Title: \"+title);\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\tdocAndTitles.get(documentFound).add(title);\n\t\t\t\t\t\t//System.out.println(\"Done!: \"+ docAndTitles);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (arr[0].equals(\".A\") ) \n\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// Go to line UNDER .T since that is where tittle is located\n\t\t\t\t\t\t//sCurrentLine = br.readLine();\n\t\t\t\t\t\tdocAndAuthors.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\t\t\tStringBuilder author = new StringBuilder();\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\twhile ( !(sCurrentLine = br.readLine()).matches(\".N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* In this section, there are 2 lists being made. One list\n\t\t\t\t\t\t\t * is for all the unique words in every title in the document (hmap).\n\t\t\t\t\t\t\t * Hmap contains all unique words, and anytime a duplicate word is \n\t\t\t\t\t\t\t * found, it is replaced with an empty space in the map.\n\t\t\t\t\t\t\t * All Values \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\t\t\t\t//postingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\t\t\t//postingsFileList.get(documentFound - 1).add(term2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"current line: \"+sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] tittle = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (tittle[0].equals(\".W\") )\n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\tabstractReached = true;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tauthor.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//docAndTitles.get(documentCount).add(\" \");\n\t\t\t\t\t\t\tauthor.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Title: \"+title);\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\tdocAndAuthors.get(documentFound).add(author);\n\t\t\t\t\t\t//System.out.println(\"Done!: \"+ docAndTitles);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/* Since there may or may not be an asbtract after\n\t\t\t\t\t * the title, we need to check what the next section\n\t\t\t\t\t * is. We know that every doc has a publication date,\n\t\t\t\t\t * so it can end there, but if there is no abstract,\n\t\t\t\t\t * then it will keep scanning until it reaches the publication\n\t\t\t\t\t * date. If abstract is empty (in tests), it will also finish instantly\n\t\t\t\t\t * since it's blank and goes straight to .B (the publishing date).\n\t\t\t\t\t * Works EXACTLY like Title \t\t \n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (abstractReached) \n\t\t\t\t\t{\t\n\t\t\t\t\t\t//System.out.println(\"\\n\");\n\t\t\t\t\t\t//System.out.println(\"REACHED ABSTRACT and current line is: \" +sCurrentLine);\n\t\t\t\t\t\tdocAndAbstract.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\tStringBuilder totalAbstract = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".T|.I|.A|.N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tString[] abstaract = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (abstaract[0].equals(\".B\") )\n\t\t\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\t\t\tabstractReached = false;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttotalAbstract.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] misc = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tfor (String miscWords : misc) \n\t\t\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\tmiscWords = miscWords.toLowerCase(); \n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|?{}!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\t\t\n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\t\t\n\t\t\t\t\t\t\t\t//System.out.println(miscWords);\n\t\t\t\t\t\t\t\tif (hmap.containsValue(miscWords)) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, \" \");\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tallTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tallTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tif (!(uniqueTerms.contains(miscWords)))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif ((stopWordsSetting && !(stopWords.contains(miscWords))))\n\t\t\t\t\t\t\t\t\t\t\tuniqueTerms.add(miscWords);\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\tdocumentCount++;\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\ttotalAbstract.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocAndAbstract.get(documentFound).add(totalAbstract);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t//Once article is found, we enter all of of it's title and abstract terms \n\t\t\t\tif (articleNew == 0) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tdocumentFound = documentFound - 1;\n\t\t\t\t\t//System.out.println(\"Words found in Doc: \" + documentFound);\n\t\t\t\t\t//System.out.println(\"Map is\" +allValues);\n\t\t\t\t\tSet set = hmap.entrySet();\n\t\t\t\t\tIterator iterator = set.iterator();\n\n\t\t\t\t\tSet set2 = allValues.entrySet();\n\t\t\t\t\tIterator iterator2 = set2.iterator();\n\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tpostingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\tpostingsFileListAllWords.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tMap.Entry mentry = (Map.Entry) iterator.next();\n\t\t\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// (\"Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// );\n\t\t\t\t\t\tString term = mentry.getValue().toString();\n\t\t\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\t\t\tpostingsFileList.get(documentFound - 1).add(term);\n\t\t\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t\t\tdocTermCount++;\n\t\t\t\t\t}\n\t\t\t\t\t// \"BEFORE its put in, this is what it looks like\" + hmap);\n\t\t\t\t\thmap2.putAll(hmap);\n\t\t\t\t\thmap.clear();\n\t\t\t\t\tarticleNew = 1;\n\n\t\t\t\t\tdocTermCountList.add(docTermCount);\n\t\t\t\t\tdocTermCount = 0;\n\n\t\t\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\t\t\tMap.Entry mentry2 = (Map.Entry) iterator2.next();\n\t\t\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// (\"Value2 is: \" + mentry2.getValue());\n\t\t\t\t\t\t// );\n\t\t\t\t\t\tString term = mentry2.getValue().toString();\n\t\t\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\t\t\tpostingsFileListAllWords.get(documentFound - 1).add(term);\n\t\t\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t\t\t// docTermCount++;\n\t\t\t\t\t}\n\n\t\t\t\t\tallValues.clear();\t\t\t\t\t\n\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\n\t\t\t\t\t// \"MEANWHILE THESE ARE ALL VALUES\" + postingsFileListAllWords);\n\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Looking at final doc!\");\n\t\t\t//Final loop for last sets\n\t\t\tSet set = hmap.entrySet();\n\t\t\tIterator iterator = set.iterator();\n\n\t\t\tSet setA = allValues.entrySet();\n\t\t\tIterator iteratorA = setA.iterator();\n\t\t\tpostingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\tpostingsFileListAllWords.put(documentFound - 1, new ArrayList<String>());\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tMap.Entry mentry = (Map.Entry) iterator.next();\n\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t// (\"Value is: \" + mentry.getValue());\n\t\t\t\t// //);\n\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\tString term2 = mentry.getValue().toString();\n\t\t\t\tpostingsFileList.get(documentFound - 1).add(term2);\n\n\t\t\t\tdocTermCount++;\n\t\t\t}\n\t\t\t//System.out.println(\"Done looking at final doc!\");\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Sorting time!\");\n\t\t\twhile (iteratorA.hasNext()) {\n\t\t\t\tMap.Entry mentry2 = (Map.Entry) iteratorA.next();\n\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t// (\"Value2 is: \" + mentry2.getValue());\n\t\t\t\t// //);\n\t\t\t\tString term = mentry2.getValue().toString();\n\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\tpostingsFileListAllWords.get(documentFound - 1).add(term);\n\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t// docTermCount++;\n\t\t\t}\n\n\t\t\thmap2.putAll(hmap);\n\t\t\thmap.clear();\n\t\t\tdocTermCountList.add(docTermCount);\n\t\t\tdocTermCount = 0;\n\n\n\t\t\t\n\t\t\n\t\t\t// END OF LOOKING AT ALL DOCS\n\t\t\t\n\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\n\t\t\t//System.out.println(\"All terms\" +allTerms);\n\t\t\tString[] sortedArray = allTerms.toArray(new String[0]);\n\t\t\tString[] sortedArrayUnique = uniqueTerms.toArray(new String[0]);\n\t\t\t//System.out.println(Arrays.toString(sortedArray));\n\t\t\t\n\t\t\tArrays.sort(sortedArray);\n\t\t\tArrays.sort(sortedArrayUnique);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//Sortings \n\t\t\tSet set3 = hmap2.entrySet();\n\t\t\tIterator iterator3 = set3.iterator();\n\n\t\t\t// Sorting the map\n\t\t\t//System.out.println(\"Before sorting \" +hmap2);\t\t\t\n\t\t\tMap<Integer, String> map = sortByValues(hmap2);\n\t\t\t//System.out.println(\"after sorting \" +map);\n\t\t\t// //\"After Sorting:\");\n\t\t\tSet set2 = map.entrySet();\n\t\t\tIterator iterator2 = set2.iterator();\n\t\t\tint docCount = 1;\n\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\tMap.Entry me2 = (Map.Entry) iterator2.next();\n\t\t\t\t// (me2.getKey() + \": \");\n\t\t\t\t// //me2.getValue());\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(\"Done sorting!\");\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Posting starts \");\n\t\t\t//\"THIS IS START OF DICTIONARTY\" \n\t\t\tBufferedWriter bw = null;\n\t\t\tFileWriter fw = null;\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Start making an array thats big as every doc total \");\n\t\t\tfor (int z = 1; z < documentFound+1; z++)\n\t\t\t{\n\t\t\t\ttermWeights.put(z, new ArrayList<Double>());\n\t\t\t}\n\t\t\t//System.out.println(\"Done making that large array Doc \");\n\t\t\t\n\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\n\t\t\t//System.out.println(\"All terms\" +allTerms)\n\t\t\t//System.out.println(Arrays.toString(sortedArray));\n\t\t\t//System.out.println(Arrays.toString(sortedArrayUnique));\n\t\t\t//System.out.println(uniqueTerms);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//\tSystem.out.println(\"Posting starts \");\n\t\t\t// \tPOSTING FILE STARTS \n\t\t\ttry {\n\t\t\t\t// Posting File\n\t\t\t\t//System.out.println(\"postingsFileListAllWords: \"+postingsFileListAllWords); //Contains every word including Dups, seperated per doc\n\t\t\t\t//System.out.println(\"postingsFileList: \"+postingsFileList); \t\t //Contains unique words, dups are \" \", seperated per doc\n\t\t\t\t//System.out.println(\"postingsFileListAllWords.size(): \" +postingsFileListAllWords.size()); //Total # of docs \n\t\t\t\t//System.out.println(\"Array size: \"+sortedArrayUnique.length);\n\n\t\t\t\tfw = new FileWriter(POSTING);\n\t\t\t\tbw = new BufferedWriter(fw);\n\t\t\t\tString temp = \" \";\n\t\t\t\tDouble termFreq = 0.0;\n\t\t\t\t// //postingsFileListAllWords);\n\t\t\t\tList<String> finalTermList = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\t// //postingsFileList.get(i).size());\n\t\t\t\t\tfor (int j = 0; j < sortedArrayUnique.length; ++j)\t\t\t\t\t // go thru each word, CURRENT TERM\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Term is: \" + sortedArrayUnique[j]);\n\t\t\t\t\t\ttemp = sortedArrayUnique[j];\t\t\t\t\t\n\t\t\t\t\t\tif ((stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!(finalTermList.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//PART TO FIND DOCUMENT FREQ\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint docCountIDF = 0;\n\t\t\t\t\t\t\t//Start here for dictionary \n\t\t\t\t\t\t\tfor (int totalWords = 0; totalWords < sortedArray.length; totalWords++) \t\t\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (temp.compareTo(\" \") == 0 || (stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//EITHER BLANK OR STOPWORD \n\t\t\t\t\t\t\t\t\t//System.out.println(\"fOUND STOP WORD\");\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString temp2 = sortedArray[totalWords];\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Compare: \"+temp+ \" with \" +temp2);\n\t\t\t\t\t\t\t\t\tif (temp.compareTo(temp2) == 0) {\n\t\t\t\t\t\t\t\t\t\t// (temp2+\" \");\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tdocCountIDF++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"Total Number: \" +docCountIDF);\n\t\t\t\t\t\t\t//System.out.println(\"documentFound: \" +documentFound);\n\t\t\t\t\t\t\t//System.out.println(\"So its \" + documentFound + \" dividied by \" +docCountIDF);\n\t\t\t\t\t\t\t//docCountIDF = 1;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble idf = (Math.log10(((double)documentFound/(double)docCountIDF)));\n\t\t\t\t\t\t\t//System.out.println(\"Calculated IDF: \"+idf);\n\t\t\t\t\t\t\tif (idf < 0.0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tidf = 0.0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"IDF is: \" +idf);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"Size of doc words: \" + postingsFileListAllWords.size());\n\t\t\t\t\t\t\tfor (int k = 0; k < postingsFileListAllWords.size(); k++) \t\t//Go thru each doc. Since only looking at 1 term, it does it once per doc\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//System.out.println(\"Current Doc: \" +(k+1));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\ttermFreq = 1 + (Math.log10(Collections.frequency(postingsFileListAllWords.get(k), temp)));\t\t\t\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Freq is: \" +Collections.frequency(postingsFileListAllWords.get(k), temp));\n\t\t\t\t\t\t\t\t\t//System.out.println(termFreq + \": \" + termFreq.isInfinite());\n\t\t\t\t\t\t\t\t\tif (termFreq.isInfinite() || termFreq <= 0)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttermFreq = 0.0;\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t\t\t\t//System.out.println(\"termFreq :\" +termFreq); \n\t\t\t\t\t\t\t\t\t//System.out.println(\"idf: \" +idf);\n\t\t\t\t\t\t\t\t\ttermWeights.get(k+1).add( (idf*termFreq) );\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t\tfinalTermList.add(temp);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//FINALCOUNTER\n\t\t\t\t\t\t//System.out.println(\"Done looking at word: \" +j);\n\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\twhile (true)\n\t\t\t\t {\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Enter a query: \");\n\t\t\t\t\t\n\t \tScanner scanner = new Scanner(System.in);\n\t \tString enterQuery = scanner.nextLine();\n\t \t\n\t \t\n\t\t\t\t\tList<Double> queryWeights = new ArrayList<Double>();\n\t\t\t\t\t\n\t\t\t\t\t// Query turn\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tenterQuery = enterQuery.toLowerCase();\t\t\n\t\t\t\t\tenterQuery = enterQuery.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"]\", \"\");\n\t\t\t\t\t//System.out.println(\"Query is: \" + enterQuery);\n\t\t\t\t\t\n\t\t\t\t\tif (enterQuery.equals(\"exit\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tString[] queryArray = enterQuery.split(\" \");\n\t\t\t\t\tArrays.sort(queryArray);\n\t\t\t\t\t\n\t\t\t\t\t//Find the query weights for each term in vocab\n\t\t\t\t\tfor (int j = 0; j < sortedArrayUnique.length; ++j)\t\t\t\t\t // go thru each word, CURRENT TERM\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Term is: \" + sortedArrayUnique[j]);\n\t\t\t\t\t\ttemp = sortedArrayUnique[j];\t\t\t\t\t\n\t\t\t\t\t\tif ((stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\tint docCountDF = 0;\n\t\t\t\t\t\t//Start here for dictionary \n\t\t\t\t\t\tfor (int totalWords = 0; totalWords < queryArray.length; totalWords++) \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\tif (temp.compareTo(\" \") == 0 || (stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//EITHER BLANK OR STOPWORD\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString temp2 = queryArray[totalWords];\n\t\t\t\t\t\t\t\t//System.out.println(\"Compare: \"+temp+ \" with \" +temp2);\n\t\t\t\t\t\t\t\tif (temp.compareTo(temp2) == 0) {\n\t\t\t\t\t\t\t\t\t// (temp2+\" \");\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocCountDF++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tDouble queryWeight = 1 + (Math.log10(docCountDF));\n\t\t\t\t\t\tif (queryWeight.isInfinite())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tqueryWeight = 0.0;\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tqueryWeights.add(queryWeight);\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Query WEights is: \"+queryWeights);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Finding the norms for DOCS\t\t\t\t\t\n\t\t\t\t\tfor (int norms = 1; norms < documentFound+1; norms++)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble currentTotal = 0.0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int weightsPerDoc = 0; weightsPerDoc < termWeights.get(norms).size(); weightsPerDoc++)\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble square = Math.pow(termWeights.get(norms).get(weightsPerDoc), 2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"Current square: \" + termWeights.get(norms).get(weightsPerDoc));\n\t\t\t\t\t\t\tcurrentTotal = currentTotal + square;\n\t\t\t\t\t\t\t//System.out.println(\"Current total: \" + currentTotal);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"About to square root this: \" +currentTotal);\n\t\t\t\t\t\tdouble root = Math.sqrt(currentTotal);\n\t\t\t\t\t\tdocNorms.put(norms, root);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"All of the docs norms: \"+docNorms);\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Finding the norm for the query\n\t\t\t\t\tdouble currentTotal = 0.0;\t\t\t\t\t\n\t\t\t\t\tfor (int weightsPerDoc = 0; weightsPerDoc < queryWeights.size(); weightsPerDoc++)\n\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tdouble square = Math.pow(queryWeights.get(weightsPerDoc), 2);\n\t\t\t\t\t\tcurrentTotal = currentTotal + square;\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdouble root = Math.sqrt(currentTotal);\n\t\t\t\t\tdouble queryNorm = root; \t\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Query norm \" + queryNorm);\n\t\t\t\t\t\n\t\t\t\t\t//Finding the cosine sim\n\t\t\t\t\t//System.out.println(\"Term Weights \" + termWeights);\n\t\t\t\t\tHashMap<Integer, Double> cosineScore = new HashMap<Integer, Double>();\n\t\t\t\t\tfor (int cosineSim = 1; cosineSim < documentFound+1; cosineSim++)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble total = 0.0;\n\t\t\t\t\t\tfor (int docTerms = 0; docTerms < termWeights.get(cosineSim).size(); docTerms++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble docTermWeight = termWeights.get(cosineSim).get(docTerms);\n\t\t\t\t\t\t\tdouble queryTermWeight = queryWeights.get(docTerms);\n\t\t\t\t\t\t\t//System.out.println(\"queryTermWeight \" + queryTermWeight);\n\t\t\t\t\t\t\t//System.out.println(\"docTermWeight \" + docTermWeight);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttotal = total + (docTermWeight*queryTermWeight);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdouble cosineSimScore = 0.0;\n\t\t\t\t\t\tif (!(total == 0.0 || (docNorms.get(cosineSim) * queryNorm) == 0))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcosineSimScore = total / (docNorms.get(cosineSim) * queryNorm);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcosineSimScore = 0.0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tcosineScore.put(cosineSim, cosineSimScore);\n\t\t\t\t\t}\n\t\t\t\t\tcosineScore = sortByValues2(cosineScore);\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"This is the cosineScores: \" +cosineScore);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"docAndTitles: \"+ docAndTitles);\n\t\t\t\t\tint topK = 0;\n\t\t\t\t\tint noValue = 0;\n\t\t\t\t\tfor (Integer name: cosineScore.keySet())\n\t\t\t\t\t{\n\t\t\t\t\t\tif (topK < 50)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\n\t\t\t\t String key =name.toString();\n\t\t\t\t //String value = cosineScore.get(name).toString(); \n\t\t\t\t if (!(cosineScore.get(name) <= 0))\n\t\t\t\t {\n\t\t\t\t \tSystem.out.println(\"Doc: \"+key);\t\t\t\t \t\t\t\t\t \t\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \tStringBuilder builder = new StringBuilder();\n\t\t\t\t \tfor (StringBuilder value : docAndTitles.get(name)) {\n\t\t\t\t \t builder.append(value);\n\t\t\t\t \t}\n\t\t\t\t \tString text = builder.toString();\t\t\t\t \t\n\t\t\t\t \t//System.out.println(\"Title:\\n\" +docAndTitles.get(name));\n\t\t\t\t \tSystem.out.println(\"Title: \" +text);\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t//System.out.println(\"Authors:\\n\" +docAndAuthors.get(name));\n\t\t\t\t \t\n\t\t\t\t \tif (docAndAuthors.get(name) == null || docAndAuthors.get(name).toString().equals(\"\"))\n\t\t\t\t \t{\n\t\t\t\t \t\tSystem.out.println(\"Authors: N\\\\A\\n\");\n\t\t\t\t \t}\n\t\t\t\t \telse \n\t\t\t\t \t{\t\t\t\t \t\t\t\t\t\t \t\n\t\t\t\t\t \tStringBuilder builder2 = new StringBuilder();\n\t\t\t\t\t \tfor (StringBuilder value : docAndAuthors.get(name)) {\n\t\t\t\t\t \t builder2.append(value);\n\t\t\t\t\t \t}\n\t\t\t\t\t \tString text2 = builder2.toString();\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t\t\t\t \tSystem.out.println(\"Authors found: \" +text2);\n\t\t\t\t \t}\t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t/* ABSTRACT \n\t\t\t\t \tif (docAndAbstract.get(name) == null)\n\t\t\t\t \t{\n\t\t\t\t \t\tSystem.out.println(\"Abstract: N\\\\A\\n\");\n\t\t\t\t \t}\n\t\t\t\t \telse \n\t\t\t\t \t{\t\t\t\t \t\t\t\t\t\t \t\n\t\t\t\t\t \tStringBuilder builder2 = new StringBuilder();\n\t\t\t\t\t \tfor (StringBuilder value : docAndAbstract.get(name)) {\n\t\t\t\t\t \t builder2.append(value);\n\t\t\t\t\t \t}\n\t\t\t\t\t \tString text2 = builder2.toString();\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t\t\t\t \tSystem.out.println(\"Abstract: \" +text2);\n\t\t\t\t \t}\t\n\t\t\t\t \t*/\n\t\t\t\t \t\n\t\t\t\t \tSystem.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t \tnoValue++;\n\t\t\t\t }\n\t\t\t\t topK++;\n\t\t\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\tif (noValue == documentFound)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"No documents contain query!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\ttopK=0;\n\t\t\t\t\tnoValue = 0;\n\t\t\t\t }\n\t\t\t\t\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (bw != null)\n\t\t\t\t\t\tbw.close();\n\n\t\t\t\t\tif (fw != null)\n\t\t\t\t\t\tfw.close();\n\n\t\t\t\t} catch (IOException ex) {\n\n\t\t\t\t\tex.printStackTrace();\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null)\n\t\t\t\t\tbr.close();\n\n\t\t\t\tif (fr != null)\n\t\t\t\t\tfr.close();\n\n\t\t\t} catch (IOException ex) {\n\n\t\t\t\tex.printStackTrace();\n\n\t\t\t}\n\n\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\tint itemCount = uniqueTerms.size();\n\t\t\t//System.out.println(allValues);\n\t\t\tSystem.out.println(\"Total Terms BEFORE STEMING: \" +itemCount);\n\t\t\tSystem.out.println(\"Total Documents \" + documentFound);\n\t\t\t\t\t\t\n\t\t \n\t\t\t \n\t\t\t \n\t\t\t//END OF MAIN\n\t\t}",
"public static void main(String[] args) throws Exception\n {\n if (args.length==0 || args[0].equals(\"-h\")){\n System.err.println(\"Tests: call as $0 org1=g1.fa,org2=g2.fa annot.txt 5ss-motif 5ss-boundary 3ss-motif 3ss-boundary\");\n System.err.println(\"Outputs splice site compositions.\");\n System.exit(9);\n }\n \n int arg_idx=0;\n String genome_fa_list = args[arg_idx++];\n String annotation_file = args[arg_idx++];\n int donor_motif_length = Integer.parseInt(args[arg_idx++]);\n int donor_boundary_length = Integer.parseInt(args[arg_idx++]);\n int acceptor_motif_length = Integer.parseInt(args[arg_idx++]);\n int acceptor_boundary_length = Integer.parseInt(args[arg_idx++]);\n\n AnnotatedGenomes annotations = new AnnotatedGenomes();\n List<String> wanted_organisms = annotations.readMultipleGenomes(genome_fa_list);\n annotations.readAnnotations(annotation_file); \n \n SpliceSiteComposition ss5[] = new SpliceSiteComposition[wanted_organisms.size()];\n SpliceSiteComposition ss3[] = new SpliceSiteComposition[wanted_organisms.size()];\n \n for (int org_idx=0; org_idx<wanted_organisms.size(); org_idx++)\n {\n String org = wanted_organisms.get(org_idx);\n System.out.println(\"#SSC organism \"+org);\n \n SpliceSiteComposition don = ss5[org_idx] = new SpliceSiteComposition(donor_motif_length, donor_boundary_length, true);\n SpliceSiteComposition acc = ss3[org_idx] = new SpliceSiteComposition(acceptor_motif_length, acceptor_boundary_length, false);\n\n for (GenePred gene: annotations.getAllAnnotations(org))\n {\n don.countIntronSites(gene);\n acc.countIntronSites(gene);\n\n } // for gene \n \n //don.reportStatistics(System.out);\n //acc.reportStatistics(System.out);\n don.writeData(System.out);\n acc.writeData(System.out);\n \n } // for org\n }",
"public ArrayList<String> ExtractAlignments(String src, String trg, String moses){\n\t\tArrayList<String> alignPoints = new ArrayList<String>();\n\t\t\n\t\tString patternString = \"\\\\s\\\\|(\\\\d+)\\\\-(\\\\d+)\\\\|\"; // pattern for alignment points, the indexes (ref to source phrase) are grouped\n\t\t\n\t\tPattern pattern = Pattern.compile(patternString);\n\t\tMatcher matcher = pattern.matcher(moses);\n\t\t\n\t\tint count=0; // how many times are we matching the pattern\n\t\tint istart=0; // index of input string\n\t\tString[] sourceWords = src.split(\" \");\n\t\tint src_start = 0;\n\t\tint src_end = 0;\n\t\tString src_phr = new String();\n\t\t\n\t\t// Traverse through each of the matches\n\t\t// the numbers inside the matched pattern will give us the index of the source phrases\n\t\t// the string preceding he matched pattern will give us the corresponding target string translation\n\t\twhile(matcher.find()) {\n\t\t\tcount++;\n\t\t\t//System.out.println(\"found: \" + count + \" : \" + matcher.start() + \" - \" + matcher.end() + \" for \" + matcher.group());\n\t\t\t\n\t\t\tsrc_start = new Integer(matcher.group(1)).intValue();\n\t\t\tsrc_end = new Integer(matcher.group(2)).intValue();\n\t\t\t//System.out.println(\"Srcphr: \" + matcher.group(1) + \" to \" + matcher.group(2) + sourceWords[src_start] + \" \" + sourceWords[src_end]);\n\t\t\t\n\t\t\t//alignPoints.add(moses.substring(istart,matcher.start()) + \" ||| \" + istart + \" ||| \" + matcher.start());\n\t\t\tsrc_phr = new String(sourceWords[src_start]);\n\t\t\tfor(int i=src_start+1; i<=src_end; i++){ // get the source phrases referenced by the alignment points\n\t\t\t\tsrc_phr += \" \" + sourceWords[i];\n\t\t\t}\n\t\t\talignPoints.add(src_phr + \" ||| \" + moses.substring(istart,matcher.start())); // add the source phrase and the corresponding target string translation separated by |||\n\t\t\tistart = matcher.end() + 1;\n\t\t}\n\t\t//System.out.println(\"The number of times we match patterns is \" + count);\n\t\t\n\t\treturn alignPoints;\n\t}",
"public static void Pubmed() throws IOException \n\t{\n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\TempDB\\\\PMCxxxx\\\\articals.txt\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL()); \n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\ttrainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\tif (trainset == null )\n\t\t{\n\t\t\ttrainset = new HashMap<String, Map<String,List<String>>>();\n\t\t}\n\t\t\n\t\t\n\t\t/************************************************************************************************/\n\t\t//Map<String, Integer> bagofwords = semantic.getbagofwords(titles) ; \n\t\t//trainxmllabeling(trainset,bagofwords); \n\t\t/************************************************************************************************/\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tModel Sentgraph = sentInfo.graph;\n\t\t\tif (trainset.containsKey(title))\n\t\t\t\tcontinue ; \n\t\t\t//8538\n\t\t\tcount++ ; \n\n\t\t\tMap<String, List<String>> triples = null ;\n\t\t\t// get the goldstandard concepts for current title \n\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\n\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\n\t\t\t// get the concepts \n\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\n\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,FILE_NAME_Patterns) ;\n\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t{\n\t\t\t\tcount1++ ;\n\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\n\t\t\t\tif (count1 == 30)\n\t\t\t\t{\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\Relationdisc1\") ;\n\t\t\t\t\tcount1 = 0 ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\t\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}",
"private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }",
"@Override\n protected List<Term> segSentence(char[] sentence)\n {\n WordNet wordNetAll = new WordNet(sentence);\n ////////////////生成词网////////////////////\n generateWordNet(wordNetAll);\n ///////////////生成词图////////////////////\n// System.out.println(\"构图:\" + (System.currentTimeMillis() - start));\n if (HanLP.Config.DEBUG)\n {\n System.out.printf(\"粗分词网:\\n%s\\n\", wordNetAll);\n }\n// start = System.currentTimeMillis();\n List<Vertex> vertexList = viterbi(wordNetAll);\n// System.out.println(\"最短路:\" + (System.currentTimeMillis() - start));\n\n if (config.useCustomDictionary)\n {\n if (config.indexMode > 0)\n combineByCustomDictionary(vertexList, this.dat, wordNetAll);\n else combineByCustomDictionary(vertexList, this.dat);\n }\n\n if (HanLP.Config.DEBUG)\n {\n System.out.println(\"粗分结果\" + convert(vertexList, false));\n }\n\n // 数字识别\n if (config.numberQuantifierRecognize)\n {\n mergeNumberQuantifier(vertexList, wordNetAll, config);\n }\n\n // 实体命名识别\n if (config.ner)\n {\n WordNet wordNetOptimum = new WordNet(sentence, vertexList);\n int preSize = wordNetOptimum.size();\n if (config.nameRecognize)\n {\n PersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.translatedNameRecognize)\n {\n TranslatedPersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.japaneseNameRecognize)\n {\n JapanesePersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.placeRecognize)\n {\n PlaceRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.organizationRecognize)\n {\n // 层叠隐马模型——生成输出作为下一级隐马输入\n wordNetOptimum.clean();\n vertexList = viterbi(wordNetOptimum);\n wordNetOptimum.clear();\n wordNetOptimum.addAll(vertexList);\n preSize = wordNetOptimum.size();\n OrganizationRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (wordNetOptimum.size() != preSize)\n {\n vertexList = viterbi(wordNetOptimum);\n if (HanLP.Config.DEBUG)\n {\n System.out.printf(\"细分词网:\\n%s\\n\", wordNetOptimum);\n }\n }\n }\n\n // 如果是索引模式则全切分\n if (config.indexMode > 0)\n {\n return decorateResultForIndexMode(vertexList, wordNetAll);\n }\n\n // 是否标注词性\n if (config.speechTagging)\n {\n speechTagging(vertexList);\n }\n\n return convert(vertexList, config.offset);\n }",
"private static void GenerateBaseline(String path, ArrayList<String> aNgramChar, Hashtable<String, TruthInfo> oTruth, String outputFile, String classValues) {\n FileWriter fw = null;\n int nTerms = 1000;\n \n try {\n fw = new FileWriter(outputFile);\n fw.write(Weka.HeaderToWeka(aNgramChar, nTerms, classValues));\n fw.flush();\n\n ArrayList<File> files = getFilesFromSubfolders(path, new ArrayList<File>());\n\n assert files != null;\n int countFiles = 0;\n for (File file : files)\n {\n System.out.println(\"--> Generating \" + (++countFiles) + \"/\" + files.size());\n try {\n Hashtable<String, Integer> oDocBOW = new Hashtable<>();\n Hashtable<String, Integer> oDocNgrams = new Hashtable<>();\n\n String sFileName = file.getName();\n\n //File fJsonFile = new File(path + \"/\" + sFileName);\n //Get name without extension\n String sAuthor = sFileName.substring(0, sFileName.lastIndexOf('.'));\n\n Scanner scn = new Scanner(file, \"UTF-8\");\n String sAuthorContent = \"\";\n //Reading and Parsing Strings to Json\n while(scn.hasNext()){\n JSONObject tweet= (JSONObject) new JSONParser().parse(scn.nextLine());\n\n String textTweet = (String) tweet.get(\"text\");\n\n sAuthorContent += textTweet + \" \" ;\n\n StringReader reader = new StringReader(textTweet);\n\n NGramTokenizer gramTokenizer = new NGramTokenizer(reader, MINSIZENGRAM, MAXSIZENGRAM);\n CharTermAttribute charTermAttribute = gramTokenizer.addAttribute(CharTermAttribute.class);\n gramTokenizer.reset();\n\n gramTokenizer.reset();\n\n while (gramTokenizer.incrementToken()) {\n String sTerm = charTermAttribute.toString();\n int iFreq = 0;\n if (oDocBOW.containsKey(sTerm)) {\n iFreq = oDocBOW.get(sTerm);\n }\n oDocBOW.put(sTerm, ++iFreq);\n }\n\n gramTokenizer.end();\n gramTokenizer.close();\n }\n \n Features oFeatures = new Features();\n oFeatures.GetNumFeatures(sAuthorContent);\n\n if (oTruth.containsKey(sAuthor)) {\n TruthInfo truth = oTruth.get(sAuthor);\n String sGender = truth.gender.toUpperCase();\n //If gender is unknown, this author is not interesting\n if (sGender.equals(\"UNKNOWN\")) continue;\n String sCountry = truth.country.toUpperCase();\n\n if (classValues.contains(\"MALE\")) {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sGender));\n } else {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sCountry));\n }\n fw.flush();\n }\n\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n }\n }\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n } finally {\n if (fw!=null) { try { fw.close(); } catch (Exception ignored) {} }\n }\n }",
"private void generateIdfOutput()\n{\n getValidWords();\n scanDocuments();\n outputResults();\n}",
"public void Run(boolean has_probe){\n hasProbe = has_probe;\n if (hasProbe){\n primerNum = 6;\n } else {\n primerNum = 4;\n }\n\n setUpBases();\n setUpCts();\n\n EnvMaker envMaker = new EnvMaker(pFilename, hasProbe);\n\n primers = envMaker.setPrimers();\n pNames = envMaker.getpNames();\n pLens = envMaker.getpLens();\n\n //Combined primer length - needed for combined mismatch freq\n mLen = primers[0].length() + primers[primerNum /2 -1].length();\n\n envMaker.checkSeqs(sFilename);\n\n buildSeqList(envMaker, envMaker.getSeqCount());\n //End Setup\n\n try {\n outFilename = sFilename + \"_out.txt\";\n\n FileWriter fstreamOut = new FileWriter(outFilename);\n BufferedWriter outOut = new BufferedWriter(fstreamOut);\n\n outFilename = sFilename + \"_cts.txt\";\n\n FileWriter fstreamCT = new FileWriter(outFilename);\n BufferedWriter outCT = new BufferedWriter(fstreamCT);\n\n //outputPrinter printer = new outputPrinter(sFilename, pLens);\n\n //Loop through each sequence in turn\n for (int s = 0; s < compSeqs.length; s++) {\n success = false;\n\n try {\n\n //outFilename=sFilename.substring(0, sFilename.lastIndexOf(\".\"))+\"_\"+s+\"_matrix.txt\";\n outFilename=sFilename+\"_\"+(s+1)+\"_matrix.txt\";\n\n tTx=\"Evaluating seq \"+(s+1)+\" \"+seqNames[s];\n System.out.println(tTx);\n outOut.write(tTx+System.getProperty(\"line.separator\"));\n\n //Clear results - 6 for F/P/R*2, 14 for all the different mutation counts - plus one for Ns now\n scores = new int[compSeqs[s].length()][primerNum][16];\n\n runMismatchDetection(s);\n\n PrintCandidatePos(outOut);\n }//matrix outputFile try\n\n catch (Exception e) {\n e.printStackTrace();\n System.err.println(\"Error: \" + e.getMessage());\n }\n\n if(!success) {\n noHits+=seqNames[s]+\"\\tNOHIT\"+System.getProperty(\"line.separator\");\n }\n }//end of comSeq loop s - evaluate each seq\n\n outOut.close();\n\n outCT.write(noHits);\n outCT.close();\n }//cts outFile try\n catch (Exception e) {\n e.printStackTrace();\n System.err.println(\"Error: \" + e.getMessage());\n }\n System.out.println(\"GoPrime finished...Exiting\");\n }",
"@Test\n public void testSortVariantConsequenceDict() {\n final Map<String, Set<String>> before = new HashMap<>();\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.LOF, \"NOC2L\");\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.LOF, \"KLHL17\");\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.LOF, \"PLEKHN1\");\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.LOF, \"PERM1\");\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.DUP_PARTIAL, \"SAMD11\");\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.LOF, \"HES4\");\n SVAnnotateEngine.updateVariantConsequenceDict(before, GATKSVVCFConstants.TSS_DUP, \"ISG15\");\n\n final Map<String, Object> expectedAfter = new HashMap<>();\n expectedAfter.put(GATKSVVCFConstants.DUP_PARTIAL, Arrays.asList(\"SAMD11\"));\n expectedAfter.put(GATKSVVCFConstants.TSS_DUP, Arrays.asList(\"ISG15\"));\n expectedAfter.put(GATKSVVCFConstants.LOF, Arrays.asList(\"HES4\", \"KLHL17\", \"NOC2L\", \"PERM1\", \"PLEKHN1\"));\n\n Assert.assertEquals(SVAnnotateEngine.sortVariantConsequenceDict(before), expectedAfter);\n }",
"public void test() throws IOException, SQLException\r\n\t{\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(\"src/result.txt\")));\r\n\t\tList<String> sents = new ArrayList<>();\r\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"src/test_tmp_col.txt\")));\r\n\t\tString line = \"\";\r\n\t\tString wordseq = \"\";\r\n\t\tList<List<String>> tokens_list = new ArrayList<>();\r\n\t\tList<String> tokens = new ArrayList<>();\r\n\t\twhile((line=br.readLine())!=null)\r\n\t\t{\r\n\t\t\tif(line.trim().length()==0)\r\n\t\t\t{\r\n\t\t\t\tsents.add(wordseq);\r\n\t\t\t\ttokens_list.add(tokens);\r\n\t\t\t\twordseq = \"\";\r\n\t\t\t\ttokens = new ArrayList<>();\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tString word = line.split(\"#\")[0];\r\n\t\t\t\twordseq += word;\r\n\t\t\t\ttokens.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbr.close();\r\n\t\tfor(String sent : sents)\r\n\t\t{\r\n\t\t\tString newsURL = null;\r\n\t\t\tString imgAddress = null;\r\n\t\t\tString newsID = null;\r\n\t\t\tString saveTime = null;\r\n\t\t\tString newsTitle = null;\r\n\t\t\tString placeEntity = null;\r\n\t\t\tboolean isSummary = false;\r\n\t\t\tPair<String, LabelItem> result = extractbysentence(newsURL, imgAddress, newsID, saveTime, newsTitle, sent, placeEntity, isSummary);\r\n\t\t\t\r\n\t\t\tif(result!=null)\r\n\t\t\t{\r\n\t\t\t\r\n//\t\t\t\tSystem.out.print(result.getSecond().eventType+\"\\n\");\r\n\t\t\t\tbw.write(sent+'\\t'+result.getSecond().triggerWord+\"\\t\"+result.getSecond().sourceActor+'\\t'+result.getSecond().targetActor+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tbw.write(sent+'\\n');\r\n\t\t\t}\r\n\t\t}\r\n\t\tbw.close();\r\n\t\t\r\n\t}",
"public void writeDocumentForA(String filename, String path) throws Exception\r\n\t{\n\t\tFile folder = new File(path);\r\n\t\tFile[] listOfFiles = folder.listFiles();\r\n\t \r\n\t \r\n\t \tFileWriter fwText;\r\n\t\tBufferedWriter bwText;\r\n\t\t\r\n\t\tfwText = new FileWriter(\"C:/Users/jipeng/Desktop/Qiang/updateSum/TAC2008/Parag/\"+ filename+\"/\" +\"A.txt\");\r\n\t\tbwText = new BufferedWriter(fwText);\r\n\t\t\r\n\t \tfor ( int i=0; i<listOfFiles.length; i++) {\r\n\t \t\t//String name = listOfFiles[i].getName();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString text = readText(listOfFiles[i].getAbsolutePath());\r\n\t\t\t\r\n\t\t\tFileWriter fwWI = new FileWriter(\"C:/pun.txt\");\r\n\t\t\tBufferedWriter bwWI = new BufferedWriter(fwWI);\r\n\t\t\t\r\n\t\t\tbwWI.write(text);\r\n\t\t\t\r\n\t\t\tbwWI.close();\r\n\t\t\tfwWI.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<List<HasWord>> sentences = MaxentTagger.tokenizeText(new BufferedReader(new FileReader(\"C:/pun.txt\")));\r\n\t\t\t\r\n\t\t\t//System.out.println(text);\r\n\t\t\tArrayList<Integer> textList = new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t\tfor (List<HasWord> sentence : sentences)\r\n\t\t\t {\r\n\t\t\t ArrayList<TaggedWord> tSentence = tagger.tagSentence(sentence);\r\n\t\t\t \r\n\t\t\t for(int j=0; j<tSentence.size(); j++)\r\n\t\t\t {\r\n\t\t\t \t \tString word = tSentence.get(j).value();\r\n\t\t\t \t \t\r\n\t\t\t \t \tString token = word.toLowerCase();\r\n\t\t\t \t \r\n\t\t\t \t \tif(token.length()>2 )\r\n\t\t\t\t \t{\r\n\t\t\t \t\t\t if (!m_EnStopwords.isStopword(token)) \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\t if (word2IdHash.get(token)==null)\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t textList.add(id);\r\n\t\t\t\t\t\t\t\t\t // bwText.write(String.valueOf(id)+ \" \");\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t word2IdHash.put(token, id);\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t allWordsArr.add(token);\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t id++;\r\n\t\t\t\t\t\t\t\t } else\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t \tint wid=(Integer)word2IdHash.get(token);\r\n\t\t\t\t\t\t\t\t \tif(!textList.contains(wid))\r\n\t\t\t\t\t\t\t\t \t\ttextList.add(wid);\r\n\t\t\t\t\t\t\t\t \t//bwText.write(String.valueOf(wid)+ \" \");\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t \t}\r\n\t\t\t \t }\r\n\t\t\t }\r\n\t\t\tCollections.sort(textList);\r\n\t\t \r\n\t\t\tString text2 = valueFromList(textList);\r\n\t\t bwText.write(text2);\r\n\t\t //System.out.println(text2);\r\n\t\t bwText.newLine();\r\n\t\t textList.clear();\r\n\t\t \r\n\t \t}\r\n\t \tbwText.close();\r\n\t fwText.close();\r\n\t}",
"@Test\n\tpublic void testStoreProcessTest1(){\n\t\tint sourceID = dm.storeProcessedText(pt5);\n\t\tassertTrue(sourceID > 0);\n\t\t\n\t\tds.startSession();\n\t\tSource source = ds.getSource(pt5.getMetadata().getUrl());\n\t\tList<Paragraph> paragraphs = (List<Paragraph>) ds.getParagraphs(source.getSourceID());\n\t\tassertTrue(pt5.getMetadata().getName().equals(source.getName()));\n\t\tassertTrue(pt5.getParagraphs().size() == paragraphs.size());\n\t\t\n\t\tfor(int i = 0; i < pt5.getParagraphs().size(); i++){\n\t\t\tParagraph p = paragraphs.get(i);\n\t\t\tParagraph originalP = pt5.getParagraphs().get(i);\n\t\t\tassertTrue(originalP.getParentOrder() == p.getParentOrder());\n\t\t\t\n\t\t\tList<Sentence> sentences = (List<Sentence>) ds.getSentences(p.getId());\n\t\t\tList<Sentence> originalSentences = (List<Sentence>) originalP.getSentences();\n\t\t\tfor(int j = 0; j < originalSentences.size(); j++){\n\t\t\t\tassertTrue(originalSentences.get(j).getContent().substring(DataStore.SENTENCE_PREFIX.length()).equals(sentences.get(j).getContent()));\n\t\t\t\tassertTrue(originalSentences.get(j).getParentOrder() == sentences.get(j).getParentOrder());\n\t\t\t}\n\t\t}\n\t\tList<Entity> entities = (List<Entity>) ds.getEntities(sourceID);\n\t\tassertTrue(pt5.getEntities().size() == entities.size());\n\t\t\n\t\tfor(int i = 0; i < pt5.getEntities().size(); i++){\n\t\t\tEntity originalEntity = pt5.getEntities().get(i);\n\t\t\tEntity retrievedEntity = entities.get(i);\n\t\t\tassertTrue(originalEntity.getContent().equals(retrievedEntity.getContent()));\n\t\t}\n\t\tds.closeSession();\n\t}",
"@Override\r\npublic Object produceValue(Annotation np, Document doc)\r\n{\n SortedSet<Integer> quoteLocations = new TreeSet<Integer>();\r\n Pattern p = Pattern.compile(\"\\\"|''|``|\\u201C|\\u201D\");\r\n\r\n String text = doc.getText();\r\n Matcher m = p.matcher(text);\r\n\r\n boolean inQuote = false;\r\n while (m.find()) {\r\n int start = m.start();\r\n if (inQuote && (text.substring(start).startsWith(\"``\") || text.substring(start).startsWith(\"\\u201C\"))) {\r\n // We have an opening quote; Make sure the previous quote is closed\r\n quoteLocations.add((start - 1));\r\n inQuote = false;\r\n }\r\n quoteLocations.add((start));\r\n inQuote = !inQuote;\r\n }\r\n // System.out.println(\"Quote locations: \"+quoteLocations);\r\n\r\n // Figure out which noun corresponds to which quote\r\n AnnotationSet sent = doc.getAnnotationSet(Constants.SENT);\r\n Iterator<Integer> quoteIter = quoteLocations.iterator();\r\n HashMap<Integer, Annotation> reporters = new HashMap<Integer, Annotation>();\r\n HashMap<Integer, Annotation> companies = new HashMap<Integer, Annotation>();\r\n HashMap<Integer, Annotation> sentReporter = new HashMap<Integer, Annotation>();\r\n HashMap<Integer, Annotation> compReporter = new HashMap<Integer, Annotation>();\r\n int counter = 1;\r\n while (quoteIter.hasNext()) {\r\n int qStart = quoteIter.next();\r\n if (!quoteIter.hasNext()) {\r\n break;\r\n }\r\n int qEnd = quoteIter.next() + 1;\r\n\r\n AnnotationSet sentences = sent.getOverlapping(qStart, qEnd);\r\n\r\n // Three cases for the size of the sentences set\r\n Annotation match, compMatch;\r\n if (sentences.size() < 1) {\r\n System.out.println(\"Quote is not covered by any sentence:\");\r\n int beg = qStart - 15;\r\n beg = beg < 0 ? 0 : beg;\r\n int en = qStart + 15;\r\n en = en >= text.length() ? text.length() - 1 : en;\r\n System.out.println(Utils.getAnnotText(beg, en, text));\r\n System.out.println(\"Position \" + qStart);\r\n match = Annotation.getNullAnnot();\r\n compMatch = Annotation.getNullAnnot();\r\n // throw new RuntimeException(\"Quote is not covered by any sentence\");\r\n }\r\n else if (sentences.size() == 1) {\r\n Annotation s = sentences.getFirst();\r\n // System.out.println(\"Sent: \"+Utils.getAnnotText(s, text));\r\n if (s.properCovers(qStart, qEnd)) {\r\n match = findReporter(qStart, qEnd, s, doc);\r\n compMatch = findCompany(qStart, qEnd, s, doc);\r\n if (match.equals(Annotation.getNullAnnot())) {\r\n match = findReportCont(sentReporter, s, doc);\r\n compMatch = findReportCont(compReporter, s, doc);\r\n }\r\n }\r\n else {\r\n match = findReportCont(sentReporter, s, doc);\r\n compMatch = findReportCont(compReporter, s, doc);\r\n }\r\n sentReporter.put(Integer.decode(s.getAttribute(\"sentNum\")), match);\r\n compReporter.put(Integer.decode(s.getAttribute(\"sentNum\")), compMatch);\r\n }\r\n else {\r\n // The quoted string spans more than one sentence.\r\n Annotation beg = sentences.getFirst();\r\n // System.out.println(\"First sent: \"+Utils.getAnnotText(beg, text));\r\n Annotation end = sentences.getLast();\r\n // System.out.println(\"Last sent: \"+Utils.getAnnotText(end, text));\r\n match = Annotation.getNullAnnot();\r\n compMatch = Annotation.getNullAnnot();\r\n if (beg.getStartOffset() < qStart) {\r\n match = findReporter(qStart, qEnd, beg, doc);\r\n compMatch = findCompany(qStart, qEnd, beg, doc);\r\n }\r\n if (match.equals(Annotation.getNullAnnot()) && qEnd < end.getEndOffset()) {\r\n match = findReporter(qStart, qEnd, end, doc);\r\n compMatch = findCompany(qStart, qEnd, end, doc);\r\n }\r\n if (match.equals(Annotation.getNullAnnot())) {\r\n match = findReportCont(sentReporter, beg, doc);\r\n compMatch = findCompany(qStart, qEnd, end, doc);\r\n }\r\n sentReporter.put(Integer.parseInt(beg.getAttribute(\"sentNum\")), match);\r\n sentReporter.put(Integer.parseInt(end.getAttribute(\"sentNum\")), match);\r\n compReporter.put(Integer.parseInt(beg.getAttribute(\"sentNum\")), compMatch);\r\n compReporter.put(Integer.parseInt(end.getAttribute(\"sentNum\")), compMatch);\r\n\r\n }\r\n reporters.put(counter, match);\r\n companies.put(counter, compMatch);\r\n counter += 2;\r\n\r\n // System.out.println(\"Quote: \"+Utils.getAnnotText(qStart, qEnd, text));\r\n // if(!match.equals(Annotation.getNullAnnot())){\r\n // System.out.println(\"Match: \"+Utils.getAnnotText(match, text));\r\n // }else{\r\n // System.out.println(\"no match!\");\r\n // }\r\n }\r\n int initial = quoteLocations.size();\r\n\r\n AnnotationSet nps = doc.getAnnotationSet(Constants.NP);\r\n for (Annotation a : nps.getOrderedAnnots()) {\r\n int s = a.getStartOffset();\r\n quoteLocations = quoteLocations.tailSet(s);\r\n int numQuotes = initial - quoteLocations.size();\r\n\r\n // System.err.println(numQuotes);\r\n if (numQuotes % 2 == 0) {\r\n a.setProperty(this, -1);\r\n a.setProperty(Property.AUTHOR, Annotation.getNullAnnot());\r\n a.setProperty(Property.COMP_AUTHOR, Annotation.getNullAnnot());\r\n }\r\n else {\r\n a.setProperty(this, numQuotes);\r\n a.setProperty(Property.AUTHOR, reporters.get(numQuotes));\r\n a.setProperty(Property.COMP_AUTHOR, companies.get(numQuotes));\r\n // if(FeatureUtils.isPronoun(a, annotations, text)&&FeatureUtils.getPronounPerson(FeatureUtils.getText(a,\r\n // text))==1\r\n // &&FeatureUtils.NumberEnum.SINGLE.equals(FeatureUtils.getNumber(a, annotations, text))){\r\n // Annotation repo = reporters.get(new Integer(numQuotes));\r\n // if(repo==null||repo.equals(Annotation.getNullAnnot())){\r\n // Annotation thisSent = sent.getOverlapping(a).getFirst();\r\n // System.out.println(\"*** No author in \"+Utils.getAnnotText(thisSent, text+\"***\"));\r\n // }\r\n // }\r\n }\r\n }\r\n // System.out.println(\"End of inquote\");\r\n\r\n return np.getProperty(this);\r\n}",
"public void firstSem4() {\n chapter = \"firstSem4\";\n String firstSem4 = \"You're sitting at your computer - you can't sleep, and your only companions are \"+student.getRmName()+\"'s \" +\n \"snoring and Dave Grohl, whose kind face looks down at you from your poster. Your head is buzzing with everything you've \" +\n \"seen today.\\tA gentle 'ding' sounds from your computer, and you click your email tab. It's a campus-wide message \" +\n \"from the president, all caps, and it reads as follows:\\n\\t\" +\n \"DEAR STUDENTS,\\n\" +\n \"AS YOU MAY HAVE HEARD, THERE HAVE BEEN SEVERAL CONFIRMED INTERACTIONS WITH THE CAMPUS BEAST. THESE INTERACTIONS\" +\n \" RANGE FROM SIGHTINGS (17) TO KILLINGS (6). BE THIS AS IT MAY, REST ASSURED THAT WE ARE TAKING EVERY NECESSARY \" +\n \"PRECAUTION TO ENSURE STUDENT WELL-BEING. WE ARE ALL DEDICATED TO MAKING \"+(student.getCollege().getName()).toUpperCase()+\n \" A SAFE, INCLUSIVE ENVIRONMENT FOR ALL. TO CONTRIBUTE, I ASK THAT YOU DO YOUR PART, AND REPORT ANY SIGHTINGS, MAIMINGS,\" +\n \" OR KILLINGS TO PUBLIC SAFETY WITHIN A REASONABLE AMOUNT OF TIME. ENJOY YOUR STUDIES!\\nTOODOLOO,\\nPRESIDENT DOUG\";\n getTextIn(firstSem4);\n }",
"@Test\n \tpublic void testSimpleFilterAlignments()\n \t{\n \t\tString searchTerm = \"hobbys\";\n \t\tString searchText = \"hobbies\";\n \t\tPDL.init(searchTerm, searchText, true, true);\n \t\talignments.clear();\n \t\tPseudoDamerauLevenshtein.Alignment ali1 = PDL.new Alignment(searchTerm, searchText, 1.0, 0, 5, 0, 0);\n \t\tPseudoDamerauLevenshtein.Alignment ali2 = PDL.new Alignment(searchTerm, searchText, 0.5, 0, 5, 0, 0);\n \t\talignments.add(ali1);\n \t\talignments.add(ali2);\n \t\talignments = PseudoDamerauLevenshtein.filterAlignments(alignments);\n \t\tAssert.assertEquals(1, alignments.size());\n \t\tAssert.assertEquals(ali1, alignments.get(0));\n \t}",
"@Test\r\n public void genePageIntegrationTest() {\n PhenoDigmDao diseaseDao = instance;\r\n\r\n String mgiGeneId = \"MGI:95523\";\r\n System.out.println(String.format(\"\\n\\nGene: %s\", mgiGeneId));\r\n System.out.println(\"Known Disease Associations:\");\r\n Map<Disease, Set<DiseaseAssociation>> knownDiseases = diseaseDao.getKnownDiseaseAssociationsForMgiGeneId(mgiGeneId);\r\n Map<Disease, Set<DiseaseAssociation>> predictedDiseases = diseaseDao.getPredictedDiseaseAssociationsForMgiGeneId(mgiGeneId);\r\n\r\n if (knownDiseases.keySet().isEmpty()) {\r\n System.out.println(\" No known disease associations for \" + mgiGeneId);\r\n }\r\n for (Disease disease : knownDiseases.keySet()) {\r\n System.out.println(disease.getTerm());\r\n System.out.println(disease);\r\n System.out.println(String.format(\"%n Mouse Disease Models with Phenotypic Similarity to %s - via Literature:\", disease.getTerm()));\r\n Set<DiseaseAssociation> literatureDiseaseAssociations = knownDiseases.get(disease);\r\n System.out.print(formatDiseaseAssociations(literatureDiseaseAssociations));\r\n\r\n System.out.println(String.format(\"%n Phenotypic Matches to Mouse Models of %s:\", disease.getTerm()));\r\n Set<DiseaseAssociation> phenotypicDiseaseAssociations = predictedDiseases.get(disease);\r\n if (phenotypicDiseaseAssociations == null) {\r\n phenotypicDiseaseAssociations = new TreeSet<DiseaseAssociation>();\r\n }\r\n System.out.print(formatDiseaseAssociations(phenotypicDiseaseAssociations));\r\n }\r\n\r\n System.out.println(\"\\nPredicted Disease Associations: (first 10 only)\");\r\n if (knownDiseases.keySet().isEmpty()) {\r\n System.out.println(\" No predicted disease associations for \" + mgiGeneId);\r\n }\r\n \r\n Iterator<Disease> predictedDiseaseIterator = predictedDiseases.keySet().iterator();\r\n for (int i = 0; i < 10; i++) {\r\n if (predictedDiseaseIterator.hasNext()) {\r\n Disease disease = predictedDiseaseIterator.next();\r\n System.out.println(String.format(\" %s %s\", disease.getTerm(), disease.getDiseaseId()));\r\n System.out.print(formatDiseaseAssociations(predictedDiseases.get(disease))); \r\n } \r\n }\r\n \r\n System.out.println(\"--------------------------------------------------------------------------------------------------\\n\");\r\n }",
"public void train (List<List<String>> sentences) {\n // sentence structure: <S>A B C</S>\n bigramModel.train(sentences, bigramModel.start_symbol, bigramModel.end_symbol);\n // sentence structure: </S>C B A<S>\n backwardBigramModel.train(sentences, backwardBigramModel.end_symbol, backwardBigramModel.start_symbol);\n }",
"public void makeWord(String inputText,String pageId,createIndex createindex,String contentType)\n {\n int length,i;\n char c;\n boolean linkFound=false;\n int count1,count2,count3,count4,count5,count6,count7,count8,count9;\n\n\n\n StringBuilder word=new StringBuilder();\n // String finalWord=null,stemmedWord=null;\n docId=Integer.parseInt(pageId.trim());\n\n ci=createindex;\n // Stemmer st=new Stemmer();\n //createIndex createindex=new createIndex();\n\n length=inputText.length();\n\n for(i=0;i<length;i++)\n {\n c=inputText.charAt(i);\n if(c<123 && c>96)\n {\n word.append(c);\n }\n\n else if(c=='{')\n {\n if ( i+9 < length && inputText.substring(i+1,i+9).equals(\"{infobox\") )\n {\n\n StringBuilder infoboxString = new StringBuilder();\n\n count1 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n infoboxString.append(c);\n if ( c == '{') {\n count1++;\n }\n else if ( c == '}') {\n count1--;\n }\n if ( count1 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {infoboxString.deleteCharAt(infoboxString.length()-1);}\n break;\n }\n }\n\n processInfobox(infoboxString);\n\n }\n\n else if ( i+8 < length && inputText.substring(i+1,i+8).equals(\"{geobox\") )\n {\n\n StringBuilder geoboxString = new StringBuilder();\n\n count2 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n geoboxString.append(c);\n if ( c == '{') {\n count2++;\n }\n else if ( c == '}') {\n count2--;\n }\n if ( count2 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {geoboxString.deleteCharAt(geoboxString.length()-1);}\n break;\n }\n }\n\n // processGeobox(geoboxString);\n }\n\n else if ( i+6 < length && inputText.substring(i+1,i+6).equals(\"{cite\") )\n {\n\n /*\n * Citations are to be removed.\n */\n\n count3 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count3++;\n }\n else if ( c == '}') {\n count3--;\n }\n if ( count3 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n else if ( i+4 < length && inputText.substring(i+1,i+4).equals(\"{gr\") )\n {\n\n /*\n * {{GR .. to be removed\n */\n\n count4 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count4++;\n }\n else if ( c == '}') {\n count4--;\n }\n if ( count4 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equals(\"{coord\") )\n {\n\n /**\n * Coords to be removed\n */\n\n count5 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '{') {\n count5++;\n }\n else if ( c == '}') {\n count5--;\n }\n if ( count5 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n //System.out.println(\"process infobox\");\n }\n else if(c=='[')\n {\n // System.out.println(\"process square brace\");\n\n if ( i+11 < length && inputText.substring(i+1,i+11).equalsIgnoreCase(\"[category:\"))\n {\n\n StringBuilder categoryString = new StringBuilder();\n\n count6 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n categoryString.append(c);\n if ( c == '[') {\n count6++;\n }\n else if ( c == ']') {\n count6--;\n }\n if ( count6 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {categoryString.deleteCharAt(categoryString.length()-1);}\n break;\n }\n }\n\n // System.out.println(\"category string=\"+categoryString.toString());\n processCategories(categoryString);\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"[image:\") ) {\n\n /**\n * Images to be removed\n */\n\n count7 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '[') {\n count7++;\n }\n else if ( c == ']') {\n count7--;\n }\n if ( count7 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equalsIgnoreCase(\"[file:\") ) {\n\n /**\n * File to be removed\n */\n\n count8 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '[') {\n count8++;\n }\n else if ( c == ']') {\n count8--;\n }\n if ( count8 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n }\n else if(c=='<')\n {\n //System.out.println(\"Process < >\");\n\n if ( i+4 < length && inputText.substring(i+1,i+4).equalsIgnoreCase(\"!--\") ) {\n\n /**\n * Comments to be removed\n */\n\n int locationClose = inputText.indexOf(\"-->\" , i+1);\n if ( locationClose == -1 || locationClose+2 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+2;\n }\n\n }\n else if ( i+5 < length && inputText.substring(i+1,i+5).equalsIgnoreCase(\"ref>\") ) {\n\n /**\n * References to be removed\n */\n int locationClose = inputText.indexOf(\"</ref>\" , i+1);\n if ( locationClose == -1 || locationClose+5 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+5;\n }\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"gallery\") ) {\n\n /**\n * Gallery to be removed\n */\n int locationClose = inputText.indexOf(\"</gallery>\" , i+1);\n if ( locationClose == -1 || locationClose+9 > length) {\n i = length-1;\n }\n else {\n i = locationClose+9;\n }\n }\n\n }\n else if ( c == '=' && i+1 < length && inputText.charAt(i+1) == '=')\n {\n\n linkFound = false;\n i+=2;\n while ( i < length && ((c = inputText.charAt(i)) == ' ' || (c = inputText.charAt(i)) == '\\t') )\n {\n i++;\n }\n\n if ( i+14 < length && inputText.substring(i , i+14 ).equals(\"external links\") )\n {\n //System.out.println(\"External link found\");\n linkFound = true;\n i+= 14;\n }\n\n }\n else if ( c == '*' && linkFound == true )\n {\n\n //System.out.println(\"Link found\");\n count9 = 0;\n boolean spaceParsed = false;\n StringBuilder link = new StringBuilder();\n while ( count9 != 2 && i < length )\n {\n c = inputText.charAt(i);\n if ( c == '[' || c == ']' )\n {\n count9++;\n }\n if ( count9 == 1 && spaceParsed == true)\n {\n link.append(c);\n }\n else if ( count9 != 0 && spaceParsed == false && c == ' ')\n {\n spaceParsed = true;\n }\n i++;\n }\n\n StringBuilder linkWord = new StringBuilder();\n for ( int j = 0 ; j < link.length() ; j++ )\n {\n char currentCharTemp = link.charAt(j);\n if ( (int)currentCharTemp >= 'a' && (int)currentCharTemp <= 'z' )\n {\n linkWord.append(currentCharTemp);\n }\n else\n {\n\n // System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n }\n if ( linkWord.length() > 1 )\n {\n //System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n\n }\n else\n {\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n }\n }\n\n\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n /*\n if(word.length()>0)\n {\n finalWord=new String(word);\n if(!(checkStopword(finalWord)))\n {\n st.add(finalWord.toCharArray(),finalWord.length());\n stemmedWord=st.stem();\n\n createindex.addToTreeSet(stemmedWord,docId);\n\n }\n\n word.delete(0, word.length());\n } */\n\n }",
"@Override\n\tprotected Map<Object, Object> rawTextParse(CharSequence text) {\n\n\t\tStanfordCoreNLP pipeline = null;\n\t\ttry {\n\t\t\tpipeline = pipelines.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tAnnotation document = new Annotation(text.toString());\n\t\tpipeline.annotate(document);\n\t\tMap<Object, Object> sentencesMap = new LinkedHashMap<Object, Object>();//maintain sentence order\n\t\tint id = 0;\n\t\tList<CoreMap> sentences = document.get(CoreAnnotations.SentencesAnnotation.class);\n\n\t\tfor (CoreMap sentence : sentences) {\n\t\t\tStringBuilder processedText = new StringBuilder();\n\t\t\tfor (CoreLabel token : sentence.get(CoreAnnotations.TokensAnnotation.class)) {\n\t\t\t\tString word = token.get(CoreAnnotations.TextAnnotation.class);\n\t\t\t\tString lemma = token.get(CoreAnnotations.LemmaAnnotation.class);\n\t\t\t\tString pos = token.get(CoreAnnotations.PartOfSpeechAnnotation.class);\n\t\t\t\t//todo this should really happen after parsing is done, because using lemmas might confuse the parser\n\t\t\t\tif (config().isUseLowercaseEntries()) {\n\t\t\t\t\tword = word.toLowerCase();\n\t\t\t\t\tlemma = lemma.toLowerCase();\n\t\t\t\t}\n\t\t\t\tif (config().isUseLemma()) {\n\t\t\t\t\tword = lemma;\n\t\t\t\t}\n\t\t\t\tprocessedText.append(word).append(POS_DELIMITER).append(lemma).append(POS_DELIMITER).append(pos).append(TOKEN_DELIM);\n //inserts a TOKEN_DELIM at the end too\n\t\t\t}\n\t\t\tsentencesMap.put(id, processedText.toString().trim());//remove the single trailing space\n\t\t\tid++;\n\t\t}\n\t\ttry {\n\t\t\tpipelines.put(pipeline);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn sentencesMap;\n\t}",
"public AlignmentCompareResult getAlignmentEvaluation(Map<String, String> alignmentResult, String repeatInfo) {\n\t\tAlignmentCompareResult alignmentCompareResult = new AlignmentCompareResult();\n\t\tchar correctedChar, artificialChar, originalChar, repeatChar;\n\t\t// getting each key\n\t\tString originalKey = \"\", artificialKey = \"\", correctedKey = \"\";\n\n\t\tfor (String seqKey : alignmentResult.keySet()) {\n\t\t\tif (seqKey.toLowerCase().startsWith(\"r\")) {\n\t\t\t\toriginalKey = seqKey;\n\t\t\t} else if (seqKey.toLowerCase().startsWith(\"a\")) {\n\t\t\t\tartificialKey = seqKey;\n\t\t\t} else {\n\t\t\t\tcorrectedKey = seqKey;\n\t\t\t}\n\n\t\t}\n\t\tint start = getNumberOfHypthens(alignmentResult.get(correctedKey), false);\n\t\tint rightHyphens = getNumberOfHypthens(alignmentResult.get(correctedKey), true);\n\t\t// length is 1 based but extracting is 0 based\n\t\tint end = alignmentResult.get(correctedKey).length() - rightHyphens;\n\n\t\t// variable to calculate efficiency\n\t\tint corIndelSimple = 0;\n\t\tint corMismatchSimple = 0;\n\n\t\tint uncorIndelSimple = 0;\n\t\tint uncorMismatchSimple = 0;\n\n\t\tint introducedIndelSimple = 0;\n\t\tint introducedMismatchSimple = 0;\n\n\t\t// efficiency in other repeats\n\n\t\tint corIndelOther = 0;\n\t\tint corMismatchOther = 0;\n\n\t\tint uncorIndelOther = 0;\n\t\tint uncorMismatchOther = 0;\n\n\t\tint introducedIndelOther = 0;\n\t\tint introducedMismatchOther = 0;\n\n\t\t// efficiency in non repeats\n\n\t\tint corIndelNoRepeat = 0;\n\t\tint corMismatchNoRepeat = 0;\n\n\t\tint uncorIndelNoRepeat = 0;\n\t\tint uncorMismatchNoRepeat = 0;\n\n\t\tint introducedIndelNoRepeat = 0;\n\t\tint introducedMismatchNoRepeat = 0;\n\n\t\t// efficiency overall\n\n\t\tint corIndel = 0; // ref = - and cor = - OR art = - and cor\n\t\t\t\t\t\t\t// == ref\n\t\tint corMismatch = 0; // ref == cor != art and ref == [ACGT]\n\n\t\tint uncorIndel = 0; // ref = - and cor = [ACGT] OR art = -\n\t\t\t\t\t\t\t// and ref = [ACGT]\n\t\tint uncorMismatch = 0; // ref != art == cor\n\n\t\tint introducedIndel = 0; // cor = [ACGT] and ref = - OR cor\n\t\t\t\t\t\t\t\t\t// = - and ref = [ACGT]\n\t\tint introducedMismatch = 0; // ref != cor != art\n\n\t\tif (!repeatInfo.isEmpty()) {\n\t\t\tint repearIterator = getBeginningOfRepeatseq(start, alignmentResult.get(originalKey));\n\t\t\tif(repearIterator > 0){\n\t\t\t\trepearIterator = repearIterator - 1;\n\t\t\t}\n\t\t\t// length is 1 based but extracting is 0 based\n//\t\t\tSystem.out.println(\"===============================\\nsequence name is \"+ correctedKey+\n//\t\t\t\t\t\" length of repeat seq \"+ repeatInfo.length()+\n//\t\t\t\t\t\" length of original seq with hyphens \"+ alignmentResult.get(originalKey).length()+\n//\t\t\t\t\t\" length of original seq after removing hyphens \"+ alignmentResult.get(originalKey).replaceAll(\"-\", \"\").length()+\n//\t\t\t\t\t\" length of corrected \"+ alignmentResult.get(correctedKey).length()+\n//\t\t\t\t\t\" length of artificial \"+ alignmentResult.get(artificialKey).length()+\n//\t\t\t\t\t\" repeat iterator beginning \"+repearIterator+\n//\t\t\t\t\t\" start is \"+start+\n//\t\t\t\t\t\" end is \"+end);\n\t\t\tfor (int i = start; i < end; i++) {\n\t\t\t\t\n\t\t\t\toriginalChar = Character.toLowerCase(alignmentResult.get(originalKey).charAt(i));\n\t\t\t\tartificialChar = Character.toLowerCase(alignmentResult.get(artificialKey).charAt(i));\n\t\t\t\tcorrectedChar = Character.toLowerCase(alignmentResult.get(correctedKey).charAt(i));\n\t\t\t\tif (originalChar != '-')\n\t\t\t\t\trepearIterator++;\n//\t\t\t\tif(repearIterator >= repeatInfo.length()){\n//\t\t\t\t\tSystem.out.println(\"last index of repeat iterator before crash is \"+ repearIterator+\" last index for sequence \"+ i);\n//\t\t\t\t\tSystem.out.println(alignmentResult.get(originalKey));\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ((end -1) == i) {\n\t\t\t\t\trepearIterator--;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\trepeatChar = Character.toLowerCase(repeatInfo.charAt(repearIterator));\n\t\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\trepeatChar = repeatInfo.charAt(repearIterator-1);\n\t\t\t\t\tSystem.out.println(\"an error happened in \"+ correctedKey +\" where all repeat info is \"\n\t\t\t\t\t+repeatInfo.length()+ \" at position \"+repearIterator+\" before the end of sequence at \"+i+\" from total\"+ end);\n\t\t\t\t\trepearIterator--;\n\t\t\t\t}\n\t\t\t\t\n\n\n\t\t\t\t\n//\t\t\t\tif (originalChar == '-'){\n//\t\t\t\trepearIterator = repearIterator;\n//\t\t\t}else {\n//\t\t\t\trepearIterator++;\n//\t\t\t}\n\t\t\t\tswitch (repeatChar) {\n\t\t\t\t// Simple repeat\n\t\t\t\tcase 's':\n\t\t\t\t\tif (correctedChar == artificialChar && correctedChar == originalChar) {\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t} else if (correctedChar == originalChar) {\n\t\t\t\t\t\tif ((artificialChar == '-') || (correctedChar == '-'))\n\t\t\t\t\t\t\tcorIndelSimple++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcorMismatchSimple++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (correctedChar == artificialChar) {\n\t\t\t\t\t\t\tif (correctedChar == '-')\n\t\t\t\t\t\t\t\tuncorMismatchSimple++;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tuncorIndelSimple++;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ((correctedChar == '-') || (originalChar == '-'))\n\t\t\t\t\t\t\t\tintroducedIndelSimple++;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tintroducedMismatchSimple++;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// otHer repeat\n\t\t\t\tcase 'h':\n\t\t\t\t\tif (correctedChar == artificialChar && correctedChar == originalChar) {\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t} else if (correctedChar == originalChar) {\n\t\t\t\t\t\tif ((artificialChar == '-') || (correctedChar == '-'))\n\t\t\t\t\t\t\tcorIndelOther++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcorMismatchOther++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (correctedChar == artificialChar) {\n\t\t\t\t\t\t\tif (correctedChar == '-')\n\t\t\t\t\t\t\t\tuncorMismatchOther++;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tuncorIndelOther++;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ((correctedChar == '-') || (originalChar == '-'))\n\t\t\t\t\t\t\t\tintroducedIndelOther++;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tintroducedMismatchOther++;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// no repeat\n\t\t\t\tdefault:\n\t\t\t\t\tif (correctedChar == artificialChar && correctedChar == originalChar) {\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t} else if (correctedChar == originalChar) {\n\t\t\t\t\t\tif ((artificialChar == '-') || (correctedChar == '-'))\n\t\t\t\t\t\t\tcorIndelNoRepeat++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcorMismatchNoRepeat++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (correctedChar == artificialChar) {\n\t\t\t\t\t\t\tif (correctedChar == '-')\n\t\t\t\t\t\t\t\tuncorMismatchNoRepeat++;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tuncorIndelNoRepeat++;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ((correctedChar == '-') || (originalChar == '-'))\n\t\t\t\t\t\t\t\tintroducedIndelNoRepeat++;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tintroducedMismatchNoRepeat++;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n//\t\t\tSystem.out.println(\"repeat iterator after loop \"+repearIterator);\n\t\t} else {\n\n\t\t\tfor (int i = start; i <= (end - 1); i++) {\n\t\t\t\toriginalChar = Character.toLowerCase(alignmentResult.get(originalKey).charAt(i));\n\t\t\t\tartificialChar = Character.toLowerCase(alignmentResult.get(artificialKey).charAt(i));\n\t\t\t\tcorrectedChar = Character.toLowerCase(alignmentResult.get(correctedKey).charAt(i));\n\n\t\t\t\tif (correctedChar == artificialChar && correctedChar == originalChar) {\n\t\t\t\t\t// do nothing\n\t\t\t\t} else if (correctedChar == originalChar) {\n\t\t\t\t\tif ((artificialChar == '-') || (correctedChar == '-'))\n\t\t\t\t\t\tcorIndel++;\n\t\t\t\t\telse\n\t\t\t\t\t\tcorMismatch++;\n\t\t\t\t} else {\n\t\t\t\t\tif (correctedChar == artificialChar) {\n\t\t\t\t\t\tif (correctedChar == '-')\n\t\t\t\t\t\t\tuncorMismatch++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tuncorIndel++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((correctedChar == '-') || (originalChar == '-'))\n\t\t\t\t\t\t\tintroducedIndel++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tintroducedMismatch++;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\talignmentCompareResult.setStart(start);\n\t\talignmentCompareResult.setEnd(end);\n\n\t\talignmentCompareResult.setCorIndel(corIndel);\n\t\talignmentCompareResult.setCorMismatch(corMismatch);\n\t\talignmentCompareResult.setUncorIndel(uncorIndel);\n\t\talignmentCompareResult.setUncorMismatch(uncorMismatch);\n\t\talignmentCompareResult.setIntroducedIndel(introducedIndel);\n\t\talignmentCompareResult.setIntroducedMismatch(introducedMismatch);\n\n\t\talignmentCompareResult.setCorIndelNoRepeat(corIndelNoRepeat);\n\t\talignmentCompareResult.setCorMismatchNoRepeat(corMismatchNoRepeat);\n\t\talignmentCompareResult.setUncorMismatchNoRepeat(uncorMismatchNoRepeat);\n\t\talignmentCompareResult.setUncorIndelNoRepeat(uncorIndelNoRepeat);\n\t\talignmentCompareResult.setIntroducedIndelNoRepeat(introducedIndelNoRepeat);\n\t\talignmentCompareResult.setIntroducedMismatchNoRepeat(introducedMismatchNoRepeat);\n\n\t\talignmentCompareResult.setCorIndelSimple(corIndelSimple);\n\t\talignmentCompareResult.setCorMismatchSimple(corMismatchSimple);\n\t\talignmentCompareResult.setUncorIndelSimple(uncorIndelSimple);\n\t\talignmentCompareResult.setUncorMismatchSimple(uncorMismatchSimple);\n\t\talignmentCompareResult.setIntroducedIndelSimple(introducedIndelSimple);\n\t\talignmentCompareResult.setIntroducedMismatchSimple(introducedMismatchSimple);\n\n\t\talignmentCompareResult.setCorIndelOther(corIndelOther);\n\t\talignmentCompareResult.setCorMismatchOther(corMismatchOther);\n\t\talignmentCompareResult.setUncorIndelOther(uncorIndelOther);\n\t\talignmentCompareResult.setUncorMismatchOther(uncorMismatchOther);\n\t\talignmentCompareResult.setIntroducedIndelOther(introducedIndelOther);\n\t\talignmentCompareResult.setIntroducedMismatchOther(introducedMismatchOther);\n\n\t\treturn alignmentCompareResult;\n\n\t}",
"private static Map<String, List<List<String>>>[] splitYagoDataIntoDocumentSets(File yagoInputFile) {\r\n\t\tMap<String, List<List<String>>> trainData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testaData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testbData = new HashMap<String, List<List<String>>>();\r\n\t\t\r\n\t\tBufferedReader reader = FileUtil.getFileReader(yagoInputFile.getAbsolutePath());\r\n\t\ttry {\r\n\t\t\tString documentName = null;\r\n\t\t\tString documentSet = null;\r\n\t\t\tList<List<String>> documentLines = null;\r\n\t\t\tList<String> sentenceLines = null;\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tif (line.startsWith(\"-DOCSTART-\")) {\r\n\t\t\t\t\tif (documentSet != null) {\r\n\t\t\t\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString docId = line.substring(\"-DOCSTART- (\".length(), line.length() - 1);\r\n\t\t\t\t\tString[] docIdParts = docId.split(\" \");\r\n\t\t\t\t\tdocumentName = docIdParts[0] + \"_\" + docIdParts[1];\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (docIdParts[0].endsWith(\"testa\"))\r\n\t\t\t\t\t\tdocumentSet = \"testa\";\r\n\t\t\t\t\telse if (docIdParts[0].endsWith(\"testb\"))\r\n\t\t\t\t\t\tdocumentSet = \"testb\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tdocumentSet = \"train\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tdocumentLines = new ArrayList<List<String>>();\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else if (line.trim().length() == 0) {\r\n\t\t\t\t\tdocumentLines.add(sentenceLines);\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsentenceLines.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tMap<String, List<List<String>>>[] returnData = new HashMap[3];\r\n\t\treturnData[0] = trainData;\r\n\t\treturnData[1] = testaData;\r\n\t\treturnData[2] = testbData;\r\n\t\t\r\n\t\treturn returnData;\r\n\t}",
"public String[] createAlignmentStrings(List<CigarElement> cigar, String refSeq, String obsSeq, int totalReads) {\n\t\tStringBuilder aln1 = new StringBuilder(\"\");\n\t\tStringBuilder aln2 = new StringBuilder(\"\");\n\t\tint pos1 = 0;\n\t\tint pos2 = 0;\n\t\t\n\t\tfor (int i=0;i<cigar.size();i++) {\n\t\t//for (CigarElement ce: cigar) {\n\t\t\tCigarElement ce = cigar.get(i);\n\t\t\tint cel = ce.getLength();\n\n\t\t\tswitch(ce.getOperator()) {\n\t\t\t\tcase M:\n\t\t\t\t\taln1.append(refSeq.substring(pos1, pos1+cel));\n\t\t\t\t\taln2.append(obsSeq.substring(pos2, pos2+cel));\n\t\t\t\t\tpos1 += cel;\n\t\t\t\t\tpos2 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase N:\n\t\t\t\t\taln1.append(this.createString('-', cel));\n\t\t\t\t\taln2.append(this.createString('-', cel));\n\t\t\t\t\tpos1 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase S:\n\t\t\t\t\taln1.append(this.createString('S', cel));\n\t\t\t\t\taln2.append(this.createString('S', cel));\n\t\t\t\t\tpos2 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase I:\n\t\t\t\t\taln1.append(this.createString('-', cel));\n\t\t\t\t\taln2.append(obsSeq.substring(pos2, pos2+cel));\n\t\t\t\t\tpos2 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase D:\n\t\t\t\t\tif (i < cigar.size()-1) { \n\t\t\t\t\t\taln1.append(refSeq.substring(pos1, pos1+cel));\n\t\t\t\t\t\taln2.append(this.createString('-', cel));\n\t\t\t\t\t\tpos1 += cel;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase H:\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(String.format(\"Don't know how to handle this CIGAR tag: %s. Record %d\",ce.getOperator().toString(),totalReads));\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new String[]{aln1.toString(),aln2.toString()};\n\t\t\n\t}",
"@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 }",
"public static void main(String[] args) throws DocumentException, IOException {\n \t\n// // step 1\n// Document document = new Document();\n \n // step 1: creation of the document with a certain size and certain margins\n Document document = new Document(PageSize.A4, 50, 50, 50, 50);\n \n // step 2: create a writer (we have many type of writer, eg HtmlWriter, PdfWriter)\n PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(RESULT));\n \n /* step 3: BEFORE open the document we add some meta information to the document (that properties can be viewed with adobe reader or right click-properties)\n * they don't appear in the document view\n */\n document.addAuthor(\"Author Test\"); \n document.addSubject(\"This is the result of a Test.\"); \n \n // step 4\n document.open();\n \n //The com.itextpdf.text.Image is used to add images to IText PDF documents\n Image image1 = Image.getInstance(\"src/main/resources/sms.png\");\n document.add(image1);\n \n // step 5\n /*\n access at the content under the new pdf document just created (ie the writer object that i can control/move)\n PdfContentByte is the object that contains the text to write and the content of a page (it offer the methods to add content to a page)\n */\n PdfContentByte canvas = writer.getDirectContentUnder();\n \n //Sets the compression level to be used for streams written by the writer.\n writer.setCompressionLevel(0);\n canvas.saveState(); \n canvas.beginText(); \n //move the writer to tha X,Y position\n canvas.moveText(360, 788); \n canvas.setFontAndSize(BaseFont.createFont(), 12);\n \n Rectangle rectangle = new Rectangle(400, 300);\n rectangle.setBorder(2);\n document.add(rectangle);\n \n /* \n Writes something to the direct content using a convenience method\n A Phrase is a series of Chunks (A Chunk is the smallest significant part of text that can be added to a document)\n \n Conclusion: A chunk is a String with a certain Font ---> A Phrase is a series of Chunk\n Both Chunck and Font has a Font field (but if a Chunk haven't a Font uses the one of the Phrase that own it)\n */\n \n //------- Two modes to set a Phrase: --------\n \n //mode 1) set the phrase directly without a separate chunk object\n Phrase hello = new Phrase(\"Hello World3\");\n document.add(hello);\n \n //mode 2) create before a chunk, adjust it and after assign it to a Phrase(s) \n Chunk chunk2 = new Chunk(\"Setting the Font\", FontFactory.getFont(\"dar-black\"));\n chunk2.setUnderline(0.5f, -1.5f);\n \n Phrase p1 = new Phrase(chunk2);\n document.add(p1); \n \n canvas.showText(\"Hello sms\"); \n canvas.endText(); \n canvas.restoreState(); \n \n document.add(Chunk.NEWLINE);\n \n //i chunk posso aggiungerli solo tramite l'oggetto Document ?\n Chunk chunk = new Chunk(\"I'm a chunk\");\n chunk.setBackground(BaseColor.GRAY, 1f, 0.5f, 1f, 1.5f);\n document.add(chunk);\n \n /*\n * A Paragraph is a series of Chunks and/or Phrases, has the same qualities of a Phrase, but also some additional layout-parameters\n * A paragraph is a sub-section in the document. After each Paragraph a CRLF is added\n */\n Paragraph paragraph = new Paragraph(\"A:\\u00a0\");\n Chunk chunk1 = new Chunk(\"I'm a chunk1\");\n paragraph.add(chunk1);\n paragraph.setAlignment(Element.ALIGN_JUSTIFIED);\n document.add(paragraph);\n \n \n //----- Add a table to the document ------\n \n //A cell in a PdfPTable\n PdfPCell cell;\n \n PdfPTable table = new PdfPTable(2); //in argument vis the number of column\n table.setWidths(new int[]{ 1, 2 }); //the width of the first and second cell. The number of element in the array must be equal at the number of column\n \n table.addCell(\"Name:\");\n cell = new PdfPCell();\n //We can attach event at the cell\n //cell.setCellEvent(new TextFields(1));\n table.addCell(cell);\n \n table.addCell(\"Loginname:\");\n cell = new PdfPCell();\n //cell.setCellEvent(new TextFields(2));\n table.addCell(cell);\n \n table.addCell(\"Password:\");\n cell = new PdfPCell(); \n table.addCell(cell);\n \n table.addCell(\"Reason:\");\n cell = new PdfPCell(); \n cell.setFixedHeight(60);\n table.addCell(cell);\n \n document.add(table);\n \n //add an horizontal line\n LineSeparator ls = new LineSeparator(); \n ls.setLineWidth(0);\n document.add(new Chunk(ls));\n \n Anchor pdfRef = new Anchor(\"http://www.java2s.com\");\n document.add(pdfRef);\n \n // step 5\n document.close();\n }",
"@Test\n void adjectivesCommonList() {\n //boolean flag = false;\n NLPAnalyser np = new NLPAnalyser();\n List<CoreMap> sentences = np.nlpPipeline(\"RT This made my day good; glad @JeremyKappell is standing up against bad #ROC’s disgusting mayor. \"\n + \"Former TV meteorologist Jeremy Kappell suing real Mayor Lovely Warren\"\n + \"https://t.co/rJIV5SN9vB worst(Via NEWS 8 WROC)\");\n ArrayList<String> adj = np.adjectives(sentences);\n for (String common : np.getCommonWords()) {\n assertFalse(adj.contains(common));\n }\n }",
"public static void relprecision() throws IOException \n\t{\n\t \n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\eclipse64\\\\data\\\\labeled_titles.txt\");\n\t // File fFile = new File(\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelation\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL());\n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\t//trainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tList<String> statements= new ArrayList<String>() ;\n\t\tList<String> notstatements= new ArrayList<String>() ;\n\t\tDouble TPcount = 0.0 ; \n\t\tDouble FPcount = 0.0 ;\n\t\tDouble NonTPcount = 0.0 ;\n\t\tDouble TPcountTot = 0.0 ; \n\t\tDouble NonTPcountTot = 0.0 ;\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tif (title.contains(\"<YES>\") || title.contains(\"<TREAT>\") || title.contains(\"<DIS>\") || title.contains(\"</\"))\n\t\t\t{\n\t\t\t\n\t\t\t\tBoolean TP = false ; \n\t\t\t\tBoolean NonTP = false ;\n\t if (title.contains(\"<YES>\") && title.contains(\"</YES>\"))\n\t {\n\t \t TP = true ; \n\t \t TPcountTot++ ; \n\t \t \n\t }\n\t else\n\t {\n\t \t NonTP = true ; \n\t \t NonTPcountTot++ ; \n\t }\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\ttitle = title.replaceAll(\"<YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<DIS>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</DIS>\", \" \") ;\n\t\t\t\ttitle = title.toLowerCase() ;\n\t\n\t\t\t\tcount++ ; \n\t\n\t\t\t\t// get the goldstandard concepts for current title \n\t\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\t\n\t\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\t\n\t\t\t\t// get the concepts \n\t\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\t\n\t\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,dataset.FILE_NAME_Patterns) ;\n\t\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t\t{\n\t\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelationdisc\") ;\n\t\t\t\t\t\n\t\t\t if (TP )\n\t\t\t {\n\t\t\t \t TPcount++ ; \n\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \t FPcount++ ; \n\t\t\t }\n\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t notstatements.add(title) ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}",
"@Test\r\n public void testToBeOrNotToBe() throws IOException {\r\n System.out.println(\"testing 'To be or not to be' variations\");\r\n String[] sentences = new String[]{\r\n \"to be or not to be\", // correct sentence\r\n \"to ben or not to be\",\r\n \"ro be ot not to be\",\r\n \"to be or nod to bee\"};\r\n\r\n CorpusReader cr = new CorpusReader();\r\n ConfusionMatrixReader cmr = new ConfusionMatrixReader();\r\n SpellCorrector sc = new SpellCorrector(cr, cmr);\r\n for (String s : sentences) {\r\n String output = sc.correctPhrase(s);\r\n System.out.println(String.format(\"Input \\\"%0$s\\\" returned \\\"%1$s\\\"\", s, output));\r\n collector.checkThat(\"input sentence: \" + s + \". \", \"to be or not to be\", IsEqual.equalTo(output));\r\n }\r\n }",
"private void createDocs() {\n\t\t\n\t\tArrayList<Document> docs=new ArrayList<>();\n\t\tString foldername=\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\input\";\n\t\tFile folder=new File(foldername);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tfor (File file : listOfFiles) {\n\t\t\ttry {\n\t\t\t\tFileInputStream fisTargetFile = new FileInputStream(new File(foldername+\"\\\\\"+file.getName()));\n\t\t\t\tString fileContents = IOUtils.toString(fisTargetFile, \"UTF-8\");\n\t\t\t\tString[] text=fileContents.split(\"ParseText::\");\n\t\t\t\tif(text.length>1){\n\t\t\t\t\tString snippet=text[1].trim().length()>100 ? text[1].trim().substring(0, 100): text[1].trim();\n\t\t\t\t\tDocument doc=new Document();\n\t\t\t\t\tdoc.setFileName(file.getName().replace(\".txt\", \"\"));\n\t\t\t\t\tdoc.setUrl(text[0].split(\"URL::\")[1].trim());\n\t\t\t\t\tdoc.setText(snippet+\"...\");\n\t\t\t\t\tdocs.add(doc);\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\t\n\t\tDBUtil.insertDocs(docs);\n\t}",
"public static void main(String[] args) {\n String input_one = \"Fourscore and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battlefield of that war. We have come to dedicate a portion of that field as a final resting-place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we cannot dedicate — we cannot consecrate — we cannot hallow — this ground. The brave men, living and dead, who struggled here have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us — that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion — that we here highly resolve that these dead shall not have died in vain — that this nation shall have a new birth of freedom and that government of the people, by the people, for the people, shall not perish from the earth.\";\r\n String input_two = \"Oh, say can you see, by the dawn's early light,What so proudly we hailed at the twilight's last gleaming?Whose broad stripes and brightstars,through the perilous fight,O'er the ramparts we watched, were so gallantly streaming?And the rockets' red glare, the bombs bursting in air,Gave proof through the night that our flag was still there.O say, does that star-spangled banner yet waveO'er the land of the free and the home of the brave?On the shore, dimly seen through the mists of the deep,Wherethe foe's haughty host in dread silence reposes,What isthatwhichthe breeze, o'er the towering steep,As it fitfully blows, now conceals, now discloses?Now it catches the gleam of the morning's first beam,In full glory reflected now shines on the stream:'Tis the starspangled banner! O long may it waveO'er the land of the free and the home of the brave. And where is that band who so vauntingly swore That the havoc of war and the battle's confusionA home and a country should leaveus no more?Their blood has wiped out their foulfootstep'spollution.Norefuge could save the hireling and slaveFrom the terror of flight, or the gloom of the grave:And the star-spangled banner in triumph doth waveO'er theland of the free and the home of the brave.Oh! thus be it ever, when freemen shall stand Between their loved homes and the war's desolation!Blest with victory and peace, may the heaven-rescued land Praise the Power that hath made and preserved us a nation.Then conquer we must, for our cause it is just,And this be our motto: In God is our trust. And the star-spangled banner forever shall waveO'er the land of the free and the home of \";\r\n\r\n String input_upper = input_one.toUpperCase();\r\n String input_upper2 = input_two.toUpperCase();\r\n // System.out.println(input_upper);\r\n String[] pattern = { \"FREE\", \"BRAVE\", \"NATION\" };\r\n // Brute Force algorithm\r\n System.out.println();\r\n System.out.println(\"**************************** OUTPUT OF FIRST INPUT FILE: *****************************\");\r\n System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBRUTE FORCE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BF_Search bf = new BF_Search();\r\n long bf_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n bf.brute_force_search(input_upper, pattern[i]);\r\n }\r\n long bf_endTime = System.nanoTime();\r\n bf.printBF_Comparison();\r\n System.out.println(\"It took: \" + (bf_endTime - bf_startTime) + \" nanoseconds\");\r\n\r\n // Knuth Moris Pratt algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tKNUTH MORIS PRATT ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n KMP_Search kmp = new KMP_Search();\r\n long kmp_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n kmp.KMPSearch(pattern[i], input_upper);\r\n if (i == pattern.length - 1) {\r\n kmp.printKM_Comparisons();\r\n }\r\n }\r\n long kmp_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (kmp_endTime - kmp_startTime) + \" nanoseconds\");\r\n\r\n // Boyer Moore algorithm\r\n System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBOYER MOORE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BM_Search bm = new BM_Search();\r\n char[] bm_input = input_upper.toCharArray();\r\n char[] bm_pattern = new char[] {};\r\n long bm_startTime = System.nanoTime();\r\n for (String i : pattern) {\r\n bm_pattern = i.toCharArray();\r\n bm.bm_search(bm_input, bm_pattern);\r\n if (pattern[pattern.length - 1] == i) {\r\n bm.printBM_Comparison();\r\n }\r\n }\r\n long bm_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (bm_endTime - bm_startTime) + \" nanoseconds\");\r\n\r\n // Rabin Karp algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tRABIN KARP ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n RKA_Search rk = new RKA_Search();\r\n int q = 101;\r\n long rk_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n rk.rka_search(pattern[i], input_upper, q);\r\n if (i == pattern.length - 1) {\r\n rk.printRKA_Comparison();\r\n }\r\n }\r\n long rk_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (rk_endTime - rk_startTime) + \" nanoseconds\");\r\n System.out.println();\r\n System.out.println(\"************************* OUTPUT OF SECOND INPUT FILE: *******************************\");\r\n // Brute Force algorithm\r\n System.out.println();\r\n // System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBRUTE FORCE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BF_Search bf2 = new BF_Search();\r\n long bf_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n bf.brute_force_search(input_upper2, pattern[i]);\r\n }\r\n long bf_endTime2 = System.nanoTime();\r\n bf2.printBF_Comparison();\r\n System.out.println(\"It took: \" + (bf_endTime2 - bf_startTime1) + \" nanoseconds\");\r\n\r\n // Knuth Moris Pratt algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tKNUTH MORIS PRATT ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n KMP_Search kmp2 = new KMP_Search();\r\n long kmp_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n kmp2.KMPSearch(pattern[i], input_upper2);\r\n if (i == pattern.length - 1) {\r\n kmp2.printKM_Comparisons();\r\n }\r\n }\r\n long kmp_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (kmp_endTime2 - kmp_startTime1) + \" nanoseconds\");\r\n\r\n // Boyer Moore algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tBOYER MOORE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BM_Search bm2 = new BM_Search();\r\n char[] bm_input2 = input_upper.toCharArray();\r\n char[] bm_pattern2 = new char[] {};\r\n long bm_startTime1 = System.nanoTime();\r\n for (String i : pattern) {\r\n bm_pattern2 = i.toCharArray();\r\n bm.bm_search(bm_input2, bm_pattern2);\r\n if (pattern[pattern.length - 1] == i) {\r\n bm2.printBM_Comparison();\r\n }\r\n }\r\n long bm_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (bm_endTime2 - bm_startTime1) + \" nanoseconds\");\r\n\r\n // Rabin Karp algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tRABIN KARP ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n RKA_Search rk2 = new RKA_Search();\r\n int q2 = 101;\r\n long rk_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n rk2.rka_search(pattern[i], input_upper2, q2);\r\n if (i == pattern.length - 1) {\r\n rk2.printRKA_Comparison();\r\n }\r\n }\r\n long rk_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (rk_endTime2 - rk_startTime1) + \" nanoseconds\");\r\n }",
"@Test\n\tpublic void testRealWorldCase_uc010nov_3() throws InvalidGenomeChange {\n\t\tthis.builderForward = TranscriptModelFactory\n\t\t\t\t.parseKnownGenesLine(\n\t\t\t\t\t\trefDict,\n\t\t\t\t\t\t\"uc010nov.3\tchrX\t+\t103031438\t103047547\t103031923\t103045526\t8\t103031438,103031780,103040510,103041393,103042726,103043365,103044261,103045454,\t103031575,103031927,103040697,103041655,103042895,103043439,103044327,103047547,\tP60201\tuc010nov.3\");\n\t\tthis.builderForward\n\t\t.setSequence(\"atggcttctcacgcttgtgctgcatatcccacaccaattagacccaaggatcagttggaagtttccaggacatcttcattttatttccaccctcaatccacatttccagatgtctctgcagcaaagcgaaattccaggagaagaggacaaagatactcagagagaaaaagtaaaagaccgaagaaggaggctggagagaccaggatccttccagctgaacaaagtcagccacaaagcagactagccagccggctacaattggagtcagagtcccaaagacatgggcttgttagagtgctgtgcaagatgtctggtaggggccccctttgcttccctggtggccactggattgtgtttctttggggtggcactgttctgtggctgtggacatgaagccctcactggcacagaaaagctaattgagacctatttctccaaaaactaccaagactatgagtatctcatcaatgtgatccatgccttccagtatgtcatctatggaactgcctctttcttcttcctttatggggccctcctgctggctgagggcttctacaccaccggcgcagtcaggcagatctttggcgactacaagaccaccatctgcggcaagggcctgagcgcaacggtaacagggggccagaaggggaggggttccagaggccaacatcaagctcattctttggagcgggtgtgtcattgtttgggaaaatggctaggacatcccgacaagtttgtgggcatcacctatgccctgaccgttgtgtggctcctggtgtttgcctgctctgctgtgcctgtgtacatttacttcaacacctggaccacctgccagtctattgccttccccagcaagacctctgccagtataggcagtctctgtgctgatgccagaatgtatggtgttctcccatggaatgctttccctggcaaggtttgtggctccaaccttctgtccatctgcaaaacagctgagttccaaatgaccttccacctgtttattgctgcatttgtgggggctgcagctacactggtttccctgctcaccttcatgattgctgccacttacaactttgccgtccttaaactcatgggccgaggcaccaagttctgatcccccgtagaaatccccctttctctaatagcgaggctctaaccacacagcctacaatgctgcgtctcccatcttaactctttgcctttgccaccaactggccctcttcttacttgatgagtgtaacaagaaaggagagtcttgcagtgattaaggtctctctttggactctcccctcttatgtacctcttttagtcattttgcttcatagctggttcctgctagaaatgggaaatgcctaagaagatgacttcccaactgcaagtcacaaaggaatggaggctctaattgaattttcaagcatctcctgaggatcagaaagtaatttcttctcaaagggtacttccactgatggaaacaaagtggaaggaaagatgctcaggtacagagaaggaatgtctttggtcctcttgccatctataggggccaaatatattctctttggtgtacaaaatggaattcattctggtctctctattaccactgaagatagaagaaaaaagaatgtcagaaaaacaataagagcgtttgcccaaatctgcctattgcagctgggagaagggggtcaaagcaaggatctttcacccacagaaagagagcactgaccccgatggcgatggactactgaagccctaactcagccaaccttacttacagcataagggagcgtagaatctgtgtagacgaagggggcatctggccttacacctcgttagggaagagaaacagggtgttgtcagcatcttctcactcccttctccttgataacagctaccatgacaaccctgtggtttccaaggagctgagaatagaaggaaactagcttacatgagaacagactggcctgaggagcagcagttgctggtggctaatggtgtaacctgagatggccctctggtagacacaggatagataactctttggatagcatgtctttttttctgttaattagttgtgtactctggcctctgtcatatcttcacaatggtgctcatttcatgggggtattatccattcagtcatcgtaggtgatttgaaggtcttgatttgttttagaatgatgcacatttcatgtattccagtttgtttattacttatttggggttgcatcagaaatgtctggagaataattctttgattatgactgttttttaaactaggaaaattggacattaagcatcacaaatgatattaaaaattggctagttgaatctattgggattttctacaagtattctgcctttgcagaaacagatttggtgaatttgaatctcaatttgagtaatctgatcgttctttctagctaatggaaaatgattttacttagcaatgttatcttggtgtgttaagagttaggtttaacataaaggttattttctcctgatatagatcacataacagaatgcaccagtcatcagctattcagttggtaagcttccaggaaaaaggacaggcagaaagagtttgagacctgaatagctcccagatttcagtcttttcctgtttttgttaactttgggttaaaaaaaaaaaaagtctgattggttttaattgaaggaaagatttgtactacagttcttttgttgtaaagagttgtgttgttcttttcccccaaagtggtttcagcaatatttaaggagatgtaagagctttacaaaaagacacttgatacttgttttcaaaccagtatacaagataagcttccaggctgcatagaaggaggagagggaaaatgttttgtaagaaaccaatcaagataaaggacagtgaagtaatccgtaccttgtgttttgttttgatttaataacataacaaataaccaacccttccctgaaaacctcacatgcatacatacacatatatacacacacaaagagagttaatcaactgaaagtgtttccttcatttctgatatagaattgcaattttaacacacataaaggataaacttttagaaacttatcttacaaagtgtattttataaaattaaagaaaataaaattaagaatgttctcaatcaaaaaaaaaaaaaaa\"\n\t\t\t\t.toUpperCase());\n\t\tthis.builderForward.setGeneSymbol(\"PLP1\");\n\t\tthis.infoForward = builderForward.build();\n\t\t// RefSeq NM_001128834.1\n\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', refDict.contigID.get(\"X\"), 103041655,\n\t\t\t\tPositionType.ONE_BASED), \"GGTGATC\", \"A\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.453_453+6delinsA\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.=\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION, VariantType.SPLICE_DONOR),\n\t\t\t\tannotation1.effects);\n\t}",
"public String buildSentence() {\n\t\tSentence sentence = new Sentence();\n\t\t\n\t\t//\tLaunch calls to all child services, using Observables \n\t\t//\tto handle the responses from each one:\n\t\tList<Observable<Word>> observables = createObservables();\n\t\t\n\t\t//\tUse a CountDownLatch to detect when ALL of the calls are complete:\n\t\tCountDownLatch latch = new CountDownLatch(observables.size());\n\t\t\n\t\t//\tMerge the 5 observables into one, so we can add a common subscriber:\n\t\tObservable.merge(observables)\n\t\t\t.subscribe(\n\t\t\t\t//\t(Lambda) When each service call is complete, contribute its word\n\t\t\t\t//\tto the sentence, and decrement the CountDownLatch:\n\t\t\t\t(word) -> {\n\t\t\t\t\tsentence.add(word);\n\t\t\t\t\tlatch.countDown();\n\t\t }\n\t\t);\n\t\t\n\t\t//\tThis code will wait until the LAST service call is complete:\n\t\twaitForAll(latch);\n\n\t\t//\tReturn the completed sentence:\n\t\treturn sentence.toString();\n\t}",
"@Test\n\tpublic void testRealWorldCase_uc011ayb_2() throws InvalidGenomeChange {\n\t\tthis.builderForward = TranscriptModelFactory\n\t\t\t\t.parseKnownGenesLine(\n\t\t\t\t\t\trefDict,\n\t\t\t\t\t\t\"uc011ayb.2\tchr3\t+\t37034840\t37092337\t37055968\t37092144\t18\t37034840,37042445,37045891,37048481,37050304,37053310,37053501,37055922,37058996,37061800,37067127,37070274,37081676,37083758,37089009,37090007,37090394,37091976,\t37035154,37042544,37045965,37048554,37050396,37053353,37053590,37056035,37059090,37061954,37067498,37070423,37081785,37083822,37089174,37090100,37090508,37092337,\tNP_001245203\tuc011ayb.2\");\n\t\tthis.builderForward\n\t\t.setSequence(\"gaagagacccagcaacccacagagttgagaaatttgactggcattcaagctgtccaatcaatagctgccgctgaagggtggggctggatggcgtaagctacagctgaaggaagaacgtgagcacgaggcactgaggtgattggctgaaggcacttccgttgagcatctagacgtttccttggctcttctggcgccaaaatgtcgttcgtggcaggggttattcggcggctggacgagacagtggtgaaccgcatcgcggcgggggaagttatccagcggccagctaatgctatcaaagagatgattgagaactgaaagaagatctggatattgtatgtgaaaggttcactactagtaaactgcagtcctttgaggatttagccagtatttctacctatggctttcgaggtgaggctttggccagcataagccatgtggctcatgttactattacaacgaaaacagctgatggaaagtgtgcatacagagcaagttactcagatggaaaactgaaagcccctcctaaaccatgtgctggcaatcaagggacccagatcacggtggaggaccttttttacaacatagccacgaggagaaaagctttaaaaaatccaagtgaagaatatgggaaaattttggaagttgttggcaggtattcagtacacaatgcaggcattagtttctcagttaaaaaacaaggagagacagtagctgatgttaggacactacccaatgcctcaaccgtggacaatattcgctccatctttggaaatgctgttagtcgagaactgatagaaattggatgtgaggataaaaccctagccttcaaaatgaatggttacatatccaatgcaaactactcagtgaagaagtgcatcttcttactcttcatcaaccatcgtctggtagaatcaacttccttgagaaaagccatagaaacagtgtatgcagcctatttgcccaaaaacacacacccattcctgtacctcagtttagaaatcagtccccagaatgtggatgttaatgtgcaccccacaaagcatgaagttcacttcctgcacgaggagagcatcctggagcgggtgcagcagcacatcgagagcaagctcctgggctccaattcctccaggatgtacttcacccagactttgctaccaggacttgctggcccctctggggagatggttaaatccacaacaagtctgacctcgtcttctacttctggaagtagtgataaggtctatgcccaccagatggttcgtacagattcccgggaacagaagcttgatgcatttctgcagcctctgagcaaacccctgtccagtcagccccaggccattgtcacagaggataagacagatatttctagtggcagggctaggcagcaagatgaggagatgcttgaactcccagcccctgctgaagtggctgccaaaaatcagagcttggagggggatacaacaaaggggacttcagaaatgtcagagaagagaggacctacttccagcaaccccagaaagagacatcgggaagattctgatgtggaaatggtggaagatgattcccgaaaggaaatgactgcagcttgtaccccccggagaaggatcattaacctcactagtgttttgagtctccaggaagaaattaatgagcagggacatgaggttctccgggagatgttgcataaccactccttcgtgggctgtgtgaatcctcagtgggccttggcacagcatcaaaccaagttataccttctcaacaccaccaagcttagtgaagaactgttctaccagatactcatttatgattttgccaattttggtgttctcaggttatcggagccagcaccgctctttgaccttgccatgcttgccttagatagtccagagagtggctggacagaggaagatggtcccaaagaaggacttgctgaatacattgttgagtttctgaagaagaaggctgagatgcttgcagactatttctctttggaaattgatgaggaagggaacctgattggattaccccttctgattgacaactatgtgccccctttggagggactgcctatcttcattcttcgactagccactgaggtgaattgggacgaagaaaaggaatgttttgaaagcctcagtaaagaatgcgctatgttctattccatccggaagcagtacatatctgaggagtcgaccctctcaggccagcagagtgaagtgcctggctccattccaaactcctggaagtggactgtggaacacattgtctataaagccttgcgctcacacattctgcctcctaaacatttcacagaagatggaaatatcctgcagcttgctaacctgcctgatctatacaaagtctttgagaggtgttaaatatggttatttatgcactgtgggatgtgttcttctttctctgtattccgatacaaagtgttgtatcaaagtgtgatatacaaagtgtaccaacataagtgttggtagcacttaagacttatacttgccttctgatagtattcctttatacacagtggattgattataaataaatagatgtgtcttaacataaaaaaaaaaaaaaaaaa\"\n\t\t\t\t.toUpperCase());\n\t\tthis.builderForward.setGeneSymbol(\"NP_001245203\");\n\t\tthis.infoForward = builderForward.build();\n\t\t// RefSeq NM_001258273\n\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 3, 37090097, PositionType.ONE_BASED),\n\t\t\t\t\"TGAGG\", \"C\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.1263_1266+1delinsC\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Glu422del\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION, VariantType.SPLICE_DONOR),\n\t\t\t\tannotation1.effects);\n\t}",
"public void docDataPreProcess(String xmlFileDir) throws Exception {\n XmlFileCollection corpus = new XmlFileCollection(xmlFileDir);\n\n // Load stopword list and initiate the StopWordRemover and WordNormalizer\n StopwordRemover stopwordRemover = new StopwordRemover();\n WordNormalizer wordNormalizer = new WordNormalizer();\n\n // initiate the BufferedWriter to output result\n FilePathGenerator fpg = new FilePathGenerator(\"result.txt\");\n String path = fpg.getPath();\n\n FileWriter fileWriter = new FileWriter(path, true); // Path.ResultAssignment1\n Map<String, String> curr_docs = corpus.nextDoc(); // doc_id:doc_content pairs\n Set<String> doc_ids = curr_docs.keySet();\n for (String doc_id : doc_ids){\n // load doc content\n char[] content = curr_docs.get(doc_id).toCharArray();\n // write doc_id into the result file\n fileWriter.append(doc_id + \"\\n\");\n\n // initiate a word object to hold a word\n char[] word = null;\n\n // initiate the WordTokenizer\n WordTokenizer tokenizer = new WordTokenizer(content);\n\n // process the doc word by word iteratively\n while ((word = tokenizer.nextWord()) != null){\n word = wordNormalizer.lowercase(word);\n// if (word.length == 1 && Character.isAlphabetic(word[0])){\n// continue;\n// }\n String wordStr = String.valueOf(word);\n // write only non-stopword into result file\n if (!stopwordRemover.isStopword(wordStr)){\n// fileWriter.append(wordNormalizer.toStem(word) + \" \");\n fileWriter.append(wordStr).append(\" \");\n }\n }\n fileWriter.append(\"\\n\");\n }\n fileWriter.close();\n }",
"public static void buildTestData() throws IOException {\n\t\tString negativePath = \"./corpus/20ng-test-all-terms.txt\";\n\t\tString positivePath = \"./corpus/r8-test-all-terms.txt\";\n\t\tString fileout = \"./corpus/testData\";\n\t\tFileReader fr1 = new FileReader(negativePath);\n\t\tFileReader fr2 = new FileReader(positivePath);\n\t\tFileWriter fw = new FileWriter(fileout);\n\t\tBufferedReader br1 = new BufferedReader(fr1);\n\t\tBufferedReader br2 = new BufferedReader(fr2);\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tHashtable<String, Integer> map = new Hashtable<String, Integer>();\n\t\tString readoneline;\n\t\twhile (((readoneline = br1.readLine()) != null)) {\n\t\t\tint pos = readoneline.indexOf(\"\\t\");\n\t\t\tString topic = readoneline.substring(0, pos);\n\t\t\tString content = readoneline.substring(pos + 1);\n\n\t\t\tif (!map.containsKey(topic)) {\n\t\t\t\tmap.put(topic, new Integer(1));\n\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbw.write(\"-1\\t\" + result.toString());\n\t\t\t\tbw.newLine();\n\t\t\t} else {\n\t\t\t\tInteger num = map.get(topic);\n\t\t\t\tif (num < 30) {\n\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbw.write(\"-1\\t\" + result.toString());\n\t\t\t\t\tbw.newLine();\n\t\t\t\t\tmap.put(topic, num + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twhile (((readoneline = br2.readLine()) != null)) {\n\t\t\tint pos = readoneline.indexOf(\"\\t\");\n\t\t\tString topic = readoneline.substring(0, pos);\n\t\t\tString content = readoneline.substring(pos + 1);\n\t\t\tif (topic.equals(\"acq\") || topic.equals(\"earn\")\n\t\t\t\t\t|| topic.equals(\"money-fx\") || topic.equals(\"trade\")\n\t\t\t\t\t|| topic.equals(\"interest\")) {\n\t\t\t\tif (!map.containsKey(topic)) {\n\t\t\t\t\tmap.put(topic, new Integer(1));\n\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbw.write(\"1\\t\" + result.toString());\n\t\t\t\t\tbw.newLine();\n\t\t\t\t} else {\n\t\t\t\t\tInteger num = map.get(topic);\n\t\t\t\t\tif (topic.equals(\"acq\") && num < 200) {\n\t\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbw.write(\"1\\t\" + result.toString());\n\t\t\t\t\t\tbw.newLine();\n\t\t\t\t\t\tmap.put(topic, num + 1);\n\t\t\t\t\t} else if (topic.equals(\"earn\") && num < 350) {\n\t\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbw.write(\"1\\t\" + result.toString());\n\t\t\t\t\t\tbw.newLine();\n\t\t\t\t\t\tmap.put(topic, num + 1);\n\t\t\t\t\t} else if (topic.equals(\"money-fx\") && num < 80) {\n\t\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbw.write(\"1\\t\" + result.toString());\n\t\t\t\t\t\tbw.newLine();\n\t\t\t\t\t\tmap.put(topic, num + 1);\n\t\t\t\t\t} else if (topic.equals(\"trade\") && num < 80) {\n\t\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbw.write(\"1\\t\" + result.toString());\n\t\t\t\t\t\tbw.newLine();\n\t\t\t\t\t\tmap.put(topic, num + 1);\n\t\t\t\t\t} else if (topic.equals(\"interest\") && num < 50) {\n\t\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbw.write(\"1\\t\" + result.toString());\n\t\t\t\t\t\tbw.newLine();\n\t\t\t\t\t\tmap.put(topic, num + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbw.flush();\n\t\tbr1.close();\n\t\tbw.close();\n\t\tfw.close();\n\n\t}",
"public GIZAWordAlignment(String f2e_line1, String f2e_line2,\n String f2e_line3, String e2f_line1, String e2f_line2, String e2f_line3)\n throws IOException {\n init(f2e_line1, f2e_line2, f2e_line3, e2f_line1, e2f_line2, e2f_line3);\n }",
"public void implementPredicts(RevisionDocument doc) {\n\n\t}",
"public void calculate(Set<Article> articles) {\n \n Set<ArticleDocument> articleDocuments = new HashSet<>();\n for (Article article : articles) {\n articleDocuments.add(article.getDocument());\n }\n \n VSMDocument positiveWords = new TextDocument(\"positive_words.txt\");\n VSMDocument negativeWords = new TextDocument(\"negative_words.txt\");\n \n ArrayList<VSMDocument> documents = new ArrayList<VSMDocument>();\n documents.add(positiveWords);\n documents.add(negativeWords);\n documents.addAll(articleDocuments);\n \n Corpus corpus = new Corpus(documents);\n \n VectorSpaceModel vectorSpace = new VectorSpaceModel(corpus);\n \n double totalPositive = 0;\n double totalNegative = 0;\n \n \n for(ArticleDocument articleDoc : articleDocuments) {\n VSMDocument doc = (VSMDocument) articleDoc;\n System.out.println(\"\\nComparing to \" + doc);\n double positive = vectorSpace.cosineSimilarity(positiveWords, doc);\n double negative = vectorSpace.cosineSimilarity(negativeWords, doc);\n System.out.println(\"Positive: \" + positive);\n System.out.println(\"Negative: \" + negative);\n if (!Double.isNaN(positive)) {\n totalPositive += positive;\n }\n if (!Double.isNaN(negative)) {\n totalNegative += negative;\n }\n double difference = positive - negative;\n if (difference >= 0) {\n System.out.println(\"More positive by \" + difference);\n } else {\n System.out.println(\"More negative by \" + Math.abs(difference));\n }\n \n if (positive >= mostPositive) {\n mostPositive = positive;\n mostPositiveDoc = doc;\n }\n if (negative >= mostNegative) {\n mostNegative = negative;\n mostNegativeDoc = doc;\n }\n if (Math.abs(difference) >= Math.abs(biggestDifference)) {\n biggestDifference = difference;\n biggestDifferenceDoc = doc;\n }\n \n String publisher = articleDoc.getPublisher();\n String region = articleDoc.getRegion();\n LocalDate day = articleDoc.getDate().toLocalDate();\n DayOfWeek weekday = day.getDayOfWeek();\n if (!Double.isNaN(positive)) {\n if (publisherOptimism.containsKey(publisher)) {\n publisherOptimism.get(publisher).add(positive);\n } else {\n publisherOptimism.put(publisher, new LinkedList<Double>());\n publisherOptimism.get(publisher).add(positive);\n }\n \n if (publisherPessimism.containsKey(publisher)) {\n publisherPessimism.get(publisher).add(negative);\n } else {\n publisherPessimism.put(publisher, new LinkedList<Double>());\n publisherPessimism.get(publisher).add(negative);\n }\n \n if (regionOptimism.containsKey(region)) {\n regionOptimism.get(region).add(positive);\n } else {\n regionOptimism.put(region, new LinkedList<Double>());\n regionOptimism.get(region).add(positive);\n }\n \n if (regionPessimism.containsKey(region)) {\n regionPessimism.get(region).add(negative);\n } else {\n regionPessimism.put(region, new LinkedList<Double>());\n regionPessimism.get(region).add(negative);\n }\n \n if (dayOptimism.containsKey(day)) {\n dayOptimism.get(day).add(positive);\n } else {\n dayOptimism.put(day, new LinkedList<Double>());\n dayOptimism.get(day).add(positive);\n }\n \n if (dayPessimism.containsKey(day)) {\n dayPessimism.get(day).add(negative);\n } else {\n dayPessimism.put(day, new LinkedList<Double>());\n dayPessimism.get(day).add(negative);\n }\n \n if (weekdayOptimism.containsKey(weekday)) {\n weekdayOptimism.get(weekday).add(positive);\n } else {\n weekdayOptimism.put(weekday, new LinkedList<Double>());\n weekdayOptimism.get(weekday).add(positive);\n }\n \n if (weekdayPessimism.containsKey(weekday)) {\n weekdayPessimism.get(weekday).add(negative);\n } else {\n weekdayPessimism.put(weekday, new LinkedList<Double>());\n weekdayPessimism.get(weekday).add(negative);\n }\n }\n }\n \n size = articleDocuments.size();\n avgPositive = totalPositive / size;\n avgNegative = totalNegative / size;\n printInfo();\n }",
"public static void main(String[] args) throws IOException {\n\t String FinalContigWritePath=args[0];\n\t\tString ContigAfterPath=args[1];\n\t\tString ContigSPAdesPath=args[2];\n\t\tString MUMmerFile1=args[3];\n\t\tString MUMmerFile2=args[4];\n\t\tint SizeOfContigAfter=CommonClass.getFileLines(ContigAfterPath)/2;\n\t String ContigSetAfterArray[]=new String[SizeOfContigAfter];\n\t int RealSizeOfContigSetAfter=CommonClass.FastaToArray(ContigAfterPath,ContigSetAfterArray); \n\t System.out.println(\"The real size of ContigSetAfter is:\"+RealSizeOfContigSetAfter);\n\t\t//low.\n\t\tint SizeOfContigSPAdes=CommonClass.getFileLines(ContigSPAdesPath);\n\t String ContigSetSPAdesArray[]=new String[SizeOfContigSPAdes+1];\n\t int RealSizeOfContigSetSPAdes=CommonClass.FastaToArray(ContigSPAdesPath,ContigSetSPAdesArray); \n\t System.out.println(\"The real size of ContigSetSPAdes is:\"+RealSizeOfContigSetSPAdes);\n\t\t//Loading After.\n\t\tint LoadingContigAfterCount=0;\n\t\tString LoadingContigAfterArray[]=new String[RealSizeOfContigSetAfter]; \n\t\tfor(int r=0;r<RealSizeOfContigSetAfter;r++)\n\t\t{\n\t\t\t if(ContigSetAfterArray[r].length()>=64)\n\t\t\t {\n\t\t\t\t LoadingContigAfterArray[LoadingContigAfterCount++]=ContigSetAfterArray[r];\n\t\t\t }\n\t\t}\n\t\tSystem.out.println(\"File After loading process end!\");\n\t\t//Alignment1.\n\t\tint SizeOfMUMmerFile1 = CommonClass.getFileLines(MUMmerFile1);\n\t\tString MUMerArray1[] = new String[SizeOfMUMmerFile1];\n\t\tint RealSizeMUMmer1 = CommonClass.FileToArray(MUMmerFile1, MUMerArray1);\n\t\tSystem.out.println(\"The real size of MUMmer1 is:\" + RealSizeMUMmer1);\n\t\t//Alignment.\n\t\tint SizeOfMUMmerFile2 = CommonClass.getFileLines(MUMmerFile2);\n\t\tString MUMerArray2[] = new String[SizeOfMUMmerFile2];\n\t\tint RealSizeMUMmer2 = CommonClass.FileToArray(MUMmerFile2, MUMerArray2);\n\t\tSystem.out.println(\"The real size of MUMmer2 is:\" + RealSizeMUMmer2);\n\t\t//Get ID1.\n\t\tSet<Integer> hashSet = new HashSet<Integer>();\n\t\tfor(int f=4;f<RealSizeMUMmer1;f++)\n\t\t{\n\t\t\tString[] SplitLine1 = MUMerArray1[f].split(\"\\t|\\\\s+\");\n\t\t\tif(SplitLine1.length==14 && (SplitLine1[13].equals(\"[CONTAINS]\") || SplitLine1[13].equals(\"[BEGIN]\") || SplitLine1[13].equals(\"[END]\")))\n\t\t\t{\n\t\t\t\tString[] SplitLine2 = SplitLine1[11].split(\"_\");\n\t\t\t\tint SPAdes_id = Integer.parseInt(SplitLine2[1]);\n\t\t\t\thashSet.add(SPAdes_id);\n\t\t\t}\n\t\t}\n\t\t//Get ID2.\n\t\tfor(int g=4;g<RealSizeMUMmer2;g++)\n\t\t{\n\t\t\tString[] SplitLine11 = MUMerArray2[g].split(\"\\t|\\\\s+\");\n\t\t\tString[] SplitLine12 = SplitLine11[12].split(\"_\");\n\t\t\tint SPAdes_id = Integer.parseInt(SplitLine12[1]);\n\t\t\thashSet.add(SPAdes_id);\n\t\t}\n\t //Write.\n\t\tint LineNum1=0;\n\t for(int x=0;x<LoadingContigAfterCount;x++)\n\t {\n\t\t\t FileWriter writer1= new FileWriter(FinalContigWritePath+\"contig.AfterMerge.fa\",true);\n\t writer1.write(\">\"+(LineNum1++)+\":\"+LoadingContigAfterArray[x].length()+\"\\n\"+LoadingContigAfterArray[x]+\"\\n\");\n\t writer1.close();\n\t }\n\t //Filter.\n\t\tint CountAdd=0;\n\t\tSet<String> HashSetSave = new HashSet<String>();\n\t for(int k=0;k<RealSizeOfContigSetSPAdes;k++)\n\t {\n\t \tif(!hashSet.contains(k))\n\t \t{\n\t \t\tHashSetSave.add(ContigSetSPAdesArray[k]);\n\t \t}\n\t }\n\t\tSystem.out.println(\"The real size of un-useded contigs is:\" + HashSetSave.size());\n\t\t//Write.\n\t\tIterator<String> it = HashSetSave.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tString SPAdesString = it.next();\n\t\t\tint Flag=1;\n\t\t for(int x=0;x<LoadingContigAfterCount;x++)\n\t\t {\n\t\t \tif((LoadingContigAfterArray[x].length()>=SPAdesString.length())&&(LoadingContigAfterArray[x].contains(SPAdesString)))\n\t\t \t{\n\t\t \t\tFlag=0;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t }\n\t\t\tif(Flag==1)\n\t\t\t{\n\t\t\t\tFileWriter writer = new FileWriter(FinalContigWritePath+\"contig.AfterMerge.fa\",true);\n\t\t\t\twriter.write(\">Add:\"+(LineNum1++)+\"\\n\"+SPAdesString+\"\\n\");\n\t\t\t\twriter.close();\n\t\t\t\tCountAdd++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The real size of add Complementary contigs is:\" + CountAdd);\n\t\tSystem.out.println(\"File write process end!\");\n }",
"public static void main(String[] args) throws InvalidFormatException, FileNotFoundException, IOException {\n\n int classNumber = 2;\n int Ngram = 2; // The default value is unigram.\n int lengthThreshold = 5; // Document length threshold\n int numberOfCores = Runtime.getRuntime().availableProcessors();\n\n String tokenModel = \"./data/Model/en-token.bin\"; // Token model.\n\n EmbeddingParameter param = new EmbeddingParameter(args);\n\n String providedCV = String.format(\"%s/%s/%sSelectedVocab.txt\", param.m_prefix, param.m_data, param.m_data);\n String userFolder = String.format(\"%s/%s/Users\", param.m_prefix, param.m_data);\n String friendFile = String.format(\"%s/%s/%sFriends.txt\", param.m_prefix, param.m_data, param.m_data);\n String cvIndexFile = String.format(\"%s/%s/%sCVIndex.txt\", param.m_prefix, param.m_data, param.m_data);\n String cvIndexFile4Interaction = String.format(\"%s/%s/%sCVIndex4Interaction_fold_%d_train.txt\", param.m_prefix, param.m_data, param.m_data, param.m_kFold);\n\n MultiThreadedNetworkAnalyzer analyzer = null;\n int kFold = 5;\n\n if(param.m_data.equals(\"StackOverflow\")){\n analyzer = new MultiThreadedStackOverflowAnalyzer(tokenModel, classNumber, providedCV, Ngram, lengthThreshold, numberOfCores, true);\n } else\n analyzer = new MultiThreadedNetworkAnalyzer(tokenModel, classNumber, providedCV, Ngram, lengthThreshold, numberOfCores, true);\n analyzer.setAllocateReviewFlag(false); // do not allocate reviews\n\n // we store the interaction information before-hand, load them directly\n analyzer.loadUserDir(userFolder);\n analyzer.constructUserIDIndex();\n\n // if it is cv for doc, use all the interactions + part of docs\n if(param.m_mode.equals(\"cv4doc\") && !param.m_coldStartFlag){\n analyzer.loadCVIndex(cvIndexFile, kFold);\n analyzer.loadInteractions(friendFile);\n }\n // if it is cv for edge, use all the docs + part of edges\n else if(param.m_mode.equals(\"cv4edge\") && !param.m_coldStartFlag){\n analyzer.loadInteractions(cvIndexFile4Interaction);\n }\n // cold start for doc, use all edges, test doc perplexity on light/medium/heavy users\n else if(param.m_mode.equals(\"cv4doc\") && param.m_coldStartFlag) {\n cvIndexFile = String.format(\"%s/%s/ColdStart/%s_cold_start_4docs_fold_%d.txt\", param.m_prefix, param.m_data,\n param.m_data, param.m_kFold);\n analyzer.loadCVIndex(cvIndexFile, kFold);\n analyzer.loadInteractions(friendFile);\n }\n // cold start for edge, use all edges, learn user embedding for light/medium/heavy users\n else if(param.m_mode.equals(\"cv4edge\") && param.m_coldStartFlag){\n cvIndexFile4Interaction = String.format(\"%s/%s/ColdStart/%s_cold_start_4edges_fold_%d_interactions.txt\",\n param.m_prefix, param.m_data, param.m_data, param.m_kFold);\n analyzer.loadInteractions(cvIndexFile4Interaction);\n }\n // answerer recommendation for stackoverflow data only\n else if(param.m_mode.equals(\"ansrec\")){\n cvIndexFile = String.format(\"%s/%s/AnswerRecommendation/%sCVIndex4Recommendation.txt\",\n param.m_prefix, param.m_data, param.m_data);\n friendFile = String.format(\"%s/%s/AnswerRecommendation/%sFriends4Recommendation.txt\",\n param.m_prefix, param.m_data, param.m_data);\n analyzer.loadCVIndex(cvIndexFile, kFold);\n analyzer.loadInteractions(friendFile);\n }\n /***Start running joint modeling of user embedding and topic embedding****/\n double emConverge = 1e-10, alpha = 1 + 1e-2, beta = 1 + 1e-3, lambda = 1 + 1e-3, varConverge = 1e-6;//these two parameters must be larger than 1!!!\n _Corpus corpus = analyzer.getCorpus();\n\n long start = System.currentTimeMillis();\n LDA_Variational tModel = null;\n\n if(param.m_multiFlag && param.m_coldStartFlag) {\n tModel = new EUB4ColdStart_multithreading(param.m_emIter, emConverge, beta, corpus, lambda, param.m_number_of_topics,\n alpha, param.m_varIter, varConverge, param.m_embeddingDim);\n } else if(param.m_multiFlag && !param.m_coldStartFlag){\n tModel = new EUB_multithreading(param.m_emIter, emConverge, beta, corpus, lambda, param.m_number_of_topics,\n alpha, param.m_varIter, varConverge, param.m_embeddingDim);\n } else{\n tModel = new EUB(param.m_emIter, emConverge, beta, corpus, lambda, param.m_number_of_topics, alpha,\n param.m_varIter, varConverge, param.m_embeddingDim);\n }\n\n ((EUB) tModel).initLookupTables(analyzer.getUsers());\n ((EUB) tModel).setModelParamsUpdateFlags(param.m_alphaFlag, param.m_gammaFlag, param.m_betaFlag,\n param.m_tauFlag, param.m_xiFlag, param.m_rhoFlag);\n ((EUB) tModel).setMode(param.m_mode);\n\n ((EUB) tModel).setTrainInferMaxIter(param.m_trainInferIter);\n ((EUB) tModel).setTestInferMaxIter(param.m_testInferIter);\n ((EUB) tModel).setParamMaxIter(param.m_paramIter);\n ((EUB) tModel).setStepSize(param.m_stepSize);\n ((EUB) tModel).setGamma(param.m_gamma);\n ((EUB) tModel).setData(param.m_data);\n\n if(param.m_mode.equals(\"ansrec\")){\n String questionIds = String.format(\"%s/%s/AnswerRecommendation/%sSelectedQuestions.txt\",\n param.m_prefix, param.m_data, param.m_data);\n ((EUB) tModel).loadQuestionIds(questionIds);\n }\n\n if(param.m_multiFlag && param.m_coldStartFlag){\n ((EUB4ColdStart_multithreading) tModel).fixedCrossValidation(param.m_kFold, param.m_saveDir);\n } else{\n ((EUB) tModel).fixedCrossValidation(param.m_kFold, param.m_saveDir);\n }\n\n String saveDir = param.m_saveDir + String.format(\"%s_nuTopics_%d_dim_%d_fold_%d\", param.m_data,\n param.m_number_of_topics, param.m_embeddingDim, param.m_kFold);\n File dir = new File(saveDir);\n if(!dir.exists())\n dir.mkdir();\n\n tModel.printBeta(param.m_saveDir);\n if(param.m_mode.equals(\"ansrec\")){\n ((EUB) tModel).printTopicEmbeddingAsMtx(param.m_saveDir);\n ((EUB) tModel).printTheta(param.m_saveDir);\n }\n long end = System.currentTimeMillis();\n\n // the total time of training and testing in the unit of hours\n double hours = (end - start)/((1000*60*60) * 1.0);\n System.out.print(String.format(\"[Time]This training+testing process took %.2f hours.\\n\", hours));\n\n }",
"public String generateSentence() {\n // If our map is empty return the empty string\n if (model.size() == 0) {\n return \"\";\n }\n\n ArrayList<String> startWords = model.get(\"_begin\");\n ArrayList<String> endWords = model.get(\"_end\");\n\n // Retrieve a starting word to begin our sentence\n int rand = ThreadLocalRandom.current().nextInt(0, startWords.size());\n\n String currentWord = startWords.get(rand);\n StringBuilder sb = new StringBuilder();\n\n while (!endWords.contains(currentWord)) {\n sb.append(currentWord + \" \");\n ArrayList<String> nextStates = model.get(currentWord);\n\n if (nextStates == null) return sb.toString().trim() + \".\\n\";\n\n rand = ThreadLocalRandom.current().nextInt(0, nextStates.size());\n currentWord = nextStates.get(rand);\n }\n\n sb.append(currentWord);\n\n return sb.toString() + \"\\n\";\n\n\n }",
"public void genTestSeq(String path){\n\t\tFeature documents = new Feature();\r\n\t\tdocuments.setName(\"Documents\");\r\n\t\tdocuments.setFeatureType(FeatureType.Mandatory);\r\n\t\t\r\n\t\tFeature video = new Feature();\r\n\t\tvideo.setName(\"Video\");\r\n\t\tvideo.setFeatureType(FeatureType.Optional);\r\n\t\tvideo.setFatherFeature(documents);\r\n\t\t\r\n\t\tFeature image = new Feature();\r\n\t\timage.setName(\"Image\");\r\n\t\timage.setFeatureType(FeatureType.Optional);\r\n\t\timage.setFatherFeature(documents);\r\n\t\t\r\n\t\tFeature text = new Feature();\r\n\t\ttext.setName(\"Text\");\r\n\t\ttext.setFeatureType(FeatureType.Mandatory);\r\n\t\ttext.setFatherFeature(documents);\r\n\t\r\n\t\tFeature showEvents = new Feature();\r\n\t\tshowEvents.setName(\"ShowEvents\");\r\n\t\tshowEvents.setFeatureType(FeatureType.Mandatory);\t\t\r\n\t\t\r\n\t\tFeature allEvents = new Feature();\r\n\t\tallEvents.setName(\"allEvents\");\r\n\t\tallEvents.setFeatureType(FeatureType.Group);\r\n\t\tallEvents.setFatherFeature(showEvents);\r\n\t\t\r\n\t\tFeature current = new Feature();\r\n\t\tcurrent.setName(\"current\");\r\n\t\tcurrent.setFeatureType(FeatureType.Group);\r\n\t\tcurrent.setFatherFeature(showEvents);\r\n\t\t\r\n\t\tFeatureGroup eventsGroup = new FeatureGroup();\r\n\t\teventsGroup.append(allEvents);\r\n\t\teventsGroup.append(current);\r\n\t\teventsGroup.setGroupType(FeatureGroupType.OR_Group);\r\n\t\t\r\n\t\t//DSPL\r\n\t\tDSPL mobilineDspl = new DSPL();\r\n\t\t\t//DSPL features\r\n\t\tmobilineDspl.getFeatures().add(text);\r\n\t\tmobilineDspl.getFeatures().add(video);\r\n\t\tmobilineDspl.getFeatures().add(image);\r\n\t\tmobilineDspl.getFeatures().add(documents);\r\n\t\tmobilineDspl.getFeatures().add(showEvents);\r\n\t\tmobilineDspl.getFeatures().add(current);\r\n\t\tmobilineDspl.getFeatures().add(allEvents);\r\n\t\t\t\r\n\t\t\t//DSPL Initial Configuration - mandatory features and from group features\r\n\t\tmobilineDspl.getInitialConfiguration().add(documents);\r\n\t\tmobilineDspl.getInitialConfiguration().add(text);\r\n\t\tmobilineDspl.getInitialConfiguration().add(image);\r\n\t\tmobilineDspl.getInitialConfiguration().add(video);\r\n\t\tmobilineDspl.getInitialConfiguration().add(showEvents);\r\n\t\tmobilineDspl.getInitialConfiguration().add(allEvents);\r\n\t\t\t//DSPL Feature Groups\r\n\t\tmobilineDspl.getFeatureGroups().add(eventsGroup);\t\t\r\n\t\t\r\n\t\t\r\n\t\t//--------------------------> CONTEXT MODEL <-------------------/\r\n\t\t//GETS FROM FIXTURE\r\n\t\t\r\n\t\t//Context Root\r\n\t\tContextFeature root = new ContextFeature(\"Root Context\");\r\n\t\t\r\n\t\t// Context Propositions\r\n\t\tContextFeature isBtFull = new ContextFeature(\"BtFull\");\r\n\t\tisBtFull.setContextType(ContextType.Group);\r\n\t\tContextFeature isBtNormal = new ContextFeature(\"BtNormal\");\r\n\t\tisBtNormal.setContextType(ContextType.Group);\r\n\t\tContextFeature isBtLow = new ContextFeature(\"BtLow\");\r\n\t\tisBtLow.setContextType(ContextType.Group);\r\n\t\tContextFeature slowNetwork = new ContextFeature(\"slowNetwork\");\r\n\t\tslowNetwork.setContextType(ContextType.Optional);\t\t\r\n\t\t\r\n\t\t//Context Groups\r\n\t\tContextGroup battery = new ContextGroup(\"Baterry\");\r\n\t\tbattery.setType(ContextGroupType.XOR);\r\n\t\tbattery.append(isBtFull);\r\n\t\tbattery.append(isBtNormal);\r\n\t\tbattery.append(isBtLow);\t\t\r\n\t\t\r\n\t\tContextGroup network = new ContextGroup(\"Network\"); // To the interleaving testing\r\n\t\tnetwork.setType(ContextGroupType.NONE);\r\n\t\tnetwork.append(slowNetwork);\t\t\r\n\t\t\r\n\t\t// Adaptation Rules\r\n\t\t\r\n\t\t//Adaptation Rule isBtLow => Video off, Image off\r\n\t\tAdaptationRuleWithCtxFeature rule1 = new AdaptationRuleWithCtxFeature();\r\n\t\tLinkedList<ContextFeature> contextTrigger1 = new LinkedList<ContextFeature>();\r\n\t\tcontextTrigger1.add(isBtLow);\r\n\t\trule1.setContextRequired(contextTrigger1);\r\n\t\t\r\n\t\tLinkedList<Feature> toDeactiveFeatures1 = new LinkedList<Feature>();\r\n\t\ttoDeactiveFeatures1.add(image);\r\n\t\ttoDeactiveFeatures1.add(video);\r\n\t\trule1.setToDeactiveFeatureList(toDeactiveFeatures1);\r\n\t\t\t\r\n\t\t//Adaptation Rule isBtNormal => Video off, Image on\r\n\t\tAdaptationRuleWithCtxFeature rule3 = new AdaptationRuleWithCtxFeature();\r\n\t\tLinkedList<ContextFeature> contextTrigger3 = new LinkedList<ContextFeature>();\r\n\t\tcontextTrigger3.add(isBtNormal);\t\t\r\n\t\trule3.setContextRequired(contextTrigger3);\r\n\t\t\r\n\t\tLinkedList<Feature> toActiveFeature3 = new LinkedList<Feature>();\r\n\t\ttoActiveFeature3.add(image);\r\n\t\trule3.setToActiveFeatureList(toActiveFeature3);\r\n\t\t\r\n\t\tLinkedList<Feature> toDeactiveFeatures3 = new LinkedList<Feature>();\r\n\t\ttoDeactiveFeatures3.add(video);\r\n\t\trule3.setToDeactiveFeatureList(toDeactiveFeatures3);\r\n\t\t\r\n\t\t//Adaptation Rule isBtFull => Video on, Image on\r\n\t\tAdaptationRuleWithCtxFeature rule5 = new AdaptationRuleWithCtxFeature();\r\n\t\tLinkedList<ContextFeature> contextTrigger5 = new LinkedList<ContextFeature>();\r\n\t\tcontextTrigger5.add(isBtFull);\t\t\r\n\t\trule5.setContextRequired(contextTrigger5);\r\n\t\t\r\n\t\tLinkedList<Feature> toActiveFeature5 = new LinkedList<Feature>();\r\n\t\ttoActiveFeature5.add(image);\r\n\t\ttoActiveFeature5.add(video);\r\n\t\trule5.setToActiveFeatureList(toActiveFeature5);\r\n\t\t\r\n\t\t//Adaptation Rule SlowNetwork => allEvents off\r\n\t\tAdaptationRuleWithCtxFeature rule6 = new AdaptationRuleWithCtxFeature();\r\n\t\tLinkedList<ContextFeature> contextTrigger6 = new LinkedList<ContextFeature>();\r\n\t\tcontextTrigger6.add(slowNetwork);\t\t\r\n\t\trule6.setContextRequired(contextTrigger6);\r\n\t\t\r\n\t\tLinkedList<Feature> toDeactiveFeature6 = new LinkedList<Feature>();\r\n\t\ttoDeactiveFeature6.add(allEvents);\t\t\r\n\t\trule6.setToDeactiveFeatureList(toDeactiveFeature6);\r\n\t\t\r\n\t\t// COMO é um OR, se ele desativou o outro, automaticamente ele ativa esse\r\n\t\tLinkedList<Feature> toActiveFeature6 = new LinkedList<Feature>();\r\n\t\ttoActiveFeature6.add(current);\t\t\r\n\t\trule6.setToActiveFeatureList(toActiveFeature6);\r\n\t\t\r\n\t\t//Context Model\r\n\t\tCFM ctxModel = new CFM();\r\n\t\tctxModel.setContextRoot(root);\r\n\t\tctxModel.getContextGroups().add(battery);\r\n\t\tctxModel.getContextGroups().add(network);\r\n\t\tctxModel.getAdaptationRules().add(rule1);\r\n\t\tctxModel.getAdaptationRules().add(rule3);\r\n\t\tctxModel.getAdaptationRules().add(rule5);\r\n\t\tctxModel.getAdaptationRules().add(rule6);\r\n\t\r\n\t\t\r\n\t\t//--------------------------> CKS <-------------------/\r\n\t\t//GETS FROM EXCEL\r\n\t\t \r\n\t\t//Context Propositions\r\n\t\tContextProposition isBtFullProp = new ContextProposition(\"BtFull\");\r\n\t\tContextProposition isBtNormalProp = new ContextProposition(\"BtNormal\");\r\n\t\tContextProposition isBtLowProp = new ContextProposition(\"BtLow\");\r\n\t\tContextProposition slowNetWork = new ContextProposition(\"slowNetwork\");\r\n\t\t\r\n\t\t//Context Constraint\r\n\t\tContextConstraint batteryLevel = new ContextConstraint();\r\n\t\tbatteryLevel.getContextPropositionsList().add(isBtFullProp);\r\n\t\tbatteryLevel.getContextPropositionsList().add(isBtNormalProp);\r\n\t\tbatteryLevel.getContextPropositionsList().add(isBtLowProp);\r\n\t\t\r\n\t\t//Context States\r\n\t\t// S0\r\n\t\tNode_CKS ctxSt0 = new Node_CKS();\r\n\t\tctxSt0.getAtiveContextPropositions().add(isBtFullProp);\r\n\t\tctxSt0.setId(0);\r\n\t\t\r\n\t\t// S1\r\n\t\tNode_CKS ctxSt1 = new Node_CKS();\r\n\t\tctxSt1.getAtiveContextPropositions().add(isBtFullProp);\r\n\t\tctxSt1.getAtiveContextPropositions().add(slowNetWork);\r\n\t\tctxSt1.setId(1);\r\n\t\t\r\n\t\t// S2\r\n\t\tNode_CKS ctxSt2 = new Node_CKS();\r\n\t\tctxSt2.getAtiveContextPropositions().add(isBtNormalProp);\r\n\t\t\r\n\t\tctxSt2.setId(2);\r\n\t\t\r\n\t\t// S3\r\n\t\tNode_CKS ctxSt3 = new Node_CKS();\r\n\t\tctxSt3.getAtiveContextPropositions().add(isBtNormalProp);\r\n\t\tctxSt3.getAtiveContextPropositions().add(slowNetWork);\r\n\t\tctxSt3.setId(3);\r\n\t\t\r\n\t\t// S4\r\n\t\tNode_CKS ctxSt4 = new Node_CKS();\r\n\t\tctxSt4.getAtiveContextPropositions().add(isBtLowProp);\r\n\t\tctxSt4.setId(4);\r\n\t\t\r\n\t\t//S5\r\n\t\tNode_CKS ctxSt5 = new Node_CKS();\r\n\t\tctxSt5.getAtiveContextPropositions().add(isBtLowProp);\r\n\t\tctxSt5.getAtiveContextPropositions().add(slowNetWork);\t\t\t\t\r\n\t\tctxSt5.setId(5);\r\n\r\n\t\t// Transition Relation R (CKS)\r\n\t\tctxSt0.addNextState(ctxSt1); //F -> F + S \r\n\t\tctxSt0.addNextState(ctxSt2); //F -> N\r\n\t\tctxSt1.addNextState(ctxSt0); //F + S -> F\r\n\t\tctxSt1.addNextState(ctxSt3); //F + S -> N + S\r\n\t\tctxSt2.addNextState(ctxSt3); //N -> N + S\r\n\t\tctxSt2.addNextState(ctxSt4); //N -> L\r\n\t\tctxSt3.addNextState(ctxSt2); //N + S -> N\r\n\t\tctxSt3.addNextState(ctxSt5); //N + S -> L + S\r\n\t\tctxSt4.addNextState(ctxSt5); //L -> Ls + S \r\n\t\tctxSt5.addNextState(ctxSt4); //L + S -> L\r\n\t\t\t\r\n\t\tGraph_CKS cksGraph = new Graph_CKS();\r\n\t\tcksGraph.getNodes().add(ctxSt0);\r\n\t\tcksGraph.getNodes().add(ctxSt1);\r\n\t\tcksGraph.getNodes().add(ctxSt2);\r\n\t\tcksGraph.getNodes().add(ctxSt3);\r\n\t\tcksGraph.getNodes().add(ctxSt4);\r\n\t\tcksGraph.getNodes().add(ctxSt5);\r\n\t\t\r\n\t\t\r\n\t\t/////// CODE PARA FIX!!!\r\n\t\t\t\t\t//GenerateDFTSGFromCKSG gen = new GenerateDFTSGFromCKSG(mobilineDspl, ctxModel, cksGraph);\r\n\t\t\t\t\t//it start analze by the first context state of CKS\r\n\t\t\t\t\t//gen.dephtFirstSearchGeneratingDFTSTrasitions(cksGraph.getNodes().get(0));\r\n\t\t\t\t\t//gen.printGraphDFTS();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Graph_DFTS dfts = gen.getGraph_DFTS(); //dfts\r\n\r\n\t\t//////--- To the EXP\r\n\t\tDFTS_For_Exp dftsGen = new DFTS_For_Exp();\r\n\t\tGraph_DFTS dfts = dftsGen.getMobilineExpGraph();\r\n\t\t/////-----\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C1 ]<-------------------/\r\n\t\t\r\n\t\t\r\n\t\t//[C1]: it generate the testSequence to cover ALL DFTS States\r\n\t\t TSForConfigurationCorrectness tsForCC = new TSForConfigurationCorrectness();\r\n\t\t//1.0d= 100%\r\n\t\t// from scratch \r\n\t\t //TestSequenceList testSeqList = new TestSequenceList();\r\n\t\t //TestSequence testSequence = tsForCC.generateTestSequence(dfts,0.2d);\r\n\t\t //testSeqList.add(testSequence);\r\n\t\t //printTestSequence(testSequence);\r\n\t\t //System.out.println(\"###########\");\r\n\t\t//Based on a previous one\r\n\t\t //testSequence = tsForCC.identifyMissingCases(dfts, testSequence, 1.0d);\r\n\t\t\t//printTestSequence(testSequence);\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C2 ]<-------------------/\r\n\t\t\tTSForFeatureLiveness tsFtLiv = new TSForFeatureLiveness(mobilineDspl);\r\n\t\t//1.0d= 100%\r\n\t\t// from scratch \r\n\t\t// Tem 5 features (A,B,C, Video,Image)... 0.5d > 2 (Image e Video)... 0.2d = 1 feature\r\n\t\t\t//ArrayList<TestSequence> testSeqList = tsFtLiv.generateTestSequence(dfts, 1.0d, new ArrayList<TestSequence>());\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t\t//System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t//Based on a previous one\r\n\t\t\t//testSeqList = tsFtLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C1 AND C2]<-------------------/\r\n\t\t//[C1]: it generate the testSequence to cover ALL DFTS States\r\n\t\t //TSForConfigurationCorrectness tsForCC = new TSForConfigurationCorrectness();\r\n\t\t //TestSequence testSequence = tsForCC.generateTestSequence(dfts,0.2d);\r\n\t\t // printTestSequence(testSequence);\r\n\t\t \r\n\t\t //System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t //TSForFeatureLiveness tsFtLiv = new TSForFeatureLiveness(mobilineDspl);\r\n\t\t\t// ArrayList<TestSequence> initialTestSeq = new ArrayList<TestSequence>();\r\n\t\t\t// initialTestSeq.add(testSequence);\r\n\t\t\t// ArrayList<TestSequence> testSeqList = tsFtLiv.generateTestSequence(dfts, 1.0d,initialTestSeq );\r\n\t\t\t// printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C3]<-------------------/\r\n\t\t\tTSForInterleavingCorrectness tsIntCor = new TSForInterleavingCorrectness(ctxModel);\r\n\t\t\t//1.0d= 100%\r\n\t\t\t// from scratch \r\n\t\t\t// Tem 5 features (A,B,C, Video,Image)... 0.5d > 2 (Image e Video)... 0.2d = 1 feature\r\n\t\t\t\t//ArrayList<TestSequence> testSeqList = tsIntCor.generateTestSequence(dfts, 0.0d, new ArrayList<TestSequence>());\r\n\t\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t\t//System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t\t//Based on a previous one\r\n\t\t\t\t//testSeqList = tsIntCor.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C4]<-------------------/\r\n\t\t\tTSForRuleLiveness tsRlLiv = new TSForRuleLiveness(ctxModel);\r\n\t\t//1.0d= 100%\r\n\t\t// from scratch \r\n\t\t// Tem 5 features (A,B,C, Video,Image)... 0.5d > 2 (Image e Video)... 0.2d = 1 feature\r\n\t\t\t//TestSequenceList testSeqList = tsRlLiv.generateTestSequence(dfts, 1.0d, new TestSequenceList());\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\r\n\t\t\t//saveTestSequenceToJson(testSeqList, \"D:/testSeq1.json\");\r\n\t\t\t\r\n\t\t//System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t//Based on a previous one\r\n\t\t\t//testSeqList = tsRlLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C5]<-------------------/\r\n\t\t\tTSForVariationLiveness tsVtLiv = new TSForVariationLiveness(mobilineDspl);\r\n\t\t//1.0d= 100%\r\n\t\t// from scratch \r\n\t\t// Tem 5 features (A,B,C, Video,Image)... 0.5d > 2 (Image e Video)... 0.2d = 1 feature\r\n\t\t\t//ArrayList<TestSequence> testSeqList = tsVtLiv.generateTestSequence(dfts, 1.0d, new ArrayList<TestSequence>());\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t\t//System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t//Based on a previous one\r\n\t\t\t//testSeqList = tsVtLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\r\n\t\t//--------------------------> TEST SEQUENCES [ALL]<-------------------/\r\n\t\t\tTestSequenceList testSeqList = new TestSequenceList();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"########### C1 ############ \");\r\n\t\t\tTestSequence testSequence = tsForCC.generateTestSequence(dfts,1.0d);\r\n\t\t\tprintTestSequence(testSequence);\r\n\t\t\ttestSeqList.add(testSequence);\r\n\t\t \r\n\t\t System.out.println(\"########### C2 ############ \");\r\n\t\t testSeqList = tsFtLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t printTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"########### C3 ############ \");\r\n\t\t\ttestSeqList = tsIntCor.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\tprintTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"########### C4 ############ \");\r\n\t\t\ttestSeqList = tsRlLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\tprintTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"########### C5 ############ \");\r\n\t\t\ttestSeqList = tsVtLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\tprintTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\tsaveTestSequenceToJson(testSeqList, path);\t\r\n\t}",
"@Test\n public void tocSeqNumbering() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // SEQ fields display a count that increments at each SEQ field.\n // These fields also maintain separate counts for each unique named sequence\n // identified by the SEQ field's \"SequenceIdentifier\" property.\n // Insert a SEQ field that will display the current count value of \"MySequence\",\n // after using the \"ResetNumber\" property to set it to 100.\n builder.write(\"#\");\n FieldSeq fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.setResetNumber(\"100\");\n fieldSeq.update();\n\n Assert.assertEquals(\" SEQ MySequence \\\\r 100\", fieldSeq.getFieldCode());\n Assert.assertEquals(\"100\", fieldSeq.getResult());\n\n // Display the next number in this sequence with another SEQ field.\n builder.write(\", #\");\n fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.update();\n\n Assert.assertEquals(\"101\", fieldSeq.getResult());\n\n // Insert a level 1 heading.\n builder.insertBreak(BreakType.PARAGRAPH_BREAK);\n builder.getParagraphFormat().setStyle(doc.getStyles().get(\"Heading 1\"));\n builder.writeln(\"This level 1 heading will reset MySequence to 1\");\n builder.getParagraphFormat().setStyle(doc.getStyles().get(\"Normal\"));\n\n // Insert another SEQ field from the same sequence and configure it to reset the count at every heading with 1.\n builder.write(\"\\n#\");\n fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.setResetHeadingLevel(\"1\");\n fieldSeq.update();\n\n // The above heading is a level 1 heading, so the count for this sequence is reset to 1.\n Assert.assertEquals(\" SEQ MySequence \\\\s 1\", fieldSeq.getFieldCode());\n Assert.assertEquals(\"1\", fieldSeq.getResult());\n\n // Move to the next number of this sequence.\n builder.write(\", #\");\n fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.setInsertNextNumber(true);\n fieldSeq.update();\n\n Assert.assertEquals(\" SEQ MySequence \\\\n\", fieldSeq.getFieldCode());\n Assert.assertEquals(\"2\", fieldSeq.getResult());\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.SEQ.ResetNumbering.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.SEQ.ResetNumbering.docx\");\n\n Assert.assertEquals(4, doc.getRange().getFields().getCount());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence \\\\r 100\", \"100\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence\", \"101\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence \\\\s 1\", \"1\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(3);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence \\\\n\", \"2\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n }",
"private static String Lemmatize(String strTemp) {\n Properties obj = new Properties();\n obj.setProperty(\"annotators\", \"tokenize, ssplit, pos, lemma\"); //setting the properties although using only for lemmatization purpose but one cannot\n // removed the tokenize ssplit pos arguments\n StanfordCoreNLP pipeObj = new StanfordCoreNLP(obj);\t\t//using stanFord library and creating its object\n Annotation annotationObj;\n annotationObj = new Annotation(strTemp); //creating annotation object and passing the string word\n pipeObj.annotate(annotationObj);\n String finalLemma = new Sentence(strTemp).lemma(0); //we only using the lemma of the passed string Word rest of the features like pos, ssplit, tokenized are ignored\n //although we can use it but tokenization has been done perviously\n //with my own code\n return finalLemma;\n }",
"public static void main(String[] args){\n \tString tempStringLine;\n\n\t\t /* SCANNING IN THE SENTENCE */\n // create a queue called sentenceQueue to temporary store each line of the text file as a String.\n MyLinkedList sentenceList = new MyLinkedList();\n\n // integer which keeps track of the index position for each new sentence string addition.\n int listCount = 0;\n\n // create a new file by opening a text file.\n File file2 = new File(\"testEmail2.txt\");\n try {\n\n \t// create a new scanner 'sc' for the newly allocated file.\n Scanner sc = new Scanner(file2);\n\n // while there are still lines within the file, continue.\n while (sc.hasNextLine()) {\n\n \t// save each line within the file to the String 'tempStringLine'.\n \ttempStringLine = sc.nextLine();\n\n \t// create a new BreakIterator called 'sentenceIterator' to break the 'tempStringLine' into sentences.\n BreakIterator sentenceIterator = BreakIterator.getSentenceInstance();\n\n // Set a new text string 'tempStringLine' to be scanned.\n sentenceIterator.setText(tempStringLine);\n\n // save the first index boundary in the integer 'start'.\n // The iterator's current position is set to the first text boundary.\n int start = sentenceIterator.first();\n\n // save the boundary following the current boundary in the integer 'end'.\n for(int end = sentenceIterator.next();\n\n \t// while the end integer does not equal 'BreakIterator.DONE' or the end of the boundary.\n \tend != BreakIterator.DONE;\n\n \t// set the start integer equal to the end integer. Set the end integer equal to the next boundary.\n \tstart = end, end = sentenceIterator.next()){\n\n \t// create a substring of tempStringLine of the start and end boundsries, which are just Strings of\n \t// each sentence.\n \tsentenceList.add(listCount,tempStringLine.substring(start, end));\n\n \t// add to the count.\n \tlistCount++;\n }\n }\n\n // close the scanner 'sc'.\n sc.close(); \n\n // if the file could not be opened, throw a FileNotFoundException.\n }catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n\t\tsentenceProcessor one = new sentenceProcessor(sentenceList);\n\t\tString[] names = one.findNames();\n System.out.println(\"Speaker \" + names[0]);\n System.out.println(\"Subject \" + names[1]);\n\t}",
"public void generateDemoData() {\n for (int values = 0; values < votersAmt.size(); values++) {\n int n = votersAmt.get(values),\n m = candidatesAmt.get(values);\n for (int game = 1; game <= 20; game++) {\n try {\n String gameContent = \"\";\n for (int i = 0; i < n; i++) {\n // Mapping values so that voters can vote each candidate strictly once.\n List<String> candidatesPerVoter = new ArrayList<String>();\n for (int j = 0; j < m; j++) {\n int x = ThreadLocalRandom.current().nextInt(1, m);\n while (candidatesPerVoter.contains(\"C\"+x)) x = ThreadLocalRandom.current().nextInt(1, m + 1);\n candidatesPerVoter.add(\"C\" + x);\n }\n for (String candidate : candidatesPerVoter) {\n gameContent += (candidate + \" \");\n }\n if (i < n - 1) gameContent += \"\\n\";\n }\n\n String writingPolicy = \"plurality\";\n PrintWriter pw1 = new PrintWriter(outputDataRepository + \"/game\" + game + \"_\" + n + \"_\" + m + \"_\" + writingPolicy + \"_results.txt\");\n pw1.write(writingPolicy + \"\\n\" + gameContent); pw1.flush(); pw1.close();\n\n writingPolicy = \"borda\";\n PrintWriter pw2 = new PrintWriter(outputDataRepository + \"/game\" + game + \"_\" + n + \"_\" + m + \"_\" + writingPolicy + \"_results.txt\");\n pw2.write(writingPolicy + \"\\n\" + gameContent); pw2.flush(); pw2.close();\n } catch (FileNotFoundException exc) {\n System.err.println(\"Error writing file to disk; please check relevant permissions.\");\n exc.printStackTrace();\n }\n }\n }\n }",
"public void computeParagraph(){\r\n\r\n\t\tstrBuff = new StringBuffer();\r\n\r\n\t\t//For else for ER2 rule of inserting the first letter of my last name twice before each consonant\r\n\t\tfor(int i = 0; i < paragraph.length(); i++){\r\n\r\n\t\t\tif(paragraph.charAt(i) == 'a' || paragraph.charAt(i) == 'e' || paragraph.charAt(i) == 'i'\r\n\t\t\t\t|| paragraph.charAt(i) == 'o' || paragraph.charAt(i) == 'u' || paragraph.charAt(i) == 'A'\r\n\t\t\t\t|| paragraph.charAt(i) == 'E' || paragraph.charAt(i) == 'I' || paragraph.charAt(i) == 'O'\r\n\t\t\t\t|| paragraph.charAt(i) == 'U' || paragraph.charAt(i) == ' ' || paragraph.charAt(i) == '.'\r\n\t\t\t\t|| paragraph.charAt(i) == '!' || paragraph.charAt(i) == '?'){\r\n\t\t\t\tstrBuff.append(paragraph.charAt(i));\r\n\t\t\t}\r\n\r\n\t\t\telse{\r\n\t\t\t\tstrBuff.append(\"OO\");\r\n\t\t\t\tstrBuff.append(paragraph.charAt(i));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tnewParagraph = strBuff.toString();\r\n\r\n\t\tcount = 0;\r\n\r\n\t\t//For for ER2 rule of counting the number of characters in the initial text excluding the number of vowels\r\n\t\tfor(int i = 0; i < paragraph.length(); i++){\r\n\t\t\tif(paragraph.charAt(i) != 'a' && paragraph.charAt(i) != 'e' && paragraph.charAt(i) != 'i'\r\n\t\t\t\t&& paragraph.charAt(i) != 'o' && paragraph.charAt(i) != 'u' && paragraph.charAt(i) != 'A'\r\n\t\t\t\t&& paragraph.charAt(i) != 'E' && paragraph.charAt(i) != 'I' && paragraph.charAt(i) != 'O'\r\n\t\t\t\t&& paragraph.charAt(i) != 'U'){\r\n\t\t\t\t\tcount++;\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t}",
"public void translate() {\n\t\tif(!init)\r\n\t\t\treturn; \r\n\t\ttermPhraseTranslation.clear();\r\n\t\t// document threshold: number of terms / / 8\r\n//\t\tdocThreshold = (int) (wordKeyList.size() / computeAvgTermNum(documentTermRelation) / 8.0);\r\n\t\t//\t\tuseDocFrequency = true;\r\n\t\tint minFrequency=1;\r\n\t\temBkgCoefficient=0.5;\r\n\t\tprobThreshold=0.001;//\r\n\t\titerationNum = 20;\r\n\t\tArrayList<Token> tokenList;\r\n\t\tToken curToken;\r\n\t\tint j,k;\r\n\t\t//p(w|C)\r\n\r\n\t\tint[] termValues = termIndexList.values;\r\n\t\tboolean[] termActive = termIndexList.allocated;\r\n\t\ttotalCollectionCount = 0;\r\n\t\tfor(k=0;k<termActive.length;k++){\r\n\t\t\tif(!termActive[k])\r\n\t\t\t\tcontinue;\r\n\t\t\ttotalCollectionCount +=termValues[k];\r\n\t\t}\r\n\t\t\r\n\t\t// for each phrase\r\n\t\tint[] phraseFreqKeys = phraseFrequencyIndex.keys;\r\n\t\tint[] phraseFreqValues = phraseFrequencyIndex.values;\r\n\t\tboolean[] states = phraseFrequencyIndex.allocated;\r\n\t\tfor (int phraseEntry = 0;phraseEntry<states.length;phraseEntry++){\r\n\t\t\tif(!states[phraseEntry]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (phraseFreqValues[phraseEntry] < minFrequency)\r\n\t\t\t\tcontinue;\r\n\t\t\ttokenList=genSignatureTranslation(phraseFreqKeys[phraseEntry]); // i is phrase number\r\n\t\t\tfor (j = 0; j <tokenList.size(); j++) {\r\n\t\t\t\tcurToken=(Token)tokenList.get(j);\r\n\t\t\t\tif(termPhraseTranslation.containsKey(curToken.getIndex())){\r\n\t\t\t\t\tIntFloatOpenHashMap old = termPhraseTranslation.get(curToken.getIndex());\r\n\t\t\t\t\tif(old.containsKey(phraseFreqKeys[phraseEntry])){\r\n\t\t\t\t\t\tSystem.out.println(\"aha need correction\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\told.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight()); //phrase, weight\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tIntFloatOpenHashMap newPhrase = new IntFloatOpenHashMap();\r\n\t\t\t\t\tnewPhrase.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight());\r\n\t\t\t\t\ttermPhraseTranslation.put(curToken.getIndex(), newPhrase);\r\n\t\t\t\t}\r\n\t\t\t\t//\t\t\t\toutputTransMatrix.add(i,curToken.getIndex(),curToken.getWeight());\r\n\t\t\t\t//\t\t\t\toutputTransTMatrix.add(curToken.getIndex(), i, curToken.getWeight());\r\n\t\t\t\t//TODO termPhrase exists, create PhraseTerm\r\n\t\t\t}\r\n\t\t\ttokenList.clear();\r\n\t\t}\r\n\r\n\t}",
"public WordGenerator()\n {\n adjective1a = new ArrayList<String>();\n adjective1b = new ArrayList<String>();\n adjective1c = new ArrayList<String>();\n adjective2a = new ArrayList<String>();\n adjective2b = new ArrayList<String>();\n adjective2c = new ArrayList<String>();\n fillAdjectives();\n noun = \"\";\n adj1 = \"\";\n adj2 = \"\";\n }",
"@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 }",
"public static void main(String[] args) throws IOException{\n\t\tint termIndex = 1;\n\t\t\n\t\t// startOffset holds the start offset for each term in\n\t\t// the corpus.\n\t\tlong startOffset = 0;\n\t\t\t\n\t\t// unique_terms is true if there are atleast one more\n\t\t// unique term in corpus.\n\t\tboolean unique_terms = true;\n\t\t\n\t\t\n\t\t//load the stopwords from the HDD\n\t\tString stopwords = getStopWords();\n\t\t\n\t\t// allTokenHash contains all the terms and its termid\n\t\tHashMap<String, Integer> allTermHash = new HashMap<String, Integer>();\n\t\t\n\t\t// catalogHash contains the term and its position in\n\t\t// the inverted list present in the HDD.\n\t\tHashMap<Integer, Multimap> catalogHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// finalCatalogHash contains the catalogHash for the invertedIndexHash\n\t\t// present in the HDD.\n\t\tHashMap<Integer, String> finalCatalogHash = new HashMap<Integer, String>();\n\t\t\n\t\t// token1000Hash contains the term and Dblocks for the first 1000\n\t\tHashMap<Integer, Multimap> token1000DocHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// documentHash contains the doclength of all the documents in the corpus\n\t\tHashMap<String, String> documentHash = new HashMap<String, String>();\t\n\t\t\n\t\t// id holds the document id corresponding to the docNumber.\n\t\tint id = 1;\n\t\t\n\t\t// until all unique terms are exhausted\n\t\t// pass through the documents and index the terms.\n\t\t//while(unique_terms){\n\t\t\t\n\t\t\tFile folder = new File(\"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/ap89_collection\");\n\t\t\t//File folder = new File(\"C:/Users/Naveen/Desktop/TestFolder\");\n\t\t\tFile[] listOfFiles = folder.listFiles();\n\t\t\t\n\t\t\t//for each file in the folder \n\t\t\tfor (File file : listOfFiles) {\n\t\t\t if (file.isFile()) {\n\t\t\t \t\n\t\t\t \tString str = file.getPath().replace(\"\\\\\",\"//\");\n\t\t\t \t\n\t\t\t \t\n\t\t\t\t\t//Document doc = new Document();\n\t\t\t //System.out.println(\"\"+str);\n\t\t\t\t\t//variables to keep parse document.\n\t\t\t\t\tint docCount = 0;\n\t\t\t\t\tint docNumber = 0;\n\t\t\t\t\tint endDoc = 0;\n\t\t\t\t\tint textCount = 0;\n\t\t\t\t\tint noText = 0;\n\t\t\t\t\tPath path = Paths.get(str);\n\t\t\t\t\t\n\t\t\t\t\t//Document id and text\n\t\t\t\t\tString docID = null;\n\t\t\t\t\tString docTEXT = null;\n\t\t\t\t\t\n\t\t\t\t\t//Stringbuffer to hold the text of each document\n\t\t\t\t\tStringBuffer text = new StringBuffer();\n\t\t\t\t\t\n\t\t\t\t\tScanner scanner = new Scanner(path);\n\t\t\t\t\twhile(scanner.hasNext()){\n\t\t\t\t\t\tString line = scanner.nextLine();\n\t\t\t\t\t\tif(line.contains(\"<DOC>\")){\n\t\t\t\t\t\t\t++docCount;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"</DOC>\")){\n\t\t\t\t\t\t\t++endDoc;\n\t\t\t\t\t\t\tdocTEXT = text.toString();\n\t\t\t\t\t\t\t//docTEXT = docTEXT.replaceAll(\"[\\\\n]\",\" \");\n\t\t\t\t\t\t\tSystem.out.println(\"ID: \"+id);\n\t\t\t\t\t\t\t//System.out.println(\"TEXT: \"+docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stop words removed\n\t\t\t\t\t\t\tPattern pattern1 = Pattern.compile(\"\\\\b(?:\"+stopwords+\")\\\\b\\\\s*\", Pattern.CASE_INSENSITIVE);\n\t\t\t\t\t\t\tMatcher matcher1 = pattern1.matcher(docTEXT);\n\t\t\t\t\t\t\tdocTEXT = matcher1.replaceAll(\"\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stemming\n\t\t\t\t\t\t\t//docTEXT = stemmer(docTEXT);\n\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\tint docLength = 1;\n\t\t\t\t\t\t\t// regex to build the tokens from the document text\n\t\t\t\t\t\t\tPattern pattern = Pattern.compile(\"\\\\w+(\\\\.?\\\\w+)*\");\n\t\t\t\t\t\t\tMatcher matcher = pattern.matcher(docTEXT.toLowerCase());\n\t\t\t\t\t\t\twhile (matcher.find()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (int i = 0; i < matcher.groupCount(); i++) {\n\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\t\n\t\t\t\t\t\t\t\t\t// alltermHash contains term and term id\n\t\t\t\t\t\t\t\t\t// if term is present in the alltermHash\n\t\t\t\t\t\t\t\t\tif(allTermHash.containsKey(matcher.group(i))){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tint termId = allTermHash.get(matcher.group(i));\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//if term is present in the token1000Hash\n\t\t\t\t\t\t\t\t\t\t//then update the dblock of the term.\n\t\t\t\t\t\t\t\t\t\tif(token1000DocHash.containsKey(termId)){\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockUpdate = token1000DocHash.get(termId);\n\t\t\t\t\t\t\t\t\t\t\t//Multimap<Integer, Integer> dBlockUpdate = token1000DocHash.get(matcher.group(i));\n\t\t\t\t\t\t\t\t\t\t\tif(dBlockUpdate.containsKey(id)){\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//if term is not present in the token1000hash\n\t\t\t\t\t\t\t\t\t\t//then add the token with its dBlock\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termId, dBlockInsert);\t\n\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// if the term is not present I will put the term into allTermHash\n\t\t\t\t\t\t\t\t\t// put corresponding value into the token1000DocHash and increment\n\t\t\t\t\t\t\t\t\t// termIndex\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tallTermHash.put(matcher.group(i),termIndex);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termIndex, dBlockInsert);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\ttermIndex++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocLength++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(id%1000 == 0){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// then dump index file to HDD\n\t\t\t\t\t\t\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// update catalog file\n\t\t\t\t\t\t\t\t\t// to populate catalogHash with the offset\n\t\t\t\t\t\t\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\t\t\t\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\t\t\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\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\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//clear the token1000DocHash\n\t\t\t\t\t\t\t\t\ttoken1000DocHash.clear();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdocumentHash.put(docID, \"\"+id+\":\"+docLength);\n\t\t\t\t\t\t\tid++;\n\t\t\t\t\t\t\ttext = new StringBuffer();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<DOCNO>\")){\n\t\t\t\t\t\t\t++docNumber;\n\t\t\t\t\t\t\tdocID = line.substring(8, 21);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<TEXT>\")){\n\t\t\t\t\t\t\t++textCount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if((line.contains(\"<DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DOCNO>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FILEID>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FIRST>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<SECOND>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DATELINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</TEXT>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<TEXT>\"))){\n\t\t\t\t\t\t\t ++noText;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(endDoc == docCount - 1){\n\t\t\t\t\t\t\ttext.append(line);\n\t\t\t\t\t\t\ttext.append(\" \");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t \t\n\t\t\t }//end of if - to check if this is a file and parse.\n\t\t\t \n\t\t\t}//end of for loop to load each file\n\t\t\t\n\t\t//}//end of while loop \n\t\t\n\t// write catalogfile to the hdd to check.\n\t\t\t\n\t\t\t// then dump index file to HDD\n\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\n\t\t\t// update catalog file\n\t\t\t// to populate catalogHash with the offset\n\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\twriteInvertedIndex(catalogHash,\"catalogHash\");\n\t\t\tprintHashMapSI(allTermHash);\n\t\t\tprintHashMapSS(documentHash);\n\t\t\t\n\t\t\tlong InvIndstartOffset = 0;\n\t\t\t\n\t\t\t//write it to file\n \n\t\t\t//change the finalcatalogHash to the form termid:startoffset:length\n\t\t\tfor (Integer name: catalogHash.keySet()){\n\t String key = name.toString();\n\t String value = catalogHash.get(name).toString(); \n\t //System.out.println(key + \" \" + value); \n\t String finalTermIndex = genInvertedIndex(key, value);\n\t finalTermIndex = key+\":\"+finalTermIndex;\n\t int indexLength = finalTermIndex.length();\n\t \n\t \n\t PrintWriter writer = new PrintWriter(new BufferedWriter\n\t \t\t(new FileWriter(\"C:/Users/Naveen/Desktop/TestRuns/LastRun/InvertedIndex\", true)));\n\t writer.println(finalTermIndex);\n\t writer.close();\n\t \n\t //update the finalcatalogHash\n\t //Multimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t//catInsert.put(String.valueOf(InvIndstartOffset), String.valueOf(indexLength));\n\t\t\t\tfinalCatalogHash.put(name, String.valueOf(InvIndstartOffset)+\":\"+String.valueOf(indexLength));//entry.getValue());\n\t\t\t\tInvIndstartOffset += indexLength+2;\n\t \n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tprintHashMapIS(finalCatalogHash);\n\t\t\t\n\t}",
"@Override\n protected void postSequenceProcessing() {\n htmlReport.addTestVerdict(getVerdict(latestState));\n }",
"public static void main(String[] args) {\n\t\tarticle.add(\"the\");\n\t\tarticle.add(\"a\");\n\t\tarticle.add(\"some\");\n\t\tarticle.add(\"one\");\n\t\tnoun.add(\"boy\");\n\t\tnoun.add(\"girl\");\n\t\tnoun.add(\"dog\");\n\t\tnoun.add(\"town\");\n\t\tnoun.add(\"car\");\n\t\tverb.add(\"drove\");\n\t\tverb.add(\"ran\");\n\t\tverb.add(\"jumped\");\n\t\tverb.add(\"walked\");\n\t\tverb.add(\"skipped\");\n\t\tpreposition.add(\"to\");\n\t\tpreposition.add(\"from\");\n\t\tpreposition.add(\"over\");\n\t\tpreposition.add(\"on\");\n\t\tpreposition.add(\"under\");\n\t\tRandom r= new Random();\n\t\tfor(int i=0;i<15;i++)\n\t\t{\n\t\tint n= r.nextInt(4);\n\t\tint n2= r.nextInt(5);\n\t\tint n3= r.nextInt(5);\n\n\t\tint n4= r.nextInt(5);\n\t\tint n5= r.nextInt(4);\n\t\tint n6= r.nextInt(5);\n\n\t\tSystem.out.println(article.get(n)+ \" \"+ noun.get(n2)+\" \"+ verb.get(n3)+\" \"+ preposition.get(n4)+\" \" + article.get(n5)+\" \"+ noun.get(n6)+\".\");\n\t\t}\n\n\t}",
"public static void main(String[] args) throws ParserConfigurationException, TransformerException, IOException {\n\t\tString[] nomeid={\"primo\",\"secondo\",\"terzo\",\"quarto\",\"quinto\",\"sesto\",\"settimo\",\"ottavo\",\"nono\",\"decimo\",\"undicesimo\",\"dodicesimo\",\"tredicesimo\",\"quattordicesimo\",\"quindicesimo\",\"sedicesimo\",\"diciassettesimo\",\"diciottesimo\",\"diciannovesimo\"};\r\n\r\n\t\t\r\n\t\t\r\n\t//for(int j=0;j<19;j++){\t\r\n\t\t\r\n\t\t//int nomefile=j+1;\r\n\t\tFile f=new File(\"C:\\\\Users\\\\Windows\\\\Desktop\\\\corpus\\\\corpus artigianale\\\\corpus2.xml\");\r\n\t\tString content = readFile(\"C:\\\\Users\\\\Windows\\\\Desktop\\\\corpus\\\\corpus artigianale\\\\corpus2.txt\", StandardCharsets.UTF_8);\t\r\n\t\tString[] frase=content.split(\"\\\\.\");\r\n\t\tString nome=nomeid[4];\t\r\n\t\t\t\r\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\r\n\t \r\n\t\t\t// root elements\r\n\t\t\tDocument doc = docBuilder.newDocument();\r\n\t\t\tElement rootElement = doc.createElement(\"add\");\r\n\t\t\tdoc.appendChild(rootElement);\r\n\t\t\t\r\n\t\t\r\n\t\t\tint count=0;\r\n\t\t\t\r\n\t\t\tfor (int i=0;i<frase.length;i++){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//if(frase[i].length()>150)\r\n\t\t\t\t//{// doc elements\r\n\t\t\t\t\tElement documento = doc.createElement(\"doc\");\r\n\t\t\t\t\trootElement.appendChild(documento);\r\n\t\t\t\t\r\n\t\t\t\t// id elements\r\n\t\t\t\t\t\tElement id = doc.createElement(\"field\");\r\n\t\t\t\t\t\tid.setAttribute(\"name\",\"id\");\r\n\t\t\t\t\t\tid.appendChild(doc.createTextNode(nome+i));\r\n\t\t\t\t\t\tdocumento.appendChild(id);\r\n\t\t\t\t//name element\r\n\t\t\t\t\t\tElement name = doc.createElement(\"field\");\r\n\t\t\t\t\t\tname.setAttribute(\"name\", \"name\");\r\n\t\t\t\t\t\tname.appendChild(doc.createTextNode(frase[i]));\r\n\t\t\t\t\t\tdocumento.appendChild(name);\r\n\t\t\t\t count++;\r\n\t\t\t\t//}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(count);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// write the content into xml file\r\n\t\t\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\r\n\t\t\t\t\tTransformer transformer = transformerFactory.newTransformer();\r\n\t\t\t\t\tDOMSource source = new DOMSource(doc);\r\n\t\t\t\t\tStreamResult result = new StreamResult(f);\r\n\t\t\t \r\n\t\t\t\t\t// Output to console for testing\r\n\t\t\t\t\t// StreamResult result = new StreamResult(System.out);\r\n\t\t\t \r\n\t\t\t\t\ttransformer.transform(source, result);\r\n\t\t\t \r\n\t\t\t\t\tSystem.out.println(\"File saved!\");\r\n\t\t\r\n\t //}\r\n\t\r\n\t}",
"public void prepareForFeaturesAndOrderCollection() throws Exception {\n\n LOG.info(\" - Preparing phrases...\");\n readPhrases(false);\n collectNumberProps(m_srcPhrs, m_trgPhrs, true, true); \n collectTypeProp(m_srcPhrs, m_trgPhrs); \n\n collectContextEqs();\n prepareSeedDictionary(m_contextSrcEqs, m_contextTrgEqs);\n prepareTranslitDictionary(m_contextSrcEqs);\n filterContextEqs();\n\n collectContextAndTimeProps(m_srcPhrs, m_trgPhrs);\n collectOrderProps(m_srcPhrs, m_trgPhrs);\n }",
"@Test(timeout = 4000)\n public void test56() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"Used for alphabetizing, cross referencing, and creating a label when the ``author'' information is missing. This field should not be confused with the key that appears in the cite command and at the beginning of the database entry.\");\n assertEquals(\"us for alphabes, cros refer, and creat a label when th ``author'' inform is mis. th field should not be confus with th key that appear in th cit command and at th begin of th databas entr.\", string0);\n }",
"@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 }",
"public static void main (String args []) {\n\r\n String str = \"\\\"क\\\", \\\"का\\\", \\\"कि\\\", \\\"की\\\", \\\"कु\\\", \\\"कू\\\", \\\"के\\\", \\\"कै\\\", \\\"को\\\", \\\"कौ\\\", \\\"कं\\\", \\\"क:\\\"\" ;\r\n String strEng = \"\\\"ka\\\", \\\"kā\\\", \\\"ki\\\", \\\"kī\\\", \\\"ku\\\", \\\"kū\\\", \\\"kē\\\", \\\"kai\\\", \\\"ko\\\", \\\"kau\\\", \\\"kṁ\\\", \\\"ka:\\\"\" ;\r\n\r\n String additionalConsonants = \"\\\"क़\\\", \\\"क़ा\\\", \\\"क़ि\\\", \\\"क़ी\\\", \\\"क़ु\\\", \\\"क़ू\\\", \\\"क़े\\\", \\\"क़ै\\\", \\\"क़ो\\\", \\\"क़ौ\\\", \\\"क़ं\\\", \\\"क़:\\\"\"; \r\n String additionalConsonantsEng = \"\\\"qa\\\", \\\"qā\\\", \\\"qi\\\", \\\"qī\\\", \\\"qu\\\", \\\"qū\\\", \\\"qē\\\", \\\"qai\\\", \\\"qo\\\", \\\"qau\\\", \\\"qṁ\\\", \\\"qa:\\\"\" ;\r\n\r\n //String str = \"क, का, कि, की, कु, कू, के, कै, को, कौ, कं, क:\" ;\r\n \r\n \r\n \r\n //generateNP(str);\r\n //generateEN(strEng);\r\n //System.out.println();\r\n generateNPAdditionalConsonants(additionalConsonants);\r\n generateENAdditionalConsonants(additionalConsonantsEng);\r\n\r\n\r\n\r\n }",
"@Test(timeout = 4000)\n public void test39() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"Name(s) of editor(s), typed as indicated in the LaTeX book. If there is also an author field, then the editor field gives the editor of the bok or cllection in which the reference appears.\");\n assertEquals(\"nam(s) of edit(s), typ as indic in th latic book. if ther is als an author field, then th edit field giv th edit of th bok or cllect in which th refer appear.\", string0);\n }",
"@Test\n\tpublic void testFindAlignment1() {\n\t\tint[] s = new int[cs5x3.length];\n\t\tfor (int i = 0; i < s.length; i++)\n\t\t\ts[i] = -1;\n\t\tAlignment.AlignmentScore score = testme3.findAlignment(s);\n\t\t// AAG-- 3\n\t\t// --GCC 3\n\t\t// -CGC- 2\n\t\t// -AGC- 3\n\t\t// --GCT 2\n\t\tassertEquals(13, score.actual);\n\t\tscore = testme4.findAlignment(s);\n\t\t// AAG-- 3\n\t\t// --GCC 3\n\t\t// -CGC- 2\n\t\t// -AGC- 3\n\t\t// -AGC- 3 [reverse strand]\n\t\tassertEquals(14, score.actual);\n\t}",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tModel model = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM_RULE_INF, null );\n\n\t\t// Load ontology 1\n\t\tmodel.read(\"file:///E:/Kuliah/TUGASAKHIR/TugasAkhirLatestFolder/Software/ontologyandmappingsanddatasources/endtoendtest/book1-test1.owl\");\n\n\t\t// Query in ontology 1\n\t\tQueryExecution qe = QueryExecutionFactory.create( QueryFactory.read( \"E:\\\\Kuliah\\\\TUGASAKHIR\\\\TugasAkhirLatestFolder\\\\Software\\\\ontologyandmappingsanddatasources\\\\endtoendtest\\\\book1-query1.sparql\" ), model );\n\t\tResultSet results = qe.execSelect();\n\t\t// PrefixMapping query;\n\t\t// Output query results\t\n\t\t// ResultSetFormatter.out(System.out, results, query);\n\n\t\t// Load ontology 2\n\t\tmodel = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM_RULE_INF, null );\n\t\tmodel.read(\"file:///E:/Kuliah/TUGASAKHIR/TugasAkhirLatestFolder/Software/ontologyandmappingsanddatasources/endtoendtest/book2-test1.owl\");\n\t\t\t\n\t\t// Transform query\n\t\tString transformedQuery = null;\n\t\tString firstQuery = null;\n\t\ttry {\n\t\t InputStream in = new FileInputStream(\"E:/Kuliah/TUGASAKHIR/TugasAkhirLatestFolder/Software/ontologyandmappingsanddatasources/endtoendtest/book1-query1.sparql\");\n\t\t BufferedReader reader = new BufferedReader( new InputStreamReader(in) );\n\t\t String line = null;\n\t\t String queryString = \"\";\n\t\t while ((line = reader.readLine()) != null) {\n\t\t\tqueryString += line + \"\\n\";\n\t\t }\n\t\t firstQuery = queryString;\n\t\t Properties parameters = new Properties();\n\t\t \n\t\t AlignmentParser aparser = new AlignmentParser(0);\n//\t\t Mapping\n\t\t Alignment alu = aparser.parse(\"file:///E:/Kuliah/TUGASAKHIR/TugasAkhirLatestFolder/Software/align-4.9/html/tutorial/tutorial4/bookalignment.rdf\");\n\t\t BasicAlignment al = (BasicAlignment) alu;\n\t\t\ttransformedQuery = ((BasicAlignment)al).rewriteQuery( queryString, parameters );\n//\t\t transformedQuery = ((ObjectAlignment)al).\n\t\t} catch ( Exception ex ) { ex.printStackTrace(); }\n\n\t\t// Query ontology 2\n\t\tSystem.out.println(transformedQuery);\n//\t\tdisplayQueryAnswer( model, QueryFactory.create( transformedQuery ) );\n\t\tqe = QueryExecutionFactory.create( QueryFactory.create( firstQuery ), model );\n\t\tresults = qe.execSelect();\n\t\tSystem.out.println(results);\n\t\t\n\t\t// Output query results\t\n\t\t// ResultSetFormatter.out(System.out, results, query);\n\t}",
"public static void main(String[] args) throws Exception\n\t{\n\t\tList<Artifact> docs = Artifact.listByType(Type.Document,false);\n\t\tint counter = 0;\n\t\tfor(Artifact doc : docs)\n\t\t{\n\t\t\t\tMLExample.hibernateSession = HibernateUtil.clearSession(MLExample.hibernateSession);\n\t\t\t\tString doc_path = doc.getAssociatedFilePath();\n//\t\t\t\tList<MLExample> trainExamples = \n//\t\t\t\t\tMLExample.getExamplesInDocument(LinkExampleBuilder.ExperimentGroupTimexEvent, doc_path);\n//\t\t\t\tList<MLExample> trainExamples2 = \n//\t\t\t\t\tMLExample.getExamplesInDocument(LinkExampleBuilder.ExperimentGroupEventEvent, doc_path);\n\n\t\t\t\tList<MLExample> trainExamples3 = \n\t\t\t\t\tMLExample.getExamplesInDocument(SecTimeEventExampleBuilder.ExperimentGroupSecTimeEvent,\n\t\t\t\t\t\t\tdoc_path);\n\t\t\t\t\n\t\t\t\tList<MLExample> all_train_examples = new ArrayList<MLExample>();\n//\t\t\t\tall_train_examples.addAll(trainExamples);\n//\t\t\t\tall_train_examples.addAll(trainExamples2);\n\t\t\t\tall_train_examples.addAll(trainExamples3);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(MLExample example_to_process: all_train_examples)\n\t\t\t\t{\n\t\t\t\t\tNormalizedDependencyFeatures ndf = new NormalizedDependencyFeatures();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tndf.calculateFeatures(example_to_process);\n\n\t\t\t\t\tHibernateUtil.clearLoaderSession();\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t\tFileUtil.logLine(null, \"Doc processed:\"+counter);\n\t\t//\t\tMLExample example_to_process = MLExample.getInstanceForLink\n\t\t//\t\t(PhraseLink.getInstance(4117), experimentgroup);\n\t\t}\n\t\t\n\t}",
"public abstract void doAlignment(String sq1, String sq2);",
"@Test(timeout = 4000)\n public void test36() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"nam(s) of edit(s), typ as indic in th latic book. if ther is als an author field, then th edit field giv th edit of th bok or cllect in which th refer appear.\");\n assertEquals(\"nam(s) of edit(s), typ as ind in th lat book. if ther is al an author field, then th edit field giv th edit of th bok or cllect in which th refer appear.\", string0);\n }",
"@Test \n\tpublic void generateParagraphsTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// select 'paragraphs' radio button \n\t\thomePage.selectContentType(\"paragraphs\");\n\n\t\t// enter '10' in the count field \n\t\thomePage.inputCount(\"10\");\n\n\t\t// click \"Generate Lorum Ipsum\" button\n\t\thomePage.generateLorumIpsum();\n\t\tGeneratedPage generatedPage = new GeneratedPage(driver);\n\n\t\t// validate the number of text paragraphs generated \n\t\tint paragraphCount = generatedPage.getActualGeneratedCount(\"paragraphs\");\n\t\tAssert.assertTrue(paragraphCount == 10);\n\n\t\t// validate the report text // ex: \"Generated 10 paragraphs, 1106 words, 7426 bytes of Lorem Ipsum\"\n\t\tAssert.assertEquals(\"Generated \" + generatedPage.getReport(\"paragraphs\") + \n\t\t\t\t\" paragraphs, \" + generatedPage.getReport(\"words\") + \n\t\t\t\t\" words, \" + generatedPage.getReport(\"bytes\") + \n\t\t\t\t\" bytes of Lorem Ipsum\", generatedPage.getCompleteReport());\n\t}",
"public static void main(String pOptions[]) {\n \n String parameterDirectory = \"[ENTER DEBUGGING DIRECORY]\";\n NamedEntityExtractorParameter neParameter =\n new NamedEntityExtractorParameter(\n parameterDirectory + \"ForenamesDE.txt\",\n parameterDirectory + \"SurnamesDE.txt\",\n parameterDirectory + \"SurnameSuffixesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"MiddleInitialsDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"TitlesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"PlacesDE.txt\",\n parameterDirectory + \"OrganizationsStartDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"OrganizationsEndDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"CompositeNE_HeinsUndPartner21.txt\",\n parameterDirectory + \"RegexNE_HeinsUndPartner21.txt\",\n parameterDirectory + \"NameAffixesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"PlaceAffixesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"OrganizationsAffixesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"OrganizationsDE_HeinsUndPartner21.tokenized.txt\",\n \"TestMetaDataAttribute\", false,\n parameterDirectory + \"PlaceIndicatorsDE_HeinsUndPartner21.txt\",\n false, null,\n parameterDirectory + \"PersonNameIndicatorsDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"ProfessionsDE_HeinsUndPartner21.txt\", true,\n parameterDirectory + \"StreetExceptionsDE.txt\",\n parameterDirectory + \"StreetSuffixesDE_HeinsUndPartner21.txt\",\n \"([A-Z][A-Za-z\\\\-\\\\.]*)\",\n \"([0-9\\\\-]{1,4}[a-zA-Z]?|[a-zA-Z\\\\-\\\\/]?|[Nn][Rr][\\\\.]?)\",\n \"(.*-$|^Die.*|^Der.*|^Das.*|[\\\\p{Alpha}]*ring$|.*\\\\/$)\", 2, \n \"([0-9\\\\.]{2,}|^<<.*)\");\n \n NamedEntityExtractor21 neExtractor = new NamedEntityExtractor21(\n neParameter);\n neExtractor.addTempOrganizationName(\"DiE Test ABC GmbH\");\n TestNamedEntityOwner neOwner = new TestNamedEntityOwner();\n \n for (int i = 0; i < neOwner.getNumberOfProcessedTextUnits(); i++) {\n neOwner.replaceProcessedTextUnitFromString(i,\n neExtractor.extractNamedEntities(neOwner\n .getInputTextUnitAsString(i), neOwner));\n }\n System.out.println(neOwner.toString());\n \n }",
"public static void main(String args[]) throws Exception {\n\t String filePath = \"test.pdf\";\r\n\t \r\n\t String pdfText = FileReader.getFile(filePath, 581, 584); \r\n\t text_position.position(580, 584);\r\n\t \r\n//\t String pdfText = FileReader.getFile(filePath, 396, 407); \r\n//\t text_position.position(395, 407);\r\n\r\n\t txtCreate.creatTxtFile(\"test\");\r\n\t txtCreate.writeTxtFile(pdfText);\r\n\t xmlCreater.getXML(\"test.txt\");\r\n }",
"@BeforeEach\n public void init() throws Exception {\n this.uri1 = new URI(\"http://edu.yu.cs/com1320/project/doc1\");\n this.b1 = new byte[1];\n this.s1 = \"pizza pious\";\n\n //init possible values for doc2\n this.uri2 = new URI(\"http://edu.yu.cs/com1320/project/doc2\");\n this.b2 = new byte[2];\n this.s2 = \"Party times\";\n\n //init possible values for doc3\n this.uri3 = new URI(\"http://edu.yu.cs/com1320/project/doc3\");\n this.b3 = new byte[3];\n this.s3 = \"nothi mucho\";\n\n this.uri4 = new URI(\"http://edu.yu.cs/com1320/project/doc4\");\n this.b4 = new byte[4];\n this.s4 = \"not goingss\";\n\n this.uri5 = new URI(\"http://edu.yu.cs/com1320/project/doc5\");\n this.b5 = new byte[5];\n this.s5 = \"p like fizz\";\n\n this.uri6 = new URI(\"http://edu.yu.cs/com1320/project/doc6\");\n this.b6 = new byte[33];\n this.s6 = \"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\";\n\n docBin1 = new DocumentImpl(this.uri1, this.b1);\n docBin2 = new DocumentImpl(this.uri2, this.b2);\n docBin3 = new DocumentImpl(this.uri3, this.b3);\n docBin4 = new DocumentImpl(this.uri4, this.b4);\n docBin5 = new DocumentImpl(this.uri5, this.b5);\n docBin6 = new DocumentImpl(this.uri6, this.b6);\n\n docTxt1 = new DocumentImpl(this.uri1, this.s1);\n docTxt2 = new DocumentImpl(this.uri2, this.s2);\n docTxt3 = new DocumentImpl(this.uri3, this.s3);\n docTxt4 = new DocumentImpl(this.uri4, this.s4);\n docTxt5 = new DocumentImpl(this.uri5, this.s5);\n docTxt6 = new DocumentImpl(this.uri6, this.s6);\n }"
]
| [
"0.6123206",
"0.607583",
"0.5856456",
"0.5815983",
"0.5746841",
"0.5619111",
"0.5559944",
"0.5487611",
"0.538062",
"0.5357623",
"0.53472537",
"0.53404975",
"0.5336962",
"0.53223807",
"0.53168535",
"0.5294449",
"0.5288072",
"0.52860767",
"0.52563006",
"0.5254904",
"0.5218708",
"0.5203432",
"0.5191395",
"0.51872975",
"0.51513183",
"0.5112362",
"0.5108372",
"0.51015204",
"0.50856453",
"0.50834936",
"0.50724095",
"0.50501734",
"0.50358087",
"0.5033399",
"0.4975671",
"0.49332455",
"0.49285588",
"0.49221116",
"0.4890201",
"0.48701322",
"0.48384196",
"0.48289514",
"0.48236984",
"0.48176187",
"0.48066485",
"0.48030692",
"0.47988158",
"0.4786959",
"0.47634012",
"0.4758575",
"0.47584677",
"0.47547996",
"0.47535586",
"0.47425205",
"0.47388682",
"0.4738838",
"0.47371382",
"0.47368023",
"0.47291845",
"0.47269815",
"0.4721234",
"0.4709121",
"0.4709041",
"0.4699864",
"0.4699641",
"0.46952918",
"0.46918276",
"0.46781486",
"0.46778974",
"0.46746492",
"0.4668242",
"0.46644688",
"0.46589115",
"0.46555644",
"0.46550703",
"0.46525",
"0.46401745",
"0.4635692",
"0.4633469",
"0.46302775",
"0.46270016",
"0.46202585",
"0.46200565",
"0.46155342",
"0.46131694",
"0.4610974",
"0.46037722",
"0.46026602",
"0.459736",
"0.4588823",
"0.458867",
"0.45857397",
"0.45803463",
"0.4576534",
"0.45667863",
"0.45582908",
"0.45571005",
"0.45546034",
"0.4551098",
"0.45480543"
]
| 0.669303 | 0 |
Given the probMatrix of the alignment tool, modify the revision document object of its sentence alignment | private void alignSingle(RevisionDocument doc, double[][] probMatrix,
double[][] fixedMatrix, int option) throws Exception {
int oldLength = probMatrix.length;
int newLength = probMatrix[0].length;
if (doc.getOldSentencesArray().length != oldLength
|| doc.getNewSentencesArray().length != newLength) {
throw new Exception("Alignment sentence does not match");
} else {
/*
* Rules for alignment 1. Allows one to many and many to one
* alignment 2. No many to many alignments (which would make the
* annotation even more difficult)
*/
if (option == -1) { // Baseline 1, using the exact match baseline
for (int i = 0; i < oldLength; i++) {
for (int j = 0; j < newLength; j++) {
if (probMatrix[i][j] == 1) {
doc.predictNewMappingIndex(j + 1, i + 1);
doc.predictOldMappingIndex(i + 1, j + 1);
}
}
}
} else if (option == -2) { // Baseline 2, using the similarity
// baseline
for (int i = 0; i < oldLength; i++) {
for (int j = 0; j < newLength; j++) {
if (probMatrix[i][j] > 0.5) {
doc.predictNewMappingIndex(j + 1, i + 1);
doc.predictOldMappingIndex(i + 1, j + 1);
}
}
}
} else { // current best approach
for (int i = 0; i < oldLength; i++) {
for (int j = 0; j < newLength; j++) {
if (fixedMatrix[i][j] == 1) {
doc.predictNewMappingIndex(j + 1, i + 1);
doc.predictOldMappingIndex(i + 1, j + 1);
}
}
}
// Code for improving
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void align(ArrayList<RevisionDocument> trainDocs,\n\t\t\tArrayList<RevisionDocument> testDocs, int option, boolean usingNgram)\n\t\t\tthrows Exception {\n\t\tHashtable<DocumentPair, double[][]> probMatrix = aligner\n\t\t\t\t.getProbMatrixTable(trainDocs, testDocs, option);\n\t\tIterator<DocumentPair> it = probMatrix.keySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tDocumentPair dp = it.next();\n\t\t\tString name = dp.getFileName();\n\t\t\tfor (RevisionDocument doc : testDocs) {\n\t\t\t\tif (doc.getDocumentName().equals(name)) {\n\t\t\t\t\tdouble[][] sim = probMatrix.get(dp);\n\t\t\t\t\tdouble[][] fixedSim = aligner.alignWithDP(dp, sim, option);\n\t\t\t\t\talignSingle(doc, sim, fixedSim, option);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tHashtable<String, RevisionDocument> table = new Hashtable<String, RevisionDocument>();\n\t\tfor (RevisionDocument doc : testDocs) {\n\t\t\tRevisionUnit predictedRoot = new RevisionUnit(true);\n\t\t\tpredictedRoot.setRevision_level(3); // Default level to 3\n\t\t\tdoc.setPredictedRoot(predictedRoot);\n\t\t\ttable.put(doc.getDocumentName(), doc);\n\t\t}\n\t\tRevisionPurposeClassifier rpc = new RevisionPurposeClassifier();\n\t\tInstances data = rpc.createInstances(testDocs, usingNgram);\n\t\tHashtable<String, Integer> revIndexTable = new Hashtable<String, Integer>();\n\t\tint dataSize = data.numInstances();\n\t\tfor (int j = 0;j<dataSize;j++) {\n\t\t\tInstance instance = data.instance(j);\n\t\t\tint ID_index = data.attribute(\"ID\").index();\n\t\t\t// String ID =\n\t\t\t// data.instance(ID_index).stringValue(instance.attribute(ID_index));\n\t\t\tString ID = instance.stringValue(instance.attribute(ID_index));\n\t\t\tAlignStruct as = AlignStruct.parseID(ID);\n\t\t\t// System.out.println(ID);\n\t\t\tRevisionDocument doc = table.get(as.documentpath);\n\t\t\tRevisionUnit ru = new RevisionUnit(doc.getPredictedRoot());\n\t\t\tru.setNewSentenceIndex(as.newIndices);\n\t\t\tru.setOldSentenceIndex(as.oldIndices);\n\t\t\tif (as.newIndices == null || as.newIndices.size() == 0) {\n\t\t\t\tru.setRevision_op(RevisionOp.DELETE);\n\t\t\t} else if (as.oldIndices == null || as.oldIndices.size() == 0) {\n\t\t\t\tru.setRevision_op(RevisionOp.ADD);\n\t\t\t} else {\n\t\t\t\tru.setRevision_op(RevisionOp.MODIFY);\n\t\t\t}\n\n\t\t\tru.setRevision_purpose(RevisionPurpose.CLAIMS_IDEAS); // default of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ADD and\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Delete\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// are\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// content\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// edits\n\n\t\t\tru.setRevision_level(0);\n\t\t\tif (revIndexTable.containsKey(as.documentpath)) {\n\t\t\t\tru.setRevision_index(revIndexTable.get(as.documentpath));\n\t\t\t\trevIndexTable.put(as.documentpath,\n\t\t\t\t\t\trevIndexTable.get(as.documentpath) + 1);\n\t\t\t} else {\n\t\t\t\tru.setRevision_index(1);\n\t\t\t\trevIndexTable.put(as.documentpath, 2);\n\t\t\t}\n\t\t\tdoc.getPredictedRoot().addUnit(ru);\n\t\t}\n\t}",
"void updateFrom(ClonalGeneAlignmentParameters alignerParameters);",
"public void implementPredicts(RevisionDocument doc) {\n\n\t}",
"public static void main(String args[]) throws IOException {\n\t File file = new File(\"fdpModification.pdf\");\n\t PDDocument document = PDDocument.load(file);\n\n\t //Retrieving the pages of the document\n\t PDPage page = document.getPage(1);\n\t PDPageContentStream contentStream = new PDPageContentStream(document, page);\n\n\t //Begin the Content stream\n\t contentStream.beginText();\n\t contentStream.moveTextPositionByAmount(7, 105);\n\t contentStream.setFont(PDType1Font.HELVETICA, 12);\n\t contentStream.drawString(\"Normal text and \");\n\t contentStream.setFont(PDType1Font.HELVETICA_BOLD, 12);\n\t contentStream.drawString(\"bold text\");\n\t contentStream.moveTextPositionByAmount(0, -25);\n\t contentStream.setFont(PDType1Font.HELVETICA_OBLIQUE, 12);\n\t contentStream.drawString(\"Italic text and \");\n\t contentStream.setFont(PDType1Font.HELVETICA_BOLD_OBLIQUE, 12);\n\t contentStream.drawString(\"bold italic text\");\n\t contentStream.endText();\n\n\t contentStream.setLineWidth(.5f);\n\n\t contentStream.beginText();\n\t contentStream.moveTextPositionByAmount(7, 55);\n\t contentStream.setFont(PDType1Font.HELVETICA, 12);\n\t contentStream.drawString(\"Normal text and \");\n\t contentStream.appendRawCommands(\"2 Tr\\n\");\n\t contentStream.drawString(\"artificially bold text\");\n\t contentStream.appendRawCommands(\"0 Tr\\n\");\n\t contentStream.moveTextPositionByAmount(0, -25);\n\t contentStream.appendRawCommands(\"1 Tr\\n\");\n\t contentStream.drawString(\"Artificially outlined text\");\n\t contentStream.appendRawCommands(\"0 Tr\\n\");\n\t contentStream.setTextMatrix(1, 0, .2f, 1, 7, 5);\n\t contentStream.drawString(\"Artificially italic text and \");\n\t contentStream.appendRawCommands(\"2 Tr\\n\");\n\t contentStream.drawString(\"bold italic text\");\n\t contentStream.appendRawCommands(\"0 Tr\\n\");\n\t //Setting the font to the Content streamt\n\t contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n\n\t //Setting the position for the line\n\t contentStream.newLineAtOffset(0, 0);\n\n //Setting the leading\n contentStream.setLeading(14.5f);\n\n //Setting the position for the line\n contentStream.newLineAtOffset(25, 725);\n\n String text1 = \"This is an example of adding text to a page in the pdf document. we can add as many lines\";\n String text2 = \"as we want like this using the ShowText() method of the ContentStream class\";\n\n //Adding text in the form of string\n contentStream. showText(text1);\n contentStream.newLine();\n contentStream. showText(text2);\n //Ending the content stream\n contentStream.endText();\n\n System.out.println(\"Content added\");\n\n //Closing the content stream\n contentStream.close();\n\n //Saving the document\n document.save(new File(\"newtou.pdf\"));\n\n //Closing the document\n document.close();\n }",
"public void align(ArrayList<RevisionDocument> trainDocs,\n\t\t\tArrayList<RevisionDocument> testDocs, int option) throws Exception {\n\t\tHashtable<DocumentPair, double[][]> probMatrix = aligner\n\t\t\t\t.getProbMatrixTable(trainDocs, testDocs, option);\n\t\tIterator<DocumentPair> it = probMatrix.keySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tDocumentPair dp = it.next();\n\t\t\tString name = dp.getFileName();\n\t\t\tfor (RevisionDocument doc : testDocs) {\n\t\t\t\tif (doc.getDocumentName().equals(name)) {\n\t\t\t\t\tdouble[][] sim = probMatrix.get(dp);\n\t\t\t\t\tdouble[][] fixedSim = aligner.alignWithDP(dp, sim, option);\n\t\t\t\t\talignSingle(doc, sim, fixedSim, option);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void translate() {\n\t\tif(!init)\r\n\t\t\treturn; \r\n\t\ttermPhraseTranslation.clear();\r\n\t\t// document threshold: number of terms / / 8\r\n//\t\tdocThreshold = (int) (wordKeyList.size() / computeAvgTermNum(documentTermRelation) / 8.0);\r\n\t\t//\t\tuseDocFrequency = true;\r\n\t\tint minFrequency=1;\r\n\t\temBkgCoefficient=0.5;\r\n\t\tprobThreshold=0.001;//\r\n\t\titerationNum = 20;\r\n\t\tArrayList<Token> tokenList;\r\n\t\tToken curToken;\r\n\t\tint j,k;\r\n\t\t//p(w|C)\r\n\r\n\t\tint[] termValues = termIndexList.values;\r\n\t\tboolean[] termActive = termIndexList.allocated;\r\n\t\ttotalCollectionCount = 0;\r\n\t\tfor(k=0;k<termActive.length;k++){\r\n\t\t\tif(!termActive[k])\r\n\t\t\t\tcontinue;\r\n\t\t\ttotalCollectionCount +=termValues[k];\r\n\t\t}\r\n\t\t\r\n\t\t// for each phrase\r\n\t\tint[] phraseFreqKeys = phraseFrequencyIndex.keys;\r\n\t\tint[] phraseFreqValues = phraseFrequencyIndex.values;\r\n\t\tboolean[] states = phraseFrequencyIndex.allocated;\r\n\t\tfor (int phraseEntry = 0;phraseEntry<states.length;phraseEntry++){\r\n\t\t\tif(!states[phraseEntry]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (phraseFreqValues[phraseEntry] < minFrequency)\r\n\t\t\t\tcontinue;\r\n\t\t\ttokenList=genSignatureTranslation(phraseFreqKeys[phraseEntry]); // i is phrase number\r\n\t\t\tfor (j = 0; j <tokenList.size(); j++) {\r\n\t\t\t\tcurToken=(Token)tokenList.get(j);\r\n\t\t\t\tif(termPhraseTranslation.containsKey(curToken.getIndex())){\r\n\t\t\t\t\tIntFloatOpenHashMap old = termPhraseTranslation.get(curToken.getIndex());\r\n\t\t\t\t\tif(old.containsKey(phraseFreqKeys[phraseEntry])){\r\n\t\t\t\t\t\tSystem.out.println(\"aha need correction\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\told.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight()); //phrase, weight\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tIntFloatOpenHashMap newPhrase = new IntFloatOpenHashMap();\r\n\t\t\t\t\tnewPhrase.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight());\r\n\t\t\t\t\ttermPhraseTranslation.put(curToken.getIndex(), newPhrase);\r\n\t\t\t\t}\r\n\t\t\t\t//\t\t\t\toutputTransMatrix.add(i,curToken.getIndex(),curToken.getWeight());\r\n\t\t\t\t//\t\t\t\toutputTransTMatrix.add(curToken.getIndex(), i, curToken.getWeight());\r\n\t\t\t\t//TODO termPhrase exists, create PhraseTerm\r\n\t\t\t}\r\n\t\t\ttokenList.clear();\r\n\t\t}\r\n\r\n\t}",
"public void repeatAlign(ArrayList<RevisionDocument> docs) throws Exception {\n\t\tHashtable<String, RevisionDocument> table = new Hashtable<String, RevisionDocument>();\n\t\tfor (RevisionDocument doc : docs) {\n\t\t\tRevisionUnit predictedRoot = new RevisionUnit(true);\n\t\t\tpredictedRoot.setRevision_level(3); // Default level to 3\n\t\t\tdoc.setPredictedRoot(predictedRoot);\n\t\t\ttable.put(doc.getDocumentName(), doc);\n\t\t\tArrayList<RevisionUnit> rus = doc.getRoot().getRevisionUnitAtLevel(\n\t\t\t\t\t0);\n\t\t\tfor (RevisionUnit ru : rus) {\n\t\t\t\tpredictedRoot.addUnit(ru.copy(predictedRoot));\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void align(@NonNull PbVnAlignment alignment) {\n boolean noAgentiveA0 = alignment.proposition().predicate().ancestors(true).stream()\n .allMatch(s -> s.roles().stream()\n .map(r -> ThematicRoleType.fromString(r.type()).orElse(ThematicRoleType.NONE))\n .noneMatch(ThematicRoleType::isAgentive));\n\n for (PropBankPhrase phrase : alignment.sourcePhrases(false)) {\n List<NounPhrase> unaligned = alignment.targetPhrases(false).stream()\n .filter(i -> i instanceof NounPhrase)\n .map(i -> ((NounPhrase) i))\n .collect(Collectors.toList());\n if (phrase.getNumber() == ArgNumber.A0) {\n // TODO: seems like a hack\n if (alignment.proposition().predicate().verbNetId().classId().startsWith(\"51\") && noAgentiveA0) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (EnumSet.of(ThematicRoleType.AGENT, ThematicRoleType.CAUSER,\n ThematicRoleType.STIMULUS, ThematicRoleType.PIVOT)\n .contains(unalignedPhrase.thematicRoleType())) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A1) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME\n || unalignedPhrase.thematicRoleType() == ThematicRoleType.PATIENT) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A3) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isStartingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A4) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isEndingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n\n\n }\n }",
"public void onAnnotationsPreModify(Map<Annot, Integer> annots) {\n/* 297 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* 301 */ this.mPreModifyPageNum = 0;\n/* 302 */ this.mPreModifyAnnotRect = null;\n/* */ \n/* 304 */ for (Map.Entry<Annot, Integer> pair : annots.entrySet()) {\n/* 305 */ Annot annot = pair.getKey();\n/* 306 */ Integer pageNum = pair.getValue();\n/* 307 */ if (this.mPreModifyPageNum != 0 && this.mPreModifyPageNum != pageNum.intValue()) {\n/* 308 */ this.mPreModifyPageNum = 0;\n/* 309 */ this.mPreModifyAnnotRect = null;\n/* */ return;\n/* */ } \n/* 312 */ this.mPreModifyPageNum = pageNum.intValue();\n/* */ try {\n/* 314 */ if (annot != null && annot.isValid()) {\n/* */ Rect annotRect;\n/* 316 */ if (annot.getType() == 19) {\n/* */ \n/* 318 */ Widget widget = new Widget(annot);\n/* 319 */ Field field = widget.getField();\n/* 320 */ annotRect = field.getUpdateRect();\n/* */ } else {\n/* 322 */ annotRect = this.mPdfViewCtrl.getPageRectForAnnot(annot, pageNum.intValue());\n/* */ } \n/* 324 */ annotRect.normalize();\n/* 325 */ if (this.mPreModifyAnnotRect != null) {\n/* 326 */ this.mPreModifyAnnotRect.setX1(Math.min(this.mPreModifyAnnotRect.getX1(), annotRect.getX1()));\n/* 327 */ this.mPreModifyAnnotRect.setY1(Math.min(this.mPreModifyAnnotRect.getY1(), annotRect.getY1()));\n/* 328 */ this.mPreModifyAnnotRect.setX2(Math.max(this.mPreModifyAnnotRect.getX2(), annotRect.getX2()));\n/* 329 */ this.mPreModifyAnnotRect.setY2(Math.max(this.mPreModifyAnnotRect.getY2(), annotRect.getY2())); continue;\n/* */ } \n/* 331 */ this.mPreModifyAnnotRect = annotRect;\n/* */ }\n/* */ \n/* 334 */ } catch (Exception e) {\n/* 335 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ } \n/* */ }",
"@Override\r\n\tpublic int updatePersionAccessPword(PersonAccessEntity entity) throws Exception {\n\t\treturn persionAccessDao.updatePword(entity);\r\n\t}",
"long recalculateRevision();",
"private void indexRelations(String inputFile, FlagConfig flagConfig) throws IOException {\n this.elementalVectors = VectorStoreRAM.readFromFile(\n flagConfig, \"C:\\\\Users\\\\dwiddows\\\\Data\\\\QI\\\\Gutterman\\\\termtermvectors.bin\");\n this.flagConfig = flagConfig;\n this.proportionVectors = new ProportionVectors(flagConfig);\n this.luceneUtils = new LuceneUtils(flagConfig);\n VectorStoreWriter writer = new VectorStoreWriter();\n\n // Turn all the text lines into parsed records.\n this.parseInputFile(inputFile);\n\n // Now the various indexing techniques.\n VectorStoreRAM triplesVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM triplesPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM dyadsPositionsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsVectors = new VectorStoreRAM(flagConfig);\n VectorStoreRAM verbsPositionsVectors = new VectorStoreRAM(flagConfig);\n\n for (String docName : this.parsedRecords.keySet()) {\n Vector tripleDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector tripleDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector dyadDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n Vector verbDocPositionVector = VectorFactory.createZeroVector(flagConfig.vectortype(), flagConfig.dimension());\n\n for (ParsedRecord record : this.parsedRecords.get(docName)) {\n Vector tripleVector = this.getPsiTripleVector(record);\n tripleDocVector.superpose(tripleVector, 1, null);\n\n this.bindWithPosition(record, tripleVector);\n tripleDocPositionVector.superpose(tripleVector, 1, null);\n\n Vector dyadVector = this.getPsiDyadVector(record);\n dyadDocVector.superpose(dyadVector, 1, null);\n this.bindWithPosition(record, dyadVector);\n dyadDocPositionVector.superpose(dyadVector, 1, null);\n\n Vector verbVector = this.vectorForString(record.predicate);\n verbDocVector.superpose(verbVector, 1, null);\n this.bindWithPosition(record, verbVector);\n verbDocPositionVector.superpose(verbVector, 1, null);\n }\n\n triplesVectors.putVector(docName, tripleDocVector);\n triplesPositionsVectors.putVector(docName, tripleDocPositionVector);\n dyadsVectors.putVector(docName, dyadDocVector);\n dyadsPositionsVectors.putVector(docName, dyadDocPositionVector);\n verbsVectors.putVector(docName, verbDocVector);\n verbsPositionsVectors.putVector(docName, verbDocPositionVector);\n }\n\n for (VectorStore vectorStore : new VectorStore[] {\n triplesVectors, triplesPositionsVectors, dyadsVectors, dyadsPositionsVectors, verbsVectors, verbsPositionsVectors }) {\n Enumeration<ObjectVector> vectorEnumeration = vectorStore.getAllVectors();\n while (vectorEnumeration.hasMoreElements())\n vectorEnumeration.nextElement().getVector().normalize();\n }\n\n writer.writeVectors(TRIPLES_OUTPUT_FILE, flagConfig, triplesVectors);\n writer.writeVectors(TRIPLES_POSITIONS_OUTPUT_FILE, flagConfig, triplesPositionsVectors);\n\n writer.writeVectors(DYADS_OUTPUT_FILE, flagConfig, dyadsVectors);\n writer.writeVectors(DYADS_POSITIONS_OUTPUT_FILE, flagConfig, dyadsPositionsVectors);\n\n writer.writeVectors(VERBS_OUTPUT_FILE, flagConfig, verbsVectors);\n writer.writeVectors(VERBS_POSITIONS_OUTPUT_FILE, flagConfig, verbsPositionsVectors);\n }",
"@Override\n\tpublic void process(JCas aJCas) throws AnalysisEngineProcessException {\n\t\tString text = aJCas.getDocumentText();\n\n\t\t// create an empty Annotation just with the given text\n\t\tAnnotation document = new Annotation(text);\n//\t\tAnnotation document = new Annotation(\"Barack Obama was born in Hawaii. He is the president. Obama was elected in 2008.\");\n\n\t\t// run all Annotators on this text\n\t\tpipeline.annotate(document); \n\t\tList<CoreMap> sentences = document.get(SentencesAnnotation.class);\n\t\t HelperDataStructures hds = new HelperDataStructures();\n\n\t\t\n\t\t//SPnew language-specific settings:\n\t\t//SPnew subject tags of the parser\n\t\t HashSet<String> subjTag = new HashSet<String>(); \n\t\t HashSet<String> dirObjTag = new HashSet<String>(); \n\t\t //subordinate conjunction tags\n\t\t HashSet<String> compTag = new HashSet<String>(); \n\t\t //pronoun tags\n\t\t HashSet<String> pronTag = new HashSet<String>(); \n\t\t \n\t\t HashSet<String> passSubjTag = new HashSet<String>();\n\t\t HashSet<String> apposTag = new HashSet<String>(); \n\t\t HashSet<String> verbComplementTag = new HashSet<String>(); \n\t\t HashSet<String> infVerbTag = new HashSet<String>(); \n\t\t HashSet<String> relclauseTag = new HashSet<String>(); \n\t\t HashSet<String> aclauseTag = new HashSet<String>(); \n\t\t \n\t\t HashSet<String> compLemma = new HashSet<String>(); \n\t\t HashSet<String> coordLemma = new HashSet<String>(); \n\t\t HashSet<String> directQuoteIntro = new HashSet<String>(); \n\t\t HashSet<String> indirectQuoteIntroChunkValue = new HashSet<String>();\n\t\t \n//\t\t HashSet<String> finiteVerbTag = new HashSet<String>();\n\t\t \n\n\t\t //OPEN ISSUES PROBLEMS:\n\t\t //the subject - verb relation finding does not account for several specific cases: \n\t\t //opinion verbs with passive subjects as opinion holder are not accounted for,\n\t\t //what is needed is a marker in the lex files like PASSSUBJ\n\t\t //ex: Obama is worried/Merkel is concerned\n\t\t //Many of the poorer countries are concerned that the reduction in structural funds and farm subsidies may be detrimental in their attempts to fulfill the Copenhagen Criteria.\n\t\t //Some of the more well off EU states are also worried about the possible effects a sudden influx of cheap labor may have on their economies. Others are afraid that regional aid may be diverted away from those who currently benefit to the new, poorer countries that join in 2004 and beyond. \n\t\t// Does not account for infinitival constructions, here again a marker is needed to specify\n\t\t //subject versus object equi\n\t\t\t//Christian Noyer was reported to have said that it is ok.\n\t\t\t//Reuters has reported Christian Noyer to have said that it is ok.\n\t\t //Obama is likely to have said.. \n\t\t //Several opinion holder- opinion verb pairs in one sentence are not accounted for, right now the first pair is taken.\n\t\t //what is needed is to run through all dependencies. For inderect quotes the xcomp value of the embedded verb points to the \n\t\t //opinion verb. For direct quotes the offsets closest to thwe quote are relevant.\n\t\t //a specific treatment of inverted subjects is necessary then. Right now the\n\t\t //strategy relies on the fact that after the first subj/dirobj - verb pair the\n\t\t //search is interrupted. Thus, if the direct object precedes the subject, it is taken as subject.\n\t\t // this is the case in incorrectly analysed inverted subjeects as: said Zwickel on Monday\n\t\t //coordination of subject not accounted for:employers and many economists\n\t\t //several subject-opinion verbs:\n\t\t //Zwickel has called the hours discrepancy between east and west a \"fairness gap,\" but employers and many economists point out that many eastern operations have a much lower productivity than their western counterparts.\n\t\t if (language.equals(\"en\")){\n \t subjTag.add(\"nsubj\");\n \t subjTag.add(\"xsubj\");\n \t subjTag.add(\"nmod:agent\");\n \t \n \t dirObjTag.add(\"dobj\"); //for inverted subject: \" \" said IG metall boss Klaus Zwickel on Monday morning.\n \t \t\t\t\t\t\t//works only with break DEPENDENCYSEARCH, otherwise \"Monday\" is nsubj \n \t \t\t\t\t\t\t//for infinitival subject of object equi: Reuters reports Obama to have said\n \tpassSubjTag.add(\"nsubjpass\");\n \tapposTag.add(\"appos\");\n \trelclauseTag.add(\"acl:relcl\");\n \taclauseTag.add(\"acl\");\n \t compTag.add(\"mark\");\n \t pronTag.add(\"prp\");\n \thds.pronTag.add(\"prp\");\n \tcompLemma.add(\"that\");\n \tcoordLemma.add(\"and\");\n \tverbComplementTag.add(\"ccomp\");\n \tverbComplementTag.add(\"parataxis\");\n\n \tinfVerbTag.add(\"xcomp\"); //Reuters reported Merkel to have said\n \tinfVerbTag.add(\"advcl\");\n \tdirectQuoteIntro.add(\":\");\n \tindirectQuoteIntroChunkValue.add(\"SBAR\");\n \thds.objectEqui.add(\"report\");\n \thds.objectEqui.add(\"quote\");\n \thds.potentialIndirectQuoteTrigger.add(\"say\");\n// \thds.objectEqui.add(\"confirm\");\n// \thds.subjectEqui.add(\"promise\");\n// \thds.subjectEqui.add(\"quote\");\n// \thds.subjectEqui.add(\"confirm\");\n }\n\t\t \n\t\t boolean containsSubordinateConjunction = false;\n\t\t\n\t\t \n\t\tfor (CoreMap sentence : sentences) {\n//\t\t\tSystem.out.println(\"PREPROCESSING..\");\n\t\t\t\tSentenceAnnotation sentenceAnn = new SentenceAnnotation(aJCas);\n\t\t\t\t\n\t\t\t\tint beginSentence = sentence.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endSentence = sentence.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(sentence.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tsentenceAnn.setBegin(beginSentence);\n\t\t\t\tsentenceAnn.setEnd(endSentence);\n\t\t\t\tsentenceAnn.addToIndexes();\n\t\t\t\t\n\t\t\t\t//SP Map offsets to NER\n\t\t\t\tList<NamedEntity> ners = JCasUtil.selectCovered(aJCas, //SPnew tut\n\t\t\t\t\t\tNamedEntity.class, sentenceAnn);\n\t\t\t\tfor (NamedEntity ne : ners){\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.jcasType.toString());\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.getCoveredText().toString());\n//\t\t\t\t\tSystem.out.println(\"NER TYPE: \" + ne.jcasType.casTypeCode);\n\t\t\t\t\t//Person is 71, Location is 213, Organization is 68 geht anders besser siehe unten\n\t\t\t\t\tint nerStart = ne\n\t\t\t\t\t\t\t.getBegin();\n\t\t\t\t\tint nerEnd = ne.getEnd();\n//\t\t\t\t\tSystem.out.println(\"NER: \" + ne.getCoveredText() + \" \" + nerStart + \"-\" + nerEnd ); \n\t\t\t\t\tString offsetNer = \"\" + nerStart + \"-\" + nerEnd;\n\t\t\t\t\thds.offsetToNer.put(offsetNer, ne.getCoveredText());\n//\t\t\t\t\tNer.add(offsetNer);\n\t\t\t\t\thds.Ner.add(offsetNer);\n//\t\t\t\t\tSystem.out.println(\"NER: TYPE \" +ne.getValue().toString());\n\t\t\t\t\tif (ne.getValue().equals(\"PERSON\")){\n\t\t\t\t\t\thds.NerPerson.add(offsetNer);\n\t\t\t\t\t}\n\t\t\t\t\telse if (ne.getValue().equals(\"ORGANIZATION\")){\n\t\t\t\t\t\thds.NerOrganization.add(offsetNer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//DBpediaLink info: map offsets to links\n\t\t\t\tList<DBpediaResource> dbpeds = JCasUtil.selectCovered(aJCas, //SPnew tut\n\t\t\t\t\t\tDBpediaResource.class, sentenceAnn);\n\t\t\t\tfor (DBpediaResource dbped : dbpeds){\n//\t\t\t\t\t\n//\t\t\t\t\tint dbStart = dbped\n//\t\t\t\t\t\t\t.getBegin();\n//\t\t\t\t\tint dbEnd = dbped.getEnd();\n\t\t\t\t\t// not found if dbpedia offsets are wrongly outside than sentences\n//\t\t\t\t\tSystem.out.println(\"DBPED SENT: \" + sentenceAnn.getBegin()+ \"-\" + sentenceAnn.getEnd() ); \n//\t\t\t\t\tString offsetDB = \"\" + dbStart + \"-\" + dbEnd;\n//\t\t\t\t\thds.labelToDBpediaLink.put(dbped.getLabel(), dbped.getUri());\n//\t\t\t\t\tSystem.out.println(\"NOW DBPED: \" + dbped.getLabel() + \"URI: \" + dbped.getUri() ); \n\t\t\t\t\thds.dbpediaSurfaceFormToDBpediaLink.put(dbped.getCoveredText(), dbped.getUri());\n//\t\t\t\t\tSystem.out.println(\"NOW DBPED: \" + dbped.getCoveredText() + \"URI: \" + dbped.getUri() ); \n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//SP Map offsets to lemma of opinion verb/noun; parser does not provide lemma\n\t\t\t\t for (CoreLabel token: sentence.get(TokensAnnotation.class)) {\n//\t\t\t\t\t System.out.println(\"LEMMA \" + token.lemma().toString());\n\t\t\t\t\t int beginTok = token.beginPosition();\n\t\t\t\t\t int endTok = token.endPosition();\n\t\t\t\t\t String offsets = \"\" + beginTok + \"-\" + endTok;\n\t\t\t\t\t hds.offsetToLemma.put(offsets, token.lemma().toString());\n\t\t\t\t\t \n\t\t\t\t\t \t if (opinion_verbs.contains(token.lemma().toString())){\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionVerb.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t hds.OpinionExpression.add(offsets);\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionExpression.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t \n//\t\t\t \t System.out.println(\"offsetToLemmaOfOpinionVerb \" + token.lemma().toString());\n\t\t\t\t\t \t }\n\t\t\t\t\t \t if (passive_opinion_verbs.contains(token.lemma().toString())){\n\t\t\t\t\t\t\t hds.offsetToLemmaOfPassiveOpinionVerb.put(offsets, token.lemma().toString());\n\t\t\t\t\t\t\t hds.OpinionExpression.add(offsets);\n\t\t\t\t\t\t\t hds.offsetToLemmaOfOpinionExpression.put(offsets, token.lemma().toString());\n//\t\t\t \t System.out.println(\"offsetToLemmaOfPassiveOpinionVerb \" + token.lemma().toString());\n\t\t\t\t\t \t }\n\n\t\t\t\t } \n\n\t\t\t//SPnew parser\n\t\t\tTree tree = sentence.get(TreeAnnotation.class);\n\t\t\tTreebankLanguagePack tlp = new PennTreebankLanguagePack();\n\t\t\tGrammaticalStructureFactory gsf = tlp.grammaticalStructureFactory();\n\t\t\tGrammaticalStructure gs = gsf.newGrammaticalStructure(tree);\n\t\t\tCollection<TypedDependency> td = gs.typedDependenciesCollapsed();\n\n\t\t\t \n//\t\t\tSystem.out.println(\"TYPEDdep\" + td);\n\t\t\t\n\t\t\tObject[] list = td.toArray();\n//\t\t\tSystem.out.println(list.length);\n\t\t\tTypedDependency typedDependency;\nDEPENDENCYSEARCH: for (Object object : list) {\n\t\t\ttypedDependency = (TypedDependency) object;\n//\t\t\tSystem.out.println(\"DEP \" + typedDependency.dep().toString()+ \n//\t\t\t\t\t\" GOV \" + typedDependency.gov().toString()+ \n//\t\t\t\" :: \"+ \" RELN \"+typedDependency.reln().toString());\n\t\t\tString pos = null;\n String[] elements;\n String verbCand = null;\n int beginVerbCand = -5;\n\t\t\tint endVerbCand = -5;\n\t\t\tString offsetVerbCand = null;\n\n if (compTag.contains(typedDependency.reln().toString())) {\n \tcontainsSubordinateConjunction = true;\n// \tSystem.out.println(\"subordConj \" + typedDependency.dep().toString().toLowerCase());\n }\n \n else if (subjTag.contains(typedDependency.reln().toString())){\n \thds.predicateToSubjectChainHead.clear();\n \thds.subjectToPredicateChainHead.clear();\n \t\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n//\t\t\t\tSystem.out.println(\"VERBCand \" + verbCand + offsetVerbCand);\n//\t\t\t\tfor (HashMap.Entry<String, String> entry : hds.offsetToLemma.entrySet()) {\n//\t\t\t\t String key = entry.getKey();\n//\t\t\t\t Object value = entry.getValue();\n//\t\t\t\t System.out.println(\"OFFSET \" + key + \" LEMMA \" + value);\n//\t\t\t\t // FOR LOOP\n//\t\t\t\t}\n//\t\t\t\tif (hds.offsetToLemma.containsKey(offsetVerbCand)){\n//\t\t\t\t\tString verbCandLemma = hds.offsetToLemma.get(offsetVerbCand);\n//\t\t\t\t\tif (hds.objectEqui.contains(verbCandLemma) || hds.subjectEqui.contains(verbCandLemma)){\n//\t\t\t\t\t\tSystem.out.println(\"SUBJCHAIN BEGIN verbCand \" + verbCand);\n//\t\t\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println(\"SUBJCHAINHEAD1\");\n\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\tSystem.out.println(\"verbCand \" + verbCand);\n\t\t\t\t//hack for subj after obj said Zwickel (obj) on Monday morning (subj)\n\t\t\t\tif (language.equals(\"en\") \n\t\t\t\t\t\t&& hds.predicateToObject.containsKey(offsetVerbCand)\n\t\t\t\t\t\t){\n// \t\tSystem.out.println(\"CONTINUE DEP\");\n \t\tcontinue DEPENDENCYSEARCH;\n \t}\n\t\t\t\telse {\n\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n\t\t\t\t}\n }\n //Merkel is concerned\n else if (passSubjTag.contains(typedDependency.reln().toString())){\n \t//Merkel was reported\n \t//Merkel was concerned\n \t//Merkel was quoted\n \thds.predicateToSubjectChainHead.clear();\n \thds.subjectToPredicateChainHead.clear();\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n//\t\t\t\tSystem.out.println(\"VERBCand \" + verbCand + offsetVerbCand);\n//\t\t\t\tif (hds.offsetToLemma.containsKey(offsetVerbCand)){\n//\t\t\t\t\tString verbCandLemma = hds.offsetToLemma.get(offsetVerbCand);\n////\t\t\t\t\tSystem.out.println(\"LEMMA verbCand \" + verbCandLemma);\n//\t\t\t\t\tif (hds.objectEqui.contains(verbCandLemma) || hds.subjectEqui.contains(verbCandLemma)){\n//\t\t\t\t\t\tSystem.out.println(\"SUBJCHAIN BEGIN verbCand \" + verbCand);\n//\t\t\t\t\t\tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n//\t\t\t\t\t}\n//\t\t\t\t}\n \t\n \tstoreRelations(typedDependency, hds.predicateToSubjectChainHead, hds.subjectToPredicateChainHead, hds);\n// \tSystem.out.println(\"SUBJCHAINHEAD2\");\n \t//Merkel is concerned\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfPassiveOpinionVerb,\n \t\t\thds);\n }\n //Meanwhile, the ECB's vice-president, Christian Noyer, was reported at the start of the week to have said that the bank's future interest-rate moves\n// would depend on the behavior of wage negotiators as well as the pace of the economic recovery.\n\n else if (apposTag.contains(typedDependency.reln().toString())){\n \t\n \tString subjCand = typedDependency.gov().toString().toLowerCase();\n \tint beginSubjCand = typedDependency.gov().beginPosition();\n \tint endSubjCand = typedDependency.gov().endPosition();\n \tString offsetSubjCand = \"\" + beginSubjCand + \"-\" + endSubjCand;\n \tString appo = typedDependency.dep().toString().toLowerCase();\n\t\t\t\tint beginAppo = typedDependency.dep().beginPosition();\n\t\t\t\tint endAppo = typedDependency.dep().endPosition();\n\t\t\t\tString offsetAppo = \"\" + beginAppo + \"-\" + endAppo;\n\t\t\t\t\n// \tSystem.out.println(\"APPOSITION1 \" + subjCand + \"::\"+ appo + \":\" + offsetSubjCand + \" \" + offsetAppo);\n \thds.subjectToApposition.put(offsetSubjCand, offsetAppo);\n }\n else if (relclauseTag.contains(typedDependency.reln().toString())){\n \tString subjCand = typedDependency.gov().toString().toLowerCase();\n \tint beginSubjCand = typedDependency.gov().beginPosition();\n \tint endSubjCand = typedDependency.gov().endPosition();\n \tString offsetSubjCand = \"\" + beginSubjCand + \"-\" + endSubjCand;\n \tverbCand = typedDependency.dep().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.dep().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.dep().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n\t\t\t\tString subjCandPos = null;\n\t\t\t\tif (hds.predicateToSubject.containsKey(offsetVerbCand)){\n\t\t\t\t\t\n\t\t\t\t\tif (subjCand.matches(\".+?/.+?\")) { \n\t\t\t\t\t\telements = subjCand.split(\"/\");\n\t\t\t\t\t\tsubjCand = elements[0];\n\t\t\t\t\t\tsubjCandPos = elements[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tString del = hds.predicateToSubject.get(offsetVerbCand);\n\t\t\t\t\thds.predicateToSubject.remove(offsetVerbCand);\n\t\t\t\t\thds.subjectToPredicate.remove(del);\n\t\t\t\t\thds.normalPredicateToSubject.remove(offsetVerbCand);\n\t\t\t\t\thds.subjectToNormalPredicate.remove(del);\n//\t\t\t\t\tSystem.out.println(\"REMOVE RELPRO \" + verbCand + \"/\" + hds.offsetToLemma.get(del));\n\t\t\t\t\thds.predicateToSubject.put(offsetVerbCand, offsetSubjCand);\n\t\t\t\t\thds.subjectToPredicate.put( offsetSubjCand, offsetVerbCand);\n\t\t\t\t\thds.normalPredicateToSubject.put(offsetVerbCand, offsetSubjCand);\n\t\t\t\t\thds.subjectToNormalPredicate.put( offsetSubjCand, offsetVerbCand);\n//\t\t\t\t\tSystem.out.println(\"RELCLAUSE \" + subjCand + \"::\" + \":\" + verbCand);\n\t\t\t\t\thds.offsetToSubjectHead.put(offsetSubjCand,subjCand);\n\t\t\t\t\thds.SubjectHead.add(offsetSubjCand);\n\t\t\t\t\t\n\t\t\t\t\tif (subjCandPos != null && hds.pronTag.contains(subjCandPos)){\n\t\t\t\t\t\thds.PronominalSubject.add(offsetSubjCand);\n\t\t\t\t\t}\n\t\t\t\t}\n \t\n \t\n }\n \n else if (dirObjTag.contains(typedDependency.reln().toString())\n \t\t){\n \tstoreRelations(typedDependency, hds.predicateToObject, hds.ObjectToPredicate, hds);\n \tverbCand = typedDependency.gov().toString().toLowerCase();\n\t\t\t\tbeginVerbCand = typedDependency.gov().beginPosition();\n\t\t\t\tendVerbCand = typedDependency.gov().endPosition();\n\t\t\t\toffsetVerbCand = \"\" + beginVerbCand + \"-\" + endVerbCand;\n\t\t\t\t\n\t\t\t\tString objCand = typedDependency.dep().toString().toLowerCase();\n \tint beginObjCand = typedDependency.dep().beginPosition();\n \tint endObjCand = typedDependency.dep().endPosition();\n \tString offsetObjCand = \"\" + beginObjCand + \"-\" + endObjCand;\n \tString objCandPos;\n \tif (objCand.matches(\".+?/.+?\")) { \n\t\t\t\t\telements = objCand.split(\"/\");\n\t\t\t\t\tobjCand = elements[0];\n\t\t\t\t\tobjCandPos = elements[1];\n//\t\t\t\t\tSystem.out.println(\"PRON OBJ \" + objCandPos);\n\t\t\t\t\tif (pronTag.contains(objCandPos)){\n\t\t\t\t\thds.PronominalSubject.add(offsetObjCand);\n\t\t\t\t\t}\n\t\t\t\t\t}\n// \tSystem.out.println(\"DIROBJ STORE ONLY\");\n \t//told Obama\n \t//said IG metall boss Klaus Zwickel\n \t// problem: pointing DO\n \t//explains David Gems, pointing out the genetically manipulated species.\n \t if (language.equals(\"en\") \n \t\t\t\t\t\t&& !hds.normalPredicateToSubject.containsKey(offsetVerbCand)\n \t\t\t\t\t\t){\n// \t\t System.out.println(\"INVERSE SUBJ HACK ENGLISH PREDTOOBJ\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t }\n }\n //was reported to have said\n else if (infVerbTag.contains(typedDependency.reln().toString())){\n \tstoreRelations(typedDependency, hds.mainToInfinitiveVerb, hds.infinitiveToMainVerb, hds);\n// \tSystem.out.println(\"MAIN-INF\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t\n }\n else if (aclauseTag.contains(typedDependency.reln().toString())){\n \tstoreRelations(typedDependency, hds.nounToInfinitiveVerb, hds.infinitiveVerbToNoun, hds);\n// \tSystem.out.println(\"NOUN-INF\");\n \tdetermineSubjectToVerbRelations(typedDependency, \n \t\t\thds.offsetToLemmaOfOpinionVerb,\n \t\t\thds);\n \t\n }\n \n \n\n\t\t\t}\n\t\t\t\n//\t\t\tSemanticGraph dependencies = sentence.get(CollapsedCCProcessedDependenciesAnnotation.class);\n//\t\t\tSystem.out.println(\"SEM-DEP \" + dependencies);\t\n\t\t}\n\t\t\n\n\t\tMap<Integer, edu.stanford.nlp.dcoref.CorefChain> corefChains = document.get(CorefChainAnnotation.class);\n\t\t \n\t\t if (corefChains == null) { return; }\n\t\t //SPCOPY\n\t\t for (Entry<Integer, edu.stanford.nlp.dcoref.CorefChain> entry: corefChains.entrySet()) {\n//\t\t System.out.println(\"Chain \" + entry.getKey() + \" \");\n\t\t \tint chain = entry.getKey();\n\t\t String repMenNer = null;\n\t\t String repMen = null;\n\t\t String offsetRepMenNer = null;\n\n\t\t List<IaiCorefAnnotation> listCorefAnnotation = new ArrayList<IaiCorefAnnotation>();\n\t\t \n\t\t for (CorefMention m : entry.getValue().getMentionsInTextualOrder()) {\n\t\t \tboolean corefMentionContainsNer = false;\n\t\t \tboolean repMenContainsNer = false;\n\n//\t\t \n\n\t\t\t\t// We need to subtract one since the indices count from 1 but the Lists start from 0\n\t\t \tList<CoreLabel> tokens = sentences.get(m.sentNum - 1).get(TokensAnnotation.class);\n\t\t // We subtract two for end: one for 0-based indexing, and one because we want last token of mention not one following.\n//\t\t System.out.println(\" \" + m + \", i.e., 0-based character offsets [\" + tokens.get(m.startIndex - 1).beginPosition() +\n//\t\t \", \" + tokens.get(m.endIndex - 2).endPosition() + \")\");\n\t\t \n\t\t int beginCoref = tokens.get(m.startIndex - 1).beginPosition();\n\t\t\t\t int endCoref = tokens.get(m.endIndex - 2).endPosition();\n\t\t\t\t String offsetCorefMention = \"\" + beginCoref + \"-\" + endCoref;\n\t\t\t\t String corefMention = m.mentionSpan;\n\n\t\t\t\t CorefMention RepresentativeMention = entry.getValue().getRepresentativeMention();\n\t\t\t\t repMen = RepresentativeMention.mentionSpan;\n\t\t\t\t List<CoreLabel> repMenTokens = sentences.get(RepresentativeMention.sentNum - 1).get(TokensAnnotation.class);\n//\t\t\t\t System.out.println(\"REPMEN ANNO \" + \"\\\"\" + repMen + \"\\\"\" + \" is representative mention\" +\n// \", i.e., 0-based character offsets [\" + repMenTokens.get(RepresentativeMention.startIndex - 1).beginPosition() +\n//\t\t \", \" + repMenTokens.get(RepresentativeMention.endIndex - 2).endPosition() + \")\");\n\t\t\t\t int beginRepMen = repMenTokens.get(RepresentativeMention.startIndex - 1).beginPosition();\n\t\t\t\t int endRepMen = repMenTokens.get(RepresentativeMention.endIndex - 2).endPosition();\n\t\t\t\t String offsetRepMen = \"\" + beginRepMen + \"-\" + endRepMen;\n\t\t \t \n\t\t\t\t//Determine repMenNer that consists of largest NER (Merkel) to (Angela Merkel)\n\t\t\t\t //and \"Chancellor \"Angela Merkel\" to \"Angela Merkel\"\n\t\t \t //Further reduction to NER as in \"Chancellor Angela Merkel\" to \"Angela Merkel\" is\n\t\t\t\t //done in determineBestSubject. There, Chunk information and subjectHead info is available.\n\t\t\t\t //Chunk info and subjectHead info is used to distinguish \"Chancellor Angela Merkel\" to \"Angela Merkel\"\n\t\t\t\t //from \"The enemies of Angela Merkel\" which is not reduced to \"Angela Merkel\"\n\t\t\t\t //Problem solved: The corefMentions of a particular chain do not necessarily have the same RepMenNer (RepMen) \n\t\t\t\t // any more: Chancellor Angela Merkel repMenNer Chancellor Angela Merkel , then Angela Merkel has RepMenNer Angela Merkel\n\t\t\t\t if (offsetRepMenNer != null && hds.Ner.contains(offsetRepMenNer)){\n//\t\t\t\t\t System.out.println(\"NEWNer.contains(offsetRepMenNer)\");\n\t\t\t\t }\n\t\t\t\t else if (offsetRepMen != null && hds.Ner.contains(offsetRepMen)){\n\t\t\t\t\t repMenNer = repMen;\n\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\tSystem.out.println(\"NEWNer.contains(offsetRepMen)\");\n\t\t\t\t }\n\t\t\t\t else if (offsetCorefMention != null && hds.Ner.contains(offsetCorefMention)){\n\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\tSystem.out.println(\"Ner.contains(offsetCorefMention)\");\n\t\t\t\t\t}\n\t\t\t\t else {\n\t\t\t\t\t corefMentionContainsNer = offsetsContainAnnotation(offsetCorefMention,hds.Ner);\n\t\t\t\t\t repMenContainsNer = offsetsContainAnnotation(offsetRepMen,hds.Ner);\n//\t\t\t\t\t System.out.println(\"ELSE Ner.contains(offsetCorefMention)\");\n\t\t\t\t }\n\t\t\t\t //Determine repMenNer that contains NER\n\t\t\t\t\tif (repMenNer == null){\n\t\t\t\t\t\tif (corefMentionContainsNer){\n\t\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT1\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (repMenContainsNer){\n\t\t\t\t\t\t\trepMenNer = repMen;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT2\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no NER:\n\t\t\t\t\t\t//Pronoun -> repMen is repMenNer\n\t\t\t\t\t\telse if (hds.PronominalSubject.contains(offsetCorefMention) && repMen != null){\n\t\t\t\t\t\t\trepMenNer = repMen;\n\t\t\t\t\t\t\toffsetRepMenNer = offsetRepMen;\n//\t\t\t\t\t\t\tSystem.out.println(\"DEFAULT3\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t//other no NER: corefMention is repMenNer because it is closer to original\n\t\t\t\t\t\trepMenNer = corefMention;\n\t\t\t\t\t\toffsetRepMenNer = offsetCorefMention;\n//\t\t\t\t\t\tSystem.out.println(\"DEFAULT4\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t \n \t IaiCorefAnnotation corefAnnotation = new IaiCorefAnnotation(aJCas);\n\t\t\t\n\t\t\t\t\t\n\n\n\t\t\t\t\tcorefAnnotation.setBegin(beginCoref);\n\t\t\t\t\tcorefAnnotation.setEnd(endCoref);\n\t\t\t\t\tcorefAnnotation.setCorefMention(corefMention);\n\t\t\t\t\tcorefAnnotation.setCorefChain(chain);\n\t\t\t\t\t//done below\n//\t\t\t\t\tcorefAnnotation.setRepresentativeMention(repMenNer);\n//\t\t\t\t\tcorefAnnotation.addToIndexes(); \n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tlistCorefAnnotation.add(corefAnnotation);\n\t\t\t\t\t\n//\t\t\t\t\tdone below:\n//\t\t\t\t\t offsetToRepMen.put(offsetCorefMention, repMenNer);\n//\t\t\t\t\t RepMen.add(offsetCorefMention);\n\t\t\t\t\t\n\t\t\t\t\t \n\t\t }//end coref mention\n//\t\t System.out.println(\"END Chain \" + chain );\n//\t\t System.out.println(listCorefAnnotation.size());\n\t\t String offsetCorefMention = null;\n\t\t for (int i = 0; i < listCorefAnnotation.size(); i++) {\n\t\t \tIaiCorefAnnotation corefAnnotation = listCorefAnnotation.get(i);\n\t\t \tcorefAnnotation.setRepresentativeMention(repMenNer);\n\t\t \tcorefAnnotation.addToIndexes();\n\t\t \toffsetCorefMention = \"\" + corefAnnotation.getBegin() + \"-\" + corefAnnotation.getEnd();\n\t\t\t\t\thds.offsetToRepMen.put(offsetCorefMention, repMenNer);\n\t\t\t\t\thds.RepMen.add(offsetCorefMention);\n\t\t\t\t\t//COREF\n//\t\t\t\t\tSystem.out.println(\"Chain \" + corefAnnotation.getCorefChain());\n//\t\t\t\t\tSystem.out.println(\"corefMention \" + corefAnnotation.getCorefMention() + offsetCorefMention);\n//\t\t\t\t\tSystem.out.println(\"repMenNer \" + repMenNer);\n\t\t }\n\t\t } //end chains\n\n\n//\t\t System.out.println(\"NOW quote finder\");\n\n\n\t\t\n\t\t///* quote finder: begin find quote relation and quotee\n\t\t// direct quotes\n\t\t\n\t\t\n\t\tString quotee_left = null;\n\t\tString quotee_right = null; \n\t\t\n\t\tString representative_quotee_left = null;\n\t\tString representative_quotee_right = null; \n\t\t\n\t\tString quote_relation_left = null;\n\t\tString quote_relation_right = null;\n\t\t\n\t\tString quoteType = null;\n\t\tint quoteeReliability = 5;\n\t\tint quoteeReliability_left = 5;\n\t\tint quoteeReliability_right = 5;\n\t\tint quotee_end = -5;\n\t\tint quotee_begin = -5;\n\t\t\n\t\tboolean quoteeBeforeQuote = false;\n\n\n\t\n\t\t\n\t\t// these are all the quotes in this document\n\t\tList<CoreMap> quotes = document.get(QuotationsAnnotation.class);\n\t\tfor (CoreMap quote : quotes) {\n\t\t\tif (quote.get(TokensAnnotation.class).size() > 5) {\n\t\t\t\tQuoteAnnotation annotation = new QuoteAnnotation(aJCas);\n\n\t\t\t\tint beginQuote = quote.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endQuote = quote.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(quote.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tannotation.setBegin(beginQuote);\n\t\t\t\tannotation.setEnd(endQuote);\n\t\t\t\tannotation.addToIndexes();\n//\t\t\t}\n//\t\t}\n//\t\t\n//\t\tList<Q> newQuotes = document.get(QuotationsAnnotation.class);\t\t\n//\t\tfor (CoreMap annotation : newQuotes) {\n//\t\t\t\tif (1==1){\n//\t\t\t\tRe-initialize markup variables since they are also used for indirect quotes\n\t\t\t\tquotee_left = null;\n\t\t\t\tquotee_right = null; \n\t\t\t\t\n\t\t\t\trepresentative_quotee_left = null;\n\t\t\t\trepresentative_quotee_right = null;\n\t\t\t\t\n\t\t\t\tquote_relation_left = null;\n\t\t\t\tquote_relation_right = null;\n\t\t\t\tquoteeReliability = 5;\n\t\t\t\tquoteeReliability_left = 5;\n\t\t\t\tquoteeReliability_right = 5;\n\t\t\t\tquotee_end = -5;\n\t\t\t\tquotee_begin = -5;\n\t\t\t\tquoteType = \"direct\";\n\t\t\t\tquoteeBeforeQuote = false;\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> directQuoteTokens = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\tToken.class, annotation);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> followTokens = JCasUtil.selectFollowing(aJCas,\n\t\t\t\t\t\tToken.class, annotation, 1);\n\t\t\t\t\n \n//\t\t\t\tfor (Token aFollowToken: followTokens){\n//\t\t\t\t\t List<Chunk> chunks = JCasUtil.selectCovering(aJCas,\n//\t\t\t\t\tChunk.class, aFollowToken);\n \n//direct quote quotee right:\n\t\t\t\t\n\t for (Token aFollow2Token: followTokens){\n\t\t\t\t\t List<SentenceAnnotation> sentencesFollowQuote = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t SentenceAnnotation.class, aFollow2Token);\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t for (SentenceAnnotation sentenceFollowsQuote: sentencesFollowQuote){\n\t\t\t\t\t\t List<Chunk> chunks = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\tChunk.class, sentenceFollowsQuote);\n//\t\t\tSystem.out.println(\"DIRECT QUOTE RIGHT\");\n\t\t\tString[] quote_annotation_result = determine_quotee_and_quote_relation(\"RIGHT\", \n\t\t\t\t\tchunks, hds, annotation);\n\t\t\tif (quote_annotation_result.length>=4){\n\t\t\t quotee_right = quote_annotation_result[0];\n\t\t\t representative_quotee_right = quote_annotation_result[1];\n\t\t\t quote_relation_right = quote_annotation_result[2];\n\t\t\t try {\n\t\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t quoteeReliability_right = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t //Will Throw exception!\n\t\t\t //do something! anything to handle the exception.\n\t\t\t\tquoteeReliability = -5;\n\t\t\t\tquoteeReliability_right = -5;\n\t\t\t\t}\t\t\t\t\t \n\t\t\t }\n//\t\t\tSystem.out.println(\"DIRECT QUOTE RIGHT RESULT quotee \" + quotee_right + \" representative_quotee \" + representative_quotee_right\n//\t\t\t\t\t+ \" quote_relation \" + quote_relation_right);\n\t\t \n\t\t\t}\n\t\t\t\t\t \n\t\t\t\t\t \n }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<Token> precedingTokens = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t\t\tToken.class, annotation, 1);\n for (Token aPrecedingToken: precedingTokens){ \n \t\n \tif (directQuoteIntro.contains(aPrecedingToken.getLemma().getValue().toString()) \n \t\t\t|| compLemma.contains(aPrecedingToken.getLemma().getValue().toString())) {\n// \t\tSystem.out.println(\"Hello, World lemma found\" + aPrecedingToken.getLemma().getValue());\n \t\tquoteeBeforeQuote = true;\n \t}\n \t\tList <NamedEntity> namedEntities = null;\n \t\tList <Token> tokens = null;\n \t\tList<Chunk> chunks = null;\n \t\t\n\t\t\t\t List<Sentence> precedingSentences = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t \t\tSentence.class, aPrecedingToken, 1);\n\t\t\t\t \n\t\t\t\t\t\tif (precedingSentences.isEmpty()){\n\t\t\t\t\t\t\tList<Sentence> firstSentence;\n\t\t\t\t \tfirstSentence = JCasUtil.selectCovering(aJCas,\n\t\t\t\t \t\tSentence.class, aPrecedingToken);\n\n\t\t\t\t \tfor (Sentence aSentence: firstSentence){\n\t\t\t\t \t\t\n\n\t\t\t\t\t\t\t\tchunks = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\t\tChunk.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t \t\tnamedEntities = JCasUtil.selectCovered(aJCas,\n\t \t \t\tNamedEntity.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\t\t\t\t \t\ttokens = JCasUtil.selectCovered(aJCas,\n\t\t\t\t \t\t\t\tToken.class, aSentence.getBegin(), aPrecedingToken.getEnd());\n\t\t\t\t \t\n\t\t\t\t \t}\n\t\t\t\t\t\t}\n\t\t\t\t else {\t\n\t\t\t\t \tfor (Sentence aSentence: precedingSentences){\n//\t\t\t\t \t\tSystem.out.println(\"Hello, World sentence\" + aSentence);\n\t\t\t\t \t\tchunks = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tChunk.class, aSentence, aPrecedingToken);\n\t\t\t\t \t\tnamedEntities = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tNamedEntity.class, aSentence, aPrecedingToken);\n\t\t\t\t \t\ttokens = JCasUtil.selectBetween(aJCas,\n\t\t\t\t \t\t\t\tToken.class, aSentence, aPrecedingToken);\n\t\t\t\t \t}\n\t\t\t\t }\n \t\n//\t\t\t\t \n//\t\t\t\t\t\tSystem.out.println(\"DIRECT QUOTE LEFT\");\n\t\t\t\t\t\tString[] quote_annotation_direct_left = determine_quotee_and_quote_relation(\"LEFT\", chunks,\n\t\t\t\t\t\t\t\t hds, annotation\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(\"QUOTE ANNOTATION \" + quote_annotation_direct_left.length);\t\t\n\t\tif (quote_annotation_direct_left.length>=4){\n//\t\t\tSystem.out.println(\"QUOTE ANNOTATION UPDATE \" + quote_annotation_direct_left[0] +\n//\t\t\t\t\t\" \" + quote_annotation_direct_left[1] + \" \" +\n//\t\t\t\t\tquote_annotation_direct_left[2]);\n\t\t quotee_left = quote_annotation_direct_left[0];\n\t\t representative_quotee_left = quote_annotation_direct_left[1];\n\t\t quote_relation_left = quote_annotation_direct_left[2];\n\t\t try {\n\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_direct_left[3]);\n\t\t\t quoteeReliability_left = Integer.parseInt(quote_annotation_direct_left[3]);\n\t\t\t} catch (NumberFormatException e) {\n\t\t //Will Throw exception!\n\t\t //do something! anything to handle the exception.\n\t\t\tquoteeReliability = -5;\n\t\t\tquoteeReliability_left = -5;\n\t\t\t}\t\t\t\t\t \n\t\t }\n//\t\tSystem.out.println(\"DIRECT QUOTE LEFT RESULT quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left\n//\t\t\t\t+ \" quote_relation \" + quote_relation_left);\n\t\t//no subject - predicate quotee quote_relation, quote introduced with colon: \n\t\tif (quotee_left == null && quote_relation_left == null && representative_quotee_left == null \n\t\t&& directQuoteIntro.contains(aPrecedingToken.getLemma().getValue().toString())){\n//\t\t\tSystem.out.println(\"NER DIRECT QUOTE LEFT COLON\");\n\t\t\tString quoteeCandOffset = null; \n\t\t\tString quoteeCandText = null;\n\t\t if (namedEntities.size() == 1){\n \t \tfor (NamedEntity ne : namedEntities){\n// \t \t\tSystem.out.println(\"ONE NER \" + ne.getCoveredText());\n \t \t\tquoteeCandText = ne.getCoveredText();\n\t\t\t\t\tquote_relation_left = aPrecedingToken.getLemma().getValue().toString();\n\t\t\t\t\tquotee_end = ne.getEnd();\n\t\t\t\t\tquotee_begin = ne.getBegin();\n\t\t\t\t\tquoteeCandOffset = \"\" + quotee_begin + \"-\" + quotee_end;\n\t\t\t\t\tquoteeReliability = 1;\n\t\t\t\t\tquoteeReliability_left = 1;\n \t }\n \t }\n \t else if (namedEntities.size() > 1) {\n \t \tint count = 0;\n \t \tString quotee_cand = null;\n// \t \tSystem.out.println(\"Hello, World ELSE SEVERAL NER\");\n \t \tfor (NamedEntity ner : namedEntities){\n// \t \t\tSystem.out.println(\"Hello, World NER TYPE\" + ner.getValue());\n \t \t\tif (ner.getValue().equals(\"PERSON\")){\n \t \t\t\tcount = count + 1;\n \t \t\t\tquotee_cand = ner.getCoveredText();\n \t \t\t\tquotee_end = ner.getEnd();\n \t \t\t\tquotee_begin = ner.getBegin();\n \t \t\t\tquoteeCandOffset = \"\" + quotee_begin + \"-\" + quotee_end;\n \t \t\t\t\n// \t \t\t\tSystem.out.println(\"Hello, World FOUND PERSON\" + quotee_cand);\n \t \t\t}\n \t \t}\n \t \tif (count == 1){ // there is exactly one NER.PERSON\n// \t \t\tSystem.out.println(\"ONE PERSON, SEVERAL NER \" + quotee_cand);\n \t \t\t\tquoteeCandText = quotee_cand;\n\t\t\t\t\t\tquote_relation_left = aPrecedingToken.getLemma().getValue().toString();\n\t\t\t\t\t\tquoteeReliability = 3;\n\t\t\t\t\t\tquoteeReliability_left = 3;\n \t \t}\n \t }\n\t\t if(quoteeCandOffset != null && quoteeCandText != null ){\n//\t\t \t quotee_left = quoteeCandText;\n\t\t \t String result [] = determineBestRepMenSubject(\n\t\t \t\t\t quoteeCandOffset,quoteeCandOffset, quoteeCandText, hds);\n\t\t \t if (result.length>=2){\n\t\t \t\t quotee_left = result [0];\n\t\t \t\t representative_quotee_left = result [1];\n//\t\t \t System.out.println(\"RESULT2 NER quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left);\n\t\t \t }\n\t\t }\n\t\t}\n }\n\t\t\n \n\n\t\t\t\t\n\t\t\t\tif (quotee_left != null && quotee_right != null){\n//\t\t\t\t\tSystem.out.println(\"TWO QUOTEES\");\n\t\t\t\t\t\n\t\t\t\t\tif (directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\".\") \n\t\t\t\t\t\t|| \tdirectQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"!\")\n\t\t\t\t\t\t|| directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"?\")\n\t\t\t\t\t\t\t){\n//\t\t\t\t\t\tSystem.out.println(\"PUNCT \" + quotee_left + quote_relation_left + quoteeReliability_left);\n\t\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\",\")){\n//\t\t\t\t\t\tSystem.out.println(\"COMMA \" + quotee_right + \" \" + quote_relation_right + \" \" + quoteeReliability_right);\n\t\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t\t}\n\t\t\t\t\telse if (!directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\".\")\n\t\t\t\t\t\t\t&& !directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"!\")\n\t\t\t\t\t\t\t&& !directQuoteTokens.get(directQuoteTokens.size() - 2).getLemma().getValue().equals(\"?\")\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\t\t\tSystem.out.println(\"NO PUNCT \" + quotee_right + \" \" + quote_relation_right + \" \" + quoteeReliability_right);\n\t\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n//\t\t\t\t\t\tSystem.out.println(\"UNCLEAR LEFT RIGHT \" + quotee_left + quote_relation_left + quote + quotee_right + quote_relation_right);\n\t\t\t\t\tannotation.setQuotee(\"<unclear>\");\n\t\t\t\t\tannotation.setQuoteRelation(\"<unclear>\");\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (quoteeBeforeQuote == true){\n\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t}\n\t\t\t\telse if (quotee_left != null){\n//\t\t\t\t\tSystem.out.println(\"QUOTEE LEFT\" + quotee_left + quote_relation_left + quoteeReliability_left);\n\t\t\t\t\tannotation.setQuotee(quotee_left);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t}\n\t\t\t\telse if (quotee_right != null){\n//\t\t\t\t\tSystem.out.println(\"QUOTEE RIGHT FOUND\" + quotee_right + \" QUOTE RELATION \" + quote_relation_right + \":\" + quoteeReliability_right);\n\t\t\t\t\tannotation.setQuotee(quotee_right);\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t\tannotation.setQuoteeReliability(quoteeReliability_right);\n\t\t\t\t\tannotation.setRepresentativeQuoteeMention(representative_quotee_right);\n\t\t\t\t}\n\t\t\t\telse if (quote_relation_left != null ){\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_left);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n//\t\t\t\t\tSystem.out.println(\"NO QUOTEE FOUND\" + quote + quote_relation_left + quote_relation_right);\n\t\t\t\t}\n\t\t\t\telse if (quote_relation_right != null){\n\t\t\t\t\tannotation.setQuoteRelation(quote_relation_right);\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n\t\t\t\t}\n\t\t\t\telse if (quoteType != null){\n\t\t\t\t\tannotation.setQuoteType(quoteType);\n//\t\t\t\t\tSystem.out.println(\"Hello, World NO QUOTEE and NO QUOTE RELATION FOUND\" + quote);\n\t\t\t\t}\n\t\t\t\tif (annotation.getRepresentativeQuoteeMention() != null){\n//\t\t\t\t\tSystem.out.println(\"NOW!!\" + annotation.getRepresentativeQuoteeMention());\n\t\t\t\t\tif (hds.dbpediaSurfaceFormToDBpediaLink.containsKey(annotation.getRepresentativeQuoteeMention())){\n\t\t\t\t\t\tannotation.setQuoteeDBpediaUri(hds.dbpediaSurfaceFormToDBpediaLink.get(annotation.getRepresentativeQuoteeMention()));\n//\t\t\t\t\t\tSystem.out.println(\"DBPRED FOUND\" + annotation.getRepresentativeQuoteeMention() + \" URI: \" + annotation.getQuoteeDBpediaUri());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} //for direct quote\n\t\t\n\t\t// annotate indirect quotes: opinion verb + 'that' ... until end of sentence: said that ...\n\n//\t\tList<CoreMap> sentences = document.get(SentencesAnnotation.class); //already instantiated above\nINDIRECTQUOTE:\t\tfor (CoreMap sentence : sentences) {\n//\t\t\tif (sentence.get(TokensAnnotation.class).size() > 5) { \n\t\t\t\tSentenceAnnotation sentenceAnn = new SentenceAnnotation(aJCas);\n\t\t\t\t\n\t\t\t\tint beginSentence = sentence.get(TokensAnnotation.class).get(0)\n\t\t\t\t\t\t.beginPosition();\n\t\t\t\tint endSentence = sentence.get(TokensAnnotation.class)\n\t\t\t\t\t\t.get(sentence.get(TokensAnnotation.class).size() - 1)\n\t\t\t\t\t\t.endPosition();\n\t\t\t\tsentenceAnn.setBegin(beginSentence);\n\t\t\t\tsentenceAnn.setEnd(endSentence);\n//\t\t\t\tsentenceAnn.addToIndexes();\n\t\t\t\t\n\t\t\t\tQuoteAnnotation indirectQuote = new QuoteAnnotation(aJCas);\n\t \tint indirectQuoteBegin = -5;\n\t\t\t\tint indirectQuoteEnd = -5;\n\t\t\t\tboolean subsequentDirectQuoteInstance = false;\n\t\t\t\t\n\t\t\t\tList<Chunk> chunksIQ = JCasUtil.selectCovered(aJCas,\n\t\t\t\tChunk.class, sentenceAnn);\n\t\t\t\tList<Chunk> chunksBeforeIndirectQuote = null;\n\t\t\t\t\n\t\t\t\tint index = 0;\nINDIRECTCHUNK:\tfor (Chunk aChunk : chunksIQ) {\n\t\t\t\t\tindex++;\n\t\t\t\t\t\n//\t\t\t\t\tSystem.out.println(\"INDIRECT QUOTE CHUNK VALUE \" + aChunk.getChunkValue().toString());\n//\t\t\t\t\tif (aChunk.getChunkValue().equals(\"SBAR\")) {\n\t\t\t\t\tif(indirectQuoteIntroChunkValue.contains(aChunk.getChunkValue())){\n//\t\t\t\t\t\tSystem.out.println(\"INDIRECT QUOTE INDEX \" + \"\" + index);\n\t\t\t\t\t\t\n\t\t\t\t\t\tList<Token> tokensSbar = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\tToken.class, aChunk);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (Token aTokenSbar : tokensSbar){\n//\t\t\t\t\t\t\tString that = \"that\";\n\t\t\t\t\t\t\tif (compLemma.contains(aTokenSbar.getLemma().getCoveredText())){\n\t\t\t\t\t\t// VP test: does that clause contain VP?\n//\t\t\t\t\t\t\t\tSystem.out.println(\"TOK1\" + aTokenSbar.getLemma().getCoveredText());\n//\t\t\t \tQuoteAnnotation indirectQuote = new QuoteAnnotation(aJCas);\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\t indirectQuoteBegin = aChunk.getEnd() + 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t chunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\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\t//NEW\n//\t\t\t\t\t\t\t\tif (LANGUAGE == \"en\")\n\t\t\t\t\t\t\t\tList<Token> precedingSbarTokens = JCasUtil.selectPreceding(aJCas,\n\t\t\t\t\t\t\t\t\t\tToken.class, aChunk, 1);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (Token aPrecedingSbarToken: precedingSbarTokens){ \n//\t\t\t\t\t\t\t\t\tSystem.out.println(\"TOK2\" + aPrecedingSbarToken.getLemma().getCoveredText());\n\t\t\t\t \tif (coordLemma.contains(aPrecedingSbarToken.getLemma().getValue().toString())){\n//\t\t\t\t \t\tSystem.out.println(\"TOKK\" + aPrecedingSbarToken.getLemma().getCoveredText());\n\t\t\t\t \t\tchunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\n\t\t\t\t \t\tint k = 0;\n\t\t\t\t \tSAY:\tfor (Chunk chunkBeforeAndThat : chunksBeforeIndirectQuote){\n//\t\t\t\t \t\t\txxxx\n\t\t\t\t \t\tk++;\n\t\t\t\t \t\t\tif (chunkBeforeAndThat.getChunkValue().equals(\"VP\")){\n\t\t\t\t \t\t\t\t\n\t\t\t\t \t\t\t\tList<Token> tokensInVp = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tToken.class, chunkBeforeAndThat);\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Token aTokenInVp : tokensInVp){\n//\t\t\t\t\t\t\t\t\t\t\t\t\tString and;\n//\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"TOKK\" + aTokenInVp.getLemma().getCoveredText());\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (aTokenInVp.getLemma().getValue().equals(\"say\")){\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"SAY OLD\" + indirectQuoteBegin + \":\" + sentenceAnn.getCoveredText());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tchunksBeforeIndirectQuote = chunksIQ.subList(0, k);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tindirectQuoteBegin = chunksBeforeIndirectQuote.get(chunksBeforeIndirectQuote.size()-1).getEnd()+1;\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\t\t\t\t\tSystem.out.println(\"SAY NEW\" + indirectQuoteBegin + \":\" );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak SAY;\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}\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\t\t\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t}\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\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\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\t\n\t\t\t\t\t\t\t\tList<QuoteAnnotation> coveringDirectQuoteChunk = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t\t\t\tQuoteAnnotation.class, aChunk);\n\t\t\t\t\t\t\t\tif (coveringDirectQuoteChunk.isEmpty()){\n//\t\t\t\t\t\t\t\t indirectQuoteBegin = aChunk.getEnd() + 1;\n\t\t\t\t\t\t\t\t indirectQuote.setBegin(indirectQuoteBegin);\n//\t\t\t\t\t\t\t\t chunksBeforeIndirectQuote = chunksIQ.subList(0, index-1);\n\t\t\t\t\t\t\t\t indirectQuoteEnd = sentenceAnn.getEnd();\n\t\t\t\t\t\t\t\t indirectQuote.setEnd(indirectQuoteEnd);\n\t\t\t\t\t\t\t\t indirectQuote.addToIndexes();\n\t\t\t\t\t\t\t\t subsequentDirectQuoteInstance = false;\n//\t\t\t\t\t\t\t\t System.out.println(\"SUBSEQUENT FALSE\");\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\t \n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t List<Token> followTokens = JCasUtil.selectFollowing(aJCas,\n\t\t\t\t\t\t\t\t\t\t\tToken.class, indirectQuote, 1);\n\t\t\t\t\t\t\t\t for (Token aFollow3Token: followTokens){\n\t\t\t\t\t\t\t\t\t List<QuoteAnnotation> subsequentDirectQuotes = JCasUtil.selectCovering(aJCas,\n\t\t\t\t\t\t\t\t\t\t\tQuoteAnnotation.class,aFollow3Token);\n\t\t\t\t\t\t\t\t\t if (!subsequentDirectQuotes.isEmpty()){\n\t\t\t\t\t\t\t\t\t\t for (QuoteAnnotation subsequentDirectQuote: subsequentDirectQuotes){\n\t\t\t\t\t\t\t\t\t\t\t if (subsequentDirectQuote.getRepresentativeQuoteeMention() != null\n\t\t\t\t\t\t\t\t\t\t\t\t && subsequentDirectQuote.getRepresentativeQuoteeMention().equals(\"<unclear>\")){\n//\t\t\t\t\t\t\t\t\t\t\t System.out.println(\"SUBSEQUENT FOUND\"); \n\t\t\t\t\t\t\t\t\t\t\t hds.subsequentDirectQuote = subsequentDirectQuote;\n\t\t\t\t\t\t\t\t\t\t\t subsequentDirectQuoteInstance = true;\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t }\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\t break INDIRECTCHUNK;\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}\t\t\n\t\t\t\t}\n\t\t\t\t\tif (indirectQuoteBegin >= 0 && indirectQuoteEnd >= 0){\n//\t\t\t\t\t\tList<QuoteAnnotation> coveringDirectQuote = JCasUtil.selectCovering(aJCas,\n//\t\t\t\t\t\t\t\tQuoteAnnotation.class, indirectQuote);\n//\t\t\t\t\t\tif (coveringDirectQuote.isEmpty()){\n////\t\t\t\t\t\t\t\n//\t\t\t\t\t\tindirectQuote.addToIndexes();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse {\n//\t\t\t\t\t\t\t//indirect quote is covered by direct quote and therefore discarded\n//\t\t\t\t\t\t\tcontinue INDIRECTQUOTE;\n//\t\t\t\t\t\t}\n\t\t\t\t\tList<QuoteAnnotation> coveredDirectQuotes = JCasUtil.selectCovered(aJCas,\n\t\t\t\t\t\t\t\tQuoteAnnotation.class, indirectQuote);\n\t\t\t\t\tfor (QuoteAnnotation coveredDirectQuote : coveredDirectQuotes){\n//\t\t\t\t\t\tSystem.out.println(\"Hello, World covered direct quote\" + coveredDirectQuote.getCoveredText());\n\t\t\t\t\t\t//delete coveredDirectQuoteIndex\n\t\t\t\t\t\tcoveredDirectQuote.removeFromIndexes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//no indirect quote in sentence\n\t\t\t\t\t\tcontinue INDIRECTQUOTE;\n\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\tRe-initialize markup variables since they are also used for direct quotes\n\t\t\t\t\t\tquotee_left = null;\n\t\t\t\t\t\tquotee_right = null; \n\t\t\t\t\t\t\n\t\t\t\t\t\trepresentative_quotee_left = null;\n\t\t\t\t\t\trepresentative_quotee_right = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tquote_relation_left = null;\n\t\t\t\t\t\tquote_relation_right = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tquoteType = \"indirect\";\n\t\t\t\t\t\tquoteeReliability = 5;\n\t\t\t\t\t\tquoteeReliability_left = 5;\n\t\t\t\t\t\tquoteeReliability_right = 5;\n\t\t\t\t\t\tquotee_end = -5;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\tif (chunksBeforeIndirectQuote != null){\n//\t\t\t\t\t\t\tSystem.out.println(\"chunksBeforeIndirectQuote FOUND!! \");\n\t\t\t\t\t\t\tString[] quote_annotation_result = determine_quotee_and_quote_relation(\"LEFT\", chunksBeforeIndirectQuote,\n\t\t\t\t\t\t\t\t\t hds, indirectQuote\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t );\n\t\t\tif (quote_annotation_result.length>=4){\n\t\t\t quotee_left = quote_annotation_result[0];\n\t\t\t representative_quotee_left = quote_annotation_result[1];\n\t\t\t quote_relation_left = quote_annotation_result[2];\n//\t\t\t System.out.println(\"INDIRECT QUOTE LEFT RESULT quotee \" + quotee_left + \" representative_quotee \" + representative_quotee_left\n//\t\t\t\t\t + \" QUOTE RELATION \" + quote_relation_left);\n\t\t\t try {\n\t\t\t\t quoteeReliability = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t quoteeReliability_left = Integer.parseInt(quote_annotation_result[3]);\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tquoteeReliability = -5;\n\t\t\t\tquoteeReliability_left = -5;\n\t\t\t\t}\t\t\t\t\t \n\t\t\t }\n\t\t\t\n\t\t\t}\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (quotee_left != null){\n\t\t\t\t\t\t\tindirectQuote.setQuotee(quotee_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n\t\t\t\t\t\t\tindirectQuote.setQuoteeReliability(quoteeReliability_left);\n\t\t\t\t\t\t\tindirectQuote.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//indirect quote followed by direct quote:\n\t\t\t\t\t\t\t//the quotee and quote relation of the indirect quote are copied to the direct quote \n\t\t\t\t\t\t\t//Genetic researcher Otmar Wiestler hopes that the government's strict controls on genetic research \n\t\t\t\t\t\t\t//will be relaxed with the advent of the new ethics commission. \n\t\t\t\t\t\t\t//\"For one thing the government urgently needs advice, because of course it's such an extremely \n\t\t\t\t\t\t\t//complex field. And one of the reasons Chancellor Schröder formed this new commission was without \n\t\t\t\t\t\t\t//a doubt to create his own group of advisors.\"\n\n\t\t\t\t\t\t\tif (subsequentDirectQuoteInstance == true\n\t\t\t\t\t\t\t\t&&\thds.subsequentDirectQuote.getRepresentativeQuoteeMention().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t&& \thds.subsequentDirectQuote.getQuotee().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t&& \thds.subsequentDirectQuote.getQuoteRelation().equals(\"<unclear>\")\n\t\t\t\t\t\t\t\t\t){\n//\t\t\t\t\t\t\t\tSystem.out.println(\"SUBSEQUENT UNCLEAR DIR QUOTE FOUND!!\"); \n\t\t\t\t\t\t\t\tint begin = hds.subsequentDirectQuote.getBegin();\n\t\t\t\t\t\t\t\tint end = hds.subsequentDirectQuote.getEnd();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuotee(quotee_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteType(\"direct\");\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setQuoteeReliability(quoteeReliability_left + 2);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.setRepresentativeQuoteeMention(representative_quotee_left);\n\t\t\t\t\t\t\t\thds.subsequentDirectQuote.addToIndexes();\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\t\t\t\t\n\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println(\"Hello, World INDIRECT QUOTE \" + quotee_left + quote_relation_left + quoteeReliability);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (quote_relation_left != null){\n\t\t\t\t\t\t\tindirectQuote.setQuoteRelation(quote_relation_left);\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (quoteType != null){\n\t\t\t\t\t\t\tindirectQuote.setQuoteType(quoteType);\n//\t\t\t\t\t\t\tSystem.out.println(\"Hello, World INDIRECT QUOTE NOT FOUND\" + quote_relation_left);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (indirectQuote.getRepresentativeQuoteeMention() != null){\n//\t\t\t\t\t\t\tSystem.out.println(\"NOW!!\" + indirectQuote.getRepresentativeQuoteeMention());\n\t\t\t\t\t\t\tif (hds.dbpediaSurfaceFormToDBpediaLink.containsKey(indirectQuote.getRepresentativeQuoteeMention())){\n\t\t\t\t\t\t\t\tindirectQuote.setQuoteeDBpediaUri(hds.dbpediaSurfaceFormToDBpediaLink.get(indirectQuote.getRepresentativeQuoteeMention()));\n//\t\t\t\t\t\t\t\tSystem.out.println(\"DBPEDIA \" + indirectQuote.getRepresentativeQuoteeMention() + \" URI: \" + hds.dbpediaSurfaceFormToDBpediaLink.get(indirectQuote.getRepresentativeQuoteeMention()));\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\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t }\n//\t\t\t} //for chunk\n//\t\t\t\tsay without that\n//\t\t\t}\t\t\n\t\t} //Core map sentences indirect quotes\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void replaceLemma (SentenceList list, String replacementLemma, String key){\n\n \n int sentenceListSize = list.sentenceList.size();\n // iterate over sentence lists\n for (int i = 0; i < sentenceListSize; i++){\n SentenceObj sentenceObjTemp = list.sentenceList.get(i);\n\n // get a word list from each sentence\n LinkedList<WordObj> wordListTemp = sentenceObjTemp.wordList;\n int wordListSize = sentenceObjTemp.wordList.size();\n\n // iterate over wordListTemp and get individual wordObjects\n for (int j = 0; j < wordListSize; j++){\n\n WordObj wordObjTemp = wordListTemp.get(j);\n\n if (wordObjTemp.getName().equals(key)){\n wordObjTemp.setLemma(replacementLemma);\n continue;\n }\n }\n }\n }",
"public void prepareAlignment(String sq1, String sq2) {\n if(F == null) {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n F = new float[3][n+1][m+1];\n B = new TracebackAffine[3][n+1][m+1];\n for(int k = 0; k < 3; k++) {\n for(int i = 0; i < n+1; i ++) {\n for(int j = 0; j < m+1; j++)\n B[k][i][j] = new TracebackAffine(0,0,0);\n }\n }\n }\n\n //alignment already been run and existing matrix is big enough to reuse.\n else if(seq1.length() <= n && seq2.length() <= m) {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n }\n\n //alignment already been run but matrices not big enough for new alignment.\n //create all new matrices.\n else {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n F = new float[3][n+1][m+1];\n B = new TracebackAffine[3][n+1][m+1];\n for(int k = 0; k < 3; k++) {\n for(int i = 0; i < n+1; i ++) {\n for(int j = 0; j < m+1; j++)\n B[k][i][j] = new TracebackAffine(0,0,0);\n }\n }\n }\n }",
"void initiateProbabilityMatrix( int numberOfDocs ) {\r\n double jTransition = 1 / (double)numberOfDocs;\r\n for (int i = 0; i < numberOfDocs; i++) {\r\n //Determine probability of going to a link\r\n double prob;\r\n if (out[i] == 0) prob = jTransition;\r\n else prob = 1 / (double)out[i];\r\n //Set a valid link to prob\r\n for (int j = 0; j < numberOfDocs; j++) {\r\n double pTransition = 0;\r\n if (p[i][j] == LINK) pTransition = prob;\r\n if (out[i] == 0) pTransition = jTransition;\r\n //Calculate transition value in p matrix\r\n p[i][j] = (1 - BORED) * pTransition + BORED * jTransition;\r\n }\r\n }\r\n }",
"public double rel(TextInstance doc1, TextInstance doc2, int preprocType, MatrixBuilder builder);",
"public void modified(String[][] content);",
"public void updateProjector(Matrix4f trans) {\r\n\t\tMatrix4f oldM = new Matrix4f(getProjector().getModelM());\r\n\t\tgetProjector().setModelM(trans.multiply(oldM.transpose()).transpose().toArray());\r\n\t}",
"private static String Lemmatize(String strTemp) {\n Properties obj = new Properties();\n obj.setProperty(\"annotators\", \"tokenize, ssplit, pos, lemma\"); //setting the properties although using only for lemmatization purpose but one cannot\n // removed the tokenize ssplit pos arguments\n StanfordCoreNLP pipeObj = new StanfordCoreNLP(obj);\t\t//using stanFord library and creating its object\n Annotation annotationObj;\n annotationObj = new Annotation(strTemp); //creating annotation object and passing the string word\n pipeObj.annotate(annotationObj);\n String finalLemma = new Sentence(strTemp).lemma(0); //we only using the lemma of the passed string Word rest of the features like pos, ssplit, tokenized are ignored\n //although we can use it but tokenization has been done perviously\n //with my own code\n return finalLemma;\n }",
"public int changePOS(String newWord, String oldPOS, String newPOS,\n\t\t\tString newRole, int increment) {\t\t\n\t\tPropertyConfigurator.configure( \"conf/log4j.properties\" );\n\t\tLogger myLogger = Logger.getLogger(\"dataholder.updateDataHolder.changePOS\");\t\t\n\t\tmyLogger.trace(\"Enter changePOS\");\n\t\tmyLogger.trace(\"newWord: \"+newWord);\n\t\tmyLogger.trace(\"oldPOS: \"+oldPOS);\n\t\tmyLogger.trace(\"newPOS: \"+newPOS);\n\t\tmyLogger.trace(\"newRole: \"+newRole);\n\t\t\n\t\toldPOS = oldPOS.toLowerCase();\n\t\tnewPOS = newPOS.toLowerCase();\n\n\t\tString modifier = \"\";\n\t\tString tag = \"\";\n\t\tString sentence = null;\n\t\tint sign = 0;\n\n\t\t// case 1: oldPOS is \"s\" AND newPOS is \"m\"\n\t\t//if (oldPOS.matches(\"^.*s.*$\") && newPOS.matches(\"^.*m.*$\")) {\n\t\tif (oldPOS.equals(\"s\") && newPOS.equals(\"m\")) {\n\t\t\tmyLogger.trace(\"Case 1\");\n\t\t\tthis.discountPOS(newWord, oldPOS, newPOS, \"all\");\n\t\t\tsign += markKnown(newWord, \"m\", \"\", \"modifiers\", increment);\n\t\t\t\n\t\t\t// For all the sentences tagged with $word (m), re tag by finding their parent tag.\n\t\t\tfor (int i = 0; i < this.getSentenceHolder().size(); i++) {\n\t\t\t\tSentenceStructure sent = this.getSentenceHolder().get(i);\n\t\t\t\tif (sent.getTag().equals(newWord)) {\n\t\t\t\t\tint sentID = i;\n\t\t\t\t\tmodifier = sent.getModifier();\n\t\t\t\t\ttag = sent.getTag();\n\t\t\t\t\tsentence = sent.getSentence();\n\t\t\t\t\t\n\t\t\t\t\ttag = this.getParentSentenceTag(sentID);\n\t\t\t\t\tmodifier = modifier + \" \" + newWord;\n\t\t\t\t\tmodifier.replaceAll(\"^\\\\s*\", \"\");\n\t\t\t\t\tList<String> pair = this.getMTFromParentTag(tag);\n\t\t\t\t\tString m = pair.get(1);\n\t\t\t\t\ttag = pair.get(2);\n\t\t\t\t\tif (m.matches(\"^.*\\\\w.*$\")) {\n\t\t\t\t\t\tmodifier = modifier + \" \" + m;\n\t\t\t\t\t}\n\t\t\t\t\tthis.tagSentenceWithMT(sentID, sentence, modifier, tag, \"changePOS[n->m:parenttag]\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} \n\t\t// case 2: oldPOS is \"s\" AND newPOS is \"b\"\n\t\telse if ((oldPOS.matches(\"s\")) && (newPOS.matches(\"b\"))) {\n\t\t\tmyLogger.trace(\"Case 2\");\n\t\t\tint certaintyU = 0;\n\n\t\t\t// find (newWord, oldPOS)\n\t\t\tWordPOSKey newOldKey = new WordPOSKey(newWord, oldPOS);\n\t\t\tif (this.getWordPOSHolder().containsKey(newOldKey)) {\n\t\t\t\tWordPOSValue v = this.getWordPOSHolder().get(newOldKey);\n\t\t\t\tcertaintyU = v.getCertaintyU();\n\t\t\t\tcertaintyU += increment;\n\t\t\t\tthis.discountPOS(newWord, oldPOS, newPOS, \"all\");\n\t\t\t}\n\n\t\t\t// find (newWord, newPOS)\n\t\t\tWordPOSKey newNewKey = new WordPOSKey(newWord, newPOS);\n\t\t\tif (!this.getWordPOSHolder().containsKey(newNewKey)) {\n//\t\t\t\tthis.getWordPOSHolder().put(newNewKey, new WordPOSValue(newRole,\n//\t\t\t\t\t\tcertaintyU, 0, \"\", \"\"));\n\t\t\t\tthis.add2Holder(DataHolder.WORDPOS, \n\t\t\t\t\t\tArrays.asList(new String [] {newWord, newPOS, newRole, Integer.toString(certaintyU), \"0\", \"\", \"\"}));\n\t\t\t}\n\t\t\t\n\t\t\tmyLogger.debug(\"\\t: change [\"+newWord+\"(\"+oldPOS+\" => \"+newPOS+\")] role=>\"+newRole+\"\\n\");\n\t\t\tsign++;\n\n\t\t\t// for all sentences tagged with (newWord, \"b\"), re tag them\n\t\t\tfor (int i = 0; i < this.getSentenceHolder().size(); i++) {\n\t\t\t\tString thisTag = this.getSentenceHolder().get(i).getTag();\n\t\t\t\tint thisSentID = i;\n\t\t\t\tString thisSent = this.getSentenceHolder().get(i).getSentence();\n\t\t\t\tif (StringUtils.equals(thisTag, newWord)) {\t\t\t\t\t\t\n\t\t\t\t\tthis.tagSentenceWithMT(thisSentID, thisSent, \"\", \"NULL\", \"changePOS[s->b: reset to NULL]\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// case 3: oldPOS is \"b\" AND newPOS is \"s\"\n\t\telse if (oldPOS.matches(\"b\") && newPOS.matches(\"s\")) {\n\t\t\tmyLogger.trace(\"Case 3\");\n\t\t\tint certaintyU = 0;\n\n\t\t\t// find (newWord, oldPOS)\n\t\t\tWordPOSKey newOldKey = new WordPOSKey(newWord, oldPOS);\n\t\t\tif (this.getWordPOSHolder().containsKey(newOldKey)) {\n\t\t\t\tWordPOSValue v = this.getWordPOSHolder().get(newOldKey);\n\t\t\t\tcertaintyU = v.getCertaintyU();\n\t\t\t\tcertaintyU += increment;\n\t\t\t\tthis.discountPOS(newWord, oldPOS, newPOS, \"all\");\n\t\t\t}\n\n\t\t\t// find (newWord, newPOS)\n\t\t\tWordPOSKey newNewKey = new WordPOSKey(newWord, newPOS);\n\t\t\tif (!this.getWordPOSHolder().containsKey(newOldKey)) {\n//\t\t\t\tthis.getWordPOSHolder().put(newNewKey, );\n\t\t\t\tthis.updateWordPOS(newNewKey, new WordPOSValue(newRole,\n\t\t\t\t\t\tcertaintyU, 0, \"\", \"\"));\n\t\t\t}\n\t\t\t\n\t\t\tmyLogger.debug(\"\\t: change [\"+newWord+\"(\"+oldPOS+\" => \"+newPOS+\")] role=>\"+newRole+\"\\n\");\n\t\t\tsign++;\n\t\t}\n\t\t\n\t\tint sum_certaintyU = this.getSumCertaintyU(newWord);\n\t\t\n\t\tif (sum_certaintyU > 0) {\n\t\t\tIterator<Map.Entry<WordPOSKey, WordPOSValue>> iter2 = this.getWordPOSHolderIterator();\n\t\t\twhile (iter2.hasNext()) {\n\t\t\t\tMap.Entry<WordPOSKey, WordPOSValue> e = iter2.next();\n\t\t\t\tif (e.getKey().getWord().equals(newWord)) {\n\t\t\t\t\te.getValue().setCertiantyL(sum_certaintyU);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tmyLogger.trace(\"Return: \"+sign);\n\t\tmyLogger.trace(\"Quite changePOS\\n\");\n\t\treturn sign;\n\t}",
"void updateJointTransform(RigidBodyTransform jointTransformToUpdate);",
"public void updateDocument(Document arg0) throws ContestManagementException {\r\n }",
"public void putDocumentAfterEdit() {\r\n\t\tif(pointer < strategy.getEntireHistory().size()-1) {\r\n\t\t\tstrategy.putVersion(currentDocument);\r\n\t\t}\r\n\t}",
"private void upgradeDictionary() throws IOException {\n File fileAnnotation = new File(filePathAnnSource);\n FileReader fr = new FileReader(fileAnnotation);\n BufferedReader br = new BufferedReader(fr);\n String line;\n\n if (fileAnnotation.exists()) {\n while ((line = br.readLine()) != null) {\n String[] annotations = line.split(\"[ \\t]\");\n String word = line.substring(line.lastIndexOf(\"\\t\") + 1);\n\n if (!nonDictionaryTerms.contains(word.toLowerCase())) {\n if (dictionaryTerms.containsKey(word.toLowerCase())) {\n if (!dictionaryTerms.get(word.toLowerCase()).equalsIgnoreCase(annotations[1])) {\n System.out.println(\"Conflict: word:: \" + word + \" Dictionary Tag: \" + dictionaryTerms.get(word.toLowerCase()) + \" New Tag: \" + annotations[1]);\n nonDictionaryTerms.add(word.toLowerCase());\n// removeLineFile(dictionaryTerms.get(word.toLowerCase())+\" \"+word.toLowerCase(),filePathDictionaryAuto);\n dictionaryTerms.remove(word.toLowerCase());\n writePrintStream(word, filePathNonDictionaryAuto);\n }\n } else {\n System.out.println(\"Updating Dictionary:: Word: \" + word + \"\\tTag: \" + annotations[1]);\n dictionaryTerms.put(word.toLowerCase(), annotations[1]);\n writePrintStream(annotations[1] + \" \" + word.toLowerCase(), filePathDictionaryAuto);\n }\n }\n\n// if (dictionaryTerms.containsKey(word.toLowerCase())) {\n// if (!dictionaryTerms.get(word.toLowerCase()).equalsIgnoreCase(annotations[1])) {\n// System.out.println(\"Conflict: word: \" + word + \" Dictionary Tag: \" + dictionaryTerms.get(word.toLowerCase()) + \" New Tag: \" + annotations[1]);\n// nonDictionaryTerms.add(word.toLowerCase());\n//\n// }\n// } else {\n// dictionary.add(word.toLowerCase());\n// dictionaryTerms.put(word.toLowerCase(), annotations[1]);\n// System.out.println(\"Updating Dictionary: Word: \" + word + \"\\tTag: \" + annotations[1]);\n// }\n }\n }\n\n\n br.close();\n fr.close();\n }",
"void editAlignment(Alignment alignment, BeautiDoc doc) {\n\t\ttry {\n\t\t\tAlignmentViewer viewer = new AlignmentViewer(alignment);\n\t\t\tviewer.showInDialog();\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Something went wrong viewing the alignment: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void setAlignedSequence( Sequence alseq ) {\n\t\tthis.alignedsequence = alseq;\n\t\tif(alseq.id == null) alseq.id = id;\n\t\tif(seq != null) alseq.name = seq.getGroup();\n\t\tif(alseq.group == null) alseq.group = group;\n\t}",
"private int modifyByTrans(HttpServletRequest request, LineCodeMapper entityMapper, PrmVersionMapper pvMapper, LineCode po) throws Exception {\n TransactionStatus status = null;\r\n int n = 0;\r\n try {\r\n\r\n// txMgr = DBUtil.getDataSourceTransactionManager(request);\r\n// status = txMgr.getTransaction(DBUtil.getTransactionDefinition(request));\r\n status = txMgr.getTransaction(this.def);\r\n n = entityMapper.modifyLineCode(po);\r\n pvMapper.modifyPrmVersionForDraft(po);\r\n\r\n txMgr.commit(status);\r\n } catch (Exception e) {\r\n if (txMgr != null) {\r\n txMgr.rollback(status);\r\n }\r\n throw e;\r\n }\r\n return n;\r\n }",
"public abstract void organizationReversionProcess(Map jobParameters, Map<String, Integer> organizationReversionCounts);",
"public void onAnnotationsModified(Map<Annot, Integer> annots, Bundle extra) {\n/* 348 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 354 */ JSONObject result = prepareAnnotSnapshot(annots, AnnotAction.MODIFY, this.mPreModifyAnnotRect, this.mPreModifyPageNum);\n/* 355 */ this.mPreModifyAnnotRect = null;\n/* 356 */ takeAnnotSnapshot(result);\n/* 357 */ if (this.mToolManager.getAnnotManager() != null) {\n/* 358 */ this.mToolManager.getAnnotManager().onLocalChange(\"modify\");\n/* */ }\n/* */ }",
"private static void processPart (WorkPart part) \n\t\tthrows Exception\n\t{\n\t\tTextWrapper textWrapper = part.getPrimaryText();\n\t\tif (textWrapper == null) return;\n\t\tText primary = textWrapper.getText();\n\t\tint n = primary.getNumLines();\n\t\tTextLine[] primaryLines = primary.getLines();\n\t\tTextLine[] translationLines = new TextLine[n];\n\t\tCollection lines = pm.getLinesInWorkPart(part);\n\t\tint numTranslatedLines = 0;\n\t\tfor (Iterator it = lines.iterator(); it.hasNext(); ) {\n\t\t\tLine line = (Line)it.next();\n\t\t\tTextRange location = line.getLocation();\n\t\t\tif (location == null) continue;\n\t\t\tTextLocation start = location.getStart();\n\t\t\tif (start == null) continue;\n\t\t\tTextLocation end = location.getEnd();\n\t\t\tif (end == null) continue;\n\t\t\tint endIndex = end.getIndex();\n\t\t\tString lineTag = line.getTag();\n\t\t\tif (lineTag == null) continue;\n\t\t\tElement el = (Element)lineTagToElMap.get(lineTag);\n\t\t\tif (el == null) continue;\n\t\t\tlineTagsFound.add(lineTag);\n\t\t\tTextLine translationLine = new BuildParagraph(el, \n\t\t\t\tTextParams.ROMAN,\n\t\t\t\tTextParams.TRANSLATED_LINE_FONT_SIZE);\n\t\t\tTextLine primaryLine = primaryLines[endIndex];\n\t\t\tint primaryIndentation = primaryLine.getIndentation();\n\t\t\ttranslationLine.setIndentation(primaryIndentation +\n\t\t\t\tTextParams.TRANSLATION_INDENTATION);\n\t\t\ttranslationLines[endIndex] = translationLine;\n\t\t\tnumTranslatedLines++;\n\t\t}\n\t\tif (numTranslatedLines == 0) return;\n\t\tText translation = new Text();\n\t\ttranslation.setCollapseBlankLines(false);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tTextLine translationLine = translationLines[i];\n\t\t\tif (translationLine == null) {\n\t\t\t\ttranslation.appendBlankLine();\n\t\t\t} else {\n\t\t\t\ttranslation.appendLine(translationLine);\n\t\t\t}\n\t\t}\n\t\ttranslation.finalize();\n\t\tpm.begin();\n\t\tTextWrapper translationWrapper = new TextWrapper(translation);\n\t\tpm.save(translationWrapper);\n\t\tpart.addTranslation(translationTag, translationWrapper);\n\t\tpm.commit();\n\t}",
"@Override\n\tpublic void posModify() {\n\t\t\n\t}",
"@Override\n\tpublic void posModify() {\n\t\t\n\t}",
"protected void updateTextChange() {\n \t\t\tfText= fDocumentUndoManager.fTextBuffer.toString();\n \t\t\tfDocumentUndoManager.fTextBuffer.setLength(0);\n \t\t\tfPreservedText= fDocumentUndoManager.fPreservedTextBuffer.toString();\n \t\t\tfDocumentUndoManager.fPreservedTextBuffer.setLength(0);\n \t\t}",
"protected void redoTextChange() {\n \t\t\ttry {\n \t\t\t\tif (fDocumentUndoManager.fDocument instanceof IDocumentExtension4)\n \t\t\t\t\t((IDocumentExtension4) fDocumentUndoManager.fDocument).replace(fStart, fEnd - fStart, fText, fRedoModificationStamp);\n \t\t\t\telse\n \t\t\t\t\tfDocumentUndoManager.fDocument.replace(fStart, fEnd - fStart, fText);\n \t\t\t} catch (BadLocationException x) {\n \t\t\t}\n \t\t}",
"public void modifyText(ModifyEvent e) {\n Text redefineText = (Text) e.getSource();\n coll.set_value(Key, redefineText.getText());\n\n OtpErlangObject re = parent.getIdeBackend(parent.confCon, coll.type, coll.coll_id, Key, redefineText.getText());\n String reStr = Util.stringValue(re);\n //ErlLogger.debug(\"Ll:\"+document.getLength());\n try {\n parent.document.replace(0, parent.document.getLength(), reStr);\n } catch (BadLocationException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }",
"public void mutate(String chromSeq){\n\t\teffects = new String[alleles.length];\n\t\tfor (int i=0; i< alleles.length; i++){\n\t\t\teffects[i] = alleles[i].affect(geneModel, chromSeq);\n\t\t}\n\t}",
"public static void applyChangesToWriteModel(AdditionsAndRetractions changes, OntModel queryModel, OntModel writeModel, String editorUri) {\n Lock lock = null;\n try{\n lock = writeModel.getLock();\n lock.enterCriticalSection(Lock.WRITE);\n writeModel.getBaseModel().notifyEvent(new EditEvent(editorUri,true)); \n writeModel.add( changes.getAdditions() );\n writeModel.remove( changes.getRetractions() );\n }catch(Throwable t){\n log.error(\"error adding edit change n3required model to in memory model \\n\"+ t.getMessage() );\n }finally{\n writeModel.getBaseModel().notifyEvent(new EditEvent(editorUri,false));\n lock.leaveCriticalSection();\n } \n }",
"public void description() throws Exception {\n PrintWriter pw = new PrintWriter(System.getProperty(\"user.dir\")+ \"/resources/merged_file.txt\"); \n \n // BufferedReader for obtaining the description files of the ontology & ODP\n BufferedReader br1 = new BufferedReader(new FileReader(System.getProperty(\"user.dir\")+ \"/resources/ontology_description\")); \n BufferedReader br2 = new BufferedReader(new FileReader(System.getProperty(\"user.dir\")+ \"/resources/odps_description.txt\")); \n String line1 = br1.readLine(); \n String line2 = br2.readLine(); \n \n // loop is used to copy the lines of file 1 to the other \n if(line1==null){\n\t \tpw.print(\"\\n\");\n\t }\n while (line1 != null || line2 !=null) \n { \n if(line1 != null) \n { \n pw.println(line1); \n line1 = br1.readLine(); \n } \n \n if(line2 != null) \n { \n pw.println(line2); \n line2 = br2.readLine(); \n } \n } \n pw.flush(); \n // closing the resources \n br1.close(); \n br2.close(); \n pw.close(); \n \n // System.out.println(\"Merged\"); -> for checking the code execution\n /* On obtaining the merged file, Doc2Vec model is implemented so that vectors are\n * obtained. And the, similarity ratio of the ontology description with the ODPs \n * can be found using cosine similarity \n */\n \tFile file = new File(System.getProperty(\"user.dir\")+ \"/resources/merged_file.txt\"); \t\n SentenceIterator iter = new BasicLineIterator(file);\n AbstractCache<VocabWord> cache = new AbstractCache<VocabWord>();\n TokenizerFactory t = new DefaultTokenizerFactory();\n t.setTokenPreProcessor(new CommonPreprocessor()); \n LabelsSource source = new LabelsSource(\"Line_\");\n ParagraphVectors vec = new ParagraphVectors.Builder()\n \t\t.minWordFrequency(1)\n \t .labelsSource(source)\n \t .layerSize(100)\n \t .windowSize(5)\n \t .iterate(iter)\n \t .allowParallelTokenization(false)\n .workers(1)\n .seed(1)\n .tokenizerFactory(t) \n .build();\n vec.fit();\n \n //System.out.println(\"Check the file\");->for execution of code\n PrintStream p=new PrintStream(new File(System.getProperty(\"user.dir\")+ \"/resources/description_values\")); //storing the numeric values\n \n \n Similarity s=new Similarity(); //method that checks the cosine similarity\n s.similarityCheck(p,vec);\n \n \n }",
"public void redo()\r\n {\r\n if (changes!=null)\r\n {\r\n if (changes.getNext()!=null)\r\n {\r\n ignoreChange=true;\r\n changes = changes.getNext();\r\n changes.getElement().redo(doc);\r\n \r\n }\r\n }\r\n }",
"@Override\n\tpublic void setNodeMatrix(int nodeIndex, int matrixIndex, double[] matrix) {\n// \tSystem.out.println(\"old:\"+Arrays.toString(\n// \tArrayUtils.subarray(matrices[0][nodeIndex], matrixIndex * matrixSize, matrixIndex * matrixSize + matrixSize)\n// \t));\n// \tSystem.out.println(\"new:\"+Arrays.toString(matrix));\n System.arraycopy(matrix, 0, matrices[currentMatricesIndices[nodeIndex]][nodeIndex],\n matrixIndex * matrixSize, matrixSize);\n }",
"abstract public void updatePositionsAfterBetaReduction();",
"@Test\n\tpublic void testStoreProcessText4() {\n\t\tint sourceID = dm.storeProcessedText(pt2);\n\t\tassertTrue(sourceID > 0);\n\t\t\n\t\tds.startSession();\n\t\tSource source = ds.getSource(pt2.getMetadata().getUrl());\n\t\tList<Paragraph> paragraphs = (List<Paragraph>) ds.getParagraphs(source.getSourceID());\n\t\tassertTrue(pt2.getMetadata().getName().equals(source.getName()));\n\t\tassertTrue(pt2.getParagraphs().size() == paragraphs.size());\n\t\t\n\t\tfor(int i = 0; i < pt2.getParagraphs().size(); i++){\n\t\t\tParagraph p = paragraphs.get(i);\n\t\t\tParagraph originalP = pt2.getParagraphs().get(i);\n\t\t\tassertTrue(originalP.getParentOrder() == p.getParentOrder());\n\t\t\t\n\t\t\tList<Sentence> sentences = (List<Sentence>) ds.getSentences(p.getId());\n\t\t\tassertTrue(sentences.size() == 0);\n\t\t}\n\t\tds.closeSession();\t\t\n\t}",
"void setVersesWithWord(Word word);",
"@Override\n\tpublic void posModify() {\n\t\tgetEntityManager().refresh(instance);\n\t\tcambiarTipoCuenta(instance);\n\t\tgetEntityManager().flush();\n\t\tgetEntityManager().refresh(instance);\n\t\tresultList = null;\n\t\trootNode = null;\n\t}",
"public void applyAnnotationChanges() throws Exception {\n\t\tselectedChangeSet = this.getSelectedChanges();\n\t\tSwoopModel swoopModel = changeLog.swoopModel;\n\t\t\n\t\t// save current uncommitted changes\n\t\tList savedUncommittedChanges = new ArrayList(swoopModel.getUncommittedChanges());\n\t\tList savedCommittedChanges = new ArrayList(swoopModel.getCommittedChanges());\n\t\t\n\t\t// apply changes, two different methods depending on serialization method\n\t\tif (SwoopModel.changeSharingMethod == SwoopModel.JAVA_SER) {\n\t\t\tOWLOntology ont = null;\n\t\t\tfor (Iterator iter = selectedChangeSet.iterator(); iter.hasNext(); ) {\n\t\t\t\tOntologyChange change = (OntologyChange) iter.next();\n\t\t\t\tont = change.getOntology();\n\t\t\t\tchange.accept((ChangeVisitor) ont);\n\t\t\t}\n\t\t\tswoopModel.reloadOntology(ont, true);\n\t\t\tsavedCommittedChanges.addAll(selectedChangeSet);\n\t\t\tswoopModel.setUncommittedChanges(savedUncommittedChanges);\n\t\t\tswoopModel.setCommittedChanges(savedCommittedChanges);\n\t\t}\n\t\telse {\n\t\t\t// add annotation changes to uncommitted list and apply \n\t\t\tswoopModel.setUncommittedChanges(selectedChangeSet);\n\t\t\tswoopModel.applyOntologyChanges();\n\t\t\tswoopModel.setUncommittedChanges(savedUncommittedChanges);\n\t\t}\n\t\t\n\t\t// give success message\n\t\tJOptionPane.showMessageDialog(this, \"Ontology Changes applied successfully\", \"Annotated Changes\", JOptionPane.INFORMATION_MESSAGE);\n\t}",
"Builder addEducationalAlignment(AlignmentObject.Builder value);",
"@Override\n protected void updateCAS(JCas aJCas, JSONObject jsonResult) throws AnalysisEngineProcessException {\n double fullDocSentiment = 0;\n int sentenceCount = 0;\n\n if (jsonResult.has(\"sentences\")) {\n for (Object sen : jsonResult.getJSONArray(\"sentences\")) {\n JSONObject sentence = (JSONObject) sen;\n\n int begin = sentence.getJSONObject(\"sentence\").getInt(\"begin\");\n int end = sentence.getJSONObject(\"sentence\").getInt(\"end\");\n double sentimentValue = sentence.getDouble(\"sentiment\");\n\n fullDocSentiment += sentimentValue;\n sentenceCount += 1;\n\n Sentiment sentiment = new Sentiment(aJCas, begin, end);\n sentiment.setSentiment(sentimentValue);\n sentiment.addToIndexes();\n\n // Always sentence based\n AnnotationComment comment = new AnnotationComment(aJCas);\n comment.setReference(sentiment);\n comment.setKey(\"selection\");\n comment.setValue(SENTENCE_TYPE);\n comment.addToIndexes();\n }\n }\n\n // Add document sentiment\n if (sentenceCount > 1) {\n fullDocSentiment = fullDocSentiment / sentenceCount;\n\n Sentiment sentiment = new Sentiment(aJCas, 0, aJCas.getDocumentText().length());\n sentiment.setSentiment(fullDocSentiment);\n sentiment.addToIndexes();\n\n AnnotationComment comment = new AnnotationComment(aJCas);\n comment.setReference(sentiment);\n comment.setKey(\"selection\");\n comment.setValue(SENTENCE_TYPE);\n comment.addToIndexes();\n }\n }",
"@Test\n \tpublic void testSimpleAlignments()\n \t{\n \t\tSystem.out.format(\"\\n\\n-------testSimpleAlignments() ------------------------\\n\");\n \t\tPseudoDamerauLevenshtein DL = new PseudoDamerauLevenshtein();\n \t\t//DL.init(\"AB\", \"CD\", false, true);\n \t\t//DL.init(\"ACD\", \"ADE\", false, true);\n \t\t//DL.init(\"AB\", \"XAB\", false, true);\n \t\t//DL.init(\"AB\", \"XAB\", true, true);\n \t\t//DL.init(\"fit\", \"xfity\", true, true);\n \t\t//DL.init(\"fit\", \"xxfityyy\", true, true);\n \t\t//DL.init(\"ABCD\", \"BACD\", false, true);\n \t\t//DL.init(\"fit\", \"xfityfitz\", true, true);\n \t\t//DL.init(\"fit\", \"xfitfitz\", true, true);\n \t\t//DL.init(\"fit\", \"xfitfitfitfitz\", true, true);\n \t\t//DL.init(\"setup\", \"set up\", true, true);\n \t\t//DL.init(\"set up\", \"setup\", true, true);\n \t\t//DL.init(\"hobbies\", \"hobbys\", true, true);\n \t\t//DL.init(\"hobbys\", \"hobbies\", true, true);\n \t\t//DL.init(\"thee\", \"The x y the jdlsjds salds\", true, false);\n \t\tDL.init(\"Bismark\", \"... Bismarck lived...Bismarck reigned...\", true, true);\n \t\t//DL.init(\"refugee\", \"refuge x y\", true, true);\n \t\t//StringMatchingStrategy.APPROXIMATE_MATCHING_MINPROB\n \t\tList<PseudoDamerauLevenshtein.Alignment> alis = DL.computeAlignments(0.65);\n \t\tSystem.out.format(\"----------result of testSimpleAlignments() ---------------------\\n\\n\");\n \t\tfor (Alignment ali: alis)\n \t\t{\n \t\t\tali.print();\n \t\t}\n \t}",
"void setBioAssemblyTrans(int bioAssemblyIndex, int[] inputChainIndices, double[] inputTransform, String name);",
"public void reParse() {\r\n \r\n \t\tSystem.out.println(\"Starting reparse\");\r\n \r\n \t\t// to reparse an entire document\r\n \r\n \t\t// A. remove all document positions & problem markers\r\n \t\tSystem.out.println(\"DUMPING POSITIONS\");\r\n \t\tdumpPositions();\r\n \t\ttry {\r\n \t\t\tgetFile().deleteMarkers(IMarker.PROBLEM, true, IResource.DEPTH_ZERO);\r\n \t\t\t_parseErrors.clear();\r\n \t\t} catch (CoreException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \r\n \t\t// if this is not set, the document is new and has never been parsed before.\r\n \t\tif (_doc == null) {\r\n \t\t\tgetProjectNature().addToModel(this);\r\n \t\t} else {\r\n \r\n \t\t\t// B. remove compilation unit from model tree\r\n \t\t\tif(Config.debug()) {\r\n \t\t\t System.out.println(\"removing compilation unit from tree\");\r\n \t\t\t}\r\n \t\t\t// C. remove Document from project\r\n \t\t\tif(Config.debug()) {\r\n \t\t\t\tSystem.out.println(\"Remove document from project\");\r\n \t\t\t}\r\n \t\t\tgetProjectNature().removeDocument(this);\r\n \r\n \t\t\t// D. Re-add Document to the project (wich will cause it to be parsed)\r\n \t\t\tif(Config.debug()) {\r\n \t\t\t System.out.println(\"Re-add document to project\");\r\n \t\t\t}\r\n \t\t\tNamespace root = getProjectNature().getModel();\r\n \t\t\tgetProjectNature().addModelElement(this, root);\r\n \t\t}\r\n \r\n \t\tSystem.out.println(\"Einde reparse\");\r\n \t}",
"int updateByPrimaryKeySelective(AuthorDO record);",
"public static void main(String args[]) throws Exception {\n\n String sourceFile = args[0]; //source file has supervised SRL tags\n String targetFile = args[1]; //target file has supervised SRL tags\n String alignmentFile = args[2];\n String sourceClusterFilePath = args[3];\n String targetClusterFilePath = args[4];\n String projectionFilters = args[5];\n double sparsityThresholdStart = Double.parseDouble(args[6]);\n double sparsityThresholdEnd = Double.parseDouble(args[6]);\n\n\n Alignment alignment = new Alignment(alignmentFile);\n HashMap<Integer, HashMap<Integer, Integer>> alignmentDic = alignment.getSourceTargetAlignmentDic();\n\n final IndexMap sourceIndexMap = new IndexMap(sourceFile, sourceClusterFilePath);\n final IndexMap targetIndexMap = new IndexMap(targetFile, targetClusterFilePath);\n ArrayList<String> sourceSents = IO.readCoNLLFile(sourceFile);\n ArrayList<String> targetSents = IO.readCoNLLFile(targetFile);\n\n System.out.println(\"Projection started...\");\n DependencyLabelsAnalyser dla = new DependencyLabelsAnalyser();\n for (int senId = 0; senId < sourceSents.size(); senId++) {\n if (senId % 100000 == 0)\n System.out.print(senId);\n else if (senId % 10000 == 0)\n System.out.print(\".\");\n\n Sentence sourceSen = new Sentence(sourceSents.get(senId), sourceIndexMap);\n Sentence targetSen = new Sentence(targetSents.get(senId), targetIndexMap);\n int maxNumOfProjectedLabels = dla.getNumOfProjectedLabels(sourceSen, alignmentDic.get(senId));\n double trainGainPerWord = (double) maxNumOfProjectedLabels/targetSen.getLength();\n\n if (trainGainPerWord >= sparsityThresholdStart && trainGainPerWord< sparsityThresholdEnd) {\n dla.analysSourceTargetDependencyMatch(sourceSen, targetSen, alignmentDic.get(senId),\n sourceIndexMap, targetIndexMap, projectionFilters);\n }\n }\n System.out.print(sourceSents.size() + \"\\n\");\n dla.writeConfusionMatrix(\"confusion_\"+sparsityThresholdStart+\"_\"+sparsityThresholdEnd+\".out\", sourceIndexMap, targetIndexMap);\n }",
"public void generateRevisionOutput(RevisionResult resultAllAnalyzed);",
"private void onContentsChanged(IChangeEvent event) {\n IPosition fromPos = event.getFrom();\n int fromOffset = mapper.getOffset(fromPos.getLine(), fromPos.getChar());\n IPosition toPos = event.getTo();\n int toOffset = mapper.getOffset(toPos.getLine(), toPos.getChar());\n // Create a transformation that corresponds to the change.\n TransformBuilder builder = new TransformBuilder();\n builder.skip(fromOffset);\n if (fromOffset != toOffset)\n builder.delete(mapper.substring(fromOffset, toOffset));\n for (int i = 0; i < event.getTextLineCount(); i++) {\n if (i > 0)\n builder.insert(\"\\n\");\n builder.insert(event.getTextLine(i));\n }\n builder.skip(mapper.getLength() - toOffset);\n Transform transform = builder.flush();\n Assert.equals(mapper.getLength(), transform.getInputLength());\n for (IListener listener : listeners)\n listener.onChange(transform);\n doc.apply(transform);\n mapper.apply(transform);\n }",
"private static Positional_inverted_index posindexCorpus(DocumentCorpus corpus) throws ClassNotFoundException, InstantiationException, IllegalAccessException, FileNotFoundException, IOException {\n\n NewTokenProcessor processor = new NewTokenProcessor();\n Iterable<Document> docs = corpus.getDocuments(); //call registerFileDocumentFactory first?\n\n List<Double> Doc_length = new ArrayList<>();\n Positional_inverted_index index = new Positional_inverted_index();\n\n double token_count = 0;\n\n // Iterate through the documents, and:\n for (Document d : docs) {\n //File f = new File(path + \"\\\\\" + d.getTitle());\n File f = new File(path + \"\\\\\" + d.getFileName().toString());\n double Filesize = f.length();\n //edited by bhavya\n double doc_weight = 0; //first entry in docweights.bin\n double doc_tokens = 0;\n double doc_length = 0;\n HashMap<String, Integer> tftd = new HashMap<>();\n // Tokenize the document's content by constructing an EnglishTokenStream around the document's content.\n Reader reader = d.getContent();\n EnglishTokenStream stream = new EnglishTokenStream(reader); //can access tokens through this stream\n N++;\n // Iterate through the tokens in the document, processing them using a BasicTokenProcessor,\n //\t\tand adding them to the HashSet vocabulary.\n Iterable<String> tokens = stream.getTokens();\n int i = 0;\n\n for (String token : tokens) {\n\n //adding token in index\n List<String> word = new ArrayList<String>();\n word = processor.processToken(token);\n //System.out.println(word.get(0));\n if (word.get(0).matches(\"\")) {\n continue;\n } else {\n\n index.addTerm(word.get(0), i, d.getId());\n\n }\n i = i + 1;\n\n //we check if token already exists in hashmap or not. \n //if it exists, increase its freq by 1 else make a new entry.\n if (tftd.containsKey(word.get(0))) {\n doc_tokens++;\n int count = tftd.get(word.get(0));\n tftd.replace(word.get(0), count + 1);\n } else {\n doc_tokens++;\n// token_count++; //gives total number of tokens.\n tftd.put(word.get(0), 1);\n }\n\n }\n double length = 0;\n double wdt = 0;\n\n double total_tftd = 0;\n for (Map.Entry<String, Integer> entry : tftd.entrySet()) {\n\n wdt = 1 + log(entry.getValue());\n\n length = length + pow(wdt, 2);\n total_tftd = total_tftd + entry.getValue();\n }\n token_count = token_count + doc_tokens;\n doc_weight = pow(length, 0.5);\n double avg_tftd = total_tftd / (double) tftd.size();\n\n Doc_length.add(doc_weight);\n Doc_length.add(avg_tftd);\n Doc_length.add(doc_tokens);\n Doc_length.add(Filesize);\n }\n Doc_length.add(token_count / N);\n\n DiskIndexWriter d = new DiskIndexWriter();\n d.write_doc(path, Doc_length);\n\n return index;\n }",
"public abstract void updatePath(Matrix matrix, Matrix backupTransformationMatrix, boolean highlight);",
"public int updatePOS(String newWord, String newPOS, String newRole, int increment) {\t\t\n\t\tPropertyConfigurator.configure( \"conf/log4j.properties\" );\n\t\tLogger myLogger = Logger.getLogger(\"dataholder.updateDataHolder.updatePOS\");\n\t\t\n\t\tmyLogger.trace(\"Enter updatePOS\");\n\t\tmyLogger.trace(\"Word: \"+newWord+\", POS: \"+newPOS);\n\t\t\n\t\t\n\t\tint n = 0;\n\t\t\t\t\n\t\tString regex = \"^.*(\\\\b|_)(NUM|\" + myConstant.NUMBER + \"|\"\n\t\t\t\t+ myConstant.CLUSTERSTRING + \"|\" + myConstant.CHARACTER + \")\\\\b.*$\";\n\t\t//regex = \"(NUM|\" + \"rows\" + \")\";\n\t\tboolean case1 = newWord.matches(regex);\n\t\tboolean case2 = newPOS.matches(\"[nsp]\"); \n\t\tif (case1 && case2) {\n\t\t\tmyLogger.trace(\"Case 0\");\n\t\t\tmyLogger.trace(\"Quite updatePOS\");\n\t\t\treturn 0;\n\t\t}\n\n//\t\tIterator<Map.Entry<WordPOSKey, WordPOSValue>> iter = this.getWordPOSHolder()\n//\t\t\t\t.entrySet().iterator();\n//\t\t// boolean isExist = false;\n//\t\tMap.Entry<WordPOSKey, WordPOSValue> targetWordPOS = null;\n//\t\twhile (iter.hasNext()) {\n//\t\t\tMap.Entry<WordPOSKey, WordPOSValue> wordPOS = iter.next();\n//\t\t\tif (wordPOS.getKey().getWord().equals(newWord)) {\n//\t\t\t\ttargetWordPOS = wordPOS;\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t}\n \n List<Entry<WordPOSKey, WordPOSValue>> entryList = getWordPOSEntries(newWord);\n int certaintyU = 0;\n\t\t// case 1: the word does not exist, add it\n if (entryList.size()==0) {\n\t\t// if (targetWordPOS == null) {\n\t\t\tmyLogger.trace(\"Case 1\");\n\t\t\tcertaintyU += increment;\n\t\t\tthis.updateWordPOS(new WordPOSKey(newWord, newPOS), new WordPOSValue(newRole, certaintyU, 0, null, null));\n\t\t\tn = 1;\n\t\t\tmyLogger.trace(String.format(\"\\t: new [%s] pos=%s, role =%s, certaintyU=%d\", newWord, newPOS, newRole, certaintyU));\n\t\t// case 2: the word already exists, update it\n\t\t} else {\n\t\t\tmyLogger.trace(\"Case 2\");\n\t\t\tEntry<WordPOSKey, WordPOSValue> targetWordPOS = entryList.get(0);\n\t\t\tString oldPOS = targetWordPOS.getKey().getPOS();\n\t\t\tString oldRole = targetWordPOS.getValue().getRole();\n\t\t\tcertaintyU = targetWordPOS.getValue().getCertaintyU();\n\t\t\t// case 2.1 \n\t\t\t// \t\tthe old POS is NOT same as the new POS, \n\t\t\t// \tAND\tthe old POS is b or the new POS is b\n\t\t\tif ((!oldPOS.equals(newPOS))\n\t\t\t\t\t&& ((oldPOS.equals(\"b\")) || (newPOS.equals(\"b\")))) {\n\t\t\t\tmyLogger.trace(\"Case 2.1\");\n\t\t\t\tString otherPOS = newPOS.equals(\"b\") ? oldPOS : newPOS;\n\t\t\t\tnewPOS = this.resolveConflict(newWord, \"b\", otherPOS);\n\n\t\t\t\tboolean flag = false;\n\t\t\t\tif (newPOS != null) {\n\t\t\t\t\tif (!newPOS.equals(oldPOS)) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// new pos win\n\t\t\t\tif (flag) { \n\t\t\t\t\tnewRole = newRole.equals(\"*\") ? \"\" : newRole;\n\t\t\t\t\tn = n + changePOS(newWord, oldPOS, newPOS, newRole, increment);\n\t\t\t\t// old pos win\n\t\t\t\t} else { \n\t\t\t\t\tnewRole = oldRole.equals(\"*\") ? newRole : oldRole;\n\t\t\t\t\tcertaintyU = certaintyU + increment;\n//\t\t\t\t\tWordPOSKey key = new WordPOSKey(\"newWord\", \"pos\");\n//\t\t\t\t\tWordPOSValue value = new WordPOSValue(newRole, certaintyU, 0,\n//\t\t\t\t\t\t\tnull, null);\n//\t\t\t\t\tthis.getWordPOSHolder().put(key, value);\n\t\t\t\t\t\n\t\t\t\t\tthis.updateWordPOS(newWord, newPOS, newRole, certaintyU, 0, null, null);\n\t\t\t\t\t\n\t\t\t\t\tmyLogger.debug(String.format(\"\\t: update [%s (%s):a] role: %s=>%s, certaintyU=%d\\n\",\n\t\t\t\t\t\t\t\t\tnewWord, newPOS, oldRole, newRole, certaintyU));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t// case 2.2: the old POS and the new POS are all [n], update role and certaintyU\n\t\t\t} else {\n\t\t\t\tmyLogger.trace(\"Case 2.2\");\n\t\t\t\tnewRole = this.mergeRole(oldRole, newRole);\n\t\t\t\tcertaintyU += increment;\n//\t\t\t\tWordPOSKey key = new WordPOSKey(newWord, newPOS);\n//\t\t\t\tWordPOSValue value = new WordPOSValue(newRole, certaintyU, 0,\n//\t\t\t\t\t\tnull, null);\n//\t\t\t\tthis.getWordPOSHolder().put(key, value);\n\t\t\t\t\n\t\t\t\tthis.updateWordPOS(newWord, newPOS, newRole, certaintyU, 0, null, null);\n\t\t\t\t\n\t\t\t\tmyLogger.debug(String.format(\"\\t: update [%s (%s):b] role: %s => %s, certaintyU=%d\\n\",\n\t\t\t\t\t\t\t\tnewWord, newPOS, oldRole, newRole, certaintyU));\n\t\t\t}\n\t\t}\n\n\t\tIterator<Map.Entry<WordPOSKey, WordPOSValue>> iter2 = this.getWordPOSHolderIterator();\n\t\tint certaintyL = 0;\n\t\twhile (iter2.hasNext()) {\n\t\t\tMap.Entry<WordPOSKey, WordPOSValue> e = iter2.next();\n\t\t\tif (e.getKey().getWord().equals(newWord)) {\n\t\t\t\tcertaintyL += e.getValue().getCertaintyU();\n\t\t\t}\n\t\t}\n\t\tIterator<Map.Entry<WordPOSKey, WordPOSValue>> iter3 = this.getWordPOSHolderIterator();\n\t\twhile (iter3.hasNext()) {\n\t\t\tMap.Entry<WordPOSKey, WordPOSValue> e = iter3.next();\n\t\t\tif (e.getKey().getWord().equals(newWord)) {\n\t\t\t\te.getValue().setCertiantyU(certaintyL);\n\t\t\t}\n\t\t}\n\n\t\tmyLogger.debug(String.format(\"\\t: total occurance of [%s] = %d\\n\", newWord, certaintyL));\n\t\tmyLogger.trace(\"Return: \" + n);\n\t\treturn n;\n\t}",
"int updateByPrimaryKeySelective(RepStuLearning record);",
"public void setRelDocument(int v) \n {\n \n if (this.relDocument != v)\n {\n this.relDocument = v;\n setModified(true);\n }\n \n \n }",
"int updateByPrimaryKeySelective(AnnouncementDO record);",
"@Test\n\tpublic void testStoreProcessText2() {\n\t\tint sourceID = dm.storeProcessedText(pt1);\n\t\tassertTrue(sourceID > 0);\n\t\t\n\t\tds.startSession();\n\t\tSource source = ds.getSource(pt1.getMetadata().getUrl());\n\t\tList<Paragraph> paragraphs = (List<Paragraph>) ds.getParagraphs(source.getSourceID());\n\t\tassertTrue(pt1.getMetadata().getName().equals(source.getName()));\n\t\tassertTrue(pt1.getParagraphs().size() == paragraphs.size());\n\t\t\n\t\tfor(int i = 0; i < pt1.getParagraphs().size(); i++){\n\t\t\tParagraph p = paragraphs.get(i);\n\t\t\tParagraph originalP = pt1.getParagraphs().get(i);\n\t\t\tassertTrue(originalP.getParentOrder() == p.getParentOrder());\n\t\t\t\n\t\t\tList<Sentence> sentences = (List<Sentence>) ds.getSentences(p.getId());\n\t\t\tList<Sentence> originalSentences = (List<Sentence>) originalP.getSentences();\n\t\t\tfor(int j = 0; j < originalSentences.size(); j++){\n\t\t\t\tassertTrue(originalSentences.get(j).getContent().substring(DataStore.SENTENCE_PREFIX.length()).equals(sentences.get(j).getContent()));\n\t\t\t\tassertTrue(originalSentences.get(j).getParentOrder() == sentences.get(j).getParentOrder());\n\t\t\t}\n\t\t}\n\t\tds.closeSession();\n\t}",
"private void updateTranslationfromCenterAnchor(Pose pose, int teapotId) {\n float poseX = pose.tx();\n float poseZ = pose.tz();\n\n float anchorPoseX = globalCenterPose.tx();\n float anchorPoseZ = globalCenterPose.tz();\n\n float[] translate = new float[3];\n\n if (poseX > anchorPoseX) {\n translate[0] = poseX - anchorPoseX;\n } else {\n translate[0] = -(anchorPoseX - poseX);\n }\n\n if (poseZ > anchorPoseZ) {\n translate[2] = poseZ - anchorPoseZ;\n } else {\n translate[2] = -(anchorPoseZ - poseZ);\n }\n\n teapotTranslations[teapotId] = translate;\n }",
"private static void processText(String line, BufferedWriter wrtr)\n\t\t\tthrows JSONException, IOException {\n\t\tJSONObject topicModel = TopicModelTemplateUtil\n\t\t\t\t.getJSONFromTemplate(line);\n\t\t// populate the WORD vector for the current topic model\n\t\tTopicModelTemplateUtil.geTopicModelFromTemplate(topicModel).forEach(\n\t\t\t\ttpm -> {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tLuceneNLPUtil.getRemovedStopAndStem(tpm.getWord(),\n\t\t\t\t\t\t\t\tLuceneNLPUtil.getDefaultEnglishStopWordList())\n\t\t\t\t\t\t\t\t.forEach(word -> {\n\t\t\t\t\t\t\t\t\tif (VOCABULARY_MAP.containsKey(word)) {\n\t\t\t\t\t\t\t\t\t\tVOCABULARY_MAP.replace(word, 1);\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} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t// dump it to the file\n\t\tdumpTextLine(topicModel.getString(ConfigConstant.JSON_FIELD.BUSINESS_ID\n\t\t\t\t.getFieldName()), wrtr);\n\t}",
"public void setLeaseDocument(int newLeaseDocument) {\n\tleaseDocument = newLeaseDocument;\n}",
"void translate(Sentence sentence);",
"@Override\n public void newRevision(Object revisionEntity) {\n }",
"public void align( Alignment alignment, Properties param ) {\n\t\t// For the classes : no optmisation cartesian product !\n\t\tfor ( OWLEntity cl1 : ontology1.getClassesInSignature()){\n\t\t\tfor ( OWLEntity cl2: ontology2.getClassesInSignature() ){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\tfor (OWLEntity cl1:getDataProperties(ontology1)){\n\t\t\tfor (OWLEntity cl2:getDataProperties(ontology2)){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (OWLEntity cl1:getObjectProperties(ontology1)){\n\t\t\tfor (OWLEntity cl2:getObjectProperties(ontology2)){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\n\n\n\n\n\n\t}",
"private boolean setFromResourceOnExped(DocumentAccessBean argDocument, int argResource, \n\t\tint argOwner, String argCountpolicy, \n\t\tString argSerialNumber, String argParty, StoragePlaceAccessBean expeditor) {\n\n\tArrayList inPositions;\n\tArrayList outPositions;\n\n\ttry {\n\n\t\tlogIt(\"IN SET FROMRESOURCEONEXPED resource=\" + argResource + \" owner=\"+argOwner +\n\t\t\t\" countpolicy=\" + argCountpolicy + \" serial=\" + argSerialNumber +\n\t\t\t\" party=\" + argParty + \" expeditor=\" + expeditor.getStorageplace());\n\t\t\n\t\tinPositions = new ArrayList();\n\t\toutPositions = new ArrayList();\n\t\tBoolean isSerial = Boolean.FALSE;\n\t\tBoolean isParty = Boolean.FALSE;\n\t\tString serial = argSerialNumber;\n\t\tString party = argParty;\n\t\tDocumentPositionAccessBean tdp;\n\t\tEnumeration tdps;\n\t\t\n\t\tif (\"S\".equals(argCountpolicy))\n\t\t\tisSerial = Boolean.TRUE;\n\t\tif (\"P\".equals(argCountpolicy))\n\t\t\tisParty = Boolean.TRUE;\n\n\t\ttdp = new DocumentPositionAccessBean();\n\t\t\n\t\t// 1. Determine income positions - expeditor change acts\n\t\tlogIt(\"Determine income positions - expeditor change acts\");\n\t\ttdps = tdp.findByQBE(new Integer(argResource),\n\t\t\tnew Integer(argOwner),\n\t\t\tisSerial, serial,\n\t\t\tisParty, party,\n\t\t\tBoolean.TRUE, new Integer(expeditor.getStorageplace()),\n\t\t\tBoolean.FALSE, null,\n\t\t\t\"S\",\n\t\t\tBoolean.FALSE, null\n\t\t\t);\n\n\t\twhile (tdps.hasMoreElements()) {\n\t\t\tDocumentPositionAccessBean dp = (DocumentPositionAccessBean)tdps.nextElement();\n\t\t\tDocPositionObject dpo = new DocPositionObject();\n\t\t\tif (!dpo.setAllAttributes(1, dp)) return false;\n\t\t\tdpo.setLocfromstorage(null);\n\t\t\tlogIt(\" docposition=\" + dpo.getDocposition() + \" fromstorage=null\");\n\t\t\t\n\t\t\t// We need to determine from storage from outcome positions\n\t\t\tlogIt(\" We need to determine from storage from outcome positions\");\n\t\t\t\n\t\t\t// Find change act\n\t\t\tlogIt(\" Find change act\");\n\t\t\tDocumentsLinkAccessBean tdl = new DocumentsLinkAccessBean();\n\t\t\tEnumeration tdls = tdl.findByTypeAndDocTo(\"S\", new Integer(dp.getDocument().getDocument()));\n\t\t\tif (tdls.hasMoreElements()) {\n\t\t\t\tDocumentsLinkAccessBean dl = (DocumentsLinkAccessBean)tdls.nextElement();\n\n\t\t\t\tlogIt(\" found change act, doc=\" + dl.getDocumentfrom().getDocument());\n\t\t\t\t\n\t\t\t\t// Find old serial from change act position\n\t\t\t\tlogIt(\" Find old serial from change act position\");\n\t\t\t\tChangeActPositionAccessBean tcp = new ChangeActPositionAccessBean();\n\t\t\t\tEnumeration tcps = tcp.findByDocNewSerial(new Integer(dl.getDocumentfrom().getDocument()), dpo.getSerialnumber());\n\t\t\t\tif (tcps.hasMoreElements()) {\n\t\t\t\t\tChangeActPositionAccessBean cp = (ChangeActPositionAccessBean)tcps.nextElement();\n\t\t\t\t\tlogIt(\" Found changeactposition = \" + cp.getCode() + \" oldserial=\" + cp.getOldSerial());\n\n\t\t\t\t\t// Find corresponding outcome position\n\t\t\t\t\tlogIt(\" Find corresponding outcome position\");\n\t\t\t\t\tDocumentsLinkAccessBean tdlo = new DocumentsLinkAccessBean();\n\t\t\t\t\tEnumeration tdlos = tdlo.findByTypeAndDocFrom(\"P\", new Integer(cp.getChangeAct().getDocument()));\n\t\t\t\t\tif (tdlos.hasMoreElements()) {\n\t\t\t\t\t\tDocumentsLinkAccessBean dlo = (DocumentsLinkAccessBean)tdlos.nextElement();\n\t\t\t\t\t\tlogIt(\" Found outcome doc = \" + dlo.getDocumentTo().getDocument());\n\n\t\t\t\t\t\t// Find document position\n\t\t\t\t\t\tDocumentPositionAccessBean tdpp = new DocumentPositionAccessBean();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tDocumentPositionAccessBean dpp = tdpp.findByDocumentSerialnum(new Integer(dlo.getDocumentTo().getDocument()),\n\t\t\t\t\t\t\t\tcp.getOldSerial());\n\t\t\t\t\t\t\tlogIt(\" found outcome position = \" + dpp.getDocposition());\n\n\t\t\t\t\t\t\t// Finally - find PIE_linkprihodrashod\n\t\t\t\t\t\t\tlogIt(\" Finally - find PIE_linkprihodrashod\");\n\t\t\t\t\t\t\tPIELinkPrihRashAccessBean tplpr = new PIELinkPrihRashAccessBean();\n\t\t\t\t\t\t\tEnumeration tplprs = tplpr.findByDocposRashod(new Integer(dpp.getDocposition()));\n\t\t\t\t\t\t\tif (tplprs.hasMoreElements()) {\n\t\t\t\t\t\t\t\tPIELinkPrihRashAccessBean plpr = (PIELinkPrihRashAccessBean)tplprs.nextElement();\n\t\t\t\t\t\t\t\tlogIt(\" found storageplacefrom = \" + plpr.getFromstorageprihod());\n\t\t\t\t\t\t\t\tStoragePlaceAccessBean locstrg = new StoragePlaceAccessBean();\n\t\t\t\t\t\t\t\tlocstrg.setInitKey_storageplace(plpr.getFromstorageprihod());\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tlocstrg.refreshCopyHelper();\n\t\t\t\t\t\t\t\t\tdpo.setLocfromstorage(locstrg);\n\t\t\t\t\t\t\t\t\t// Create link record\n\t\t\t\t\t\t\t\t\tlogIt(\"Creating link record\");\n\t\t\t\t\t\t\t\t\tKeyGeneratorAccessBean keygen = new KeyGeneratorAccessBean();\n\t\t\t\t\t\t\t\t\tPIELinkPrihRashAccessBean lprh = new PIELinkPrihRashAccessBean(keygen.getNextKey(PIELINKSEQ),\n\t\t\t\t\t\t\t\t\t\tdpp.getDocposition(), locstrg.getStorageplace(),\n\t\t\t\t\t\t\t\t\t\tdpo.getDocposition(), dpo.getQty());\n\t\t\t\t\t\t\t\t} catch (javax.ejb.ObjectNotFoundException e) {\n\t\t\t\t\t\t\t\t\t// Cannot instantiate storageplace - very strange\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"PLATINUM-SYNC: Cannot instantiate storageplace - very strange, storageplace=\" + plpr.getFromstorageprihod());\n\t\t\t\t\t\t\t\t\te.printStackTrace(System.out);\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t// Unknown exception\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"PLATINUM-SYNC: Unknown exception while creating LinkPrihRash\");\n\t\t\t\t\t\t\t\t\te.printStackTrace(System.out);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (javax.ejb.ObjectNotFoundException ee) {\n\t\t\t\t\t\t\tlogIt(\" outcome position not found\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Reduce qty - linked records\n\t\t\tif (!dpo.reduceQty(true)) return false;\n\t\t\t\n\t\t\tinPositions.add(dpo);\n\t\t}\n\n\t\t// 2. Determine income positions - Storage internal outcome, Position internal outcome\n\t\tlogIt(\"Determine income positions - Storage internal outcome, Position internal outcome\");\n\t\ttdps = tdp.findByQBE(new Integer(argResource),\n\t\t\tnew Integer(argOwner),\n\t\t\tisSerial, serial,\n\t\t\tisParty, party,\n\t\t\tBoolean.TRUE, new Integer(expeditor.getStorageplace()),\n\t\t\tBoolean.FALSE, null,\n\t\t\t\"N\",\n\t\t\tBoolean.FALSE, null\n\t\t\t);\n\n\t\twhile (tdps.hasMoreElements()) {\n\t\t\tDocumentPositionAccessBean dp = (DocumentPositionAccessBean)tdps.nextElement();\n\t\t\tDocPositionObject dpo = new DocPositionObject();\n\t\t\tif (!dpo.setAllAttributes(2, dp)) return false;\n\t\t\tlogIt(\" docposition=\" + dpo.getDocposition() + \" fromstorage=\" + dpo.getLocfromstorage().getStorageplace());\n\t\t\t// Reduce qty - linked records\n\t\t\tif (!dpo.reduceQty(true)) return false;\n\t\t\tinPositions.add(dpo);\n\t\t}\n\t\t\n\t\t// 3. Determine income positions - Position dismount act\n\t\tlogIt(\"Determine income positions - Position dismount act\");\n\t\ttdps = tdp.findByQBE(new Integer(argResource),\n\t\t\tnew Integer(argOwner),\n\t\t\tisSerial, serial,\n\t\t\tisParty, party,\n\t\t\tBoolean.TRUE, new Integer(expeditor.getStorageplace()),\n\t\t\tBoolean.FALSE, null,\n\t\t\t\"A\",\n\t\t\tBoolean.FALSE, null\n\t\t\t);\n\n\t\twhile (tdps.hasMoreElements()) {\n\t\t\tDocumentPositionAccessBean dp = (DocumentPositionAccessBean)tdps.nextElement();\n\t\t\tDocPositionObject dpo = new DocPositionObject();\n\t\t\tif (!dpo.setAllAttributes(3, dp)) return false;\n\t\t\tlogIt(\" docposition=\" + dpo.getDocposition() + \" fromstorage=\" + dpo.getLocfromstorage().getStorageplace());\n\t\t\t// Reduce qty - linked records\n\t\t\tif (!dpo.reduceQty(true)) return false;\n\t\t\tinPositions.add(dpo);\n\t\t}\n\n\t\t// 1. Determine outcome positions - expeditor change acts\n\t\tlogIt(\"Determine outcome positions - expeditor change acts\");\n\t\ttdps = tdp.findByQBE(new Integer(argResource),\n\t\t\tnew Integer(argOwner),\n\t\t\tisSerial, serial,\n\t\t\tisParty, party,\n\t\t\tBoolean.FALSE, null,\n\t\t\tBoolean.TRUE, new Integer(expeditor.getStorageplace()),\n\t\t\t\"P\",\n\t\t\tBoolean.FALSE, new Integer(argDocument.getDocument())\n\t\t\t);\n\n\t\twhile (tdps.hasMoreElements()) {\n\t\t\tDocumentPositionAccessBean dp = (DocumentPositionAccessBean)tdps.nextElement();\n\t\t\tDocPositionObject dpo = new DocPositionObject();\n\t\t\tif (!dpo.setAllAttributes(1, dp)) return false;\n\t\t\tlogIt(\" docposition=\" + dpo.getDocposition() );\n\t\t\t// Reduce qty - linked records\n\t\t\tif (!dpo.reduceQty(false)) return false;\n\t\t\toutPositions.add(dpo);\n\t\t}\n\t\t\n\t\t// 2. Determine outcome positions - storage internal income, position internal income\n\t\tlogIt(\"Determine outcome positions - storage internal income, position internal income\");\n\t\ttdps = tdp.findByQBE(new Integer(argResource),\n\t\t\tnew Integer(argOwner),\n\t\t\tisSerial, serial,\n\t\t\tisParty, party,\n\t\t\tBoolean.FALSE, null,\n\t\t\tBoolean.TRUE, new Integer(expeditor.getStorageplace()),\n\t\t\t\"T\",\n\t\t\tBoolean.TRUE, new Integer(argDocument.getDocument())\n\t\t\t);\n\n\t\twhile (tdps.hasMoreElements()) {\n\t\t\tDocumentPositionAccessBean dp = (DocumentPositionAccessBean)tdps.nextElement();\n\t\t\tDocPositionObject dpo = new DocPositionObject();\n\t\t\tif (!dpo.setAllAttributes(2, dp)) return false;\n\t\t\tlogIt(\" docposition=\" + dpo.getDocposition() );\n\t\t\t// Reduce qty - linked records\n\t\t\tif (!dpo.reduceQty(false)) return false;\n\t\t\toutPositions.add(dpo);\n\t\t}\n\t\t\n\t\t// 3. Determine outcome positions - position block mount\n\t\tlogIt(\"Determine outcome positions - position block mount\");\n\t\ttdps = tdp.findByQBE(new Integer(argResource),\n\t\t\tnew Integer(argOwner),\n\t\t\tisSerial, serial,\n\t\t\tisParty, party,\n\t\t\tBoolean.FALSE, null,\n\t\t\tBoolean.TRUE, new Integer(expeditor.getStorageplace()),\n\t\t\t\"A\",\n\t\t\tBoolean.TRUE, new Integer(argDocument.getDocument())\n\t\t\t);\n\n\t\twhile (tdps.hasMoreElements()) {\n\t\t\tDocumentPositionAccessBean dp = (DocumentPositionAccessBean)tdps.nextElement();\n\t\t\tDocPositionObject dpo = new DocPositionObject();\n\t\t\tif (!dpo.setAllAttributes(3, dp)) return false;\n\t\t\tlogIt(\" docposition=\" + dpo.getDocposition() );\n\t\t\t// Reduce qty - linked records\n\t\t\tif (!dpo.reduceQty(false)) return false;\n\t\t\toutPositions.add(dpo);\n\t\t}\n\n\t\t// Now we are ready to link income-outcome\n\t\tlogIt(\"Sorting income-outcome positions\");\n\t\tCollections.sort(inPositions, new DocPositionComparator());\n\t\tCollections.sort(outPositions, new DocPositionComparator());\n\n\t\tlogIt(\"Link income-outcome cycle\");\t\n\t\tIterator outit = outPositions.iterator();\n\t\twhile (outit.hasNext()) {\n\n\t\t\tDocPositionObject outdp = (DocPositionObject)outit.next();\n\n\t\t\tlogIt(\"Outcome position: \" + outdp.getDocposition() + \" qty=\" + outdp.getQty());\n\n\t\t\t// Check if we have unlinked qty\n\t\t\tif ( outdp.getQty().compareTo(new java.math.BigDecimal(0).setScale(2)) <= 0) {\n\t\t\t\tlogIt(\" qty <= 0 - nothing to link, skipping\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Check qty for serial positions\n\t\t\tif (\"S\".equals(outdp.getCountpolicy())) {\n\t\t\t\tif ( outdp.getQty().compareTo(new java.math.BigDecimal(1).setScale(2)) != 0) {\n\t\t\t\t\tlogIt(\" Serial position - check qty failed skipping, qty<>1, qty=\" + outdp.getQty());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tIterator initr = inPositions.iterator();\n\t\t\twhile (initr.hasNext()) {\n\t\t\t\tDocPositionObject indp = (DocPositionObject)initr.next();\n\t\t\t\tlogIt(\" Income position: \" + indp.getDocposition() + \" qty=\" + indp.getQty());\n\t\t\t\t\n\t\t\t\t// Check if we have unlinked qty\n\t\t\t\tif ( indp.getQty().compareTo(new java.math.BigDecimal(0).setScale(2)) <= 0) {\n\t\t\t\t\tlogIt(\" qty <= 0 - nothing to link, skipping\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Check qty for serial positions\n\t\t\t\tif (\"S\".equals(indp.getCountpolicy())) {\n\t\t\t\t\tif ( indp.getQty().compareTo(new java.math.BigDecimal(1).setScale(2)) != 0) {\n\t\t\t\t\t\tlogIt(\" Serial position - check qty failed skipping, qty<>1, qty=\" + indp.getQty());\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tjava.math.BigDecimal minQty;\n\t\t\t\tif (outdp.getQty().compareTo(indp.getQty()) < 0)\n\t\t\t\t\tminQty = outdp.getQty();\n\t\t\t\telse\n\t\t\t\t\tminQty = indp.getQty();\n\n\t\t\t\t// Create link record\n\t\t\t\tlogIt(\"Creating link record\");\n\t\t\t\tif (indp.getLocfromstorage() != null) {\n\t\t\t\t\tKeyGeneratorAccessBean keygen = new KeyGeneratorAccessBean();\n\t\t\t\t\tPIELinkPrihRashAccessBean lprh = new PIELinkPrihRashAccessBean(keygen.getNextKey(PIELINKSEQ),\n\t\t\t\t\t\tindp.getDocposition(), indp.getLocfromstorage().getStorageplace(),\n\t\t\t\t\t\toutdp.getDocposition(), minQty);\n\n\t\t\t\t\t// Reduce qty in outcome, income positions\n\t\t\t\t\toutdp.setQty(outdp.getQty().subtract(minQty));\n\t\t\t\t\tindp.setQty(indp.getQty().subtract(minQty));\n\t\t\t\t} else {\n\t\t\t\t\tlogIt(\"Cannot create link - fromstorageprihod is null\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Check if outcome position satisfied\n\t\t\t\tif ( outdp.getQty().compareTo(new java.math.BigDecimal(0).setScale(2)) <= 0) {\n\t\t\t\t\tlogIt(\" qty <= 0 - outcome position full connect\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Check if outcome position not satisfied\n\t\t\tif ( outdp.getQty().compareTo(new java.math.BigDecimal(0).setScale(2)) > 0) {\n\t\t\t\tlogIt(\" outcome position not fully connected - bad - return false, remainder qty=\" + outdp.getQty());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tlogIt(\"SUCCESSFUL EXIT from SETFROMRESOURCEONEXPED\");\n\t\treturn true;\n\t\t\n\t} catch\t(Exception e) {\n\t\tSystem.out.println(\"PLATINUM-SYNC: exception in whereFromResourceOnExped\");\n\t\te.printStackTrace(System.out);\n\t}\n\treturn false;\n}",
"public static void addPossesives(Annotation np, Document doc, Map<Annotation, ArrayList<Annotation>> posessives)\r\n{\r\n int end = np.getEndOffset();\r\n // get all nps that start within 2 to 5 characters of the end of the np\r\n AnnotationSet nps = doc.getAnnotationSet(Constants.NP);\r\n AnnotationSet candidates = nps.getOverlapping(end + 2, end + 5);\r\n ArrayList<Annotation> coresp = posessives.get(np);\r\n if (coresp == null) {\r\n coresp = new ArrayList<Annotation>();\r\n }\r\n if (candidates == null) {\r\n posessives.put(np, coresp);\r\n return;\r\n }\r\n for (Annotation c : candidates) {\r\n if (c.getStartOffset() >= end + 2) {\r\n String[] wds = FeatureUtils.getWords(doc.getAnnotText(end, c.getStartOffset()));\r\n if (wds != null && wds.length == 1) {\r\n if (wds[0].equalsIgnoreCase(\"of\")) {\r\n // we have x of y -- x is the pos of y\r\n coresp.add(c);\r\n }\r\n if (wds[0].equalsIgnoreCase(\"'s\")) {\r\n // we have y's x -- x is the pos of y\r\n ArrayList<Annotation> coresp2 = posessives.get(c);\r\n if (coresp2 == null) {\r\n coresp2 = new ArrayList<Annotation>();\r\n posessives.put(c, coresp2);\r\n }\r\n coresp2.add(np);\r\n }\r\n }\r\n }\r\n }\r\n posessives.put(np, coresp);\r\n}",
"int updateByPrimaryKeySelective(PdfCodeTemporary record);",
"private void update(String word, int lineNumber)\n {\n //checks to see if its the first word of concordance or not\n if(this.concordance.size()>0)\n {\n //if it is not the first word it loops through the concordance\n for(int i = 0; i < this.concordance.size();i++)\n {\n int check = 0;\n //if word is in concordance it updates the WordRecord for that word\n if(word.equalsIgnoreCase(concordance.get(i).getWord()))\n {\n concordance.get(i).update(lineNumber);\n check++;\n }\n \n //if the word is not found it adds it to the concordance and breaks out of the loop\n if(check == 0 && i == concordance.size() - 1)\n {\n WordRecord temp = new WordRecord(word,lineNumber);\n this.concordance.add(temp);\n break;\n }\n \n }\n }\n \n else\n //if it is the first word of the concordance it adds it to the concordance\n {\n WordRecord temp = new WordRecord(word,lineNumber);\n this.concordance.add(temp);\n }\n }",
"void annotateBed(Variant seqChange) {\n\t\tfloat score = score(seqChange);\n\t\tprintBed(seqChange, score);\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\tsuper.actionPerformed(e);\n\t\tNamedObj target = null;\n\t\tKeplerLSID lsidToView = getLSID();\n\n\t\ttry {\n\n\t\t\tif (lsidToView != null) {\n\t\t\t\ttarget = ObjectManager.getInstance().getObjectRevision(\n\t\t\t\t\t\tlsidToView);\n\t\t\t} else {\n\t\t\t\ttarget = getTarget();\n\t\t\t}\n\n\t\t\tif (target != null) {\n\n\t\t\t\t// remove the KeplerDocumentationAttribute if it exists\n\t\t\t\tList keplerDocAttributeList = target\n\t\t\t\t\t\t.attributeList(KeplerDocumentationAttribute.class);\n\n\t\t\t\tif (keplerDocAttributeList.size() != 0) {\n\t\t\t\t\tString moml = \"<deleteProperty name=\\\"\"\n\t\t\t\t\t\t\t+ ((KeplerDocumentationAttribute) keplerDocAttributeList\n\t\t\t\t\t\t\t\t\t.get(0)).getName() + \"\\\"/>\";\n\t\t\t\t\tMoMLChangeRequest request = new MoMLChangeRequest(this,\n\t\t\t\t\t\t\ttarget, moml);\n\t\t\t\t\ttarget.requestChange(request);\n\t\t\t\t}\n\n\t\t\t\t// now remove the DocAttribute\n\t\t\t\tRemoveCustomDocumentationAction rcda = new RemoveCustomDocumentationAction();\n\t\t\t\trcda.actionPerformed(e);\n\n\t\t\t\t// now attempt to reset KeplerDocumentationAttribute to original\n\t\t\t\t// documentation\n\t\t\t\tKeplerLSID lsid = NamedObjId.getIdFor(target);\n\t\t\t\tNamedObjIdReferralList norl = NamedObjId\n\t\t\t\t\t\t.getIDListAttributeFor(target);\n\t\t\t\tKeplerLSID origLSID = lsid;\n\t\t\t\tif (norl.getReferrals().size() > 0) {\n\t\t\t\t\torigLSID = norl.getReferrals().get(\n\t\t\t\t\t\t\tnorl.getReferrals().size() - 1);\n\t\t\t\t}\n\t\t\t\tif (isDebugging) {\n\t\t\t\t\tlog.debug(\"Going to try to reset \" + target.getName()\n\t\t\t\t\t\t\t+ \" to original documentation,\"\n\t\t\t\t\t\t\t+ \"the documentation for \" + origLSID.toString());\n\t\t\t\t}\n\t\t\t\tCacheManager cacheMan = CacheManager.getInstance();\n\t\t\t\tActorCacheObject aco = (ActorCacheObject) cacheMan\n\t\t\t\t\t\t.getObject(origLSID);\n\t\t\t\tif (aco == null) {\n\t\t\t\t\tif (isDebugging) {\n\t\t\t\t\t\tlog.warn(\"Couldn't find ActorCacheObject for \"\n\t\t\t\t\t\t\t\t+ origLSID + \". Can't reset documentation.\");\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tActorMetadata am = aco.getMetadata();\n\t\t\t\tif (am == null) {\n\t\t\t\t\tif (isDebugging) {\n\t\t\t\t\t\tlog.warn(\"No ActorMetadata for ActorCacheObject:\"\n\t\t\t\t\t\t\t\t+ origLSID + \". Can't reset documentation.\");\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tKeplerDocumentationAttribute kda = am\n\t\t\t\t\t\t.getDocumentationAttribute();\n\t\t\t\tKeplerDocumentationAttribute keplerDocumentation = new KeplerDocumentationAttribute(\n\t\t\t\t\t\ttarget, \"KeplerDocumentation\");\n\t\t\t\tkeplerDocumentation.createInstanceFromExisting(kda);\n\t\t\t\tkeplerDocumentation.setContainer(target);\n\t\t\t}\n\n\t\t} catch (Exception ee) {\n\t\t\tee.printStackTrace();\n\t\t}\n\t}",
"Builder addEducationalAlignment(AlignmentObject value);",
"void updateMatcher() {\r\n int begin = getPosition();\r\n int end = getText().length();\r\n // System.out.println(begin + \",\" + end);\r\n matcher.reset(getText());\r\n matcher.region(begin, end);\r\n }",
"public void storeRelation(Doc document, SpatialRelation sr, SpatialElement se1, String se1Role, SpatialElement se2, String se2Role, SpatialElement se3, String se3Role) throws IOException { \n //gets the relation triplet id string\n //also sets each element with their posited role in this relation \n sr.idString = getRelationIdString(se1, se1Role, se2, se2Role, se3, se3Role);\n //the idString is empty when two or more of the three spatial elements are null\n if (sr.idString.equals(\"\"))\n return;\n \n if (sr.classValue.equals(\"1\") && !sr.type.equals(\"LINK\")) {\n Map<String, List<String>> roleOtherElements = document.triggerMoverRoleOtherElements.get(document.filename+\"-\"+se1.id+\"-\"+se2.id);\n if (roleOtherElements == null)\n document.triggerMoverRoleOtherElements.put(document.filename+\"-\"+se1.id+\"-\"+se2.id, roleOtherElements = new HashMap<>());\n if (se3 != null) { \n String role = se3Role.toUpperCase();\n List<String> otherElements = roleOtherElements.get(role);\n if (otherElements == null)\n roleOtherElements.put(role, otherElements = new ArrayList<>());\n if (!otherElements.contains(se3.id))\n otherElements.add(se3.id); \n }\n }\n \n Map<String, SpatialRelation> tripletsSpatialRelations = document.relationTripletsSpatialRelations.get(sr.type);\n if (tripletsSpatialRelations == null)\n document.relationTripletsSpatialRelations.put(sr.type, tripletsSpatialRelations = new HashMap<>());\n \n //for non (or unannotated) relations, a check is made to see if it\n //was added as a positive relation earlier, \n //in which case this new relation is not stored.\n if (!sr.classValue.equals(\"1\") && tripletsSpatialRelations.containsKey(this.idString))\n return;\n \n sr.se1 = se1;\n if (se1 != null)\n sr.rolesString = se1Role;\n sr.se2 = se2;\n if (se2 != null)\n sr.rolesString = sr.rolesString == null ? se2Role : sr.rolesString+\"-\"+se2Role;\n sr.se3 = se3;\n if (se3 != null)\n sr.rolesString = sr.rolesString == null ? se3Role : sr.rolesString+\"-\"+se3Role; \n \n tripletsSpatialRelations.put(sr.idString, sr);\n }",
"public ConfidenceAlignment(String sgtFile,String tgsFile,String sgtLexFile,String tgsLexFile){\r\n\t\r\n\t\tLEX = new TranslationLEXICON(sgtLexFile,tgsLexFile);\r\n\t\t\r\n\t\tint sennum = 0;\r\n\t\tdouble score = 0.0;\r\n\t\t// Reading a GZIP file (SGT) \r\n\t\ttry { \r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader\r\n\t\t\t\t\t\t\t\t(new GZIPInputStream(new FileInputStream(sgtFile)),\"UTF8\"));\r\n\t\t\r\n\t\tString one = \"\"; String two =\"\"; String three=\"\"; \r\n\t\twhile((one=br.readLine())!=null){\r\n\t\t\ttwo = br.readLine(); \r\n\t\t\tthree=br.readLine(); \r\n\r\n\t\t\tMatcher m1 = scorepattern.matcher(one);\r\n\t\t\tif (m1.find()) \r\n\t\t\t{\r\n\t\t\t\tscore = Double.parseDouble(m1.group(1));\r\n\t\t\t\t//System.err.println(\"Score:\"+score);\r\n\t\t\t}\r\n\r\n\t\t\tgizaSGT.put(sennum,score); \r\n\t\t\tsennum++;\r\n\t\t}\r\n\t\tbr.close();\r\n\t\tSystem.err.println(\"Loaded \"+sennum+ \" sens from SGT file:\"+sgtFile);\r\n\t\t\r\n\t\t// Reading a GZIP file (TGS)\r\n\t\tsennum = 0; \r\n\t\tbr = new BufferedReader(new InputStreamReader\r\n\t\t\t\t\t\t\t\t(new GZIPInputStream(new FileInputStream(tgsFile)),\"UTF8\")); \r\n\t\twhile((one=br.readLine())!=null){\r\n\t\t\ttwo = br.readLine(); \r\n\t\t\tthree=br.readLine(); \r\n\t\t\t\r\n\t\t\tMatcher m1 = scorepattern.matcher(one);\r\n\t\t\tif (m1.find()) \r\n\t\t\t{\r\n\t\t\t\tscore = Double.parseDouble(m1.group(1));\r\n\t\t\t\t//System.err.println(\"Score:\"+score);\r\n\t\t\t}\r\n\t\t\tgizaTGS.put(sennum,score); \r\n\t\t\tsennum++;\r\n\t\t}\r\n\t\tbr.close();\t\t\r\n\t\t}catch(Exception e){}\r\n\t\tSystem.err.println(\"Loaded \"+sennum+ \" sens from SGT file:\"+sgtFile);\t\r\n\t}",
"void currentDocumentChanged(SingleDocumentModel previousModel, SingleDocumentModel currentModel);",
"@Test\n\tpublic void testRealWorldCase_uc010nov_3() throws InvalidGenomeChange {\n\t\tthis.builderForward = TranscriptModelFactory\n\t\t\t\t.parseKnownGenesLine(\n\t\t\t\t\t\trefDict,\n\t\t\t\t\t\t\"uc010nov.3\tchrX\t+\t103031438\t103047547\t103031923\t103045526\t8\t103031438,103031780,103040510,103041393,103042726,103043365,103044261,103045454,\t103031575,103031927,103040697,103041655,103042895,103043439,103044327,103047547,\tP60201\tuc010nov.3\");\n\t\tthis.builderForward\n\t\t.setSequence(\"atggcttctcacgcttgtgctgcatatcccacaccaattagacccaaggatcagttggaagtttccaggacatcttcattttatttccaccctcaatccacatttccagatgtctctgcagcaaagcgaaattccaggagaagaggacaaagatactcagagagaaaaagtaaaagaccgaagaaggaggctggagagaccaggatccttccagctgaacaaagtcagccacaaagcagactagccagccggctacaattggagtcagagtcccaaagacatgggcttgttagagtgctgtgcaagatgtctggtaggggccccctttgcttccctggtggccactggattgtgtttctttggggtggcactgttctgtggctgtggacatgaagccctcactggcacagaaaagctaattgagacctatttctccaaaaactaccaagactatgagtatctcatcaatgtgatccatgccttccagtatgtcatctatggaactgcctctttcttcttcctttatggggccctcctgctggctgagggcttctacaccaccggcgcagtcaggcagatctttggcgactacaagaccaccatctgcggcaagggcctgagcgcaacggtaacagggggccagaaggggaggggttccagaggccaacatcaagctcattctttggagcgggtgtgtcattgtttgggaaaatggctaggacatcccgacaagtttgtgggcatcacctatgccctgaccgttgtgtggctcctggtgtttgcctgctctgctgtgcctgtgtacatttacttcaacacctggaccacctgccagtctattgccttccccagcaagacctctgccagtataggcagtctctgtgctgatgccagaatgtatggtgttctcccatggaatgctttccctggcaaggtttgtggctccaaccttctgtccatctgcaaaacagctgagttccaaatgaccttccacctgtttattgctgcatttgtgggggctgcagctacactggtttccctgctcaccttcatgattgctgccacttacaactttgccgtccttaaactcatgggccgaggcaccaagttctgatcccccgtagaaatccccctttctctaatagcgaggctctaaccacacagcctacaatgctgcgtctcccatcttaactctttgcctttgccaccaactggccctcttcttacttgatgagtgtaacaagaaaggagagtcttgcagtgattaaggtctctctttggactctcccctcttatgtacctcttttagtcattttgcttcatagctggttcctgctagaaatgggaaatgcctaagaagatgacttcccaactgcaagtcacaaaggaatggaggctctaattgaattttcaagcatctcctgaggatcagaaagtaatttcttctcaaagggtacttccactgatggaaacaaagtggaaggaaagatgctcaggtacagagaaggaatgtctttggtcctcttgccatctataggggccaaatatattctctttggtgtacaaaatggaattcattctggtctctctattaccactgaagatagaagaaaaaagaatgtcagaaaaacaataagagcgtttgcccaaatctgcctattgcagctgggagaagggggtcaaagcaaggatctttcacccacagaaagagagcactgaccccgatggcgatggactactgaagccctaactcagccaaccttacttacagcataagggagcgtagaatctgtgtagacgaagggggcatctggccttacacctcgttagggaagagaaacagggtgttgtcagcatcttctcactcccttctccttgataacagctaccatgacaaccctgtggtttccaaggagctgagaatagaaggaaactagcttacatgagaacagactggcctgaggagcagcagttgctggtggctaatggtgtaacctgagatggccctctggtagacacaggatagataactctttggatagcatgtctttttttctgttaattagttgtgtactctggcctctgtcatatcttcacaatggtgctcatttcatgggggtattatccattcagtcatcgtaggtgatttgaaggtcttgatttgttttagaatgatgcacatttcatgtattccagtttgtttattacttatttggggttgcatcagaaatgtctggagaataattctttgattatgactgttttttaaactaggaaaattggacattaagcatcacaaatgatattaaaaattggctagttgaatctattgggattttctacaagtattctgcctttgcagaaacagatttggtgaatttgaatctcaatttgagtaatctgatcgttctttctagctaatggaaaatgattttacttagcaatgttatcttggtgtgttaagagttaggtttaacataaaggttattttctcctgatatagatcacataacagaatgcaccagtcatcagctattcagttggtaagcttccaggaaaaaggacaggcagaaagagtttgagacctgaatagctcccagatttcagtcttttcctgtttttgttaactttgggttaaaaaaaaaaaaagtctgattggttttaattgaaggaaagatttgtactacagttcttttgttgtaaagagttgtgttgttcttttcccccaaagtggtttcagcaatatttaaggagatgtaagagctttacaaaaagacacttgatacttgttttcaaaccagtatacaagataagcttccaggctgcatagaaggaggagagggaaaatgttttgtaagaaaccaatcaagataaaggacagtgaagtaatccgtaccttgtgttttgttttgatttaataacataacaaataaccaacccttccctgaaaacctcacatgcatacatacacatatatacacacacaaagagagttaatcaactgaaagtgtttccttcatttctgatatagaattgcaattttaacacacataaaggataaacttttagaaacttatcttacaaagtgtattttataaaattaaagaaaataaaattaagaatgttctcaatcaaaaaaaaaaaaaaa\"\n\t\t\t\t.toUpperCase());\n\t\tthis.builderForward.setGeneSymbol(\"PLP1\");\n\t\tthis.infoForward = builderForward.build();\n\t\t// RefSeq NM_001128834.1\n\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', refDict.contigID.get(\"X\"), 103041655,\n\t\t\t\tPositionType.ONE_BASED), \"GGTGATC\", \"A\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.453_453+6delinsA\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.=\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION, VariantType.SPLICE_DONOR),\n\t\t\t\tannotation1.effects);\n\t}",
"public void approve() {\r\n\t\tif (readDocument != null) {\r\n\t\t\tif (incorrectWords.size() > 0) {\r\n\t\t\t\tScanner sc = new Scanner(System.in);\r\n\t\t\t\tObject[] incorrectWordsArray = incorrectWords.toArray();\r\n\t\t\t\tfor (int i = 0; i < incorrectWordsArray.length; i++) {\r\n\t\t\t\t\tSystem.out.print(\"Would you like to add '\" + incorrectWordsArray[i] + \"' to the dictionary? (Y/N): \");\r\n\t\t\t\t\tString response = sc.next();\r\n\t\t\t\t\tif (response.equalsIgnoreCase(\"Y\")) {\r\n\t\t\t\t\t\tdictionary.add((String)incorrectWordsArray[i]);\r\n\t\t\t\t\t\tincorrectWords.remove((String)incorrectWordsArray[i]);\r\n\t\t\t\t\t\tSystem.out.println(\"Your changes were made to the dicitonary.\");\r\n\t\t\t\t\t\tmodified = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"There were no misspelled words.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"You have not read in a document to be spell checked. Please indicate file name\"\r\n\t\t\t\t\t+ \" before using this feature.\");\r\n\t\t}\r\n\t}",
"public String getAnnotatedSequence(JCas systemView, JCas goldView, Sentence sentence) {\n\n List<String> annotatedSequence = new ArrayList<>();\n\n for(BaseToken baseToken : JCasUtil.selectCovered(systemView, BaseToken.class, sentence)) {\n List<EventMention> events = JCasUtil.selectCovering(goldView, EventMention.class, baseToken.getBegin(), baseToken.getEnd());\n List<TimeMention> times = JCasUtil.selectCovering(goldView, TimeMention.class, baseToken.getBegin(), baseToken.getEnd());\n\n if(events.size() > 0) {\n // this is an event (single word)\n annotatedSequence.add(\"<e>\");\n annotatedSequence.add(baseToken.getCoveredText());\n annotatedSequence.add(\"</e>\");\n } else if(times.size() > 0) {\n // this is time expression (multi-word)\n if(times.get(0).getBegin() == baseToken.getBegin()) {\n annotatedSequence.add(\"<t>\");\n }\n annotatedSequence.add(baseToken.getCoveredText());\n if(times.get(0).getEnd() == baseToken.getEnd()) {\n annotatedSequence.add(\"</t>\"); \n }\n } else {\n annotatedSequence.add(baseToken.getCoveredText());\n }\n }\n \n return String.join(\" \", annotatedSequence).replaceAll(\"[\\r\\n]\", \" \");\n }",
"public static LeanDocument readDocumentOld(String directory, int docID)\n throws IOException\n{\n // Open the document\n String corefFilename = directory + \"/\" + docID + \"/answer.key.corrected\";\n LeanDocument doc = new LeanDocument(docID);\n // This will keep track of the number of chains\n\n LineIterator fi = new LineIterator(new File(corefFilename));\n String line;\n while (fi.hasNext()) {\n line = fi.next();\n\n String[] parse = line.split(\",\");\n int currentID = Integer.parseInt(parse[0]);\n\n // int start = Integer.parseInt(parse[1]);\n // int end = Integer.parseInt(parse[2]);\n int corefID = Integer.parseInt(parse[3]);\n\n // The rest of the line belongs to the text of the NP\n StringBuilder npText1 = new StringBuilder(parse[4]);\n for (int i = 5; i < parse.length; i++) {\n npText1.append(\",\").append(parse[i]);\n }\n String npText = npText1.toString();\n // Make sure that we read the np until the end (across newlines)\n while (!npText.endsWith(\"<END>#\") && !npText.endsWith(\"<END>*\") && fi.hasNext()) {\n // add back the endl\n line = fi.next();\n npText1.append(\"\\n\").append(line);\n npText = npText1.toString();\n }\n if (npText.charAt(npText.length() - 1) == '#') {\n // we have a source\n npText = npText.substring(0, npText.length() - 6);\n\n // Now we have all the info, create a new np\n if (doc.NPchains.containsKey(currentID)) throw new RuntimeException(\"Id \" + currentID + \" read twice.\");\n doc.NPchains.put(currentID, corefID);\n TreeMap<Integer, Integer> cluster;\n if (corefID < 0 || !doc.clusters.containsKey(corefID)) {\n doc.numChains++;\n }\n if (doc.clusters.containsKey(corefID)) {\n cluster = doc.clusters.get(corefID);\n }\n else {\n cluster = new TreeMap<Integer, Integer>();\n doc.clusters.put(corefID, cluster);\n }\n cluster.put(currentID, currentID);\n\n }\n }\n // Take care of singleton clusters (marked -1)\n TreeMap<Integer, Integer> singl = doc.clusters.get(-1);\n if (singl != null) {\n int index = doc.numChains;\n for (Integer item : singl.keySet()) {\n TreeMap<Integer, Integer> cl = Maps.newTreeMap();\n cl.put(item, item);\n Integer itemInd = index--;\n doc.clusters.put(itemInd, cl);\n doc.NPchains.put(item, itemInd);\n }\n doc.clusters.remove(-1);\n }\n return doc;\n}",
"public static void main(String[] args) {\n\t\tint hate = TEXT.indexOf(\"hate\");\n\t\tString newText = TEXT.substring(0, hate)+ \"love\" + TEXT.substring(hate+4);\n\t\t\n\t\tSystem.out.println(\"The line of text to be changed is: \\n\" + TEXT);\n\t\tSystem.out.println(\"I have rephrased that line to read: \\n\" + newText);\n\t}",
"public void modify() {\n }",
"private void applyMerge() {\n try {\n SolutionTrajectory trajectory = solution.getShortestTrajectory();\n trajectory.setModel(this.scope);\n trajectory.doTransformation();\n applied = true;\n } catch (IncQueryException e) {\n logger.error(e.getMessage(), e);\n }\n }",
"public void trainDocTopicModel(Vector original, Vector labels, Matrix docTopicModel, boolean inf) {\n List<Integer> terms = new ArrayList<Integer>();\n Iterator<Vector.Element> docElementIter = original.iterateNonZero();\n //long getIterTime=System.currentTimeMillis();\n double docTermCount = 0.0;\n while (docElementIter.hasNext()) {\n Vector.Element element = docElementIter.next();\n terms.add(element.index());\n docTermCount += element.get();\n }\n //long midTime=System.currentTimeMillis();\n List<Integer> topicLabels = new ArrayList<Integer>();\n Iterator<Vector.Element> labelIter = labels.iterateNonZero();\n while (labelIter.hasNext()) {\n Vector.Element e = labelIter.next();\n topicLabels.add(e.index());\n }\n //long t1 = System.currentTimeMillis();\n //log.info(\"get List use {} ms ,with terms' size of {} and doc size of {},get term list use {} ms,get termIter use time {} \",new Object[]{(t1-preTime),terms.size(),original.size(),(midTime-preTime),(getIterTime-preTime)});\n //log.info(\"docTopicModel columns' length is {} \",docTopicModel.columnSize());\n pTopicGivenTerm(terms, topicLabels, docTopicModel);\n //long t2 = System.currentTimeMillis();\n //log.info(\"pTopic use {} ms with terms' size {}\", new Object[]{(t2 - t1),terms.size()});\n normByTopicAndMultiByCount(original, terms, docTopicModel);\n //long t3 = System.currentTimeMillis();\n //log.info(\"normalize use {} ms with terms' size {}\", new Object[]{(t3 - t2),terms.size()});\n // now multiply, term-by-term, by the document, to get the weighted distribution of\n // term-topic pairs from this document.\n\n // now recalculate \\(p(topic|doc)\\) by summing contributions from all of pTopicGivenTerm\n if (inf) {\n for (Vector.Element topic : labels) {\n labels.set(topic.index(), (docTopicModel.viewRow(topic.index()).norm(1) + alpha) / (docTermCount + numTerms * alpha));\n }\n // now renormalize so that \\(sum_x(p(x|doc))\\) = 1\n labels.assign(Functions.mult(1 / labels.norm(1)));\n //log.info(\"set topics use {} \" + (System.currentTimeMillis() - t3));\n }\n //log.info(\"after train: \"+ topics.toString());\n }",
"public void mergeAlignment() {\n \n SAMFileReader unmappedSam = null;\n if (this.unmappedBamFile != null) {\n unmappedSam = new SAMFileReader(IoUtil.openFileForReading(this.unmappedBamFile));\n }\n \n // Write the read groups to the header\n if (unmappedSam != null) header.setReadGroups(unmappedSam.getFileHeader().getReadGroups());\n \n int aligned = 0;\n int unmapped = 0;\n \n final PeekableIterator<SAMRecord> alignedIterator = \n new PeekableIterator(getQuerynameSortedAlignedRecords());\n final SortingCollection<SAMRecord> alignmentSorted = SortingCollection.newInstance(\n SAMRecord.class, new BAMRecordCodec(header), new SAMRecordCoordinateComparator(),\n MAX_RECORDS_IN_RAM);\n final ClippedPairFixer pairFixer = new ClippedPairFixer(alignmentSorted, header);\n \n final CloseableIterator<SAMRecord> unmappedIterator = unmappedSam.iterator();\n SAMRecord nextAligned = alignedIterator.hasNext() ? alignedIterator.next() : null;\n SAMRecord lastAligned = null;\n \n final UnmappedReadSorter unmappedSorter = new UnmappedReadSorter(unmappedIterator);\n while (unmappedSorter.hasNext()) {\n final SAMRecord rec = unmappedSorter.next();\n rec.setReadName(cleanReadName(rec.getReadName()));\n if (nextAligned != null && rec.getReadName().compareTo(nextAligned.getReadName()) > 0) {\n throw new PicardException(\"Aligned Record iterator (\" + nextAligned.getReadName() +\n \") is behind the umapped reads (\" + rec.getReadName() + \")\");\n }\n rec.setHeader(header);\n \n if (isMatch(rec, nextAligned)) {\n if (!ignoreAlignment(nextAligned)) {\n setValuesFromAlignment(rec, nextAligned);\n if (programRecord != null) {\n rec.setAttribute(ReservedTagConstants.PROGRAM_GROUP_ID,\n programRecord.getProgramGroupId());\n }\n aligned++;\n }\n nextAligned = alignedIterator.hasNext() ? alignedIterator.next() : null;\n }\n else {\n unmapped++;\n }\n \n // Add it if either the read or its mate are mapped, unless we are adding aligned reads only\n final boolean eitherReadMapped = !rec.getReadUnmappedFlag() || (rec.getReadPairedFlag() && !rec.getMateUnmappedFlag());\n \n if (eitherReadMapped || !alignedReadsOnly) {\n pairFixer.add(rec);\n }\n }\n unmappedIterator.close();\n alignedIterator.close();\n \n final SAMFileWriter writer =\n new SAMFileWriterFactory().makeBAMWriter(header, true, this.targetBamFile);\n int count = 0;\n CloseableIterator<SAMRecord> it = alignmentSorted.iterator();\n while (it.hasNext()) {\n SAMRecord rec = it.next();\n if (!rec.getReadUnmappedFlag()) {\n if (refSeq != null) {\n byte referenceBases[] = refSeq.get(rec.getReferenceIndex()).getBases();\n rec.setAttribute(SAMTag.NM.name(),\n SequenceUtil.calculateSamNmTag(rec, referenceBases, 0, bisulfiteSequence));\n rec.setAttribute(SAMTag.UQ.name(),\n SequenceUtil.sumQualitiesOfMismatches(rec, referenceBases, 0, bisulfiteSequence));\n }\n }\n writer.addAlignment(rec);\n if (++count % 1000000 == 0) {\n log.info(count + \" SAMRecords written to \" + targetBamFile.getName());\n }\n }\n writer.close();\n \n \n log.info(\"Wrote \" + aligned + \" alignment records and \" + unmapped + \" unmapped reads.\");\n }",
"private RecordSet armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos)\n {\n \n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos): Entrada\");\n\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + r);\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + rAccesos); \n \n for (int i = 0; i < r.getRowCount(); i++)\n {\n String descAcceso = (String) rAccesos.getValueAt(i,1);\n //Long oidAcceso = new Long( bigOidAcceso.longValue() );\n r.setValueAt(descAcceso, i,7);\n }\n \n UtilidadesLog.debug(\"***** RecordSet modificado: \" + r);\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos): Salida\");\n return r; \n }",
"private void updateRepFromLog(URI phyOntURI) {\r\n\t\t// first get ontology whose physical uri matches \r\n\t\tURI logOntURI = null;\r\n\t\tfor (Iterator iter = swoopModel.getOntologies().iterator(); iter.hasNext();) {\r\n\t\t\tOWLOntology ont = (OWLOntology) iter.next(); \r\n\t\t\ttry {\r\n\t\t\t\tif (ont.getPhysicalURI().equals(phyOntURI)) {\r\n\t\t\t\t\tlogOntURI = ont.getLogicalURI();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (OWLException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (logOntURI==null) {\r\n\t\t\tSystem.out.println(\"No Ontology in Swoop has physical URI: \"+phyOntURI);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// get changes from swoopModel.changeCache\r\n\t\tList changes = swoopModel.getChangesCache().getChangeList(logOntURI);\r\n\t\tList allRepChanges = this.getDescendantChanges(repRoot);\r\n\t\tallRepChanges.removeAll(this.getDescendantChanges(newCommitNode));\r\n\t\tfor (Iterator iter = new ArrayList(changes).iterator(); iter.hasNext();) {\r\n\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\tif (this.isPresent(allRepChanges, swc)) changes.remove(swc);\r\n\t\t}\r\n\t\t\r\n\t\tthis.sortChanges(changes);\r\n\t\t\r\n\t\t// add (new) repChanges to newCommit node directly\r\n\t\tnewCommitNode.children = new Vector();\r\n\t\tfor (Iterator iter = changes.iterator(); iter.hasNext();) {\r\n\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\tTreeTableNode swcNode = new TreeTableNode(swc);\r\n\t\t\tnewCommitNode.addChild(swcNode);\t\r\n\t\t}\t\t\t\t\t\r\n\t\tthis.refreshRepTreeTable(true);\t\r\n\t}",
"static String correctParagraph(String paragraph) {\n\n\t\t\tString newText = paragraph.replaceAll(\"\\\\s{2,}+\", \" \");\n\n\t\t\tnewText = newText.replaceAll(\"\\\\s+,\", \",\");\n\t\t\tnewText = newText.replaceAll(\"\\\\s+\\\\.\", \".\");\n\n\n\t\t\tString firstLetter = newText.substring(0, 1).toUpperCase();\n\t\t\tnewText = firstLetter + newText.substring(1);\n\n\t\t\tString[] sentences = newText.split(\"\\\\.\");\n\t\t\tfor(int i = 0; i < sentences.length; i++){\n\t\t\t\tString temp = sentences[i].trim();\n\t\t\t\tfirstLetter = temp.substring(0, 1).toUpperCase();\n\t\t\t\tsentences[i] = firstLetter + temp.substring(1);\n\t\t\t}\n\t\t\tStringBuilder newParagraph = new StringBuilder(sentences[0]);\n\t\t\tfor(int i = 1; i < sentences.length; i++){\n\t\t\t\tnewParagraph.append(\". \").append(sentences[i]);\n\t\t\t}\n\t\t\tnewText = newParagraph.append(\".\").toString();\n\n\t\t\treturn newText;\n\t\t}",
"void documentModifyStatusUpdated(SingleDocumentModel model);",
"void documentModifyStatusUpdated(SingleDocumentModel model);",
"public void GenSetAnnotation(ReadOrganism infoOrganism, String author) throws Exception {\t\t\n\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\tint countMod = 1;\n\t\tfor(String module :infoOrganism.module2symbols.keySet()) {\n\t\t\n\t\t\tSystem.out.println(\"### Module : \"+module+ \" - \" + countMod +\"/\"+infoOrganism.module2symbols.keySet().size());\n\t\t\tcountMod++;\n\t\t\tList<String> symb = new ArrayList<String>( infoOrganism.module2symbols.get(module)); // Get the gene to a precise module\n\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/\"+author+\"_\"+ic+\"/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t}\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}",
"@Override\n\t\tpublic void documentAboutToBeChanged(DocumentEvent event) {\n\t\t\tTextDocumentContentChangeEvent changeEvent = toChangeEvent(event);\n\t\t\tif (changeEvent == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.change = new DidChangeTextDocumentParams();\n\t\t\tVersionedTextDocumentIdentifier doc = new VersionedTextDocumentIdentifier();\n\t\t\tdoc.setUri(fileURI.toString());\n\t\t\tdoc.setVersion(version);\n\t\t\tthis.change.setTextDocument(doc);\n\t\t\tthis.change.setContentChanges(Arrays.asList(new TextDocumentContentChangeEvent[] { changeEvent }));\n\t\t}",
"void setTranslation(int objIndex,Vector3f trans){\n look[objIndex].setTranslation(trans);\n usedTrans.set(objIndex);\n }",
"public static void generateInvertedIndex(Map<String, List<Posting>> stemMap, List<String> documentIds)\n {\n long lineCounter = 0;\n int documentCounter = -1;\n String currentDocId = \"\";\n String currentDocTitle = \"\";\n Scanner scanner = new Scanner(System.in);\n\n while (scanner.hasNext())\n {\n String line = scanner.nextLine();\n lineCounter++;\n \n if (line.startsWith(\"$DOC\"))\n {\n String[] wordStems = line.split(\" \");\n currentDocId = wordStems[1];\n documentCounter++;\n }\n else if (line.startsWith(\"$TITLE\"))\n {\n /* Save document titles for documentId list */\n long docLineNumber = lineCounter - 1;\n currentDocTitle = \"\";\n \n while (scanner.hasNext())\n {\n String nextTitleLine = scanner.nextLine();\n if (nextTitleLine.startsWith(\"$TEXT\"))\n {\n lineCounter++;\n documentIds.add(String.format(\"%s %d %s\\n\", currentDocId, docLineNumber, currentDocTitle));\n break;\n }\n else\n {\n lineCounter++;\n currentDocTitle += nextTitleLine;\n currentDocTitle += \" \";\n }\n }\n }\n else\n {\n String[] wordStems = line.split(\" \");\n for (String wordStem: wordStems)\n {\n if (stemMap.containsKey(wordStem))\n {\n List<Posting> currentStemPostings = stemMap.get(wordStem);\n int lastElementIndex = currentStemPostings.size() - 1;\n Posting lastPosting = currentStemPostings.get(lastElementIndex);\n \n if (lastPosting.documentId == documentCounter)\n {\n lastPosting.termFrequency += 1;\n }\n else\n {\n Posting posting = new Posting(documentCounter, 1);\n currentStemPostings.add(posting);\n }\n }\n else\n {\n List<Posting> postings = new ArrayList<>();\n Posting posting = new Posting(documentCounter, 1);\n postings.add(posting);\n stemMap.put(wordStem, postings);\n }\n }\n }\n }\n scanner.close();\n }",
"public abstract void setPoseSolver(PoseSolver poseSolver);",
"int updateByPrimaryKeyWithBLOBs(AnnouncementDO record);",
"@Override\n protected final Void updateKeyAfterInsert(SupervisionstandardParagraph entity, long rowId) {\n return null;\n }"
]
| [
"0.5735404",
"0.54204124",
"0.538279",
"0.523364",
"0.52013785",
"0.5194964",
"0.50557053",
"0.5025195",
"0.49591434",
"0.49498284",
"0.4937378",
"0.4837073",
"0.4769733",
"0.4763729",
"0.47622803",
"0.47586516",
"0.4733175",
"0.4731034",
"0.47211552",
"0.47066045",
"0.47055292",
"0.46893996",
"0.46760648",
"0.46509713",
"0.46375114",
"0.46132693",
"0.45815334",
"0.4549306",
"0.45477286",
"0.45197812",
"0.4513536",
"0.45082077",
"0.45082077",
"0.44839928",
"0.44790998",
"0.4445503",
"0.4444129",
"0.44383484",
"0.44150946",
"0.44061038",
"0.44056413",
"0.43984032",
"0.43982124",
"0.43898588",
"0.43895432",
"0.43868187",
"0.43752468",
"0.43610612",
"0.43603915",
"0.4352155",
"0.43416902",
"0.4340665",
"0.4338",
"0.43208018",
"0.4314652",
"0.4311683",
"0.43024394",
"0.42981187",
"0.42878434",
"0.42861453",
"0.42857626",
"0.42831686",
"0.42823195",
"0.42700332",
"0.42677742",
"0.4259155",
"0.42539284",
"0.42479715",
"0.42472982",
"0.42374897",
"0.4236453",
"0.4234534",
"0.42324317",
"0.42267802",
"0.42229155",
"0.42223436",
"0.42186892",
"0.42175266",
"0.42173436",
"0.4216509",
"0.42163268",
"0.42102456",
"0.4207993",
"0.42012662",
"0.41994646",
"0.41957137",
"0.41943163",
"0.41926768",
"0.41922793",
"0.41832897",
"0.41768157",
"0.41758412",
"0.41758412",
"0.41737574",
"0.41731524",
"0.41727164",
"0.41693208",
"0.41692677",
"0.41660658",
"0.41649386"
]
| 0.6996161 | 0 |
Set the predicts to be the true alignment Not implemented | public void implementPredicts(RevisionDocument doc) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void setPredictSecStructure(boolean predictSecStructure) {\n\t\t\t\n\t\t}",
"public void predict_all(Mat samples, Mat results)\r\n {\r\n\r\n predict_all_0(nativeObj, samples.nativeObj, results.nativeObj);\r\n\r\n return;\r\n }",
"public void prediction() {\n\t\txPriorEstimate = xPreviousEstimate;\n\t\tpPriorCovarianceError = pPreviousCovarianceError;\n\t}",
"@Override\n\tpublic void predictFromPlainFile(String unlabel_file, String predict_file) {\n\t\t\n\t}",
"public void reset() {\n this.predictor.reset();\n for(int i=0; i<this.predictedIntraday.length; i++) {\n this.predictedIntraday[i] = 0;\n }\n }",
"private static native void predict_all_0(long nativeObj, long samples_nativeObj, long results_nativeObj);",
"public void printPrediction() {\n\t\tfor (int i = 0; i < testData.size(); i++) {\n\t\n\t\t\tSystem.out.print(testData.get(i) + \", Predicted label:\"\n\t\t\t\t\t+ predictLabels[i]);\n\t\t\tif (predictLabels[i] >= 20) System.out.println(\" Successful\");\n\t\t\telse System.out.println(\" Failed\");\n\t\t}\n\t}",
"public boolean is_set_predictResult() {\n return this.predictResult != null;\n }",
"public int getNumberOfPredictors()\n {\n return 1;\n }",
"@Override\n\t\tpublic boolean isPredictSecStructure() {\n\t\t\treturn false;\n\t\t}",
"public void setNewPrediction()\n\t{\n\t\tfor (int i=0;i<NUM_GOODS;i++)\n\t\t{\n\t\t\tfor (int j=0;j<VALUE_UPPER_BOUND+1;j++)\n\t\t\t{\n\t\t\t\tcumulPrediction[i][j] = 0;\n\t\t\t\t//System.out.println(pricePrediction[i][j]);\n\t\t\t\tprevPrediction[i][j] = pricePrediction[i][j];\n\t\t\t\t// 0.1 corresponds infestismal amount mentioned in the paper.\n\t\t\t\tpricePrediction[i][j] = priceObservation[i][j] + 0.1;\n\t\t\t\tcumulPrediction[i][j] += pricePrediction[i][j];\n\t\t\t\tif (j>0)\n\t\t\t\t{\n\t\t\t\t\tcumulPrediction[i][j] += cumulPrediction[i][j-1];\n\t\t\t\t}\n\t\t\t\tpriceObservation[i][j] = 0; \n\t\t\t}\n\t\t}\n\t\tthis.observationCount = 0;\n\t\tthis.isPricePredicting = true;\n\t\t//buildCumulativeDist();\n\t}",
"public void setSkillPrediction(Skills skill);",
"public void setAlignedSequence( Sequence alseq ) {\n\t\tthis.alignedsequence = alseq;\n\t\tif(alseq.id == null) alseq.id = id;\n\t\tif(seq != null) alseq.name = seq.getGroup();\n\t\tif(alseq.group == null) alseq.group = group;\n\t}",
"@Override\n public Builder trainSequencesRepresentation(boolean trainSequences) {\n throw new IllegalStateException(\"You can't change this option for Word2Vec\");\n }",
"private void alignSingle(RevisionDocument doc, double[][] probMatrix,\n\t\t\tdouble[][] fixedMatrix, int option) throws Exception {\n\t\tint oldLength = probMatrix.length;\n\t\tint newLength = probMatrix[0].length;\n\t\tif (doc.getOldSentencesArray().length != oldLength\n\t\t\t\t|| doc.getNewSentencesArray().length != newLength) {\n\t\t\tthrow new Exception(\"Alignment sentence does not match\");\n\t\t} else {\n\t\t\t/*\n\t\t\t * Rules for alignment 1. Allows one to many and many to one\n\t\t\t * alignment 2. No many to many alignments (which would make the\n\t\t\t * annotation even more difficult)\n\t\t\t */\n\t\t\tif (option == -1) { // Baseline 1, using the exact match baseline\n\t\t\t\tfor (int i = 0; i < oldLength; i++) {\n\t\t\t\t\tfor (int j = 0; j < newLength; j++) {\n\t\t\t\t\t\tif (probMatrix[i][j] == 1) {\n\t\t\t\t\t\t\tdoc.predictNewMappingIndex(j + 1, i + 1);\n\t\t\t\t\t\t\tdoc.predictOldMappingIndex(i + 1, j + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (option == -2) { // Baseline 2, using the similarity\n\t\t\t\t\t\t\t\t\t\t// baseline\n\t\t\t\tfor (int i = 0; i < oldLength; i++) {\n\t\t\t\t\tfor (int j = 0; j < newLength; j++) {\n\t\t\t\t\t\tif (probMatrix[i][j] > 0.5) {\n\t\t\t\t\t\t\tdoc.predictNewMappingIndex(j + 1, i + 1);\n\t\t\t\t\t\t\tdoc.predictOldMappingIndex(i + 1, j + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else { // current best approach\n\t\t\t\tfor (int i = 0; i < oldLength; i++) {\n\t\t\t\t\tfor (int j = 0; j < newLength; j++) {\n\t\t\t\t\t\tif (fixedMatrix[i][j] == 1) {\n\t\t\t\t\t\t\tdoc.predictNewMappingIndex(j + 1, i + 1);\n\t\t\t\t\t\t\tdoc.predictOldMappingIndex(i + 1, j + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Code for improving\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public String predict (final ArrayList<String> values) {\n final ArrayList<Double> annExX = FloatConverter.valuesToDouble(values, attrs);\n // Get predict of ANN.\n final ArrayList<Double> output = getV(annExX);\n // Convert ANN output to raw output.\n final String target = FloatConverter.targetBackString(output, attrs);\n return target;\n }",
"private void initializeOffsets () {\n exampleStartOffsets.clear();\n int window = exampleLength + predictLength;\n for (int i = 0; i < train.size() - window; i++) { exampleStartOffsets.add(i); }\n }",
"public void setPredictedDistance(double val) {\r\n predictedDistance = val;\r\n }",
"public PredictAndConfidence predictWithConf (final ArrayList<String> values) {\n final ArrayList<Double> annExX = FloatConverter.valuesToDouble(values, attrs);\n // Get predict of ANN.\n final ArrayList<Double> output = getV(annExX);\n // Convert ANN output to raw output.\n final PredictAndConfidence target = FloatConverter.targetBackStringWithConf(output, attrs);\n return target;\n }",
"@Override\r\n\tpublic int predict(double[] x, double[] posteriori) {\n\t\treturn 0;\r\n\t}",
"private void shared_init(Vec resp) {\n /* For reproducibility we can control the randomness in the computation of the\n confusion matrix. The default seed when deserializing is 42. */\n// _data = _model.test_frame == null ? _model.fr : _model.test_frame;\n if (_model.validation) _computeOOB = false;\n _modelDataMap = _model.colMap(_data);\n assert !_computeOOB || _model._dataKey.equals(_datakey) : !_computeOOB + \" || \" + _model._dataKey + \" equals \" + _datakey;\n Vec respModel = resp;\n Vec respData = _data.vecs()[_classcol];\n int model_max = (int)respModel.max();\n int model_min = (int)respModel.min();\n int data_max = (int)respData.max();\n int data_min = (int)respData.min();\n\n if (respModel._domain!=null) {\n assert respData._domain != null;\n _model_classes_mapping = new int[respModel._domain.length];\n _data_classes_mapping = new int[respData._domain.length];\n // compute mapping\n _N = alignEnumDomains(respModel._domain, respData._domain, _model_classes_mapping, _data_classes_mapping);\n } else {\n assert respData._domain == null;\n _model_classes_mapping = null;\n _data_classes_mapping = null;\n // compute mapping\n _cmin_model_mapping = model_min - Math.min(model_min, data_min);\n _cmin_data_mapping = data_min - Math.min(model_min, data_min);\n _N = Math.max(model_max, data_max) - Math.min(model_min, data_min) + 1;\n }\n assert _N > 0; // You know...it is good to be sure\n init();\n }",
"protected void setValuesFromAlignment(final SAMRecord rec, final SAMRecord alignment) {\n for (final SAMRecord.SAMTagAndValue attr : alignment.getAttributes()) {\n // Copy over any non-reserved attributes.\n if (RESERVED_ATTRIBUTE_STARTS.indexOf(attr.tag.charAt(0)) == -1) {\n rec.setAttribute(attr.tag, attr.value);\n }\n }\n rec.setReadUnmappedFlag(alignment.getReadUnmappedFlag());\n rec.setReferenceIndex(alignment.getReferenceIndex());\n rec.setAlignmentStart(alignment.getAlignmentStart());\n rec.setReadNegativeStrandFlag(alignment.getReadNegativeStrandFlag());\n if (!alignment.getReadUnmappedFlag()) {\n // only aligned reads should have cigar and mapping quality set\n rec.setCigar(alignment.getCigar()); // cigar may change when a\n // clipCigar called below\n rec.setMappingQuality(alignment.getMappingQuality());\n }\n if (rec.getReadPairedFlag()) {\n rec.setProperPairFlag(alignment.getProperPairFlag());\n rec.setInferredInsertSize(alignment.getInferredInsertSize());\n rec.setMateUnmappedFlag(alignment.getMateUnmappedFlag());\n rec.setMateReferenceIndex(alignment.getMateReferenceIndex());\n rec.setMateAlignmentStart(alignment.getMateAlignmentStart());\n rec.setMateNegativeStrandFlag(alignment.getMateNegativeStrandFlag());\n }\n \n // If it's on the negative strand, reverse complement the bases\n // and reverse the order of the qualities\n if (rec.getReadNegativeStrandFlag()) {\n SAMRecordUtil.reverseComplement(rec);\n }\n \n if (clipAdapters && rec.getAttribute(ReservedTagConstants.XT) != null){\n CigarUtil.softClip3PrimeEndOfRead(rec, rec.getIntegerAttribute(ReservedTagConstants.XT));\n }\n }",
"@Override\n public double predict(double[] explanatory) {\n if (explanatory == null || explanatory.length == 0) {\n throw new IllegalArgumentException(\"explanatory features must not be null or empty\");\n }\n return Activation.SIGMOID.apply(bias + Vector.dotProduct(explanatory, theta));\n }",
"public void dmall() {\n \r\n BufferedReader datafile = readDataFile(\"Work//weka-malware.arff\");\r\n \r\n Instances data = null;\r\n\t\ttry {\r\n\t\t\tdata = new Instances(datafile);\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n data.setClassIndex(data.numAttributes() - 1);\r\n \r\n // Choose a type of validation split\r\n Instances[][] split = crossValidationSplit(data, 10);\r\n \r\n // Separate split into training and testing arrays\r\n Instances[] trainingSplits = split[0];\r\n Instances[] testingSplits = split[1];\r\n \r\n // Choose a set of classifiers\r\n Classifier[] models = { new J48(),\r\n new DecisionTable(),\r\n new DecisionStump(),\r\n new BayesianLogisticRegression() };\r\n \r\n // Run for each classifier model\r\n//for(int j = 0; j < models.length; j++) {\r\n int j = 0;\r\n \tswitch (comboClassifiers.getSelectedItem().toString()) {\r\n\t\t\tcase \"J48\":\r\n\t\t\t\tj = 0;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionTable\":\r\n\t\t\t\tj = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionStump\":\r\n\t\t\t\tj = 2;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"BayesianLogisticRegression\":\r\n\t\t\t\tj = 3;\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\r\n\r\n // Collect every group of predictions for current model in a FastVector\r\n FastVector predictions = new FastVector();\r\n \r\n // For each training-testing split pair, train and test the classifier\r\n for(int i = 0; i < trainingSplits.length; i++) {\r\n Evaluation validation = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tvalidation = simpleClassify(models[j], trainingSplits[i], testingSplits[i]);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n predictions.appendElements(validation.predictions());\r\n \r\n // Uncomment to see the summary for each training-testing pair.\r\n// textArea.append(models[j].toString() + \"\\n\");\r\n textArea.setText(models[j].toString() + \"\\n\");\r\n// System.out.println(models[j].toString());\r\n }\r\n \r\n // Calculate overall accuracy of current classifier on all splits\r\n double accuracy = calculateAccuracy(predictions);\r\n \r\n // Print current classifier's name and accuracy in a complicated, but nice-looking way.\r\n textArea.append(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\\n\");\r\n System.out.println(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\");\r\n//}\r\n \r\n\t}",
"private void calculatePrediction(int sensor_id){\n\t\t\n\t\tpredicted_sensor_readings[sensor_id][0] = (heta.getMatrix(sensor_id, sensor_id,0,M + number_of_sensors-1).times(getFeatureMatrix(sensor_id))).get(0, 0);\n\t\t\n\t}",
"float predict();",
"public PredictorListener buildPredictor();",
"public void setAlignment(int align)\n {\n this.align = align;\n }",
"public List<String> predict(List<String> sentences) {\n List<String> predictions = new ArrayList<>();\r\n for (String sentence : sentences) {\r\n predictions.add(predict(sentence));\r\n }\r\n return predictions;\r\n }",
"@java.lang.Override\n public int getPredictionsCount() {\n return predictions_.size();\n }",
"public void align(ArrayList<RevisionDocument> trainDocs,\n\t\t\tArrayList<RevisionDocument> testDocs, int option, boolean usingNgram)\n\t\t\tthrows Exception {\n\t\tHashtable<DocumentPair, double[][]> probMatrix = aligner\n\t\t\t\t.getProbMatrixTable(trainDocs, testDocs, option);\n\t\tIterator<DocumentPair> it = probMatrix.keySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tDocumentPair dp = it.next();\n\t\t\tString name = dp.getFileName();\n\t\t\tfor (RevisionDocument doc : testDocs) {\n\t\t\t\tif (doc.getDocumentName().equals(name)) {\n\t\t\t\t\tdouble[][] sim = probMatrix.get(dp);\n\t\t\t\t\tdouble[][] fixedSim = aligner.alignWithDP(dp, sim, option);\n\t\t\t\t\talignSingle(doc, sim, fixedSim, option);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tHashtable<String, RevisionDocument> table = new Hashtable<String, RevisionDocument>();\n\t\tfor (RevisionDocument doc : testDocs) {\n\t\t\tRevisionUnit predictedRoot = new RevisionUnit(true);\n\t\t\tpredictedRoot.setRevision_level(3); // Default level to 3\n\t\t\tdoc.setPredictedRoot(predictedRoot);\n\t\t\ttable.put(doc.getDocumentName(), doc);\n\t\t}\n\t\tRevisionPurposeClassifier rpc = new RevisionPurposeClassifier();\n\t\tInstances data = rpc.createInstances(testDocs, usingNgram);\n\t\tHashtable<String, Integer> revIndexTable = new Hashtable<String, Integer>();\n\t\tint dataSize = data.numInstances();\n\t\tfor (int j = 0;j<dataSize;j++) {\n\t\t\tInstance instance = data.instance(j);\n\t\t\tint ID_index = data.attribute(\"ID\").index();\n\t\t\t// String ID =\n\t\t\t// data.instance(ID_index).stringValue(instance.attribute(ID_index));\n\t\t\tString ID = instance.stringValue(instance.attribute(ID_index));\n\t\t\tAlignStruct as = AlignStruct.parseID(ID);\n\t\t\t// System.out.println(ID);\n\t\t\tRevisionDocument doc = table.get(as.documentpath);\n\t\t\tRevisionUnit ru = new RevisionUnit(doc.getPredictedRoot());\n\t\t\tru.setNewSentenceIndex(as.newIndices);\n\t\t\tru.setOldSentenceIndex(as.oldIndices);\n\t\t\tif (as.newIndices == null || as.newIndices.size() == 0) {\n\t\t\t\tru.setRevision_op(RevisionOp.DELETE);\n\t\t\t} else if (as.oldIndices == null || as.oldIndices.size() == 0) {\n\t\t\t\tru.setRevision_op(RevisionOp.ADD);\n\t\t\t} else {\n\t\t\t\tru.setRevision_op(RevisionOp.MODIFY);\n\t\t\t}\n\n\t\t\tru.setRevision_purpose(RevisionPurpose.CLAIMS_IDEAS); // default of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ADD and\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Delete\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// are\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// content\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// edits\n\n\t\t\tru.setRevision_level(0);\n\t\t\tif (revIndexTable.containsKey(as.documentpath)) {\n\t\t\t\tru.setRevision_index(revIndexTable.get(as.documentpath));\n\t\t\t\trevIndexTable.put(as.documentpath,\n\t\t\t\t\t\trevIndexTable.get(as.documentpath) + 1);\n\t\t\t} else {\n\t\t\t\tru.setRevision_index(1);\n\t\t\t\trevIndexTable.put(as.documentpath, 2);\n\t\t\t}\n\t\t\tdoc.getPredictedRoot().addUnit(ru);\n\t\t}\n\t}",
"@Override\n public void align(@NonNull PbVnAlignment alignment) {\n boolean noAgentiveA0 = alignment.proposition().predicate().ancestors(true).stream()\n .allMatch(s -> s.roles().stream()\n .map(r -> ThematicRoleType.fromString(r.type()).orElse(ThematicRoleType.NONE))\n .noneMatch(ThematicRoleType::isAgentive));\n\n for (PropBankPhrase phrase : alignment.sourcePhrases(false)) {\n List<NounPhrase> unaligned = alignment.targetPhrases(false).stream()\n .filter(i -> i instanceof NounPhrase)\n .map(i -> ((NounPhrase) i))\n .collect(Collectors.toList());\n if (phrase.getNumber() == ArgNumber.A0) {\n // TODO: seems like a hack\n if (alignment.proposition().predicate().verbNetId().classId().startsWith(\"51\") && noAgentiveA0) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (EnumSet.of(ThematicRoleType.AGENT, ThematicRoleType.CAUSER,\n ThematicRoleType.STIMULUS, ThematicRoleType.PIVOT)\n .contains(unalignedPhrase.thematicRoleType())) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A1) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME\n || unalignedPhrase.thematicRoleType() == ThematicRoleType.PATIENT) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A3) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isStartingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A4) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isEndingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n\n\n }\n }",
"public abstract int predict(double[] testingData);",
"public void setAlignmentX(AlignX anAlignX) { }",
"public static void predictBatch() throws IOException {\n\t\tsvm_model model;\n\t\tString modelPath = \"./corpus/trainVectors.scale.model\";\n\t\tString testPath = \"./corpus/testVectors.scale\";\n\t\tBufferedReader reader = new BufferedReader(new FileReader(testPath));\n\t\tmodel = svm.svm_load_model(modelPath);\n\t\tString oneline;\n\t\tdouble correct = 0.0;\n\t\tdouble total = 0.0;\n\t\twhile ((oneline = reader.readLine()) != null) {\n\t\t\tint pos = oneline.indexOf(\" \");\n\t\t\tint classid = Integer.valueOf(oneline.substring(0, pos));\n\t\t\tString content = oneline.substring(pos + 1);\n\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\tint length = st.countTokens();\n\t\t\tint i = 0;\n\t\t\tsvm_node[] svm_nodes = new svm_node[length];\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString tmp = st.nextToken();\n\t\t\t\tint indice = Integer\n\t\t\t\t\t\t.valueOf(tmp.substring(0, tmp.indexOf(\":\")));\n\t\t\t\tdouble value = Double\n\t\t\t\t\t\t.valueOf(tmp.substring(tmp.indexOf(\":\") + 1));\n\t\t\t\tsvm_nodes[i] = new svm_node();\n\t\t\t\tsvm_nodes[i].index = indice;\n\t\t\t\tsvm_nodes[i].value = value;\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tint predict_result = (int) svm.svm_predict(model, svm_nodes);\n\t\t\tif (predict_result == classid)\n\t\t\t\tcorrect++;\n\t\t\ttotal++;\n\t\t}\n\n\t\tSystem.out.println(\"Accuracy is :\" + correct / total);\n\n\t}",
"public void resetAttributes()\r\n\t{\r\n\t\t// TODO Keep Attribute List upto date\r\n\t\tintelligence = 0;\r\n\t\tcunning = 0;\r\n\t\tstrength = 0;\r\n\t\tagility = 0;\r\n\t\tperception = 0;\r\n\t\thonor = 0;\r\n\t\tspeed = 0;\r\n\t\tloyalty = 0;\r\n\t}",
"public static void main(String[] args) \n\t{\n\t\t// Konfiguration\n\t\tTraining training = new Training();\n\t\tint numberOfAttributes = 18;\n\t\tStatisticOutput statisticWriter = new StatisticOutput(\"data/statistics.txt\");\n\t\t\n\t\ttraining.printMessage(\"*** TCR-Predictor: Training ***\");\n\t\t\n\t\ttraining.printMessage(\"Datenbank von Aminosäure-Codierungen wird eingelesen\");\n\t\t// Lies die EncodingDB ein\n\t\tAAEncodingFileReader aa = new AAEncodingFileReader();\n\t\tAAEncodingDatabase db = aa.readAAEncodings(\"data/AAEncodings.txt\");\n\t\ttraining.printMessage(\"Es wurden \" + db.getEncodingDatabase().size() + \" Codierungen einglesen\");\n\t\t\n\t\ttraining.printMessage(\"Trainingsdatensatz wird eingelesen und prozessiert\");\n\t\t// Lies zunächst die gesamten Trainingsdaten ein\n\t\tExampleReader exampleReader = new ExampleReader();\n\t\t\n\t\t// Spalte das Datenset\n\t\tDataSplit dataSplit_positives = new DataSplit(exampleReader.getSequnces(\"data/positive.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_positiv = dataSplit_positives.getDataSet();\n\t\t\n\t\tDataSplit dataSplit_negatives = new DataSplit(exampleReader.getSequnces(\"data/negative.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_negativ = dataSplit_negatives.getDataSet();\n\t\t\n\t\t// Lege Listen für die besten Klassifizierer und deren Evaluation an\n\t\tModelCollection modelCollection = new ModelCollection();\n\t\t\n\t\t/*\n\t\t * \n\t\t * Beginne Feature Selection\n\t\t * \n\t\t */\n\t\tArrayList<String> positivesForFeatureSelection = training.concatenateLists(complete_list_positiv);\n\t\tArrayList<String> negativesForFeatureSelection = training.concatenateLists(complete_list_negativ);\n\t\t\n\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t// Convertiere Daten in Wekas File Format\n\t\tARFFFileGenerator arff = new ARFFFileGenerator();\n\t\tInstances dataSet = arff.createARFFFile(positivesForFeatureSelection, negativesForFeatureSelection, db.getEncodingDatabase());\n\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\n\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) aus\");\n\t\t// Beginne Feature Selection\n\t\tFeatureFilter featureFilter = new FeatureFilter();\n\t\tfeatureFilter.rankFeatures(dataSet, numberOfAttributes);\t\t\t\t\t// Wähle die x wichtigsten Features aus\n\t\tdataSet = featureFilter.getProcessedInstances();\n\t\ttraining.printMessage(\"Ausgewählte Features: \" + featureFilter.getTopResults());\n\n\t\t/*\n\t\t * Führe die äußere Evaluierung fünfmal durch und wähle das beste Modell\n\t\t */\n\t\tfor (int outer_run = 0; outer_run < 5; outer_run++)\n\t\t{\n\t\t\tstatisticWriter.writeString(\"===== Äußere Evaluation \" + (outer_run + 1) + \"/5 =====\\n\\n\");\n\t\t\t\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_positives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_positives.addAll(complete_list_positiv);\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_negatives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_negatives.addAll(complete_list_negativ);\n\t\t\t\n\t\t\t// Lege das erste Fragment beider Listen für nasted-Crossvalidation beiseite\n\t\t\tArrayList<String> outer_List_pos = new ArrayList<String>();\n\t\t\touter_List_pos.addAll(list_positives.get(outer_run));\n\t\t\tlist_positives.remove(outer_run);\n\t\t\t\n\t\t\tArrayList<String> outer_List_neg = new ArrayList<String>();\n\t\t\touter_List_neg.addAll(list_negatives.get(outer_run));\n\t\t\tlist_negatives.remove(outer_run);\n\t\t\t\n\t\t\t// Füge die verbleibende Liste zu einer Zusammen\n\t\t\tArrayList<String> inner_List_pos = training.concatenateLists(list_positives);\n\t\t\tArrayList<String> inner_List_neg = training.concatenateLists(list_negatives);\n\t\t\t\t\n\n\t\t\t/*\n\t\t\t * \n\t\t\t * Ab hier nur noch Arbeiten mit innerer Liste, die Daten zum Evaluieren bekommt Weka vorerst \n\t\t\t * nicht zu sehen!\n\t\t\t * \n\t\t\t */\n\t\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t\t// Convertiere Daten in Wekas File Format\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(inner_List_pos, inner_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes); // Filtere das innere Datenset nach Vorgabe\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\ttraining.printMessage(\"Beginne Gridsearch\");\n\t\t\t// Gridsearch starten\n\t\n\t\t\t\n\t\t\t\n\t\t\tParameterOptimization optimizer = new ParameterOptimization();\n\t\t\tString logFileName = outer_run + \"_\" + numberOfAttributes;\n\t\t\tGridSearch gridSearch = optimizer.performGridSearch(dataSet, logFileName);\n\t\t\ttraining.printMessage(\"Gefundene Parameter [C, gamma]: \" + gridSearch.getValues()); // liefert unter diesen Settings 1.0 und 0.0\n\n\t\t\tSMO sMO = (SMO)gridSearch.getBestClassifier();\n\t\t\t\t\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t * Evaluationsbeginn \n\t\t\t *\n\t\t\t */\n\t\t\ttraining.printMessage(\"Evaluiere die Performance gegen das äußere Datenset\");\n\t\t\ttraining.printMessage(\"Transcodierung des Evaluationsdatensatzes\");\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(outer_List_pos, outer_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\t// Führe Feature-Filtering mit den Einstellungen der GridSearch aus\n\t\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) auf GridSearch-Basis aus\");\n\t\t\t// Beginne Feature Selection\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes);\t // Wähle die x wichtigsten Features aus\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttraining.printMessage(\"Ermittle Performance\");\n\t\t\tEvaluator eval = new Evaluator();\n\t\t\teval.classifyDataSet(sMO, dataSet);\n\t\t\ttraining.printMessage(eval.printRawData());\n\t\t\t\n\t\t\t/*\n\t\t\t * Füge das Modell und die externe Evaulation zur Sammlung hinzu\n\t\t\t */\t\t\t\n\t\t\tmodelCollection.bestClassifiers.add(sMO);\n\t\t\tmodelCollection.evalsOfBestClassifiers.add(eval);\n\t\t\tmodelCollection.listOfNumberOfAttributes.add(numberOfAttributes);\n\t\t\tmodelCollection.listOfFeatureFilters.add(featureFilter);\n\t\t\t\n\t\t\tstatisticWriter.writeString(\"Verwendete Attribute: \" + featureFilter.getTopResults());\n\t\t\tstatisticWriter.writeString(eval.printRawData());\n\t\t\t\n\t\t}\n\t\tstatisticWriter.close();\n\t\t\n\t\t// Wähle das beste aller Modelle aus\n\t\ttraining.printMessage(\"Ermittle die allgemein besten Einstellungen\");\n\t\tModelSelection modelSelection = new ModelSelection();\n\t\tmodelSelection.calculateBestModel(modelCollection);\n\t\t\n\t\ttraining.printMessage(\"Das beste Model: \");\n\t\ttraining.printMessage(modelSelection.getBestEvaluator().printRawData());\n\t\tSystem.out.println(\"------ SMO ------\");\n\t\tfor (int i = 0; i < modelSelection.getBestClassifier().getOptions().length; i++)\n\t\t{\n\t\t\tSystem.out.print(modelSelection.getBestClassifier().getOptions()[i] + \" \");\n\t\t}\n\t\tSystem.out.println(\"\\n--- Features ---\");\n\t\tSystem.out.println(modelSelection.getBestListOfFeatures().getTopResults());\n\t\t\n\t\t// Schreibe das Modell in eine Datei\n\t\ttraining.printMessage(\"Das beste Modell wird auf Festplatte geschrieben\");\n\t\ttry\n\t\t{\n\t\t\tSerializationHelper.write(\"data/bestPredictor.model\", modelSelection.getBestClassifier());\n\t\t\tSerializationHelper.write(\"data/ranking.filter\", modelSelection.getBestListOfFeatures().getRanking());\n\t\t\tSerializationHelper.write(\"data/components.i\", (modelSelection.getBestListOfFeatures().getProcessedInstances().numAttributes()-1));\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tSystem.err.println(\"Fehler beim Schreiben des Modells auf Festplatte: \" + ex);\n\t\t}\n\t}",
"@Override\n\tpublic void setAutomataChanges() {\n\t\tautomata.transformShapeToState(shapes);\n\t\tautomata.verifyAutomata();\n\t}",
"public Builder clearPredictions() {\n if (predictionsBuilder_ == null) {\n predictions_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n predictionsBuilder_.clear();\n }\n return this;\n }",
"void setAlignment(Alignment alignment) {\n this.alignment = alignment;\n }",
"private float[] predict(float[] input) {\n float thisOutput[] = new float[1];\n\n // feed network with input of shape (1,input.length) = (1,2)\n inferenceInterface.feed(\"dense_1_input\", input, 1, input.length);\n inferenceInterface.run(new String[]{\"dense_2/Relu\"});\n inferenceInterface.fetch(\"dense_2/Relu\", thisOutput);\n\n // return prediction\n return thisOutput;\n }",
"public void align(ArrayList<RevisionDocument> trainDocs,\n\t\t\tArrayList<RevisionDocument> testDocs, int option) throws Exception {\n\t\tHashtable<DocumentPair, double[][]> probMatrix = aligner\n\t\t\t\t.getProbMatrixTable(trainDocs, testDocs, option);\n\t\tIterator<DocumentPair> it = probMatrix.keySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tDocumentPair dp = it.next();\n\t\t\tString name = dp.getFileName();\n\t\t\tfor (RevisionDocument doc : testDocs) {\n\t\t\t\tif (doc.getDocumentName().equals(name)) {\n\t\t\t\t\tdouble[][] sim = probMatrix.get(dp);\n\t\t\t\t\tdouble[][] fixedSim = aligner.alignWithDP(dp, sim, option);\n\t\t\t\t\talignSingle(doc, sim, fixedSim, option);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public int predict(int[] testingData) {\n\t\t// HIDDEN LAYER\n\t\tdouble[] hiddenActivations = new double[SIZE_HIDDEN_LAYER];\n\t\t\n\t\tfor(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden++) {\n\t\t\thiddenActivations[indexHidden] = 0;\n\t\t\tfor(int indexInput = 0; indexInput < SIZE_INPUT_LAYER; indexInput++) {\n\t\t\t\thiddenActivations[indexHidden] += weightsOfHiddenLayer[indexHidden][indexInput] * testingData[indexInput];\n\t\t\t}\t\n\t\t\thiddenActivations[indexHidden] += biasOfHiddenLayer[indexHidden];\n\t\t\thiddenActivations[indexHidden] = tanh(hiddenActivations[indexHidden]);\n\t\t}\n\t\t// OUTPUT LAYER \n\t\tdouble[] predictedLabel = new double[testingData.length];\n\n\t\tfor(int i = 0; i < SIZE_OUTPUT_LAYER; i++) {\n\t\t\tpredictedLabel[i] = 0;\n\n\t\t\tfor(int j = 0; j < SIZE_HIDDEN_LAYER; j++) {\n\t\t\t\tpredictedLabel[i] += weightsOfOutputLayer[i][j] * hiddenActivations[j];\n\t\t\t}\n\t\t\tpredictedLabel[i] += biasOfOutputLayer[i]; \n\t\t}\n\t\tsoftmax(predictedLabel);\n\t\tint solution = argmax(predictedLabel);\n\t\treturn solution;\n\t}",
"public void WritePredictionImages() {\r\n\r\n\t\tString str = new String();\r\n\r\n\t\tModelSimpleImage img = new ModelSimpleImage();\r\n\t\tCDVector texture = new CDVector();\r\n\t\tint n = m_pModel.Rc().NRows();\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\r\n\t\t\tm_pModel.Rc().Row(n - i - 1, texture); // take largest first\r\n\t\t\timg = m_pModel.ShapeFreeImage(texture, img);\r\n\t\t\t// str.format(\"Rc_image%02i.bmp\", i );\r\n\t\t\tstr = \"Rc_image\" + i + \".xml\";\r\n\t\t\tModelImage image = new ModelImage(img, str);\r\n\t\t\timage.saveImage(\"\", str, FileUtility.XML, false);\r\n\t\t}\r\n\t\tn = m_pModel.Rt().NRows();\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\r\n\t\t\tm_pModel.Rt().Row(i, texture);\r\n\t\t\timg = m_pModel.ShapeFreeImage(texture, img);\r\n\t\t\t// str.format(\"Rt_image%02i.bmp\", i );\r\n\t\t\tstr = \"Rt_image\" + i + \".xml\";\r\n\t\t\tModelImage image = new ModelImage(img, str);\r\n\t\t\timage.saveImage(\"\", str, FileUtility.XML, false);\r\n\t\t}\r\n\t}",
"public void align( Alignment alignment, Properties param ) {\n\t\t// For the classes : no optmisation cartesian product !\n\t\tfor ( OWLEntity cl1 : ontology1.getClassesInSignature()){\n\t\t\tfor ( OWLEntity cl2: ontology2.getClassesInSignature() ){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\tfor (OWLEntity cl1:getDataProperties(ontology1)){\n\t\t\tfor (OWLEntity cl2:getDataProperties(ontology2)){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (OWLEntity cl1:getObjectProperties(ontology1)){\n\t\t\tfor (OWLEntity cl2:getObjectProperties(ontology2)){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\n\n\n\n\n\n\t}",
"public Builder setAligning(boolean value) {\n bitField0_ |= 0x00000008;\n aligning_ = value;\n onChanged();\n return this;\n }",
"public void predict(String filename){\n double[] dataVector = new double[1943];\n try {\n int[] temp = dv.getDataVector(filename);\n for (int i=0;i<temp.length;i++){\n dataVector[i] = temp[i];\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n double h = matrix.sigmoid(hypothesis(dataVector,Theta));\n System.out.println((h>=0.9)?\"Not Spam\":\"Spam\");\n }",
"private static native float predict_0(long nativeObj, long sample_nativeObj, boolean returnDFVal);",
"public void trainTest() throws Exception\n\t{\n\t\tSystem.out.println(\"Preprocessing Testset ..\");\n\t\t//String[] dir = new String[]{ Test+\"negative\" , Test+\"positive\"};\n\t\t//FileIterator iterator = new FileIterator(dir,FileIterator.LAST_DIRECTORY);\n\t\tInstanceList instances = new InstanceList(getTextPipe());\n\t\t//instances.addThruPipe(iterator);\n\n\t\tCSVParser parser = new CSVParser(new FileReader(\n\t\t\t\t\"resources/datasets/sentimentanalysis/mallet_test/Sentiment140/sentiment140.csv\"),\n\t\t\t\tCSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tTextPreprocessor preprocessor = new TextPreprocessor(\"resources/datasets/sentimentanalysis/\");\n\t\tint count = 0;\n\t\tfor (CSVRecord record: parser.getRecords())\n\t\t{\n\t\t\tString target;\n\t\t\tif (record.get(\"target\").equals(\"0\"))\n\t\t\t\ttarget = \"negative\";\n\t\t\telse\n\t\t\t\ttarget = \"positive\";\n\t\t\tinstances.addThruPipe(new Instance(preprocessor.getProcessed(record.get(\"tweet\")),target,\n\t\t\t\t\t\"Instance\"+count++,null));\n\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\t\tSystem.out.println(instances.targetLabelDistribution());\n\t\tSystem.out.println(\"Start Training Testset ..\");\n\t\tClassifier nb = new NaiveBayesTrainer().train(instances);\n\t\tSystem.out.println(\"Saving Test Model ..\");\n\t\tsaveModel(nb,Test+\"Model.bin\");\n\t\tsaveinstances(instances,Test+\"Model-Instances.bin\");\n\t\tinstances.getDataAlphabet().dump(new PrintWriter(new File(Test+\"Model-alphabet.dat\")));\n\t}",
"boolean isForwardPredicted()\n {\n return ((mbType & FORWARD) != 0);\n }",
"private void preProcessDataModel() {\r\n collectAllAttribtueDefinitions();\r\n\r\n for (AttributeDefinition attribute : dataModel.getAttributeDefinitions()) {\r\n attribute.setAttributeType(UINameToValueMap.get(attribute.getAttributeType()));\r\n }\r\n\r\n if (null != dataModel.getLocalSecondaryIndexes()) {\r\n for (LocalSecondaryIndex index : dataModel.getLocalSecondaryIndexes()) {\r\n index.getProjection().setProjectionType(UINameToValueMap.get(index.getProjection().getProjectionType()));\r\n }\r\n }\r\n\r\n if (null != dataModel.getGlobalSecondaryIndexes()) {\r\n for (GlobalSecondaryIndex index : dataModel.getGlobalSecondaryIndexes()) {\r\n index.getProjection().setProjectionType(UINameToValueMap.get(index.getProjection().getProjectionType()));\r\n }\r\n }\r\n }",
"public void Prediction() {\n System.out.println(\"\\nInput an x value: \");\n double x = inputs.nextDouble();\n double y = this.B0 + (this.B1 * x);\n System.out.println(\"The prediction made with \" + x + \" as the x value is: \" + y);\n System.out.println(\"\\nWhere y = B0 + (B1*xi) is substituted by:\\n y = \" + B0 + \" + (\" + B1 + \" * \" + x + \" )\\n\");\n }",
"private double predictByVoting (org.apache.spark.mllib.linalg.Vector features) { throw new RuntimeException(); }",
"int[][] predictionForAllUsers() {\n int[][] tempPredictionMatrix = new int[formalContext.trainingFormalContext.length][];\n for (int i = 0; i < formalContext.trainingFormalContext.length; i++) {\n//\t\t\tSystem.out.println(\"1.1\");\n tempPredictionMatrix[i] = predictForAllItems(i);\n } // End for i\n return tempPredictionMatrix;\n }",
"public void fit(ArrayList trainData) {\n this.trainingData = trainData;\n }",
"public boolean getAligning() {\n return aligning_;\n }",
"public String trainmodelandclassify(Attribute at) throws Exception {\n\t\tif(at.getAge()>=15 && at.getAge()<=25)\n\t\t\tat.setAgegroup(\"15-25\");\n\t\tif(at.getAge()>=26 && at.getAge()<=45)\n\t\t\tat.setAgegroup(\"25-45\");\n\t\tif(at.getAge()>=46 && at.getAge()<=65)\n\t\t\tat.setAgegroup(\"45-65\");\n\t\t\n\t\t\n\t\t\n\t\t//loading the training dataset\n\t\n\tDataSource source=new DataSource(\"enter the location of your .arff file for training data\");\n\tSystem.out.println(source);\n\tInstances traindataset=source.getDataSet();\n\t//setting the class index (which would be one less than the number of attributes)\n\ttraindataset.setClassIndex(traindataset.numAttributes()-1);\n\tint numclasses=traindataset.numClasses();\n for (int i = 0; i < numclasses; i++) {\n \tString classvalue=traindataset.classAttribute().value(i);\n \tSystem.out.println(classvalue);\n\t\t\n\t}\n //building the classifier\n NaiveBayes nb= new NaiveBayes();\n nb.buildClassifier(traindataset);\n System.out.println(\"model trained successfully\");\n \n //test the model\n\tDataSource testsource=new DataSource(\"enter the location of your .arff file for test data\");\n\tInstances testdataset=testsource.getDataSet();\n\t\n\tFileWriter fwriter = new FileWriter(\"enter the location of your .arff file for test data\",true); //true will append the new instance\n\tfwriter.write(System.lineSeparator());\n\tfwriter.write(at.getAgegroup()+\",\"+at.getGender()+\",\"+at.getProfession()+\",\"+\"?\");//appends the string to the file\n\tfwriter.close();\n\ttestdataset.setClassIndex(testdataset.numAttributes()-1);\n\t//looping through the test dataset and making predictions\n\tfor (int i = 0; i < testdataset.numInstances(); i++) {\n\t\tdouble classvalue=testdataset.instance(i).classValue();\n\t\tString actualclass=testdataset.classAttribute().value((int)classvalue);\n\t\tInstance instance=testdataset.instance(i);\n\t\tdouble pclassvalue=nb.classifyInstance(instance);\n\t\tString pclass=testdataset.classAttribute().value((int)pclassvalue);\n\t\tSystem.out.println(actualclass+\" \"+ pclass);\n\t\n}\n\tdouble classval=testdataset.instance(testdataset.numInstances()-1).classValue();\n\tInstance ins=testdataset.lastInstance();\n\tdouble pclassval=nb.classifyInstance(ins);\n\tString pclass=testdataset.classAttribute().value((int)pclassval);\n\tSystem.out.println(pclass);\n\t\n\treturn pclass;\n}",
"public void normalizeClassLabels(double targetPositive, double targetNegative) {\n Vector yNew = new DenseVector(y.size());\n for(int i=0; i<y.size(); ++i) {\n yNew.setQuick(i, (y.getQuick(i) == targetPositive) ? 1 : 0 );\n }\n y = yNew;\n }",
"private void savePredictions(\n DatastoreService datastore, String stemmedListName, SimpleMatrix predictedResults) {\n for (int i = 0; i < predictedResults.numRows(); i++) {\n Entity entity = new Entity(\"UserPredictions-\" + stemmedListName, userIDIndexMapping.get(i));\n for (int j = 0; j < itemIndexMapping.size(); j++) {\n entity.setProperty(itemIndexMapping.get(j), predictedResults.get(i, j));\n }\n log.info(\"Stored prediction entity: \" + entity);\n datastore.put(entity);\n }\n }",
"private static void CreateClassifierVec(Dataset set, int dim_num,\n\t\t\tArrayList<KDNode> class_buff, int vec_offset) {\n\t\t\t\n\t\tAttribute atts[] = new Attribute[set.size()];\n\t\t// Declare the class attribute along with its values\n\t\t FastVector fvClassVal = new FastVector(4);\n\t\t fvClassVal.addElement(\"n2\");\n\t\t fvClassVal.addElement(\"n1\");\n\t\t fvClassVal.addElement(\"p1\");\n\t\t fvClassVal.addElement(\"p2\");\n\t\t Attribute ClassAttribute = new Attribute(\"theClass\", fvClassVal);\n\t \n\t\tFastVector fvWekaAttributes = new FastVector(set.size() + 1);\n\t for(int i=0; i<set.size(); i++) {\n\t \tatts[i] = new Attribute(\"att\"+i);\n\t \tfvWekaAttributes.addElement(atts[i]);\n\t }\n\t \n\t fvWekaAttributes.addElement(ClassAttribute);\n\t \n\t Instances isTrainingSet = new Instances(\"Rel\", fvWekaAttributes, class_buff.size()); \n\t isTrainingSet.setClassIndex(set.size());\n\t\t\n\t for(int k=0; k<class_buff.size(); k++) {\n\t \t\n\t \tArrayList<Integer> data_set = new ArrayList<Integer>();\n\t\t\tfor(int j=0; j<set.size(); j++) {\n\t\t\t\t\n\t\t\t\t\tint offset = 0;\n\t\t\t\t\tSet<Entry<Integer, Double>> s = set.instance(j).entrySet();\n\t\t\t\t\tdouble sample[] = new double[dim_num];\n\t\t\t\t\tfor(Entry<Integer, Double> val : s) {\n\t\t\t\t\t\tsample[offset++] = val.getValue();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint output = class_buff.get(k).classifier.Output(sample);\n\t\t\t\t\tdata_set.add(output);\n\t\t\t}\n\t\t\t\n\t\t\tif(data_set.size() != set.size()) {\n\t\t\t\tSystem.out.println(\"dim mis\");System.exit(0);\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tInstance iExample = new Instance(set.size() + 1);\n\t\t\tfor(int j=0; j<set.size(); j++) {\n\t\t\t\tiExample.setValue(j, data_set.get(j));\n\t\t\t}\n\t\t\t\n\t\t\tif(Math.random() < 0.5) {\n\t\t\t\tiExample.setValue((Attribute)fvWekaAttributes.elementAt(set.size()), \"n1\"); \n\t\t\t} else {\n\t\t\t\tiExample.setValue((Attribute)fvWekaAttributes.elementAt(set.size()), \"p1\"); \n\t\t\t}\n\t\t\t \n\t\t\t// add the instance\n\t\t\tisTrainingSet.add(iExample);\n\t }\n\t\t\n\t System.out.println(dim_num+\" *************\");\n\t int select_num = 16;\n\t\tPrincipalComponents pca = new PrincipalComponents();\n\t\t//pca.setVarianceCovered(0.1);\n Ranker ranker = new Ranker();\n ranker.setNumToSelect(select_num);\n AttributeSelection selection = new AttributeSelection();\n selection.setEvaluator(pca);\n \n Normalize normalizer = new Normalize();\n try {\n normalizer.setInputFormat(isTrainingSet);\n isTrainingSet = Filter.useFilter(isTrainingSet, normalizer);\n \n selection.setSearch(ranker);\n selection.SelectAttributes(isTrainingSet);\n isTrainingSet = selection.reduceDimensionality(isTrainingSet);\n\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n \n for(int i=0; i<class_buff.size(); i++) {\n \tInstance inst = isTrainingSet.instance(i);\n \tdouble val[] = inst.toDoubleArray();\n \tint offset = vec_offset;\n \t\n \tfloat length = 0;\n \tfor(int j=0; j<select_num; j++) {\n \t\tlength += val[j] * val[j];\n \t}\n \t\n \tlength = (float) Math.sqrt(length);\n \tfor(int j=0; j<select_num; j++) {\n \t\tclass_buff.get(i).class_vect[offset++] = val[j] / length;\n \t}\n }\n\t}",
"public void setAlignment(int paramInt) {\n/* */ this.newAlign = paramInt;\n/* */ switch (paramInt) {\n/* */ case 3:\n/* */ this.align = 0;\n/* */ return;\n/* */ case 4:\n/* */ this.align = 2;\n/* */ return;\n/* */ } \n/* */ this.align = paramInt;\n/* */ }",
"public boolean getAligning() {\n return aligning_;\n }",
"public void train(int[] inputs, int[] outputs) {\n\t\tsaveInputs(inputs, outputs);\n\t\tint l = inputs.length;\n\t\tfor(int i = 0 ; i < l ; i++)\n\t\t\tfor(int j = 0 ; j < l ; j++)\n\t\t\t\tsynapses[i*l+j] = (inputs[i] & outputs[j]) | synapses[i*l+j];\n\t}",
"public AlignByCamera ()\n\t{\n\t\trequires(Subsystems.transmission);\n\t\trequires(Subsystems.goalVision);\n\n\t\tthis.motorRatio = DEFAULT_ALIGNMENT_SPEED;\n\t}",
"private double[] computePredictionValues() {\n double[] predResponses = new double[D];\n for (int d = 0; d < D; d++) {\n double expDotProd = Math.exp(docLabelDotProds[d]);\n double docPred = expDotProd / (expDotProd + 1);\n predResponses[d] = docPred;\n }\n return predResponses;\n }",
"abstract Vec predict(Vec in);",
"public void setInference(boolean enabled)\r\n\t{\r\n\t\tif(enabled)\r\n\t\t{\r\n\t\t\tif(backupModel != null)\r\n\t\t\t{\r\n\t\t\t\tONT_MODEL = backupModel;\r\n\t\t\t\tbackupModel = null;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\torg.apache.commons.logging.LogFactory.getLog(this.getClass()).warn(\"Inference already enabled.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif(backupModel == null)\r\n\t\t\t{\r\n\t\t\t\t//Validate the model (classify instances)\r\n\t\t\t\tONT_MODEL.validate();\r\n\t\t\t\t//Backup model\r\n\t\t\t\tbackupModel = ONT_MODEL;\r\n\t\t\t\t//Create a plain model with asserted and infered information (a-box + t-box)\r\n\t\t\t\tModel plain = ModelFactory.createModelForGraph( ONT_MODEL.getGraph() );\r\n\t\t\t\t//Create a new model without reasoner\r\n\t\t\t\tONT_MODEL = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM);\r\n\t\t\t\t//Copy plain model into the model without reasoner\r\n\t\t\t\tONT_MODEL.add(plain);\r\n\t\t\t\t//Copy ns prefixes\r\n\t\t\t\tONT_MODEL.setNsPrefixes(backupModel.getNsPrefixMap());\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\torg.apache.commons.logging.LogFactory.getLog(this.getClass()).warn(\"Inference already disabled.\");\r\n\t\t}\r\n\t}",
"public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}",
"boolean isBidirPredicted()\n {\n return ((mbType & FORWARD)!=0) && ((mbType & BACKWARD)!=0);\n }",
"public double predict (org.apache.spark.mllib.linalg.Vector features) { throw new RuntimeException(); }",
"public org.apache.spark.rdd.RDD<java.lang.Object> predict (org.apache.spark.rdd.RDD<org.apache.spark.mllib.linalg.Vector> features) { throw new RuntimeException(); }",
"private void test() {\r\n \ttry {\r\n\t\t\ttestWriter.write(\"Testing started...\");\r\n\t\t\r\n\t\t\tpredictions = new HashMap<>();\r\n \trightAnswers = new HashMap<>();\r\n\r\n\r\n \t// Get results and check them\r\n \tEvaluation eval = new Evaluation(numLabels);\r\n \tfinalTestIterator.reset();\r\n\r\n \tint metaDataCounter = 0;\r\n \tint addrCounter = 0;\r\n\r\n \twhile(finalTestIterator.hasNext()) {\r\n \t// If iterator has next dataset\r\n \tfinalTestData = finalTestIterator.next();\r\n \t// Get meta-data from this dataset\r\n\r\n \t@SuppressWarnings(\"rawtypes\")\r\n \tList<?> exampleMetaData = finalTestData.getExampleMetaData();\r\n \tIterator<?> exampleMetaDataIterator = exampleMetaData.iterator();\r\n \ttestWriter.write(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n \tSystem.out.println(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n\r\n \t// Normalize data\r\n \tnormalizer.fit(finalTestData);\r\n\r\n \t// Count processed images\r\n \tnumProcessed = (metaDataCounter + 1) * batchSizeTesting;\r\n \tloaded.setText(\"Loaded and processed: \" + numProcessed + \" pictures\");\r\n\r\n \tINDArray features = finalTestData.getFeatures();\r\n \tINDArray labels = finalTestData.getLabels();\r\n \tSystem.out.println(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \t// Get right answers of NN for every input object\r\n \tint[][] rightLabels = labels.toIntMatrix();\r\n \tfor (int i = 0; i < rightLabels.length; i++) {\r\n \tRecordMetaDataURI metaDataUri = (RecordMetaDataURI) exampleMetaDataIterator.next();\r\n \t// Print address of image\r\n \tSystem.out.println(metaDataUri.getLocation());\r\n \tfor (int j = 0; j < rightLabels[i].length; j++) {\r\n \tif(rightLabels[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=right class label\r\n \trightAnswers.put(metaDataUri.getLocation(), j);\r\n \tthis.addresses.add(metaDataUri.getLocation());\r\n \t}\r\n \t}\r\n \t}\r\n \tSystem.out.println(\"\\nRight answers:\");\r\n \ttestWriter.write(\"\\nRight answers:\");\r\n \t// Print right answers\r\n \tfor(Map.Entry<String, Integer> answer : predictions.entrySet()){\r\n \t\ttestWriter.write(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \tSystem.out.printf(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \t}\r\n\r\n \t// Evaluate on the test data\r\n \tINDArray predicted = vgg16Transfer.outputSingle(features);\r\n \tint predFoundCounter = 0;\r\n \tSystem.out.println(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \t// Get predictions of NN for every input object\r\n \tint[][] labelsPredicted = predicted.toIntMatrix();\r\n \tfor (int i = 0; i < labelsPredicted.length; i++) {\r\n \tfor (int j = 0; j < labelsPredicted[i].length; j++) {\r\n \tpredFoundCounter++;\r\n \tif(labelsPredicted[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=predicted class label\r\n \tpredFoundCounter = 0;\r\n \tthis.predictions.put(this.addresses.get(addrCounter), j);\r\n \t}\r\n \telse {\r\n \tif (predFoundCounter == 3) {\r\n \t// To fix bug when searching positive predictions\r\n \tthis.predictions.put(this.addresses.get(addrCounter), 2);\r\n \t}\r\n \t}\r\n \t}\r\n \taddrCounter++;\r\n \t}\r\n \tSystem.out.println(\"\\nPredicted:\");\r\n \ttestWriter.write(\"\\nPredicted:\");\r\n \t// Print predictions\r\n \tfor(Map.Entry<String, Integer> pred : rightAnswers.entrySet()){\r\n \tSystem.out.printf(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString());\r\n \ttestWriter.write(String.format(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString()));\r\n \t}\r\n \tmetaDataCounter++;\r\n\r\n \teval.eval(labels, predicted);\r\n \t}\r\n\r\n \tSystem.out.println(\"\\n\\n Cheack loaded model on test data...\");\r\n \tSystem.out.println(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \tSystem.out.println(eval.stats());\r\n \tSystem.out.println(eval.confusionToString());\r\n \ttestWriter.write(\"\\n\\n Cheack loaded model on test data...\");\r\n \ttestWriter.write(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \ttestWriter.write(eval.stats());\r\n \ttestWriter.write(eval.confusionToString());\r\n\r\n \t// Save test rates\r\n \tthis.f1_score = eval.f1();\r\n \tthis.recall_score = eval.recall();\r\n \tthis.accuracy_score = eval.accuracy();\r\n \tthis.precision_score = eval.precision();\r\n \tthis.falseNegativeRate_score = eval.falseNegativeRate();\r\n \tthis.falsePositiveRate_score = eval.falsePositiveRate();\r\n\r\n \tthis.f1.setText(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \tthis.recall.setText(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \tthis.accuracy.setText(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \tthis.precision.setText(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \tthis.falseNegativeRate.setText(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \tthis.falsePositiveRate.setText(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n \r\n \ttestWriter.write(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \ttestWriter.write(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \ttestWriter.write(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \ttestWriter.write(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \ttestWriter.write(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \ttestWriter.write(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n\r\n \tshowBarChart();\r\n \t} catch (IOException e) {\r\n \t\tSystem.err.println(\"Error while writing to log file\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"public void setAlign(String align) {\n this.align = align;\n }",
"public Prediction apply( double[] confidence );",
"public void induceModel(Graph graph, DataSplit split) {\r\n super.induceModel(graph, split);\r\n Node[] trainingSet = split.getTrainSet();\r\n if(trainingSet == null || trainingSet.length == 0)\r\n return;\r\n\r\n Attributes attribs = trainingSet[0].getAttributes();\r\n FastVector attInfo = new FastVector(tmpVector.length);\r\n logger.finer(\"Setting up WEKA attributes\");\r\n if(useIntrinsic)\r\n {\r\n for(Attribute attrib : attribs)\r\n {\r\n // do not include the KEY attribute\r\n if(attrib == attribs.getKey())\r\n continue;\r\n\r\n switch(attrib.getType())\r\n {\r\n case CATEGORICAL:\r\n String[] tokens = ((AttributeCategorical)attrib).getTokens();\r\n FastVector values = new FastVector(tokens.length);\r\n for(String token : tokens)\r\n values.addElement(token);\r\n attInfo.addElement(new weka.core.Attribute(attrib.getName(),values));\r\n logger.finer(\"Adding WEKA attribute \"+attrib.getName()+\":Categorical\");\r\n break;\r\n\r\n default:\r\n attInfo.addElement(new weka.core.Attribute(attrib.getName()));\r\n logger.finer(\"Adding WEKA attribute \"+attrib.getName()+\":Numerical\");\r\n break;\r\n }\r\n }\r\n }\r\n else\r\n {\r\n String[] tokens = attribute.getTokens();\r\n FastVector values = new FastVector(tokens.length);\r\n for(String token : tokens)\r\n values.addElement(token);\r\n attInfo.addElement(new weka.core.Attribute(attribute.getName(),values));\r\n logger.finer(\"Adding WEKA attribute \"+attribute.getName()+\":Categorical\");\r\n }\r\n\r\n for(Aggregator agg : aggregators)\r\n {\r\n Attribute attrib = agg.getAttribute();\r\n switch(agg.getType())\r\n {\r\n case CATEGORICAL:\r\n String[] tokens = ((AttributeCategorical)attrib).getTokens();\r\n FastVector values = new FastVector(tokens.length);\r\n for(String token : tokens)\r\n values.addElement(token);\r\n attInfo.addElement(new weka.core.Attribute(agg.getName(),values));\r\n logger.finer(\"Adding WEKA attribute \"+agg.getName()+\":Categorical\");\r\n break;\r\n\r\n default:\r\n attInfo.addElement(new weka.core.Attribute(agg.getName()));\r\n logger.finer(\"Adding WEKA attribute \"+agg.getName()+\":Numerical\");\r\n break;\r\n }\r\n }\r\n\r\n Instances train = new Instances(\"train\",attInfo,split.getTrainSetSize());\r\n train.setClassIndex(vectorClsIdx);\r\n\r\n for(Node node : split.getTrainSet())\r\n {\r\n double[] v = new double[attInfo.size()];\r\n makeVector(node,v);\r\n train.add(new Instance(1,v));\r\n }\r\n try\r\n {\r\n classifier.buildClassifier(train);\r\n }\r\n catch(Exception e)\r\n {\r\n throw new RuntimeException(\"Failed to build classifier \"+classifier.getClass().getName(),e);\r\n }\r\n testInstance = new Instance(1,tmpVector);\r\n testInstances = new Instances(\"test\",attInfo,1);\r\n testInstances.setClassIndex(vectorClsIdx);\r\n testInstances.add(testInstance);\r\n testInstance = testInstances.firstInstance();\r\n }",
"public void trainBernoulli() {\t\t\n\t\tMap<String, Cluster> trainingDataSet = readFile(trainLabelPath, trainDataPath, \"training\");\n\t\tMap<String, Cluster> testingDataSet = readFile(testLabelPath, testDataPath, \"testing\");\n\n\t\t// do testing, if the predicted class and the gold class is not equal, increment one\n\t\tdouble error = 0;\n\n\t\tdouble documentSize = 0;\n\n\t\tSystem.out.println(\"evaluate the performance\");\n\t\tfor (int testKey = 1; testKey <= 20; testKey++) {\n\t\t\tCluster testingCluster = testingDataSet.get(Integer.toString(testKey));\n\t\t\tSystem.out.println(\"Cluster: \"+testingCluster.toString());\n\n\t\t\tfor (Document document : testingCluster.getDocuments()) {\n\t\t\t\tdocumentSize += 1; \n\t\t\t\tList<Double> classprobability = new ArrayList<Double>();\n\t\t\t\tMap<String, Integer> testDocumentWordCounts = document.getWordCount();\n\n\t\t\t\tfor (int classindex = 1; classindex <= 20; classindex++) {\n\t\t\t\t\t// used for calculating the probability\n\t\t\t\t\tCluster trainCluster = trainingDataSet.get(Integer.toString(classindex));\n\t\t\t\t\t// System.out.println(classindex + \" \" + trainCluster.mClassId);\n\t\t\t\t\tMap<String, Double> bernoulliProbability = trainCluster.bernoulliProbabilities;\n\t\t\t\t\tdouble probability = Math.log(trainCluster.getDocumentSize()/trainDocSize);\n\t\t\t\t\tfor(int index = 1; index <= voc.size(); index++ ){\n\n\t\t\t\t\t\t// judge whether this word is stop word \n\t\t\t\t\t\tboolean isStopwords = englishStopPosition.contains(index);\n\t\t\t\t\t\tif (isStopwords) continue;\n\n\t\t\t\t\t\tboolean contain = testDocumentWordCounts.containsKey(Integer.toString(index));\t\t\t\t\t\t\n\t\t\t\t\t\tif (contain) {\n\t\t\t\t\t\t\tprobability += Math.log(bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tprobability += Math.log(1 - bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// put the probability into the map for the specific class\n\t\t\t\t\tclassprobability.add(probability);\n\t\t\t\t}\n\t\t\t\tObject obj = Collections.max(classprobability);\n\t\t\t\t// System.out.println(classprobability);\n\t\t\t\tString predicte_class1 = obj.toString();\n\t\t\t\t// System.out.println(predicte_class1);\n\t\t\t\t// System.out.println(Double.parseDouble(predicte_class1));\n\t\t\t\tint index = classprobability.indexOf(Double.parseDouble(predicte_class1));\n\t\t\t\t// System.out.println(index);\n\t\t\t\tString predicte_class = Integer.toString(index + 1);\n\n\n\t\t\t\tconfusion_matrix[testKey - 1][index] += 1;\n\n\t\t\t\t// System.out.println(document.docId + \": G, \" + testKey + \"; P: \" + predicte_class);\n\t\t\t\tif (!predicte_class.equals(Integer.toString(testKey))) {\n\t\t\t\t\terror += 1;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize);\n\t\t}\n\n\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize + \" precision rate : \" + (1 - error/documentSize));\n\n\t\t// print confusion matrix\n\t\tprintConfusionMatrix(confusion_matrix);\n\t}",
"public void setAlignmentY(AlignY anAlignX) { }",
"public static void relprecision() throws IOException \n\t{\n\t \n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\eclipse64\\\\data\\\\labeled_titles.txt\");\n\t // File fFile = new File(\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelation\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL());\n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\t//trainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tList<String> statements= new ArrayList<String>() ;\n\t\tList<String> notstatements= new ArrayList<String>() ;\n\t\tDouble TPcount = 0.0 ; \n\t\tDouble FPcount = 0.0 ;\n\t\tDouble NonTPcount = 0.0 ;\n\t\tDouble TPcountTot = 0.0 ; \n\t\tDouble NonTPcountTot = 0.0 ;\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tif (title.contains(\"<YES>\") || title.contains(\"<TREAT>\") || title.contains(\"<DIS>\") || title.contains(\"</\"))\n\t\t\t{\n\t\t\t\n\t\t\t\tBoolean TP = false ; \n\t\t\t\tBoolean NonTP = false ;\n\t if (title.contains(\"<YES>\") && title.contains(\"</YES>\"))\n\t {\n\t \t TP = true ; \n\t \t TPcountTot++ ; \n\t \t \n\t }\n\t else\n\t {\n\t \t NonTP = true ; \n\t \t NonTPcountTot++ ; \n\t }\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\ttitle = title.replaceAll(\"<YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<DIS>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</DIS>\", \" \") ;\n\t\t\t\ttitle = title.toLowerCase() ;\n\t\n\t\t\t\tcount++ ; \n\t\n\t\t\t\t// get the goldstandard concepts for current title \n\t\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\t\n\t\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\t\n\t\t\t\t// get the concepts \n\t\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\t\n\t\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,dataset.FILE_NAME_Patterns) ;\n\t\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t\t{\n\t\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelationdisc\") ;\n\t\t\t\t\t\n\t\t\t if (TP )\n\t\t\t {\n\t\t\t \t TPcount++ ; \n\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \t FPcount++ ; \n\t\t\t }\n\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t notstatements.add(title) ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}",
"private static void applyRules(Instances itemsets, Instances predictions) {\n\t\tfor (int i=0; i<predictions.numInstances(); ++i) {\n\t\t\tInstance instance = predictions.instance(i);\n\t\t\tboolean covered = true;\n\t\t\tfor (int j= 0; j<itemsets.numInstances(); ++j) {\n\t\t\t\tInstance rule = itemsets.instance(j);\n\t\t\t\tcovered = true;\n\t\t\t\tfor (int k=0; k< itemsets.numAttributes() -1 ; ++k) {\n\t\t\t\t\tif (rule.value(k)==1) {\n\t\t\t\t\t\tcovered = instance.value(k)==1;\n\t\t\t\t\t\tif(!covered){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif (covered) {\n\t\t\t\t\t\n\t\t\t\t\tinstance.setClassValue(rule.classValue());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public abstract List<BindingRecord> predict(Allele allele, Collection<Peptide> peptides);",
"@java.lang.Override\n public java.util.List<com.google.protobuf.Value> getPredictionsList() {\n return predictions_;\n }",
"public void setAnnotations(Annotations annotations) {\n\t\tthis.annotations = annotations;\n\t}",
"public void setDetailTextureAlignment(int alignment) {\n mController.setDetailTextureAlignment(alignment);\n }",
"@Override\n public double classifyInstance(Instance instance) throws Exception {\n\n\n\n int numAttributes = instance.numAttributes();\n int clsIndex = instance.classIndex();\n boolean hasClassAttribute = true;\n int numTestAtt = numAttributes -1;\n if (numAttributes == m_numOfInputNeutrons) {\n hasClassAttribute = false; // it means the test data doesn't has class attribute\n numTestAtt = numTestAtt+1;\n }\n\n for (int i = 0; i< numAttributes; i++){\n if (instance.attribute(i).isNumeric()){\n\n double max = m_normalization[0][i];\n double min = m_normalization[1][i];\n double normValue = 0 ;\n if (instance.value(i)<min) {\n normValue = 0;\n m_normalization[1][i] = instance.value(i); // reset the smallest value\n }else if(instance.value(i)> max){\n normValue = 1;\n m_normalization[0][i] = instance.value(i); // reset the biggest value\n }else {\n if (max == min ){\n if (max == 0){\n normValue = 0;\n }else {\n normValue = max/Math.abs(max);\n }\n }else {\n normValue = (instance.value(i) - min) / (max - min);\n }\n }\n instance.setValue(i, normValue);\n }\n }\n\n double[] testData = new double[numTestAtt];\n\n\n\n\n\n int index = 0 ;\n\n if (!hasClassAttribute){\n\n for (int i =0; i<numAttributes; i++) {\n testData[i] = instance.value(i);\n }\n }else {\n for (int i = 0; i < numAttributes; i++) {\n\n if (i != clsIndex) {\n\n testData[index] = instance.value(i);\n\n index++;\n }\n }\n }\n\n\n\n DenseMatrix prediction = new DenseMatrix(numTestAtt,1);\n for (int i = 0; i<numTestAtt; i++){\n prediction.set(i, 0, testData[i]);\n }\n\n DenseMatrix H_test = generateH(prediction,weightsOfInput,biases, 1);\n\n DenseMatrix H_test_T = new DenseMatrix(1, m_numHiddenNeurons);\n\n H_test.transpose(H_test_T);\n\n DenseMatrix output = new DenseMatrix(1, m_numOfOutputNeutrons);\n\n H_test_T.mult(weightsOfOutput, output);\n\n double result = 0;\n\n if (m_typeOfELM == 0) {\n double value = output.get(0,0);\n result = value*(m_normalization[0][classIndex]-m_normalization[1][classIndex])+m_normalization[1][classIndex];\n //result = value;\n if (m_debug == 1){\n System.out.print(result + \" \");\n }\n }else if (m_typeOfELM == 1){\n int indexMax = 0;\n double labelValue = output.get(0,0);\n\n if (m_debug == 1){\n System.out.println(\"Each instance output neuron result (after activation)\");\n }\n for (int i =0; i< m_numOfOutputNeutrons; i++){\n if (m_debug == 1){\n System.out.print(output.get(0,i) + \" \");\n }\n if (output.get(0,i) > labelValue){\n labelValue = output.get(0,i);\n indexMax = i;\n }\n }\n if (m_debug == 1){\n\n System.out.println(\"//\");\n System.out.println(indexMax);\n }\n result = indexMax;\n }\n\n\n\n return result;\n\n\n }",
"boolean isBackwardPredicted()\n {\n return (mbType & BACKWARD)!=0;\n }",
"protected void establishTransformationModel() {\r\n\t \r\n\t\tTransformationModel transformModel ;\r\n\t\tArrayList<TransformationStack> modelTransformStacks ;\r\n\t\t\r\n\t\t\r\n\t\t// the variables needed for the profile\r\n\t\t// targetStruc = getTargetVector();\r\n\t\tsomData = soappTransformer.getSomData() ; \r\n\t\t// soappTransformer.setSomData( somApplication.getSomData() );\r\n\t\tsomApplication.setSomData(somData) ;\r\n\t\t\r\n\t\tsomData.getVariablesLabels() ;\r\n\t\t \r\n\t\t\r\n\t\t// from here we transfer...\r\n\t\tmodelTransformStacks = soappTransformer.getTransformationModel().getVariableTransformations();\r\n\t\ttransformModel = soappTransformer.getTransformationModel() ;\r\n\t\t \r\n\t\t\r\n\t\ttransformationModelImported = true;\r\n\t}",
"public void prepareAlignment(String sq1, String sq2) {\n if(F == null) {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n F = new float[3][n+1][m+1];\n B = new TracebackAffine[3][n+1][m+1];\n for(int k = 0; k < 3; k++) {\n for(int i = 0; i < n+1; i ++) {\n for(int j = 0; j < m+1; j++)\n B[k][i][j] = new TracebackAffine(0,0,0);\n }\n }\n }\n\n //alignment already been run and existing matrix is big enough to reuse.\n else if(seq1.length() <= n && seq2.length() <= m) {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n }\n\n //alignment already been run but matrices not big enough for new alignment.\n //create all new matrices.\n else {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n F = new float[3][n+1][m+1];\n B = new TracebackAffine[3][n+1][m+1];\n for(int k = 0; k < 3; k++) {\n for(int i = 0; i < n+1; i ++) {\n for(int j = 0; j < m+1; j++)\n B[k][i][j] = new TracebackAffine(0,0,0);\n }\n }\n }\n }",
"public void predict(String testFileName) throws IOException, InvalidInputException{\r\n BufferedReader reader = new BufferedReader(new FileReader(testFileName));\r\n if(reader.toString().length() == 0){\r\n throw new InvalidInputException(\"Invalid input file! File is empty!\");\r\n }\r\n\r\n int index = 0;\r\n Vector<Double> actuals = new Vector<>();\r\n Vector<Double> predicts = new Vector<>();\r\n while(true) {\r\n String line = reader.readLine();\r\n if (line == null)\r\n break;\r\n\r\n StringTokenizer st = new StringTokenizer(line, \" \\t\\n\\r\\f:\");\r\n\r\n double target = Utils.toDouble(st.nextToken());\r\n int m = st.countTokens() / 2;\r\n svm_node[] x = new svm_node[m];\r\n for (int j = 0; j < m; j++) {\r\n x[j] = new svm_node();\r\n x[j].index = Utils.toInt(st.nextToken());\r\n x[j].value = Utils.toDouble(st.nextToken());\r\n }\r\n double v;\r\n v = svm.svm_predict(this.model, x);\r\n\r\n actuals.add(index, target);\r\n predicts.add(index, v);\r\n\r\n System.out.println(\"[\" + index + \"] Prediction:\" + v + \", actual:\" + target);\r\n index += 1;\r\n }\r\n Metrices me = new Metrices(Utils.toDoubleArray(predicts), Utils.toDoubleArray(actuals), predicts.size());\r\n System.out.println(\"RMSE: \" + me.getRMSE());\r\n }",
"void padTrueAndRef() {\n int maxLen = Math.max(trueTo.length(), ref.length());\n trueTo = pad(trueTo, maxLen);\n ref = pad(ref, maxLen);\n }",
"public boolean train(Mat trainData, Mat responses)\r\n {\r\n\r\n boolean retVal = train_1(nativeObj, trainData.nativeObj, responses.nativeObj);\r\n\r\n return retVal;\r\n }",
"public static PredictBuilder newPredictRequest() {\n\t\treturn new PredictBuilder();\n\t}",
"public void setNominalPositionAndOrientation() {\n // Nothing to do for absolute position/orientation device.\n }",
"public void resetLowerface() {\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setSmile(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setClench(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setSmirkLeft(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setSmirkRight(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setLaugh(0);\n\t}",
"@Override\n\tpublic Iterable<String> getPredictors() {\n\t\treturn Lists.transform(predictors, new Function<Integer, String>() {\n\t\t\t@Override\n\t\t\tpublic String apply(Integer v) {\n\t\t\t\tif (v >= 0) {\n\t\t\t\t\treturn variableNames.get(v);\n\t\t\t\t} else {\n\t\t\t\t\treturn INTERCEPT_TERM;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public boolean train_auto(Mat trainData, Mat responses, Mat varIdx, Mat sampleIdx, CvSVMParams params)\r\n {\r\n\r\n boolean retVal = train_auto_1(nativeObj, trainData.nativeObj, responses.nativeObj, varIdx.nativeObj, sampleIdx.nativeObj, params.nativeObj);\r\n\r\n return retVal;\r\n }",
"int[] predictForAllItems(int paraObjectIndex) {\n//\t\tSystem.out.println(\"1.2\");\n LinkedListSortedNeighborSet tempNeighborSet = obtainKNeighbors(paraObjectIndex);\n int[] tempPredictionArray = new int[formalContext.trainingFormalContext[0].length];\n for (int i = 0; i < formalContext.trainingFormalContext[0].length; i++) {\n\n if (formalContext.trainingFormalContext[paraObjectIndex][i] > 0) {\n continue;\n } // End if\n//\t\t\tSystem.out.println(\"i: \" + i);\n int tempRatedCount = 0;\n tempNeighborSet.resetCurrentNode();\n while ((tempNeighborSet.currentNeighbor != null) && (tempNeighborSet.currentNeighbor.neighborIndex != -1)) {\n//\t\t\t\tSystem.out.println(\"neighbor: \" + tempNeighborSet.currentNeighbor.neighborIndex);\n if (formalContext.trainingFormalContext[tempNeighborSet.currentNeighbor.neighborIndex][i] > 0) {\n tempRatedCount++;\n } // End if\n tempNeighborSet.currentNeighbor = tempNeighborSet.currentNeighbor.nextNeighbor;\n } // End while\n\n double tempVotingRatio = (tempRatedCount + 0.0) / tempNeighborSet.actualNeighborCount;\n if (tempVotingRatio >= votingThreshold) {\n tempPredictionArray[i] = 1;\n } // End if\n\n } // End for i\n\n return tempPredictionArray;\n }",
"@Override\n public JsonObject getPrediction(String modelName,String usecaseName) throws InsightsCustomException {\n JsonObject prediction = h2oApiCommunicator.predict(modelName, usecaseName+\"_part1.hex\");\n JsonArray data = h2oApiCommunicator.getDataFrame(usecaseName+\"_part1.hex\");\n JsonObject response = new JsonObject();\n JsonArray fields = new JsonArray();\n Set<Map.Entry<String, JsonElement>> es = data.get(0).getAsJsonObject().entrySet();\n for (Iterator<Map.Entry<String, JsonElement>> it = es.iterator(); it.hasNext(); ) {\n fields.add(it.next().getKey());\n }\n if (data.size() == prediction.getAsJsonArray(\"predict\").size()) {\n \n prepareData(prediction, data, fields);\t \n response.add(\"Fields\", fields);\t \n response.add(\"Data\", data);\n return response;\n } else {\n log.error(\"Mismatch in test data and prediction: \");\n throw new InsightsCustomException(\"Mismatch in test data and prediction: \");\n }\n }",
"public void resetUpperface() {\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setRaiseBrow(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setFurrowBrow(0);\n\t}",
"@XmlElement(\"IsAligned\")\n boolean IsAligned();",
"public void markTargets() {\n defaultOp.setBranchTarget();\n for (int i=0; i<targetsOp.length; i++)\n targetsOp[i].setBranchTarget();\n }"
]
| [
"0.5995957",
"0.5963732",
"0.59391826",
"0.5834378",
"0.5752202",
"0.56181794",
"0.5521541",
"0.54753435",
"0.5429244",
"0.5392342",
"0.5364016",
"0.52873987",
"0.52711177",
"0.52169335",
"0.52160084",
"0.5180034",
"0.5136054",
"0.5116778",
"0.5102549",
"0.5088313",
"0.5053736",
"0.50449485",
"0.49872744",
"0.49814743",
"0.49810535",
"0.4980742",
"0.49787226",
"0.49709326",
"0.49642447",
"0.49543282",
"0.49455553",
"0.49438804",
"0.4884744",
"0.48521242",
"0.48299146",
"0.48173258",
"0.4807286",
"0.47675884",
"0.475915",
"0.47536725",
"0.474259",
"0.47379902",
"0.47343385",
"0.47270554",
"0.47241065",
"0.47175872",
"0.47138315",
"0.471298",
"0.46992972",
"0.46900803",
"0.46843153",
"0.468108",
"0.46776468",
"0.46746677",
"0.46691245",
"0.46633255",
"0.4655289",
"0.46550572",
"0.46529278",
"0.4646007",
"0.46406218",
"0.46368545",
"0.4627624",
"0.4626214",
"0.4624607",
"0.4621531",
"0.46214",
"0.46204942",
"0.46156046",
"0.4614649",
"0.4611042",
"0.4609399",
"0.46090335",
"0.4607616",
"0.46010217",
"0.45836917",
"0.45792457",
"0.4566562",
"0.45632303",
"0.45608136",
"0.45502228",
"0.45433766",
"0.45311612",
"0.45288607",
"0.4522706",
"0.45204973",
"0.45202363",
"0.45113784",
"0.45077673",
"0.44959798",
"0.44958636",
"0.44920537",
"0.44906723",
"0.4488999",
"0.4481006",
"0.447701",
"0.44751203",
"0.446941",
"0.44627166",
"0.446238"
]
| 0.47816893 | 37 |
Returns the value of the 'Id Edge' attribute. If the meaning of the 'Id Edge' attribute isn't clear, there really should be more of a description here... | String getIdEdge(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getID(){\n\t\treturn this.EDGE_ID;\n\t}",
"E getEdge(int id);",
"private SumoEdge getEdge(String id) {\n\t\treturn idToEdge.get(id);\n\t}",
"Edge getEdge();",
"public double getEdge()\n {\n return this.edge;\n }",
"protected Edge getEdge() {\r\n\t\treturn (Edge)getModel();\r\n\t}",
"public Edge findEdgeById(int id) throws SQLException {\n\t\treturn rDb.findEdgeById(id);\n\t}",
"public Edge(int id) {\r\n\t\tsuper();\r\n\t\tthis.id = id;\r\n\t}",
"public String descriptor() {\n\t\treturn \"edge\";\n\t}",
"public SimpleEdge getEdge() {\n return edge;\n }",
"public int getValue(int edgeId)\n {\n return _storage.getEdgeValue(edgeId, BordersGraphStorage.Property.TYPE);\n }",
"public int getReferenceCHFirstEdgeId() {\r\n return referenceCHFirstEdgeId;\r\n }",
"public IEdge<?> getEdge() {\n\t\treturn this.edge;\n\t}",
"public Edge<E, V> getUnderlyingEdge();",
"public int getReferenceCHSecondEdgeId() {\r\n return referenceCHSecondEdgeId;\r\n }",
"public double getEdgeLength(String id) {\n\t\treturn idToEdge.get(id).getWeight();\n\t}",
"public Map<String, String> getEdge() {\n\t\tif (edge == null) {\n\t\t\tsetEdge(new HashMap<String, String>());\n\t\t}\n\t\treturn edge;\n\t}",
"public Edge returnEdgeById(Id id){\n\t\tif(id.indice >= listOfEdges.size()) return null;\n\t\tEdge e = listOfEdges.elementAt(id.indice);\n\t\tif(e == null) return null;\n\t\tId eid = e.getId();\n\t\tif(eid.indice != id.indice || eid.unique != id.unique) return null; \n\t\treturn e;\n\t}",
"public static Edge getEdgeFromID(int id){\n\t\tfor(Edge x : edgeList)\n\t\t{\n\t\t\tif(x.getID() == id)\n\t\t\t{\n\t\t\t\treturn x;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public BufferedImage getEdge() {\n\t\treturn edge;\n\t}",
"public java.lang.Integer getEdgeType() {\n return edgeType;\n }",
"public String getId() {\n return _node_id;\n }",
"public String getId()\r\n {\r\n return getAttribute(\"id\");\r\n }",
"public edge_data getEdge(int nodeKey) {\n return this.neighborEdges.get(nodeKey);\n }",
"public java.lang.Integer getEdgeType() {\n return edgeType;\n }",
"private EdgeType getEdgeType()\r\n\t{\r\n\t return edgeType;\r\n\t}",
"public int edgeNum() {\r\n return edges.size();\r\n }",
"public HashMap<String, Edge> getEdgeList () {return edgeList;}",
"public String getGraphId() {\n return graphId;\n }",
"public NodeId getId() {\n return id;\n }",
"@XmlAttribute\n\tpublic Long getId() {\n\t\treturn id;\n\t}",
"LabeledEdge getLabeledEdge();",
"public String getID() {\r\n\t\treturn this.idNode;\r\n\t}",
"public Integer geteId() {\n return eId;\n }",
"public Integer geteId() {\n return eId;\n }",
"public Long getGraphId() {\n\t\treturn graphId;\n\t}",
"@Override\n \t\t\t\tpublic String getGraphId() {\n \t\t\t\t\treturn null;\n \t\t\t\t}",
"public java.lang.String getGraphId() {\n java.lang.Object ref = graphId_;\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 graphId_ = s;\n return s;\n }\n }",
"public String getGraphID() {\r\n\t\treturn graphID;\r\n\t}",
"public FluidCuboid getSideEdge() {\n\t\t\treturn this.fluids.get(ChannelModelPart.SIDE_EDGE);\n\t\t}",
"protected EdgeFigure getEdgeFigure() {\r\n\t\treturn (EdgeFigure)getFigure();\r\n\t}",
"public Edge getEdge(Integer idVertex1, Integer idVertex2) throws Exception {\r\n\t\treturn matrix.getEdges(idVertex1, idVertex2);\r\n\t}",
"public ElementId getElementId() {\n\t\treturn elementId;\n\t}",
"public static int[][] getEdgeMatrix() {\n\t\treturn edge;\n\t}",
"uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge getEdge(int index);",
"public String getElementId() {\n return elementId;\n }",
"public java.lang.String getGraphId() {\n java.lang.Object ref = graphId_;\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 graphId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@XmlID\n @XmlAttribute( name = \"ID\", namespace = CommonNamespaces.RDF_NAMESPACE )\n public String getId() {\n return id;\n }",
"String getEdges();",
"@Override\n\tpublic Collection<edge_data> getE(int node_id) {\n\t\t// TODO Auto-generated method stub\n\t\treturn Edges.get(node_id).values();\n\t}",
"public int getEdgeCount() {\n return edge_.size();\n }",
"public String getElementId();",
"public int getEdges() {\n return edgesNumber;\n }",
"public interface GraphEdge extends org.omg.uml.diagraminterchange.GraphElement {\n /**\n * Returns the value of attribute waypoints.\n * @return Value of waypoints attribute.\n */\n public java.util.List getWaypoints();\n /**\n * Returns the value of reference anchor.\n * @return Value of reference anchor.\n */\n public java.util.List getAnchor();\n}",
"public long getEdgeCount() { return edgeCount; }",
"private String edgeString()\n {\n Iterator<DSAGraphEdge<E>> iter = edgeList.iterator();\n String outputString = \"\";\n DSAGraphEdge<E> edge = null;\n while (iter.hasNext())\n {\n edge = iter.next();\n outputString = (outputString + edge.getLabel() + \", \");\n }\n return outputString;\n }",
"public int endpointSetId() {\r\n\t\treturn getEntityId().getEndpointSetId();\r\n\t}",
"int getReverseEdgeKey();",
"public URI getID() {\n return this.id;\n }",
"@Override\n\tpublic double getId()\n\t{\n\t\treturn id;\n\t}",
"public Edge[] getEdges() {\n\t\treturn edges;\n\t}",
"public int getEdgeCount()\n\t{\n\t\treturn edgeCount;\n\t}",
"public String getIdAttribute() {\n return idAttribute;\n }",
"@Override\n public Collection<edge_data> getE(int node_id) {\n return ((NodeData) this.nodes.get(node_id)).getNeighborEdges().values();\n }",
"@Override\n\tpublic String[] getEdgePropertyNames() {\n\t\treturn edgePropertyNames;\n\t}",
"public abstract String edgeToStringWithTraceId(int nodeSrc, int nodeDst, int traceId, Set<String> relations);",
"@Override\n\tpublic int getId() {\n\t\treturn _keHoachKiemDemNuoc.getId();\n\t}",
"public String getDownRoadId() {\n return downRoadId;\n }",
"public String getId() {\n return (String)getAttributeInternal(ID);\n }",
"public String getId() {\n return (String)getAttributeInternal(ID);\n }",
"public String getId() {\r\n\t\treturn this.id;\r\n\t}",
"public String getId() {\r\n\t\treturn this.id;\r\n\t}",
"public String getId() {\r\n\t\treturn this.id;\r\n\t}",
"@Override\n public String getDotEdgeAttributes(TermID id1, TermID id2)\n {\n return null;\n }",
"public final int getElementId() {\n return elementId;\n }",
"public ArrayList<Edge> getEdgeList() {\n return edgeList;\n }",
"@Override\n public double getEdgeWeight() {\n return edgeWeight;\n }",
"public String getId() {\n\t\treturn this.Id;\n\t}",
"@JsonIgnore\n public String getId() {\n return UriHelper.getLastUriPart(getUri());\n }",
"@Override\r\n\tpublic String getId() {\n\t\treturn this.id;\r\n\t}",
"@Override\r\n\tpublic String getId() {\n\t\treturn this.id;\r\n\t}",
"public String getId() {\r\n return this.id;\r\n }",
"public String getId() {\r\n return this.id;\r\n }",
"public String getId() {\n\t\treturn this.id;\n\t}",
"public String getId() {\n\t\treturn this.id;\n\t}",
"public String getId()\n\t{\n\t\treturn this.id;\n\t}",
"public static int getEdgeNumber(Graph grafo) {\r\n\t\treturn grafo.getEdgeNumber();\r\n\t}",
"@Override\n public URI getId() {\n return id;\n }",
"@Override\r\n public Collection<edge_data> getE(int node_id) {\r\n return this.neighbors.get(node_id).values(); //o(k)\r\n }",
"public String getId() {\r\n return this.id;\r\n }",
"public int getEdge(int v1, int v2) {\n\n\t\treturn edges[v1][v2];\n\t}",
"public String getKey() {\r\n return getAttribute(\"id\");\r\n }",
"public String getId() {\n\t\treturn mId;\n\t}",
"public String getId() {\n\t\treturn mId;\n\t}",
"public String getId() {\r\n \t\treturn id;\r\n \t}",
"public String getELEMENT_ID() {\r\n return ELEMENT_ID;\r\n }",
"public Map<String, Edge> edges() {\n return this.edges;\n }",
"public int getEdgeSixe() {\n\t\treturn graph.edgeSet().size();\r\n\t}",
"public String getNode_id() {\r\n\t\treturn node_id;\r\n\t}",
"public Vector<Edge> getEdges(){\n\t\treturn this.listOfEdges;\n\t}"
]
| [
"0.7902855",
"0.7527538",
"0.73500836",
"0.6908419",
"0.6711274",
"0.65980864",
"0.65908206",
"0.65624726",
"0.6545106",
"0.6534089",
"0.65187395",
"0.6505659",
"0.6481916",
"0.64818794",
"0.6449272",
"0.6429439",
"0.6422122",
"0.6387245",
"0.63211787",
"0.628736",
"0.62729114",
"0.62120736",
"0.62039024",
"0.62026155",
"0.6192218",
"0.61598015",
"0.6095515",
"0.6087679",
"0.6062725",
"0.60150856",
"0.59812033",
"0.5941069",
"0.59284306",
"0.59237",
"0.59237",
"0.592",
"0.5917743",
"0.58790565",
"0.5863375",
"0.5859514",
"0.5856769",
"0.5842161",
"0.58374",
"0.58332956",
"0.5810301",
"0.5797887",
"0.5792024",
"0.57893413",
"0.5781427",
"0.5775064",
"0.5770087",
"0.5758134",
"0.5756176",
"0.5748518",
"0.57438964",
"0.57400477",
"0.57354814",
"0.57165086",
"0.5685624",
"0.5684585",
"0.5679463",
"0.5666629",
"0.5648083",
"0.56458586",
"0.5643036",
"0.56417257",
"0.563075",
"0.5623602",
"0.5621632",
"0.5621632",
"0.56197554",
"0.56197554",
"0.56197554",
"0.56136",
"0.5602476",
"0.5602252",
"0.55968064",
"0.5585613",
"0.5584314",
"0.55738693",
"0.55738693",
"0.5573051",
"0.5573051",
"0.5570457",
"0.5570457",
"0.5567442",
"0.55659467",
"0.55634576",
"0.5557992",
"0.5554357",
"0.55519205",
"0.55516416",
"0.55475736",
"0.55475736",
"0.5547258",
"0.5546091",
"0.5540515",
"0.5534418",
"0.5533904",
"0.5526469"
]
| 0.82622117 | 0 |
Returns the value of the 'Id Node1' attribute. If the meaning of the 'Id Node1' attribute isn't clear, there really should be more of a description here... | String getIdNode1(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getIdNode2();",
"@AutoEscape\n\tpublic String getNode_1();",
"public String getId() {\n return _node_id;\n }",
"@Override\n\tpublic java.lang.String getNode_1() {\n\t\treturn _dictData.getNode_1();\n\t}",
"public String getNode_id() {\r\n\t\treturn node_id;\r\n\t}",
"NodeId getNodeId();",
"private String getMyNodeId() {\n TelephonyManager tel = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);\n String nodeId = tel.getLine1Number().substring(tel.getLine1Number().length() - 4);\n return nodeId;\n }",
"@AutoEscape\n\tpublic String getNode_2();",
"public String getID() {\r\n\t\treturn this.idNode;\r\n\t}",
"public void setNode_1(String node_1);",
"public String getNodeValue ();",
"public int getAD_WF_Node_ID();",
"@Override\n\tpublic java.lang.String getNode_2() {\n\t\treturn _dictData.getNode_2();\n\t}",
"public int getNodeID() {\r\n \t\treturn nodeID;\r\n \t}",
"public int getNodeID() {\n return nodeID;\n }",
"public String getId() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"n=\");\n\t\tif ( nodeId != null ) {\n\t\t\tbuilder.append(nodeId);\n\t\t}\n\t\tbuilder.append(\";c=\");\n\t\tif ( created != null ) {\n\t\t\tbuilder.append(created);\n\t\t}\n\t\tbuilder.append(\";s=\");\n\t\tif ( sourceId != null ) {\n\t\t\tbuilder.append(sourceId);\n\t\t}\n\t\treturn DigestUtils.sha1Hex(builder.toString());\n\t}",
"public String getNodeIdString()\r\n\t{\r\n\t\treturn nodeIdString;\r\n\t}",
"@Override\n public String getNodeId() throws IOException {\n return getFirstLineOfFile(nodeIdPath);\n }",
"public NodeId getId() {\n return id;\n }",
"public String getNodeId() {\r\n return nodeId;\r\n }",
"public UUID nodeId();",
"public String nodeId() {\n return this.nodeId;\n }",
"public String getNodeId() {\n return nodeId;\n }",
"public String getNodeId() {\n return nodeId;\n }",
"@AutoEscape\n\tpublic String getNode_3();",
"@AutoEscape\n\tpublic String getNode_5();",
"public String getNodeId() {\r\n\t\treturn nodeId;\r\n\t}",
"public String toStringID()\r\n\t{\r\n\t\treturn nodeIdString;\r\n\t}",
"@AutoEscape\n\tpublic String getNode_4();",
"public NodeId getNodeId() {\n return nodeId;\n }",
"public void setNode_2(String node_2);",
"public String getNodeId() {\n\t\treturn nodeId;\n\t}",
"public String myNodeId() {\n\t\tif (nodeId == null) {\n\t\t\tnodeId = UUID.randomUUID();\n\t\t\tLOG.debug(\"My node id=\" + nodeId.toString());\n\t\t}\n\n\t\treturn nodeId.toString();\n\t}",
"entities.Torrent.NodeId getNode();",
"entities.Torrent.NodeId getNode();",
"public Object getId1() {\n return this.getId();\n }",
"@Nullable public UUID otherNodeId();",
"public Long getNodeId() {\n return nodeId;\n }",
"public String getAttribute1() {\n return attribute1;\n }",
"public short get_nodeid() {\n return (short)getUIntBEElement(offsetBits_nodeid(), 8);\n }",
"public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }",
"public String getId(Node node) {\n String id = \"\";\n if (node instanceof AIdExp) {\n AIdExp idNode = (AIdExp) node;\n id = idNode.getId().getText();\n }\n\treturn id;\n }",
"public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }",
"public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }",
"public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }",
"public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }",
"public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }",
"public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }",
"public String getIdNode() {\r\n String idNode = null;\r\n idNode = this.getParam(ESCOConstantes.ID_NODE);\r\n // Add the root element if not present\r\n if (null != idNode && !idNode.startsWith(ESCOConstantes.STEM_NAME_SEPARATOR)) {\r\n idNode = ESCOConstantes.STEM_NAME_SEPARATOR + idNode;\r\n }\r\n\r\n return idNode;\r\n }",
"public String getAttr1() {\n return attr1;\n }",
"public String getAttr1() {\n return attr1;\n }",
"public int getNodeId() {\n return m_nodeId;\n }",
"private Node getNode(String n1)\n\t{\n\t\tif (n1 == null) throw new RuntimeException(\"Attempt to add null node\");\n\t\tif (nodes.containsKey(n1)) return nodes.get(n1);\n\t\tnodes.put(n1, new Node(n1));\n\t\treturn nodes.get(n1);\n\t}",
"public String getNodeAttribute() {\n\treturn nodeAttribute;\n }",
"@Override\n\tpublic java.lang.String getNode_5() {\n\t\treturn _dictData.getNode_5();\n\t}",
"io.dstore.values.IntegerValue getTreeNodeId();",
"public int Node() { return this.Node; }",
"public String getNode_pid() {\r\n\t\treturn node_pid;\r\n\t}",
"public int getMemberId1() {\n return memberId1_;\n }",
"public UUID originatingNodeId();",
"public String getNodeValue(Node node) throws Exception;",
"public int getMemberId1() {\n return memberId1_;\n }",
"public int getNodeLabel ();",
"public String getNodeKey() {\n return nodeKey;\n }",
"@Override\n\tpublic java.lang.String getNode_3() {\n\t\treturn _dictData.getNode_3();\n\t}",
"public int getID()\n\t{\n\t\treturn m_nNodeID;\n\t}",
"public String getNode() {\n return node;\n }",
"public String getNameIdNode() {\r\n String nameIdNode = null;\r\n nameIdNode = this.getParam(ESCOConstantes.NAMEID_NODE);\r\n // Add the root element if not present\r\n if (null != nameIdNode && !nameIdNode.startsWith(ESCOConstantes.STEM_NAME_SEPARATOR)) {\r\n nameIdNode = ESCOConstantes.STEM_NAME_SEPARATOR + nameIdNode;\r\n }\r\n\r\n return nameIdNode;\r\n }",
"public short getNode() {\n return node;\n }",
"@Override\n\tpublic java.lang.String getNode_4() {\n\t\treturn _dictData.getNode_4();\n\t}",
"public long getNodeID()\n {\n return vnodeid; \n }",
"public String getNode()\n {\n return node;\n }",
"public int getNodeA(){\n return this.nodeA;\n }",
"io.dstore.values.IntegerValue getNodeCharacteristicId();",
"io.dstore.values.IntegerValue getNodeCharacteristicId();",
"public String getNode() {\n return node;\n }",
"public void setNode_4(String node_4);",
"public void setNode_3(String node_3);",
"String getNodeMetadataValue(int node, String key);",
"public int getNode() {\r\n\t\t\treturn data;\r\n\t\t}",
"public IdentifierNode getIdentifier()throws ClassCastException;",
"public static String getNodeValue(Node node, String id)\r\n\t{\r\n\t\t\r\n\t\tNodeList list = ((Element)node).getElementsByTagName(id);\r\n\t\t\r\n\t\treturn list.item(0).getFirstChild().getNodeValue();\r\n\t}",
"@Override\n\tpublic void setNode_1(java.lang.String node_1) {\n\t\t_dictData.setNode_1(node_1);\n\t}",
"Node getNode();",
"public NetworkNode getNetworkNode(Integer id);",
"public String getNodeName()\n {\n return Constants.ELEMNAME_NUMBER_STRING;\n }",
"@Override public int getNodeId(String name) {\n\t\tint id = node_index_.tryGet(name);\n\t\tif (id == -1) System.err.println(\"Unknown node name=\" + name);\n\t\treturn id;\n\t}",
"public String getId2() {\n return id2;\n }",
"String getChildId();",
"String getValueId();",
"public Integer nodeValue(String id)\n\t{\n\t\treturn getNode(id).value;\n\t}",
"@Override\n public String getSafeNodeIdForLOG() {\n return nodeId == null ? \"null\" : nodeId.getValue();\n }",
"public int getUser1_ID() {\n\t\tInteger ii = (Integer) get_Value(\"User1_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"private Node getNodeById(int objId){\n return dungeonPane.lookup(\"#\" + Integer.toString(objId));\n }",
"@java.lang.Override\n public entities.Torrent.NodeId getNode() {\n return node_ == null ? entities.Torrent.NodeId.getDefaultInstance() : node_;\n }",
"@java.lang.Override\n public entities.Torrent.NodeId getNode() {\n return node_ == null ? entities.Torrent.NodeId.getDefaultInstance() : node_;\n }",
"public int getNid() {\r\n\t\treturn nid;\r\n\t}",
"public void setNode_5(String node_5);",
"public String getElementId();",
"public String getAddr1() {\r\n return addr1;\r\n }"
]
| [
"0.7161587",
"0.71402246",
"0.7069764",
"0.7067108",
"0.6986247",
"0.682147",
"0.6738384",
"0.66581595",
"0.66120654",
"0.65635085",
"0.65541106",
"0.6514985",
"0.6450627",
"0.642638",
"0.6421506",
"0.6409236",
"0.6407115",
"0.6393189",
"0.63922596",
"0.63886887",
"0.63564575",
"0.63264906",
"0.6260455",
"0.6260455",
"0.6247222",
"0.6245681",
"0.6228685",
"0.6227208",
"0.6215017",
"0.6209508",
"0.6174504",
"0.6172683",
"0.61647195",
"0.61515045",
"0.61515045",
"0.6143947",
"0.6110958",
"0.6103231",
"0.61009175",
"0.60532373",
"0.6051971",
"0.60475683",
"0.6011342",
"0.6011342",
"0.6011342",
"0.6011342",
"0.6011342",
"0.6010899",
"0.5997209",
"0.59900683",
"0.59900683",
"0.5970025",
"0.5956151",
"0.5937892",
"0.5928718",
"0.5902258",
"0.58937347",
"0.58761895",
"0.5864674",
"0.58631223",
"0.58588135",
"0.58484334",
"0.5830387",
"0.5820927",
"0.58160037",
"0.58072186",
"0.58047104",
"0.5785142",
"0.57671666",
"0.5760435",
"0.5759519",
"0.57488227",
"0.5745324",
"0.5727003",
"0.5727003",
"0.57261944",
"0.56936663",
"0.5688796",
"0.56734747",
"0.5673179",
"0.5664195",
"0.5658317",
"0.5651599",
"0.5650232",
"0.56363857",
"0.5624829",
"0.56189215",
"0.5617269",
"0.5604881",
"0.55846465",
"0.5579531",
"0.55726314",
"0.5568158",
"0.5543853",
"0.5542776",
"0.5542776",
"0.5536061",
"0.55357635",
"0.5534017",
"0.5524234"
]
| 0.75711876 | 0 |
Returns the value of the 'Direction' attribute. If the meaning of the 'Direction' attribute isn't clear, there really should be more of a description here... | String getDirection(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDirection() {\n return this.direction;\n }",
"public String getDirection() {\n\t\treturn this.direction;\n\t}",
"public String getDirection() {\r\n return direction;\r\n }",
"public String getDirection() {\n return direction;\n }",
"public int getDirection()\r\n\t{\r\n\t\treturn direction;\r\n\t}",
"public int getDirection() {\r\n\t\treturn direction;\r\n\t}",
"public byte getDirection() {\n return this.direction;\n }",
"public byte getDirection() {\n return this.direction;\n }",
"public byte getDirection() {\n\t\treturn direction;\n\t}",
"public int getDirection() {\n return direction_;\n }",
"public int getDirection() {\n return direction;\n }",
"public int getDirection() {\n return direction;\n }",
"public Direction getDirection() {\r\n\t\treturn direction;\r\n\t}",
"public int getDirection() {\n return direction_;\n }",
"public int getDirection() {\n return direction;\n }",
"public final String getTextDirectionAttribute() {\n return getAttributeValue(\"dir\");\n }",
"public Direction getDirection()\n\t{\n\t\treturn this.direction;\n\t}",
"public Direction getDirection() {\n\t\treturn direction;\n\t}",
"public float getDirection()\r\n {\r\n return direction;\r\n }",
"@Basic\r\n\tpublic Direction getDirection()\r\n\t{\r\n\t\treturn this.direction;\r\n\t}",
"public Direction getDirection() {\n return direction;\n }",
"public Direction getDirection() {\n return direction;\n }",
"public Direction getDirection() {\n return direction;\n }",
"public Enums.Direction getDirection() {\n return direction;\n }",
"public Direction getDirection()\n {\n return dir;\n }",
"public DirectionEnum getDirection() {\n return direction;\n }",
"public int getDirection();",
"public float getDirection();",
"public com.cognos.developer.schemas.raas.Returns__by__Order__Method___x002d__Prompted__Chart.TextDirectionEnum getDirection() {\r\n return direction;\r\n }",
"int getDirection();",
"public final Vector3f getDirection() {\r\n return direction;\r\n }",
"@Schema(description = \"Indicates the threshold crossing direction: up or down.\")\n\n\tpublic String getDirection() {\n\t\treturn direction;\n\t}",
"@SlideDirection\n public int getDirection() {\n return mImpl.getDirection().getNumber();\n }",
"@SlideDirection\n public int getDirection() {\n return mImpl.getDirection().getNumber();\n }",
"public char getDirection(){\n\t\treturn direction;\n\t}",
"public Transaction.DirectionType getDirection() {\n\t\treturn direction;\n\t}",
"@Field(13) \n\tpublic byte Direction() {\n\t\treturn this.io.getByteField(this, 13);\n\t}",
"public java.lang.Integer getDirectioncode() {\n\treturn directioncode;\n}",
"public java.lang.String getDirectionname() {\n\treturn directionname;\n}",
"public Vector3d getDirection() { return mDirection; }",
"public MoveDirection getDirection() {\n\t\treturn direction;\n\t}",
"public Vector3f getDirection() {\r\n\t\treturn new Vector3f(mDirection);\r\n\t}",
"@JsonGetter(\"direction\")\r\n public String getDirection() {\r\n return direction;\r\n }",
"public String getDirection(){\n\t\tif(this.toRight)\n\t\t\treturn \"RIGHT\";\n\t\telse\n\t\t\treturn \"LEFT\";\n\t}",
"public Direction getDirection() {\n return currentDirection;\n }",
"public MediaDirection getDirection()\n {\n return direction;\n }",
"@JsonGetter(\"direction\")\n public String getDirection ( ) { \n return this.direction;\n }",
"default Vector3 getDirection() {\r\n return Vector3.fromXYZ(getDirX(), getDirY(), getDirZ());\r\n }",
"public abstract int getDirection();",
"public Vector getDirection(){\n\t\treturn new Vector(_direction);\n\t}",
"public Direction direction()\n {\n return myDir;\n }",
"protected final Direction getDirection() {\n\t\treturn tile.getDirection();\n\t}",
"public CS getDirectionCode() { return _directionCode; }",
"public TextDirection getDir() {\n return dir;\n }",
"com.microsoft.schemas.crm._2011.contracts.SearchDirection xgetDirection();",
"com.microsoft.schemas.crm._2011.contracts.SearchDirection.Enum getDirection();",
"public void setDirection(String nDirection) {\r\n\t\tthis.direction = nDirection;\r\n\t}",
"Enumerator getDirection();",
"EChannelDirection direction();",
"public double direction(){\n return Math.atan2(this.y, this.x);\n }",
"public void setDirection(String direction) {\r\n this.direction = direction;\r\n }",
"public void setDirection(String direction) {\n this.direction = direction;\n }",
"public java.lang.String getDirection1() {\r\n return direction1;\r\n }",
"public int getCurrentDirection() {\r\n return currentDirection;\r\n }",
"public void setDirection(int value) {\n this.direction = value;\n }",
"public String getWindDirection() {\n\t\treturn windDirection;\n\t}",
"public String getWindDirection() {\n\t\treturn windDirection;\n\t}",
"@Override\n public Direction getDirection() {\n return null;\n }",
"public SortDirection getSortDirection() {\r\n return EnumUtil.getEnum(SortDirection.values(), getAttribute(\"sortDirection\"));\r\n }",
"public void setDirection(int value) {\n this.direction = value;\n }",
"public double getDirectionFace();",
"@Generated\n @Selector(\"direction\")\n @ByValue\n public native CGVector direction();",
"@AutoEscape\n\tpublic String getRequestDirection();",
"public double getDirectionMove();",
"public void setDirection(byte value) \n\t{\n\t\tdirection = value;\n\t}",
"public Type getArgumentDirection() {\n return direction;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.DirectionOfTravelPEL getDirectionOfTravel();",
"public ForgeDirection toForgeDirection()\n {\n for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS)\n {\n if (this.x == direction.offsetX && this.y == direction.offsetY && this.z == direction.offsetZ)\n {\n return direction;\n }\n }\n\n return ForgeDirection.UNKNOWN;\n }",
"Directions getDirections(){\n return this.dir;\n }",
"public static byte getDirectionSize() {\n return DIRECTION_SIZE;\n }",
"public void setDirection(int direction) {\r\n\t\tthis.direction = direction;\r\n\t}",
"public double getDirectionView();",
"public String getDirectionMove() {\n\t\treturn directionMove;\n\t}",
"private static Directions getDirection() {\n\t\t\treturn values()[rand.nextInt(4)];\n\t\t}",
"private static String getXadlDirection(Direction direction) {\n\t\tString strDirection = null;\n\t\tswitch (direction) {\n\t\tcase IN:\n\t\t\tstrDirection = \"in\";\n\t\t\tbreak;\n\t\tcase OUT_MULTI:\n\t\tcase OUT_SINGLE:\n\t\t\tstrDirection = \"out\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tstrDirection = \"none\";\n\n\t\t}\n\n\t\treturn strDirection;\n\t}",
"public boolean hasDirection() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"private DominoInKingdom.DirectionKind getDirection(String dir) {\n switch (dir) {\n case \"up\":\n return DominoInKingdom.DirectionKind.Up;\n case \"down\":\n return DominoInKingdom.DirectionKind.Down;\n case \"left\":\n return DominoInKingdom.DirectionKind.Left;\n case \"right\":\n return DominoInKingdom.DirectionKind.Right;\n default:\n throw new java.lang.IllegalArgumentException(\"Invalid direction: \" + dir);\n }\n }",
"Optional<Direction> getDirection();",
"public Direction getCurrentDirection() {\n synchronized (f_lock) {\n return f_currentDirection;\n }\n }",
"public java.lang.String getDirection2() {\r\n return direction2;\r\n }",
"public void setDirection(float direction)\r\n {\r\n this.direction = direction;\r\n }",
"public void setDirection(Direction direction) {\n this.direction = direction;\n }",
"public void setDirection(Direction direction) {\n this.direction = direction;\n }",
"public void setDirection(Direction direction) {\n this.direction = direction;\n }",
"public boolean hasDirection() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public void setDirection(int dir)\r\n\t{\r\n\t\tdirection = dir;\r\n\t}",
"public abstract int getDirection() throws RcsServiceException;",
"public Direction getDirect() {\n \tif(xMoving && yMoving){\n \t\tif(right && down)\n \t\t\tdir = Direction.SOUTHEAST;\n \t\telse if(right && !down)\n \t\t\tdir = Direction.NORTHEAST;\n \t\telse if(!right && down)\n \t\t\tdir = Direction.SOUTHWEST;\n \t\telse\n \t\t\tdir = Direction.NORTHWEST;\n \t}\n \telse if(xMoving){\n \t\tdir = right ? Direction.EAST : Direction.WEST;\n \t}\n \telse if(yMoving){\n \t\tdir = down ? Direction.SOUTH : Direction.NORTH;\n \t}\n \treturn dir;\n }",
"public Movement getDir() {\n\t\treturn dir;\n\t}",
"TextDirection textDirection();"
]
| [
"0.8524122",
"0.85163593",
"0.8462308",
"0.84191585",
"0.8260397",
"0.8237772",
"0.8215616",
"0.8215616",
"0.82026196",
"0.8167292",
"0.8125693",
"0.8125693",
"0.81227136",
"0.81164736",
"0.8114688",
"0.81002164",
"0.80960643",
"0.8082007",
"0.8070369",
"0.8031825",
"0.7971555",
"0.7971555",
"0.7971555",
"0.7971214",
"0.7861575",
"0.784504",
"0.7788455",
"0.77776986",
"0.7766849",
"0.7751845",
"0.7720994",
"0.77187604",
"0.7703597",
"0.7703597",
"0.76833516",
"0.76209635",
"0.758109",
"0.75745434",
"0.7573818",
"0.7541013",
"0.75004745",
"0.74955285",
"0.7494638",
"0.74862254",
"0.74738574",
"0.746011",
"0.74318063",
"0.7356566",
"0.73340416",
"0.7323831",
"0.7261539",
"0.72328496",
"0.7134983",
"0.7124026",
"0.7116513",
"0.7102694",
"0.70544356",
"0.70522004",
"0.7036636",
"0.69880104",
"0.69816256",
"0.6935971",
"0.69195795",
"0.6897949",
"0.6892646",
"0.6875139",
"0.6875139",
"0.684315",
"0.68223894",
"0.6812861",
"0.6786506",
"0.6713797",
"0.6704731",
"0.6680841",
"0.66643685",
"0.66399884",
"0.6636961",
"0.6624059",
"0.66141945",
"0.6604975",
"0.65960085",
"0.6591228",
"0.6587066",
"0.6574736",
"0.65566814",
"0.65361017",
"0.6526701",
"0.64989954",
"0.64678806",
"0.64629936",
"0.64578974",
"0.64499366",
"0.64499366",
"0.64499366",
"0.64390445",
"0.64217323",
"0.64175355",
"0.6409887",
"0.6404712",
"0.6370856"
]
| 0.81870985 | 9 |
Returns the value of the 'Id Node2' attribute. If the meaning of the 'Id Node2' attribute isn't clear, there really should be more of a description here... | String getIdNode2(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic java.lang.String getNode_2() {\n\t\treturn _dictData.getNode_2();\n\t}",
"@AutoEscape\n\tpublic String getNode_2();",
"public String getId2() {\n return id2;\n }",
"public String getAttribute2() {\n return attribute2;\n }",
"public String getAttr2() {\n return attr2;\n }",
"public String getAttr2() {\n return attr2;\n }",
"public String getAttribute2() {\n return (String) getAttributeInternal(ATTRIBUTE2);\n }",
"public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }",
"public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }",
"public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }",
"public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }",
"public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }",
"public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }",
"public void setNode_2(String node_2);",
"String getIdNode1();",
"public int getMemberId2() {\n return memberId2_;\n }",
"public int getMemberId2() {\n return memberId2_;\n }",
"@Override\n\tpublic void setNode_2(java.lang.String node_2) {\n\t\t_dictData.setNode_2(node_2);\n\t}",
"@AutoEscape\n\tpublic String getNode_1();",
"public int getUser2_ID() {\n\t\tInteger ii = (Integer) get_Value(\"User2_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public String getAddr2() {\r\n return addr2;\r\n }",
"public int getAD_WF_Node_ID();",
"public String getAddressLine2() {\n return (String)getAttributeInternal(ADDRESSLINE2);\n }",
"public String getId() {\n return _node_id;\n }",
"public String getNode_id() {\r\n\t\treturn node_id;\r\n\t}",
"public Object item2() throws InvalidNodeException {\n\t\tif (!isValidNode()) {\n\t\t\tthrow new InvalidNodeException();\n\t\t}\n\t\treturn item2;\n\t}",
"public Node getL2pNode() {\n\t\treturn myNode;\n\t}",
"@Nullable public UUID otherNodeId();",
"public String getIntAttribute2() {\n return (String) getAttributeInternal(INTATTRIBUTE2);\n }",
"public java.lang.String getValue2() {\n return this.value2;\n }",
"public int getNum2() {\r\n\t\t\t\treturn num2_;\r\n\t\t\t}",
"public int getNum2() {\r\n\t\t\treturn num2_;\r\n\t\t}",
"@Override\n\tpublic java.lang.String getNode_1() {\n\t\treturn _dictData.getNode_1();\n\t}",
"public String getEntityTwoGUID()\n {\n return entityTwoGUID;\n }",
"public String getExtAttribute2() {\n return (String) getAttributeInternal(EXTATTRIBUTE2);\n }",
"NodeId getNodeId();",
"public String getAddress2() {\n\t\treturn address2;\n\t}",
"public String getSrcAddress2() {\r\n return (String) getAttributeInternal(SRCADDRESS2);\r\n }",
"@AutoEscape\n\tpublic String getNode_3();",
"private int find(int p1, int p2) {\n return id[p1 - 1][p2 - 1]; // find the current value of a node\n }",
"public String getNodeValue ();",
"public int getd2() {\n\t\treturn d2;\n\t}",
"public String getAdr2() {\n return adr2;\n }",
"public int getProperty2() {\n return property2_;\n }",
"public void setAttr2(String attr2) {\n this.attr2 = attr2;\n }",
"public void setAttr2(String attr2) {\n this.attr2 = attr2;\n }",
"public int getNodeID() {\n return nodeID;\n }",
"private String getMyNodeId() {\n TelephonyManager tel = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);\n String nodeId = tel.getLine1Number().substring(tel.getLine1Number().length() - 4);\n return nodeId;\n }",
"public int getProperty2() {\n return property2_;\n }",
"public int getNodeID() {\r\n \t\treturn nodeID;\r\n \t}",
"public int getData2() {\n return data2_;\n }",
"public int getData2() {\n return data2_;\n }",
"public String getAddress2() {\r\n return address2;\r\n }",
"@Nullable\n public final CharSequence getLabel2() {\n return mLabel2;\n }",
"public void setNode_1(String node_1);",
"public IpAddress getIpAddress2Value() throws JNCException {\n IpAddress ipAddress2 = (IpAddress)getValue(\"ip-address2\");\n if (ipAddress2 == null) {\n ipAddress2 = new IpAddress(\"0.0.0.0\"); // default\n }\n return ipAddress2;\n }",
"public String getID() {\r\n\t\treturn this.idNode;\r\n\t}",
"@AutoEscape\n\tpublic String getNode_4();",
"public String getAddressline2() {\n return addressline2;\n }",
"public java.lang.String getSecondary2() {\n return secondary2;\n }",
"public int getHC_Org2_ID();",
"public int getX2() {\n\t\treturn x2;\n\t}",
"entities.Torrent.NodeId getNode();",
"entities.Torrent.NodeId getNode();",
"public Object getValue2() { return this.value2; }",
"public int getData2() {\n return data2_;\n }",
"public int getData2() {\n return data2_;\n }",
"public String getAdNetworkType2() {\r\n return adNetworkType2;\r\n }",
"@AutoEscape\n\tpublic String getNode_5();",
"public void setId2(String id2) {\n this.id2 = id2 == null ? null : id2.trim();\n }",
"public Node read_node2(String MAC, String port_number) throws HibernateException\r\n\t\t\t\t{ \r\n\t\t\t\t\tNode node = null; \r\n\t\t\t\t\tString i=null;\r\n\t\t\t\t\tlong id_node=0;\r\n\t\t\t\t try \r\n\t\t\t\t { \r\n\t\t\t\t iniciaOperacion(); //unique result me devuelve el objeto encontrado con dicho correo electronico\r\n\t\t\t\t \r\n\t\t\t\t i= sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.MAC_address ='\"+MAC+\"' and u.port_number ='\"+port_number+\"'\").uniqueResult().toString();\r\n\t\t\t\t //una vez encontrado el id del user puedo buscarlo\r\n\t\t\t\t id_node= Integer.parseInt(i);\r\n\t\t\t\t node = (Node) sesion.get(Node.class, id_node); \r\n\t\t\t\t \r\n\t\t\t\t } finally \r\n\t\t\t\t { \r\n\t\t\t\t sesion.close(); \r\n\t\t\t\t } \r\n\t\t\t\t return node; \r\n\t\t\t\t}",
"public java.lang.String getReference2() {\n return reference2;\n }",
"public java.lang.String getReceiverAddress2() {\r\n return receiverAddress2;\r\n }",
"public IpAddress getIpAddress2Value() throws JNCException {\n return (IpAddress)getValue(\"ip-address2\");\n }",
"public java.lang.Integer getPRTNO2() {\n return PRTNO2;\n }",
"public String getLine2() {\n return line2;\n }",
"@Override\n\tpublic java.lang.String getNode_3() {\n\t\treturn _dictData.getNode_3();\n\t}",
"public java.lang.String getNAME2()\n {\n \n return __NAME2;\n }",
"public String getOther2() {\n return other2;\n }",
"public YangUInt16 getVlanTag2Value() throws JNCException {\n return (YangUInt16)getValue(\"vlan-tag2\");\n }",
"public String getAddressLine2() {\n return addressLine2;\n }",
"public void setId2(int value) {\n this.id2 = value;\n }",
"public String getOdlOpenflowNode2() throws SnmpStatusException;",
"public java.lang.String getLine2() {\r\n return line2;\r\n }",
"public ChannelID getChannelID2() {\n return channelID2;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getReference2() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(REFERENCE2_PROP.get());\n }",
"public String getNodeId() {\r\n return nodeId;\r\n }",
"public String getNodeValue(Node node) throws Exception;",
"public String getAttribute1() {\n return attribute1;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getReference2() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(REFERENCE2_PROP.get());\n }",
"public void setAddr2(String addr2) {\r\n this.addr2 = addr2;\r\n }",
"public StrColumn getRange2EndLabelAtomId() {\n return delegate.getColumn(\"range_2_end_label_atom_id\", DelegatingStrColumn::new);\n }",
"public YangString getVlanHostInterface2Value() throws JNCException {\n return (YangString)getValue(\"vlan-host-interface2\");\n }",
"public String nodeId() {\n return this.nodeId;\n }",
"@Override\n public String getNodeId() throws IOException {\n return getFirstLineOfFile(nodeIdPath);\n }",
"public UUID nodeId();",
"public String getCronopElemCode2() {\n\t\treturn this.cronopElemCode2;\n\t}",
"public void setCustomID2(String customID2) {\n\t\tCUSTOM_ID2 = customID2;\n\t}",
"public BPGNode get(BPGNode n) {\n return n1.equals(n) ? n2 : n1;\n }",
"public String getId(Node node) {\n String id = \"\";\n if (node instanceof AIdExp) {\n AIdExp idNode = (AIdExp) node;\n id = idNode.getId().getText();\n }\n\treturn id;\n }"
]
| [
"0.72799295",
"0.71095484",
"0.7068337",
"0.68753004",
"0.6820025",
"0.6820025",
"0.68012416",
"0.6798181",
"0.67798287",
"0.67798287",
"0.67798287",
"0.67798287",
"0.67798287",
"0.6771321",
"0.6512976",
"0.6425908",
"0.6403514",
"0.63206166",
"0.6313945",
"0.62775195",
"0.61977667",
"0.6177322",
"0.6173437",
"0.6166611",
"0.61641544",
"0.6159825",
"0.61416644",
"0.6104107",
"0.6068082",
"0.606804",
"0.6061287",
"0.60342085",
"0.60293543",
"0.6013946",
"0.6010726",
"0.59922206",
"0.5971555",
"0.5916594",
"0.5898455",
"0.5895386",
"0.5885007",
"0.5876403",
"0.5862602",
"0.5846958",
"0.58337027",
"0.58337027",
"0.5783844",
"0.57703286",
"0.574827",
"0.57462215",
"0.5705143",
"0.5705143",
"0.5689207",
"0.5688465",
"0.56853074",
"0.5681231",
"0.5672641",
"0.56686777",
"0.56666297",
"0.5666445",
"0.56657946",
"0.56647944",
"0.56564957",
"0.56564957",
"0.5635722",
"0.5632342",
"0.5632342",
"0.5622255",
"0.5620288",
"0.56143963",
"0.5610452",
"0.5589286",
"0.55595785",
"0.5559032",
"0.5558304",
"0.55460846",
"0.55335945",
"0.5532324",
"0.55255675",
"0.55224365",
"0.55079603",
"0.5506472",
"0.5498788",
"0.54947215",
"0.5480761",
"0.548073",
"0.5474707",
"0.5468939",
"0.54617155",
"0.54511815",
"0.5450987",
"0.5436568",
"0.5433937",
"0.54324496",
"0.5430298",
"0.54264283",
"0.5426016",
"0.54257166",
"0.54138124",
"0.54086316"
]
| 0.70352614 | 3 |
Returns the value of the 'Attributes' containment reference. If the meaning of the 'Attributes' containment reference isn't clear, there really should be more of a description here... | Attributes getAttributes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Attributes getAttributes() { return this.attributes; }",
"public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}",
"public java.lang.Integer getAttributes() {\r\n return attributes;\r\n }",
"@Override\r\n\tpublic Map<String, String> getAttributes() {\r\n\t\treturn this.attributes;\r\n\t}",
"public String getAttributes() {\n return attributes;\n }",
"public String getAttributes() {\n return attributes;\n }",
"public Map<String, String> getAttributes() {\n\t\treturn attributes;\n\t}",
"public java.util.Collection getAttributes();",
"public List<Pair<String, String>> getAttributes() {\n\t\treturn attributes;\n\t}",
"public Map<String, Set<String>> getAttributes() {\n return attributes;\n }",
"@java.lang.Override\n public trinsic.services.common.v1.CommonOuterClass.JsonPayload getAttributes() {\n return attributes_ == null ? trinsic.services.common.v1.CommonOuterClass.JsonPayload.getDefaultInstance() : attributes_;\n }",
"public final String[] getAttributes() {\n return this.attributes;\n }",
"public WSLAttributeList getAttributes() {return attributes;}",
"public final native JsArray<Attribute> getAttributes() /*-{\n\t\t\treturn this.attributes;\n\t\t}-*/;",
"public Attributes getAttributes() {\n\t\treturn null;\r\n\t}",
"IAttributes getAttributes();",
"public List<String> attributes() {\n return this.attributes;\n }",
"@Override\n\tpublic Attributes getAttributes() {\n\t\treturn (Attributes)map.get(ATTRIBUTES);\n\t}",
"public List<Attribute> getAttributes() {\r\n return attributes;\r\n }",
"public Map<String, String> getAttributes() {\n return Collections.unmodifiableMap(attributes);\n }",
"public Map<String, String> getAttributes() {\n\t\treturn atts;\n\t}",
"private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}",
"public FactAttributes getAttributes() {\r\n return localAttributes;\r\n }",
"public trinsic.services.common.v1.CommonOuterClass.JsonPayload getAttributes() {\n if (attributesBuilder_ == null) {\n return attributes_ == null ? trinsic.services.common.v1.CommonOuterClass.JsonPayload.getDefaultInstance() : attributes_;\n } else {\n return attributesBuilder_.getMessage();\n }\n }",
"public Map<String, String> getAttributes();",
"public Map<String, Object> getAttributes();",
"public Map<String, Object> getAttributes();",
"Map<String, String> getAttributes();",
"public List<Attribute<?>> getAttributes() {\r\n\t\treturn Collections.unmodifiableList(attributes);\r\n\t}",
"@Override\r\n\tpublic Map<String, Object> getAttributes() {\n\t\treturn null;\r\n\t}",
"Map<String, Object> getAttributes();",
"Map<String, Object> getAttributes();",
"Map<String, Object> getAttributes();",
"@java.lang.Override\n public java.util.List<google.maps.fleetengine.v1.VehicleAttribute> getAttributesList() {\n return attributes_;\n }",
"public List<Attribute> getAttributes() {\n return Collections.unmodifiableList(attributes);\n }",
"public Attribute[] getAttributes()\n {\n return _attrs;\n }",
"public java.lang.Integer getAttributes1() {\r\n return attributes1;\r\n }",
"public int getNumAttributes() {\n return m_NumAttributes;\n }",
"public List<GenericAttribute> getAttributes() {\n return attributes;\n }",
"public final Map<String, DomAttr> getAttributesMap() {\n return attributes_;\n }",
"@java.lang.Override\n public java.util.List<? extends google.maps.fleetengine.v1.VehicleAttributeOrBuilder> \n getAttributesOrBuilderList() {\n return attributes_;\n }",
"public ShapeAttributes getAttributes()\n {\n return this.normalAttrs;\n }",
"public abstract Map<String, Object> getAttributes();",
"public trinsic.services.common.v1.CommonOuterClass.JsonPayloadOrBuilder getAttributesOrBuilder() {\n if (attributesBuilder_ != null) {\n return attributesBuilder_.getMessageOrBuilder();\n } else {\n return attributes_ == null ?\n trinsic.services.common.v1.CommonOuterClass.JsonPayload.getDefaultInstance() : attributes_;\n }\n }",
"public final int getAttributes() {\n\t\treturn m_info.getFileAttributes();\n\t}",
"public java.lang.Integer getBgElementAttributes() {\r\n return bgElementAttributes;\r\n }",
"public Vector<HibernateAttribute> getAttributes() {\n\t\treturn attributes;\n\t}",
"@java.lang.Override\n public trinsic.services.common.v1.CommonOuterClass.JsonPayloadOrBuilder getAttributesOrBuilder() {\n return getAttributes();\n }",
"@java.lang.Override\n public int getAttributesCount() {\n return attributes_.size();\n }",
"public Map getAttributeValueMap() {\n return m_attributeValueMap;\n }",
"private byte attributes() {\n return (byte) buffer.getShort(ATTRIBUTES_OFFSET);\n }",
"public int getNumAttributes() {\n return numAttributes;\n }",
"public String getListAttributesPref()\n {\n Serializer<Collection<RecognizedElement>> serializer = new Serializer<Collection<RecognizedElement>>();\n return serializer.serialize(tree.getChildren());\n }",
"public String[] getRelevantAttributes();",
"public Set<String> getAttributes() {\r\n return attributeMap.keySet();\r\n }",
"public Value restrictToAttributes() {\n Value r = new Value(this);\n r.num = null;\n r.str = null;\n r.var = null;\n r.flags &= ATTR | ABSENT | UNKNOWN;\n if (!isUnknown() && isMaybePresent())\n r.flags |= UNDEF; // just a dummy value, to satisfy the representation invariant for PRESENT\n r.excluded_strings = r.included_strings = null;\n return canonicalize(r);\n }",
"public java.lang.String getAttributeValue() {\r\n return localAttributeValue;\r\n }",
"@Nullable\n public Map<String, Object> getCustomAttributes() {\n return mCustomAttributes;\n }",
"public List<TLAttribute> getAttributes();",
"public int attributeSize()\r\n\t{\r\n\t\treturn this.attributes.size();\r\n\t}",
"private ArrayList<Attribute> getAttributes() {\n\t\tif (attributes != null && attributes instanceof ArrayList)\n\t\t\treturn ((ArrayList<Attribute>) attributes);\n\t\telse {\n\t\t\tArrayList<Attribute> tmp = new ArrayList<Attribute>();\n\t\t\tif (attributes != null)\n\t\t\t\ttmp.addAll(attributes);\n\t\t\tattributes = tmp;\n\t\t\treturn tmp;\n\t\t}\n\t}",
"public TableAttributes getAttributes() {\n\treturn attrs;\n }",
"public Attributes getContextAttributes() {\r\n return this.atts;\r\n }",
"public Map<String, Object> getAttributesMap() {\n\t\treturn this.staticAttributes;\n\t}",
"public Map<String, Set<String>> getMapAttrValue() {\n\t\treturn mapAttrValue;\n\t}",
"public final String getAttributesString() {\n String returnAttributes = \"\";\n boolean debut = true;\n for (int i = 0; i < this.attributes.length; i++) {\n if (debut) {\n debut = false;\n } else {\n returnAttributes += \"|\";\n }\n returnAttributes += this.attributes[i];\n }\n return returnAttributes;\n }",
"public String attribute() {\n return this.attribute;\n }",
"public String getAttribute_value() {\n return attribute_value;\n }",
"public int getAttribute() {\n return Attribute;\n }",
"public abstract Map getAttributes();",
"trinsic.services.common.v1.CommonOuterClass.JsonPayload getAttributes();",
"@Override\n public List<MappedField<?>> getAttributes() {\n return attributes;\n }",
"public java.util.List<google.maps.fleetengine.v1.VehicleAttribute> getAttributesList() {\n if (attributesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(attributes_);\n } else {\n return attributesBuilder_.getMessageList();\n }\n }",
"public int attributeListDepth() {\n return _attributeListDepth;\n }",
"public Enumeration getAttributes()\n {\n ensureLoaded();\n return m_tblAttribute.elements();\n }",
"public int getAttributesCount() {\n if (attributesBuilder_ == null) {\n return attributes_.size();\n } else {\n return attributesBuilder_.getCount();\n }\n }",
"public org.omg.uml.foundation.core.Attribute getAttribute();",
"@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }",
"public int getDimension() { return this.nbAttributes;}",
"public Attributes getFileAttributes()\r\n {\r\n return aFileAttributes;\r\n }",
"public String getAttrValue() {\r\n\t\treturn attrValue;\r\n\t}",
"public List<ProbeValue> getValues() {\n\treturn attributes;\n }",
"java.util.Map<java.lang.String, java.lang.String> getAttributesMap();",
"public int getNumOfAttributes() {\n\t\treturn numOfAttributes;\n\t}",
"public Object[] getAttributes() {\n\t\treturn new Object[] {true}; //true for re-init... \n\t}",
"@Override\n\tpublic IAttributeValue value() { return value; }",
"@Override\n\tpublic AttributeMap getAttributes() {\n\t\treturn defaultEdgle.getAttributes();\n\t}",
"@Override\r\n\t\tpublic boolean hasAttributes()\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}",
"public ArrayList<Attribute> getAttributeList(){\n\t\treturn child.getAttributeList();\n\t}",
"public String getAttr() {\n return attr;\n }",
"public Collection<HbAttributeInternal> attributes();",
"@Override\n public synchronized Set<AttributeType> getAttributes() {\n return attributes = nonNullSet(attributes, AttributeType.class);\n }",
"ArrayList getAttributes();",
"public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }",
"public Map<TextAttribute,?> getAttributes(){\n return (Map<TextAttribute,?>)getRequestedAttributes().clone();\n }",
"public Map<String, Map<String, String>> getUserAttributes() {\n return m_userAttributes;\n }",
"public List<Attribute> getAttribute() {\n\t if (attribute==null) {\n\t attribute = new ArrayList<>();\n\t }\n\n\t return attribute;\n\t}",
"BidiMap<String, DictionarySimpleAttribute> getUnmodifiableAttributes() {\n\t\treturn UnmodifiableBidiMap.unmodifiableBidiMap(this.attributes);\n\t}",
"public final int referredAttributes() {\n return attributeSet().size();\n }",
"@java.lang.Override\n public google.maps.fleetengine.v1.VehicleAttribute getAttributes(int index) {\n return attributes_.get(index);\n }"
]
| [
"0.72186804",
"0.7129272",
"0.70121455",
"0.6890845",
"0.6884999",
"0.6884999",
"0.6880305",
"0.6810354",
"0.67732096",
"0.675714",
"0.669747",
"0.6607862",
"0.6599034",
"0.6574979",
"0.65617865",
"0.65462756",
"0.6532132",
"0.64971364",
"0.6445687",
"0.64292157",
"0.6427943",
"0.6408167",
"0.6403317",
"0.63561183",
"0.63501966",
"0.63408613",
"0.63408613",
"0.6334507",
"0.6331707",
"0.6323788",
"0.6300771",
"0.6300771",
"0.6300771",
"0.6265807",
"0.6244037",
"0.62116873",
"0.61738354",
"0.61730886",
"0.6150129",
"0.6140708",
"0.6125888",
"0.61244833",
"0.6112493",
"0.6095947",
"0.60789275",
"0.6058844",
"0.6051261",
"0.60419405",
"0.6032578",
"0.60270464",
"0.60190886",
"0.6008141",
"0.5993239",
"0.5992501",
"0.5984656",
"0.59788114",
"0.5975396",
"0.59646195",
"0.59426206",
"0.593617",
"0.59210783",
"0.59070957",
"0.590676",
"0.5890072",
"0.5887284",
"0.58751726",
"0.58603376",
"0.5852714",
"0.58339655",
"0.5823304",
"0.58019316",
"0.58006537",
"0.5791492",
"0.5781542",
"0.5781448",
"0.57715774",
"0.57664454",
"0.5765848",
"0.5758467",
"0.57566464",
"0.5754764",
"0.5749133",
"0.5737765",
"0.5734882",
"0.5732566",
"0.5722515",
"0.5709846",
"0.57092774",
"0.5698304",
"0.56969714",
"0.569077",
"0.56901485",
"0.56762403",
"0.56699467",
"0.5668543",
"0.5666599",
"0.56571084",
"0.56546474",
"0.5652688",
"0.56523746"
]
| 0.65453744 | 16 |
//////////////////// Focus Listener ////////////////////////// | public void focusGained(FocusEvent fe) {
//colEdScroller.getViewport().scrollRectToVisible(((JComponent)fe.getComponent()).getBounds(new Rectangle()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void addToFocusListener(FocusListener aFocusListener) {\n\n\t\t}",
"public void focusGained( FocusEvent fe) \n {\n }",
"public void focus() {}",
"private void initFocusListening() {\n addFocusListener(new FocusListener() {\n private boolean firstFocusGain = true;\n\n public void focusGained(FocusEvent e) {\n repaint();\n if (firstFocusGain) {\n \n firstFocusGain = false;\n }\n }\n \n public void focusLost(FocusEvent e) {\n repaint();\n }\n });\n }",
"@Override\n public void focusGained(FocusEvent e) {\n }",
"@Override\n public void focusGained(FocusEvent e) {\n }",
"@Override\n public void focusGained(FocusEvent e) {\n }",
"@Override\n public void focusGained(FocusEvent e) {\n }",
"@Override\r\n public void focusGained(FocusEvent e) {\n }",
"@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void focusGained(FocusEvent e) {\n\t}",
"@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\n\t\t}",
"public void Focus() {\n }",
"@Override\n public void focusGained(FocusEvent e) {\n }",
"@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}",
"public void testFocusListener() throws Exception\n {\n checkFormEventListener(FOCUS_BUILDER, \"FOCUS\");\n }",
"void focus();",
"void focus();",
"@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\n\t}",
"public void focusGained(FocusEvent e)\r\n {\r\n // TODO Auto-generated method stub\r\n\r\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\r\n\t\t\t\t\t\t\t}",
"@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}",
"void addFocus();",
"@Override\n public void focusGained(final FocusEvent e) {\n }",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\r\n\t\t}",
"public void focusGained(FocusEvent event) {}",
"public void focusGained(FocusEvent e)\r\n {\n }",
"@Override\r\n public void focusGained(FocusEvent event) {\r\n }",
"@Override\n\tpublic void focusLost(FocusEvent e)\n\t{\n\t\t\n\t}",
"@Override\r\n\tpublic void focusLost(FocusEvent e) {\n\r\n\t}",
"@Override\n\tpublic void setFocus() {\n\t\t\n\t}",
"@Override\n\tpublic void setFocus() {\n\t\t\n\t}",
"@Override\n\tpublic void setFocus() {\n\t\t\n\t}",
"@Override\n\tpublic void setFocus() {\n\t\t\n\t}",
"@Override\n\tpublic void setFocus() {\n\t\t\n\t}",
"public void addFocusListener(java.awt.event.FocusListener l) {\n // Not supported for MenuComponents\n }",
"@Override\n \t\tpublic void onFocusChange(View v, boolean hasFocus) {\n \t\t}",
"public EditText.OnFocusChangeListener getCampoCPFCNPJFocusListener() {\n return (v, hasFocus) -> {\n if (!hasFocus) {\n setMascara();\n }\n };\n }",
"@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t}",
"@Override\n\tpublic void setFocus() {\n\n\t}",
"@Override\n\tpublic void setFocus() {\n\n\t}",
"@Override\n\tpublic void setFocus() {\n\n\t}",
"@Override\n\tpublic void setFocus() {\n\n\t}",
"@Override\n\t\tpublic void focusGained(FocusEvent e) {\t\tSystem.out.println(\"Focus Gained\");\n\t\t}",
"@Override\n public void setFocus() {\n }",
"@Override\n public void focusLost(FocusEvent e) {\n }",
"@Override\n\tprotected void handleFocus (Context context, boolean focus) {\n\t\tif (focus) context.requestFocus();\n\t}",
"@Override\r\n\tpublic void setFocus() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void setFocus() {\n\r\n\t}",
"@Override\r\n\tpublic void setFocus() {\n\r\n\t}",
"@Override\r\n\tpublic void setFocus() {\n\r\n\t}",
"@Override\r\n\tpublic void setFocus() {\n\r\n\t}",
"@Override\r\n\tpublic void setFocus() {\n\r\n\t}",
"@Override\r\n\tpublic void setFocus() {\n\r\n\t}",
"@Override\r\n\tpublic void setFocus() {\n\r\n\t}",
"private void createFocusListener() {\n this.addFocusListener(new FocusAdapter() {\n @Override\n public void focusGained(FocusEvent e) {//what happens if get focused.\n JTextField source = (JTextField) e.getComponent();\n if (source.getText().equals(defaultText))//if default text is there, our program clearing it.\n source.setText(\"\");\n source.removeFocusListener(this);\n }\n });\n }",
"@Override\r\n\tpublic void setFocus() {\r\n\t}",
"public void setFocus();",
"@Override\n\t\tpublic void focusLost(FocusEvent e) {\n\t\t}",
"@Override\n\tpublic void setFocus() {\n\t}",
"public void setFocus() {\n }",
"@Override\n public void onWindowFocusChanged(boolean hasFocus) {\n }",
"void setFocus();",
"public interface FocusHierarchyListener extends FocusListener {\n\n}",
"public void focusLost(FocusEvent e) { }",
"@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F gaing\");\t\n\t\t}",
"@Override\n\tpublic void focusLost(FocusEvent e) {\n\t\tfocusGained(e);\n\t}",
"protected void onFocusGained()\n {\n ; // do nothing. \n }",
"@Override\n\tpublic void focusLost(FocusEvent arg0) {\n\t\tfocusLost = true;\n\t\t\n\t}",
"public void setFocus() {\n\t}",
"@Override\r\n public void onFocusChange(final View aView, final boolean hasFocus) {\n }",
"private void initFocusListener() {\n final FocusListener focusListener = new FocusListener() {\n public void focusGained(FocusEvent e) {\n validateInput();\n }\n public void focusLost(FocusEvent e) {\n validateInput();\n }\n };\n emailJTextField.addFocusListener(focusListener);\n usernameJTextField.addFocusListener(focusListener);\n passwordJPasswordField.addFocusListener(focusListener);\n confirmPasswordJPasswordField.addFocusListener(focusListener);\n }",
"public interface IOnFocusListenable {\n\n void onWindowFocusChanged(boolean hasFocus);\n}",
"public void focusLost(FocusEvent e)\n {\n }",
"@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t\tfocusLost = false;\n\t\t\n\t}",
"@Override\r\n\tpublic void focus() {\r\n\t\tactivate();\r\n\t\ttoFront();\r\n\t}",
"@Override\n\t\t\tpublic void onAudioFocusChange(int arg0) {\n\t\t\t}",
"interface IOnFocusListenable {\n public void onWindowFocusChanged(boolean hasFocus);\n}",
"public void focusLost(FocusEvent fe) {\n\t\tif (isVisible())\n\t\t\trequestFocus();\n\t}",
"public void setFocus() {\n \t\tex.setFocus();\n \t}",
"public boolean gotFocus(Event e, Object arg) {\n return true;\n }"
]
| [
"0.7826835",
"0.77635574",
"0.7726606",
"0.766919",
"0.7491785",
"0.7491785",
"0.7491785",
"0.7491785",
"0.7489765",
"0.74769187",
"0.74769187",
"0.7469966",
"0.74686414",
"0.74686414",
"0.74686414",
"0.7466183",
"0.7466183",
"0.746472",
"0.7462714",
"0.74610305",
"0.74610305",
"0.7423149",
"0.74078065",
"0.74078065",
"0.74032193",
"0.74032193",
"0.7392769",
"0.7392435",
"0.73867023",
"0.7355942",
"0.7355942",
"0.7355942",
"0.73540026",
"0.73440856",
"0.7342426",
"0.7342426",
"0.7342426",
"0.7342426",
"0.7342426",
"0.7342426",
"0.7342426",
"0.7335956",
"0.73274934",
"0.73274934",
"0.73274934",
"0.73035115",
"0.7283319",
"0.7280407",
"0.7280001",
"0.72694886",
"0.72676265",
"0.72676265",
"0.72676265",
"0.72676265",
"0.72676265",
"0.72423744",
"0.72289723",
"0.7222629",
"0.7213669",
"0.7209781",
"0.7209781",
"0.7209781",
"0.7209781",
"0.7196504",
"0.71759284",
"0.7170154",
"0.71689713",
"0.7161607",
"0.7150561",
"0.7150561",
"0.7150561",
"0.7150561",
"0.7150561",
"0.7150561",
"0.7150561",
"0.7148161",
"0.7147205",
"0.71404636",
"0.7122311",
"0.7113279",
"0.7109812",
"0.7103936",
"0.7095856",
"0.70828944",
"0.707495",
"0.7069284",
"0.7067138",
"0.7056166",
"0.7027293",
"0.70222926",
"0.70190376",
"0.69824725",
"0.69681615",
"0.69676363",
"0.6922538",
"0.6908405",
"0.688325",
"0.67649317",
"0.6759446",
"0.67474157",
"0.6732255"
]
| 0.0 | -1 |
Utility method to print a string representing some constants. | static final String typeToString(int type) {
switch (type) {
case (UNKNOWN): return "UNKNOWN";
case (STRING_FIELD): return "STRING_FIELD";
case (NUMERIC_FIELD): return "NUMERIC_FIELD";
case (DATE_FIELD): return "DATE_FIELD";
case (TIME_FIELD): return "TIME_FIELD";
case (DATE_TIME_FIELD): return "DATE_TIME_FIELD";
case (TIMESTAMP_FIELD): return "TIMESTAMP_FIELD";
default: return "NOT_DEFINED";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\n return super.toString() + \" (\" + constants.size() + \" constants)\";\n }",
"public String toString ()\n {\n return (\"CONSTANT_String\\t\" + \"stringIndex=\\t\" + stringIndex);\n }",
"public String toString(){\n \treturn isConstant ? \"const \" + type : \"var \" + type;\n }",
"public String toString() {\n\t\treturn \"(constant-value \" + constantValueIndex + \")\";\n\t}",
"public static void main(String[] args) {\n System.out.println(MY_CONST);\n }",
"public String print(){\r\n\t\t\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.companyName, \r\n\t\t\t\tthis.numberOfRailCars, \r\n\t\t\t\tthis.destinationCity);\r\n\t}",
"public String toString (final ConstantPoolInfo[] constantPool)\n {\n ConstantUtf8Info utf8Info = (ConstantUtf8Info) constantPool[stringIndex];\n\n return (\"CONSTANT_String=\\t\" + utf8Info.toString ());\n }",
"public static String debugString()\n {\n return\n \"ECSDefaults:\" + '\\n'\n + '\\t' + \"DefaultFilterState=\" + getDefaultFilterState() +'\\n'\n + '\\t' + \"DefaultFilterAttributeState=\" + getDefaultFilterAttributeState() +'\\n'\n + '\\t' + \"DefaultAttributeEqualitySign='\" + getDefaultAttributeEqualitySign() +\"'\\n\"\n + '\\t' + \"DefaultBeginStartModifier='\" + getDefaultBeginStartModifier() + \"'\\n\"\n + '\\t' + \"DefaultEndStartModifier='\" + getDefaultEndStartModifier() + \"'\\n\"\n + '\\t' + \"DefaultBeginEndModifier='\" + getDefaultBeginEndModifier() + \"'\\n\"\n + '\\t' + \"DefaultEndEndModifier='\" + getDefaultEndEndModifier() + \"'\\n\"\n + '\\t' + \"DefaultAttributeQuoteChar=\" + getDefaultAttributeQuoteChar() + '\\n'\n + '\\t' + \"DefaultAttributeQuote=\" + getDefaultAttributeQuote() +'\\n'\n + '\\t' + \"DefaultEndElement=\" + getDefaultEndElement() +'\\n'\n + '\\t' + \"DefaultCodeset='\" + getDefaultCodeset() + \"'\\n\"\n + '\\t' + \"DefaultPosition=\" + getDefaultPosition() +'\\n'\n + '\\t' + \"DefaultCaseType=\" + getDefaultCaseType() +'\\n'\n + '\\t' + \"DefaultStartTag='\" + getDefaultStartTag() + \"'\\n\"\n + '\\t' + \"DefaultEndTag='\" + getDefaultEndTag() + \"'\\n\"\n + '\\t' + \"DefaultPrettyPrint=\" + getDefaultPrettyPrint();\n }",
"public String print(){\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.trackNumber, \r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.numRailCars, \r\n\t\t\t\tthis.destCity);\r\n\t\t}",
"@Test\n public void printToString() {\n System.out.println(ModuleInfo.getFromModuleCode(\"CFG1010\").get());\n\n // Test module with preclusions\n System.out.println(ModuleInfo.getFromModuleCode(\"GER1000\").get());\n\n // Test module with prerequisites\n System.out.println(ModuleInfo.getFromModuleCode(\"CS2040\").get());\n }",
"private static void print(String p) {\n\t\tSystem.out.println(PREFIX + p);\n\t}",
"public void printConstants(IJml2bConfiguration config) throws LanguageException {\n\t\tstream.println(\"ABSTRACT_CONSTANTS\");\n\t\tstream.println(\"c_minint,\");\n\t\tstream.println(\"c_maxint,\");\n\t\tstream.println(\"c_minshort,\");\n\t\tstream.println(\"c_maxshort,\");\n\t\tstream.println(\"c_minbyte,\");\n\t\tstream.println(\"c_maxbyte,\");\n\t\tstream.println(\"c_minchar,\");\n\t\tstream.println(\"c_maxchar,\");\n\t\tstream.println(\"c_minlong,\");\n\t\tstream.println(\"c_maxlong,\");\n\t\tstream.println(\"t_int,\");\n\t\tstream.println(\"t_short,\");\n\t\tstream.println(\"t_byte,\");\n\t\tstream.println(\"t_char,\");\n\t\tstream.println(\"t_long,\");\n\t\tstream.println(\"j_add,\");\n\t\tstream.println(\"j_sub,\");\n\t\tstream.println(\"j_mul,\");\n\t\tstream.println(\"j_div,\");\n\t\tstream.println(\"j_rem,\");\n\t\tstream.println(\"j_neg,\");\n\t\tstream.println(\"j_shl,\");\n\t\tstream.println(\"j_shr,\");\n\t\tstream.println(\"j_ushr,\");\n\t\tstream.println(\"j_and,\");\n\t\tstream.println(\"j_or,\");\n\t\tstream.println(\"j_xor,\");\n\t\tstream.println(\"j_int2char,\");\n\t\tstream.println(\"j_int2byte,\");\n\t\tstream.println(\"j_int2short,\");\n\t\tIClass string = config.getPackage().getJavaLangString();\n\t\tif (string != null) {\n\t\t\tstream.println(\"j_string,\");\n\t\t}\n\t\tstream.println(\"null,\");\n\t\tstream.println(\"subtypes,\");\n\t\tstream.println(\"instances,\");\n\t\tstream.println(\"typeof,\");\n\t\tstream.println(\"arraylength,\");\n\t\tstream.println(\"intelements,\");\n\t\tstream.println(\"charelements,\");\n\t\tstream.println(\"shortelements,\");\n\t\tstream.println(\"byteelements,\");\n\t\tstream.println(\"booleanelements,\");\n\t\tstream.println(\"refelements,\");\n\t\tstream.println(\"flatran,\");\n\t\tstream.print(\"elemtype\");\n\t\tprintFieldTypes();\n\t\tstream.println(\"\\n\");\n\t}",
"public String toDebugString();",
"public String printFormat(){\n return \"The workout: \" + getName() + \" should be done for \" + getSets() + \" sets and in each set should be \"\n + getReps() + \" reps.\";\n }",
"public String toString() {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < symbolCodeBits.length; i++) {\n sb.append(String.format(\"Code %s: Symbol %d%n\", Integer.toBinaryString(symbolCodeBits[i]).substring(1),\n symbolValues[i]));\n }\n return sb.toString();\n }",
"public String print() {\n\t\tString offID = getID();\n\t\tString offName = getName();\n\t\tint offAge = getAge();\n\t\tString offState = getState();\n\t\tString data = String.format(\"ID: %-15s \\t Name: %-35s \\t Age: %-15s \\t State: %s\", offID, offName, offAge, offState);\n\t\treturn data;\n\t}",
"public java.lang.String toDebugString () { throw new RuntimeException(); }",
"public String print(int format);",
"public String toString() {\n\t\t\tStringBuilder sb = new StringBuilder(\"%\");\n\t\t\t// Flags.UPPERCASE is set internally for legal conversions.\n\t\t\tFlags dupFlag = flag.dup().remove(Flags.UPPERCASE);\n\t\t\tsb.append(dupFlag.toString());\n\t\t\tif (index > 0) {\n\t\t\t\tsb.append(index).append('$');\n\t\t\t}\n\t\t\tif (width != -1) {\n\t\t\t\tsb.append(width);\n\t\t\t}\n\t\t\tif (precision != -1) {\n\t\t\t\tsb.append('.').append(precision);\n\t\t\t}\n\t\t\tif (isDateConversion) {\n\t\t\t\tsb.append(flag.contains(Flags.UPPERCASE) ? 'T' : 't');\n\t\t\t}\n\t\t\tsb.append(flag.contains(Flags.UPPERCASE)\n\t\t\t\t\t? Character.toUpperCase(conversionChar) : conversionChar);\n\t\t\treturn sb.toString();\n\t\t}",
"private static String formatWithHexValue(Object constantValue, String hexValue) {\n\t\treturn Messages.format(JavaHoverMessages.JavadocHover_constantValue_hexValue, new String[] { constantValue.toString(), hexValue });\n\t}",
"public String toString(){\n\t\treturn (red + \" \" + green + \" \" + blue + \"\\n\");\n\t}",
"@Test\n public void printToString() {\n System.out.println(ModuleInfo.getFromModuleCode(\"CS1010\").get());\n }",
"protected String getToStringFormat()\n {\n return getClass().getSimpleName() + \"@\"\n + Integer.toHexString(hashCode()) + \": { \"\n + \"offset = 0x\" + Integer.toHexString(offset) + \"; \"\n + \"size = \" + size + \"; \"\n + \"%s\"\n + \"value = \" + getValue() + \"; \"\n + \"isAccessible = \" + isAccessible() + \"; \"\n + \"checksum = 0x\" + Integer.toHexString(checksum()) + \"; \"\n + \"}\";\n }",
"@Override\n\tpublic String Pretty_Prints() {\n\t\treturn \"!=\";\n\t}",
"private static void println(String message, SimpleAttributeSet settings) {print(message + \"\\n\", settings);}",
"public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\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 }",
"static void PrintVarValues(String s){\n System.out.println(s);\n }",
"public String toString ()\n\t{\n\t\tString s = \"\";\n for (Production production : productions.values()) s += production + \"\\n\";\n\t\treturn s;\n\t}",
"@Override\n public String toString() {\n\t\treturn literal;\n\t}",
"String getConstant();",
"public String print() {\n if (piece == null) {\n return String.valueOf('.');\n } else {\n return piece.print();\n }\n }",
"void Print()\n {\n int quadLabel = 1;\n String separator;\n\n System.out.println(\"CODE\");\n\n Enumeration<Quadruple> e = this.Quadruple.elements();\n e.nextElement();\n\n while (e.hasMoreElements())\n {\n Quadruple nextQuad = e.nextElement();\n String[] quadOps = nextQuad.GetOps();\n System.out.print(quadLabel + \": \" + quadOps[0]);\n for (int i = 1; i < nextQuad.GetQuadSize(); i++)\n {\n System.out.print(\" \" + quadOps[i]);\n if (i != nextQuad.GetQuadSize() - 1)\n {\n System.out.print(\",\");\n } else System.out.print(\"\");\n }\n System.out.println(\"\");\n quadLabel++;\n }\n }",
"public String shortRepr() {\n\t\treturn \"Value of some kind.\";\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn literal;\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn literal;\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn literal;\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn literal;\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn literal;\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn literal;\r\n\t}",
"public String toString()\n {\n //creates a string of the class's variables in a readable format.\n String s = String.format(\"%-14s%-3d%3s\" +lineNums.toString(), word, count,\"\");\n return s.toString();\n }",
"public static String string() {\n\t\t\tString s = \"\";\n\t\t\ts += \"Locaux :\\n\";\n\t\t\tfor(String key : locaux.keySet()) {\n\t\t\t\tIdent i = locaux.get(key);\n\t\t\t\ts += key+\", \"+i.toString()+\"\\n\";\n\t\t\t}\n\t\t\ts += \"Globaux :\\n\";\n\t\t\tfor(String key : globaux.keySet()) {\n\t\t\t\tIdent i = globaux.get(key);\n\t\t\t\ts += key+\", \"+i.toString()+\"\\n\";\n\t\t\t}\n\n\t\t\treturn s;\n\t\t}",
"public String toString() {\n\t\t\tswitch(this) {\n\t\t\tcase INSERT_BSI_RESOURCES_BASE:{\n\t\t\t\treturn \"INSERT INTO lry.aut_bsi_prc_cfg_resources(CFG_ID, RSC_NAME, RSC_DESCRIPTION, RSC_LOCATION_INPUT, RSC_LOCATION_OUTPUT, RSC_ITEM, RSC_ITEM_KEY) VALUES(?,?,?,?,?,?,?);\";\n\t\t\t}\n\t\t\tcase SELECT_ALL_BSI_RESOURCES_BASE:{\n\t\t\t\treturn \"SELECT RSC_ID FROM lry.aut_bsi_prc_cfg_resources;\";\n\t\t\t}\n\t\t\tcase SELECT_BSI_RESOURCES_BASE_BY_CFG_BASE_ID:{\n\t\t\t\treturn \"SELECT RSC_ID FROM lry.aut_bsi_prc_cfg_resources WHERE CFG_ID=?;\";\n\t\t\t}\n\t\t\tdefault:{\n\t\t\t\treturn this.name();\n\t\t\t}\n\t\t\t}\n\t\t}",
"public void printString() {\n\t\tSystem.out.println(name);\n\t\t\n\t\t\n\t}",
"java.lang.String getConstantValue();",
"@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}",
"@Override\r\n public String toString() {\r\n return literal;\r\n }",
"public String toString()\n {\n String str = \"\";\n switch (align)\n {\n case LEFT :\n str = \",align=left\";\n break;\n case CENTER :\n str = \",align=center\";\n break;\n case RIGHT :\n str = \",align=right\";\n break;\n }\n return getClass().getName() + \"[hgap=\" + hgap + \",vgap=\" + vgap + str + \"]\";\n }",
"public void printString()\r\n\t{\r\n\t\t//print the column labels\r\n\t\tSystem.out.printf(\"%-20s %s\\n\", \"Word\", \"Occurrences [form: (Paragraph#, Line#)]\");\r\n\t\tSystem.out.printf(\"%-20s %s\\n\", \"----\", \"-----------\");\r\n\t\troot.printString();\r\n\t}",
"public String toString() {\n\n\t\treturn Utilities.cutHeadAtLast(this.getClass().getName(), '.');\n\t}",
"@Override\n public String toString() {\n return literal;\n }",
"String constant();",
"@GwtIncompatible(\"String.format()\")\n/* */ public String toString() {\n/* 171 */ return toString(4);\n/* */ }",
"public String toString() {\n\t\treturn (\"Debug: \" + booleanToString(debugMode)\n\t\t\t\t+ \"\\nFPS: \" + booleanToString(fpsDisplay)\n\t\t\t\t+ \"\\nDecals: \" + booleanToString(decalsEnabled)\n\t\t\t\t+ \"\\nDecal Limiter: \" + booleanToString(decalLimitEnabled)\n\t\t\t\t+ \"\\nSound: \" + booleanToString(soundEnabled)\n\t\t\t\t+ \"\\nSound-Ambience: \" + booleanToString(soundAmbience)\n\t\t\t\t+ \"\\nSound-Shotgun: \" + booleanToString(soundShot)\n\t\t\t\t+ \"\\nSound-Duck: \" + booleanToString(soundDuck));\n\t}",
"@Override\n public String toString()\n {\n return literal;\n }",
"@Override\n public String toString()\n {\n return literal;\n }",
"@Override\n public String toString()\n {\n return literal;\n }",
"@Override\n public String toString()\n {\n return literal;\n }",
"@Override\n\tpublic String toString() {\n\t\tString out = \"\";\n\t\tfor (Literal s : literals) {\n\t\t\tout = out + \" (\"+ s.getLiteral()+\" \"+((s.getArithmetic_value()==null)?s.isLiteral_positivity():s.getArithmetic_value())+\") \";\n\t\t}\n\t\treturn out;\n\t}",
"public void println() { System.out.println( toString() ); }",
"public String toDisplayString() {\r\n String ret = null;\r\n try {\r\n ret = this.toString(\"DMY.\");\r\n } catch (Exception ex) {/* Exception kann nicht auftreten */\r\n }\r\n return ret;\r\n }",
"public String toString(){\n\t\treturn \"predefinedPeriod:\" + getPredefinedPeriod().getType().getName() + \n\t\t\t\t\"productiveTime:\" + getProductiveTime() + \"qtySchedToProduce:\" + \n\t\t\t\t getQtySchedToProduce() + \"qtyProduced:\" + getQtyProduced() \n\t\t\t\t + \"qtyDefective:\" + getQtyDefective(); \n \t\t\n\t}",
"public String printAttributes() {\n checkNotUnknown();\n StringBuilder b = new StringBuilder();\n if (hasDontDelete()) {\n b.append(\"(DontDelete\");\n if (isMaybeDontDelete())\n b.append(\"+\");\n if (isMaybeNotDontDelete())\n b.append(\"-\");\n b.append(\")\");\n }\n if (hasDontEnum()) {\n b.append(\"(DontEnum\");\n if (isMaybeDontEnum())\n b.append(\"+\");\n if (isMaybeNotDontEnum())\n b.append(\"-\");\n b.append(\")\");\n }\n if (hasReadOnly()) {\n b.append(\"(ReadOnly\");\n if (isMaybeReadOnly())\n b.append(\"+\");\n if (isMaybeNotReadOnly())\n b.append(\"-\");\n b.append(\")\");\n }\n return b.toString();\n }",
"public String toString() {\n\t\t double Fahrehgeit = this.getFahrenheit();\n\t\t double celcius = this.getCelcius();\n\t\t return Math.round(celcius)+\" celcius = \"+ Math.round(Fahrehgeit)+\" Fahrenheit\";\n\t }",
"@Override\n public String toString() {\n final Map<String, Object> augmentedToStringFields = Reflect.getStringInstanceVarEntries(this);\n augmentToStringFields(augmentedToStringFields);\n return Reflect.joinStringMap(augmentedToStringFields, this);\n }",
"public String toString()\n\t{\n\t\treturn DESCRIPTIONS[value];\n\t}",
"@Override\r\n public String print() {\r\n String attribute = \"Title of resource:\\t\" + getTitle() + \"\\n\" + \"url of resource:\\t\" + url;\r\n System.out.println(attribute);\r\n return attribute;\r\n }",
"public void print(String value){\r\n System.out.println(value);\r\n }",
"public void print() {\n print$$dsl$guidsl$guigs();\n System.out.print( \" eqn =\" + eqn );\n }",
"public String toString(){ \n\t\tString s = String.format(\"%s: %d, rating: %f, price:%f\", TITLE, YEAR_RELEASED, user_rating, getPrice());\n\t\treturn s; \n\t}",
"public static void print(Object val) {\n Builtins.print(val);\n }",
"public String constant() {\n\t\tString tmp = methodBase().replaceAll(\"([a-z])([A-Z])\",\"$1_$2\");\n\t\treturn tmp.toUpperCase();\n\t}",
"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}",
"public String toString()\n {\n int spaceLength = this.lengthToSecondCol - this.name.length();\n String space = \" \";\n String n = \" \";\n String s;\n if(showName)\n {\n n = this.name;\n while(spaceLength > 1)\n {\n spaceLength--;\n space += \" \";\n }\n }\n\n switch (this.type)\n {\n case Pwr.eType_Float32:\n case Pwr.eType_Float64:\n s = n + space + this.valueFloat;\n break;\n case Pwr.eType_UInt32:\n case Pwr.eType_UInt64:\n case Pwr.eType_Int32:\n case Pwr.eType_Int64:\n case Pwr.eType_Enum:\n case Pwr.eType_Mask:\n\n //s = n + space + this.valueInt;\n\ts = n + space + (new Integer( (this.valueInt & 65535) )).intValue();\n break;\n\n case Pwr.eType_UInt16:\n s = n + space + (new Integer( (this.valueInt & 65535) )).intValue();\n break;\n case Pwr.eType_Int8:\n case Pwr.eType_UInt8:\n s = n + space + (new Integer(this.valueInt)).byteValue();\n break;\n case Pwr.eType_Int16:\n s = n + space + (new Integer(this.valueInt)).shortValue();\n break;\n case Pwr.eType_Boolean:\n if(this.valueBoolean)\n {\n s = n + space + \"1\";\n }\n else\n {\n s = n + space + \"0\";\n }\n break;\n default:\n s = n + space + this.valueString;\n break;\n }\n return s;\n }",
"public String toString() {\n StringBuffer buffer = new StringBuffer(getClass().getName());\n\n buffer.append(\": \");\t\t\t\t//NOI18N\n buffer.append(\" name: \");\t\t\t//NOI18N\n buffer.append(getName());\n buffer.append(\", logging level: \");\t//NOI18N\n buffer.append(toString(getLevel()));\n\n return buffer.toString();\n }"
]
| [
"0.7144821",
"0.6875509",
"0.66861016",
"0.6553741",
"0.65498316",
"0.64062154",
"0.63451886",
"0.6334924",
"0.62914395",
"0.62645715",
"0.61043316",
"0.6088599",
"0.60140926",
"0.5943907",
"0.59352905",
"0.5933316",
"0.59097177",
"0.59054327",
"0.5897951",
"0.58810997",
"0.58623546",
"0.586027",
"0.5857334",
"0.5849581",
"0.5838236",
"0.5828507",
"0.5823157",
"0.5798927",
"0.57986367",
"0.57963175",
"0.5795797",
"0.57954365",
"0.579267",
"0.57739764",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.57716197",
"0.5763621",
"0.5763621",
"0.5763621",
"0.5763621",
"0.5763621",
"0.5763621",
"0.5761255",
"0.57572347",
"0.57342005",
"0.57326686",
"0.5730834",
"0.5726927",
"0.57239836",
"0.57193005",
"0.5711024",
"0.57049125",
"0.57019067",
"0.56840575",
"0.5680677",
"0.5677549",
"0.5674329",
"0.5674329",
"0.5674329",
"0.5674329",
"0.56728476",
"0.5668052",
"0.56661755",
"0.56649846",
"0.56606936",
"0.56542224",
"0.5648053",
"0.5646165",
"0.5641198",
"0.5632941",
"0.5631101",
"0.5627295",
"0.5626278",
"0.5623623",
"0.5623528",
"0.56145287",
"0.5606002"
]
| 0.0 | -1 |
///////////////////////// Abstract Methods ////////////////////////// | protected abstract JToolBar getNorthToolbar(); | {
"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 protected void prot() {\n }",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public AbstractGenerateurAbstractSeule() {\r\n\t\tsuper();\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 protected void init() {\n }",
"protected abstract Set method_1559();",
"@Override\n void init() {\n }",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"public abstract String use();",
"public abstract void operation();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"public abstract void mo56925d();",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void init() {}",
"protected abstract String name ();",
"@Override\n public void get() {}",
"protected abstract T self();",
"protected abstract T self();",
"protected abstract T self();",
"abstract void method();",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"protected abstract void construct();",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"protected abstract Self self();",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public void setupAbstract() {\n \r\n }",
"protected abstract void retrievedata();",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"public abstract void mo35054b();",
"@Override\n\tprotected void initialize() {\n\n\t}",
"protected abstract void work();",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"abstract public T getInfo();",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public abstract void mo27386d();",
"public void init() {\r\n\t\t// to override\r\n\t}",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"public abstract void mo30696a();",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"public abstract void comes();",
"@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\tprotected void initData() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public abstract Object mo1771a();",
"protected void init() {\n // to override and use this method\n }",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"abstract int pregnancy();",
"public abstract void mo27385c();",
"public abstract void mo957b();",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}"
]
| [
"0.67888564",
"0.6622722",
"0.66171616",
"0.6569455",
"0.65059644",
"0.6481421",
"0.6481421",
"0.64472324",
"0.6366371",
"0.6366371",
"0.6344823",
"0.6314007",
"0.6311458",
"0.629525",
"0.629431",
"0.62655073",
"0.62423867",
"0.62416977",
"0.62189484",
"0.6205208",
"0.6205208",
"0.6205208",
"0.6205208",
"0.6205208",
"0.6205208",
"0.61864024",
"0.61675054",
"0.6166032",
"0.6163603",
"0.6163603",
"0.6157114",
"0.61189693",
"0.61086535",
"0.61076623",
"0.61002815",
"0.60724473",
"0.6058494",
"0.60564053",
"0.60533327",
"0.60491973",
"0.6043173",
"0.6036725",
"0.6034754",
"0.6029977",
"0.60169125",
"0.600163",
"0.59911764",
"0.5977501",
"0.5974028",
"0.59545296",
"0.5944422",
"0.5943009",
"0.5940263",
"0.5929503",
"0.5927804",
"0.5927752",
"0.592079",
"0.592079",
"0.592079",
"0.59168094",
"0.5905905",
"0.5904083",
"0.5901765",
"0.5896371",
"0.5895058",
"0.5893981",
"0.58895165",
"0.58877045",
"0.5881973",
"0.5875436",
"0.5872202",
"0.5872202",
"0.5856452",
"0.5850145",
"0.58457935",
"0.5844501",
"0.5843127",
"0.5839195",
"0.58391255",
"0.5839098",
"0.58365077",
"0.58299565",
"0.58292645",
"0.58266735",
"0.5825915",
"0.5814459",
"0.5809806",
"0.5809806",
"0.5806374",
"0.5799125",
"0.5799068",
"0.5799068",
"0.57964826",
"0.57918805",
"0.57908547",
"0.57887214",
"0.5780349",
"0.5779706",
"0.57771844",
"0.5776329",
"0.5776329"
]
| 0.0 | -1 |
Created by ROGK on 2017/11/1. | public interface UserOperationDao{
void saveOperation(@Param(value = "operation") UserOperation operation);
} | {
"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}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n void init() {\n }",
"@Override\n public void init() {\n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private void poetries() {\n\n\t}",
"@Override\n protected void getExras() {\n }",
"private void init() {\n\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\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 protected void initialize() {\n }",
"public void mo38117a() {\n }",
"public void gored() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \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() {}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public void mo4359a() {\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}",
"@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 protected void init() {\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() {}",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n public void initialize() { \n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"private void m50366E() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"Petunia() {\r\n\t\t}",
"private void init() {\n\n\n\n }",
"@Override\n public void init() {\n }",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"protected boolean func_70814_o() { return true; }",
"@Override\n public void initialize() {\n \n }"
]
| [
"0.60998625",
"0.591346",
"0.58770263",
"0.5841905",
"0.5784381",
"0.5784381",
"0.5777361",
"0.57472414",
"0.57290065",
"0.5688932",
"0.5657389",
"0.56426835",
"0.563535",
"0.5634061",
"0.56339306",
"0.56307405",
"0.5624264",
"0.56197536",
"0.56197476",
"0.56167156",
"0.56136495",
"0.56136495",
"0.56136495",
"0.56136495",
"0.56136495",
"0.5611006",
"0.56104183",
"0.5609093",
"0.55834293",
"0.5577945",
"0.55688936",
"0.5554437",
"0.5547808",
"0.5533854",
"0.5533175",
"0.5533175",
"0.5528542",
"0.5528542",
"0.5528542",
"0.5528542",
"0.5528542",
"0.5528542",
"0.5524561",
"0.55227154",
"0.55192477",
"0.55163276",
"0.55163276",
"0.55163276",
"0.55135673",
"0.5513291",
"0.5511224",
"0.55074304",
"0.55074304",
"0.5489705",
"0.54867655",
"0.54821885",
"0.54821885",
"0.54821885",
"0.547667",
"0.547667",
"0.547667",
"0.5472367",
"0.54653376",
"0.54653376",
"0.5463943",
"0.54570204",
"0.54554",
"0.543957",
"0.5436596",
"0.54127383",
"0.5409623",
"0.54086876",
"0.54070914",
"0.5406061",
"0.53995615",
"0.53950554",
"0.5388561",
"0.5376708",
"0.5376446",
"0.5373022",
"0.5373022",
"0.5373022",
"0.5373022",
"0.5373022",
"0.5373022",
"0.5373022",
"0.5363866",
"0.5348912",
"0.53436804",
"0.53297806",
"0.5326349",
"0.53189725",
"0.53185284",
"0.530756",
"0.5303084",
"0.53007036",
"0.52907383",
"0.52907383",
"0.52907383",
"0.5288447",
"0.5287476"
]
| 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jButton4 = new javax.swing.JButton();
btnBorrar = new javax.swing.JButton();
cbOpciones = new javax.swing.JComboBox<>();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jSeparator1 = new javax.swing.JSeparator();
btnSalir = new javax.swing.JButton();
PoliUser = new javax.swing.JLabel();
jLabelPoli2 = new javax.swing.JLabel();
txtPol2 = new javax.swing.JTextField();
jLabelPoliAux = new javax.swing.JLabel();
txtPolAux = new javax.swing.JTextField();
btnAccion = new javax.swing.JButton();
Resultado = new javax.swing.JLabel();
jSeparator3 = new javax.swing.JSeparator();
ResultadoFin = new javax.swing.JLabel();
PoliUser2 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea = new javax.swing.JTextArea();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jButton4.setText("jButton1");
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setResizable(false);
btnBorrar.setText("Examinar...");
btnBorrar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnBorrarActionPerformed(evt);
}
});
cbOpciones.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Seleccione...", "Evaluar P(c)", "Suma", "Multiplicación", "Es factor (x-c)", "1ra Derivada", "n-ma Derivada", "Antiderivada", "Integral definida" }));
cbOpciones.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cbOpcionesActionPerformed(evt);
}
});
jLabel1.setText("Polinomios");
jLabel2.setText("Ingrese Polinomio");
btnSalir.setText("Salir");
PoliUser.setText("Polinomio Usuario");
jLabelPoli2.setText("Ingrese Polinomio");
txtPol2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
txtPol2ActionPerformed(evt);
}
});
jLabelPoliAux.setText("Ingrese auxiliar");
btnAccion.setText("Acción");
Resultado.setText("Resultado");
ResultadoFin.setText("Resultado: ");
PoliUser2.setText("2do Polinomio del Usuario");
jTextArea.setColumns(20);
jTextArea.setRows(5);
jTextArea.setText("*A la hora de ingresar un polinomio debe tener en cuenta que:\n - El String “-3.1x5 - .5x3 - 3x2 + 5x” representa al polinomio −3.1x^5 − 0.5x^3 − 3x^2 + 5x^1\n - Los Strings “x8 - 1”, “+x8 - 1”, “1x8 - 1”, “+1x8 - 1” representan al polinomio x^8 − 1\n - El String “” generará, de forma alternativa, al polinomio cero\n");
jScrollPane1.setViewportView(jTextArea);
jLabel3.setText("jLabel3");
jLabel4.setText("jLabel4");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jSeparator3))
.addContainerGap())
.addGroup(layout.createSequentialGroup()
.addGap(53, 53, 53)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabelPoliAux, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(txtPolAux, javax.swing.GroupLayout.PREFERRED_SIZE, 390, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(362, 362, 362)
.addComponent(jLabel1))
.addGroup(layout.createSequentialGroup()
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 640, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 149, Short.MAX_VALUE)
.addComponent(btnSalir))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabelPoli2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(txtPol2, javax.swing.GroupLayout.PREFERRED_SIZE, 282, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(ResultadoFin)
.addGap(55, 55, 55)
.addComponent(Resultado)))
.addContainerGap())
.addGroup(layout.createSequentialGroup()
.addComponent(PoliUser)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btnAccion)
.addGap(24, 24, 24))
.addGroup(layout.createSequentialGroup()
.addComponent(PoliUser2)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addGroup(layout.createSequentialGroup()
.addGap(63, 63, 63)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(24, 24, 24)
.addComponent(jLabel3))
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 446, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btnBorrar)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(cbOpciones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(100, 100, 100))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel2)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 9, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(btnBorrar)
.addComponent(cbOpciones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 9, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(btnAccion)
.addComponent(PoliUser))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(PoliUser2)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(98, 98, 98)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(ResultadoFin)
.addComponent(Resultado))
.addGap(13, 13, 13)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabelPoli2)
.addComponent(txtPol2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabelPoliAux)
.addComponent(txtPolAux, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btnSalir)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public Oddeven() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Magasin() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
]
| [
"0.73208135",
"0.7291972",
"0.7291972",
"0.7291972",
"0.7287118",
"0.72494483",
"0.7214677",
"0.72086734",
"0.7197058",
"0.71912485",
"0.7185818",
"0.71596724",
"0.71489036",
"0.7094215",
"0.7082007",
"0.70579666",
"0.6988024",
"0.6978225",
"0.6955616",
"0.6955434",
"0.69458616",
"0.69446844",
"0.6937443",
"0.69325924",
"0.69280547",
"0.69266534",
"0.69264925",
"0.6912501",
"0.6911917",
"0.6894212",
"0.6893167",
"0.68922186",
"0.6892184",
"0.6890009",
"0.688444",
"0.6883334",
"0.68823224",
"0.6879555",
"0.68768615",
"0.6875667",
"0.68722147",
"0.6860655",
"0.68569547",
"0.6856804",
"0.6856167",
"0.6855431",
"0.6854634",
"0.68536645",
"0.68536645",
"0.684493",
"0.6837617",
"0.68372554",
"0.68303156",
"0.6828861",
"0.6827668",
"0.68246883",
"0.68245596",
"0.6818436",
"0.6818284",
"0.6812057",
"0.681017",
"0.68095857",
"0.68093693",
"0.6809163",
"0.68027467",
"0.67963576",
"0.6794979",
"0.6793972",
"0.6792247",
"0.67903155",
"0.67896885",
"0.67893314",
"0.6783135",
"0.6767654",
"0.67672074",
"0.67655265",
"0.6757984",
"0.6757062",
"0.6754005",
"0.67513984",
"0.674334",
"0.6740801",
"0.6737678",
"0.6737453",
"0.6734575",
"0.67281",
"0.6727845",
"0.67219335",
"0.67169774",
"0.67163646",
"0.6715783",
"0.67106164",
"0.6708574",
"0.6705358",
"0.67030907",
"0.6701408",
"0.6700769",
"0.66998196",
"0.6695165",
"0.66917574",
"0.6691252"
]
| 0.0 | -1 |
Created by mohamed on 23/04/18. | public interface ILoginView {
void onLoginSuccess(String message);
void onLoginError(String message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public final void mo51373a() {\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}",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\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\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"private static void cajas() {\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 rozmnozovat() {\n\t}",
"private void init() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"private void m50366E() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"public void mo4359a() {\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}",
"@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 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\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 protected void init() {\n }",
"@Override\n void init() {\n }",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void init() {}",
"@Override\r\n\tpublic void anularFact() {\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 protected void getExras() {\n }",
"private void kk12() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"private void strin() {\n\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"public void method_4270() {}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n public void initialize() { \n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"private void init() {\n\n\n\n }",
"public void mo21877s() {\n }",
"@Override\n public void init() {\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}"
]
| [
"0.5986146",
"0.5950038",
"0.5906233",
"0.58987457",
"0.5778694",
"0.5768805",
"0.57559586",
"0.57559586",
"0.56966764",
"0.5693241",
"0.568725",
"0.56852007",
"0.5683547",
"0.5676234",
"0.5659886",
"0.5659886",
"0.5659886",
"0.5659886",
"0.5659886",
"0.5659869",
"0.5646996",
"0.56333315",
"0.5631072",
"0.5629238",
"0.5612388",
"0.5603077",
"0.5599088",
"0.5597641",
"0.5589965",
"0.5572323",
"0.5564963",
"0.5564963",
"0.5550457",
"0.5549135",
"0.5540532",
"0.5530896",
"0.5522847",
"0.5519442",
"0.5519437",
"0.5515755",
"0.5513983",
"0.5508765",
"0.5508765",
"0.5508765",
"0.55054283",
"0.55054283",
"0.55054283",
"0.55016124",
"0.55016124",
"0.55016124",
"0.5497691",
"0.5497691",
"0.54976755",
"0.549698",
"0.5496721",
"0.549457",
"0.54862833",
"0.5485538",
"0.54842377",
"0.54842377",
"0.54842377",
"0.54842377",
"0.54842377",
"0.54842377",
"0.5480757",
"0.54784954",
"0.54673904",
"0.54673904",
"0.5459485",
"0.54539275",
"0.54479426",
"0.54372954",
"0.5436987",
"0.5420249",
"0.54182667",
"0.5415345",
"0.5408414",
"0.5406417",
"0.53923225",
"0.53788817",
"0.53788817",
"0.53788817",
"0.53788817",
"0.53788817",
"0.53788817",
"0.53788817",
"0.5371402",
"0.53702706",
"0.536089",
"0.53575534",
"0.5350379",
"0.5341099",
"0.5341099",
"0.534041",
"0.53271276",
"0.53247714",
"0.5308833",
"0.53005993",
"0.5291588",
"0.5291112",
"0.52870727"
]
| 0.0 | -1 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof ReservationDetail)) {
return false;
}
ReservationDetail other = (ReservationDetail) object;
if ((this.reservationDetailPK == null && other.reservationDetailPK != null) || (this.reservationDetailPK != null && !this.reservationDetailPK.equals(other.reservationDetailPK))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public int getId(){ return id; }",
"public int getId() {return id;}",
"public int getId() {return Id;}",
"public int getId(){return id;}",
"public void setId(long id) {\n id_ = id;\n }",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"public Integer getId(){return id;}",
"public int id() {return id;}",
"public long getId(){return this.id;}",
"public int getId(){\r\n return this.id;\r\n }",
"@Override public String getID() { return id;}",
"public Long id() { return this.id; }",
"public Integer getId() { return id; }",
"@Override\n\tpublic Integer getId() {\n return id;\n }",
"@Override\n public Long getId () {\n return id;\n }",
"@Override\n public long getId() {\n return id;\n }",
"public Long getId() {return id;}",
"public Long getId() {return id;}",
"public String getId(){return id;}",
"@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}",
"public Integer getId() { return this.id; }",
"@Override\r\n public int getId() {\n return id;\r\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public int getId() {\n return id;\n }",
"public long getId() { return _id; }",
"public int getId() {\n/* 35 */ return this.id;\n/* */ }",
"public long getId() { return id; }",
"public long getId() { return id; }",
"public void setId(Long id) \n {\n this.id = id;\n }",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"public void setId(String id) {\n this.id = id;\n }",
"@Override\n\tpublic void setId(Long id) {\n\t}",
"public Long getId() {\n return id;\n }",
"public long getId() { return this.id; }",
"public int getId()\n {\n return id;\n }",
"public void setId(int id){\r\n this.id = id;\r\n }",
"@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}",
"protected abstract String getId();",
"@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}",
"public int getID() {return id;}",
"public int getID() {return id;}",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public int getId ()\r\n {\r\n return id;\r\n }",
"@Override\n public int getField(int id) {\n return 0;\n }",
"public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }",
"public int getId(){\r\n return localId;\r\n }",
"void setId(int id) {\n this.id = id;\n }",
"@Override\n public Integer getId() {\n return id;\n }",
"@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"@Override\n public int getId() {\n return id;\n }",
"@Override\n public int getId() {\n return id;\n }",
"public void setId(int id)\n {\n this.id=id;\n }",
"@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }",
"@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}",
"public int getId()\r\n {\r\n return id;\r\n }",
"public void setId(Long id){\n this.id = id;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"final protected int getId() {\n\t\treturn id;\n\t}",
"public abstract Long getId();",
"public void setId(Long id) \r\n {\r\n this.id = id;\r\n }",
"@Override\n public long getId() {\n return this.id;\n }",
"public String getId(){ return id.get(); }",
"@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }",
"public Long getId() \n {\n return id;\n }",
"@Override\n\tpublic void setId(int id) {\n\n\t}",
"public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }",
"@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}",
"public int getID(){\n return id;\n }",
"public int getId()\n {\n return id;\n }",
"public String getID(){\n return Id;\n }"
]
| [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.6477893",
"0.6426692",
"0.6418966",
"0.6416817",
"0.6401561",
"0.63664836",
"0.63549376",
"0.63515353",
"0.6347672",
"0.6324549",
"0.6319196",
"0.6301484",
"0.62935394",
"0.62935394",
"0.62832105",
"0.62710917",
"0.62661785",
"0.6265274",
"0.6261401",
"0.6259253",
"0.62559646",
"0.6251244",
"0.6247282",
"0.6247282",
"0.6245526",
"0.6238957",
"0.6238957",
"0.6232451",
"0.62247443",
"0.6220427",
"0.6219304",
"0.6211484",
"0.620991",
"0.62023336",
"0.62010616",
"0.6192621",
"0.61895776",
"0.61895776",
"0.61893976",
"0.61893976",
"0.61893976",
"0.6184292",
"0.618331",
"0.61754644",
"0.6173718",
"0.6168409",
"0.6166131",
"0.6161708",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.61556244",
"0.61556244",
"0.61430943",
"0.61340135",
"0.6128617",
"0.6127841",
"0.61065215",
"0.61043483",
"0.61043483",
"0.6103568",
"0.61028486",
"0.61017346",
"0.6101399",
"0.6098963",
"0.6094214",
"0.6094",
"0.6093529",
"0.6093529",
"0.6091623",
"0.60896",
"0.6076881",
"0.60723215",
"0.6071593",
"0.6070138",
"0.6069936",
"0.6069529"
]
| 0.0 | -1 |
Get the command that must be executed by a player to use the response type. | @Localized
public String getCommandName() {
return NucLang.get(_commandName).toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public network.message.PlayerResponses.Command getCommand() {\n if (responseCase_ == 2) {\n return (network.message.PlayerResponses.Command) response_;\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n }",
"public network.message.PlayerResponses.Command getCommand() {\n if (commandBuilder_ == null) {\n if (responseCase_ == 2) {\n return (network.message.PlayerResponses.Command) response_;\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n } else {\n if (responseCase_ == 2) {\n return commandBuilder_.getMessage();\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n }\n }",
"network.message.PlayerResponses.Command getCommand();",
"public network.message.PlayerResponses.CommandOrBuilder getCommandOrBuilder() {\n if (responseCase_ == 2) {\n return (network.message.PlayerResponses.Command) response_;\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n }",
"public network.message.PlayerResponses.CommandOrBuilder getCommandOrBuilder() {\n if ((responseCase_ == 2) && (commandBuilder_ != null)) {\n return commandBuilder_.getMessageOrBuilder();\n } else {\n if (responseCase_ == 2) {\n return (network.message.PlayerResponses.Command) response_;\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n }\n }",
"network.message.PlayerResponses.CommandOrBuilder getCommandOrBuilder();",
"public Command commandType() {\r\n if (command.startsWith(\"push\")) {\r\n return Command.C_PUSH;\r\n } else if (command.startsWith(\"pop\")) {\r\n return Command.C_POP;\r\n } else if (isArithmeticCmd()) {\r\n return Command.C_ARITHMETIC;\r\n } else if (command.startsWith(\"label\")) {\r\n return Command.C_LABEL;\r\n } else if (command.startsWith(\"goto\")) {\r\n return Command.C_GOTO;\r\n } else if (command.startsWith(\"if-goto\")) {\r\n return Command.C_IF;\r\n } else if (command.startsWith(\"function\")) {\r\n return Command.C_FUNCTION;\r\n } else if (command.startsWith(\"call\")) {\r\n return Command.C_CALL;\r\n } else if (command.startsWith(\"return\")) {\r\n return Command.C_RETURN;\r\n } else {\r\n return null;\r\n }\r\n }",
"Optional<String> command();",
"java.lang.String getCommand();",
"public String getCommand() {\n String command = \"\";\n switch (turnCount) {\n case 0:\n command = \"NAME Bot0\";\n break;\n case 1:\n command = \"PASS\";\n break;\n case 2:\n command = \"HELP\";\n break;\n case 3:\n command = \"SCORE\";\n break;\n case 4:\n command = \"POOL\";\n break;\n default:\n command = \"H8 A AN\";\n break;\n }\n turnCount++;\n return command;\n }",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\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 command_ = s;\n }\n return s;\n }\n }",
"public String getCommand() { return command; }",
"String getCommand();",
"public String getCommand(){\n return getCommand(null);\n }",
"@Override\n public Command getCommand(Request req) {\n return UnexecutableCommand.INSTANCE;\n }",
"public int getCommand() {\n return command_;\n }",
"private com.google.protobuf.SingleFieldBuilder<\n network.message.PlayerResponses.Command, network.message.PlayerResponses.Command.Builder, network.message.PlayerResponses.CommandOrBuilder> \n getCommandFieldBuilder() {\n if (commandBuilder_ == null) {\n if (!(responseCase_ == 2)) {\n response_ = network.message.PlayerResponses.Command.getDefaultInstance();\n }\n commandBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n network.message.PlayerResponses.Command, network.message.PlayerResponses.Command.Builder, network.message.PlayerResponses.CommandOrBuilder>(\n (network.message.PlayerResponses.Command) response_,\n getParentForChildren(),\n isClean());\n response_ = null;\n }\n responseCase_ = 2;\n onChanged();;\n return commandBuilder_;\n }",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n command_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}",
"public String getCommand() {\r\n return command;\r\n }",
"public abstract String getCommand();",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.LoadCommandType getCommandType();",
"public int getCommand() {\n return command_;\n }",
"int getCommand();",
"public java.lang.CharSequence getResponseType() {\n return ResponseType;\n }",
"public String getCommand() {\n return command;\n }",
"public String getCommand() {\n return command;\n }",
"public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}",
"ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;",
"public String \n getCommand() \n {\n return pCommand;\n }",
"public CommandType commandType() {\n // Logik: Deal with the specific types first, then assume that whatever's left is arithmetic\n\n // Default case\n CommandType type = CommandType.C_ARITHMETIC;\n // Deal with instruction\n switch (instructionChunks[0]) {\n case \"push\":\n type = CommandType.C_PUSH;\n break;\n case \"pop\":\n type = CommandType.C_POP;\n }\n return type;\n }",
"public EventType getCommand(){\n return this.command;\n }",
"public String getCommandReturned() {\n return commandReturned;\n }",
"public String getCommand(){\n return command;\n }",
"public int getCommand() {\r\n\t\tif(this.command == null){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn this.command.ordinal();\r\n\t}",
"public String getCommandType() {\n return commandType;\n }",
"public String getCommandName() {\n try {\n if (command != null) {\n if (command.has(GnsProtocol.COMMANDNAME)) {\n return command.getString(GnsProtocol.COMMANDNAME);\n }\n }\n } catch (JSONException e) {\n // Just ignore it\n }\n return \"unknown\";\n }",
"pb4server.WorldChatAskReq getWorldChatAskReq();",
"public Pit getCommandPit();",
"public java.lang.CharSequence getResponseType() {\n return ResponseType;\n }",
"public String getCommand() {\n return this.command;\n }",
"public String getCommand() {\n\n return command;\n }",
"public static CommandEnum getCommand(String theString) {\n return validCommands.get(theString);\n }",
"@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}",
"int getCmd();",
"public String getCommand() {\n if (words.length == 0) {\n return NO_INPUT;\n }\n return words[0].toLowerCase();\n }",
"@Override\n public final Command getCommand() {\n return commandIdentifier;\n }",
"public ProtocolCommandSupport getCommandSupport() {\n return this._commandSupport_;\n }",
"public Builder setCommand(network.message.PlayerResponses.Command value) {\n if (commandBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n commandBuilder_.setMessage(value);\n }\n responseCase_ = 2;\n return this;\n }",
"public int getCommand()\n\t{\n\t\treturn this.command;\n\t}",
"public ZserioType getResponseType()\n {\n return responseType;\n }",
"private void extractCommand() throws IllegalCommandException {\n if (userInput.contentEquals(COMMAND_WORD_BYE)) {\n commandType = CommandType.BYE;\n } else if (userInput.startsWith(COMMAND_WORD_LIST)) {\n commandType = CommandType.LIST;\n } else if (userInput.startsWith(COMMAND_WORD_DONE)) {\n commandType = CommandType.DONE;\n } else if (userInput.startsWith(COMMAND_WORD_TODO)) {\n commandType = CommandType.TODO;\n } else if (userInput.startsWith(COMMAND_WORD_DEADLINE)) {\n commandType = CommandType.DEADLINE;\n } else if (userInput.startsWith(COMMAND_WORD_EVENT)) {\n commandType = CommandType.EVENT;\n } else if (userInput.startsWith(COMMAND_WORD_DELETE)) {\n commandType = CommandType.DELETE;\n } else if (userInput.startsWith(COMMAND_WORD_FIND)) {\n commandType = CommandType.FIND;\n } else if (userInput.contentEquals(COMMAND_WORD_HELP)) {\n commandType = CommandType.HELP;\n } else {\n throw new IllegalCommandException();\n }\n }",
"public String Command() {\n\treturn command;\n }",
"public CommandType parseCommand() {\n try {\n extractCommand();\n extractParameters();\n parameterData = new ParameterParser(commandType, parameters).processParameters();\n executeCommand();\n } catch (IllegalCommandException e) {\n commandUi.printInvalidCommand();\n } catch (IndexOutOfBoundsException e) {\n commandUi.printInvalidParameters();\n } catch (MissingTaskLiteralException e) {\n commandUi.printMissingLiteral(e.getMessage());\n } catch (NumberFormatException e) {\n commandUi.printTaskDoneNotInteger();\n } catch (DateTimeFormatException e) {\n commandUi.printDateTimeFormatIncorrect();\n }\n\n return commandType;\n }",
"public ICommand getCommand(HttpServletRequest request) {\n\n ICommand command = commands.get(request.getParameter(\"command\"));\n\n if (command == null) {\n command = new NoCommand();\n }\n\n return command;\n }",
"public PlayerTypes getPlayerType();",
"com.google.protobuf.ByteString\n getCommandBytes();",
"public int getResponseTypeValue() {\n return responseType_;\n }",
"protected abstract InGameServerCommand getCommandOnConfirm();",
"public Command getCommand() {\n String userInput = in.nextLine();\n String[] words = userInput.split(\" \", 2);\n try {\n return new Command(words[0].toLowerCase(), words[1]);\n } catch (ArrayIndexOutOfBoundsException e) {\n return new Command(words[0].toLowerCase(), Command.BLANK_DESCRIPTION);\n }\n }",
"public String readCommand() {\n return scanner.nextLine();\n }",
"public static Command parseCommand(String response) {\n String[] command = response.split(\" \", 10);\n switch (command[0]) {\n case \"list\":\n return new ListCommand(command);\n case \"done\":\n case \"undo\":\n return new DoneUndoCommand(command);\n case \"remove\":\n return new RemoveCommand(command);\n case \"add\":\n return new AddCommand(command, response);\n case \"bye\":\n return new ByeCommand();\n case \"help\":\n return new HelpCommand();\n case \"find\":\n return new FindCommand(command, response);\n case \"update\":\n return new UpdateCommand(command);\n default:\n System.out.println(\"Im sorry i did not catch that maybe these instructions below will help\"\n + System.lineSeparator() + Interface.lineBreak);\n return new HelpCommand();\n }\n }",
"public dynamixel_command_t getArmCommand();",
"public String getUserCommand();",
"public Object handleCommandResponse(Object response) throws RayoProtocolException;",
"public int getResponseTypeValue() {\n return responseType_;\n }",
"protected String getCommand() {\n\treturn \"GAME\";\n }",
"public interface CommandType {\n\n /** Returns unique identifier for this command type. */\n @NotNull\n String getId();\n\n /** Returns the display name of the command type. */\n @NotNull\n String getDisplayName();\n\n /** Returns the icon used to represent the command type. */\n @NotNull\n SVGResource getIcon();\n\n /** Returns the {@link CommandConfigurationPage}s that allow to configure specific command parameters. */\n @NotNull\n Collection<CommandConfigurationPage<? extends CommandConfiguration>> getConfigurationPages();\n\n /** Returns factory for {@link CommandConfiguration} instances. */\n @NotNull\n CommandConfigurationFactory<? extends CommandConfiguration> getConfigurationFactory();\n\n /** Returns command template that will be used for newly created command. */\n @NotNull\n String getCommandTemplate();\n\n /** Returns template for preview Url. */\n String getPreviewUrlTemplate();\n}",
"public Optional<ChatCommand> getCommand(final String name, final ConfigManager config) {\n final Locale locale = config.getLocale();\n final long guildID = config.getGuildID();\n //Checks if we find built in command by that name\n return this.commands.getBuiltInCommand(name, locale).or(() -> {\n //Did not find built in command, return optional from templateManager\n try {\n return this.templates.getCommand(name, guildID);\n } catch (SQLException e) {\n LOGGER.error(\"Loading templates from database failed: {}\", e.getMessage());\n LOGGER.trace(\"Stack trace: \", e);\n return Optional.empty();\n }\n });\n }",
"byte getCommand(int n) {\r\n return command_journal[n];\r\n }",
"public interface CommandResponse {\n /**\n * If command process success\n *\n * @return true success else failure\n */\n public boolean isSuccess();\n\n /**\n * Build command process result\n *\n * @return json format result data\n */\n public String build();\n}",
"static String getCommand() {\n\t\tString command;\n\t\twhile (true) {\n\t\t\tScanner sca = new Scanner(System.in);\n\t\t\tSystem.out.print(\"Enter Command: \");\n\t\t\tcommand = sca.next();\n\t\t\tif (command.equals(\"ac\") || command.equals(\"dc\") || command.equals(\"as\") || command.equals(\"ds\") || command.equals(\"p\") || command.equals(\"q\"))\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Invalid command: \" + command);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t// System.out.println(command);\n\t\treturn command;\n\t}",
"final public String getActionCommand() {\n return command;\n }",
"private Command getCommandFromConversationManager(String userInput) throws DukeException {\n conversationManager.converse(userInput);\n return conversationManager.getCommand();\n }",
"public String getUserCommand() {\n out.print(\"Enter command: \");\n String fullInputLine = in.nextLine();\n\n return fullInputLine;\n }",
"public CommandPackage getResponsePackage() {\n return responsePackage;\n }",
"public int getCmd() {\n return cmd_;\n }",
"public ServerInfo commandInterface()\n {\n return command_stub;\n }",
"public void selectResponse(String response , Player player);",
"int getResponseTypeValue();",
"public static CommandType getWord(String word){\r\n\t\treturn dictionary.get(word);\r\n\t}",
"public EncapsulatedIRCCommand getNextCommand();",
"public String getCmd() {\r\n return cmd;\r\n }",
"public Command get(String word)\n {\n return (Command)commands.get(validCommands.get(word));\n }",
"public interface PowreedCommand<Result extends PowreedCommandResultInterface> extends Comparable<PowreedCommand<Result>> {\n\n /**\n * The name of the command\n *\n * @return name of the command or sub-command\n */\n String getName();\n\n /**\n * The parameter list of command\n *\n * @return parameter list of command\n */\n List<PowreedCommandParameter> getParameters();\n\n /**\n * The description to describe the command\n *\n * @return description of command\n */\n String getDescription();\n\n /**\n * The permission which allow player to access to the command\n *\n * @return the permission as Strings\n */\n String getPermission();\n\n /**\n * The plugin of the command as an instance\n *\n * @return plugin of the command\n */\n Plugin getPlugin();\n\n /**\n * Convert to the help string by using help command\n *\n * @return the help string by using help command\n */\n default String toHelpString() {\n // Builder\n StringBuilder builder = new StringBuilder();\n // Name\n builder.append(ChatColor.RED).append(getName()).append(\" \");\n // Parameter\n Iterator<PowreedCommandParameter> iterator = this.getParameters().iterator();\n while (iterator.hasNext()) {\n PowreedCommandParameter next = iterator.next();\n\n if (next.isRequired()) {\n builder.append(ChatColor.GOLD).append(\"<\").append(next.getName()).append(\">\");\n } else {\n builder.append(ChatColor.DARK_GRAY).append(\"[\").append(next.getName()).append(\"]\");\n }\n\n if (iterator.hasNext()) {\n builder.append(\" \");\n }\n }\n // Description\n builder.append(ChatColor.RED).append(\": \").append(ChatColor.GRAY).append(getDescription());\n // Return to string\n return builder.toString();\n }\n\n /**\n * This method will be called by using\n *\n * @param sender the sender who call command\n * @param args the argument list\n * @return the result of command\n */\n Result command(@NotNull CommandSender sender, List<String> args);\n\n /**\n * Compare by the name. To order the command or something else relate to it\n *\n * @param o an another object to compare\n * @return the index of comparison related to String compare\n * @see String#compareTo(String)\n */\n @Override\n default int compareTo(@NotNull PowreedCommand o) {\n return this.getName().compareTo(o.getName());\n }\n\n /**\n * Tab executor of the command as suggestion\n *\n * @param sender the sender who tab\n * @param args the previous arguments as list\n * @return the list of suggestion\n */\n List<String> tab(CommandSender sender, List<String> args);\n}",
"public byte getCmd() {\n return this.btCmd;\n }",
"public com.google.protobuf.ByteString\n getCommandBytes() {\n java.lang.Object ref = command_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n command_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void getPlayerInput() {\n System.out.println(\"Enter a Command: \");\n playerInput = inputScanner.nextLine();\n }",
"public String getCommand() {\n\t\tString[] lines = commandLine.getText().split(\"\\n\");\n\t\treturn lines[commandLine.getLineCount() - 2];\n\t}",
"MBeanInfo getCommandDescription(String commandType);",
"public interface Command {\n\n /**\n * Executes given command, returns the results.\n *\n * <p><b>Note:</b> Command only executes by a player.</p>\n *\n * @param player Player executed command\n * @param params Passed command parameters\n * @return Command's result was executed\n */\n @NotNull\n CommandResult onCommand(@NotNull Player player, @NotNull String[] params);\n\n /**\n * Executes given command, returns the results.\n *\n * <p><b>Note:</b> Command only executes in the console.</p>\n *\n * @param console Console sender executed command\n * @param params Passed command parameters\n * @return Command's result was executed\n */\n @NotNull\n CommandResult onConsoleCommand(@NotNull ConsoleCommandSender console,\n @NotNull String[] params);\n\n /**\n * Requests a list of possible completions for a command parameters.\n *\n * <p><b>Note:</b> Request will be executed if command were executed by a player.</p>\n *\n * @param player Player executed command\n * @param params The parameters pass to the to the command, including final partial parameter to\n * be completed and command label\n * @return A result contains a list of possible completions for the final argument, or an empty\n * list to default to the command executor and string to search for.\n */\n @NotNull\n TabResult onTab(@NotNull Player player, @NotNull String[] params);\n\n /**\n * Requests a list of possible completions for a command parameters.\n *\n * <p><b>Note:</b> Request will be executed if command was executed in the console.</p>\n *\n * @param console Console sender executed command\n * @param params The parameters pass to the to the command, including final partial parameter to\n * be completed and command label\n * @return A result contains a list of possible completions for the final argument, or an empty\n * list to default to the command executor and string to search for.\n */\n @NotNull\n TabResult onConsoleTab(@NotNull ConsoleCommandSender console,\n @NotNull String[] params);\n\n /**\n * Returns parent {@link Command} of this command.\n *\n * @return Parent of this command\n * @deprecated Rename to {@link #getRoot()}\n */\n @Deprecated\n @Nullable\n Command getParent();\n\n /**\n * Returns root {@link Command} of this command.\n *\n * @return Root of this command\n */\n @Nullable\n Command getRoot();\n\n /**\n * Returns the name of this command.\n *\n * @return Name of this command\n */\n @NotNull\n String getName();\n\n /**\n * Returns the {@link PermissionWrapper} of this command\n *\n * @return The permission wrapper of this command\n */\n @NotNull\n PermissionWrapper getPermission();\n\n /**\n * Get the syntax or example usage of this command.\n *\n * @return Syntax of this command\n */\n @NotNull\n String getSyntax();\n\n /**\n * Gets a brief description of this command\n *\n * @return Description of this command\n */\n @NotNull\n String getDescription();\n\n /**\n * Returns a list of active aliases of this command, include value of {@link #getName()} method.\n *\n * @return List of aliases\n */\n @NotNull\n List<String> getAliases();\n\n String toString();\n}",
"public CommandManager getCommand() {\n\treturn command;\n }",
"public static Command getCommand(Character c) {\n\t\treturn null == commandMap.get(c) ? commandMap.get(null) : commandMap.get(c);\n\t}",
"private CommandPacket getLatestCommandPacket() {\n CommandPacket commandPacket = externalAPI.getLatestCommandPacket();\n if (commandPacket == null || (commandPacket.getCommandType() == CommandPacket.COMMAND_TYPE_FRAMEWORK && commandPacket.getOperateType() == CommandPacket.OPERATE_TYPE_INSTALL)) {\n return null;\n }\n if (commandPacket.getLiveTime() != -1\n && System.currentTimeMillis() - commandPacket.getCommandTime() > commandPacket\n .getLiveTime()) {\n return null;\n }\n return commandPacket;\n }",
"public int getCmd() {\n return cmd_;\n }",
"public CommandValue getCommand() {\n\t\treturn value;\n\t}",
"public String getGameCommands(){return \"\";}",
"public String getPlayerType() {\r\n return playerType;\r\n\t}",
"public Command getAutonomousCommand() \n {\n switch (m_autoChooser.getSelected())\n {\n case \"default\":\n return null;\n case \"test\":\n return new CommandGroupTemplate();\n case \"three_ball_forward\":\n return new AutonomousThreeBall(1, 2.0);\n case \"three_ball_backward\":\n return new AutonomousThreeBall(-1, 3.0);\n case \"six_ball\":\n return new AutonomousSixBall();\n default:\n System.out.println(\"\\nError selecting autonomous command:\\nCommand selected: \" + m_autoChooser.getSelected() + \"\\n\");\n return null;\n }\n }",
"public int getType() {\n return Command.TYPE_QUERY;\n }",
"public com.google.protobuf.ByteString\n getCommandBytes() {\n java.lang.Object ref = command_;\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 command_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }"
]
| [
"0.7696845",
"0.75515026",
"0.7536841",
"0.7382658",
"0.7166025",
"0.6918146",
"0.6555154",
"0.64659995",
"0.6463405",
"0.6286051",
"0.6262395",
"0.6260819",
"0.62527096",
"0.6219886",
"0.6195661",
"0.6167847",
"0.61482376",
"0.61377513",
"0.61129636",
"0.61047196",
"0.610165",
"0.60778636",
"0.6058762",
"0.60551256",
"0.6008418",
"0.60071695",
"0.60071695",
"0.6004848",
"0.6004064",
"0.5996148",
"0.5995997",
"0.5992402",
"0.5987032",
"0.5973736",
"0.597262",
"0.5962203",
"0.59609675",
"0.594861",
"0.5931394",
"0.5925455",
"0.5913132",
"0.58970433",
"0.5887945",
"0.588645",
"0.5880442",
"0.5850961",
"0.5836922",
"0.58352095",
"0.58204633",
"0.58185005",
"0.5815991",
"0.581043",
"0.5803102",
"0.575791",
"0.5755154",
"0.5750957",
"0.57484645",
"0.57461375",
"0.57360697",
"0.5730219",
"0.5710266",
"0.57065445",
"0.57054317",
"0.56681186",
"0.56583804",
"0.5650629",
"0.5649436",
"0.56361425",
"0.56350714",
"0.5609001",
"0.5595636",
"0.55781794",
"0.5559547",
"0.5546726",
"0.5544347",
"0.55426687",
"0.5536035",
"0.5531707",
"0.5520563",
"0.55201423",
"0.55159336",
"0.5508926",
"0.5505298",
"0.5504352",
"0.550377",
"0.54809374",
"0.5480678",
"0.54761094",
"0.5466203",
"0.5464668",
"0.5463683",
"0.546253",
"0.54594207",
"0.54538107",
"0.5452178",
"0.5447776",
"0.54476506",
"0.5442767",
"0.5437552",
"0.54374206",
"0.5437229"
]
| 0.0 | -1 |
/ Code to run when the op mode is initialized goes here | @Override public void init() {
/// Important Step 2: Get access to a list of Expansion Hub Modules to enable changing caching methods.
all_hubs_ = hardwareMap.getAll(LynxModule.class);
/// Important Step 3: Option B. Set all Expansion hubs to use the MANUAL Bulk Caching mode
for (LynxModule module : all_hubs_ ) {
switch (motor_read_mode_) {
case BULK_READ_AUTO:
module.setBulkCachingMode(LynxModule.BulkCachingMode.AUTO);
break;
case BULK_READ_MANUAL:
module.setBulkCachingMode(LynxModule.BulkCachingMode.MANUAL);
break;
case BULK_READ_OFF:
default:
module.setBulkCachingMode(LynxModule.BulkCachingMode.OFF);
break;
}
}
/// Use the hardwareMap to get the dc motors and servos by name.
motorLF_ = hardwareMap.get(DcMotorEx.class, lfName);
motorLB_ = hardwareMap.get(DcMotorEx.class, lbName);
motorRF_ = hardwareMap.get(DcMotorEx.class, rfName);
motorRB_ = hardwareMap.get(DcMotorEx.class, rbName);
motorLF_.setDirection(DcMotor.Direction.REVERSE);
motorLB_.setDirection(DcMotor.Direction.REVERSE);
// map odometry encoders
verticalLeftEncoder = hardwareMap.get(DcMotorEx.class, verticalLeftEncoderName);
verticalRightEncoder = hardwareMap.get(DcMotorEx.class, verticalRightEncoderName);
horizontalEncoder = hardwareMap.get(DcMotorEx.class, horizontalEncoderName);
if( USE_ENCODER_FOR_TELEOP ) {
motorLF_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
motorLF_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);
motorLB_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
motorLB_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);
motorRF_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
motorRF_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);
motorRB_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
motorRB_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);
verticalLeftEncoder.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);
verticalRightEncoder.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);
horizontalEncoder.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);
motorLF_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
motorLB_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
motorRF_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
motorRB_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
}
if( USE_INTAKE ) {
motor_left_intake_ = hardwareMap.get(DcMotorEx.class, "motorLeftIntake");
motor_right_intake_ = hardwareMap.get(DcMotorEx.class, "motorRightIntake");
motor_right_intake_.setDirection(DcMotor.Direction.REVERSE) ;
motor_left_intake_.setMode( DcMotor.RunMode.STOP_AND_RESET_ENCODER );
motor_left_intake_.setMode( DcMotor.RunMode.RUN_USING_ENCODER );
motor_right_intake_.setMode( DcMotor.RunMode.STOP_AND_RESET_ENCODER );
motor_right_intake_.setMode( DcMotor.RunMode.RUN_USING_ENCODER );
servo_left_intake_ = hardwareMap.servo.get("servoLeftIntake");
servo_left_intake_pos_ = CR_SERVO_STOP ;
servo_left_intake_.setPosition(CR_SERVO_STOP);
servo_right_intake_ = hardwareMap.servo.get("servoRightIntake");
servo_right_intake_pos_ = CR_SERVO_STOP ;
servo_right_intake_.setPosition(CR_SERVO_STOP);
}
if( USE_LIFT ) {
motor_lift_ = hardwareMap.get(DcMotorEx.class, "motorLift");
motor_lift_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
motor_lift_.setMode( DcMotor.RunMode.STOP_AND_RESET_ENCODER );
power_lift_ = 0.0;
if( USE_RUN_TO_POS_FOR_LIFT ) {
motor_lift_.setTargetPosition(0);
motor_lift_.setMode( DcMotor.RunMode.RUN_TO_POSITION ); // must call setTargetPosition() before switching to RUN_TO_POSISTION
} else {
motor_lift_.setMode( DcMotor.RunMode.RUN_USING_ENCODER);
}
last_stone_lift_enc_ = -1;
}
if( USE_STONE_PUSHER ) {
servo_pusher_ = hardwareMap.servo.get("servoPusher");
servo_pusher_.setPosition(PUSHER_INIT);
servo_pusher_pos_ = PUSHER_INIT;
}
if( USE_STONE_GATER ) {
servo_gater_ = hardwareMap.servo.get("servoGater");
servo_gater_.setPosition(GATER_INIT);
servo_gater_pos_ = GATER_INIT;
}
if( USE_ARM ) {
servo_arm_ = hardwareMap.servo.get("servoArm");
servo_arm_.setPosition(ARM_INIT);
servo_arm_pos_ = ARM_INIT;
servo_claw_ = hardwareMap.servo.get("servoClaw");
servo_claw_.setPosition(CLAW_OPEN);
servo_claw_pos_ = CLAW_OPEN;
}
if( USE_HOOKS ) {
servo_left_hook_ = hardwareMap.servo.get("servoLeftHook");
servo_left_hook_.setPosition(LEFT_HOOK_UP);
servo_left_hook_pos_ = LEFT_HOOK_UP;
servo_right_hook_ = hardwareMap.servo.get("servoRightHook");
servo_right_hook_.setPosition(RIGHT_HOOK_UP);
servo_right_hook_pos_ = RIGHT_HOOK_UP;
}
if( USE_PARKING_STICKS ) {
servo_left_park_ = hardwareMap.servo.get("servoLeftPark");
servo_left_park_.setPosition(LEFT_PARK_IN);
servo_left_park_pos_ = LEFT_PARK_IN;
servo_right_park_ = hardwareMap.servo.get("servoRightPark");
servo_right_park_.setPosition(RIGHT_PARK_IN);
servo_right_park_pos_ = RIGHT_PARK_IN;
}
if( USE_RGB_FOR_STONE ) {
rev_rgb_range_ = hardwareMap.get(LynxI2cColorRangeSensor.class, "stoneColor");
//rev_rgb_range_ = hardwareMap.get(LynxI2cColorRangeSensor.class, "stoneColorV3"); // different interface for V3, can't define it as LynxI2cColorRangeSensor anymore, 2020/02/29
if( rev_rgb_range_!=null ) {
if( AUTO_CALIBRATE_RGB ) {
int alpha = rev_rgb_range_.alpha();
//double dist = rev_rgb_range_.getDistance(DistanceUnit.CM);
double dist = rev_rgb_range_.getDistance(DistanceUnit.METER);
if( alpha>=MIN_RGB_ALPHA && alpha<100000 ) {
rev_rgb_alpha_init_ = alpha;
}
if( AUTO_CALIBRATE_RGB_RANGE && !Double.isNaN(dist) ) {
if( dist>MIN_RGB_RANGE_DIST && dist<MAX_RGB_RANGE_DIST ) {
rev_rgb_dist_init_ = dist;
}
}
}
}
}
if( USE_RGBV3_FOR_STONE ) {
//rgb_color_stone_ = hardwareMap.get(ColorSensor.class, "stoneColorV3");
rgb_range_stone_ = hardwareMap.get(DistanceSensor.class, "stoneColorV3");
if( AUTO_CALIBRATE_RANGE && rgb_range_stone_!=null ) {
while(true) { // wait till range sensor gets a valid reading
double dis = getRangeDist(RangeName.RGB_RANGE_STONE);
if( dis>0.0 && dis<0.2 ) {
rgb_range_stone_dist_init_ = dis;
break;
}
}
}
}
if( USE_RIGHT_RANGE ) {
range_right_ = (Rev2mDistanceSensor) (hardwareMap.get(DistanceSensor.class, "rightRange"));
if( AUTO_CALIBRATE_RANGE && range_right_!=null ) {
while(true) { // wait till range sensor gets a valid reading
double dis = getRangeDist(RangeName.RANGE_RIGHT);
if( dis>0.01 && dis<2.0 ) {
range_right_dist_init_ = dis;
break;
}
}
}
}
if( USE_LEFT_RANGE ) {
range_left_ = (Rev2mDistanceSensor) (hardwareMap.get(DistanceSensor.class, "leftRange"));
if( AUTO_CALIBRATE_RANGE && range_left_!=null ) {
while(true) { // wait till range sensor gets a valid reading
double dis = getRangeDist(RangeName.RANGE_LEFT);
if( dis>0.01 && dis<2.0 ) {
range_left_dist_init_ = dis;
break;
}
}
}
}
if( USE_RANGE_FOR_STONE) {
range_stone_ = (Rev2mDistanceSensor) (hardwareMap.get(DistanceSensor.class, "stoneRange"));
if( AUTO_CALIBRATE_RANGE && range_stone_!=null ) {
while(true) { // wait till range sensor gets a valid reading
double dis = getRangeDist(RangeName.RANGE_STONE);
if( dis>0.01 && dis<0.5 ) {
range_stone_dist_init_ = dis;
break;
}
}
}
}
if( USE_INTAKE_MAG_SWITCH ) {
intake_mag_switch_ = hardwareMap.get(DigitalChannel.class, "intake_mag_switch");
intake_mag_switch_.setMode(DigitalChannelController.Mode.INPUT);
intake_mag_prev_state_ = intake_mag_switch_.getState();
intake_mag_change_time_ = 0.0;
}
if( USE_STONE_LIMIT_SWITCH ) {
stone_limit_switch_ = hardwareMap.get(DigitalChannel.class, "stone_limit_switch");
stone_limit_switch_.setMode(DigitalChannelController.Mode.INPUT);
stone_limit_switch_prev_state_ = stone_limit_switch_.getState();
}
/////***************************** JOY STICKS *************************************/////
/// Set joystick deadzone, any value below this threshold value will be considered as 0; moved from init() to init_loop() to aovid crash
if(gamepad1!=null) gamepad1.setJoystickDeadzone( JOYSTICK_DEAD_ZONE );
if(gamepad2!=null) gamepad2.setJoystickDeadzone( JOYSTICK_DEAD_ZONE );
resetControlVariables();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public abstract void runOpMode();",
"public abstract void initMode();",
"@Override\n public void runOpMode() {\n servo0 = hardwareMap.servo.get(\"servo0\");\n servo1 = hardwareMap.servo.get(\"servo1\");\n digital0 = hardwareMap.digitalChannel.get(\"digital0\");\n motor0 = hardwareMap.dcMotor.get(\"motor0\");\n motor1 = hardwareMap.dcMotor.get(\"motor1\");\n motor0B = hardwareMap.dcMotor.get(\"motor0B\");\n motor2 = hardwareMap.dcMotor.get(\"motor2\");\n blinkin = hardwareMap.get(RevBlinkinLedDriver.class, \"blinkin\");\n motor3 = hardwareMap.dcMotor.get(\"motor3\");\n park_assist = hardwareMap.dcMotor.get(\"motor3B\");\n\n if (digital0.getState()) {\n int_done = true;\n } else {\n int_done = false;\n }\n motor_stuff();\n waitForStart();\n if (opModeIsActive()) {\n while (opModeIsActive()) {\n lancher_position();\n slow_mode();\n drive_robot();\n foundation_grabber(1);\n launcher_drive();\n data_out();\n Pickingupblockled();\n lettingoutblockled();\n Forwardled();\n backwardled();\n Turnleftled();\n Turnrightled();\n Stationaryled();\n }\n }\n }",
"public static void start(LinearOpMode opMode) {\n }",
"private cudaComputeMode()\r\n {\r\n }",
"@Override\n public void runOpMode() {\n\n robot.init(hardwareMap);\n robot.MotorRightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.MotorLeftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.MotorRightFront.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.MotorLeftFront.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n /** Wait for the game to begin */\n while (!isStarted()) {\n telemetry.addData(\"angle\", \"0\");\n telemetry.update();\n }\n\n\n }",
"@Override\n public void runOpMode() {\n initialize();\n\n //wait for user to press start\n waitForStart();\n\n if (opModeIsActive()) {\n\n // drive forward 24\"\n // turn left 90 degrees\n // turnLeft(90);\n // drive forward 20\"\n // driveForward(20);\n // turn right 90 degrees\n // turnRight(90);\n // drive forward 36\"\n // driveForward(36);\n\n }\n\n\n }",
"@Override\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Initializing. Please Wait...\");\n telemetry.update();\n\n\n //Use the Teleop initialization method\n testPaddle = hardwareMap.get(CRServo.class, \"servoPaddle\");\n\n //Tell drivers that initializing is now complete\n telemetry.setAutoClear(true);\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n runtime.reset();\n\n // run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n telemetry.addData(\"Status\", \"Run Time: \" + runtime.toString());\n\n testPaddle.setPower(0.80);\n\n telemetry.update();\n\n }\n\n }",
"public void runOpMode() {\n robot.init(hardwareMap);\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n robot.leftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n idle();\n\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n // Send telemetry message to indicate successful Encoder reset\n telemetry.addData(\"Path0\", \"Starting at %7d :%7d\",\n robot.leftMotor.getCurrentPosition(),\n robot.rightMotor.getCurrentPosition());\n telemetry.addData(\"Gyro Heading:\", \"%.4f\", getHeading());\n telemetry.update();\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n\n parameters.vuforiaLicenseKey = \"Adiq0Gb/////AAAAme76+E2WhUFamptVVqcYOs8rfAWw8b48caeMVM89dEw04s+/mRV9TqcNvLkSArWax6t5dAy9ISStJNcnGfxwxfoHQIRwFTqw9i8eNoRrlu+8X2oPIAh5RKOZZnGNM6zNOveXjb2bu8yJTQ1cMCdiydnQ/Vh1mSlku+cAsNlmfcL0b69Mt2K4AsBiBppIesOQ3JDcS3g60JeaW9p+VepTG1pLPazmeBTBBGVx471G7sYfkTO0c/W6hyw61qmR+y7GJwn/ECMmXZhhHkNJCmJQy3tgAeJMdKHp62RJqYg5ZLW0FsIh7cOPRkNjpC0GmMCMn8AbtfadVZDwn+MPiF02ZbthQN1N+NEUtURP0BWB1CmA\";\n\n\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.FRONT;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n telemetry.addData(\">\", \"Press Play to start\");\n telemetry.update();\n\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n relicTrackables.activate();\n\n //while (opModeIsActive()) {\n\n /**\n * See if any of the instances of {@link relicTemplate} are currently visible.\n * {@link RelicRecoveryVuMark} is an enum which can have the following values:\n * UNKNOWN, LEFT, CENTER, and RIGHT. When a VuMark is visible, something other than\n * UNKNOWN will be returned by {@link RelicRecoveryVuMark#from(VuforiaTrackable)}.\n */\n RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.from(relicTemplate);\n while (vuMark == RelicRecoveryVuMark.UNKNOWN) {\n vuMark = RelicRecoveryVuMark.from(relicTemplate);\n /* Found an instance of the template. In the actual game, you will probably\n * loop until this condition occurs, then move on to act accordingly depending\n * on which VuMark was visible. */\n }\n telemetry.addData(\"VuMark\", \"%s visible\", vuMark);\n telemetry.update();\n sleep(550);\n\n //switch (vuMark) {\n // case LEFT: //RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.LEFT;\n // coLumn = 2;\n // case CENTER:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.CENTER;\n // coLumn = 1;\n // case RIGHT:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.RIGHT;\n // coLumn = 0;\n //}\n if ( vuMark == RelicRecoveryVuMark.LEFT) {\n coLumn = 2;\n }\n else if(vuMark == RelicRecoveryVuMark.RIGHT){\n coLumn = 0;\n }\n else if(vuMark == RelicRecoveryVuMark.CENTER){\n coLumn = 1;\n }\n\n\n telemetry.addData(\"coLumn\", \"%s visible\", coLumn);\n telemetry.update();\n sleep(550);\n\n\n\n//if jewej is red 1 if jewel is blue 2\n\n // if(jewel == 1) {\n // gyroturn(-10, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //gyroturn(-2, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n //else if(jewel == 2){\n // gyroturn(10, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n // gyroturn(-2, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[0][coLumn], disandTurn[0][coLumn], 5.0); // S1: Forward 24 Inches with 5 Sec timeout shoot ball\n\n gyroturn(disandTurn[1][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[0], -turndistance[0], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[2][coLumn], disandTurn[2][coLumn], 5.0); // S3: Forward 43.3 iNCHES\n\n gyroturn(disandTurn[3][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[4][coLumn], disandTurn[4][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n gyroturn(disandTurn[5][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[6][coLumn], disandTurn[6][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n\n Outake();\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[7][coLumn], disandTurn[7][coLumn], 5.0);// S6: Forward 48 inches with 4 Sec timeout\n }",
"@Override\n public void runOpMode() {\n commands.init(hardwareMap);\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n // run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n sleep(30000);\n }\n }",
"public void initOperation() {\n\t\tinitialized = true;\r\n\t}",
"@Override\n public void runOpMode() {\n motorFL = hardwareMap.get(DcMotor.class, \"motorFL\");\n motorBL = hardwareMap.get(DcMotor.class, \"motorBL\");\n motorFR = hardwareMap.get(DcMotor.class, \"motorFR\");\n motorBR = hardwareMap.get(DcMotor.class, \"motorBR\");\n landerRiser = hardwareMap.get(DcMotor.class, \"lander riser\");\n landerRiser = hardwareMap.get(DcMotor.class, \"lander riser\");\n landerRiser.setDirection(DcMotor.Direction.FORWARD);\n landerRiser.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n markerDrop = hardwareMap.get(Servo.class, \"marker\");\n markerDrop.setDirection(Servo.Direction.FORWARD);\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n runtime.reset();\n\n //Landing & unlatching\n landerRiser.setPower(-1);\n telemetry.addData(\"Status\", \"Descending\");\n telemetry.update();\n sleep(5550);\n landerRiser.setPower(0);\n telemetry.addData(\"Status\",\"Unhooking\");\n telemetry.update();\n move(-0.5, 600, true);\n strafe(-0.4,0.6, 3600, true);\n move(0.5,600,true);\n markerDrop.setPosition(0);\n sleep(1000);\n markerDrop.setPosition(0.5);\n sleep(700);\n markerDrop.setPosition(0);\n strafe(0, -0.5,500,true);\n strafe(0.5, -0.25, 8500, true);\n\n }",
"@Override\n public void resetDeviceConfigurationForOpMode() {\n\n }",
"@Override\n public void runOpMode () {\n motor1 = hardwareMap.get(DcMotor.class, \"motor1\");\n motor2 = hardwareMap.get(DcMotor.class, \"motor2\");\n\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n //Wait for game to start (driver presses PLAY)\n waitForStart();\n\n /*\n the overridden runOpMode method happens with every OpMode using the LinearOpMode type.\n hardwareMap is an object that references the hardware listed above (private variables).\n The hardwareMap.get method matches the name of the device used in the configuration, so\n we would have to change the names (ex. motorTest to Motor 1 or Motor 2 (or something else))\n if not, the opMode won't recognize the device\n\n in the second half of this section, it uses something called telemetry. In the first and\n second lines it sends a message to the driver station saying (\"Status\", \"Initialized\") and\n then it prompts the driver to press start and waits. All linear functions should have a wait\n for start command so that the robot doesn't start executing the commands before the driver\n wants to (or pushes the start button)\n */\n\n //run until end of match (driver presses STOP)\n double tgtpower = 0;\n while (opModeIsActive()) {\n telemetry.addData(\"Left Stick X\", this.gamepad1.left_stick_x);\n telemetry.addData(\"Left Stick Y\", this.gamepad1.left_stick_y);\n telemetry.addData(\"Right Stick X\", this.gamepad1.right_stick_x);\n telemetry.addData(\"Right Stick Y\", this.gamepad1.right_stick_y);\n if (this.gamepad1.left_stick_y < 0){\n tgtpower=-this.gamepad1.left_stick_y;\n motor1.setPower(tgtpower);\n motor2.setPower(-tgtpower);\n }else if (this.gamepad1.left_stick_y > 0){\n tgtpower=this.gamepad1.left_stick_y;\n motor1.setPower(-tgtpower);\n motor2.setPower(tgtpower);\n }else if (this.gamepad1.left_stick_x > 0){\n tgtpower=this.gamepad1.left_stick_x;\n motor1.setPower(tgtpower);\n motor2.setPower(tgtpower);\n }else if (this.gamepad1.left_stick_x < 0){\n tgtpower=-this.gamepad1.left_stick_x;\n motor1.setPower(-tgtpower);\n motor2.setPower(-tgtpower);\n }else{\n motor1.setPower(0);\n motor2.setPower(0);\n }\n telemetry.addData(\"Motor1 Power\", motor1.getPower());\n telemetry.addData(\"Motor2 Power\", motor2.getPower());\n telemetry.addData(\"Status\", \"Running\");\n telemetry.update ();\n\n\n /*\n if (this.gamepad1.right_stick_x == 1){\n //trying to make robot turn right, == 1 may be wrong\n motor2.setPower(-1);\n }\n else if (this.gamepad1.right_stick_x == -1){\n //trying to make robot turn left, == -1 may be wrong\n motor1.setPower(-1);\n }\n else {\n\n }\n */\n\n\n /*\n After the driver presses start,the opMode enters a while loop until the driver presses stop,\n while the loop is running it will continue to send messages of (\"Status\", \"Running\") to the\n driver station\n */\n\n\n }\n }",
"public RobotHardware (LinearOpMode opmode) {\n myOpMode = opmode;\n }",
"@Override\n\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n\n // Initialize the hardware variables. Note that the strings used here as parameters\n // to 'get' must correspond to the names assigned during the robot configuration\n // step (using the FTC Robot Controller app on the phone).\n // FR = hardwareMap.get(DcMotor.class, \"FR\");\n // FL = hardwareMap.get(DcMotor.class, \"FL\");\n // BR = hardwareMap.get(DcMotor.class, \"BR\");\n //BL = hardwareMap.get(DcMotor.class, \"BL\");\n //yoo are ___\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n/* FR.setDirection(DcMotor.Direction.FORWARD);\n FL.setDirection(DcMotor.Direction.REVERSE);\n BR.setDirection(DcMotor.Direction.FORWARD);\n BL.setDirection(DcMotor.Direction.REVERSE);\n\n */ RevBlinkinLedDriver blinkinLedDriver;\n RevBlinkinLedDriver.BlinkinPattern pattern;\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n blinkinLedDriver = this.hardwareMap.get(RevBlinkinLedDriver.class, \"PrettyBoi\");\n blinkinLedDriver.setPattern(RevBlinkinLedDriver.BlinkinPattern.RAINBOW_WITH_GLITTER);\n// runtime.reset();\n\n // run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n\n\n\n // Show the elapsed game time and wheel power.\n// telemetry.addData(\"Status\", \"Run Time: \" + runtime.toString());\n// // telemetry.addData(\"Motors\", \"FL (%.2f), FR (%.2f), BL (%.2f), BR (%.2f)\", v1, v2, v3, v4);\n// telemetry.update();\n }\n }",
"@Override\n public void runOpMode() {\n frontLeftWheel = hardwareMap.dcMotor.get(\"frontLeft\");\n backRightWheel = hardwareMap.dcMotor.get(\"backRight\");\n frontRightWheel = hardwareMap.dcMotor.get(\"frontRight\");\n backLeftWheel = hardwareMap.dcMotor.get(\"backLeft\");\n\n //telemetry sends data to robot controller\n telemetry.addData(\"Output\", \"hardwareMapped\");\n\n // The TFObjectDetector uses the camera frames from the VuforiaLocalizer, so we create that\n // first.\n initVuforia();\n\n if (ClassFactory.getInstance().canCreateTFObjectDetector()) {\n initTfod();\n } else {\n telemetry.addData(\"Sorry!\", \"This device is not compatible with TFOD\");\n }\n\n /**\n * Activate TensorFlow Object Detection before we wait for the start command.\n * Do it here so that the Camera Stream window will have the TensorFlow annotations visible.\n **/\n if (tfod != null) {\n tfod.activate();\n }\n\n /** Wait for the game to begin */\n telemetry.addData(\">\", \"Press Play to start op mode\");\n telemetry.update();\n waitForStart();\n\n if (opModeIsActive()) {\n while (opModeIsActive()) {\n if (tfod != null) {\n // getUpdatedRecognitions() will return null if no new information is available since\n // the last time that call was made\n List<Recognition> updatedRecognitions = tfod.getUpdatedRecognitions();\n if(updatedRecognitions == null) {\n frontLeftWheel.setPower(0);\n frontRightWheel.setPower(0);\n backLeftWheel.setPower(0);\n backRightWheel.setPower(0);\n } else if (updatedRecognitions != null) {\n telemetry.addData(\"# Object Detected\", updatedRecognitions.size());\n // step through the list of recognitions and display boundary info.\n int i = 0;\n\n\n for (Recognition recognition : updatedRecognitions) {\n float imageHeight = recognition.getImageHeight();\n float blockHeight = recognition.getHeight();\n\n //-----------------------\n// stoneCX = (recognition.getRight() + recognition.getLeft())/2;//get center X of stone\n// screenCX = recognition.getImageWidth()/2; // get center X of the Image\n// telemetry.addData(\"screenCX\", screenCX);\n// telemetry.addData(\"stoneCX\", stoneCX);\n// telemetry.addData(\"width\", recognition.getImageWidth());\n //------------------------\n\n telemetry.addData(\"blockHeight\", blockHeight);\n telemetry.addData(\"imageHeight\", imageHeight);\n telemetry.addData(String.format(\"label (%d)\", i), recognition.getLabel());\n telemetry.addData(String.format(\" left,top (%d)\", i), \"%.03f , %.03f\", recognition.getLeft(), recognition.getTop());\n telemetry.addData(String.format(\" right,bottom (%d)\", i), \"%.03f , %.03f\", recognition.getRight(), recognition.getBottom());\n\n\n if(hasStrafed == false) {\n float midpoint = (recognition.getLeft() + recognition.getRight()) /2;\n float multiplier ;\n if(midpoint > 500) {\n multiplier = -(((int)midpoint - 500) / 100) - 1;\n log = \"Adjusting Right\";\n sleep(200);\n } else if(midpoint < 300) {\n multiplier = 1 + ((500 - midpoint) / 100);\n log = \"Adjusting Left\";\n sleep(200);\n } else {\n multiplier = 0;\n log = \"In acceptable range\";\n hasStrafed = true;\n }\n frontLeftWheel.setPower(-0.1 * multiplier);\n backLeftWheel.setPower(0.1 * multiplier);\n frontRightWheel.setPower(-0.1 * multiplier);\n backRightWheel.setPower(0.1 * multiplier);\n } else {\n if( blockHeight/ imageHeight < .5) {\n frontLeftWheel.setPower(-.3);\n backLeftWheel.setPower(.3);\n frontRightWheel.setPower(.3);\n backRightWheel.setPower(-.3);\n telemetry.addData(\"detecting stuff\", true);\n } else {\n frontLeftWheel.setPower(0);\n backLeftWheel.setPower(0);\n frontRightWheel.setPower(0);\n backRightWheel.setPower(0);\n telemetry.addData(\"detecting stuff\", false);\n }\n }\n\n telemetry.addData(\"Angle to unit\", recognition.estimateAngleToObject(AngleUnit.DEGREES));\n telemetry.addData(\"Log\", log);\n\n }\n telemetry.update();\n }\n\n }\n }\n }\n if (tfod != null) {\n tfod.shutdown();\n }\n }",
"@Override public void init_loop() {\n if (gyro.isCalibrated()) {\n telemetry.addData(\"Gyro\", \"Calibrated\");\n }\n\n /** Place any code that should repeatedly run after INIT is pressed but before the op mode starts here. **/\n }",
"public void init() {\n // Define and Initialize Motors (note: need to use reference to actual OpMode).\n leftDrive = myOpMode.hardwareMap.get(DcMotor.class, \"left_drive\");\n rightDrive = myOpMode.hardwareMap.get(DcMotor.class, \"right_drive\");\n armMotor = myOpMode.hardwareMap.get(DcMotor.class, \"arm\");\n\n // To drive forward, most robots need the motor on one side to be reversed, because the axles point in opposite directions.\n // Pushing the left stick forward MUST make robot go forward. So adjust these two lines based on your first test drive.\n // Note: The settings here assume direct drive on left and right wheels. Gear Reduction or 90 Deg drives may require direction flips\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n rightDrive.setDirection(DcMotor.Direction.FORWARD);\n\n // If there are encoders connected, switch to RUN_USING_ENCODER mode for greater accuracy\n // leftDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n // rightDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n // Define and initialize ALL installed servos.\n leftHand = myOpMode.hardwareMap.get(Servo.class, \"left_hand\");\n rightHand = myOpMode.hardwareMap.get(Servo.class, \"right_hand\");\n leftHand.setPosition(MID_SERVO);\n rightHand.setPosition(MID_SERVO);\n\n myOpMode.telemetry.addData(\">\", \"Hardware Initialized\");\n myOpMode.telemetry.update();\n }",
"private void initOperationMode() throws IllegalArgumentException {\n String writeModeStr = getProperties().getProperty(WRITE_MODE, \"single\");\n String readModeStr = getProperties().getProperty(READ_MODE, \"single\");\n String sortKeysCountStr = getProperties().getProperty(SORT_KEY_COUNT, \"10\");\n\n int count = Integer.parseInt(sortKeysCountStr);\n startSortKey = String.valueOf(0).getBytes();\n stopSortKey = String.valueOf(count).getBytes();\n while ((--count) >= 0) {\n sortKeys.add(String.valueOf(count).getBytes());\n }\n\n if (writeModeStr.equals(\"single\") && readModeStr.equals(\"single\")) {\n writeMode = WriteMode.SINGLE;\n readMode = ReadMode.SINGLE;\n } else if (writeModeStr.equals(\"batch\") && readModeStr.equals(\"batch\")) {\n writeMode = WriteMode.BATCH;\n readMode = ReadMode.BATCH;\n } else if (writeModeStr.equals(\"multi\") && readModeStr.equals(\"multi\")) {\n writeMode = WriteMode.MULTI;\n readMode = ReadMode.MULTI;\n } else if (writeModeStr.equals(\"multi\") && readModeStr.equals(\"batch\")) {\n writeMode = WriteMode.MULTI;\n readMode = ReadMode.BATCH;\n } else if (writeModeStr.equals(\"multi\") && readModeStr.equals(\"range\")) {\n writeMode = WriteMode.MULTI;\n readMode = ReadMode.RANGE;\n } else if (writeModeStr.equals(\"batch\") && readModeStr.equals(\"multi\")) {\n writeMode = WriteMode.BATCH;\n readMode = ReadMode.MULTI;\n } else {\n writeMode = WriteMode.INVALID;\n readMode = ReadMode.INVALID;\n throw new IllegalArgumentException(\"The operation mode is not been supported\");\n }\n System.out.println(\"OperationMode:writeMode=\" + writeModeStr + \",readMode=\" + readModeStr);\n }",
"@Override\n public void runOpMode() {\n RobotMain main = new RobotMain(this,hardwareMap,telemetry);\n\n //initialize controls\n imuTeleOpDualGamepad control = new imuTeleOpDualGamepad(main,gamepad1,gamepad2);\n\n waitForStart();\n\n //Pull the tail back from autonomous\n main.JewelArm.setServo(.65);\n\n //Continually run the control program in the algorithm\n while (opModeIsActive()) control.run();\n }",
"@Override\n public void runOpMode() {\n detector = new modifiedGoldDetector(); //Create detector\n detector.init(hardwareMap.appContext, CameraViewDisplay.getInstance(), DogeCV.CameraMode.BACK); //Initialize it with the app context and camera\n detector.enable(); //Start the detector\n\n //Initialize the drivetrain\n motorFL = hardwareMap.get(DcMotor.class, \"motorFL\");\n motorFR = hardwareMap.get(DcMotor.class, \"motorFR\");\n motorRL = hardwareMap.get(DcMotor.class, \"motorRL\");\n motorRR = hardwareMap.get(DcMotor.class, \"motorRR\");\n motorFL.setDirection(DcMotor.Direction.REVERSE);\n motorFR.setDirection(DcMotor.Direction.FORWARD);\n motorRL.setDirection(DcMotor.Direction.REVERSE);\n motorRR.setDirection(DcMotor.Direction.FORWARD);\n\n //Reset encoders\n motorFL.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorFR.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorRL.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorRR.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorFL.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorFR.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorRL.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorRR.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n telemetry.addData(\"IsFound: \", detector.isFound());\n telemetry.addData(\">\", \"Waiting for start\");\n telemetry.update();\n\n\n //TODO Pass skystone location to storage\n\n //Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n /**\n * *****************\n * OpMode Begins Here\n * *****************\n */\n\n //Disable the detector\n if(detector != null) detector.disable();\n\n //Start the odometry processing thread\n odometryPositionUpdate positionUpdate = new odometryPositionUpdate(motorFL, motorFR, motorRL, motorRR, inchPerCount, trackWidth, wheelBase, 75);\n Thread odometryThread = new Thread(positionUpdate);\n odometryThread.start();\n runtime.reset();\n\n //Run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n\n absPosnX = startPosnX + positionUpdate.returnOdometryX();\n absPosnY = startPosnY + positionUpdate.returnOdometryY();\n absPosnTheta = startPosnTheta + positionUpdate.returnOdometryTheta();\n\n telemetry.addData(\"X Position [in]\", absPosnX);\n telemetry.addData(\"Y Position [in]\", absPosnY);\n telemetry.addData(\"Orientation [deg]\", absPosnTheta);\n telemetry.addData(\"Thread Active\", odometryThread.isAlive());\n telemetry.update();\n\n//Debug: Drive forward for 3.0 seconds and make sure telemetry is correct\n if (runtime.seconds() < 3.0) {\n motorFL.setPower(0.25);\n motorFR.setPower(0.25);\n motorRL.setPower(0.25);\n motorRR.setPower(0.25);\n }else {\n motorFL.setPower(0);\n motorFR.setPower(0);\n motorRL.setPower(0);\n motorRR.setPower(0);\n }\n\n\n }\n //Stop the odometry processing thread\n odometryThread.interrupt();\n }",
"@Override\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n leftFront = hardwareMap.get(DcMotor.class, \"left_front\");\n rightFront = hardwareMap.get(DcMotor.class, \"right_front\");\n leftBack = hardwareMap.get(DcMotor.class, \"left_back\");\n rightBack = hardwareMap.get(DcMotor.class, \"right_back\");\n\n\n leftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n leftBack.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n right = hardwareMap.get(Servo.class, \"right\");\n left = hardwareMap.get(Servo.class, \"left\");\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n leftFront.setDirection(DcMotor.Direction.REVERSE);\n rightFront.setDirection(DcMotor.Direction.FORWARD);\n leftBack.setDirection(DcMotor.Direction.REVERSE);\n rightBack.setDirection(DcMotor.Direction.FORWARD);\n\n leftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n digitalTouch = hardwareMap.get(DigitalChannel.class, \"sensor_digital\");\n digitalTouch.setMode(DigitalChannel.Mode.INPUT);\n\n right.setDirection(Servo.Direction.REVERSE);\n\n right.scaleRange(0, 0.25);\n left.scaleRange(0.7, 1);\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n\n servo(0);\n runtime.reset();\n encoderSideways(0.25, -5, -5, 5);\n // drive until touch sensor pressed\n // activate servos to grab platform\n // drive backwards for a while\n // release servos\n // sideways part\n // remember to do red autonomous for repackage org.firstinspires.ftc.teamcode;\n }",
"@Override\n public void runOpMode() {\n androidGyroscope = new AndroidGyroscope();\n\n // Put initialization blocks here.\n if (androidGyroscope.isAvailable()) {\n telemetry.addData(\"Status\", \"GyroAvailable\");\n }\n waitForStart();\n if (opModeIsActive()) {\n // Put run blocks here.\n androidGyroscope.startListening();\n androidGyroscope.setAngleUnit(AngleUnit.DEGREES);\n while (opModeIsActive()) {\n telemetry.addData(\"X Axis\", androidGyroscope.getX());\n telemetry.update();\n }\n }\n }",
"@Override\r\n public void runOpMode() {\n robot.init(hardwareMap);\r\n\r\n telemetry.addData(\"Status\", \"Initialized\");\r\n telemetry.update();\r\n\r\n //Wait for the Pressing of the Start Button\r\n waitForStart();\r\n\r\n // run until the end of the match (driver presses STOP)\r\n while (opModeIsActive()) {\r\n\r\n motorSpeed[0] = driveSpeed(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad2.left_stick_x)[0];\r\n motorSpeed[1] = driveSpeed(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad2.left_stick_x)[1];\r\n motorSpeed[2] = driveSpeed(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad2.left_stick_x)[2];\r\n motorSpeed[3] = driveSpeed(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad2.left_stick_x)[3];\r\n\r\n robot.drive1.setPower(motorSpeed[0]);\r\n robot.drive1.setPower(motorSpeed[1]);\r\n robot.drive1.setPower(motorSpeed[2]);\r\n robot.drive1.setPower(motorSpeed[3]);\r\n\r\n telemetry.addData(\"Drive 1 Speed\", motorSpeed[0]);\r\n telemetry.addData(\"Drive 2 Speed\", motorSpeed[1]);\r\n telemetry.addData(\"Drive 3 Speed\", motorSpeed[2]);\r\n telemetry.addData(\"Drive 4 Speed\", motorSpeed[3]);\r\n telemetry.update();\r\n\r\n }\r\n }",
"@Override\n public void runOpMode() {\n try {\n leftfrontDrive = hardwareMap.get(DcMotor.class, \"frontLeft\");\n leftfrontDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n rightfrontDrive = hardwareMap.get(DcMotor.class, \"frontRight\");\n rightfrontDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n leftbackDrive = hardwareMap.get(DcMotor.class, \"backLeft\");\n leftbackDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftbackDrive.setDirection(DcMotor.Direction.REVERSE);\n\n rightbackDrive = hardwareMap.get(DcMotor.class, \"backRight\");\n rightbackDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n lift = hardwareMap.get(DcMotor.class, \"Lift\");\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lift.setDirection(DcMotor.Direction.REVERSE);\n\n markerArm = hardwareMap.get(Servo.class, \"markerArm\");\n\n armActivator = hardwareMap.get(DcMotor.class, \"armActivator\");\n armActivator.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n } catch (IllegalArgumentException iax) {\n bDebug = true;\n }\n\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"BNO055IMUCalibration.json\";\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters);\n\n waitForStart(); //the rest of the code begins after the play button is pressed\n\n sleep(3000);\n\n drive(0.35, 0.5);\n\n turn(90.0f);\n\n drive(1.8, 0.5);\n\n turn(45.0f);\n\n drive(2.5, -0.5);\n\n sleep(1000);\n\n markerArm.setPosition(1);\n\n sleep(1000);\n\n markerArm.setPosition(0);\n\n sleep(1000);\n\n drive(2.5,.75);\n\n turn(179.0f);\n\n drive(1.5, 1.0);\n\n requestOpModeStop(); //end of autonomous\n }",
"private void initSimulateMode() {\n initSimulateModeView();\n initSimulateModeController();\n }",
"@Override\n public void runOpMode() {\n hw = new RobotHardware(robotName, hardwareMap);\n rd = new RobotDrive(hw);\n rs=new RobotSense(hw, telemetry);\n /*rd.moveDist(RobotDrive.Direction.FORWARD, .5, .3);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, .3);\n rd.moveDist(RobotDrive.Direction.FORWARD, .5, 1);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, 1);*/\n telemetry.addData(\"Ready! \", \"Go Flamangos!\"); \n telemetry.update();\n\n //Starting the servos in the correct starting position\n /*hw.armRight.setPosition(1-.3);\n hw.armLeft.setPosition(.3);\n hw.level.setPosition(.3+.05);*/\n hw.f_servoLeft.setPosition(1);\n hw.f_servoRight.setPosition(0.5);\n \n rd.moveArm(hw.startPos());\n waitForStart();\n while (opModeIsActive()) {\n \n /*Starting close to the bridge on the building side\n Move under the bridge and push into the wall*/\n rd.moveDist(RobotDrive.Direction.LEFT,2,.5);\n rd.moveDist(RobotDrive.Direction.FORWARD, 10, .5);\n break;\n }\n }",
"@Override \n public void runOpMode() \n {\n leftMotors = hardwareMap.get(DcMotor.class, \"left_Motors\");\n rightMotors = hardwareMap.get(DcMotor.class, \"right_Motors\");\n vLiftMotor = hardwareMap.get(DcMotor.class, \"vLift_Motor\"); \n \n leftMotors.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightMotors.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftMotors.setDirection(DcMotor.Direction.REVERSE);\n rightMotors.setDirection(DcMotor.Direction.FORWARD);\n vLiftMotor.setDirection(DcMotor.Direction.REVERSE);\n vLiftMotor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n \n waitForStart(); //press play button, actives opMode\n intakePivotServo.setPosition(intakePivotServoPos);\n while (opModeIsActive()) \n { \n drive();\n pivotIntake();\n pivotLift();\n \n }//opModeIsActive \n \n }",
"public void startTrainingMode() {\n\t\t\r\n\t}",
"public void runOpMode() {\n leftBackDrive = hardwareMap.get(DcMotor.class, \"left_back_drive\"); //port 0, hub1\n rightBackDrive = hardwareMap.get(DcMotor.class, \"right_back_drive\"); //port 1, hub1\n leftFrontDrive = hardwareMap.get(DcMotor.class, \"left_front_drive\"); //port 2, hub1\n rightFrontDrive = hardwareMap.get(DcMotor.class, \"right_front_drive\"); //port 3, hub1\n craneExtend = hardwareMap.get(DcMotor.class, \"craneExtend\"); //port 0, hub2\n cranePitch = hardwareMap.get(DcMotor.class, \"cranePitch\"); //port 1, hub2\n craneElevate = hardwareMap.get(DcMotor.class, \"craneElevate\"); //port 2, hub2\n fakeMotor = hardwareMap.get(DcMotor.class, \"fakeMotor\"); //port 2, hub3\n craneGrab = hardwareMap.get(Servo.class, \"craneGrab\"); //port 0, servo\n craneGrabAttitude = hardwareMap.get(Servo.class, \"craneGrabAttitude\"); //port 2, servo\n trayGrab = hardwareMap.get(Servo.class, \"trayGrab\"); //port 1, servo\n flipperLeft = hardwareMap.get(Servo.class, \"flipperLeft\"); //port 3. servo\n flipperRight = hardwareMap.get(Servo.class, \"flipperRight\"); //port 4, servo\n \n //Setting the motor directions\n leftBackDrive.setDirection(DcMotor.Direction.FORWARD);\n rightBackDrive.setDirection(DcMotor.Direction.REVERSE);\n leftFrontDrive.setDirection(DcMotor.Direction.FORWARD);\n rightFrontDrive.setDirection(DcMotor.Direction.REVERSE);\n\n //Initializing variables\n \n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update(); //Done initalizing\n\n //Wait for the game to start (driver presses PLAY)\n waitForStart();\n runtime.reset();\n\n //run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n \n//******************************************************************************\n\n //Drive controls\n if (gamepad1.left_trigger>0 || gamepad1.right_trigger>0) { //Crab\n leftBackDrive.setPower(gamepad1.left_stick_x*0.8);\n rightBackDrive.setPower(-gamepad1.left_stick_x*0.8);\n leftFrontDrive.setPower(-gamepad1.left_stick_x*0.8);\n rightFrontDrive.setPower(gamepad1.left_stick_x*0.8);\n }\n\n else { //Tank\n leftBackDrive.setPower(-gamepad1.left_stick_x);\n rightBackDrive.setPower(-gamepad1.right_stick_x);\n leftFrontDrive.setPower(-gamepad1.left_stick_x);\n rightFrontDrive.setPower(-gamepad1.right_stick_x);\n }\n }\n \n//******************************************************************************\n\n //Crane control\n \n \n//******************************************************************************\n\n //Telemetry display\n telemetry.addData(\"Run Time:\", \"\" + runtime.toString());\n telemetry.addData(\"Motor Power\", \"L (%.2f), R (%.2f)\", gamepad1.left_stick_y, gamepad1.right_stick_y);\n telemetry.update();\n }",
"protected void initialize() {\n\t\tsquaredInputs = false;\n\t\t// SmartDashboard.putString(\"DB/LED 0\", \"TeleOpDrive is init\");\n\t}",
"@Override\n public void runOpMode() {\n float strafeRight;\n float strafeLeft;\n\n frontRight = hardwareMap.dcMotor.get(\"frontRight\");\n backRight = hardwareMap.dcMotor.get(\"backRight\");\n frontLeft = hardwareMap.dcMotor.get(\"frontLeft\");\n backLeft = hardwareMap.dcMotor.get(\"backLeft\");\n flipper = hardwareMap.crservo.get(\"flipper\");\n\n // Put initialization blocks here.\n frontRight.setDirection(DcMotorSimple.Direction.REVERSE);\n backRight.setDirection(DcMotorSimple.Direction.REVERSE);\n waitForStart();\n while (opModeIsActive()) {\n // Power to drive\n frontRight.setPower(gamepad1.right_stick_y * 0.5);\n frontRight.setPower(gamepad1.right_stick_y * 0.75);\n backRight.setPower(gamepad1.right_stick_y * 0.75);\n frontLeft.setPower(gamepad1.left_stick_y * 0.75);\n backLeft.setPower(gamepad1.left_stick_y * 0.75);\n flipper.setPower(gamepad2.left_stick_y);\n // Strafing code\n strafeRight = gamepad1.right_trigger;\n strafeLeft = gamepad1.left_trigger;\n if (strafeRight != 0) {\n frontLeft.setPower(-(strafeRight * 0.8));\n frontRight.setPower(strafeRight * 0.8);\n backLeft.setPower(strafeRight * 0.8);\n backRight.setPower(-(strafeRight * 0.8));\n } else if (strafeLeft != 0) {\n frontLeft.setPower(strafeLeft * 0.8);\n frontRight.setPower(-(strafeLeft * 0.8));\n backLeft.setPower(-(strafeLeft * 0.8));\n backRight.setPower(strafeLeft * 0.8);\n }\n // Creep\n if (gamepad1.dpad_up) {\n frontRight.setPower(-0.4);\n backRight.setPower(-0.4);\n frontLeft.setPower(-0.4);\n backLeft.setPower(-0.4);\n } else if (gamepad1.dpad_down) {\n frontRight.setPower(0.4);\n backRight.setPower(0.4);\n frontLeft.setPower(0.4);\n backLeft.setPower(0.4);\n } else if (gamepad1.dpad_right) {\n frontRight.setPower(-0.4);\n backRight.setPower(-0.4);\n } else if (gamepad1.dpad_left) {\n frontLeft.setPower(-0.4);\n backLeft.setPower(-0.4);\n }\n if (gamepad1.x) {\n frontLeft.setPower(1);\n backLeft.setPower(1);\n frontRight.setPower(1);\n backRight.setPower(1);\n sleep(200);\n frontRight.setPower(1);\n backRight.setPower(1);\n frontLeft.setPower(-1);\n backLeft.setPower(-1);\n sleep(700);\n }\n telemetry.update();\n }\n }",
"@Override\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Simple Ready to run\"); //\n telemetry.update();\n telemetry.addData(\"Status\", \"Initialized\");\n\n /**\n * Initializes the library functions\n * Robot hardware and motor functions\n */\n robot = new Robot_1617(hardwareMap);\n motorFunctions = new MotorFunctions(-1, 1, 0, 1, .05);\n\n //servo wheels are flipped in configuration file\n robot.servoLeftWheel.setPosition(.45);\n robot.servoRightWheel.setPosition(.25);\n\n robot.servoLeftArm.setPosition(0);\n robot.servoRightArm.setPosition(0.7);\n\n robot.servoFlyAngle.setPosition(1);\n\n robot.servoElbow.setPosition(0.95);\n robot.servoShoulder.setPosition(0.1);\n\n robot.servoFeed.setPosition(.498);\n\n robot.servoPlaid.setPosition(.85);\n\n telemetry.addData(\"Servos: \", \"Initialized\");\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n sleep(5000);\n robot.motorLift.setPower(0);\n robot.servoFlyAngle.setPosition(0);\n sleep(500);\n robot.motorFlyLeft.setPower(.9);\n robot.motorFlyRight.setPower(1);\n sleep(250);\n robot.motorIntakeElevator.setPower(1);\n robot.servoFeed.setPosition(-1);\n telemetry.addData(\"Status\", \"Shooting\"); //\n telemetry.update();\n sleep(5000);\n robot.motorFlyLeft.setPower(0);\n robot.motorFlyRight.setPower(0);\n// sleep(5000); //no idea why this is here\n robot.motorIntakeElevator.setPower(0);\n robot.servoFeed.setPosition(.1);\n sleep(250);\n\n telemetry.addData(\"Status\", \"Driving\");\n telemetry.update();\n encoderDrive(1.0, 30, 30, 1);\n\n encoderDrive(1.0, 35, 35, 1);\n }",
"@Override\n public void teleopInit()\n {\n System.out.println(\"Initializing teleop mode...\");\n\n commonInit();\n\n\n System.out.println(\"Teleop initialization complete.\");\n }",
"protected abstract void initHardwareInstructions();",
"@Override\n public void runOpMode() {\n\n //PUTS THE NAMES OF THE MOTORS INTO THE CODE\n\n //DRIVE Motors\n aDrive = hardwareMap.get(DcMotor.class, \"aDrive\");\n bDrive = hardwareMap.get(DcMotor.class, \"bDrive\");\n cDrive = hardwareMap.get(DcMotor.class, \"cDrive\");\n dDrive = hardwareMap.get(DcMotor.class, \"dDrive\");\n cDrive.setDirection(DcMotor.Direction.REVERSE);\n dDrive.setDirection(DcMotor.Direction.REVERSE);\n\n //FUNCTIONS Motors\n Arm = hardwareMap.get(DcMotor.class, \"Arm\");\n ArmExtender = hardwareMap.get(DcMotor.class, \"ArmExtender\");\n Spindle = hardwareMap.get(DcMotor.class, \"Spindle\");\n Lift = hardwareMap.get(DcMotor.class, \"Lift\");\n\n //SERVOS\n Cover = hardwareMap.get(Servo.class, \"Cover\");\n\n //Vuforia\n telemetry.addData(\"Status\", \"DogeCV 2018.0 - Gold Align Example\");\n\n detector = new GoldAlignDetector();\n detector.init(hardwareMap.appContext, CameraViewDisplay.getInstance());\n detector.useDefaults();\n\n // Phone Stuff\n detector.alignSize = 100; // How wide (in pixels) is the range in which the gold object will be aligned. (Represented by green bars in the preview)\n detector.alignPosOffset = 0; // How far from center frame to offset this alignment zone.\n detector.downscale = 0.4; // How much to downscale the input frames\n detector.areaScoringMethod = DogeCV.AreaScoringMethod.MAX_AREA; // Can also be PERFECT_AREA\n //detector.perfectAreaScorer.perfectArea = 10000; // if using PERFECT_AREA scoring\n detector.maxAreaScorer.weight = 0.005;\n detector.ratioScorer.weight = 5;\n detector.ratioScorer.perfectRatio = 1.0;\n detector.enable();\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n\n waitForStart();\n\n telemetry.addData(\"IsAligned\" , detector.getAligned()); // Is the bot aligned with the gold mineral\n\n goldPos = detector.getXPosition(); // Gets gold block posistion\n\n sleep(1000); // Waits to make sure it is correct\n\n // Move Depending on gold position\n if(goldPos < 160){\n driftleft();\n sleep(1500);\n }else if (goldPos > 500) {\n driftright();\n sleep(1500);\n }else{\n forward();\n }\n\n forward(); //Drives into crater\n sleep(4000);\n\n detector.disable();\n\n }",
"@Override\n public void init() {\n telemetry.addData(\"Status\", \"Initialized Interative TeleOp Mode\");\n telemetry.update();\n\n // Initialize the hardware variables. Note that the strings used here as parameters\n // to 'get' must correspond to the names assigned during the robot configuration\n // step (using the FTC Robot Controller app on the phone).\n leftDrive = hardwareMap.dcMotor.get(\"leftDrive\");\n rightDrive = hardwareMap.dcMotor.get(\"rightDrive\");\n armMotor = hardwareMap.dcMotor.get(\"armMotor\");\n\n leftGrab = hardwareMap.servo.get(\"leftGrab\");\n rightGrab = hardwareMap.servo.get(\"rightGrab\");\n colorArm = hardwareMap.servo.get(\"colorArm\");\n leftTop = hardwareMap.servo.get(\"leftTop\");\n rightTop = hardwareMap.servo.get(\"rightTop\");\n\n /*\n left and right drive = motion of robot\n armMotor = motion of arm (lifting the grippers)\n extendingArm = motion of slider (used for dropping the fake person)\n left and right grab = grippers to get the blocks\n */\n\n }",
"@Override\n public void runOpMode() {\n leftDrive = hardwareMap.get(DcMotor.class, \"left_drive\");\n rightDrive = hardwareMap.get(DcMotor.class, \"right_drive\");\n intake = hardwareMap.get (DcMotor.class, \"intake\");\n dropServo = hardwareMap.get(Servo.class, \"drop_Servo\");\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n rightDrive.setDirection(DcMotor.Direction.FORWARD);\n\n dropServo.setPosition(1.0);\n waitForStart();\n dropServo.setPosition(0.6);\n sleep(500);\n VuforiaOrientator();\n encoderSequence(\"dumbDrive\");\n\n\n }",
"@Override //when init is pressed\n public void runOpMode(){\n robot.initMotors(hardwareMap);\n robot.initServos(hardwareMap);\n robot.useEncoders(false);\n\n waitForStart();\n runtime.reset();\n\n double speedSet = 5;//robot starts with speed 5 due to 40 ratio motors being op\n double reduction = 7.5;//fine rotation for precise stacking. higher value = slower rotation using triggers\n double maxPower = 0;\n\n boolean forks = false;\n\n while (opModeIsActive()) {\n double LX = gamepad1.left_stick_x, LY = gamepad1.left_stick_y, rotate = gamepad1.right_stick_x;\n\n //bumpers set speed of robot\n if(gamepad1.right_bumper)\n speedSet += 0.0005;\n else if(gamepad1.left_bumper)\n speedSet -= 0.0005;\n\n speedSet = Range.clip(speedSet, 1, 10);//makes sure speed is limited at 10.\n\n if(!gamepad1.right_bumper && !gamepad1.left_bumper)//makes sure speed does not round every refresh. otherwise, speed won't be able to change\n speedSet = Math.round(speedSet);\n\n if(gamepad1.a) {\n forks = !forks;\n sleep(50);\n }\n\n if(forks) {\n robot.setForks(DOWN);\n }\n else if(earthIsFlat) {\n robot.setForks(UP);\n }\n\n //Holonomic Vector Math\n robot.drive(LX, LY, rotate);\n\n telemetry.addData(\"Drive\", \"Holonomic\");\n\n if(forks)\n telemetry.addData(\"Forks\", \"DOWN\");\n else\n telemetry.addData(\"Forks\", \"UP\");\n\n telemetry.addData(\"speedSet\", \"%.2f\", speedSet);\n telemetry.update();\n }\n }",
"@Override\r\n public void runOpMode() {\n\r\n mtrFL = hardwareMap.dcMotor.get(\"fl_drive\");\r\n mtrFR = hardwareMap.dcMotor.get(\"fr_drive\");\r\n mtrBL = hardwareMap.dcMotor.get(\"bl_drive\");\r\n mtrBR = hardwareMap.dcMotor.get(\"br_drive\");\r\n\r\n\r\n // Set directions for motors.\r\n mtrFL.setDirection(DcMotor.Direction.REVERSE);\r\n mtrFR.setDirection(DcMotor.Direction.FORWARD);\r\n mtrBL.setDirection(DcMotor.Direction.REVERSE);\r\n mtrBR.setDirection(DcMotor.Direction.FORWARD);\r\n\r\n\r\n //zero power behavior\r\n mtrFL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrFR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrBL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrBR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n\r\n\r\n // Set power for all motors.\r\n mtrFL.setPower(powFL);\r\n mtrFR.setPower(powFR);\r\n mtrBL.setPower(powBL);\r\n mtrBR.setPower(powBR);\r\n\r\n\r\n // Set all motors to run with given mode\r\n mtrFL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrFR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrBL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrBR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n\r\n waitForStart();\r\n\r\n // run until the end of the match (driver presses STOP)\r\n while (opModeIsActive()) {\r\n g1ch2 = -gamepad1.left_stick_y;\r\n g1ch3 = gamepad1.right_stick_x;\r\n g2ch2 = -gamepad2.left_stick_x;\r\n g2ch4 = -gamepad2.right_stick_x;\r\n g2left = gamepad2.left_trigger;\r\n g2right = gamepad2.right_trigger;\r\n\r\n\r\n powFL = Range.clip(g1ch2 + g1ch3, -1, 1);\r\n powFR = Range.clip(g1ch2 - g1ch3, -1, 1);\r\n powBL = Range.clip(g1ch2 + g1ch3, -1, 1);\r\n powBR = Range.clip(g1ch2 - g1ch3, -1, 1);\r\n\r\n\r\n mtrFL.setPower(powFL);\r\n mtrFR.setPower(powFR);\r\n mtrBL.setPower(powBL);\r\n mtrBR.setPower(powBR);\r\n sleep(50);\r\n }\r\n }",
"public int evalMode(int op, int mode) {\n if (mode == 4) {\n return this.state <= AppOpsManager.resolveFirstUnrestrictedUidState(op) ? 0 : 1;\n }\n return mode;\n }",
"@Override\r\n public void runOpMode() throws InterruptedException{\r\n //hardwareMapPrint();\r\n //telemetry.addData(\"Status\", \"Started\");\r\n //telemetry.update();\r\n //sleep(10000);\r\n //robot.setUp();\r\n //telemetry.addData(\"Status\", \"initialized\");\r\n //telemetry.update();\r\n setUp(hardwareMap, telemetry);\r\n waitForStart();\r\n\r\n while(opModeIsActive()){\r\n telemetry.addData(\"distance\", robot.ultrasonicSensor.getDistance(DistanceUnit.INCH));\r\n telemetry.update();\r\n }\r\n }",
"public void alg_INIT(){\nBlock.value=false;\nTokenOut.value=false;\nSystem.out.println(\"init head, grant false, token true\");\n\n}",
"protected void initialize () {\r\n if (initCommand!=null) matlabEng.engEvalString (id,initCommand);\r\n }",
"public void alg_INIT(){\r\n}",
"private void init () {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n public void run() {\n \tSwingOperatorView.stateOnCurrentObject();\n }\n\t\t});\n\t}",
"@Override\n public void init() {\n tol = new TeleOpLibrary();\n tol.init(this);\n telemetry.addLine(\"Initializing complete.\");\n telemetry.update();\n }",
"@Override\n public void initialize() {\n //manualActivated = !manualActivated;\n }",
"protected AutonomousMode() {\n driveMotions = new Vector();\n auxMotions = new Vector();\n }",
"public void initDevice() {\r\n\t\t\r\n\t}",
"@Override\n public void runOpMode(){\n motors[0][0] = hardwareMap.dcMotor.get(\"frontLeft\");\n motors[0][1] = hardwareMap.dcMotor.get(\"frontRight\");\n motors[1][0] = hardwareMap.dcMotor.get(\"backLeft\");\n motors[1][1] = hardwareMap.dcMotor.get(\"backRight\");\n // The motors on the left side of the robot need to be in reverse mode\n for(DcMotor[] motor : motors){\n motor[0].setDirection(DcMotor.Direction.REVERSE);\n }\n // Being explicit never hurt anyone, right?\n for(DcMotor[] motor : motors){\n motor[1].setDirection(DcMotor.Direction.FORWARD);\n }\n\n waitForStart();\n\n //Kill ten seconds\n runtime.reset();\n while(runtime.seconds()<10); runtime.reset();\n\n while(runtime.milliseconds()<700){\n // Loop through front and back motors\n for(DcMotor[] motor : motors){\n // Set left motor power\n motor[0].setPower(100);\n // Set right motor power\n motor[1].setPower(100);\n }\n }\n\n while(runtime.milliseconds()<200){\n // Loop through front and back motors\n for(DcMotor[] motor : motors){\n // Set left motor power\n motor[0].setPower(-100);\n // Set right motor power\n motor[1].setPower(-100);\n }\n }\n\n runtime.reset();\n // Loop through front and back motors\n for(DcMotor[] motor : motors){\n // Set left motor power\n motor[0].setPower(0);\n // Set right motor power\n motor[1].setPower(0);\n }\n }",
"@Override\n public void runInit() {\n }",
"@Override\n\tpublic void teleopInit() {\n\t\tif (driveTrainCommand != null) {\n\t\t\tdriveTrainCommand.start();\n\t\t}\n\t\tif (colorCommand != null) {\n\t\t\tcolorCommand.start();\n\t\t}\n\t\tif (intakeCommand != null) {\n\t\t\tintakeCommand.start();\n\t\t}\n\t\tif (outtakeCommand != null) {\n\t\t\touttakeCommand.start();\n\t\t}\n\t}",
"@Override\n public void runOpMode() throws InterruptedException {\n\n AutoMode = new AutoUC3_Park();\n autoIntake = new Intake(hardwareMap);\n autoArm = new Arm(hardwareMap);\n autoChassis = new Chassis(hardwareMap);\n\n waitForStart();\n\n //Initialize on press of play\n autoChassis.initChassis();\n autoArm.initArm();\n autoIntake.initIntake();\n\n while (opModeIsActive()&& !isStopRequested() && !parked) {\n parked = AutoMode.AutoUC3_Park_Method(\n this,\n playingAlliance,\n parkingPlaceNearSkyBridge,\n startInBuildingZone,\n autoChassis,\n autoArm,\n autoIntake);\n }\n }",
"private void init() {\n sensorEnabled = false;\n contextEventHistory = new ArrayList<ContextEvent>(CONTEXT_EVENT_HISTORY_SIZE);\n }",
"public void initMode()\r\n\t{\r\n\t\t_box = null;\r\n\t}",
"@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 robot.FL.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.FL.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }",
"public MM_DriveTrain(LinearOpMode opMode){\n this.opMode = opMode;\n flMotor = opMode.hardwareMap.get(DcMotor.class, \"flMotor\");\n frMotor = opMode.hardwareMap.get(DcMotor.class, \"frMotor\");\n blMotor = opMode.hardwareMap.get(DcMotor.class, \"blMotor\");\n brMotor = opMode.hardwareMap.get(DcMotor.class, \"brMotor\");\n\n flMotor.setDirection(DcMotor.Direction.REVERSE); // Set to REVERSE if using AndyMark motors\n frMotor.setDirection(DcMotor.Direction.FORWARD);// Set to FORWARD if using AndyMark motors\n blMotor.setDirection(DcMotor.Direction.REVERSE); // Set to REVERSE if using AndyMark motors\n brMotor.setDirection(DcMotor.Direction.FORWARD);// Set to FORWARD if using AndyMark motors\n\n setMotorPowerSame(0);\n\n initializeGyro();\n initHardware();\n }",
"@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"void setBasicMode() {basicMode = true;}",
"public void initialize()\r\n {\r\n isImageLoaded=false; \r\n isInverted=false;\r\n isBlured=false;\r\n isChanged=false;\r\n isCircularCrop= false;\r\n isRectangularCrop = false;\r\n isReadyToSave = false;\r\n didUndo = false;\r\n brightnessLevel=0.0f;\r\n }",
"@Override\n\tpublic void onModeChange() {\n\t}",
"@Override\n public void runOpMode() {\n ringShooterMotor1 = hardwareMap.get(DcMotorEx.class, \"ringShooterMotor1\");\n ringShooterMotor2 = hardwareMap.get(DcMotorEx.class, \"ringShooterMotor2\");\n ringFeederServo = hardwareMap.get(Servo.class, \"ringFeederServo\");\n ringFeederServo.setPosition(0.6); // sets initial position of servo\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n // runs until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n\n // here: add telemetry to see motor velocity if you want\n telemetry.addData(\"ring motor velocity\", ringShooterMotor1.getVelocity());\n telemetry.update();\n\n\n // Press right trigger for ring feeder servo\n if (gamepad2.right_trigger == 1) {\n// if (ringShooterMotor1.getVelocity() <= powerShootMotorVelocity){\n ringFeederServo.setPosition(1);\n sleep(300);\n ringFeederServo.setPosition(0.6);\n// }\n }\n\n // press Y for shooter motor for tower goal\n if (gamepad2.y) {\n ringShooterMotor1.setVelocity(towerGoalMotorVelocity);\n ringShooterMotor2.setVelocity(towerGoalMotorVelocity);\n\n }\n\n // press X for shooter motor for powershot\n if (gamepad2.x) {\n ringShooterMotor1.setVelocity(powerShootMotorVelocity);\n ringShooterMotor2.setVelocity(powerShootMotorVelocity);\n\n }\n }\n }",
"@Override\n public void teleopInit() {\n if (autonomousCommand != null) autonomousCommand.cancel();\n \n\t\tprocessRobotModeChange(RobotMode.TELEOP);\n }",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"public void autonomousInit() {\n \n }",
"public void runOpMode(){\n JAWLDrive3796 drive = new JAWLDrive3796(hardwareMap.dcMotor.get(\"left_drive\"), hardwareMap.dcMotor.get(\"right_drive\"));\n //Set the drive motors to run without encoders\n drive.setEncoders(false);\n //Create Grabber object\n JAWLGrabber3796 grabber = new JAWLGrabber3796(hardwareMap.servo.get(\"left_arm\"), hardwareMap.servo.get(\"right_arm\"));\n //Create Lift object\n JAWLLift3796 lift = new JAWLLift3796(hardwareMap.dcMotor.get(\"lift_motor\"));\n //Create color arm object\n JAWLColorArm3796 colorArm = new JAWLColorArm3796(hardwareMap.servo.get(\"color_arm\"));\n //Creates color sensor name\n ColorSensor colorSensorTemp = hardwareMap.get(ColorSensor.class, \"color_distance\");\n //Creates distance sensor name\n DistanceSensor distanceSensorTemp = hardwareMap.get(DistanceSensor.class, \"color_distance\");\n //Creates the color-distance sensor object\n JAWLColorSensor3796 colorDistanceSensor = new JAWLColorSensor3796(colorSensorTemp, distanceSensorTemp);\n //Creates the variable that will hold the color of the jewel\n String colorOfBall;\n //Creates relic arm objects\n //TTTTRelicArm3796 relicArm = new TTTTRelicArm3796(hardwareMap.dcMotor.get(\"relic_up_down\"), hardwareMap.dcMotor.get(\"relic_out_in\"), hardwareMap.dcMotor.get(\"relic_grab\"));\n //We never ended up having a relic arm!\n //The lift helper will set the idle power of the motor to a small double, keeping the lift from idly falling down\n boolean liftHelper = false;\n int i = 0;\n\n waitForStart();\n\n colorArm.armUp();\n\n while (opModeIsActive()) {\n //Here is where we define how the controllers should work\n //In theory, no logic retaining to controlling the components should be in here\n\n /*\n * Drive\n */\n\n //The left drive wheel is controlled by the opposite value of the left stick's y value on the first gamepad\n //The right drive is the same way except with the right drive wheel\n drive.leftDrive(-gamepad1.left_stick_y);\n drive.rightDrive(-gamepad1.right_stick_y);\n\n /*\n * Lift\n */\n telemetry.addData(\"Gamepad2 Right Stick Y\", -gamepad2.right_stick_y);\n\n if (-gamepad2.right_stick_y > 0) {\n //First checks to see if the right stick's negative y value is greater then zero.\n lift.moveMotor(-gamepad2.right_stick_y);\n //If it is, it sets the power for the motor to 1, and adds telemetry\n telemetry.addData(\"Lift Power\", 1);\n } else if (-gamepad2.right_stick_y < 0) {\n //Checks if the negative value of the right right stick's y position is less than zero\n lift.moveMotor(-0.1);\n //Sets the power for the motor to -0.1, and adds telemetry\n telemetry.addData(\"Lift Power\", -0.1);\n } else {\n //We check to see if the liftHelper is enabled\n if(liftHelper) {\n lift.moveMotor(0.1466 );\n } else {\n lift.moveMotor(0);\n }\n }\n\n\n\n /*\n * Lift helper control\n */\n\n if(gamepad2.a) {\n if(i == 0) {\n liftHelper = !liftHelper;\n }\n i = 5;\n }\n\n if(i != 0) {\n i--;\n }\n\n telemetry.addData(\"Lift Helper Enabled\", liftHelper);\n\n\n\n /*\n * Grabbers\n */\n if (gamepad2.left_trigger > 0) {\n //Closes the left arm, then displays the position in telemetry\n grabber.leftArmClose();\n double a = grabber.leftPosition();\n //Adds telemetry to display positions of grabbers, mostly for testing, but can be useful later on\n telemetry.addData(\"Left\", a);\n }\n\n if (gamepad2.left_bumper) {\n //Opens the left arm, then displays the position in telemetry\n grabber.leftArmOpen();\n double b = grabber.leftPosition();\n //We made the variables different as to avoid any and all possible errors\n telemetry.addData(\"Left\", b);\n }\n\n if (gamepad2.right_trigger > 0) {\n //Opens the right arm, then displays the position in telemetry\n grabber.rightArmClose();\n double c = grabber.rightPosition();\n telemetry.addData(\"Right\", c);\n }\n\n if (gamepad2.right_bumper) {\n //Closes the right arm, then displays the position in telemetry\n grabber.rightArmOpen();\n double d = grabber.rightPosition();\n telemetry.addData(\"Right\", d);\n }\n\n if (gamepad2.dpad_left){\n //Closes the left arm to a shorter distance\n grabber.leftArmShort();\n }\n\n if(gamepad2.dpad_right){\n //Closes the right arm to a shorter distance\n grabber.rightArmShort();\n\n }\n\n //Update all of our telemetries at once so we can see all of it at the same time\n telemetry.update();\n }\n }",
"void state_INIT(){\r\n eccState = INDEX_INIT;\r\n alg_INIT();\r\n INITO.serviceEvent(this);\r\n state_START();\r\n}",
"public void initializationMode() {\n int noOfPumpsOn;\n if (this.steamMessage.getDoubleParameter() != 0) { // steam measuring device is defective\n this.mode = State.EMERGENCY_STOP;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n return;\n }\n\n // check for water level detection failure\n if (waterLevelFailure()) {\n this.outgoing.send(new Message(MessageKind.LEVEL_FAILURE_DETECTION));\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n this.mode = State.EMERGENCY_STOP;\n return;\n }\n\n this.waterLevel = this.levelMessage.getDoubleParameter();\n this.steamLevel = this.steamMessage.getDoubleParameter();\n\n // checks if water level is ready to go to normal\n if (this.levelMessage.getDoubleParameter() > this.configuration.getMinimalNormalLevel()\n && this.levelMessage.getDoubleParameter() < this.configuration.getMaximalNormalLevel()) {\n\n turnOnPumps(-1);\n this.outgoing.send(new Message(MessageKind.PROGRAM_READY));\n return;\n }\n if (this.levelMessage.getDoubleParameter() > this.configuration.getMaximalNormalLevel()) {\n // empty\n this.outgoing.send(new Message(MessageKind.VALVE));\n this.openValve = true;\n } else if (this.levelMessage.getDoubleParameter() < this.configuration\n .getMinimalNormalLevel()) { // fill\n\n if (this.openValve) { // if valve is open, shuts valve\n this.outgoing.send(new Message(MessageKind.VALVE));\n this.openValve = false;\n }\n noOfPumpsOn = estimatePumps(this.steamMessage.getDoubleParameter(),\n this.levelMessage.getDoubleParameter());\n turnOnPumps(noOfPumpsOn);\n }\n\n }",
"@Override\n public void runOpMode() throws InterruptedException {\n distanceSensorInRange = false;\n myGlyphLift = new glyphLift(hardwareMap.dcMotor.get(\"glyph_lift\"));\n myColorSensorArm = new colorSensorArm(hardwareMap.servo.get(\"color_sensor_arm\"),hardwareMap.colorSensor.get(\"sensor_color\"), hardwareMap.servo.get(\"color_sensor_arm_rotate\"));\n myMechDrive = new mechDriveAuto(hardwareMap.dcMotor.get(\"front_left_motor\"), hardwareMap.dcMotor.get(\"front_right_motor\"), hardwareMap.dcMotor.get(\"rear_left_motor\"), hardwareMap.dcMotor.get(\"rear_right_motor\"));\n myGlyphArms = new glyphArms(hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_left_glyph_arm\"), hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_right_glyph_arm\"));\n myBoardArm = new boardArm(hardwareMap.dcMotor.get(\"board_arm\"));\n myRevColorDistanceSensor = new revColorDistanceSensor(hardwareMap.get(ColorSensor.class, \"rev_sensor_color_distance\"), hardwareMap.get(DistanceSensor.class, \"rev_sensor_color_distance\"));\n\n\n myColorSensorArm.colorSensorArmUpSlow();\n myColorSensorArm.colorRotateResting();\n //myGlyphArms.openRaisedGlyphArms(); //ensures robot is wihin 18\" by 18\" parameters\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n parameters.vuforiaLicenseKey = \"ASmjss3/////AAAAGQGMjs1d6UMZvrjQPX7J14B0s7kN+rWOyxwitoTy9i0qV7D+YGPfPeeoe/RgJjgMLabjIyRXYmDFLlJYTJvG9ez4GQSI4L8BgkCZkUWpAguRsP8Ah/i6dXIz/vVR/VZxVTR5ItyCovcRY+SPz3CP1tNag253qwl7E900NaEfFh6v/DalkEDppFevUDOB/WuLZmHu53M+xx7E3x35VW86glGKnxDLzcd9wS1wK5QhfbPOExe97azxVOVER8zNNF7LP7B+Qeticfs3O9pGXzI8lj3zClut/7aDVwZ10IPVk4oma6CO8FM5UtNLSb3sicoKV5QGiNmxbbOlnPxz9qD38UAHshq2/y0ZjI/a8oT+doCr\";\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n waitForStart();\n\n relicTrackables.activate();\n\n while (opModeIsActive()) {\n myGlyphArms.closeGlyphArms();\n sleep(2000);\n myMechDrive.vuforiaLeft(myGlyphArms);\n sleep(1000);\n requestOpModeStop();\n }\n }",
"public void setOp(int op) {\n\t\tthis.op = op;\n\t}",
"@Override\n public void runOpMode() {\n RobotOmniWheels5 myRobot = new RobotOmniWheels5(hardwareMap);\n\n // Put initialization blocks here.\n waitForStart();\n\n //code will continue to run until you hit stop in the app\n while(opModeIsActive()) {\n\n double leftStickYValue = gamepad1.left_stick_y;\n if (leftStickYValue < -.1) {\n //Set the robotspeed to the stick value\n //As Stick Y value is negative when pressed up, use negative in front\n myRobot.setRobotSpeed(-leftStickYValue);\n myRobot.move();\n } else {\n if (leftStickYValue > .1){\n //Set the robotspeed to the stick value\n //As Stick Y value is positive when pressed down, use negative in front to move back\n myRobot.setRobotSpeed(-leftStickYValue);\n myRobot.move();\n }\n else {\n myRobot.stopMoving();\n }\n }\n }\n }",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t}",
"private void initHardware(){\n }",
"private OperatorManager() {}",
"@Override\n public void teleopInit() {\n if (m_autonomousCommand != null) {\n m_autonomousCommand.cancel();\n }\n\n // Don't resume climbing\n IsHoldingBack = false;\n IsHoldingFront = false;\n\n safetyCount = 0;\n\n clearAllButtonStates();\n\n ArmsExtended = ArmsClosed = false;\n //ClimbFront.set(Value.kReverse);\n //ClimbBack.set(Value.kReverse);\n\n LiftSetpoint = Lifter.getSelectedSensorPosition();\n LiftRamp = new SRamp();\n LiftRamp.Rate = 300;\n LiftRamp.setOutput(Lifter.getSelectedSensorPosition());\n\n SpeedRamp = new SRamp();\n SpeedRamp.Rate = 0.06;\n SpeedRamp.setMaxAccelRate(0.004);\n\n VisionTable.getEntry(\"Tape\").setBoolean(true);\n\n Comp.start();\n }",
"@Override\n public void initEngine() {\n \n }",
"@Override\n public void initEngine() {\n \n }",
"@Override\n public void runOpMode() throws InterruptedException {\n\n //Uses code from HardwareSirvoBot to map all the hardware for us\n robot.init(hardwareMap);\n\n //Send message through telemetry\n telemetry.addLine(\"> Initializing program...\");\n telemetry.addLine(\"> Program successfully started.\");\n telemetry.update();\n\n //Waits for driver to press play\n waitForStart();\n\n //Use encoders to make robot move a certain amount of inches\n drive(DRIVE_SPEED, 1, 1, 10);\n drive(DRIVE_SPEED, -1, -5, 10);\n robot.leftMotor.setPower(0);\n robot.rightMotor.setPower(0);\n }",
"@Override\n protected void initialize(){\n drivetrain.clearOldMotionProfiles();\n drivetrain.zeroEncoders();\n try{\n drivetrain.loadMotionProfile(name, isInverted);\n } catch (IOException e) {\n done = true;\n }\n drivetrain.startMotionProfile(name);\n }",
"public void mode() {\n APIlib.getInstance().addJSLine(jsBase + \".mode();\");\n }",
"public void autonomousInit() {\n\t\t\n\t}",
"@Override\n\tpublic void start() {\n\t\t\n\t\t_mode.init();\n\t\t\n\t\t_mode.start();\n\t}",
"protected void initialize() {\r\n\t \tRobotMap.armarm_talon.changeControlMode(CANTalon.ControlMode.Position);\r\n\t }",
"private void init() {\n sensorEnabled = false;\n activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n contextEventHistory = new ArrayList<ContextEvent>(CONTEXT_EVENT_HISTORY_SIZE);\n }",
"protected void initialize() {\r\n x = 0;\r\n y = 0;\r\n driveTrain.reInit();\r\n }",
"public void autonomousInit() {\n\t\tswitch (autoMode) {\r\n\t\tcase 0:\r\n\t\t\tauto = new G_NoAuto();\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tauto = new G_Step();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tauto = new G_BlockThenFour();\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tauto = new G_BinTwoLeft();\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tauto = new G_StepBinCentre();\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tauto = new G_StepBinLeft();\t\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tauto = new G_Block();\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\t//Start the chosen Autonomous command. \r\n\t\tauto.start();\r\n\t\t//Cancel the tele-op command, in case it was running before autonomous began. \r\n\t\tteleop.cancel();\r\n\t\t// Start pushing sensor readings to the SD.\r\n\t\treadings.start();\r\n\r\n\t}",
"ROp() {super(null); _ops=new HashMap<>(); }",
"@Override\r\n\tprotected void processInit() {\n\r\n\t}",
"protected void initialize() {\n\t\televator.zeroEncoder();\n\t}",
"private void init()\n {\n sendData(REG_MMXCOMMAND, MMXCOMMAND_RESET);\n Delay.msDelay(50);\n // init motor operation parameters\n for (int i=0;i<CHANNELS;i++){\n motorParams[MOTPARAM_RAMPING][i] = MOTPARAM_OP_TRUE;\n motorParams[MOTPARAM_ENCODER_BRAKING][i] = MOTPARAM_OP_TRUE;\n motorParams[MOTPARAM_POWER][i] = 0;\n motorParams[MOTPARAM_REGULATE][i] = MOTPARAM_OP_TRUE;\n doCommand(CMD_SETPOWER, 100, i); // will set motorParams[MOTPARAM_POWER][channel]\n }\n \n }",
"private void initialize() {\n\t\t\n\t}",
"protected void initialize() {\n\t\t//System.out.println(\"Cube collector is spitting\");\n\t}"
]
| [
"0.7534318",
"0.73335266",
"0.7050642",
"0.70040435",
"0.69837034",
"0.6947779",
"0.68455285",
"0.68297756",
"0.68137085",
"0.6802639",
"0.67905587",
"0.6721115",
"0.66509503",
"0.66446257",
"0.6569132",
"0.65206116",
"0.64671886",
"0.64622",
"0.64580023",
"0.63948834",
"0.6363858",
"0.63526547",
"0.6329078",
"0.6307431",
"0.6278111",
"0.6269031",
"0.62634176",
"0.62382686",
"0.6224224",
"0.61624026",
"0.6145833",
"0.60527015",
"0.60480934",
"0.60323733",
"0.6029987",
"0.6000866",
"0.5986701",
"0.5979975",
"0.5975749",
"0.5971513",
"0.59488875",
"0.5945899",
"0.5934387",
"0.5926936",
"0.5920739",
"0.590499",
"0.5900615",
"0.5888376",
"0.5888238",
"0.5854373",
"0.5845666",
"0.58351004",
"0.58291996",
"0.58175033",
"0.58100116",
"0.57973045",
"0.5793197",
"0.5791343",
"0.57856196",
"0.5779141",
"0.57785827",
"0.57785827",
"0.5777124",
"0.5775966",
"0.5775794",
"0.5775626",
"0.5771083",
"0.57700604",
"0.57700604",
"0.57700604",
"0.57700604",
"0.57700604",
"0.5768825",
"0.57663065",
"0.57650554",
"0.5756892",
"0.57504016",
"0.5735054",
"0.5726837",
"0.57216424",
"0.571578",
"0.57150614",
"0.56973654",
"0.56950784",
"0.56950784",
"0.568963",
"0.5684969",
"0.56835437",
"0.5676712",
"0.5667938",
"0.5664124",
"0.56639284",
"0.5659518",
"0.56501764",
"0.5647626",
"0.5642969",
"0.5635572",
"0.5632445",
"0.56306154",
"0.5629093"
]
| 0.59983075 | 36 |
/ This method will be called once before entering loop() | @Override public void init_loop() {
loop_cnt_++;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override public void loop() {\n }",
"@Override\n public void loop()\n {\n }",
"@Override public void loop () {\n }",
"@Override\n public void loop() {\n\n }",
"@Override\n public void loop() {\n\n }",
"@Override\r\n public void init_loop() {\r\n }",
"@Override\r\n public void init_loop() {\r\n }",
"public void loop(){\n\t\t\n\t}",
"public void loop(){\n \n \n }",
"public void loop(){\n\t}",
"@Override\n public void init_loop() {}",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\r\n public void loop() {\r\n //CodeHere\r\n }",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void run() {\n\t\twhile(true){\n\t\t\t\n\t\t}\n\t}",
"@Override\r\n public int playGameLoop() {\r\n return 0;\r\n }",
"protected void run() {\r\n\t\t//\r\n\t}",
"@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tgetLocation();\r\n\t\t\t\t\tstartLooping();\r\n\t\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t}",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"public void arraiter() {\n \tthis.running = false;\n }",
"public void loop() {\n this.instructionList.restart();\t\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tisRepeatFlag = true;\n\t\t}",
"public void loop() {\n\t\tloop(1.0f, 1.0f);\n\t}",
"@Override\n\t\tpublic void run() {\n\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"public void resetLoop(){\n\t\tloopTime = 0;\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void loop() {\n smDrive.loop();\n smArm.loop();\n telemetry.update();\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"public void run() {\n\t\t\t\t\t\t}",
"@Override\n public void run() {\n \t\n }",
"@Override\n public void startTimeLoop() {\n MyLog.log(\"startTimeLoop::\");\n // handler.sendEmptyMessage(5);\n }",
"@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}"
]
| [
"0.756598",
"0.75376886",
"0.7396316",
"0.73947847",
"0.73947847",
"0.73138785",
"0.73138785",
"0.73055077",
"0.72986037",
"0.7184208",
"0.7153739",
"0.71342885",
"0.71342885",
"0.71342885",
"0.71342885",
"0.71342885",
"0.71342885",
"0.71342885",
"0.71342885",
"0.71342885",
"0.71342885",
"0.71342885",
"0.71342885",
"0.71342885",
"0.71342885",
"0.71342885",
"0.71342885",
"0.70125896",
"0.70119685",
"0.69369906",
"0.69369906",
"0.6930358",
"0.6912773",
"0.6912773",
"0.6888512",
"0.68776727",
"0.68253726",
"0.68120795",
"0.680983",
"0.6712066",
"0.67061824",
"0.67061824",
"0.67061824",
"0.67061824",
"0.67061824",
"0.67061824",
"0.67061824",
"0.67061824",
"0.67061824",
"0.6693677",
"0.6676537",
"0.6616697",
"0.6615895",
"0.6610984",
"0.6583014",
"0.6583014",
"0.65716755",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6565098",
"0.6550846",
"0.6550846",
"0.6550846",
"0.6550846",
"0.6550846",
"0.6550846",
"0.6550846",
"0.6550846",
"0.6550846",
"0.65464073",
"0.65464073",
"0.65464073",
"0.65464073",
"0.65464073",
"0.65464073",
"0.65464073",
"0.654381",
"0.654381",
"0.654381",
"0.6538342",
"0.65301347",
"0.65301347",
"0.65280974",
"0.6520609",
"0.65114754",
"0.65083784",
"0.65083784"
]
| 0.69152904 | 32 |
/ This method will be called once when the PLAY button is first pressed. | @Override public void start() {
timer_.reset();
resetControlVariables(); // need reset all key counters bcz they are used in init_loop()
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void nowPlaying() {\n\t}",
"public void play() {\n\t\t\r\n\t}",
"public void onPlayerPlay() {\n\t\trunOnUiThread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tplay.setVisibility(View.GONE);\n\t\t\t\tpause.setVisibility(View.VISIBLE);\n\t\t\t\tsetCurrentTrack();\n\t\t\t}\n\t\t});\n\t}",
"private void setPlayButtonToPause() {\n NowPlayingInformation.setPlayButtonStatus(1);\n MainActivity.displayPlayButton();\n }",
"@Override\n public void playStart() {\n }",
"public void onPlayStart(){\n\n\t}",
"public void play() {\n\t\tplay(true, true);\n\t}",
"default public void clickPlay() {\n\t\tremoteControlAction(RemoteControlKeyword.PLAY);\n\t}",
"public void play(){\n\t\t\n\t}",
"@Override\n\tpublic void play() {\n\t\t\n\t}",
"public void togglePlay() { }",
"@Override\n\tpublic void play() {\n\n\t}",
"public void play() { player.resume();}",
"public void play() {\n\n showIntro();\n startGame();\n\n }",
"public final void play() {\n\t\tinitialize();\n\t\tstartPlay();\n\t\tendPlay();\n\t}",
"public void onClickPlay() {\n if (player != null) {\n if (player.mediaPlayer.isPlaying()) {\n player.pauseMedia();\n changePlayPauseIcon(PLAY);\n isPauseResume = !isPauseResume;\n playListAdapter.setPlayPause(true);\n } else {\n if (isPauseResume) {\n player.resumeMedia();\n changePlayPauseIcon(PAUSE);\n isPauseResume = !isPauseResume;\n playListAdapter.setPlayPause(false);\n } else {\n playSelectSong();\n }\n }\n } else {\n playSelectSong();\n }\n\n }",
"public void Play();",
"public void onPlayButtonPressed(View view){\n ((ImageView)(findViewById(R.id.pauseButton))).setVisibility(View.VISIBLE);\n ((ImageView)(findViewById(R.id.playButton))).setVisibility(View.INVISIBLE);\n timerService.onPlayRequest();\n }",
"private void transport_play() {\n timerReset();\n playing = true;\n now_playing_play_button.setForeground(getDrawable(R.drawable.ic_pause_50dp));\n }",
"@Override\n\tpublic void playerStarted() {\n mPlaying = true;\n\t\tmStateManager.setState(PlayerState.PLAYING);\n\t}",
"void togglePlay();",
"public void play() {\n Selection selection;\n if ((selection = master.getWindowManager().getMain().getSelection()) == null) {\n startPlay();\n playShow(nextStartTime, -1 / 1000.0);\n } else {\n playSelection(selection);\n playShow(selection.start, selection.duration);\n }\n }",
"private void resume() { player.resume();}",
"public void play() {\n\t\tSystem.out.println(\"playing \"+title);\r\n\t}",
"private void startPlay() {\n isPlaying = true;\n isPaused = false;\n playMusic();\n }",
"void play(){\n\n\t\tnew X.PlayXicon().root.setOnClickListener(Play_TestsPresenter::cc);\n\t}",
"private void resume()\r\n {\r\n player.resume();\r\n }",
"@Override\n\tpublic void play() {\n\t\tSystem.out.println(\"We played Snokker today\");\n\t\t\n\t\t\n\t}",
"private void playButton(ActionEvent e) {\n if (paused) {\n timer.start();\n paused = false;\n } else {\n paused = true;\n timer.stop();\n }\n }",
"void play();",
"public void togglePlay() {\n\t\tif (playing)\n\t\t\tpause();\n\t\telse\n\t\t\tplay();\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tplayer.start();\r\n\t\t\t}",
"public static play() {\n\t\t\n\t}",
"public void onClick(View arg0) {\n\t\t\t\tif(!isPlay){\r\n\t\t\t\t\t//change to play button and stop view\r\n\t\t\t\t\thomeview_play_pause_button.setBackgroundDrawable(getResources().getDrawable(R.drawable.homeview_pause_button));\r\n\t\t\t\t\tisPlay = true;\r\n\t\t\t\t\tloadMediaPlayer();\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//change to pause button and play view\r\n\t\t\t\t\thomeview_play_pause_button.setBackgroundDrawable(getResources().getDrawable(R.drawable.homeview_play_button));\r\n\t\t\t\t\tisPlay = false;\r\n\t\t\t\t\tmMediaPlayer.stop();\r\n\t\t\t\t\t\r\n\t\t\t\t\tbuffer_lev1.setVisibility(View.INVISIBLE);\r\n\t\t\t\t\tbuffer_lev2.setVisibility(View.INVISIBLE);\r\n\t\t\t\t\tbuffer_lev3.setVisibility(View.INVISIBLE);\r\n\t\t\t\t\tbuffer_lev4.setVisibility(View.INVISIBLE);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}",
"public void play() {\n\t\tSystem.out.println(\"ting.. ting...\");\n\t}",
"protected void playS()\n\t\t{\n\t\t\tplayer.start();\n\t\t}",
"public void startPlaying() {\n\t\tpbrLoading.setVisibility(View.GONE);\n\t\tisPlaying = true;\n\t\tif (IjoomerApplicationConfiguration.isEnableVoiceReport && reportVoice) {\n\t\t\tlnrReportVoice.setVisibility(View.VISIBLE);\n\t\t\timgReport.setImageResource(reportImage);\n\n\t\t\tif (reportCaption != 0) {\n\t\t\t\ttxtReportCaption.setText(reportCaption);\n\t\t\t} else if (strReportCaption != null && strReportCaption.length() > 0) {\n\t\t\t\ttxtReportCaption.setText(strReportCaption);\n\t\t\t}\n\t\t} else {\n\t\t\tlnrReportVoice.setVisibility(View.GONE);\n\t\t}\n\t\tupdateView();\n\t}",
"@Override\r\npublic void Play() {\n\t\r\n}",
"boolean play();",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tplay();\n\t\t\t}",
"public void startPlaying() {\n \t\tif (!isPlaying) {\n \t\t\tisPlaying = true;\n \t\t\tnew PlayThread().start();\n \t\t}\n \t}",
"private void handlePlaybackButtonClick() {\n // playback stopped or new station - start playback\n// if (mPlaybackState != PLAYBACK_STATE_STARTED) {\n// startPlayback();\n// }\n// // playback active - stop playback\n// else {\n// stopPlayback();\n// }\n\n if (mPlaybackState == PLAYBACK_STATE_STOPPED) {\n startPlayback();\n }\n // playback active - stop playback\n else {\n stopPlayback();\n }\n\n }",
"public void btnPlaySong() {\n\t\tMusicApp.getAudioPlayer().playSong(track);\n\t}",
"@Override\r\n public void play()\r\n {\n\r\n }",
"public void setPlaying() {\n\t\tstate = State.INGAME;\n\t}",
"public void play() {\n try {\n mSessionBinder.play(mContext.getPackageName(), mCbStub);\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling play.\", e);\n }\n }",
"private void buttonPlayerAction() {\n play.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View arg0) {\n // check for already playing\n if (mp.isPlaying()) {\n mp.pause();\n // Changing button image to play button\n play.setImageResource(R.drawable.ic_play_arrow);\n } else {\n // Resume song\n mp.start();\n // Changing button image to pause button\n play.setImageResource(R.drawable.ic_pause);\n mHandler.post(mUpdateTimeTask);\n }\n\n }\n });\n }",
"@Override\n\t\tpublic void onLoaded(String arg0) {\n\t\t\t\tplayer.play();\n\t\t}",
"void play ();",
"public void playButton(View view) {\n\t\t// show loading dialog, first time may take a bit\n\t\tProgressDialog.show(this, getString(R.string.loadingLabel),\n\t\t\t\tgetString(R.string.loadingMessage));\n\t\tIntent intent = new Intent(this, PlayActivity.class);\n\t\tstartActivity(intent);\n\t}",
"private void pause() { player.pause();}",
"public void play() {\n\t\tSystem.out.println(\"TCL 电视机播放中...\");\r\n\t}",
"public static void setupNewGamePlay() {\r\n\t\tSTATUS = Gamestatus.PREPARED;\r\n\t\tGameplay.getInstance().start();\r\n\t\tgui.setMenu(new GameplayMenu(), true);\r\n\t}",
"@Override\r\n\tpublic void playCard() {\n\t\t\r\n\t}",
"public void playPauseTrack() {\n //Switch the play/pause drawables\n if (isPlaying) {\n mPlayPauseBtn.setImageResource(android.R.drawable.ic_media_pause);\n mPlayerService.resumeTrack();\n } else {\n mPlayPauseBtn.setImageResource(android.R.drawable.ic_media_play);\n mPlayerService.pauseTrack();\n }\n }",
"@Override\n\tpublic void play() {\n\t\tSystem.out.println(\"打击乐器奏乐~~!\");\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tif (player != null) {\n\t\t\tplayer.play();\n\t\t}\n\t\tMobclickAgent.onResume(this);\n\t}",
"public void start(){\n\t\tif (host.getGameSettings().isMusicOn()) {\r\n\t\t\tspr_btnMute.setFrame(0);\r\n\t\t}else{\r\n\t\t\tspr_btnMute.setFrame(1);\r\n\t\t}\r\n\t}",
"@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tmVideoContrl.playPrevious();\r\n\r\n\t\t\t\t\t\t\t}",
"@Override\n public void playStop() {\n }",
"@Override\n public void onClick(View arg0) {\n if (mp.isPlaying()) {\n mp.pause();\n // Changing button image to play button\n play.setImageResource(R.drawable.ic_play_arrow);\n } else {\n // Resume song\n mp.start();\n // Changing button image to pause button\n play.setImageResource(R.drawable.ic_pause);\n mHandler.post(mUpdateTimeTask);\n }\n\n }",
"@Override\n public void onClick(View v) {\n play(v);\n }",
"public void onPlayerNext() {\n\t\trunOnUiThread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tsetCurrentTrack();\n\t\t\t}\n\t\t});\n\t}",
"public void playAgain() {\r\n\t\t\r\n\t\tscreen.reset();\r\n\t\t\r\n\t}",
"@Override\n public void onClick(View view) {\n handlePlaybackButtonClick();\n }",
"public void play() {\n\t\tSystem.out.println(\"playing \"+title+\" by \" +artist);\n\t}",
"@Override\n protected void onPause() {\n super.onPause();\n pausePlayer();\n }",
"private void playBack() {\r\n\t\ttimer = new RecordTimer(labelRecordTime);\r\n\t\ttimer.start();\r\n\t\tisPlaying = true;\r\n\t\tplaybackThread = new Thread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tbuttonPlay.setText(\"Stop\");\r\n\t\t\t\t\tbuttonPlay.setIcon(iconStop);\r\n\t\t\t\t\tbuttonRecord.setEnabled(false);\r\n\r\n\t\t\t\t\tplayer.play(saveFilePath);\r\n\t\t\t\t\ttimer.reset();\r\n\r\n\t\t\t\t\tbuttonPlay.setText(\"Play\");\r\n\t\t\t\t\tbuttonRecord.setEnabled(true);\r\n\t\t\t\t\tbuttonPlay.setIcon(iconPlay);\r\n\t\t\t\t\tisPlaying = false;\r\n\r\n\t\t\t\t} catch (UnsupportedAudioFileException ex) {\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t} catch (LineUnavailableException ex) {\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tplaybackThread.start();\r\n\t}",
"public void play() {\n\t\tint requestStatus = mAudioManager.requestAudioFocus(\n\t\t\t\tmAudioFocusListener, AudioManager.STREAM_MUSIC,\n\t\t\t\tAudioManager.AUDIOFOCUS_GAIN);\n\n\t\tif (DEBUG)\n\t\t\tLog.d(TAG, \"Starting playback: audio focus request status = \"\n\t\t\t\t\t+ requestStatus);\n\n\t\tif (requestStatus != AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {\n\t\t\treturn;\n\t\t}\n\n\t\tmAudioManager.registerMediaButtonEventReceiver(new ComponentName(this\n\t\t\t\t.getPackageName(), MediaButtonIntentReceiver.class.getName()));\n\n\t\tif (mPlayer.isInitialized()) {\n\t\t\t// if we are at the end of the song, go to the next song first\n\t\t\tlong duration = mPlayer.duration();\n\t\t\tif (mRepeatMode != REPEAT_CURRENT && duration > 2000\n\t\t\t\t\t&& mPlayer.position() >= duration - 2000) {\n\t\t\t\tgotoNext(true);\n\t\t\t}\n\n\t\t\tmPlayer.start();\n\t\t\t// make sure we fade in, in case a previous fadein was stopped\n\t\t\t// because\n\t\t\t// of another focus loss\n\t\t\tmMediaplayerHandler.removeMessages(FADEDOWN);\n\t\t\tmMediaplayerHandler.sendEmptyMessage(FADEUP);\n\n\t\t\tif (!mIsSupposedToBePlaying) {\n\t\t\t\tmIsSupposedToBePlaying = true;\n\t\t\t\tnotifyChange(EVENT_PLAYSTATE_CHANGED);\n\t\t\t}\n\n\t\t\tupdateNotification();\n\t\t} else if (mPlayListLen <= 0) {\n\t\t\t// This is mostly so that if you press 'play' on a bluetooth headset\n\t\t\t// without every having played anything before, it will still play\n\t\t\t// something.\n\t\t\tshuffleAll();\n\t\t}\n\t}",
"public void onPlayerPause() {\n\t\trunOnUiThread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tplay.setVisibility(View.VISIBLE);\n\t\t\t\tpause.setVisibility(View.GONE);\n\t\t\t}\n\t\t});\n\t}",
"private void pause()\r\n {\r\n player.pause();\r\n }",
"@Override\n\tpublic void playCard() {\n\t\t\n\t}",
"private void initPlayMode() {\n initPlayModeView();\n initPlayModeController();\n }",
"@Override\r\n\tpublic void play() {\n\t\tSystem.out.println(\"Play Movie\");\r\n\t\t\r\n\t}",
"protected abstract void internalPlay();",
"public void play()\n\t{\n\t\tif (canPlay)\n\t\t{\n\t\t\tsong.play();\n\t\t\tsong.rewind();\n\t\t\tif (theSong == \"SG1\" || theSong == \"SG2\")\n\t\t\t\tcanPlay = false;\n\t\t}\n\t}",
"public void playCurrent() {\n owner.setMode(MyFlag.RADIO_MODE);\n\n // Case PAUSE\n if(radioPlayer.isPlaying()){\n radioPlayer.pause();\n this.isPaused = true;\n currentStationStatus = \"stop\";\n notifyUser(MyFlag.PLAY, currentStationName, currentStationGenre);\n return;\n }\n\n // Otherwise, case PLAY\n // Check for internet connection and update UI before streaming\n resetAllInfo();\n if(isOnline()) {\n currentStationStatus = \"Loading Stream...\";\n notifyUser(MyFlag.PAUSE, currentStationName, currentStationStatus);\n } else {\n currentStationStatus = \"No Internet Connection\";\n notifyUser(MyFlag.PAUSE, currentStationName, currentStationStatus);\n return;\n }\n\n radioPlayer.reset();\n isPaused = false;\n\n try {\n radioPlayer.setDataSource(radioList.get(currentStation).getUrl());\n radioPlayer.prepareAsync();\n radioPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\n public void onPrepared(MediaPlayer mp) {\n radioPlayer.start(); //start streaming\n }\n });\n // fetch data from server to update notification bar\n fetch(radioList.get(currentStation).getUrl());\n } catch (Exception e) {\n // IllegalArgumentException , IOException, IllegalStateException\n // Are all because of Error setting data source (bad url)\n //e.printStackTrace();\n resetAllInfoExceptBitrate();\n currentStationStatus = \"Url not accessible\";\n notifyUser(MyFlag.PAUSE, currentStationName, currentStationStatus);\n }\n }",
"@Override\n\tpublic void resume() {\n\t\tPhoneDevice.Settings.playMusic(PhoneDevice.Settings.MusicEnum.psyche_up);\n\t \n\t}",
"private void i_win() {\n\t\tif (MainMusic.isPlaying())\n\t\t\tMainMusic.stop();\n\t\tMainMusic = MediaPlayer.create(Game.this, R.raw.win);\n\t\tMainMusic.start();\n\t\tgame_panel.Pause_game=true;\n\t\tWinDialog.setVisibility(View.VISIBLE);\n\t}",
"@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tmVideoContrl.playNext();\r\n\r\n\t\t\t\t\t\t\t}",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t\tmyPlayer.release();\r\n\t\tstartButton.setImageResource(R.drawable.quick);\r\n\t\tselectButton.setImageResource(R.drawable.select);\t\r\n\t}",
"public void playSelectSong() {\n isStart = false;\n if (getCurrentSong() == 0) {\n audioList.get(getCurrentSong()).setSelect(true);\n playListAdapter.notifyItemChanged(getCurrentSong());\n }\n isPauseResume = false;\n if (player != null) {\n player.stopMedia();\n }\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n /*new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n }\n }, DELAY_TIME);*/\n }",
"@Override\r\n\tpublic void playMonumentCard() {\n\t\t\r\n\t}",
"public void play() {\n\t\tpanel.remove(easy);\n\t\tpanel.remove(hard);\n\t\tdown.setVisible(true);\n\t\tmarket.setVisible(true);\n\t\tinfo.setVisible(true);\n\t}",
"private void transport_resume() {\n timerResume();\n playing = true;\n now_playing_play_button.setForeground(getDrawable(R.drawable.ic_pause_50dp));\n }",
"public void startCommand() {\r\n _playing = true;\r\n }",
"private void setUIStatePlaying(){\n play.setEnabled(false);\n pause.setEnabled(true);\n stop.setEnabled(true);\n }",
"@Override\n\tpublic void play() {\n\t\tGuitar.super.play();\n\t\tPiano.super.play();\n\t}",
"public void resume() {\n playing = true;\n gameThread = new Thread(this);\n gameThread.start();\n }",
"public void playTurn() {\r\n\r\n }",
"private void gotoPlay() {\n Intent launchPlay = new Intent(this, GameConfig.class);\n startActivity(launchPlay);\n }",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tintroSong.release();\n\t}",
"public void resume() {\n playing = true;\n gameThread = new Thread(this);\n gameThread.start();\n }",
"public void playAgain();",
"private void play()\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n stop();\n musicPlayer.play();\n }",
"public void play() {\n\t\ttry {\n\t\t\tthis.mMediaPlayer.start();\n\t\t\tLog.w(\"AUDIO PLAYER\", \"just started playing\");\n\t\t} catch (IllegalStateException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.isPlaying = true;\n\t\tthis.incrementPlaybackTime();\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmainFrame.mainToolBar.jtb_play.doClick();\n\t\t\t}",
"@Override\n public void play() {\n System.out.println(\"AppleTV, opened\");\n }",
"@Override\r\n\tpublic void onPlayComplete() {\n\t\tmPlayAudioThread = null;\r\n\t\tdestroyPcm();\r\n\t\tif (mPlayState != PlayState.MPS_PAUSE) {\r\n\t\t\tsetPlayState(PlayState.MPS_PREPARE);\r\n\t\t}\r\n\t}",
"public void pausePlayer(){\n this.stopRadio();\n }",
"public void play(View view) {\n song1.start();\n\n pauseButton.setEnabled(true);\n stopButton.setEnabled(true);\n playButton.setEnabled(false);\n\n Context context = getApplicationContext();\n CharSequence text = \"The song is now playing.\";\n int duration = Toast.LENGTH_SHORT;\n Toast playMessage= Toast.makeText(context, text, duration);\n playMessage.show();\n }"
]
| [
"0.7731213",
"0.77192867",
"0.76894546",
"0.76735127",
"0.7585466",
"0.7560073",
"0.753749",
"0.75012106",
"0.7494187",
"0.74347675",
"0.74189943",
"0.73955697",
"0.73599666",
"0.73554343",
"0.735144",
"0.73403615",
"0.7328588",
"0.7305083",
"0.72918075",
"0.7267212",
"0.7223115",
"0.7222197",
"0.72188824",
"0.7215151",
"0.7205792",
"0.7150596",
"0.7144728",
"0.71400774",
"0.71292615",
"0.71162367",
"0.70970017",
"0.70960355",
"0.7095117",
"0.7094602",
"0.70930094",
"0.7083176",
"0.7063",
"0.70437783",
"0.70126826",
"0.70028335",
"0.7002426",
"0.6986434",
"0.69846296",
"0.6983937",
"0.69802094",
"0.69801277",
"0.6979093",
"0.69701606",
"0.69686073",
"0.695574",
"0.69518477",
"0.69188195",
"0.6915201",
"0.69129753",
"0.69116217",
"0.6906244",
"0.6903089",
"0.6898636",
"0.689678",
"0.6888082",
"0.6886961",
"0.68783706",
"0.68699014",
"0.68501365",
"0.68460983",
"0.6836389",
"0.6829116",
"0.682742",
"0.68253136",
"0.6824252",
"0.6795217",
"0.67915213",
"0.679132",
"0.6772948",
"0.6770238",
"0.6765",
"0.6760825",
"0.6755061",
"0.6751136",
"0.67421025",
"0.6737072",
"0.6736999",
"0.6733355",
"0.67292994",
"0.6721319",
"0.671452",
"0.6710779",
"0.6710166",
"0.67100114",
"0.6709922",
"0.6708165",
"0.6705598",
"0.67042714",
"0.67003524",
"0.66930723",
"0.66790354",
"0.6668849",
"0.6660481",
"0.6653256",
"0.6649454",
"0.66483516"
]
| 0.0 | -1 |
/ This method will be called repeatedly in a loop | @Override public void loop () {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void loop()\n {\n }",
"@Override public void loop() {\n }",
"@Override\n public void loop() {\n\n }",
"@Override\n public void loop() {\n\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"public void loop(){\n \n \n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"public void loop(){\n\t\t\n\t}",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t}",
"protected void runEachSecond() {\n \n }",
"@Override public void init_loop() {\n loop_cnt_++;\n }",
"@Override\n protected void runOneIteration() throws Exception {\n }",
"@Override\r\n public void init_loop() {\r\n }",
"@Override\r\n public void init_loop() {\r\n }",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"public void onRepeat() {\n\t\t// TODO Auto-generated method stub\n\t\tLastWholeDelta = 0;\n\t}",
"@Override\r\n public void loop() {\r\n //CodeHere\r\n }",
"public void loop(){\n\t}",
"private static void iterator() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tisRepeatFlag = true;\n\t\t}",
"@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\n public void init_loop() {}",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}",
"@Override\n\t\tpublic void run() {\n\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"protected void run() {\r\n\t\t//\r\n\t}",
"@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}",
"protected void runAfterIteration() {}",
"public void run() {\n\t\t\t\t\t\t}",
"public void run() {\n\t\t\r\n\t}",
"public void run() {\n\t\t\r\n\t}",
"@Override\n public void run()\n {\n }",
"@Override\n public void run()\n {\n }",
"@Override\n public void run() {\n \t\n }",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"protected void refresh()\n {\n refresh(System.currentTimeMillis());\n }",
"public void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void run() {\n\t\twhile(true){\n\t\t\t\n\t\t}\n\t}",
"@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}",
"public void run() {\n\n\t\t\tbumpCount = 0;\n\t\t}",
"@Override\n public void update() {\n \n }"
]
| [
"0.6837796",
"0.67747265",
"0.6774561",
"0.6774561",
"0.67131066",
"0.67131066",
"0.67050767",
"0.6683074",
"0.6683074",
"0.66689223",
"0.66470885",
"0.6589741",
"0.6566706",
"0.6490962",
"0.6475911",
"0.6461972",
"0.6461972",
"0.6449044",
"0.64268386",
"0.6419718",
"0.6414321",
"0.6390374",
"0.6385092",
"0.637281",
"0.63381934",
"0.63381934",
"0.63381934",
"0.63381934",
"0.63381934",
"0.63381934",
"0.63381934",
"0.63381934",
"0.63381934",
"0.6317579",
"0.6310532",
"0.6310532",
"0.6310532",
"0.6310532",
"0.6310532",
"0.6310532",
"0.6310532",
"0.6310532",
"0.6310532",
"0.6310532",
"0.6310532",
"0.6310532",
"0.6310532",
"0.6310532",
"0.6310532",
"0.6310532",
"0.63084066",
"0.6296171",
"0.6279883",
"0.6279883",
"0.6267311",
"0.6267311",
"0.6267311",
"0.6267311",
"0.6267311",
"0.6267311",
"0.6267311",
"0.62546676",
"0.62546676",
"0.62540656",
"0.62540656",
"0.62540656",
"0.6246774",
"0.62289405",
"0.62289405",
"0.6213026",
"0.62042826",
"0.62031066",
"0.62031066",
"0.6179808",
"0.6179808",
"0.6177435",
"0.6175252",
"0.6175252",
"0.6175252",
"0.6175252",
"0.6175252",
"0.6175252",
"0.6175252",
"0.6175252",
"0.6175252",
"0.6175252",
"0.6175252",
"0.6175252",
"0.6175252",
"0.6175252",
"0.6175252",
"0.6175252",
"0.61634123",
"0.61634123",
"0.6160827",
"0.61322075",
"0.6131181",
"0.6126302",
"0.6121421",
"0.6106864"
]
| 0.66494226 | 10 |
/ Code to run when the op mode is first disabled goes here | @Override public void stop () {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void runOpMode() {\n servo0 = hardwareMap.servo.get(\"servo0\");\n servo1 = hardwareMap.servo.get(\"servo1\");\n digital0 = hardwareMap.digitalChannel.get(\"digital0\");\n motor0 = hardwareMap.dcMotor.get(\"motor0\");\n motor1 = hardwareMap.dcMotor.get(\"motor1\");\n motor0B = hardwareMap.dcMotor.get(\"motor0B\");\n motor2 = hardwareMap.dcMotor.get(\"motor2\");\n blinkin = hardwareMap.get(RevBlinkinLedDriver.class, \"blinkin\");\n motor3 = hardwareMap.dcMotor.get(\"motor3\");\n park_assist = hardwareMap.dcMotor.get(\"motor3B\");\n\n if (digital0.getState()) {\n int_done = true;\n } else {\n int_done = false;\n }\n motor_stuff();\n waitForStart();\n if (opModeIsActive()) {\n while (opModeIsActive()) {\n lancher_position();\n slow_mode();\n drive_robot();\n foundation_grabber(1);\n launcher_drive();\n data_out();\n Pickingupblockled();\n lettingoutblockled();\n Forwardled();\n backwardled();\n Turnleftled();\n Turnrightled();\n Stationaryled();\n }\n }\n }",
"@Override\n public abstract void runOpMode();",
"@Override\n public void runOpMode() {\n initialize();\n\n //wait for user to press start\n waitForStart();\n\n if (opModeIsActive()) {\n\n // drive forward 24\"\n // turn left 90 degrees\n // turnLeft(90);\n // drive forward 20\"\n // driveForward(20);\n // turn right 90 degrees\n // turnRight(90);\n // drive forward 36\"\n // driveForward(36);\n\n }\n\n\n }",
"@Override\n public void runOpMode() {\n motorFL = hardwareMap.get(DcMotor.class, \"motorFL\");\n motorBL = hardwareMap.get(DcMotor.class, \"motorBL\");\n motorFR = hardwareMap.get(DcMotor.class, \"motorFR\");\n motorBR = hardwareMap.get(DcMotor.class, \"motorBR\");\n landerRiser = hardwareMap.get(DcMotor.class, \"lander riser\");\n landerRiser = hardwareMap.get(DcMotor.class, \"lander riser\");\n landerRiser.setDirection(DcMotor.Direction.FORWARD);\n landerRiser.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n markerDrop = hardwareMap.get(Servo.class, \"marker\");\n markerDrop.setDirection(Servo.Direction.FORWARD);\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n runtime.reset();\n\n //Landing & unlatching\n landerRiser.setPower(-1);\n telemetry.addData(\"Status\", \"Descending\");\n telemetry.update();\n sleep(5550);\n landerRiser.setPower(0);\n telemetry.addData(\"Status\",\"Unhooking\");\n telemetry.update();\n move(-0.5, 600, true);\n strafe(-0.4,0.6, 3600, true);\n move(0.5,600,true);\n markerDrop.setPosition(0);\n sleep(1000);\n markerDrop.setPosition(0.5);\n sleep(700);\n markerDrop.setPosition(0);\n strafe(0, -0.5,500,true);\n strafe(0.5, -0.25, 8500, true);\n\n }",
"@Override\n public void resetDeviceConfigurationForOpMode() {\n\n }",
"@Override\n public void runOpMode() {\n\n robot.init(hardwareMap);\n robot.MotorRightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.MotorLeftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.MotorRightFront.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.MotorLeftFront.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n /** Wait for the game to begin */\n while (!isStarted()) {\n telemetry.addData(\"angle\", \"0\");\n telemetry.update();\n }\n\n\n }",
"@Override\n public void runOpMode() {\n commands.init(hardwareMap);\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n // run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n sleep(30000);\n }\n }",
"public void runOpMode() {\n robot.init(hardwareMap);\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n robot.leftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n idle();\n\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n // Send telemetry message to indicate successful Encoder reset\n telemetry.addData(\"Path0\", \"Starting at %7d :%7d\",\n robot.leftMotor.getCurrentPosition(),\n robot.rightMotor.getCurrentPosition());\n telemetry.addData(\"Gyro Heading:\", \"%.4f\", getHeading());\n telemetry.update();\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n\n parameters.vuforiaLicenseKey = \"Adiq0Gb/////AAAAme76+E2WhUFamptVVqcYOs8rfAWw8b48caeMVM89dEw04s+/mRV9TqcNvLkSArWax6t5dAy9ISStJNcnGfxwxfoHQIRwFTqw9i8eNoRrlu+8X2oPIAh5RKOZZnGNM6zNOveXjb2bu8yJTQ1cMCdiydnQ/Vh1mSlku+cAsNlmfcL0b69Mt2K4AsBiBppIesOQ3JDcS3g60JeaW9p+VepTG1pLPazmeBTBBGVx471G7sYfkTO0c/W6hyw61qmR+y7GJwn/ECMmXZhhHkNJCmJQy3tgAeJMdKHp62RJqYg5ZLW0FsIh7cOPRkNjpC0GmMCMn8AbtfadVZDwn+MPiF02ZbthQN1N+NEUtURP0BWB1CmA\";\n\n\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.FRONT;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n telemetry.addData(\">\", \"Press Play to start\");\n telemetry.update();\n\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n relicTrackables.activate();\n\n //while (opModeIsActive()) {\n\n /**\n * See if any of the instances of {@link relicTemplate} are currently visible.\n * {@link RelicRecoveryVuMark} is an enum which can have the following values:\n * UNKNOWN, LEFT, CENTER, and RIGHT. When a VuMark is visible, something other than\n * UNKNOWN will be returned by {@link RelicRecoveryVuMark#from(VuforiaTrackable)}.\n */\n RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.from(relicTemplate);\n while (vuMark == RelicRecoveryVuMark.UNKNOWN) {\n vuMark = RelicRecoveryVuMark.from(relicTemplate);\n /* Found an instance of the template. In the actual game, you will probably\n * loop until this condition occurs, then move on to act accordingly depending\n * on which VuMark was visible. */\n }\n telemetry.addData(\"VuMark\", \"%s visible\", vuMark);\n telemetry.update();\n sleep(550);\n\n //switch (vuMark) {\n // case LEFT: //RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.LEFT;\n // coLumn = 2;\n // case CENTER:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.CENTER;\n // coLumn = 1;\n // case RIGHT:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.RIGHT;\n // coLumn = 0;\n //}\n if ( vuMark == RelicRecoveryVuMark.LEFT) {\n coLumn = 2;\n }\n else if(vuMark == RelicRecoveryVuMark.RIGHT){\n coLumn = 0;\n }\n else if(vuMark == RelicRecoveryVuMark.CENTER){\n coLumn = 1;\n }\n\n\n telemetry.addData(\"coLumn\", \"%s visible\", coLumn);\n telemetry.update();\n sleep(550);\n\n\n\n//if jewej is red 1 if jewel is blue 2\n\n // if(jewel == 1) {\n // gyroturn(-10, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //gyroturn(-2, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n //else if(jewel == 2){\n // gyroturn(10, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n // gyroturn(-2, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[0][coLumn], disandTurn[0][coLumn], 5.0); // S1: Forward 24 Inches with 5 Sec timeout shoot ball\n\n gyroturn(disandTurn[1][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[0], -turndistance[0], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[2][coLumn], disandTurn[2][coLumn], 5.0); // S3: Forward 43.3 iNCHES\n\n gyroturn(disandTurn[3][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[4][coLumn], disandTurn[4][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n gyroturn(disandTurn[5][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[6][coLumn], disandTurn[6][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n\n Outake();\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[7][coLumn], disandTurn[7][coLumn], 5.0);// S6: Forward 48 inches with 4 Sec timeout\n }",
"@Override\n public void runOpMode() {\n RobotMain main = new RobotMain(this,hardwareMap,telemetry);\n\n //initialize controls\n imuTeleOpDualGamepad control = new imuTeleOpDualGamepad(main,gamepad1,gamepad2);\n\n waitForStart();\n\n //Pull the tail back from autonomous\n main.JewelArm.setServo(.65);\n\n //Continually run the control program in the algorithm\n while (opModeIsActive()) control.run();\n }",
"@Override\n public void runOpMode () {\n motor1 = hardwareMap.get(DcMotor.class, \"motor1\");\n motor2 = hardwareMap.get(DcMotor.class, \"motor2\");\n\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n //Wait for game to start (driver presses PLAY)\n waitForStart();\n\n /*\n the overridden runOpMode method happens with every OpMode using the LinearOpMode type.\n hardwareMap is an object that references the hardware listed above (private variables).\n The hardwareMap.get method matches the name of the device used in the configuration, so\n we would have to change the names (ex. motorTest to Motor 1 or Motor 2 (or something else))\n if not, the opMode won't recognize the device\n\n in the second half of this section, it uses something called telemetry. In the first and\n second lines it sends a message to the driver station saying (\"Status\", \"Initialized\") and\n then it prompts the driver to press start and waits. All linear functions should have a wait\n for start command so that the robot doesn't start executing the commands before the driver\n wants to (or pushes the start button)\n */\n\n //run until end of match (driver presses STOP)\n double tgtpower = 0;\n while (opModeIsActive()) {\n telemetry.addData(\"Left Stick X\", this.gamepad1.left_stick_x);\n telemetry.addData(\"Left Stick Y\", this.gamepad1.left_stick_y);\n telemetry.addData(\"Right Stick X\", this.gamepad1.right_stick_x);\n telemetry.addData(\"Right Stick Y\", this.gamepad1.right_stick_y);\n if (this.gamepad1.left_stick_y < 0){\n tgtpower=-this.gamepad1.left_stick_y;\n motor1.setPower(tgtpower);\n motor2.setPower(-tgtpower);\n }else if (this.gamepad1.left_stick_y > 0){\n tgtpower=this.gamepad1.left_stick_y;\n motor1.setPower(-tgtpower);\n motor2.setPower(tgtpower);\n }else if (this.gamepad1.left_stick_x > 0){\n tgtpower=this.gamepad1.left_stick_x;\n motor1.setPower(tgtpower);\n motor2.setPower(tgtpower);\n }else if (this.gamepad1.left_stick_x < 0){\n tgtpower=-this.gamepad1.left_stick_x;\n motor1.setPower(-tgtpower);\n motor2.setPower(-tgtpower);\n }else{\n motor1.setPower(0);\n motor2.setPower(0);\n }\n telemetry.addData(\"Motor1 Power\", motor1.getPower());\n telemetry.addData(\"Motor2 Power\", motor2.getPower());\n telemetry.addData(\"Status\", \"Running\");\n telemetry.update ();\n\n\n /*\n if (this.gamepad1.right_stick_x == 1){\n //trying to make robot turn right, == 1 may be wrong\n motor2.setPower(-1);\n }\n else if (this.gamepad1.right_stick_x == -1){\n //trying to make robot turn left, == -1 may be wrong\n motor1.setPower(-1);\n }\n else {\n\n }\n */\n\n\n /*\n After the driver presses start,the opMode enters a while loop until the driver presses stop,\n while the loop is running it will continue to send messages of (\"Status\", \"Running\") to the\n driver station\n */\n\n\n }\n }",
"@Override\n\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n\n // Initialize the hardware variables. Note that the strings used here as parameters\n // to 'get' must correspond to the names assigned during the robot configuration\n // step (using the FTC Robot Controller app on the phone).\n // FR = hardwareMap.get(DcMotor.class, \"FR\");\n // FL = hardwareMap.get(DcMotor.class, \"FL\");\n // BR = hardwareMap.get(DcMotor.class, \"BR\");\n //BL = hardwareMap.get(DcMotor.class, \"BL\");\n //yoo are ___\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n/* FR.setDirection(DcMotor.Direction.FORWARD);\n FL.setDirection(DcMotor.Direction.REVERSE);\n BR.setDirection(DcMotor.Direction.FORWARD);\n BL.setDirection(DcMotor.Direction.REVERSE);\n\n */ RevBlinkinLedDriver blinkinLedDriver;\n RevBlinkinLedDriver.BlinkinPattern pattern;\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n blinkinLedDriver = this.hardwareMap.get(RevBlinkinLedDriver.class, \"PrettyBoi\");\n blinkinLedDriver.setPattern(RevBlinkinLedDriver.BlinkinPattern.RAINBOW_WITH_GLITTER);\n// runtime.reset();\n\n // run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n\n\n\n // Show the elapsed game time and wheel power.\n// telemetry.addData(\"Status\", \"Run Time: \" + runtime.toString());\n// // telemetry.addData(\"Motors\", \"FL (%.2f), FR (%.2f), BL (%.2f), BR (%.2f)\", v1, v2, v3, v4);\n// telemetry.update();\n }\n }",
"@Override \n public void runOpMode() \n {\n leftMotors = hardwareMap.get(DcMotor.class, \"left_Motors\");\n rightMotors = hardwareMap.get(DcMotor.class, \"right_Motors\");\n vLiftMotor = hardwareMap.get(DcMotor.class, \"vLift_Motor\"); \n \n leftMotors.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightMotors.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftMotors.setDirection(DcMotor.Direction.REVERSE);\n rightMotors.setDirection(DcMotor.Direction.FORWARD);\n vLiftMotor.setDirection(DcMotor.Direction.REVERSE);\n vLiftMotor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n \n waitForStart(); //press play button, actives opMode\n intakePivotServo.setPosition(intakePivotServoPos);\n while (opModeIsActive()) \n { \n drive();\n pivotIntake();\n pivotLift();\n \n }//opModeIsActive \n \n }",
"@Override\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Initializing. Please Wait...\");\n telemetry.update();\n\n\n //Use the Teleop initialization method\n testPaddle = hardwareMap.get(CRServo.class, \"servoPaddle\");\n\n //Tell drivers that initializing is now complete\n telemetry.setAutoClear(true);\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n runtime.reset();\n\n // run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n telemetry.addData(\"Status\", \"Run Time: \" + runtime.toString());\n\n testPaddle.setPower(0.80);\n\n telemetry.update();\n\n }\n\n }",
"@Override\n public void runOpMode() {\n float strafeRight;\n float strafeLeft;\n\n frontRight = hardwareMap.dcMotor.get(\"frontRight\");\n backRight = hardwareMap.dcMotor.get(\"backRight\");\n frontLeft = hardwareMap.dcMotor.get(\"frontLeft\");\n backLeft = hardwareMap.dcMotor.get(\"backLeft\");\n flipper = hardwareMap.crservo.get(\"flipper\");\n\n // Put initialization blocks here.\n frontRight.setDirection(DcMotorSimple.Direction.REVERSE);\n backRight.setDirection(DcMotorSimple.Direction.REVERSE);\n waitForStart();\n while (opModeIsActive()) {\n // Power to drive\n frontRight.setPower(gamepad1.right_stick_y * 0.5);\n frontRight.setPower(gamepad1.right_stick_y * 0.75);\n backRight.setPower(gamepad1.right_stick_y * 0.75);\n frontLeft.setPower(gamepad1.left_stick_y * 0.75);\n backLeft.setPower(gamepad1.left_stick_y * 0.75);\n flipper.setPower(gamepad2.left_stick_y);\n // Strafing code\n strafeRight = gamepad1.right_trigger;\n strafeLeft = gamepad1.left_trigger;\n if (strafeRight != 0) {\n frontLeft.setPower(-(strafeRight * 0.8));\n frontRight.setPower(strafeRight * 0.8);\n backLeft.setPower(strafeRight * 0.8);\n backRight.setPower(-(strafeRight * 0.8));\n } else if (strafeLeft != 0) {\n frontLeft.setPower(strafeLeft * 0.8);\n frontRight.setPower(-(strafeLeft * 0.8));\n backLeft.setPower(-(strafeLeft * 0.8));\n backRight.setPower(strafeLeft * 0.8);\n }\n // Creep\n if (gamepad1.dpad_up) {\n frontRight.setPower(-0.4);\n backRight.setPower(-0.4);\n frontLeft.setPower(-0.4);\n backLeft.setPower(-0.4);\n } else if (gamepad1.dpad_down) {\n frontRight.setPower(0.4);\n backRight.setPower(0.4);\n frontLeft.setPower(0.4);\n backLeft.setPower(0.4);\n } else if (gamepad1.dpad_right) {\n frontRight.setPower(-0.4);\n backRight.setPower(-0.4);\n } else if (gamepad1.dpad_left) {\n frontLeft.setPower(-0.4);\n backLeft.setPower(-0.4);\n }\n if (gamepad1.x) {\n frontLeft.setPower(1);\n backLeft.setPower(1);\n frontRight.setPower(1);\n backRight.setPower(1);\n sleep(200);\n frontRight.setPower(1);\n backRight.setPower(1);\n frontLeft.setPower(-1);\n backLeft.setPower(-1);\n sleep(700);\n }\n telemetry.update();\n }\n }",
"@Override\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n leftFront = hardwareMap.get(DcMotor.class, \"left_front\");\n rightFront = hardwareMap.get(DcMotor.class, \"right_front\");\n leftBack = hardwareMap.get(DcMotor.class, \"left_back\");\n rightBack = hardwareMap.get(DcMotor.class, \"right_back\");\n\n\n leftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n leftBack.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n right = hardwareMap.get(Servo.class, \"right\");\n left = hardwareMap.get(Servo.class, \"left\");\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n leftFront.setDirection(DcMotor.Direction.REVERSE);\n rightFront.setDirection(DcMotor.Direction.FORWARD);\n leftBack.setDirection(DcMotor.Direction.REVERSE);\n rightBack.setDirection(DcMotor.Direction.FORWARD);\n\n leftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n digitalTouch = hardwareMap.get(DigitalChannel.class, \"sensor_digital\");\n digitalTouch.setMode(DigitalChannel.Mode.INPUT);\n\n right.setDirection(Servo.Direction.REVERSE);\n\n right.scaleRange(0, 0.25);\n left.scaleRange(0.7, 1);\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n\n servo(0);\n runtime.reset();\n encoderSideways(0.25, -5, -5, 5);\n // drive until touch sensor pressed\n // activate servos to grab platform\n // drive backwards for a while\n // release servos\n // sideways part\n // remember to do red autonomous for repackage org.firstinspires.ftc.teamcode;\n }",
"@Override\n public void runOpMode() {\n hw = new RobotHardware(robotName, hardwareMap);\n rd = new RobotDrive(hw);\n rs=new RobotSense(hw, telemetry);\n /*rd.moveDist(RobotDrive.Direction.FORWARD, .5, .3);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, .3);\n rd.moveDist(RobotDrive.Direction.FORWARD, .5, 1);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, 1);*/\n telemetry.addData(\"Ready! \", \"Go Flamangos!\"); \n telemetry.update();\n\n //Starting the servos in the correct starting position\n /*hw.armRight.setPosition(1-.3);\n hw.armLeft.setPosition(.3);\n hw.level.setPosition(.3+.05);*/\n hw.f_servoLeft.setPosition(1);\n hw.f_servoRight.setPosition(0.5);\n \n rd.moveArm(hw.startPos());\n waitForStart();\n while (opModeIsActive()) {\n \n /*Starting close to the bridge on the building side\n Move under the bridge and push into the wall*/\n rd.moveDist(RobotDrive.Direction.LEFT,2,.5);\n rd.moveDist(RobotDrive.Direction.FORWARD, 10, .5);\n break;\n }\n }",
"@Override\n public void runOpMode() {\n try {\n leftfrontDrive = hardwareMap.get(DcMotor.class, \"frontLeft\");\n leftfrontDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n rightfrontDrive = hardwareMap.get(DcMotor.class, \"frontRight\");\n rightfrontDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n leftbackDrive = hardwareMap.get(DcMotor.class, \"backLeft\");\n leftbackDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftbackDrive.setDirection(DcMotor.Direction.REVERSE);\n\n rightbackDrive = hardwareMap.get(DcMotor.class, \"backRight\");\n rightbackDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n lift = hardwareMap.get(DcMotor.class, \"Lift\");\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lift.setDirection(DcMotor.Direction.REVERSE);\n\n markerArm = hardwareMap.get(Servo.class, \"markerArm\");\n\n armActivator = hardwareMap.get(DcMotor.class, \"armActivator\");\n armActivator.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n } catch (IllegalArgumentException iax) {\n bDebug = true;\n }\n\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"BNO055IMUCalibration.json\";\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters);\n\n waitForStart(); //the rest of the code begins after the play button is pressed\n\n sleep(3000);\n\n drive(0.35, 0.5);\n\n turn(90.0f);\n\n drive(1.8, 0.5);\n\n turn(45.0f);\n\n drive(2.5, -0.5);\n\n sleep(1000);\n\n markerArm.setPosition(1);\n\n sleep(1000);\n\n markerArm.setPosition(0);\n\n sleep(1000);\n\n drive(2.5,.75);\n\n turn(179.0f);\n\n drive(1.5, 1.0);\n\n requestOpModeStop(); //end of autonomous\n }",
"@Override\n public void runOpMode() {\n detector = new modifiedGoldDetector(); //Create detector\n detector.init(hardwareMap.appContext, CameraViewDisplay.getInstance(), DogeCV.CameraMode.BACK); //Initialize it with the app context and camera\n detector.enable(); //Start the detector\n\n //Initialize the drivetrain\n motorFL = hardwareMap.get(DcMotor.class, \"motorFL\");\n motorFR = hardwareMap.get(DcMotor.class, \"motorFR\");\n motorRL = hardwareMap.get(DcMotor.class, \"motorRL\");\n motorRR = hardwareMap.get(DcMotor.class, \"motorRR\");\n motorFL.setDirection(DcMotor.Direction.REVERSE);\n motorFR.setDirection(DcMotor.Direction.FORWARD);\n motorRL.setDirection(DcMotor.Direction.REVERSE);\n motorRR.setDirection(DcMotor.Direction.FORWARD);\n\n //Reset encoders\n motorFL.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorFR.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorRL.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorRR.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorFL.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorFR.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorRL.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorRR.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n telemetry.addData(\"IsFound: \", detector.isFound());\n telemetry.addData(\">\", \"Waiting for start\");\n telemetry.update();\n\n\n //TODO Pass skystone location to storage\n\n //Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n /**\n * *****************\n * OpMode Begins Here\n * *****************\n */\n\n //Disable the detector\n if(detector != null) detector.disable();\n\n //Start the odometry processing thread\n odometryPositionUpdate positionUpdate = new odometryPositionUpdate(motorFL, motorFR, motorRL, motorRR, inchPerCount, trackWidth, wheelBase, 75);\n Thread odometryThread = new Thread(positionUpdate);\n odometryThread.start();\n runtime.reset();\n\n //Run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n\n absPosnX = startPosnX + positionUpdate.returnOdometryX();\n absPosnY = startPosnY + positionUpdate.returnOdometryY();\n absPosnTheta = startPosnTheta + positionUpdate.returnOdometryTheta();\n\n telemetry.addData(\"X Position [in]\", absPosnX);\n telemetry.addData(\"Y Position [in]\", absPosnY);\n telemetry.addData(\"Orientation [deg]\", absPosnTheta);\n telemetry.addData(\"Thread Active\", odometryThread.isAlive());\n telemetry.update();\n\n//Debug: Drive forward for 3.0 seconds and make sure telemetry is correct\n if (runtime.seconds() < 3.0) {\n motorFL.setPower(0.25);\n motorFR.setPower(0.25);\n motorRL.setPower(0.25);\n motorRR.setPower(0.25);\n }else {\n motorFL.setPower(0);\n motorFR.setPower(0);\n motorRL.setPower(0);\n motorRR.setPower(0);\n }\n\n\n }\n //Stop the odometry processing thread\n odometryThread.interrupt();\n }",
"public void runOpMode() {\n leftBackDrive = hardwareMap.get(DcMotor.class, \"left_back_drive\"); //port 0, hub1\n rightBackDrive = hardwareMap.get(DcMotor.class, \"right_back_drive\"); //port 1, hub1\n leftFrontDrive = hardwareMap.get(DcMotor.class, \"left_front_drive\"); //port 2, hub1\n rightFrontDrive = hardwareMap.get(DcMotor.class, \"right_front_drive\"); //port 3, hub1\n craneExtend = hardwareMap.get(DcMotor.class, \"craneExtend\"); //port 0, hub2\n cranePitch = hardwareMap.get(DcMotor.class, \"cranePitch\"); //port 1, hub2\n craneElevate = hardwareMap.get(DcMotor.class, \"craneElevate\"); //port 2, hub2\n fakeMotor = hardwareMap.get(DcMotor.class, \"fakeMotor\"); //port 2, hub3\n craneGrab = hardwareMap.get(Servo.class, \"craneGrab\"); //port 0, servo\n craneGrabAttitude = hardwareMap.get(Servo.class, \"craneGrabAttitude\"); //port 2, servo\n trayGrab = hardwareMap.get(Servo.class, \"trayGrab\"); //port 1, servo\n flipperLeft = hardwareMap.get(Servo.class, \"flipperLeft\"); //port 3. servo\n flipperRight = hardwareMap.get(Servo.class, \"flipperRight\"); //port 4, servo\n \n //Setting the motor directions\n leftBackDrive.setDirection(DcMotor.Direction.FORWARD);\n rightBackDrive.setDirection(DcMotor.Direction.REVERSE);\n leftFrontDrive.setDirection(DcMotor.Direction.FORWARD);\n rightFrontDrive.setDirection(DcMotor.Direction.REVERSE);\n\n //Initializing variables\n \n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update(); //Done initalizing\n\n //Wait for the game to start (driver presses PLAY)\n waitForStart();\n runtime.reset();\n\n //run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n \n//******************************************************************************\n\n //Drive controls\n if (gamepad1.left_trigger>0 || gamepad1.right_trigger>0) { //Crab\n leftBackDrive.setPower(gamepad1.left_stick_x*0.8);\n rightBackDrive.setPower(-gamepad1.left_stick_x*0.8);\n leftFrontDrive.setPower(-gamepad1.left_stick_x*0.8);\n rightFrontDrive.setPower(gamepad1.left_stick_x*0.8);\n }\n\n else { //Tank\n leftBackDrive.setPower(-gamepad1.left_stick_x);\n rightBackDrive.setPower(-gamepad1.right_stick_x);\n leftFrontDrive.setPower(-gamepad1.left_stick_x);\n rightFrontDrive.setPower(-gamepad1.right_stick_x);\n }\n }\n \n//******************************************************************************\n\n //Crane control\n \n \n//******************************************************************************\n\n //Telemetry display\n telemetry.addData(\"Run Time:\", \"\" + runtime.toString());\n telemetry.addData(\"Motor Power\", \"L (%.2f), R (%.2f)\", gamepad1.left_stick_y, gamepad1.right_stick_y);\n telemetry.update();\n }",
"void disable(final Op op);",
"void enable(final Op op);",
"@Override\n public void runOpMode() {\n leftDrive = hardwareMap.get(DcMotor.class, \"left_drive\");\n rightDrive = hardwareMap.get(DcMotor.class, \"right_drive\");\n intake = hardwareMap.get (DcMotor.class, \"intake\");\n dropServo = hardwareMap.get(Servo.class, \"drop_Servo\");\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n rightDrive.setDirection(DcMotor.Direction.FORWARD);\n\n dropServo.setPosition(1.0);\n waitForStart();\n dropServo.setPosition(0.6);\n sleep(500);\n VuforiaOrientator();\n encoderSequence(\"dumbDrive\");\n\n\n }",
"void setBasicMode() {basicMode = true;}",
"void enableMod();",
"public int evalMode(int op, int mode) {\n if (mode == 4) {\n return this.state <= AppOpsManager.resolveFirstUnrestrictedUidState(op) ? 0 : 1;\n }\n return mode;\n }",
"@Override\r\n public void runOpMode() {\n robot.init(hardwareMap);\r\n\r\n telemetry.addData(\"Status\", \"Initialized\");\r\n telemetry.update();\r\n\r\n //Wait for the Pressing of the Start Button\r\n waitForStart();\r\n\r\n // run until the end of the match (driver presses STOP)\r\n while (opModeIsActive()) {\r\n\r\n motorSpeed[0] = driveSpeed(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad2.left_stick_x)[0];\r\n motorSpeed[1] = driveSpeed(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad2.left_stick_x)[1];\r\n motorSpeed[2] = driveSpeed(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad2.left_stick_x)[2];\r\n motorSpeed[3] = driveSpeed(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad2.left_stick_x)[3];\r\n\r\n robot.drive1.setPower(motorSpeed[0]);\r\n robot.drive1.setPower(motorSpeed[1]);\r\n robot.drive1.setPower(motorSpeed[2]);\r\n robot.drive1.setPower(motorSpeed[3]);\r\n\r\n telemetry.addData(\"Drive 1 Speed\", motorSpeed[0]);\r\n telemetry.addData(\"Drive 2 Speed\", motorSpeed[1]);\r\n telemetry.addData(\"Drive 3 Speed\", motorSpeed[2]);\r\n telemetry.addData(\"Drive 4 Speed\", motorSpeed[3]);\r\n telemetry.update();\r\n\r\n }\r\n }",
"public void enable() {\n operating = true;\n }",
"public void mode() {\n APIlib.getInstance().addJSLine(jsBase + \".mode();\");\n }",
"@Override\n public void runOpMode() {\n RobotOmniWheels5 myRobot = new RobotOmniWheels5(hardwareMap);\n\n // Put initialization blocks here.\n waitForStart();\n\n //code will continue to run until you hit stop in the app\n while(opModeIsActive()) {\n\n double leftStickYValue = gamepad1.left_stick_y;\n if (leftStickYValue < -.1) {\n //Set the robotspeed to the stick value\n //As Stick Y value is negative when pressed up, use negative in front\n myRobot.setRobotSpeed(-leftStickYValue);\n myRobot.move();\n } else {\n if (leftStickYValue > .1){\n //Set the robotspeed to the stick value\n //As Stick Y value is positive when pressed down, use negative in front to move back\n myRobot.setRobotSpeed(-leftStickYValue);\n myRobot.move();\n }\n else {\n myRobot.stopMoving();\n }\n }\n }\n }",
"public abstract void initMode();",
"default void onEnable() {}",
"@Override\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Simple Ready to run\"); //\n telemetry.update();\n telemetry.addData(\"Status\", \"Initialized\");\n\n /**\n * Initializes the library functions\n * Robot hardware and motor functions\n */\n robot = new Robot_1617(hardwareMap);\n motorFunctions = new MotorFunctions(-1, 1, 0, 1, .05);\n\n //servo wheels are flipped in configuration file\n robot.servoLeftWheel.setPosition(.45);\n robot.servoRightWheel.setPosition(.25);\n\n robot.servoLeftArm.setPosition(0);\n robot.servoRightArm.setPosition(0.7);\n\n robot.servoFlyAngle.setPosition(1);\n\n robot.servoElbow.setPosition(0.95);\n robot.servoShoulder.setPosition(0.1);\n\n robot.servoFeed.setPosition(.498);\n\n robot.servoPlaid.setPosition(.85);\n\n telemetry.addData(\"Servos: \", \"Initialized\");\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n sleep(5000);\n robot.motorLift.setPower(0);\n robot.servoFlyAngle.setPosition(0);\n sleep(500);\n robot.motorFlyLeft.setPower(.9);\n robot.motorFlyRight.setPower(1);\n sleep(250);\n robot.motorIntakeElevator.setPower(1);\n robot.servoFeed.setPosition(-1);\n telemetry.addData(\"Status\", \"Shooting\"); //\n telemetry.update();\n sleep(5000);\n robot.motorFlyLeft.setPower(0);\n robot.motorFlyRight.setPower(0);\n// sleep(5000); //no idea why this is here\n robot.motorIntakeElevator.setPower(0);\n robot.servoFeed.setPosition(.1);\n sleep(250);\n\n telemetry.addData(\"Status\", \"Driving\");\n telemetry.update();\n encoderDrive(1.0, 30, 30, 1);\n\n encoderDrive(1.0, 35, 35, 1);\n }",
"@Override\r\n public void runOpMode() {\n\r\n mtrFL = hardwareMap.dcMotor.get(\"fl_drive\");\r\n mtrFR = hardwareMap.dcMotor.get(\"fr_drive\");\r\n mtrBL = hardwareMap.dcMotor.get(\"bl_drive\");\r\n mtrBR = hardwareMap.dcMotor.get(\"br_drive\");\r\n\r\n\r\n // Set directions for motors.\r\n mtrFL.setDirection(DcMotor.Direction.REVERSE);\r\n mtrFR.setDirection(DcMotor.Direction.FORWARD);\r\n mtrBL.setDirection(DcMotor.Direction.REVERSE);\r\n mtrBR.setDirection(DcMotor.Direction.FORWARD);\r\n\r\n\r\n //zero power behavior\r\n mtrFL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrFR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrBL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrBR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n\r\n\r\n // Set power for all motors.\r\n mtrFL.setPower(powFL);\r\n mtrFR.setPower(powFR);\r\n mtrBL.setPower(powBL);\r\n mtrBR.setPower(powBR);\r\n\r\n\r\n // Set all motors to run with given mode\r\n mtrFL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrFR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrBL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrBR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n\r\n waitForStart();\r\n\r\n // run until the end of the match (driver presses STOP)\r\n while (opModeIsActive()) {\r\n g1ch2 = -gamepad1.left_stick_y;\r\n g1ch3 = gamepad1.right_stick_x;\r\n g2ch2 = -gamepad2.left_stick_x;\r\n g2ch4 = -gamepad2.right_stick_x;\r\n g2left = gamepad2.left_trigger;\r\n g2right = gamepad2.right_trigger;\r\n\r\n\r\n powFL = Range.clip(g1ch2 + g1ch3, -1, 1);\r\n powFR = Range.clip(g1ch2 - g1ch3, -1, 1);\r\n powBL = Range.clip(g1ch2 + g1ch3, -1, 1);\r\n powBR = Range.clip(g1ch2 - g1ch3, -1, 1);\r\n\r\n\r\n mtrFL.setPower(powFL);\r\n mtrFR.setPower(powFR);\r\n mtrBL.setPower(powBL);\r\n mtrBR.setPower(powBR);\r\n sleep(50);\r\n }\r\n }",
"@Override //when init is pressed\n public void runOpMode(){\n robot.initMotors(hardwareMap);\n robot.initServos(hardwareMap);\n robot.useEncoders(false);\n\n waitForStart();\n runtime.reset();\n\n double speedSet = 5;//robot starts with speed 5 due to 40 ratio motors being op\n double reduction = 7.5;//fine rotation for precise stacking. higher value = slower rotation using triggers\n double maxPower = 0;\n\n boolean forks = false;\n\n while (opModeIsActive()) {\n double LX = gamepad1.left_stick_x, LY = gamepad1.left_stick_y, rotate = gamepad1.right_stick_x;\n\n //bumpers set speed of robot\n if(gamepad1.right_bumper)\n speedSet += 0.0005;\n else if(gamepad1.left_bumper)\n speedSet -= 0.0005;\n\n speedSet = Range.clip(speedSet, 1, 10);//makes sure speed is limited at 10.\n\n if(!gamepad1.right_bumper && !gamepad1.left_bumper)//makes sure speed does not round every refresh. otherwise, speed won't be able to change\n speedSet = Math.round(speedSet);\n\n if(gamepad1.a) {\n forks = !forks;\n sleep(50);\n }\n\n if(forks) {\n robot.setForks(DOWN);\n }\n else if(earthIsFlat) {\n robot.setForks(UP);\n }\n\n //Holonomic Vector Math\n robot.drive(LX, LY, rotate);\n\n telemetry.addData(\"Drive\", \"Holonomic\");\n\n if(forks)\n telemetry.addData(\"Forks\", \"DOWN\");\n else\n telemetry.addData(\"Forks\", \"UP\");\n\n telemetry.addData(\"speedSet\", \"%.2f\", speedSet);\n telemetry.update();\n }\n }",
"public void changeMode() {\n methodMode = !methodMode;\n }",
"@Override\n public void runOpMode() {\n ringShooterMotor1 = hardwareMap.get(DcMotorEx.class, \"ringShooterMotor1\");\n ringShooterMotor2 = hardwareMap.get(DcMotorEx.class, \"ringShooterMotor2\");\n ringFeederServo = hardwareMap.get(Servo.class, \"ringFeederServo\");\n ringFeederServo.setPosition(0.6); // sets initial position of servo\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n // runs until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n\n // here: add telemetry to see motor velocity if you want\n telemetry.addData(\"ring motor velocity\", ringShooterMotor1.getVelocity());\n telemetry.update();\n\n\n // Press right trigger for ring feeder servo\n if (gamepad2.right_trigger == 1) {\n// if (ringShooterMotor1.getVelocity() <= powerShootMotorVelocity){\n ringFeederServo.setPosition(1);\n sleep(300);\n ringFeederServo.setPosition(0.6);\n// }\n }\n\n // press Y for shooter motor for tower goal\n if (gamepad2.y) {\n ringShooterMotor1.setVelocity(towerGoalMotorVelocity);\n ringShooterMotor2.setVelocity(towerGoalMotorVelocity);\n\n }\n\n // press X for shooter motor for powershot\n if (gamepad2.x) {\n ringShooterMotor1.setVelocity(powerShootMotorVelocity);\n ringShooterMotor2.setVelocity(powerShootMotorVelocity);\n\n }\n }\n }",
"public static void start(LinearOpMode opMode) {\n }",
"public void switchInsMode() {\n this.inputMode = !this.inputMode;\n }",
"@Override\n public void runOpMode(){\n motors[0][0] = hardwareMap.dcMotor.get(\"frontLeft\");\n motors[0][1] = hardwareMap.dcMotor.get(\"frontRight\");\n motors[1][0] = hardwareMap.dcMotor.get(\"backLeft\");\n motors[1][1] = hardwareMap.dcMotor.get(\"backRight\");\n // The motors on the left side of the robot need to be in reverse mode\n for(DcMotor[] motor : motors){\n motor[0].setDirection(DcMotor.Direction.REVERSE);\n }\n // Being explicit never hurt anyone, right?\n for(DcMotor[] motor : motors){\n motor[1].setDirection(DcMotor.Direction.FORWARD);\n }\n\n waitForStart();\n\n //Kill ten seconds\n runtime.reset();\n while(runtime.seconds()<10); runtime.reset();\n\n while(runtime.milliseconds()<700){\n // Loop through front and back motors\n for(DcMotor[] motor : motors){\n // Set left motor power\n motor[0].setPower(100);\n // Set right motor power\n motor[1].setPower(100);\n }\n }\n\n while(runtime.milliseconds()<200){\n // Loop through front and back motors\n for(DcMotor[] motor : motors){\n // Set left motor power\n motor[0].setPower(-100);\n // Set right motor power\n motor[1].setPower(-100);\n }\n }\n\n runtime.reset();\n // Loop through front and back motors\n for(DcMotor[] motor : motors){\n // Set left motor power\n motor[0].setPower(0);\n // Set right motor power\n motor[1].setPower(0);\n }\n }",
"public void disable() {\n operating = false;\n }",
"@Override\n public void runOpMode() {\n androidGyroscope = new AndroidGyroscope();\n\n // Put initialization blocks here.\n if (androidGyroscope.isAvailable()) {\n telemetry.addData(\"Status\", \"GyroAvailable\");\n }\n waitForStart();\n if (opModeIsActive()) {\n // Put run blocks here.\n androidGyroscope.startListening();\n androidGyroscope.setAngleUnit(AngleUnit.DEGREES);\n while (opModeIsActive()) {\n telemetry.addData(\"X Axis\", androidGyroscope.getX());\n telemetry.update();\n }\n }\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:14:32.594 -0400\", hash_original_method = \"45C4A93D9DB00E5177EB1AA33C0FC790\", hash_generated_method = \"A67AFB0821ABBDFC1442B7AD04AF9F51\")\n \n public static boolean setPowerModeCommand(int mode){\n \tdouble taintDouble = 0;\n \ttaintDouble += mode;\n \n \treturn ((taintDouble) == 1);\n }",
"@Override\r\n public void runOpMode() throws InterruptedException{\r\n //hardwareMapPrint();\r\n //telemetry.addData(\"Status\", \"Started\");\r\n //telemetry.update();\r\n //sleep(10000);\r\n //robot.setUp();\r\n //telemetry.addData(\"Status\", \"initialized\");\r\n //telemetry.update();\r\n setUp(hardwareMap, telemetry);\r\n waitForStart();\r\n\r\n while(opModeIsActive()){\r\n telemetry.addData(\"distance\", robot.ultrasonicSensor.getDistance(DistanceUnit.INCH));\r\n telemetry.update();\r\n }\r\n }",
"public void setOp(boolean value) {}",
"void disableMod();",
"@Override\n public void runOpMode() throws InterruptedException {\n leftfMotor = hardwareMap.dcMotor.get(\"m0\");\n rightfMotor = hardwareMap.dcMotor.get(\"m1\");\n leftbMotor = hardwareMap.dcMotor.get(\"m2\");\n rightbMotor = hardwareMap.dcMotor.get(\"m3\");\n rPMotor = hardwareMap.dcMotor.get(\"rPMotor\");\n leftClamp = hardwareMap.servo.get(\"left_servo\");\n rightClamp = hardwareMap.servo.get(\"right_servo\");\n rightfMotor.setDirection(DcMotor.Direction.REVERSE);\n rightbMotor.setDirection(DcMotor.Direction.REVERSE);\n\n telemetry.addData(\"Mode\", \"waiting\");\n telemetry.update();\n\n // wait for start button.\n\n\n waitForStart();\n\n leftY = 0;\n rightY = 0;\n leftZ = 0;\n rightZ = 0;\n bumperL = false;\n bumperR = false;\n\n while (opModeIsActive()) {\n\n telemetry.addData(\"left stick y \", gamepad1.left_stick_y);\n telemetry.update();\n leftY = -gamepad1.left_stick_y;\n\n rightY = -gamepad1.right_stick_y;\n\n leftZ = gamepad1.left_trigger;\n rightZ = gamepad1.right_trigger;\n\n bumperL = gamepad1.left_bumper;\n bumperR = gamepad1.right_bumper;\n\n\n leftfMotor.setPower(leftY);\n leftbMotor.setPower(leftY);\n rightfMotor.setPower(rightY);\n rightbMotor.setPower(rightY);\n\n\n if (leftZ > 0) {\n rPMotor.setPower(leftZ/10);\n\n } else if (rightZ > 0) {\n rPMotor.setPower(-rightZ/10);\n\n }\n\n\n telemetry.addData(\"Mode\", \"running\");\n telemetry.addData(\"sticks\", \" left=\" + leftY + \" right=\" + rightY);\n telemetry.addData(\"trig\", \" left=\" + leftZ + \" right=\" + rightZ);\n telemetry.update();\n\n\n if (bumperL) {\n\n clampMove += .01;\n leftClamp.setPosition(-clampMove);\n rightClamp.setPosition(clampMove);\n\n } else if (bumperR) {\n\n clampMove -= .01;\n leftClamp.setPosition(-clampMove);\n rightClamp.setPosition(clampMove);\n\n }\n\n idle();\n\n\n }\n }",
"@Override\n public void runOpMode() {\n frontLeftWheel = hardwareMap.dcMotor.get(\"frontLeft\");\n backRightWheel = hardwareMap.dcMotor.get(\"backRight\");\n frontRightWheel = hardwareMap.dcMotor.get(\"frontRight\");\n backLeftWheel = hardwareMap.dcMotor.get(\"backLeft\");\n\n //telemetry sends data to robot controller\n telemetry.addData(\"Output\", \"hardwareMapped\");\n\n // The TFObjectDetector uses the camera frames from the VuforiaLocalizer, so we create that\n // first.\n initVuforia();\n\n if (ClassFactory.getInstance().canCreateTFObjectDetector()) {\n initTfod();\n } else {\n telemetry.addData(\"Sorry!\", \"This device is not compatible with TFOD\");\n }\n\n /**\n * Activate TensorFlow Object Detection before we wait for the start command.\n * Do it here so that the Camera Stream window will have the TensorFlow annotations visible.\n **/\n if (tfod != null) {\n tfod.activate();\n }\n\n /** Wait for the game to begin */\n telemetry.addData(\">\", \"Press Play to start op mode\");\n telemetry.update();\n waitForStart();\n\n if (opModeIsActive()) {\n while (opModeIsActive()) {\n if (tfod != null) {\n // getUpdatedRecognitions() will return null if no new information is available since\n // the last time that call was made\n List<Recognition> updatedRecognitions = tfod.getUpdatedRecognitions();\n if(updatedRecognitions == null) {\n frontLeftWheel.setPower(0);\n frontRightWheel.setPower(0);\n backLeftWheel.setPower(0);\n backRightWheel.setPower(0);\n } else if (updatedRecognitions != null) {\n telemetry.addData(\"# Object Detected\", updatedRecognitions.size());\n // step through the list of recognitions and display boundary info.\n int i = 0;\n\n\n for (Recognition recognition : updatedRecognitions) {\n float imageHeight = recognition.getImageHeight();\n float blockHeight = recognition.getHeight();\n\n //-----------------------\n// stoneCX = (recognition.getRight() + recognition.getLeft())/2;//get center X of stone\n// screenCX = recognition.getImageWidth()/2; // get center X of the Image\n// telemetry.addData(\"screenCX\", screenCX);\n// telemetry.addData(\"stoneCX\", stoneCX);\n// telemetry.addData(\"width\", recognition.getImageWidth());\n //------------------------\n\n telemetry.addData(\"blockHeight\", blockHeight);\n telemetry.addData(\"imageHeight\", imageHeight);\n telemetry.addData(String.format(\"label (%d)\", i), recognition.getLabel());\n telemetry.addData(String.format(\" left,top (%d)\", i), \"%.03f , %.03f\", recognition.getLeft(), recognition.getTop());\n telemetry.addData(String.format(\" right,bottom (%d)\", i), \"%.03f , %.03f\", recognition.getRight(), recognition.getBottom());\n\n\n if(hasStrafed == false) {\n float midpoint = (recognition.getLeft() + recognition.getRight()) /2;\n float multiplier ;\n if(midpoint > 500) {\n multiplier = -(((int)midpoint - 500) / 100) - 1;\n log = \"Adjusting Right\";\n sleep(200);\n } else if(midpoint < 300) {\n multiplier = 1 + ((500 - midpoint) / 100);\n log = \"Adjusting Left\";\n sleep(200);\n } else {\n multiplier = 0;\n log = \"In acceptable range\";\n hasStrafed = true;\n }\n frontLeftWheel.setPower(-0.1 * multiplier);\n backLeftWheel.setPower(0.1 * multiplier);\n frontRightWheel.setPower(-0.1 * multiplier);\n backRightWheel.setPower(0.1 * multiplier);\n } else {\n if( blockHeight/ imageHeight < .5) {\n frontLeftWheel.setPower(-.3);\n backLeftWheel.setPower(.3);\n frontRightWheel.setPower(.3);\n backRightWheel.setPower(-.3);\n telemetry.addData(\"detecting stuff\", true);\n } else {\n frontLeftWheel.setPower(0);\n backLeftWheel.setPower(0);\n frontRightWheel.setPower(0);\n backRightWheel.setPower(0);\n telemetry.addData(\"detecting stuff\", false);\n }\n }\n\n telemetry.addData(\"Angle to unit\", recognition.estimateAngleToObject(AngleUnit.DEGREES));\n telemetry.addData(\"Log\", log);\n\n }\n telemetry.update();\n }\n\n }\n }\n }\n if (tfod != null) {\n tfod.shutdown();\n }\n }",
"@Override\n public void disabledInit() {\n\t\tprocessRobotModeChange(RobotMode.DISABLED);\n }",
"@Override\n public void initialize() {\n //manualActivated = !manualActivated;\n }",
"protected void finalAction(){\n Robot.stop();\n requestOpModeStop();\n }",
"public void engineOff(){\n engine = false;\n }",
"public void resetMode() {\n\t\televatorManager.resetMode();\n\t}",
"private void actionSampleDetectionModeChanged ()\r\n\t{\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioModeAuto().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAdd().setEnabled(false);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAddControl().setEnabled(false);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleDelete().setEnabled(false);\r\n\t\t}\r\n\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioModeManual().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAdd().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAddControl().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleDelete().setEnabled(true);\r\n\t\t}\r\n\t}",
"private void setModeUI(){\n\n if (this.inManualMode == true){ this.enableRadioButtons(); } // manual mode\n else if (this.inManualMode == false){ this.disableRadioButtons(); } // automatic mode\n }",
"@Override\n\tpublic void onModeChange() {\n\t}",
"public void normalMode() {\n this.brokenPumpNo = -1;\n if (howManyBrokenUnits()) {\n this.mode = State.EMERGENCY_STOP;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n emergencyStopMode();\n return;\n }\n if (steamFailure()) { // if steam failure go to degraded mode\n this.mode = State.DEGRADED;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.DEGRADED));\n this.outgoing.send(new Message(MessageKind.STEAM_FAILURE_DETECTION));\n this.waterLevel = this.levelMessage.getDoubleParameter();\n degradedMode();\n return;\n }\n\n // check for water-level detection failure\n if (waterLevelFailure() || this.levelMessage.getDoubleParameter() == 0) {\n // failure, goes to rescue mode\n this.outgoing.send(new Message(MessageKind.LEVEL_FAILURE_DETECTION));\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.RESCUE));\n this.mode = State.RESCUE;\n this.prevRescueMode = State.NORMAL;\n this.steamLevel = this.steamMessage.getDoubleParameter();\n rescueMode();\n return;\n }\n if (nearMaxMin() || overMax()) { // checks if water is near or over the max\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n this.mode = State.EMERGENCY_STOP;\n emergencyStopMode();\n return;\n }\n int no = pumpFailure();\n if (no != -1) { // check for any pump failure\n this.brokenPumpNo = no;\n this.mode = State.DEGRADED;\n this.prevDegradedMode = State.NORMAL;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.DEGRADED));\n this.outgoing.send(new Message(MessageKind.PUMP_FAILURE_DETECTION_n, no));\n degradedMode();\n return;\n }\n no = pumpControllerFailure();\n if (no != -1) { // check for any controller failure\n this.mode = State.DEGRADED;\n this.prevDegradedMode = State.NORMAL;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.DEGRADED));\n this.outgoing.send(new Message(MessageKind.PUMP_CONTROL_FAILURE_DETECTION_n, no));\n degradedMode();\n return;\n }\n\n // all error messages checked. Can run normal mode as per usual.\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.NORMAL));\n this.waterLevel = this.levelMessage.getDoubleParameter();\n this.steamLevel = this.steamMessage.getDoubleParameter();\n int noOfPumps = estimatePumps(this.steamMessage.getDoubleParameter(),\n this.levelMessage.getDoubleParameter());\n turnOnPumps(noOfPumps); // pump water in\n\n if (this.levelMessage.getDoubleParameter() < this.configuration.getMinimalNormalLevel()) {\n\n noOfPumps = estimatePumps(this.steamMessage.getDoubleParameter(),\n this.levelMessage.getDoubleParameter());\n turnOnPumps(noOfPumps);\n }\n if (this.levelMessage.getDoubleParameter() > this.configuration.getMaximalNormalLevel()) {\n // if it goes above max normal level\n noOfPumps = estimatePumps(this.steamMessage.getDoubleParameter(),\n this.levelMessage.getDoubleParameter());\n turnOnPumps(noOfPumps);\n }\n\n }",
"@Override\n public final void switchUserMode() {\n }",
"private void automaticModeChecks(){\n // turn on lights if underground\n if (this.isUnderground()){ this.selectedTrain.setLights(1);}\n // set heat\n if (this.selectedTrain.getTemp() <= 40.0){this.selectedTrain.setThermostat(60.0);}\n else if (this.selectedTrain.getTemp() >= 80){ this.selectedTrain.setThermostat(50.0);}\n }",
"private void handle_mode_display() {\n\t\t\t\n\t\t}",
"void enableFlipMode();",
"public void toggleGodMode() {\n\t\tthis.isGodModeEnabled = !this.isGodModeEnabled;\n\t\tif (this.isGodModeEnabled) {\n\t\t\tSystem.out.println(\"GodMode Enabled.\");\n\t\t} else {\n\t\t\tSystem.out.println(\"GodMode Disabled.\");\n\t\t}\n\t}",
"public RobotHardware (LinearOpMode opmode) {\n myOpMode = opmode;\n }",
"public int invokeCutMode()\n{\n \n return(0);\n\n}",
"@Override\n\tpublic void onEnable() {\n\t\tSystem.out.println(\"Modus: Forcedown\");\n\t\tArduinoInstruction.getInst().enable();\n\t\tArduinoInstruction.getInst().setControl((byte)0x40);\n\t}",
"public void runOpMode(){\n JAWLDrive3796 drive = new JAWLDrive3796(hardwareMap.dcMotor.get(\"left_drive\"), hardwareMap.dcMotor.get(\"right_drive\"));\n //Set the drive motors to run without encoders\n drive.setEncoders(false);\n //Create Grabber object\n JAWLGrabber3796 grabber = new JAWLGrabber3796(hardwareMap.servo.get(\"left_arm\"), hardwareMap.servo.get(\"right_arm\"));\n //Create Lift object\n JAWLLift3796 lift = new JAWLLift3796(hardwareMap.dcMotor.get(\"lift_motor\"));\n //Create color arm object\n JAWLColorArm3796 colorArm = new JAWLColorArm3796(hardwareMap.servo.get(\"color_arm\"));\n //Creates color sensor name\n ColorSensor colorSensorTemp = hardwareMap.get(ColorSensor.class, \"color_distance\");\n //Creates distance sensor name\n DistanceSensor distanceSensorTemp = hardwareMap.get(DistanceSensor.class, \"color_distance\");\n //Creates the color-distance sensor object\n JAWLColorSensor3796 colorDistanceSensor = new JAWLColorSensor3796(colorSensorTemp, distanceSensorTemp);\n //Creates the variable that will hold the color of the jewel\n String colorOfBall;\n //Creates relic arm objects\n //TTTTRelicArm3796 relicArm = new TTTTRelicArm3796(hardwareMap.dcMotor.get(\"relic_up_down\"), hardwareMap.dcMotor.get(\"relic_out_in\"), hardwareMap.dcMotor.get(\"relic_grab\"));\n //We never ended up having a relic arm!\n //The lift helper will set the idle power of the motor to a small double, keeping the lift from idly falling down\n boolean liftHelper = false;\n int i = 0;\n\n waitForStart();\n\n colorArm.armUp();\n\n while (opModeIsActive()) {\n //Here is where we define how the controllers should work\n //In theory, no logic retaining to controlling the components should be in here\n\n /*\n * Drive\n */\n\n //The left drive wheel is controlled by the opposite value of the left stick's y value on the first gamepad\n //The right drive is the same way except with the right drive wheel\n drive.leftDrive(-gamepad1.left_stick_y);\n drive.rightDrive(-gamepad1.right_stick_y);\n\n /*\n * Lift\n */\n telemetry.addData(\"Gamepad2 Right Stick Y\", -gamepad2.right_stick_y);\n\n if (-gamepad2.right_stick_y > 0) {\n //First checks to see if the right stick's negative y value is greater then zero.\n lift.moveMotor(-gamepad2.right_stick_y);\n //If it is, it sets the power for the motor to 1, and adds telemetry\n telemetry.addData(\"Lift Power\", 1);\n } else if (-gamepad2.right_stick_y < 0) {\n //Checks if the negative value of the right right stick's y position is less than zero\n lift.moveMotor(-0.1);\n //Sets the power for the motor to -0.1, and adds telemetry\n telemetry.addData(\"Lift Power\", -0.1);\n } else {\n //We check to see if the liftHelper is enabled\n if(liftHelper) {\n lift.moveMotor(0.1466 );\n } else {\n lift.moveMotor(0);\n }\n }\n\n\n\n /*\n * Lift helper control\n */\n\n if(gamepad2.a) {\n if(i == 0) {\n liftHelper = !liftHelper;\n }\n i = 5;\n }\n\n if(i != 0) {\n i--;\n }\n\n telemetry.addData(\"Lift Helper Enabled\", liftHelper);\n\n\n\n /*\n * Grabbers\n */\n if (gamepad2.left_trigger > 0) {\n //Closes the left arm, then displays the position in telemetry\n grabber.leftArmClose();\n double a = grabber.leftPosition();\n //Adds telemetry to display positions of grabbers, mostly for testing, but can be useful later on\n telemetry.addData(\"Left\", a);\n }\n\n if (gamepad2.left_bumper) {\n //Opens the left arm, then displays the position in telemetry\n grabber.leftArmOpen();\n double b = grabber.leftPosition();\n //We made the variables different as to avoid any and all possible errors\n telemetry.addData(\"Left\", b);\n }\n\n if (gamepad2.right_trigger > 0) {\n //Opens the right arm, then displays the position in telemetry\n grabber.rightArmClose();\n double c = grabber.rightPosition();\n telemetry.addData(\"Right\", c);\n }\n\n if (gamepad2.right_bumper) {\n //Closes the right arm, then displays the position in telemetry\n grabber.rightArmOpen();\n double d = grabber.rightPosition();\n telemetry.addData(\"Right\", d);\n }\n\n if (gamepad2.dpad_left){\n //Closes the left arm to a shorter distance\n grabber.leftArmShort();\n }\n\n if(gamepad2.dpad_right){\n //Closes the right arm to a shorter distance\n grabber.rightArmShort();\n\n }\n\n //Update all of our telemetries at once so we can see all of it at the same time\n telemetry.update();\n }\n }",
"@Override\n public void disabledInit() {\n //Diagnostics.writeString(\"State\", \"DISABLED\");\n }",
"@Override\n public void runOpMode() {\n int selectedstate = 0;\n //set variable selecting to true for the selecting while loop\n boolean selecting = true;\n\n askState(states.colorRed, states.colorBlue);\n if (ask(\"Default Starting Position\", \"Alternate Starting Position\")) {\n if (ask(\"First Beacon\", \"Second Beacon which has now been broken so don't run it\")) {\n askState(states.arcTowardsBeacon);\n askState(states.scanForLine);\n askState(states.driveTowardsBeacon);\n askState(states.pushBeaconButton, states.sleep0);\n askState(states.backAwayFromBeacon);\n askState(states.shootballTwoBalls, states.shootballOnce, states.noscope);\n askState(states.correctStrafe);\n askState(states.slideToTheRight);\n askState(states.scanForLine);\n askState(states.driveTowardsBeacon);\n askState(states.pushBeaconButton, states.sleep0);\n if (ask(\"Corner Vortex\", \"Center Vortex\")) {\n askState(states.pivotbeacon);\n askState(states.rotate60);\n askState(states.backup84);\n } else {\n askState(states.pivotbeacon, states.pivotbeaconless);\n askState(states.backuptovortex, states.backuptovortexIncreased, states.backuptovortexReduced);\n }\n } else {\n// askState(states.driveFoward36);\n askState(states.arcTowardsBeacon24);\n askState(states.scanForLine);\n askState(states.driveTowardsBeacon);\n askState(states.pushBeaconButton, states.sleep0);\n askState(states.backAwayFromBeacon5);\n askState(states.slideToTheLeft);\n askState(states.scanForLineInverted);\n askState(states.driveTowardsBeacon);\n askState(states.pushBeaconButton, states.sleep0);\n askState(states.backAwayFromBeacon);\n askState(states.shootballTwoBalls, states.shootballOnce, states.noscope);\n askState(states.rotate110);\n askState(states.backup30);\n }\n } else {\n askState(states.sleep0, states.sleep2000, states.sleep4000, states.sleep10000);\n askState(states.backup42);\n askState(states.shootballTwoBalls, states.shootballOnce, states.noscope);\n askState(states.sleep0, states.sleep2000, states.sleep4000, states.sleep10000);\n if (ask(\"Corner Vortex\", \"Center Vortex\")) {\n askState(states.arc2);\n askState(states.driveFoward48);\n } else {\n askState(states.rotate40);\n askState(states.backup24);\n }\n }\n\n askState(states.sleep0);\n\n if (ask(\"Ready to init?\", \"Ready to init? asked again so I don't need to make a new method\")) {\n\n }\n\n // send whole LinearOpMode object and context to robotconfig init method\n robot.init(this);\n //add telementry to report that init completed\n robotconfig.addlog(dl, \"autonomous\", \"Done with robot.init --- waiting for start in \" + this.getClass().getSimpleName());\n\n //convert list of states to be run to array for theoretical performance reasons\n runlist = list.toArray(new state[list.size()]);\n //run each state multiple times until the state increases the currentState variable by 1\n currentState = 0;\n //default current color to purple, first state will either redefine it as red or blue\n states.color = 0;\n //add telementry data to display if debug mode is active, debug mode is used to test to make sure objects are oriented correctly without having actual hardware attached\n telemetry.addData(\"Say\", \"Hello Driver - debug mode is \" + robotconfig.debugMode);\n displayStates();\n //display telementry data\n telemetry.update();\n waitForStart();\n //add log to log file\n robotconfig.addlog(dl, \"autonomous\", \"Started\");\n //loop while match is running\n while (opModeIsActive()) {\n\n robotconfig.addlog(dl, \"Mainline\", \"Beginning state machine pass \" + String.format(Locale.ENGLISH, \"%d\", currentState));\n\n //check if the currentState is more than the last index of the runlist\n if (currentState + 1 < runlist.length) {\n telemetry.addData(\"state\", runlist[currentState].name);\n telemetry.update();\n //run the state from the runlist of the currentState index\n runlist[currentState].run();\n //add log of name of state that ran for debugging\n robotconfig.addlog(dl, \"Mainline\", \"Ending state machine pass of \" + runlist[currentState].name);\n } else {\n //if completed last state, stop\n robot.move(0, 0, 0);\n //add log to tell us that the program finished all selected states before stopping\n robotconfig.addlog(dl, \"StateMachine\", \"stop requested\");\n requestOpModeStop();\n }\n\n }\n\n robot.move(0, 0, 0);\n robot.pushButton(0);\n //add log to tell us that the program stopped smoothly\n robotconfig.addlog(dl, \"autonomous\", \"Done with opmode, exited based on OpmodeIsActive false\");\n\n }",
"@Override\n public void runOpMode() throws InterruptedException\n {\n leftDrive = hardwareMap.dcMotor.get(\"left_drive\");\n rightDrive = hardwareMap.dcMotor.get(\"right_drive\");\n\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n\n telemetry.addData(\"Mode\", \"waiting\");\n telemetry.update();\n\n // wait for start button.\n\n waitForStart();\n\n telemetry.addData(\"Mode\", \"running\");\n telemetry.update();\n\n // set both motors to 25% power.\n\n leftDrive.setPower(0.25);\n rightDrive.setPower(0.25);\n\n sleep(2000); // wait for 2 seconds.\n\n // set motor power to zero to stop motors.\n\n leftDrive.setPower(0.0);\n rightDrive.setPower(0.0);\n }",
"@Override\n public void runOpMode() {\n\n //PUTS THE NAMES OF THE MOTORS INTO THE CODE\n\n //DRIVE Motors\n aDrive = hardwareMap.get(DcMotor.class, \"aDrive\");\n bDrive = hardwareMap.get(DcMotor.class, \"bDrive\");\n cDrive = hardwareMap.get(DcMotor.class, \"cDrive\");\n dDrive = hardwareMap.get(DcMotor.class, \"dDrive\");\n cDrive.setDirection(DcMotor.Direction.REVERSE);\n dDrive.setDirection(DcMotor.Direction.REVERSE);\n\n //FUNCTIONS Motors\n Arm = hardwareMap.get(DcMotor.class, \"Arm\");\n ArmExtender = hardwareMap.get(DcMotor.class, \"ArmExtender\");\n Spindle = hardwareMap.get(DcMotor.class, \"Spindle\");\n Lift = hardwareMap.get(DcMotor.class, \"Lift\");\n\n //SERVOS\n Cover = hardwareMap.get(Servo.class, \"Cover\");\n\n //Vuforia\n telemetry.addData(\"Status\", \"DogeCV 2018.0 - Gold Align Example\");\n\n detector = new GoldAlignDetector();\n detector.init(hardwareMap.appContext, CameraViewDisplay.getInstance());\n detector.useDefaults();\n\n // Phone Stuff\n detector.alignSize = 100; // How wide (in pixels) is the range in which the gold object will be aligned. (Represented by green bars in the preview)\n detector.alignPosOffset = 0; // How far from center frame to offset this alignment zone.\n detector.downscale = 0.4; // How much to downscale the input frames\n detector.areaScoringMethod = DogeCV.AreaScoringMethod.MAX_AREA; // Can also be PERFECT_AREA\n //detector.perfectAreaScorer.perfectArea = 10000; // if using PERFECT_AREA scoring\n detector.maxAreaScorer.weight = 0.005;\n detector.ratioScorer.weight = 5;\n detector.ratioScorer.perfectRatio = 1.0;\n detector.enable();\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n\n waitForStart();\n\n telemetry.addData(\"IsAligned\" , detector.getAligned()); // Is the bot aligned with the gold mineral\n\n goldPos = detector.getXPosition(); // Gets gold block posistion\n\n sleep(1000); // Waits to make sure it is correct\n\n // Move Depending on gold position\n if(goldPos < 160){\n driftleft();\n sleep(1500);\n }else if (goldPos > 500) {\n driftright();\n sleep(1500);\n }else{\n forward();\n }\n\n forward(); //Drives into crater\n sleep(4000);\n\n detector.disable();\n\n }",
"public void switchCore() {\n\t\tnoCore = !(noCore);\n\t}",
"default void onDisable() {}",
"@Override\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n return false;\n }",
"public void operatorControl() {\n myRobot.setSafetyEnabled(true);\n while (isOperatorControl() && isEnabled()) {\n \tmyRobot.tankDrive(controller, 2, controller, 5);\n Timer.delay(0.005);\t\t// wait for a motor update time\n }\n }",
"protected void execute()\n\t{\n\t\tif(enable)\n\t\tRobot.winch.respoolWinch();\n\t}",
"@Test\n public void mustNotEnableMoreThanOnce() throws RemoteException {\n mHbmController.enable(mOnEnabled);\n\n // Should set the appropriate refresh rate for UDFPS and notify the caller.\n verify(mDisplayCallback).onHbmEnabled(eq(DISPLAY_ID));\n verify(mOnEnabled).run();\n\n // Second request to enable the UDFPS mode, while it's still enabled.\n mHbmController.enable(mOnEnabled);\n\n // Should ignore the second request.\n verifyNoMoreInteractions(mDisplayCallback);\n verifyNoMoreInteractions(mOnEnabled);\n }",
"public void change() {\r\n this.mode = !this.mode;\r\n }",
"public abstract void wgb_onDisable();",
"@Override\r\n\t\t\t\tpublic boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n\t\t\t\t\treturn false;\r\n\t\t\t\t}",
"@Override\r\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n return false;\r\n }",
"public void onEnabled() {\r\n }",
"@Override public void init_loop() {\n if (gyro.isCalibrated()) {\n telemetry.addData(\"Gyro\", \"Calibrated\");\n }\n\n /** Place any code that should repeatedly run after INIT is pressed but before the op mode starts here. **/\n }",
"@Override\n\tpublic void disabledInit() {\n\t\tRobot.driveSubsystem.setCoastMode();\n\t}",
"@Test\n public void mustNotDisableMoreThanOnce() throws RemoteException {\n mHbmController.enable(mOnEnabled);\n\n // Should set the appropriate refresh rate for UDFPS and notify the caller.\n verify(mDisplayCallback).onHbmEnabled(eq(DISPLAY_ID));\n verify(mOnEnabled).run();\n\n // First request to disable the UDFPS mode.\n mHbmController.disable(mOnDisabled);\n\n // Should unset the refresh rate and notify the caller.\n verify(mOnDisabled).run();\n verify(mDisplayCallback).onHbmDisabled(eq(DISPLAY_ID));\n\n // Second request to disable the UDFPS mode, when it's already disabled.\n mHbmController.disable(mOnDisabled);\n\n // Should ignore the second request.\n verifyNoMoreInteractions(mOnDisabled);\n verifyNoMoreInteractions(mDisplayCallback);\n }",
"public abstract void Enabled();",
"protected void onDisabled() {\n // Do nothing.\n }",
"@Override\n public void run() {\n mode = NONE;\n }",
"public void onEnable() {\n }",
"private void fixEnabled(){\n setEnabled(graph.getUndoManager().canRedo());\n }",
"public void disable() {\r\n m_enabled = false;\r\n useOutput(0, 0);\r\n }",
"public void disabledInit()\n\t{\n\t\t\n\t}",
"@Override\r\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\r\n return false; // Return false if nothing is done\r\n }",
"@Override\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n return false;\n }",
"@Override\n\t\t\tpublic boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n\t\t\t\treturn false;\n\t\t\t}",
"default void onAutoModeChanged(int autoMode) {}",
"@Override\n public void runOpMode() throws InterruptedException {\n initialize();\n\n waitForStart();\n\n /* drivetrain.Strafe(1F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(1F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(1F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 20, Direction.LEFT); */\n\n sleep(6000);\n\n drivetrain.Strafe(.5F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 30, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 30, Direction.LEFT);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.1f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.3f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.5f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 2f, this);\n\n\n /*drivetrain.Strafe(.75F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.75F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.75F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 20, Direction.LEFT);\n sleep(6000);\n\n drivetrain.Strafe(.5F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.RIGHT);\n sleep(2000);\n\n\n drivetrain.Strafe(.5F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.LEFT);\n sleep(2000); */\n\n drivetrain.StopAll();\n\n\n\n }",
"boolean hasMode();",
"public void resetAllOperations() {\n\t\t/*\n\t\t * Check to see if we are in any countdown modes\n\t\t */\n\t\tif(inCountdown1Mode) {\n\t\t\twarmUpWindow1.dismiss();\n\t\t}\t\t\n\t\tif(inBaselineMode) {\n\t\t\tbaselineWindow.dismiss();\n\t\t}\n\t\t\n\t\t/**\n\t\t * Turn off any red leds\n\t\t */\n\t\tledOn1.setVisibility(View.INVISIBLE);\n\t\tledOn2.setVisibility(View.INVISIBLE);\n\t\tledOn3.setVisibility(View.INVISIBLE);\n\t\tledOn4.setVisibility(View.INVISIBLE);\n\t\tledOn5.setVisibility(View.INVISIBLE);\n\t\tledOn6.setVisibility(View.INVISIBLE);\n\t\tledOn7.setVisibility(View.INVISIBLE);\n\t\tledOn8.setVisibility(View.INVISIBLE);\n\t\tledOn9.setVisibility(View.INVISIBLE);\n\t\t\n\t\t/*\n\t\t * Reset any program flow variables\n\t\t */\n\t\tinCountdown1Mode = false;\n\t\tinBaselineMode = false;\n\t\ton = false;\n\t\tmodeChange = false;\n\t\twarmedUp = false;\n\t\t\n\t\t/*\n\t\t * Reset counts\n\t\t */\n\t\tcountdown1 = WARMUP_COUNT;\n\t\tcountdown2 = BASELINE_COUNT;\n\t\ttvUpdate(tvSensorValue, \"--\");\n\t\t\n\t\tcountdown1Handler.removeCallbacksAndMessages(null);\n\t\tcountdown2Handler.removeCallbacksAndMessages(null);\n\t\tmodeHandler.removeCallbacksAndMessages(null);\n\t\ttickHandler.removeCallbacksAndMessages(null);\n\t\tsetLEDsHandler.removeCallbacksAndMessages(null);\n\t\t\n\t\t// Stop taking measurements\n\t\tstreamer.disable();\n\t\t// Disable the sensor\n\t\tdroneApp.myDrone.quickDisable(qsSensor);\n\t}",
"@Override\n\t public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n\t return false; // Return false if nothing is done\n\t }",
"void verifyModesEnable(String mode);",
"public void setManualMode(boolean b){\n\n this.inManualMode = b;\n }",
"@Override\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n return false;\n }"
]
| [
"0.7218687",
"0.70883465",
"0.68440586",
"0.6828813",
"0.67650455",
"0.6723159",
"0.665032",
"0.6556356",
"0.6555784",
"0.652499",
"0.6470446",
"0.6459811",
"0.6415281",
"0.64098233",
"0.64084053",
"0.6385399",
"0.6381864",
"0.63631314",
"0.63502395",
"0.63021505",
"0.62992936",
"0.62907326",
"0.6282187",
"0.62734",
"0.6267155",
"0.6255194",
"0.6242937",
"0.618128",
"0.6180164",
"0.61663663",
"0.6162988",
"0.6149602",
"0.61416775",
"0.6093409",
"0.6092973",
"0.60804987",
"0.6058777",
"0.6049905",
"0.6010299",
"0.6007918",
"0.5996081",
"0.5995888",
"0.59850717",
"0.59784985",
"0.59721863",
"0.59577996",
"0.59556067",
"0.5949541",
"0.5929035",
"0.59153897",
"0.5888869",
"0.5874511",
"0.58633953",
"0.58593863",
"0.5858665",
"0.5836269",
"0.5833195",
"0.58279335",
"0.58275646",
"0.58234036",
"0.58213377",
"0.5818428",
"0.5817791",
"0.58165693",
"0.5806094",
"0.5804489",
"0.57924926",
"0.5787808",
"0.57807606",
"0.5779889",
"0.57716244",
"0.5761117",
"0.57502306",
"0.5750225",
"0.57448155",
"0.57421005",
"0.57300866",
"0.5727212",
"0.57270384",
"0.5726326",
"0.5714216",
"0.57076687",
"0.5706644",
"0.5701835",
"0.5699741",
"0.56991637",
"0.5697937",
"0.569402",
"0.5680859",
"0.56764907",
"0.56754726",
"0.56737864",
"0.56649965",
"0.56498224",
"0.5648165",
"0.56442916",
"0.5640774",
"0.5640092",
"0.5639431",
"0.5638196",
"0.56352514"
]
| 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.