query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
string moodMessage = 5;
public Builder setMoodMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } moodMessage_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getMoodMessage();", "public String getMessage(int chance){\n switch(chance){\n case 1: danger=5;\n pred = \"monkeys\";\n return \"A whole community of monkeys hide in the trees around you. They stare intently\";\n case 2: danger=5;\n pred = \"snakes\";\n return \"In the ground there are giant holes as if made by a large mammal. But no such animals live here \";\n case 3: danger=10;\n pred = \"tiger\";\n return \"A tiger is watching you. This is not the jungle book\";\n case 4: danger = 6;\n pred = \"evil rabbit\";\n return \"There are animal carcases everywhere. You are in someones lair\";\n default: return \"\";\n }\n}", "public java.lang.String getMoodMessage() {\n java.lang.Object ref = moodMessage_;\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 moodMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "abstract String moodString();", "public java.lang.String getMoodMessage() {\n java.lang.Object ref = moodMessage_;\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 moodMessage_ = s;\n return s;\n }\n }", "String Message ();", "public com.google.protobuf.ByteString\n getMoodMessageBytes() {\n java.lang.Object ref = moodMessage_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n moodMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getMoodMessageBytes() {\n java.lang.Object ref = moodMessage_;\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 moodMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "java.lang.String getTheMessage();", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }", "com.google.protobuf.ByteString\n getMoodMessageBytes();", "private String addMood() {\n\t\t// Two Parameters: MoodNumber, MoodName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|mood\");\n\t\tif (!parameters[0].equals(\"0\")) {\n\t\t\ttag.append(parameters[0]);\n\t\t}\n\t\ttag.append(\":\" + parameters[1]);\n\t\treturn tag.toString();\n\n\t}", "static void cuddle(String petType) {\n\thappinessLevel = happinessLevel+2;\n\tJOptionPane.showMessageDialog(null,\"You cuddled your \"+petType+\"\\nPet Happiness Level:\"+happinessLevel);\n}", "public static void main(String[] args) {\n\tString variable=\"Hello\";\n\t\n\tString mySentence= \"Today is Sunday!\";\n\t\n System.out.println(mySentence);\n \n //int number=\"99\"; - anything that is put in \"\" becomes a string, must change int to String\n \n String number=\"99\"; //we will get 99 as a string\n System.out.println(number);\n \n \n \n\t}", "public void setMessage(String message){\r\n this.message = message;\r\n key = randNumber.nextInt(50) + 1; \r\n\r\n encode();\r\n }", "public void handleStringMessage(String message) {\n\n }", "String getMessage();", "String getMessage();", "String getMessage();", "java.lang.String getUserMessage();", "void mo23214a(Message message);", "public void setMood(String mood) {\n this.mood = mood;\n }", "public String promptString(String message) {\n ui.say(message);\n return ui.readString();\n }", "String sayHI(String msg){\n return msg + \"juga nama saya\" + this.nama;\n }", "void method_52(Message var1);", "java.lang.String getMent();", "public String getMood() {\r\n\t\treturn mood;\r\n\t}", "abstract void message(String message);", "@Override\n public String getMessage() {\n return \" ** I'm a friendly ENEMY! **\";\n }", "String getRawMessage();", "public static void typeMessage(String message) {\n\n }", "public void Decipher(String message){\n try{\n int tile = Integer.parseInt(message);\n MoveTileOpponent(tile);\n\n }catch (NumberFormatException e){\n // bomb\n if(message.equals(\"win\")){\n onWin();\n return;\n }\n if(message.equals(\"opponent_confusion\")){\n confused = true;\n return;\n }\n String[] sep = message.split(\" \");\n String tile = sep[1];\n if(sep[0].equals(\"bomb\")){\n placeBomb(Integer.parseInt(tile), true);\n }\n if(sep[0].equals(\"bomb_remove\")){\n bombs_location.remove(Integer.parseInt(tile));\n return;\n }\n if(sep[0].equals(\"powerup\")){\n placePowerup(tile);\n return;\n }\n if(sep[0].equals(\"powerup_remove\")){\n powerup_location.remove(Integer.parseInt(tile));\n return;\n }\n }\n }", "public String getMood() {\n return this.mood;\n }", "public interface GameMsg {\n\n int MSG_WHAT_START = 0;\n\n int MSG_WHAT_REFRESH = 1;\n\n int MSG_WHAT_GAP = 2;\n\n int MSG_WHAT_END = 3;\n\n int MSG_ANIM_STOP = 4;\n\n int MODEL_RAT = 0;\n\n int MODEL_MUSHROOM = 1;\n}", "java.lang.String getMsg();", "Object getMessage();", "public String getMood() {\n return \"Neutral\";\n }", "public String sounds(){\n return (\"Moooooo :o\");\n }", "void mo80456b(Message message);", "void onAnything(String unformatedMessage);", "private void testString() {\n\t\tMessage message = Message.createMessage(getId(), \"Triggers\");\n\t\tmessage.setPayload(\"Gimme a break, man!\");\n\t\tsend(message);\n\t}", "private void saySomething(String message){\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n ttsGreater21(message);\n } else {\n ttsUnder20(message);\n }\n }", "public void writeString(String message);", "public String getMessage()\r\n {\r\n return myMessage;\r\n }", "public String food()//method that returns a value (string value)\r\n\t\r\n\t{\r\n\t\t\r\n\t\treturn \"(Dog!)\" + \"Sausage\";//the return value of the method\r\n\t\t\r\n\t}", "public String getMessageAt(int i){\n return message[i];\n }", "public abstract void intepret(String message);", "private String encodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 1); \n }", "private void setMessage(final String message) {\n }", "private void showMessage(String string) {\n\n }", "public String process(String msg) {\n return msg;\n }", "@Test\n\t\t\tpublic void checkAlphanumeric() {\n\t\t\t\tMessage msgjunit = new Message();\n\t\t\t\tString msg = msgjunit.getMessage();\n\n\t\t\t\tif (msg != null) {\n\t\t\t\t\tmsg = msg;\n\t\t\t\t} else {\n\t\t\t\t\tmsg = \"This is a message\";\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tInteger.parseInt(msg);\n\t\t\t\t\tSystem.out.println(\"Message is a not string:\" + \" \" + msg );\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tSystem.out.println(\"Message is a string:\" + \" \" + msg);\n\t\t\t\t}\n\t\t\t}", "public void returnMessage(String message);", "private String getMessage() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\r\n\t\t\r\n\t\tboolean addSign = prefs.getBoolean(\"addsign\", true);\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\tdefMessage = \"I am busy right now and will call you latter.\";\r\n\t\t\r\n\t\tfinalMessage = prefs.getString(\"message\", defMessage);\r\n\t\tif(finalMessage.equals(\"\"))\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t}\r\n\t\t\r\n\t\tif(addSign)\r\n\t\t\tfinalMessage += \"\\nSent using Calls and SMS Blocker for android.\\nDownload from: https://play.google.com/store/apps/details?id=com.atiffarrukh.callandsmsblocker\";\r\n\t\treturn finalMessage;\r\n\t}", "public int getMsgType(){\r\n return localMsgType;\r\n }", "public void setMessage(String word){\r\n message.setText(word);\r\n }", "public String speak() {\n return \"WOOF\";\n }", "void setMessage(String message);", "void setMessage(String message);", "public abstract void diceMessage(Message m);", "void mo80453a(Message message);", "String getWinner();", "private String decodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 2);\n }", "@Override\n public String getMessage() {\n String result =\"Audio Message {\\n\";\n result +=\"\\tID: \"+ID+\"\\n\";\n result +=\"\\tBuffer Size: \"+bufferSize+\"\\n\";\n result +=\"}\";\n \n return result;\n }", "void stampaMessaggio(String messaggio);", "void displayMessage(){\r\n Toast toast = Toast.makeText(this, getString(R.string.congratz_message, String.valueOf(playerScore)), Toast.LENGTH_SHORT);\r\n toast.show();\r\n }", "public String getMessage(){\r\n return message;\r\n }", "public String getMessage(){\r\n return message;\r\n }", "void consumeMessage(String message);", "public String getMessage(){\n return(message);\n }", "public String Speak()\n {\n if(this.age < 2)\n {\n\n } //end if\n return \"Woof\";\n }", "void sendMessage(String msg);", "public void DisplayMessage(String massage);", "int getChatTypeValue();", "void sent(String s);", "public String talkNiceWords() {\n\t\treturn \"How are you\";\n\t}", "public void setMessage(String message);", "public void setMessage(String message);", "public void setMessage(String message);", "public String getMessage() { return message; }", "private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }", "private MessageType(String value) {\n\t\tthis.value = value;\n\t}", "public void getMessage() {\n\r\n\t}", "public void sayText(String msg);", "public String playerWon() {\n\t\tString message = \"Congratulations \"+name+ \"! \";\n\t\tRandom rand = new Random();\n\t\tswitch(rand.nextInt(3)) {\n\t\t\tcase 0:\n\t\t\t\tmessage+=\"Can you stop now? You're too good at this!\";\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tmessage+=\"You OBLITERATED the opponent!\";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmessage+=\"You sent them to the Shadow Realm\";\n\t\t}\n\t\treturn message;\n\t}", "@Override\n\tpublic void tellPlayer(String message) {\n\t\tSystem.out.println(message);\n\t}", "public void doSomething(String mmm){\n String mmmm = mmm; // OK\n\n int mooFoo = 0; // OK\n int mT = 0; // method scope so OK\n int normalCamelCase = 0; // OK\n int camelCaseWith2Number2s = 0; // OK\n\n System.out.println(mooFoo + mmmm + mT + mFoo + normalCamelCase + camelCaseWith2Number2s);\n }", "public String getMessage(){\n return message;\n }", "public String messageTest(String message) throws Exception;", "com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType();", "public String getTweetMessage( )\n {\n return _strTweetMessage;\n }", "public Mood(String mood, String moodIntake) \n {\n this.mood = mood;\n this.moodIntake = moodIntake;\n }", "public static String getGoodbyeMessage() {\n return \"GOODBYE!! MUAHAHHAHAHAHHAAHAHHAHAHA\";\n }", "public void afficherMessage () {\r\n System.out.println(\"(\"+valeur+\", \"+type+\")\"); \r\n }", "void onUnknown(String unformatedMessage);", "public String getCodedMessage(){\r\n return codedMessage;\r\n }", "void displayMessage(String message);", "State mo5880e(String str);", "public void afficherMessage();", "public void createMessage()\n {\n System.out.println( user + \", type the message you want to send:\" );\n String userInput = sysin.nextLine();\n if( userInput.length() <= MAXLEN )\n msg = userInput;\n else\n msg = userInput.substring( 0, MAXLEN );\n\n }" ]
[ "0.6857693", "0.63813376", "0.63598305", "0.6359161", "0.6303233", "0.6198951", "0.6013342", "0.5942704", "0.57468855", "0.57259774", "0.5585991", "0.5560629", "0.5558941", "0.55385005", "0.55331725", "0.55131674", "0.54949546", "0.54949546", "0.54949546", "0.5460265", "0.54483587", "0.5431979", "0.5429842", "0.541835", "0.5415894", "0.5399906", "0.53993034", "0.5395324", "0.5374352", "0.5373954", "0.5366587", "0.5360871", "0.5338954", "0.53387", "0.53241074", "0.53163564", "0.5297177", "0.5296329", "0.5278639", "0.52781785", "0.5271559", "0.5267594", "0.52580154", "0.5235564", "0.5234434", "0.52343065", "0.5221986", "0.522154", "0.52191645", "0.5207356", "0.5204299", "0.52022076", "0.5201218", "0.52006584", "0.5200262", "0.519692", "0.5195112", "0.5194522", "0.5194522", "0.51910937", "0.51756114", "0.5168122", "0.5167508", "0.5167402", "0.51671517", "0.51657945", "0.51610833", "0.51610833", "0.51592845", "0.5156658", "0.51559407", "0.5155881", "0.51547647", "0.5154107", "0.51523584", "0.5150721", "0.5132322", "0.5132322", "0.5132322", "0.5131881", "0.51318806", "0.5128752", "0.5126762", "0.5124156", "0.5119483", "0.5118757", "0.51186556", "0.51139796", "0.5110802", "0.5104523", "0.5098917", "0.5092869", "0.5091647", "0.5079327", "0.50756764", "0.5074345", "0.5070173", "0.50695586", "0.50679153", "0.5056477" ]
0.5829592
8
string moodMessage = 5;
public Builder clearMoodMessage() { moodMessage_ = getDefaultInstance().getMoodMessage(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getMoodMessage();", "public String getMessage(int chance){\n switch(chance){\n case 1: danger=5;\n pred = \"monkeys\";\n return \"A whole community of monkeys hide in the trees around you. They stare intently\";\n case 2: danger=5;\n pred = \"snakes\";\n return \"In the ground there are giant holes as if made by a large mammal. But no such animals live here \";\n case 3: danger=10;\n pred = \"tiger\";\n return \"A tiger is watching you. This is not the jungle book\";\n case 4: danger = 6;\n pred = \"evil rabbit\";\n return \"There are animal carcases everywhere. You are in someones lair\";\n default: return \"\";\n }\n}", "abstract String moodString();", "public java.lang.String getMoodMessage() {\n java.lang.Object ref = moodMessage_;\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 moodMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getMoodMessage() {\n java.lang.Object ref = moodMessage_;\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 moodMessage_ = s;\n return s;\n }\n }", "String Message ();", "public com.google.protobuf.ByteString\n getMoodMessageBytes() {\n java.lang.Object ref = moodMessage_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n moodMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getMoodMessageBytes() {\n java.lang.Object ref = moodMessage_;\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 moodMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Builder setMoodMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n moodMessage_ = value;\n onChanged();\n return this;\n }", "java.lang.String getTheMessage();", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }", "com.google.protobuf.ByteString\n getMoodMessageBytes();", "private String addMood() {\n\t\t// Two Parameters: MoodNumber, MoodName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|mood\");\n\t\tif (!parameters[0].equals(\"0\")) {\n\t\t\ttag.append(parameters[0]);\n\t\t}\n\t\ttag.append(\":\" + parameters[1]);\n\t\treturn tag.toString();\n\n\t}", "static void cuddle(String petType) {\n\thappinessLevel = happinessLevel+2;\n\tJOptionPane.showMessageDialog(null,\"You cuddled your \"+petType+\"\\nPet Happiness Level:\"+happinessLevel);\n}", "public static void main(String[] args) {\n\tString variable=\"Hello\";\n\t\n\tString mySentence= \"Today is Sunday!\";\n\t\n System.out.println(mySentence);\n \n //int number=\"99\"; - anything that is put in \"\" becomes a string, must change int to String\n \n String number=\"99\"; //we will get 99 as a string\n System.out.println(number);\n \n \n \n\t}", "public void setMessage(String message){\r\n this.message = message;\r\n key = randNumber.nextInt(50) + 1; \r\n\r\n encode();\r\n }", "public void handleStringMessage(String message) {\n\n }", "String getMessage();", "String getMessage();", "String getMessage();", "java.lang.String getUserMessage();", "void mo23214a(Message message);", "public void setMood(String mood) {\n this.mood = mood;\n }", "public String promptString(String message) {\n ui.say(message);\n return ui.readString();\n }", "String sayHI(String msg){\n return msg + \"juga nama saya\" + this.nama;\n }", "void method_52(Message var1);", "java.lang.String getMent();", "public String getMood() {\r\n\t\treturn mood;\r\n\t}", "abstract void message(String message);", "@Override\n public String getMessage() {\n return \" ** I'm a friendly ENEMY! **\";\n }", "String getRawMessage();", "public static void typeMessage(String message) {\n\n }", "public void Decipher(String message){\n try{\n int tile = Integer.parseInt(message);\n MoveTileOpponent(tile);\n\n }catch (NumberFormatException e){\n // bomb\n if(message.equals(\"win\")){\n onWin();\n return;\n }\n if(message.equals(\"opponent_confusion\")){\n confused = true;\n return;\n }\n String[] sep = message.split(\" \");\n String tile = sep[1];\n if(sep[0].equals(\"bomb\")){\n placeBomb(Integer.parseInt(tile), true);\n }\n if(sep[0].equals(\"bomb_remove\")){\n bombs_location.remove(Integer.parseInt(tile));\n return;\n }\n if(sep[0].equals(\"powerup\")){\n placePowerup(tile);\n return;\n }\n if(sep[0].equals(\"powerup_remove\")){\n powerup_location.remove(Integer.parseInt(tile));\n return;\n }\n }\n }", "public String getMood() {\n return this.mood;\n }", "public interface GameMsg {\n\n int MSG_WHAT_START = 0;\n\n int MSG_WHAT_REFRESH = 1;\n\n int MSG_WHAT_GAP = 2;\n\n int MSG_WHAT_END = 3;\n\n int MSG_ANIM_STOP = 4;\n\n int MODEL_RAT = 0;\n\n int MODEL_MUSHROOM = 1;\n}", "java.lang.String getMsg();", "Object getMessage();", "public String getMood() {\n return \"Neutral\";\n }", "public String sounds(){\n return (\"Moooooo :o\");\n }", "void onAnything(String unformatedMessage);", "void mo80456b(Message message);", "private void testString() {\n\t\tMessage message = Message.createMessage(getId(), \"Triggers\");\n\t\tmessage.setPayload(\"Gimme a break, man!\");\n\t\tsend(message);\n\t}", "private void saySomething(String message){\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n ttsGreater21(message);\n } else {\n ttsUnder20(message);\n }\n }", "public void writeString(String message);", "public String food()//method that returns a value (string value)\r\n\t\r\n\t{\r\n\t\t\r\n\t\treturn \"(Dog!)\" + \"Sausage\";//the return value of the method\r\n\t\t\r\n\t}", "public String getMessageAt(int i){\n return message[i];\n }", "public String getMessage()\r\n {\r\n return myMessage;\r\n }", "private String encodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 1); \n }", "public abstract void intepret(String message);", "private void setMessage(final String message) {\n }", "private void showMessage(String string) {\n\n }", "public String process(String msg) {\n return msg;\n }", "@Test\n\t\t\tpublic void checkAlphanumeric() {\n\t\t\t\tMessage msgjunit = new Message();\n\t\t\t\tString msg = msgjunit.getMessage();\n\n\t\t\t\tif (msg != null) {\n\t\t\t\t\tmsg = msg;\n\t\t\t\t} else {\n\t\t\t\t\tmsg = \"This is a message\";\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tInteger.parseInt(msg);\n\t\t\t\t\tSystem.out.println(\"Message is a not string:\" + \" \" + msg );\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tSystem.out.println(\"Message is a string:\" + \" \" + msg);\n\t\t\t\t}\n\t\t\t}", "public void returnMessage(String message);", "private String getMessage() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\r\n\t\t\r\n\t\tboolean addSign = prefs.getBoolean(\"addsign\", true);\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\tdefMessage = \"I am busy right now and will call you latter.\";\r\n\t\t\r\n\t\tfinalMessage = prefs.getString(\"message\", defMessage);\r\n\t\tif(finalMessage.equals(\"\"))\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t}\r\n\t\t\r\n\t\tif(addSign)\r\n\t\t\tfinalMessage += \"\\nSent using Calls and SMS Blocker for android.\\nDownload from: https://play.google.com/store/apps/details?id=com.atiffarrukh.callandsmsblocker\";\r\n\t\treturn finalMessage;\r\n\t}", "public int getMsgType(){\r\n return localMsgType;\r\n }", "public String speak() {\n return \"WOOF\";\n }", "public void setMessage(String word){\r\n message.setText(word);\r\n }", "void setMessage(String message);", "void setMessage(String message);", "public abstract void diceMessage(Message m);", "void mo80453a(Message message);", "String getWinner();", "private String decodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 2);\n }", "void stampaMessaggio(String messaggio);", "void displayMessage(){\r\n Toast toast = Toast.makeText(this, getString(R.string.congratz_message, String.valueOf(playerScore)), Toast.LENGTH_SHORT);\r\n toast.show();\r\n }", "@Override\n public String getMessage() {\n String result =\"Audio Message {\\n\";\n result +=\"\\tID: \"+ID+\"\\n\";\n result +=\"\\tBuffer Size: \"+bufferSize+\"\\n\";\n result +=\"}\";\n \n return result;\n }", "void consumeMessage(String message);", "public String getMessage(){\r\n return message;\r\n }", "public String getMessage(){\r\n return message;\r\n }", "public String Speak()\n {\n if(this.age < 2)\n {\n\n } //end if\n return \"Woof\";\n }", "public String getMessage(){\n return(message);\n }", "public void DisplayMessage(String massage);", "int getChatTypeValue();", "void sendMessage(String msg);", "void sent(String s);", "public String talkNiceWords() {\n\t\treturn \"How are you\";\n\t}", "private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }", "public void setMessage(String message);", "public void setMessage(String message);", "public void setMessage(String message);", "public String getMessage() { return message; }", "private MessageType(String value) {\n\t\tthis.value = value;\n\t}", "public void getMessage() {\n\r\n\t}", "public void sayText(String msg);", "public void doSomething(String mmm){\n String mmmm = mmm; // OK\n\n int mooFoo = 0; // OK\n int mT = 0; // method scope so OK\n int normalCamelCase = 0; // OK\n int camelCaseWith2Number2s = 0; // OK\n\n System.out.println(mooFoo + mmmm + mT + mFoo + normalCamelCase + camelCaseWith2Number2s);\n }", "public String playerWon() {\n\t\tString message = \"Congratulations \"+name+ \"! \";\n\t\tRandom rand = new Random();\n\t\tswitch(rand.nextInt(3)) {\n\t\t\tcase 0:\n\t\t\t\tmessage+=\"Can you stop now? You're too good at this!\";\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tmessage+=\"You OBLITERATED the opponent!\";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmessage+=\"You sent them to the Shadow Realm\";\n\t\t}\n\t\treturn message;\n\t}", "@Override\n\tpublic void tellPlayer(String message) {\n\t\tSystem.out.println(message);\n\t}", "public String getMessage(){\n return message;\n }", "public String messageTest(String message) throws Exception;", "com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType();", "public String getTweetMessage( )\n {\n return _strTweetMessage;\n }", "public Mood(String mood, String moodIntake) \n {\n this.mood = mood;\n this.moodIntake = moodIntake;\n }", "public static String getGoodbyeMessage() {\n return \"GOODBYE!! MUAHAHHAHAHAHHAAHAHHAHAHA\";\n }", "public void afficherMessage () {\r\n System.out.println(\"(\"+valeur+\", \"+type+\")\"); \r\n }", "void onUnknown(String unformatedMessage);", "public String getCodedMessage(){\r\n return codedMessage;\r\n }", "State mo5880e(String str);", "void displayMessage(String message);", "public void afficherMessage();", "public String readString(String message) {\r\n\t\tString answer = null;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\talert(message);\r\n\t\tanswer = scan.next();\r\n\t\treturn answer;\r\n\t}" ]
[ "0.6856912", "0.63816416", "0.636186", "0.6358488", "0.6301726", "0.6196058", "0.6011888", "0.5941296", "0.58280337", "0.57438177", "0.57243836", "0.55841213", "0.5562145", "0.555945", "0.55389345", "0.5531197", "0.55121624", "0.5492905", "0.5492905", "0.5492905", "0.5456709", "0.54444385", "0.54331785", "0.5429904", "0.54170036", "0.54119164", "0.54007596", "0.54004383", "0.5392319", "0.5372582", "0.5371296", "0.53635234", "0.53613025", "0.53401047", "0.5335897", "0.53209794", "0.53127533", "0.529778", "0.529703", "0.52758104", "0.52745557", "0.52714944", "0.52671105", "0.52577657", "0.5235664", "0.52334285", "0.5231991", "0.5221126", "0.52209324", "0.52160156", "0.5206644", "0.5202751", "0.52009565", "0.5199034", "0.51978105", "0.519639", "0.51949865", "0.51947594", "0.5190947", "0.5190947", "0.5188379", "0.51719266", "0.516963", "0.5166866", "0.5166829", "0.51652575", "0.5163772", "0.51575303", "0.5157181", "0.5157181", "0.51551974", "0.51530534", "0.51527625", "0.5152492", "0.51522833", "0.51510316", "0.5150608", "0.51311255", "0.5128096", "0.5128096", "0.5128096", "0.51279086", "0.51250255", "0.51231635", "0.51225233", "0.5119184", "0.5118775", "0.51171684", "0.51100546", "0.51096344", "0.5101383", "0.5095936", "0.5093346", "0.50905573", "0.50760055", "0.50739604", "0.50720733", "0.50708795", "0.5068727", "0.5064225", "0.5056023" ]
0.0
-1
string moodMessage = 5;
public Builder setMoodMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); moodMessage_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getMoodMessage();", "public String getMessage(int chance){\n switch(chance){\n case 1: danger=5;\n pred = \"monkeys\";\n return \"A whole community of monkeys hide in the trees around you. They stare intently\";\n case 2: danger=5;\n pred = \"snakes\";\n return \"In the ground there are giant holes as if made by a large mammal. But no such animals live here \";\n case 3: danger=10;\n pred = \"tiger\";\n return \"A tiger is watching you. This is not the jungle book\";\n case 4: danger = 6;\n pred = \"evil rabbit\";\n return \"There are animal carcases everywhere. You are in someones lair\";\n default: return \"\";\n }\n}", "abstract String moodString();", "public java.lang.String getMoodMessage() {\n java.lang.Object ref = moodMessage_;\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 moodMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getMoodMessage() {\n java.lang.Object ref = moodMessage_;\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 moodMessage_ = s;\n return s;\n }\n }", "String Message ();", "public com.google.protobuf.ByteString\n getMoodMessageBytes() {\n java.lang.Object ref = moodMessage_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n moodMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getMoodMessageBytes() {\n java.lang.Object ref = moodMessage_;\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 moodMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Builder setMoodMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n moodMessage_ = value;\n onChanged();\n return this;\n }", "java.lang.String getTheMessage();", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }", "com.google.protobuf.ByteString\n getMoodMessageBytes();", "private String addMood() {\n\t\t// Two Parameters: MoodNumber, MoodName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|mood\");\n\t\tif (!parameters[0].equals(\"0\")) {\n\t\t\ttag.append(parameters[0]);\n\t\t}\n\t\ttag.append(\":\" + parameters[1]);\n\t\treturn tag.toString();\n\n\t}", "static void cuddle(String petType) {\n\thappinessLevel = happinessLevel+2;\n\tJOptionPane.showMessageDialog(null,\"You cuddled your \"+petType+\"\\nPet Happiness Level:\"+happinessLevel);\n}", "public static void main(String[] args) {\n\tString variable=\"Hello\";\n\t\n\tString mySentence= \"Today is Sunday!\";\n\t\n System.out.println(mySentence);\n \n //int number=\"99\"; - anything that is put in \"\" becomes a string, must change int to String\n \n String number=\"99\"; //we will get 99 as a string\n System.out.println(number);\n \n \n \n\t}", "public void setMessage(String message){\r\n this.message = message;\r\n key = randNumber.nextInt(50) + 1; \r\n\r\n encode();\r\n }", "public void handleStringMessage(String message) {\n\n }", "String getMessage();", "String getMessage();", "String getMessage();", "java.lang.String getUserMessage();", "void mo23214a(Message message);", "public void setMood(String mood) {\n this.mood = mood;\n }", "public String promptString(String message) {\n ui.say(message);\n return ui.readString();\n }", "String sayHI(String msg){\n return msg + \"juga nama saya\" + this.nama;\n }", "void method_52(Message var1);", "java.lang.String getMent();", "public String getMood() {\r\n\t\treturn mood;\r\n\t}", "abstract void message(String message);", "@Override\n public String getMessage() {\n return \" ** I'm a friendly ENEMY! **\";\n }", "String getRawMessage();", "public static void typeMessage(String message) {\n\n }", "public void Decipher(String message){\n try{\n int tile = Integer.parseInt(message);\n MoveTileOpponent(tile);\n\n }catch (NumberFormatException e){\n // bomb\n if(message.equals(\"win\")){\n onWin();\n return;\n }\n if(message.equals(\"opponent_confusion\")){\n confused = true;\n return;\n }\n String[] sep = message.split(\" \");\n String tile = sep[1];\n if(sep[0].equals(\"bomb\")){\n placeBomb(Integer.parseInt(tile), true);\n }\n if(sep[0].equals(\"bomb_remove\")){\n bombs_location.remove(Integer.parseInt(tile));\n return;\n }\n if(sep[0].equals(\"powerup\")){\n placePowerup(tile);\n return;\n }\n if(sep[0].equals(\"powerup_remove\")){\n powerup_location.remove(Integer.parseInt(tile));\n return;\n }\n }\n }", "public String getMood() {\n return this.mood;\n }", "public interface GameMsg {\n\n int MSG_WHAT_START = 0;\n\n int MSG_WHAT_REFRESH = 1;\n\n int MSG_WHAT_GAP = 2;\n\n int MSG_WHAT_END = 3;\n\n int MSG_ANIM_STOP = 4;\n\n int MODEL_RAT = 0;\n\n int MODEL_MUSHROOM = 1;\n}", "java.lang.String getMsg();", "Object getMessage();", "public String getMood() {\n return \"Neutral\";\n }", "public String sounds(){\n return (\"Moooooo :o\");\n }", "void onAnything(String unformatedMessage);", "void mo80456b(Message message);", "private void testString() {\n\t\tMessage message = Message.createMessage(getId(), \"Triggers\");\n\t\tmessage.setPayload(\"Gimme a break, man!\");\n\t\tsend(message);\n\t}", "private void saySomething(String message){\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n ttsGreater21(message);\n } else {\n ttsUnder20(message);\n }\n }", "public void writeString(String message);", "public String food()//method that returns a value (string value)\r\n\t\r\n\t{\r\n\t\t\r\n\t\treturn \"(Dog!)\" + \"Sausage\";//the return value of the method\r\n\t\t\r\n\t}", "public String getMessageAt(int i){\n return message[i];\n }", "public String getMessage()\r\n {\r\n return myMessage;\r\n }", "private String encodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 1); \n }", "public abstract void intepret(String message);", "private void setMessage(final String message) {\n }", "private void showMessage(String string) {\n\n }", "public String process(String msg) {\n return msg;\n }", "@Test\n\t\t\tpublic void checkAlphanumeric() {\n\t\t\t\tMessage msgjunit = new Message();\n\t\t\t\tString msg = msgjunit.getMessage();\n\n\t\t\t\tif (msg != null) {\n\t\t\t\t\tmsg = msg;\n\t\t\t\t} else {\n\t\t\t\t\tmsg = \"This is a message\";\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tInteger.parseInt(msg);\n\t\t\t\t\tSystem.out.println(\"Message is a not string:\" + \" \" + msg );\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tSystem.out.println(\"Message is a string:\" + \" \" + msg);\n\t\t\t\t}\n\t\t\t}", "public void returnMessage(String message);", "private String getMessage() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\r\n\t\t\r\n\t\tboolean addSign = prefs.getBoolean(\"addsign\", true);\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\tdefMessage = \"I am busy right now and will call you latter.\";\r\n\t\t\r\n\t\tfinalMessage = prefs.getString(\"message\", defMessage);\r\n\t\tif(finalMessage.equals(\"\"))\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t}\r\n\t\t\r\n\t\tif(addSign)\r\n\t\t\tfinalMessage += \"\\nSent using Calls and SMS Blocker for android.\\nDownload from: https://play.google.com/store/apps/details?id=com.atiffarrukh.callandsmsblocker\";\r\n\t\treturn finalMessage;\r\n\t}", "public int getMsgType(){\r\n return localMsgType;\r\n }", "public String speak() {\n return \"WOOF\";\n }", "public void setMessage(String word){\r\n message.setText(word);\r\n }", "void setMessage(String message);", "void setMessage(String message);", "public abstract void diceMessage(Message m);", "void mo80453a(Message message);", "String getWinner();", "private String decodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 2);\n }", "void stampaMessaggio(String messaggio);", "void displayMessage(){\r\n Toast toast = Toast.makeText(this, getString(R.string.congratz_message, String.valueOf(playerScore)), Toast.LENGTH_SHORT);\r\n toast.show();\r\n }", "@Override\n public String getMessage() {\n String result =\"Audio Message {\\n\";\n result +=\"\\tID: \"+ID+\"\\n\";\n result +=\"\\tBuffer Size: \"+bufferSize+\"\\n\";\n result +=\"}\";\n \n return result;\n }", "void consumeMessage(String message);", "public String getMessage(){\r\n return message;\r\n }", "public String getMessage(){\r\n return message;\r\n }", "public String Speak()\n {\n if(this.age < 2)\n {\n\n } //end if\n return \"Woof\";\n }", "public String getMessage(){\n return(message);\n }", "public void DisplayMessage(String massage);", "int getChatTypeValue();", "void sendMessage(String msg);", "void sent(String s);", "public String talkNiceWords() {\n\t\treturn \"How are you\";\n\t}", "private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }", "public void setMessage(String message);", "public void setMessage(String message);", "public void setMessage(String message);", "public String getMessage() { return message; }", "private MessageType(String value) {\n\t\tthis.value = value;\n\t}", "public void getMessage() {\n\r\n\t}", "public void sayText(String msg);", "public void doSomething(String mmm){\n String mmmm = mmm; // OK\n\n int mooFoo = 0; // OK\n int mT = 0; // method scope so OK\n int normalCamelCase = 0; // OK\n int camelCaseWith2Number2s = 0; // OK\n\n System.out.println(mooFoo + mmmm + mT + mFoo + normalCamelCase + camelCaseWith2Number2s);\n }", "public String playerWon() {\n\t\tString message = \"Congratulations \"+name+ \"! \";\n\t\tRandom rand = new Random();\n\t\tswitch(rand.nextInt(3)) {\n\t\t\tcase 0:\n\t\t\t\tmessage+=\"Can you stop now? You're too good at this!\";\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tmessage+=\"You OBLITERATED the opponent!\";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmessage+=\"You sent them to the Shadow Realm\";\n\t\t}\n\t\treturn message;\n\t}", "@Override\n\tpublic void tellPlayer(String message) {\n\t\tSystem.out.println(message);\n\t}", "public String getMessage(){\n return message;\n }", "public String messageTest(String message) throws Exception;", "com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType();", "public String getTweetMessage( )\n {\n return _strTweetMessage;\n }", "public Mood(String mood, String moodIntake) \n {\n this.mood = mood;\n this.moodIntake = moodIntake;\n }", "public static String getGoodbyeMessage() {\n return \"GOODBYE!! MUAHAHHAHAHAHHAAHAHHAHAHA\";\n }", "public void afficherMessage () {\r\n System.out.println(\"(\"+valeur+\", \"+type+\")\"); \r\n }", "void onUnknown(String unformatedMessage);", "public String getCodedMessage(){\r\n return codedMessage;\r\n }", "State mo5880e(String str);", "void displayMessage(String message);", "public void afficherMessage();", "public String readString(String message) {\r\n\t\tString answer = null;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\talert(message);\r\n\t\tanswer = scan.next();\r\n\t\treturn answer;\r\n\t}" ]
[ "0.6856912", "0.63816416", "0.636186", "0.6358488", "0.6301726", "0.6196058", "0.6011888", "0.5941296", "0.58280337", "0.57438177", "0.57243836", "0.55841213", "0.5562145", "0.555945", "0.55389345", "0.5531197", "0.55121624", "0.5492905", "0.5492905", "0.5492905", "0.5456709", "0.54444385", "0.54331785", "0.5429904", "0.54170036", "0.54119164", "0.54007596", "0.54004383", "0.5392319", "0.5372582", "0.5371296", "0.53635234", "0.53613025", "0.53401047", "0.5335897", "0.53209794", "0.53127533", "0.529778", "0.529703", "0.52758104", "0.52745557", "0.52714944", "0.52671105", "0.52577657", "0.5235664", "0.52334285", "0.5231991", "0.5221126", "0.52209324", "0.52160156", "0.5206644", "0.5202751", "0.52009565", "0.5199034", "0.51978105", "0.519639", "0.51949865", "0.51947594", "0.5190947", "0.5190947", "0.5188379", "0.51719266", "0.516963", "0.5166866", "0.5166829", "0.51652575", "0.5163772", "0.51575303", "0.5157181", "0.5157181", "0.51551974", "0.51530534", "0.51527625", "0.5152492", "0.51522833", "0.51510316", "0.5150608", "0.51311255", "0.5128096", "0.5128096", "0.5128096", "0.51279086", "0.51250255", "0.51231635", "0.51225233", "0.5119184", "0.5118775", "0.51171684", "0.51100546", "0.51096344", "0.5101383", "0.5095936", "0.5093346", "0.50905573", "0.50760055", "0.50739604", "0.50720733", "0.50708795", "0.5068727", "0.5064225", "0.5056023" ]
0.0
-1
int32 postNum = 6;
public int getPostNum() { return postNum_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPostNum();", "void mo107677b(Integer num);", "long mo107678c(Integer num);", "public int getPostNum() {\n return postNum_;\n }", "private static int getPayload()\n\t{\n\t\tint max = Integer.MAX_VALUE; // largest int we can get 2147483647\n\t\tint min = Integer.MIN_VALUE; // smallest int we can get -2147483648\n\t\t\n\t\tRandom rn = new Random();\n\t\tint randomInt = rn.nextInt(); // \n\t\treturn randomInt; // hoping this will create the large number that we want to use.\n\t}", "public static Value makeAnyNumUInt() {\n return theNumUInt;\n }", "public abstract int mo12574RN(int i);", "public abstract int mo12580RT(int i);", "public int getPostnr() {\n return postnr;\n }", "int getN();", "public int get_num_p(){ return num_p; }", "public int getNumber() {\n\t\treturn 666;\n\t}", "public static void main(String[] args)\n {\n int a=55;\n\n System.out.println(a);\n System.out.println(mynumber);\n\n }", "public int arn() {\n return 383;\n }", "private\tNum(int num) { value = num; }", "public abstract int preN();", "public void setNumJrnPost(Integer numJrnPost) {\n this.numJrnPost = numJrnPost;\n }", "int mo1756e(int i);", "int decodeInt();", "public abstract int mo12576RP(int i);", "int generarNumeroNota();", "public Integer getNumJrnPost() {\n return numJrnPost;\n }", "void mo32046rn(int i);", "public static void main (String[] args) {\n\n byte number = 6;\n// byte number1 = 127;\n //byte number2 = 129; for byte the rangde is -128 to 127 why its not compile\n short number3 = 100;\n short number4 = 31789;\n\n int number1;\n int num$=9;\n //int 5num=12 ===> this is NOT OK\n\n //system.out.println =sout;\n\n int number5=32_000;// you can use underscore (__) in beetween digits\n\n int number6= 1_000_000;// you can use (_) in beetwen numbers they are not effecting screen show\n\n System.out.println(number6);\n\n long number7=34345;\n long number8=74_813_492_034_854L;// you should use L at the end of the long values ....\n\n System.out.println(number8);\n\n float number9 = 2.3f; // you should use f/F at the end of float values\n float number10=56.0f;\n System.out.println(\"Value of number10--->\" +number10);\n\n\n double number12=2.1;\n\n double number13=89;// 89--->89.0 double data type can store int values\n\n System.out.println();\n\n //MOST COMMON primitive data toe USAGES ARE int, double, long, boolean\n\n\n\n\n}", "Integer getNLNDreu();", "public long getnNum() {\n return nNum;\n }", "long mo19692a(C3586u uVar) throws IOException;", "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 abstract Integer mo36212o();", "void mo3796b(int i);", "public static Value makeAnyNumUIntPos() {\n return theNumUIntPos;\n }", "public int getNum() { return Num;}", "public short numeroGDP();", "public void puzzle4(){\n\t\tshort x = 0;\n\t\tint i = 123456;\n\t\tx += i; // narrowing primitive conversion [JLS 5.1.3]\n\t\t//x = x + i; // wont compile:possible loss of precision\n\t\tSystem.out.println(\"Value of x \"+x);\n\t}", "int method20()\n {\n return 579190;\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tbyte b=3;\n\t\tshort s=34;\n\t\tint i=125;\n\t\t\n\t}", "public int n(){\n return n;\n }", "public static void massage() {\n int zip = 10_0_17;\n }", "long mo133613a();", "public int mo4307b(int i) {\n return 1;\n }", "int mo27483b();", "public abstract int mo4307b(int i);", "public int getUnknown6()\r\n\t{\r\n\t\treturn unknown6;\r\n\t}", "public Builder setPostNum(int value) {\n \n postNum_ = value;\n onChanged();\n return this;\n }", "public abstract int mo12578RR(int i);", "public abstract Integer mo36210m();", "public static void main(String[] args) {\n\n byte number = 6;\n byte number1 = 127;\n // byte number2 = 129; for byte the range is -128 to 127. that's why it will not compile\n\n short number3 = 100;\n short number4 =31789;\n\n int number5 = 32_000;// you can use underscore (_) in between digits, it will not effect the value\n\n int number6 = 1_000_000;// you can use underscore (_) in between digits it will not effect the value\n\n System.out.println(number6);\n\n long number7 = 341345;\n long number8 = 74_813_492_034_854L;// you should use 'l/L' at the end of long values\n System.out.println(number8);\n\n float number9 = 2.3f; // // you should use 'f/F' at the end of float values\n\n float number10 = 56; //56 --> 56.0\n\n System.out.println(\"Value of number10 --> \"+number10);\n\n // int a = 5.6; you can not store decimal value in int data type\n float number11 =56.0f;\n\n double number12 = 2.1;\n\n double number13 = 89; // 89 --> 89.0 double data type can store int values\n System.out.println(number13);\n\n // most common primitive data type usages are int, double, long, boolean\n\n }", "public abstract int mo12581RU(int i);", "long mo25071a(long j);", "int mo54450o(int i);", "public abstract int mo12575RO(int i);", "long getUnknown12();", "private native void Df1_Write_Integer(String plcAddress,short value) throws Df1LibraryNativeException;", "public static void main(String[] args) {\n int num = 4;\r\n byte b =(byte) num;\r\n System.out.println(b);\r\n\t}", "void mo54436d(int i);", "public static int INT(byte[] sz, int type) {\n int num = 0, i = 0, s = 1 , itr = 0;\n if(type == 1) {\n s = -1;\n i = sz.length;\n }//set loop from end for little indian \n while(itr < 4 && itr < sz.length) {\n i = i + s * 1;\n //System.out.println(\"INT \"+itr+\" : IN \" + HEX(num));\n // System.out.println(\"BYTE : IN \" + HEX(sz[i]));\n num = num << 8;\n num = num + (sz[i] & 0xff);\n //System.out.println(\"INT : IN \" + HEX(num));\n itr++;\n }return num;\n }", "public int mo36g() {\n return 4;\n }", "int getEInt();", "long mo54439f(int i);", "public abstract long mo24412e();", "public static int getRequestNum(){\n return requestNum;\n }", "int intValue();", "void mo54437e(int i);", "public void mo5332a(int i) {\n }", "public static void main(String[] args){\n byte b1=34;\n // -128, 127\n System.out.println(b1);\n\n\n // short example\n short s1=28;\n // stores whole numbers -32,768 to 32,767\n short s2=1000;\n short s3=35;\n\n //range of int 4 bytes stores -2,147,483,648 to 2,147,483,647\n int number=23456677;\n System.out.println(44); //as default it consider as \"int\"\n long l1= 200;\n long l2=9999999999L;/* when you move out of int range computer needs to know what is the number\n that is why you need to tell it is long by adding L at the end */\n System.out.println(999999999999L);\n\n //stores decimal numbers\n double d1= 5.5;\n System.out.println(d1);\n // as a default java picks double for decimal number\n System.out.println(3.5);\n float f1= 4.5f;\n System.out.println(f1);\n System.out.println(f1+d1);\n\n\n\n\n\n\n }", "public Short getnNumreq() {\n return nNumreq;\n }", "public void mo32111rr(int i) {\n }", "public short mo34e() {\n return 41;\n }", "public java.lang.Integer getVar295() {\n return var295;\n }", "public static void main(String[] args) {\n short i=10;\n short j=10;\n short k=10+10;\n byte apples = 5;\n short oranges = 10;\n int bananas = apples + oranges;\n\n }", "public int mo3361f() {\n return 1;\n }", "public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }", "static private int makeInt(int b3, int b2, int b1, int b0) {\n return (((b3 ) << 24) |\n ((b2 & 0xff) << 16) |\n ((b1 & 0xff) << 8) |\n ((b0 & 0xff) ));\n }", "private int getNumero() {\n\t\treturn numero;\n\t}", "void mo54406a(int i);", "public static void main(String[] args) {\n byte number = (byte)(Math.random()*52);\n\n\n }", "public static void main(String[] args){\r\n System.out.println(reverseInteger(12345));\r\n }", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "public int returnPacketNumber(byte[] bytes){\n int x = Byte.toUnsignedInt(bytes[2]);\n int y = Byte.toUnsignedInt(bytes[3]);\n\n int packetNumber = (256*x) + y;\n return packetNumber;\n }", "void mo6888a(int i);", "Integer getNLNDccp();", "public long getUInt() { return bb.getInt() & 0xffff_ffffL; }", "public static void main(String[] args) {\n\n\t\tint number=123;\n\t}", "public abstract int mo12572RL(int i);", "int getI17();", "void mo38565a(int i);", "public int method_2436() {\r\n return 16;\r\n }", "void mo1753b(int i);", "public int getN() {\n return n;\n }", "public int mo36g() {\n return 2;\n }", "public int mo36g() {\n return 8;\n }", "int mo44965b();", "public abstract int mo9736c(int i);", "public byte getSNum() {\r\n return _sNum;\r\n }", "public java.lang.Integer getVar295() {\n return var295;\n }", "public static void main(String[] args) {\n\t\t\n\t\tint myNumber=356;\n\t\tint stepOne=myNumber*myNumber;\n\t\tint step2=stepOne+myNumber;\n\t\tint step3=step2/myNumber;\n\t\tint step4=step3+17;\n\t\tint step5=step4-myNumber;\n\t\tint step6=step5/6;\n\t\t\n\t\tSystem.out.println(\"The magic number is \"+step6);\n\n\t}", "public int getNumberValue() {\r\n return number;\r\n }", "Integer getSObjNum();", "public abstract int mo12579RS(int i);", "int getPinNumber();" ]
[ "0.70499706", "0.6268922", "0.6069124", "0.5955741", "0.5758866", "0.56437016", "0.56395686", "0.5617176", "0.5557072", "0.5541478", "0.55296683", "0.5494851", "0.54886717", "0.5475995", "0.5430935", "0.54142344", "0.5403537", "0.53991836", "0.53920144", "0.5389325", "0.5387756", "0.5381173", "0.5365041", "0.535827", "0.53566253", "0.5352105", "0.5345841", "0.5344143", "0.53371406", "0.5335995", "0.53294796", "0.5305054", "0.52950525", "0.52927077", "0.52887565", "0.5287152", "0.52821416", "0.52808464", "0.5276179", "0.5276034", "0.5274419", "0.52735764", "0.526386", "0.525654", "0.5254947", "0.5254743", "0.52533853", "0.524234", "0.5239968", "0.52389914", "0.5237833", "0.5233589", "0.52328026", "0.523209", "0.5228028", "0.5227868", "0.5222095", "0.5214328", "0.520283", "0.5198216", "0.5197142", "0.5197099", "0.5193037", "0.51926315", "0.51916444", "0.51870495", "0.51868916", "0.5178808", "0.5177927", "0.5177238", "0.51754653", "0.5173667", "0.51719797", "0.5162813", "0.5161035", "0.51592654", "0.5157351", "0.51549953", "0.51546586", "0.5152558", "0.514862", "0.5147095", "0.5146626", "0.51448685", "0.5140705", "0.5138541", "0.5133568", "0.5128315", "0.5126824", "0.5125345", "0.5121938", "0.51207685", "0.511792", "0.51173407", "0.511689", "0.51168805", "0.51155204", "0.51141346", "0.5113634", "0.5094269" ]
0.58181226
4
int32 postNum = 6;
public Builder setPostNum(int value) { postNum_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPostNum();", "void mo107677b(Integer num);", "long mo107678c(Integer num);", "public int getPostNum() {\n return postNum_;\n }", "public int getPostNum() {\n return postNum_;\n }", "private static int getPayload()\n\t{\n\t\tint max = Integer.MAX_VALUE; // largest int we can get 2147483647\n\t\tint min = Integer.MIN_VALUE; // smallest int we can get -2147483648\n\t\t\n\t\tRandom rn = new Random();\n\t\tint randomInt = rn.nextInt(); // \n\t\treturn randomInt; // hoping this will create the large number that we want to use.\n\t}", "public static Value makeAnyNumUInt() {\n return theNumUInt;\n }", "public abstract int mo12574RN(int i);", "public abstract int mo12580RT(int i);", "public int getPostnr() {\n return postnr;\n }", "int getN();", "public int get_num_p(){ return num_p; }", "public int getNumber() {\n\t\treturn 666;\n\t}", "public static void main(String[] args)\n {\n int a=55;\n\n System.out.println(a);\n System.out.println(mynumber);\n\n }", "public int arn() {\n return 383;\n }", "private\tNum(int num) { value = num; }", "public abstract int preN();", "public void setNumJrnPost(Integer numJrnPost) {\n this.numJrnPost = numJrnPost;\n }", "int mo1756e(int i);", "int decodeInt();", "public abstract int mo12576RP(int i);", "int generarNumeroNota();", "public Integer getNumJrnPost() {\n return numJrnPost;\n }", "void mo32046rn(int i);", "public static void main (String[] args) {\n\n byte number = 6;\n// byte number1 = 127;\n //byte number2 = 129; for byte the rangde is -128 to 127 why its not compile\n short number3 = 100;\n short number4 = 31789;\n\n int number1;\n int num$=9;\n //int 5num=12 ===> this is NOT OK\n\n //system.out.println =sout;\n\n int number5=32_000;// you can use underscore (__) in beetween digits\n\n int number6= 1_000_000;// you can use (_) in beetwen numbers they are not effecting screen show\n\n System.out.println(number6);\n\n long number7=34345;\n long number8=74_813_492_034_854L;// you should use L at the end of the long values ....\n\n System.out.println(number8);\n\n float number9 = 2.3f; // you should use f/F at the end of float values\n float number10=56.0f;\n System.out.println(\"Value of number10--->\" +number10);\n\n\n double number12=2.1;\n\n double number13=89;// 89--->89.0 double data type can store int values\n\n System.out.println();\n\n //MOST COMMON primitive data toe USAGES ARE int, double, long, boolean\n\n\n\n\n}", "Integer getNLNDreu();", "public long getnNum() {\n return nNum;\n }", "long mo19692a(C3586u uVar) throws IOException;", "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 abstract Integer mo36212o();", "void mo3796b(int i);", "public static Value makeAnyNumUIntPos() {\n return theNumUIntPos;\n }", "public int getNum() { return Num;}", "public short numeroGDP();", "public void puzzle4(){\n\t\tshort x = 0;\n\t\tint i = 123456;\n\t\tx += i; // narrowing primitive conversion [JLS 5.1.3]\n\t\t//x = x + i; // wont compile:possible loss of precision\n\t\tSystem.out.println(\"Value of x \"+x);\n\t}", "int method20()\n {\n return 579190;\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tbyte b=3;\n\t\tshort s=34;\n\t\tint i=125;\n\t\t\n\t}", "public int n(){\n return n;\n }", "public static void massage() {\n int zip = 10_0_17;\n }", "long mo133613a();", "public int mo4307b(int i) {\n return 1;\n }", "int mo27483b();", "public abstract int mo4307b(int i);", "public int getUnknown6()\r\n\t{\r\n\t\treturn unknown6;\r\n\t}", "public abstract int mo12578RR(int i);", "public abstract Integer mo36210m();", "public static void main(String[] args) {\n\n byte number = 6;\n byte number1 = 127;\n // byte number2 = 129; for byte the range is -128 to 127. that's why it will not compile\n\n short number3 = 100;\n short number4 =31789;\n\n int number5 = 32_000;// you can use underscore (_) in between digits, it will not effect the value\n\n int number6 = 1_000_000;// you can use underscore (_) in between digits it will not effect the value\n\n System.out.println(number6);\n\n long number7 = 341345;\n long number8 = 74_813_492_034_854L;// you should use 'l/L' at the end of long values\n System.out.println(number8);\n\n float number9 = 2.3f; // // you should use 'f/F' at the end of float values\n\n float number10 = 56; //56 --> 56.0\n\n System.out.println(\"Value of number10 --> \"+number10);\n\n // int a = 5.6; you can not store decimal value in int data type\n float number11 =56.0f;\n\n double number12 = 2.1;\n\n double number13 = 89; // 89 --> 89.0 double data type can store int values\n System.out.println(number13);\n\n // most common primitive data type usages are int, double, long, boolean\n\n }", "public abstract int mo12581RU(int i);", "long mo25071a(long j);", "int mo54450o(int i);", "public abstract int mo12575RO(int i);", "long getUnknown12();", "private native void Df1_Write_Integer(String plcAddress,short value) throws Df1LibraryNativeException;", "public static void main(String[] args) {\n int num = 4;\r\n byte b =(byte) num;\r\n System.out.println(b);\r\n\t}", "void mo54436d(int i);", "public static int INT(byte[] sz, int type) {\n int num = 0, i = 0, s = 1 , itr = 0;\n if(type == 1) {\n s = -1;\n i = sz.length;\n }//set loop from end for little indian \n while(itr < 4 && itr < sz.length) {\n i = i + s * 1;\n //System.out.println(\"INT \"+itr+\" : IN \" + HEX(num));\n // System.out.println(\"BYTE : IN \" + HEX(sz[i]));\n num = num << 8;\n num = num + (sz[i] & 0xff);\n //System.out.println(\"INT : IN \" + HEX(num));\n itr++;\n }return num;\n }", "public int mo36g() {\n return 4;\n }", "int getEInt();", "long mo54439f(int i);", "public abstract long mo24412e();", "public static int getRequestNum(){\n return requestNum;\n }", "int intValue();", "void mo54437e(int i);", "public void mo5332a(int i) {\n }", "public static void main(String[] args){\n byte b1=34;\n // -128, 127\n System.out.println(b1);\n\n\n // short example\n short s1=28;\n // stores whole numbers -32,768 to 32,767\n short s2=1000;\n short s3=35;\n\n //range of int 4 bytes stores -2,147,483,648 to 2,147,483,647\n int number=23456677;\n System.out.println(44); //as default it consider as \"int\"\n long l1= 200;\n long l2=9999999999L;/* when you move out of int range computer needs to know what is the number\n that is why you need to tell it is long by adding L at the end */\n System.out.println(999999999999L);\n\n //stores decimal numbers\n double d1= 5.5;\n System.out.println(d1);\n // as a default java picks double for decimal number\n System.out.println(3.5);\n float f1= 4.5f;\n System.out.println(f1);\n System.out.println(f1+d1);\n\n\n\n\n\n\n }", "public Short getnNumreq() {\n return nNumreq;\n }", "public void mo32111rr(int i) {\n }", "public short mo34e() {\n return 41;\n }", "public java.lang.Integer getVar295() {\n return var295;\n }", "public static void main(String[] args) {\n short i=10;\n short j=10;\n short k=10+10;\n byte apples = 5;\n short oranges = 10;\n int bananas = apples + oranges;\n\n }", "public int mo3361f() {\n return 1;\n }", "public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }", "static private int makeInt(int b3, int b2, int b1, int b0) {\n return (((b3 ) << 24) |\n ((b2 & 0xff) << 16) |\n ((b1 & 0xff) << 8) |\n ((b0 & 0xff) ));\n }", "private int getNumero() {\n\t\treturn numero;\n\t}", "void mo54406a(int i);", "public static void main(String[] args) {\n byte number = (byte)(Math.random()*52);\n\n\n }", "public static void main(String[] args){\r\n System.out.println(reverseInteger(12345));\r\n }", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "public int returnPacketNumber(byte[] bytes){\n int x = Byte.toUnsignedInt(bytes[2]);\n int y = Byte.toUnsignedInt(bytes[3]);\n\n int packetNumber = (256*x) + y;\n return packetNumber;\n }", "void mo6888a(int i);", "Integer getNLNDccp();", "public long getUInt() { return bb.getInt() & 0xffff_ffffL; }", "public static void main(String[] args) {\n\n\t\tint number=123;\n\t}", "public abstract int mo12572RL(int i);", "int getI17();", "void mo38565a(int i);", "public int method_2436() {\r\n return 16;\r\n }", "void mo1753b(int i);", "public int getN() {\n return n;\n }", "public int mo36g() {\n return 2;\n }", "public int mo36g() {\n return 8;\n }", "int mo44965b();", "public abstract int mo9736c(int i);", "public byte getSNum() {\r\n return _sNum;\r\n }", "public java.lang.Integer getVar295() {\n return var295;\n }", "public static void main(String[] args) {\n\t\t\n\t\tint myNumber=356;\n\t\tint stepOne=myNumber*myNumber;\n\t\tint step2=stepOne+myNumber;\n\t\tint step3=step2/myNumber;\n\t\tint step4=step3+17;\n\t\tint step5=step4-myNumber;\n\t\tint step6=step5/6;\n\t\t\n\t\tSystem.out.println(\"The magic number is \"+step6);\n\n\t}", "public int getNumberValue() {\r\n return number;\r\n }", "Integer getSObjNum();", "public abstract int mo12579RS(int i);", "int getPinNumber();" ]
[ "0.70499706", "0.6268922", "0.6069124", "0.5955741", "0.58181226", "0.5758866", "0.56437016", "0.56395686", "0.5617176", "0.5557072", "0.5541478", "0.55296683", "0.5494851", "0.54886717", "0.5475995", "0.5430935", "0.54142344", "0.5403537", "0.53991836", "0.53920144", "0.5389325", "0.5387756", "0.5381173", "0.5365041", "0.535827", "0.53566253", "0.5352105", "0.5345841", "0.5344143", "0.53371406", "0.5335995", "0.53294796", "0.5305054", "0.52950525", "0.52927077", "0.52887565", "0.5287152", "0.52821416", "0.52808464", "0.5276179", "0.5276034", "0.5274419", "0.52735764", "0.526386", "0.5254947", "0.5254743", "0.52533853", "0.524234", "0.5239968", "0.52389914", "0.5237833", "0.5233589", "0.52328026", "0.523209", "0.5228028", "0.5227868", "0.5222095", "0.5214328", "0.520283", "0.5198216", "0.5197142", "0.5197099", "0.5193037", "0.51926315", "0.51916444", "0.51870495", "0.51868916", "0.5178808", "0.5177927", "0.5177238", "0.51754653", "0.5173667", "0.51719797", "0.5162813", "0.5161035", "0.51592654", "0.5157351", "0.51549953", "0.51546586", "0.5152558", "0.514862", "0.5147095", "0.5146626", "0.51448685", "0.5140705", "0.5138541", "0.5133568", "0.5128315", "0.5126824", "0.5125345", "0.5121938", "0.51207685", "0.511792", "0.51173407", "0.511689", "0.51168805", "0.51155204", "0.51141346", "0.5113634", "0.5094269" ]
0.525654
44
int32 postNum = 6;
public Builder clearPostNum() { postNum_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPostNum();", "void mo107677b(Integer num);", "long mo107678c(Integer num);", "public int getPostNum() {\n return postNum_;\n }", "public int getPostNum() {\n return postNum_;\n }", "private static int getPayload()\n\t{\n\t\tint max = Integer.MAX_VALUE; // largest int we can get 2147483647\n\t\tint min = Integer.MIN_VALUE; // smallest int we can get -2147483648\n\t\t\n\t\tRandom rn = new Random();\n\t\tint randomInt = rn.nextInt(); // \n\t\treturn randomInt; // hoping this will create the large number that we want to use.\n\t}", "public static Value makeAnyNumUInt() {\n return theNumUInt;\n }", "public abstract int mo12574RN(int i);", "public abstract int mo12580RT(int i);", "public int getPostnr() {\n return postnr;\n }", "int getN();", "public int get_num_p(){ return num_p; }", "public int getNumber() {\n\t\treturn 666;\n\t}", "public static void main(String[] args)\n {\n int a=55;\n\n System.out.println(a);\n System.out.println(mynumber);\n\n }", "public int arn() {\n return 383;\n }", "private\tNum(int num) { value = num; }", "public abstract int preN();", "public void setNumJrnPost(Integer numJrnPost) {\n this.numJrnPost = numJrnPost;\n }", "int mo1756e(int i);", "int decodeInt();", "public abstract int mo12576RP(int i);", "int generarNumeroNota();", "public Integer getNumJrnPost() {\n return numJrnPost;\n }", "void mo32046rn(int i);", "public static void main (String[] args) {\n\n byte number = 6;\n// byte number1 = 127;\n //byte number2 = 129; for byte the rangde is -128 to 127 why its not compile\n short number3 = 100;\n short number4 = 31789;\n\n int number1;\n int num$=9;\n //int 5num=12 ===> this is NOT OK\n\n //system.out.println =sout;\n\n int number5=32_000;// you can use underscore (__) in beetween digits\n\n int number6= 1_000_000;// you can use (_) in beetwen numbers they are not effecting screen show\n\n System.out.println(number6);\n\n long number7=34345;\n long number8=74_813_492_034_854L;// you should use L at the end of the long values ....\n\n System.out.println(number8);\n\n float number9 = 2.3f; // you should use f/F at the end of float values\n float number10=56.0f;\n System.out.println(\"Value of number10--->\" +number10);\n\n\n double number12=2.1;\n\n double number13=89;// 89--->89.0 double data type can store int values\n\n System.out.println();\n\n //MOST COMMON primitive data toe USAGES ARE int, double, long, boolean\n\n\n\n\n}", "Integer getNLNDreu();", "public long getnNum() {\n return nNum;\n }", "long mo19692a(C3586u uVar) throws IOException;", "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 abstract Integer mo36212o();", "void mo3796b(int i);", "public static Value makeAnyNumUIntPos() {\n return theNumUIntPos;\n }", "public int getNum() { return Num;}", "public short numeroGDP();", "public void puzzle4(){\n\t\tshort x = 0;\n\t\tint i = 123456;\n\t\tx += i; // narrowing primitive conversion [JLS 5.1.3]\n\t\t//x = x + i; // wont compile:possible loss of precision\n\t\tSystem.out.println(\"Value of x \"+x);\n\t}", "int method20()\n {\n return 579190;\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tbyte b=3;\n\t\tshort s=34;\n\t\tint i=125;\n\t\t\n\t}", "public int n(){\n return n;\n }", "public static void massage() {\n int zip = 10_0_17;\n }", "long mo133613a();", "public int mo4307b(int i) {\n return 1;\n }", "int mo27483b();", "public abstract int mo4307b(int i);", "public int getUnknown6()\r\n\t{\r\n\t\treturn unknown6;\r\n\t}", "public Builder setPostNum(int value) {\n \n postNum_ = value;\n onChanged();\n return this;\n }", "public abstract int mo12578RR(int i);", "public abstract Integer mo36210m();", "public static void main(String[] args) {\n\n byte number = 6;\n byte number1 = 127;\n // byte number2 = 129; for byte the range is -128 to 127. that's why it will not compile\n\n short number3 = 100;\n short number4 =31789;\n\n int number5 = 32_000;// you can use underscore (_) in between digits, it will not effect the value\n\n int number6 = 1_000_000;// you can use underscore (_) in between digits it will not effect the value\n\n System.out.println(number6);\n\n long number7 = 341345;\n long number8 = 74_813_492_034_854L;// you should use 'l/L' at the end of long values\n System.out.println(number8);\n\n float number9 = 2.3f; // // you should use 'f/F' at the end of float values\n\n float number10 = 56; //56 --> 56.0\n\n System.out.println(\"Value of number10 --> \"+number10);\n\n // int a = 5.6; you can not store decimal value in int data type\n float number11 =56.0f;\n\n double number12 = 2.1;\n\n double number13 = 89; // 89 --> 89.0 double data type can store int values\n System.out.println(number13);\n\n // most common primitive data type usages are int, double, long, boolean\n\n }", "public abstract int mo12581RU(int i);", "long mo25071a(long j);", "int mo54450o(int i);", "public abstract int mo12575RO(int i);", "long getUnknown12();", "private native void Df1_Write_Integer(String plcAddress,short value) throws Df1LibraryNativeException;", "public static void main(String[] args) {\n int num = 4;\r\n byte b =(byte) num;\r\n System.out.println(b);\r\n\t}", "void mo54436d(int i);", "public static int INT(byte[] sz, int type) {\n int num = 0, i = 0, s = 1 , itr = 0;\n if(type == 1) {\n s = -1;\n i = sz.length;\n }//set loop from end for little indian \n while(itr < 4 && itr < sz.length) {\n i = i + s * 1;\n //System.out.println(\"INT \"+itr+\" : IN \" + HEX(num));\n // System.out.println(\"BYTE : IN \" + HEX(sz[i]));\n num = num << 8;\n num = num + (sz[i] & 0xff);\n //System.out.println(\"INT : IN \" + HEX(num));\n itr++;\n }return num;\n }", "public int mo36g() {\n return 4;\n }", "int getEInt();", "long mo54439f(int i);", "public abstract long mo24412e();", "public static int getRequestNum(){\n return requestNum;\n }", "int intValue();", "void mo54437e(int i);", "public void mo5332a(int i) {\n }", "public static void main(String[] args){\n byte b1=34;\n // -128, 127\n System.out.println(b1);\n\n\n // short example\n short s1=28;\n // stores whole numbers -32,768 to 32,767\n short s2=1000;\n short s3=35;\n\n //range of int 4 bytes stores -2,147,483,648 to 2,147,483,647\n int number=23456677;\n System.out.println(44); //as default it consider as \"int\"\n long l1= 200;\n long l2=9999999999L;/* when you move out of int range computer needs to know what is the number\n that is why you need to tell it is long by adding L at the end */\n System.out.println(999999999999L);\n\n //stores decimal numbers\n double d1= 5.5;\n System.out.println(d1);\n // as a default java picks double for decimal number\n System.out.println(3.5);\n float f1= 4.5f;\n System.out.println(f1);\n System.out.println(f1+d1);\n\n\n\n\n\n\n }", "public Short getnNumreq() {\n return nNumreq;\n }", "public void mo32111rr(int i) {\n }", "public short mo34e() {\n return 41;\n }", "public java.lang.Integer getVar295() {\n return var295;\n }", "public static void main(String[] args) {\n short i=10;\n short j=10;\n short k=10+10;\n byte apples = 5;\n short oranges = 10;\n int bananas = apples + oranges;\n\n }", "public int mo3361f() {\n return 1;\n }", "public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }", "static private int makeInt(int b3, int b2, int b1, int b0) {\n return (((b3 ) << 24) |\n ((b2 & 0xff) << 16) |\n ((b1 & 0xff) << 8) |\n ((b0 & 0xff) ));\n }", "private int getNumero() {\n\t\treturn numero;\n\t}", "void mo54406a(int i);", "public static void main(String[] args) {\n byte number = (byte)(Math.random()*52);\n\n\n }", "public static void main(String[] args){\r\n System.out.println(reverseInteger(12345));\r\n }", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "public int returnPacketNumber(byte[] bytes){\n int x = Byte.toUnsignedInt(bytes[2]);\n int y = Byte.toUnsignedInt(bytes[3]);\n\n int packetNumber = (256*x) + y;\n return packetNumber;\n }", "void mo6888a(int i);", "Integer getNLNDccp();", "public long getUInt() { return bb.getInt() & 0xffff_ffffL; }", "public static void main(String[] args) {\n\n\t\tint number=123;\n\t}", "public abstract int mo12572RL(int i);", "int getI17();", "void mo38565a(int i);", "public int method_2436() {\r\n return 16;\r\n }", "void mo1753b(int i);", "public int getN() {\n return n;\n }", "public int mo36g() {\n return 2;\n }", "public int mo36g() {\n return 8;\n }", "int mo44965b();", "public abstract int mo9736c(int i);", "public byte getSNum() {\r\n return _sNum;\r\n }", "public java.lang.Integer getVar295() {\n return var295;\n }", "public static void main(String[] args) {\n\t\t\n\t\tint myNumber=356;\n\t\tint stepOne=myNumber*myNumber;\n\t\tint step2=stepOne+myNumber;\n\t\tint step3=step2/myNumber;\n\t\tint step4=step3+17;\n\t\tint step5=step4-myNumber;\n\t\tint step6=step5/6;\n\t\t\n\t\tSystem.out.println(\"The magic number is \"+step6);\n\n\t}", "public int getNumberValue() {\r\n return number;\r\n }", "Integer getSObjNum();", "public abstract int mo12579RS(int i);", "int getPinNumber();" ]
[ "0.70499706", "0.6268922", "0.6069124", "0.5955741", "0.58181226", "0.5758866", "0.56437016", "0.56395686", "0.5617176", "0.5557072", "0.5541478", "0.55296683", "0.5494851", "0.54886717", "0.5475995", "0.5430935", "0.54142344", "0.5403537", "0.53991836", "0.53920144", "0.5389325", "0.5387756", "0.5381173", "0.5365041", "0.535827", "0.53566253", "0.5352105", "0.5345841", "0.5344143", "0.53371406", "0.5335995", "0.53294796", "0.5305054", "0.52950525", "0.52927077", "0.52887565", "0.5287152", "0.52821416", "0.52808464", "0.5276179", "0.5276034", "0.5274419", "0.52735764", "0.526386", "0.525654", "0.5254947", "0.5254743", "0.52533853", "0.524234", "0.5239968", "0.52389914", "0.5237833", "0.5233589", "0.52328026", "0.523209", "0.5228028", "0.5227868", "0.5222095", "0.5214328", "0.520283", "0.5198216", "0.5197142", "0.5197099", "0.5193037", "0.51926315", "0.51916444", "0.51870495", "0.51868916", "0.5178808", "0.5177927", "0.5177238", "0.51754653", "0.5173667", "0.51719797", "0.5162813", "0.5161035", "0.51592654", "0.5157351", "0.51549953", "0.51546586", "0.5152558", "0.514862", "0.5147095", "0.5146626", "0.51448685", "0.5140705", "0.5138541", "0.5133568", "0.5128315", "0.5126824", "0.5125345", "0.5121938", "0.51207685", "0.511792", "0.51173407", "0.511689", "0.51168805", "0.51155204", "0.51141346", "0.5113634", "0.5094269" ]
0.0
-1
string id = 6;
java.lang.String getId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIdNumber();", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public ID(String id) {\n this.type = id.charAt(0);\n this.UID = id;\n }", "java.lang.String getStringId();", "java.lang.String getStringId();", "String mo10312id();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getID();", "String getID();", "String getID();", "String getID();", "id(int id) {}", "java.lang.String getID();", "int getIdentifier();", "void id(int id) {}", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "public void setID(final String id)\n {\n this.id = id.substring(6, id.length());\n }", "int getIdNum();" ]
[ "0.7108217", "0.7005788", "0.69965523", "0.68383914", "0.68383914", "0.67779493", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.6715238", "0.6715238", "0.6715238", "0.6715238", "0.6656986", "0.66414076", "0.6477512", "0.64172345", "0.63731873", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.6353307", "0.6325516" ]
0.63091016
100
string id = 6;
com.google.protobuf.ByteString getIdBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIdNumber();", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public ID(String id) {\n this.type = id.charAt(0);\n this.UID = id;\n }", "java.lang.String getStringId();", "java.lang.String getStringId();", "String mo10312id();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getID();", "String getID();", "String getID();", "String getID();", "id(int id) {}", "java.lang.String getID();", "int getIdentifier();", "void id(int id) {}", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "public void setID(final String id)\n {\n this.id = id.substring(6, id.length());\n }", "int getIdNum();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();" ]
[ "0.7108217", "0.7005788", "0.69965523", "0.68383914", "0.68383914", "0.67779493", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.6715238", "0.6715238", "0.6715238", "0.6715238", "0.6656986", "0.66414076", "0.6477512", "0.64172345", "0.63731873", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.6353307", "0.6325516", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016" ]
0.0
-1
string userID = 5;
java.lang.String getUserID();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "public void setUserID(java.lang.String value) {\n this.userID = value;\n }", "public String getUserID();", "public int getUserID()\n {\n return userID;\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "String getUserId();", "String getUserId();", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserId(){return userID;}", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUser1X_ID();", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserID() {\n return userID;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserid() {\n return userid;\n }", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public java.lang.String getUserID() {\n return userID;\n }", "public String getUserID() {\n return userID;\n }", "public void setUserID(Integer userID) {\n this.userID = userID;\n }", "public void setUserID(int value) {\n this.userID = value;\n }", "public java.lang.String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "Integer getUserId();", "public String getUserName(int userId);", "public void setUser1_ID (int User1_ID);", "public void setUser1_ID (int User1_ID);", "public long getUserID() {\n //userID++;\n return userID++;\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public void setUserID(long userID) {\n UserID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "String getUserName(String userId);", "public void setUser1X_ID (int User1X_ID);", "public void setUserID(java.lang.String userID) {\r\n this.userID = userID;\r\n }", "public java.lang.String getUserID() {\n return userID;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public String getUserid() {\n\t\treturn userid;\n\t}", "public int getUser1Y_ID();", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public int getUserID()\n {\n return this.userID;\n }", "java.lang.String getUserIdOne();", "private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }", "public void setUserID(String userID) {\r\n this.userID = doTrim(userID);\r\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }" ]
[ "0.71803474", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.68178654", "0.6784753", "0.6702823", "0.66796297", "0.6592467", "0.6592467", "0.6575006", "0.6575006", "0.6532711", "0.6526791", "0.6526791", "0.6526791", "0.6492912", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64769274", "0.64717245", "0.64717245", "0.6458023", "0.64387834", "0.64344424", "0.64344424", "0.64344424", "0.64023006", "0.6392899", "0.6390785", "0.63899434", "0.63843817", "0.6357214", "0.63449997", "0.63407284", "0.63356125", "0.63107616", "0.63107616", "0.63107586", "0.63100773", "0.6308667", "0.6294485", "0.6281032", "0.6281032", "0.6279688", "0.62775755", "0.6268059", "0.6267481", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.62544006", "0.6253362", "0.62448746", "0.62448746", "0.62262034", "0.6225009", "0.6225009", "0.6216075", "0.61913157", "0.6187629", "0.61717886", "0.6157222", "0.6157222", "0.6156464" ]
0.71280354
2
string userID = 5;
com.google.protobuf.ByteString getUserIDBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "public void setUserID(java.lang.String value) {\n this.userID = value;\n }", "public String getUserID();", "public int getUserID()\n {\n return userID;\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "String getUserId();", "String getUserId();", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserId(){return userID;}", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUser1X_ID();", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserID() {\n return userID;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserid() {\n return userid;\n }", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public java.lang.String getUserID() {\n return userID;\n }", "public String getUserID() {\n return userID;\n }", "public void setUserID(Integer userID) {\n this.userID = userID;\n }", "public void setUserID(int value) {\n this.userID = value;\n }", "public java.lang.String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "Integer getUserId();", "public String getUserName(int userId);", "public void setUser1_ID (int User1_ID);", "public void setUser1_ID (int User1_ID);", "public long getUserID() {\n //userID++;\n return userID++;\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public void setUserID(long userID) {\n UserID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "String getUserName(String userId);", "public void setUser1X_ID (int User1X_ID);", "public void setUserID(java.lang.String userID) {\r\n this.userID = userID;\r\n }", "public java.lang.String getUserID() {\n return userID;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public String getUserid() {\n\t\treturn userid;\n\t}", "public int getUser1Y_ID();", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public int getUserID()\n {\n return this.userID;\n }", "java.lang.String getUserIdOne();", "private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }", "public void setUserID(String userID) {\r\n this.userID = doTrim(userID);\r\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }" ]
[ "0.71803474", "0.71280354", "0.71280354", "0.71280354", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.68178654", "0.6784753", "0.6702823", "0.66796297", "0.6592467", "0.6592467", "0.6575006", "0.6575006", "0.6532711", "0.6526791", "0.6526791", "0.6526791", "0.6492912", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64769274", "0.64717245", "0.64717245", "0.6458023", "0.64387834", "0.64344424", "0.64344424", "0.64344424", "0.64023006", "0.6392899", "0.6390785", "0.63899434", "0.63843817", "0.6357214", "0.63449997", "0.63407284", "0.63356125", "0.63107616", "0.63107616", "0.63107586", "0.63100773", "0.6308667", "0.6294485", "0.6281032", "0.6281032", "0.6279688", "0.62775755", "0.6268059", "0.6267481", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.62544006", "0.6253362", "0.62448746", "0.62448746", "0.62262034", "0.6225009", "0.6225009", "0.6216075", "0.61913157", "0.6187629", "0.61717886", "0.6157222", "0.6157222", "0.6156464" ]
0.0
-1
.HowMe.Region region = 1;
int getRegionValue();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Region region();", "Region region();", "Region region();", "Region region();", "IRegion getRegion();", "public void setRegion(String region);", "kr.pik.message.Profile.HowMe.Region getRegion();", "void tempInRegionUI();", "@NotNull\n @Generated\n @Selector(\"region\")\n public native UIRegion region();", "public Region getRegion() {\n return region;\n }", "public TypeOfRegion getRegion();", "@AutoEscape\n public String getRegion();", "WithCreate withRegion(Region location);", "WithCreate withRegion(Region location);", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "@Test\n public void regionTest() {\n // TODO: test region\n }", "public void setRegion(Region region) {\n this.region = region;\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "void addRegion(Region region);", "WithCreate withRegion(String location);", "WithCreate withRegion(String location);", "public void setRegion(String region) {\n this.region = region;\n }", "public EnumRegion getRegion()\n {\n return region;\n }", "String regionName();", "String regionName();", "String regionName();", "String regionName();", "public int getItuRegion() {\n return localItuRegion;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public Region() { }", "SemanticRegion<T> parent();", "public String getRegion() {\n return this.region;\n }", "public void setRegion(EnumRegion region)\n {\n this.region = region;\n }", "public RegionSample() {\n\t\tsuper();\n\t}", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(CoordinateRadius region);", "public String getRegion() {\n return region;\n }", "public Region() {\n }", "public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}", "public Builder setRegion(kr.pik.message.Profile.HowMe.Region value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n region_ = value.getNumber();\n onChanged();\n return this;\n }", "public CoordinateRadius getRegion();", "public Builder setRegion(String region) {\n/* 1601 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setRegion(final TypeOfRegion region);", "public void setRegion(String region) {\n this.region = region;\n }", "AREA createAREA();", "@VTID(15)\n excel.Range getLocation();", "@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);", "public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }", "public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}", "public abstract CDasherView.DRect VisibleRegion();", "SemanticRegion<T> outermost();", "public ShowRegionElements getShowRegionAccess() {\n\t\treturn pShowRegion;\n\t}", "public final SphRegion get_cur_region () {\n\t\tif (!( modstate >= MODSTATE_CATALOG )) {\n\t\t\tthrow new IllegalStateException (\"Access to RJGUIModel.cur_region while in state \" + cur_modstate_string());\n\t\t}\n\t\treturn fetch_fcparams.aftershock_search_region;\n\t}", "public Region getCurrentRegion() {\n\n return currentRegion;\n }", "public WorldRegions getWorldRegions()\n {\n return regions;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public int getRegionValue() {\n return region_;\n }", "public Region() {\n initComponents();\n bindingTabel();\n }", "public String getValidRegionDesc();", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "public Builder setRegionValue(int value) {\n region_ = value;\n onChanged();\n return this;\n }", "public int getRegionid() {\n\treturn regionid;\n}", "@Test\n public void testSetAndGetRegion() {\n System.out.println(\"getRegion\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getRegion());\n String expResult = \"region\";\n instance.setRegion(expResult);\n String result = instance.getRegion();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getImageUrl());\n assertNull(instance.getOrder());\n assertNull(instance.getPageUrl());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }", "IRegion getLineInformation(int line) throws BadLocationException;", "@Nullable public abstract URI region();", "public void testGetSetRegion() {\n exp = new Experiment(\"10\");\n GeoLocation location = new GeoLocation(50.0, 40.0);\n exp.setRegion(location);\n assertEquals(\"get/setRegion does not work\", 50.0, exp.getRegion().getLat());\n assertEquals(\"get/setRegion does not work\", 40.0, exp.getRegion().getLon());\n }", "public java.lang.String getRegionname() {\n\treturn regionname;\n}", "public void startRegionGrowMode() {\n regionGrowMode = true;\n }", "public String getRegionno() {\n return regionno;\n }", "public String getRegionName() {\r\n return regionName;\r\n }", "@Override\r\n\tpublic void getROI() {\n\t\t\r\n\t}", "public String getRegionNo() {\n return regionNo;\n }", "void drawRegion (double b, double e) {\n begT = b; endT = e;\n drawStuff (img.getGraphics ());\n }", "public void toggleRegion(){\n\t\tif(getRegion() == regionNormal)\n\t\t\tsetRegion(regionDown);\n\t\t\n\t\telse if(getRegion() == regionDown)\n\t\t\tsetRegion(regionNormal);\t\t\n\t}", "@Method(selector = \"setRegion:animated:\")\n public native void setRegion(@ByVal MKCoordinateRegion region, boolean animated);", "public void setLiveRegion(int mode) {\n/* 1228 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "interface Blank\n extends GroupableResource.DefinitionWithRegion<WithGroup> {\n }", "public String getRegionName() {\n return regionName;\n }", "public int getRegionValue() {\n return region_;\n }", "public java.lang.String getREGION()\n {\n \n return __REGION;\n }", "public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }", "public void setC_Region_ID (int C_Region_ID);", "WithResourceGroup withRegion(Region location);", "WithResourceGroup withRegion(Region location);", "interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }" ]
[ "0.76034105", "0.76034105", "0.76034105", "0.76034105", "0.6967613", "0.67925876", "0.6749579", "0.6662819", "0.6619765", "0.6572314", "0.656354", "0.64469886", "0.6429926", "0.6429926", "0.63422984", "0.63422984", "0.6339061", "0.632487", "0.6319832", "0.6319832", "0.6319832", "0.6308871", "0.63071036", "0.63071036", "0.62908727", "0.62814134", "0.62326896", "0.62326896", "0.62326896", "0.62326896", "0.62166643", "0.621348", "0.621348", "0.621348", "0.621348", "0.621348", "0.62058944", "0.61815614", "0.61815614", "0.61815614", "0.6164301", "0.6153164", "0.6099864", "0.60742396", "0.6062734", "0.6062272", "0.6062272", "0.6062272", "0.6038938", "0.6038785", "0.6025955", "0.5996477", "0.59590256", "0.5949265", "0.5939457", "0.5905987", "0.5905461", "0.5882707", "0.58503395", "0.57993263", "0.5776832", "0.57321894", "0.57236683", "0.56739694", "0.56579804", "0.5657471", "0.5655049", "0.5646993", "0.5630524", "0.560507", "0.560416", "0.5545843", "0.5542075", "0.5537449", "0.5537449", "0.55354875", "0.5533376", "0.5506603", "0.54949945", "0.5486963", "0.5486753", "0.5481991", "0.54798955", "0.54724246", "0.5468858", "0.5462855", "0.54592156", "0.54574424", "0.545733", "0.54551816", "0.5454061", "0.54454976", "0.5443136", "0.5436953", "0.54320085", "0.5429946", "0.54244137", "0.54105836", "0.54105836", "0.53947294" ]
0.62361544
26
.HowMe.Region region = 1;
kr.pik.message.Profile.HowMe.Region getRegion();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Region region();", "Region region();", "Region region();", "Region region();", "IRegion getRegion();", "public void setRegion(String region);", "void tempInRegionUI();", "@NotNull\n @Generated\n @Selector(\"region\")\n public native UIRegion region();", "public Region getRegion() {\n return region;\n }", "public TypeOfRegion getRegion();", "@AutoEscape\n public String getRegion();", "WithCreate withRegion(Region location);", "WithCreate withRegion(Region location);", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "@Test\n public void regionTest() {\n // TODO: test region\n }", "public void setRegion(Region region) {\n this.region = region;\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "void addRegion(Region region);", "WithCreate withRegion(String location);", "WithCreate withRegion(String location);", "public void setRegion(String region) {\n this.region = region;\n }", "public EnumRegion getRegion()\n {\n return region;\n }", "int getRegionValue();", "String regionName();", "String regionName();", "String regionName();", "String regionName();", "public int getItuRegion() {\n return localItuRegion;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public Region() { }", "SemanticRegion<T> parent();", "public String getRegion() {\n return this.region;\n }", "public void setRegion(EnumRegion region)\n {\n this.region = region;\n }", "public RegionSample() {\n\t\tsuper();\n\t}", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(CoordinateRadius region);", "public String getRegion() {\n return region;\n }", "public Region() {\n }", "public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}", "public Builder setRegion(kr.pik.message.Profile.HowMe.Region value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n region_ = value.getNumber();\n onChanged();\n return this;\n }", "public CoordinateRadius getRegion();", "public Builder setRegion(String region) {\n/* 1601 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setRegion(final TypeOfRegion region);", "public void setRegion(String region) {\n this.region = region;\n }", "AREA createAREA();", "@VTID(15)\n excel.Range getLocation();", "@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);", "public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }", "public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}", "public abstract CDasherView.DRect VisibleRegion();", "SemanticRegion<T> outermost();", "public ShowRegionElements getShowRegionAccess() {\n\t\treturn pShowRegion;\n\t}", "public final SphRegion get_cur_region () {\n\t\tif (!( modstate >= MODSTATE_CATALOG )) {\n\t\t\tthrow new IllegalStateException (\"Access to RJGUIModel.cur_region while in state \" + cur_modstate_string());\n\t\t}\n\t\treturn fetch_fcparams.aftershock_search_region;\n\t}", "public Region getCurrentRegion() {\n\n return currentRegion;\n }", "public WorldRegions getWorldRegions()\n {\n return regions;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public int getRegionValue() {\n return region_;\n }", "public Region() {\n initComponents();\n bindingTabel();\n }", "public String getValidRegionDesc();", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "public Builder setRegionValue(int value) {\n region_ = value;\n onChanged();\n return this;\n }", "public int getRegionid() {\n\treturn regionid;\n}", "@Test\n public void testSetAndGetRegion() {\n System.out.println(\"getRegion\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getRegion());\n String expResult = \"region\";\n instance.setRegion(expResult);\n String result = instance.getRegion();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getImageUrl());\n assertNull(instance.getOrder());\n assertNull(instance.getPageUrl());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }", "IRegion getLineInformation(int line) throws BadLocationException;", "@Nullable public abstract URI region();", "public void testGetSetRegion() {\n exp = new Experiment(\"10\");\n GeoLocation location = new GeoLocation(50.0, 40.0);\n exp.setRegion(location);\n assertEquals(\"get/setRegion does not work\", 50.0, exp.getRegion().getLat());\n assertEquals(\"get/setRegion does not work\", 40.0, exp.getRegion().getLon());\n }", "public java.lang.String getRegionname() {\n\treturn regionname;\n}", "public void startRegionGrowMode() {\n regionGrowMode = true;\n }", "public String getRegionno() {\n return regionno;\n }", "public String getRegionName() {\r\n return regionName;\r\n }", "@Override\r\n\tpublic void getROI() {\n\t\t\r\n\t}", "public String getRegionNo() {\n return regionNo;\n }", "void drawRegion (double b, double e) {\n begT = b; endT = e;\n drawStuff (img.getGraphics ());\n }", "public void toggleRegion(){\n\t\tif(getRegion() == regionNormal)\n\t\t\tsetRegion(regionDown);\n\t\t\n\t\telse if(getRegion() == regionDown)\n\t\t\tsetRegion(regionNormal);\t\t\n\t}", "@Method(selector = \"setRegion:animated:\")\n public native void setRegion(@ByVal MKCoordinateRegion region, boolean animated);", "public void setLiveRegion(int mode) {\n/* 1228 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "interface Blank\n extends GroupableResource.DefinitionWithRegion<WithGroup> {\n }", "public String getRegionName() {\n return regionName;\n }", "public int getRegionValue() {\n return region_;\n }", "public java.lang.String getREGION()\n {\n \n return __REGION;\n }", "public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }", "public void setC_Region_ID (int C_Region_ID);", "WithResourceGroup withRegion(Region location);", "WithResourceGroup withRegion(Region location);", "interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }" ]
[ "0.76034105", "0.76034105", "0.76034105", "0.76034105", "0.6967613", "0.67925876", "0.6662819", "0.6619765", "0.6572314", "0.656354", "0.64469886", "0.6429926", "0.6429926", "0.63422984", "0.63422984", "0.6339061", "0.632487", "0.6319832", "0.6319832", "0.6319832", "0.6308871", "0.63071036", "0.63071036", "0.62908727", "0.62814134", "0.62361544", "0.62326896", "0.62326896", "0.62326896", "0.62326896", "0.62166643", "0.621348", "0.621348", "0.621348", "0.621348", "0.621348", "0.62058944", "0.61815614", "0.61815614", "0.61815614", "0.6164301", "0.6153164", "0.6099864", "0.60742396", "0.6062734", "0.6062272", "0.6062272", "0.6062272", "0.6038938", "0.6038785", "0.6025955", "0.5996477", "0.59590256", "0.5949265", "0.5939457", "0.5905987", "0.5905461", "0.5882707", "0.58503395", "0.57993263", "0.5776832", "0.57321894", "0.57236683", "0.56739694", "0.56579804", "0.5657471", "0.5655049", "0.5646993", "0.5630524", "0.560507", "0.560416", "0.5545843", "0.5542075", "0.5537449", "0.5537449", "0.55354875", "0.5533376", "0.5506603", "0.54949945", "0.5486963", "0.5486753", "0.5481991", "0.54798955", "0.54724246", "0.5468858", "0.5462855", "0.54592156", "0.54574424", "0.545733", "0.54551816", "0.5454061", "0.54454976", "0.5443136", "0.5436953", "0.54320085", "0.5429946", "0.54244137", "0.54105836", "0.54105836", "0.53947294" ]
0.6749579
6
bool isOccupation = 2;
boolean getIsOccupation();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isOccuped(){\n return this.occuped;\n }", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "public boolean isOccupied(){\n return this.occupied;\n }", "public boolean getIsOccupation() {\n return isOccupation_;\n }", "public boolean getIsOccupation() {\n return isOccupation_;\n }", "public void setOccupied(boolean occupied){\n this.occupied = occupied;\n }", "public void setOccupancy(boolean occupancy) {\n\t\tthis.occupied = occupancy;\n\t}", "protected boolean isOccupied(){\n\t\treturn occupied;\n\t}", "public void setOccupied(boolean b) {\n\t\tisOccupied = b; \n\t}", "public void setOccupied(boolean isOccupied) {\n\t\tthis.isOccupied = isOccupied;\n\t}", "void updateOccupancy() {\n\t\toccupied = !occupied;\n\t}", "public Builder setIsOccupation(boolean value) {\n \n isOccupation_ = value;\n onChanged();\n return this;\n }", "public boolean getOccupied() {\n\t\treturn isOccupied; \n\t}", "int getOccupation();", "int getOccupation();", "int getOccupation();", "int getOccupation();", "int getOccupation();", "public int isOccupied() {\r\n\t\treturn occupied;\r\n\t}", "public boolean isOccupied() {\n\t\treturn isOccupied;\n\t}", "public boolean isOccupied() {\n\t\treturn isOccupied;\n\t}", "public boolean IsOccupied() {\n\n\t\treturn occupied;\n\t}", "public boolean isOccupied() {\r\n\t\treturn isOccupied;\r\n\t}", "public boolean isOccupied() {\r\n\t\treturn isOccupied;\r\n\t}", "public boolean isKing(){return this.king;}", "public boolean isOccupied(){\n \t\treturn occupiedSeconds > 0;\n \t}", "public void setOccupied(Boolean occupied) {\n\t\tthis.occupied = occupied;\n\t}", "Boolean getIndemnity();", "boolean isBeating();", "Boolean isBoss();", "boolean isInactive() {\n/* 4818 */ return this.inactive;\n/* */ }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean CanBuyRoad();", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public void setOccupancy(int value) {\n this.occupancy = value;\n }", "public void kinged(){this.king = true;}", "public boolean isBooked(){\n return booked;\n }", "boolean outOfSight();", "public boolean isLegOut()\n{\n if (jumpState == 1)\n return true;\n return false;\n}", "public int getOccupancy() {\n return occupancy;\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isVacant() {\r\n\treturn !isOccupied() || !isAvailable();\r\n }", "public boolean is_shot(){\n \treturn this.shot;\n }", "public boolean isFood(){\n\t\treturn foodFlag;\n\t}", "public boolean isOcuppied() {\n return ocuppied;\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasEyes();", "public boolean isOccupied() {\n return piece != null;\n }", "public void buyFarm(){\n bought = !bought;\n }", "public boolean isWalking(){\n if (jumpState < 2)\n return true;\n else\n return false;\n}", "boolean isFullHouse();", "public int getOccupied() {\n return occupied;\n }", "boolean isOccupiedByAnimal(Vector2d position);", "public boolean isOccupied() {\n\t\treturn piece != null;\n\t}", "public boolean getHIPPAWaiver(){return this.HIPPAWaiver;}", "static void primitiveBoolean() {\n\n double coveragerByInsurance = 0.8;\n double billAmount = 1000.0;\n double amountPaidByInsurance = 0.0;\n double amountPaidByPatient = billAmount;\n if (isInsured) {\n amountPaidByInsurance = billAmount * coveragerByInsurance;\n amountPaidByPatient = billAmount - amountPaidByInsurance;\n }\n System.out.println(\"AmountPaidByInsurance=\" + amountPaidByInsurance);\n System.out.println(\"AmountPaidBypatient=\" + amountPaidByPatient);\n }", "public void setOccupied(int occupied) {\n this.occupied = occupied;\n }", "boolean hasAccY();", "public boolean isJumping(){\n if (jumpState == 2)\n return true;\n return false;\n\n}", "boolean hasStartingHadithNo();", "boolean isSetStraight();", "public boolean getAvailability(){\n return availabile;\n }", "boolean hasReqardTypeFifteen();", "boolean hasHasInjury();", "boolean isTestEligible();", "public boolean isOccupied(int x, int y){\r\n\t\tif(myBoard.carrier.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.battleship.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.cruiser.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.submarine.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.patrolboat.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public boolean isStudent(){\n return student;\n }", "public boolean isStudent(){\n return student;\n }", "public boolean isOccupied() {\n return !(getLease() == null);\r\n }", "boolean getB21();", "public void setAlive(boolean x){\n \talive = x;\r\n }", "public boolean isGateFull(){return GateFull;}", "boolean getB23();", "public boolean isOccupied() {\r\n\treturn character != null;\r\n }", "public boolean estaVacia(){\n if(darTamanio==0){\n return true;\n } \n else{\n return false;\n }\n}", "boolean hasResidentYn();", "boolean hasParking();", "int isActive();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isParking();", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public void battleOver()\r\n {\r\n isBattleOver = true;\r\n }", "public int getOccupation() {\n return occupation_;\n }", "public boolean isRaining()\n {\n return raining;\n }", "boolean land();", "boolean getB20();", "boolean isCounting();" ]
[ "0.74756175", "0.73210126", "0.73210126", "0.73210126", "0.73210126", "0.73210126", "0.70886594", "0.7031819", "0.6893283", "0.67243195", "0.6703081", "0.66117656", "0.65973467", "0.6572111", "0.65036863", "0.6483012", "0.6481155", "0.64171124", "0.64171124", "0.64171124", "0.64171124", "0.64171124", "0.6325097", "0.63089997", "0.63089997", "0.6307255", "0.63014376", "0.63014376", "0.62713474", "0.62512976", "0.6234035", "0.602852", "0.5997325", "0.597249", "0.595961", "0.593993", "0.59392494", "0.59392494", "0.5884922", "0.58794796", "0.58790505", "0.58790505", "0.58640075", "0.5848018", "0.582584", "0.58191437", "0.5817053", "0.58118", "0.578463", "0.57842135", "0.57834375", "0.5768585", "0.57677853", "0.5748983", "0.57471377", "0.574712", "0.57461625", "0.5741031", "0.57279074", "0.56990165", "0.5695661", "0.5680463", "0.5670619", "0.56631047", "0.56535816", "0.564665", "0.5641378", "0.5634803", "0.56243616", "0.5622802", "0.5620406", "0.5604795", "0.55963254", "0.55959594", "0.55887645", "0.55839837", "0.55799395", "0.55799395", "0.55702436", "0.5566748", "0.5566346", "0.5555548", "0.5550792", "0.5545495", "0.55413395", "0.55118304", "0.55091876", "0.55021787", "0.5500107", "0.5498083", "0.54922116", "0.54922116", "0.5491788", "0.5491788", "0.5491303", "0.5491272", "0.54888797", "0.5485228", "0.547783", "0.5475243" ]
0.7861186
0
string playTime = 3;
java.lang.String getPlayTime();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPlayStartTime() { return _playStartTime; }", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "public void setPlaySeconds(java.lang.Integer value) {\n this.play_seconds = value;\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "void makePlay(int player) {\n }", "public int getPlay_number() {\n\n return play_number;\n }", "@Override\n\tpublic long getPlaytime() {\n\t\treturn this.playTime;\n\t}", "public double playTimeInSeconds(){\n\t\treturn durationInSeconds;\n\t}", "private String sleepString (int time){\n\t\tString sleepTime;\n\t\tif (time < 10){\n\t\t\tsleepTime = \"0\"+time;\n\t\t} \n\t\telse {\n\t\t\tsleepTime = \"\"+time; \n\t\t}\n\t\treturn sleepTime;\n\t}", "public Builder setPlayTime(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n playTime_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void play(String position, int number) {\n\t\t\n\t}", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "int getTimesPlayed (String song_id);", "@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "public void setPlay_number(int play_number) {\n\n this.play_number = play_number;\n }", "public void setPlayer(int play)\n {\n this.player=play;\n }", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n }\n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "public void time(int value) \n{\n runtimes = value;\n}", "public void play() \n{\n s = !s; \n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true)\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n}", "public void play() {\n //Set up the timer if needed\n if (!dataGame.isTrainingMode()) {\n timer = new Timer();\n secondsPassed = 65;\n TimerTask task = new TimerTask() {\n public void run() {\n secondsPassed--;\n //Before the game starts, countdown:\t\t\t\t\t\n if (secondsPassed > 63) {\n dataGame.notifyObserverTime(\"Be ready !\");\n } else if (secondsPassed == 63) {\n dataGame.notifyObserverTime(Integer.toString(3));\n } else if (secondsPassed == 62) {\n dataGame.notifyObserverTime(Integer.toString(2));\n } else if (secondsPassed == 61) {\n dataGame.notifyObserverTime(Integer.toString(1));\n } else if (secondsPassed == 60) {\n dataGame.notifyObserverTime(\"GO !\");\n pickNewWord();\n } else if (secondsPassed == 0) {\n dataGame.notifyObserverTime(\"STOP\");\n stop(false);\n } else {\n dataGame.notifyObserverTime(Integer.toString(secondsPassed));\n }\n }\n };\n timer.scheduleAtFixedRate(task, 100, 1000); //After 100ms, the timer starts, it decreases every seconds\n } else {\n pickNewWord();\n }\n }", "String getPlayer();", "public static String checkPlayFirst() {\r\n\t int randomNumber = (int) Math.floor(Math.random() * 10) % 2;\r\n\t String player = \"\";\r\n\t if ( randomNumber == 0)\r\n\t player = \"Computer\";\r\n\t else\r\n\t player = \"User\";\r\n\r\n\t return player;\r\n\t }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "public String timerPause(){\n return mTimer;\n }", "private void setTime()\n\t{\n\t\t//local variable \n\t\tString rad = JOptionPane.showInputDialog(\"Enter the time spent bicycling: \"); \n\t\t\n\t\t//convert to int\n\t\ttry {\n\t\t\tbikeTime = Integer.parseInt(rad);\n\t\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t}", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public static String time(int time) {\n return time((long)time);\n }", "private void setTxtTimeTotal()\n {\n SimpleDateFormat dinhDangGio= new SimpleDateFormat(\"mm:ss\");\n txtTimeTotal.setText(dinhDangGio.format(mediaPlayer.getDuration()));\n //\n skSong.setMax(mediaPlayer.getDuration());\n }", "public static play() {\n\t\t\n\t}", "public boolean hasPlaySeconds() {\n return fieldSetFlags()[3];\n }", "void setTime(final int time);", "public String getInTime3() {\n\treturn inTime3;\n }", "public void setTime(String time) {\n }", "public void setCurrentPlayTime(long playTime) { throw new RuntimeException(\"Stub!\"); }", "boolean addEasyTimePlayed(long time);", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "void currentTime(double timeInSeconds) {\n execute(\"player.currentTime = \" + timeInSeconds);\n }", "public com.twc.bigdata.views.avro.viewing_info.Builder setPlaySeconds(java.lang.Integer value) {\n validate(fields()[3], value);\n this.play_seconds = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Tea = \"Drink is set to be made at \" + time + \". \";\n }", "public void play(){\n\t\t\n\t}", "public int getPlayBackTime() {\n\t\treturn mPlayer.getDuration();\n\t}", "@Override\n public void run() {\n\n secs++;\n if (secs == 10) {\n tens++;\n secs = 0;\n }\n if (tens == 6) {\n mins++;\n tens = 0;\n secs = 0;\n }\n time = mins + \":\" + tens + \"\" + secs;\n timePlayed.setText(\"Time: \" + time);\n }", "public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }", "public void time(){\n\t\tif(paused){\n\t\t\tpaused = false;\n\t\t\tmusic.play();\n\t\t\tstart = System.nanoTime();\n\t\t} else {\n\t\t\telasped += System.nanoTime() - start;\n\t\t\tstart = System.nanoTime();\n\t\t}\n\t\ttime = (double) elasped/ (double) 1000000000l;\n\t\t//System.out.println(time);\n\t}", "public int sessionTime(String player){\n \t\tif( BeardStat.loginTimes.containsKey(player)){\n \t\t\treturn Integer.parseInt(\"\"+BeardStat.loginTimes.get(player)/1000L);\n \t\t\t\n \t\t}\n \t\treturn 0;\n \t}", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getLastPlayed() {\n\t\treturn levelRunning;\n\t}", "public int getPlayLength()\n\t{\n\t\treturn playbackLength;\n\t}", "public void setBeginTime(String time){beginTime = time;}", "@Test\n public void testSetLabelTextTimeCurrent() {\n System.out.println(\"setLabelTextTimeCurrent\");\n \n String text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:05\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:00\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"GOOOAL!!!\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n }", "public void addPlayTime(final long playTime) {\n\t\tthis.playTime += playTime;\n\t}", "public String getPlayMode()\n {\n return playMode;\n }", "void update(String time);", "public String getTime(){\r\n String time = \"\";\r\n return time;\r\n }", "String sound();", "@Override\r\n\tpublic void onPrepared(MediaPlayer arg0) {\n\t\tint dur = vid.getDuration();\r\n\t\tduration.setText(dur);\r\n\t}", "public String playFromBeginning() {\n currentIndex = 1;\n return \"Playing song 1:\" + songs.get(currentIndex-1);\n }", "public int getPlayedTimes() {\n return playedTimes;\n }", "public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}", "String randomPlayer1GetName(){\n return randomPlayer1;\n }", "@Override\r\n\tprotected String play() \r\n\t{\r\n\t\treturn \"The \" + this.getClass().getSimpleName() + \" Class.\" + \"\\n\" + this.getName() + \" is up!\";\r\n//\t\tSystem.out.println( \"The \" + this.getClass().getSimpleName() + \" Class.\");\r\n//\t\tSystem.out.println( this.getName() + \" is up!\" );\t\r\n\t}", "public void makePlay(String play) {\n if (output == null) {\n output = getOutputWriter();\n }\n\n// System.out.println(\"MakePlay called: \"+play);\n String s = play+\"\\n\";\n output.print(s);\n output.flush();\n\n GameState.increaseCount();\n }", "public static void timeConversion(String time)\r\n {\n\r\n if (ticks >= 0)\r\n {\r\n time = day;\r\n } else if (ticks >= 12000)\r\n {\r\n time = sunset;\r\n } else if (ticks >= 12610)\r\n {\r\n time = dusk;\r\n } else if (ticks >= 17843)\r\n {\r\n time = midnight;\r\n } else if (ticks >= 23041)\r\n {\r\n time = dawn;\r\n }\r\n }", "public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}", "public static void main(String[] args) {\n String ttime = getDurationString(200,45);\n System.out.println(ttime);\n ttime = getDurationString(400);\n System.out.println(ttime);\n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Coffee = \"Drink is set to be made at \" + time + \". \";\n }", "protected void playGame(String str) {\n System.out.format(\"Playing %s\\n\", str);\n }", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\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 playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String player1GetName(){\n return player1;\n }", "public void setTime(String time) {\r\n\t\tthis.time = time;\r\n\t}", "int delay(Player player);", "public static void main(String[] args) {\n\tint seconds= 1 ;\n\tint minutes= 1 ;\n\tint hours= 1 ; \n\t}", "public int getSeconds(){\r\n return Seconds;\r\n }", "@Override\n public void valueChanged(String control_val) {\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }", "static Duration promptForTime() {\n String input;\n\n Duration time;\n System.out.println(\"Enter the player's time (hh:mm:ss.SSS)\");\n System.out.println(\"EX: 1:03:44.256\");\n\n //loops until correct imput calls break;\n while (true) {\n System.out.print(\">\");\n\n if (Menus.reader.hasNext()) {\n input = Menus.reader.nextLine().strip();\n\n //Reformat the input to match ISO standard\n int colonCount = countOccurrences(input, ':');\n if (colonCount == 2) {\n input = input.replaceFirst(\":\", \"H\");\n input = input.replace(':', 'M');\n } else if (colonCount == 1) {\n input = input.replace(':', 'M');\n }\n input = \"PT\" + input + \"S\";\n\n //Parse the input to a duration\n try {\n time = Duration.parse(input);\n break;\n } catch (DateTimeParseException dtp) {\n System.out.println(\"Make sure the format is correct\");\n }\n }\n }\n return time;\n }", "@Override\r\n\tpublic void betPlayValue(int play) {\n\t\trps.setPlay(play);\r\n\t}", "public void setTime(String time) {\n this.time = time;\n }", "public void setTime(String time) {\n\t\tthis.time = time;\n\t}", "long getTimerPref();", "public void newTurnPauseCountdown()\n {\n pauseNewTurn = true;\n pauseNewTurnTimer = 169;\n }", "private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}", "public void setTime(double time) {_time = time;}", "java.lang.String getDuration();", "public void setTime(int time) {\n\t\tthis.time = time;\n\t}", "void playYearOfPlentyCard(String resource1, String resource2);", "private void playAI (int actualAI) {\n }", "public int getPlayState(){\r\n\t\tif(player.getStatus() == BasicPlayer.PLAYING){\r\n\t\t\treturn songsToPlay.isEmpty() ? selectedPreset + 10 : selectedPreset;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "void play ();", "public void setMatchTime(String text) {\n runningMatchTime.setText(text);\n if (!Main.isSimpleMode()) {\n PLC_Sender.getInstance().updatePLC_Time(true);\n }\n }", "public String getTime(){\n return time;\n }", "java.lang.String getWaitTime();", "public String getTimeVariable(){ return common.timeDatapath; }", "String player2GetName(){\n return player2;\n }", "public String autoPlay(int sign) {\n boolean validTurn = false;\n int temp1 = 0;\n int temp2 = 0;\n while (!validTurn) { //select a random empty tile\n temp1 = new Random().nextInt(TTT.getSize());\n temp2 = new Random().nextInt(TTT.getSize());\n validTurn = TTT.safeChangeTile(sign, temp1, temp2);\n }\n return temp1 + \" \" + temp2;\n }", "@Override\n public void onTick(long millisUntilFinished) {\n if (play) {\n\n\n\n\n\n czasomierz.setProgress((int)millisUntilFinished/1000);\n\n czas.setText((int)millisUntilFinished/1000 + \" s\");\n\n }\n\n }", "public void setInTime3(String inTime3) {\n\tthis.inTime3 = inTime3;\n }" ]
[ "0.63991773", "0.6280141", "0.62648493", "0.6217199", "0.61669713", "0.61478704", "0.6137488", "0.6110173", "0.60211414", "0.601799", "0.5951262", "0.59501123", "0.5923836", "0.59206986", "0.59025127", "0.5868111", "0.58587193", "0.5848975", "0.5798889", "0.57697815", "0.5757788", "0.56844586", "0.5679455", "0.56656194", "0.5647411", "0.55933434", "0.55642223", "0.556079", "0.5517708", "0.55124307", "0.5510975", "0.54814804", "0.5477473", "0.54722637", "0.5462465", "0.54499537", "0.54488", "0.54440624", "0.54403055", "0.5402229", "0.5402001", "0.5393085", "0.53911954", "0.5379875", "0.53791046", "0.5376606", "0.5372467", "0.5370817", "0.5361159", "0.53553873", "0.5338421", "0.5327749", "0.53252804", "0.53251684", "0.53231704", "0.5321966", "0.53150517", "0.531302", "0.53111136", "0.5307526", "0.52988213", "0.5294606", "0.5291707", "0.528975", "0.52812207", "0.52778894", "0.5276579", "0.52642494", "0.52615285", "0.52589905", "0.5251296", "0.5249196", "0.52484614", "0.5234155", "0.5226469", "0.52253944", "0.52191156", "0.52129835", "0.520945", "0.52086025", "0.51948744", "0.5188648", "0.51845497", "0.51688546", "0.5166006", "0.51645595", "0.51624244", "0.5158498", "0.5153294", "0.5149663", "0.5144436", "0.51439154", "0.513856", "0.5137665", "0.5136622", "0.51269037", "0.5124735", "0.51231307", "0.5121034", "0.5119104" ]
0.7073542
0
string playTime = 3;
com.google.protobuf.ByteString getPlayTimeBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPlayTime();", "public int getPlayStartTime() { return _playStartTime; }", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "public void setPlaySeconds(java.lang.Integer value) {\n this.play_seconds = value;\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "void makePlay(int player) {\n }", "public int getPlay_number() {\n\n return play_number;\n }", "@Override\n\tpublic long getPlaytime() {\n\t\treturn this.playTime;\n\t}", "public double playTimeInSeconds(){\n\t\treturn durationInSeconds;\n\t}", "private String sleepString (int time){\n\t\tString sleepTime;\n\t\tif (time < 10){\n\t\t\tsleepTime = \"0\"+time;\n\t\t} \n\t\telse {\n\t\t\tsleepTime = \"\"+time; \n\t\t}\n\t\treturn sleepTime;\n\t}", "public Builder setPlayTime(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n playTime_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void play(String position, int number) {\n\t\t\n\t}", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "int getTimesPlayed (String song_id);", "@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "public void setPlay_number(int play_number) {\n\n this.play_number = play_number;\n }", "public void setPlayer(int play)\n {\n this.player=play;\n }", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n }\n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "public void time(int value) \n{\n runtimes = value;\n}", "public void play() \n{\n s = !s; \n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true)\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n}", "public void play() {\n //Set up the timer if needed\n if (!dataGame.isTrainingMode()) {\n timer = new Timer();\n secondsPassed = 65;\n TimerTask task = new TimerTask() {\n public void run() {\n secondsPassed--;\n //Before the game starts, countdown:\t\t\t\t\t\n if (secondsPassed > 63) {\n dataGame.notifyObserverTime(\"Be ready !\");\n } else if (secondsPassed == 63) {\n dataGame.notifyObserverTime(Integer.toString(3));\n } else if (secondsPassed == 62) {\n dataGame.notifyObserverTime(Integer.toString(2));\n } else if (secondsPassed == 61) {\n dataGame.notifyObserverTime(Integer.toString(1));\n } else if (secondsPassed == 60) {\n dataGame.notifyObserverTime(\"GO !\");\n pickNewWord();\n } else if (secondsPassed == 0) {\n dataGame.notifyObserverTime(\"STOP\");\n stop(false);\n } else {\n dataGame.notifyObserverTime(Integer.toString(secondsPassed));\n }\n }\n };\n timer.scheduleAtFixedRate(task, 100, 1000); //After 100ms, the timer starts, it decreases every seconds\n } else {\n pickNewWord();\n }\n }", "String getPlayer();", "public static String checkPlayFirst() {\r\n\t int randomNumber = (int) Math.floor(Math.random() * 10) % 2;\r\n\t String player = \"\";\r\n\t if ( randomNumber == 0)\r\n\t player = \"Computer\";\r\n\t else\r\n\t player = \"User\";\r\n\r\n\t return player;\r\n\t }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "public String timerPause(){\n return mTimer;\n }", "private void setTime()\n\t{\n\t\t//local variable \n\t\tString rad = JOptionPane.showInputDialog(\"Enter the time spent bicycling: \"); \n\t\t\n\t\t//convert to int\n\t\ttry {\n\t\t\tbikeTime = Integer.parseInt(rad);\n\t\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t}", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public static String time(int time) {\n return time((long)time);\n }", "private void setTxtTimeTotal()\n {\n SimpleDateFormat dinhDangGio= new SimpleDateFormat(\"mm:ss\");\n txtTimeTotal.setText(dinhDangGio.format(mediaPlayer.getDuration()));\n //\n skSong.setMax(mediaPlayer.getDuration());\n }", "public static play() {\n\t\t\n\t}", "public boolean hasPlaySeconds() {\n return fieldSetFlags()[3];\n }", "void setTime(final int time);", "public String getInTime3() {\n\treturn inTime3;\n }", "public void setTime(String time) {\n }", "public void setCurrentPlayTime(long playTime) { throw new RuntimeException(\"Stub!\"); }", "boolean addEasyTimePlayed(long time);", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "void currentTime(double timeInSeconds) {\n execute(\"player.currentTime = \" + timeInSeconds);\n }", "public com.twc.bigdata.views.avro.viewing_info.Builder setPlaySeconds(java.lang.Integer value) {\n validate(fields()[3], value);\n this.play_seconds = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Tea = \"Drink is set to be made at \" + time + \". \";\n }", "public void play(){\n\t\t\n\t}", "public int getPlayBackTime() {\n\t\treturn mPlayer.getDuration();\n\t}", "@Override\n public void run() {\n\n secs++;\n if (secs == 10) {\n tens++;\n secs = 0;\n }\n if (tens == 6) {\n mins++;\n tens = 0;\n secs = 0;\n }\n time = mins + \":\" + tens + \"\" + secs;\n timePlayed.setText(\"Time: \" + time);\n }", "public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }", "public void time(){\n\t\tif(paused){\n\t\t\tpaused = false;\n\t\t\tmusic.play();\n\t\t\tstart = System.nanoTime();\n\t\t} else {\n\t\t\telasped += System.nanoTime() - start;\n\t\t\tstart = System.nanoTime();\n\t\t}\n\t\ttime = (double) elasped/ (double) 1000000000l;\n\t\t//System.out.println(time);\n\t}", "public int sessionTime(String player){\n \t\tif( BeardStat.loginTimes.containsKey(player)){\n \t\t\treturn Integer.parseInt(\"\"+BeardStat.loginTimes.get(player)/1000L);\n \t\t\t\n \t\t}\n \t\treturn 0;\n \t}", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getLastPlayed() {\n\t\treturn levelRunning;\n\t}", "public int getPlayLength()\n\t{\n\t\treturn playbackLength;\n\t}", "public void setBeginTime(String time){beginTime = time;}", "@Test\n public void testSetLabelTextTimeCurrent() {\n System.out.println(\"setLabelTextTimeCurrent\");\n \n String text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:05\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:00\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"GOOOAL!!!\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n }", "public void addPlayTime(final long playTime) {\n\t\tthis.playTime += playTime;\n\t}", "public String getPlayMode()\n {\n return playMode;\n }", "void update(String time);", "public String getTime(){\r\n String time = \"\";\r\n return time;\r\n }", "String sound();", "@Override\r\n\tpublic void onPrepared(MediaPlayer arg0) {\n\t\tint dur = vid.getDuration();\r\n\t\tduration.setText(dur);\r\n\t}", "public String playFromBeginning() {\n currentIndex = 1;\n return \"Playing song 1:\" + songs.get(currentIndex-1);\n }", "public int getPlayedTimes() {\n return playedTimes;\n }", "public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}", "String randomPlayer1GetName(){\n return randomPlayer1;\n }", "@Override\r\n\tprotected String play() \r\n\t{\r\n\t\treturn \"The \" + this.getClass().getSimpleName() + \" Class.\" + \"\\n\" + this.getName() + \" is up!\";\r\n//\t\tSystem.out.println( \"The \" + this.getClass().getSimpleName() + \" Class.\");\r\n//\t\tSystem.out.println( this.getName() + \" is up!\" );\t\r\n\t}", "public void makePlay(String play) {\n if (output == null) {\n output = getOutputWriter();\n }\n\n// System.out.println(\"MakePlay called: \"+play);\n String s = play+\"\\n\";\n output.print(s);\n output.flush();\n\n GameState.increaseCount();\n }", "public static void timeConversion(String time)\r\n {\n\r\n if (ticks >= 0)\r\n {\r\n time = day;\r\n } else if (ticks >= 12000)\r\n {\r\n time = sunset;\r\n } else if (ticks >= 12610)\r\n {\r\n time = dusk;\r\n } else if (ticks >= 17843)\r\n {\r\n time = midnight;\r\n } else if (ticks >= 23041)\r\n {\r\n time = dawn;\r\n }\r\n }", "public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}", "public static void main(String[] args) {\n String ttime = getDurationString(200,45);\n System.out.println(ttime);\n ttime = getDurationString(400);\n System.out.println(ttime);\n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Coffee = \"Drink is set to be made at \" + time + \". \";\n }", "protected void playGame(String str) {\n System.out.format(\"Playing %s\\n\", str);\n }", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\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 playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String player1GetName(){\n return player1;\n }", "public void setTime(String time) {\r\n\t\tthis.time = time;\r\n\t}", "int delay(Player player);", "public static void main(String[] args) {\n\tint seconds= 1 ;\n\tint minutes= 1 ;\n\tint hours= 1 ; \n\t}", "public int getSeconds(){\r\n return Seconds;\r\n }", "@Override\n public void valueChanged(String control_val) {\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }", "static Duration promptForTime() {\n String input;\n\n Duration time;\n System.out.println(\"Enter the player's time (hh:mm:ss.SSS)\");\n System.out.println(\"EX: 1:03:44.256\");\n\n //loops until correct imput calls break;\n while (true) {\n System.out.print(\">\");\n\n if (Menus.reader.hasNext()) {\n input = Menus.reader.nextLine().strip();\n\n //Reformat the input to match ISO standard\n int colonCount = countOccurrences(input, ':');\n if (colonCount == 2) {\n input = input.replaceFirst(\":\", \"H\");\n input = input.replace(':', 'M');\n } else if (colonCount == 1) {\n input = input.replace(':', 'M');\n }\n input = \"PT\" + input + \"S\";\n\n //Parse the input to a duration\n try {\n time = Duration.parse(input);\n break;\n } catch (DateTimeParseException dtp) {\n System.out.println(\"Make sure the format is correct\");\n }\n }\n }\n return time;\n }", "@Override\r\n\tpublic void betPlayValue(int play) {\n\t\trps.setPlay(play);\r\n\t}", "public void setTime(String time) {\n this.time = time;\n }", "public void setTime(String time) {\n\t\tthis.time = time;\n\t}", "long getTimerPref();", "public void newTurnPauseCountdown()\n {\n pauseNewTurn = true;\n pauseNewTurnTimer = 169;\n }", "private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}", "public void setTime(double time) {_time = time;}", "java.lang.String getDuration();", "public void setTime(int time) {\n\t\tthis.time = time;\n\t}", "void playYearOfPlentyCard(String resource1, String resource2);", "private void playAI (int actualAI) {\n }", "public int getPlayState(){\r\n\t\tif(player.getStatus() == BasicPlayer.PLAYING){\r\n\t\t\treturn songsToPlay.isEmpty() ? selectedPreset + 10 : selectedPreset;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "void play ();", "public void setMatchTime(String text) {\n runningMatchTime.setText(text);\n if (!Main.isSimpleMode()) {\n PLC_Sender.getInstance().updatePLC_Time(true);\n }\n }", "public String getTime(){\n return time;\n }", "java.lang.String getWaitTime();", "public String getTimeVariable(){ return common.timeDatapath; }", "String player2GetName(){\n return player2;\n }", "public String autoPlay(int sign) {\n boolean validTurn = false;\n int temp1 = 0;\n int temp2 = 0;\n while (!validTurn) { //select a random empty tile\n temp1 = new Random().nextInt(TTT.getSize());\n temp2 = new Random().nextInt(TTT.getSize());\n validTurn = TTT.safeChangeTile(sign, temp1, temp2);\n }\n return temp1 + \" \" + temp2;\n }", "@Override\n public void onTick(long millisUntilFinished) {\n if (play) {\n\n\n\n\n\n czasomierz.setProgress((int)millisUntilFinished/1000);\n\n czas.setText((int)millisUntilFinished/1000 + \" s\");\n\n }\n\n }", "public void setInTime3(String inTime3) {\n\tthis.inTime3 = inTime3;\n }" ]
[ "0.7073542", "0.63991773", "0.6280141", "0.62648493", "0.6217199", "0.61669713", "0.61478704", "0.6137488", "0.6110173", "0.60211414", "0.601799", "0.5951262", "0.59501123", "0.5923836", "0.59206986", "0.59025127", "0.5868111", "0.58587193", "0.5848975", "0.5798889", "0.57697815", "0.5757788", "0.56844586", "0.5679455", "0.56656194", "0.5647411", "0.55933434", "0.55642223", "0.556079", "0.5517708", "0.55124307", "0.5510975", "0.54814804", "0.5477473", "0.54722637", "0.5462465", "0.54499537", "0.54488", "0.54440624", "0.54403055", "0.5402229", "0.5402001", "0.5393085", "0.53911954", "0.5379875", "0.53791046", "0.5376606", "0.5372467", "0.5370817", "0.5361159", "0.53553873", "0.5338421", "0.5327749", "0.53252804", "0.53251684", "0.53231704", "0.5321966", "0.53150517", "0.531302", "0.53111136", "0.5307526", "0.52988213", "0.5294606", "0.5291707", "0.528975", "0.52812207", "0.52778894", "0.5276579", "0.52642494", "0.52615285", "0.52589905", "0.5251296", "0.5249196", "0.52484614", "0.5234155", "0.5226469", "0.52253944", "0.52191156", "0.52129835", "0.520945", "0.52086025", "0.51948744", "0.5188648", "0.51845497", "0.51688546", "0.5166006", "0.51645595", "0.51624244", "0.5158498", "0.5153294", "0.5149663", "0.5144436", "0.51439154", "0.513856", "0.5137665", "0.5136622", "0.51269037", "0.5124735", "0.51231307", "0.5121034", "0.5119104" ]
0.0
-1
string context = 4;
java.lang.String getContext();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContextString();", "String getContextId();", "private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }", "public String getContext() { return context; }", "boolean mo26169a(Context context, String str);", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }", "public String getContext() {\r\n\t\treturn context;\r\n\t}", "public String getContext() {\n\t\treturn context;\n\t}", "com.google.protobuf.ByteString getContext();", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public abstract String toString(String context);", "Context mo1490b();", "void mo97180a(Context context);", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "ContextVariable createContextVariable();", "default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }", "void mo25261a(Context context);", "java.lang.String getSourceContext();", "public abstract void mo36026a(Context context);", "public static String getContext(String key){\r\n return String.valueOf(scenarioContext.get(key));\r\n }", "Context getContext();", "public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\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 context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public PrimObject primitive125(PrimContext context) {\n final String thisStrVal = (String) this.javaValue;\n final PrimObject arg = context.argumentAt(0);\n final String argStringVal = (String) arg.javaValue;\n return smalltalkString(thisStrVal + argStringVal);\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "SimpleContextVariable createSimpleContextVariable();", "public void setContextId(java.lang.CharSequence value) {\n this.contextId = value;\n }", "long getCurrentContext();", "Context context();", "Context context();", "public void mo33875a(Context context, String str, int i, boolean z) {\n }", "CTX_Context getContext();", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public String getContextId() {\n return contextId;\n }", "public int getContextId() {\n return contextId;\n }", "void mo4827a(Context context, C0152fo foVar);", "RenderingContext getContext();", "com.google.protobuf.ByteString\n getContextBytes();", "String getContextPath();", "String getContextPath();", "String getContextPath();", "public void setContext(String context) {\r\n\t\tthis.context = context;\r\n\t}", "public void set_context(VariableSymbolTable context);", "@Test\n public void testContextToString() {\n final Context context = new Context();\n context.buffer = new byte[3];\n context.currentLinePos = 13;\n context.eof = true;\n context.ibitWorkArea = 777;\n context.lbitWorkArea = 999;\n context.modulus = 5;\n context.pos = 42;\n context.readPos = 981;\n final String text = context.toString();\n assertTrue(text.contains(\"[0, 0, 0]\"));\n assertTrue(text.contains(\"13\"));\n assertTrue(text.contains(\"true\"));\n assertTrue(text.contains(\"777\"));\n assertTrue(text.contains(\"999\"));\n assertTrue(text.contains(\"5\"));\n assertTrue(text.contains(\"42\"));\n assertTrue(text.contains(\"981\"));\n }", "public void setContext(String context) {\n\t\tthis.context = context;\n\t}", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }", "Map<String, Object> getContext();", "public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n s+=\"\\n\\t\\t\\t> \"+code.getLineAsString(l)+\" <\";\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+1);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+2);\n s=s+ \"\\n\\t\\t current token:\" + tok.toString();;\n s=s+ \"\\n\\t\\t Variable dump:\" + vars;\n if (gVars!=null) {\n s=s+ \"\\n\\t\\t Globals:\" + gVars;\n }\n } else s+=\"\\n\\t\\t\\t> \"+tok.getLine()+\" <\";\n\n return s;\n }", "public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}", "java.lang.String getLinkedContext();", "private static ContextValue getContext(String blocks) {\n String strigify2 = Json.writeValueAsStringHard(blocks); // some parsing\n // issue inside\n // lisptree parser\n return ContextValue.fromString(\n String.format(\"(context (graph NaiveKnowledgeGraph ((string \\\"%s\\\") (name b) (name c))))\", strigify2));\n }", "public final void mo9617a(Context context, String str, C22841a c22841a) {\n }", "public void mo37852a(Context context, int i, String str) {\n this.f22370b = i;\n this.f22371c = str;\n f22369a.mo37855a(context, \"HMSCore\");\n }", "public final String mo38c(Context context, String str) {\n Signature[] signatureArr;\n if (TextUtils.isEmpty(this.f27b)) {\n this.f27b = context.getPackageName();\n }\n if (TextUtils.isEmpty(this.f28c)) {\n String str2 = null;\n try {\n signatureArr = context.getPackageManager().getPackageInfo(this.f27b, 64).signatures;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n signatureArr = null;\n }\n if (signatureArr != null && signatureArr.length > 0) {\n byte[] byteArray = signatureArr[0].toByteArray();\n try {\n MessageDigest instance = MessageDigest.getInstance(\"SHA1\");\n if (instance != null) {\n byte[] digest = instance.digest(byteArray);\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(Integer.toHexString((b & 255) | 256).substring(1, 3));\n }\n str2 = sb.toString();\n }\n } catch (NoSuchAlgorithmException e2) {\n e2.printStackTrace();\n }\n }\n this.f28c = str2;\n }\n String a = ((C0041x2) this.f26a).mo126a(this.f27b, this.f28c, str);\n return TextUtils.isEmpty(a) ? \"\" : a;\n }", "public final void mo64684a(Context context, String str) {\n C25371n.m83483e(context, str);\n }", "C10688c mo27626a(Context context, C10689a aVar);", "@Test\n public void contextTest() {\n assertEquals(\"20200812075906AAAGV4\", authResponse.getContext());\n }", "public static Context m55a() {\n return f387c;\n }", "@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "static String m3300d(Context context) throws C1108a {\n if (f3065kg == null) {\n throw new C1108a();\n }\n try {\n String str = (String) f3065kg.invoke(null, new Object[]{context});\n if (str != null) {\n return str;\n }\n throw new C1108a();\n } catch (IllegalAccessException e) {\n throw new C1108a(e);\n } catch (InvocationTargetException e2) {\n throw new C1108a(e2);\n }\n }", "public void setContexts(final String val) {\n contexts = val;\n }", "public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }", "public abstract Context context();", "public synchronized String mo36a(Context context, String str) {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new IllegalStateException(\"Cannot run on MainThread\");\n } else if (this.f26a == null) {\n Intent intent = new Intent();\n intent.setComponent(new ComponentName(\"com.heytap.openid\", \"com.heytap.openid.IdentifyService\"));\n intent.setAction(\"action.com.heytap.openid.OPEN_ID_SERVICE\");\n if (context.bindService(intent, this.f30e, 1)) {\n synchronized (this.f29d) {\n try {\n this.f29d.wait(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n if (this.f26a == null) {\n return \"\";\n }\n try {\n return mo38c(context, str);\n } catch (RemoteException e2) {\n e2.printStackTrace();\n return \"\";\n }\n } else {\n try {\n return mo38c(context, str);\n } catch (RemoteException e3) {\n e3.printStackTrace();\n return \"\";\n }\n }\n }", "java.lang.String getRequestID();", "public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}", "private String appendContextMessage(String msg) {\n\t\treturn msg;\r\n\t}", "@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "public int getCE32FromContexts(int i) {\n return this.contexts.charAt(i + 1) | (this.contexts.charAt(i) << 16);\n }", "public final void mT__38() throws RecognitionException {\n try {\n int _type = T__38;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:36:7: ( 'context' )\n // InternalMyDsl.g:36:9: 'context'\n {\n match(\"context\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public synchronized void addContext(String s) {\n if (context == null)\n context = new ArrayList<String>();\n context.add(s);\n }", "public URI getCurrentContext();", "String getVariable();", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "boolean mo24941a(Context context);", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n }\n }", "void mo12389a(Context context, Glide eVar, Registry registry);", "public static void m121745a(Context context, String str) {\n Intent intent = new Intent(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD66A97DC15B17E980CC82A\"));\n intent.putExtra(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD27197C71BF1048E11D2\"), str);\n intent.setType(\"text/plain\");\n context.startActivity(intent);\n }", "Context createContext();", "Context createContext();", "private String getChunkName(ScriptContext context) {\n\t\tif (context != null) {\n\t\t\tObject fileName = context.getAttribute(FILENAME);\n\t\t\tif (fileName != null) {\n\t\t\t\treturn fileName.toString();\n\t\t\t}\n\t\t}\n\t\treturn \"null\";\n\t}", "public void addContext(ArrayList<Object> context) {\n\t\tContextNode node = new ContextNode();\n\t\tnode.setContext((String) context.get(0));\n\t\tnode.setParagraphNum((int)context.get(1));\n\t\tnode.setSentenceNum((int)context.get(2));\n\t\tgetLastNode().setNext(node);\n\t}", "public static String m19632a(Context context) {\n String str;\n String str2 = \"\";\n try {\n str = context.getPackageName();\n } catch (Throwable unused) {\n str = str2;\n }\n return str == null ? str2 : str.trim();\n }", "ContextBucket getContext() {\n\treturn context;\n }", "public abstract T mo36028b(Context context);", "void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }", "String getContextPath() {\n return contextPath;\n }", "public static void run(String context) {\n\n if (!m_output.equals(\"\")) {\n // Write the output string to the console\n System.out.println(\"[\" + context + \"]\" + m_output);\n }\n\n // Reset the output string for the next run\n m_output = \"\";\n }", "public String getContextCharacters() {\r\n return this.text.toString();\r\n }", "public long getContext() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long\");\n }" ]
[ "0.7309708", "0.67616355", "0.6707032", "0.66786045", "0.6580665", "0.64252883", "0.63848174", "0.63149023", "0.6290501", "0.62855625", "0.6264309", "0.6161767", "0.6120433", "0.6120433", "0.6120433", "0.6070401", "0.60506976", "0.60478956", "0.60427874", "0.6032733", "0.6009514", "0.5993066", "0.59510213", "0.5932236", "0.5864513", "0.5848731", "0.58362037", "0.5836173", "0.5831045", "0.58255583", "0.5824497", "0.5823707", "0.5810803", "0.5808463", "0.579525", "0.57855815", "0.57855815", "0.5780379", "0.57648385", "0.5746102", "0.5739657", "0.57340443", "0.5722835", "0.5722452", "0.5716527", "0.57128066", "0.57128066", "0.57128066", "0.57093704", "0.56837153", "0.5680119", "0.56670964", "0.5654647", "0.5654647", "0.5654647", "0.5641547", "0.56265", "0.56133455", "0.56016636", "0.55398035", "0.55177724", "0.5462755", "0.54231954", "0.5422506", "0.5404388", "0.5399504", "0.5396199", "0.53755987", "0.53226924", "0.53109753", "0.52964824", "0.5296234", "0.5293873", "0.5291479", "0.52834463", "0.5280206", "0.5269199", "0.5256935", "0.5230156", "0.5228688", "0.5224907", "0.5223496", "0.5211847", "0.520723", "0.5199551", "0.519313", "0.5185322", "0.51843524", "0.51787287", "0.51787287", "0.5178428", "0.5175863", "0.5172025", "0.5170974", "0.5167629", "0.5158123", "0.5142583", "0.51417434", "0.51326066", "0.51255953" ]
0.72555923
1
string context = 4;
com.google.protobuf.ByteString getContextBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContextString();", "java.lang.String getContext();", "String getContextId();", "private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }", "public String getContext() { return context; }", "boolean mo26169a(Context context, String str);", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }", "public String getContext() {\r\n\t\treturn context;\r\n\t}", "public String getContext() {\n\t\treturn context;\n\t}", "com.google.protobuf.ByteString getContext();", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public abstract String toString(String context);", "Context mo1490b();", "void mo97180a(Context context);", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "ContextVariable createContextVariable();", "default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }", "void mo25261a(Context context);", "java.lang.String getSourceContext();", "public abstract void mo36026a(Context context);", "public static String getContext(String key){\r\n return String.valueOf(scenarioContext.get(key));\r\n }", "Context getContext();", "public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\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 context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public PrimObject primitive125(PrimContext context) {\n final String thisStrVal = (String) this.javaValue;\n final PrimObject arg = context.argumentAt(0);\n final String argStringVal = (String) arg.javaValue;\n return smalltalkString(thisStrVal + argStringVal);\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "SimpleContextVariable createSimpleContextVariable();", "public void setContextId(java.lang.CharSequence value) {\n this.contextId = value;\n }", "long getCurrentContext();", "Context context();", "Context context();", "public void mo33875a(Context context, String str, int i, boolean z) {\n }", "CTX_Context getContext();", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public String getContextId() {\n return contextId;\n }", "public int getContextId() {\n return contextId;\n }", "void mo4827a(Context context, C0152fo foVar);", "RenderingContext getContext();", "String getContextPath();", "String getContextPath();", "String getContextPath();", "public void setContext(String context) {\r\n\t\tthis.context = context;\r\n\t}", "public void set_context(VariableSymbolTable context);", "@Test\n public void testContextToString() {\n final Context context = new Context();\n context.buffer = new byte[3];\n context.currentLinePos = 13;\n context.eof = true;\n context.ibitWorkArea = 777;\n context.lbitWorkArea = 999;\n context.modulus = 5;\n context.pos = 42;\n context.readPos = 981;\n final String text = context.toString();\n assertTrue(text.contains(\"[0, 0, 0]\"));\n assertTrue(text.contains(\"13\"));\n assertTrue(text.contains(\"true\"));\n assertTrue(text.contains(\"777\"));\n assertTrue(text.contains(\"999\"));\n assertTrue(text.contains(\"5\"));\n assertTrue(text.contains(\"42\"));\n assertTrue(text.contains(\"981\"));\n }", "public void setContext(String context) {\n\t\tthis.context = context;\n\t}", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }", "Map<String, Object> getContext();", "public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n s+=\"\\n\\t\\t\\t> \"+code.getLineAsString(l)+\" <\";\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+1);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+2);\n s=s+ \"\\n\\t\\t current token:\" + tok.toString();;\n s=s+ \"\\n\\t\\t Variable dump:\" + vars;\n if (gVars!=null) {\n s=s+ \"\\n\\t\\t Globals:\" + gVars;\n }\n } else s+=\"\\n\\t\\t\\t> \"+tok.getLine()+\" <\";\n\n return s;\n }", "public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}", "java.lang.String getLinkedContext();", "private static ContextValue getContext(String blocks) {\n String strigify2 = Json.writeValueAsStringHard(blocks); // some parsing\n // issue inside\n // lisptree parser\n return ContextValue.fromString(\n String.format(\"(context (graph NaiveKnowledgeGraph ((string \\\"%s\\\") (name b) (name c))))\", strigify2));\n }", "public final void mo9617a(Context context, String str, C22841a c22841a) {\n }", "public void mo37852a(Context context, int i, String str) {\n this.f22370b = i;\n this.f22371c = str;\n f22369a.mo37855a(context, \"HMSCore\");\n }", "public final String mo38c(Context context, String str) {\n Signature[] signatureArr;\n if (TextUtils.isEmpty(this.f27b)) {\n this.f27b = context.getPackageName();\n }\n if (TextUtils.isEmpty(this.f28c)) {\n String str2 = null;\n try {\n signatureArr = context.getPackageManager().getPackageInfo(this.f27b, 64).signatures;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n signatureArr = null;\n }\n if (signatureArr != null && signatureArr.length > 0) {\n byte[] byteArray = signatureArr[0].toByteArray();\n try {\n MessageDigest instance = MessageDigest.getInstance(\"SHA1\");\n if (instance != null) {\n byte[] digest = instance.digest(byteArray);\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(Integer.toHexString((b & 255) | 256).substring(1, 3));\n }\n str2 = sb.toString();\n }\n } catch (NoSuchAlgorithmException e2) {\n e2.printStackTrace();\n }\n }\n this.f28c = str2;\n }\n String a = ((C0041x2) this.f26a).mo126a(this.f27b, this.f28c, str);\n return TextUtils.isEmpty(a) ? \"\" : a;\n }", "public final void mo64684a(Context context, String str) {\n C25371n.m83483e(context, str);\n }", "C10688c mo27626a(Context context, C10689a aVar);", "@Test\n public void contextTest() {\n assertEquals(\"20200812075906AAAGV4\", authResponse.getContext());\n }", "public static Context m55a() {\n return f387c;\n }", "@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "static String m3300d(Context context) throws C1108a {\n if (f3065kg == null) {\n throw new C1108a();\n }\n try {\n String str = (String) f3065kg.invoke(null, new Object[]{context});\n if (str != null) {\n return str;\n }\n throw new C1108a();\n } catch (IllegalAccessException e) {\n throw new C1108a(e);\n } catch (InvocationTargetException e2) {\n throw new C1108a(e2);\n }\n }", "public void setContexts(final String val) {\n contexts = val;\n }", "public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }", "public abstract Context context();", "public synchronized String mo36a(Context context, String str) {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new IllegalStateException(\"Cannot run on MainThread\");\n } else if (this.f26a == null) {\n Intent intent = new Intent();\n intent.setComponent(new ComponentName(\"com.heytap.openid\", \"com.heytap.openid.IdentifyService\"));\n intent.setAction(\"action.com.heytap.openid.OPEN_ID_SERVICE\");\n if (context.bindService(intent, this.f30e, 1)) {\n synchronized (this.f29d) {\n try {\n this.f29d.wait(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n if (this.f26a == null) {\n return \"\";\n }\n try {\n return mo38c(context, str);\n } catch (RemoteException e2) {\n e2.printStackTrace();\n return \"\";\n }\n } else {\n try {\n return mo38c(context, str);\n } catch (RemoteException e3) {\n e3.printStackTrace();\n return \"\";\n }\n }\n }", "java.lang.String getRequestID();", "public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}", "private String appendContextMessage(String msg) {\n\t\treturn msg;\r\n\t}", "@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "public int getCE32FromContexts(int i) {\n return this.contexts.charAt(i + 1) | (this.contexts.charAt(i) << 16);\n }", "public final void mT__38() throws RecognitionException {\n try {\n int _type = T__38;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:36:7: ( 'context' )\n // InternalMyDsl.g:36:9: 'context'\n {\n match(\"context\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public synchronized void addContext(String s) {\n if (context == null)\n context = new ArrayList<String>();\n context.add(s);\n }", "public URI getCurrentContext();", "String getVariable();", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "boolean mo24941a(Context context);", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n }\n }", "void mo12389a(Context context, Glide eVar, Registry registry);", "public static void m121745a(Context context, String str) {\n Intent intent = new Intent(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD66A97DC15B17E980CC82A\"));\n intent.putExtra(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD27197C71BF1048E11D2\"), str);\n intent.setType(\"text/plain\");\n context.startActivity(intent);\n }", "Context createContext();", "Context createContext();", "private String getChunkName(ScriptContext context) {\n\t\tif (context != null) {\n\t\t\tObject fileName = context.getAttribute(FILENAME);\n\t\t\tif (fileName != null) {\n\t\t\t\treturn fileName.toString();\n\t\t\t}\n\t\t}\n\t\treturn \"null\";\n\t}", "public void addContext(ArrayList<Object> context) {\n\t\tContextNode node = new ContextNode();\n\t\tnode.setContext((String) context.get(0));\n\t\tnode.setParagraphNum((int)context.get(1));\n\t\tnode.setSentenceNum((int)context.get(2));\n\t\tgetLastNode().setNext(node);\n\t}", "public static String m19632a(Context context) {\n String str;\n String str2 = \"\";\n try {\n str = context.getPackageName();\n } catch (Throwable unused) {\n str = str2;\n }\n return str == null ? str2 : str.trim();\n }", "ContextBucket getContext() {\n\treturn context;\n }", "public abstract T mo36028b(Context context);", "void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }", "String getContextPath() {\n return contextPath;\n }", "public static void run(String context) {\n\n if (!m_output.equals(\"\")) {\n // Write the output string to the console\n System.out.println(\"[\" + context + \"]\" + m_output);\n }\n\n // Reset the output string for the next run\n m_output = \"\";\n }", "public String getContextCharacters() {\r\n return this.text.toString();\r\n }", "public long getContext() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long\");\n }" ]
[ "0.7309708", "0.72555923", "0.67616355", "0.6707032", "0.66786045", "0.6580665", "0.64252883", "0.63848174", "0.63149023", "0.6290501", "0.62855625", "0.6264309", "0.6161767", "0.6120433", "0.6120433", "0.6120433", "0.6070401", "0.60506976", "0.60478956", "0.60427874", "0.6032733", "0.6009514", "0.5993066", "0.59510213", "0.5932236", "0.5864513", "0.5848731", "0.58362037", "0.5836173", "0.5831045", "0.58255583", "0.5824497", "0.5823707", "0.5810803", "0.5808463", "0.579525", "0.57855815", "0.57855815", "0.5780379", "0.57648385", "0.5746102", "0.5739657", "0.57340443", "0.5722835", "0.5722452", "0.57128066", "0.57128066", "0.57128066", "0.57093704", "0.56837153", "0.5680119", "0.56670964", "0.5654647", "0.5654647", "0.5654647", "0.5641547", "0.56265", "0.56133455", "0.56016636", "0.55398035", "0.55177724", "0.5462755", "0.54231954", "0.5422506", "0.5404388", "0.5399504", "0.5396199", "0.53755987", "0.53226924", "0.53109753", "0.52964824", "0.5296234", "0.5293873", "0.5291479", "0.52834463", "0.5280206", "0.5269199", "0.5256935", "0.5230156", "0.5228688", "0.5224907", "0.5223496", "0.5211847", "0.520723", "0.5199551", "0.519313", "0.5185322", "0.51843524", "0.51787287", "0.51787287", "0.5178428", "0.5175863", "0.5172025", "0.5170974", "0.5167629", "0.5158123", "0.5142583", "0.51417434", "0.51326066", "0.51255953" ]
0.5716527
45
Use HowMe.newBuilder() to construct.
private HowMe(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MyDataInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Who() {\n }", "private Builder() {}", "private Builder() {\n\t\t}", "private Builder()\n {\n }", "private DoLike(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "private Builder() {\n }", "private Builder() {\n }", "private HealMyChunk(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private ExperimentInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder() {\n this.obj = new Yhzh();\n }", "private Instance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Quest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Person(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Quat(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public Builder() {}", "public Builder() {}", "public Builder() {}", "private E(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder() {\n\t\t}", "public BuiltBy() {\n }", "private Step(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private SocialMetric(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder() { }", "private Model(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Data(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private CreateProofRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private PassageRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private HeartBeat(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private HeartBeatRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private SimpleData(Builder builder) {\n super(builder);\n }", "private TrainingPhrase(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private FigureData(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "private CreateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "Builder addAbout(Thing.Builder value);", "private Student(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private CreateProofResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private DataModelBuilder() {\n }", "private Builder() {\n super(com.autodesk.ws.avro.Call.SCHEMA$);\n }", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder() {\n }", "private Student(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\tsuper(builder);\n\t\t}", "private CSTeamCreate(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private HelloResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private HIAckMessage(Builder builder) {\n super(builder);\n }", "private CallAnswer(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder() {\n }", "public Builder() {\n }", "private Donatie(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "static Builder newBuilder() {\n return new Builder();\n }", "private SelfQueQiaoMsg(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Medicamento(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Builder() {\n super(Gel_BioInf_Models.ChiSquare1KGenomesPhase3Pop.SCHEMA$);\n }", "private AnswerRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Builder() {\n super(com.politrons.avro.AvroPerson.SCHEMA$);\n }", "private RpcMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private BeeMessage(Builder builder) {\n super(builder);\n }", "private ChatProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Experience(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Builder() {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n }", "private HeartBeatReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private AnswerResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Fairplay(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Input(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(Builder builder) {\n super(builder);\n }", "private Playready(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private CohortSpec(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private HeartBeatProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}", "private Course(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\tsuper(builder);\n\t\t}", "private FriendObj(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "private knock_rs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "Builder addWorkExample(CreativeWork.Builder value);", "public static Builder newBuilder() {\n return new Builder();\n }", "public Builder(){\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "private ProtocolMessage(Builder builder) {\n super(builder);\n }", "public Builder(@NonNull org.openyolo.proto.Credential proto) {\n mProtoBuilder = new org.openyolo.proto.Credential.Builder();\n\n // required properties\n setIdentifier(proto.id);\n setAuthenticationDomain(new AuthenticationDomain(proto.authDomain));\n setAuthenticationMethod(proto.authMethod);\n\n // optional properties\n setDisplayName(proto.displayName);\n setDisplayPicture(proto.displayPictureUri);\n setPassword(proto.password);\n setAdditionalProperties(\n CollectionConverter.toMap(\n proto.additionalProps,\n KeyValuePairConverters.CONVERTER_KVP_TO_PAIR));\n }", "private Code(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Construct(Builder builder) {\n super(builder);\n }", "private HeartBeatResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private HeartBeatResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Parameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Parameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Parameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Parameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Parameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public ImmutableByHavingOnlyAPrivateConstructorUsingTheBuilderPattern build() {\n return new ImmutableByHavingOnlyAPrivateConstructorUsingTheBuilderPattern(\"hi\");\n }" ]
[ "0.58621055", "0.5789732", "0.57694525", "0.5689589", "0.5684708", "0.56658435", "0.56539357", "0.56539357", "0.5623334", "0.55922616", "0.559121", "0.55580306", "0.553847", "0.5533433", "0.55281585", "0.55128664", "0.54919815", "0.54919815", "0.54919815", "0.54612213", "0.54456717", "0.54232365", "0.5420173", "0.54121244", "0.54121244", "0.54121244", "0.54121244", "0.5401965", "0.53892446", "0.53891534", "0.5383395", "0.5372319", "0.5368502", "0.5365379", "0.5361325", "0.5361043", "0.53577435", "0.5348879", "0.533806", "0.5336245", "0.5334439", "0.5332885", "0.5331462", "0.53289926", "0.5327487", "0.5322898", "0.5311162", "0.53092164", "0.530234", "0.5282354", "0.5274867", "0.5273984", "0.5273984", "0.52737707", "0.52691174", "0.52578276", "0.52485424", "0.52473915", "0.5238578", "0.5233431", "0.5227886", "0.522688", "0.5225987", "0.5220756", "0.5219229", "0.52150923", "0.52104175", "0.5197037", "0.51948017", "0.51909584", "0.51875687", "0.5185201", "0.51824415", "0.51781946", "0.51781946", "0.51781946", "0.5167772", "0.51618713", "0.5159039", "0.51588345", "0.5157306", "0.5154053", "0.51510245", "0.51456285", "0.51456285", "0.51456285", "0.51456285", "0.5142255", "0.51367635", "0.5136644", "0.513582", "0.5135716", "0.51325667", "0.51325667", "0.5131507", "0.5131507", "0.5131507", "0.5131507", "0.5131507", "0.5129374" ]
0.7557559
0
string id = 6;
public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIdNumber();", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public ID(String id) {\n this.type = id.charAt(0);\n this.UID = id;\n }", "java.lang.String getStringId();", "java.lang.String getStringId();", "String mo10312id();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getID();", "String getID();", "String getID();", "String getID();", "id(int id) {}", "java.lang.String getID();", "int getIdentifier();", "void id(int id) {}", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "public void setID(final String id)\n {\n this.id = id.substring(6, id.length());\n }", "int getIdNum();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();" ]
[ "0.7108217", "0.7005788", "0.69965523", "0.68383914", "0.68383914", "0.67779493", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.6715238", "0.6715238", "0.6715238", "0.6715238", "0.6656986", "0.66414076", "0.6477512", "0.64172345", "0.63731873", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.6353307", "0.6325516", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016" ]
0.0
-1
string id = 6;
public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIdNumber();", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public ID(String id) {\n this.type = id.charAt(0);\n this.UID = id;\n }", "java.lang.String getStringId();", "java.lang.String getStringId();", "String mo10312id();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getID();", "String getID();", "String getID();", "String getID();", "id(int id) {}", "java.lang.String getID();", "int getIdentifier();", "void id(int id) {}", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "public void setID(final String id)\n {\n this.id = id.substring(6, id.length());\n }", "int getIdNum();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();" ]
[ "0.7108217", "0.7005788", "0.69965523", "0.68383914", "0.68383914", "0.67779493", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.6715238", "0.6715238", "0.6715238", "0.6715238", "0.6656986", "0.66414076", "0.6477512", "0.64172345", "0.63731873", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.6353307", "0.6325516", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016" ]
0.0
-1
string userID = 5;
public java.lang.String getUserID() { java.lang.Object ref = userID_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userID_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "public void setUserID(java.lang.String value) {\n this.userID = value;\n }", "public String getUserID();", "public int getUserID()\n {\n return userID;\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "String getUserId();", "String getUserId();", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserId(){return userID;}", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUser1X_ID();", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserID() {\n return userID;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserid() {\n return userid;\n }", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public java.lang.String getUserID() {\n return userID;\n }", "public String getUserID() {\n return userID;\n }", "public void setUserID(Integer userID) {\n this.userID = userID;\n }", "public void setUserID(int value) {\n this.userID = value;\n }", "public java.lang.String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "Integer getUserId();", "public String getUserName(int userId);", "public void setUser1_ID (int User1_ID);", "public void setUser1_ID (int User1_ID);", "public long getUserID() {\n //userID++;\n return userID++;\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public void setUserID(long userID) {\n UserID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "String getUserName(String userId);", "public void setUser1X_ID (int User1X_ID);", "public void setUserID(java.lang.String userID) {\r\n this.userID = userID;\r\n }", "public java.lang.String getUserID() {\n return userID;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public String getUserid() {\n\t\treturn userid;\n\t}", "public int getUser1Y_ID();", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public int getUserID()\n {\n return this.userID;\n }", "java.lang.String getUserIdOne();", "private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }", "public void setUserID(String userID) {\r\n this.userID = doTrim(userID);\r\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }" ]
[ "0.71803474", "0.71280354", "0.71280354", "0.71280354", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.68178654", "0.6784753", "0.6702823", "0.66796297", "0.6592467", "0.6592467", "0.6575006", "0.6575006", "0.6532711", "0.6526791", "0.6526791", "0.6526791", "0.6492912", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64769274", "0.64717245", "0.64717245", "0.6458023", "0.64387834", "0.64344424", "0.64344424", "0.64344424", "0.64023006", "0.6392899", "0.6390785", "0.63899434", "0.63843817", "0.6357214", "0.63449997", "0.63407284", "0.63356125", "0.63107616", "0.63107616", "0.63107586", "0.63100773", "0.6308667", "0.6294485", "0.6281032", "0.6281032", "0.6279688", "0.62775755", "0.6268059", "0.6267481", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.62544006", "0.6253362", "0.62448746", "0.62448746", "0.62262034", "0.6216075", "0.61913157", "0.6187629", "0.61717886", "0.6157222", "0.6157222", "0.6156464" ]
0.6225009
93
string userID = 5;
public com.google.protobuf.ByteString getUserIDBytes() { java.lang.Object ref = userID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "public void setUserID(java.lang.String value) {\n this.userID = value;\n }", "public String getUserID();", "public int getUserID()\n {\n return userID;\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "String getUserId();", "String getUserId();", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserId(){return userID;}", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUser1X_ID();", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserID() {\n return userID;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserid() {\n return userid;\n }", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public java.lang.String getUserID() {\n return userID;\n }", "public String getUserID() {\n return userID;\n }", "public void setUserID(Integer userID) {\n this.userID = userID;\n }", "public void setUserID(int value) {\n this.userID = value;\n }", "public java.lang.String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "Integer getUserId();", "public String getUserName(int userId);", "public void setUser1_ID (int User1_ID);", "public void setUser1_ID (int User1_ID);", "public long getUserID() {\n //userID++;\n return userID++;\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public void setUserID(long userID) {\n UserID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "String getUserName(String userId);", "public void setUser1X_ID (int User1X_ID);", "public void setUserID(java.lang.String userID) {\r\n this.userID = userID;\r\n }", "public java.lang.String getUserID() {\n return userID;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public String getUserid() {\n\t\treturn userid;\n\t}", "public int getUser1Y_ID();", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public int getUserID()\n {\n return this.userID;\n }", "java.lang.String getUserIdOne();", "private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }", "public void setUserID(String userID) {\r\n this.userID = doTrim(userID);\r\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }" ]
[ "0.71803474", "0.71280354", "0.71280354", "0.71280354", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.68178654", "0.6784753", "0.6702823", "0.66796297", "0.6592467", "0.6592467", "0.6575006", "0.6575006", "0.6532711", "0.6526791", "0.6526791", "0.6526791", "0.6492912", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64769274", "0.64717245", "0.64717245", "0.6458023", "0.64387834", "0.64344424", "0.64344424", "0.64344424", "0.64023006", "0.6392899", "0.6390785", "0.63899434", "0.63843817", "0.6357214", "0.63449997", "0.63407284", "0.63356125", "0.63107616", "0.63107616", "0.63107586", "0.63100773", "0.6308667", "0.6294485", "0.6281032", "0.6281032", "0.6279688", "0.62775755", "0.6268059", "0.6267481", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.62544006", "0.6253362", "0.62448746", "0.62448746", "0.62262034", "0.6225009", "0.6225009", "0.6216075", "0.61913157", "0.6187629", "0.61717886", "0.6157222", "0.6157222", "0.6156464" ]
0.0
-1
.HowMe.Region region = 1;
public int getRegionValue() { return region_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Region region();", "Region region();", "Region region();", "Region region();", "IRegion getRegion();", "public void setRegion(String region);", "kr.pik.message.Profile.HowMe.Region getRegion();", "void tempInRegionUI();", "@NotNull\n @Generated\n @Selector(\"region\")\n public native UIRegion region();", "public Region getRegion() {\n return region;\n }", "public TypeOfRegion getRegion();", "@AutoEscape\n public String getRegion();", "WithCreate withRegion(Region location);", "WithCreate withRegion(Region location);", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "@Test\n public void regionTest() {\n // TODO: test region\n }", "public void setRegion(Region region) {\n this.region = region;\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "void addRegion(Region region);", "WithCreate withRegion(String location);", "WithCreate withRegion(String location);", "public void setRegion(String region) {\n this.region = region;\n }", "public EnumRegion getRegion()\n {\n return region;\n }", "int getRegionValue();", "String regionName();", "String regionName();", "String regionName();", "String regionName();", "public int getItuRegion() {\n return localItuRegion;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public Region() { }", "SemanticRegion<T> parent();", "public String getRegion() {\n return this.region;\n }", "public void setRegion(EnumRegion region)\n {\n this.region = region;\n }", "public RegionSample() {\n\t\tsuper();\n\t}", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(CoordinateRadius region);", "public String getRegion() {\n return region;\n }", "public Region() {\n }", "public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}", "public Builder setRegion(kr.pik.message.Profile.HowMe.Region value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n region_ = value.getNumber();\n onChanged();\n return this;\n }", "public CoordinateRadius getRegion();", "public Builder setRegion(String region) {\n/* 1601 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setRegion(final TypeOfRegion region);", "public void setRegion(String region) {\n this.region = region;\n }", "AREA createAREA();", "@VTID(15)\n excel.Range getLocation();", "@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);", "public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }", "public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}", "public abstract CDasherView.DRect VisibleRegion();", "SemanticRegion<T> outermost();", "public ShowRegionElements getShowRegionAccess() {\n\t\treturn pShowRegion;\n\t}", "public final SphRegion get_cur_region () {\n\t\tif (!( modstate >= MODSTATE_CATALOG )) {\n\t\t\tthrow new IllegalStateException (\"Access to RJGUIModel.cur_region while in state \" + cur_modstate_string());\n\t\t}\n\t\treturn fetch_fcparams.aftershock_search_region;\n\t}", "public Region getCurrentRegion() {\n\n return currentRegion;\n }", "public WorldRegions getWorldRegions()\n {\n return regions;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public Region() {\n initComponents();\n bindingTabel();\n }", "public String getValidRegionDesc();", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "public Builder setRegionValue(int value) {\n region_ = value;\n onChanged();\n return this;\n }", "public int getRegionid() {\n\treturn regionid;\n}", "@Test\n public void testSetAndGetRegion() {\n System.out.println(\"getRegion\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getRegion());\n String expResult = \"region\";\n instance.setRegion(expResult);\n String result = instance.getRegion();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getImageUrl());\n assertNull(instance.getOrder());\n assertNull(instance.getPageUrl());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }", "IRegion getLineInformation(int line) throws BadLocationException;", "@Nullable public abstract URI region();", "public void testGetSetRegion() {\n exp = new Experiment(\"10\");\n GeoLocation location = new GeoLocation(50.0, 40.0);\n exp.setRegion(location);\n assertEquals(\"get/setRegion does not work\", 50.0, exp.getRegion().getLat());\n assertEquals(\"get/setRegion does not work\", 40.0, exp.getRegion().getLon());\n }", "public java.lang.String getRegionname() {\n\treturn regionname;\n}", "public void startRegionGrowMode() {\n regionGrowMode = true;\n }", "public String getRegionno() {\n return regionno;\n }", "public String getRegionName() {\r\n return regionName;\r\n }", "@Override\r\n\tpublic void getROI() {\n\t\t\r\n\t}", "public String getRegionNo() {\n return regionNo;\n }", "void drawRegion (double b, double e) {\n begT = b; endT = e;\n drawStuff (img.getGraphics ());\n }", "public void toggleRegion(){\n\t\tif(getRegion() == regionNormal)\n\t\t\tsetRegion(regionDown);\n\t\t\n\t\telse if(getRegion() == regionDown)\n\t\t\tsetRegion(regionNormal);\t\t\n\t}", "@Method(selector = \"setRegion:animated:\")\n public native void setRegion(@ByVal MKCoordinateRegion region, boolean animated);", "public void setLiveRegion(int mode) {\n/* 1228 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "interface Blank\n extends GroupableResource.DefinitionWithRegion<WithGroup> {\n }", "public String getRegionName() {\n return regionName;\n }", "public int getRegionValue() {\n return region_;\n }", "public java.lang.String getREGION()\n {\n \n return __REGION;\n }", "public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }", "public void setC_Region_ID (int C_Region_ID);", "WithResourceGroup withRegion(Region location);", "WithResourceGroup withRegion(Region location);", "interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }" ]
[ "0.76034105", "0.76034105", "0.76034105", "0.76034105", "0.6967613", "0.67925876", "0.6749579", "0.6662819", "0.6619765", "0.6572314", "0.656354", "0.64469886", "0.6429926", "0.6429926", "0.63422984", "0.63422984", "0.6339061", "0.632487", "0.6319832", "0.6319832", "0.6319832", "0.6308871", "0.63071036", "0.63071036", "0.62908727", "0.62814134", "0.62361544", "0.62326896", "0.62326896", "0.62326896", "0.62326896", "0.62166643", "0.621348", "0.621348", "0.621348", "0.621348", "0.621348", "0.62058944", "0.61815614", "0.61815614", "0.61815614", "0.6164301", "0.6153164", "0.6099864", "0.60742396", "0.6062734", "0.6062272", "0.6062272", "0.6062272", "0.6038938", "0.6038785", "0.6025955", "0.5996477", "0.59590256", "0.5949265", "0.5939457", "0.5905987", "0.5905461", "0.5882707", "0.58503395", "0.57993263", "0.5776832", "0.57321894", "0.57236683", "0.56739694", "0.56579804", "0.5657471", "0.5655049", "0.5646993", "0.5630524", "0.560507", "0.5545843", "0.5542075", "0.5537449", "0.5537449", "0.55354875", "0.5533376", "0.5506603", "0.54949945", "0.5486963", "0.5486753", "0.5481991", "0.54798955", "0.54724246", "0.5468858", "0.5462855", "0.54592156", "0.54574424", "0.545733", "0.54551816", "0.5454061", "0.54454976", "0.5443136", "0.5436953", "0.54320085", "0.5429946", "0.54244137", "0.54105836", "0.54105836", "0.53947294" ]
0.560416
71
.HowMe.Region region = 1;
public kr.pik.message.Profile.HowMe.Region getRegion() { kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_); return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Region region();", "Region region();", "Region region();", "Region region();", "IRegion getRegion();", "public void setRegion(String region);", "kr.pik.message.Profile.HowMe.Region getRegion();", "void tempInRegionUI();", "@NotNull\n @Generated\n @Selector(\"region\")\n public native UIRegion region();", "public Region getRegion() {\n return region;\n }", "public TypeOfRegion getRegion();", "@AutoEscape\n public String getRegion();", "WithCreate withRegion(Region location);", "WithCreate withRegion(Region location);", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "@Test\n public void regionTest() {\n // TODO: test region\n }", "public void setRegion(Region region) {\n this.region = region;\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "void addRegion(Region region);", "WithCreate withRegion(String location);", "WithCreate withRegion(String location);", "public void setRegion(String region) {\n this.region = region;\n }", "public EnumRegion getRegion()\n {\n return region;\n }", "int getRegionValue();", "String regionName();", "String regionName();", "String regionName();", "String regionName();", "public int getItuRegion() {\n return localItuRegion;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public Region() { }", "SemanticRegion<T> parent();", "public String getRegion() {\n return this.region;\n }", "public void setRegion(EnumRegion region)\n {\n this.region = region;\n }", "public RegionSample() {\n\t\tsuper();\n\t}", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(CoordinateRadius region);", "public String getRegion() {\n return region;\n }", "public Region() {\n }", "public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}", "public Builder setRegion(kr.pik.message.Profile.HowMe.Region value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n region_ = value.getNumber();\n onChanged();\n return this;\n }", "public CoordinateRadius getRegion();", "public Builder setRegion(String region) {\n/* 1601 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setRegion(final TypeOfRegion region);", "public void setRegion(String region) {\n this.region = region;\n }", "AREA createAREA();", "@VTID(15)\n excel.Range getLocation();", "@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);", "public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }", "public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}", "public abstract CDasherView.DRect VisibleRegion();", "SemanticRegion<T> outermost();", "public ShowRegionElements getShowRegionAccess() {\n\t\treturn pShowRegion;\n\t}", "public final SphRegion get_cur_region () {\n\t\tif (!( modstate >= MODSTATE_CATALOG )) {\n\t\t\tthrow new IllegalStateException (\"Access to RJGUIModel.cur_region while in state \" + cur_modstate_string());\n\t\t}\n\t\treturn fetch_fcparams.aftershock_search_region;\n\t}", "public Region getCurrentRegion() {\n\n return currentRegion;\n }", "public WorldRegions getWorldRegions()\n {\n return regions;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public int getRegionValue() {\n return region_;\n }", "public Region() {\n initComponents();\n bindingTabel();\n }", "public String getValidRegionDesc();", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "public Builder setRegionValue(int value) {\n region_ = value;\n onChanged();\n return this;\n }", "public int getRegionid() {\n\treturn regionid;\n}", "@Test\n public void testSetAndGetRegion() {\n System.out.println(\"getRegion\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getRegion());\n String expResult = \"region\";\n instance.setRegion(expResult);\n String result = instance.getRegion();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getImageUrl());\n assertNull(instance.getOrder());\n assertNull(instance.getPageUrl());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }", "IRegion getLineInformation(int line) throws BadLocationException;", "@Nullable public abstract URI region();", "public void testGetSetRegion() {\n exp = new Experiment(\"10\");\n GeoLocation location = new GeoLocation(50.0, 40.0);\n exp.setRegion(location);\n assertEquals(\"get/setRegion does not work\", 50.0, exp.getRegion().getLat());\n assertEquals(\"get/setRegion does not work\", 40.0, exp.getRegion().getLon());\n }", "public java.lang.String getRegionname() {\n\treturn regionname;\n}", "public void startRegionGrowMode() {\n regionGrowMode = true;\n }", "public String getRegionno() {\n return regionno;\n }", "public String getRegionName() {\r\n return regionName;\r\n }", "@Override\r\n\tpublic void getROI() {\n\t\t\r\n\t}", "public String getRegionNo() {\n return regionNo;\n }", "void drawRegion (double b, double e) {\n begT = b; endT = e;\n drawStuff (img.getGraphics ());\n }", "public void toggleRegion(){\n\t\tif(getRegion() == regionNormal)\n\t\t\tsetRegion(regionDown);\n\t\t\n\t\telse if(getRegion() == regionDown)\n\t\t\tsetRegion(regionNormal);\t\t\n\t}", "@Method(selector = \"setRegion:animated:\")\n public native void setRegion(@ByVal MKCoordinateRegion region, boolean animated);", "public void setLiveRegion(int mode) {\n/* 1228 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "interface Blank\n extends GroupableResource.DefinitionWithRegion<WithGroup> {\n }", "public String getRegionName() {\n return regionName;\n }", "public int getRegionValue() {\n return region_;\n }", "public java.lang.String getREGION()\n {\n \n return __REGION;\n }", "public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }", "public void setC_Region_ID (int C_Region_ID);", "WithResourceGroup withRegion(Region location);", "WithResourceGroup withRegion(Region location);", "interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }" ]
[ "0.76034105", "0.76034105", "0.76034105", "0.76034105", "0.6967613", "0.67925876", "0.6749579", "0.6662819", "0.6619765", "0.6572314", "0.656354", "0.64469886", "0.6429926", "0.6429926", "0.63422984", "0.63422984", "0.6339061", "0.632487", "0.6319832", "0.6319832", "0.6319832", "0.6308871", "0.63071036", "0.63071036", "0.62908727", "0.62814134", "0.62361544", "0.62326896", "0.62326896", "0.62326896", "0.62326896", "0.62166643", "0.621348", "0.621348", "0.621348", "0.621348", "0.621348", "0.62058944", "0.61815614", "0.61815614", "0.61815614", "0.6164301", "0.6153164", "0.6099864", "0.60742396", "0.6062734", "0.6062272", "0.6062272", "0.6062272", "0.6038938", "0.6038785", "0.6025955", "0.5996477", "0.59590256", "0.5949265", "0.5939457", "0.5905987", "0.5905461", "0.5882707", "0.58503395", "0.57993263", "0.5776832", "0.57321894", "0.57236683", "0.56739694", "0.56579804", "0.5657471", "0.5655049", "0.5646993", "0.560507", "0.560416", "0.5545843", "0.5542075", "0.5537449", "0.5537449", "0.55354875", "0.5533376", "0.5506603", "0.54949945", "0.5486963", "0.5486753", "0.5481991", "0.54798955", "0.54724246", "0.5468858", "0.5462855", "0.54592156", "0.54574424", "0.545733", "0.54551816", "0.5454061", "0.54454976", "0.5443136", "0.5436953", "0.54320085", "0.5429946", "0.54244137", "0.54105836", "0.54105836", "0.53947294" ]
0.5630524
69
bool isOccupation = 2;
public boolean getIsOccupation() { return isOccupation_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getIsOccupation();", "public boolean isOccuped(){\n return this.occuped;\n }", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "public boolean isOccupied(){\n return this.occupied;\n }", "public boolean getIsOccupation() {\n return isOccupation_;\n }", "public void setOccupied(boolean occupied){\n this.occupied = occupied;\n }", "public void setOccupancy(boolean occupancy) {\n\t\tthis.occupied = occupancy;\n\t}", "protected boolean isOccupied(){\n\t\treturn occupied;\n\t}", "public void setOccupied(boolean b) {\n\t\tisOccupied = b; \n\t}", "public void setOccupied(boolean isOccupied) {\n\t\tthis.isOccupied = isOccupied;\n\t}", "void updateOccupancy() {\n\t\toccupied = !occupied;\n\t}", "public Builder setIsOccupation(boolean value) {\n \n isOccupation_ = value;\n onChanged();\n return this;\n }", "public boolean getOccupied() {\n\t\treturn isOccupied; \n\t}", "int getOccupation();", "int getOccupation();", "int getOccupation();", "int getOccupation();", "int getOccupation();", "public int isOccupied() {\r\n\t\treturn occupied;\r\n\t}", "public boolean isOccupied() {\n\t\treturn isOccupied;\n\t}", "public boolean isOccupied() {\n\t\treturn isOccupied;\n\t}", "public boolean IsOccupied() {\n\n\t\treturn occupied;\n\t}", "public boolean isOccupied() {\r\n\t\treturn isOccupied;\r\n\t}", "public boolean isOccupied() {\r\n\t\treturn isOccupied;\r\n\t}", "public boolean isKing(){return this.king;}", "public boolean isOccupied(){\n \t\treturn occupiedSeconds > 0;\n \t}", "public void setOccupied(Boolean occupied) {\n\t\tthis.occupied = occupied;\n\t}", "Boolean getIndemnity();", "boolean isBeating();", "Boolean isBoss();", "boolean isInactive() {\n/* 4818 */ return this.inactive;\n/* */ }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean CanBuyRoad();", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public void setOccupancy(int value) {\n this.occupancy = value;\n }", "public void kinged(){this.king = true;}", "public boolean isBooked(){\n return booked;\n }", "boolean outOfSight();", "public boolean isLegOut()\n{\n if (jumpState == 1)\n return true;\n return false;\n}", "public int getOccupancy() {\n return occupancy;\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isVacant() {\r\n\treturn !isOccupied() || !isAvailable();\r\n }", "public boolean is_shot(){\n \treturn this.shot;\n }", "public boolean isFood(){\n\t\treturn foodFlag;\n\t}", "public boolean isOcuppied() {\n return ocuppied;\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasEyes();", "public boolean isOccupied() {\n return piece != null;\n }", "public void buyFarm(){\n bought = !bought;\n }", "public boolean isWalking(){\n if (jumpState < 2)\n return true;\n else\n return false;\n}", "boolean isFullHouse();", "public int getOccupied() {\n return occupied;\n }", "boolean isOccupiedByAnimal(Vector2d position);", "public boolean isOccupied() {\n\t\treturn piece != null;\n\t}", "public boolean getHIPPAWaiver(){return this.HIPPAWaiver;}", "static void primitiveBoolean() {\n\n double coveragerByInsurance = 0.8;\n double billAmount = 1000.0;\n double amountPaidByInsurance = 0.0;\n double amountPaidByPatient = billAmount;\n if (isInsured) {\n amountPaidByInsurance = billAmount * coveragerByInsurance;\n amountPaidByPatient = billAmount - amountPaidByInsurance;\n }\n System.out.println(\"AmountPaidByInsurance=\" + amountPaidByInsurance);\n System.out.println(\"AmountPaidBypatient=\" + amountPaidByPatient);\n }", "public void setOccupied(int occupied) {\n this.occupied = occupied;\n }", "boolean hasAccY();", "public boolean isJumping(){\n if (jumpState == 2)\n return true;\n return false;\n\n}", "boolean hasStartingHadithNo();", "boolean isSetStraight();", "public boolean getAvailability(){\n return availabile;\n }", "boolean hasReqardTypeFifteen();", "boolean hasHasInjury();", "boolean isTestEligible();", "public boolean isOccupied(int x, int y){\r\n\t\tif(myBoard.carrier.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.battleship.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.cruiser.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.submarine.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.patrolboat.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public boolean isStudent(){\n return student;\n }", "public boolean isStudent(){\n return student;\n }", "public boolean isOccupied() {\n return !(getLease() == null);\r\n }", "boolean getB21();", "public void setAlive(boolean x){\n \talive = x;\r\n }", "public boolean isGateFull(){return GateFull;}", "boolean getB23();", "public boolean isOccupied() {\r\n\treturn character != null;\r\n }", "public boolean estaVacia(){\n if(darTamanio==0){\n return true;\n } \n else{\n return false;\n }\n}", "boolean hasResidentYn();", "boolean hasParking();", "int isActive();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isParking();", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public void battleOver()\r\n {\r\n isBattleOver = true;\r\n }", "public int getOccupation() {\n return occupation_;\n }", "public boolean isRaining()\n {\n return raining;\n }", "boolean land();", "boolean getB20();", "boolean isCounting();" ]
[ "0.7861186", "0.74756175", "0.73210126", "0.73210126", "0.73210126", "0.73210126", "0.73210126", "0.70886594", "0.6893283", "0.67243195", "0.6703081", "0.66117656", "0.65973467", "0.6572111", "0.65036863", "0.6483012", "0.6481155", "0.64171124", "0.64171124", "0.64171124", "0.64171124", "0.64171124", "0.6325097", "0.63089997", "0.63089997", "0.6307255", "0.63014376", "0.63014376", "0.62713474", "0.62512976", "0.6234035", "0.602852", "0.5997325", "0.597249", "0.595961", "0.593993", "0.59392494", "0.59392494", "0.5884922", "0.58794796", "0.58790505", "0.58790505", "0.58640075", "0.5848018", "0.582584", "0.58191437", "0.5817053", "0.58118", "0.578463", "0.57842135", "0.57834375", "0.5768585", "0.57677853", "0.5748983", "0.57471377", "0.574712", "0.57461625", "0.5741031", "0.57279074", "0.56990165", "0.5695661", "0.5680463", "0.5670619", "0.56631047", "0.56535816", "0.564665", "0.5641378", "0.5634803", "0.56243616", "0.5622802", "0.5620406", "0.5604795", "0.55963254", "0.55959594", "0.55887645", "0.55839837", "0.55799395", "0.55799395", "0.55702436", "0.5566748", "0.5566346", "0.5555548", "0.5550792", "0.5545495", "0.55413395", "0.55118304", "0.55091876", "0.55021787", "0.5500107", "0.5498083", "0.54922116", "0.54922116", "0.5491788", "0.5491788", "0.5491303", "0.5491272", "0.54888797", "0.5485228", "0.547783", "0.5475243" ]
0.7031819
8
string playTime = 3;
public java.lang.String getPlayTime() { java.lang.Object ref = playTime_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); playTime_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPlayTime();", "public int getPlayStartTime() { return _playStartTime; }", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "public void setPlaySeconds(java.lang.Integer value) {\n this.play_seconds = value;\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "void makePlay(int player) {\n }", "public int getPlay_number() {\n\n return play_number;\n }", "@Override\n\tpublic long getPlaytime() {\n\t\treturn this.playTime;\n\t}", "public double playTimeInSeconds(){\n\t\treturn durationInSeconds;\n\t}", "private String sleepString (int time){\n\t\tString sleepTime;\n\t\tif (time < 10){\n\t\t\tsleepTime = \"0\"+time;\n\t\t} \n\t\telse {\n\t\t\tsleepTime = \"\"+time; \n\t\t}\n\t\treturn sleepTime;\n\t}", "public Builder setPlayTime(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n playTime_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void play(String position, int number) {\n\t\t\n\t}", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "int getTimesPlayed (String song_id);", "@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "public void setPlay_number(int play_number) {\n\n this.play_number = play_number;\n }", "public void setPlayer(int play)\n {\n this.player=play;\n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "public void time(int value) \n{\n runtimes = value;\n}", "public void play() \n{\n s = !s; \n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true)\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n}", "public void play() {\n //Set up the timer if needed\n if (!dataGame.isTrainingMode()) {\n timer = new Timer();\n secondsPassed = 65;\n TimerTask task = new TimerTask() {\n public void run() {\n secondsPassed--;\n //Before the game starts, countdown:\t\t\t\t\t\n if (secondsPassed > 63) {\n dataGame.notifyObserverTime(\"Be ready !\");\n } else if (secondsPassed == 63) {\n dataGame.notifyObserverTime(Integer.toString(3));\n } else if (secondsPassed == 62) {\n dataGame.notifyObserverTime(Integer.toString(2));\n } else if (secondsPassed == 61) {\n dataGame.notifyObserverTime(Integer.toString(1));\n } else if (secondsPassed == 60) {\n dataGame.notifyObserverTime(\"GO !\");\n pickNewWord();\n } else if (secondsPassed == 0) {\n dataGame.notifyObserverTime(\"STOP\");\n stop(false);\n } else {\n dataGame.notifyObserverTime(Integer.toString(secondsPassed));\n }\n }\n };\n timer.scheduleAtFixedRate(task, 100, 1000); //After 100ms, the timer starts, it decreases every seconds\n } else {\n pickNewWord();\n }\n }", "String getPlayer();", "public static String checkPlayFirst() {\r\n\t int randomNumber = (int) Math.floor(Math.random() * 10) % 2;\r\n\t String player = \"\";\r\n\t if ( randomNumber == 0)\r\n\t player = \"Computer\";\r\n\t else\r\n\t player = \"User\";\r\n\r\n\t return player;\r\n\t }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "public String timerPause(){\n return mTimer;\n }", "private void setTime()\n\t{\n\t\t//local variable \n\t\tString rad = JOptionPane.showInputDialog(\"Enter the time spent bicycling: \"); \n\t\t\n\t\t//convert to int\n\t\ttry {\n\t\t\tbikeTime = Integer.parseInt(rad);\n\t\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t}", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public static String time(int time) {\n return time((long)time);\n }", "private void setTxtTimeTotal()\n {\n SimpleDateFormat dinhDangGio= new SimpleDateFormat(\"mm:ss\");\n txtTimeTotal.setText(dinhDangGio.format(mediaPlayer.getDuration()));\n //\n skSong.setMax(mediaPlayer.getDuration());\n }", "public static play() {\n\t\t\n\t}", "public boolean hasPlaySeconds() {\n return fieldSetFlags()[3];\n }", "void setTime(final int time);", "public String getInTime3() {\n\treturn inTime3;\n }", "public void setTime(String time) {\n }", "public void setCurrentPlayTime(long playTime) { throw new RuntimeException(\"Stub!\"); }", "boolean addEasyTimePlayed(long time);", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "void currentTime(double timeInSeconds) {\n execute(\"player.currentTime = \" + timeInSeconds);\n }", "public com.twc.bigdata.views.avro.viewing_info.Builder setPlaySeconds(java.lang.Integer value) {\n validate(fields()[3], value);\n this.play_seconds = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Tea = \"Drink is set to be made at \" + time + \". \";\n }", "public void play(){\n\t\t\n\t}", "public int getPlayBackTime() {\n\t\treturn mPlayer.getDuration();\n\t}", "@Override\n public void run() {\n\n secs++;\n if (secs == 10) {\n tens++;\n secs = 0;\n }\n if (tens == 6) {\n mins++;\n tens = 0;\n secs = 0;\n }\n time = mins + \":\" + tens + \"\" + secs;\n timePlayed.setText(\"Time: \" + time);\n }", "public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }", "public void time(){\n\t\tif(paused){\n\t\t\tpaused = false;\n\t\t\tmusic.play();\n\t\t\tstart = System.nanoTime();\n\t\t} else {\n\t\t\telasped += System.nanoTime() - start;\n\t\t\tstart = System.nanoTime();\n\t\t}\n\t\ttime = (double) elasped/ (double) 1000000000l;\n\t\t//System.out.println(time);\n\t}", "public int sessionTime(String player){\n \t\tif( BeardStat.loginTimes.containsKey(player)){\n \t\t\treturn Integer.parseInt(\"\"+BeardStat.loginTimes.get(player)/1000L);\n \t\t\t\n \t\t}\n \t\treturn 0;\n \t}", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getLastPlayed() {\n\t\treturn levelRunning;\n\t}", "public int getPlayLength()\n\t{\n\t\treturn playbackLength;\n\t}", "public void setBeginTime(String time){beginTime = time;}", "@Test\n public void testSetLabelTextTimeCurrent() {\n System.out.println(\"setLabelTextTimeCurrent\");\n \n String text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:05\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:00\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"GOOOAL!!!\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n }", "public void addPlayTime(final long playTime) {\n\t\tthis.playTime += playTime;\n\t}", "public String getPlayMode()\n {\n return playMode;\n }", "void update(String time);", "public String getTime(){\r\n String time = \"\";\r\n return time;\r\n }", "String sound();", "@Override\r\n\tpublic void onPrepared(MediaPlayer arg0) {\n\t\tint dur = vid.getDuration();\r\n\t\tduration.setText(dur);\r\n\t}", "public String playFromBeginning() {\n currentIndex = 1;\n return \"Playing song 1:\" + songs.get(currentIndex-1);\n }", "public int getPlayedTimes() {\n return playedTimes;\n }", "public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}", "String randomPlayer1GetName(){\n return randomPlayer1;\n }", "@Override\r\n\tprotected String play() \r\n\t{\r\n\t\treturn \"The \" + this.getClass().getSimpleName() + \" Class.\" + \"\\n\" + this.getName() + \" is up!\";\r\n//\t\tSystem.out.println( \"The \" + this.getClass().getSimpleName() + \" Class.\");\r\n//\t\tSystem.out.println( this.getName() + \" is up!\" );\t\r\n\t}", "public void makePlay(String play) {\n if (output == null) {\n output = getOutputWriter();\n }\n\n// System.out.println(\"MakePlay called: \"+play);\n String s = play+\"\\n\";\n output.print(s);\n output.flush();\n\n GameState.increaseCount();\n }", "public static void timeConversion(String time)\r\n {\n\r\n if (ticks >= 0)\r\n {\r\n time = day;\r\n } else if (ticks >= 12000)\r\n {\r\n time = sunset;\r\n } else if (ticks >= 12610)\r\n {\r\n time = dusk;\r\n } else if (ticks >= 17843)\r\n {\r\n time = midnight;\r\n } else if (ticks >= 23041)\r\n {\r\n time = dawn;\r\n }\r\n }", "public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}", "public static void main(String[] args) {\n String ttime = getDurationString(200,45);\n System.out.println(ttime);\n ttime = getDurationString(400);\n System.out.println(ttime);\n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Coffee = \"Drink is set to be made at \" + time + \". \";\n }", "protected void playGame(String str) {\n System.out.format(\"Playing %s\\n\", str);\n }", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\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 playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String player1GetName(){\n return player1;\n }", "public void setTime(String time) {\r\n\t\tthis.time = time;\r\n\t}", "int delay(Player player);", "public static void main(String[] args) {\n\tint seconds= 1 ;\n\tint minutes= 1 ;\n\tint hours= 1 ; \n\t}", "public int getSeconds(){\r\n return Seconds;\r\n }", "@Override\n public void valueChanged(String control_val) {\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }", "static Duration promptForTime() {\n String input;\n\n Duration time;\n System.out.println(\"Enter the player's time (hh:mm:ss.SSS)\");\n System.out.println(\"EX: 1:03:44.256\");\n\n //loops until correct imput calls break;\n while (true) {\n System.out.print(\">\");\n\n if (Menus.reader.hasNext()) {\n input = Menus.reader.nextLine().strip();\n\n //Reformat the input to match ISO standard\n int colonCount = countOccurrences(input, ':');\n if (colonCount == 2) {\n input = input.replaceFirst(\":\", \"H\");\n input = input.replace(':', 'M');\n } else if (colonCount == 1) {\n input = input.replace(':', 'M');\n }\n input = \"PT\" + input + \"S\";\n\n //Parse the input to a duration\n try {\n time = Duration.parse(input);\n break;\n } catch (DateTimeParseException dtp) {\n System.out.println(\"Make sure the format is correct\");\n }\n }\n }\n return time;\n }", "@Override\r\n\tpublic void betPlayValue(int play) {\n\t\trps.setPlay(play);\r\n\t}", "public void setTime(String time) {\n this.time = time;\n }", "public void setTime(String time) {\n\t\tthis.time = time;\n\t}", "long getTimerPref();", "public void newTurnPauseCountdown()\n {\n pauseNewTurn = true;\n pauseNewTurnTimer = 169;\n }", "private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}", "public void setTime(double time) {_time = time;}", "java.lang.String getDuration();", "public void setTime(int time) {\n\t\tthis.time = time;\n\t}", "void playYearOfPlentyCard(String resource1, String resource2);", "private void playAI (int actualAI) {\n }", "public int getPlayState(){\r\n\t\tif(player.getStatus() == BasicPlayer.PLAYING){\r\n\t\t\treturn songsToPlay.isEmpty() ? selectedPreset + 10 : selectedPreset;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "void play ();", "public void setMatchTime(String text) {\n runningMatchTime.setText(text);\n if (!Main.isSimpleMode()) {\n PLC_Sender.getInstance().updatePLC_Time(true);\n }\n }", "public String getTime(){\n return time;\n }", "java.lang.String getWaitTime();", "public String getTimeVariable(){ return common.timeDatapath; }", "String player2GetName(){\n return player2;\n }", "public String autoPlay(int sign) {\n boolean validTurn = false;\n int temp1 = 0;\n int temp2 = 0;\n while (!validTurn) { //select a random empty tile\n temp1 = new Random().nextInt(TTT.getSize());\n temp2 = new Random().nextInt(TTT.getSize());\n validTurn = TTT.safeChangeTile(sign, temp1, temp2);\n }\n return temp1 + \" \" + temp2;\n }", "@Override\n public void onTick(long millisUntilFinished) {\n if (play) {\n\n\n\n\n\n czasomierz.setProgress((int)millisUntilFinished/1000);\n\n czas.setText((int)millisUntilFinished/1000 + \" s\");\n\n }\n\n }", "public void setInTime3(String inTime3) {\n\tthis.inTime3 = inTime3;\n }" ]
[ "0.7073542", "0.63991773", "0.6280141", "0.62648493", "0.6217199", "0.61669713", "0.61478704", "0.6137488", "0.6110173", "0.60211414", "0.601799", "0.5951262", "0.59501123", "0.5923836", "0.59206986", "0.59025127", "0.5868111", "0.58587193", "0.5848975", "0.57697815", "0.5757788", "0.56844586", "0.5679455", "0.56656194", "0.5647411", "0.55933434", "0.55642223", "0.556079", "0.5517708", "0.55124307", "0.5510975", "0.54814804", "0.5477473", "0.54722637", "0.5462465", "0.54499537", "0.54488", "0.54440624", "0.54403055", "0.5402229", "0.5402001", "0.5393085", "0.53911954", "0.5379875", "0.53791046", "0.5376606", "0.5372467", "0.5370817", "0.5361159", "0.53553873", "0.5338421", "0.5327749", "0.53252804", "0.53251684", "0.53231704", "0.5321966", "0.53150517", "0.531302", "0.53111136", "0.5307526", "0.52988213", "0.5294606", "0.5291707", "0.528975", "0.52812207", "0.52778894", "0.5276579", "0.52642494", "0.52615285", "0.52589905", "0.5251296", "0.5249196", "0.52484614", "0.5234155", "0.5226469", "0.52253944", "0.52191156", "0.52129835", "0.520945", "0.52086025", "0.51948744", "0.5188648", "0.51845497", "0.51688546", "0.5166006", "0.51645595", "0.51624244", "0.5158498", "0.5153294", "0.5149663", "0.5144436", "0.51439154", "0.513856", "0.5137665", "0.5136622", "0.51269037", "0.5124735", "0.51231307", "0.5121034", "0.5119104" ]
0.5798889
19
string playTime = 3;
public com.google.protobuf.ByteString getPlayTimeBytes() { java.lang.Object ref = playTime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); playTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPlayTime();", "public int getPlayStartTime() { return _playStartTime; }", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "public void setPlaySeconds(java.lang.Integer value) {\n this.play_seconds = value;\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "void makePlay(int player) {\n }", "public int getPlay_number() {\n\n return play_number;\n }", "@Override\n\tpublic long getPlaytime() {\n\t\treturn this.playTime;\n\t}", "public double playTimeInSeconds(){\n\t\treturn durationInSeconds;\n\t}", "private String sleepString (int time){\n\t\tString sleepTime;\n\t\tif (time < 10){\n\t\t\tsleepTime = \"0\"+time;\n\t\t} \n\t\telse {\n\t\t\tsleepTime = \"\"+time; \n\t\t}\n\t\treturn sleepTime;\n\t}", "public Builder setPlayTime(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n playTime_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void play(String position, int number) {\n\t\t\n\t}", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "int getTimesPlayed (String song_id);", "@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "public void setPlay_number(int play_number) {\n\n this.play_number = play_number;\n }", "public void setPlayer(int play)\n {\n this.player=play;\n }", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n }\n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "public void time(int value) \n{\n runtimes = value;\n}", "public void play() \n{\n s = !s; \n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true)\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n}", "public void play() {\n //Set up the timer if needed\n if (!dataGame.isTrainingMode()) {\n timer = new Timer();\n secondsPassed = 65;\n TimerTask task = new TimerTask() {\n public void run() {\n secondsPassed--;\n //Before the game starts, countdown:\t\t\t\t\t\n if (secondsPassed > 63) {\n dataGame.notifyObserverTime(\"Be ready !\");\n } else if (secondsPassed == 63) {\n dataGame.notifyObserverTime(Integer.toString(3));\n } else if (secondsPassed == 62) {\n dataGame.notifyObserverTime(Integer.toString(2));\n } else if (secondsPassed == 61) {\n dataGame.notifyObserverTime(Integer.toString(1));\n } else if (secondsPassed == 60) {\n dataGame.notifyObserverTime(\"GO !\");\n pickNewWord();\n } else if (secondsPassed == 0) {\n dataGame.notifyObserverTime(\"STOP\");\n stop(false);\n } else {\n dataGame.notifyObserverTime(Integer.toString(secondsPassed));\n }\n }\n };\n timer.scheduleAtFixedRate(task, 100, 1000); //After 100ms, the timer starts, it decreases every seconds\n } else {\n pickNewWord();\n }\n }", "String getPlayer();", "public static String checkPlayFirst() {\r\n\t int randomNumber = (int) Math.floor(Math.random() * 10) % 2;\r\n\t String player = \"\";\r\n\t if ( randomNumber == 0)\r\n\t player = \"Computer\";\r\n\t else\r\n\t player = \"User\";\r\n\r\n\t return player;\r\n\t }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "public String timerPause(){\n return mTimer;\n }", "private void setTime()\n\t{\n\t\t//local variable \n\t\tString rad = JOptionPane.showInputDialog(\"Enter the time spent bicycling: \"); \n\t\t\n\t\t//convert to int\n\t\ttry {\n\t\t\tbikeTime = Integer.parseInt(rad);\n\t\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t}", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public static String time(int time) {\n return time((long)time);\n }", "private void setTxtTimeTotal()\n {\n SimpleDateFormat dinhDangGio= new SimpleDateFormat(\"mm:ss\");\n txtTimeTotal.setText(dinhDangGio.format(mediaPlayer.getDuration()));\n //\n skSong.setMax(mediaPlayer.getDuration());\n }", "public static play() {\n\t\t\n\t}", "public boolean hasPlaySeconds() {\n return fieldSetFlags()[3];\n }", "void setTime(final int time);", "public String getInTime3() {\n\treturn inTime3;\n }", "public void setTime(String time) {\n }", "public void setCurrentPlayTime(long playTime) { throw new RuntimeException(\"Stub!\"); }", "boolean addEasyTimePlayed(long time);", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "void currentTime(double timeInSeconds) {\n execute(\"player.currentTime = \" + timeInSeconds);\n }", "public com.twc.bigdata.views.avro.viewing_info.Builder setPlaySeconds(java.lang.Integer value) {\n validate(fields()[3], value);\n this.play_seconds = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Tea = \"Drink is set to be made at \" + time + \". \";\n }", "public void play(){\n\t\t\n\t}", "public int getPlayBackTime() {\n\t\treturn mPlayer.getDuration();\n\t}", "@Override\n public void run() {\n\n secs++;\n if (secs == 10) {\n tens++;\n secs = 0;\n }\n if (tens == 6) {\n mins++;\n tens = 0;\n secs = 0;\n }\n time = mins + \":\" + tens + \"\" + secs;\n timePlayed.setText(\"Time: \" + time);\n }", "public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }", "public void time(){\n\t\tif(paused){\n\t\t\tpaused = false;\n\t\t\tmusic.play();\n\t\t\tstart = System.nanoTime();\n\t\t} else {\n\t\t\telasped += System.nanoTime() - start;\n\t\t\tstart = System.nanoTime();\n\t\t}\n\t\ttime = (double) elasped/ (double) 1000000000l;\n\t\t//System.out.println(time);\n\t}", "public int sessionTime(String player){\n \t\tif( BeardStat.loginTimes.containsKey(player)){\n \t\t\treturn Integer.parseInt(\"\"+BeardStat.loginTimes.get(player)/1000L);\n \t\t\t\n \t\t}\n \t\treturn 0;\n \t}", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getLastPlayed() {\n\t\treturn levelRunning;\n\t}", "public int getPlayLength()\n\t{\n\t\treturn playbackLength;\n\t}", "public void setBeginTime(String time){beginTime = time;}", "@Test\n public void testSetLabelTextTimeCurrent() {\n System.out.println(\"setLabelTextTimeCurrent\");\n \n String text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:05\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:00\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"GOOOAL!!!\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n }", "public void addPlayTime(final long playTime) {\n\t\tthis.playTime += playTime;\n\t}", "public String getPlayMode()\n {\n return playMode;\n }", "void update(String time);", "public String getTime(){\r\n String time = \"\";\r\n return time;\r\n }", "String sound();", "@Override\r\n\tpublic void onPrepared(MediaPlayer arg0) {\n\t\tint dur = vid.getDuration();\r\n\t\tduration.setText(dur);\r\n\t}", "public String playFromBeginning() {\n currentIndex = 1;\n return \"Playing song 1:\" + songs.get(currentIndex-1);\n }", "public int getPlayedTimes() {\n return playedTimes;\n }", "public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}", "String randomPlayer1GetName(){\n return randomPlayer1;\n }", "@Override\r\n\tprotected String play() \r\n\t{\r\n\t\treturn \"The \" + this.getClass().getSimpleName() + \" Class.\" + \"\\n\" + this.getName() + \" is up!\";\r\n//\t\tSystem.out.println( \"The \" + this.getClass().getSimpleName() + \" Class.\");\r\n//\t\tSystem.out.println( this.getName() + \" is up!\" );\t\r\n\t}", "public void makePlay(String play) {\n if (output == null) {\n output = getOutputWriter();\n }\n\n// System.out.println(\"MakePlay called: \"+play);\n String s = play+\"\\n\";\n output.print(s);\n output.flush();\n\n GameState.increaseCount();\n }", "public static void timeConversion(String time)\r\n {\n\r\n if (ticks >= 0)\r\n {\r\n time = day;\r\n } else if (ticks >= 12000)\r\n {\r\n time = sunset;\r\n } else if (ticks >= 12610)\r\n {\r\n time = dusk;\r\n } else if (ticks >= 17843)\r\n {\r\n time = midnight;\r\n } else if (ticks >= 23041)\r\n {\r\n time = dawn;\r\n }\r\n }", "public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}", "public static void main(String[] args) {\n String ttime = getDurationString(200,45);\n System.out.println(ttime);\n ttime = getDurationString(400);\n System.out.println(ttime);\n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Coffee = \"Drink is set to be made at \" + time + \". \";\n }", "protected void playGame(String str) {\n System.out.format(\"Playing %s\\n\", str);\n }", "String player1GetName(){\n return player1;\n }", "public void setTime(String time) {\r\n\t\tthis.time = time;\r\n\t}", "int delay(Player player);", "public static void main(String[] args) {\n\tint seconds= 1 ;\n\tint minutes= 1 ;\n\tint hours= 1 ; \n\t}", "public int getSeconds(){\r\n return Seconds;\r\n }", "@Override\n public void valueChanged(String control_val) {\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }", "static Duration promptForTime() {\n String input;\n\n Duration time;\n System.out.println(\"Enter the player's time (hh:mm:ss.SSS)\");\n System.out.println(\"EX: 1:03:44.256\");\n\n //loops until correct imput calls break;\n while (true) {\n System.out.print(\">\");\n\n if (Menus.reader.hasNext()) {\n input = Menus.reader.nextLine().strip();\n\n //Reformat the input to match ISO standard\n int colonCount = countOccurrences(input, ':');\n if (colonCount == 2) {\n input = input.replaceFirst(\":\", \"H\");\n input = input.replace(':', 'M');\n } else if (colonCount == 1) {\n input = input.replace(':', 'M');\n }\n input = \"PT\" + input + \"S\";\n\n //Parse the input to a duration\n try {\n time = Duration.parse(input);\n break;\n } catch (DateTimeParseException dtp) {\n System.out.println(\"Make sure the format is correct\");\n }\n }\n }\n return time;\n }", "@Override\r\n\tpublic void betPlayValue(int play) {\n\t\trps.setPlay(play);\r\n\t}", "public void setTime(String time) {\n this.time = time;\n }", "public void setTime(String time) {\n\t\tthis.time = time;\n\t}", "long getTimerPref();", "public void newTurnPauseCountdown()\n {\n pauseNewTurn = true;\n pauseNewTurnTimer = 169;\n }", "private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}", "public void setTime(double time) {_time = time;}", "java.lang.String getDuration();", "public void setTime(int time) {\n\t\tthis.time = time;\n\t}", "void playYearOfPlentyCard(String resource1, String resource2);", "private void playAI (int actualAI) {\n }", "public int getPlayState(){\r\n\t\tif(player.getStatus() == BasicPlayer.PLAYING){\r\n\t\t\treturn songsToPlay.isEmpty() ? selectedPreset + 10 : selectedPreset;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "void play ();", "public void setMatchTime(String text) {\n runningMatchTime.setText(text);\n if (!Main.isSimpleMode()) {\n PLC_Sender.getInstance().updatePLC_Time(true);\n }\n }", "public String getTime(){\n return time;\n }", "java.lang.String getWaitTime();", "public String getTimeVariable(){ return common.timeDatapath; }", "String player2GetName(){\n return player2;\n }", "public String autoPlay(int sign) {\n boolean validTurn = false;\n int temp1 = 0;\n int temp2 = 0;\n while (!validTurn) { //select a random empty tile\n temp1 = new Random().nextInt(TTT.getSize());\n temp2 = new Random().nextInt(TTT.getSize());\n validTurn = TTT.safeChangeTile(sign, temp1, temp2);\n }\n return temp1 + \" \" + temp2;\n }", "@Override\n public void onTick(long millisUntilFinished) {\n if (play) {\n\n\n\n\n\n czasomierz.setProgress((int)millisUntilFinished/1000);\n\n czas.setText((int)millisUntilFinished/1000 + \" s\");\n\n }\n\n }", "public void setInTime3(String inTime3) {\n\tthis.inTime3 = inTime3;\n }" ]
[ "0.7073542", "0.63991773", "0.6280141", "0.62648493", "0.6217199", "0.61669713", "0.61478704", "0.6137488", "0.6110173", "0.60211414", "0.601799", "0.5951262", "0.59501123", "0.5923836", "0.59206986", "0.59025127", "0.5868111", "0.58587193", "0.5848975", "0.5798889", "0.57697815", "0.5757788", "0.56844586", "0.5679455", "0.56656194", "0.5647411", "0.55933434", "0.55642223", "0.556079", "0.5517708", "0.55124307", "0.5510975", "0.54814804", "0.5477473", "0.54722637", "0.5462465", "0.54499537", "0.54488", "0.54440624", "0.54403055", "0.5402229", "0.5402001", "0.5393085", "0.53911954", "0.5379875", "0.53791046", "0.5376606", "0.5372467", "0.5370817", "0.5361159", "0.53553873", "0.5338421", "0.5327749", "0.53252804", "0.53251684", "0.53231704", "0.5321966", "0.53150517", "0.531302", "0.53111136", "0.5307526", "0.52988213", "0.5294606", "0.5291707", "0.528975", "0.52812207", "0.52778894", "0.5276579", "0.52642494", "0.52615285", "0.52589905", "0.5249196", "0.52484614", "0.5234155", "0.5226469", "0.52253944", "0.52191156", "0.52129835", "0.520945", "0.52086025", "0.51948744", "0.5188648", "0.51845497", "0.51688546", "0.5166006", "0.51645595", "0.51624244", "0.5158498", "0.5153294", "0.5149663", "0.5144436", "0.51439154", "0.513856", "0.5137665", "0.5136622", "0.51269037", "0.5124735", "0.51231307", "0.5121034", "0.5119104" ]
0.5251296
71
string context = 4;
public java.lang.String getContext() { java.lang.Object ref = context_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContextString();", "java.lang.String getContext();", "String getContextId();", "private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }", "public String getContext() { return context; }", "boolean mo26169a(Context context, String str);", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getContext() {\r\n\t\treturn context;\r\n\t}", "public String getContext() {\n\t\treturn context;\n\t}", "com.google.protobuf.ByteString getContext();", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public abstract String toString(String context);", "Context mo1490b();", "void mo97180a(Context context);", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "ContextVariable createContextVariable();", "default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }", "void mo25261a(Context context);", "java.lang.String getSourceContext();", "public abstract void mo36026a(Context context);", "public static String getContext(String key){\r\n return String.valueOf(scenarioContext.get(key));\r\n }", "Context getContext();", "public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\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 context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public PrimObject primitive125(PrimContext context) {\n final String thisStrVal = (String) this.javaValue;\n final PrimObject arg = context.argumentAt(0);\n final String argStringVal = (String) arg.javaValue;\n return smalltalkString(thisStrVal + argStringVal);\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "SimpleContextVariable createSimpleContextVariable();", "public void setContextId(java.lang.CharSequence value) {\n this.contextId = value;\n }", "long getCurrentContext();", "Context context();", "Context context();", "public void mo33875a(Context context, String str, int i, boolean z) {\n }", "CTX_Context getContext();", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public String getContextId() {\n return contextId;\n }", "public int getContextId() {\n return contextId;\n }", "void mo4827a(Context context, C0152fo foVar);", "RenderingContext getContext();", "com.google.protobuf.ByteString\n getContextBytes();", "String getContextPath();", "String getContextPath();", "String getContextPath();", "public void setContext(String context) {\r\n\t\tthis.context = context;\r\n\t}", "public void set_context(VariableSymbolTable context);", "@Test\n public void testContextToString() {\n final Context context = new Context();\n context.buffer = new byte[3];\n context.currentLinePos = 13;\n context.eof = true;\n context.ibitWorkArea = 777;\n context.lbitWorkArea = 999;\n context.modulus = 5;\n context.pos = 42;\n context.readPos = 981;\n final String text = context.toString();\n assertTrue(text.contains(\"[0, 0, 0]\"));\n assertTrue(text.contains(\"13\"));\n assertTrue(text.contains(\"true\"));\n assertTrue(text.contains(\"777\"));\n assertTrue(text.contains(\"999\"));\n assertTrue(text.contains(\"5\"));\n assertTrue(text.contains(\"42\"));\n assertTrue(text.contains(\"981\"));\n }", "public void setContext(String context) {\n\t\tthis.context = context;\n\t}", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }", "Map<String, Object> getContext();", "public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n s+=\"\\n\\t\\t\\t> \"+code.getLineAsString(l)+\" <\";\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+1);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+2);\n s=s+ \"\\n\\t\\t current token:\" + tok.toString();;\n s=s+ \"\\n\\t\\t Variable dump:\" + vars;\n if (gVars!=null) {\n s=s+ \"\\n\\t\\t Globals:\" + gVars;\n }\n } else s+=\"\\n\\t\\t\\t> \"+tok.getLine()+\" <\";\n\n return s;\n }", "public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}", "java.lang.String getLinkedContext();", "private static ContextValue getContext(String blocks) {\n String strigify2 = Json.writeValueAsStringHard(blocks); // some parsing\n // issue inside\n // lisptree parser\n return ContextValue.fromString(\n String.format(\"(context (graph NaiveKnowledgeGraph ((string \\\"%s\\\") (name b) (name c))))\", strigify2));\n }", "public final void mo9617a(Context context, String str, C22841a c22841a) {\n }", "public void mo37852a(Context context, int i, String str) {\n this.f22370b = i;\n this.f22371c = str;\n f22369a.mo37855a(context, \"HMSCore\");\n }", "public final String mo38c(Context context, String str) {\n Signature[] signatureArr;\n if (TextUtils.isEmpty(this.f27b)) {\n this.f27b = context.getPackageName();\n }\n if (TextUtils.isEmpty(this.f28c)) {\n String str2 = null;\n try {\n signatureArr = context.getPackageManager().getPackageInfo(this.f27b, 64).signatures;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n signatureArr = null;\n }\n if (signatureArr != null && signatureArr.length > 0) {\n byte[] byteArray = signatureArr[0].toByteArray();\n try {\n MessageDigest instance = MessageDigest.getInstance(\"SHA1\");\n if (instance != null) {\n byte[] digest = instance.digest(byteArray);\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(Integer.toHexString((b & 255) | 256).substring(1, 3));\n }\n str2 = sb.toString();\n }\n } catch (NoSuchAlgorithmException e2) {\n e2.printStackTrace();\n }\n }\n this.f28c = str2;\n }\n String a = ((C0041x2) this.f26a).mo126a(this.f27b, this.f28c, str);\n return TextUtils.isEmpty(a) ? \"\" : a;\n }", "public final void mo64684a(Context context, String str) {\n C25371n.m83483e(context, str);\n }", "C10688c mo27626a(Context context, C10689a aVar);", "@Test\n public void contextTest() {\n assertEquals(\"20200812075906AAAGV4\", authResponse.getContext());\n }", "public static Context m55a() {\n return f387c;\n }", "@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "static String m3300d(Context context) throws C1108a {\n if (f3065kg == null) {\n throw new C1108a();\n }\n try {\n String str = (String) f3065kg.invoke(null, new Object[]{context});\n if (str != null) {\n return str;\n }\n throw new C1108a();\n } catch (IllegalAccessException e) {\n throw new C1108a(e);\n } catch (InvocationTargetException e2) {\n throw new C1108a(e2);\n }\n }", "public void setContexts(final String val) {\n contexts = val;\n }", "public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }", "public abstract Context context();", "public synchronized String mo36a(Context context, String str) {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new IllegalStateException(\"Cannot run on MainThread\");\n } else if (this.f26a == null) {\n Intent intent = new Intent();\n intent.setComponent(new ComponentName(\"com.heytap.openid\", \"com.heytap.openid.IdentifyService\"));\n intent.setAction(\"action.com.heytap.openid.OPEN_ID_SERVICE\");\n if (context.bindService(intent, this.f30e, 1)) {\n synchronized (this.f29d) {\n try {\n this.f29d.wait(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n if (this.f26a == null) {\n return \"\";\n }\n try {\n return mo38c(context, str);\n } catch (RemoteException e2) {\n e2.printStackTrace();\n return \"\";\n }\n } else {\n try {\n return mo38c(context, str);\n } catch (RemoteException e3) {\n e3.printStackTrace();\n return \"\";\n }\n }\n }", "java.lang.String getRequestID();", "public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}", "private String appendContextMessage(String msg) {\n\t\treturn msg;\r\n\t}", "@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "public int getCE32FromContexts(int i) {\n return this.contexts.charAt(i + 1) | (this.contexts.charAt(i) << 16);\n }", "public final void mT__38() throws RecognitionException {\n try {\n int _type = T__38;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:36:7: ( 'context' )\n // InternalMyDsl.g:36:9: 'context'\n {\n match(\"context\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public synchronized void addContext(String s) {\n if (context == null)\n context = new ArrayList<String>();\n context.add(s);\n }", "public URI getCurrentContext();", "String getVariable();", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "boolean mo24941a(Context context);", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n }\n }", "void mo12389a(Context context, Glide eVar, Registry registry);", "public static void m121745a(Context context, String str) {\n Intent intent = new Intent(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD66A97DC15B17E980CC82A\"));\n intent.putExtra(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD27197C71BF1048E11D2\"), str);\n intent.setType(\"text/plain\");\n context.startActivity(intent);\n }", "Context createContext();", "Context createContext();", "private String getChunkName(ScriptContext context) {\n\t\tif (context != null) {\n\t\t\tObject fileName = context.getAttribute(FILENAME);\n\t\t\tif (fileName != null) {\n\t\t\t\treturn fileName.toString();\n\t\t\t}\n\t\t}\n\t\treturn \"null\";\n\t}", "public void addContext(ArrayList<Object> context) {\n\t\tContextNode node = new ContextNode();\n\t\tnode.setContext((String) context.get(0));\n\t\tnode.setParagraphNum((int)context.get(1));\n\t\tnode.setSentenceNum((int)context.get(2));\n\t\tgetLastNode().setNext(node);\n\t}", "public static String m19632a(Context context) {\n String str;\n String str2 = \"\";\n try {\n str = context.getPackageName();\n } catch (Throwable unused) {\n str = str2;\n }\n return str == null ? str2 : str.trim();\n }", "ContextBucket getContext() {\n\treturn context;\n }", "public abstract T mo36028b(Context context);", "void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }", "String getContextPath() {\n return contextPath;\n }", "public static void run(String context) {\n\n if (!m_output.equals(\"\")) {\n // Write the output string to the console\n System.out.println(\"[\" + context + \"]\" + m_output);\n }\n\n // Reset the output string for the next run\n m_output = \"\";\n }", "public String getContextCharacters() {\r\n return this.text.toString();\r\n }", "public long getContext() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long\");\n }" ]
[ "0.7309708", "0.72555923", "0.67616355", "0.6707032", "0.66786045", "0.6580665", "0.64252883", "0.63149023", "0.6290501", "0.62855625", "0.6264309", "0.6161767", "0.6120433", "0.6120433", "0.6120433", "0.6070401", "0.60506976", "0.60478956", "0.60427874", "0.6032733", "0.6009514", "0.5993066", "0.59510213", "0.5932236", "0.5864513", "0.5848731", "0.58362037", "0.5836173", "0.5831045", "0.58255583", "0.5824497", "0.5823707", "0.5810803", "0.5808463", "0.579525", "0.57855815", "0.57855815", "0.5780379", "0.57648385", "0.5746102", "0.5739657", "0.57340443", "0.5722835", "0.5722452", "0.5716527", "0.57128066", "0.57128066", "0.57128066", "0.57093704", "0.56837153", "0.5680119", "0.56670964", "0.5654647", "0.5654647", "0.5654647", "0.5641547", "0.56265", "0.56133455", "0.56016636", "0.55398035", "0.55177724", "0.5462755", "0.54231954", "0.5422506", "0.5404388", "0.5399504", "0.5396199", "0.53755987", "0.53226924", "0.53109753", "0.52964824", "0.5296234", "0.5293873", "0.5291479", "0.52834463", "0.5280206", "0.5269199", "0.5256935", "0.5230156", "0.5228688", "0.5224907", "0.5223496", "0.5211847", "0.520723", "0.5199551", "0.519313", "0.5185322", "0.51843524", "0.51787287", "0.51787287", "0.5178428", "0.5175863", "0.5172025", "0.5170974", "0.5167629", "0.5158123", "0.5142583", "0.51417434", "0.51326066", "0.51255953" ]
0.63848174
7
string context = 4;
public com.google.protobuf.ByteString getContextBytes() { java.lang.Object ref = context_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); context_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContextString();", "java.lang.String getContext();", "String getContextId();", "private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }", "public String getContext() { return context; }", "boolean mo26169a(Context context, String str);", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }", "public String getContext() {\r\n\t\treturn context;\r\n\t}", "public String getContext() {\n\t\treturn context;\n\t}", "com.google.protobuf.ByteString getContext();", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public abstract String toString(String context);", "Context mo1490b();", "void mo97180a(Context context);", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "ContextVariable createContextVariable();", "default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }", "void mo25261a(Context context);", "java.lang.String getSourceContext();", "public abstract void mo36026a(Context context);", "public static String getContext(String key){\r\n return String.valueOf(scenarioContext.get(key));\r\n }", "Context getContext();", "public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }", "public PrimObject primitive125(PrimContext context) {\n final String thisStrVal = (String) this.javaValue;\n final PrimObject arg = context.argumentAt(0);\n final String argStringVal = (String) arg.javaValue;\n return smalltalkString(thisStrVal + argStringVal);\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "SimpleContextVariable createSimpleContextVariable();", "public void setContextId(java.lang.CharSequence value) {\n this.contextId = value;\n }", "long getCurrentContext();", "Context context();", "Context context();", "public void mo33875a(Context context, String str, int i, boolean z) {\n }", "CTX_Context getContext();", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public String getContextId() {\n return contextId;\n }", "public int getContextId() {\n return contextId;\n }", "void mo4827a(Context context, C0152fo foVar);", "RenderingContext getContext();", "com.google.protobuf.ByteString\n getContextBytes();", "String getContextPath();", "String getContextPath();", "String getContextPath();", "public void setContext(String context) {\r\n\t\tthis.context = context;\r\n\t}", "public void set_context(VariableSymbolTable context);", "@Test\n public void testContextToString() {\n final Context context = new Context();\n context.buffer = new byte[3];\n context.currentLinePos = 13;\n context.eof = true;\n context.ibitWorkArea = 777;\n context.lbitWorkArea = 999;\n context.modulus = 5;\n context.pos = 42;\n context.readPos = 981;\n final String text = context.toString();\n assertTrue(text.contains(\"[0, 0, 0]\"));\n assertTrue(text.contains(\"13\"));\n assertTrue(text.contains(\"true\"));\n assertTrue(text.contains(\"777\"));\n assertTrue(text.contains(\"999\"));\n assertTrue(text.contains(\"5\"));\n assertTrue(text.contains(\"42\"));\n assertTrue(text.contains(\"981\"));\n }", "public void setContext(String context) {\n\t\tthis.context = context;\n\t}", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }", "Map<String, Object> getContext();", "public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n s+=\"\\n\\t\\t\\t> \"+code.getLineAsString(l)+\" <\";\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+1);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+2);\n s=s+ \"\\n\\t\\t current token:\" + tok.toString();;\n s=s+ \"\\n\\t\\t Variable dump:\" + vars;\n if (gVars!=null) {\n s=s+ \"\\n\\t\\t Globals:\" + gVars;\n }\n } else s+=\"\\n\\t\\t\\t> \"+tok.getLine()+\" <\";\n\n return s;\n }", "public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}", "java.lang.String getLinkedContext();", "private static ContextValue getContext(String blocks) {\n String strigify2 = Json.writeValueAsStringHard(blocks); // some parsing\n // issue inside\n // lisptree parser\n return ContextValue.fromString(\n String.format(\"(context (graph NaiveKnowledgeGraph ((string \\\"%s\\\") (name b) (name c))))\", strigify2));\n }", "public final void mo9617a(Context context, String str, C22841a c22841a) {\n }", "public void mo37852a(Context context, int i, String str) {\n this.f22370b = i;\n this.f22371c = str;\n f22369a.mo37855a(context, \"HMSCore\");\n }", "public final String mo38c(Context context, String str) {\n Signature[] signatureArr;\n if (TextUtils.isEmpty(this.f27b)) {\n this.f27b = context.getPackageName();\n }\n if (TextUtils.isEmpty(this.f28c)) {\n String str2 = null;\n try {\n signatureArr = context.getPackageManager().getPackageInfo(this.f27b, 64).signatures;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n signatureArr = null;\n }\n if (signatureArr != null && signatureArr.length > 0) {\n byte[] byteArray = signatureArr[0].toByteArray();\n try {\n MessageDigest instance = MessageDigest.getInstance(\"SHA1\");\n if (instance != null) {\n byte[] digest = instance.digest(byteArray);\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(Integer.toHexString((b & 255) | 256).substring(1, 3));\n }\n str2 = sb.toString();\n }\n } catch (NoSuchAlgorithmException e2) {\n e2.printStackTrace();\n }\n }\n this.f28c = str2;\n }\n String a = ((C0041x2) this.f26a).mo126a(this.f27b, this.f28c, str);\n return TextUtils.isEmpty(a) ? \"\" : a;\n }", "public final void mo64684a(Context context, String str) {\n C25371n.m83483e(context, str);\n }", "C10688c mo27626a(Context context, C10689a aVar);", "@Test\n public void contextTest() {\n assertEquals(\"20200812075906AAAGV4\", authResponse.getContext());\n }", "public static Context m55a() {\n return f387c;\n }", "@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "static String m3300d(Context context) throws C1108a {\n if (f3065kg == null) {\n throw new C1108a();\n }\n try {\n String str = (String) f3065kg.invoke(null, new Object[]{context});\n if (str != null) {\n return str;\n }\n throw new C1108a();\n } catch (IllegalAccessException e) {\n throw new C1108a(e);\n } catch (InvocationTargetException e2) {\n throw new C1108a(e2);\n }\n }", "public void setContexts(final String val) {\n contexts = val;\n }", "public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }", "public abstract Context context();", "public synchronized String mo36a(Context context, String str) {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new IllegalStateException(\"Cannot run on MainThread\");\n } else if (this.f26a == null) {\n Intent intent = new Intent();\n intent.setComponent(new ComponentName(\"com.heytap.openid\", \"com.heytap.openid.IdentifyService\"));\n intent.setAction(\"action.com.heytap.openid.OPEN_ID_SERVICE\");\n if (context.bindService(intent, this.f30e, 1)) {\n synchronized (this.f29d) {\n try {\n this.f29d.wait(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n if (this.f26a == null) {\n return \"\";\n }\n try {\n return mo38c(context, str);\n } catch (RemoteException e2) {\n e2.printStackTrace();\n return \"\";\n }\n } else {\n try {\n return mo38c(context, str);\n } catch (RemoteException e3) {\n e3.printStackTrace();\n return \"\";\n }\n }\n }", "java.lang.String getRequestID();", "public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}", "private String appendContextMessage(String msg) {\n\t\treturn msg;\r\n\t}", "@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "public int getCE32FromContexts(int i) {\n return this.contexts.charAt(i + 1) | (this.contexts.charAt(i) << 16);\n }", "public final void mT__38() throws RecognitionException {\n try {\n int _type = T__38;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:36:7: ( 'context' )\n // InternalMyDsl.g:36:9: 'context'\n {\n match(\"context\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public synchronized void addContext(String s) {\n if (context == null)\n context = new ArrayList<String>();\n context.add(s);\n }", "public URI getCurrentContext();", "String getVariable();", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "boolean mo24941a(Context context);", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n }\n }", "void mo12389a(Context context, Glide eVar, Registry registry);", "public static void m121745a(Context context, String str) {\n Intent intent = new Intent(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD66A97DC15B17E980CC82A\"));\n intent.putExtra(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD27197C71BF1048E11D2\"), str);\n intent.setType(\"text/plain\");\n context.startActivity(intent);\n }", "Context createContext();", "Context createContext();", "private String getChunkName(ScriptContext context) {\n\t\tif (context != null) {\n\t\t\tObject fileName = context.getAttribute(FILENAME);\n\t\t\tif (fileName != null) {\n\t\t\t\treturn fileName.toString();\n\t\t\t}\n\t\t}\n\t\treturn \"null\";\n\t}", "public void addContext(ArrayList<Object> context) {\n\t\tContextNode node = new ContextNode();\n\t\tnode.setContext((String) context.get(0));\n\t\tnode.setParagraphNum((int)context.get(1));\n\t\tnode.setSentenceNum((int)context.get(2));\n\t\tgetLastNode().setNext(node);\n\t}", "public static String m19632a(Context context) {\n String str;\n String str2 = \"\";\n try {\n str = context.getPackageName();\n } catch (Throwable unused) {\n str = str2;\n }\n return str == null ? str2 : str.trim();\n }", "ContextBucket getContext() {\n\treturn context;\n }", "public abstract T mo36028b(Context context);", "void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }", "String getContextPath() {\n return contextPath;\n }", "public static void run(String context) {\n\n if (!m_output.equals(\"\")) {\n // Write the output string to the console\n System.out.println(\"[\" + context + \"]\" + m_output);\n }\n\n // Reset the output string for the next run\n m_output = \"\";\n }", "public String getContextCharacters() {\r\n return this.text.toString();\r\n }", "public long getContext() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long\");\n }" ]
[ "0.7309708", "0.72555923", "0.67616355", "0.6707032", "0.66786045", "0.6580665", "0.64252883", "0.63848174", "0.63149023", "0.6290501", "0.62855625", "0.6264309", "0.6161767", "0.6120433", "0.6120433", "0.6120433", "0.6070401", "0.60506976", "0.60478956", "0.60427874", "0.6032733", "0.6009514", "0.5993066", "0.59510213", "0.5932236", "0.5864513", "0.5848731", "0.58362037", "0.5836173", "0.5831045", "0.5824497", "0.5823707", "0.5810803", "0.5808463", "0.579525", "0.57855815", "0.57855815", "0.5780379", "0.57648385", "0.5746102", "0.5739657", "0.57340443", "0.5722835", "0.5722452", "0.5716527", "0.57128066", "0.57128066", "0.57128066", "0.57093704", "0.56837153", "0.5680119", "0.56670964", "0.5654647", "0.5654647", "0.5654647", "0.5641547", "0.56265", "0.56133455", "0.56016636", "0.55398035", "0.55177724", "0.5462755", "0.54231954", "0.5422506", "0.5404388", "0.5399504", "0.5396199", "0.53755987", "0.53226924", "0.53109753", "0.52964824", "0.5296234", "0.5293873", "0.5291479", "0.52834463", "0.5280206", "0.5269199", "0.5256935", "0.5230156", "0.5228688", "0.5224907", "0.5223496", "0.5211847", "0.520723", "0.5199551", "0.519313", "0.5185322", "0.51843524", "0.51787287", "0.51787287", "0.5178428", "0.5175863", "0.5172025", "0.5170974", "0.5167629", "0.5158123", "0.5142583", "0.51417434", "0.51326066", "0.51255953" ]
0.58255583
30
string id = 6;
public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIdNumber();", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public ID(String id) {\n this.type = id.charAt(0);\n this.UID = id;\n }", "java.lang.String getStringId();", "java.lang.String getStringId();", "String mo10312id();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getID();", "String getID();", "String getID();", "String getID();", "id(int id) {}", "java.lang.String getID();", "int getIdentifier();", "void id(int id) {}", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "public void setID(final String id)\n {\n this.id = id.substring(6, id.length());\n }", "int getIdNum();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();" ]
[ "0.7108217", "0.7005788", "0.69965523", "0.68383914", "0.68383914", "0.67779493", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.6715238", "0.6715238", "0.6715238", "0.6715238", "0.6656986", "0.66414076", "0.6477512", "0.64172345", "0.63731873", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.6353307", "0.6325516", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016" ]
0.0
-1
string id = 6;
public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIdNumber();", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public ID(String id) {\n this.type = id.charAt(0);\n this.UID = id;\n }", "java.lang.String getStringId();", "java.lang.String getStringId();", "String mo10312id();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getID();", "String getID();", "String getID();", "String getID();", "id(int id) {}", "java.lang.String getID();", "int getIdentifier();", "void id(int id) {}", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "public void setID(final String id)\n {\n this.id = id.substring(6, id.length());\n }", "int getIdNum();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();" ]
[ "0.7108217", "0.7005788", "0.69965523", "0.68383914", "0.68383914", "0.67779493", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.6715238", "0.6715238", "0.6715238", "0.6715238", "0.6656986", "0.66414076", "0.6477512", "0.64172345", "0.63731873", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.6353307", "0.6325516", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016" ]
0.0
-1
string id = 6;
public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIdNumber();", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public ID(String id) {\n this.type = id.charAt(0);\n this.UID = id;\n }", "java.lang.String getStringId();", "java.lang.String getStringId();", "String mo10312id();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getID();", "String getID();", "String getID();", "String getID();", "id(int id) {}", "java.lang.String getID();", "int getIdentifier();", "void id(int id) {}", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "public void setID(final String id)\n {\n this.id = id.substring(6, id.length());\n }", "int getIdNum();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();" ]
[ "0.7108217", "0.7005788", "0.69965523", "0.68383914", "0.68383914", "0.67779493", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.6715238", "0.6715238", "0.6715238", "0.6715238", "0.6656986", "0.66414076", "0.6477512", "0.64172345", "0.63731873", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.6353307", "0.6325516", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016" ]
0.0
-1
string id = 6;
public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIdNumber();", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public ID(String id) {\n this.type = id.charAt(0);\n this.UID = id;\n }", "java.lang.String getStringId();", "java.lang.String getStringId();", "String mo10312id();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getID();", "String getID();", "String getID();", "String getID();", "id(int id) {}", "java.lang.String getID();", "int getIdentifier();", "void id(int id) {}", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "public void setID(final String id)\n {\n this.id = id.substring(6, id.length());\n }", "int getIdNum();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();" ]
[ "0.7108217", "0.7005788", "0.69965523", "0.68383914", "0.68383914", "0.67779493", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.6715238", "0.6715238", "0.6715238", "0.6715238", "0.6656986", "0.66414076", "0.6477512", "0.64172345", "0.63731873", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.6353307", "0.6325516", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016" ]
0.0
-1
string id = 6;
public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIdNumber();", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public ID(String id) {\n this.type = id.charAt(0);\n this.UID = id;\n }", "java.lang.String getStringId();", "java.lang.String getStringId();", "String mo10312id();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getID();", "String getID();", "String getID();", "String getID();", "id(int id) {}", "java.lang.String getID();", "int getIdentifier();", "void id(int id) {}", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "public void setID(final String id)\n {\n this.id = id.substring(6, id.length());\n }", "int getIdNum();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();" ]
[ "0.7108217", "0.7005788", "0.69965523", "0.68383914", "0.68383914", "0.67779493", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.67177963", "0.6715238", "0.6715238", "0.6715238", "0.6715238", "0.6656986", "0.66414076", "0.6477512", "0.64172345", "0.63731873", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.63646466", "0.6353307", "0.6325516", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016", "0.63091016" ]
0.0
-1
string userID = 5;
public java.lang.String getUserID() { java.lang.Object ref = userID_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userID_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "public void setUserID(java.lang.String value) {\n this.userID = value;\n }", "public String getUserID();", "public int getUserID()\n {\n return userID;\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "String getUserId();", "String getUserId();", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserId(){return userID;}", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUser1X_ID();", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserID() {\n return userID;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserid() {\n return userid;\n }", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public java.lang.String getUserID() {\n return userID;\n }", "public String getUserID() {\n return userID;\n }", "public void setUserID(Integer userID) {\n this.userID = userID;\n }", "public void setUserID(int value) {\n this.userID = value;\n }", "public java.lang.String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "Integer getUserId();", "public String getUserName(int userId);", "public void setUser1_ID (int User1_ID);", "public void setUser1_ID (int User1_ID);", "public long getUserID() {\n //userID++;\n return userID++;\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public void setUserID(long userID) {\n UserID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "String getUserName(String userId);", "public void setUser1X_ID (int User1X_ID);", "public void setUserID(java.lang.String userID) {\r\n this.userID = userID;\r\n }", "public java.lang.String getUserID() {\n return userID;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public String getUserid() {\n\t\treturn userid;\n\t}", "public int getUser1Y_ID();", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public int getUserID()\n {\n return this.userID;\n }", "java.lang.String getUserIdOne();", "private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }", "public void setUserID(String userID) {\r\n this.userID = doTrim(userID);\r\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }" ]
[ "0.71803474", "0.71280354", "0.71280354", "0.71280354", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.68178654", "0.6784753", "0.6702823", "0.66796297", "0.6592467", "0.6592467", "0.6575006", "0.6575006", "0.6532711", "0.6526791", "0.6526791", "0.6526791", "0.6492912", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64769274", "0.64717245", "0.64717245", "0.6458023", "0.64387834", "0.64344424", "0.64344424", "0.64344424", "0.64023006", "0.6392899", "0.6390785", "0.63899434", "0.63843817", "0.6357214", "0.63449997", "0.63407284", "0.63356125", "0.63107616", "0.63107616", "0.63107586", "0.63100773", "0.6308667", "0.6294485", "0.6281032", "0.6281032", "0.6279688", "0.62775755", "0.6268059", "0.6267481", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.62544006", "0.6253362", "0.62262034", "0.6225009", "0.6225009", "0.6216075", "0.61913157", "0.6187629", "0.61717886", "0.6157222", "0.6157222", "0.6156464" ]
0.62448746
90
string userID = 5;
public com.google.protobuf.ByteString getUserIDBytes() { java.lang.Object ref = userID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "public void setUserID(java.lang.String value) {\n this.userID = value;\n }", "public String getUserID();", "public int getUserID()\n {\n return userID;\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "String getUserId();", "String getUserId();", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserId(){return userID;}", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUser1X_ID();", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserID() {\n return userID;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserid() {\n return userid;\n }", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public java.lang.String getUserID() {\n return userID;\n }", "public String getUserID() {\n return userID;\n }", "public void setUserID(Integer userID) {\n this.userID = userID;\n }", "public void setUserID(int value) {\n this.userID = value;\n }", "public java.lang.String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "Integer getUserId();", "public String getUserName(int userId);", "public void setUser1_ID (int User1_ID);", "public void setUser1_ID (int User1_ID);", "public long getUserID() {\n //userID++;\n return userID++;\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public void setUserID(long userID) {\n UserID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "String getUserName(String userId);", "public void setUser1X_ID (int User1X_ID);", "public void setUserID(java.lang.String userID) {\r\n this.userID = userID;\r\n }", "public java.lang.String getUserID() {\n return userID;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public String getUserid() {\n\t\treturn userid;\n\t}", "public int getUser1Y_ID();", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public int getUserID()\n {\n return this.userID;\n }", "java.lang.String getUserIdOne();", "private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }", "public void setUserID(String userID) {\r\n this.userID = doTrim(userID);\r\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }" ]
[ "0.71803474", "0.71280354", "0.71280354", "0.71280354", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.68178654", "0.6784753", "0.6702823", "0.66796297", "0.6592467", "0.6592467", "0.6575006", "0.6575006", "0.6532711", "0.6526791", "0.6526791", "0.6526791", "0.6492912", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64769274", "0.64717245", "0.64717245", "0.6458023", "0.64387834", "0.64344424", "0.64344424", "0.64344424", "0.64023006", "0.6392899", "0.6390785", "0.63899434", "0.63843817", "0.6357214", "0.63449997", "0.63407284", "0.63356125", "0.63107616", "0.63107616", "0.63107586", "0.63100773", "0.6308667", "0.6294485", "0.6281032", "0.6281032", "0.6279688", "0.62775755", "0.6268059", "0.6267481", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.62544006", "0.6253362", "0.62448746", "0.62448746", "0.62262034", "0.6225009", "0.6225009", "0.6216075", "0.61913157", "0.6187629", "0.61717886", "0.6157222", "0.6157222", "0.6156464" ]
0.0
-1
string userID = 5;
public Builder setUserID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userID_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "public void setUserID(java.lang.String value) {\n this.userID = value;\n }", "public String getUserID();", "public int getUserID()\n {\n return userID;\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "String getUserId();", "String getUserId();", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserId(){return userID;}", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUser1X_ID();", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserID() {\n return userID;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserid() {\n return userid;\n }", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public java.lang.String getUserID() {\n return userID;\n }", "public String getUserID() {\n return userID;\n }", "public void setUserID(Integer userID) {\n this.userID = userID;\n }", "public void setUserID(int value) {\n this.userID = value;\n }", "public java.lang.String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "Integer getUserId();", "public String getUserName(int userId);", "public void setUser1_ID (int User1_ID);", "public void setUser1_ID (int User1_ID);", "public long getUserID() {\n //userID++;\n return userID++;\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public void setUserID(long userID) {\n UserID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "String getUserName(String userId);", "public void setUser1X_ID (int User1X_ID);", "public void setUserID(java.lang.String userID) {\r\n this.userID = userID;\r\n }", "public java.lang.String getUserID() {\n return userID;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public String getUserid() {\n\t\treturn userid;\n\t}", "public int getUser1Y_ID();", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public int getUserID()\n {\n return this.userID;\n }", "java.lang.String getUserIdOne();", "private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }", "public void setUserID(String userID) {\r\n this.userID = doTrim(userID);\r\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }" ]
[ "0.71803474", "0.71280354", "0.71280354", "0.71280354", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.68178654", "0.6784753", "0.6702823", "0.66796297", "0.6592467", "0.6592467", "0.6575006", "0.6575006", "0.6532711", "0.6526791", "0.6526791", "0.6526791", "0.6492912", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64769274", "0.64717245", "0.64717245", "0.6458023", "0.64387834", "0.64344424", "0.64344424", "0.64344424", "0.64023006", "0.6392899", "0.6390785", "0.63899434", "0.63843817", "0.6357214", "0.63449997", "0.63407284", "0.63356125", "0.63107616", "0.63107616", "0.63107586", "0.63100773", "0.6308667", "0.6294485", "0.6281032", "0.6281032", "0.6279688", "0.62775755", "0.6268059", "0.6267481", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.62544006", "0.6253362", "0.62448746", "0.62448746", "0.62262034", "0.6225009", "0.6225009", "0.6216075", "0.61913157", "0.6187629", "0.61717886", "0.6157222", "0.6157222", "0.6156464" ]
0.0
-1
string userID = 5;
public Builder clearUserID() { userID_ = getDefaultInstance().getUserID(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "public void setUserID(java.lang.String value) {\n this.userID = value;\n }", "public String getUserID();", "public int getUserID()\n {\n return userID;\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "String getUserId();", "String getUserId();", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserId(){return userID;}", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUser1X_ID();", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserID() {\n return userID;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserid() {\n return userid;\n }", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public java.lang.String getUserID() {\n return userID;\n }", "public String getUserID() {\n return userID;\n }", "public void setUserID(Integer userID) {\n this.userID = userID;\n }", "public void setUserID(int value) {\n this.userID = value;\n }", "public java.lang.String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "Integer getUserId();", "public String getUserName(int userId);", "public void setUser1_ID (int User1_ID);", "public void setUser1_ID (int User1_ID);", "public long getUserID() {\n //userID++;\n return userID++;\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public void setUserID(long userID) {\n UserID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "String getUserName(String userId);", "public void setUser1X_ID (int User1X_ID);", "public void setUserID(java.lang.String userID) {\r\n this.userID = userID;\r\n }", "public java.lang.String getUserID() {\n return userID;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public String getUserid() {\n\t\treturn userid;\n\t}", "public int getUser1Y_ID();", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public int getUserID()\n {\n return this.userID;\n }", "java.lang.String getUserIdOne();", "private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }", "public void setUserID(String userID) {\r\n this.userID = doTrim(userID);\r\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }" ]
[ "0.71803474", "0.71280354", "0.71280354", "0.71280354", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.68178654", "0.6784753", "0.6702823", "0.66796297", "0.6592467", "0.6592467", "0.6575006", "0.6575006", "0.6532711", "0.6526791", "0.6526791", "0.6526791", "0.6492912", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64769274", "0.64717245", "0.64717245", "0.6458023", "0.64387834", "0.64344424", "0.64344424", "0.64344424", "0.64023006", "0.6392899", "0.6390785", "0.63899434", "0.63843817", "0.6357214", "0.63449997", "0.63407284", "0.63356125", "0.63107616", "0.63107616", "0.63107586", "0.63100773", "0.6308667", "0.6294485", "0.6281032", "0.6281032", "0.6279688", "0.62775755", "0.6268059", "0.6267481", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.62544006", "0.6253362", "0.62448746", "0.62448746", "0.62262034", "0.6225009", "0.6225009", "0.6216075", "0.61913157", "0.6187629", "0.61717886", "0.6157222", "0.6157222", "0.6156464" ]
0.0
-1
string userID = 5;
public Builder setUserIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userID_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "public void setUserID(java.lang.String value) {\n this.userID = value;\n }", "public String getUserID();", "public int getUserID()\n {\n return userID;\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "String getUserId();", "String getUserId();", "public int getUser1_ID();", "public int getUser1_ID();", "public String getUserId(){return userID;}", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUser1X_ID();", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserID() {\n return userID;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserid() {\n return userid;\n }", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public java.lang.String getUserID() {\n return userID;\n }", "public String getUserID() {\n return userID;\n }", "public void setUserID(Integer userID) {\n this.userID = userID;\n }", "public void setUserID(int value) {\n this.userID = value;\n }", "public java.lang.String getUserID() {\r\n return userID;\r\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "Integer getUserId();", "public String getUserName(int userId);", "public void setUser1_ID (int User1_ID);", "public void setUser1_ID (int User1_ID);", "public long getUserID() {\n //userID++;\n return userID++;\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public void setUserID(long userID) {\n UserID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "String getUserName(String userId);", "public void setUser1X_ID (int User1X_ID);", "public void setUserID(java.lang.String userID) {\r\n this.userID = userID;\r\n }", "public java.lang.String getUserID() {\n return userID;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public String getUserid() {\n\t\treturn userid;\n\t}", "public int getUser1Y_ID();", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }", "public int getUserID()\n {\n return this.userID;\n }", "java.lang.String getUserIdOne();", "private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }", "public void setUserID(String userID) {\r\n this.userID = doTrim(userID);\r\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }" ]
[ "0.71803474", "0.71280354", "0.71280354", "0.71280354", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.6845591", "0.68178654", "0.6784753", "0.6702823", "0.66796297", "0.6592467", "0.6592467", "0.6575006", "0.6575006", "0.6532711", "0.6526791", "0.6526791", "0.6526791", "0.6492912", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64851874", "0.64769274", "0.64717245", "0.64717245", "0.6458023", "0.64387834", "0.64344424", "0.64344424", "0.64344424", "0.64023006", "0.6392899", "0.6390785", "0.63899434", "0.63843817", "0.6357214", "0.63449997", "0.63407284", "0.63356125", "0.63107616", "0.63107616", "0.63107586", "0.63100773", "0.6308667", "0.6294485", "0.6281032", "0.6281032", "0.6279688", "0.62775755", "0.6268059", "0.6267481", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.6266136", "0.62544006", "0.6253362", "0.62448746", "0.62448746", "0.62262034", "0.6225009", "0.6225009", "0.6216075", "0.61913157", "0.6187629", "0.61717886", "0.6157222", "0.6157222", "0.6156464" ]
0.0
-1
.HowMe.Region region = 1;
public int getRegionValue() { return region_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Region region();", "Region region();", "Region region();", "Region region();", "IRegion getRegion();", "public void setRegion(String region);", "kr.pik.message.Profile.HowMe.Region getRegion();", "void tempInRegionUI();", "@NotNull\n @Generated\n @Selector(\"region\")\n public native UIRegion region();", "public Region getRegion() {\n return region;\n }", "public TypeOfRegion getRegion();", "@AutoEscape\n public String getRegion();", "WithCreate withRegion(Region location);", "WithCreate withRegion(Region location);", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "@Test\n public void regionTest() {\n // TODO: test region\n }", "public void setRegion(Region region) {\n this.region = region;\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "void addRegion(Region region);", "WithCreate withRegion(String location);", "WithCreate withRegion(String location);", "public void setRegion(String region) {\n this.region = region;\n }", "public EnumRegion getRegion()\n {\n return region;\n }", "int getRegionValue();", "String regionName();", "String regionName();", "String regionName();", "String regionName();", "public int getItuRegion() {\n return localItuRegion;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public Region() { }", "SemanticRegion<T> parent();", "public String getRegion() {\n return this.region;\n }", "public void setRegion(EnumRegion region)\n {\n this.region = region;\n }", "public RegionSample() {\n\t\tsuper();\n\t}", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(CoordinateRadius region);", "public String getRegion() {\n return region;\n }", "public Region() {\n }", "public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}", "public Builder setRegion(kr.pik.message.Profile.HowMe.Region value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n region_ = value.getNumber();\n onChanged();\n return this;\n }", "public CoordinateRadius getRegion();", "public Builder setRegion(String region) {\n/* 1601 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setRegion(final TypeOfRegion region);", "public void setRegion(String region) {\n this.region = region;\n }", "AREA createAREA();", "@VTID(15)\n excel.Range getLocation();", "@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);", "public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }", "public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}", "public abstract CDasherView.DRect VisibleRegion();", "SemanticRegion<T> outermost();", "public ShowRegionElements getShowRegionAccess() {\n\t\treturn pShowRegion;\n\t}", "public final SphRegion get_cur_region () {\n\t\tif (!( modstate >= MODSTATE_CATALOG )) {\n\t\t\tthrow new IllegalStateException (\"Access to RJGUIModel.cur_region while in state \" + cur_modstate_string());\n\t\t}\n\t\treturn fetch_fcparams.aftershock_search_region;\n\t}", "public Region getCurrentRegion() {\n\n return currentRegion;\n }", "public WorldRegions getWorldRegions()\n {\n return regions;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public int getRegionValue() {\n return region_;\n }", "public Region() {\n initComponents();\n bindingTabel();\n }", "public String getValidRegionDesc();", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "public Builder setRegionValue(int value) {\n region_ = value;\n onChanged();\n return this;\n }", "public int getRegionid() {\n\treturn regionid;\n}", "@Test\n public void testSetAndGetRegion() {\n System.out.println(\"getRegion\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getRegion());\n String expResult = \"region\";\n instance.setRegion(expResult);\n String result = instance.getRegion();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getImageUrl());\n assertNull(instance.getOrder());\n assertNull(instance.getPageUrl());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }", "IRegion getLineInformation(int line) throws BadLocationException;", "@Nullable public abstract URI region();", "public void testGetSetRegion() {\n exp = new Experiment(\"10\");\n GeoLocation location = new GeoLocation(50.0, 40.0);\n exp.setRegion(location);\n assertEquals(\"get/setRegion does not work\", 50.0, exp.getRegion().getLat());\n assertEquals(\"get/setRegion does not work\", 40.0, exp.getRegion().getLon());\n }", "public java.lang.String getRegionname() {\n\treturn regionname;\n}", "public void startRegionGrowMode() {\n regionGrowMode = true;\n }", "public String getRegionno() {\n return regionno;\n }", "public String getRegionName() {\r\n return regionName;\r\n }", "@Override\r\n\tpublic void getROI() {\n\t\t\r\n\t}", "public String getRegionNo() {\n return regionNo;\n }", "void drawRegion (double b, double e) {\n begT = b; endT = e;\n drawStuff (img.getGraphics ());\n }", "public void toggleRegion(){\n\t\tif(getRegion() == regionNormal)\n\t\t\tsetRegion(regionDown);\n\t\t\n\t\telse if(getRegion() == regionDown)\n\t\t\tsetRegion(regionNormal);\t\t\n\t}", "@Method(selector = \"setRegion:animated:\")\n public native void setRegion(@ByVal MKCoordinateRegion region, boolean animated);", "public void setLiveRegion(int mode) {\n/* 1228 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "interface Blank\n extends GroupableResource.DefinitionWithRegion<WithGroup> {\n }", "public String getRegionName() {\n return regionName;\n }", "public java.lang.String getREGION()\n {\n \n return __REGION;\n }", "public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }", "public void setC_Region_ID (int C_Region_ID);", "WithResourceGroup withRegion(Region location);", "WithResourceGroup withRegion(Region location);", "interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }" ]
[ "0.76034105", "0.76034105", "0.76034105", "0.76034105", "0.6967613", "0.67925876", "0.6749579", "0.6662819", "0.6619765", "0.6572314", "0.656354", "0.64469886", "0.6429926", "0.6429926", "0.63422984", "0.63422984", "0.6339061", "0.632487", "0.6319832", "0.6319832", "0.6319832", "0.6308871", "0.63071036", "0.63071036", "0.62908727", "0.62814134", "0.62361544", "0.62326896", "0.62326896", "0.62326896", "0.62326896", "0.62166643", "0.621348", "0.621348", "0.621348", "0.621348", "0.621348", "0.62058944", "0.61815614", "0.61815614", "0.61815614", "0.6164301", "0.6153164", "0.6099864", "0.60742396", "0.6062734", "0.6062272", "0.6062272", "0.6062272", "0.6038938", "0.6038785", "0.6025955", "0.5996477", "0.59590256", "0.5949265", "0.5939457", "0.5905987", "0.5905461", "0.5882707", "0.58503395", "0.57993263", "0.5776832", "0.57321894", "0.57236683", "0.56739694", "0.56579804", "0.5657471", "0.5655049", "0.5646993", "0.5630524", "0.560507", "0.560416", "0.5545843", "0.5542075", "0.5537449", "0.5537449", "0.55354875", "0.5533376", "0.5506603", "0.54949945", "0.5486963", "0.5486753", "0.5481991", "0.54798955", "0.54724246", "0.5468858", "0.5462855", "0.54592156", "0.54574424", "0.545733", "0.54551816", "0.5454061", "0.54454976", "0.5443136", "0.54320085", "0.5429946", "0.54244137", "0.54105836", "0.54105836", "0.53947294" ]
0.5436953
94
.HowMe.Region region = 1;
public Builder setRegionValue(int value) { region_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Region region();", "Region region();", "Region region();", "Region region();", "IRegion getRegion();", "public void setRegion(String region);", "kr.pik.message.Profile.HowMe.Region getRegion();", "void tempInRegionUI();", "@NotNull\n @Generated\n @Selector(\"region\")\n public native UIRegion region();", "public Region getRegion() {\n return region;\n }", "public TypeOfRegion getRegion();", "@AutoEscape\n public String getRegion();", "WithCreate withRegion(Region location);", "WithCreate withRegion(Region location);", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "@Test\n public void regionTest() {\n // TODO: test region\n }", "public void setRegion(Region region) {\n this.region = region;\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "void addRegion(Region region);", "WithCreate withRegion(String location);", "WithCreate withRegion(String location);", "public void setRegion(String region) {\n this.region = region;\n }", "public EnumRegion getRegion()\n {\n return region;\n }", "int getRegionValue();", "String regionName();", "String regionName();", "String regionName();", "String regionName();", "public int getItuRegion() {\n return localItuRegion;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public Region() { }", "SemanticRegion<T> parent();", "public String getRegion() {\n return this.region;\n }", "public void setRegion(EnumRegion region)\n {\n this.region = region;\n }", "public RegionSample() {\n\t\tsuper();\n\t}", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public String getRegion() {\n return region;\n }", "public void setRegion(CoordinateRadius region);", "public Region() {\n }", "public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}", "public Builder setRegion(kr.pik.message.Profile.HowMe.Region value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n region_ = value.getNumber();\n onChanged();\n return this;\n }", "public CoordinateRadius getRegion();", "public Builder setRegion(String region) {\n/* 1601 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setRegion(final TypeOfRegion region);", "public void setRegion(String region) {\n this.region = region;\n }", "AREA createAREA();", "@VTID(15)\n excel.Range getLocation();", "@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);", "public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }", "public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}", "public abstract CDasherView.DRect VisibleRegion();", "SemanticRegion<T> outermost();", "public ShowRegionElements getShowRegionAccess() {\n\t\treturn pShowRegion;\n\t}", "public final SphRegion get_cur_region () {\n\t\tif (!( modstate >= MODSTATE_CATALOG )) {\n\t\t\tthrow new IllegalStateException (\"Access to RJGUIModel.cur_region while in state \" + cur_modstate_string());\n\t\t}\n\t\treturn fetch_fcparams.aftershock_search_region;\n\t}", "public Region getCurrentRegion() {\n\n return currentRegion;\n }", "public WorldRegions getWorldRegions()\n {\n return regions;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public int getRegionValue() {\n return region_;\n }", "public Region() {\n initComponents();\n bindingTabel();\n }", "public String getValidRegionDesc();", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "public int getRegionid() {\n\treturn regionid;\n}", "@Test\n public void testSetAndGetRegion() {\n System.out.println(\"getRegion\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getRegion());\n String expResult = \"region\";\n instance.setRegion(expResult);\n String result = instance.getRegion();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getImageUrl());\n assertNull(instance.getOrder());\n assertNull(instance.getPageUrl());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }", "IRegion getLineInformation(int line) throws BadLocationException;", "public void testGetSetRegion() {\n exp = new Experiment(\"10\");\n GeoLocation location = new GeoLocation(50.0, 40.0);\n exp.setRegion(location);\n assertEquals(\"get/setRegion does not work\", 50.0, exp.getRegion().getLat());\n assertEquals(\"get/setRegion does not work\", 40.0, exp.getRegion().getLon());\n }", "@Nullable public abstract URI region();", "public java.lang.String getRegionname() {\n\treturn regionname;\n}", "public void startRegionGrowMode() {\n regionGrowMode = true;\n }", "public String getRegionno() {\n return regionno;\n }", "public String getRegionName() {\r\n return regionName;\r\n }", "@Override\r\n\tpublic void getROI() {\n\t\t\r\n\t}", "public String getRegionNo() {\n return regionNo;\n }", "void drawRegion (double b, double e) {\n begT = b; endT = e;\n drawStuff (img.getGraphics ());\n }", "public void toggleRegion(){\n\t\tif(getRegion() == regionNormal)\n\t\t\tsetRegion(regionDown);\n\t\t\n\t\telse if(getRegion() == regionDown)\n\t\t\tsetRegion(regionNormal);\t\t\n\t}", "@Method(selector = \"setRegion:animated:\")\n public native void setRegion(@ByVal MKCoordinateRegion region, boolean animated);", "public void setLiveRegion(int mode) {\n/* 1228 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "interface Blank\n extends GroupableResource.DefinitionWithRegion<WithGroup> {\n }", "public String getRegionName() {\n return regionName;\n }", "public int getRegionValue() {\n return region_;\n }", "public java.lang.String getREGION()\n {\n \n return __REGION;\n }", "public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }", "public void setC_Region_ID (int C_Region_ID);", "WithResourceGroup withRegion(Region location);", "WithResourceGroup withRegion(Region location);", "interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }" ]
[ "0.76021767", "0.76021767", "0.76021767", "0.76021767", "0.6966356", "0.6792615", "0.67500347", "0.66628915", "0.66189015", "0.6571791", "0.6562688", "0.64458966", "0.6429574", "0.6429574", "0.6342011", "0.6342011", "0.63391596", "0.6325011", "0.6319425", "0.6319425", "0.6319425", "0.6308475", "0.6306381", "0.6306381", "0.6291122", "0.6280696", "0.6235088", "0.6231951", "0.6231951", "0.6231951", "0.6231951", "0.62158257", "0.6213081", "0.6213081", "0.6213081", "0.6213081", "0.6213081", "0.62061775", "0.61818063", "0.61818063", "0.61818063", "0.61638117", "0.61531895", "0.6099592", "0.6073861", "0.6062898", "0.6062588", "0.6062588", "0.6062588", "0.6038409", "0.60382366", "0.6025567", "0.59957826", "0.5958573", "0.5947876", "0.59394956", "0.5905814", "0.5905734", "0.588166", "0.58495224", "0.579913", "0.57764983", "0.57316566", "0.5723373", "0.5672844", "0.5657737", "0.5657507", "0.5654613", "0.56466156", "0.5629802", "0.56043524", "0.5603175", "0.5545829", "0.5541994", "0.5537496", "0.5537496", "0.5532824", "0.5507185", "0.5493917", "0.54866916", "0.5485746", "0.54819745", "0.5480706", "0.5471885", "0.5468661", "0.5462177", "0.5458586", "0.54566735", "0.54565746", "0.5454824", "0.54545474", "0.5445418", "0.54429173", "0.54359925", "0.54312265", "0.5430637", "0.54247135", "0.5410422", "0.5410422", "0.53945065" ]
0.55344063
76
.HowMe.Region region = 1;
public kr.pik.message.Profile.HowMe.Region getRegion() { kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_); return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Region region();", "Region region();", "Region region();", "Region region();", "IRegion getRegion();", "public void setRegion(String region);", "kr.pik.message.Profile.HowMe.Region getRegion();", "void tempInRegionUI();", "@NotNull\n @Generated\n @Selector(\"region\")\n public native UIRegion region();", "public Region getRegion() {\n return region;\n }", "public TypeOfRegion getRegion();", "@AutoEscape\n public String getRegion();", "WithCreate withRegion(Region location);", "WithCreate withRegion(Region location);", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "@Test\n public void regionTest() {\n // TODO: test region\n }", "public void setRegion(Region region) {\n this.region = region;\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "void addRegion(Region region);", "WithCreate withRegion(String location);", "WithCreate withRegion(String location);", "public void setRegion(String region) {\n this.region = region;\n }", "public EnumRegion getRegion()\n {\n return region;\n }", "int getRegionValue();", "String regionName();", "String regionName();", "String regionName();", "String regionName();", "public int getItuRegion() {\n return localItuRegion;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public Region() { }", "SemanticRegion<T> parent();", "public String getRegion() {\n return this.region;\n }", "public void setRegion(EnumRegion region)\n {\n this.region = region;\n }", "public RegionSample() {\n\t\tsuper();\n\t}", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(CoordinateRadius region);", "public String getRegion() {\n return region;\n }", "public Region() {\n }", "public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}", "public Builder setRegion(kr.pik.message.Profile.HowMe.Region value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n region_ = value.getNumber();\n onChanged();\n return this;\n }", "public CoordinateRadius getRegion();", "public Builder setRegion(String region) {\n/* 1601 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setRegion(final TypeOfRegion region);", "public void setRegion(String region) {\n this.region = region;\n }", "AREA createAREA();", "@VTID(15)\n excel.Range getLocation();", "@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);", "public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }", "public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}", "public abstract CDasherView.DRect VisibleRegion();", "SemanticRegion<T> outermost();", "public ShowRegionElements getShowRegionAccess() {\n\t\treturn pShowRegion;\n\t}", "public final SphRegion get_cur_region () {\n\t\tif (!( modstate >= MODSTATE_CATALOG )) {\n\t\t\tthrow new IllegalStateException (\"Access to RJGUIModel.cur_region while in state \" + cur_modstate_string());\n\t\t}\n\t\treturn fetch_fcparams.aftershock_search_region;\n\t}", "public Region getCurrentRegion() {\n\n return currentRegion;\n }", "public WorldRegions getWorldRegions()\n {\n return regions;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public int getRegionValue() {\n return region_;\n }", "public Region() {\n initComponents();\n bindingTabel();\n }", "public String getValidRegionDesc();", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "public Builder setRegionValue(int value) {\n region_ = value;\n onChanged();\n return this;\n }", "public int getRegionid() {\n\treturn regionid;\n}", "@Test\n public void testSetAndGetRegion() {\n System.out.println(\"getRegion\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getRegion());\n String expResult = \"region\";\n instance.setRegion(expResult);\n String result = instance.getRegion();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getImageUrl());\n assertNull(instance.getOrder());\n assertNull(instance.getPageUrl());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }", "IRegion getLineInformation(int line) throws BadLocationException;", "@Nullable public abstract URI region();", "public void testGetSetRegion() {\n exp = new Experiment(\"10\");\n GeoLocation location = new GeoLocation(50.0, 40.0);\n exp.setRegion(location);\n assertEquals(\"get/setRegion does not work\", 50.0, exp.getRegion().getLat());\n assertEquals(\"get/setRegion does not work\", 40.0, exp.getRegion().getLon());\n }", "public java.lang.String getRegionname() {\n\treturn regionname;\n}", "public void startRegionGrowMode() {\n regionGrowMode = true;\n }", "public String getRegionno() {\n return regionno;\n }", "public String getRegionName() {\r\n return regionName;\r\n }", "@Override\r\n\tpublic void getROI() {\n\t\t\r\n\t}", "public String getRegionNo() {\n return regionNo;\n }", "void drawRegion (double b, double e) {\n begT = b; endT = e;\n drawStuff (img.getGraphics ());\n }", "public void toggleRegion(){\n\t\tif(getRegion() == regionNormal)\n\t\t\tsetRegion(regionDown);\n\t\t\n\t\telse if(getRegion() == regionDown)\n\t\t\tsetRegion(regionNormal);\t\t\n\t}", "@Method(selector = \"setRegion:animated:\")\n public native void setRegion(@ByVal MKCoordinateRegion region, boolean animated);", "public void setLiveRegion(int mode) {\n/* 1228 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "interface Blank\n extends GroupableResource.DefinitionWithRegion<WithGroup> {\n }", "public String getRegionName() {\n return regionName;\n }", "public int getRegionValue() {\n return region_;\n }", "public java.lang.String getREGION()\n {\n \n return __REGION;\n }", "public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }", "public void setC_Region_ID (int C_Region_ID);", "WithResourceGroup withRegion(Region location);", "WithResourceGroup withRegion(Region location);", "interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }" ]
[ "0.76034105", "0.76034105", "0.76034105", "0.76034105", "0.6967613", "0.67925876", "0.6749579", "0.6662819", "0.6619765", "0.6572314", "0.656354", "0.64469886", "0.6429926", "0.6429926", "0.63422984", "0.63422984", "0.6339061", "0.632487", "0.6319832", "0.6319832", "0.6319832", "0.6308871", "0.63071036", "0.63071036", "0.62908727", "0.62814134", "0.62361544", "0.62326896", "0.62326896", "0.62326896", "0.62326896", "0.62166643", "0.621348", "0.621348", "0.621348", "0.621348", "0.621348", "0.62058944", "0.61815614", "0.61815614", "0.61815614", "0.6164301", "0.6153164", "0.6099864", "0.60742396", "0.6062734", "0.6062272", "0.6062272", "0.6062272", "0.6038938", "0.6038785", "0.6025955", "0.5996477", "0.59590256", "0.5949265", "0.5939457", "0.5905987", "0.5905461", "0.5882707", "0.58503395", "0.57993263", "0.5776832", "0.57321894", "0.57236683", "0.56739694", "0.56579804", "0.5657471", "0.5655049", "0.5646993", "0.5630524", "0.560416", "0.5545843", "0.5542075", "0.5537449", "0.5537449", "0.55354875", "0.5533376", "0.5506603", "0.54949945", "0.5486963", "0.5486753", "0.5481991", "0.54798955", "0.54724246", "0.5468858", "0.5462855", "0.54592156", "0.54574424", "0.545733", "0.54551816", "0.5454061", "0.54454976", "0.5443136", "0.5436953", "0.54320085", "0.5429946", "0.54244137", "0.54105836", "0.54105836", "0.53947294" ]
0.560507
70
.HowMe.Region region = 1;
public Builder setRegion(kr.pik.message.Profile.HowMe.Region value) { if (value == null) { throw new NullPointerException(); } region_ = value.getNumber(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Region region();", "Region region();", "Region region();", "Region region();", "IRegion getRegion();", "public void setRegion(String region);", "kr.pik.message.Profile.HowMe.Region getRegion();", "void tempInRegionUI();", "@NotNull\n @Generated\n @Selector(\"region\")\n public native UIRegion region();", "public Region getRegion() {\n return region;\n }", "public TypeOfRegion getRegion();", "@AutoEscape\n public String getRegion();", "WithCreate withRegion(Region location);", "WithCreate withRegion(Region location);", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "@Test\n public void regionTest() {\n // TODO: test region\n }", "public void setRegion(Region region) {\n this.region = region;\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "void addRegion(Region region);", "WithCreate withRegion(String location);", "WithCreate withRegion(String location);", "public void setRegion(String region) {\n this.region = region;\n }", "public EnumRegion getRegion()\n {\n return region;\n }", "int getRegionValue();", "String regionName();", "String regionName();", "String regionName();", "String regionName();", "public int getItuRegion() {\n return localItuRegion;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public Region() { }", "SemanticRegion<T> parent();", "public String getRegion() {\n return this.region;\n }", "public void setRegion(EnumRegion region)\n {\n this.region = region;\n }", "public RegionSample() {\n\t\tsuper();\n\t}", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(CoordinateRadius region);", "public String getRegion() {\n return region;\n }", "public Region() {\n }", "public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}", "public CoordinateRadius getRegion();", "public Builder setRegion(String region) {\n/* 1601 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setRegion(final TypeOfRegion region);", "public void setRegion(String region) {\n this.region = region;\n }", "AREA createAREA();", "@VTID(15)\n excel.Range getLocation();", "@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);", "public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }", "public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}", "public abstract CDasherView.DRect VisibleRegion();", "SemanticRegion<T> outermost();", "public ShowRegionElements getShowRegionAccess() {\n\t\treturn pShowRegion;\n\t}", "public final SphRegion get_cur_region () {\n\t\tif (!( modstate >= MODSTATE_CATALOG )) {\n\t\t\tthrow new IllegalStateException (\"Access to RJGUIModel.cur_region while in state \" + cur_modstate_string());\n\t\t}\n\t\treturn fetch_fcparams.aftershock_search_region;\n\t}", "public Region getCurrentRegion() {\n\n return currentRegion;\n }", "public WorldRegions getWorldRegions()\n {\n return regions;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public int getRegionValue() {\n return region_;\n }", "public Region() {\n initComponents();\n bindingTabel();\n }", "public String getValidRegionDesc();", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "public Builder setRegionValue(int value) {\n region_ = value;\n onChanged();\n return this;\n }", "public int getRegionid() {\n\treturn regionid;\n}", "@Test\n public void testSetAndGetRegion() {\n System.out.println(\"getRegion\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getRegion());\n String expResult = \"region\";\n instance.setRegion(expResult);\n String result = instance.getRegion();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getImageUrl());\n assertNull(instance.getOrder());\n assertNull(instance.getPageUrl());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }", "IRegion getLineInformation(int line) throws BadLocationException;", "@Nullable public abstract URI region();", "public void testGetSetRegion() {\n exp = new Experiment(\"10\");\n GeoLocation location = new GeoLocation(50.0, 40.0);\n exp.setRegion(location);\n assertEquals(\"get/setRegion does not work\", 50.0, exp.getRegion().getLat());\n assertEquals(\"get/setRegion does not work\", 40.0, exp.getRegion().getLon());\n }", "public java.lang.String getRegionname() {\n\treturn regionname;\n}", "public void startRegionGrowMode() {\n regionGrowMode = true;\n }", "public String getRegionno() {\n return regionno;\n }", "public String getRegionName() {\r\n return regionName;\r\n }", "@Override\r\n\tpublic void getROI() {\n\t\t\r\n\t}", "public String getRegionNo() {\n return regionNo;\n }", "void drawRegion (double b, double e) {\n begT = b; endT = e;\n drawStuff (img.getGraphics ());\n }", "public void toggleRegion(){\n\t\tif(getRegion() == regionNormal)\n\t\t\tsetRegion(regionDown);\n\t\t\n\t\telse if(getRegion() == regionDown)\n\t\t\tsetRegion(regionNormal);\t\t\n\t}", "@Method(selector = \"setRegion:animated:\")\n public native void setRegion(@ByVal MKCoordinateRegion region, boolean animated);", "public void setLiveRegion(int mode) {\n/* 1228 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "interface Blank\n extends GroupableResource.DefinitionWithRegion<WithGroup> {\n }", "public String getRegionName() {\n return regionName;\n }", "public int getRegionValue() {\n return region_;\n }", "public java.lang.String getREGION()\n {\n \n return __REGION;\n }", "public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }", "public void setC_Region_ID (int C_Region_ID);", "WithResourceGroup withRegion(Region location);", "WithResourceGroup withRegion(Region location);", "interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }" ]
[ "0.76034105", "0.76034105", "0.76034105", "0.76034105", "0.6967613", "0.67925876", "0.6749579", "0.6662819", "0.6619765", "0.6572314", "0.656354", "0.64469886", "0.6429926", "0.6429926", "0.63422984", "0.63422984", "0.6339061", "0.632487", "0.6319832", "0.6319832", "0.6319832", "0.6308871", "0.63071036", "0.63071036", "0.62908727", "0.62814134", "0.62361544", "0.62326896", "0.62326896", "0.62326896", "0.62326896", "0.62166643", "0.621348", "0.621348", "0.621348", "0.621348", "0.621348", "0.62058944", "0.61815614", "0.61815614", "0.61815614", "0.6164301", "0.6153164", "0.6099864", "0.60742396", "0.6062734", "0.6062272", "0.6062272", "0.6062272", "0.6038938", "0.6038785", "0.6025955", "0.5996477", "0.5949265", "0.5939457", "0.5905987", "0.5905461", "0.5882707", "0.58503395", "0.57993263", "0.5776832", "0.57321894", "0.57236683", "0.56739694", "0.56579804", "0.5657471", "0.5655049", "0.5646993", "0.5630524", "0.560507", "0.560416", "0.5545843", "0.5542075", "0.5537449", "0.5537449", "0.55354875", "0.5533376", "0.5506603", "0.54949945", "0.5486963", "0.5486753", "0.5481991", "0.54798955", "0.54724246", "0.5468858", "0.5462855", "0.54592156", "0.54574424", "0.545733", "0.54551816", "0.5454061", "0.54454976", "0.5443136", "0.5436953", "0.54320085", "0.5429946", "0.54244137", "0.54105836", "0.54105836", "0.53947294" ]
0.59590256
53
.HowMe.Region region = 1;
public Builder clearRegion() { region_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Region region();", "Region region();", "Region region();", "Region region();", "IRegion getRegion();", "public void setRegion(String region);", "kr.pik.message.Profile.HowMe.Region getRegion();", "void tempInRegionUI();", "@NotNull\n @Generated\n @Selector(\"region\")\n public native UIRegion region();", "public Region getRegion() {\n return region;\n }", "public TypeOfRegion getRegion();", "@AutoEscape\n public String getRegion();", "WithCreate withRegion(Region location);", "WithCreate withRegion(Region location);", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "@Test\n public void regionTest() {\n // TODO: test region\n }", "public void setRegion(Region region) {\n this.region = region;\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "void addRegion(Region region);", "WithCreate withRegion(String location);", "WithCreate withRegion(String location);", "public void setRegion(String region) {\n this.region = region;\n }", "public EnumRegion getRegion()\n {\n return region;\n }", "int getRegionValue();", "String regionName();", "String regionName();", "String regionName();", "String regionName();", "public int getItuRegion() {\n return localItuRegion;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public Region() { }", "SemanticRegion<T> parent();", "public String getRegion() {\n return this.region;\n }", "public void setRegion(EnumRegion region)\n {\n this.region = region;\n }", "public RegionSample() {\n\t\tsuper();\n\t}", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(CoordinateRadius region);", "public String getRegion() {\n return region;\n }", "public Region() {\n }", "public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}", "public Builder setRegion(kr.pik.message.Profile.HowMe.Region value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n region_ = value.getNumber();\n onChanged();\n return this;\n }", "public CoordinateRadius getRegion();", "public Builder setRegion(String region) {\n/* 1601 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setRegion(final TypeOfRegion region);", "public void setRegion(String region) {\n this.region = region;\n }", "AREA createAREA();", "@VTID(15)\n excel.Range getLocation();", "@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);", "public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }", "public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}", "public abstract CDasherView.DRect VisibleRegion();", "SemanticRegion<T> outermost();", "public ShowRegionElements getShowRegionAccess() {\n\t\treturn pShowRegion;\n\t}", "public final SphRegion get_cur_region () {\n\t\tif (!( modstate >= MODSTATE_CATALOG )) {\n\t\t\tthrow new IllegalStateException (\"Access to RJGUIModel.cur_region while in state \" + cur_modstate_string());\n\t\t}\n\t\treturn fetch_fcparams.aftershock_search_region;\n\t}", "public Region getCurrentRegion() {\n\n return currentRegion;\n }", "public WorldRegions getWorldRegions()\n {\n return regions;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public int getRegionValue() {\n return region_;\n }", "public Region() {\n initComponents();\n bindingTabel();\n }", "public String getValidRegionDesc();", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }", "public Builder setRegionValue(int value) {\n region_ = value;\n onChanged();\n return this;\n }", "public int getRegionid() {\n\treturn regionid;\n}", "@Test\n public void testSetAndGetRegion() {\n System.out.println(\"getRegion\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getRegion());\n String expResult = \"region\";\n instance.setRegion(expResult);\n String result = instance.getRegion();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getImageUrl());\n assertNull(instance.getOrder());\n assertNull(instance.getPageUrl());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }", "IRegion getLineInformation(int line) throws BadLocationException;", "@Nullable public abstract URI region();", "public void testGetSetRegion() {\n exp = new Experiment(\"10\");\n GeoLocation location = new GeoLocation(50.0, 40.0);\n exp.setRegion(location);\n assertEquals(\"get/setRegion does not work\", 50.0, exp.getRegion().getLat());\n assertEquals(\"get/setRegion does not work\", 40.0, exp.getRegion().getLon());\n }", "public java.lang.String getRegionname() {\n\treturn regionname;\n}", "public void startRegionGrowMode() {\n regionGrowMode = true;\n }", "public String getRegionno() {\n return regionno;\n }", "public String getRegionName() {\r\n return regionName;\r\n }", "@Override\r\n\tpublic void getROI() {\n\t\t\r\n\t}", "public String getRegionNo() {\n return regionNo;\n }", "void drawRegion (double b, double e) {\n begT = b; endT = e;\n drawStuff (img.getGraphics ());\n }", "public void toggleRegion(){\n\t\tif(getRegion() == regionNormal)\n\t\t\tsetRegion(regionDown);\n\t\t\n\t\telse if(getRegion() == regionDown)\n\t\t\tsetRegion(regionNormal);\t\t\n\t}", "@Method(selector = \"setRegion:animated:\")\n public native void setRegion(@ByVal MKCoordinateRegion region, boolean animated);", "public void setLiveRegion(int mode) {\n/* 1228 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "interface Blank\n extends GroupableResource.DefinitionWithRegion<WithGroup> {\n }", "public String getRegionName() {\n return regionName;\n }", "public int getRegionValue() {\n return region_;\n }", "public java.lang.String getREGION()\n {\n \n return __REGION;\n }", "public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }", "public void setC_Region_ID (int C_Region_ID);", "WithResourceGroup withRegion(Region location);", "WithResourceGroup withRegion(Region location);", "interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }" ]
[ "0.76034105", "0.76034105", "0.76034105", "0.76034105", "0.6967613", "0.67925876", "0.6749579", "0.6662819", "0.6619765", "0.6572314", "0.656354", "0.64469886", "0.6429926", "0.6429926", "0.63422984", "0.63422984", "0.6339061", "0.632487", "0.6319832", "0.6319832", "0.6319832", "0.6308871", "0.63071036", "0.63071036", "0.62908727", "0.62814134", "0.62361544", "0.62326896", "0.62326896", "0.62326896", "0.62326896", "0.62166643", "0.621348", "0.621348", "0.621348", "0.621348", "0.621348", "0.62058944", "0.61815614", "0.61815614", "0.61815614", "0.6164301", "0.6153164", "0.6099864", "0.60742396", "0.6062734", "0.6062272", "0.6062272", "0.6062272", "0.6038938", "0.6038785", "0.6025955", "0.5996477", "0.59590256", "0.5949265", "0.5939457", "0.5905987", "0.5905461", "0.5882707", "0.58503395", "0.57993263", "0.5776832", "0.57321894", "0.57236683", "0.56739694", "0.56579804", "0.5657471", "0.5655049", "0.5646993", "0.5630524", "0.560507", "0.560416", "0.5545843", "0.5542075", "0.5537449", "0.5537449", "0.55354875", "0.5533376", "0.5506603", "0.54949945", "0.5486963", "0.5486753", "0.5481991", "0.54798955", "0.54724246", "0.5468858", "0.5462855", "0.54592156", "0.54574424", "0.545733", "0.54551816", "0.5454061", "0.54454976", "0.5443136", "0.5436953", "0.54320085", "0.5429946", "0.54244137", "0.54105836", "0.54105836", "0.53947294" ]
0.0
-1
bool isOccupation = 2;
public boolean getIsOccupation() { return isOccupation_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getIsOccupation();", "public boolean isOccuped(){\n return this.occuped;\n }", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "public boolean isOccupied(){\n return this.occupied;\n }", "public boolean getIsOccupation() {\n return isOccupation_;\n }", "public void setOccupied(boolean occupied){\n this.occupied = occupied;\n }", "public void setOccupancy(boolean occupancy) {\n\t\tthis.occupied = occupancy;\n\t}", "protected boolean isOccupied(){\n\t\treturn occupied;\n\t}", "public void setOccupied(boolean b) {\n\t\tisOccupied = b; \n\t}", "public void setOccupied(boolean isOccupied) {\n\t\tthis.isOccupied = isOccupied;\n\t}", "void updateOccupancy() {\n\t\toccupied = !occupied;\n\t}", "public Builder setIsOccupation(boolean value) {\n \n isOccupation_ = value;\n onChanged();\n return this;\n }", "public boolean getOccupied() {\n\t\treturn isOccupied; \n\t}", "int getOccupation();", "int getOccupation();", "int getOccupation();", "int getOccupation();", "int getOccupation();", "public int isOccupied() {\r\n\t\treturn occupied;\r\n\t}", "public boolean isOccupied() {\n\t\treturn isOccupied;\n\t}", "public boolean isOccupied() {\n\t\treturn isOccupied;\n\t}", "public boolean IsOccupied() {\n\n\t\treturn occupied;\n\t}", "public boolean isOccupied() {\r\n\t\treturn isOccupied;\r\n\t}", "public boolean isOccupied() {\r\n\t\treturn isOccupied;\r\n\t}", "public boolean isKing(){return this.king;}", "public boolean isOccupied(){\n \t\treturn occupiedSeconds > 0;\n \t}", "public void setOccupied(Boolean occupied) {\n\t\tthis.occupied = occupied;\n\t}", "Boolean getIndemnity();", "boolean isBeating();", "Boolean isBoss();", "boolean isInactive() {\n/* 4818 */ return this.inactive;\n/* */ }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean CanBuyRoad();", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public void setOccupancy(int value) {\n this.occupancy = value;\n }", "public void kinged(){this.king = true;}", "public boolean isBooked(){\n return booked;\n }", "boolean outOfSight();", "public boolean isLegOut()\n{\n if (jumpState == 1)\n return true;\n return false;\n}", "public int getOccupancy() {\n return occupancy;\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isVacant() {\r\n\treturn !isOccupied() || !isAvailable();\r\n }", "public boolean is_shot(){\n \treturn this.shot;\n }", "public boolean isFood(){\n\t\treturn foodFlag;\n\t}", "public boolean isOcuppied() {\n return ocuppied;\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasEyes();", "public boolean isOccupied() {\n return piece != null;\n }", "public void buyFarm(){\n bought = !bought;\n }", "public boolean isWalking(){\n if (jumpState < 2)\n return true;\n else\n return false;\n}", "boolean isFullHouse();", "public int getOccupied() {\n return occupied;\n }", "boolean isOccupiedByAnimal(Vector2d position);", "public boolean isOccupied() {\n\t\treturn piece != null;\n\t}", "public boolean getHIPPAWaiver(){return this.HIPPAWaiver;}", "static void primitiveBoolean() {\n\n double coveragerByInsurance = 0.8;\n double billAmount = 1000.0;\n double amountPaidByInsurance = 0.0;\n double amountPaidByPatient = billAmount;\n if (isInsured) {\n amountPaidByInsurance = billAmount * coveragerByInsurance;\n amountPaidByPatient = billAmount - amountPaidByInsurance;\n }\n System.out.println(\"AmountPaidByInsurance=\" + amountPaidByInsurance);\n System.out.println(\"AmountPaidBypatient=\" + amountPaidByPatient);\n }", "public void setOccupied(int occupied) {\n this.occupied = occupied;\n }", "boolean hasAccY();", "public boolean isJumping(){\n if (jumpState == 2)\n return true;\n return false;\n\n}", "boolean hasStartingHadithNo();", "boolean isSetStraight();", "public boolean getAvailability(){\n return availabile;\n }", "boolean hasReqardTypeFifteen();", "boolean hasHasInjury();", "boolean isTestEligible();", "public boolean isOccupied(int x, int y){\r\n\t\tif(myBoard.carrier.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.battleship.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.cruiser.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.submarine.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.patrolboat.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public boolean isStudent(){\n return student;\n }", "public boolean isStudent(){\n return student;\n }", "public boolean isOccupied() {\n return !(getLease() == null);\r\n }", "boolean getB21();", "public void setAlive(boolean x){\n \talive = x;\r\n }", "public boolean isGateFull(){return GateFull;}", "boolean getB23();", "public boolean isOccupied() {\r\n\treturn character != null;\r\n }", "public boolean estaVacia(){\n if(darTamanio==0){\n return true;\n } \n else{\n return false;\n }\n}", "boolean hasResidentYn();", "boolean hasParking();", "int isActive();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isParking();", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public void battleOver()\r\n {\r\n isBattleOver = true;\r\n }", "public int getOccupation() {\n return occupation_;\n }", "public boolean isRaining()\n {\n return raining;\n }", "boolean land();", "boolean getB20();", "boolean isCounting();" ]
[ "0.7861186", "0.74756175", "0.73210126", "0.73210126", "0.73210126", "0.73210126", "0.73210126", "0.70886594", "0.7031819", "0.67243195", "0.6703081", "0.66117656", "0.65973467", "0.6572111", "0.65036863", "0.6483012", "0.6481155", "0.64171124", "0.64171124", "0.64171124", "0.64171124", "0.64171124", "0.6325097", "0.63089997", "0.63089997", "0.6307255", "0.63014376", "0.63014376", "0.62713474", "0.62512976", "0.6234035", "0.602852", "0.5997325", "0.597249", "0.595961", "0.593993", "0.59392494", "0.59392494", "0.5884922", "0.58794796", "0.58790505", "0.58790505", "0.58640075", "0.5848018", "0.582584", "0.58191437", "0.5817053", "0.58118", "0.578463", "0.57842135", "0.57834375", "0.5768585", "0.57677853", "0.5748983", "0.57471377", "0.574712", "0.57461625", "0.5741031", "0.57279074", "0.56990165", "0.5695661", "0.5680463", "0.5670619", "0.56631047", "0.56535816", "0.564665", "0.5641378", "0.5634803", "0.56243616", "0.5622802", "0.5620406", "0.5604795", "0.55963254", "0.55959594", "0.55887645", "0.55839837", "0.55799395", "0.55799395", "0.55702436", "0.5566748", "0.5566346", "0.5555548", "0.5550792", "0.5545495", "0.55413395", "0.55118304", "0.55091876", "0.55021787", "0.5500107", "0.5498083", "0.54922116", "0.54922116", "0.5491788", "0.5491788", "0.5491303", "0.5491272", "0.54888797", "0.5485228", "0.547783", "0.5475243" ]
0.6893283
9
bool isOccupation = 2;
public Builder setIsOccupation(boolean value) { isOccupation_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getIsOccupation();", "public boolean isOccuped(){\n return this.occuped;\n }", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "public boolean isOccupied(){\n return this.occupied;\n }", "public boolean getIsOccupation() {\n return isOccupation_;\n }", "public boolean getIsOccupation() {\n return isOccupation_;\n }", "public void setOccupied(boolean occupied){\n this.occupied = occupied;\n }", "public void setOccupancy(boolean occupancy) {\n\t\tthis.occupied = occupancy;\n\t}", "protected boolean isOccupied(){\n\t\treturn occupied;\n\t}", "public void setOccupied(boolean b) {\n\t\tisOccupied = b; \n\t}", "public void setOccupied(boolean isOccupied) {\n\t\tthis.isOccupied = isOccupied;\n\t}", "void updateOccupancy() {\n\t\toccupied = !occupied;\n\t}", "public boolean getOccupied() {\n\t\treturn isOccupied; \n\t}", "int getOccupation();", "int getOccupation();", "int getOccupation();", "int getOccupation();", "int getOccupation();", "public int isOccupied() {\r\n\t\treturn occupied;\r\n\t}", "public boolean isOccupied() {\n\t\treturn isOccupied;\n\t}", "public boolean isOccupied() {\n\t\treturn isOccupied;\n\t}", "public boolean IsOccupied() {\n\n\t\treturn occupied;\n\t}", "public boolean isOccupied() {\r\n\t\treturn isOccupied;\r\n\t}", "public boolean isOccupied() {\r\n\t\treturn isOccupied;\r\n\t}", "public boolean isKing(){return this.king;}", "public boolean isOccupied(){\n \t\treturn occupiedSeconds > 0;\n \t}", "public void setOccupied(Boolean occupied) {\n\t\tthis.occupied = occupied;\n\t}", "Boolean getIndemnity();", "boolean isBeating();", "Boolean isBoss();", "boolean isInactive() {\n/* 4818 */ return this.inactive;\n/* */ }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean CanBuyRoad();", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public void setOccupancy(int value) {\n this.occupancy = value;\n }", "public void kinged(){this.king = true;}", "public boolean isBooked(){\n return booked;\n }", "boolean outOfSight();", "public boolean isLegOut()\n{\n if (jumpState == 1)\n return true;\n return false;\n}", "public int getOccupancy() {\n return occupancy;\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isVacant() {\r\n\treturn !isOccupied() || !isAvailable();\r\n }", "public boolean is_shot(){\n \treturn this.shot;\n }", "public boolean isFood(){\n\t\treturn foodFlag;\n\t}", "public boolean isOcuppied() {\n return ocuppied;\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasEyes();", "public boolean isOccupied() {\n return piece != null;\n }", "public void buyFarm(){\n bought = !bought;\n }", "public boolean isWalking(){\n if (jumpState < 2)\n return true;\n else\n return false;\n}", "boolean isFullHouse();", "public int getOccupied() {\n return occupied;\n }", "boolean isOccupiedByAnimal(Vector2d position);", "public boolean isOccupied() {\n\t\treturn piece != null;\n\t}", "public boolean getHIPPAWaiver(){return this.HIPPAWaiver;}", "static void primitiveBoolean() {\n\n double coveragerByInsurance = 0.8;\n double billAmount = 1000.0;\n double amountPaidByInsurance = 0.0;\n double amountPaidByPatient = billAmount;\n if (isInsured) {\n amountPaidByInsurance = billAmount * coveragerByInsurance;\n amountPaidByPatient = billAmount - amountPaidByInsurance;\n }\n System.out.println(\"AmountPaidByInsurance=\" + amountPaidByInsurance);\n System.out.println(\"AmountPaidBypatient=\" + amountPaidByPatient);\n }", "public void setOccupied(int occupied) {\n this.occupied = occupied;\n }", "boolean hasAccY();", "public boolean isJumping(){\n if (jumpState == 2)\n return true;\n return false;\n\n}", "boolean hasStartingHadithNo();", "boolean isSetStraight();", "public boolean getAvailability(){\n return availabile;\n }", "boolean hasReqardTypeFifteen();", "boolean hasHasInjury();", "boolean isTestEligible();", "public boolean isOccupied(int x, int y){\r\n\t\tif(myBoard.carrier.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.battleship.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.cruiser.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.submarine.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.patrolboat.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public boolean isStudent(){\n return student;\n }", "public boolean isStudent(){\n return student;\n }", "public boolean isOccupied() {\n return !(getLease() == null);\r\n }", "boolean getB21();", "public void setAlive(boolean x){\n \talive = x;\r\n }", "public boolean isGateFull(){return GateFull;}", "boolean getB23();", "public boolean isOccupied() {\r\n\treturn character != null;\r\n }", "public boolean estaVacia(){\n if(darTamanio==0){\n return true;\n } \n else{\n return false;\n }\n}", "boolean hasResidentYn();", "boolean hasParking();", "int isActive();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isParking();", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public void battleOver()\r\n {\r\n isBattleOver = true;\r\n }", "public int getOccupation() {\n return occupation_;\n }", "public boolean isRaining()\n {\n return raining;\n }", "boolean land();", "boolean getB20();", "boolean isCounting();" ]
[ "0.7861186", "0.74756175", "0.73210126", "0.73210126", "0.73210126", "0.73210126", "0.73210126", "0.70886594", "0.7031819", "0.6893283", "0.67243195", "0.6703081", "0.66117656", "0.65973467", "0.6572111", "0.65036863", "0.6481155", "0.64171124", "0.64171124", "0.64171124", "0.64171124", "0.64171124", "0.6325097", "0.63089997", "0.63089997", "0.6307255", "0.63014376", "0.63014376", "0.62713474", "0.62512976", "0.6234035", "0.602852", "0.5997325", "0.597249", "0.595961", "0.593993", "0.59392494", "0.59392494", "0.5884922", "0.58794796", "0.58790505", "0.58790505", "0.58640075", "0.5848018", "0.582584", "0.58191437", "0.5817053", "0.58118", "0.578463", "0.57842135", "0.57834375", "0.5768585", "0.57677853", "0.5748983", "0.57471377", "0.574712", "0.57461625", "0.5741031", "0.57279074", "0.56990165", "0.5695661", "0.5680463", "0.5670619", "0.56631047", "0.56535816", "0.564665", "0.5641378", "0.5634803", "0.56243616", "0.5622802", "0.5620406", "0.5604795", "0.55963254", "0.55959594", "0.55887645", "0.55839837", "0.55799395", "0.55799395", "0.55702436", "0.5566748", "0.5566346", "0.5555548", "0.5550792", "0.5545495", "0.55413395", "0.55118304", "0.55091876", "0.55021787", "0.5500107", "0.5498083", "0.54922116", "0.54922116", "0.5491788", "0.5491788", "0.5491303", "0.5491272", "0.54888797", "0.5485228", "0.547783", "0.5475243" ]
0.6483012
16
bool isOccupation = 2;
public Builder clearIsOccupation() { isOccupation_ = false; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getIsOccupation();", "public boolean isOccuped(){\n return this.occuped;\n }", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "public boolean isOccupied(){\n return this.occupied;\n }", "public boolean getIsOccupation() {\n return isOccupation_;\n }", "public boolean getIsOccupation() {\n return isOccupation_;\n }", "public void setOccupied(boolean occupied){\n this.occupied = occupied;\n }", "public void setOccupancy(boolean occupancy) {\n\t\tthis.occupied = occupancy;\n\t}", "protected boolean isOccupied(){\n\t\treturn occupied;\n\t}", "public void setOccupied(boolean b) {\n\t\tisOccupied = b; \n\t}", "public void setOccupied(boolean isOccupied) {\n\t\tthis.isOccupied = isOccupied;\n\t}", "void updateOccupancy() {\n\t\toccupied = !occupied;\n\t}", "public Builder setIsOccupation(boolean value) {\n \n isOccupation_ = value;\n onChanged();\n return this;\n }", "public boolean getOccupied() {\n\t\treturn isOccupied; \n\t}", "int getOccupation();", "int getOccupation();", "int getOccupation();", "int getOccupation();", "int getOccupation();", "public int isOccupied() {\r\n\t\treturn occupied;\r\n\t}", "public boolean isOccupied() {\n\t\treturn isOccupied;\n\t}", "public boolean isOccupied() {\n\t\treturn isOccupied;\n\t}", "public boolean IsOccupied() {\n\n\t\treturn occupied;\n\t}", "public boolean isOccupied() {\r\n\t\treturn isOccupied;\r\n\t}", "public boolean isOccupied() {\r\n\t\treturn isOccupied;\r\n\t}", "public boolean isKing(){return this.king;}", "public boolean isOccupied(){\n \t\treturn occupiedSeconds > 0;\n \t}", "public void setOccupied(Boolean occupied) {\n\t\tthis.occupied = occupied;\n\t}", "Boolean getIndemnity();", "boolean isBeating();", "Boolean isBoss();", "boolean isInactive() {\n/* 4818 */ return this.inactive;\n/* */ }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean CanBuyRoad();", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public void setOccupancy(int value) {\n this.occupancy = value;\n }", "public void kinged(){this.king = true;}", "public boolean isBooked(){\n return booked;\n }", "boolean outOfSight();", "public boolean isLegOut()\n{\n if (jumpState == 1)\n return true;\n return false;\n}", "public int getOccupancy() {\n return occupancy;\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isVacant() {\r\n\treturn !isOccupied() || !isAvailable();\r\n }", "public boolean is_shot(){\n \treturn this.shot;\n }", "public boolean isFood(){\n\t\treturn foodFlag;\n\t}", "public boolean isOcuppied() {\n return ocuppied;\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasEyes();", "public boolean isOccupied() {\n return piece != null;\n }", "public void buyFarm(){\n bought = !bought;\n }", "public boolean isWalking(){\n if (jumpState < 2)\n return true;\n else\n return false;\n}", "boolean isFullHouse();", "public int getOccupied() {\n return occupied;\n }", "boolean isOccupiedByAnimal(Vector2d position);", "public boolean isOccupied() {\n\t\treturn piece != null;\n\t}", "public boolean getHIPPAWaiver(){return this.HIPPAWaiver;}", "static void primitiveBoolean() {\n\n double coveragerByInsurance = 0.8;\n double billAmount = 1000.0;\n double amountPaidByInsurance = 0.0;\n double amountPaidByPatient = billAmount;\n if (isInsured) {\n amountPaidByInsurance = billAmount * coveragerByInsurance;\n amountPaidByPatient = billAmount - amountPaidByInsurance;\n }\n System.out.println(\"AmountPaidByInsurance=\" + amountPaidByInsurance);\n System.out.println(\"AmountPaidBypatient=\" + amountPaidByPatient);\n }", "public void setOccupied(int occupied) {\n this.occupied = occupied;\n }", "boolean hasAccY();", "public boolean isJumping(){\n if (jumpState == 2)\n return true;\n return false;\n\n}", "boolean hasStartingHadithNo();", "boolean isSetStraight();", "public boolean getAvailability(){\n return availabile;\n }", "boolean hasReqardTypeFifteen();", "boolean hasHasInjury();", "boolean isTestEligible();", "public boolean isOccupied(int x, int y){\r\n\t\tif(myBoard.carrier.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.battleship.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.cruiser.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.submarine.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\tif(myBoard.patrolboat.get_position(x, y))\r\n\t\t\treturn true;\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public boolean isStudent(){\n return student;\n }", "public boolean isStudent(){\n return student;\n }", "public boolean isOccupied() {\n return !(getLease() == null);\r\n }", "boolean getB21();", "public void setAlive(boolean x){\n \talive = x;\r\n }", "public boolean isGateFull(){return GateFull;}", "boolean getB23();", "public boolean isOccupied() {\r\n\treturn character != null;\r\n }", "public boolean estaVacia(){\n if(darTamanio==0){\n return true;\n } \n else{\n return false;\n }\n}", "boolean hasResidentYn();", "boolean hasParking();", "int isActive();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isParking();", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public int getOccupation() {\n return occupation_;\n }", "public void battleOver()\r\n {\r\n isBattleOver = true;\r\n }", "public int getOccupation() {\n return occupation_;\n }", "public boolean isRaining()\n {\n return raining;\n }", "boolean land();", "boolean getB20();", "boolean isCounting();" ]
[ "0.7861186", "0.74756175", "0.73210126", "0.73210126", "0.73210126", "0.73210126", "0.73210126", "0.70886594", "0.7031819", "0.6893283", "0.67243195", "0.6703081", "0.66117656", "0.65973467", "0.6572111", "0.65036863", "0.6483012", "0.6481155", "0.64171124", "0.64171124", "0.64171124", "0.64171124", "0.64171124", "0.6325097", "0.63089997", "0.63089997", "0.6307255", "0.63014376", "0.63014376", "0.62713474", "0.62512976", "0.6234035", "0.602852", "0.5997325", "0.597249", "0.595961", "0.593993", "0.59392494", "0.59392494", "0.5884922", "0.58794796", "0.58790505", "0.58790505", "0.58640075", "0.5848018", "0.582584", "0.58191437", "0.5817053", "0.58118", "0.578463", "0.57842135", "0.57834375", "0.5768585", "0.57677853", "0.5748983", "0.57471377", "0.574712", "0.57461625", "0.5741031", "0.57279074", "0.56990165", "0.5695661", "0.5680463", "0.5670619", "0.56631047", "0.56535816", "0.564665", "0.5641378", "0.5634803", "0.56243616", "0.5622802", "0.5620406", "0.5604795", "0.55963254", "0.55959594", "0.55887645", "0.55839837", "0.55799395", "0.55799395", "0.55702436", "0.5566748", "0.5566346", "0.5555548", "0.5550792", "0.5545495", "0.55413395", "0.55118304", "0.55091876", "0.55021787", "0.5500107", "0.5498083", "0.54922116", "0.54922116", "0.5491788", "0.5491788", "0.5491303", "0.5491272", "0.54888797", "0.5485228", "0.547783", "0.5475243" ]
0.0
-1
string playTime = 3;
public java.lang.String getPlayTime() { java.lang.Object ref = playTime_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); playTime_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPlayTime();", "public int getPlayStartTime() { return _playStartTime; }", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "public void setPlaySeconds(java.lang.Integer value) {\n this.play_seconds = value;\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "void makePlay(int player) {\n }", "public int getPlay_number() {\n\n return play_number;\n }", "@Override\n\tpublic long getPlaytime() {\n\t\treturn this.playTime;\n\t}", "public double playTimeInSeconds(){\n\t\treturn durationInSeconds;\n\t}", "private String sleepString (int time){\n\t\tString sleepTime;\n\t\tif (time < 10){\n\t\t\tsleepTime = \"0\"+time;\n\t\t} \n\t\telse {\n\t\t\tsleepTime = \"\"+time; \n\t\t}\n\t\treturn sleepTime;\n\t}", "public Builder setPlayTime(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n playTime_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void play(String position, int number) {\n\t\t\n\t}", "int getTimesPlayed (String song_id);", "@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "public void setPlay_number(int play_number) {\n\n this.play_number = play_number;\n }", "public void setPlayer(int play)\n {\n this.player=play;\n }", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n }\n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "public void time(int value) \n{\n runtimes = value;\n}", "public void play() \n{\n s = !s; \n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true)\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n}", "public void play() {\n //Set up the timer if needed\n if (!dataGame.isTrainingMode()) {\n timer = new Timer();\n secondsPassed = 65;\n TimerTask task = new TimerTask() {\n public void run() {\n secondsPassed--;\n //Before the game starts, countdown:\t\t\t\t\t\n if (secondsPassed > 63) {\n dataGame.notifyObserverTime(\"Be ready !\");\n } else if (secondsPassed == 63) {\n dataGame.notifyObserverTime(Integer.toString(3));\n } else if (secondsPassed == 62) {\n dataGame.notifyObserverTime(Integer.toString(2));\n } else if (secondsPassed == 61) {\n dataGame.notifyObserverTime(Integer.toString(1));\n } else if (secondsPassed == 60) {\n dataGame.notifyObserverTime(\"GO !\");\n pickNewWord();\n } else if (secondsPassed == 0) {\n dataGame.notifyObserverTime(\"STOP\");\n stop(false);\n } else {\n dataGame.notifyObserverTime(Integer.toString(secondsPassed));\n }\n }\n };\n timer.scheduleAtFixedRate(task, 100, 1000); //After 100ms, the timer starts, it decreases every seconds\n } else {\n pickNewWord();\n }\n }", "String getPlayer();", "public static String checkPlayFirst() {\r\n\t int randomNumber = (int) Math.floor(Math.random() * 10) % 2;\r\n\t String player = \"\";\r\n\t if ( randomNumber == 0)\r\n\t player = \"Computer\";\r\n\t else\r\n\t player = \"User\";\r\n\r\n\t return player;\r\n\t }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "public String timerPause(){\n return mTimer;\n }", "private void setTime()\n\t{\n\t\t//local variable \n\t\tString rad = JOptionPane.showInputDialog(\"Enter the time spent bicycling: \"); \n\t\t\n\t\t//convert to int\n\t\ttry {\n\t\t\tbikeTime = Integer.parseInt(rad);\n\t\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t}", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public static String time(int time) {\n return time((long)time);\n }", "private void setTxtTimeTotal()\n {\n SimpleDateFormat dinhDangGio= new SimpleDateFormat(\"mm:ss\");\n txtTimeTotal.setText(dinhDangGio.format(mediaPlayer.getDuration()));\n //\n skSong.setMax(mediaPlayer.getDuration());\n }", "public static play() {\n\t\t\n\t}", "public boolean hasPlaySeconds() {\n return fieldSetFlags()[3];\n }", "void setTime(final int time);", "public String getInTime3() {\n\treturn inTime3;\n }", "public void setTime(String time) {\n }", "public void setCurrentPlayTime(long playTime) { throw new RuntimeException(\"Stub!\"); }", "boolean addEasyTimePlayed(long time);", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "void currentTime(double timeInSeconds) {\n execute(\"player.currentTime = \" + timeInSeconds);\n }", "public com.twc.bigdata.views.avro.viewing_info.Builder setPlaySeconds(java.lang.Integer value) {\n validate(fields()[3], value);\n this.play_seconds = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Tea = \"Drink is set to be made at \" + time + \". \";\n }", "public void play(){\n\t\t\n\t}", "public int getPlayBackTime() {\n\t\treturn mPlayer.getDuration();\n\t}", "@Override\n public void run() {\n\n secs++;\n if (secs == 10) {\n tens++;\n secs = 0;\n }\n if (tens == 6) {\n mins++;\n tens = 0;\n secs = 0;\n }\n time = mins + \":\" + tens + \"\" + secs;\n timePlayed.setText(\"Time: \" + time);\n }", "public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }", "public void time(){\n\t\tif(paused){\n\t\t\tpaused = false;\n\t\t\tmusic.play();\n\t\t\tstart = System.nanoTime();\n\t\t} else {\n\t\t\telasped += System.nanoTime() - start;\n\t\t\tstart = System.nanoTime();\n\t\t}\n\t\ttime = (double) elasped/ (double) 1000000000l;\n\t\t//System.out.println(time);\n\t}", "public int sessionTime(String player){\n \t\tif( BeardStat.loginTimes.containsKey(player)){\n \t\t\treturn Integer.parseInt(\"\"+BeardStat.loginTimes.get(player)/1000L);\n \t\t\t\n \t\t}\n \t\treturn 0;\n \t}", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getLastPlayed() {\n\t\treturn levelRunning;\n\t}", "public int getPlayLength()\n\t{\n\t\treturn playbackLength;\n\t}", "public void setBeginTime(String time){beginTime = time;}", "@Test\n public void testSetLabelTextTimeCurrent() {\n System.out.println(\"setLabelTextTimeCurrent\");\n \n String text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:05\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:00\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"GOOOAL!!!\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n }", "public void addPlayTime(final long playTime) {\n\t\tthis.playTime += playTime;\n\t}", "public String getPlayMode()\n {\n return playMode;\n }", "void update(String time);", "public String getTime(){\r\n String time = \"\";\r\n return time;\r\n }", "String sound();", "@Override\r\n\tpublic void onPrepared(MediaPlayer arg0) {\n\t\tint dur = vid.getDuration();\r\n\t\tduration.setText(dur);\r\n\t}", "public String playFromBeginning() {\n currentIndex = 1;\n return \"Playing song 1:\" + songs.get(currentIndex-1);\n }", "public int getPlayedTimes() {\n return playedTimes;\n }", "public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}", "String randomPlayer1GetName(){\n return randomPlayer1;\n }", "@Override\r\n\tprotected String play() \r\n\t{\r\n\t\treturn \"The \" + this.getClass().getSimpleName() + \" Class.\" + \"\\n\" + this.getName() + \" is up!\";\r\n//\t\tSystem.out.println( \"The \" + this.getClass().getSimpleName() + \" Class.\");\r\n//\t\tSystem.out.println( this.getName() + \" is up!\" );\t\r\n\t}", "public void makePlay(String play) {\n if (output == null) {\n output = getOutputWriter();\n }\n\n// System.out.println(\"MakePlay called: \"+play);\n String s = play+\"\\n\";\n output.print(s);\n output.flush();\n\n GameState.increaseCount();\n }", "public static void timeConversion(String time)\r\n {\n\r\n if (ticks >= 0)\r\n {\r\n time = day;\r\n } else if (ticks >= 12000)\r\n {\r\n time = sunset;\r\n } else if (ticks >= 12610)\r\n {\r\n time = dusk;\r\n } else if (ticks >= 17843)\r\n {\r\n time = midnight;\r\n } else if (ticks >= 23041)\r\n {\r\n time = dawn;\r\n }\r\n }", "public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}", "public static void main(String[] args) {\n String ttime = getDurationString(200,45);\n System.out.println(ttime);\n ttime = getDurationString(400);\n System.out.println(ttime);\n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Coffee = \"Drink is set to be made at \" + time + \". \";\n }", "protected void playGame(String str) {\n System.out.format(\"Playing %s\\n\", str);\n }", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\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 playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String player1GetName(){\n return player1;\n }", "public void setTime(String time) {\r\n\t\tthis.time = time;\r\n\t}", "int delay(Player player);", "public static void main(String[] args) {\n\tint seconds= 1 ;\n\tint minutes= 1 ;\n\tint hours= 1 ; \n\t}", "public int getSeconds(){\r\n return Seconds;\r\n }", "@Override\n public void valueChanged(String control_val) {\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }", "static Duration promptForTime() {\n String input;\n\n Duration time;\n System.out.println(\"Enter the player's time (hh:mm:ss.SSS)\");\n System.out.println(\"EX: 1:03:44.256\");\n\n //loops until correct imput calls break;\n while (true) {\n System.out.print(\">\");\n\n if (Menus.reader.hasNext()) {\n input = Menus.reader.nextLine().strip();\n\n //Reformat the input to match ISO standard\n int colonCount = countOccurrences(input, ':');\n if (colonCount == 2) {\n input = input.replaceFirst(\":\", \"H\");\n input = input.replace(':', 'M');\n } else if (colonCount == 1) {\n input = input.replace(':', 'M');\n }\n input = \"PT\" + input + \"S\";\n\n //Parse the input to a duration\n try {\n time = Duration.parse(input);\n break;\n } catch (DateTimeParseException dtp) {\n System.out.println(\"Make sure the format is correct\");\n }\n }\n }\n return time;\n }", "@Override\r\n\tpublic void betPlayValue(int play) {\n\t\trps.setPlay(play);\r\n\t}", "public void setTime(String time) {\n this.time = time;\n }", "public void setTime(String time) {\n\t\tthis.time = time;\n\t}", "long getTimerPref();", "public void newTurnPauseCountdown()\n {\n pauseNewTurn = true;\n pauseNewTurnTimer = 169;\n }", "private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}", "public void setTime(double time) {_time = time;}", "java.lang.String getDuration();", "public void setTime(int time) {\n\t\tthis.time = time;\n\t}", "void playYearOfPlentyCard(String resource1, String resource2);", "private void playAI (int actualAI) {\n }", "public int getPlayState(){\r\n\t\tif(player.getStatus() == BasicPlayer.PLAYING){\r\n\t\t\treturn songsToPlay.isEmpty() ? selectedPreset + 10 : selectedPreset;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "void play ();", "public void setMatchTime(String text) {\n runningMatchTime.setText(text);\n if (!Main.isSimpleMode()) {\n PLC_Sender.getInstance().updatePLC_Time(true);\n }\n }", "public String getTime(){\n return time;\n }", "java.lang.String getWaitTime();", "public String getTimeVariable(){ return common.timeDatapath; }", "String player2GetName(){\n return player2;\n }", "public String autoPlay(int sign) {\n boolean validTurn = false;\n int temp1 = 0;\n int temp2 = 0;\n while (!validTurn) { //select a random empty tile\n temp1 = new Random().nextInt(TTT.getSize());\n temp2 = new Random().nextInt(TTT.getSize());\n validTurn = TTT.safeChangeTile(sign, temp1, temp2);\n }\n return temp1 + \" \" + temp2;\n }", "@Override\n public void onTick(long millisUntilFinished) {\n if (play) {\n\n\n\n\n\n czasomierz.setProgress((int)millisUntilFinished/1000);\n\n czas.setText((int)millisUntilFinished/1000 + \" s\");\n\n }\n\n }", "public void setInTime3(String inTime3) {\n\tthis.inTime3 = inTime3;\n }" ]
[ "0.7073542", "0.63991773", "0.6280141", "0.62648493", "0.6217199", "0.61669713", "0.61478704", "0.6137488", "0.6110173", "0.60211414", "0.601799", "0.5951262", "0.59501123", "0.59206986", "0.59025127", "0.5868111", "0.58587193", "0.5848975", "0.5798889", "0.57697815", "0.5757788", "0.56844586", "0.5679455", "0.56656194", "0.5647411", "0.55933434", "0.55642223", "0.556079", "0.5517708", "0.55124307", "0.5510975", "0.54814804", "0.5477473", "0.54722637", "0.5462465", "0.54499537", "0.54488", "0.54440624", "0.54403055", "0.5402229", "0.5402001", "0.5393085", "0.53911954", "0.5379875", "0.53791046", "0.5376606", "0.5372467", "0.5370817", "0.5361159", "0.53553873", "0.5338421", "0.5327749", "0.53252804", "0.53251684", "0.53231704", "0.5321966", "0.53150517", "0.531302", "0.53111136", "0.5307526", "0.52988213", "0.5294606", "0.5291707", "0.528975", "0.52812207", "0.52778894", "0.5276579", "0.52642494", "0.52615285", "0.52589905", "0.5251296", "0.5249196", "0.52484614", "0.5234155", "0.5226469", "0.52253944", "0.52191156", "0.52129835", "0.520945", "0.52086025", "0.51948744", "0.5188648", "0.51845497", "0.51688546", "0.5166006", "0.51645595", "0.51624244", "0.5158498", "0.5153294", "0.5149663", "0.5144436", "0.51439154", "0.513856", "0.5137665", "0.5136622", "0.51269037", "0.5124735", "0.51231307", "0.5121034", "0.5119104" ]
0.5923836
13
string playTime = 3;
public com.google.protobuf.ByteString getPlayTimeBytes() { java.lang.Object ref = playTime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); playTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPlayTime();", "public int getPlayStartTime() { return _playStartTime; }", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "public void setPlaySeconds(java.lang.Integer value) {\n this.play_seconds = value;\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "void makePlay(int player) {\n }", "public int getPlay_number() {\n\n return play_number;\n }", "@Override\n\tpublic long getPlaytime() {\n\t\treturn this.playTime;\n\t}", "public double playTimeInSeconds(){\n\t\treturn durationInSeconds;\n\t}", "private String sleepString (int time){\n\t\tString sleepTime;\n\t\tif (time < 10){\n\t\t\tsleepTime = \"0\"+time;\n\t\t} \n\t\telse {\n\t\t\tsleepTime = \"\"+time; \n\t\t}\n\t\treturn sleepTime;\n\t}", "public Builder setPlayTime(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n playTime_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void play(String position, int number) {\n\t\t\n\t}", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "int getTimesPlayed (String song_id);", "@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "public void setPlay_number(int play_number) {\n\n this.play_number = play_number;\n }", "public void setPlayer(int play)\n {\n this.player=play;\n }", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n }\n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "public void time(int value) \n{\n runtimes = value;\n}", "public void play() \n{\n s = !s; \n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true)\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n}", "public void play() {\n //Set up the timer if needed\n if (!dataGame.isTrainingMode()) {\n timer = new Timer();\n secondsPassed = 65;\n TimerTask task = new TimerTask() {\n public void run() {\n secondsPassed--;\n //Before the game starts, countdown:\t\t\t\t\t\n if (secondsPassed > 63) {\n dataGame.notifyObserverTime(\"Be ready !\");\n } else if (secondsPassed == 63) {\n dataGame.notifyObserverTime(Integer.toString(3));\n } else if (secondsPassed == 62) {\n dataGame.notifyObserverTime(Integer.toString(2));\n } else if (secondsPassed == 61) {\n dataGame.notifyObserverTime(Integer.toString(1));\n } else if (secondsPassed == 60) {\n dataGame.notifyObserverTime(\"GO !\");\n pickNewWord();\n } else if (secondsPassed == 0) {\n dataGame.notifyObserverTime(\"STOP\");\n stop(false);\n } else {\n dataGame.notifyObserverTime(Integer.toString(secondsPassed));\n }\n }\n };\n timer.scheduleAtFixedRate(task, 100, 1000); //After 100ms, the timer starts, it decreases every seconds\n } else {\n pickNewWord();\n }\n }", "String getPlayer();", "public static String checkPlayFirst() {\r\n\t int randomNumber = (int) Math.floor(Math.random() * 10) % 2;\r\n\t String player = \"\";\r\n\t if ( randomNumber == 0)\r\n\t player = \"Computer\";\r\n\t else\r\n\t player = \"User\";\r\n\r\n\t return player;\r\n\t }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "public String timerPause(){\n return mTimer;\n }", "private void setTime()\n\t{\n\t\t//local variable \n\t\tString rad = JOptionPane.showInputDialog(\"Enter the time spent bicycling: \"); \n\t\t\n\t\t//convert to int\n\t\ttry {\n\t\t\tbikeTime = Integer.parseInt(rad);\n\t\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t}", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public static String time(int time) {\n return time((long)time);\n }", "private void setTxtTimeTotal()\n {\n SimpleDateFormat dinhDangGio= new SimpleDateFormat(\"mm:ss\");\n txtTimeTotal.setText(dinhDangGio.format(mediaPlayer.getDuration()));\n //\n skSong.setMax(mediaPlayer.getDuration());\n }", "public static play() {\n\t\t\n\t}", "public boolean hasPlaySeconds() {\n return fieldSetFlags()[3];\n }", "void setTime(final int time);", "public String getInTime3() {\n\treturn inTime3;\n }", "public void setTime(String time) {\n }", "public void setCurrentPlayTime(long playTime) { throw new RuntimeException(\"Stub!\"); }", "boolean addEasyTimePlayed(long time);", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "void currentTime(double timeInSeconds) {\n execute(\"player.currentTime = \" + timeInSeconds);\n }", "public com.twc.bigdata.views.avro.viewing_info.Builder setPlaySeconds(java.lang.Integer value) {\n validate(fields()[3], value);\n this.play_seconds = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Tea = \"Drink is set to be made at \" + time + \". \";\n }", "public void play(){\n\t\t\n\t}", "public int getPlayBackTime() {\n\t\treturn mPlayer.getDuration();\n\t}", "@Override\n public void run() {\n\n secs++;\n if (secs == 10) {\n tens++;\n secs = 0;\n }\n if (tens == 6) {\n mins++;\n tens = 0;\n secs = 0;\n }\n time = mins + \":\" + tens + \"\" + secs;\n timePlayed.setText(\"Time: \" + time);\n }", "public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }", "public void time(){\n\t\tif(paused){\n\t\t\tpaused = false;\n\t\t\tmusic.play();\n\t\t\tstart = System.nanoTime();\n\t\t} else {\n\t\t\telasped += System.nanoTime() - start;\n\t\t\tstart = System.nanoTime();\n\t\t}\n\t\ttime = (double) elasped/ (double) 1000000000l;\n\t\t//System.out.println(time);\n\t}", "public int sessionTime(String player){\n \t\tif( BeardStat.loginTimes.containsKey(player)){\n \t\t\treturn Integer.parseInt(\"\"+BeardStat.loginTimes.get(player)/1000L);\n \t\t\t\n \t\t}\n \t\treturn 0;\n \t}", "public String getLastPlayed() {\n\t\treturn levelRunning;\n\t}", "public int getPlayLength()\n\t{\n\t\treturn playbackLength;\n\t}", "public void setBeginTime(String time){beginTime = time;}", "@Test\n public void testSetLabelTextTimeCurrent() {\n System.out.println(\"setLabelTextTimeCurrent\");\n \n String text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:05\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:00\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"GOOOAL!!!\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n }", "public void addPlayTime(final long playTime) {\n\t\tthis.playTime += playTime;\n\t}", "public String getPlayMode()\n {\n return playMode;\n }", "void update(String time);", "public String getTime(){\r\n String time = \"\";\r\n return time;\r\n }", "String sound();", "@Override\r\n\tpublic void onPrepared(MediaPlayer arg0) {\n\t\tint dur = vid.getDuration();\r\n\t\tduration.setText(dur);\r\n\t}", "public String playFromBeginning() {\n currentIndex = 1;\n return \"Playing song 1:\" + songs.get(currentIndex-1);\n }", "public int getPlayedTimes() {\n return playedTimes;\n }", "public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}", "String randomPlayer1GetName(){\n return randomPlayer1;\n }", "@Override\r\n\tprotected String play() \r\n\t{\r\n\t\treturn \"The \" + this.getClass().getSimpleName() + \" Class.\" + \"\\n\" + this.getName() + \" is up!\";\r\n//\t\tSystem.out.println( \"The \" + this.getClass().getSimpleName() + \" Class.\");\r\n//\t\tSystem.out.println( this.getName() + \" is up!\" );\t\r\n\t}", "public void makePlay(String play) {\n if (output == null) {\n output = getOutputWriter();\n }\n\n// System.out.println(\"MakePlay called: \"+play);\n String s = play+\"\\n\";\n output.print(s);\n output.flush();\n\n GameState.increaseCount();\n }", "public static void timeConversion(String time)\r\n {\n\r\n if (ticks >= 0)\r\n {\r\n time = day;\r\n } else if (ticks >= 12000)\r\n {\r\n time = sunset;\r\n } else if (ticks >= 12610)\r\n {\r\n time = dusk;\r\n } else if (ticks >= 17843)\r\n {\r\n time = midnight;\r\n } else if (ticks >= 23041)\r\n {\r\n time = dawn;\r\n }\r\n }", "public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}", "public static void main(String[] args) {\n String ttime = getDurationString(200,45);\n System.out.println(ttime);\n ttime = getDurationString(400);\n System.out.println(ttime);\n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Coffee = \"Drink is set to be made at \" + time + \". \";\n }", "protected void playGame(String str) {\n System.out.format(\"Playing %s\\n\", str);\n }", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\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 playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String player1GetName(){\n return player1;\n }", "public void setTime(String time) {\r\n\t\tthis.time = time;\r\n\t}", "int delay(Player player);", "public static void main(String[] args) {\n\tint seconds= 1 ;\n\tint minutes= 1 ;\n\tint hours= 1 ; \n\t}", "public int getSeconds(){\r\n return Seconds;\r\n }", "@Override\n public void valueChanged(String control_val) {\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }", "static Duration promptForTime() {\n String input;\n\n Duration time;\n System.out.println(\"Enter the player's time (hh:mm:ss.SSS)\");\n System.out.println(\"EX: 1:03:44.256\");\n\n //loops until correct imput calls break;\n while (true) {\n System.out.print(\">\");\n\n if (Menus.reader.hasNext()) {\n input = Menus.reader.nextLine().strip();\n\n //Reformat the input to match ISO standard\n int colonCount = countOccurrences(input, ':');\n if (colonCount == 2) {\n input = input.replaceFirst(\":\", \"H\");\n input = input.replace(':', 'M');\n } else if (colonCount == 1) {\n input = input.replace(':', 'M');\n }\n input = \"PT\" + input + \"S\";\n\n //Parse the input to a duration\n try {\n time = Duration.parse(input);\n break;\n } catch (DateTimeParseException dtp) {\n System.out.println(\"Make sure the format is correct\");\n }\n }\n }\n return time;\n }", "@Override\r\n\tpublic void betPlayValue(int play) {\n\t\trps.setPlay(play);\r\n\t}", "public void setTime(String time) {\n this.time = time;\n }", "public void setTime(String time) {\n\t\tthis.time = time;\n\t}", "long getTimerPref();", "public void newTurnPauseCountdown()\n {\n pauseNewTurn = true;\n pauseNewTurnTimer = 169;\n }", "private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}", "public void setTime(double time) {_time = time;}", "java.lang.String getDuration();", "public void setTime(int time) {\n\t\tthis.time = time;\n\t}", "void playYearOfPlentyCard(String resource1, String resource2);", "private void playAI (int actualAI) {\n }", "public int getPlayState(){\r\n\t\tif(player.getStatus() == BasicPlayer.PLAYING){\r\n\t\t\treturn songsToPlay.isEmpty() ? selectedPreset + 10 : selectedPreset;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "void play ();", "public void setMatchTime(String text) {\n runningMatchTime.setText(text);\n if (!Main.isSimpleMode()) {\n PLC_Sender.getInstance().updatePLC_Time(true);\n }\n }", "public String getTime(){\n return time;\n }", "java.lang.String getWaitTime();", "public String getTimeVariable(){ return common.timeDatapath; }", "String player2GetName(){\n return player2;\n }", "public String autoPlay(int sign) {\n boolean validTurn = false;\n int temp1 = 0;\n int temp2 = 0;\n while (!validTurn) { //select a random empty tile\n temp1 = new Random().nextInt(TTT.getSize());\n temp2 = new Random().nextInt(TTT.getSize());\n validTurn = TTT.safeChangeTile(sign, temp1, temp2);\n }\n return temp1 + \" \" + temp2;\n }", "@Override\n public void onTick(long millisUntilFinished) {\n if (play) {\n\n\n\n\n\n czasomierz.setProgress((int)millisUntilFinished/1000);\n\n czas.setText((int)millisUntilFinished/1000 + \" s\");\n\n }\n\n }", "public void setInTime3(String inTime3) {\n\tthis.inTime3 = inTime3;\n }" ]
[ "0.7073542", "0.63991773", "0.6280141", "0.62648493", "0.6217199", "0.61669713", "0.61478704", "0.6137488", "0.6110173", "0.60211414", "0.601799", "0.5951262", "0.59501123", "0.5923836", "0.59206986", "0.59025127", "0.5868111", "0.58587193", "0.5848975", "0.5798889", "0.57697815", "0.5757788", "0.56844586", "0.5679455", "0.56656194", "0.5647411", "0.55933434", "0.55642223", "0.556079", "0.5517708", "0.55124307", "0.5510975", "0.54814804", "0.5477473", "0.54722637", "0.5462465", "0.54499537", "0.54488", "0.54440624", "0.54403055", "0.5402229", "0.5402001", "0.5393085", "0.53911954", "0.5379875", "0.53791046", "0.5376606", "0.5372467", "0.5370817", "0.53553873", "0.5338421", "0.5327749", "0.53252804", "0.53251684", "0.53231704", "0.5321966", "0.53150517", "0.531302", "0.53111136", "0.5307526", "0.52988213", "0.5294606", "0.5291707", "0.528975", "0.52812207", "0.52778894", "0.5276579", "0.52642494", "0.52615285", "0.52589905", "0.5251296", "0.5249196", "0.52484614", "0.5234155", "0.5226469", "0.52253944", "0.52191156", "0.52129835", "0.520945", "0.52086025", "0.51948744", "0.5188648", "0.51845497", "0.51688546", "0.5166006", "0.51645595", "0.51624244", "0.5158498", "0.5153294", "0.5149663", "0.5144436", "0.51439154", "0.513856", "0.5137665", "0.5136622", "0.51269037", "0.5124735", "0.51231307", "0.5121034", "0.5119104" ]
0.5361159
49
string playTime = 3;
public Builder setPlayTime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } playTime_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPlayTime();", "public int getPlayStartTime() { return _playStartTime; }", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "public void setPlaySeconds(java.lang.Integer value) {\n this.play_seconds = value;\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "void makePlay(int player) {\n }", "public int getPlay_number() {\n\n return play_number;\n }", "@Override\n\tpublic long getPlaytime() {\n\t\treturn this.playTime;\n\t}", "public double playTimeInSeconds(){\n\t\treturn durationInSeconds;\n\t}", "private String sleepString (int time){\n\t\tString sleepTime;\n\t\tif (time < 10){\n\t\t\tsleepTime = \"0\"+time;\n\t\t} \n\t\telse {\n\t\t\tsleepTime = \"\"+time; \n\t\t}\n\t\treturn sleepTime;\n\t}", "@Override\n\tpublic void play(String position, int number) {\n\t\t\n\t}", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "int getTimesPlayed (String song_id);", "@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "public void setPlay_number(int play_number) {\n\n this.play_number = play_number;\n }", "public void setPlayer(int play)\n {\n this.player=play;\n }", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n }\n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "public void time(int value) \n{\n runtimes = value;\n}", "public void play() \n{\n s = !s; \n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true)\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n}", "public void play() {\n //Set up the timer if needed\n if (!dataGame.isTrainingMode()) {\n timer = new Timer();\n secondsPassed = 65;\n TimerTask task = new TimerTask() {\n public void run() {\n secondsPassed--;\n //Before the game starts, countdown:\t\t\t\t\t\n if (secondsPassed > 63) {\n dataGame.notifyObserverTime(\"Be ready !\");\n } else if (secondsPassed == 63) {\n dataGame.notifyObserverTime(Integer.toString(3));\n } else if (secondsPassed == 62) {\n dataGame.notifyObserverTime(Integer.toString(2));\n } else if (secondsPassed == 61) {\n dataGame.notifyObserverTime(Integer.toString(1));\n } else if (secondsPassed == 60) {\n dataGame.notifyObserverTime(\"GO !\");\n pickNewWord();\n } else if (secondsPassed == 0) {\n dataGame.notifyObserverTime(\"STOP\");\n stop(false);\n } else {\n dataGame.notifyObserverTime(Integer.toString(secondsPassed));\n }\n }\n };\n timer.scheduleAtFixedRate(task, 100, 1000); //After 100ms, the timer starts, it decreases every seconds\n } else {\n pickNewWord();\n }\n }", "String getPlayer();", "public static String checkPlayFirst() {\r\n\t int randomNumber = (int) Math.floor(Math.random() * 10) % 2;\r\n\t String player = \"\";\r\n\t if ( randomNumber == 0)\r\n\t player = \"Computer\";\r\n\t else\r\n\t player = \"User\";\r\n\r\n\t return player;\r\n\t }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "public String timerPause(){\n return mTimer;\n }", "private void setTime()\n\t{\n\t\t//local variable \n\t\tString rad = JOptionPane.showInputDialog(\"Enter the time spent bicycling: \"); \n\t\t\n\t\t//convert to int\n\t\ttry {\n\t\t\tbikeTime = Integer.parseInt(rad);\n\t\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t}", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public static String time(int time) {\n return time((long)time);\n }", "private void setTxtTimeTotal()\n {\n SimpleDateFormat dinhDangGio= new SimpleDateFormat(\"mm:ss\");\n txtTimeTotal.setText(dinhDangGio.format(mediaPlayer.getDuration()));\n //\n skSong.setMax(mediaPlayer.getDuration());\n }", "public static play() {\n\t\t\n\t}", "public boolean hasPlaySeconds() {\n return fieldSetFlags()[3];\n }", "void setTime(final int time);", "public String getInTime3() {\n\treturn inTime3;\n }", "public void setTime(String time) {\n }", "public void setCurrentPlayTime(long playTime) { throw new RuntimeException(\"Stub!\"); }", "boolean addEasyTimePlayed(long time);", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "void currentTime(double timeInSeconds) {\n execute(\"player.currentTime = \" + timeInSeconds);\n }", "public com.twc.bigdata.views.avro.viewing_info.Builder setPlaySeconds(java.lang.Integer value) {\n validate(fields()[3], value);\n this.play_seconds = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Tea = \"Drink is set to be made at \" + time + \". \";\n }", "public void play(){\n\t\t\n\t}", "public int getPlayBackTime() {\n\t\treturn mPlayer.getDuration();\n\t}", "@Override\n public void run() {\n\n secs++;\n if (secs == 10) {\n tens++;\n secs = 0;\n }\n if (tens == 6) {\n mins++;\n tens = 0;\n secs = 0;\n }\n time = mins + \":\" + tens + \"\" + secs;\n timePlayed.setText(\"Time: \" + time);\n }", "public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }", "public void time(){\n\t\tif(paused){\n\t\t\tpaused = false;\n\t\t\tmusic.play();\n\t\t\tstart = System.nanoTime();\n\t\t} else {\n\t\t\telasped += System.nanoTime() - start;\n\t\t\tstart = System.nanoTime();\n\t\t}\n\t\ttime = (double) elasped/ (double) 1000000000l;\n\t\t//System.out.println(time);\n\t}", "public int sessionTime(String player){\n \t\tif( BeardStat.loginTimes.containsKey(player)){\n \t\t\treturn Integer.parseInt(\"\"+BeardStat.loginTimes.get(player)/1000L);\n \t\t\t\n \t\t}\n \t\treturn 0;\n \t}", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getLastPlayed() {\n\t\treturn levelRunning;\n\t}", "public int getPlayLength()\n\t{\n\t\treturn playbackLength;\n\t}", "public void setBeginTime(String time){beginTime = time;}", "@Test\n public void testSetLabelTextTimeCurrent() {\n System.out.println(\"setLabelTextTimeCurrent\");\n \n String text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:05\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:00\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"GOOOAL!!!\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n }", "public void addPlayTime(final long playTime) {\n\t\tthis.playTime += playTime;\n\t}", "public String getPlayMode()\n {\n return playMode;\n }", "void update(String time);", "public String getTime(){\r\n String time = \"\";\r\n return time;\r\n }", "String sound();", "@Override\r\n\tpublic void onPrepared(MediaPlayer arg0) {\n\t\tint dur = vid.getDuration();\r\n\t\tduration.setText(dur);\r\n\t}", "public String playFromBeginning() {\n currentIndex = 1;\n return \"Playing song 1:\" + songs.get(currentIndex-1);\n }", "public int getPlayedTimes() {\n return playedTimes;\n }", "public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}", "String randomPlayer1GetName(){\n return randomPlayer1;\n }", "@Override\r\n\tprotected String play() \r\n\t{\r\n\t\treturn \"The \" + this.getClass().getSimpleName() + \" Class.\" + \"\\n\" + this.getName() + \" is up!\";\r\n//\t\tSystem.out.println( \"The \" + this.getClass().getSimpleName() + \" Class.\");\r\n//\t\tSystem.out.println( this.getName() + \" is up!\" );\t\r\n\t}", "public void makePlay(String play) {\n if (output == null) {\n output = getOutputWriter();\n }\n\n// System.out.println(\"MakePlay called: \"+play);\n String s = play+\"\\n\";\n output.print(s);\n output.flush();\n\n GameState.increaseCount();\n }", "public static void timeConversion(String time)\r\n {\n\r\n if (ticks >= 0)\r\n {\r\n time = day;\r\n } else if (ticks >= 12000)\r\n {\r\n time = sunset;\r\n } else if (ticks >= 12610)\r\n {\r\n time = dusk;\r\n } else if (ticks >= 17843)\r\n {\r\n time = midnight;\r\n } else if (ticks >= 23041)\r\n {\r\n time = dawn;\r\n }\r\n }", "public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}", "public static void main(String[] args) {\n String ttime = getDurationString(200,45);\n System.out.println(ttime);\n ttime = getDurationString(400);\n System.out.println(ttime);\n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Coffee = \"Drink is set to be made at \" + time + \". \";\n }", "protected void playGame(String str) {\n System.out.format(\"Playing %s\\n\", str);\n }", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\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 playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String player1GetName(){\n return player1;\n }", "public void setTime(String time) {\r\n\t\tthis.time = time;\r\n\t}", "int delay(Player player);", "public static void main(String[] args) {\n\tint seconds= 1 ;\n\tint minutes= 1 ;\n\tint hours= 1 ; \n\t}", "public int getSeconds(){\r\n return Seconds;\r\n }", "@Override\n public void valueChanged(String control_val) {\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }", "static Duration promptForTime() {\n String input;\n\n Duration time;\n System.out.println(\"Enter the player's time (hh:mm:ss.SSS)\");\n System.out.println(\"EX: 1:03:44.256\");\n\n //loops until correct imput calls break;\n while (true) {\n System.out.print(\">\");\n\n if (Menus.reader.hasNext()) {\n input = Menus.reader.nextLine().strip();\n\n //Reformat the input to match ISO standard\n int colonCount = countOccurrences(input, ':');\n if (colonCount == 2) {\n input = input.replaceFirst(\":\", \"H\");\n input = input.replace(':', 'M');\n } else if (colonCount == 1) {\n input = input.replace(':', 'M');\n }\n input = \"PT\" + input + \"S\";\n\n //Parse the input to a duration\n try {\n time = Duration.parse(input);\n break;\n } catch (DateTimeParseException dtp) {\n System.out.println(\"Make sure the format is correct\");\n }\n }\n }\n return time;\n }", "@Override\r\n\tpublic void betPlayValue(int play) {\n\t\trps.setPlay(play);\r\n\t}", "public void setTime(String time) {\n this.time = time;\n }", "public void setTime(String time) {\n\t\tthis.time = time;\n\t}", "long getTimerPref();", "public void newTurnPauseCountdown()\n {\n pauseNewTurn = true;\n pauseNewTurnTimer = 169;\n }", "private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}", "public void setTime(double time) {_time = time;}", "java.lang.String getDuration();", "public void setTime(int time) {\n\t\tthis.time = time;\n\t}", "void playYearOfPlentyCard(String resource1, String resource2);", "private void playAI (int actualAI) {\n }", "public int getPlayState(){\r\n\t\tif(player.getStatus() == BasicPlayer.PLAYING){\r\n\t\t\treturn songsToPlay.isEmpty() ? selectedPreset + 10 : selectedPreset;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "void play ();", "public void setMatchTime(String text) {\n runningMatchTime.setText(text);\n if (!Main.isSimpleMode()) {\n PLC_Sender.getInstance().updatePLC_Time(true);\n }\n }", "public String getTime(){\n return time;\n }", "java.lang.String getWaitTime();", "public String getTimeVariable(){ return common.timeDatapath; }", "String player2GetName(){\n return player2;\n }", "public String autoPlay(int sign) {\n boolean validTurn = false;\n int temp1 = 0;\n int temp2 = 0;\n while (!validTurn) { //select a random empty tile\n temp1 = new Random().nextInt(TTT.getSize());\n temp2 = new Random().nextInt(TTT.getSize());\n validTurn = TTT.safeChangeTile(sign, temp1, temp2);\n }\n return temp1 + \" \" + temp2;\n }", "@Override\n public void onTick(long millisUntilFinished) {\n if (play) {\n\n\n\n\n\n czasomierz.setProgress((int)millisUntilFinished/1000);\n\n czas.setText((int)millisUntilFinished/1000 + \" s\");\n\n }\n\n }", "public void setInTime3(String inTime3) {\n\tthis.inTime3 = inTime3;\n }" ]
[ "0.7073542", "0.63991773", "0.6280141", "0.62648493", "0.6217199", "0.61669713", "0.61478704", "0.6137488", "0.6110173", "0.60211414", "0.601799", "0.59501123", "0.5923836", "0.59206986", "0.59025127", "0.5868111", "0.58587193", "0.5848975", "0.5798889", "0.57697815", "0.5757788", "0.56844586", "0.5679455", "0.56656194", "0.5647411", "0.55933434", "0.55642223", "0.556079", "0.5517708", "0.55124307", "0.5510975", "0.54814804", "0.5477473", "0.54722637", "0.5462465", "0.54499537", "0.54488", "0.54440624", "0.54403055", "0.5402229", "0.5402001", "0.5393085", "0.53911954", "0.5379875", "0.53791046", "0.5376606", "0.5372467", "0.5370817", "0.5361159", "0.53553873", "0.5338421", "0.5327749", "0.53252804", "0.53251684", "0.53231704", "0.5321966", "0.53150517", "0.531302", "0.53111136", "0.5307526", "0.52988213", "0.5294606", "0.5291707", "0.528975", "0.52812207", "0.52778894", "0.5276579", "0.52642494", "0.52615285", "0.52589905", "0.5251296", "0.5249196", "0.52484614", "0.5234155", "0.5226469", "0.52253944", "0.52191156", "0.52129835", "0.520945", "0.52086025", "0.51948744", "0.5188648", "0.51845497", "0.51688546", "0.5166006", "0.51645595", "0.51624244", "0.5158498", "0.5153294", "0.5149663", "0.5144436", "0.51439154", "0.513856", "0.5137665", "0.5136622", "0.51269037", "0.5124735", "0.51231307", "0.5121034", "0.5119104" ]
0.5951262
11
string playTime = 3;
public Builder clearPlayTime() { playTime_ = getDefaultInstance().getPlayTime(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPlayTime();", "public int getPlayStartTime() { return _playStartTime; }", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "public void setPlaySeconds(java.lang.Integer value) {\n this.play_seconds = value;\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "void makePlay(int player) {\n }", "public int getPlay_number() {\n\n return play_number;\n }", "@Override\n\tpublic long getPlaytime() {\n\t\treturn this.playTime;\n\t}", "public double playTimeInSeconds(){\n\t\treturn durationInSeconds;\n\t}", "private String sleepString (int time){\n\t\tString sleepTime;\n\t\tif (time < 10){\n\t\t\tsleepTime = \"0\"+time;\n\t\t} \n\t\telse {\n\t\t\tsleepTime = \"\"+time; \n\t\t}\n\t\treturn sleepTime;\n\t}", "public Builder setPlayTime(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n playTime_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void play(String position, int number) {\n\t\t\n\t}", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "int getTimesPlayed (String song_id);", "@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "public void setPlay_number(int play_number) {\n\n this.play_number = play_number;\n }", "public void setPlayer(int play)\n {\n this.player=play;\n }", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n }\n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "public void time(int value) \n{\n runtimes = value;\n}", "public void play() \n{\n s = !s; \n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true)\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n}", "public void play() {\n //Set up the timer if needed\n if (!dataGame.isTrainingMode()) {\n timer = new Timer();\n secondsPassed = 65;\n TimerTask task = new TimerTask() {\n public void run() {\n secondsPassed--;\n //Before the game starts, countdown:\t\t\t\t\t\n if (secondsPassed > 63) {\n dataGame.notifyObserverTime(\"Be ready !\");\n } else if (secondsPassed == 63) {\n dataGame.notifyObserverTime(Integer.toString(3));\n } else if (secondsPassed == 62) {\n dataGame.notifyObserverTime(Integer.toString(2));\n } else if (secondsPassed == 61) {\n dataGame.notifyObserverTime(Integer.toString(1));\n } else if (secondsPassed == 60) {\n dataGame.notifyObserverTime(\"GO !\");\n pickNewWord();\n } else if (secondsPassed == 0) {\n dataGame.notifyObserverTime(\"STOP\");\n stop(false);\n } else {\n dataGame.notifyObserverTime(Integer.toString(secondsPassed));\n }\n }\n };\n timer.scheduleAtFixedRate(task, 100, 1000); //After 100ms, the timer starts, it decreases every seconds\n } else {\n pickNewWord();\n }\n }", "String getPlayer();", "public static String checkPlayFirst() {\r\n\t int randomNumber = (int) Math.floor(Math.random() * 10) % 2;\r\n\t String player = \"\";\r\n\t if ( randomNumber == 0)\r\n\t player = \"Computer\";\r\n\t else\r\n\t player = \"User\";\r\n\r\n\t return player;\r\n\t }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "public String timerPause(){\n return mTimer;\n }", "private void setTime()\n\t{\n\t\t//local variable \n\t\tString rad = JOptionPane.showInputDialog(\"Enter the time spent bicycling: \"); \n\t\t\n\t\t//convert to int\n\t\ttry {\n\t\t\tbikeTime = Integer.parseInt(rad);\n\t\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t}", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public static String time(int time) {\n return time((long)time);\n }", "private void setTxtTimeTotal()\n {\n SimpleDateFormat dinhDangGio= new SimpleDateFormat(\"mm:ss\");\n txtTimeTotal.setText(dinhDangGio.format(mediaPlayer.getDuration()));\n //\n skSong.setMax(mediaPlayer.getDuration());\n }", "public static play() {\n\t\t\n\t}", "public boolean hasPlaySeconds() {\n return fieldSetFlags()[3];\n }", "void setTime(final int time);", "public String getInTime3() {\n\treturn inTime3;\n }", "public void setTime(String time) {\n }", "public void setCurrentPlayTime(long playTime) { throw new RuntimeException(\"Stub!\"); }", "boolean addEasyTimePlayed(long time);", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "void currentTime(double timeInSeconds) {\n execute(\"player.currentTime = \" + timeInSeconds);\n }", "public com.twc.bigdata.views.avro.viewing_info.Builder setPlaySeconds(java.lang.Integer value) {\n validate(fields()[3], value);\n this.play_seconds = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Tea = \"Drink is set to be made at \" + time + \". \";\n }", "public void play(){\n\t\t\n\t}", "public int getPlayBackTime() {\n\t\treturn mPlayer.getDuration();\n\t}", "@Override\n public void run() {\n\n secs++;\n if (secs == 10) {\n tens++;\n secs = 0;\n }\n if (tens == 6) {\n mins++;\n tens = 0;\n secs = 0;\n }\n time = mins + \":\" + tens + \"\" + secs;\n timePlayed.setText(\"Time: \" + time);\n }", "public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }", "public void time(){\n\t\tif(paused){\n\t\t\tpaused = false;\n\t\t\tmusic.play();\n\t\t\tstart = System.nanoTime();\n\t\t} else {\n\t\t\telasped += System.nanoTime() - start;\n\t\t\tstart = System.nanoTime();\n\t\t}\n\t\ttime = (double) elasped/ (double) 1000000000l;\n\t\t//System.out.println(time);\n\t}", "public int sessionTime(String player){\n \t\tif( BeardStat.loginTimes.containsKey(player)){\n \t\t\treturn Integer.parseInt(\"\"+BeardStat.loginTimes.get(player)/1000L);\n \t\t\t\n \t\t}\n \t\treturn 0;\n \t}", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getLastPlayed() {\n\t\treturn levelRunning;\n\t}", "public int getPlayLength()\n\t{\n\t\treturn playbackLength;\n\t}", "public void setBeginTime(String time){beginTime = time;}", "@Test\n public void testSetLabelTextTimeCurrent() {\n System.out.println(\"setLabelTextTimeCurrent\");\n \n String text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:05\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:00\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"GOOOAL!!!\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n }", "public void addPlayTime(final long playTime) {\n\t\tthis.playTime += playTime;\n\t}", "public String getPlayMode()\n {\n return playMode;\n }", "void update(String time);", "public String getTime(){\r\n String time = \"\";\r\n return time;\r\n }", "String sound();", "@Override\r\n\tpublic void onPrepared(MediaPlayer arg0) {\n\t\tint dur = vid.getDuration();\r\n\t\tduration.setText(dur);\r\n\t}", "public String playFromBeginning() {\n currentIndex = 1;\n return \"Playing song 1:\" + songs.get(currentIndex-1);\n }", "public int getPlayedTimes() {\n return playedTimes;\n }", "public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}", "String randomPlayer1GetName(){\n return randomPlayer1;\n }", "@Override\r\n\tprotected String play() \r\n\t{\r\n\t\treturn \"The \" + this.getClass().getSimpleName() + \" Class.\" + \"\\n\" + this.getName() + \" is up!\";\r\n//\t\tSystem.out.println( \"The \" + this.getClass().getSimpleName() + \" Class.\");\r\n//\t\tSystem.out.println( this.getName() + \" is up!\" );\t\r\n\t}", "public void makePlay(String play) {\n if (output == null) {\n output = getOutputWriter();\n }\n\n// System.out.println(\"MakePlay called: \"+play);\n String s = play+\"\\n\";\n output.print(s);\n output.flush();\n\n GameState.increaseCount();\n }", "public static void timeConversion(String time)\r\n {\n\r\n if (ticks >= 0)\r\n {\r\n time = day;\r\n } else if (ticks >= 12000)\r\n {\r\n time = sunset;\r\n } else if (ticks >= 12610)\r\n {\r\n time = dusk;\r\n } else if (ticks >= 17843)\r\n {\r\n time = midnight;\r\n } else if (ticks >= 23041)\r\n {\r\n time = dawn;\r\n }\r\n }", "public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}", "public static void main(String[] args) {\n String ttime = getDurationString(200,45);\n System.out.println(ttime);\n ttime = getDurationString(400);\n System.out.println(ttime);\n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Coffee = \"Drink is set to be made at \" + time + \". \";\n }", "protected void playGame(String str) {\n System.out.format(\"Playing %s\\n\", str);\n }", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\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 playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String player1GetName(){\n return player1;\n }", "public void setTime(String time) {\r\n\t\tthis.time = time;\r\n\t}", "int delay(Player player);", "public static void main(String[] args) {\n\tint seconds= 1 ;\n\tint minutes= 1 ;\n\tint hours= 1 ; \n\t}", "public int getSeconds(){\r\n return Seconds;\r\n }", "@Override\n public void valueChanged(String control_val) {\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }", "static Duration promptForTime() {\n String input;\n\n Duration time;\n System.out.println(\"Enter the player's time (hh:mm:ss.SSS)\");\n System.out.println(\"EX: 1:03:44.256\");\n\n //loops until correct imput calls break;\n while (true) {\n System.out.print(\">\");\n\n if (Menus.reader.hasNext()) {\n input = Menus.reader.nextLine().strip();\n\n //Reformat the input to match ISO standard\n int colonCount = countOccurrences(input, ':');\n if (colonCount == 2) {\n input = input.replaceFirst(\":\", \"H\");\n input = input.replace(':', 'M');\n } else if (colonCount == 1) {\n input = input.replace(':', 'M');\n }\n input = \"PT\" + input + \"S\";\n\n //Parse the input to a duration\n try {\n time = Duration.parse(input);\n break;\n } catch (DateTimeParseException dtp) {\n System.out.println(\"Make sure the format is correct\");\n }\n }\n }\n return time;\n }", "@Override\r\n\tpublic void betPlayValue(int play) {\n\t\trps.setPlay(play);\r\n\t}", "public void setTime(String time) {\n this.time = time;\n }", "public void setTime(String time) {\n\t\tthis.time = time;\n\t}", "long getTimerPref();", "public void newTurnPauseCountdown()\n {\n pauseNewTurn = true;\n pauseNewTurnTimer = 169;\n }", "private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}", "public void setTime(double time) {_time = time;}", "java.lang.String getDuration();", "public void setTime(int time) {\n\t\tthis.time = time;\n\t}", "void playYearOfPlentyCard(String resource1, String resource2);", "private void playAI (int actualAI) {\n }", "public int getPlayState(){\r\n\t\tif(player.getStatus() == BasicPlayer.PLAYING){\r\n\t\t\treturn songsToPlay.isEmpty() ? selectedPreset + 10 : selectedPreset;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "void play ();", "public void setMatchTime(String text) {\n runningMatchTime.setText(text);\n if (!Main.isSimpleMode()) {\n PLC_Sender.getInstance().updatePLC_Time(true);\n }\n }", "public String getTime(){\n return time;\n }", "java.lang.String getWaitTime();", "public String getTimeVariable(){ return common.timeDatapath; }", "String player2GetName(){\n return player2;\n }", "public String autoPlay(int sign) {\n boolean validTurn = false;\n int temp1 = 0;\n int temp2 = 0;\n while (!validTurn) { //select a random empty tile\n temp1 = new Random().nextInt(TTT.getSize());\n temp2 = new Random().nextInt(TTT.getSize());\n validTurn = TTT.safeChangeTile(sign, temp1, temp2);\n }\n return temp1 + \" \" + temp2;\n }", "@Override\n public void onTick(long millisUntilFinished) {\n if (play) {\n\n\n\n\n\n czasomierz.setProgress((int)millisUntilFinished/1000);\n\n czas.setText((int)millisUntilFinished/1000 + \" s\");\n\n }\n\n }", "public void setInTime3(String inTime3) {\n\tthis.inTime3 = inTime3;\n }" ]
[ "0.7073542", "0.63991773", "0.6280141", "0.62648493", "0.6217199", "0.61669713", "0.61478704", "0.6137488", "0.6110173", "0.60211414", "0.601799", "0.5951262", "0.59501123", "0.5923836", "0.59206986", "0.59025127", "0.5868111", "0.58587193", "0.5848975", "0.5798889", "0.57697815", "0.5757788", "0.56844586", "0.5679455", "0.56656194", "0.5647411", "0.55933434", "0.55642223", "0.556079", "0.5517708", "0.55124307", "0.5510975", "0.54814804", "0.5477473", "0.54722637", "0.5462465", "0.54499537", "0.54488", "0.54440624", "0.54403055", "0.5402229", "0.5402001", "0.5393085", "0.53911954", "0.5379875", "0.53791046", "0.5376606", "0.5372467", "0.5370817", "0.5361159", "0.53553873", "0.5338421", "0.5327749", "0.53252804", "0.53251684", "0.53231704", "0.5321966", "0.53150517", "0.531302", "0.53111136", "0.5307526", "0.52988213", "0.5294606", "0.5291707", "0.528975", "0.52812207", "0.52778894", "0.5276579", "0.52642494", "0.52615285", "0.52589905", "0.5251296", "0.5249196", "0.52484614", "0.5234155", "0.5226469", "0.52253944", "0.52191156", "0.52129835", "0.520945", "0.52086025", "0.51948744", "0.5188648", "0.51845497", "0.51688546", "0.5166006", "0.51645595", "0.51624244", "0.5158498", "0.5153294", "0.5149663", "0.5144436", "0.51439154", "0.513856", "0.5137665", "0.5136622", "0.51269037", "0.5124735", "0.51231307", "0.5121034", "0.5119104" ]
0.0
-1
string playTime = 3;
public Builder setPlayTimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); playTime_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPlayTime();", "public int getPlayStartTime() { return _playStartTime; }", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "public void setPlaySeconds(java.lang.Integer value) {\n this.play_seconds = value;\n }", "public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }", "void makePlay(int player) {\n }", "public int getPlay_number() {\n\n return play_number;\n }", "@Override\n\tpublic long getPlaytime() {\n\t\treturn this.playTime;\n\t}", "public double playTimeInSeconds(){\n\t\treturn durationInSeconds;\n\t}", "private String sleepString (int time){\n\t\tString sleepTime;\n\t\tif (time < 10){\n\t\t\tsleepTime = \"0\"+time;\n\t\t} \n\t\telse {\n\t\t\tsleepTime = \"\"+time; \n\t\t}\n\t\treturn sleepTime;\n\t}", "public Builder setPlayTime(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n playTime_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void play(String position, int number) {\n\t\t\n\t}", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "int getTimesPlayed (String song_id);", "@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "public void setPlay_number(int play_number) {\n\n this.play_number = play_number;\n }", "public void setPlayer(int play)\n {\n this.player=play;\n }", "public java.lang.String getPlayTime() {\n java.lang.Object ref = playTime_;\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 playTime_ = s;\n return s;\n }\n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "public void time(int value) \n{\n runtimes = value;\n}", "public void play() \n{\n s = !s; \n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true)\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n}", "public void play() {\n //Set up the timer if needed\n if (!dataGame.isTrainingMode()) {\n timer = new Timer();\n secondsPassed = 65;\n TimerTask task = new TimerTask() {\n public void run() {\n secondsPassed--;\n //Before the game starts, countdown:\t\t\t\t\t\n if (secondsPassed > 63) {\n dataGame.notifyObserverTime(\"Be ready !\");\n } else if (secondsPassed == 63) {\n dataGame.notifyObserverTime(Integer.toString(3));\n } else if (secondsPassed == 62) {\n dataGame.notifyObserverTime(Integer.toString(2));\n } else if (secondsPassed == 61) {\n dataGame.notifyObserverTime(Integer.toString(1));\n } else if (secondsPassed == 60) {\n dataGame.notifyObserverTime(\"GO !\");\n pickNewWord();\n } else if (secondsPassed == 0) {\n dataGame.notifyObserverTime(\"STOP\");\n stop(false);\n } else {\n dataGame.notifyObserverTime(Integer.toString(secondsPassed));\n }\n }\n };\n timer.scheduleAtFixedRate(task, 100, 1000); //After 100ms, the timer starts, it decreases every seconds\n } else {\n pickNewWord();\n }\n }", "String getPlayer();", "public static String checkPlayFirst() {\r\n\t int randomNumber = (int) Math.floor(Math.random() * 10) % 2;\r\n\t String player = \"\";\r\n\t if ( randomNumber == 0)\r\n\t player = \"Computer\";\r\n\t else\r\n\t player = \"User\";\r\n\r\n\t return player;\r\n\t }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "public String timerPause(){\n return mTimer;\n }", "private void setTime()\n\t{\n\t\t//local variable \n\t\tString rad = JOptionPane.showInputDialog(\"Enter the time spent bicycling: \"); \n\t\t\n\t\t//convert to int\n\t\ttry {\n\t\t\tbikeTime = Integer.parseInt(rad);\n\t\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t}", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public static String time(int time) {\n return time((long)time);\n }", "private void setTxtTimeTotal()\n {\n SimpleDateFormat dinhDangGio= new SimpleDateFormat(\"mm:ss\");\n txtTimeTotal.setText(dinhDangGio.format(mediaPlayer.getDuration()));\n //\n skSong.setMax(mediaPlayer.getDuration());\n }", "public static play() {\n\t\t\n\t}", "public boolean hasPlaySeconds() {\n return fieldSetFlags()[3];\n }", "void setTime(final int time);", "public String getInTime3() {\n\treturn inTime3;\n }", "public void setTime(String time) {\n }", "public void setCurrentPlayTime(long playTime) { throw new RuntimeException(\"Stub!\"); }", "boolean addEasyTimePlayed(long time);", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "void currentTime(double timeInSeconds) {\n execute(\"player.currentTime = \" + timeInSeconds);\n }", "public com.twc.bigdata.views.avro.viewing_info.Builder setPlaySeconds(java.lang.Integer value) {\n validate(fields()[3], value);\n this.play_seconds = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Tea = \"Drink is set to be made at \" + time + \". \";\n }", "public void play(){\n\t\t\n\t}", "public int getPlayBackTime() {\n\t\treturn mPlayer.getDuration();\n\t}", "@Override\n public void run() {\n\n secs++;\n if (secs == 10) {\n tens++;\n secs = 0;\n }\n if (tens == 6) {\n mins++;\n tens = 0;\n secs = 0;\n }\n time = mins + \":\" + tens + \"\" + secs;\n timePlayed.setText(\"Time: \" + time);\n }", "public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }", "public void time(){\n\t\tif(paused){\n\t\t\tpaused = false;\n\t\t\tmusic.play();\n\t\t\tstart = System.nanoTime();\n\t\t} else {\n\t\t\telasped += System.nanoTime() - start;\n\t\t\tstart = System.nanoTime();\n\t\t}\n\t\ttime = (double) elasped/ (double) 1000000000l;\n\t\t//System.out.println(time);\n\t}", "public int sessionTime(String player){\n \t\tif( BeardStat.loginTimes.containsKey(player)){\n \t\t\treturn Integer.parseInt(\"\"+BeardStat.loginTimes.get(player)/1000L);\n \t\t\t\n \t\t}\n \t\treturn 0;\n \t}", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getLastPlayed() {\n\t\treturn levelRunning;\n\t}", "public int getPlayLength()\n\t{\n\t\treturn playbackLength;\n\t}", "public void setBeginTime(String time){beginTime = time;}", "@Test\n public void testSetLabelTextTimeCurrent() {\n System.out.println(\"setLabelTextTimeCurrent\");\n \n String text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:05\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:04\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:03\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:02\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:01\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"00:00\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n text = \"GOOOAL!!!\";\n jpPreviewPlayer.setLabelTextTimeCurrent(text);\n TimeUtil.skipToMyLou(1);\n \n }", "public void addPlayTime(final long playTime) {\n\t\tthis.playTime += playTime;\n\t}", "public String getPlayMode()\n {\n return playMode;\n }", "void update(String time);", "public String getTime(){\r\n String time = \"\";\r\n return time;\r\n }", "String sound();", "@Override\r\n\tpublic void onPrepared(MediaPlayer arg0) {\n\t\tint dur = vid.getDuration();\r\n\t\tduration.setText(dur);\r\n\t}", "public String playFromBeginning() {\n currentIndex = 1;\n return \"Playing song 1:\" + songs.get(currentIndex-1);\n }", "public int getPlayedTimes() {\n return playedTimes;\n }", "public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}", "String randomPlayer1GetName(){\n return randomPlayer1;\n }", "@Override\r\n\tprotected String play() \r\n\t{\r\n\t\treturn \"The \" + this.getClass().getSimpleName() + \" Class.\" + \"\\n\" + this.getName() + \" is up!\";\r\n//\t\tSystem.out.println( \"The \" + this.getClass().getSimpleName() + \" Class.\");\r\n//\t\tSystem.out.println( this.getName() + \" is up!\" );\t\r\n\t}", "public void makePlay(String play) {\n if (output == null) {\n output = getOutputWriter();\n }\n\n// System.out.println(\"MakePlay called: \"+play);\n String s = play+\"\\n\";\n output.print(s);\n output.flush();\n\n GameState.increaseCount();\n }", "public static void timeConversion(String time)\r\n {\n\r\n if (ticks >= 0)\r\n {\r\n time = day;\r\n } else if (ticks >= 12000)\r\n {\r\n time = sunset;\r\n } else if (ticks >= 12610)\r\n {\r\n time = dusk;\r\n } else if (ticks >= 17843)\r\n {\r\n time = midnight;\r\n } else if (ticks >= 23041)\r\n {\r\n time = dawn;\r\n }\r\n }", "public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}", "public static void main(String[] args) {\n String ttime = getDurationString(200,45);\n System.out.println(ttime);\n ttime = getDurationString(400);\n System.out.println(ttime);\n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Coffee = \"Drink is set to be made at \" + time + \". \";\n }", "protected void playGame(String str) {\n System.out.format(\"Playing %s\\n\", str);\n }", "public com.google.protobuf.ByteString\n getPlayTimeBytes() {\n java.lang.Object ref = playTime_;\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 playTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String player1GetName(){\n return player1;\n }", "public void setTime(String time) {\r\n\t\tthis.time = time;\r\n\t}", "int delay(Player player);", "public static void main(String[] args) {\n\tint seconds= 1 ;\n\tint minutes= 1 ;\n\tint hours= 1 ; \n\t}", "public int getSeconds(){\r\n return Seconds;\r\n }", "@Override\n public void valueChanged(String control_val) {\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }", "static Duration promptForTime() {\n String input;\n\n Duration time;\n System.out.println(\"Enter the player's time (hh:mm:ss.SSS)\");\n System.out.println(\"EX: 1:03:44.256\");\n\n //loops until correct imput calls break;\n while (true) {\n System.out.print(\">\");\n\n if (Menus.reader.hasNext()) {\n input = Menus.reader.nextLine().strip();\n\n //Reformat the input to match ISO standard\n int colonCount = countOccurrences(input, ':');\n if (colonCount == 2) {\n input = input.replaceFirst(\":\", \"H\");\n input = input.replace(':', 'M');\n } else if (colonCount == 1) {\n input = input.replace(':', 'M');\n }\n input = \"PT\" + input + \"S\";\n\n //Parse the input to a duration\n try {\n time = Duration.parse(input);\n break;\n } catch (DateTimeParseException dtp) {\n System.out.println(\"Make sure the format is correct\");\n }\n }\n }\n return time;\n }", "@Override\r\n\tpublic void betPlayValue(int play) {\n\t\trps.setPlay(play);\r\n\t}", "public void setTime(String time) {\n this.time = time;\n }", "public void setTime(String time) {\n\t\tthis.time = time;\n\t}", "long getTimerPref();", "public void newTurnPauseCountdown()\n {\n pauseNewTurn = true;\n pauseNewTurnTimer = 169;\n }", "private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}", "public void setTime(double time) {_time = time;}", "java.lang.String getDuration();", "public void setTime(int time) {\n\t\tthis.time = time;\n\t}", "void playYearOfPlentyCard(String resource1, String resource2);", "private void playAI (int actualAI) {\n }", "public int getPlayState(){\r\n\t\tif(player.getStatus() == BasicPlayer.PLAYING){\r\n\t\t\treturn songsToPlay.isEmpty() ? selectedPreset + 10 : selectedPreset;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "void play ();", "public void setMatchTime(String text) {\n runningMatchTime.setText(text);\n if (!Main.isSimpleMode()) {\n PLC_Sender.getInstance().updatePLC_Time(true);\n }\n }", "public String getTime(){\n return time;\n }", "java.lang.String getWaitTime();", "public String getTimeVariable(){ return common.timeDatapath; }", "String player2GetName(){\n return player2;\n }", "public String autoPlay(int sign) {\n boolean validTurn = false;\n int temp1 = 0;\n int temp2 = 0;\n while (!validTurn) { //select a random empty tile\n temp1 = new Random().nextInt(TTT.getSize());\n temp2 = new Random().nextInt(TTT.getSize());\n validTurn = TTT.safeChangeTile(sign, temp1, temp2);\n }\n return temp1 + \" \" + temp2;\n }", "@Override\n public void onTick(long millisUntilFinished) {\n if (play) {\n\n\n\n\n\n czasomierz.setProgress((int)millisUntilFinished/1000);\n\n czas.setText((int)millisUntilFinished/1000 + \" s\");\n\n }\n\n }", "public void setInTime3(String inTime3) {\n\tthis.inTime3 = inTime3;\n }" ]
[ "0.7073542", "0.63991773", "0.6280141", "0.62648493", "0.6217199", "0.61669713", "0.61478704", "0.6137488", "0.6110173", "0.60211414", "0.601799", "0.5951262", "0.59501123", "0.5923836", "0.59206986", "0.59025127", "0.5868111", "0.58587193", "0.5848975", "0.5798889", "0.57697815", "0.5757788", "0.56844586", "0.5679455", "0.56656194", "0.5647411", "0.55933434", "0.55642223", "0.556079", "0.5517708", "0.55124307", "0.5510975", "0.54814804", "0.5477473", "0.54722637", "0.5462465", "0.54499537", "0.54488", "0.54440624", "0.54403055", "0.5402229", "0.5402001", "0.5393085", "0.53911954", "0.5379875", "0.53791046", "0.5376606", "0.5372467", "0.5370817", "0.5361159", "0.53553873", "0.5338421", "0.5327749", "0.53252804", "0.53251684", "0.53231704", "0.5321966", "0.53150517", "0.531302", "0.53111136", "0.5307526", "0.52988213", "0.5294606", "0.5291707", "0.528975", "0.52812207", "0.52778894", "0.5276579", "0.52642494", "0.52615285", "0.52589905", "0.5251296", "0.5249196", "0.52484614", "0.5234155", "0.5226469", "0.52253944", "0.52191156", "0.52129835", "0.520945", "0.52086025", "0.51948744", "0.5188648", "0.51845497", "0.51688546", "0.5166006", "0.51645595", "0.51624244", "0.5158498", "0.5153294", "0.5149663", "0.5144436", "0.51439154", "0.513856", "0.5137665", "0.5136622", "0.51269037", "0.5124735", "0.51231307", "0.5121034", "0.5119104" ]
0.0
-1
string context = 4;
public java.lang.String getContext() { java.lang.Object ref = context_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContextString();", "java.lang.String getContext();", "String getContextId();", "private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }", "public String getContext() { return context; }", "boolean mo26169a(Context context, String str);", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }", "public String getContext() {\r\n\t\treturn context;\r\n\t}", "public String getContext() {\n\t\treturn context;\n\t}", "com.google.protobuf.ByteString getContext();", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public abstract String toString(String context);", "Context mo1490b();", "void mo97180a(Context context);", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "ContextVariable createContextVariable();", "default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }", "void mo25261a(Context context);", "java.lang.String getSourceContext();", "public abstract void mo36026a(Context context);", "public static String getContext(String key){\r\n return String.valueOf(scenarioContext.get(key));\r\n }", "Context getContext();", "public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\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 context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public PrimObject primitive125(PrimContext context) {\n final String thisStrVal = (String) this.javaValue;\n final PrimObject arg = context.argumentAt(0);\n final String argStringVal = (String) arg.javaValue;\n return smalltalkString(thisStrVal + argStringVal);\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "SimpleContextVariable createSimpleContextVariable();", "public void setContextId(java.lang.CharSequence value) {\n this.contextId = value;\n }", "long getCurrentContext();", "Context context();", "Context context();", "public void mo33875a(Context context, String str, int i, boolean z) {\n }", "CTX_Context getContext();", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public String getContextId() {\n return contextId;\n }", "public int getContextId() {\n return contextId;\n }", "void mo4827a(Context context, C0152fo foVar);", "RenderingContext getContext();", "com.google.protobuf.ByteString\n getContextBytes();", "String getContextPath();", "String getContextPath();", "String getContextPath();", "public void setContext(String context) {\r\n\t\tthis.context = context;\r\n\t}", "public void set_context(VariableSymbolTable context);", "@Test\n public void testContextToString() {\n final Context context = new Context();\n context.buffer = new byte[3];\n context.currentLinePos = 13;\n context.eof = true;\n context.ibitWorkArea = 777;\n context.lbitWorkArea = 999;\n context.modulus = 5;\n context.pos = 42;\n context.readPos = 981;\n final String text = context.toString();\n assertTrue(text.contains(\"[0, 0, 0]\"));\n assertTrue(text.contains(\"13\"));\n assertTrue(text.contains(\"true\"));\n assertTrue(text.contains(\"777\"));\n assertTrue(text.contains(\"999\"));\n assertTrue(text.contains(\"5\"));\n assertTrue(text.contains(\"42\"));\n assertTrue(text.contains(\"981\"));\n }", "public void setContext(String context) {\n\t\tthis.context = context;\n\t}", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }", "Map<String, Object> getContext();", "public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n s+=\"\\n\\t\\t\\t> \"+code.getLineAsString(l)+\" <\";\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+1);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+2);\n s=s+ \"\\n\\t\\t current token:\" + tok.toString();;\n s=s+ \"\\n\\t\\t Variable dump:\" + vars;\n if (gVars!=null) {\n s=s+ \"\\n\\t\\t Globals:\" + gVars;\n }\n } else s+=\"\\n\\t\\t\\t> \"+tok.getLine()+\" <\";\n\n return s;\n }", "public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}", "java.lang.String getLinkedContext();", "private static ContextValue getContext(String blocks) {\n String strigify2 = Json.writeValueAsStringHard(blocks); // some parsing\n // issue inside\n // lisptree parser\n return ContextValue.fromString(\n String.format(\"(context (graph NaiveKnowledgeGraph ((string \\\"%s\\\") (name b) (name c))))\", strigify2));\n }", "public final void mo9617a(Context context, String str, C22841a c22841a) {\n }", "public void mo37852a(Context context, int i, String str) {\n this.f22370b = i;\n this.f22371c = str;\n f22369a.mo37855a(context, \"HMSCore\");\n }", "public final String mo38c(Context context, String str) {\n Signature[] signatureArr;\n if (TextUtils.isEmpty(this.f27b)) {\n this.f27b = context.getPackageName();\n }\n if (TextUtils.isEmpty(this.f28c)) {\n String str2 = null;\n try {\n signatureArr = context.getPackageManager().getPackageInfo(this.f27b, 64).signatures;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n signatureArr = null;\n }\n if (signatureArr != null && signatureArr.length > 0) {\n byte[] byteArray = signatureArr[0].toByteArray();\n try {\n MessageDigest instance = MessageDigest.getInstance(\"SHA1\");\n if (instance != null) {\n byte[] digest = instance.digest(byteArray);\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(Integer.toHexString((b & 255) | 256).substring(1, 3));\n }\n str2 = sb.toString();\n }\n } catch (NoSuchAlgorithmException e2) {\n e2.printStackTrace();\n }\n }\n this.f28c = str2;\n }\n String a = ((C0041x2) this.f26a).mo126a(this.f27b, this.f28c, str);\n return TextUtils.isEmpty(a) ? \"\" : a;\n }", "public final void mo64684a(Context context, String str) {\n C25371n.m83483e(context, str);\n }", "C10688c mo27626a(Context context, C10689a aVar);", "@Test\n public void contextTest() {\n assertEquals(\"20200812075906AAAGV4\", authResponse.getContext());\n }", "public static Context m55a() {\n return f387c;\n }", "@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "static String m3300d(Context context) throws C1108a {\n if (f3065kg == null) {\n throw new C1108a();\n }\n try {\n String str = (String) f3065kg.invoke(null, new Object[]{context});\n if (str != null) {\n return str;\n }\n throw new C1108a();\n } catch (IllegalAccessException e) {\n throw new C1108a(e);\n } catch (InvocationTargetException e2) {\n throw new C1108a(e2);\n }\n }", "public void setContexts(final String val) {\n contexts = val;\n }", "public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }", "public abstract Context context();", "public synchronized String mo36a(Context context, String str) {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new IllegalStateException(\"Cannot run on MainThread\");\n } else if (this.f26a == null) {\n Intent intent = new Intent();\n intent.setComponent(new ComponentName(\"com.heytap.openid\", \"com.heytap.openid.IdentifyService\"));\n intent.setAction(\"action.com.heytap.openid.OPEN_ID_SERVICE\");\n if (context.bindService(intent, this.f30e, 1)) {\n synchronized (this.f29d) {\n try {\n this.f29d.wait(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n if (this.f26a == null) {\n return \"\";\n }\n try {\n return mo38c(context, str);\n } catch (RemoteException e2) {\n e2.printStackTrace();\n return \"\";\n }\n } else {\n try {\n return mo38c(context, str);\n } catch (RemoteException e3) {\n e3.printStackTrace();\n return \"\";\n }\n }\n }", "java.lang.String getRequestID();", "public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}", "private String appendContextMessage(String msg) {\n\t\treturn msg;\r\n\t}", "@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "public int getCE32FromContexts(int i) {\n return this.contexts.charAt(i + 1) | (this.contexts.charAt(i) << 16);\n }", "public final void mT__38() throws RecognitionException {\n try {\n int _type = T__38;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:36:7: ( 'context' )\n // InternalMyDsl.g:36:9: 'context'\n {\n match(\"context\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public synchronized void addContext(String s) {\n if (context == null)\n context = new ArrayList<String>();\n context.add(s);\n }", "public URI getCurrentContext();", "String getVariable();", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "boolean mo24941a(Context context);", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n }\n }", "void mo12389a(Context context, Glide eVar, Registry registry);", "public static void m121745a(Context context, String str) {\n Intent intent = new Intent(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD66A97DC15B17E980CC82A\"));\n intent.putExtra(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD27197C71BF1048E11D2\"), str);\n intent.setType(\"text/plain\");\n context.startActivity(intent);\n }", "Context createContext();", "Context createContext();", "private String getChunkName(ScriptContext context) {\n\t\tif (context != null) {\n\t\t\tObject fileName = context.getAttribute(FILENAME);\n\t\t\tif (fileName != null) {\n\t\t\t\treturn fileName.toString();\n\t\t\t}\n\t\t}\n\t\treturn \"null\";\n\t}", "public void addContext(ArrayList<Object> context) {\n\t\tContextNode node = new ContextNode();\n\t\tnode.setContext((String) context.get(0));\n\t\tnode.setParagraphNum((int)context.get(1));\n\t\tnode.setSentenceNum((int)context.get(2));\n\t\tgetLastNode().setNext(node);\n\t}", "public static String m19632a(Context context) {\n String str;\n String str2 = \"\";\n try {\n str = context.getPackageName();\n } catch (Throwable unused) {\n str = str2;\n }\n return str == null ? str2 : str.trim();\n }", "ContextBucket getContext() {\n\treturn context;\n }", "public abstract T mo36028b(Context context);", "void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }", "String getContextPath() {\n return contextPath;\n }", "public static void run(String context) {\n\n if (!m_output.equals(\"\")) {\n // Write the output string to the console\n System.out.println(\"[\" + context + \"]\" + m_output);\n }\n\n // Reset the output string for the next run\n m_output = \"\";\n }", "public String getContextCharacters() {\r\n return this.text.toString();\r\n }", "public long getContext() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long\");\n }" ]
[ "0.7309708", "0.72555923", "0.67616355", "0.6707032", "0.66786045", "0.6580665", "0.63848174", "0.63149023", "0.6290501", "0.62855625", "0.6264309", "0.6161767", "0.6120433", "0.6120433", "0.6120433", "0.6070401", "0.60506976", "0.60478956", "0.60427874", "0.6032733", "0.6009514", "0.5993066", "0.59510213", "0.5932236", "0.5864513", "0.5848731", "0.58362037", "0.5836173", "0.5831045", "0.58255583", "0.5824497", "0.5823707", "0.5810803", "0.5808463", "0.579525", "0.57855815", "0.57855815", "0.5780379", "0.57648385", "0.5746102", "0.5739657", "0.57340443", "0.5722835", "0.5722452", "0.5716527", "0.57128066", "0.57128066", "0.57128066", "0.57093704", "0.56837153", "0.5680119", "0.56670964", "0.5654647", "0.5654647", "0.5654647", "0.5641547", "0.56265", "0.56133455", "0.56016636", "0.55398035", "0.55177724", "0.5462755", "0.54231954", "0.5422506", "0.5404388", "0.5399504", "0.5396199", "0.53755987", "0.53226924", "0.53109753", "0.52964824", "0.5296234", "0.5293873", "0.5291479", "0.52834463", "0.5280206", "0.5269199", "0.5256935", "0.5230156", "0.5228688", "0.5224907", "0.5223496", "0.5211847", "0.520723", "0.5199551", "0.519313", "0.5185322", "0.51843524", "0.51787287", "0.51787287", "0.5178428", "0.5175863", "0.5172025", "0.5170974", "0.5167629", "0.5158123", "0.5142583", "0.51417434", "0.51326066", "0.51255953" ]
0.64252883
6
string context = 4;
public com.google.protobuf.ByteString getContextBytes() { java.lang.Object ref = context_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); context_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContextString();", "java.lang.String getContext();", "String getContextId();", "private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }", "public String getContext() { return context; }", "boolean mo26169a(Context context, String str);", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }", "public String getContext() {\r\n\t\treturn context;\r\n\t}", "public String getContext() {\n\t\treturn context;\n\t}", "com.google.protobuf.ByteString getContext();", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public abstract String toString(String context);", "Context mo1490b();", "void mo97180a(Context context);", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "ContextVariable createContextVariable();", "default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }", "void mo25261a(Context context);", "java.lang.String getSourceContext();", "public abstract void mo36026a(Context context);", "public static String getContext(String key){\r\n return String.valueOf(scenarioContext.get(key));\r\n }", "Context getContext();", "public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\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 context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public PrimObject primitive125(PrimContext context) {\n final String thisStrVal = (String) this.javaValue;\n final PrimObject arg = context.argumentAt(0);\n final String argStringVal = (String) arg.javaValue;\n return smalltalkString(thisStrVal + argStringVal);\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "SimpleContextVariable createSimpleContextVariable();", "public void setContextId(java.lang.CharSequence value) {\n this.contextId = value;\n }", "long getCurrentContext();", "Context context();", "Context context();", "public void mo33875a(Context context, String str, int i, boolean z) {\n }", "CTX_Context getContext();", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public String getContextId() {\n return contextId;\n }", "public int getContextId() {\n return contextId;\n }", "void mo4827a(Context context, C0152fo foVar);", "RenderingContext getContext();", "com.google.protobuf.ByteString\n getContextBytes();", "String getContextPath();", "String getContextPath();", "String getContextPath();", "public void setContext(String context) {\r\n\t\tthis.context = context;\r\n\t}", "public void set_context(VariableSymbolTable context);", "@Test\n public void testContextToString() {\n final Context context = new Context();\n context.buffer = new byte[3];\n context.currentLinePos = 13;\n context.eof = true;\n context.ibitWorkArea = 777;\n context.lbitWorkArea = 999;\n context.modulus = 5;\n context.pos = 42;\n context.readPos = 981;\n final String text = context.toString();\n assertTrue(text.contains(\"[0, 0, 0]\"));\n assertTrue(text.contains(\"13\"));\n assertTrue(text.contains(\"true\"));\n assertTrue(text.contains(\"777\"));\n assertTrue(text.contains(\"999\"));\n assertTrue(text.contains(\"5\"));\n assertTrue(text.contains(\"42\"));\n assertTrue(text.contains(\"981\"));\n }", "public void setContext(String context) {\n\t\tthis.context = context;\n\t}", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }", "Map<String, Object> getContext();", "public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n s+=\"\\n\\t\\t\\t> \"+code.getLineAsString(l)+\" <\";\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+1);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+2);\n s=s+ \"\\n\\t\\t current token:\" + tok.toString();;\n s=s+ \"\\n\\t\\t Variable dump:\" + vars;\n if (gVars!=null) {\n s=s+ \"\\n\\t\\t Globals:\" + gVars;\n }\n } else s+=\"\\n\\t\\t\\t> \"+tok.getLine()+\" <\";\n\n return s;\n }", "public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}", "java.lang.String getLinkedContext();", "private static ContextValue getContext(String blocks) {\n String strigify2 = Json.writeValueAsStringHard(blocks); // some parsing\n // issue inside\n // lisptree parser\n return ContextValue.fromString(\n String.format(\"(context (graph NaiveKnowledgeGraph ((string \\\"%s\\\") (name b) (name c))))\", strigify2));\n }", "public final void mo9617a(Context context, String str, C22841a c22841a) {\n }", "public void mo37852a(Context context, int i, String str) {\n this.f22370b = i;\n this.f22371c = str;\n f22369a.mo37855a(context, \"HMSCore\");\n }", "public final String mo38c(Context context, String str) {\n Signature[] signatureArr;\n if (TextUtils.isEmpty(this.f27b)) {\n this.f27b = context.getPackageName();\n }\n if (TextUtils.isEmpty(this.f28c)) {\n String str2 = null;\n try {\n signatureArr = context.getPackageManager().getPackageInfo(this.f27b, 64).signatures;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n signatureArr = null;\n }\n if (signatureArr != null && signatureArr.length > 0) {\n byte[] byteArray = signatureArr[0].toByteArray();\n try {\n MessageDigest instance = MessageDigest.getInstance(\"SHA1\");\n if (instance != null) {\n byte[] digest = instance.digest(byteArray);\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(Integer.toHexString((b & 255) | 256).substring(1, 3));\n }\n str2 = sb.toString();\n }\n } catch (NoSuchAlgorithmException e2) {\n e2.printStackTrace();\n }\n }\n this.f28c = str2;\n }\n String a = ((C0041x2) this.f26a).mo126a(this.f27b, this.f28c, str);\n return TextUtils.isEmpty(a) ? \"\" : a;\n }", "public final void mo64684a(Context context, String str) {\n C25371n.m83483e(context, str);\n }", "C10688c mo27626a(Context context, C10689a aVar);", "@Test\n public void contextTest() {\n assertEquals(\"20200812075906AAAGV4\", authResponse.getContext());\n }", "public static Context m55a() {\n return f387c;\n }", "@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "static String m3300d(Context context) throws C1108a {\n if (f3065kg == null) {\n throw new C1108a();\n }\n try {\n String str = (String) f3065kg.invoke(null, new Object[]{context});\n if (str != null) {\n return str;\n }\n throw new C1108a();\n } catch (IllegalAccessException e) {\n throw new C1108a(e);\n } catch (InvocationTargetException e2) {\n throw new C1108a(e2);\n }\n }", "public void setContexts(final String val) {\n contexts = val;\n }", "public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }", "public abstract Context context();", "public synchronized String mo36a(Context context, String str) {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new IllegalStateException(\"Cannot run on MainThread\");\n } else if (this.f26a == null) {\n Intent intent = new Intent();\n intent.setComponent(new ComponentName(\"com.heytap.openid\", \"com.heytap.openid.IdentifyService\"));\n intent.setAction(\"action.com.heytap.openid.OPEN_ID_SERVICE\");\n if (context.bindService(intent, this.f30e, 1)) {\n synchronized (this.f29d) {\n try {\n this.f29d.wait(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n if (this.f26a == null) {\n return \"\";\n }\n try {\n return mo38c(context, str);\n } catch (RemoteException e2) {\n e2.printStackTrace();\n return \"\";\n }\n } else {\n try {\n return mo38c(context, str);\n } catch (RemoteException e3) {\n e3.printStackTrace();\n return \"\";\n }\n }\n }", "java.lang.String getRequestID();", "public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}", "private String appendContextMessage(String msg) {\n\t\treturn msg;\r\n\t}", "@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "public int getCE32FromContexts(int i) {\n return this.contexts.charAt(i + 1) | (this.contexts.charAt(i) << 16);\n }", "public final void mT__38() throws RecognitionException {\n try {\n int _type = T__38;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:36:7: ( 'context' )\n // InternalMyDsl.g:36:9: 'context'\n {\n match(\"context\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public synchronized void addContext(String s) {\n if (context == null)\n context = new ArrayList<String>();\n context.add(s);\n }", "public URI getCurrentContext();", "String getVariable();", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "boolean mo24941a(Context context);", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n }\n }", "void mo12389a(Context context, Glide eVar, Registry registry);", "public static void m121745a(Context context, String str) {\n Intent intent = new Intent(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD66A97DC15B17E980CC82A\"));\n intent.putExtra(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD27197C71BF1048E11D2\"), str);\n intent.setType(\"text/plain\");\n context.startActivity(intent);\n }", "Context createContext();", "Context createContext();", "private String getChunkName(ScriptContext context) {\n\t\tif (context != null) {\n\t\t\tObject fileName = context.getAttribute(FILENAME);\n\t\t\tif (fileName != null) {\n\t\t\t\treturn fileName.toString();\n\t\t\t}\n\t\t}\n\t\treturn \"null\";\n\t}", "public void addContext(ArrayList<Object> context) {\n\t\tContextNode node = new ContextNode();\n\t\tnode.setContext((String) context.get(0));\n\t\tnode.setParagraphNum((int)context.get(1));\n\t\tnode.setSentenceNum((int)context.get(2));\n\t\tgetLastNode().setNext(node);\n\t}", "public static String m19632a(Context context) {\n String str;\n String str2 = \"\";\n try {\n str = context.getPackageName();\n } catch (Throwable unused) {\n str = str2;\n }\n return str == null ? str2 : str.trim();\n }", "ContextBucket getContext() {\n\treturn context;\n }", "public abstract T mo36028b(Context context);", "void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }", "String getContextPath() {\n return contextPath;\n }", "public static void run(String context) {\n\n if (!m_output.equals(\"\")) {\n // Write the output string to the console\n System.out.println(\"[\" + context + \"]\" + m_output);\n }\n\n // Reset the output string for the next run\n m_output = \"\";\n }", "public String getContextCharacters() {\r\n return this.text.toString();\r\n }", "public long getContext() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long\");\n }" ]
[ "0.7309708", "0.72555923", "0.67616355", "0.6707032", "0.66786045", "0.6580665", "0.64252883", "0.63848174", "0.63149023", "0.6290501", "0.62855625", "0.6264309", "0.6161767", "0.6120433", "0.6120433", "0.6120433", "0.6070401", "0.60506976", "0.60478956", "0.60427874", "0.6032733", "0.5993066", "0.59510213", "0.5932236", "0.5864513", "0.5848731", "0.58362037", "0.5836173", "0.5831045", "0.58255583", "0.5824497", "0.5823707", "0.5810803", "0.5808463", "0.579525", "0.57855815", "0.57855815", "0.5780379", "0.57648385", "0.5746102", "0.5739657", "0.57340443", "0.5722835", "0.5722452", "0.5716527", "0.57128066", "0.57128066", "0.57128066", "0.57093704", "0.56837153", "0.5680119", "0.56670964", "0.5654647", "0.5654647", "0.5654647", "0.5641547", "0.56265", "0.56133455", "0.56016636", "0.55398035", "0.55177724", "0.5462755", "0.54231954", "0.5422506", "0.5404388", "0.5399504", "0.5396199", "0.53755987", "0.53226924", "0.53109753", "0.52964824", "0.5296234", "0.5293873", "0.5291479", "0.52834463", "0.5280206", "0.5269199", "0.5256935", "0.5230156", "0.5228688", "0.5224907", "0.5223496", "0.5211847", "0.520723", "0.5199551", "0.519313", "0.5185322", "0.51843524", "0.51787287", "0.51787287", "0.5178428", "0.5175863", "0.5172025", "0.5170974", "0.5167629", "0.5158123", "0.5142583", "0.51417434", "0.51326066", "0.51255953" ]
0.6009514
21
string context = 4;
public Builder setContext( java.lang.String value) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContextString();", "java.lang.String getContext();", "String getContextId();", "private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }", "public String getContext() { return context; }", "boolean mo26169a(Context context, String str);", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }", "public String getContext() {\r\n\t\treturn context;\r\n\t}", "public String getContext() {\n\t\treturn context;\n\t}", "com.google.protobuf.ByteString getContext();", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public abstract String toString(String context);", "Context mo1490b();", "void mo97180a(Context context);", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "ContextVariable createContextVariable();", "default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }", "void mo25261a(Context context);", "java.lang.String getSourceContext();", "public abstract void mo36026a(Context context);", "public static String getContext(String key){\r\n return String.valueOf(scenarioContext.get(key));\r\n }", "Context getContext();", "public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\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 context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public PrimObject primitive125(PrimContext context) {\n final String thisStrVal = (String) this.javaValue;\n final PrimObject arg = context.argumentAt(0);\n final String argStringVal = (String) arg.javaValue;\n return smalltalkString(thisStrVal + argStringVal);\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "SimpleContextVariable createSimpleContextVariable();", "public void setContextId(java.lang.CharSequence value) {\n this.contextId = value;\n }", "long getCurrentContext();", "Context context();", "Context context();", "public void mo33875a(Context context, String str, int i, boolean z) {\n }", "CTX_Context getContext();", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public String getContextId() {\n return contextId;\n }", "public int getContextId() {\n return contextId;\n }", "void mo4827a(Context context, C0152fo foVar);", "RenderingContext getContext();", "com.google.protobuf.ByteString\n getContextBytes();", "String getContextPath();", "String getContextPath();", "String getContextPath();", "public void setContext(String context) {\r\n\t\tthis.context = context;\r\n\t}", "public void set_context(VariableSymbolTable context);", "@Test\n public void testContextToString() {\n final Context context = new Context();\n context.buffer = new byte[3];\n context.currentLinePos = 13;\n context.eof = true;\n context.ibitWorkArea = 777;\n context.lbitWorkArea = 999;\n context.modulus = 5;\n context.pos = 42;\n context.readPos = 981;\n final String text = context.toString();\n assertTrue(text.contains(\"[0, 0, 0]\"));\n assertTrue(text.contains(\"13\"));\n assertTrue(text.contains(\"true\"));\n assertTrue(text.contains(\"777\"));\n assertTrue(text.contains(\"999\"));\n assertTrue(text.contains(\"5\"));\n assertTrue(text.contains(\"42\"));\n assertTrue(text.contains(\"981\"));\n }", "public void setContext(String context) {\n\t\tthis.context = context;\n\t}", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }", "Map<String, Object> getContext();", "public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n s+=\"\\n\\t\\t\\t> \"+code.getLineAsString(l)+\" <\";\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+1);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+2);\n s=s+ \"\\n\\t\\t current token:\" + tok.toString();;\n s=s+ \"\\n\\t\\t Variable dump:\" + vars;\n if (gVars!=null) {\n s=s+ \"\\n\\t\\t Globals:\" + gVars;\n }\n } else s+=\"\\n\\t\\t\\t> \"+tok.getLine()+\" <\";\n\n return s;\n }", "public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}", "java.lang.String getLinkedContext();", "private static ContextValue getContext(String blocks) {\n String strigify2 = Json.writeValueAsStringHard(blocks); // some parsing\n // issue inside\n // lisptree parser\n return ContextValue.fromString(\n String.format(\"(context (graph NaiveKnowledgeGraph ((string \\\"%s\\\") (name b) (name c))))\", strigify2));\n }", "public final void mo9617a(Context context, String str, C22841a c22841a) {\n }", "public void mo37852a(Context context, int i, String str) {\n this.f22370b = i;\n this.f22371c = str;\n f22369a.mo37855a(context, \"HMSCore\");\n }", "public final String mo38c(Context context, String str) {\n Signature[] signatureArr;\n if (TextUtils.isEmpty(this.f27b)) {\n this.f27b = context.getPackageName();\n }\n if (TextUtils.isEmpty(this.f28c)) {\n String str2 = null;\n try {\n signatureArr = context.getPackageManager().getPackageInfo(this.f27b, 64).signatures;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n signatureArr = null;\n }\n if (signatureArr != null && signatureArr.length > 0) {\n byte[] byteArray = signatureArr[0].toByteArray();\n try {\n MessageDigest instance = MessageDigest.getInstance(\"SHA1\");\n if (instance != null) {\n byte[] digest = instance.digest(byteArray);\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(Integer.toHexString((b & 255) | 256).substring(1, 3));\n }\n str2 = sb.toString();\n }\n } catch (NoSuchAlgorithmException e2) {\n e2.printStackTrace();\n }\n }\n this.f28c = str2;\n }\n String a = ((C0041x2) this.f26a).mo126a(this.f27b, this.f28c, str);\n return TextUtils.isEmpty(a) ? \"\" : a;\n }", "public final void mo64684a(Context context, String str) {\n C25371n.m83483e(context, str);\n }", "C10688c mo27626a(Context context, C10689a aVar);", "@Test\n public void contextTest() {\n assertEquals(\"20200812075906AAAGV4\", authResponse.getContext());\n }", "public static Context m55a() {\n return f387c;\n }", "@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "static String m3300d(Context context) throws C1108a {\n if (f3065kg == null) {\n throw new C1108a();\n }\n try {\n String str = (String) f3065kg.invoke(null, new Object[]{context});\n if (str != null) {\n return str;\n }\n throw new C1108a();\n } catch (IllegalAccessException e) {\n throw new C1108a(e);\n } catch (InvocationTargetException e2) {\n throw new C1108a(e2);\n }\n }", "public void setContexts(final String val) {\n contexts = val;\n }", "public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }", "public abstract Context context();", "public synchronized String mo36a(Context context, String str) {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new IllegalStateException(\"Cannot run on MainThread\");\n } else if (this.f26a == null) {\n Intent intent = new Intent();\n intent.setComponent(new ComponentName(\"com.heytap.openid\", \"com.heytap.openid.IdentifyService\"));\n intent.setAction(\"action.com.heytap.openid.OPEN_ID_SERVICE\");\n if (context.bindService(intent, this.f30e, 1)) {\n synchronized (this.f29d) {\n try {\n this.f29d.wait(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n if (this.f26a == null) {\n return \"\";\n }\n try {\n return mo38c(context, str);\n } catch (RemoteException e2) {\n e2.printStackTrace();\n return \"\";\n }\n } else {\n try {\n return mo38c(context, str);\n } catch (RemoteException e3) {\n e3.printStackTrace();\n return \"\";\n }\n }\n }", "java.lang.String getRequestID();", "public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}", "private String appendContextMessage(String msg) {\n\t\treturn msg;\r\n\t}", "@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "public int getCE32FromContexts(int i) {\n return this.contexts.charAt(i + 1) | (this.contexts.charAt(i) << 16);\n }", "public final void mT__38() throws RecognitionException {\n try {\n int _type = T__38;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:36:7: ( 'context' )\n // InternalMyDsl.g:36:9: 'context'\n {\n match(\"context\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public synchronized void addContext(String s) {\n if (context == null)\n context = new ArrayList<String>();\n context.add(s);\n }", "public URI getCurrentContext();", "String getVariable();", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "boolean mo24941a(Context context);", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n }\n }", "void mo12389a(Context context, Glide eVar, Registry registry);", "public static void m121745a(Context context, String str) {\n Intent intent = new Intent(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD66A97DC15B17E980CC82A\"));\n intent.putExtra(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD27197C71BF1048E11D2\"), str);\n intent.setType(\"text/plain\");\n context.startActivity(intent);\n }", "Context createContext();", "Context createContext();", "private String getChunkName(ScriptContext context) {\n\t\tif (context != null) {\n\t\t\tObject fileName = context.getAttribute(FILENAME);\n\t\t\tif (fileName != null) {\n\t\t\t\treturn fileName.toString();\n\t\t\t}\n\t\t}\n\t\treturn \"null\";\n\t}", "public void addContext(ArrayList<Object> context) {\n\t\tContextNode node = new ContextNode();\n\t\tnode.setContext((String) context.get(0));\n\t\tnode.setParagraphNum((int)context.get(1));\n\t\tnode.setSentenceNum((int)context.get(2));\n\t\tgetLastNode().setNext(node);\n\t}", "public static String m19632a(Context context) {\n String str;\n String str2 = \"\";\n try {\n str = context.getPackageName();\n } catch (Throwable unused) {\n str = str2;\n }\n return str == null ? str2 : str.trim();\n }", "ContextBucket getContext() {\n\treturn context;\n }", "public abstract T mo36028b(Context context);", "void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }", "String getContextPath() {\n return contextPath;\n }", "public static void run(String context) {\n\n if (!m_output.equals(\"\")) {\n // Write the output string to the console\n System.out.println(\"[\" + context + \"]\" + m_output);\n }\n\n // Reset the output string for the next run\n m_output = \"\";\n }", "public String getContextCharacters() {\r\n return this.text.toString();\r\n }", "public long getContext() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long\");\n }" ]
[ "0.7309708", "0.72555923", "0.67616355", "0.6707032", "0.66786045", "0.6580665", "0.64252883", "0.63848174", "0.63149023", "0.6290501", "0.62855625", "0.6264309", "0.6161767", "0.6120433", "0.6120433", "0.6120433", "0.6070401", "0.60506976", "0.60478956", "0.60427874", "0.6032733", "0.6009514", "0.5993066", "0.59510213", "0.5932236", "0.5864513", "0.5848731", "0.58362037", "0.5836173", "0.5831045", "0.58255583", "0.5824497", "0.5823707", "0.5810803", "0.5808463", "0.579525", "0.57855815", "0.57855815", "0.5780379", "0.57648385", "0.5746102", "0.5739657", "0.57340443", "0.5722835", "0.5722452", "0.5716527", "0.57128066", "0.57128066", "0.57128066", "0.57093704", "0.56837153", "0.5680119", "0.56670964", "0.5654647", "0.5654647", "0.5654647", "0.5641547", "0.56265", "0.56133455", "0.56016636", "0.55398035", "0.55177724", "0.5462755", "0.54231954", "0.5422506", "0.5404388", "0.5399504", "0.5396199", "0.53755987", "0.53226924", "0.53109753", "0.52964824", "0.5296234", "0.5293873", "0.5291479", "0.52834463", "0.5280206", "0.5269199", "0.5256935", "0.5230156", "0.5228688", "0.5224907", "0.5223496", "0.5211847", "0.520723", "0.5199551", "0.519313", "0.5185322", "0.51843524", "0.51787287", "0.51787287", "0.5178428", "0.5175863", "0.5172025", "0.5170974", "0.5167629", "0.5158123", "0.5142583", "0.51417434", "0.51326066", "0.51255953" ]
0.0
-1
string context = 4;
public Builder clearContext() { context_ = getDefaultInstance().getContext(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContextString();", "java.lang.String getContext();", "String getContextId();", "private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }", "public String getContext() { return context; }", "boolean mo26169a(Context context, String str);", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }", "public String getContext() {\r\n\t\treturn context;\r\n\t}", "public String getContext() {\n\t\treturn context;\n\t}", "com.google.protobuf.ByteString getContext();", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public abstract String toString(String context);", "Context mo1490b();", "void mo97180a(Context context);", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "ContextVariable createContextVariable();", "default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }", "void mo25261a(Context context);", "java.lang.String getSourceContext();", "public abstract void mo36026a(Context context);", "public static String getContext(String key){\r\n return String.valueOf(scenarioContext.get(key));\r\n }", "Context getContext();", "public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\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 context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public PrimObject primitive125(PrimContext context) {\n final String thisStrVal = (String) this.javaValue;\n final PrimObject arg = context.argumentAt(0);\n final String argStringVal = (String) arg.javaValue;\n return smalltalkString(thisStrVal + argStringVal);\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "SimpleContextVariable createSimpleContextVariable();", "public void setContextId(java.lang.CharSequence value) {\n this.contextId = value;\n }", "long getCurrentContext();", "Context context();", "Context context();", "public void mo33875a(Context context, String str, int i, boolean z) {\n }", "CTX_Context getContext();", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public String getContextId() {\n return contextId;\n }", "public int getContextId() {\n return contextId;\n }", "void mo4827a(Context context, C0152fo foVar);", "RenderingContext getContext();", "com.google.protobuf.ByteString\n getContextBytes();", "String getContextPath();", "String getContextPath();", "String getContextPath();", "public void setContext(String context) {\r\n\t\tthis.context = context;\r\n\t}", "public void set_context(VariableSymbolTable context);", "@Test\n public void testContextToString() {\n final Context context = new Context();\n context.buffer = new byte[3];\n context.currentLinePos = 13;\n context.eof = true;\n context.ibitWorkArea = 777;\n context.lbitWorkArea = 999;\n context.modulus = 5;\n context.pos = 42;\n context.readPos = 981;\n final String text = context.toString();\n assertTrue(text.contains(\"[0, 0, 0]\"));\n assertTrue(text.contains(\"13\"));\n assertTrue(text.contains(\"true\"));\n assertTrue(text.contains(\"777\"));\n assertTrue(text.contains(\"999\"));\n assertTrue(text.contains(\"5\"));\n assertTrue(text.contains(\"42\"));\n assertTrue(text.contains(\"981\"));\n }", "public void setContext(String context) {\n\t\tthis.context = context;\n\t}", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }", "Map<String, Object> getContext();", "public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n s+=\"\\n\\t\\t\\t> \"+code.getLineAsString(l)+\" <\";\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+1);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+2);\n s=s+ \"\\n\\t\\t current token:\" + tok.toString();;\n s=s+ \"\\n\\t\\t Variable dump:\" + vars;\n if (gVars!=null) {\n s=s+ \"\\n\\t\\t Globals:\" + gVars;\n }\n } else s+=\"\\n\\t\\t\\t> \"+tok.getLine()+\" <\";\n\n return s;\n }", "public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}", "java.lang.String getLinkedContext();", "private static ContextValue getContext(String blocks) {\n String strigify2 = Json.writeValueAsStringHard(blocks); // some parsing\n // issue inside\n // lisptree parser\n return ContextValue.fromString(\n String.format(\"(context (graph NaiveKnowledgeGraph ((string \\\"%s\\\") (name b) (name c))))\", strigify2));\n }", "public final void mo9617a(Context context, String str, C22841a c22841a) {\n }", "public void mo37852a(Context context, int i, String str) {\n this.f22370b = i;\n this.f22371c = str;\n f22369a.mo37855a(context, \"HMSCore\");\n }", "public final String mo38c(Context context, String str) {\n Signature[] signatureArr;\n if (TextUtils.isEmpty(this.f27b)) {\n this.f27b = context.getPackageName();\n }\n if (TextUtils.isEmpty(this.f28c)) {\n String str2 = null;\n try {\n signatureArr = context.getPackageManager().getPackageInfo(this.f27b, 64).signatures;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n signatureArr = null;\n }\n if (signatureArr != null && signatureArr.length > 0) {\n byte[] byteArray = signatureArr[0].toByteArray();\n try {\n MessageDigest instance = MessageDigest.getInstance(\"SHA1\");\n if (instance != null) {\n byte[] digest = instance.digest(byteArray);\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(Integer.toHexString((b & 255) | 256).substring(1, 3));\n }\n str2 = sb.toString();\n }\n } catch (NoSuchAlgorithmException e2) {\n e2.printStackTrace();\n }\n }\n this.f28c = str2;\n }\n String a = ((C0041x2) this.f26a).mo126a(this.f27b, this.f28c, str);\n return TextUtils.isEmpty(a) ? \"\" : a;\n }", "public final void mo64684a(Context context, String str) {\n C25371n.m83483e(context, str);\n }", "C10688c mo27626a(Context context, C10689a aVar);", "@Test\n public void contextTest() {\n assertEquals(\"20200812075906AAAGV4\", authResponse.getContext());\n }", "public static Context m55a() {\n return f387c;\n }", "@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "static String m3300d(Context context) throws C1108a {\n if (f3065kg == null) {\n throw new C1108a();\n }\n try {\n String str = (String) f3065kg.invoke(null, new Object[]{context});\n if (str != null) {\n return str;\n }\n throw new C1108a();\n } catch (IllegalAccessException e) {\n throw new C1108a(e);\n } catch (InvocationTargetException e2) {\n throw new C1108a(e2);\n }\n }", "public void setContexts(final String val) {\n contexts = val;\n }", "public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }", "public abstract Context context();", "public synchronized String mo36a(Context context, String str) {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new IllegalStateException(\"Cannot run on MainThread\");\n } else if (this.f26a == null) {\n Intent intent = new Intent();\n intent.setComponent(new ComponentName(\"com.heytap.openid\", \"com.heytap.openid.IdentifyService\"));\n intent.setAction(\"action.com.heytap.openid.OPEN_ID_SERVICE\");\n if (context.bindService(intent, this.f30e, 1)) {\n synchronized (this.f29d) {\n try {\n this.f29d.wait(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n if (this.f26a == null) {\n return \"\";\n }\n try {\n return mo38c(context, str);\n } catch (RemoteException e2) {\n e2.printStackTrace();\n return \"\";\n }\n } else {\n try {\n return mo38c(context, str);\n } catch (RemoteException e3) {\n e3.printStackTrace();\n return \"\";\n }\n }\n }", "java.lang.String getRequestID();", "public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}", "private String appendContextMessage(String msg) {\n\t\treturn msg;\r\n\t}", "@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "public int getCE32FromContexts(int i) {\n return this.contexts.charAt(i + 1) | (this.contexts.charAt(i) << 16);\n }", "public final void mT__38() throws RecognitionException {\n try {\n int _type = T__38;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:36:7: ( 'context' )\n // InternalMyDsl.g:36:9: 'context'\n {\n match(\"context\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public synchronized void addContext(String s) {\n if (context == null)\n context = new ArrayList<String>();\n context.add(s);\n }", "public URI getCurrentContext();", "String getVariable();", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "boolean mo24941a(Context context);", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n }\n }", "void mo12389a(Context context, Glide eVar, Registry registry);", "public static void m121745a(Context context, String str) {\n Intent intent = new Intent(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD66A97DC15B17E980CC82A\"));\n intent.putExtra(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD27197C71BF1048E11D2\"), str);\n intent.setType(\"text/plain\");\n context.startActivity(intent);\n }", "Context createContext();", "Context createContext();", "private String getChunkName(ScriptContext context) {\n\t\tif (context != null) {\n\t\t\tObject fileName = context.getAttribute(FILENAME);\n\t\t\tif (fileName != null) {\n\t\t\t\treturn fileName.toString();\n\t\t\t}\n\t\t}\n\t\treturn \"null\";\n\t}", "public void addContext(ArrayList<Object> context) {\n\t\tContextNode node = new ContextNode();\n\t\tnode.setContext((String) context.get(0));\n\t\tnode.setParagraphNum((int)context.get(1));\n\t\tnode.setSentenceNum((int)context.get(2));\n\t\tgetLastNode().setNext(node);\n\t}", "public static String m19632a(Context context) {\n String str;\n String str2 = \"\";\n try {\n str = context.getPackageName();\n } catch (Throwable unused) {\n str = str2;\n }\n return str == null ? str2 : str.trim();\n }", "ContextBucket getContext() {\n\treturn context;\n }", "public abstract T mo36028b(Context context);", "void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }", "String getContextPath() {\n return contextPath;\n }", "public static void run(String context) {\n\n if (!m_output.equals(\"\")) {\n // Write the output string to the console\n System.out.println(\"[\" + context + \"]\" + m_output);\n }\n\n // Reset the output string for the next run\n m_output = \"\";\n }", "public String getContextCharacters() {\r\n return this.text.toString();\r\n }", "public long getContext() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long\");\n }" ]
[ "0.7309708", "0.72555923", "0.67616355", "0.6707032", "0.66786045", "0.6580665", "0.64252883", "0.63848174", "0.63149023", "0.6290501", "0.62855625", "0.6264309", "0.6161767", "0.6120433", "0.6120433", "0.6120433", "0.6070401", "0.60506976", "0.60478956", "0.60427874", "0.6032733", "0.6009514", "0.5993066", "0.59510213", "0.5932236", "0.5864513", "0.5848731", "0.58362037", "0.5836173", "0.5831045", "0.58255583", "0.5824497", "0.5823707", "0.5810803", "0.5808463", "0.579525", "0.57855815", "0.57855815", "0.5780379", "0.57648385", "0.5746102", "0.5739657", "0.57340443", "0.5722835", "0.5722452", "0.5716527", "0.57128066", "0.57128066", "0.57128066", "0.57093704", "0.56837153", "0.5680119", "0.56670964", "0.5654647", "0.5654647", "0.5654647", "0.5641547", "0.56265", "0.56133455", "0.56016636", "0.55398035", "0.55177724", "0.5462755", "0.54231954", "0.5422506", "0.5404388", "0.5399504", "0.5396199", "0.53755987", "0.53226924", "0.53109753", "0.52964824", "0.5296234", "0.5293873", "0.5291479", "0.52834463", "0.5280206", "0.5269199", "0.5256935", "0.5230156", "0.5228688", "0.5224907", "0.5223496", "0.5211847", "0.520723", "0.5199551", "0.519313", "0.5185322", "0.51843524", "0.51787287", "0.51787287", "0.5178428", "0.5175863", "0.5172025", "0.5170974", "0.5167629", "0.5158123", "0.5142583", "0.51417434", "0.51326066", "0.51255953" ]
0.0
-1
string context = 4;
public Builder setContextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); context_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContextString();", "java.lang.String getContext();", "String getContextId();", "private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }", "public String getContext() { return context; }", "boolean mo26169a(Context context, String str);", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }", "public String getContext() {\r\n\t\treturn context;\r\n\t}", "public String getContext() {\n\t\treturn context;\n\t}", "com.google.protobuf.ByteString getContext();", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "@java.lang.Override public int getContextValue() {\n return context_;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public abstract String toString(String context);", "Context mo1490b();", "void mo97180a(Context context);", "public java.lang.CharSequence getContextId() {\n return contextId;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "ContextVariable createContextVariable();", "default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }", "void mo25261a(Context context);", "java.lang.String getSourceContext();", "public abstract void mo36026a(Context context);", "public static String getContext(String key){\r\n return String.valueOf(scenarioContext.get(key));\r\n }", "Context getContext();", "public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }", "public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\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 context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public PrimObject primitive125(PrimContext context) {\n final String thisStrVal = (String) this.javaValue;\n final PrimObject arg = context.argumentAt(0);\n final String argStringVal = (String) arg.javaValue;\n return smalltalkString(thisStrVal + argStringVal);\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "SimpleContextVariable createSimpleContextVariable();", "public void setContextId(java.lang.CharSequence value) {\n this.contextId = value;\n }", "long getCurrentContext();", "Context context();", "Context context();", "public void mo33875a(Context context, String str, int i, boolean z) {\n }", "CTX_Context getContext();", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public String getContextId() {\n return contextId;\n }", "public int getContextId() {\n return contextId;\n }", "void mo4827a(Context context, C0152fo foVar);", "RenderingContext getContext();", "com.google.protobuf.ByteString\n getContextBytes();", "String getContextPath();", "String getContextPath();", "String getContextPath();", "public void setContext(String context) {\r\n\t\tthis.context = context;\r\n\t}", "public void set_context(VariableSymbolTable context);", "@Test\n public void testContextToString() {\n final Context context = new Context();\n context.buffer = new byte[3];\n context.currentLinePos = 13;\n context.eof = true;\n context.ibitWorkArea = 777;\n context.lbitWorkArea = 999;\n context.modulus = 5;\n context.pos = 42;\n context.readPos = 981;\n final String text = context.toString();\n assertTrue(text.contains(\"[0, 0, 0]\"));\n assertTrue(text.contains(\"13\"));\n assertTrue(text.contains(\"true\"));\n assertTrue(text.contains(\"777\"));\n assertTrue(text.contains(\"999\"));\n assertTrue(text.contains(\"5\"));\n assertTrue(text.contains(\"42\"));\n assertTrue(text.contains(\"981\"));\n }", "public void setContext(String context) {\n\t\tthis.context = context;\n\t}", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }", "@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }", "Map<String, Object> getContext();", "public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n s+=\"\\n\\t\\t\\t> \"+code.getLineAsString(l)+\" <\";\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+1);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+2);\n s=s+ \"\\n\\t\\t current token:\" + tok.toString();;\n s=s+ \"\\n\\t\\t Variable dump:\" + vars;\n if (gVars!=null) {\n s=s+ \"\\n\\t\\t Globals:\" + gVars;\n }\n } else s+=\"\\n\\t\\t\\t> \"+tok.getLine()+\" <\";\n\n return s;\n }", "public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}", "java.lang.String getLinkedContext();", "private static ContextValue getContext(String blocks) {\n String strigify2 = Json.writeValueAsStringHard(blocks); // some parsing\n // issue inside\n // lisptree parser\n return ContextValue.fromString(\n String.format(\"(context (graph NaiveKnowledgeGraph ((string \\\"%s\\\") (name b) (name c))))\", strigify2));\n }", "public final void mo9617a(Context context, String str, C22841a c22841a) {\n }", "public void mo37852a(Context context, int i, String str) {\n this.f22370b = i;\n this.f22371c = str;\n f22369a.mo37855a(context, \"HMSCore\");\n }", "public final String mo38c(Context context, String str) {\n Signature[] signatureArr;\n if (TextUtils.isEmpty(this.f27b)) {\n this.f27b = context.getPackageName();\n }\n if (TextUtils.isEmpty(this.f28c)) {\n String str2 = null;\n try {\n signatureArr = context.getPackageManager().getPackageInfo(this.f27b, 64).signatures;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n signatureArr = null;\n }\n if (signatureArr != null && signatureArr.length > 0) {\n byte[] byteArray = signatureArr[0].toByteArray();\n try {\n MessageDigest instance = MessageDigest.getInstance(\"SHA1\");\n if (instance != null) {\n byte[] digest = instance.digest(byteArray);\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(Integer.toHexString((b & 255) | 256).substring(1, 3));\n }\n str2 = sb.toString();\n }\n } catch (NoSuchAlgorithmException e2) {\n e2.printStackTrace();\n }\n }\n this.f28c = str2;\n }\n String a = ((C0041x2) this.f26a).mo126a(this.f27b, this.f28c, str);\n return TextUtils.isEmpty(a) ? \"\" : a;\n }", "public final void mo64684a(Context context, String str) {\n C25371n.m83483e(context, str);\n }", "C10688c mo27626a(Context context, C10689a aVar);", "@Test\n public void contextTest() {\n assertEquals(\"20200812075906AAAGV4\", authResponse.getContext());\n }", "public static Context m55a() {\n return f387c;\n }", "@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "static String m3300d(Context context) throws C1108a {\n if (f3065kg == null) {\n throw new C1108a();\n }\n try {\n String str = (String) f3065kg.invoke(null, new Object[]{context});\n if (str != null) {\n return str;\n }\n throw new C1108a();\n } catch (IllegalAccessException e) {\n throw new C1108a(e);\n } catch (InvocationTargetException e2) {\n throw new C1108a(e2);\n }\n }", "public void setContexts(final String val) {\n contexts = val;\n }", "public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }", "public abstract Context context();", "public synchronized String mo36a(Context context, String str) {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new IllegalStateException(\"Cannot run on MainThread\");\n } else if (this.f26a == null) {\n Intent intent = new Intent();\n intent.setComponent(new ComponentName(\"com.heytap.openid\", \"com.heytap.openid.IdentifyService\"));\n intent.setAction(\"action.com.heytap.openid.OPEN_ID_SERVICE\");\n if (context.bindService(intent, this.f30e, 1)) {\n synchronized (this.f29d) {\n try {\n this.f29d.wait(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n if (this.f26a == null) {\n return \"\";\n }\n try {\n return mo38c(context, str);\n } catch (RemoteException e2) {\n e2.printStackTrace();\n return \"\";\n }\n } else {\n try {\n return mo38c(context, str);\n } catch (RemoteException e3) {\n e3.printStackTrace();\n return \"\";\n }\n }\n }", "java.lang.String getRequestID();", "public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}", "private String appendContextMessage(String msg) {\n\t\treturn msg;\r\n\t}", "@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "public int getCE32FromContexts(int i) {\n return this.contexts.charAt(i + 1) | (this.contexts.charAt(i) << 16);\n }", "public final void mT__38() throws RecognitionException {\n try {\n int _type = T__38;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:36:7: ( 'context' )\n // InternalMyDsl.g:36:9: 'context'\n {\n match(\"context\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public synchronized void addContext(String s) {\n if (context == null)\n context = new ArrayList<String>();\n context.add(s);\n }", "public URI getCurrentContext();", "String getVariable();", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "boolean mo24941a(Context context);", "public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n }\n }", "void mo12389a(Context context, Glide eVar, Registry registry);", "public static void m121745a(Context context, String str) {\n Intent intent = new Intent(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD66A97DC15B17E980CC82A\"));\n intent.putExtra(C6969H.m41409d(\"G688DD108B039AF67EF00844DFCF18DD27197C71BF1048E11D2\"), str);\n intent.setType(\"text/plain\");\n context.startActivity(intent);\n }", "Context createContext();", "Context createContext();", "private String getChunkName(ScriptContext context) {\n\t\tif (context != null) {\n\t\t\tObject fileName = context.getAttribute(FILENAME);\n\t\t\tif (fileName != null) {\n\t\t\t\treturn fileName.toString();\n\t\t\t}\n\t\t}\n\t\treturn \"null\";\n\t}", "public void addContext(ArrayList<Object> context) {\n\t\tContextNode node = new ContextNode();\n\t\tnode.setContext((String) context.get(0));\n\t\tnode.setParagraphNum((int)context.get(1));\n\t\tnode.setSentenceNum((int)context.get(2));\n\t\tgetLastNode().setNext(node);\n\t}", "public static String m19632a(Context context) {\n String str;\n String str2 = \"\";\n try {\n str = context.getPackageName();\n } catch (Throwable unused) {\n str = str2;\n }\n return str == null ? str2 : str.trim();\n }", "ContextBucket getContext() {\n\treturn context;\n }", "public abstract T mo36028b(Context context);", "void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }", "String getContextPath() {\n return contextPath;\n }", "public static void run(String context) {\n\n if (!m_output.equals(\"\")) {\n // Write the output string to the console\n System.out.println(\"[\" + context + \"]\" + m_output);\n }\n\n // Reset the output string for the next run\n m_output = \"\";\n }", "public String getContextCharacters() {\r\n return this.text.toString();\r\n }", "public long getContext() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.conscrypt.OpenSSLBIOSource.getContext():long\");\n }" ]
[ "0.7309708", "0.72555923", "0.67616355", "0.6707032", "0.66786045", "0.6580665", "0.64252883", "0.63848174", "0.63149023", "0.6290501", "0.62855625", "0.6264309", "0.6161767", "0.6120433", "0.6120433", "0.6120433", "0.6070401", "0.60506976", "0.60478956", "0.60427874", "0.6032733", "0.6009514", "0.5993066", "0.59510213", "0.5932236", "0.5864513", "0.5848731", "0.58362037", "0.5836173", "0.5831045", "0.58255583", "0.5824497", "0.5823707", "0.5810803", "0.5808463", "0.579525", "0.57855815", "0.57855815", "0.5780379", "0.57648385", "0.5746102", "0.5739657", "0.57340443", "0.5722835", "0.5722452", "0.5716527", "0.57128066", "0.57128066", "0.57128066", "0.57093704", "0.56837153", "0.5680119", "0.56670964", "0.5654647", "0.5654647", "0.5654647", "0.5641547", "0.56265", "0.56133455", "0.56016636", "0.55398035", "0.55177724", "0.5462755", "0.54231954", "0.5422506", "0.5404388", "0.5399504", "0.5396199", "0.53755987", "0.53226924", "0.53109753", "0.52964824", "0.5296234", "0.5293873", "0.5291479", "0.52834463", "0.5280206", "0.5269199", "0.5256935", "0.5230156", "0.5228688", "0.5224907", "0.5223496", "0.5211847", "0.520723", "0.5199551", "0.519313", "0.5185322", "0.51843524", "0.51787287", "0.51787287", "0.5178428", "0.5175863", "0.5172025", "0.5170974", "0.5167629", "0.5158123", "0.5142583", "0.51417434", "0.51326066", "0.51255953" ]
0.0
-1
SWITCH:0, SETTEMP:0, TIME:00.00.00, RSSI:0, TIMER1OPEN:0.00.00, TIMER1CLOSE:0.00.00, TIMER2OPEN:0.00.00, TIMER2CLOSE:0.00.00, CURRENTTEMP:0, FAULTMSG:E00",
private void parserReciverMsg(String msg){ String deviceMsg=null; if (!msg.startsWith("{")) return; try { deviceMsg=new JSONObject(msg).getString("MSG"); } catch (JSONException e) { e.printStackTrace(); return; } if (deviceMsg==null) return; if (deviceMsg.equals("logout")) return; if (deviceMsg.startsWith("upgrade")) return; if (!deviceMsg.startsWith("SWITCH")) return; String[] deviceInfoT = deviceMsg.split(","); Map<String,String> deviceInfo=new HashMap<>(); String key=""; String value=""; for(int i=0;i<deviceInfoT.length;i++){ key=deviceInfoT[i].substring(0,deviceInfoT[i].lastIndexOf(":")); value=deviceInfoT[i].substring(deviceInfoT[i].lastIndexOf(":") + 1); deviceInfo.put(key,value); } devSWITCH=deviceInfo.get("SWITCH").equals("1"); if (devSWITCH!=mSeekCircle.isStart()){ refreshDeviceImg(devSWITCH); } setTextMsg(deviceInfo.get("CURRENTTEMP")+"℃\n当前温度",txtCurT); setTextMsg(deviceInfo.get("SETTEMP")+"℃\n设置温度",txtSettingT); mSeekCircle.setProgress(Integer.parseInt(deviceInfo.get("CURRENTTEMP"))); String[] timeStart_1=deviceInfo.get("TIMER1OPEN").split("\\."); txtTimerStart[0].setText(timeStart_1[1]+":"+timeStart_1[2]); timerStartMap.put("0hh",Integer.parseInt(timeStart_1[1])); timerStartMap.put("0mm",Integer.parseInt(timeStart_1[2])); if (timeStart_1[0].equals("1")){ if (!tbTimeOpen[0].isToggleOn()) tbTimeOpen[0].setToggleOn(); }else { if (tbTimeOpen[0].isToggleOn()) tbTimeOpen[0].setToggleOff(); } String[] timeStart_2=deviceInfo.get("TIMER2OPEN").split("\\."); txtTimerStart[1].setText(timeStart_2[1]+":"+timeStart_2[2]); timerStartMap.put("1hh",Integer.parseInt(timeStart_2[1])); timerStartMap.put("1mm",Integer.parseInt(timeStart_2[2])); if (timeStart_2[0].equals("1")){ if (!tbTimeOpen[1].isToggleOn()) tbTimeOpen[1].setToggleOn(); }else { if (tbTimeOpen[1].isToggleOn()) tbTimeOpen[1].setToggleOff(); } String[] timeEnd_1=deviceInfo.get("TIMER1CLOSE").split("\\."); txtTimerEnd[0].setText(timeEnd_1[1]+":"+timeEnd_1[2]); timerEndMap.put("0hh",Integer.parseInt(timeEnd_1[1])); timerEndMap.put("0mm",Integer.parseInt(timeEnd_1[2])); if (timeEnd_1[0].equals("1")){ if (!tbTimeStop[0].isToggleOn()) tbTimeStop[0].setToggleOn(); }else { if (tbTimeStop[0].isToggleOn()) tbTimeStop[0].setToggleOff(); } String[] timeEnd_2=deviceInfo.get("TIMER2CLOSE").split("\\."); txtTimerEnd[1].setText(timeEnd_2[1]+":"+timeEnd_2[2]); timerEndMap.put("1hh",Integer.parseInt(timeEnd_2[1])); timerEndMap.put("1mm",Integer.parseInt(timeEnd_2[2])); if (timeEnd_2[0].equals("1")){ if (!tbTimeStop[1].isToggleOn()) tbTimeStop[1].setToggleOn(); }else { if (tbTimeStop[1].isToggleOn()) tbTimeStop[1].setToggleOff(); } faultmsg= deviceInfo.get("FAULTMSG"); if (faultmsg.equals("E00")||faultmsg.equals("E00|E00")){//正常 layoutErr.setVisibility(View.INVISIBLE); }else { if (faultmsg.contains("|")){ String[] faults = faultmsg.split("\\|"); // L.MyLog(TAG,"设备故障:faults:"+faults[0]+"-----"+faults[1]); if (faults[0].equals("E00")){ faultmsg=faults[1]; } if (faults[1].equals("E00")){ faultmsg=faults[0]; } } M_Dev_Err dererr = dbDeviceErrManager.getErr(devHexId, faultmsg); long t=0; if (dererr!=null) t=(System.currentTimeMillis()-dererr.getErrDoneTime())/1000; L.MyLog(TAG,"设备故障:"+t+"----"+faultmsg); if (dererr==null){ dererr = new M_Dev_Err(); dererr.setErrCode(faultmsg); dererr.setErrTime(System.currentTimeMillis()); dererr.setErrDoneTime(0); dererr.setErrDevIdHex(devHexId); dbDeviceErrManager.addErr(dererr); layoutErr.setVisibility(View.VISIBLE); }else if (t>30*30){ layoutErr.setVisibility(View.VISIBLE); }else { layoutErr.setVisibility(View.INVISIBLE); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void m29980i() {\n String str = \"TpnsChannel\";\n try {\n long currentTimeMillis = System.currentTimeMillis();\n if (f23269d == 0) {\n f23269d = currentTimeMillis;\n } else if (currentTimeMillis - f23269d < 30000) {\n return;\n }\n if (C6973b.m29776f() != null) {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"srv_stime\", XGPushServiceV4.f23078a);\n jSONObject.put(\"srv_etime\", System.currentTimeMillis());\n jSONObject.put(\"srv_startTime\", XGPushServiceV4.f23079b);\n if (XGPushServiceV4.f23080c != null) {\n jSONObject.put(\"srv_freason\", XGPushServiceV4.f23080c);\n }\n jSONObject.put(\"hb_suc\", f23267b);\n jSONObject.put(\"hb_failed\", f23268c);\n if (f23273h != null) {\n jSONObject.put(\"hb_freason\", f23273h);\n }\n jSONObject.put(\"con_suc\", f23270e);\n jSONObject.put(\"con_failed\", f23271f);\n if (f23272g != null) {\n jSONObject.put(\"con_freason\", f23272g);\n }\n C7055h.m30172b(C6973b.m29776f(), \"service_state\", jSONObject.toString());\n f23269d = currentTimeMillis;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Service bi state \");\n sb.append(jSONObject.toString());\n C6864a.m29303e(str, sb.toString());\n }\n } catch (Throwable th) {\n C6864a.m29302d(str, \"saveBIReportJson \", th);\n }\n }", "@Test(timeout = 4000)\n public void test48() throws Throwable {\n String string0 = EWrapperMsgGenerator.realtimeBar(1, 845L, 251L, (-2474L), 1521.6451568161, 845L, 0L, 1, 3197);\n assertEquals(\"id=1 time = 845 open=251.0 high=-2474.0 low=1521.6451568161 close=845.0 volume=0 count=3197 WAP=1.0\", string0);\n }", "public static void main(String[] args) {\n\t\tHdlcClientConnectionSettings settings = new HdlcClientConnectionSettings(\"/dev/ttyUSB0\", new HdlcAddress(16),\n\t\t\t\tnew HdlcAddress(1, 17, 2), ReferencingMethod.LN);\n\t\tsettings.setAuthentication(Authentication.LOW);\n\n\t\tIClientConnectionFactory factory = ServiceLoader.load(IClientConnectionFactory.class).iterator().next();\n\t\tIClientConnection connection = null;\n\t\ttry {\n\t\t\tconnection = factory.createClientConnection(settings);\n\n\t\t\tSystem.out.print(\"Enter the password to connect with the smart meter: \");\n\t\t\tbyte pw[] = null;\n\t\t\tif (System.console() != null) {\n\t\t\t\tchar[] input = System.console().readPassword();\n\t\t\t\tCharBuffer buffer = CharBuffer.wrap(input);\n\t\t\t\tCharset ascii = Charset.forName(\"US-ASCII\");\n\t\t\t\tByteBuffer bytes = ascii.encode(buffer);\n\t\t\t\tpw = new byte[bytes.limit()];\n\t\t\t\tbytes.get(pw);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\tString input = scanner.nextLine();\n\t\t\t\tpw = input.getBytes(\"US-ASCII\");\n\t\t\t}\n\n\t\t\tconnection.connect(3000, pw);\n\t\t\tSystem.out.println(\"Connected\\n\");\n\n\t\t\t// Get parameter to read current time\n\t\t\t// - Interface class: 8 (Clock)\n\t\t\t// - Obis code: 0:0:1:0:0:255 (current time)\n\t\t\t// - Attribute ID: 2 (time)\n\t\t\tGetRequest getClock = new GetRequest(8, new ObisCode(0, 0, 1, 0, 0, 255), 2);\n\n\t\t\t// Read time from meter\n\t\t\tList<GetResult> getResults = connection.get(2000, getClock);\n\t\t\tSystem.out.println(\"\\nRead time from smart meter\");\n\t\t\tSystem.out.println(\"Time: \" + getClockString(getResults.get(0).getResultData().getByteArray()));\n\n\t\t\t// Set parameter to add +1 hour to read time\n\t\t\t// - Interface class: 8 (Clock)\n\t\t\t// - Obis code: 0:0:1:0:0:255 (current time)\n\t\t\t// - Attribute ID: 2 (time)\n\t\t\tbyte[] value = getResults.get(0).getResultData().getByteArray();\n\t\t\tvalue[5] = (byte) ((value[5] + 1) % 12);\n\t\t\tSetRequest setClock = getClock.toSetRequest();\n\t\t\tsetClock.data().setOctetString(value);\n\n\t\t\t// Write new value to smart meter\n\t\t\tList<AccessResultCode> setResults = connection.set(3000, setClock);\n\t\t\tSystem.out.println(\"Setting time on smart meter\");\n\t\t\tSystem.out.println(\"Time: \" + setResults.get(0) + \"\\n\");\n\n\t\t\t// Read current time from smart meter again\n\t\t\tgetResults = connection.get(2000, getClock);\n\t\t\tSystem.out.println(\"Time: \" + getClockString(getResults.get(0).getResultData().getByteArray()) + \"\\n\");\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (connection != null && connection.isConnected()) {\n\t\t\t\tconnection.disconnect(false);\n\t\t\t\tSystem.out.println(\"\\nDisconnected from smart meter\\n\");\n\t\t\t}\n\t\t}\n\t}", "public void updateIR() {\n\t\tfloat timeStart = System.nanoTime();\n\t\tfloat timeEnd;\n\t\tfloat timeElapsed;\n\t\tint remoteChan3 = infraredSensor.getRemotecmd(3);\n\t\tint remoteChan2 = infraredSensor.getRemotecmd(2);\n\t\tint remoteChan1 = infraredSensor.getRemotecmd(1);\n\t\tint remoteChan0 = infraredSensor.getRemotecmd(0);\n\t\tLCD.drawString(\"Hello\", 0, 0);\n\t\tLCD.drawInt(Channel, 0, 4);\n\n\t\tswitch (remoteChan3) {\n\t\t// Drive backward\n\t\tcase 1:\n\t\t\tdirection = 1;\n\t\t\tif (Record == true) {\n\t\t\t\tif (what != 1) {\n\t\t\t\t\ttimeEnd = System.nanoTime();\n\t\t\t\t\ttimeElapsed = timeEnd - timeStart;\n\t\t\t\t\trouteManager.Record(what, timeElapsed);\n\t\t\t\t}\n\t\t\t\ttimeStart = System.nanoTime();\n\t\t\t\twhat = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\t// Drive forward\n\t\tcase 2:\n\t\t\tdirection = -1;\n\t\t\tif (Record == true) {\n\t\t\t\tif (what != 2) {\n\t\t\t\t\ttimeEnd = System.nanoTime();\n\t\t\t\t\ttimeElapsed = timeEnd - timeStart;\n\t\t\t\t\trouteManager.Record(what, timeElapsed);\n\t\t\t\t}\n\t\t\t\ttimeStart = System.nanoTime();\n\t\t\t\twhat = 2;\n\t\t\t}\n\t\t\tbreak;\n\t\t// Steer right\n\t\tcase 3:\n\t\t\tsteeringAngle = 30;\n\t\t\tif (Record == true) {\n\t\t\t\tif (what != 3) {\n\t\t\t\t\ttimeEnd = System.nanoTime();\n\t\t\t\t\ttimeElapsed = timeEnd - timeStart;\n\t\t\t\t\trouteManager.Record(what, timeElapsed);\n\t\t\t\t}\n\t\t\t\ttimeStart = System.nanoTime();\n\t\t\t\twhat = 3;\n\t\t\t}\n\t\t\tbreak;\n\t\t// Steer left\n\t\tcase 4:\n\t\t\tsteeringAngle = -30;\n\t\t\tif (Record == true) {\n\t\t\t\tif (what != 4) {\n\t\t\t\t\ttimeEnd = System.nanoTime();\n\t\t\t\t\ttimeElapsed = timeEnd - timeStart;\n\t\t\t\t\trouteManager.Record(what, timeElapsed);\n\n\t\t\t\t}\n\t\t\t\ttimeStart = System.nanoTime();\n\t\t\t\twhat = 4;\n\t\t\t}\n\t\t\tbreak;\n\t\t// Stop\n\t\tcase 9:\n\t\t\tdirection = 0;\n\t\t\tif (Record == true) {\n\t\t\t\tif (what != 9) {\n\t\t\t\t\ttimeEnd = System.nanoTime();\n\t\t\t\t\ttimeElapsed = timeEnd - timeStart;\n\t\t\t\t\trouteManager.Record(what, timeElapsed);\n\t\t\t\t}\n\t\t\t\ttimeStart = System.nanoTime();\n\t\t\t\twhat = 9;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\tswitch (remoteChan2) {\n\t\t// start recording\n\t\tcase 1:\n\t\t\tRecord = true;\n\t\t\tSound.beep();\n\t\t\tbreak;\n\t\t// stop recording\n\t\tcase 2:\n\t\t\tRecord = false;\n\t\t\tbreak;\n\t\t// drive recorded route\n\t\tcase 3:\n\t\t\tRecord = false;\n\t\t\tSound.beep();\n\t\t\tSound.beep();\n\t\t\trouteManager.Play();\n\t\t\trouteManager.Play = true;\n\t\t\tbreak;\n\t\t// cancel current route\n\t\tcase 4:\n\t\t\trouteManager.Play = false;\n\t\t\tbreak;\n\t\t}\n\t\t// play prerecorded route\n\t\tswitch (remoteChan1) {\n\t\tcase 1:\n\t\t\trouteManager.Route1();\n\t\t\tbreak;\n\t\t}\n\t\t// play music\n\t\tswitch (remoteChan0) {\n\t\tcase 1:\n\t\t\tif (this.music.getState() == Thread.State.TERMINATED) {\n\t\t\t\tthis.music = new Music();\n\t\t\t} else if (!this.music.isAlive()) {\n\t\t\t\tthis.music.start();\n\t\t\t} else {\n\t\t\t\tDelay.msDelay(10);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t}", "OnOffSwitch alarmSwitch();", "public void m6606W() {\n /*\n r17 = this;\n r0 = r17\n com.android.service.RecordService$b r1 = r0.f5401U\n if (r1 != 0) goto L_0x0007\n return\n L_0x0007:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"<updateTimerView>,mState = \"\n r1.append(r2)\n int r2 = r0.f5435p\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n java.lang.String r2 = \"SR/SoundRecorder\"\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n com.android.service.RecordService$b r1 = r0.f5401U\n long r3 = r1.mo6348i()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r7 = r3 / r5\n r0.f5420ha = r7\n com.android.service.RecordService$b r1 = r0.f5401U\n long r9 = r1.mo6346g()\n int r1 = r0.f5435p\n r11 = 3\n r12 = 4\n r13 = 1\n r14 = 2\n r5 = 0\n if (r1 == 0) goto L_0x009a\n if (r1 == r13) goto L_0x0043\n if (r1 == r14) goto L_0x0055\n if (r1 == r11) goto L_0x0045\n if (r1 == r12) goto L_0x00a1\n L_0x0043:\n r7 = r5\n goto L_0x00a1\n L_0x0045:\n int r1 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r1 > 0) goto L_0x004b\n r7 = r5\n goto L_0x004d\n L_0x004b:\n r0.f5451x = r5\n L_0x004d:\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n r1.removeCallbacks(r3)\n goto L_0x00a1\n L_0x0055:\n r0.f5449w = r3\n int r1 = r0.f5439r\n if (r1 != r12) goto L_0x006b\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n long r7 = r0.f5451x\n r15 = 1000(0x3e8, double:4.94E-321)\n long r7 = r7 * r15\n long r12 = r0.f5449w\n long r7 = r7 - r12\n r1.postDelayed(r3, r7)\n goto L_0x007f\n L_0x006b:\n r15 = 1000(0x3e8, double:4.94E-321)\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n long r7 = r0.f5451x\n r12 = 1\n long r7 = r7 + r12\n r0.f5451x = r7\n long r7 = r7 * r15\n long r12 = r0.f5449w\n long r7 = r7 - r12\n r1.postDelayed(r3, r7)\n L_0x007f:\n long r7 = r0.f5449w\n r12 = 500(0x1f4, double:2.47E-321)\n long r7 = r7 + r12\n long r7 = r7 / r15\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>,currentTime = \"\n r1.append(r3)\n r1.append(r7)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n goto L_0x00a1\n L_0x009a:\n r0.f5451x = r5\n r7 = -1000(0xfffffffffffffc18, double:NaN)\n r0.f5449w = r7\n goto L_0x0043\n L_0x00a1:\n java.lang.Object[] r1 = new java.lang.Object[r11]\n r3 = 0\n r11 = 3600(0xe10, double:1.7786E-320)\n long r15 = r7 / r11\n java.lang.Long r13 = java.lang.Long.valueOf(r15)\n r1[r3] = r13\n long r11 = r7 % r11\n r15 = 60\n long r11 = r11 / r15\n java.lang.Long r3 = java.lang.Long.valueOf(r11)\n r11 = 1\n r1[r11] = r3\n long r11 = r7 % r15\n java.lang.Long r3 = java.lang.Long.valueOf(r11)\n r1[r14] = r3\n java.lang.String r3 = \"%02d:%02d:%02d\"\n java.lang.String r1 = java.lang.String.format(r3, r1)\n r0.f5413e = r1\n int r1 = r0.f5435p\n if (r1 == r14) goto L_0x00d1\n r3 = 4\n if (r1 != r3) goto L_0x00d6\n L_0x00d1:\n com.android.view.timeview.TimeView r1 = r0.f5387G\n r1.setCurrentTime(r7)\n L_0x00d6:\n int r1 = r0.f5435p\n r0.f5439r = r1\n com.android.service.RecordService$b r1 = r0.f5401U\n if (r1 == 0) goto L_0x012f\n boolean r1 = r0.f5425k\n if (r1 != 0) goto L_0x012f\n boolean r1 = r0.f5421i\n if (r1 == 0) goto L_0x012f\n int r1 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r1 > 0) goto L_0x012f\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>,mHasFileSizeLimitation : \"\n r1.append(r3)\n boolean r3 = r0.f5421i\n r1.append(r3)\n java.lang.String r3 = \",mRecorder.getRemainingTime(): \"\n r1.append(r3)\n r1.append(r9)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n r1.removeCallbacks(r3)\n r1 = 1\n r0.f5425k = r1\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>, mState = \"\n r1.append(r3)\n int r3 = r0.f5435p\n r1.append(r3)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n int r1 = r0.f5435p\n if (r1 != r14) goto L_0x012f\n r17.m6604U()\n L_0x012f:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.activity.SoundRecorder.m6606W():void\");\n }", "@Override\n protected void onTick() {\n leerFromMatlab();\n if ((voltajeMR > 120 * 1.1 && voltajeMR < 120 * 0.9) || (frecuenciaMR > 60 * 1.1 && frecuenciaMR < 60 * 0.9)) {\n alarmaMR = true;\n System.out.println(\"Alarma de condiciones no deseadas de microred encendida\");\n } else {\n alarmaMR = false;\n }\n\n if ((voltajeRE > 120 * 1.1 && voltajeRE < 120 * 0.9) || (frecuenciaRE > 60 * 1.1 && frecuenciaRE < 60 * 0.9)) {\n alarmaRE = true;\n System.out.println(\"Alarma de condiciones no deseadas de red externa encendida\");\n } else {\n alarmaRE = false;\n }\n\n try {\n ACLMessage mensaje = new ACLMessage();\n AID r1 = new AID();\n r1.setLocalName(\"EnergyMarketAgent\");\n AID r2 = new AID();\n r2.setLocalName(\"InterfaceAgent\");\n mensaje.setSender(getAID());\n //mensaje.addReceiver(r);\n mensaje.addReceiver(r1);\n mensaje.addReceiver(r2);\n //mensaje.addReceiver(getDefaultDF());\n mensaje.setLanguage(codec.getName());\n mensaje.setOntology(ontologia.getName());\n mensaje.setPerformative(ACLMessage.INFORM);\n Operacion operacion = new Operacion();\n operacion.setEstadoFallaMicroRed(alarmaMR);\n operacion.setEstadoFallaRedExterna(alarmaRE);\n operacion.setPotenciaAlmacenada((float) potenciaAlmacenada);\n operacion.setPotenciaGenerada((float) potenciaGenerada);\n operacion.setPotenciaDemanda((float) demandaPotencia);\n operacion.setModoOperacionApagado(modoOperacionApagado);\n operacion.setModoOperacionInterno(modoOperacionInterno);\n operacion.setModoOperacionExterno(modoOperacionExterno);\n operacion.setModoOperacionParcial(modoOperacionParcial);\n operacion.setModoOperacionVenta(modoOperacionVenta);\n operacion.setModoOperacionAlmacenamiento(modoOperacionAlmacenamiento);\n\n EnviarInfoOperacion enviarModoOperacion = new EnviarInfoOperacion();\n enviarModoOperacion.setParametros(operacion);\n //mensaje.setContentObject(enviarModoOperacion);\n getContentManager().fillContent(mensaje, (ContentElement) enviarModoOperacion);\n \n\n send(mensaje);\n } catch (Codec.CodecException ex) {\n Logger.getLogger(AgenteMicroRed.class.getName()).log(Level.SEVERE, null, ex);\n } catch (OntologyException ex) {\n Logger.getLogger(AgenteMicroRed.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "private MqttMessage readEngineTemp() {\n double temp = 80 + rnd.nextDouble() * 20.0;\n byte[] payload = String.format(\"T:%04.2f\",temp).getBytes();\n MqttMessage msg = new MqttMessage(payload);\n return msg;\n }", "private static String m21400e() {\n try {\n return new BufferedReader(new FileReader(new File(\"/sys/class/net/wlan0/address\"))).readLine();\n } catch (Throwable th) {\n C5205o.m21464a(th);\n return \"02:00:00:00:00:00\";\n }\n }", "protected byte[] getOnTimerSetting() {return null;}", "@Override\n public void onReceive(BluetoothLeUart uart, BluetoothGattCharacteristic rx) {\n\n\n\n writeLine(\"Received: \" + rx.getStringValue(0));\n String data = rx.getStringValue(0);\n String delim = \"[,]\";\n final String[] tokens = data.split(delim);\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() { //Using the conversions in the Hardware README.\n TextView tempDoe = (TextView) findViewById(R.id.tempMonitor);\n TextView humid = (TextView) findViewById(R.id.humidMonitor);\n TextView noisePol = (TextView) findViewById(R.id.noisePolMonitor);\n TextView carMon = (TextView) findViewById(R.id.coMonitor);\n float value = new BigInteger(tokens[0], 16).longValue();\n //System.out.println(value);\n float temp = (value * 50) / 65535;\n //System.out.println(temp);\n double tempFah = temp * 1.8000 + 32.00;\n String tempFahStr = String.valueOf(tempFah);\n //System.out.println(tempFah);\n int humidity = (Integer.parseInt(tokens[1],16) * 100) / 65535;\n String humidityDoe = String.valueOf(humidity);\n double noiseLev = Integer.parseInt(tokens[2],16);\n noiseLev = 20*(Math.log10(noiseLev/1024));\n String noiseLevStr = String.valueOf(noiseLev);\n int methane = Integer.parseInt(tokens[3],16);\n String methaneStr = String.valueOf(methane);\n tempDoe.setText(tempFahStr);\n humid.setText(humidityDoe);\n noisePol.setText(noiseLevStr);\n carMon.setText(methaneStr);\n }\n });\n\n\n\n float value = new BigInteger(tokens[0], 16).longValue(); //Done twice because, well, time\n //System.out.println(value); //issues...\n float temp = (value * 50) / 65535;\n //System.out.println(temp);\n double tempFah = temp * 1.8000 + 32.00;\n //System.out.println(tempFah);\n int humidity = (Integer.parseInt(tokens[1],16) * 100) / 65535;\n double noiseLev = Integer.parseInt(tokens[2],16);\n noiseLev = 20*(Math.log10(noiseLev/1024));\n int methane = Integer.parseInt(tokens[3],16);\n\n\n\n System.out.println(tempFah + \" \" + humidity + \" \" + noiseLev + \" \" + methane);\n\n writeLine(\"Pushing to Parse...\");\n //Parse.initialize(this, /*YOUR APP ID*/, /*YOUR CLIENT ID*/);\n ParseObject dataStuff = new ParseObject(\"SensorData\");\n dataStuff.put(\"User\",\"UserName\");\n dataStuff.put(\"Latitude\",\"Latitude Information\");\n dataStuff.put(\"Longitude\",\"Longitude Information\");\n dataStuff.put(\"Temperature\",tempFah);\n dataStuff.put(\"Humidity\",humidity);\n dataStuff.put(\"NoiseLevel\",noiseLev);\n dataStuff.put(\"Methane\",methane);\n dataStuff.saveInBackground();\n writeLine(\"Finished pushing.\");\n writeLine(\"Temperature (F): \" + tempFah);\n writeLine(\"Humidity: \" + humidity);\n writeLine(\"Noise Level: \" + noiseLev);\n writeLine(\"Methane: \" + methane);\n writeLine(\"Sensor Data Collected and pushed!\");\n\n }", "public interface DefaultSettings {\n int SAMPLERATE = 16000;\n int BEAT_LENGTH_IN_MS = 100;\n int BUFFER_SIZE = 4096;\n int MAX_TEMPO_VALUE = 400;\n int MIN_TEMP_VALUE = 1;\n\n int PRESS_TEMPO_CHANGE_TIME_IN_MS = 500;\n}", "public void WriteAtts(CommunicationBuffer buf)\n {\n if(WriteSelect(0, buf))\n buf.WriteString(host);\n if(WriteSelect(1, buf))\n buf.WriteString(sim);\n if(WriteSelect(2, buf))\n buf.WriteString(name);\n if(WriteSelect(3, buf))\n buf.WriteInt(ivalue);\n if(WriteSelect(4, buf))\n buf.WriteString(svalue);\n if(WriteSelect(5, buf))\n buf.WriteBool(enabled);\n }", "public static void OPLWriteReg(FM_OPL OPL, int r, int v) {\n\n OPL_CH CH;\n int slot;\n int block_fnum;\n switch (r & 0xe0) {\n case 0x00:\n /* 00-1f:controll */\n\n switch (r & 0x1f) {\n\n case 0x01:\n /* wave selector enable */\n if ((OPL.type & OPL_TYPE_WAVESEL) != 0) {\n /*RECHECK*/\n OPL.wavesel = ((v & 0x20) & 0xFF);\n if (OPL.wavesel == 0) {\n /* preset compatible mode */\n int c;\n for (c = 0; c < OPL.max_ch; c++) {\n OPL.P_CH[c].SLOT[SLOT1].wt_offset = 0;\n OPL.P_CH[c].SLOT[SLOT1].wavetable = SIN_TABLE;//OPL->P_CH[c].SLOT[SLOT1].wavetable = &SIN_TABLE[0];\n OPL.P_CH[c].SLOT[SLOT2].wavetable = SIN_TABLE;//OPL->P_CH[c].SLOT[SLOT2].wavetable = &SIN_TABLE[0];\n }\n }\n }\n return;\n case 0x02:\n /* Timer 1 */\n\n OPL.T[0] = (256 - v) * 4;\n break;\n case 0x03:\n /* Timer 2 */\n\n OPL.T[1] = (256 - v) * 16;\n return;\n case 0x04:\n /* IRQ clear / mask and Timer enable */\n\n if ((v & 0x80) != 0) {\n /* IRQ flag clear */\n\n OPL_STATUS_RESET(OPL, 0x7f);\n } else {\n /* set IRQ mask ,timer enable*/\n /*RECHECK*/\n\n int/*UINT8*/ st1 = ((v & 1) & 0xFF);\n /*RECHECK*/\n int/*UINT8*/ st2 = (((v >> 1) & 1) & 0xFF);\n\n /* IRQRST,T1MSK,t2MSK,EOSMSK,BRMSK,x,ST2,ST1 */\n OPL_STATUS_RESET(OPL, v & 0x78);\n OPL_STATUSMASK_SET(OPL, ((~v) & 0x78) | 0x01);\n /* timer 2 */\n if (OPL.st[1] != st2) {\n double interval = st2 != 0 ? (double) OPL.T[1] * OPL.TimerBase : 0.0;\n OPL.st[1] = st2;\n if (OPL.TimerHandler != null) {\n OPL.TimerHandler.handler(OPL.TimerParam + 1, interval);\n }\n }\n /* timer 1 */\n if (OPL.st[0] != st1) {\n double interval = st1 != 0 ? (double) OPL.T[0] * OPL.TimerBase : 0.0;\n OPL.st[0] = st1;\n if (OPL.TimerHandler != null) {\n OPL.TimerHandler.handler(OPL.TimerParam + 0, interval);\n }\n }\n }\n return;\n case 0x06:\n /* Key Board OUT */\n if ((OPL.type & OPL_TYPE_KEYBOARD) != 0) {\n if (OPL.keyboardhandler_w != null) {\n OPL.keyboardhandler_w.handler(OPL.keyboard_param, v);\n } else {\n //Log(LOG_WAR,\"OPL:write unmapped KEYBOARD port\\n\");\n }\n }\n return;\n case 0x07:\n /* DELTA-T controll : START,REC,MEMDATA,REPT,SPOFF,x,x,RST */\n if ((OPL.type & OPL_TYPE_ADPCM) != 0) {\n YM_DELTAT_ADPCM_Write(OPL.deltat, r - 0x07, v);\n }\n return;\n case 0x08:\n /* MODE,DELTA-T : CSM,NOTESEL,x,x,smpl,da/ad,64k,rom */\n OPL.mode = v;\n v &= 0x1f;\n /* for DELTA-T unit */\n case 0x09:\n /* START ADD */\n case 0x0a:\n case 0x0b:\n /* STOP ADD */\n case 0x0c:\n case 0x0d:\n /* PRESCALE */\n case 0x0e:\n case 0x0f:\n /* ADPCM data */\n case 0x10:\n /* DELTA-N */\n case 0x11:\n /* DELTA-N */\n case 0x12:\n /* EG-CTRL */\n if ((OPL.type & OPL_TYPE_ADPCM) != 0) {\n YM_DELTAT_ADPCM_Write(OPL.deltat, r - 0x07, v);\n }\n return;\n }\n break;\n case 0x20:\n /* am,vib,ksr,eg type,mul */\n\n slot = slot_array[r & 0x1f];\n if (slot == -1) {\n return;\n }\n set_mul(OPL, slot, v);\n return;\n case 0x40:\n slot = slot_array[r & 0x1f];\n if (slot == -1) {\n return;\n }\n set_ksl_tl(OPL, slot, v);\n return;\n case 0x60:\n slot = slot_array[r & 0x1f];\n if (slot == -1) {\n return;\n }\n set_ar_dr(OPL, slot, v);\n return;\n case 0x80:\n slot = slot_array[r & 0x1f];\n if (slot == -1) {\n return;\n }\n set_sl_rr(OPL, slot, v);\n return;\n case 0xa0:\n switch (r) {\n case 0xbd: /* amsep,vibdep,r,bd,sd,tom,tc,hh */ {\n int rkey = ((OPL.rythm ^ v) & 0xFF);\n OPL.ams_table = new IntArray(AMS_TABLE, (v & 0x80) != 0 ? AMS_ENT : 0);\n OPL.vib_table = new IntArray(VIB_TABLE, (v & 0x40) != 0 ? VIB_ENT : 0);\n OPL.rythm = ((v & 0x3f) & 0xFF);\n\n if ((OPL.rythm & 0x20) != 0) {\n /* BD key on/off */\n if ((rkey & 0x10) != 0) {\n if ((v & 0x10) != 0) {\n OPL.P_CH[6].op1_out[0] = OPL.P_CH[6].op1_out[1] = 0;\n OPL_KEYON(OPL.P_CH[6].SLOT[SLOT1]);\n OPL_KEYON(OPL.P_CH[6].SLOT[SLOT2]);\n } else {\n OPL_KEYOFF(OPL.P_CH[6].SLOT[SLOT1]);\n OPL_KEYOFF(OPL.P_CH[6].SLOT[SLOT2]);\n }\n }\n /* SD key on/off */\n if ((rkey & 0x08) != 0) {\n if ((v & 0x08) != 0) {\n OPL_KEYON(OPL.P_CH[7].SLOT[SLOT2]);\n } else {\n OPL_KEYOFF(OPL.P_CH[7].SLOT[SLOT2]);\n }\n }/* TAM key on/off */\n\n if ((rkey & 0x04) != 0) {\n if ((v & 0x04) != 0) {\n OPL_KEYON(OPL.P_CH[8].SLOT[SLOT1]);\n } else {\n OPL_KEYOFF(OPL.P_CH[8].SLOT[SLOT1]);\n }\n }\n /* TOP-CY key on/off */\n if ((rkey & 0x02) != 0) {\n if ((v & 0x02) != 0) {\n OPL_KEYON(OPL.P_CH[8].SLOT[SLOT2]);\n } else {\n OPL_KEYOFF(OPL.P_CH[8].SLOT[SLOT2]);\n }\n }\n /* HH key on/off */\n if ((rkey & 0x01) != 0) {\n if ((v & 0x01) != 0) {\n OPL_KEYON(OPL.P_CH[7].SLOT[SLOT1]);\n } else {\n OPL_KEYOFF(OPL.P_CH[7].SLOT[SLOT1]);\n }\n }\n }\n }\n return;\n }\n /* keyon,block,fnum */\n if ((r & 0x0f) > 8) {\n return;\n }\n CH = OPL.P_CH[r & 0x0f];\n if ((r & 0x10) == 0) {\n /* a0-a8 */\n\n block_fnum = (int) (CH.block_fnum & 0x1f00) | v;\n } else {\n /* b0-b8 */\n\n int keyon = (v >> 5) & 1;\n block_fnum = (int) (((v & 0x1f) << 8) | (CH.block_fnum & 0xff));\n if (CH.keyon != keyon) {\n if ((CH.keyon = keyon) != 0) {\n CH.op1_out[0] = CH.op1_out[1] = 0;\n OPL_KEYON(CH.SLOT[SLOT1]);\n OPL_KEYON(CH.SLOT[SLOT2]);\n } else {\n OPL_KEYOFF(CH.SLOT[SLOT1]);\n OPL_KEYOFF(CH.SLOT[SLOT2]);\n }\n }\n }\n /* update */\n if (CH.block_fnum != block_fnum) {\n int blockRv = 7 - (block_fnum >> 10);\n int fnum = block_fnum & 0x3ff;\n CH.block_fnum = block_fnum & 0xFFFFFFFFL;\n\n CH.ksl_base = KSL_TABLE[block_fnum >> 6];\n CH.fc = OPL.FN_TABLE[fnum] >> blockRv;\n CH.kcode = (int) ((CH.block_fnum >> 9) & 0xFF);\n if ((OPL.mode & 0x40) != 0 && (CH.block_fnum & 0x100) != 0) {\n CH.kcode |= 1;\n }\n CALC_FCSLOT(CH, CH.SLOT[SLOT1]);\n CALC_FCSLOT(CH, CH.SLOT[SLOT2]);\n }\n return;\n case 0xc0:\n /* FB,C */\n if ((r & 0x0f) > 8) {\n return;\n }\n CH = OPL.P_CH[r & 0x0f];\n {\n int feedback = (v >> 1) & 7;\n CH.FB = ((feedback != 0 ? (8 + 1) - feedback : 0) & 0xFF);\n CH.CON = ((v & 1) & 0xFF);\n set_algorythm(CH);\n }\n return;\n case 0xe0:\n /* wave type */\n\n slot = slot_array[r & 0x1f];\n if (slot == -1) {\n return;\n }\n CH = OPL.P_CH[slot / 2];\n if (OPL.wavesel != 0) {\n /* Log(LOG_INF,\"OPL SLOT %d wave select %d\\n\",slot,v&3); */\n CH.SLOT[slot & 1].wt_offset = (v & 0x03) * SIN_ENT;//CH.SLOT[slot & 1].wavetable = new IntSubArray(SIN_TABLE[(v & 0x03) * SIN_ENT]);\n }\n return;\n default:\n System.out.println(\"case =\" + (r & 0xe0) + \" r=\" + r + \" v=\" + v);\n break;\n }\n }", "public static void main(String[] args) throws FileNotFoundException, InterruptedException\n {\n String sensor1 = null;\n String sensor2 = null;\n String sensor1ID = \"28-03168c10ddff\";\n String sensor2ID = \"28-03168c3c82ff\";\n String sensor1data;\n String sensor2data;\n float sensor1converted;\n float sensor2converted;\n \n Statement statement = null; \n ResultSet result = null;\n \n String sensor1sql = \"\";\n String sensor2sql = \"\";\n \n \n DatabaseConnectionPi connection = new DatabaseConnectionPi();\n HeatingController LEDcontroller = new HeatingController();\n LEDcontroller.setHeatingInitialStatus(); \n \n while(true)\n {\n W1Master sensorsMaster = new W1Master();\n List<W1Device> sensorsList = sensorsMaster.getDevices(TmpDS18B20DeviceType.FAMILY_CODE);\n for(W1Device sensor : sensorsList)\n {\n //System.out.println(\"SENSOR ID: \" + sensor.getId());\n //float sensortemp = (float)((TemperatureSensor)sensor).getTemperature();\n \n //System.out.println(\"SENSOR TEMP: \" + sensortemp);\n String s = sensor.getId();\n String formattedSensorString = s.substring(0, s.length()-1); //removing last character from the sensor.getId() returned value\n if(formattedSensorString.equals(\"28-03168c10ddff\"))\n {\n float sensor1temp = (float)((TemperatureSensor)sensor).getTemperature();\n connection.sendSensor1Data(sensor.getId(), sensor1temp, getDate(), getTime());\n System.out.println(\"Sensor 1(Room): \" + sensor1temp);\n }\n \n else if(formattedSensorString.equals(\"28-03168c3c82ff\"))\n {\n float sensor2temp = (float)((TemperatureSensor)sensor).getTemperature(); \n connection.sendSensor2Data(sensor.getId(), sensor2temp, getDate(), getTime());\n System.out.println(\"Sensor 2(Outdoor): \" + sensor2temp);\n }\n }\n if(connection.getHeatingState() == 1)\n {\n LEDcontroller.setHeatingOn();\n }\n else if (connection.getHeatingState() == 0)\n {\n LEDcontroller.setHeatingOff();\n }\n TimeUnit.SECONDS.sleep(1);\n }\n }", "public void suspend()\r\n {\r\n chargeStatus = STATUS_NOT_CHARGING;\r\n connectionStatus = STATUS_OFFLINE;\r\n timerStop(); //...Suspends the update timer. \r\n }", "java.lang.String getSignal();", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickOptionComputation(3033, 611, 186.275786794074, (-1.0), 186.275786794074, 40);\n assertEquals(\"id=3033 unknown: vol = 186.275786794074 delta = -1.0\", string0);\n }", "private void TestSerialInput() {\r\n int now = GetMills(), nby = now - PrioSeriTime;\r\n SerialPortSwapper myPort = surrealPort;\r\n if (myPort == null) return; // otherwise test for input, fwd to listener..\r\n PrioSeriTime = now;\r\n if (SpeakEasy) if (nby > 222) // should be every ms, but seems not..\r\n System.out.println(FormatMillis(\" (LATE TSI) +\", nby)\r\n + FormatMillis(\" @ \", now));\r\n if (CountingPulses > 0) { // once each second, ask for current count..\r\n PCtime = PCtime + nby; // count actual elapsed time\r\n if (PCtime >= CountingPulses) { // always logs..\r\n Send3bytes(REPORT_PULSECOUNT, 0, 0); // pin + is ignored\r\n PCtime = PCtime - CountingPulses;\r\n }\r\n } //~if\r\n try {\r\n nby = surrealPort.getInputBufferBytesCount();\r\n if (nby <= 0) return;\r\n if (OneSerEvt == null) // ProcInp only looks at type, so keep this one..\r\n OneSerEvt = new SerialPortEvent(\r\n CommPortNo, SerialPort.MASK_RXCHAR, nby);\r\n ProcessInput(OneSerEvt);\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n }", "private void openRealTemp() {\n YCBTClient.appTemperatureMeasure(0x01, new BleDataResponse() {\n @Override\n public void onDataResponse(int i, float v, HashMap hashMap) {\n if (i == 0) {\n //success\n }\n }\n });\n }", "public String toString(){\r\n\t\treturn(ssid+\",\"+mac+\",\"+frequency+\",\"+signal+\",\");\r\n\t}", "public synchronized void m29983k() {\n if (this.f23294u.isEmpty()) {\n if (this.f23286B == null) {\n this.f23286B = new C7030c(7, null, this.f23290J);\n }\n if (this.f23286B.f23372f == null) {\n this.f23286B = new C7030c(7, null, this.f23290J);\n }\n if (XGPushConfig.enableDebug) {\n C6864a.m29298c(\"TpnsChannel\", \"Action -> send heartbeat \");\n }\n m29967a(-1, this.f23286B);\n if ((f23266a > 0 && f23266a % 3 == 0) || f23266a == 2) {\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n C7056i.m30212h(C6973b.m29776f());\n }\n });\n }\n }\n m29985m();\n C6860a.m29257b(C6973b.m29776f());\n C7059f.m30231a(C6973b.m29776f()).mo34155a();\n m29980i();\n if (XGPushConfig.isLocationEnable(C6973b.m29776f())) {\n if (f23264F == 0) {\n f23264F = C7055h.m30167a(C6973b.m29776f(), Constants.LOC_REPORT_TIME, 0);\n }\n long currentTimeMillis = System.currentTimeMillis();\n if (f23264F == 0 || Math.abs(currentTimeMillis - f23264F) > ((long) f23281p)) {\n final JSONObject reportLocationJson = CustomDeviceInfos.getReportLocationJson(C6973b.m29776f());\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n C7046a.m30130b(C6973b.m29776f(), \"location\", reportLocationJson);\n }\n });\n f23264F = currentTimeMillis;\n C7055h.m30171b(C6973b.m29776f(), Constants.LOC_REPORT_TIME, currentTimeMillis);\n }\n }\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.timerID + \"|\" + this.delay + \"|\" + this.flags + \"|\" + this.message;\n\t}", "protected void onGetOnTimerSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "public void testIO(){\r\n // Don't do this every iteration because it's too expensive\r\n if(testIOTimer.get() < 0.5) {\r\n return;\r\n }\r\n testIOTimer.reset();\r\n NetworkTable table = NetworkTable.getTable(\"Status\");\r\n table.putNumber(\"dioData\", digitalModule.getAllDIO());\r\n for(int i = 1; i <= 10; i++) {\r\n table.putNumber(\"pwm\" + i, digitalModule.getPWM(i));\r\n }\r\n \r\n for(int i = 1; i <= 8; i++) {\r\n table.putNumber(\"analog\" + i, ((int)(analogModule.getVoltage(i) * 1000) / 1000.0));\r\n }\r\n }", "protected void onGetTemperatureSetting1(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickOptionComputation(4, (-1897), 0.0, 325.9241391306, 13, 1470.6510545);\n assertEquals(\"id=4 unknown: vol = 0.0 delta = N/A\", string0);\n }", "@Override\n public void testPeriodic() {\n //Diagnostics.writeString(\"State\", \"TEST\");\n }", "public String getRemoteRingbackTone();", "double getStaStart();", "protected void onGetTemperatureSetting2(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "private String pedometerConversion() {\n return (record[20] & 255) + \"\";\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickOptionComputation(98, (-2146523664), 1.0, 0.0, 98, 568.38);\n assertEquals(\"id=98 unknown: vol = 1.0 delta = 0.0\", string0);\n }", "private void testCommands() {\n Boolean ready = false;\n String rpmResult = null;\n String speedResult = null;\n String fuelResult = \"\" + -1 + \" L/100km\";\n String fuelFlow = \"\" + -1 + \" L/h\";\n String odometer = \"0 Km\";\n String consumption = \"0 L\";\n float tankLevel = 0.f;\n float finalTankLevel = 0.f;\n boolean throttleSupported = false;\n boolean fuelLevelSupported = false;\n FuelLevelCommand fuelLevelCommand = new FuelLevelCommand();\n RPMCommand engineRpmCommand = new RPMCommand();\n SpeedCommand speedCommand = new SpeedCommand();\n FuelEconomyObdCommand fuelEconomy = new FuelEconomyObdCommand(currentVehicle.getFuelTye(), currentVehicle.getCommands());\n ThrottlePositionCommand throttlePositionObdCommand = new ThrottlePositionCommand();\n try {\n throttlePositionObdCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n throttleSupported = true;\n\n } catch (UnsupportedCommandException e) {\n throttleSupported = false;\n Log.d(TAG, \"throttleSupported false\");\n } catch (IOException e) {\n throttleSupported = false;\n Log.d(TAG, \"throttle IO exception\");\n } catch (InterruptedException e) {\n throttleSupported = false;\n Log.d(TAG, \"throttle Interrupted exception\");\n\n }\n\n try {\n speedCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n fuelEconomy.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n ready = true;\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (UnableToConnectException e) {\n Log.d(TAG, \"UnableToConnectException inside\");\n //Toast.makeText(currContext,\"Unable to connect, try again\",Toast.LENGTH_SHORT).show();\n this.cancel(true);\n try {\n this.finalize();\n } catch (Throwable throwable) {\n throwable.printStackTrace();\n }\n }\n try {\n fuelLevelCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n tankLevel = fuelLevelCommand.getFuelLevel();\n Log.d(TAG, \"initial tankLevel: \" + tankLevel);\n fuelLevelSupported = true;\n } catch (IOException e) {\n tankLevel = -1.f;\n Log.d(TAG, \"error initial tankLevel: \" + tankLevel);\n fuelLevelSupported = false;\n } catch (InterruptedException e) {\n tankLevel = -1.f;\n fuelLevelSupported = false;\n Log.d(TAG, \"error initial tankLevel: \" + tankLevel);\n } catch (Exception e) {\n //here nodata exception occurs when the command is not supported, but catching it seems not to work\n tankLevel = -1.f;\n fuelLevelSupported = false;\n Log.d(TAG, \"error initial tankLevel: \" + tankLevel);\n }\n\n //getting time in order to determine distance driven\n long previousTime = System.currentTimeMillis();\n long previousSpeed = speedCommand.getMetricSpeed();\n float previousFlow = fuelEconomy.getFlow();\n //distance driven\n float kmODO = 0.f;\n float fuelCons = 0.f;\n while (!Thread.currentThread().isInterrupted() && ready) {\n try {\n long currentTime = System.currentTimeMillis();\n long deltaTime = currentTime - previousTime;\n previousTime = currentTime;\n engineRpmCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n speedCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n\n rpmResult = engineRpmCommand.getFormattedResult();\n speedResult = speedCommand.getFormattedResult();\n Log.d(TAG, \"deltaTime: \" + deltaTime);\n //calculation of distance driven\n if (fineMode) {\n kmODO += ((float) speedCommand.getMetricSpeed()) * ((float) deltaTime) / 1000 / 3600;\n odometer = \"\" + String.format(\"%.3f\", kmODO) + \" Km\";\n setDistanceDriven(kmODO);\n } else {\n long currSpeed = speedCommand.getMetricSpeed();\n long avgSpeed = (currSpeed + previousSpeed) / 2;\n previousSpeed = currSpeed;\n kmODO += ((float) avgSpeed) * ((float) deltaTime) / 1000 / 3600;\n odometer = \"\" + String.format(\"%.3f\", kmODO) + \" Km\";\n setDistanceDriven(kmODO);\n }\n\n //managing fuel flow rate = 0 when the car is moving but you are not accelerating\n if (engineRpmCommand.getRPM() >= 1200 && throttleSupported) {\n throttlePositionObdCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n if (((int) throttlePositionObdCommand.getPercentage()) == 0) {\n fuelFlow = \"\" + 0 + \" L/h\";\n fuelResult = \"\" + 0 + \" L/100km\";\n //cut off\n fuelEconomy.setFlow(0.f);\n } else {\n fuelEconomy.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n fuelFlow = \"\" + String.format(\"%.3f\", fuelEconomy.getFlow()) + \" L/h\";\n fuelResult = fuelEconomy.getFormattedResult();\n }\n } else {\n fuelEconomy.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n //fuelFlow = \"\" + fuelEconomy.getFlow() + \" L/h\";\n fuelFlow = \"\" + String.format(\"%.3f\", fuelEconomy.getFlow()) + \" L/h\";\n if (speedCommand.getMetricSpeed() > 1) {\n fuelResult = fuelEconomy.getFormattedResult();\n } else {\n fuelResult = \"---\";\n }\n }\n //calculating fuel consumed\n if (fineMode) {\n fuelCons += ((float) deltaTime) / 1000 * fuelEconomy.getFlow() / 3600;\n consumption = \"\" + String.format(\"%.3f\", fuelCons) + \" L\";\n setFuelUsed(fuelCons);\n } else {\n float currFlow = fuelEconomy.getFlow();\n float avgFlow = (previousFlow + currFlow) / 2;\n previousFlow = currFlow;\n fuelCons += ((float) deltaTime) / 1000 * avgFlow / 3600;\n consumption = \"\" + String.format(\"%.3f\", fuelCons) + \" L\";\n setFuelUsed(fuelCons);\n }\n if (fuelLevelSupported) {\n fuelLevelCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n if (fuelLevelCommand.getFuelLevel() > 1.0f && tankLevel != -1.0f) {\n finalTankLevel = tankLevel - fuelLevelCommand.getFuelLevel();\n Log.d(TAG, \"Actual level: \" + fuelLevelCommand.getFuelLevel());\n Log.d(TAG, \"intermediate tankLevel: \" + finalTankLevel);\n } else {\n Log.d(TAG, \"intermediate tankLevel: \" + finalTankLevel);\n }\n }\n\n\n //Saving data to external memory for analysis\n String currentDateandTime = new SimpleDateFormat(\"yyyy-MM-dd\").format(new Date());\n fileUtilities.write(\"DataEMission\" + currentDateandTime + \".txt\", engineRpmCommand.getRPM() + \"\\t\" + speedCommand.getMetricSpeed() + \"\\t\" +/*fuelEconomy.getLitersPer100Km()*/fuelEconomy.getFlow() + \"\\t\" + currentTime + \"\\n\");\n //saving to userCache, consider to use always coarseMode (finemode=false) to limit database updates\n //you can also add if trip is ended (low rpm)\n Bundle b = toBundle(fuelEconomy.getFlow(),speedCommand.getMetricSpeed(),getDistanceDriven(),engineRpmCommand.getRPM(),getFuelUsed());\n Intent i= new Intent(currContext, OBDChangeIntentService.class);\n i.putExtra(\"VehicleData\",b);\n startService(i);\n } catch (IOException e) {\n\n e.printStackTrace();\n showEnd(kmODO, fuelCons, finalTankLevel);\n resetUI();\n break;\n } catch (InterruptedException e) {\n e.printStackTrace();\n showEnd(kmODO, fuelCons, finalTankLevel);\n e.printStackTrace();\n break;\n } catch (NoDataException e) {\n Log.d(TAG, \"final tankLevel: \" + finalTankLevel);\n\n showEnd(kmODO, fuelCons, finalTankLevel);\n resetUI();\n e.printStackTrace();\n break;\n } catch (IndexOutOfBoundsException e) {\n fuelResult = \"NO DATA\";\n } catch (Exception e) {\n e.printStackTrace();\n showEnd(kmODO, fuelCons, finalTankLevel);\n resetUI();\n break;\n }\n\n Log.d(TAG, \"RPM: \" + rpmResult);\n Log.d(TAG, \"Speed: \" + speedResult);\n Log.d(TAG, \"ODO: \" + odometer);\n //publishing results to update the ui\n publishProgress(speedResult, rpmResult, fuelResult, fuelFlow, odometer, consumption);\n if (!connected) {\n Log.d(TAG, \"Disconnect button pressed, terminating...\");\n showEnd(kmODO, fuelCons, finalTankLevel);\n resetUI();\n break;\n }\n if (!bluetoothSocket.isConnected()) {\n Log.d(TAG, \"Bluetooth not connected, final tankLevel: \" + finalTankLevel);\n showEnd(kmODO, fuelCons, finalTankLevel);\n resetUI();\n break;\n }\n if (!fineMode) {\n try {\n Thread.sleep(30000);\n //TODO handle better the coarse mode, implementing a service that retrieves data when needed (location update)\n //previousTime = System.currentTimeMillis();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n if (engineRpmCommand.getRPM() < 100) {\n Log.d(TAG, \"Low RPM, final tankLevel: \" + finalTankLevel);\n showEnd(kmODO, fuelCons, finalTankLevel);\n resetUI();\n break;\n }\n }\n }", "public HashMap<String,SLR1_automat.State> get_switches();", "private void updateLightSensorValues()\n {\n sendMessage((byte)Constants.LIGHTSENSVAL,(byte)Constants.REQ);\n try {\n Thread.sleep(4000);\n } catch(InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n sendMessage((byte)Constants.POTVAL, (byte)Constants.REQ);\n if(progPotToggleButton.isChecked())\n {\n int x =0;\n try {\n x = Integer.parseInt(progValueEditText.getText().toString());\n if(x>=0 && x<256)\n sendMessage((byte)Constants.PROGVAL,(byte)x);\n try {\n Thread.sleep(4000);\n } catch(InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n sendMessage((byte)Constants.USEPOT,(byte)Constants.NO);\n } catch (NumberFormatException e) {\n messageView.append(\"int för helvete\");\n }\n }else\n sendMessage((byte)Constants.USEPOT,(byte)Constants.YES);\n\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickGeneric(13, 48, (-2212.2532659315993));\n assertEquals(\"id=13 RTVolume=-2212.2532659315993\", string0);\n }", "private void setMeteredInterface(java.lang.String r10, boolean r11) {\n /*\n r9 = this;\n if (r10 != 0) goto L_0x0003;\n L_0x0002:\n return;\n L_0x0003:\n r0 = \"network_management\";\n r0 = android.os.ServiceManager.getService(r0);\n if (r0 != 0) goto L_0x0014;\n L_0x000b:\n r1 = \"network-policy\";\n r2 = \"setIfWhitelist networkManager is null\";\n android.util.Log.e(r1, r2);\n return;\n L_0x0014:\n r1 = android.os.Parcel.obtain();\n r2 = android.os.Parcel.obtain();\n r3 = \"bandwidth\";\n r4 = 2;\n r4 = new java.lang.String[r4];\n if (r11 != 0) goto L_0x0026;\n L_0x0023:\n r5 = \"enable_ifwhitelist\";\n goto L_0x0028;\n L_0x0026:\n r5 = \"disable_ifwhitelist\";\n L_0x0028:\n r6 = 0;\n r4[r6] = r5;\n r5 = 1;\n r4[r5] = r10;\n r1.writeString(r3);\t Catch:{ Exception -> 0x005e }\n r1.writeArray(r4);\t Catch:{ Exception -> 0x005e }\n r7 = 201; // 0xc9 float:2.82E-43 double:9.93E-322;\t Catch:{ Exception -> 0x005e }\n r0.transact(r7, r1, r2, r6);\t Catch:{ Exception -> 0x005e }\n r6 = r9.sIncreaseCmdCount;\t Catch:{ Exception -> 0x005e }\n r6 = r6 + r5;\t Catch:{ Exception -> 0x005e }\n r9.sIncreaseCmdCount = r6;\t Catch:{ Exception -> 0x005e }\n r5 = \"network-policy\";\t Catch:{ Exception -> 0x005e }\n r6 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x005e }\n r6.<init>();\t Catch:{ Exception -> 0x005e }\n r7 = \"\";\t Catch:{ Exception -> 0x005e }\n r6.append(r7);\t Catch:{ Exception -> 0x005e }\n r6.append(r2);\t Catch:{ Exception -> 0x005e }\n r6 = r6.toString();\t Catch:{ Exception -> 0x005e }\n android.util.Log.e(r5, r6);\t Catch:{ Exception -> 0x005e }\n if (r1 == 0) goto L_0x0059;\n L_0x0056:\n r1.recycle();\n L_0x0059:\n if (r2 == 0) goto L_0x0080;\n L_0x005b:\n goto L_0x007d;\n L_0x005c:\n r5 = move-exception;\n goto L_0x0081;\n L_0x005e:\n r5 = move-exception;\n r6 = \"HwNetworkPolicy\";\t Catch:{ all -> 0x005c }\n r7 = new java.lang.StringBuilder;\t Catch:{ all -> 0x005c }\n r7.<init>();\t Catch:{ all -> 0x005c }\n r8 = \"setIfWhitelist-->\";\t Catch:{ all -> 0x005c }\n r7.append(r8);\t Catch:{ all -> 0x005c }\n r7.append(r5);\t Catch:{ all -> 0x005c }\n r7 = r7.toString();\t Catch:{ all -> 0x005c }\n android.util.Slog.e(r6, r7);\t Catch:{ all -> 0x005c }\n if (r1 == 0) goto L_0x007b;\n L_0x0078:\n r1.recycle();\n L_0x007b:\n if (r2 == 0) goto L_0x0080;\n L_0x007d:\n r2.recycle();\n L_0x0080:\n return;\n L_0x0081:\n if (r1 == 0) goto L_0x0086;\n L_0x0083:\n r1.recycle();\n L_0x0086:\n if (r2 == 0) goto L_0x008b;\n L_0x0088:\n r2.recycle();\n L_0x008b:\n throw r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.net.HwNetworkPolicyManagerService.setMeteredInterface(java.lang.String, boolean):void\");\n }", "private String tempConversion() {\n int reading = ((record[17] & 255) + ((record[21] & 0x30) << 4));\n\n double voltage = (reading * 3.3) / 1024;\n return formatter.format((voltage - .6) / .01);\n\n }", "public void mo33398h() {\n String str = \"com.tencent.android.tpush.service.channel.heartbeatIntent.pullup\";\n String str2 = \"TpnsChannel\";\n try {\n if (this.f23285A == null) {\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"android.intent.action.SCREEN_ON\");\n intentFilter.addAction(\"android.intent.action.SCREEN_OFF\");\n intentFilter.addAction(\"android.intent.action.USER_PRESENT\");\n intentFilter.addAction(str);\n C6973b.m29776f().registerReceiver(this.f23292L, intentFilter);\n this.f23285A = PendingIntent.getBroadcast(C6973b.m29776f(), 0, new Intent(str), 134217728);\n }\n long currentTimeMillis = System.currentTimeMillis();\n if (f23282q > f23278m) {\n f23282q = f23278m;\n }\n if (XGPushConfig.isForeignWeakAlarmMode(C6973b.m29776f())) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"schedulePullUpHeartbeat WaekAlarmMode heartbeatinterval: \");\n sb.append(f23280o);\n sb.append(\" ms\");\n C6864a.m29305f(str2, sb.toString());\n f23282q = f23280o;\n }\n f23282q = C7055h.m30166a(C6973b.m29776f(), \"com.tencent.android.xg.wx.HeartbeatIntervalMs\", f23282q);\n long j = currentTimeMillis + ((long) f23282q);\n mo33391b(true);\n C7045d.m30117a().mo34149a(0, j, this.f23285A);\n } catch (Throwable th) {\n C6864a.m29302d(str2, \"scheduleHeartbeat error\", th);\n }\n }", "public String recvSensorData(){\n\t\tSystem.out.println(\"Waiting for sensor data!\");\n\t\ttry{\n\t\t\t// timer.scheduleAtFixedRate(new TimerTask() {\n\t\t\t// \t@Override\n\t\t\t// \tpublic void run() {\n\t\t\t// \t\tSystem.out.println(\"No response for sensor data\");\n\t\t\t// \t\tsendMsg(\"S\",\"PC2AR\");\n\t\t\t// \t}\n\t\t\t// }, 10*1000, 10*1000);\n\t\t\tString input = br.readLine();\n\t\t\tif (input != null && input.length() > 0){\n\t\t\t\tSystem.out.println(input);\n\t\t\t\t// timer.cancel();\n\t\t\t\treturn input;\n\t\t\t}\n\t\t} catch (IOException e){\n\t\t\tSystem.out.println(\"receive message --> IO Exception\");\n\t\t} catch (Exception e){\n\t\t\tSystem.out.println(\"receive message --> Exception\");\n\t\t}\n\n\t\treturn null;\n\t}", "public synchronized void m29984l() {\n if (XGPushConfig.enableDebug) {\n C6864a.m29298c(\"TpnsChannel\", \"Action -> send heartbeatSlave \");\n }\n f23274i++;\n mo33398h();\n if (C6973b.m29763a().mo33291f(C6973b.m29776f())) {\n if (!C7048a.m30142d(C6973b.m29776f())) {\n C6864a.m29308i(Constants.ServiceLogTag, \"network is unreachable ,give up and go on slave service\");\n } else if (C6973b.m29776f() != null) {\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n boolean isForeiginPush = XGPushConfig.isForeiginPush(C6973b.m29776f());\n String str = Constants.ACTION_SLVAE_2_MAIN;\n String str2 = Constants.ServiceLogTag;\n if (isForeiginPush) {\n C6864a.m29308i(str2, \"isForeiginPush network is ok , switch to main service\");\n C6973b.m29767a(C6973b.m29776f(), str, 0);\n } else if (C6979b.m29795a(C6973b.m29776f()).mo33300b()) {\n C6864a.m29308i(str2, \"network is ok , switch to main service\");\n C6973b.m29767a(C6973b.m29776f(), str, 0);\n } else {\n C6864a.m29308i(str2, \"network is error , go on slave service\");\n }\n }\n });\n } else {\n C6864a.m29308i(Constants.ServiceLogTag, \"PushServiceManager.getInstance().getContext() is null\");\n }\n }\n }", "boolean doCommandDeviceTimerGet();", "public void setRMTIndicator(Record inputRecord);", "private String m1032a(String str, int i) {\n String[] split = this.f682B.split(\"\\\\*\")[i].split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n if (str.equals(\"lac\")) {\n return split[0];\n }\n if (str.equals(\"cellid\")) {\n return split[1];\n }\n if (str.equals(\"signal\")) {\n return split[2];\n }\n return null;\n }", "@SuppressWarnings(\"unused\")\npublic interface FXStatusPacket extends OutbackPacket, BatteryVoltagePacket {\n\t\n\t// region Packet Values\n\t/**\n\t * Should be serialized as \"inverterCurrentRaw\" if serialized at all\n\t * @return The raw inverter current.\n\t */\n\tint getInverterCurrentRaw();\n\t\n\t/**\n\t * Should be serialized as \"chargerCurrentRaw\" if serialized at all\n\t * @return The raw charger current\n\t */\n\tint getChargerCurrentRaw();\n\t\n\t/**\n\t * Should be serialized as \"buyCurrentRaw\" if serialized at all\n\t * @return The raw buy current\n\t */\n\tint getBuyCurrentRaw();\n\t\n\t/**\n\t * Should be serialized as \"inputVoltageRaw\" if serialized at all\n\t * @return The raw ac input voltage\n\t */\n\tint getInputVoltageRaw();\n\t\n\t/**\n\t * Should be serialized as \"outputVoltageRaw\" if serialized at all\n\t * @return The raw ac output voltage\n\t */\n\tint getOutputVoltageRaw();\n\t\n\t/**\n\t * Should be serialized as \"sellCurrentRaw\" if serialized at all\n\t * @return The raw sell current\n\t */\n\tint getSellCurrentRaw();\n\t\n\t/**\n\t * Should be serialized as \"operatingMode\"\n\t *\n\t * AKA FX operational mode\n\t * @return The operating mode code which represents a single OperationalMode\n\t */\n\tint getOperatingMode();\n\t\n\t/**\n\t * Should be serialized as \"errorMode\"\n\t * @return The error mode bitmask which represents a varying number of ErrorModes\n\t */\n\tint getErrorMode();\n\t\n\t/**\n\t * Should be serialized as \"acMode\"\n\t * @return The AC mode code which represents a single ACMode\n\t */\n\tint getACMode();\n\t\n\t/**\n\t * Should be serialized as \"misc\"\n\t * @return The misc mode bitmask which represents a varying number of MiscModes\n\t */\n\tint getMisc();\n\t\n\t/**\n\t * Should be serialized as \"warningMode\"\n\t * @return The warning mode bitmask which represents a varying number of WarningModes\n\t */\n\tint getWarningMode();\n\t\n\t/**\n\t * Should be serialized as \"chksum\"\n\t * @return The check sum\n\t */\n\tint getChksum();\n\t// endregion\n\t\n\t// region Adjusted Currents and Voltages\n\t/**\n\t * Should be serialized as \"inverterCurrent\"\n\t * @return The inverter current\n\t */\n\tint getInverterCurrent();\n\n\t/**\n\t * Should be serialized as \"chargerCurrent\"\n\t * @return The charger current\n\t */\n\tint getChargerCurrent();\n\n\t/**\n\t * Should be serialized as \"buyCurrent\"\n\t * @return The buy current\n\t */\n\tint getBuyCurrent();\n\n\t/**\n\t * Should be serialized as \"inputVoltage\"\n\t * @return The ac input voltage\n\t */\n\tint getInputVoltage();\n\n\t/**\n\t * Should be serialized as \"outputVoltage\"\n\t * @return The ac output voltage\n\t */\n\tint getOutputVoltage();\n\n\t/**\n\t * Should be serialized as \"sellCurrent\"\n\t * @return The sell current\n\t */\n\tint getSellCurrent();\n\t// endregion\n\n\t// region Convenience Strings\n\n\t/**\n\t * Should be serialized as \"operatingModeName\"\n\t * @return The name of the operating mode\n\t */\n\tString getOperatingModeName();\n\n\t/**\n\t * Should be serialized as \"errors\"\n\t * @return The errors represented as a string\n\t */\n\tString getErrorsString();\n\n\t/**\n\t * Should be serialized as \"acModeName\"\n\t * @return The name of the ac mode\n\t */\n\tString getACModeName();\n\n\t/**\n\t * Should be serialized as \"miscModes\"\n\t * @return The misc modes represented as a string\n\t */\n\tString getMiscModesString();\n\n\t/**\n\t * Should be serialized as \"warnings\"\n\t * @return The warning modes represented as a string\n\t */\n\tString getWarningsString();\n\t// endregion\n}", "public void switchSmart(){\n\r\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseBrightnessCmd(seekBarBrightness.getProgress()), 3, seekBarBrightness.getProgress(), item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n\r\n //String CMD_HSV = \"{\\\"id\\\":1,\\\"method\\\":\\\"set_hsv\\\",\\\"params\\\":[0, 0, \\\"smooth\\\", 30]}\\r\\n\";\r\n //write(CMD_HSV, 0, 0);\r\n\r\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseRGBCmd(msAccessColor(Color.WHITE)), 0, 0, item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n\r\n }", "private void m29985m() {\n String str = \"com.tencent.android.tpush.service.channel.heartbeatIntent\";\n String str2 = \"TpnsChannel\";\n try {\n if (this.f23299z == null) {\n C6973b.m29776f().registerReceiver(new BroadcastReceiver() {\n public void onReceive(Context context, Intent intent) {\n C7005b.m29964a().m29983k();\n }\n }, new IntentFilter(str));\n this.f23299z = PendingIntent.getBroadcast(C6973b.m29776f(), 0, new Intent(str), 134217728);\n }\n long currentTimeMillis = System.currentTimeMillis();\n if (f23279n > f23278m) {\n f23279n = f23278m;\n }\n if (XGPushConfig.isForeignWeakAlarmMode(C6973b.m29776f())) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"scheduleHeartbeat WaekAlarmMode heartbeatinterval: \");\n sb.append(f23280o);\n sb.append(\" ms\");\n C6864a.m29305f(str2, sb.toString());\n f23279n = f23280o;\n }\n f23279n = C7055h.m30166a(C6973b.m29776f(), \"com.tencent.android.xg.wx.HeartbeatIntervalMs\", f23279n);\n C7045d.m30117a().mo34149a(0, currentTimeMillis + ((long) f23279n), this.f23299z);\n } catch (Throwable th) {\n C6864a.m29302d(str2, \"scheduleHeartbeat error\", th);\n }\n }", "TimerStatus onTimer();", "@Override\n\tpublic void teleopPeriodic() {\n\t\t\n\t\t\n\t\t\n//\t\tSmartDashboard.putBoolean(\"Alliance_R\", alliance_R_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"Alliance_L\", alliance_L_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"Scale_R\", R_scaleState);\n//\t\tSmartDashboard.putBoolean(\"Scale_L\", L_scaleState);\n//\t\tSmartDashboard.putBoolean(\"oppisite_R\", opposite_R_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"opposite_L\", opposite_L_SwitchState);\n//\t\t\n//\t\tSmartDashboard.putNumber(\"right Vel\", chassis.rightMagVelocity());\n//\t\tSmartDashboard.putNumber(\"left Vel\", chassis.leftMagVelocity());\n//\t\tSmartDashboard.putNumber(\"right Pos\", chassis.rightMagPosition());\n//\t\tSmartDashboard.putNumber(\"left Pos\", chassis.leftMagPosition());\n\t\tSmartDashboard.putData(\"gyro\", chassis.navx);\n\t\tSmartDashboard.putData(\"Chassis\",chassis);\n\t\tSmartDashboard.putBoolean(\"shift is high\", chassis.shiftIsHigh);\n\t\tSmartDashboard.putNumber(\"Arm Pot Value\", Robot.arm.getArmPot());\n\t\tSmartDashboard.putNumber(\"Elevator Encoder\", elevator.getElevatorMagPosition());\n\t\t\n//\t\tSmartDashboard.putNumber(\"TurnPID\", chassis.turnSpeed.getSpeed());\n//\t\tSmartDashboard.putData(\"TurnController\", chassis.turnController);\n//\t\tSmartDashboard.putData(\"Turn\",new Turn());\t\t\n//\t\tSmartDashboard.putNumber(\"leftDistPID\", chassis.leftDistanceSpeed.getSpeed());\n//\t\tSmartDashboard.putNumber(\"rightDistPID\", chassis.rightDistanceSpeed.getSpeed());\n//\t\tSmartDashboard.putData(\"right drive controller\", chassis.rightDistanceController);\n//\t\tSmartDashboard.putData(\"left drive controller\", chassis.leftDistanceController);\t\t\t\n//\t\tSmartDashboard.putData(\"test\",new drivefrompoint());\n\t\tSmartDashboard.putData(\"Arm PID\", arm.armPID);\n\t\tSmartDashboard.putData(\"Elevator PID\", elevator.elePID);\n\t\tSmartDashboard.putData(\"Elevator Subsystem\", elevator);\n\t\tSmartDashboard.putData(\"Hold Climb Command\", new LowerElevatorManual(0.1));\n\t\t\n\t\tSmartDashboard.putNumber(\"intake lead current\", Robot.intake.intakeLeader.getOutputCurrent());\n\t\tSmartDashboard.putNumber(\"intake follow current\", Robot.intake.intakeFollower.getOutputCurrent());\n\t\t\n\t\tSmartDashboard.putNumber(\"arm current\", arm.arm.getOutputCurrent());\n\t\t//SmartDashboard.putBoolean(\"Upper Elevator Limit Switch\", elevato);\n\t\t\n\t\tScheduler.getInstance().run();\n\t\t\n\t\t\n\t\tif(!elevator.getBottomElevatorLimit()) {\n\t\t\televator.resetElevatorMag();\n\t\t}\n\t\t\n\t}", "java.lang.String getTxpower();", "public interface LWTRTState {\n\t\n\t/**\n\t * Aktiver Verbindungsaufbau (1. Schritt)\n\t * Dienstnehmer uebertraegt Wunsch zum Verbindungsaufbau.\n\t * \n\t * @return Vorbereitete Antwort-PDU oder <code>null</code> wenn nicht geantwortet wird.\n\t * @throws IncorrectTransitionException wenn der Zustandsuebergang nicht vorgesehen ist\n\t */\n\tpublic LWTRTPdu connect() throws IncorrectTransitionException;\n\t\n\t/**\n\t * Passiver Verbindungsaufbau (1. Schritt)\n\t * Wunsch zum Verbindungsaufbau wird ueber eine PDU mitgeteilt\n\t * \n\t * @return Vorbereitete Antwort-PDU oder <code>null</code> wenn nicht geantwortet wird.\n\t * @throws IncorrectTransitionException wenn der Zustandsuebergang nicht vorgesehen ist\n\t */\n\tpublic LWTRTPdu connectReq() throws IncorrectTransitionException;\n\t\n\t/**\n\t * Aktiver Verbindungsaufbau (2. Schritt)\n\t * Best+tigung des Verbindungsaufbaus wird +ber eine PDU mitgeteilt\n\t * @return Vorbereitet Antwort-PDU oder <code>null</code> wenn nicht geantwortet wird.\n\t * @throws IncorrectTransitionException wenn der Zustandsuebergang nicht vorgesehen ist\n\t */\n\tpublic LWTRTPdu connectRsp() throws IncorrectTransitionException;\n\n\t/**\n\t * Passiver Verbindungsaufbau (2. Schritt)\n\t * Dienstnehmer bestaetigt den Wunsch zum Verbindungsaufbau\n\t * \n\t * @return Vorbereitete Antwort-PDU oder <code>null</code> wenn nicht geantwortet wird.\n\t * @throws IncorrectTransitionException wenn der Zustandsuebergang nicht vorgesehen ist\n\t */\n\tpublic LWTRTPdu connectAcpt() throws IncorrectTransitionException;\n\t\n\t/**\n\t * Aktiver Verbindungsabbau (1. Schritt)\n\t * Dienstnehmer uebertraegt Wunsch zum Verbindungsabbau.\n\t * \n\t * @return Vorbereitete Antwort-PDU oder <code>null</code> wenn nicht geantwortet wird.\n\t * @throws IncorrectTransitionException wenn der Zustandsuebergang nicht vorgesehen ist\n\t */\n\tpublic LWTRTPdu disConnect() throws IncorrectTransitionException;\n\t\n\t/**\n\t * Passiver Verbindungsabbau (1. Schritt)\n\t * Wunsch zum Verbindungsabbau des Verbindungspartners wird +ber eine PDU mitgeteilt\n\t * \n\t * @return Vorbereitete Antwort-PDU oder <code>null</code> wenn nicht geantwortet wird.\n\t * @throws IncorrectTransitionException wenn der Zustandsuebergang nicht vorgesehen ist\n\t */\n\tpublic LWTRTPdu disConnectReq() throws IncorrectTransitionException;\n\t\n\t/**\n\t * Aktiver Verbindungsabbau (2. Schritt)\n\t * Best+tigung des Verbindungsaufbaus wird +ber eine PDU mitgeteilt\n\t * \n\t * @return Vorbereitete Antwort-PDU oder <code>null</code> wenn nicht geantwortet wird.\n\t * @throws IncorrectTransitionException wenn der Zustandsuebergang nicht vorgesehen ist\n\t */\n\tpublic LWTRTPdu disConnectRsp() throws IncorrectTransitionException;\n\n\t/**\n\t * Passiver Verbindungsabbau (2. Schritt)\n\t * Dienstnehmer bestaetigt die abgebaute Verbindung\n\t * \n\t * @return Vorbereitete Antwort-PDU oder <code>null</code> wenn nicht geantwortet wird.\n\t * @throws IncorrectTransitionException wenn der Zustandsuebergang nicht vorgesehen ist\n\t */\n\tpublic LWTRTPdu disConnectAcpt() throws IncorrectTransitionException;\n\t\n\t/**\n\t * Timeout\n\t * Das Auslaufen eines Timer wird angezeigt\n\t * \n\t * @return Vorbereitete Antwort-PDU oder <code>null</code> wenn nicht geantwortet wird.\n\t * @throws IncorrectTransitionException wenn der Zustandsuebergang nicht vorgesehen ist\n\t */\n\tpublic LWTRTPdu timeout() throws IncorrectTransitionException;\n\t\n\t/**\n\t * Data senden\n\t * Wunsch Daten zu senden (aktiv)\n\t * \n\t * @param chatPdu zu sendende PDU\n\t * @return Vorbereitete Antwort-PDU oder <code>null</code> wenn nicht geantwortet wird.\n\t * @throws IncorrectTransitionException wenn der Zustandsuebergang nicht vorgesehen ist\n\t */\n\tpublic LWTRTPdu data(Object chatPdu) throws IncorrectTransitionException;\n\t\n\t/**\n\t * Daten empfangen (passiv)\n\t * Daten werden empfangen (DATA-REQ)\n\t * \n\t * @param lwtrtPdu empfangenes PDU\n\t * @return Vorbereitet Antwort-PDU oder <code>null</code> wenn nicht geantwortet wird.\n\t * @throws IncorrectTransitionException wenn der Zustandsuebergang nicht vorgesehen ist\n\t */\n\tpublic LWTRTPdu dataReq(LWTRTPdu lwtrtPdu) throws IncorrectTransitionException;\n\t\n\t/**\n\t * Datenempfang wurde bestaetigt (akttiv)\n\t * Eine Bestaetigung des Datenempfang wurde empfnagen (DATA-RSP)\n\t * \n\t * @param lwtrtPdu empfangene Best+tigung\n\t * @return Vorbereitete Antwort-PDU oder <code>null</code> wenn nicht geantwortet wird.\n\t * @throws IncorrectTransitionException wenn der Zustandsuebergang nicht vorgesehen ist\n\t */\n\tpublic LWTRTPdu dataRsp(LWTRTPdu lwtrtPdu) throws IncorrectTransitionException;\n\t\n}", "public void MAJInformation(Intent intent){\n\n XBee64BitAddress rAddress=hexStringToXBeeAddress(intent.getStringExtra(\"address\"));\n int indexTab=getindexFromXbeeAddress(rAddress);\n String rCMD=intent.getStringExtra(\"cmd\"); // cmd : PING || AUTH || START || STOP\n int status=intent.getIntExtra(\"status\",-1); // status de la borne\n int rExtStatus=intent.getIntExtra(\"ext_status\",-1); // ext status : DOOR OPENED || BOOT || ...\n int rError=intent.getIntExtra(\"error_status\",-1);\n int rSessionID=intent.getIntExtra(\"sessionID\",-1);\n int proto=intent.getIntExtra(\"proto\",-1);\n String rTag=intent.getStringExtra(\"tag\");\n Date time = new Date();\n time.setTime(intent.getLongExtra(\"time\", -1));\n\n\n Status rStatus=mCPStatus[indexTab];\n\n G2EvseCMD cmd=G2EvseCMD.valueOf(rCMD);\n\n if(cmd.equals(G2EvseCMD.PING)){\n rStatus.setInformationPing(G2EvseStatus.fromCode(status),rError,rExtStatus);\n rStatus.setSession(rSessionID, rTag, proto, time);//time in start session\n\n\n\n }else if(cmd.equals(G2EvseCMD.AUTH)){\n rStatus.setAuth(true);\n rStatus.setAuthInProgress( rTag );\n\n }else if(cmd.equals(G2EvseCMD.START)){\n rStatus.setSession(rSessionID, rTag, proto, time);\n\n }else if(cmd.equals(G2EvseCMD.STOP)){\n rStatus.setSession(rSessionID, rTag, proto, time);\n }\n }", "private void updateBaseSetup() throws IOException, TimeOutException, SerialPortException {\n\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, GDE.STRING_ENTRY);\n\t\tif (this.ultraDuoPlusSetup != null) {\n\t\t\tif (this.ultraDuoPlusSetup.getChannelData1() == null || !this.ultraDuoPlusSetup.getChannelData1().isSynced()) {\n\t\t\t\tChannelData1 channelData1 = new ObjectFactory().createUltraDuoPlusTypeChannelData1();\n\t\t\t\tchannelData1.setValue(this.serialPort.readChannelData(1));\n\t\t\t\tthis.ultraDuoPlusSetup.setChannelData1(channelData1);\n\t\t\t}\n\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 && (this.ultraDuoPlusSetup.getChannelData2() == null || !this.ultraDuoPlusSetup.getChannelData2().isSynced())) {\n\t\t\t\tChannelData2 channelData2 = new ObjectFactory().createUltraDuoPlusTypeChannelData2();\n\t\t\t\tchannelData2.setValue(this.serialPort.readChannelData(2));\n\t\t\t\tthis.ultraDuoPlusSetup.setChannelData2(channelData2);\n\t\t\t}\n\t\t\tthis.device.convert2IntArray(this.channelValues1, this.ultraDuoPlusSetup.channelData1.getValue());\n\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) { //no configurable outlet channel 2\n\t\t\t\tthis.device.convert2IntArray(this.channelValues2, this.ultraDuoPlusSetup.channelData2.getValue());\n\t\t\t}\n\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINEST)) {\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tfor (int i = 0; i < UltramatSerialPort.SIZE_CHANNEL_1_SETUP; i++) {\n\t\t\t\t\tsb.append(this.channelValues1[i]).append(GDE.STRING_LEFT_BRACKET).append(i).append(GDE.STRING_RIGHT_BRACKET_COMMA);\n\t\t\t\t}\n\t\t\t\tsb.append(\" : \");//$NON-NLS-1$\n\t\t\t\tfor (int i = 0; this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 && i < UltramatSerialPort.SIZE_CHANNEL_2_SETUP; i++) {\n\t\t\t\t\tsb.append(this.channelValues2[i]).append(GDE.STRING_LEFT_BRACKET).append(i).append(GDE.STRING_RIGHT_BRACKET_COMMA);\n\t\t\t\t}\n\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, sb.toString());\n\t\t\t}\n\n\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) {\n\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"add handler\"); //$NON-NLS-1$\n\t\t\t\t//don't need a change listener handler for baseDeviceSetupGroup and baseDeviceSetupGroup1, it will always written to sync date and time\n\t\t\t\tthis.baseDeviceSetupGroup2.addListener(SWT.Selection, new Listener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void handleEvent(Event evt) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"baseDeviceSetupComposite2.handleEvent, channelValues2[\" + evt.index + \"] changed\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\tChannelData2 value = new ChannelData2();\n\t\t\t\t\t\tvalue.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.channelValues2));\n\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setChannelData2(value);\n\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getChannelData2().setChanged(true);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < UltramatSerialPort.SIZE_CHANNEL_1_SETUP; i++) {\n\t\t\tif (this.channelParameters[i] != null) {\n\t\t\t\tthis.channelParameters[i].setSliderSelection(this.channelValues1[i]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 && i < UltramatSerialPort.SIZE_CHANNEL_2_SETUP; i++) {\n\t\t\tif (this.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + i] != null) {\n\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + i].setSliderSelection(this.channelValues2[i]);\n\t\t\t}\n\t\t}\n\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, GDE.STRING_EXIT);\n\t}", "void resetControlVariables() {\n a1_cnt_ = 0;\n b1_cnt_ = 0;\n x1_cnt_ = 0;\n y1_cnt_ = 0;\n lb1_cnt_ = 0;\n rb1_cnt_ = 0;\n lsb1_cnt_ = 0;\n rsb1_cnt_ = 0;\n lt1_left_cnt_ = 0;\n lt1_right_cnt_ = 0;\n\n a2_cnt_ = 0;\n b2_cnt_ = 0;\n x2_cnt_ = 0;\n y2_cnt_ = 0;\n lb2_cnt_ = 0;\n rb2_cnt_ = 0;\n lsb2_cnt_ = 0;\n rsb2_cnt_ = 0;\n\n curr_time_ = 0.0;\n loop_cnt_ = 0;\n last_imu_read_loop_id_ = -1;\n last_motor_read_loop_id_ = -1;\n last_rgb_range_stone_read_loop_id_ = -1;\n last_range_stone_read_loop_id_ = -1;\n last_range_right_read_loop_id_ = -1;\n last_range_left_read_loop_id_ = -1;\n last_range_stone_read_time_ = 0;\n last_range_right_read_time_ = 0;\n last_range_left_read_time_ = 0;\n range_stone_dist_init_min_ = 0;\n range_right_dist_init_min_ = 0;\n range_left_dist_init_min_ = 0;\n range_stone_error_detected_ = false;\n range_right_error_detected_ = false;\n range_left_error_detected_ = false;\n battery_voltage_ = 0.0;\n\n last_button_time_ = 0.0;\n last_button_a1_time_ = 0.0;\n last_button_b1_time_ = 0.0;\n last_button_rb1_time_ = 0.0;\n last_button_time2_ = 0.0;\n last_double_stone_time_ = 0.0;\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n String b = customtime.getText().toString().trim();\n \n Toast.makeText(RadioUi.this, b +getString(R.string.closeradio), Toast.LENGTH_SHORT).show();\n sleeptime = b;\n // time=0;\n time = Integer.parseInt(b)*100000;\n // TinyDB tb = new TinyDB(getApplicationContext());\n\t\t\t\t// tb.putString(\"sleep_time\", sleeptime);\n\t\t\t\t \n\t\t\t\t alarm();\n\t\t\t\t \n }", "public static void resetModemTemperature() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void run() {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\t\tSystem.out.printf(\"\\n\\n\");\n//\t\t\t\t\tSystem.out.println(TO_Bit_old);\n//\t\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\t\t\t\t\tStatus_Byte=eeipClient.T_O_IOData[0x7F];\n\t\t\t\t\tTO_Bit=(Status_Byte&(0x20))>>5;\n\t\t\t\t\tAA_Bit=(Status_Byte&(0x02))>>1;\n\t\t\t\t\tAE_Bit=(Status_Byte&(0x04))>>2;\n\t\t\t\n\t\t\t\t\tif((TO_Bit_old!=TO_Bit)&&(AA_Bit==1)&&(AE_Bit==1)) {\t\t\t\n\t\t\t\t\t\tstate2=1;\n\t\t\t\t\t\ttimerflag2=false;\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}", "protected void onTick() {\n\r\n System.out.println(\"Makinarekin konexioa ezartzen...\");\r\n try {\r\n\r\n Socket s = new Socket(\"localhost\", 5555);\r\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\r\n BufferedReader din = new BufferedReader(new InputStreamReader(s.getInputStream()));\r\n //Informazioa makinatik jaso\r\n if (itxaron == false) {\r\n dout.writeBytes(\"ask\");\r\n dout.flush();\r\n carga = din.readLine();\r\n System.out.println(\"Lan karga datua lortzen...\");\r\n System.out.println(carga);\r\n pieza = din.readLine();\r\n System.out.println(\"Pieza mota datua lortzen...\");\r\n System.out.println(pieza);\r\n catalogue.put(pieza, new Integer(carga));\r\n\r\n }\r\n //Makina pieza jasotzeko prestaztea esan\r\n if (itxaron == true) {\r\n dout.writeBytes(\"switch\");\r\n dout.flush();\r\n System.out.println(\"Makina pieza jasotzeko prestatzen...\");\r\n itxaron=false;\r\n }\r\n s.close();\r\n dout.flush();\r\n\r\n } catch(Exception e){\r\n\r\n System.out.println(\"Konexioa ezin izan da lortu\");\r\n }\r\n\r\n System.out.println(\"Makinarekin konexioa mozten\");\r\n\r\n\r\n }", "public void send0(){\n digitalWrite(data0, LOW);\n delayMicroseconds(34);\n digitalWrite(data0, HIGH);\n}", "public void parsePerformanceMeasurements(RawMessage msg)\n\t\tthrows HeaderParseException\n\t{\n\t\tbeginTimeHasTz = false;\n\t\tbyte data[] = msg.getData();\n\t\tint len = data.length;\n\n\t\tboolean inNotes = false;\n\t\tString beginDate = null;\n\t\tString beginTime = null;\n\t\tString endTime = null;\n\t\tString station = null;\n\t\tString device = null;\n\t\tStringBuffer notes = new StringBuffer();\n\t\tint e=0;\n\t\tfor(int p=0; p<len-3; p = e)\n\t\t{\n\t\t\t// Find the beginning of the next line.\n\t\t\tfor(e = p; e < len && data[e] != (byte)'\\n'; e++);\n\t\t\te++;\n\n\t\t\t// Check for start of new tag.\n\t\t\tif (data[p] == (byte)'/' && data[p+1] == (byte)'/')\n\t\t\t{\n\t\t\t\tp += 2;\n\t\t\t\tString s = new String(data, p, e-p);\n\t\t\t\ts = s.toUpperCase().trim();\n\t\t\t\tif (s.length() == 0)\n\t\t\t\t\tcontinue;\t// Skip comment line with just '//'\n\t\t\t\tif (s.startsWith(\"STATION\"))\n\t\t\t\t{\n\t\t\t\t\tString val = s.substring(7).trim();\n\t\t\t\t\tmsg.setPM(STATION, new Variable(val));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"DEVICE END TIME\")) // do before DEVICE !!\n\t\t\t\t{\n\t\t\t\t\tif (endTime == null)\n\t\t\t\t\t\tendTime = s.substring(15).trim();\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"DEVICE\"))\n\t\t\t\t{\n\t\t\t\t\tString val = s.substring(6).trim();\n\t\t\t\t\tint hyphen = val.indexOf('-');\n\t\t\t\t\tint space = val.indexOf(' ');\n\t\t\t\t\tif (hyphen >= 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (space > 0 && hyphen < space)\n\t\t\t\t\t\t\tval = val.substring(0, space);\n\t\t\t\t\t\telse if (space > 0 && space < hyphen)\n\t\t\t\t\t\t\tval = val.substring(0, space) + \"-\"\n\t\t\t\t\t\t\t\t+ val.substring(space+1);\n\t\t\t\t\t}\n\t\t\t\t\telse // no hyphen\n\t\t\t\t\t{\n\t\t\t\t\t\tif (space >= 0)\n\t\t\t\t\t\t\tval = val.substring(0,space) + \"-\"\n\t\t\t\t\t\t\t\t+ val.substring(space+1);\n\t\t\t\t\t}\n\t\t\t\t\tspace = val.indexOf(' ');\n\t\t\t\t\tif (space > 0)\n\t\t\t\t\t\tval = val.substring(0,space);\n\t\t\t\t\tmsg.setPM(DEVICE, new Variable(val));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"SOURCE\"))\n\t\t\t\t{\n\t\t\t\t\tString val = s.substring(6).trim();\n\t\t\t\t\tmsg.setPM(SOURCE, new Variable(val));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"BEGIN DATE\"))\n\t\t\t\t{\n\t\t\t\t\tbeginDate = s.substring(10).trim();\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"BEGIN TIME\"))\n\t\t\t\t{\n\t\t\t\t\tbeginTime = s.substring(10).trim();\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"ACTUAL END TIME\"))\n\t\t\t\t{\n\t\t\t\t\tendTime = s.substring(15).trim();\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"EDL NOTES\")\n\t\t\t\t || s.startsWith(\"PFC NOTES\")\n\t\t\t\t || s.startsWith(\"DEVICE NOTES\"))\n\t\t\t\t{\n\t\t\t\t\tinNotes = true;\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(\"DATA\"))\n\t\t\t\t{\n\t\t\t\t\tinNotes = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (inNotes)\n\t\t\t\tnotes.append(new String(data, p, e-p));\n\t\t\telse // this is the end of the header!\n\t\t\t{\n\t\t\t\tmsg.setHeaderLength(p);\n\t\t\t\tmsg.setPM(MESSAGE_LENGTH, new Variable((long)(len - p)));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (beginDate != null)\n\t\t{\n\t\t\tif (beginTime != null)\n\t\t\t{\n\t\t\t\t// begin time can optionally contain time zone.\n\t\t\t\tint idx = beginTime.lastIndexOf('S');\n\t\t\t\tif (idx != -1)\n\t\t\t\t{\n\t\t\t\t\tbeginTimeHasTz = true;\n\t\t\t\t\tbeginTime = beginTime.substring(0, idx) + \"00\";\n\t\t\t\t}\n\t\t\t\telse // Add dummy offset to UTC\n\t\t\t\t{\n\t\t\t\t\tbeginTimeHasTz = false;\n\t\t\t\t\tbeginTime += \" +0000\";\n\t\t\t\t}\n\t\t\t\tbeginDate += beginTime;\n\t\t\t}\n\t\t\telse\n\t\t\t\tbeginDate += \"0000 +0000\"; // HHMM & TZ\n\t\t\ttry\n\t\t\t{\n\t\t\t\tLogger.instance().debug1(\"Parsing begin date/time '\"\n\t\t\t\t\t+ beginDate + \"'\");\n\t\t\t\tDate d = beginDateTimeSdf.parse(beginDate);\n\t\t\t\tmsg.setPM(BEGIN_TIME_STAMP, new Variable(d));\n\t\t\t}\n\t\t\tcatch(ParseException ex)\n\t\t\t{\n\t\t\t\tLogger.instance().log(Logger.E_FAILURE, \n\t\t\t\t\t\"Unparsable begin time '\" + beginTime + \"': Ignored.\");\n\t\t\t}\n\t\t}\n\n\t\tif (endTime != null)\n\t\t{\n\t\t\t// Check for start of timezone.\n\t\t\tint idx = endTime.indexOf('-');\n\t\t\tif (idx == -1)\n\t\t\t\tidx = endTime.indexOf('+');\n\n\t\t\tif (idx == -1) // No time zone at all, add one.\n\t\t\t\tendTime += \" +0000\";\n\t\t\telse\n\t\t\t{\n\t\t\t\tint i = ++idx; // idx points to first digit after sign.\n\n\t\t\t\tfor(; i < endTime.length() \n\t\t\t\t\t&& i-idx <= 4\n\t\t\t\t\t&& Character.isDigit(endTime.charAt(i)); i++);\n\t\t\t\t// i now points to first non-digit after TZ\n\n\t\t\t\tswitch(i-idx) // i-idx is # of digits after sign.\n\t\t\t\t{\n\t\t\t\tcase 0: \n\t\t\t\t\tendTime = endTime.substring(0,idx) + \"0000\"; \n\t\t\t\t\tbreak;\n\t\t\t\tcase 1: // 1 digit hour? move to position 2 in HHMM:\n\t\t\t\t\tendTime = endTime.substring(0,idx) + \"0\" \n\t\t\t\t\t\t+ endTime.charAt(idx) + \"00\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: // HH only, add MM\n\t\t\t\t\tendTime = endTime.substring(0,i) + \"00\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: // HHM, ad lcd\n\t\t\t\t\tendTime = endTime.substring(0,i) + \"0\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: // complete. Just truncate at 4 digits.\n\t\t\t\t\tendTime = endTime.substring(0, idx+4);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmsg.setPM(END_TIME_STAMP, new Variable(\n\t\t\t\t\tendTimeSdf.parse(endTime)));\n\t\t\t}\n\t\t\tcatch(ParseException ex)\n\t\t\t{\n\t\t\t\tLogger.instance().log(Logger.E_FAILURE, \"Unparsable end time '\"\n\t\t\t\t\t+ endTime + \"': Ignored.\");\n\t\t\t}\n\t\t}\n\n\t\tif (notes.length() > 0)\n\t\t{\n\t\t\tmsg.setPM(EDL_NOTES, new Variable(notes.toString()));\n\t\t}\n\n\t\t// Construct medium ID by concatenating station to device.\n\t\tif (msg.getMediumId() == null)\n\t\t{\n\t\t\tString mid = System.getProperty(\"MEDIUMID\");\n\t\t\tif (mid == null)\n\t\t\t{\n\t\t\t\tVariable v = msg.getPM(STATION);\n\t\t\t\tif (v == null)\n\t\t\t\t\tthrow new HeaderParseException(\"No STATION in EDL file.\");\n\t\t\t\tmid = v.getStringValue();\n\t\t\t\tv = msg.getPM(DEVICE);\n\t\t\t\tif (v != null)\n\t\t\t\t\tmid = mid + \"-\" + v.getStringValue();\n\t\t\t}\n\t\t\tLogger.instance().log(Logger.E_DEBUG3,\n\t\t\t\t\"Setting EDL File Medium ID to '\" + mid + \"'\");\n\t\t\tmsg.setMediumId(mid);\n\t\t}\n\t}", "void oscEvent(OscMessage msg) throws IOException{\n\r\n\t\tObject[] arguments = msg.arguments();\t\t\r\n\t\t\r\n\t\tTimestamp timeStamp = new Timestamp(System.currentTimeMillis());\r\n\t\t\r\n\t\t//Muse EEG headband sends a lot of signals but we are only interested in Alpha, Beta, Gamma, Delta and Theta\r\n\t\t//For more information, visit: http://developer.choosemuse.com/tools/available-data\r\n\r\n\t\t\r\n\t\t//Checking if the signal is Alpha\r\n\t\t\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/alpha_absolute\")==true) {\r\n\t\t\r\n\t\t\tSystem.out.print(\"\\n\"+timeStamp+\",\");\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\tSystem.out.println(\"float\"+msg.get(0).floatValue()+\", int:\"+msg.get(0).intValue()+\",string:\"+msg.get(0).toString()+\",long:\"+msg.get(0).longValue()+\",double\"+msg.get(0).doubleValue());\r\n\t\t\t\r\n\t\t\t//printing it out into the .csv file in a way that the average is calculated and written\r\n\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\t\r\n\t\r\n\t\t\r\n\t\t//Check for Beta signal\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/beta_absolute\")==true) {\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\r\n\r\n\t\t//check for Delta signal\t\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/delta_absolute\")==true) {\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\r\n\t\r\n\t\t//check for Gamma signal\t\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/gamma_absolute\")==true) {\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\r\n\r\n\t\t//Check for Theta signal\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/theta_absolute\")==true) {\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\t\r\n\t\t\r\n\t}", "public STATE_KEY eventTimerTamDisconnect() {\n\t\treturn STATE_KEY.NOT_CHANGE;\n\t}", "public static void main(String[] args) {\n\t\tjava.util.Scanner in = new java.util.Scanner(System.in);\n\n\t\tString res = null;\n\t\tString str = in.nextLine();\n\t\tString strRMC = \"error\";\n\t\tint firstPoint = 0;\n\t\tint secondPoint = 0;\n\n\t\twhile (!str.equals(\"END\")) {\n\n\t\t\tfirstPoint = str.indexOf(',');\n\t\t\tsecondPoint = str.indexOf(',', firstPoint + 1);\n\n\t\t\tif (str.indexOf(\"$GPRMC\") != -1 && str.charAt(secondPoint + 1) == 'A') {\n\t\t\t\tint n = str.indexOf('*');\n\t\t\t\tString dernier = str.substring(str.indexOf('*') + 1);\n\t\t\t\tint scalaire = str.charAt(1);\n\t\t\t\tfor (int i = 2; i < n; i++) {\n\t\t\t\t\tscalaire = scalaire ^ str.charAt(i);\n\t\t\t\t}\n\t\t\t\tif (scalaire % 65536 == Integer.parseInt(dernier, 16)) {\n\t\t\t\t\tstrRMC = str;\n\t\t\t\t\tfirstPoint = strRMC.indexOf(',');\n\t\t\t\t\tsecondPoint = strRMC.indexOf(',', firstPoint + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = in.nextLine();\n\t\t}\n\n\t\tString time = strRMC.substring(firstPoint + 1, strRMC.indexOf('.'));\n\n\t\tint value = Integer.parseInt(time);\n\n\t\t// 字段2不足6位要补足\n\t\ttime = time.format(\"%06d\", value);\n\n\t\tString h = time.substring(0, 2);\n\t\tString m = time.substring(2, 4);\n\t\tString s = time.substring(4);\n\t\tint hourBJ = Integer.parseInt(h) + 8;\n\t\thourBJ = hourBJ % 24;\n\t\tint minuteBJ = Integer.parseInt(m);\n\t\tint secondBJ = Integer.parseInt(s);\n\n\t\tres = res.format(\"%02d:%02d:%02d\", hourBJ, minuteBJ, secondBJ);\n\t\tSystem.out.println(res);\n\t}", "java.lang.String getField1724();", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickOptionComputation((-2236), 13, (-1732.5392580492), (-1581.22787), (-1732.5392580492), (-1732.5392580492));\n assertEquals(\"id=-2236 modelOptComp: vol = N/A delta = N/A: modelPrice = N/A: pvDividend = N/A\", string0);\n }", "public int getTickCount(String symbol);", "public void setOutTime1(String outTime1) {\n\tthis.outTime1 = outTime1;\n }", "@Override\n public void onClick(View arg0) {\n byte[]bb= new byte[]{(byte)1,2,3};\n String sendstr = \"group1:\"+seekbartime1 + \",\" + seekbaramp1 +\"\\r\\n\";\n Boolean boolean1 = mBluetoothLeService.write(mNotifyCharacteristic,sendstr);\n\n sendstr = \"group2:\"+seekbartime2 + \",\" + seekbaramp2 +\"\\r\\n\";\n boolean1 = mBluetoothLeService.write(mNotifyCharacteristic,sendstr);\n\n sendstr = \"group3:\"+seekbartime3 + \",\" + seekbaramp3 +\"\\r\\n\";\n boolean1 = mBluetoothLeService.write(mNotifyCharacteristic,sendstr);\n\n sendstr = \"group4:\"+seekbartime4 + \",\" + seekbaramp4 +\"\\r\\n\";\n boolean1 = mBluetoothLeService.write(mNotifyCharacteristic,sendstr);\n\n\n\n SeekBaramp_1.setProgress(0);\n SeekBartime_01.setProgress(0);\n\n\n SeekBaramp_2.setProgress(0);\n SeekBartime_02.setProgress(0);\n\n SeekBaramp_3.setProgress(0);\n SeekBartime_03.setProgress(0);\n\n SeekBaramp_4.setProgress(0);\n SeekBartime_04.setProgress(0);\n\n Log.e(\"a\", \"发送UUID\"+mNotifyCharacteristic.getUuid().toString()+\"是否发送成功::\"+\"\");\n }", "private void handleDeadMansSwitchMessage(JsonNode message) {\n try {\n String cancelTime = message.get(\"cancelTime\").asText();\n if (cancelTime.equals(\"0\")) {\n LOG.info(\"Dead man's switch disabled\");\n dmsDisposable.dispose();\n dmsDisposable = null;\n dmsCancelTime=0;\n } else {\n SimpleDateFormat sdf = new SimpleDateFormat(BitmexMarketDataEvent.BITMEX_TIMESTAMP_FORMAT);\n sdf.setTimeZone(TimeZone.getTimeZone(ZoneOffset.UTC));\n long now = sdf.parse(message.get(\"now\").asText()).getTime();\n dmsCancelTime = sdf.parse(cancelTime).getTime();\n }\n } catch (ParseException e) {\n LOG.error(\"Error parsing deadman's confirmation \");\n }\n return;\n }", "@Override\n\t\t\t\tpublic void run() {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\t\t\t\t\tStatus_Byte=eeipClient.T_O_IOData[0x7F];\n\t\t\t\t\tTO_Bit=(Status_Byte&(0x20))>>5;\n\t\t\t\t\tAA_Bit=(Status_Byte&(0x02))>>1;\n\t\t\t\t\tAE_Bit=(Status_Byte&(0x04))>>2;\n\t\t\t\n\t\t\t\t\tif((AA_Bit==0)&&(AE_Bit==0)) {\n\t\t\t\t\t\tstate2=2;\n\t\t\t\t\t\ttimerflag2=false;\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "protected void onSetTemperatureSetting1(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "public YangUInt8 getRequestTimerValue() throws JNCException {\n YangUInt8 requestTimer = (YangUInt8)getValue(\"request-timer\");\n if (requestTimer == null) {\n requestTimer = new YangUInt8(\"5\"); // default\n }\n return requestTimer;\n }", "@Override\r\n\tpublic void alarm() {\n\t\tSystem.out.println(\"H1型号是这样鸣笛的.....\");\r\n\t}", "public synchronized void serialEvent(SerialPortEvent oEvent) {\n\t\t\n if (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\n\t\t\ttry {\n while (input.ready ()){\n //System.out.println(\"Fuss \"+new1 +\" \"+old);\n\t\t\t\tString inputLine=input.readLine();\n //System.out.println(\"InputLine \"+inputLine);\n new1 = Integer.valueOf(inputLine);\n if(new1-old==1)\n {\n System.out.println(\"new1-old= \"+ (new1-old));\n \n int hour, min, day, month, year;\n java.util.Date date = new java.util.Date();\n Calendar cal= Calendar.getInstance();\n year = cal.get(Calendar.YEAR);\n month = cal.get(Calendar.MONTH); // 0 to 11\n day = cal.get(Calendar.DAY_OF_MONTH);\n hour = cal.get(Calendar.HOUR_OF_DAY);\n min = cal.get(Calendar.MINUTE);\n month = month + 1;\n code.append(\"\");\n if(day/10<1)\n {\n code.append(\"0\");\n code.append(day);\n }\n else\n code.append(day);\n if(month/10<1)\n {\n code.append(\"0\");\n code.append(month);\n }\n else\n code.append(month);\n code.append(year);\n code.delete(4,6);\n if(hour/10<1)\n {\n code.append(\"0\");\n code.append(hour);\n }\n else\n code.append(hour);\n if(min/10<1)\n {\n code.append(\"0\");\n code.append(min);\n }\n else\n code.append(min);\n \n String code1;\n code1= code.toString();\n //Lsignal.setText(code1);\n \n ImageIcon iconLogo = new ImageIcon(path);\n Lsignal.setText(\"\");\n Lsignal.setIcon(iconLogo);\n code.delete(0,11);\n System.out.println(code);\n Code128 barcode = new Code128(); //Barcode Type\n barcode.setData(code1); //Barcode String\n barcode.setX(2); //Barcode data text to encode\n //barcode.setBarcodeWidth(-50f);\n barcode.setLeftMargin(-15);\n barcode.setRightMargin(-5);\n barcode.setBarcodeHeight(50f);\n barcode.drawBarcode(path);\n \n printImg(path);\n }\n else if(new1-old==0)\n System.out.println(\"Nope!\");\n else if(new1-old==-1)\n System.out.println(\"Nope!\");\n old=new1;\n }\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t} finally {\n Lsignal.setIcon(null);\n Lsignal.setText(\"No Input\");\n }\n\t\t}\n\t\t// Ignore all the other eventTypes, but you should consider the other ones.\n\t}", "@Override\n\t\t\t\tpublic void run() {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\t\t\t\t\t\n\t\t\t\t\tStatus_Byte=eeipClient.T_O_IOData[0x7F];\n\t\t\t\t\tTO_Bit=(Status_Byte&(0x20))>>5;\n\t\t\t\t\tAE_Bit=(Status_Byte&(0x04))>>2;\n\t\t\t\t\tAA_Bit=(Status_Byte&(0x02))>>1;\n\t\t\t\t\t\n\t\t\t\t\tif(AE_Bit==1) {\n\t\t\t\t\t\tstate=2;\n\t\t\t\t\t\ttimerflag3=false;\n\t\t\t\t\t\t\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "private void processTrackSwitch(SensorEvent e) throws CommandException {\n if (atSensor(e, 18, 7) && direction == NORTH && ticket == -1)\n switchTrack(17, 7, SWITCH_LEFT);\n else if (atSensor(e, 18, 7) && direction == NORTH)\n switchTrack(17, 7, SWITCH_RIGHT);\n else if (atSensor(e, 13, 8) && direction == SOUTH)\n switchTrack(17, 7, SWITCH_LEFT);\n else if (atSensor(e, 13, 7) && direction == SOUTH)\n switchTrack(17, 7, SWITCH_RIGHT);\n else if (atSensor(e, 16, 9) && direction == SOUTH && ticket == 3)\n switchTrack(15, 9, SWITCH_RIGHT);\n else if (atSensor(e, 16, 9) && direction == SOUTH)\n switchTrack(15, 9, SWITCH_LEFT);\n else if (atSensor(e, 3, 9) && direction == NORTH && ticket == 3)\n switchTrack(4, 9, SWITCH_LEFT);\n else if (atSensor(e, 3, 9) && direction == NORTH)\n switchTrack(4, 9, SWITCH_RIGHT);\n else if (atSensor(e, 13, 9) && direction == NORTH)\n switchTrack(15, 9, SWITCH_RIGHT);\n else if (atSensor(e, 6, 9) && direction == SOUTH)\n switchTrack(4, 9, SWITCH_LEFT);\n else if (atSensor(e, 13, 10) && direction == NORTH)\n switchTrack(15, 9, SWITCH_LEFT);\n else if (atSensor(e, 6, 10) && direction == SOUTH)\n switchTrack(4, 9, SWITCH_RIGHT);\n else if (atSensor(e, 1, 11) && direction == SOUTH && ticket == 5)\n switchTrack(3, 11, SWITCH_LEFT);\n else if (atSensor(e, 1, 11) && direction == SOUTH)\n switchTrack(3, 11, SWITCH_RIGHT);\n else if (atSensor(e, 5, 11) && direction == NORTH)\n switchTrack(3, 11, SWITCH_LEFT);\n else if (atSensor(e, 5, 13) && direction == NORTH)\n switchTrack(3, 11, SWITCH_RIGHT);\n }", "protected Object decode(\n ChannelHandlerContext ctx, Channel channel, Object msg)\n throws Exception {\n\n String sentence = (String) msg;\n\n // Send response #1\n if (sentence.contains(\"##\")) {\n if (channel != null) {\n channel.write(\"LOAD\");\n }\n return null;\n }\n\n // Send response #2\n if (sentence.length() == 15 && Character.isDigit(sentence.charAt(0))) {\n if (channel != null) {\n channel.write(\"ON\");\n }\n return null;\n }\n\n // Parse message\n Matcher parser = pattern.matcher(sentence);\n if (!parser.matches()) {\n if(log.isInfoEnabled())\n log.info(\"Parse failed, message: \" + sentence);\n return null;\n }\n\n // Create new position\n PositionData position = new PositionData();\n \n Integer index = 1;\n\n // Get device by IMEI\n String imei = parser.group(index++);\n position.setUdid(imei);\n\n String alarm = parser.group(index++);\n \n // Date\n Calendar time = Calendar.getInstance(TimeZone.getTimeZone(\"UTC\"));\n time.clear();\n time.set(Calendar.YEAR, 2000 + Integer.valueOf(parser.group(index++)));\n time.set(Calendar.MONTH, Integer.valueOf(parser.group(index++)) - 1);\n time.set(Calendar.DAY_OF_MONTH, Integer.valueOf(parser.group(index++)));\n \n int localHours = Integer.valueOf(parser.group(index++));\n int localMinutes = Integer.valueOf(parser.group(index++));\n \n int utcHours = Integer.valueOf(parser.group(index++));\n int utcMinutes = Integer.valueOf(parser.group(index++));\n\n // Time\n time.set(Calendar.HOUR, localHours);\n time.set(Calendar.MINUTE, localMinutes);\n time.set(Calendar.SECOND, Integer.valueOf(parser.group(index++)));\n time.set(Calendar.MILLISECOND, Integer.valueOf(parser.group(index++)));\n \n // Timezone calculation\n int deltaMinutes = (localHours - utcHours) * 60 + localMinutes - utcMinutes;\n if (deltaMinutes <= -12 * 60) {\n deltaMinutes += 24 * 60;\n } else if (deltaMinutes > 12 * 60) {\n deltaMinutes -= 24 * 60;\n }\n time.add(Calendar.MINUTE, -deltaMinutes);\n position.setTime(time.getTime());\n\n // Validity\n position.setValid(parser.group(index++).compareTo(\"A\") == 0 ? true : false);\n\n // Latitude\n Double latitude = Double.valueOf(parser.group(index++));\n latitude += Double.valueOf(parser.group(index++)) / 60;\n if (parser.group(index++).compareTo(\"S\") == 0) latitude = -latitude;\n position.setLatitude(latitude);\n\n // Longitude\n Double lonlitude = Double.valueOf(parser.group(index++));\n lonlitude += Double.valueOf(parser.group(index++)) / 60;\n String hemisphere = parser.group(index++);\n if (hemisphere != null) {\n if (hemisphere.compareTo(\"W\") == 0) lonlitude = -lonlitude;\n }\n position.setLongitude(lonlitude);\n\n // Altitude\n position.setAltitude(-1d);\n // Speed from knot to km\n position.setSpeed(1.852 * Double.valueOf(parser.group(index++)));\n\n // Course\n String course = parser.group(index++);\n if (course != null) {\n position.setCourse(Double.valueOf(course));\n } else {\n position.setCourse(-1d);\n }\n\n // Extended info from GPS103 protocol\n Map<String,Object> extendedInfo = position.getExtendedInfo();\n extendedInfo.put(\"protocol\", \"gps103\");\n // Alarm message\n if(alarm != null){\n \tif(alarm.indexOf(\"help me\") != -1){\n \t\t// it's emergency\n \t\tposition.setMessageType(2/*MESSAGE_TYPE_EMERGENCY*/);\n \t\tposition.setMessage(alarm);\n \t}else if(alarm.equalsIgnoreCase(\"tracker\")){\n \t\t// do nothing\n \t}else if(alarm.equalsIgnoreCase(\"speed\")){\n \t\tposition.setMessageType(1/*MESSAGE_TYPE_ALERT*/);\n \t\tposition.setMessage(\"Over Speed!\");\n \t}else if(alarm.equalsIgnoreCase(\"low battery\")){\n \t\tposition.setMessageType(1/*MESSAGE_TYPE_ALERT*/);\n \t\tposition.setMessage(\"Low Battery!\");\n \t}else{\n \t\tposition.setMessage(alarm);\n \t}\n }\n \n return position;\n }", "protected void aTimerInterrupt()\r\n {\r\n \t\tSystem.out.println(\"|aTimerInterrupt| : time out.\");\r\n \t\tstartTimer(0,RxmtInterval);\r\n \t\tSystem.out.println(\"|aTimerInterrupt| : timer is started\");\r\n \t\t\r\n \t\tfor(int i=window_base% LimitSeqNo;i<next_seq_num % LimitSeqNo;i++)\r\n \t\t{\r\n \t\t\tif(packetBufferAry[i]!=null)\r\n \t\t\t{\r\n \t\t\t\tcount_retransmissions_by_A++;\r\n \t\t\t\tSystem.out.println(\"|aTimerInterrupt| : packet with seq number:\"+Integer.toString(packetBufferAry[i].getSeqnum())+\" is resent.\");\r\n \t\t\t\ttoLayer3(0,packetBufferAry[i]);\r\n \t\t\t}\r\n \t\t}\r\n \t\t/*\r\n \t\tif(state_sender == STATE_WAIT_FOR_ACK_OR_NAK_0)\r\n \t\t{\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: time up for STATE_WAIT_FOR_ACK_OR_NAK_0\");\r\n \t\t\tresendPacket(packetBuffer);\r\n \t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: start sender timer\");\r\n \t\t\t\r\n \t\t}\r\n \t\telse if(state_sender == STATE_WAIT_FOR_ACK_OR_NAK_1)\r\n \t\t{\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: time up for STATE_WAIT_FOR_ACK_OR_NAK_1\");\r\n \t\t\tresendPacket(packetBuffer);\r\n \t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: start sender timer\");\r\n \t\t}\r\n \t\t*/\r\n }", "public interface TimeDriven {\n TradeSignal onSecondTick();\n}", "double getDefaultTimerTrig();", "public void calcTimeTrace() \r\n\t{\r\n\t\t\r\n\t\t\r\n\t\tRandom generator = new Random ();\t\r\n \r\n for (int i=1; i<numFrames;i++){\r\n\t\t\tIJ.showProgress(i, numFrames);\r\n\t\t\tfor (int j=0;j<numParticles;j++){\r\n\t\t\t\tdouble changeState=generator.nextDouble();\r\n\t\t\t\tif (timeTrace[i-1][j]==1){\r\n\t\t\t\t\tif (changeState<switchOff) timeTrace[i][j]=0;\r\n\t\t\t\t\telse timeTrace[i][j]=1;\t\t\r\n\t\t\t\t}\r\n\t\t\t\tif (timeTrace[i-1][j]==0){\r\n\t\t\t\t\tif (changeState<switchOn) timeTrace[i][j]=1;\r\n\t\t\t\t\telse timeTrace[i][j]=0;\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n }\t\r\n\t}", "public interface FtdiInformationListener {\n public static int INFO = 0;\n\n public static int ERROR = 1;\n public static int OUTPUT_ERROR = 2;\n public static int INPUT_ERROR = 3;\n\n public static int NEW_DATA = 4;\n\n public static int DEVICE_CONNECTED = 10;\n public static int DEVICE_DISCONNECTED = 11;\n\n\n public void sendMessage(String message, int type);\n}", "protected void onSetTemperatureSetting2(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "public void pickUpTimer()\r\n\t{\t\t\r\n\t\tSystem.out.println(timer.get());\r\n\t\tif(timer.get() < Config.Auto.timeIntakeOpen)\r\n\t\t{\r\n\t\t\t//claw.openClaw();\r\n\t\t\tSystem.out.println(\"in second if\");\r\n\t\t}\r\n\t\t\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeElevatorStack)\r\n\t\t{\r\n\t\t\t//elevator.setLevel(elevatorLevel);\r\n\t\t\t//elevatorLevel++;\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeIntakeClose)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"in first if\");\r\n\t\t\t//claw.closeClaw();\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t\tendRoutine();\r\n\t}", "@Override\r\n\tpublic String getTimerValueStatus() {\n\t\treturn \"this is the timer status!!\";\r\n\t}", "private void startTimer(){\n// if(timer!= null) {\n// timer.cancel();\n// }\n// mBluetoothGatt.getConnectionState()\n// if(isstart){\n// return;\n// }\n// isstart = true;\n handler.removeCallbacksAndMessages(null);\n writeRXCharacteristic(hexStringToBytes(\"AA03030155\"));\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n rundata();\n }\n },60*1000);\n// writeRXCharacteristic(hexStringToBytes(\"AA03030055\"));\n// TimerTask task = new TimerTask() {\n// @Override\n// public void run() {\n//// System.out.println(\"task run:\"+getCurrentTime());\n// rundata();\n// }\n// };\n// timer = new Timer();\n// timer.schedule(task, 60*1000,60*1000);\n\n }", "public HwStatus() {\n \t\tsuper();\n \t\tthis.hwSig = 0;\n \t\tthis.microtickPeriod = 10000;\t// default\n \t\tthis.cf_version = \"\";\n \t}", "public static void processVariablesInformation () {\n\n for (int i = 0; i < data.length(); i++) {\n if (data.charAt(i) == ',')\n cutPoints.add(i);\n }\n\n if (cutPoints.size() == numberOfVariablesReceived-1) {\n\n if(isNumeric(data.substring(1, cutPoints.get(0))))\n oxygenValue = data.substring(1, cutPoints.get(0));\n\n if(isNumeric(data.substring(cutPoints.get(0) + 1, cutPoints.get(1))))\n heartRateValue = data.substring(cutPoints.get(0) + 1, cutPoints.get(1));\n\n if(isNumeric(data.substring(cutPoints.get(1) + 1, cutPoints.get(2))))\n stressValue = data.substring(cutPoints.get(1) + 1, cutPoints.get(2));\n\n if(isNumeric(data.substring(cutPoints.get(2) + 1, endOfLineIndex)))\n tempSampleTime = Integer.parseInt(data.substring(cutPoints.get(2) + 1, endOfLineIndex));\n }\n if (Integer.parseInt(heartRateValue) > 0)\n integerbpm = sixtyMillis / Integer.parseInt(heartRateValue);\n else\n integerbpm = INFINITE;\n\n // Comment this part for junit tests\n if (integerbpm >= 0) {\n heartBeatAnim.setDuration(integerbpm);\n heartBeatAnim.start();\n }\n oxygenLevel.setText(oxygenValue + \"%\");\n heartRate.setText(\" HR = \" + heartRateValue + \"BPM\");\n stressLabel.setText(\" Stress= \" + stressValue + \"%\");\n stressBar.setProgress(Integer.parseInt(stressValue));\n oxygenBar.setProgress(Integer.parseInt(oxygenValue));\n\n if (Integer.parseInt(oxygenValue) < 95 || Integer.parseInt(heartRateValue) < 60 || Integer.parseInt(heartRateValue) > 120) {\n attentionImage.setVisibility(View.VISIBLE);\n attentionLabel.setVisibility(View.VISIBLE);\n\n if (sound == true) {\n final ToneGenerator tg = new ToneGenerator(AudioManager.STREAM_NOTIFICATION, 100);\n tg.startTone(ToneGenerator.TONE_CDMA_PIP);\n }\n } else {\n attentionImage.setVisibility(View.INVISIBLE);\n attentionLabel.setVisibility(View.INVISIBLE);\n }\n // until here\n }", "public int getHardwareTimeout();", "public static void OPLResetChip(FM_OPL OPL) {\n int c, s;\n int i;\n /* reset chip */\n OPL.mode = 0;\n /* normal mode */\n\n OPL_STATUS_RESET(OPL, 0x7f);\n /* reset with register write */\n OPLWriteReg(OPL, 0x01, 0);\n /* wabesel disable */\n\n OPLWriteReg(OPL, 0x02, 0);\n /* Timer1 */\n\n OPLWriteReg(OPL, 0x03, 0);\n /* Timer2 */\n\n OPLWriteReg(OPL, 0x04, 0);\n /* IRQ mask clear */\n\n for (i = 0xff; i >= 0x20; i--) {\n OPLWriteReg(OPL, i, 0);\n }\n /* reset OPerator paramater */\n for (c = 0; c < OPL.max_ch; c++) {\n OPL_CH CH = OPL.P_CH[c];\n /* OPL.P_CH[c].PAN = OPN_CENTER; */\n for (s = 0; s < 2; s++) {\n /* wave table */\n CH.SLOT[s].wt_offset = 0;\n CH.SLOT[s].wavetable = SIN_TABLE;//CH->SLOT[s].wavetable = &SIN_TABLE[0];\n /* CH.SLOT[s].evm = ENV_MOD_RR; */\n CH.SLOT[s].evc = EG_OFF;\n CH.SLOT[s].eve = EG_OFF + 1;\n CH.SLOT[s].evs = 0;\n }\n }\n if ((OPL.type & OPL_TYPE_ADPCM) != 0) {\n YM_DELTAT DELTAT = OPL.deltat;\n DELTAT.freqbase = OPL.freqbase;\n DELTAT.output_pointer = outd;\n DELTAT.portshift = 5;\n DELTAT.output_range = DELTAT_MIXING_LEVEL << TL_BITS;\n YM_DELTAT_ADPCM_Reset(DELTAT, 0);\n }\n }", "protected void onGetOffTimerReservationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "public static String getTimingDescriptor(byte[] desc) {\n int clock = ByteBuffer.wrap(Arrays.copyOfRange(desc, 0, 2)).order(ByteOrder.LITTLE_ENDIAN).getShort() / 100;\n int hActive = (desc[2] & 0xff) + ((desc[4] & 0xf0) << 4);\n int vActive = (desc[5] & 0xff) + ((desc[7] & 0xf0) << 4);\n return String.format(\"Clock %dMHz, Active Pixels %dx%d \", clock, hActive, vActive);\n }", "public void onTriggerChange() {\n findViewById(R.id.temp).post(new Runnable() {\n public void run() {\n ConsumerIrManager mCIR = ScaryUtil.getConsumerIRService(getApplicationContext());\n if (m_Inst.power) {\n TransmissionCode data = ScaryUtil.getIRCode(m_Inst.sequence, m_Inst.temp); // (TransmissionCode)samsung.get(m_Inst.temp);\n ScaryUtil.transmit(getApplicationContext(),data);\n }\n }\n });\n }", "@Override\r\n public void onChanged(BleDevice device, BluetoothGattCharacteristic characteristic) {\r\n L.e(TAG, \"onChanged==data:\" + Arrays.toString(characteristic.getValue()));\r\n\r\n /**\r\n * {\"tmp\":\"test\",\"now_tmp\":\"37.6\",\"max_tmp\":\"38.1\",\"min_tmp\":\"36.5\"} 模拟数据\r\n * */\r\n\r\n try {\r\n if (result == null) {\r\n result = sb.append(new String(characteristic.getValue(), \"UTF-8\"));\r\n String over = result.toString();\r\n Toast.makeText(getApplicationContext(),over,Toast.LENGTH_SHORT).show();\r\n } else {\r\n result = sb.append(new String(characteristic.getValue(), \"UTF-8\"));\r\n String over = result.toString();\r\n Toast.makeText(getApplicationContext(),over,Toast.LENGTH_SHORT).show();\r\n if (over.contains(\"}\")) {\r\n //解析\r\n JSONObject obj = new JSONObject(over);\r\n // String test = obj.getString(\"tmp\"); //test\r\n String current = obj.getString(\"now_tmp\"); //当前体温\r\n String max = obj.getString(\"max_tmp\"); //最高体温\r\n String min = obj.getString(\"min_tmp\");\r\n if (!TextUtils.isEmpty(current)) {\r\n tv_current_temperature.setText(current);\r\n } else {\r\n tv_current_temperature.setText(\"未知\");\r\n }\r\n if (!TextUtils.isEmpty(max)) {\r\n tv_max_temperature.setText(max);\r\n } else {\r\n tv_max_temperature.setText(\"未知\");\r\n }\r\n\r\n if (!TextUtils.isEmpty(min)) {\r\n tv_min_temperature.setText(min);\r\n } else {\r\n tv_min_temperature.setText(\"未知\");\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n } catch (Exception e) {\r\n Toast.makeText(getApplicationContext(),\"数据源格式出错\",Toast.LENGTH_SHORT).show();\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public static void sleepReset()\r\n\t{\r\n\t\t//FileRegister.setDataInBank(2, Speicher.getPC() + 1);\r\n\t\t//Speicher.setPC(Speicher.getPC()+1);\r\n\t\tFileRegister.setDataInBank(1, 8, FileRegister.getBankValue(1, 8) & 0b00001111); // EECON1\r\n\t}", "public String getTextMessagesForVehicleAndCurrentDriver();", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickPrice((-1403), 2125570549, 4832, 4832);\n assertEquals(\"id=-1403 unknown=4832.0 canAutoExecute\", string0);\n }", "public void procesarTramaEasyFuel(){\n switch (bufferRecepcion[4]){\n //TRAMA DE CONFIGURACION\n case 0x06:\n if(bufferRecepcion[5] == 0x01 || bufferRecepcion[5] == 0x02){\n //TRAMA DE CONFIGURACION\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(bufferRecepcion,bufferRecepcion.length)));\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaNombreEmbedded,tramaNombreEmbedded.length)));\n //Log.v(\"TRAMA EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaMACEmbedded,tramaMACEmbedded.length)));\n //Log.v(\"PING HOST EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaPingHost,tramaPingHost.length)));\n //Log.v(\"NÚMERO DE BOMBAS\", \"\" + byteArrayToHexInt(numeroBombas,1));\n\n llenarDatosConfiguracion();\n insertarMaestrosSQLite();\n agregarImagenEstaciones();\n //inicializarMangueras();\n clientTCPThread.write(EmbeddedPtcl.b_ext_configuracion); //0x06\n\n //inicializarMangueras();\n /*try {\n Thread.sleep(3000);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }*/\n\n //cambiarEstadoIniciaAbastecimiento(1);\n\n }\n break;\n\n //CAMBIO DE ESTADO\n case 0x01:\n int indiceLayoutHose=0;\n //Capturar idBomba\n int[] arrayIdBomba = new int[1];\n int idBomba = 0;\n arrayIdBomba[0] = bufferRecepcion[7];\n idBomba = Integer.parseInt(byteArrayToHexIntGeneral(arrayIdBomba,1));\n\n for(int i=0;i<hoseEntities.size();i++ ){\n if(hoseEntities.get(i).idBomba==idBomba) {\n indiceLayoutHose = i;\n break;\n }\n }\n\n switch (bufferRecepcion[5]){\n case 0x01:\n //Cambio de estado\n if(hoseEntities.size() > 0){\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x02:\n //Estado actual de Mangueras\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n case 0x03:\n //Cambio de Pulsos\n switch (bufferRecepcion[9]){\n case 0x01:\n // FLUJO\n if(hoseEntities.size() > 0){\n cambiarPulsos(indiceLayoutHose);\n }\n break;\n case 0x02:\n // INICIO NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoSinFlujo(indiceLayoutHose);\n }\n break;\n case 0x03:\n // NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoCierreHook(indiceLayoutHose);\n }\n break;\n }\n break;\n case 0x04:\n //Vehiculo Leido\n if(hoseEntities.size() > 0){\n cambiarPlaca(indiceLayoutHose);\n }\n\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x07:\n //Ultima transaccion\n\n if(hoseEntities.size() > 0){\n\n /*for(int j = 0; j< hoseEntities.size(); j++){\n if(hoseEntities.get(j).idBomba == idBomba){\n //llenarDatosTransaccion(hoseEntities.get(j));\n break;\n }\n }*/\n\n llenarDatosTransaccion(hoseEntities.get(indiceLayoutHose),indiceLayoutHose);\n\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n }\n break;\n\n case 0x07:\n switch(bufferRecepcion[5]){\n case 0x01:\n break;\n }\n break;\n }\n changeFragment=true;\n }", "protected void onGetDailyTimerSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}" ]
[ "0.5603063", "0.52276593", "0.5123331", "0.5106899", "0.50825435", "0.5076467", "0.50482285", "0.4983408", "0.4977412", "0.49689403", "0.4954567", "0.49439025", "0.49365246", "0.49192956", "0.49075806", "0.4907172", "0.48998857", "0.48802438", "0.48582426", "0.48571175", "0.4852477", "0.4852208", "0.4843445", "0.48346013", "0.4829616", "0.4825589", "0.4823432", "0.48189893", "0.481709", "0.48156154", "0.47974887", "0.47960594", "0.47960258", "0.47892344", "0.47829786", "0.47785172", "0.47705126", "0.4760908", "0.47506186", "0.47402728", "0.47378185", "0.4723919", "0.47223502", "0.47220358", "0.4709096", "0.4702854", "0.47024792", "0.46932715", "0.46905822", "0.4686461", "0.46723324", "0.46710536", "0.46692052", "0.46675178", "0.46670964", "0.4663611", "0.46560302", "0.46512386", "0.46505833", "0.46480992", "0.46471828", "0.46463168", "0.4639813", "0.4636881", "0.4633849", "0.46337453", "0.46315923", "0.46283033", "0.46276832", "0.46236458", "0.46117455", "0.4609389", "0.46073958", "0.4603472", "0.4602559", "0.45998597", "0.45986253", "0.45962256", "0.45955837", "0.45943436", "0.4593373", "0.45922735", "0.45915252", "0.4590509", "0.4586754", "0.45864752", "0.4580038", "0.45795965", "0.4578843", "0.45761615", "0.45756885", "0.45750976", "0.4573623", "0.45704156", "0.4565877", "0.45649153", "0.45617795", "0.45588672", "0.4557315", "0.4554906" ]
0.62123585
0
TODO Autogenerated method stub
@Override public int getCount() { return 3; }
{ "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 Object getItem(int arg0) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public long getItemId(int arg0) { return 0; }
{ "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
A wrapper for DwClient usage. Wrapping calls to DwClient allows us to mock DwClient in testing.
public interface DataWarehouseRepository { List<DwPerson> searchPeople(String query); List<DwTerm> getTerms(); DwPerson getPersonByLoginId(String loginId); DwCourse findCourse(String subjectCode, String courseNumber, String effectiveTermCode); List<DwCourse> searchCourses(String query); List<DwSection> getSectionsByTermCodeAndUniqueKeys(String termCode, List<String> uniqueKeys); List<DwSection> getSectionsBySubjectCodeAndYear(String subjectCode, Long year); List<DwSection> getSectionsBySubjectCodeAndTermCode(String subjectCode, String termCode); List<DwCensus> getCensusBySubjectCodeAndTermCode(String subjectCode, String termCode); List<DwCensus> getCensusBySubjectCodeAndCourseNumber(String subjectCode, String courseNumber); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DucktalesClient getClient() {\n \treturn client;\n }", "protected Client getRealClient() {\n\t\treturn client;\n\t}", "public static void setClient(DucktalesClient clientInstance) {\n \tclient = clientInstance;\n }", "private MockClientFacade() {\n\t\t//this.c = Client.getInstance();\n\t}", "public abstract Client getClient();", "public interface Client {\n \n /**\n * Get the unique id of current client.\n *\n * @return id of client\n */\n String getClientId();\n \n /**\n * Whether is ephemeral of current client.\n *\n * @return true if client is ephemeral, otherwise false\n */\n boolean isEphemeral();\n \n /**\n * Set the last time for updating current client as current time.\n */\n void setLastUpdatedTime();\n \n /**\n * Get the last time for updating current client.\n *\n * @return last time for updating\n */\n long getLastUpdatedTime();\n \n /**\n * Add a new instance for service for current client.\n *\n * @param service publish service\n * @param instancePublishInfo instance\n * @return true if add successfully, otherwise false\n */\n boolean addServiceInstance(Service service, InstancePublishInfo instancePublishInfo);\n \n /**\n * Remove service instance from client.\n *\n * @param service service of instance\n * @return instance info if exist, otherwise {@code null}\n */\n InstancePublishInfo removeServiceInstance(Service service);\n \n /**\n * Get instance info of service from client.\n *\n * @param service service of instance\n * @return instance info\n */\n InstancePublishInfo getInstancePublishInfo(Service service);\n \n /**\n * Get all published service of current client.\n *\n * @return published services\n */\n Collection<Service> getAllPublishedService();\n \n /**\n * Add a new subscriber for target service.\n *\n * @param service subscribe service\n * @param subscriber subscriber\n * @return true if add successfully, otherwise false\n */\n boolean addServiceSubscriber(Service service, Subscriber subscriber);\n \n /**\n * Remove subscriber for service.\n *\n * @param service service of subscriber\n * @return true if remove successfully, otherwise false\n */\n boolean removeServiceSubscriber(Service service);\n \n /**\n * Get subscriber of service from client.\n *\n * @param service service of subscriber\n * @return subscriber\n */\n Subscriber getSubscriber(Service service);\n \n /**\n * Get all subscribe service of current client.\n *\n * @return subscribe services\n */\n Collection<Service> getAllSubscribeService();\n \n /**\n * Generate sync data.\n *\n * @return sync data\n */\n ClientSyncData generateSyncData();\n \n /**\n * Whether current client is expired.\n *\n * @param currentTime unified current timestamp\n * @return true if client has expired, otherwise false\n */\n boolean isExpire(long currentTime);\n \n /**\n * Release current client and release resources if neccessary.\n */\n void release();\n \n /**\n * Recalculate client revision and get its value.\n * @return recalculated revision value\n */\n long recalculateRevision();\n \n /**\n * Get client revision.\n * @return current revision without recalculation\n */\n long getRevision();\n \n /**\n * Set client revision.\n * @param revision revision of this client to update\n */\n void setRevision(long revision);\n \n}", "private static WebClient getClient(final Context context) {\n if (sInstance == null) {\n sInstance = new WebClient(context);\n }\n return sInstance;\n }", "public interface ICordysGatewayClientFactory\r\n{\r\n /**\r\n * Return a client (the factory is also responsable for creating the gateway).\r\n *\r\n * @return A cordys gateway client.\r\n */\r\n ICordysGatewayClient getGatewayClientInstance();\r\n}", "protected HeavyClient getClient() {\n\t\treturn client;\n\t}", "public static Client getClient(){\n // Create a new client if it hasn't been created yet\n if(client == null) client = new Client(60000,60000);\n return client;\n }", "public static IClient clientAccessor() {\n return Application.getGame().getClientAccessor();\n }", "public static Client getClient() {\n if (ClientHandler.client == null) {\n ClientHandler.client = new Client();\n }\n return ClientHandler.client;\n }", "Client getClient();", "ICordysGatewayClient getGatewayClientInstance();", "Client updateClient(Client client) throws BaseException;", "protected HttpClient getClient() {\n if (client == null) {\n synchronized (this) {\n if (client == null) {\n client = new DefaultHttpClient(conman, params);\n }\n }\n }\n\n return client;\n }", "private SOSCommunicationHandler getClient() {\r\n\t\treturn client;\r\n\t}", "public ReportiumClient createLoggerClient() {\n return new LoggerReportiumClient();\n }", "private OkHttpClient Create() {\n final OkHttpClient.Builder baseClient = new OkHttpClient().newBuilder()\n .connectTimeout(CONNECTION_TIMEOUT, TimeUnit.SECONDS)\n .writeTimeout(WRITE_TIMEOUT, TimeUnit.SECONDS)\n .readTimeout(READ_TIMEOUT, TimeUnit.SECONDS);\n\n // If there's no proxy just create a normal client\n if (appProps.getProxyHost().isEmpty()) {\n return baseClient.build();\n }\n\n final OkHttpClient.Builder proxyClient = baseClient\n .proxy(new java.net.Proxy(java.net.Proxy.Type.HTTP, new InetSocketAddress(appProps.getProxyHost(), Integer.parseInt(appProps.getProxyPort()))));\n\n if (!appProps.getProxyUsername().isEmpty() && !appProps.getProxyPassword().isEmpty()) {\n\n Authenticator proxyAuthenticator;\n String credentials;\n\n credentials = Credentials.basic(appProps.getProxyUsername(), appProps.getProxyPassword());\n\n // authenticate the proxy\n proxyAuthenticator = (route, response) -> response.request().newBuilder()\n .header(\"Proxy-Authorization\", credentials)\n .build();\n proxyClient.proxyAuthenticator(proxyAuthenticator);\n }\n return proxyClient.build();\n\n }", "@Override\r\n\tpublic Client consulterClient(Long codeClient) {\n\t\treturn dao.consulterClient(codeClient);\r\n\t}", "public static Client createClient() {\n JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();\n provider.setAnnotationsToUse(new Annotations[]{Annotations.JACKSON});\n\n ClientConfig config = new ClientConfig(provider);\n //Allow delete request with entity\n config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);\n //It helps to handle cookies\n config.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.FALSE);\n //Allow PATCH\n config.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);\n\n Logger logger = Logger.getLogger(\"Client\");\n Feature feature = new LoggingFeature(logger, Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY,\n null);\n\n //Allow self trusted certificates\n SSLContext sslcontext;\n try {\n sslcontext = SSLContext.getInstance(\"TLS\");\n sslcontext.init(null, new TrustManager[]{new X509TrustManager() {\n public void checkClientTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public void checkServerTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[0];\n }\n }}, new java.security.SecureRandom());\n } catch (KeyManagementException | NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n\n return ClientBuilder\n .newBuilder()\n .withConfig(config)\n .sslContext(sslcontext)\n .build()\n .register(feature)\n .register(MultiPartFeature.class);\n }", "default Client getClient(Long id) {\r\n return get(Client.class, id);\r\n }", "@Test\n public void testClient() {\n try {\n MockWebServer server = new MockWebServer();\n server.enqueue(new MockResponse().setBody(\"hello, world!\"));\n server.start();\n HttpUrl baseUrl = server.url(\"\");\n ConnectionOptions opt = new ConnectionOptions(\"apikey\");\n opt.setHost(baseUrl.toString());\n ApiClientWrapper clientWrapper = new ApiClientWrapper(opt);\n TestApiService testService = clientWrapper.createService(TestApiService.class);\n assertTrue(testService.getEndpointValue().execute().isSuccessful());\n RecordedRequest request = server.takeRequest();\n assertEquals(\"/\" + AN_ENDPOINT_PATH, request.getPath());\n assertNotNull(request.getHeader(\"Authorization\"));\n assertTrue(request.getHeader(\"Authorization\").contains(\"Bearer\"));\n assertNotNull(request.getHeader(\"User-Agent\"));\n assertTrue(request.getHeader(\"User-Agent\").contains(ApiClientWrapper.UserAgent.MBED_CLOUD_SDK_IDENTIFIER));\n server.shutdown();\n } catch (IOException | InterruptedException e) {\n fail(e.getMessage());\n }\n }", "public Client getClient() {\n\t\tcheckInit();\n\t\tfinal Client cli = tenant.getContext().getBean(Client.class);\n\t\tif (cli.getEventMapper()==null) {\n\t\t\tcli.setEventMapper(getEventMapper());\n\t\t}\n\t\treturn cli;\n\t}", "public DNS withClient(Client client) {\n\t\tthis.client = client;\n\t\treturn this;\n\t}", "protected AbstractClient(ClientContext context) {\n this(context, RetryUtils::defaultClientRetry);\n }", "private static Client createDummyClient() {\n\n PhoneNumber num1 = new PhoneNumber(\"Arnold Schubert\",\"0151234567\", \"Ehemann\");\n PhoneNumber num2 = new PhoneNumber(\"Helene Schubert\",\"0171234567\", \"Tochter\");\n ArrayList<PhoneNumber> phoneNumbers1 = new ArrayList<>();\n phoneNumbers1.add(num1);\n phoneNumbers1.add(num2);\n DummyVitalValues vital1 = new DummyVitalValues();\n\n ArrayList<Integer> pictograms1 = new ArrayList<>();\n\n DummyClientMedicine medicine1 = new DummyClientMedicine(DummyMedicine.ITEMS_PRESCRIBED_Erna, DummyMedicine.ITEMS_TEMPORARY, DummyMedicine.ITEMS_SELF_ORDERED);\n\n Client c = new Client(0,R.drawable.erna, \"Erna\",\"Schubert\",\"17.08.1943\",medicine1,DummyNotes.ITEMS_Erna, DummyFixedNotes.ITEMS_Erna, DummyToDos.ITEMS_Erna, vital1.vitalValues, \"Diabetes mellitus, Adipositas, Schilddrüsenunterfuntion\",1,\"Blankenfelder Str. 82, 13127 Berlin\",phoneNumbers1, pictograms1);\n\n return c;\n }", "public void newClient() throws StatsDClientException {\n Lock wl = lock.writeLock();\n StatsDClient newClient = null;\n try {\n newClient = new NonBlockingStatsDClient(prefix, hostname, port);\n LOGGER.info(\"New StatsD client created. \" + newClient.hashCode());\n } catch (StatsDClientException e) {\n LOGGER.warning(\"Could not refresh client, will continue to use old instance\");\n\n if (this.client == null) {\n throw e;\n }\n return;\n }\n\n // only acquire write lock if hostname resolution succeeded.\n wl.lock();\n try {\n if (this.client != null) {\n // this will flush remaining messages out of queue.\n this.client.stop();\n }\n this.client = newClient;\n } catch (Exception e) {\n LOGGER.warning(\"Could not refresh client, will continue to use old instance\");\n if (this.client == null) {\n throw e;\n }\n } finally {\n wl.unlock();\n }\n }", "public Client getSomeClient() {\n return new Client(3L, \"Yulian\", \"Tsvetkovskiy\", 20, null);\n }", "public static Client getInstance() {\n if(client == null) {\n client = new Client();\n }\n return client;\n }", "public static Client getHttpClient() {\r\n return c;\r\n }", "DevicesClient(DevicesImpl serviceClient) {\n this.serviceClient = serviceClient;\n }", "private CloseableHttpClient getHttpClient() {\n return HttpClients.custom()\n .setConnectionManager(httpClientConnectionManager)\n .setConnectionManagerShared(true)\n .build();\n }", "public TelemetryClientClient()\n {\n TelemetryClient tc = new TelemetryClient();\n if (!tc.getOnlineStatus())\n tc.connect(\"a connection string\");\n\n tc.send(\"some message\");\n\n String response = tc.receive();\n\n tc.disconnect();\n\n }", "private WebClient getWebClient() {\n\t\treturn ClientSecurityUtils.applySecurityToRest(\n\t\t\t\tWebClient.fromClient(customerRestWebClient, true),\n\t\t\t\tpropertyManager.getRemoteUsername(),\n\t\t\t\tpropertyManager.getRemotePassword());\n\t}", "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "@Deprecated\n public ConfigAccessor(RealmAwareZkClient zkClient) {\n _zkClient = zkClient;\n _usesExternalZkClient = true;\n }", "protected FHIRClient getClient(Properties properties) throws Exception {\n return FHIRClientFactory.getClient(properties);\n }", "public Client getClient() {\n return client;\n }", "public Client getClient() {\n return client;\n }", "Client createNewClient(Client client);", "Client updateClient(Client client) throws ClientNotFoundException;", "@Override\n\t\tpublic Client getClient(int idClient) {\n\t\t\treturn null;\n\t\t}", "public ClientBuilder proxy(@Nullable Proxy proxy) {\n this.proxy = proxy;\n return this;\n }", "public WebClient getWebClient() {\n if (this.webClient == null) {\n this.webClient = WebClient.builder().baseUrl(getServiceEndpoint()).build();\n }\n\n return this.webClient;\n }", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "public JDispatcherService getClientProxy() {\n\t\t try {\r\n\t\t\t Bundle bundle = Platform.getBundle(\"au.edu.unimelb.plantcell.io.ws.multialign\");\r\n\t\t\t URL u = FileLocator.find(bundle, new Path(\"META-INF/wsdl/tcoffee.wsdl\"), null);\r\n\t\t\t \r\n\t\t\t // must not call default constructor for local WSDL... so...\r\n\t\t\t JDispatcherService_Service cli = new JDispatcherService_Service(u,\r\n\t\t\t\t\t new QName(\"http://soap.jdispatcher.ebi.ac.uk\", \"JDispatcherService\"));\r\n\t\t\t return cli.getJDispatcherServiceHttpPort();\r\n\t\t } catch (Exception e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t Logger.getAnonymousLogger().warning(\"Unable to get TCoffee proxy: \"+e.getMessage());\r\n\t\t\t return null;\r\n\t\t }\r\n\t}", "@Override\n public HelixZkClient buildZkClient(HelixZkClient.ZkConnectionConfig connectionConfig,\n HelixZkClient.ZkClientConfig clientConfig) {\n return new ZkClient(createZkConnection(connectionConfig),\n (int) clientConfig.getConnectInitTimeout(), clientConfig.getOperationRetryTimeout(),\n clientConfig.getZkSerializer(), clientConfig.getMonitorType(), clientConfig.getMonitorKey(),\n clientConfig.getMonitorInstanceName(), clientConfig.isMonitorRootPathOnly());\n }", "protected NuxeoClient getClient() {\n if (client == null) {\n initClient();\n }\n return client;\n }", "private void createClient() {\n tc = new TestClient();\n }", "public TracedHttpClient(final CloseableHttpClient wrappedClient) {\n this(wrappedClient, AWSXRay.getGlobalRecorder());\n }", "public Client getClient() {\n\t\treturn client;\n\t}", "public Client getClient() {\n\t\treturn client;\n\t}", "public DistributedClient(BaseClient client, SimpleSocketConnectionData socketData, BaseTimeOut timeOut) throws ActionFailedException {\n this.client = client;\n BaseTimeOut baseTimeOut = new BaseTimeOut(0, 60000);\n DispatchClient dispatchClient = new DispatchClient(socketData.getIp(), socketData.getPort(), baseTimeOut, (String[]) null);\n String serviceClassName = client.getServiceClassName();\n Socket socketToService = dispatchClient.getServiceConnection(serviceClassName, 0);\n\n if (null != socketToService) {\n client.connect(socketToService, timeOut);\n System.out.println(client.getServiceId());\n }\n }", "public SampleModelDoctorImpl(Object client)\n {\n clientDoctor = (SampleClientDoctor) client;\n }", "Client addClient(Client client) throws BaseException;", "public ClientI getClient() {\n\t\treturn client;\n\t}", "@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}", "static IDiscordClient getBuiltDiscordClient(String token) {\r\n // The ClientBuilder object is where you will attach your params for configuring the instance of your bot.\r\n // Such as withToken, setDaemon etc\r\n return new ClientBuilder()\r\n .withToken(token)\r\n .withPingTimeout(1)\r\n .withRecommendedShardCount()\r\n .build();\r\n }", "@Override\r\n\tpublic void updateclient(Client client) {\n\t\t\r\n\t}", "public Client getClient() {\r\n\t\treturn this.client;\r\n\t}", "@BeforeClass\n\tpublic static void setUpClient() {\n\t\t_client = ClientBuilder.newClient();\n\t}", "public static Client create() {\n ClientConfig clientConfig = new ClientConfig(JacksonFeature.class,\n JacksonJaxbJsonProvider.class,\n JacksonJsonProvider.class);\n return ClientBuilder.newClient(clientConfig);\n }", "private static JsonClient toBasicJson(Client client) {\r\n\t\tJsonClient jsonClient = new JsonClient();\r\n\t\tapplyBasicJsonValues(jsonClient, client);\r\n\t\treturn jsonClient;\r\n\t}", "public interface DedicatedHostsClient {\n /**\n * Create or update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Create Dedicated Host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return specifies information about the Dedicated host along with {@link Response} on successful completion of\n * {@link Mono}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(\n String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters);\n\n /**\n * Create or update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Create Dedicated Host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link PollerFlux} for polling of specifies information about the Dedicated host.\n */\n @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n PollerFlux<PollResult<DedicatedHostInner>, DedicatedHostInner> beginCreateOrUpdateAsync(\n String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters);\n\n /**\n * Create or update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Create Dedicated Host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link SyncPoller} for polling of specifies information about the Dedicated host.\n */\n @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n SyncPoller<PollResult<DedicatedHostInner>, DedicatedHostInner> beginCreateOrUpdate(\n String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters);\n\n /**\n * Create or update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Create Dedicated Host.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link SyncPoller} for polling of specifies information about the Dedicated host.\n */\n @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n SyncPoller<PollResult<DedicatedHostInner>, DedicatedHostInner> beginCreateOrUpdate(\n String resourceGroupName,\n String hostGroupName,\n String hostname,\n DedicatedHostInner parameters,\n Context context);\n\n /**\n * Create or update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Create Dedicated Host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return specifies information about the Dedicated host on successful completion of {@link Mono}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<DedicatedHostInner> createOrUpdateAsync(\n String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters);\n\n /**\n * Create or update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Create Dedicated Host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return specifies information about the Dedicated host.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n DedicatedHostInner createOrUpdate(\n String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters);\n\n /**\n * Create or update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Create Dedicated Host.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return specifies information about the Dedicated host.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n DedicatedHostInner createOrUpdate(\n String resourceGroupName,\n String hostGroupName,\n String hostname,\n DedicatedHostInner parameters,\n Context context);\n\n /**\n * Update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Update Dedicated Host operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return specifies information about the Dedicated host along with {@link Response} on successful completion of\n * {@link Mono}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(\n String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters);\n\n /**\n * Update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Update Dedicated Host operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link PollerFlux} for polling of specifies information about the Dedicated host.\n */\n @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n PollerFlux<PollResult<DedicatedHostInner>, DedicatedHostInner> beginUpdateAsync(\n String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters);\n\n /**\n * Update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Update Dedicated Host operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link SyncPoller} for polling of specifies information about the Dedicated host.\n */\n @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n SyncPoller<PollResult<DedicatedHostInner>, DedicatedHostInner> beginUpdate(\n String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters);\n\n /**\n * Update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Update Dedicated Host operation.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link SyncPoller} for polling of specifies information about the Dedicated host.\n */\n @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n SyncPoller<PollResult<DedicatedHostInner>, DedicatedHostInner> beginUpdate(\n String resourceGroupName,\n String hostGroupName,\n String hostname,\n DedicatedHostUpdate parameters,\n Context context);\n\n /**\n * Update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Update Dedicated Host operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return specifies information about the Dedicated host on successful completion of {@link Mono}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<DedicatedHostInner> updateAsync(\n String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters);\n\n /**\n * Update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Update Dedicated Host operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return specifies information about the Dedicated host.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n DedicatedHostInner update(\n String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters);\n\n /**\n * Update a dedicated host .\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host .\n * @param parameters Parameters supplied to the Update Dedicated Host operation.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return specifies information about the Dedicated host.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n DedicatedHostInner update(\n String resourceGroupName,\n String hostGroupName,\n String hostname,\n DedicatedHostUpdate parameters,\n Context context);\n\n /**\n * Delete a dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link Response} on successful completion of {@link Mono}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(\n String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Delete a dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link PollerFlux} for polling of long-running operation.\n */\n @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n PollerFlux<PollResult<Void>, Void> beginDeleteAsync(\n String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Delete a dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link SyncPoller} for polling of long-running operation.\n */\n @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Delete a dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link SyncPoller} for polling of long-running operation.\n */\n @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n SyncPoller<PollResult<Void>, Void> beginDelete(\n String resourceGroupName, String hostGroupName, String hostname, Context context);\n\n /**\n * Delete a dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return A {@link Mono} that completes when a successful response is received.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<Void> deleteAsync(String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Delete a dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n void delete(String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Delete a dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n void delete(String resourceGroupName, String hostGroupName, String hostname, Context context);\n\n /**\n * Retrieves information about a dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @param expand The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance\n * views of the dedicated host. 'UserData' is not supported for dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return specifies information about the Dedicated host along with {@link Response} on successful completion of\n * {@link Mono}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<Response<DedicatedHostInner>> getWithResponseAsync(\n String resourceGroupName, String hostGroupName, String hostname, InstanceViewTypes expand);\n\n /**\n * Retrieves information about a dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return specifies information about the Dedicated host on successful completion of {@link Mono}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<DedicatedHostInner> getAsync(String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Retrieves information about a dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @param expand The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance\n * views of the dedicated host. 'UserData' is not supported for dedicated host.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return specifies information about the Dedicated host along with {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<DedicatedHostInner> getWithResponse(\n String resourceGroupName, String hostGroupName, String hostname, InstanceViewTypes expand, Context context);\n\n /**\n * Retrieves information about a dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return specifies information about the Dedicated host.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n DedicatedHostInner get(String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response\n * to get the next page of dedicated hosts.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the list dedicated host operation response as paginated response with {@link PagedFlux}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedFlux<DedicatedHostInner> listByHostGroupAsync(String resourceGroupName, String hostGroupName);\n\n /**\n * Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response\n * to get the next page of dedicated hosts.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the list dedicated host operation response as paginated response with {@link PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<DedicatedHostInner> listByHostGroup(String resourceGroupName, String hostGroupName);\n\n /**\n * Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response\n * to get the next page of dedicated hosts.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the list dedicated host operation response as paginated response with {@link PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<DedicatedHostInner> listByHostGroup(String resourceGroupName, String hostGroupName, Context context);\n\n /**\n * Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is\n * running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource\n * Health Center in the Azure Portal. Please refer to\n * https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link Response} on successful completion of {@link Mono}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<Response<Flux<ByteBuffer>>> restartWithResponseAsync(\n String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is\n * running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource\n * Health Center in the Azure Portal. Please refer to\n * https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link PollerFlux} for polling of long-running operation.\n */\n @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n PollerFlux<PollResult<Void>, Void> beginRestartAsync(\n String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is\n * running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource\n * Health Center in the Azure Portal. Please refer to\n * https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link SyncPoller} for polling of long-running operation.\n */\n @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n SyncPoller<PollResult<Void>, Void> beginRestart(String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is\n * running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource\n * Health Center in the Azure Portal. Please refer to\n * https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link SyncPoller} for polling of long-running operation.\n */\n @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n SyncPoller<PollResult<Void>, Void> beginRestart(\n String resourceGroupName, String hostGroupName, String hostname, Context context);\n\n /**\n * Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is\n * running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource\n * Health Center in the Azure Portal. Please refer to\n * https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return A {@link Mono} that completes when a successful response is received.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<Void> restartAsync(String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is\n * running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource\n * Health Center in the Azure Portal. Please refer to\n * https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n void restart(String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is\n * running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource\n * Health Center in the Azure Portal. Please refer to\n * https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n void restart(String resourceGroupName, String hostGroupName, String hostname, Context context);\n\n /**\n * Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The\n * dedicated host sizes provided can be used to only scale up the existing dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the List Dedicated Host sizes operation response as paginated response with {@link PagedFlux}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedFlux<String> listAvailableSizesAsync(String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The\n * dedicated host sizes provided can be used to only scale up the existing dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the List Dedicated Host sizes operation response as paginated response with {@link PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<String> listAvailableSizes(String resourceGroupName, String hostGroupName, String hostname);\n\n /**\n * Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The\n * dedicated host sizes provided can be used to only scale up the existing dedicated host.\n *\n * @param resourceGroupName The name of the resource group.\n * @param hostGroupName The name of the dedicated host group.\n * @param hostname The name of the dedicated host.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the List Dedicated Host sizes operation response as paginated response with {@link PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<String> listAvailableSizes(\n String resourceGroupName, String hostGroupName, String hostname, Context context);\n}", "protected HttpClient getHttpClient( ) {\r\n\t\treturn httpClient;\r\n\t}", "public Client(Client client) {\n\n }", "@Override\n public Cassandra.Client getAPI() {\n return client;\n }", "public interface ApiClient {\n\n /**\n * Retrieves the channels owned by the current API user.\n * \n * @param pageCriteria Optional {@link PageCriteria page criteria}.\n * @return A {@link ChannelsResource} containing a collection of channels owned by the current user.\n * @throws ApiClientException If an error occurs on making the API call.\n */\n ChannelsResource getMyChannels(PageCriteria pageCriteria) throws ApiClientException;\n\n /**\n * Retrieves the channels owned by an identified BrightTALK user.\n * <p>\n * The API credentials used must be authorised to access the identified user's channels.\n * \n * @param userId The ID of the BrightTALK user.\n * @param pageCriteria Optional {@link PageCriteria page criteria}.\n * @return A {@link ChannelsResource} containing a collection of channels owned by the identified user.\n * @throws ApiClientException If an error occurs on making the API call.\n */\n ChannelsResource getUserChannels(int userId, PageCriteria pageCriteria) throws ApiClientException;\n\n /**\n * Retrieves the list of current and/or past subscribers to a channel owned by an API user.\n * \n * @param channelId The ID of the channel.\n * @param subscribed Optionally filters the results according to the subscriber’s current subscription status.\n * {@code true} to to include only those that are subscribed. {@code false} to include only those that are\n * unsubscribed. If not supplied all subscribers are returned, irrespective of their current subscription status.\n * @param subscribedSince Optionally filters the results to include only those subscribers who subscribed after\n * (exclusive) the specified UTC date / time. Supports incremental reporting of new and updated susbcribers. (May,\n * depending on the ‘subscribed’ param, include Subscribers who have since unsubscribed).\n * @param unsubscribedSince Optionally filters the results to include only those subscribers who <em>un</em>subscribed\n * after (exclusive) the specified UTC date / time. Implies setting the {@code subscribed} param to “false”.\n * @param pageCriteria Optional {@link PageCriteria page criteria}.\n * @return A {@link ChannelSubscribersResource} containing a collection of zero or more subscribers to the channel.\n * @throws ApiClientException If an error occurs on making the API call.\n */\n ChannelSubscribersResource getChannelSubscribers(int channelId, Boolean subscribed, Date subscribedSince,\n Date unsubscribedSince, PageCriteria pageCriteria) throws ApiClientException;\n\n /**\n * Retrieves a summary (aggregation) of per subscriber activity for webcasts in one of the channel owner's channels.\n * \n * @param channelId The ID of the channel.\n * @param since Optionally filters the results to include only those Subscriber Webcast Activity (created or) updated\n * after (exclusive) the specified UTC date / time.\n * @param expandChannelSurveyResponse Optionally expands every child Subscriber Webcast Activity to include the\n * subscriber’s response to the channel’s survey, if there is one. Defaults to {@code false}.\n * @param pageCriteria Optional {@link PageCriteria page criteria}.\n * @return A {@link SubscribersWebcastActivityResource} containing a collection of zero or more activities.\n * @throws ApiClientException If an error occurs on making the API call.\n */\n SubscribersWebcastActivityResource getSubscribersWebcastActivityForChannel(int channelId, Date since,\n Boolean expandChannelSurveyResponse, PageCriteria pageCriteria) throws ApiClientException;\n\n /**\n * Retrieves a summary (aggregation) of per subscriber activity for a specific webcast in one of the channel owner's\n * channels.\n * \n * @param channelId The ID of the channel.\n * @param webcastId The ID of the webcast.\n * @param since Optionally filters the results to include only those Subscriber Webcast Activity (created or) updated\n * after (exclusive) the specified UTC date / time.\n * @param expandChannelSurveyResponse Optionally expands every child Subscriber Webcast Activity to include the\n * subscriber’s response to the channel’s survey, if there is one. Defaults to {@code false}.\n * @param pageCriteria Optional {@link PageCriteria page criteria}.\n * @return A {@link SubscribersWebcastActivityResource} containing a collection of zero or more activities.\n * @throws ApiClientException If an error occurs on making the API call.\n */\n SubscribersWebcastActivityResource getSubscribersWebcastActivityForWebcast(int channelId, int webcastId, Date since,\n Boolean expandChannelSurveyResponse, PageCriteria pageCriteria) throws ApiClientException;\n\n /**\n * Retrieves the survey (definitions) for a channel owned by the current user.\n * <p>\n * Supports a Channel owner obtaining a link for subsequently retrieving the responses to a channel survey.\n * \n * @param channelId The ID of the channel.\n * @return A {@link SurveysResource} containing a collection of zero or more {@link SurveyResource surveys}.\n * @throws ApiClientException If an error occurs on making the API call.\n */\n SurveysResource getSurveysForChannel(int channelId) throws ApiClientException;\n\n /**\n * Retrieves an identified survey (definition) owned by the current user.\n * \n * @param surveyId The ID of the survey.\n * @return The {@link SurveyResource}.\n * @throws ApiClientException If an error occurs on making the API call.\n */\n SurveyResource getSurvey(int surveyId) throws ApiClientException;\n\n /**\n * Retrieves all of the responses to an identified survey owned by the current user.\n * \n * @param surveyId The ID of the survey.\n * @param since Optionally filters the results to include only those survey responses (created or) updated after\n * (exclusive) the specified UTC date / time.\n * @param pageCriteria Optional {@link PageCriteria page criteria}.\n * @return A {@link SurveyResponsesResource} containing a collection of zero or more\n * {@link com.neiljbrown.brighttalk.channels.reportingapi.client.resource.SurveyResponseResource survey response}.\n * @throws ApiClientException If an error occurs on making the API call.\n */\n SurveyResponsesResource getSurveyResponses(int surveyId, Date since, PageCriteria pageCriteria)\n throws ApiClientException;\n\n/**\n * Retrieves the webcasts in an identified channel owned by the current user.\n * \n * @param channelId The ID of the channel.\n * @param since Optionally filters the results to include only those webcasts (created or) updated after (exclusive) \n * the specified UTC date / time.\n * @param pageCriteria Optional {@link PageCriteria page criteria}.\n * @return A {@link WebcastsResource} containing a collection of zero or more {@link \n * com.neiljbrown.brighttalk.channels.reportingapi.client.resource.WebcastResource webcasts}.\n * @throws ApiClientException If an error occurs on making the API call.\n */\n WebcastsResource getWebcastsForChannel(int channelId, Date since, PageCriteria pageCriteria)\n throws ApiClientException;\n\n /**\n * Retrieves the full details of an identified webcast, in a channel owned by the current user.\n * \n * @param channelId The ID of the channel.\n * @param webcastId The ID of the webcast.\n * @return The {@link WebcastResource webcast}.\n * @throws ApiClientException If an error occurs on making the API call.\n */\n WebcastResource getWebcast(int channelId, int webcastId) throws ApiClientException;\n\n /**\n * Retrieves all of the registrations for an identified webcast in a channel owned by the current user.\n * \n * @param channelId The ID of the channel.\n * @param webcastId The ID of the webcast.\n * @param since Optionally filters the results to include only those registrations (created or) updated after\n * (exclusive) the specified UTC date / time.\n * @param viewed Optionally filters the results according to whether the registrant has subsequently viewed the \n * webcast in any status (live or recorded). Supports identification of “no shows” - subscribers that registered but \n * have not yet viewed.\n * @param pageCriteria Optional {@link PageCriteria page criteria}. \n * @return A {@link WebcastRegistrationsResource} containing a collection of zero or more {@link \n * com.neiljbrown.brighttalk.channels.reportingapi.client.resource.WebcastRegistrationResource webcast registration}.\n * @throws ApiClientException If an error occurs on making the API call.\n */\n WebcastRegistrationsResource getWebcastRegistrationsForWebcast(int channelId, int webcastId, Date since,\n Boolean viewed, PageCriteria pageCriteria) throws ApiClientException;\n\n /**\n * Retrieves the viewings that have taken place for all webcasts in a channel owned by the current user.\n * \n * @param channelId The ID of the channel.\n * @param since Optionally filters the results to include only those viewings (created or) updated after\n * (exclusive) the specified UTC date / time.\n * @param webcastStatus Optionally filters the results according to the status of the webcast at the time the viewing \n * took place. Must be one of supported status {@link WebcastStatus#LIVE} or {@link WebcastStatus#RECORDED}.\n * @param pageCriteria Optional {@link PageCriteria page criteria}. \n * @return A {@link WebcastViewingsResource} containing a collection of zero or more {@link \n * com.neiljbrown.brighttalk.channels.reportingapi.client.resource.WebcastViewingResource webcast viewing}.\n * @throws IllegalArgumentException If {@code webcastStatus} is not one of the status supported by this API.\n * @throws ApiClientException If an error occurs on making the API call.\n */\n WebcastViewingsResource getWebcastViewingsForChannel(int channelId, Date since, WebcastStatus webcastStatus,\n PageCriteria pageCriteria) throws ApiClientException;\n\n /**\n * Retrieves the viewings that have taken place for an identified webcast in a channel owned by the current user.\n * \n * @param channelId The ID of the channel.\n * @param webcastId The ID of the webcast. \n * @param since Optionally filters the results to include only those vieiwngs (created or) updated after\n * (exclusive) the specified UTC date / time.\n * @param webcastStatus Optionally filters the results according to the status of the webcast at the time the viewing \n * took place. Must be one of supported status {@link WebcastStatus#LIVE} or {@link WebcastStatus#RECORDED}.\n * @param pageCriteria Optional {@link PageCriteria page criteria}. \n * @return A {@link WebcastViewingsResource} containing a collection of zero or more {@link \n * com.neiljbrown.brighttalk.channels.reportingapi.client.resource.WebcastViewingResource webcast viewing}.\n * @throws IllegalArgumentException If {@code webcastStatus} is not one of the status supported by this API.\n * @throws ApiClientException If an error occurs on making the API call.\n */\n WebcastViewingsResource getWebcastViewingsForWebcast(int channelId, int webcastId, Date since,\n WebcastStatus webcastStatus, PageCriteria pageCriteria) throws ApiClientException;\n}", "public abstract void onClientConnect(ClientWrapper client);", "static synchronized MMXClient getMMXClient() {\n checkState();\n return sInstance.mClient;\n }", "protected void setClient(Client _client) {\n\t\tclient = _client;\n\t}", "AblyBase getAblyClient(final long handle) {\n AblyRealtime realtime = getRealtime(handle);\n return (realtime != null) ? realtime : getRest(handle);\n }", "@Override\n\tpublic Client getClientById(int id) {\n\t\treturn null;\n\t}", "Client getClient(int id) throws ClientNotFoundException;", "private Client lireClientServ(int idClient) {\n\t\tClient client = daoclient.readClientDaoById(idClient);\n\t\treturn client;\n\t}", "private WAPIHelper() { }", "private WebClient getWebClient() {\n if (webClient == null) {\n webClient = new WebClient();\n webClient.getOptions().setUseInsecureSSL(true);\n webClient.getOptions().setThrowExceptionOnScriptError(false);\n webClient.getOptions().setCssEnabled(false);\n\n silenceWebClient(webClient);\n }\n\n return webClient;\n }", "protected DockerAbstractClient(@Nonnull Client jerseyClient) {\n this.jerseyClient = jerseyClient;\n }", "@JsonIgnore\n\tpublic WebCrawlerServiceInterface getClient(Boolean local, String group, Integer msTimeout)\n\t\t\tthrows URISyntaxException {\n\t\treturn WebCrawlerServiceInterface.getClient(local, group, msTimeout);\n\t}", "public StatsdClient(String prefix, String hostname, int port) throws StatsDClientException {\n this.hostname = hostname;\n this.prefix = prefix;\n this.port = port;\n\n this.lock = new ReentrantReadWriteLock();\n ScheduledThreadPoolExecutor exec = new ScheduledThreadPoolExecutor(1);\n exec.setRemoveOnCancelPolicy(true);\n\n Runnable refreshClient = new Runnable() {\n @Override\n public void run() {\n newClient();\n }\n };\n exec.scheduleAtFixedRate(refreshClient, CLIENT_TTL, CLIENT_TTL, TimeUnit.SECONDS);\n\n this.newClient();\n LOGGER.info(\"StatsdClient wrapper created. \" + this.hashCode());\n }", "@Override\n public Client createClient(Client client)\n throws RemoteException {\n client=clientManager.create(client);\n \n return client;\n }", "@Override\n\tpublic Player getClient() {\n\t\treturn client;\n\t}", "public static final DefaultHttpClient createHttpClient() {\n\t\treturn createHttpClient(3);\n\t}", "public ServerInfo clientInterface()\n {\n return client_stub;\n }", "public Logic(Starter client) {\n\t\tthis.client = client;\n\t}", "public Client create() {\n RequestProvider provider = RequestProviders.lookup();\n return provider.newClient(this);\n }", "@Bean(name = \"stormpathClient\")\n @Autowired\n public Client getStormpathClient(BridgeConfig bridgeConfig) {\n ApiKey apiKey = ApiKeys.builder()\n .setId(bridgeConfig.getStormpathId().trim())\n .setSecret(bridgeConfig.getStormpathSecret().trim()).build();\n \n ClientBuilder clientBuilder = Clients.builder().setApiKey(apiKey);\n ((DefaultClientBuilder)clientBuilder).setBaseUrl(bridgeConfig.getStormpathBaseUrl());\n return clientBuilder.build(); \n }", "protected ClientFacade createClientFacade(IFlushable flushable, IProtocolLogger logger) {\n return new ClientFacade(flushable, logger);\n }", "public void updateClient()\n\t{\n\t\t// TODO\n\t}", "public static Dataclient GetData(){\n return RetrofitClient.getClient(Base_Url).create(Dataclient.class);\n }", "public static EventClient getEventClient() {\n if (EVENT_CLIENT == null) {\n EVENT_CLIENT = new NetworkEventClient(\n NetworkProvider.SERVER_URL,\n new DefaultNetworkProvider());\n }\n return EVENT_CLIENT;\n }", "public HttpClientHelper() {\n defaultHeaders.put(\"Content-Type\", \"application/json\");\n defaultHeaders.put(\"Accept-Encoding\", \"gzip\");\n\n //postDefaultHeaders.put(\"Content-Type\", \"application/json\");\n //postDefaultHeaders.put(\"Content-Encoding\", \"gzip\");\n\n String key = MessageFormat.format(\"{0}#{1}\", UserUtil.getUserUuid(), UserUtil.getUserId());\n\n //postDefaultHeaders.put(\"X-CLIENT-KEY\", key);\n defaultHeaders.put(\"X-CLIENT-KEY\", key);\n client.setTimeout(3000);\n }", "static Http1Client create(Http1ClientConfig clientConfig) {\n return new Http1ClientImpl(WebClient.create(it -> it.from(clientConfig)), clientConfig);\n }", "public static HttpClient Factory() {\n\t\treturn httpclient;\n\t}", "default WorkdayEndpointProducerBuilder clientSecret(String clientSecret) {\n doSetProperty(\"clientSecret\", clientSecret);\n return this;\n }", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "@Bean\n\tpublic ApiClient apiClient() {\n\t\tApiClient apiClient = new ApiClient(grantType, clientId, clientSecret, accessTokenUri, code);\n\n\t\treturn apiClient;\n\t}", "public SolrZkClient getZkClient(Locale locale) {\n if (zkClient == null) {\n ZkStateReader stateReader = getCatalogSolrServer(locale).getZkStateReader();\n\n if (stateReader == null) {\n try {\n getCatalogSolrServer(locale).ping();\n } catch (IOException ex) {\n if (isLoggingDebug()) {\n logDebug(ex);\n }\n } catch (SolrServerException ex) {\n if (isLoggingDebug()) {\n logDebug(ex);\n }\n }\n stateReader = getCatalogSolrServer(locale).getZkStateReader();\n }\n\n if (stateReader != null) {\n zkClient = stateReader.getZkClient();\n }\n }\n\n if (zkClient == null && isLoggingWarning()) {\n logWarning(\"Unable to get Solr ZooKeeper Client\");\n }\n return zkClient;\n }", "public ApiClient getApiClient() {\n return apiClient;\n }", "public ApiClient getApiClient() {\n return apiClient;\n }" ]
[ "0.6469734", "0.6004672", "0.5942733", "0.5891969", "0.58615565", "0.57412875", "0.57293934", "0.57241327", "0.5700608", "0.55923104", "0.55922043", "0.5552703", "0.549528", "0.54923373", "0.5476489", "0.5464789", "0.5443749", "0.54303813", "0.5427401", "0.53861666", "0.534944", "0.53019094", "0.52968365", "0.5290391", "0.5289387", "0.52716815", "0.52672464", "0.526173", "0.52570885", "0.5244663", "0.5239159", "0.5232177", "0.5225607", "0.520097", "0.5199915", "0.51894855", "0.5170735", "0.5169363", "0.5162477", "0.5162477", "0.51538044", "0.5146644", "0.5140144", "0.513504", "0.51347595", "0.512542", "0.51228005", "0.51221675", "0.5118983", "0.5114099", "0.51133966", "0.51068217", "0.51068217", "0.5085973", "0.50819236", "0.5078026", "0.50737", "0.50670165", "0.50557894", "0.503366", "0.502554", "0.50075287", "0.49950173", "0.49860546", "0.49811202", "0.49770215", "0.49666092", "0.49649912", "0.4958677", "0.49535576", "0.4946439", "0.4940353", "0.49369347", "0.49275452", "0.49168828", "0.4892832", "0.48915267", "0.48850802", "0.48822382", "0.48702022", "0.48674753", "0.4860992", "0.4860564", "0.48593345", "0.48521122", "0.48489872", "0.48439378", "0.48362863", "0.4834245", "0.48265067", "0.48177403", "0.48157746", "0.480604", "0.47959426", "0.47934487", "0.47886872", "0.47862664", "0.47838497", "0.47820145", "0.47773236", "0.47773236" ]
0.0
-1
creates new user with specified details
public User(String name, String email, String password){ this.name = name; this.email = email; this.password = password; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createUser(User user);", "UserCreateResponse createUser(UserCreateRequest request);", "public void createUser(User user) {\n\n\t}", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public void creatUser(String name, String phone, String email, String password);", "User createUser();", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "User createUser(User user);", "User createUser(UserCreationModel user);", "@PostMapping(\"/user/new/\")\n\tpublic userprofiles createUser(@RequestParam String firstname, @RequestParam String lastname, @RequestParam String username, @RequestParam String password, @RequestParam String pic) {\n\t\treturn this.newUser(firstname, lastname, username, password, pic);\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "private void createUser(final String email, final String password) {\n\n }", "User create(User user);", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "int newUser(String username, String password, Time creationTime);", "User create(final User user) throws DatabaseException;", "int createUser(User data) throws Exception;", "public void newUser(User user);", "public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "boolean create(User user) throws Exception;", "public void createUser(SignUpDto signupdto) {\n\t\tUser user = new User();\r\n\t\t\r\n\t\tuser.setId(signupdto.getId());\r\n\t\tuser.setPw(signupdto.getPw());\r\n\t\tuser.setNickname(signupdto.getNickname());\r\n\t\t\r\n\t\tuserRepository.save(user);\t\r\n\t}", "public void create(String userName, String password, String userFullname,\r\n\t\t\tString userSex, int userTel, String role);", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "public UserProfile createUserProfile(String username, UserProfile newProfile);", "@Override\n public ApiResponse createUser(SignupDto signupDto){\n var userRole = this.roleDAO.findByName(RoleEnum.USER);\n Set<Role> userRoles = new HashSet<Role>(Collections.singletonList(userRole.get()));\n\n Person newPerson = new Person();\n newPerson.setEmail(signupDto.getUsername());\n newPerson.setFirstName(signupDto.getFirstName());\n newPerson.setLastName(signupDto.getLastName());\n newPerson.setRoles(userRoles);\n\n // Encriptamos la contraseña que nos mando el usuario\n var encryptedPassword = this.passwordEncoder.encode(signupDto.getPassword());\n newPerson.setPassword(encryptedPassword);\n\n this.personDAO.save(newPerson);\n\n return new ApiResponse(true, \"Usuario creado\");\n\n }", "public void createUserAccount(UserAccount account);", "Human_User createHuman_User();", "public void createUser() throws ServletException, IOException {\n\t\tString fullname = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString email = request.getParameter(\"email\");\n\t\tUsers getUserByEmail = productDao.findUsersByEmail(email);\n\t\t\n\t\tif(getUserByEmail != null) {\n\t\t\tString errorMessage = \"we already have this email in database\";\n\t\t\trequest.setAttribute(\"message\", errorMessage);\n\t\t\t\n\t\t\tString messagePage = \"message.jsp\";\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(messagePage);\n\t\t\trequestDispatcher.forward(request, response);\n\t\t}\n\t\t// create a new instance of users class;\n\t\telse {\n\t\t\tUsers user = new Users();\n\t\t\tuser.setPassword(password);\n\t\t\tuser.setFullName(fullname);\n\t\t\tuser.setEmail(email);\n\t\t\tproductDao.Create(user);\n\t\t\tlistAll(\"the user was created\");\n\t\t}\n\n\t\t\n\t}", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "@RequestMapping(value=\"/user\",method=RequestMethod.POST)\n\tpublic @ResponseBody ResponseEntity<User> createUser(@RequestBody User userDetails) throws Exception{\n\t\tUser user=null;\n\t\n\t\t//for checking update user \n\t\tuser=userDAO.findOne(userDetails.getId());\n\t\tif (user==null){\n\t\t\t//insert new user \n\t\t\ttry{\n\t\t\t\tuser=new User(userDetails.getEmail(),userDetails.getName(),userDetails.getContact(),userDetails.getIsActive(), new Date(),new Date());\n\t\t\t\tuserDAO.save(user);\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tthrow new Exception(\"Exception in saving user details...\",e);\n\t\t\t\t}\n\t\t}else{ \n\t\t\t\tuserDetails.setCreationTime(user.getCreationTime());\n\t\t\t\tuserDetails.setLastModifiedTime(new Date());\n\t\t\t\tuserDAO.save(userDetails);\n\t\t\t}\n\t\t\n\t\t\treturn new ResponseEntity<User>(user, HttpStatus.OK);\n\t}", "public void makeNewUser(String name, int age, String address, String password)\n throws SQLException, ConnectionFailedException, DatabaseInsertException {\n if (this.currentUserAuthenticated) {\n // find the role ID that corresponds to customer\n EnumMapRolesAndAccounts map = new EnumMapRolesAndAccounts();\n map.createEnumMap();\n int roleId = map.roleIds.get(Roles.CUSTOMER);\n int userId = DatabaseInsertHelper.insertNewUser(name, age, address, roleId, password);\n System.out.println(\"User ID - \" + userId);\n System.out.println(\"succesfully made user\");\n } else {\n System.out.println(\"failed making user\");\n throw new ConnectionFailedException();\n }\n }", "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "@RequestMapping(value=\"\", method=RequestMethod.POST, consumes=MediaType.MULTIPART_FORM_DATA_VALUE, produces = \"application/json\")\n\tpublic @ResponseBody Object createUser(@RequestParam String userName, @RequestParam String userPassword, @RequestParam String userFirstName, \n\t\t\t@RequestParam String userLastName, @RequestParam String userPicURL,@RequestParam String userEmail, @RequestParam String userEmployer,\n\t\t\t@RequestParam String userDesignation, @RequestParam String userCity, @RequestParam String userState, @RequestParam(required=false) String programId, \n\t\t\t@RequestParam long updatedBy, @RequestParam String userExpertise, @RequestParam String userRoleDescription,\n\t\t\t@RequestParam String userPermissionCode, @RequestParam String userPermissionDescription, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn userService.createUser(userName, userPassword, userFirstName, userLastName, userPicURL, userEmail, userEmployer, userDesignation, userCity, userState, programId, updatedBy, userExpertise, userRoleDescription, userPermissionCode, userPermissionDescription, request, response);\n\t}", "public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public static void createUser(String fname, String lname, String username, String password) {\n\t\tUser newUser = new User(fname, lname, username, password);\t\n\t}", "void createUser(CreateUserDto createUserDto);", "public UserAuthToken createUser(CreateUserRequest request);", "public UserEntity create(String userId) throws CreateException;", "private User createUser(String username, String name, String email, String password) {\n UserDTO userDTO = new UserDTO();\n userDTO.setEmail(email);\n userDTO.setName(name);\n userDTO.setPassword(password);\n userDTO.setUsername(username);\n\n userService.registerUser(userDTO);\n\n User user = userService.getUserByEmail(email);\n return user;\n }", "@Test\n\tpublic void test_create_new_user_success(){\n\t\tUser user = new User(null, \"create_user\", \"[email protected]\", \"12345678\");\n\t\tResponseEntity<User> response = template.postForEntity(REST_SERVICE_URI + ACCESS_TOKEN + token, user, User.class);\n\t\tUser newUser = response.getBody();\n\t\tassertThat(newUser.getName(), is(\"create_user\"));\n\t\tassertThat(response.getStatusCode(), is(HttpStatus.CREATED));\n\t\tvalidateCORSHttpHeaders(response.getHeaders());\n\t}", "public void createUser(String firstName, String emailAddress) {\n\n this.firstName = firstName;\n this.emailAddress = emailAddress;\n\n }", "Account create();", "@Test\n\tpublic void newUser() {\n\n\t\tUser user = new User(\"moviewatcher\", \"$2a$10$37jGlxDwJK4mRpYqYvPmyu8mqQJfeQJVSdsyFY5UNAm9ckThf2Zqa\", \"USER\");\n\t\tuserRepository.save(user);\n\n\t\tassertThat(user).isNotNull();\n\t\tassertThat(user).hasFieldOrPropertyWithValue(\"username\", \"moviewatcher\");\n\t}", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "@Test\n public void createUserTestTest()\n {\n HashMap<String, Object> values = new HashMap<String, Object>();\n values.put(\"age\", \"22\");\n values.put(\"dob\", new Date());\n values.put(\"firstName\", \"CreateFName\");\n values.put(\"lastName\", \"CreateLName\");\n values.put(\"middleName\", \"CreateMName\");\n values.put(\"pasword\", \"user\");\n values.put(\"address\", \"CreateAddress\");\n values.put(\"areacode\", \"CreateAddressLine\");\n values.put(\"city\", \"CreateCity\");\n values.put(\"country\", \"CreateCountry\");\n values.put(\"road\", \"CreateRoad\");\n values.put(\"suberb\", \"CreateSuberb\");\n values.put(\"cell\", \"CreateCell\");\n values.put(\"email\", \"user\");\n values.put(\"homeTell\", \"CreateHomeTell\");\n values.put(\"workTell\", \"CreateWorkTell\");\n createUser.createNewUser(values);\n\n Useraccount useraccount = useraccountCrudService.findById(ObjectId.getCurrentUserAccountId());\n Assert.assertNotNull(useraccount);\n\n Garage garage = garageCrudService.findById(ObjectId.getCurrentGarageId());\n Assert.assertNotNull(garage);\n\n Saleshistory saleshistory = saleshistoryCrudService.findById(ObjectId.getCurrentSalesHistoryId());\n Assert.assertNotNull(saleshistory);\n }", "private void createUser(String username) {\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Username Field Required!\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String userID = current_user.getUid();\n User user = new User(et_username.getText().toString(), et_gender.getText().toString(), \"Newbie\", \"Online\", \"Active\", userID, \"default_url\");\n mRef.child(mAuth.getCurrentUser().getUid()).setValue(user);\n }\n }", "void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }", "UserModel createUserModel(UserModel userModel);", "@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}", "public void createUserInFirebase(String name, String email, String Uid) {\n User user = new User();\n user.setName(name);\n user.setEmail(email);\n mDatabase.child(\"users\").child(Uid).setValue(user);\n }", "public static User createUser(Integer userId, String firstName, String lastName,\r\n\t\t\tString email, String userName, String companyName) {\r\n\t\tUser user = new User();\r\n\t\tif (userId != null) {\r\n\t\t\tuser.setUserId(userId);\r\n\t\t}\r\n\t\tuser.setFirstName(firstName);\r\n\t\tuser.setLastName(lastName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setUserName(userName);\r\n\t\tuser.setCompanyName(companyName); \r\n\t\treturn user;\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if (CREATE_USER_REQUEST_CODE == requestCode && RESULT_OK == resultCode){\n if (data != null) {\n String username = data.getStringExtra(UserCreationActivity.BUNDLE_NEW_USER_NAME);\n\n User user = new User(username, User.EMPTY_CASE, User.EMPTY_CASE);\n\n createUser(user);\n }\n }\n }", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "@POST\n\t@Path(\"/newUser\")\n\t@Consumes({ MediaType.APPLICATION_JSON })\n\t@Produces({ MediaType.APPLICATION_JSON })\n\t@Transactional\n\tpublic Response createUser(User user) {\n\t\tuserDao.createUser(user);\n\n\t\treturn Response.status(201)\n\t\t\t\t.entity(\"A new user has been created\").build();\n\t}", "public int createUser(Users user) {\n\t\t int result = getTemplate().update(INSERT_users_RECORD,user.getUsername(),user.getPassword(),user.getFirstname(),user.getLastname(),user.getMobilenumber());\n\t\t\treturn result;\n\t\t\n\t\n\t}", "boolean createUser(String username, String password);", "@Override\n\tpublic String DBcreateUser(String userJson) {\n\t\tUser newUser = (User) jsonToUserPOJO(userJson);\n\t\tString id = userRepository.create(newUser);\n\t\treturn id;\n\t}", "private void createNewUser() {\n ContentValues contentValues = new ContentValues();\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.GENDER, getSelectedGender());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.PIN, edtConfirmPin.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.LAST_NAME, edtLastName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.FIRST_NAME, edtFirstName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.STATUS, spnStatus.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.DATE_OF_BIRTH, edtDateOfBirth.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.BLOOD_GROUP, spnBloodGroup.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.IS_DELETED, \"N\");\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.MOBILE_NUMBER, edtMobileNumber.getText().toString());\n contentValues.put(DataBaseConstants.Constants_TBL_CATEGORIES.CREATE_DATE, Utils.getCurrentDateTime(Utils.DD_MM_YYYY));\n\n dataBaseHelper.saveToLocalTable(DataBaseConstants.TableNames.TBL_PATIENTS, contentValues);\n context.startActivity(new Intent(CreatePinActivity.this, LoginActivity.class));\n }", "Boolean registerNewUser(User user);", "private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "private void CreateUserAccount(final String lname, String lemail, String lpassword, final String lphone, final String laddress, final String groupid, final String grouppass ){\n mAuth.createUserWithEmailAndPassword(lemail,lpassword).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //account creation successful\n showMessage(\"Account Created\");\n //after user account created we need to update profile other information\n updateUserInfo(lname, pickedImgUri,lphone, laddress, groupid, grouppass, mAuth.getCurrentUser());\n }\n else{\n //account creation failed\n showMessage(\"Account creation failed\" + task.getException().getMessage());\n regBtn.setVisibility(View.VISIBLE);\n loadingProgress.setVisibility(View.INVISIBLE);\n\n }\n }\n });\n }", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}", "@PostMapping(\"/users\")\n public UsersResponse createNewUser(@RequestBody NewUserRequest request) {\n User user = new User();\n user.setName(request.getName());\n user.setAge(request.getAge());\n user = userRepository.save(user);\n return new UsersResponse(user.getId(), user.getName() + user.getAge());\n }", "public void create() throws DuplicateException, InvalidUserDataException, \n NoSuchAlgorithmException, SQLException {\n\tUserDA.create(this);\n }", "HttpStatus createUserAccount(final String realm, final String username, final String firstName,\n\t\t\tfinal String lastName, final String email, final String password);", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "public void addUser(String id, String display_name, String phone, String national_number, String country_prefix, String created_at) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(User.KEY_UID, id); // FirstName //values.put(User.KEY_FIRSTNAME, id); // FirstName\r\n values.put(\"display_name\", display_name); // LastName\r\n values.put(\"phone\", phone); // Email\r\n values.put(\"national_number\", national_number); // UserName\r\n values.put(\"country_prefix\", country_prefix); // Email\r\n values.put(User.KEY_CREATED_AT, created_at); // Created At\r\n\r\n // Inserting Row\r\n db.insert(User.TABLE_USER_NAME, null, values);\r\n db.close(); // Closing database connection\r\n }", "private String createUser(String name) {\n\t\treturn null;\n\t}", "@RequestMapping(method = RequestMethod.POST, headers = \"Content-Type=application/json\")\n\t@ResponseStatus(HttpStatus.CREATED)\n\tpublic @ResponseBody\n\tResult createUser(@RequestBody Map<String, String> userInfo) {\n\t\tif (userInfo == null || !userInfo.containsKey(\"email\")\n\t\t\t\t|| !userInfo.containsKey(\"password\")) {\n\t\t\treturn new Result().setErrCode(ErrorCode.INVALID_DATA).setErrMsg(\n\t\t\t\t\t\"Invalid regiestration information.\");\n\t\t}\n\t\tWlsUser user = new WlsUser();\n\t\tuser.setEmail(userInfo.get(\"email\"));\n\t\tuser.setPassword(userInfo.get(\"password\"));\n\t\tuser.setFullName(userInfo.get(\"fullName\"));\n\t\tuser.setMobilePhone(userInfo.get(\"mobilePhone\"));\n\t\tuser.setQq(userInfo.get(\"qq\"));\n\t\tuser.setCityCode(userInfo.get(\"area\"));\n\t\tuser.setIndustry(userInfo.get(\"industry\"));\n\t\tuser.setStatus(UserStatusEnum.PENDING_STATUS_AUDIT.value());\n\t\tuser.setUserType(UserType.USER.toString());\n\t\tResult result = new Result();\n\t\ttry {\n\t\t\tuserService.createUser(user);\n\t\t} catch (ServiceException e) {\n\t\t\tresult.setSuccess(false).setErrMsg(e.getMessage());\n\t\t\treturn result;\n\t\t}\n\t\treturn result.setData(user);\n\t}", "public static void createUser(String name, Record record) {\n\t\tEntity user = getUser(name);\n\t\tif(user == null) {\n\t\t\tuser = new Entity(\"User\", name);\n\t\t\tuser.setProperty(\"record\", record);\n\t\t}\n\t\tUtil.persistEntity(user);\n\t}", "private void addNewUser() throws Exception, UnitException {\n String firstNameInput = firstName.getText();\n String lastNameInput = lastName.getText();\n String unitInput = unitID.getText();\n String accountInput = accountTypeValue;\n String passwordInput = password.getText();\n User newUserInfo;\n\n // Create user type based on the commandbox input\n switch (accountInput) {\n case \"Employee\":\n newUserInfo = new Employee(firstNameInput, lastNameInput, unitInput, passwordInput);\n break;\n case \"Lead\":\n newUserInfo = new Lead(firstNameInput, lastNameInput, unitInput, passwordInput);\n break;\n case \"Admin\":\n newUserInfo = new Admin(firstNameInput, lastNameInput, unitInput, passwordInput);\n break;\n default:\n throw new IllegalStateException(\"Unexpected value: \" + accountInput);\n }\n\n // Try adding this new user information to the database, if successful will return success prompt\n try {\n Admin.addUserToDatabase(newUserInfo);\n\n // If successful, output message dialog\n String msg = \"New User \" + firstNameInput + \" \" + lastNameInput + \" with UserID \"\n + newUserInfo.returnUserID() + \" successfully created\";\n JOptionPane.showMessageDialog(null, msg);\n\n // Reset Values\n firstName.setText(\"\");\n lastName.setText(\"\");\n unitID.setText(\"\");\n password.setText(\"\");\n } catch (UserException e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"administrators\")\n Call<Void> createUser(\n @retrofit2.http.Body UserBody userBody\n );", "@POST\n @Path(\"/create\")\n @Consumes(MediaType.APPLICATION_JSON)\n public Response createUser(ProfileJson json) throws ProfileDaoException {\n Profile profile = json.asProfile();\n profile.setPassword(BCrypt.hashpw(profile.getPassword(), BCrypt.gensalt()));\n //add checking if profile doesn't exit\n api.saveProfile(profile, datastore);\n return Response\n .created(null)\n .build();\n }", "public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}", "private User createWithParameters(Map<String, String> userParameters) {\n User user = new User();\n String passHashed = BCrypt.hashpw(userParameters.get(PASSWORD_PARAMETER_NAME), BCrypt.gensalt());\n user.setUsername(userParameters.get(USERNAME_PARAMETER_NAME));\n user.setPassword(passHashed);\n user.setFirstName(userParameters.get(FIRST_NAME_PARAMETER_NAME));\n user.setLastName(userParameters.get(LAST_NAME_PARAMETER_NAME));\n user.setEmail(userParameters.get(EMAIL_PARAMETER_NAME));\n user.setPhone(userParameters.get(PHONE_PARAMETER_NAME));\n user.setAddress(userParameters.get(ADDRESS_PARAMETER_NAME));\n user.setAccount(BigDecimal.ZERO);\n user.setInitDate(LocalDate.now());\n user.setBlockedUntil(LocalDate.now());\n user.setRole(User.Role.USER);\n return user;\n }", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"[email protected]\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "public RecordObject createUser(String token, Object record) throws RestResponseException;", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@FXML\n\tpublic void createUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtUserNames.getText();\n\t\tString lastName = txtUserSurnames.getText();\n\t\tString id = txtUserId.getText();\n\t\tString username = txtUserUsername.getText();\n\t\tString password = PfUserPassword.getText();\n\n\t\tif (!name.equals(empty) && !lastName.equals(empty) && !id.equals(empty) && !username.equals(empty)\n\t\t\t\t&& !password.equals(empty)) {\n\t\t\tcreateSystemUser(name, lastName, id, username, password);\n\t\t\ttxtUserNames.setText(\"\");\n\t\t\ttxtUserSurnames.setText(\"\");\n\t\t\ttxtUserId.setText(\"\");\n\t\t\ttxtUserUsername.setText(\"\");\n\t\t\tPfUserPassword.setText(\"\");\n\t\t\t// labelUserMessage.setText(\"The user has been created\");\n\t\t} else if (name.equals(empty) && lastName.equals(empty) && id.equals(empty) && username.equals(empty)\n\t\t\t\t&& password.equals(empty)) {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "public CreateUser(UserRepository userRepo, String username,\n\t\t\tString password, String email, String fullname) {\n\t\tthis.userRepository = userRepo;\n\t\tthis.username = username;\n\t\tthis.password = password;\n\t\tthis.email = email;\n\t\tthis.fullname = fullname;\n\t}", "@RequestMapping(\"/createnewuser\")\r\n\tpublic ModelAndView userCreated(@ModelAttribute(\"rg\") Register reg) {\r\n\t\t\r\n\t\tBigInteger num = reg.getMb_no();\r\n\t\tSystem.out.println(\"mbno=\"+num.toString());\r\n\t\t//Doing the entry of New User in Spring_Users table\r\n\t\t\r\n\t\tString username = reg.getEmail_id();\r\n\t\tString password = reg.getPassword();\r\n\t\tSpringUsers su = new SpringUsers();\r\n\t\tsu.setUsername(username);\r\n\t\tsu.setPassword(password);\r\n\t\tsu.setEnabled(1);\r\n\t\tSystem.out.println(\"username=\"+username);\r\n\t\tSystem.out.println(\"password=\"+password);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString r = reg.getUser_type();\r\n\t\t\r\n\t\t//if(r.equals(\"ROLE_INDIVIDUAL\"))\r\n\t\t\t//return new ModelAndView(\"individualhomepage\");\r\n\t\t//if(r.equals(\"ROLE_BROKER\"))\r\n\t//\t\treturn new ModelAndView(\"brokerhomepage\");\r\n\t\t//if(r.equals(\"ROLE_BUILDER\"))\r\n\t\t//\treturn new ModelAndView(\"builderhomepage\");\r\n\t\t\r\n\t//\tint i = susvc.entryOfNewUser(su);\r\n\t\t\r\n\t\tint j = regsvc.registerNewUser(reg);\r\n\t\t \r\n\t\treturn new ModelAndView(\"usercreated\");\r\n\r\n\t}", "UserDto create(UserRegistrationDto user);", "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "public CreateNewUserDetails(String sLogin, String sFirstName, \r\n\t\t\tString sLastName, String sPassword, String sEmail)\r\n\t{\r\n\t\t// No language assume English user\r\n\t\tset(sLogin, sFirstName, sLastName, sPassword, sEmail, \"\", \"\", \"\", true);\r\n\t}", "public CreateUser(int age, String name){ // constructor\n userAge = age;\n userName = name;\n }", "private void createPersonFromUser(String fullname){\n String useruid=\"\";\n String useremail=\"\";\n\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n if (user != null) {\n // Name, email address, and profile photo Url\n String username = user.getDisplayName();\n useremail = user.getEmail();\n Uri photoUrl = user.getPhotoUrl();\n\n // The user's ID, unique to the Firebase project. Do NOT use this value to\n // authenticate with your backend server, if you have one. Use\n // FirebaseUser.getToken() instead.\n useruid = user.getUid();\n }\n\n Person person =new Person();\n person.setName(fullname);\n person.setEmail(useremail);\n person.setUid(useruid);\n person.setTime_to_stop(\"0\");\n\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference myRef= database.getReference(\"Person\");\n myRef.child(useruid).setValue(person);\n\n }", "private void writeNewUser(String userId, String name, String email) {\n User user = new User(name, email);\n\n mDatabase.child(\"users\")\n .child(userId)\n .child(\"Name\").setValue(name);\n\n mDatabase.child(\"users\")\n .child(userId)\n .child(\"Email\").setValue(email);\n\n\n }", "@Override\n\tpublic User createUser(String username, String password, String role) throws InvalidRegistrationException {\n\t\tUser user = new TeacherUser();\n\t\tsetUserAttributes(user, username, password, role);\n\t\tif (!(\"teacher\".equalsIgnoreCase(user.getRole()))){\n\t\t\tthrow new InvalidRegistrationException();\n\t\t}\n\t\treturn user;\n\t}", "public void createUser(String username, String password, String role) {\r\n Optional<User> user = userRepo.findByName(username);\r\n if (!user.isPresent()) {\r\n User newUser = new User();\r\n newUser.setName(username);\r\n newUser.setPassword(password);\r\n newUser.setRole(role);\r\n userRepo.save(newUser);\r\n }\r\n }", "@PostMapping(\"/account/create\")\n @PreAuthorize(\"hasRole('USER') or hasRole('ADMIN')\")\n\tpublic ResponseEntity createAccount(\n\t \t @AuthenticationPrincipal UserDetailsImpl userDetail\n\t ){\n\t\t\tAccount account = new Account(userDetail.getId());\n\t\t\t// save the account to the database\n\t\t\tAccount createdAccount = accountRepository.save(account);\n\t \t // response\n\t return ResponseEntity.ok(\n\t \t\tcreatedAccount\n\t );\n\t }", "public void onCreationEvent(UserCreateEvent event){\n user = new UserBean(event.getUser());\n }", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "@Override\npublic String createUser(String userAccount, String userPassword,\n\t\tString userSex, String userEmail, String userName) {\n\t\n\tUser user = new User(userAccount, userPassword, userSex , userEmail, userName);\n\tem.persist(user) ;\n\t return \n\t\t\t \"Account: \" + user.getUserAccount() + \"\\n\" +\n\t\t\t\"Password: \" + user.getUserPassword() + \"\\n\" + \n\t\t\t\"Sex: \" + user.getUserSex() + \"\\n\" +\n\t\t\t\"Email: \" + user.getUserEmail() + \"\\n\" +\n\t\t\t\"Name: \" + user.getUserName();\n\n\t\n}", "private void createUser(Request request, Response response) {\r\n\t\tUserBean userBean = new UserBean();\r\n\t\tRESTfulSession session = null;\r\n\r\n\t\ttry {\r\n\t\t\tBeanHelper.populateUserBeanFromRequest(request, userBean);\r\n\t\t\tString username = userBean.getUsername();\r\n\t\t\tString password = userBean.getPassword();\r\n\t\t\tString email = userBean.getEmail();\r\n\r\n\t\t\tif (StringHelper.isNullOrNullString(username)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(password)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(email)) {\r\n\t\t\t\tthrow new InvalidInputException();\r\n\t\t\t}\r\n\r\n\t\t\tsession = userService.createUser(userBean);\r\n\t\t} catch (InvalidInputException e) {\r\n\t\t\tresponse.setStatus(Status.CLIENT_ERROR_BAD_REQUEST, e.getMessage());\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(Status.SERVER_ERROR_INTERNAL, e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tlog.error(e);\r\n\t\t} finally {\r\n\t\t\t// generate response XML\r\n\t\t\txmlSerializationService.generateXMLResponse(request, response,\r\n\t\t\t\t\tsession);\r\n\t\t}\r\n\t}", "@PostMapping(value = \"/createUser\", consumes = MediaType.APPLICATION_JSON_VALUE, \n\t\t\tproduces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic RestResponse<UserResource> createUser(HttpServletRequest request) throws SQLException {\n\t\tString userName = WebUtil.getCookieValue(request.getCookies(), \"USERNAME\");\n\t\tString uuID = (String)request.getAttribute(\"uuid\");\n\t\tString emailID = (String)request.getAttribute(\"email\");\n\t\tString firstName = (String)request.getAttribute(\"firstname\");\n\t\tString lastName = (String)request.getAttribute(\"lastname\");\n\t\tString browserVersion = request.getHeader(\"user-agent\");\n\t\tString clientAddress = request.getHeader(\"x-forwarded-for\");\n\t\t\n\t\tlogDebug(LOG, \"User Details : {}, {}, {}, {}, {}, {}, {} \", userName, uuID, emailID, firstName, lastName,\n\t\t\t\tbrowserVersion, clientAddress); \n\t\t\n\t\tRestResponse<UserResource> restResponse = new RestResponse<>(SUCCESS);\n\t\ttry {\n\t\t\tUserResource userDetails = userCreationService.createUser(userName, uuID, firstName, lastName, emailID, clientAddress, browserVersion);\n\t\t\tif(StringUtils.isBlank(userDetails.getUserKey())) {\n\t\t\t\trestResponse.setStatus(ERROR);\n\t\t\t\trestResponse.setErrorMessage(\"Exception occured while retrieving details.\");\n\t\t\t}\n\t\t\tif(StringUtils.isNotBlank(userDetails.getErrorMsg()))\t{\n\t\t\t\trestResponse.setStatus(ERROR);\n\t\t\t\trestResponse.setErrorMessage(userDetails.getErrorMsg());\t\t\t\n\t\t\t}\n\t\t\trestResponse.setResult(userDetails);\n\t\t} catch (Exception e) { // this is for inactive.\n\t\t\trestResponse.setStatus(ERROR);\n\t\t\trestResponse.setErrorMessage(\"You do not have any active roles in the system. Please contact your Supervisor to activate roles.\");\n\t\t\tLOG.error(\"Exception while executing createUser service \", e);\n\t\t}\n\t\treturn restResponse;\n\t\t\n\t}", "UserAccount createUserAccount(User user, double amount);", "@RequestMapping(method=RequestMethod.POST)\n\tpublic User create(@AuthenticationPrincipal @RequestBody UserEntry entry) {\n\t\tUser user = new User(entry);\n\t\tuser.setUserId(counter.getNextUserIdSequence());\n\t\tuser.setRoleId(role.findByIsDefault(true).getRoleId());\n\t\tPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();\n\t\tString hashedPassword = passwordEncoder.encode(user.getPassword());\n\t\tuser.setPassword(hashedPassword);\n\t\treturn repo.save(user);\n\t}" ]
[ "0.7859281", "0.78420573", "0.7817631", "0.7725164", "0.7656275", "0.75932276", "0.7552943", "0.7505997", "0.74142504", "0.74113286", "0.7334091", "0.7302263", "0.7299948", "0.72829133", "0.72340405", "0.72169405", "0.7202122", "0.71952724", "0.71902317", "0.7168647", "0.71375597", "0.71207976", "0.71198714", "0.71198004", "0.70830107", "0.70744956", "0.705015", "0.7033478", "0.7033261", "0.7021565", "0.7021543", "0.700886", "0.6994451", "0.6981262", "0.6977144", "0.6976641", "0.697298", "0.6959681", "0.6956963", "0.6955307", "0.6946544", "0.6935216", "0.6912098", "0.690309", "0.69005746", "0.68967456", "0.68837214", "0.6883468", "0.68791884", "0.686976", "0.686938", "0.6836171", "0.6818974", "0.6806048", "0.67958766", "0.6793077", "0.678853", "0.6768376", "0.67661893", "0.6758294", "0.67491156", "0.6748706", "0.6736806", "0.67318153", "0.6726294", "0.67204523", "0.67142475", "0.6713742", "0.671093", "0.67020273", "0.6681277", "0.6678262", "0.6676683", "0.6665041", "0.6657066", "0.6651094", "0.66392416", "0.6636872", "0.66335326", "0.6628212", "0.66235334", "0.66227657", "0.66113573", "0.6607442", "0.6605062", "0.660174", "0.6598099", "0.65880865", "0.65870523", "0.6568621", "0.65663856", "0.6564684", "0.6560768", "0.65524036", "0.6548907", "0.65486175", "0.6544087", "0.6542372", "0.65397686", "0.65363324", "0.6535561" ]
0.0
-1
creates user with given name and email
public User(String name, String email){ this(name, email, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createUser(final String email, final String password) {\n\n }", "public void creatUser(String name, String phone, String email, String password);", "public void createUser(String firstName, String emailAddress) {\n\n this.firstName = firstName;\n this.emailAddress = emailAddress;\n\n }", "private User createUser(String username, String name, String email, String password) {\n UserDTO userDTO = new UserDTO();\n userDTO.setEmail(email);\n userDTO.setName(name);\n userDTO.setPassword(password);\n userDTO.setUsername(username);\n\n userService.registerUser(userDTO);\n\n User user = userService.getUserByEmail(email);\n return user;\n }", "private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }", "public void createUserInFirebase(String name, String email, String Uid) {\n User user = new User();\n user.setName(name);\n user.setEmail(email);\n mDatabase.child(\"users\").child(Uid).setValue(user);\n }", "public void createUser(User user);", "@Override\n public User signUpUser(String name, String username, String password, String email) throws UsernameExistsException {\n User u = new User(name, username, password, email);\n if (userDataMapper.getUserByUserName(username) != null)\n throw new UsernameExistsException();\n userDataMapper.add(u);\n return u;\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "UserCreateResponse createUser(UserCreateRequest request);", "public void createUser(User user) {\n\n\t}", "public UserTO createUser(String name, String email, String password) {\n\t\tUserTO res = new UserTO();\n\n\t\tres.setName(name);\n res.setEmail(email);\n res.setPassword(password);\n\t\tres.setCreationDate(new Date());\n\t\tres.setModifyDate(new Date());\n\t\tres.setActive(true);\n\n\t\treturn res;\n\t}", "User createUser();", "public void createUser() throws ServletException, IOException {\n\t\tString fullname = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString email = request.getParameter(\"email\");\n\t\tUsers getUserByEmail = productDao.findUsersByEmail(email);\n\t\t\n\t\tif(getUserByEmail != null) {\n\t\t\tString errorMessage = \"we already have this email in database\";\n\t\t\trequest.setAttribute(\"message\", errorMessage);\n\t\t\t\n\t\t\tString messagePage = \"message.jsp\";\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(messagePage);\n\t\t\trequestDispatcher.forward(request, response);\n\t\t}\n\t\t// create a new instance of users class;\n\t\telse {\n\t\t\tUsers user = new Users();\n\t\t\tuser.setPassword(password);\n\t\t\tuser.setFullName(fullname);\n\t\t\tuser.setEmail(email);\n\t\t\tproductDao.Create(user);\n\t\t\tlistAll(\"the user was created\");\n\t\t}\n\n\t\t\n\t}", "User createUser(User user);", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "public static User createUser(Integer userId, String firstName, String lastName,\r\n\t\t\tString email, String userName, String companyName) {\r\n\t\tUser user = new User();\r\n\t\tif (userId != null) {\r\n\t\t\tuser.setUserId(userId);\r\n\t\t}\r\n\t\tuser.setFirstName(firstName);\r\n\t\tuser.setLastName(lastName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setUserName(userName);\r\n\t\tuser.setCompanyName(companyName); \r\n\t\treturn user;\r\n\t}", "private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public synchronized User createAccount(String username, String password, String type, String actualName, String email) {\r\n\t\tUser user = new User();\r\n\t\tuser.setActualName(actualName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setPassword(password);\r\n\t\tuser.setType(type);\r\n\t\tuser.setUsername(username);\r\n\t\tboolean added = addUser(user);\r\n\t\tif (added) {\r\n\t\t\treturn user;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public void createUser(String email, String password) {\n\n if (!validateForm()) {\n return;\n }\n\n signupBtn.setEnabled(false);\n startLoadAnim(getString(R.string.registering_user));\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n Toast.makeText(LoginActivity.this, R.string.registration_failed, Toast.LENGTH_SHORT).show();\n signupBtn.setEnabled(true);\n stopLoadAnim();\n }\n }\n });\n }", "void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);", "HttpStatus createUserAccount(final String realm, final String username, final String firstName,\n\t\t\tfinal String lastName, final String email, final String password);", "public User(String name, String email, String password){\n this.name = name;\n this.email = email;\n this.password = password;\n }", "private void createAccount(String email, String password) {\n if (!validateForm()) {\n return;\n }\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n Toast.makeText(MainActivity.this, \"Unable to creat Account\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "User createUser(UserCreationModel user);", "User register(String firstName, String lastName, String username, String email) throws UserNotFoundException, EmailExistException, UsernameExistsException, MessagingException;", "boolean create(User user) throws Exception;", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public User(String name) {\n this(UUID.randomUUID().toString(), name, String.format(\"User account for %s\", name) );\n }", "public User create(final String email, final String username, final String password) {\n return create(new User(email, username, password));\n }", "public void createUserAccount(UserAccount account);", "@When(\"I try to register a new user with existing email\")\n\tpublic void i_try_to_register_a_new_user_with_existing_email() {\n\n\t\tString sql = \"select email from users\\n\" + \"where email is not null\\n\" + \" limit 1;\";\n\t\temail = (String) DBUtils.getCellValue(sql);\n\t\tassertNotNull(email);\n\n\t\tresponce = RestAssured.given().header(\"Authorization\", RestUtils.token).param(\"first-name\", \"Johnny\")\n\t\t\t\t.param(\"last-name\", \"Cage\").param(\"email\", email).param(\"password\", \"subzerobest\")\n\t\t\t\t.param(\"role\", \"student-team-member\").param(\"batch-number\", \"8\").param(\"team-name\", \"CodeHunters\")\n\t\t\t\t.param(\"campus-location\", \"VA\").when().post(RestAssured.baseURI + \"/api/students/student\");\n\n\t}", "public void create(String userName, String password, String userFullname,\r\n\t\t\tString userSex, int userTel, String role);", "int createUser(User data) throws Exception;", "public Login createUser(final String username, final String password, final String eMailAddress) {\r\n\t\tLogin login = this.getLogin(username);\r\n\t\tif (login == null) {\r\n\t\t\tthis.em.getTransaction().begin();\r\n\r\n\t\t\tEmailAddress email = this.getEmail(eMailAddress);\r\n\t\t\tif (email == null) {\r\n\t\t\t\temail = new EmailAddress();\r\n\t\t\t\temail.setEMailAddress(eMailAddress);\r\n\t\t\t\tthis.em.persist(email);\r\n\t\t\t}\r\n\r\n\t\t\tlogin = new Login();\r\n\t\t\tlogin.setPassword(password);\r\n\t\t\tlogin.setUser(username);\r\n\t\t\tlogin.setEmail(email);\r\n\t\t\tthis.em.persist(login);\r\n\t\t\tthis.em.getTransaction().commit();\r\n\t\t} \r\n\t\treturn login;\r\n\t}", "boolean createUser(String username, String password);", "public static void createUser(String fname, String lname, String username, String password) {\n\t\tUser newUser = new User(fname, lname, username, password);\t\n\t}", "private void createEmailAndPasswordAccount(String email, String password){\n\n if(!checkForInvalidInput()) return;\n\n // Copied from Firebase documentation\n Log.d(\"CreateAccount\", \"In create method\");\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n FirebaseUser user = mAuth.getCurrentUser();\n\n if(user == null){\n Log.d(TAG, \"User is null?\");\n }\n\n else if(isStudent){\n createLocalStudentUserData(user);\n onCreateSuccessStudent();\n }\n\n else if(isTeacher){\n createLocalTeacherUserData(user);\n onCreateSuccessTeacher();\n }\n\n else{\n Log.d(TAG, \"A problem has occurred in choosing between creating a teacher or student\");\n }\n\n\n } else {\n Log.d(TAG, \"Creating the user account was not successful\");\n Toast.makeText(getApplicationContext(),\n \"Account creation unsuccessful. Perhaps one already exists with this email\",\n Toast.LENGTH_LONG).show();\n }\n\n }\n });\n\n }", "public CreateUser(UserRepository userRepo, String username,\n\t\t\tString password, String email, String fullname) {\n\t\tthis.userRepository = userRepo;\n\t\tthis.username = username;\n\t\tthis.password = password;\n\t\tthis.email = email;\n\t\tthis.fullname = fullname;\n\t}", "public User(String name, String surname, String mail, String phone) {\n this.name = name;\n this.surname = surname;\n this.mail = mail;\n this.phone = phone;\n }", "private void createAccount(final String email, final String password) {\n if (!validateForm()) {\n return;\n }\n showProgressDialog();\n\n // [START create_user_with_email]\n Log.d(TAG, email);\n Log.d(TAG, password);\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(JE_Login_Home.this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n if (!task.isSuccessful()) {\n makeText(getApplicationContext(), R.string.toast_authentication_failed, Toast.LENGTH_SHORT).show();\n updateUI(null);\n } else {\n sendEmailVerification();\n }\n\n // [START_EXCLUDE]\n hideProgressDialog();\n // [END_EXCLUDE]\n\n }\n });\n // [END create_user_with_email]\n }", "@Override\npublic String createUser(String userAccount, String userPassword,\n\t\tString userSex, String userEmail, String userName) {\n\t\n\tUser user = new User(userAccount, userPassword, userSex , userEmail, userName);\n\tem.persist(user) ;\n\t return \n\t\t\t \"Account: \" + user.getUserAccount() + \"\\n\" +\n\t\t\t\"Password: \" + user.getUserPassword() + \"\\n\" + \n\t\t\t\"Sex: \" + user.getUserSex() + \"\\n\" +\n\t\t\t\"Email: \" + user.getUserEmail() + \"\\n\" +\n\t\t\t\"Name: \" + user.getUserName();\n\n\t\n}", "public final void createUserWithEmailAndPassword(final String email, String password) {\n authentication.createUserWithEmailAndPassword(email, password).addOnCompleteListener(activity, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n user = task.getResult().getUser();\n onSignUpSuccess();\n }\n else onSignUpFailed(task);\n }\n });\n }", "User create(User user);", "@Override\n public boolean createAccount(String fullName, String username, String password, String email){\n // will change this if we make some errors.\n if(!usernameToPerson.containsKey(username)) { // check that there is not someone with that username\n Organizer og = new Organizer(fullName, username, password, email);\n updateUsernameToPerson(og.getUsername(), og); // see below\n idToPerson.put(og.getID(), og);\n return true;\n }\n\n return false;\n\n }", "public User(String userName, String password, String email) {\n this.userName = userName;\n this.password = password;\n this.email = email;\n }", "@ApiMethod(name = \"insertNewUser\")\n\tpublic AuthResponse insertNewUser(@Named(\"email\") String email,\n\t\t\t@Named(\"password\") String password,\n\t\t\t@Named(\"firstName\") String firstName,\n\t\t\t@Named(\"lastName\") String lastName,\n\t\t\t@Named(\"displayName\") String displayName) {\n\t\tEntityManager mgr = getEntityManager();\n\n\t\tAuthResponse response = new AuthResponse();\n\n\t\tUser user = new User();\n\n\t\tDate insertedDate = new Date();\n\n\t\tuser.setEmail(email);\n\t\tuser.setPassword(HashUtil.getEncryptedPassword(password, insertedDate));\n\t\tuser.setInsertedDate(insertedDate);\n\t\tuser.setUpdatedDate(insertedDate);\n\t\tuser.setFirstName(firstName);\n\t\tuser.setLastName(lastName);\n\t\tuser.setDisplayName(displayName);\n\n\t\ttry {\n\t\t\t// if (containsUser(user)) {\n\t\t\t// throw new EntityExistsException(\"Object already exists\");\n\t\t\t// }\n\t\t\tmgr.persist(user);\n\t\t} finally {\n\t\t\tmgr.close();\n\t\t}\n\n\t\tresponse.setUser(user);\n\t\tresponse.setApiKey(generateAPIKey(user.getKey().getId(),\n\t\t\t\tuser.getPassword(), insertedDate.getTime()));\n\n\t\treturn response;\n\t}", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "@PostMapping(\"/user/new/\")\n\tpublic userprofiles createUser(@RequestParam String firstname, @RequestParam String lastname, @RequestParam String username, @RequestParam String password, @RequestParam String pic) {\n\t\treturn this.newUser(firstname, lastname, username, password, pic);\n\t}", "@RequestMapping(value=\"\", method=RequestMethod.POST, consumes=MediaType.MULTIPART_FORM_DATA_VALUE, produces = \"application/json\")\n\tpublic @ResponseBody Object createUser(@RequestParam String userName, @RequestParam String userPassword, @RequestParam String userFirstName, \n\t\t\t@RequestParam String userLastName, @RequestParam String userPicURL,@RequestParam String userEmail, @RequestParam String userEmployer,\n\t\t\t@RequestParam String userDesignation, @RequestParam String userCity, @RequestParam String userState, @RequestParam(required=false) String programId, \n\t\t\t@RequestParam long updatedBy, @RequestParam String userExpertise, @RequestParam String userRoleDescription,\n\t\t\t@RequestParam String userPermissionCode, @RequestParam String userPermissionDescription, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn userService.createUser(userName, userPassword, userFirstName, userLastName, userPicURL, userEmail, userEmployer, userDesignation, userCity, userState, programId, updatedBy, userExpertise, userRoleDescription, userPermissionCode, userPermissionDescription, request, response);\n\t}", "public static void createUser(String name, Record record) {\n\t\tEntity user = getUser(name);\n\t\tif(user == null) {\n\t\t\tuser = new Entity(\"User\", name);\n\t\t\tuser.setProperty(\"record\", record);\n\t\t}\n\t\tUtil.persistEntity(user);\n\t}", "private void createUserInFirebaseHelper(final String encodedEmail) {\n }", "User create(final User user) throws DatabaseException;", "public static User create(String email, String password)\n {\n User user = new User(email, email, password);\n user.save();\n return user;\n }", "private void createUser(Request request, Response response) {\r\n\t\tUserBean userBean = new UserBean();\r\n\t\tRESTfulSession session = null;\r\n\r\n\t\ttry {\r\n\t\t\tBeanHelper.populateUserBeanFromRequest(request, userBean);\r\n\t\t\tString username = userBean.getUsername();\r\n\t\t\tString password = userBean.getPassword();\r\n\t\t\tString email = userBean.getEmail();\r\n\r\n\t\t\tif (StringHelper.isNullOrNullString(username)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(password)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(email)) {\r\n\t\t\t\tthrow new InvalidInputException();\r\n\t\t\t}\r\n\r\n\t\t\tsession = userService.createUser(userBean);\r\n\t\t} catch (InvalidInputException e) {\r\n\t\t\tresponse.setStatus(Status.CLIENT_ERROR_BAD_REQUEST, e.getMessage());\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(Status.SERVER_ERROR_INTERNAL, e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tlog.error(e);\r\n\t\t} finally {\r\n\t\t\t// generate response XML\r\n\t\t\txmlSerializationService.generateXMLResponse(request, response,\r\n\t\t\t\t\tsession);\r\n\t\t}\r\n\t}", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "@Override\n\tpublic void create(String username, String password, String email) throws SQLException, IllegalArgumentException, InvalidEmailException, DuplicateUsernameException, DuplicateEmailException {\n\t\t@SuppressWarnings(\"unused\")\n\t\tAccount tempA = new Account(0, username, password, email);\n\n\t\t// Find if username or email already exists\n\t\tString sqlQuery = \"SELECT username, email \"\n\t\t\t\t+ \"FROM account \"\n\t\t\t\t+ \"WHERE username LIKE ? OR email LIKE ?\";\n\t\tPreparedStatement statement = dbConnection.prepareStatement(sqlQuery);\n\t\tstatement.setString(1, username);\n\t\tstatement.setString(2, email);\n\t\tResultSet result = statement.executeQuery();\n\n\t\t// If result finds a match\n\t\t// Throw duplicate error\n\t\tif (result.next()) {\n\t\t\tString resultUsername = result.getString(\"username\");\n\n\t\t\tif (resultUsername.toLowerCase().equals(username.toLowerCase())) {\n\t\t\t\tresult.close();\n\t\t\t\tthrow new DuplicateUsernameException(\"The username \" + username + \" already exists\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tstatement.close();\n\t\t\t\tresult.close();\n\t\t\t\tthrow new DuplicateEmailException(\"The email \" + email + \" already exists\");\n\t\t\t}\n\t\t}\n\t\tstatement.close();\n\t\tresult.close();\n\n\t\t// No errors, insert into DB\n\t\tsqlQuery = \"INSERT INTO account (username, password, email) \"\n\t\t\t\t+ \"VALUES (?, ?, ?)\";\n\t\tstatement = dbConnection.prepareStatement(sqlQuery);\n\t\tstatement.setString(1, username);\n\t\tstatement.setString(2, password);\n\t\tstatement.setString(3, email);\n\n\t\t// Execute, throws error if failed\n\t\tstatement.executeUpdate();\n\t\tstatement.close();\n\t}", "public static JSONObject createAccount(Context context, String firstName, String lastName, String email, String password) {\n\t\ttry {\n\t\t\tfirstName = URLEncoder.encode(firstName, \"UTF-8\");\n\t\t\tlastName = URLEncoder.encode(lastName, \"UTF-8\");\n\t\t\temail = URLEncoder.encode(email, \"UTF-8\");\n\t\t\tpassword = URLEncoder.encode(password, \"UTF-8\");\n\t\t\tString response = makeAPICall(context, \"createuser.php?first_name=\" + firstName + \"&last_name=\" + lastName + \"&email=\" + email + \"&password=\" + password);\n\t\t\treturn new JSONObject(response);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public void makeNewUser(String name, int age, String address, String password)\n throws SQLException, ConnectionFailedException, DatabaseInsertException {\n if (this.currentUserAuthenticated) {\n // find the role ID that corresponds to customer\n EnumMapRolesAndAccounts map = new EnumMapRolesAndAccounts();\n map.createEnumMap();\n int roleId = map.roleIds.get(Roles.CUSTOMER);\n int userId = DatabaseInsertHelper.insertNewUser(name, age, address, roleId, password);\n System.out.println(\"User ID - \" + userId);\n System.out.println(\"succesfully made user\");\n } else {\n System.out.println(\"failed making user\");\n throw new ConnectionFailedException();\n }\n }", "public boolean newUser(String email, String senha) {\n try {\n return usDao.newUser(email, senha);\n } catch (SQLException ex) {\n throw new RuntimeException(\"an error occurred trying to add a new user to database: \" + ex.getMessage());\n }\n }", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public com.vh.locker.ejb.Contact create(java.lang.Long id, java.lang.String name, java.lang.String nickName, java.lang.String phone, java.lang.String email, com.vh.locker.ejb.User anUser) throws javax.ejb.CreateException;", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }", "public AppUser(String email, String firstName, String lastName) {\n \tthis.email = email;\n \tthis.firstName = firstName;\n \tthis.lastName = lastName;\n \tthis.password = \"password\";\n }", "public static void create(\n\t\t\t@Required String firstName,\n\t\t\t@Required String lastName,\n\t\t\t@Required String email,\n\t\t\t@Required String password,\n\t\t\t@Equals(value=\"password\", message =\"Нууц үг таарахгүй байна\") \n\t\t\tString passwordConfirmation) throws Exception{\n\t\t// Check if the email already exists\n\t\tvalidation.isTrue(\"emailExistence\", \n\t\t\t\tUser.find(\"byEmail\", email).first() == null)\n\t\t\t\t.message(\"Email already exists\");\n\t\t\n\t\tif(validation.hasErrors()) {\n\t\t params.flash(); \n\t\t validation.keep();\n\t\t // redirect to sign-up page back\n\t\t signup();\n\t\t} else {\n\t\t\tnew User(firstName, lastName, email, password).save();\n\t\t\t// redirect to home page\n\t\t\tApplication.index();\n\t\t}\n\t}", "public void createUser(User u) {\n\n em.persist(u);\n\n String content = \"new user: \" + u.getName() + \" => \" + u.getPassword();\n\n MailMessage mailMessage = new MailMessage();\n\n mailMessage.addRecipient(\"[email protected]\");\n mailMessage.setContent(content);\n mailMessage.setSubject(\"new user: \" + u.getName());\n mailer.sendAsyncMail(mailMessage);\n\n mailer.sendSyncMail(mailMessage);\n\n }", "public CreateNewUserDetails(String sLogin, String sFirstName, \r\n\t\t\tString sLastName, String sPassword, String sEmail)\r\n\t{\r\n\t\t// No language assume English user\r\n\t\tset(sLogin, sFirstName, sLastName, sPassword, sEmail, \"\", \"\", \"\", true);\r\n\t}", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "private void writeNewUser(String userId, String name, String email) {\n User user = new User(name, email);\n\n mDatabase.child(\"users\")\n .child(userId)\n .child(\"Name\").setValue(name);\n\n mDatabase.child(\"users\")\n .child(userId)\n .child(\"Email\").setValue(email);\n\n\n }", "public User(String email, String password, String firstName, String lastName) {\n this.email = email;\n this.password = password;\n this.firstName = firstName;\n this.lastName = lastName;\n }", "private void registerByEmail() {\n\n String username = editUsername.getText().toString();\n String email = editEmail.getText().toString();\n String password = editPassword.getText().toString();\n\n AVUser person = new AVUser();\n person.setUsername(username);\n person.setEmail(email);\n person.setPassword(password);\n person.put(Person.NICK_NAME,username);\n\n person.signUpInBackground(new SignUpCallback() {\n @Override\n public void done(AVException e) {\n if (e == null) {\n ShowMessageUtil.tosatFast(\"register successful!\", EmailRegisterActivity.this);\n openValidateDialog();\n } else {\n ShowMessageUtil.tosatSlow(\"fail to register:\" + e.getMessage(), EmailRegisterActivity.this);\n }\n }\n });\n }", "void insertUser(String pseudo, String password, String email) throws SQLException;", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "void ensureUserCreationAllowed(String email, String userName) throws BadRequestException, ConflictException, ServerException;", "public static void addNewUser(String name, String email, int accountLevel)\n\t{\n\t\tString[] names = name.split(\" \");\n\t\tString fname = names[0];\n\t\tString lname = names[1];\n\t\tString sql = \"INSERT INTO UserInfo (firstname, lastname, email, accountlevel) \"\n\t\t\t\t+ \"VALUES (?, ?, ?, ?)\";\n\t\ttry(Connection conn = DriverManager.getConnection(db, user, pwd);\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);)\n\t\t{\n\t\t\tps.setString(1, fname);\n\t\t\tps.setString(2, lname);\n\t\t\tps.setString(3, email);\n\t\t\tps.setInt(4, accountLevel);\n\t\t\tps.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public UserAuthToken createUser(CreateUserRequest request);", "public static int createUser(String firstName, String secondName,\n\t\t\tString email, String nickname, String password, int language)\n\t\t\tthrows SQLException {\n\n\t\tVariables nowLanguage;\n\t\tif (language == Variables.ENGLISH.getValue())\n\t\t\tnowLanguage = Variables.ENGLISH;\n\t\telse\n\t\t\tnowLanguage = Variables.PORTUGUESE;\n\t\tUserDB newUser = new UserDB(firstName, secondName, nickname, email,\n\t\t\t\tpassword, nowLanguage, Variables.DEFAULT_COINS.getValue());\n\n\t\tint result = newUser.addUser().getValue();\n\t\tif (result != Variables.SUCCESS.getValue())\n\t\t\treturn result;\n\n\t\tList<RoomsDB> rooms = Rooms.getRoomsCreatedByUser(\"master\");\n\t\tif (rooms == null)\n\t\t\treturn result;\n\n\t\tfor (RoomsDB room : rooms) {\n\t\t\tRooms.enterToRoom(nickname, \"12345\", room.getRoomId());\n\t\t}\n\n\t\treturn result;\n\t}", "public void createUser(VUser vUser) {\n\t\tUser user = new User();\n\n\t\tboolean match = Pattern.matches(Constants.REGEX_EMAIL, vUser.getEmail());\n\t\tif (!match) {\n\t\t\tthrow new ResponseStatusException(HttpStatus.BAD_REQUEST, \"El email tiene formato incorrecto.\");\n\t\t}\n\n\t\tif (repo.getUserByEmail(vUser.getEmail()) != null) {\n\t\t\tthrow new ResponseStatusException(HttpStatus.BAD_REQUEST, \"Ya hay un usuario con ese email.\");\n\t\t}\n\n\t\tuser.setEmail(vUser.getEmail());\n\t\tuser.setFullName(vUser.getFullName());\n\t\t\n\t\tif(vUser.getFullName() == null || vUser.getFullName().isEmpty()) {\n\t\t\tuser.setFullName(vUser.getEmail());\n\t\t}\n\n\t\t// TODO: hashear password\n\t\tuser.setPasswordHash(vUser.getPassword());\n\n\t\tuser.setRoles(vUser.getRoles());\n\t\tuser.setUserType(vUser.getUserType());\n\n\t\trepo.createUser(user);\n\t}", "private void createAccount(String username, String passphrase, String email) {\n\tif (!AccountManager.getUniqueInstance().candidateUsernameExists(username)) {\n\t try {\n\t\tAccountManager.getUniqueInstance().createCandidateAccount(username, \n\t\t\t\t\t\t\t\t\t passphrase, \n\t\t\t\t\t\t\t\t\t email);\n\t } catch (Exception e) {\n\t\tthrow new RuntimeException(\"creation failed\");\n\t }\n\t} else {\n\t throw new RuntimeException(\"username already exists\");\n\t}\n }", "Human_User createHuman_User();", "public User(String name, String password, String email, UserGroup group) {\n super();\n this.name = name;\n this.password = password;\n this.email = email;\n this.group = group;\n this.active = true;\n this.iD = Toolbox.nextID();\n }", "private void createAccount(String email, String password) {\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n FirebaseUser user = mAuth.getCurrentUser();\n textViewStatus.setText(\"Signed In\");\n } else {\n // If sign in fails, display a message to the user.\n Toast.makeText(MainActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n textViewStatus.setText(\"Signed Out\");\n }\n\n }\n });\n }", "private void createUser(String username) {\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Username Field Required!\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String userID = current_user.getUid();\n User user = new User(et_username.getText().toString(), et_gender.getText().toString(), \"Newbie\", \"Online\", \"Active\", userID, \"default_url\");\n mRef.child(mAuth.getCurrentUser().getUid()).setValue(user);\n }\n }", "private void CreateUserAccount(final String lname, String lemail, String lpassword, final String lphone, final String laddress, final String groupid, final String grouppass ){\n mAuth.createUserWithEmailAndPassword(lemail,lpassword).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //account creation successful\n showMessage(\"Account Created\");\n //after user account created we need to update profile other information\n updateUserInfo(lname, pickedImgUri,lphone, laddress, groupid, grouppass, mAuth.getCurrentUser());\n }\n else{\n //account creation failed\n showMessage(\"Account creation failed\" + task.getException().getMessage());\n regBtn.setVisibility(View.VISIBLE);\n loadingProgress.setVisibility(View.INVISIBLE);\n\n }\n }\n });\n }", "@GetMapping(path = \"create/{name}\", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public String createUser(Authentication authentication, @PathVariable String name) {\n User user = new User();\n user.setUsername(name);\n user.setMail(name + \"@gmail.com\");\n //todo to add it in Factory !\n // log.info(repository.createUser(user).toString());\n return \"Create user with id :\" + user.getId();\n }", "void signUpAttempt(String email, String password, String firstName, String lastName);", "public void addUser(String name, String email, String uid, String created_at) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_NAME, name); // Nombre\n values.put(KEY_EMAIL, email); // Email\n values.put(KEY_UID, uid); // Email\n values.put(KEY_CREATED_AT, created_at); // Fecha de creación\n\n // Insertar tabla\n long id = db.insert(TABLE_USER, null, values);\n db.close(); // Cerra la conexion con la base de datos\n\n Log.d(TAG, \"Nuevo usuario insertado en sqlite: \" + id);\n }", "public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "public User(String name, String email) {\n HashMap<String, Object> timeStamp = new HashMap<>();\n timeStamp.put(Constants.FIREBASE_PROPERTY_TIMESTAMP, ServerValue.TIMESTAMP);\n\n this.name = name;\n this.email = email;\n this.dateCreated = timeStamp;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if (CREATE_USER_REQUEST_CODE == requestCode && RESULT_OK == resultCode){\n if (data != null) {\n String username = data.getStringExtra(UserCreationActivity.BUNDLE_NEW_USER_NAME);\n\n User user = new User(username, User.EMPTY_CASE, User.EMPTY_CASE);\n\n createUser(user);\n }\n }\n }", "private void writeNewUser(String name,String email,String password) {\n mDatabase.child(\"User\").child(name).child(\"Email\").setValue(email);\n mDatabase.child(\"User\").child(name).child(\"Password\").setValue(password);\n }", "public void register(String firstname, String lastname, String username, String email, String password) {\n BasicDBObject query = new BasicDBObject();\n query.put(\"firstname\", firstname);\n query.put(\"lastname\", lastname);\n query.put(\"username\", username);\n query.put(\"email\", email);\n query.put(\"password\", password);\n query.put(\"rights\", 0);\n users.save(query);\n System.out.println(\"### DATABASE: user \" + username + \" registered ... password hash: \" + password);\n }", "public User(String name, String surname, String mail, String phone, Role role) {\n this.name = name;\n this.surname = surname;\n this.mail = mail;\n this.phone = phone;\n this.role = role;\n }", "public UserProfile createUserProfile(String username, UserProfile newProfile);", "public void createUser(SignUpDto signupdto) {\n\t\tUser user = new User();\r\n\t\t\r\n\t\tuser.setId(signupdto.getId());\r\n\t\tuser.setPw(signupdto.getPw());\r\n\t\tuser.setNickname(signupdto.getNickname());\r\n\t\t\r\n\t\tuserRepository.save(user);\t\r\n\t}", "@Test\n\tpublic void newUser() {\n\n\t\tUser user = new User(\"moviewatcher\", \"$2a$10$37jGlxDwJK4mRpYqYvPmyu8mqQJfeQJVSdsyFY5UNAm9ckThf2Zqa\", \"USER\");\n\t\tuserRepository.save(user);\n\n\t\tassertThat(user).isNotNull();\n\t\tassertThat(user).hasFieldOrPropertyWithValue(\"username\", \"moviewatcher\");\n\t}", "@Test\n public void testCreateUserWithExistingUsername() {\n final String username = \"[email protected]\";\n final CreateUserRequest request1 = new CreateUserRequest(username, \"Michael\", \"Pickelbauer\");\n final CreateUserRequest request2 = new CreateUserRequest(username, \"Hugo\", \"Mayer\");\n\n // Now let's create the two user accounts\n final CreateUserResponse response1 = administration.createUser(token, request1);\n final CreateUserResponse response2 = administration.createUser(token, request2);\n\n // The first request should work like a charm\n assertThat(response1, is(not(nullValue())));\n assertThat(response1.isOk(), is(true));\n\n // The second request should fail, as we already have a user with this\n // username in the system\n assertThat(response2, is(not(nullValue())));\n assertThat(response2.isOk(), is(false));\n assertThat(response2.getError(), is(IWSErrors.USER_ACCOUNT_EXISTS));\n assertThat(response2.getMessage(), is(\"An account for the user with username \" + username + \" already exists.\"));\n }" ]
[ "0.8087648", "0.7904528", "0.7774649", "0.7604972", "0.7553221", "0.74970865", "0.7489447", "0.7461781", "0.7356977", "0.7347863", "0.7319622", "0.7270466", "0.72255045", "0.72175366", "0.719392", "0.71932334", "0.7178383", "0.7156387", "0.7146046", "0.71447647", "0.71108234", "0.7071391", "0.70498365", "0.7013706", "0.69853425", "0.6970884", "0.69638413", "0.6953863", "0.6951709", "0.69452256", "0.69414836", "0.6940691", "0.6935259", "0.69272035", "0.6926346", "0.6925803", "0.6923459", "0.6901463", "0.6894061", "0.68800247", "0.6879182", "0.68685216", "0.6863901", "0.68567723", "0.68271923", "0.6826534", "0.6810832", "0.6805211", "0.68014354", "0.67963016", "0.67687577", "0.6767492", "0.6766169", "0.6762805", "0.6741653", "0.6737079", "0.67268455", "0.6720202", "0.67117864", "0.6708743", "0.6700817", "0.66947114", "0.66800773", "0.6676068", "0.6673305", "0.6670717", "0.66682875", "0.66633224", "0.6661564", "0.6658787", "0.66567487", "0.66448283", "0.66402423", "0.6638933", "0.6638091", "0.6632166", "0.66273916", "0.661987", "0.6613873", "0.66100675", "0.66098326", "0.6602134", "0.6590439", "0.657405", "0.6569732", "0.65587157", "0.6558413", "0.65540105", "0.6543819", "0.6530081", "0.6521638", "0.651929", "0.65167814", "0.6510235", "0.649736", "0.64962715", "0.64955544", "0.64935744", "0.6490308", "0.64830935" ]
0.71188
20
creates new user with null fields
public User(){ this(null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "@Test\n public void invalidNullFieldUserCreation() {\n testUser.setUsername(null);\n\n Assertions.assertFalse(this.userDAO.insertNewUser(testUser));\n }", "@Override\n\tpublic Usuario createUsuario(Usuario usr) {\n\t\treturn null;\n\t}", "public User(){\r\n this.id = 0;\r\n this.firstName = null;\r\n this.lastName = null;\r\n }", "UserCreateResponse createUser(UserCreateRequest request);", "public void createUser(User user);", "User createUser();", "public void createUser(User user) {\n\n\t}", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "@Test\n\tpublic void createUsersServiceTestKo_pwdNull() {\n\t\tUserDto user = null;\n\t\tDate now = Calendar.getInstance().getTime();\n\t\tList<Profil> listProfils = profilService.findAll();\n\t\ttry {\n\t\t\t//insert users\n\t\t\t\tuser = new UserDto();\n\t\t\t\tuser.setProfil(listProfils.get(0));\n\t\t\t\tuser.setModificationDate(now);\n\t\t\t\tuser.setCreationDate(now);\n\t\t\t\tuser.setFirstname(\"firstname\");\n\t\t\t\tuser.setEmail(\"email\");\n\t\t\t\tuser.setUserLastname(\"last name\");\n\t\t\t\tuserService.createUser(user);\n\t\t\t\tfail();\n\t\t} catch (HangTechnicalException e) {\n\t\t\te.printStackTrace();\n\t\t\tassertThat(\"Erro while saving user\", equalTo(e.getMessage()));\n\t\t\tassertTrue(e.getCause().getCause() instanceof NullPointerException);\n\t\t} \n\t}", "@Test\n public void invalidNullUserCreation() {\n boolean success = this.userDAO.insertNewUser(null);\n\n Assertions.assertFalse(success);\n }", "public User() {\n username = null;\n password = null;\n email = null;\n firstName = null;\n lastName = null;\n gender = null;\n personID = null;\n }", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "public User()\r\n\t{\r\n\t\tthis.userId = 0;\r\n\t\tthis.userName = \"\";\r\n\t\tthis.role = \"\";\r\n\t\tthis.firstName = \"\";\r\n\t\tthis.lastName = \"\";\r\n\t\tthis.emailAddress = \"\";\r\n\t\tthis.streetAddress = \"\";\r\n\t\tthis.city = \"\";\r\n\t\tthis.state = \"\";\r\n\t\tthis.zip = 0;\r\n\t\tthis.country = \"\";\r\n\t}", "private String createUser(String name) {\n\t\treturn null;\n\t}", "@Test\n public void invalidEmptyFieldUserCreation() {\n testUser.setFirstName(\"\");\n\n Assertions.assertFalse(this.userDAO.insertNewUser(testUser));\n }", "User createUser(User user);", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "public void creatUser(String name, String phone, String email, String password);", "User createUser(UserCreationModel user);", "@Override\n\tpublic Usuario create(Usuario obj) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "User create(final User user) throws DatabaseException;", "private void createUser(String username) {\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Username Field Required!\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String userID = current_user.getUid();\n User user = new User(et_username.getText().toString(), et_gender.getText().toString(), \"Newbie\", \"Online\", \"Active\", userID, \"default_url\");\n mRef.child(mAuth.getCurrentUser().getUid()).setValue(user);\n }\n }", "@Test(expectedExceptions = DataAccessException.class)\r\n public void testCreateNullUser() {\r\n ActivityRecord record = new ActivityRecord();\r\n record.setActivity(sportActivity);\r\n record.setDistance(5);\r\n record.setTime(Long.MIN_VALUE);\r\n record.setUser(null);\r\n\r\n recordDao.create(record);\r\n }", "public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "int createUser(User data) throws Exception;", "@Test\n\tpublic void newUser() {\n\n\t\tUser user = new User(\"moviewatcher\", \"$2a$10$37jGlxDwJK4mRpYqYvPmyu8mqQJfeQJVSdsyFY5UNAm9ckThf2Zqa\", \"USER\");\n\t\tuserRepository.save(user);\n\n\t\tassertThat(user).isNotNull();\n\t\tassertThat(user).hasFieldOrPropertyWithValue(\"username\", \"moviewatcher\");\n\t}", "@PostMapping(\"/user/new/\")\n\tpublic userprofiles createUser(@RequestParam String firstname, @RequestParam String lastname, @RequestParam String username, @RequestParam String password, @RequestParam String pic) {\n\t\treturn this.newUser(firstname, lastname, username, password, pic);\n\t}", "public User()\n\t{\n\t\tfirstName = \"\";\n\t\tlastName = \"\";\n\t\tusername = \"\";\n\t\tpassword = \"\";\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }", "boolean create(User user) throws Exception;", "User create(User user);", "public User() {\r\n\t\tuName = null;\r\n\t\tpassword = null;\r\n\t\tfullName = null;\r\n\t\tphone = null;\r\n\t\temail = null;\r\n\t}", "public User() {\n setName(\"\");\n setBirthdate(\"\");\n setCity(\"\");\n setIsSingle(true);\n setPartnerName(\"\");\n setPartnerGender(\"\");\n setMonthsUntilDeath(0);\n }", "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "public void newUser(User user);", "protected User(){\n this.username = null;\n this.password = null;\n this.accessLevel = null;\n this.name = DEFAULT_NAME;\n this.telephone = DEFAULT_TELEPHONE;\n this.email = DEFAULT_EMAIL;\n }", "public User(int user_id, String full_name, String address, String postal_code, int mobile_no,\n String snow_zone, String garbage_day, String password){\n this.user_id = user_id;\n this.full_name = full_name;\n this.address = address;\n this.postal_code = postal_code;\n this.mobile_no = mobile_no;\n this.snow_zone = snow_zone;\n this.garbage_day = garbage_day;\n this.password = password;\n\n }", "public User() {\n name = \"\";\n }", "private void createUser(final String email, final String password) {\n\n }", "@Override\n\tpublic boolean create(User user) {\n\t\treturn false;\n\t}", "public UserRecord(Integer idUser, String name, String surname, String title, LocalDateTime dateBirth, LocalDateTime dateCreate, LocalDateTime dateUpdate, LocalDateTime dateDelete, String govId, String username, String password, String email, String gender, String status) {\n super(User.USER);\n\n set(0, idUser);\n set(1, name);\n set(2, surname);\n set(3, title);\n set(4, dateBirth);\n set(5, dateCreate);\n set(6, dateUpdate);\n set(7, dateDelete);\n set(8, govId);\n set(9, username);\n set(10, password);\n set(11, email);\n set(12, gender);\n set(13, status);\n }", "@Override\n\tpublic String createUser(UserType user) throws InvalidEntityException {\n\t\treturn null;\n\t}", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public UserEntity create(String userId) throws CreateException;", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"[email protected]\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "@Test(alwaysRun = true, priority = 4)\n public void test005createUserWithEmptyFieldsTest() {\n close();\n login();\n //create user with all empty fields\n createUser(\"\", new HashMap<String, String>());\n\n //check if error message appears after user saving\n getFeedbackPanel().find(byText(\"No name in new object\"));\n }", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }", "@Transactional\n public Long createUser(User user) {\n user.setId(null);\n final User createdUser = userRepository.save(user);\n return createdUser.getId();\n }", "Human_User createHuman_User();", "public Builder clearCreateUser() {\n \n createUser_ = getDefaultInstance().getCreateUser();\n onChanged();\n return this;\n }", "public User() {}", "public User() {}", "public User() {}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if (CREATE_USER_REQUEST_CODE == requestCode && RESULT_OK == resultCode){\n if (data != null) {\n String username = data.getStringExtra(UserCreationActivity.BUNDLE_NEW_USER_NAME);\n\n User user = new User(username, User.EMPTY_CASE, User.EMPTY_CASE);\n\n createUser(user);\n }\n }\n }", "void createUser(CreateUserDto createUserDto);", "public User() {\r\n this(\"\", \"\");\r\n }", "@FXML\n\tpublic void createUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtUserNames.getText();\n\t\tString lastName = txtUserSurnames.getText();\n\t\tString id = txtUserId.getText();\n\t\tString username = txtUserUsername.getText();\n\t\tString password = PfUserPassword.getText();\n\n\t\tif (!name.equals(empty) && !lastName.equals(empty) && !id.equals(empty) && !username.equals(empty)\n\t\t\t\t&& !password.equals(empty)) {\n\t\t\tcreateSystemUser(name, lastName, id, username, password);\n\t\t\ttxtUserNames.setText(\"\");\n\t\t\ttxtUserSurnames.setText(\"\");\n\t\t\ttxtUserId.setText(\"\");\n\t\t\ttxtUserUsername.setText(\"\");\n\t\t\tPfUserPassword.setText(\"\");\n\t\t\t// labelUserMessage.setText(\"The user has been created\");\n\t\t} else if (name.equals(empty) && lastName.equals(empty) && id.equals(empty) && username.equals(empty)\n\t\t\t\t&& password.equals(empty)) {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "@Override\n\tpublic User insertNewUser(User User) {\n\t\treturn null;\n\t}", "UserModel createUserModel(UserModel userModel);", "@Override\n\tpublic User Create(User t) {\n\t\tsessionFactory.getCurrentSession().save(t);\n\t\t\n\t\treturn t;\n\t}", "public User() {\n uid= 0;\n username = \"\";\n password = \"\";\n role = \"user\";\n status = false;\n updatedTime = new Timestamp(0);\n }", "public static User createUser(Integer userId, String firstName, String lastName,\r\n\t\t\tString email, String userName, String companyName) {\r\n\t\tUser user = new User();\r\n\t\tif (userId != null) {\r\n\t\t\tuser.setUserId(userId);\r\n\t\t}\r\n\t\tuser.setFirstName(firstName);\r\n\t\tuser.setLastName(lastName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setUserName(userName);\r\n\t\tuser.setCompanyName(companyName); \r\n\t\treturn user;\r\n\t}", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "@Test\n\tpublic void createUsersServiceTestKo_profilNull() {\n\t\tUserDto user = null;\n\t\tDate now = Calendar.getInstance().getTime();\n\t\tString password;\n\n\t\ttry {\n\t\t\t//insert users\n\t\t\t\tpassword = new String(\"Password\");\n\t\t\t\tuser = new UserDto();\n\t\t\t\tuser.setFirstname(\"firstname\");\n\t\t\t\tuser.setModificationDate(now);\n\t\t\t\tuser.setCreationDate(now);\n\t\t\t\tuser.setUserLastname(\"lastname\");\n\t\t\t\tuser.setEmail(\"[email protected]\");\n\t\t\t\tuser.setPassword(password);\n\t\t\t\tuserService.createUser(user);\n\t\t\t\tfail();\n\t\t} catch (HangTechnicalException e) {\n\t\t\tassertThat(\"Erro while saving user\", equalTo(e.getMessage()));\n\t\t\tassertTrue(e.getCause() instanceof ConstraintViolationException);\n\t\t\tConstraintViolationException exp = (ConstraintViolationException) e.getCause();\n\t\t\tSet<ConstraintViolation<?>> violations = exp.getConstraintViolations();\n\t\t\tif (violations.size() > 1)\n\t\t\t\tfail();\n\t\t\tIterator<ConstraintViolation<?>> iter = violations.iterator();\n\t\t\tConstraintViolation<?> violationInError = iter.next();\n\t\t\t\tString msgTemplate = violationInError.getMessageTemplate();\n\t\t\t\tassertThat(\"{javax.validation.constraints.NotNull.message}\", equalTo(msgTemplate));\n\n\t\t} \n\t}", "public void createUser(SignUpDto signupdto) {\n\t\tUser user = new User();\r\n\t\t\r\n\t\tuser.setId(signupdto.getId());\r\n\t\tuser.setPw(signupdto.getPw());\r\n\t\tuser.setNickname(signupdto.getNickname());\r\n\t\t\r\n\t\tuserRepository.save(user);\t\r\n\t}", "public User() {\r\n \r\n }", "public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "int newUser(String username, String password, Time creationTime);", "private User createDummyUser(String userId) {\n\n return new User(userId, \"Usr_\" + userId, new ArrayList<ShoppingList>());\n }", "@Test\n public void createUserTestTest()\n {\n HashMap<String, Object> values = new HashMap<String, Object>();\n values.put(\"age\", \"22\");\n values.put(\"dob\", new Date());\n values.put(\"firstName\", \"CreateFName\");\n values.put(\"lastName\", \"CreateLName\");\n values.put(\"middleName\", \"CreateMName\");\n values.put(\"pasword\", \"user\");\n values.put(\"address\", \"CreateAddress\");\n values.put(\"areacode\", \"CreateAddressLine\");\n values.put(\"city\", \"CreateCity\");\n values.put(\"country\", \"CreateCountry\");\n values.put(\"road\", \"CreateRoad\");\n values.put(\"suberb\", \"CreateSuberb\");\n values.put(\"cell\", \"CreateCell\");\n values.put(\"email\", \"user\");\n values.put(\"homeTell\", \"CreateHomeTell\");\n values.put(\"workTell\", \"CreateWorkTell\");\n createUser.createNewUser(values);\n\n Useraccount useraccount = useraccountCrudService.findById(ObjectId.getCurrentUserAccountId());\n Assert.assertNotNull(useraccount);\n\n Garage garage = garageCrudService.findById(ObjectId.getCurrentGarageId());\n Assert.assertNotNull(garage);\n\n Saleshistory saleshistory = saleshistoryCrudService.findById(ObjectId.getCurrentSalesHistoryId());\n Assert.assertNotNull(saleshistory);\n }", "@Override\n public ApiResponse createUser(SignupDto signupDto){\n var userRole = this.roleDAO.findByName(RoleEnum.USER);\n Set<Role> userRoles = new HashSet<Role>(Collections.singletonList(userRole.get()));\n\n Person newPerson = new Person();\n newPerson.setEmail(signupDto.getUsername());\n newPerson.setFirstName(signupDto.getFirstName());\n newPerson.setLastName(signupDto.getLastName());\n newPerson.setRoles(userRoles);\n\n // Encriptamos la contraseña que nos mando el usuario\n var encryptedPassword = this.passwordEncoder.encode(signupDto.getPassword());\n newPerson.setPassword(encryptedPassword);\n\n this.personDAO.save(newPerson);\n\n return new ApiResponse(true, \"Usuario creado\");\n\n }", "private void createNewUser() {\n ContentValues contentValues = new ContentValues();\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.GENDER, getSelectedGender());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.PIN, edtConfirmPin.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.LAST_NAME, edtLastName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.FIRST_NAME, edtFirstName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.STATUS, spnStatus.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.DATE_OF_BIRTH, edtDateOfBirth.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.BLOOD_GROUP, spnBloodGroup.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.IS_DELETED, \"N\");\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.MOBILE_NUMBER, edtMobileNumber.getText().toString());\n contentValues.put(DataBaseConstants.Constants_TBL_CATEGORIES.CREATE_DATE, Utils.getCurrentDateTime(Utils.DD_MM_YYYY));\n\n dataBaseHelper.saveToLocalTable(DataBaseConstants.TableNames.TBL_PATIENTS, contentValues);\n context.startActivity(new Intent(CreatePinActivity.this, LoginActivity.class));\n }", "public void create() throws DuplicateException, InvalidUserDataException, \n NoSuchAlgorithmException, SQLException {\n\tUserDA.create(this);\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "@Test\n public void testCreateAccountWithoutPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"[email protected]\");\n createUserRequest.setFirstname(\"Beta\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n\n // Check that the user is in the list of members\n final String memberGroupId = findMemberGroup(token).getGroupId();\n token.setGroupId(memberGroupId);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroupId);\n final FetchGroupResponse groupResponse = administration.fetchGroup(token, groupRequest);\n assertThat(groupResponse, is(not(nullValue())));\n }", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "public CreateUser(int age, String name){ // constructor\n userAge = age;\n userName = name;\n }", "private void writeNewUser(String userId, String name, String email) {\n User user = new User(name, email);\n\n mDatabase.child(\"users\")\n .child(userId)\n .child(\"Name\").setValue(name);\n\n mDatabase.child(\"users\")\n .child(userId)\n .child(\"Email\").setValue(email);\n\n\n }", "public void createUser() throws ServletException, IOException {\n\t\tString fullname = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString email = request.getParameter(\"email\");\n\t\tUsers getUserByEmail = productDao.findUsersByEmail(email);\n\t\t\n\t\tif(getUserByEmail != null) {\n\t\t\tString errorMessage = \"we already have this email in database\";\n\t\t\trequest.setAttribute(\"message\", errorMessage);\n\t\t\t\n\t\t\tString messagePage = \"message.jsp\";\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(messagePage);\n\t\t\trequestDispatcher.forward(request, response);\n\t\t}\n\t\t// create a new instance of users class;\n\t\telse {\n\t\t\tUsers user = new Users();\n\t\t\tuser.setPassword(password);\n\t\t\tuser.setFullName(fullname);\n\t\t\tuser.setEmail(email);\n\t\t\tproductDao.Create(user);\n\t\t\tlistAll(\"the user was created\");\n\t\t}\n\n\t\t\n\t}", "Optional<User> create(UserDto dto);", "Boolean registerNewUser(User user);", "private User createUser(String username, String name, String email, String password) {\n UserDTO userDTO = new UserDTO();\n userDTO.setEmail(email);\n userDTO.setName(name);\n userDTO.setPassword(password);\n userDTO.setUsername(username);\n\n userService.registerUser(userDTO);\n\n User user = userService.getUserByEmail(email);\n return user;\n }", "public void insertUser() {}", "public void onCreationEvent(UserCreateEvent event){\n user = new UserBean(event.getUser());\n }", "public User(int id, String firstName, String lastName, String userName, String email, String password, LocalDateTime creationDateTime, LocalDateTime updateDateTime) {\n this();\n this.id = id;\n this.firstName = firstName;\n this.lastName = lastName;\n this.userName = userName;\n this.email = email;\n this.password = password;\n this.creationDateTime = creationDateTime;\n this.updateDateTime = updateDateTime;\n }", "public TUser() {\n this(\"t_user\", null);\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "UserDto create(UserRegistrationDto user);", "public UserMember() {\r\n //this.email = \"[email protected]\";\r\n this.email = \"\";\r\n this.firstName = \"\";\r\n this.lastName = \"\";\r\n this.username = \"\";\r\n this.password = \"\";\r\n this.memberId = 0;\r\n }", "private void createUser(Request request, Response response) {\r\n\t\tUserBean userBean = new UserBean();\r\n\t\tRESTfulSession session = null;\r\n\r\n\t\ttry {\r\n\t\t\tBeanHelper.populateUserBeanFromRequest(request, userBean);\r\n\t\t\tString username = userBean.getUsername();\r\n\t\t\tString password = userBean.getPassword();\r\n\t\t\tString email = userBean.getEmail();\r\n\r\n\t\t\tif (StringHelper.isNullOrNullString(username)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(password)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(email)) {\r\n\t\t\t\tthrow new InvalidInputException();\r\n\t\t\t}\r\n\r\n\t\t\tsession = userService.createUser(userBean);\r\n\t\t} catch (InvalidInputException e) {\r\n\t\t\tresponse.setStatus(Status.CLIENT_ERROR_BAD_REQUEST, e.getMessage());\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(Status.SERVER_ERROR_INTERNAL, e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tlog.error(e);\r\n\t\t} finally {\r\n\t\t\t// generate response XML\r\n\t\t\txmlSerializationService.generateXMLResponse(request, response,\r\n\t\t\t\t\tsession);\r\n\t\t}\r\n\t}", "public User() {\r\n }", "public void createUser(String firstName, String emailAddress) {\n\n this.firstName = firstName;\n this.emailAddress = emailAddress;\n\n }", "@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}" ]
[ "0.7466559", "0.7419271", "0.72738206", "0.7251167", "0.72267395", "0.7222441", "0.72092503", "0.7183184", "0.7087451", "0.7077851", "0.707345", "0.70363075", "0.69601744", "0.6960136", "0.6937692", "0.693199", "0.6928776", "0.687274", "0.6849656", "0.68326855", "0.68324715", "0.68168235", "0.6804177", "0.6792635", "0.6778135", "0.67780626", "0.67526096", "0.6735815", "0.6731385", "0.6731308", "0.67264247", "0.67229164", "0.6722848", "0.67210793", "0.6718062", "0.6702134", "0.66749674", "0.66740716", "0.66683424", "0.6660657", "0.6658616", "0.6642495", "0.66389424", "0.66358715", "0.66183364", "0.66112036", "0.6598093", "0.6583692", "0.6580673", "0.65698314", "0.6552225", "0.65482646", "0.6540413", "0.6539994", "0.65174556", "0.65133077", "0.65133077", "0.65133077", "0.65122366", "0.6503335", "0.64961493", "0.6495638", "0.6484641", "0.6479186", "0.6478736", "0.64786905", "0.64603317", "0.64599526", "0.6450161", "0.64487624", "0.64465487", "0.64441955", "0.6429993", "0.64292437", "0.64198154", "0.6418966", "0.64090794", "0.6407555", "0.6403173", "0.6386673", "0.63836193", "0.63834447", "0.6363501", "0.63527966", "0.6351951", "0.6351072", "0.6349938", "0.634713", "0.6345398", "0.6341194", "0.63368386", "0.63300735", "0.63188106", "0.63165146", "0.62992424", "0.6298364", "0.6295562", "0.6295283", "0.6293891", "0.62888104" ]
0.64364696
72
login the user with specified email and password
public static Call<AccessToken> login(String email, String password){ LoginCredentials credentials = new LoginCredentials(email, password); return ApiConfig.getService().login(credentials); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "User login(String email, String password) throws AuthenticationException;", "void login(String email, String password) throws InvalidCredentialsException, IOException;", "void loginAttempt(String email, String password);", "public void login(String email,String password) {\r\n\t\tthis.setChanged();\r\n\t\tthis.notifyObservers(STATE_LOGGING_IN);\r\n\t\tUser.server_login(email, password, new Callable()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void callback(final Object d) {\r\n\t\t\t\tif(d == null) {\r\n\t\t\t\t\tsetChanged();\r\n\t\t\t\t\tnotifyObservers(STATE_LOGIN_FAIL);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tsetChanged();\r\n\t\t\t\t\r\n\t\t\t\t// do some debug action after logged in\r\n\t\t\t\tServer.server_do_debug();\r\n\t\t\t\t\r\n\t\t\t\tnotifyObservers(STATE_LOGIN_SUCCESS);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t}", "@Override\n\t public String loginUser(String email, String password) {\n\t\t\tlog.info(\"email and pass are \"+email+\" \"+password);\n\t\t\twebuserid=loginmanager.isExist(email, password);\n\t\t\tif(webuserid>0)\n\t\t\t{\n\t\t\t//Ckech is it blocked\n\t\t\tif(! loginmanager.isBlocked(webuserid))\n\t\t\t{\n\t\t\t\t //Get all personal Ids and login the person\n\t\t\t\t \n\t\t\t\t peronalid=loginmanager.getPersonelIds(webuserid);\n\t\t\t\t \n\t\t\t\t //Store in personal bean class\n\t\t\t\t PersonalIds.setEmpid(1);\n\t\t\t\t PersonalIds.setCmpid(1);\n\t\t\t\t PersonalIds.setGrpid(1);\n\t\t\t\t message=error.sucess;\n\t\t\t\t //Lodge the login details in a lodgeevent table\n\t\t\t\n\t\t\t} \n\t\t\telse\n\t\t\t{\n\t\t\tmessage=error.blocked;\n\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tmessage=error.noaccount;\n\t\t\t}\n\t\t\t\n\t\t\t\t \n\t\t\t\n\t\t\t\n\t\t\treturn message;\n\t }", "private void byPassLogin(String email) {\n User user = new User(123, email, Grade.A, 100, 9999991, 50f, 25f);\n Login(user);\n }", "public void login(String email, String password){\n User user = new User(email);\n if (user.exists()){\n //------------\n user.setPassword(getMd5(password)); // this should not be here in final product, only for demonstration\n //------------\n if(user.passwordMatch(getMd5(password))){\n //logs person in\n System.out.println(\"ok\");\n }\n }\n }", "void login(String user, String password);", "public User logInUser(final String login, final String password);", "public String login(String email, String password, HttpServletRequest req, HttpServletResponse resp) {\r\n log.info(\"login player api service:\" + mso.getId());\r\n log.info(\"login: email=\" + email + \";password=\" + password);\r\n if (!BasicValidator.validateRequired(new String[] {email, password}))\r\n return this.assembleMsgs(NnStatusCode.INPUT_MISSING, null);; \r\n\r\n String result[] = {\"\"};\r\n NnUser user = userMngr.findAuthenticatedUser(email, password, mso.getId(), req);\r\n if (user != null) {\r\n result[0] = this.prepareUserInfo(user, null, req, true);\r\n userMngr.save(user); //change last login time (ie updateTime)\r\n this.setUserCookie(resp, CookieHelper.USER, user.getToken());\r\n } else {\r\n return this.assembleMsgs(NnStatusCode.USER_LOGIN_FAILED, null);\r\n }\r\n return this.assembleMsgs(NnStatusCode.SUCCESS, result);\r\n }", "private void login(){\n\t\tprogress.toggleProgress(true, R.string.pagetext_signing_in);\n\t\tParseUser.logInInBackground(email.split(\"@\")[0], password, new LogInCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(ParseUser user, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tprogress.toggleProgress(false);\n\t\t\t\t\tIntent intent = new Intent(context, MainActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\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// else, incorrect password\n\t\t\t\t\tToast.makeText(context, \n\t\t\t\t\t\t\t\t getString(R.string.parse_login_fail, email), \n\t\t\t\t\t\t\t\t Toast.LENGTH_LONG).show();\t\t\t\t\t\n\t\t\t\t\tLog.e(\"Error Logging into Parse\", \"Details: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\n\t\t});\n\t}", "public HomePage loginValidCredentials (String email, String password){\n\n insertCredentials(email, password);\n submitInformation();\n\n return new HomePage(driver);\n }", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "public User login(String email, String password) {\n\t\treturn userRepository.findByEmailAndPassword(email, password);\r\n\t}", "User login(String username, String password);", "@Override\n\tpublic boolean login(String lEmail, String lPassword) {\n\t\treturn dao.login(lEmail, lPassword);\n\t}", "@When(\"^User enters \\\"([^\\\"]*)\\\" and \\\"([^\\\"]*)\\\"$\")\n\tpublic void userTryToLogin(String email, String password) throws Throwable {\n\t\tdriver.findElement(By.id(\"user_email\")).sendKeys(email);\n\t // L'utilisateur tape son mot de passe\n\t\tdriver.findElement(By.id(\"user_password\")).sendKeys(password);\n\t\t// Appuyer sur la touche \"se connecter\"\n\t\tdriver.findElement(By.className(\"submit-btn\")).sendKeys(Keys.ENTER);\n\t\tThread.sleep(2000);\n\t}", "public InboxPage login(String email, String password) {\n enterEmailOrPhone(email).clickOnNext().enterPassword(password);\n return clickPasswordNext();\n }", "public JSONObject loginUser(String email, String password) {\n\t\t// Building Parameters\n\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\n\t\tparams.add(new BasicNameValuePair(\"email\", email));\n\t\tparams.add(new BasicNameValuePair(\"password\", password));\n\t\t\n\t\t// getting JSON object\n\t\tJSONObject json = jsonParser.makeHttpRequest(URL_LOGIN_USER, \"POST\", params);\n\t\t\n\t\treturn json;\n\t}", "@Override\n\tpublic boolean login(String email, String password) {\n\t\tUser user = userDao.findUserByEmail(email);\n\t\tboolean isPasswordCorrect = user != null && password.equals(user.getPassword());\n\t\tif (isPasswordCorrect) {\n\t\t\tsaveUserToSession(user);\n\t\t}\n\t\treturn isPasswordCorrect;\n\t}", "public String login(String email, String password) throws Exception {\n User userByEmail = userRepository.findByEmail(email);\n\n if (userByEmail == null) {\n throw new Exception(USER_NOT_FOUND);\n } else {\n boolean match = Utils.checkPasswordMatch(userByEmail.getPassword(), Utils.hashPassword(password));\n System.out.println(match);\n if (!match) throw new Exception(INCORRECT_PASSWORD);\n else return LOGIN_SUCCESSFUL;\n }\n }", "public void loginInServer(String email, String password) {\n String url = Constants.LOGIN_USERPASS_API_ENTRY + QUERY_PARAM_LOGIN_EMAIL + email + QUERY_PARAM_LOGIN_PASS + password;\n StringRequest logInRequest = new StringRequest(url, new LoginResponseListener(this,email,password), new LoginErrorListener(this));\n queue.add(logInRequest);\n }", "public MutableLiveData<TokenResponse> login(String email, String password) {\n return repository.login(email, password);\n }", "public boolean login(String email, String passWord) {\n\t\treturn service.login(email, passWord);\n\t}", "private void login(String username,String password){\n\n }", "public User login(String email, String password) throws InvAuthException{\n\t\tString sql = \"select * from HealthUsers where email = ? \";\n\t\tUser u = null;\n\t\ttry {\n\t\t\tu = jdbcTemplate.queryForObject(sql, new UserRowMapper(),email);\n\t\t\tif(u.getPassword().equals(password))\n\t\t\t\treturn u;\n\t\t\tthrow new InvAuthException(\"invalid Password\");\n\t\t}\n\t\tcatch(EmptyResultDataAccessException e) {\n\t\t\tthrow new InvAuthException(\"invalid email\");\n\t\t}\n\t\t\n\t}", "User signIn(String login, String password);", "public abstract boolean login(String email, String passwaord) throws CouponSystemException;", "@Then(\"^I try to login in by email and password\\\\.$\")\n public void i_try_to_login_in_by_email_and_password() {\n pom.signInButton.click();\n\n // Enter the email address\n pom.emailBox.sendKeys(email);\n\n // Enter the password\n pom.passwordBox.sendKeys(password);\n\n // Click on Sign in button\n pom.submitSignInButton.click();\n\n }", "private void loginAccount() {\n\t\taccountManager.loginAccount(etEmail.getText().toString(), etPassword.getText().toString());\n\n\t}", "@Override\r\n\tpublic boolean login(String email, String pw) {\n\t\treturn jdbcTemplate.query(\r\n\t\t\"select * from s_member where email=? and pw=?\", extractor,email,pw)!=null;\r\n\t}", "public static User login(String email, String password) throws LegoHouseException {\n try {\n Connection con = Connector.connection();\n String SQL = \"SELECT id, role FROM users \"\n + \"WHERE email=? AND password=?\";\n PreparedStatement ps = con.prepareStatement(SQL);\n ps.setString(1, email);\n ps.setString(2, password);\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n String role = rs.getString(\"role\");\n int id = rs.getInt(\"id\");\n User user = new User(email, password, role);\n user.setId(id);\n return user;\n }\n else {\n throw new LegoHouseException(\"Could not validate user\", \"index\");\n }\n }\n catch (ClassNotFoundException | IllegalAccessException | InstantiationException | SQLException ex) {\n throw new LegoHouseException(ex.getMessage(), \"index\");\n }\n }", "public void login(String email,String pass,HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\t\n\t\tLogin l = new Login ();\n\t\tl.login(email, pass,request,response);\n\t}", "public void login(User user);", "protected void login() {\n\t\t\r\n\t}", "LoginContext login(String username, String password) throws LoginException;", "@Override\n\tpublic User logIn(String email,String password){\n\t\tUser user = userRepository.logIn(email, password);\n\t\tif(user==null)\n\t\t\tthrow new BookException(HttpStatus.UNAUTHORIZED,\"Invalid email and password\");\n\t\treturn user;\n\t}", "@Override\n public void loginUser(String email, String password) {\n view.displayProgressDialog(true, \"Authenticating user...\");\n\n /* request */\n LoginRequest loginRequest = new LoginRequest();\n loginRequest.setEmail(email);\n loginRequest.setPassword(password);\n\n /* call */\n Disposable disposable = authService.loginUser(loginRequest)\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(\n response -> {\n /* if success - save token*/\n view.onLoginSuccessfully();\n },\n throwable -> {\n /* an error was encountered */\n view.displayProgressDialog(false, \"\");\n view.onError(ErrorUtils.parseOnFailure(throwable));\n },\n () -> view.displayProgressDialog(false, \"\")\n );\n\n compositeDisposable.add(disposable);\n }", "private void checkLogin(final String email, final String password) {\n\n pDialog.setMessage(\"Logging in...\");\n showDialog();\n\n mSocket.emit(CLIENT_LOGIN, email, password);\n }", "public static void logIn(String email, String password) {\n click(SIGN_IN_SECTION_UPPER_MENU);\n type(EMAIL_OR_PHONE_INPUT_FIELD, email);\n click(LOGIN_CONTINUE_BUTTON);\n type(PASSWORD_INPUT_FIELD, password);\n click(LOGIN_SIGN_IN_BUTTON);\n }", "public static void login(Context context, String email, String password) {\n FirebaseAuth.getInstance().signInWithEmailAndPassword(email, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) { // Successfully logged in\n Log.d(\"RecipeFinderAuth\", \"Logged In\");\n\n // Display the home activity for the newly signed in user\n Intent intent = new Intent(context, HomeActivity.class);\n context.startActivity(intent);\n } else { // Failed to log in with given credentials\n Log.d(\"RecipeFinderAuth\", \"Login Failed\");\n Toast.makeText(context, \"Login Failed\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "private void checkLogin(String email, String password) {\n final Context ctx = getApplicationContext();\n\n processor.checkLoginCredentials(email, password, ctx, new FetchDataListener() {\n @Override\n public void onFetchComplete(JSONObject data) {\n Boolean resp = (Boolean) data.get(\"response\");\n if (resp) {\n // go to home page\n Intent goToHome = new Intent(ctx, MainActivity.class);\n goToHome.putExtra(\"user\", etEmail.getText().toString());\n goToHome.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(goToHome);\n\n // finish prevents people from going back to login without logging out\n finish();\n } else {\n displayLoginError(\"Couldn't log in\");\n etEmail.setText(\"\");\n etPassword.setText(\"\");\n }\n }\n\n @Override\n public void onFetchFailure(String msg) {\n Log.d(TAG, msg);\n displayLoginError(\"Error connecting to server\");\n }\n\n @Override\n public void onFetchStart() {\n // do nothing\n }\n });\n\n }", "public void login(String login, String password) {\n driver.findElement(By.xpath(\"//input[@id='email']\")).sendKeys(login);\n driver.findElement(By.xpath(\"//input[@id='passwd']\")).sendKeys(password);\n driver.findElement(By.xpath(\"//button[@name='submitLogin']\")).click();\n\n }", "@Override\n\tpublic boolean checkUserForLogin(String email,String password) {\n\t\treturn userRepoImpl.checkUserForLogin(email,password);\n\t}", "public Boolean login(String email, String password){\n SQLiteDatabase DB = this.getWritableDatabase();\r\n Cursor cursor = DB.rawQuery(\"Select * from user where email = ? and password = ?\", new String[] {email,password});\r\n\r\n if (cursor.getCount() > 0){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n }", "public Person login(String username, String password);", "@OnClick(R.id.btnLogin)\n public void doLogin(View view) {\n email.setError(null);\n password.setError(null);\n\n if(email.getText().length() == 0){\n email.setError(getString(R.string.you_must_provide_your_email));\n return;\n }\n\n if(password.getText().length() == 0){\n password.setError(getString(R.string.you_must_provide_your_password));\n return;\n }\n\n // check if user && password match\n User user = User.login(email.getText().toString(), password.getText().toString());\n if(user == null){\n Toast.makeText(this, R.string.user_and_password_do_not_match, Toast.LENGTH_LONG).show();\n return;\n }\n\n // create session and start main\n startMain(user);\n }", "public void login(String email, String password)\r\n\t\t\tthrows CaptchaRequiredException, InvalidCredentialsException,\r\n\t\t\tAccountDisabledException, AccountDeletedException,\r\n\t\t\tNotVerifiedException, ServiceUnavailableException,\r\n\t\t\tSessionExpiredException, TermsNotAgreedException,\r\n\t\t\tAuthenticationException;", "@Transactional\n\tpublic boolean logIn(String email, String password) {\n\t\tif (email == null || email.trim().isEmpty())\n\t\t\tthrow new InvalidInputException(\"Please provide your Email\");\n\t\tif (password == null || password.trim().isEmpty())\n\t\t\tthrow new InvalidInputException(\"Please provide your Password\");\n\n\t\tUser dbUser = userDao.findUser(email);\n\n\t\tif (dbUser == null)\n\t\t\treturn false;\n\n\t\tif (!dbUser.getPassword().equals(password))\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "@Override\n public boolean login(String email, String password) throws EmailNotFoundException, WrongPasswordException {\n Company comp = companyRepo.findByEmail(email);\n if (comp == null) {\n //throw Exception\n throw new EmailNotFoundException(\"failed to login! company email not found!\");\n } else {\n if (!comp.getPassword().equals(password)) {\n //throw Exception\n throw new WrongPasswordException(\"failed to login! password is incorrect!\");\n }\n this.companyID = comp.getId();\n return true;\n }\n }", "public User login(String email, String password) {\n for (User user : list) {\n if (user.getEmail().equals(email) && user.getPassword().equals(password))\n return user; // Login correct. Return this user.\n }\n return null; // Login incorrect. Return null.\n }", "protected Response login() {\n return login(\"\");\n }", "public User login(String loginName, String password) throws UserBlockedException;", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "@RequestMapping(value=UtilsService.LOGIN, method = RequestMethod.POST)\n\tpublic String login(HttpServletRequest request,@RequestParam(\"email\") String email, @RequestParam(\"password\") String password\n\t\t\t, Model model){\n\n\t\tArrayList<Object>error= homeService.loginUser(email, password);\n\t\tuser=null;\n\t\tInteger err=(Integer) error.remove(0);\n\t\tswitch (err) {\n\t\tcase HomeService.NO_ERROR:\n\t\t\tuser=(User)error.get(0);\n\t\t\tbreak;\n\t\tcase HomeService.ERROR_PASSWD:\n\t\t\treturn UtilsService.redirectToErrorPageGeneral(\"Password non corretta\", \"password\",model);\n\t\tcase HomeService.ERROR_USER:\n\t\t\treturn UtilsService.redirectToErrorPageGeneral(\"Username non corretto\", \"username\",model);\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tHttpSession session = request.getSession();\n\t\tsession.setAttribute(\"user\", user);\n//\t\thomeService.registerSession(session.getId(),user.getId());\n//\t\tmodel.addAttribute(\"user\", user);\n\t\t\n\t\t\n\t\tif(user.getType()==User.TYPE.PROFESSOR){\n\t\t\treturn \"redirect:\"+ProfessorService.PROFESSOR_HOME;\n\t\t}else if(user.getType()==User.TYPE.STUDENT){\n\t\t\treturn \"redirect:\"+StudentService.STUDENT_HOME;\n\t\t}else if(user.getType()==User.TYPE.MANAGER){\n\t\t\treturn \"redirect:\"+ManagerService.MANAGER_HOME;\n\t\t}else if(user.getType()==User.TYPE.SECRETARY){\n\t\t\treturn \"redirect:\"+SecretaryService.SECRETARY_HOME;\n\t\t}\n\t\treturn \"\";\n//\t\treturn new ModelAndView(\"home\", \"model\", \"model\");\n\t}", "@Override\n\tpublic boolean login(String email, String password) throws Exception {\n\n\t\tif (customersDBDAO.isCustomerExists(email, password)) {\n\t\t\tSystem.out.println(\"Customer Login Successful\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}", "@Override\n public boolean userLogin(String username, String password) \n {\n User tmpUser = null;\n tmpUser = getUser(username);\n if(tmpUser == null) return false;\n if(tmpUser.getPassword().equals(password)) return true;\n return false;\n }", "public void user_signin()\r\n\t{\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"email\")).clear();\r\n\t\tdriver.findElement(By.id(\"email\")).sendKeys(UID);\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"pass\")).clear();\r\n\t\tdriver.findElement(By.id(\"pass\")).sendKeys(PWD);\r\n\t}", "public Users login(String email, String pass) {\n\t\ttry {\n\n\t\t\t//SQL query\n\t\t\tStringBuffer query = new StringBuffer();\n\t\t\tquery.append(\"select * from users where user_email = ? and user_pass = ?\");\n\t\t\t//Prepared Statement\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(query.toString());\n\t\t\tpstmt.setString(1, email);\n\t\t\tpstmt.setString(2, pass);\n\t\t\t\n\t\t\tResultSet rs = pstmt.executeQuery();\n//\t\t\tuser.setUser_id(rs.getString(\"user_id\"));\n\t\t\tif(rs.next()) {\n\t\t\t\tuser.setUser_id(rs.getInt(\"user_id\"));\n\t\t\t\tuser.setUser_name(rs.getString(\"user_name\"));\n\t\t\t\tuser.setUser_email(rs.getString(\"user_email\"));\n\t\t\t\tuser.setUser_pass(rs.getString(\"user_pass\"));\n\t\t\t\tuser.setUser_about(rs.getString(\"user_about\"));\n\t\t\t\tuser.setUser_gender(rs.getString(\"user_gender\"));\n\t//\t\t\tuser.setCreated(rs.getString(\"created\"));\n\t\t\t}\n\t\t}catch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn user;\n\t}", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "String signIn(String userName, String password) throws UserNotFoundException;", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "private void login(final String login, final String password, final String domainId) {\n checkCredentials(login, password);\n\n if (!login.isEmpty() && !password.isEmpty()) {\n Notification.activityStart();\n AuthentificationManager.getInstance()\n .authenticateOnSilverpeas(loginField.getText(), passwordField.getText(),\n domains.getSelectedValue(), null);\n }\n }", "@Test\r\n\tpublic void login() {\n\t\tUser loginExit = userMapper.login(\"wangxin\", \"123456\");\r\n\t\tif (loginExit == null) {\r\n\t\t\tSystem.out.println(\"用户不存在\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(loginExit);\r\n\t\t\tSystem.out.println(\"登录成功!\");\r\n\t\t}\r\n\t}", "public User login(String email, String password) throws Exception {\n\t\tSession session = null;\n\t\tTransaction tx = null;\n\t\ttry{\n\t\t\tsession = getSessionFactory().openSession();\n\t\t\tif(session != null) {\n\t\t\t\ttx = session.beginTransaction();\n\t\t\t\tQuery query = session.createQuery(\"FROM User as u where u.email=:email and u.password=:password\");\n\t\t\t\tquery.setString(\"email\", email);\n\t\t\t\tquery.setString(\"password\", password);\n\t\t\t\tList users = query.list();\n\t\t\t\tif(users != null && !users.isEmpty()){\n\t\t\t\t\treturn (User) query.list().get(0);\n\t\t\t\t} else{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tthrow new Exception(e);\n\t\t} finally{\n\t\t\tif(tx != null){\n\t\t\t\ttx.commit();\n\t\t\t}\n\t\t\tif(session != null) {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t}\n\t}", "public String login(final String email, final String password) {\n LOG.info(\"User with email {} wants to login\", email);\n\n User user = crudServices.getUserFromEmail(email);\n\n if (user == null) {\n LOG.info(\"User with email {} does no exist\", email);\n throw new ServiceException(\"Invalid email or password\");\n }\n\n if (!appUtils.verifyPassword(password, user.getPassword())) {\n LOG.info(\"User with email {} provided wrong password\", email);\n throw new ServiceException(\"Invalid email or password\");\n }\n\n if (!user.isVerified()) {\n LOG.info(\"User with email {} is not verified\", email);\n throw new ServiceException(\"User is not verified with the given email: \" + email);\n }\n\n LOG.info(\"User with email {} provided correct password\", email);\n\n return appUtils.createJWT(String.valueOf(user.getId()));\n }", "@Query(\"FROM User WHERE email=?1 AND password=?2\")\n\tOptional<Student> login(String email, String password);", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n mAuthTask = new UserLoginTask(email, password);\r\n try {\r\n Boolean logStatus = mAuthTask.execute(\"http://shubhamgoswami.me/login\").get();\r\n if(logStatus){\r\n SQLiteDatabase db = openOrCreateDatabase(\"adharShila\",MODE_PRIVATE, null);\r\n db.execSQL(\"UPDATE LOGSTATUS SET USERNAME=\\\"\"+mEmailView.getText()+\"\\\", STATUS=1 WHERE ENTRY=1\");\r\n db.close();\r\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\r\n i.putExtra(\"username\", mEmailView.getText());\r\n i.putExtra(\"password\", password);\r\n startActivity(i);\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public abstract User login(User data);", "public void login(String uname, String pwd) {\n username.type(uname);\n password.type(pwd);\n loginButton.click();\n }", "@Action(value = \"userAction_login\", results = {\n\t\t\t@Result(name = \"login-error\", location = \"/login.jsp\"),\n\t\t\t@Result(name = \"login-ok\", type = \"redirect\", location = \"/index.jsp\"),\n\t\t\t@Result(name = \"login-params-error\", location = \"/login.jsp\") })\n\t@InputConfig(resultName = \"login-params-error\")\n\tpublic String login() {\n\t\tremoveSessionAttribute(\"key\");\n\t\ttry {\n\t\t\t// 1.获取subject对象\n\t\t\tSubject subject = SecurityUtils.getSubject();\n\t\t\t// 2.获取令牌对象(封装参数数据)\n\t\t\tUsernamePasswordToken token = new UsernamePasswordToken(\n\t\t\t\t\tmodel.getEmail(), model.getPassword());\n\t\t\tsubject.login(token);\n\t\t\treturn \"login-ok\";\n\t\t} catch (AuthenticationException e) {\n\t\t\te.printStackTrace();\n\t\t\tthis.addActionError(this.getText(\"login.emailorpassword.error\"));\n\t\t\treturn \"login-error\";\n\t\t}\n\t}", "public String adminlogin() {\n\t\tfactory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);\n\t\tEntityManager em = factory.createEntityManager();\n\t\t//Query to select user account where email and password entered by the user\n\t\tQuery q = em\n\t\t\t\t.createQuery(\"SELECT u FROM AdminAccount u WHERE u.email = :email AND u.password = :pass\");\n\t\tq.setParameter(\"email\", email);\n\t\tq.setParameter(\"pass\", password);\n\t\ttry {\n\t\t\tAdminAccount user = (AdminAccount) q.getSingleResult();\n\t\t\tif (email.equalsIgnoreCase(user.getEmail())\n\t\t\t\t\t&& password.equals(user.getPassword())) {\t//If passwords match,\n\t\t\t\n\t\t\t\t HttpSession session = Util.getSession();\t//create session\n\t\t session.setAttribute(\"email\", email);\n\t\t\n\t\t\t\treturn \"success\";\n\t\t\t}\n\t\t\taddMessage(new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Invalid credentials entered!\", null));\n\t\t\treturn \"failure\";\n\n\t\t} catch (Exception e) {\n\t\t\taddMessage(new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"System error occured. Contact system admin!\", null));\n\t\t\treturn \"systemError\";\n\t\t}\n\t}", "User loginUser(User userLoginRequest, HttpSession httpSession) throws Exception;", "@Override\n public void login(String nome, String email, int senha) {\n if (getNome() == nome && this.getEmail() == email && this.getSenha() == senha){\n System.out.println(\"Login efetuado com sucesso\");\n } else {\n System.out.println(\"0 - Sair\");\n System.out.println(\"Saiu do usuario\");\n }\n\n }", "public static boolean login(Context ctx) {\n\t\t\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\t\n\t\tSystem.out.println(username);\n\t\tSystem.out.println(password);\n\t\t\n\t\tif(username.equals(\"user\") && password.equals(\"pass\")) {\n\t\t\tctx.res.setStatus(204);\n\t\t\tctx.sessionAttribute(\"user\", new User(\"McBobby\",true));\n\t\t\treturn true;\n\t\t}else {\n\t\t\t\n\t\t\tctx.res.setStatus(400);\n\t\t\tctx.sessionAttribute(\"user\", new User(\"fake\",false));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n//\t\tctx.queryParam(password); /authenticate?password=value\n//\t\tctx.pathParam(password); /authenticate/{password}\n\t}", "public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }", "private void attemptLogin() {\n String email = text_email.getText().toString();\n String password = text_password.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n text_password.setError(getString(R.string.error_field_required));\n focusView = text_password;\n cancel = true;\n }\n if (!isPasswordValid(password)) {\n text_password.setError(getString(R.string.error_invalid_password));\n focusView = text_password;\n cancel = true;\n }\n\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n text_email.setError(getString(R.string.error_field_required));\n focusView = text_email;\n cancel = true;\n } else if (!isEmailValid(email)) {\n text_email.setError(getString(R.string.error_invalid_email));\n focusView = text_email;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n //showProgress(true);\n login(USER_NORMAL);\n }\n }", "public boolean loginUser();", "private void loginUser(String userMailId, String userPassword) {\n onPreExecute();\n firebaseAuth.signInWithEmailAndPassword(userMailId, userPassword).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @RequiresApi(api = Build.VERSION_CODES.KITKAT)\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n editor.putBoolean(\"LOGIN_STATUS\",true);\n editor.commit();\n onPostExecute();\n Toast.makeText(LoginActivity.this, \"Logged In Successfully. \", Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(LoginActivity.this, SlideNavigatorActivity.class);\n overridePendingTransition(R.anim.right_to_left,R.anim.left_to_right);\n startActivity(intent);\n finish();\n } else {\n editor.putBoolean(\"LOGIN_STATUS\",false);\n editor.commit();\n onPostExecute();\n Toast.makeText(LoginActivity.this, Objects.requireNonNull(task.getException()).getLocalizedMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "private void loginUser(final String email, final String password){\n String cancel_req_tag = \"login\";\n progressDialog.setMessage(\"Logging you in...\");\n showDialog();\n \n Map<String, String> params = new HashMap<>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n \n JSONObject req = new JSONObject(params);\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, URL_FOR_LOGIN, req,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response){\n try{\n boolean error = response.getBoolean(\"error\");\n if(!error){\n Intent intent = new Intent(LoginActivity.this, UserActivity.class);\n String token = response.getString(\"token\");\n saveToken(getApplicationContext(), token);\n hideDialog();\n \n startActivity(intent);\n finish();\n } else {\n String error_msg = response.getString(\"error_msg\");\n Toast.makeText(getApplicationContext(), error_msg,Toast.LENGTH_LONG).show();\n hideDialog();\n }\n \n } catch (JSONException e){\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener(){\n @Override\n public void onErrorResponse(VolleyError error){\n Toast.makeText(getApplicationContext(), \"An error occurred while logging in, please try again.\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n hideDialog();\n }\n });\n \n AppSingleton.getInstance(getApplicationContext()).addToRequestQueue(jsonObjectRequest, cancel_req_tag);\n }", "public String login(){\n UsernamePasswordToken token = new UsernamePasswordToken(user.getAccount(),\n user.getPassword());\n\n// \"Remember Me\" built-in:\n token.setRememberMe(user.isRememberMe());\n\n Subject currentUser = SecurityUtils.getSubject();\n\n\n try {\n currentUser.login(token);\n } catch (AuthenticationException e) {\n // Could catch a subclass of AuthenticationException if you like\n FacesContext.getCurrentInstance().addMessage(\n null,\n new FacesMessage(\"Login Failed: \" + e.getMessage(), e\n .toString()));\n return \"/login\";\n }\n return \"index\";\n }", "public void logIn(String email_address, String email_password)\r\n\t{ \r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"select count(*) as result from users where email_address = ? and email_password = ?\";\r\n\t\t\tpreparedStatement = connect.prepareStatement(query);\r\n\t\t\tpreparedStatement.setString(1, email_address);\r\n\t\t\tpreparedStatement.setString(2, email_password);\r\n\t\t\tresultSet = preparedStatement.executeQuery();\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * the returned value of the query should be a boolean value since we are looking if the email address and password combination is correct\r\n\t\t\t * if the credentials are correct their inbox should show up\r\n\t\t\t * if not a warning message will appear informing the user that the email and/or password is incorrect\r\n\t\t\t */\r\n\t\t\tif(resultSet.next())\r\n\t\t\t{\r\n\t\t\t\tif(resultSet.getBoolean(\"result\") == true)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.email_address = email_address;\r\n\t\t\t\t\tLogIn.frame.dispose();\r\n\t\t\t\t\tLogIn.email = new msgBoxx();\r\n\t\t\t\t\tLogIn.email.testerMsg(email_address);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Incorrect email or password\", \"Error\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t\t// testing done\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean employeeLogin(Context ctx) {\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.employeeLogIn(username, password);\n\t\treturn result;\n\t}", "private void attemptLogin(){\n //reset error\n et_email.setError(null);\n et_password.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = et_email.getText().toString();\n final String password = et_password.getText().toString();\n final boolean finish = false;\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n et_password.setError(getString(R.string.error_invalid_password));\n focusView = et_password;\n cancel = true;\n }else if (!isEmailValid(email)) {\n et_email.setError(getString(R.string.error_invalid_email));\n focusView = et_email;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n JSONObject json = new JSONObject();\n\n try {\n json.put(\"ctrl\", \"login\");\n json.put(\"email\", email);\n json.put(\"password\", password);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n String requete = json.toString();\n Log.v(\"req\", requete);\n HttpQuery login = new HttpQuery(requete, this);\n login.execute();\n }\n\n\n }", "public void attemptLogin() {\n\t\t// Reset errors.\n\t\temailTextView.setError(null);\n\t\tpasswordTextView.setError(null);\n\n\t\t// Store values at the time of the login attempt.\n\t\temail = emailTextView.getText().toString();\n\t\tpassword = passwordTextView.getText().toString();\n\n\t\tboolean cancel = false;\n\n\t\t// Check for a valid email address.\n\t\tcancel = Validate.PresenceOf(emailTextView);\n\t\tif (!cancel) cancel = Validate.PatternOf(emailTextView, Patterns.EMAIL_ADDRESS);\n\t\t\n\t\t// check valid password\n\t\tif (!cancel) cancel = Validate.PresenceOf(passwordTextView);\t\t\n\n\t\tif (!cancel) {\t\n\t\t\tKeyboard.hide(getActivity());\n\t\t\tlogin();\n\t\t}\n\t}", "public void loginUser() {\n \tString username = usernameField.getText().toString();\n \tString password = passwordField.getText().toString();\n \n \t// Validation part.\n \tString empty = \"\";\n \t// Check if username is empty.\n \tif(username.isEmpty()) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Please enter a username.\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n \t// Check if username contains othe characters.\n \tif(! Pattern.matches(\"[a-zA-Z]+\", username)) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Username can only contain alphabets\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n \t\n \t// Check if password is empty.\n \tif(password.isEmpty()) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Please enter a password.\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n\n \t\n \tArrayList<NameValuePair> userData = new ArrayList<NameValuePair>();\n \tuserData.add(new BasicNameValuePair(\"username\", username));\n \tuserData.add(new BasicNameValuePair(\"password\", password));\n \t\n \t// Now send the data to the login user task to\n \t// check if they are correct.\n \tnew AuthenticateUserTask(this, userData).execute();\n \t\n }", "private void attemptLogin() {\n if (authTask != null) {\n return;\n }\n\n // Reset errors.\n usernameView.setError(null);\n passwordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = usernameView.getText().toString();\n String password = passwordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n passwordView.setError(getString(R.string.error_invalid_password));\n focusView = passwordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n usernameView.setError(getString(R.string.error_field_required));\n focusView = usernameView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n usernameView.setError(getString(R.string.error_invalid_email));\n focusView = usernameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n //set loginID for session\n session.setID(email);\n\n startDashboard();\n /*authTask = new UserLoginTask(email, password);\n authTask.execute((Void) null);*/\n }\n }", "public void Login()throws Exception{\r\n if(eMailField.getText().equals(\"user\") && PasswordField.getText().equals(\"pass\")){\r\n displayMainMenu();\r\n }\r\n else{\r\n System.out.println(\"Username or Password Does not match\");\r\n }\r\n }", "public abstract void login(String userName, String password) throws RemoteException;", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public static JSONObject login(Context context, String email, String password) {\n\t\ttry {\n\t\t\temail = URLEncoder.encode(email, \"UTF-8\");\n\t\t\tpassword = URLEncoder.encode(password, \"UTF-8\");\n\t\t\tString response = makeAPICall(context, \"login.php?email=\" + email + \"&password=\" + password);\n\t\t\treturn new JSONObject(response);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public static Usuario connect(String email, String password) {\n\n \treturn find(\"byEmailAndPassword\", email, password).first();\n\t\n\t}", "public void login(View v){\n String email = emailET.getText().toString();\n String password = passwordET.getText().toString();\n mAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, task -> {\n if (task.isSuccessful()) {\n startActivity(new Intent(LoginActivity.this, MainActivity.class));\n } else {\n // If sign in fails, display a message to the user.\n Toast.makeText(LoginActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n\tpublic Enterprise login(String userName, String password) {\n\t\t\n\t\treturn enterpriseDao.findEnterpriseByUserNameAndPassword(userName, password);\n\t}", "public void loginUser(final AuthActivity fromAuthActivity, String email, String password) {\n mAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(fromAuthActivity, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n\n // get FB user\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n\n // sign in user\n loggedInUser = new User(firebaseUser);\n\n // \"callback\" to handle the login as planned\n fromAuthActivity.onLoginSuccess();\n\n } else {\n // If sign in fails, display a message to the user.\n Log.w(TAG, \"signInWithEmail:failure\", task.getException());\n fromAuthActivity.onLoginError(task.getException());\n }\n }\n\n });\n }" ]
[ "0.82756764", "0.82213837", "0.8119796", "0.79404455", "0.7797873", "0.7781021", "0.772225", "0.76720196", "0.7608872", "0.7582401", "0.75519705", "0.7545695", "0.7505839", "0.74698657", "0.7432349", "0.74306333", "0.7417966", "0.7401839", "0.73716605", "0.73656154", "0.7347895", "0.729917", "0.7277659", "0.7249047", "0.7243981", "0.7240348", "0.72242445", "0.7222447", "0.72032", "0.7180431", "0.7176215", "0.7167591", "0.71667355", "0.71430683", "0.7141003", "0.7135295", "0.7128862", "0.7126646", "0.7111846", "0.7072383", "0.7065428", "0.705311", "0.7036025", "0.7014664", "0.70133793", "0.69986975", "0.69938827", "0.6992485", "0.69880724", "0.69839364", "0.69798917", "0.6974526", "0.69741905", "0.6974086", "0.6945901", "0.6945891", "0.69297236", "0.69249153", "0.6908139", "0.6905471", "0.69041324", "0.6901257", "0.69011074", "0.68972415", "0.6877176", "0.68619555", "0.68596953", "0.6852767", "0.68514377", "0.6849573", "0.6848391", "0.6845158", "0.68392235", "0.68377703", "0.6837625", "0.6828574", "0.6826949", "0.6825527", "0.68249077", "0.68213075", "0.68184453", "0.6806034", "0.68053275", "0.6801247", "0.679442", "0.6788847", "0.6778646", "0.67772144", "0.67754835", "0.676635", "0.67618155", "0.675888", "0.67511034", "0.67425734", "0.67376024", "0.6736045", "0.67201114", "0.67195773", "0.67186904", "0.67170084" ]
0.68487525
70
create an account for the specified user
public static Call<User> register(User user){ return ApiConfig.getService().createUser(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createUserAccount(UserAccount account);", "UserAccount createUserAccount(User user, double amount);", "public int createAccount(User user) throws ExistingUserException,\n UnsetPasswordException;", "private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }", "public void createUser(User user) {\n\n\t}", "Account create();", "public void createUser(User user);", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}", "private void createAccount(User user) throws IOException {\n File accounts = new File(\"accounts.txt\");\n if (!accounts.exists()) {\n accounts.createNewFile();\n }\n\n FileOutputStream fileOutputStream = new FileOutputStream(accounts, true);\n BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(fileOutputStream));\n\n bufferedWriter.write(user.getUserName() + \":\" + user.getUserPass());\n bufferedWriter.newLine();\n bufferedWriter.flush();\n }", "HttpStatus createUserAccount(final String realm, final String username, final String firstName,\n\t\t\tfinal String lastName, final String email, final String password);", "private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public void create(UserValidator account) {\n Account validated = new Account();\n validated.setUsername(account.getUsername());\n validated.setPassword(passwordEncoder.encode(account.getPassword()));\n validated.setFirstName(account.getFirstName());\n validated.setLastName(account.getLastName());\n validated.getAuthorities().add(\"USER\");\n\n this.accountRepository.save(validated);\n }", "int createAccount(Account account);", "UserCreateResponse createUser(UserCreateRequest request);", "public void addAccount(String user, String password);", "private void createAccount(String username, String passphrase, String email) {\n\tif (!AccountManager.getUniqueInstance().candidateUsernameExists(username)) {\n\t try {\n\t\tAccountManager.getUniqueInstance().createCandidateAccount(username, \n\t\t\t\t\t\t\t\t\t passphrase, \n\t\t\t\t\t\t\t\t\t email);\n\t } catch (Exception e) {\n\t\tthrow new RuntimeException(\"creation failed\");\n\t }\n\t} else {\n\t throw new RuntimeException(\"username already exists\");\n\t}\n }", "protected void createAccount(JSONArray args, final CallbackContext callbackContext) {\n\t\tLog.d(TAG, \"CREATEACCOUNT\");\n\t\ttry {\n\t\t\tString email = args.getString(0);\n\t\t\tString password = args.getString(1);\n\t\t\tString userName = null;\n\t\t\tif (args.length() == 3) {\n\t\t\t\tuserName = args.optString(2);\n\t\t\t}\n\t\t\tNotificare.shared().createAccount(email, password, userName, new NotificareCallback<Boolean>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(Boolean result) {\n\t\t\t\t\tif (callbackContext == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tcallbackContext.success();\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onError(NotificareError error) {\n\t\t\t\t\tif (callbackContext == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tcallbackContext.error(error.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (JSONException e) {\n\t\t\tcallbackContext.error(\"JSON parse error\");\n\t\t}\n\t}", "boolean create(User user) throws Exception;", "private void createNewAccount() {\n\n // if user has not provided valid data, do not create an account and return from method\n if (!validateData()) {\n return;\n }\n\n // If flag value is false, that means email provided by user doesn't exists in database\n // so initialize the loader to create a new account\n if (!mEmailExistsFlag) {\n getLoaderManager().initLoader(CREATE_NEW_ACCOUNT_LOADER_ID, null, this);\n } else {\n // If flag is true, that means email provided by user already exists in database\n // so restart the loader and allow user to enter new email address for account\n getLoaderManager().restartLoader(CREATE_NEW_ACCOUNT_LOADER_ID, null, this);\n }\n\n }", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "Document createAccount(String username, String accountDisplayName,\n String accountFullName, double balance, double interestRate);", "int createUser(User data) throws Exception;", "public void creatUser(String name, String phone, String email, String password);", "@Override\n\tpublic String createUserAccountQuery(String username, String password, String firstName, String lastName,\n\t\t\tString dob, String accountType, String accountID, String creationDate, String requestDate,\n\t\t\tString phoneNumber, String email, boolean isApproved) {\n\t\treturn null;\n\t}", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "private void CreateUserAccount(final String lname, String lemail, String lpassword, final String lphone, final String laddress, final String groupid, final String grouppass ){\n mAuth.createUserWithEmailAndPassword(lemail,lpassword).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //account creation successful\n showMessage(\"Account Created\");\n //after user account created we need to update profile other information\n updateUserInfo(lname, pickedImgUri,lphone, laddress, groupid, grouppass, mAuth.getCurrentUser());\n }\n else{\n //account creation failed\n showMessage(\"Account creation failed\" + task.getException().getMessage());\n regBtn.setVisibility(View.VISIBLE);\n loadingProgress.setVisibility(View.INVISIBLE);\n\n }\n }\n });\n }", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "Account create(Context context);", "public UserAuthToken createUser(CreateUserRequest request);", "@PostMapping(\"/account/create\")\n @PreAuthorize(\"hasRole('USER') or hasRole('ADMIN')\")\n\tpublic ResponseEntity createAccount(\n\t \t @AuthenticationPrincipal UserDetailsImpl userDetail\n\t ){\n\t\t\tAccount account = new Account(userDetail.getId());\n\t\t\t// save the account to the database\n\t\t\tAccount createdAccount = accountRepository.save(account);\n\t \t // response\n\t return ResponseEntity.ok(\n\t \t\tcreatedAccount\n\t );\n\t }", "@RequestMapping(\n value = \"/accounts\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE,\n consumes = MediaType.APPLICATION_JSON_VALUE\n )\n public ResponseEntity<?> createAccount(@RequestBody User user) {\n ResponseEntity<?> response = null;\n\n try {\n User userE = accountManagementService.createUser(user);\n response = new ResponseEntity<>(userE, HttpStatus.OK);\n } catch (UserAccountAlreadyExistException ue) {\n response = new ResponseEntity<>(new Message(Message.Status.ERROR, ue.getMessage()), HttpStatus.BAD_REQUEST);\n }\n\n return response;\n }", "@Transactional\n\t@Override\n\tpublic void createUser(User user) {\n\t\tString token = UUID.randomUUID().toString();\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.DAY_OF_YEAR, 1);\n\n\t\tuser.setExpiryDate(cal.getTime());\n\t\tuser.setToken(token);\n\t\tAccount account = user.getAccount();\n\t\tRole role = new Role(\"ROLE_CUSTOMER\");\n\t\taccount.setRole(role);\n\t\taccount.setEnabled(false);\n\t\taccountService.createAccount(account);\n\t\tuserRepository.insertUser(user);\n\t\tthis.sendRegistrationToken(user);\n\t}", "public void createAccount(){\n System.out.println(\"vi skal starte \");\n }", "Boolean registerNewUser(User user);", "User createUser(User user);", "public void createAccount(String username, String password) {\n\t\tString send;\n\t\tsend = \"<NewAccount=\" + username + \",\" + password + \">\";\n\n\t\ttry {\n\t\t\tdos.writeUTF(send);\n\t\t} catch (Exception e) {\n\t\t\t//TODO\n\t\t}\n\t}", "AionAddress createAccount(String password);", "@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}", "String addAccount(UserInfo userInfo);", "GenerateUserAccount () {\r\n }", "@Override\n\tpublic void createAccount(String username, Bank bank) {\n\t\ttry {\n\t\tAccount newAccount = new Account(username, bank.getBankID(), bank.getNumOfAccounts()+1);\n\t\tbank.setNumOfAccounts(bank.getNumOfAccounts()+1);\n\t\taddAccount(bank, newAccount);\n\t\t}catch(NullPointerException e) {\n\t\t\tSystem.out.println(\"Could not find bank\");\n\t\t}\n\t\t\n\t}", "public abstract void createAccount(JSONObject account);", "private void createAccount(String email, String password) {\n if (!validateForm()) {\n return;\n }\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n Toast.makeText(MainActivity.this, \"Unable to creat Account\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public void createAccount() {\n System.out.println(\"Would you like to create a savings or checking account?\");\n String AccountRequest = input.next().toLowerCase().trim();\n createAccount(AccountRequest);\n\n }", "private void createUser(final String email, final String password) {\n\n }", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "public static void createUser(User user) {\n URL url = null;\n HttpURLConnection connection = null;\n final String methodPath = \"/entities.credential/\";\n try {\n Gson gson = new Gson();\n String stringUserJson = gson.toJson(user);\n url = new URL(BASE_URI + methodPath);\n // open connection\n connection = (HttpURLConnection) url.openConnection();\n // set time out\n connection.setReadTimeout(10000);\n connection.setConnectTimeout(15000);\n // set connection method to POST\n connection.setRequestMethod(\"POST\");\n // set the output to true\n connection.setDoOutput(true);\n // set length of the data you want to send\n connection.setFixedLengthStreamingMode(stringUserJson.getBytes().length);\n // add HTTP headers\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\n\n // send the POST out\n PrintWriter out = new PrintWriter(connection.getOutputStream());\n out.print(stringUserJson);\n out.close();\n Log.i(\"error\", new Integer(connection.getResponseCode()).toString());\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n connection.disconnect();\n }\n }", "public boolean createUser(UserAccountDTO userAccountDTO) {\n boolean userCreated = true;\n userAccountDTO.setPassword((new BCryptPasswordEncoder()).encode(userAccountDTO.getPassword()));\n try {\n userData.insertUserDataAccount(userAccountDTO);\n } catch (Exception e){\n userCreated = false;\n }\n return userCreated;\n }", "@Test\n\tpublic void createAccount() {\t\n\t\t\n\t\tRediffOR.setCreateAccoutLinkClick();\n\t\tRediffOR.getFullNameTextField().sendKeys(\"Kim Smith\");\n\t\tRediffOR.getEmailIDTextField().sendKeys(\"Kim Smith\");\n\t\t\t\t\t\n\t\t\n\t}", "@Override\n public boolean createAccount(String fullName, String username, String password, String email){\n // will change this if we make some errors.\n if(!usernameToPerson.containsKey(username)) { // check that there is not someone with that username\n Organizer og = new Organizer(fullName, username, password, email);\n updateUsernameToPerson(og.getUsername(), og); // see below\n idToPerson.put(og.getID(), og);\n return true;\n }\n\n return false;\n\n }", "public abstract void createAccount(final GDataAccount account)\n throws ServiceException;", "@PostMapping(path = \"/online-sales-service/registerUser\")\n\tpublic ResponseEntity<?> createUser(@RequestBody final ActiveDirectory user, final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tActiveDirectory thisUser = null;\n\t\ttry {\n\t\t\tthisUser = activeDirectoryService.createNewUser(user);\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponseEntity = new ResponseEntity<ActiveDirectory>(thisUser, HttpStatus.OK);\n\t\treturn responseEntity;\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "private void createEmailAndPasswordAccount(String email, String password){\n\n if(!checkForInvalidInput()) return;\n\n // Copied from Firebase documentation\n Log.d(\"CreateAccount\", \"In create method\");\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n FirebaseUser user = mAuth.getCurrentUser();\n\n if(user == null){\n Log.d(TAG, \"User is null?\");\n }\n\n else if(isStudent){\n createLocalStudentUserData(user);\n onCreateSuccessStudent();\n }\n\n else if(isTeacher){\n createLocalTeacherUserData(user);\n onCreateSuccessTeacher();\n }\n\n else{\n Log.d(TAG, \"A problem has occurred in choosing between creating a teacher or student\");\n }\n\n\n } else {\n Log.d(TAG, \"Creating the user account was not successful\");\n Toast.makeText(getApplicationContext(),\n \"Account creation unsuccessful. Perhaps one already exists with this email\",\n Toast.LENGTH_LONG).show();\n }\n\n }\n });\n\n }", "public static void createAccount(String name, String address, String contactNum, String userId, String password, float initDeposit) {\n\t\tcustomerList.add(new Customer(name, address, contactNum, new SavingsAccount(userId, password, initDeposit)));\n\t}", "User createUser();", "public void addUser(String username, String password, String name, String phone, String email, String address, Date dob) throws AccountException {\n accounts.add(new Account(username, getMd5(password), name, phone, email, address, dob));\n }", "public int createUser(Users user) {\n\t\t int result = getTemplate().update(INSERT_users_RECORD,user.getUsername(),user.getPassword(),user.getFirstname(),user.getLastname(),user.getMobilenumber());\n\t\t\treturn result;\n\t\t\n\t\n\t}", "@Test\n public void testCreateAccountWithPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"[email protected]\");\n createUserRequest.setPassword(\"beta\");\n createUserRequest.setFirstname(\"Alpha\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final CreateUserResponse result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n assertThat(result.getUser(), is(not(nullValue())));\n assertThat(result.getUser().getUserId(), is(not(nullValue())));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n }", "public void createAccount(View view) {\n Intent intent = new Intent(this, UserAccountCreateActivity.class);\n startActivity(intent);\n }", "User create(final User user) throws DatabaseException;", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "@Override\n\tpublic void createUser(User user) {\n\t\tSystem.out.println(\"INSIDE create user function\");\n\t\tem.persist(user);\n\t\t\t\n\t}", "@Override\r\n\tpublic boolean createAccount(Account account) {\n\t\treturn dao.createAccount(account);\r\n\t}", "private void createAccountActivity() {\n // everything is converted to string\n String userName = createUserName.getText().toString().trim();\n String phoneNumber = createPhoneNumber.getText().toString().trim();\n String email = createEmail.getText().toString().trim();\n String password = createPassword.getText().toString().trim();\n\n\n // Validate that the entry should not be empty\n if (userName.isEmpty()) {\n createUserName.setError(\"It should not be empty. \");\n createUserName.requestFocus();\n return;\n }\n if (phoneNumber.isEmpty()) {\n createPhoneNumber.setError(\"It should not be empty. \");\n createPhoneNumber.requestFocus();\n return;\n }\n if (email.isEmpty()) {\n createEmail.setError(\"It should not be empty. \");\n createEmail.requestFocus();\n return;\n } else if (!Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n createEmail.setError(\"Invalid email\");\n createEmail.requestFocus();\n return;\n }\n\n if (password.isEmpty()) {\n createPassword.setError(\"It should not be empty. \");\n createPassword.requestFocus();\n return;\n }\n\n // connect to the firebase\n auth.createUserWithEmailAndPassword(email, password).addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n String userID = FirebaseAuth.getInstance().getCurrentUser().getUid();\n User user = new User(userName, phoneNumber, email, password, userID);\n // We will send everything in user to the firebase database\n FirebaseDatabase.getInstance()\n .getReference(\"User\")\n .child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .setValue(user).addOnCompleteListener(task1 -> {\n if (task1.isSuccessful()) {\n Toast.makeText(RegisterUser.this, \"The account has been created successfully. \", Toast.LENGTH_LONG).show();\n finish(); //basically same as clicking back button\n } else {\n Toast.makeText(RegisterUser.this, \"The account creation failed!\", Toast.LENGTH_LONG).show();\n }\n });\n } else {\n Toast.makeText(RegisterUser.this, \"The account creation failed!\", Toast.LENGTH_LONG).show();\n }\n });\n }", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "public void createAccountOnClick(View v){\n\n String email = emailTextView.getText().toString();\n String password = passwordTextView.getText().toString();\n createEmailAndPasswordAccount(email, password);\n\n }", "public void newUser(User user);", "@Override\npublic String createUser(String userAccount, String userPassword,\n\t\tString userSex, String userEmail, String userName) {\n\t\n\tUser user = new User(userAccount, userPassword, userSex , userEmail, userName);\n\tem.persist(user) ;\n\t return \n\t\t\t \"Account: \" + user.getUserAccount() + \"\\n\" +\n\t\t\t\"Password: \" + user.getUserPassword() + \"\\n\" + \n\t\t\t\"Sex: \" + user.getUserSex() + \"\\n\" +\n\t\t\t\"Email: \" + user.getUserEmail() + \"\\n\" +\n\t\t\t\"Name: \" + user.getUserName();\n\n\t\n}", "@Override\n public void createUser(User user) {\n run(()->{this.userDAO.save(user);});\n\n }", "@POST\n @AuthProviderRESTExposure\n public String createUser(@QueryParam(\"token\") String authToken, APIUser user) \n throws GuacamoleException {\n UserContext userContext = authenticationService.getUserContextFromAuthToken(authToken);\n \n // Get the directory\n Directory<String, User> userDirectory = userContext.getUserDirectory();\n\n // Create the user\n userDirectory.add(new APIUserWrapper(user));\n\n return user.getUsername();\n }", "@POST\n\t@Path(\"/newUser\")\n\t@Consumes({ MediaType.APPLICATION_JSON })\n\t@Produces({ MediaType.APPLICATION_JSON })\n\t@Transactional\n\tpublic Response createUser(User user) {\n\t\tuserDao.createUser(user);\n\n\t\treturn Response.status(201)\n\t\t\t\t.entity(\"A new user has been created\").build();\n\t}", "boolean createUser(String username, String password);", "@Override\n\tpublic void createUserProfile(User user) throws Exception {\n\n\t}", "public void create(String userName, String password, String userFullname,\r\n\t\t\tString userSex, int userTel, String role);", "public Account createAccount() {\n\t\t\n\t\tAccountBuilder builder = new AccountBuilder();\n\t\tUserRole role = new UserRole();\n\t\trole.setUsername(getUsername());\n\t\trole.setRole(\"ROLE_USER\");\n\t\t\n\t\t//builds the account entity using the front end POJO\n\t\tbuilder\n\t\t\t.withUsername(getUsername())\n\t\t\t.withPassword(getPassword())\n\t\t\t.withLastName(getLastName())\n\t\t\t.withFirstName(getFirstName())\n\t\t\t.withRole(role)\n\t\t\t.withStatus(AccountStatus.ACTIVE)\n\t\t\t.withEmail(getEmail())\n\t\t\t.withStoreCd(getStoreCd());\n\t\t\n return builder.build();\n\t}", "public void makeNewUser(String name, int age, String address, String password)\n throws SQLException, ConnectionFailedException, DatabaseInsertException {\n if (this.currentUserAuthenticated) {\n // find the role ID that corresponds to customer\n EnumMapRolesAndAccounts map = new EnumMapRolesAndAccounts();\n map.createEnumMap();\n int roleId = map.roleIds.get(Roles.CUSTOMER);\n int userId = DatabaseInsertHelper.insertNewUser(name, age, address, roleId, password);\n System.out.println(\"User ID - \" + userId);\n System.out.println(\"succesfully made user\");\n } else {\n System.out.println(\"failed making user\");\n throw new ConnectionFailedException();\n }\n }", "public Account createAccount(Account account){\n\t\t\n\t\taccount.createdDate = new Date();\n\t\taccount.isActive = true;\n\t\t\n\t\t\n\t\taccount.person = personService.createPerson(account.person);\n\t\taccount.person.personSettings = personalSettingsService.createSettings(account.person.personSettings);\n\t\t\n\t\t\n\t\treturn account;\n\t}", "public void createUser(User user) throws JsonProcessingException {\n\n userRepo.save(user);\n redis.opsForValue().set(REDIS_USER_KEY_PREFIX+user.getUserId(),user);\n\n\n JSONObject jObj = new JSONObject();\n jObj.put(\"userId\",user.getUserId());\n jObj.put(\"balance\",defaultBalance);\n\n // Produce an event for User Creation ( Would be Consumed by Wallet Creation Service)\n kafka.send(TOPIC_USER_CREATED,user.getUserId(), objectMappper.writeValueAsString(jObj));\n\n\n }", "public RecordObject createUser(String token, Object record) throws RestResponseException;", "@Test\n\tvoid testCreateAccount() {\n\t\t\n\t\t// Data Object for unregister user\n\t\tUser user = new User(\"Create AccountExample\", \"CreateAccount\", \"[email protected]\");\n\t\t\n\t\t// Prepare data\n\t\tUserDAO dao = new UserDAO();\n\t\tboolean exist = false;\n\t\t\n\t\ttry {\n\t\t\t// Creating User in DB\n\t\t\tdao.createAccount(user, \"CreateAccountPassword\");\n\t\t\t\n\t\t\t// Boolean confirming if exist\n\t\t\texist = !dao.availabilityUsername(user.getUsername());\n\t\t\t\n\t\t\t// Deleting account\n\t\t\tdao.deleteAccount(user.getUsername());\n\t\t\t\n\t\t} catch (ClassNotFoundException | UnsupportedEncodingException | SQLException | GeneralSecurityException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// Asserting that the create account works\n\t\tassertTrue(exist);\n\t}", "int newUser(String username, String password, Time creationTime);", "public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}", "public EOSUser createUser(EOSUser user, Map<String, String> userData) throws EOSDuplicatedEntryException,\n\t\t\tEOSForbiddenException, EOSUnauthorizedException, EOSValidationException;", "void createUserAccounts(Set<Role> roles, User u);", "public void createAccount() {\n\t\t// Assigns variables based on user input\n\t\tString username = usernameField.getText();\n\t\tString firstName = firstNameField.getText();\n\t\tString lastName = lastNameField.getText();\n\t\tString address = addressField.getText();\n\t\tString postCode = postcodeField.getText();\n\t\tString phoneNumber = phoneNumberField.getText();\n\t\tlong phoneNumberLong;\n\t\tif (username.isEmpty() || firstName.isEmpty() || lastName.isEmpty() || address.isEmpty() || postCode.isEmpty()\n\t\t\t\t|| phoneNumber.isEmpty()) { // Checks if number is correct format\n\n\t\t\tAlert alert = new Alert(AlertType.ERROR); // Error message\n\t\t\talert.setTitle(\"Error\");\n\n\t\t\talert.setHeaderText(\"Could not create an user\");\n\t\t\talert.setContentText(\"Make sure you fill all fields and press button again\");\n\t\t\talert.showAndWait();\n\n\t\t\treturn;\n\t\t}\n\n\t\telse {\n\t\t\ttry {\n\t\t\t\tphoneNumberLong = Long.parseLong(phoneNumber);\n\t\t\t} catch (Exception e) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"Wrong format of phone number\");\n\t\t\t\talert.setContentText(\"Please enter correct phone number\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(FileReader.exists(username)) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"User with the username \"+ username +\" already exists. \");\n\t\t\t\talert.setContentText(\"Please choose another username\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tString userdata = \"\";\n\t\t\tuserdata += \"\\n Username: \" + username;\n\t\t\tuserdata += \"\\n First name: \" + firstName;\n\t\t\tuserdata += \"\\n Last name: \" + lastName;\n\t\t\tuserdata += \"\\n Address: \" + address;\n\t\t\tuserdata += \"\\n Post code: \" + postCode;\n\t\t\tuserdata += \"\\n Phone number: \" + phoneNumberLong;\n\t\t\t\n\n\t\t\tif(custom) {\n\t\t\t\tavatarIndex = 101;\n\t\t\t\t// Gives users the custom avatar\n\t\t\t\tFile file1 = new File(\"artworkImages/\" + username);\n\t\t\t\tfile1.mkdir();\n\t\t\t\tPath path = Paths.get(\"customAvatars/\" + username + \".png\");\n\t\t\t\tString path1 = \"tmpImg.png\";\n\t\t\t\tFile file = new File(path1);\n\n\t\t\t\ttry {\n\t\t\t\t\tFiles.copy(file.toPath(), path, StandardCopyOption.REPLACE_EXISTING);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUser user = new User(username, firstName, lastName, address, postCode, phoneNumberLong, avatarIndex);\n\t\t\tFileReader.addUser(user); // Creates user\n\n\t\t\ttry {\n\t\t\t\tWriter.writeUserFile(user); // Adds user to memory\n\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION); // Success message\n\t\t\talert.setTitle(\"Success\");\n\n\t\t\talert.setHeaderText(\"The user has been created\");\n\t\t\talert.setContentText(\"Close this window to return to login screen\");\n\t\t\talert.showAndWait();\n\n\t\t\tcreateAccountButton.getScene().getWindow().hide();\n\t\t}\n\n\t}", "private void createAccount(final String email, final String password) {\n if (!validateForm()) {\n return;\n }\n showProgressDialog();\n\n // [START create_user_with_email]\n Log.d(TAG, email);\n Log.d(TAG, password);\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(JE_Login_Home.this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n if (!task.isSuccessful()) {\n makeText(getApplicationContext(), R.string.toast_authentication_failed, Toast.LENGTH_SHORT).show();\n updateUI(null);\n } else {\n sendEmailVerification();\n }\n\n // [START_EXCLUDE]\n hideProgressDialog();\n // [END_EXCLUDE]\n\n }\n });\n // [END create_user_with_email]\n }", "String createUserRequest(String username, UserRequestType type);", "private void createNewUser(final User unmanagedUser) {\n Realm realm = (mRealm == null) ? Realm.getDefaultInstance() : mRealm;\n //create by administrator\n realm.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n User u2 = realm.createObject(User.class, PrimaryKeyFactory.getInstance().nextKey(User.class));\n u2.setLoggedIn(false);\n u2.setUserId(unmanagedUser.getUserId());\n\n String password = unmanagedUser.getPassword();\n if (password == null) {\n password = \"\";\n }\n u2.setPassword(password);\n\n u2.setUserName(unmanagedUser.getUserName());\n u2.setStartDate(unmanagedUser.getStartDate());\n u2.setEndDate(unmanagedUser.getEndDate());\n u2.setCreated(new Date());\n u2.setActive(unmanagedUser.getActive());\n u2.setSpecial(false);\n u2.setPermission(unmanagedUser.getPermission());\n u2.setEnabled(unmanagedUser.getEnabled());\n }\n });\n\n if (mRealm == null)\n realm.close();\n }", "public void onCreateAccountPressed(View view) {\n\n\n mUserName = mEditTextUsernameCreate.getText().toString();\n mUserEmail = mEditTextEmailCreate.getText().toString().toLowerCase();\n mPassword = mEditTextPasswordCreate.getText().toString();\n\n /**\n * Check that email and user name are okay\n */\n boolean validEmail = isEmailValid(mUserEmail);\n boolean validUserName = isUserNameValid(mUserName);\n boolean validPassword = isPasswordValid(mPassword);\n if (!validEmail || !validUserName || !validPassword) return;\n /**\n * If everything was valid show the progress dialog to indicate that\n * account creation has started\n */\n mAuthProgressDialog.show();\n\n\n // [START create_user_with_email]\n mAuth.createUserWithEmailAndPassword(mUserEmail, mPassword)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(LOG_TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n Toast.makeText(CreateAccountActivity.this, R.string.auth_failed,\n Toast.LENGTH_SHORT).show();//error message\n //showErrorToast(\"createUserWithEmail : \"+task.isSuccessful());\n }\n\n // [START_EXCLUDE]\n mAuthProgressDialog.dismiss();\n Intent intent = new Intent(CreateAccountActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n // [END_EXCLUDE]\n //end\n }\n });\n // [END create_user_with_email]\n\n\n\n /**\n * Create new user with specified email and password\n */\n /*mFirebaseRef.createUser(mUserEmail, mPassword, new Firebase.ValueResultHandler<Map<String, Object>>() {\n @Override\n public void onSuccess(Map<String, Object> result) {\n Dismiss the progress dialog\n mAuthProgressDialog.dismiss();\n Log.i(LOG_TAG, getString(R.string.log_message_auth_successful));\n }\n\n @Override\n public void onError(FirebaseError firebaseError) {\n *//* Error occurred, log the error and dismiss the progress dialog *//*\n Log.d(LOG_TAG, getString(R.string.log_error_occurred) +\n firebaseError);\n mAuthProgressDialog.dismiss();\n *//* Display the appropriate error message *//*\n if (firebaseError.getCode() == FirebaseError.EMAIL_TAKEN) {\n mEditTextEmailCreate.setError(getString(R.string.error_email_taken));\n } else {\n showErrorToast(firebaseError.getMessage());\n }\n\n }\n });*/\n }", "public void addUser() throws AccountException {\n System.out.println(\"----------------- Add User -----------------\");\n System.out.print(\"Account: \");\n String username = this.checkUsername(); // Call method to check input of username\n\n System.out.print(\"Password: \");\n String password = this.checkEmpty(\"Password\"); // Call method to check input of password\n\n System.out.print(\"Name: \");\n String name = this.checkEmpty(\"Name\"); // Call method to check input of name\n\n System.out.print(\"Phone: \");\n String phone = this.checkPhone(); // Call method to check nput of phone\n\n System.out.print(\"Email: \");\n String email = this.checkEmail(); // Call method to check input of email\n\n System.out.print(\"Address: \");\n String address = this.checkEmpty(\"Address\"); // Call method to check input of address\n\n System.out.print(\"DOB: \");\n Date dob = this.checkDate(); // Call method to check input of dob\n\n // Add new user and print success if created\n this.addUser(username, password, name, phone, email, address, dob);\n System.out.println(\"Create account success.\");\n }", "public synchronized User createAccount(String username, String password, String type, String actualName, String email) {\r\n\t\tUser user = new User();\r\n\t\tuser.setActualName(actualName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setPassword(password);\r\n\t\tuser.setType(type);\r\n\t\tuser.setUsername(username);\r\n\t\tboolean added = addUser(user);\r\n\t\tif (added) {\r\n\t\t\treturn user;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private void createAccount(String email, String password) {\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n FirebaseUser user = mAuth.getCurrentUser();\n textViewStatus.setText(\"Signed In\");\n } else {\n // If sign in fails, display a message to the user.\n Toast.makeText(MainActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n textViewStatus.setText(\"Signed Out\");\n }\n\n }\n });\n }", "public UserProfile createUserProfile(String username, UserProfile newProfile);", "@POST\n\t@Path(\"/signUp\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic String createUser(User user) {\n\t\tUserService.createUser(user);\n\t\treturn \"User \" + user.getUsername() + \" is created successfully\";\n\t}", "public static void createUser(User user) throws LegoHouseException {\n try {\n Connection con = Connector.connection();\n String SQL = \"INSERT INTO users (email, password, role) VALUES (?, ?, ?)\";\n PreparedStatement ps = con.prepareStatement(SQL, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, user.getEmail());\n ps.setString(2, user.getPassword());\n ps.setString(3, user.getRole());\n ps.executeUpdate();\n ResultSet ids = ps.getGeneratedKeys();\n ids.next();\n int id = ids.getInt(1);\n user.setId(id);\n }\n catch (SQLException | IllegalAccessException | InstantiationException | ClassNotFoundException ex) {\n throw new LegoHouseException(ex.getMessage(), \"index\");\n }\n }", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "User create(User user);", "@Override\n\tpublic String createAccount() {\n\t\treturn \"Created Saving Account Sucessfully\";\n\t}" ]
[ "0.8645682", "0.8028694", "0.799714", "0.779524", "0.7768531", "0.7670505", "0.7649307", "0.76385146", "0.74421704", "0.7384376", "0.7361431", "0.733252", "0.73299587", "0.7307054", "0.7260635", "0.7196868", "0.7185301", "0.7142339", "0.71337026", "0.7066635", "0.69915915", "0.69860953", "0.6975833", "0.6973551", "0.6969081", "0.6966034", "0.69644237", "0.69633406", "0.6950909", "0.69394636", "0.6903105", "0.6903035", "0.6855663", "0.685561", "0.6853567", "0.6843649", "0.68376935", "0.68374103", "0.6833261", "0.6820411", "0.6820268", "0.68162364", "0.67902684", "0.67839044", "0.67664546", "0.67623013", "0.6761799", "0.6758472", "0.6734421", "0.6725062", "0.6713337", "0.67036325", "0.67013365", "0.6679687", "0.6676114", "0.6675798", "0.6673464", "0.6671898", "0.6670407", "0.6661044", "0.66598904", "0.66572315", "0.6652886", "0.6643537", "0.6640328", "0.6625979", "0.6612606", "0.6607137", "0.65833586", "0.6575848", "0.6568965", "0.6563995", "0.6563792", "0.6559174", "0.65145797", "0.65002763", "0.6499516", "0.649688", "0.6476058", "0.64666337", "0.6442403", "0.64332026", "0.64329845", "0.64329374", "0.6431292", "0.6425254", "0.64219576", "0.64140695", "0.6412422", "0.6410965", "0.64044386", "0.6404328", "0.6401814", "0.63983953", "0.6395189", "0.6386615", "0.6386517", "0.637116", "0.63550675", "0.63487023", "0.63398695" ]
0.0
-1
fetch the user with the given id
public static Call<User> getById(String id, String accessToken){ return ApiConfig.getService().getUserById(id, accessToken); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User getUserFromId(final long id) {\n LOG.info(\"Getting user with id {}\", id);\n return userRepo.get(id);\n }", "@Override\r\n\tpublic User getUserById(int id) {\n\t\treturn userMapper.selById(id);\r\n\t}", "public User fetchById(int id)\n {\n String query = \"SELECT * FROM user WHERE id = ?\";\n RowMapper<User> userRowMapper = new BeanPropertyRowMapper<>(User.class);\n User user; // a specific user that will be returned\n try\n {\n user = template.queryForObject(query, userRowMapper, id); // call the database\n } catch (EmptyResultDataAccessException e)\n {\n user = null; // return a null user\n }\n return user;\n }", "@Override\n\tpublic User selectUserById(int id) {\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = (User) client.queryForObject(\"selectUserById\", id);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn user;\n\n\t}", "public User getUserById(int id) {\n System.out.println(id + this.userDao.selectId(id).getUsername());\n\n return this.userDao.selectId(id);\n }", "@Override\r\n public IUser getUserByUserId(String id)\r\n {\r\n EntityManager em = getEntityManager();\r\n\r\n try\r\n {\r\n return em.find(User.class, id);\r\n }\r\n finally\r\n {\r\n em.close();\r\n }\r\n }", "public User user(long id) {\n\t\tOptional<User> user = repository.findById(id);\n\n\t\tif (user.isPresent()) {\n\t\t\treturn user.get();\n\t\t} else {\n\t\t\tthrow new NotFoundException(\"User com o Id: \" + id + \" não encontrado em nossa base de dados!\");\n\t\t}\n\n\t}", "@RequestMapping(method=RequestMethod.GET, value=\"{id}\")\n\tpublic User getUser(@PathVariable Long id) {\n\t\treturn RestPreconditions.checkFound(repo.findByUserId(id));\n\t}", "public static User findUserById(int id) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserById = \"SELECT * FROM public.member \"\n + \"WHERE id = '\" + id + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserById);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n return user;\n }", "public User getUser(long id){\n User user = userRepository.findById(id);\n if (user != null){\n return user;\n } else throw new UserNotFoundException(\"User not found for user_id=\" + id);\n }", "public User getUser(long id) {\n\t\tUser user = null;\n\t\t\n\t\tString queryString = \n\t\t\t \"PREFIX sweb: <\" + Config.NS + \"> \" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \" +\n\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \" +\n\t\t\t \"PREFIX foaf: <http://xmlns.com/foaf/0.1/>\" +\n\t\t\t \"select * \" +\n\t\t\t \"where { \" +\n\t\t\t \t\"?user sweb:id \" + id + \".\" +\n\t\t\t \"} \\n \";\n\n\t Query query = QueryFactory.create(queryString);\n\t \n\t QueryExecution qe = QueryExecutionFactory.create(query, this.model);\n\t ResultSet results = qe.execSelect();\n\t \n\t while(results.hasNext()) {\n\t \tQuerySolution solution = results.nextSolution() ;\n\t Resource currentResource = solution.getResource(\"user\");\n\n\t user = this.buildUserFromResource(currentResource);\n\t \n\t user.setTweets(this.getTweetsByUserId(id));\n\t user.setVisited(this.getVenuesVisitedByUserId(id));\n\t user.setInContact(this.getInContactForUserId(id));\n\t }\n\t \n\t return user;\n\t}", "User getUserById(int id);", "User getUser(Long id);", "public User getUserById(String id) {\n // return userRepo.findById(id);\n\n return null;\n }", "@Override\r\n\tpublic Userinfo findbyid(int id) {\n\t\treturn userDAO.searchUserById(id);\r\n\t}", "@Override\r\n\tpublic User getUserByID(int id) {\n\t\treturn userMapper.getUserByID(id);\r\n\t}", "@Override\n\tpublic User getUser(int id) {\n\t\treturn userRepository.findById(id);\n\t}", "@Override\r\n\tpublic User user(int id) {\r\n\t\tMap<String,String> map = getOne(SELECT_USERS+ WHERE_ID, id);\r\n\t\tif(map!= null){\r\n\t\t\treturn IMappable.fromMap(User.class, map);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic User getUserById(int id) {\n\t\treturn userDao.getUserById(id);\n\t}", "public User getUser(String id) {\n return repository.getUser(id).get(0);\n }", "public User read(String id);", "public User getUser(int id){\n \n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n User user = null;\n try {\n tx = session.beginTransaction();\n\n // Add restriction to get user with username\n Criterion emailCr = Restrictions.idEq(id);\n Criteria cr = session.createCriteria(User.class);\n cr.add(emailCr);\n user = (User)cr.uniqueResult();\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null)\n tx.rollback();\n log.fatal(e);\n } finally {\n session.close();\n }\n return user;\n }", "@Override\r\n\tpublic User findByIdUser(Integer id) {\n\t\treturn userReposotory.findById(id).get();\r\n\t}", "public User getUserById(int id) {\n\t\treturn userDao.getUserById(id);\r\n\t}", "@Override\n\tpublic User findUserById(int id) {\n\t\treturn userDao.findUserById(id);\n\t}", "public User findById(Long id) {\n return genericRepository.find(User.class, id);\n }", "public User getUser(Long id) {\n\t\treturn userRepo.findByUserId(id);\n\t}", "public User findUserById(Long id) {\n \tOptional<User> u = userRepository.findById(id);\n \t\n \tif(u.isPresent()) {\n return u.get();\n \t} else {\n \t return null;\n \t}\n }", "public UserDTO getUserById(long id) {\n return Optional.of(ObjectMapperUtility.map(dao.findById(id), UserDTO.class))\n .orElseThrow(() -> new UserNotFoundException(\"No users with matching id \" + id));\n // return Optional.of(dao.findById(id)).get().orElseThrow(()-> new UserNotFoundException(\"No users with\n // match\"));\n }", "@Override\r\n\tpublic User searchUser(Integer id) {\n\t\treturn userReposotory.getById(id);\r\n\t}", "@Override\n public User findById(Integer id) {\n try {\n return runner.query(con.getThreadConnection(),\"select *from user where id=?\",new BeanHandler<User>(User.class),id);\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }", "public User getById(int id) {\n\t\treturn userDao.getById(id);\n\t}", "User getUserById(Long id);", "User getUserById(Long id);", "@Override\n public User getUserById(int id) {\n Session session = this.sessionFactory.getCurrentSession(); \n User u = (User) session.load(User.class, new Integer(id));\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }", "public Users getUser(Integer id) {\r\n\t\treturn usDao.findById(id, true);\r\n\r\n\t}", "public User findById(Long id){\n return userRepository.findOne(id);\n }", "Optional<User> findUser(int id) throws ServiceException;", "public User getById(String id){\n List<User> users = userRepo.findAll();\n for (User user : users){\n if(user.getGoogleId().equals(id)){\n return user;\n }\n }\n throw new UserNotFoundException(\"\");\n }", "public User getUserById(String id){\n\t\tUser e;\n\t\tfor (int i = 0 ; i < users.size() ; i++){\n\t\t\te = users.get(i);\n\t\t\tif (e.getId().equals(id))\n\t\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic User getUserById(String id) {\n\t\tUser user = null;\n\t\tConnection connection = null;\n\t\ttry{\n\t\t\tconnection = BaseDao.getConnection();\n\t\t\tuser = userMapper.getUserById(connection,id);\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tuser = null;\n\t\t}finally{\n\t\t\tBaseDao.closeResource(connection, null, null);\n\t\t}\n\t\treturn user;\n\t}", "@GetMapping(\"/users/{id}\")\n\tpublic User retrieveUser(@PathVariable int id) {\n\t\tUser user = userService.findById(id).get();\n\t\tif (user == null) {\n\t\t\tthrow new UserNotFoundException(\"id - \" + id);\n\t\t}\n\t\treturn user;\n\t}", "UserDetails get(String id);", "@Override\r\n\tpublic User findById(int id) {\n\t\treturn userDAO.findById(id);\r\n\t}", "@Override\n\tpublic User findByUserid(Serializable id) {\n\t\treturn this.userDao.findById(id);\n\t}", "public User getUserById(Integer id) {\n\t\treturn userMapper.selectByPrimaryKey(id);\n\t}", "private User getUser(Long id) {\n\t\tEntityManager mgr = getEntityManager();\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = mgr.find(User.class, id);\n\t\t} finally {\n\t\t\tmgr.close();\n\t\t}\n\t\treturn user;\n\t}", "private User findById(String id) {\n User result = new NullUserOfDB();\n for (User user : this.users) {\n if (user.getId().equals(id)) {\n result = user;\n break;\n }\n }\n return result;\n }", "public User findById(int id) {\n\t\treturn userRepository.findOne(id);\n\t}", "public User getUserById(Long id) throws Exception;", "@Override\n\tpublic User getOne(Integer id) {\n\t\treturn userDao.getOne(id);\n\t}", "@Override\n public UserInfo findById(int id) {\n TypedQuery<UserInfo> query = entityManager.createNamedQuery(\"findUserById\", UserInfo.class);\n query.setParameter(\"id\", id);\n return query.getSingleResult();\n }", "public static User findUser(int id) {\r\n return null;\r\n }", "public User findUser(int id) {\n for (int i = 0; i < allUsers.size(); i++) {\n if (allUsers.get(i).getId() == id) {\n return allUsers.get(i);\n }\n }\n return null;\n }", "public User findById(int id) {\n\t\tString sql = \"SELECT * FROM VIDEOGAMESTORES.USERS WHERE ID=\" +id;\n\t\n\t\ttry {\n\t\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(sql);\n\t\t\twhile(srs.next())\n\t\t\t{\n\t\t\t\t// Add a new User to the list for every row that is returned\n\t\t\t\treturn new User(srs.getString(\"USERNAME\"), srs.getString(\"PASSWORD\"), srs.getString(\"EMAIL\"),\n\t\t\t\t\t\tsrs.getString(\"FIRST_NAME\"), srs.getString(\"LAST_NAME\"), srs.getInt(\"GENDER\"), srs.getInt(\"USER_PRIVILEGE\"), srs.getInt(\"ID\"));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public Optional<User> getUser(long id) {\n return entityCache.get(String.valueOf(id)).or(() -> dbServiceUser.getUser(id).map(user -> {\n entityCache.put(String.valueOf(id), user);\n return user;\n }));\n }", "public User findUserById (long id){\n if(userRepository.existsById(id)){\n return this.userRepository.findById(id);\n }else{\n throw new UnknownUserException(\"This user doesn't exist in our database\");\n }\n }", "public static User getUser(String id){\n\t\tWSResponse response = null;\n\t\tUser user = null;\n\t\ttry{\n\t\tPromise<WSResponse> result = WS.url(Utils.getApiUrl()+Urls.GET_ONE_USER+id)\n\t\t\t\t\t\t\t\t\t\t.setContentType(Urls.CONTENT_TYPE_JSON)\n\t\t\t\t\t\t\t\t\t\t.get();\n\t\tresponse = result.get(10000);\n\t\tuser = new Gson().fromJson(response.getBody(), User.class);\n\t\t} catch(Exception exception){\n\t\t\tController.flash(Messages.ERROR, Messages.CANT_LOAD_USERS + exception);\n\t\t}\n\t\treturn user;\n\t}", "@Override\n\tpublic User findUserByUserId(long id) {\n\t\treturn userDao.getUserByUserId(id);\n\t}", "@Override\r\n public Dorm findById(Integer id) {\n return userMapper.findById(id);\r\n }", "@Override\n\tpublic User findById(String id) {\n\t\tUser u= em.find(User.class, id);\n\t\tSystem.out.println(u);\n\t\treturn u;\n\t}", "@Override\n\tpublic User findUser(int id) {\n\n\t\tUser user = em.find(User.class, id);\n\n\t\treturn user;\n\t}", "@Override\r\n\tpublic TbUser findUserById(Long id) {\n\t\tTbUser tbUser = tbUserMapper.selectByPrimaryKey(id);\r\n\t\treturn tbUser;\r\n\t}", "protected UserEntity getUser(Long id) {\n return getEntityById(userRepository, id);\n }", "public User getUserFromID(String id) {\r\n // Gets the collection of users and creates a query\r\n MongoCollection<Document> users = mongoDB.getCollection(\"Users\");\r\n Document query = new Document(\"_id\", new ObjectId(id));\r\n\r\n // Loops over users found matching the details, returning the first one\r\n for (User user : users.find(query, User.class)) {\r\n return user;\r\n }\r\n\r\n // Returns null if none are found\r\n return null;\r\n }", "public Function<Session, User> get(long id) {\n return this.functionTransaction(\n session -> session.get(User.class, id)\n );\n }", "public User findById(String id) {\n\t\treturn userDao.findById(id);\n\t}", "public User getById(int id) {\n\t\t return (User)sessionFactory.getCurrentSession().get(User.class, id);\n\t}", "public User findUser(int id) {\n\n\t\ttry {\n\t\t\tConnection conn = getConnection();\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"select * from users where id = ?\");\n\t\t\tps.setInt(1, id);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tUser foundUser = new User(id, rs.getString(2), rs.getString(3), rs.getString(5),\n\t\t\t\t\t\trs.getDate(6));\n\t\t\t\tconn.close();\n\t\t\t\treturn foundUser;\n\n\t\t\t}\n\t\t\tconn.close();\n\n\t\t} catch (SQLException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\treturn null;\n\t}", "public User getUserById(int id) {\n\t\treturn em.find(User.class, id);\n\t}", "public Object findUserById(long id) throws AccessException {\r\n if(userRepo.findById(id) == null) {\r\n throw new NoSuchElementException(\"No such user with \" + id + \" exist\");\r\n }\r\n\r\n BasicUserDetails authenticatedUser = (BasicUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n if(authenticatedUser.getId() != id)\r\n throw new AccessException(\"Cannot request user different than the authenticated user\");\r\n\r\n return userRepo.findById(id).getPrivateUser();\r\n }", "@GET\n\t@Path(\"/id\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Response findById(@QueryParam(\"id\") Long id) throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tUser userById = userDao.getUserById(id);\n\t\t\n\t\tif (userById != null) {\n\t\t\treturn Response\n\t\t\t\t\t.status(200)\n\t\t\t\t\t.entity(userById)\n\t\t\t\t\t.header(\"Access-Control-Allow-Headers\", \"X-extra-header\")\n\t\t\t\t\t.allow(\"OPTIONS\")\n\t\t\t\t\t.build();\n\t\t} else {\n\t\t\treturn Response\n\t\t\t\t\t.status(404)\n\t\t\t\t\t.entity(\"The user with the id \" + id + \" does not exist\")\t\t\t\t\t\n\t\t\t\t\t.build();\n\t\t}\n\t}", "@GetMapping(\"consumer/find/{id}\")\n public User findby (@PathVariable(\"id\") Integer id) {\n return restTemplate.getForObject(\"http://provider-user/provider/find/\" + id, User.class);\n }", "public User selectoneuser(int id) {\n\t\tUser user = null;\n\t\tuser = new User();\n\t\tSystem.out.println(\"Userdao的id=\" + id);\n\t\tConnection conn = null;\n\t\tString sql = \"select * from users where id=\" + id;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tconn = ConnectDB.getconnect();\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(sql);\n\t\t\trs = pstmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tuser.setId(rs.getInt(\"id\"));\n user.setUsername(rs.getString(\"username\"));\n user.setPassword(rs.getString(\"password\"));\n user.setPhonenumber(rs.getString(\"phonenumber\"));\n user.setEmail(rs.getString(\"email\"));\n\t\t\t}\n\t\t\tpstmt.close();\n\t\t\tconn.close();\n\t\t\treturn user;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"bookdao查询当前id结果失败\");\n\t\t}\n\t\treturn user;\n\t}", "public static User selectById(int id) {\n User user = new User();\n\n try (PreparedStatement ps = DBConnection.getConnection().prepareStatement(GET_BY_ID)){\n ps.setInt(1, id);\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n user.setUserId(rs.getInt(\"User_ID\"));\n user.setUserName(rs.getString(\"User_Name\"));\n user.setPassword(rs.getString(\"Password\"));\n user.setDateCreated(rs.getObject(\"Create_Date\", LocalDateTime.class));\n user.setCreatedBy(rs.getString(\"Created_By\"));\n user.setLastUpdate(rs.getTimestamp(\"Last_Update\"));\n user.setLastUpdatedBy(rs.getString(\"Last_Updated_By\"));\n //\n }\n } catch (SQLException err) {\n err.printStackTrace();\n }\n\n return user;\n }", "public User getUser(Integer id)\n\t{\n\t\t// Create an user -1 for when it isn't in the list\n\t\tUser searchUser = new User();\n\t\t// Index: User's position in the list\n\t\tint index = this.getUserById(id.intValue());\n\t\t// If the user is in the list execute the action\n\t\tif(index != -1)\n\t\t{\n\t\t\tsearchUser = this.usersList.get(index);\n\t\t}\n\t\t\n\t\treturn searchUser;\n\t}", "public User getUser(long id) {\n\t\tfactory = new Configuration().configure().buildSessionFactory();\n\t\tsession = factory.getCurrentSession();\n\t\tsession.beginTransaction();\n\t\tQuery query = session.createQuery(\"from User where idUser = :id \");\n\t\tquery.setParameter(\"id\", id);\n\t\tList<User> list = query.getResultList();\n\t\tsession.close();\n\t\treturn list.get(0);\n\t\t\n\t}", "public User getUser(int id) {\n\t\treturn null;\n\t}", "@Override\n public User findById(long id) {\n return dao.findById(id);\n }", "public User getUserById(Serializable id) {\n\t\treturn (User)this.userDao.getEntryById(id);\r\n\t}", "public static User findById(final String id) {\n return find.byId(id);\n\n }", "User find(long id);", "@RequestMapping(value = \"/find/{id}\", method = RequestMethod.GET)\n @ResponseBody\n public ResponseEntity findUser(@PathVariable long id) {\n User user = userService.findById(id);\n if (user == null) {\n return new ResponseEntity(HttpStatus.NO_CONTENT);\n }\n return new ResponseEntity(user, HttpStatus.OK);\n }", "public User findById(long id) {\n return store.findById(id);\n }", "public User findById ( int id) {\n\t\t return users.stream().filter( user -> user.getId().equals(id)).findAny().orElse(null);\n\t}", "public User findOneUser(int id) {\n\t\treturn userMapper.findOneUser(id);\r\n\t}", "User findUserById(Long id) throws Exception;", "public User findById(int id) {\n\t\treturn this.getHibernateTemplate().load(User.class, id);// session.load()\r\n\t}", "@GetMapping(\"/{id}\")\n\tpublic User getUserById(@PathVariable long id) throws ResourceNotFoundException {\n\t\t\n\t\treturn userRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"User not found for this Id :: \"+id));\n\t\t\n\t}", "@Override\n public TechGalleryUser getUser(final Long id) throws NotFoundException {\n TechGalleryUser userEntity = userDao.findById(id);\n // if user is null, return a not found exception\n if (userEntity == null) {\n throw new NotFoundException(i18n.t(\"No user was found.\"));\n } else {\n return userEntity;\n }\n }", "@RequestMapping(value=\"/user/{id}\",method=RequestMethod.GET)\n\tpublic @ResponseBody ResponseEntity<User> getOneUserDetails(@PathVariable Long id)throws Exception{\n\t\tUser user=null;\n\t\t\tuser=userDAO.findOne(id);\n\t\t\tif(user!=null)\n\t\t\t\treturn new ResponseEntity<User>(user, HttpStatus.OK);\n\t\t\telse {\n\t\t\t\treturn new ResponseEntity<User>(HttpStatus.NOT_FOUND);\n\t\t\t}\n\t}", "public User selectById(int id) {\n\t\treturn mapper.selectById(id);\n\t}", "public User getUser(Integer id) {\n\t\treturn null;\n\t}", "public User getSingleUser(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from User as user where user.userId = ?\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (User) results.get(0);\n }\n\n }", "@Override\n public User get(int id) {\n\n String sqlGet = sqlQuery + \" where u.id=:id\";\n //Этот класс предназначен для передачи в простой Map значений параметров методам NamedParameterJdbcTemplate класса.\n MapSqlParameterSource parameterSource = new MapSqlParameterSource()\n .addValue(\"id\",id);\n List<User> list = namedParameterJdbcTemplate.query(sqlGet,parameterSource, new UserRowMapper());\n\n return DataAccessUtils.singleResult(list);//Возвращает один объект результата из данной коллекции.\n }", "public User getUser(String id) {\n\t\treturn null;\r\n\t}", "public User getUser(int id) {\n User user = null;\n Session session = null;\n try {\n session = openSession();\n user = (User) session.get(User.class, id);\n } catch (HibernateException he) {\n logger.error(\"Hibernate Exception: \" + he);\n } catch (Exception e) {\n logger.error(\"Exception: \" + e);\n } finally {\n if (session != null) {\n session.close();\n }\n }\n return user;\n }", "@GetMapping(\"/user/{id}\")\n public ResponseEntity getUserById(@PathVariable(value = \"id\") Long id) {\n User user = userRepository.getOne(id);\n\n // Not found, returning 404 Not Found\n if (user == null)\n return ResponseEntity.notFound().build();\n\n // Found\n return ResponseEntity.ok().body(user);\n }", "@CrossOrigin(origins = \"*\")\r\n\t@GetMapping(\"/user/{id}\")\r\n\tpublic ResponseEntity<Users> getUserById(@PathVariable(value=\"id\")Long id){\r\n\t\t\r\n\t\tUsers user = usersDAO.findById(id);\r\n\t\t\r\n\t\tif(user==null) {\r\n\t\t\t\r\n\t\t\treturn ResponseEntity.notFound().build();\r\n\t\t}\r\n\t\treturn ResponseEntity.ok().body(user);\r\n\t}", "public User findUser(int id)\n\t\t{\n\t\t\tfor (int i = 0; i < users.size(); i++)\n\t\t\t{\n\t\t\t\tif (id == (users.get(i).getId()))\n\t\t\t\t{\n\t\t\t\t\treturn users.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "@Override\n public ResponseEntity<User> findById(Long id) {\n User res_data = userRepository.findById(id).get();\n if (res_data != null) {\n return new ResponseEntity<>(res_data, HttpStatus.OK);\n }\n return new ResponseEntity<>((User) res_data, HttpStatus.NOT_FOUND);\n }" ]
[ "0.8102258", "0.8098636", "0.80611646", "0.80605006", "0.79977983", "0.79823947", "0.7961095", "0.79395527", "0.79311293", "0.79086053", "0.7888746", "0.787284", "0.78647685", "0.78602874", "0.78586614", "0.7849067", "0.7840306", "0.78394276", "0.7839215", "0.78181744", "0.7799901", "0.77995217", "0.77817416", "0.7776958", "0.77550244", "0.7754805", "0.77482224", "0.7739363", "0.773309", "0.77322644", "0.77316713", "0.77313834", "0.7731342", "0.7731342", "0.7729659", "0.77137834", "0.77134746", "0.7710242", "0.7699187", "0.76987445", "0.769644", "0.7690339", "0.7688093", "0.7680105", "0.76799357", "0.7676906", "0.767431", "0.7658071", "0.7654675", "0.7645968", "0.76442516", "0.76437145", "0.76379365", "0.7635435", "0.7635253", "0.7630558", "0.7630347", "0.7629386", "0.76277846", "0.76114166", "0.7607191", "0.7602659", "0.7602424", "0.7596809", "0.7596452", "0.75943047", "0.75917274", "0.75841117", "0.7577305", "0.7575363", "0.7572785", "0.75722176", "0.7562689", "0.7561074", "0.75527704", "0.75498384", "0.75403714", "0.7539662", "0.75379586", "0.7520468", "0.7520048", "0.75137615", "0.7505305", "0.7503702", "0.75007904", "0.75001913", "0.7496842", "0.74795413", "0.7479479", "0.7475033", "0.7458982", "0.7458035", "0.7455254", "0.74525195", "0.7448876", "0.74481434", "0.7448092", "0.7443136", "0.7440765", "0.7434659", "0.7434187" ]
0.0
-1
/ 18 / 18 test cases passed. Status: Accepted Runtime: 38 ms 9%
public String countAndSay(int n) { String input = "1"; String immediate_str = ""; for (int i = 1; i < n; i++) { //System.out.println(input); char [] nums = input.toCharArray(); int count = 0; int prev = -1; for (int j = 0; j < nums.length; j++) { //System.out.println(j + ","+ nums[j]); if ((nums[j] - '0') == prev) { count ++; } else { if (prev != -1) immediate_str += Integer.toString(count) + Integer.toString(prev); count = 1; } prev = nums[j] - '0'; } immediate_str += Integer.toString(count) + Integer.toString(prev); input = immediate_str; immediate_str = ""; } return input; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testPerformance() {\n \t}", "public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test\n public void testDAM30601001() {\n testDAM30102001();\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_18() {\n CuteNetlibCase.doTest(\"KEN-18.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_30() {\n CuteNetlibCase.doTest(\"OSA-30.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void testDAM30903001() {\n testDAM30802001();\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testQAP15() {\n CuteNetlibCase.doTest(\"QAP15.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void testDAM30103001() {\n // settings as done for testDAM30102001 are identical\n testDAM30102001();\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testQAP12() {\n CuteNetlibCase.doTest(\"QAP12.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "private static void testAlgorithmOptimality() {\n AlgoFunction testAlgo = SG16Algorithm::new;\n\n //printSeed = false; // keep this commented out.\n Random seedRand = new Random(1241);\n int initial = seedRand.nextInt();\n for (int i=0; i<50000000; i++) {\n int sizeX = seedRand.nextInt(150) + 5;\n int sizeY = seedRand.nextInt(150) + 5;\n int seed = i+initial;\n int ratio = seedRand.nextInt(50) + 5;\n \n int max = (sizeX+1)*(sizeY+1);\n int p1 = seedRand.nextInt(max);\n int p2 = seedRand.nextInt(max-1);\n if (p2 == p1) {\n p2 = max-1;\n }\n \n int sx = p1%(sizeX+1);\n int sy = p1/(sizeX+1);\n int ex = p2%(sizeX+1);\n int ey = p2/(sizeX+1);\n\n double restPathLength = 0, normalPathLength = 0;\n try {\n GridGraph gridGraph = DefaultGenerator.generateSeededGraphOnly(seed, sizeX, sizeY, ratio);\n for (int iii=0;iii<300;++iii) Utility.generatePath(testAlgo, gridGraph, seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1),seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1));\n int[][] path = Utility.generatePath(testAlgo, gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n restPathLength = Utility.computePathLength(gridGraph, path);\n \n path = Utility.computeOptimalPathOnline(gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n normalPathLength = Utility.computePathLength(gridGraph, path);\n }catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"EXCEPTION OCCURRED!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n }\n \n if (Math.abs(restPathLength - normalPathLength) > 0.000001f) {\n //if ((restPathLength == 0.f) != (normalPathLength == 0.f)) {\n System.out.println(\"============\");\n System.out.println(\"Discrepancy Discovered!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n System.out.println(restPathLength / normalPathLength);\n System.out.println(\"============\");\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n } else {\n if (i%1000 == 999) {\n System.out.println(\"Count: \" + (i+1));\n System.out.println(\"OK: Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n }\n }\n }\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPDS_20() {\n CuteNetlibCase.doTest(\"PDS-20.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testOptimization() throws Exception {\n\t\tfor(int i = 0; i < 20000000; i++) {\n\t\t\tint _300s = (int) (Math.random() * 100);\n\t\t\tint _100s = (int) (Math.random() * 100);\n\t\t\tint _50s = (int) (Math.random() * 100);\n\t\t\tint misses = (int) (Math.random() * 100);\n\t\t\t\n\t\t\tdouble acc = OsuApiScore.getAccuracy(_300s, _100s, _50s, misses);\n\t\t\t\n\t\t\tAccuracyDistribution accuracyDistribution = AccuracyDistribution.closest(\n\t\t\t\t\t_300s + _100s + _50s + misses, misses,\n\t\t\t\t\tacc);\n\t\t\t\n\t\t\tdouble rec = OsuApiScore.getAccuracy(accuracyDistribution.getX300(),\n\t\t\t\t\taccuracyDistribution.getX100(), accuracyDistribution.getX50(),\n\t\t\t\t\taccuracyDistribution.getMiss());\n\t\t\t\n\t\t\tassertEquals(acc, rec, 0d);\n\t\t}\n\t}", "@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}", "@Test\n @Tag(\"slow\")\n public void test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void test80BAU3B() {\n CuteNetlibCase.doTest(\"80BAU3B.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSCTAP2() {\n CuteNetlibCase.doTest(\"SCTAP2.SIF\", \"1724.8071428568292\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPDS_06() {\n CuteNetlibCase.doTest(\"PDS-06.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n\tpublic void CheckConvertionsTest2() throws Exception{\n\t\t\n\t\t/** an example for a pre-defined trivial conversion in the converter,\n\t\t * grams conversion to grams is defined in our converter **/\n\t\tJSONObject res = PortionRequestGen.readJsonFromUrl(\"https://api.nal.usda.gov/ndb/reports/?ndbno=45094075&type=b&format=json&api_key=Unjc2Z4luZu0sKFBGflwS7cnxEiU83YygiIU37Ul\");\n\t\tassertEquals((double)2/8,PortionSearchEngine.ComputeRate(\"bacon\",\"grams\",res.getJSONObject(\"report\").getJSONObject(\"food\").getString(\"name\"),\n\t\t\t\t\t\tPortionSearchEngine.CheckConvertions(\"grams\",2)>=0),0.01);\n\t\t\n\t\t/** an example for a pre-defined non-trivial conversion in the converter,\n\t\t * for SOLID foods,\n\t\t * ounces conversion to grams is defined in our converter **/\n\t\tres = PortionRequestGen.readJsonFromUrl(\"https://api.nal.usda.gov/ndb/reports/?ndbno=45094075&type=b&format=json&api_key=Unjc2Z4luZu0sKFBGflwS7cnxEiU83YygiIU37Ul\");\n\t\tassertEquals(1+(double)2/8,PortionSearchEngine.ComputeRate(\"bacon\",\"ounce\",res.getJSONObject(\"report\").getJSONObject(\"food\").getString(\"name\"),\n\t\t\t\t\t\tPortionSearchEngine.CheckConvertions(\"ounce\",2)>=0),0.01);\n\t\t\n\t\t/** an example for a pre-defined non-trivial conversion in the converter,\n\t\t * for Liquid foods,\n\t\t * cup conversion to Liters is defined in our converter **/\n\t\tres = PortionRequestGen.readJsonFromUrl(\"https://api.nal.usda.gov/ndb/reports/?ndbno=45240964&type=b&format=json&api_key=Unjc2Z4luZu0sKFBGflwS7cnxEiU83YygiIU37Ul\");\n\t\tassertEquals(1+(double)3/7,PortionSearchEngine.ComputeRate(\"tea\",\"cup\",res.getJSONObject(\"report\").getJSONObject(\"food\").getString(\"name\"),\n\t\t\t\t\t\tPortionSearchEngine.CheckConvertions(\"cups\",2)>=0),0.01);\n\t\t\n\t\t/** an example for non-defined conversion in the converter:\n\t\t * a soda \"can\" is not defined in converter, neither towards liters nor grams **/\n\t\tres = PortionRequestGen.readJsonFromUrl(\"https://api.nal.usda.gov/ndb/reports/?ndbno=14145&type=b&format=json&api_key=Unjc2Z4luZu0sKFBGflwS7cnxEiU83YygiIU37Ul\");\n\t\tassertEquals((double)1/7,PortionSearchEngine.ComputeRate(\"sprite\",\"can\",res.getJSONObject(\"report\").getJSONObject(\"food\").getString(\"name\"),\n\t\t\t\t\t\tPortionSearchEngine.CheckConvertions(\"can\",2)>=0),0.01);\n\t}", "@Test\n @Tag(\"slow\")\n public void testSHIP04L() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSHIP08L() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }", "@Test\n public void testDAM31501001() {\n //\n testDAM30201001();\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPEROLD() {\n CuteNetlibCase.doTest(\"PEROLD.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPDS_10() {\n CuteNetlibCase.doTest(\"PDS-10.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testDFL001() {\n CuteNetlibCase.doTest(\"DFL001.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSHIP04S() {\n CuteNetlibCase.doTest(\"SHIP04S.SIF\", \"1798714.7004453915\", null, NumberContext.of(7, 4));\n }", "@Test\n public void testDAM31102001() {\n testDAM31001001();\n }", "@Test\n @Tag(\"slow\")\n public void testSCSD8() {\n CuteNetlibCase.doTest(\"SCSD8.SIF\", \"905\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSCTAP3() {\n CuteNetlibCase.doTest(\"SCTAP3.SIF\", \"1424.000000000573\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testFIT2P() {\n CuteNetlibCase.doTest(\"FIT2P.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "public UnitTestData() throws Exception {\n String[] runsData = {\n \"1,1,A,1,No,No,4\", // 0 (a No before first yes Security Violation)\n \"2,1,A,1,No,No,2\", // 0 (a No before first yes Compilation Error)\n \"3,1,A,1,No,No,1\", // 20 (a No before first yes)\n \"4,1,A,3,Yes,No,0\", // 3 (first yes counts Minute points but never Run Penalty points)\n \"5,1,A,5,No,No,1\", // zero -- after Yes\n \"6,1,A,7,Yes,No,0\", // zero -- after Yes\n \"7,1,A,9,No,No,1\", // zero -- after Yes\n \"8,1,B,11,No,No,1\", // zero -- not solved\n \"9,2,A,48,No,No,4\", // 0 (a No before first yes Security Violation)\n \"10,2,A,50,Yes,No,0\", // 50 (minute points; no Run points on first Yes)\n \"11,2,B,35,No,No,1\", // zero -- not solved\n \"12,2,B,40,No,No,1\", // zero -- not solved\n };\n\n // Assign half eams random team member names\n addTeamMembers(contest, getTeamAccounts(contest).length / 2, 5);\n\n assertEquals(\"Expectig team member names\", 5, getFirstAccount(contest, Type.TEAM).getMemberNames().length);\n\n assertEquals(\"team count\", 120, contest.getAccounts(Type.TEAM).size());\n\n for (String runInfoLine : runsData) {\n SampleContest.addRunFromInfo(contest, runInfoLine);\n }\n\n Problem problem = contest.getProblems()[0];\n Account judge = getFirstAccount(contest, Type.JUDGE);\n generateClarifications(contest, 20, problem, judge.getClientId(), false, false);\n generateClarifications(contest, 20, problem, judge.getClientId(), true, false);\n generateClarifications(contest, 20, problem, judge.getClientId(), true, true);\n\n sampleContest.assignSampleGroups(contest, \"North Group\", \"South Group\");\n\n assertEquals(\"Runs\", 12, contest.getRuns().length);\n\n }", "@Test\n @Tag(\"slow\")\n public void testSHIP08S() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }", "public static void testISPIssuesPlanMetrics(){\r\n\t\ttry {\r\n\t\t\tLogFunctions.generateLogsDirectory();\t\r\n\t\t\t\r\n\t\t\tGlobalVariables.steps = 0;\r\n\t\t\tGlobalVariables.testCaseId = \"REST004_ISPIssuesPlanMetrics\";\r\n\t\t\t\r\n\t\t\t// Create Log Files\r\n\t\t\tGlobalVariables.testResultLogFile = LogFunctions.generateLogFile(GlobalVariables.logFile + \"_\"+ GlobalVariables.testCaseId + \".log\");\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlanMetrics Execution Started\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") REST004_ISPIssuesPlanMetrics Execution Started\");\r\n\t\t\t\r\n\t\t\t// For managing SSL connections\r\n\t\t\tConfigurations.validateTrustManager();\r\n\t\t\t\r\n\t\t\t// Reading input data from CSV File\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getTestData(\"REST004_ISPIssues.csv\");\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Reading Data From CSV File\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Reading Data From CSV File\");\r\n\r\n\t\t\t// Send Request\r\n\t\t\tString data =GlobalVariables.testData.get(\"api\")+\"/version/\"+GlobalVariables.testData.get(\"versionNumber\")+\"/issues\";\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.sendRequest(data);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Sending Request\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Request Sent\");\r\n\t\t\t\r\n\t\t\t// Receive Response in XML File (response.xml)\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getResponse();\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Getting Response\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Response Received\");\r\n\t\t\t\r\n\t\t\t// Assertion: Verify that Plan Metrics\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tboolean planAgentResult;\r\n\t\t\t// Verify Count Name\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"count\",\"type\",GlobalVariables.testData.get(\"countType\"));\t\r\n\t\t\tAssert.assertEquals(\"Count type is\",true,planAgentResult);\r\n\t\t\t// Verify Count Value\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"count\",\"value\",GlobalVariables.testData.get(\"countValue\"));\t\r\n\t\t\tAssert.assertEquals(\"Count Value is\",true,planAgentResult);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Plan Summary Assertion Pass\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Pass\");\r\n\t\t\t\r\n\t\t\t// Execution Completed\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlanMetrics Execution Completed\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps+ \") Test Case : REST004_ISPIssuesPlanMetrics Execution Completed\");\r\n\t\t\t\r\n\t\t}catch (AssertionError ar) {\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\")Assertion Failed : \");\r\n\t\t\tar.printStackTrace();\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Failed\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogFunctions.logException(e.getMessage());\r\n\t\t}\r\n\t}", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testGREENBEB() {\n CuteNetlibCase.doTest(\"GREENBEB.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_D() {\n CuteNetlibCase.doTest(\"CRE-D.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_B() {\n CuteNetlibCase.doTest(\"CRE-B.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void testingTheSixFlatbed2017Order() {\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testTRUSS() {\n CuteNetlibCase.doTest(\"TRUSS.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSHIP12L() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSTANDGUB() {\n CuteNetlibCase.doTest(\"STANDGUB.SIF\", \"1257.6995\", null, NumberContext.of(7, 4));\n }", "private static int benchmarkedMethod() {\n return 3;\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSHIP12S() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }", "public static void main(String[] args) { \n\t\tint[] try1 = new int[1000000000];\n\t\tRandom rand = new Random();\n\t\tfor(int i = 0; i < try1.length; i++) {\n\t\t\ttry1[i] = rand.nextInt();\n\t\t}\n // System.out.println(toString1(try1));\n\t\tLong startTime = new Long(System.currentTimeMillis());\n\t\tquickSortIn(try1, 0, try1.length - 1, 20);\n\t\tLong endTime = new Long(System.currentTimeMillis());\n\t\tSystem.out.println(endTime.intValue() - startTime.intValue());\n // System.out.println(toString1(try1));\n\n\n // Which test to run?\n\t // test();\n\t // test2();\n\t // test3();\n\t // test4();\n\t\n\t}", "public void testSubResults() throws Exception {\n SampleResult resWithSubResults = new SampleResult(); \n\n long beginTest = System.currentTimeMillis();\n \n resWithSubResults.sampleStart();\n Thread.sleep(100);\n resWithSubResults.setBytes(300);\n resWithSubResults.setSampleLabel(\"sample with two subresults\");\n resWithSubResults.setSuccessful(true);\n resWithSubResults.sampleEnd();\n long sampleWithSubResultsTime = resWithSubResults.getTime();\n \t\n // Sample with no sub results, simulates an image download\n SampleResult resNoSubResults1 = new SampleResult(); \n resNoSubResults1.sampleStart();\n Thread.sleep(100);\n resNoSubResults1.setBytes(100);\n resNoSubResults1.setSampleLabel(\"sample with no subresults\");\n resNoSubResults1.setSuccessful(true);\n resNoSubResults1.sampleEnd();\n long sample1Time = resNoSubResults1.getTime();\n\n assertTrue(resNoSubResults1.isSuccessful());\n assertEquals(100, resNoSubResults1.getBytes());\n assertEquals(\"sample with no subresults\", resNoSubResults1.getSampleLabel());\n assertEquals(1, resNoSubResults1.getSampleCount());\n assertEquals(0, resNoSubResults1.getSubResults().length);\n \n // Sample with no sub results, simulates an image download \n SampleResult resNoSubResults2 = new SampleResult(); \n resNoSubResults2.sampleStart();\n Thread.sleep(100);\n resNoSubResults2.setBytes(200);\n resNoSubResults2.setSampleLabel(\"sample with no subresults\");\n resNoSubResults2.setSuccessful(true);\n resNoSubResults2.sampleEnd();\n long sample2Time = resNoSubResults2.getTime();\n\n long overallTime = System.currentTimeMillis() - beginTest;\n \n assertTrue(resNoSubResults2.isSuccessful());\n assertEquals(200, resNoSubResults2.getBytes());\n assertEquals(\"sample with no subresults\", resNoSubResults2.getSampleLabel());\n assertEquals(1, resNoSubResults2.getSampleCount());\n assertEquals(0, resNoSubResults2.getSubResults().length);\n \n // Now add the subsamples to the sample\n resWithSubResults.addSubResult(resNoSubResults1);\n resWithSubResults.addSubResult(resNoSubResults2);\n assertTrue(resWithSubResults.isSuccessful());\n assertEquals(600, resWithSubResults.getBytes());\n assertEquals(\"sample with two subresults\", resWithSubResults.getSampleLabel());\n assertEquals(1, resWithSubResults.getSampleCount());\n assertEquals(2, resWithSubResults.getSubResults().length);\n long totalTime = resWithSubResults.getTime();\n \n // Check the sample times\n long allsamplesTime = sampleWithSubResultsTime + sample1Time + sample2Time;\n if (totalTime < allsamplesTime) {\n \tfail(\"Total: \"+totalTime+\" < sum(samples): \"+ allsamplesTime);\n }\n if (totalTime > overallTime) {\n \tfail(\"Total: \"+totalTime+\" > overall time: \"+ overallTime);\n }\n \n // Check that calculator gets the correct statistics from the sample\n Calculator calculator = new Calculator();\n calculator.addSample(resWithSubResults);\n assertEquals(600, calculator.getTotalBytes());\n assertEquals(1, calculator.getCount());\n assertEquals(1d / (totalTime / 1000d), calculator.getRate(),0.0001d); // Allow for some margin of error\n // Check that the throughput uses the time elapsed for the sub results\n assertFalse(1d / (sampleWithSubResultsTime / 1000d) <= calculator.getRate());\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testNESM() {\n CuteNetlibCase.doTest(\"NESM.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPILOT_JA() {\n CuteNetlibCase.doTest(\"PILOT-JA.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void testRobustnessRegisterKyc(){\n for (int i = 0; i < 100; i++){\n UserRegisterKYC userRegisterKyc = new UserRegisterKYC(RandomInput.randomString(), RandomInput.randomString(), RandomInput.randomString(), RandomInput.randomString());\n int requestResponse = userRegisterKyc.sendRegisterRequest();\n assertFalse(requestResponse==200);\n }\n }", "@Test\n @Tag(\"slow\")\n public void testSTANDATA() {\n CuteNetlibCase.doTest(\"STANDATA.SIF\", \"1257.6995\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCYCLE() {\n CuteNetlibCase.doTest(\"CYCLE.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD6CUBE() {\n CuteNetlibCase.doTest(\"D6CUBE.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Ignore\n @Test\n public void run_RL() {\n String configfile = \"C:\\\\Users\\\\gomes\\\\Desktop\\\\traffic_master\\\\n_Capstone_0426_9000.xml\";\n\n float duration = 3600f;\n float outdt = 300f;\n\n // Load ..............................\n api.OTM otm = null;\n\n try {\n otm = new api.OTM(configfile);\n\n// // Output requests .....................\n// List<Long> list_orig_link_ids = otm.scenario.get_link_ids();\n// otm.output.request_links_flow(null, list_orig_link_ids, outdt);\n// otm.output.request_links_veh(null, list_orig_link_ids, outdt);\n//\n// List<Long> ramp_ids = new ArrayList<>();\n// for(ActuatorInfo act_info : otm.scenario.get_actuators())\n// ramp_ids.add(act_info.target.getId());\n\n// ControllerCapacity controller = (ControllerCapacity) otm.scenario.get_actual_controller_with_id(1);\n\n // Qtable loop\n\n double[] sum_vehicles = new double[6];\n double[] sum_flow = new double[6];\n\n// for( int i=0 ; i<6 ; i++){\n//\n// // update control\n// for(Long ramp_id : ramp_ids) {\n// float rate_ramp = i*300f;\n// controller.set_rate_vph_for_actuator(ramp_id, rate_ramp);\n// }\n//\n// System.out.println(\"i=\" + i);\n//\n// otm.run(0,duration);\n//\n// // extract output .........................\n// sum_vehicles[i] = 0d;\n// sum_flow[i] = 0d;\n//\n// for(AbstractOutput output : otm.output.get_data()){\n//\n// if (output instanceof LinkFlow){\n//\n// for(Long link_id : list_orig_link_ids) {\n// Profile1D profile = ((LinkFlow) output).get_flow_profile_for_link_in_vph(link_id);\n// List<Double> values = profile.get_values();\n// // System.out.println(String.format(\"LinkFlow: id=%d num_values=%d\",link_id,values.size()));\n//\n// sum_flow[i] += values.stream().mapToDouble(x->x).sum();\n// }\n// }\n//\n//\n// if (output instanceof LinkVehicles) {\n// for(Long link_id : list_orig_link_ids) {\n// Profile1D profile = ((LinkVehicles) output).get_profile_for_linkid(link_id);\n// List<Double> values = profile.get_values();\n// // System.out.println(String.format(\"LinkVehicles: id=%d num_values=%d\",link_id,values.size()));\n//\n// sum_vehicles[i] += values.stream().mapToDouble(x->x).sum();\n// }\n// }\n//\n// }\n//\n// System.out.println(i + \"\\t\" + sum_flow[i] + \"\\t\" + sum_vehicles[i]);\n//\n// // do some Qtable calculation\n\n\n\n// }\n } catch (OTMException e) {\n e.printStackTrace();\n }\n\n }", "@Test\n @Tag(\"slow\")\n public void testSCSD6() {\n CuteNetlibCase.doTest(\"SCSD6.SIF\", \"50.5\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testWOOD1P() {\n CuteNetlibCase.doTest(\"WOOD1P.SIF\", \"1.44290241157344\", \"9.99999999999964\", NumberContext.of(7, 4));\n }", "public static void run()\n {\n String[] testInput = FileIO.readAsStrings(\"2020/src/day17/Day17TestInput.txt\");\n String[] realInput = FileIO.readAsStrings(\"2020/src/day17/Day17Input.txt\");\n\n Test.assertEqual(\"Day 17 - Part A - Test input\", partA(testInput), 112);\n Test.assertEqual(\"Day 17 - Part A - Challenge input\", partA(realInput), 384);\n Test.assertEqual(\"Day 17 - Part B - Test input\", partB(testInput), 848);\n Test.assertEqual(\"Day 17 - Part B - Challenge input\", partB(realInput), 2012);\n }", "@Test\n @Tag(\"slow\")\n public void testSCFXM3() {\n CuteNetlibCase.doTest(\"SCFXM3.SIF\", \"54901.2545497515\", null, NumberContext.of(7, 4));\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testBNL1() {\n CuteNetlibCase.doTest(\"BNL1.SIF\", \"1977.629561522682\", \"1977.629561522682\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testWOODW() {\n CuteNetlibCase.doTest(\"WOODW.SIF\", \"1.30447633308416\", \"6.463675062936\", NumberContext.of(7, 4));\n }", "@Test\n public void test() throws Exception {\n// diversifiedRankingxPM2()\n diversifiedRankingxQuAD();\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testMAROS_R7() {\n CuteNetlibCase.doTest(\"MAROS-R7.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPILOT87() {\n CuteNetlibCase.doTest(\"PILOT87.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testPDS_02() {\n CuteNetlibCase.doTest(\"PDS-02.SIF\", \"2.885786201E10\", \"2.931365171E10\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(enabled = true, retryAnalyzer=RetryAnalyzer.class)\r\n\tpublic void testParkingBookingPreparationTimeAndCleanupNotConsidered() throws IOException{\r\n\t\tReporter.log(\"<span style='font-weight:bold;color:#000033'> \"\r\n\t\t\t\t+ \"C118064: Preparation and Cleanup time should not be considered while calculating Total Cost in Parking reservation\", true);\r\n\r\n\t\t int random = (int)(Math.random() * 10)+24;\r\n\t\t String date = this.getFutureDate(random);\r\n\t\t String region = \"1preRgRef\";\r\n\t\t String from = \"18:00\";\r\n\t\t String until = \"19:00\";\r\n\t\t String prakingResv = \"prePrkDefRef\";\r\n\t\t String prepTime = \"00:30\";\r\n\t\t String cleanupTime = \"00:30\";\r\n\t\t String responsible=getUserLastNameOfLoggedInUser();\r\n\r\n\t\t SoftAssert softAssert = new SoftAssert();\r\n\t\t softAssert.setMethodName(\"testParkingBookingPreparationTimeAndCleanupNotConsidered\");\r\n\t\t \r\n\t\t expandAdministration();\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t expandSubMainMenu(\"Reservation\");\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t waitAndClick(XPATH_NEWRESERVATIONS);\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t //C118064\r\n\t\t setRegion(region);\r\n\t\t setDate(date);\r\n\t\t setTimeFrom(from);\r\n\t\t setTimeUntil(until);\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t clickParkingTab();\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t clickSearch();\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t clickLaunchReservation(prakingResv);\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t setTimePrepareFromReservationPanel(prepTime);\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t setTimeCleanupFromReservationPanel(cleanupTime);\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t setResponsible(responsible);\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t clickSummaryTab();\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t String getSummaryText = getItemDetailsFromReservationSummary(prakingResv);\r\n\t\t softAssert.assertTrue( getSummaryText.contains(\"1 h x 4.00 EUR\"),\"Total cost is calculated without considering Prepare/Cleanup time\");\r\n\t\t softAssert.assertTrue(getSummaryTitle().contains(\"4.04 EUR\"),\"summary title is ok before adding additional Equipment, Vehicles & Parking\");\r\n\t}", "@Test(timeout = 10000)\n\tpublic void simpleTest() throws IOException, ExampleSubmissionException, InterruptedException {\n\n\t\tIterable<Example> examples = getExamples(\"One\", \"Two\", \"Three\");\n\n\t\tInputStream predictionInputStream = getPredictionInputStream(\"1\", \"2\", \"3\");\n\n\t\tSocket socket = mock(Socket.class);\n\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\t\twhen(socket.getOutputStream()).thenReturn(outputStream);\n\t\twhen(socket.getInputStream()).thenReturn(predictionInputStream);\n\n\t\tTCPIPSocketFactory socketFactory = mock(TCPIPSocketFactory.class);\n\t\twhen(socketFactory.getSocket()).thenReturn(socket);\n\n\t\tAsyncFailFastTCPIPExampleProcessor toTest = new AsyncFailFastTCPIPExampleProcessor(socketFactory, Executors.newCachedThreadPool(), examples);\n\n\t\texpectedNumberOfSkippedExamples = 0;\n\t\texpectedNumberOfSubmittedExamples = 3;\n\t\texpectedStateOnExampleSubmissionComplete = ExampleSubmissionState.Complete;\n\t\texpectedStateOnPredictionFetchComplete = PredictionFetchState.Complete;\n\n\t\tIterable<Prediction> predictions = toTest.submitExamples(this).getPredictionsIterable();\n\n\t\tint x = 0;\n\n\t\tfor (Prediction p : predictions) {\n\n\t\t\tswitch (x++) {\n\n\t\t\t\tcase 0:\n\t\t\t\t\tAssert.assertEquals(\"1\", p.getVWStringRepresentation());\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 1:\n\t\t\t\t\tAssert.assertEquals(\"2\", p.getVWStringRepresentation());\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 2:\n\t\t\t\t\tAssert.assertEquals(\"3\", p.getVWStringRepresentation());\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tAssert.fail(\"Too many predictions!\");\n\t\t\t}\n\t\t}\n\n\t\tAssert.assertEquals(3, x);\n\n\t\tboolean succeeded = countDownLatch.await(9, TimeUnit.SECONDS); //wait till the example thread is done as well.\n\n\t\tAssert.assertTrue(\"Waited for longer than 9 seconds!!\", succeeded);\n\n\t\t//check that all examples got there\n\t\tBufferedReader bReader = new BufferedReader(new StringReader(new String(outputStream.toByteArray())));\n\n\t\tx = 0;\n\t\tString line = null;\n\t\twhile ((line = bReader.readLine()) != null) {\n\n\t\t\tswitch (x++) {\n\n\t\t\t\tcase 0:\n\t\t\t\t\tAssert.assertEquals(\"One\", line);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 1:\n\t\t\t\t\tAssert.assertEquals(\"Two\", line);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 2:\n\t\t\t\t\tAssert.assertEquals(\"Three\", line);\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tAssert.fail(\"Too many examples!\");\n\t\t\t}\n\n\t\t}\n\n\t\tAssert.assertEquals(3, x);\n\n\t\tverify(socketFactory, times(1)).getSocket();\n\t\tverify(socket, times(1)).getInputStream();\n\t\tverify(socket, times(1)).getOutputStream();\n\t\tverify(socket, times(1)).shutdownOutput();\n\t\tverify(socket, times(1)).close();\n\n\t\t//no exceptions should have been thrown\n\t\tAssert.assertFalse(exampleReadExceptionThrown);\n\t\tAssert.assertFalse(exampleFormatExceptionThrown);\n\t\tAssert.assertFalse(exampleSubmissionExceptionThrown);\n\t\tAssert.assertFalse(predictionFetchExceptionThrown);\n\n\t\t//the completion call backs should have been fired\n\t\tAssert.assertTrue(exampleSubmissionCompleteCalled);\n\t\tAssert.assertTrue(predictionFetchCompleteCalled);\n\n\t}", "@Test\n public void testRandomSeries() {\n\tlong overallStart = System.currentTimeMillis();\n for (long a = Short.MIN_VALUE ; a <= Short.MAX_VALUE; a+= random.nextInt(300) + 113) {\n for (long b = Short.MAX_VALUE; b >= Short.MIN_VALUE; b-= random.nextInt(300) + 113) {\n\t\tlong start = System.currentTimeMillis();\n\t\tint ua = (int)(a + Short.MAX_VALUE + 1),\n\t\t\tub = (int)(b + Short.MAX_VALUE + 1);\n verify(ua, ub, false);\n verify(a, b, true);\n\t\tlong end = System.currentTimeMillis();\n\t\tSystem.out.println(\"a \" + a + \"b \" + b + \": \" + (end - start) + \"ms\");\n }\n }\n\tlong overallEnd = System.currentTimeMillis();\n\tSystem.out.println(\"Test Duration: \" + ((overallEnd - overallStart) / 1000) + \"s\");\n }", "protected TestBench() {}", "@Test\n\tpublic void testFindEmployeeOrders() {\n\t\tSystem.out.println(\"started test testFindEmployeeOrders\");\n\t\tlong start = System.currentTimeMillis();\n\t\tFlux<Order> empFoundOrders = employeeController.findEmployeeOrders(employee.getAge()).take(10);\n\t\tStepVerifier.create(empFoundOrders)\n\t\t\t\t\t.expectSubscription()\n\t\t\t\t\t.expectNextCount(10)\n\t\t\t\t\t.verifyComplete();\n\t\tlong end = System.currentTimeMillis();\n\t\tdouble totatSeconds = (end-start)/1000;\n\t\tSystem.out.println(\"completed test testFindEmployeeOrders in time \"+totatSeconds);\n\t}", "private boolean doTestsPass()\r\n {\r\n return minimalSteps(\"ABCDABCE\") == 8 && minimalSteps(\"ABCABCE\") == 5;\r\n }", "@Test(invocationCount=1,skipFailedInvocations=false)\n public void testDemo() throws TimeOut{\n \tMentalStateManager msmAgent1_0DeploymentUnitByType3=MSMRepository.getInstance().waitFor(\"Agent1_0DeploymentUnitByType3\");\n \t \t\t\t\n \t// wait for Agent1_0DeploymentUnitByType2 to initialise\n \tMentalStateManager msmAgent1_0DeploymentUnitByType2=MSMRepository.getInstance().waitFor(\"Agent1_0DeploymentUnitByType2\");\n \t \t\t\t\n \t// wait for Agent0_0DeploymentUnitByType1 to initialise\n \tMentalStateManager msmAgent0_0DeploymentUnitByType1=MSMRepository.getInstance().waitFor(\"Agent0_0DeploymentUnitByType1\");\n \t \t\t\t\n \t// wait for Agent0_0DeploymentUnitByType0 to initialise\n \tMentalStateManager msmAgent0_0DeploymentUnitByType0=MSMRepository.getInstance().waitFor(\"Agent0_0DeploymentUnitByType0\");\n \t\n \t\n \tGenericAutomata ga=null;\n \tga=new GenericAutomata();\n\t\t\t\n\t\t\tga.addInitialState(\"default_WFTestInitialState0\");\t\t\n\t\t\t\n\t\t\tga.addInitialState(\"default_WFTestInitialState1\");\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tga.addFinalState(\"WFTestFinalState0\");\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tga.addStateTransition(\"default_WFTestInitialState0\",\"Agent0_0DeploymentUnitByType0-Task0\",\"WFTestInitialState0\");\n\t\t\t\n\t\t\tga.addStateTransition(\"WFTestInitialState0\",\"Agent1_0DeploymentUnitByType2-Task1\",\"WFTestFinalState0\");\n\t\t\t\n\t\t\tga.addStateTransition(\"default_WFTestInitialState1\",\"Agent0_0DeploymentUnitByType1-Task0\",\"WFTestInitialState1\");\n\t\t\t\n\t\t\tga.addStateTransition(\"WFTestInitialState1\",\"Agent1_0DeploymentUnitByType2-Task1\",\"WFTestFinalState0\");\n\t\t\t\t\n\t\t\t\n\t\t\tTaskExecutionValidation tev=new TaskExecutionValidation(ga);\n \t\n \ttev.registerTask(\"Agent0_0DeploymentUnitByType0\",\"Task0\");\n \t\n \ttev.registerTask(\"Agent1_0DeploymentUnitByType2\",\"Task1\");\n \t\n \ttev.registerTask(\"Agent0_0DeploymentUnitByType1\",\"Task0\");\n \t\n \ttev.registerTask(\"Agent1_0DeploymentUnitByType2\",\"Task1\");\n \t\t\n \t\t\n \tRetrieveExecutionData cwfe=new \tRetrieveExecutionData();\n \tEventManager.getInstance().register(cwfe);\n\t\tlong step=100;\n\t\tlong currentTime=0;\n\t\tlong finishedTime=0;\n\t\tlong duration=2000;\n\t\tlong maxtimepercycle=2000;\n\t\t \n\t\tMainInteractionManager.goAutomatic(); // tells the agents to start working\t\t\t\n\t\twhile (currentTime<finishedTime){\n\t\t\t\ttry {\n\t\t\t\t\tThread.currentThread().sleep(step);\n\t\t\t\t\t\n\t\t\t\t} catch (InterruptedException e) {\t\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentTime=currentTime+step;\n\t\t\t}\n\t\t\t\n\t\t\tif (currentTime<duration){\n\t\t\t\tTestUtils.doNothing(duration-currentTime); // waits for tasks to execute\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t\tMainInteractionManager.goManual(); // now it commands to not execute more tasks\t\t\n\t\t\tEventManager.getInstance().unregister(cwfe);\n\t\t\t\n\t\t Vector<String> counterExamples=tev.validatePartialTermination(cwfe,ga,maxtimepercycle);\n\t\t assertTrue(\"The execution does not match the expected sequences. I found the following counter examples \"+counterExamples,counterExamples.isEmpty());\t\t\n\t\t\t\t\t\t\t\n }", "@Test(timeout = 4000)\n public void test20() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(Hu\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer0);\n stringReader0.reset();\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer4 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer5 = new StreamTokenizer(stringReader0);\n streamTokenizer0.commentChar((-4));\n StreamTokenizer streamTokenizer6 = new StreamTokenizer(stringReader0);\n streamTokenizer6.ordinaryChars((-1), (-322070664));\n streamTokenizer1.parseNumbers();\n jSTerm0.add((Object) \"JSTerm: Error reading control parameters: \");\n StreamTokenizer streamTokenizer7 = new StreamTokenizer(stringReader0);\n streamTokenizer7.pushBack();\n streamTokenizer1.nextToken();\n StreamTokenizer streamTokenizer8 = new StreamTokenizer(stringReader0);\n streamTokenizer2.slashSlashComments(false);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer5);\n streamTokenizer1.slashStarComments(false);\n streamTokenizer3.eolIsSignificant(false);\n streamTokenizer7.commentChar((-4));\n StreamTokenizer streamTokenizer9 = new StreamTokenizer(stringReader0);\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n jSSubstitution0.listIterator();\n JSSubstitution jSSubstitution1 = jSTerm1.matches((JSPredicateForm) jSTerm0, jSSubstitution0);\n assertTrue(jSSubstitution1.fail());\n }", "public void soaktest() {\n\t\ttry {\n\t\t\tint errCount = 0;\n\n\t\t\tfor (int i = 1; i <= 100; i++) {\n\t\t\t\tRegression test = new Regression();\n\t\t\t\ttest0();\n\t\t\t\ttest.test1(m1);\n\t\t\t\ttest.test2(m1);\n\t\t\t\ttest.test3(m1);\n\t\t\t\ttest.test4(m1);\n\t\t\t\ttest.test5(m1);\n\t\t\t\ttest.test6(m1);\n\t\t\t\ttest.test7(m1, m2);\n\t\t\t\ttest.test8(m1);\n\t\t\t\ttest.test9(m2);\n\t\t\t\ttest.test10(m3);\n\t\t\t\ttest.test11(m1, m2);\n\t\t\t\ttest.test12(m1);\n\t\t\t\ttest.test13(m1);\n\t\t\t\ttest.test14(m1);\n\t\t\t\ttest.test15(m1);\n\t\t\t\ttest.test16(m1);\n\t\t\t\ttest.test17(m1);\n\t\t\t\ttest.test18(m4);\n\t\t\t\ttest.test19(m2, m3);\n\t\t\t\ttest.test97(m1);\n\t\t\t\tif (test.getErrors())\n\t\t\t\t\terrCount++;\n\t\t\t\tif ((i % 10) == 0) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"error count = \" + errCount + \" rounds = \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\tassertTrue(false);\n\t\t}\n\t}", "@Test\r\n\tpublic void executionTest() throws Exception {\n\t\tOperationalEnvDistributionStatus operEnvDistStatusObj = new OperationalEnvDistributionStatus();\r\n\t\toperEnvDistStatusObj.setServiceModelVersionId(serviceModelVersionId);\r\n\t\toperEnvDistStatusObj.setDistributionId(asdcDistributionId);\r\n\t\toperEnvDistStatusObj.setOperationalEnvId( operationalEnvironmentId);\r\n\t\toperEnvDistStatusObj.setDistributionIdStatus(DistributionStatus.DISTRIBUTION_COMPLETE_OK.toString());\r\n\t\toperEnvDistStatusObj.setRequestId(requestId);\r\n\t\t\r\n\t\t// ServiceModelStatus - getOperationalEnvServiceModelStatus\r\n\t\tOperationalEnvServiceModelStatus operEnvServiceModelStatusObj = new OperationalEnvServiceModelStatus();\r\n\t\toperEnvServiceModelStatusObj.setRequestId(requestId);\r\n\t\toperEnvServiceModelStatusObj.setOperationalEnvId(operationalEnvironmentId);\r\n\t\toperEnvServiceModelStatusObj.setServiceModelVersionDistrStatus(DistributionStatus.DISTRIBUTION_COMPLETE_OK.toString());\r\n\t\toperEnvServiceModelStatusObj.setRecoveryAction(recoveryAction);\r\n\t\toperEnvServiceModelStatusObj.setRetryCount(retryCount);\r\n\t\toperEnvServiceModelStatusObj.setWorkloadContext(workloadContext);\r\n\t\toperEnvServiceModelStatusObj.setServiceModelVersionId(serviceModelVersionId);\r\n\t\tList<OperationalEnvServiceModelStatus> queryServiceModelResponseList = new ArrayList<OperationalEnvServiceModelStatus>();\r\n\t\tqueryServiceModelResponseList.add(operEnvServiceModelStatusObj);\r\n\t\t\r\n\t\t// prepare distribution obj\r\n\t\tDistribution distribution = new Distribution();\r\n\t\tdistribution.setStatus(Status.DISTRIBUTION_COMPLETE_OK);\r\n\t\trequest.setDistribution(distribution);\r\n\t\trequest.setDistributionId(asdcDistributionId);\r\n\t\t\r\n\t\t// prepare asdc return data\r\n\t\tString jsonPayload = asdcClientUtils.buildJsonWorkloadContext(workloadContext);\r\n\t\r\n\t\tJSONObject jsonObject = new JSONObject();\r\n\t\tjsonObject.put(\"statusCode\", \"202\");\r\n\t\tjsonObject.put(\"message\", \"Success\");\r\n\t\tjsonObject.put(\"distributionId\", asdcDistributionId);\r\n\t\t\r\n\t\t// Mockito mock\r\n\t\tOperationalEnvDistributionStatusDb distributionDb = Mockito.mock(OperationalEnvDistributionStatusDb.class);\r\n\t\tOperationalEnvServiceModelStatusDb serviceModelDb = Mockito.mock(OperationalEnvServiceModelStatusDb.class);\r\n\t\tRequestsDBHelper dbUtils = mock(RequestsDBHelper.class);\r\n\t\tAsdcClientHelper asdcClientHelperMock = Mockito.mock(AsdcClientHelper.class);\r\n\t\tRESTConfig configMock = Mockito.mock(RESTConfig.class);\r\n\t\tRESTClient clientMock = Mockito.mock(RESTClient.class);\r\n\t\tAPIResponse apiResponseMock = Mockito.mock(APIResponse.class);\t\t\r\n\t\r\n\t\tMockito.when(asdcClientHelperMock.setRestClient(configMock)).thenReturn(clientMock);\r\n\t\tMockito.when(asdcClientHelperMock.setHttpPostResponse(clientMock, jsonPayload)).thenReturn(apiResponseMock);\r\n\t\tMockito.when(asdcClientHelperMock.enhanceJsonResponse(jsonObject, 202)).thenReturn(jsonObject);\t\t\r\n\t\tMockito.when(asdcClientHelperMock.postActivateOperationalEnvironment(serviceModelVersionId, operationalEnvironmentId, workloadContext)).thenReturn(jsonObject);\t\t\r\n\t\t\r\n\t\tMockito.when(distributionDb.getOperationalEnvDistributionStatus(asdcDistributionId)).thenReturn(operEnvDistStatusObj);\r\n\t\tMockito.when(serviceModelDb.getOperationalEnvServiceModelStatus(operationalEnvironmentId, serviceModelVersionId)).thenReturn(operEnvServiceModelStatusObj);\t\t\r\n\t\tMockito.when(serviceModelDb.getOperationalEnvIdStatus(operationalEnvironmentId, requestId)).thenReturn(queryServiceModelResponseList);\t\t\r\n\t\t\r\n\t\tint row = 1;\r\n\t\tMockito.when(distributionDb.updateOperationalEnvDistributionStatus(distribution.getStatus().toString(), asdcDistributionId, operationalEnvironmentId, serviceModelVersionId)).thenReturn(row);\r\n\t\tMockito.when(serviceModelDb.updateOperationalEnvRetryCountStatus(operationalEnvironmentId, serviceModelVersionId, distribution.getStatus().toString(), 0)).thenReturn(row);\r\n\t\t\r\n\t\tdoNothing().when(dbUtils).updateInfraSuccessCompletion(any(String.class), any(String.class), any(String.class));\r\n\t\t\r\n\t\trequest.setOperationalEnvironmentId(operationalEnvironmentId);\r\n\t\tActivateVnfStatusOperationalEnvironment activateVnfStatus = new ActivateVnfStatusOperationalEnvironment(request, requestId);\r\n\t\tActivateVnfStatusOperationalEnvironment activateVnfStatusMock = spy(activateVnfStatus);\r\n\t\tactivateVnfStatusMock.setOperationalEnvDistributionStatusDb(distributionDb);\r\n\t\tactivateVnfStatusMock.setOperationalEnvServiceModelStatusDb(serviceModelDb);\r\n\t\tactivateVnfStatusMock.setRequestsDBHelper(dbUtils);\t\t\r\n\t\tactivateVnfStatusMock.setAsdcClientHelper(asdcClientHelperMock);\r\n\r\n\t\tactivateVnfStatusMock.execute();\t\t\r\n\t\t\r\n\t\tverify(distributionDb, times(1)).updateOperationalEnvDistributionStatus(distribution.getStatus().toString(), asdcDistributionId, operationalEnvironmentId, serviceModelVersionId);\r\n\t\tverify(serviceModelDb, times(1)).updateOperationalEnvRetryCountStatus(operationalEnvironmentId, serviceModelVersionId, distribution.getStatus().toString(), 0);\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void runTests() throws Exception {\n\t\tArrayList<KaidaComposer> als = getCrossOverPermutationTest();\r\n//\t\tArrayList<KaidaComposer> als = getMutationProbabilityTests();\r\n\t\t\r\n\t\tsynchronized (results) {\r\n\t\t\tresults.clear();\r\n\t\t\tfor (KaidaComposer al : als) {\r\n\t\t\t\tresults.add(new TestRunGenerationStatistics(nrOfContests,nrOfGenerations,al.getLabel(),al));\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsetProgress(0f);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor (int runs = 0; runs < nrOfContests; runs++) {\r\n\t\t\t//run the test n times\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"\\nContest Nr. \" + runs + \" started\");\r\n\t\t\t\tTimer t = new Timer(\"Contest Nr. \" + runs);\r\n\t\t\t\tt.start();\r\n\t\t\t\t\r\n\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\talgorithm.restartOrTakeOver();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor (int g = 0; g < nrOfGenerations; g++) {\r\n\t\t\t\t\t//do one evolution step\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\t\tif (algorithm.isCycleCompleted()) {\r\n\t\t\t\t\t\t\talgorithm.startNextCycle();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\talgorithm.doOneEvolutionCycle();\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\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Adding to results\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).addTestRun(als.get(z).getGenerations().getRange(0,nrOfGenerations));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Calculating statistics\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\t\r\n\t\t\t\tsetProgress((double)runs/(double)(nrOfContests-1));\r\n\t\t\t\t\r\n\t\t\t\tif (pause!=0) {\r\n\t\t\t\t\tsleep(pause);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (isPleasePause()) break;\r\n\t\t\t}\r\n\t\t\tsynchronized (results) {\r\n\t\t\t\tfor (int z=0; z < als.size(); z++) { //als.size()\r\n\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetProgress(1.0f);\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t//fail(\"al threw some Exception\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n public void testRun_Complex_Execution() {\n // TODO: TBD - Exactly as done in Javascript\n }", "public void testGetConformingStimulusLargeScale() throws Exception {\n long start = System.currentTimeMillis();\n Stimulus stimulus = new MockStimulus();\n message.setConformingStimulus(stimulus);\n for (int i = 0; i < TOTAL_ITERATION; i++) {\n message.getConformingStimulus();\n }\n System.out.println(\"Calling \" + TOTAL_ITERATION + \"times getConformingStimulus method\"\n + \" costs:\" + (System.currentTimeMillis() - start) + \" ms\");\n }", "static void runIt() throws IOException {\n\t\t String inFName = \"resource/C-large.in\";\n//\t\tString outFName = \"resource/C-small.out\";\n\t\t String outFName = \"resource/C-large.out\";\n\n\t\tBufferedReader in = new BufferedReader(new FileReader(inFName));\n\t\tPrintWriter out = new PrintWriter(new File(outFName));\n\n\t\tint testCases = Integer.parseInt(in.readLine());\n\n\t\tfor (int i = 0; i < testCases; ++i) {\n\n\t\t\tString line[] = in.readLine().split(\" \");\n//\t\t\tSystem.out.println(line);\n\t\t\tStringBuilder output = new StringBuilder();\n\t\t\toutput.append(\"Case #\" + (i + 1) + \": \");\n\n\t\t\tint R = Integer.parseInt(line[0]);\n\t\t\tint K = Integer.parseInt(line[1]);\n\t\t\tlong euros = 0;\n\t\t\tint pass = 0;\n\t\t\tline = in.readLine().split(\" \");\n\t\t\tVector<Integer> queue = new Vector<Integer>();\n\t\t\tVector<Integer> first = new Vector<Integer>();\n\t\t\tfor (String string : line) {\n\t\t\t\tqueue.add(Integer.parseInt(string));\n\t\t\t\tfirst.add(Integer.parseInt(string));\n\t\t\t\t\n\t\t\t}\n\n\n\t\t\tfor (int time = 0; time < R; ++time) {\n\t\t\t\tint p = 0;\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (p < queue.size()) {\n\t\t\t\t\t\tInteger g = queue.elementAt(p++);\n\t\t\t\t\t\tif (pass + g <= K) {\n\t\t\t\t\t\t\tpass += g;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tfor (int kk = 1; kk < p; ++kk) {\n\t\t\t\t\tInteger m = queue.remove(0);\n\t\t\t\t\tqueue.add(m);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\teuros += pass;\n\t\t\t\tpass=0;\n\t\t\t\tif(queue.equals(first)){\n\t\t\t\t\tint s = R/(time+1);\n\t\t\t\t\teuros*=s;\n\t\t\t\t\ttime *=s;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\toutput.append(euros);\n\t\t\tSystem.out.println(output);\n\t\t\tout.println(output);\n\t\t}\n\n\t\tin.close();\n\t\tout.flush();\n\t\tout.close();\n\t}", "@Test(priority = 25)\n\tpublic void verifytheCountisDisplayingandUpdatingproperlyBypublishingVisitingandGeneratingLeads() throws Exception {\n\t\tOverviewTradusPROPage overviewPage = new OverviewTradusPROPage(driver);\n\t\twaitTill(3000);\n\t\t/*LoginTradusPROPage loginPage = new LoginTradusPROPage(driver);\n\t\tloginPage.setAccountEmailAndPassword(userName, pwd);\n\t\tclick(loginPage.LoginButton);*/\n\t\texplicitWaitFortheElementTobeVisible(driver, overviewPage.sellerLogoonHeader);\n\t\twaitTill(3000);\n\t\tint visitCountOnWebSite = Integer.parseInt(getText(overviewPage.visitsCountunderPopularAds));\n\t\tint leadsCountOnWebSite = Integer.parseInt(getText(overviewPage.leadsCountunderPopularAds));\n\t\twaitTill(3000);\n\t\tFile popularAdsData = new File(System.getProperty(\"user.dir\") + \"\\\\PopularAdsStats.txt\");\n\t\tif (!popularAdsData.exists()) {\n\t\t\tpopularAdsData.createNewFile();\n\t\t}\n\t\tBufferedReader br = new BufferedReader(new FileReader(popularAdsData));\n\t\tString st;int visit=0;int leads=0;\n\t\twhile ((st = br.readLine()) != null)\n\t\t{\n\t\tString[] words=st.split(\"@\");\n\t\tfor(int i=0;i<=words.length;i++) {\n\t\t\tswitch(i)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\t visit=Integer.parseInt(words[i].replace(\"Number of visits =\", \"\").trim());\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t leads=Integer.parseInt(words[i].replace(\"Number of Leads =\", \"\").trim());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t}\n\t\t//System.out.println(visit+\" \"+leads);\n\t\t\n\t\tAssert.assertTrue(visitCountOnWebSite>visit && leadsCountOnWebSite>leads, \" Visits and Leads count are not updating properly under popular Ads section\");\n\t\t\n\t\tFileWriter fw = new FileWriter(popularAdsData);\n\t\tString temp = \"Number of visits = \" + visitCountOnWebSite + \"@\";\n\t\ttemp += \"Number of Leads = \" + leadsCountOnWebSite;\n\t\tfw.write(temp);\n\t\twaitTill(3000);\n\t\tif (fw != null)\n\t\t\tfw.close();\n\t\tLeadsTradusPROPPage leadsObj=new LeadsTradusPROPPage(driver);\n\t\tleadsObj.leadsGenerationinTPRO();\n\t\t\n\t}", "@Ignore\r\n @Test\r\n public void speedTest() throws InterruptedException {\n for (int i = 0; i < 10; i++) {\r\n singleSpeedTest();\r\n }\r\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testDEGEN3() {\n CuteNetlibCase.doTest(\"DEGEN3.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void costTest() {\n // TODO: test cost\n }" ]
[ "0.6740818", "0.6647638", "0.6634811", "0.6633832", "0.6596583", "0.65554595", "0.65505695", "0.6545392", "0.6544164", "0.64976543", "0.6497617", "0.64790696", "0.64335155", "0.6424026", "0.6394095", "0.63759995", "0.63577116", "0.63393193", "0.63331693", "0.6246459", "0.62220347", "0.6212944", "0.6200851", "0.61970484", "0.6195858", "0.6169722", "0.6142222", "0.61210877", "0.6113503", "0.61091626", "0.61083657", "0.6097489", "0.6088769", "0.60884285", "0.60821396", "0.6081917", "0.60583234", "0.60534936", "0.6049098", "0.6047378", "0.60381365", "0.603078", "0.60222507", "0.60172385", "0.60080975", "0.5985763", "0.5982842", "0.598086", "0.5965532", "0.59635305", "0.59540653", "0.5953716", "0.59531593", "0.5949069", "0.5946136", "0.59431756", "0.594257", "0.5940169", "0.5938889", "0.59210503", "0.59203595", "0.591269", "0.5911885", "0.5908813", "0.59026295", "0.58999896", "0.58923024", "0.5888764", "0.5887083", "0.58851683", "0.5885065", "0.58829856", "0.5880835", "0.58763415", "0.5874899", "0.5872755", "0.5872256", "0.5871472", "0.5865412", "0.586305", "0.5861206", "0.58567107", "0.5855464", "0.5854796", "0.58531487", "0.584868", "0.5844101", "0.5839248", "0.5836706", "0.583522", "0.5831505", "0.58296037", "0.5829536", "0.5821054", "0.581549", "0.5814451", "0.58133173", "0.58116806", "0.58011967", "0.5799104", "0.57952565" ]
0.0
-1
StatusMonitor.runShell("/home/ubuntu/soft/tomcat/bin/startup.sh"); String str = runShell("moac attach ws://47.98.144.109:8756/ "); String str = runShell("moac attach ws://47.98.144.109:8756/ exec txpool.inspect"); String str1 = runShell("moac attach ws://47.98.144.109:8756/ exec txpool.inspect.pending"); String str2 = runShell("moac attach ws://47.98.144.109:8756/ exec txpool.inspect.queued"); String str3 = runShell("moac attach ws://47.98.144.109:8756/ exec txpool.inspect.pending.xxxxxxxx"); String str4 = runShell("moac attach ws://47.98.144.109:8756/ exec txpool.inspect.queued.xxxxxxxx");
public static void main(String[] arge) throws Exception { String str; // str = runShell("E:\\work\\Research\\solidity\\solc\\run\\solc.exe contracts/spcToken.sol --bin --abi -o result"); str = runShell("E:\\work\\Research\\solidity\\solc\\run\\solc.exe E:\\work\\Research\\solidity\\solc\\run\\contracts\\spcToken.sol --bin --abi " + "-o E:\\work\\Research\\solidity\\solc\\run\\result"); // str = runShell("dir"); str = FormatUtils.formatJson(str); System.out.println(str); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> chkProcess(WmiConsole wmi) throws Throwable\r\n {\n\t\twmi.getWmicProcessId();\r\n\t\t\r\n\t\tList<String> listPIDs = wmi.getGetWmiOutList();\r\n\t\t\r\n\t\t//trim list itens...\r\n\t\tfor (int i = 0; i < listPIDs.size(); i++)\r\n\t\t{ \r\n\t\t\tlistPIDs.set(i, listPIDs.get(i).trim()); \r\n\t\t}\r\n \t\r\n \treturn listPIDs;\r\n }", "private static void checkTouchpoint(DBConnection dbConnection,int id, String sshUserName, String sshUserPass, String server, boolean status) throws JSchException, IOException, InterruptedException{\n\t\t\n\t\tString owner= \"\";\t\t\n\t\tString sw = \"\";\n\t\tString swVersion= \"\";\n\t\tString os= \"\";\n\t\tString oracle= \"\";\n\t\tString jboss=\"\";\n\t\tString java=\"\";\n\t\t\t\n\t\t\n\n\t\tSSHClient tpHostSSHClient = new SSHClient();\n\t\t\n\t\tif (status){\n\t\n\t\t\t// Connect to the server\n\t\t\ttpHostSSHClient.connect(sshUserName, sshUserPass, server, SSH_PORT);\n\t\t\t\n\t\t\t//OS Version\n\t\t\tint exitCode = tpHostSSHClient.send(\"uname -a\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"uname -a failed with exit code: \" + exitCode);\n\t\t\tos = ServerStatusUtils.parseOS(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Check if Assure is installed\n\t\t\ttpHostSSHClient.send(\"cat /etc/passwd | grep assure | awk -F: '{ print $1 }'\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"cat /etc/passwd | grep assure | awk -F: '{ print $1 }' a failed with exit code: \" + exitCode);\n\t\t\tsw=ServerStatusUtils.swInstalled(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Assure Version\n\t\t\ttpHostSSHClient.send(\"assure version\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"assure version failed with exit code: \" + exitCode);\n\t\t\tswVersion=ServerStatusUtils.parseAssureVersion(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Owner\n\t\t\ttpHostSSHClient.send(\"cat /etc/motd |grep Current |cut -d \\\\[ -f 2 |cut -d \\\\] -f 1\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"Check for owner failed with exit code: \" + exitCode);\n\t\t\towner=ServerStatusUtils.parseOwner(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Oracle\n\t\t\ttpHostSSHClient.send(\"$ORACLE_HOME/bin/sqlplus -v |grep SQL\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"Check for Oracle Version failed with exit code: \" + exitCode);\n\t\t\toracle=ServerStatusUtils.parseOracle(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Jboss\n\t\t\ttpHostSSHClient.send(\" ls /opt/arantech/current/ |grep jboss- |grep -v client\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"Check for Jboss failed with exit code: \" + exitCode);\n\t\t\tjboss=ServerStatusUtils.parseJboss(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Java\n\t\t\ttpHostSSHClient.send(\"java -version\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"Check for Oracle Version failed with exit code: \" + exitCode);\n\t\t\tjava=ServerStatusUtils.parseJava(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tServerStatusUtils.statusWriter(dbConnection, id, server, (status)?\"alive\":\"stopped\", os, sw, swVersion, owner, oracle, jboss, java);\n\n\t}", "public void executeSshPassShellScript() {\n\n\t\tString executableScriptCommand = null;\n\t\tArrayList<String> sshResultArray;\n\t\tArrayList<String> listExecuteCmdArray = new ArrayList<String>();\n\t\tlistExecuteCmdArray.add(targetScriptFilePath.toString());\n\t\tlistExecuteCmdArray.add(newNode.getIpAddress());\n\t\tlistExecuteCmdArray.add(newNode.getUserName());\n\t\tlistExecuteCmdArray.add(newNode.getPassword());\n\t\tString actionCmd = createSshCommand(diskName, byteSize, blockCount );\n\t\tlog.debug(\"actionCmd :\" + actionCmd);\n\t\tlistExecuteCmdArray.add(actionCmd);\n\t\tSshpassClientConnection sshpassConn = new SshpassClientConnection();\n\t\tsshResultArray = sshpassConn.executeProcess(listExecuteCmdArray);\n\t\tlistExecuteCmdArray.remove(4);\n\t\tlistExecuteCmdArray.clear();\n\n\t}", "public static List<String> getProcessLines() {\n// SLog.d(\"getProcessLines\");\n List<String> lines = new ArrayList<>();\n Process process = null;\n Runtime runtime = Runtime.getRuntime();\n try {\n\n String cmd = \"busybox ps -e\";\n process = runtime.exec(new String[]{\"su\", \"-c\", cmd});\n InputStream is = process.getInputStream();\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n String line;\n\n while ((line = reader.readLine()) != null) {\n if(line != null && !line.isEmpty()) lines.add(line);\n }\n\n } catch (Exception e) {\n SLog.e(TAG, e.getMessage());\n e.printStackTrace();\n } finally {\n try {\n try {\n process.destroy();\n } catch (Exception e){}\n }catch (Exception e) {}\n }\n return lines;\n }", "public void Start(){\n Registry registry = null;\n try{\n for(int i=0;i<nsize;i++){\n registry= LocateRegistry.getRegistry(this.ports[i]);\n PRMI stub = (PRMI) registry.lookup(\"DCMP\");\n System.out.println(\"env calls Init to man \"+i);\n stub.InitHandler(new Request(this.id, -1, 'e'));\n D++;\n }\n\n } catch(Exception e){\n return;\n }\n return;\n }", "public void checkAndInstallPC(){\n psconfig.setAndSaveProperty(LiferayConstants.SETUP_DONE,\"true\");\n \n \n \n // logger.info(\"Trying to install PC............\");\n /* ProgressHandle handle = ProgressHandleFactory.createHandle(org.openide.util.NbBundle.getMessage(SunASStartStopListener.class, \"INSTALLING_PORTLET_CONTAINER\"));\n handle.start();\n try{\n \n \n String pcHome = psconfig.getPSHome();\n String serverHome = psconfig.getServerHome();\n \n // String pcBase = getPCBaseDir(psconfig);\n pcHome = changeToOSSpecificPath(pcHome);\n serverHome = changeToOSSpecificPath(serverHome);\n // pcBase = changeToOSSpecificPath(pcBase);\n String domainDir = psconfig.getDomainDir();\n domainDir = changeToOSSpecificPath(domainDir);\n \n \n \n \n Properties props = new Properties();\n props.setProperty(\"portlet_container_home\",pcHome);\n // props.setProperty(\"portlet_container_base\",pcBase);\n props.setProperty(\"GLASSFISH_HOME\",serverHome);\n props.setProperty(\"DOMAIN\",psconfig.getDefaultDomain());\n props.setProperty(\"AS_ADMIN_USER\",psconfig.getProperty(SunAppServerConstants.SERVER_USER));\n props.setProperty(\"AS_ADMIN_PASSWORD\",psconfig.getProperty(SunAppServerConstants.SERVER_PASSWORD));\n \n //find setup.xml\n \n File file = new File(pcHome + File.separator + \"setup.xml\");\n if(!file.exists()) {\n logger.log(Level.SEVERE,org.openide.util.NbBundle.getMessage(SunASStartStopListener.class, \"SETUP_XML_NOT_FOUND\"));\n return;\n }\n \n FileObject setUpXmlObj = FileUtil.toFileObject(file);\n \n ExecutorTask executorTask = ActionUtils.runTarget(setUpXmlObj,new String[]{\"deploy_on_glassfish\"},props);\n psconfig.setAndSaveProperty(LifeRayConstants.SETUP_DONE,\"true\");\n executorTask.waitFinished();\n \n try{\n handle.finish();\n handle = ProgressHandleFactory.createHandle(org.openide.util.NbBundle.getMessage(SunASStartStopListener.class, \"STARTING_APPSERVER\"));\n handle.start();\n }catch(Exception e){\n \n }*/\n \n //logger.info(\"Starting Glassfish Server.....\");\n /// dm.getStartServerHandler().startServer();\n \n /* }catch(Exception e){\n logger.log(Level.SEVERE,org.openide.util.NbBundle.getMessage(SunASStartStopListener.class, \"ERROR_INSTALLING_PC\"),e);\n }finally{\n handle.finish();\n }*/\n \n }", "private void initJMX() throws Exception{\n\t\tMap env = new HashMap<String, Object>();\r\n\t\tenv.put(Context.INITIAL_CONTEXT_FACTORY,\"com.sun.jndi.rmi.registry.RegistryContextFactory\");\r\n\t\tenv.put(RMIConnectorServer.JNDI_REBIND_ATTRIBUTE, \"true\");\r\n\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\tObjectName objectName=ObjectName.getInstance(\"test:name=test\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new AdminAgent(),objectName), objectName);\r\n\t\t\r\n\t\tRegion region=CacheFactory.getAnyInstance().getRegion(\"/CHECK\");\t\r\n\t\tObjectName regionObjectName=ObjectName.getInstance(\"region:name=region\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new RegionAgent(region),regionObjectName), regionObjectName);\r\n\t\tJMXConnectorServer connectorServer = JMXConnectorServerFactory\r\n\t\t.newJMXConnectorServer(url, env, ManagementFactory.getPlatformMBeanServer());\r\n connectorServer.start();\r\n\t\t\r\n//\t\tMBeanHandler.createJMXMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n//\t\tjmxserver.registerMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n\t\tSystem.out.println(\"JMX connection is established on: service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\t\r\n\t}", "public void run() {\n\t\t\t\tString command = \"psexec -u ACCUSYSARGBSAS\\\\martin.zaragoza -p Marzo2015 D:\\\\Temp\\\\testScripts\\\\a.exe a\";\n\t\t\t\tProcess process;\n\t\t\t\ttry {\n\t\t\t\t\tprocess = Runtime.getRuntime().exec(command);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tint pid = getPid(process);\n\t\t\t\t\tSystem.out.println(\"pid=\" + pid);\n\t\t\t\t\tprintStdout(process.getInputStream());\n\t\t\t\t\tThread.sleep(500);\n\n\t\t\t\t\tProcess exec = Runtime.getRuntime().exec(\"echo %errorlevel%\");\n\t\t\t\t\tprintStdout(exec.getInputStream());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public void executeCommandsForHost1Tier(String logName) throws Exception {\n\t\tSession session1 = this.host1;\n\t\tChannel channel1 = session1.openChannel(\"shell\");\n\n\t\t/* Output and Command list definition */\n\t\tops1 = channel1.getOutputStream();\n\t\tps1 = new PrintStream(ops1, true);\n\n\t\t/* Start to command burning */\n\t\tchannel1.connect();\n\n\t\tInputStream input1 = channel1.getInputStream();\n\n\t\t/** Host1 log collection side */\n\n\t\t// command lists\n\n\t\tThread.sleep(500);\n\t\tps1.println(\"./logcap.sh -c \" + logName + \"_host1\"\n\t\t\t\t+ \" -z\"); /* run script for log collection */\n\n\t\tprintResult(input1, channel1);\n\n\t}", "public String execute(){\r\n\t\t\r\n\t\tString resultHtml = null;\r\n\t\tdebug(1,\"jsrpc start...\"+screenName+\" \"+rpcid); \r\n\t\tHashMap hm = jsrpcProcessBL(screenName);\r\n\t\tJSONObject jobj = new JSONObject(hm);\r\n\t\tresultHtml = jobj.toString();\r\n\t\tdebug(1,\"json result:\"+resultHtml);\r\n\t\tinputStream = new StringBufferInputStream(resultHtml);\r\n\t\treturn SUCCESS;\r\n\t}", "public void executeCommandsForHost2Tier(String logName) throws Exception {\n\t\tSession session2 = this.host2;\n\t\tChannel channel2 = session2.openChannel(\"shell\");\n\n\t\t/* Output and Command list definition */\n\t\tops2 = channel2.getOutputStream();\n\t\tps2 = new PrintStream(ops2, true);\n\n\t\t/* Start to command burning */\n\t\tchannel2.connect();\n\n\t\tInputStream input2 = channel2.getInputStream();\n\n\t\t/** Host4 log collection side */\n\n\t\tThread.sleep(1000);\n\t\tps2.println(\"host2\");\n\t\t// command lists\n\t\tThread.sleep(1000);\n\n\t\tThread.sleep(500);\n\t\tps2.println(\"./logcap.sh -c \" + logName + \"_host2\"\n\t\t\t\t+ \" -z\"); /* run script for log collection */\n\t\t/* logcap.sh ı durdurma */\n\n\t\t/*\n\t\t * stop buttonunun methoduna aktarılacaktır gerek yok da olabilir de???\n\t\t */\n\n\t\tprintResult(input2, channel2);\n\n\t}", "public void checkShProcess(String processName, CallBack<String> callBack) {\n\n Log.d(TAG, \"checkShProcess ... start ...\");\n\n Process process = null;\n Runtime runtime = Runtime.getRuntime();\n try {\n\n// String cmd = \"busybox ps -e|grep \\\"<processName>\\\"|grep -v grep|wc -l\";\n String cmd = \"busybox ps -e|grep \\\"\" + processName + \"\\\"|grep -v grep|wc -l\";\n process = runtime.exec(new String[]{\"su\", \"-c\", cmd});\n InputStream is = process.getInputStream();\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n String line;\n while ((line = reader.readLine()) != null) {\n Log.d(TAG, \"checkShProcess line result : \" + line);\n if (line.equals(\"0\")) {\n callBack.onResult(\"0\"); // No\n } else callBack.onResult(\"1\"); // Ok\n }\n\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n e.printStackTrace();\n callBack.onResult(\"error\");\n } finally {\n try {\n process.destroy();\n } catch (Exception e){}\n }\n }", "public void SampleLinux() {\n \t\tfor (int loop = 0; loop < 10; loop++) {\n \t\t\tJobs jobUnit = new Jobs(\"date\", \"Linux\");\n \t\t\tjobqueue.add(jobUnit);\n \t\t}\n \t}", "public void executeCommandsForHost8Tier(String logName) throws Exception {\n\t\tSession session8 = this.host8;\n\t\tChannel channel8 = session8.openChannel(\"shell\");\n\n\t\t/* Output and Command list definition */\n\t\tops8 = channel8.getOutputStream();\n\t\tps8 = new PrintStream(ops8, true);\n\n\t\t/* Start to command burning */\n\t\tchannel8.connect();\n\n\t\tInputStream input8 = channel8.getInputStream();\n\n\t\t/** Host8 log collection side */\n\n\t\tThread.sleep(1000);\n\t\tps8.println(\"host8\");\n\t\t// command lists\n\t\tThread.sleep(1000);\n\n\t\tThread.sleep(500);\n\t\tps8.println(\"./logcap.sh -c \" + logName + \"_host8\"\n\t\t\t\t+ \" -z\"); /* run script for log collection */\n\n\t\tprintResult(input8, channel8);\n\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tString[] notify_cmd={\"msg\",user,\"启动中\"};\n\t\t\t\t\t\t\t\tdisplayText(\"启动中\");\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tRuntime.getRuntime().exec(notify_cmd);\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\t\tString mssage_in=\"appium msg\";\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t\t\t\tif((mssage_in=br.readLine())!=null){\n\t\t\t\t\t\t\t\t\t\t\tMyFrame.displayText(mssage_in);\n\t\t\t\t\t\t\t\t\t\t\tpw.println(mssage_in);\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} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void runMultiWebcam()\n\t{\n\t\tString pipeline=\"gst-launch-1.0 -v v4l2src device=\"+webcamSource+\" ! 'video/x-raw,width=640,height=480' ! x264enc pass=qual quantizer=20 tune=zerolatency ! rtph264pay ! multiudpsink clients=\"+client.getInetAddress().getHostAddress()+\":\"+port1+\",\"+client.getInetAddress().getHostAddress()+\":\"+port2;\n\n\t\tString[] args1 = new String[] {\"/bin/bash\", \"-c\", pipeline+\">src/output.txt\"};\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tProcess proc = new ProcessBuilder(args1).start();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "ProcessRunner waitFor();", "public static void main(String[] args){\n\t\tXenVM vm22 = new XenVM(\"vm22\", \"172.16.1.22\", 22, \"root\", \"welcome\");\n\t\t//XenVM vm31 = new XenVM(\"vm31\", \"172.16.1.31\", 22, \"root\", \"welcome\");\n\t\t//XenVM vm31 = new XenVM(\"vm31\", \"172.16.1.31\", 22, \"root\", \"welcome\");\n\t\t//XenVM vm21 = new XenVM(\"vm21\", \"172.16.1.21\", 22, \"root\", \"welcome\");\n\t\t//StartApp s11 = new StartApp(vm11);\n\t\tStartApp s22 = new StartApp(vm22);\n\t\t//StartApp s31 = new StartApp(vm31);\n\t\t//StartApp s31 = new StartApp(vm31);\n\t\t//StartApp s21 = new StartApp(vm21);\n\t\t//s11.start();\n\t\ts22.start();\n\t\t//s31.start();\n\t\t//s11.join();\n\t\t//s12.join();\n\t\t//s31.join();\n\t\t//s21.start();\n\t\ts22.join();\n\t}", "public static void main(String[] args) {\n MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();\n ApplicationContext context = new ClassPathXmlApplicationContext(\"appContext.xml\");\n\n\n try {\n ObjectName objectName = new ObjectName(\"com.thoughtworks.recordplayback:name=RecordPlayBackRunMode\");\n\n MBeanInfo runModeInfo = mbs.getMBeanInfo(objectName);\n\n for (MBeanOperationInfo operationInfo : runModeInfo.getOperations()) {\n System.out.println(operationInfo.getName());\n }\n\n Thread.sleep(60000 * 3);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public Map<String, String> runXtabRequest(DvnRJobRequest sro, RConnection c){\n String optionBanner = \"########### xtab option ###########\\n\";\n dbgLog.fine(optionBanner);\n historyEntry.add(optionBanner);\n \n Map<String, String> sr = new HashMap<String, String>();\n sr.put(\"requestdir\", requestdir);\n sr.put(\"option\", \"xtab\");\n \n String ResultHtmlFile = \"Rout.\"+PID+\".html\" ;\n sr.put(\"html\", \"/\"+requestdir+ \"/\" +ResultHtmlFile);\n \n String RcodeFile = \"Rcode.\" + PID + \".R\";\n \n try {\n String univarStatLine = \"try(x<-univarStat(dtfrm=x))\";\n String vdcUtilLibLine = \"library(VDCutil)\";\n \n //c.voidEval(\"dol<-''\");\n \n String aol4xtab = \"aol<-c(0,0,1)\";\n historyEntry.add(aol4xtab);\n c.voidEval(aol4xtab);\n \n // create a manifest page for this job request\n String homePageTitle = \"Dataverse Analysis: Request #\"+PID ;\n \n // create a temp dir\n String createTmpDir = \"dir.create('\"+wrkdir +\"')\";\n dbgLog.fine(\"createTmpDir=\"+createTmpDir);\n historyEntry.add(createTmpDir);\n c.voidEval(createTmpDir);\n \n \n String ResultHtmlFileBase = \"Rout.\"+PID ;\n String openHtml = \"htmlsink<-HTMLInitFile(outdir = '\"+\n wrkdir +\"', filename='\"+ResultHtmlFileBase+\n \"', extension='html', CSSFile='R2HTML.css', Title ='\"+\n homePageTitle+\"')\";\n dbgLog.fine(\"openHtml=\"+openHtml);\n historyEntry.add(openHtml);\n c.voidEval(openHtml);\n \n String StudyTitle = sro.getStudytitle();\n String pageHeaderContents = \"hdrContents <- \\\"<h1>Dataverse Analysis</h1><h2>Results</h2><p>Study Title:\"+\n StudyTitle+\"</p><hr />\\\"\";\n \n dbgLog.fine(\"pageHeaderContents=\"+pageHeaderContents);\n historyEntry.add(pageHeaderContents);\n c.voidEval(pageHeaderContents);\n \n String pageHeader = \"HTML(file=htmlsink,hdrContents)\";\n dbgLog.fine(\"pageHeader=\"+pageHeader);\n historyEntry.add(pageHeader);\n c.voidEval(pageHeader);\n \n /*\n aol<-c(0,0,1)\n dol<-\"\"\n try(x<-univarStat(dtfrm=x))\n library(VDCutil);\n try(VDCcrossTabulation(HTMLfile=\"/tmp/VDC/Rout.6769.html\",\n data=x,\n classificationVars=c('NAThex5FDISChex5Fnew','LOChex5FINThex5Fnew'),\n wantPercentages=F, wantTotals=T, wantStats=T, wantExtraTables=T));\n */\n \n // command lines\n dbgLog.fine(\"univarStatLine=\"+univarStatLine);\n historyEntry.add(univarStatLine);\n c.voidEval(univarStatLine);\n \n historyEntry.add(vdcUtilLibLine);\n c.voidEval(vdcUtilLibLine);\n \n String[] classVar = sro.getXtabClassVars();\n historyEntry.add(\"classVar<-c(\"+ DvnDSButil.joinNelementsPerLine(classVar, true)+\")\");\n c.assign(\"classVar\", new REXPString(classVar));\n \n String[] freqVar = sro.getXtabFreqVars();\n \n if (freqVar != null){\n historyEntry.add(\"freqVar<-c(\"+ DvnDSButil.joinNelementsPerLine(freqVar, true) +\")\");\n c.assign(\"freqVar\", new REXPString(freqVar));\n }else {\n historyEntry.add(\"freqVar<-c()\");\n c.voidEval(\"freqVar<-c()\");\n }\n \n String[] xtabOptns= sro.getXtabOutputOptions();// {\"F\", \"T\", \"T\", \"T\"};\n \n //\"HTMLfile='\"+wrkdir+ \"/\" +ResultHtmlFile+\"'\"+\n \n String VDCxtab = \"try(VDCcrossTabulation(\"+\n \"HTMLfile=htmlsink\"+\n \", data=x\"+ \n \", classificationVars=classVar\"+\n \", freqVars=freqVar\" +\n \", wantPercentages=\"+xtabOptns[2]+\n \", wantTotals=\"+xtabOptns[0]+\n \", wantStats=\"+xtabOptns[1]+\n \", wantExtraTables=\"+xtabOptns[3]+\"))\";\n \n dbgLog.fine(\"VDCxtab=\"+VDCxtab);\n historyEntry.add(VDCxtab);\n c.voidEval(VDCxtab);\n \n String closeHtml = \"HTMLEndFile()\";\n historyEntry.add(closeHtml);\n c.voidEval(closeHtml);\n \n // save workspace\n String objList = \"objList<-ls()\";\n dbgLog.fine(\"objList=\"+objList);\n c.voidEval(objList);\n \n String RdataFileName = \"Rworkspace.\"+PID+\".RData\";\n \n sr.put(\"Rdata\", \"/\"+requestdir+ \"/\" + RdataFileName);\n \n String saveWS = \"save(list=objList, file='\"+wrkdir +\"/\"+ RdataFileName +\"')\";\n dbgLog.fine(\"save the workspace=\"+saveWS);\n c.voidEval(saveWS);\n \n \n \n \n \n \n \n // write back the R workspace to the dvn \n \n String wrkspFileName = wrkdir +\"/\"+ RdataFileName;\n dbgLog.fine(\"wrkspFileName=\"+wrkspFileName);\n \n int wrkspflSize = getFileSize(c,wrkspFileName);\n \n File wsfl = writeBackFileToDvn(c, wrkspFileName, RWRKSP_FILE_PREFIX ,\"RData\", wrkspflSize);\n \n if (wsfl != null){\n sr.put(\"wrkspFileName\", wsfl.getAbsolutePath());\n dbgLog.fine(\"wrkspFileName=\"+wsfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wrkspFileName is null\");\n }\n \n \n \n \n \n \n \n \n \n \n // command history\n String[] ch = (String[])historyEntry.toArray(new String[historyEntry.size()]);\n c.assign(\"ch\", new REXPString(ch));\n String saveRcodeFile = \"cat(file='\"+ wrkdir +\"/\"+ RcodeFile +\"',paste(ch,collapse='\\n'))\";\n dbgLog.fine(saveRcodeFile);\n c.voidEval(saveRcodeFile);\n \n // copy the dvn-patch css file to the wkdir\n // file.copy(from, to, overwrite = FALSE)\n String cssFile =R2HTML_CSS_DIR + \"/\" +\"R2HTML.css\";\n String cpCssFile = \"file.copy('\"+cssFile+\"','\"+wrkdir+\"')\";\n c.voidEval(cpCssFile);\n \n // tab data file\n String mvTmpTabFile = \"file.rename('\"+ tempFileName +\"','\"+ tempFileNameNew +\"')\";\n c.voidEval(mvTmpTabFile);\n dbgLog.fine(\"move temp file=\"+mvTmpTabFile);\n \n // move the temp dir to the web-temp root dir\n String mvTmpDir = \"file.rename('\"+wrkdir+\"','\"+webwrkdir+\"')\";\n dbgLog.fine(\"web-temp_dir=\"+mvTmpDir);\n c.voidEval(mvTmpDir);\n \n } catch (RserveException rse) {\n rse.printStackTrace();\n sr.put(\"RexecError\", \"true\");\n return sr;\n }\n \n sr.put(\"RexecError\", \"false\");\n \n return sr;\n }", "public void listThreads() {\n\t\tthis.toSlave.println(MasterProcessInterface.LIST_THREADS_COMMAND);\n\t}", "public void executeCommandsForHost4Tier(String logName) throws Exception {\n\t\tSession session4 = this.host4;\n\t\tChannel channel4 = session4.openChannel(\"shell\");\n\n\t\t/* Output and Command list definition */\n\t\tops4 = channel4.getOutputStream();\n\t\tps4 = new PrintStream(ops4, true);\n\n\t\t/* Start to command burning */\n\t\tchannel4.connect();\n\n\t\tInputStream input4 = channel4.getInputStream();\n\n\t\t/** Host4 log collection side */\n\n\t\t// command lists\n\t\tThread.sleep(1000);\n\t\tps4.println(\"host4\"); /* Connect to host4 */\n\n\t\tThread.sleep(1000);\n\n\t\tThread.sleep(500);\n\n\t\tps4.println(\"./logcap.sh -c \" + logName + \"_host4\"\n\t\t\t\t+ \" -z\"); /* run script for log collection */\n\t\t/* logcap.sh ı durdurma */\n\n\t\t// sftpHost3(ps3, session3, channel3, logName);\n\n\t\tprintResult(input4, channel4);\n\n\t}", "public void setLaunchPage() {\n resetLaunchPageStatus();\n\n // set recognised ssid\n ssidLabel.setVisible(true);\n Color backColor = rootPanel.getBackground();\n int backRed = backColor.getRed();\n int backGreen = backColor.getGreen();\n int backBlue = backColor.getBlue();\n new Thread(() -> {\n try {\n int j=backGreen,k=backBlue;\n for(int i=backRed;i>0&&retStatus==-1;i-=3){\n j-=3;k-=3;\n if(j < 0) j=0;\n if(k < 0) k=0;\n ssidLabel.setForeground(new Color(i,j,k));\n sleep(100);\n }\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n }).start();\n\n // set break connection button to visible\n breakConnBtn.setVisible(true);\n registerBtn.setVisible(false);\n\n // set launch status based on login info\n new Thread(() -> {\n try {\n // store img status icon thread to local\n connStatusImgThread = Thread.currentThread();\n // set wifi icons\n int wifiIconIndex = 0;\n int wifiIconLen = wifiLaunchIcons.length;\n ImageIcon connStatusIcon = connectingIcon;\n String connStr = \"正在连接\";\n connectStatusL.setVisible(true);\n connectStatusL.setText(connStr);\n while(retStatus == -1) {\n connectStatusL.setIcon(connStatusIcon);\n wifiIconLabel.setIcon(wifiLaunchIcons[wifiIconIndex]);\n connStatusIcon = (connStatusIcon == connectingIcon ? connectedOpaqueIcon : connectingIcon);\n sleep(600);\n wifiIconIndex = (++wifiIconIndex) % wifiIconLen;\n }\n ssidLabel.setForeground(Color.black);\n if(retStatus == 0) {\n setBreakdownStatus();\n } else if(retStatus == 64) {\n wifiIconLabel.setIcon(wifiLaunchIcons[3]);\n connectStatusL.setIcon(connectedIcon);\n connectStatusL.setText(\"已连接 \");\n // set wallet left value\n setLoginStatus(1);\n //========== do deduction ==========//\n File file = new File(configSetting.getWpaCmdPath().concat(\"/testLeftToken\"));\n BufferedReader leftCoinReader = new BufferedReader(new FileReader(file));\n String leftCoinStr = leftCoinReader.readLine();\n if(! leftCoinStr.contains(\"registerReward\")) {\n //====== read balance from blockchain =====//\n if(Utils.getTestChain()) {\n BufferedReader tokenReader = new BufferedReader(new FileReader(rootPath.concat(\"/wpa_setup/testLeftToken\")));\n BufferedReader coinReader = new BufferedReader(new FileReader(rootPath.concat(\"/wpa_setup/testLeftCoin\")));\n leftToken = Double.valueOf(tokenReader.readLine());\n leftCoin = Double.valueOf(coinReader.readLine());\n// currency.put(\"leftToken\",Double.valueOf(tokenReader.readLine()));\n// currency.put(\"leftCoin\",Double.valueOf(coinReader.readLine()));\n tokenReader.close();\n coinReader.close();\n } else {\n try {\n ProcessBuilder pb = new ProcessBuilder(\n \"node\",\n rootPath.concat(\"/js_contact_chain/get_value.js\")\n );\n pb.redirectErrorStream(true);\n Process process = pb.start();\n BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n StringBuilder sb = new StringBuilder();\n String line;\n System.out.println(\"========== get reward from blockchain ==========\");\n // tricky getting coin and token\n while ((line = reader.readLine()) != null) {\n sb.append(line);\n if (Pattern.matches(\"Token:[0-9]*\",line)) {\n leftToken = Double.valueOf(line.split(\":\")[1]);\n// currency.put(\"leftToken\",Double.valueOf(line.split(\":\")[1]));\n }\n if (Pattern.matches(\"Coin:[0-9]*\",line)) {\n leftCoin = Double.valueOf(line.split(\":\")[1]);\n// currency.put(\"leftCoin\",Double.valueOf(line.split(\":\")[1]));\n }\n System.out.println(\"<reward>\" + line + \"<reward>\");\n }\n process.waitFor();\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n // deduct 10 coin in backend\n new Thread(() -> {\n int tryout = 3;\n while(tryout > 0) {\n try {\n ArrayList<String> cmd = new ArrayList<>();\n cmd.add(\"node\");\n cmd.add(rootPath.concat(\"/js_contact_chain/client.js\"));\n cmd.add(\"DeductionToken\");\n cmd.add(\"0x01c96e4d9be1f4aef473dc5dcf13d8bd1d4133cd\");\n cmd.add(\"e16a1130062b37f038b9df02f134d7ddd9009c54c62bd92d4ed42c0dba1189a8\");\n cmd.add(\"0xf439bf68fc695b4a62f9e3322c75229ba5a0ff33\");\n ProcessBuilder pb = new ProcessBuilder(cmd);\n Process process = pb.start();\n BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n String line;\n // tricky getting data\n boolean isSuccess = false;\n while ((line = reader.readLine()) != null) {\n System.out.println(line);\n if (line.contains(\"status\")) {\n String[] tmpArry = line.split(\":\");\n String status = tmpArry[1];\n status = status.substring(1, status.length() - 1);\n isSuccess = Boolean.valueOf(status);\n }\n }\n if(isSuccess) {\n break;\n }\n System.out.println(\"[ERROR] Transaction failed! Deduct token failed!\");\n process.waitFor();\n } catch (IOException|InterruptedException e) {\n System.out.println(e.getMessage());\n }\n tryout--;\n }\n }).start();\n }\n leftToken = Arith.sub(leftToken,10);\n // record item\n writeRecord(\"-10: 登陆\",tokenHistoryFP);\n } else {\n String[] tmpStr = leftCoinStr.split(\":\");\n leftToken = Double.valueOf(tmpStr[1]);\n leftCoin = 0;\n// currency.put(\"leftToken\",Double.valueOf(tmpStr[1]));\n// currency.put(\"leftCoin\",0.0);\n writeRecord(\"+\"+leftToken+\": 注册\",tokenHistoryFP);\n }\n sleep(200);\n String historyStr = readRecord(historyReadlineNum,tokenHistoryFP);\n tokenHistoryLabel.setText(historyStr);\n } else {\n wifiIconLabel.setIcon(unLaunchIcon);\n connectStatusL.setIcon(unconnectedIcon);\n connectStatusL.setText(\"未连接 \");\n }\n setPageStatus();\n // set login page advertisement\n new Thread(() -> {\n try {\n int adsIndex = 0;\n int adsLen = loginAdsIcons.length;\n while (loginStatus == 1) {\n launchAdsLabel.setIcon(loginAdsIcons[adsIndex]);\n sleep(2500);\n adsIndex = ++adsIndex % adsLen;\n }\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n }).start();\n } catch (InterruptedException|IOException ex) {\n System.out.println(ex.getMessage());\n }\n }).start();\n }", "private static int localExec(String hostname, String codeFile,\n\t\t\tString classname, String rport, POPAccessPoint jobserv,\n\t\t\tPOPAccessPoint appserv, POPAccessPoint objaccess,\n\t\t\tObjectDescription od) {\n\t\t\n\t\tboolean isLocal = Util.isLocal(hostname);\n\t\t/*if (!isLocal) {\n\t\t\treturn -1;\n\t\t}*/\n\t\tif (codeFile == null || codeFile.length() == 0){\n\t\t\treturn -1;\n\t\t}\n\t\tcodeFile = codeFile.trim();\n\n\t\tArrayList<String> argvList = new ArrayList<String>();\n\n\t\tArrayList<String> codeList = Util.splitTheCommand(codeFile);\n\t\targvList.addAll(codeList);\n\t\t\n\t\t/*if(od.getMemoryMin() > 0){\n\t\t\targvList.add(1, \"-Xms\"+od.getMemoryMin()+\"m\");\n\t\t}\n\t\tif(od.getMemoryReq() > 0){\n\t\t\targvList.add(1, \"-Xmx\"+od.getMemoryReq()+\"m\");\n\t\t}*/\n\t\t\n\t\tif(codeFile.startsWith(\"java\") && Configuration.ACTIVATE_JMX){\n\t\t\targvList.add(1, \"-Dcom.sun.management.jmxremote.port=\"+(int)(Math.random() * 1000+3000));\n\t\t\targvList.add(1, \"-Dcom.sun.management.jmxremote.ssl=false\");\n\t\t\targvList.add(1, \"-Dcom.sun.management.jmxremote.authenticate=false\");\n\t\t}\n\t\t\n\t\tif(od.getJVMParameters() != null && !od.getJVMParameters().isEmpty()){\n\t\t\tString [] jvmParameters = od.getJVMParameters().split(\" \");\n\t\t\tfor(String parameter: jvmParameters){\n\t\t\t\targvList.add(1, parameter);\n\t\t\t}\n\t\t}\n\t\t\n\t\tComboxAllocateSocket allocateCombox = new ComboxAllocateSocket();\n\t\tString callbackString = String.format(Broker.CALLBACK_PREFIX+\"%s\", allocateCombox.getUrl());\n\t\targvList.add(callbackString);\n\t\tif (classname != null && classname.length() > 0) {\n\t\t\tString objectString = String.format(Broker.OBJECT_NAME_PREFIX+\"%s\", classname);\n\t\t\targvList.add(objectString);\n\t\t}\n\t\tif (appserv != null && !appserv.isEmpty()) {\n\t\t\tString appString = String.format(Broker.APPSERVICE_PREFIX+\"%s\", appserv.toString());\n\t\t\targvList.add(appString);\n\t\t}\n\t\tif (jobserv != null && !jobserv.isEmpty()) {\n\t\t\tString jobString = String.format(\"-jobservice=%s\", jobserv.toString());\n\t\t\targvList.add(jobString);\n\t\t}\n\n\t\tif (rport != null && rport.length() > 0) {\n\t\t\tString portString = String.format(\"-socket_port=%s\", rport);\n\t\t\targvList.add(portString);\n\t\t}\n\t\t\n\t\tint ret = -1;\n\t\t\n\t\t//Allow local objects to be declared as remote to test remote object creation locally\n\t\tif(hostname.equals(POPObjectDescription.LOCAL_DEBUG_URL)){\n\t\t\thostname = \"localhost\";\n\t\t}\n\t\t\n\t\tif(isLocal){\n\t\t\tret = SystemUtil.runCmd(argvList);\n\t\t}else{\n\t\t\tswitch(od.getConnectionType()){\n\t\t\tcase ANY:\n\t\t\tcase SSH:\n\t\t\t\tret = SystemUtil.runRemoteCmd(hostname, argvList);\n\t\t\t\tbreak;\n\t\t\tcase DEAMON:\n\t\t\t\tPOPJavaDeamonConnector connector;\n\t\t\t\ttry {\n\t\t\t\t\tconnector = new POPJavaDeamonConnector(hostname);\n\t\t\t\t\tif(connector.sendCommand(od.getConnectionSecret(), argvList)){\n\t\t\t\t\t\tret = 0;\n\t\t\t\t\t}\n\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (ret == -1) {\n\t\t\treturn ret;\n\t\t}\n\t\t\n\t\tallocateCombox.startToAcceptOneConnection();\n\t\t\n\t\tif(!allocateCombox.isComboxConnected()){\n\t\t\tLogWriter.writeDebugInfo(\"Could not connect broker\");\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\tBufferXDR buffer = new BufferXDR();\n\t\tint result = 0;\n\n\t\tif (allocateCombox.receive(buffer) > 0) {\n\t\t\tint status = buffer.getInt();\n\t\t\tString str = buffer.getString();\n\t\t\t\n\t\t\tif (status == 0){\n\t\t\t\tobjaccess.setAccessString(str);\n\t\t\t}else{\n\t\t\t\tresult = status;\n\t\t\t}\n\t\t} else {\n\t\t\tresult = -1;\n\t\t}\n\n\t\tallocateCombox.close();\n\t\t\n\t\treturn result;\n\t}", "@Before\n public void setup() throws Exception{\n \n System.setProperty(\"app.home\", BASE_DIR + \"/scribengin\");\n System.setProperty(\"vm.app.dir\", BASE_DIR + \"/scribengin\");\n \n localScribenginCluster = new LocalScribenginCluster(BASE_DIR) ;\n localScribenginCluster.clean(); \n localScribenginCluster.useLog4jConfig(\"classpath:scribengin/log4j/vm-log4j.properties\"); \n localScribenginCluster.start();\n registry = RegistryConfig.getDefault().newInstance().connect();\n shell = localScribenginCluster.getShell();\n \n }", "public void getSystemStatus() throws Exception\r\n\t{\r\n\t\tsystemDump.delete(0, systemDump.length());\r\n\r\n\t\tboolean needAlarm = memoryLogging();\r\n\r\n\t\tif (Database.appDatasource != null)\r\n\t\t{\r\n\t\t\tsystemDump.append(\"\\r\\n\");\r\n\t\t\tsystemDump.append(\"Database connection status: \\r\\n\");\r\n\t\t\tsystemDump.append(\"\\t Number database connection\\t\\t\\t: \");\r\n\t\t\tsystemDump.append(Database.appDatasource.getNumConnections());\r\n\t\t\tsystemDump.append(\"\\r\\n\");\r\n\t\t\tsystemDump.append(\"\\t Number busy database connection\\t: \");\r\n\t\t\tsystemDump.append(Database.appDatasource.getNumBusyConnections());\r\n\t\t\tsystemDump.append(\"\\r\\n\");\r\n\t\t\tsystemDump.append(\"\\t Number idle database connection\\t: \");\r\n\t\t\tsystemDump.append(Database.appDatasource.getNumIdleConnections());\r\n\t\t\tsystemDump.append(\"\\r\\n\");\r\n\t\t\tsystemDump.append(\"\\t Number idle database connection\\t: \");\r\n\t\t\tsystemDump.append(Database.appDatasource.getNumUnclosedOrphanedConnections());\r\n\t\t\tsystemDump.append(\"\\r\\n\");\r\n\t\t}\r\n\r\n\t\tString queueWarningMessage = \"\";\r\n\r\n\t\tsystemDump.append(\"\\r\\n\");\r\n\t\tsystemDump.append(\"Local queue status: \\r\\n\");\r\n\r\n\t\tfor (String key : QueueFactory.localQueues.keySet())\r\n\t\t{\r\n\t\t\tLocalQueue localQueue = QueueFactory.getLocalQueue(key);\r\n\r\n\t\t\tsystemDump.append(\"Local queue (\");\r\n\t\t\tsystemDump.append(key);\r\n\t\t\tsystemDump.append(\"): \");\r\n\t\t\tsystemDump.append(localQueue.getSize());\r\n\r\n\t\t\tif (localQueue.getMaxSize() > 0)\r\n\t\t\t{\r\n\t\t\t\tsystemDump.append(\"/\");\r\n\t\t\t\tsystemDump.append(localQueue.getMaxSize());\r\n\t\t\t}\r\n\r\n\t\t\tsystemDump.append(\"\\r\\n\");\r\n\t\t}\r\n\t\tif (QueueFactory.getTotalLocalPending() > 0)\r\n\t\t{\r\n\t\t\tsystemDump.append(\"Total pending counter : \");\r\n\t\t\tsystemDump.append(QueueFactory.getTotalLocalPending());\r\n\t\t\tsystemDump.append(\"\\r\\n\");\r\n\t\t}\r\n\r\n\t\tif (queueDispatcherEnable)\r\n\t\t{\r\n\t\t\tsystemDump.append(\"\\r\\n\");\r\n\t\t\tsystemDump.append(\"Remote queue status: \\r\\n\");\r\n\r\n\t\t\tQueueSession session = null;\r\n\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tsession = getQueueSession();\r\n\r\n\t\t\t\tfor (int j = 0; j < externalQueues.length; j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (externalQueues[j].equals(\"\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tString queueName = externalQueues[j];\r\n\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tQueue checkQueue = QueueFactory.getQueue(queueName);\r\n\r\n\t\t\t\t\t\tint size = QueueFactory.getQueueSize(session, checkQueue);\r\n\r\n\t\t\t\t\t\tQueueFactory.queueSnapshot.put(queueName, new Integer(size));\r\n\r\n\t\t\t\t\t\tsystemDump.append(\"Total command request for \");\r\n\t\t\t\t\t\tsystemDump.append(queueName);\r\n\t\t\t\t\t\tsystemDump.append(\" : \");\r\n\t\t\t\t\t\tsystemDump.append(size);\r\n\t\t\t\t\t\tsystemDump.append(\"\\r\\n\");\r\n\r\n\t\t\t\t\t\tqueueWarningMessage += queueWarning(checkQueue, queueName, size);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception e)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsystemDump.append(\"Error occur when get size of queue \");\r\n\t\t\t\t\t\tsystemDump.append(queueName);\r\n\t\t\t\t\t\tsystemDump.append(\": \");\r\n\t\t\t\t\t\tsystemDump.append(e.getMessage());\r\n\r\n\t\t\t\t\t\tlogMonitor(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tsystemDump.append(\"Can not get remote queue size: \");\r\n\t\t\t\tsystemDump.append(e.getMessage());\r\n\t\t\t\tsystemDump.append(\"\\r\\n\");\r\n\r\n\t\t\t\tlogMonitor(e);\r\n\t\t\t}\r\n\t\t\tfinally\r\n\t\t\t{\r\n\t\t\t\tQueueFactory.closeQueue(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (needAlarm)\r\n\t\t{\r\n\t\t\tsystemDump.append(\"WARNING: Disk space is running low\");\r\n\t\t}\r\n\t\tif (!queueWarningMessage.equals(\"\"))\r\n\t\t{\r\n\t\t\tneedAlarm = true;\r\n\t\t\tsystemDump.append(queueWarningMessage);\r\n\t\t}\r\n\r\n\t\tlogMonitor(systemDump);\r\n\r\n\t\tif (needAlarm)\r\n\t\t{\r\n\t\t\tsendInstanceAlarm(\"system-resource\", systemDump.toString());\r\n\t\t}\r\n\t}", "public void executeCommandsForHost5Tier(String logName) throws Exception, JSchException {\n\t\tSession session5 = this.host5;\n\t\tChannel channel5 = session5.openChannel(\"shell\");\n\n\t\t/* Output and Command list definition */\n\t\tops5 = channel5.getOutputStream();\n\t\tps5 = new PrintStream(ops5, true);\n\n\t\t/* Start to command burning */\n\t\tchannel5.connect();\n\n\t\tInputStream input5 = channel5.getInputStream();\n\n\t\t/** Host5 log collection side */\n\n\t\tThread.sleep(1000);\n\n\t\tps5.println(\"host5\");\n\n\t\t// command lists\n\t\tThread.sleep(500);\n\t\tps5.println(\"./logcap.sh -c \" + logName + \"_host5\"\n\t\t\t\t+ \" -z\"); /* run script for log collection */\n\n\t\tprintResult(input5, channel5);\n\n\t}", "private void startProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{\n \tSystem.out.println(\"Board startProcess 시작\");\r\n \tString RequestURI=request.getRequestURI();\r\n \tString ContextPath=request.getContextPath();\r\n \tString command=RequestURI.substring(ContextPath.length());\r\n \tActionForward forward=null;\r\n \tAction action=null;\r\n \tSystem.out.println(RequestURI +\" : command : \"+command);\r\n \t\r\n \t//공지 게시판 초기화면\r\n \tif(command.equals(\"/MainBoardAction.bo\")){\r\n \t\taction=new MainBoardAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 검색 리스트\r\n \telse if(command.equals(\"/MainBoardSearch.bo\")){\r\n \t\taction=new MainBoardSearchAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 작성 뷰\r\n \telse if(command.equals(\"/MainBoardWrite.bo\")){\r\n \t\tforward=new ActionForward();\r\n \t\tforward.setRedirect(false);\r\n \t\tforward.setPath(\"./mainboard/boardwriteview.jsp\");\r\n \t}\r\n \t//공지 게시판 글 작성 실행시\r\n \telse if(command.equals(\"/MainBoardWriteAction.bo\")){\r\n \t\taction=new MainBoardWriteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 뷰\r\n \telse if(command.equals(\"/MainBoardDetailAction.bo\")){\r\n \t\taction= new MainBoardDetailAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 수정용 내용 보기\r\n \telse if(command.equals(\"/MainBoardModifyView.bo\")){\r\n \t\taction=new MainBoardModifyView();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 내용 수정\r\n \telse if(command.equals(\"/MainBoardModifyAction.bo\")){\r\n \t\taction=new MainBoardModifyAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 삭제\r\n \telse if(command.equals(\"/MainBoardDeleteAction.bo\")){\r\n \t\taction=new MainBoardDeleteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t//댓글 가져오기\r\n \telse if(command.equals(\"/ReplyView.bo\")){\r\n \t\taction=new ReplyView();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//댓글 작성\r\n \telse if(command.equals(\"/ReplyWriteAction.bo\")){\r\n \t\taction=new ReplyWriteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//댓글 삭제\r\n \telse if(command.equals(\"/ReplyDeleteAction.bo\")){\r\n \t\taction=new ReplyDeleteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//댓글 수정\r\n \telse if(command.equals(\"/ReplyChangeAction.bo\")){\r\n \t\taction=new MainBoardDeleteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t//---------처리--------\r\n \tif(forward!=null){\r\n \t\tSystem.out.println(\"forward값 : \"+forward);\r\n \t\tif(forward.isRedirect()){\r\n \t\t\t//내용을 넘겨줄때\r\n \t\t\tresponse.sendRedirect(forward.getPath());\r\n \t\t}else{\r\n \t\t\t//내용을 넘겨주지 않고 초기화 시킬때\r\n \t\t\tRequestDispatcher dispatcher=request.getRequestDispatcher(forward.getPath());\r\n \t\t\tdispatcher.forward(request, response);\r\n \t\t}\r\n \t}\r\n \t\r\n\t}", "public static void main(String[] args) {\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"172.19.16.233\", 5056));\r\n \r\n\t\t// Now change port to 8081 and you should see failure\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"localhost\", 8080));\r\n \r\n\t\t// Connect to Crunchify.com on port 80\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"crunchify.com\", 80));\r\n \r\n\t\t// Connection to crunchify.me on port 81\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"crunchify.me\", 81));\r\n \r\n\t\t// Connection to crunchify.me on port 80\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"crunchify.me\", 80));\r\n\r\n String ARP_GET_IP_HW = \"arp -a\";\r\n\r\n \r\n\r\n System.out.println(getARPTable(ARP_GET_IP_HW ));\r\n\r\n\t}", "public void executeCommandsForHost6Tier(String logName) throws Exception {\n\t\tSession session6 = this.host6;\n\t\tChannel channel6 = session6.openChannel(\"shell\");\n\n\t\t/* Output and Command list definition */\n\t\tops6 = channel6.getOutputStream();\n\t\tps6 = new PrintStream(ops6, true);\n\n\t\t/* Start to command burning */\n\t\tchannel6.connect();\n\n\t\tInputStream input6 = channel6.getInputStream();\n\n\t\t/** Host5 log collection side */\n\n\t\tThread.sleep(1000);\n\t\tps6.println(\"host6\");\n\t\t// command lists\n\t\tThread.sleep(1000);\n\n\t\tThread.sleep(500);\n\t\tps6.println(\"./logcap.sh -c \" + logName + \"_host6\"\n\t\t\t\t+ \" -z\"); /* run script for log collection */\n\n\t\tprintResult(input6, channel6);\n\n\t}", "private String exec(String cmd, File ws, String errorMessage) throws IOException, ProcessingException {\n listener.info(\"Executing: \"+cmd);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n int r = new Proc(cmd, null, baos, ws).join();\n if(r!=0) {\n listener.info(baos.toString());\n throw new ProcessingException(errorMessage);\n }\n return baos.toString();\n }", "public static void main(String[] argv) {\r\n\t\ttask_data task_info = new task_data();\r\n\t\tlocal_tube sheet_parser = new local_tube(task_info);\r\n\t\tString current_terminal = \"LSHITD0097\";\r\n\t\tHashMap<String, String> imported_data = new HashMap<String, String>();\r\n\t\timported_data.put(\"env\", \"a=b\");\r\n\t\timported_data.put(\"sort\", \"\");\r\n\t\timported_data.put(\"key\", public_data.CASE_USER_PATTERN + \"|\" + public_data.CASE_STANDARD_PATTERN);\r\n\t\tsheet_parser.generate_suite_file_local_admin_task_queues(time_info.get_date_time(), \"C:\\\\Users\\\\jwang1\\\\Desktop\\\\standard_suite2\\\\radiant_regression.xlsx\", imported_data, current_terminal);\r\n\t\t//System.out.println(task_info.get_received_task_queues_map().toString());\r\n\t\t//System.out.println(task_info.get_received_admin_queues_treemap().toString());\r\n\t\tsheet_parser.generate_suite_path_local_admin_task_queues(time_info.get_date_time(), \"C:/Users/jwang1/Desktop/qinhai_suite\", \"D:/tmp_work\", imported_data);\r\n\t\tSystem.out.println(task_info.get_received_task_queues_map().toString());\r\n\t\tSystem.out.println(task_info.get_received_admin_queues_treemap().toString());\r\n\t\t/*\t\t\r\n\t\txml_parser xml_parser2 = new xml_parser();\r\n\t\tIterator<String> dump_queue_it = task_info.get_received_admin_queues_treemap().keySet().iterator();\r\n\t\tString queue_name = dump_queue_it.next();\r\n\t\tHashMap<String, HashMap<String, String>> admin_queue_data = task_info\r\n\t\t\t\t.get_queue_data_from_received_admin_queues_treemap(queue_name);\r\n\t\tSystem.out.println(queue_name);\r\n\t\tSystem.out.println(admin_queue_data);\r\n\t\ttry {\r\n\t\t\txml_parser2.dump_admin_data(admin_queue_data, queue_name,\r\n\t\t\t\t\t\"D:/tmp_work_space/logs/finished/admin/test.xml\");\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tTreeMap<String, HashMap<String, HashMap<String, String>>> task_queue_data = task_info\r\n\t\t\t\t.get_received_task_queues_map().get(queue_name);\r\n\t\tSystem.out.println(task_queue_data);\r\n\t\ttry {\r\n\t\t\txml_parser2.dump_task_data(task_queue_data, queue_name,\r\n\t\t\t\t\t\"D:/tmp_work_space/logs/finished/task/test.xml\");\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t*/\r\n\t}", "public void executeCommandsForHost7Tier(String logName) throws Exception {\n\t\tSession session7 = this.host7;\n\t\tChannel channel7 = session7.openChannel(\"shell\");\n\n\t\t/* Output and Command list definition */\n\t\tops7 = channel7.getOutputStream();\n\t\tps7 = new PrintStream(ops7, true);\n\n\t\t/* Start to command burning */\n\t\tchannel7.connect();\n\n\t\tInputStream input7 = channel7.getInputStream();\n\n\t\t/** Host7 log collection side */\n\n\t\tThread.sleep(1000);\n\t\tps7.println(\"host7\");\n\t\t// command lists\n\t\tThread.sleep(1000);\n\n\t\tThread.sleep(500);\n\t\tps7.println(\"./logcap.sh -c \" + logName + \"_host7\"\n\t\t\t\t+ \" -z\"); /* run script for log collection */\n\n\t\tprintResult(input7, channel7);\n\n\t}", "public void appiumStart() throws IOException, InterruptedException {\n // Execute command string to start appium server.\n p = Runtime.getRuntime().exec(cmd);\n // Provide wait time of 10 mins to start appium server properly.\n // If face any error(Could not start a new session...) then Increase\n // this time to 15 or 20 mins.\n Thread.sleep(10000);\n if (p != null) {\n System.out.println(\"Appium server Is started now.\");\n }\n }", "public static void main(String[] args) {\n\t\tif (args.length < 3) {\n\t\t\tSystem.out.println(\"Wumpus Monitor V1.0.\");\n\t\t\tSystem.out.println(\"Usage: java wm.WumpusMonitor <server host> <server port> <logical name> [<RMIRegistry port>]\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tRegistry r;\n\t\ttry {\n\t\t\tint registryPort=1099;\n\t\t\tString serverHost = args[0];\n\t\t\tint serverPort = Integer.parseInt(args[1]);\n\t\t\tString logicalName = args[2];\n\t\t\tString localHost = InetAddress.getLocalHost().getHostAddress();\n\t\t\tif(args.length == 4) {\n\t\t\t\tregistryPort =Integer.parseInt(args[3]);\n\t\t\t}\n\t\t\tString url = \"rmi://\"+localHost+\":\"+Integer.toString(registryPort)+\"/\"+logicalName;\n\t\t\tWMInterface monitor = new WumpusMonitor();\n\t\t\tr=LocateRegistry.getRegistry(localHost,registryPort);\n\t\t\tr.rebind(logicalName,monitor);\n\t\t\t//Naming.rebind(url, monitor);\n\t\t\tDatagramSocket socket = new DatagramSocket();\n\t\t\tInetAddress address = InetAddress.getByName(serverHost);\n\t\t\tString msg = \"<monitorJoin url=\\\"\" + url + \"\\\">\";\n\t\t\tbyte[] message = msg.getBytes();\n\t\t\tDatagramPacket packet = new DatagramPacket(message,\n\t\t\t\t\t\t\t\t\tmessage.length, address, serverPort);\n\t\t\tsocket.send(packet);\n\t\t\tSystem.out.println(\"Waiting for the first message from server\");\n\t\t\twhile (!((WumpusMonitor)monitor).enabled) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t} catch (InterruptedException e) {}\n\t\t\t}\n\t\t\tSystem.out.println(\"Enjoy the Wumpus Monitor!\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error: \" + e);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void executeCommandsForHost9Tier(String logName) throws Exception {\n\t\tSession session9 = this.host9;\n\n\t\tChannel channel9 = session9.openChannel(\"shell\");\n\n\t\t/* Output and Command list definition */\n\t\tops9 = channel9.getOutputStream();\n\t\tps9 = new PrintStream(ops9, true);\n\n\t\t/* Start to command burning */\n\t\tchannel9.connect();\n\n\t\tInputStream input9 = channel9.getInputStream();\n\n\t\t/** Host5 log collection side */\n\n\t\tThread.sleep(1000);\n\t\tps9.println(\"host9\");\n\n\t\tif (ps9.checkError())\n\t\t\tcheck.setConnectedToHost9(false);\n\n\t\t// command lists\n\t\tThread.sleep(1000);\n\n\t\tThread.sleep(500);\n\t\tps9.println(\"./logcap.sh -c \" + logName + \"_host9\"\n\t\t\t\t+ \" -z\"); /* run script for log collection */\n\n\t\tprintResult(input9, channel9);\n\n\t}", "public static void main(String[] src) throws UnsupportedEncodingException {\n List<String> cmd = new ArrayList<>();\n cmd.add(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n cmd.add(\"-no-remote\");\n cmd.add(\"-P\");\n cmd.add(\"aesha2\");\n// cmd.add(\"\\\"fileName\\\"\");\n ProcessBuilder builder = new ProcessBuilder().command(cmd);\n Process process = null;\n int exitCode=-1;\n\n try {\n process = builder.start();\n final Process finalProcess = process;\n Thread t=new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n finalProcess.destroy();\n }\n });\n t.start();\n exitCode = process.waitFor();\n } catch (InterruptedException e) {\n String ed=new String(e.getMessage());\n System.out.println(ed);\n } catch (IOException e) {\n String ed=new String(e.getMessage());\n System.out.println(ed);\n }\n process.destroy();\n System.out.println(exitCode);\n }", "String getExecBroker();", "public static void main(String[] args) {\n\r\n\t\tRuntime runtime = Runtime.getRuntime();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// 获取当前链接的设备\r\n\t\t\tProcess pro_get_deviceslist = runtime.exec(Commands.cmd_get_deviceslist);\r\n\r\n\t\t\tInputStream is_get_deviceslist = pro_get_deviceslist.getInputStream();\r\n\t\t\tInputStreamReader isr_get_deviceslist = new InputStreamReader(is_get_deviceslist);\r\n\t\t\tBufferedReader br_get_deviceslist = new BufferedReader(isr_get_deviceslist);\r\n\r\n\t\t\tif (devices == null) {\r\n\t\t\t\tdevices = new ArrayList<>();\r\n\t\t\t}\r\n\r\n\t\t\tString rl_get_deviceslist = null;\r\n\t\t\twhile ((rl_get_deviceslist = br_get_deviceslist.readLine()) != null) {\r\n\r\n\t\t\t\tif (rl_get_deviceslist.contains(\"\t\")) {\r\n\t\t\t\t\trl_get_deviceslist = rl_get_deviceslist.trim().split(\"\t\")[0];\r\n\r\n\t\t\t\t\tDeviceBean devicesBean = new DeviceBean();\r\n\t\t\t\t\tdevicesBean.setDevicename(rl_get_deviceslist);\r\n\t\t\t\t\tdevices.add(devicesBean);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tbr_get_deviceslist.close();\r\n\t\t\tisr_get_deviceslist.close();\r\n\t\t\tis_get_deviceslist.close();\r\n\t\t\tpro_get_deviceslist.destroy();\r\n\r\n\t\t\tif (devices == null || devices.size() < 1) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// 遍历设备列表,计算每个设备的屏幕宽高\r\n\t\t\tfor (DeviceBean devicesBean : devices) {\r\n\t\t\t\tProcess pro_get_width_height = runtime.exec(Commands.getPixelCommand(devicesBean.getDevicename()));\r\n\t\t\t\tInputStream is_get_width_height = pro_get_width_height.getInputStream();\r\n\t\t\t\tInputStreamReader isr_get_width_height = new InputStreamReader(is_get_width_height);\r\n\t\t\t\tBufferedReader br_get_width_height = new BufferedReader(isr_get_width_height);\r\n\r\n\t\t\t\tString rl_get_width_height = br_get_width_height.readLine();\r\n\t\t\t\tint width = Integer.parseInt((rl_get_width_height.split(\" \")[2].trim().split(\"x\")[0]));\r\n\t\t\t\tint height = Integer.parseInt((rl_get_width_height.split(\" \")[2].trim().split(\"x\")[1]));\r\n\t\t\t\tdevicesBean.setWidth(width);\r\n\t\t\t\tdevicesBean.setHeight(height);\r\n\r\n\t\t\t\tbr_get_width_height.close();\r\n\t\t\t\tisr_get_width_height.close();\r\n\t\t\t\tis_get_width_height.close();\r\n\t\t\t\tpro_get_width_height.destroy();\r\n\t\t\t}\r\n\r\n\t\t\t// 设置 每个设备 要要运行的程序\r\n\t\t\twhile (true) {\r\n\t\t\t\tSystem.out.println(\"\\n 请选择设备,输入设备前的编号(设置完成请输入y):\\n\");\r\n\r\n\t\t\t\tfor (int j = 0; j < devices.size(); j++) {\r\n\t\t\t\t\tDeviceBean deviceBean = devices.get(j);\r\n\t\t\t\t\tSystem.out.println(\" \" + j + \", \" + deviceBean.getDevicename() + \" \" + deviceBean.getWidth() + \"x\"\r\n\t\t\t\t\t\t\t+ deviceBean.getHeight() + \" \" + deviceBean.getCurrRunPackName());\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println();\r\n\r\n\t\t\t\tInputStreamReader isr = new InputStreamReader(System.in);\r\n\t\t\t\tBufferedReader br = new BufferedReader(isr);\r\n\t\t\t\tString line = br.readLine().trim();\r\n\r\n\t\t\t\tif (line.equals(\"y\")) {\r\n\t\t\t\t\tSystem.out.println(\"\\n 设置完成 \\n\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tboolean paramsDeviceOk = false;\r\n\t\t\t\tfor (int m = 0; m < devices.size(); m++) {\r\n\t\t\t\t\tif (Integer.parseInt(line) == m) {\r\n\t\t\t\t\t\tparamsDeviceOk = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!paramsDeviceOk) {\r\n\t\t\t\t\tSystem.out.println(\" \\n 输入有误 程序结束 \\n\");\r\n\t\t\t\t\tthrow new Exception(\" \\n 输入有误 \\n \");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tDeviceBean deviceBean = devices.get(Integer.parseInt(line));\r\n\r\n\t\t\t\tSystem.out.println(\"\\n 您选择的设备是 : \" + deviceBean.getDevicename() + \"\\n\");\r\n\r\n\t\t\t\tSystem.out.println(\" \\n 请选择项目,输入项目前的编号:\\n\");\r\n\r\n\t\t\t\tfor (int s = 0; s < Commons.PACKAGENAMES.size(); s++) {\r\n\t\t\t\t\tSystem.out.println(\" \" + s + \" , \" + Commons.PACKAGENAMES.get(s));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tInputStreamReader isr2 = new InputStreamReader(System.in);\r\n\t\t\t\tBufferedReader br2 = new BufferedReader(isr2);\r\n\t\t\t\tString line2 = br2.readLine().trim();\r\n\r\n\t\t\t\tboolean paramsProjectOk = false;\r\n\t\t\t\tfor (int m = 0; m < Commons.PACKAGENAMES.size(); m++) {\r\n\t\t\t\t\tif (Integer.parseInt(line2) == m) {\r\n\t\t\t\t\t\tparamsProjectOk = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!paramsProjectOk) {\r\n\t\t\t\t\tSystem.out.println(\" \\n 输入有误 程序结束 \\n\");\r\n\t\t\t\t\tthrow new Exception(\" \\n 输入有误 \\n \");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdevices.get(Integer.parseInt(line))\r\n\t\t\t\t\t\t.setCurrRunPackName(Commons.PACKAGENAMES.get(Integer.parseInt(line2)));\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//开始启动程序\r\n\t\t\tthreadMap = new HashMap<String, Thread>();\r\n\r\n\t\t\tfor (DeviceBean devicesBean : devices) {\r\n\t\t\t\tString packageName = devicesBean.getCurrRunPackName();\r\n\t\t\t\tswitch (packageName) {\r\n\t\t\t\tcase HttTaskThread.PACKAGENAME:\r\n\t\t\t\t\tHttTaskThread taskThread = new HttTaskThread(devicesBean, runtime);\r\n\t\t\t\t\ttaskThread.start();\r\n\t\t\t\t\tthreadMap.put(devicesBean.getCurrRunPackName(), taskThread);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase DfttTaskThread.PACKAGENAME:\r\n\t\t\t\t\tDfttTaskThread dfttTaskThread = new DfttTaskThread(devicesBean, runtime);\r\n\t\t\t\t\tdfttTaskThread.start();\r\n\t\t\t\t\tthreadMap.put(devicesBean.getCurrRunPackName(), dfttTaskThread);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase SbTaskThread.PACKAGENAME:\r\n\t\t\t\t\tSbTaskThread sbTaskThread = new SbTaskThread(devicesBean, runtime);\r\n\t\t\t\t\tsbTaskThread.start();\r\n\t\t\t\t\tthreadMap.put(devicesBean.getCurrRunPackName(), sbTaskThread);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase ShzxTaskThread.PACKAGENAME:\r\n\t\t\t\t\tShzxTaskThread shzxTaskThread = new ShzxTaskThread(devicesBean, runtime);\r\n\t\t\t\t\tshzxTaskThread.start();\r\n\t\t\t\t\tthreadMap.put(devicesBean.getCurrRunPackName(), shzxTaskThread);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t// 开启监护线程\r\n\t\t\tMonitorThread monitorThread = new MonitorThread(runtime, devices,threadMap);\r\n\t\t\tmonitorThread.start();\r\n\r\n\t\t\t// 开启定时杀死程序线程\r\n\t\t\tTimerKiller timerKillThread = new TimerKiller(runtime, devices);\r\n\t\t\ttimerKillThread.start();\r\n\t\t\t\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\r\n\t}", "public static void main (String[] args){\r\n\t\tint num_threads = 100;\r\n\t\tpid_manager pid_test = new pid_manager();\r\n\t\tSystem.out.println(\"Ready \\n\");\r\n\t\tpid_test.allocate_map();\r\n\t\tfor(int i = 0; i < num_threads; i++){\r\n\t\t\tThread rc = new Thread(new mthread(pid_test));\r\n\t\t\trc.start();\r\n\t}\r\n}", "public interface ShellLaunchListener {\n /**\n * Called when the connection to the target machine is initiated, for example\n * when debugger reports machine attach.\n * @param ev \n */\n public void connectionInitiated(ShellLaunchEvent ev);\n \n /**\n * The handshake with the target VM has succeeded, or failed. The 'agent' field\n * is valid.\n * @param ev \n */\n public void handshakeCompleted(ShellLaunchEvent ev);\n \n /**\n * Called when the connection has been closed. The connection and\n * agent fields are valid. Agent may be still live, so a new Connection\n * can be opened.\n * @param ev \n */\n public void connectionClosed(ShellLaunchEvent ev);\n \n /**\n * The VM agent has been destroyed. Perhaps the entire VM went down or something.\n * @param ev \n */\n public void agentDestroyed(ShellLaunchEvent ev);\n}", "private void startBootstrapServices() {\n traceBeginAndSlog(\"StartWatchdog\");\n Watchdog watchdog = Watchdog.getInstance();\n watchdog.start();\n traceEnd();\n if (MAPLE_ENABLE) {\n this.mPrimaryZygotePreload = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$UyrPns7R814gZEylCbDKhe8It4.INSTANCE, \"PrimaryZygotePreload\");\n }\n Slog.i(TAG, \"Reading configuration...\");\n traceBeginAndSlog(\"ReadingSystemConfig\");\n SystemServerInitThreadPool.get().submit($$Lambda$YWiwiKm_Qgqb55C6tTuq_n2JzdY.INSTANCE, \"ReadingSystemConfig\");\n traceEnd();\n traceBeginAndSlog(\"StartInstaller\");\n this.installer = (Installer) this.mSystemServiceManager.startService(Installer.class);\n traceEnd();\n traceBeginAndSlog(\"DeviceIdentifiersPolicyService\");\n this.mSystemServiceManager.startService(DeviceIdentifiersPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"UriGrantsManagerService\");\n this.mSystemServiceManager.startService(UriGrantsManagerService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartActivityManager\");\n ActivityTaskManagerService atm = this.mSystemServiceManager.startService(ActivityTaskManagerService.Lifecycle.class).getService();\n this.mActivityManagerService = ActivityManagerService.Lifecycle.startService(this.mSystemServiceManager, atm);\n this.mActivityManagerService.setSystemServiceManager(this.mSystemServiceManager);\n this.mActivityManagerService.setInstaller(this.installer);\n this.mWindowManagerGlobalLock = atm.getGlobalLock();\n traceEnd();\n traceBeginAndSlog(\"StartPowerManager\");\n try {\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(\"com.android.server.power.HwPowerManagerService\");\n } catch (RuntimeException e) {\n Slog.w(TAG, \"create HwPowerManagerService failed\");\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(PowerManagerService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartThermalManager\");\n this.mSystemServiceManager.startService(ThermalManagerService.class);\n traceEnd();\n try {\n Slog.i(TAG, \"PG Manager service\");\n this.mPGManagerService = PGManagerService.getInstance(this.mSystemContext);\n } catch (Throwable e2) {\n reportWtf(\"PG Manager service\", e2);\n }\n traceBeginAndSlog(\"InitPowerManagement\");\n this.mActivityManagerService.initPowerManagement();\n traceEnd();\n traceBeginAndSlog(\"StartRecoverySystemService\");\n this.mSystemServiceManager.startService(RecoverySystemService.class);\n traceEnd();\n RescueParty.noteBoot(this.mSystemContext);\n traceBeginAndSlog(\"StartLightsService\");\n try {\n this.mSystemServiceManager.startService(\"com.android.server.lights.LightsServiceBridge\");\n } catch (RuntimeException e3) {\n Slog.w(TAG, \"create LightsServiceBridge failed\");\n this.mSystemServiceManager.startService(LightsService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartSidekickService\");\n if (SystemProperties.getBoolean(\"config.enable_sidekick_graphics\", false)) {\n this.mSystemServiceManager.startService(WEAR_SIDEKICK_SERVICE_CLASS);\n }\n traceEnd();\n traceBeginAndSlog(\"StartDisplayManager\");\n this.mDisplayManagerService = (DisplayManagerService) this.mSystemServiceManager.startService(DisplayManagerService.class);\n traceEnd();\n try {\n this.mSystemServiceManager.startService(\"com.android.server.security.HwSecurityService\");\n Slog.i(TAG, \"HwSecurityService start success\");\n } catch (Exception e4) {\n Slog.e(TAG, \"can't start HwSecurityService service\");\n }\n traceBeginAndSlog(\"WaitForDisplay\");\n this.mSystemServiceManager.startBootPhase(100);\n traceEnd();\n String cryptState = (String) VoldProperties.decrypt().orElse(\"\");\n if (ENCRYPTING_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Detected encryption in progress - only parsing core apps\");\n this.mOnlyCore = true;\n } else if (ENCRYPTED_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Device encrypted - only parsing core apps\");\n this.mOnlyCore = true;\n }\n HwBootCheck.bootSceneEnd(100);\n HwBootFail.setBootTimer(false);\n HwBootCheck.bootSceneStart(105, 900000);\n if (!this.mRuntimeRestart) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_start\", (int) SystemClock.elapsedRealtime());\n }\n traceBeginAndSlog(\"StartPackageManagerService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"packagemanagermain\");\n this.mPackageManagerService = PackageManagerService.main(this.mSystemContext, this.installer, this.mFactoryTestMode != 0, this.mOnlyCore);\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n this.mFirstBoot = this.mPackageManagerService.isFirstBoot();\n this.mPackageManager = this.mSystemContext.getPackageManager();\n Slog.i(TAG, \"Finish_StartPackageManagerService\");\n traceEnd();\n if (!this.mRuntimeRestart && !isFirstBootOrUpgrade()) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_ready\", (int) SystemClock.elapsedRealtime());\n HwBootCheck.addBootInfo(\"[bootinfo]\\nisFirstBoot: \" + this.mFirstBoot + \"\\nisUpgrade: \" + this.mPackageManagerService.isUpgrade());\n HwBootCheck.bootSceneStart(101, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n }\n HwBootCheck.bootSceneEnd(105);\n if (!this.mOnlyCore && !SystemProperties.getBoolean(\"config.disable_otadexopt\", false)) {\n traceBeginAndSlog(\"StartOtaDexOptService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"moveab\");\n OtaDexoptService.main(this.mSystemContext, this.mPackageManagerService);\n } catch (Throwable th) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n throw th;\n }\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n }\n traceBeginAndSlog(\"StartUserManagerService\");\n this.mSystemServiceManager.startService(UserManagerService.LifeCycle.class);\n traceEnd();\n traceBeginAndSlog(\"InitAttributerCache\");\n AttributeCache.init(this.mSystemContext);\n traceEnd();\n traceBeginAndSlog(\"SetSystemProcess\");\n this.mActivityManagerService.setSystemProcess();\n traceEnd();\n traceBeginAndSlog(\"InitWatchdog\");\n watchdog.init(this.mSystemContext, this.mActivityManagerService);\n traceEnd();\n this.mDisplayManagerService.setupSchedulerPolicies();\n traceBeginAndSlog(\"StartOverlayManagerService\");\n this.mSystemServiceManager.startService(new OverlayManagerService(this.mSystemContext, this.installer));\n traceEnd();\n traceBeginAndSlog(\"StartSensorPrivacyService\");\n this.mSystemServiceManager.startService(new SensorPrivacyService(this.mSystemContext));\n traceEnd();\n if (SystemProperties.getInt(\"persist.sys.displayinset.top\", 0) > 0) {\n this.mActivityManagerService.updateSystemUiContext();\n ((DisplayManagerInternal) LocalServices.getService(DisplayManagerInternal.class)).onOverlayChanged();\n }\n this.mSensorServiceStart = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$oG4I04QJrkzCGs6IcMTKU2211A.INSTANCE, START_SENSOR_SERVICE);\n } catch (Throwable th2) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n throw th2;\n }\n }", "public void getRunningInstances() {\n LogContainerResultCallback resultCallback = new LogContainerResultCallback();\n //override method onNext of resultcallback\n dockerClient.logContainerCmd(\"id\").exec(resultCallback);\n dockerClient.attachContainerCmd(\"id\").withStdIn(new ByteArrayInputStream(\"list\\n\".getBytes()));\n }", "public static void main(String[] args) {\n \n ProgressBar pb = new ProgressBar();\n pb.setVisible(true);\n for(int i=0;i<=100;i++){\n try {\n pb.getProgressBar().setValue(i);\n Thread.sleep(50);\n } catch (InterruptedException ex) {\n Logger.getLogger(ProgressBar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n pb.dispose();\n /* try {\n UIManager.setLookAndFeel(new AcrylLookAndFeel());\n } catch (UnsupportedLookAndFeelException ex) {\n Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null,ex);\n }*/\n \n \n // Registry registry = LocateRegistry.getRegistry(\"192.168.100.5\",6789);\n // registry.lookup(\"service\");\n \n // final UserService Usservice = (UserService) registry.lookup(\"service\");\n // final Tahap1Service service1 = (Tahap1Service) registry.lookup(\"service\");\n // final Tahap2Service service2 = (Tahap2Service) registry.lookup(\"service\");\n \n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n try {\n UIManager.setLookAndFeel(\n new com.jtattoo.plaf.mcwin.McWinLookAndFeel());\n \n Login tampilan = new Login();\n Dimension screen=Toolkit.getDefaultToolkit().getScreenSize();\n int lebar=(screen.width-tampilan.getSize().width)/2;\n int tinggi=(screen.height-tampilan.getSize().height)/2;\n // tampilan.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n tampilan.setLocation(lebar,tinggi);\n tampilan.setResizable(false);\n\n tampilan.setVisible(true);\n \n } catch (UnsupportedLookAndFeelException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n \n }\n });\n \n \n\n \n\n }", "@Override\n public final void contextInitialized(final ServletContextEvent sce) {\n context = sce.getServletContext();\n\n String apiSrvDaemonPath = context.getRealPath(PS);\n System.setProperty(\"APISrvDaemonPath\", context.getRealPath(\"/\"));\n System.setProperty(\"APISrvDaemonVersion\",\n \"v.0.0.2-22-g2338f25-2338f25-40\");\n\n // Notify execution\n System.out.println(\"--- \" + \"Starting APIServerDaemon \"\n + System.getProperty(\"APISrvDaemonVersion\") + \" ---\");\n System.out.println(\"Java vendor : '\" + VN + \"'\");\n System.out.println(\"Java vertion: '\" + VR + \"'\");\n System.out.println(\"Running as : '\" + US + \"' username\");\n System.out.println(\"Servlet path: '\" + apiSrvDaemonPath + \"'\");\n\n // Initialize log4j logging\n String log4jPropPath =\n apiSrvDaemonPath + \"WEB-INF\" + PS + \"log4j.properties\";\n File log4PropFile = new File(log4jPropPath);\n\n if (log4PropFile.exists()) {\n System.out.println(\"Initializing log4j with: \" + log4jPropPath);\n PropertyConfigurator.configure(log4jPropPath);\n } else {\n System.err.println(\n \"WARNING: '\" + log4jPropPath\n + \" 'file not found, so initializing log4j \"\n + \"with BasicConfigurator\");\n BasicConfigurator.configure();\n }\n\n // Make a test with jdbc/geApiServerPool\n // jdbc/UserTrackingPool\n // jdbc/gehibernatepool connection pools\n String currentPool = \"not yet defined!\";\n String poolPrefix = \"java:/comp/env/\";\n String[] pools = {\"jdbc/fgApiServerPool\",\n \"jdbc/UserTrackingPool\",\n \"jdbc/gehibernatepool\"};\n Connection[] connPools = new Connection[pools.length];\n\n for (int i = 0; i < pools.length; i++) {\n try {\n Context initContext = new InitialContext();\n Context envContext =\n (Context) initContext.lookup(\"java:comp/env\");\n\n currentPool = pools[i];\n\n // DataSource ds =\n // (DataSource)initContext.lookup(poolPrefix+currentPool);\n DataSource ds = (DataSource) envContext.lookup(currentPool);\n\n connPools[i] = ds.getConnection();\n System.out.println(\"PERFECT: \" + currentPool + \" was ok\");\n } catch (Exception e) {\n System.err.println(\"WARNING: \" + currentPool + \" failed\" + LS\n + e.toString());\n } finally {\n try {\n connPools[i].close();\n } catch (Exception e) {\n System.err.println(\"WARNING: \" + currentPool\n + \" failed to close\" + LS + e.toString());\n }\n }\n }\n\n // Register MySQL driver\n APIServerDaemonDB.registerDriver();\n\n // Initializing the daemon\n if (asDaemon == null) {\n asDaemon = new APIServerDaemon();\n }\n\n asDaemon.startup();\n }", "private void monotoring() {\n int sizeMap = this.hostsMap.size();\n System.out.print(\" \");\n System.out.println(\"Monotoring...\");\n for(int i=0 ; i<sizeMap; i++) {\n\n List<String> addAndPort = this.hostsMap.get(i);\n\n LocalDateTime myDateObj = LocalDateTime.now();\n DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yy_HH-mm-ss\");\n String formattedDate = myDateObj.format(myFormatObj);\n\n new Thread(() -> {\n\n int interval = 0, monotor=0;\n\n String address = addAndPort.get(0);\n String port = addAndPort.get(1);\n\n Client client = null;\n try {\n client = new Client(address, port);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n String output = new String();\n\n if(this.secondsInterval<50){\n monotor=1;\n }else{\n if(this.secondsInterval<200){\n monotor=5;\n }else{\n monotor=10;\n }\n }\n while (interval < this.secondsInterval) {\n client.setSeconds(interval);\n output = output + client.snmpWalk();\n interval += monotor;\n try {\n Thread.sleep(monotor * 1000);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }\n\n Logger logFile = Logger.getLogger(\"MyLog\" + address);\n FileHandler fh;\n\n try {\n String linkLog = \"../logger\"+ address + \"_\" + formattedDate + \".log\";\n fh = new FileHandler(linkLog);\n logFile.addHandler(fh);\n SimpleFormatter formatter = new SimpleFormatter();\n fh.setFormatter(formatter);\n logFile.info(output);\n } catch (SecurityException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }).start();\n }\n }", "private static boolean runScript( String script, String [] envVars, \n\t\t\tHCI_EventHandler eventHandler, ScriptLineHandler lineHandler) {\n\t\t\n\t\ttry {\n\t\t\tProcess process = Runtime.getRuntime().exec(script, envVars);\n\t\t\t\n\t\t\tint exitStatus = process.waitFor();\n\t\t\tif ( exitStatus < 0) {\n\t\t\t\tlogger.severe( \"runCommands: process exit status: \" + String.valueOf( exitStatus));\n\t\t\t}\n\t\t\t\n\t\t\tBufferedReader stdInput = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\t\t\tBufferedReader stdError = new BufferedReader(new InputStreamReader(process.getErrorStream()));\n\t\t\t\n\t\t\tString s = null;\n\t\t\tStringBuffer sb = null;\t\t\t\t\n\t\t\t\n\t\t\twhile ((s = stdInput.readLine()) != null) {\n\t\t\t\t\n\t\t\t\tSystem.err.println( \"stdout: \" + s);\n\n\t\t\t\t// responses from hcitool start with an \"> HCI Event:\" string, followed by some length indication \n\t\t\t\t// HCI Events are split across two lines... it seems\n\t\t\t\t// otherwise we can detect the end of an HCI Event by using some length value which comes along on the first line\n\t\t\t\tif (s.startsWith(\"> HCI Event:\")) {\n\t\t\t\t\tsb = new StringBuffer(s);\n\t\t\t\t} else {\n\t\t\t\t\tif (sb != null) {\n\t\t\t\t\t\tsb.append(s);\t\t\n\t\t\t\t\t\tHCI_Event evt = handleHCIEvent( sb.toString());\n\t\t\t\t\t\t// callback for the event\n\t\t\t\t\t\tif ( evt != null && eventHandler != null) {\n\t\t\t\t\t\t\teventHandler.onEvent( evt);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsb = null;\t\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ( lineHandler != null) {\n\t\t\t\t\t\t\tlineHandler.onStdOutLine( s);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\twhile ((s = stdError.readLine()) != null) {\n\t\t\t\t\n System.err.println( \"stderr: \" + s);\n \n if ( s.contains( \"Connection timed out\") ||\n \t\ts.contains( \"Network is down\")) {\n \t logger.severe( \"BLE hardware hung-up? \" + s);\n \t System.exit( -1);\n }\n \n if ( lineHandler != null)\n \t lineHandler.onStdErrLine( s);\n\t\t\t}\t\n\t\n\t\t} catch (Exception e) {\n\t\t\tlogger.severe( \"runCommands: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public static void main(String[] args) throws Exception {\n for (int i = 0; i < args.length; i++) {\n if(args[i].startsWith(\"--daemon\")) {\n\n\t // load the daemonization code\n ClassLoader cl = new URLClassLoader(new URL[]{\n extractFromJar(\"/jna.jar\",\"jna\",\"jar\").toURI().toURL(),\n extractFromJar(\"/akuma.jar\",\"akuma\",\"jar\").toURI().toURL(),\n });\n Class $daemon = cl.loadClass(\"com.sun.akuma.Daemon\");\n Object daemon = $daemon.newInstance();\n\n // tell the user that we'll be starting as a daemon.\n Method isDaemonized = $daemon.getMethod(\"isDaemonized\", new Class[]{});\n if(!((Boolean)isDaemonized.invoke(daemon,new Object[0])).booleanValue()) {\n System.out.println(\"Forking into background to run as a daemon.\");\n if(!hasLogOption(args))\n System.out.println(\"Use --logfile to redirect output to a file\");\n }\n\n Method m = $daemon.getMethod(\"all\", new Class[]{boolean.class});\n m.invoke(daemon,new Object[]{Boolean.TRUE});\n }\n }\n\n\n // if the output should be redirect to a file, do it now\n for (int i = 0; i < args.length; i++) {\n if(args[i].startsWith(\"--logfile=\")) {\n LogFileOutputStream los = new LogFileOutputStream(new File(args[i].substring(\"--logfile=\".length())));\n PrintStream ps = new PrintStream(los);\n System.setOut(ps);\n System.setErr(ps);\n // don't let winstone see this\n List _args = new ArrayList(asList(args));\n _args.remove(i);\n args = (String[]) _args.toArray(new String[_args.size()]);\n break;\n }\n }\n\n // this is so that anything using AWT/Swing, like JFreeChart, can work nicely even if we are launched as a daemon\n System.setProperty(\"java.awt.headless\",\"true\");\n\n // tell Hudson that Winstone doesn't support chunked encoding.\n\t\t// TODO how to handle properties like these, support a callback\n if(System.getProperty(\"hudson.diyChunking\")==null)\n System.setProperty(\"hudson.diyChunking\",\"true\");\n\n File me = whoAmI();\n System.out.println(\"Running from: \" + me);\n System.setProperty(\"executable-war\",me.getAbsolutePath()); // remember the location so that we can access it from within webapp\n\n // put winstone jar in a file system so that we can load jars from there\n File tmpJar = extractFromJar(\"/winstone.jar\",\"winstone\",\"jar\");\n\n // clean up any previously extracted copy, since\n // winstone doesn't do so and that causes problems when newer version of the same web app is deployed.\n File tempFile = File.createTempFile(\"dummy\", \"dummy\");\n deleteContents(new File(tempFile.getParent(), \"winstone/\" + me.getName()));\n tempFile.delete();\n\n // locate the Winstone launcher\n final ClassLoader cl = new URLClassLoader(new URL[]{tmpJar.toURI().toURL()});\n final Class<?> launcher = cl.loadClass(\"winstone.Launcher\");\n final Method mainMethod = launcher.getMethod(\"main\", new Class[]{String[].class});\n\n // figure out the arguments\n final List<String> arguments = new ArrayList<String>(asList(args));\n arguments.add(0,\"--warfile=\"+ me.getAbsolutePath());\n\n if(!hasWebRoot(arguments)) {\n // defaults to ~/.hudson/war since many users reported that cron job attempts to clean up\n // the contents in the temporary directory.\n arguments.add(\"--webroot=\"+new File(getHomeDir(),\"war\"));\n }\n\n // override the usage screen\n\t\t// TODO handle this, does not work with a standard winstone build, look at Kohsuke's build\n\t\t// TODO use name from pom as header of usage\n\t\t// TODO have options for the Maven plugin that sets \n// Field usage = launcher.getField(\"USAGE\");\n/*\n usage.set(null,\"Hudson Continuous Integration Engine \"+getVersion()+\"\\n\" +\n \"Usage: java -jar hudson.war [--option=value] [--option=value]\\n\" +\n \"\\n\" +\n \"Options:\\n\" +\n \" --daemon = fork into background and run as daemon (Unix only)\\n\" +\n \" --config = load configuration properties from here. Default is ./winstone.properties\\n\" +\n \" --prefix = add this prefix to all URLs (eg http://localhost:8080/prefix/resource). Default is none\\n\" +\n \" --commonLibFolder = folder for additional jar files. Default is ./lib\\n\" +\n \" \\n\" +\n \" --logfile = redirect log messages to this file\\n\" +\n \" --logThrowingLineNo = show the line no that logged the message (slow). Default is false\\n\" +\n \" --logThrowingThread = show the thread that logged the message. Default is false\\n\" +\n \" --debug = set the level of debug msgs (1-9). Default is 5 (INFO level)\\n\" +\n \"\\n\" +\n \" --httpPort = set the http listening port. -1 to disable, Default is 8080\\n\" +\n \" --httpListenAddress = set the http listening address. Default is all interfaces\\n\" +\n \" --httpDoHostnameLookups = enable host name lookups on incoming http connections (true/false). Default is false\\n\" +\n \" --httpsPort = set the https listening port. -1 to disable, Default is disabled\\n\" +\n \" --httpsListenAddress = set the https listening address. Default is all interfaces\\n\" +\n \" --httpsDoHostnameLookups = enable host name lookups on incoming https connections (true/false). Default is false\\n\" +\n \" --httpsKeyStore = the location of the SSL KeyStore file. Default is ./winstone.ks\\n\" +\n \" --httpsKeyStorePassword = the password for the SSL KeyStore file. Default is null\\n\" +\n \" --httpsKeyManagerType = the SSL KeyManagerFactory type (eg SunX509, IbmX509). Default is SunX509\\n\" +\n \" --ajp13Port = set the ajp13 listening port. -1 to disable, Default is 8009\\n\" +\n \" --ajp13ListenAddress = set the ajp13 listening address. Default is all interfaces\\n\" +\n \" --controlPort = set the shutdown/control port. -1 to disable, Default disabled\\n\" +\n \" \\n\" +\n \" --handlerCountStartup = set the no of worker threads to spawn at startup. Default is 5\\n\" +\n \" --handlerCountMax = set the max no of worker threads to allow. Default is 300\\n\" +\n \" --handlerCountMaxIdle = set the max no of idle worker threads to allow. Default is 50\\n\" +\n \" \\n\" +\n \" --simulateModUniqueId = simulate the apache mod_unique_id function. Default is false\\n\" +\n \" --useSavedSessions = enables session persistence (true/false). Default is false\\n\" +\n \" --usage / --help = show this message\\n\" +\n \" --version = show the version and quit\\n\" +\n \" \\n\" +\n \"Security options:\\n\" +\n \" --realmClassName = Set the realm class to use for user authentication. Defaults to ArgumentsRealm class\\n\" +\n \" \\n\" +\n \" --argumentsRealm.passwd.<user> = Password for user <user>. Only valid for the ArgumentsRealm realm class\\n\" +\n \" --argumentsRealm.roles.<user> = Roles for user <user> (comma separated). Only valid for the ArgumentsRealm realm class\\n\" +\n \" \\n\" +\n \" --fileRealm.configFile = File containing users/passwds/roles. Only valid for the FileRealm realm class\\n\" +\n \" \\n\" +\n \"Access logging:\\n\" +\n \" --accessLoggerClassName = Set the access logger class to use for user authentication. Defaults to disabled\\n\" +\n \" --simpleAccessLogger.format = The log format to use. Supports combined/common/resin/custom (SimpleAccessLogger only)\\n\" +\n \" --simpleAccessLogger.file = The location pattern for the log file(SimpleAccessLogger only)\");\n*/\n\n if(arguments.contains(\"--version\")) {\n System.out.println(getVersion());\n return;\n }\n\n // run\n mainMethod.invoke(null,new Object[]{arguments.toArray(new String[0])});\n }", "public static void main(String[] args) {\n // Set MessageDispatcher.\n // /////////////////////////////////////\n MessageDispatcher dispatcher = new MessageDispatcher(\n SYSTEM_MGR_ID,\n DISPATCHER_IP,\n Integer.parseInt(DISPATCHER_PORT));\n dispatcher.start();\n\n // /////////////////////////////////////\n // // Set SystemManager Interface\n // /////////////////////////////////////\n SystemManagerInterface systemMngInterface =\n new SystemManagerInterface(dispatcher);\n \n // /////////////////////////////////////\n // Set NetworkIntece\n // /////////////////////////////////////\n NetworkInterface originalNwInterface =\n new NetworkInterface(dispatcher, ORIGINAL_NW_ID);\n NetworkInterface aggregatedNwInterface =\n new NetworkInterface(dispatcher, AGGREGATED_NW_ID);\n\n outMsg(\"//////////////////////////////////////////////////\");\n outMsg(\"//// (1) Delete All Flows.\");\n outMsg(\"//////////////////////////////////////////////////\");\n List<Response> rsps = originalNwInterface.deleteAllFlow(); \n for (Response rsp : rsps) {\n outMsg(\" -DELETE FLow. \");\n outMsg(\" -Received: \" + rsp.statusCode + \" \" + rsp.getBodyValue());\n }\n wait(WAIT_TIME);\n\n rsps = aggregatedNwInterface.deleteAllFlow(); \n for (Response rsp : rsps) {\n outMsg(\" -DELETE FLow. \");\n outMsg(\" -Received: \" + rsp.statusCode + \" \" + rsp.getBodyValue());\n }\n wait(WAIT_TIME);\n \n outMsg(\"//////////////////////////////////////////////////\");\n outMsg(\"//// (2) Delete Topology.\");\n outMsg(\"//////////////////////////////////////////////////\");\n rsps = originalNwInterface.deleteTopology();\n for (Response rsp : rsps) {\n outMsg(\" -PUT (empty)Topology (Delete Topology). \");\n outMsg(\" -Received: \" + rsp.statusCode + \" \" + rsp.getBodyValue());\n }\n wait(WAIT_TIME * 2);\n \n rsps = aggregatedNwInterface.deleteTopology();\n for (Response rsp : rsps) {\n outMsg(\" -PUT (empty)Topology (Delete Topology). \");\n outMsg(\" -Received: \" + rsp.statusCode + \" \" + rsp.getBodyValue());\n } \n wait(WAIT_TIME * 2);\n \n outMsg(\"//////////////////////////////////////////////////\");\n outMsg(\"//// (3) Delete Connections.\");\n outMsg(\"//////////////////////////////////////////////////\");\n Response rsp = systemMngInterface.delConnection(\"conn1\");\n outMsg(\" -DELETE Connection. \");\n outMsg(\" -Received: \" + rsp.statusCode + \" \" + rsp.getBodyValue());\n wait(WAIT_TIME * 2);\n\n rsp = systemMngInterface.delConnection(\"conn2\");\n outMsg(\" -DELETE Connection. \");\n outMsg(\" -Received: \" + rsp.statusCode + \" \" + rsp.getBodyValue());\n wait(WAIT_TIME * 2);\n\n\n outMsg(\"//////////////////////////////////////////////////\");\n outMsg(\"//// (4) Delete Components.\");\n outMsg(\"//////////////////////////////////////////////////\");\n rsp = systemMngInterface.delComponent(ORIGINAL_NW_ID);\n outMsg(\" -DELETE Component. \");\n outMsg(\" -Received: \" + rsp.statusCode + \" \" + rsp.getBodyValue());\n wait(WAIT_TIME * 2);\n\n rsp = systemMngInterface.delComponent(AGGREGATED_NW_ID);\n outMsg(\" -DELETE Component. \");\n outMsg(\" -Received: \" + rsp.statusCode + \" \" + rsp.getBodyValue());\n wait(WAIT_TIME * 2);\n \n rsp = systemMngInterface.delComponent(AGGREGATOR_ID);\n outMsg(\" -DELETE Component. \");\n outMsg(\" -Received: \" + rsp.statusCode + \" \" + rsp.getBodyValue());\n wait(WAIT_TIME * 2);\n\n dispatcher.close();\n System.exit(0);\n\n }", "@Override\n \tprotected void doExecutionStarted() throws CoreException {\n \t\tfinal OpenMpiRuntimeSystem rtSystem = (OpenMpiRuntimeSystem) getRtSystem();\n \t\tfinal IPJob ipJob = PTPCorePlugin.getDefault().getUniverse().getResourceManager(rtSystem.getRmID()).getQueueById(rtSystem.getQueueID()).getJobById(getJobID());\n \t\tfinal String zeroIndexProcessID = rtSystem.createProcess(getJobID(), \"Open MPI run\", 0);\n \t\tprocessIDs = new String[] { zeroIndexProcessID } ;\n \n \t\t/*\n \t\t * Listener that saves stdout.\n \t\t */\n \t\tfinal PipedOutputStream stdoutOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream stdoutInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tstdoutInputStream.connect(stdoutOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream stdoutPipedStreamListener = new InputStreamListenerToOutputStream(stdoutOutputStream);\n \t\t\n \t\tThread stdoutThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tBufferedReader stdoutBufferedReader = new BufferedReader(new InputStreamReader(stdoutInputStream));\n \t\t\t\tIPProcess ipProc = ipJob.getProcessById(zeroIndexProcessID);\n \t\t\t\ttry {\n \t\t\t\t\tString line = stdoutBufferedReader.readLine();\n \t\t\t\t\twhile (line != null) {\n \t\t\t\t\t\tsynchronized (lock1) {\n \t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStdoutAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tSystem.out.println(line);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tline = stdoutBufferedReader.readLine();\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tPTPCorePlugin.log(e);\n \t\t\t\t} finally {\n \t\t\t\t\tstdoutPipedStreamListener.disable();\n //\t\t\t\t\tif (stdoutObserver != null) {\n //\t\t\t\t\t\tstdoutObserver.removeListener(stdoutPipedStreamListener);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstdoutOutputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstdoutInputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Listener that saves stderr.\n \t\t */\n \t\tfinal PipedOutputStream stderrOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream stderrInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tstderrInputStream.connect(stderrOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream stderrPipedStreamListener = new InputStreamListenerToOutputStream(stderrOutputStream);\n \t\tThread stderrThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tfinal BufferedReader stderrBufferedReader = new BufferedReader(new InputStreamReader(stderrInputStream));\n \t\t\t\tIPProcess ipProc = ipJob.getProcessById(zeroIndexProcessID);\n \t\t\t\ttry {\n \t\t\t\t\tString line = stderrBufferedReader.readLine();\n \t\t\t\t\twhile (line != null) {\n \t\t\t\t\t\tsynchronized (lock1) {\n \t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStderrAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStdoutAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tSystem.err.println(line);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tline = stderrBufferedReader.readLine();\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tPTPCorePlugin.log(e);\n \t\t\t\t} finally {\n \t\t\t\t\tstderrPipedStreamListener.disable();\n //\t\t\t\t\tif (stderrObserver != null) {\n //\t\t\t\t\t\tstderrObserver.removeListener(stderrPipedStreamListener);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstderrOutputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstderrInputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Thread that parses map information.\n \t\t */\n \t\tfinal PipedOutputStream parserOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream parserInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tparserInputStream.connect(parserOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream parserPipedStreamListener = new InputStreamListenerToOutputStream(parserOutputStream);\n \t\tThread parserThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tOpenMpiResourceManagerConfiguration configuration = (OpenMpiResourceManagerConfiguration) getRtSystem().getRmConfiguration();\n \t\t\t\ttry {\n \t\t\t\t\t// Parse stdout or stderr, depending on mpi 1.2 or 1.3\n \t\t\t\t\tif (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_12)) {\n \t\t\t\t\t\tmap = OpenMpiProcessMapText12Parser.parse(parserInputStream);\n \t\t\t\t\t} else if (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_13)) {\n \t\t\t\t\t\tmap = OpenMpiProcessMapXml13Parser.parse(parserInputStream, new IOpenMpiProcessMapXml13ParserListener() {\n \t\t\t\t\t\t\tpublic void startDocument() {\n \t\t\t\t\t\t\t\t// Empty\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tpublic void endDocument() {\n \t\t\t\t\t\t\t\t/*\n \t\t\t\t\t\t\t\t * Turn of listener that generates input for parser when parsing finishes.\n \t\t\t\t\t\t\t\t * If not done, the parser will close the piped inputstream, making the listener\n \t\t\t\t\t\t\t\t * get IOExceptions for closed stream.\n \t\t\t\t\t\t\t\t */\n \t\t\t\t\t\t\t\tif (stderrObserver != null) {\n \t\t\t\t\t\t\t\t\tparserPipedStreamListener.disable();\n \t\t\t\t\t\t\t\t\tstderrObserver.removeListener(parserPipedStreamListener);\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} else {\n \t\t\t\t\t\tassert false;\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\t/*\n \t\t\t\t\t * If output could not be parsed, the kill the mpi process.\n \t\t\t\t\t */\n \t\t\t\t\tparserException = e;\n \t\t\t\t\tprocess.destroy();\n \t\t\t\t} finally {\n \t\t\t\t\tparserPipedStreamListener.disable();\n \t\t\t\t\tif (stderrObserver != null) {\n \t\t\t\t\t\tstderrObserver.removeListener(parserPipedStreamListener);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Create and start listeners.\n \t\t */\n \t\tstdoutThread.start();\n \t\tstderrThread.start();\n \t\tparserThread.start();\n \n \t\tstderrObserver = new InputStreamObserver(process.getErrorStream());\n \t\tstdoutObserver = new InputStreamObserver(process.getInputStream());\n \n\t\tstdoutObserver.addListener(stdoutPipedStreamListener);\n\t\tstderrObserver.addListener(stderrPipedStreamListener);\n \n \t\t// Parse stdout or stderr, depending on mpi 1.2 or 1.3\n \t\tOpenMpiResourceManagerConfiguration configuration = (OpenMpiResourceManagerConfiguration) getRtSystem().getRmConfiguration();\n \t\tif (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_12)) {\n \t\t\tstderrObserver.addListener(parserPipedStreamListener);\n \t\t} else if (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_13)) {\n \t\t\tstdoutObserver.addListener(parserPipedStreamListener);\n \t\t} else {\n \t\t\tassert false;\n \t\t}\n \n \t\tstderrObserver.start();\n \t\tstdoutObserver.start();\n \n \t\ttry {\n \t\t\tparserThread.join();\n \t\t} catch (InterruptedException e) {\n \t\t\t// Do nothing.\n \t\t}\n \n \t\tif (parserException != null) {\n \t\t\tprocess.destroy();\n \t\t\tthrow new CoreException(new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), \"Failed to parse Open Mpi run command output.\", parserException));\n \t\t}\n \n \t\t/*\n \t\t * Copy job attributes from map.\n \t\t */\n \t\trtSystem.changeJob(getJobID(), map.getAttributeManager());\n \n \t\t/*\n \t\t * Copy process attributes from map.\n \t\t */\n \t\tList<Process> newProcesses = map.getProcesses();\n \t\tprocessIDs = new String[newProcesses.size()];\n \t\tfor (Process newProcess : newProcesses) {\n \t\t\tString nodename = newProcess.getNode().getName();\n \t\t\tString nodeID = rtSystem.getNodeIDforName(nodename);\n \t\t\tif (nodeID == null) {\n \t\t\t\tprocess.destroy();\n \t\t\t\tthrow new CoreException(new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), \"Hostnames from Open MPI output do not match expected hostname.\", parserException));\n \t\t\t}\n \n \t\t\tString processName = newProcess.getName();\n \t\t\tint processIndex = newProcess.getIndex();\n \t\t\tString processID = null;\n \t\t\tif (processIndex == 0) {\n \t\t\t\tprocessID = zeroIndexProcessID;\n \t\t\t} else {\n \t\t\t\tprocessID = rtSystem.createProcess(getJobID(), processName, processIndex);\n \t\t\t}\n \t\t\tprocessIDs[processIndex] = processID;\n \n \t\t\tAttributeManager attrMgr = new AttributeManager();\n \t\t\tattrMgr.addAttribute(ElementAttributes.getNameAttributeDefinition().create(processName));\n \t\t\tattrMgr.addAttribute(ProcessAttributes.getStateAttributeDefinition().create(ProcessAttributes.State.RUNNING));\n \t\t\tattrMgr.addAttributes(newProcess.getAttributeManager().getAttributes());\n \t\t\trtSystem.changeProcess(processID, attrMgr);\n \t\t}\n \t}", "public String runCMD(HttpSession session, String command) {\n if (command == null) {\n return \"\";\n }\n // split command\n String[] cmds = command.split(\";\");\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < cmds.length; i++) {\n // format command\n cmds[i] = cmds[i].replaceAll(\"[ \\n\\r]+\", \" \");\n cmds[i] = cmds[i].trim();\n // handle command too long\n if (cmds[i].length() > 72) {\n cmds[i] = cmds[i].replaceAll(\" \", \" -\\n\");\n }\n if (cmds[i].length() == 0) {\n continue;\n }\n if (i == cmds.length - 1) {\n sb.append(cmds[i]);\n } else {\n sb.append(cmds[i]).append(\"\\n\");\n }\n }\n command = sb.toString();\n\n //添加body中的text\n String line1 = \"//SPMECMD JOB CLASS=A,MSGLEVEL=(1,1),MSGCLASS=H,\";\n String line2 = \"// TIME=2 \";\n String line3 = \"//SEND EXEC PGM=IKJEFT01 \";\n String line4 = \"//SYSPRINT DD DUMMY \";\n String line5 = \"//SYSTSPRT DD SYSOUT=* \";\n String line6 = \"//SYSTSIN DD * \";\n String line7 = command;\n String line8 = \"/* \";\n String allLines = String.format(\"%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\", line1, line2, line3, line4, line5, line6, line7, line8);\n\n // 102 is id of sys print\n return js.submitJCL(session, allLines, 102);\n }", "public static void main(String[] args) \n {\n \t\t\t\t int pid;\n \t\t/* I create a PID object to processed */\n Pid_manager2 pm = new Pid_manager2();\n if(pm.allocate_map() != -1)\n {\n pid = pm.allocate_pid();\n if(pid!=-1){\n System.out.println(\"Process allocated with PID :\"+ pid);\n pm.release_pid(pid);\n System.out.println(\"Process with PID :\" + pid + \" released\");\n }\n else\n {\n System.out.println(\"Process cannot be allocated\");\n }\n }\n else{\n System.out.println(\"Error in allocating PID map\");\n }\n int sleep(int z){\n \t\n }\n\n }", "private void writeWorkerBash(String user, String password) throws IOException {\r\n String os = System.getProperty(\"os.name\");\r\n long maxMemory = Runtime.getRuntime().maxMemory();\r\n int memory = (int) (0.9 * ((double) maxMemory / (double) (1024 * 1024)));\r\n String command = \"java -Xmx\" + memory + \"m -Xms\" + memory + \"m -jar \" + pladipusFolder + \"/\" + \"Pladipus-execution-\" + version + \"/Pladipus-execution-\" + version + \".jar -auto_pull -u \" + user + \" -p \" + password;\r\n FileWriter bashWriter;\r\n if (os.toLowerCase().contains(\"windows\")) {\r\n File bashFile = new File(System.getProperty(\"user.home\") + \"/Desktop/Pladipus-Worker.bat\");\r\n bashWriter = new FileWriter(bashFile);\r\n } else {\r\n File bashFile = new File(System.getProperty(\"user.home\") + \"/Desktop/Pladipus-Worker.sh\");\r\n bashWriter = new FileWriter(bashFile);\r\n }\r\n bashWriter.append(command).flush();\r\n bashWriter.close();\r\n }", "private void startStreams() {\n InputStream inputStream = process.getInputStream();\n bufferedInputStream = new BufferedReader(new InputStreamReader(inputStream));\n InputStream errorStream = process.getErrorStream();\n bufferedErrorStream = new BufferedReader(new InputStreamReader(errorStream));\n }", "public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public static WebElement untar_file_linux() throws Exception {\n\t\tString host = \"192.168.231.237\";\n\t\tString user = \"root\";\n\t\tString password = \"xpsr@350\";\n\t\tString command = \"/var/www/html/snapcall/apiunzip.sh &\";\n\t\tChannel channel = null;\n\t\tSession session = null;\n\t\n\t\tTimeUnit.SECONDS.sleep(3);\n\t\ttry {\n\t\t\tjava.util.Properties config = new java.util.Properties();\n\t\t\tconfig.put(\"StrictHostKeyChecking\", \"no\");\n\t\t\tJSch jsch = new JSch();\n\t\t\tsession = jsch.getSession(user, host, 22);\n\t\t\tsession.setPassword(password);\n\t\t\tsession.setConfig(config);\n\t\t\tsession.connect();\n\t\t\tSystem.out.println(\"Connected\");\n\n\t\t\tchannel = session.openChannel(\"exec\");\n\t\t\t((ChannelExec) channel).setCommand(\"nohup sh -c \" + command);\n\t\t\tchannel.setInputStream(null);\n\t\t\t((ChannelExec) channel).setErrStream(System.err);\n\n\t\t\tInputStream in = channel.getInputStream();\n\t\t\tchannel.connect();\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tSystem.out.println(line);\n\t\t\t}\n\t\t\tSystem.out.println(\"ExistCode:\" + channel.getExitStatus());\n\t\t\tSystem.out.println(\"DONE\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (channel != null) {\n\t\t\t\tchannel.disconnect();\n\t\t\t}\n\t\t\tif (session != null) {\n\t\t\t\tsession.disconnect();\n\t\t\t}\n\t\t}\n\t\treturn element;\n\t}", "private void closeAlllooper(){\n new Thread(new Runnable(){\n public void run(){\n try{\n //Log.i(\"audiolooper\", \"closeall 1 looper command:\" + close_command);\n // Process process2 = Runtime.getRuntime().exec(\"echo ariston.ini > /sys/bus/i2c/devices/0-0038/ftsscaptest\");\n List<String> cmds = new ArrayList<String>();\n cmds.add(\"sh\");\n cmds.add(\"-c\");\n cmds.add(commandtxt_path);\n ProcessBuilder pb = new ProcessBuilder(cmds);\n pb.start();\n //Process process1 = Runtime.getRuntime().exec(close_command);\n //Process process2 = Runtime.getRuntime().exec(\"ls > /data/test/test.txt\");\n \n }\n catch (IOException e ) { \n e.printStackTrace ( ) ; \n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n }).start(); \n }", "public void testInvokeShell() throws Exception {\n PKey hostKey = PKey.readPrivateKeyFromStream(new FileInputStream(\n \"test/test_rsa.key\"), null);\n PKey publicHostKey = PKey.createFromBase64(hostKey.getBase64());\n mTS.addServerKey(hostKey);\n final FakeServer server = new FakeServer();\n\n final Event sync = new Event();\n new Thread(new Runnable() {\n public void run() {\n try {\n mTS.start(server, 15000);\n sync.set();\n } catch (IOException x) {}\n }\n }).start();\n\n mTC.start(publicHostKey, 15000);\n mTC.authPassword(\"slowdive\", \"pygmalion\", 15000);\n\n sync.waitFor(5000);\n assertTrue(sync.isSet());\n assertTrue(mTS.isActive());\n\n Channel chan = mTC.openSession(5000);\n chan.invokeShell(5000);\n Channel schan = mTS.accept(5000);\n chan.getOutputStream().write(\"communist j. cat\\n\".getBytes());\n assertFalse(chan.isClosed());\n chan.close();\n assertTrue(chan.isClosed());\n\n BufferedReader r = new BufferedReader(new InputStreamReader(\n schan.getInputStream()));\n assertEquals(\"communist j. cat\", r.readLine());\n schan.close();\n }", "@Override\n public int estado(){\n \n try {\n Process proceso;\n proceso = Runtime.getRuntime().exec(\"/etc/init.d/\"+nombreServicio+\" status\");\n InputStream is = proceso.getInputStream(); \n BufferedReader buffer = new BufferedReader (new InputStreamReader (is));\n \n //Se descartan las dos primeras lineas y se lee la tercera\n buffer.readLine();\n buffer.readLine();\n String resultado = buffer.readLine();\n \n if(resultado.contains(\"Active: active\")){\n return 1;\n }\n } \n catch (IOException ex) {\n Logger.getLogger(Servicio.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return 0;\n }", "public void helloVM()\n {\n \ttry {\n\n\t\t\t\n\t\t\tVirtualMachineConfigInfo vminfo = vm.getConfig();\n\t\t\tVirtualMachineCapability vmc = vm.getCapability();\n\t\t\tVirtualMachineRuntimeInfo vmri = vm.getRuntime();\n\t\t\tVirtualMachineSummary vmsum = vm.getSummary();\n\n\t\t\t\n\t\t\tSystem.out.println(\"------------------------------------------\");\n\t\t\tSystem.out.println(\"VM Information : \");\n\t\t\t\n\t\t\tSystem.out.println(\"VM Name: \" + vminfo.getName());\n\t\t\tSystem.out.println(\"VM OS: \" + vminfo.getGuestFullName());\n\t\t\tSystem.out.println(\"VM ID: \" + vminfo.getGuestId());\n\t\t\tSystem.out.println(\"VM Guest IP Address is \" +vm.getGuest().getIpAddress());\n\t\t\t\n\n\t\t\tSystem.out.println(\"------------------------------------------\");\n\t\t\tSystem.out.println(\"Resource Pool Informtion : \");\n\t\t\t\n\t\t\tSystem.out.println(\"Resource pool: \" +vm.getResourcePool());\n\t\t\t\n\t\t\tSystem.out.println(\"VM Parent: \" +vm.getParent());\n\t\t\t//System.out.println(\"VM Values: \" +vm.getValues());\n\t\t\tSystem.out.println(\"Multiple snapshot supported: \"\t+ vmc.isMultipleSnapshotsSupported());\n\t\t\tSystem.out.println(\"Powered Off snapshot supported: \"+vmc.isPoweredOffSnapshotsSupported());\n\t\t\tSystem.out.println(\"Connection State: \" + vmri.getConnectionState());\n\t\t\tSystem.out.println(\"Power State: \" + vmri.getPowerState());\n\t\t\t\n\n\t\t\t//CPU Statistics\n\n\t\t\tSystem.out.println(\"------------------------------------------\");\n\t\t\tSystem.out.println(\"CPU and Memory Statistics\" );\n\t\t\t\n\t\t\tSystem.out.println(\"CPU Usage: \" +vmsum.getQuickStats().getOverallCpuUsage());\n\t\t\tSystem.out.println(\"Max CPU Usage: \" + vmri.getMaxCpuUsage());\n\t\t\tSystem.out.println(\"Memory Usage: \"+vmsum.getQuickStats().getGuestMemoryUsage());\n\t\t\tSystem.out.println(\"Max Memory Usage: \" + vmri.getMaxMemoryUsage());\n\t\t\tSystem.out.println(\"------------------------------------------\");\n\n\t\t} catch (InvalidProperty e) {\n\t\t\te.printStackTrace();\n\t\t} catch (RuntimeFault e) {\n\t\t\te.printStackTrace();\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "public int runProcess(String commandline, String startMsg, String primer) {\n BufferedReader in;\n BufferedReader err;\n PrintStream out;\n boolean done;\n if (commandline == null) {\n return -2;\n }\n// if(startMsg==null){\n// return -3;\n// }\n if (msgs == null) {\n // create one for our local use if you won't give us one\n msgs = new TextList(100, 10);\n }\n if (startMsg != null) {\n dbg.VERBOSE(startMsg);\n }\n\n // dbg.Message(new TextList(\"Executing: \" + commandline, 78, false).asParagraph(\" \", null));\n commandline = commandline.trim();\n try {\n Process process = Runtime.getRuntime().exec(commandline);\n\n in = new BufferedReader(new InputStreamReader(process.getInputStream()));\n err = new BufferedReader(new InputStreamReader(process.getErrorStream()));\n out = new PrintStream(process.getOutputStream());\n boolean kill = (timeoutSeconds > 0);\n if (displayUpdateSeconds == 0) {\n displayUpdateSeconds = 1;\n }\n int numDots = (kill ? ((timeoutSeconds * 1000) / (displayUpdateSeconds * 1000)) : 20);\n done = false;\n // ------ testing !!!!!!!\n if (StringX.NonTrivial(primer)) {\n try {\n out.write(primer.getBytes());\n out.flush();\n } catch (Exception ex) {\n dbg.Caught(ex);\n }\n }\n\n if ((timeoutSeconds < 1) && (displayUpdateSeconds < 1)) {\n // don't watch the process; trust that it will finish\n try {\n process.waitFor();\n } catch (InterruptedException ie) {\n Thread.interrupted(); // clears interrupted bits\n // who cares; just carry on\n }\n } else {\n int counter = numDots;\n int lastSize = 0;\n while (!done && !(kill && !(counter > 0))) {\n // these have to be run regardless of whether it is verbose or not!!!! (for getmacid)\n pStream(in, msgs);\n pStream(err, msgs);\n if (verbose) {\n while (msgs.size() > lastSize) {\n dbg.VERBOSE(msgs.itemAt(lastSize++));\n }\n }\n out.println(\"\"); // slap?\n\n ThreadX.sleepFor(Ticks.forSeconds(displayUpdateSeconds));\n\n try {\n process.exitValue(); // throws if process is not complete; how I tell it isn't\n done = true;\n } catch (IllegalThreadStateException ignored) {\n }\n counter--;\n if (!done && !kill && (counter == 0)) {\n counter = numDots;// cycle around\n }\n }\n }\n pStream(in, msgs); // these must be used always for getmacid\n pStream(err, msgs);\n\n if (!done) {\n process.destroy();\n dbg.ERROR(kill ? \"Process took too long and was terminated!\" : \"User killed process.\");\n }\n\n int x = -1;\n try {\n x = done ? process.exitValue() : -1;\n } catch (IllegalThreadStateException itse2) {\n // who cares\n }\n if (x != 0) {\n dbg.WARNING(\"Process exited with value \" + x);\n }\n return x;\n } catch (Exception ioe) {\n dbg.ERROR(\"Could not start process [\" + commandline + \"] due to exception:\");\n dbg.Caught(ioe);\n // just quit\n return -1;\n }\n }", "private static GenericContainer jmxSSLService() {\n GenericContainer container = new GenericContainer<>(\"testserver:latest\")\n .withExposedPorts(4567, 7199)\n .withEnv(\"JAVA_OPTS\", \"-Dcom.sun.management.jmxremote.port=7199 \"\n + \"-Dcom.sun.management.jmxremote.local.only=false \"\n + \"-Dcom.sun.management.jmxremote.rmi.port=7199 \"\n + \"-Dcom.sun.management.jmxremote=true \"\n + \"-Dcom.sun.management.jmxremote.authenticate=false \"\n + \"-Dcom.sun.management.jmxremote.ssl=true \"\n + \"-Dcom.sun.management.jmxremote.ssl.need.client.auth=true \"\n + \"-Dcom.sun.management.jmxremote.registry.ssl=true \"\n + \"-Djavax.net.ssl.keyStore=/keystore \"\n + \"-Djavax.net.ssl.keyStorePassword=password \"\n + \"-Djavax.net.ssl.trustStore=/truststore \"\n + \"-Djavax.net.ssl.trustStorePassword=password\");\n container.setPortBindings(Arrays.asList(\"7199:7199\", \"4567:4567\"));\n Slf4jLogConsumer logConsumer = new Slf4jLogConsumer(LoggerFactory.getLogger(\"TESTCONT\"));\n container.setLogConsumers(Collections.singletonList(logConsumer));\n return container;\n }", "public static CommandResult execute(List<String> append) {\n List<String> commands = new ArrayList<String>();\n commands.add(\"sh\");\n commands.add(\"-c\");\n commands.add(\"\\\\\\\"\");\n commands.addAll(append);\n commands.add(\"\\\\\\\"\");\n ProcessBuilder pb = new ProcessBuilder(commands);\n try {\n Process process = pb.start();\n int n = process.waitFor();\n return new CommandResult(n, getOutput(process, (n != 0)));\n } catch (IOException e) {\n //e.printStackTrace();\n logger.error(\"Execute [{}] errors : [{}]\", commands.toString(), e.getMessage());\n } catch (InterruptedException e) {\n logger.error(\"Execute [{}] interrupted : [{}]\", commands.toString(), e.getMessage());\n //e.printStackTrace();\n }\n return null;\n }", "public static void twoClientSetupProcesses() {\n\n\tList<String> aClientTags=TagsFactory.getAssignmentTags().getTwoClientClientTags();\n\tList<String> aServerTags=TagsFactory.getAssignmentTags().getTwoClientServerTags();\n\n\ttwoClientSetupProcesses(aClientTags, aServerTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcessTeams(Arrays.asList(\"RegistryBasedDistributedProgram\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setTerminatingProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Client_0\", \"Client_1\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Registry\", \"Server\", \"Client_0\", \"Client_1\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Registry\", Arrays.asList(\"Registry\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Server\", aServerTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_0\", aClientTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_1\", aClientTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Registry\", FlexibleStaticArgumentsTestCase.TEST_REGISTRY_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Server\", FlexibleStaticArgumentsTestCase.TEST_SERVER_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_0\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_0_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_1\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_1_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Registry\", 500);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Server\", 2000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Client_0\", 5000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Client_1\", 5000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().getProcessTeams().forEach(team -> System.out.println(\"### \" + team));\n}", "@Override\r\n public Integer start(String[] strings) {\r\n //Load configuration from file \"app.conf\"\r\n IS.loadConfig();\r\n //Start Embedded DB Server\r\n IS.startDB();\r\n //start socket Server\r\n IS.startSocketServer();\r\n //start web server\r\n IS.startWebServer();\r\n\r\n //start CallbackController scheduler\r\n IS.startCallbackController();\r\n\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n //Subscribe for All Notifications via notification producer\r\n if (!IS.resumeCctConnection()) {\r\n IS.startCCT();\r\n }\r\n } finally {\r\n //Attach CCT Connection Monitor\r\n IS.attachCctSessionMonitor();\r\n }\r\n }\r\n }).start();\r\n\r\n return null;\r\n }", "public interface BashScriptService {\n public boolean createProjectAssetFolders(String projectAssetEncryptedFolderName) throws Exception;\n\n public boolean runBashScriptInRemoteServer(String projectAssetEncryptedFolderName) throws Exception;\n}", "private static GenericContainer jmxService() {\n GenericContainer container = new GenericContainer<>(\"testserver:latest\")\n .withExposedPorts(4567, 7199)\n .withEnv(\"JAVA_OPTS\", \"-Dcom.sun.management.jmxremote.port=7199 \" +\n \"-Dcom.sun.management.jmxremote.rmi.port=7199 \" +\n \"-Dcom.sun.management.jmxremote.local.only=false\" +\n \"-Djava.rmi.server.hostname=0.0.0.0 \" +\n \"-Dcom.sun.management.jmxremote=true \" +\n \"-Dcom.sun.management.jmxremote.authenticate=false \" +\n \"-Dcom.sun.management.jmxremote.ssl=false \");\n container.setPortBindings(Arrays.asList(\"7199:7199\", \"4567:4567\"));\n Slf4jLogConsumer logConsumer = new Slf4jLogConsumer(LoggerFactory.getLogger(\"TESTCONT\"));\n container.setLogConsumers(Collections.singletonList(logConsumer));\n return container;\n }", "@Test\n public void testGetEnvironmentApplications() {\n EnvironmentViewBuilder builder = EnvironmentViewBuilder.getInstance(\"Test environment\");\n builder.setServerDAO(new MockEnvironmentViewDAO());\n builder.setRunningApplicationChecker(new MockRunningApplicationChecker());\n EnvironmentView view = builder.getEnvironmentView(Long.MAX_VALUE);\n Assert.assertEquals(\"Test Application\", view.getRows().get(2).getApplicationName());\n Assert.assertEquals(\"Test Application\", view.getRows().get(2).getApplication().getNameInEnvironmentView());\n\n ServerSessionPool ssp = allSessionPools.getServerSessionPool(server);\n // if you get connection refused try installing openssh-server. On Ubuntu...\n //\n // sudo apt update\n // sudo apt install openssh-server\n // sudo systemctl status ssh\n //\n // and generate your public/private rsa key pair.\n //\n // ssh-keygen -t rsa\n //\n Session session = ssp.getSession(\"testGetEnvironmentApplications\");\n session.setEnvironmentName(\"Test environment\");\n\n ApplicationViewBuilder applicationViewBuilder = new ApplicationViewBuilder();\n String apps = applicationViewBuilder.getEnvironmentApplications(session.getSessionId());\n\n // It finds the environment from the sessionId and lists all applications on the server.\n\n Assert.assertEquals(\"sessionID............: \" + session.getSessionId() + \"\\n\" +\n \"nameInEnvironmentView: Test Application\\n\" +\n \"fileName.............: applications/test-application-with-long-name-001.txt\\n\" +\n \"ps -ef | grep java...: test-application\\n\" +\n \"and stdout '1' from..: if [ -d /var/log/test-application ] ; then echo \\\"1\\\" ; else echo \\\"0\\\"; fi\\n\" +\n \"and stdout '1' from..: echo 1\\n\" +\n \"<\\n\" +\n \"sessionID............: \" + session.getSessionId() + \"\\n\" +\n \"nameInEnvironmentView: Environment monitor\\n\" +\n \"fileName.............: applications/environment-monitor-001.txt\\n\" +\n \"ps -ef | grep java...: monitor.api.Main\"\n , apps);\n allSessionPools.logoutAllSessionsOnAllServers(\"testGetEnvironmentApplications\");\n\n }", "private static String editUrlMonitor(HttpServletRequest request, HttpServletResponse response)\n/* */ throws Exception\n/* */ {\n/* 90 */ String xmlString = \"\";\n/* 91 */ String monType = \"UrlMonitor\";\n/* 92 */ int pollInterval = 5;\n/* 93 */ int timeOut = 5;\n/* 94 */ String query1 = \"\";\n/* 95 */ String query2 = \"\";\n/* 96 */ String resID = \"\";\n/* 97 */ String reqParams = \"\";\n/* 98 */ String displayname = \"\";\n/* 99 */ String httpCondition = \"\";\n/* 100 */ String httpValue = \"\";\n/* 101 */ String strUrl = \"\";\n/* 102 */ MockHttpServletRequest MSreq = new MockHttpServletRequest();\n/* 103 */ MSreq.setContentType(\"text/xml; charset=UTF-8\");\n/* 104 */ AMActionForm amform = new AMActionForm();\n/* 105 */ MSreq.addParameter(\"actionmethod\", \"updateUrlMonitor\");\n/* 106 */ AMConnectionPool cp = AMConnectionPool.getInstance();\n/* 107 */ ResultSet rs1 = null;\n/* 108 */ ResultSet rs2 = null;\n/* */ try {\n/* 110 */ AMLog.debug(\"REST API : inside editUrlMonitor\");\n/* 111 */ if (request.getParameter(\"resourceid\") != null) {\n/* 112 */ query1 = \"select AM_ManagedObject.DISPLAYNAME as displayname,AM_URL.URLID as resourceid, AM_URL.URL as url, AM_URL.USERID as userName, \" + DBQueryUtil.decodeBytes(\"password\") + \" as password, AM_URL.QUERYSTRING as reqParams, AM_URL.METHOD as urlMethod,AM_URL.AVAILABILITYSTRING as checkForContent,AM_URL.PollInterval as pollInterval, AM_URL.UNAVAILABILITYSTRING as errorIfMatch, AM_URL.VERIFY as verifyError,AM_URL.TIMEOUT as timeout from AM_ManagedObject, AM_URL where AM_ManagedObject.RESOURCEID=AM_URL.URLID and AM_ManagedObject.TYPE='UrlMonitor' and AM_URL.URLID='\" + request.getParameter(\"resourceid\") + \"'\";\n/* */ }\n/* 114 */ else if (request.getParameter(\"url\") != null) {\n/* 115 */ query1 = \"select AM_ManagedObject.DISPLAYNAME as displayname,AM_URL.URLID as resourceid, AM_URL.URL as url, AM_URL.USERID as userName, \" + DBQueryUtil.decodeBytes(\"password\") + \" as password, AM_URL.QUERYSTRING as reqParams, AM_URL.METHOD as urlMethod,AM_URL.AVAILABILITYSTRING as checkForContent,AM_URL.PollInterval as pollInterval, AM_URL.UNAVAILABILITYSTRING as errorIfMatch, AM_URL.VERIFY as verifyError,AM_URL.TIMEOUT as timeout from AM_ManagedObject, AM_URL where AM_ManagedObject.RESOURCEID=AM_URL.URLID and AM_ManagedObject.TYPE='UrlMonitor' and AM_URL.URL like '\" + request.getParameter(\"url\") + \"'\";\n/* */ }\n/* 117 */ else if (request.getParameter(\"displayname\") != null) {\n/* 118 */ query1 = \"select AM_ManagedObject.DISPLAYNAME as displayname,AM_URL.URLID as resourceid, AM_URL.URL as url, AM_URL.USERID as userName, \" + DBQueryUtil.decodeBytes(\"password\") + \" as password, AM_URL.QUERYSTRING as reqParams, AM_URL.METHOD as urlMethod,AM_URL.AVAILABILITYSTRING as checkForContent,AM_URL.PollInterval as pollInterval, AM_URL.UNAVAILABILITYSTRING as errorIfMatch, AM_URL.VERIFY as verifyError,AM_URL.TIMEOUT as timeout from AM_ManagedObject, AM_URL where AM_ManagedObject.RESOURCEID=AM_URL.URLID and AM_ManagedObject.TYPE='UrlMonitor' and AM_ManagedObject.DISPLAYNAME='\" + request.getParameter(\"displayname\") + \"'\";\n/* */ }\n/* */ else {\n/* 121 */ AMLog.debug(\"REST API : Some parameter missing for edit URL.For editing URL monitor either one of the following 'type with resourceid' or 'type with url' or 'type with displayname' is needed.\");\n/* 122 */ xmlString = URITree.generateXML(request, response, FormatUtil.getString(\"am.webclient.api.editURL.paramMissing\"), \"4314\");\n/* 123 */ return xmlString;\n/* */ }\n/* */ \n/* 126 */ rs1 = AMConnectionPool.executeQueryStmt(query1);\n/* 127 */ String verifyError; if (rs1.next()) {\n/* 128 */ resID = rs1.getString(\"resourceid\");\n/* 129 */ reqParams = rs1.getString(\"reqParams\") != null ? rs1.getString(\"reqParams\") : \"\";\n/* 130 */ displayname = rs1.getString(\"displayname\");\n/* 131 */ query2 = \"select NAME, CRITICALTHRESHOLDCONDITION as httpCondition, CRITICALTHRESHOLDVALUE as httpValue from AM_THRESHOLDCONFIG where DESCRIPTION='##Threshod for URL##' and NAME='Threshold\" + resID + \"' order by ID desc\";\n/* */ \n/* 133 */ MSreq.addParameter(\"urlid\", rs1.getString(\"resourceid\"));\n/* 134 */ strUrl = rs1.getString(\"url\");\n/* 135 */ if (request.getParameter(\"timeout\") != null) {\n/* */ try {\n/* 137 */ timeOut = Integer.parseInt(request.getParameter(\"timeout\"));\n/* 138 */ MSreq.addParameter(\"timeout\", \"\" + timeOut);\n/* */ } catch (Exception exc) {\n/* 140 */ AMLog.debug(\"REST API : The timeout should be a valid one.\");\n/* 141 */ xmlString = URITree.generateXML(request, response, FormatUtil.getString(\"am.webclient.api.timeout.notvalidmessage\"), \"4216\");\n/* 142 */ return xmlString;\n/* */ }\n/* */ } else {\n/* 145 */ timeOut = Integer.parseInt(rs1.getString(\"timeout\"));\n/* 146 */ timeOut /= 1000;\n/* 147 */ MSreq.addParameter(\"timeout\", \"\" + timeOut);\n/* */ }\n/* 149 */ amform.setTimeout(timeOut);\n/* 150 */ if (request.getParameter(\"pollInterval\") != null) {\n/* */ try {\n/* 152 */ pollInterval = Integer.parseInt(request.getParameter(\"pollInterval\"));\n/* */ \n/* 154 */ MSreq.addParameter(\"pollInterval\", \"\" + pollInterval);\n/* */ } catch (Exception ex) {\n/* 156 */ AMLog.debug(\"REST API : The pollInterval should be a valid whole number.\");\n/* 157 */ xmlString = URITree.generateXML(request, response, FormatUtil.getString(\"am.webclient.api.pollinter.notvalidmessage\"), \"4201\");\n/* 158 */ return xmlString;\n/* */ }\n/* */ } else {\n/* 161 */ pollInterval = Integer.parseInt(rs1.getString(\"pollInterval\"));\n/* 162 */ pollInterval /= 60000;\n/* */ \n/* 164 */ MSreq.addParameter(\"pollInterval\", \"\" + pollInterval);\n/* */ }\n/* 166 */ amform.setPollInterval(pollInterval);\n/* 167 */ if (request.getParameter(\"urlMethod\") != null) {\n/* 168 */ if ((request.getParameter(\"urlMethod\").equals(\"P\")) || (request.getParameter(\"urlMethod\").equals(\"G\"))) {\n/* 169 */ MSreq.addParameter(\"method\", request.getParameter(\"urlMethod\"));\n/* */ } else {\n/* 171 */ AMLog.debug(\"REST API : The urlMethod should be P or G.\");\n/* 172 */ xmlString = URITree.generateXML(request, response, FormatUtil.getString(\"am.webclient.api.urlmethodempty.msg\"), \"4311\");\n/* 173 */ return xmlString;\n/* */ }\n/* */ } else {\n/* 176 */ MSreq.addParameter(\"method\", rs1.getString(\"urlMethod\"));\n/* */ }\n/* 178 */ if (request.getParameter(\"verifyError\") != null) {\n/* 179 */ if (request.getParameter(\"verifyError\").equals(\"true\")) {\n/* 180 */ MSreq.addParameter(\"verifyerror\", \"true\");\n/* 181 */ } else if (request.getParameter(\"verifyError\").equals(\"false\")) {\n/* 182 */ MSreq.addParameter(\"verifyerror\", \"\");\n/* */ } else {\n/* 184 */ AMLog.debug(\"REST API : The verifyError should be true or false.\");\n/* 185 */ xmlString = URITree.generateXML(request, response, FormatUtil.getString(\"am.webclient.api.editURL.verifyErrorMsg\"), \"4315\");\n/* 186 */ return xmlString;\n/* */ }\n/* */ } else {\n/* 189 */ verifyError = \"1\".equals(rs1.getString(\"verifyError\")) ? \"true\" : \"\";\n/* 190 */ MSreq.addParameter(\"verifyerror\", verifyError);\n/* */ }\n/* 192 */ MSreq.addParameter(\"userid\", request.getParameter(\"userName\") != null ? request.getParameter(\"userName\") : rs1.getString(\"userName\"));\n/* 193 */ MSreq.addParameter(\"errorcontent\", request.getParameter(\"errorIfMatch\") != null ? request.getParameter(\"errorIfMatch\") : rs1.getString(\"errorIfMatch\"));\n/* 194 */ MSreq.addParameter(\"checkfor\", request.getParameter(\"checkForContent\") != null ? request.getParameter(\"checkForContent\") : rs1.getString(\"checkForContent\"));\n/* 195 */ MSreq.addParameter(\"password\", request.getParameter(\"password\") != null ? request.getParameter(\"password\") : rs1.getString(\"password\"));\n/* 196 */ MSreq.addParameter(\"requestparams\", request.getParameter(\"requestParams\") != null ? request.getParameter(\"requestParams\") : reqParams);\n/* */ } else {\n/* 198 */ AMLog.debug(\"REST API : The url is not created before.\");\n/* 199 */ xmlString = URITree.generateXML(request, response, FormatUtil.getString(\"am.webclient.api.editURL.errorMsg\"), \"4316\");\n/* 200 */ return xmlString;\n/* */ }\n/* 202 */ if (request.getParameter(\"displayname\") != null) {\n/* 203 */ displayname = request.getParameter(\"displayname\");\n/* */ }\n/* 205 */ if (request.getParameter(\"url\") != null) {\n/* 206 */ strUrl = request.getParameter(\"url\");\n/* */ }\n/* 208 */ MSreq.addParameter(\"monitorname\", displayname);\n/* 209 */ MSreq.addParameter(\"url\", strUrl);\n/* 210 */ int httpvalueInt = 200;\n/* 211 */ httpCondition = \"GT\";\n/* 212 */ rs2 = AMConnectionPool.executeQueryStmt(query2);\n/* 213 */ if (rs2.next())\n/* */ {\n/* 215 */ httpCondition = rs2.getString(\"httpCondition\");\n/* 216 */ httpvalueInt = Integer.parseInt(rs2.getString(\"httpValue\"));\n/* */ }\n/* */ \n/* 219 */ if (request.getParameter(\"httpCondition\") != null) {\n/* 220 */ if ((request.getParameter(\"httpCondition\").equals(\"LT\")) || (request.getParameter(\"httpCondition\").equals(\"GT\")) || (request.getParameter(\"httpCondition\").equals(\"EQ\")) || (request.getParameter(\"httpCondition\").equals(\"NE\")) || (request.getParameter(\"httpCondition\").equals(\"LE\")) || (request.getParameter(\"httpCondition\").equals(\"GE\")))\n/* */ {\n/* 222 */ httpCondition = request.getParameter(\"httpCondition\");\n/* */ } else {\n/* 224 */ AMLog.debug(\"REST API : The httpCondition should be LT or GT or EQ or NE or LE or GE.\");\n/* 225 */ xmlString = URITree.generateXML(request, response, FormatUtil.getString(\"am.webclient.api.httpcondition.msg\"), \"4313\");\n/* 226 */ return xmlString;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 231 */ if (request.getParameter(\"httpValue\") != null) {\n/* */ try {\n/* 233 */ httpvalueInt = Integer.parseInt(request.getParameter(\"httpValue\"));\n/* */ } catch (Exception ex) {\n/* 235 */ AMLog.debug(\"REST API : The httpValue should be a valid Integer.\");\n/* 236 */ xmlString = URITree.generateXML(request, response, FormatUtil.getString(\"am.webclient.api.httpvalue.integermessage\"), \"4312\");\n/* 237 */ return xmlString;\n/* */ }\n/* */ }\n/* */ \n/* 241 */ MSreq.addParameter(\"httpcondition\", httpCondition);\n/* 242 */ MSreq.addParameter(\"httpvalue\", \"\" + httpvalueInt);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try\n/* */ {\n/* 250 */ if (rs1 != null) {\n/* 251 */ rs1.close();\n/* */ }\n/* 253 */ if (rs2 != null) {\n/* 254 */ rs2.close();\n/* */ }\n/* */ } catch (Exception ex1) {\n/* 257 */ ex1.printStackTrace();\n/* */ }\n/* */ try\n/* */ {\n/* 261 */ MSreq.addParameter(\"type\", monType);\n/* 262 */ MSreq.addParameter(\"montype\", monType);\n/* 263 */ MSreq.addParameter(\"isAPI\", \"true\");\n/* 264 */ amform.setType(monType);\n/* 265 */ amform.setDisplayname(displayname);\n/* */ \n/* 267 */ CreateUrlMonitor creUrlMon = new CreateUrlMonitor();\n/* 268 */ creUrlMon.updateUrlMonitor(null, null, MSreq, response);\n/* 269 */ return AddMonitorAPIUtil.MessageXML(request, response, \"editUrlMonitor\", FormatUtil.getString(\"URL Monitor edited successfully.\"));\n/* */ }\n/* */ catch (Exception ex3) {\n/* 272 */ ex3.printStackTrace();\n/* 273 */ String errorMsg = ex3.getMessage();\n/* 274 */ AMLog.debug(\"REST API : Error: \" + errorMsg);\n/* 275 */ xmlString = URITree.generateXML(request, response, FormatUtil.getString(\"Error\") + \": \" + errorMsg, \"4444\");\n/* 276 */ AMLog.debug(\"REST API : Error in editing monitor by API\" + errorMsg);\n/* */ }\n/* */ }\n/* */ catch (Exception ex2)\n/* */ {\n/* 244 */ ex2.printStackTrace();\n/* 245 */ AMLog.debug(\"REST API : Server error.\");\n/* 246 */ xmlString = URITree.generateXML(request, response, FormatUtil.getString(\"am.webclient.apikey.wrongserver.message\"), \"4128\");\n/* 247 */ return xmlString;\n/* */ } finally {\n/* */ try {\n/* 250 */ if (rs1 != null) {\n/* 251 */ rs1.close();\n/* */ }\n/* 253 */ if (rs2 != null) {\n/* 254 */ rs2.close();\n/* */ }\n/* */ } catch (Exception ex1) {\n/* 257 */ ex1.printStackTrace();\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 277 */ return xmlString;\n/* */ }", "@Override\n\tpublic void execute(DelegateExecution execution) throws Exception {\n\t\tString ip = (String) execution.getVariable(\"ip\");\n\t\tString serviceHome = (String) execution.getVariable(\"serviceHome\");\n\t\tString coRoot = (String) execution.getVariable(\"coRoot\");\n\t\tString customizationId = (String) execution.getVariable(\"customizationId\");\n\t\tHashMap<String, String> data = toscaService.getCloudData(customizationId);\n\n\t\t// TODO al momento è vuoto perchè non lo leggiamo da nulla valutare se\n\t\t// leggerlo dinamicamente o da file di configurazione\n\t\tString privateKeyPath = (String) execution.getVariable(\"privateKeyPath\");\n\t\tString passphrase = (String) execution.getVariable(\"passphrase\");\n\n\t\t// prepare the certificates\n\t\tshellCert(serviceHome, caPath, data.get(\"vmname\"), ip, caPassword);\n\t\t// send the key\n\t\ttransferFile(serviceHome, \"key.pem\", privateKeyPath, passphrase, ip);\n\t\t// send the cert\n\t\ttransferFile(serviceHome, \"cert.pem\", privateKeyPath, passphrase, ip);\n\n\t\t// now that all the pieces are in the machine we can join it to swarm\n\t\tString remote_command = \"systemctl start docker && /usr/bin/docker run -itd --name=swarm-agent --expose=2376 -e SWARM_HOST=:2376 swarm join --advertise=\"\n\t\t\t\t+ ip + \":\" + dockerPort + \" consul://\" + hostip + \":8500\";\n\n\t\tProperties config = new Properties();\n\t\tconfig.put(\"StrictHostKeyChecking\", \"no\"); // without this it cannot\n\t\t\t\t\t\t\t\t\t\t\t\t\t// connect because the host\n\t\t\t\t\t\t\t\t\t\t\t\t\t// key verification fails\n\t\t\t\t\t\t\t\t\t\t\t\t\t// the right way would be to\n\t\t\t\t\t\t\t\t\t\t\t\t\t// somehow get the server\n\t\t\t\t\t\t\t\t\t\t\t\t\t// key and add it to the\n\t\t\t\t\t\t\t\t\t\t\t\t\t// trusted keys\n\t\t\t\t\t\t\t\t\t\t\t\t\t// jsch.setKnownHosts()\n\t\t\t\t\t\t\t\t\t\t\t\t\t// https://epaul.github.io/jsch-documentation/javadoc/com/jcraft/jsch/JSch.html#setKnownHosts-java.lang.String-\n\t\t\t\t\t\t\t\t\t\t\t\t\t// see also\n\t\t\t\t\t\t\t\t\t\t\t\t\t// http://stackoverflow.com/a/32858953/28582\n\t\tJSch jsch = new JSch();\n\t\tjsch.addIdentity(privateKeyPath, passphrase);\n\n\t\tSession session = jsch.getSession(ROOT_USER, ip, SSH_PORT);\n\t\tsession.setConfig(config);\n\t\tsession.connect();\n\n\t\tChannelExec channel = (ChannelExec) session.openChannel(\"exec\");\n\t\tint exitStatus = sendCommand(remote_command, channel);\n\t\tlog.debug(\"Command: [\" + remote_command + \"]\");\n\t\tif (exitStatus != 0) {\n\t\t\tlog.debug(\"FAILED - exit status: \" + exitStatus);\n\t\t} else {\n\t\t\tlog.debug(\"Executed successfully\");\n\t\t}\n\t\tchannel.disconnect();\n\t\tsession.disconnect();\n\n\t\tlog.debug(\"in DeployDockerSwarm\");\n\t\t// toscaService.getNodeType(\"\");\n\t\t// dockerService.addMachine(ip, 2376); //SSL\n\t\tString clusterToken = dockerService.addMachine(swarmIp, Integer.parseInt(swarmPort)); // no SSL\n\t\texecution.setVariable(\"clusterToken\", clusterToken);\n\t\tString clusterInfo = dockerService.clusterDetail(clusterToken);\n\t}", "public static void main(String[] args) throws InterruptedException {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\arka\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.get(\"http://www.csoft.com/testcsoft/superadmin2/\");\r\n\t\tdriver.findElement(By.xpath(\"//*[@id='username']\")).sendKeys(\"admin\");\r\n\t\tdriver.findElement(By.xpath(\"//*[@id='password']\")).sendKeys(\"admin212\");\r\n\t\t//thread.sleep(3000L);\r\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit']\")).click();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.findElement(By.xpath(\"//span[@class='hidden-tablet'][contains(text(),'Locks')]\")).click();\r\n\t\tdriver.findElement(By.xpath(\"//button[@class='btn btn-large btn-primary']\")).click();\r\n\t\tdriver.findElement(By.xpath(\"//input[@id='distname']\")).sendKeys(\"CSoft Test account\");\r\n\t\t\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.findElement(By.xpath(\"//html//div[@class='box span12']//li[2]\")).click();\r\n\t\t\r\n\t\tfor(int i=0; i<10; i++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tdriver.findElement(By.xpath(\"//html//div[@class='control-group']/input[1]\")).click();\r\n\t\t\t\r\n\t\t\t\r\n\t\t }\r\n\t\tint j=1;\r\n\t\tfor(int i=0; i<10; i++)\r\n\t\t\t\r\n {\r\n\t\t\t\r\n\t\t\tdriver.findElement(By.xpath(\"//input[@id='lockno\"+j+\"']\")).sendKeys(\"Rakesh_bose\"+j+\"\");\r\n\t\t\tj++;\r\n\t\t\t\r\n\t\t }\r\n\t\tThread.sleep(2000);\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//input[@id='load']\")).click();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./chromedriver.exe\");\r\n\t\tChromeDriver driver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t//1. Launch the ServiceNow application URL: \r\n\t\tdriver.get(\"https://dev92474.service-now.com/\");\r\n\t\tdriver.switchTo().frame(0);\r\n\t\t\r\n\t\t//2. Login with valid credentials username as admin and password as India@123\r\n\t\tdriver.findElement(By.id(\"user_name\")).sendKeys(\"admin\");\r\n\t\tdriver.findElement(By.id(\"user_password\")).sendKeys(\"India@123\");\r\n\t\tdriver.findElement(By.id(\"sysverb_login\")).click();\r\n\t\t\r\n\t\t//3. Enter Incident in filter navigator and press enter\r\n\t\tdriver.findElement(By.id(\"filter\")).sendKeys(\"Incident\",Keys.ENTER);\r\n\t\tThread.sleep(2000);\r\n\t\t\r\n\t\t//4. Click on Create new option Under Incident\t\r\n\t\tdriver.findElement(By.xpath(\"(//div[text()='Create New'])[1]\")).click();\r\n\t\tThread.sleep(2000);\r\n\t\tdriver.switchTo().frame(\"gsft_main\");\r\n\t\t\r\n\t\t//5. Get the text of Number Field and Store it in a String\r\n\t\tString incidentNumber = driver.findElement(By.id(\"incident.number\")).getAttribute(\"value\");\r\n\t\tSystem.out.println(incidentNumber);\r\n\t\tThread.sleep(2000);\r\n\t\t\r\n\t\t//6. Click on the Search Button Available in the Caller Field & Choose First Value Opened in the new Window\r\n\t\tdriver.findElement(By.xpath(\"//button[@id='lookup.incident.caller_id']\")).click();\r\n\t\tString parentWindow = driver.getWindowHandle();\r\n\t\tSet<String> allWin1 = driver.getWindowHandles();\r\n\t\tSystem.out.println(\"The count of active windows are: \"+allWin1.size());\r\n\t\tArrayList<String> lst1 = new ArrayList<String>(allWin1);\r\n\t\tdriver.switchTo().window(lst1.get(1));\r\n\t\tdriver.findElement(By.xpath(\"(//tr[@data-list_id='sys_user']//following-sibling::td/a)[1]\")).click();\r\n\t\tdriver.switchTo().window(parentWindow);\r\n\t\tSystem.out.println(\"Control moved back to parent window\");\r\n\t\tdriver.switchTo().frame(0);\r\n\r\n\t\t//7. Select the Value as Software in Category Field\r\n\t\tWebElement categoryEle = driver.findElement(By.id(\"incident.category\"));\r\n\t\tSelect category = new Select(categoryEle);\r\n\t\tcategory.selectByVisibleText(\"Software\");\r\n\t\t\r\n\t\t//8. Select Email in Sub Category Field\r\n\t\tWebElement subCatEle = driver.findElement(By.id(\"incident.subcategory\"));\r\n\t\tSelect subCategory = new Select(subCatEle);\r\n\t\tsubCategory.selectByVisibleText(\"Email\");\r\n\r\n\t\t//9. Select Walk-in in Contact Type Field\r\n\t\tWebElement contactEle = driver.findElement(By.id(\"incident.contact_type\"));\r\n\t\tSelect contactType = new Select(contactEle);\r\n\t\tcontactType.selectByVisibleText(\"Walk-in\");\r\n\r\n\t\t//10. Select state as In-Progress\r\n\t\tWebElement stateEle = driver.findElement(By.id(\"incident.state\"));\r\n\t\tSelect state = new Select(stateEle);\r\n\t\tstate.selectByVisibleText(\"In Progress\");\r\n\r\n\t\t//11. Select Urgency as High\r\n\t\tWebElement urgencyEle = driver.findElement(By.id(\"incident.urgency\"));\r\n\t\tSelect urgency = new Select(urgencyEle);\r\n\t\turgency.selectByValue(\"1\");\r\n\r\n\t\t//12. Click on the Search Button Available in the Assignment Group & Choose Last Residing Value Opened in new Window\r\n\t\tThread.sleep(2000);\r\n\t\tdriver.findElement(By.id(\"lookup.incident.assignment_group\")).click();\r\n\r\n\t\tSet<String> allWin2 = driver.getWindowHandles();\r\n\t\tArrayList<String> lst2 = new ArrayList<String>(allWin2);\r\n\t\tSystem.out.println(\"The count of open windows are: \"+lst2.size());\r\n\t\tdriver.switchTo().window(lst2.get(1));\r\n\r\n\t\tList<WebElement> group = driver.findElements(By.xpath(\"//a[@class='glide_ref_item_link']\"));\r\n\t\tWebElement assignGroup = group.get(group.size()-1);\r\n\t\tassignGroup.click();\r\n\r\n\t\tdriver.switchTo().window(parentWindow);\r\n\t\tSystem.out.println(\"Control moved to parent window\");\r\n\t\tdriver.switchTo().frame(0);\r\n\r\n\t\t//13. Enter Short Description as \"Creating Incident For the Purpose of Management\"\r\n\t\tdriver.findElement(By.id(\"incident.short_description\")).sendKeys(\"Creating Incident For the Purpose of Management\");\r\n\t\t\r\n\t\t//14. Click on the Submit Button\r\n\t\tdriver.findElement(By.xpath(\"(//button[text()='Submit'])[2]\")).click();\r\n\t\tThread.sleep(3000);\r\n\t\t\r\n\t\t//15. Enter The Incident Number Newly created in Search Field and Press Enter\r\n\t\tdriver.findElementByXPath(\"(//label[text()='Search']//following::input)[1]\").sendKeys(incidentNumber,Keys.ENTER);\r\n\t\tThread.sleep(3000);\r\n\t\t\r\n\t\t//16. Click on the newly Created Incident Displayed\r\n\t\tString incident = driver.findElement(By.xpath(\"//a[@class='linked formlink']\")).getText();\r\n\t\tSystem.out.println(incident);\r\n\t\t\r\n\t\t//17. Verify the Incident Number\r\n\t\tif (incident.equalsIgnoreCase(incidentNumber)) {\r\n\t\t\tSystem.out.println(\"Both the incident numbers are same\");\r\n\t\t}\r\n\t\t\r\n\t\t//18. Update Impact as High\r\n\t\tdriver.findElement(By.xpath(\"//a[@class='linked formlink']\")).click();\r\n\t\tWebElement impactEle = driver.findElement(By.id(\"incident.impact\"));\r\n\t\tSelect impact = new Select(impactEle);\r\n\t\timpact.selectByValue(\"1\");\r\n\r\n\t\t//19. Update Description as \"Successfully Created an incident\"\r\n\t\tdriver.findElement(By.xpath\r\n\t\t\t\t(\"//textarea[@id='incident.description']\")).sendKeys(\"Successfully Created an incident\");\r\n\t\t\r\n\t\t//20. Enter Work Notes as \"Done Right\"\r\n\t\tdriver.findElement(By.xpath(\"//textarea[@id='activity-stream-textarea']\")).sendKeys(\"Done Right\");\r\n\t\t\r\n\t\t//21. Click on the Update button.\r\n\t\tdriver.findElement(By.id(\"sysverb_update\")).click();\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tThread.sleep(2000);\r\n\t\t\r\n\t\t//22. Logout and Close\r\n\t\tdriver.findElement(By.xpath(\"//button[@id='user_info_dropdown']\")).click();\r\n\t\tdriver.findElement(By.xpath(\"//a[text()='Logout']\")).click();\r\n\t\tdriver.close();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t}", "private static void listCounters(String pid) {\n VmIdentifier vmId = null;\n try {\n vmId = new VmIdentifier(pid);\n } catch (URISyntaxException e) {\n System.err.println(\"Malformed VM Identifier: \" + pid);\n return;\n }\n try {\n MonitoredHost monitoredHost = MonitoredHost.getMonitoredHost(vmId);\n MonitoredVm monitoredVm = monitoredHost.getMonitoredVm(vmId, -1);\n JStatLogger logger = new JStatLogger(monitoredVm);\n logger.printSnapShot(\"\\\\w*\", // all names\n new AscendingMonitorComparator(), // comparator\n false, // not verbose\n true, // show unsupported\n System.out);\n monitoredHost.detach(monitoredVm);\n } catch (MonitorException ex) {\n ex.printStackTrace();\n }\n }", "public void MAJInformation(Intent intent){\n\n XBee64BitAddress rAddress=hexStringToXBeeAddress(intent.getStringExtra(\"address\"));\n int indexTab=getindexFromXbeeAddress(rAddress);\n String rCMD=intent.getStringExtra(\"cmd\"); // cmd : PING || AUTH || START || STOP\n int status=intent.getIntExtra(\"status\",-1); // status de la borne\n int rExtStatus=intent.getIntExtra(\"ext_status\",-1); // ext status : DOOR OPENED || BOOT || ...\n int rError=intent.getIntExtra(\"error_status\",-1);\n int rSessionID=intent.getIntExtra(\"sessionID\",-1);\n int proto=intent.getIntExtra(\"proto\",-1);\n String rTag=intent.getStringExtra(\"tag\");\n Date time = new Date();\n time.setTime(intent.getLongExtra(\"time\", -1));\n\n\n Status rStatus=mCPStatus[indexTab];\n\n G2EvseCMD cmd=G2EvseCMD.valueOf(rCMD);\n\n if(cmd.equals(G2EvseCMD.PING)){\n rStatus.setInformationPing(G2EvseStatus.fromCode(status),rError,rExtStatus);\n rStatus.setSession(rSessionID, rTag, proto, time);//time in start session\n\n\n\n }else if(cmd.equals(G2EvseCMD.AUTH)){\n rStatus.setAuth(true);\n rStatus.setAuthInProgress( rTag );\n\n }else if(cmd.equals(G2EvseCMD.START)){\n rStatus.setSession(rSessionID, rTag, proto, time);\n\n }else if(cmd.equals(G2EvseCMD.STOP)){\n rStatus.setSession(rSessionID, rTag, proto, time);\n }\n }", "public void updateShellTransport() {\n // get device and shell transporter\n if (jShellTransport == null) {\n MobydroidDevice mDevice = MobyDroid.getDevice();\n if (mDevice == null) {\n return;\n }\n\n try {\n jShellTransport = mDevice.executeShell();\n new Thread(() -> {\n byte[] buffer = new byte[8 * 1024];\n int len;\n while (jShellTransport != null) {\n try {\n while ((len = jShellTransport.read(buffer)) > 0) {\n String string = new String(buffer, 0, len, Charset.forName(\"utf-8\"));\n jTerm.write(string, false);\n }\n } catch (IOException ex) {\n len = -1;\n }\n if (len == -1) {\n jShellTransport = null;\n break;\n }\n try {\n Thread.sleep(1);\n } catch (InterruptedException ex) {\n }\n }\n // exit falg\n jTerm.write(\"Terminated ...\", true);\n }).start();\n } catch (IOException | JadbException ex) {\n jShellTransport = null;\n Log.log(Level.SEVERE, \"UpdateShellTransport\", ex);\n }\n }\n }", "public synchronized void start() throws IOException {\n \t\tif (launchAtStart && acceptorThread == null) {\n \t\t\ttry {\n \t\t\t\tManagementFactory.getPlatformMBeanServer().registerMBean(this, getJMXObjectName());\n \t\t\t} catch (JMException e) {\n \t\t\t\tlog.warn(\"Failed to register GroovyShellService MBean\", e);\n \t\t\t}\n \n \t\t\tgroovyShellAcceptor = new GroovyShellAcceptor(port, createBinding(bindings), defaultScripts);\n \t\t\tacceptorThread = new Thread(groovyShellAcceptor, \"GroovyShAcceptor-\" + port);\n \t\t\tacceptorThread.start();\n \t\t}\n \t}", "void cronScheduledProcesses();", "private void startProcesses(double numProcessesRequired) {\r\n \t\tdouble numProcesses = pool.size() +\r\n \t\t\t\tpoolConfig.startupLimit - startupThrotle.availablePermits();\r\n \r\n \t\twhile (numProcesses < numProcessesRequired\r\n \t\t\t\t&& startupThrotle.availablePermits() > 0) {\r\n \t\t\tnumProcesses += 1.0;\r\n \t\t\tstartProcess();\r\n \t\t}\r\n \t}", "public void EBS_SCM_Scenario1_Login() throws Exception{\n\t\t\n\t\t/*---------------------ATOM CODE-----------------------------------*/\n\t\tSystem.out.println(\"variables in EBS_SCM_Scenario1_Login:\"+variables.getTableName()+\":\"+variables.getReleaseId()+\":\"+variables.getAppId());\n\t \n\t\tAppTestDTO appdata=null;\n\t\tApplicationDB AppDBobj=new ApplicationDB();\n\t\tappdata=AppDBobj.getTestDataForDataId();\n\t\tOutputBean ob=new OutputBean();\n\t\t\n\t\t\n\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tScreenshotName=(appdata.getTestClassName()+\"_\"+appdata.getTestMethodName()+\"-\"+appdata.getDataId());\n\t\t\t\tSystem.out.println(\"Reports Dir in EBS:\"+variables.getReportDir());\n\t\t\t\twriter=report.createlogfile(appdata.getTestMethodName(),appdata.getDataId(),variables.getReportDir());\n\t\t\t\t\n\t\t\ttcStartTime=System.currentTimeMillis();\n\t\t\tstartTime= Calendar.getInstance();\t\t\t\n\t\t\tstrtDateTime= formatter.format(startTime.getTime());\n\t\t\t\n\t\t\tSystem.out.println(\"start time:\"+tcStartTime);\n\t\t\t\n\t\t\t\n\t\t\tif(appdata.getBrowserType().equalsIgnoreCase(\"iexplorer\") || appdata.getBrowserType().equalsIgnoreCase(\"IE\") || appdata.getBrowserType().equalsIgnoreCase(\"InternetExplorer\"))\n\t\t\t{\n\t\t\t\tbrowser.setBrowserType(BrowserType.InternetExplorer);\n\t\t\t}\n\t\t\telse if(appdata.getBrowserType().equalsIgnoreCase(\"ff\") || appdata.getBrowserType().equalsIgnoreCase(\"firefox\"))\n\t\t\t{\n\t\t\t\tbrowser.setBrowserType(BrowserType.Firefox);\n\t\t\t}\n\t\t\tbrowser.launch();\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"BrowserId:\"+browser.getBrowserProcessID());\n\t\t\t\n\t\t\t/*---------------------ATOM CODE-----------------------------------*/\n\t\t\t\n\t\t\t//Place your code here \n\t\t\t//web.textBox(\"\").setText(appdata.getKey());\n\t\t\tob=applicationUtility.userLogin(ob,writer,appdata);\n\t\t\t\n\t\t\t//Place your code here \n\t\t\t/*---------------------ATOM CODE-----------------------------------*/\n\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"catch\");\n\t\t\t\t\n\t\t\t\tString errmsg=e.getMessage();\n\t\t\t\tif(errmsg.length() > 500){\n\t\t\t\t\terrmsg=errmsg.substring(0,500);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t}\n\t\tob.setErrorMsg(errmsg);\n\t\t\tob.setStatus(\"Failed\");\n\t\t\t\t\n\t\t\t\treport.logMessage(writer,ScreenshotName,\"Test Execution Failed\",\"Exception Occurred\", \"Exception Occurred \"+errmsg, \"Failed\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tbrowser.close();\n\t\t\t\t\tSystem.out.println(\"finally\");\n\t\t\t\t\t\n\t\t\t\t\ttcendTime=System.currentTimeMillis();\n\t\t\t\t\tendTime = Calendar.getInstance();\t\t\t\t\n\t\t\t\t\tendDateTime = formatter.format(endTime.getTime());\t\n\t\t\t\t\tSystem.out.println(endDateTime);\n\t\t\t\t\tSystem.out.println(\"Screenshot path in tc:\"+scrshotPath);\n\t\t\t\t\tob.setScreenshotPath(scrshotPath);\n\t\t\t\t\t\n\t\t\t\tAppDBobj.ResultMapAndDBUpdate(ob, variables.getTrackId(), Integer.parseInt(variables.getReleaseId()),Integer.parseInt(variables.getAppId()), strtDateTime, endDateTime, appdata);\n\t\t\t\t\t\n\t\t\t\t\treport.after(writer,tcStartTime,tcendTime,appdata.getOsType(),appdata.getBrowserType(),appdata.getBrowserVersion());\t\t\n\t\t\t\t\treport.closewriter(writer);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t/*---------------------ATOM CODE-----------------------------------*/\n\t\n\t\t}", "public static void main(String[] args) {\n try {\n //RocksDBUtils.getInstance().cleanChainStateBucket();\n // RocksDBUtils.getInstance().cleanBlockBucket();\n //RocksDBUtils.getInstance().cleanTxBucket();\n //RocksDBUtils.getInstance().cleanIpBucket();\n\n Server serverThread = new Server();\n CliThread cliThread = new CliThread();\n //String[] argss = {\"createwallet\"};\n //1DRDoamPwRDQa1775dVig7X8BitJm1273D +10\n //1Gsnure8ovCy3SiK6Fth44kDcwrEHjtFuj 10\n //18b76o68gGKg8ndXHDTDWdbG1DkGzMwfvZ 10 -10\n\n //String[] argss = {\"createblockchain\", \"-address\", \"18b76o68gGKg8ndXHDTDWdbG1DkGzMwfvZ\"};\n //0000fcc80177312ea7cd9b3db9497af6cae1d69a746332571f14d3c687eee1d0\n\n //String[] argss = {\"mineblock\", \"-address\" ,\"1Gsnure8ovCy3SiK6Fth44kDcwrEHjtFuj\"};\n\n\n //String[] argss = {\"printaddresses\"};\n //String[] argss = {\"getbalance\", \"-address\", \"18b76o68gGKg8ndXHDTDWdbG1DkGzMwfvZ\"};\n\n String[] argss = {\"send\", \"-from\", \"1Gsnure8ovCy3SiK6Fth44kDcwrEHjtFuj\", \"-to\", \"1DRDoamPwRDQa1775dVig7X8BitJm1273D\", \"-amount\", \"10\"};\n //String[] argss ={\"printchain\"};\n serverThread.start();\n cliThread.start(argss);\n\n\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n\n\n }", "public void executeCommandsForHost3Tier(String logName) throws Exception {\n\t\tSession session3 = this.host3;\n\t\tChannel channel3 = session3.openChannel(\"shell\");\n\n\t\t/* Output and Command list definition */\n\t\tops3 = channel3.getOutputStream();\n\t\tps3 = new PrintStream(ops3, true);\n\n\t\t/* Start to command burning */\n\t\tchannel3.connect();\n\n\t\tInputStream input3 = channel3.getInputStream();\n\n\t\t/** Host4 log collection side */\n\n\t\t// command lists\n\t\tThread.sleep(1000);\n\t\tps3.println(\"host3\"); /* Connect to host3 */\n\n\t\tThread.sleep(1000);\n\n\t\tps3.println(\"./logcap.sh -c \" + logName + \"_host3\"\n\t\t\t\t+ \" -z\"); /* run script for log collection */\n\t\tprintResult(input3, channel3);\n\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = null;\n RequestDispatcher dispatcher = null;\n ConnectDriverWeb cdw = null;\n ConnectDriverWeb cdw2 = null;\n ExecuteCommand executeCommand = null;\n String projectName = null;\n String userDataBase = null;\n String passwordDataBase = null;\n String serverDataBase = null;\n String dataBaseName = null;\n String dataBasePort = null;\n String glassfishWebPort = null;\n String glassfishHome = null;\n String userGlassfish = null;\n\n try {\n\n dispatcher = request.getRequestDispatcher(\"install2.jsp\");\n projectName = request.getParameter(\"projectName\");\n userDataBase = request.getParameter(\"userDataBase\");\n passwordDataBase = request.getParameter(\"passwordDataBase\");\n serverDataBase = request.getParameter(\"serverDataBase\");\n dataBaseName = request.getParameter(\"dataBaseName\");\n dataBasePort = request.getParameter(dataBasePort);\n glassfishWebPort = request.getParameter(\"glassfishWebPort\");\n glassfishHome = request.getParameter(\"glassfishHome\");\n userGlassfish = request.getParameter(\"userGlassfish\");\n out = response.getWriter();\n\n out.println(\"creating database and tables\");\n\n //for exec commands\n executeCommand = new ExecuteCommand(out, glassfishHome);\n\n //connect and create database ******\n cdw = new ConnectDriverWeb(response.getWriter(), userDataBase, passwordDataBase, serverDataBase, \"\",dataBasePort);\n //creating database\n cdw.update(\"CREATE DATABASE IF NOT EXISTS \" + dataBaseName + \";\");\n\n // creating tables\n //connect to the new database\n cdw2 = new ConnectDriverWeb(out, userDataBase, passwordDataBase, serverDataBase, dataBaseName,dataBasePort);\n //table collectors\n cdw2.update(\"CREATE TABLE collectors (collector_id int(5) NOT NULL AUTO_INCREMENT, collector_type int(1) DEFAULT NULL COMMENT '1 openblocks 2 server', collector_host varchar(50) DEFAULT NULL, collector_ip varchar(15)DEFAULT NULL, collector_site varchar(100) DEFAULT NULL, collector_description varchar(150) DEFAULT NULL, collector_port int(5) DEFAULT NULL, collector_port_connection_server int(5) DEFAULT NULL, collector_is_active int(1) DEFAULT NULL COMMENT '1 active 0 no active', collector_context varchar(25) DEFAULT NULL COMMENT 'part of url', collector_date_register timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'date of register', PRIMARY KEY (collector_id)) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;\");\n //table configuration\n cdw2.update(\"CREATE TABLE configuration (jws_path varchar(100) DEFAULT NULL,help_path varchar(100) DEFAULT NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1; \");\n //data for table configuration\n cdw2.update(\"insert into configuration(jws_path,help_path) values ('http://\" + serverDataBase + \":\" + glassfishWebPort + \"/\" + projectName + \"/snc-app-client','http://\" + serverDataBase + \":\" + glassfishWebPort + \"/snc-war/help.jsp');\");\n //table users\n cdw2.update(\"CREATE TABLE users (user_id int(5) NOT NULL AUTO_INCREMENT,user_name varchar(50) DEFAULT NULL,user_password varchar(50) DEFAULT NULL,user_level int(1) DEFAULT NULL COMMENT '1 =admin 2 = guest', user_description varchar(100) DEFAULT NULL, PRIMARY KEY (user_id)) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;\");\n //data for table users\n cdw2.update(\"insert into users(user_id,user_name,user_password,user_level,user_description) values (1,'skuarch','123',1,'administrator');\");\n cdw2.update(\"insert into users(user_id,user_name,user_password,user_level,user_description) values (2,'julio','123',1,'administrator');\");\n cdw2.update(\"insert into users(user_id,user_name,user_password,user_level,user_description) values (3,'invitado','123',2,'guest');\");\n\n \n\n //those doesn't work\n /*//cd\n //glassfishHome += \"bin/\";\n executeCommand.voidExec(\"cd \" + glassfishHome);\n\n //create connection pool\n executeCommand.voidExec(glassfishHome + \"./asadmin create-jdbc-connection-pool --user \" + userGlassfish + \" --datasourceclassname com.mysql.jdbc.jdbc2.optional.MysqlDataSource --restype javax.sql.DataSource --property user=\" + userDataBase + \":password=\" + passwordDataBase + \":DatabaseName=\" + dataBaseName + \":ServerName=\" + serverDataBase + \":port=3306 \" + projectName);\n //create jdbc for pool\n executeCommand.voidExec(glassfishHome + \"./asadmin create-jdbc-resource --connectionpoolid \" + projectName + \" jdbc/\" + projectName + \"\");\n\n //crear la cola\n executeCommand.voidExec(glassfishHome + \"./asadmin create-jms-resource --restype=javax.jms.TopicConnectionFactory jms/ConnectionFactory_\" + projectName);\n executeCommand.voidExec(glassfishHome + \"./asadmin create-jms-resource --restype=javax.jms.Topic jms_Topic_\" + projectName);\n */\n\n //mandar a una pagina y decir que todo salio bien\n dispatcher.forward(request, response);\n\n\n\n } catch (Exception e) {\n new ErrorWeb(out).printError(\"ERROR: Installer().processRequest() \", e);\n } finally {\n out.close();\n }\n }", "public void startServer(PWModelDetails pwModelDetails) {\n try {\n List<ServerSap> serverSaps = null;\n try {\n serverSaps = ServerSap.getSapsFromSclFile(pwModelDetails.getSclFileName());\n } catch (SclParseException e) {\n logger.info(\"Error parsing SCL/ICD file: \" + e.getMessage());\n e.printStackTrace();\n return;\n }\n serverSap = serverSaps.get(0);\n serverSap.setPort(pwModelDetails.getPortNumber());\n\n InetAddress address = null;\n try {\n ipAddress = pwModelDetails.getIpAddress();\n address = InetAddress.getByName(ipAddress);\n } catch (UnknownHostException e) {\n logger.info(\"Unknown host: \" + ipAddress);\n logger.info(\"Proxy will run with the defualt IP as define in the SCL file.\");\n logger.info(\"Unknown host \" + ipAddress);\n return;\n }\n if (address != null) {\n serverSap.setBindAddress(address);\n }\n Runtime.getRuntime().addShutdownHook(new Thread() {\n @Override\n public void run() {\n if (serverSap != null) {\n serverSap.stop();\n }\n logger.info(\"Server was stopped\");\n }\n });\n ServerModel serverModel = serverSap.getModelCopy();\n// create a SampleServer instance that can be passed as a callback object to startListening() and\n// SmartPowerIEDServer sampleServer = new SmartPowerIEDServer();\n SoftGridIEDServer sampleServer = this;\n// Open MUC initialization\n List<BasicDataAttribute> branchCircuitBreakerVals = new ArrayList<BasicDataAttribute>(3);\n for (String reference : iedRefFcHashMap.keySet()) {\n BasicDataAttribute field = (BasicDataAttribute) serverModel.findModelNode(reference, iedRefFcHashMap.get(reference));\n if (field == null) {\n logger.info(\">>>>>> Error in obtaining SCL reference object = \" + reference);\n }\n branchCircuitBreakerVals.add(field);\n }\n// Power World Device Initialization\n ParameterGenerator parameterGenerator = new ParameterGenerator();\n parameterGenerator.setSclKeyToPWKeyMap(pwModelDetails.getSclToPWMapping());\n parameterGenerator.setKeyParameters(pwModelDetails.getKeyArray());\n parameterGenerator.setValueParameters(pwModelDetails.getDataFieldArray());\n parameterGenerator.setPersistedValues(pwModelDetails.getValueArray());\n parameterGenerator.setDeviceObjectName(pwModelDetails.getDeviceName());\n if (controlAPI == null) {\n controlAPI = IedControlerFactory.getPWComBridgeIterface();\n synchronized (controlAPI) {\n if (!controlAPI.isCaseOpened()) {\n controlAPI.openCase();\n }\n }\n }\n parameterGenerator.setControlAPI(controlAPI);\n// load power world data\n serverSap.startListening(sampleServer, parameterGenerator);\n try {\n serverSap.setValues(branchCircuitBreakerVals);\n } catch (Exception e) {\n logger.info(\"pwModelDetails.getModelNodeReference() = \" + pwModelDetails.getModelNodeReference());\n e.printStackTrace();\n }\n\n String[][] paramPack = parameterGenerator.getParamPack();\n type = IEDUtils.getIEDType(parameterGenerator.getDeviceObjectName());\n id = ++IED_COUNT;\n StringBuffer sb = new StringBuffer();\n String logDataSeperator = \":\";\n boolean loged = false;\n logEvent(\"IED : \" + type.name() + \" : \" + id + \" is Started...!\");\n String[] elements = null;\n while (true) {\n synchronized (this) {\n try {\n Thread.sleep(PW_INTERROGATION_INTERVAL);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n elements = parameterGenerator.loadDataValues(paramPack);\n if (elements == null) {\n if(type.name().equals(\"BUS\"))\n {\n System.out.println(\"BUS\");\n }\n continue;\n }\n sb.append(\"Type:\").append(type.name());\n for (int i = 0; i < branchCircuitBreakerVals.size(); i++) {\n BasicDataAttribute modelNodes = branchCircuitBreakerVals.get(i);\n if (modelNodes != null && elements.length > i) {\n String pwKeyName = null;\n for (String sclKey : parameterGenerator.getSclKeyToPWKeyMap().keySet()) {\n if (modelNodes.getReference().toString().endsWith(sclKey)) {\n pwKeyName = sclKey;\n }\n }\n if (pwKeyName == null) {\n continue;\n }\n for (int j = 0; j < paramPack[0].length; j++) {\n if (!loged) {\n sb.append(logDataSeperator).append(paramPack[0][j]).append(logDataSeperator).append(elements[j]);\n }\n if (parameterGenerator.getSclKeyToPWKeyMap().get(pwKeyName).equals(paramPack[0][j])) {\n if (modelNodes instanceof BdaDoubleBitPos) {\n byte[] status = new byte[1];\n if (elements[j].equalsIgnoreCase(\"open\")) {\n status[0] = 0;\n } else {\n status[0] = 1;\n }\n ((BdaDoubleBitPos) modelNodes).setValue(status);\n } else if (modelNodes instanceof BdaVisibleString) {\n ((BdaVisibleString) modelNodes).setValue(elements[j]);\n } else if (modelNodes instanceof BdaFloat32) {\n ((BdaFloat32) modelNodes).setFloat(Float.parseFloat(elements[j]));\n }\n }\n }\n loged = true;\n }\n }\n serverStarted = true;\n// synchronized (logger) {\n// if (ConfigUtil.MANUAL_EXPERIMENT_MODE) {\n // if this string is not printed in the log file,\n logger.info(sb.toString());\n// }\n// }\n sb = new StringBuffer(\"\");\n loged = false;\n serverSap.setValues(branchCircuitBreakerVals);\n if (serverStoped) {\n serverStarted = false;\n break;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void startProcess() {\r\n \t\tstartCount++;\r\n \t\tString threadName = Thread.currentThread().getName() + \"-starter-\" + startCount;\r\n \t\tThread starter = new Thread(threadName) {\r\n \t\t\t@Override\r\n \t\t\tpublic void run() {\r\n \t\t\t\tstartupThrotle.acquireUninterruptibly();\r\n \t\t\t\tlong startTime = System.currentTimeMillis();\r\n \t\t\t\tMaximaProcess mp = makeProcess();\r\n \t\t\t\tstartupTimeHistory.add(System.currentTimeMillis() - startTime);\r\n \t\t\t\tmp.deactivate();\r\n \t\t\t\tpool.add(mp);\r\n \t\t\t\tstartupThrotle.release();\r\n \t\t\t}\r\n \t\t};\r\n \t\tstarter.start();\r\n \t}", "public TrayHandler() {\n this.statusImages[0] = Toolkit.getDefaultToolkit().getImage(\"src/apache2tray/images/active.png\");\n this.statusImages[1] = Toolkit.getDefaultToolkit().getImage(\"src/apache2tray/images/inactive.png\");\n \n this.statusText[0] = \"Apache is running\";\n this.statusText[1] = \"Apache is not running\";\n \n this.systemtray = SystemTray.getSystemTray();\n }", "public void exec();", "public List<Map<String, Object>> waitIncrementTaskFinished(final String distSQL) {\n for (int i = 0; i < 10; i++) {\n List<Map<String, Object>> listJobStatus = queryForListWithLog(distSQL);\n log.info(\"show status result: {}\", listJobStatus);\n Set<String> actualStatus = new HashSet<>();\n Collection<Integer> incrementalIdleSecondsList = new LinkedList<>();\n for (Map<String, Object> each : listJobStatus) {\n assertTrue(Strings.isNullOrEmpty((String) each.get(\"error_message\")), \"error_message: `\" + each.get(\"error_message\") + \"`\");\n actualStatus.add(each.get(\"status\").toString());\n String incrementalIdleSeconds = each.get(\"incremental_idle_seconds\").toString();\n incrementalIdleSecondsList.add(Strings.isNullOrEmpty(incrementalIdleSeconds) ? 0 : Integer.parseInt(incrementalIdleSeconds));\n }\n if (Collections.min(incrementalIdleSecondsList) <= 5) {\n Awaitility.await().pollDelay(3L, TimeUnit.SECONDS).until(() -> true);\n continue;\n }\n if (actualStatus.size() == 1 && actualStatus.contains(JobStatus.EXECUTE_INCREMENTAL_TASK.name())) {\n return listJobStatus;\n }\n }\n return Collections.emptyList();\n }", "@Override\n public void run() {\n MemUsage memUsage = new MemUsage();\n Runtime run = Runtime.getRuntime();\n String memPath = \"/proc/\" + processId + \"/status\";\n LOG.info(\"Reading the file for memory: \" + memPath);\n String currentTime;\n File statusFile;\n float pcpu;\n int pmem;\n ProcessInfoBean processInfoBean = new ProcessInfoBean();\n processInfoBean.setLocalHostIp(ip);\n processInfoBean.setProceeName(processName);\n while (running) {\n pcpu = getCPUUsageByTopCommond(run, cmd);\n if (pcpu != -1) {\n statusFile = new File(memPath);\n if (statusFile.exists()) {\n pmem = memUsage.getMemUsage(statusFile);\n if (pmem != -1) {\n currentTime = TimeUtils.getCurrentTime();//获取系统当前时间\n processInfoBean.setUpdateTime(currentTime);\n processInfoBean.setCpuUsage(pcpu);\n processInfoBean.setMemUsage(pmem);\n processInfoBean.setPid(Integer.parseInt(processId));\n processInfoDao.insert_process_monitor(processInfoBean);\n MybatisUtils.session.commit();\n try {\n Thread.sleep(intervalTime);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }\n }\n }\n }", "private void enableBtmon() {\n System.out.println(\"Starting Btmon Service...\");\n try {\n btmonProcess = new ProcessBuilder(\"/usr/bin/btmon\").start();\n InputStreamReader inputStream = new InputStreamReader(btmonProcess.getInputStream());\n int size;\n char buffer[] = new char[1024];\n while ((size = inputStream.read(buffer, 0, 1024)) != -1) {\n // System.out.println(\" --- Read ----\");\n String data = String.valueOf(buffer, 0, size);\n processBeaconMessage(data);\n // Thread.sleep(1000);\n }\n } catch (IOException ex ) {\n ex.printStackTrace();\n } catch (Exception ex ) {\n ex.printStackTrace();\n } finally {\n if (btmonProcess != null)\n btmonProcess.destroy();\n }\n }", "private void sessionKill() {\n // prompt for the sid to trace\n// String msg = \"If connected as SYSDBA then an audit entry will be written to the alert log.\\n\\n\" +\n// \"Enter the SID of the session you wish to kill:\";\n String msg = \"SYSDBA or DBA privileges are required...\\n\\nEnter the SID of the session you wish to kill:\";\n String tmp = JOptionPane.showInputDialog(this,msg,\"Kill Session\",JOptionPane.QUESTION_MESSAGE);\n if (tmp instanceof String) {\n int sid = Integer.valueOf(tmp).intValue();\n\n // check the sid exists\n Vector resultSetRow = getSidDetails(sid);\n String serial = resultSetRow.elementAt(3).toString();\n try {\n if (!resultSetRow.elementAt(0).equals(\"-1\")) {\n // get confirmation\n msg = \"Killing Session \" + sid + \", serial# \" + serial;\n int opt = JOptionPane.showConfirmDialog(this,msg,\"Kill Session\",JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE);\n\n // kill session\n if (opt == 0) {\n String sql = \"alter system kill session '\" + sid + \",\" + serial + \"'\";\n try {\n // perform the kill\n int rows = ConnectWindow.getDatabase().executeUpdate(sql,false);\n\n // write a kill log to the RichMon log diectory\n boolean sessionTabExists = false;\n File killLog;\n if (ConnectWindow.isLinux()) {\n killLog = new File(ConnectWindow.getBaseDir() + \"/KillLog/RichMon Killed Session \" + sid + \" on Instance \" + instanceName + \".html\");\n }\n else {\n killLog = new File(ConnectWindow.getBaseDir() + \"\\\\KillLog\\\\RichMon Killed Session \" + sid + \" on Instance \" + instanceName + \".html\");\n }\n BufferedWriter killLogWriter = new BufferedWriter(new FileWriter(killLog));\n\n // get the sessionPanel for this sid\n int numSessionPanels = sessionV.size();\n SessionDetailPanel mySessionPanel;\n for (int i=0; i < numSessionPanels; i++) {\n mySessionPanel = (SessionDetailPanel) sessionV.get(i);\n if (mySessionPanel.sid == sid) {\n // create an outputHTML process to write the kill log containing all QueryResult's from the last iteration\n OutputHTML killLogOutputHTML = new OutputHTML(killLog, killLogWriter,mySessionPanel);\n sessionTabExists = true;\n break;\n }\n }\n\n if (!sessionTabExists) {\n killLogWriter.write(\"<html>\\n\");\n killLogWriter.write(\"<body>\\n\");\n killLogWriter.write(\"<table border cellspacing=0 cellpadding=1>\");\n killLogWriter.write(\"<tr><td>Sid</td><td>\" + resultSetRow.elementAt(1) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>SPid</td><td>\" + resultSetRow.elementAt(0) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Username</td><td>\" + resultSetRow.elementAt(2) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Serial#</td><td>\" + resultSetRow.elementAt(3) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Logon Time</td><td>\" + resultSetRow.elementAt(4) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Server</td><td>\" + resultSetRow.elementAt(5) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Shared Server</td><td>\" + resultSetRow.elementAt(6) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Dispatcher</td><td>\" + resultSetRow.elementAt(7) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Status</td><td>\" + resultSetRow.elementAt(8) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Program</td><td>\" + resultSetRow.elementAt(9) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Machine</td><td>\" + resultSetRow.elementAt(10) + \"</td></tr>\\n\");\n killLogWriter.write(\"</body>\\n\");\n killLogWriter.write(\"</html>\\n\");\n }\n\n // close the kill log\n killLogWriter.close();\n\n // inform user the kill succeeded\n// msg = \"Session \" + sid + \" Killed\\n\\nA log of the session killed has been written to your RichMon log directory\" +\n// \"\\n\\nIf you have sysdba privilege this has also been logged to the alert log.\";\n msg = \"Session \" + sid + \" Killed\\n\\nA log of the session killed has been written to your RichMon log directory.\";\n\n JOptionPane.showMessageDialog(this,msg,\"Kill Session\",JOptionPane.INFORMATION_MESSAGE);\n\n if (ConnectWindow.isSysdba()) {\n try\n {\n msg = \"RichMon: Session Killed: Sid: \" + sid + \"\\n\" +\n \" Serial#: \" + serial + \"\\n\" +\n \" Username: \" + resultSetRow.elementAt(2) + \"\\n\" +\n \" SPid: \" + resultSetRow.elementAt(0) + \"\\n\" +\n \" Logon Time: \" + resultSetRow.elementAt(4) + \"\\n\" +\n \" Server: \" + resultSetRow.elementAt(5) + \"\\n\" +\n \" Shared Server: \" + resultSetRow.elementAt(6) + \"\\n\" +\n \" Dispatcher: \" + resultSetRow.elementAt(7) + \"\\n\" +\n \" Status: \" + resultSetRow.elementAt(8) + \"\\n\" +\n \" Program: \" + resultSetRow.elementAt(9) + \"\\n\" +\n \" Machine: \" + resultSetRow.elementAt(10);\n // ConnectWindow.getDatabase().writeMSGToAlert(msg);\n }\n catch (Exception eee) {\n displayError(eee,this,\"Writing audit message to the alert log\");\n }\n }\n }\n catch (Exception ee) {\n displayError(ee,this);\n }\n }\n }\n else {\n throw new NoSuchSessionExistsException(\"Sid : \" + sid);\n }\n }\n catch (Exception e) {\n displayError(e,this);\n }\n }\n }", "public Integer call() throws IOException {\n \t\t\tint ret=90;\n \t\t\ttestCases = new ArrayList<String>();\n \t\t\trealIds = new ArrayList<String>();\n \t \tString path = \"./workspace/\"+jobname;\n\t\t\t\tlistener.getLogger().println(\"IL PATH DEL TESTRUN E' \"+path);\n \t\t\t/* folders = listFilesForFolder(new File(path),listener);\n \t\t\t// cerco il TestRun nell'svn di Polarion\n \tcheck:\tfor(String folder : folders){\n \t \tlistener.getLogger().println(\"confronto: \"+testrunid+\" - \"+folder);\n \t\t\t\tif(testrunid.equals(folder)){ \t\t\t\t\t\n \t\t\t\t\t// prelevo i TestCase relativi al TestRun\n \t\t\t\t\t */\n \t\t\t\t\ttestCases = getTestCases(path,listener);\n \t\t\t\t\tString nometestrun = \"Executed - \"+testrunid+\".xml\";\n \t\t\t\t\tif(!testCases.isEmpty()){\n \t\t\t\t\t\t// prelevo l'ID vero dei Test Case\n\t\t\t\t\t\t\trealIds = getRealTestCaseIdFromPolarion(listener,testCases);\n\t\t\t\t\t\t\tif(type.equals(\"TestMTP\")){ // ESECUZIONE SU MTP\n\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguo MTP\");\n\t\t\t\t\t\t\t\tfor(String realId : realIds){\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/* Per l'esecuzione con lo stub (va messa fuori il for per funzionare)\n\t\t \t\t\t\t\tCreaXMLStub stub = new CreaXMLStub(testCases);\n\t\t\t\t\t\t\t\tstub.doTest(\"C:/JenkinsSlave/workspace/\"+jobname+\"/Temp/\"+nometestrun,listener);*/\n\t\t\t\t\t\t\t}else if(type.equals(\"TestMX\")){ // ESECUZIONE SU MICROMAX\n\t\t\t\t\t\t\t\tif(!scenario){\n\t\t\t\t\t\t\t\t\tArrayList<Integer> returnCodes = new ArrayList<Integer>();\n\t\t\t\t\t\t\t\t\tfor(String realId : realIds){\n\t\t\t\t\t\t\t\t\t\t// stampo il realId del test case\n\t\t\t\t\t\t\t \tlistener.getLogger().println(\"TC: \"+realId);\n\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguo MX\");\n\t\t\t\t\t\t\t\t\t\tString[] parameters = realId.split(\",\");\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tProcessBuilder builder = new ProcessBuilder(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"MxVGUI\", \"/n\", \"/r\", mxpath+File.separator+parameters[0]+File.separator+parameters[1]+\".mxp\", mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+parameters[2]); \n\t\t\t\t\t\t\t\t\t\t\tbuilder.redirectErrorStream(true); \n\t\t\t\t\t\t\t\t\t\t\tProcess p = builder.start();\n\t\t\t\t\t\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\t\t\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"tasklist: \" + line);\n\t\t\t\t\t\t\t\t\t\t\tret=p.waitFor();\n\t\t\t\t\t\t\t\t\t\t\treturnCodes.add(ret);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguito MX \"+ret);\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\tContactPolarion(listener);\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(e.getMessage());\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//Scrive i risultati in base al valore di ritorno di MxVDEV\n\t\t\t\t\t\t\t\t\twriteTestResults(\"C:/JenkinsSlave/Results/\"+nometestrun, testCases, returnCodes);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//Converto tutti i risultati nel formato desiderato leggendo i log\n\t\t\t\t\t\t\t\t//convertTestCaseResults(realIds, \"C:/JenkinsSlave/workspace/\"+jobname+\"/Temp/\"+nometestrun, testCases);\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t//convertScenarioResults(testCases, new ArrayList<String>(), mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+testrunid ,testrunid);\n\t\t\t\t\t\t\t\t\tString[] parameters = realIds.get(0).split(\",\");\n\t\t\t\t\t\t\t\t\tScenario scenario = new Scenario(testrunid,realIds,mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\");\n\t\t\t\t\t\t\t\t\tif(scenario.createScenario()){\n\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"Scenario creato\");\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tProcessBuilder builder = new ProcessBuilder(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"MxVGUI\", \"/n\", \"/r\", mxpath+File.separator+parameters[0]+File.separator+parameters[1]+\".mxp\", mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+testrunid+\".mxs\"); \n\t\t\t\t\t\t\t\t\t\t\tbuilder.redirectErrorStream(true); \n\t\t\t\t\t\t\t\t\t\t\tProcess p = builder.start();\n\t\t\t\t\t\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\t\t\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"tasklist: \" + line);\n\t\t\t\t\t\t\t\t\t\t\tret=p.waitFor();\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguito MX \"+ret);\n\t\t\t\t\t\t\t\t\t\t\tconvertScenarioResults(testCases, new ArrayList<String>(), mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+testrunid ,testrunid);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\tContactPolarion(listener);\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(e.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"creazione dello scenario non riuscita\");\n\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}\n\t\t\t\t\t\t\t}else{ // CONDIZIONE EVENTUALI ERRORI\n\t\t\t\t\t\t\t\tContactPolarion(listener);\n\t\t\t\t\t\t\t\tlistener.getLogger().println(\"condizione inaspettata\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tpublishTest(\"C:/JenkinsSlave/Results/\",sharedpasswd,shareduser,nometestrun, listener, projectname);\n\t\t\t\t\t \t}else{\n\t\t\t\t\t \t\tContactPolarion(listener);\n\t\t\t\t\t \t\tlistener.getLogger().println(\"Nessun tc impostato. Setto tr a open\");\n\t\t\t\t\t \t//}\n\t\t\t\t\t \t//break check;\n \t\t\t\t//}\n \t\t\t}\n \t\t\treturn ret; \t\n \t\t}", "public void execute() throws Exception {\n\n\t\tString datepattern = \"yyyy-MM-dd\";\n\t\tSimpleDateFormat sdf =new SimpleDateFormat(datepattern);\n\t\t//testing console\n\t\t if(TestHTTP.test(Parameters.LATC_CONSOLE_HOST))\n\t \tlogfile.info(Parameters.LATC_CONSOLE_HOST+\" OK\");\n\t else \n\t {\n\t \tlogfile.severe(Parameters.LATC_CONSOLE_HOST+\" DOWN\");\n\t \tSystem.exit(0);\n\t \t}\n \t\t\n\t\tListTranslator lt = new ListTranslator();\n ContentWriter cw = new ContentWriter();\n \n ConsoleConnection client = new ConsoleConnection(Parameters.LATC_CONSOLE_HOST);\n \n /*\n * Getting list of link configuration from LATC_CONSOLE\n * JSON Format : title, identifier\n */\n \n if(!client.getTasks())\n {\n \tlogfile.severe(\"Error during get Queue \"+client.getMessage());\n \tSystem.exit(0);\n }\n lt.translateMember(client.getMessage());\n toDoList = lt.getLinkingConfigs();\n \n ReportCSV report = new ReportCSV( Parameters.RESULT_LOCAL_DIR+\"/report\"+sdf.format(new Date())+\".csv\");\n \n for (String title : toDoList.keySet()) {\n \t boolean blacklist = false;\n \tfinal String [] split = toDoList.get(title).split(\"#\");\n \tfinal String id = split[0];\n \tfinal String speccretime = split[1];\n \tfinal String specmodtime = split[2];\n \tfinal String specAuthor = split[3];\n \n \t logfile.info( \"start processing id \"+id+\" title \"+title);\n \n // checking blacklist\n \t if(title.startsWith(\"**\"))\n {\n \tblacklist = true;\n \ttitle = title.substring(2);\n }\n \t\n \tReportCSV.status st = status.failed; \n //create id directory\n boolean exists = (new File(RESULTDIR +'/'+ title).exists());\n if (!exists)\n \t\t\t (new File(RESULTDIR +'/'+ title )).mkdirs();\n \n \n \n \t\n \n /*\n * Writing specification linking from LATC_CONSOLE_HOST/configuration/ID/specification\n */\n if(!client.getSpec(id))\n {\n \tlogfile.severe(\"Error during get Specification id \"+id+\" \"+client.getMessage());\n }\n else\n {\n \t\n \t\tDate startDate = new Date();\n \t\tdatepattern = \"yyyy-MM-dd'T'HH:mm:ssZZ\";\n \t\tsdf.applyPattern(datepattern);\n \tString specContent = client.getMessage();\n\t cw.writeIt(RESULTDIR +'/'+ title + '/'+ Parameters.SPEC_FILE, specContent);\n\t VoidInfoDto Void=this.parseSpec(RESULTDIR +'/'+ title + '/'+ Parameters.SPEC_FILE);\n \n\t Void.setSpecRetrievedTime(sdf.format(startDate));\n\t Void.setSpecCreatedTime(speccretime);\n\t Void.setSpecAuthor(specAuthor);\n\t Void.setID(id);\n\t Void.setTitle(title);\n\t Void.setSpecModifiedTime(specmodtime);\n\t Void.setSilkSpecAPIResource(Parameters.LATC_CONSOLE_HOST+\"/api/task/\"+id+\"/configuration\");\n\t \n//\t \t6- data dump\n\t datepattern = \"yyyy-MM-dd\";\n\t \t\tsdf.applyPattern(datepattern);\n Void.setDataDump(Parameters.RESULTS_HOST + '/' +sdf.format(new Date())+'/'+title + \"/\"+Parameters.LINKS_FILE_STORE);\n Void.setSpec(Parameters.RESULTS_HOST + '/' +sdf.format(new Date())+'/'+title + \"/\"+Parameters.SPEC_FILE);\n \n // blacklist\n if(blacklist)\n {\n \tst = status.ongoing;\n \tVoid.setRemarks(\"Unpredicted\");\n \tclient.postReport(id, Void,Parameters.API_KEY);\n \treport.putData(id, title, Void.getSpec(), 0, st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n \tcontinue;\n }\n \n\t \t//testing endpoint\n\t if(Void.getSourceSparqlEndpoint()!=null && !this.testConn(Void.getSourceSparqlEndpoint()))\n\t \t{\n\t \t\tDate errDate = new Date();\n\t \t\tVoid.setRemarks(Void.getSourceSparqlEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getTargetSparqlEndpoint()!=null && !this.testConn(Void.getTargetSparqlEndpoint()))\n\t \t{\n\t \t\tDate errDate = new Date();\t\n\t \t\tVoid.setRemarks(Void.getTargetSparqlEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getSourceUriLookupEndpoint()!=null && !this.testConn(Void.getSourceUriLookupEndpoint()))\n\t \t{\n\t \tDate errDate = new Date();\t\n\t \tVoid.setRemarks(Void.getSourceUriLookupEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getTargetUriLookupEndpoint()!=null && !this.testConn(Void.getTargetUriLookupEndpoint()))\n\t \t{\n\t \tDate errDate = new Date();\n\t \t\tVoid.setRemarks(Void.getTargetUriLookupEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void, Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n \n\t \n\t \n\t /*\n\t * Running hadoop for silk Map reduce\n\t */\n\t if (this.runHadoop(title, Void,RESULTDIR)) {\n\t \n\t\n\t cw.writeIt(RESULTDIR +'/'+ title + '/'+ Parameters.VOID_FILE, Void);\n\t\n\t // 2-e\n\t Void.setRemarks(Void.getStatItem()+\" Links generated successfully\");\n\t logfile.info( \"Processing id \"+id+\" title \"+title+ \" success\");\n\t\n\t } // if hadoop\n\t else {\n\t \tlogfile.severe( \"Processing id \"+id+\" title \"+title+ \" failed\");\n \t \n\t }\n\t Date endDate = new Date();\n\t \n\t if(Void.getStatItem()>=0)\n\t \tst = status.sucesss;\n\t else if(Void.getStatItem()==-2)\n\t \tst= status.ongoing;\n\t \n\t report.putData(id, title, Void.getSpec(), endDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t client.postReport(id, Void,Parameters.API_KEY);\n\t }\n } // for loop\n report.close(); \n logfile.info(\"Runtime done\");\n \n }", "@Override\n\t@Ignore\n\t@Test\n\tpublic void testLaunchShowsInProcessContainer() throws Throwable {\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\t\r\n\r\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"http://test1.absofttrainings.com/shop\");\r\n\t\tSystem.out.println(\"Intial window count: \" + \tdriver.getWindowHandles().size());\r\n\t\t\r\n\t\tSystem.out.println(\"Main Window Handle: \" + driver.getWindowHandle());\r\n\t\t\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.findElement(By.xpath(\"//a[@title='facebook']\")).click();\r\n\t\tSystem.out.println(\"Window count after facebook click: \" + \tdriver.getWindowHandles().size());\r\n\t\t\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.findElement(By.id(\"sitelock\")).click();\r\n\t\tSystem.out.println(\"Window count after sitelock click: \" + \tdriver.getWindowHandles().size());\r\n\t\t\r\n\t\tdriver.quit();\r\n\t\t\r\n\t\tIterator<String> whs = driver.getWindowHandles().iterator();\r\n\t\t\r\n\t\tString mainWin=whs.next();\r\n\t\tString fbWin=whs.next();\r\n\t\tString slWin=whs.next();\r\n\t\t\r\n\t\tThread.sleep(3000);\r\n\t\t\r\n\t\tdriver.switchTo().window(fbWin);\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.findElement(By.id(\"email\")).sendKeys(\"username\");\r\n\t\tdriver.findElement(By.id(\"pass\")).sendKeys(\"password\");\r\n\t\tdriver.findElement(By.id(\"u_0_0\")).click();\r\n\t\tdriver.close();\r\n\t\t\r\n\t\tdriver.switchTo().window(slWin);\r\n\t\tThread.sleep(3000);\r\n\t\tSystem.out.println(\"SiteLock Page Domain: \" + \r\n\t\t\t\tdriver.findElement(By.xpath(\"//table[@id='inner-table']/tbody/tr[3]/td[2]\")).getText());\r\n\t\tdriver.close();\r\n\t\t\r\n\t\tdriver.switchTo().window(mainWin);\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.findElement(By.partialLinkText(\"Apple IPhone\")).click();\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.close();\r\n\r\n\t}", "@Override\n public Void action(MBeanServerConnection connection, JBoss5ProfileServiceProxy profileService) throws Exception {\n if (profileService != null) {\n profileService.startAndWait(mainModuleID.getModuleID(), TIMEOUT);\n }\n return null;\n }", "public static void call(String sh) {\n Runtime runtime = Runtime.getRuntime();\n try {\n Process p = runtime.exec(sh);\n BufferedInputStream in = new BufferedInputStream(p.getInputStream());\n BufferedInputStream error = new BufferedInputStream(p.getErrorStream());\n\n BufferedReader inBr = new BufferedReader(new InputStreamReader(in));\n BufferedReader errorBr = new BufferedReader(new InputStreamReader(error));\n\n String lineStr;\n while ((lineStr = inBr.readLine()) != null) {\n //获得命令执行后在控制台的输出信息\n System.out.println(lineStr);\n // 打印输出信息\n }\n\n String errorStr;\n while ((errorStr = errorBr.readLine()) != null) {\n //获得命令执行后在控制台的输出信息\n System.out.println(\"error : \" + errorStr);\n // 打印输出信息\n }\n\n if (p.waitFor() != 0) {\n System.out.println(p.waitFor());\n }\n } catch (Exception e) {\n System.out.println(\"error\");\n e.printStackTrace();\n }\n }", "private static int dumpCommandExecute(String dumpCommand) throws IOException, InterruptedException{\r\n\t\tRuntime rt = Runtime.getRuntime();\r\n\t\tProcess child = rt.exec(dumpCommand);\r\n\t\tint processComplete = child.waitFor();\r\n\t\treturn processComplete ;\r\n\t}", "private StringBuilder createThreadDump() {\n StringBuilder string = new StringBuilder();\n string.append(\"------------------------------\\n\");\n //\n string.append(\"Entire Thread Dump:\\n\");\n ThreadInfo[] threads = ManagementFactory.getThreadMXBean().dumpAllThreads(true, true);\n\n for (ThreadInfo thread : threads) {\n writeThreadToStringBuilder(thread, string);\n }\n\n string.append(\"------------------------------\\n\");\n\n return string;\n }", "public void plan(String studyRepositoryURL, File exportedWorkspace, int finalConfiguration, String workspaceStudy) throws Exception {\n String url_oceano = \"http://localhost:8092/oceano/JSONServlet\";\n// String url_oceano = \"http://10.0.0.102:8092/oceano/JSONServlet\";\n// String url_oceano = \"https://gems.ic.uff.br/oceano/JSONServlet\";\n\n\n // List the repository\n list(studyRepositoryURL);\n // Create study workspace\n\n File studyWorkspace = createWorkSpace(workspaceStudy);\n // Check-out the configuration\n CheckoutCiclo checkoutCiclo = new CheckoutCiclo();\n\n CheckOut remoto = checkoutCiclo.remoto(studyRepositoryURL, \"marapa\", \"marapao\", studyWorkspace.getPath(), url_oceano);\n System.out.println(\"svn co \" + studyRepositoryURL + \" \" + studyWorkspace.getPath());\n\n\n\n if (!workspaceStudy.endsWith(\"/\")) {\n workspaceStudy += \"/\";\n }\n\n workspaceStudy += remoto.getAutobranch();\n studyWorkspace = new File(workspaceStudy);\n\n merge(exportedWorkspace, studyWorkspace);\n\n checkin(workspaceStudy);\n\n if (remoto.getAutobranch() % 20 == 0) {\n\n System.out.println(\"----------------Esperando 2 minutos---------------------------------\");\n System.gc();\n Thread.sleep(60000);\n\n\n\n File f = new File(\"/home/marapao/experiementos/scripts/reiniciaglassfish\");\n Runtime r = Runtime.getRuntime();\n Process exec = null;\n\n System.out.println(\"---------------------Reiniciando GlassFish---------------------------------------\");\n if (f.canExecute()) {\n exec = r.exec(f.getAbsolutePath());\n }\n\n exec.waitFor();\n\n System.out.println(\"----------------Esperando 1 minutos---------------------------------\");\n System.gc();\n Thread.sleep(60000);\n //reiniciar o glassfish\n ///home/marapao/glassfish/bin/asadmin stop-domain\n ///home/marapao/glassfish/bin/asadmin start-domain\n\n\n }\n\n }", "public static void main(String[] args) {\n try {\n //创建一个远程对象\n\n String ip = args[0];\n String port = args[1];\n Integer totalSpace = args[2] == null ? 100 :Integer.valueOf(args[2]);\n ChunkServerProperties properties = new ChunkServerProperties();\n properties.setIp(ip);\n properties.setPort(port);\n\n IChunkServerService chunkServer = new BFSChunkServer(totalSpace,0,\"/\",ip);\n\n LocateRegistry.createRegistry(Integer.parseInt(port));\n\n String rmi = \"rmi://\"+properties.getServerIpPort()+\"/chunk_server\";\n Printer.println(rmi);\n Naming.bind(rmi,chunkServer);\n\n String masterRMI =\"rmi://127.0.0.1:8888/master\";\n\n IMasterService masterService =(IMasterService) Naming.lookup(\"rmi://127.0.0.1:8888/master\");\n\n\n masterService.registerChunkServer(properties);\n\n Printer.println(\"register to master \"+masterRMI + \" succcess\");\n\n } catch (RemoteException e) {\n e.printStackTrace();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (AlreadyBoundException e) {\n e.printStackTrace();\n } catch (NotBoundException e) {\n e.printStackTrace();\n }\n }", "private static void process() {\n try {\n \tpath = path.replaceAll(\"\\\\\\\\\",\"\\\\\\\\\\\\\\\\\");\n Process process = Runtime.getRuntime().exec(\"cmd /c start \"+\"\\\"\"+\"\\\" \\\"\"+ path+\"\\\"\");\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }" ]
[ "0.5117254", "0.50562847", "0.50118965", "0.49608514", "0.49544695", "0.49230248", "0.49142903", "0.4898678", "0.48244876", "0.4797013", "0.47626835", "0.4727565", "0.46830922", "0.46689907", "0.4634709", "0.46186176", "0.4618431", "0.46179867", "0.46026197", "0.46015248", "0.45638293", "0.45489392", "0.45461094", "0.45425177", "0.45364878", "0.45255566", "0.4525494", "0.45100296", "0.45068803", "0.45007768", "0.44988242", "0.44936523", "0.44899666", "0.4487297", "0.44840232", "0.4477836", "0.44777694", "0.4475819", "0.44745058", "0.4463826", "0.44634795", "0.44577998", "0.44545782", "0.44419914", "0.44395566", "0.44347283", "0.44327098", "0.4423698", "0.44231695", "0.44223773", "0.44121903", "0.44094765", "0.44092453", "0.44076526", "0.440385", "0.44024575", "0.43920532", "0.43891305", "0.43829927", "0.4367478", "0.43538687", "0.43491364", "0.43314016", "0.4329112", "0.43238688", "0.4317421", "0.43103182", "0.4306288", "0.43042117", "0.4301932", "0.42983764", "0.42831784", "0.42798033", "0.4276514", "0.42762154", "0.42754233", "0.42714533", "0.42712864", "0.4270598", "0.42678002", "0.42673025", "0.42647624", "0.42550167", "0.42520863", "0.42510638", "0.42488876", "0.42450097", "0.42413822", "0.42386585", "0.42336303", "0.42333066", "0.42307538", "0.42255163", "0.4222579", "0.42218596", "0.42152002", "0.42130852", "0.4212653", "0.42034963", "0.41997883", "0.4198693" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Connect_String connect = new Connect_String(); String[] arr = {"1", "2", "3", ";", "4", "5", "6", "\"", "7", "8", "9"}; System.out.println(connect.connector(arr)); }
{ "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
Checks if product is available. No real communication to service => Mock.
@Override public boolean checkAvailability(BasketEntryDto basketEntryDto) { // Add communication to product micro service here for product validation return Boolean.TRUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasProduct() {\n return product_ != null;\n }", "public void isProductAvailable(String productName) {\n\n\t\tString text = WebUtility.getText(Locators.getLocators(\"loc.text.productNameAfterSearch\"));\n\t\tSystem.out.println(text);\n\t\tAssert.assertEquals(text, productName, \"product is not present\");\n\n\t}", "@Test\n public void GETProductService_ProductCall() {\n givenHeaders().\n when().\n get(_url_prodservice).//.body().prettyPrint();\n then().\n using().defaultParser(Parser.JSON).\n log().ifError().\n statusCode(200).\n body(\"response\", not(isEmptyString()));\n System.out.print(\"GETProductService_ProductCall Test Run Result\");\n }", "private void checkAvailability() {\n if (productList != null) {\n if (productList.size() == 0) {\n noProductText.setVisibility(View.VISIBLE);\n } else {\n noProductText.setVisibility(View.GONE);\n }\n }\n }", "private void checkProductAvailability()\n\t{\n\n\t\tprodMsg = \"\";\n\t\tcartIsEmpty = false;\n\n\t\tMap <String,Product> products = getProducts();\n\n\t\tint qtyRequested, qtyAvailable;\n\n\t\t// Check for unavailable products\n\t\tfor ( Product p : shoppingCart.getProducts().keySet() )\n\t\t{\n\t\t\tfor ( String s : products.keySet() )\n\t\t\t{\n\t\t\t\tif ( products.get(s).getName().equals(p.getName()) )\n\t\t\t\t{\n\t\t\t\t\t// Modify product to write to file\n\t\t\t\t\tqtyRequested = shoppingCart.getProducts().get(p);\n\t\t\t\t\tqtyAvailable = products.get(s).getQtyAvailable();\n\n\t\t\t\t\tif ( qtyAvailable < qtyRequested )\n\t\t\t\t\t\tunavailableProds.put(p, new ArrayList <>(Arrays.asList(qtyRequested, qtyAvailable)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Show warning\n\t\tif ( !unavailableProds.isEmpty() )\n\t\t{\n\t\t\tprodMsg = \"The cart products were not available anymore in the requested quantity, only the available quantity has been bought:\\n\\n\";\n\n\t\t\tfor ( Product p : unavailableProds.keySet() )\n\t\t\t{\n\t\t\t\tprodMsg += p.getName() + \": requested: \" + unavailableProds.get(p).get(0) + \", available: \"\n\t\t\t\t\t\t+ unavailableProds.get(p).get(1) + \"\\n\";\n\n\t\t\t\tif ( unavailableProds.get(p).get(1) == 0 )\n\t\t\t\t\tshoppingCart.removeProduct(p);\n\t\t\t\telse\n\t\t\t\t\tshoppingCart.getProducts().replace(p, unavailableProds.get(p).get(1));\n\t\t\t}\n\n\t\t\tif ( shoppingCart.getProducts().size() == 0 )\n\t\t\t{\n\t\t\t\tcartIsEmpty = true;\n\t\t\t\tprodMsg = \"All of your products were not available anymore for purchase: payment cancelled.\\nPlease select some new products.\";\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void GETProduct_ProductInventoryCall() {\n\n givenHeaders().\n when().\n get(_url_product).//.body().prettyPrint();\n then().\n using().defaultParser(Parser.JSON).\n log().ifError().\n statusCode(200).\n body(\"response\", not(isEmptyString()));\n System.out.print(\"GETPRODUCT_Inventory Test Run Result\");\n }", "public boolean hasProduct() {\n return productBuilder_ != null || product_ != null;\n }", "@Test\n public void testFindProductShouldCorrect() throws Exception {\n // Mock method\n when(productRepository.findOne(product.getId())).thenReturn(product);\n\n testResponseData(RequestInfo.builder()\n .request(get(PRODUCT_DETAIL_ENDPOINT, product.getId()))\n .token(memberToken)\n .httpStatus(HttpStatus.OK)\n .build());\n }", "public abstract boolean isAvailable();", "public abstract boolean isAvailable();", "public boolean isBuyable();", "@Test\n\tpublic void testProcessInventoryUpdateOrderShipmentReleaseForAlwaysAvailable() {\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.ALWAYS_AVAILABLE);\n\t\tproductSku.setProduct(product);\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t\tallowing(productSkuService).findBySkuCode(SKU_CODE); will(returnValue(productSku));\n\t\t\t}\n\t\t});\n\n\t\tInventoryDto inventoryDto = new InventoryDtoImpl();\n\t\tinventoryDto.setSkuCode(productSku.getSkuCode());\n\t\tinventoryDto.setWarehouseUid(WAREHOUSE_UID);\n\n\t\t// No DAO operations expected.\n\t\tproductInventoryManagementService.processInventoryUpdate(inventoryDto, buildInventoryAudit(InventoryEventType.STOCK_ALLOCATE, 1));\n\t\t// No DAO operations expected.\n\t\tproductInventoryManagementService.processInventoryUpdate(inventoryDto, buildInventoryAudit(InventoryEventType.STOCK_RELEASE, 1));\n\n\t}", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "protected boolean isAvailable() {\r\n\t\treturn true;\r\n\t}", "@Test\r\n\tpublic void testProductSuccess() {\r\n\r\n\t\tProductBean product = new ProductBean();\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tApplicationContext ctx = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\r\n\t\tHomeService service = (HomeService) ctx.getBean(\"homeservice\");\r\n\t\tproduct = service.getProductDesc(2);\r\n\t\tSystem.out.println(product.getProductBrand());\r\n\t\tSystem.out.println(product.getProductName());\r\n\r\n\t}", "@Test\n\tpublic void testFindProductByProductIdSuccess() {\n\n\t\tMockito.when(productDao.findById(1)).thenReturn(Optional.of(product));\n\n\t\tResponseEntity<Product> expected = productServiceImpl.findProductByProductId(1);\n\n\t\tAssertions.assertEquals(expected, ResponseEntity.ok(product));\n\t}", "public boolean verifyInProductPage() {\n\t\tString ExpMsg = \"PRODUCTS\";\t// confirmation msg\n\t\tString ActMsg = Title.getText();\n\t try {\n\t \twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[@id='inventory_container']\")));\n\t\t\tAssert.assertEquals(ActMsg, ExpMsg);\n\t\t\ttest.log(LogStatus.PASS, \"Successful assert we have landed on PRODUCTS page\");\t\n\t }\n\t catch (TimeoutException e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Error: Login failed? Not leading to PRODUCTS page?\");\n\t\t\tAssert.fail(\"Login failed? Not leading to PRODUCTS page?\");\n\t\t\treturn false;\n\t }\n\t\tcatch (Throwable e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Error: Not on PRODUCTS page?!\");\n\t\t\tAssert.fail(\"Not in PRODUCTS page\");\n\t\t\treturn false; \n\t\t}\n\t\treturn true;\n\t\t\n\t}", "@Test\n public void testFindProduct() {\n ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n Product p2 = new Product(\"Raton\", 85.6);\n \n instance.addItem(p1);\n instance.addItem(p2);\n \n assertTrue(instance.findProduct(\"Galletas\"));\n }", "@Test\n public void testGetProductInfo() throws Exception {\n }", "boolean hasBuyDescribe();", "@Test\n\tpublic void searchForProductLandsOnCorrectProduct() {\n\t}", "Boolean isAvailable();", "@Test\n public void testCreateProductShouldCorrect() throws Exception {\n when(productRepository.existsByName(productRequest.getName())).thenReturn(false);\n when(productRepository.save(any(Product.class))).thenReturn(product);\n\n testResponseData(RequestInfo.builder()\n .request(post(PRODUCT_ENDPOINT))\n .token(adminToken)\n .body(productRequest)\n .httpStatus(HttpStatus.OK)\n .build());\n }", "@Test\n public void shouldMakeCoffeeWhenShotsAreNotAvailable(){\n given(supplyService.isCoffeeShotAvailable(EXPRESSO)).willReturn(false);\n //When coffee is order\n Boolean orderStatus=kitchenService.makeCoffee(EXPRESSO);\n //Then Kitchen should make coffee\n assertThat(orderStatus, is(false));\n\n }", "public boolean productsTabVerification() {\r\n\t\t\r\n\t\t\r\n\t\twaitUntilPresenceOfElementLocated(ourProductsTab);\r\n\r\n\t\tList<WebElement> list = driver.findElements(By.xpath(\"//a[text()='OUR PRODUCTS']\"));\r\n\t\tif (list != null && !list.isEmpty()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Test\n public void testFindAllProduct() throws Exception {\n // Mock method\n when(productRepository.findAll()).thenReturn(products);\n\n testResponseData(RequestInfo.builder()\n .request(get(PRODUCT_ENDPOINT))\n .token(memberToken)\n .httpStatus(HttpStatus.OK)\n .build());\n }", "public boolean tryAcceptProduct(String productId) {\n // No sync, will be called between msg.\n Product product = env.getSpawnedProduct(productId);\n if (self.getInputBuffer().tryPutProduct(product)) {\n env.updateMachine(self);\n return true;\n }\n return false;\n }", "@Test\n public void testHasAvailable1() {\n Pieces inv = new Pieces();\n boolean expResult = true;\n boolean result = inv.hasAvailable();\n assertEquals(expResult, result);\n }", "@Test\n public void testFindProductShouldThrowNotFoundWhenProductIdNotFound() throws Exception {\n when(productRepository.findOne(product.getId())).thenReturn(null);\n\n testResponseData(RequestInfo.builder()\n .request(get(PRODUCT_DETAIL_ENDPOINT, product.getId()))\n .token(memberToken)\n .httpStatus(HttpStatus.NOT_FOUND)\n .build());\n }", "@Test\n public void testCreateProductShouldThrowResourceExistsWhenProductExists() throws Exception {\n // Mock method\n when(productRepository.existsByName(productRequest.getName())).thenReturn(true);\n\n testResponseData(RequestInfo.builder()\n .request(post(PRODUCT_ENDPOINT))\n .token(adminToken)\n .body(productRequest)\n .httpStatus(HttpStatus.CONFLICT)\n .jsonMap(createJsonMapError(PRODUCT_EXIST))\n .build());\n }", "@Test\n public void testCheckForProduct() throws Exception {\n }", "@Test\n public void shouldMakeCoffeeWhenShotsAreAvailable(){\n given(supplyService.isCoffeeShotAvailable(EXPRESSO)).willReturn(true);\n //When coffee is order\n Boolean orderStatus=kitchenService.makeCoffee(EXPRESSO);\n //Then Kitchen should make coffee\n assertThat(orderStatus, is(true));\n verify(supplyService,times(1)).isCoffeeShotAvailable(EXPRESSO);\n\n }", "@Test\n\tpublic void testFindProductByGuidWithNullReturn() {\n\t\tstubGetBean(ContextIdNames.PRODUCT, ProductImpl.class);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\n\t\t\t\tallowing(getMockPersistenceEngine()).retrieveByNamedQuery(with(any(String.class)), with(any(Object[].class)));\n\t\t\t\twill(returnValue(Collections.emptyList()));\n\t\t\t}\n\t\t});\n\t\tassertNull(this.importGuidHelper.findProductByGuid(NON_EXIST_GUID, true, true, true));\n\t}", "public boolean hasProduct(ProductBarcode code);", "private boolean takeBertyService() {\n Log.v(TAG, String.format(\"takeBertyService: called for device %s\", getMACAddress()));\n if (getBertyService() != null) {\n Log.d(TAG, String.format(\"Berty service already found for device %s\", getMACAddress()));\n return true;\n }\n\n setBertyService(getBluetoothGatt().getService(GattServer.SERVICE_UUID));\n\n if (getBertyService() == null) {\n Log.i(TAG, String.format(\"Berty service not found for device %s\", getMACAddress()));\n return false;\n }\n\n Log.d(TAG, String.format(\"Berty service found for device %s\", getMACAddress()));\n return true;\n }", "@Test\n\tpublic void getProductDetails() throws Exception {\n\n\t\tMockito.when(productService.getProductInfo(Mockito.anyLong())).thenReturn(mockProduct);\n\n\t\tRequestBuilder requestBuilder = MockMvcRequestBuilders.get(\"/products/\" + productID)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON);\n\n\t\tMvcResult result = mockMvc.perform(requestBuilder).andReturn();\n\n\t\tSystem.out.println(result.getResponse());\n\n\t\tJSONAssert.assertEquals(expected, result.getResponse().getContentAsString(), true);\n\t\tSystem.out.println(\"UnitTestSuccessful\");\n\t}", "@Test\n public void testGetByKey() throws Exception {\n when(repository.findByKey(this.product.getKey())).thenReturn(Optional.of(this.product));\n\n assertEquals(this.product, service.getByKey(this.product.getKey()));\n }", "private boolean isSupportedInternal() {\n boolean z = false;\n synchronized (this.mLock) {\n if (this.mServiceManager == null) {\n Log.e(TAG, \"isSupported: called but mServiceManager is null!?\");\n return false;\n }\n try {\n if (this.mServiceManager.getTransport(IWifi.kInterfaceName, HAL_INSTANCE_NAME) != (byte) 0) {\n z = true;\n }\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Exception while operating on IServiceManager: \" + e);\n return false;\n }\n }\n }", "@Override\n\t@Transactional(readOnly=true)\n\tpublic boolean isProductAvailavle(String productId) {\n\t\treturn true;\n\t}", "@Test\n public void verifyWatermelonOfferApplied() {\n \tProduct product = new Product(\"Watermelon\", 0.8);\n \tBasket basket = new Basket();\n \tbasket.getProducts().put(product, 7);\n \tassertTrue(\"Have to get the price of 7 items = 4 ==> \", \n \t\t\tDouble.compare(calculator.calculatePrice(basket), 4) == 0);\n }", "public boolean tryGetInputProduct() {\n Product product = self.getInputBuffer().tryRemoveProduct();\n if (product != null) {\n self.setCurrentProduct(product);\n syncUpdateWithCheck(false);\n return true;\n }\n waitStepWithCheck();\n return false;\n }", "boolean hasSoftware();", "public void testServiceAvailable() throws Exception {\r\n\t\tServiceReference serviceReference = \r\n\t\t\tgetContext().getServiceReference(\"org.osgi.service.jndi.JNDIProviderAdmin\");\r\n\t\tassertNotNull(\"JNDIProviderAdmin service was not published as expected\", serviceReference);\r\n\t\t\r\n\t\tJNDIProviderAdmin contextAdmin = \r\n\t\t\t(JNDIProviderAdmin) getContext().getService(serviceReference);\r\n\t\tassertNotNull(\"JNDIProviderAdmin service not available via factory\", contextAdmin);\r\n\t}", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "public static void getAssignedProduct(String productId , ITestContext context ){\n\t\t \n\t\t //SET URL\n\t\t customerId= (context.getAttribute(\"customerId\")).toString();//need to add validation for customerId\n\t\t String CONTEXT_PATH=\"mcss/ecommerce/customer/\" +customerId + \"/product/\" + productId;\n\t\t \n\t\t//Execute REST\n\t\t Response response =get( CONTEXT_PATH );\n \n\t\t \n\n\t\t //Validations:\n\t\t ResponseBody body = response.getBody();\n\t\t assertEquals( 200 ,response.getStatusCode(),\"Status Code is not as expected\");\n\t\t assertEquals( \"AC\" ,response.body().path(\"Product.status\"),\"AP status is not correct \");\n\t\t assertEquals( productId ,response.body().path(\"Product.id\"),\"AP status is not correct \");\n\t\t \n\t\t //Product validations \n\t\t assertNotEquals( null, response.body().path(\"Product.serviceId\"), \"ServiceId is null\");\n\t\t assertNotEquals( null, response.body().path(\"Product.productOfferingProductSpecID\"), \"productOfferingProductSpecID is null\");\n\t\t assertNotEquals( null, response.body().path(\"Product.productTypeX9\"), \"productTypeX9 is null\");//EQ,IPTV\n\t\t assertNotEquals( null, response.body().path(\"Product.hasPendingOrders\"), \"hasPendingOrders is null\");//optional\n\t\t assertNotEquals( null, response.body().path(\"Product.ceaseActionAllowed\"), \"ceaseActionAllowed is null\");\n\t\t assertNotEquals( null, response.body().path(\"Product.changeActionAllowed\"), \"changeActionAllowed is null\");\n\t\t assertNotEquals( null, response.body().path(\"Product.catalogOfferingId\"), \"catalogOfferingId is null\");\n\t\t assertNotEquals( null, response.body().path(\"Product.lineOfBusiness\"), \"lineOfBusiness is null\");\n\t\t assertNotEquals( null, response.body().path(\"Product.spoName\"), \"spoName is null\");\n\t\t assertNotEquals( null, response.body().path(\"Product.resumeActionAllowed\"), \"resumeActionAllowed is null\");\n\t\t assertNotEquals( null, response.body().path(\"Product.catalogItemID\"), \"catalogItemID\");\n\t\t// plan validations only if product is not Equipment for Equipment can be if it has Repeator\n\t\t if ( !(response.body().path(\"Product.productTypeX9\")).equals(\"EQ\") ){\n\t\t assertNotEquals( null, response.body().path(\"Product.plan\"), \"plan is null\"); // optional \n\t\t assertNotEquals( null, response.body().path(\"Product.plan.catalogItemName\"), \"plan.catalogItemName is null\");\n\t\t assertNotEquals( null, response.body().path(\"Product.plan.catalogItemImages\"), \"plan.catalogItemImages is null\");//optional\n\t\t assertNotEquals( null, response.body().path(\"Product.plan.planRank\"), \"plan.planRank is null\");\n\t\t assertNotEquals( null, response.body().path(\"Product.plan.catalogItemID\"), \"plan.catalogItemID is null\");\n\t\t assertNotEquals( null, response.body().path(\"Product.plan.catalogItemDescription\"), \"plan.catalogItemDescription is null\");//optional\n\t\t assertNotEquals( null, response.body().path(\"Product.plan.id\"), \"plan.id is null\");\n\t\t }\n\t\t //services validations \n\t\t assertNotEquals( null, response.body().path(\"Product.services\"), \"services are null!\"); // optional \n\t\t assertNotEquals( 0, response.body().path(\"Product.services.size()\"), \" Services Array is empty !\"); // optional \n\t\t// assertNotEquals( null, ((RestAssuredBased) response.body()).get(\"/Product\").jsonPath().getList(\"Product.services.[0].businessType\"), \"Services.businessType is null!\"); \n\t/*\t assertNotEquals( null, response.body().path(\"Product.services.[0].catalogItemID\"), \"Services.catalogItemID is null!\"); \n\t\t assertNotEquals( null, response.body().path(\"Product.services.[0].catalogItemName\"), \"Services.catalogItemName is null!\"); \n\t\t assertNotEquals( null, response.body().path(\"Product.services.[0].catalogItemDescription\"), \"catalogItemDescription is null!\"); //optional\n\t\t assertNotEquals( null, response.body().path(\"Product.services.[0].initialActivationDate\"), \"Services.initialActivationDate is null!\");// \n\t\t assertNotEquals( null, response.body().path(\"Product.services.[0].id\"), \"Services.id is null!\");// \n\t\t assertNotEquals( null, response.body().path(\"Product.services.[0].serviceType\"), \"Services.serviceType is null!\");// \n\t\t assertNotEquals( null, response.body().path(\"Product.services.[0].status\"), \"Services.status is null!\");// */\n\t\t \n\t\t \n\t\t //Savinq Info \n\t\t /*\n context.setAttribute( \"customerId\", body.path(\"ClientUserContext.customerId\" ));\n context.setAttribute( \"personId\", body.path(\"ClientUserContext.personId\" ));\n context.setAttribute( \"personId\", body.path(\"ClientUserContext.personId\" ));\n context.setAttribute( \"personObjIdX\", body.path(\"ClientUserContext.personObjIdX\" ));\n */\n\t }", "@Test\n void createProductStockTest() {\n CreateProductStockResponse createProductStockResponse = new CreateProductStockResponse();\n\n //Set behaviour\n Mockito.doReturn(createProductStockResponse).when(stockClient).createProductStock(Mockito.any(CreateProductStockRequest.class));\n\n //Execute\n stockService.createProductStock(ObjectFactory.generateSampleProduct(), 5);\n\n //Verify\n Mockito.verify(stockClient, Mockito.times(1)).createProductStock(Mockito.any(CreateProductStockRequest.class));\n }", "@Test\n\tpublic void testFindProductByGuidWithOneReturn() {\n\t\tstubGetBean(ContextIdNames.PRODUCT, ProductImpl.class);\n\n\t\tfinal List<Product> products = new ArrayList<Product>();\n\t\tProduct product = new ProductImpl();\n\t\tproducts.add(product);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(getMockPersistenceEngine()).retrieveByNamedQuery(with(any(String.class)), with(any(Object[].class)));\n\t\t\t\twill(returnValue(products));\n\t\t\t}\n\t\t});\n\t\tassertSame(product, this.importGuidHelper.findProductByGuid(SOME_GUID, true, true, true));\n\t}", "static boolean checkIsDeviceAvailable(JSONObject respJson)\n {\n String respStr = getCmdJsonStr(respJson);\n if (respStr != null)\n {\n return checkIsDeviceAvailable(respStr);\n }\n else\n {\n return false;\n }\n }", "@Test\n public void verifyAppleOfferApplied() {\n \tProduct product = new Product(\"Apple\", 0.2);\n \tBasket basket = new Basket();\n \tbasket.getProducts().put(product, 5);\n \tassertTrue(\"Have to get the price of 3 items = 0.6 ==> \", \n \t\t\tDouble.compare(calculator.calculatePrice(basket), 0.6) == 0);\n }", "public boolean isAvailable(){\n\t\ttry{\n\t\t\tgetPrimingsInternal(\"Test\", \"ATGATGATGATGATGATGATG\");\n\t\t}\n\t\tcatch(IOException e){\n\t\t\treturn false;\n\t\t}\n\t\tcatch(InterruptedException e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Test\n public void verifyNoOfferApplied() {\n \tProduct product = new Product(\"Watermelon\", 0.8);\n \tProduct product2 = new Product(\"Apple\", 0.2);\n \tProduct product3 = new Product(\"Orange\", 0.5);\n \tBasket basket = new Basket();\n \tbasket.getProducts().put(product, 2);\n \tbasket.getProducts().put(product2, 1);\n \tbasket.getProducts().put(product3, 5);\n \tassertTrue(\"Have to get the price of 8 items = 4.3 ==> \", (calculator.calculatePrice(basket) - 4.3) < 0.0001);\n }", "@Test\n public void testGetAllProducts() throws Exception {\n when(repository.findAll()).thenReturn(Collections.singletonList(this.product));\n\n assertEquals(Collections.singletonList(this.product), service.getAllProducts());\n }", "@SuppressWarnings(\"unchecked\")\n private void fetchProductInformation() {\n // Query the App Store for product information if the user is is allowed\n // to make purchases.\n // Display an alert, otherwise.\n if (SKPaymentQueue.canMakePayments()) {\n // Load the product identifiers fron ProductIds.plist\n String filePath = NSBundle.getMainBundle().findResourcePath(\"ProductIds\", \"plist\");\n NSArray<NSString> productIds = (NSArray<NSString>) NSArray.read(new File(filePath));\n\n StoreManager.getInstance().fetchProductInformationForIds(productIds.asStringList());\n } else {\n // Warn the user that they are not allowed to make purchases.\n alert(\"Warning\", \"Purchases are disabled on this device.\");\n }\n }", "boolean isBillingAvailable(String packageName);", "private boolean isServiceAvailable() {\n if (mComponentName == null) {\n mComponentName = resolveAttentionService(mContext);\n }\n return mComponentName != null;\n }", "public boolean isAvailable(){\r\n // return statement\r\n return (veh == null);\r\n }", "public boolean hasProductPicture(){\r\n\t\t\t\t\r\n\t\treturn\tMcsElement.isElementPresent(driver, PRODUCT_PIC_CONTAINER+\"//img\");\r\n\t\t\t\r\n\t\t}", "public boolean isAvailable() throws KKException\r\n {\r\n return isAvailable(MODULE_PAYMENT_CYBERSOURCESA_STATUS);\r\n }", "public void priceCheck() {\n\t\tnew WLPriceCheck().execute(\"\");\n\t}", "public boolean isServiceReady();", "public boolean isAvailable() {\n return available;\n }", "@Test\n\tpublic void productValidation() throws IOException, InterruptedException {\n\t\tservice=startServer();\n\t\tAndroidDriver<AndroidElement> driver=AndroidCapabilities(\"app.under.test\");\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\tProductScreen productScreen=new ProductScreen(driver);\n\t\t\n\t\tdriver.findElementByAccessibilityId(\"test-Username\").sendKeys(\"standard_user\");\n\t\tdriver.findElementByAccessibilityId(\"test-Password\").sendKeys(\"secret_sauce\");\n\t\tdriver.hideKeyboard();\n\t\tdriver.findElementByAccessibilityId(\"test-LOGIN\").click();\n\n\t\t//product listing\n\n\t\t//int count=driver.findElementsByXPath(\"//android.widget.ScrollView//android.view.ViewGroup\").size();\n\t\tint count=productScreen.getProductGroup().size();\n\t\tSystem.out.println(count);\n\n\t\tString expectedProduct=\"Sauce Labs Backpack\";\n\t\tString displayedProduct=\"\";\n\n\t\tfor(int i=0;i<count;i++)\n\n\t\t{\n\t\t\t\n\t\t\t//String text=driver.findElementsByXPath(\"//android.widget.ScrollView//android.view.ViewGroup//android.widget.TextView\").get(i).getText();\n\t\t\tString text=productScreen.getProductText().get(i).getText();\n\t\t\tSystem.out.println(text);\n\t\t\tif(text.equalsIgnoreCase(expectedProduct))\n\n\t\t\t{\n\n\t\t\t\tproductScreen.getProductText().get(i).click();\n\t\t\t\t\n\t\t\t\tdisplayedProduct=productScreen.getProductText().get(i).getText();\n\t\t\t\tSystem.out.println(displayedProduct);\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tAssert.assertEquals(expectedProduct, displayedProduct);\n\t\tstopServer();\n\n}", "@Test\n\tpublic void testFindProductByProductIdFailure() {\n\n\t\tMockito.when(productDao.findById(1)).thenReturn(Optional.of(product));\n\n\t\tResponseEntity<Product> expected = productServiceImpl.findProductByProductId(1);\n\n\t\tAssertions.assertNotSame(expected, ResponseEntity.noContent().build());\n\t}", "public void processProduct() {\n Product product = self.getCurrentProduct();\n ServiceManager sm = self.getServiceManager();\n boolean failure = false;\n\n if (product != null) {\n //update the product's location\n product.setLocation(self.getLocation());\n env.updateProduct(product);\n\n //process product if the current service equals the needed service and is available,\n //otherwise, just forward the product to the output-buffer without further action.\n if (sm.checkProcessingAllowed(product.getCurrentStepId())) {\n int processingSteps = sm.getCapability().getProcessingTime() * env.getStepTimeScaler();\n for (int i = 1; i <= processingSteps; i++) {\n if (i % env.getStepTimeScaler() == 0) {\n self.increaseWorkload();\n syncUpdateWithCheck(false);\n } else {\n waitStepWithCheck();\n }\n }\n failure = sm.checkFailure(getRandom());\n }\n\n //block until enough space on output-buffer\n while (!self.getOutputBuffer().tryPutProduct(product) && !getResetFlag()) {\n waitStepWithCheck();\n }\n // update product, no sync – does not change pf\n product.finishCurrentStep();\n product.setLocation(self.getOutputLocation());\n env.updateProduct(product);\n // move product to output-buffer + break a service (optional)\n self.setCurrentProduct(null);\n self.increaseFinishCount();\n syncUpdateWithCheck(failure);\n }\n }", "public void verifyProduct() throws Throwable{\r\n\t\twdlib.waitForElement(getProductText());\r\n\t\t\r\n\t\tif(!getProductText().getText().equals(\"None Included\"))\r\n\t\t{\r\n\t\t\tReporter.log(getProductText().getText()+\" was deleted\",true);\r\n\t\t\tdeleteProduct();\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n public void hasValidLicenseReturnsFalseForMissingLicense() {\n when(pluginLicenseManager.getLicense()).thenReturn(Option.none());\n assertThat(scrumPokerLicenseService.hasValidLicense(), is(false));\n }", "@Test\n\tpublic void testFindProductByGuidWithMoreThanOneReturn() {\n\t\tstubGetBean(ContextIdNames.PRODUCT, ProductImpl.class);\n\n\t\tfinal List<Product> products = new ArrayList<Product>();\n\t\tProduct product = new ProductImpl();\n\t\tproducts.add(product);\n\t\tproducts.add(product);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(getMockPersistenceEngine()).retrieveByNamedQuery(with(any(String.class)), with(any(Object[].class)));\n\t\t\t\twill(returnValue(products));\n\t\t\t}\n\t\t});\n\t\ttry {\n\t\t\tthis.importGuidHelper.findProductByGuid(SOME_GUID, false, false, true);\n\t\t\tfail(EP_SERVICE_EXCEPTION_EXPECTED);\n\t\t} catch (EpServiceException e) {\n\t\t\t// succeed!\n\t\t\tassertNotNull(e);\n\t\t}\n\t}", "@Test(priority = 2)\n public void verifyAppIsInstalled(){\n Assert.assertTrue(driver.isAppInstalled(bundleId), \"The App is not installed\");\n Log.info(\"App is installed\");\n }", "public boolean isAvailable()\n {\n return available;\n }", "@Test\n\tpublic void testAddproductNotBrand() throws Exception {\n\t\tPrincipal mockPrincipal = Mockito.mock(Principal.class);\n\t\tMockito.when(mockPrincipal.getName()).thenReturn(\"1\");\n\t\tProductDTO expected = ProductDTO.builder()\n\t\t\t\t.color(\"blue and ivory GG denim\")\n\t\t\t\t.price(new BigDecimal(\"1000.50\"))\n\t\t\t\t.name(\"Dionysus mini bag\")\n\t\t\t\t.build();\n\t\tMockHttpServletRequestBuilder mockRequest = MockMvcRequestBuilders.request(HttpMethod.POST, \"/\")\n\t\t\t\t.principal(mockPrincipal)\n\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON)\n\t\t\t\t.content(ObjectMapperHelper.asJsonString(expected));\n\n\t\t// Setup when\n\t\twhen(productService.addProduct(ArgumentMatchers.any())).thenReturn(expected);\n\t\t\n\t\t// Execute the POST request\n\t\tmockMvc.perform(mockRequest)\n\t\t\t\t.andExpect(status().isBadRequest())\n\t\t\t\t// Validate the response code and content type\n\t\t\t\t.andExpect(MockMvcResultMatchers.content().contentType(MediaType.APPLICATION_JSON))\n\t\t\t\t// Validate the returned fields\n\t\t\t\t.andExpect(jsonPath(\"$.error\", containsString(\"Brand must be not blank\")));\n\n\t\t// verify\n\t\tverify(productService, times(0)).addProduct(ArgumentMatchers.any());\n\t}", "private void checkProducts() {\n for (JButton prodButton : productButtons) {\n if (inventoryManager.checkProductAvailability(prodButton.getText())) {\n prodButton.setEnabled(true);\n } else {\n prodButton.setEnabled(false);\n }\n }\n }", "@Test(dependsOnMethods = {\"searchItem\"})\n\tpublic void purchaseItem() {\n\t\tclickElement(By.xpath(item.addToCar));\n\t\twaitForText(By.id(item.cartButton), \"1\");\n\t\tclickElement(By.id(item.cartButton));\n\t\t// on checkout screen validating the title and price of item is same as what we selected on search result page by text.\n\t\tAssert.assertTrue(isPresent(locateElement(By.xpath(item.priceLocator(price)))));\n\t\tAssert.assertTrue(isPresent(locateElement(By.xpath(item.titlelocator(title)))));\t\n\t}", "boolean hasMerchantData();", "boolean hasMerchantData();", "boolean hasExchangeprice();", "boolean hasManufacturer();", "public boolean isAvailable() {\r\n return isavailable;\r\n }", "@Test\n public void testIsItemPresent() throws VendingMachineInventoryException {\n boolean thrown = false;\n try {\n service.isItemPresent(\"shouldNotBePresent\");\n } catch (VendingMachineInventoryException e) {\n thrown = true;\n }\n assertTrue(thrown);\n }", "int isPlayServicesAvailable() {\n if (mGoogleApiAvailability_class != null) {\n String errorMsg;\n Throwable throwable;\n try {\n Method getInstance_method = mGoogleApiAvailability_class.getDeclaredMethod(\"getInstance\");\n Object googleApiAvailabilityInstance = getInstance_method.invoke(null);\n\n Method isPlayServicesAvailable_method = mGoogleApiAvailability_class.getDeclaredMethod(\n \"isGooglePlayServicesAvailable\", Context.class);\n Integer result = (Integer) isPlayServicesAvailable_method.invoke(googleApiAvailabilityInstance, mContext);\n Log.d(TAG, \"isPlayServicesAvailable(): isGooglePlayServicesAvailable returned: \" + result);\n switch (result) {\n case 0:\n //success\n return PLAY_SERVICES_AVAILABLE;\n case 2:\n //version update required\n return PLAY_SERVICES_SERVICE_VERSION_UPDATE_REQUIRED;\n default:\n //everything else\n return PLAY_SERVICES_UNAVAILABLE;\n }\n } catch (NoSuchMethodException e) {\n // in this case,\n errorMsg = \"isPlayServicesAvailable(): Unable to find method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (InvocationTargetException e) {\n errorMsg = \"isPlayServicesAvailable(): Unable to invoke method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (IllegalAccessException e) {\n errorMsg = \"isPlayServicesAvailable(): Unable to access method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (Exception e) {\n errorMsg = \"isPlayServicesAvailable(): Unknown error occurred.\";\n throwable = e;\n }\n Log.e(TAG, errorMsg, throwable);\n return PLAY_SERVICES_MAGNET_VERSION_INCOMPATIBILITY;\n } else {\n return PLAY_SERVICES_UNAVAILABLE;\n }\n }", "public Boolean hasNextProduct() {\n\t\treturn getProducts().size() > 0;\n\t}", "public boolean isAvailable() {\r\n\treturn available;\r\n }", "public boolean isAvailable() {\n return available;\n }", "public boolean isAvailable() {\n return available;\n }", "public boolean isAvailable() {\n return available;\n }", "@Given(\"I am on the product page\")\n\t\tpublic void i_am_on_the_product_page() {\n\t\t\tdriver.get(ExpectedUrl);\n\t\t}", "private boolean servicesAvailable() {\n int resultCode = GooglePlayServicesUtil.\n isGooglePlayServicesAvailable(this);\n if (ConnectionResult.SUCCESS == resultCode) {\n log(\"Google Play services is available\");\n return true;\n } else {\n log(\"Google Play services is not available\");\n showErrorDialog(resultCode);\n return false;\n }\n }", "public static boolean isServiceAvailable(Context context, String intentAction) {\n return new EmailServiceProxy(context, intentAction, null).test();\n }", "@GuardedBy(\"mLock\")\n @VisibleForTesting\n boolean isServiceAvailableLocked() {\n if (mComponentName == null) {\n mComponentName = updateServiceInfoLocked();\n }\n return mComponentName != null;\n }", "@Test\n public void getInventoryTest() {\n Map<String, Integer> response = api.getInventory();\n\n Assert.assertNotNull(response);\n Assert.assertFalse(response.isEmpty());\n\n verify(exactly(1), getRequestedFor(urlEqualTo(\"/store/inventory\")));\n }", "@Test\n\tpublic void test_get_product_by_id_return_200() throws Exception {\n\t\tPrincipal mockPrincipal = Mockito.mock(Principal.class);\n\t\tMockito.when(mockPrincipal.getName()).thenReturn(\"1\");\n\t\tProductDTO expected = DummyData.getProductDto1();\n\t\tMockHttpServletRequestBuilder mockRequest = MockMvcRequestBuilders.request(HttpMethod.GET, \"/1\")\n\t\t\t\t.principal(mockPrincipal)\n\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON);\n\n\t\t// Setup when\n\t\twhen(productService.findProductById(1l)).thenReturn(expected);\n\t\t\n\t\t// Execute the POST request\n\t\tmockMvc.perform(mockRequest)\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t// Validate the response code and content type\n\t\t\t\t.andExpect(MockMvcResultMatchers.content().contentType(MediaType.APPLICATION_JSON))\n\t\t\t\t// Validate the returned fields\n\t\t\t\t.andExpect(jsonPath(\"$.brand\", Is.is(expected.getBrand())))\n\t\t\t\t.andExpect(jsonPath(\"$.color\", Is.is(expected.getColor())))\n\t\t\t\t.andExpect(jsonPath(\"$.name\", Is.is(expected.getName()))).andReturn();\n\n\t\t// verify\n\t\tverify(productService).findProductById(ArgumentMatchers.any());\n\t}", "@Test(expected = ProductNotFoundException.class)\n public void TestProductNotFoundException() throws ProductNotFoundException {\n HashMap<Character, Product> productList = new HashMap<Character, Product>();\n Product product = new Product('A', 20, 2, 1);\n productList.put(product.getName(), product);\n\n product = new Product('B', 50, 5, 3);\n productList.put(product.getName(), product);\n\n product = new Product('C', 30, 3, 2);\n productList.put(product.getName(), product);\n\n com.jama.domain.Supermarket supermarket = new com.jama.domain.Supermarket(productList);\n\n int totalPrice = supermarket.checkout(\"BCABBACBCBX\");\n assertEquals(\"Total prices are not equal.\", new Integer(230), new Integer(totalPrice));\n }", "@Test\n public void testQueRequests() {\n PaymentMethodViewModel viewModel = new PaymentMethodViewModel(\n getAvailablePaymentMethods\n );\n\n // And I don't have internet connection\n viewModel.setIsNetworkAvailable(false);\n\n // When I request payment methods\n viewModel.getAvailablePaymentMethods();\n\n // Then I should not request the payment method list\n Mockito.verify(getAvailablePaymentMethods, Mockito.times(0)).execute(\n Mockito.any()\n );\n\n // And failures should be NetworkFailure\n assertThat(viewModel.getFailureLiveData().getValue())\n .isInstanceOf(CheckoutFailure.ConnectivityError.class);\n\n // When I get internet connectivity\n viewModel.setIsNetworkAvailable(true);\n\n // Then I should request payment methods automatically\n Mockito.verify(getAvailablePaymentMethods, Mockito.times(1))\n .execute(Mockito.any());\n }", "private boolean serviceIsAvailable(String urlStr) {\r\n\r\n\t\tint respCode = 0;\r\n\t\tURL url;\r\n\t\tint testingTimeout = 3000;\r\n\t\t\r\n\t\ttry {\r\n\t\t\turl = new URL(urlStr);\r\n\r\n\t\t\tHttpURLConnection huc = (HttpURLConnection) url.openConnection();\r\n\t\t\thuc.setRequestMethod(\"POST\");\r\n\r\n\t\t\t/*\r\n\t\t\t * Time out set to 3 seconds, checked at 4 seconds, response should\r\n\t\t\t * be almost instant so this can be hardcoded in this method.\r\n\t\t\t */\r\n\t\t\thuc.setConnectTimeout(testingTimeout);\r\n\t\t\thuc.setReadTimeout(testingTimeout + 1000);\r\n\t\t\thuc.connect();\r\n\t\t\t\r\n\t\t\trespCode = huc.getResponseCode();\r\n\r\n\t\t\tif (this.debug) {\r\n\t\t\t\tprintln(\"Response code from \" + urlStr + \" is \" + respCode);\r\n\t\t\t}\r\n\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tprintln(\"MalformedURLException from \" + urlStr\r\n\t\t\t\t\t+ \" : Response code is \" + respCode);\r\n\t\t\treturn false;\r\n\t\t} catch (SocketTimeoutException s) {\r\n\t\t\tprintln(\"Timeout occurred when checking availability of Speech Synthesis service at...\\n\"\r\n\t\t\t\t\t+ urlStr);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tprintln(\"IOException (other than Connection Timeout) from \" + urlStr\r\n\t\t\t\t\t+ \" is \" + respCode);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (respCode == 200) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}" ]
[ "0.6862952", "0.6620217", "0.65367925", "0.64758915", "0.64647615", "0.6419405", "0.6407695", "0.6310315", "0.62923837", "0.62923837", "0.6292179", "0.6289156", "0.62122977", "0.62122977", "0.62122977", "0.62122977", "0.6193031", "0.6184478", "0.61518574", "0.60968286", "0.6088197", "0.6062805", "0.6061539", "0.6053765", "0.6052406", "0.60447", "0.60305774", "0.6009976", "0.5986936", "0.5982966", "0.59788764", "0.59593105", "0.5959062", "0.5952517", "0.5946414", "0.5936004", "0.5906496", "0.59034234", "0.5894492", "0.58916336", "0.5889232", "0.5863939", "0.58629847", "0.58366185", "0.5823097", "0.5796973", "0.576478", "0.576478", "0.576478", "0.576478", "0.576478", "0.57620424", "0.57483995", "0.5745483", "0.57417417", "0.57325625", "0.573055", "0.57287025", "0.5727436", "0.5704811", "0.5701992", "0.5700047", "0.56984967", "0.5694421", "0.5691899", "0.56851226", "0.5683606", "0.5681896", "0.5678268", "0.56766087", "0.56757987", "0.5673412", "0.56693023", "0.5656619", "0.56531847", "0.5653169", "0.5648468", "0.56468415", "0.56355804", "0.5632472", "0.5632472", "0.5621033", "0.5619705", "0.5608077", "0.55979365", "0.559737", "0.55965203", "0.55935144", "0.558621", "0.5585802", "0.5585802", "0.557755", "0.55769324", "0.5565224", "0.5561854", "0.55538493", "0.5551396", "0.5550592", "0.5550468", "0.5549753" ]
0.63370854
7
Creates new form ListClassForm
public ListClassForm(java.awt.Frame parent, boolean modal, int classId, int courseId) { super(parent, modal); initComponents(); this._classId = classId; this._courseId = courseId; init(); onLoading(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Component buidListForm() throws BeanDAOException {\n\t\treturn new ListForm<BEAN, KEY>(this);\n\t}", "public FormListRemarking() {\n initComponents();\n }", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "public CustomerListForm() {\n initComponents();\n findAllData();\n }", "public DDSViewCollectionForm() {\n\t}", "public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }", "public RecipeForm(){\n\t\tFactory ingredientFactory = new Factory() {\n\t\t\tpublic Object create() {\n\t\t\t\treturn new Ingredient();\n\t\t }\n\t\t};\n\t\tFactory quantityFactory = new Factory(){\n\t\t\tpublic Object create(){\n\t\t\t\treturn new Quantity();\n\t\t\t}\n\t\t};\n\t\t\n\t\tingredientsList = LazyList.decorate(new ArrayList<Ingredient>(), ingredientFactory);\n\t\tquantities = LazyList.decorate(new ArrayList<Quantity>(), quantityFactory);\n\t}", "public void buildAndShowListForm() {\n GeyserAdvancement categoryAdvancement = storedAdvancements.get(currentAdvancementCategoryId);\n String language = session.locale();\n\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .title(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getTitle(), language))\n .content(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getDescription(), language));\n\n List<GeyserAdvancement> visibleAdvancements = new ArrayList<>();\n if (currentAdvancementCategoryId != null) {\n for (GeyserAdvancement advancement : storedAdvancements.values()) {\n boolean earned = isEarned(advancement);\n if (earned || !advancement.getDisplayData().isHidden()) {\n if (advancement.getParentId() != null && currentAdvancementCategoryId.equals(advancement.getRootId(this))) {\n String color = earned ? advancement.getDisplayColor() : \"\";\n builder.button(color + MessageTranslator.convertMessage(advancement.getDisplayData().getTitle()) + '\\n');\n\n visibleAdvancements.add(advancement);\n }\n }\n }\n }\n\n builder.button(GeyserLocale.getPlayerLocaleString(\"gui.back\", language));\n\n builder.closedResultHandler(() -> {\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n\n }).validResultHandler((response) -> {\n if (response.getClickedButtonId() < visibleAdvancements.size()) {\n GeyserAdvancement advancement = visibleAdvancements.get(response.clickedButtonId());\n buildAndShowInfoForm(advancement);\n } else {\n buildAndShowMenuForm();\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n }\n });\n\n session.sendForm(builder);\n }", "private void createNewListTextField() {\n\t\tjpIntroduceNameList = new JPanel();\n\t\tjpIntroduceNameList.setOpaque(false);\n\t\tjertfTextList = new JERoundTextField(15,15,200);\n\t\tjertfTextList.setVisible(true);\n\t\tjpIntroduceNameList.setVisible(false);\n\t\tjpIntroduceNameList.add(jertfTextList);\n\t}", "public FormInserir() {\n initComponents();\n }", "public OrderForm() {\n initComponents();\n mWaffleList = new ArrayList<Product>();\n mCoffeeList = new ArrayList<Product>();\n mbdb = new BelgianDatabaseHandler(dbpath+menuDbName);\n resetQuantityBox();\n generateMenu();\n //if done generating menu\n //update orderhandler BelgianWaffle class for the items\n mbw = new BelgianWaffle(mWaffleList,mCoffeeList,mbdb);\n model = new DefaultListModel();\n \n }", "FORM createFORM();", "public void showClassPanel() {\r\n \t\tdialogFactory.getDialog(new jmodelClassesPanel(model, model), \"Manage User Classes\");\r\n \t}", "public ListModel createBoundListModel(String formProperty) {\n ValueModel valueModel = formModel.getValueModel(formProperty);\n if (valueModel == null) {\n AspectAdapter adapter = new AspectAdapter(formModel\n .getAspectAccessStrategy(), formProperty);\n valueModel = new BufferedListValueModel(adapter);\n formModel.add(formProperty, valueModel);\n }\n return (ListModel)valueModel.get();\n }", "private void initForm() {\n DefaultListModel listModel = new DefaultListModel();\n filterList.setModel(listModel);\n Vector filters = null;\n if (transmutor instanceof Refiner) {\n filters = ((Refiner) transmutor).getPrefilters();\n } else {\n filters = ((Extractor) transmutor).getPrefilters();\n }\n Enumeration filterE = filters.elements();\n \n while (filterE.hasMoreElements()) {\n listModel.addElement(filterE.nextElement());\n }\n }", "public SearchSupplierFrm(Staff s) {\n super(\"Tìm kiếm Nhà cung cấp \");\n this.s = s;\n initComponents();\n listSupplier = new ArrayList<>();\n \n\n }", "public ShopList(MainForm mf) {\n super(mf);\n ItemList = recordSeeker.getShopList();\n setTable();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public MainForm() {\n initComponents();\n confirm = new ConfirmSave(this, true);\n lstObras = new JList<Obra>(); \n scrObras.setViewportView(lstObras);\n lstObras.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lstObrasMouseClicked(evt);\n }\n });\n }", "public PDMRelationshipForm() {\r\n initComponents();\r\n }", "public UserForm(){ }", "public FormMenu() {\n initComponents();\n menuController = new MenuController(this);\n menuController.nonAktif();\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n labelAppClasses = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n listAppClasses = new javax.swing.JList();\n labelScanning = new javax.swing.JLabel();\n\n setPreferredSize(new java.awt.Dimension(380, 300));\n setLayout(new java.awt.GridBagLayout());\n\n labelAppClasses.setLabelFor(listAppClasses);\n org.openide.awt.Mnemonics.setLocalizedText(labelAppClasses, org.openide.util.NbBundle.getMessage(JFXApplicationClassChooser.class, \"LBL_JFXApplicationClassChooser.labelAppClasses.text\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n gridBagConstraints.insets = new java.awt.Insets(10, 10, 2, 10);\n add(labelAppClasses, gridBagConstraints);\n labelAppClasses.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(JFXApplicationClassChooser.class, \"AN_JFXApplicationClassChooser.labelAppClasses.text\")); // NOI18N\n labelAppClasses.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(JFXApplicationClassChooser.class, \"AD_JFXApplicationClassChooser.labelAppClasses.text\")); // NOI18N\n\n jScrollPane1.setViewportView(listAppClasses);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10);\n add(jScrollPane1, gridBagConstraints);\n\n labelScanning.setFont(labelScanning.getFont().deriveFont((labelScanning.getFont().getStyle() | java.awt.Font.ITALIC), labelScanning.getFont().getSize()+1));\n labelScanning.setText(org.openide.util.NbBundle.getMessage(JFXApplicationClassChooser.class, \"LBL_ChooseMainClass_SCANNING_MESSAGE\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n gridBagConstraints.insets = new java.awt.Insets(3, 10, 0, 0);\n add(labelScanning, gridBagConstraints);\n labelScanning.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(JFXApplicationClassChooser.class, \"LBL_ChooseMainClass_SCANNING_MESSAGE\")); // NOI18N\n }", "public Form(){ \n\t\tsuper(tag(Form.class)); \n\t}", "public void setListFormName(String name) {\r\n\t\t_listFormName = name;\r\n\t}", "private void initForm() {\n\t\tfor (int i = 0; i < userRoles.size(); i++) {\n\t\t\tlb.addItem(userRoles.get(i).value);\n\t\t}\n\t}", "@RequestMapping(\"/new\")\n\tpublic String displayProjectForm(Model model) {\n\t\tProject aproject = new Project();\n\t//Iterable<Employee> employees = \tpro.getall();\n\t\n\t\tmodel.addAttribute(\"project\", aproject);\n\n\t\t//model.addAttribute(\"allEmployees\", employees);\n\t\t\n\t\t\n\t\treturn \"newproject\";\n\t\t\n\t}", "private void initFormRelatedLists( HttpServletRequest request )\n {\n\n List<FormPanel> listFormPanel = new FormPanelFactory( ).buildFormPanelList( );\n\n FormColumnFactory formColumnFactory = SpringContextService.getBean( FormColumnFactory.BEAN_NAME );\n\n Integer nIdForm = null;\n try\n {\n nIdForm = Integer.parseInt( request.getParameter( FormsConstants.PARAMETER_ID_FORM ) );\n }\n catch( NumberFormatException e )\n {\n // Nothing to do\n }\n\n boolean changePanel = Boolean.parseBoolean( request.getParameter( PARAMETER_CHANGE_PANEL ) );\n if ( CollectionUtils.isEmpty( _listFormFilterDisplay ) || !changePanel )\n {\n _listFormColumn = formColumnFactory.buildFormColumnList( nIdForm, request.getLocale( ), (User) AdminUserService.getAdminUser( request ) );\n List<FormFilter> listFormFilter = FormDisplayFactory.buildFormFilterList( nIdForm, _listFormColumn, request.getLocale( ),\n (User) AdminUserService.getAdminUser( request ) );\n _listFormFilterDisplay = FormDisplayFactory.createFormFilterDisplayList( request, listFormFilter );\n _listFormColumnDisplay = FormDisplayFactory.createFormColumnDisplayList( _listFormColumn );\n }\n\n _listFormPanelDisplay = FormDisplayFactory.createFormPanelDisplayList( request, listFormPanel, _formPanelDisplayActive );\n for ( IFormPanelDisplay formPanelDisplay : _listFormPanelDisplay )\n {\n if ( formPanelDisplay.isActive( ) )\n {\n _formPanelDisplayActive = formPanelDisplay;\n }\n }\n _formItemSortConfig = new FormItemSortConfig( -1, null, true );\n }", "public ListTemplate() {\n }", "public StaffMenu() {\n initComponents();\n \n //Init with blank text \n ageLabel.setText(\"\");\n staffNumber.setText(\"\");\n genderLabel.setText(\"\");\n \n //Reading staff list \n ListOfStaff model_staff_list = new ListOfStaff(ListOfStaff.getStaff());\n staffList.setModel(model_staff_list); \n }", "public StorageForm() {\n}", "public LeastMoviableItemForm() {\n initComponents();\n LeastMoviableItem();\n }", "private void createComponents() {\n \n Dimension thisSize = this.getSize();\n \n this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));\n \n ArrayList<Integer> numbers = new ArrayList<>();\n for (int i = 0; i < recordCount; ++i) {\n numbers.add(i);\n }\n \n recordList = new JList(numbers.toArray());\n recordList.addListSelectionListener(selectionListener);\n JScrollPane listPane = new JScrollPane(recordList);\n listPane.setPreferredSize(new Dimension(thisSize.width / 3, thisSize.height));\n \n select(0, 0);\n \n this.add(listPane);\n \n recordForm = new RecordForm(fields, thisSize);\n entryForm = new JScrollPane(recordForm);\n \n this.add(entryForm);\n \n selectionAction = WAITING_ON_SELECTION;\n \n }", "public NewClassForm(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n initialization();\n onLoading();\n }", "private FrmMainForm() {\n }", "public FpLista() {\r\n\t\t\r\n\t}", "@RequestMapping(value = \"/classList\", method = RequestMethod.GET)\n\tpublic String ClassList(Model model, Principal principal) {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tmodel.addAttribute(\"username\", auth.getName());\n\n\t\tList<ClassList> list = classListDAO.listClassList();\n\t\tmodel.addAttribute(\"classModel\", list);\n\t\tmodel.addAttribute(\"name\", principal.getName());\n\t\tint as = userDAO.userGroup(principal.getName());\n\t\tmodel.addAttribute(\"groupUser\", as);\n\n\t\tmodel.addAttribute(\"title\", \"Danh sách lớp\");\n\n\t\tDate dNow = new Date();\n\t\tSimpleDateFormat ft = new SimpleDateFormat(\"HH\");\n\t\tmodel.addAttribute(\"currentDate\",ft.format(dNow));\n\n\t\treturn \"classlistPage\";\n\t}", "public void openClassPicker(View v) {\n // Attach data to fragment\n Bundle bundle = new Bundle();\n bundle.putStringArrayList(FULL_CLASS_LIST_KEY, mFullClassList);\n mClassPickerFragment.setArguments(bundle);\n // Show the Class Picker DialogFragment.\n mClassPickerFragment.show(mFragmentManager, getString(R.string.add_classes));\n }", "public RecipeAdder(RecipeList listA, DefaultListModel listModelA, JList listNamesA){\r\n\t\tsuper(\"Add Recipe\");\r\n\r\n\r\n\t\tlist = listA;\r\n\t\tlistModel = listModelA;\r\n\t\tlistNames = listNamesA;\t\r\n\r\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE) ;\r\n\r\n\t\tfor(int i=0; i<6; i++)\r\n\t\t\tingredientFields.add(new JTextField(30));\r\n\r\n\t\tform = new Form();\r\n\r\n\t\tJPanel content = new JPanel();\r\n\t\tsetContentPane(content);\r\n\r\n\t\tBorder titled2 = new TitledBorder(\"Enter Information:\");\r\n\t\tcontent.setBorder(titled2);\r\n\r\n\t\tActionListener saveListener = new buttonListener();\r\n\t\tActionListener moreIngredientsListener = new moreIngredientsListener();\r\n\r\n\t\tbutton = new JButton(\"Add to list\");\r\n\t\tbutton.addActionListener(saveListener);\r\n\r\n\t\tbutton2 = new JButton(\"More Ingredients\");\r\n\t\tbutton2.addActionListener(moreIngredientsListener);\r\n\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));\r\n\t\tpanel.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10));\r\n\t\tpanel.add(button);\r\n\t\tpanel.add(button2);\r\n\r\n\t\tgetContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.PAGE_AXIS));\r\n\r\n\t\tadd(form);\r\n\t\tadd(panel);\r\n\t\tpack();\r\n\t\tsetVisible(true);\r\n\t}", "public FolderDiffForm() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public TextInputList() {\n\n\t}", "public Ventaform() {\n initComponents();\n }", "public ProfilsFIForm() {\r\n\t\tsuper();\r\n\t}", "public void editUserClasses() {\r\n \t\tdialogFactory.getDialog(new jmodelClassesPanel(model, model), \"Define customer classes\");\r\n \t}", "public clientesagregarclass() {\n initComponents();\n }", "public createclass() {\n initComponents();\n this.setLocationRelativeTo(null);\n getdata();\n }", "ListItem createListItem();", "@RequestMapping(value = \"/newrecipe\", method = RequestMethod.GET)\n\tpublic String newRecipeForm(Model model) {\n\t\tmodel.addAttribute(\"recipe\", new Recipe()); //empty recipe object\n\t\tmodel.addAttribute(\"categories\", CatRepo.findAll());\n\t\treturn \"newrecipe\";\n\t}", "public FrmMenu() {\n initComponents();\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 MyList() {\n this(\"List\");\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public C_AdminForm() {\n initComponents();\n }", "public CrearPedidos() {\n initComponents();\n }", "public Form() {\n initComponents();\n }", "public Lista() {\r\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "public static HtmlSelectOneMenu getLookupList(String className, boolean insertBlank) {\n\t\tHtmlSelectOneMenu dropDown = new HtmlSelectOneMenu();\r\n\t\tUISelectItems items = new UISelectItems();\r\n\r\n\t\tList<SelectItem> lookupList = retrieveLookupList(className, insertBlank);\r\n\r\n\t\t// apply collection to JSF menu component\r\n\t\titems.setValue(lookupList);\r\n\t\tdropDown.getChildren().add(items);\r\n\r\n\t\treturn dropDown;\r\n\t}", "public Project_Create() {\n initComponents();\n }", "public void onClick(View arg0) {\n Intent nextScreen = new Intent(NewClass.this, ListClass.class);\r\n\r\n String name = inputName.getText().toString();\r\n String num = inputNum.getText().toString();\r\n int newNum = Integer.parseInt(num);\r\n ListClass.items.add(new Class(name,newNum));\r\n Log.i(TAG, \"Before startActivity\");\r\n // starting new activity\r\n startActivity(nextScreen);\r\n Log.i(TAG, \"After startActivity\");\r\n\r\n }", "private void initComponents() {\r\n\r\n\t\tjLabel1 = new javax.swing.JLabel();\r\n\t\tjTextField1 = new javax.swing.JTextField();\r\n\t\tjScrollPane1 = new javax.swing.JScrollPane();\r\n\t\tjList1 = new javax.swing.JList();\r\n\t\tjScrollPane2 = new javax.swing.JScrollPane();\r\n\t\tjList2 = new javax.swing.JList();\r\n\t\tjLabel2 = new javax.swing.JLabel();\r\n\t\tjTextField2 = new javax.swing.JTextField();\r\n\t\tjLabel3 = new javax.swing.JLabel();\r\n\t\tjTextField3 = new javax.swing.JTextField();\r\n\t\tjButton1 = new javax.swing.JButton();\r\n\t\tjButton2 = new javax.swing.JButton();\r\n\t\tjButton3 = new javax.swing.JButton();\r\n\t\tjButton4 = new javax.swing.JButton();\r\n\t\tjButton5 = new javax.swing.JButton();\r\n\t\tjLabel4 = new javax.swing.JLabel();\r\n\t\tjLabel5 = new javax.swing.JLabel();\r\n\r\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\r\n\t\tjLabel1.setText(\"输入类名进行检索,可使用通配符?和* \");\r\n\r\n\t\tjTextField1.setBackground(new java.awt.Color(255, 255, 255));\r\n\r\n\t\tjTextField1.getDocument().addDocumentListener(new DocumentListener() {\r\n\r\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\r\n\t\t\t\tjTextField1TextChanged(e);\r\n\t\t\t}\r\n\r\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\r\n\t\t\t\tjTextField1TextChanged(e);\r\n\t\t\t}\r\n\r\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\r\n\t\t\t\tjTextField1TextChanged(e);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\t// jScrollPane1.setBorder(null);\r\n\r\n\t\tjScrollPane1.setBorder(javax.swing.BorderFactory\r\n\t\t\t\t.createTitledBorder(\"类全名\"));\r\n\r\n\t\tjList1\r\n\t\t\t\t.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\r\n\t\t\t\t\tpublic void valueChanged(\r\n\t\t\t\t\t\t\tjavax.swing.event.ListSelectionEvent evt) {\r\n\t\t\t\t\t\tjList1ValueChanged(evt);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\tjList1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\tjList1.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\r\n\t\tjScrollPane1.setViewportView(jList1);\r\n\r\n\t\t// jScrollPane2.setBorder(null);\r\n\r\n\t\tjScrollPane2.setBorder(javax.swing.BorderFactory\r\n\t\t\t\t.createTitledBorder(\"方法名\"));\r\n\r\n\t\tjList2\r\n\t\t\t\t.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\r\n\t\t\t\t\tpublic void valueChanged(\r\n\t\t\t\t\t\t\tjavax.swing.event.ListSelectionEvent evt) {\r\n\t\t\t\t\t\tjList2ValueChanged(evt);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\tjList2.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\r\n\r\n\t\tjList2.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\tjScrollPane2.setViewportView(jList2);\r\n\r\n\t\tjLabel2.setText(\"类名\");\r\n\r\n\t\tjLabel3.setText(\"方法名\");\r\n\r\n\t\tjButton1.setIcon(new javax.swing.ImageIcon(this.getClass().getResource(\r\n\t\t\t\t\"/it/businesslogic/ireport/plugin/newserverfile/docs.gif\"))); // NOI18N\r\n\t\tjButton1.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent evt) {\r\n\t\t\t\tjButton1MouseClicked(evt);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tjButton2.setText(\"关闭\");\r\n\t\tjButton2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent evt) {\r\n\t\t\t\tjButton2MouseClicked(evt);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tjButton3.setText(\"确定\");\r\n\t\tjButton3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent evt) {\r\n\t\t\t\tjButton3MouseClicked(evt);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tjButton4.setText(\"测试\");\r\n\t\tjButton4.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent evt) {\r\n\t\t\t\tjButton4MouseClicked(evt);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tjButton5.setText(\"重新建立索引\");\r\n\t\tjButton5.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent evt) {\r\n\t\t\t\tjButton5MouseClicked(evt);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tjLabel4.setText(\"\");\r\n\r\n\t\tjLabel5.setText(\"\");\r\n\r\n\t\torg.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(\r\n\t\t\t\tgetContentPane());\r\n\t\tgetContentPane().setLayout(layout);\r\n\t\tlayout\r\n\t\t\t\t.setHorizontalGroup(layout\r\n\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.LEADING)\r\n\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\r\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\r\n\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.LEADING)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.TRAILING,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjScrollPane1,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t455,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.LayoutStyle.RELATED,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjScrollPane2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t158,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjTextField1,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t619,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.LEADING,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfalse)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjLabel3,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjLabel2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t48,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.LayoutStyle.RELATED)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.TRAILING)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjTextField3,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t567,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.LEADING,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjTextField2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t567,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjButton1,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t24,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t88,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t88,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t88)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjLabel5,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t263,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.LayoutStyle.UNRELATED)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjButton4)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t57,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t57,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t57)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjButton3)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.LayoutStyle.RELATED)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjButton2))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjLabel1,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t116,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t195,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t195,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t195)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjLabel4,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t178,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t18,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t18,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t18)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjButton5,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t112,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\r\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\r\n\t\tlayout\r\n\t\t\t\t.setVerticalGroup(layout\r\n\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.LEADING)\r\n\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\r\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\r\n\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.BASELINE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(jButton5)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(jLabel1)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjLabel4,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t19,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\r\n\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.LayoutStyle.RELATED)\r\n\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\tjTextField1,\r\n\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\r\n\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.LayoutStyle.RELATED)\r\n\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.LEADING)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjScrollPane1,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t311,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjScrollPane2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t311,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\r\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\r\n\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.LayoutStyle.RELATED)\r\n\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.BASELINE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjLabel2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t18,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjTextField2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\r\n\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.LayoutStyle.RELATED)\r\n\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.BASELINE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjLabel3,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t18,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjTextField3,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\r\n\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.LayoutStyle.RELATED)\r\n\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.TRAILING)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(jButton1)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torg.jdesktop.layout.GroupLayout.BASELINE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjButton2)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjButton3)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjButton4)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.add(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjLabel5)))\r\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\r\n\r\n\t\tit.businesslogic.ireport.util.Misc.centerFrame(this);\r\n\t\tpack();\r\n\t}", "public Formulario() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public ListaMedicosJFrame() {\n initComponents();\n preencheTabela();\n }", "public AccountListView() {\r\n initComponents();\r\n \r\n }", "public ListOfUsers() {\n initComponents();\n }", "private ListSelectionDialogFactory() {\n }", "public CentralAC_GUI(HVACGUI hvacForm) {\n\n //setting the content pane\n setContentPane(rootPanel);\n\n setPreferredSize(new Dimension(500, 500));\n pack();\n setVisible(true);\n //using the dispose on close to close the form\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n //setting the hvac form to false so its not the active form\n hvacForm.setEnabled(false);\n //calling the addToList method\n addToList();\n //making the hvac gui form active\n hvacForm.setEnabled(true);\n\n }", "public IMRSelectForm() {\n }", "public ClassViewForm() throws SQLException, PrinterException {\n initComponents();\n jMenuItem1.setVisible(false);\n userRole = LoginForm.userRole;\n if (userRole.equals(\"sa\") || userRole.equals(\"ds\") || userRole.equals(\"hod\")) {\n jMenuItem1.setVisible(true);\n }\n jTable1.setModel(new ClassTableModel());\n //jTable1.print();\n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n DashboardForm df = new DashboardForm();\n Utilfunctions.setIconImage(df);\n Utilfunctions.setLocation(df);\n e.getWindow().setVisible(false);\n df.setVisible(true);\n }\n });\n \n JComboBox sectionCombo = new JComboBox();\n Utilfunctions.populateComboBoxwithQuery(sectionCombo, \"SELECT DISTINCT(section) FROM class ORDER BY section\");\n \n JComboBox yearCombo = new JComboBox();\n Utilfunctions.populateComboBoxwithQuery(yearCombo, \"SELECT DISTINCT(year) FROM class ORDER BY year\");\n \n JComboBox courseCombo = new JComboBox();\n Utilfunctions.populateComboBoxwithQuery(courseCombo, \"SELECT DISTINCT(course) FROM class\");\n \n JComboBox deptCombo = new JComboBox();\n Utilfunctions.populateComboBoxwithQuery(deptCombo, \"SELECT DISTINCT(dept) FROM class\");\n \n TableColumn col = jTable1.getColumnModel().getColumn(1);\n col.setCellEditor(new DefaultCellEditor(courseCombo));\n \n col = jTable1.getColumnModel().getColumn(2);\n col.setCellEditor(new DefaultCellEditor(deptCombo));\n \n col = jTable1.getColumnModel().getColumn(3);\n col.setCellEditor(new DefaultCellEditor(yearCombo));\n \n col = jTable1.getColumnModel().getColumn(4);\n col.setCellEditor(new DefaultCellEditor(sectionCombo));\n }", "@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "private void listClass(HttpServletRequest request, HttpServletResponse response) {\n\t\tList<String> myclass = new ClassDAO().getClassList();\n\t\tList<String> teacher = new TeacherDAO().getTeacherList();\n\t\tList<String> subject = new SubjectDAO().getSubjectList();\n\t\trequest.setAttribute(\"listclass\", myclass);\n\t\trequest.setAttribute(\"listteacher\", teacher);\n\t\trequest.setAttribute(\"listsubject\", subject);\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"class_list.jsp\");\n\t\ttry {\n\t\t\tdispatcher.forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\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 }", "public UploadForm() {\n initComponents();\n }", "private MultilistField(\n\t\t\tHasComponents form,\n\t\t\tshort[] permission,\n\t\t\tString label,\n\t\t\tint tab) {\n\n\t\tinitialize(panel, form, permission, CSS.cbtMultilistField());\n\n\t\tif(label != null) {\n\t\t\theader = new HorizontalPanel();\n\t\t\theader.addStyleName(CSS.cbtMultilistFieldLabel());\n\t\t\tpanel.add(header);\n\n\t\t\tthis.label = new Label(label);\n\t\t\tthis.label.addStyleName(CSS.cbtMultilistFieldLabel());\n\t\t\theader.add(this.label);\n\n\t\t\tselect = new Button();\n\t\t\tselect.setHTML(\"&gt;&gt;\");\n\t\t\tselect.addClickHandler(this);\n\t\t\tselect.addStyleName(CSS.cbtMultilistFieldButton());\n\t\t\theader.add(select);\n\n\t\t\tremove = new Button();\n\t\t\tremove.setHTML(\"&lt;&lt;\");\n\t\t\tremove.addClickHandler(this);\n\t\t\tremove.addStyleName(CSS.cbtMultilistFieldButton());\n\t\t\theader.add(remove);\n\t\t}\n\n\t\tfield.addClickHandler(this);\n\t\tfield.addStyleName(CSS.cbtMultilistFieldGrid());\n\t\tfield.setBorderWidth(0);\n\t\tscroll.add(field);\n\t\tpanel.add(scroll);\n\t\tsetTabIndex(tab);\n\t}", "public frmAdministracion() {\n initComponents();\n skin();\n DaoAdministracion da = new DaoAdministracion();\n da.setAdministracion(txtMedioAdministracion.getText());\n tblAdministracion.setModel(da.listar());\n\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 typeText = new javax.swing.JTextField();\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n qualifierList = new javax.swing.JList();\n addBtn = new javax.swing.JButton();\n delBtn = new javax.swing.JButton();\n editBtn = new javax.swing.JButton();\n\n jLabel1.setText(\"Type:\"); // NOI18N\n\n jPanel1.setBorder(BorderFactory.createTitledBorder( //\n new LineBorder(Color.GRAY), //\n \"Qualifiers\", //\n TitledBorder.LEFT, //\n TitledBorder.TOP)); // NOI18N\n\n qualifierList.setModel(getListModel());\n qualifierList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n qualifierList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n qualifierListValueChanged(evt);\n }\n });\n jScrollPane1.setViewportView(qualifierList);\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 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)\n );\n\n addBtn.setText(\"Add...\"); // NOI18N\n addBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addBtnActionPerformed(evt);\n }\n });\n\n delBtn.setText(org.openide.util.NbBundle.getMessage(NewFetureKeyPanel.class, \"NewFetureKeyPanel.delBtn.text\")); // NOI18N\n delBtn.setEnabled(false);\n delBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n delBtnActionPerformed(evt);\n }\n });\n\n editBtn.setText(org.openide.util.NbBundle.getMessage(NewFetureKeyPanel.class, \"NewFetureKeyPanel.editBtn.text\")); // NOI18N\n editBtn.setEnabled(false);\n editBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n editBtnActionPerformed(evt);\n }\n });\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(typeText, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(addBtn, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 63, Short.MAX_VALUE)\n .addComponent(editBtn, 0, 0, Short.MAX_VALUE)\n .addComponent(delBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(typeText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addComponent(addBtn)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(editBtn)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(delBtn))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n );\n\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 lstRentals = new javax.swing.JList<>();\n jLabel1 = new javax.swing.JLabel();\n txtCustName = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txtCar = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtDays = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n lstCars = new javax.swing.JList<>();\n jScrollPane3 = new javax.swing.JScrollPane();\n lstCustomers = new javax.swing.JList<>();\n btnCreateRental = new javax.swing.JButton();\n mnuMain = new javax.swing.JMenuBar();\n mnuFile = new javax.swing.JMenu();\n mnuFileOpen = new javax.swing.JMenuItem();\n mnuFileClose = new javax.swing.JMenuItem();\n mnuFileSave = new javax.swing.JMenuItem();\n mnuFileSaveAs = new javax.swing.JMenuItem();\n mnuFileNew = new javax.swing.JMenu();\n mnuFileNewCustomer = new javax.swing.JMenuItem();\n mnuFileNewCar = new javax.swing.JMenuItem();\n mnuTools = new javax.swing.JMenu();\n mnuToolsSearch = new javax.swing.JMenuItem();\n mnuToolsRecursiveExample = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n lstRentals.setModel(new javax.swing.AbstractListModel<String>() {\n String[] strings = { \"Data not loaded\" };\n public int getSize() { return strings.length; }\n public String getElementAt(int i) { return strings[i]; }\n });\n lstRentals.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n lstRentals.setEnabled(false);\n lstRentals.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n lstRentalsValueChanged(evt);\n }\n });\n jScrollPane1.setViewportView(lstRentals);\n\n jLabel1.setText(\"Customer:\");\n\n txtCustName.setEditable(false);\n txtCustName.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCustNameActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Car:\");\n\n txtCar.setEditable(false);\n txtCar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCarActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Days Renting:\");\n\n jLabel4.setText(\"Active Rentals:\");\n\n jLabel5.setText(\"Available Cars:\");\n\n jLabel6.setText(\"Customers:\");\n\n lstCars.setModel(new javax.swing.AbstractListModel<String>() {\n String[] strings = { \"Data not loaded\" };\n public int getSize() { return strings.length; }\n public String getElementAt(int i) { return strings[i]; }\n });\n lstCars.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n lstCars.setEnabled(false);\n lstCars.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n lstCarsValueChanged(evt);\n }\n });\n jScrollPane2.setViewportView(lstCars);\n\n lstCustomers.setModel(new javax.swing.AbstractListModel<String>() {\n String[] strings = { \"Data not loaded\" };\n public int getSize() { return strings.length; }\n public String getElementAt(int i) { return strings[i]; }\n });\n lstCustomers.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n lstCustomers.setEnabled(false);\n lstCustomers.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n lstCustomersValueChanged(evt);\n }\n });\n jScrollPane3.setViewportView(lstCustomers);\n\n btnCreateRental.setText(\"Create Rental\");\n btnCreateRental.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCreateRentalActionPerformed(evt);\n }\n });\n\n mnuFile.setText(\"File\");\n\n mnuFileOpen.setText(\"Open\");\n mnuFileOpen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuFileOpenActionPerformed(evt);\n }\n });\n mnuFile.add(mnuFileOpen);\n\n mnuFileClose.setText(\"Close\");\n mnuFileClose.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuFileCloseActionPerformed(evt);\n }\n });\n mnuFile.add(mnuFileClose);\n\n mnuFileSave.setText(\"Save\");\n mnuFileSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuFileSaveActionPerformed(evt);\n }\n });\n mnuFile.add(mnuFileSave);\n\n mnuFileSaveAs.setText(\"Save As\");\n mnuFileSaveAs.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuFileSaveAsActionPerformed(evt);\n }\n });\n mnuFile.add(mnuFileSaveAs);\n\n mnuFileNew.setText(\"New...\");\n\n mnuFileNewCustomer.setText(\"Customer\");\n mnuFileNewCustomer.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuFileNewCustomerActionPerformed(evt);\n }\n });\n mnuFileNew.add(mnuFileNewCustomer);\n\n mnuFileNewCar.setText(\"Car\");\n mnuFileNewCar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuFileNewCarActionPerformed(evt);\n }\n });\n mnuFileNew.add(mnuFileNewCar);\n\n mnuFile.add(mnuFileNew);\n\n mnuMain.add(mnuFile);\n\n mnuTools.setText(\"Tools\");\n\n mnuToolsSearch.setText(\"Search\");\n mnuToolsSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuToolsSearchActionPerformed(evt);\n }\n });\n mnuTools.add(mnuToolsSearch);\n\n mnuToolsRecursiveExample.setText(\"Recursive Example\");\n mnuToolsRecursiveExample.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuToolsRecursiveExampleActionPerformed(evt);\n }\n });\n mnuTools.add(mnuToolsRecursiveExample);\n\n mnuMain.add(mnuTools);\n\n setJMenuBar(mnuMain);\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()\n .addGroup(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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(24, 24, 24))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txtCustName, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtCar)\n .addComponent(txtDays))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnCreateRental)\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(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel5)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE)\n .addComponent(jScrollPane3))\n .addComponent(jLabel6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 286, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel4)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\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 .addComponent(txtCustName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtDays, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(37, 37, 37)\n .addComponent(btnCreateRental)\n .addGap(20, 20, 20))))\n .addComponent(jScrollPane1))\n .addContainerGap())\n );\n\n pack();\n }", "public NewCidsClassVisualPanel1(final NewCidsClassWizardPanel1 model) {\n this.model = model;\n this.tableRowSelectionL = new TableRowSelectionListener();\n this.oneToManyL = new OneToManyActionListener();\n \n initComponents();\n \n dbType = new ImageIcon(ImageUtilities.loadImage(DomainserverProject.IMAGE_FOLDER + \"db_types.png\")); // NOI18N\n syncClassDocL = new SyncClassDocListener();\n syncTableDocL = new SyncTableDocListener();\n attrPolicyL = new ItemListener() {\n \n @Override\n public void itemStateChanged(final ItemEvent e) {\n if (e.getStateChange() == ItemEvent.SELECTED) {\n final Policy policy = (Policy)e.getItem();\n model.getCidsClass().setAttributePolicy((policy.getId() == null) ? null : policy);\n }\n }\n };\n ((JXTable)tblAttr).setAutoStartEditOnKeyStroke(true);\n ((JXTable)tblAttr).setTerminateEditOnFocusLost(true);\n tblAttr.setDefaultEditor(String.class, new DefaultCellEditor(new JTextField()));\n tblAttr.getDefaultEditor(String.class).addCellEditorListener(new CellEditorListener() {\n \n @Override\n public void editingCanceled(final ChangeEvent e) {\n model.fireChangeEvent();\n }\n \n @Override\n public void editingStopped(final ChangeEvent e) {\n model.fireChangeEvent();\n }\n });\n \n final JCheckBox chkEditorBox = new JCheckBox();\n chkEditorBox.setHorizontalAlignment(JCheckBox.CENTER);\n tblAttr.setDefaultEditor(Boolean.class, new DefaultCellEditor(chkEditorBox));\n lstTypes.setCellRenderer(new ListCellRendererImpl());\n cboClassIcons.addItemListener(new ItemListener() {\n \n @Override\n public void itemStateChanged(final ItemEvent e) {\n final CidsClass c = classTableModel.getCidsClass();\n c.setClassIcon((Icon)cboClassIcons.getSelectedItem());\n }\n });\n cboObjectIcons.addItemListener(new ItemListener() {\n \n @Override\n public void itemStateChanged(final ItemEvent e) {\n final CidsClass c = classTableModel.getCidsClass();\n c.setObjectIcon((Icon)cboObjectIcons.getSelectedItem());\n }\n });\n \n tblAttr.getSelectionModel()\n .addListSelectionListener(WeakListeners.create(\n ListSelectionListener.class,\n tableRowSelectionL,\n tblAttr.getSelectionModel()));\n btnOneToMany.addActionListener(WeakListeners.create(ActionListener.class, oneToManyL, btnOneToMany));\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n wrapperPanel = new javax.swing.JPanel();\n lblClass = new javax.swing.JLabel();\n cmbClass = new javax.swing.JComboBox();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblStudents = new javax.swing.JTable();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblStudents = new javax.swing.JTable();\n cmdCancel = new javax.swing.JButton();\n cmdSave = new javax.swing.JButton();\n cmdLoadClass = new javax.swing.JButton();\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ilearn.ILearnApp.class).getContext().getResourceMap(FrmAssignPromotions.class);\n setTitle(resourceMap.getString(\"Form.title\")); // NOI18N\n setFrameIcon(resourceMap.getIcon(\"Form.frameIcon\")); // NOI18N\n setName(\"Form\"); // NOI18N\n wrapperPanel.setName(\"wrapperPanel\"); // NOI18N\n lblClass.setText(resourceMap.getString(\"lblClass.text\")); // NOI18N\n lblClass.setName(\"lblClass\"); // NOI18N\n cmbClass.setName(\"cmbClass\"); // NOI18N\n jScrollPane1.setName(\"jScrollPane1\"); // NOI18N\n tblStudents.setAutoCreateRowSorter(true);\n tblStudents.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][]\n {\n\n },\n new String []\n {\n \"ID\", \"Name\", \"Promoted\", \"New Class\"\n }\n )\n {\n Class[] types = new Class []\n {\n java.lang.String.class, java.lang.String.class, java.lang.Boolean.class, java.lang.String.class\n };\n public Class getColumnClass(int columnIndex)\n {\n return types [columnIndex];\n }\n });\n tblStudents.setCellSelectionEnabled(false);\n tblStudents.setName(\"tblStudents\"); // NOI18N\n tblStudents.setRowSelectionAllowed(true);\n jScrollPane1.setViewportView(tblStudents);\n tblStudents.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jScrollPane1.setName(\"jScrollPane1\"); // NOI18N\n tblStudents.setAutoCreateRowSorter(true);\n tblStudents.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][]\n {\n\n },\n new String []\n {\n \"ID\", \"Name\", \"Promoted\", \"New Class\"\n }\n )\n {\n Class[] types = new Class []\n {\n java.lang.String.class, java.lang.String.class, java.lang.Boolean.class, java.lang.String.class\n };\n public Class getColumnClass(int columnIndex)\n {\n return types [columnIndex];\n }\n });\n tblStudents.setCellSelectionEnabled(false);\n tblStudents.setName(\"tblStudents\"); // NOI18N\n tblStudents.setRowSelectionAllowed(true);\n jScrollPane1.setViewportView(tblStudents);\n tblStudents.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n tblStudents.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(ilearn.ILearnApp.class).getContext().getActionMap(FrmAssignPromotions.class, this);\n cmdCancel.setAction(actionMap.get(\"cancel\")); // NOI18N\n cmdCancel.setName(\"cmdCancel\"); // NOI18N\n cmdSave.setAction(actionMap.get(\"save\")); // NOI18N\n cmdSave.setText(resourceMap.getString(\"cmdSave.text\")); // NOI18N\n cmdSave.setName(\"cmdSave\"); // NOI18N\n cmdLoadClass.setAction(actionMap.get(\"loadClass\")); // NOI18N\n cmdLoadClass.setName(\"cmdLoadClass\"); // NOI18N\n javax.swing.GroupLayout wrapperPanelLayout = new javax.swing.GroupLayout(wrapperPanel);\n wrapperPanel.setLayout(wrapperPanelLayout);\n wrapperPanelLayout.setHorizontalGroup(\n wrapperPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(wrapperPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(wrapperPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 483, Short.MAX_VALUE)\n .addGroup(wrapperPanelLayout.createSequentialGroup()\n .addComponent(lblClass)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmbClass, 0, 0, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmdLoadClass))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, wrapperPanelLayout.createSequentialGroup()\n .addComponent(cmdSave)\n .addGap(18, 18, 18)\n .addComponent(cmdCancel)))\n .addContainerGap())\n );\n wrapperPanelLayout.setVerticalGroup(\n wrapperPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(wrapperPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(wrapperPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblClass)\n .addComponent(cmbClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cmdLoadClass))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 405, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(wrapperPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cmdCancel)\n .addComponent(cmdSave))\n .addContainerGap())\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(wrapperPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(wrapperPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n pack();\n }", "public AddList() {\n setTitleText(\"Add new List\");\n addButton = new JButton(\"Add\");\n addButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n addButtonActionPerformed(actionEvent);\n }\n });\n addButton(addButton);\n }", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "public FieldList()\n\t{\n\t\tfields = new ArrayList<AbstractField>();\n\t}", "public void openClassRemover(View v) {\n // Attach data to fragment\n Bundle bundle = new Bundle();\n bundle.putStringArrayList(CHOSEN_CLASS_LIST_KEY, mChosenClassesList);\n mClassPickerFragment.setArguments(bundle);\n // Show the Class Picker DialogFragment\n mClassPickerFragment.show(mFragmentManager, getString(R.string.remove_classes));\n }", "public ProductCreate() {\n initComponents();\n }", "public static List<Form> list_form(String form_Version) {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<Form> forms = new ArrayList<Form>();\n\t \n\n\t try {\n\t \tPreparedStatement statement;\n\n\t\t statement = connection.prepareStatement(\"SELECT * FROM form WHERE form_version = '\"+form_Version+\"'\");\n\t \tResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t \tString formVersion = rs.getString(\"form_version\");\n\t String formName = rs.getString(\"form_name\");\n\t int fieldId = rs.getInt(\"field_id\");\n\t String fieldValue = rs.getString(\"field_value\");\n\t \n\t Form form = new Form(formVersion, formName, fieldId, fieldValue);\n\t \n\t forms.add(form);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException e) {\n\t e.printStackTrace();\n\t }\n\n\t return forms;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }", "private void makeListGUI(String list, int index)\n {\n // get a reference to the LayoutInflater service\n LayoutInflater inflater = (LayoutInflater) getSystemService(\n Context.LAYOUT_INFLATER_SERVICE);\n\n // inflate new_list_view.xml to create new list and edit Buttons\n View newListView = inflater.inflate(R.layout.new_list_view, null);\n \n // get newListButton, set its text and register its listener\n Button newListButton = \n (Button) newListView.findViewById(R.id.newListButton);\n newListButton.setText(list); \n newListButton.setOnClickListener(listButtonListener); \n\n // get newEditButton and register its listener\n Button newEditButton = \n (Button) newListView.findViewById(R.id.newEditButton); \n newEditButton.setOnClickListener(editButtonListener);\n\n // add new list and edit buttons to listTableLayout\n listTableLayout.addView(newListView, index);\n }", "private void jbt_addTeacherActionPerformed(java.awt.event.ActionEvent evt) {\n String name = jtf_TeacherName.getText();\n //Teachers t = new Teachers(name);\n TeacherList.add(name);\n\n listdisplay.addElement(name);\n\n jlist_teacher.setModel(listdisplay);\n\n }", "private void createNewListSection() {\n\t\tImageIcon image10 = new ImageIcon(sURLFCL1);\n\t\tImageIcon image11 = new ImageIcon(sURLFCL2);\n\t\tImageIcon image12 = new ImageIcon(sURLFCL3);\n\t\tjbCreateLists = new JButton(\"New PlayList\");\n\t\tjbCreateLists.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbCreateLists.setForeground(new Color(150,100,100));\n\t\tjbCreateLists.setIcon(image10);\n\t\tjbCreateLists.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setRolloverIcon(image11);\n\t\tjbCreateLists.setRolloverSelectedIcon(image12);\t\n\t\tjbCreateLists.setContentAreaFilled(false);\n\t\tjbCreateLists.setFocusable(false);\n\t\tjbCreateLists.setBorderPainted(false);\n\t}", "public CreationMenuModele(ArrayList<String> listPredefinedCourse,ArrayList<String> listCourseName){\n this.listPredefinedCourse = listPredefinedCourse;\n this.listCourseName = listCourseName;\n }", "@GetMapping(\"/list/showFormForAdd\")\n\tpublic String showFormForAdd(Model theModel) {\n\t\tPerson thePerson = new Person();\n\t\ttheModel.addAttribute(\"person\", thePerson);\n\n\t\treturn \"person-form\";\n\t}", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "public JsfVenda() {\r\n litem = new ArrayList();\r\n }", "public void buildAndShowMenuForm() {\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .translator(MinecraftLocale::getLocaleString, session.locale())\n .title(\"gui.advancements\");\n\n List<String> rootAdvancementIds = new ArrayList<>();\n for (Map.Entry<String, GeyserAdvancement> advancement : storedAdvancements.entrySet()) {\n if (advancement.getValue().getParentId() == null) { // No parent means this is a root advancement\n builder.button(MessageTranslator.convertMessage(advancement.getValue().getDisplayData().getTitle(), session.locale()));\n rootAdvancementIds.add(advancement.getKey());\n }\n }\n\n if (rootAdvancementIds.isEmpty()) {\n builder.content(\"advancements.empty\");\n }\n\n builder.validResultHandler((response) -> {\n String id = rootAdvancementIds.get(response.clickedButtonId());\n if (!id.equals(\"\")) {\n if (id.equals(currentAdvancementCategoryId)) {\n // The server thinks we are already on this tab\n buildAndShowListForm();\n } else {\n // Send a packet indicating that we intend to open this particular advancement window\n ServerboundSeenAdvancementsPacket packet = new ServerboundSeenAdvancementsPacket(id);\n session.sendDownstreamPacket(packet);\n // Wait for a response there\n }\n }\n });\n\n session.sendForm(builder);\n }", "public static GroupList newInstance() {\n\t\tGroupList f = new GroupList();\n\t\tBundle b = new Bundle();\n\t\tf.setArguments(b);\n\t\treturn f;\n\t}", "private Lists() { }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n txtCadena = new javax.swing.JTextField();\n btnBuscar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n lstBusqueda = new javax.swing.JList();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setName(\"Form\"); // NOI18N\n setResizable(false);\n\n txtCadena.setName(\"txtCadena\"); // NOI18N\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(kardexarchivo.KardexArchivoApp.class).getContext().getResourceMap(BusquedaJuicio.class);\n btnBuscar.setText(resourceMap.getString(\"btnBuscar.text\")); // NOI18N\n btnBuscar.setActionCommand(resourceMap.getString(\"btnBuscar.actionCommand\")); // NOI18N\n btnBuscar.setName(\"btnBuscar\"); // NOI18N\n btnBuscar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n btnBuscarMouseEntered(evt);\n }\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btnBuscarMouseClicked(evt);\n }\n });\n\n jLabel1.setFont(resourceMap.getFont(\"jLabel1.font\")); // NOI18N\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n\n jScrollPane1.setName(\"jScrollPane1\"); // NOI18N\n\n lstBusqueda.setName(\"lstBusqueda\"); // NOI18N\n lstBusqueda.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lstBusquedaMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(lstBusqueda);\n\n jLabel2.setText(resourceMap.getString(\"jLabel2.text\")); // NOI18N\n jLabel2.setName(\"jLabel2\"); // NOI18N\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(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtCadena, javax.swing.GroupLayout.PREFERRED_SIZE, 336, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBuscar))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(156, 156, 156)\n .addComponent(jLabel1)))\n .addContainerGap(35, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(17, 17, 17)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtCadena, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscar))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(29, Short.MAX_VALUE))\n );\n\n pack();\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n java.awt.Dimension dialogSize = getSize();\n setLocation((screenSize.width-dialogSize.width)/2,(screenSize.height-dialogSize.height)/2);\n }" ]
[ "0.6348488", "0.58534145", "0.57250357", "0.56793976", "0.55656224", "0.55293816", "0.55187106", "0.5515767", "0.5496428", "0.5490024", "0.5484727", "0.5475708", "0.54755986", "0.54480714", "0.5415902", "0.53982425", "0.5347194", "0.5346252", "0.5339758", "0.53037363", "0.52885276", "0.52803075", "0.5276181", "0.52626693", "0.5258125", "0.524953", "0.5241894", "0.5241588", "0.52361447", "0.5231448", "0.5203167", "0.5201275", "0.5199729", "0.5194006", "0.51925856", "0.5184273", "0.51751447", "0.516403", "0.51497626", "0.5127968", "0.51245165", "0.5120053", "0.5119323", "0.5108102", "0.5102131", "0.5097841", "0.50977564", "0.5096999", "0.5084938", "0.5080929", "0.50710356", "0.50650096", "0.50622267", "0.50599706", "0.50539863", "0.5049432", "0.50435674", "0.50394505", "0.50342673", "0.5022965", "0.50211555", "0.5014133", "0.5011518", "0.5000624", "0.4999588", "0.49959254", "0.49898177", "0.498893", "0.49868485", "0.4983731", "0.497926", "0.49738884", "0.49636453", "0.4947299", "0.49459624", "0.49441764", "0.49424422", "0.49412143", "0.49404842", "0.4938718", "0.49342334", "0.49305367", "0.4927818", "0.49237117", "0.49223942", "0.49184713", "0.49111086", "0.49085343", "0.49085012", "0.49052104", "0.4897595", "0.48975375", "0.48900253", "0.48877174", "0.4876492", "0.48667884", "0.48633894", "0.48628926", "0.48606744", "0.48598418" ]
0.60087883
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() { jScrollPane1 = new javax.swing.JScrollPane(); tbTrainee = new javax.swing.JTable(); jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); txtTraineeId = new javax.swing.JTextField(); jSeparator1 = new javax.swing.JSeparator(); jPanel3 = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); txtTraineeName = new javax.swing.JTextField(); jSeparator2 = new javax.swing.JSeparator(); jPanel4 = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); txtMark = new javax.swing.JTextField(); jSeparator3 = new javax.swing.JSeparator(); btnUpdate = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Danh sách lớp"); setResizable(false); tbTrainee.setBackground(new java.awt.Color(204, 204, 204)); tbTrainee.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Mã học viên", "Tên học viên", "Ngày vào học", "Điểm cuối khoá" } ) { boolean[] canEdit = new boolean [] { false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); tbTrainee.setFillsViewportHeight(true); tbTrainee.setGridColor(new java.awt.Color(204, 255, 255)); tbTrainee.setRowHeight(25); tbTrainee.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); tbTrainee.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tbTraineeMouseClicked(evt); } }); jScrollPane1.setViewportView(tbTrainee); jPanel1.setBackground(new java.awt.Color(255, 255, 255)); jLabel1.setText("Mã học viên"); txtTraineeId.setEditable(false); txtTraineeId.setBackground(new java.awt.Color(204, 204, 255)); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(txtTraineeId) .addComponent(jSeparator1) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtTraineeId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE) .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jLabel2.setText("Tên học viên"); txtTraineeName.setEditable(false); txtTraineeName.setBackground(new java.awt.Color(204, 204, 255)); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel2) .addContainerGap(214, Short.MAX_VALUE)) .addComponent(txtTraineeName) .addComponent(jSeparator2) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtTraineeName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE) .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jLabel3.setText("Điểm tốt nghiệp"); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel3) .addContainerGap(199, Short.MAX_VALUE)) .addComponent(txtMark) .addComponent(jSeparator3) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtMark, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE) .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); btnUpdate.setText("Cập nhật"); btnUpdate.setEnabled(false); btnUpdate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnUpdateActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnUpdate) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(105, 105, 105) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(31, 31, 31) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(45, 45, 45) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnUpdate) .addGap(24, 24, 24)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 608, Short.MAX_VALUE) .addGap(0, 0, 0) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 452, Short.MAX_VALUE) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 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 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 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 frmVenda() {\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 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 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 POS1() {\n initComponents();\n }", "public CreateAccount_GUI() {\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.7319396", "0.7290941", "0.7290941", "0.7290941", "0.7285927", "0.7248002", "0.72139066", "0.72086275", "0.71958303", "0.718997", "0.7184516", "0.7159095", "0.71481097", "0.709288", "0.70806605", "0.70578784", "0.6986726", "0.6977067", "0.6955257", "0.6954392", "0.6945326", "0.69436216", "0.6935779", "0.69320637", "0.6928225", "0.6924907", "0.69248605", "0.6911609", "0.6911109", "0.6892906", "0.6892066", "0.68918383", "0.6891177", "0.6889087", "0.6883209", "0.6882372", "0.6880651", "0.68782973", "0.6876634", "0.6874696", "0.68711734", "0.6859314", "0.68565166", "0.6855607", "0.68552643", "0.6854565", "0.68534696", "0.68530536", "0.68530536", "0.6843682", "0.6836637", "0.6836613", "0.6829145", "0.68281287", "0.682634", "0.6824281", "0.68238854", "0.681735", "0.6816949", "0.6811127", "0.68091583", "0.6808792", "0.680855", "0.6808137", "0.6802665", "0.67954504", "0.67941535", "0.6793186", "0.6791855", "0.67899567", "0.67891306", "0.678766", "0.67817825", "0.67669976", "0.67660517", "0.6764966", "0.67571455", "0.6755968", "0.6752885", "0.6751322", "0.6742087", "0.6739845", "0.673701", "0.6736383", "0.67338026", "0.6727401", "0.67262983", "0.67209303", "0.67158926", "0.6715857", "0.67147917", "0.67091477", "0.6708007", "0.6704485", "0.6701657", "0.67003953", "0.6699588", "0.6698673", "0.66944015", "0.6690715", "0.6689867" ]
0.0
-1
End of variables declaration//GENEND:variables
@Override public void displayListTraineeInClass(ArrayList<TraineeDto> list) { DefaultTableModel _dm = (DefaultTableModel) tbTrainee.getModel(); if (_dm.getRowCount() != 0) { _dm.getDataVector().removeAllElements(); _dm.fireTableDataChanged(); } Object rowData[] = new Object[4]; for (int i = 0; i < list.size(); i++) { rowData[0] = list.get(i).getId(); rowData[1] = list.get(i).getName(); rowData[2] = list.get(i).getStartedDate(); rowData[3] = list.get(i).getCourseMark(); _dm.addRow(rowData); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
/ In a 3x2 crosshatched grid, a total of 37 different rectangles could be situated within that grid as indicated in the sketch. There are 5 grids smaller than 3x2, vertical and horizontal dimensions being important, i.e. 1x1, 2x1, 3x1, 1x2 and 2x2. If each of them is crosshatched, the following number of different rectangles could be situated within those smaller grids: 1x1: 1 2x1: 4 3x1: 8 1x2: 4 2x2: 18 Adding those to the 37 of the 3x2 grid, a total of 72 different rectangles could be situated within 3x2 and smaller grids. How many different rectangles could be situated within 47x43 and smaller grids?
public static long cross_hatched(long W, long H) { long sum = 0; // horizontals for (long w = 1L; w <= W; w++) { for (long h = 1L; h <= H; h++) { sum += (W - w + 1) * (H - h + 1); //System.out.println("hSuma (" + w + "x" + h + ") = " + ((W - w + 1) * (H - h + 1))); } } // Diagonals for (long n = 1L; n <= Math.min(W, H) * 2; n++) { for (long m = 1L; m <= n; m++) { double ancho_alto = (n + m) / 2.0; // Ancho diagonal impar if (n % 2 == 1) { // empieza en Y = 0 double cabenx = Math.floor(W - 0.5 - ancho_alto + 1); double cabeny = Math.floor(H - ancho_alto + 1); if (cabenx > 0.0 && cabeny > 0.0) { sum += cabenx * cabeny * ((n != m) ? 2 : 1); } // empieza en Y = 0.5 cabenx = Math.floor(W - ancho_alto + 1); cabeny = Math.floor(H - 0.5 - ancho_alto + 1); if (cabenx > 0.0 && cabeny > 0.0) { sum += cabenx * cabeny * ((n != m) ? 2 : 1); } } // Ancho diagonal par else { // Empieza en Y = 0 double cabenx = Math.floor(W - ancho_alto + 1); double cabeny = Math.floor(H - ancho_alto + 1); if (cabenx > 0.0 && cabeny > 0.0) { sum += cabenx * cabeny * ((n != m) ? 2 : 1); } // Empieza en Y = 0.5 cabenx = Math.floor(W - 0.5 - ancho_alto + 1); cabeny = Math.floor(H - 0.5 - ancho_alto + 1); if (cabenx > 0.0 && cabeny > 0.0) { sum += cabenx * cabeny * ((n != m) ? 2 : 1); } } } } // Diagonals squared System.out.println("Suma (" + W + "x" + H + ") = " + sum); return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createRectangles() {\r\n rectangles.clear();\r\n for (int i = 0; i < gridSize * gridSize; i++) {\r\n Rectangle r = new Rectangle(rectangleSize, rectangleSize, Color.BLUE);\r\n r.setStroke(Color.BLACK);\r\n rectangles.add(r);\r\n }\r\n }", "public void draw_grid() {\n for (int i = 0; i <= xNumTiles; i++) {\n stroke(100);\n line(i * tileSize, 0, i * tileSize, yNumTiles * tileSize);\n }\n\n for (int j = 0; j <= yNumTiles; j++) {\n stroke(100);\n line(0, j * tileSize, xNumTiles * tileSize, j * tileSize);\n }\n }", "public void displayRectangles() {\n\n\n int arr[] = IntStream.of(findDuplicates(TricolourController.BloodCells)).distinct().toArray(); //takes only the unique values from the array\n int arrWhite[] = IntStream.of(findDuplicates(TricolourController.WhiteCells)).distinct().toArray();\n int rIndex = 0;\n int lIndex = 0;\n int numCells = 0;\n\n for(int num : arrWhite) {\n System.out.println(num);\n }\n\n for(int j=0; j < arr.length - 1; j++) {\n for (int i = 0; i < TricolourController.BloodCells.length; i++) {\n if (TricolourController.BloodCells[i] == arr[j]) {\n int x = i % width, y = i / width;\n if (r[rIndex] == null) {\n r[rIndex] = new Rectangle(x, y, 1, 1);\n numCells++;\n }\n else {\n if (x > r[rIndex].getX() + r[rIndex].getWidth()) r[rIndex].setWidth(x - r[rIndex].getX());\n if (x < r[rIndex].getX()) {\n r[rIndex].setWidth(r[rIndex].getX() + r[rIndex].getWidth() - x);\n r[rIndex].setX(x);\n }\n if (y > r[rIndex].getY() + r[rIndex].getHeight()) r[rIndex].setHeight(y - r[rIndex].getY());\n }\n }\n }\n if (r[rIndex] != null) {\n r[rIndex].setFill(Color.TRANSPARENT);\n if(r[rIndex].getWidth() * r[rIndex].getHeight() > 2500) {\n r[rIndex].setStroke(Color.BLUE);\n }\n else r[rIndex].setStroke(Color.DARKGREEN);\n\n r[rIndex].setTranslateX(ImageViewTri.getLayoutX());\n r[rIndex].setTranslateY(ImageViewTri.getLayoutY());\n ((Pane) ImageViewTri.getParent()).getChildren().add(r[rIndex++]);\n RedCellText.setText(String.valueOf(numCells));\n }\n l[lIndex] = new Label();\n l[lIndex].setText(String.valueOf(numCells));\n l[lIndex].setTextFill(Color.BLACK);\n l[lIndex].setTranslateX(r[rIndex - 1].getX());\n l[lIndex].setTranslateY(r[rIndex - 1].getY());\n\n ((Pane) ImageViewTri.getParent()).getChildren().add(l[lIndex++]);\n }\n\n//Handles the white cell rectangles.\n int whitenumcells = 0;\n for(int j=0; j < arrWhite.length - 1; j++) {\n for (int i = 0; i < TricolourController.WhiteCells.length; i++) {\n if (TricolourController.WhiteCells[i] == arrWhite[j]) {\n int x = i % width, y = i / width;\n if (r[rIndex] == null) {\n r[rIndex] = new Rectangle(x, y, 1, 1);\n whitenumcells++;\n }\n else {\n if (x > r[rIndex].getX() + r[rIndex].getWidth()) r[rIndex].setWidth(x - r[rIndex].getX());\n if (x < r[rIndex].getX()) {\n r[rIndex].setWidth(r[rIndex].getX() + r[rIndex].getWidth() - x);\n r[rIndex].setX(x);\n }\n if (y > r[rIndex].getY() + r[rIndex].getHeight()) r[rIndex].setHeight(y - r[rIndex].getY());\n }\n }\n }\n if (r[rIndex] != null) {\n r[rIndex].setFill(Color.TRANSPARENT);\n r[rIndex].setStroke(Color.YELLOW);\n\n r[rIndex].setTranslateX(ImageViewTri.getLayoutX());\n r[rIndex].setTranslateY(ImageViewTri.getLayoutY());\n ((Pane) ImageViewTri.getParent()).getChildren().add(r[rIndex++]);\n WhiteCellText.setText(String.valueOf(whitenumcells));\n }\n l[lIndex] = new Label();\n l[lIndex].setText(String.valueOf(whitenumcells));\n l[lIndex].setTextFill(Color.BLACK);\n l[lIndex].setTranslateX(r[rIndex - 1].getX());\n l[lIndex].setTranslateY(r[rIndex - 1].getY());\n\n ((Pane) ImageViewTri.getParent()).getChildren().add(l[lIndex++]);\n }\n }", "protected void computeGridParameters() {\n float padding = 0.02f * overlay.getScalingValue();\n boolean flipX = x2 < x1;\n float xx1 = flipX ? (x1 + padding) : (x1 - padding);\n float xx2 = flipX ? (x2 - padding) : (x2 + padding);\n boolean flipY = y2 < y1;\n float yy1 = flipY ? (y1 + padding) : (y1 - padding);\n float yy2 = flipY ? (y2 - padding) : (y2 + padding);\n \n xGrid1 = xx1; yGrid1 = yy1;\n xGrid2 = xx2; yGrid2 = yy1;\n xGrid3 = xx1; yGrid3 = yy2;\n xGrid4 = xx2; yGrid4 = yy2;\n horizGridCount = 3; vertGridCount = 3;\n }", "private static Array<int[]> findAllOpenAreas(int[][] board, int width, int height) {\n Array<int[]> positions = new Array<int[]>();\n boolean[][] good = new boolean[board.length][board[0].length];\n\n // go across horizontally, finding areas where the rectangle may fit\n // width wise\n for (int y = 1; y < board[0].length-1; ++y) {\n int horizontal_count = 0;\n for (int x = 1; x < board.length-1; ++x) {\n // count up in areas where there is no room\n if (board[x][y] == NULL)\n horizontal_count++;\n // if we encounter a room, the rectangle can not fit there\n else\n horizontal_count = 0;\n\n // when we've reached the edge of our rectangle's width\n // we can mark that this is a safe place to measure from\n if (horizontal_count == width) {\n good[x - width + 1][y] = true;\n // increment back one in case the next space is also\n // acceptable for being a rectangle\n horizontal_count--;\n }\n }\n }\n\n // now that count verticals we have established good lines of where a\n // rectangle may start\n // we need to count vertically down where it can fit\n\n for (int x = 0; x < board.length; ++x) {\n int vertical_count = 0;\n for (int y = 0; y < board[0].length; ++y) {\n // check against only the points that we flagged as potentially\n // okay\n if (good[x][y])\n vertical_count++;\n // if we didn't flag that point, then we can't fit a rectangle\n // there vertically\n else\n vertical_count = 0;\n\n // when our rectangle is fully formed, we can add it as a\n // plausible location\n if (vertical_count == height) {\n positions.add(new int[] { x, y - height + 1 });\n vertical_count--;\n }\n }\n }\n\n return positions;\n }", "public void draw() {\n PImage grid = loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/tile.png\");\n for(int i = 0 ; i < 10 ; i++){\n for(int j = 0 ; j < 6 ; j++){\n image(grid, i*grid.width, j*grid.height);\n if(gridPlane.get(List.of(i, j)).getOwner() != null){\n if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Red\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red3.png\"), i*grid.width, j*grid.height);\n }\n }else if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Green\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green3.png\"), i*grid.width, j*grid.height);\n }\n }\n }\n }\n }\n if(this.finish == true){\n System.exit(0);\n }\n }", "public int area(String[] rectangles){\n TreeMap<Integer, Events> events = new TreeMap<>();\n\n int tag = 0;\n for(String r : rectangles){\n tag++;\n Scanner sc = new Scanner(r);\n int x1 = sc.nextInt();\n int y1 = sc.nextInt();\n int x2 = sc.nextInt();\n int y2 = sc.nextInt();\n if(!events.containsKey(x1))\n events.put(x1, new Events());\n if(!events.containsKey(x2))\n events.put(x1, new Events());\n\n events.get(x1).in.add(new YRange(y1, y2, tag));\n events.get(x2).out.add(new YRange(y1, y2, tag));\n }\n\n // Active set of tags for each unique y\n // we need to identify where each each rectangle starts & end\n // positve tag - start \n // negative tag - end\n // We need all of them sorted\n TreeSet<Pair> active = new TreeSet<Pair>(new Comparator<Pair>(){\n @Override\n public int compare(Pair a, Pair b){\n if(a.y == b.y)\n return Integer.compare(a.tag, b.tag);\n return Integer.compare(a.y, b.y);\n }\n });\n\n int area = 0;\n for(Map.Entry<Integer, Events> entry : events.entrySet()){\n int x = entry.getKey();\n Integer next_x = events.higherKey(x);\n // processed last unique x\n if(next_x == null) break;\n Events e = entry.getValue();\n\n // Construct the current active set\n for(YRange y : e.in){\n active.add(new Pair(y.y1, y.tag));\n active.add(new Pair(y.y2, -y.tag));\n }\n\n for(YRange y : e.out){\n active.remove(new Pair(y.y1, y.tag));\n active.remove(new Pair(y.y2, -y.tag));\n }\n // Compute union of y segments\n Integer lasty = null;\n int ySum = 0;\n int cnt = 0;\n for(Pair p : active){\n int y = p.y;\n if(cnt == 0){\n lasty = y;\n }\n // closing\n if(p.tag < 0) cnt--;\n else cnt++;\n\n if(cnt == 0){\n ySum += y - lasty;\n // reset lasty\n lasty = null;\n }\n }\n area += (next_x - x)*ySum;\n }\n return area;\n }", "static int m36189a(Rect rect, Set<Rect> set) {\n int i = 0;\n if (set.isEmpty()) {\n return 0;\n }\n ArrayList<Rect> arrayList = new ArrayList<>();\n arrayList.addAll(set);\n Collections.sort(arrayList, new Comparator<Rect>() {\n /* renamed from: a */\n public final int compare(Rect rect, Rect rect2) {\n return Integer.valueOf(rect.top).compareTo(Integer.valueOf(rect2.top));\n }\n });\n ArrayList arrayList2 = new ArrayList();\n for (Rect rect2 : arrayList) {\n arrayList2.add(Integer.valueOf(rect2.left));\n arrayList2.add(Integer.valueOf(rect2.right));\n }\n Collections.sort(arrayList2);\n int i2 = 0;\n while (i < arrayList2.size() - 1) {\n int i3 = i + 1;\n if (!((Integer) arrayList2.get(i)).equals(arrayList2.get(i3))) {\n Rect rect3 = new Rect(((Integer) arrayList2.get(i)).intValue(), rect.top, ((Integer) arrayList2.get(i3)).intValue(), rect.bottom);\n int i4 = rect.top;\n for (Rect rect4 : arrayList) {\n if (Rect.intersects(rect4, rect3)) {\n if (rect4.bottom > i4) {\n i2 += rect3.width() * (rect4.bottom - Math.max(i4, rect4.top));\n i4 = rect4.bottom;\n }\n if (rect4.bottom == rect3.bottom) {\n break;\n }\n }\n }\n }\n i = i3;\n }\n return i2;\n }", "private void initGrids() {\n grid0 = new Grid(100f, 50f, 100f, 0);\n grid1 = new Grid(100f, 150f, 100f, 1);\n grid2 = new Grid(100f, 250f, 100f, 2);\n grid3 = new Grid(100f, 350f, 100f, 3);\n grid4 = new Grid(100f, 50f, 200f, 4);\n grid5 = new Grid(100f, 150f, 200f, 5);\n grid6 = new Grid(100f, 250f, 200f, 6);\n grid7 = new Grid(100f, 350f, 200f, 7);\n grid8 = new Grid(100f, 50f, 300f, 8);\n grid9 = new Grid(100f, 150f, 300f, 9);\n grid10 = new Grid(100f, 250f, 300f, 10);\n grid11 = new Grid(100f, 350f, 300f, 11);\n grid12 = new Grid(100f, 50f, 400f, 12);\n grid13 = new Grid(100f, 150f, 400f, 13);\n grid14 = new Grid(100f, 250f, 400f, 14);\n grid15 = new Grid(100f, 350f, 400f, 15);\n\n /**\n * Adding grids from 0 to 15 to static ArayList of all grids\n */\n grids.clear();\n\n grids.add(grid0);\n grids.add(grid1);\n grids.add(grid2);\n grids.add(grid3);\n grids.add(grid4);\n grids.add(grid5);\n grids.add(grid6);\n grids.add(grid7);\n grids.add(grid8);\n grids.add(grid9);\n grids.add(grid10);\n grids.add(grid11);\n grids.add(grid12);\n grids.add(grid13);\n grids.add(grid14);\n grids.add(grid15);\n }", "public int area(String[] rectangles){\n TreeMap<Integer, Events> events = new TreeMap<>();\n\n int tag = 0;\n for(String r : rectangles){\n tag++;\n Scanner sc = new Scanner(r);\n int x1 = sc.nextInt();\n int y1 = sc.nextInt();\n int x2 = sc.nextInt();\n int y2 = sc.nextInt();\n if(!events.containsKey(x1))\n events.put(x1, new Events());\n if(!events.containsKey(x2))\n events.put(x2, new Events());\n\n events.get(x1).in.add(new YRange(y1, y2, tag));\n events.get(x2).out.add(new YRange(y1, y2, tag));\n }\n\n // Active set of tags for each unique y\n // we need to identify where each each rectangle starts & end\n // positve tag - start \n // negative tag - end\n // We need all of them sorted\n TreeMap<Integer, TreeSet<Integer>> active = new TreeMap<>();\n int area = 0;\n for(Map.Entry<Integer, Events> entry : events.entrySet()){\n int x = entry.getKey();\n Integer next_x = events.higherKey(x);\n // processed last unique x\n if(next_x == null) break;\n Events e = entry.getValue();\n\n // Construct the current active set\n for(YRange y : e.in){\n if(!active.containsKey(y.y1)) active.put(y.y1, new TreeSet<>());\n if(!active.containsKey(y.y2)) active.put(y.y2, new TreeSet<>());\n\n active.get(y.y1).add(y.tag);\n active.get(y.y2).add(-y.tag);\n }\n for(YRange y : e.out){\n active.get(y.y1).remove(y.tag);\n active.get(y.y2).remove(-y.tag);\n }\n // Compute union of y segments\n Integer lasty = null;\n int ySum = 0;\n int cnt = 0;\n for(Map.Entry<Integer, TreeSet<Integer>> ytags : active.entrySet()){\n int y = ytags.getKey();\n if(cnt == 0){\n lasty = y;\n }\n for(int ytag : ytags.getValue()){\n // closing\n if(ytag < 0) cnt--;\n else cnt++;\n }\n\n if(cnt == 0){\n ySum += y - lasty;\n // reset lasty\n lasty = null;\n }\n }\n area += (next_x - x)*ySum;\n }\n return area;\n }", "public int numMagicSquaresInside(int[][] grid) {\n //排除不够3X3的数组矩阵\n if (grid.length < 3){\n return 0;\n }\n int sum = 0;\n //找九宫格中间的数字\n for (int i = 1;i < grid.length - 1;i++){\n for (int j = 1;j < grid.length - 1;){\n //上述 条件1&&条件2\n if (grid[i][j] == 5&&isLawfulNum(grid,j,i)){\n sum ++;\n //如果当前九宫格满足条件意味着:\n // 向右移动一位的九宫格中间的数字不是5\n // 自己脑补一下把....\n j += 2;\n }else {\n j ++;\n }\n }\n }\n return sum;\n }", "static long gridlandMetro(long n, int m, int k, int[][] track) {\n Map<Integer, Stack<int[]>> map = new HashMap<>();\n for (int i = 0; i < k; i++) {\n int r = track[i][0];\n int c1 = track[i][1];\n int c2 = track[i][2];\n Stack<int[]> stack = map.get(r);\n if (stack == null) {\n stack = new Stack<>();\n stack.push(new int[] { c1, c2 });\n map.put(r, stack);\n } else {\n int[] c = stack.peek();\n if (c[1] >= c1)\n c[1] = Math.max(c[1], c2);\n else\n stack.push(new int[] { c1, c2 });\n }\n }\n return (long) n * m - map.values().stream().flatMap(Collection::stream).mapToLong(c -> c[1] - c[0] + 1).sum();\n}", "private void createValley(Square[][]Squares, int rows, int columns, int grid)\n {\n // a center point for the valley is randomized in relation to the number of rows or columns, whichever is smaller,\n // so the whole valley will fit inside the grid\n\n int seedRowRand = (int)(Math.random() * rows);\n int seedColRand = (int)(Math.random() * columns);\n int swellRandMax = 0;\n int swellRand = 0;\n int swellRand2 = 0;\n \n // define max swelling for the valley\n if (columns > rows)\n {\n swellRandMax = rows/10+1;\n }\n else\n {\n swellRandMax = columns/10+1;\n }\n \n // if the first randomed vertical valley seedlocation is too close to the borders, it is randomed again\n if (seedRowRand <= swellRandMax || seedRowRand >= rows-swellRandMax)\n {\n for (;seedRowRand <= swellRandMax || seedRowRand >= rows-swellRandMax;)\n {\n seedRowRand = (int)(Math.random()*rows);\n } \n }\n \n // if the first randomed horizontal valley seedlocation is too close to the borders, it is randomed again\n if (seedColRand <= swellRandMax || seedColRand >= columns-swellRandMax)\n {\n for(;seedColRand <= swellRandMax || seedColRand >= columns-swellRandMax;)\n {\n seedColRand = (int)(Math.random()*rows);\n }\n }\n\n // the seed is placed\n Squares[seedRowRand][seedColRand].setTerrain(0);\n\n int scRand;\n\n // make the valley around the seed\n\n // the first for-loop is for making three differently shaped rectangles \n // on top of the seed out of plains tiles to create a valley\n for(int a = 0;a<3;a++)\n {\n // the second for-loop is to place 500 plains randomly inside each rectangle, creating a valley\n for(int b = 0;b<500;b++)\n {\n // create a vertical rectangle\n if(a==0)\n {\n swellRand = (int) ((Math.random() * Math.sqrt(grid))/6)+1;\n swellRand2 = (int) ((Math.random() * Math.sqrt(grid))/12)+1;\n }\n\n //create a vertical rectangle\n if (a==1)\n {\n swellRand = (int) ((Math.random() * Math.sqrt(grid))/12)+1;\n swellRand2 = (int) ((Math.random() * Math.sqrt(grid))/6)+1;\n }\n\n // create a square\n if (a==2)\n {\n swellRand = (int) ((Math.random() * Math.sqrt(grid))/8)+1;\n swellRand2 = (int) ((Math.random() * Math.sqrt(grid))/8)+1;\n }\n \n // random the placement for each plains tile\n scRand = (int) (Math.random() * 8) + 1;\n\n switch (scRand)\n {\n case 1:\n if(seedRowRand+swellRand < rows && seedColRand+swellRand2 <columns)\n Squares[seedRowRand+swellRand][seedColRand+swellRand2].setTerrain(0);\n\n case 2:\n if(seedRowRand-swellRand >=0 && seedColRand-swellRand2 >=0)\n Squares[seedRowRand-swellRand][seedColRand-swellRand2].setTerrain(0);\n\n case 3: \n if(seedRowRand+swellRand<rows && seedColRand-swellRand2 >=0)\n Squares[seedRowRand+swellRand][seedColRand-swellRand2].setTerrain(0);\n\n case 4:\n if(seedRowRand-swellRand >= 0 && seedColRand+swellRand2 <columns)\n Squares[seedRowRand-swellRand][seedColRand+swellRand2].setTerrain(0);\n\n case 5:\n if(seedRowRand < rows && seedRowRand >= 0 && seedColRand+swellRand<columns)\n Squares[seedRowRand][seedColRand+swellRand].setTerrain(0);\n\n case 6:\n if(seedRowRand < rows && seedRowRand >= 0 && seedColRand-swellRand >= 0)\n Squares[seedRowRand][seedColRand-swellRand].setTerrain(0);\n\n case 7:\n if(seedRowRand+swellRand < rows && seedColRand < columns && seedColRand >= 0)\n Squares[seedRowRand+swellRand][seedColRand].setTerrain(0);\n\n case 8:\n if(seedRowRand-swellRand >= 0 && seedColRand < columns && seedColRand >= 0)\n Squares[seedRowRand-swellRand][seedColRand].setTerrain(0);\n }\n }\n } \n }", "@Test\n\tpublic final void testProcGridCoord() {\n\t\tfor (int d=0; d<DIMENSIONALITY; d++) {\n\t\t\tassertTrue(0 <= block.procGridCoord(d)\n\t\t\t\t\t&& block.procGridCoord(d)<block.procGridSize(d));\n\t\t}\n\t}", "private void addRectanglesToGrid(GridPane grid, List<Rectangle> rectangles) {\r\n if (!grid.getChildren().isEmpty())\r\n grid.getChildren().clear();\r\n for (int i = 0; i < gridSize * gridSize; i++)\r\n grid.add(rectangles.get(i), i % gridSize, i / gridSize);\r\n }", "@Test\n public void testNumCellsSpreadingFromInsideGrid() {\n params = new CompletelySpatiallyRandomParams(0, 0.5);\n coloniser = new CompletelySpatiallyRandomColoniser(landCoverType, juvenilePine, juvenileOak,\n juvenileDeciduous, params);\n\n assertEquals(2, coloniser.getNumCellsColonisedFromInsideGrid(LscapeLayer.Oak));\n assertEquals(1, coloniser.getNumCellsColonisedFromInsideGrid(LscapeLayer.Pine));\n assertEquals(1, coloniser.getNumCellsColonisedFromInsideGrid(LscapeLayer.Deciduous));\n }", "private boolean subGridCheck() {\n\t\tint sqRt = (int)Math.sqrt(dimension);\n\t\tfor(int i = 0; i < sqRt; i++) {\n\t\t\tint increment = i * sqRt;\n\t\t\tfor(int val = 1; val <= dimension; val++) {\n\t\t\t\tint valCounter = 0;\n\t\t\t\tfor(int row = 0 + increment; row < sqRt + increment; row++) {\n\t\t\t\t\tfor(int col = 0 + increment; col < sqRt + increment; col++) {\n\t\t\t\t\t\tif(puzzle[row][col] == val)\n\t\t\t\t\t\t\tvalCounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(valCounter >= 2)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static FPoint2[] findSnapErrors(Grid grid, SnapArrangement ar) {\n\n DArray a = new DArray();\n do {\n extractSnapPoints(ar);\n\n // construct a list of segment sections between snap points\n DArray fragList = new DArray();\n FRect fragBounds = null;\n\n Graph g = ar.getGraph();\n for (int jj = 0; jj < ar.nNodes(); jj++) {\n int id1 = jj + ar.idBase();\n for (int kk = 0; kk < g.nCount(id1); kk++) {\n int id2 = g.neighbor(id1, kk);\n if (id2 < id1)\n continue;\n\n // Segment seg = segs[i];\n // for (int j = 0; j < seg.nSnapPoints() - 1; j++) {\n Endpoints ep = new Endpoints(grid, ar.hotPixel(id1), ar.hotPixel(id2));\n if (fragBounds == null)\n fragBounds = new FRect(ep.v0, ep.v1);\n fragBounds.add(ep.v0);\n fragBounds.add(ep.v1);\n fragList.add(ep);\n }\n }\n\n if (fragList.isEmpty())\n break;\n\n // to speed up this process, divide bounds into a grid of bucket/pixels.\n // Each bucket contains the fragments whose minimum bounding rectangles\n // intersect the bucket's pixel. \n // Thus we need only compare fragments against others from the same bucket.\n\n int nBuckets = Math.max(1, ar.nNodes() / 60);\n DArray[] buckets = new DArray[nBuckets * nBuckets];\n {\n double bWidth = fragBounds.width / nBuckets, bHeight = fragBounds.height\n / nBuckets;\n for (int i = 0; i < buckets.length; i++)\n buckets[i] = new DArray();\n for (int i = 0; i < fragList.size(); i++) {\n Endpoints e = (Endpoints) fragList.get(i);\n // add endpoint to every bucket it may intersect\n int y0 = (int) ((Math.min(e.v0.y, e.v1.y) - fragBounds.y) / bHeight);\n int y1 = MyMath.clamp(\n (int) ((Math.max(e.v0.y, e.v1.y) - fragBounds.y) / bHeight), 0,\n nBuckets - 1);\n int x0 = (int) ((Math.min(e.v0.x, e.v1.x) - fragBounds.x) / bWidth);\n int x1 = MyMath.clamp(\n (int) ((Math.max(e.v0.x, e.v1.x) - fragBounds.x) / bWidth), 0,\n nBuckets - 1);\n\n for (int y = y0; y <= y1; y++) {\n for (int x = x0; x <= x1; x++) {\n buckets[y * nBuckets + x].add(e);\n }\n }\n }\n }\n\n final double NEARZERO = .00001;\n\n for (int k = 0; k < buckets.length; k++) {\n DArray b = buckets[k];\n for (int i = 0; i < b.size(); i++) {\n Endpoints ei = (Endpoints) b.get(i);\n\n for (int j = i + 1; j < b.size(); j++) {\n Endpoints ej = (Endpoints) b.get(j);\n\n FPoint2 pt = MyMath.lineSegmentIntersection(ei.v0, ei.v1, ej.v0,\n ej.v1, null);\n if (pt == null)\n continue;\n String err = null;\n\n // make sure the intersection occurs at an endpoint of each\n double di = Math.min(pt.distance(ei.v0), pt.distance(ei.v1));\n double dj = Math.min(pt.distance(ej.v0), pt.distance(ej.v1));\n\n // in triangle grid, fragment endpoint can lie on other fragment.\n // To eliminate this possibility, intersection point must be\n // distinct from all four endpoints.\n\n if (Math.min(di, dj) > NEARZERO) {\n err = \"\";\n }\n if (err != null) {\n a.add(pt);\n // a.add(err);\n }\n }\n }\n }\n } while (false);\n return (FPoint2[]) a.toArray(FPoint2.class);\n }", "void buildRectangles(){\n background(255);\n for(int i=0;i<arr.length;i++){\n noStroke();\n Rect r=new Rect(40+i*80,400,75,-arr[i]*20,color1);\n createRectangle(r,color1);\n }\n }", "private void calculateAreas() {\n\n\t\t/*\n\t\t * Each section is a trapezoid, so that the area is given by:\n\t\t * \n\t\t * (thicknessAtMainSpar + thicknessAtSecondarySpar)*distanceBetweenSpars*0.5\n\t\t * \n\t\t */\n\t\tint nSections = this._thicknessAtMainSpar.size();\n\t\tfor(int i=0; i<nSections; i++)\n\t\t\tthis._prismoidsSectionsAreas.add(\n\t\t\t\t\tAmount.valueOf(\n\t\t\t\t\t\t\t(this._thicknessAtMainSpar.get(i).plus(this._thicknessAtSecondarySpar.get(i)))\n\t\t\t\t\t\t\t.times(this._distanceBetweenSpars.get(i)).times(0.5).getEstimatedValue(),\n\t\t\t\t\t\t\tSI.SQUARE_METRE\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t}", "private void analyzeForObstacles() {\n \t\n \t\n \tStack<Rect> bestFound = new Stack<Rect>();//This is a stack as the algorithm moves along x linearly\n \tboolean[][] blackWhiteGrid = getBlackWhiteGrid();\n \tint[] cache = new int[grid.length];\n \t\n \twhile (true) {\n\t\t\tboolean noneFound = true;\n\t\t\t\n\t\t\tfor (int i = 0; i<cache.length; i++)\n\t\t\t\tcache[i] = 0;\n\t\t\tfor (int llx = grid.length -1; llx >= 0; llx--) {\n\t\t\t\tupdate_cache(blackWhiteGrid,cache, llx);\n\t\t\t\tfor (int lly = 0; lly < grid.length; lly++) {\n\t\t\t\t\tRect bestOfRound = new Rect(llx,lly,llx,lly);\n\t\t\t\t\tint y = lly;\n\t\t\t\t\tint x_max = 9999;\n\t\t\t\t\tint x = llx;\n\t\t\t\t\twhile (y+1<grid.length && blackWhiteGrid[llx][y]) {\n\t\t\t\t\t\ty++;\n\t\t\t\t\t\tx = Math.min(llx+cache[y]-1, x_max);\n\t\t\t\t\t\tx_max = x;\n\t\t\t\t\t\tRect tryRect = new Rect(llx,lly-1,x,y);\n\t\t\t\t\t\tif (tryRect.area() > bestOfRound.area()) {\n\t\t\t\t\t\t\tbestOfRound = tryRect;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (bestOfRound.area() > 40) {\n\t\t\t\t\t\tif (noneFound) {\n\t\t\t\t\t\t\tbestFound.push(bestOfRound);\n\t\t\t\t\t\t\tnoneFound = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tRect lastRect = bestFound.peek();\n\t\t\t\t\t\t\tif (lastRect.area() < bestOfRound.area()) {\n\t\t\t\t\t\t\t\tbestFound.pop();\n\t\t\t\t\t\t\t\tbestFound.push(bestOfRound);\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\t\t\tif (noneFound)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tclearFoundRectangle(blackWhiteGrid, bestFound.peek());\n \t}\n \t\n \t//add found rectanlges\n \tobstacles.clear();\n \tobstacles.addAll(bestFound);\n \tSystem.out.println(\"Sweep done:\");\n \tfor (Rect r : bestFound){\n \t\tSystem.out.println(\"Rect: llx=\" + (r.llx-400) + \"\\tlly=\" + (r.lly-400) + \"\\turx=\" + (r.urx-400) + \"\\tury=\" + (r.ury-400));\n \t\tList<Point2D.Double> corners = new ArrayList<Point2D.Double>();\n \t\tcorners.add(new Point2D.Double((r.llx-400),(r.lly-400)));\n \t\tcorners.add(new Point2D.Double((r.llx-400),(r.ury-400)));\n \t\tcorners.add(new Point2D.Double((r.urx-400),(r.lly-400)));\n \t\tcorners.add(new Point2D.Double((r.urx-400),(r.ury-400)));\n \t\tobstaclesF.add(new Obstacle(corners));\n \t}\n \t\n \ttoExplore.clear();\n \tint i = 0;\n \tRandom rand = new Random();\n \twhile (toExplore.size() < 10 && i < 1000) {\n \t\tint x = rand.nextInt(grid.length);\n \t\tint y = rand.nextInt(grid.length);\n \t\tif (grid[x][y] == .5) {\n \t\t\ttoExplore.add(new Flag(\"blue\",x,y));\n \t\t}\n \t}\n }", "public boolean checkSubGrids(int[][] solutiongrid){ \n //Number of subgrids\n final int numgrids = solutiongrid.length;\n final int squareroot = (int)Math.sqrt(numgrids);\n \n for (int i = 0; i < solutiongrid.length; i += squareroot){ \n for (int j = 0; j < solutiongrid[i].length; j += squareroot){\n // creating N subgrids \n int[][] newArray = new int[squareroot][squareroot];\n int newRow = 0;\n for (int k = i; k < (i + squareroot); k++){\n int newColumn = 0;\n for (int l = j; l < (j + squareroot); l++){ \n newArray[newRow][newColumn] = solutiongrid[k][l];\n newColumn++; \n }\n newRow++;\n }\n if(!containsDuplicate(newArray))\n return true;\n }\n }\n \n return false;\n }", "private void checkEdges() {\n\n //Check for alive cells on right hand side\n for (int y = 0; y < height; y++) {\n if (getCell(this.width - 1, y).isAlive()) {\n grid = increaseWidthRight(grid);\n break;\n }\n }\n\n //Check for alive cells on left side\n for (int y = 0; y < height; y++) {\n if (getCell(0, y).isAlive()) {\n grid = increaseWidthLeft(grid);\n break;\n }\n }\n\n // Check for alive cells at bottom\n for (int x = 0; x < width; x++) {\n if (getCell(x, this.height - 1).isAlive()) {\n grid = increaseHeightBottom(grid);\n break;\n }\n }\n\n //Check for alive cells at top\n for (int x = 0; x < width; x++) {\n if (getCell(x, 0).isAlive()) {\n grid = increaseHeightTop(grid);\n break;\n }\n }\n\n }", "private void findGrid(int x, int y) {\n\tgx = (int) Math.floor(x / gs);\n\tgy = (int) Math.floor(y / gs);\n\n\tif (debug){\n\tSystem.out.print(\"Actual: (\" + x + \",\" + y + \")\");\n\tSystem.out.println(\" Grid square: (\" + gx + \",\" + gy + \")\");\n\t}\n }", "public abstract Regionlike getGridBounds();", "private void drawWalls(Graphics g) {\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tif(grid[i][j].getNorth()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine(j*widthBlock+padding+doorX, i*heightBlock+padding, j*widthBlock+padding+doorWidth, i*heightBlock+padding);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, i*heightBlock+padding, j*widthBlock+padding+widthBlock, i*heightBlock+padding);\n\t\t\t\t}\n\t\t\t\tif(grid[i][j].getEast()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine((j+1)*widthBlock+padding, i*heightBlock+padding+doorX, (j+1)*widthBlock+padding, i*heightBlock+padding+doorWidth);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine((j+1)*widthBlock+padding, i*heightBlock+padding, (j+1)*widthBlock+padding, (i+1)*heightBlock+padding);\n\t\t\t\t}\n\t\t\t\tif(grid[i][j].getSouth()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine(j*widthBlock+padding+doorX, (i+1)*heightBlock+padding, j*widthBlock+padding+doorWidth, (i+1)*heightBlock+padding);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, (i+1)*heightBlock+padding, (j+1)*widthBlock+padding, (i+1)*heightBlock+padding);\n\t\t\t\t}\n\t\t\t\tif(grid[i][j].getWest()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, i*heightBlock+padding+doorX, j*widthBlock+padding, i*heightBlock+padding+doorWidth);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, i*heightBlock+padding, j*widthBlock+padding, (i+1)*heightBlock+padding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void drawBackgroundGrid(Canvas canvas) {\n Resources resources = getResources();\n Drawable backgroundCell = resources.getDrawable(R.drawable.cell_rectangle);\n // Outputting the game grid\n for (int xx = 0; xx < game.numSquaresX; xx++) {\n for (int yy = 0; yy < game.numSquaresY; yy++) {\n int sX = startingX + gridWidth + (cellSize + gridWidth) * xx;\n int eX = sX + cellSize;\n int sY = startingY + gridWidth + (cellSize + gridWidth) * yy;\n int eY = sY + cellSize;\n\n drawDrawable(canvas, backgroundCell, sX, sY, eX, eY);\n }\n }\n }", "public void initGrid()\n {\n\tfor (int y=0; y<cases.length; y++)\n \t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tcases[y][x] = new Case();\n }\n\t}\n\t\n\tint pos_y_case1 = customRandom(4);\n\tint pos_x_case1 = customRandom(4);\n\t\n\tint pos_y_case2 = customRandom(4);\n\tint pos_x_case2 = customRandom(4);\n\t\t\n\twhile ((pos_y_case1 == pos_y_case2) && (pos_x_case1 == pos_x_case2))\n\t{\n pos_y_case2 = customRandom(4);\n pos_x_case2 = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y_case1][pos_x_case1] = new Case(true);\n\tcases[pos_y_case2][pos_x_case2] = new Case(true);\n }", "@Test\r\n\tpublic void testCheckRows() {\n\t\tGrid g = new Grid();\r\n\t\t// full bottom row\r\n\t\tfor (int col = 0; col < Grid.WIDTH; col++) {\r\n\t\t\tg.set(Grid.HEIGHT - 1, col, Color.GREEN);\r\n\t\t}\r\n\t\t// add two squares above the bottom row\r\n\t\tg.set(Grid.HEIGHT - 2, 3, Color.RED);\r\n\t\tg.set(Grid.HEIGHT - 3, 3, Color.RED);\r\n\t\t// remove the full row\r\n\t\tg.checkRows();\r\n\t\t// check that the grid has been updated correctly\r\n\t\tfor (int row = 0; row < Grid.HEIGHT; row++) {\r\n\t\t\tfor (int col = 0; col < Grid.WIDTH; col++) {\r\n\t\t\t\t// check the square at (row,col)\r\n\t\t\t\t// must have: (18,3) and (19,3) set\r\n\t\t\t\t// and all of the others not set\r\n\t\t\t\tif ((row == 18 || row == 19) && col == 3) {\r\n\t\t\t\t\tassertTrue(g.isSet(row, col));\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tassertFalse(g.isSet(row, col));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "boolean hasGrid();", "static public int getAtLeastKVisitors(int[][] rectangles, int k) {\n\n if(rectangles.length==0)\n return 0;\n if(k > rectangles.length)\n return 0;\n\n TreeSet<Rectangle> avlTree = new TreeSet<>();//To store the rectangles ordered\n TreeSet<Integer> Ys = new TreeSet<>();\n\n for(int[] coordinates: rectangles) {\n //x2 = x2 + 1 , y2 = y2 +1 for the inclusive constraints\n Rectangle r = new Rectangle(coordinates[0], coordinates[1], coordinates[2]+1, coordinates[3]+1);\n avlTree.add(r);\n if(!Ys.contains(r.getY1()))\n Ys.add(r.getY1());\n if(!Ys.contains(r.getY2()))\n Ys.add(r.getY2());\n }\n\n int ans = 0;\n Iterator<Integer> yIterator = Ys.iterator();\n int previousY = yIterator.next();\n\n //Traverse by slices of Y's\n while(yIterator.hasNext()) {\n\n int currentY = yIterator.next();\n List<int[]> segments = new ArrayList<>();\n Iterator<Rectangle> treeIterator = avlTree.iterator();\n\n //Look for the rectangles that fall in the slice and create a segment's list\n while(treeIterator.hasNext()) {\n Rectangle r = treeIterator.next();\n //We stop traversing the tree once the rectangles are completely above the slice\n if(r.getY1()>currentY)\n break;\n if(r.getY1()<= previousY && r.getY2()>=currentY) {\n int[] segmentL = new int[2]; int[] segmentR = new int[2];\n segmentL[0] = r.getX1(); segmentL[1] = Type.OPEN.getValue();\n segmentR[0] = r.getX2(); segmentR[1] = Type.CLOSED.getValue();\n segments.add(segmentL); segments.add(segmentR);\n }\n //We remove the rectangles that are left behind by the slice\n if(r.getY2() < previousY)\n treeIterator.remove();\n }\n\n //Sort the segments to analyze them\n Collections.sort(segments, (a, b) -> Integer.compare(a[0], b[0]));\n Iterator<int[]> it = segments.iterator();\n int[] segmentEnd, segmentStart = it.next();\n int nRectangles = Type.OPEN.getValue(); //The first interval will always be opening\n\n while(it.hasNext()) {\n segmentEnd = it.next();\n if(nRectangles >=k) {\n ans+= (currentY - previousY) * (segmentEnd[0] - segmentStart[0]);\n }\n segmentStart = segmentEnd;\n nRectangles += segmentEnd[1];\n }\n\n previousY = currentY;\n }\n\n return ans;\n }", "public void preSetup(){\n // Any of your pre setup before the loop starts should go here\n \n // border\n blocks[0] = new Rectangle(0, 0, 25, 600);\n blocks[1] = new Rectangle(775, 0, 25, 600);\n blocks[2] = new Rectangle(0, 0, 800, 25);\n blocks[3] = new Rectangle(0, 575, 800, 25);\n \n // starting room\n // right wall\n blocks[5] = new Rectangle(WIDTH / 2 + 75, 400, 25, 150);\n // left wall\n blocks[10] = new Rectangle(WIDTH / 2 - 100, 400, 25, 150);\n // centre\n blocks[7] = new Rectangle(WIDTH / 2 - 10, 450, 20, 150);\n // top wall\n blocks[11] = new Rectangle(WIDTH / 2 - 50, 400, 100, 25);\n \n \n // remember to copy to the other side\n // cover (west)\n blocks[4] = new Rectangle(200, 200, 25, 75);\n blocks[6] = new Rectangle(200 , 400, 25, 75);\n blocks[8] = new Rectangle(200, 310, 25, 50);\n blocks[9] = new Rectangle(200, 0, 25, 170);\n blocks[17] = new Rectangle(200 - 50, 145, 70, 25);\n blocks[23] = new Rectangle(0, 60, 100, 24);\n blocks[24] = new Rectangle(70, 500, 24, 100);\n blocks[25] = new Rectangle(70, 500, 80, 24);\n blocks[26] = new Rectangle();\n \n \n // cover (east)\n blocks[15] = new Rectangle(WIDTH - 225, 200, 25, 75);\n blocks[14] = new Rectangle(WIDTH - 225 , 400, 25, 75);\n blocks[13] = new Rectangle(WIDTH - 225, 310, 25, 50);\n blocks[12] = new Rectangle(WIDTH - 225, 0, 25, 170);\n blocks[16] = new Rectangle(WIDTH - 225, 145, 70, 25);\n blocks[27] = new Rectangle(WIDTH - 100, 60, 100, 24);\n blocks[28] = new Rectangle(WIDTH - 94, 500, 24, 100);\n blocks[29] = new Rectangle(WIDTH - 94 - (80-24), 500, 80, 24);\n blocks[30] = new Rectangle();\n \n // cover (middle)\n // vertical\n blocks[18] = new Rectangle(WIDTH/ 2 - 10, 150, 20, 125);\n blocks[22] = new Rectangle(WIDTH/ 2 - 10, 300, 20, 50);\n // horizontal\n blocks[19] = new Rectangle(WIDTH/ 2 - 100, 175, 200, 20);\n blocks[20] = new Rectangle(WIDTH/ 2 - 100, 225, 200, 20);\n blocks[21] = new Rectangle(WIDTH/ 2 - 100, 350, 200, 20);\n \n \n // extras\n blocks[31] = new Rectangle();\n blocks[32] = new Rectangle();\n \n // flag on the level\n flag[0] = new Rectangle((int)(Math.random()*((WIDTH - 40) - 40 + 1)) + 40, (int)(Math.random()*((HEIGHT - 40) - 40 + 1)) + 40, 35, 26);\n flagPole[0] = new Rectangle(flag[0].x, flag[0].y, 4, 45);\n flagLogo[0] = new Rectangle(flag[0].x + 15, flag[0].y + (13/2), 20, 15);\n \n }", "protected void calculatePathfindingGrid(Tile[] tiles) {\n \n if(tiles == null) {\n return;\n }\n \n /**\n * Problem:\n * Because the tile size used by the path finding engine will most likely be\n * different from that of the visual effect size, we have to\n * look at all the visual tiles and judge whether they are blocking of\n * particular kinds of unit.\n * \n * Algorithm:\n * For land, air and sea take a look at the number of blocking/non-blocking\n * tiles there are and if there is over 50% either way then that will be the\n * PathTiles result.\n */\n \n // First get the size of the map in PathTile(s)\n int rows = getActualHeightInTiles();\n int cols = getActualWidthInTiles();\n \n // Calculate the number of tiles to a PathTile\n int tilesPerActualTilesX = getActualTileWidth() / getTileWidth();\n int tilesPerActualTilesY = getActualTileHeight() / getTileHeight();\n int tileCount = tilesPerActualTilesX * tilesPerActualTilesY;\n \n int tileCols = getWidthInTiles();\n \n // Create an array\n mPathTiles = new PathTile[ rows * cols ];\n \n // Iterate through these tiles\n for(int x = 0; x < cols ; x++) {\n for(int y = 0; y < rows; y++) {\n \n // Setup some variables\n int blockSea, blockAir, blockLand;\n blockAir = blockLand = blockSea = 0;\n \n // Figure out the percentage of each block\n for(int tx = 0; tx < tilesPerActualTilesX; tx++) {\n for(int ty = 0; ty < tilesPerActualTilesY; ty++) {\n \n int tileX = (x * tilesPerActualTilesX) + tx;\n int tileY = (y * tilesPerActualTilesY) + ty;\n \n Tile thisTile = tiles[ (tileY * tileCols) + tileX ];\n \n if(thisTile.blockAir()) {\n blockAir++;\n }\n \n if(thisTile.blockLand()) {\n blockLand++;\n }\n \n if(thisTile.blockSea()) {\n blockSea++;\n }\n \n }\n }\n \n // Calculate percentage\n float a,b,c;\n a = (float)blockAir / (float)tileCount;\n b = (float)blockLand / (float)tileCount;\n c = (float)blockSea / (float)tileCount;\n \n // Set the new tile\n mPathTiles[ (y * cols) + x ] = new PathTile( (a >= .5f), (b >= .5f), (c >= .5f) );\n \n // System.out.println(\"Grid \" + ((y * cols) + x) + \" (\" + x + \", \" + y + \") Air: \" + a + \" Land: \" + b + \" Sea: \" + c);\n \n }\n }\n \n }", "@Override\n\tpublic void draw(RoomBlocks grid) {\n\t\trenderer.setProjectionMatrix(CameraHolder.instance().getOrtho().combined);\n//\t\tCont tot = new Cont();\n\t\tColor color = new Color();\n\n\t\t\n\t\tDimensions dim = grid.getDimensions().toRoomWorldDimmensions();\n\t\tgrid.forEach(bl -> {\n//\t\t\t\n\t\t\tint x = (GeneratorConstants.ROOM_BLOCK_SIZE * bl.getX()) + GeneratorConstants.ROOM_BLOCK_SIZE;\n\t\t\t\n\t\t\tx = (dim.getW() - x) + dim.getX();\n\t\t\t\n\t\t\tint pseudWorldRoomY = grid.getDimensions().getY() * Configuration.getLevelGridElementContentSize();\n\t\t\tint y = (bl.getY() + pseudWorldRoomY) * (GeneratorConstants.ROOM_BLOCK_SIZE);\n\t\t\t\n\t\t\tShapeType shType = ShapeType.Filled;\n\t\t\tboolean render = false;\n\t\t\t\n\t\t\tif(bl.isDoor()) {\n\t\t\t\trender = true;\n\t\t\t\tcolor.set(0, 0, 0, 1);\n\t\t\t} else if(bl.isWall()) {\n//\t\t\t\trender = true;\n//\t\t\t\tcolor.set(1, 1, 1, 1);\n//\t\t\t\tshType = ShapeType.Line;\n\t\t\t} else if(bl.getMetaInfo() != null) {//TODO\n\t\t\t\t\n\t\t\t\tif(bl.getMetaInfo().getType().equals(\".\")) {\n\t\t\t\t\trender = true;\n\t\t\t\t\tcolor.set(0, 0, 0, 1);\n\t\t\t\t} else if(!bl.getMetaInfo().getType().equals(\"x\")) {\n\t\t\t\t\t\n\t\t\t\t\tBrush brush = Configuration.brushesPerTile.get(bl.getMetaInfo().getType().charAt(0));\n\t\t\t\t\tif(brush != null) {// && bl.getOwner() != null\n\t\t\t\t\t\t\n//\t\t\t\t\t\tif(bl.getOwner() != null) {\n//\t\t\t\t\t\t\tSystem.out.println(\"owner: \" + brush.tile);\n//\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\trender = true;\n\t\t\t\t\t\tcolor.set(brush.color[0], brush.color[1], brush.color[2], 1);\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(render) {\n\t\t\t\t\n\t\t\t\tint size = GeneratorConstants.ROOM_BLOCK_SIZE;\n\t\t\t\t\n\t\t\t\trenderer.begin(shType);\n\t\t\t\trenderer.setColor(color);\n\t\t\t\trenderer.rect(x, y, size, size);\n\t\t\t\trenderer.end();\n\t\t\t}\n\t\t\t\n//\t\t\tif(bl.getOwner() != null ) {\n//\t\t\t\tfinal int fx = x;\n//\t\t\t\tfinal int fy = y;\n//\t\t\t\t\n//\t\t\t\tbl.getOwner().forEachItems(itm -> {//desenhando os items\n//\t\t\t\t\trenderer.begin(ShapeType.Filled);\n//\t\t\t\t\trenderer.setColor(itm.color[0], itm.color[1], itm.color[2], 1);\n//\t\t\t\t\trenderer.rect(fx + itm.dx, fy + itm.dy, itm.width, itm.height);\n//\t\t\t\t\trenderer.end();\t\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t}\t\t\t\n\t\t});\n\t}", "public boolean isTotallyOnGrid() {\n\t\t\tfor(int i=0; i<4; i++) {\n\t\t\t\tif(position.y + i >= 0)\n\t\t\t\t\treturn true; //everything from here down is on grid\n\t\t\t\t// this row is above grid so look for non-empty squares\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tif(squares[i][j])\n\t\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\tSystem.err.println(\"TetrisPiece.isTotallyOnGrid internal error\");\n\t\t\treturn false;\n\t\t}", "void createRectangles();", "boolean isSafe(int grid[][], int row, int col, int num)\n{\n /* Check if 'num' is not already placed in current row,\n current column and current 3x3 box */\n return !UsedInRow(grid, row, num) &&\n !UsedInCol(grid, col, num) &&\n !UsedInBox(grid, row - row%3 , col - col%3, num);\n}", "public static void main ( String[] args )\n {\n int[][] grid = new int[][] {{9, 0, 2, 5, 0, 9, 0, 5, 8, 5},\n {4, 8, 1, 7, 0, 5, 3, 6, 2, 0},\n {7, 7, 5, 6, 0, 5, 6, 6, 4, 0},\n {5, 1, 6, 2, 2, 2, 0, 9, 1, 9},\n {0, 7, 8, 9, 0, 7, 4, 3, 8, 6},\n {1, 0, 5, 6, 3, 2, 9, 3, 5, 3},\n {5, 3, 1, 4, 9, 9, 1, 3, 4, 8},\n {5, 6, 9, 9, 7, 8, 7, 3, 9, 3},\n {1, 0, 4, 8, 3, 1, 0, 2, 1, 5},\n {1, 7, 3, 6, 3, 7, 8, 3, 3, 6}};\n int[] rowproduct= new int[10]; //{0,0,....,0}\n int[] colproduct= new int[10];\n for( int i = 0; i < 10; i++)\n {\n rowproduct[i] = 1;\n colproduct[i] = 1;\n }\n int rhp=0;\n int chp=0;\n int rp=0;\n int cp=0;\n int intersection = 0;\n for (int row=0; row < grid.length; row++)\n {\n for (int col=0; col < grid[0].length; col++)\n {\n if (grid[row][col]!=0) // find product\n {\n rowproduct[row] *= grid[row][col];\n colproduct[col] *= grid[row][col];\n }//end if \n }\n }\n for(int i = 0 ;i < 10; i ++)\n {\n if(rowproduct[i]>rhp) //[rows] or [col] ?? row cuz we only compare when it has finished multiplying\n {\n rp=i;\n rhp = rowproduct[i];\n }\n if(colproduct[i]>chp)\n {\n cp=i;\n chp =colproduct[i];\n }\n }\n intersection = grid[rp][cp];\n System.out.println(\"--------------\");\n System.out.println(\"Number replaced = \"+ intersection + \"(Row \" + (rp+1)+\", Col \"+(cp+1) +\")\" );\n System.out.println(\"--------------\");\n for (int rows=0; rows < grid.length; rows++)\n {\n for (int col=0; col < grid[0].length; col++)\n {\n if (grid[rows][col]==0) // locate all zeros\n {\n grid[rows][col]=intersection;\n }\n\n if (grid[rows][col]==intersection) // locate all num intersections \n {\n grid[rows][col]=0;\n }\n System.out.print(grid[rows][col] + \" \");\n }\n System.out.print(\"\\n\");\n }\n }", "public void wallsAndGates(int[][] rooms) {\n if (rooms.length == 0 || rooms[0].length == 0) return;\n Queue<int[]> queue = new LinkedList<>();\n for (int i = 0; i < rooms.length; i++) {\n for (int j = 0; j < rooms[0].length; j++) {\n if (rooms[i][j] == 0) queue.add(new int[]{i, j});\n }\n }\n while (!queue.isEmpty()) {\n int[] top = queue.remove();\n int row = top[0], col = top[1];\n if (row > 0 && rooms[row - 1][col] == Integer.MAX_VALUE) {\n rooms[row - 1][col] = rooms[row][col] + 1;\n queue.add(new int[]{row - 1, col});\n }\n if (row < rooms.length - 1 && rooms[row + 1][col] == Integer.MAX_VALUE) {\n rooms[row + 1][col] = rooms[row][col] + 1;\n queue.add(new int[]{row + 1, col});\n }\n if (col > 0 && rooms[row][col - 1] == Integer.MAX_VALUE) {\n rooms[row][col - 1] = rooms[row][col] + 1;\n queue.add(new int[]{row, col - 1});\n }\n if (col < rooms[0].length - 1 && rooms[row][col + 1] == Integer.MAX_VALUE) {\n rooms[row][col + 1] = rooms[row][col] + 1;\n queue.add(new int[]{row, col + 1});\n }\n }\n }", "protected void boxOfMortys() {\n Triple pos1, pos2, pos3, pos4, pos5, pos6, pos7, pos8, col1, col2, col3, col4;\n\n pos1 = new Triple(-10, -10, 0);\n pos2 = new Triple(110, -10, 0);\n pos3 = new Triple(110, -10, 120);\n pos4 = new Triple(-10, -10, 120);\n pos5 = new Triple(-10, 110, 0);\n pos6 = new Triple(110, 110, 0);\n pos7 = new Triple(110, 110, 120);\n pos8 = new Triple(-10, 110, 120);\n\n // Front Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 0, 0),\n new Vertex(pos2, 1, 0),\n new Vertex(pos3, 1, 1),\n 22 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos3, 1, 1),\n new Vertex(pos4, 0, 1),\n new Vertex(pos1, 0, 0),\n 22 ) );\n\n // Left Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 0, 0),\n new Vertex(pos5, 1, 0),\n new Vertex(pos8, 1, 1),\n 22 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos8, 1, 1),\n new Vertex(pos4, 0, 1),\n new Vertex(pos1, 0, 0),\n 22 ) );\n\n // Right Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos2, 0, 0),\n new Vertex(pos6, 1, 0),\n new Vertex(pos7, 1, 1),\n 22 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, 1, 1),\n new Vertex(pos3, 0, 1),\n new Vertex(pos2, 0, 0),\n 22 ) );\n\n // Back Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos5, 0, 0),\n new Vertex(pos6, 1, 0),\n new Vertex(pos7, 1, 1),\n 22 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, 1, 1),\n new Vertex(pos8, 0, 1),\n new Vertex(pos5, 0, 0),\n 22 ) );\n\n // Top Triangles\n// frozenSoups.addTri( new Triangle(new Vertex(pos4, 0, 0),\n// new Vertex(pos3, 0, 1),\n// new Vertex(pos7, 1, 1),\n// 20 ) );\n\n// frozenSoups.addTri( new Triangle(new Vertex(pos7, 0, 0),\n// new Vertex(pos8, 1, 0),\n// new Vertex(pos4, 1, 1),\n// 20 ) );\n }", "public static boolean isLegal(int[][] board) {\nif (!isRectangleLegal(board, 0, 2, 0, 2, \"Block 1\")) return false;\nif (!isRectangleLegal(board, 3, 5, 0, 2, \"Block 2\")) return false;\nif (!isRectangleLegal(board, 6, 8, 0, 2, \"Block 3\")) return false;\nif (!isRectangleLegal(board, 0, 2, 3, 5, \"Block 4\")) return false;\nif (!isRectangleLegal(board, 3, 5, 3, 5, \"Block 5\")) return false;\nif (!isRectangleLegal(board, 6, 8, 3, 5, \"Block 6\")) return false;\nif (!isRectangleLegal(board, 0, 2, 6, 8, \"Block 7\")) return false;\nif (!isRectangleLegal(board, 3, 5, 6, 8, \"Block 8\")) return false;\nif (!isRectangleLegal(board, 6, 8, 6, 8, \"Block 9\")) return false;\n \n// check the nine columns\nif (!isRectangleLegal(board, 0, 0, 0, 8, \"Column 0\")) return false;\nif (!isRectangleLegal(board, 1, 1, 0, 8, \"Column 1\")) return false;\nif (!isRectangleLegal(board, 2, 2, 0, 8, \"Column 2\")) return false;\nif (!isRectangleLegal(board, 3, 3, 0, 8, \"Column 3\")) return false;\nif (!isRectangleLegal(board, 4, 4, 0, 8, \"Column 4\")) return false;\nif (!isRectangleLegal(board, 5, 5, 0, 8, \"Column 5\")) return false;\nif (!isRectangleLegal(board, 6, 6, 0, 8, \"Column 6\")) return false;\nif (!isRectangleLegal(board, 7, 7, 0, 8, \"Column 7\")) return false;\nif (!isRectangleLegal(board, 8, 8, 0, 8, \"Column 8\")) return false;\n \n// check the nine rows\nif (!isRectangleLegal(board, 0, 8, 0, 0, \"Row 0\")) return false;\nif (!isRectangleLegal(board, 0, 8, 1, 1, \"Row 1\")) return false;\nif (!isRectangleLegal(board, 0, 8, 2, 2, \"Row 2\")) return false;\nif (!isRectangleLegal(board, 0, 8, 3, 3, \"Row 3\")) return false;\nif (!isRectangleLegal(board, 0, 8, 4, 4, \"Row 4\")) return false;\nif (!isRectangleLegal(board, 0, 8, 5, 5, \"Row 5\")) return false;\nif (!isRectangleLegal(board, 0, 8, 6, 6, \"Row 6\")) return false;\nif (!isRectangleLegal(board, 0, 8, 7, 7, \"Row 7\")) return false;\nif (!isRectangleLegal(board, 0, 8, 8, 8, \"Row 8\")) return false;\nreturn true;\n }", "static int surfaceArea(int[][] grid) {\n int sum = 0;\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid[i].length; j++) {\n if (grid[i][j] != 0) {\n sum += ((grid[i][j] * 4) + 2);\n }\n if (i - 1 >= 0) sum -= Math.min(grid[i - 1][j], grid[i][j]) * 2;\n if (j - 1 >= 0) sum -= Math.min(grid[i][j - 1], grid[i][j]) * 2;\n }\n }\n return sum;\n }", "static int numberAmazonTreasureTrucks(int rows, int column,\n\t\t\t\t\t\t\t\t List<List<Integer> > grid)\n {\n // WRITE YOUR CODE HERE\n int count = 0;\n for(int i=0;i<rows;i++) {\n for(int j=0;j<column;j++) {\n if(grid.get(i).get(j) == 1) {\n count++;\n markNeighbours(grid, i, j, rows, column);\n }\n }\n }\n return count;\n }", "private List<Box> initBoxes(List<Integer> deadBoxes){\n List<Box> boxes = new ArrayList<>();\n\n for(int x=0;x<16;x++){\n boxes.add(new Box(x + 1, grid[x]));\n }\n\n\n /**\n * 1 2 3 4\n * 5 6 7 8\n * 9 10 11 12\n * 13 14 15 16\n */\n\n //first row\n addNeighbours(1, new int[]{2,5,6}, boxes);\n addNeighbours(2,new int[]{1,3,5,6,7}, boxes);\n addNeighbours(3,new int[]{2,4,6,7,8}, boxes);\n addNeighbours(4,new int[]{3,7,8}, boxes);\n addNeighbours(5,new int[]{1,2,6,9,10}, boxes);\n addNeighbours(6,new int[]{1,2,3,5,7,9,10,11}, boxes);\n addNeighbours(7,new int[]{2,3,4,6,8,10,11,12}, boxes);\n addNeighbours(8,new int[]{3,4,7,11,12}, boxes);\n addNeighbours(9,new int[]{5,6,10,13,14}, boxes);\n addNeighbours(10,new int[]{5,6,7,9,11,13,14,15}, boxes);\n addNeighbours(11,new int[]{6,7,8,10,12,14,15,16}, boxes);\n addNeighbours(12,new int[]{7,8,11,15,16}, boxes);\n addNeighbours(13,new int[]{9,10,14}, boxes);\n addNeighbours(14,new int[]{9,10,11,13,15}, boxes);\n addNeighbours(15,new int[]{10,11,12,14,16}, boxes);\n addNeighbours(16,new int[]{11,12,15}, boxes);\n\n return removeBoxes(boxes,deadBoxes);\n }", "private void drawGrid() {\r\n\t\t// loops through the 2d array of the grid.\r\n\t\tfor (int i = 0; i < TetrisGame.PANEL_WIDTH; i++) {\r\n\t\t\tfor (int j = 0; j < TetrisGame.PANEL_HEIGHT; j++) {\r\n\t\t\t\t// checks to see if the piece isn't empty, and draws the piece at it's position.\r\n\t\t\t\tif (game.grid[i][j] != Piece.PieceShape.E) {\r\n\t\t\t\t\tdrawSquare(i, j, Piece.getColor(game.grid[i][j]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void addPieces() {\n gridPane.getChildren().clear();\n Map<Piece, Position> pieces = controller.getAllActivePiecesPositions();\n /* Add the tiles */\n for (int row = 0; row < 8; row++) {\n for (int col = 0; col < 8; col++) {\n Tile tile = new TileView(new Position(row, col));\n gridPane.add(tile.getRootNode(),\n 1 + tile.getPosition().getCol(),\n 1 + tile.getPosition().getRow());\n GridPane.setHgrow(tile.getRootNode(), Priority.ALWAYS);\n GridPane.setVgrow(tile.getRootNode(), Priority.ALWAYS);\n getTiles()[row][col] = tile;\n tile.getRootNode().setOnMouseClicked(\n tileListener(tile));\n tile.clear();\n tile.setSymbol(\"\");\n }\n }\n /* Add the pieces */\n for (Piece p : pieces.keySet()) {\n Position placeAt = pieces.get(p);\n getTileAt(placeAt).setSymbol(p.getType().getSymbol(p.getSide()));\n }\n /* Add the coordinates around the perimeter */\n for (int i = 1; i <= 8; i++) {\n Text coord1 = new Text((char) (64 + i) + \"\");\n coord1.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord1.setFill(Color.WHITE);\n GridPane.setHalignment(coord1, HPos.CENTER);\n gridPane.add(coord1, i, 0);\n\n Text coord2 = new Text((char) (64 + i) + \"\");\n coord2.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord2.setFill(Color.WHITE);\n GridPane.setHalignment(coord2, HPos.CENTER);\n gridPane.add(coord2, i, 9);\n\n Text coord3 = new Text(\" \" + (9 - i) + \" \");\n coord3.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord3.setFill(Color.WHITE);\n GridPane.setHalignment(coord3, HPos.CENTER);\n gridPane.add(coord3, 0, i);\n\n Text coord4 = new Text(\" \" + (9 - i) + \" \");\n coord4.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord4.setFill(Color.WHITE);\n GridPane.setHalignment(coord4, HPos.CENTER);\n gridPane.add(coord4, 9, i);\n }\n }", "public void wallsAndGates(int[][] rooms) {\n if (rooms == null || rooms.length == 0 || rooms[0] == null || rooms[0].length == 0)\n return;\n\n Queue<int[]> queue = new LinkedList<>();\n\n for (int i = 0; i < rooms.length; i++) {\n for (int j = 0; j < rooms[0].length; j++) {\n if (rooms[i][j] == 0)\n queue.add(new int[]{i,j});\n }\n }\n\n while (!queue.isEmpty()) {\n int[] top = queue.remove();\n int row = top[0];\n int col = top[1];\n if (row > 0 && rooms[row - 1][col] == Integer.MAX_VALUE) {\n rooms[row - 1][col] = rooms[row][col] + 1;\n queue.add(new int[]{row - 1, col});\n }\n if (row < rooms.length - 1 && rooms[row + 1][col] == Integer.MAX_VALUE) {\n rooms[row+1][col] = rooms[row][col] + 1;\n queue.add(new int[]{row + 1, col});\n }\n if (col > 0 && rooms[row][col - 1] == Integer.MAX_VALUE){\n rooms[row][col -1] = rooms[row][col] + 1;\n queue.add(new int[]{row, col - 1});\n }\n if (col < rooms[0].length - 1 && rooms[row][col + 1] == Integer.MAX_VALUE) {\n rooms[row][col +1] = rooms[row][col] + 1;\n queue.add(new int[]{row, col + 1});\n }\n }\n\n }", "void addRects() {\n ArrayList<Rect> current_path_rects = new ArrayList<>();\n for (int i = 0; i < path_points.get(paths.size()-1).size()-1; i ++) {\n int x1 = path_points.get(paths.size()-1).get(i).get(0);\n int y1 = path_points.get(paths.size()-1).get(i).get(1);\n int x2 = path_points.get(paths.size()-1).get(i+1).get(0);\n int y2 = path_points.get(paths.size()-1).get(i+1).get(1);\n Rect rect = new Rect();\n // Find correct x/y coords to set up for rect\n if (x1 <= x2) {\n if (y1 > y2) {\n int temp_y1 = y1;\n y1 = y2;\n y2 = temp_y1;\n }\n }\n else {\n int temp_x1 = x1;\n x1 = x2;\n x2 = temp_x1;\n if (y1 > y2) {\n int temp_y1 = y1;\n y1 = y2;\n y2 = temp_y1;\n }\n }\n // If rectangle is too small, collision will be hard\n // Make small rectangle into bigger rectangle\n ArrayList<Integer> adjusted_coords = adjustCoords(x1, y1, x2, y2);\n rect.set(adjusted_coords.get(0), adjusted_coords.get(1), adjusted_coords.get(2), adjusted_coords.get(3));\n current_path_rects.add(rect);\n }\n paths_rects.add(current_path_rects);\n }", "public void drawGrid()\n {\n noStroke();\n for(int i = 0; i < xCells; i++)\n {\n for(int j = 0; j < yCells; j++)\n {\n if(pattern[i][j])\n fill(0);\n else\n fill(255);\n rect(firstCellPosition[0]+i*cellSize,firstCellPosition[1]+j*cellSize,cellSize-1,cellSize-1);\n }\n }\n }", "@Override\n public void evaluate(SudokuGrid grid) {\n for (int l = 0; l < 3; l++) {//subgrid row index\n for (int m = 0; m < 3; m++) { // subgrid column index\n Set<Integer> fixed = new HashSet<Integer>();\n populateFixed(grid, l, m, fixed);\n updateFlags(grid, l, m, fixed);\n //System.out.println(\"Checking for subgrid:\"+ System.currentTimeMillis());\n findUniqueInSubgrid(grid, l, m);\n //System.out.println(\"Cheecked in subgrid: \"+System.currentTimeMillis());\n checkForFinal(grid, l, m, fixed);\n }\n }\n\n }", "public void makeWindows()\r\n {\r\n int spacingX = random.nextInt( 3 ) + 3;\r\n int spacingY = random.nextInt( 5 ) + 3;\r\n int windowsX = random.nextInt( 3 ) + 4;\r\n int windowsY = random.nextInt( 3 ) + 5;\r\n int sizeX = ( building.getWidth() - spacingX * ( windowsX + 1 ) ) / windowsX;\r\n int sizeY = ( building.getHeight() - spacingY * ( windowsY + 1 ) ) / windowsY;\r\n \r\n \r\n for( int i = 1; i <= windowsX; i++ )\r\n {\r\n for( int k = 1; k <= windowsY; k++ )\r\n {\r\n \r\n Rectangle r = new Rectangle( building.getXLocation() + ( spacingX / 2 + spacingX * i ) + sizeX * ( i - 1 ), \r\n building.getYLocation() + ( spacingY / 2 + spacingY * k ) + sizeY * ( k - 1 ) );\r\n r.setSize( sizeX, sizeY );\r\n r.setColor( new Color( 254, 254, 34 ) );\r\n add( r );\r\n }\r\n }\r\n }", "private void initializeGrid() {\r\n if (this.rowCount > 0 && this.columnCount > 0) {\r\n this.cellViews = new Rectangle[this.rowCount][this.columnCount];\r\n for (int row = 0; row < this.rowCount; row++) {\r\n for (int column = 0; column < this.columnCount; column++) {\r\n Rectangle rectangle = new Rectangle();\r\n rectangle.setX((double)column * CELL_WIDTH);\r\n rectangle.setY((double)row * CELL_WIDTH);\r\n rectangle.setWidth(CELL_WIDTH);\r\n rectangle.setHeight(CELL_WIDTH);\r\n this.cellViews[row][column] = rectangle;\r\n this.getChildren().add(rectangle);\r\n }\r\n }\r\n }\r\n }", "static void drawCrosses() { // draws a cross at each cell centre\n\t\tif (currentStage[currentSlice-1]>1)\n\t\t{\n\t\t\tfloat xc,yc;\n\t\t\t//GeneralPath path = new GeneralPath();\n\n\t\t\tfor (int i=0;i<pop.N;i++)\n\t\t\t{\n\t\t\t\txc = (float) ( (Balloon)(pop.BallList.get(i)) ).x0;\n\t\t\t\tyc = (float) ( (Balloon)(pop.BallList.get(i)) ).y0;\n\t\t\t\tfloat arm = 5;\n\n\t\t\t\t// label cell position\n\t\t\t\tjava.awt.geom.GeneralPath Nshape = new GeneralPath();\n\t\t\t\tNshape.moveTo(xc-arm, yc);\n\t\t\t\tNshape.lineTo(xc+arm, yc);\n\t\t\t\tNshape.moveTo(xc, yc-arm);\n\t\t\t\tNshape.lineTo(xc, yc+arm);\n\n\t\t\t\tRoi XROI = new ShapeRoi(Nshape);\n\t\t\t\tOL.add(XROI);\n\t\t\t}\n\t\t}\n\t}", "@Test \n\tpublic void testTargetsIntoRoom()\n\t{\n\t\t// One room is exactly 2 away\n\t\tboard.calcTargets(5, 24, 2);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\tassertEquals(4, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(3, 24)));\n\t\tassertTrue(targets.contains(board.getCellAt(6, 23)));\n\t\tassertTrue(targets.contains(board.getCellAt(5, 22)));\n\t\tassertTrue(targets.contains(board.getCellAt(4, 23)));\n\t}", "public boolean fillGrid(int[][] grid) {\n Integer[] intArray = {1, 2, 3, 4, 5, 6, 7, 8, 9};\n\n //Find unfilled cell and fill it.\n for (int i = 0; i < 81; i++) {\n int row = i / 9;\n int col = i % 9;\n if (grid[row][col] == 0) {\n\n //Shuffle collection\n List<Integer> intList = Arrays.asList(intArray);\n Collections.shuffle(intList);\n Integer[] numbers = intList.toArray(intArray);\n for (int j = 0; j < numbers.length; j++) {\n\n //Test Row to see if it contains the value\n if (!Arrays.asList(grid[row][0], grid[row][1], grid[row][2], \n \t\tgrid[row][3], grid[row][4], grid[row][5], grid[row][6], \n \t\tgrid[row][7], grid[row][8]).contains(numbers[j])) {\n\n //Test Column to see if it contains the value\n if (!Arrays.asList(grid[0][col],grid[1][col],grid[2][col],\n \t\tgrid[3][col],grid[4][col],grid[5][col],grid[6][col],\n \t\tgrid[7][col],grid[8][col]).contains(numbers[j])) {\n\n //Test squares to see if they contain value\n int[] testsquare;\n if (row < 3) {\n if (col < 3) {\n testsquare = testSection(grid, 3, 3, 0, 0);\n } else if (col < 6){\n testsquare = testSection(grid, 3, 6, 0, 3);\n } else {\n testsquare = testSection(grid, 3, 9, 0, 6);\n }\n } else if (row < 6){\n if (col < 3) {\n testsquare = testSection(grid, 6, 3, 3, 0);\n } else if (col < 6) {\n testsquare = testSection(grid, 6, 6, 3, 3);\n } else {\n testsquare = testSection(grid, 6, 9, 3, 6);\n }\n } else {\n if (col < 3) {\n testsquare = testSection(grid, 9, 3, 6, 0);\n } else if (col < 6) {\n testsquare = testSection(grid, 9, 6, 6, 3);\n } else {\n testsquare = testSection(grid, 9, 9, 6, 6);\n }\n }\n if (!Arrays.asList(testsquare[0], testsquare[1], testsquare[2], testsquare[3], testsquare[4],\n testsquare[5], testsquare[6], testsquare[7], testsquare[8]).contains(numbers[j])) {\n grid[row][col] = numbers[j];\n if (isFull(grid))\n return true;\n else if (fillGrid(grid))\n break;\n }\n }\n }\n }\n break;\n }\n }\n return false;\n }", "boolean UsedInBox(int grid[][], int boxStartRow, int boxStartCol, int num)\n{\n for (int row = 0; row < 3; row++)\n for (int col = 0; col < 3; col++)\n if (grid[row+boxStartRow][col+boxStartCol] == num)\n return true;\n return false;\n}", "static void createCubes(double width, double height) {\n \t\r\n \tmaxY=f(startingBound);\r\n \tmaxX=startingBound;\r\n \t\r\n \t//need a function to find the max\r\n \tfor(double i=startingBound; i<=endingBound; i=i+dx) {\r\n \t\tif(f(i)>maxY)\r\n \t\t\tmaxY=f(i);\r\n \t\t\r\n \t\tif(i>maxX)\r\n \t\t\tmaxX=i;\r\n \t}\r\n \tdouble size=height/2-100;\r\n \tSystem.out.println(size);\r\n \tscaleY=maxY/(size);\r\n \tscaleX=(width-100)/maxX;\r\n \t\r\n \tfor(double x=startingBound; x<=endingBound; x=x+dx) {\r\n \t\t//System.out.println(x+\", \"+f(x));\r\n \t\tcubes.add(new Cube(x*scaleX, -f(x)/scaleY, 0, f(x)/scaleY, dx*scaleX));\r\n \t\t//cubes.add(new Cube(x, 100, 0, 100, 100));\r\n \t}\r\n \t\r\n \t\r\n }", "private void drawGrid(){\r\n\r\n\t\tdrawHorizontalLines();\r\n\t\tdrawVerticalLines();\r\n\t}", "public void makeTriangleBox(int offsetX, int offsetY, int myWidth, int myHeight, int numTriHorizontal, int numTriVertical, int collRect, float[][] verts) {\n //Top Triangles\n for (int i = 0; i < numTriHorizontal; i++) {\n verts[i][0] = (i*myWidth/numTriHorizontal) + offsetX;\n verts[i][1] = offsetY;\n verts[i][2] = ((i+1)*(myWidth/numTriHorizontal)) + offsetX;\n verts[i][3] = offsetY;\n verts[i][4] = (myWidth/(2*numTriHorizontal)) + (i*myWidth/numTriHorizontal) + offsetX;\n if(i%2==0) {\n verts[i][5] = (float) ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal)) + offsetY;\n } else {\n verts[i][5] = (float)((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal)) + offsetY;\n }\n\n }\n\n //Left Triangles\n\n for (int i = numTriHorizontal; i < (numTriVertical + numTriHorizontal); i++) {\n verts[i][0] = offsetX;\n verts[i][1] = offsetY + ((i-numTriHorizontal) * (myWidth/numTriHorizontal));\n verts[i][2] = offsetX;\n verts[i][3] = offsetY + ((i-(numTriHorizontal-1)) * (myWidth/numTriHorizontal));\n if(i%2==0) {\n verts[i][4] = offsetX + (float) ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal));\n } else {\n verts[i][4] = offsetX + (float) ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal));\n }\n verts[i][5] = offsetY + ((i-numTriHorizontal) * (myWidth/numTriHorizontal)) + myWidth/(2*numTriHorizontal);\n\n }\n\n\n //Right Triangles\n for(int i=numTriVertical+numTriHorizontal; i<(2*numTriVertical)+numTriHorizontal; i++) {\n verts[i][0] = width-offsetX;\n verts[i][1] = offsetY + ((i-(numTriVertical+numTriHorizontal)) * (myWidth/numTriHorizontal));\n verts[i][2] = width-offsetX;\n verts[i][3] = offsetY + ((i-(numTriVertical+(numTriHorizontal-1))) * (myWidth/numTriHorizontal));\n if(i%2==0) {\n verts[i][4] = width-(offsetX + (float) ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal)));\n } else {\n verts[i][4] = width-(offsetX + (float) ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal)));\n }\n verts[i][5] = offsetY + ((i-(numTriVertical+numTriHorizontal)) * (myWidth/numTriHorizontal)) + myWidth/(2*numTriHorizontal);\n\n }\n\n //Bottom Triangles\n for(int i=(2*numTriVertical)+numTriHorizontal; i<(2*numTriVertical)+(2*numTriHorizontal); i++) {\n verts[i][0] = ((i-((2*numTriVertical)+numTriHorizontal))*myWidth/numTriHorizontal) + offsetX;\n verts[i][1] = (height-100) - offsetY;\n verts[i][2] = ((i-((2*numTriVertical)+numTriHorizontal) +1)*(myWidth/numTriHorizontal)) + offsetX;\n verts[i][3] = (height-100) - offsetY;\n verts[i][4] = (myWidth/(2*numTriHorizontal)) + ((i-((2*numTriVertical)+numTriHorizontal))*myWidth/numTriHorizontal) + offsetX;\n if(i%2==0) {\n verts[i][5] = (float)((height-100) - ( ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal)) + offsetY));\n } else {\n verts[i][5] = (float)((height-100) - ( ((Math.sqrt(3) / 2) * (myWidth / numTriHorizontal)) + offsetY));\n }\n\n }\n\n }", "public static void wallsAndGates(int[][] rooms) {\n if (rooms.length == 0 || rooms[0].length == 0) {\n return;\n }\n\n int m = rooms.length;\n int n = rooms[0].length;\n\n Queue<int[]> queue = new LinkedList();\n boolean[][] visited = new boolean[m][n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n if (rooms[i][j] == 0) {\n queue.add(new int[] {i, j});\n }\n }\n }\n\n int level = 1;\n while (!queue.isEmpty()) {\n int size = queue.size();\n for (int i = 0; i < size; i++) {\n int[] cur = queue.poll();\n int currow = cur[0];\n int curcol = cur[1];\n\n int row;\n int col;\n\n //up\n row = currow-1;\n col = curcol;\n if (row >= 0) {\n if (rooms[row][col] == Integer.MAX_VALUE && !visited[row][col]) {\n visited[row][col] = true;\n rooms[row][col] = level;\n queue.add(new int[] {row, col});\n }\n }\n\n //down\n row = currow+1;\n if (row < m) {\n if (rooms[row][col] == Integer.MAX_VALUE && !visited[row][col]) {\n visited[row][col] = true;\n rooms[row][col] = level;\n queue.add(new int[] {row, col});\n }\n }\n\n //left\n row = currow;\n col = curcol-1;\n if (col >= 0) {\n if (rooms[row][col] == Integer.MAX_VALUE && !visited[row][col]) {\n visited[row][col] = true;\n rooms[row][col] = level;\n queue.add(new int[] {row, col});\n }\n }\n\n //right\n row = currow;\n col = curcol + 1;\n if (col < n) {\n if (rooms[row][col] == Integer.MAX_VALUE && !visited[row][col]) {\n visited[row][col] = true;\n rooms[row][col] = level;\n queue.add(new int[] {row, col});\n }\n }\n }\n level++;\n }\n\n }", "@Test \r\n\tpublic void testTargetsIntoRoom()\r\n\t{\r\n\t\t// One room is exactly 2 away\r\n\t\tboard.calcTargets(19, 8, 2);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(5, targets.size());\r\n\t\t// directly left (can't go right 2 steps)\r\n\t\tassertTrue(targets.contains(board.getCellAt(19, 6)));\r\n\t\t// directly up and down\r\n\t\tassertTrue(targets.contains(board.getCellAt(17, 8)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(21, 8)));\r\n\t\t// one up/down, one left/right\r\n\t\tassertTrue(targets.contains(board.getCellAt(18, 7)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(20, 7)));\r\n\t}", "public void findUpperAndLowerEdge() throws NoSudokuFoundException{\n int bestUpperHit = 0;\n int bestLowerHit = 0;\n double t = INTERSECT_TOLERANCE;\n for (int h=0; h<nextH; h++) {\n int upperHit = 0;\n int lowerHit = 0;\n // for every horizontal line, check if vertical edge points A and B \n // are on that line.\n double[] hline = horizontalLines[h];\n double hy1 = hline[1],\n hy2 = hline[3];\n for (int v=0; v<nextV; v++){\n double[] vec = verticalLines[v];\n double ay = vec[1],\n by = vec[3];\n // if they are, count them\n if(ay < by) { // A is above B\n if ((hy1<=ay+t && ay<=hy2+t) || (hy1+t>=ay && ay+t>=hy2)){\n // A is between the left and right edge point.\n // only count it if it is above the screen center.\n if(hy1 < centerY && hy2 < centerY) {\n upperHit++;\n }\n } else if ((hy1<=by+t && by<=hy2+t) || (hy1+t>=by && by+t>=hy2)) {\n if(hy1 > centerY && hy2 > centerY) {\n lowerHit++;\n }\n }\n } else { // B is above A\n if ((hy1<=by+t && by<=hy2+t) || (hy1+t>=by && by+t>=hy2)) {\n if(hy1 < centerY && hy2 < centerY) {\n upperHit++;\n }\n } else if ((hy1<=ay+t && ay<=hy2+t) || (hy1+t>=ay && ay+t>=hy2)) {\n if(hy1 > centerY && hy2 > centerY) {\n lowerHit++;\n }\n } \n }\n }\n // take the lines with the highest counts\n if(upperHit > bestUpperHit) {\n edges[0] = horizontalLines[h];\n bestUpperHit = upperHit;\n } else if (lowerHit > bestLowerHit){\n edges[2] = horizontalLines[h];\n bestLowerHit = lowerHit;\n }\n }\n if(bestUpperHit < LINE_THRESHOLD || bestLowerHit < LINE_THRESHOLD){\n throw new NoSudokuFoundException(\"Number of upper (\"+bestUpperHit+\") or lower (\"+bestLowerHit+\") line ends below threshold. h\");\n }\n // Log.v(TAG, \"Best upper hit: \" + bestUpperHit + \", best lower: \" + bestLowerHit);\n }", "public static void updateGrid(int grid[][])\n {\n\n int tempGrid [][] = new int [10][10];\n for (int i =0; i<10;i++)\n {\n for (int j = 0; j<10;j++)\n {\n tempGrid[i][j] = grid[i][j];\n }\n }\n for (int i =1; i<9;i++)\n {\n for (int j = 1; j<9;j++)\n {\n //check neighbors\n int neighbors = grid[i-1][j-1]+grid[i-1][j]+grid[i-1][j+1]+grid[i][j-1]+grid[i][j+1]+grid[i+1][j-1]+grid[i+1][j]+grid[i+1][j+1];\n if (grid[i][j]==1 && ((neighbors>=4 || neighbors<=1))) // check rules\n {\n tempGrid[i][j] =0;\n }\n else if (grid[i][j]==0 && neighbors==3) //check rules\n {\n tempGrid[i][j] =1;\n }\n }\n }\n displayGrid(tempGrid); //display the grid\n for (int i =0; i<10;i++)\n {\n for (int j = 0; j<10;j++)\n {\n grid[i][j]=tempGrid[i][j]; //change the original grid\n }\n }\n \n }", "@Test\n\tpublic void testCuatroEnRayaDiag1() {\n\t\t\n\t\tint []posX = new int[4];\n\t\tint []posY = new int[4];\n\t\tfor (int i = 1; i <= 12; ++i) {\n\t\t\tint sx = Math.max(1, i-5);\n\t\t\tint sy = Math.min(i, 6);\n\t\t\twhile ((sy - 4 >= 0) && (sx + 3 <= 7)) {\n\t\t\t\tfor (int l = 0; l < 4; ++l) {\n\t\t\t\t\tposX[l] = sx + l;\n\t\t\t\t\tposY[l] = sy - l;\n\t\t\t\t}\n\t\t\t\tpruebaCuatroEnRaya(posX, posY);\n\t\t\t\tsy--; sx++;\n\t\t\t}\n\t\t}\n\t}", "public double minAreaFreeRect(int[][] points) {\n if (points.length < 4) {\n return 0;\n }\n\n //key: info of distance, x,y center positions\n double minVal = Double.MAX_VALUE;\n Map<String, List<int[]>> map = new HashMap<>();\n for (int i = 0; i < points.length - 1; i++) {\n for (int j = i + 1; j < points.length; j++) {\n long dis = (points[i][0] - points[j][0]) * (points[i][0] - points[j][0]) +\n (points[i][1] - points[j][1]) * (points[i][1] - points[j][1]);\n double centerX = (double)(points[i][0] + points[j][0]) / 2;\n double centerY = (double)(points[i][1] + points[j][1]) / 2;\n String key = dis + \" \" + centerX + \" \" + centerY;\n if (!map.containsKey(key)) {\n map.put(key, new ArrayList<int[]>());\n }\n map.get(key).add(new int[]{i,j});\n }\n }\n\n //therefore all vals stored in same key can form rectangles\n //just try all of them to find the one with smallest area\n for (String key: map.keySet()) {\n if (map.get(key).size() < 2) {\n continue;\n }\n List<int[]> values = map.get(key);\n for (int i = 0; i < values.size() - 1; i++) {\n for (int j = i + 1; j < values.size(); j++) {\n int p1 = values.get(i)[0];\n int p2 = values.get(i)[1];\n int p3 = values.get(j)[0];\n\n double len1 = Math.sqrt((points[p1][0] - points[p3][0]) * (points[p1][0] - points[p3][0]) + (points[p1][1] - points[p3][1]) * (points[p1][1] - points[p3][1]));\n double len2 = Math.sqrt((points[p2][0] - points[p3][0]) * (points[p2][0] - points[p3][0]) + (points[p2][1] - points[p3][1]) * (points[p2][1] - points[p3][1]));\n\n minVal = Math.min(minVal, len1 * len2);\n }\n }\n }\n return minVal == Double.MAX_VALUE? 0: minVal;\n\n }", "public int numberAround(int row, int col) {\n int count = 0; //counter\r\n //Checks all potential eight surrounding locations \r\n //Counter goes up if the box is true\r\n // Upper Left square\r\n //check parameraters are valid\r\n if (grid[row - 1][col - 1] == true) {\r\n count = count + 1;\r\n }\r\n \r\n // Left square\r\n //check parameraters are valid\r\n if (grid[row][col - 1] == true) {\r\n count = count + 1;\r\n }\r\n \r\n // Bottom Left square\r\n //check parameraters are valid\r\n if (grid[row + 1][col - 1] == true) {\r\n count = count + 1;\r\n }\r\n \r\n // Square below\r\n //check parameraters are valid\r\n if (grid[row + 1][col] == true) {\r\n count = count + 1;\r\n }\r\n \r\n // Bottom Right square\r\n //check parameraters are valid\r\n if (grid[row + 1][col + 1] == true) {\r\n count = count + 1;\r\n }\r\n \r\n // Right square \r\n //check parameraters are valid\r\n if (grid[row][col + 1] == true) {\r\n count = count + 1;\r\n }\r\n \r\n // Upper Right square\r\n //heck parameters are valid\r\n if (grid[row - 1][col + 1] == true) {\r\n count = count + 1;\r\n }\r\n \r\n // Upper square \r\n \r\n if (grid[row - 1][col] == true) {\r\n count = count + 1;\r\n }\r\n \r\n return count;\r\n }", "private void paintGrid() {\n\n g2d.setColor(_BOARDCOLOR); //Set the color to specific color of the board.\n\n for(int i = 0; i < grids.size(); i++) { //Iterating the 16 grids while drawing each on JComponent.\n\n g2d.draw(grids.get(i));\n }\n }", "private void drawGrid(Canvas canvas, double cell_width, double cell_height) {\n\t\tGraphicsContext gc = canvas.getGraphicsContext2D();\n\t\tgc.clearRect(0, 0, canvas.getWidth(),canvas.getHeight());\n\t\t// vertical lines\n\t\tgc.setStroke(Color.BLACK);\n\t\tfor(int i = 0 ; i < Params.world_width; i++){\n\t\t\tgc.strokeLine(cell_width*i, 0, cell_width*i, canvas.getHeight());\n\t\t}\n\t\tfor(int i = 0 ; i < Params.world_height; i++){\n\t\t\tgc.strokeLine(0, cell_height*i, canvas.getWidth(), cell_height*i);\n\t\t}\n\t}", "private static void solution() {\n for (int i = 0; i < n; i++) {\n Coord here = coords[i]; // start, end, dir, gen\n for (int j = 0; j < here.gen; j++) {\n // Rotate degree of 90.\n List<Pair> changed = rotate(here.coord, here.endPoint);\n boolean first = true;\n for(Pair p: changed){\n if(first) {\n here.endPoint = new Pair(p.x, p.y);\n first = false;\n }\n here.coord.add(new Pair(p.x, p.y));\n }\n }\n }\n // count the number of squares enclosing all angles with dragon curve\n for (int i = 0; i < n; i++) {\n for(Pair p: coords[i].coord)\n board[p.y][p.x] = true;\n }\n int cnt = 0;\n for (int i = 0; i < 100; i++)\n for (int j = 0; j < 100; j++)\n if(board[i][j] && board[i + 1][j] && board[i][j + 1] && board[i + 1][j + 1])\n cnt += 1;\n System.out.println(cnt);\n }", "public boolean win(){\n\t\tint num=0;//number of the boxes are in the areas\n\t\tfor(int i=0;i<boxes.size();i++){\n\t\t\tbox a =boxes.get(i);\n\t\t\tfor(int j=0;j<areas.size();j++){\n\t\t\t\tarea b = areas.get(j);\n\t\t\t\tif(a.getX()==b.getX()&&a.getY()==b.getY()){//check whether all the boxes have been in the certain areas\n\t\t\t\t\t//System.out.println(j);\n\t\t\t\t\t//System.out.println(\"area: \"+j);\n\t\t\t\t\tb.emptyImage();//clear the original image of boxes\n\t\t\t\t a.setImage();//change to the colorful one\n\t\t\t\t\tnum++;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//\t b.setImage(); \t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(num==areas.size()){//whether their number are same \n\t\t\tnum=0;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void printGrid() {\n // Creation of depth Z\n for (int d = 0; d < grid[0][0].length; d++) {\n System.out.println(\"\");\n int layer = d + 1;\n System.out.println(\"\");\n System.out.println(\"Grid layer: \" + layer);\n // Creation of height Y\n for (int h = 1; h < grid.length; h++) {\n System.out.println(\"\");\n // Creation of width X\n for (int w = 1; w < grid[0].length; w++) {\n if (grid[h][w][d] == null) {\n System.out.print(\" . \");\n } else {\n String gridContent = grid[h][w][d];\n char identifier = gridContent.charAt(0);\n\n int n = 0;\n if(grid[h][w][d].length() == 3) {\n n = grid[h][w][d].charAt(2) % 5;\n } else if (grid[h][w][d].length() == 2) {\n n = grid[h][w][d].charAt(1)%5;\n }\n if(n == 0) n = 6;\n\n // Labelling\n if (identifier == 'G' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'G') {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n } else if (identifier == 'L' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'L') {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n }\n }\n }\n }\n }\n System.out.println(\"\");\n }", "public static void main(String[] args) {\n int indexMin = -3;\n int indexMax = 1;\n RangeArray squares = new RangeArray(indexMin, indexMax);\n\n for (int index = squares.getIndexMin() ; index <= squares.getIndexMax() ; index++)\n squares.set(index, index*index);\n\n for (int index = squares.getIndexMin() ; index <= squares.getIndexMax() ; index++)\n System.out.println(index + \" -> \" + squares.get(index));\n\n System.out.println(squares.rangeSize());\n\n // 2.\n RangeArray<String> habitations = new RangeArray<String>(3, 5);\n habitations.set(3, \"Maison\");\n habitations.set(4, \"Immeuble\");\n habitations.set(5, \"Hutte\");\n for (int index = habitations.getIndexMin() ; index <= habitations.getIndexMax() ; index++)\n System.out.print(habitations.get(index).length() + \" \");\n\n // 3.\n // TODO : Fonctionnel, mais chercher le fonctionnement précis de Iterable et changer le stream par un code plus propre\n for (String habitation : habitations)\n System.out.print(habitation + \" \");\n\n // Exercice 2 : Iterateur sur des grilles\n // 1.\n String[][] elements = {{\"A\",\"C\",\"E\",\"G\"},{\"B\",\"D\",\"F\",\"H\"}};\n Grid<String> grid = new Grid<>(elements);\n for (int line = 0 ; line < grid.nbLines() ; line++)\n for (int column = 0 ; column < grid.nbColumns() ; column++)\n {\n String element = grid.get(line, column);\n System.out.print(element + \" \");\n }\n System.out.println();\n\n // 2.\n // TODO : Methodes T next() et hasNext() de Iterator<T> pour rendre cette syntaxe fonctionnelle.\n for (String element : grid)\n System.out.print(element + \" \");\n System.out.println();\n }", "public ArrayList<Rect> useAllWidth(ArrayList<Rect> arrangedRectList) {\n\n if (arrangedRectList.size() == 1 ) {\n arrangedRectList.get(0).right = getWidth();\n return arrangedRectList;\n }\n\n ArrayList<Rect> modifiedRectList = arrangedRectList;\n ArrayList<Rect> currentRectList = arrangedRectList;\n\n int totalLeftMargin = mHourWidth + mEventMarginLeft;\n\n for(int i = 0; i < currentRectList.size(); i++) {\n int maxExtension = 0;\n int collisionCount = 0;\n for (int j = 0; j < modifiedRectList.size(); j++)\n {\n //check if it is compared to the same rect\n if (currentRectList.get(i).contains(modifiedRectList.get(j))) {\n Log.d(\"SAMERECT\", \"same rect\");\n continue;\n }\n\n //breaks loop when rect is not supposed to be extended\n if (currentRectList.get(i).left == totalLeftMargin && currentRectList.get(i).right == modifiedRectList.get(j).left\n// ||\n// currentRectList.get(i).top <= modifiedRectList.get(j).bottom && modifiedRectList.get(j).top <= currentRectList.get(i).bottom && currentRectList.get(i).right == modifiedRectList.get(i).left\n ||\n currentRectList.get(i).right + eventWidth > getWidth()\n ) {\n Log.d(\"SAMERECT\", \"break within condition\");\n maxExtension = currentRectList.get(i).right;\n// break;\n }\n\n\n if (currentRectList.get(i).right >= modifiedRectList.get(j).left) {\n if (currentRectList.get(i).top <= modifiedRectList.get(j).bottom && modifiedRectList.get(j).top <= currentRectList.get(i).bottom) {\n if (currentRectList.get(i).right == modifiedRectList.get(j).left) {\n maxExtension = currentRectList.get(i).right;\n break;\n } else {\n maxExtension = getWidth();\n }\n } else {\n maxExtension = getWidth();\n }\n } else {\n if (currentRectList.get(i).top <= modifiedRectList.get(j).bottom && modifiedRectList.get(j).top <= currentRectList.get(i).bottom) {\n maxExtension = modifiedRectList.get(j).left;\n } else {\n maxExtension = getWidth();\n break;\n }\n\n }\n\n }\n// if (maxExtension > 0 && collisionCount == 0) {\n// if (maxExtension == getWidth()) {\n// currentRectList.get(i).right = getWidth();\n// } else {\n currentRectList.get(i).right = maxExtension;\n// }\n// }\n\n\n }\n\n return currentRectList;\n }", "public Board(){\r\n \r\n //fill tile list with tile objects\r\n tiles.add(new Tile(new Coordinate(0,0)));\r\n tiles.add(new Tile(new Coordinate(0,1)));\r\n tiles.add(new Tile(new Coordinate(0,2)));\r\n tiles.add(new Tile(new Coordinate(1,0)));\r\n tiles.add(new Tile(new Coordinate(1,1)));\r\n tiles.add(new Tile(new Coordinate(1,2)));\r\n tiles.add(new Tile(new Coordinate(1,3)));\r\n tiles.add(new Tile(new Coordinate(2,0)));\r\n tiles.add(new Tile(new Coordinate(2,1)));\r\n tiles.add(new Tile(new Coordinate(2,2)));\r\n tiles.add(new Tile(new Coordinate(2,3)));\r\n tiles.add(new Tile(new Coordinate(2,4)));\r\n tiles.add(new Tile(new Coordinate(3,1)));\r\n tiles.add(new Tile(new Coordinate(3,2)));\r\n tiles.add(new Tile(new Coordinate(3,3)));\r\n tiles.add(new Tile(new Coordinate(3,4)));\r\n tiles.add(new Tile(new Coordinate(4,2)));\r\n tiles.add(new Tile(new Coordinate(4,3)));\r\n tiles.add(new Tile(new Coordinate(4,4)));\r\n \r\n //fills corner list with corner objects\r\n List<Coordinate> cornercoords = new ArrayList<>();\r\n for(Tile t : tiles){\r\n for(Coordinate c : t.getAdjacentCornerCoords()){\r\n if(cornercoords.contains(c)==false) cornercoords.add(c);\r\n }\r\n }\r\n for(Coordinate c : cornercoords){\r\n corners.add(new Corner(c));\r\n }\r\n \r\n //fills adjacent corner/tile fields\r\n for(Tile t: tiles){\r\n t.fillAdjacents(tiles,corners);\r\n }\r\n for(Corner c: corners){\r\n c.fillAdjacents(tiles,corners);\r\n }\r\n \r\n //generates an edge between each corner and fills the list of edges\r\n //results in lots of duplicates\r\n for(Corner c: corners){\r\n for(Corner adjacent: c.getAdjacentCorners()){\r\n edges.add(new Edge(c,adjacent));\r\n }\r\n }\r\n \r\n //hopefully removes duplicates from the edge list\r\n Iterator<Edge> iter = edges.iterator();\r\n boolean b = false;\r\n while (iter.hasNext()) {\r\n Edge e = iter.next();\r\n for(Edge edge : edges){\r\n if(e.sharesCorners(edge)==true && edge!=e){\r\n b = true;\r\n }\r\n }\r\n if(b==true) iter.remove();\r\n b = false;\r\n }\r\n \r\n //give each tile a token number and resource type \r\n ArrayList<Tile> randomtiles = randomize(tiles);\r\n int sheep = 3;\r\n int wood = 3;\r\n int rock = 2;\r\n int brick = 2;\r\n int wheat = 3;\r\n for(Tile t : randomtiles){\r\n if(sheep>0){\r\n t.setResource(Resource.SHEEP);\r\n sheep--;\r\n }\r\n if(wood>0){\r\n t.setResource(Resource.WOOD);\r\n wood--;\r\n }\r\n if(brick>0){\r\n t.setResource(Resource.CLAY);\r\n brick--;\r\n }\r\n if(wheat>0){\r\n t.setResource(Resource.WHEAT);\r\n wheat--;\r\n }\r\n if(rock>0){\r\n t.setResource(Resource.ROCK);\r\n rock--;\r\n }\r\n else t.setResource(Resource.DESERT); \r\n } \r\n randomtiles = randomize(randomtiles);\r\n int twos = 1;\r\n int twelves = 1;\r\n int threes = 2;\r\n int fours = 2;\r\n int fives = 2;\r\n int sixes = 2;\r\n int sevens = 2;\r\n int eights = 2;\r\n int nines = 2;\r\n int tens = 2;\r\n int elevens = 2; \r\n for(Tile t : randomtiles){\r\n if(t.getResource() != Resource.DESERT){\r\n if(twos != 0){\r\n t.setToken(2);\r\n twos--;\r\n }\r\n else if(threes !=0){\r\n t.setToken(3);\r\n threes--;\r\n }\r\n else if(fours !=0){\r\n t.setToken(4);\r\n fours--;\r\n } \r\n else if(fives !=0){\r\n t.setToken(5);\r\n fives--;\r\n } \r\n else if(sixes !=0){\r\n t.setToken(6);\r\n sixes--;\r\n } \r\n else if(sevens !=0){\r\n t.setToken(7);\r\n sevens--;\r\n } \r\n else if(eights !=0){\r\n t.setToken(8);\r\n eights--;\r\n } \r\n else if(nines !=0){\r\n t.setToken(9);\r\n nines--;\r\n } \r\n else if(tens !=0){\r\n t.setToken(10);\r\n tens--;\r\n } \r\n else if(elevens !=0){\r\n t.setToken(11);\r\n elevens--;\r\n } \r\n else if(twelves !=0){\r\n t.setToken(12);\r\n twelves--;\r\n } \r\n }\r\n }\r\n }", "public static boolean isTopCornersPermutated2(Cube cube){\n\t\tint counter = 0;\n\t\tint sameColorVal = 88; //Shared color value\n\t\tint diffColorVal = 88;\n\n // TODO: do this with a set\n\t\tif(cube.getSquare (1, 0, 0) == cube.getSquare(0, 0, 0) && cube.getSquare(1, 0, 0) != 5){\n\t\t\tcounter++;\n\t\t\tsameColorVal = cube.getSquare(1, 0, 0);\n\t\t}\n\t\tif(cube.getSquare (1, 0, 0) == cube.getSquare(5, 0, 0) &&\n cube.getSquare(1, 0, 0) != 5){\n\t\t\tcounter++;\n\t\t\tsameColorVal = cube.getSquare(1, 0, 0);\n\t\t}\n\t\tif(cube.getSquare (1, 0, 0) == cube.getSquare(3, 0, 2) &&\n cube.getSquare(1, 0, 0) != 5){\n\t\t\tcounter++;\n\t\t\tsameColorVal = cube.getSquare(1, 0, 0);\n\t\t}\n\t\tif(cube.getSquare (0, 0, 2) == cube.getSquare(0, 0, 0) &&\n cube.getSquare(0, 0, 2) != 5){\n\t\t\tcounter++;\n\t\t\tsameColorVal = cube.getSquare(0, 0, 2);\n\t\t}\n\t\tif(cube.getSquare (0, 0, 2) == cube.getSquare(5, 0, 0) &&\n cube.getSquare(0, 0, 2) != 5){\n\t\t\tcounter++;\n\t\t\tsameColorVal = cube.getSquare(0, 0, 2);\n\t\t}\n\t\tif(cube.getSquare (0, 0, 2) == cube.getSquare(3, 0, 2) &&\n cube.getSquare(0, 0, 2) != 5){\n\t\t\tcounter++;\n\t\t\tsameColorVal = cube.getSquare(0, 0, 2);\n\t\t}\n\t\tif(cube.getSquare (5, 2, 0) == cube.getSquare(0, 0, 0) &&\n cube.getSquare(5, 2, 0) != 5){\n\t\t\tcounter++;\n\t\t\tsameColorVal = cube.getSquare(5, 2, 0);\n\t\t}\n\t\tif(cube.getSquare (5, 2, 0) == cube.getSquare(5, 0, 0) &&\n cube.getSquare(5, 2, 0) != 5){\n\t\t\tcounter++;\n\t\t\tsameColorVal = cube.getSquare(5, 2, 0);\n\t\t}\n\t\tif(cube.getSquare (5, 2, 0) == cube.getSquare(3, 0, 2) &&\n cube.getSquare(5, 2, 0) != 5){\n\t\t\tcounter++;\n\t\t\tsameColorVal = cube.getSquare(5, 2, 0);\n\t\t}\n\n\t\tif(counter == 1){\n // change to just grab opposite value\n\t\t\tif(cube.getSquare (1, 0, 0) != 5 && cube.getSquare(1, 0, 0) !=\n sameColorVal) diffColorVal = cube.getSquare(1, 0, 0);\n\t\t\telse if (cube.getSquare (0, 0, 2) != 5 && cube.getSquare(0, 0, 2) !=\n sameColorVal) diffColorVal = cube.getSquare(0, 0, 2);\n\t\t\telse if (cube.getSquare (5, 2, 0) != 5 && cube.getSquare(5, 2, 0) !=\n sameColorVal) diffColorVal = cube.getSquare(5, 2, 0);\n\n\t\t\tif(sameColorVal+1 == diffColorVal || sameColorVal-3 == diffColorVal){ //Checks if diffColorVal is to the right of sameColorVal\n\t\t\t\tcounter++;\n\t\t\t\tsameColorVal = diffColorVal;\n\t\t\t\tif(cube.getSquare (1, 0, 2) != 5 && cube.getSquare(1, 0, 2)\n !=sameColorVal) diffColorVal=cube.getSquare(1, 0, 2);\n\t\t\t\telse if (cube.getSquare (5, 2, 2) != 5 && cube.getSquare(5, 2,\n 2) !=sameColorVal) diffColorVal=cube.getSquare (5, 2, 2);\n\t\t\t\telse if (cube.getSquare (2, 0, 0) != 5 && cube.getSquare(2, 0,\n 0) !=sameColorVal) diffColorVal=cube.getSquare (2, 0, 0); \n\n\t\t\t\tif(sameColorVal+1 == diffColorVal || sameColorVal-3 == diffColorVal){\n\t\t\t\t\tcounter++;\n\t\t\t\t\tsameColorVal = diffColorVal;\n\t\t\t\t\tif(cube.getSquare (2, 0, 2) != 5 && cube.getSquare(2, 0, 2)\n !=sameColorVal) diffColorVal=cube.getSquare (2, 0, 2);\n\t\t\t\t\telse if (cube.getSquare (5, 0, 2) != 5 && cube.getSquare(5,\n 0, 2) !=sameColorVal) diffColorVal=cube.getSquare (5, 0, 2);\n\t\t\t\t\telse if (cube.getSquare (3, 0, 0) != 5 && cube.getSquare(3,\n 0, 0) !=sameColorVal) diffColorVal=cube.getSquare (3, 0, 0); \n\n\t\t\t\t\tif(sameColorVal+1 == diffColorVal || sameColorVal-3 == diffColorVal){\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\tsameColorVal = diffColorVal;\n\t\t\t\t\t\tif(cube.getSquare (3, 0, 2) != 5 && cube.getSquare(3, 0,\n 2) !=sameColorVal) diffColorVal=cube.getSquare (3,\n 0, 2);\n\t\t\t\t\t\telse if (cube.getSquare (0, 0, 0) != 5 &&\n cube.getSquare(0, 0, 0) !=sameColorVal)\n diffColorVal=cube.getSquare (0, 0, 0);\n\t\t\t\t\t\telse if (cube.getSquare (5, 0, 0) != 5 &&\n cube.getSquare(5, 0, 0) !=sameColorVal)\n diffColorVal=cube.getSquare (5, 0, 0);\n\n\t\t\t\t\t\tif(sameColorVal+1 == diffColorVal || sameColorVal-3 == diffColorVal){\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn (counter == 5);\n\t}", "private int adequateDimensions(int cols, int rows) {\r\n\r\n if ((cols >= MINALG) && (cols <= MAXALG)) {\r\n if ((rows >= MINDATA) && (rows <= MAXDATA)) {\r\n return 0;\r\n } else {\r\n return 1;\r\n }\r\n } else {\r\n return 2;\r\n }\r\n\r\n }", "private void generate () {\n\t\t\n\t\tArrayList<Integer[]> copyToCheck = new ArrayList<Integer[]> ();\n\t\tfor (int i = 0; i < Math.pow(size, 3); i++) { // Filling up the maze with blocks\n\t\t\tint x, y, z;\n\t\t\tx = i / (size * size); // Get the x, y, and z\n\t\t\ty = i % (size * size) / size;\n\t\t\tz = i % (size * size) % size;\n\t\t\t// spaces each block out by 1\n\t\t\tif (x%2 == 1 && y%2 == 1 && z%2 == 1) {\n\t\t\t\tmaze.add(new Block (x, y, z, ' ')); // 'w' means wall\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tmaze.add(new Block (x, y, z, 'w'));\n\t\t\t\tif (x > 0 && y > 0 && z > 0 && x < size-1 && y < size-1 && z < size-1) { // if the blocks are within the outer shell, add the blocks to the list of walls to check\n\t\t\t\t\tif (x%2+y%2+z%2 == 2)copyToCheck.add(new Integer[] {x, y, z});\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if (x > 0 && y > 0 && z > 0 && x < size-1 && y < size-1 && z < size-1) { // checks if the coordinates are within the smaller cube that is below the first layer.\n\t\t\t\t//copyToCheck.add(new Integer[] { x, y, z });\t// the Block coords left to check\n\t\t\t//}\n\t\t}\n\t\t\n\t\tint starty, startx, startz; // x, y and z of current block\n\t\tstartz = 0; // the starting block will be at z = 0 because that is the bottom-most layer\n\n\t\tstartx = ((int)(Math.random() * (size/2)))*2 + 1; \n\t\tstarty = ((int)(Math.random() * (size/2)))*2 + 1;\n\t\tstart = get(startx, starty, startz);\n\t\t\n\t\tint endx, endy, endz; // x, y and z of end block\n\t\tendx = ((int)(Math.random() * (size/2)))*2 + 1; \n\t\tendy = ((int)(Math.random() * (size/2)))*2 + 1;\n\t\tendz = size-1;\n\t\tend = get(endx, endy, endz);\n\t\t\n\t\tArrayList<Integer[]> toCheck;\n\t\tboolean removed = true;\n\t\twhile (removed) {\n\t\t\tremoved = false;\n\t\t\ttoCheck = new ArrayList<Integer[]> ();\n\t\t\tfor (Integer[] thing : copyToCheck) {\n\t\t\t\ttoCheck.add(thing);\n\t\t\t}\n\t\t\tCollections.shuffle(toCheck); // Randomizes the order of the list of coordinates to check.\n\t\t\tfor (Integer[] coords : toCheck) {\n\t\t\t\tBlock curr = get(coords[0], coords[1], coords[2]);\n\t\t\t\tArrayList<Block> neighbors = getAdj(curr);\n\t\t\t\tboolean isJoint = false;\n\t\t\t\t\tfor (int i = 0; i < neighbors.size() - 1 && !isJoint; i++) {\n\t\t\t\t\t\tfor (int j = i+1; j < neighbors.size(); j++) {\n\t\t\t\t\t\t\tif (neighbors.get(j).t == ' ')\n\t\t\t\t\t\t\t\tif (neighbors.get(i).tree == neighbors.get(j).tree) {\n\t\t\t\t\t\t\t\t\tisJoint = true;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isJoint) { // Even if it doesn't matter too much, don't want to spend a bunch of time iterating through the stuff unless I have too.\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!isJoint) {\n\t\t\t\t\t\tremoved = true;\n\t\t\t\t\t\tcopyToCheck.remove(coords);\n\t\t\t\t\t\tjoin(curr); // Joins all of the sets, changes the type of the block.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\tArrayList<Block> t = new ArrayList<Block>();\n\t\tfor (int i = 0; i < 5*size; i++) {\n\t\t\tArrayList<Block> b = getWalls();\n\t\t\t\n\t\t\tint rand = (int)(Math.random()*b.size());\n\t\t\tint x = b.get(rand).x;\n\t\t\tint y = b.get(rand).y;\n\t\t\tint z = b.get(rand).z;\n\t\t\tset(x, y, z, new Trap (x, y, z));\n\t\t}\n\t\tstart.t = ' '; // sets the type of the start and end blocks\n\t\tend.t = 'e';\n\t}", "private void generateSquarePartners() {\r\n\t\t// 2 copies of each end point,\r\n\t\t// which will be \"shifted\" to simulate the 2 adjacent squares\r\n\t\tint[] point1Shift1 = Arrays.copyOf(point1, 2);\r\n\t\tint[] point1Shift2 = Arrays.copyOf(point1, 2);\r\n\t\tint[] point2Shift1 = Arrays.copyOf(point2, 2);\r\n\t\tint[] point2Shift2 = Arrays.copyOf(point2, 2);\r\n\t\t\r\n\t\t// used to indicate the orientation of the Line and which axis needs to be shifted\r\n\t\t// 0 == vertical, 1 == horizontal\r\n\t\tint index;\r\n\t\t\r\n\t\tif (point1[0] == point2[0]) {\r\n\t\t\tindex = 0;\r\n\t\t} else {\r\n\t\t\tindex = 1;\r\n\t\t}\r\n\t\t\r\n\t\tif (point1[index] - 1 > 0) {\r\n\t\t\t// square1Partners form the square to the left or above *this* Line\r\n\t\t\t// so shifted points get decremented\r\n\t\t\tpoint1Shift1[index] = point1[index] - 1;\r\n\t\t\tpoint2Shift1[index] = point2[index] - 1;\r\n\t\t\t\r\n\t\t\tsquare1Partners.add(new Line(point1, point1Shift1));\r\n\t\t\tsquare1Partners.add(new Line(point1Shift1, point2Shift1));\r\n\t\t\tsquare1Partners.add(new Line(point2Shift1, point2));\r\n\t\t}\r\n\t\tif (point1[index] + 1 < boardSize) {\r\n\t\t\t// square2Partners form the square to the right or below *this* Line\r\n\t\t\t// so shifted points get incremented\r\n\t\t\tpoint1Shift2[index] = point1[index] + 1;\r\n\t\t\tpoint2Shift2[index] = point2[index] + 1;\r\n\t\t\t\r\n\t\t\tsquare2Partners.add(new Line(point1, point1Shift2));\r\n\t\t\tsquare2Partners.add(new Line(point1Shift2, point2Shift2));\r\n\t\t\tsquare2Partners.add(new Line(point2Shift2, point2));\r\n\t\t}\r\n\t}", "protected void building(double xCoord, double yCoord, double len, double width, double height)\n {\n double x1 = (xCoord - (width/2)); // Low x\n double x2 = (xCoord + (width/2)); // High x\n double y1 = (yCoord - (len/2)); // Low y\n double y2 = (yCoord + (len/2)); // High y\n\n Vertex vertex1, vertex2, vertex3;\n\n Triple pos1, pos2, pos3, pos4, pos5, pos6, pos7, pos8, col1, col2, col3, col4;\n Vertex vert1, vert2, vert3;\n\n pos1 = new Triple(x1, y1, 0); \n pos2 = new Triple(x2, y1, 0); \n pos3 = new Triple(x2, y1, height);\n pos4 = new Triple(x1, y1, height);\n pos5 = new Triple(x1, y2, 0); \n pos6 = new Triple(x2, y2, 0); \n pos7 = new Triple(x2, y2, height);\n pos8 = new Triple(x1, y2, height);\n\n col1 = new Triple(1, 0, 0); \n col2 = new Triple(0, 1, 0); \n col3 = new Triple(0, 0, 1); \n col4 = new Triple(1, 0, 1); \n \n // Front Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 0, 0), \n new Vertex(pos2, 0, 1), \n new Vertex(pos3, 1, 1), \n\t\t\t\t 25 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos3, 1, 1), \n new Vertex(pos4, 1, 0), \n new Vertex(pos1, 0, 0),\n 25 ) );\n \n // Left Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 0, 0), \n new Vertex(pos5, 0, 1), \n new Vertex(pos8, 1, 1),\n 26 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos8, 1, 1), \n new Vertex(pos4, 1, 0), \n new Vertex(pos1, 0, 0),\n 26 ) );\n\n // Right Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos2, 0, 0), \n new Vertex(pos6, 0, 1), \n new Vertex(pos7, 1, 1),\n 24 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, 1, 1), \n new Vertex(pos3, 1, 0), \n new Vertex(pos2, 0, 0),\n 24 ) );\n\n // Back Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos5, 0, 0), \n new Vertex(pos6, 0, 1), \n new Vertex(pos7, 1, 1),\n 27 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, 1, 1), \n new Vertex(pos8, 1, 0), \n new Vertex(pos5, 0, 0),\n 27 ) );\n\n // Top Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos4, 0, 0), \n new Vertex(pos3, 0, 1), \n new Vertex(pos7, 1, 1),\n 28 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, 1, 1), \n new Vertex(pos8, 1, 0), \n new Vertex(pos4, 0, 0),\n 28 ) );\n }", "private void fillShotsArea(int[][] shots, int x, int y) {\n for (int i = x; inSea(i) && shots[i][y] == 4; i--) fillAreaAround(shots, i, y);\n for (int i = x; inSea(i) && shots[i][y] == 4; i++) fillAreaAround(shots, i, y);\n for (int i = y; inSea(i) && shots[x][i] == 4; i--) fillAreaAround(shots, x, i);\n for (int i = y; inSea(i) && shots[x][i] == 4; i++) fillAreaAround(shots, x, i);\n }", "public static int area_intersection(int blx1, int bly1, int trx1,int try1, int blx2, int bly2,int trx2,int try2){\r\n\t\tint base = 0, height = 0, area = 0;\r\n\t\r\n\t\tif (blx2>=blx1 && blx2<=trx1){\r\n\t\t\tif (bly2>=bly1 && bly2<=try1){\r\n\tif (trx2<=trx1 && trx2>=blx1){\r\n\tbase = trx2 - blx2;\r\n\theight = try2 - bly2;\r\n\tarea = base * height;\r\n\t}\r\n\telse{\r\n\tbase = trx1 - blx2;\r\n\theight = try1 - bly2;\r\n\tarea = base * height;\r\n\t}\r\n\t\t}\r\n\t\t}\r\n\t//end\r\n\r\n\t\telse if( bly1>=bly2 && bly1<=try2){\r\n\tbase = trx1 - blx2;\r\n\theight = try1 - bly1;\r\n\tarea = base * height;\r\n\t\t}\r\n\t//end\r\n\r\n\t\telse if (bly2>=bly1 && bly2<=try1){\r\n\tif( blx1>=blx2 && blx1<=trx2){\r\n\tbase = trx1 - blx1;\r\n\theight = try2 - bly2;\r\n\tarea = base * height;\r\n\t}\r\n\t\t}\r\n\t//end\r\n\r\n\t\telse if (blx1>=blx2 && blx1<=trx2){\r\n\t if( bly1>=bly2 && bly1<=try2){\r\n\tbase = trx1 - blx1;\r\n\theight = try1 - bly1;\r\n\tarea = base * height;\r\n\t }\r\n\tif( trx2>=blx1 && trx2<=trx1){\r\n\tbase = trx2 - blx1;\r\n\theight = try2 - bly1;\r\n\tarea = base * height;\r\n\t}\r\n\t\t}\r\n\t//end\r\n\r\n\t\telse if (bly2>=bly1 && bly2<=try1){\r\n\tbase = trx1 - blx2;\r\n\theight = try1 - bly1;\r\n\tarea = base * height;\r\n\t\t}\r\n\t//end\r\n\r\n\t\t//else if(trx1 - blx2)==0 || (try1 - bly1)==0 || !(trx1>blx2 and trx2>trx1 && bly2<=bly1){\r\n\t//area = 0\r\n\t\t//}\r\n\t//end\r\n\t \r\n\t//if( area && area<=2147483647 )\r\n\t//area\r\n\t//else\r\n\t//-1\r\n\t//end\r\n\r\n\t\treturn area;\r\n\t}", "private boolean withinGridDimensions(int startX, int startY, int endX, int endY) {\n boolean within = true;\n int largerX = Math.max(startX, endX);\n int smallerX = Math.min(startX, endX);\n int largerY = Math.max(startY, endY);\n int smallerY = Math.min(startY, endY);\n \n if (smallerX < 1 || smallerY < 1 || largerX > GRID_DIMENSIONS || largerY > GRID_DIMENSIONS) {\n within = false;\n }\n \n return within;\n }", "@Test\n\tpublic void testCuatroEnRayaDiag2() {\n\t\t\n\t\tint []posX = new int[4];\n\t\tint []posY = new int[4];\n\t\tfor (int i = 1; i <= 12; ++i) {\n\t\t\tint sx = Math.min(i, 7);\n\t\t\tint sy = Math.min(13 - i, 6);\n\t\t\twhile ((sy - 4 >= 0) && (sx - 4 >= 0)) {\n\t\t\t\tfor (int l = 0; l < 4; ++l) {\n\t\t\t\t\tposX[l] = sx - l;\n\t\t\t\t\tposY[l] = sy - l;\n\t\t\t\t}\n\t\t\t\tpruebaCuatroEnRaya(posX, posY);\n\t\t\t\tsy--; sx--;\n\t\t\t}\n\t\t}\n\t}", "public void colorBarrenRectangles() {\n\n ListIterator<Integer[]> iterator = allRectangles.listIterator();\n while (iterator.hasNext()) {\n\n Integer[] rectangle = iterator.next();\n\n for (int i = rectangle[0]; i <= rectangle[2]; i++) {\n for (int j = rectangle[1]; j <= rectangle[3]; j++) {\n mColor[i][j] = 1;\n }\n }\n }\n }", "private boolean checkOverlap(int row, int col, int length){\n \tif(!inBounds(row,col)){\n \t\treturn false;\n \t}\n \tfor(int i = row; i < row + length; i++ ){\n\t\t\tfor(int j = col; j < col + length; j++){\n\t\t\t\tif(grid[i][col] == 1 || row + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t\tif(grid[row][j] == 1 || col + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t}\n \t\t\n \t}\n \treturn true;\n }", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public static void main(String[] args) {\r\n\t\tint[][] blocks = new int[3][3];\r\n\t\tint k = 0;\r\n\t\tfor (int i = 0; i < 3; i++) {\r\n\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\tblocks[i][j] = k;\r\n\t\t\t\tk++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tBoard board = new Board(blocks);\r\n\t\tSystem.out.println(board.isGoal());\r\n\t\tSystem.out.println(board.hamming());\r\n\t\tSystem.out.println(board.manhattan());\r\n\r\n\t\tint[][] blocks2 = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 0 } };\r\n\t\tBoard board2 = new Board(blocks2);\r\n\t\tSystem.out.println(board2.isGoal());\r\n\t\tSystem.out.println(board2.hamming());\r\n\t\tSystem.out.println(board2.manhattan());\r\n\r\n\t\tint[][] blocks3 = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 0, 8 } };\r\n\t\tBoard board3 = new Board(blocks3);\r\n\t\tSystem.out.println(board3.isGoal());\r\n\t\tSystem.out.println(board3.hamming());\r\n\t\tSystem.out.println(board3.manhattan());\r\n\r\n\t\tint[][] blocks4 = { { 1, 2, 3 }, { 4, 5, 6 }, { 0, 8, 7 } };\r\n\t\tBoard board4 = new Board(blocks4);\r\n\t\tSystem.out.println(board4.isGoal());\r\n\t\tSystem.out.println(board4.hamming());\r\n\t\tSystem.out.println(board4.manhattan());\r\n\r\n\t\tint[][] blocks5 = { { 8, 1, 3 }, { 4, 0, 2 }, { 7, 6, 5 } };\r\n\t\tBoard board5 = new Board(blocks5);\r\n\t\tSystem.out.println(board5.isGoal());\r\n\t\tSystem.out.println(board5.hamming());\r\n\t\tSystem.out.println(board5.manhattan());\r\n\t\tSystem.out.println(board5.toString());\r\n\t\tList<Board> neighborsList = board5.neighborsList();\r\n\t\tfor (Board b : neighborsList) {\r\n\t\t\tSystem.out.println(b.toString());\r\n\t\t}\r\n\t}", "private void swellMountains(Square[][]Squares, int rows, int columns, int[][] terrainLoc)\n {\n int swellRand = (int) Math.sqrt(grid);\n int swellRand2 = (int) Math.sqrt(grid);\n int swellTolerance;\n \n // make sure that the mountains are swelled in proportion to the grid shape\n if(columns>rows)\n {\n swellTolerance = rows/25+1;\n }\n else\n {\n swellTolerance = columns/25+1;\n }\n \n // creating new mountains around the seeds\n \n // going through every second row \n for (int a = 1; a < rows-2 ; a=a+2)\n {\n // going through every column\n for (int b = 1 ; b < columns-2 ; b++)\n { \n if (terrainLoc[a][b] == 1)\n {\n // if a mountain seed is found, start making a bigger mountain on it by creating\n // three differently shaped rectangles out of mountain tiles\n int scRand;\n \n // loop for going through each rectangle\n for(int c=0;c<3;c++)\n {\n // loop for randoming mountain tiles 20 times around the seed\n for(int d = 0;d<20;d++)\n {\n // create a vertical rectangle\n if(c==0)\n {\n swellRand = (int) ((Math.random() * Math.sqrt(grid))/20)+1;\n swellRand2 = (int) ((Math.random() * Math.sqrt(grid))/40)+1;\n }\n // create a horizontal rectangle\n if (c == 1)\n {\n swellRand = (int) ((Math.random() * Math.sqrt(grid))/40)+1;\n swellRand2 = (int) ((Math.random() * Math.sqrt(grid))/20)+1;\n }\n // create a square\n if (c==2)\n {\n swellRand = (int) ((Math.random() * Math.sqrt(grid))/30)+1;\n swellRand2 = (int) ((Math.random() * Math.sqrt(grid))/30)+1;\n }\n \n // randoming the actual place for a tile and making sure it does not go over the array\n scRand = (int) (Math.random() * 8) + 1;\n \n switch (scRand)\n {\n case 1:\n if(a+swellRand < rows && b+swellRand2 < columns)\n Squares[a+swellRand][b+swellRand2].setTerrain(1);\n \n case 2:\n if(a-swellRand >= 0 && b-swellRand2 >=0)\n Squares[a-swellRand][b-swellRand2].setTerrain(1);\n \n case 3: \n if(a+swellRand < rows && b-swellRand2 >=0)\n Squares[a+swellRand][b-swellRand2].setTerrain(1);\n \n case 4:\n if(a-swellRand > 0 && b+swellRand2 < columns)\n Squares[a-swellRand][b+swellRand2].setTerrain(1);\n \n case 5:\n if(a<rows && a>=0 && b+swellRand < columns)\n Squares[a][b+swellRand].setTerrain(1);\n \n case 6:\n if(a<rows && a>=0 && b-swellRand >= 0)\n Squares[a][b-swellRand].setTerrain(1);\n\n case 7:\n if(a+swellRand < rows && b>=0 && b<columns)\n Squares[a+swellRand][b].setTerrain(1);\n\n case 8:\n if(a-swellRand >= 0 && b>=0 && b<columns)\n Squares[a-swellRand][b].setTerrain(1);\n }\n }\n }\n }\n }\n }\n }", "boolean rectRect(float r1x, float r1y, float r1w, float r1h, float r2x, float r2y, float r2w, float r2h) {\n\t \n\t // are the sides of one rectangle touching the other?\n\t \n\t if (r1x + r1w >= r2x && // r1 right edge past r2 left\n\t r1x <= r2x + r2w && // r1 left edge past r2 right\n\t r1y + r1h >= r2y && // r1 top edge past r2 bottom\n\t r1y <= r2y + r2h) { // r1 bottom edge past r2 top\n\t return true;\n\t }\n\t return false;\n\t}", "private void drawGame() {\r\n //For each each cell of the grid if there is a snake draw green,\r\n //an apple draw red or nothing draw white.\r\n for (int x = 0; x < gridWidth; x++) {\r\n for (int y = 0; y < gridHeight; y++) {\r\n if (isSnakeAt(new Coordinates(x, y))) {\r\n drawCell(x, y, Color.GREEN);\r\n } else if (apple.equals(new Coordinates(x, y))) {\r\n drawCell(x, y, Color.RED);\r\n } else {\r\n drawCell(x, y, Color.WHITE);\r\n }\r\n }\r\n }\r\n //Draw a grid around the game grid\r\n gc.strokeRect(0, 0, gridWidth * cellSize, gridHeight * cellSize); \r\n }", "private List<Rectangle> getRectanglesToConsiderForBranchingVarCalculation () {\r\n \r\n List<Rectangle> rectanglesToConsider = new ArrayList<Rectangle> ();\r\n \r\n //for every constraint, see if it has rects at the best lp\r\n \r\n for (Map <Double, List<Rectangle>> rectMap: myInfeasibleRectanglesList) {\r\n for (List<Rectangle> rectList : rectMap.values()) { \r\n \r\n rectanglesToConsider.addAll(rectList );\r\n \r\n } \r\n }\r\n \r\n return rectanglesToConsider;\r\n }", "@Test\n void findIntersections() {\n Cuboid cuboid1 = new Cuboid(4,4,4);\n Ray ray1 = new Ray(new Point3D(-3,0,0), new Vector3D(1,0,0));\n ArrayList<GeoPoint> actual1 = cuboid1.findIntersections(ray1);\n ArrayList<GeoPoint> expected1 = new ArrayList<>();\n expected1.add(new GeoPoint(cuboid1, new Point3D(2,0,0)));\n expected1.add(new GeoPoint(cuboid1, new Point3D(-2,0,0)));\n\n assertTrue(Util.intersectionsEqual(expected1, actual1));\n\n //Aligned with Y axis but have different dimensions\n Cuboid cuboid2 = new Cuboid(2,4,3);\n Ray ray2 = new Ray(new Point3D(0,100,0), new Vector3D(0,-1,0));\n ArrayList<GeoPoint> actual2 = cuboid2.findIntersections(ray2);\n ArrayList<GeoPoint> expected2 = new ArrayList<>();\n expected2.add(new GeoPoint(cuboid1, new Point3D(0,2,0)));\n assertEquals(expected2.get(0).point, actual2.get(0).point);\n\n Cuboid cuboid3 = new Cuboid(2,4,3, new Ray(new Point3D(1,1,1), new Vector3D(0,0,1)));\n Ray ray3 = new Ray(new Point3D(0,100,0), new Vector3D(0,-1,0));\n ArrayList<GeoPoint> actual3 = cuboid3.findIntersections(ray3);\n ArrayList<GeoPoint> expected3 = new ArrayList<>();\n expected3.add(new GeoPoint(cuboid1, new Point3D(0,3,0)));\n assertEquals(expected3.get(0).point, actual3.get(0).point);\n\n Ray ray = new Ray(new Point3D(0,0,-200), Vector3D.zAxis);\n ArrayList<GeoPoint> interesections = cuboid1.findIntersections(ray);\n }", "private void updateGrid() {\n\t\tfor (Neighbor neighbor : upsetNeighbors) {\n\t\t\tClear vacated_cell = new Clear(neighbor.getCoordsX(), neighbor.getCoordsY());\n\t\t\tgrid.setGridIndex(vacated_cell, vacated_cell.getCoordsX(), vacated_cell.getCoordsY());\n\t\t\tCell new_location = availableSpaces.get((int) (Math.random() * (availableSpaces.size() - 1)));\n\t\t\tint new_x = new_location.getCoordsX();\n\t\t\tint new_y = new_location.getCoordsY();\n\t\t\tif (neighbor.getClass().equals(Group1.class))\n\t\t\t\tgrid.setGridIndex(new Group1(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\telse\n\t\t\t\tgrid.setGridIndex(new Group2(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\tavailableSpaces.remove(new_location);\n\t\t\tavailableSpaces.add(vacated_cell);\n\t\t}\n\t}", "public void create3(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\n\n\t\t//creating stairs to connect rooms\n\t\tfor(int i = 0; i <this.Stairs.length; i++){\n\t\t\tfor(int p = 0; p < this.Stairs.length; p++){\n\t\t\t\tthis.Stairs[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}\n\t\tthis.Stairs[1][1] = 1;\n\n\t\t//creating board to keep track of garret\n\t\tfor(int i = 0; i <this.Garret.length; i++){\n\t\t\tfor(int p = 0; p < this.Garret.length; p++){\n\t\t\t\tthis.Garret[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of garret board\n\t\tthis.Garret[18][10] = 1;//putts garret there\n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 1; i< 6 ; i++){\n\t\t\tfor(int p = 7; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 7 ; i++){\n\t\t\tfor(int p = 7; p > 4; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 11 ; i++){\n\t\t\tfor(int p = 4; p < 5; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 10; i< 11 ; i++){\n\t\t\tfor(int p = 5; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 11; i< 15 ; i++){\n\t\t\tfor(int p = 7; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 7; p > 3; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 14 ; i++){\n\t\t\tfor(int p = 1; p < 4; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 12; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 5; i< 9 ; i++){\n\t\t\tfor(int p = 12; p < 13; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 14 ; i++){\n\t\t\tfor(int p = 7; p < 12; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 16 ; i++){\n\t\t\tfor(int p = 12; p < 13; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 9; i< 10 ; i++){\n\t\t\tfor(int p = 12; p < 19; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes\n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{\n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}", "private int threeInPos(final GameStateModule game, int player) {\n int count = 0;\n if(game.getHeight() == 4){ //if height is 4, no iterations needed\n //counting bottom up\n for(int i = 0; i < 2; i++) {\n for(int j = 0; j < 1; j++) {\n if((game.getAt(i,j) == player) && (game.getAt(i+1,j+1) == player) && (game.getAt(i+2,j+2) == player) && (game.getAt(i+3,j+3) == 0))\n count++;\n }\n }\n //counting top bottom\n for(int i = 4; i > 2; i--) {\n for(int j = 3; j > 2; j--) {\n if ((game.getAt(i, j) == player) && (game.getAt(i - 1, j-1) == player) && (game.getAt(i - 2, j-2) == player) && (game.getAt(i - 3, j-3) == 0))\n count++;\n }\n }\n }\n else { //if height is 5, iterations needed\n for(int i = 0; i < 3; i++) {\n for (int j = 0; j < 2; j++) {\n if ((game.getAt(i, j) == player) && (game.getAt(i + 1, j + 1) == player) && (game.getAt(i + 2, j + 2) == player) && (game.getAt(i+3, j+3) == 0))\n count++;\n }\n }\n for(int i = 5; i > 2; i--) {\n for (int j = 4; j > 2; j--) {\n if ((game.getAt(i, j) == player) && (game.getAt(i - 1, j - 1) == player) && (game.getAt(i - 2, j - 2) == player) && (game.getAt(i-3,j-3) == 0))\n count++;\n }\n }\n }\n return count;\n }", "@Test\n public void testExtraLargeRectangleMaze() {\n try {\n assertEquals(90, extraLargeRectMaze.size());\n\n //link pillars\n extraLargeRectMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n extraLargeRectMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n extraLargeRectMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n extraLargeRectMaze.linkPillars(Maze.position(2, 1), Maze.position(2, 2));\n extraLargeRectMaze.linkPillars(Maze.position(2, 2), Maze.position(3, 2));\n extraLargeRectMaze.linkPillars(Maze.position(3, 2), Maze.position(3, 3));\n extraLargeRectMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n extraLargeRectMaze.linkPillars(Maze.position(4, 3), Maze.position(4, 4));\n extraLargeRectMaze.linkPillars(Maze.position(4, 4), Maze.position(5, 4));\n extraLargeRectMaze.linkPillars(Maze.position(5, 4), Maze.position(5, 5));\n extraLargeRectMaze.linkPillars(Maze.position(5, 5), Maze.position(5, 6));\n extraLargeRectMaze.linkPillars(Maze.position(5, 6), Maze.position(6, 6));\n extraLargeRectMaze.linkPillars(Maze.position(6, 6), Maze.position(6, 7));\n extraLargeRectMaze.linkPillars(Maze.position(6, 7), Maze.position(7, 7));\n extraLargeRectMaze.linkPillars(Maze.position(7, 7), Maze.position(7, 8));\n extraLargeRectMaze.linkPillars(Maze.position(7, 8), Maze.position(7, 9));\n\n //set beginning and end\n extraLargeRectMaze.setBegin(Maze.position(0, 0));\n extraLargeRectMaze.setEnd(Maze.position(8, 9));\n shortestPath = MazeSolver.pStar(extraLargeRectMaze, 90);\n\n assertEquals(\"<0, 0>\", shortestPath.get(0).getCoordinateString());\n assertEquals(\"<1, 0>\", shortestPath.get(1).getCoordinateString());\n assertEquals(\"<1, 1>\", shortestPath.get(2).getCoordinateString());\n assertEquals(\"<2, 1>\", shortestPath.get(3).getCoordinateString());\n assertEquals(\"<2, 2>\", shortestPath.get(4).getCoordinateString());\n assertEquals(\"<3, 2>\", shortestPath.get(5).getCoordinateString());\n assertEquals(\"<3, 3>\", shortestPath.get(6).getCoordinateString());\n assertEquals(\"<4, 3>\", shortestPath.get(7).getCoordinateString());\n assertEquals(\"<4, 4>\", shortestPath.get(8).getCoordinateString());\n assertEquals(\"<5, 4>\", shortestPath.get(9).getCoordinateString());\n assertEquals(\"<5, 5>\", shortestPath.get(10).getCoordinateString());\n assertEquals(\"<5, 6>\", shortestPath.get(11).getCoordinateString());\n assertEquals(\"<6, 6>\", shortestPath.get(12).getCoordinateString());\n assertEquals(\"<6, 7>\", shortestPath.get(13).getCoordinateString());\n assertEquals(\"<7, 7>\", shortestPath.get(14).getCoordinateString());\n assertEquals(\"<7, 8>\", shortestPath.get(15).getCoordinateString());\n assertEquals(\"<7, 9>\", shortestPath.get(16).getCoordinateString());\n assertEquals(\"<8, 9>\", shortestPath.get(17).getCoordinateString());\n\n assertEquals(18, shortestPath.size());\n\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n }", "private static void drawGrid(int[][] grid) {\n BufferStrategy buf = canvas.getBufferStrategy();\n Graphics g = buf.getDrawGraphics();\n\n g.clearRect(0, 0, (2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_X), (2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_Y));\n\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid[0].length; j++) {\n g.setColor(pallette[grid[i][j]]);\n g.fillRect(WINDOW_MARGINS + (CELL_SIZE * i), WINDOW_MARGINS + (CELL_SIZE * j), CELL_SIZE, CELL_SIZE);\n }\n }\n\n if (!buf.contentsLost()) buf.show();\n g.dispose();\n }", "public boolean onGrid(int xValue, int yValue);", "private void countCells() {\n\t\tvisitedCells = 0;\n\t\ttotalCells = 0;\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\ttotalCells++;\n\t\t\t\tif (cell[ix][iy] == 1) {\n\t\t\t\t\tvisitedCells++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void populateGrid(int grid_size,int [][] mine_positions,int tot_mines){\n\t\tfor(int row=0;row<grid_size;row++){\n\t\t\tfor(int col=0;col<grid_size;col++){\n\t\t\t\n\t\t\t\tfor(int k=0;k<tot_mines;k++){\n\t\t\t\t\tif(row==mine_positions[k][0]&&col==mine_positions[k][1]){\n\t\t\t\t\t\tgrid[row][col].content='M';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tint mine_ctr=0;\n\t\t//Populating all cells\n\t\tfor(int row=0;row<grid_size;row++){\n\t\t\tfor(int col=0;col<grid_size;col++){\n\t\t\t\t\n\t\t\t\tmine_ctr=0;\n\t\t\t\t//Checking number of mines surrounding each cell\n\t\t\t\tif(grid[row][col].content=='M'){\n\t\t\t\t\tgrid[row][col].no_of_mines=0;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\t//Top left\n\t\t\t\t\tif(grid[row][col].top_left==1&&grid[row-1][col-1].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\t\n\t\t\t\t\t//Top \n\t\t\t\t\tif(grid[row][col].top==1&&grid[row-1][col].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\t\n\t\t\t\t\t//Top right\n\t\t\t\t\tif(grid[row][col].top_right==1&&grid[row-1][col+1].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\t\n\t\t\t\t\t//Left\n\t\t\t\t\tif(grid[row][col].left==1&&grid[row][col-1].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\t\n\t\t\t\t\t//Right\n\t\t\t\t\tif(grid[row][col].right==1&&grid[row][col+1].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\t\n\t\t\t\t\t//Bottom left\n\t\t\t\t\tif(grid[row][col].bottom_left==1&&grid[row+1][col-1].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\t\t\n\t\t\t\t\t//Bottom\n\t\t\t\t\tif(grid[row][col].bottom==1&&grid[row+1][col].content=='M')\n\t\t\t\t\t\tmine_ctr++;\t\n\t\t\t\t\t\n\t\t\t\t\t//Bottom right\n\t\t\t\t\tif(grid[row][col].bottom_right==1&&grid[row+1][col+1].content=='M')\n\t\t\t\t\t\tmine_ctr++;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgrid[row][col].no_of_mines=mine_ctr;\n\t\t\t}\n\t\t}\n\t}", "public void splitBoard(Posn start, int currRows, int currCols) {\n int startRow = start.x;\n int startCol = start.y;\n if (currRows != 1 && currCols != 1) {\n // top left piece\n this.board.get(startCol).get(startRow).down = true; \n\n // top right piece\n this.board.get(startCol + currCols - 1).get(startRow).down = true; \n\n // bottom left right\n this.board.get(startCol).get(startRow + currRows - 1).right = true; \n this.board.get(startCol).get(startRow + currRows - 1).up = true; // bottom left up\n\n // bottom, right, left\n this.board.get(startCol + currCols - 1).get(startRow + currRows - 1).left = true; \n // bottom, right, up\n this.board.get(startCol + currCols - 1).get(startRow + currRows - 1).up = true; \n\n // connect middle pieces on both sides of subgrid\n for (int i = startRow + 1; i < startRow + currRows - 1; i++) { \n this.board.get(startCol).get(i).up = true;\n this.board.get(startCol).get(i).down = true;\n this.board.get(startCol + currCols - 1).get(i).up = true;\n this.board.get(startCol + currCols - 1).get(i).down = true;\n }\n // connect middle pieces on bottom of subgrid\n for (int i = startCol + 1; i < startCol + currCols - 1; i++) { \n this.board.get(i).get(startRow + currRows - 1).left = true;\n this.board.get(i).get(startRow + currRows - 1).right = true;\n }\n }\n\n // grid base cases\n if (this.height == 1) {\n for (ArrayList<GamePiece> p : this.board) {\n if (p.get(0).row == 0) {\n p.get(0).right = true;\n }\n else if (p.get(0).row == this.width - 1) {\n p.get(0).left = true;\n }\n else {\n p.get(0).right = true;\n p.get(0).left = true;\n }\n }\n }\n else if (this.width == 1) {\n for (GamePiece p : this.board.get(0)) {\n if (p.col == 0) {\n p.down = true;\n }\n else if (p.col == this.height - 1) {\n p.up = true;\n }\n else {\n p.down = true;\n p.up = true;\n }\n }\n }\n else if (currRows == 2) {\n for (int i = startCol + 1; i < startCol + currCols - 1; i++) {\n this.board.get(i).get(startRow).down = true;\n this.board.get(i).get(startRow + 1).up = true;\n }\n }\n else if (currRows == 3 && currCols == 3) { // base case for odd grid\n this.board.get(startCol).get(startRow + 1).right = true;\n this.board.get(startCol + 1).get(startRow + 1).left = true;\n this.board.get(startCol + 1).get(startRow + 1).up = true;\n this.board.get(startCol + 1).get(startRow).down = true;\n\n }\n // recur if the grid can be divided into 4 non-overlapping quadrants\n else if (currRows > 3 || currCols > 3) { \n this.splitBoard(new Posn(startRow, startCol), (int) Math.ceil(currRows / 2.0),\n (int) Math.ceil(currCols / 2.0));\n this.splitBoard(new Posn(startRow + (int) Math.ceil(currRows / 2.0), startCol), currRows / 2,\n (int) Math.ceil(currCols / 2.0));\n this.splitBoard(new Posn(startRow + (int) Math.ceil(currRows / 2.0),\n startCol + (int) Math.ceil(currCols / 2.0)), currRows / 2, currCols / 2);\n this.splitBoard(new Posn(startRow, startCol + (int) Math.ceil(currCols / 2.0)),\n (int) Math.ceil(currRows / 2.0), currCols / 2);\n }\n }" ]
[ "0.625738", "0.6093996", "0.6008839", "0.6004307", "0.59694815", "0.59248614", "0.59162396", "0.5900531", "0.5866506", "0.58659035", "0.5848741", "0.5847196", "0.5814262", "0.58096224", "0.580572", "0.57979023", "0.5792684", "0.578981", "0.57681054", "0.576207", "0.5737448", "0.5729452", "0.5728761", "0.5717655", "0.5708658", "0.5679434", "0.5666964", "0.56556815", "0.5649096", "0.5647732", "0.5647643", "0.5642048", "0.56407446", "0.56346124", "0.5629523", "0.5621912", "0.5612097", "0.5602437", "0.55940735", "0.55827177", "0.55816287", "0.5573638", "0.5573155", "0.55618757", "0.55502146", "0.5536566", "0.5526405", "0.55208784", "0.55144113", "0.55131507", "0.54915166", "0.549073", "0.54838324", "0.54770136", "0.54715437", "0.5465556", "0.5464643", "0.54600394", "0.54444355", "0.54427475", "0.5438403", "0.54363567", "0.542811", "0.54219294", "0.54205567", "0.54173553", "0.53911763", "0.5388731", "0.53843176", "0.5364387", "0.53613234", "0.53580606", "0.53533626", "0.53528315", "0.5344321", "0.5341853", "0.53382343", "0.5333785", "0.53302705", "0.5326947", "0.5323542", "0.53215975", "0.5320692", "0.53192174", "0.5314106", "0.5309272", "0.53051513", "0.53043324", "0.5302862", "0.530065", "0.52972", "0.52958846", "0.52956665", "0.52930665", "0.528867", "0.52835596", "0.5282612", "0.52792853", "0.52783084", "0.52749664", "0.5271817" ]
0.0
-1
int id for the next photo to be added to the Library Create instance of which contains the photos name, directory, originial name, extension, a unique id number, the tags it contains, the set of all previous names and the log file handler.
public Photo(String name, String dir){ this.name = name; this.dir = dir; this.extension = ImageTypeChecker.getExtension(name); this.originalName = ImageTypeChecker.removeExtension(name); this.id = nextId; nextId += 1; tags = new LinkedHashMap<String, Tag>(); //key: tag name, value: Tag object prevNames = new LinkedHashSet<String>(); //set handler for each instance of a photo try{ String workingDir = System.getProperty("user.dir"); String fileName = workingDir + this.originalName + ".log"; handler = new FileHandler(fileName, true); } catch (IOException e) { e.printStackTrace(); } handler.setFormatter(new SimpleFormatter()); logger.addHandler(handler); logger.setLevel(Level.ALL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getImageId(){\n \t\treturn imageId;\n \t}", "@Override\n\tpublic Serializable getId() {\n\t\treturn imageId;\n\t}", "public int getImageId() {\n return imageId_;\n }", "public int getImageId() {\n return imageId_;\n }", "public abstract long NewFileNumber();", "public int getImageID() {\n return imageID;\n }", "public static int getLastImageId(ContentResolver cr) {\n final String[] imageColumns = { MediaStore.Images.Media._ID,\n MediaStore.Images.Media.DATA };\n final String imageOrderBy = MediaStore.Images.Media._ID + \" DESC\";\n Cursor imageCursor = cr.query(\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI, imageColumns,\n null, null, imageOrderBy);\n if (imageCursor.moveToFirst()) {\n int id = imageCursor.getInt(imageCursor\n .getColumnIndex(MediaStore.Images.Media._ID));\n imageCursor.close();\n return id;\n } else {\n return 0;\n }\n }", "public int getImage_id() {\n\t\treturn image_id;\n\t}", "private static int getNextID() {\n return persons.get(persons.size() - 1).getId() + 1;\n }", "public ocpp.IdTagInfo addNewIdTagInfo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdTagInfo target = null;\n target = (ocpp.IdTagInfo)get_store().add_element_user(IDTAGINFO$0);\n return target;\n }\n }", "public int getId() {\n // some code goes here\n int id = f.getAbsoluteFile().hashCode();\n //System.out.println(id);\n return id;\n }", "public int getId() {\n // some code goes here\n \treturn m_f.getAbsoluteFile().hashCode();\n }", "public long getImageId() {\n return imageId;\n }", "public static int createFileID(String fileName) {\n\n int fileID;\n\n fileID = 0;\n\n // checks to see if the curent fileID is in database. If yes, then it generates a random new one until a new one is found. \n while (containsFileID(fileID)) {\n fileID = (int) (Math.random() * 100000000);\n }\n // adds this id/name pairing to the database\n addOrUpdateFileName(fileID, fileName);\n System.out.println(\"CreateFileID: \" + fileID + \", \" + fileName);\n // returns the id so the TranslationFile object can store it.\n\n return fileID;\n }", "public static Long getAValidImageId() {\n\t\tLong id = getAId();\n\t\tif (id == null) {\n\n\t\t\tImage img = new Image(\"http://dummy.com/img.jpg\", (long)(Math.random()*10000), \"Description\", \"keyword\", new Date(0001L));\n\t\t\tIImageStore imageStore = StoreFactory.getImageStore();\n\t\t\timageStore.insert(img);\n\n\t\t\tid = getAId();\n\t\t\tif (id == null) {\n\t\t\t\tthrow new RuntimeException(\"There are no images in DB, and I can't insert one. Cannot run tests without.\");\n\t\t\t}\n\t\t}\n\t\treturn id;\n\t}", "@Override\n public String generateUniqueID() {\n return LIBRARY_CODE + \"_B_\" + counter;\n }", "@Override\n public String generateUniqueID() {\n return LIBRARY_CODE + \"_B_\" + counter;\n }", "@Override\r\n\tpublic void addTag(String photoId, String tagType, String tagValue) {\r\n\t\tList<IAlbum> albums=model.getUser(userId).getAlbums();\r\n\t\tIPhoto getMe=null;\r\n\t\tboolean working=false;\r\n\t\t/*for only the current photo*/\r\n\t/*\tIAlbum temp= photoListGui.getCurrentAlbum();\r\n\t\tList<IPhoto> photoList=temp.getPhotoList();\r\n\t\tInteractiveControl.PhotoCompareForNames comparePower2=new InteractiveControl.PhotoCompareForNames();\r\n\t\tCollections.sort(photoList, comparePower2);\r\n\t\t\t\tint index=Collections.binarySearch(photoList, photoId);\r\n\t\t\tif(index>=0){\r\n\t\t\t\tgetMe=photoList.get(index);\r\n\t\t\t\tswitch(tagType.toLowerCase()){\r\n\t\t\t\tcase \"location\": \r\n\t\t\t\t\tString check=getMe.getLocationTag();\r\n\t\t\t\t\tif((check==null|| check.isEmpty())){\r\n\t\t\t\t\t\tgetMe.setLocationTag(tagValue);\r\n\t\t\t\t\t\tString success=\"Added tag:\\n\"+photoId+\"\\n\"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(success);\t\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\tphotoListGui.setLocationTagLabel(tagValue);\r\n\t\t\t\t\t\tworking=true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(!check.isEmpty()){\r\n\t\t\t\t\t\tJButton showTextButton=new JButton();\r\n\t\t\t\t\t\tString error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(showTextButton,error);\r\n\t\t\t\t\t\tcallTagGui((Photo)getMe);\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(!(check.equals(tagValue))){\r\n\t\t\t\t\t\tgetMe.setLocationTag(tagValue);\r\n\t\t\t\t\t\tString success=\"Added tag:\\n\"+photoId+\"\\n\"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(success);\r\n\t\t\t\t\t\tJButton showTextButton=new JButton();\r\n\t\t\t\t\t\tshowError();String error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(showTextButton,error);\r\n\t\t\t\t\t\tcallTagGui((Photo)getMe);\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tString error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\tcase \"person\":\r\n\t\t\t\t\tif(getMe.getPeopleTags().contains(tagValue)){\r\n\t\t\t\t\t\tString error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tJButton showTextButton=new JButton();\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(showTextButton,error);\r\n\t\t\t\t\t\tcallTagGui((Photo)getMe);\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\t\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tgetMe.personTag(tagValue);\r\n\t\t\t\t\tString success2=\"Added tag:\\n\"+photoId+\"\\n\"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\tsetErrorMessage(success2);\r\n\t\t\t\t\tshowError();\r\n\t\t\t\t\tphotoListGui.updateTagList();\r\n\t\t\t\t\tbreak; \r\n\t\t\t\tdefault:\r\n\t\t\t\t\tString error=\"Error: Not a real tag\";\r\n\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\tshowError();\t\r\n\t\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\t}*/\r\n\t\t/*below if for all the photos*/\r\n\t\touterLoop:\r\n\t\tfor (int i=0; i<model.getUser(userId).getAlbums().size(); i++){\r\n\t\t\tIAlbum temp= albums.get(i);\r\n\t\t\tList<IPhoto> photoList=temp.getPhotoList();\r\n\t\t\tInteractiveControl.PhotoCompareForNames comparePower2=new InteractiveControl.PhotoCompareForNames();\r\n\t\t\tCollections.sort(photoList, comparePower2);\r\n\t\t\t\t\tint index=Collections.binarySearch(photoList, photoId);\r\n\t\t\t\tif(index>=0){\r\n\t\t\t\t\tgetMe=photoList.get(index);\r\n\t\t\t\t\tswitch(tagType.toLowerCase()){\r\n\t\t\t\t\tcase \"location\": \r\n\t\t\t\t\t\tString check=getMe.getLocationTag();\r\n\t\t\t\t\t\tif((check==null|| check.isEmpty())){\r\n\t\t\t\t\t\t\tgetMe.setLocationTag(tagValue);\r\n\t\t\t\t\t\t\tString success=\"Added tag:\\n\"+photoId+\"\\n\"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tsetErrorMessage(success);\t\r\n\t\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\t\tphotoListGui.setLocationTagLabel(tagValue);\r\n\t\t\t\t\t\t\tworking=true;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(!check.isEmpty()){\r\n\t\t\t\t\t\t\tJButton showTextButton=new JButton();\r\n\t\t\t\t\t\t\tString error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(showTextButton,error);\r\n\t\t\t\t\t\t\tcallTagGui((Photo)getMe);\r\n\t\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(!(check.equals(tagValue))){\r\n\t\t\t\t\t\t\tgetMe.setLocationTag(tagValue);\r\n\t\t\t\t\t\t\tString success=\"Added tag:\\n\"+photoId+\"\\n\"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tsetErrorMessage(success);\r\n\t\t\t\t\t\t\tJButton showTextButton=new JButton();\r\n\t\t\t\t\t\t\tshowError();String error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(showTextButton,error);\r\n\t\t\t\t\t\t\tcallTagGui((Photo)getMe);\r\n\t\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tString error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tcase \"person\":\r\n\t\t\t\t\t\tif(getMe.getPeopleTags().contains(tagValue)){\r\n\t\t\t\t\t\t\tString error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tJButton showTextButton=new JButton();\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(showTextButton,error);\r\n\t\t\t\t\t\t\tcallTagGui((Photo)getMe);\r\n\t\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\t\tshowError();\t\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tgetMe.personTag(tagValue);\r\n\t\t\t\t\t\tString success2=\"Added tag:\\n\"+photoId+\"\\n\"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(success2);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\tphotoListGui.updateTagList();\r\n\t\t\t\t\t\tbreak; \r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tString error=\"Error: Not a real tag\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\t\r\n\t\t\t\t\t\treturn ;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(getMe==null){\r\n\t\t\tString error=\"Photo \"+photoId+\" does not exist\";\r\n\t\t\tsetErrorMessage(error);\r\n\t\t\tshowError();\t\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t/*random guesses atm in how to access these data structures*/\r\n\t\t\r\n\t\t/*if(check.equals(tagType)){\r\n\t\t\tString error=\"Tag already exists for <\"+photoId+\"> <\"+tagType+\":<\"+tagValue+\">\";\r\n\t\t\tcmd.setErrorMessage(error);\r\n\t\t\tcmd.showError();\r\n\t\t}\r\n\t\tgetMe.setTagInjective(check);\r\n\t\tString success=\"Added tag:\\n<\"+photoId+\"> <\"+tagType+\">:<\"+tagValue+\">\";\r\n\t\tcmd.setErrorMessage(success);\r\n\t\tcmd.showError();*/\r\n\t}", "private static int nextID() {\r\n\t\treturn ID++;\r\n\t}", "public com.agbar.service.model.ImgImportadas create(long imageId);", "public String getPhotoId() {\n return fullPhoto.getPhotoId();\n }", "public static int nextId(String key) {\n //Setting the id to number of users created + 1 and clearing id file\n try {\n File file = FileHandler.loadFile(key + \".id\");\n InputStream input = new FileInputStream(file);\n Scanner scanner = new Scanner(input);\n int id = scanner.nextInt() + 1;\n scanner.close();\n input.close();\n FileHandler.ClearFile(file);\n //updating id file with new numbers\n PrintStream printStream = new PrintStream(new FileOutputStream(file));\n printStream.println(id);\n printStream.close();\n return id;\n } catch (FileNotFoundException fileNotFoundException) {\n fileNotFoundException.printStackTrace();\n logger.fatal(key + \"id file doesnt exist.\");\n } catch (IOException e) {\n e.printStackTrace();\n logger.error(\"couldn't read from \" + key + \" id file.\");\n }\n return -1;\n }", "public String getPhotoFileName() {\n return \"IMG_\" + getId().toString() + \".jpg\";\n }", "public int getId() {\n // some code goes here\n return f.getAbsoluteFile().hashCode();\n //throw new UnsupportedOperationException(\"implement this\");\n }", "private long generateID() {\n\t\treturn ++lastID;\n\t}", "public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}", "private static int generateCircleId(){\n return snextCircleId.incrementAndGet();\n\n }", "private String getUniquePhotoName() {\n\t\tTime now = new Time();\n\t\tnow.setToNow();\n\t\treturn now.format2445();\n\t}", "public Photo() {\n\t\tthis(UUID.randomUUID().toString() + \".jpg\");\n\t}", "private static long newId() {\n return REQUEST_ID.getAndIncrement();\n }", "public String getPhotoId() {\n\t\treturn photoId;\n\t}", "public long getImageId() {\n return this.imageId;\n }", "public void addRpiPhoto(String rpiId, String time, String name, byte[] photo) throws SQLException, IOException;", "public String getImageId() {\n return imageId;\n }", "public int generateId(){\n return repository.getCount()+1;\n }", "protected void initFile(String id) throws FormatException, IOException {\n // normalize file name\n super.initFile(normalizeFilename(null, id));\n id = currentId;\n String dir = new File(id).getParent();\n\n // parse and populate OME-XML metadata\n String fileName = new Location(id).getAbsoluteFile().getAbsolutePath();\n RandomAccessInputStream ras = new RandomAccessInputStream(fileName);\n String xml;\n IFD firstIFD;\n try {\n TiffParser tp = new TiffParser(ras);\n firstIFD = tp.getFirstIFD();\n xml = firstIFD.getComment();\n }\n finally {\n ras.close();\n }\n\n if (service == null) setupService();\n OMEXMLMetadata meta;\n try {\n meta = service.createOMEXMLMetadata(xml);\n }\n catch (ServiceException se) {\n throw new FormatException(se);\n }\n\n hasSPW = meta.getPlateCount() > 0;\n\n for (int i=0; i<meta.getImageCount(); i++) {\n int sizeC = meta.getPixelsSizeC(i).getValue().intValue();\n service.removeChannels(meta, i, sizeC);\n }\n\n // TODO\n //Hashtable originalMetadata = meta.getOriginalMetadata();\n //if (originalMetadata != null) metadata = originalMetadata;\n\n LOGGER.trace(xml);\n\n if (meta.getRoot() == null) {\n throw new FormatException(\"Could not parse OME-XML from TIFF comment\");\n }\n\n String[] acquiredDates = new String[meta.getImageCount()];\n for (int i=0; i<acquiredDates.length; i++) {\n acquiredDates[i] = meta.getImageAcquiredDate(i);\n }\n\n String currentUUID = meta.getUUID();\n service.convertMetadata(meta, metadataStore);\n\n // determine series count from Image and Pixels elements\n int seriesCount = meta.getImageCount();\n core = new CoreMetadata[seriesCount];\n for (int i=0; i<seriesCount; i++) {\n core[i] = new CoreMetadata();\n }\n info = new OMETiffPlane[seriesCount][];\n\n tileWidth = new int[seriesCount];\n tileHeight = new int[seriesCount];\n\n // compile list of file/UUID mappings\n Hashtable<String, String> files = new Hashtable<String, String>();\n boolean needSearch = false;\n for (int i=0; i<seriesCount; i++) {\n int tiffDataCount = meta.getTiffDataCount(i);\n for (int td=0; td<tiffDataCount; td++) {\n String uuid = null;\n try {\n uuid = meta.getUUIDValue(i, td);\n }\n catch (NullPointerException e) { }\n String filename = null;\n if (uuid == null) {\n // no UUID means that TiffData element refers to this file\n uuid = \"\";\n filename = id;\n }\n else {\n filename = meta.getUUIDFileName(i, td);\n if (!new Location(dir, filename).exists()) filename = null;\n if (filename == null) {\n if (uuid.equals(currentUUID) || currentUUID == null) {\n // UUID references this file\n filename = id;\n }\n else {\n // will need to search for this UUID\n filename = \"\";\n needSearch = true;\n }\n }\n else filename = normalizeFilename(dir, filename);\n }\n String existing = files.get(uuid);\n if (existing == null) files.put(uuid, filename);\n else if (!existing.equals(filename)) {\n throw new FormatException(\"Inconsistent UUID filenames\");\n }\n }\n }\n\n // search for missing filenames\n if (needSearch) {\n Enumeration en = files.keys();\n while (en.hasMoreElements()) {\n String uuid = (String) en.nextElement();\n String filename = files.get(uuid);\n if (filename.equals(\"\")) {\n // TODO search...\n // should scan only other .ome.tif files\n // to make this work with OME server may be a little tricky?\n throw new FormatException(\"Unmatched UUID: \" + uuid);\n }\n }\n }\n\n // build list of used files\n Enumeration en = files.keys();\n int numUUIDs = files.size();\n HashSet fileSet = new HashSet(); // ensure no duplicate filenames\n for (int i=0; i<numUUIDs; i++) {\n String uuid = (String) en.nextElement();\n String filename = files.get(uuid);\n fileSet.add(filename);\n }\n used = new String[fileSet.size()];\n Iterator iter = fileSet.iterator();\n for (int i=0; i<used.length; i++) used[i] = (String) iter.next();\n\n // process TiffData elements\n Hashtable<String, IFormatReader> readers =\n new Hashtable<String, IFormatReader>();\n for (int i=0; i<seriesCount; i++) {\n int s = i;\n LOGGER.debug(\"Image[{}] {\", i);\n LOGGER.debug(\" id = {}\", meta.getImageID(i));\n\n String order = meta.getPixelsDimensionOrder(i).toString();\n\n PositiveInteger samplesPerPixel = null;\n if (meta.getChannelCount(i) > 0) {\n samplesPerPixel = meta.getChannelSamplesPerPixel(i, 0);\n }\n int samples = samplesPerPixel == null ? -1 : samplesPerPixel.getValue();\n int tiffSamples = firstIFD.getSamplesPerPixel();\n\n boolean adjustedSamples = false;\n if (samples != tiffSamples) {\n LOGGER.warn(\"SamplesPerPixel mismatch: OME={}, TIFF={}\",\n samples, tiffSamples);\n samples = tiffSamples;\n adjustedSamples = true;\n }\n\n if (adjustedSamples && meta.getChannelCount(i) <= 1) {\n adjustedSamples = false;\n }\n\n int effSizeC = meta.getPixelsSizeC(i).getValue().intValue();\n if (!adjustedSamples) {\n effSizeC /= samples;\n }\n if (effSizeC == 0) effSizeC = 1;\n if (effSizeC * samples != meta.getPixelsSizeC(i).getValue().intValue()) {\n effSizeC = meta.getPixelsSizeC(i).getValue().intValue();\n }\n int sizeT = meta.getPixelsSizeT(i).getValue().intValue();\n int sizeZ = meta.getPixelsSizeZ(i).getValue().intValue();\n int num = effSizeC * sizeT * sizeZ;\n\n OMETiffPlane[] planes = new OMETiffPlane[num];\n for (int no=0; no<num; no++) planes[no] = new OMETiffPlane();\n\n int tiffDataCount = meta.getTiffDataCount(i);\n boolean zOneIndexed = false;\n boolean cOneIndexed = false;\n boolean tOneIndexed = false;\n\n // pre-scan TiffData indices to see if any of them are indexed from 1\n\n for (int td=0; td<tiffDataCount; td++) {\n NonNegativeInteger firstC = meta.getTiffDataFirstC(i, td);\n NonNegativeInteger firstT = meta.getTiffDataFirstT(i, td);\n NonNegativeInteger firstZ = meta.getTiffDataFirstZ(i, td);\n int c = firstC == null ? 0 : firstC.getValue();\n int t = firstT == null ? 0 : firstT.getValue();\n int z = firstZ == null ? 0 : firstZ.getValue();\n\n if (c >= effSizeC) cOneIndexed = true;\n if (z >= sizeZ) zOneIndexed = true;\n if (t >= sizeT) tOneIndexed = true;\n }\n\n for (int td=0; td<tiffDataCount; td++) {\n LOGGER.debug(\" TiffData[{}] {\", td);\n // extract TiffData parameters\n String filename = null;\n String uuid = null;\n try {\n filename = meta.getUUIDFileName(i, td);\n } catch (NullPointerException e) {\n LOGGER.debug(\"Ignoring null UUID object when retrieving filename.\");\n }\n try {\n uuid = meta.getUUIDValue(i, td);\n } catch (NullPointerException e) {\n LOGGER.debug(\"Ignoring null UUID object when retrieving value.\");\n }\n NonNegativeInteger tdIFD = meta.getTiffDataIFD(i, td);\n int ifd = tdIFD == null ? 0 : tdIFD.getValue();\n NonNegativeInteger numPlanes = meta.getTiffDataPlaneCount(i, td);\n NonNegativeInteger firstC = meta.getTiffDataFirstC(i, td);\n NonNegativeInteger firstT = meta.getTiffDataFirstT(i, td);\n NonNegativeInteger firstZ = meta.getTiffDataFirstZ(i, td);\n int c = firstC == null ? 0 : firstC.getValue();\n int t = firstT == null ? 0 : firstT.getValue();\n int z = firstZ == null ? 0 : firstZ.getValue();\n\n // NB: some writers index FirstC, FirstZ and FirstT from 1\n if (cOneIndexed) c--;\n if (zOneIndexed) z--;\n if (tOneIndexed) t--;\n\n int index = FormatTools.getIndex(order,\n sizeZ, effSizeC, sizeT, num, z, c, t);\n int count = numPlanes == null ? 1 : numPlanes.getValue();\n if (count == 0) {\n core[s] = null;\n break;\n }\n\n // get reader object for this filename\n if (filename == null) {\n if (uuid == null) filename = id;\n else filename = files.get(uuid);\n }\n else filename = normalizeFilename(dir, filename);\n IFormatReader r = readers.get(filename);\n if (r == null) {\n r = new MinimalTiffReader();\n readers.put(filename, r);\n }\n\n Location file = new Location(filename);\n if (!file.exists()) {\n // if this is an absolute file name, try using a relative name\n // old versions of OMETiffWriter wrote an absolute path to\n // UUID.FileName, which causes problems if the file is moved to\n // a different directory\n filename =\n filename.substring(filename.lastIndexOf(File.separator) + 1);\n filename = dir + File.separator + filename;\n\n if (!new Location(filename).exists()) {\n filename = currentId;\n }\n }\n\n // populate plane index -> IFD mapping\n for (int q=0; q<count; q++) {\n int no = index + q;\n planes[no].reader = r;\n planes[no].id = filename;\n planes[no].ifd = ifd + q;\n planes[no].certain = true;\n LOGGER.debug(\" Plane[{}]: file={}, IFD={}\",\n new Object[] {no, planes[no].id, planes[no].ifd});\n }\n if (numPlanes == null) {\n // unknown number of planes; fill down\n for (int no=index+1; no<num; no++) {\n if (planes[no].certain) break;\n planes[no].reader = r;\n planes[no].id = filename;\n planes[no].ifd = planes[no - 1].ifd + 1;\n LOGGER.debug(\" Plane[{}]: FILLED\", no);\n }\n }\n else {\n // known number of planes; clear anything subsequently filled\n for (int no=index+count; no<num; no++) {\n if (planes[no].certain) break;\n planes[no].reader = null;\n planes[no].id = null;\n planes[no].ifd = -1;\n LOGGER.debug(\" Plane[{}]: CLEARED\", no);\n }\n }\n LOGGER.debug(\" }\");\n }\n\n if (core[s] == null) continue;\n\n // verify that all planes are available\n LOGGER.debug(\" --------------------------------\");\n for (int no=0; no<num; no++) {\n LOGGER.debug(\" Plane[{}]: file={}, IFD={}\",\n new Object[] {no, planes[no].id, planes[no].ifd});\n if (planes[no].reader == null) {\n LOGGER.warn(\"Image ID '{}': missing plane #{}. \" +\n \"Using TiffReader to determine the number of planes.\",\n meta.getImageID(i), no);\n TiffReader r = new TiffReader();\n r.setId(currentId);\n try {\n planes = new OMETiffPlane[r.getImageCount()];\n for (int plane=0; plane<planes.length; plane++) {\n planes[plane] = new OMETiffPlane();\n planes[plane].id = currentId;\n planes[plane].reader = r;\n planes[plane].ifd = plane;\n }\n num = planes.length;\n }\n finally {\n r.close();\n }\n }\n }\n LOGGER.debug(\" }\");\n\n // populate core metadata\n info[s] = planes;\n try {\n if (!info[s][0].reader.isThisType(info[s][0].id)) {\n info[s][0].id = currentId;\n }\n for (int plane=0; plane<info[s].length; plane++) {\n if (!info[s][plane].reader.isThisType(info[s][plane].id)) {\n info[s][plane].id = info[s][0].id;\n }\n }\n\n info[s][0].reader.setId(info[s][0].id);\n tileWidth[s] = info[s][0].reader.getOptimalTileWidth();\n tileHeight[s] = info[s][0].reader.getOptimalTileHeight();\n\n core[s].sizeX = meta.getPixelsSizeX(i).getValue().intValue();\n int tiffWidth = (int) firstIFD.getImageWidth();\n if (core[s].sizeX != tiffWidth) {\n LOGGER.warn(\"SizeX mismatch: OME={}, TIFF={}\",\n core[s].sizeX, tiffWidth);\n }\n core[s].sizeY = meta.getPixelsSizeY(i).getValue().intValue();\n int tiffHeight = (int) firstIFD.getImageLength();\n if (core[s].sizeY != tiffHeight) {\n LOGGER.warn(\"SizeY mismatch: OME={}, TIFF={}\",\n core[s].sizeY, tiffHeight);\n }\n core[s].sizeZ = meta.getPixelsSizeZ(i).getValue().intValue();\n core[s].sizeC = meta.getPixelsSizeC(i).getValue().intValue();\n core[s].sizeT = meta.getPixelsSizeT(i).getValue().intValue();\n core[s].pixelType = FormatTools.pixelTypeFromString(\n meta.getPixelsType(i).toString());\n int tiffPixelType = firstIFD.getPixelType();\n if (core[s].pixelType != tiffPixelType) {\n LOGGER.warn(\"PixelType mismatch: OME={}, TIFF={}\",\n core[s].pixelType, tiffPixelType);\n core[s].pixelType = tiffPixelType;\n }\n core[s].imageCount = num;\n core[s].dimensionOrder = meta.getPixelsDimensionOrder(i).toString();\n\n // hackish workaround for files exported by OMERO that have an\n // incorrect dimension order\n String uuidFileName = \"\";\n try {\n if (meta.getTiffDataCount(i) > 0) {\n uuidFileName = meta.getUUIDFileName(i, 0);\n }\n }\n catch (NullPointerException e) { }\n if (meta.getChannelCount(i) > 0 && meta.getChannelName(i, 0) == null &&\n meta.getTiffDataCount(i) > 0 &&\n uuidFileName.indexOf(\"__omero_export\") != -1)\n {\n core[s].dimensionOrder = \"XYZCT\";\n }\n\n core[s].orderCertain = true;\n PhotoInterp photo = firstIFD.getPhotometricInterpretation();\n core[s].rgb = samples > 1 || photo == PhotoInterp.RGB;\n if ((samples != core[s].sizeC && (samples % core[s].sizeC) != 0 &&\n (core[s].sizeC % samples) != 0) || core[s].sizeC == 1 ||\n adjustedSamples)\n {\n core[s].sizeC *= samples;\n }\n\n if (core[s].sizeZ * core[s].sizeT * core[s].sizeC >\n core[s].imageCount && !core[s].rgb)\n {\n if (core[s].sizeZ == core[s].imageCount) {\n core[s].sizeT = 1;\n core[s].sizeC = 1;\n }\n else if (core[s].sizeT == core[s].imageCount) {\n core[s].sizeZ = 1;\n core[s].sizeC = 1;\n }\n else if (core[s].sizeC == core[s].imageCount) {\n core[s].sizeT = 1;\n core[s].sizeZ = 1;\n }\n }\n\n if (meta.getPixelsBinDataCount(i) > 1) {\n LOGGER.warn(\"OME-TIFF Pixels element contains BinData elements! \" +\n \"Ignoring.\");\n }\n core[s].littleEndian = firstIFD.isLittleEndian();\n core[s].interleaved = false;\n core[s].indexed = photo == PhotoInterp.RGB_PALETTE &&\n firstIFD.getIFDValue(IFD.COLOR_MAP) != null;\n if (core[s].indexed) {\n core[s].rgb = false;\n }\n core[s].falseColor = true;\n core[s].metadataComplete = true;\n }\n catch (NullPointerException exc) {\n throw new FormatException(\"Incomplete Pixels metadata\", exc);\n }\n }\n\n // remove null CoreMetadata entries\n\n Vector<CoreMetadata> series = new Vector<CoreMetadata>();\n Vector<OMETiffPlane[]> planeInfo = new Vector<OMETiffPlane[]>();\n for (int i=0; i<core.length; i++) {\n if (core[i] != null) {\n series.add(core[i]);\n planeInfo.add(info[i]);\n }\n }\n core = series.toArray(new CoreMetadata[series.size()]);\n info = planeInfo.toArray(new OMETiffPlane[0][0]);\n\n MetadataTools.populatePixels(metadataStore, this, false, false);\n for (int i=0; i<acquiredDates.length; i++) {\n if (acquiredDates[i] != null) {\n metadataStore.setImageAcquiredDate(acquiredDates[i], i);\n }\n }\n metadataStore = getMetadataStoreForConversion();\n }", "void addId(String root, String extension);", "public String getNextID() {\n String id = \"am\" + Integer.toString(nextID);\n nextID++;\n return id;\n }", "private void NavCamera(int id){\n RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(Constants.START_POSITION, Constants.START_POSITION);\n View view = getLayoutInflater().inflate(R.layout.im_view, null);\n view.setLayoutParams(layoutParams);\n\n (view.findViewById(R.id.imm)).setId(idForNewItem);\n\n mapGeneratedImage.put(idForNewItem, new ParametersGeneratedImage(view, id));\n int temp = 1;\n if (mapForNewNote.get(mapGeneratedImage.get(idForNewItem)._type) != null)\n temp = mapForNewNote.get(mapGeneratedImage.get(idForNewItem)._type) + 1;\n mapForNewNote.put(mapGeneratedImage.get(idForNewItem)._type, temp);\n\n relativeMoveLayout.addView(view);\n\n view.setOnClickListener(this);\n view.setOnTouchListener(this);\n\n Toast.makeText(getApplicationContext(), \"count droids: \" + temp, Toast.LENGTH_SHORT).show();\n Toast.makeText(getApplicationContext(), \"id: \" + view.getId(), Toast.LENGTH_SHORT).show();\n idForNewItem++;\n }", "public java.lang.String getPhotoId() {\n return photoId;\n }", "public java.lang.String getPhotoId() {\n return photoId;\n }", "public String getImageId() {\n return mImageId;\n }", "private static synchronized String getNextID() {\r\n\t\tlastID = lastID.add(BigInteger.valueOf(1));\r\n\t\t\r\n\t\treturn lastID.toString();\r\n\t}", "private static int nextInstanceID()\n {\n return baseID.incrementAndGet();\n }", "public Integer getFileid() {\n return fileid;\n }", "public int getImageNumber() {\n return imageNumber;\n }", "String galleryItemIdentity();", "public String getImageId() {\n return this.ImageId;\n }", "private void galleryAddPic() {\n\t}", "public int getImageTypeID() {\r\n return imageTypeID;\r\n }", "@Override\r\n\tpublic void addPhoto(String albumId, String photoFileName,\r\n\t\t\tString photoCaption) {\r\n\t\r\n\t}", "@Override\n public String getNewId()throws DVDLibraryPersistenceException{\n \n int intId = 0;\n for (String key : dvds.keySet()){\n if (Integer.valueOf(key) > intId){\n intId = Integer.valueOf(key);\n }\n }\n return String.valueOf(intId + 1);\n }", "private File getNextPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() == listFiles.size() - 1) {\r\n retVal = listFiles.get(0);\r\n fileList.setSelectedIndex(0);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() + 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() + 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "public String getImageIdentifier() {\n return this.imageIdentifier;\n }", "public Long getFileId() {\n/* 35:35 */ return this.fileId;\n/* 36: */ }", "II addId();", "static synchronized int nextID() {\n\t\treturn g_nID++;\n\t}", "public int getImageCount(String id) throws FormatException, IOException {\n if (!id.equals(currentId)) initFile(id);\n return numBlocks;\n }", "public String getImageId() {\n return this.imageId;\n }", "public static void addUniqueFileIdentifier( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, UNIQUEFILEIDENTIFIER, value);\r\n\t}", "public void addGroupIdAndDuplicateId(CallStack callStack , String filename)\n\t{\n\t\tJSONParser parser = new JSONParser();\n\n\t\ttry {\n\n\t\t\tObject obj = parser.parse(new FileReader(filename));\n\n\t\t\tJSONObject jsonObject = (JSONObject) obj;\n\t\t\tString id = (String) jsonObject.get(\"groupId\");\n\t\t\tcallStack.setGroupId(id);\n\n\t\t\tString dupId = (String) jsonObject.get(\"duplicateId\");\n\t\t\tif (dupId==null)\n\t\t\t{\n\t\t\t\tcallStack.setDuplicateId(\"-1\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcallStack.setDuplicateId(dupId);\n\t\t\t}\n\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParseException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t}", "int nextId();", "public static int getIdentifier(){\n\t\tif(index > ids.size() - 1){\n\t\t\tindex = 0;\n\t\t}\n\t\t// Post increment is used here, returns index then increments index\n\t\treturn ids.get(index++);\n\t}", "public void addPhoto(ActionEvent event) throws IOException {\n\t\t//System.out.println(\"ITEM ADDED______________________________________________\");\n\t\tFileChooser fileChooser = new FileChooser();\n\t\tfileChooser.setTitle(\"Open Photo\"); \n\t\tAccessibleUsersList.masterUserList.userLoggedIn.fileList = fileChooser.showOpenMultipleDialog(this.myNewStage);\n\t\t\n\t\tboolean checkIfImages = true;\n\t\t\n\t\tif(AccessibleUsersList.masterUserList.userLoggedIn.fileList != null){\n\t\t\t\n\t\t\tfor(File file : AccessibleUsersList.masterUserList.userLoggedIn.fileList){\n\t\t\t\t\n\t\t\t\tMimetypesFileTypeMap mimetype= new MimetypesFileTypeMap();\n\t\t\t\tmimetype.addMimeTypes(\"image png jpg jpeg JPG PNG\");\t\n\t\t\t\t\n\t\t\t\tString mimetype1 = mimetype.getContentType(file);\n\t\t\t\tString type = mimetype1.split(\"/\")[0];\n\t\t\t\t\n\t\t\t\tif(type.contains(\"image\")){\n\t\t\t //System.out.println(\"It's an image\");\n\t\t\t\t} else { \n\t\t\t \t //System.out.println(\"It's NOT an image\");\n\t\t\t \t Alert majorBagAlert = new Alert(AlertType.ERROR);\n\t\t\t\t majorBagAlert.setTitle(\"Error\");\n\t\t\t\t majorBagAlert.setHeaderText(\"One or more images is not an image file type.\");\n\t\t\t\t majorBagAlert.setContentText(\"Please enter photo(s) again\");\n\t\t\t\t majorBagAlert.showAndWait();\n\t\t\t \t \n\t\t\t\t //adding comment\n\t\t\t checkIfImages = false; \n\t\t\t }\n\t\t\t}\n }\n\t\t\n\n\t\t//iterate through the logged in user's albums \n\t\t//this is the album we have to add our photos to \n\t\tthis.selectedAlbum = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getName(); \n\t\tAlbum foundAlbum = null; \n\t\tlong lastModifiedDate = 0; \n\t\tString path; \n\t\t\n\t\t//if we are certain we only collected files of type jpg, png or jpeg \n\t\tif(checkIfImages){\n\t\t\t\n\t\t\tif(AccessibleUsersList.masterUserList.userLoggedIn.fileList != null) {\n\t\t\t\t\n\t\t\t\tfor(File file : AccessibleUsersList.masterUserList.userLoggedIn.fileList){\n\t\t\t\t\t\n\t\t\t\t\tpath = file.getAbsolutePath();\n\t\t\t\t\tFileInputStream inputstream = new FileInputStream(path); \n\t\t\t\t\tImage image1 = new Image(inputstream); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//iterate through the logged in user's albums \n\t\t\t\t\tint x=0; \n\t\t\t\t\tfor(Album album: AccessibleUsersList.masterUserList.userLoggedIn.albums_list){\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//looking for the current album to add our photos into \n\t\t\t\t\t\tif(album.getName().equals(this.selectedAlbum)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfoundAlbum = AccessibleUsersList.masterUserList.userLoggedIn.albums_list.get(x);\n\t\t\t\t\t\t\tlastModifiedDate = file.lastModified();\n\t\t\t\n\t\t\t\t\t\t\tPhoto albumPhoto = new Photo(path, lastModifiedDate); \n\t\t\t\t\t\t\tfoundAlbum.getAlbum().add(albumPhoto);\t \n\t\t\t\t\t\t\t//System.out.println(foundAlbum.getAlbum());\n\t\t\t\t\t\t\t//foundAlbum.photos.add(new model.Photo(image1, lastModifiedDate));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tImageView pic = new ImageView();\n\t\t\t\t\t\t\tpic.setFitWidth(340);\n\t\t\t\t\t\t\tpic.setFitHeight(180);\n\t\t\t\t\t\t\tpic.setImage(image1);\n\t\t\t\t\t\t\tlistOfPhotos.add(pic);\n\t\t\t\t\t\t\talbumPhoto.setImage(pic);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"photo added\");\n\t\t\t\t\t\t\t//System.out.println(albumPhoto.getPathToPhoto());\n\t\t\t\t\t\t\t//System.out.println(AccessibleUsersList.masterUserList.userLoggedIn);\n\t\t\t\t\t\t\t//System.out.println(AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.addPhoto(albumPhoto); <-----cause of bug, added photo TWICE, X\n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t} \n\t\t\t\t\t\tx++; \n\t\t\t\t\t}\n \t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\t\n\t}", "private void setId() {\n id = count++;\n }", "public void generateImage(int imageId, int resolution){\n String openUrl = \"/Users/fengyutian/Desktop/jsc/privacyDemo/web/image/\"+imageId+ \".jpg\";\n String saveUrl = \"/Users/fengyutian/Desktop/jsc/privacyDemo/web/image/tmp\";\n String saveName=String.format(\"%d_%d\", imageId, resolution);\n ImageDeal imageDeal = new ImageDeal(openUrl, saveUrl, saveName, \"jpg\");\n try{\n imageDeal.mosaic((int)Math.floor(264/resolution));\n //Thread.currentThread().sleep(1000);\n }catch(Exception e){\n e.printStackTrace();\n }\n\n System.out.printf(\"Image: %d Resolution: %d was generated.\\n\", imageId, resolution);\n }", "public Integer getFileId() {\n\t\treturn fileId;\n\t}", "public int getFileId() {\n return fileId;\n }", "public String getNewImageTag() {\n return newImageTag;\n }", "private synchronized long nextId() {\n\t\treturn ++curID;\n\t}", "public Long getFileID()\n/* */ {\n/* 88 */ return this.fileID;\n/* */ }", "public void pushPhoto(int ownerId, String photoId);", "public Integer getNextId(){\n\t\tInteger id = 0;\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(userFile));\n\t\t\tString l;\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\twhile (( l = br.readLine()) != null){\n\t\t\t\tString[] line = l.split(\",\");\n\t\t\t\ttry {\n\t\t\t\t\tlist.add(new Integer(line[0]));\t\t\t\t\t\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tSystem.out.println(\"DATA ERROR: id field is not an integer\" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t// sort the first field\n\t\t\tCollections.sort(list);\n\t\t\t// get the last (highest value) object\n\t\t\tid = list.get(list.size()-1);\n\t\t\t// increment so next id is guaranteed to be highest integer\n\t\t\tid = id.intValue() + 1;\n\t\t} catch (Exception e){\n\t\t\tSystem.err.println(\"Caught Exception: \" + e.getMessage());\n\t\t}\n\t\treturn id;\n\t}", "public static void addUniqueFileIdentifier(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, UNIQUEFILEIDENTIFIER, value);\r\n\t}", "private static int generateId() {\n\t\treturn ++sId;\n\t}", "public String getImgId() {\n return imgId;\n }", "public Long getImgId() {\r\n return imgId;\r\n }", "private Long createId() {\n return System.currentTimeMillis() % 1000;\n }", "protected void initFile(String id) throws FormatException, IOException {\n super.initFile(id);\n in = new RandomAccessFile(id, \"r\");\n \n // initialize an array containing tag offsets, so we can\n // use an O(1) search instead of O(n) later.\n // Also determine whether we will be reading color or grayscale\n // images\n \n //in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long order = batoi(toRead); // byte ordering\n little = toRead[2] != 0xff || toRead[3] != 0xff;\n \n toRead = new byte[4];\n Vector v = new Vector(); // a temp vector containing offsets.\n \n // Get first offset.\n in.seek(16);\n in.read(toRead);\n int nextOffset = batoi(toRead);\n int nextOffsetTemp;\n \n boolean first = true;\n while(nextOffset != 0) {\n in.seek(nextOffset + 4);\n in.read(toRead);\n // get next tag, but still need this one\n nextOffsetTemp = batoi(toRead);\n in.read(toRead);\n if ((new String(toRead)).equals(\"PICT\")) {\n boolean ok = true;\n if (first) {\n // ignore first image if it is called \"Original Image\" (pure white)\n first = false;\n in.skipBytes(47);\n byte[] layerNameBytes = new byte[127];\n in.read(layerNameBytes);\n String layerName = new String(layerNameBytes);\n if (layerName.startsWith(\"Original Image\")) ok = false;\n }\n if (ok) v.add(new Integer(nextOffset)); // add THIS tag offset\n }\n if (nextOffset == nextOffsetTemp) break;\n nextOffset = nextOffsetTemp;\n }\n \n in.seek(((Integer) v.firstElement()).intValue());\n \n // create and populate the array of offsets from the vector\n numBlocks = v.size();\n offsets = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n offsets[i] = ((Integer) v.get(i)).intValue();\n }\n \n // populate the imageTypes that the file uses\n toRead = new byte[2];\n imageType = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n in.seek(offsets[i]);\n in.skipBytes(40);\n in.read(toRead);\n imageType[i] = batoi(toRead);\n }\n \n initMetadata();\n }", "public void storePhoto(int receiptId, FileArguments args);", "public int getNextBuildID(){\n return buildHistory.get(buildHistory.size()-1).getBuildID()+1;\n }", "public void addUniqueFileIdentifier( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), UNIQUEFILEIDENTIFIER, value);\r\n\t}", "public gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId addNewObjectId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId target = null;\r\n target = (gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId)get_store().add_element_user(OBJECTID$0);\r\n return target;\r\n }\r\n }", "public void generateImage4Id(OdeVO ode)\n {\n \ttry\n \t{\n \t\tif (logger.isDebugEnabled())\n \t\t\tlogger.debug(\"Begin:generateImage4Id\");\n \t\tif (logger.isDebugEnabled())\n \t\t\tlogger.debug(\"El ode es id [\"+ode.getIdentificadorMEC()+\"] MainFile [\"+ode.getMainFile()+\"] y el servidor es [\"+ode.getServerOn()+\"]\");\n \t\t//Si todo ha ido bien hago la petición RMI pasando el Objeto\n \t\tif (logger.isDebugEnabled())\n \t\t\tlogger.debug(\"Solicitud RMI\");\n \t\tthis.getImgServer().getImageUrlForId(ode.getIdentificadorMEC(), ode.getMainFile(), ode.getServerOn());\n \t\tif (logger.isDebugEnabled())\n \t\t\tlogger.debug(\"End:generateImage4Id\");\n \t}\n \tcatch (Exception ex)\n \t{\n \t\tlogger.error(\"Se ha producido un error al SOLICITAR rmi [\"+ode.getIdentificadorMEC()+\"]\", ex);\n \t\tthrow new CreateImageException(\"Se ha producido un error al SOLICITAR rmi [\"+ode.getIdentificadorMEC()+\"]\",ex);\n \t}\n }", "@Override\n\tpublic Integer addModel(PhotoTag model) throws BaseException {\n\t\treturn this.insert(\"Mapper.PhotoTag.insert\", model);\n\t}", "protected abstract long getNextID(long ID);", "public static String addBufferedPhonePhotos(String username, String adId, List<BufferedImage> photos) throws IOException {\n\t\tString adDirString = IMAGE_STORAGE_LOCATION + \"\\\\\" + username + \"\\\\\" + adId;\n\n\t\t// Check if ad folder exists, if doesn't create\n\t\tPath adPath = Paths.get(adDirString);\n\t\tif (Files.notExists(adPath)) {\n\t\t\tFile adDir = new File(adDirString);\n\t\t\tif (!adDir.mkdir()) {\n\t\t\t\tthrow new IllegalArgumentException(\"Cannot create folder for user \" + username + \" and ad \" + adId);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalArgumentException(\"Directory [\" + adDirString + \"] already exists\");\n\t\t}\n\n\t\t// Save all the photos\n\t\tint counter = 0;\n\t\tfor (BufferedImage photo : photos) {\n\t\t\tString photoPath = adDirString + \"\\\\\" + counter++ + \".png\";\n\t\t\tImageIO.write(photo, \"png\", new File(photoPath));\n\t\t}\n\n\t\treturn adDirString;\n\t}", "public long getImageId() {\n return _courseImage.getImageId();\n }", "public Library(String name, int id) {\n super(name); // invoking superclass constructor\n this.ID = id;\n this.albums = new HashSet<Album>();\n }", "@Override\n\tpublic native final String createUniqueId() /*-{\n // In order to force uid's to be document-unique across multiple modules,\n // we hang a counter from the document.\n if (!this.gwt_uid) {\n this.gwt_uid = 1;\n }\n\n return \"gwt-uid-\" + this.gwt_uid++;\n\t}-*/;", "public short getFileID() \r\n\t //@ requires [?f]valid_id(this);\r\n\t //@ ensures [f]valid_id(this);\r\n\t{\r\n\t\t////@ open [f]valid_id(this); // auto\r\n\t\treturn fileID;\r\n\t\t//@ close [f]valid_id(this);\r\n\t}", "public short getFileID() \r\n\t //@ requires [?f]valid_id(this);\r\n\t //@ ensures [f]valid_id(this);\r\n\t{\r\n\t\t////@ open [f]valid_id(this); // auto\r\n\t\treturn fileID;\r\n\t\t//@ close [f]valid_id(this);\r\n\t}", "public void addUniqueFileIdentifier(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), UNIQUEFILEIDENTIFIER, value);\r\n\t}", "private static String getUniqueId()\n\t{\n\t\tfinal int limit = 100000000;\n\t\tint current;\n\t\tsynchronized (DiskFileItem.class)\n\t\t{\n\t\t\tcurrent = counter.nextInt();\n\t\t}\n\t\tString id = Integer.toString(current);\n\n\t\t// If you manage to get more than 100 million of ids, you'll\n\t\t// start getting ids longer than 8 characters.\n\t\tif (current < limit)\n\t\t{\n\t\t\tid = (\"00000000\" + id).substring(id.length());\n\t\t}\n\t\treturn id;\n\t}", "private static long newTag(long id) {\n long th = Thread.currentThread().getId();\n return (1L<<63) | (th<<48) | id; // 1, 2, 3\n }", "public Library(String n, int i) { \r\n super(n);\r\n id = i;\r\n albums = new HashSet<Album>();\r\n\r\n }", "public int getimagecounter() {\n\t\treturn imagecounter;\r\n\t}", "public int getNewProjectUniqueId() {\r\n\t\treturn lastProjectUniqueID +1;\r\n\t}", "public String getNextBookId(){ \n return \"book-\" + dbmanager.getNextId(); \n }", "public Builder setImageId(int value) {\n \n imageId_ = value;\n onChanged();\n return this;\n }" ]
[ "0.59962785", "0.59773916", "0.58134216", "0.57636553", "0.5684798", "0.5667989", "0.5584931", "0.55750924", "0.5542768", "0.5539161", "0.5521326", "0.55025196", "0.54912704", "0.5482514", "0.542994", "0.54218125", "0.54218125", "0.54139835", "0.53988665", "0.53867847", "0.53835374", "0.5383297", "0.53832465", "0.53746736", "0.53536695", "0.5345884", "0.5332672", "0.53301257", "0.532712", "0.5286876", "0.5282564", "0.52820706", "0.5277753", "0.52732944", "0.52655655", "0.525299", "0.52473193", "0.5245383", "0.5221736", "0.5212436", "0.5212436", "0.52095467", "0.52066296", "0.5206112", "0.51975876", "0.51852167", "0.5178071", "0.51712537", "0.5164266", "0.5150327", "0.514827", "0.5139102", "0.5138788", "0.51362336", "0.5133542", "0.5122373", "0.51208335", "0.51110375", "0.5109917", "0.51011944", "0.5052801", "0.5048403", "0.50313365", "0.5030309", "0.5028657", "0.5028407", "0.5018525", "0.5016189", "0.5015964", "0.50105035", "0.4996747", "0.49870923", "0.49822587", "0.49738225", "0.49687907", "0.4947736", "0.49467131", "0.49338552", "0.49333623", "0.4933245", "0.493155", "0.4930339", "0.49280536", "0.49260923", "0.49243557", "0.49149895", "0.4911861", "0.49034202", "0.49008995", "0.4898833", "0.48956513", "0.48956513", "0.48941126", "0.48818418", "0.48698887", "0.48652816", "0.4862628", "0.48601344", "0.48592559", "0.48548967" ]
0.6001846
0
Get the for the
public Logger getPhotoLogger(){ return logger; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFor();", "public K get()\n {\n\treturn current.data(); \n }", "Object getFrom();", "Reserva Obtener();", "public java.lang.String getGet() {\n return instance.getGet();\n }", "public T get( int index ){\n return getNo( index ).getConteudo();\n }", "Object firstData() {\n\t\t// por defecto enviamos null\n\t\treturn null;\n\t}", "String getFrom();", "String getFrom();", "String getFrom();", "String getFrom();", "public String retrieve() {\n\t\t// TODO Write me!\n\t\t\n\t\treturn null;\n\t}", "public G getData (){\n return this._data;\n }", "public T getData() {\n return this.first;\n }", "public T getElementoCima(){\r\n\t\r\n\t\treturn this.num.get(this.num.size()-1);\r\n\t}", "@Override\n String get();", "String get();", "String get();", "public String getRazaN(){\n return razaP1.nombre1();\n }", "int getFrom();", "public Genero getGenero()\r\n/* 143: */ {\r\n/* 144:261 */ return this.genero;\r\n/* 145: */ }", "public Object get( int index )\n {\n\treturn _data[index];\n }", "public String getEtiqueta()\n/* 27: */ {\n/* 28:41 */ return this.etiqueta;\n/* 29: */ }", "public THING get() {\n return directlyGet();\n }", "public T get() {\n return this.elemento;\n }", "public String data() {\n\t\tBundle bundle = this.getIntent().getExtras();\n\t\t// ii == 從 schedule_id取得的專案ID\n\t\tii = bundle.getString(\"id\");\n\t\tLog.d(\"data\", ii);\n\t\treturn ii;\n\t}", "public T getFirst() {\n\treturn _front.getCargo();\n }", "public String get() {\n return getImpl(this.url);\n }", "@Override\r\n\t\tpublic Meta_data getData() {\n\t\t\treturn this.data;\r\n\t\t}", "public String get();", "Object getCurrentData();", "public Pair get()\n {\n return this.MapItr.element;\n }", "public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }", "public java.lang.String getOrigen(){\n return localOrigen;\n }", "public Object getFirst() {\n if (first == null)\n return null;\n return first.getInfo();\n }", "T getObject() {\n\t\t\treturn data;\n\t\t}", "private Person getPerson() {\n String fore = this.forenameCombo.getSelectedItem().toString();\n String sur = this.surnameCombo.getSelectedItem().toString();\n String sect = this.sectionCombo.getSelectedItem().toString();\n Person myPers = pers.getPerson(fore, sur, sect);\n return myPers;\n }", "public @Override E get(int index) {\n \treturn getNode(index).data;\n }", "public abstract String get();", "public GetBuilder get() {\n return new GetBuilder(this);\n }", "public String getIdentificacion()\r\n/* 123: */ {\r\n/* 124:223 */ return this.identificacion;\r\n/* 125: */ }", "@Override\r\n\tpublic Porduct GetResult() {\n\t\treturn product;\r\n\t}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "public String getFirst() {\n if(first == null) return null;\n return first.data;\n }", "protected T retrieve() {\n return _result;\n }", "public K data()\n {\n\treturn this.data;\n }", "public String balar() {\r\n return this.SONIDO;\r\n }", "@Override\n\tpublic String getObjetivo() {\n\t\treturn model.getObjetivo();\n\t}", "public abstract java.lang.String getAcma_cierre();", "public String getName() { return (String)get(\"Name\"); }", "public T getFirst() {\n return this.getHelper(this.indexCorrespondingToTheFirstElement).data;\n }", "long getFrom();", "@Override\n public int get()\n { \n return this.pr;\n }", "protected static void get() {\n\t\tstepsTable.get();\n\t\tstepsTable.getWeek();\n\t\tactive.get();\n\t\tmeals.get();\n\t\taccountInfo.get();\n\t\t\n\t}", "public Relatorio get(int row){\n\t\t\t\t\n\t\t\t\treturn valores.get(row);\n\t\t\t}", "public java.lang.String getCodigo(){\n return localCodigo;\n }", "public String getFirst(){\n return this.first;\n }", "public T get(String name) {\n\t\treturn get(name, 0);\n\t}", "public RobotInfo get(int id){\n \treturn info[id % HASH];\n }", "public String getAutorizacion()\r\n/* 134: */ {\r\n/* 135:226 */ return this.autorizacion;\r\n/* 136: */ }", "String getAnnoPubblicazione();", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public Object getFirst(){\n return pattern[0];\n }", "public java.lang.String getObservacion(){\n return localObservacion;\n }", "public String getAnotherDetail();", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "@Override\n \tpublic Object getResult() {\n \t\treturn result;\n \t}", "@Override\n public Object get(int index) {\n switch (index) {\n case 0:\n return this.creationTimes;\n\n case 1:\n return this.elapsedRenderTimeSeconds;\n\n case 2:\n return this.jobIds;\n\n case 3:\n return this.paths;\n\n case 4:\n return this.renderedBytes;\n\n case 5:\n return this.renderedFrames;\n\n case 6:\n return this.renderedPercents;\n\n case 7:\n return this.requests;\n\n case 8:\n return this.status;\n\n case 9:\n return this.ttls;\n\n case 10:\n return this.info;\n\n default:\n throw new IndexOutOfBoundsException(\"Invalid index specified.\");\n }\n }", "public Object getData(){\n\t\treturn this.data;\n\t}", "Information getInfo();", "public java.lang.String getBloqueado(){\n return localBloqueado;\n }", "public T get() {\n\t\treturn get(ModSettings.currentContext);\n\t}", "public Object get(String name) {\n if (name == null) {\n return this.def;\n }\n return super.get(name);\n }", "public E getElement()\n {\n return this.data;\n }", "public Raza getRazaP1() {\n razaP1.nombre1();\n System.out.println(razaP1.nombre1());\n return razaP1;\n }", "Objet getObjetAlloue();", "public O first()\r\n {\r\n if (isEmpty()) return null; \r\n return first.getObject();\r\n }", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "public T getFirst()\n\t{\n\t\treturn head.getData();\n\t}", "public Cell get() {\n return ptSearcher.current();\n }", "public java.lang.String getGetItemDataResult() {\r\n return localGetItemDataResult;\r\n }", "private Dati getDatiRMP() {\n /* variabili e costanti locali di lavoro */\n Dati dati = null;\n Modulo modRMP = RMPModulo.get();\n Modulo modPiatto = PiattoModulo.get();\n Modulo modCategoria = CategoriaModulo.get();\n Query query;\n Filtro filtro;\n\n try { // prova ad eseguire il codice\n\n query = new QuerySelezione(modRMP);\n query.addCampo(modRMP.getCampoChiave());\n query.addCampo(modRMP.getCampo(RMP.CAMPO_PIATTO));\n query.addCampo(modRMP.getCampo(RMP.CAMPO_MENU));\n query.addCampo(modPiatto.getCampo(Piatto.CAMPO_NOME_ITALIANO));\n query.addCampo(modCategoria.getCampo(Categoria.CAMPO_SIGLA));\n filtro = new Filtro();\n filtro.add(this.getFiltroMenu());\n filtro.add(this.getFiltroPiattiComandabili());\n query.setFiltro(filtro);\n dati = modRMP.query().querySelezione(query);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return dati;\n }", "public long get() {\n\t\t\treturn get(1);\n\t\t}", "public String getFirst(){ return this.first; }", "public Object get(int index) {\r\n return entry(index).element;\r\n }", "public String getter() {\n\t\treturn name;\n\t}", "public java.lang.String getGetsfzyResult() {\r\n return localGetsfzyResult;\r\n }", "Object get()\n\t{\n\t\tif (length == 0 ) \n\t\t{\t\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on empty List\");\n\t\t}\n\t\tif (cursor == null\t) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on cursor that is off the list\");\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn cursor.data;\n\t\t}\n\t}", "public AdvObject getObject(int index) {\n\t\treturn objects.get(index); // Replace with your code\n\t}", "String getAuteur();", "String getTitolo();", "public Object get()\n {\n return m_internalValue;\n }", "public Enqueteur getEnqueteur()\r\n/* */ {\r\n/* 57 */ return this.enqueteur;\r\n/* */ }", "public java.lang.String getGetBillInfoResult() {\r\n return localGetBillInfoResult;\r\n }", "@GET\n public Map<String, String> get() {\n return first.created();\n }", "public String getObj3 () {\r\n return Obj3; \r\n }", "@Override\n\tpublic RacingBike get() {\n\t\tSystem.out.println(\"Inside get method of provider class!!!\");\n\t\treturn new ApacheRR310();\n\t}", "public Image getImage() {\n if (tamagoStats.getAge() <= 0) {\n return images.get(\"oeuf\").get(\"noeuf\");\n } else if (tamagoStats.getAge() <= 3) {\n return images.get(\"bebe\").get(\"metamorph\");\n } else if (tamagoStats.getAge() <= 7) {\n return images.get(\"enfant\").get(\"evoli\");\n } else {\n return images.get(\"adulte\").get(\"noctali\");\n }\n }", "public T getFirst()\n\t{\n\t\treturn getFirstNode().getData();\n\t}", "public Facts get_return() {\r\n return local_return;\r\n }" ]
[ "0.6791598", "0.62464464", "0.61721486", "0.615277", "0.61516464", "0.60975903", "0.60003716", "0.59720343", "0.59720343", "0.59720343", "0.59720343", "0.5936973", "0.5930362", "0.5893643", "0.5856296", "0.58065164", "0.5784673", "0.5784673", "0.5778494", "0.57658315", "0.57387775", "0.5717651", "0.57139945", "0.56991905", "0.5698779", "0.5686331", "0.56830686", "0.56680965", "0.5666031", "0.5664572", "0.56624794", "0.5661969", "0.5661369", "0.56534886", "0.56534755", "0.56471074", "0.56376225", "0.56288296", "0.5627574", "0.5623174", "0.5610468", "0.56026334", "0.5595585", "0.5594051", "0.55918056", "0.5583948", "0.55791116", "0.55779177", "0.55665696", "0.555154", "0.5540761", "0.55355537", "0.5525779", "0.55226713", "0.5520725", "0.55060464", "0.5505633", "0.5504891", "0.5497998", "0.5496146", "0.54922664", "0.5490177", "0.54880786", "0.54850835", "0.5484845", "0.5476511", "0.5467339", "0.54642475", "0.54618645", "0.54592144", "0.5458523", "0.5458477", "0.5458217", "0.54563725", "0.54522735", "0.5450228", "0.5449121", "0.54488456", "0.5448574", "0.54451656", "0.54416585", "0.5441636", "0.5439493", "0.5437995", "0.54289234", "0.5428359", "0.54281074", "0.5426868", "0.54242647", "0.5422767", "0.54210556", "0.5419715", "0.5418604", "0.5416913", "0.5415276", "0.5411035", "0.5408758", "0.54079545", "0.54061395", "0.5402386", "0.5401959" ]
0.0
-1
Get the name of the
public String getName(){ return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public java.lang.String getName();", "String getName() ;", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8839174", "0.8765968", "0.8674823", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643", "0.8575643" ]
0.0
-1
get the parent directory of
public String getDir(){ return dir; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Directory getParent() {\n return parent;\n }", "private String getParentPath(String path) {\n int slash = path.lastIndexOf('/');\n if (slash == -1) {\n return null;\n } else {\n if (slash == 0) {\n // return \"root\" if parent path is empty string\n return \"/\";\n } else {\n return path.substring(0, slash);\n }\n }\n }", "@Override\r\n public FileName getParent() {\r\n final String parentPath;\r\n final int idx = getPath().lastIndexOf(SEPARATOR_CHAR);\r\n if (idx == -1 || idx == getPath().length() - 1) {\r\n // No parent\r\n return null;\r\n }\r\n if (idx == 0) {\r\n // Root is the parent\r\n parentPath = SEPARATOR;\r\n } else {\r\n parentPath = getPath().substring(0, idx);\r\n }\r\n return createName(parentPath, FileType.FOLDER);\r\n }", "public File getWorkingParent()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.WORKING_PARENT));\n }", "public String getParent() {\n Path path = getPathNIO();\n if (path == null) {\n return \"\";\n }\n\n Path parent = Paths.get(this.dataSource).toAbsolutePath().relativize(path.getParent());\n\n return parent.toString();\n }", "public String getPath()\n\t{\n\t\tString previousPath = File.separator;\n\t\t\n\t\t//if there is a parent\n\t\tif(getParentDirectory() != null)\n\t\t{\n\t\t\t//write over the previous path with the parent's path and a slash\n\t\t\t// /path/to/parent\n\t\t\tpreviousPath = getParentDirectory().getPath() + File.separator;\n\t\t}\n\t\t//else- no parent, this is the root \"/\"\n\t\t\n\t\t//add the name, /path/to/parent/thisdir \n\t\treturn previousPath + getName();\t\t\n\t}", "public String getParent() {\n int index = filename.lastIndexOf(separatorChar);\n\n if (index > 0) {\n return filename.substring(0, index);\n } else {\n return null;\n }\n\n }", "public String getSourceDir() {\n\t\tif (sourceDir != null)\n\t\t\treturn sourceDir;\n\t\telse if (parent == null)\n\t\t\treturn \"./\";\n\t\telse\n\t\t\treturn parent.getSourceDir();\n\t}", "public IDirectory getParent() {\n return this.parent;\n }", "public static String getParentDirPath(String file) {\n Path path = Paths.get(file);\n String dirPath = path.getParent().toString();\n dirPath = formatDirectoryPath(dirPath);\n return dirPath;\n }", "public com.vmware.converter.ManagedObjectReference getParentFolder() {\r\n return parentFolder;\r\n }", "public String getDataParent () {\n if (dataParent == null) {\n return System.getProperty (GlobalConstants.USER_DIR);\n } else {\n return dataParent;\n }\n }", "java.lang.String getParent();", "java.lang.String getParent();", "public Folder getParentFolder() {\n\t\treturn parentFolder;\n\t}", "public String getParentName() {\n return getProperty(Property.PARENT_NAME);\n }", "public static String getClassPathFileParentDir(String resFile)\n\t{\n\t\tURL url = ClassUtils.getClassLoader(ResourceUtil.class).getResource(resFile) ;\n\n\t\t//System.out.println( \"url============\" + url ) ;\n\n\t\tString fullPath = null ;\n\t\ttry\n\t\t{\n\t\t\tfullPath = new File(url.getFile(), \".\").getCanonicalPath() ;\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tthrow new RuntimeException(\"获取配置文件路径出错:\" + e.getMessage(), e) ;\n\t\t}\n\n\t\tfullPath = fullPath.replaceAll(\"\\\\\\\\\", SEPARATOR) ;\n\n\t\tString parentPath = fullPath.substring(0, fullPath.lastIndexOf(SEPARATOR)) ;\n\n\t\tif (!parentPath.endsWith(SEPARATOR))\n\t\t{\n\t\t\tparentPath = parentPath + SEPARATOR ;\n\t\t}\n\n\t\treturn parentPath ;\n\t}", "private static String getParentPath(String path) {\n return path.contains(\".\") ? path.substring(0, path.lastIndexOf('.')) : \"\";\n }", "private Path safeGetParentsParent(Path path) {\n if (path.getParent() != null && path.getParent().getParent() != null\n && path.getParent().getParent().getParent() != null) {\n return path.getParent().getParent().getParent();\n }\n return null;\n }", "public VRL getParentLocation()\n {\n \tif (this.getVRL()==null)\n \t\treturn null; \n \t\n \treturn this._nodeVRL.getParent();\n }", "public File getDirectory() {\n\t\treturn file.getParentFile();\n\t}", "public String getParentId() {\n return getProperty(Property.PARENT_ID);\n }", "public static IPath getInputParentPath(IEditorInput input) {\r\n IPath inputPath = null;\r\n if (input instanceof ILocationProvider) {\r\n inputPath = ((ILocationProvider) input).getPath(input);\r\n } else if (input instanceof IFileEditorInput) {\r\n IFile inputFile = ((IFileEditorInput) input).getFile();\r\n if (inputFile != null) {\r\n inputPath = inputFile.getLocation();\r\n }\r\n }\r\n if (inputPath != null && !inputPath.isEmpty()) {\r\n inputPath = inputPath.removeLastSegments(1);\r\n }\r\n return inputPath;\r\n }", "public AppFile getParent(AppFile anItem) { return anItem.getParent(); }", "public Folder getImportParent()\r\n {\r\n if (getFragment(ChildrenBrowserFragment.TAG) != null)\r\n {\r\n importParent = ((ChildrenBrowserFragment) getFragment(ChildrenBrowserFragment.TAG)).getImportFolder();\r\n if (importParent == null)\r\n {\r\n importParent = ((ChildrenBrowserFragment) getFragment(ChildrenBrowserFragment.TAG)).getParent();\r\n }\r\n }\r\n return importParent;\r\n }", "private static String getDirectoryBase(String parentBase) {\n if (parentBase.endsWith(\"/\")) return parentBase;\n int lastSlash = parentBase.lastIndexOf('/');\n return parentBase.substring(0, lastSlash+1);\n }", "public Path getParent(\n ) {\n return this.parent;\n }", "public String getTargetDir() {\n\t\tif (targetDir != null)\n\t\t\treturn targetDir;\n\t\telse if (parent == null)\n\t\t\treturn \"./\";\n\t\telse\n\t\t\treturn parent.getTargetDir();\n\t}", "public void gotoParentDir() {\n boolean z;\n if (!isRootDir() && this.mCurrentDir != null && this.mBox.hasAuthenticated()) {\n String sb = new StringBuilder(getCurrentDirPath()).toString();\n if (sb.endsWith(File.separator)) {\n sb = sb.substring(0, sb.lastIndexOf(File.separator));\n }\n String substring = sb.substring(0, sb.lastIndexOf(File.separator) + 1);\n if (!substring.equals(getCurrentDirName())) {\n if (!substring.equals(File.separator) && substring.endsWith(File.separator)) {\n substring = substring.substring(0, substring.length() - 1);\n }\n BoxFileObject boxFileObject = null;\n if (this.mDirCached.containsKey(substring)) {\n boxFileObject = (BoxFileObject) this.mDirCached.get(substring);\n }\n if (boxFileObject == null) {\n z = this.mBox.asyncLoadDir(substring, this.mLoadFolderListener);\n } else {\n z = this.mBox.asyncLoadDir(boxFileObject, this.mLoadFolderListener);\n }\n if (z) {\n showWaitingDialog(this.mActivity.getString(C4538R.string.zm_msg_loading), this.mWaitingDialogCancelListener);\n }\n }\n }\n }", "public Path parent() {\n if (isRoot()) {\n return this;\n } else {\n String[] newParts = new String[parts.length - 1];\n for (int i = 0; i < parts.length - 1; i++) {\n newParts[i] = parts[i];\n }\n return new Path(newParts, true);\n }\n }", "public String getParentFolderId() {\n return parentFolderId;\n }", "public String getParent() {\n return _theParent;\n }", "public int getParentFolderID() {\n\t\treturn parentFolderID;\n\t}", "java.lang.String getDirName();", "public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }", "public int getParent();", "public VNode getParent() throws VlException\n {\n VRL pvrl=getParentLocation(); \n \n if (pvrl==null)\n \treturn null; \n \n return vrsContext.openLocation(getParentLocation());\n }", "public static File getParentFile(File f) {\n return f.getParentFile();\n }", "public static File getNextExistingParentDirectory(File file) {\n\n file = file.getParentFile();\n\n while (file != null && !file.isDirectory()) {\n file = file.getParentFile();\n }\n\n return file;\n }", "public static String getBaseDir() {\r\n Path currentRelativePath = Paths.get(System.getProperty(\"user.dir\"));\r\n return currentRelativePath.toAbsolutePath().toString();\r\n }", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public String getParent() {\r\n return parent;\r\n }", "com.google.apps.drive.activity.v2.DriveItem getParent();", "private static String returnDiretorioPai(Path a){\n return a.getParent().toString();\n }", "String getDir();", "Object getParent();", "public Long getParentFolderId() {\n return parentFolderId;\n }", "public Long getParentFolderId() {\r\n\t\treturn parentFolderId;\r\n\t}", "public String getParentId() {\n return getParent() != null ? getParent().getId() : null;\n }", "public String getParent() {\n return _parent;\n }", "public String getParent() {\r\n return (String) getAttributeInternal(PARENT);\r\n }", "public static String findCurrentDirectory() {\n\t\tString absolutePath = new File(\"\").getAbsolutePath();\n\t return absolutePath;\n\t}", "public String getParent() {\r\n return this.parent;\r\n }", "Path getRootPath();", "public String getParent() {\n return parent;\n }", "public String getRelativePath();", "java.io.File getBaseDir();", "@Override\n\tpublic String getDirName() {\n\t\treturn StringUtils.substringBeforeLast(getLocation(), \"/\");\n\t}", "NodeRef getCurrentFolderNodeRef(NodeRef parent, String folderName);", "public static String getParent(final String fileName) {\n\n return FileSystem.getInstance(fileName).getParent(fileName);\n }", "public String getPath() {\n String result = \"\";\n Directory curDir = this;\n // Keep looping while the current directories parent exists\n while (curDir.parent != null) {\n // Create the full path string based on the name\n result = curDir.getName() + \"/\" + result;\n curDir = (Directory) curDir.getParent();\n }\n // Return the full string\n result = \"/#/\" + result;\n return result;\n }", "public GitCommit getParent() { return _par!=null? _par : (_par=getParentImpl()); }", "public File getGitRepoContainerDir() {\n return config.getGitReposParentDir();\n }", "public String getParentName() {\n return parentName;\n }", "public org.apache.ant.Project getParent() {\n return parentProject;\n }", "public String getParentName() {\n return parentName;\n }", "public Path getParent() {\n if (!isAbsolute()) {\n throw new UnsupportedOperationException();\n }\n\n // return null for empty paths (root node or empty relative path)\n if (segments.length == 0) {\n return null;\n }\n\n return new Path(Arrays.copyOfRange(segments, 0, segments.length - 1));\n }", "public String getParentContainerXPath()\n\t{\n\t\treturn this.parentContainerXPath;\n\t}", "private static URL getParentURL(URL url) {\n if (url == null) {\n return null;\n }\n\n try {\n String urlString = url.toString();\n return new URL(urlString.substring(0, urlString.lastIndexOf('/')));\n } catch (MalformedURLException e) {\n return null;\n }\n }", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "protected File getDir() {\n return hasSubdirs ? DatanodeUtil.idToBlockDir(baseDir,\n getBlockId()) : baseDir;\n }", "public boolean isParent() { return _file.isDir(); }", "public String getRelativePath() {\n if (repository == null) {\n return name;\n } else {\n StringBuffer b = new StringBuffer();\n repository.getRelativePath(b);\n b.append(name);\n return b.toString();\n }\n }", "public TreeNode getParentNode();", "private Folder getRootFolder() {\n if(!MigrationProperties.get(MigrationProperties.PROP_MIGRATION_PROFILE).equalsIgnoreCase(\"DELTA\")) {\n String folderPath = MigrationProperties.get(MigrationProperties.PROP_SOURCE_LOCATION);\n\n if (folderPath != null && folderPath.contains(\"/\")) {\n Folder rootFolder = CmisHelper.getFolder(jobParameters.getSessionSource(), folderPath);\n return rootFolder;\n\n } else\n return null;\n } else\n return null;\n }", "public java.lang.Integer getParentId();", "FsPath baseDir();", "public int getParent_id() {\n return this.parent_id;\n }", "public File getConfigRoot()\r\n\t{\n\t\treturn file.getParentFile();\r\n\t}", "private String getParentId(String id) {\r\n\r\n String[] data = id.split(\"\\\\.\");\r\n String idParent = null;\r\n\r\n for (int i = data.length - 2; i >= 0; i--) {\r\n if (idParent == null) {\r\n idParent = data[i];\r\n } else {\r\n idParent = data[i] + \".\" + idParent;\r\n }\r\n }\r\n return idParent;\r\n }", "public String getParentName() {\n\t\treturn parentName;\n\t}", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "Path getBaseInputDir();", "final Path toParent(final Path path) throws QueryException {\n if(Files.isDirectory(path)) throw FILE_IS_DIR_X.get(info, path.toAbsolutePath());\n final Path parent = path.getParent();\n if(parent != null && !Files.exists(parent))\n throw FILE_NO_DIR_X.get(info, parent.toAbsolutePath());\n return path;\n }", "public Optional<NamespaceId> getParentId() {\n return parentId;\n }", "public String promptForFolder( Component parent )\n\t{\n\t JFileChooser fc = new JFileChooser();\n\t fc.setFileSelectionMode( JFileChooser.FILES_AND_DIRECTORIES);\n\n\t if( fc.showOpenDialog( parent ) == JFileChooser.APPROVE_OPTION )\n\t {\n\t return fc.getSelectedFile().getAbsolutePath();\n\t }\n\n\t return null;\n\t}", "com.google.protobuf.ByteString\n getParentBytes();", "Component getParent(Component c) {\n return hierarchy.getParent(c);\n }", "String getFullParentId();", "private static String getDirname(String pathToFile) {\n\t\tString result = null;\n\t\tPath originalFile = Paths.get(pathToFile);\n\t\tPath resultDir = originalFile.getParent();\n\t\tif(resultDir != null) {\n\t\t\tlogger.debug(\"A parent path exists: {}\", resultDir.toString());\n\t\t\tresultDir.normalize(); // remove redundant elements from the path\n\t\t\tresult = resultDir.toString() + \"/\";\n\t\t\tlogger.debug(\"Normalized parent path: {}\", result);\n\t\t}\n\t\treturn result;\n\t}", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public static String getParentName(String s) {\n\t\tint s1 = s.indexOf('.');\n\t\tif (s1 < 0) return s;\n\t\treturn s.substring(0, s1);\n\t}", "protected final int findParentDirectoryId(DBDeviceContext ctx, String path, boolean filePath) {\n\n // Split the path\n \n String[] paths = null;\n \n if ( path != null && path.startsWith(\"\\\\\")) {\n\n // Split the path\n \n paths = FileName.splitPath(path);\n }\n else {\n \n // Add a leading slash to the path before parsing\n \n paths = FileName.splitPath(\"\\\\\" + path);\n }\n \n if ( paths[0] != null && paths[0].compareTo(\"\\\\\") == 0 || paths[0].startsWith(\"\\\\\") == false)\n return 0;\n \n // Check if the file is in the cache\n \n FileStateCache cache = ctx.getStateCache();\n FileState state = null;\n \n if ( cache != null) {\n \n // Search for the file state\n \n state = cache.findFileState(paths[0]);\n if ( state != null && state.getFileId() != -1) {\n \n // Debug\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"@@ Cache hit - findParentDirectoryId() path=\" + paths[0]);\n \n // Return the file id\n \n return state.getFileId();\n }\n }\n\n // Get the directory id list\n \n int[] ids = findParentDirectoryIdList(ctx,path,filePath);\n if ( ids == null)\n return -1;\n \n // Check for the root directory id only\n \n if ( ids.length == 1)\n return ids[0];\n \n // Return the directory id of the last directory\n \n int idx = ids.length - 1;\n if ( filePath == true && ids[ids.length - 1] == -1)\n idx--;\n \n return ids[idx];\n }" ]
[ "0.71672374", "0.71667516", "0.7156076", "0.7136515", "0.7114703", "0.7100403", "0.6882293", "0.6840463", "0.6836598", "0.67735666", "0.6771228", "0.67492133", "0.67301416", "0.67301416", "0.6720057", "0.66182834", "0.6601578", "0.6584593", "0.65621567", "0.65469635", "0.65045214", "0.64882654", "0.6476893", "0.6470081", "0.64693415", "0.64542514", "0.6401465", "0.6397924", "0.6360181", "0.63522935", "0.6347751", "0.62942475", "0.6280414", "0.6273692", "0.62714154", "0.6263788", "0.6216059", "0.62124914", "0.6206516", "0.6202784", "0.6183474", "0.6166013", "0.6163246", "0.61609423", "0.6156488", "0.6156469", "0.61539626", "0.61475724", "0.6141031", "0.6134726", "0.6125881", "0.6119085", "0.60986006", "0.6097772", "0.60869515", "0.6081145", "0.6073423", "0.60726494", "0.6042575", "0.6038304", "0.6029856", "0.60100746", "0.60071373", "0.5996668", "0.5984772", "0.5981291", "0.59782284", "0.59699684", "0.5969613", "0.59628147", "0.59450907", "0.59420115", "0.5918162", "0.59139854", "0.59100336", "0.5908683", "0.59086454", "0.59063894", "0.5905153", "0.5901252", "0.58980656", "0.5898029", "0.58978546", "0.58914584", "0.5888807", "0.58860064", "0.58828855", "0.5882574", "0.5878401", "0.58782136", "0.58670336", "0.58670336", "0.58670336", "0.58670336", "0.58670336", "0.58670336", "0.58670336", "0.58670336", "0.58670336", "0.5852921", "0.58506244" ]
0.0
-1
Get the unique ID for the
public int getId(){ return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUniqueId();", "String getUniqueID();", "String uniqueId();", "public static String getUniqueIdentifier() {\r\n UUID uuid = UUID.randomUUID();\r\n return uuid.toString();\r\n }", "public String getUniqueID ( ) { return _uniqueID; }", "UUID getUniqueId();", "public String getUniqueID();", "public String getUniqueID()\r\n {\r\n return (m_uniqueID);\r\n }", "protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}", "public static String uniqueId() {\r\n return UUID.randomUUID().toString();\r\n }", "public static String uniqueId() {\n return UUID.randomUUID().toString();\n }", "private String creatUniqueID(){\n long ID = System.currentTimeMillis();\n return Long.toString(ID).substring(9,13);\n }", "public String getUniqueId() {\n\t\treturn m_serverName + \" - \" + m_userId + \" - \" + m_timestampMillisecs;\n\t}", "public int getUniqueId() {\r\n\t\treturn uniqueId;\r\n\t}", "public String getUniqueID() {\n return this.uniqueID;\n }", "public String getUniqueId() {\n return _uniqueId;\n }", "java.lang.String getID();", "private String generateUniqueIdString() {\r\n return TimeBasedUUID.getUUIDAsString();\r\n }", "private static String getUniqueId()\n\t{\n\t\tfinal int limit = 100000000;\n\t\tint current;\n\t\tsynchronized (DiskFileItem.class)\n\t\t{\n\t\t\tcurrent = counter.nextInt();\n\t\t}\n\t\tString id = Integer.toString(current);\n\n\t\t// If you manage to get more than 100 million of ids, you'll\n\t\t// start getting ids longer than 8 characters.\n\t\tif (current < limit)\n\t\t{\n\t\t\tid = (\"00000000\" + id).substring(id.length());\n\t\t}\n\t\treturn id;\n\t}", "String generateUID();", "UUID id();", "public String uniqueId() {\n return this.uniqueId;\n }", "public UUID getUniqueId ( ) {\n\t\treturn extract ( handle -> handle.getUniqueId ( ) );\n\t}", "UUID getId();", "@NonNull\n public final synchronized String getId() {\n if (id == null) {\n id = UUID.randomUUID().toString();\n }\n return id;\n }", "public String getUniqueIdValue() {\n return uniqueIdValue;\n }", "public String getUniqueId() {\n return getCurrentInstance().getViewRoot().createUniqueId();\n }", "public static String id()\n {\n return _id;\n }", "public static int generateUniqueId(){\r\n String returnme = GregorianCalendar.getInstance().getTimeInMillis() + \"\";\r\n return Integer.parseInt(returnme.substring(returnme.length() - 9, returnme.length()));\r\n }", "@Override\n\tpublic UUID getUniqueId() {\n\t\treturn uid;\n\t}", "String getExistingId();", "public String gerarUID() {\n //String id1 = UUID.randomUUID().toString().replace(\"-\", \"\");\n String id1 = UUID.randomUUID().toString();\n return id1;\n }", "public String RtoosGetID() \n\t{\n\t\treturn UUIDs.random().toString();\n\t}", "static String generateId() {\r\n\t\treturn UUID.randomUUID().toString().replaceAll(\"-\", \"\");\r\n\t}", "long getUID() throws UidGenerateException;", "long getUID();", "String getID();", "String getID();", "String getID();", "String getID();", "String getIdNumber();", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public int getUniqueID() { \n return -1;\n }", "public String getUniqueID(Context ctx)\n {\n String m_szDevIDShort = \"\";\n String m_szAndroidID = \"\";\n String m_szWLANMAC = \"\";\n\n try {\n m_szDevIDShort = \"35\" + // we make this look like a valid IMEI\n Build.BOARD.length() % 10 + Build.BRAND.length() % 10 +\n Build.CPU_ABI.length() % 10 + Build.DEVICE.length() % 10 +\n Build.DISPLAY.length() % 10 + Build.HOST.length() % 10 +\n Build.ID.length() % 10 + Build.MANUFACTURER.length() % 10 +\n Build.MODEL.length() % 10 + Build.PRODUCT.length() % 10 +\n Build.TAGS.length() % 10 + Build.TYPE.length() % 10 +\n Build.USER.length() % 10;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n m_szAndroidID = Settings.Secure.getString(ctx.getContentResolver(), Settings.Secure.ANDROID_ID);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n WifiManager wm = (WifiManager) ctx.getSystemService(Context.WIFI_SERVICE);\n m_szWLANMAC = wm.getConnectionInfo().getMacAddress();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n String m_szLongID = m_szWLANMAC + m_szDevIDShort + m_szAndroidID;\n\n MessageDigest m = null;\n try {\n m = MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n m.update(m_szLongID.getBytes(), 0, m_szLongID.length());\n byte p_md5Data[] = m.digest();\n\n //noinspection RedundantStringConstructorCall\n String m_szUniqueID = new String();\n for (int i = 0; i < p_md5Data.length; i++) {\n int b = (0xFF & p_md5Data[i]);\n // if it is a single digit, make sure it have 0 in front (proper\n // padding)\n if (b <= 0xF)\n m_szUniqueID += \"0\";\n // add number to string\n m_szUniqueID += Integer.toHexString(b);\n }\n\n return m_szUniqueID;\n }", "private String generateUID()\n {\n String uid;\n int nbAccounts = this.getNumberOfAccounts();\n String host = this.registration.getHost();\n int nbAccountsForHost = this.getNbAccountForHost(host);\n \n if (nbAccounts == 0 || (this.isModification() && nbAccounts == 1) ||\n nbAccountsForHost == 0 || (this.isModification() && nbAccountsForHost == 1))\n {\n // We create the first account or we edit the onlyone\n // Or we create the first account for this server or edit the onlyone\n uid = host;\n }\n else\n {\n uid = host + \":\" + this.registration.getPort();\n }\n \n return uid;\n }", "public String getId() {\n\t\treturn Integer.toString(this.hashCode());\n\t}", "public int genID() {\n int uid = this.hashCode();\n if (uid < 0) {\n uid = Math.abs(uid);\n uid = uid * 15551;\n }\n return uid;\n }", "public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }", "private String getID()\n {\n String chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+{}|:<>?/.,';][=-`~\";\n String id = \"\";\n int max = new Random().nextInt((16 - 12) + 1)+12;\n for(int i=0;i<16;i++)\n {\n int r = new Random().nextInt((chars.length()-1 - 0) + 1)+0;\n id+=chars.charAt(r);\n }\n return id;\n }", "String getUid();", "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 getId() {\r\n\t\treturn userId.toString();\r\n\t}", "String getIdentityId();", "Integer getID();", "Integer getID();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "String getInstanceID();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();" ]
[ "0.85512453", "0.83065563", "0.82492524", "0.8129521", "0.8129049", "0.81175065", "0.8100901", "0.8046406", "0.8043848", "0.8029542", "0.7985357", "0.7964949", "0.7963569", "0.79496175", "0.79219234", "0.7897634", "0.78317773", "0.7802862", "0.77862805", "0.77640545", "0.7730111", "0.7687816", "0.7679894", "0.7679854", "0.7664074", "0.76420647", "0.7619507", "0.76071274", "0.75936013", "0.75824", "0.75689846", "0.75606066", "0.75503254", "0.7549837", "0.754645", "0.7545406", "0.75283104", "0.75283104", "0.75283104", "0.75283104", "0.74877894", "0.74863744", "0.7478696", "0.7438084", "0.7392329", "0.7389005", "0.7381693", "0.7371507", "0.73624754", "0.7360717", "0.7358128", "0.7354632", "0.733917", "0.73290944", "0.73290944", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7327405", "0.7314695", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962", "0.730962" ]
0.0
-1
Returns a previous names of the photo
public LinkedHashSet<String> getPrevNames(){ return prevNames; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private File getPreviousPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() <= 0) {\r\n retVal = listFiles.get(listFiles.size() - 1);\r\n fileList.setSelectedIndex(listFiles.size() - 1);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() - 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() - 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "public ImageObj prevImage() {\n if (position != 0) {\n position--;\n }\n else {\n position = model.getImageList().size() - 1;\n }\n\n return model.getImageList().get(position);\n }", "public String[] getPictureNames() {\r\n\t\tif(!isReady) prepare();\r\n\t\tif(!isReady) {\r\n\t\t\tLog.e(TAG,\"The system was not ready. No external media\");\r\n\t\t\treturn new String[]{};\r\n\t\t}\r\n\t\tFile[] pictureFiles = directory.listFiles(new AlbumFileFilter());\r\n\t\tString[] pictureFileNames = new String[pictureFiles.length];\r\n\t\tfor(int a=0;a<pictureFiles.length;a++) {\r\n\t\t\tpictureFileNames[a] = pictureFiles[a].getName();\r\n\t\t}\r\n\t\treturn pictureFileNames;\r\n\t}", "public final String getOldImageName() {\n\t\treturn oldImageName;\n\t}", "public\tString\tgetPreviousSignature() {\n\t\t\treturn\tthis.prevSignature;\n\t\t}", "private void displayPrevious() {\r\n\t\ti--;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "String getPrevious();", "private void addPrevNames(String name){\r\n\t\tif (!prevNames.contains(name)){\r\n\t\t\tprevNames.add(name);\r\n\t\t}\r\n\t}", "private void previousButtonActionPerformed() {//GEN-FIRST:event_previousButtonActionPerformed\r\n getPreviousPicture();\r\n }", "public List<String> getimagenames() {\n List<String> arrimg=new ArrayList<String>();\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \" + TABLE_NAME +\" ORDER BY \" + POSITIONNO + \" ASC\" ,null);\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n String name = cursor.getString(cursor.getColumnIndex(IMGNAME));\n\n arrimg.add(name);\n cursor.moveToNext();\n }\n }\n\n return arrimg;\n }", "public void undoLastCapturedPhoto() {\n\t\t\n\t}", "public void previous() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getPreviousMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getPreviousModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }", "public static String GetPreviousProjects() {\n\t\tString previousProjects = \"\";\n\t\tif (applicationSettingsFile != null) {\n\t\t\t// Get all \"files\"\n\t\t\tNodeList lastProject = applicationSettingsFile.getDocumentElement().getElementsByTagName(\"previousProjects\");\n\t\t\t// Handle result\n\t\t\tif (lastProject.getLength() > 0) {\n\t\t\t\tpreviousProjects = Utilities.getXmlNodeAttribute(lastProject.item(0), \"value\");\n\t\t\t}\n\t\t}\n\t\treturn previousProjects;\n\t}", "public void viewPrevPhoto(ActionEvent event) {\n\t\t\n\t\t//System.out.println(\"left check: \" + listOfPhotos);\n\t\t\n\t\tif (displayedPhoto.isEmpty()) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"Cannot find next image!\");\n\t\t\talert.setContentText(\"No photo selected. Failed to display next image.\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tint photosList_size = listOfPhotos.size();\n\t\t\n\t\tif(currPhotoIndex == 0) {\n\t\t\tcurrPhotoIndex = photosList_size - 1;\n\t\t} else {\n\t\t\tcurrPhotoIndex = currPhotoIndex - 1;\n\t\t}\n\t\t\n\t\tImageView nextPhoto = listOfPhotos.get(currPhotoIndex);\n\t\tcurrPhotoIndex = listOfPhotos.indexOf(nextPhoto);\n\t\t//System.out.println(currPhotoIndex);\n\t\tImageView newimg = new ImageView();\n\t\tnewimg.setImage(nextPhoto.getImage());\n\t\tnewimg.setFitWidth(480);\n\t\tnewimg.setFitHeight(330);\n\t\tdisplayedPhoto.clear();\n\t\tdisplayedPhoto = FXCollections.observableArrayList();\n\t\tdisplayedPhoto.add(newimg);\n\t\tDisplayedImage.setItems(displayedPhoto);\n\t}", "private void removePrevNames(String name){\r\n\t\tif (prevNames.contains(name)){\r\n\t\t\tprevNames.remove(name);\r\n\t\t}\r\n\t}", "public java.lang.String getPrevious_magistrate() {\n return previous_magistrate;\n }", "public int[] getPrevious() {\n if (currentRound == -1 || currentHeat == -1 || rounds.size() == 0) {\n return new int[] {-1, -1};\n }\n\n int[] last = new int[2];\n\n // Check if current round was the first heat (if so there was no previous heat)\n if (currentRound == 0 && currentHeat == 0) {\n // This is the first heat - return invalid\n return new int[] {-1, -1};\n }\n // There was a previous heat\n else {\n // Check if this was the first heat of the round\n if (currentHeat == 0) {\n // It was the first heat, so we need to get the last heat of the previous round\n last[0] = currentRound - 1;\n last[1] = rounds.get(currentRound - 1).length() - 1;\n }\n else {\n // There was a previous heat in this round\n last[0] = currentRound;\n last[1] = currentHeat - 1;\n }\n }\n\n return last;\n }", "public void PrevTurn(){\n currentTurn = currentTurn.getAnterior();\n String turno = (String) currentTurn.getDato();\n String info[] = turno.split(\"#\");\n\n int infoIn = 4;\n for (int i = 0; i < 10; i++, infoIn += 1) {\n label_list[i].setIcon(new ImageIcon(info[infoIn]));\n this.screen.add(label_list[i]);\n }\n HP.setText(\"HP: \"+info[2]);\n action.setText(\"Action: \"+info[1]);\n mana.setText(\"Mana: \"+info[3]);\n game.setText(\"Game \"+String.valueOf(partidaNum)+\", Turn \"+info[0]);\n\n VerifyButtons();\n\n }", "public void previous();", "public String listImageNames() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tfor(User user : userList) {\r\n\t\t\tsb.append(listImageNames(user.getName()) + \"\\n\");\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public List<Location> getPreviousLocations();", "public void listPictures()\r\n {\r\n int index = 0;\r\n while(index >=0 && index < pictures.size()) \r\n {\r\n String filename = pictures.get(index);\r\n System.out.println(index + \": \"+ filename);\r\n index++;\r\n }\r\n }", "@Override\r\n\tpublic String prev() {\n\t\tString pre;\r\n\r\n\t\tpre = p.getPrev();\r\n\r\n\t\tif (pre != null) {\r\n\t\t\tthisPrevious = true;\r\n\t\t\tinput(pre);\r\n\t\t}\r\n\t\treturn pre;\r\n\t}", "public ListElement getPrevious()\n\t {\n\t return this.previous;\n\t }", "protected String getPreviousActivityName() {\n try {\n Bundle bundle = getIntent().getExtras();\n if (bundle.getString(\"classFrom\") == null) {\n return \"\";\n } else {\n return bundle.getString(\"classFrom\");\n }\n } catch (Exception e) {\n // TODO: handle exception\n return \"\";\n }\n }", "@Nonnull\n @CheckReturnValue\n public SplitString previous() {\n if (offset == 0) {\n throw new IllegalStateException(\"Already at the beginning\");\n }\n return array[--offset];\n }", "public List getPrevList() {\n\t\treturn prevList;\n\t}", "private List<String> getRemoteImageFilenames() {\n\n ArrayList<String> imageNames = new ArrayList<>();\n\n // Since all local image files have a random name, we will use the same names remotely\n for (int i = 0; i < MAX_IMAGES; i++)\n if (imageFilesToUpload[i] != null)\n imageNames.add( imageFilesToUpload[i].getName() ); // note: this is NOT the full URL\n\n return imageNames;\n }", "public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }", "public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}", "public String rename() throws IOException {\n StringBuilder newName = new StringBuilder();\n for (String tag : photo.getTags().getCurrentTags()) {\n newName.append(\"@\").append(tag).append(\" \");\n }\n String oldName = photo.getTagName();\n\n if (photo.getTags().getCurrentTags().size() != 0) {\n photo.setTagName(photo.getName() + \" \" + newName.toString().trim());\n } else {\n photo.setTagName(photo.getName());\n }\n Path old = Paths.get(photo.getUrl());\n Files.move(old, old.resolveSibling(photo.getTagName() + photo.getExtension()));\n photo.setUrl(old.resolveSibling(photo.getTagName() + photo.getExtension()).toString());\n return oldName;\n }", "String getOriginalName();", "private void previous() {\n if (position > 0) {\n Player.getInstance().stop();\n\n // Set a new position:w\n --position;\n\n ibSkipNextTrack.setImageDrawable(getResources()\n .getDrawable(R.drawable.ic_skip_next_track_on));\n\n try {\n Player.getInstance().play(tracks.get(position));\n } catch (IOException playerException) {\n playerException.printStackTrace();\n }\n\n setImageDrawable(ibPlayOrPauseTrack, R.drawable.ic_pause_track);\n setCover(Player.getInstance().getCover(tracks.get(position), this));\n\n tvTrack.setText(tracks.get(position).getName());\n tvTrackEndTime.setText(playerUtils.toMinutes(Player.getInstance().getTrackEndTime()));\n }\n\n if (position == 0) {\n setImageDrawable(ibSkipPreviousTrack, R.drawable.ic_skip_previous_track_off);\n }\n }", "public void prev();", "private Token previous() {\n return tokens.get(current-1);\n }", "public String listImageNames(String username) {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tint i = 0;\r\n\t\tUser user = getUser(username);\r\n\t\t\r\n\t\tsb.append(\"Username: \" + username + \"\\n\");\r\n\t\t\r\n\t\tfor(String imageName : user.getImageList()) {\r\n\t\t\tsb.append(i++ + \" : \" + imageName + \", \" + StaticFunctions.hashTester(username, imageName) + \" | \");\r\n\t\t}\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t}", "@Override\r\n public int previousIndex() {\r\n if (previous == null) {\r\n return -1;\r\n }\r\n return previousIndex;\r\n }", "public void PrevGame(){\n partidaNum --;\n current = current.getAnterior();\n ListaDoble partida = (ListaDoble) current.getDato();\n currentTurn = partida.getInicio();\n String turno = (String) currentTurn.getDato();\n String info[] = turno.split(\"#\");\n\n int infoIn = 4;\n for (int i = 0; i < 10; i++, infoIn += 1) {\n label_list[i].setIcon(new ImageIcon(info[infoIn]));\n this.screen.add(label_list[i]);\n }\n HP.setText(\"HP: \"+info[2]);\n action.setText(\"Action: \"+info[1]);\n mana.setText(\"Mana: \"+info[3]);\n game.setText(\"Game \"+String.valueOf(partidaNum)+\", Turn \"+info[0]);\n\n VerifyButtons();\n\n }", "@Override\n\tpublic List<Bids> viewPreviousBids(int cropid) {\n\t\treturn cropRepository.previousBids(cropid);\n\t}", "public int previousIndex() {\r\n \treturn index - 1; \r\n }", "void previous() throws NoSuchRecordException;", "public static void showPreviousPlayerNames() {\r\n\t\tGameSetup.choiceBoxPlayer1.select(Main.player1);\r\n\t\tGameSetup.choiceBoxPlayer2.select(Main.player2);\r\n\t\tGameSetup.choiceBoxPlayer3.select(Main.player3);\r\n\t\t\r\n\t\t//Don't show fourth player if playing 3 handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tGameSetup.choiceBoxPlayer4.select(Main.player4);\r\n\t\t}\r\n\t}", "private\t\tMiContainerIterator getPreviousIterator()\n\t\t{\n\t\tif (startAtTop)\n\t\t\t{\n\t\t\twhile (++layerNum <= editor.getNumberOfLayers() - 1)\n\t\t\t\t{\n\t\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t\t{\n\t\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\treturn(null);\n\t\t\t}\n\t\twhile (--layerNum >= 0)\n\t\t\t{\n\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t{\n\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t}\n\t\t\t}\n\t\treturn(null);\n\t\t}", "public void previous() {\n if (hasPrevious()) {\n setPosition(position - 1);\n }\n }", "public Frame prevFrame(final Frame frame) {\n\t\tif (isInitialFrame(frame))throw new IllegalStateException(\"Invalid Entry\");// input sanitization -- out of bounds when at first frame\n\t\telse return frames.get(frames.indexOf(frame) - 1);\n\t}", "public Layer getPrevLayer() {\r\n\t\treturn this.prevLayer;\r\n\t}", "Object previous();", "public T previous()\n {\n // TODO: implement this method\n return null;\n }", "public DependencyElement previous() {\n\t\treturn prev;\n\t}", "public String getOriginalName() {\n\t\treturn originalName;\n\t}", "public\t\tMiPart\t\tgetPrevious()\n\t\t{\n\t\tMiPart obj = iterator.getPrevious();\n\t\twhile ((obj == null) || ((filter != null) && ((obj = filter.accept(obj)) == null)))\n\t\t\t{\n\t\t\tif (!hasLayers)\n\t\t\t\treturn(null);\n\t\t\tif (!iterateThroughAllLayers)\n\t\t\t\treturn(null);\n\t\t\tMiContainerIterator iter = getPreviousIterator();\n\t\t\tif (iter == null)\n\t\t\t\treturn(null);\n\t\t\titerator = iter;\n\t\t\tobj = iterator.getPrevious();\n\t\t\t}\n\t\treturn(obj);\n\t\t}", "public AStarNode getPrevious() {\n return previous;\n }", "public DSAGraphNode<E> getPrevious()\n {\n return previous;\n }", "@Override\n\t\tpublic int previousIndex() {\n\t\t\treturn 0;\n\t\t}", "private List<String> getAllShownImagesPath(Activity context) {\n String[] columns = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.DATE_ADDED};\n\n Cursor cursor = context.getContentResolver().query(\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI, // Specify the provider\n columns, // The columns we're interested in m\n MediaStore.Images.ImageColumns.BUCKET_DISPLAY_NAME + \" = \" + \"'Camera'\", // A WHERE-filter query\n null, // The arguments for the filter-query\n MediaStore.Images.Media.DATE_ADDED + \" DESC\" // Order the results, newest first\n );\n //\n\n List<String> result = new ArrayList<String>(cursor.getCount());\n\n if (cursor.moveToFirst()) {\n final int image_path_col = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n do {\n result.add(cursor.getString(image_path_col));\n } while (cursor.moveToNext());\n }\n cursor.close();\n\n\n return result;\n\n }", "@FXML public void goBackward(ActionEvent e){\n\t\tphotoNumber--;\n\t\tif (photoNumber<0){\n\t\t\tphotoNumber=listOfPhotos.size()-1;\n\t\t}\n\t\tPhoto photo = listOfPhotos.get(photoNumber);\n\t\tImage photoImage = new Image(photo.getLocation(),610,450,false,false);\n\t\tphotoImageView.setImage(photoImage);\n Tooltip tt = new Tooltip();\n tt.setText(photo.printAttributes());\n tt.setStyle(\"-fx-font: normal bold 20 Langdon; \"\n + \"-fx-base: #AE3522; \"\n + \"-fx-text-fill: orange;\");\n infoHoverButton.setTooltip(tt);\n\t}", "public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}", "public Position2D getPreviousPosition()\n {\n return previousPosition;\n }", "public PieceOrientation previous() {\n PieceOrientation[] PieceOrientations = this.values();\n int current = value;\n int previousIndex = (current + PieceOrientations.length - 1) % PieceOrientations.length;\n return PieceOrientations[previousIndex];\n }", "private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}", "@Nonnull\n public Optional<ENTITY> previous()\n {\n currentItem = Optional.of(items.get(--index));\n update();\n return currentItem;\n }", "protected JButton getPrevious()\n {\n return previous;\n }", "public int previousIndex()\n {\n // TODO: implement this method\n return -1;\n }", "public static ArrayList<String> getPreviousBillRounds() {\n\n\t\tAppLog.begin();\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tList<String> previousBillRoundList = new ArrayList<String>();\n\t\ttry {\n\t\t\tString query = QueryContants.getPreviousBillRoundQuery();\n\t\t\tAppLog.info(\"getPreviousBillRoundsQuery::\" + query);\n\t\t\tconn = DBConnector.getConnection();\n\t\t\tps = conn.prepareStatement(query);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tString previousBillRound = rs.getString(\"PREV_BILL_ROUND\");\n\t\t\t\tpreviousBillRoundList.add(previousBillRound);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tAppLog.error(e);\n\t\t} catch (IOException e) {\n\t\t\tAppLog.error(e);\n\t\t} catch (Exception e) {\n\t\t\tAppLog.error(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (null != ps) {\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\t\t\t\tif (null != rs) {\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\t\t\t\tif (null != conn) {\n\t\t\t\t\tconn.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tAppLog.error(e);\n\t\t\t}\n\t\t}\n\t\tAppLog.end();\n\t\treturn (ArrayList<String>) previousBillRoundList;\n\t}", "public String getPhotoFileName() {\n return \"IMG_\" + getId().toString() + \".jpg\";\n }", "public String getImageName() {\r\n\t\treturn _imageName;\r\n\t}", "public final String getSmallOldImageName() {\n\t\treturn smallOldImageName;\n\t}", "String getPrevMoves() {\n return this.prevMoves;\n }", "public final String getImageName() {\n return this.imageName;\n }", "private byte[] getFileNameBytes(File photo) {\r\n return photo.getName().getBytes();\r\n }", "public String[] getNames(){\n \t\tString[] outStrings = new String[otherNames.length+1];\n \t\toutStrings[0] = this.name;\n\t\tfor(int i=1;i<otherNames.length;i++)\n \t\t\toutStrings[i] = this.otherNames[i-1];\n \t\treturn outStrings;\n \t}", "public String getImgOriginal() {\r\n return imgOriginal;\r\n }", "@Basic\n\tpublic String getPrevMove() {\n\t\treturn prev_move;\n\t}", "public void previousSlide() {\r\n\t\tpresentation.prevSlide();\r\n\t}", "public int getPrevious() {\n\t\treturn this.previous;\n\t}", "public PlayerPosition getPrevious() {\n\n\t\tswitch (this) {\n\t\t\tcase BOTTOM:\n\t\t\t\treturn RIGHT;\n\t\t\tcase LEFT:\n\t\t\t\treturn BOTTOM;\n\t\t\tcase TOP:\n\t\t\t\treturn LEFT;\n\t\t\tcase RIGHT:\n\t\t\t\treturn TOP;\n\t\t\tdefault:\n\t\t\t\t// must not happen\n\t\t\t\treturn null;\n\t\t}\n\t}", "private int previousSong() {\n if (playListAdapter != null) {\n playListAdapter.clickPreviousNext(1);\n }\n serviceBound = false;\n player.stopMedia();\n if (currentSong > 0) {\n currentSong--;\n }\n return currentSong;\n }", "private String getUniquePhotoName() {\n\t\tTime now = new Time();\n\t\tnow.setToNow();\n\t\treturn now.format2445();\n\t}", "public static Player getPrevPlayer(){\n\t\tif(players.get(curr).getPnum()==1)\n\t\t\treturn players.get(players.size()-1);\n\t\telse return players.get(curr-1);\n\t}", "public GImage getBack(){\r\n \t\t return back;\r\n\t }", "public SlideNode getPrev() {\n\t\treturn prev;\n\t}", "@Override\n public int previousIndex()\n {\n return idx-1;\n }", "public Stack<ColorImage> getCurrentImageHistory() {\n return currentImage;\n }", "public Index previous() {\n return Index.valueOf(value - 1);\n }", "public State getPreviousState()\r\n\t{\r\n\t\treturn previousState;\r\n\t}", "public Vertex getPrevious(){\n return previous;\n }", "@Override\n public E getPrevious() {\n if (isCurrent() && prev != null) { return prev.getData(); }\n else { throw new IllegalStateException(\"There is no previous element.\"); }\n }", "public Version getPrev(){\n\t\treturn prev;\n\t}", "public static void previous() {\n\t\tsendMessage(PREVIOUS_COMMAND);\n\t}", "public String getPrevCommandString() {\n if (this.history.size() == 0) {\n return \"\";\n }\n\n if (this.currIndex <= 0) {\n return this.history.get(0);\n }\n\n this.currIndex -= 1;\n return this.history.get(this.currIndex);\n }", "@Override\r\n\t\tpublic E previous() {\n\t\t\tcaret = caret.prev();\r\n\t\t\tif (caret == null)\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\tnextIndex--;\r\n\t\t\treturn caret.n.data[caret.idx];\r\n\t\t}", "public String getImgName() {\n return imgName;\n }", "Vector<String> getNamesOfLinesInPreviousScan( boolean visibility);", "public String getOldName() {\n return oldName;\n }", "public String getOldName() {\n return oldName;\n }", "public node getPrevious() {\n\t\t\treturn previous;\n\t\t}", "public boolean hasPrevious()\n {\n // TODO: implement this method\n return false;\n }", "public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n\t}", "public String getPreviousToken() {\n return previousToken;\n }", "@Override\n\t\tpublic List<String> getPhotos() throws RemoteException {\n\t\t\treturn null;\n\t\t}" ]
[ "0.6776686", "0.6762773", "0.6633938", "0.62863076", "0.6261656", "0.62384117", "0.6170591", "0.61433136", "0.60970306", "0.60055333", "0.6004765", "0.59779847", "0.5964958", "0.59613264", "0.5931185", "0.5893874", "0.5861329", "0.5825399", "0.58246124", "0.5739744", "0.5734711", "0.57316595", "0.5730959", "0.5658449", "0.5647315", "0.5630832", "0.5628249", "0.5615365", "0.5578134", "0.5561848", "0.55611145", "0.55557036", "0.5534893", "0.553063", "0.550707", "0.5503838", "0.5497341", "0.5479767", "0.5466153", "0.544946", "0.5443947", "0.54283786", "0.5426033", "0.54182637", "0.5418134", "0.5404299", "0.5394225", "0.5394202", "0.5385899", "0.5383828", "0.5381638", "0.53782505", "0.537754", "0.5376981", "0.5371839", "0.53593916", "0.5354037", "0.53482556", "0.53302556", "0.53249454", "0.53245795", "0.53235984", "0.531601", "0.53004813", "0.52948207", "0.5292063", "0.52870965", "0.5280369", "0.52773917", "0.5273416", "0.5268322", "0.52632755", "0.52485305", "0.5242452", "0.5229372", "0.521998", "0.5212796", "0.5210933", "0.5210203", "0.51985395", "0.51774013", "0.51746535", "0.51735216", "0.5170134", "0.51602423", "0.5154838", "0.5153165", "0.5149664", "0.51453894", "0.5144843", "0.5142639", "0.5141204", "0.5137586", "0.5124147", "0.5124147", "0.5119008", "0.5115087", "0.5112712", "0.5111673", "0.5110333" ]
0.6563582
3
Adds a name to the of previous names the has had
private void addPrevNames(String name){ if (!prevNames.contains(name)){ prevNames.add(name); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNames() {}", "public void addNames() {}", "private void removePrevNames(String name){\r\n\t\tif (prevNames.contains(name)){\r\n\t\t\tprevNames.remove(name);\r\n\t\t}\r\n\t}", "public org.hl7.fhir.String addNewName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().add_element_user(NAME$8);\n return target;\n }\n }", "public org.hl7.fhir.String addNewName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().add_element_user(NAME$0);\n return target;\n }\n }", "public com.walgreens.rxit.ch.cda.PN addNewName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.PN target = null;\n target = (com.walgreens.rxit.ch.cda.PN)get_store().add_element_user(NAME$8);\n return target;\n }\n }", "String getNewName();", "org.hl7.fhir.CodeableConcept addNewName();", "public void setNames(){\n System.out.println();\n System.out.println(\"Welcome! Please set your username!\");\n for(int i = 0; i < players.size(); i ++){\n Player player = players.get(i);\n player.rename(\"Dealer Jack\");\n for(int j = 0; j < i; j ++){\n while(player.getName().equals(players.get(j).getName())){\n System.out.println(\"Username taken! Please enter another name!\");\n player.setName(\"player\" + (i + 1));\n player.rename(\"Dealer Jack\");\n }\n }\n }\n }", "private void setName(){\r\n\t\tString tagString = new String();\r\n\t\tfor (String k : tags.keySet()){\r\n\t\t\ttagString += \"@\" + k;\r\n\t\t}\r\n\t\tString newName = originalName + tagString +\".\"+ extension;\r\n\t\tif (!newName.equals(name)){\r\n\t\t\tremovePrevNames(newName); //if the new name is a previous name\r\n\t\t\taddPrevNames(name);\r\n\t\t\tupdateLog(newName);\r\n\t\t\tname = newName;\r\n\t\t\t//notify the tag observer\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers();\r\n\t\t\tclearChanged();\r\n\t\t}\r\n\t}", "public void setName(String newname)\n {\n name = newname;\n \n }", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t\tfor (int i = 0; i < stateInfo.length; i++) {\r\n\t\t\tif (name.trim().equalsIgnoreCase(stateInfo[i][0])) {\r\n\t\t\t\tthis.flower = stateInfo[i][1];\r\n\t\t\t\tthis.bird = stateInfo[i][2];\r\n\r\n\t\t\t\t// add to the history of state name, flower and bird\r\n\t\t\t\thistory.append(this.name + \", \" + this.flower + \", \" + this.bird + \"\\n\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void add(int newScore,String newName) {\n\n //adding the new score to the list\n points.add(newScore);\n for (int i = 0; i < points.size()-1; i++) {\n for (int j = i+1; j < points.size(); j++) {\n if (points.get(i) < points.get(j)) {\n int temp = points.get(i);\n points.set(i, points.get(j));\n points.set(j, temp);\n }\n }\n }\n\n //adding the new name on the list\n int k = points.indexOf(newScore);\n if (names.size()!=0) {\n String tempx = names.get(names.size() - 1);\n names.add(tempx);\n\n for (int i = names.size() - 1; i > k; i--) {\n names.set(i, names.get(i - 1));\n }\n names.set(k, newName);\n } else {\n names.add(newName);\n }\n\n //updating the files\n addOn(points);\n addOn(names);\n\n //print when the game finishes\n //new GUI(names,points,true, k);\n }", "public String makeName() {\r\n String result = makeNameKOL();\r\n if(previousNames == null || previousNames.size() == maxNames) {\r\n return result;\r\n }\r\n \r\n while(previousNames.contains(result)) {\r\n result = makeNameKOL();\r\n }\r\n \r\n return result;\r\n }", "public void addSiblings(String name) {\n\t\tSiblingsList = SiblingsList.concat(\" \"+name);\r\n\t}", "public void makeName(String str) {\n this.name = str + iL++;\n }", "public void addAName(Animal n)\r\n\t{\r\n\t\tint holderColot = n.hashCode()%9;\r\n\t\tanimalHashMap.put(n, colorArray[holderColot]);\r\n\t\tobNameList.add(n);\r\n\t}", "public void addName() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"name\",\n null,\n childrenNames());\n }", "public String getNewName()\n {\n return this.newName;\n }", "public void addName(NameRecord record)\n\t{\n\t\t// add code to add record to the graphArray \n\t\t// and call repaint() to update the graph\n\t}", "public String getNewName() {\n return newName;\n }", "public String getNewName() {\n return newName;\n }", "public final void setName(final String nameNew) {\n this.name = nameNew;\n }", "public void addName() throws JNCException {\n setLeafValue(Routing.NAMESPACE,\n \"name\",\n null,\n childrenNames());\n }", "com.google.protobuf.ByteString\n getNewNameBytes();", "public void setName(String newname){\n name = newname; \n }", "public static NameID getNewName(String name, Traversable tr) {\n SymbolTable symtab = IRTools.getAncestorOfType(tr, SymbolTable.class);\n String header = (name == null) ? \"temp\" : name;\n NameID ret = new NameID(header);\n int suffix = 0;\n while (findSymbol(symtab, ret) != null) {\n ret = new NameID(header + (suffix++));\n }\n return ret;\n }", "public void setName(String newname) {\n name=newname;\n }", "@Override\r\n\tpublic void updateName(int eno, String newName) {\n\r\n\t}", "public void updateNames(String oldName, String newFileName) {\n listNames.set(listNames.indexOf(oldName), newFileName);\n notifyDataSetChanged();\n }", "public void setName(String new_name){\n this.name=new_name;\n }", "public void setName(String new_name) {\n\t\t_name = new_name;\n\t}", "public void addPerson(String name){\n Person newPerson = new Person(name,this.x1,this.x2);\n for(Person p : personList){\n if(p.equals(newPerson)){\n System.out.println(\"Error! The person already exists.\");\n }\n }\n personList.add(newPerson);\n }", "private void addPersonName(StringBuffer sb, final String patName) {\n\t\tStringTokenizer stk = new StringTokenizer(patName, \"^\", true);\n\t\tfor (int i = 0; i < 6 && stk.hasMoreTokens(); ++i) {\n\t\t\tsb.append(stk.nextToken());\n\t\t}\n\t\tif (stk.hasMoreTokens()) {\n\t\t\tString prefix = stk.nextToken();\n\t\t\tif (stk.hasMoreTokens()) {\n\t\t\t\tstk.nextToken(); // skip delim\n\t\t\t\tif (stk.hasMoreTokens()) {\n\t\t\t\t\tsb.append(stk.nextToken()); // name suffix\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append('^').append(prefix);\n\t\t}\n\t}", "public LinkedHashSet<String> getPrevNames(){\r\n\t\treturn prevNames;\r\n\t}", "public String getNewName() {\n return newName_;\n }", "public void setName(String name) {\n this.name = name;\n incModCount();\n }", "public String getNewName() {\n return instance.getNewName();\n }", "public void addUserName(String userName) {\n\t\tuserNames.add(userName);\n\t}", "public void updateName(String newName)\r\n {\r\n name = newName;\r\n }", "@Override\n\tpublic void addState(String name) {\n\t\tNFAState s = checkIfExists(name);\n\t\tif( s == null){\n\t\t\ts = new NFAState(name);\n\t\t\taddState(s);\n\t\t} else {\n\t\t\tSystem.out.println(\"WARNING: A state with name \" + name + \" already exists in the NFA\");\n\t\t}\n\t\t\n\t}", "public void setUsername(String name)\r\n {\r\n int index = -1;\r\n //Check if the new username is not already taken before setting the new username\r\n if(usernamesTaken.indexOf(name) == -1)\r\n {\r\n index = usernamesTaken.indexOf(this.username);\r\n usernamesTaken.set(index, name);\r\n this.username = name;\r\n }\r\n else\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING: This username is already taken\");\r\n }//end if \r\n }", "public void rename(String n){\n name = n;\r\n }", "public void setName(String newName){\n name=newName;\n }", "public com.google.protobuf.ByteString\n getNewNameBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(newName_);\n }", "public void setName(String newName) {\n this.name = newName;\n }", "public void setName(java.lang.String name)\n {\n name_.setLength(0);\n name_.append(name);\n }", "public void addMember (String name) {\r\n\t\tgetMemberList().add(name);\r\n\t\tsaveMemberList();\r\n\t}", "private void setNewName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n newName_ = value;\n }", "public void insertIntoMap(String key, String name) {\n\t\tif (mapNames.containsKey(key)) {\n\t\t\t// Add new name onto the end of the existing ArrayList.\n\t\t\tmapNames.get(key).add(name);\n\t\t} else {\n\n\t\t\t// Create new ArrayList with the unparsed name as the value\n\t\t\tArrayList<String> arrName = new ArrayList<String>();\n\t\t\tarrName.add(name);\n\t\t\tmapNames.put(key, arrName);\n\t\t}\n\t}", "private static void initializeNames() {\n _names.add(\"Raymond\");\n _names.add(\"Mia\");\n _names.add(\"Maximus\");\n _names.add(\"Thomas\");\n _names.add(\"Candice\");\n\n _names.add(\"Maggie\");\n _names.add(\"Grant\");\n _names.add(\"Joni\");\n _names.add(\"Shirley\");\n _names.add(\"Alaska\");\n\n _names.add(\"Alice\");\n _names.add(\"Bob\");\n _names.add(\"Clark\");\n _names.add(\"Bill\");\n _names.add(\"Mike\");\n\n _names.add(\"Sara\");\n _names.add(\"Jim\");\n _names.add(\"Laura\");\n _names.add(\"Steve\");\n _names.add(\"Chris\");\n }", "public void setName(final String pName){this.aName = pName;}", "@Override\n\tpublic void addFinalState(String name) {\n\t\tNFAState s = checkIfExists(name);\n\t\tif( s == null){\n\t\t\ts = new NFAState(name, true);\n\t\t\taddState(s);\n\t\t} else {\n\t\t\tSystem.out.println(\"WARNING: A state with name \" + name + \" already exists in the NFA\");\n\t\t}\n\t}", "public void setName (String newName)\n {\n this.name = newName; \n }", "public void add( Name name, T n ) throws ParseException\n\t{\n\t\tcheck( name );\n\t\tmap.put( name.name, n );\n\t\tlist.add( n );\n\t}", "public void add(String[] names) {\n add(names, names);\n }", "private void setName(String nameIn){\r\n\t\tplayerName = nameIn;\r\n\t}", "public void setName(String inName)\n {\n\tname = inName;\n }", "public void setName(String newname) {\n\t\tname = newname == null? \"\" : newname;\n\t\tfireNameChanged();\n\t}", "public void add(String name)\n/* 15: */ {\n/* 16:14 */ this.members.add(name);\n/* 17: */ }", "public void setName(String newName){\n name = newName;\n }", "Builder addName(Text value);", "public void setName(java.lang.String newName)\r\n{\r\n\tname = newName;\r\n}", "public void addAlternativeName(String name) {\n alternativeNames.add(name);\n }", "String getNewPlayerName();", "public void rename()\n\t{\n\t\t// get the object within the node\n\t\tObject string = this.getUserObject();\n\n\t\t// should always be a string, given the constructor\n\t\tif (string instanceof String)\n\t\t{\n\t\t\tstring = JOptionPane.showInputDialog(\"Enter a New Name\");\n\n\t\t\tif (string != null && string instanceof String)\n\t\t\t{\n\t\t\t\tthis.setUserObject(string);\n\t\t\t\tthis.name = (String) string;\n\t\t\t}\n\t\t}\n\t}", "Builder addName(String value);", "public void setName(String n){ name=n; }", "@Override\n public void focusLost( FocusEvent arg0 ) {\n String newname = text.getText();\n if ( renameUser( name, newname ) ) {\n ti.setText( newname );\n }\n text.dispose();\n }", "public void setName(String inName)\n {\n name = inName;\n }", "public void adjustName() {\n Item item = getItem();\n if (!item.isFixedName()) {\n if (item.getSchemaComponent().type() == SchemaBase.SEQUENCE_TYPE) {\n if (m_values.size() > 0) {\n Item childitem = ((DataNode)m_values.get(0)).getItem();\n if (item != childitem) {\n item.setName(childitem.getEffectiveName());\n }\n }\n }\n }\n }", "private void clearNewName() {\n \n newName_ = getDefaultInstance().getNewName();\n }", "@Override\r\n\tpublic void setName(String newName) \r\n\t{\r\n\t\tthis._name = newName;\r\n\t}", "public void addCharToName(char c) {\n \t\tif (state == 4) {\n \t\t\t/*\n \t\t\t * if (playerName.equals(\"PLAYER\")) { playerName = \"\"; }\n \t\t\t */\n \t\t\tif (playerName.length() < 16) {\n \t\t\t\tplayerName = playerName + c;\n \t\t\t}\n \t\t}\n \n \t}", "@VTID(10)\n @UseDefaultValues(paramIndexMapping = {0, 1, 2, 3, 4, 5, 6, 7, 8, 11}, optParamIndex = {9, 10}, javaType = {java.lang.Object.class, java.lang.Object.class}, nativeType = {NativeType.VARIANT, NativeType.VARIANT}, variantType = {Variant.Type.VT_ERROR, Variant.Type.VT_ERROR}, literal = {\"80020004\", \"80020004\"})\n @ReturnValue(index=11)\n com.exceljava.com4j.excel.Name add(\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object name,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object refersTo,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object visible,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object macroType,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object shortcutKey,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object category,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object nameLocal,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object refersToLocal,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object categoryLocal);", "@VTID(10)\n @UseDefaultValues(paramIndexMapping = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11}, optParamIndex = {10}, javaType = {java.lang.Object.class}, nativeType = {NativeType.VARIANT}, variantType = {Variant.Type.VT_ERROR}, literal = {\"80020004\"})\n @ReturnValue(index=11)\n com.exceljava.com4j.excel.Name add(\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object name,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object refersTo,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object visible,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object macroType,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object shortcutKey,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object category,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object nameLocal,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object refersToLocal,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object categoryLocal,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object refersToR1C1);", "public void setName (String name) \n\t{ \n\t\tif (name == null) WNet.ex(\"Names cannot be null\");\n\t\tif (name.contains(WNetConstants.LISTSEPARATORANDINVALIDNAMECHARACTER)) throw new Net2PlanException(\"Names cannot contain the character: \" + WNetConstants.LISTSEPARATORANDINVALIDNAMECHARACTER); \n\t\tif (getNet().getNodes().stream().anyMatch(n->n.getName().equals(name))) WNet.ex(\"Names cannot be repeated\");\n\t\tif (name.contains(\" \")) throw new Net2PlanException(\"Names cannot contain spaces\"); \n\t\tn.setName(name); \n\t}", "public void addSeriesName(String name) {\n\t\tseriesLabels.add(name);\n\t\tthis.dirtyAttributes.add(Constants.LABELS);\n\n\t}", "void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}", "public void setName(final String name);", "void setName(String name) {\n setStringStat(name, playerName);\n }", "void setName(String name_);", "public void rename (String newName) throws Exception;", "public State addState(String name) {\r\n \t\tState state = states.get(name);\r\n \t\tif (state == null) {\r\n \t\t\tstate = new State(name, index++);\r\n \t\t\tstates.put(name, state);\r\n \t\t\ttransitions.put(name, new Transition(state));\r\n \t\t}\r\n \r\n \t\treturn state;\r\n \t}", "public void setName(String newName) {\r\n\t\tthis.holderName = newName;\r\n\t}", "public void setName(String name)\n {\n playersName = name;\n }", "public ModelMessage addName(String value) {\n super.addName(value);\n return this;\n }", "public final void setName(String name) {_name = name;}", "public com.google.protobuf.ByteString\n getNewNameBytes() {\n return instance.getNewNameBytes();\n }", "@VTID(10)\n @UseDefaultValues(paramIndexMapping = {0, 1, 2, 3, 4, 5, 6, 7, 11}, optParamIndex = {8, 9, 10}, javaType = {java.lang.Object.class, java.lang.Object.class, java.lang.Object.class}, nativeType = {NativeType.VARIANT, NativeType.VARIANT, NativeType.VARIANT}, variantType = {Variant.Type.VT_ERROR, Variant.Type.VT_ERROR, Variant.Type.VT_ERROR}, literal = {\"80020004\", \"80020004\", \"80020004\"})\n @ReturnValue(index=11)\n com.exceljava.com4j.excel.Name add(\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object name,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object refersTo,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object visible,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object macroType,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object shortcutKey,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object category,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object nameLocal,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object refersToLocal);", "public void setName(String newName) {\n this.name = newName;\n }", "public void setName(String newName) {\n this.name = newName;\n }", "public void rename(String name){\n this.name = name;\n }", "private void renameMapNames () {\n if (mappingNum == 0) {\n mapNames = null;\n return;\n }\n this.mapNames = new String[mappingNum];\n for (int i = 0; i < mappingNum; i++) {\n mapNames[i] = GBSHDF5Constants.MAPBASE + this.getThreeFigureString(i);\n }\n }", "public void setName(String newName){\n\n //assigns the value newName to the name field\n this.name = newName;\n }", "protected void reinitializeName()\n {\n\t\tname = StsLoader.reinitializeName(name);\n }", "public void add(String nameItem)\n\t{\n\t\tmenu.add(nameItem);\n\t}", "public void rename(GeoElement geo) {\n \t\tremove(geo);\n \t\tadd(geo);\n \t}", "public abstract void rename(String newName);", "public static void main(String[] args) {\r\n\t\tString names[] = {\"Bob\", \"Milly\",\"Mindy\"};\r\n\t\t\r\n//\t\tfor (String string : names){\r\n//\t\t\tSystem.out.println(string);\r\n//\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * But what would happen if we try to add another name to this?\r\n\t\t */\r\n\t\t\r\n\t\t\r\n\t\tnames[3] = \"Barry\";\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * How can we add this to names?\r\n\t\t * \r\n\t\t * something like this.\r\n\t\t */\r\n\t\t\r\n//\t\tString copy[] = names;\r\n//\t\tnames = new String [4];\r\n//\t\tfor (int i = 0; i < copy.length ; i++){\r\n//\t\t\tnames[i] = copy[i];\r\n//\t\t}\r\n//\t\tnames[3]= \"Barry\";\r\n//\t\t\r\n//\t\tfor (String string : names){\r\n//\t\t\tSystem.out.println(string);\r\n//\t\t}\r\n\r\n\t}" ]
[ "0.74051946", "0.74051946", "0.72110903", "0.68598825", "0.6859045", "0.67531323", "0.6436186", "0.6391823", "0.63715374", "0.63707274", "0.624386", "0.6236551", "0.6232927", "0.62162787", "0.62098366", "0.6191614", "0.61811846", "0.61714464", "0.6170602", "0.61585253", "0.61442703", "0.61442703", "0.613208", "0.6108627", "0.6063308", "0.60290706", "0.60102504", "0.5988193", "0.5972869", "0.5957711", "0.5943388", "0.59384066", "0.593488", "0.5896892", "0.5876567", "0.58736336", "0.5848291", "0.583711", "0.5829975", "0.5829386", "0.5824404", "0.58194494", "0.5799379", "0.579825", "0.5792443", "0.5787922", "0.57776254", "0.57600707", "0.57543296", "0.5752289", "0.57455283", "0.5738337", "0.57128745", "0.5706415", "0.57041746", "0.57021004", "0.57001555", "0.5679911", "0.5678354", "0.5674497", "0.567302", "0.5673001", "0.5664079", "0.5663122", "0.5660559", "0.56503356", "0.5649953", "0.5646563", "0.56390387", "0.5638131", "0.56267023", "0.56225485", "0.56152904", "0.5611668", "0.56084245", "0.56082284", "0.56061995", "0.56039554", "0.5596405", "0.558017", "0.5573575", "0.55681354", "0.55644935", "0.5558273", "0.5557805", "0.5548883", "0.5547907", "0.5547674", "0.5544886", "0.5543369", "0.554001", "0.554001", "0.5538284", "0.55381876", "0.5536505", "0.5534955", "0.55281043", "0.55264074", "0.5523009", "0.55222625" ]
0.8602492
0
Removes a previous name from the set of previous names the photo has had, so that the previous names will not contain the current name, since it is not previous.
private void removePrevNames(String name){ if (prevNames.contains(name)){ prevNames.remove(name); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addPrevNames(String name){\r\n\t\tif (!prevNames.contains(name)){\r\n\t\t\tprevNames.add(name);\r\n\t\t}\r\n\t}", "public void removePatient(String name){\r\n current = front;\r\n afterCurrent = front.getNext();\r\n \r\n if (current.getPatient().getName().trim().equalsIgnoreCase(name)){\r\n front = afterCurrent;\r\n current = null;\r\n counter--;\r\n }\r\n else {\r\n while (!afterCurrent.getPatient().getName().trim().equalsIgnoreCase(name)){\r\n afterCurrent = afterCurrent.getNext();\r\n current = current.getNext();\r\n }\r\n if (afterCurrent.getNext() == null){\r\n current.setNext(null);\r\n back = current;\r\n afterCurrent = null;\r\n counter--;\r\n }\r\n else{\r\n current.setNext(afterCurrent.getNext());\r\n afterCurrent = null;\r\n counter--;\r\n }\r\n }\r\n }", "public LinkedHashSet<String> getPrevNames(){\r\n\t\treturn prevNames;\r\n\t}", "public void removeAllOriginalAlbumTitle() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ORIGINALALBUMTITLE);\r\n\t}", "public void unsetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NAME$8, 0);\n }\n }", "public void undoLastCapturedPhoto() {\n\t\t\n\t}", "public void unsetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NAME$0, 0);\n }\n }", "public void unsetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NAME$0, 0);\n }\n }", "public void remove(final String name) {\r\n\t\tremove(names.indexOf(name));\r\n\t}", "public void unsetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(NAME$0, 0);\r\n }\r\n }", "void unsetName();", "public void remove(String name);", "void remove(String name);", "void remove(String name);", "private native void removeCallback(String name)\n /*-{\n var target = $wnd;\n var parts = name.split('.');\n \n for(var i = 0; i < parts.length - 1; i++) {\n var part = parts[i];\n if (target[part] === undefined) {\n $wnd.console.log(part,'not defined in',target);\n // No longer attached -> nothing more to do\n return;\n }\n target = target[part];\n }\n\n $wnd.console.log('removing',parts[parts.length - 1],'from',target);\n delete target[parts[parts.length - 1]];\n }-*/;", "void removeHasInstitutionName(String oldHasInstitutionName);", "public void remove(String name) {\n\t\tfor (int i = vibrationList.size() - 1; i >= 0; i--) {\r\n\t\t\tVibration vibration = vibrationList.get(i);\r\n\t\t\tif(vibration.getName().equals(name)){\r\n\t\t\t\tvibrationList.remove(vibration);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void processDeleteNames() {\r\n\t\tif (!IniSetup.enterNames.getText().equals(\"\")) {\r\n\t\t\tnames.remove((String) IniSetup.enterNames.getText());\r\n\t\t}\r\n\t}", "public Himmelskoerper remove(String name) {\r\n\t\tHimmelskoerper himmelskoerper = null;\r\n\t\tfor (Himmelskoerper hTemp : ladung.keySet()) {\r\n\t\t\tif (hTemp.getName().equals(name)) {\r\n\t\t\t\thimmelskoerper = hTemp;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (himmelskoerper != null) {\r\n\t\t\tthis.aktuelleLast -= this.ladung.get(himmelskoerper).getGewicht();\r\n\t\t\tthis.ladung.remove(himmelskoerper);\r\n\t\t}\r\n\r\n\t\treturn himmelskoerper;\r\n\t}", "public void removeName(Name arg0) {\n\n\t}", "public void unsetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(NAME$2);\r\n }\r\n }", "public void removeOriginalAlbumTitle(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "public boolean remove(String name) {\n LinkedNode current = head;\n while (current != null && !current.value().getName().equals(name)) {\n current = current.next();\n }\n if (current != null) {\n if (current.previous() != null) {\n current.previous().setNext(current.next());\n } \n else {\n head = current.next();\n }\n if (current.next() != null) {\n current.next().setPrevious(current.previous());\n } \n else {\n tail = current.previous();\n }\n length--;\n return true;\n }\n return false;\n }", "private void deletePrevMoves() {\n this.prevMoves = \"\";\n }", "void remove(String name) throws Exception;", "public void clearNames() {\n eventTitles = null;\n guestTitles = null;\n }", "public void previous() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getPreviousMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getPreviousModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }", "public void remove(String name)\n/* */ {\n/* 1177 */ for (int i = 0; i < this.attributes.size(); i++) {\n/* 1178 */ XMLAttribute attr = (XMLAttribute)this.attributes.elementAt(i);\n/* 1179 */ if (attr.getName().equals(name)) {\n/* 1180 */ this.attributes.removeElementAt(i);\n/* 1181 */ return;\n/* */ }\n/* */ }\n/* */ }", "public void unsetUniqueName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(UNIQUENAME$10, 0);\r\n }\r\n }", "public void unsetFileName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FILENAME$0, 0);\n }\n }", "public void unsetUrlName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(URLNAME$12, 0);\r\n }\r\n }", "private String removeNamePrefix(String sFileName){\n int iDateScoreIndex = 0;\n String sOriginalFileName = \"\";\n\n iDateScoreIndex = sFileName.indexOf(\"_attempt_\");\n sOriginalFileName = sFileName.substring(iDateScoreIndex + 29);\n\n return sOriginalFileName;\n }", "private String fixName(String aName) {\n final String firstToken = new StringTokenizer(aName, \" \").nextToken();\n int iRepeatedNamePos = aName.indexOf(firstToken, 1);\n if (iRepeatedNamePos > 0) {\n return aName.substring(0, iRepeatedNamePos).trim();\n }\n return aName;\n }", "private String removeFeat(String songName) {\n if(songName.contains(\"feat.\")){\n int index = songName.indexOf(\"feat.\");\n songName = songName.substring(0,index -1);\n }\n return songName;\n }", "protected static ImageFile revertToOldName(String name, ImageFile img)throws IOException\n {\n String tagString = \"\";\n if(name.contains(\"@\"))\n {\n tagString = \" \" + name.substring(name.indexOf('@'), name.indexOf(\".\"));\n }\n else\n {\n tagString = \" \" + name.substring(0, name.indexOf(\".\"));\n }\n StringTokenizer st = new StringTokenizer(tagString,\" @\");\n ArrayList<Tag> tags = new ArrayList<Tag>();\n ArrayList<Tag> actualTags = new ArrayList<Tag>();\n\n while (st.hasMoreElements())\n {\n tags.add(new Tag(st.nextToken()));\n }\n\n for (Tag tag : tags)\n {\n for (Tag currTag : Log.allTags)\n {\n if (tag.getName().equals(currTag.getName()))\n {\n actualTags.add(currTag);\n }\n }\n }\n\n return rename(img, actualTags);\n }", "public void removeName(String arg0) {\n\n\t}", "public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }", "@Override\r\n\tpublic void deleteByName(String name) {\n\t\tint del = name.toUpperCase().charAt(0) - 'A';\r\n\t\tfor (int i = 0; i < array[del].size(); i++) {\r\n\t\t\tif (array[del].get(i).name == name) {\r\n\t\t\t\tarray[del].remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void clearNewName() {\n \n newName_ = getDefaultInstance().getNewName();\n }", "public void removeAllOriginalFilename() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ORIGINALFILENAME);\r\n\t}", "public void removeOriginalAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "public void deleteMapName(String name){\n\t\tLinkedList<String> names=new LinkedList<String>();\n\t\t\n\t\tboolean present = false;\n\t\tFileReader r;\n\t\ttry {\n\t\t\tr = new FileReader (\"mapRecords.txt\");\n\t\t\tBufferedReader b = new BufferedReader (r);\n\t\t\tString s=b.readLine();\n\t\t\t\n\t\t\twhile(s!=null){\n\t\t\t\tif(s.equals(name))\n\t\t\t\t\tpresent =true; \n\t\t\t\t\n\t\t\t\tnames.add(s);\n\t\t\t\ts=b.readLine();\n\t\t\t\t\n\t\t\t}\n\n\t\t\tr.close();\n\t\t\tb.close();\n\t\t\t\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found\");\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.out.println(\"Can't read file\");\n\t\t}\n\t\t\n\n\t\tif (present){\n\t\t\tnames.remove(name);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tFileWriter w= new FileWriter(new File(\"mapRecords.txt\"));\n\t\t\t\tfor (String n: names){\n\t\t\t\t\tw.write(n+\"\\n\");\n\t\t\t\t\tw.write(System.lineSeparator())\t;\n\t\t\t\t}\t\n\t\t\t\tw.flush();\n\t\t\t\tw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t//e.printStackTrace();\n\t\t\t\tSystem.out.println(\"Can't write to the file\");\n\t\t\t}\n\t\t}\n\t\telse //there is nothing to remove the file is not present \n\t\t\treturn;\n\t\t\n\t}", "private void deleteProfile(String inputName) {\n \tif (! inputName.equals(\"\")) {\n\t\t\t//removes the inputName from the database if it existed\n \t\tif (database.containsProfile(inputName)) {\n\t\t\t\tdatabase.deleteProfile(inputName);\n\t\t\t\tcanvas.removeAll();\n\t\t\t\tcanvas.showMessage(\"Profile of \" + inputName + \" deleted.\");\n\t\t\t} \n \t\t//If the entry with the inputName as value cannot be found, a statement is printed to inform as such\n \t\telse {\n\t\t\t\tcanvas.showMessage(\"A profile with the name \" + inputName + \" does not exist.\");\n\t\t\t}\n\t\t\tcurrentProfile = null;\n\t\t}\n\t}", "private void removeSource(String sourceName) {\n\t\t\n\t}", "public void unsetFromName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FROMNAME$4, 0);\n }\n }", "void eraseContact(String name) \r\n\t\t{\r\n\t\t\tfor(int i = 0; i < this.size(); i++)\r\n\t\t\t{\r\n\t\t\t String n = this.get(i).getContactName();\r\n\t\t\t \r\n\t\t\t\tif(n.equalsIgnoreCase(name))\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(n);\r\n\t\t\t\t\tCalendar.deleteEventBycontact(this.get(i));\r\n\t\t\t\t\tthis.remove(i);\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\t\r\n\t\t}", "public void unsetFriendlyName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FRIENDLYNAME$2, 0);\r\n }\r\n }", "public String reviseBankName(String name) \n {\n return null; \n }", "protected void removeAccess(final String name) {\n if (!this.hasAccess(name, true)) return;\r\n \r\n // Find line with matching name.\r\n org.bukkit.block.Sign state = this.getSignBlock();\r\n Integer removeFrom = null;\r\n if (state.getLine(2) != null && state.getLine(2).equalsIgnoreCase(name)) removeFrom = 2;\r\n else if (state.getLine(3) != null && state.getLine(3).equalsIgnoreCase(name)) removeFrom = 3;\r\n \r\n if (removeFrom == null) return; \r\n \r\n state.setLine(removeFrom, \"\");\r\n }", "public void clear(String name) {\n/* 95 */ this.texturesLinear.remove(name);\n/* 96 */ this.texturesNearest.remove(name);\n/* */ }", "public String rename() throws IOException {\n StringBuilder newName = new StringBuilder();\n for (String tag : photo.getTags().getCurrentTags()) {\n newName.append(\"@\").append(tag).append(\" \");\n }\n String oldName = photo.getTagName();\n\n if (photo.getTags().getCurrentTags().size() != 0) {\n photo.setTagName(photo.getName() + \" \" + newName.toString().trim());\n } else {\n photo.setTagName(photo.getName());\n }\n Path old = Paths.get(photo.getUrl());\n Files.move(old, old.resolveSibling(photo.getTagName() + photo.getExtension()));\n photo.setUrl(old.resolveSibling(photo.getTagName() + photo.getExtension()).toString());\n return oldName;\n }", "private void setName(){\r\n\t\tString tagString = new String();\r\n\t\tfor (String k : tags.keySet()){\r\n\t\t\ttagString += \"@\" + k;\r\n\t\t}\r\n\t\tString newName = originalName + tagString +\".\"+ extension;\r\n\t\tif (!newName.equals(name)){\r\n\t\t\tremovePrevNames(newName); //if the new name is a previous name\r\n\t\t\taddPrevNames(name);\r\n\t\t\tupdateLog(newName);\r\n\t\t\tname = newName;\r\n\t\t\t//notify the tag observer\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers();\r\n\t\t\tclearChanged();\r\n\t\t}\r\n\t}", "public void remove(ResourceLocation name) {\n data.remove(name.toString());\n }", "public void removePrevCardList(){\n for (int i = 0; i < playerCardList.getPlayerCardListSize(); i++){\n playerCardPuzzle.getChildren().remove(playerCardList.getPlayerCardByNo(i));\n }\n }", "public void unsetAutoForwardToName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(AUTOFORWARDTONAME$12, 0);\n }\n }", "public void prev()\n {\n if (mHistoryIdx == 0) {\n return;\n }\n\n mCommandList.get(--mHistoryIdx).undo();\n this.setChanged();\n this.notifyObservers(mHistoryIdx);\n }", "private void removeItemFromList(String nameStr) {\n for (int i = 0; i < ingredientList.size(); i++) {\n if (ingredientList.get(i).getName().toLowerCase().equals(nameStr.toLowerCase())) {\n ingredientList.remove(i);\n return;\n }\n }\n }", "Object removeTemp(String name);", "public void removeAllOriginalArtist() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ORIGINALARTIST);\r\n\t}", "public static void showPreviousPlayerNames() {\r\n\t\tGameSetup.choiceBoxPlayer1.select(Main.player1);\r\n\t\tGameSetup.choiceBoxPlayer2.select(Main.player2);\r\n\t\tGameSetup.choiceBoxPlayer3.select(Main.player3);\r\n\t\t\r\n\t\t//Don't show fourth player if playing 3 handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tGameSetup.choiceBoxPlayer4.select(Main.player4);\r\n\t\t}\r\n\t}", "public void removePlayer(String name) {\n for (Player player : players) {\n if (player.getName() != null && player.getName().equals(name)) {\n player.setState(false);\n for (Piece piece : player.getPieces()) {\n piece.setPosition(0);\n }\n\n // PLAYERLISTENER : Trigger playerEvent for player that LEFTGAME\n for (PlayerListener listener : playerListeners) {\n PlayerEvent event = new PlayerEvent(this, player.getColour(), PlayerEvent.LEFTGAME);\n listener.playerStateChanged(event);\n }\n\n if (player.getName().equals(players.get(activePlayer).getName())) {\n this.setNextActivePlayer();\n }\n }\n }\n }", "private void undoLastPoint() {\n \t\tif ( this.markers.isEmpty() ) {\n \t\t\treturn;\n \t\t}\n \n \t\tthis.markers.remove( this.markers.size() - 1 ).remove();\n \t\tthis.commitPolygon();\n \n \t\tif ( this.markers.size() > 1 ) {\n \t\t\tthis.moveCameraToPolygon( true );\n \t\t}\n \n \t\tthis.disableIfDissatisfied();\n \t}", "public final void setOldImageName(String oldImageName) {\n\t\tthis.oldImageName = oldImageName;\n\t}", "public abstract boolean remove(String name);", "void removeSameAs(Object oldSameAs);", "public void resetHistory() {\n SharedPreferences.Editor editor = preferences.edit();\n editor.remove(\"usernameHistory\");\n editor.apply();\n }", "public void previous();", "public void restorePreviousDeletion(){\n int cachePosition = deletedEntry.cachePosition;\n sortedFilesArrList.add(cachePosition, deletedEntry.cacheFileName);\n tag1ArrList.add(cachePosition, deletedEntry.cacheTag1);\n tag2ArrList.add(cachePosition, deletedEntry.cacheTag2);\n tag3ArrList.add(cachePosition, deletedEntry.cachetTag3);\n favArrList.add(cachePosition, deletedEntry.cacheFileIsFavorite);\n deletedEntry = null;\n\n notifyItemInserted(cachePosition);\n notifyItemRangeChanged(cachePosition, this.getItemCount());\n }", "public void previous() {\n if (hasPrevious()) {\n setPosition(position - 1);\n }\n }", "boolean remove(String name);", "public String removeDoubles(String name) {\n\t\tStringBuilder sb = new StringBuilder(name);\n\t\tint lengthOfName = name.length();\n\n\t\tfor (int i = 0; i < lengthOfName - 1; i++) {\n\t\t\tif (sb.charAt(i) == sb.charAt(i + 1)) {\n\t\t\t\tsb.deleteCharAt(i + 1);\n\t\t\t\tlengthOfName--;\n\t\t\t}\n\t\t}\n\n\t\tname = sb.toString();\n\t\treturn name;\n\t}", "@Override\n public void deleteEntryUsingName(String surname) {\n for (int i=0; i<members.size(); i++) {\n if (members.get(i).getSurname().equals(surname)) {\n members.remove(i);\n break;\n }\n }\n\n\n }", "private void displayPrevious() {\r\n\t\ti--;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "void previous() throws NoSuchRecordException;", "public void removeTerm(String name) {\n ArrayList<String> temp = new ArrayList<>();\n\n for (Term t: listOfTerms) {\n String termName = t.getTermName();\n temp.add(termName);\n }\n\n int index = temp.indexOf(name);\n listOfTerms.remove(index);\n }", "private void remove(String name) {\n if (team.getPokemon(name) != null) {\n System.out.println(\"You are going to remove \" + name);\n System.out.println(\"This process is inrevertable, are you sure? [y/n]\");\n String command = input.next();\n if (command.equals(\"y\") || command.equals(\"yes\")) {\n team.remove(name);\n System.out.println(name + \" has been removed form your team\");\n System.out.println(\"You currently have \" + team.count() + \" pokemons in your team\");\n }\n } else {\n System.out.println(name + \" is not found within your team\");\n }\n }", "public static void removeOriginalAlbumTitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.remove(model, instanceResource, ORIGINALALBUMTITLE, value);\r\n\t}", "void unsetDisplayName();", "public void setPreviousValue(final String previousValue);", "public void removeAttrezzo(String nomeAttrezzo) {\r\n\t\tAttrezzo a = new Attrezzo(nomeAttrezzo, 0);\r\n\t\tif(this.attrezzi.contains((a)))\r\n\t\t\t\tattrezzi.remove(attrezzi.get(attrezzi.indexOf(a)));\r\n\t}", "public final String getOldImageName() {\n\t\treturn oldImageName;\n\t}", "String removeEdible(String name);", "public void setPrevious(ListElement previous)\n\t {\n\t this.previous = previous;\n\t }", "public void setPrevious_magistrate(java.lang.String previous_magistrate) {\n this.previous_magistrate = previous_magistrate;\n }", "public void removeAllAlbumTitle() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ALBUMTITLE);\r\n\t}", "private void remove() {\n if (prev != null) {\n prev.next = next;\n }\n if (next != null) {\n next.prev = prev;\n }\n }", "public\tString\tgetPreviousSignature() {\n\t\t\treturn\tthis.prevSignature;\n\t\t}", "public void setPreviousMedicalCategorisatrion (java.lang.String previousMedicalCategorisatrion) {\n\t\tthis.previousMedicalCategorisatrion = previousMedicalCategorisatrion;\n\t}", "public void setPrev(String prev){\n\t\tthis.prev = prev;\n\t}", "public void setOriginalName(String originalName) {\n\t\tthis.originalName = originalName;\n\t}", "void prevSet(Entry e) {\r\n\t\t\tprev = e;\r\n\t\t}", "private File getPreviousPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() <= 0) {\r\n retVal = listFiles.get(listFiles.size() - 1);\r\n fileList.setSelectedIndex(listFiles.size() - 1);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() - 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() - 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "private void previous() {\n if (position > 0) {\n Player.getInstance().stop();\n\n // Set a new position:w\n --position;\n\n ibSkipNextTrack.setImageDrawable(getResources()\n .getDrawable(R.drawable.ic_skip_next_track_on));\n\n try {\n Player.getInstance().play(tracks.get(position));\n } catch (IOException playerException) {\n playerException.printStackTrace();\n }\n\n setImageDrawable(ibPlayOrPauseTrack, R.drawable.ic_pause_track);\n setCover(Player.getInstance().getCover(tracks.get(position), this));\n\n tvTrack.setText(tracks.get(position).getName());\n tvTrackEndTime.setText(playerUtils.toMinutes(Player.getInstance().getTrackEndTime()));\n }\n\n if (position == 0) {\n setImageDrawable(ibSkipPreviousTrack, R.drawable.ic_skip_previous_track_off);\n }\n }", "public boolean removeSongByName(String name) {\n\n\t\tIterator<Song> itr = songList.iterator();\n\n\t\t// remove all even numbers\n\t\twhile (itr.hasNext()) {\n\t\t\tSong s = itr.next();\n\n\t\t\tif (s.GetName().equalsIgnoreCase(name)) {\n\t\t\t\tsongList.remove(s);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public String makeName() {\r\n String result = makeNameKOL();\r\n if(previousNames == null || previousNames.size() == maxNames) {\r\n return result;\r\n }\r\n \r\n while(previousNames.contains(result)) {\r\n result = makeNameKOL();\r\n }\r\n \r\n return result;\r\n }", "@Override\r\n\tpublic String prev() {\n\t\tString pre;\r\n\r\n\t\tpre = p.getPrev();\r\n\r\n\t\tif (pre != null) {\r\n\t\t\tthisPrevious = true;\r\n\t\t\tinput(pre);\r\n\t\t}\r\n\t\treturn pre;\r\n\t}", "public void clearNName() {\n\t\tn.clearName();\n\t\tif (next != null)\n\t\t\tnext.clearNName();\n\t}", "public void removeCurrent( )\n {\n // Implemented by student.\n }", "public String getOldName() {\n return oldName;\n }", "public String getOldName() {\n return oldName;\n }" ]
[ "0.7155877", "0.64134", "0.63067216", "0.6113709", "0.5997443", "0.59729326", "0.5914114", "0.5914114", "0.59026957", "0.58908683", "0.58882034", "0.5833374", "0.58264214", "0.58264214", "0.5795246", "0.5740348", "0.5723493", "0.56968975", "0.5673009", "0.5665067", "0.56356764", "0.5622998", "0.55944085", "0.5583474", "0.5577766", "0.5530102", "0.55247664", "0.5510139", "0.54865897", "0.5458797", "0.5455241", "0.5446612", "0.54462016", "0.5434838", "0.5429295", "0.54219157", "0.54191154", "0.54074234", "0.5390661", "0.53890437", "0.53826773", "0.5372886", "0.5341437", "0.53198", "0.53181094", "0.5310301", "0.5303698", "0.53027827", "0.52968013", "0.52960795", "0.529227", "0.5289732", "0.52756995", "0.5270467", "0.52634096", "0.5253412", "0.52434546", "0.52367705", "0.52287585", "0.5225455", "0.5224605", "0.5221994", "0.5204", "0.5202205", "0.5200506", "0.5195306", "0.51948833", "0.5190395", "0.5185575", "0.51791567", "0.5171364", "0.5169706", "0.5168083", "0.51516664", "0.5146973", "0.51424277", "0.5140006", "0.5135838", "0.5123158", "0.51217675", "0.5115996", "0.51109535", "0.51067466", "0.51012564", "0.50980854", "0.50883865", "0.5078974", "0.50785273", "0.5074524", "0.50502026", "0.5046566", "0.50459", "0.50449383", "0.50448304", "0.50410175", "0.503825", "0.5036957", "0.5031685", "0.5030519", "0.5030519" ]
0.84507436
0
Get the of objects the has
public Set<String> getTags(){ return tags.keySet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection getRegisteredObjects() {\n return usedByObjects;\n }", "Collection<? extends WrappedIndividual> getHas();", "public Collection<GObject> getObjects();", "public StateVariable getRelevantObjects () {\n return relevantObjects;\n }", "private List<String> retrieveObjectsInRoom(Room room) {\n List<String> retirevedInRoom = new ArrayList<>();\n for (String object : room.getObjects()) {\n if (wantedObjects.contains(object)) {\n retirevedInRoom.add(object);\n }\n }\n return retirevedInRoom;\n }", "List<SoftObjectReference> getObjects();", "public List<GameObject> getObjects () {\n\t\treturn objects;\n\t}", "private Collection getInstances() {\n \t\tCollection instances=null;\r\n\r\n //instances = cls.getInstances();\r\n \t\tRDFProperty ready = owlModel.getRDFProperty(oTab.namespacePrefix + \":\" + oTab.pReady);\r\n\r\n \t\tif ( ready != null )\r\n \t\t{\r\n \t\t\tinstances = owlModel.getRDFResourcesWithPropertyValue(ready, true);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tSystem.out.println(\"*** Could not lookup property defintion for \" + oTab.namespacePrefix + \":\" + oTab.pReady + \" Ontology not imported\");\r\n \t\t}\r\n\r\n return instances;\r\n }", "boolean hasAll();", "boolean hasAll();", "Map getAll();", "private void getObjects() {\n\t\tmeteors = go.getMeteors();\n\t\texplosions = go.getExplosions();\n\t\ttargets = go.getTargets();\n\t\tcrosses = go.getCrosses();\n\t\trockets = go.getRockets();\n\t\tearth = go.getEarth();\n\t}", "public List getTheObjects() {\r\n if (theObjects == null) {\r\n setTheObjects(new Vector());\r\n }\r\n return theObjects;\r\n }", "public ArrayList<EplusObject> getObjects() {\n\t\treturn objects;\n\t}", "T[] getObjects() {\n\t\treturn this.array;\n\t}", "E[] getAll();", "public abstract List<Object> getAll();", "@Nonnull\n\t@Override\n\tpublic Map<DoodId, Obj> getObjs() {\n\t\treturn _objs;\n\t}", "public Map<String, Object> getObjects() {\n return objects;\n }", "boolean hasHas();", "Collection<? extends Object> getHasAlcohol();", "boolean getContainEntities();", "public int[] getObjectIds() {\n\t\t\treturn objects;\n\t\t}", "@Override\r\n public boolean hasMoreObjects() {\r\n return hasMore;\r\n }", "Collection<? extends Object> getHasAlcoholResult();", "public List<GameObject> getSelected() {\n\t\treturn selectedObjects;\n\t}", "public abstract AbstractObjectIterator<LocalAbstractObject> getAllObjects();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "public int getCount() {\n return objects.size();\n }", "Collection<? extends Object> getHasAlcoholBloodContent();", "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "Collection<? extends WrappedIndividual> getContains();", "Collection<? extends Object> getFullHadith();", "Collection<? extends WrappedIndividual> getHasPart();", "public List<Object> getObjectsForTest() {\n return objects;\n }", "@Override\n public List<BaiseeClazz> findAllClazzInfo() {\n return claMapper.findAllClazzInfo();\n }", "public int getNumObjects(){\n return numObjects;\n }", "public ArrayList<ObjectInMap> getVisibleObjects() {\n //To ensure Obstacles will be drawn at last\n objectsInMap.sort((o1, o2) -> {\n if (o1 instanceof Bush)\n return 1;\n else if (o2 instanceof Bush)\n return -1;\n else if (o1 instanceof Obstacle)\n return -1;\n else if (o2 instanceof Obstacle)\n return 1;\n else\n return 0;\n });\n\n Polygon visible = new Polygon(new int[]{viewPoint.x, ((int) (viewPoint.x + zoom * GAME_WIDTH)), ((int) (viewPoint.x + zoom * GAME_WIDTH)), viewPoint.x}\n , new int[]{viewPoint.y, viewPoint.y, ((int) (viewPoint.y + zoom * GAME_HEIGHT)), ((int) (viewPoint.y + zoom * GAME_HEIGHT))}, 4);\n\n return objectsInMap.stream().filter(o -> o.intersects(visible)).collect(Collectors.toCollection(ArrayList::new));\n }", "public final boolean getByKernels()\r\n\t{\r\n\t\treturn byKernels;\r\n\t}", "public ProvidedObject[] getProvidedObjects() {\n\t\treturn result instanceof Provider ? ((Provider) result)\n\t\t\t\t.getProvidedObjects() : new ProvidedObject[0];\n\t}", "boolean allHits();", "public List<BaseObject> getAllItems() {\n ArrayList<BaseObject> list = new ArrayList<BaseObject>(ufos);\n list.add(ship);\n list.addAll(bombs);\n list.addAll(rockets);\n return list;\n }", "public ArrayList getObjsList() {\n return objList;\n }", "public List<OnlineObject> getOnlineObjects() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn getOnlineObjects(this.onlineObjects.size());\n\t\t}\n\t}", "private Iterable<ModelInfo<Project>> infos() {\n return data.keySet();\n }", "protected Collection getCharacteristicsInScope(Collection objects, Collection scope) {\n Iterator it = objects.iterator();\n Collection objectsInScope = new ArrayList();\n while (it.hasNext()) {\n ScopedIF scopedObj = (ScopedIF) it.next();\n if (scopedObj.getScope().equals(scope))\n objectsInScope.add(scopedObj);\n }\n return objectsInScope;\n }", "Map<String, Object> getServiceSpecificObjects();", "public List<MLocoBoggie> getboogie() {\n\t\t\t\tList<MLocoBoggie> getboogies = new ArrayList<>();\n\t\t\t\tobj_boogierepo.findAll()\n\t\t\t\t.forEach(getboogies::add);\n\n\t\t\t\treturn getboogies;\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n public AbstractObjectIterator<LocalAbstractObject> provideObjects() {\n return getAllObjects();\n }", "@Override\n\tpublic Set<T> retrieveAllItems() {\n\t\treturn cache;\n\t}", "@Override\n public Iterator<T> getHojas(){\n return (super.getHojas());\n }", "public ObservableList<Part> getAllAssociatedParts() {\n return associatedParts;\n }", "public ObservableList<Part> getAllAssociatedParts() {\n return associatedParts;\n }", "public boolean hasAll() {\n return all_ != null;\n }", "public boolean hasAll() {\n return all_ != null;\n }", "private List<Entity> getLoadableEntities() { \n ArrayList<Entity> choices = new ArrayList<Entity>();\n // If current entity is null, nothing to do\n if (ce() == null) {\n return choices;\n }\n List<Entity> entities = clientgui.getClient().getGame()\n .getEntitiesVector();\n for (Entity other : entities) { \n if (other.isSelectableThisTurn() && ce().canLoad(other, false)) {\n choices.add(other);\n }\n }\n return choices;\n }", "public boolean empty() {\n return objects.isEmpty();\n }", "@Override\n\tpublic List<EvaluateCustom> getObjects(QueryVo<EvaluateCustom> vo) {\n\t\treturn evaluateMapper.getObjects(vo);\n\t}", "public List<Gasto> findAll(){\n\t\treturn (List<Gasto>) gastoModel.findAll();\n\t}", "public Iterable<Boat> boatsOwnedByMember(){ return this.boats; }", "Collection<T> get(final ExternalIdBundle bundle) {\n _readLock.lock();\n try {\n // TODO: semantics are wrong\n final Collection<T> results = new HashSet<>();\n for (final ExternalId identifier : bundle) {\n if (_toMap.containsKey(identifier)) {\n results.addAll(_toMap.get(identifier));\n }\n }\n return results;\n } finally {\n _readLock.unlock();\n }\n }", "Set<Person> getContacts();", "Collection<? extends WrappedIndividual> getIsPartOf();", "@Override\n public Set<T> getItems() {\n return items;\n }", "public ArrayList<ItemModel> getAllCheckedProduct() {\n ArrayList<ItemModel> allProducts;\n ArrayList<ItemModel> checkedProducts = new ArrayList<ItemModel>();\n allProducts = getAllProducts();\n Log.d(DatabaseHelper.class.getName(), \"getAllCheckedProducts:\");\n for (ItemModel item : allProducts) {\n if (item.isAcquired()) {\n Log.d(DatabaseHelper.class.getName(), \"\\tgetAllCheckedProducts:\" + item.toString());\n\n checkedProducts.add(item);\n }\n }\n\n return checkedProducts;\n }", "public Set<Cheque> getCheque() {\r\n\t\tSession session = getSessionFactory().openSession();\r\n\t\tQuery query\t=session.createQuery(\"FROM Cheque\");\r\n\t\tList myList = query.list();\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tSet<Cheque> cheque = new HashSet<Cheque>(myList);\r\n\t\tsession.close();\r\n\t\tSystem.out.println(\"Found \" + cheque.size() + \" cheque\");\r\n\t\treturn cheque;\r\n\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@PersistenceContext\n\tpublic static List<KoeficientObject> getInListAllValueKoeficientObject() {\n\t\tEntityManagerFactory emfactory = GlobalVariableForSQL_DBase.getDBase();\n\t\tEntityManager entitymanager = GlobalVariableForSQL_DBase.getEntityManagerDBase(emfactory);\n\t\tentitymanager.getTransaction().begin();\n\t\tQuery query = entitymanager.createNamedQuery(\"getListAllKoeficientObject\");\n\t\tList<KoeficientObject> list = query.getResultList();\n\t\tentitymanager.close();\n\t\temfactory.close();\n\t\treturn list;\n\t}", "public RdfPredicateObjectListCollection andHas(RdfPredicate predicate, RdfObject... objects) {\n\t\treturn andHas(Rdf.predicateObjectList(predicate, objects));\n\t}", "public Collection findAll() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Iterable<Oglas> findAll() {\n\t\treturn repository.findAll();\n\t}", "@Override\n\tpublic List<T> getAllEntry() {\n\t\treturn this.hibernateTemplate.find(\"from \"+this.classt.getName());\n\t}", "@Override\n public Set<ModuleReference> findAll() {\n while (hasNextEntry()) {\n scanNextEntry();\n }\n return cachedModules.values().stream().collect(Collectors.toSet());\n }", "@Override\r\n public List<Object> getMatchedResources() {\n return null;\r\n }", "@Override\n\tpublic List<EvaluateCustom> getObjectsAll(QueryVo<EvaluateCustom> vo) {\n\t\treturn evaluateMapper.getObjectsAll(vo);\n\t}", "ArrayList<RecipeObject> getRecipes();", "public int getCount(){\n\t\treturn mDataObjects.size();\n\t}", "@Override\n\tpublic Map<String, Object> readAllHitos() {\n\t\treturn hitosDao.readAllHitos();\n\t}", "public Set<MindObject> getDirectSubComponents(){\n return new HashSet<>();\n }", "public List<Item> getAllItemsAvailable();", "@Override\r\n\tpublic List<Object> findAll() {\n\t\treturn null;\r\n\t}", "public List<Objetivo> getObjetivosAssociados() {\n return associacao.getObjetivosAssociados();\n }", "private boolean[] getCheckBoxes() {\n\t\tHBox n4 = (HBox) uicontrols.getChildren().get(4);\n\t\tCheckBox b1 = (CheckBox) n4.getChildren().get(0);\n\t\tCheckBox b2 = (CheckBox) n4.getChildren().get(1);\n\t\tCheckBox b3 = (CheckBox) n4.getChildren().get(2);\n\t\tCheckBox b4 = (CheckBox) n4.getChildren().get(3);\n\t\tboolean[] boxes = { b1.isSelected(),b2.isSelected(),b3.isSelected(),b4.isSelected()};\n\t\treturn boxes;\n\t}", "public List<o> selectAll();", "ArrayList<Habit> getHabits();", "public abstract Set<Genome> getAvailableGenomes();", "ArrayList<E> getAll();", "@Override\r\n\tpublic List<Ngo> getAll() {\n\t\treturn null;\r\n\t}", "public List<Product> findHot() {\n\t\t\treturn productDao.findHot();\n\t\t}", "public void _getProperties() {\n Property[] properties = oObj.getProperties();\n IsThere = properties[0];\n tRes.tested(\"getProperties()\", ( properties != null ));\n return;\n }", "public ArrayList<String> getObjects(){\n ArrayList<String> objs = new ArrayList<>();\n for (int i = 0; i < field.length; i++){\n objs.add(\"Asteroid\");\n }\n return objs;\n }", "public Map<Coord, Element> getContains() {\n\t\treturn mapContains;\n\t}", "public Vector getResultObjects() {\n\treturn _vcResults;\n }", "public Set<Colour> getWinningPlayers();", "@Override\n\tpublic Collection<T> getAll(CommandSender sender)\n\t{\n\t\t// No Can See Override?\n\t\tif ( ! this.isCanSeeOverridden()) return this.getAll();\n\t\t\n\t\t// Create\n\t\tSet<T> ret = new MassiveSet<>();\n\t\t\n\t\t// Fill\n\t\tfor (T value : this.getAll())\n\t\t{\n\t\t\tif ( ! this.canSee(value, sender)) continue;\n\t\t\tret.add(value);\n\t\t}\n\t\t\n\t\t// Return\n\t\treturn ret;\n\t}" ]
[ "0.6493467", "0.63706535", "0.6158736", "0.6155863", "0.601206", "0.59970564", "0.5992091", "0.59904045", "0.59281045", "0.59281045", "0.59021914", "0.58852446", "0.5863494", "0.58201206", "0.5806768", "0.5800709", "0.5729579", "0.57286054", "0.5721715", "0.56718814", "0.56710565", "0.5639742", "0.5619602", "0.56141216", "0.5608555", "0.55690247", "0.55671746", "0.5558697", "0.5558697", "0.5558697", "0.5558697", "0.5558697", "0.5558697", "0.5558697", "0.55583555", "0.555062", "0.5513429", "0.55102074", "0.5506114", "0.55031496", "0.54693407", "0.5445328", "0.5428116", "0.5415443", "0.54143983", "0.54140097", "0.5401985", "0.537818", "0.5364033", "0.5357", "0.53506696", "0.5336699", "0.5320528", "0.5318667", "0.5312757", "0.5308581", "0.5306524", "0.52994066", "0.5284919", "0.5284919", "0.5283049", "0.5283049", "0.52710974", "0.52686226", "0.525504", "0.5253239", "0.5247119", "0.5245245", "0.5243159", "0.52359766", "0.5233543", "0.52330154", "0.523061", "0.5230145", "0.5224683", "0.52231944", "0.5219574", "0.5219026", "0.5216992", "0.52117234", "0.5210713", "0.52092004", "0.5205902", "0.52040714", "0.52016723", "0.52014124", "0.5200977", "0.51997745", "0.5196693", "0.5195336", "0.5189821", "0.5186263", "0.5182586", "0.5181023", "0.51788414", "0.51750547", "0.5174825", "0.51631886", "0.5161008", "0.51607776", "0.51607305" ]
0.0
-1
Set the name of the photo, constructs the name from the tags within the instance
private void setName(){ String tagString = new String(); for (String k : tags.keySet()){ tagString += "@" + k; } String newName = originalName + tagString +"."+ extension; if (!newName.equals(name)){ removePrevNames(newName); //if the new name is a previous name addPrevNames(name); updateLog(newName); name = newName; //notify the tag observer setChanged(); notifyObservers(); clearChanged(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setImageName(String name) {\n imageToInsert = name;\n}", "public String rename() throws IOException {\n StringBuilder newName = new StringBuilder();\n for (String tag : photo.getTags().getCurrentTags()) {\n newName.append(\"@\").append(tag).append(\" \");\n }\n String oldName = photo.getTagName();\n\n if (photo.getTags().getCurrentTags().size() != 0) {\n photo.setTagName(photo.getName() + \" \" + newName.toString().trim());\n } else {\n photo.setTagName(photo.getName());\n }\n Path old = Paths.get(photo.getUrl());\n Files.move(old, old.resolveSibling(photo.getTagName() + photo.getExtension()));\n photo.setUrl(old.resolveSibling(photo.getTagName() + photo.getExtension()).toString());\n return oldName;\n }", "private void setName(String imageUrl, String imageName, String roleName){\r\n Log.d(TAG, \"setName: setting name to widgets.\");\r\n TextView n = findViewById(R.id.textView);\r\n n.setText(imageName);\r\n TextView r = findViewById(R.id.textView1);\r\n r.setText(roleName);\r\n\r\n ImageView imageView = findViewById(R.id.profile_image);\r\n Glide.with(this)\r\n .asBitmap()\r\n .load(imageUrl)\r\n .into(imageView);\r\n }", "@Override\r\n public String getInfo() {\r\n return \"Photo name: \"+this.info;\r\n }", "public void setName(String name) {\n mBundle.putString(KEY_NAME, name);\n }", "public void setStandNAME(ItemStack stack, String name) {\n/* 314 */ NBTTagCompound nbttagcompound = stack.getTagCompound();\n/* */ \n/* 316 */ if (nbttagcompound == null) {\n/* */ \n/* 318 */ nbttagcompound = new NBTTagCompound();\n/* 319 */ stack.setTagCompound(nbttagcompound);\n/* */ } \n/* */ \n/* 322 */ NBTTagCompound nbttagcompound1 = nbttagcompound.getCompoundTag(this.standInfo);\n/* */ \n/* 324 */ if (!nbttagcompound.hasKey(this.standInfo))\n/* */ {\n/* 326 */ nbttagcompound.setTag(this.standInfo, nbttagcompound1);\n/* */ }\n/* */ \n/* 329 */ nbttagcompound1.setString(this.standName, name);\n/* */ }", "@Override\r\n public void DisplayAlbumName(String name) {\r\n this.setTitle(name + \" - Photo Viewer\");\r\n }", "public void setPhoto(String aPhoto) {\n photo = aPhoto;\n }", "public String getPhotoFileName() {\n return \"IMG_\" + getId().toString() + \".jpg\";\n }", "void setName(String name_);", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setPhoto(String photo) {\r\n this.photo = photo;\r\n }", "public void setPhoto(String photo) {\r\n this.photo = photo;\r\n }", "public String getImgName() {\n return imgName;\n }", "@Override\n public void setName(String name) {\n \n }", "public final void setName(String name) {_name = name;}", "public void setName(String name)\n {\n this.name = name;\n modifiedMetadata = true;\n addDetails(\"name\");\n }", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String n){ name=n; }", "public void setName(final String name);", "public void toNBT(NBTTagCompound tag)\n {\n tag.setString(\"Name\", this.name);\n }", "void setImage(String image);", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String inName)\n {\n name = inName;\n }", "public void setName(String name) \n {\n this.name = name;\n }", "public void setName(String name){this.name = name;}", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name)\n {\n _name = name;\n }", "public void setName(String newname){\n name = newname; \n }", "public void setName(String name) {\n this.name = name;\n this.box.getElement().setAttribute(\"name\", name);\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "private void setName() {\n\t\t//MAKE SURE NOT TO GET ACCIDENTAL RECURSION HERE\n\t\t//DO NOT JUST MAKE A NEW TRIAD AND COMPARE TO CURRENT TRIAD\n\t\t//UNLESS ??? MAYBEDON\"T PUT SET NAME IN THE CONSTRUCTOR?\n\t\t//SIMILAR PROBLEM TO SETINVERSION\n\t\t\n\t\t//major, minor, diminished, augmented\n\t\t//this.name = name;\n\t}", "public void setName (String name){\n \n boyName = name;\n }", "public void setName (String Name);", "public void setName (String Name);", "public void setName (String Name);", "@Override\n\tpublic void setName(String name) {\n\t\t\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){this.name=name;}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String name){\n \t\tthis.name = name;\n \t}", "@Override\n\tpublic void setName(String name) {\n\t\theldObj.setName(name);\n\t}", "public Photo(Photo photo){\n tags = new ArrayList<>();\n for(Tag tag : photo.getTags()){\n Tag t = new Tag(tag.getName(), tag.getValue());\n tags.add(t);\n }\n caption = photo.getCaption();\n //url = photo.getUrl();\n }", "void setName(String name);", "void setName(String name);", "void setName(String name);", "void setName(String name);", "void setName(String name);", "void setName(String name);", "@Override\r\n public void setName(String name) {\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setPetName(java.lang.String param) {\n localPetNameTracker = true;\n\n this.localPetName = param;\n }", "private void setCustomName(String name) {\n this.name = ChatColorConverter.convert(name);\n this.getLivingEntity().setCustomName(this.name);\n this.hasCustomName = true;\n if (ConfigValues.defaultConfig.getBoolean(DefaultConfig.ALWAYS_SHOW_NAMETAGS))\n eliteMob.setCustomNameVisible(true);\n }", "@Override\n public void setName(String name) {\n\n }", "public void setName(String newname)\n {\n name = newname;\n \n }", "public void setName(String nameIn) {\n name = nameIn;\n }", "public void setName(String value) {\n this.name = value;\n }", "public void setName( String name ) {\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"name\", name ) );\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String inName)\n {\n\tname = inName;\n }", "public void fromNBT(NBTTagCompound tag)\n {\n this.name = tag.getString(\"Name\");\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }" ]
[ "0.6750816", "0.63798326", "0.62069684", "0.60396177", "0.58786315", "0.58359295", "0.57820827", "0.5761748", "0.5759496", "0.57490915", "0.57262784", "0.57262784", "0.57262784", "0.57262784", "0.5704844", "0.5704844", "0.5692026", "0.56663626", "0.56581163", "0.565517", "0.56416714", "0.56416714", "0.56416714", "0.56416714", "0.56416714", "0.56416714", "0.56416714", "0.56416714", "0.56416714", "0.56416714", "0.56416714", "0.5639404", "0.5636565", "0.5636408", "0.5635715", "0.5633706", "0.5633706", "0.5633706", "0.562745", "0.56203985", "0.5617133", "0.561214", "0.5602937", "0.56012076", "0.5584474", "0.5579666", "0.5579666", "0.5579666", "0.5579666", "0.5579666", "0.5579666", "0.5579666", "0.5576153", "0.5569939", "0.5564142", "0.5564142", "0.5564142", "0.55580586", "0.5556085", "0.5556085", "0.5556085", "0.55497575", "0.55424255", "0.55424255", "0.55424255", "0.5540662", "0.5539281", "0.5536129", "0.5532389", "0.5532389", "0.5532389", "0.5532389", "0.5532389", "0.5532389", "0.5528075", "0.55269694", "0.55269694", "0.55269694", "0.55269694", "0.5526778", "0.5526778", "0.55265856", "0.5522169", "0.5520698", "0.55203694", "0.55200356", "0.55197614", "0.55166286", "0.55157703", "0.5513837", "0.5512024", "0.55069304", "0.55069304", "0.55069304", "0.55069304", "0.55069304", "0.55069304", "0.55069304", "0.55069304", "0.55069304" ]
0.67845947
0
Add a to the photo
public void addTags(Tag[] newTags){ String tagName; for (int i = 0; i < newTags.length; i++){ tagName = newTags[i].getName(); if (!tags.containsKey(tagName)){ //checks if photo is already tagged with the tag tags.put(tagName, newTags[i]); addObserver(newTags[i]); } } setName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addPhoto(User user, Photo photo);", "@Override\r\n\tpublic void addPhoto(String albumId, String photoFileName,\r\n\t\t\tString photoCaption) {\r\n\t\r\n\t}", "public void addPicture() {\n FileChooser chooser = new FileChooser();\n chooser.setTitle(\"Upload your pic for this post\");\n file = chooser.showOpenDialog(null);\n if (file != null) {\n\n Image profilePicImage = new Image(file.toURI().toString());\n try {\n this.postPic = new FileInputStream(file).readAllBytes();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n postImage.setImage(profilePicImage);\n }\n }", "@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tNoteEditView.this.addPicture();\n \t\t\t}", "private void addEventPhoto(EventPhoto photo) {\r\n LinearLayout layoutPhotos = findViewById(R.id.layoutPhotos);\r\n\r\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\r\n LinearLayout.LayoutParams.WRAP_CONTENT,\r\n LinearLayout.LayoutParams.MATCH_PARENT\r\n );\r\n params.setMargins(0, 0, 15, 0);\r\n\r\n Bitmap thumbnailPhoto = ThumbnailGenerator.generate(this, photo.uri, thumbnailSize, thumbnailSize);\r\n\r\n ImageView image = new ImageView(this);\r\n image.setImageBitmap(thumbnailPhoto);\r\n image.setLayoutParams(params);\r\n image.setTag(R.integer.tag_event_photo, photo.uid);\r\n image.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n onClickPhotoThumbnail(view);\r\n }\r\n });\r\n\r\n layoutPhotos.addView(image);\r\n }", "Builder addImage(ImageObject value);", "@OnClick(R.id.add_photo_layout)\n public void onClickAddPhoto() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n startActivityForResult(Intent.createChooser(intent, getString(R.string.choose_image_from)), 8);\n }", "public void onPressAddPhoto(View view) {\r\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\r\n if (takePictureIntent.resolveActivity(getPackageManager()) != null) {\r\n File imageFile = FileUtil.createUniqueJPGFile(this);\r\n\r\n lastPhotoUri = FileProvider.getUriForFile(\r\n this,\r\n \"com.example.a31taochvisakort.fileprovider\",\r\n imageFile\r\n );\r\n\r\n takePictureIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\r\n takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, lastPhotoUri);\r\n startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);\r\n }\r\n }", "Person addImage(String name, String imagePath);", "public void addImage(Image img, int x, int y) {\n\n\t}", "@Override\n public void onClick(View view) {\n\n photoStorage.addImage(currentLabel, currentVisibleImagePath);\n addImage.setEnabled(false);\n }", "public void addPhoto(ActionEvent event) throws IOException {\n\t\t//System.out.println(\"ITEM ADDED______________________________________________\");\n\t\tFileChooser fileChooser = new FileChooser();\n\t\tfileChooser.setTitle(\"Open Photo\"); \n\t\tAccessibleUsersList.masterUserList.userLoggedIn.fileList = fileChooser.showOpenMultipleDialog(this.myNewStage);\n\t\t\n\t\tboolean checkIfImages = true;\n\t\t\n\t\tif(AccessibleUsersList.masterUserList.userLoggedIn.fileList != null){\n\t\t\t\n\t\t\tfor(File file : AccessibleUsersList.masterUserList.userLoggedIn.fileList){\n\t\t\t\t\n\t\t\t\tMimetypesFileTypeMap mimetype= new MimetypesFileTypeMap();\n\t\t\t\tmimetype.addMimeTypes(\"image png jpg jpeg JPG PNG\");\t\n\t\t\t\t\n\t\t\t\tString mimetype1 = mimetype.getContentType(file);\n\t\t\t\tString type = mimetype1.split(\"/\")[0];\n\t\t\t\t\n\t\t\t\tif(type.contains(\"image\")){\n\t\t\t //System.out.println(\"It's an image\");\n\t\t\t\t} else { \n\t\t\t \t //System.out.println(\"It's NOT an image\");\n\t\t\t \t Alert majorBagAlert = new Alert(AlertType.ERROR);\n\t\t\t\t majorBagAlert.setTitle(\"Error\");\n\t\t\t\t majorBagAlert.setHeaderText(\"One or more images is not an image file type.\");\n\t\t\t\t majorBagAlert.setContentText(\"Please enter photo(s) again\");\n\t\t\t\t majorBagAlert.showAndWait();\n\t\t\t \t \n\t\t\t\t //adding comment\n\t\t\t checkIfImages = false; \n\t\t\t }\n\t\t\t}\n }\n\t\t\n\n\t\t//iterate through the logged in user's albums \n\t\t//this is the album we have to add our photos to \n\t\tthis.selectedAlbum = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getName(); \n\t\tAlbum foundAlbum = null; \n\t\tlong lastModifiedDate = 0; \n\t\tString path; \n\t\t\n\t\t//if we are certain we only collected files of type jpg, png or jpeg \n\t\tif(checkIfImages){\n\t\t\t\n\t\t\tif(AccessibleUsersList.masterUserList.userLoggedIn.fileList != null) {\n\t\t\t\t\n\t\t\t\tfor(File file : AccessibleUsersList.masterUserList.userLoggedIn.fileList){\n\t\t\t\t\t\n\t\t\t\t\tpath = file.getAbsolutePath();\n\t\t\t\t\tFileInputStream inputstream = new FileInputStream(path); \n\t\t\t\t\tImage image1 = new Image(inputstream); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//iterate through the logged in user's albums \n\t\t\t\t\tint x=0; \n\t\t\t\t\tfor(Album album: AccessibleUsersList.masterUserList.userLoggedIn.albums_list){\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//looking for the current album to add our photos into \n\t\t\t\t\t\tif(album.getName().equals(this.selectedAlbum)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfoundAlbum = AccessibleUsersList.masterUserList.userLoggedIn.albums_list.get(x);\n\t\t\t\t\t\t\tlastModifiedDate = file.lastModified();\n\t\t\t\n\t\t\t\t\t\t\tPhoto albumPhoto = new Photo(path, lastModifiedDate); \n\t\t\t\t\t\t\tfoundAlbum.getAlbum().add(albumPhoto);\t \n\t\t\t\t\t\t\t//System.out.println(foundAlbum.getAlbum());\n\t\t\t\t\t\t\t//foundAlbum.photos.add(new model.Photo(image1, lastModifiedDate));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tImageView pic = new ImageView();\n\t\t\t\t\t\t\tpic.setFitWidth(340);\n\t\t\t\t\t\t\tpic.setFitHeight(180);\n\t\t\t\t\t\t\tpic.setImage(image1);\n\t\t\t\t\t\t\tlistOfPhotos.add(pic);\n\t\t\t\t\t\t\talbumPhoto.setImage(pic);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"photo added\");\n\t\t\t\t\t\t\t//System.out.println(albumPhoto.getPathToPhoto());\n\t\t\t\t\t\t\t//System.out.println(AccessibleUsersList.masterUserList.userLoggedIn);\n\t\t\t\t\t\t\t//System.out.println(AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.addPhoto(albumPhoto); <-----cause of bug, added photo TWICE, X\n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t} \n\t\t\t\t\t\tx++; \n\t\t\t\t\t}\n \t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\t\n\t}", "@Override\n public void addLovePhoto(User user, Image image) {\n user.addLoveImage(image);\n }", "private void galleryAddPic() {\n\t}", "Builder addImage(URL value);", "public void addNewPicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(this.type == \"generic\") {\n //add the new pciture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"picture\") {\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }\n }", "public int addPicture(byte[] arg0, int arg1) {\n\t\treturn 0;\n\t}", "private void addImageToProfile(Profile profileToAdd, String filename, String contentType)\n throws IOException {\n Photo photoToAdd = new Photo();\n photoToAdd.setMainFilename(getPhotoFilePath(false) + \"/\" + filename);\n photoToAdd.setThumbnailFilename(getPhotoFilePath(true) + \"/\" + filename);\n photoToAdd.setContentType(contentType);\n photoToAdd.setUploadDate(LocalDate.now());\n photoToAdd.setUploadProfile(profileToAdd);\n\n PersonalPhoto personalPhoto = new PersonalPhoto();\n personalPhoto.setPhoto(photoToAdd);\n personalPhoto.setPublic(false);\n personalPhoto.setProfile(profileToAdd);\n\n personalPhotoRepository.save(personalPhoto);\n }", "public void btnImgAddClick(View view) {\n\t\tIntent photoPickerIntent = new Intent(Intent.ACTION_GET_CONTENT);\n\t\tphotoPickerIntent.setType(\"image/*\");\n\t\tstartActivityForResult(photoPickerIntent, 1);\n\t}", "public void addImage(View view) {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(intent, RESULT_LOAD_IMAGE);\n }", "public void addTag(Tag tag) {\n fullPhoto.addTag(tag);\n }", "Builder addImage(ImageObject.Builder value);", "public void addRpiPhoto(String rpiId, String time, String name, byte[] photo) throws SQLException, IOException;", "public void addAttachedPicture(DataObject value) {\r\n\t\tBase.add(this.model, this.getResource(), ATTACHEDPICTURE, value);\r\n\t}", "public void pushPhoto(int ownerId, String photoId);", "public void addPhotoUgi(String sha1, String[] tags, String story) throws IOException {\n\t\tPreconditions.checkArgument(!StringUtils.isBlank(sha1));\n\t\tif (tags == null) {\n\t\t\ttags = new String[] {};\n\t\t}\n\t\tif (story == null) {\n\t\t\tstory = \"\";\n\t\t}\n\t\tLOGGER.info(\"add ugi for a photo: {}, {}, {}\", sha1, tags, story);\n\n\t\tUpdateRequest request = new UpdateRequest(\"files\", \"photo\", sha1);\n\t\tMap<String, Object> parameters = new HashMap<>();\n\t\tparameters.put(\"tags\", tags);\n\t\tparameters.put(\"story\", story);\n\t\tScript inline = new Script(ScriptType.INLINE, \"painless\",\n\t\t\t\t\"ctx._source.tags=params.tags; ctx._source.story=params.story;\", parameters);\n\t\trequest.script(inline);\n\t\tUpdateResponse updateResponse = client.update(request);\n\t\tLOGGER.info(\"photo updated: \" + updateResponse.toString());\n\t}", "public void addPicture(String picture)\r\n {\r\n pictures.add(picture);\r\n }", "public void add(Picture picture){\n if(picture != null) {\n mPictures.add(0, picture);\n this.notifyItemInserted(0);\n }\n }", "@Override\n public Media addPhoto(Media media) {\n try {\n return mediaDao.addPhoto(media);\n } catch (FailedOperationException e) {\n LOG.error(e.getMessage(), e);\n throw new RuntimeException(e.getMessage());\n }\n }", "Builder addImage(String value);", "private void addButtonActionPerformed() {//GEN-FIRST:event_addButtonActionPerformed\r\n this.controller.OnAddPhoto();\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(\n\t\t\t\t\t\tIntent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n\t\t\t\tif(isAdded())\n\t\t\t\t\tstartActivityForResult(i, RESULT_LOAD_POST_IMAGE);\n\t\t\t\telse{\n\t\t\t\t\tstatusAlert.dismiss();\n\t\t\t\t\tToast.makeText(getActivity(), \"Something went wrong.Try sharing your updates again.\", 1000).show();\n\t\t\t\t}\n\t\t\t}", "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 }", "private void galleryAddPic() {\n Intent mediaScanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);\n mediaScanIntent.setData(currentImageUri);\n this.sendBroadcast(mediaScanIntent);\n }", "public void onClickAddFoto(View view){\n\n PackageManager pm = this.getPackageManager();\n\n // PRECISAMOS VERIFICAR SE TEMOS ACESSO A CAMERA OU NÃO\n if(pm.hasSystemFeature(PackageManager.FEATURE_CAMERA)){\n\n // APÓS ACESSAR A CAMÊRA DEVEMOS VALIDAR SE O USUÁRIO INFORMOU AS PERMISSÕES\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED){\n imgFoto.setEnabled(false);\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.CAMERA },0\n );\n }\n\n // REALIZA A ABERTURA DA CAMERA E CAPTURA A FOTO\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if(intent.resolveActivity(getPackageManager())!=null){\n startActivityForResult(intent, REQUEST_IMAGE_CAPTURE);\n }\n\n }else{\n Toast.makeText(this, \"Não é possível usar a camêra!\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n\tpublic void add(UserModel um, File photo, String filename, String contentType) throws Exception {\n\t\tum.setPhname(filename);\n\t\tum.setPhtype(contentType);\n\t\tInputStream fin=new FileInputStream(photo);\n\t\tBlob blobphoto=sf.getCurrentSession().getLobHelper().createBlob(fin, fin.available());\n\t\tum.setPhoto( blobphoto);\n\t\tsf.getCurrentSession().save(um);\n\t}", "public void add(Image img, Point higher, Point lower, int size) {\n int column = jumpCursor();\n set(img, cl, column, higher, lower, size);\n }", "private void setPhotoAttcher() {\n\n }", "@Override\n\tpublic void addProduitWithImage(Furniture p, UploadedFiles files) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (mProImage != null) {\n\t\t\t\t\tMediaStore.Images.Media.insertImage(getContentResolver(),\n\t\t\t\t\t\t\tmProImage, \"QRImage\", \"QRImage\");\n\t\t\t\t\tToast.makeText(ImageShareActivity.this, \"生成成功,请到相册查看\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\t\t\t\t\tToast.makeText(ImageShareActivity.this, \"图片生成错误,请返回重试\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}", "public javax.activation.DataHandler addPhoto(java.awt.Image photo) throws\n java.rmi.RemoteException{\n DataHandler dh = new DataHandler(getStatusInXml(), \"application/fastinfoset\");\n return dh;\n }", "public boolean addPhoto(String username, File image) {\n try{\n String extension = FilenameUtils.getExtension(image.getName());\n //check if not an image\n if(!\n (extension.toUpperCase().equals(\"PNG\") ||\n extension.toUpperCase().equals(\"JPEG\") ||\n extension.toUpperCase().equals(\"JPG\"))\n ) return false;\n //add file\n s3Client.putObject(BUCKET_NAME,\n \"users/\" + username + \"/\" + image.getName() ,\n image);\n\n return true;\n\n }catch (Exception e){\n e.printStackTrace();\n }\n\n return false;\n }", "public void addPic(PictureStatus pictures) {\n \t\t\t\tpictureRepo.save(pictures);\r\n \t\t\t}", "@Override\r\n\tpublic void addTag(String photoId, String tagType, String tagValue) {\r\n\t\tList<IAlbum> albums=model.getUser(userId).getAlbums();\r\n\t\tIPhoto getMe=null;\r\n\t\tboolean working=false;\r\n\t\t/*for only the current photo*/\r\n\t/*\tIAlbum temp= photoListGui.getCurrentAlbum();\r\n\t\tList<IPhoto> photoList=temp.getPhotoList();\r\n\t\tInteractiveControl.PhotoCompareForNames comparePower2=new InteractiveControl.PhotoCompareForNames();\r\n\t\tCollections.sort(photoList, comparePower2);\r\n\t\t\t\tint index=Collections.binarySearch(photoList, photoId);\r\n\t\t\tif(index>=0){\r\n\t\t\t\tgetMe=photoList.get(index);\r\n\t\t\t\tswitch(tagType.toLowerCase()){\r\n\t\t\t\tcase \"location\": \r\n\t\t\t\t\tString check=getMe.getLocationTag();\r\n\t\t\t\t\tif((check==null|| check.isEmpty())){\r\n\t\t\t\t\t\tgetMe.setLocationTag(tagValue);\r\n\t\t\t\t\t\tString success=\"Added tag:\\n\"+photoId+\"\\n\"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(success);\t\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\tphotoListGui.setLocationTagLabel(tagValue);\r\n\t\t\t\t\t\tworking=true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(!check.isEmpty()){\r\n\t\t\t\t\t\tJButton showTextButton=new JButton();\r\n\t\t\t\t\t\tString error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(showTextButton,error);\r\n\t\t\t\t\t\tcallTagGui((Photo)getMe);\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(!(check.equals(tagValue))){\r\n\t\t\t\t\t\tgetMe.setLocationTag(tagValue);\r\n\t\t\t\t\t\tString success=\"Added tag:\\n\"+photoId+\"\\n\"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(success);\r\n\t\t\t\t\t\tJButton showTextButton=new JButton();\r\n\t\t\t\t\t\tshowError();String error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(showTextButton,error);\r\n\t\t\t\t\t\tcallTagGui((Photo)getMe);\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tString error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\tcase \"person\":\r\n\t\t\t\t\tif(getMe.getPeopleTags().contains(tagValue)){\r\n\t\t\t\t\t\tString error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tJButton showTextButton=new JButton();\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(showTextButton,error);\r\n\t\t\t\t\t\tcallTagGui((Photo)getMe);\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\t\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tgetMe.personTag(tagValue);\r\n\t\t\t\t\tString success2=\"Added tag:\\n\"+photoId+\"\\n\"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\tsetErrorMessage(success2);\r\n\t\t\t\t\tshowError();\r\n\t\t\t\t\tphotoListGui.updateTagList();\r\n\t\t\t\t\tbreak; \r\n\t\t\t\tdefault:\r\n\t\t\t\t\tString error=\"Error: Not a real tag\";\r\n\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\tshowError();\t\r\n\t\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\t}*/\r\n\t\t/*below if for all the photos*/\r\n\t\touterLoop:\r\n\t\tfor (int i=0; i<model.getUser(userId).getAlbums().size(); i++){\r\n\t\t\tIAlbum temp= albums.get(i);\r\n\t\t\tList<IPhoto> photoList=temp.getPhotoList();\r\n\t\t\tInteractiveControl.PhotoCompareForNames comparePower2=new InteractiveControl.PhotoCompareForNames();\r\n\t\t\tCollections.sort(photoList, comparePower2);\r\n\t\t\t\t\tint index=Collections.binarySearch(photoList, photoId);\r\n\t\t\t\tif(index>=0){\r\n\t\t\t\t\tgetMe=photoList.get(index);\r\n\t\t\t\t\tswitch(tagType.toLowerCase()){\r\n\t\t\t\t\tcase \"location\": \r\n\t\t\t\t\t\tString check=getMe.getLocationTag();\r\n\t\t\t\t\t\tif((check==null|| check.isEmpty())){\r\n\t\t\t\t\t\t\tgetMe.setLocationTag(tagValue);\r\n\t\t\t\t\t\t\tString success=\"Added tag:\\n\"+photoId+\"\\n\"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tsetErrorMessage(success);\t\r\n\t\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\t\tphotoListGui.setLocationTagLabel(tagValue);\r\n\t\t\t\t\t\t\tworking=true;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(!check.isEmpty()){\r\n\t\t\t\t\t\t\tJButton showTextButton=new JButton();\r\n\t\t\t\t\t\t\tString error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(showTextButton,error);\r\n\t\t\t\t\t\t\tcallTagGui((Photo)getMe);\r\n\t\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(!(check.equals(tagValue))){\r\n\t\t\t\t\t\t\tgetMe.setLocationTag(tagValue);\r\n\t\t\t\t\t\t\tString success=\"Added tag:\\n\"+photoId+\"\\n\"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tsetErrorMessage(success);\r\n\t\t\t\t\t\t\tJButton showTextButton=new JButton();\r\n\t\t\t\t\t\t\tshowError();String error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(showTextButton,error);\r\n\t\t\t\t\t\t\tcallTagGui((Photo)getMe);\r\n\t\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tString error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tcase \"person\":\r\n\t\t\t\t\t\tif(getMe.getPeopleTags().contains(tagValue)){\r\n\t\t\t\t\t\t\tString error=\"Tag already exists for \"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tJButton showTextButton=new JButton();\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(showTextButton,error);\r\n\t\t\t\t\t\t\tcallTagGui((Photo)getMe);\r\n\t\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\t\tshowError();\t\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tgetMe.personTag(tagValue);\r\n\t\t\t\t\t\tString success2=\"Added tag:\\n\"+photoId+\"\\n\"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(success2);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\tphotoListGui.updateTagList();\r\n\t\t\t\t\t\tbreak; \r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tString error=\"Error: Not a real tag\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\t\r\n\t\t\t\t\t\treturn ;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(getMe==null){\r\n\t\t\tString error=\"Photo \"+photoId+\" does not exist\";\r\n\t\t\tsetErrorMessage(error);\r\n\t\t\tshowError();\t\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t/*random guesses atm in how to access these data structures*/\r\n\t\t\r\n\t\t/*if(check.equals(tagType)){\r\n\t\t\tString error=\"Tag already exists for <\"+photoId+\"> <\"+tagType+\":<\"+tagValue+\">\";\r\n\t\t\tcmd.setErrorMessage(error);\r\n\t\t\tcmd.showError();\r\n\t\t}\r\n\t\tgetMe.setTagInjective(check);\r\n\t\tString success=\"Added tag:\\n<\"+photoId+\"> <\"+tagType+\">:<\"+tagValue+\">\";\r\n\t\tcmd.setErrorMessage(success);\r\n\t\tcmd.showError();*/\r\n\t}", "public void savePhoto(MyPhoto photo) {\n \t\tContentValues values = new ContentValues();\n \n \t\tUser user = photo.getUser();\n \n \t\tString userName = null;\n \n \t\tif (user != null) {\n \t\t\tuserName = user.getUserName();\n \t\t}\n \n \t\tvalues.put(SQLiteHelper.COLUMN_PARENT_ID, photo.getLocalParentId());\n \t\tvalues.put(SQLiteHelper.COLUMN_GLOBALID, photo.getId());\n \t\tvalues.put(SQLiteHelper.COLUMN_PARENT_GLOBALID, photo.getParentId());\n \t\tvalues.put(SQLiteHelper.COLUMN_PHOTO, photo.getImageAsString());\n \t\tvalues.put(SQLiteHelper.COLUMN_USER, userName);\n \n \t\tLog.v(TAG, \"Saving photo: \" + photo.getImageAsString());\n \n \t\tif (photo.getLocalId() == 0) {\n \t\t\t// Insert\n \t\t\tlong insertId = database.insert(SQLiteHelper.TABLE_PHOTOS, null,\n \t\t\t\t\tvalues);\n \t\t\t// Set local id\n \t\t\tphoto.setLocalId(insertId);\n \n\t\t\tLog.v(TAG, \"Insert: \" + photo.getLocalId());\n \t\t} else {\n \t\t\tString strFilter = SQLiteHelper.COLUMN_ID + \"=\"\n \t\t\t\t\t+ photo.getLocalId();\n \t\t\tdatabase.update(SQLiteHelper.TABLE_PHOTOS, values, strFilter, null);\n \n \t\t\tLog.v(TAG, \"Update\");\n \t\t}\n \n \t}", "@Override\n\tpublic void addPhotos(Iterable<Photo> photos) {\n\t\t\n\t}", "private void addImg(File url) {\n if (url != null) {\n //On charge l'image en memoire dans la variable img\n panImg.chargerIMG(url);\n lstImg.addImg(panImg.getImg(), url);\n }\n }", "@Override\n\tpublic void save(Photo photo) {\n\t\t\n\t}", "public synchronized void addNewImage(BufferedImage img, File file) {\r\n\t\tint image_pk = db.insertImage(file.getName(), file.getAbsolutePath(), DEFAULT_TAG_PK);\r\n\t\tSaveImageOnDisk saveImage = new SaveImageOnDisk(img, file, db.getCacheName(image_pk)); \r\n\t\tsaveImage.start();\r\n\t}", "private void addAttachment() {\n Intent intentFromGallery = new Intent();\n if (Build.VERSION.SDK_INT < 19) {\n intentFromGallery = new Intent(Intent.ACTION_GET_CONTENT);\n intentFromGallery.setType(\"image/*\");\n } else {\n intentFromGallery = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n }\n\n try {\n startActivityForResult(Intent.createChooser(intentFromGallery, \"请选择要上传的图片\"), ADD_ATTACHMENT);\n// 这个是进行裁剪\n// startActivityForResult(intentFromGallery, IMAGE_REQUEST_CODE);\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(this, \"无法选择文件,请先安装文件管理器\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\tpublic void addActivity_photo(String periodId, String albumId,\n\t\t\tString fileImgName, String fileUrlImg, String typeImg,\n\t\t\tHttpServletRequest request, ModelMap map) {\n\t\tUsers user = (Users) request.getAttribute(Constants.USER_IN_REQUEST);\n\t\tString imgUrl[]=fileUrlImg.split(\",\");\n\t\tString imgName[]=fileImgName.split(\",\");\n\t\tString imgType[]=typeImg.split(\",\");\n\t\tString str_imgId=\"\";\n\t\tfor (int i = 0; i < imgUrl.length; i++) {\n\t\t\tFiles files=new Files();\n\t\t\tfiles.setBusinessType(\"activity\");\n\t\t\tfiles.setType(imgType[i]);\n\t\t\tfiles.setFileUrl(imgUrl[i]);\n\t\t\tfiles.setFileName(imgName[i]);\n\t\t\tfiles.setCreateDate(new Date());\n\t\t\tfiles.setCreateId(user.getUserName());\n\t\t\tfilesService.save(files);\n\t\t\tstr_imgId+=files.getFileId()+\",\";\n\t\t}\n\t\tActivitiesPeriod ap=new ActivitiesPeriod();\n\t\tap.setActivitiesPeriodId(Integer.parseInt(periodId));\n\t\tAlbum a=abService.findById(Integer.parseInt(albumId));\n\t\tif(a.getFileId()!=null)\n\t\t{\n\t\t\tstr_imgId+=a.getFileId();\n\t\t}\n\t\tabService.update(\"update Album set activitiesPeriod=?,fileId=? where albumId=?\", ap,str_imgId,Integer.parseInt(albumId));\n\t\t\n\t}", "public void addArtist(int id, String name, String image) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_ID, id);\n values.put(KEY_HOST, host);\n values.put(KEY_NAME, name);\n values.put(KEY_IMAGE, image);\n\n long insertedId = db.insert(TABLE_ARTIST, null, values);\n db.close(); // Closing database connection\n }", "public String addPhotoToFirebase() {\n\n if (selectedImage != null) {\n\n String path = \"img/rescues/\" + UUID.randomUUID().toString();\n StorageReference reference = MainActivity.storageReference.child(path);\n reference.putFile(selectedImage)\n .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n }\n });\n Log.d(\"test\", reference.toString());\n\n return path;\n }\n return null;\n\n\n }", "public void addAttachedPicture( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ATTACHEDPICTURE, value);\r\n\t}", "public void onClick(View v, Photo photo);", "public boolean addPhotoToAlbum(Photo p, String albumName) {\n boolean photoInAlbum = false;\n for (Photo a : this.photos) { // checking if the photo is inside the library\n if (a.equals(p)) {\n photoInAlbum = true;\n }\n }\n if (photoInAlbum) {\n for (Album a : this.albums) {\n if (a.getName().equals(albumName)) {\n for (Photo b : a.getPhotos()) {// checking if the photo is not already inside the album\n if (b.equals(p)) {\n return false;\n }\n\n }\n a.addPhoto(p); // add photo if not there\n return true;\n }\n }\n return false;\n }\n\n else {\n return false;\n }\n }", "public void addColor(PhotoColor color) {\n fullPhoto.addColor(color);\n }", "private void goToAddFishActivity(int requestCode, Uri uri, Bitmap photo, int aquariumId){\n Intent addFistIntent = new Intent(this, AddFishActivity.class);\n\n //check if from gallery | Camera\n if(requestCode==ActivityResultsCode.CAMERA_REQUEST){\n addFistIntent.putExtra(\"image\", photo);\n }else{\n addFistIntent.putExtra(\"imageUri\", uri.toString());\n }\n\n addFistIntent.putExtra(\"aquariumId\", aquariumModel.getId());\n startActivityForResult(addFistIntent, ActivityResultsCode.ADD_FISH);\n }", "@Override\n public void addUserImage(String userName, String path) {\n User user = getUserByName(userName);\n Image image = new Image();\n image.setImagePath(path);\n image.setOwner(user);\n image.setLikeNum(0);\n imageRepository.save(image);\n }", "fotos(){}", "@Override\n\tpublic Integer addModel(PhotoTag model) throws BaseException {\n\t\treturn this.insert(\"Mapper.PhotoTag.insert\", model);\n\t}", "@Override\n\tpublic void savePhoto(AtiPhoto atiPhoto) {\n\t\tatiPhotoDao.save(atiPhoto);\n\t}", "public ImageFile addImageFile(ImageFile f) {\n imageFiles.add(f);\n return f;\n }", "public void upload(FileUploadEvent event) {\r\n\t\tUploadedFile uploadFile = event.getFile();\r\n\t\t// Recuperer le contenu de l'image en byte array (pixels)\r\n\t\tbyte[] contents = uploadFile.getContents();\r\n\t\tSystem.out.println(\"---------------- \" + contents);\r\n\t\tproduit.setPhoto(contents);\r\n\t\t// Transforme byte array en string (format basé64)\r\n\t\timage = \"data:image/png;base64,\" + Base64.encodeBase64String(produit.getPhoto());\r\n\t\t\r\n\t}", "private void addVoteToGooglePlusAppActivity(User author, Photo photo,\n GoogleCredential credential) throws MomentWritingException {\n ItemScope target = new ItemScope().setUrl(photo.getPhotoContentUrl());\n ItemScope result = new ItemScope().setType(\"http://schema.org/Review\")\n .setName(\"A vote for a PhotoHunt photo\")\n .setUrl(photo.getPhotoContentUrl()).setText(\"Voted!\");\n Moment content = new Moment()\n .setType(\"http://schemas.google.com/ReviewActivity\").setTarget(target)\n .setResult(result);\n Plus plus = new Plus.Builder(TRANSPORT, JSON_FACTORY, credential).build();\n try {\n Insert request = plus.moments().insert(author.googleUserId, \"vault\",\n content);\n Moment moment = request.execute();\n } catch (IOException e) {\n throw new MomentWritingException(e.getMessage());\n }\n }", "@PutMapping(\"/photo/{id}\")\n\tpublic byte[] addPhoto ( @PathVariable Long id, \n\t\t\t\t\t\t\t @RequestParam(\"photo\") Part file ) {\n\t\t\n\t\tOptional<Contact> contact = repository.findById(id);\n\t\t\n\t\t//O \"contact.map\" irá mapiar o objeto \"c\" para um arry de bytes\n\t\treturn contact.map( c -> {\n\t\t\t\n\t\t\tbyte[] bytes = new byte[(int) file.getSize()];\n\n\t\t\ttry ( InputStream inputStream = file.getInputStream(); ) \n\t\t\t{\n\t\t\t\t//O método readFully irá enviar o inputStream para o array de bytes \n\t\t\t\tIOUtils.readFully(inputStream, bytes);\n\n\t\t\t\tc.setPhoto(bytes);\n\t\t\t\trepository.save(c);\n\t\t\t\t\n\t\t\t\treturn bytes;\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t}).orElse(null);\n\t}", "public void addImageToGallery(String filePath) {\n ContentValues values = new ContentValues();\n values.put(MediaStore.Images.Media.DATE_TAKEN, System.currentTimeMillis());\n values.put(MediaStore.Images.Media.MIME_TYPE, \"image/jpeg\");\n values.put(MediaStore.MediaColumns.DATA, filePath);\n activity.getContentResolver().insert(isExist_SDCard ? MediaStore.Images.Media.EXTERNAL_CONTENT_URI : MediaStore.Images.Media.INTERNAL_CONTENT_URI, values);\n }", "public void addRow(File photoFile, final Bitmap photoBmp) {\r\n\r\n final PhotoListViewAdapter adapter = (PhotoListViewAdapter) getAdapter();\r\n\r\n /**\r\n * Stores the starting bounds and the corresponding bitmap drawables of\r\n * every cell present in the ListView before the data set change takes\r\n * place.\r\n */\r\n final HashMap<Long, Rect> listViewItemBounds = new HashMap<Long, Rect>();\r\n final HashMap<Long, BitmapDrawable> listViewItemDrawables = new HashMap<Long, BitmapDrawable>();\r\n\r\n int firstVisiblePosition = getFirstVisiblePosition();\r\n for (int i = 0; i < getChildCount(); ++i) {\r\n View child = getChildAt(i);\r\n int position = firstVisiblePosition + i;\r\n long itemID = adapter.getItemId(position);\r\n Rect startRect = new Rect(child.getLeft(), child.getTop(), child.getRight(),\r\n child.getBottom());\r\n listViewItemBounds.put(itemID, startRect);\r\n listViewItemDrawables.put(itemID, getBitmapDrawableFromView(child));\r\n }\r\n\r\n /**\r\n * Adds the new object to the data set, thereby modifying the adapter,\r\n * as well as adding a stable Id for that specified object.\r\n */\r\n // mData.add(0, newObj);\r\n // adapter.addStableIdForDataAtPosition(0);\r\n adapter.addItem(photoFile);\r\n adapter.notifyDataSetChanged();\r\n\r\n final ViewTreeObserver observer = getViewTreeObserver();\r\n observer.addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {\r\n public boolean onPreDraw() {\r\n observer.removeOnPreDrawListener(this);\r\n\r\n ArrayList<Animator> animations = new ArrayList<Animator>();\r\n\r\n final View newCell = getChildAt(0);\r\n final ImageView imgView = (ImageView) newCell.findViewById(R.id.bwc_iv_line_frame);\r\n final ImageView copyImgView = new ImageView(mContext);\r\n\r\n int firstVisiblePosition = getFirstVisiblePosition();\r\n final boolean shouldAnimateInNewRow = shouldAnimateInNewRow();\r\n final boolean shouldAnimateInImage = shouldAnimateInNewImage();\r\n\r\n if (shouldAnimateInNewRow) {\r\n /** Fades in the text of the first cell. */\r\n // TextView textView =\r\n // (TextView)newCell.findViewById(R.id.text_view);\r\n // ObjectAnimator textAlphaAnimator =\r\n // ObjectAnimator.ofFloat(textView,\r\n // View.ALPHA, 0.0f, 1.0f);\r\n // animations.add(textAlphaAnimator);\r\n\r\n /**\r\n * Animates in the extra hover view corresponding to the\r\n * image in the top row of the ListView.\r\n */\r\n if (shouldAnimateInImage) {\r\n\r\n int width = imgView.getWidth();\r\n int height = imgView.getHeight();\r\n int realH = height - imgView.getPaddingTop() - imgView.getPaddingBottom();\r\n int realW = width - imgView.getPaddingLeft() - imgView.getPaddingRight();\r\n\r\n Point photoViewLoc = getLocationOnScreen(imgView);\r\n Point layoutLoc = getLocationOnScreen(mLayout);\r\n\r\n Bitmap bitmap = PhotoListViewAdapter.createListImageFromPhoto(photoBmp, 1);\r\n copyImgView.setImageBitmap(bitmap);\r\n int padding = imgView.getPaddingLeft();\r\n copyImgView.setX(photoViewLoc.x - layoutLoc.x + padding);\r\n copyImgView.setY(-realH);\r\n\r\n imgView.setVisibility(View.INVISIBLE);\r\n copyImgView.setScaleType(ImageView.ScaleType.FIT_CENTER);\r\n ObjectAnimator imgViewTranslation = ObjectAnimator.ofFloat(copyImgView,\r\n View.Y, photoViewLoc.y - layoutLoc.y + imgView.getPaddingTop());\r\n\r\n PropertyValuesHolder imgViewScaleY = PropertyValuesHolder.ofFloat(\r\n View.SCALE_Y, 0.5f, 1.0f);\r\n PropertyValuesHolder imgViewScaleX = PropertyValuesHolder.ofFloat(\r\n View.SCALE_X, 0.5f, 1.0f);\r\n ObjectAnimator imgViewScaleAnimator = ObjectAnimator\r\n .ofPropertyValuesHolder(copyImgView, imgViewScaleX, imgViewScaleY);\r\n imgViewScaleAnimator.setInterpolator(sOvershootInterpolator);\r\n animations.add(imgViewTranslation);\r\n animations.add(imgViewScaleAnimator);\r\n\r\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(realW,\r\n realH);\r\n\r\n mLayout.addView(copyImgView, params);\r\n }\r\n }\r\n\r\n /**\r\n * Loops through all the current visible cells in the ListView\r\n * and animates all of them into their post layout positions\r\n * from their original positions.\r\n */\r\n for (int i = 0; i < getChildCount(); i++) {\r\n View child = getChildAt(i);\r\n int position = firstVisiblePosition + i;\r\n long itemId = adapter.getItemId(position);\r\n Rect startRect = listViewItemBounds.get(itemId);\r\n int top = child.getTop();\r\n if (startRect != null) {\r\n /**\r\n * If the cell was visible before the data set change\r\n * and after the data set change, then animate the cell\r\n * between the two positions.\r\n */\r\n int startTop = startRect.top;\r\n int delta = startTop - top;\r\n ObjectAnimator animation = ObjectAnimator.ofFloat(child,\r\n View.TRANSLATION_Y, delta, 0);\r\n // animation.setStartDelay(ANIM_PHASE_1_DURATION);\r\n animations.add(animation);\r\n } else {\r\n /**\r\n * If the cell was not visible (or present) before the\r\n * data set change but is visible after the data set\r\n * change, then use its height to determine the delta by\r\n * which it should be animated.\r\n */\r\n int childHeight = child.getHeight() + getDividerHeight();\r\n int startTop = top + (i > 0 ? childHeight : -childHeight);\r\n int delta = startTop - top;\r\n ObjectAnimator animation = ObjectAnimator.ofFloat(child,\r\n View.TRANSLATION_Y, delta, 0);\r\n // animation.setStartDelay(ANIM_PHASE_1_DURATION);\r\n animations.add(animation);\r\n }\r\n listViewItemBounds.remove(itemId);\r\n listViewItemDrawables.remove(itemId);\r\n }\r\n\r\n /**\r\n * Loops through all the cells that were visible before the data\r\n * set changed but not after, and keeps track of their\r\n * corresponding drawables. The bounds of each drawable are then\r\n * animated from the original state to the new one (off the\r\n * screen). By storing all the drawables that meet this\r\n * criteria, they can be redrawn on top of the ListView via\r\n * dispatchDraw as they are animating.\r\n */\r\n for (Long itemId : listViewItemBounds.keySet()) {\r\n BitmapDrawable bitmapDrawable = listViewItemDrawables.get(itemId);\r\n Rect startBounds = listViewItemBounds.get(itemId);\r\n bitmapDrawable.setBounds(startBounds);\r\n\r\n int childHeight = startBounds.bottom - startBounds.top + getDividerHeight();\r\n Rect endBounds = new Rect(startBounds);\r\n endBounds.offset(0, childHeight);\r\n\r\n ObjectAnimator animation = ObjectAnimator.ofObject(bitmapDrawable, \"bounds\",\r\n sBoundsEvaluator, startBounds, endBounds);\r\n animation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\r\n private Rect mLastBound = null;\r\n private Rect mCurrentBound = new Rect();\r\n\r\n @Override\r\n public void onAnimationUpdate(ValueAnimator valueAnimator) {\r\n Rect bounds = (Rect) valueAnimator.getAnimatedValue();\r\n mCurrentBound.set(bounds);\r\n if (mLastBound != null) {\r\n mCurrentBound.union(mLastBound);\r\n }\r\n mLastBound = bounds;\r\n invalidate(mCurrentBound);\r\n }\r\n });\r\n\r\n listViewItemBounds.remove(itemId);\r\n listViewItemDrawables.remove(itemId);\r\n\r\n mCellBitmapDrawables.add(bitmapDrawable);\r\n animations.add(animation);\r\n }\r\n\r\n /**\r\n * Animates all the cells from their old position to their new\r\n * position at the same time.\r\n */\r\n setEnabled(false);\r\n mRowAdditionAnimListener.onRowAdditionAnimationStart();\r\n AnimatorSet set = new AnimatorSet();\r\n set.setDuration(NEW_ROW_DURATION);\r\n set.playTogether(animations);\r\n set.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mCellBitmapDrawables.clear();\r\n imgView.setVisibility(View.VISIBLE);\r\n mLayout.removeView(copyImgView);\r\n mRowAdditionAnimListener.onRowAdditionAnimationEnd();\r\n setEnabled(true);\r\n invalidate();\r\n }\r\n });\r\n set.start();\r\n\r\n listViewItemBounds.clear();\r\n listViewItemDrawables.clear();\r\n return true;\r\n }\r\n });\r\n }", "private AddPhotoRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private void addPicureToGallery(File imageFile){\n Intent mediaScanIntent = new\n Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);\n Uri contentUri = Uri.fromFile(imageFile);\n mediaScanIntent.setData(contentUri);\n TripitApplication.getContext().sendBroadcast(mediaScanIntent);\n }", "@SuppressLint(\"RestrictedApi\")\n private void setUpAddPhoto() {\n mAddPhotoView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n MenuBuilder menuBuilder = new MenuBuilder(EditStudentInfo.this);\n new MenuInflater(EditStudentInfo.this).inflate(R.menu.menu_photo, menuBuilder);\n MenuPopupHelper menuPopupHelper = new MenuPopupHelper(EditStudentInfo.this,\n menuBuilder, mAddPhotoView);\n menuPopupHelper.setForceShowIcon(true);\n menuBuilder.setCallback(new MenuBuilder.Callback() {\n // Create a menu for the user to choose between taking a new photo and\n // choosing a photo from their photo gallery\n @Override\n public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) {\n switch (item.getItemId()) {\n case R.id.photo_gallery_action:\n Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT);\n galleryIntent.setType(\"image/*\");\n startActivityForResult(galleryIntent, PICK_PHOTO_GALLERY);\n break;\n case R.id.camera_action:\n launchCamera();\n break;\n default:\n throw new IllegalArgumentException(\"Invalid menu item selected\");\n }\n return true;\n }\n @Override\n public void onMenuModeChange(MenuBuilder menu) {\n\n }\n });\n menuPopupHelper.show();\n }\n });\n }", "private View insertPhoto(final Venue venue) {\n\t\t// TODO Auto-generated method stub\n\n\t\tLayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tViewGroup vg = (ViewGroup) inflater.inflate(R.layout.gallery_items,\n\t\t\t\tnull);\n\n\t\tImageView imageView = (ImageView) vg.findViewById(R.id.venueImage);\n\n\t\tif (UtilValidate.isNotNull(venue.getVenue_image())) {\n\t\t\tPicasso.with(this).load(venue.getVenue_image())\n\t\t\t\t\t.placeholder(R.drawable.empty_photo) //\n\t\t\t\t\t.error(R.drawable.empty_photo).fit().into(imageView);\n\t\t}\n\n\t\timageView.setOnClickListener(new GalleryImageClick(venue));\n\n\t\tinfoImageView.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tanimationSoundBite();\n\n\t\t\t\tshowVenueDetails(venue);\n\n\t\t\t\tAnimationFactory.flipTransition(viewAnimator,\n\t\t\t\t\t\tFlipDirection.LEFT_RIGHT);\n\n\t\t\t}\n\t\t});\n\n\n\t\tcloseBtn.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tanimationSoundBite();\n\n\t\t\t\tAnimationFactory.flipTransition(viewAnimator,\n\t\t\t\t\t\tFlipDirection.LEFT_RIGHT);\n\n\t\t\t}\n\t\t});\n\n\t\treturn vg;\n\t}", "Builder addAssociatedMedia(MediaObject value);", "public void setPic(byte[] data) {\n ParseFile pic = new ParseFile(getObjectId().toString()+ \".jpg\", data);\n //SAVE PIC THEN ONCE DONE, PERFORM SAVE ON THE PHOTO OBJECT\n pic.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.d(TAG, \"Error in uploading photo to Parse: \" + e);\n }\n }\n }, new ProgressCallback() {\n @Override\n public void done(Integer percentDone) {\n\n }\n });\n put(\"pic\", pic);\n saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.d(TAG, \"Error saving photo to Parse: \" + e);\n }\n }\n });\n }", "@UiHandler(\"addObservatoryImage\")\r\n\tvoid onAddObservatoryImageClicked(ClickEvent event) {\r\n\t\tpresenter.goToCreateObservatoryActivity();\r\n\r\n\t}", "public void addImage(Bitmap b, final String path) {\n\t\t// Find the gridlayout\n\t\tLayoutInflater inflater = LayoutInflater.from(this);\n\t\tGridLayout container = (GridLayout) findViewById(R.id.GridLayout1);\n\t\t// Create a new imageView\n\t\tImageView imageView = (ImageView) inflater.inflate(R.layout.photo_frame,null);\n\t\t// Set the imageView's picture\n\t\timageView.setImageBitmap(b);\n\n\t\t// Set the onClick listener\n\t\t// This will make the image that was clicked larger\n\t\timageView.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tonImageClick(arg0);\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Set the onLongClick listener\n\t\t// This will delete the image that was \"longClicked\"\n\t\timageView.setOnLongClickListener(new OnLongClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic boolean onLongClick(View v) {\n\t\t\t\tLog.wtf(\"THING\", \"Clicked\");\n\t\t\t\t\n\t\t\t\t// Create an ArrayList to contain everything in the text file\n\t\t\t\tArrayList<String> textFileContent = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t// Prepare to read from the file\n\t\t\t\t\tFileInputStream inStream = openFileInput(\"photos.txt\");\n\t\t\t\t\t\n\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(inStream));\n\n\t\t\t\t\tString currentLine;\n\t\t\t\t\tString lineToRemove = path;\n\n\t\t\t\t\t// Iterate through the lines of the file\n\t\t\t\t\twhile ((currentLine = reader.readLine()) != null) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add each line to the ArrayList\n\t\t\t\t\t\ttextFileContent.add(currentLine);\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.i(\"LINE TO REMOVE\", lineToRemove);\n\t\t\t\t\t\tLog.i(\"CURRENT LINE\", currentLine);\n\t\t\t\t\t\tif (currentLine.trim().equals(lineToRemove)) {\n\t\t\t\t\t\t\t// If the currentLine is the line we need to remove, remove it from the ArrayList\n\t\t\t\t\t\t\ttextFileContent.remove(currentLine);\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\n\t\t\t\t\t// Delete the old file (needs to be re written)\n\t\t\t\t\tFile file = new File(getFilesDir().getAbsoluteFile() + \"/photos.txt\");\n\t\t\t\t\tfile.delete();\n\t\t\t\t\t\n\t\t\t\t\t// Create the file again (this time it is empty)\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfile.createNewFile();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Prepare to write the new file\n\t\t\t\t\tFileOutputStream outStream = openFileOutput(\"photos.txt\", MODE_APPEND);\n\t\t\t\t\tBufferedWriter writer = new BufferedWriter(new OutputStreamWriter(outStream));\n\t\t\t\t\t\n\t\t\t\t\t// Iterate through textFileContent\n\t\t\t\t\tfor (int c = 0; c < textFileContent.size(); c++) {\n\t\t\t\t\t\t// Write all of textFileContent to the new file (everything that was in the old \n\t\t\t\t\t\t// file except what needed to be deleted\n\t\t\t\t\t\twriter.write(textFileContent.get(c) + \"\\n\");\n\t\t\t\t\t\tLog.d(\"WROTE LINE\", textFileContent.get(c));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Close the streams\n\t\t\t\t\twriter.close();\n\t\t\t\t\treader.close();\n\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t// Refresh the display\n\t\t\t\trefreshImages();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Set the image to be visible\n\t\timageView.setVisibility(0);\n\t\t// Add all the layout parameters (this is what the XML does but in java this time)\n\t\tGridLayout.LayoutParams layout = new GridLayout.LayoutParams();\n\t\tlayout.setGravity(Gravity.LEFT | Gravity.TOP);\n\t\tlayout.width = 150;\n\t\tlayout.height = 115;\n\t\tlayout.setMargins(5, 5, 5, 5);\n\t\tlayout.columnSpec = GridLayout.spec(column);\n\t\tlayout.rowSpec = GridLayout.spec(row);\n\t\tif (column >= maxColumns - 1) {\n\t\t\tcolumn = 0;\n\t\t\trow++;\n\t\t} else{\n\t\t\tcolumn++;\n\t\t}\n\t\tcontainer.addView(imageView,layout);\n\t}", "public void add(String name) {\n File f = new File(name);\n if (!f.exists()) {\n Utils.message(\"File does not exist.\");\n throw new GitletException();\n }\n Blob blob = new Blob(f);\n untracked.remove(name);\n HashMap<String, Blob> files = head.getContents();\n if (files.containsKey(name)\n && files.get(name).getContent().equals(blob.getContent())) {\n return;\n } else if (!(files.containsKey(name) && files.get(name).equals(blob))) {\n stagingarea.put(blob.getName(), blob);\n File stagefile = Utils.join(staging, blob.getHash());\n Utils.writeObject(stagefile, blob);\n }\n\n }", "private static void galleryAddPic(File file, Context context) {\n Intent mediaScanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);\n Uri contentUri = Uri.fromFile(file);\n mediaScanIntent.setData(contentUri);\n context.sendBroadcast(mediaScanIntent);\n }", "public void btn_new_photo_On_click(View v) {\n Intent i = new Intent(MainActivity.this, NewPhoto.class);\n startActivity(i);\n }", "private void addEntity(Entity entity, ImageView view) {\n trackPosition(entity, view);\n entityImages.add(view);\n }", "private void postImageToFacebook() {\n Session session = Session.getActiveSession();\n final String extraText = postTextView.getText().toString();\n if (session.isPermissionGranted(\"publish_actions\")){\n Bundle param = new Bundle();\n\n // Add the image\n try {\n Drawable myDrawable = getResources().getDrawable(extrasIntent.getInt(\"image\"));\n Bitmap bitmap = ((BitmapDrawable) myDrawable).getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] byteArrayData = stream.toByteArray();\n param.putByteArray(\"picture\", byteArrayData);\n } catch (Exception ioe) {\n // The image that was send through is now not there?\n Assert.assertTrue(false);\n }\n\n // Add the caption\n param.putString(\"message\", extraText);\n Request request = new Request(session,\"me/photos\", param, HttpMethod.POST, new Request.Callback() {\n @Override\n public void onCompleted(Response response) {\n addNotification(getString(R.string.photo_post), response.getGraphObject(), response.getError());\n\n }\n }, null);\n RequestAsyncTask asyncTask = new RequestAsyncTask(request);\n asyncTask.execute();\n finish();\n }\n }", "public boolean addPhotoToAlbum(Photo p, String albumName) {\r\n if (this.photos.contains(p)) { // photo presence check\r\n for (Album a : this.albums) {\r\n if (a.getName() == albumName && !a.hasPhoto(p)) {\r\n a.addPhoto(p);\r\n return true;\r\n } else {\r\n continue;\r\n }\r\n }\r\n }\r\n return false;\r\n\r\n }", "public void addPic(HerbierPic pic) {\n\t\tif (pic != null) {\n\t\t\tpics.add(pic);\n\t\t}\n\t}", "public void addImageToView(String imagePath) {\n\n ImageMeta newImageMeta = new ImageMeta();\n newImageMeta.fullImagePath = imagePath;\n String thumbnail = getThumbNailImage(imagePath);\n String[] tokens = thumbnail.split(saperator);\n newImageMeta.thumbnailImagePath = tokens[0];\n newImageMeta.thumbnail64 = tokens[1];\n newImageMeta.awsPath = null;\n fieldImages.add(newImageMeta);\n reRenderImageList();\n\n }", "public void addTag(ActionEvent event) {\n\t\tObservableList<ImageView> pho;\n\t\tpho = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\t\n\t\tif(pho.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Photo Selected\");\n\t\t\talert.setContentText(\"No photo selected. Delete Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\tnewTagName.setText(\"\");\n\t\t\tnewTagValue.setText(\"\");\n\t\t\t\n\t\t\ttagNameLabel.setVisible(false);\n\t \ttagValueLabel.setVisible(false);\n\t \tsubmitNewTagButton.setVisible(false);\n\t \tcancelNewTagButton.setVisible(false);\n\t \tnewTagName.setVisible(false);\n\t \tnewTagValue.setVisible(false);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString tagname = newTagName.getText().trim().toLowerCase();\n\t\tString tagvalue = newTagValue.getText().trim().toLowerCase();\n\t\t\n\t\tif(tagname.equals(\"\") || tagvalue.equals(\"\")) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"Field(s) Missing\");\n\t\t\talert.setContentText(\"Tag name or Tag value missing. Add Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\tnewTagName.setText(\"\");\n\t\t\tnewTagValue.setText(\"\");\n\t\t\t\n\t\t\ttagNameLabel.setVisible(false);\n\t \ttagValueLabel.setVisible(false);\n\t \tsubmitNewTagButton.setVisible(false);\n\t \tcancelNewTagButton.setVisible(false);\n\t \tnewTagName.setVisible(false);\n\t \tnewTagValue.setVisible(false);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tImageView img = (ImageView) PhotoListDisplay.getSelectionModel().getSelectedItem();\n\t\tPhoto p = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getPhotoFromImage(img);\n\t\t\n\t\tif(p.checkIfTagExists(tagname, tagvalue)) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"Duplicate Tag!\");\n\t\t\talert.setContentText(\"Tag name and Tag value combination already exists. Add Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\tnewTagName.setText(\"\");\n\t\t\tnewTagValue.setText(\"\");\n\t\t\t\n\t\t\ttagNameLabel.setVisible(false);\n\t \ttagValueLabel.setVisible(false);\n\t \tsubmitNewTagButton.setVisible(false);\n\t \tcancelNewTagButton.setVisible(false);\n\t \tnewTagName.setVisible(false);\n\t \tnewTagValue.setVisible(false);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tp.addTag(tagname, tagvalue);\n\t\tArrayList<Tag> listTags = p.getTags();\n\t\t\n\t\ttagObsList = FXCollections.observableList(listTags);\n\t\tTagListDisplay.setItems(tagObsList);\n\t\t\n\t\tnewTagName.setText(\"\");\n\t\tnewTagValue.setText(\"\");\n\t\t\n\t\ttagNameLabel.setVisible(false);\n \ttagValueLabel.setVisible(false);\n \tsubmitNewTagButton.setVisible(false);\n \tcancelNewTagButton.setVisible(false);\n \tnewTagName.setVisible(false);\n \tnewTagValue.setVisible(false);\n \t\n \ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public void addImage(Image image) {\n\t\tlist.add(image);\n\n\t}", "@PostMapping(\"/photos/add\")\r\n\tpublic String addPhoto(@RequestParam(\"title\") String title, @RequestParam(\"image\") MultipartFile image, @RequestParam(\"update\") Optional<String> update, Model model) throws IOException{\n\t\tif(update.isPresent()){\r\n\t\t\tlog.info(String.format(\"Updating photo with title %s\", title));\r\n\t\t\tPhoto toUpdate = photoService.getPhotoByTitle(title);\r\n\t\t\ttoUpdate.setImage(new Binary(BsonBinarySubType.BINARY, image.getBytes()));\r\n\t\t\tphotoService.updatePhoto(toUpdate);\r\n\t\t}else{\r\n\t\t\tlog.info(String.format(\"Uploading new photo with title %s\", title));\r\n\t\t\tphotoService.addPhoto(title, image);\r\n\t\t}\r\n\t\treturn \"redirect:/media/photos/all\";\r\n\t\t/*return \"redirect:/media/photos/\"+id;*/\r\n\t}", "public void saveDetailsOnClick(View view)\n {\n\n //Create Picture object by passing String params set by user.\n Picture picture = new Picture(locationEditText.getText().toString(),\n pictureNameEditText.getText().toString());\n\n //call pushPicture method using instance of Picture to push picture to Firebase\n picture.pushPicture(picture.getLocation(),picture.getName());\n\n\n //Display Toast to let user know that picture has been saved.\n Toast.makeText(PictureActivity.this, R.string.save_toast,\n Toast.LENGTH_SHORT).show();\n\n }", "public void addTagButton(ActionEvent event) {\n\t\tObservableList<ImageView> pho;\n\t\tpho = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\t\n\t\tif(pho.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Photo Selected\");\n\t\t\talert.setContentText(\"No photo selected. Delete Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\tnewTagName.setText(\"\");\n\t\t\tnewTagValue.setText(\"\");\n\t\t\t\n\t\t\ttagNameLabel.setVisible(false);\n\t \ttagValueLabel.setVisible(false);\n\t \tsubmitNewTagButton.setVisible(false);\n\t \tcancelNewTagButton.setVisible(false);\n\t \tnewTagName.setVisible(false);\n\t \tnewTagValue.setVisible(false);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttagNameLabel.setVisible(true);\n \ttagValueLabel.setVisible(true);\n \tsubmitNewTagButton.setVisible(true);\n \tcancelNewTagButton.setVisible(true);\n \tnewTagName.setVisible(true);\n \tnewTagValue.setVisible(true);\n\t}", "public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_OPEN_DOCUMENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE);\n\n\n\n\n /*String stringFilePath = Environment.getExternalStorageDirectory().getPath()+\"/Download/\"+editText.getText().toString()+\".jpeg\";\n Bitmap bitmap = BitmapFactory.decodeFile(stringFilePath);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.PNG, 0, byteArrayOutputStream);\n byte[] bytesImage = byteArrayOutputStream.toByteArray();\n db.addTicket(stringFilePath, bytesImage);*/\n\n }", "boolean uploadImage() {\r\n\t\tJFileChooser inImg = new JFileChooser();\r\n\t\tint approved = inImg.showOpenDialog(mainFrame);\r\n\t\tif (approved == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tFile imf = inImg.getSelectedFile();\r\n\t\t\ttry {\r\n\t\t\t\talbum.put(album.size(), new Image(imf.getPath()));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Invalid File Path\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tmodel.addElement(album.get(album.size() - 1));\r\n\t\t\talbumList.setModel(model);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "int insert(PicInfo record);", "private void pickFromCamera() {\n ContentValues values = new ContentValues();\n values.put(MediaStore.Images.Media.TITLE, \"Temp Pic\");\n values.put(MediaStore.Images.Media.DESCRIPTION, \"Temp Description\");\n\n //put Image uri\n image_uri = UserProfile.this.getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);\n\n //intent to start Camera\n Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, image_uri);\n startActivityForResult(cameraIntent, IMAGE_PICK_CAMERA_CODE);\n }", "public void add(Picture picture, int row, int column) \n {\n // Increase the size of the arrays to make room for the new picture\n // First create a new array with one more space\n Picture[] newPictures = new Picture[numPics + 1];\n int[][] newOffsets = new int[numPics + 1][2];\n \n // Read the array of pictures and offsets into the new arrays\n for (int i = 0 ; i < numPics; i++)\n {\n newPictures[i] = pictures[i];\n newOffsets[i] = offsets[i];\n }\n \n // Set the arrays to their respective new arrays, and add the new picture\n pictures = newPictures;\n offsets = newOffsets;\n pictures[numPics] = picture;\n offsets[numPics][0] = row;\n offsets[numPics][1] = column;\n \n // Calculate the new height and width of the collage if it changes\n height = Math.max(height,pictures[numPics].getHeight() + offsets[numPics][0]);\n width = Math.max(width,pictures[numPics].getWidth() + offsets[numPics][1]);\n \n // Update the number of pictures variable\n numPics++;\n\n }", "public void uploadImg(View view){\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"image/*\");\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), SELECT_PICTURE);\n }", "int insert(SportAlbumPicture record);", "public void sharePhotoToFacebook()\n\t{\n\t\tBitmap image = faceView;\n\t\tSharePhoto photo = new SharePhoto.Builder().setBitmap(image).setCaption(\"Semi Final\").build();\n\t\tSharePhotoContent content = new SharePhotoContent.Builder().addPhoto(photo).build();\n\t\tShareApi.share(content, null);\n\t}", "public void camara(){\n Intent fotoPick = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n String fecha = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\").format(new Date());\n Uri uriSavedImage=Uri.fromFile(new File(getExternalFilesDir(Environment.DIRECTORY_DCIM),\"inmueble_\"+id+\"_\"+fecha+\".jpg\"));\n fotoPick.putExtra(MediaStore.EXTRA_OUTPUT, uriSavedImage);\n startActivityForResult(fotoPick,TAKE_PICTURE);\n\n }", "Builder addAssociatedMedia(String value);", "private void addImage(ImageRegistry reg, String imagePath) {\n \n final Bundle bundle = Platform.getBundle(ID);\n \n final Path attachImgPath = new Path(imagePath);\n final ImageDescriptor attachImg = ImageDescriptor.createFromURL(\n FileLocator.find(bundle, attachImgPath, null));\n reg.put(imagePath, attachImg);\n \n }", "public Photo(Photo photo){\n tags = new ArrayList<>();\n for(Tag tag : photo.getTags()){\n Tag t = new Tag(tag.getName(), tag.getValue());\n tags.add(t);\n }\n caption = photo.getCaption();\n //url = photo.getUrl();\n }" ]
[ "0.753447", "0.672897", "0.67054164", "0.663733", "0.6636935", "0.6603092", "0.65870535", "0.6557262", "0.6514991", "0.64647484", "0.64216125", "0.63658094", "0.63627654", "0.63467604", "0.63036615", "0.62851965", "0.6278083", "0.6218103", "0.62119466", "0.61886173", "0.6180144", "0.6177385", "0.6167814", "0.61636907", "0.6125746", "0.6093722", "0.6079941", "0.60720825", "0.6060874", "0.6054007", "0.60036397", "0.6000537", "0.599976", "0.5971095", "0.59567595", "0.59563917", "0.59407526", "0.5921334", "0.5916733", "0.5914027", "0.58681905", "0.58601344", "0.5857755", "0.5854863", "0.5848445", "0.5841514", "0.5835538", "0.5806453", "0.5797657", "0.5797356", "0.5751369", "0.5743332", "0.57304674", "0.57268614", "0.57239735", "0.5721163", "0.57204556", "0.5710764", "0.57071334", "0.5703002", "0.5695178", "0.56927985", "0.56924397", "0.56801784", "0.56776905", "0.5646835", "0.56460726", "0.5632869", "0.5619953", "0.5619431", "0.5596189", "0.55842614", "0.5569188", "0.55625", "0.55609655", "0.55592275", "0.5551458", "0.5550061", "0.5536594", "0.553555", "0.5532372", "0.552207", "0.55084294", "0.5507123", "0.55038095", "0.5502948", "0.5498551", "0.5495944", "0.54857504", "0.54838026", "0.5478521", "0.54767483", "0.5471982", "0.5464604", "0.54619336", "0.5460374", "0.54596734", "0.5454858", "0.5452002", "0.54456306", "0.5431341" ]
0.0
-1
Delete a from the photo
public void deleteTag(Tag tag){ String tagName = tag.getName(); if (tags.containsKey(tagName)){ tags.remove(tagName); setName(); deleteObserver(tag); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deletePressedPhoto() {\r\n if (lastPressedPhoto == null)\r\n return;\r\n\r\n int photoId = (int) lastPressedPhoto.getTag(R.integer.tag_event_photo);\r\n\r\n LinearLayout layoutPhotos = findViewById(R.id.layoutPhotos);\r\n layoutPhotos.removeView(lastPressedPhoto);\r\n\r\n EventPhoto photo = DatabaseManager.getInstance().getDatabase().eventPhotoDao().findById(photoId);\r\n DatabaseManager.getInstance().getDatabase().eventPhotoDao().deleteById(photo.uid);\r\n showToast(getString(R.string.event_photo_removed), Toast.LENGTH_SHORT);\r\n disablePhotoEditing();\r\n }", "void removePhoto(User user, String photoId);", "int deleteImage(int pos);", "public void photoDelete(String id) throws DataSnapshotException {\n\t\t\r\n\t}", "public Image getDelete();", "public void deletePhoto(ActionEvent event) {\n\t\tObservableList<ImageView> pho;\n\t\tpho = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\t\n\t\t//System.out.println(\"before deletion: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\n\t\tif(pho.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Photo Selected\");\n\t\t\talert.setContentText(\"No photo selected. Delete Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(ImageView p: pho) {\n\t\t\t//delUsername.setText(name.getUsername());\n\t\t\t//this is a confirmation\n\t\t\tAlert alert2 = new Alert(AlertType.CONFIRMATION);\n\t\t\talert2.setTitle(\"Confirmation Dialog\");\n\t\t\talert2.setHeaderText(\"Confirm Action\");\n\t\t\talert2.setContentText(\"Are you sure?\");\n\t\t\tOptional<ButtonType> result = alert2.showAndWait();\n\t\t\t\n\t\t\tif(result.get() == ButtonType.OK) {\n\t\t\t\t//removed it from observable list\n\t\t\t\tlistOfPhotos.remove(p);\n\t\t\t\tdisplayedPhoto.remove(0);\n\t\t\t\t\n\t\t\t\t//removing photo from the master list\n\t\t\t\tPhoto getPhoto = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getPhotoFromImage(p);\n\t\t\t\t//System.out.println(\"Path to this image is: \" + getPhoto.getPathToPhoto());\n\t\t\t\tAccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum().remove(getPhoto);\n\t\t\t\t\n\t\t\t\t//System.out.println(\"removing album\");\n\t\t\t\tdisplayedPhoto.clear();\n\t\t\t\tdisplayedPhoto = FXCollections.observableArrayList();\n\t\t\t\tDisplayedImage.setItems(displayedPhoto);\n\t\t\t\t\n\t\t\t\tPhotoCaptionDisplay.setText(\"\");\n\t\t\t\tOldCaptionText.setText(\"\");\n\t\t\t\t\n\t\t\t\tArrayList<Tag> list = new ArrayList<Tag>();\n\t\t\t\ttagObsList = FXCollections.observableList(list);\n\t\t\t\tTagListDisplay.setItems(tagObsList);\n\t\t\t\t\n\t\t\t\t//System.out.println(\"after: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//*******************CHECK FOR BUG HERE, (deleting newly added user creates zombie photos\n\t\t\t\t//System.out.println(\"1: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\t\t//System.out.println(\"2: \" + listOfPhotos);\n\t\t\t\t//System.out.println(\"3: \" + displayedPhoto);\n\t\t\t}else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\trefreshPhotos();\n\t\t\n\t\t//Note: MUST SERIALIZE AFTER DELETING (also after adding)\n\t\t\n\t\t//updates permanent list(Serialized List) of users\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "boolean deleteImage(Image img) {\r\n\t\treturn true;\r\n\t}", "public void deleteRpiPhoto(String rpiId, String time) throws SQLException;", "@Override\n\tpublic void onDeleting(PhotoFragment f, NPPhoto photo) {\n\t\tfinish();\n\t}", "public void deletePhotoForMovePhoto(ActionEvent event) {\n\t\tObservableList<ImageView> pho;\n\t\tpho = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\t\n\t\t//System.out.println(\"before deletion: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\n\t\tif(pho.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Photo Selected\");\n\t\t\talert.setContentText(\"No photo selected. Delete Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(ImageView p: pho) {\n\t\t\t//delUsername.setText(name.getUsername());\n\t\t\t//this is a confirmation\n\t\t\t\n\t\t\t//removed it from observable list\n\t\t\tlistOfPhotos.remove(p);\n\t\t\tdisplayedPhoto.remove(0);\n\t\t\t\n\t\t\t//removing photo from the master list\n\t\t\tPhoto getPhoto = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getPhotoFromImage(p);\n\t\t\t//System.out.println(\"Path to this image is: \" + getPhoto.getPathToPhoto());\n\t\t\tAccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum().remove(getPhoto);\n\t\t\t\n\t\t\t//System.out.println(\"removing album\");\n\t\t\tdisplayedPhoto.clear();\n\t\t\tdisplayedPhoto = FXCollections.observableArrayList();\n\t\t\tDisplayedImage.setItems(displayedPhoto);\n\t\t\t\n\t\t\tPhotoCaptionDisplay.setText(\"\");\n\t\t\tOldCaptionText.setText(\"\");\n\t\t\t\n\t\t\tArrayList<Tag> list = new ArrayList<Tag>();\n\t\t\ttagObsList = FXCollections.observableList(list);\n\t\t\tTagListDisplay.setItems(tagObsList);\n\t\t\t\n\t\t\t//System.out.println(\"after: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\t\n\t\t\t\n\t\t\t//*******************CHECK FOR BUG HERE, (deleting newly added user creates zombie photos\n\t\t\t//System.out.println(\"1: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\t//System.out.println(\"2: \" + listOfPhotos);\n\t\t\t//System.out.println(\"3: \" + displayedPhoto);\n\t\t\t\n\t\t}\n\t\t\n\t\trefreshPhotos();\n\t\t\n\t\t//Note: MUST SERIALIZE AFTER DELETING (also after adding)\n\t\t\n\t\t//updates permanent list(Serialized List) of users\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "private void deletePet(){\n if(mCurrentPetUri != null){\n int rowsDeleted = getContentResolver().delete(mCurrentPetUri,null,null);\n if(rowsDeleted == 0){\n Toast.makeText(this, \"Error with deleting pet\", Toast.LENGTH_SHORT).show();\n }else {\n Toast.makeText(this, \"Pet deleted\", Toast.LENGTH_SHORT).show();\n }\n }\n finish();\n }", "@Override\n public void onWhatEverClick(int position) {\n Upload selectedItem = patientsList.get(position);\n String userId = selectedItem.getKey();\n\n StorageReference imageRef = mStorage.getReferenceFromUrl(selectedItem.getImageUrl());\n imageRef.delete().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void unused) {\n\n databaseReference.child(userId).removeValue();\n Toast.makeText(PatientsListActivity.this, \"Patient deleted\", Toast.LENGTH_SHORT).show();\n\n\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(PatientsListActivity.this, \"Error: \"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n\tpublic int deleteProductPhoto(String productNo) {\n\t\treturn 0;\n\t}", "private void confirmDelete()\n {\n if (imageCapture.getDrawable() != null)\n {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setCancelable(true).setTitle(\"Delete\").setMessage(\"Are you sure you want to delete this local image?\");\n\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which)\n {\n imageCapture.setImageDrawable(null);\n File file = new File(currentPhotoPath);\n file.delete();\n getActivity().sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE,\n Uri.fromFile(new File(currentPhotoPath))));\n }\n });\n\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n else\n {\n Log.w(\"confirmDelete\", \"getDrawable:failure\");\n Toast.makeText(getActivity(), \"Unable to Delete: No current Image\",\n Toast.LENGTH_SHORT).show();\n }\n }", "@Override\r\n\tpublic Album deleteMyImage(int id) throws SQLException {\n\t\treturn dao.deleteMyImage(id);\r\n\t}", "int deleteByExample(EnterprisePictureExample example);", "public Result destroy(Http.Request request, Long photoId) {\n Profile loggedInUser = AuthenticationUtil.validateAuthentication(profileRepository, request);\n if (loggedInUser == null) {\n return unauthorized(ApiError.unauthorized());\n }\n\n PersonalPhoto photo = personalPhotoRepository.findById(photoId);\n\n if (photo == null) {\n return notFound(ApiError.notFound(Errors.PHOTO_NOT_FOUND));\n }\n\n\n Profile photoOwner = photo.getProfile();\n\n if (!AuthenticationUtil.validUser(loggedInUser, photoOwner)) {\n return forbidden(ApiError.forbidden());\n }\n if (photoOwner != null) {\n for(Destination destination : destinationRepository.fetch(photo)) {\n destination.removePhotoFromGallery(photo);\n destinationRepository.update(destination);\n }\n photoOwner.removePhotoFromGallery(photo);\n photo.clearDestinations();\n personalPhotoRepository.update(photo);\n personalPhotoRepository.delete(photo);\n profileRepository.update(photoOwner);\n return ok(Json.toJson(photo));\n }\n return badRequest(ApiError.badRequest(Errors.PROFILE_NOT_FOUND));\n }", "int deleteByExample(SportAlbumPictureExample example);", "private void deletePet() {\n if (mCurrentPetUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentPetUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentPetUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_pet_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_pet_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}", "private void deleteImage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint id= Integer.parseInt(request.getParameter(\"fileId\"));\n\t\tFiles file= new FilesDAO().view(id);\n\t\t//Logic to delete the file from the database\n\t\t\n\t\tnew FilesDAO().delete(id);\n\t\t\n\t\t\n\t\t//Logic to delete file from the file system\n\t\t\n\t\tFile fileOnDisk= new File(path+file.getFileName());\n\t\tif(fileOnDisk.delete()) {\n\t\t\tSystem.out.println(\"File deleted from the folder\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Sorr! file couldn't get deleted from the folder\");\n\t\t}\n\t\tlistingPage(request, response);\n\t}", "private void deletePet() {\r\n // Only perform the delete if this is an existing pet.\r\n// if (mCurrentPetUri != null) {\r\n// // Call the ContentResolver to delete the pet at the given content URI.\r\n// // Pass in null for the selection and selection args because the mCurrentPetUri\r\n// // content URI already identifies the pet that we want.\r\n// int rowsDeleted = getContentResolver().delete(mCurrentPetUri, null, null);\r\n// // Show a toast message depending on whether or not the delete was successful.\r\n// if (rowsDeleted == 0) {\r\n// // If no rows were deleted, then there was an error with the delete.\r\n// Toast.makeText(this, getString(R.string.editor_delete_pet_failed),\r\n// Toast.LENGTH_SHORT).show();\r\n// } else {\r\n// // Otherwise, the delete was successful and we can display a toast.\r\n// Toast.makeText(this, getString(R.string.editor_delete_pet_successful),\r\n// Toast.LENGTH_SHORT).show();\r\n// }\r\n// }\r\n\r\n }", "@Source(\"gr/grnet/pithos/resources/editdelete.png\")\n ImageResource delete();", "public boolean delete(Pic pic) {\n\t\treturn picDao.delete(pic);\n\t}", "public void delete() {\r\n if (this.selectedTag != null) {\r\n for (int i = uploads.size() -1; i >= 0 ; i--) {\r\n if (this.selectedTag.equals(uploads.get(i).getTag())) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepath());\r\n uploads.remove(i);\r\n break;\r\n }\r\n }\r\n }\r\n }", "public void eliminarImagenImagen( int idImagen){\n Images images = new Images();\n images.setIdImagen(idImagen);\n images.setImagen(\"imags\");\n DaoDeleteImageImage dao = new DaoDeleteImageImage(this, this, images);\n dao.execute();\n }", "private void deleteFile(String oldPic) {\n\n\n File fileDir = new File(oldPic);\n if (fileDir.exists()) {\n \n fileDir.delete();\n }\n\n }", "@RequestMapping(\"/delete/{id}\")\n\t\tpublic String deleteFoto(@PathVariable(name = \"id\") int id) {\n\t\t\tfotoService.delete(id);\n\t\t\treturn \"redirect:/foto/fotoList\"; \n\t\t}", "@DeleteMapping(\"/posts/picture/{pictureId}\")\n void removePostsByPic(@PathVariable Long pictureId);", "@Override\n\tpublic ImageEntity delete(Object entity) {\n\t\tDatabaseContext.delete(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "@Override\n public void onClick(View v) {\n if (imageUrlIfProfileNotUploaded!=null && !imageUrlIfProfileNotUploaded.equals(\"\")) {\n storageReference = FirebaseStorage.getInstance().getReferenceFromUrl(imageUrlIfProfileNotUploaded);\n\n storageReference.delete().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n // File deleted successfully\n// Toast.makeText(AddInterviewExperienceActivity.this, \"Image deleted successfully!\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n // Uh-oh, an error occurred!\n// Toast.makeText(AddInterviewExperienceActivity.this, \"Failed to delete the image!\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n onBackPressed();\n }", "public void delete(Long id) {\n log.debug(\"Request to delete Picture : {}\", id);\n pictureRepository.delete(id);\n pictureSearchRepository.delete(id);\n }", "@Override\n public void onClick(View view) {\n DialogUtil.showInfoDialog(CJ_BXBQ_XCKP_edit.this, \"确认删除?\", \"确定\" , new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n imgs.remove(imgkey);\n removeImage(v, imgItemWidth, 0);\n }\n });\n }", "void doDelete(SnapshotMetadata metadata) throws Exception;", "@Override\r\n\tpublic void deleteTag(String photoId, String tagType, String tagValue) {\n\t\tList<IAlbum> albums=model.getUser(userId).getAlbums();\r\n\t\t/*only for single*/\r\n\t\t/*List<IAlbum> albums=model.getUser(userId).getAlbums();\r\n\t\tIPhoto editMe=null;\r\n\t\tIAlbum temp= photoListGui.getCurrentAlbum();\r\n\t\tList<IPhoto> photoList=temp.getPhotoList();\r\n\t\tInteractiveControl.PhotoCompareForNames comparePower2=new InteractiveControl.PhotoCompareForNames();\r\n\t\tCollections.sort(photoList, comparePower2);\r\n\t\tint index=Collections.binarySearch(photoList, photoId);\r\n\t\t\tif(index>=0){\r\n\t\t\t\teditMe=photoList.get(index);\r\n\t\t\t\tswitch(tagType){\r\n\t\t\t\tcase\"location\":\r\n\t\t\t\tif(editMe.getLocationTag().isEmpty()||editMe.getLocationTag()==null){\r\n\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\">:\"+tagValue+\"\";\r\n\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\tshowError();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tString tempz=editMe.getLocationTag();\r\n\t\t\t\t\tif(tempz.equals(tagValue)){\r\n\t\t\t\t\teditMe.setLocationTag(\"\");\r\n\t\t\t\t\tString success=\"Deleted tag:\\n\"+photoId+\" \"+tagType+\":\"+tempz+\"\";\r\n\t\t\t\t\tsetErrorMessage(success);\r\n\t\t\t\t\tshowError();\r\n\t\t\t\t\tphotoListGui.setLocationTagBackToNull();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\treturn;\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\tcase\"person\":\r\n\t\t\t\t\t\r\n\t\t\t\tif((editMe.getPeopleTags().isEmpty())|| (!editMe.getPeopleTags().contains(tagValue))){\r\n\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\tshowError();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tif(editMe.removePersonTag(tagValue)){\r\n\t\t\t\t\tString success=\"Deleted tag:\\n\"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\tsetErrorMessage(success);\r\n\t\t\t\t\tshowError();\r\n\t\t\t\t\tphotoListGui.updateTagList();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tString error=\"Error <Tag value doesn't exist>\";\r\n\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\tshowError();\r\n\t\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t}*/\r\n\t\t/*for all*/\r\n\t\tIPhoto editMe=null;\r\n\t\touterLoop:\r\n\t\tfor (int i=0; i<model.getUser(userId).getAlbums().size(); i++){\r\n\t\t\tIAlbum temp= albums.get(i);\r\n\t\t\tList<IPhoto> photoList=temp.getPhotoList();\r\n\t\t\tInteractiveControl.PhotoCompareForNames comparePower2=new InteractiveControl.PhotoCompareForNames();\r\n\t\t\tCollections.sort(photoList, comparePower2);\r\n\t\t\tint index=Collections.binarySearch(photoList, photoId);\r\n\t\t\t\tif(index>=0){\r\n\t\t\t\t\teditMe=photoList.get(index);\r\n\t\t\t\t\tswitch(tagType){\r\n\t\t\t\t\tcase\"location\":\r\n\t\t\t\t\tif(editMe.getLocationTag().isEmpty()||editMe.getLocationTag()==null){\r\n\t\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\">:\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tString tempz=editMe.getLocationTag();\r\n\t\t\t\t\t\tif(tempz.equals(tagValue)){\r\n\t\t\t\t\t\teditMe.setLocationTag(\"\");\r\n\t\t\t\t\t\tString success=\"Deleted tag:\\n\"+photoId+\" \"+tagType+\":\"+tempz+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(success);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\tphotoListGui.setLocationTagBackToNull();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase\"person\":\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif((editMe.getPeopleTags().isEmpty())|| (!editMe.getPeopleTags().contains(tagValue))){\r\n\t\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tif(editMe.removePersonTag(tagValue)){\r\n\t\t\t\t\t\tString success=\"Deleted tag:\\n\"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(success);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\tphotoListGui.updateTagList();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tString error=\"Error <Tag value doesn't exist>\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(editMe==null){\r\n\t\t\tString error=\"Photo \"+photoId+\" does not exist\";\r\n\t\t\tsetErrorMessage(error);\r\n\t\t\tshowError();\t\r\n\t\t\treturn;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t}", "@POST\n @Path(\"/delete\")\n public Response deleteImage(){\n this.organizationLogoService.deleteOrganizationLogo();\n return Response.status(200).build();\n }", "@Override\n public void delete(int position) {\n Upload selectItem=uploadList.get(position);\n\n //get for selected item key\n final String key=selectItem.getKey();\n\n StorageReference storageReference=firebaseStorage.getReferenceFromUrl(selectItem.getImageUri());\n storageReference.delete().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n databaseReference.child(key).removeValue();\n }\n });\n }", "@Override\n\tpublic void delPhotos(Iterable<Photo> photos) {\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n String path = UploadImages.images.get(position);\n\n // Have to also delete from firebase storage\n ProgressDialog progressDialog = new ProgressDialog(context);\n progressDialog.setTitle(\"Deleting...Please wait\");\n progressDialog.show();\n\n storageReference.child(path)\n .delete()\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n progressDialog.dismiss();\n Toast.makeText(context, \"Deleted Successfully\", Toast.LENGTH_SHORT).show();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n }\n });\n UploadImages.images.remove(position);\n notifyItemRemoved(position);\n notifyItemRangeChanged(position, UploadImages.images.size());\n }", "public void deleteImage(Context context, String name) {\n ContextWrapper cw = new ContextWrapper(context);\n String name_ = AppConfig.RECIPE_BOOK_FOLDER_NAME; //Folder name in device android/data/\n File directory = cw.getDir(name_, Context.MODE_PRIVATE);\n try {\n File f = new File(directory, name + \".png\");\n if (f.exists()) {\n f.delete();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void deleteLogo(Long id){\n ER_User_Custom_Logo tcustomLogo = ER_User_Custom_Logo.findById(id);\n String customImgPath = Play.applicationPath.getAbsolutePath()+\"/public/images/custom/\";\n try\n {\n String l = tcustomLogo.logoName;\n String b = tcustomLogo.bannerName;\n File destination = new File(customImgPath, l);\n if(destination.exists())\n destination.delete();\n destination = new File(customImgPath, b);\n if(destination.exists())\n destination.delete();\n tcustomLogo.delete();\n flash.success(Messages.get(\"logo.delete.success\"));\n }catch ( Exception ex )\n {\n flash.error(Messages.get(\"logo.delete.error\"));\n Logger.error(ex,\"logo: %d\", id);\n }\n\n logosList(null,null,true);\n\n }", "@DELETE\n @Path(\"/delete/{id}\")\n @Consumes(\"application/json\")\n public Response deletePhotos(@PathParam(\"id\") int id){\n \tPhotosDAO dao = new PhotosDAO();\n int count = dao.deletePhoto(id);\n if(count==0){\n return Response.status(Response.Status.BAD_REQUEST).build();\n }\n return Response.ok(\"The delete was successful.No of rows updated are : \" + count).build();\n }", "public void removeImage(Image image) {\n\t\tFile file = new File(image.getByteOrpart());\n\n\tif(file.delete()){\n\t\t\tSystem.out.println(file.getName() + \" is deleted!\");\n\t}else{\n\t\t\tSystem.out.println(\"Delete operation is failed.\");\n\t\t}\n\t\t\n\t}", "void deletePhotos(Subscriber<BaseBean> subscriber, String id);", "@Transactional\n public void removeUserPhoto(String login) throws Exception {\n User user = userRepository.findByUsername(login);\n user.setPhoto(null);\n userRepository.save(user);\n logger.info(\"Removed photo user: {} {}\", user.getFirstName(), user.getLastName());\n }", "public static void removeImage(ContentResolver cr, int id) {\n cr.delete(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,\n MediaStore.Images.Media._ID + \" = ?\", new String[] { \"\" + id });\n }", "@RequestMapping(value = \"/images/{title}/delete\")\n public String deleteImage(@PathVariable String title, Model model) {\n // Finding the image based upon its title\n Image image = imageService.getByTitle(title);\n // deleting the image by its title\n imageService.deleteByTitle(image);\n\n // redirecting to home once the action is complete\n return \"redirect:/home\";\n }", "@Override\n public void onCanceled(EasyImage.ImageSource source, int type) {\n Log.d(TAG, \"Canceling taken photo\");\n if (source == EasyImage.ImageSource.CAMERA) {\n File photoFile = EasyImage.lastlyTakenButCanceledPhoto(getBaseContext());\n if (photoFile != null) {\n Boolean isDeleted = photoFile.delete();\n }\n }\n }", "public ImageObj delImage() {\n model.removeImageFromImageList(position);\n if (model.getImageList().size() != 0) {\n if (position == model.getImageList().size()) {\n position = 0;\n }\n return model.getImageList().get(position);\n }\n else {\n position = 0;\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n }", "public abstract void groupChatPhotoDeleteMessage(Message m);", "public boolean delPicture(PictureData pictureData) {\n\t\treturn false;\n\t}", "public boolean delPicture(PictureData pictureData) {\n\t\treturn false;\n\t}", "public void deleteMediaRelation(MediaRelation mediarelation);", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "void deleteFile(FileReference fileReferece);", "@RequestMapping(value = \"/offer/remove\")\n public String deleteOfferImage(@RequestParam(\"offerPhotoId\") int offerPhotoId, HttpServletRequest request) {\n OfferPhoto offerPhoto = offerService.getOfferPhoto(offerPhotoId);\n if(offerPhoto == null) {\n return \"redirect:/home?noValidAccessToRestaurant\";\n }\n\n //Checks if the user is allowed to access the offerPhoto. (security check, if the call parameter has been altered manually)\n Offer offer = hibernateService.initializeAndUnproxy(offerPhoto.getOffer());\n Restaurant restaurant = hibernateService.initializeAndUnproxy(offer.getRestaurant());\n if(!restaurantService.restaurantAssignedToSalesPerson(restaurant.getId())) {\n return \"redirect:/home?noValidAccessToRestaurant\";\n }\n\n if(request.getSession().getAttribute(\"offerId\") == null) {\n //The user used the forth and back buttons of the browser to navigate through to the page. Therefore no session attributes are set.\n return \"redirect:/home?doNotUseForthAndBackOfTheBrowserToNavigate\";\n }\n\n int offerId = (int) request.getSession().getAttribute(\"offerId\");\n offerService.deleteOfferPhoto(offerPhotoId);\n\n return \"redirect:/offer?id=\" + offerId;\n }", "int deleteByExample(UserAlbumExample example);", "void deleteLike(long mediaId);", "@Override\n\tpublic void delete(Pessoa arg0) {\n\t\t\n\t}", "public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.DeleteImageRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getDeleteMethod(), getCallOptions(), request);\n }", "public void delete( String name) throws PhileNotFoundException {\n\t\tif (!fileList.containsKey(name)) {\n\t\t\tthrow new PhileNotFoundException(\"File doesn't exist\");\n\t\t}\n\t\telse {\n\t\t\tPhile phile = fileList.get(name);\n\t\t\tfileList.remove(name);\n\t\t\ttotalNumberOfFiles--;\n\t\t\tif (openFiles.contains(phile)) {\n\t\t\t\topenFiles.remove(phile);\n\t\t\t\tnumberOfOpenFiles--;\n\t\t\t}\n\t\t}\n }", "void deleteAttachment(int id) throws NotAuthorizedException;", "private void onClickPhotoThumbnail(View view) {\r\n int photoId = (int) view.getTag(R.integer.tag_event_photo);\r\n EventPhoto photo = DatabaseManager.getInstance().getDatabase().eventPhotoDao().findById(photoId);\r\n\r\n if (!isEditingPhotos) {\r\n Intent intent = new Intent(this, ViewPhotoActivity.class);\r\n intent.putExtra(ViewPhotoActivity.EXTRA_PHOTO, photo.uri);\r\n startActivity(intent);\r\n return;\r\n }\r\n\r\n new ActionConfirmationFragment(this, this)\r\n .setTitle(getString(R.string.event_confirmation_delete_photo))\r\n .setMessage(getString(R.string.action_confirmation_cannot_be_undone))\r\n .setRequestID(REQUEST_CONFIRMATION_DELETE_PHOTO)\r\n .show(getSupportFragmentManager(), null);\r\n\r\n lastPressedPhoto = view;\r\n }", "@DELETE\n @Path(\"photoAlbumId: \\\\d+}\")\n public void deletePhotoAlbum(@PathParam(\"photoAlbumId\") Long photoAlbumId) {\n photoAlbumLogic.deletePhotoAlbum(photoAlbumId);\n }", "public void onClick(DialogInterface dialog, int which) {\n imgGalleryList.remove(position);\n galleryAdapter.notifyDataSetChanged();\n imgAddGalleryImage.setBackgroundColor(context.getResources().getColor(R.color.colorSkyBlue));\n Toast.makeText(context, \"Picture Deleted\", Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void delImgrep(int num) {\n\t\tdao.delete(num);\n\t}", "@Override\r\n\tpublic boolean delete(Pilote obj) {\r\n\t\tboolean succes=true;\r\n\t\tString req = \"delete from \" + TABLE + \" where numPil= ?\" + \";\";\r\n\t\tPreparedStatement pst;\r\n\t\ttry {\r\n\t\t\tpst = Connexion.getInstance().prepareStatement(req);\r\n\t\t\tpst.setInt(1, obj.getNumPil());\r\n\t\t\tpst.executeUpdate();\r\n\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tsucces=false;\r\n\t\t\tSystem.out.println(\"Echec de la tentative delete pilote : \" + e.getMessage()) ;\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn succes;\r\n\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tFile file = new File(picUrl);\n\t\t\t\tif (file.exists())\n\t\t\t\t\tfile.delete();\n\t\t\t\tToast.makeText(WallpaperManagerActivity.this, \"删。。删掉了,狗修金sama\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tadapter.getDataList().remove(position);\n\t\t\t\tadapter.notifyDataSetChanged();\n\n\t\t\t}", "public void deleteFile(IAttachment file)\n throws OculusException;", "public boolean deleteFile(String inKey) throws NuxeoException;", "private void deleteFile() {\r\n actionDelete(dataModelArrayList.get(position));\r\n }", "private void deleteButtonActionPerformed() {//GEN-FIRST:event_deleteButtonActionPerformed\r\n if (this.fileList.getSelectedIndex() >= 0) {\r\n this.controller.OnDeletePhoto(listFiles.get(fileList.getSelectedIndex()));\r\n } else {\r\n this.ShowErrorMessage(\"No file selected to delete\");\r\n }\r\n }", "int deleteSellMediaByPrimaryKey(Integer id) throws SQLException;", "public String deleteImage(String username, String imageName) {\r\n\t\tUser user = getUser(username);\r\n\t\tPoint p;\r\n\t\tString destinationPeerIP;\r\n\t\t\r\n\t\tp = StaticFunctions.hashToPoint(username, imageName);\r\n\t\tSystem.out.println(StaticFunctions.hashTester(username, imageName));\r\n\t\ttry {\r\n\t\t\tif(lookup(p)) {\r\n\t\t\t\t//deletes the files\r\n\t\t\t\tdeleteImageContainer(username, imageName);\r\n\t\t\t} else {\r\n\t\t\t\t//delete the files on remote Peer\r\n\t\t\t\tdestinationPeerIP = routing(p).getIp_adresse();\r\n\t\t\t\tnew PeerClient().deleteImage(destinationPeerIP, username, imageName);\r\n\t\t\t}\r\n\t\t\tuser.deleteFromImageList(imageName);\r\n\t\t\texportUserList();\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn \"Some errors have occured.\";\r\n\t\t}\r\n\t\treturn \"image has been deleted.\";\r\n\t}", "public boolean delete();", "private void actionDelete(final ImageDataModel modelData) {\r\n // Remove the item from Current List of GalleryHelperBaseOnId.class\r\n if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.LIST_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelper.imageDataModelList.remove(modelData);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewData.imageDataModelList.remove(modelData);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageDataModelList.remove(modelData);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageDataModelList.remove(modelData);\r\n }\r\n }\r\n\r\n if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.ALBUM_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelperBaseOnId.dataModelArrayList.remove(modelData);\r\n // Remove the item from Main List of GalleryHelper.class\r\n GalleryHelper.imageFolderMap.get(nameKey).remove(modelData);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n VideoViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n AudioViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n PhotoViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n }\r\n }\r\n\r\n\r\n final String message = String.format(getString(R.string.delete_success_message));\r\n try {\r\n // method to deleting the selected file\r\n FileUtils.deleteFile(modelData.getFile());\r\n FileUtils.deleteDirectory(modelData.getFile().getParentFile());\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n // method to scan the file and update its position\r\n FileUtils.scanFile(PhotoViewActivity.this, modelData.getFile());\r\n\r\n SDKUtils.showToast(PhotoViewActivity.this, message);\r\n // notify viewpager adapter\r\n notifyAdapter();\r\n if (CustomPagerAdapter != null)\r\n CustomPagerAdapter.itemCheckInList();\r\n }", "public void deleteCoffeeShopImage(CoffeeShopImage coffeeShopImage) {\n SQLiteDatabase db = this.getReadableDatabase();\n db.delete(CoffeeShopDatabase.CoffeeShopImageTable.TABLE_NAME, CoffeeShopDatabase.CoffeeShopImageTable._ID + \" = ? \",\n new String[]{String.valueOf(coffeeShopImage.get_id())});\n }", "@Override\n public void onDeleteImage(Path path, int offset) {\n onCommitDeleteImage(); // commit the previous deletion\n mDeletePath = path;\n mDeleteIsFocus = (offset == 0);\n mMediaSet.addDeletion(path, mCurrentIndex + offset);\n }", "public boolean delete(String filename);", "public void deleteFileByName(String nomFichier) throws IOException {\n\t\tif (nomFichier != null && !nomFichier.isEmpty()) {\n\t\t\tPath target = Paths.get(folder_photo + nomFichier);\n\t\t\tFiles.deleteIfExists(target);\n\t\t}\n\n\t}", "void delete(int metaTagId);", "public File delete(File f) throws FileDAOException;", "@Override\n\tpublic int deleteImgRoom(int room_id, String type_img) {\n\t\treturn roomDao.deleteImgRoom(room_id, type_img);\n\t}", "public static Task<Void> deleteTripPhoto(String tripId, String docId) {\n return FirebaseFirestore.getInstance()\n .collection(Const.TRIPS_COLLECTION)\n .document(tripId)\n .collection(Const.TRIP_PHOTO_PATHS_COLLECTION)\n .document(docId)\n .delete();\n }", "@GetMapping(\"pictures/delete/{id}\")\n\t\tpublic String deleteById(Model model, @PathVariable(name =\"id\") Long id) throws RecordNotFoundException{\n\t\t\tpictureService.deleteById(id);\n\t\t\tList<Picture> listPictures = pictureService.getAllPictures();\n\t\t\tmodel.addAttribute(\"listPictures\", listPictures);\n\t\t\treturn \"list-pictures\";\n\t\t}", "private void delete() {\n\n\t}", "@OnClick(R.id.cancelButton)\n public void deleteUpload() {\n callback.deleteUpload(contribution);\n }", "@Override\n public void onDeletePlantClick(int position) {\n Plants selectedItem = mPlants.get(position);\n String selectedKey = selectedItem.getKey();\n\n StorageReference imageRef = mStorage.getReferenceFromUrl(selectedItem.getImageUrl());\n imageRef.delete().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n mDatabaseRef.child(selectedKey).removeValue();\n Toast.makeText(GalleryActivity.this, \"Item successfully deleted\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(GalleryActivity.this, \"Failed to delete selected item\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public static boolean unlinkFotoItem(fotoBean foto, int idItem) {\n Connection connection = DAOFactory.getConnection();\n boolean res = false;\n try {\n Statement stmt = connection.createStatement();\n int i = stmt.executeUpdate(\n \"DELETE FROM mayandb.Link_Item_Foto WHERE id_item=\"\n + idItem\n + \" AND id_foto=\"\n + foto.getIdFoto()\n + \";\");\n if (i == 1) {\n res = true;\n }\n connection.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n return res;\n }", "public void deleteFileFromStorage(Upload details){\n\n\n StorageReference storageRef = FirebaseStorage.getInstance().getReferenceFromUrl(details.getUrl());\n\n // Delete the file\n storageRef.delete().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n\n // Delete content from database\n pd.setMessage(\"File Deleted ... \");\n Toast.makeText(AddNewNoticeActivity.this, \"Deleted File !!\", Toast.LENGTH_LONG).show();\n\n pd.dismiss();\n\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n pd.dismiss();\n Toast.makeText(AddNewNoticeActivity.this, \"Failed to Delete !!\" + exception, Toast.LENGTH_LONG).show();\n }\n });\n\n\n\n }", "public ImageFile removeImageFile(int f) { return imageFiles.remove(f); }", "public void removeImage() {\n setFileImage(null);\n getSelected().setUrlImage(null);\n RequestContext.getCurrentInstance().update(\"image\");\n }", "@Override\n\tpublic void delete(ThumbnailDTO dto) throws Exception {\n\t\tsession.selectOne(namespace+\".thumbnailDataDelete\",dto);\n\t}", "int deleteByPrimaryKey(Integer prefecturesId);", "@Override\n\tpublic Integer delModel(String tagID) throws BaseException {\n\t\treturn this.delete(\"Mapper.PhotoTag.deleteByID\", tagID);\n\t}", "@Override\n public void onCanceled(EasyImage.ImageSource source) {\n if (source == EasyImage.ImageSource.CAMERA) {\n File photoFile = EasyImage.lastlyTakenButCanceledPhoto(MainActivity.this);\n if (photoFile != null) photoFile.delete();\n }\n }" ]
[ "0.77725065", "0.7761986", "0.73286194", "0.73144567", "0.7113068", "0.70160633", "0.70053583", "0.6991127", "0.6988745", "0.6940863", "0.69206005", "0.68617386", "0.68321824", "0.67971927", "0.67888635", "0.67661035", "0.676269", "0.67534775", "0.6717682", "0.67110914", "0.66944295", "0.6691047", "0.6681601", "0.6670566", "0.6619441", "0.6598526", "0.6596218", "0.65763605", "0.6573616", "0.65674824", "0.65359527", "0.6515959", "0.65146273", "0.6510365", "0.6503948", "0.6478208", "0.6474871", "0.64734143", "0.6452985", "0.6443678", "0.64394975", "0.64270145", "0.64047027", "0.63955593", "0.6394554", "0.6381811", "0.6376563", "0.6374508", "0.63719344", "0.63677174", "0.6334642", "0.6334642", "0.63154316", "0.6315062", "0.6315062", "0.6315062", "0.6315062", "0.6315062", "0.6315062", "0.62933886", "0.62902284", "0.62640345", "0.625935", "0.6257426", "0.62537664", "0.62502015", "0.624734", "0.62396", "0.62279344", "0.62275636", "0.62261266", "0.62260777", "0.6225", "0.6221601", "0.621989", "0.6213135", "0.6212004", "0.6206349", "0.620513", "0.62041897", "0.6202264", "0.6197678", "0.61897343", "0.6183046", "0.61763656", "0.61588997", "0.6157271", "0.6149754", "0.6145205", "0.6140864", "0.612993", "0.6124842", "0.6123981", "0.6122777", "0.611085", "0.6109626", "0.61094385", "0.61065507", "0.6099442", "0.60911924", "0.60895073" ]
0.0
-1
Delete all the tags from this photo
public void deleteAllTags(boolean toResetName){ tags.clear(); setChanged(); notifyObservers(); clearChanged(); deleteObservers(); if (toResetName){ setName(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void deleteAllTag() {\n\t\tReaderDataBase.deleteAll(this);\n\t}", "void deleteUnusedTags();", "@Override\n\tpublic Integer delTagsByPhotoID(String photoID) throws BaseException {\n\t\treturn this.delete(\"Mapper.PhotoTag.deleteByphotoID\", photoID);\n\t}", "public void deleteTag(String t) {\n\t\tif (tagList.containsKey(t)) {\n\t\t\tif (tagList.get(t) == 0) {\n\t\t\t\ttagList.remove(t);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"There are images with this tag!\" + \"Please untag them before deleting tag.\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.print(\"Tag does not exist!\");\n\t\t}\n\t}", "public void delete() {\r\n if (this.selectedTag != null) {\r\n for (int i = uploads.size() -1; i >= 0 ; i--) {\r\n if (this.selectedTag.equals(uploads.get(i).getTag())) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepath());\r\n uploads.remove(i);\r\n break;\r\n }\r\n }\r\n }\r\n }", "@Override\n\tpublic void delPhotos(Iterable<Photo> photos) {\n\t\t\n\t}", "public void deleteTag(String tag) {\r\n\t\tint tags_pk = db.deleteTag(tag);\r\n\t\tdb.updateImagesTag(tags_pk, DEFAULT_TAG_PK);\r\n\t}", "public void removeAllImgTag(String img) {\n\t\tif (imgToTag.containsKey(img))\n\t\t\t// Check if image has tags to remove\n\t\t\tif (!imgToTag.get(img).isEmpty()) {\n\t\t\t\tHashSet<String> tagsToRemove = new HashSet<String>();\n\t\t\t\tfor (String tag : tagToImg.keySet()) {\n\t\t\t\t\t// Going to remove the image from each of the tags image map\n\t\t\t\t\tif (tagToImg.get(tag).contains(img))\n\t\t\t\t\t\ttagsToRemove.add(tag);\n\t\t\t\t}\n\t\t\t\t// Remove them\n\t\t\t\tfor (String tag : tagsToRemove)\n\t\t\t\t\tremoveTag(img, tag);\n\t\t\t}\n\t}", "private void removeTagAndContent(ArrayList p_tags, HtmlObjects.Tag p_tag)\n {\n int i_start = 0;\n int i_end = 0;\n\n loop: for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o == p_tag)\n {\n i_start = i;\n\n for (int j = i + 1; j < max; j++)\n {\n Object o1 = p_tags.get(j);\n\n if (o1 instanceof HtmlObjects.EndTag)\n {\n HtmlObjects.EndTag etag = (HtmlObjects.EndTag) o1;\n\n if (p_tag.tag.equalsIgnoreCase(etag.tag)\n && p_tag.partnerId == etag.partnerId)\n {\n i_end = j;\n break loop;\n }\n }\n }\n }\n }\n\n if (i_start >= 0 && i_end > i_start)\n {\n p_tags.subList(i_start, i_end + 1).clear();\n }\n }", "@Override\r\n\tpublic void deleteTag(String photoId, String tagType, String tagValue) {\n\t\tList<IAlbum> albums=model.getUser(userId).getAlbums();\r\n\t\t/*only for single*/\r\n\t\t/*List<IAlbum> albums=model.getUser(userId).getAlbums();\r\n\t\tIPhoto editMe=null;\r\n\t\tIAlbum temp= photoListGui.getCurrentAlbum();\r\n\t\tList<IPhoto> photoList=temp.getPhotoList();\r\n\t\tInteractiveControl.PhotoCompareForNames comparePower2=new InteractiveControl.PhotoCompareForNames();\r\n\t\tCollections.sort(photoList, comparePower2);\r\n\t\tint index=Collections.binarySearch(photoList, photoId);\r\n\t\t\tif(index>=0){\r\n\t\t\t\teditMe=photoList.get(index);\r\n\t\t\t\tswitch(tagType){\r\n\t\t\t\tcase\"location\":\r\n\t\t\t\tif(editMe.getLocationTag().isEmpty()||editMe.getLocationTag()==null){\r\n\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\">:\"+tagValue+\"\";\r\n\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\tshowError();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tString tempz=editMe.getLocationTag();\r\n\t\t\t\t\tif(tempz.equals(tagValue)){\r\n\t\t\t\t\teditMe.setLocationTag(\"\");\r\n\t\t\t\t\tString success=\"Deleted tag:\\n\"+photoId+\" \"+tagType+\":\"+tempz+\"\";\r\n\t\t\t\t\tsetErrorMessage(success);\r\n\t\t\t\t\tshowError();\r\n\t\t\t\t\tphotoListGui.setLocationTagBackToNull();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\treturn;\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\tcase\"person\":\r\n\t\t\t\t\t\r\n\t\t\t\tif((editMe.getPeopleTags().isEmpty())|| (!editMe.getPeopleTags().contains(tagValue))){\r\n\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\tshowError();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tif(editMe.removePersonTag(tagValue)){\r\n\t\t\t\t\tString success=\"Deleted tag:\\n\"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\tsetErrorMessage(success);\r\n\t\t\t\t\tshowError();\r\n\t\t\t\t\tphotoListGui.updateTagList();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tString error=\"Error <Tag value doesn't exist>\";\r\n\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\tshowError();\r\n\t\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t}*/\r\n\t\t/*for all*/\r\n\t\tIPhoto editMe=null;\r\n\t\touterLoop:\r\n\t\tfor (int i=0; i<model.getUser(userId).getAlbums().size(); i++){\r\n\t\t\tIAlbum temp= albums.get(i);\r\n\t\t\tList<IPhoto> photoList=temp.getPhotoList();\r\n\t\t\tInteractiveControl.PhotoCompareForNames comparePower2=new InteractiveControl.PhotoCompareForNames();\r\n\t\t\tCollections.sort(photoList, comparePower2);\r\n\t\t\tint index=Collections.binarySearch(photoList, photoId);\r\n\t\t\t\tif(index>=0){\r\n\t\t\t\t\teditMe=photoList.get(index);\r\n\t\t\t\t\tswitch(tagType){\r\n\t\t\t\t\tcase\"location\":\r\n\t\t\t\t\tif(editMe.getLocationTag().isEmpty()||editMe.getLocationTag()==null){\r\n\t\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\">:\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tString tempz=editMe.getLocationTag();\r\n\t\t\t\t\t\tif(tempz.equals(tagValue)){\r\n\t\t\t\t\t\teditMe.setLocationTag(\"\");\r\n\t\t\t\t\t\tString success=\"Deleted tag:\\n\"+photoId+\" \"+tagType+\":\"+tempz+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(success);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\tphotoListGui.setLocationTagBackToNull();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase\"person\":\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif((editMe.getPeopleTags().isEmpty())|| (!editMe.getPeopleTags().contains(tagValue))){\r\n\t\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tif(editMe.removePersonTag(tagValue)){\r\n\t\t\t\t\t\tString success=\"Deleted tag:\\n\"+photoId+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\tsetErrorMessage(success);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\tphotoListGui.updateTagList();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tString error=\"Tag does not exist for \"+editMe.getFileName()+\" \"+tagType+\":\"+tagValue+\"\";\r\n\t\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tString error=\"Error <Tag value doesn't exist>\";\r\n\t\t\t\t\t\tsetErrorMessage(error);\r\n\t\t\t\t\t\tshowError();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(editMe==null){\r\n\t\t\tString error=\"Photo \"+photoId+\" does not exist\";\r\n\t\t\tsetErrorMessage(error);\r\n\t\t\tshowError();\t\r\n\t\t\treturn;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t}", "public void deleteTag(String tag_name) {\n\n\t\t//\n\t\t// first get the tag id\n\t\t//\n\t\tlong tag_id = getTagId(tag_name);\n\t\tif (tag_id < 0) {\n\t\t\t//\n\t\t\t// invalid tag\n\t\t\t//\n\t\t\treturn;\n\t\t}\n\n\t\t//\n\t\t// now query all associated files\n\t\t//\n\t\tCursor cursor = m_db.query(MAP_TABLE_NAME,\n\t\t\t\tnew String[] { MAP_FIELD_FILE }, MAP_FIELD_TAG + \" =?\",\n\t\t\t\tnew String[] { Long.toString(tag_id) }, null, null, null);\n\n\t\t//\n\t\t// are there any files associated?\n\t\t//\n\t\tif (cursor.moveToFirst() == false) {\n\t\t\t//\n\t\t\t// no files associated\n\t\t\t//\n\t\t\tLogger.i(\"Error: tag \" + tag_name\n\t\t\t\t\t+ \" has no associated files tag id:\" + tag_id);\n\t\t\tcursor.close();\n\t\t\treturn;\n\t\t}\n\n\t\tdo {\n\t\t\t//\n\t\t\t// get file id\n\t\t\t//\n\t\t\tlong file_id = cursor.getLong(0);\n\n\t\t\tString raw_query = \"SELECT COUNT(*) FROM \" + MAP_TABLE_NAME\n\t\t\t\t\t+ \" WHERE \" + MAP_FIELD_FILE + \"= ? \";\n\t\t\tCursor raw_cursor = m_db.rawQuery(raw_query,\n\t\t\t\t\tnew String[] { Long.toString(file_id) });\n\n\t\t\tif (raw_cursor.moveToFirst() == false) {\n\t\t\t\t//\n\t\t\t\t// no entries -> bug\n\t\t\t\t//\n\t\t\t\traw_cursor.close();\n\t\t\t\tLogger.e(\"deleteTag: bug bug\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//\n\t\t\t// get number of tags associated to this file\n\t\t\t//\n\t\t\tint tags_associated = raw_cursor.getInt(0);\n\n\t\t\tif (tags_associated == 1) {\n\t\t\t\t//\n\t\t\t\t// the file has only one tag associated -> the tag which is\n\t\t\t\t// deleted\n\t\t\t\t// remove the file from the store\n\t\t\t\t//\n\t\t\t\tm_db.delete(FILE_TABLE_NAME, FILE_FIELD_ID + \"=?\",\n\t\t\t\t\t\tnew String[] { Long.toString(file_id) });\n\t\t\t\tLogger.i(\"Removed file id: \" + file_id + \" from store\");\n\t\t\t}\n\n\t\t\t//\n\t\t\t// close cursor\n\t\t\t//\n\t\t\traw_cursor.close();\n\n\t\t} while (cursor.moveToNext());\n\n\t\t//\n\t\t// close the cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// now remove all entries from the mapping table\n\t\t//\n\t\tm_db.delete(MAP_TABLE_NAME, MAP_FIELD_TAG + \"=?\",\n\t\t\t\tnew String[] { Long.toString(tag_id) });\n\t\t//\n\t\t// now remove the tag from tag table\n\t\t//\n\t\tm_db.delete(TAG_TABLE_NAME, TAG_FIELD_ID + \"=?\",\n\t\t\t\tnew String[] { Long.toString(tag_id) });\n\t}", "void unsetTag();", "public void deleteByPrimaryKey(Long tagId) {\n }", "void removeTag(String tag){tags.remove(tag);}", "@Override\n\tpublic int delete(Tags tag) {\n\t\tentityMgr.remove(tag);\n\t\treturn 0;\n\t}", "public void deleteTag( String albumName, String tagName ) {\n \n for (PhotoAlbum item : contents) {\n if ( item.getName().equals(albumName) ) {\n item.deleteTag(tagName);\n return;\n }\n }\n }", "void delete(int metaTagId);", "public void clearTagArray(){\n\t\t\n\t\ttagArray.clear();\n\t\t\n\t}", "private void deletePressedPhoto() {\r\n if (lastPressedPhoto == null)\r\n return;\r\n\r\n int photoId = (int) lastPressedPhoto.getTag(R.integer.tag_event_photo);\r\n\r\n LinearLayout layoutPhotos = findViewById(R.id.layoutPhotos);\r\n layoutPhotos.removeView(lastPressedPhoto);\r\n\r\n EventPhoto photo = DatabaseManager.getInstance().getDatabase().eventPhotoDao().findById(photoId);\r\n DatabaseManager.getInstance().getDatabase().eventPhotoDao().deleteById(photo.uid);\r\n showToast(getString(R.string.event_photo_removed), Toast.LENGTH_SHORT);\r\n disablePhotoEditing();\r\n }", "void deleteTagDirectory() {\n\n try {\n\n Log.i(\"Deleting Tag Directory\", tag_directory.toString());\n FileUtils.deleteDirectory(tag_directory);\n } catch (IOException e) {\n\n }\n\n }", "public void deleteTag(Tag tag) {\n if ((!this.tags.isEmpty()) && this.tags.get(tags.size() - 1).contains(tag)) {\n String path = getPath();\n ArrayList<Tag> clone = (ArrayList<Tag>) this.tags.get(this.tags.size() - 1).clone();\n clone.remove(tag);\n this.tags.add(clone);\n renameTo(getName(), path);\n }\n }", "public void deleteAssociationsForTag(int tagId) {\n String sql = \"DELETE FROM tag_bookmark WHERE tagId=?\";\n\n try (Connection conn = getConnection()) {\n PreparedStatement stmt = conn.prepareStatement(sql);\n stmt.setObject(1, tagId);\n stmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void deleteTag(Tag t) {\n\t\tDAO.getInstance().deleteTag(t);\n\t}", "public void deleteTag(Tag tag){\r\n\t\tString tagName = tag.getName();\r\n\t\tif (tags.containsKey(tagName)){\r\n\t\t\ttags.remove(tagName);\r\n\t\t\tsetName();\r\n\t\t\tdeleteObserver(tag);\r\n\t\t}\r\n\t}", "private void removeDelRevisions(ArrayList p_tags)\n {\n boolean b_changed = true;\n\n deltags: while (b_changed)\n {\n for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.Tag)\n {\n HtmlObjects.Tag tag = (HtmlObjects.Tag) o;\n String original = tag.original;\n\n if (tag.tag.equalsIgnoreCase(\"span\")\n && original.indexOf(\"class=msoDel\") >= 0)\n {\n removeTagAndContent(p_tags, tag);\n\n continue deltags;\n }\n }\n }\n\n b_changed = false;\n }\n }", "public void clearFields() {\n tags.clear();\n tagText.setText(\"\");\n ((ImageView)findViewById(R.id.picture)).setImageResource(android.R.color.transparent);\n }", "public void deleteInterest(TXSemanticTag i);", "public void deleteAllFromDB() {\r\n for (int i = 0; i < uploads.size(); i++) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepath());\r\n }\r\n super.getBasebo().remove(uploads);\r\n }", "private void deleteTag(DBHelper db, long id){\n\n db.deleteByID(DBMap.TagTable.table,id);\n\n\n db.deleteTagRelations(id);\n\n }", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "private void removeInsTag(ArrayList p_tags, HtmlObjects.Tag p_tag)\n {\n int i_start = 0;\n int i_end = 0;\n\n loop: for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o == p_tag)\n {\n i_start = i;\n\n for (int j = i + 1; j < max; j++)\n {\n Object o1 = p_tags.get(j);\n\n if (o1 instanceof HtmlObjects.EndTag)\n {\n HtmlObjects.EndTag etag = (HtmlObjects.EndTag) o1;\n\n if (p_tag.tag.equalsIgnoreCase(etag.tag)\n && p_tag.partnerId == etag.partnerId)\n {\n i_end = j;\n break loop;\n }\n }\n }\n }\n }\n\n if (i_start >= 0 && i_end > i_start)\n {\n p_tags.subList(i_end - 1, i_end + 1).clear();\n p_tags.subList(i_start, i_start + 2).clear();\n }\n }", "public void delete() {\n\t\tclose();\n\t\t// delete the files of the container\n\t\tfor (int i=0; i<BlockFileContainer.getNumberOfFiles(); i++)\n\t\t\tfso.deleteFile(prefix+EXTENSIONS[i]);\n\t}", "public Canary clearTagsEntries() {\n this.tags = null;\n return this;\n }", "public void deleteAll();", "public void deleteAll();", "public void deleteAll();", "@SuppressWarnings(\"unchecked\")\r\n\tprivate static void deleteTagInstances(PersistenceManager pm, Key k) {\r\n\t\tfinal Query q = pm.newQuery(Dish.class);\r\n\t\tq.setFilter(\"tags.contains(:tagKey)\");\r\n\t\tfinal List<Dish> dishes = (List<Dish>) q.execute(k);\r\n\r\n\t\tfor (Dish d : dishes) {\r\n\t\t\td.removeTag(k);\r\n\t\t\tpm.makePersistent(d);\r\n\t\t}\r\n\t}", "public void deleteAll(){\n editor.clear();\n editor.apply();\n }", "public void clearEntityTagsForSelectedEntities() {\n getRTParent().clearEntityTagsForSelectedEntities();\n }", "private void deleteAllPets() {\n// int rowsDeleted = getContentResolver().delete(ArtistsContracts.GenderEntry.CONTENT_URI, null, null);\n// Log.v(\"CatalogActivity\", rowsDeleted + \" rows deleted from pet database\");\n }", "public void clearLinkRemovalTags() {\n\tfor (Link l : allLinks)\n\t l.clearRemovalTag();\n }", "public void deleteTag(ActionEvent event) {\n\t\tObservableList<Tag> list;\n\t\tlist = TagListDisplay.getSelectionModel().getSelectedItems();\n\t\t\n\t\tif(list.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Tag Selected\");\n\t\t\talert.setContentText(\"No tag selected. Delete Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\tAlert alert2 = new Alert(AlertType.CONFIRMATION);\n\t\talert2.setTitle(\"Confirmation Dialog\");\n\t\talert2.setHeaderText(\"Confirm Action\");\n\t\talert2.setContentText(\"Are you sure?\");\n\t\tOptional<ButtonType> result = alert2.showAndWait();\n\t\t\n\t\tif(result.get() == ButtonType.OK) {\n\t\t\tTag tag = (Tag) TagListDisplay.getSelectionModel().getSelectedItem();\n\t\t\t\n\t\t\tImageView img = (ImageView) PhotoListDisplay.getSelectionModel().getSelectedItem();\n\t\t\tPhoto p = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getPhotoFromImage(img);\n\t\t\tArrayList<Tag> listTags = p.getTags();\n\t\t\t\n\t\t\tlistTags.remove(tag);\n\t\t\t\n\t\t\ttagObsList = FXCollections.observableList(listTags);\n\t\t\tTagListDisplay.setItems(tagObsList);\n\t\t}else {\n\t\t\treturn;\n\t\t}\n\t\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t/*\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t*/\n\t}", "public void deleteAll() {\n repository.deleteAll();\n }", "private void clearHasTag() {\n \n hasTag_ = 0;\n }", "public abstract void removeAllAttachments();", "int deleteByPrimaryKey(Long tagid);", "java.util.concurrent.Future<DeleteTagsResult> deleteTagsAsync(DeleteTagsRequest deleteTagsRequest);", "@Override\n\tpublic void deleteAll() {\n\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "public void deleteAllPeople() {\n }", "@Override\r\n\tpublic void deleteAll() {\n\r\n\t}", "public void deleteAll();", "public void removeAllMetadata() {\n\t\tthis.metadata.clear();\n\t}", "@Override\n\tpublic boolean deleteTag(TagInfo tInfo) {\n\t\treturn false;\n\t}", "public void deleteTags(String spid, List<Tag> tagList) throws EVDBRuntimeException, EVDBAPIException {\n\t\t\n\t\tsuper.modifyTags(PERFORMERS_TAGS_DELETE, spid, tagList);\n\t}", "public void deleteAll() {\n\t\t\n\t}", "private void removeClosingTag(ArrayList p_tags, HtmlObjects.Tag p_tag)\n {\n for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.EndTag)\n {\n HtmlObjects.EndTag etag = (HtmlObjects.EndTag) o;\n\n if (p_tag.tag.equalsIgnoreCase(etag.tag)\n && p_tag.partnerId == etag.partnerId)\n {\n p_tags.remove(i);\n return;\n }\n }\n }\n }", "public void deleteAll() {\n\t\ttry{\t\n\t\t\tbanco.delete(meuBancoHelper.TABELA_MTAG,null,null);\n\t\t\t}\n\t\t\tcatch(NullPointerException e)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t}", "public void deleteAll() {\n\n\t}", "boolean delete(final Tag tag);", "void deleteAll();", "void deleteAll();", "void deleteAll();", "@Override\n\tpublic Integer delModel(String tagID) throws BaseException {\n\t\treturn this.delete(\"Mapper.PhotoTag.deleteByID\", tagID);\n\t}", "public Dataset clearTagsEntries() {\n this.tags = null;\n return this;\n }", "public void deleteAll()\n\t{\n\t}", "public void deleteAll()\n\t{\n\t}", "public void deleteAllArticles();", "private void deleteAllBooks() {\n int booksDeleted = getContentResolver().delete(BookEntry.CONTENT_URI, null, null);\n Log.v(\"MainActivity\", booksDeleted + getString(R.string.all_deleted));\n }", "public void deletePhoto(ActionEvent event) {\n\t\tObservableList<ImageView> pho;\n\t\tpho = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\t\n\t\t//System.out.println(\"before deletion: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\n\t\tif(pho.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Photo Selected\");\n\t\t\talert.setContentText(\"No photo selected. Delete Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(ImageView p: pho) {\n\t\t\t//delUsername.setText(name.getUsername());\n\t\t\t//this is a confirmation\n\t\t\tAlert alert2 = new Alert(AlertType.CONFIRMATION);\n\t\t\talert2.setTitle(\"Confirmation Dialog\");\n\t\t\talert2.setHeaderText(\"Confirm Action\");\n\t\t\talert2.setContentText(\"Are you sure?\");\n\t\t\tOptional<ButtonType> result = alert2.showAndWait();\n\t\t\t\n\t\t\tif(result.get() == ButtonType.OK) {\n\t\t\t\t//removed it from observable list\n\t\t\t\tlistOfPhotos.remove(p);\n\t\t\t\tdisplayedPhoto.remove(0);\n\t\t\t\t\n\t\t\t\t//removing photo from the master list\n\t\t\t\tPhoto getPhoto = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getPhotoFromImage(p);\n\t\t\t\t//System.out.println(\"Path to this image is: \" + getPhoto.getPathToPhoto());\n\t\t\t\tAccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum().remove(getPhoto);\n\t\t\t\t\n\t\t\t\t//System.out.println(\"removing album\");\n\t\t\t\tdisplayedPhoto.clear();\n\t\t\t\tdisplayedPhoto = FXCollections.observableArrayList();\n\t\t\t\tDisplayedImage.setItems(displayedPhoto);\n\t\t\t\t\n\t\t\t\tPhotoCaptionDisplay.setText(\"\");\n\t\t\t\tOldCaptionText.setText(\"\");\n\t\t\t\t\n\t\t\t\tArrayList<Tag> list = new ArrayList<Tag>();\n\t\t\t\ttagObsList = FXCollections.observableList(list);\n\t\t\t\tTagListDisplay.setItems(tagObsList);\n\t\t\t\t\n\t\t\t\t//System.out.println(\"after: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//*******************CHECK FOR BUG HERE, (deleting newly added user creates zombie photos\n\t\t\t\t//System.out.println(\"1: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\t\t//System.out.println(\"2: \" + listOfPhotos);\n\t\t\t\t//System.out.println(\"3: \" + displayedPhoto);\n\t\t\t}else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\trefreshPhotos();\n\t\t\n\t\t//Note: MUST SERIALIZE AFTER DELETING (also after adding)\n\t\t\n\t\t//updates permanent list(Serialized List) of users\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public com.babbler.ws.io.avro.model.BabbleValue.Builder clearTags() {\n tags = null;\n fieldSetFlags()[4] = false;\n return this;\n }", "public void removeTag(String img, String tag) {\n\t\t// Check if the image and tag exist in the data structures\n\t\tif (imgToTag.containsKey(img) && tagToImg.containsKey(tag)) {\n\t\t\t// If they exist as a pair (i.e are mapped together) we should\n\t\t\t// remove them\n\t\t\tif (tagToImg.get(tag).contains(img)) {\n\t\t\t\ttagToImg.get(tag).remove(img);\n\t\t\t\timgToTag.get(img).remove(tag);\n\t\t\t}\n\t\t}\n\t\t// If no more images has the tag, remove tag from available list\n\t\tif (tagToImg.containsKey(tag))\n\t\t\tif (tagToImg.get(tag).size() == 0)\n\t\t\t\ttagToImg.remove(tag);\n\t}", "public void deleteAll(){\r\n\t\thead = null;\r\n\t}", "private void cleanTempImages(String[] images) {\n for (int i = 1; i < images.length; i++) {\n File f = new File(images[i]);\n f.deleteOnExit();\n }\n }", "public Proposal clearTagsEntries() {\n this.tags = null;\n return this;\n }", "public void removeAllAttachedPicture() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ATTACHEDPICTURE);\r\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}", "void clearAssociations();", "@DeleteMapping(\"/posts/picture/{pictureId}\")\n void removePostsByPic(@PathVariable Long pictureId);", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "public void unsetTag(String tagName);", "public void deleteAllArtisti() throws RecordCorrelatoException;", "@Transactional\r\n\tpublic void deleteAllBlogs() {\n\t\tsessionFactory.getCurrentSession().delete(getClass());\r\n\t}", "@Transactional\n\t@Override\n\tpublic void deleteAll() {\n\t\tanchorKeywordsDAO.deleteAll();\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }", "public void deletePhotoForMovePhoto(ActionEvent event) {\n\t\tObservableList<ImageView> pho;\n\t\tpho = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\t\n\t\t//System.out.println(\"before deletion: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\n\t\tif(pho.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Photo Selected\");\n\t\t\talert.setContentText(\"No photo selected. Delete Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(ImageView p: pho) {\n\t\t\t//delUsername.setText(name.getUsername());\n\t\t\t//this is a confirmation\n\t\t\t\n\t\t\t//removed it from observable list\n\t\t\tlistOfPhotos.remove(p);\n\t\t\tdisplayedPhoto.remove(0);\n\t\t\t\n\t\t\t//removing photo from the master list\n\t\t\tPhoto getPhoto = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getPhotoFromImage(p);\n\t\t\t//System.out.println(\"Path to this image is: \" + getPhoto.getPathToPhoto());\n\t\t\tAccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum().remove(getPhoto);\n\t\t\t\n\t\t\t//System.out.println(\"removing album\");\n\t\t\tdisplayedPhoto.clear();\n\t\t\tdisplayedPhoto = FXCollections.observableArrayList();\n\t\t\tDisplayedImage.setItems(displayedPhoto);\n\t\t\t\n\t\t\tPhotoCaptionDisplay.setText(\"\");\n\t\t\tOldCaptionText.setText(\"\");\n\t\t\t\n\t\t\tArrayList<Tag> list = new ArrayList<Tag>();\n\t\t\ttagObsList = FXCollections.observableList(list);\n\t\t\tTagListDisplay.setItems(tagObsList);\n\t\t\t\n\t\t\t//System.out.println(\"after: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\t\n\t\t\t\n\t\t\t//*******************CHECK FOR BUG HERE, (deleting newly added user creates zombie photos\n\t\t\t//System.out.println(\"1: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\t//System.out.println(\"2: \" + listOfPhotos);\n\t\t\t//System.out.println(\"3: \" + displayedPhoto);\n\t\t\t\n\t\t}\n\t\t\n\t\trefreshPhotos();\n\t\t\n\t\t//Note: MUST SERIALIZE AFTER DELETING (also after adding)\n\t\t\n\t\t//updates permanent list(Serialized List) of users\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public void deleteUpsos() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_UPSO, null, null);\n db.close();\n\n Log.d(TAG, \"Deleted all upso info from sqlite\");\n }" ]
[ "0.76077586", "0.7177209", "0.6816392", "0.6796679", "0.67933106", "0.67306966", "0.65890086", "0.65683204", "0.6562814", "0.6464321", "0.646099", "0.64208204", "0.63899875", "0.6323349", "0.6322889", "0.6293174", "0.6264993", "0.61833894", "0.61768335", "0.61605537", "0.6157735", "0.61362433", "0.6094626", "0.60789436", "0.6037069", "0.60294497", "0.6028102", "0.6021294", "0.6019814", "0.5993708", "0.5993708", "0.5993708", "0.5993708", "0.59657264", "0.5930208", "0.5919272", "0.591295", "0.591295", "0.591295", "0.590897", "0.5879361", "0.58716106", "0.58713853", "0.5857434", "0.58560133", "0.585505", "0.5849985", "0.58489835", "0.58432454", "0.5836766", "0.5830057", "0.5830057", "0.5830057", "0.5824328", "0.5824328", "0.5824328", "0.5824328", "0.5824328", "0.5824328", "0.5824328", "0.5824328", "0.58194244", "0.58167094", "0.5801975", "0.5790542", "0.5783447", "0.578068", "0.57771164", "0.57641685", "0.5760134", "0.57468617", "0.5738839", "0.573881", "0.573881", "0.573881", "0.5729777", "0.57088447", "0.5702406", "0.5702406", "0.5693247", "0.5691662", "0.5684631", "0.56733674", "0.5658251", "0.5645596", "0.5632536", "0.5627337", "0.56041145", "0.55950737", "0.55902", "0.5576509", "0.55764", "0.5567087", "0.55660665", "0.5563849", "0.5550557", "0.55486774", "0.554032", "0.55380094", "0.5537746" ]
0.6533592
9
Update the photos log with the new name of the photo, the previous name of the photo and the time at which the name was changed
public void updateLog(String newName){ String timeStamp = new SimpleDateFormat("yyyy/MM/dd HH:mm.ss").format(new java.util.Date()); logger.log(Level.SEVERE,"Previous name:{0}, New Name: {1}, Date: {2}", new Object[] {name, newName,timeStamp}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeLog(String oldName, ArrayList<String> changesLog) throws IOException {\n String logs = String.join(\"\\n \", changesLog);\n FileHandler handler = new FileHandler(\"PhotoRenaming.log\", true);\n SimpleFormatter formatterTxt = new SimpleFormatter();\n handler.setFormatter(formatterTxt);\n LOGGER.addHandler(handler);\n if (oldName.equals(\"\")) {\n LOGGER.info(\n \"\\n File Path: \"\n + photo.getUrl()\n + \"\\n \"\n + \" Rename failed.\\n \"\n + logs\n + \"\\n\");\n } else {\n LOGGER.info(\n \"\\nFile Path:\"\n + photo.getUrl()\n + \"\\n Rename: \"\n + oldName\n + \" -> \"\n + photo.getTagName()\n + \"\\n \"\n + logs\n + \"\\n\");\n }\n handler.close();\n }", "public String rename() throws IOException {\n StringBuilder newName = new StringBuilder();\n for (String tag : photo.getTags().getCurrentTags()) {\n newName.append(\"@\").append(tag).append(\" \");\n }\n String oldName = photo.getTagName();\n\n if (photo.getTags().getCurrentTags().size() != 0) {\n photo.setTagName(photo.getName() + \" \" + newName.toString().trim());\n } else {\n photo.setTagName(photo.getName());\n }\n Path old = Paths.get(photo.getUrl());\n Files.move(old, old.resolveSibling(photo.getTagName() + photo.getExtension()));\n photo.setUrl(old.resolveSibling(photo.getTagName() + photo.getExtension()).toString());\n return oldName;\n }", "public void uploadPhotoProfile(FileEntryEvent ev){\n\tArrayList<Photo> listePhotos=new ArrayList<Photo>();\r\n\tlistePhotos=mbb.getMembre().getListePhotos();\r\n\tint idPhotoProfile=0;\r\n\t\r\n\tfor(Photo photo : listePhotos)\r\n\t{\r\n\t\tif(photo.getIsProfil())\r\n\t\t\tidPhotoProfile=photo.getId();\r\n\t}\r\n\t\r\n\tint photoProfileSupprime=PhotoManager.deletePhoto(idPhotoProfile);\r\n\tSystem.out.println(photoProfileSupprime);\r\n\tif(photoProfileSupprime>0)\r\n\t{\r\n\t\t\r\n\t//mettre la main sur le fileEntry\r\n\tFileEntry fiE = (FileEntry)ev.getSource();\r\n\t//récupérer ses results\r\n\tFileEntryResults fr = fiE.getResults();\r\n\t\r\n\t// Create an instance of SimpleDateFormat used for formatting \r\n\t\t\t// the string representation of date (month/day/year)\r\n\t\t\tDateFormat df = new SimpleDateFormat(\"ddMMyyyyHHmmss\");\r\n\r\n\t\t\t// Get the date today using Calendar object.\r\n\t\t\tDate today = Calendar.getInstance().getTime(); \r\n\t\t\t// Using DateFormat format method we can create a string \r\n\t\t\t// representation of a date with the defined format.\r\n\t\t\tString reportDate = df.format(today);\r\n\t\t\t\r\n\t\r\n\t//boucler sur les FileInfo\r\n\tfor(FileEntryResults.FileInfo fi: fr.getFiles()){\r\n\t\t//s'assurer que le fichier est enregistrer\r\n\t\tif(fi.isSaved()){\r\n\t\t\tSystem.out.println(\"le nom ========= \"+reportDate+fi.getFileName());\r\n\t\t\t//recu le fichier\r\n\t\t\tFile f = fi.getFile();\r\n\t\t\t\r\n\t\t\t//TODO verifier que c'est le bon type de fichier\r\n\t\t\t//renommer\r\n\t\t\ttry {\r\n\t\t\t\tString cheminApp=FacesContext.getCurrentInstance().getExternalContext().getRealPath(\"/\");\r\n\t\t\t\tString newch=cheminApp;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tboolean ren=f.renameTo(new File(newch+\"photos/\"+reportDate+fi.getFileName()));\r\n\t\t\t\t\r\n\t\t\t\tif (ren) {\r\n\t\t\t\t\tthis.chemin=\"photos/\"+reportDate+fi.getFileName();\r\n\t\t\t\t\tSystem.out.println(newch);\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"pas possible. \"+newch);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\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//ajouter un message \r\n\t\t\tFacesContext.getCurrentInstance().addMessage(fiE.getClientId(),new FacesMessage(\"le fichier a été uploadé\"));\r\n\t\t\r\n\t\t\tPhoto photo= new Photo();\r\n\t\t\tphoto.setMemberID(mbb.getMembre().getMembreId());\r\n\t\t\tphoto.setChemin(chemin);\r\n\t\t\tphoto.setIsProfil(true);\r\n\r\n\t\t\tint ajoute=PhotoManager.addPhoto(photo);\r\n\t\t\tSystem.out.println(\"photo profile ajoute\");\r\n\t\t\tif(ajoute>0){\r\n\t\t\t\tmbb.getMembre().setListePhotos(PhotoManager.getPhotosByMemberId(mbb.getMembre().getMembreId()));//maj liste photos\r\n\t\t\t\tArrayList<Photo> photos=new ArrayList<Photo>();\r\n\t\t\t\tphotos=PhotoManager.getProfilPhotosByMemberId(mbb.getMembre().getMembreId());\r\n\t\t\t\tmbb.getMembre().setProfilImagePath(photos.get(0).getChemin()); //maj chemin photo profil\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}\t\r\n\t}", "private void setName(){\r\n\t\tString tagString = new String();\r\n\t\tfor (String k : tags.keySet()){\r\n\t\t\ttagString += \"@\" + k;\r\n\t\t}\r\n\t\tString newName = originalName + tagString +\".\"+ extension;\r\n\t\tif (!newName.equals(name)){\r\n\t\t\tremovePrevNames(newName); //if the new name is a previous name\r\n\t\t\taddPrevNames(name);\r\n\t\t\tupdateLog(newName);\r\n\t\t\tname = newName;\r\n\t\t\t//notify the tag observer\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers();\r\n\t\t\tclearChanged();\r\n\t\t}\r\n\t}", "protected static ImageFile rename(ImageFile img, ArrayList<Tag> listOfTags) throws IOException\n {\n Log.allImages.remove(img);\n String oldName = img.getName();\n // build new path\n String newPath;\n String oldPath;\n oldPath = img.getPath();\n String newTags = \"\";\n for (Tag tag: listOfTags)\n {\n newTags += \" @\" + tag;\n }\n if (img.getTagList().isEmpty())\n {\n newPath = oldPath.substring(0, oldPath.indexOf(\".\")) + newTags + oldPath.substring(oldPath.indexOf(\".\"));\n }\n else\n {\n newPath = oldPath.substring(0, oldPath.lastIndexOf(\"/\")+1) +\n img.nameHistory.get(0).substring(0, img.nameHistory.get(0).indexOf(\".\")) + newTags + oldPath.substring(oldPath.indexOf(\".\"));\n }\n // rename photo_renamer.ImageFile in OS.\n img.renameTo(new File(newPath));\n // update photo_renamer.ImageFile object\n img = new ImageFile(newPath, img.nameHistory);\n img.setTagList(listOfTags);\n //\n for (Tag t: listOfTags)\n {\n if (!t.imgList.contains(img))\n {\n t.imgList.add(img);\n }\n }\n // create log entry\n Log.addLogEntry(oldName, img.getName());\n Log.allImages.add(img);\n return img;\n }", "public void updateLatestPic() {\n\t\tPicture l = this.pictures.get(0);\n\t\tfor (int i=1;i<this.pictures.size();i++) {\n\t\t\tif (this.pictures.get(i).date.compareTo(l.date)>0) {\n\t\t\t\tl = this.pictures.get(i);\n\t\t\t}\n\t\t}\n\t\tthis.latestPic = l;\n\t}", "public void doChangeAlbumName()\n/* */ {\n/* 73 */ AlbumDTO changed = this.galleryManager.saveAlbum(this.selectedAlbum);\n/* 74 */ for (AlbumDTO dto : this.albumList)\n/* */ {\n/* 76 */ if (dto.getId().equals(changed.getId()))\n/* */ {\n/* 78 */ dto.setName(changed.getName());\n/* 79 */ break;\n/* */ }\n/* */ }\n/* */ }", "private void updateFileName(ImageDataModel dataModel, String rename) {\r\n try {\r\n File file = dataModel.getFile();\r\n // method to rename the file and then set to model data for update the index of file in main list\r\n dataModel.setFile(FileUtils.renameFile(dataModel.getFile(), rename));\r\n if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance())\r\n .equals(Constant.LIST_VIEW)) {\r\n GalleryHelper.imageFolderMap.get(nameKey).get(0).setFile(dataModel.getFile());\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelper.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewData.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n }\r\n }\r\n if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).\r\n equals(Constant.ALBUM_VIEW)) {\r\n // Update the name of Main List of GalleryHelper.class\r\n GalleryHelper.imageFolderMap.get(nameKey).get(0).setFile(dataModel.getFile());\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelper.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewData.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n }\r\n }\r\n\r\n /*\r\n * Scan old and new file to update entry into content provider.\r\n * */\r\n FileUtils.scanFile(PhotoViewActivity.this, dataModel.getFile());\r\n FileUtils.scanFile(PhotoViewActivity.this, file);\r\n // update local database for time\r\n mediaFileDuration.updateFileName(dataModel.getFile().getAbsolutePath(), file.getAbsolutePath());\r\n //Update toolbar with new file name\r\n String name = dataModel.getFile().getName();\r\n String actualName = FileUtils.getSecureFileName(name);\r\n if (actualName != null && !actualName.equalsIgnoreCase(\"\")) {\r\n updateTileBar(actualName);\r\n } else {\r\n updateTileBar(name);\r\n }\r\n } catch (Exception e) {\r\n SDKUtils.showToast(PhotoViewActivity.this, e.toString());\r\n }\r\n }", "void updateProfilePhoto(int userId, String filename);", "protected static ImageFile revertToOldName(String name, ImageFile img)throws IOException\n {\n String tagString = \"\";\n if(name.contains(\"@\"))\n {\n tagString = \" \" + name.substring(name.indexOf('@'), name.indexOf(\".\"));\n }\n else\n {\n tagString = \" \" + name.substring(0, name.indexOf(\".\"));\n }\n StringTokenizer st = new StringTokenizer(tagString,\" @\");\n ArrayList<Tag> tags = new ArrayList<Tag>();\n ArrayList<Tag> actualTags = new ArrayList<Tag>();\n\n while (st.hasMoreElements())\n {\n tags.add(new Tag(st.nextToken()));\n }\n\n for (Tag tag : tags)\n {\n for (Tag currTag : Log.allTags)\n {\n if (tag.getName().equals(currTag.getName()))\n {\n actualTags.add(currTag);\n }\n }\n }\n\n return rename(img, actualTags);\n }", "public void setImageName(String name) {\n imageToInsert = name;\n}", "private String getUniquePhotoName() {\n\t\tTime now = new Time();\n\t\tnow.setToNow();\n\t\treturn now.format2445();\n\t}", "public void updateExifAndSave(ExifInterface exif, byte[] originalJpegData, final CameraProxy camera) {\n if (this.mLongshotCount == (short) 0) {\n this.mName = PhotoModule.this.mNamedImages.getNextNameEntity();\n }\n final Map<String, Object> externalBundle = new HashMap();\n externalBundle.put(ExternalExifInterface.BURST_SHOT_ID, Integer.valueOf(hashCode()));\n String str = ExternalExifInterface.BURST_SHOT_INDEX;\n short s = this.mLongshotCount;\n this.mLongshotCount = (short) (s + 1);\n externalBundle.put(str, Short.valueOf(s));\n Tag access$500 = PhotoModule.TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"long shot taken for \");\n stringBuilder.append(this.mLongshotCount);\n Log.w(access$500, stringBuilder.toString());\n if (PhotoModule.this.mShouldResizeTo16x9) {\n ResizeBundle dataBundle = new ResizeBundle();\n dataBundle.jpegData = originalJpegData;\n dataBundle.targetAspectRatio = 1.7777778f;\n dataBundle.exif = exif;\n new AsyncTask<ResizeBundle, Void, ResizeBundle>() {\n /* Access modifiers changed, original: protected|varargs */\n public ResizeBundle doInBackground(ResizeBundle... resizeBundles) {\n return PhotoModule.this.cropJpegDataToAspectRatio(resizeBundles[0]);\n }\n\n /* Access modifiers changed, original: protected */\n public void onPostExecute(ResizeBundle result) {\n LongshotPictureCallback.this.saveFinalPhoto(result.jpegData, LongshotPictureCallback.this.mName, result.exif, camera, externalBundle);\n }\n }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new ResizeBundle[]{dataBundle});\n return;\n }\n saveFinalPhoto(originalJpegData, this.mName, exif, camera, externalBundle);\n }", "public void undoLastCapturedPhoto() {\n\t\t\n\t}", "private void renameLogs() {\n File oldest = new File(getFileNameForIndex(mNumSegments - 1));\r\n oldest.delete();\r\n\r\n // Chain rename the rest\r\n for (int i = mNumSegments - 2; i >= 0; i--) {\r\n File chunk = new File(getFileNameForIndex(i));\r\n chunk.renameTo(new File(getFileNameForIndex(i + 1)));\r\n }\r\n }", "private synchronized void updateFilename()\n\t{\n\t\tCalendar cal = Calendar.getInstance();\n\t\tDate date = cal.getTime();\n\n\t\tcal.add(Calendar.DATE, 1);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 0);\n\t\tcal.set(Calendar.MINUTE , 0);\n\t\tcal.set(Calendar.SECOND, 0);\n\n\t\tfilename = prefix + dateFormat.format(date);\n\t\tnextRotate = cal.getTimeInMillis();\n\t}", "@Override\r\n public String getInfo() {\r\n return \"Photo name: \"+this.info;\r\n }", "public void imagesaver(String name){\n\tthis.new_image_name = name;\n\t try{\n\t\tImageIO.write(new_buff_image, \"png\", new File(new_image_name));\n\t }\n\t catch(IOException e){\n\t\tSystem.out.println(\"The desired output file is invalid. Please try running the program again.\");\n\t\tSystem.exit(0);\n\t }\n }", "public final void setOldImageName(String oldImageName) {\n\t\tthis.oldImageName = oldImageName;\n\t}", "private void updateUserInfo(String name, @NotNull Uri pickedImgUri, FirebaseUser currentUser) {\n //carico la foto sullo storage di Firebase e chiedo l'url\n StorageReference mStorage = FirebaseStorage.getInstance().getReference().child(\"foto utenti\");\n StorageReference imageFilePath = mStorage.child(pickedImgUri.getLastPathSegment());\n imageFilePath.putFile(pickedImgUri).addOnSuccessListener(taskSnapshot -> {\n //immagine caricata, ora posso avere l'url\n imageFilePath.getDownloadUrl().addOnSuccessListener(uri -> {\n //l'url contiene l'immagine profilo dell'utente\n UserProfileChangeRequest profileUpdate = new UserProfileChangeRequest.Builder().setDisplayName(name).setPhotoUri(uri).build();\n\n currentUser.updateProfile(profileUpdate).addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n //informazioni utente modificate\n showMessage(\"Registrato con successo!\");\n updateUI();\n }\n });\n\n });\n });\n }", "public void updateFileName()\n {\n\n String fn= presenter.getCurrentTrack().getFileName();\n if(fn!=null && !fn.isEmpty()) {\n File file = new File(fn);\n fn=file.getName();\n }\n if(fn==null || fn.isEmpty())\n fn=\"*\";\n fileNameTextView.setText(fn);\n }", "private void updatePicture() {\n \tif (!picture.getText().equals(\"\")) {\n\t\t\tif ( currentProfile != null ) {\n\t\t\t\t//Tries to open the given image fileName from user, throws an error if unable to open file.\n\t\t\t\tGImage image = null;\n\t\t\t\ttry {\n\t\t\t\t\timage = new GImage(picture.getText());\n\t\t\t\t} catch (ErrorException ex) {\n\t\t\t\t\tthrow ex;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Sets the currentProfile picture to the opened image and informs the user accordingly\n\t\t\t\tcurrentProfile.setImage(image);\n\t\t\t\tcanvas.displayProfile(currentProfile);\n\t\t\t\tcanvas.showMessage(\"Picture updated\");\n\t\t\t} else {\n\t\t\t\tcanvas.showMessage(\"Please select a profile to change picture\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public final String getOldImageName() {\n\t\treturn oldImageName;\n\t}", "public void logScreen(String imageName) {\n this.logScreen(imageName, imageName, thumbHeight, thumbWidth);\n }", "public final void saveFinalPhoto(byte[] jpegData, NamedEntity name, ExifInterface exif, CameraProxy camera) {\n saveFinalPhoto(jpegData, name, exif, camera, null);\n }", "public void saveFinalPhoto(byte[] jpegData, NamedEntity name, ExifInterface exif, CameraProxy camera) {\n saveFinalPhoto(jpegData, name, exif, camera, PhotoModule.this.buildExternalBundle());\n }", "protected void writeLog() {\r\n\r\n // get the current date/time\r\n DateFormat df1 = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);\r\n\r\n // write to the history area\r\n if (Preferences.is(Preferences.PREF_LOG) && completed) {\r\n\r\n if (destImage != null) {\r\n\r\n if (srcImage != null) {\r\n destImage.getHistoryArea().setText(srcImage.getHistoryArea().getText());\r\n }\r\n\r\n if (historyString != null) {\r\n destImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n } else if (srcImage != null) {\r\n\r\n if (historyString != null) {\r\n srcImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n }\r\n }\r\n }", "public void onPictureTaken(byte[] arg0, Camera arg1) {\n \t String pname = \"/sdcard/\"+System.currentTimeMillis()+\".jpg\";\n\t FileOutputStream outStream = null;\n\t try {\n\t\t outStream = new FileOutputStream(pname);\n\t\t outStream.write(arg0);\n\t\t outStream.close(); \n\t \n\t\t Calendar calendar = Calendar.getInstance();\n\t \tjava.util.Date now = calendar.getTime();\n\t \tjava.util.Date today = new java.util.Date();\n\t\t\tjava.sql.Timestamp ti = new java.sql.Timestamp(now.getTime());\n\t\t\t// storing photo on SD Card and link in database...\n\t\t\t\n\t Toast.makeText(AddContact.this,\n\t \"Image \"+pname+\" saved \",\n\t Toast.LENGTH_LONG).show();\n\t Bitmap bm = BitmapFactory.decodeFile(pname);\n\t img2.setImageBitmap(bm);\n\t // data.Insert(name,strmn,strln,strmno,mshome,mswork,msother,mscust, streid,eswork,esother,mscust,pname,strtag,0);\n\t } catch (FileNotFoundException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t } catch (IOException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\n\t camera.startPreview();\n }", "public void updateRecordCurrentImageCount(final Record record) {\n String recordPath = getPathForRecord(record);\n File recordFolder = new File(recordPath);\n if (recordFolder.exists()) {\n File[] recordFiles = recordFolder.listFiles();\n record.photoCount = recordFiles != null ? recordFiles.length - 1 : 0;\n }\n }", "String updateMyAvatar(String pictureFilePath);", "void updateDisplayName();", "private void updateFields(String playerName) {\n if (playerName.equals(\"player\")) {\n playerRoll.setText(player1.getLastRollAsString() + \" (+\" + game.getScoreFromRolls(player1.getLastRoll()) + \")\");\n playerScore.setText(String.valueOf(player1.getScore()));\n setPlayerImages(\"player\");\n } else {\n computerRoll.setText(computer.getLastRollAsString() + \" (+\" + game.getScoreFromRolls(computer.getLastRoll()) + \")\");\n computerScore.setText(String.valueOf(computer.getScore()));\n setPlayerImages(\"computer\");\n }\n }", "public void updateNames(String oldName, String newFileName) {\n listNames.set(listNames.indexOf(oldName), newFileName);\n notifyDataSetChanged();\n }", "public final void saveFinalPhoto(byte[] jpegData, NamedEntity name, ExifInterface exif, CameraProxy camera, Map<String, Object> externalInfos) {\n byte[] bArr = jpegData;\n NamedEntity namedEntity = name;\n ExifInterface exifInterface = exif;\n int orientation = Exif.getOrientation(exif);\n float zoomValue = 1.0f;\n if (PhotoModule.this.mCameraCapabilities.supports(Feature.ZOOM)) {\n zoomValue = PhotoModule.this.mCameraSettings.getCurrentZoomRatio();\n }\n float zoomValue2 = zoomValue;\n boolean hdrOn = SceneMode.HDR == PhotoModule.this.mSceneMode;\n String flashSetting = PhotoModule.this.mActivity.getSettingsManager().getString(PhotoModule.this.mAppController.getCameraScope(), Keys.KEY_FLASH_MODE);\n boolean gridLinesOn = Keys.areGridLinesOn(PhotoModule.this.mActivity.getSettingsManager());\n UsageStatistics instance = UsageStatistics.instance();\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(namedEntity.title);\n stringBuilder.append(Storage.JPEG_POSTFIX);\n instance.photoCaptureDoneEvent(10000, stringBuilder.toString(), exifInterface, PhotoModule.this.isCameraFrontFacing(), hdrOn, zoomValue2, flashSetting, gridLinesOn, Float.valueOf((float) PhotoModule.this.mTimerDuration), PhotoModule.this.mShutterTouchCoordinate, Boolean.valueOf(PhotoModule.this.mVolumeButtonClickedFlag));\n PhotoModule.this.mShutterTouchCoordinate = null;\n PhotoModule.this.mVolumeButtonClickedFlag = false;\n int orientation2;\n if (PhotoModule.this.mIsImageCaptureIntent) {\n orientation2 = orientation;\n PhotoModule.this.mJpegImageData = bArr;\n if (PhotoModule.this.mQuickCapture) {\n PhotoModule.this.onCaptureDone();\n } else {\n Log.v(PhotoModule.TAG, \"showing UI\");\n PhotoModule.this.mUI.showCapturedImageForReview(bArr, orientation2, PhotoModule.this.mMirror);\n }\n } else {\n int width;\n int height;\n Integer exifWidth = exifInterface.getTagIntValue(ExifInterface.TAG_PIXEL_X_DIMENSION);\n Integer exifHeight = exifInterface.getTagIntValue(ExifInterface.TAG_PIXEL_Y_DIMENSION);\n if (!PhotoModule.this.mShouldResizeTo16x9 || exifWidth == null || exifHeight == null) {\n Size s = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n if ((PhotoModule.this.mJpegRotation + orientation) % MediaProviderUtils.ROTATION_180 == 0) {\n width = s.width();\n height = s.height();\n } else {\n int width2 = s.height();\n height = s.width();\n width = width2;\n }\n } else {\n width = exifWidth.intValue();\n height = exifHeight.intValue();\n }\n String title = namedEntity == null ? null : namedEntity.title;\n long date = namedEntity == null ? -1 : namedEntity.date;\n if (PhotoModule.this.mDebugUri != null) {\n PhotoModule.this.saveToDebugUri(bArr);\n if (title != null) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(PhotoModule.DEBUG_IMAGE_PREFIX);\n stringBuilder2.append(title);\n title = stringBuilder2.toString();\n }\n }\n if (title == null) {\n Log.e(PhotoModule.TAG, \"Unbalanced name/data pair\");\n orientation2 = orientation;\n } else {\n long date2;\n if (date == -1) {\n date2 = PhotoModule.this.mCaptureStartTime;\n } else {\n date2 = date;\n }\n Integer exifHeight2;\n Integer exifWidth2;\n if (PhotoModule.this.mHeading >= 0) {\n ExifTag directionRefTag = exifInterface.buildTag(ExifInterface.TAG_GPS_IMG_DIRECTION_REF, \"M\");\n exifHeight2 = exifHeight;\n exifWidth2 = exifWidth;\n ExifTag directionTag = exifInterface.buildTag(ExifInterface.TAG_GPS_IMG_DIRECTION, new Rational((long) PhotoModule.this.mHeading, 1));\n exifInterface.setTag(directionRefTag);\n exifInterface.setTag(directionTag);\n } else {\n exifHeight2 = exifHeight;\n exifWidth2 = exifWidth;\n }\n if (externalInfos != null) {\n exifInterface.setTag(exifInterface.buildTag(ExifInterface.TAG_USER_COMMENT, CameraUtil.serializeToJson(externalInfos)));\n }\n StringBuilder stringBuilder3 = new StringBuilder();\n stringBuilder3.append(title);\n stringBuilder3.append(\"_BURST\");\n stringBuilder3.append(System.currentTimeMillis());\n PhotoModule.this.getServices().getMediaSaver().addImage(bArr, stringBuilder3.toString(), date2, this.mLocation, width, height, orientation, exifInterface, new BurstShotSaveListener(this.mLongshotCount), PhotoModule.this.mContentResolver);\n }\n }\n PhotoModule.this.getServices().getRemoteShutterListener().onPictureTaken(bArr);\n PhotoModule.this.mActivity.updateStorageSpaceAndHint(null);\n }", "public void updateName(String newName)\r\n {\r\n name = newName;\r\n }", "private void prosesUpdate() {\n final String name = tvName.getText().toString();\r\n\r\n //get dari tabel/collection user\r\n Constants.refAcademicCal.addValueEventListener(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\r\n //mengambil data email\r\n AcademicModel emails = dataSnapshot.getValue(AcademicModel.class);\r\n\r\n Constants.refAcademicCal.child(\"name\").setValue(name);\r\n if (isPicChange)\r\n Constants.refAcademicCal.child(\"imgUrl\").setValue(photoUrl.toString());\r\n\r\n Toast.makeText(AcademicCal.this, \"Update berhasil!\", Toast.LENGTH_SHORT).show();\r\n finish();\r\n\r\n }\r\n\r\n @Override\r\n public void onCancelled(DatabaseError error) {\r\n // Failed to read value\r\n Log.w(\"\", \"Failed to read value.\", error.toException());\r\n //showProgress(false);\r\n }\r\n });\r\n }", "public void changePathNames(String oldPathName, String newPathName) {\n\t\t// Iterate though imgToTag map to update tagToImg map\n\t\tif(imgToTag.containsKey(oldPathName) && !imgToTag.containsKey(newPathName) && oldPathName != newPathName){\n\t\t\tfor (String tag : imgToTag.get(oldPathName)) {\n\t\t\t\ttagToImg.get(tag).remove(oldPathName);\n\t\t\t\ttagToImg.get(tag).add(newPathName);\n\t\t\t}\n\t\t\timgToTag.put(newPathName, imgToTag.get(oldPathName));\n\t\t\timgToTag.remove(oldPathName);\n\t\t}\n\t}", "public void reupload(String date, String hour) {\n//\t\tlogger.info(String.format(\"Start reuploading for hour: %s%s\", date, hour));\n//\t\tFile folder = new File(String.format(\"%s/%s/%s\", ServiceConfig.photoPath, date, hour));\n//\t\tFile[] files = folder.listFiles();\n//\t\tif (files == null) {\n//\t\t\treturn;\n//\t\t}\n\n//\t\tfor (File file: files) {\n//\t\t\tString filePath = file.getAbsolutePath();\n//\t\t\tfor (String bucketName: ServiceConfig.bucketNames) {\n//\t\t\t\tif (upload(filePath, bucketName)) {\n//\t\t\t\t\twriteLog(filePath, bucketName, \"0\");\n//\t\t\t\t} else {\n//\t\t\t\t\twriteLog(filePath, bucketName, \"1\");\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t}", "public Photo(String name, String dir){\r\n\t\tthis.name = name;\r\n\t\tthis.dir = dir;\r\n\t\tthis.extension = ImageTypeChecker.getExtension(name);\r\n\t\tthis.originalName = ImageTypeChecker.removeExtension(name);\r\n\t\tthis.id = nextId;\r\n\t\tnextId += 1;\r\n\t\ttags = new LinkedHashMap<String, Tag>(); //key: tag name, value: Tag object\r\n\t\tprevNames = new LinkedHashSet<String>();\r\n\t\t\r\n\t\t//set handler for each instance of a photo\r\n\t\ttry{\r\n\t\t\tString workingDir = System.getProperty(\"user.dir\");\r\n\t\t\tString fileName = workingDir + this.originalName + \".log\";\r\n\t\t\thandler = new FileHandler(fileName, true);\r\n\t\t}\r\n\t\tcatch (IOException e) { \r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\thandler.setFormatter(new SimpleFormatter());\r\n\t\t\tlogger.addHandler(handler);\r\n\t\t\tlogger.setLevel(Level.ALL);\r\n\t\t}", "@Override\n\tpublic void update() {\n\t\tFile logFile = new File(AppStorage.getInstance().getLogFileLocation());\n\t\tlogFile.getParentFile().mkdirs();\n\n\t\ttry {\n\t\t\tFileHandler fileHandler = new FileHandler(AppStorage.getInstance().getLogFileLocation(), true);\n\t\t\tSimpleFormatter formatter = new SimpleFormatter();\n\t\t\tfileHandler.setFormatter(formatter);\n\n\t\t\twhile (logger.getHandlers().length > 0) {\n\t\t\t\tFileHandler prevFileHandler = (FileHandler)logger.getHandlers()[0];\n\t\t\t\tlogger.removeHandler(prevFileHandler);\n\t\t\t\tprevFileHandler.close();\n\t\t\t}\n\n\t\t\tlogger.addHandler(fileHandler);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void onAlreadySaved(@NonNull PhotoCache photoCache) {\n Toast.makeText(context, \"The file already exist in:\\n\" +\n DEFAULT_PATH, Toast.LENGTH_SHORT).show();\n notifyAfterDownloadingProgress();\n }", "public void onNameChange(String newName) {\n\t\t\n\t}", "public void updatePhoto( PhotoInfo photo, String comment )\n {\n if ( mApp_mData.updatePhoto( photo.sid, photo.id, comment ) ) {\n // if ( mApp.mListRefresh ) {\n // // This works but it refreshes the whole list\n // mDataAdapter.notifyDataSetChanged();\n // } else {\n // mSavePhoto.mComment = comment;\n // }\n updateDisplay( ); // FIXME\n } else {\n TDToast.make( this, R.string.no_db );\n }\n }", "public void setOriginalFileName(String newValue);", "public void saveFinalPhoto(byte[] jpegData, NamedEntity name, ExifInterface exif, CameraProxy camera, Map<String, Object> externalInfo) {\n byte[] bArr = jpegData;\n NamedEntity namedEntity = name;\n ExifInterface exifInterface = exif;\n int orientation = Exif.getOrientation(exif);\n float zoomValue = 1.0f;\n if (PhotoModule.this.mCameraCapabilities.supports(Feature.ZOOM)) {\n zoomValue = PhotoModule.this.mCameraSettings.getCurrentZoomRatio();\n }\n float zoomValue2 = zoomValue;\n boolean hdrOn = SceneMode.HDR == PhotoModule.this.mSceneMode;\n String flashSetting = PhotoModule.this.mActivity.getSettingsManager().getString(PhotoModule.this.mAppController.getCameraScope(), Keys.KEY_FLASH_MODE);\n boolean gridLinesOn = Keys.areGridLinesOn(PhotoModule.this.mActivity.getSettingsManager());\n UsageStatistics instance = UsageStatistics.instance();\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(namedEntity.title);\n stringBuilder.append(Storage.JPEG_POSTFIX);\n instance.photoCaptureDoneEvent(10000, stringBuilder.toString(), exifInterface, camera.getCharacteristics().isFacingFront(), hdrOn, zoomValue2, flashSetting, gridLinesOn, Float.valueOf((float) PhotoModule.this.mTimerDuration), PhotoModule.this.mShutterTouchCoordinate, Boolean.valueOf(PhotoModule.this.mVolumeButtonClickedFlag));\n PhotoModule.this.mShutterTouchCoordinate = null;\n PhotoModule.this.mVolumeButtonClickedFlag = false;\n int orientation2;\n if (PhotoModule.this.mIsImageCaptureIntent) {\n orientation2 = orientation;\n PhotoModule.this.mJpegImageData = bArr;\n PhotoModule.this.mUI.disableZoom();\n if (PhotoModule.this.mQuickCapture) {\n PhotoModule.this.onCaptureDone();\n } else {\n Log.v(PhotoModule.TAG, \"showing UI\");\n PhotoModule.this.mUI.showCapturedImageForReview(bArr, orientation2, false);\n PhotoModule.this.mIsInIntentReviewUI = true;\n }\n } else {\n int width;\n int height;\n int width2;\n int DEPTH_H;\n Integer exifWidth = exifInterface.getTagIntValue(ExifInterface.TAG_PIXEL_X_DIMENSION);\n Integer exifHeight = exifInterface.getTagIntValue(ExifInterface.TAG_PIXEL_Y_DIMENSION);\n if (!PhotoModule.this.mShouldResizeTo16x9 || exifWidth == null || exifHeight == null) {\n Size s = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n if ((PhotoModule.this.mJpegRotation + orientation) % MediaProviderUtils.ROTATION_180 == 0) {\n width = s.width();\n height = s.height();\n } else {\n width2 = s.height();\n height = s.width();\n width = width2;\n }\n } else {\n width = exifWidth.intValue();\n height = exifHeight.intValue();\n }\n String title = namedEntity == null ? null : namedEntity.title;\n if (PhotoModule.this.mDebugUri != null) {\n PhotoModule.this.saveToDebugUri(bArr);\n if (title != null) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(PhotoModule.DEBUG_IMAGE_PREFIX);\n stringBuilder2.append(title);\n title = stringBuilder2.toString();\n }\n }\n if (title == null) {\n Log.e(PhotoModule.TAG, \"Unbalanced name/data pair\");\n orientation2 = orientation;\n } else {\n StringBuilder stringBuilder3;\n if (namedEntity.date == -1) {\n namedEntity.date = PhotoModule.this.mCaptureStartTime;\n }\n if (PhotoModule.this.mHeading >= 0) {\n ExifTag directionRefTag = exifInterface.buildTag(ExifInterface.TAG_GPS_IMG_DIRECTION_REF, \"M\");\n ExifTag directionTag = exifInterface.buildTag(ExifInterface.TAG_GPS_IMG_DIRECTION, new Rational((long) PhotoModule.this.mHeading, 1));\n exifInterface.setTag(directionRefTag);\n exifInterface.setTag(directionTag);\n }\n if (externalInfo != null) {\n exifInterface.setTag(exifInterface.buildTag(ExifInterface.TAG_USER_COMMENT, CameraUtil.serializeToJson(externalInfo)));\n }\n if (PhotoModule.this.mCameraSettings.isMotionOn()) {\n stringBuilder3 = new StringBuilder();\n stringBuilder3.append(\"MV\");\n stringBuilder3.append(title);\n title = stringBuilder3.toString();\n }\n String title2 = title;\n Integer num;\n if (PhotoModule.this.isDepthEnabled()) {\n ArrayList<byte[]> bokehBytes = MpoInterface.generateXmpFromMpo(jpegData);\n if (bokehBytes != null) {\n Tag access$500 = PhotoModule.TAG;\n stringBuilder3 = new StringBuilder();\n stringBuilder3.append(\"bokehBytes.size()\");\n stringBuilder3.append(bokehBytes.size());\n Log.d(access$500, stringBuilder3.toString());\n }\n if (bokehBytes == null || bokehBytes.size() <= 2) {\n Log.v(PhotoModule.TAG, \"save addImage\");\n orientation2 = orientation;\n PhotoModule.this.getServices().getMediaSaver().addImage(bArr, title2, namedEntity.date, this.mLocation, width, height, orientation, exifInterface, PhotoModule.this.mOnMediaSavedListener, PhotoModule.this.mContentResolver);\n } else {\n int DEPTH_W;\n GImage gImage = new GImage((byte[]) bokehBytes.get(1), \"image/jpeg\");\n Size photoSize = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n int photoWidth = photoSize.width();\n width2 = photoSize.height();\n if (((float) photoWidth) / ((float) width2) == 1.3333334f) {\n DEPTH_W = 896;\n DEPTH_H = DepthUtil.DEPTH_HEIGHT_4_3;\n Log.d(PhotoModule.TAG, \"set width x height to 4:3 size by default\");\n } else if (((float) photoWidth) / ((float) width2) == 1.7777778f) {\n DEPTH_W = 896;\n DEPTH_H = DepthUtil.DEPTH_HEIGHT_16_9;\n Log.d(PhotoModule.TAG, \"set width x height to 16:9 size\");\n } else {\n DEPTH_W = 1000;\n DEPTH_H = 500;\n Log.d(PhotoModule.TAG, \"set width x height to 18:9 size\");\n }\n DepthMap depthMap = new DepthMap(DEPTH_W, DEPTH_H, MediaProviderUtils.ROTATION_180);\n depthMap.buffer = (byte[]) bokehBytes.get(bokehBytes.size() - 1);\n Tag access$5002 = PhotoModule.TAG;\n StringBuilder stringBuilder4 = new StringBuilder();\n stringBuilder4.append(\"depthMap.buffer = \");\n stringBuilder4.append(depthMap.buffer.length);\n Log.v(access$5002, stringBuilder4.toString());\n GDepth gDepth = GDepth.createGDepth(depthMap);\n float depthNear = ((Float) PhotoModule.this.mPreviewResult.get(DepthUtil.bokeh_gdepth_near)).floatValue();\n float depthFar = ((Float) PhotoModule.this.mPreviewResult.get(DepthUtil.bokeh_gdepth_far)).floatValue();\n byte depthFormat = ((Byte) PhotoModule.this.mPreviewResult.get(DepthUtil.bokeh_gdepth_format)).byteValue();\n gDepth.setNear(depthNear);\n gDepth.setFar(depthFar);\n gDepth.setFormat(depthFormat);\n Tag access$5003 = PhotoModule.TAG;\n StringBuilder stringBuilder5 = new StringBuilder();\n stringBuilder5.append(\"westalgo depth_near: \");\n stringBuilder5.append(depthNear);\n stringBuilder5.append(\"depth_far: \");\n stringBuilder5.append(depthFar);\n stringBuilder5.append(\"depth_format:\");\n stringBuilder5.append(depthFormat);\n Log.d(access$5003, stringBuilder5.toString());\n Log.v(PhotoModule.TAG, \"save addXmpImage\");\n exif.addMakeAndModelTag();\n PhotoModule.this.getServices().getMediaSaver().addXmpImage((byte[]) bokehBytes.get(0), gImage, gDepth, title2, namedEntity.date, null, width, height, orientation, exifInterface, XmpUtil.GDEPTH_TYPE, PhotoModule.this.mOnMediaSavedListener, PhotoModule.this.mContentResolver, \"jpeg\");\n Integer num2 = exifHeight;\n num = exifWidth;\n orientation2 = orientation;\n }\n } else {\n num = exifWidth;\n orientation2 = orientation;\n PhotoModule.this.getServices().getMediaSaver().addImage(bArr, title2, namedEntity.date, this.mLocation, width, height, orientation2, exif, PhotoModule.this.mOnMediaSavedListener, PhotoModule.this.mContentResolver);\n }\n }\n DEPTH_H = orientation2;\n }\n PhotoModule.this.getServices().getRemoteShutterListener().onPictureTaken(bArr);\n PhotoModule.this.mActivity.updateStorageSpaceAndHint(null);\n }", "public void logScreen(String imageName, String title) {\n this.logScreen(imageName, title, thumbHeight, thumbWidth);\n }", "public void updateProperties() {\n\t\t\tEnumeration iter = properties.keys();\r\n\t\t\twhile (iter.hasMoreElements()) {\r\n\t\t\t\tString key = (String) iter.nextElement();\r\n\t\t\t\tif (key.startsWith(ConfigParameters.RECENT_FILE_PREFIX)) {\r\n\t\t\t\t\tproperties.remove(key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Save the list of recent file information\r\n\t\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t\tproperties.put(ConfigParameters.RECENT_FILE_PREFIX + (i + 1),\r\n\t\t\t\t\t\tfiles[i]);\r\n\t\t\t}\r\n\t\t\t// Save the number of recent files\r\n\t\t\tproperties.remove(ConfigParameters.RECENT_FILE_NUMBER);\r\n\t\t\tproperties.put(ConfigParameters.RECENT_FILE_NUMBER, files.length\r\n\t\t\t\t\t+ \"\");\r\n\t\t\t// Save to external file\r\n\t\t\tsim.core.AppEngine.getInstance().system.systemParameters\r\n\t\t\t\t\t.saveProperties(properties);\r\n\t\t\tdirty = false;\r\n\t\t}", "@Override\n public void onImageCapture(@NonNull File imageFile) {\n String name = getFilesDir().getPath()+\"/\" + generateName() + \".jpeg\";\n File newpic = new File(name);\n\n FileInputStream inputStream;\n FileOutputStream outputStream;\n try{\n inputStream = new FileInputStream(imageFile);\n outputStream = new FileOutputStream(newpic);\n byte[] buffer = new byte[1024];\n int length;\n while((length = inputStream.read(buffer))>0){\n outputStream.write(buffer, 0, length);\n }\n inputStream.close();\n outputStream.close();\n imageFile.delete();\n } catch (Exception e){\n e.printStackTrace();\n }\n// if(imageFile.renameTo(newpic)){\n// Toast.makeText(ImagingActivity.this, \"Saved: \" + newpic.getName() , Toast.LENGTH_LONG).show();\n// } else{\n// Toast.makeText(ImagingActivity.this, \"failure\", Toast.LENGTH_LONG).show();\n// }\n\n }", "public void savePhoto(MyPhoto photo) {\n \t\tContentValues values = new ContentValues();\n \n \t\tUser user = photo.getUser();\n \n \t\tString userName = null;\n \n \t\tif (user != null) {\n \t\t\tuserName = user.getUserName();\n \t\t}\n \n \t\tvalues.put(SQLiteHelper.COLUMN_PARENT_ID, photo.getLocalParentId());\n \t\tvalues.put(SQLiteHelper.COLUMN_GLOBALID, photo.getId());\n \t\tvalues.put(SQLiteHelper.COLUMN_PARENT_GLOBALID, photo.getParentId());\n \t\tvalues.put(SQLiteHelper.COLUMN_PHOTO, photo.getImageAsString());\n \t\tvalues.put(SQLiteHelper.COLUMN_USER, userName);\n \n \t\tLog.v(TAG, \"Saving photo: \" + photo.getImageAsString());\n \n \t\tif (photo.getLocalId() == 0) {\n \t\t\t// Insert\n \t\t\tlong insertId = database.insert(SQLiteHelper.TABLE_PHOTOS, null,\n \t\t\t\t\tvalues);\n \t\t\t// Set local id\n \t\t\tphoto.setLocalId(insertId);\n \n\t\t\tLog.v(TAG, \"Insert: \" + photo.getLocalId());\n \t\t} else {\n \t\t\tString strFilter = SQLiteHelper.COLUMN_ID + \"=\"\n \t\t\t\t\t+ photo.getLocalId();\n \t\t\tdatabase.update(SQLiteHelper.TABLE_PHOTOS, values, strFilter, null);\n \n \t\t\tLog.v(TAG, \"Update\");\n \t\t}\n \n \t}", "@SuppressWarnings(\"unused\")\n\tprotected void updateLabel (String name) {\n Image image = new ImageIcon(\"Resource/\" + name + \".png\").getImage().getScaledInstance(200, 200, Image.SCALE_SMOOTH);\n ImageIcon icon = new ImageIcon(image);\n picture.setIcon(icon);\n if (icon != null) {\n picture.setText(null);\n } else {\n picture.setText(\"Image not found\");\n }\n }", "void addLog(String beforeChange, String afterChange, String time) {\r\n ArrayList<String> logItem = new ArrayList<>();\r\n logItem.add(beforeChange);\r\n logItem.add(afterChange);\r\n logItem.add(time);\r\n allLogs.add(logItem);\r\n writeToFile(\"Save.bin\",allLogs);\r\n }", "private void updateButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_updateButtonActionPerformed\n try {\n ContactInfo contactInfo = new ContactInfo(nameField.getText(), phoneField.getText(), emailField.getText(), addressField.getText(), imageTitle);\n new DbConnection().edit(oldPhoneNumber, contactInfo);\n ImageSaver.saveImage(selectedFilePath, imageTitle);\n new File(\"images\\\\\" + oldImageTitle).delete();\n mainWindow.refreshList();\n this.setVisible(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void snapshot(String name) {\n snapshot(name, null, null, false, null);\n }", "protected void updateDisplay() {\n\t\t\t// this is called when upload is completed\n\n\t\t\tString filename = getLastFileName();\n\t\t\tfor (SetupMapViewListener listener : listeners)\n\t\t\t\tlistener.shapeFileUploadedEvent(filename, new ByteArrayInputStream((byte[]) getValue()));\n\t\t}", "public void addPhoto(ActionEvent event) throws IOException {\n\t\t//System.out.println(\"ITEM ADDED______________________________________________\");\n\t\tFileChooser fileChooser = new FileChooser();\n\t\tfileChooser.setTitle(\"Open Photo\"); \n\t\tAccessibleUsersList.masterUserList.userLoggedIn.fileList = fileChooser.showOpenMultipleDialog(this.myNewStage);\n\t\t\n\t\tboolean checkIfImages = true;\n\t\t\n\t\tif(AccessibleUsersList.masterUserList.userLoggedIn.fileList != null){\n\t\t\t\n\t\t\tfor(File file : AccessibleUsersList.masterUserList.userLoggedIn.fileList){\n\t\t\t\t\n\t\t\t\tMimetypesFileTypeMap mimetype= new MimetypesFileTypeMap();\n\t\t\t\tmimetype.addMimeTypes(\"image png jpg jpeg JPG PNG\");\t\n\t\t\t\t\n\t\t\t\tString mimetype1 = mimetype.getContentType(file);\n\t\t\t\tString type = mimetype1.split(\"/\")[0];\n\t\t\t\t\n\t\t\t\tif(type.contains(\"image\")){\n\t\t\t //System.out.println(\"It's an image\");\n\t\t\t\t} else { \n\t\t\t \t //System.out.println(\"It's NOT an image\");\n\t\t\t \t Alert majorBagAlert = new Alert(AlertType.ERROR);\n\t\t\t\t majorBagAlert.setTitle(\"Error\");\n\t\t\t\t majorBagAlert.setHeaderText(\"One or more images is not an image file type.\");\n\t\t\t\t majorBagAlert.setContentText(\"Please enter photo(s) again\");\n\t\t\t\t majorBagAlert.showAndWait();\n\t\t\t \t \n\t\t\t\t //adding comment\n\t\t\t checkIfImages = false; \n\t\t\t }\n\t\t\t}\n }\n\t\t\n\n\t\t//iterate through the logged in user's albums \n\t\t//this is the album we have to add our photos to \n\t\tthis.selectedAlbum = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getName(); \n\t\tAlbum foundAlbum = null; \n\t\tlong lastModifiedDate = 0; \n\t\tString path; \n\t\t\n\t\t//if we are certain we only collected files of type jpg, png or jpeg \n\t\tif(checkIfImages){\n\t\t\t\n\t\t\tif(AccessibleUsersList.masterUserList.userLoggedIn.fileList != null) {\n\t\t\t\t\n\t\t\t\tfor(File file : AccessibleUsersList.masterUserList.userLoggedIn.fileList){\n\t\t\t\t\t\n\t\t\t\t\tpath = file.getAbsolutePath();\n\t\t\t\t\tFileInputStream inputstream = new FileInputStream(path); \n\t\t\t\t\tImage image1 = new Image(inputstream); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//iterate through the logged in user's albums \n\t\t\t\t\tint x=0; \n\t\t\t\t\tfor(Album album: AccessibleUsersList.masterUserList.userLoggedIn.albums_list){\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//looking for the current album to add our photos into \n\t\t\t\t\t\tif(album.getName().equals(this.selectedAlbum)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfoundAlbum = AccessibleUsersList.masterUserList.userLoggedIn.albums_list.get(x);\n\t\t\t\t\t\t\tlastModifiedDate = file.lastModified();\n\t\t\t\n\t\t\t\t\t\t\tPhoto albumPhoto = new Photo(path, lastModifiedDate); \n\t\t\t\t\t\t\tfoundAlbum.getAlbum().add(albumPhoto);\t \n\t\t\t\t\t\t\t//System.out.println(foundAlbum.getAlbum());\n\t\t\t\t\t\t\t//foundAlbum.photos.add(new model.Photo(image1, lastModifiedDate));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tImageView pic = new ImageView();\n\t\t\t\t\t\t\tpic.setFitWidth(340);\n\t\t\t\t\t\t\tpic.setFitHeight(180);\n\t\t\t\t\t\t\tpic.setImage(image1);\n\t\t\t\t\t\t\tlistOfPhotos.add(pic);\n\t\t\t\t\t\t\talbumPhoto.setImage(pic);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"photo added\");\n\t\t\t\t\t\t\t//System.out.println(albumPhoto.getPathToPhoto());\n\t\t\t\t\t\t\t//System.out.println(AccessibleUsersList.masterUserList.userLoggedIn);\n\t\t\t\t\t\t\t//System.out.println(AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.addPhoto(albumPhoto); <-----cause of bug, added photo TWICE, X\n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t} \n\t\t\t\t\t\tx++; \n\t\t\t\t\t}\n \t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\t\n\t}", "void storeLogMessage(String log)\n {\n logImage += log + \"\\n\";\n System.out.println(logImage);\n printFile(\"Log.txt\");\n }", "void update(FileInfo fileInfo);", "public void changeHeaderFile(){\n if ( changedAttr.isEmpty() ) return;\n else {\n Set<Object> tmpAttr = changedAttr.keySet();\n Object[] attributes = tmpAttr.toArray(new Object[tmpAttr.size()]);\n for (int i = 0; i < attributes.length; i++){\n if ( headerFile.containsKey(attributes[i]) ) {\n headerFile.put(attributes[i], changedAttr.get(attributes[i]));\n // DeidData.imageHandler.findImageByDisplayName(curimage.getImageDisplayName())\n // .getHeader().put(attributes[i], changedAttr.get(attributes[i]));\n curimage.getHeader().put(attributes[i], changedAttr.get(attributes[i]));\n //System.out.println(curimage.getHeader().get(attributes[i]));\n }\n }\n curimage.changeHeader();\n \n }\n }", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t\tfor (int i = 0; i < stateInfo.length; i++) {\r\n\t\t\tif (name.trim().equalsIgnoreCase(stateInfo[i][0])) {\r\n\t\t\t\tthis.flower = stateInfo[i][1];\r\n\t\t\t\tthis.bird = stateInfo[i][2];\r\n\r\n\t\t\t\t// add to the history of state name, flower and bird\r\n\t\t\t\thistory.append(this.name + \", \" + this.flower + \", \" + this.bird + \"\\n\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void setImage(TokenEntry entry, @NonNull String newImage);", "private void getNewImage() {\n try {\n URL imageUrl = new URL(path);\n URLConnection uc = imageUrl.openConnection();\n\n InputStream is = uc.getInputStream();\n BufferedInputStream bis = new BufferedInputStream(is);\n\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n int current;\n while ((current = bis.read()) != -1) {\n buffer.write((byte) current);\n }\n final byte[] data = buffer.toByteArray();\n // enqueue UI update as a priority\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n public void run() {\n view.setImageBitmap(BitmapFactory.decodeByteArray(\n data, 0, data.length));\n }\n });\n // update database while that is queueing\n ContentValues values = new ContentValues();\n values.put(MovieEntry.COLUMN_POSTER, data);\n context.getContentResolver().update(MovieEntry.buildMovieUriWithId(movieId),\n values, null, null);\n } catch (Exception E) {\n Log.i(TAG, E.toString());\n E.printStackTrace();\n }\n }", "@Override\n public void onDataChange(@NonNull final DataSnapshot dataSnapshot) {\n dataSnapshot.getRef().child(\"cowOrBull\").setValue(cowOrBullUpdateID);\n dataSnapshot.getRef().child(\"dateOfB\").setValue(dateOfBUpdateID);\n dataSnapshot.getRef().child(\"details\").setValue(cowDetailsUpdateID);\n dataSnapshot.getRef().child(\"cowName\").setValue(cowNameUpdateID);\n dataSnapshot.getRef().child(\"image\").setValue(cowNameUpdateID);\n dataSnapshot.getRef().child(\"tagId\").setValue(tagIdUpdateID);\n // Showing toast message after done uploading.\n Toast.makeText(getApplicationContext(), \"Data Updated Successfully \", Toast.LENGTH_LONG).show();\n }", "public void updateEarliestPic() {\n\t\tPicture e = this.pictures.get(0);\n\t\tfor (int i=1;i<this.pictures.size();i++) {\n\t\t\tif (this.pictures.get(i).date.compareTo(e.date)<0) {\n\t\t\t\te = this.pictures.get(i);\n\t\t\t}\n\t\t}\n\t\tthis.earliestPic = e;\n\t}", "@Override\n public void update(String fileName) {\n //Responses or action taken after an event occured in publisher and is notified\n System.out.println(\"Email to \" + this.email + \": \\\" The file \" + fileName + \" has been modified!\");\n }", "long getLastChanged();", "public void changeUsername(String oldName, String newName) {\n\t if(oldName.equals(username)) {\n\t\t username = newName;\n\t }\n\t if(friends.contains(oldName)) {\n\t\t friends.remove(oldName);\n\t\t friends.add(newName);\n\t }\n\t for(Post post: posts) {\n\t\t if(post.getLikes().contains(oldName)) {\n\t\t\t post.removeLike(oldName);\n\t\t\t post.addLike(newName);\n\t\t }\n\t\t}\n }", "public String getPhotoFileName() {\n return \"IMG_\" + getId().toString() + \".jpg\";\n }", "public void clickPhoto(MouseEvent event) {\n\t\t//System.out.println(\"clicked!\");\n\t\tObservableList<ImageView> images;\n\t\timages = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\tfor(ImageView img: images) {\n\t\t\tPhoto p = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getPhotoFromImage(img);\n\t\t\t//System.out.println(\"path is: \" + p.getPathToPhoto());\n\t\t\t//System.out.println(AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\tOldCaptionText.setText(p.getCaption());\n\t\t\t\n\t\t}\n\t\t\n\t\tObservableList<ImageView> image;\n\t\timage = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\t\n\t\tif(image.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Photo Selected\");\n\t\t\talert.setContentText(\"No photo selected. Failed to display image.\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tImageView img = (ImageView) PhotoListDisplay.getSelectionModel().getSelectedItem();\n\t\t\n\t\t//test that you got the right image!\n\t\tPhoto p = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getPhotoFromImage(img);\n\t\t\n\t\t\n\t\t//sets the caption of the photo\n\t\tPhotoCaptionDisplay.setText(p.getCaption());\n\t\t\n\t\t//displays the photo\n\t\tcurrPhotoIndex = listOfPhotos.indexOf(img);\n\t\t//System.out.println(currPhotoIndex);\n\t\tImageView newimg = new ImageView();\n\t\tnewimg.setImage(img.getImage());\n\t\tnewimg.setFitWidth(480);\n\t\tnewimg.setFitHeight(330);\n\t\tdisplayedPhoto.clear();\n\t\tdisplayedPhoto = FXCollections.observableArrayList();\n\t\tdisplayedPhoto.add(newimg);\n\t\tDisplayedImage.setItems(displayedPhoto);\n\t\t\n\t\t//List the tags for the specific Photo\n\t\tArrayList<Tag> listTags = p.getTags();\n\t\ttagObsList = FXCollections.observableList(listTags);\n\t\tTagListDisplay.setItems(tagObsList);\n\t\t\n\t\t//List the date of the photo\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tString dateformat = sdf.format(p.lastModifiedDate);\n\t\tlastModifiedDate.setText(dateformat);\n\t\t\n\t\tnewTagName.setText(\"\");\n\t\tnewTagValue.setText(\"\");\n\t\t\n\t\ttagNameLabel.setVisible(false);\n \ttagValueLabel.setVisible(false);\n \tsubmitNewTagButton.setVisible(false);\n \tcancelNewTagButton.setVisible(false);\n \tnewTagName.setVisible(false);\n \tnewTagValue.setVisible(false);\n\t}", "private void addToRepoList(String repoName, String lastUpdated) {\n String strRow = repoName + \" / \" + lastUpdated;\n String currentText = tvRepoList.getText().toString();\n this.tvRepoList.setText(currentText + \"\\n\\n\" + strRow);\n }", "@Override\r\n\tpublic void updateName(int eno, String newName) {\n\r\n\t}", "public void changePhoto() {\r\n\t\tisPictFetche = false;\r\n\t\tlaPhoto = new Photo();\r\n\t\tlaPhotoCandidate = new Photo();\r\n\t}", "@Override\r\n public void DisplayAlbumName(String name) {\r\n this.setTitle(name + \" - Photo Viewer\");\r\n }", "public void setNewName(String newName) \n {\n this.newName = getFileName() + \".\" + getType();\n }", "private void updateUserInfo(final String name, Uri pickedImgUri, final FirebaseUser currentUser) {\n\n // first we need to upload user photo to firebase storage and get url\n\n //StorageReference mStorage = FirebaseStorage.getInstance().getReference().child(\"users_photos\");\n final imageFilePath = mStorage.child(pickedImgUri.getLastPathSegment());\n imageFilePath.putFile(pickedImgUri).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n\n // image uploaded succesfully\n // now we can get our image url\n\n imageFilePath.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n\n // uri contain user image url\n\n\n UserProfileChangeRequest profleUpdate = new UserProfileChangeRequest.Builder()\n .setDisplayName(name)\n .setPhotoUri(uri)\n .build();\n\n\n currentUser.updateProfile(profleUpdate)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if (task.isSuccessful()) {\n // user info updated successfully\n showMessage(\"Register Complete\");\n updateUI();\n }\n\n }\n });\n\n }\n });\n\n\n\n\n\n }\n });\n }", "public void update(String name){\n\n return;\n }", "private void onPhotoError() {\n ToastModifications.createToast(this, getString(R.string.error_saving_photo), Toast.LENGTH_LONG);\n }", "public static void updatelastpic(int i,String idpic)\r\n { if(!programnum.equals(\"1\")) {return;}\r\n \tString sql=\"update roey.statuspic set value1='2' where key1='lastpic'\";\r\n \tsql=sql.replaceAll(\"2\", String.valueOf(i)).replaceAll(\"lastpic\", idpic);\r\n \ttry {\r\n\t\t\tsq.stmt.executeUpdate(sql);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"cant update lastpic\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n \t\r\n }", "private void updateLastAccessedAt(String key, ObjectMetadata existingMetadata, long lastAccessedAt) {\n long oldAccessedAt = Long.parseLong(existingMetadata.getUserMetadata().get(LAST_ACCESSED_AT)) + ACCESS_UPDATE_TIME_THRESHOLD;\n if (lastAccessedAt - ACCESS_UPDATE_TIME_THRESHOLD < oldAccessedAt)\n return;\n Service.vertx.executeBlocking(promise -> {\n s3client.copyObject(new CopyObjectRequest()\n .withSourceBucketName(bucket)\n .withSourceKey(key)\n .withDestinationBucketName(bucket)\n .withDestinationKey(key)\n .withNewObjectMetadata(getMetadata(existingMetadata.getUserMetadata().get(EXPIRES_AT), lastAccessedAt,\n existingMetadata.getContentLength()))\n );\n promise.complete();\n }, false);\n }", "public void setCurrentImageHistory(Stack<ColorImage> img) {\n currentImage = img;\n }", "public void addRpiPhoto(String rpiId, String time, String name, byte[] photo) throws SQLException, IOException;", "@Override\n\t\tpublic void update(Metodologia metodologia,String name) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void event(PictureEvent e) {\n\t\ttry {\n\t\t\tif (null != fname) {\n\t\t\t\tImageIO.write(e.getImage(), \"jpg\", new File(fname));\n\t\t\t}\n\t\t} catch (Exception ex) { SewerSender.println(ex.toString()); }\n\t}", "void setLastUpdatedTime();", "@Override\r\n\tpublic void snapshotTaken(MediaPlayer mediaPlayer, String filename)\r\n\t{\n\r\n\t}", "public void updateRecentChange(String s){\n\t\trecentChange = s;\n\t}", "public void update(String name) {\n\n\t}", "private int update(surfstore.SurfStoreBasic.FileInfo request, String method) {\n int updated = 0;\n for (int i = 0; i < metadataStubList.size(); i++) {\n MetadataStoreGrpc.MetadataStoreBlockingStub metaStub = metadataStubList.get(i);\n metaStub.ping(Empty.newBuilder().build());\n // 1st phase\n\t\t\tif (metaStub.updateLog(LogInfo.newBuilder().setLog(method).setFilename(request.getFilename()).build()).getAnswer() == false) { // not crashed\n\t\t\t\t// 2nd phase\n\t\t\t\tif (metaStub.updateFollower(request).getResult() == WriteResult.Result.OK) {\n\t\t\t\t\tfollowerMapList.get(i).put(request.getFilename(), request.getVersion());\n\t\t\t\t\tupdated++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"heartbeat update follower numbers \" + Integer.toString(updated));\n\t\treturn updated;\n\t}", "private void updateNameView() {\n String insertedText = getName();\n\n if (seekBar.getProgress() == 0) {\n insertedText = \"\";\n }\n\n String text = String.format(res.getString(R.string.str_tv_firstName_value), insertedText);\n\n nameView.setText(text);\n }", "public void performChange() {\n String nm = fqname.substring(fqname.lastIndexOf('.') + 1);\n if (oldAttrName == null) {\n // no attribute -> it's a filename change. eg. org-milos-kleint-MyInstance.instance\n newFileName = oldFileName.replaceAll(\"\\\\-\" + nm + \"$\", \"-\" + rename.getNewName());\n } else {\n if (oldAttrName.indexOf(fqname.replace('.','-') + \".instance\") > 0) {\n //replacing the ordering attribute..\n newAttrName = oldAttrName.replaceAll(\"-\" + nm + \"\\\\.\", \"-\" + rename.getNewName() + \".\");\n } else {\n //replacing attr value probably in instanceCreate and similar\n if (oldAttrValue != null) {\n String toReplacePattern = nm;\n newAttrValue = oldAttrValue.replaceAll(toReplacePattern, rename.getNewName());\n }\n }\n }\n \n if (newAttrValue != null) {\n doAttributeValueChange(newAttrValue, valueType);\n }\n if (newAttrName != null) {\n doAttributeMove(oldAttrName, newAttrName);\n }\n if (newFileName != null) {\n doFileMove(newFileName);\n }\n }", "private void updateImage(File file) throws IOException {\n\t\t\tfileLabel.setText(\"\");\n\n\t\t\ttry {\n\t\t\t\tMyImageD tmpImage = null;\n\t\t\t\tString fileName = file.getName();\n\n\t\t\t\t// Update preview for opening ggb files\n\t\t\t\tif (fileChooser\n\t\t\t\t\t\t.getMode() == GeoGebraFileChooser.MODE_GEOGEBRA) {\n\n\t\t\t\t\tif (fileName.endsWith(\".ggb\")) {\n\t\t\t\t\t\ttmpImage = new MyImageD(MyXMLioD.getPreviewImage(file)); // load\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// preview\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// zip\n\n\t\t\t\t\t\tStringBuilder fileInfo = new StringBuilder();\n\n\t\t\t\t\t\tif (fileName.length() > 20) {\n\t\t\t\t\t\t\tfileInfo.append(fileName.substring(0, 20));\n\t\t\t\t\t\t\tfileInfo.append(\"..\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfileInfo.append(fileName);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfileInfo.append(\" : \");\n\t\t\t\t\t\tfileInfo.append(file.length() / 1024);\n\t\t\t\t\t\tfileInfo.append(\" kB\");\n\t\t\t\t\t\tfileLabel.setText(fileInfo.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Update preview for saving a ggb file\n\t\t\t\telse if (fileChooser\n\t\t\t\t\t\t.getMode() == GeoGebraFileChooser.MODE_GEOGEBRA_SAVE) {\n\t\t\t\t\ttmpImage = (MyImageD)\n\t\t\t\t\t\t\tapp.getExportImage(MyXMLio.THUMBNAIL_PIXELS_X,\n\t\t\t\t\t\t\t\t\tMyXMLio.THUMBNAIL_PIXELS_Y);\n\t\t\t\t\t// TODO: show file size info?\n\t\t\t\t\tfileLabel.setText(null);\n\t\t\t\t}\n\n\t\t\t\t// Update preview for images\n\t\t\t\telse {\n\t\t\t\t\t// fails for a few JPEGs so turn off preview for large files\n\t\t\t\t\tif (file.length() < 1024 * maxImageSize) {\n\n\t\t\t\t\t\ttmpImage = MyImageD.fromFile(file, fileName);\n\t\t\t\t\t\tStringBuilder imgInfo = new StringBuilder();\n\n\t\t\t\t\t\tif (fileName.length() > 20) {\n\t\t\t\t\t\t\timgInfo.append(fileName.substring(0, 20));\n\t\t\t\t\t\t\timgInfo.append(\"..\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\timgInfo.append(fileName);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (tmpImage != null) {\n\t\t\t\t\t\t\timgInfo.append(\" : \");\n\t\t\t\t\t\t\timgInfo.append(tmpImage.getWidth());\n\t\t\t\t\t\t\timgInfo.append(\" x \");\n\t\t\t\t\t\t\timgInfo.append(tmpImage.getHeight());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfileLabel.setText(imgInfo.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// resize tmp image if necessary\n\t\t\t\tif (tmpImage != null) {\n\n\t\t\t\t\tint oldWidth = tmpImage.getWidth();\n\t\t\t\t\tint oldHeight = tmpImage.getHeight();\n\n\t\t\t\t\tint newWidth;\n\t\t\t\t\tint newHeight;\n\n\t\t\t\t\tif (oldWidth > ImagePanel.SIZE\n\t\t\t\t\t\t\t|| oldHeight > ImagePanel.SIZE) {\n\t\t\t\t\t\tif (oldWidth > oldHeight) {\n\t\t\t\t\t\t\tnewWidth = ImagePanel.SIZE;\n\t\t\t\t\t\t\tnewHeight = (ImagePanel.SIZE * oldHeight)\n\t\t\t\t\t\t\t\t\t/ oldWidth;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewWidth = (ImagePanel.SIZE * oldWidth) / oldHeight;\n\t\t\t\t\t\t\tnewHeight = ImagePanel.SIZE;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Create a new image for the scaled preview image\n\t\t\t\t\t\tsetImg(new MyImageD(new BufferedImage(newWidth,\n\t\t\t\t\t\t\t\tnewHeight, BufferedImage.TYPE_INT_RGB)));\n\n\t\t\t\t\t\tGGraphics2DD graphics2D = (GGraphics2DD) getImg()\n\t\t\t\t\t\t\t\t.createGraphics();\n\t\t\t\t\t\tif (tmpImage.isSVG()) {\n\t\t\t\t\t\t\tgraphics2D.setColor(GColor.WHITE);\n\t\t\t\t\t\t\tgraphics2D.fillRect(0, 0, newWidth, newHeight);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgraphics2D.drawImageScaled(tmpImage, newWidth, newHeight);\n\t\t\t\t\t\tgraphics2D.dispose();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetImg(tmpImage);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsetImg(null);\n\t\t\t\t}\n\n\t\t\t\trepaint();\n\t\t\t} catch (IllegalArgumentException iae) {\n\t\t\t\t// This is thrown if you select .ico files\n\t\t\t\tsetImg(null);\n\t\t\t} catch (Throwable t) {\n\t\t\t\tt.printStackTrace();\n\t\t\t\tLog.debug(t.getClass() + \"\");\n\t\t\t\tsetImg(null);\n\t\t\t}\n\t\t}", "@Override\n\tpublic void updateUserProfileInfo(String name) throws Exception {\n\n\t}", "public void updatePile(Item pile) {\n/* 2385 */ checkIfRenamePileItem(pile);\n/* */ }", "@Override\n\tprotected void onPhotoTaked(String photoPath) {\n\t\t\n\t}", "public void refreshImages() {\n\t\tsetContentView(R.layout.activity_overview);\n\t\trow = 0;\n\t\tcolumn = 0;\n\t\t// Open the file\n\t\tFile file = new File(getFilesDir().getAbsoluteFile() + \"/photos.txt\");\n\t\tLog.i(TAG, file.getAbsolutePath());\n\t\t// If there is no file, create a new one\n\t\tif (!file.exists()) {\n\t\t\ttry {\n\t\t\t\tfile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\t// Open an inputStream for reading the file\n\t\t\tFileInputStream inStream = openFileInput(\"photos.txt\");\n\t\t\tBufferedReader readFile = new BufferedReader(new InputStreamReader(inStream));\n\t\t\tpicturePaths = new ArrayList<String>();\n\t\t\tString receiveString = \"\";\n\t\t\t// Read in each line\n\t\t\twhile ((receiveString = readFile.readLine()) != null) {\n\t\t\t\t// Add the line to picturePaths and add an Image with the path specified\n\t\t\t\tpicturePaths.add(receiveString);\n\t\t\t\tLog.i(\"picture\", receiveString);\n\t\t\t\taddImage(receiveString);\n\t\t\t\treceiveString = \"\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void addPic(PictureStatus pictures) {\n \t\t\t\tpictureRepo.save(pictures);\r\n \t\t\t}", "public void changePhoto(ActionEvent actionEvent) {\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Picture Chooser\");\n // Sets up the initial directory as user folder when filechooser is opened\n fileChooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));\n\n // Sets the file type options\n fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"PNG and JPG files\", \"*.png\",\"*.jpg\",\"*.jpeg\"));\n\n userPhotoFile = fileChooser.showOpenDialog(null);\n\n if( userPhotoFile != null)\n {\n // Upload button's text is changed and the display image is changed to the selected image\n accountPhoto.setImage(new Image(userPhotoFile.toURI().toString()));\n changePhotoButton.setText(\"Change Photo\");\n }\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tif (SaveUtils.getLastExportedFileName(StatisticExportActivity.this)\n\t\t\t\t.length() > 1) {\n\t\t\tfilename.setText(getString(R.string.saved_history)\n\t\t\t\t\t+ \" \"\n\t\t\t\t\t+ SaveUtils\n\t\t\t\t\t\t\t.getLastExportedFileName(StatisticExportActivity.this));\n\t\t}\n\t}", "public synchronized void refresh()\n {\n // Update the last modified time\n // This returns zero (i.e. Jan 1 1970) if the file does not exist\n this.lastModifiedTime = this.file.lastModified() / 1000;\n }", "public void on_edit(ActionEvent actionEvent) {\r\n\t\tint index = getSelectedIndex();\r\n\t\tif ( 0 > index)\r\n\t\t\treturn;\r\n\r\n\t\tThumbnailItem thumbnailItem = ( ThumbnailItem)_defaultComboBoxModel.getElementAt( index);\r\n\r\n\t\tString original_filename = thumbnailItem._file.getName();\r\n\r\n\t\tEditImageFilenameDlg editImageFilenameDlg = new EditImageFilenameDlg( MainFrame.get_instance(),\r\n\t\t\tResourceManager.get( \"edit.image.filename.dialog.title\"),\r\n\t\t\ttrue, original_filename, _imagePropertyManager);\r\n\t\tif ( !editImageFilenameDlg.do_modal( _parent))\r\n\t\t\treturn;\r\n\r\n\t\tString new_filename = editImageFilenameDlg._new_filename;\r\n\r\n\t\tif ( !rename( thumbnailItem, new_filename))\r\n\t\t\treturn;\r\n\r\n\t\t_thumbnailListCallback.update();\r\n\r\n\t\tFile file = new File( _imageDirectory, original_filename);\r\n\t\tImage image = ( Image)AnimatorImageManager.get_instance().get( file.getAbsolutePath());\r\n\t\tif ( null != image) {\r\n\t\t\tAnimatorImageManager.get_instance().remove( file.getAbsolutePath());\r\n\t\t\tfile = new File( _imageDirectory, new_filename);\r\n\t\t\tAnimatorImageManager.get_instance().put( file.getAbsolutePath(), image);\r\n\t\t}\r\n\r\n\t\tObjectManager.get_instance().update_image( original_filename, new_filename);\r\n\r\n\t\tAnimatorView.get_instance().repaint();\r\n\r\n\t\tmodified();\r\n\t}", "public void setName(String name)\n {\n this.name = name;\n modifiedMetadata = true;\n addDetails(\"name\");\n }" ]
[ "0.6923744", "0.6060422", "0.5989895", "0.5921035", "0.5831031", "0.5781185", "0.57127", "0.56762606", "0.5560319", "0.5503561", "0.54669815", "0.54567885", "0.54507995", "0.54425377", "0.54095554", "0.540726", "0.5395489", "0.53940827", "0.53704965", "0.5333605", "0.5283733", "0.52806973", "0.52334", "0.52058697", "0.520232", "0.518253", "0.5173596", "0.51687837", "0.5167783", "0.516343", "0.51480067", "0.51405233", "0.5118123", "0.5114886", "0.51120865", "0.50914466", "0.5087998", "0.50879383", "0.5084928", "0.50796914", "0.5067961", "0.5026882", "0.50088334", "0.50032353", "0.5001201", "0.49964392", "0.4989655", "0.49856868", "0.4983333", "0.49709883", "0.49701265", "0.49652085", "0.49413598", "0.492971", "0.49221745", "0.4914424", "0.49065104", "0.48911104", "0.4880886", "0.48800346", "0.48525575", "0.4852385", "0.4842859", "0.48424396", "0.4837186", "0.48335904", "0.48321342", "0.48319215", "0.4827692", "0.48253667", "0.48036787", "0.48028105", "0.48020396", "0.47943178", "0.47801256", "0.47777227", "0.47749704", "0.4772755", "0.47721532", "0.47699896", "0.4761571", "0.4753887", "0.47523987", "0.47418383", "0.4741463", "0.47405356", "0.473518", "0.4731953", "0.47301972", "0.4724048", "0.47158673", "0.47149482", "0.4712832", "0.47054294", "0.47046956", "0.4704391", "0.47021326", "0.4700367", "0.47000772", "0.46978152" ]
0.73268586
0
Optional optionalConditionerEntity = conditionerRepository.findByUuidConditionerAndDeleted(conditionerUuid, false);
public ConditionerDto getConditionerById(String conditionerUuid) { Optional<ConditionerEntity> optionalConditionerEntity = conditionerRepository.findByUuidConditioner(conditionerUuid); if (!optionalConditionerEntity.isPresent()) { LOGGER.error(Messages.CONDITIONER + Messages.WITH_ID + conditionerUuid + Messages.NOT_FOUND); throw new ConditionerException(Messages.CONDITIONER + Messages.WITH_ID + conditionerUuid + Messages.NOT_FOUND); } ConditionerEntity conditioner = optionalConditionerEntity.get(); ConditionerDto conditionerDto = conditionerToDto(conditioner); try { LOGGER.info("Conditioner with id {} found", conditionerUuid); } catch (Exception e) { LOGGER.error(e.getMessage()); throw new ConditionerException(e.getMessage()); } return conditionerDto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface InventoryLineRepository extends CrudRepository<InventoryLine, Long> {\n List<InventoryLine> findAllByInventoryAndDeleted(Inventory inventory, boolean deleted);\n}", "@Test(expected = NoSuchElementException.class)\r\n\tpublic void testFindByIdAndDeleted_Deleted() {\r\n\t\tOptional<Sector> found = sectorRepository.findByIdAndDeleted(DB_STAND_SECTOR_DELETED, false);\r\n\t\tassertNull(found.get());\r\n\t}", "ZhuangbeiInfo selectByPrimaryKeyWithLogicalDelete(@Param(\"id\") Integer id, @Param(\"andLogicalDeleted\") boolean andLogicalDeleted);", "public interface RemoteConnectionsDao extends JpaRepository<RemoteConnectionsDomain, Long> {\n\n List<RemoteConnectionsDomain> findAllByDeletedFalseAndTryCountIsLessThanEqual(Integer tryCount);\n}", "DashboardGoods selectByPrimaryKeyWithLogicalDelete(@Param(\"id\") Integer id, @Param(\"andLogicalDeleted\") boolean andLogicalDeleted);", "public interface EventEquipmentRepository extends JpaRepository<EventEquipment, Integer> {\n ///query\n List<EventEquipment> findByEventid(Integer eventid);\n List<EventEquipment> findByEquipmentid(Integer equipmentid);\n EventEquipment findByEventidAndEquipmentid(Integer eventid, Integer equipmentid);\n\n //delete\n //eventid\n @Modifying\n @Transactional\n @Query(value=\"delete from EventEquipment ee where ee.eventid = ?1\")\n void deleteByEventid(Integer eventid);\n\n //equipmentid\n @Modifying\n @Transactional\n @Query(value=\"delete from EventEquipment ee where ee.equipmentid = ?1\")\n void deleteByEquipmentid(Integer equipmentid);\n\n //delete\n @Modifying\n @Transactional\n @Query(value=\"delete from EventEquipment ee where ee.eventid = ?1 and ee.equipmentid = ?2\")\n void deleteByEventidAndEquipmentid(Integer eventid, Integer equipmentid);\n}", "@Test(expected = NoSuchElementException.class)\r\n\tpublic void testFindByIdAndDeleted_NotDeleted() {\r\n\t\tOptional<Sector> found = sectorRepository.findByIdAndDeleted(DB_STAND_SECTOR_ID, true);\r\n\t\tassertNull(found.get());\r\n\t}", "public interface CommentRepository extends JpaRepository<Comment,Long> {\n\n @Query(\"select comment from Comment comment where comment.postedBy.login = ?#{principal.username}\")\n List<Comment> findByPostedByIsCurrentUser();\n\n @Query(\"SELECT DISTINCT comment FROM Comment comment LEFT JOIN FETCH comment.choices c WHERE \" +\n \"comment.lecture.id=:lectureId AND (:showDeleted=true OR (deleted IS NULL OR DELETED=false))\")\n List<Comment> findByPostedByLectureId(@Param(\"lectureId\") Long lectureId, @Param(\"showDeleted\") boolean showDeleted);\n\n}", "@Repository\npublic interface ProjectTemplateRepository extends JpaRepository<ProjectTemplate, Long> {\n Page<ProjectTemplate> findByProjectTypeIdAndAndDeleteStatueIsTrue(String query, Pageable pageable);\n}", "BehaveLog selectByPrimaryKeyWithLogicalDelete(@Param(\"id\") Integer id, @Param(\"andLogicalDeleted\") boolean andLogicalDeleted);", "Ad selectByPrimaryKeyWithLogicalDelete(@Param(\"id\") Integer id, @Param(\"andLogicalDeleted\") boolean andLogicalDeleted);", "public interface CarRepository extends CrudRepository<CarDO, Long> {\n\n List<CarDO> findByDeletedFalse();\n\n List<CarDO> findByEngineType(EngineType engineType);\n}", "@RepositoryRestResource\npublic interface DeletedEthnicityRepository extends JpaRepository<DeletedEthnicity, Long> {\n\n List<DeletedEthnicity> findByStudyId(Long id);\n}", "int deleteByExample(MVoucherDTOCriteria example);", "@Repository\r\npublic interface QuestionSpeciesJpaRepo extends JpaRepository<QuestionSpeciesEntity, String> {\r\n\r\n @Query(\"from QuestionSpeciesEntity where questionSetId=?1 and deleted=0 order by speciesIndex asc\")\r\n List<QuestionSpeciesEntity> findByQuestionSetId(String questionSetId);\r\n}", "SysNotice selectByPrimaryKeyWithLogicalDelete(@Param(\"id\") Integer id, @Param(\"andLogicalDeleted\") boolean andLogicalDeleted);", "public interface EmailTemplateRepository extends JpaRepository<EmailTemplate, Long> {\n List<EmailTemplate> findByNotificationTypeAndDefaultEmailTemplatesTrue(NotificationType notificationType);\n EmailTemplate findByUuid(String uuid);\n}", "@Override\n\tpublic String deleteByCondition(Familybranch con, Model m) throws Exception {\n\t\treturn null;\n\t}", "@Repository\npublic interface TeacherRepository extends JpaRepository<Teacher, Long> {\n Teacher findOneByUuid(String uuid);\n void deleteByUuid(String uuid);\n}", "int deleteByExample(BasicinfoCriteria example);", "@Repository\npublic interface GodownRepository extends JpaRepository<Godown, BigInteger> {\n\n //Get All Godown without isLog == True.\n List<Godown> findByCompanyCodeAndIsLogFalseOrderByNameAsc(@Param(\"companyCode\") int companyCode);\n\n //Inventory Godown Controller->RemoveFunc(),\n List<Godown> findByParentCodeAndIsLog(@Param(\"parentCode\") BigInteger parentCode, @Param(\"IsLog\") boolean isLog);\n\n //Get All CostCenter Without ID List\n List<Godown> findByCompanyCodeAndIsLogFalseAndIdNotIn(@Param(\"companyCode\") int companyCode, @Param(\"id\") List<BigInteger> id);\n\n //For isReplica\n Godown findByCompanyCodeAndNameAndIsLogFalse(@Param(\"companyCode\") int companyCode, @Param(\"name\") String name);\n\n\n}", "handy.storage.api.ColumnCondition<DeleteOperation<T>> where(String column);", "@Test(expected = NoSuchElementException.class)\r\n\tpublic void testFindByIdAndDeleted_NonExistent() {\r\n\t\tOptional<Sector> found = sectorRepository.findByIdAndDeleted(SECTOR_ID_NON_EXISTENT, false);\r\n\t\tassertNull(found.get());\r\n\t}", "public interface SisGoodsRecommendRepository extends JpaRepository<SisGoodsRecommend, Long>{\n @Modifying\n @Transactional(value = \"transactionManager\")\n @Query(\"delete from SisGoodsRecommend as sg where sg.goodsId=?1\")\n void deleteGoodsByGoodsId(Long goodsId);\n\n @Query(\"select max(sg.sortNo) from SisGoodsRecommend as sg where sg.customerId=?1\")\n Long findMaxSortNoByCustomerId(Long customerId);\n\n SisGoodsRecommend findByGoodsId(Long goodsId);\n\n}", "public interface Delable extends Entity {\n\n @PofM(who = P.A)\n default boolean delete() {\n ECCalculator ecc = new ECCalculator(this);\n\n TableId tableId = new TableId(this.getSchemaName(), this.getTableName());\n List<String> whereFields = ecc.getKeyFields();\n Where where = new Where(new Equal(tableId, whereFields.get(0)));\n whereFields.subList(1, whereFields.size()).forEach(f -> where.addExpression(true, new Equal(tableId, f)));\n\n PreparedSQL delete = new Delete(tableId).where(where);\n return DB.instance().preparedExecute(delete.toPreparedSql(), 1, ecc.getValuesInOrder(whereFields));\n }\n\n}", "public interface ReleaseRepository extends CrudRepository<Release, Long>, QueryDslPredicateExecutor {\n\n}", "@Transactional\npublic interface MealRepository extends CrudRepository<Meal, Long> {\n\n @Query(\"select m from #{#entityName} m where m.userId = ?1\")\n List<Meal> findMealsByUser(Long userId);\n\n @Modifying\n @Query(\"delete from #{#entityName} m where m.userId = ?1 order by m.dateTime desc limit 1\")\n void deleteUserLastMeal(Long userId);\n}", "@Repository\npublic interface EmployeeBasicDetailsRepository extends JpaRepository<EmployeeBasicDetails, Integer> {\n\n\tOptional<EmployeeBasicDetails> findByemployeeIdNumber(int employee_id_number);\n\n\tvoid deleteByemployeeIdNumber(int employee_id_number);\n}", "@Test\n public void testDeleteDoesNotThrowIfTheSimpledbConditionalCheckFailsOnlyOnce() throws Exception {\n\n testDelete(false, Optional.empty(), true, 2);\n }", "@Test(dependsOnMethods = \"update\")\n public void delete()throws Exception{\n repository.delete(id);\n OwnerRegion delete = repository.findOne(id);\n Assert.assertNull(delete);\n }", "void removeSearchConditionWithId(@Nullable Long searchConditionId);", "@Override\n\tpublic String deleteByCondition(Familynames con, Model m) throws Exception {\n\t\treturn null;\n\t}", "public interface CommentRepository extends JpaRepository<Comment, Long> {\n\n @Transactional\n @Modifying\n @Query(\"delete from Comment c where c.id = ?1\")\n void deleteBy(Long id);\n\n Comment findCommentById(Long id);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface BonusPriceRepository extends JpaRepository<BonusPrice, Long> {\n\n Optional<BonusPrice> findByActive(boolean b);\n}", "@Repository\npublic interface NoticyDao extends EntityDao<Noticy> {\n List<Noticy> findDelete(Page<Noticy> page);\n Long getTotalDelete(Page<Noticy> page);\n}", "public LdPublisher selectEntityWithDeletedCheckTx(LdPublisherCB cb) {\r\n assertConditionBeanNotNull(cb);\r\n dbflute.ldb.exentity.LdPublisher currentEntity = delegateSelectEntityTx(cb);\r\n assertRecordHasNotBeenDeleted(currentEntity, cb.toString());\r\n return currentEntity;\r\n }", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\npublic interface DriveSecurityRepository extends JpaRepository<DriveSecurity, Long> , QueryDslPredicateExecutor<DriveSecurity> {\n\n DriveSecurity findFirstByDriver_Id(Long id);\n\n}", "@Test\n public void deleteParameterFalseTest() {\n Mockito.when(this.repo.existsById(100001L)).thenReturn(false);\n boolean resultFromService = this.publisherService.deleteOneById(100001L);\n assertFalse(resultFromService);\n }", "int deleteByExample(TbaDeliveryinfoCriteria example);", "public interface RelationshipRepository extends JpaRepository<Relationship,Integer>{\n\t\n\n @Transactional\n List<Relationship> removeByOuseridAndUserid(Integer ouserid,Integer userid);\n \n @Transactional\n List<Relationship> removeByOuserid(Integer id);\n \n @Transactional\n List<Relationship> removeByUserid(Integer id);\n \n public List<Relationship> findByOuserid(Integer ouserid);\n \n public List<Relationship> findByUserid(Integer userid);\n \n \n\n}", "public interface UserFormDao extends BaseJpaRepository<UserForm> {\n\n List<UserForm> findUserFormsByUserIdEquals(Integer userId);\n\n UserForm findFirstByUserIdEqualsOrderById(Integer userId);\n\n void deleteAllByCreatedDateBefore(Date date);\n\n}", "@Override\n public Response throttlingDenyPolicyConditionIdDelete(String conditionId, MessageContext messageContext) {\n try {\n APIProvider apiProvider = RestApiCommonUtil.getLoggedInUserProvider();\n String username = RestApiCommonUtil.getLoggedInUsername();\n\n //This will give BlockConditionNotFoundException if there's no block condition exists with UUID\n BlockConditionsDTO existingCondition = apiProvider.getBlockConditionByUUID(conditionId);\n if (!RestApiAdminUtils.isBlockConditionAccessibleToUser(username, existingCondition)) {\n RestApiUtil.handleAuthorizationFailure(RestApiConstants.RESOURCE_BLOCK_CONDITION, conditionId, log);\n }\n apiProvider.deleteBlockConditionByUUID(conditionId);\n return Response.ok().build();\n } catch (APIManagementException e) {\n if (RestApiUtil.isDueToResourceNotFound(e)) {\n RestApiUtil.handleResourceNotFoundError(RestApiConstants.RESOURCE_BLOCK_CONDITION, conditionId, e, log);\n } else {\n String errorMessage = \"Error while deleting Block Condition. Id : \" + conditionId;\n RestApiUtil.handleInternalServerError(errorMessage, e, log);\n }\n }\n return null;\n }", "@Repository\npublic interface DriveManufacturerRepository extends JpaRepository<DriveManufacturer, Long> {\n\n\tOptional<DriveManufacturer> findByName(String name);\n\t\n\n\n}", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(YoungSeckillPromotionProductRelation.IS_DELETED) : andDeletedNotEqualTo(YoungSeckillPromotionProductRelation.IS_DELETED);\n }", "@Repository\npublic interface UserDao extends JpaRepository<UserEntity, Integer>, JpaSpecificationExecutor<UserEntity> {\n UserEntity findUserEntityByUserName(String username);\n UserEntity findUserEntityByUserId(Integer userId);\n\n @Modifying\n @Transactional\n void deleteUserEntityByUserId(Integer userId);\n\n}", "public interface PreventiveActionRepository extends CrudRepository<PreventiveAction, Long> {\r\n\r\n}", "int deleteByExample(MEsShoppingCartDTOCriteria example);", "@Delete\n Single<Integer> delete(Motivator motivator);", "public interface PartnerRepository extends JpaRepository<Partner,Long> {\n\n\tpublic Optional<Partner> findOneByTransparencyRegisterID(String transparencyRegisterID); \n}", "@Test\n public void deleteTarjetaPrepagoTest() throws BusinessLogicException \n {\n TarjetaPrepagoEntity entity = data.get(2);\n tarjetaPrepagoLogic.deleteTarjetaPrepago(entity.getId());\n TarjetaPrepagoEntity deleted = em.find(TarjetaPrepagoEntity.class, entity.getId());\n Assert.assertNull(deleted);\n }", "public interface TerminalOfMeetingRepository extends JpaRepository<Terminals_Of_Meeting,Integer> {\r\n\r\n @Query(value = \"SELECT t.*, tom.t_terminal_id FROM terminal t \" +\r\n \"LEFT JOIN ( SELECT terminal_id t_terminal_id FROM terminals_of_meeting \" +\r\n \"WHERE meeting_id = ?1 ) tom ON t.terminal_id = tom.t_terminal_id\"\r\n ,nativeQuery = true)\r\n List<Object> findTerminalStatusByMeetingId(Integer meeting_id);\r\n\r\n @Query(value = \"SELECT tom.* FROM terminals_of_meeting tom \" +\r\n \"WHERE meeting_id = ?1 and terminal_id = ?2 \"\r\n ,nativeQuery = true)\r\n Terminals_Of_Meeting findTerminalByMeetingIdAndTerminalId(Integer meeting_id,String terminalId);\r\n\r\n @Modifying\r\n @Transactional\r\n @Query(value = \"DELETE from terminals_of_meeting where meeting_id=?1\",nativeQuery = true)\r\n Integer deleteAllByMeetingId(Integer meeting_id);\r\n}", "public interface ConversationRepository extends CrudRepository<Conversation, UUID> {\n\n @Query(\"select c from Conversation c where c.tenant = :user or c.property.owner = :user order by c.updateDate desc \")\n Set<Conversation> findForUser(@Param(\"user\") User user);\n}", "@Repository\npublic interface ReasonMissionDeclinedRepository extends CrudRepository<ReasonMissionDeclined, Long>{\n ReasonMissionDeclined findByMissionAndDriver(Mission mission, Driver driver);\n List<ReasonMissionDeclined> findByMission(Mission mission);\n}", "@Repository\r\npublic interface ConversationRepository extends JpaRepository<Conversation, String>{\r\n\tList<Conversation> findByParrentId(String agreementId);\r\n\t\r\n\tlong deleteByParrentId(String agreementId);\r\n}", "public DeleteBuilder where(String condition) {\n\t\t\n\t\tCondition cond = new Condition(condition);\n\t\tdelete.setWhere(cond);\n\t\treturn this;\n\t}", "List<Post> findAllDescAndDeletedIsFalse();", "@Repository\npublic interface RunningInfoRepository extends JpaRepository<RunningInfo, String> {\n\n Page<RunningInfo> findAll(Pageable pageable);\n\n void deleteByRunningId(@Param(\"runningId\") String runningId);\n\n}", "Optional<Account> findByCustomer(Optional<Customer> customer);", "public DeleteBuilder where(Consumer<ConditionBuilder> condConsumer) {\n\t\t\n\t\tConditionBuilder cbuilder = new ConditionBuilder();\n\t\tcondConsumer.accept(cbuilder);\n\t\tCondition cond = cbuilder.getCondition();\n\t\tdelete.setWhere(cond);\n\t\t\n\t\treturn this;\n\t}", "public interface CmTaskRepository extends PagingAndSortingRepository<CmTask, Integer> {\n // Page<CmTask> findByDeletedFalse(Pageable pageable);\n Page<CmTask> findAll(Pageable pageable);\n}", "public interface CardRepository extends CrudRepository<Card, Long> {\n Card findByOnHand(boolean onHand);\n}", "JindouyunRole selectByPrimaryKeyWithLogicalDelete(@Param(\"id\") Integer id, @Param(\"andLogicalDeleted\") boolean andLogicalDeleted);", "int deleteByExample(EquipmentOrderExample example);", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface MMatchEnvironmentRepository extends JpaRepository<MMatchEnvironment, Long>, JpaSpecificationExecutor<MMatchEnvironment> {\n\n}", "Optional<Customer> findByIdAndIsDisabledFalse(Long id);", "public interface FaultInfoJpa extends JpaRepository<FaultInfo, Long> {\n\n FaultInfo findById(long id);\n\n/*\n @Query(\"select f from FaultInfo f where endTime is null or endTime < startTime\")\n List<FaultInfo> findByEndTimeIsNullOrEndTimeBeforeStartTime();\n*/\n}", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(SaleClassifyGood.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(SaleClassifyGood.Deleted.IS_DELETED.value());\n }", "@Override\n\tpublic BmsGroupEntity queryOne(Map<String, Object> condition) {\n\t\t\n\t\treturn (BmsGroupEntity) selectOne(\"com.jiuyescm.bms.base.group.mapper.BmsGroupMapper.queryOne\", condition);\n\t}", "public interface InvoiceRepository extends JpaRepository<Invoice, Long> {\n /**\n *\n * @return List of unconfirmed invoices\n */\n List<Invoice> findByConfirmedFalse();\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CarerClientRelationRepository extends JpaRepository<CarerClientRelation, Long>, JpaSpecificationExecutor<CarerClientRelation> {\n}", "int deleteByExample(TrueorfalseExample example);", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface EMContractRepository extends JpaRepository<EMContract, UUID>,EMContractRepositoryCustom {\n\n /**\n * add by namnh\n *\n * @return\n */\n @Override\n List<EMContract> findAll();\n\n List<EMContract> findAllByIsActiveTrue();\n @Query(value = \"select id from EMContract where UPPER(NoFBook) = UPPER (?1) and CompanyID = ?2 and isActive = 1\", nativeQuery = true)\n UUID findIdByNoFBook(String expenseItemCode, UUID companyId);\n\n @Query(value = \"select id from EMContract where UPPER(NoMBook) = UPPER (?1) and CompanyID = ?2 and isActive = 1\", nativeQuery = true)\n UUID findIdByNoMBook(String expenseItemCode, UUID companyId);\n}", "int deleteByExample(TestEntityExample example);", "@Repository\npublic interface ProductOptionRepository extends CrudRepository<ProductOption, Long> {\n\n ProductOption findByIdAndProductId(UUID id, UUID productId);\n\n List<ProductOption> findByProductId(UUID productId);\n}", "int logicalDeleteByExample(@Param(\"example\") DashboardGoodsExample example);", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(BDicTreeCode.IS_DELETED) : andDeletedNotEqualTo(BDicTreeCode.IS_DELETED);\n }", "public Condition getCondition() {\n return condition;\n }", "public LdPublisher selectForReadOnlyByPKMapStringWithDeletedCheckTx(String primaryKeyMapString) {\r\n assertStringNotNullAndNotTrimmedEmpty(\"primaryKeyMapString\", primaryKeyMapString);\r\n final LdPublisherCB cb = newMyConditionBean();\r\n cb.acceptPrimaryKeyMapString(primaryKeyMapString);\r\n final dbflute.ldb.exentity.LdPublisher currentEntity = delegateSelectEntityTx(cb);\r\n assertRecordHasNotBeenDeleted(currentEntity, primaryKeyMapString);\r\n return currentEntity;\r\n }", "public interface UserRepository extends CrudRepository<UserModel, Long> {\n List<UserModel> findByGmtSendGreaterThanEqualAndActiveTrue(long timestamp);\n}", "@Repository\npublic interface TransactionRepository extends CrudRepository<TransactionEntity, Long> {\n Optional<TransactionEntity> findByTxnId(String txnId);\n\n List<TransactionEntity> findByUid(String uid);\n}", "public interface Conditioned {\n @Nullable\n ROSCondition getCondition();\n }", "public void delete(HrJBorrowcontract entity);", "int deleteByExample(NotifictionExample example);", "public LdPublisher selectForUpdateByPKMapStringWithDeletedCheckTx(String primaryKeyMapString) {\r\n assertStringNotNullAndNotTrimmedEmpty(\"primaryKeyMapString\", primaryKeyMapString);\r\n final LdPublisherCB cb = newMyConditionBean();\r\n cb.acceptPrimaryKeyMapString(primaryKeyMapString).lockForUpdate();\r\n final dbflute.ldb.exentity.LdPublisher currentEntity = delegateSelectEntityTx(cb);\r\n assertRecordHasNotBeenDeleted(currentEntity, primaryKeyMapString);\r\n return currentEntity;\r\n }", "public interface UserLogRepository extends CrudRepository<UserLog, Long> {\n\n void deleteByTimeBetween(LocalDateTime startTime, LocalDateTime endTime);\n}", "public interface Delete<T extends Model> {\n\n\t/**\n\t * Executes the operation.\n\t *\n\t * @return the number of the deleted rows.\n\t * @throws OperationException if any error happen\n\t */\n\tint execute() throws OperationException;\n\n\t/**\n\t * Executes the operation. Returns <code>-1</code> if any error happen.\n\t *\n\t * @return the number of the deleted rows.\n\t */\n\tint executeSafely();\n\n\t/**\n\t * Builds a filtering expression for this operation.\n\t *\n\t * @param column a column's name from the table\n\t */\n\thandy.storage.api.ColumnCondition<DeleteOperation<T>> where(String column);\n\n\t/**\n\t * Sets a filtering expression for this operation.\n\t *\n\t * @param expression a {@link Expression} object built for this table.\n\t * @return this object\n\t * @throws IllegalArgumentException if passed expression was built for another table\n\t */\n\tDeleteOperation<T> where(Expression expression);\n\n\t/**\n\t * Limits the number of rows to delete. Use {@link #orderBy(String)} and\n\t * {@link #orderBy(String, Order)} to set a rule which rows should be\n\t * deleted first.\n\t *\n\t * @param limit mux number of items to delete\n\t * @return this object\n\t */\n\tDelete<T> limit(int limit);\n\n\t/**\n\t * Adds a column to order by during deleting. Use it only simultaneously\n\t * with {@link #limit(int)}.\n\t *\n\t * @param column column to order by\n\t * @return this object\n\t */\n\tDelete<T> orderBy(String column);\n\n\t/**\n\t * Adds a column to order by during deleting. Use it only simultaneously\n\t * with {@link #limit(int)}.\n\t *\n\t * @param column column to order by\n\t * @param order ascending or descending\n\t * @return this object\n\t */\n\tDelete<T> orderBy(String column, Order order);\n\n}", "@Query(\"SELECT inp FROM Input inp WHERE inp.id=?1 and inp.deleteFlag=0\")\n Input findByIdIp(Long id);", "@Repository\npublic interface OrderRepository extends JpaRepository<Order, Long> {\n\n\tpublic List<Order> findByStatus(String status);\n\t\n\tpublic Optional<Order> findByBuyerIdAndPaidStatus(Long buyerId, String paidStatus);\n\n\tpublic Boolean existsByBuyerIdAndPaidStatus(Long buyerId, String paidStatus);\n\n\tpublic Optional<Order> findByIdAndStatus(Long id, String status);\n\t\n}", "@Test\n public void givenStatus_whenDeleteByEntity_ThenReturnStatus() {\n ThreeEntity entity = new ThreeEntity(1,1,1);\n\n given(threeDao.delete(entity)).willReturn(Status.OK);\n\n StatusEntity status = threeService.delete(entity);\n\n assertEquals(Status.OK.getName(), status.getStatus());\n }", "int deleteByExample(ItoProductCriteria example);", "@Test\n public void testDeleteThrowsIfTheSimpledbConditionalCheckFailsThreeTimesRunning()\n throws Exception {\n\n testDelete(true, Optional.of(new Exception(\"Database put failed - conditional check failed\")),\n true, 3);\n }", "@Test\n public void deleteEspecieTest() throws BusinessLogicException {\n EspecieEntity entity = especieData.get(1);\n System.out.println(entity.getId());\n System.out.println(entity.getRazas().size());\n especieLogic.deleteEspecie(entity.getId());\n EspecieEntity deleted = em.find(EspecieEntity.class, entity.getId());\n Assert.assertTrue(deleted.getDeleted());\n }", "boolean isDeleted();", "public interface BranchRepository extends CrudRepository<Branch, Long> {\n\n Branch findOneByUuid(String uuid);\n}", "public Long getConditionId() {\n return _conditionId;\n }", "public interface GiftCertificateRepository extends Repository<GiftCertificate> {\n /**\n * * Updating the Gift Certificate with the parameters passed in the Entity\n *\n * @param giftCertificate - passed into the method GiftCertificate that is contained in one of all\n * tables in the DB\n * @return Optional<GiftCertificate> - container that is contained GiftCertificate\n */\n Optional<GiftCertificate> update(GiftCertificate giftCertificate);\n /**\n * * This method describes a general delete operation for all GiftCertificates with the specified\n * id, located in the DB\n *\n * @param id id - passed into the method id parameter that is contained in one of all tables in\n * the DB\n * @return int - return value more than 0, when Tag was deleted\n */\n int delete(long id);\n}", "@Repository\npublic interface SuratDisposisiDao extends JpaRepository<SuratDisposisi, String> {\n void deleteByNoSurat(String noSurat);\n List<SuratDisposisi> findByKdSuratPenugasanAndJenisSuratPenugasan(String kdSuratPenugasan, Integer jenisSuratPenugasan);\n}", "@Repository\npublic interface ModelAssignedResourcesRepository extends JpaRepository<ModelAssignedResources, ModelAssignedResourcesId> {\n\n\t@Modifying\n\t@Query(\"delete ModelAssignedResources MAR where MAR.id.modelId = :id\")\n\tint deleteByModelId(@Param(\"id\") Long id);\n\n\t/**\n\t * \n\t * This method returns ModelAssignedResources using model id.\n\t * \n\t * @param modelId\n\t * @return\n\t */\n\t@Query(\"SELECT MVL FROM ModelAssignedResources MVL WHERE MVL.id.modelId= :modelId\")\n\tList<ModelAssignedResources> findModelAssignedResourcesByModelId(@Param(\"modelId\") Long modelId);\n\t\n}", "@Test\n public void deleteParameterTrueTest() {\n Mockito.when(this.repo.existsById(1L)).thenReturn(true);\n boolean resultFromService = this.publisherService.deleteOneById(1L);\n assertTrue(resultFromService);\n }", "public interface PasswordResetTokenRepository extends JpaRepository<PasswordResetToken, Long> {\n\n PasswordResetToken findByToken(String token);\n\n PasswordResetToken findByUser(UserEntity user);\n\n Stream<PasswordResetToken> findAllByExpiryDateLessThan(Date now);\n\n void deleteByExpiryDateLessThan(Date now);\n\n @Modifying\n @Query(\"delete from PasswordResetToken t where t.expiryDate <= ?1\")\n void deleteAllExpiredSince(Date now);\n}" ]
[ "0.6198084", "0.6095415", "0.6082339", "0.60738176", "0.603106", "0.5967266", "0.5892629", "0.5892209", "0.5877717", "0.5724774", "0.56980395", "0.5666811", "0.560098", "0.55867434", "0.55650645", "0.5563859", "0.55608386", "0.553903", "0.55336016", "0.5518313", "0.551039", "0.5502516", "0.5476839", "0.5476109", "0.54703647", "0.54575694", "0.5454297", "0.54535115", "0.5447511", "0.5431656", "0.5405736", "0.53779924", "0.5363082", "0.5353372", "0.5351804", "0.5340348", "0.5338752", "0.53288645", "0.5324793", "0.5320631", "0.5320237", "0.531453", "0.5312958", "0.5310034", "0.5305927", "0.53034586", "0.53013164", "0.5300327", "0.52926147", "0.52845144", "0.528447", "0.5284297", "0.5275284", "0.52708083", "0.5264628", "0.5260929", "0.5247449", "0.5235435", "0.5232902", "0.522248", "0.5219098", "0.5218464", "0.5215488", "0.5215375", "0.5209734", "0.5208158", "0.52029335", "0.5201846", "0.51997674", "0.5186261", "0.5162225", "0.5160545", "0.5158629", "0.5157937", "0.51573277", "0.5153426", "0.5144977", "0.5141809", "0.5139695", "0.51391834", "0.5133692", "0.51314765", "0.5129425", "0.5129009", "0.5128198", "0.5127754", "0.512167", "0.51176834", "0.51137996", "0.51081115", "0.5107387", "0.51053315", "0.51036745", "0.50964737", "0.5095131", "0.5093394", "0.5090125", "0.5087031", "0.50858724", "0.50848335" ]
0.5800716
9
List listOdMaintenancy = conditionerEntity.getMaintenance();
private void createForPlanningTypeMaintenance(ConditionerEntity conditionerEntity, String typeMaintenanceUuid) { List<TypeMaintenanceEntity> typeMaint = conditionerEntity.getMaintenance().stream() .filter(m -> m.getUuidTypeMaintenance().equals(typeMaintenanceUuid)).collect(Collectors.toList()); for (TypeMaintenanceEntity entity : typeMaint) { Integer hoursBeforeTypeMaintenance = entity.getHoursBeforeTypeMaintenance(); LocalDateTime startDate = conditionerEntity.getStartDate(); LocalDateTime nextTypeMaintenancy = startDate.plusHours(hoursBeforeTypeMaintenance); ForPlanningTypeMaintenanceEntity en = ForPlanningTypeMaintenanceEntity.builder() .inventoryNumber(conditionerEntity.getInventoryNumber()) .lastTypeMaintenanceDate(conditionerEntity.getStartDate()) .nameConditioner(conditionerEntity.getNameConditioner()) .nextTypeMaintenanceDate(nextTypeMaintenancy) .place(conditionerEntity.getPlace()) .uuidConditioner(conditionerEntity.getUuidConditioner()) .uuidTypeMaintenance(typeMaintenanceUuid) .uuidRecord(utils.createRandomUuid()) .build(); forPlanningTypeMaintenanceRepository.save(en); LOGGER.info(Messages.RECORD_FOR_PLANNING + Messages.CHECK_UNIQUE_CONDITIONER + conditionerEntity.getInventoryNumber() + Messages.CREATED); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<VehicleMaintenance> getVehicleMaintenances(){\n\n return vehicleMaintenanceRepository.findAll();\n }", "public List<VehicleMaintenance> getVehicleMaintenances() {\n return vehicleMaintenanceRepository.findAll();\n }", "public List getGestionStockList(Map criteria);", "public List<StatusDemande> getStatusDemandes(){\n return statusDemandeRepository.findAll();\n }", "java.util.List<io.opencannabis.schema.commerce.CommercialOrder.StatusCheckin> \n getActionLogList();", "List<Consumption> listAll();", "@Override\n public List<Report> getStatusList(){\n List<Report> statusList = null;\n statusList = adminMapper.getStatusList();\n return statusList;\n }", "List<SchoolMasterVo> getSchoolMasterVoList();", "java.util.List<WorldUps.UTruck> \n getTruckstatusList();", "public List<DefectEntity> getDefectEntity();", "List<Reimbursement> adminGetReimbursements();", "io.dstore.values.StringValue getConditionList();", "List<Goods> getGoodsList();", "@SuppressWarnings(\"unchecked\")\n\t@RequestMapping(value = \"/auction/cs/unserviceableList.do\", method = RequestMethod.GET)\n\t@PreAuthorize(\"isAuthenticated()\")\n\tpublic ModelAndView getCsUnserviceableList() {\n\t\tMap<String, Object> model = new HashMap<String, Object>();\n\t\ttry {\n\t\t\tAuctionMst mstDb = new AuctionMst();\n\n\t\t\tList<CSItemTransactionMst> csTnxMstList = (List<CSItemTransactionMst>) (Object) commonService\n\t\t\t\t\t.getObjectListByAnyColumn(\"CSItemTransactionMst\",\n\t\t\t\t\t\t\t\"ledgerName\", UNSERVICEABLE);\n\t\t\tDepartments department = (Departments) commonService\n\t\t\t\t\t.getAnObjectByAnyUniqueColumn(\"Departments\", \"deptId\",\n\t\t\t\t\t\t\t\"505\");\n\n\t\t\tif (csTnxMstList.size() > 0) {\n\t\t\t\tAuctionMst auctionMst = new AuctionMst();\n\t\t\t\tauctionMst.setId(null);\n\t\t\t\tauctionMst.setCountDate(new Date());\n\t\t\t\tauctionMst.setDepartments(department);\n\t\t\t\tauctionMst.setCreatedDate(new Date());\n\t\t\t\tauctionMst.setCreatedBy(commonService.getAuthUserName());\n\n\t\t\t\tcommonService.saveOrUpdateModelObjectToDB(auctionMst);\n\n\t\t\t\tInteger maxMstId = (Integer) commonService\n\t\t\t\t\t\t.getMaxValueByObjectAndColumn(\"AuctionMst\", \"id\");\n\t\t\t\tmstDb = (AuctionMst) commonService\n\t\t\t\t\t\t.getAnObjectByAnyUniqueColumn(\"AuctionMst\", \"id\",\n\t\t\t\t\t\t\t\tmaxMstId + \"\");\n\n\t\t\t\tfor (CSItemTransactionMst mst : csTnxMstList) {\n\t\t\t\t\tString itemCode = mst.getItemCode();\n\t\t\t\t\tItemMaster itemMaster = (ItemMaster) commonService\n\t\t\t\t\t\t\t.getAnObjectByAnyUniqueColumn(\"ItemMaster\",\n\t\t\t\t\t\t\t\t\t\"itemId\", itemCode);\n\t\t\t\t\tDescoKhath descoKhath = (DescoKhath) commonService\n\t\t\t\t\t\t\t.getAnObjectByAnyUniqueColumn(\"DescoKhath\", \"id\",\n\t\t\t\t\t\t\t\t\tmst.getKhathId().toString());\n\n\t\t\t\t\tAuctionDtl dtl = new AuctionDtl();\n\t\t\t\t\tdtl.setId(null);\n\t\t\t\t\tdtl.setAuctionMst(mstDb);\n\t\t\t\t\tdtl.setItemMaster(itemMaster);\n\t\t\t\t\tdtl.setDescoKhath(descoKhath);\n\t\t\t\t\tdtl.setLedgerQty(mst.getQuantity());\n\t\t\t\t\tdtl.setStoreFinalQty(mst.getQuantity());\n\t\t\t\t\tauctionMst.setCreatedDate(new Date());\n\t\t\t\t\tauctionMst.setCreatedBy(commonService.getAuthUserName());\n\n\t\t\t\t\tcommonService.saveOrUpdateModelObjectToDB(dtl);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tList<AuctionDtl> dtlList = (List<AuctionDtl>) (Object) commonService\n\t\t\t\t\t.getObjectListByAnyColumn(\"AuctionDtl\", \"auctionMst.id\",\n\t\t\t\t\t\t\tmstDb.getId().toString());\n\n\t\t\tmodel.put(\"auctionMst\", mstDb);\n\t\t\tmodel.put(\"auctionDtlList\", dtlList);\n\t\t\treturn new ModelAndView(\"centralStore/auction/csUnserviceableList\",\n\t\t\t\t\tmodel);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tmodel.put(\"errorMsg\", e.getMessage());\n\t\t\treturn new ModelAndView(\"centralStore/error\", model);\n\t\t}\n\t}", "@Override\n\tpublic List<Maintenance> getMaintenanceByUser(int idUser) {\n\t\treturn dao.getMaintenanceByUser(idUser);\n\t}", "List<Status> getStatusAlteraveis() throws ServiceException;", "public Collection<LernStatus> getLernStadi() {\r\n Collection<LernStatus> result;\r\n \r\n String sql = \"select object(ls) from LernStatus ls \"\r\n + \"where THEMA_THEMENID = :TID\";\r\n \r\n Query q = EMH.getEntityManager().createQuery(sql);\r\n \r\n q.setParameter(\"TID\", this.themenID);\r\n \r\n result = q.getResultList();\r\n \r\n return result;\r\n }", "@Override\n\tpublic List<Historic_siteVO> religionlist(Criteria cri) throws Exception {\n\t\treturn dao.religionlist(cri);\n\t}", "@Override\n\tpublic List<Maintenance> getAllMaintenanceByDate(String dateStart, String dateEnd) {\n\t\treturn dao.getAllMaintenanceByDate(dateStart, dateEnd);\n\t}", "@Override\r\n\tpublic List<Tramite_presentan_info_impacto> lista() {\n\t\treturn tramite.lista();\r\n\t}", "@Override\n\tpublic ArrayList<Object> getList() {\n\t\tSession session = HibernateUtil.getSession();\n\t\tsession.beginTransaction();\n\t\tString hsql=\"from hibernate.pojo.GmSite as site where site.display='true'\";\n\t\tQuery query = session.createQuery(hsql);\n\t\tsession.getTransaction().commit();\n\t\tArrayList<Object> list = new ArrayList<Object>();\n\t\tlist = (ArrayList<Object>) query.list();\n\t\t\n\t\tsession.close();\n\t\treturn list;\n\t}", "public ArrayList<Booking> viewbookingsadmin() {\n\tStudentDAO studentDAO=new StudentDAO();\n\treturn studentDAO.viewbookingsadmin();\n\t\n\t\n}", "List<DenialReasonDto> showAll();", "public static List getStatusList() \n {\n session=SessionFact.getSessionFact().openSession();\n List li=session.createQuery(\"select status from Alumni_data group by status\").list();\n session.close();\n return li;\n }", "public java.util.List<IdDt> getCondition() { \n\t\tif (myCondition == null) {\n\t\t\tmyCondition = new java.util.ArrayList<IdDt>();\n\t\t}\n\t\treturn myCondition;\n\t}", "public List<StockItem> getStockList();", "public List getBeneficioDeudaList(Map criteria);", "@Override\n\tpublic List<StudyVO> list(Criteria cri) {\n \n\t\n\t\t \n\tList<StudyVO> list =mapper.list(cri);\n\tlogger.info(\"service계층에서list는\"+mapper.list(cri));\n\t\n\tlogger.info(\"service에서 list값은\"+list);\n\tSystem.out.println(\"service에서 list값은\"+list);\n\t\n\treturn list;\n\t\n\t\n\t}", "@Override\n\tpublic List<Administrateur> getList() {\n\t\topenCurrentSession();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Administrateur> list = (List<Administrateur>)getCurrentSession().createQuery(\"FROM Administrateur\").list();\n\t\tcloseCurrentSession();\n\t\treturn list;\n\t}", "java.util.List<WorldUps.UDeliveryMade> \n getDeliveredList();", "public List<Loan> getLoan();", "@Override\n\tpublic List<mOrders> getList() {\n\t\ttry{\n\t\t\tbegin();\n\t\t\tCriteria criteria = getSession().createCriteria(mOrders.class);\n\t\t\tcriteria.add(Restrictions.ne(\"O_Status_Code\",Constants.ORDER_STATUS_DELIVERIED ));\n\t\t\t//criteria.createAlias(\"O_BatchCode\", \"O_BatchCode\");\n\t\t\t//criteria.addOrder(Order.asc(\"O_BatchCode.value\"));\n\t\t\tList<mOrders> listOrders = criteria.list();\n\t\t\tcommit();\n\t\t\treturn listOrders;\n\t\t}catch(HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}finally{\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}", "Collection<Lesson> getActiveLessons() throws DataAccessException;", "@Override\r\n\tpublic List<ServicesDto> list() {\r\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"FROM ServicesDto WHERE active = TRUE\").list();\r\n}", "public List getValidarSapExistencia(Map criteria);", "public List<EntradaDeMaterial> buscarEntradasDisponibles();", "List<Status> mo9947a();", "@Override\r\n\tpublic List<CommandeDistri> livraisonEffective(List<CommandeDistri> list) {\n\t\treturn null;\r\n\t}", "public List<Departmentdetails> getDepartmentDetails();", "@SuppressWarnings(\"unchecked\")\t\r\n\t@Override\r\n\tpublic List<Distrito> listar() {\n\t\tList<Distrito> lista = new ArrayList<Distrito>();\r\n\t\tQuery q = em.createQuery(\"select m from Distrito m\");\r\n\t\tlista = (List<Distrito>) q.getResultList();\r\n\t\treturn lista;\r\n\t}", "public List<Permiso> obtenerTodosActivos();", "public List<CompanyStockDTO> findAllActive();", "@Override\n public List list() throws TransactionException {\n return hibernateQuery.list();\n }", "List<EquipmentCategory> getAllEquipment() throws PersistenceException;", "@Override\n\tpublic List<String> getListDueDate() {\n\t\ttry{\n\t\t\t\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT DISTINCT mo.O_DueDate\"\n\t\t\t\t\t+ \" FROM mOrders mo\"\n\t\t\t\t\t+ \"\tWHERE mo.O_Status_Code='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\"' \"\n\t\t\t\t\t\t\t+ \"OR mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"'\"\n\t\t\t\t\t+ \" ORDER BY mo.O_DueDate ASC\";\n\t\t\tList<String> lstOrDate = getSession().createQuery(sql).list();\n\t\t\t//System.out.println(name()+\"::getListDueDate--lstOrDate: \"+lstOrDate.toString());\n\t\t\tcommit();\n\t\t\t\n\t\t\treturn lstOrDate;\n\t\t\t\n\t\t}catch(HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}finally{\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}", "java.util.List<hr.domain.ResumeDBOuterClass.Education> \n getEducationsList();", "List<Hospital> listall();", "@SkipValidation\r\n\tpublic String invokeTerritoryList() throws Exception{\r\n\t\t\r\n\t\t //territoryList=dao_impl.fetchTerritory(); ------>>>>>Written in prepare method, so commented\r\n\t\t dsgnList = dao_impl.fetchDesignation();\r\n\t\t bloodGrpList = dao_impl.fetchBloodGroup();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t cityList = dao_impl.fetchCity();\r\n\t\t regionList = dao_impl.fetchRegion();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t \r\n\t\t System.out.println(\"size of bloodGrpList in AddMRAction class --->> \"+bloodGrpList.size());\r\n\t\t \r\n\t\t return \"SUCCESS\";\r\n\t\t\r\n\t}", "java.util.List<WorldUps.UInitTruck> \n getTrucksList();", "public List getOredCriteria() {\r\n return oredCriteria;\r\n }", "public List getOredCriteria() {\n return oredCriteria;\n }", "@Override\r\n\tpublic List<Famille> listCompetences() {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\t//on crée une requête\r\n \t\tQuery req=session.createQuery(\"select C from FamilleComp C\");\r\n \t\tList<Famille> famillecomp=req.list();\r\n session.getTransaction().commit();\r\n \t\treturn famillecomp;\r\n\t\t\r\n\t}", "public List getValidarCuvExistencia(Map criteria);", "@Override\n\tpublic List<Historic_siteVO> kangwonlist(Criteria cri) throws Exception {\n\t\treturn dao.kangwonlist(cri);\n\t}", "List<TransactionType> listAgentTransactionTypes();", "@Transactional(readOnly = true) \r\n public List<OsiMenuEntriesDTO> findAll() {\r\n log.debug(\"Request to get all OsiMenuEntries\");\r\n /* List<OsiMenuEntriesDTO> result = osiMenuEntriesRepository.findAll().stream()\r\n .map(osiMenuEntriesMapper::osiMenuEntriesToOsiMenuEntriesDTO)\r\n .collect(Collectors.toCollection(LinkedList::new));\r\n\r\n return result;*/\r\n return null;\r\n }", "@Override\n\tpublic void checkMaintenanceStatus() {\n\t}", "List<Edible> getEdibles();", "protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }", "@Override\n\tpublic List<Maintenance> getAllMaintenanceByEquip(int idEquip) {\n\t\treturn dao.getAllMaintenanceByEquip(idEquip);\n\t}", "List<Reservation> trouverlisteDeReservationAyantUneDateDenvoieDeMail();", "@Override\r\n\tpublic List<Admin> getAdminDetails() {\n\t\tList<Admin> admin =dao.getAdminDetails();\r\n return admin;\r\n\t}", "@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }", "public List getOredCriteria() {\r\n return oredCriteria;\r\n }", "public List getOredCriteria() {\r\n return oredCriteria;\r\n }", "public List getOredCriteria() {\r\n return oredCriteria;\r\n }", "public Collection<StatusChamado> listarStatusChamado(){\n return statusChamadoDAO.listarStatusChamado();\n }", "java.util.List<WorldUps.UGoDeliver> \n getDeliveriesList();", "@Override\r\n\tpublic List<PolicyMastVO> getNowPolicyMastList() {\n\t\treturn policyMastDao.getNowPolicyMastList();\r\n\t}", "Collection<String> getVoicedCommandList();", "@SuppressWarnings(\"unchecked\")\n\t@PersistenceContext\n\tpublic static List<KoeficientObject> getInListAllValueKoeficientObject() {\n\t\tEntityManagerFactory emfactory = GlobalVariableForSQL_DBase.getDBase();\n\t\tEntityManager entitymanager = GlobalVariableForSQL_DBase.getEntityManagerDBase(emfactory);\n\t\tentitymanager.getTransaction().begin();\n\t\tQuery query = entitymanager.createNamedQuery(\"getListAllKoeficientObject\");\n\t\tList<KoeficientObject> list = query.getResultList();\n\t\tentitymanager.close();\n\t\temfactory.close();\n\t\treturn list;\n\t}", "@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 List listar() {\n Query query = Database.manager.createNamedQuery(\"StatussistemaDTO.findAll\");\n query.setHint(QueryHints.MAINTAIN_CACHE, HintValues.FALSE);// evita consulta em cache\n List lista = query.getResultList();\n return lista;\n }", "public List<PeriodoLetivo> listAllActive() {\n EntityManager em = super.entityManager;\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<PeriodoLetivo> criteriaQuery = cb.createQuery(this.type);\n Root<PeriodoLetivo> root = criteriaQuery.from(this.type);\n \n Predicate ativeCondition = cb.equal(root.get(PeriodoLetivo.PROP_SITUACAO), SITUACAO_ATIVO);\n \n criteriaQuery.where(ativeCondition);\n \n TypedQuery<PeriodoLetivo> query = em.createQuery(criteriaQuery);\n return query.getResultList();\n }", "@Override\n\tpublic List<Historic_siteVO> chungchunglist(Criteria cri) throws Exception {\n\t\treturn dao.chungchunglist(cri);\n\t}", "public List getInwDepartCompetences(InwDepartCompetence inwDepartCompetence);", "public ObjectList getList(){\n return payroll;\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}", "List<Especialidad> getEspecialidades();", "List<Enrolment> getAll();", "public List getOredCriteria() {\n return oredCriteria;\n }", "public List getOredCriteria() {\n return oredCriteria;\n }", "public List getOredCriteria() {\n return oredCriteria;\n }", "public List getOredCriteria() {\n return oredCriteria;\n }", "public static EList<PertussisTreatmentNotGivenSubstanceAdministration> getPertussisTreatmentNotGivenSubstanceAdministrations(PertussisTherapeuticRegimenAct pertussisTherapeuticRegimenAct) {\r\n\t\tif (GET_PERTUSSIS_TREATMENT_NOT_GIVEN_SUBSTANCE_ADMINISTRATIONS__EOCL_QRY == null) {\r\n\t\t\tOCL.Helper helper = EOCL_ENV.createOCLHelper();\r\n\t\t\thelper.setOperationContext(PertussisPackage.Literals.PERTUSSIS_THERAPEUTIC_REGIMEN_ACT, PertussisPackage.Literals.PERTUSSIS_THERAPEUTIC_REGIMEN_ACT.getEAllOperations().get(64));\r\n\t\t\ttry {\r\n\t\t\t\tGET_PERTUSSIS_TREATMENT_NOT_GIVEN_SUBSTANCE_ADMINISTRATIONS__EOCL_QRY = helper.createQuery(GET_PERTUSSIS_TREATMENT_NOT_GIVEN_SUBSTANCE_ADMINISTRATIONS__EOCL_EXP);\r\n\t\t\t}\r\n\t\t\tcatch (ParserException pe) {\r\n\t\t\t\tthrow new UnsupportedOperationException(pe.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t\tOCL.Query query = EOCL_ENV.createQuery(GET_PERTUSSIS_TREATMENT_NOT_GIVEN_SUBSTANCE_ADMINISTRATIONS__EOCL_QRY);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tCollection<PertussisTreatmentNotGivenSubstanceAdministration> result = (Collection<PertussisTreatmentNotGivenSubstanceAdministration>) query.evaluate(pertussisTherapeuticRegimenAct);\r\n\t\treturn new BasicEList.UnmodifiableEList<PertussisTreatmentNotGivenSubstanceAdministration>(result.size(), result.toArray());\r\n\t}", "public List<Agent> findAgentsActifs() {\n Query q = getEntityManager().createQuery(\"select A from Agent A WHERE A.etat NOT IN('RET','DEM') ORDER BY A.personne.name\");\n List<Agent> list = q.getResultList();\n return list;\n }", "@Override\n\tpublic List<UsuariosEntity> findAdmin(){\n\t\treturn (List<UsuariosEntity>) iUsuarios.findAdmin();\n\t}", "public List<Refueling> getPendingRefuelings() throws DataAccessException;", "public List getResult(String conditing) {\n\t\treturn null;\r\n\t}", "public List<CustomersListSearchConditionsDTO> findAll();", "List<ObjectExpenseEntity> getAllObjectExpenses();", "public boolean getMaintenance() {\r\n\t\treturn maintenance;\r\n\t}", "public List<VehicleCategoryMasterBean> categoryList() throws Exception;", "List<ListObject> getSupplimentalCodeList();", "java.util.List<cb.Careerbuilder.Job> \n getJobsList();", "List<ExamPackage> getListIsComing();", "public void updateDesactivarGestionStock(Map criteria);", "List<IViewEntity> getConstraintEntities();", "List<Reimbursement> retrieveAllReimbursements();", "public List<Docl> getMaintenanceCreditARTaxList(MaintenanceRequest mrq){\n\t\tList<Docl> taxDoclList = new ArrayList<Docl>();\n\t\ttry{\n\t\t\tList<DoclPK> taxDoclPKList = maintenanceInvoiceDAO.getMaintenanceCreditARTaxDoclPKs(mrq);\n\t\t\tfor(DoclPK doclPK : taxDoclPKList){\n\t\t\t\ttaxDoclList.add(doclDAO.findById(doclPK).orElse(null));\n\t\t\t}\n\t\t\treturn taxDoclList;\n\t\t}catch(Exception ex){\n\t\t\tthrow new MalException(\"generic.error.occured.while\", \n\t\t\t\t\tnew String[] { \"retrieving creditAR tax for purchase order number: \" + mrq.getJobNo()}, ex);\n\t\t}\n\t}", "@Override\r\n\tpublic List prodStockseach() {\n\t\treturn adminDAO.seachProdStock();\r\n\t}" ]
[ "0.73816675", "0.6915587", "0.66470444", "0.6298525", "0.62703377", "0.61549926", "0.60793924", "0.5978981", "0.59719485", "0.5926496", "0.59235436", "0.58768606", "0.5871679", "0.5870046", "0.58674604", "0.58547527", "0.5807618", "0.5788335", "0.57643586", "0.5750347", "0.5748076", "0.5742211", "0.57414335", "0.5741072", "0.5735341", "0.57342106", "0.57315797", "0.5720764", "0.5705956", "0.570484", "0.56995666", "0.5698202", "0.5697472", "0.5690976", "0.56892", "0.5677722", "0.5676115", "0.56721807", "0.5663533", "0.5637715", "0.56358916", "0.5630607", "0.562859", "0.5624576", "0.5610941", "0.5600438", "0.55926347", "0.55841786", "0.5573899", "0.5547899", "0.5544852", "0.5541055", "0.55408037", "0.553841", "0.5536043", "0.5535359", "0.5534693", "0.5529799", "0.5529454", "0.5528414", "0.55280787", "0.55239475", "0.5514882", "0.55130726", "0.55130726", "0.55130726", "0.55027354", "0.54977083", "0.54889655", "0.5483411", "0.54720396", "0.54669183", "0.54634064", "0.5459987", "0.5454015", "0.5451422", "0.5449884", "0.54452914", "0.5445046", "0.5444298", "0.5429369", "0.5429369", "0.5429369", "0.5429369", "0.54291636", "0.5427082", "0.54239345", "0.54223144", "0.54167217", "0.54149634", "0.5411232", "0.54112166", "0.54098105", "0.5407559", "0.54074293", "0.5406741", "0.54008996", "0.5399769", "0.53996295", "0.5398929", "0.53936315" ]
0.0
-1
for clock and speaker
private void msg(String name, String message) { System.out.println("[" + (System.currentTimeMillis() - system_start_time) + "] " + name + ": " + message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getClock();", "public void clockChange(int time);", "public void clock(double period);", "private static void showClock(MicroBlazeProcessor mb) {\r\n Clock clock = mb.getClock();\r\n //System.out.println(\"Number o clock cycles:\"+clock.getLatency());\r\n console.print(\"Number o clock cycles:\"+clock.getLatency());\r\n }", "void note(float start, float duration, float freq){\n\t out.playNote(start,duration,freq); \n\t }", "public void internal_event(){\n logical_clock = logical_clock + 1;\n System.out.println(\"Internal Event Clock:\" +logical_clock);\n //encrypt(logical_clock);\n }", "public void generateTimes() {\n\n\t\tLocalTime currentTime = PropertiesConfig.getMorningSessionBegin();\n\t\tfor (Talk talk : morningSession.getTalks()) {\n\t\t\ttalk.setTime(currentTime);\n\t\t\tcurrentTime = currentTime.plusMinutes(talk.getLength());\n\t\t}\n\n\t\tTalk lunch = new Talk(PropertiesConfig.LUNCH_TITLE);\n\t\tlunch.setTime(PropertiesConfig.getLunchBegin());\n\t\tlunchSession.addTalk(lunch);\n\n\t\tcurrentTime = PropertiesConfig.getAfternoonSessionBegin();\n\t\tfor (Talk talk : afternoonSession.getTalks()) {\n\t\t\ttalk.setTime(currentTime);\n\t\t\tcurrentTime = currentTime.plusMinutes(talk.getLength());\n\t\t}\n\n\t\tTalk meetEvent = new Talk(PropertiesConfig.MEET_EVENT_TITLE);\n\t\tmeetEvent.setTime(currentTime);\n\t\tmeetSession.addTalk(meetEvent);\n\t}", "public void startClock() {\n Timer timer = new Timer(100, new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n String dateTime = new Date().toString();\n \n clockLabel.setText(dateTime);\n \n }\n });\n timer.start();\n }", "public int giveClock()\n {\n return clock;\n }", "private void startClock() {\r\n\t\tTimer timer = new Timer(500, new ActionListener() {\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent theEvent) {\r\n\t\t\t\tadvanceTime();\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n timer.setRepeats(true);\r\n timer.setCoalesce(true);\r\n timer.setInitialDelay(0);\r\n timer.start();\r\n\t}", "public void printClock() {\n\t\tSystem.out.println(this);\n\t}", "public String displayClock()\r\n\t{\r\n\t\treturn stringFormatter(numberDisplay1.getHour()) + \":\"\r\n\t\t\t\t+ stringFormatter(numberDisplay1.getMinute()) + \":\"\r\n\t\t\t\t+ stringFormatter(numberDisplay1.getSecond());\r\n\t}", "public void setClock(Clock clock) {\n this.clock = clock;\n }", "public interface ClockObserver {\n\t\n\t/**\n\t * Each time the global time is updated, this method is called\n\t * @param time\n\t */\n\tpublic void clockChange(int time);\n\t\n\t/**\n\t * Each time the jump time is updated, this method is called\n\t * @param nextJump\n\t */\n\tpublic void nextClockChange(int nextJump);\n\t\n\t/**\n\t * To know if the method is successfully called\n\t * @return true or false\n\t */\n\tpublic boolean isNextClockChangeCalled();\n\t\n\t/**\n\t * To know if the method is successfully called\n\t * @return true or false\n\t */\n\tpublic boolean isClockChangeCalled();\n}", "public void timer()\n{\n textSize(13);\n controlP5.getController(\"time\").setValue(runtimes);\n line(400, 748, 1192, 748);\n fill(255,0,0);\n for (int i =0; i<25; i++)\n {\n line(400+i*33, 743, 400+i*33, 753);\n text(i, 395 +i*33, 768);\n }\n if ((runtimes < 1 || runtimes > 28800) && s == true)\n {\n //origint = 0;\n runtimes = 1;\n //pausets = 0;\n runtimep = 0;\n } else if (runtimes > 0 && runtimes < 28800 && s == true)\n {\n runtimep = runtimes;\n runtimes = runtimes + speed;\n }\n timeh= runtimes/1200;\n timem= (runtimes%1200)/20;\n}", "public void updateClock() {\n if (!this.mDemoMode) {\n this.mCalendar.setTimeInMillis(System.currentTimeMillis());\n setText(getSmallTime());\n setContentDescription(this.mContentDescriptionFormat.format(this.mCalendar.getTime()));\n }\n }", "protected void runClock() {\r\n // stop gameClock while game is iconified\r\n if( isRunning && (getState() == Frame.NORMAL) ) {\r\n seconds++;\r\n\r\n int hrs = seconds / 3600;\r\n int mins = seconds / 60 - hrs * 60;\r\n int secs = seconds - mins * 60 - hrs * 3600;\r\n\r\n String strHr = (hrs < 10 ? \"0\" : \"\") + Integer.toString( hrs );\r\n String strMin = (mins < 10 ? \"0\" : \"\") + Integer.toString( mins );\r\n String strSec = (secs < 10 ? \"0\" : \"\") + Integer.toString( secs );\r\n\r\n timeMesg.setText( strHr + \":\" + strMin + \":\" + strSec );\r\n }\r\n }", "Clock tryGetClock();", "public Clock()\n {\n hour = 11;\n min = 28;\n sec = 12;\n }", "public void currentTime() {\n Thread clock = new Thread() {\n public void run() {\n for (;;) {\n Calendar cal = new GregorianCalendar();\n int second = cal.get(Calendar.SECOND);\n int minute = cal.get(Calendar.MINUTE);\n int hour = cal.get(Calendar.HOUR);\n \n txtKluar.setText(hour + \":\" + minute + \":\" + second + \" \");\n try {\n sleep(1000);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }\n }\n };\n clock.start();\n }", "public void play() \n{\n s = !s; \n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true)\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n}", "@Override\n public void pauseClock() {\n state = ClockState.PAUSED;\n // TODO Auto-generated method stub\n\n }", "@Override\r\n\tpublic void showDoTimeMessage(Player player) {\n\t}", "private void drawClockHand(GraphicsContext gc) {\n\t\t\n\t\tdouble x1 = getX();\n\t\t//double y1 = getY() + getHeight() / 2 - getTimeLabelHeight();\n\t\tdouble y1 = getY() + (getHeight() - getTimeLabelHeight()) / 2;\n\t\tdouble x2 = getX() + Math.cos(Math.toRadians(getClockHandAngle())) \n\t\t\t\t* getClockRadius();\n\t\t\n\t\tdouble y2 = (y1) + \n\t\t\t\tMath.sin(Math.toRadians(getClockHandAngle())) \n\t\t\t\t* getClockRadius();\n\t\t\n\t\tgc.setStroke(Color.BLACK);\n\t\tgc.strokeLine(x1, y1, x2, y2);\n\t\t\n\t}", "public void updateClock(){\n clock += 1;\n if(clock >= 10000){\n clock = 0;\n }\n if (clock % (180 - playerShipManaRate) == 0){\n updateMana(\"player\", 1);\n }\n if (clock % (180 - enemyShipManaRate) == 0){\n updateMana(\"enemy\", 1);\n }\n }", "protected void paintClock(){\n\t\tdouble clockRadius = Math.min(width, height) * 0.8 * 0.5;\n\t\tdouble centerX = width / 2;\n\t\tdouble centerY = height / 2;\n\t\t//Draw circle \n\t\tCircle circle = new Circle(centerX, centerY, clockRadius);\n\t\tcircle.setFill(Color.WHITE);\n\t\tcircle.setStroke(Color.BLACK);\n\t\t\n\t\tText t1 = new Text(centerX - 5, centerY - clockRadius + 12, \"12\");\n\t\t\n\t}", "void playTone(){\n t = new Thread() {\n public void run(){\n isRunning = true;\n setPriority(Thread.MAX_PRIORITY);\n\n\n\n audioTrack.play();\n\n for (int i = 0; i < message.length(); i++) {\n\n ASCIIBreaker breaker = new ASCIIBreaker((int)message.charAt(i));\n\n int frequencies[] = breaker.ASCIIToFrequency();\n\n //Generate waves for all different frequencies\n for(int fre : frequencies) {\n audioTrack.write(generateSineInTimeDomain(fre),0,sample_size);\n }\n\n audioTrack.write(generateSineInTimeDomain(7000),0,sample_size);\n }\n\n audioTrack.stop();\n audioTrack.release();\n }\n };\n t.start();\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 showTime()\n {\n showText(\"Time: \" + time, 700, 25);\n }", "public void setAlarmClock() {\n\n }", "public void setTime(){\r\n \r\n }", "private void runClock() {\n new Thread(() -> {\n while (true) {\n Date d = new Date();\n lblTime.setText(Application.TIME_FORMAT.format(d));\n lblDate.setText(Application.DATE_FORMAT.format(d));\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ex) {\n // ignore\n }\n }\n }).start();\n }", "public void start() throws InterruptedException {\n for (int i = 0; i < seconds; i--) {\n\t System.out.println(\"\" +seconds ); \n\t \n }\n\t/*\n\t * 3. When the timer is finished, use the playSound method to play a moo\n\t * sound. You can download one from freesound.org, then drag it into\n\t * your default package. Tell the students (by speaking) it's time to walk.\n\t */\n\n}", "public void timeTick()\r\n\t{\r\n\t\tnumberDisplay1.increment();\r\n\t}", "protected void playPatch(Patch p) {\n if (AppConfig.getSequencerEnable())\n playSequence();\n else\n playNote();\n }", "public void timer() \r\n\t{\r\n\t\tSeconds.tick();\r\n\t \r\n\t if (Seconds.getValue() == 0) \r\n\t {\r\n\t \tMinutes.tick();\r\n\t \r\n\t \tif (Minutes.getValue() == 0)\r\n\t \t{\r\n\t \t\tHours.tick();\r\n\t \t\t\r\n\t \t\tif(Hours.getValue() == 0)\r\n\t \t\t{\r\n\t \t\t\tHours.tick();\r\n\t \t\t}\r\n\t \t}\r\n\t }\t\t\r\n\t \r\n\t updateTime();\r\n\t }", "public void testTheClock() throws Exception\r\n {\r\n Clock clock = new SimpleClock();\r\n String timestamp = clock.getTimestamp();\r\n Logger logger = Logger.getLogger( \"test\" );\r\n logger.info( timestamp );\r\n }", "public Clock(/*TODO: Pass through appropriate layout views and clock-ish such*/) {\r\n super();\r\n\r\n //TODO: INSTANTIATE VARIABLES!!!\r\n }", "@Override\n\tpublic void update(Clocking clocking) {\n\t\n\t}", "@Override\n public void timeChanged(MediaPlayer mp, long l) {\n }", "public ClockDisplay()\r\n\t{\t\t\r\n\t\t\r\n\t\tthis.numberDisplay1 = new NumberDisplay();\r\n\t}", "public /* synthetic */ void lambda$onReceive$2$Clock$2() {\n Clock.this.updateClock();\n }", "protected void startClock() {\r\n if( !isRunning ) {\r\n isRunning = true;\r\n seconds = 0;\r\n timeMesg.setText( Msgs.str( \"zeroTime\" ) );\r\n infoMesg.setText( Msgs.str( \"Running\" ) );\r\n gameClock.start();\r\n }\r\n }", "public void setUpSound() {\n try {\n generateTone();\n setFrequencyLabel();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException, FontFormatException {\n clockDesign = new display(clock.gethour(),true);\n clockDesign.setVisible(true);\n //clockDesign.getHours1().setBackground(new Color(0,0,0));\n clockDesign.getAlarm().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n alarmDesign.setVisible(true);\n alarmDesign.getSetAlarm().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n alarm.setAlarmHour(Integer.parseInt(alarmDesign.getHours().getText().toString()));\n alarm.setAlarmMinute(Integer.parseInt(alarmDesign.getMinutes().getText().toString()));\n Alarm.setFlag(1);\n clockDesign.setVisible(true);\n }\n });\n }\n });\n\n Timer timer = new Timer();\n timer.schedule(new DigitalClockProject(), 0, 1000);\n }", "@Override\n\t\tpublic void run() {\n\t\t\tgenTone();\n\t\t\tplaySound();\n\t\t}", "public void timer() {\r\n date.setTime(System.currentTimeMillis());\r\n calendarG.setTime(date);\r\n hours = calendarG.get(Calendar.HOUR_OF_DAY);\r\n minutes = calendarG.get(Calendar.MINUTE);\r\n seconds = calendarG.get(Calendar.SECOND);\r\n //Gdx.app.debug(\"Clock\", hours + \":\" + minutes + \":\" + seconds);\r\n\r\n buffTimer();\r\n dayNightCycle(false);\r\n }", "public void pickUpTimer()\r\n\t{\t\t\r\n\t\tSystem.out.println(timer.get());\r\n\t\tif(timer.get() < Config.Auto.timeIntakeOpen)\r\n\t\t{\r\n\t\t\t//claw.openClaw();\r\n\t\t\tSystem.out.println(\"in second if\");\r\n\t\t}\r\n\t\t\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeElevatorStack)\r\n\t\t{\r\n\t\t\t//elevator.setLevel(elevatorLevel);\r\n\t\t\t//elevatorLevel++;\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeIntakeClose)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"in first if\");\r\n\t\t\t//claw.closeClaw();\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t\tendRoutine();\r\n\t}", "public static void displayClock(Stage primaryStage) {\n ClockPane clock = new ClockPane();\n String timeString = clock.getHour() + \":\" + clock.getMinute()\n + \":\" + clock.getSecond();\n Label lblCurrentTime = new Label(timeString);\n\n // Place clock and label in border pane\n BorderPane pane = new BorderPane();\n pane.setCenter(clock);\n pane.setBottom(lblCurrentTime);\n BorderPane.setAlignment(lblCurrentTime, Pos.TOP_CENTER);\n\n // Create a scene and place it in the stage\n Scene scene = new Scene(pane, 250, 250);\n primaryStage.setTitle(\"DisplayClock\"); // Set the stage title\n primaryStage.setScene(scene); // Place the scene in the stage\n primaryStage.show(); // Display the stage\n }", "@Override\n\tpublic void nowPlaying() {\n\t}", "private void speakOut() {\n\n tts.speak(\"Hello I am jessie\", TextToSpeech.QUEUE_FLUSH, null);\n tts.setLanguage(Locale.ENGLISH);\n //tts.setPitch(9);\n tts.setSpeechRate(1);\n }", "@Override\n public void updateTimer(int time) {\n if (isEnglish) {\n String temp = TIME_LEFT + time;\n painterTextViewTime.setText(temp);\n } else {\n String temp = TIME_LEFT_CHINESE + time;\n painterTextViewTime.setText(temp);\n }\n }", "private void m6669y() {\n long currentTimeMillis = System.currentTimeMillis();\n long j = this.f5381A;\n if (currentTimeMillis - j > 200 || j == 0) {\n this.f5381A = currentTimeMillis;\n AudioManager audioManager = this.f5405Y;\n if (audioManager != null) {\n if (this.f5414ea) {\n audioManager.setParameters(\"audio_recordaec_enable=0\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_off_selector);\n this.f5414ea = false;\n C1492b.m7433a((Context) AppFeature.m6734b(), getResources().getString(R.string.aec_close), 0);\n } else {\n audioManager.setParameters(\"audio_recordaec_enable=1\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_on_selector);\n this.f5414ea = true;\n C1492b.m7433a((Context) AppFeature.m6734b(), getResources().getString(R.string.aec_open), 0);\n }\n C1387D.m6763a(this.f5414ea);\n }\n }\n }", "public ClockPanel() {\n Border border = BorderFactory.createLineBorder(Color.green, 5); //creates a border\n setLayout(new FlowLayout(FlowLayout.CENTER, 5, 0));\n setLabels();\n setBackground(new Color(0, 0, 0));\n setBorder(border);\n setBounds(0, 0, 390, 170);\n setVisible(true);\n\n timer = new Timer();\n TimerTask task = new TimerTask() {\n @Override\n public void run() {\n tickTock();\n }\n };\n timer.scheduleAtFixedRate(task, 0, 1000);\n }", "public abstract void systemTurnStarts(long ms);", "public void play() { \r\n if (midi) \r\n sequencer.start(); \r\n else \r\n clip.start(); \r\n timer.start(); \r\n play.setText(\"Stop\"); \r\n playing = true; \r\n }", "public abstract void updateMixer();", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "public void onTick(long millisUntilFinished) {\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }", "public abstract void systemFeedbackStarts(long ms);", "void start() \r\n {\r\n while (controller.clock <= controller.totalBurstTime) {\r\n this.clock();\r\n }\r\n }", "public void setDelay(double clock);", "default public int getClockSynchPort()\t\t\t\t\t{ return 2224; }", "public interface Clock {\n\n /**\n * @return The current time in milliseconds since epoch time.\n * @see System#currentTimeMillis()\n */\n long now();\n\n /**\n * Computes a point of time in the future.\n * \n * @param durationInMillis The point in the future, in milliseconds relative to the {@link #now()\n * current time}.\n * @return A timestamp representing a point in the future.\n */\n long laterBy(long durationInMillis);\n\n /**\n * Tests if a point in time occurs before the {@link #now() current time}.\n * \n * @param endInMillis The timestamnp to check.\n * @return Whether the given timestamp represents a point in time before the current time.\n */\n boolean isNowBefore(long endInMillis);\n\n}", "void tick() { \r\n if (midi && sequencer.isRunning()) { \r\n audioPosition = (int) sequencer.getTickPosition(); \r\n progress.setValue(audioPosition); \r\n } else if (!midi && clip.isActive()) { \r\n audioPosition = (int) (clip.getMicrosecondPosition() / 1000); \r\n progress.setValue(audioPosition); \r\n } else \r\n reset(); \r\n }", "public void clock(int /* sound_sample */Vi) {\n\t\t// This is handy for testing.\n\t\tif (!enabled) {\n\t\t\t// Remove maximum DC level since there is no filter to do it.\n\t\t\tVlp = Vhp = 0;\n\t\t\tVo = Vi - mixer_DC;\n\t\t\treturn;\n\t\t}\n\n\t\t// delta_t is converted to seconds given a 1MHz clock by dividing\n\t\t// with 1 000 000.\n\n\t\t// Calculate filter outputs.\n\t\t// Vo = Vlp - Vhp;\n\t\t// Vlp = Vlp + w0lp*(Vi - Vlp)*delta_t;\n\t\t// Vhp = Vhp + w0hp*(Vlp - Vhp)*delta_t;\n\n\t\tint /* sound_sample */dVlp = (w0lp >> 8) * (Vi - Vlp) >> 12;\n\t\tint /* sound_sample */dVhp = w0hp * (Vlp - Vhp) >> 20;\n\t\tVo = Vlp - Vhp;\n\t\tVlp += dVlp;\n\t\tVhp += dVhp;\n\t}", "public void tick()\n {\n \n move();\n if(redShellOn)\n moveShell();\n timer += .1;\n \n //adjusts the time based on the difficulty level\n if(!pause)\n {\n if(difficult.equals(\"EASY\"))\n {\n if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer > 0) \n {\n timer2 += .045;\n powerupTimer -=.045;\n }\n else\n {\n timer2 += .067;\n if(powerupTimer > 0)\n {\n powerupTimer -= .067;\n }\n }\n }\n else if(modeT)\n {\n if(snakeOnDot() || wideSnakeOnDot())\n {\n tempScore = timer2;\n }\n if(!((lastpowerUp.equals(\"RAINBOW\")||lastpowerUp.equals(\"CRYSTAL\")) && powerupTimer>0))\n timer2 -= .025;\n //add here\n \n //System.out.println(\"Temp score: \" + tempScore + \"\\nTimer2: \" + timer2 + \"\\n\");\n if(tempScore -10 +3 < timer2)\n timer3 +=.025;\n if(lastpowerUp.equals(\"DOUBLE\") && powerupTimer > 0)\n {\n if(tempScore -20 + 6 < timer2)\n timer3 += .025;\n }\n if(powerupTimer > 0)\n {\n powerupTimer -= .025;\n }\n }\n else if(difficult.equals(\"MEDIUM\")||difficult.equals(\"GHOST\")|| difficult.equals(\"TROLL\"))\n {\n timer2 += .045;\n if(powerupTimer > 0)\n {\n powerupTimer -= .045;\n }\n }\n else if(difficult.equals(\"HARD\"))\n {\n timer2 += .03;\n if(powerupTimer > 0)\n {\n powerupTimer -= .03;\n }\n }\n else if(difficult.equals(\"YOU WILL NOT SURVIVE\"))\n {\n timer2 += .01;\n if(powerupTimer > 0)\n {\n powerupTimer -= .01;\n }\n }\n \n \n } \n }", "public void nextClockChange(int nextJump);", "public void timePasses(){\n crtClock++;\n if(crtClock==25)crtClock=1; // If end of day, reset to 1\n if(crtClock<=opHours)tellMeterToConsumeUnits(unitsPerHr);\n }", "final protected void sendClock() {\n\t\tNode cn = peers.iterator().next();\n\t\tif (cn.serial - serial == 1 || (serial - cn.serial != 1 && cn.serial < serial))\n\t\t\tsend(cn);\n\t\telse\n\t\t\tsendAllBut(cn);\n\t}", "void setTime() {\n\t\tCalendar now = Calendar.getInstance();\n\t\tangleHours = (270 + 30 * now.get(now.HOUR) + now.get(now.MINUTE) / 2 ) % 360;\n\t\tangleMinutes = (270 + 6 * now.get(now.MINUTE)) % 360;\n\t\tangleSeconds = (270 + 6 * now.get(now.SECOND)) % 360;\n\t}", "@Override()\n public void update() {\n showSeparator(' ');\n \n // Update time display\n showTime(alarmTime);\n \n // Clear weekday Selector\n for(int i = 0; i < DAYS.length; i++) {\n clock.getDigit(2).setText(i+2, DAYS[i]);\n }\n // Update weekday selector\n String str;\n for(int i = 0; i < DAYS.length; i++){\n str = DAYS[i];\n if(days[i]){\n str = \">\"+DAYS[i]+\"<\";\n }\n clock.getDigit(2).setText(i+2,str); \n }\n String activeText = alarm.active ? \"Disable\" : \"Enable\";\n clock.getDigit(2).setText(10, activeText);\n }", "private void startTime() {\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n while (player.getCurrentTime().lessThanOrEqualTo(player.getStopTime()) && player.getStatus() != Status.PAUSED) {\n if (player.getStatus() == Status.STOPPED) {\n eventBus.emit(new CurrentTimeEvent(0, Duration.ZERO));\n cancel();\n }\n // Convert the current time to a percentage\n double timePercentage = player.getCurrentTime().toSeconds() / player.getStopTime().toSeconds();\n // Get the current time as a Duration\n Duration timeDuration = player.getCurrentTime();\n eventBus.emit(new CurrentTimeEvent(timePercentage, timeDuration));\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n cancel();\n }\n }\n return null;\n }\n };\n\n timeThread = new Thread(task);\n timeThread.setDaemon(true);\n timeThread.start();\n }", "public void start()\n {\n clock = new java.util.Timer();\n clock.schedule(\n new TimerTask() //This is really a new anonymous class, extending TimerTask.\n {\t\t\t\t\t //Since it has only one method, it seemed easiest to create it in line here.\n public void run() //Called by the Timer when scheduled.\n {\n timeElapsed++;\n if (timeElapsed > 999) //999 is the highest 3 digit integer, the highest number that can\n {\t\t\t\t\t\t\t //be shown on the displays. Beyond that, the player automatically loses.\n endGame(false);\n return;\n }\n repaint();\n }\n }\n \t\t\t, 1000, 1000); //1000 milliseconds, so a repeated 1 second delay.\n }", "public void play() {\n\t\tSystem.out.println(\"ting.. ting...\");\n\t}", "public boolean isClockChangeCalled();", "public void clockIn()\n {\n if(!(state instanceof ClockedIn))\n setState(\"Clock-In\");\n }", "public void sounding() {\n\t\tSystem.out.println(\"Hello,I am your MobilePhone!\");\n\t}", "public void run() \n {\n //Runs the countdown before the game starts\n \n if(!mute)\n try{startSound();}catch(Exception e){}\n for(int i = 3; i > 0; i--)\n {\n text = \"Game will start in: \" +i;\n repaint();\n try{Thread.sleep(1000);}catch(InterruptedException e){}\n } \n text =\"\";\n start = true;\n \n soundClipTest();\n \n while(running)\n {\n tick();\n timer(); \n \n try\n {\n if(modeT)\n Thread.sleep(25);\n else if(difficult.equals(\"EASY\"))\n {\n if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer >0)\n Thread.sleep(45);\n else\n Thread.sleep(67);\n }\n else if(difficult.equals(\"MEDIUM\")||difficult.equals(\"GHOST\")|| difficult.equals(\"TROLL\"))\n Thread.sleep(45);\n else if(difficult.equals(\"HARD\"))\n Thread.sleep(30);\n else if(difficult.equals(\"YOU WILL NOT SURVIVE\"))\n Thread.sleep(10);\n } \n catch(InterruptedException e) {}\n \n if(pause)\n {\n pauseSong();\n }\n \n if(powerupTimer>.1 && powerupTimer<.21)\n {\n endSound();\n }\n\n \n if(dot.isEqual(head) || (lastpowerUp.equals(\"YELLOW\") && powerupTimer > 0 && wideSnakeOnDot() && !modeT) ||(lastpowerUp.equals(\"TROLL\") && powerupTimer > 0 && wideSnakeOnDot() && modeT))\n {\n coinSound();\n \n for(int k = 0; k<1 ; k++)\n {\n addSegment();\n }\n \n if(!dotColor.equals(\"RED\"))\n {\n if(dotColor.equals(\"BLUE\"))\n {\n if(!modeT)\n powerupTimer = 15.0;\n else\n powerupTimer = 10.0;\n lastpowerUp = \"BLUE\";\n }\n else if(dotColor.equals(\"PURPLE\"))\n {\n powerupTimer = 15.0;\n lastpowerUp = \"PURPLE\";\n }\n else if(dotColor.equals(\"RAINBOW\"))\n {\n if(!modeT)\n powerupTimer = 10.0 + (int)(Math.random()*10);\n else\n powerupTimer = 5.0 + (int)(Math.random()*5);\n //powerupTimer = 10.0;\n lastpowerUp = \"RAINBOW\";\n \n specialSong();\n }\n else if(dotColor.equals(\"YELLOW\"))\n {\n if(!modeT)\n powerupTimer = 15.0;\n else\n powerupTimer = 10.0;\n lastpowerUp = \"YELLOW\"; \n }\n else if(dotColor.equals(\"BLACK\"))\n {\n powerupTimer = 10.0; \n lastpowerUp = \"BLACK\";\n }\n else if(dotColor.equals(\"WHITE\"))\n {\n if(!modeT)\n powerupTimer = 20.0;\n else\n powerupTimer = 10.0;\n lastpowerUp = \"WHITE\";\n \n //specialSong();\n }\n else if(dotColor.equals(\"DOUBLE\"))\n {\n lastpowerUp = \"DOUBLE\";\n if(!modeT)\n powerupTimer = 20.0;\n else\n powerupTimer = 10.0;\n }\n else if(dotColor.equals(\"TROLL\"))\n {\n lastpowerUp = \"TROLL\";\n if(!modeT)\n powerupTimer = 15.0;\n else\n powerupTimer = 10.0;\n }\n else if(dotColor.equals(\"CRYSTAL\"))\n {\n lastpowerUp = \"CRYSTAL\";\n powerupTimer = 10.0;\n }\n else if(dotColor.equals(\"RED SHELL\"))\n {\n lastpowerUp = \"RED SHELL\";\n hasItem = true;\n }\n }\n \n\n \n \n randomize();\n dot.setA(a);\n dot.setB(b); \n \n boolean go = true;\n while(go)\n {\n if(snakeOnDot())\n {\n //dots.remove(0);\n \n randomize();\n dot.setA(a);\n dot.setB(b); \n \n //dots.add(dot);\n }\n else\n go = false;\n }\n \n //dots.add(dot);\n \n \n //Calculates the score based on the dots collected and the time taken to get them\n if(!modeT)\n {\n if(lastpowerUp.equals(\"DOUBLE\") && powerupTimer > 0)\n totalScore += 2*(100-5*timer2);\n else if(timer2<18)\n totalScore += 100 - 5*timer2;\n else\n totalScore += 10;\n if(!difficult.equalsIgnoreCase(\"YOU WILL NOT SURVIVE\"))\n {\n if(lastpowerUp.equals(\"BLACK\") && powerupTimer > 0)\n totalScore += 1000;\n else if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer > 0)\n totalScore += 100;\n }\n }\n \n \n scoreCount += 1;\n if(modeT)\n {\n if(lastpowerUp.equals(\"YELLOW\") && powerupTimer > 0)\n timer2 +=6;\n else \n timer2+=3;\n }\n else\n timer2 = 0;\n \n } \n if(!modeT) \n text2 = \"Total Score: \" + totalScore;\n else\n text2 = \"Total Score: \" + (int)(timer3);\n text3 = \"Dots Collected: \" + scoreCount; \n \n if(!modeT)\n {\n if(timer2 == 1)\n text4 = \"Time Elapsed: \" + ((int)(timer2*10))/10.0 + \" second\"; \n else\n text4 = \"Time Elapsed: \" + ((int)(timer2*10))/10.0 + \" seconds\";\n }\n else\n {\n if(timer2 == 1)\n text4 = \"Time Remaining: \" + ((int)(timer2*10))/10.0 + \" second\"; \n else\n text4 = \"Time Remaining: \" + ((int)(timer2*10))/10.0 + \" seconds\";\n }\n if(outOfBounds() || crash())\n { \n if(totalScore > lowestHighscore() || (int)timer3 > lowestHighscore())\n {\n highscorenoise();\n //PLAY OTHER SOUND CLIP HERE\n //My suggestion: https://www.youtube.com/watch?v=G2vA6Dngzhs because this music is awesome and deserves to be somewhere\n }\n else \n loseNoise();\n \n running = false;\n bclip.stop();\n if(powerupTimer > 0 && (lastpowerUp.equals(\"RAINBOW\")))\n sclip.stop();\n \n \n reset(); \n }\n } \n }", "@Override\r\n\tpublic void physics() {\n\t\tSystem.out.println(\"Every Thursday evening\");\r\n\t\t\r\n\t}", "public void trackTime()\n {\n frames += 1;\n\n // Every second (roughly) reduce the time left\n if (frames % 60 == 0)\n {\n time += 1;\n showTime();\n }\n }", "public RealTimeInput(int numInputs, PApplet pa)\n\t{\n//\t\tthis(numInputs, new AudioContext(new AudioServerIO.JavaSound(), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)));\n\t\tthis(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), pa);\n\t\t\n\t}", "private void startRealTimeClock() {\n\t\tThread refreshClock = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\tDate date = new Date();\n\t\t\t\t\tString str = String.format(\" %tc\", date);\n\n\t\t\t\t\tclock_textarea.setText(\"\");\n\t\t\t\t\tclock_textarea.append(str);\n\t\t\t\t\tclock_textarea.repaint();\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsleep(1000L);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} // end while true\n\t\t\t}\n\t\t};\n\n\t\trefreshClock.start();\n\t}", "public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}", "void doRun() {\n\n\t Object line;\n\t Method wrmeth = null;\n\t try {\n\t\tClass afclass = Class.forName(\"javax.sound.sampled.AudioFormat\");\n\t\tConstructor cstr = afclass.getConstructor(\n\t\t new Class[] { float.class, int.class, int.class,\n\t\t\t\t boolean.class, boolean.class });\n\t\tObject format = cstr.newInstance(new Object[]\n\t\t { new Float(rate), new Integer(16), new Integer(1),\n\t\t new Boolean(true), new Boolean(true) });\n\t\tClass ifclass = Class.forName(\"javax.sound.sampled.DataLine$Info\");\n\t\tClass sdlclass =\n\t\t Class.forName(\"javax.sound.sampled.SourceDataLine\");\n\t\tcstr = ifclass.getConstructor(\n\t\t new Class[] { Class.class, afclass });\n\t\tObject info = cstr.newInstance(new Object[]\n\t\t { sdlclass, format });\n\t\tClass asclass = Class.forName(\"javax.sound.sampled.AudioSystem\");\n\t\tClass liclass = Class.forName(\"javax.sound.sampled.Line$Info\");\n\t\tMethod glmeth = asclass.getMethod(\"getLine\",\n\t\t\t\t\t\t new Class[] { liclass });\n\t\tline = glmeth.invoke(null, new Object[] {info} );\n\t\tMethod opmeth = sdlclass.getMethod(\"open\",\n\t\t\t new Class[] { afclass, int.class });\n\t\topmeth.invoke(line, new Object[] { format,\n\t\t\t new Integer(4096) });\n\t\tMethod stmeth = sdlclass.getMethod(\"start\", null);\n\t\tstmeth.invoke(line, null);\n\t\tbyte b[] = new byte[1];\n\t\twrmeth = sdlclass.getMethod(\"write\",\n\t\t\t new Class[] { b.getClass(), int.class, int.class });\n\t } catch (Exception e) {\n\t\te.printStackTrace();\n\t\treturn;\n\t }\n\n\t int playSampleCount = 16384;\n\t FFT playFFT = new FFT(playSampleCount);\n\t double playfunc[] = null;\n\t byte b[] = new byte[4096];\n\t int offset = 0;\n\t int dampCount = 0;\n\t double mx = .2;\n\t\t \n\t while (soundCheck.getState() && applet.ogf != null) {\n\t\tdouble damper = dampcoef*1e-2;\n\t\t\n\t\tif (playfunc == null || changed) {\n\t\t playfunc = new double[playSampleCount*2];\n\t\t int i;\n\t\t //double bstep = 2*pi*440./rate;\n\t\t //int dfreq0 = 440; // XXX\n\t\t double n = 2*pi*20.0*\n\t\t\tjava.lang.Math.sqrt((double)tensionBarValue);\n\t\t n /= omega[1];\n\t\t changed = false;\n\t\t mx = .2;\n\t\t for (i = 1; i != maxTerms; i++) {\n\t\t\tint dfreq = (int) (n*omega[i]);\n\t\t\tif (dfreq >= playSampleCount)\n\t\t\t break;\n\t\t\tplayfunc[dfreq] = magcoef[i];\n\t\t }\n\t\t playFFT.transform(playfunc, true);\n\t\t for (i = 0; i != playSampleCount; i++) {\n\t\t\tdouble dy = playfunc[i*2]*Math.exp(damper*i);\n\t\t\tif (dy > mx) mx = dy;\n\t\t\tif (dy < -mx) mx = -dy;\n\t\t }\n\t\t dampCount = offset = 0;\n\t\t}\n\t\t\n\t\tdouble mult = 32767/mx;\n\t\tint bl = b.length/2;\n\t\tint i;\n\t\tfor (i = 0; i != bl; i++) {\n\t\t short x = (short) (playfunc[(i+offset)*2]*mult*\n\t\t\t\t Math.exp(damper*dampCount++));\n\t\t b[i*2] = (byte) (x/256);\n\t\t b[i*2+1] = (byte) (x & 255);\n\t\t}\n\t\toffset += bl;\n\t\tif (offset == playfunc.length/2)\n\t\t offset = 0;\n\n\t\ttry {\n\t\t wrmeth.invoke(line, new Object[] { b, new Integer(0),\n\t\t\t\t\t\t new Integer(b.length) });\n\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t break;\n\t\t}\n\t }\n\t}", "@Override\r\n\tpublic void startTime() {\n\t\tSystem.out.println(\"인터페이스 ISports2메소드 --> startTime()\");\r\n\t\t\r\n\t}", "public void timeChanged();", "@Override\n public void playStart() {\n }", "void setCurrentTime(long currentTime);", "private void getOneToteTimer()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "@Override\r\n\tpublic void update( ReceiverSource r ) {\n\t\tSystem.out.println( \"I am number \" + num + \"! It is \" + ((GameTimer) r).getSeconds() + \"!\" );\r\n\t}", "public ClockLabel() {\r\n\t\tsuper(\"\"\r\n\t\t\t\t+ new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\")\r\n\t\t\t\t\t\t.format(new Date()), SwingConstants.RIGHT);\r\n\t\tTimer t = new Timer(1000, this);\r\n\t\tt.start();\r\n\t}", "private void updateTime() \r\n\t {\r\n\t\t \r\n\t\t \tif(Hours.getValue() < 12)\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" am\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t\t \t\r\n\t\t \telse if (Hours.getValue() > 12 && Hours.getValue() < 24 )\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" pm\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t }", "public TxRealtimeClock(Platform platform) {\r\n super(platform);\r\n }", "public void play() {\n\t\tSystem.out.println(\"TCL 电视机播放中...\");\r\n\t}", "@Override\n public synchronized void start() {\n m_startTime = getMsClock();\n m_running = true;\n }", "public double readClock()\n {\n\tif (frameByFrameClock) {\n\t return frameNumber * (1/30.0f);\n\t} else {\n\t long elapsed;\n\t \n\t if (drawAnimation.value) {\n\t\t// Time during animation\n\t\telapsed = System.currentTimeMillis() - startTime;\n\t } else {\n\t\t// Time during pause\n\t\telapsed = pauseTime - startTime;\n\t }\n\t \n\t return elapsed / 1000.0f;\n\t}\n }", "public void actionPerformed(ActionEvent ae){\n Date date = new Date();\n //instantiate new Date object\n\n DateFormat format = new SimpleDateFormat(\"E, MMM d y HH:mm:ss\");\n //set format of clock\n\n DateFormat otherFormat = new SimpleDateFormat(\"E, MMM, d y KK:mm:ss a\");\n //12 hour time\n\n String dateTime = format.format(date);\n //formatting date object using format template\n\n String otherDateTime = otherFormat.format(date);\n\n clockLabelOne.setText(dateTime);\n //setting clock text to formatted String\n }", "@Override\n public void playTone(Waveform waveform, double frequency, double duration, double volume)\n {\n final String funcName = \"playTone\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API,\n \"waveform=%s,freq=%.0f,dur=%.3f,vol=%.1f\",\n waveform.toString(), frequency, duration, volume);\n }\n\n if (volume < 0.0 || volume > 1.0)\n {\n throw new IllegalArgumentException(\"Volume must be in the range 0.0 to 1.0.\");\n }\n\n if (frequency < 0.0)\n {\n throw new IllegalArgumentException(\"Frequency cannot be negative.\");\n }\n\n if (duration < 0.0)\n {\n throw new IllegalArgumentException(\"Duration cannot be negative.\");\n }\n\n byte outputMode = 0;\n switch (waveform)\n {\n case SINE_WAVE:\n outputMode = 1;\n break;\n\n case SQUARE_WAVE:\n outputMode = 2;\n break;\n\n case TRIANGLE_WAVE:\n outputMode = 3;\n break;\n }\n\n analogOut.setAnalogOutputMode(outputMode);\n analogOut.setAnalogOutputFrequency((int)frequency);\n analogOut.setAnalogOutputVoltage((int)(MAX_VOLTAGE*volume));\n expiredTime = TrcUtil.getCurrentTime() + duration;\n playing = true;\n setTaskEnabled(true);\n\n if (debugEnabled)\n {\n dbgTrace.traceInfo(funcName,\n \"mode=%d,freq=%d,dur=%.3f,vol=%.1f\", outputMode, (int)frequency, duration, volume);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n }", "public static void main(String args[]) {\n\t\t// Initialize a new digital clock, referenced by the variable\n\t\t// myClock, and initialized to 7h35. \n\t\tDigitalClock myClock = new DigitalClock(7,35);\n\t\t\tSystem.out.println(\"Expected time: 7h35\");\n\t\t\tSystem.out.println(\" \" + myClock.getHours() + \"h\" + myClock.getMinutes());\n\t\t// Initialize another new digital clock, referenced by the variable\n\t\t// yourClock, and initialized to 0h00. \n\t\tDigitalClock yourClock = new DigitalClock();\n\t\t\tSystem.out.println(\"Expected time: 0h00\");\n\t\t\tSystem.out.println(\" \" + yourClock.getHours() + \"h\" + yourClock.getMinutes());\n\t\t// Change the hours displayed by myClock to 33.\n\t\tmyClock.setHours(33);\n\t\t\tSystem.out.println(\"Expected time: 9h35\");\n\t\t\tSystem.out.println(\" \" + myClock.getHours() + \"h\" + myClock.getMinutes());\n\t\t// Introduce a local variable myMinutes, initialized with the\n\t\t// minutes displayed by myClock.\n\t\tint myMinutes = myClock.getMinutes();\n\t\t// Make the variable yourClock reference the digital clock referenced\n\t\t// by the variable myClock.\n\t\tyourClock = myClock;\n\t\t// Advance the minutes of the digital clock referenced by the\n\t\t// variable yourClock.\n\t\tyourClock.advanceMinutes();\n\t\t\tSystem.out.println(\"Expected time: 9h36\");\n\t\t\tSystem.out.println(\" \" + myClock.getHours() + \"h\" + myClock.getMinutes());\t\n\t\t\tSystem.out.println(\"Expected value: 35\");\n\t\t\tSystem.out.println(\" \" + myMinutes);\n\t}", "public void startTime() {\n if (!isRunning) {\n timer = new Timer();\n clock = new Clock();\n timer.scheduleAtFixedRate(clock,0,1000);\n isRunning = true;\n }\n }" ]
[ "0.6653791", "0.6479432", "0.6467165", "0.63813716", "0.62814015", "0.62548137", "0.62526494", "0.6251824", "0.6237556", "0.6206755", "0.6172731", "0.6163696", "0.6145492", "0.61122894", "0.6102935", "0.60900474", "0.6019629", "0.6014191", "0.60091925", "0.596296", "0.5950864", "0.5946157", "0.59360784", "0.59319437", "0.59237397", "0.592098", "0.59022504", "0.58951044", "0.58854973", "0.58720106", "0.58704495", "0.58598244", "0.58241624", "0.5814252", "0.5812473", "0.580479", "0.5802223", "0.5773985", "0.5770625", "0.5767766", "0.57352704", "0.57296383", "0.57252085", "0.5720861", "0.5718215", "0.57058084", "0.5704539", "0.5696057", "0.569363", "0.5690582", "0.5688804", "0.5668152", "0.5665053", "0.5660696", "0.56571597", "0.56524616", "0.5637715", "0.56341904", "0.563294", "0.56300116", "0.5626859", "0.5617681", "0.5598783", "0.5597279", "0.5597237", "0.55959344", "0.55916226", "0.55907696", "0.55792993", "0.5553918", "0.5553073", "0.5550802", "0.5550661", "0.55505514", "0.55345905", "0.55316335", "0.5529539", "0.55292356", "0.55285066", "0.5528174", "0.5526077", "0.55181515", "0.55175936", "0.5512096", "0.550938", "0.5509152", "0.55032617", "0.55003244", "0.5499014", "0.5497351", "0.5495935", "0.5495233", "0.5494344", "0.5484574", "0.54845446", "0.54825884", "0.5481945", "0.5481189", "0.54799217", "0.5473475", "0.5468062" ]
0.0
-1
for visitors because more than one visitors
private void msg2(String name, int id, String message) { System.out.println("[" + (System.currentTimeMillis() - system_start_time) + "] " + name + id +": " + message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getVisited(){return this.visited;}", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\r\n\tpublic boolean isVisited() {\n\t\treturn false;\r\n\t}", "public boolean WasVisited() { return _visited; }", "public void visit() {\n\t\tvisited = true;\n\t}", "public void onePointVisitor(View view) {\r\n visitorScore += 1;\r\n displayVisitorScore(visitorScore);\r\n }", "@Override\r\n\tpublic void visit() {\n\r\n\t}", "boolean isVisited();", "boolean isVisited();", "default void hit() {\n\t\tcount(1);\n\t}", "boolean seen(Graph.Vertex u) {\n\t\treturn getVertex(u).seen;\n\t}", "public void visit() {\n visited = true;\n }", "public boolean hasBeenVisited() {\n\t\treturn visited; // Replace with your code\n\t}", "public void setVisited(boolean value){this.visited = value;}", "@Override\r\n\tpublic void accept(Visitor visitor) {\r\n\t\tvisitor.visit(this);\r\n\t}", "public abstract void visit();", "@Override\n \t\tpublic void coGroup(PactString url, Iterator<PactNull> visits, Iterator<Tuple> ranks, Collector<PactString, Tuple> out) {\n \t\t\t// Check if there is a entry in the visits relation\n \t\t\tif (!visits.hasNext()) {\n \t\t\t\twhile (ranks.hasNext()) {\n \t\t\t\t\t// Emit all rank pairs\n \t\t\t\t\tout.collect(url, ranks.next());\n \t\t\t\t}\n \t\t\t}\n \t\t}", "private String nextUrl()\n {\n String nextUrl;\n do\n {\n nextUrl = this.pagesToVisit.remove(0);\n } while(this.pagesVisited.contains(nextUrl));\n this.pagesVisited.add(nextUrl);\n return nextUrl;\n }", "public boolean isVisited(){\n return visited;\n }", "public int getVisit() {\n\t\treturn visit;\n\t}", "public void setVisited()\n {\n visited = true;\n }", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "public Visitor visitor(Visitor v) \n { \n return visitor = v; \n }", "@Override\r\n\tpublic Relation accept(Visitor v)\t\t{ return v.visit(this);\t\t\t\t\t\t\t}", "@Override\n protected int getNumRepetitions() {\n return 1;\n }", "@Override\r\n\tpublic void Visit(BlackShot shot) {\n\r\n\t}", "@Override\n public void interagit() {\n super.interagit();\n ArrayList<EtreVivant> cibles = this.ciblesPotentiellesAdjacentes(this.getPosition(),this.nombreVoisins);\n cibles.stream().filter((vivants) -> (vivants.getEtat().equals(EtatEtreVivant.MALADE))).forEach((vivants) -> {\n this.soigne(vivants);\n });\n }", "public abstract boolean isNextVisited();", "protected T nextUnvisited() {\r\n\t\tfor (T node: getNodes()) {\r\n\t\t\tif (!visited.contains(node)) {\r\n\t\t\t\treturn node;\r\n\t\t\t}\r\n\t\t} \r\n\t\t\treturn null;\r\n\t}", "public boolean isVisitado() {\n return this.isVisited;\n }", "Link getIsReuseOf();", "@Override\r\n public void visit(final Context context, final Object object)\r\n {\r\n final CRMSpid serviceProvider = (CRMSpid) object;\r\n final Date dormantToDectivateDate;\r\n {\r\n final Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.DAY_OF_MONTH, -serviceProvider.getFinteBalanceDeactivationDays());\r\n calendar.set(Calendar.HOUR, 59);\r\n calendar.set(Calendar.MINUTE, 59);\r\n calendar.set(Calendar.SECOND, 59);\r\n calendar.set(Calendar.MILLISECOND, 59);\r\n dormantToDectivateDate = calendar.getTime();\r\n }\r\n final Context subcontext = context.createSubContext();\r\n final And condition = new And();\r\n condition.add(new EQ(SubscriberXInfo.STATE, SubscriberStateEnum.DORMANT));\r\n condition.add(new EQ(SubscriberXInfo.SPID, Integer.valueOf(serviceProvider.getSpid())));\r\n condition.add(new LT(SubscriberXInfo.LAST_MODIFIED, dormantToDectivateDate));\r\n try\r\n {\r\n final Home filteredHome = getHome().where(subcontext, condition);\r\n filteredHome\r\n .forEach(subcontext, new CloneingVisitor(new CloseZeroBlalanceSubscriberVisitor(getHome())));\r\n }\r\n catch (IllegalArgumentException exception)\r\n {\r\n // should not happen!!\r\n new MinorLogMsg(this, \"Home is not set in visitor for deactivating Dormant Subscribers in SPID [\" +serviceProvider.getSpid() +\"].\", exception).log(subcontext);\r\n }\r\n catch (AbortVisitException exception)\r\n {\r\n new MinorLogMsg(this, \"Error visiting home for deactivating Dormant Subscribers in SPID [\" +serviceProvider.getSpid() +\"].\", exception).log(subcontext);\r\n }\r\n catch (HomeException exception)\r\n {\r\n new MinorLogMsg(this, \"Error selecting who are Dormant Subscribers in SPID [\" +serviceProvider.getSpid() +\"].\", exception).log(subcontext);\r\n }\r\n catch (Throwable t)\r\n {\r\n new MinorLogMsg(this, \"Uknown Error while processing deactivation of Dormant Subscribers in SPID [\" +serviceProvider.getSpid() +\"].\", t).log(subcontext);\r\n }\r\n }", "public boolean isVisitedBy(String name) {\n\t\tif(name == null) return false;\n\t\t//Sonderfall: wird als interner code für alle Anwender verwendet\n\t\tif(name.equals(\"\")) return true;\n\t\tfor (Visitor visitor : visitors) {\n\t\t\tif(visitor.getName().equals(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic Object accept(Visitor visitor) {\n\t\treturn visitor.visit(this);\n\t}", "@Override\r\n\tpublic void accept(Visitor v) {\r\n\t\tv.visit(this);\t\r\n\t}", "protected void addVisitor(String name, short rating) {\n\t\tif(!isVisitedBy(name)) {\n\t\t\t//recalculate wird in der aufrufenden Methode gesetzt\n\t\t\tvisitors.add(new Visitor(name, rating));\n\t\t\tvisitors.trimToSize();\n\t\t}\n\t}", "private boolean visited(int hashCode){\n \t\t//.add returns true if hashCode was added (meaning hashCode haven't been added before)\n \t\tif(visited.add(hashCode))\n \t\t\treturn false;\n \t\telse\n \t\t\treturn true;\n \t}", "public static void m5829g() {\n if (f4669a != null) {\n f4669a.m12578a(\"webview_multiple_records_found\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"webview_multiple_records_found\"));\n }", "void nextVoteBlock() {\n try {\n\tif (iter.hasNext()) {\n\t voteBlock = iter.next();\n\t} else {\n\t voteBlock = null;\n\t}\n } catch (IOException e) {\n\t// Even if the error is transient, we are trying to keep in\n\t// synch. If we later tried to catch up, we could have a\n\t// bunch of URLs we'd already counted for other voters. So\n\t// call this Entry finished.\n\tinstallErrorIterator(e);\n }\n }", "@Override\r\n\tpublic void Visit(RedShot shot) {\n\r\n\t}", "private List<CustStmtRecord> validateDuplicate (final List<CustStmtRecord> custStmtRecords) {\n\t\tlog.info(\"Entering {}.{}\", getClass().getName(), \"validateDuplicate()\");\n\t\tfinal List<CustStmtRecord> duplicateReference = custStmtRecords\n\t\t\t\t.parallelStream()\n\t\t\t\t\t.filter(e -> Collections.frequency(custStmtRecords, e) > 1)\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\t\t;\n\t\t\t\n\t\tlog.info(\"duplicateReference {}\", duplicateReference);\n\t\t\t\n\t\tlog.info(\"Exiting {}.{}\", getClass().getName(), \"validateDuplicate()\");\n\t\treturn duplicateReference;\n\t}", "@Override\n\tpublic void visit(Matches arg0) {\n\t\t\n\t}", "private void removeDuplicateUserAgents() throws Exception {\n Db db = getDb();\n try {\n db.enter();\n Map<Integer, Integer> dups = new HashMap<Integer, Integer>();\n _logger.info(\"checking duplicate user agents\");\n String sqlSelectDupUA = \"select a1.t_http_agent_id, a2.t_http_agent_id FROM http.t_http_agent a1, http.t_http_agent a2 WHERE a1.t_http_agent_id <> a2.t_http_agent_id AND a1.agent_name = a2.agent_name AND a1.version = a2.version AND a1.authorized = 'ALLOWED' ORDER BY a1.t_http_agent_id\";\n PreparedStatement pstSelDups = db.prepareStatement(sqlSelectDupUA);\n ResultSet rsDups = db.executeQuery(pstSelDups);\n if (rsDups.next()) {\n do {\n dups.put(Integer.valueOf(rsDups.getInt(1)), Integer.valueOf(rsDups.getInt(2)));\n } while (rsDups.next());\n } else {\n _logger.debug(\"removeDuplicateUserAgents 1 - no rows found.\");\n }\n _logger.debug(dups.size() + \" user agents duplicated\");\n if (dups.size() == 0) return;\n String sqlSelUAD = \"SELECT count, calc_day FROM http.t_http_agent_daily WHERE t_http_agent_id = ?\";\n String sqlUpdUAD = \"UPDATE http.t_http_agent_daily SET count = count + ? WHERE calc_day = ? AND t_http_agent_id = ?\";\n String sqlDelUAD = \"DELETE FROM http.t_http_agent_daily WHERE t_http_agent_id = ?\";\n PreparedStatement pstSelUAD = db.prepareStatement(sqlSelUAD);\n PreparedStatement pstUpdUAD = db.prepareStatement(sqlUpdUAD);\n PreparedStatement pstDelUAD = db.prepareStatement(sqlDelUAD);\n for (Iterator<Map.Entry<Integer, Integer>> it = dups.entrySet().iterator(); it.hasNext(); ) {\n try {\n db.enter();\n Map.Entry<Integer, Integer> kv = it.next();\n Integer key = kv.getKey();\n Integer dupToRemove = kv.getValue();\n pstSelUAD.setInt(1, dupToRemove.intValue());\n ResultSet rsSelUAD = db.executeQuery(pstSelUAD);\n if (rsSelUAD.next()) {\n do {\n pstUpdUAD.setInt(1, rsSelUAD.getInt(1));\n pstUpdUAD.setDate(2, rsSelUAD.getDate(2));\n pstUpdUAD.setInt(3, key.intValue());\n db.executeUpdate(pstUpdUAD);\n } while (rsSelUAD.next());\n } else {\n _logger.debug(\"removeDuplicateUserAgents 2 - no rows found.\");\n }\n pstDelUAD.setInt(1, dupToRemove.intValue());\n db.executeUpdate(pstDelUAD);\n } finally {\n db.exit();\n }\n }\n _logger.debug(\"Finished removing duplicate rows in http_agent_daily\");\n String sqlSelectUADates = \"SELECT first_occurence, last_occurence FROM http.t_http_agent WHERE t_http_agent_id = ?\";\n String sqlUpdateUA = \"UPDATE http.t_http_agent SET first_occurence = timestamp_smaller(first_occurence, ?), last_occurence = timestamp_larger(last_occurence, ?) WHERE t_http_agent_id = ?\";\n String sqlDeleteUA = \"DELETE FROM http.t_http_agent WHERE t_http_agent_id = ?\";\n PreparedStatement pstSelDates = db.prepareStatement(sqlSelectUADates);\n PreparedStatement pstUpdUA = db.prepareStatement(sqlUpdateUA);\n PreparedStatement pstDelUA = db.prepareStatement(sqlDeleteUA);\n for (Iterator<Map.Entry<Integer, Integer>> it = dups.entrySet().iterator(); it.hasNext(); ) {\n try {\n db.enter();\n Map.Entry<Integer, Integer> kv = it.next();\n Integer key = kv.getKey();\n Integer dupToRemove = kv.getValue();\n pstSelDates.setInt(1, dupToRemove.intValue());\n ResultSet rsSelUA = db.executeQuery(pstSelDates);\n if (rsSelUA.next()) {\n pstUpdUA.setTimestamp(1, rsSelUA.getTimestamp(1));\n pstUpdUA.setTimestamp(2, rsSelUA.getTimestamp(2));\n pstUpdUA.setInt(3, key.intValue());\n db.executeUpdate(pstUpdUA);\n }\n pstDelUA.setInt(1, dupToRemove.intValue());\n db.executeUpdate(pstDelUA);\n } finally {\n db.exit();\n }\n }\n _logger.debug(\"Finished removing duplicate rows in http_agent\");\n } finally {\n db.exit();\n }\n }", "private boolean wasVisited(int city){\n\t\treturn this.getGraph().wasVisited(city);\n\t}", "void changeVisited(){\n\t \t\tthis.isVisited = true;}", "@Override\n public boolean hasNext() {\n return numeroDiNodiAncoraVisitabili>0;\n }", "private static void spreadVirus(int v){\n Queue<Integer> queue = new LinkedList<>();\n queue.add(v);\n while(!queue.isEmpty()){\n int temp = queue.poll();\n isVisited[temp]=true;\n for(int i = 1; i<adj[temp].length;i++){\n if(isVisited[i]==false && adj[temp][i]==1){\n queue.add(i);\n isVisited[i]=true;\n maxContamination++;\n }\n }\n }\n }", "public void addOccurence() {\n\t\tcount = count + 1;\n\t}", "@Override\n\tpublic void visit(final Uncle person) {\n\t\t\n\t}", "@Override\n public String toString() {\n StringBuilder res = new StringBuilder(\"[\");\n\n for(int i = 0; i < visitors.size(); i++)\n res.append(visitors.get(i).toString()).append((i < visitors.size() - 1) ? \", \" : \"\");\n\n res.append(\"]\");\n return res.toString();\n }", "public boolean hasVisitor(String name) {\n\t\treturn isVisitedBy(name);\n\t}", "private void checkManualVisit() {\n // scroll to number of visits\n onView(withId(R.id.tv_num_visits)).perform(scrollTo());\n // check number of visits is 1\n onView(withId(R.id.tv_num_visits)).check(matches(withText(String.valueOf(1))));\n\n checkLastVisitLabelAndText(date, time);\n\n // scroll to expandable RecyclerView\n onView(withId(R.id.expanding_rv_visits))\n .perform(scrollTo());\n\n // scroll to visit group and click to expand\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_VISIT_GROUP))\n .perform(click());\n\n // check that the visit has updated date and time\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(date)))));\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(time)))));\n }", "@Override\n\tpublic void accept(NodeVisitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "protected Expression duplicateNodesUnderOps(Expression root, Fragment op) {\n Set<Expression> visited = new HashSet<>();\n if (duplicateNodesUnderOps(root, op, visited)) {\n return visited.iterator().next();\n }\n return null;\n }", "@Override\n public void visit(final OpDistinct opDistinct) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpDistinct\");\n }\n addOp(new OpDistinct(rewriteOp1(opDistinct)));\n }", "private static Vertice proxVertice(Vertice v1, Aresta a) {\r\n\t\tif (a.getV1() != v1) {\r\n\t\t\treturn a.getV1();\r\n\t\t} else {\r\n\t\t\treturn a.getV2();\r\n\t\t}\r\n\t}", "private void reachable(Set s) {\n for (Iterator i = this.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper ap = (IdentityHashCodeWrapper)i.next();\n if (!s.contains(ap)) {\n s.add(ap);\n ((AccessPath)ap.getObject()).reachable(s);\n }\n }\n }", "public Void visit(NasmRet inst){\n if (nasm.listeInst.indexOf(inst) != nasm.listeInst.size() - 1)\n addEdgeWithInst(inst, getNextInst(inst));\n return null;\n }", "protected void paramDuplicate(){\n List<StatementParse> parameters = this.node.getChildren().get(0).getChildren();\n for (StatementParse x: parameters){\n int count = 0;\n for (StatementParse y: parameters){\n if (x.getName().equals(y.getName())){\n count++;\n }\n }\n if (count > 1) throw new DuplicateParam();\n }\n }", "public boolean isReferrerAsOne() {\n return _referrerAsOne;\n }", "@Override\n\tpublic void visit(Matches arg0) {\n\n\t}", "public boolean getVisited()\n {\n return visited;\n }", "public Visitor getVisitorByName(String name) {\n\t\tfor (Visitor visitor : visitors) {\n\t\t\tif(visitor.getName().equals(name)) {\n\t\t\t\treturn visitor;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public boolean isVisited()\n\t{\n\t\treturn visited;\n\t}", "private boolean checkSiteVisited(String url)\r\n\t{\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\tif (webVisited[0][i].equals(url))\t\t\t//this url has been visited by user before\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public void twoPointsVisitor(View view) {\r\n visitorScore += 2;\r\n displayVisitorScore(visitorScore);\r\n }", "@Override\n\tpublic void visit(Concat arg0) {\n\t\t\n\t}", "protected boolean isDuplicate(ELesxUseCase useCase) {\n return false;\n }", "public int count() {\n return this.visitors.size();\n }", "protected int hit() {\r\n\t\treturn hits;\r\n\t}", "public void onDuplicate() {\n }", "Object visitorResponse();", "@Override\r\n\tpublic void visit(User user) {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public String getVisitorname() {\n return visitorname;\n }", "default boolean visitEnd() {\n\t\treturn true;\n\t}", "void visit(Graph.Vertex u, Graph.Vertex v) {\n\t\tDFSVertex bv = getVertex(v);\n\t\tbv.seen = true;\n\t\tbv.parent = u;\n\t\tbv.distance = distance(u) + 1;\n\t}", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "public boolean isVisited() {\n return isVisited;\n }", "@Override\n\tpublic void visit(Concat arg0) {\n\n\t}", "private boolean hasCycle1() {\n\t\tNode slow = head;\n\t\tNode fast = head;\n\t\t\n\t\twhile (fast != null && fast.next != null) {\n\t\t\tslow = slow.next;\n\t\t\tfast = fast.next.next;\n\t\t\tif(slow == fast) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\t\t\t\t\tpublic void onNext(Object p1) {\n\t\t\t\t\t}", "private BasicBlock getUniqueNext(ControlFlowGraph graph, HashSet<BasicBlock[]> setNext) {\n\t\t\n\t\tBasicBlock next = null;\n\t\tboolean multiple = false;\n\t\t\n\t\tfor(BasicBlock[] arr : setNext) {\n\t\t\t\n\t\t\tif(arr[2] != null) {\n\t\t\t\tnext = arr[1];\n\t\t\t\tmultiple = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif(next == null) {\n\t\t\t\t\tnext = arr[1];\n\t\t\t\t} else if(next != arr[1]) {\n\t\t\t\t\tmultiple = true;\n\t\t\t\t}\n\n\t\t\t\tif(arr[1].getPreds().size() == 1) {\n\t\t\t\t\tnext = arr[1];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(multiple) { // TODO: generic solution\n\t\t\tfor(BasicBlock[] arr : setNext) {\n\t\t\t\tBasicBlock block = arr[1];\n\t\t\t\t\n\t\t\t\tif(block != next) {\n\t\t\t\t\tif(InterpreterUtil.equalSets(next.getSuccs(), block.getSuccs())) {\n\t\t\t\t\t\tInstructionSequence seqNext = next.getSeq();\n\t\t\t\t\t\tInstructionSequence seqBlock = block.getSeq();\n\n\t\t\t\t\t\tif(seqNext.length() == seqBlock.length()) {\n\t\t\t\t\t\t\tfor(int i=0;i<seqNext.length();i++) {\n\t\t\t\t\t\t\t\tInstruction instrNext = seqNext.getInstr(i);\n\t\t\t\t\t\t\t\tInstruction instrBlock = seqBlock.getInstr(i);\n\n\t\t\t\t\t\t\t\tif(instrNext.opcode != instrBlock.opcode || instrNext.wide != instrBlock.wide\n\t\t\t\t\t\t\t\t\t\t|| instrNext.operandsCount() != instrBlock.operandsCount()) {\n\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tfor(int j=0;i<instrNext.getOperands().length;j++) {\n\t\t\t\t\t\t\t\t\tif(instrNext.getOperand(j) != instrBlock.getOperand(j)) {\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n//\t\t\ttry {\n//\t\t\t\tDotExporter.toDotFile(graph, new File(\"c:\\\\Temp\\\\fern5.dot\"), true);\n//\t\t\t} catch(IOException ex) {\n//\t\t\t\tex.printStackTrace();\n//\t\t\t}\n\t\t\t\n\t\t\tfor(BasicBlock[] arr : setNext) {\n\t\t\t\tif(arr[1] != next) {\n\t\t\t\t\t// FIXME: exception edge possible?\n\t\t\t\t\tarr[0].removeSuccessor(arr[1]);\n\t\t\t\t\tarr[0].addSuccessor(next);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tDeadCodeHelper.removeDeadBlocks(graph);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn next;\n\t}", "boolean scavenge()\r\n/* 462: */ {\r\n/* 463:493 */ if (scavengeSome()) {\r\n/* 464:494 */ return true;\r\n/* 465: */ }\r\n/* 466:498 */ this.prev = null;\r\n/* 467:499 */ this.cursor = this.head;\r\n/* 468:500 */ return false;\r\n/* 469: */ }", "private String nextURL() {\n\n\t\tString url;\n\t\t// Search the next url until the unique url is found\n\t\tdo {\n\t\t\turl = this.pagesToVisit.remove(0);\n\t\t} while (this.pagesVisited.contains(url));\n\t\tthis.pagesVisited.add(url);\n\t\treturn url;\n\n\t}", "public boolean isVisited() {\n return visited;\n }", "private static interface SmartVisitor {\r\n /** Visits a versionable object */\r\n boolean visitVersionable(Object o);\r\n /** Visits a smart container */\r\n boolean visitSmartContainer(Object o);\r\n /** To obtain a return value after traversal. */\r\n Object visitorResponse();\r\n }", "@Override\n public int hashCode() {\n return 1;\n }", "public boolean DijkstraHelp(int src, int dest) {\n PriorityQueue<Entry>queue=new PriorityQueue();//queue storages the nodes that we will visit by the minimum tag\n //WGraph_DS copy = (WGraph_DS) (copy());//create a copy graph that the algorithm will on it\n initializeTag();\n initializeInfo();\n node_info first=this.ga.getNode(src);\n first.setTag(0);//distance from itself=0\n queue.add(new Entry(first,first.getTag()));\n while(!queue.isEmpty()) {\n Entry pair=queue.poll();\n node_info current= pair.node;\n if (current.getInfo() != null) continue;//if we visit we can skip to the next loop because we have already marked\n current.setInfo(\"visited\");//remark the info\n Collection<node_info> listNeighbors = this.ga.getV(current.getKey());//create a collection for the neighbors list\n LinkedList<node_info> Neighbors = new LinkedList<>(listNeighbors);//create the neighbors list\n if (Neighbors == null) continue;\n for(node_info n:Neighbors) {\n\n if(n.getTag()>ga.getEdge(n.getKey(),current.getKey())+current.getTag())\n {\n n.setTag(current.getTag() + ga.getEdge(n.getKey(), current.getKey()));//compute the new tag\n }\n queue.add(new Entry(n,n.getTag()));\n }\n }\n Iterator<node_info> it=this.ga.getV().iterator();\n while(it.hasNext()){\n if(it.next().getInfo()==null) return false;\n }\n return true;\n }", "public boolean isVisited() {\n\t\treturn _visited;\n\t}", "@Test\r\n void test_insert_same_vertex_twice() {\r\n graph.addVertex(\"1\");\r\n graph.addVertex(\"1\"); \r\n graph.addVertex(\"1\"); \r\n vertices = graph.getAllVertices();\r\n if(vertices.size() != 1 ||graph.order() != 1) {\r\n fail();\r\n }\r\n }", "@SuppressWarnings(\"unused\")\n private boolean checkIds(CFANode node) {\n\n if (!visited.add(node)) {\n // already handled, do nothing\n return true;\n }\n\n for (CFANode successor : CFAUtils.successorsOf(node)) {\n checkIds(successor);\n }\n\n //node.setReversePostorderId(reversePostorderId2++);\n assert node.getReversePostorderId() == reversePostorderId2++ : \"Node \" + node + \" got \" + node.getReversePostorderId() + \", but should get \" + (reversePostorderId2-1);\n return true;\n }", "public boolean isVisited() {\n return visited;\n }", "public boolean isVisited () {\n if (this.equals(SquareType.VISITED))\n return true;\n else\n return false;\n }", "@Override\r\n\tpublic void Visit(YellowShot shot) {\n\r\n\t}", "protected long hit() {\n return numHits.incrementAndGet();\n }", "ServerToB.SeenInfo getSeenInfo(int index);", "void checkRepeated() {\r\n Move check = listOfMoves.peek();\r\n if (map.containsKey(check)) {\r\n _repeated = true;\r\n _winner = map.get(check.from()).opponent();\r\n }\r\n _repeated = false;\r\n }", "public void duplicate() {\n System.out.println(\"Je bent al in bezit van deze vragenlijst!\");\n }", "@Override\n\tpublic void accept(Visitor v) {\n\t\tv.visit(this);\n\t}" ]
[ "0.55577976", "0.5551896", "0.54938215", "0.5436172", "0.54004043", "0.53184295", "0.52971584", "0.52563465", "0.52563465", "0.52488816", "0.5238751", "0.5225185", "0.5189496", "0.51876575", "0.509751", "0.5082645", "0.50684637", "0.50683725", "0.50540626", "0.5037533", "0.5031998", "0.5029885", "0.5021643", "0.49994332", "0.4993902", "0.4989734", "0.4989338", "0.49793562", "0.49791425", "0.49744216", "0.49672157", "0.49530733", "0.4939868", "0.49295288", "0.4928777", "0.49067754", "0.48971355", "0.48924583", "0.48866653", "0.48849675", "0.48783818", "0.4873393", "0.48691624", "0.4864175", "0.48575607", "0.48537356", "0.48406014", "0.48362967", "0.4830734", "0.48215908", "0.48139125", "0.4809462", "0.48083866", "0.4797241", "0.47953504", "0.47939515", "0.47930276", "0.47905377", "0.47859192", "0.4780436", "0.47784165", "0.47701785", "0.47688907", "0.47672498", "0.47592652", "0.4752136", "0.47499782", "0.47433898", "0.47418657", "0.47353852", "0.4734745", "0.47342327", "0.47275758", "0.47186604", "0.4715104", "0.4711682", "0.47057903", "0.4702393", "0.4702393", "0.4701243", "0.46865082", "0.468495", "0.46845537", "0.46845484", "0.4683433", "0.46786967", "0.4678165", "0.46779943", "0.467795", "0.4674627", "0.46688104", "0.46660116", "0.4665852", "0.4661401", "0.46594122", "0.46581036", "0.46579438", "0.4657601", "0.4652856", "0.46495467", "0.4642004" ]
0.0
-1
only out put time.
private String msg3() { return("[" + (System.currentTimeMillis() - system_start_time) + "] "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getIO_time();", "private void PrintTimeToET() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tjetztStdTxt.setText(Integer.toString(c.get(Calendar.HOUR_OF_DAY)));\n\t\tjetztMinTxt.setText(Integer.toString(c.get(Calendar.MINUTE)));\n\n\t}", "static public String soutAllTimer() {\n return HeartCore.t + \" - \" + HeartMoveBird.internalTime + \" - \" + HeartMoveObstacle.tWall;\n }", "private void printTimer() {\n\t\tif (_verbose) {\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"-- \" + getTimeString() + \" --\");\n\t\t}\n\t}", "public double getTime() { return time; }", "protected void printExecutionTime(){\n //Do nothing\n }", "public double getTime() {return _time;}", "@Override\n\tpublic String getTime() {\n\t\treturn time;\n\t}", "private void printTotalComputeTime\n\t\t(PrintWriter out)\n\t\t{\n\t\tif (myTotalComputeTime < 1000000L)\n\t\t\t{\n\t\t\tout.print (myTotalComputeTime / 1000L);\n\t\t\t}\n\t\telse if (myTotalComputeTime < 1000000000L)\n\t\t\t{\n\t\t\tout.print (\"Over \");\n\t\t\tout.print (myTotalComputeTime / 1000000L);\n\t\t\tout.print (\" thousand\");\n\t\t\t}\n\t\telse if (myTotalComputeTime < 1000000000000L)\n\t\t\t{\n\t\t\tout.print (\"Over \");\n\t\t\tout.print (myTotalComputeTime / 1000000000L);\n\t\t\tout.print (\" million\");\n\t\t\t}\n\t\telse if (myTotalComputeTime < 1000000000000000L)\n\t\t\t{\n\t\t\tout.print (\"Over \");\n\t\t\tout.print (myTotalComputeTime / 1000000000000L);\n\t\t\tout.print (\" billion\");\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tout.print (\"Over \");\n\t\t\tout.print (myTotalComputeTime / 1000000000000000L);\n\t\t\tout.print (\" trillion\");\n\t\t\t}\n\t\tout.println (\" CPU seconds served\");\n\t\t}", "private void showTime(){\r\n System.out.println(df.format(getHours()) + \":\" + df.format(getMinutes()+ \"\\n\"));\r\n }", "@Override\r\n\tpublic String gettime() {\n\t\treturn user.gettime();\r\n\t}", "public int getTime() { return _time; }", "@Override\n public long getTime() {\n return time;\n }", "public boolean printExecutionTime(){\r\n return false;\r\n }", "public double time()\n\t{\n\t\treturn _dblTime;\n\t}", "public double time()\n\t{\n\t\treturn _dblTime;\n\t}", "public void setOutTime1(String outTime1) {\n\tthis.outTime1 = outTime1;\n }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "public abstract double sensingTime();", "double getClientTime();", "public String getOutTime1() {\n\treturn outTime1;\n }", "private void printDeltaTime\n\t\t(PrintWriter out,\n\t\t long now,\n\t\t long then)\n\t\t{\n\t\tout.print ((now - then + 500L) / 1000L);\n\t\tout.print (\" sec\");\n\t\t}", "private void askForTime() {\n\t\tconnectToServer();\n\t\tout.println(\"What Time is It ?\");\n\t\tout.flush();\n\t\ttry {\n\t\t\tString time = in.readLine();\n\t\t\tSystem.out.println(\"CLIENT: The time is \" + time);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"CLIENT: Cannot receive time from server\");\n\t\t}\n\t\tdisconnectFromServer();\n\t}", "private static void displayOutput( float t ) {\n\t\tfor (Output o: outputList) {\n\t\t\to.outputMe();\n\t\t}\n\t\tSystem.out.println();\n\n\t\t/*if (Simulator.moreEvents()) {\n\t\t\tSimulator.schedule(\n\t\t\t\tt + 1,\n\t\t\t\t(float time) -> displayOutput( time )\n\t\t\t);\n\t\t}*/\n\t}", "public String getTime() {\r\n\t\treturn time;\r\n\t}", "public long getEventTime();", "public static boolean timeIsValid( PrintWriter _out, HashMap _state) {\n validity = true; \n state = _state;\n out = _out;\n\n out.println( \"<FONT COLOR=\\\"red\\\">\" ); \n out.println( \"<STRONG>\" ); \n\n checkLastSampleTime();\n\n out.println( \"</STRONG>\" ); \n out.println( \"</FONT>\" ); \n\n return validity;\n }", "public int getTime() {\r\n return time;\r\n }", "@java.lang.Override\n public long getTime() {\n return time_;\n }", "private void displayTimeInfo(final long startTime, final long endTime) {\n long diff = endTime - startTime;\n long seconds = diff / MSEC_PER_SECOND;\n long millisec = diff % MSEC_PER_SECOND;\n println(\"Time: \" + seconds + \".\" + millisec + \"s\\n\");\n }", "java.lang.String getServerTime();", "public String getTime() {\n return time;\n }", "long getTimeSpoutBoltF();", "public int getTIME_OUT() {\n\t\treturn TIME_OUT;\n\t}", "public String getTime() {\n\t\treturn time;\n\t}", "public double getTime() {\n return this.time;\n }", "@Override\r\n\tpublic long getTime() {\n\t\treturn this.time;\r\n\t}", "java.lang.String getPlayTime();", "public String getTime(){\n return time;\n }", "public String getTime() {\n String show = time;\n return show;\n }", "public String getTime() {\n return this.time;\n }", "public synchronized String getTime() {\n\t\treturn time;\n\t}", "public String getTime()\r\n\t{\r\n\t\treturn displayString;\r\n\t}", "public double getTimeOffset() {\r\n return lastTimeOutput;\r\n }", "private void showTime()\n {\n showText(\"Time: \" + time, 700, 25);\n }", "public Date getPrint_time(){\r\n\t\treturn this.print_time ;\r\n\t}", "public int getTime() {\n return time;\n }", "public int getTime() {\n return time;\n }", "public int getTime() {\n return time;\n }", "public long getTime() {\n return time_;\n }", "public long getTime() {\n return time_;\n }", "public long getTime() {\n return time_;\n }", "public String toString()\n {\n String output = new String();\n output = \"The time is \" + hour + \":\" + min + \":\" + sec + \"\\n\";\n return output;\n }", "public void printClock() {\n\t\tSystem.out.println(this);\n\t}", "public String getEndTime();", "public String getEndTime();", "public String toString() {\n return this.time != null ? this.time.format(TIME_FORMATTER) : \"\";\n }", "public String getEndTime() {\n/* 34 */ return this.endTime;\n/* */ }", "long time() {\r\n\t\treturn System.currentTimeMillis();\r\n\t}", "public Date time() {\n return _time;\n }", "public Date time() {\n return _time;\n }", "private static String timeLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, TIME_STR, TIME);\n }", "public void printQuiet() {\n if (numOut != 0) {\n System.out.println(numIn + \",\" + numOut + \",\" + (totTimeWait / numIn) + \",\" + (totTime / numOut));\n } else {\n System.out.println(numIn + \",\" + numOut + \",\" + (totTimeWait / numIn) + \",0\");\n }\n }", "public double getFullTime() {\n return fullTime_;\n }", "public Date time() {\n return _time;\n }", "@Override\r\n\tpublic void startTime() {\n\t\tSystem.out.println(\"인터페이스 ISports2메소드 --> startTime()\");\r\n\t\t\r\n\t}", "public long getTime() {\r\n \treturn time;\r\n }", "@Override\n\tpublic void WriteResponseTime() {\n\t\ttry (BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(responseTimeFileStr, true))) {\n\t\t\tString responseStr = \"Using Buffered Stream with a Byte Size of \" + bufferSize + \"\\n\";\n\t\t\tresponseStr += \"Response Time: \" + elapsedTime / 1000000.0 + \" msec\\n\\n\";\n\t\t\tout.write(responseStr.getBytes());\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public String getTime() {\n\t}", "public void printTimeRemaining() {\n long timeInSeconds = getTimeRemaining();\n long seconds = timeInSeconds % 60;\n long minutes = timeInSeconds / 60;\n System.out.println(\"Time until the oxygen supply runs out: \" + minutes \n + \" minutes and \" + seconds + \" seconds.\");\n }", "public String elapsedTime() {\n return totalWatch.toString();\n }", "public Date getEventTime() {\n\t\treturn time;\n\t}", "public int getTotalTime();", "T getEventTime();", "@Override\r\n\tpublic void endTime() {\n\t\tSystem.out.println(\"인터페이스 ISports2메소드 --> endTime()\");\r\n\t}", "public int getTime() {\n\t\treturn time;\n\t}", "public int getTime() {\n\t\treturn time;\n\t}", "public String getNiceTime(){\n\t\treturn sTimeFormat.format(mTime);\n\t}", "int getEndTime();", "int getEndTime();", "int getEndTime();", "public double showHarvestTime(){\r\n\t\tSystem.out.println(\"The average harvest time is \" + averageHarvestTime + \" \" + timeUnit);\r\n\t\treturn averageHarvestTime;}", "public long getTime() {\n return time_;\n }", "public long getTime() {\n return time_;\n }", "public String getOutTime2() {\n\treturn outTime2;\n }", "public String getOutTime3() {\n\treturn outTime3;\n }", "protected double getElapsedTime() {\n\t\treturn Utilities.getTime() - startTime;\n\t}", "public static String getPrintToTextTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n return sdf.format(System.currentTimeMillis());\n }", "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tout.append(\" total time is taken to upload the video is\"+\",\"+String.valueOf(dif_upload)+\"ms\"+\",\"+Scenario);\n\t\t\t\t\t\t\t out.newLine();\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\t\t\t\t out.close();\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "public double getFullTime() {\n return fullTime_;\n }", "public static void printExecutionTime() {\n long endTime = System.currentTimeMillis();\n\n logger.info(\"Completed Execution in: \" + (endTime - ClientExecutorEngine.getStartTime())/1000.0 + \" seconds.\");\n }", "@SimpleFunction(description = \"Gets the current time.\"\n + \"It is formatted correctly for iSENSE\")\n public String GetTime() {\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\");\n return sdf.format(cal.getTime()).toString();\n }", "public void logElapsedTime() {\r\n\r\n NumberFormat nf = NumberFormat.getInstance();\r\n\r\n nf.setMaximumFractionDigits(2);\r\n nf.setMinimumFractionDigits(2);\r\n\r\n historyString = new String(\"Elapsed Time = \" + nf.format(getElapsedTime()) + \" sec.\\n\");\r\n writeLog();\r\n }", "public OutputTimeSpec getOutputTimeSpec() {\n\t\treturn fieldOutputTimeSpec;\n\t}", "public java.lang.String getTime () {\n\t\treturn time;\n\t}", "double getFullTime();", "private void formatTime() {\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat ft = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\tm_timeSent = ft.format(date).toString();\r\n\t}", "public void setOutTime2(String outTime2) {\n\tthis.outTime2 = outTime2;\n }", "double getTime();", "long getTimeSpoutBoltA();", "private static String time() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH-mm-ss \");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}" ]
[ "0.6839566", "0.67368805", "0.66452295", "0.6624371", "0.654736", "0.65178293", "0.64904493", "0.6469597", "0.64440775", "0.642042", "0.63816726", "0.6368728", "0.63561255", "0.6345226", "0.62530977", "0.62530977", "0.62510043", "0.6220718", "0.6206463", "0.6198071", "0.6181408", "0.61719894", "0.6136859", "0.6111431", "0.60956365", "0.6094297", "0.6092792", "0.60739243", "0.60568917", "0.6056853", "0.6056435", "0.6055183", "0.60494524", "0.6036821", "0.60360473", "0.6035778", "0.6032541", "0.6029874", "0.6027898", "0.60097575", "0.6009637", "0.60061353", "0.59969586", "0.5995009", "0.59938425", "0.59914976", "0.5991132", "0.5991132", "0.5991132", "0.5986717", "0.5986717", "0.5986717", "0.5983688", "0.59769267", "0.5958694", "0.5958694", "0.5947221", "0.59456086", "0.5941198", "0.5936481", "0.5936481", "0.59350663", "0.5933364", "0.59307307", "0.592996", "0.5927698", "0.5921481", "0.59104514", "0.59095377", "0.5908308", "0.5906123", "0.59027565", "0.59016234", "0.5898503", "0.58955586", "0.58938885", "0.58938885", "0.58930033", "0.5890312", "0.5890312", "0.5890312", "0.58753294", "0.58700484", "0.58700484", "0.5867483", "0.58663833", "0.5865981", "0.5864769", "0.58576137", "0.5853842", "0.58538043", "0.58535355", "0.5840425", "0.58383584", "0.58382803", "0.5834893", "0.583436", "0.5823515", "0.5810871", "0.5807078", "0.5806348" ]
0.0
-1
reply for clock, speaker or visitor.
private void reply( OutputStream outputStream, MethodTable mt) throws IOException { ObjectOutputStream oos = new ObjectOutputStream(outputStream); if(mt.getID() == -1) { oos.writeObject(msg3() + "Hi, "+ mt.getThreadName() + ", Server already recevies and run your method that is " + mt.getMethodName()); } else { oos.writeObject(msg3() + "Hi, "+ mt.getThreadName() + mt.getID() + ", Server already recevies and run your method that is " + mt.getMethodName()); } oos.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendReply(String cmd, String reply) {\n if (cmd.equals(\"ACTION_REPLY\")){\n long now = System.currentTimeMillis();\n long processTime = now - startTime;\n out.println(cmd + \"<<\"+processTime+\":\"+ reply);\n }else{\n //out.println(cmd + \"<<null\" + reply);\n out.println(cmd + \"<<\" + reply); //changed per drew's suggestion\n }\n \n }", "public void reply(){\n ArrayList<String> potentialReceivers= messageController.replyOptionsForSpeaker(speaker);\n ArrayList<String> options = listBuilderWithIntegers(potentialReceivers.size());\n speakerMessageScreen.replyOptions(messageController.replyOptionsForSpeakerInString(speaker));\n if(messageController.replyOptionsForSpeakerInString(speaker).size() != 0) {\n String answerInString = scanner.nextLine();\n while(!options.contains(answerInString)){\n speakerMessageScreen.invalidInput(answerInString);\n answerInString = scanner.nextLine();\n }\n\n // now answer is valid\n\n int answerInInteger = Integer.parseInt(answerInString);\n String receiver = potentialReceivers.get(answerInInteger - 1);\n\n speakerMessageScreen.whatMessage();\n String messageContext = scanner.nextLine();\n messageController.sendMessage(speaker, receiver, messageContext);\n speakerMessageScreen.congratulations();\n }\n\n }", "public void onRecieve(RoundTimeMessage message) {\n\n\n }", "public void setReplyType(String rt) {\n/* 318 */ getCOSObject().setName(\"RT\", rt);\n/* */ }", "public void talk() {\n\n\t}", "public String getReplyType() {\n/* 307 */ return getCOSObject().getNameAsString(\"RT\", \"R\");\n/* */ }", "void reply(Server server);", "private void __getReply() throws IOException\n {\n __getReply(true); // tagged response\n }", "public String reply(MessageIntent intent, Conversation conv) \n throws IOException, IllegalStateException {\n // if we query where at any point, then tell them where\n if (intent == MessageIntent.QUERY_WHERE) {\n return WordLattice.fromFile(\"where.lat\")\n .generate(conv.getAppointmentTime(), conv.getName());\n }\n // switch the state\n switch (conv.getState()) { \n case Conversation.STATE_PROCESSING:\n // we are in processing state\n // propose a time block\n if (intent == MessageIntent.SCHEDULE) {\n return proposeTime(conv, false);\n }\n break;\n case Conversation.STATE_APPT_PROPOSED:\n // we previously proposed an appointment, now we have a response\n // resolve that\n return resolveProposal(intent, conv);\n case Conversation.STATE_ARCHIVED:\n if (intent == MessageIntent.THANKS) {\n return WordLattice.fromFile(\"yourewelcome.lat\").generate(conv.getAppointmentTime(), conv.getName());\n } else {\n return null;\n }\n case Conversation.STATE_RESCHEDULING:\n // then we are in the process of rescheduling, deal with that\n return reschedule(intent, conv);\n case Conversation.STATE_SET:\n // We received a message after the appt was set\n return set(intent, conv);\n default:\n throw new IllegalStateException(String.format(\"Got state %s\", conv.getState()));\n }\n \n return null;\n }", "public void askForType() {\n System.out.println(\"What type of event will this be?\");\n System.out.println(\"1) Normal 2) Multi-Speaker 3) VIP\");\n }", "@Override\n public void talk(Direction myDirection){\n }", "void action(String response, GameChatEvent cause) throws InterruptedException, IOException;", "@Override\n\tpublic void talk() {\n\t\tSystem.out.println(\"黄种人-说\");\n\t}", "void message(String response, GameChatEvent cause) throws InterruptedException, IOException;", "private static void reply(final RoutingContext context, final Envelop envelop,\n final Set<MediaType> mediaTypes, final Method sessionAction) {\n final HttpServerResponse response = context.response();\n /*\n * FIX: java.lang.IllegalStateException: Response is closed\n */\n if (!response.closed()) {\n /*\n * Set http status information on response, all information came from `Envelop`\n * 1) Status Code\n * 2) Status Message\n */\n final HttpStatusCode code = envelop.status();\n response.setStatusCode(code.code());\n response.setStatusMessage(code.message());\n /*\n * Bind Data\n */\n envelop.bind(context);\n /*\n * Media processing\n */\n Outcome.media(response, mediaTypes);\n /*\n * Security for response ( Successful Only )\n */\n if (envelop.valid()) {\n Outcome.security(response);\n /*\n * SessionData Stored\n */\n storeSession(context, envelop.data(), sessionAction);\n }\n /*\n * Plugin Extension for response replying here ( Plug-in )\n */\n PluginExtension.Answer.reply(context, envelop);\n /*\n * Output of current situation\n */\n Outcome.out(response, envelop, mediaTypes);\n }\n }", "public abstract void talk();", "abstract public void acceptMessage(OSCMessage message, TuioTime currentTime);", "void handlePacket(String devReplyStr);", "public void answer(Message response) throws IOException {\n out.writeObject(response);\n out.flush();\n }", "pb4server.WorldChatAskReq getWorldChatAskReq();", "boolean hasReply();", "@Override\n public void submitAnswer(PlayerAnswer playerAnswer) {\n\n\n }", "private void askForTime() {\n\t\tconnectToServer();\n\t\tout.println(\"What Time is It ?\");\n\t\tout.flush();\n\t\ttry {\n\t\t\tString time = in.readLine();\n\t\t\tSystem.out.println(\"CLIENT: The time is \" + time);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"CLIENT: Cannot receive time from server\");\n\t\t}\n\t\tdisconnectFromServer();\n\t}", "public void responseSent(DesktopCtrl desktopCtrl, String channel, String reqId, Object resInfo);", "@Override\n public Optional<Response> handle(HandlerInput input) {\n Map<String, Object> sessionAttributes = input.getAttributesManager().getSessionAttributes();\n int counter = (int) sessionAttributes.get(Attributes.COUNTER_KEY);\n\n String question = RiddleUtils.setupSessionAttributes(sessionAttributes, counter);\n String speech= \"No Problem!\" + question;\n\n return input.getResponseBuilder()\n .withSimpleCard(\"RiddleSession\", speech)\n .withSpeech(speech)\n .withReprompt(speech)\n .withShouldEndSession(false)\n .build();\n }", "private String set(MessageIntent intent, Conversation conv) \n throws IOException, IllegalStateException {\n switch (intent) {\n case QUERY_WHEN:\n // construct the response using conv.getAppointmentTime();\n return WordLattice.fromFile(\"when.lat\")\n .generate(conv.getAppointmentTime(), conv.getName());\n\n case CANCEL:\n // cancel\n scheduleManager.removeAppt(conv.getAppointmentTime());\n conv.setState(Conversation.STATE_RESCHEDULING);\n\n return WordLattice.fromFile(\"signoff.lat\")\n .generate(conv.getAppointmentTime(), conv.getName());\n\n case APPOINTMENT_INVALID:\n // start rescheduling\n scheduleManager.invalidateBlock(conv.getAppointmentTime(), conv);\n conv.setState(Conversation.STATE_RESCHEDULING);\n\n // gen response\n return WordLattice.fromFile(\"reschedule.lat\")\n .generate(conv.getAppointmentTime(), conv.getName());\n\n case REQUEST_RESCHEDULE:\n // then they already requested to reschedule the appointment, \n // no need to offer to reschedule\n scheduleManager.invalidateBlock(conv.getAppointmentTime(), conv);\n return proposeTime(conv, true);\n \n case THANKS:\n // then thank the person\n return WordLattice.fromFile(\"yourewelcome.lat\")\n .generate(conv.getAppointmentTime(), conv.getName());\n \n default:\n Server.logger.log(Level.SEVERE, String.format(\"Got signal %s\", intent));\n throw new IllegalStateException(\"Reached an illegal action out of S2\");\n }\n }", "public void opponentResponseCountdown() {\n responseTimer = 101;\n opponentResponseSwitch = true;\n }", "public String getIDKReply();", "@Override\n protected boolean isPersonalTell(ChatEvent evt){\n String type = evt.getType();\n return \"tell\".equals(type) || \"say\".equals(type) || \"ptell\".equals(type);\n }", "@Override\n public void receivedReply(final RequestTargetReply reply) {\n }", "void onAction(TwitchUser sender, TwitchMessage message);", "private void handleRequestResponse(JSONObject answer) {\n\t\tJSONArray events = answer.optJSONArray(\"events\");\n\t\tif (events!=null) {\n\t\t\tlong time = System.currentTimeMillis();\n\t\t\tint length = events.length();\n\t\t\tfor (int i=0; i<length; i++) {\n\t\t\t\tLogEvent event = LogEvent.fromJSON(events.getJSONObject(i));\n\t\t\t\tevent.time = time;\n\t\t\t\tevent.ignore = true; // don't send back to logging server\n\t\t\t\tthis.plugin.postEvent(event);\n\t\t\t}\n\t\t}\n\t\tJSONObject plugins = answer.optJSONObject(\"plugins\");\n\t\tif (plugins!=null && !plugin.bukkitMode) {\n\t\t\tthis.plugin.updater.setAvailablePlugins(plugins);\n\t\t}\n\t}", "@Override\r\n\tpublic void showDoTimeMessage(Player player) {\n\t}", "final protected void sendClock() {\n\t\tNode cn = peers.iterator().next();\n\t\tif (cn.serial - serial == 1 || (serial - cn.serial != 1 && cn.serial < serial))\n\t\t\tsend(cn);\n\t\telse\n\t\t\tsendAllBut(cn);\n\t}", "public void accept()\n { ua.accept();\n changeStatus(UA_ONCALL);\n if (ua_profile.hangup_time>0) automaticHangup(ua_profile.hangup_time); \n printOut(\"press 'enter' to hangup\"); \n }", "static private void TalkTo() {\n if (BSChristiansen.getCurrentRoom() == currentRoom) {\n System.out.println(BSChristiansen.getDescription() + \", yet he still gives you good advice:\\n\");\n System.out.println(BSChristiansen.getDialog(0));\n System.out.println(\"\");\n woundedSurvivor();\n } else if (mysteriousCrab.getCurrentRoom() == currentRoom && inventory.getInventory().containsKey(\"Shroom\")) {\n System.out.println(mysteriousCrab.getDescription() + \"\\n\" + mysteriousCrab.getDialog(0));\n } else {\n System.out.println(\"There is nobody to communicate with in this Room\");\n }\n\n }", "public void enterConference();", "@Override\n\tpublic void ping() {\n\t\t//respond to ping with pong\n\t\tlastPing = System.currentTimeMillis();\n\t\tthis.writeNow(\"type:pong;\");\n\t}", "public void communicate() {\r\n System.out.println(\"This iPhone is making a phone call.\");\r\n }", "public void messageResp(int respId) {\n\r\n\t}", "private void manageAcceptedPacket(MeetingPacket packet) {\n Console.comment(\"=> Meeting response packet accepted from \" + packet.getSourceAddress()) ;\n\n if(this.callbackOnAccepted != null) {\n this.callbackOnAccepted.handle(packet.getSourceUser()) ;\n }\n }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "@Override\n\tpublic void speak() {\n\t\tSystem.out.println(\"tik tik.......\");\n\t}", "public void talk() {\n\t try{\t\n\t \twhile(exit) {\n\t\t \t\t//Definizione stream per la comunicazione\n\t\t \t\ttastiera = new BufferedReader(new InputStreamReader(System.in));\n\t\t \t\tout = new DataOutputStream(connection.getOutputStream());\n\t\t\t\t in = new DataInputStream(connection.getInputStream());\n\t\t\t\t \n\t\t \t\t//Invio messaggio\n\t\t\t\t System.out.println(\"Inserisci il messaggio da mandare al server: \\n\");\n\t\t\t\t mess = tastiera.readLine();\n\t\t\t\t\tout.writeUTF(mess + \"\\n\");\n\t\t\t\t\t\n\t\t\t\t\t//Ricezione risposta server\n\t\t\t\t\tservermess = in.readUTF();\n\t\t\t System.out.println(\"Risposta dal server: \"+servermess);\n\t\t\t if(mess.equals(\"FINE\")) {\n\t\t\t \texit = false;\n\t\t\t }\n\t\t\t\t}\n\t\t }\n\t\t catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t }\n\t \tfinally {\n\t\t\t try {\n\t\t\t\t if (connection!=null)\n\t\t\t\t {\n\t\t\t\t connection.close();\n\t\t\t\t System.out.println(\"Connessione chiusa!\");\n\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t catch(IOException e){\n\t\t\t System.err.println(\"Errore nella chiusura della connessione!\");\n\t\t\t }\n\t \t}\t\n \t}", "void tell(String message, Result<Actor<InputOutput>> sender);", "public void selectResponse(String response , Player player);", "public interface AnyRTCMeetEvents {\n /**Join meet OK\n * @param strAnyrtcId\n */\n public void OnRtcJoinMeetOK(String strAnyrtcId);\n\n /** Join meet Failed\n * @param strAnyrtcId\n * @param code\n * @param strReason\n */\n public void OnRtcJoinMeetFailed(String strAnyrtcId, AnyRTC.AnyRTCErrorCode code, String strReason);\n\n /** Leave meet\n * @param code\n */\n public void OnRtcLeaveMeet(int code);\n\n\n}", "@Override\n\tpublic void onResponse( Object cookie, ResponseJSO response, int msgLevel, String msg )\n\t{\n\t\tPendingRequestInfo info = (PendingRequestInfo) cookie;\n\n\t\t// Store answer in cache\n\t\tif( info.fStoreResultInCache )\n\t\t\tcache.put( info.requestKey, response );\n\n\t\t// give the result to all the subscribees\n\t\tfor( RequestCallInfo call : info.subscriptions )\n\t\t\tcall.setResult( msgLevel, msg, null, response );\n\n\t\t// forget this request\n\t\tpendingRequests.remove( info );\n\n\t\t// calls back the clients\n\t\tcheckAnswersToGive();\n\t}", "@Override\n\tpublic void dtmfReceived(LinphoneCore lc, LinphoneCall call, int dtmf) {\n\t\t\n\t}", "public void messageReceived(OscMessage aMessage);", "@Override\r\n\tpublic void mesage() {\n\t\tSystem.out.println(\"通过语音发短信\");\r\n\t}", "private void cs0() {\n\t\t\tif(!Method.isChatiing()){\n\t\t\t\tMethod.npcInteract(RUNESCAPEGUIDE, \"Talk-to\");\n\t\t\t}\n\t\t\t\n\t\t}", "public void send(int highOption, int option) throws InstantiationException, IllegalAccessException, IOException, InterruptedException, ClassNotFoundException, RemoteReadException\n\t{\n\t\tint index = 0;\n\t\tClientHelloWorldBroadcastResponse broadcastResponse;\n\t\tClientHelloWorldAnycastResponse anycastResponse;\n\t\tClientHelloWorldUnicastResponse unicastResponse;\n\t\tswitch (option)\n\t\t{\n\t\t\tcase ChatOptions.TYPE_CHAT:\n\t\t\t\tSystem.out.println(\"Please type your message: \");\n\t\t\t\tString message = in.nextLine();\n\t\t\t\tswitch (highOption)\n\t\t\t\t{\n\t\t\t\t\tcase MulticastOptions.BROADCAST_NOTIFICATION:\n\t\t\t\t\t\tMulticastClient.FRONT().syncNotify(new HelloWorldBroadcastNotification(new HelloWorld(message)));\n\t\t\t\t\t\tSystem.out.println(\"You notification is broadcast!\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase MulticastOptions.ANYCAST_NOTIFICATION:\n\t\t\t\t\t\tMulticastClient.FRONT().syncNotify(new HelloWorldAnycastNotification(new HelloWorld(message)));\n\t\t\t\t\t\tSystem.out.println(\"You notification is anycast!\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase MulticastOptions.UNICAST_NOTIFICATION:\n\t\t\t\t\t\tMulticastClient.FRONT().syncNotify(new HelloWorldUnicastNotification(new HelloWorld(message)));\n\t\t\t\t\t\tSystem.out.println(\"You notification is unicast!\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase MulticastOptions.BROADCAST_REQUEST:\n\t\t\t\t\t\tbroadcastResponse = (ClientHelloWorldBroadcastResponse)MulticastClient.FRONT().read(new ClientHelloWorldBroadcastRequest(new HelloWorld(message)));\n\t\t\t\t\t\tSystem.out.println(\"You request is broadcast!\");\n\t\t\t\t\t\tSystem.out.println(\"You got \" + broadcastResponse.getResponses().size() + \" responses\");\n\t\t\t\t\t\tfor (HelloWorldBroadcastResponse response : broadcastResponse.getResponses())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(++index + \") response = \" + response.getHelloWorld().getHelloWorld());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase MulticastOptions.UNICAST_REQUEST:\n\t\t\t\t\t\tunicastResponse = (ClientHelloWorldUnicastResponse)MulticastClient.FRONT().read(new ClientHelloWorldUnicastRequest(new HelloWorld(message)));\n\t\t\t\t\t\tSystem.out.println(\"You request is unicast!\");\n\t\t\t\t\t\tSystem.out.println(\"You got \" + unicastResponse.getResponses().size() + \" responses\");\n\t\t\t\t\t\tfor (HelloWorldUnicastResponse response : unicastResponse.getResponses())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(++index + \") response = \" + response.getHelloWorld().getHelloWorld());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase MulticastOptions.ANYCAST_REQUEST:\n\t\t\t\t\t\tanycastResponse = (ClientHelloWorldAnycastResponse)MulticastClient.FRONT().read(new ClientHelloWorldAnycastRequest(new HelloWorld(message)));\n\t\t\t\t\t\tSystem.out.println(\"You request is anycast!\");\n\t\t\t\t\t\tSystem.out.println(\"You got \" + anycastResponse.getResponses().size() + \" responses\");\n\t\t\t\t\t\tfor (HelloWorldAnycastResponse response : anycastResponse.getResponses())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(++index + \") response = \" + response.getHelloWorld().getHelloWorld());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase ChatOptions.QUIT_CHAT:\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void oscEvent(OscMessage theOscMessage) {\n /* with theOscMessage.isPlugged() you check if the osc message has already been\n * forwarded to a plugged method. if theOscMessage.isPlugged()==true, it has already \n * been forwared to another method in your sketch. theOscMessage.isPlugged() can \n * be used for double posting but is not required.\n */ \n if(theOscMessage.isPlugged()==false) {\n /* print the address pattern and the typetag of the received OscMessage */\n println(\"### received an osc message.\");\n println(\"### addrpattern\\t\"+theOscMessage.addrPattern());\n println(\"### typetag\\t\"+theOscMessage.typetag());\n }\n}", "@Override\n\tpublic void sendPacket() {\n\t\t\n\t\tStringBuilder theURL = new StringBuilder();\n\t\t\n\t\ttheURL.append(core.modelCore.targetURL);\n\t\ttheURL.append(\"michael/updateevent.php?\");\n\t\ttheURL.append(\"page=\" + \"eleven\" +\"&\"); //page = \"three\"&\n\t\ttheURL.append(\"name=\" + core.modelCore.selectedEvent.eventName +\"&\");\n\t\ttheURL.append(\"answer=\" + yesBox.isChecked() +\"&\");\n\t\ttheURL.append(\"user=\" + core.modelCore.username);\n\t\t\n\t\tSystem.out.println( theURL.toString() );\n\t\t\n\t\tLogic_PHP.getResponseFromURL(core, theURL.toString());\n\t}", "public boolean request() {\n\t\tif (inAnySession()) {\n\t\t\tplayer.exchangeSession.reset();\n\t\t\treturn false;\n\t\t}\n\t\t\n if (!PlayerRight.isDeveloper(player) && !PlayerRight.isDeveloper(other)) {\n if (player.playTime < 3000) {\n player.message(\"You cannot trade until you have 30 minutes of playtime. \" + Utility.getTime(3000 - player.playTime) + \" minutes remaining.\");\n return false;\n }\n if (other.playTime < 3000) {\n player.message(other.getName() + \" cannot trade until they have 30 minutes of playtime.\");\n return false;\n }\n }\n\t\t \n\t\tif (getSession(other).isPresent() && getSession(other).get().inAnySession()) {\n\t\t\tplayer.message(\"This player is currently is a \" + type.name + \" with another player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (Objects.equals(player, other)) {\n\t\t\tplayer.message(\"You cannot \" + type.name + \" with yourself.\");\n\t\t\treturn false;\n\t\t}\n if (PlayerRight.isIronman(player) && !PlayerRight.isDeveloper(other)) {\n player.message(\"You can not \" + type.name + \" as you are an iron man.\");\n return false;\n }\n if (PlayerRight.isIronman(other) && !PlayerRight.isDeveloper(player)) {\n player.message(other.getName() + \" can not be \" + type.name + \"d as they are an iron man.\");\n return false;\n }\n\t\tif (player.exchangeSession.requested_players.contains(other)) {\n\t\t\tplayer.message(\"You have already sent a request to this player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.locking.locked()) {\n\t\t\tplayer.message(\"You cannot send a \" + type.name + \" request right now.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.locking.locked()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.playerAssistant.busy()) {\n\t\t\tplayer.message(\"Please finish what you are doing before you do that.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.playerAssistant.busy()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tplayer.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tother.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!onRequest()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn SESSIONS.add(this);\n\t}", "public void afterReceivingeGainChatResponse(ChatResponse response);", "public void onEventResponded(int eventID, int qid, String qtype, String responseString);", "private String chooseAppropriateAction(User currentUser, String dtmf, Chapter chapter) {\n Response response = new Response();\n if(dtmf != null && dtmf.equals(\"#\")) {\n response.addHangup();\n return response.getXML();\n }\n\n if(dtmf != null) {\n UserUtil.saveAnswer(currentUser, chapter, dtmf);\n }\n return UserUtil.continueQuiz(currentUser, chapter);\n }", "String getAnswerResponse();", "public void ResultVoiceCoincidence(EventVoice event);", "@Override\n\t\t\tpublic void action() {\n\t\t\t\tACLMessage message =receive(messageTemplate);\n\t\t\t\tif(message!=null) {\n\t\t\t\t\tSystem.out.println(\"Sender => \" + message.getSender().getName());\n\t\t\t\t\tSystem.out.println(\"Content => \" + message.getContent());\n\t\t\t\t\tSystem.out.println(\"SpeechAct => \" + ACLMessage.getPerformative(message.getPerformative()));\n\t\t\t\t\t//reply with a message\n//\t\t\t\t\tACLMessage reply = new ACLMessage(ACLMessage.CONFIRM);\n//\t\t\t\t\treply.addReceiver(message.getSender());\n//\t\t\t\t\treply.setContent(\"Price = 1000\");\n//\t\t\t\t\tsend(reply);\n\t\t\t\t\t\n\t\t\t\t\tconsumerContainer.logMessage(message);\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"block() ...............\");\n\t\t\t\t\tblock();\n\t\t\t\t}\n\t\t\t}", "private void makeReply(JSONObject request, DataOutputStream clientStream) throws ParseException, IOException {\n\t\tGossip_client_message.Op op = Gossip_parser.getClientOp(request);\n\t\tString sender = Gossip_parser.getClientName(request);\n\t\ttry {\n\t\t\t\tswitch(op) {\n\t\t\t\n\t\t\t\tcase REGISTER_OP: {\n\t\t\t\t\tString password = Gossip_parser.getPassword(request);\n\t\t\t\t\tString language = Gossip_parser.getLanguage(request);\n\t\t\t\t\tdata.addUser(sender, password, language);\n\t\t\t\t\t//recupero la lista delle chat\n\t\t\t\t\tArrayList<Gossip_chat> chatlist = data.getChats();\n\t\t\t\t\t//invio dati di registrazione\n\t\t\t\t\tsendReply(new Gossip_info_registration_message(chatlist, data.getUser(sender)), clientStream);\n\t\t\t\t} break;\n\t\t\t\t\n\t\t\t\tcase LOGIN_OP: {\n\t\t\t\t\tString password = Gossip_parser.getPassword(request);\n\t\t\t\t\tif (data.getUser(sender).getPassword().equals(password)) {\n\t\t\t\t\t\t//imposto l'utente come online\n\t\t\t\t\t\tdata.setStatus(sender, true);\n\t\t\t\t\t\t//recupero la lista degli amici e quella delle chat\n\t\t\t\t\t\tArrayList<Gossip_user> friendlist = data.getFriends(sender);\n\t\t\t\t\t\tArrayList<Gossip_chat> chatlist = data.getChats();\n\t\t\t\t\t\t//invio dati di login\n\t\t\t\t\t\tsendReply(new Gossip_info_login_message(friendlist, chatlist, data.getUser(sender)), clientStream);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t//password errata\n\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.WRONGPASSWORD), clientStream);\n\t\t\t\t} break;\n\t\t\t\t\t\n\t\t\t\tcase LOGOUT_OP: {\n\t\t\t\t\tdata.setStatus(sender, false);\n\t\t\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.SUCCESS_OP), clientStream);\n\t\t\t\t} break;\n\t\t\t\t\t\n\t\t\t\tcase ACTION_OP:\n\t\t\t\t\tmakeAction(request, clientStream);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase LISTENING_OP:\n\t\t\t\t\tString password = Gossip_parser.getPassword(request);\n\t\t\t\t\t//memorizzo il socket solo se la password è esatta\n\t\t\t\t\tif (data.getUser(sender).getPassword().equals(password)) {\n\t\t\t\t\t\tdata.getUser(sender).setMessageSocket(clientSocket);\n\t\t\t\t\t\t//è un socket solo per le notifiche, faccio terminare il thread\n\t\t\t\t\t\tcloseThread = true;\n\t\t\t\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.SUCCESS_OP), clientStream);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//termino comunque il thread\n\t\t\t\t\t\tcloseThread = true;\n\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.WRONGPASSWORD), clientStream);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase CHAT_OP:\n\t\t\t\t\t//operazione di interazione con chatroom\n\t\t\t\t\tmakeChatOp(request, clientStream);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.UNKNOWN_REQUEST), clientStream);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} catch (NodeAlreadyException e) {\n\t\t\t//username già in uso\n\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.NICKALREADY), clientStream);\n\t\t} catch (NodeNotFoundException e) {\n\t\t\t//utente non registrato\n\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.NICKUNKNOWN), clientStream);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void replyMessage(String s) {\n\t\ttextArea.append(\"CTZ Bot : \" + s + \"\\n\");\n\t}", "public void send_message(){\n logical_clock++;\n System.out.println(\"Send Message Clock:\" +logical_clock);\n encrypt(logical_clock);\n\n }", "public void talk(){\n\t\tSystem.out.println(this.name+\"が話す\");\n\t}", "public void talking(){\n System.out.println(\"PetOwner : *says something*\");\n }", "private void reply(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\r\n\t\tcomplainVo complainVo = new complainVo();\r\n\t\tcomplainVo.setComplainId(id);\r\n\t\tcomplainDao complainDao = new complainDao();\r\n\t\tList ls = complainDao.edit(complainVo);\r\n\t\tHttpSession session = request.getSession();\r\n\t\tsession.setAttribute(\"replyList\", ls);\r\n\t\t\r\n\t\tresponse.sendRedirect(\"Admin/replyComplain.jsp\");\r\n\t}", "void messageReceived(String mac, String mimeType);", "@Override\n\tpublic void msgUpdateTime(int time, int day) {\n\t\tlog.add(new LoggedEvent(\"Recieved Time \" + time));\n\t}", "public void speak() {\r\n\t\tSystem.out.print(\"This Tiger speaks\");\r\n\t}", "pb4server.Walk4ScoutAskReq getWalk4ScoutAskReq();", "public synchronized void crit_reply(String filename)\n {\n out.println(\"REPLY\");\n out.println(my_c_id);\n out.println(filename);\n }", "public abstract void sendTraceTimeCustom(Player p, String prefix);", "public void service(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String message = \"Hello. It's me.\";\n\n // Create a TwiML response and add our friendly message.\n Say say = new Say.Builder(message).build();\n\n // Play an MP3 for incoming callers.\n Play play = new Play.Builder(\"http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3\").build();\n\n Say sayInGather = new Say.Builder(\"To speak to a real person, press 1. \"\n + \"Press 2 to record a message for a Twilio educator. \"\n + \"Press any other key to start over.\").build();\n\n Gather gather = new Gather.Builder()\n .action(\"/handle-gather\")\n .numDigits(1)\n .method(Method.POST)\n .say(sayInGather)\n .build();\n\n VoiceResponse twiml = new VoiceResponse.Builder()\n .say(say)\n .play(play)\n .gather(gather)\n .build();\n\n response.setContentType(\"application/xml\");\n try {\n response.getWriter().print(twiml.toXml());\n } catch (TwiMLException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void action() {\n ACLMessage acl = receive();\n if (acl != null) {\n if (acl.getPerformative() == ACLMessage.REQUEST) {\n try {\n ContentElement elemento = myAgent.getContentManager().extractContent(acl);\n if (elemento instanceof PublicarServicio) {\n PublicarServicio publicar = (PublicarServicio) elemento;\n Servicio servicio = publicar.getServicio();\n jadeContainer.iniciarChat(servicio.getTipo(), servicio.getDescripcion());\n //myAgent.addBehaviour(new IniciarChatBehaviour(myAgent, servicio.getTipo(), servicio.getDescripcion()));\n } else if (elemento instanceof EnviarMensaje) {\n EnviarMensaje enviar = (EnviarMensaje) elemento;\n Mensaje mensaje = enviar.getMensaje();\n jadeContainer.enviarMensajeChatJXTA(mensaje.getRemitente(), mensaje.getMensaje());\n }\n } catch (CodecException ex) {\n System.out.println(\"CodecException: \" + ex.getMessage());\n } catch (UngroundedException ex) {\n System.out.println(\"UngroundedException: \" + ex.getMessage());\n } catch (OntologyException ex) {\n System.out.println(\"OntologyException: \" + ex.getMessage());\n }\n }\n } else {\n block();\n }\n }", "private @NonNull ByteBuffer sndMsg(final @NonNull ByteBuffer req, int typ) throws IOException {\n final @NonNull byte[] ba = req.array(); // Get request\n WpcLog.log(WpcLog.EvtTyp.REQ, ba); // Log request\n ByteBuffer res = ByteBuffer.wrap(mCom.sndMsg(ba)); // Send the Qi Authentication Request\n WpcLog.log(WpcLog.EvtTyp.RES, res.array()); // Log response\n if ((res.get() & AppLib.BYT_UNS) != ((ATH_VER << 4) | typ)) { // Unexpected type\n throw new IOException(); // Raise error\n }\n return res; // Return the Qi Authentication Response\n }", "@SuppressLint(\"NewApi\")\n\t@Override\n\tpublic void questionReceivedFromDoctor(QuestionData question) {\n\t\tlogger.info(\"questionReceivedFromDoctor(): prompting participant for question: '\" + question.getQuestion()\n\t\t\t\t+ \"'\");\n\n\t\t// TODO Expand this to include responses other than yes / no.\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(WorkoutActivity.this);\n\t\tfinal Boolean[] answer = new Boolean[1];\n\t\tanswer[0] = null;\n\t\tbuilder.setTitle(\"question\").setMessage(question.getQuestion())\n\t\t\t\t.setPositiveButton(QuestionData.RESPONSE_YES, new DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tanswer[0] = Boolean.TRUE;\n\t\t\t\t\t}\n\n\t\t\t\t}).setNegativeButton(QuestionData.RESPONSE_NO, new DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tanswer[0] = Boolean.FALSE;\n\t\t\t\t\t}\n\n\t\t\t\t}).setOnDismissListener(new DialogInterface.OnDismissListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\t\tAnswerData answerData = new AnswerData();\n\t\t\t\t\t\tif (answer[0] == Boolean.TRUE) {\n\t\t\t\t\t\t\tanswerData.setAnswer(QuestionData.RESPONSE_YES);\n\t\t\t\t\t\t} else if (answer[0] == Boolean.FALSE) {\n\t\t\t\t\t\t\tanswerData.setAnswer(QuestionData.RESPONSE_NO);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tanswerData.setAnswer(QuestionData.DID_NOT_RESPOND);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tworkoutService.getService().replyToQuestion(answerData);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public String receiveResponse()\n\t{\n\t\t\n\t}", "void speak() {\n\t\tSystem.out.println(\"저의 이름은 \" + name + \"이고 \" + \"혈액형은 \" + booldType +\"형 입니다\");\n\t}", "public void request(Object content) {\n\t\t\n\t\tif( isInitiator() && (getState() == RequestProtocolState.NOT_STARTED) ){\n\t\t\tsendMessage(content, Performative.REQUEST, getParticipants().get(0));\n\t\t\tsetState(RequestProtocolState.WAITING_ANSWER);\n\t\t}\n\t\telse if( isParticipant() ){\n\t\t\tthis.logger.log(Level.SEVERE, Locale.getString(\"FipaRequestProtocol.0\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\tthis.logger.log(Level.SEVERE, Locale.getString(\"FipaRequestProtocol.1\")); //$NON-NLS-1$\n\t\t}\n\t}", "@Override\n\tpublic void requestHandle(IPlayer player, IMessage message) {\n\t\t\n\t}", "public void talk() throws IOException, InterruptedException{\n\t\ttoServer.println(\"PICKUP\");\n\t\ttoServer.println(\"HELLO\");\n\t\ttoServer.println(\"LOOK\");\n\t\twhile (!gameOver){\n\t\t\tThread.sleep(500);\n\t\t\ttoServer.println(queue.take());\n\t\t\ttoServer.println(\"LOOK\");\n\t\t}\n\t}", "private void dispatch(byte[] packet)\n\t{\n\t\ttry\n\t\t{\n\t\t\tSPELLmessage smsg = SPELLmessageFactory.createMessage(packet);\n\t\t\tif (smsg != null)\n\t\t\t{\n\t\t\t\tString msgId = smsg.getSender() + \"-\" + smsg.getReceiver();\n\t\t\t\tif (smsg instanceof SPELLmessageResponse || smsg instanceof SPELLmessageError)\n\t\t\t\t{\n\t\t\t\t\tmsgId += \":\" + smsg.getSequence();\n\t\t\t\t\tm_interface.incomingResponse(msgId, smsg);\n\t\t\t\t}\n\t\t\t\telse if (smsg instanceof SPELLmessageNotify || smsg instanceof SPELLmessagePrompt)\n\t\t\t\t{\n\t\t\t\t\tm_interface.incomingMessage(msgId, smsg);\n\t\t\t\t}\n\t\t\t\telse if (smsg instanceof SPELLmessageRequest)\n\t\t\t\t{\n\t\t\t\t\tmsgId += \":\" + smsg.getSequence();\n\t\t\t\t\tm_interface.incomingRequest(msgId, smsg);\n\t\t\t\t}\n\t\t\t\telse if (smsg instanceof SPELLmessageNotifyAsync || smsg instanceof SPELLmessageDisplay || smsg instanceof SPELLmessageOneway)\n\t\t\t\t{\n\t\t\t\t\tm_interface.incomingMessage(msgId, smsg);\n\t\t\t\t}\n\t\t\t\telse if (smsg instanceof SPELLmessageEOC)\n\t\t\t\t{\n\t\t\t\t\tLogger.warning(\"Received EOC from server\", Level.COMM, this);\n\t\t\t\t\tsetWorking(false);\n\t\t\t\t\tm_interface.commFailure(\"Connection lost\", \"Server sent EOC\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString msg = \"CANNOT PROCESS MSG TYPE: \" + packet;\n\t\t\t\t\tSystem.err.println(msg);\n\t\t\t\t\tLogger.error(msg, Level.COMM, this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tSystem.err.println(packet);\n\t\t\tex.printStackTrace();\n\t\t\tLogger.error(ex.getLocalizedMessage(), Level.COMM, this);\n\t\t}\n\t}", "@Override\n\tpublic void msgAtCook() {\n\t\t\n\t}", "@Test\n\tpublic void testSayMessageOnRequest(){\n\t\tSystem.out.println(\"\\nMensajes aleatorios al aparecer el Meesek:\\n\");\n\t\tMrMe.sayMessageOnRequest();\n\t\tMrMe.sayMessageOnRequest();\n\t\tMrMe.sayMessageOnRequest();\n\t}", "public void handleIncoming() {\n\t\t// parse the packet payload\n\t\tPair<Packet,Integer> pp = fwdr.receivePkt();\n\t\tPacket p = pp.left; int lnk = pp.right;\n\n\t\tString[] lines = p.payload.split(\"\\n\");\n\t\tif (!lines[0].equals(\"RPv0\")) return;\n\n\t\tString[] chunks = lines[1].split(\":\");\n\t\tif (!chunks[0].equals(\"type\")) return;\n\t\tString type = chunks[1].trim();\n\t\t\n\t\t// if it's an route advert, call handleAdvert\n\t\tif (type.equals(\"advert\")){\n\t\t\thandleAdvert(lines, lnk);\n\t\t}\n\t\t// if it's an link failure advert, call handleFailureAdvert\n\t\tif (type.equals(\"fadvert\")){\n\t\t\thandleFailureAdvert(lines, lnk);\n\t\t}\n\t\t// if it's a hello, echo it back\n\t\tif (type.equals(\"hello\")){\n\t\t\tchunks = lines[2].split(\":\");\n\t\t\tif (!chunks[0].equals(\"timestamp\")) return;\n\t\t\tString timestamp = chunks[1].trim();\n\t\t\tp.payload = String.format(\"RPv0\\ntype: echo\\n\"\n\t\t\t\t\t+ \"timestamp: %s \\n\", timestamp);\n\t\t\tfwdr.sendPkt(p, lnk);\n\t\t}\n\t\t// else it's a reply to a hello packet\n\t\t// use timestamp to determine round-trip delay\n\t\t// use this to update the link cost using exponential\n\t\t// weighted moving average method\n\t\t// also, update link cost statistics\n\t\t// also, set gotReply to true\n\t\telse {\n\t\t\tchunks = lines[2].split(\":\");\n\t\t\tif (!chunks[0].equals(\"timestamp\")) return;\n\t\t\tString timeString = chunks[1].trim();\n\t\t\tdouble timestamp = Double.parseDouble(timeString);\n\t\t\tdouble rtDelay = now - timestamp;\n\n\t\t\tLinkInfo link = lnkVec.get(lnk);\n\t\t\tlink.helloState = 3;\n\t\t\tlink.cost = rtDelay/2;\n\t\t\tRoute rt = new Route();\n\t\t\trt.outLink = lnk;\n\t\t\tboolean match = false;\n\t\t\tfor (Route rte : rteTbl){\n\t\t\t\tif (rte.outLink == lnk){\n\t\t\t\t\trt = rte;\n\t\t\t\t\tmatch = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t\tRoute newRt = rt;\n\t\t\tlink.count = 0;\n\t\t\tlink.totalCost = 0;\n\t\t\tfor (LinkInfo l : lnkVec){\n\t\t\t\tif(l.helloState != 0){\n\t\t\t\t\tlink.count++;\n\t\t\t\t\tlink.totalCost += l.cost;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnewRt.cost = link.cost;\n\t\t\tif (updateRoute(rt,newRt)){\n\t\t\t\tlink.cost = rt.cost;\n\t\t\t}\n\t\t\tif (link.cost > link.maxCost){\n\t\t\t\tlink.maxCost = link.cost;\n\t\t\t}\n\t\t\tif (link.cost < link.minCost){\n\t\t\t\tlink.minCost = link.cost;\n\t\t\t}\n\t\t\tlink.gotReply = true;\n\t\t\tlnkVec.set(lnk, link);\n\t\t}\n\n\t}", "private void acceptCall() {\n\t\ttry {\n\t\t\tupdateText(\"Pratar med \", call.getPeerProfile().getUserName());\n\t\t\tcall.answerCall(30);\n\t\t\tcall.startAudio();\n\t\t\tif (call.isMuted()) {\n\t\t\t\tcall.toggleMute();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tif (call != null) {\n\t\t\t\tcall.close();\n\t\t\t}\n\n\t\t}\n\t}", "ChatWithServer.Req getChatWithServerReq();", "public void sent(int option)\n\t{\n\t\tswitch (option)\n\t\t{\n\t\t\tcase ChatOptions.TYPE_CHAT:\n\t\t\t\tSystem.out.println(\"Please type your message: \");\n\t\t\t\tString message = in.nextLine();\n\t\t\t\tChatEventer.RE().notifyChat(message);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase ChatOptions.QUIT_CHAT:\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void txtResponse(String response , Player player);", "public void howToPlay() {\r\n // An item has been added to the ticket. Fire an event and let everyone know.\r\n System.out.println(\"Step 1: Have no life. \\nStep 2: Deal cards\\nStep 3: Cry yourself to sleep.\");\r\n }", "public interface Response extends Message\n\t{\n public static final String RESPONSE_TO = \"aether.response.response-to\";\n\t}", "final protected void sendCounterClock() {\n\t\tNode cn = peers.iterator().next();\n\t\tif (serial - cn.serial == 1 || (cn.serial - serial != 1 && cn.serial > serial))\n\t\t\tsend(cn);\n\t\telse\n\t\t\tsendAllBut(cn);\n\t}", "public abstract void grantVoice(String nickname);", "com.ipay.api.grpc.ServiceGenericReply getReply();", "String getReceiver();", "@Override\n public void speak() {\n System.out.println(\"I'm an Aardvark, I make grunting sounds most of the time.\");\n }", "private void speakout(String cname) \n{\n\t{t1.speak(cname,TextToSpeech.QUEUE_FLUSH,null);\n\tt1.setLanguage(Locale.ENGLISH);\n\t}\n}", "@Override\n\tpublic String speak() {\n\t\treturn null;\n\t}" ]
[ "0.63211715", "0.6099379", "0.5919573", "0.59016937", "0.57623386", "0.57242733", "0.5655467", "0.5584772", "0.55666375", "0.5524837", "0.5490151", "0.54473394", "0.54421204", "0.5437234", "0.54241586", "0.53802484", "0.5372528", "0.536086", "0.5331944", "0.53109497", "0.52991354", "0.5294463", "0.5285026", "0.52376795", "0.5234698", "0.522755", "0.52261853", "0.52096176", "0.5197675", "0.5196782", "0.519339", "0.51645416", "0.51588446", "0.51481813", "0.5136358", "0.5111406", "0.5107931", "0.5103562", "0.5100814", "0.50968367", "0.50966126", "0.5089076", "0.5079388", "0.5077546", "0.5075109", "0.50669944", "0.50566983", "0.50461674", "0.50417364", "0.50416315", "0.5029988", "0.5028583", "0.5026364", "0.502312", "0.5015695", "0.5011921", "0.50059265", "0.5002332", "0.5001006", "0.49800932", "0.49785215", "0.49764928", "0.49743468", "0.49741995", "0.49710038", "0.49651194", "0.4958369", "0.49574357", "0.49482703", "0.49409693", "0.49384665", "0.4934987", "0.49335578", "0.49288908", "0.49236962", "0.49133015", "0.490822", "0.4906689", "0.49036056", "0.48993206", "0.48972347", "0.48873985", "0.4883756", "0.48793423", "0.48768458", "0.48713028", "0.48698556", "0.48669192", "0.48638624", "0.48627093", "0.48620018", "0.4860673", "0.4860152", "0.48588473", "0.4858073", "0.48458707", "0.4842404", "0.4840953", "0.48397696", "0.48381177" ]
0.53055114
20
reply speaker or visitor that theater is open or not
private void reply2(OutputStream outputStream, MethodTable mt, boolean isOpen) throws IOException { ObjectOutputStream oos = new ObjectOutputStream(outputStream); if(isOpen) { oos.writeObject("TRUE"); } else { oos.writeObject("FALSE"); } oos.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean getIsAnswered();", "boolean hasReply();", "static private void TalkTo() {\n if (BSChristiansen.getCurrentRoom() == currentRoom) {\n System.out.println(BSChristiansen.getDescription() + \", yet he still gives you good advice:\\n\");\n System.out.println(BSChristiansen.getDialog(0));\n System.out.println(\"\");\n woundedSurvivor();\n } else if (mysteriousCrab.getCurrentRoom() == currentRoom && inventory.getInventory().containsKey(\"Shroom\")) {\n System.out.println(mysteriousCrab.getDescription() + \"\\n\" + mysteriousCrab.getDialog(0));\n } else {\n System.out.println(\"There is nobody to communicate with in this Room\");\n }\n\n }", "public boolean isTalking()\n\t{\n\t\treturn m_isTalking;\n\t}", "boolean hasIsRedeemed();", "public void noteOn()\n\t{\n\t\ttimeFromOn = 0f;\n\t\tisTurnedOn = true;\n\t\t\n\t\t// ddf: reset these so that the envelope can be retriggered\n\t\ttimeFromOff = -1.f;\n\t\tisTurnedOff = false;\n\t}", "@Override\n protected boolean isPersonalTell(ChatEvent evt){\n String type = evt.getType();\n return \"tell\".equals(type) || \"say\".equals(type) || \"ptell\".equals(type);\n }", "public boolean IsOpen() {\r\n return GoodOpen;\r\n }", "public boolean hasFollowUp() \n {\n return followUp.equals(Constants.CLOSE);\n }", "public void sendDirectedPresence() {\n Cursor cursor = getContentResolver().query(\n Roster.CONTENT_URI,\n new String[]{Roster.LAST_UPDATED},\n null, null, \"last_updated desc\"\n );\n if (cursor.moveToFirst()) {\n long after = cursor.getLong(\n cursor.getColumnIndex(Roster.LAST_UPDATED));\n Presence presence = new Presence(Type.available);\n presence.setTo(\"broadcaster.buddycloud.com\");\n client.sendFromAllResources(presence);\n }\n cursor.close();\n }", "boolean hasConversation();", "boolean isOpened();", "public void setTalking(boolean b)\n\t{\n\t\tm_isTalking = b;\n\t}", "boolean isReceiving();", "public boolean talkedToEh() {\n\t\treturn talkedTo;\n\t}", "public boolean getIsOpen() {\n return this.is_open;\n }", "public void reply(){\n ArrayList<String> potentialReceivers= messageController.replyOptionsForSpeaker(speaker);\n ArrayList<String> options = listBuilderWithIntegers(potentialReceivers.size());\n speakerMessageScreen.replyOptions(messageController.replyOptionsForSpeakerInString(speaker));\n if(messageController.replyOptionsForSpeakerInString(speaker).size() != 0) {\n String answerInString = scanner.nextLine();\n while(!options.contains(answerInString)){\n speakerMessageScreen.invalidInput(answerInString);\n answerInString = scanner.nextLine();\n }\n\n // now answer is valid\n\n int answerInInteger = Integer.parseInt(answerInString);\n String receiver = potentialReceivers.get(answerInInteger - 1);\n\n speakerMessageScreen.whatMessage();\n String messageContext = scanner.nextLine();\n messageController.sendMessage(speaker, receiver, messageContext);\n speakerMessageScreen.congratulations();\n }\n\n }", "public String getTalkingTo() {\n return talkingTo;\n }", "boolean isSending();", "public boolean isCharged();", "void speak() {\n\t\tSystem.out.println(\"저의 이름은 \" + name + \"이고 \" + \"혈액형은 \" + booldType +\"형 입니다\");\n\t}", "@Override\n public boolean isOpen() {\n return response.isOpen();\n }", "public boolean isGivingInformation();", "boolean isMarkAsResponse();", "public void revealAnswer()\n\t{\n\t\t//check if game over\n\t\tif(hangmanGame.gameOver() == true){\n\t\t\t//if game over, get answer\n\t\t\tSystem.out.println( \"The word was: \" + hangmanGame.getAnswer());\n\t\t}\n\t\t//check if game won\n\t\tif(hangmanGame.gameWon() == true){\n\t\t\t//if game won, get answer and say \"You win!\"\n\t\t\tSystem.out.println( \"You win! The word was: \" + hangmanGame.getAnswer());\n\t\t}\n\t\t//check if game over and game lost\n\t\tif(hangmanGame.gameOver()==true && hangmanGame.gameWon()==false){\n\t\t\t//if game over and game lost, say \"Sorry, you lose.\"\n\t\t\tSystem.out.println( \"Sorry, you lose. The word was: \" + hangmanGame.getAnswer());\n\t\t}\n\t\t\n\t}", "public void talk() {\n\n\t}", "boolean hasFeedback();", "boolean isDisplayMessageOnRedeem();", "public void react() {\n \t\t//door.setOpen(true);\n \t\tSystem.out.println(\"open go through\");\n }", "private void showEndOfTripNotification() {\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"End of trip\")\n .setContentText(\"Notification text has been sent to \" + myFriendObject.getName());\n int mNotificationId = 001;\n NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n manager.notify(mNotificationId, mBuilder.build());\n }", "public int getOpenQuestion(){\n\t\t\treturn openQuestion;\n\t\t}", "public boolean isAsked() {\n\t\treturn isAsked;\n\t}", "public boolean isIncomingInvitePending();", "public boolean hasConversation() {\n return typeCase_ == 2;\n }", "boolean isOpen();", "boolean isOpen();", "boolean getAccepted();", "@Override\n\tpublic void talk() {\n\t\tSystem.out.println(\"黄种人-说\");\n\t}", "public boolean hasConversation() {\n return typeCase_ == 2;\n }", "@Override\r\n\tpublic StateBruceDanner meetBetty() {\n\t\treturn CONTAMINED;\r\n\t}", "public boolean isAccept(){\n return isAccept; \n }", "@Override\r\n\tpublic String say() {\n\t\tif(livingBy==LivingBy.CAT) {\r\n\t\t\treturn \"Me ow\";\r\n\t\t}else if(livingBy==LivingBy.ROOSTER) {\r\n\t\t\treturn \"Cock-a-doodle-doo\";\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\treturn \"Woof, woof\";\r\n\t\t}\r\n\t\t\r\n\t}", "public boolean isOpen();", "public boolean isOpen();", "boolean hasReceived();", "void bot_check_on_user() { // using Watson Speech-to-Text and text-to-Speech functions\r\n String output;\r\n String input;\r\n output: \"Are you okay?\";\r\n input = get voice input;\r\n if (input = \"Yes I’m okay.\") {} // nothing to do\r\n else if (input = \"A bit unwell.\") {\r\n output = \"Please list your symptoms.\";\r\n String symptoms;\r\n symptoms = get voice input;\r\n CFR_check(symptoms);\r\n }\r\n else if (input = …(no sound)) {\r\n CFR_check(\"No response, might be unconscious.\");\r\n else output : \"Please repeat.\";\r\n }", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "public boolean speak(Document doc) {\n\treturn speak(new FreeTTSSpeakableImpl(doc));\n }", "public boolean request() {\n\t\tif (inAnySession()) {\n\t\t\tplayer.exchangeSession.reset();\n\t\t\treturn false;\n\t\t}\n\t\t\n if (!PlayerRight.isDeveloper(player) && !PlayerRight.isDeveloper(other)) {\n if (player.playTime < 3000) {\n player.message(\"You cannot trade until you have 30 minutes of playtime. \" + Utility.getTime(3000 - player.playTime) + \" minutes remaining.\");\n return false;\n }\n if (other.playTime < 3000) {\n player.message(other.getName() + \" cannot trade until they have 30 minutes of playtime.\");\n return false;\n }\n }\n\t\t \n\t\tif (getSession(other).isPresent() && getSession(other).get().inAnySession()) {\n\t\t\tplayer.message(\"This player is currently is a \" + type.name + \" with another player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (Objects.equals(player, other)) {\n\t\t\tplayer.message(\"You cannot \" + type.name + \" with yourself.\");\n\t\t\treturn false;\n\t\t}\n if (PlayerRight.isIronman(player) && !PlayerRight.isDeveloper(other)) {\n player.message(\"You can not \" + type.name + \" as you are an iron man.\");\n return false;\n }\n if (PlayerRight.isIronman(other) && !PlayerRight.isDeveloper(player)) {\n player.message(other.getName() + \" can not be \" + type.name + \"d as they are an iron man.\");\n return false;\n }\n\t\tif (player.exchangeSession.requested_players.contains(other)) {\n\t\t\tplayer.message(\"You have already sent a request to this player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.locking.locked()) {\n\t\t\tplayer.message(\"You cannot send a \" + type.name + \" request right now.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.locking.locked()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.playerAssistant.busy()) {\n\t\t\tplayer.message(\"Please finish what you are doing before you do that.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.playerAssistant.busy()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tplayer.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tother.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!onRequest()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn SESSIONS.add(this);\n\t}", "@Override\n\tpublic void msgAtDoor() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtDoor() {\n\t\t\n\t}", "boolean isAccepting();", "public void print() {\n System.out.println(\"I am \" + status() + (muted ? \" and told to shut up *sadface*\" : \"\") + \" (\" + toString() + \")\");\n }", "private boolean isMentioned(MessageReceivedEvent event) {\n Message message = event.getMessage();\n\n if (message.getContentRaw().equals(\"<@!\" + ID.SELF + \">\")) {\n message.reply(\"Hi, my prefix is `\" + Setting.PREFIX + \"`. You can also use `/help` for more info.\").queue();\n return true;\n }\n\n return false;\n }", "@Override\n public void isTypingState(IRainbowContact other, boolean isTyping, String roomId) {\n }", "public abstract boolean isDelivered();", "public void askForSpeaker(){\n System.out.println(\"Enter the speaker username\");\n }", "public Response(String prompt, boolean micOpen) {\n this.prompt = prompt;\n this.micOpen = micOpen;\n }", "private boolean openItemAction(MXGroupChatSession session){\n if(session == null)\n return false;\n if(MXChatCustomizer.isForceTablet() && currentSession != null && session.getSessionID().equals(currentSession)){\n return false;\n }\n\n if (session.isAChat()) {\n if(callback != null)\n callback.openChatAction(session.getSessionID());\n currentSession = session.getSessionID();\n } else {\n Phone_MainActivity.joinMeet(session.getMeetID());\n }\n\n return true;\n }", "protected boolean processPersonalTell(String username, String titles, String message){return false;}", "public void speak() {\r\n\t\tSystem.out.print(\"This Tiger speaks\");\r\n\t}", "private boolean handlePersonalTell(String line){\n if (line.indexOf(\"tells you: \") == -1)\n return false;\n \n Matcher matcher = PERSONAL_TELL_REGEX.matcher(line);\n if (!matcher.matches())\n return false;\n\n String username = matcher.group(1);\n String titles = matcher.group(2);\n String message = matcher.group(3);\n\n if (!processPersonalTell(username, titles, message))\n processLine(line);\n\n return true;\n }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "boolean hasDidcommInvitation();", "boolean getIsHotwordTriggered();", "boolean hasRemsg();", "boolean hasUserMessage();", "public String getTalkingStatus() {\n\t\treturn talkingStatus;\n\t}", "public boolean chatEnabled();", "public void question() {\n\t\tlead.answer(this);\n\t}", "public boolean isChatEnabled();", "boolean hasChatType();", "public boolean isOpen() {\n\treturn open;\n }", "public void Feedback_req()\n {\n\t boolean feedbackreqpresent =Feedbackreq.size()>0;\n\t if(feedbackreqpresent)\n\t {\n\t\t // System.out.println(\"Feedback Request report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Feedback Request report is not present\");\n\t }\n }", "boolean isTransmitting();", "java.lang.String getMoodMessage();", "public boolean isOutstanding() {\n return !cancelled && !invitationSent;\n }", "public boolean isRetweet() {\n\t\treturn text.trim().startsWith(\"RT @\");\n\t}", "private void checkIfRestaurantShouldOpen(CityTime time) {\n\t\tif (!(CityTime.timeDifference(time, morningShiftStart) >= 0 && CityTime.timeDifference(time, morningShiftEnd) < 0) &&\n\t\t\t\t!(CityTime.timeDifference(time, afternoonShiftStart) >= 0 && CityTime.timeDifference(time, closingTime) < 0)) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (host.getPerson() != null && cashier.getPerson() != null && cook.getPerson() != null) {\n\t\t\tfor (RestaurantWaiterRole w : waiters) {\n\t\t\t\tif (w.getPerson() != null) {\n\t\t\t\t\tAlertLog.getInstance().logMessage(AlertTag.RESTAURANT, this.toString(), \"Open for business!\");\n\t\t\t\t\tthis.isOpen = true;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private boolean verifyMessagePresence(){\n boolean overallResult = true;\n \n for(int ii = 0; ii < 3; ii = ii +1){\n if(121 == getHidden(ii)){\n overallResult = true;\n }else{\n overallResult = false;\n }\n }\n \n return overallResult;\n }", "public void communicate() {\r\n System.out.println(\"This iPhone is making a phone call.\");\r\n }", "@Override\r\n public String ask() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n word = \"Do you like the Story?\";\r\n System.out.println(word);\r\n return word;\r\n }", "public void talking(){\n System.out.println(\"PetOwner : *says something*\");\n }", "public boolean speak(String text) {\n\treturn speak(new FreeTTSSpeakableImpl(text));\n }", "boolean isRepliable();", "public void askForType() {\n System.out.println(\"What type of event will this be?\");\n System.out.println(\"1) Normal 2) Multi-Speaker 3) VIP\");\n }", "public boolean getAutoReply()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AUTOREPLY$18, 0);\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }", "boolean hasTrickEndedResponse();", "public boolean isOpened() {\r\n return opened != null;\r\n }", "public Boolean getFriendAccepted() {\n return friendAccepted;\n }", "public void notifyNotifyPresenceReceived(Friend lf);", "public void talk(){\n\t\tSystem.out.println(this.name+\"が話す\");\n\t}", "public String reply(MessageIntent intent, Conversation conv) \n throws IOException, IllegalStateException {\n // if we query where at any point, then tell them where\n if (intent == MessageIntent.QUERY_WHERE) {\n return WordLattice.fromFile(\"where.lat\")\n .generate(conv.getAppointmentTime(), conv.getName());\n }\n // switch the state\n switch (conv.getState()) { \n case Conversation.STATE_PROCESSING:\n // we are in processing state\n // propose a time block\n if (intent == MessageIntent.SCHEDULE) {\n return proposeTime(conv, false);\n }\n break;\n case Conversation.STATE_APPT_PROPOSED:\n // we previously proposed an appointment, now we have a response\n // resolve that\n return resolveProposal(intent, conv);\n case Conversation.STATE_ARCHIVED:\n if (intent == MessageIntent.THANKS) {\n return WordLattice.fromFile(\"yourewelcome.lat\").generate(conv.getAppointmentTime(), conv.getName());\n } else {\n return null;\n }\n case Conversation.STATE_RESCHEDULING:\n // then we are in the process of rescheduling, deal with that\n return reschedule(intent, conv);\n case Conversation.STATE_SET:\n // We received a message after the appt was set\n return set(intent, conv);\n default:\n throw new IllegalStateException(String.format(\"Got state %s\", conv.getState()));\n }\n \n return null;\n }", "public boolean hasWon() {\n return this.isWinner;\n }", "private void acceptCall() {\n\t\ttry {\n\t\t\tupdateText(\"Pratar med \", call.getPeerProfile().getUserName());\n\t\t\tcall.answerCall(30);\n\t\t\tcall.startAudio();\n\t\t\tif (call.isMuted()) {\n\t\t\t\tcall.toggleMute();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tif (call != null) {\n\t\t\t\tcall.close();\n\t\t\t}\n\n\t\t}\n\t}" ]
[ "0.5855361", "0.5838169", "0.5792785", "0.57161206", "0.5652358", "0.55605435", "0.5501485", "0.5471596", "0.54498625", "0.5446426", "0.542718", "0.5403842", "0.53785866", "0.53293294", "0.5303915", "0.53000444", "0.5278888", "0.52050006", "0.5200579", "0.51944864", "0.5192718", "0.5182134", "0.5165198", "0.5149714", "0.51402396", "0.5137041", "0.5133127", "0.5128503", "0.5098069", "0.50935566", "0.5091929", "0.5076729", "0.5073919", "0.5033984", "0.5028339", "0.5028339", "0.502833", "0.5021177", "0.50123376", "0.50021684", "0.4996519", "0.49780694", "0.49685946", "0.49685946", "0.49652767", "0.4953867", "0.49440086", "0.49440086", "0.49440086", "0.49440086", "0.49440086", "0.49440086", "0.49417302", "0.49340522", "0.49324456", "0.49324456", "0.49301964", "0.49300775", "0.49225488", "0.4913087", "0.49126107", "0.4900142", "0.4899422", "0.48986688", "0.48984537", "0.4891185", "0.4887795", "0.48861584", "0.48855424", "0.48850927", "0.48833165", "0.488311", "0.48818934", "0.48772028", "0.48747802", "0.4872592", "0.48667294", "0.48601356", "0.48598808", "0.48598695", "0.4857677", "0.48537484", "0.48508602", "0.48504645", "0.48496845", "0.4841051", "0.48383874", "0.48364717", "0.48341715", "0.4833651", "0.4828793", "0.48252773", "0.48177895", "0.48159927", "0.48144278", "0.48138455", "0.48129144", "0.4809451", "0.48030967", "0.48016557" ]
0.52305853
17
/ renamed from: a
public Bundle mo40307a() { Bundle bundle = new Bundle(); this.f3476d.mo40306a(bundle, this.f3475c, this.f3473a.mo40596g()); return bundle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
True is male, False is female Constructor
public Member(int memberID, String firstName, String lastName, String address, String email, String phoneNum, boolean gender) { this.memberID = memberID; this.firstName = firstName; this.lastName = lastName; this.address = address; this.email = email; this.phoneNum = phoneNum; this.gender = gender; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getGender() { return gender; }", "boolean hasGender();", "boolean hasGender();", "public Vegetarian(boolean female) {\n super(female);\n }", "boolean hasHasGender();", "public boolean isFemale() {\n return (gender);\n }", "public int gender()\r\n\t{\r\n\t\tif(male)\r\n\t\t\treturn 0;\r\n\t\treturn 1;\r\n\t}", "public void setSex(Boolean sex);", "public Female( int age ) {\n\t\tcurrent_age = age;\n\t}", "public void setGender (boolean g) {\n gender = g;\n }", "public String gender();", "private Gender(String gender) {\n\t\tthis.gender = gender;\n\t}", "public boolean getIsFemale() {\n return isFemale;\n }", "@Test\n public void getGender() {\n User u = new User(name, mail, pass, address, gender);\n Assert.assertEquals(u.getGender(), gender);\n }", "boolean hasGenderView();", "public void setGender(String gender){\n if(gender == \"laki\"){\r\n isMale = true;\r\n }else if(gender == \"perempuan\"){\r\n isMale = false;\r\n }\r\n }", "public void setMale(int value) {\n this.male = value;\n }", "public Animal()\n\t{\t\n\t\tgender = rng.nextBoolean();\n\t\tstrength = rng.nextFloat() * 100;\n\t}", "public void setSex(Boolean sex) {\r\n this.sex = sex;\r\n }", "public int getFemale() {\n return female;\n }", "public void setGender(char gender) { this.gender = gender; }", "public int getMale() {\n return male;\n }", "public char getGender() { return gender; }", "public Gender getGender()\n {\n return gender;\n }", "int getGender();", "public void setGender(String gender);", "public void setGender(String gender);", "public void setGender(String gender);", "public Fox(Sex sex) {\n super(randomAge(MAX_AGE), sex, MAX_AGE, BREEDING_AGE, MAX_LITTER_SIZE, BREEDING_PROBABILITY, FOOD_VALUE, FULL_LEVEL);\n constructor();\n }", "public Student(String name, char gender, int age) {\r\n super(name, gender, age);\r\n }", "public Student(String personName, String personID, boolean sex, Date birthday) {\r\n\t\tsuper(personName, personID, sex, birthday);\r\n\t}", "public Boolean getSex() {\r\n return sex;\r\n }", "public Penguin(boolean female) {\n super(female);\n daysRemaining = 12;\n }", "public void setGender(Gender_Tp gender) { this.gender = gender; }", "public void decideGender()\n {\n String gender = new String(\"\");\n Random rand = new Random();\n int i = rand.nextInt(100);\n if(i <= 52)\n {\n gender = \"Female\";\n }//ends the if\n else\n {\n gender = \"Male\";\n }//ends the else\n \n setGender(gender);\n }", "public Citizen(String fullName, String email, String address, int age, int district, boolean resident, char gender){\n this.fullName = fullName;\n this.email = email;\n this.address = address;\n this.age = age;\n this.district = district;\n this.resident = resident;\n this.gender = gender;\n }", "public Fox(Sex sex, int age) {\n super(age, sex, MAX_AGE, BREEDING_AGE, MAX_LITTER_SIZE, BREEDING_PROBABILITY, FOOD_VALUE, FULL_LEVEL);\n constructor();\n }", "public Gender getGender() {\n return gender;\n }", "public Gender getGender() {\n return gender;\n }", "static SexType checkSex(String data){\n if(data.contains(\"M\"))\n return SexType.MALE;\n else\n return SexType.FEMALE;\n }", "public String gender(boolean flag)\n\t{\n\t\tif(flag == false)\n\t\t{\n\t\t\treturn \"Enter Gender: \";\n\t\t}\n\t\telse\n\t\t\treturn \"Gender: \";\n\t}", "public void setSex(String sex);", "public Gender getGender()\r\n\t{\r\n\t\treturn gender;\r\n\t}", "public IsFicha()\n\t{\n\t\tthis.inicializar();\n\t}", "public String getGender(){\n return gender;\n }", "public void setFemale(int value) {\n this.female = value;\n }", "public void setGender(Gender inGender)\n {\n gender = inGender;\n }", "public boolean hasGender() {\n return fieldSetFlags()[4];\n }", "public Gender_Tp getGender() { return gender; }", "public Byte getGender() {\n return gender;\n }", "public Byte getGender() {\n return gender;\n }", "public String getGender() {\r\n return gender;\r\n }", "@java.lang.Override public app.onepass.apis.Gender getGender() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.Gender result = app.onepass.apis.Gender.valueOf(gender_);\n return result == null ? app.onepass.apis.Gender.UNRECOGNIZED : result;\n }", "public static Predicate<Employee> isAdultFemale()\n\t{\n\t\treturn p->p.getAge()>18&&p.getGender().equalsIgnoreCase(\"F\");\n\t}", "public String getGender() {\n return gender;\n }", "public String getGender() {\n return gender;\n }", "public String getGender() {\n return gender;\n }", "public String getGender() {\n return gender;\n }", "public String getGender() {\n return gender;\n }", "public String getGender() {\n return gender;\n }", "public void setGender(String gender) {\r\n this.gender = gender;\r\n }", "@Override\r\n public Boolean isBaby() {\r\n return isBaby;\r\n }", "public String sex() {\n return this.sex;\n }", "public char getGender(){\n\t\treturn gender;\n\t}", "@java.lang.Override\n public app.onepass.apis.Gender getGender() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.Gender result = app.onepass.apis.Gender.valueOf(gender_);\n return result == null ? app.onepass.apis.Gender.UNRECOGNIZED : result;\n }", "public void setGender(String value) {\n this.gender = value;\n }", "public void setGender(String gender) {\n this.gender = gender;\n }", "public String getFullGender() {\n return gender == 'F' ? \"Female\" : gender == 'M' ? \"Male\" : \"Not specified\";\n }", "public Fox(int age) {\n super(age, randomSex(), MAX_AGE, BREEDING_AGE, MAX_LITTER_SIZE, BREEDING_PROBABILITY, FOOD_VALUE, FULL_LEVEL);\n constructor();\n }", "public static Predicate<Employee> isAdultMale()\n\t{\n\t\tPredicate<Employee> predicate = p->p.getAge()>21 && p.getGender().equalsIgnoreCase(\"M\");\n\t\treturn predicate;\n\t\t\n\t}", "public void setGender(String gender) {\n this.gender = gender.equals(\"M\")?Gender.M:Gender.F; \n }", "public Sim.Sex chooseSex() {\n if(RND.nextInt() > 0.5) {\n return Sim.Sex.M;\n } else {\n return Sim.Sex.F;\n }\n }", "public String getaGender() {\n return aGender;\n }", "public Instructor(String name, char gender, Integer age) {\n super(name, gender, age);\n }", "public boolean isStudent(){\n return student;\n }", "public boolean isStudent(){\n return student;\n }", "public Fox() {\n super(randomAge(MAX_AGE), randomSex(), MAX_AGE, BREEDING_AGE, MAX_LITTER_SIZE, BREEDING_PROBABILITY, FOOD_VALUE, FULL_LEVEL);\n constructor();\n }", "public Gender getGender() {\n return localGender;\n }", "public Gender getGender() {\n return localGender;\n }", "public com.luisjrz96.streaming.birthsgenerator.models.Gender getGender() {\n return gender;\n }", "public boolean hasGender() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public Integer getGender() {\r\n return gender;\r\n }", "public Integer getGender() {\n return gender;\n }", "public Integer getGender() {\n return gender;\n }", "public boolean hasGender() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public static void main(String[] args) {\nint age=21 ;char gender='f';\nif(age>=21 && gender=='m')\n{\n\tSystem.out.println(\"eligble for marriage\");\n}\n\n else if (age>=18 && gender=='f') {\nSystem.out.println(\"eligble for marriage\");\n}\nelse {\n\t{System.out.println(\"not eligble for marrage\");\n}\n\t\t\n\t}\n\n\n}", "public int getGender() {\n return gender_;\n }", "public String getGender() {\r\n\t\treturn gender;\r\n\t}", "public String getGender() {\r\n\t\treturn gender;\r\n\t}", "public void setSex(Sex sex) {\n this.sex = sex;\n }", "public Customer (String n, int age, boolean shown) {\n name = n; // sets name\n child = ((age <= 16) && (age >= 5));\n student = shown; //sets if the student id was shown\n }", "public void setGender(java.lang.String gender) {\r\n this.gender = gender;\r\n }", "public String getGenderAsString(){\n String genderString;\n if (gender == 'f'){\n genderString=\"female\";\n }\n else {\n genderString=\"male\";\n }\n return genderString;\n }", "public com.luisjrz96.streaming.birthsgenerator.models.Gender getGender() {\n return gender;\n }", "public void setSex(String sex)\n {\n this.sex = sex;\n }", "public User(String name, int age, int userid, char gender, boolean isActive) {\n\t\t\n\t\tthis.name = name;\n\t\tthis.age = age;\n\t\tthis.userid = userid;\n\t\tthis.gender = gender;\n\t\tthis.isActive = isActive;\n\t}", "int getGenderValue();", "@AutoEscape\n\tpublic String getGender();", "@AutoEscape\n\tpublic String getGender();", "@AutoEscape\n\tpublic String getGender();" ]
[ "0.71751547", "0.70981115", "0.70981115", "0.7019464", "0.697113", "0.68929154", "0.68031603", "0.6558953", "0.6558242", "0.65553176", "0.65531224", "0.6500324", "0.6475696", "0.6448249", "0.63356453", "0.6252064", "0.62137324", "0.61702824", "0.6168219", "0.6060109", "0.6056985", "0.60479105", "0.6021517", "0.60180783", "0.60040754", "0.5998158", "0.5998158", "0.5998158", "0.5982242", "0.59796643", "0.59783417", "0.5977489", "0.5959708", "0.59436935", "0.5930427", "0.5922571", "0.5913338", "0.59023774", "0.59023774", "0.58851063", "0.5872595", "0.58715194", "0.585761", "0.58389217", "0.5834874", "0.5834453", "0.58199096", "0.5812437", "0.5810289", "0.5800674", "0.5800674", "0.5782914", "0.57704425", "0.575804", "0.57569957", "0.57569957", "0.57569957", "0.57569957", "0.57569957", "0.57569957", "0.5724201", "0.5704282", "0.56924653", "0.56796455", "0.56779975", "0.5668599", "0.5668485", "0.5662412", "0.5649986", "0.5644033", "0.56434697", "0.5635294", "0.56277734", "0.5621675", "0.5605425", "0.5605425", "0.5597245", "0.5584526", "0.5584526", "0.55783874", "0.5565366", "0.55628365", "0.55473375", "0.55473375", "0.55438644", "0.5535231", "0.5534523", "0.5534199", "0.5534199", "0.5529838", "0.5521592", "0.5521081", "0.55205053", "0.5516516", "0.55149645", "0.5510233", "0.55094504", "0.549839", "0.549839", "0.549839" ]
0.56697744
65
Registra el evento para manejo de request repetidos. Proceso para dispositivos Android
private void registerProcess(WebRequest webReq)throws Exception{ if( WebEnviroment.isSameProcess( webReq.getTipoPedido() ) ){ return; }else{ WebEnviroment.setProcess(webReq.getTipoPedido()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createEvents()\r\n\t{\r\n\t\teventsCount.add(new Event(RequestMethod.PUT, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.GET, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.POST, 0));\r\n\t}", "public void crear_un_evento_recurrente_para_el_dia_de_hoy() {\n\t\t\n\t}", "public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}", "private void fetchAllEvents() {\n progressDialog.show();\n StringRequest stringRequest = new StringRequest(Request.Method.GET,\n Constants.URL_ALL_EVENTS,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n try {\n progressDialog.dismiss();\n\n // response is a JSONArray\n JSONArray jArray = new JSONArray(response);\n\n // extracting JSONObjects from each element of JSONArray\n for (int i = 0; i < jArray.length(); i++) {\n JSONObject jb = jArray.getJSONObject(i);\n int id = jb.getInt(\"id\");\n String name = jb.getString(\"name\");\n String venue = jb.getString(\"venue\");\n String event_date = jb.getString(\"event_date\");\n String reg_deadline = jb.getString(\"reg_deadline\");\n String description = jb.getString(\"description\");\n int organizer_id = jb.getInt(\"organizer_id\");\n\n // creating a new Event object\n Event event = new Event(id, name, venue, event_date,\n reg_deadline, description, organizer_id);\n\n // add object to the array list\n arrayList.add(event);\n // notifying the adapter for the change\n adapter.notifyDataSetChanged();\n\n }\n } catch (JSONException e) {\n Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.hide();\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_LONG).show();\n }\n }) {\n\n };\n RequestHandler.getInstance(this).addToRequestQueue(stringRequest);\n }", "@Override\n\tpublic void onRepeatRequest(HttpRequest request,int requestId, int count) {\n\t\t\n\t}", "@Override\n\tpublic void onRequestStart(String reqId) {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onRequest() {\n\t\t\t\t\r\n\t\t\t}", "public void getEvents(){\n queue = AppController.getInstance().getRequestQueue();\n Log.d(\"SenimanList\",\"Tertrigger\");\n\n //Set loading anim\n mLoadingAnim = (ProgressBar) rootView.findViewById(R.id.fragment_seniman_list_tawaran_progressbar);\n mLoadingAnim.setVisibility(View.VISIBLE);\n\n //empty eventList\n eventList.clear();\n\n //Volley's inbuilt class to make Json array request\n final FrameLayout rootViewFinal = rootView;\n\n SharedPreferences sharedpreferences = getActivity().getSharedPreferences(Field.getLoginSharedPreferences(), Context.MODE_PRIVATE);\n String id_seniman = sharedpreferences.getString(Field.getIdSeniman(),null);\n if (id_seniman == null){\n\n }\n urlRead += \"?id_seniman=\" + sharedpreferences.getString(Field.getIdSeniman(), null);\n\n JsonArrayRequest newsReq = new JsonArrayRequest(urlRead, new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray response) {\n try{\n JSONArray jr = response.getJSONArray(0);\n for (int i = 0; i < jr.length(); i++) {\n try {\n\n JSONObject obj = (JSONObject) jr.get(i);\n\n PojoListTawaran event = new PojoListTawaran(obj.getInt(\"id_tawaran_tampil\"), obj.getInt(\"id_event\") , obj.getInt(\"id_seniman\"), obj.getInt(\"id_event_organizer\"), obj.getString(\"harga\"), obj.getString(\"status\"), obj.getString(\"nama\"), obj.getString(\"tanggal\"), obj.getString(\"lokasi\"), obj.getString(\"keterangan\"), obj.getString(\"foto\"), obj.getString(\"eo\"), obj.getString(\"nama_eo\"));\n Log.e(\"asd\",\"aaaa\");\n // adding event to events array\n eventList.add(event);\n } catch (Exception e) {\n Log.e(\"LOG gamao! = \", e.getMessage());\n } finally {\n //Notify adapter about data changes\n adapter.notifyItemChanged(i);\n Log.e(\"asd\",\"final\");\n }\n }\n }catch (Exception e){\n Log.e(\"LOG gamao diluar! = \",e.getMessage());\n }\n finally {\n mLoadingAnim.setVisibility(View.GONE);\n mSwipeRefreshLayout.setRefreshing(false);\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"senimanlisttawaran = \",error.getMessage());\n\n }\n });\n //Adding JsonArrayRequest to Request Queue\n queue.add(newsReq);\n }", "void attach (ObservateurGenerateurAsync observateur);", "@Override\n\t\t\t\t\tpublic void onReqStart() {\n\t\t\t\t\t}", "private void registrarEventosBluetooth() {\n IntentFilter filtro = new IntentFilter();\n filtro.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);\n filtro.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n filtro.addAction(BluetoothDevice.ACTION_FOUND);\n activity.registerReceiver(bluetoothReceiver, filtro);\n }", "public synchronized void onNewRequest() {\r\n\t\tallRequestsTracker.onNewRequest();\r\n\t\trecentRequestsTracker.onNewRequest();\r\n\t}", "@Override\n\tpublic void OnRequest() {\n\t\t\n\t}", "private void createEvents() {\n\t}", "public void onDocumentoSubidoEventListener(DocumentoSubidoEvent event){}", "public Evento getEvento() { \n\t\t Evento evento = new Evento();\n\t\t List<Prenda> Lprendas = new ArrayList<Prenda>();\n\t\t Sugerencia sug = new Sugerencia();\n\t Prenda prend = new Prenda();\n Categoria categoria = new Categoria();\n\n categoria.setCodCategoria(1);\n categoria.setDescripcion(\"Zapatillas\");\n TipoPrenda tp = new TipoPrenda();\n tp.setDescripcion(\"lalal\");\n tp.setCategoria(categoria);\n tp.setCodTipoPrenda(1);\n \n \n Guardarropa guard = new Guardarropa();\n guard.setCompartido(false);\n guard.setDescripcion(\"guardarropa\");\n guard.setId(0); \n prend.setGuardarropa(guard);\n prend.setColorPrimario(\"rojo\");\n prend.setTipoPrenda(tp);\n prend.setColorSecundario(\"azul\");\n prend.setDescripcion(\"prenda 1\");\n prend.setNumeroDeCapa(EnumCapa.Primera);\n \tfor( int i = 0 ; i <= 4; i++) {\n prend.setCodPrenda(i);\n\t\t\tLprendas.add(prend);\t\t\t\n\t\t}\n \tsug.setIdSugerencia(1);\n \tsug.setMaxCapaInferior(0);\n \tsug.setMaxCapaSuperior(2);\t\n \tsug.setUsuario(new Usuario());\n \tsug.setListaPrendasSugeridas(Lprendas);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n\n \t return evento;\n\t }", "protected void onTick() {\n\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (userRequest != null) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"Essayez reservation du tourisme \" + userRequest.getTourism().getAddressDestination());\n\t\t\t\t\tDFAgentDescription tmp = new DFAgentDescription();\n\t\t\t\t\tServiceDescription sd = new ServiceDescription();\n\t\t\t\t\tsd.setType(\"Reservation tour \");\n\t\t\t\t\ttmp.addServices(sd);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDFAgentDescription[] result = DFService.search(myAgent, tmp);\n\t\t\t\t\t\tbrokerAgent = new AID[result.length];\n\t\t\t\t\t\tfor (int i = 0; i < result.length; ++i) {\n\t\t\t\t\t\t\tbrokerAgent[i] = result[i].getName();\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (FIPAException fe) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tfe.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tmyAgent.addBehaviour(new RequestPerformer());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Agent utilisateur: n'a pas la demande\");\n\t\t\t\t}\n\t\t\t}", "@Override\n public void setListeners() {\n btnViewOnMap.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n Uri map = Uri.parse(ApiUrls.MAPS_ADDRESS_URL + tvLocation.getText().toString());\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(map);\n i.setPackage(ApiUrls.MAPS_APP_URL);\n startActivity(i);\n\n }\n });\n\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n\n @Override\n public void onRefresh() {\n\n if(NetworkCheck.alertIfNotConnectedToInternet(ViewEventActivity.this, swipeRefreshLayout)){\n\n NetworkInterface.getInstance(getApplicationContext()).getEventsForUser(new EventApiCallback() {\n @Override\n public void onSuccess() {\n updateData();\n swipeRefreshLayout.setRefreshing(false);\n }\n\n @Override\n public void onFailure() {\n populateAdapter();\n Toast.makeText(getApplicationContext(), getString(R.string.network_error), Toast.LENGTH_SHORT).show();\n swipeRefreshLayout.setRefreshing(false);\n }\n });\n }\n else{\n swipeRefreshLayout.setRefreshing(false);\n\n }\n swipeRefreshLayout.setRefreshing(false);\n\n }\n });\n\n btnUpdateOrSignIn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n // Change function of button between update and sign into event\n if(eventType.equals(EventType.ORGANISE)){\n Log.d(TAG, \"In update event\");\n\n Bundle bundle = new Bundle();\n bundle.putString(BundleAndSharedPreferencesConstants.CREATE_OR_UPDATE, BundleAndSharedPreferencesConstants.UPDATE);\n bundle.putInt(DbConstants.EVENT_KEY_EVENT_ID, eventId);\n startNewActivity(CreateUpdateEventActivity.class, bundle);\n finish();\n }\n else if(eventType.equals(EventType.ATTEND)){\n Bundle bundle = new Bundle();\n bundle.putInt(DbConstants.EVENT_KEY_EVENT_ID, eventId);\n\n startNewActivity(SignInActivity.class, bundle);\n }\n }\n });\n }", "public void addGETEvent()\r\n\t{\r\n\t\tfor(Event recordedEvent : eventsCount)\r\n\t\t{\r\n\t\t\tif(recordedEvent.getRequestType().equals(RequestMethod.GET))\r\n\t\t\t{\r\n\t\t\t\trecordedEvent.setAccessCount(recordedEvent.getAccessCount() + 1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void onNewEvent(Event event);", "void onBusEvent(Event event);", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"Events: \", error.toString());\n\n Toast.makeText(context,\n error.toString(),\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"Events: \", error.toString());\n\n Toast.makeText(context,\n error.toString(),\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void eventoCargarData() {\n }", "private void createRequestDone() {\n final String providerId = FirebaseAuth.getInstance().getCurrentUser().getUid();\n providerReferen = FirebaseDatabase.getInstance().getReference().child(\"Users\").child(\"Providers\").child(providerId).child(\"requestDone\");\n providerReferen.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if(dataSnapshot.exists()){\n\n }else{\n HashMap donemap = new HashMap();\n donemap.put(\"consumerServiceRequest\", conSerReq);\n providerReferen.updateChildren(donemap);\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n\n /////////////////////////////////////////////////////////schedule control\n }", "@Override\n public void onNext(RequestData request) {\n System.out.println(\"Requestor:\" + request.getName());\n System.out.println(\"Request Message:\" + request.getMessage());\n responseObserver.onNext(ResponseData.newBuilder().setMessage(request.getMessage() + \" - \" + request.getName()).build());\n }", "public static void createEvent(String token){\n ensureGraphClient(token);\n\n LinkedList<Option> requestOptions = new LinkedList<Option>();\n //requestOptions.add(new HeaderOption(\"Authorization\", \"Bearer nupl9.C5rb]aO5:yvT:3L.TKcH7tB1Im\" ));\n\n // Participantes:\n LinkedList<Attendee> attendeesList = new LinkedList<Attendee>();\n Attendee mentor = new Attendee();\n Attendee mentorado = new Attendee();\n\n EmailAddress mentorMail = new EmailAddress();\n mentorMail.address = \"[email protected]\";\n mentorMail.name = \"Daniell Wagner\";\n mentor.emailAddress = mentorMail;\n\n EmailAddress mentoradoMail = new EmailAddress();\n mentoradoMail.address = \"[email protected]\";\n mentoradoMail.name = \"Guilherme Carneiro\";\n mentorado.emailAddress = mentoradoMail;\n\n mentor.type = AttendeeType.REQUIRED;\n mentorado.type = AttendeeType.REQUIRED;\n\n attendeesList.add(mentor);\n attendeesList.add(mentorado);\n\n // Evento:\n Event event = new Event();\n event.subject = \"Mentoria com \" + mentor.emailAddress.name;\n\n ItemBody body = new ItemBody();\n body.contentType = BodyType.HTML;\n body.content = \"\" +\n \"<b>Mentoria sobre SCRUM</b> <br>\" +\n \"Olá, \" + mentorado.emailAddress.name + \" <br> \" +\n \"Você tem uma mentoria marcada com o mentor \"\n + mentor.emailAddress.name + \"!!\";\n\n event.body = body;\n\n DateTimeTimeZone start = new DateTimeTimeZone();\n start.dateTime = \"2020-03-26T16:00:00\";\n start.timeZone = \"Bahia Standard Time\";\n event.start = start;\n\n DateTimeTimeZone end = new DateTimeTimeZone();\n end.dateTime = \"2020-03-26T18:00:00\";\n end.timeZone = \"Bahia Standard Time\";\n event.end = end;\n\n Location location = new Location();\n location.displayName = \"Stefanini Campina Grande\";\n event.location = location;\n\n event.attendees = attendeesList;\n\n try {\n graphClient.me().calendar().events()\n .buildRequest()\n .post(event);\n }catch(Exception e) {\n\n System.out.println(\"Deu águia: \");\n e.printStackTrace();\n }\n }", "@Override\n public void onResponse(String response) {\n System.out.print(\"respuesta Server\"+response);\n responseRequest(sync_id);\n /*if (sync_id != 0) {\n responseRequest(sync_id);\n } else {\n background_response = \"ID Sync null\";\n restartRequest(background_response);\n }*/\n }", "public Response fire(EventI event);", "private void addMealEvent(final String login_id, final String date, final String meal_type, final String[] recipe_ids) {\n String url = \"http://proj-309-yt-8.cs.iastate.edu/add_meal_event.php\";\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"AddCalendarMealActivity/addMealEvent\", response);\n if(response.contains(\"\")) { //response should be meal_id\n// Toast.makeText(getApplicationContext(),response,Toast.LENGTH_SHORT).show();\n try {\n creationLooper(response,recipe_ids);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n Toast.makeText(getApplicationContext(),\"Meal successfully logged for \" + date,Toast.LENGTH_SHORT).show();\n Intent homePageIntent = new Intent(getApplicationContext(), HomePageActivity.class);\n startActivity(homePageIntent);\n } else {\n Toast.makeText(getApplicationContext(),\"Error adding meal to database\", Toast.LENGTH_SHORT).show();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"AddCalendarMealActivity/addMealEvent\", error.toString());\n Toast.makeText(getApplicationContext(),\"Error connecting to database.\",Toast.LENGTH_SHORT).show();\n }\n }) {\n /*This is string data POSTed to server file with key-string format*/\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n @SuppressWarnings(\"Convert2Diamond\") Map<String,String> params = new HashMap<String, String>();\n params.put(\"login_id\",login_id);\n params.put(\"date\",date);\n params.put(\"meal_type\",meal_type);\n return params;\n }\n };\n AppController.getInstance().addToRequestQueue(stringRequest, \"string_req_add_meal_event\");\n }", "@Override\n public void onResponse(JSONObject response) {\n Log.e(\"puto\",\"PRECEOSA \");\n procesarRespuesta(response);\n\n Log.e(\"puto\",\"respuetsa -\"+response);\n }", "@Subscribe(threadMode = ThreadMode.MAIN)\n public void onDialogEvent(DialogEvent event){\n EventBus.getDefault().post(new ReconizeStatusEvent(\"重新识别\"));\n EventBus.getDefault().post(new ReconizeResultEvent(\"\"));\n EventBus.getDefault().post(new NluEvent(\"\"));\n EventBus.getDefault().post(new AsrTimeEvent(\"\"));\n// LightManager.getInstance().lightWakeup();\n //EventBus.getDefault().post(new ReconizeStatusEvent(\"开始识别\"));\n //开始识别\n // RecordModel.getInstance().startRecord();//sdk mode\n startBaiduAsr();//sdk mode\n\n /*scheduledThreadPool.schedule(new Runnable() {\n\n @Override\n public void run() {\n// RecordModel.getInstance().stopRecord(); //sdk mode\n RecordModel.getInstance().stopBaiduAsr(); //sdk mode\n }\n }, Const.RECONIZE_INTERVAL, TimeUnit.SECONDS);*/\n\n }", "private void createNotification(FoodEvents event) {\n Context context = getBaseContext();\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context).setSmallIcon(R.drawable.ic_launcher).setContentTitle(event.getTitle())\n .setContentText(event.getDescription());\n Intent resultIntent = new Intent(this, EventDetails.class);\n resultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n resultIntent.putExtra(EventDetails.EXTRA_EVENT, event);\n PendingIntent resultPendingIntent = PendingIntent.getActivity(getBaseContext(), 0, resultIntent, PendingIntent.FLAG_UPDATE_CURRENT, null);\n mBuilder.setContentIntent(resultPendingIntent);\n NotificationManager mNotificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n mNotificationManager.notify(MESSAGE_NOTIFICATION_ID, mBuilder.build());\n notifyMyWatch(event);\n }", "protected final void registerEvents() {\n LogUtils.i(TAG, \"Register socket event\");\n if (disposables == null || disposables.isDisposed())\n disposables = new CompositeDisposable();\n Disposable socketEvent = RxSocket.getSocketEvent()\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Consumer<SocketEvent>() {\n @Override\n public void accept(SocketEvent socketEvent) throws Exception {\n\n if (socketEvent == null || socketEvent.getEventType() != SocketEvent.EVENT_RECEIVE) {\n LogUtils.w(TAG, \"socket Event -------> null!\");\n return;\n }\n\n UserPreferences userPreferences = UserPreferences.getInstance();\n if (userPreferences.getCurrentFriendChat().equals(socketEvent.getMessage().getSenderId())) {\n //Yourself online in chat room\n LogUtils.w(TAG, \"socket Event ------->Yourself online in chat room\");\n return;\n }\n\n //Send broad cast to show notification panel if has new message from all friend if need\n if (socketEvent.getMessage() != null && socketEvent.getMessage().getMessageType() != null) {\n LogUtils.i(TAG, \"socket Event ------->Show notification on the SnackBar: \" + socketEvent.getMessage().getMessageType().intern());\n onShowNotification(socketEvent.getMessage());\n }\n\n }\n }, new Consumer<Throwable>() {\n @Override\n public void accept(Throwable throwable) throws Exception {\n LogUtils.e(TAG, \"throwable socket \" + throwable.getMessage());\n throwable.printStackTrace();\n }\n });\n\n disposables.add(socketEvent);\n }", "public void SimAdded(AddSimEvento event);", "public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }", "@SuppressLint(\"NewApi\")\n\tprivate void registReciver() {\n\t\tmyReciver = new MyReciver();\n\t\tIntentFilter filter = new IntentFilter();\n\t\tfilter.addAction(\"justlink.action.intent.data_inited_outside_order\");\n\t\tfilter.addAction(\"justlink.action.intent.refresh_searchcount\");\n\t\tgetActivity().registerReceiver(myReciver, filter);\n\t\t\n\t}", "@Subscribe\n public void onDeviceInfo(final DeviceInformation event) {\n\n apiService.onSendDeviceInfo(event, new Callback<DeviceInfoSuccess>() {\n\n @Override\n public void success(DeviceInfoSuccess retroResponse, Response response) {\n\n if(retroResponse != null) {\n bus.post(new DeviceInfoSuccess(retroResponse));\n //ealmObjectController.cachedResult(MainFragmentActivity.getContext(), (new Gson()).toJson(retroResponse));\n RealmObjectController.cachedResultWithType(MainFragmentActivity.getContext(), (new Gson()).toJson(retroResponse),\"SplashInfo\");\n\n }else{\n BaseFragment.setAlertNotification(MainFragmentActivity.getContext());\n }\n\n }\n\n @Override\n public void failure(RetrofitError error) {\n BaseFragment.setAlertNotification(MainFragmentActivity.getContext());\n }\n\n });\n }", "default void addExecutionEvents(\n com.google.cloud.aiplatform.v1.AddExecutionEventsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.AddExecutionEventsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getAddExecutionEventsMethod(), responseObserver);\n }", "private void configurarEventos() {\n\n btnVoltar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //OBJETIVO: fecha a tela atual\n VerPessoaActivity.this.finish();\n }\n });\n }", "public void addListenerNotify(PersistRequestBean<?> request) {\n if (listenerNotify == null) {\n listenerNotify = new ArrayList<>();\n }\n listenerNotify.add(request);\n }", "@Override\n\t\tpublic void onReceive(Context arg0, Intent arg1) {\n\t\t\tSystem.out.println(\"ALARM CALLED\");\n\t\t\tsendPostRequest();\n\t\t}", "private synchronized void onRequest(ObjectMessage message) {\n try {\n Serializable request = message.getObject(); //serializer.requestFromString(message.getText());\n activeRequests.put(request, message);\n requestListener.receivedRequest(request);\n } catch (JMSException ex) {\n Logger.getLogger(AsynchronousReplier.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void onRequestResponse(Response response) { }", "@Override\n public void onResume() {\n super.onResume();\n IntentFilter intentFilter = new IntentFilter(RESPONSE_SERVICE_ACTION);\n receiver = new ResponseReceiver();\n if (receiver != null) {//register receiver\n LocalBroadcastManager.getInstance(this).registerReceiver(receiver, intentFilter);\n }\n }", "public void addPutEvent()\r\n\t{\r\n\t\tfor(Event recordedEvent : eventsCount)\r\n\t\t{\r\n\t\t\tif(recordedEvent.getRequestType().equals(RequestMethod.PUT))\r\n\t\t\t{\r\n\t\t\t\trecordedEvent.setAccessCount(recordedEvent.getAccessCount() + 1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void onConsultarEvent() {\r\n\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent()]...\");\r\n\r\n\t\ttry {\r\n\t\t\tif (permitirBuscar) {\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(1)]...\");\r\n\t\t\t\tvisualizarColumnas();\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(2)]...\");\r\n\t\t\t\tonMostrarListboxConsulta();\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(3)]...\");\r\n\t\t\t\tonConsultar(idMCRZTbxCriterio.getValue(), false);\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(4)]...\");\r\n\t\t\t} else {\r\n\t\t\t\tNotificaciones.mostrarNotificacionAlerta(tituloMensajeExtra,\r\n\t\t\t\t\t\tmensajeExtra, 7000);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.info(\"Eroor.......................\"+e);\r\n\t\t}\r\n\t}", "public void registerForEvents(Context context)\n {\n LocalBroadcastManager.getInstance(context).registerReceiver(\n mMessageReceiver, new IntentFilter(\"tts-event\"));\n }", "public interface XEventCode {\n\n public static final int EVENT_MAINMENU = R.id.id_main_menu;\n\n public static int SMS_CODE_EVENT = R.id.ev_sms; //短信验证码\n public static int EVENT_MENU_SELECT = R.id.menu_select; // 测试页面类型选择\n public static int EVENT_USER_LOGIN = R.id.login_back;\n public static int EVENT_CITY_ALL = R.id.city_all;\n int EVENT_RUNCODE = R.id.event_runcode;\n int EVENT_SWIP_CALENAR = R.id.event_swip_cal;\n int ASYN_CALENAR = R.id.syn_cal;\n int EVENT_AUTH_CODE = R.id.evevnt_auth_code;\n int HTTP_AUTH_WECHAT = R.id.auth_wechat;\n int HTTP_USER_AOUTH = R.id.user_aouth;\n\n public static int HTTP_GET_ACCESS_TOKEN = R.id.get_atoken;\n public static int HTTP_USER_LOGIN = R.id.user_login;\n public static int HTTP_USER_SIGNOUT = R.id.user_signout;\n public static int HTTP_USER_REG = R.id.user_reg;\n public static int HTTP_USER_REG2 = R.id.user_reg2;\n public static int HTTP_USER_INFO = R.id.user_info;\n public static int HTTP_USER_UPDATE_PUSH = R.id.user_update_push;\n public static int HTTP_USER_EDIT = R.id.user_edit;\n public static int HTTP_USER_FINDPWD = R.id.user_findpwd;\n public static int HTTP_MARRY_DAY_EDIT = R.id.marry_day_edit;\n\n public static int HTTP_MARRY_ADDPROCESS = R.id.marry_addprocess;\n public static int HTTP_MARRY_QUERYALLPRO = R.id.marry_allprocess;\n public static int HTTP_MARRY_DELONEPRO = R.id.marry_deloneprocess;\n public static int HTTP_GIFTS_QUERYALL = R.id.gifts_queryall;\n public static int HTTP_GIFTS_ADDONE = R.id.gifts_addone;\n public static int HTTP_GIFTS_DELONE = R.id.gifts_delone;\n int HTTP_PCHLIST_ALL = R.id.pchlist_all;\n int HTTP_PCHLIST_ADD = R.id.pchlist_add;\n int HTTP_PCHLIST_DEL = R.id.pchlist_del;\n\n int HTTP_NEWS_DETAIL = R.id.news_detail;\n\n int HTTP_TASK_USERADDLIST = R.id.task_useraddlist;\n int HTTP_TASK_USERADD = R.id.task_useradd;\n int HTTP_TASK_USERDEL = R.id.task_userdel;\n int HTTP_TASK_USEREDIT = R.id.task_useredit;\n int HTTP_TASK_USERCOM = R.id.task_usercom;\n int HTTP_TASK_MY = R.id.task_my;\n int HTTP_SPEECH_ADD = R.id.speech_add;\n int HTTP_SPEECH_DEL = R.id.speech_del;\n int HTTP_SPEECH_LIST = R.id.speech_list;\n\n int HTTP_BUDGET_ALL = R.id.budget_all;\n int HTTP_BUDGET_GET = R.id.budget_get;\n int HTTP_BUDGET_EDIT = R.id.budget_edit;\n int HTTP_BUDGET_COMPUTE = R.id.budget_compute;\n\n int HTTP_FORTUNE_FIND = R.id.fortune_find;\n\n int HTTP_CARD_SAVE = R.id.card_save;\n int HTTP_CARD_INFO = R.id.card_info;\n int CARD_GETINFO = R.id.card_getinfo;\n\n int HTTP_GUESTLIST_ALL = R.id.guestlist_all;\n int HTTP_GUESTLIST_ADD = R.id.guestlist_add;\n int HTTP_GUESTLIST_DEL = R.id.guestlist_del;\n\n int HTTP_PRODUCT_CATE = R.id.product_cate;\n int HTTP_PRODUCT_BYTYPE = R.id.product_bytype;\n int HTTP_PRODUCT_DETAIL = R.id.product_detail;\n int HTTP_PRODUCT_COMMENT = R.id.product_comment;\n int HTTP_PRODUCT_FAVORITE = R.id.product_favorite;\n int HTTP_PRODUCT_FINDCOLLECT = R.id.product_findfavorite;\n int HTTP_PRODUCT_FINDCOMMENT = R.id.product_findcomment;\n\n int HTTP_TOPIC_ADD_EDIT = R.id.topic_addedit;\n int HTTP_TOPIC_BEST = R.id.topic_best;\n int HTTP_TOPIC_LATEST = R.id.topic_latest;\n int HTTP_TOPIC_INFO = R.id.topic_info;\n int HTTP_TOPIC_COLLECT = R.id.topic_collect;\n int HTTP_TOPIC_DELCOLLECT = R.id.topic_delcollect;\n int HTTP_TOPIC_COMMENT = R.id.topic_comment;\n int HTTP_TOPIC_COMMENT_LIST = R.id.topic_comment_list;\n\n int HTTP_PHASES_ALL = R.id.phases_all;\n\n int HTTP_TAGS_INPHASE = R.id.tags_inphase;\n int HTTP_TAGS_ADDONE = R.id.tags_addone;\n\n int HTTP_TOPIC_MYALL = R.id.topic_myall;\n int HTTP_TOPIC_MYCOLLECT = R.id.topic_mycollect;\n\n\n int HTTP_HOME_PAGE = R.id.home_page;\n\n int HTTP_SHOP_LIST = R.id.shop_list;\n int HTTP_SHOP_INFO = R.id.shop_info;\n int HTTP_SHOP_PACKAGE = R.id.shop_package;\n int HTTP_SHOP_FOLLOW = R.id.shop_follow;\n int HTTP_SHOP_DIS_FOLLOW = R.id.shop_dis_follow;\n int HTTP_SHOP_DEMO = R.id.shop_demo;\n int HTTP_SHOP_AD_LIST = R.id.shop_ad_list;\n int HTTP_SHOP_PACKAGE_INFO = R.id.shop_package_info;\n int HTTP_SHOP_DEMO_INFO = R.id.shop_demo_info;\n int HTTP_SHOP_MY_COLLECT = R.id.shop_my_collect;\n\n int HTTP_CITY_COUNTY = R.id.city_county;\n int HTTP_APPOINTMENT = R.id.shop_appointment;\n\n int HTTP_SHOP_COMMENT_LIST = R.id.shop_comment_list;\n int HTTP_SHOP_COMMENT_ADD = R.id.shop_comment_add;\n\n\n int HTTP_CHECK_VERSION = R.id.check_version;\n\n}", "@Override\n public void onAddIceCreamRaised() {\n }", "@Override\n public void onResponse(JSONObject response) {\n procesarRespuesta(response);\n Log.i(TAG, \"processanddo respuesta...\" + response);\n }", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "public void register() {\n unregister();\n Log.d(TAG, \"[register in eventbus]\");\n EventBus.getDefault().register(this);\n }", "public void handle_request(Request request){\n currentRequest.add(request);\n System.out.println(\"[Worker\"+String.valueOf(id)+\"] Received request of client \"+String.valueOf(request.getId()));\n }", "@Override\n\tpublic <T> Future<T> sendEvent(Event<T> e) {\n\t\tif(!registrationHashMap.containsKey(e)) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\t// retrieving list of microservices subscribed to this type of event\n\t\t\tArrayList<MicroService> a = registrationHashMap.get(e);\n\t\t\t// first microservice in \"queue will receive the message\n\t\t\tMicroService m = a.get(0);\n\t\t\tint index = registeredMicroservice.indexOf(m);\n\t\t\tmicroserviceMessageQueue.get(index).add(e);\n\t\t\t//round robin implementation - after microservice receives a message it is removed and added\n\t\t\t// in order to keep a linear order in which subscribed microservices receive event\n\t\t\tregistrationHashMap.get(e).remove(m);\n\t\t\tregistrationHashMap.get(e).add(m);\n\t\t\t//Future<Event> result = new Future();\n\t\t\treturn null; //WHAT TO RETURNNNN\n\t\t}\n\t}", "public void addPostEvent()\r\n\t{\r\n\t\tfor(Event recordedEvent : eventsCount)\r\n\t\t{\r\n\t\t\tif(recordedEvent.getRequestType().equals(RequestMethod.POST))\r\n\t\t\t{\r\n\t\t\t\trecordedEvent.setAccessCount(recordedEvent.getAccessCount() + 1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void addPaymentStartEvent() {\n /*09th July 2019, Resolved Pyze library issue*/\n HashMap<String, Object> customAttributes = new HashMap<String, Object>();\n customAttributes.put(\"packageID\", String.valueOf(PackageID));\n customAttributes.put(\"userID\", String.valueOf(UserID));\n customAttributes.put(\"paymentType\", getIntent().getStringExtra(\"PaymentType\"));\n PyzeEvents.PyzeCommercePayment.postPaymentStarted(customAttributes);\n }", "public void sendEvent(final String name, final Bundle extras)\n {\n sendEngagementCommand(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n mEngagementService.sendEvent(name, extras);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n });\n }", "@Override\n public void onClick(View v) {\n dbHelper = new DBHelper(getBaseContext());\n final SQLiteDatabase db = dbHelper.getWritableDatabase();\n dbHelper.eventReg(db,event.id,\"2\");\n }", "public synchronized void addResponse( Serializable o ) {\n if ( o instanceof MessageEvent ) {\n MessageEvent event = (MessageEvent) o ;\n event.setSeqId( numSent );\n }\n responses.add( o ) ;\n numSent ++ ;\n\n // Toggle the respond changed.\n if ( !responseChanged ) {\n responseChanged = true ;\n }\n }", "public void registrarAsistencia(int clienteID, int sucursalID, Sesion sesion) {\n Call<Visita> visitaCall = service.registrarVisita(clienteID,sucursalID);\r\n visitaCall.enqueue(new Callback<Visita>() {\r\n @Override\r\n public void onResponse(Call<Visita> call, Response<Visita> response) {\r\n if (response.isSuccessful()) {\r\n Toast.makeText(BeaconEncontrado.this, \"Bienvenido!!!\", Toast.LENGTH_SHORT).show();\r\n Variables.sesionFullsMes.clear();\r\n Variables.sesionFulls.clear();\r\n //Revisaremos si el cliente ya ha hecho una calificación de sucursal, de lo contrario mostraremos la pantalla para evaluación\r\n Call<EvaluacionSucursal> evaluacionSucursalCall = service.verificarEvaluacionUsuario(clienteID,sucursalID);\r\n evaluacionSucursalCall.enqueue(new Callback<EvaluacionSucursal>() {\r\n @Override\r\n public void onResponse(Call<EvaluacionSucursal> call, Response<EvaluacionSucursal> response) {\r\n finish();\r\n if (response.isSuccessful()) {\r\n if (response.body().getResults().isEmpty()) {\r\n Intent intent = new Intent(getApplicationContext(), ClubMain.class);\r\n intent.setFlags(intent.FLAG_ACTIVITY_CLEAR_TASK | intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n intent.putExtra(\"EVALUAR\",true);\r\n startActivity(intent);\r\n } else {\r\n }\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Call<EvaluacionSucursal> call, Throwable t) {\r\n finish();\r\n }\r\n });\r\n } else {\r\n Toast.makeText(BeaconEncontrado.this, \"No se pudo registrar su asistencia correctamente. Contacte a un administrador\", Toast.LENGTH_SHORT).show();\r\n recuperarSession(clienteID, sucursalID, sesion);\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Call<Visita> call, Throwable t) {\r\n Toast.makeText(BeaconEncontrado.this, \"Error al confirmar asistencia.\", Toast.LENGTH_SHORT).show();\r\n finish();\r\n }\r\n });\r\n }", "public void createServiceRequest() {\n getMainActivity().startService(new Intent(getMainActivity(), RequestService.class));\n }", "@Override\n public void onResetTimerRequest(ResetTimerRequest arg0) {\n\n }", "private void postEvent(){\n final Map<String, Object> eventDocData = new HashMap<>();\n eventDocData.put(\"address\", newEvent.getAddress());\n eventDocData.put(\"author\", newEvent.getAuthor());\n eventDocData.put(\"categories\", newEvent.getCategories());\n eventDocData.put(\"date\", newEvent.getDate());\n eventDocData.put(\"description\", newEvent.getDescription());\n eventDocData.put(\"distanceFromUser\", 0);\n eventDocData.put(\"event18\", false);\n eventDocData.put(\"event21\", false);\n eventDocData.put(\"eventKey\", newEvent.getEventKey());\n eventDocData.put(\"lat\", newEvent.getLat());\n eventDocData.put(\"lon\", newEvent.getLon());\n eventDocData.put(\"notificationOnly\", null);\n eventDocData.put(\"paid\", true);\n eventDocData.put(\"radius\", null);\n eventDocData.put(\"time\", null);\n\n //Compress and Upload\n purchaseProgressBar.setVisibility(View.VISIBLE);\n\n //Compress Image\n File profileImgFile = new File(mainImgURI.getPath());\n try {\n compressedImageFile = new Compressor(PurchaseEventActivity.this).setQuality(85).compressToBitmap(profileImgFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n compressedImageFile.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] imgData = baos.toByteArray();\n\n //Upload Img & Name\n UploadTask setupUpload = storageReference.child(\"events\").child(newEvent.getEventKey() + \".jpg\").putBytes(imgData);\n\n setupUpload.addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri download_uri = taskSnapshot.getDownloadUrl();\n eventDocData.put(\"pathToImage\", download_uri);\n\n //Send to Firebase\n firebaseFirestore.collection(\"events\").document(newEvent.getEventKey())\n .set(eventDocData)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(PurchaseEventActivity.this, \"Event Posted!\", Toast.LENGTH_SHORT).show();\n Intent mainIntent = new Intent(PurchaseEventActivity.this, MainActivity.class);\n startActivity(mainIntent);\n finish();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n purchaseProgressBar.setVisibility(View.INVISIBLE);\n Toast.makeText(PurchaseEventActivity.this, \"There Was an Issue Posting Your Event. Please Contact Support.\", Toast.LENGTH_LONG).show();\n }\n });\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n String error = e.getMessage();\n Toast.makeText(PurchaseEventActivity.this, \"Posting Error. Please Contact Support.\", Toast.LENGTH_LONG).show();\n\n purchaseProgressBar.setVisibility(View.INVISIBLE);\n }\n });\n }", "@Subscribe\n public void onGetAllLecturesEvent(final GetLecturesEvent e) {\n Log.v(TAG, \"getConferenceList a GetAgendaEvent\");\n\n new AsyncTask<GetLecturesEvent, Void, ReceiveAllLecturesEvent>() {\n\n @Override\n protected ReceiveAllLecturesEvent doInBackground(GetLecturesEvent... p) {\n try {\n\n final GetLecturesEvent e = p[0];\n List<Conference> l = null;\n\n switch (e.getType()) {\n case USER:\n l = restClient.getUsersLectures(e.getParamValue());\n break;\n case ALL:\n l = restClient.getAllLectures();\n break;\n case LIVE:\n l = restClient.getConferenceLive();\n break;\n case SOON:\n l = restClient.getConferenceSoon();\n break;\n case CATEGORIE:\n l = restClient.getCategorysLectures(e.getParamValue());\n break;\n case RECOMMANDED:\n l = restClient.getRecommandedLectures();\n break;\n case ATTENDED:\n l = restClient.getAttendedLectures(e.getParamValue());\n break;\n case REGISTERED:\n l = restClient.getRegisteredLectures(e.getParamValue());\n break;\n }\n\n if (l == null) {\n l = new ArrayList<Conference>();\n }\n Collections.sort(l, new IConferenceComparator());\n return new ReceiveAllLecturesEvent(e.getType(), l);\n } catch (Exception exception) {\n Log.e(TAG, \"-----------------------\");\n Log.e(TAG, exception.getClass().getName() + \" \" + exception.getMessage());\n Log.e(TAG, exception.getClass().getSimpleName() + \" \" + exception.getCause());\n Log.e(TAG, exception.getClass().getSimpleName() + \"\\n-------------------------\");\n if (exception.getMessage().contains(\"No events are present\")) {\n return (new ReceiveAllLecturesEvent(e.getType(), new ArrayList<Conference>()));\n }\n return new ReceiveAllLecturesEvent(e.getType(), \"An Error Happened: \" + exception.getMessage() + \"\\nPlease try again later\");\n }\n }\n\n @Override\n protected void onPostExecute(ReceiveAllLecturesEvent e) {\n BusProvider.get().post(e);\n }\n }.execute(e);\n }", "EventUse createEventUse();", "@Override\n\t\t\tpublic void onAdd(String url, Boolean isInterrupt)\n\t\t\t{\n\t\t\t\tsuper.onAdd(url, isInterrupt);\n\t\t\t\tinitNotification();\n\t\t\t}", "public void dataSent(LLRPDataSentEvent event);", "@Override\r\n\tpublic void startNewEvent(int t) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tthis.newEvent(\"Ernest\", \"action\", t);\r\n\t}", "private void regFliter() {\n\t\tIntentFilter filter = new IntentFilter();\r\n\t\tfilter.addAction(OsConstants.JSH.ADD_DEVICES_SUCCES);\r\n\t\tfilter.addAction(OsConstants.JSH.SETTIING_WIFI_SUCCESS);\r\n\t\tregisterReceiver(mReceiver, filter);\r\n\t}", "public static void addEvent(Context context, @NonNull Reminder reminder) {\n int mId = Prefs.getInstance(context).getCalendarId();\n if (mId != 0) {\n TimeZone tz = TimeZone.getDefault();\n String timeZone = tz.getDisplayName();\n ContentResolver cr = context.getContentResolver();\n ContentValues values = new ContentValues();\n long startTime = TimeUtil.getDateTimeFromGmt(reminder.getEventTime());\n values.put(CalendarContract.Events.DTSTART, startTime);\n values.put(CalendarContract.Events.DTEND, startTime +\n (60 * 1000 * Prefs.getInstance(context).getCalendarEventDuration()));\n if (!TextUtils.isEmpty(reminder.getSummary())) {\n values.put(CalendarContract.Events.TITLE, reminder.getSummary());\n }\n values.put(CalendarContract.Events.CALENDAR_ID, mId);\n values.put(CalendarContract.Events.EVENT_TIMEZONE, timeZone);\n values.put(CalendarContract.Events.ALL_DAY, 0);\n values.put(CalendarContract.Events.STATUS, CalendarContract.Events.STATUS_CONFIRMED);\n values.put(CalendarContract.Events.DESCRIPTION, context.getString(R.string.from_reminder));\n Uri lEventUri = Uri.parse(\"content://com.android.calendar/events\");\n Uri event;\n try {\n event = cr.insert(lEventUri, values);\n if (event != null) {\n long eventID = Long.parseLong(event.getLastPathSegment());\n RealmDb.getInstance().saveObject(new CalendarEvent(reminder.getUuId(), event.toString(), eventID));\n }\n } catch (Exception ignored) {\n }\n }\n }", "@Override //to be moved to Cloud service\r\n\tpublic void createEvent(String eventName) {\n\t\t\r\n\t}", "@Override\n public void onAdded() {\n /**\n * EventsBus: Fetching data.\n */\n EventBus.getDefault().post(new Authenticating());\n }", "public Event createOneShotPublish(Address resource, String event);", "@Override\n public void onClick(View view) {\n if(eventType.equals(EventType.ORGANISE)){\n Log.d(TAG, \"In update event\");\n\n Bundle bundle = new Bundle();\n bundle.putString(BundleAndSharedPreferencesConstants.CREATE_OR_UPDATE, BundleAndSharedPreferencesConstants.UPDATE);\n bundle.putInt(DbConstants.EVENT_KEY_EVENT_ID, eventId);\n startNewActivity(CreateUpdateEventActivity.class, bundle);\n finish();\n }\n else if(eventType.equals(EventType.ATTEND)){\n Bundle bundle = new Bundle();\n bundle.putInt(DbConstants.EVENT_KEY_EVENT_ID, eventId);\n\n startNewActivity(SignInActivity.class, bundle);\n }\n }", "@Override\r\n\t\tpublic int onCallBack(int type, String url, String ext)\r\n\t\t\t\tthrows RemoteException {\n\t\t\tfor(EventBus handler:mEventBus){\r\n\t\t\t\thandler.onEvent(type,url,ext);\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t}", "private void callEventListener(){\n //Listener for Button add service\n btn_Appointment.setOnClickListener(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogCreateAppointment();\n }\n }\n );\n\n }", "private void registerGlobalEvents() {\n\t\tsubmit(new CycleEvent());\n\t\tsubmit(new CleanupEvent());\n\t\tsubmit(new FloorItemEvent());\n\t}", "private void onGetAllIdentitet(Event<FintResource> responseEvent) {\n Identifikator batmanId = new Identifikator();\n batmanId.setIdentifikatorverdi(\"BATMAN\");\n Identitet batman = new Identitet();\n batman.setSystemId(batmanId);\n responseEvent.addData(FintResource\n .with(batman)\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.PERSONALRESSURS).forType(Personalressurs.class).field(\"ansattnummer\").value(\"100001\").build())\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.RETTIGHET).forType(Rettighet.class).field(\"systemid\").value(\"BATCAVE\").build())\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.RETTIGHET).forType(Rettighet.class).field(\"systemid\").value(\"BATMOBILE\").build()));\n\n Identifikator robinId = new Identifikator();\n robinId.setIdentifikatorverdi(\"ROBIN\");\n Identitet robin = new Identitet();\n robin.setSystemId(robinId);\n responseEvent.addData(FintResource\n .with(robin)\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.PERSONALRESSURS).forType(Personalressurs.class).field(\"ansattnummer\").value(\"100002\").build())\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.RETTIGHET).forType(Rettighet.class).field(\"systemid\").value(\"BATCAVE\").build()));\n }", "@Override\n\tpublic void processResponse(ResponseEvent responseEvent) {\n\t\tResponse response = responseEvent.getResponse();\n\t\ttry {\n\t\t\t// Display the response message in the text area.\n\t\t\t//printMessage(\"\\nReceived response: \" + response.toString());\n\n\t\t\tClientTransaction tid = responseEvent.getClientTransaction();\n\t\t\tCSeqHeader cseq = (CSeqHeader) response.getHeader(CSeqHeader.NAME);\n\t\t\tif (response.getStatusCode() == Response.OK) {\n\t\t\t\tif (cseq.getMethod().equals(Request.REGISTER)) {\n\t\t\t\t\tSystem.out.println(\"regist ACK OK\");\n\t\t\t\t\t//onInvite();\n\t\t\t\t} else if (cseq.getMethod().equals(Request.INVITE)) {\n\t\t\t\t\tDialog dialog = inviteTid.getDialog();\n\t\t\t\t\tRequest ackRequest = dialog.createAck(cseq.getSeqNumber());\n\t\t\t\t\tdialog.sendAck(ackRequest);\n\t\t\t\t\tSystem.out.println(\"Sending ACK\");\n\t\t\t\t} else if (cseq.getMethod().equals(Request.MESSAGE)) {\n\t\t\t\t\tSystem.out.println(\"Send OK !\");\n\t\t\t\t} else if (cseq.getMethod().equals(Request.CANCEL)) {\n\t\t\t\t\tSystem.out.println(\"Sending BYE -- cancel went in too late !!\");\n\t\t\t\t}\n\t\t\t} else if (response.getStatusCode() == Response.PROXY_AUTHENTICATION_REQUIRED\n\t\t\t\t\t|| response.getStatusCode() == Response.UNAUTHORIZED) {\n\t\t\t\tauthenticationHelper = ((SipStackExt) sipStack)\n\t\t\t\t\t\t.getAuthenticationHelper(new AccountManagerImpl(),\n\t\t\t\t\t\t\t\theaderFactory);\n\t\t\t\tinviteTid = authenticationHelper.handleChallenge(response, tid,\n\t\t\t\t\t\tsipProvider, 5);\n\t\t\t\tinviteTid.getRequest().addHeader(\n\t\t\t\t\t\theaderFactory.createExpiresHeader(3600));\n\t\t\t\tinviteTid.getRequest().setMethod(Request.REGISTER);\n\t\t\t\tinviteTid.sendRequest();\n\t\t\t\tinvco++;\n\t\t\t\tprintMessage(\"[processResponse] Request sent:\\n\" + inviteTid.getRequest().toString() + \"\\n\\n\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n\n gerarNotificacaoTomarRemedio(context, new Intent(context , MainActivity.class));\n }", "com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();", "@Override\n public void onNext(RequestData request) {\n System.out.println(\"Requestor:\" + request.getName());\n System.out.println(\"Request Message:\" + request.getMessage());\n }", "public void registerApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);", "private void cargardatos() {\n String link = \"http://192.168.43.30:8080/appLavanderia/subidadatos.php?\";\n\n //Toast.makeText(getApplicationContext(), \"1\", Toast.LENGTH_SHORT).show();\n respuesta = new StringRequest(Request.Method.POST, link, new Response.Listener<String>() {\n\n @Override //En caso que si se pudo hacer la conexion\n public void onResponse(String response) {\n if (response.equalsIgnoreCase(\"registra\")){\n Toast.makeText(getApplicationContext(), \"Registro Exitoso\", Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(getApplicationContext(), \"errorr\", Toast.LENGTH_SHORT).show();\n }\n //Toast.makeText(getApplicationContext(), \"2\", Toast.LENGTH_SHORT).show();\n\n }//En dado caso que no se pueda guardar\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), \"No \"+error.toString(), Toast.LENGTH_SHORT).show();\n\n }\n }){\n @Override //Contiene la informacion para enviar\n protected Map<String, String> getParams() throws AuthFailureError {\n\n String nombre = nombreimagen.getText().toString();\n String descripcion = descricpion.getText().toString();\n String fecha = fechaexp.getText().toString();\n String Foto = ConvertImagenTexto(imagenpro);\n\n //enviar los datos al servidor\n Map<String, String> datosparaenviar = new HashMap<>();\n datosparaenviar.put(\"Nombre\",nombre);\n datosparaenviar.put(\"DescripcionPromo\",descripcion);\n datosparaenviar.put(\"FechaPromo\",fecha);\n datosparaenviar.put(\"ImagenPromo\",Foto);\n return datosparaenviar;\n }\n };\n envio.add(respuesta);\n }", "@Override\n\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\n\t\t\t}", "public void registrationPost(String regID){\n String type = \"android\";\n String name = LoginActivity.username;\n Callback<Events> callback = new Callback<Events>() {\n\n @Override\n public void success(Events serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEventServerResponse(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.postRegistration(regID, type, name, callback);\n }", "void onNewRegistrationId(String registrationId);", "void registerEventbusHandlers();", "public static void registerReceiver(Context context) {\n\n //Get the milliseconds for next hour\n Calendar calendar = Calendar.getInstance(TimeZone.getDefault());\n calendar.setTimeZone(TimeZone.getTimeZone(\"Asia/Calcutta\"));\n calendar.add(Calendar.HOUR_OF_DAY, 1);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.SECOND, 0);\n calendar.set(Calendar.MILLISECOND, 0);\n\n //Prepare the pending intent\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context,\n REA_CODE_PENDING_INTENT,\n new Intent(context, TimeReminderReceiver.class),\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n //Set the alarm\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n alarmManager.setExactAndAllowWhileIdle(AlarmManager.RTC, calendar.getTimeInMillis(), pendingIntent);\n } else {\n alarmManager.setExact(AlarmManager.RTC, calendar.getTimeInMillis(), pendingIntent);\n }\n\n Log.d(TAG, \"registerReceiver: Next alarm registered.\");\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n new Handler().postDelayed(new Runnable() {\n public void run() {\n Consulta();\n }\n }, 800);\n }", "@Override\n\t\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\t\n\t\t\t\t}", "public interface PostSingleEvent {\n void onStart();\n void onDone(PostResponse response);\n void onError(String err);\n Map<String, String> getHeaders();\n Map<String, String> getFiles();\n Map<String, String> getImages();\n}", "private void onGetAllRettighet(Event<FintResource> responseEvent) {\n Identifikator batcaveId = new Identifikator();\n batcaveId.setIdentifikatorverdi(\"BATCAVE\");\n Rettighet batcave = new Rettighet();\n batcave.setSystemId(batcaveId);\n batcave.setNavn(\"Batcave\");\n batcave.setKode(\"BAT-002\");\n batcave.setBeskrivelse(\"Grants access to the secret cave\");\n responseEvent.addData(FintResource\n .with(batcave)\n .addRelations(new Relation.Builder().with(Rettighet.Relasjonsnavn.IDENTITET).forType(Identitet.class).field(\"systemid\").value(\"BATMAN\").build())\n .addRelations(new Relation.Builder().with(Rettighet.Relasjonsnavn.IDENTITET).forType(Identitet.class).field(\"systemid\").value(\"ROBIN\").build())\n );\n\n Identifikator batmobileId = new Identifikator();\n batmobileId.setIdentifikatorverdi(\"BATMOBILE\");\n Rettighet batmobile = new Rettighet();\n batmobile.setSystemId(batmobileId);\n batmobile.setKode(\"BAT-001\");\n batmobile.setNavn(\"Batmobile\");\n batmobile.setBeskrivelse(\"Grants access to driving the ultimate vehicle\");\n responseEvent.addData(FintResource.with(batmobile)\n .addRelations(new Relation.Builder().with(Rettighet.Relasjonsnavn.IDENTITET).forType(Identitet.class).field(\"systemid\").value(\"BATMAN\").build())\n );\n }", "public void consulterEvent() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onRequestEvent(RequestEvent event) {\n\t\t\t\tif (event.getRequestedClassName().equals(\n\t\t\t\t\t\tSettingsChangedEvent.class.getName())) {\n\t\t\t\t\teventBus.fireEvent(new SettingsChangedEvent(settings));\n\t\t\t\t}\n\t\t\t}", "static synchronized void schedule(Event event) {\n if (ENABLED || QUEUE.size() <= MAX_QUEUE_SIZE) {\n QUEUE.add(event);\n }\n\n if (ENABLED) {\n if (QUEUE.size() >= MAX_QUEUE_SIZE) {\n sendAllScheduled();\n } else {\n //The arrival of a new item interrupts the timer and resets the countdown.\n WikipediaApp.getInstance().getMainThreadHandler().removeCallbacks(SEND_RUNNABLE);\n WikipediaApp.getInstance().getMainThreadHandler().postDelayed(SEND_RUNNABLE, WAIT_MS);\n }\n }\n }", "public void sendNotificationToNextRider(Map<String, String> dataForStoreOrder){\n // Tag used to cancel the request\n String tag_string_req = \"req_login\";\n String serverAddress = \"http://dev.intaresta.com/smartsend/rest_controller/send_notification_to_next_rider\";\n\n pDialog.setMessage(\"Please Wait....\");\n pDialog.setTitle(\"Proccessing\");\n pDialog.setCancelable(false);\n showDialog();\n\n CustomRequest sendNotificationToNextRiderRequest = new CustomRequest(Request.Method.POST,\n serverAddress, dataForStoreOrder , new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject jObj) {\n hideDialog();\n\n try {\n boolean error = jObj.getBoolean(\"error\");\n\n if(!error){\n String successMessage = jObj.getString(\"success_message\");\n Toast.makeText(ctx, \"Success:\" + successMessage, Toast.LENGTH_LONG).show();\n\n }else{\n String errorMessage = jObj.getString(\"error_message\");\n Toast.makeText(ctx, \"Error Order: \"+errorMessage, Toast.LENGTH_LONG).show();\n connectivityDetector.showAlertDialog(ctx, \"Order Empty\", errorMessage);\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(ctx, \"(2SO) Json catch error: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n finish();\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Login Error\", \"Login Error: \" + error.getMessage());\n Toast.makeText(ctx,\n \" (2SO) Error Response: \"+ error.getMessage(), Toast.LENGTH_LONG).show();\n hideDialog();\n connectivityDetector.showAlertDialog(ctx, \"Try Again\", \"Connection Failed\");\n finish();\n }\n });\n\n // Adding request to request queue\n Volley.newRequestQueue(ctx).add(sendNotificationToNextRiderRequest);\n }", "public Event subscribe(Address resource, String event, int expires, Content body);", "public void getNewEvents(String username ,String sync){\n\t\tusername=\"frfsamb\";\n\t\tsync=null;\n\t\ttry {\n\t\t\tHttpClient httpclient = new DefaultHttpClient(Utils.getHttpParams());\n\t\t\tHttpPost httppost = new HttpPost(Utils.SERVICE_URL_SYNC_NEW_EVENTS);\n\t\t\tList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);\n\t\t\tnameValuePairs.add(new BasicNameValuePair(\"username\", username));\n\t\t\tnameValuePairs.add(new BasicNameValuePair(\"sync\", sync));\n\t\t\thttppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\t\t\tHttpResponse response = httpclient.execute(httppost);\n\t\t\tHttpEntity entity = response.getEntity();\n\t\t\tInputStream is = entity.getContent();\n\t\t\tint ch;\n\t\t\tStringBuffer b = new StringBuffer();\n\t\t\twhile ((ch = is.read()) != -1) {\n\t\t\t\tb.append((char) ch);\n\t\t\t}\n\t\t\tString s = b.toString();\n\t\t\tis.close();\n\t\t\t// PARSE JSON RESPONSE\n\t\t\tJSONObject jso = new JSONObject(s);\t\n\t\t\tif (jso.getInt(\"id_evenement\")==0) {\n\t\t\t\tLog.i(getClass().getSimpleName(), \"NO DATA TO SYNC FOUND!!!\");\n\t\t\t} else {\n\t\t\t\tLog.i(getClass().getSimpleName(), \"DATA TO SYNC FOUND!!!\"+jso.getString(\"evenement_datedebutvalidite\"));\n\t\t\t\t\n\t\t\t\tDatabaseConnector dbConnector = new DatabaseConnector(sharedContext);\n\t\t\t\tdbConnector.open();\n\t\t\t\tdbConnector.insertFromRest(jso.getInt(\"id_evenement\"), jso.getString(\"evenement_libelle\"), jso.getString(\"evenement_datedebutvalidite\"),\n\t\t\t\t\t\tjso.getString(\"evenement_datefinvalidite\"), jso.getString(\"evenement_datedebut\"), jso.getString(\"evenement_datefin\"),\n\t\t\t\t\t\tjso.getString(\"evenement_heuredebut\"), jso.getString(\"evenement_heurefin\"), jso.getString(\"evenement_detail\"), jso.getString(\"evenement_nomfichier\"),\n\t\t\t\t\t\tjso.getString(\"evenement_priorite\"), jso.getString(\"evenement_stpdatemodif\"), jso.getString(\"evenement_stpdatecrea\"),\n\t\t\t\t\t\tjso.getString(\"evenement_stputilcrea\"), jso.getString(\"evenement_stputilmodif\"), jso.getString(\"evenement_stpstatut\"),\n\t\t\t\t\t\tjso.getString(\"evenement_stpdatepubli\"), jso.getString(\"evenement_stputilpubli\"), jso.getString(\"evenement_sync\"), jso.getString(\"evenement_deleted\"));\n\t\t\t\tdbConnector.close();\n\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.i(getClass().getSimpleName(), \"SYNC ERROR!!!\"+e.getMessage());\n\t\t}\n\t}", "@Override\n public void onSensorChanged(SensorEvent event) {\n if( event.values[0] < sensor.getMaximumRange() )\n {\n //// SI LA PANTALLA NO FUE TAPADA ANTERIORMENTE -> GUARDO EL MOMENTO DE INICIO DEL JUEGO\n if( !pantallaEstabaTapada )\n {\n tiempoDeInicio= SystemClock.uptimeMillis();\n pantallaEstabaTapada=true;\n getWindow().getDecorView().setBackgroundColor(Color.RED);\n }\n }\n else\n {\n //// SI LA PANTALLA ESTABA TAPADA Y AHORA NO LO ESTA --> CALCULO LOS SEGUNDOS TRANSCURRIDOS Y DESTRUYO EL LISTENER DEL SENSOR\n if( pantallaEstabaTapada )\n {\n segundosTranscurridos= pasarMilisegundoASegundo(SystemClock.uptimeMillis() - tiempoDeInicio);\n pantallaEstabaTapada=false;\n getWindow().getDecorView().setBackgroundColor(Color.WHITE);\n\n ServicePOST comunicacionApiRest = new ServicePOST(getApplicationContext());\n comunicacionApiRest.registrarEvento(String.valueOf(event.values[0]), \"SENSOR DE PROXIMIDAD\");\n\n sensorManag.unregisterListener(sensorListener);\n\n }\n }\n guardarInfoEnSharedPreference(event.values[0]);\n }" ]
[ "0.638047", "0.6124019", "0.6088471", "0.6014364", "0.5981559", "0.5893964", "0.58700144", "0.5831271", "0.5824719", "0.5746199", "0.5709325", "0.56577414", "0.56221217", "0.56197804", "0.5591238", "0.556263", "0.55291885", "0.5508717", "0.5506511", "0.55026215", "0.54856163", "0.5480987", "0.5480987", "0.5479072", "0.54769284", "0.54667354", "0.5450809", "0.54481244", "0.5418423", "0.5399033", "0.53804237", "0.5377461", "0.5369295", "0.5358272", "0.5345841", "0.5335064", "0.53234875", "0.53146344", "0.5305328", "0.53026044", "0.5292287", "0.5291316", "0.52892226", "0.52853334", "0.5277832", "0.5276696", "0.5275044", "0.526546", "0.5256843", "0.5240627", "0.5238383", "0.52294326", "0.5225499", "0.5217791", "0.52023625", "0.52022713", "0.51985574", "0.51951534", "0.5192684", "0.51910526", "0.5190978", "0.5190286", "0.5171439", "0.5169127", "0.5157213", "0.5157194", "0.51553404", "0.51537895", "0.5153334", "0.51527125", "0.5147957", "0.514229", "0.5137586", "0.5133433", "0.5131176", "0.5128928", "0.51278377", "0.51256555", "0.5124763", "0.5119514", "0.5114077", "0.5112824", "0.5110333", "0.51067716", "0.510508", "0.51002085", "0.509969", "0.50990915", "0.50979626", "0.5097342", "0.509418", "0.5088083", "0.50877434", "0.508719", "0.50783587", "0.5070184", "0.50669533", "0.5060549", "0.50560474", "0.50521123", "0.505198" ]
0.0
-1